Plugin Directory

Changeset 3004719


Ignore:
Timestamp:
12/03/2023 05:14:11 AM (2 years ago)
Author:
princeahmed
Message:

Releasing 1.3.4

Location:
integrate-google-drive
Files:
734 added
1 deleted
21 edited

Legend:

Unmodified
Added
Removed
  • integrate-google-drive/trunk/app/class-app.php

    r2996843 r3004719  
    9595                    'supportsAllDrives'         => true,
    9696                    'includeItemsFromAllDrives' => true,
     97                    'corpora'                   => 'allDrives',
    9798                ];
    9899
     
    200201
    201202        // Sort files
    202         $files = $this->sort_files( $files, $sort );
     203        $files = igd_sort_files( $files, $sort );
    203204
    204205        // Reformat shortcuts
     
    210211            igd_update_cached_folders( $folder_id, $folder_account_id );
    211212        }
    212 
    213         return $files;
    214     }
    215 
    216     public function sort_files( $files, $sort ) {
    217 
    218         if ( empty( $sort ) ) {
    219             $sort = [ 'sortBy' => 'name', 'sortDirection' => 'asc' ];
    220         }
    221 
    222         $sort_by        = $sort['sortBy'];
    223         $sort_direction = $sort['sortDirection'] === 'asc' ? SORT_ASC : SORT_DESC;
    224 
    225         // Initializing sorting arrays
    226         $sort_array           = [];
    227         $sort_array_secondary = [];
    228 
    229         // Populating sorting arrays and adding isFolder attribute to files
    230         foreach ( $files as $key => $file ) {
    231             $files[ $key ]['isFolder'] = igd_is_dir( $file );
    232             $sort_array[ $key ]        = $files[ $key ]['isFolder'];
    233 
    234             // Convert date to timestamp if needed
    235             $sort_array_secondary[ $key ] = in_array( $sort_by, [
    236                 'created',
    237                 'updated'
    238             ] ) ? strtotime( $file[ $sort_by ] ) : $file[ $sort_by ];
    239         }
    240 
    241         array_multisort( $sort_array, SORT_DESC, $sort_array_secondary, $sort_direction, SORT_NATURAL | SORT_FLAG_CASE, $files );
    242213
    243214        return $files;
     
    291262
    292263                    foreach ( $items as $drive ) {
    293                         $drive = $drive->toSimpleObject();
    294 
    295                         $file = [
    296                             'id'            => $drive->id,
    297                             'name'          => $drive->name,
    298                             'iconLink'      => $drive->backgroundImageLink,
    299                             'thumbnailLink' => $drive->backgroundImageLink,
    300                             'created'       => $drive->createdTime,
    301                             'updated'       => $drive->createdTime,
    302                             'hidden'        => $drive->hidden,
    303                             'shared-drives' => true,
    304                             'accountId'     => $folder_account_id ?: $this->account_id,
    305                             'type'          => 'application/vnd.google-apps.folder',
    306                             'parents'       => [ 'shared-drives' ],
    307                         ];
    308 
    309                         $file['permissions'] = $drive->capabilities;
     264                        $file = igd_drive_map( $drive, $folder_account_id );
    310265
    311266                        $files[] = $file;
     
    329284
    330285        $files = [];
     286
    331287
    332288        $look_in_to = [];
    333289        if ( ! empty( $folders ) ) {
    334290            foreach ( $folders as $key => $folder ) {
     291
     292                if ( in_array( $folder['id'], [
     293                    $this->get_root_id(),
     294                    'root',
     295                    'computers',
     296                    'shared-drives',
     297                    'shared',
     298                    'starred'
     299                ] ) ) {
     300                    continue;
     301                }
    335302
    336303                // Skip if not a folder
     
    355322
    356323        // Filter files if files parents is in look_in_to
     324        $args = array(
     325            'fields'      => $this->list_fields,
     326            'pageSize'    => 1000,
     327            'orderBy'     => "",
     328            'q'           => "fullText contains '{$keyword}' and trashed = false",
     329            'from_server' => true,
     330            'sort'        => [
     331                'sortBy'        => 'name',
     332                'sortDirection' => 'asc'
     333            ],
     334        );
     335
     336        if ( ! empty( $sort ) ) {
     337            $args['sort'] = $sort;
     338        }
     339
     340        if ( ! $full_text_search ) {
     341            $args['q']       = "name contains '{$keyword}' and trashed = false";
     342            $args['orderBy'] = 'folder,name'; // Order by not supported in fullText search
     343        }
     344
     345        $data  = $this->get_files( $args );
     346        $files = array_merge( $files, $data['files'] ?? [] );
     347
    357348        if ( ! empty( $look_in_to ) ) {
    358             $args = array(
    359                 'fields'      => $this->list_fields,
    360                 'pageSize'    => 1000,
    361                 'orderBy'     => "",
    362                 'q'           => "fullText contains '{$keyword}' and trashed = false",
    363                 'from_server' => true,
    364                 'sort'        => [
    365                     'sortBy'        => 'name',
    366                     'sortDirection' => 'asc'
    367                 ],
    368             );
    369 
    370             if ( ! empty( $sort ) ) {
    371                 $args['sort'] = $sort;
    372             }
    373 
    374             if ( ! $full_text_search ) {
    375                 $args['q']       = "name contains '{$keyword}' and trashed = false";
    376                 $args['orderBy'] = 'folder,name'; // Order by not supported in fullText search
    377             }
    378 
    379             $data  = $this->get_files( $args );
    380             $files = array_merge( $files, $data['files'] ?? [] );
    381 
    382349            $files = array_filter( $files, function ( $file ) use ( $look_in_to ) {
    383350                return ! empty( $file['parents'] ) && in_array( $file['parents'][0], $look_in_to );
     
    423390            $file = Files::get_file_by_id( $id );
    424391        }
    425 
    426392
    427393        // If no cache file then get file from server
  • integrate-google-drive/trunk/app/class-files.php

    r2996843 r3004719  
    3838
    3939        $where_placeholders = '';
    40         $order_by           = "ORDER BY (type = 'application/vnd.google-apps.folder') desc";
    4140        $where_values       = [];
    4241
     
    4544        }
    4645
    47         // Add sorting based on the given sortBy and sortDirection values
    48         $order_by .= ", " . $sort['sortBy'] . " " . strtoupper( $sort['sortDirection'] );
     46        $order_by = "ORDER BY (type = 'application/vnd.google-apps.folder') DESC ";
     47
     48        $order_by .= 'random' == $sort['sortBy'] ? ", RAND() " : ", {$sort['sortBy']} " . strtoupper( $sort['sortDirection'] );
    4949
    5050        if ( ! empty( $limit ) ) {
  • integrate-google-drive/trunk/app/class-private-folders.php

    r2979521 r3004719  
    128128     * @return array
    129129     */
    130     public function get_user_data( $args = [] ) {
    131 
     130    public function get_user_data($args = []) {
    132131        $default = [
    133132            'number'  => 999,
     
    140139        ];
    141140
    142         $args = wp_parse_args( $args, $default );
    143 
    144         $users_query = new \WP_User_Query( $args );
    145 
    146         $data = [
    147             'roles' => count_users()["avail_roles"],
    148             'total' => $users_query->get_total(),
    149         ];
    150 
    151         $results = $users_query->get_results();
    152 
    153         // Users Data
    154         $users = [];
    155 
    156         foreach ( $results as $user ) {
    157 
    158             // Gravatar
    159             $display_gravatar = igd_get_user_gravatar( $user->ID );
    160 
    161             $folders = (array) get_user_option( 'folders', $user->ID );
    162 
    163             $users[] = [
     141        $args = wp_parse_args($args, $default);
     142        $users_query = new \WP_User_Query($args);
     143
     144        $user_data = array_map(function($user) {
     145            return [
    164146                'id'       => $user->ID,
    165                 'avatar'   => $display_gravatar,
     147                'avatar'   => igd_get_user_gravatar($user->ID),
    166148                'username' => $user->user_login,
    167149                'name'     => $user->display_name,
    168150                'email'    => $user->user_email,
    169                 'role'     => implode( ', ', $this->get_role_list( $user ) ),
    170                 'folders'  => ! empty( $folders ) ? array_values( array_filter( $folders ) ) : [],
     151                'role'     => implode(', ', $this->get_role_list($user)),
     152                'folders'  => array_values(array_filter((array) get_user_option('folders', $user->ID))),
    171153            ];
    172         }
    173 
    174         $data['users'] = $users;
    175 
    176         return $data;
     154        }, $users_query->get_results());
     155
     156        return [
     157            'roles' => array_values(array_keys(wp_roles()->roles)),
     158            'total' => $users_query->get_total(),
     159            'users' => array_values($user_data),
     160        ];
    177161    }
    178162
  • integrate-google-drive/trunk/assets/css/admin-rtl.css

    r2996843 r3004719  
    1 .igd-btn{cursor:pointer;width:-moz-max-content;width:max-content;display:flex;align-items:center;color:#fff;padding:8px 12px;border-radius:5px;border:1px solid transparent;line-height:1;text-decoration:none;transition:all .2s ease-in-out;font-size:.875rem}.igd-btn i{margin-left:7px}.igd-btn i:nth-child(2){margin-left:0;margin-right:7px}.igd-btn .igd-spinner{margin:2px 0 0 10px}.igd-btn.btn-primary{background-color:#2fb44b}.igd-btn.btn-primary:hover{background-color:#248c3a}.igd-btn.btn-secondary{background-color:#f1f1f1;border-color:#f1f1f1}.igd-btn.btn-secondary:hover{background-color:#e6e6e6}.igd-btn.btn-success{background-color:#00d084;border-color:#00d084}.igd-btn.btn-success:hover{background-color:#00c674}.igd-btn.btn-warning{background-color:#f9d6b7;color:#a65300}.igd-btn.btn-warning:hover{background-color:#fc9}.igd-btn.btn-danger{background-color:#f8d7da;color:#d8000c}.igd-btn.btn-danger:hover{background-color:#f5c6cb}.igd-btn.btn-info{background-color:#b4d8e7;color:#1f4e6e}.igd-btn.btn-info:hover{background-color:#00a5e6}.igd-btn.btn-light{background-color:#f1f1f1;border-color:#f1f1f1}.igd-btn.btn-light:hover{background-color:#e6e6e6}.igd-btn.btn-dark{background-color:#0071e6;border-color:#0071e6}.igd-btn.btn-dark:hover{background-color:#0058c6}.igd-btn.btn-link{background-color:transparent;border-color:transparent;color:#0071e6}.igd-btn.btn-link:hover{color:#0058c6}.igd-btn.btn-outline-primary{background-color:transparent;border-color:var(--color-primary);color:var(--color-primary)}.igd-btn.btn-outline-primary:hover{background-color:var(--color-primary);color:#fff}.igd-btn.btn-outline-secondary{background-color:transparent;border-color:#f1f1f1;color:#f1f1f1}.igd-btn.btn-outline-secondary:hover{background-color:#f1f1f1;color:#fff}.igd-btn.btn-outline-success{background-color:transparent;border-color:#00d084;color:#00d084}.igd-btn.btn-outline-success:hover{background-color:#00d084;color:#fff}.igd-btn.btn-outline-warning{background-color:transparent;border-color:#ffc800;color:#ffc800}.igd-btn.btn-outline-warning:hover{background-color:#ffc800;color:#fff}.igd-btn.btn-outline-danger{background-color:transparent;border-color:#ff5b5b;color:#ff5b5b}.igd-btn.btn-outline-danger:hover{background-color:#ff5b5b;color:#fff}.igd-btn.btn-outline-info{background-color:transparent;border-color:#00b5ff;color:#00b5ff}.igd-btn.btn-outline-info:hover{background-color:#00b5ff;color:#fff}.igd-btn.btn-outline-light{background-color:transparent;border-color:#f1f1f1;color:#f1f1f1}.igd-btn.btn-outline-light:hover{background-color:#f1f1f1;color:#fff}.igd-btn.btn-outline-dark{background-color:transparent;border-color:#0071e6;color:#0071e6}.igd-btn.btn-outline-dark:hover{background-color:#0071e6;color:#fff}.igd-btn.btn-outline-link{background-color:transparent;border-color:#0071e6;color:#0071e6}.igd-btn.btn-outline-link:hover{background-color:#0071e6;color:#fff}.igd-btn.disabled{color:#999;cursor:not-allowed;background:#f1f1f1!important;border-color:#ccc}.igd-tooltip{z-index:9999999!important;opacity:1!important}.igd-tooltip:before{z-index:-1!important}.igd-notice{border-radius:5px;border:1px solid #f1f1f1;border-right-width:5px;background:#fff;box-shadow:0 1px 1px 0 rgba(0,0,0,.1);padding:1rem;margin:10px 0;display:flex}.igd-notice .igd-notice-content{margin:0;text-align:right;font-size:.9rem;line-height:1.5;color:#757575}.igd-notice.igd-notice-info{border-color:rgba(0,181,255,.5);background:rgba(0,181,255,.1);border-right-color:#00b5ff}.igd-notice.igd-notice-warning{border-color:rgba(255,200,0,.5);background:rgba(255,200,0,.1);border-right-color:#ffc800}@media (max-width:767px){.igd-notice .igd-notice-content{flex-wrap:wrap}}.igd-hidden{display:none!important}.file-item-checkbox{cursor:pointer;display:none;border-radius:50%;transition:all .3s ease;width:-moz-max-content;width:max-content;padding:5px}.file-item-checkbox .box{width:20px;height:20px;border:1px solid #e5e5e5;border-radius:50%;display:flex;align-items:center;justify-content:center;transition:all .3s ease;position:relative;box-shadow:rgba(0,0,0,.05) 0 6px 24px 0,rgba(0,0,0,.08) 0 0 0 1px}.file-item-checkbox .box:hover{border-color:var(--color-primary);box-shadow:0 0 0 2px var(--color-primary-lighter)}.file-item-checkbox:hover{background-color:rgba(0,0,0,.15)}.file-item-checkbox:hover .box{box-shadow:0 0 0 2px var(--color-primary-lighter)}.file-item-checkbox.checked{background-color:rgba(0,0,0,.15)}.file-item-checkbox.checked .box{border-color:var(--color-primary-lighter);background:var(--color-primary);color:#fff;box-shadow:0 0 0 1px var(--color-primary-lighter)}.file-item-checkbox.checked .box:after{content:"";width:5px;height:10px;border:solid #fff;border-width:0 0 2px 2px;transform:rotate(-45deg);box-sizing:border-box;margin-top:-2px}.igd-swal{z-index:99999!important}.igd-swal .swal2-confirm{background-color:#2fb44b!important}.igd-swal .swal2-close:focus{background:100% 0;color:inherit;box-shadow:none}.igd-swal .swal2-cancel,.igd-swal .swal2-deny{background-color:#f08080!important}.igd-swal.save-settings-toast .swal2-popup{display:flex!important;padding:10px}.igd-swal.save-settings-toast .swal2-popup .swal2-html-container{margin-right:5px}.igd-swal.igd-swal-toast .swal2-popup{display:flex!important;padding:10px}.igd-swal.igd-swal-toast .swal2-popup .swal2-html-container{margin-right:5px}.igd-swal .swal2-input{width:auto!important}.igd-swal .swal2-title{font-size:1.2rem;color:#333;font-weight:500}.igd-swal .swal2-html-container{font-size:1rem;color:#555}.igd-swal .swal2-textarea:focus{border-color:#ddd!important;box-shadow:none!important}.igd-swal.igd-review-remind-swal .swal2-deny{background-color:#999!important}.igd-loading-spinner{display:flex;justify-content:center;margin-top:3rem}.igd-loading-spinner svg{width:2.5rem;height:2.5rem}.igd-divi-loading-spinner{display:flex;justify-content:center}.igd-divi-loading-spinner svg{width:100px;height:100px}.igd-spinner{border:2px solid #f3f3f3;border-top:2px solid #3498db;border-radius:50%;width:20px;height:20px;animation:igd-spin 2s linear infinite;display:flex}.igd-spinner.spinner-large{border-width:4px;width:50px;height:50px;animation:igd-spin 1s linear infinite;margin:30px auto}@keyframes igd-spin{0%{transform:rotate(0)}100%{transform:rotate(-360deg)}}.igd-disabled{pointer-events:none!important}.google-drive_page_integrate-google-drive-shortcode-builder{background:#f7f8fa}.google-drive_page_integrate-google-drive-shortcode-builder #wpfooter{display:none}@media (max-width:767px){.google-drive_page_integrate-google-drive-shortcode-builder #wpcontent{padding-left:10px}}.igd-shortcode-builder{width:calc(100% + 20px);margin-right:-20px}@media (max-width:767px){.igd-shortcode-builder{width:100%;margin-right:0}}.igd-shortcode-builder *{box-sizing:border-box}.igd-shortcode-builder-header{display:flex;flex-wrap:wrap;align-items:center;background:#fff;padding:12px 15px;border-bottom:1px solid #e5e5e5;justify-content:space-between;z-index:99;position:sticky;top:32px}.igd-shortcode-builder-header .header-title{display:flex;align-items:center;font-size:1.2rem;font-weight:500;cursor:pointer}.igd-shortcode-builder-header .header-title img{margin-left:10px}.igd-shortcode-builder-header .header-title .shortcode-title{background:#fff;border-radius:7px;padding:5px 12px;border:1px solid rgba(92,99,126,.3);position:relative;margin-right:10px}.igd-shortcode-builder-header .header-actions{display:flex}.igd-shortcode-builder-header .header-actions .btn-back{background:#5c637e;color:#fff;border-color:rgba(47,180,75,.3)}.igd-shortcode-builder-header .header-actions .btn-back:hover{background:#464c61}.igd-shortcode-builder-header .header-actions button{margin-right:15px}@media (max-width:767px){.igd-shortcode-builder-header{margin-right:-10px;margin-left:-10px;padding:10px;top:-50px}.igd-shortcode-builder-header .header-title img{width:30px;margin-left:5px}.igd-shortcode-builder-header .header-title label{font-size:1rem}.igd-shortcode-builder-header .header-title .shortcode-title{height:35px;min-height:unset;margin-right:auto;border-radius:5px;color:#555;font-size:.875rem;font-weight:400}.igd-shortcode-builder-header .header-actions .add-new-btn{margin-right:auto}.igd-shortcode-builder-header .header-actions button{overflow:hidden;padding:7px;font-size:.8rem;margin-right:10px}.igd-shortcode-builder-header .header-actions button:first-child{margin-right:0}.igd-shortcode-builder-header .header-actions button i{margin-left:3px}.igd-shortcode-builder-header .header-actions button span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.igd-shortcode-builder-header:has(.btn-back) .header-title{width:100%}.igd-shortcode-builder-header:has(.btn-back) .header-title label{max-width:35%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-shortcode-builder-header:has(.btn-back) .header-actions{width:100%;justify-content:center;margin-top:15px}}.igd-shortcode-builder .no-item-placeholder{padding:3rem 5rem;border-radius:10px;border:1px solid rgba(47,180,75,.3);background:#fff;margin:50px auto 0;width:-moz-max-content;width:max-content;display:flex;align-items:center;justify-content:center;flex-direction:column}.igd-shortcode-builder .no-item-placeholder img{width:200px;margin-right:-40px}.igd-shortcode-builder .no-item-placeholder h3{color:#7a7a7a;margin:1.5rem;font-weight:500}.igd-shortcode-builder .no-item-placeholder button{margin-top:1rem}.igd-shortcode-builder .selection-actions-wrap{display:flex;align-items:center;margin-top:30px}.igd-shortcode-builder .selection-actions-wrap .selection-count{font-weight:500;background:rgba(47,180,75,.1);padding:10px 10px;border-radius:5px;height:35px;border:1px solid rgba(47,180,75,.3);display:flex;align-items:center;justify-content:center;font-size:.9rem}.igd-shortcode-builder .selection-actions-wrap .igd-btn{margin-right:10px;height:35px}.igd-shortcode-builder .igd-shortcode-list{width:100%;border-collapse:separate;border-spacing:0 20px}.igd-shortcode-builder .igd-shortcode-list-header{display:flex;align-items:center;justify-content:space-between;margin-top:15px;margin-bottom:15px}.igd-shortcode-builder .igd-shortcode-list-header .igd-shortcode-list-title{font-size:1.2rem;font-weight:600;margin:0;display:flex;align-items:center}.igd-shortcode-builder .igd-shortcode-list-header .igd-shortcode-list-title .shortcode-list-count{font-size:1rem;font-weight:400;color:#777;margin-right:7px}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings i{width:25px;height:25px;font-size:25px;color:#5c637e;cursor:pointer}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .list-settings-tooltip{display:flex;flex-wrap:wrap;justify-content:space-between;max-width:580px}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .list-settings-tooltip .settings-columns{width:100%;margin-bottom:10px}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .settings-wrap{margin-bottom:5px}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .settings-wrap h4{margin-top:0;margin-bottom:7px}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .settings-wrap .components-select-control{min-width:100px}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .settings-wrap .components-select-control__input{height:35px}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .settings-wrap .components-input-control__backdrop{border-color:#eee}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .column-options{display:flex}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .column-options .igd-column-setting{margin-bottom:10px;margin-left:10px;border:1px solid #eee;padding:5px 7px;border-radius:5px}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .column-options .igd-column-setting .components-base-control__field{display:flex;align-items:center}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .column-options .components-checkbox-control__input-container{margin-left:5px}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .components-checkbox-control__label{text-transform:capitalize;font-size:.75rem;font-weight:500}.igd-shortcode-builder .igd-shortcode-list-wrap{padding:20px}.igd-shortcode-builder .igd-shortcode-list thead{background:#fff}.igd-shortcode-builder .igd-shortcode-list thead th{padding:24px 15px;font-size:.875rem;color:#555;border-right-width:0;border-left-width:0;margin-bottom:1rem}.igd-shortcode-builder .igd-shortcode-list thead th:first-child{border-radius:0 10px 10px 0}.igd-shortcode-builder .igd-shortcode-list thead th:last-child{border-radius:10px 0 0 10px;text-align:left;padding-left:70px}.igd-shortcode-builder .igd-shortcode-list tbody td,.igd-shortcode-builder .igd-shortcode-list tbody th{padding:15px 20px;font-size:.875rem;color:#555;text-align:right;white-space:nowrap}.igd-shortcode-builder .igd-shortcode-list tbody td:first-child,.igd-shortcode-builder .igd-shortcode-list tbody th:first-child{border-radius:0 10px 10px 0}.igd-shortcode-builder .igd-shortcode-list tbody td:last-child,.igd-shortcode-builder .igd-shortcode-list tbody th:last-child{border-radius:10px 0 0 10px}.igd-shortcode-builder .igd-shortcode-list-item{transition:all .3s ease;background:#fff}.igd-shortcode-builder .igd-shortcode-list-item:hover{background:#eaf2fa}.igd-shortcode-builder .igd-shortcode-list .col-selection{width:60px;text-align:center;padding-left:0}.igd-shortcode-builder .igd-shortcode-list .col-id{width:30px}.igd-shortcode-builder .igd-shortcode-list .col-title{text-align:right}.igd-shortcode-builder .igd-shortcode-list .col-shortcode-type{text-align:right}.igd-shortcode-builder .igd-shortcode-list .col-shortcode-type>div{display:flex;align-items:center;justify-content:flex-start}.igd-shortcode-builder .igd-shortcode-list .col-shortcode-type>div img{margin-left:10px;width:24px}.igd-shortcode-builder .igd-shortcode-list .col-shortcode-status{width:100px;text-align:center}.igd-shortcode-builder .igd-shortcode-list .col-locations{text-align:center}.igd-shortcode-builder .igd-shortcode-list .col-locations .location-count{text-align:center;font-weight:700;cursor:pointer;border:1px solid #5c637e;border-radius:5px;padding:5px 10px;color:#5c637e}.igd-shortcode-builder .igd-shortcode-list .col-locations .location-count:hover{background:#5c637e;color:#fff}.igd-shortcode-builder .igd-shortcode-list .col-locations h3{margin-top:0;margin-bottom:10px;color:#555}.igd-shortcode-builder .igd-shortcode-list .col-locations .locations-tooltip{padding:15px;max-width:250px}.igd-shortcode-builder .igd-shortcode-list .col-locations .location-item{margin-bottom:7px;overflow:hidden}.igd-shortcode-builder .igd-shortcode-list .col-locations .location-item a{text-decoration:none;display:flex;align-items:center;overflow:hidden}.igd-shortcode-builder .igd-shortcode-list .col-locations .location-item a .location-index{margin-left:5px}.igd-shortcode-builder .igd-shortcode-list .col-locations .location-item a .location-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.igd-shortcode-builder .igd-shortcode-list .col-locations .location-item a i{margin-right:7px}.igd-shortcode-builder .igd-shortcode-list .col-created{text-align:center}.igd-shortcode-builder .igd-shortcode-list .col-code>div{display:flex;align-items:center;justify-content:flex-start;position:relative;width:-moz-max-content;width:max-content;margin:auto}.igd-shortcode-builder .igd-shortcode-list .col-code>div code{padding:7px 35px 7px 10px;background:#fff;color:#5c637e;border-radius:7px;border:1px solid rgba(92,99,126,.2);font-size:12px}.igd-shortcode-builder .igd-shortcode-list .col-code>div i{right:3px;color:#5c637e;padding:7px;border-radius:30px;height:auto;width:auto;cursor:pointer;position:absolute;font-size:24px}.igd-shortcode-builder .igd-shortcode-list .col-actions{padding-left:10px;text-align:left}.igd-shortcode-builder .igd-shortcode-list .col-actions button{padding:7px 10px;display:inline-flex;background:#5c637e;height:35px}.igd-shortcode-builder .igd-shortcode-list .col-actions button:hover{background:#464c61}.igd-shortcode-builder .igd-shortcode-list .col-actions .btn-tools{margin-right:15px;padding:0;background:100% 0!important;color:#5c637e}.igd-shortcode-builder .igd-shortcode-list .col-actions .btn-tools img{width:26px}.igd-shortcode-builder .igd-shortcode-list .col-actions .options-tooltip{padding:0;border-radius:7px;box-shadow:0 0 10px rgba(0,0,0,.1)}.igd-shortcode-builder .igd-shortcode-list .col-actions .action-tools{display:flex;flex-direction:column}.igd-shortcode-builder .igd-shortcode-list .col-actions .action-tools button{padding:10px 15px;display:flex;background:100% 0;color:#555;justify-content:flex-start;border-radius:0;border-bottom:1px solid #e5e5e5;font-size:.875rem;width:100%}.igd-shortcode-builder .igd-shortcode-list .col-actions .action-tools button:hover{background:rgba(92,99,126,.1)}.igd-shortcode-builder .igd-shortcode-list .col-actions .action-tools button:last-child{border-bottom:none;margin-bottom:0}.igd-shortcode-builder .igd-shortcode-list-footer{display:flex;align-items:center;justify-content:center}@media (max-width:767px){.igd-shortcode-builder .igd-shortcode-list-wrap{overflow-x:auto;margin-left:10px}}.igd-shortcode-builder .igd-shortcode-builder-form{overflow-y:unset}.igd-shortcode-builder-form{display:flex;flex-wrap:wrap;align-items:flex-start}.igd-shortcode-builder-form .shortcode-builder-sidebar{width:20%;background:#fff;max-width:200px;padding:20px;position:sticky;top:100px;min-height:100vh;border-left:1px solid #eaeaea}.igd-shortcode-builder-form .shortcode-builder-sidebar.tab-advanced,.igd-shortcode-builder-form .shortcode-builder-sidebar.tab-notifications{top:0}.igd-shortcode-builder-form .shortcode-builder-sidebar.tab-permissions{top:-30px}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs{display:flex;flex-direction:column;align-items:center}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab{display:flex;align-items:center;flex-direction:column;justify-content:center;padding:1rem;background:#e9f9ec;border:1px dashed rgba(47,180,75,.3);width:100%;color:#333;border-radius:10px}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap{max-width:100%;position:relative;cursor:pointer;width:120px;display:flex;align-items:center;justify-content:center}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap:not(:last-child){margin-bottom:40px}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap:not(:last-child):after{content:"";height:40px;width:12px;background:#f7f8fa;position:absolute;top:100%}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap.active .shortcode-tab{background:#47cf64;color:#fff}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap.active .shortcode-tab .tab-icon{background-color:#fff}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap.active:after{background:#47cf64}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap:not(.active):hover .shortcode-tab{background:rgba(47,180,75,.3)}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-icon{width:30px;height:30px;margin-bottom:10px;background-color:#2fb44b;mask-size:cover;-webkit-mask-size:cover}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-icon.icon-type{-webkit-mask:url(../images/shortcode-builder/tabs/type.svg) no-repeat center/cover;mask:url(../images/shortcode-builder/tabs/type.svg) no-repeat center/cover}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-icon.icon-sources{-webkit-mask:url(../images/shortcode-builder/tabs/sources.svg) no-repeat center;mask:url(../images/shortcode-builder/tabs/sources.svg) no-repeat center}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-icon.icon-filters{-webkit-mask:url(../images/shortcode-builder/tabs/filters.svg) no-repeat center;mask:url(../images/shortcode-builder/tabs/filters.svg) no-repeat center}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-icon.icon-advanced{-webkit-mask:url(../images/shortcode-builder/tabs/advanced.svg) no-repeat center;mask:url(../images/shortcode-builder/tabs/advanced.svg) no-repeat center}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-icon.icon-notifications{-webkit-mask:url(../images/shortcode-builder/tabs/notifications.svg) no-repeat center;mask:url(../images/shortcode-builder/tabs/notifications.svg) no-repeat center}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-icon.icon-permissions{-webkit-mask:url(../images/shortcode-builder/tabs/permissions.svg) no-repeat center;mask:url(../images/shortcode-builder/tabs/permissions.svg) no-repeat center}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-name{font-size:.85rem;text-transform:uppercase;font-weight:500;white-space:nowrap}@media (max-width:767px){.igd-shortcode-builder-form .shortcode-builder-sidebar{width:100%;max-width:100%;background:100% 0;height:auto;min-height:auto;margin:20px 0;padding:0;position:static;border:0}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs{flex-direction:row}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab{background:100% 0;padding:0;border:0;color:#777}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-name{font-size:.7rem;font-weight:400;text-transform:capitalize}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-icon{width:26px;height:26px;margin-bottom:7px;background:#777}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap{width:auto}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap:not(:last-child){margin-bottom:0}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap:not(:last-child):after{display:none}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap.active .shortcode-tab{background:100% 0;color:#2fb44b}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap.active .shortcode-tab .tab-icon{background-color:#2fb44b}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap.active .shortcode-tab .tab-name{font-weight:500}}.igd-shortcode-builder-form .shortcode-builder-content{flex:1}.igd-shortcode-builder-form:has(.shortcode-builder-sidebar) .shortcode-builder-content{width:80%;max-width:calc(100% - 200px);min-height:100vh;display:flex;flex-direction:column}.igd-shortcode-builder-form .form-footer{display:flex;align-items:center;justify-content:space-between;margin-top:auto;position:sticky;bottom:0;padding:10px 15px;border-top:1px solid #eaeaea;background:#fff;z-index:9}.igd-shortcode-builder-form .form-footer button:first-child,.igd-shortcode-builder-form .form-footer button:last-child{background:#fff;color:#2fb44b;border-color:rgba(47,180,75,.3)}.igd-shortcode-builder-form .form-footer button:first-child:hover,.igd-shortcode-builder-form .form-footer button:last-child:hover{background:#d5f0db}.igd-shortcode-builder-form .form-footer button.disabled{opacity:.5;pointer-events:none;background:#ddd;border-color:#ddd}.igd-shortcode-builder-form .form-footer button.disabled:hover{background:#ddd;border-color:#ddd}@media (max-width:767px){.igd-shortcode-builder-form .form-footer{margin:0 -10px}.igd-shortcode-builder-form .form-footer button{font-weight:400}.igd-shortcode-builder-form .form-footer button span{font-size:14px}}.igd-shortcode-builder-form.editor-mode .shortcode-builder-sidebar{top:0}.igd-shortcode-builder-form.editor-mode .shortcode-builder-content{padding:0;display:flex;flex-direction:column;height:calc(100vh - 50px)}.shortcode-module{padding:15px}.shortcode-module-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px;width:100%;border-bottom:1px solid #e5e5e5;padding-bottom:10px}.shortcode-module-header .module-title{flex:1;text-align:right}.shortcode-module-header .module-title h2{font-size:1.2rem;margin-bottom:5px;font-weight:600;text-align:right;margin-top:0}.shortcode-module-header .module-title span{font-size:.85rem}.shortcode-module-header .module-type{cursor:pointer;display:flex;align-items:center;margin-right:15px;border:1px solid rgba(47,180,75,.3);padding:10px 12px;border-radius:5px;background:#fff;transition:all .2s ease-in-out}.shortcode-module-header .module-type-title{margin-left:10px;font-weight:400;font-size:1rem}.shortcode-module-header .module-type img{width:20px;height:20px;margin-left:7px}.shortcode-module-header .module-type-name{font-size:1rem;font-weight:500}.shortcode-module-header .module-type:hover{background:rgba(213,240,219,.3)}.shortcode-module-header .shortcode-wrap{display:flex;align-items:center;justify-content:flex-start;position:relative;width:-moz-max-content;width:max-content}.shortcode-module-header .shortcode-wrap code{padding:10px 35px 10px 10px;background:#fff;color:#5c637e;border-radius:7px;border:1px solid rgba(47,180,75,.2);font-size:12px;word-break:break-all;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.shortcode-module-header .shortcode-wrap i{right:3px;color:#5c637e;padding:7px;border-radius:30px;height:auto;width:auto;cursor:pointer;position:absolute;font-size:24px}.shortcode-module .shortcode-types{display:flex;flex-wrap:wrap;justify-content:space-between;gap:20px}.shortcode-module .shortcode-types .shortcode-type{width:calc(25% - 20px);padding:1.5rem 1rem;border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;transition:background .3s ease;position:relative;text-align:center;border:1px dashed rgba(47,180,75,.5);background:#fff}.shortcode-module .shortcode-types .shortcode-type .icon-wrap{width:60px;height:60px;background-color:#2fb44b;border-radius:50%;display:flex;align-items:center;justify-content:center}.shortcode-module .shortcode-types .shortcode-type .icon-wrap.icon-browser{background:#eff3fe}.shortcode-module .shortcode-types .shortcode-type .icon-wrap.icon-uploader{background:#eaf7ed}.shortcode-module .shortcode-types .shortcode-type .icon-wrap.icon-gallery{background:#ece8ff}.shortcode-module .shortcode-types .shortcode-type .icon-wrap.icon-slider{background:#e9f0ff}.shortcode-module .shortcode-types .shortcode-type .icon-wrap.icon-media{background:#fff6f5}.shortcode-module .shortcode-types .shortcode-type .icon-wrap.icon-search{background:#e4ffde}.shortcode-module .shortcode-types .shortcode-type .icon-wrap.icon-embed{background:#ecf7ff}.shortcode-module .shortcode-types .shortcode-type .icon-wrap.icon-download{background:#eaf7ed}.shortcode-module .shortcode-types .shortcode-type .icon-wrap.icon-view{background:#f5f8ff}.shortcode-module .shortcode-types .shortcode-type .icon-wrap img{width:32px;height:32px}.shortcode-module .shortcode-types .shortcode-type>span{font-size:1rem;font-weight:600;margin:20px 0 5px;color:#0a0a0a}.shortcode-module .shortcode-types .shortcode-type .description{font-size:.875rem;font-weight:400;color:#757575;margin-top:5px}.shortcode-module .shortcode-types .shortcode-type.active{background:#47cf64;color:#fff}.shortcode-module .shortcode-types .shortcode-type.active>span{color:#fff}.shortcode-module .shortcode-types .shortcode-type.active .description{color:#fff}.shortcode-module .shortcode-types .shortcode-type:not(.active):hover{background:rgba(47,180,75,.2)}.shortcode-module .shortcode-types .shortcode-type .pro-badge{position:absolute;top:10px;left:10px;background:#fdb837;color:#fff;padding:7px;border-radius:7px;font-size:12px;font-weight:400;display:flex;align-items:center;justify-content:center;line-height:1;box-shadow:0 0 5px rgba(0,0,0,.1);transition:all .3s ease}.shortcode-module .shortcode-types .shortcode-type .pro-badge i{height:auto;width:auto;font-size:18px;margin-left:3px}.shortcode-module .shortcode-types .shortcode-type.pro-feature{border-color:#fdb837}.shortcode-module .shortcode-types .shortcode-type.pro-feature:hover{background:rgba(253,184,55,.1)}.shortcode-module .shortcode-types .shortcode-type:last-child{margin-left:auto}.shortcode-module .settings-field{display:flex;flex-wrap:wrap;margin-bottom:15px;align-items:center;border-radius:10px;padding:12px 18px;background:#fff}.shortcode-module .settings-field-title{font-size:1.3rem;margin-bottom:30px;font-weight:600;text-align:right}.shortcode-module .settings-field-title.field-visibility{margin-top:50px}.shortcode-module .settings-field-label{width:200px;font-weight:600;font-size:1rem;display:flex;justify-content:space-between;text-align:right}.shortcode-module .settings-field-label i{margin-left:7px;color:#777}.shortcode-module .settings-field-label:after{content:":";margin-right:auto}.shortcode-module .settings-field-content{display:flex;flex-direction:column;align-items:flex-start;margin-right:20px;flex:1}.shortcode-module .settings-field-content .components-button i{margin-left:5px}.shortcode-module .settings-field-content .description{font-size:.875rem;margin-top:10px;text-align:right;color:#757575;display:flex;align-items:center;flex-wrap:wrap}.shortcode-module .settings-field-content .description .igd-btn,.shortcode-module .settings-field-content .description a{margin-right:10px;text-decoration:none}.shortcode-module .settings-field-content .description+.description{margin-top:0}.shortcode-module .settings-field.filter-field .filter-field-input{display:flex;flex-direction:column}.shortcode-module .settings-field.filter-field .filter-field-all{display:flex;align-items:center;justify-content:flex-start;margin-top:15px;flex-wrap:wrap}.shortcode-module .settings-field.filter-field .filter-field-all>div{display:flex;align-items:center}.shortcode-module .settings-field.filter-field .filter-field-all>div:first-child{margin-left:20px}.shortcode-module .settings-field.filter-field .filter-field-all-label{margin-left:10px;font-weight:500;font-size:.875rem;white-space:nowrap}.shortcode-module .settings-field.filter-field .filter-field-all .description{width:100%;text-align:right}.shortcode-module .settings-field.filter-field .filter-field-all ul{margin-top:0;padding-right:10px;margin-right:10px;list-style:disc}.shortcode-module .settings-field.filter-field .name-filter-option{display:flex;flex-wrap:wrap;align-items:center;margin-top:10px}.shortcode-module .settings-field.filter-field .name-filter-option h4{margin:0 0 0 15px;font-size:.875rem;font-weight:500}.shortcode-module .settings-field.filter-field .name-filter-option .name-filter-option-item{margin-left:15px;border:1px solid #ddd;border-radius:5px;padding:5px;display:flex;align-items:center;justify-content:center;font-size:.875rem;font-weight:500;color:#777;cursor:pointer;transition:all .3s ease}.shortcode-module .settings-field.filter-field .name-filter-option .name-filter-option-item:hover{background:#f5f8ff;color:#0a0a0a}.shortcode-module .settings-field.filter-field .name-filter-option .components-checkbox-control__input{height:20px;width:20px}.shortcode-module .settings-field.filter-field .name-filter-option .components-checkbox-control__label{margin-right:7px;text-transform:capitalize}@media (max-width:767px){.shortcode-module .settings-field.filter-field .name-filter-option div:not(#jairalok){width:auto;margin-bottom:0}}.shortcode-module .settings-field.sort-field .sort-field-section{display:flex;flex-direction:column}.shortcode-module .settings-field.sort-field .sort-field-section:first-child{margin-left:35px;padding-left:15px;border-left:1px solid #ddd}.shortcode-module .settings-field.sort-field .sort-field-section-wrap{display:flex;margin:15px 30px}.shortcode-module .settings-field.sort-field .sort-field-section-label{margin-bottom:15px;font-weight:500;text-align:right;font-size:.9rem;margin-right:-20px}.shortcode-module .settings-field.sort-field .sort-field-section .sort-item{display:flex;align-items:center;margin-bottom:10px;cursor:pointer;position:relative;font-size:.875rem}.shortcode-module .settings-field.sort-field .sort-field-section .sort-item i{display:none;position:absolute;right:-25px}.shortcode-module .settings-field.sort-field .sort-field-section .sort-item.active{color:#2fb44b}.shortcode-module .settings-field.sort-field .sort-field-section .sort-item.active i{display:block}.shortcode-module .settings-field.filter-users-field .filter-users-group{display:flex;flex-direction:column}.shortcode-module .settings-field .filter-users{margin-top:15px;display:flex;flex-direction:column;border:1px dashed #ddd;padding:15px;border-radius:7px;width:100%}.shortcode-module .settings-field .filter-users-title{font-weight:500;font-size:1rem;margin-bottom:10px;text-align:right;margin-top:0}.shortcode-module .settings-field .filter-users-section{display:flex;align-items:center}.shortcode-module .settings-field .filter-users-section:first-child{margin-left:20px}.shortcode-module .settings-field .filter-users-section-label{margin-left:10px;font-weight:500;font-size:1rem}.shortcode-module .settings-field .filter-users-section-wrap{display:flex;flex-wrap:wrap}.shortcode-module .settings-field .filter-users-section-wrap .description{width:100%;margin-bottom:0}.shortcode-module .settings-field.field-parent-folder .shortcode-module .igd-select-sources-wrap{margin-top:10px}.shortcode-module .settings-field.field-upload-confirmation-message .description{margin-top:-5px;margin-bottom:15px}.shortcode-module .settings-field.field-upload-confirmation-message .wp-editor-wrap{width:100%}.shortcode-module .settings-field.field-upload-confirmation-message .wp-editor-wrap textarea{border:none}.shortcode-module .settings-field.field-upload-confirmation-message .wp-switch-editor{height:29px}.shortcode-module .settings-field.field-upload-confirmation-message textarea{width:100%;border:1px solid #eee;padding:15px;min-width:200px}.shortcode-module .settings-field.field-upload-confirmation-message textarea:focus{outline:0;box-shadow:none}.shortcode-module .settings-field.field-allow-search input[type=text]{width:100%}.shortcode-module .settings-field.field-private-folder input[type=text]{width:100%}.shortcode-module .settings-field.field-private-folder .settings-field-label{margin-top:15px}.shortcode-module .settings-field.field-gallery-image-size .gallery-custom-size-wrap{display:flex}.shortcode-module .settings-field.field-gallery-image-size .gallery-custom-size-wrap .components-base-control:first-child{display:flex;align-items:center}.shortcode-module .settings-field.field-gallery-image-size .gallery-custom-size-wrap .components-base-control:first-child:after{content:"X";margin-right:10px;margin-left:10px;font-weight:500}.shortcode-module .settings-field.field-gallery-image-size .gallery-custom-size-wrap .components-text-control__input{width:110px}.shortcode-module .settings-field.field-access-denied-message{flex-direction:column;align-items:flex-start}.shortcode-module .settings-field.field-access-denied-message .settings-field-label{width:100%}.shortcode-module .settings-field.field-access-denied-message .settings-field-label:after{content:""}.shortcode-module .settings-field.field-access-denied-message .description{margin-top:-5px;margin-bottom:15px}.shortcode-module .settings-field.field-access-denied-message .wp-editor-wrap{width:100%}.shortcode-module .settings-field.field-access-denied-message .wp-editor-wrap textarea{border:none}.shortcode-module .settings-field.field-access-denied-message .wp-switch-editor{height:29px}.shortcode-module .settings-field.field-access-denied-message textarea{width:100%;border:1px solid #eee;padding:15px;min-width:200px}.shortcode-module .settings-field.field-access-denied-message textarea:focus{outline:0;box-shadow:none}.shortcode-module .settings-field .components-select-control select,.shortcode-module .settings-field input[type=email],.shortcode-module .settings-field input[type=number],.shortcode-module .settings-field input[type=text],.shortcode-module .settings-field select{height:40px;border-radius:4px;border:1px solid #ddd;font-size:.8rem;width:350px;max-width:100%;padding:10px 15px;line-height:1}.shortcode-module .settings-field .components-select-control select:disabled,.shortcode-module .settings-field input[type=email]:disabled,.shortcode-module .settings-field input[type=number]:disabled,.shortcode-module .settings-field input[type=text]:disabled,.shortcode-module .settings-field select:disabled{background:#f5f5f5;color:#aaa;cursor:not-allowed}.shortcode-module .settings-field .igd-select{width:400px}.shortcode-module .settings-field .igd-select.filter-users-select{max-width:100%}.shortcode-module .settings-field .igd-select__control.igd-select__control--is-focused{border-color:#2fb44b;box-shadow:none}.shortcode-module .settings-field .igd-select__input{height:auto}.shortcode-module .settings-field .igd-select__input:focus{border:none;box-shadow:none}.shortcode-module .settings-field .igd-select__menu{border-radius:7px;border:1px solid rgba(47,180,75,.3);box-shadow:0 0 5px rgba(0,0,0,.1);z-index:99}.shortcode-module .settings-field .igd-select__menu .igd-select__option{padding:10px 15px;font-size:.8rem;cursor:pointer}.shortcode-module .settings-field .igd-select__menu .igd-select__option:hover{background:rgba(47,180,75,.1)}.shortcode-module .settings-field .igd-select__menu .igd-select__option--is-focused{background:rgba(47,180,75,.1)}.shortcode-module .settings-field .igd-select__multi-value{background:#2fb44b;color:#fff}.shortcode-module .settings-field .igd-select__multi-value .igd-select__multi-value__label{color:#fff}.shortcode-module .settings-field .components-button-group{background:rgba(47,180,75,.1);padding:10px;width:-moz-max-content;width:max-content;border-radius:10px}.shortcode-module .settings-field .components-button-group button{color:#47cf64;box-shadow:inset 0 0 0 1px rgba(47,180,75,.25);margin:0 3px;border-radius:5px;background:#fff}.shortcode-module .settings-field .components-button-group button:first-child{border-top-right-radius:5px;border-bottom-right-radius:5px}.shortcode-module .settings-field .components-button-group button:last-child{border-top-left-radius:5px;border-bottom-left-radius:5px}.shortcode-module .settings-field .components-button-group button.is-primary{z-index:auto;background:#47cf64;color:#fff}.shortcode-module .settings-field .components-button-group button.is-secondary:hover{color:#2fb44b;box-shadow:inset 0 0 0 1px #47cf64}.shortcode-module .settings-field .components-button-group button i{margin-left:5px}.shortcode-module .settings-field .components-range-control{width:350px;margin-top:15px}.shortcode-module .settings-field .components-range-control .components-range-control__wrapper{color:#2fb44b;margin-bottom:0}.shortcode-module .settings-field .components-range-control .components-range-control__wrapper .components-range-control__mark-label{top:20px}.shortcode-module .settings-field .components-range-control .components-range-control__wrapper .components-range-control__thumb-wrapper span{background:#2fb44b}.shortcode-module .settings-field .components-range-control .components-input-control__input{width:auto;height:auto;padding:0 10px 0 0}.shortcode-module .settings-field .components-range-control .components-input-control__backdrop{border-color:#ddd}.shortcode-module .settings-field .components-select-control .components-input-control__backdrop{border-color:#ddd}.shortcode-module .settings-field-sub{display:flex;flex-direction:column;width:100%}.shortcode-module .settings-field-sub .settings-field{flex-direction:column;align-items:flex-start;margin-top:15px;margin-bottom:0;display:flex;border:1px dashed #ddd;padding:10px 15px;border-radius:7px;width:100%}.shortcode-module .settings-field-sub .settings-field-label{margin-top:0;margin-bottom:12px;width:auto}.shortcode-module .settings-field-sub .settings-field-label:after{content:"";display:none}.shortcode-module .settings-field-sub .settings-field-content{width:100%;margin-right:0}.shortcode-module .settings-field-sub .settings-field-content+h4,.shortcode-module .settings-field-sub .settings-field-content>h4{margin-top:15px}@media (max-width:767px){.shortcode-module .shortcode-module-header{flex-flow:column-reverse;align-items:center;text-align:center}.shortcode-module .shortcode-module-header .module-title h2{text-align:center;margin-top:10px}.shortcode-module .shortcode-module-header .module-type{display:none}.shortcode-module .shortcode-module-header .shortcode-wrap{display:none}.shortcode-module .shortcode-types{gap:10px}.shortcode-module .shortcode-types .shortcode-type{width:calc(50% - 5px);text-align:center;padding:1rem}.shortcode-module .settings-field{flex-flow:column;align-items:flex-start;padding:10px}.shortcode-module .settings-field-label{margin-bottom:.5rem;font-size:.875rem;justify-content:flex-start}.shortcode-module .settings-field-label:after{display:none}.shortcode-module .settings-field-content{margin-right:0}.shortcode-module .settings-field input,.shortcode-module .settings-field select{width:100%;height:32px}.shortcode-module .settings-field .igd-select{width:100%}.shortcode-module .settings-field.filter-field .filter-field-all{flex-direction:column;align-items:flex-start;width:100%}.shortcode-module .settings-field.filter-field .filter-field-all div{margin-left:0;display:flex;width:100%}.shortcode-module .settings-field.filter-field .filter-field-all div:first-child{margin-bottom:10px}.shortcode-module .settings-field.filter-field .filter-field-all-label{min-width:70px}.shortcode-module .settings-field .filter-users-section-wrap{flex-direction:column;align-items:flex-start;width:100%}.shortcode-module .settings-field .filter-users-section-wrap .filter-users-section{width:100%}.shortcode-module .settings-field .filter-users-section-wrap .filter-users-section:first-child{margin-bottom:10px}}.igd-module-builder-modal .components-form-toggle,.igd-shortcode-builder .components-form-toggle{width:-moz-max-content;width:max-content;background:#fff;padding:3px;border-radius:15px}.igd-module-builder-modal .components-form-toggle__track,.igd-shortcode-builder .components-form-toggle__track{width:44px;height:22px;border-radius:22px;border-color:#5c637e}.igd-module-builder-modal .components-form-toggle__thumb,.igd-shortcode-builder .components-form-toggle__thumb{background:#5c637e;border:none;width:15px;height:15px;border-radius:25px;top:6px;right:6px}.igd-module-builder-modal .components-form-toggle.is-checked .components-form-toggle__thumb,.igd-shortcode-builder .components-form-toggle.is-checked .components-form-toggle__thumb{background:#fff;transform:translateX(-22px)}.igd-module-builder-modal .components-form-toggle.is-checked .components-form-toggle__track,.igd-shortcode-builder .components-form-toggle.is-checked .components-form-toggle__track{background:#47cf64}.igd-module-builder-modal .components-base-control__field,.igd-shortcode-builder .components-base-control__field{margin-bottom:0;display:flex;align-items:center}.igd-module-builder-modal .components-base-control__field .components-checkbox-control__input,.igd-shortcode-builder .components-base-control__field .components-checkbox-control__input{border-color:rgba(92,99,126,.5);margin:0}.igd-module-builder-modal .components-base-control__field .components-checkbox-control__input-container,.igd-shortcode-builder .components-base-control__field .components-checkbox-control__input-container{margin:0}.igd-module-builder-modal .components-base-control__field .components-checkbox-control__input:checked,.igd-shortcode-builder .components-base-control__field .components-checkbox-control__input:checked{background:#47cf64;border-color:#47cf64}@media (max-width:767px){.igd-module-builder-modal,.igd-shortcode-builder{margin-top:0}.igd-module-builder-modal .shortcode-tabs,.igd-shortcode-builder .shortcode-tabs{flex-wrap:wrap;justify-content:space-between}.igd-module-builder-modal .shortcode-tabs .shortcode-tab,.igd-shortcode-builder .shortcode-tabs .shortcode-tab{margin-left:0!important}.igd-module-builder-modal .shortcode-tabs .shortcode-tab .tab-index,.igd-shortcode-builder .shortcode-tabs .shortcode-tab .tab-index{height:2rem;width:2rem}.igd-module-builder-modal .shortcode-tabs .shortcode-tab:not(:last-child):after,.igd-shortcode-builder .shortcode-tabs .shortcode-tab:not(:last-child):after{width:1rem;height:.3rem}.igd-module-builder-modal .shortcode-builder-content,.igd-shortcode-builder .shortcode-builder-content{padding:0;max-width:100%}}.igd-select-sources-wrap{display:flex;flex-wrap:wrap;align-items:flex-start}.igd-select-sources-wrap .source-title-wrap{width:100%;margin-bottom:20px;text-align:right}.igd-select-sources-wrap .source-title-wrap h3{margin-bottom:5px}.igd-select-sources-wrap .source-title-wrap p{margin:0}.igd-select-sources-wrap .igd-file-browser{border:1px solid rgba(47,180,75,.3);border-radius:10px;overflow:hidden;flex:1;height:auto;background:#fff}.igd-select-sources-wrap .igd-file-browser-header{position:static;z-index:9}.igd-select-sources-wrap .igd-file-browser-header .header-title i{color:#555;display:flex;align-items:center;justify-content:center}.igd-select-sources-wrap .igd-file-browser-header .igd-breadcrumb .breadcrumb-item:hover{color:#fff;background:#248c3a}.igd-select-sources-wrap .igd-file-browser .select-btn{position:absolute;color:#fff;left:10px;border:1px solid rgba(47,180,75,.3);z-index:2;display:flex;align-items:center;border-radius:3px;padding:5px;background:#2fb44b;cursor:pointer;line-height:1;transition:background .3s ease;font-size:.875rem}.igd-select-sources-wrap .igd-file-browser .select-btn i{margin-left:0}.igd-select-sources-wrap .igd-file-browser .select-btn span{margin-right:5px;display:none}.igd-select-sources-wrap .igd-file-browser .select-btn.active{background:#ff9f10;border-color:#dc8400}.igd-select-sources-wrap .igd-file-browser .select-btn:hover span{display:block}.igd-select-sources-wrap .igd-file-browser .file-list .file-item:not(.folder-item):hover .select-btn span{display:block}.igd-select-sources-wrap .igd-file-browser .file-list:not(.list-view) .file-item:not(.folder-item) .select-btn{top:10px}.igd-select-sources-wrap .igd-selected-list{width:30%;max-width:300px;margin-right:15px;border:1px solid rgba(47,180,75,.3);border-radius:10px;overflow:hidden;background:#fff;position:sticky;top:120px}.igd-select-sources-wrap .igd-selected-list-header{padding:10px;background:#2fb44b;color:#fff;display:flex;align-items:center;justify-content:space-between}.igd-select-sources-wrap .igd-selected-list-header .header-title{font-size:1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-select-sources-wrap .igd-selected-list-header button{padding:7px 10px;font-size:.8rem;border-radius:5px;background:#ff9f10;border:none}.igd-select-sources-wrap .igd-selected-list-header button span{white-space:nowrap}.igd-select-sources-wrap .igd-selected-list-header button:hover{color:#ff9f10;background:#fff}.igd-select-sources-wrap .igd-selected-list .no-files-message{display:flex;justify-content:center;align-items:center;font-size:1rem;color:#ff9f10;margin:30px auto}.igd-select-sources-wrap .igd-selected-list .no-files-message i{margin-left:5px}.igd-select-sources-wrap .igd-selected-list>p{padding:10px;font-size:.875rem;color:#555;border:1px solid #ddd;margin:30px 10px 10px;border-radius:5px;background:rgba(48,142,225,.1);text-align:center}.igd-select-sources-wrap .igd-selected-list>p span{display:block;margin-top:10px}.igd-select-sources-wrap .no-account-placeholder{width:auto;flex:1;margin-top:0}@media (max-width:767px){.igd-select-sources-wrap{flex-direction:column}.igd-select-sources-wrap .igd-selected-list{margin-right:0}}.selected-item{display:flex;align-items:center;padding:10px 15px;border-bottom:1px solid #ddd;font-size:.875rem;z-index:99}.selected-item .item-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-left:7px}.selected-item .remove-item{color:#fff;background:#ff9f10;border:1px solid #dc8400;display:flex;align-items:center;justify-content:center;height:25px;width:25px;min-width:25px;font-size:18px;border-radius:50%;opacity:.7;margin-right:auto;cursor:pointer}.selected-item .remove-item:hover{opacity:1;background:#fff;color:#ff9f10}.selected-item .dashicons-category,.selected-item .dashicons-move,.selected-item img{margin-left:10px;color:#8f8f8f}.selected-item .dashicons-move{cursor:pointer}.selected-item .dashicons-move:hover{color:#555}.selected-item .file-item{display:flex;align-items:center;overflow:hidden;flex:1;cursor:pointer}.selected-item.sortable-item{border:none}.igd-shortcode-preview,.igd-shortcode-preview *{box-sizing:border-box}.igd-shortcode-preview-container{z-index:99999!important}.igd-shortcode-preview-container,.igd-shortcode-preview-container *{box-sizing:border-box}.igd-shortcode-preview-popup{display:flex!important;align-items:center;justify-content:center;position:absolute!important;grid-column:auto!important;grid-row:auto!important;background:100% 0;width:97%!important;height:95%!important}.igd-shortcode-preview-popup .swal2-html-container{width:100%!important;height:100%!important;background:#fff;border-radius:.5rem!important;margin:auto!important}.igd-shortcode-preview-header{display:flex;align-items:center;justify-content:space-between;padding:.8rem;border-bottom:1px solid #ddd;margin-bottom:1rem;position:sticky;top:0;z-index:10;background:#fff;box-shadow:0 .5rem 1rem rgba(0,0,0,.1)}.igd-shortcode-preview-header .header-title i{margin-left:7px}.igd-shortcode-preview-header button i{margin-left:0}.igd-shortcode-preview .preview-inner{text-align:right;padding:1rem 2rem}.swal2-container.swal2-top-end{z-index:99999!important}.igd-module-builder-modal{height:100%;display:flex;flex-direction:column;background:#f7f8fa}.igd-module-builder-modal *{box-sizing:border-box}.igd-module-builder-modal-wrap{height:100%}.igd-module-builder-modal-wrap.inline-select .shortcode-module{padding:0}.igd-module-builder-modal-wrap.inline-select .shortcode-builder-content{height:auto;max-width:100%;min-height:auto}.igd-module-builder-modal-container{z-index:99999999!important}.igd-module-builder-modal-container .swal2-popup{width:95%;height:90vh;padding:0;overflow:hidden}.igd-module-builder-modal-container .swal2-popup .swal2-html-container{margin:0;border-radius:.5rem;overflow-y:auto}.igd-module-builder-modal-header{display:flex;align-items:center;padding:12px 1rem;border-bottom:1px solid #eaeaea;background:#fff;z-index:99;box-shadow:0 0 .5rem rgba(0,0,0,.1);position:sticky;top:0}.igd-module-builder-modal-header .header-title{display:flex;align-items:center}.igd-module-builder-modal-header .header-title i{margin-left:7px}.igd-module-builder-modal-header .header-title h3{font-size:1.2rem;margin:0;font-weight:500}@media (max-width:600px){.igd-module-builder-modal-header .header-title h3{font-size:1rem}}.igd-module-builder-modal-header .close{margin-right:auto;margin-left:15px}.igd-module-builder-modal-header button{padding:7px 10px;font-size:.9rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-module-builder-modal-header .done .igd-spinner{display:none}.igd-module-builder-modal-header .done.loading i{display:none}.igd-module-builder-modal-header .done.loading .igd-spinner{display:inline-block}.igd-module-builder-modal .shortcode-module .media-uploader-post-content{margin-bottom:30px}.igd-module-builder-modal .shortcode-module .media-uploader-post-content textarea{width:100%;height:auto;padding:8px 12px;line-height:27px;vertical-align:top}.igd-module-builder-modal .shortcode-module-header{align-items:flex-start}.igd-module-builder-modal .shortcode-module-header .module-title{line-height:1}.igd-module-builder-modal .shortcode-module .igd-selected-list{top:20px}.igd-module-builder-modal .shortcode-module-body>.settings-field:last-child{margin-bottom:0}.igd-shortcode-builder-form{margin:0;overflow-y:auto;flex:1;display:flex}.igd-shortcode-builder-form .content-sources .settings-field.form-entry-field{margin-top:20px}.igd-shortcode-builder-form .content-sources .settings-field.form-entry-field input[type=text]{width:100%}.igd-shortcode-builder-form .content-sources .form-entry-title{margin-top:30px}.igd-shortcode-builder-form .content-sources #igd-select-files{width:100%;margin-bottom:20px}.igd-shortcode-builder-form .content-sources #igd-select-files .igd-body{max-height:400px}.module-builder-placeholder{display:flex;align-items:center;flex-flow:column;justify-content:center;text-align:center;border:1px solid #eaeaea;padding:2rem;border-radius:10px;max-width:380px;margin:auto;background:#fafafa}.module-builder-placeholder img{width:50px}.module-builder-placeholder h3{font-size:22px;margin-bottom:5px;font-weight:500;color:#333}.module-builder-placeholder p{font-size:.875rem;color:#555}.module-builder-placeholder button{margin-top:10px;padding:10px 15px}.module-builder-placeholder.pro-placeholder h4{margin-top:20px;margin-bottom:0;font-size:1.5rem;color:#ff9458;font-weight:500}.igd-shortcode-data-modal-container .igd-shortcode-data-modal-input{height:150px;padding:1rem;border-radius:.5rem;line-height:1.2;font-size:.878885rem}.igd-shortcode-data-modal-container .swal2-confirm{background:#2fb44b}#igd_data{display:none!important}.igd-form-uploader-trigger>*{pointer-events:none}.igd-file-browser{display:flex;flex-flow:column;align-items:flex-start;width:100%}.igd-file-browser,.igd-file-browser *{box-sizing:border-box}.igd-file-browser .btn-primary{background:var(--color-primary)}.igd-file-browser .btn-primary:hover{background:var(--color-primary-light-alt)}.igd-file-browser-header{display:flex;align-items:center;background:#fff;border-bottom:1px solid #e5e5e5;padding:12px 15px;position:sticky;top:32px;width:100%;z-index:9;height:60px}.igd-file-browser-header .header-title{display:flex;align-items:center;font-size:1rem;font-weight:600;color:#fff}.igd-file-browser-header .header-title i,.igd-file-browser-header .header-title img{margin-left:10px;background:#fff;padding:5px;height:35px;width:35px;border-radius:50%;color:#fff}.igd-file-browser-header .header-action{display:flex;align-items:center;margin-right:auto;justify-content:flex-end}.igd-file-browser-header .header-action-item{margin-right:15px;cursor:pointer;color:#444;background:#f7f8fa;height:40px;width:40px;border-radius:10px;display:flex;align-items:center;justify-content:center;transition:all .2s ease-in-out}.igd-file-browser-header .header-action-item img{width:18px}.igd-file-browser-header .header-action-item:hover{background:var(--color-primary-lighter)}.igd-file-browser-header .user-box{display:flex;align-items:center;width:auto;padding:5px;max-width:250px;height:45px;background:100% 0}.igd-file-browser-header .user-box .user-info{display:flex;flex-direction:column;line-height:1;overflow:hidden;text-align:right}.igd-file-browser-header .user-box .user-info span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.igd-file-browser-header .user-box .user-info .user-name{font-size:.9rem;font-weight:600;color:#3d3d3d;margin-bottom:3px}.igd-file-browser-header .user-box .user-info .user-email{color:#7a7a7a;font-weight:300;font-size:.875rem}.igd-file-browser-header .user-box .user-image{width:35px;height:35px;border-radius:50%}.igd-file-browser-header .user-box-modal{display:flex;flex-direction:column;justify-content:flex-start;align-items:center;width:260px;border-radius:10px;max-height:75vh;overflow-y:auto}.igd-file-browser-header .user-box-modal::-webkit-scrollbar{width:5px;display:none}.igd-file-browser-header .user-box-modal::-webkit-scrollbar-track{background:var(--color-primary-lighter)}.igd-file-browser-header .user-box-modal::-webkit-scrollbar-thumb{background:var(--color-primary-light)}.igd-file-browser-header .user-box-modal::-webkit-scrollbar-thumb:hover{background:var(--color-primary)}.igd-file-browser-header .user-box-modal:hover::-webkit-scrollbar{display:block}.igd-file-browser-header .user-box-modal-wrap{border-radius:10px;padding:0;opacity:1;box-shadow:0 1px 0 0 #e5e5e5}.igd-file-browser-header .user-box-modal-wrap:after,.igd-file-browser-header .user-box-modal-wrap:before{right:calc(100% - 45px)}.igd-file-browser-header .user-box-modal-title{font-size:1.2rem;font-weight:500;display:block;position:sticky;background:#fff;top:0;width:100%;text-align:center;padding:15px;box-shadow:0 1px 0 0 #e5e5e5;margin-bottom:7px}.igd-file-browser-header .user-box-modal button{margin:10px auto 20px auto;padding:8px 12px;font-size:.875rem}.igd-file-browser-header .user-box-modal>div:last-child{margin-bottom:15px}.igd-file-browser-header .user-box-account{display:flex;align-items:center;border:1px solid #e5e5e5;padding:7px;border-radius:5px;cursor:pointer;width:calc(100% - 30px);margin:7px}.igd-file-browser-header .user-box-account.active,.igd-file-browser-header .user-box-account:hover{background:var(--color-primary-lighter);color:#000}.igd-file-browser-header .user-box-account img{width:30px;height:30px;border-radius:50%;margin-left:10px}.igd-file-browser-header .user-box-account .account-info{display:flex;flex-flow:column;overflow:hidden;text-align:right;line-height:1.5}.igd-file-browser-header .user-box-account .account-info .account-name{font-size:.9rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-file-browser-header .user-box-account .account-info .account-email{font-size:.8rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#7a7a7a}.igd-file-browser-header .user-box-account .active-badge{background:var(--color-primary);color:#fff;border-radius:50%;position:relative;margin-right:auto;left:0}.igd-file-browser-header .user-box .user-arrow{width:16px;margin-right:10px}@media (max-width:768px){.igd-file-browser-header{top:0;flex-flow:column;align-items:center;height:auto;padding:.5rem}.igd-file-browser-header .header-action{margin-right:0;width:100%;justify-content:center}.igd-file-browser-header .header-action .igd-search-bar input{min-height:35px;height:35px}.igd-file-browser-header .header-action .igd-search-bar i.dashicons-dismiss{margin-right:15px}.igd-file-browser-header .header-action .igd-search-bar i.dashicons-search{height:35px}.igd-file-browser-header .header-action .igd-search-bar.active{position:absolute;width:calc(100% - 20px);z-index:2;height:45px;background:#f7f8fa}.igd-file-browser-header .header-action-item{margin-right:.875rem}.igd-file-browser-header .header-action-item.sidebar-toggle{margin-right:0;margin-left:auto}.igd-file-browser-header .user-box{padding:5px;border-radius:30px;height:40px}.igd-file-browser-header .user-box .user-info{display:none}.igd-file-browser-header .user-box .user-arrow{margin-right:0}.igd-file-browser-header .user-box .user-image{width:30px;height:30px;margin-left:5px}.igd-file-browser-header .user-box-modal-wrap{left:10px;right:auto}}.igd-file-browser .igd-search-bar{display:flex;align-items:center;position:relative;overflow:hidden;margin-bottom:0}.igd-file-browser .igd-search-bar input{width:0;height:0;min-height:0;border:none;transition:all .3s ease;padding:0;margin:0;border:0;background:100% 0;box-shadow:none}.igd-file-browser .igd-search-bar input:focus{outline:0;border:none;box-shadow:none}.igd-file-browser .igd-search-bar .search-submit{margin-right:0;display:flex;align-items:center;justify-content:center;margin-bottom:0}.igd-file-browser .igd-search-bar .search-dismiss{display:none;background:100% 0;cursor:pointer}.igd-file-browser .igd-search-bar .search-dismiss img{width:16px}.igd-file-browser .igd-search-bar.active{width:auto;padding:5px 15px}.igd-file-browser .igd-search-bar.active input{width:100%!important;margin:0 15px;height:100%}.igd-file-browser .igd-search-bar.active .search-submit{margin-bottom:0}.igd-file-browser .igd-search-bar.active .search-dismiss{display:flex}.igd-file-browser .igd-search-bar.active .search-dismiss svg{margin-bottom:0}.igd-file-browser .igd-search-bar.error input{border:1px solid #f77066}.igd-file-browser-body{display:flex;align-items:flex-start;width:100%;height:100%;position:relative}.igd-file-browser .igd-sort{display:flex;align-items:center}.igd-file-browser .igd-sort-select{font-weight:600;cursor:pointer;padding:3px 5px;border-radius:5px}.igd-file-browser .igd-sort-select:hover{background:#ddd}.igd-file-browser .igd-sort-modal{width:220px;padding:0;border-radius:7px;opacity:1!important;box-shadow:rgba(149,157,165,.2) 0 8px 24px}.igd-file-browser .igd-sort-modal .sort-item{display:flex;align-items:center;margin-bottom:15px;padding-right:25px;cursor:pointer;font-size:.9rem}.igd-file-browser .igd-sort-modal .sort-item i{margin-left:5px;display:none}.igd-file-browser .igd-sort-modal .sort-item.active{color:var(--color-primary);padding-right:0}.igd-file-browser .igd-sort-modal .sort-item.active i{display:inline-block}.igd-file-browser .igd-sort-modal .sort-item:hover{color:var(--color-primary)}.igd-file-browser .igd-sort-modal-inner{display:flex;flex-direction:column}.igd-file-browser .igd-sort-modal-inner-section{border-bottom:1px solid #ddd;padding:15px}.igd-file-browser .igd-sort-modal-inner-section:last-child{border-bottom:0}.igd-file-browser .igd-sort-modal-inner-section-title{font-size:.9rem;margin-bottom:10px;display:block;font-weight:500}.igd-file-browser .igd-breadcrumb{display:flex;align-items:center;overflow:hidden;max-width:70%;flex-wrap:wrap}.igd-file-browser .igd-breadcrumb .breadcrumb-item{font-size:.875rem;display:flex;align-items:center;cursor:pointer;padding:5px;border-radius:5px;line-height:1;font-weight:500;color:#444;white-space:nowrap;position:relative;margin-bottom:0}.igd-file-browser .igd-breadcrumb .breadcrumb-item i{margin-right:3px}.igd-file-browser .igd-breadcrumb .breadcrumb-item i.dashicons-arrow-right-alt2{width:13px;height:15px;font-size:15px}.igd-file-browser .igd-breadcrumb .breadcrumb-item i.dashicons-admin-home{margin-left:5px;margin-right:0}.igd-file-browser .igd-breadcrumb .breadcrumb-item i:last-child{display:none}.igd-file-browser .igd-breadcrumb .breadcrumb-item span{margin-bottom:0;max-width:200px;overflow:hidden;text-overflow:ellipsis}.igd-file-browser .igd-breadcrumb .breadcrumb-item:first-child{margin-right:0}.igd-file-browser .igd-breadcrumb .breadcrumb-item:after{content:"";font-family:Dashicons;margin-right:7px}.igd-file-browser .igd-breadcrumb .breadcrumb-item:not(:last-child):after{content:"\f345"}.igd-file-browser .igd-breadcrumb .breadcrumb-item.active:after{content:"\f140";height:auto;width:auto;font-size:22px;margin-right:3px}.igd-file-browser .igd-breadcrumb .breadcrumb-item:hover{color:var(--color-primary);background:var(--color-primary-lighter)}@media (max-width:768px){.igd-file-browser .igd-breadcrumb{max-width:100%;margin-bottom:10px}}.igd-file-browser .collapsed-breadcrumbs{width:210px;opacity:1!important;box-shadow:rgba(149,157,165,.2) 0 8px 24px;padding:10px 0}.igd-file-browser .collapsed-breadcrumbs-item{cursor:pointer;font-size:.875rem;padding:7px 15px;display:flex;align-items:center}.igd-file-browser .collapsed-breadcrumbs-item:hover{color:var(--color-primary)}.igd-file-browser .collapsed-breadcrumbs-item i{margin-left:5px;font-size:1rem;height:1rem;width:1rem}.igd-file-browser .collapsed-breadcrumbs-item span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}.igd-file-browser .collapsed-breadcrumbs-item:before{content:"\f345";font-family:Dashicons,serif;margin-left:7px}.igd-file-browser .igd-root-placeholder{display:flex;flex-direction:column;align-items:center;width:-moz-max-content;width:max-content;margin:3rem auto;padding:50px 30px;border-radius:15px;min-width:30rem;background:#fff;box-shadow:rgba(149,157,165,.2) 0 2px 2px}.igd-file-browser .igd-root-placeholder .igd-placeholder-svg,.igd-file-browser .igd-root-placeholder img{width:200px;margin-bottom:1rem}.igd-file-browser .igd-root-placeholder-title{font-size:1rem;font-weight:500;margin:15px 0 5px 0;color:var(--color-primary)}.igd-file-browser .igd-root-placeholder-text{color:#7a7a7a}.igd-file-browser .igd-root-placeholder button{margin-top:30px}.igd-file-browser .igd-root-placeholder.empty-folder-placeholder img,.igd-file-browser .igd-root-placeholder.search-folder-placeholder img{width:100px}.igd-file-browser .igd-root-placeholder.search-placeholder .igd-placeholder-svg{width:100px;margin-bottom:1rem}.igd-file-browser .igd-root-placeholder.search-placeholder .igd-root-placeholder-title{margin-bottom:1.5rem}.igd-file-browser .igd-root-placeholder.search-placeholder:not(.empty-placeholder) .igd-root-placeholder-title{margin-top:0;margin-bottom:1.5rem}.igd-file-browser .igd-root-placeholder.search-placeholder .igd-search-bar{border:1px solid #ddd;padding:10px 20px;border-radius:5px}.igd-file-browser .igd-root-placeholder.search-placeholder .igd-search-bar .search-dismiss{display:none}.igd-file-browser .igd-root-placeholder.search-placeholder .igd-search-bar input{margin-right:0}.igd-file-browser .igd-root-placeholder+.igd-file-uploader{position:relative!important;margin:30px auto;left:unset;right:unset;bottom:unset}@media (max-width:767px){.igd-file-browser .igd-root-placeholder{min-width:auto}}.igd-sidebar-wrap{width:20%;max-width:230px;border-left:1px solid #e5e5e5;position:sticky;background:#fff}.igd-sidebar .sidebar-uploader{display:flex;align-items:center;justify-content:center;padding:20px 10px 15px;border-bottom:1px solid #e5e5e5}.igd-sidebar .sidebar-uploader button{padding:7px 10px;font-size:.875rem;transition:background .3s ease;background:var(--color-primary)}.igd-sidebar .sidebar-uploader button.active{background:#fff;color:var(--color-primary);border-color:var(--color-primary-light)}.igd-sidebar .sidebar-uploader button.disabled{background:#ddd}.igd-sidebar .sidebar-uploader button.disabled:hover{background:#ddd!important}.igd-sidebar .sidebar-folders{display:flex;flex-direction:column}.igd-sidebar .sidebar-folders .root-item{padding:10px 15px;cursor:pointer;display:flex;align-items:center;font-size:1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-sidebar .sidebar-folders .root-item img{margin-left:10px}.igd-sidebar .sidebar-folders .root-item.active{background:var(--color-primary-lighter);color:var(--color-primary);border-right:5px solid}.igd-sidebar .sidebar-folders .root-item:hover{color:var(--color-primary)}.igd-sidebar .storage-info-wrap{display:flex;align-items:center;margin-top:30px;border-top:1px solid #e5e5e5;padding:15px}.igd-sidebar .storage-info-wrap i{margin-left:10px}.igd-sidebar .storage-info-wrap .storage-info{display:flex;flex-direction:column;flex:1}.igd-sidebar .storage-info-wrap .storage-info-sidebar{width:100%;height:10px;background:var(--color-primary-lighter);border-radius:5px;position:relative}.igd-sidebar .storage-info-wrap .storage-info-sidebar .storage-info-fill{position:absolute;top:0;right:0;width:0;height:100%;background:var(--color-primary);border-radius:5px}.igd-sidebar .storage-info-wrap .storage-info-sidebar .storage-info-fill.fill-danger{background:#f44336}.igd-sidebar .storage-info-wrap .storage-info span{font-size:.8rem;margin-top:5px}@media (max-width:767px){.igd-sidebar{max-width:80%;height:100%;background:#f5f9fd}.igd-sidebar-wrap{width:100%;max-width:100%;position:absolute;z-index:2;background:rgba(0,0,0,.5);height:100%}}.igd-body{display:flex;flex-direction:column;padding:10px;flex:1;width:100%;height:100%;position:relative;background:#f7f8fa}.igd-body .file-list{display:flex;align-items:flex-start;flex-wrap:wrap;overflow-y:auto}.igd-body .file-list .go-prev{display:flex;align-items:center;flex-direction:row!important;padding:10px;cursor:pointer!important;justify-content:flex-start!important;background:var(--color-primary-lighter);transition:all .3s ease;font-size:1rem;font-weight:300}.igd-body .file-list .go-prev i{margin:0 10px;position:relative;transition:all .3s ease;right:0}.igd-body .file-list .go-prev span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-body .file-list .root-item{flex-direction:row!important;padding:10px;cursor:pointer!important;align-items:center;justify-content:flex-start!important;font-size:1rem;background:#fff}.igd-body .file-list .root-item img{margin-left:10px}.igd-body .file-list .root-item .select-btn i{margin-left:0}.igd-body .file-list .file-item{display:flex;flex-direction:column;width:25%;margin:7px;border-radius:5px;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:auto;position:relative;aspect-ratio:1/1;justify-content:flex-end;box-shadow:rgba(0,0,0,.05) 0 6px 24px 0,rgba(0,0,0,.08) 0 0 0 1px;transition:transform .3s ease}.igd-body .file-list .file-item .igd-file-thumbnail{width:100%;height:100%;-o-object-fit:none;object-fit:none;position:absolute;-webkit-user-drag:none;bottom:20px}.igd-body .file-list .file-item .igd-file-thumbnail.has-thumbnail{-o-object-fit:cover;object-fit:cover}.igd-body .file-list .file-item .file-item-footer{display:flex;align-items:center;border-top:1px solid #e5e5e5;z-index:1;background:#fff;line-height:1;height:40px}.igd-body .file-list .file-item .file-item-footer .file-icon-wrap{width:30px;height:30px;display:flex;align-items:center;justify-content:center;margin-left:3px;margin-right:7px}.igd-body .file-list .file-item .file-item-footer .file-icon-wrap .file-icon{width:20px;height:20px;-webkit-user-drag:none}.igd-body .file-list .file-item .file-item-footer .file-icon-wrap .shortcut-icon{position:absolute;right:15px;bottom:8px;border:1px solid #ddd;border-radius:50%}.igd-body .file-list .file-item .file-item-footer .file-item-name{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:.875rem;font-weight:300;margin-left:auto;flex:1;text-align:right}.igd-body .file-list .file-item .file-item-footer .file-item-size{font-size:.75rem;font-weight:400;margin:0 5px;color:#999}.igd-body .file-list .file-item .file-item-footer .file-item-options{margin-right:auto;cursor:pointer;color:#565656;margin-left:7px}.igd-body .file-list .file-item .file-item-footer .file-item-options i{transform:rotate(-90deg);font-size:18px;width:18px;height:18px}.igd-body .file-list .file-item .file-item-footer .file-item-options:hover{color:var(--color-primary)}.igd-body .file-list .file-item.active{border:1px solid var(--color-primary-lighter-alt);transform:scale(1.03)}.igd-body .file-list .file-item.active .file-item-footer{background:var(--color-primary-light-alt);color:#fff}.igd-body .file-list .file-item.active .file-item-footer:not(:has(.file-item-checkbox)) .file-icon{background:#fff;border-radius:3px;box-sizing:content-box!important;padding:2px 5px}.igd-body .file-list .file-item.active .file-item-footer:has(.file-item-checkbox) .file-icon,.igd-body .file-list .file-item.active .file-item-footer:has(.file-item-checkbox) .shortcut-icon{display:none}.igd-body .file-list .file-item.active .file-item-footer .file-item-size{color:inherit}.igd-body .file-list .file-item.active .file-item-footer .file-item-options{color:inherit}.igd-body .file-list .file-item.active .file-item-footer .file-item-checkbox{display:flex;padding:0;border:1px solid #fff}.igd-body .file-list .file-item:hover{transform:scale(1.03)}.igd-body .file-list .file-item:hover .file-item-footer .file-icon-wrap:has(.file-item-checkbox) .file-icon,.igd-body .file-list .file-item:hover .file-item-footer .file-icon-wrap:has(.file-item-checkbox) .shortcut-icon{display:none}.igd-body .file-list .file-item:hover .file-item-footer .file-icon-wrap .file-item-checkbox{display:flex}.igd-body .file-list .file-item:hover .file-item-date{color:#fff}.igd-body .file-list .file-item.folder-item{height:50px;justify-content:center;position:relative;order:1}.igd-body .file-list .file-item.folder-item .file-item-footer{border-top:0;height:100%}.igd-body .file-list .file-item:not(.folder-item){order:3}@media (max-width:768px){.igd-body .file-list .file-item .file-item-footer .file-icon-wrap{margin-left:5px}.igd-body .file-list .file-item .file-item-footer .file-icon-wrap:has(.file-item-checkbox) .file-icon,.igd-body .file-list .file-item .file-item-footer .file-icon-wrap:has(.file-item-checkbox) .shortcut-icon{display:none}.igd-body .file-list .file-item .file-item-footer .file-icon-wrap .file-item-checkbox{display:flex}}.igd-body .file-list .folder-file-divider{width:100%;order:2}.igd-body .file-list.list-view{flex-flow:column;align-items:center}.igd-body .file-list.list-view .go-prev{padding:12px 10px!important}.igd-body .file-list.list-view .list-view-header{display:flex;align-items:center;width:100%;font-size:1rem;position:sticky;top:0;margin-top:10px;margin-bottom:15px;z-index:1;line-height:1}.igd-body .file-list.list-view .list-view-header .col-name{width:50%;padding-right:50px}.igd-body .file-list.list-view .list-view-header .col-size{width:20%;text-align:center}.igd-body .file-list.list-view .list-view-header .col-modified{width:25%;text-align:center}.igd-body .file-list.list-view .list-view-header:not(:has(.col-modified)) .col-name,.igd-body .file-list.list-view .list-view-header:not(:has(.col-size)) .col-name{width:70%}.igd-body .file-list.list-view .list-view-header:not(:has(.col-size)):not(:has(.col-modified)) .col-name{width:90%}.igd-body .file-list.list-view .file-item{width:100%!important;overflow:visible;margin:0;border-radius:0;padding:5px 10px;font-size:.875rem;flex-direction:row;align-items:center;justify-content:space-between;border:1px solid transparent;border-bottom-color:#eee;box-shadow:none;aspect-ratio:auto;background:#fff}.igd-body .file-list.list-view .file-item .file-item-date{width:20%;font-size:.75rem;font-weight:400;margin:0 5px;color:#999;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:right}.igd-body .file-list.list-view .file-item.active{transform:none;background:var(--color-primary-lighter-alt);color:#fff}.igd-body .file-list.list-view .file-item.active .file-item-date{color:inherit}.igd-body .file-list.list-view .file-item:hover{transform:none;background:var(--color-primary-lighter-alt);color:#fff}.igd-body .file-list.list-view .file-item:hover .file-item-footer .file-item-options{color:inherit}.igd-body .file-list.list-view .file-item:hover .file-item-size{color:inherit}.igd-body .file-list.list-view .file-item:hover .file-item-date{color:inherit}.igd-body .file-list.list-view .file-item.folder-item{height:45px}.igd-body .file-list.list-view .file-item .file-item-footer{border:0;width:70%;background:100% 0;height:33px}.igd-body .file-list.list-view .file-item .file-item-footer .file-item-name{width:70%}.igd-body .file-list.list-view .file-item .file-item-footer .file-item-size{width:30%;text-align:center}.igd-body .file-list.list-view .file-item .file-item-footer .file-item-options{position:absolute;left:0}.igd-body .file-list.list-view .file-item .file-item-footer .file-icon-wrap{margin-right:0}.igd-body .file-list.list-view .file-item .file-item-footer:not(:has(.file-item-size)) .file-item-name{width:100%}.igd-body .file-list.list-view .file-item:not(:has(.file-item-date)) .file-item-footer{width:90%}.igd-body .file-list.list-view .file-item:last-child{border-bottom:0}.igd-body .file-list.list-view .root-item{padding:15px 10px;font-size:1rem;justify-content:flex-start}@media (max-width:767px){.igd-body .file-list.list-view .list-view-header .col-name{width:65%}.igd-body .file-list.list-view .list-view-header .col-modified{display:none}.igd-body .file-list.list-view .file-item .file-item-footer{width:90%}.igd-body .file-list.list-view .file-item .file-item-date{display:none}}.igd-body .file-list.empty .list-view-header{display:none}.igd-body .file-list.empty+.igd-file-uploader{margin:10px 7px}.igd-body .file-list.igd-item-col-1 .file-item{width:100%}.igd-body .file-list.igd-item-col-1:not(.list-view) .file-item{margin:4px}.igd-body .file-list.igd-item-col-2 .file-item{width:calc(50% - 14px)}.igd-body .file-list.igd-item-col-3 .file-item{width:calc(33.33% - 14px)}.igd-body .file-list.igd-item-col-3 .file-item .file-item-footer .file-item-size{display:none}.igd-body .file-list.igd-item-col-4 .file-item{width:calc(25% - 14px)}.igd-body .file-list.igd-item-col-5 .file-item{width:calc(20% - 14px)}.igd-body .file-list.igd-item-col-6 .file-item{width:calc(16.66% - 14px)}.igd-body .file-list.igd-item-col-7 .file-item{width:calc(14.28% - 14px)}.igd-body .file-list.igd-item-col-8 .file-item{width:calc(12.5% - 14px)}.igd-body .search-result-info{font-size:1rem;margin:10px 5px 15px 0;display:flex;align-items:center}.igd-body .search-result-info .clear-button{margin-right:10px}.igd-body .loading-wrap{display:flex;justify-content:center;height:100%;width:100%;position:absolute;top:0;right:0;z-index:1}.igd-body .loading-wrap img{width:150px;height:150px;margin-top:2rem}.igd-body.loading{min-height:15rem}.igd-body.loading:not(.lazy-loading) .file-list,.igd-body.loading:not(.lazy-loading) .igd-gallery-images{opacity:.3}.igd-body.loading:not(.lazy-loading) .file-list .file-item,.igd-body.loading:not(.lazy-loading) .igd-gallery-images .file-item{transform:none;transition:none}.igd-body.lazy-loading .loading-wrap{position:unset}.igd-body.lazy-loading .loading-wrap img{margin-top:-1rem}.igd-details{display:flex;flex-flow:column;padding:20px 15px}.igd-details-wrap{width:250px;position:sticky;border-right:1px solid #e5e5e5;background:#fff}.igd-details .close-details{align-self:flex-end;cursor:pointer;font-size:1.25rem;opacity:.5;margin:-5px 0 5px 0}.igd-details .close-details:hover{opacity:1}.igd-details .details-item{display:flex;align-items:center;margin-bottom:15px;flex-wrap:wrap}.igd-details .details-item img{width:20px;height:20px;margin-left:10px}.igd-details .details-item-label{font-size:.875rem;font-weight:500;color:#444;width:80px;display:flex;align-items:center;justify-content:space-between}.igd-details .details-item-label:after{content:":";margin-left:10px}.igd-details .details-item.name{font-weight:500;font-size:1rem;margin-bottom:20px;word-break:break-all;flex-wrap:nowrap}.igd-details .details-item-value{font-size:.875rem;color:#555;word-break:break-all;max-width:100%}.igd-details .details-item.field-location{flex-direction:column;align-items:flex-start}.igd-details .details-item.field-location .details-item-value{margin-top:7px}.igd-details .details-item.field-location .location-wrap{display:flex;align-items:center;border:1px solid #ddd;border-radius:5px;padding:5px;cursor:pointer}.igd-details .details-item.field-location .location-wrap img{margin-left:5px}.igd-details .details-item.field-location .location-wrap span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-details .details-item.field-location .location-wrap:hover{background:#f5f5f5}.igd-details .details-item.field-description{display:flex;align-items:flex-start;flex-wrap:wrap;justify-content:space-between}.igd-details .details-item.field-description .details-item-label{margin-bottom:5px}.igd-details .details-item.field-description .description-placeholder,.igd-details .details-item.field-description .details-item-value{width:100%;color:#555}.igd-details .details-item.field-description .dashicons{cursor:pointer;padding:0 5px;box-sizing:content-box;margin-top:5px}.igd-details .details-item.field-description form,.igd-details .details-item.field-description textarea{width:100%}.igd-details .details-placeholder{font-size:1rem}@media (max-width:767px){.igd-details{max-width:80%;height:100%;margin-right:auto;background:#fff}.igd-details-wrap{width:100%;max-width:100%;position:absolute;z-index:2;background:rgba(0,0,0,.5);height:100%}}.igd-context-menu{z-index:99999999;background-color:#fff;border-radius:4px;list-style:none;font-size:14px;font-family:sans-serif;font-weight:400;line-height:1.5;color:#333;cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;box-shadow:0 0 10px rgba(0,0,0,.2)}.igd-context-menu,.igd-context-menu *{box-sizing:border-box}.igd-context-menu .context-menu-item{display:flex;align-items:center;padding:10px 15px;cursor:pointer;transition:background-color .2s ease;width:100%;position:relative}.igd-context-menu .context-menu-item.details,.igd-context-menu .context-menu-item.import{border-bottom:1px solid #eee}.igd-context-menu .context-menu-item.delete,.igd-context-menu .context-menu-item.download{border-top:1px solid #eee}.igd-context-menu .context-menu-item.disabled{color:#ccc}.igd-context-menu .context-menu-item.upload{border-bottom:1px solid #ddd}.igd-context-menu .context-menu-item.delete{border-bottom:1px solid #ddd}.igd-context-menu .context-menu-item.view{border-top:1px solid #ddd}.igd-context-menu .context-menu-item i{margin-left:10px}.igd-context-menu .context-menu-item:hover{background-color:#f5f5f5}.igd-context-menu .context-menu-item:hover .pro-badge{transform:scale(1.1)}.igd-context-menu .context-menu-item .pro-badge{position:absolute;left:0;background:#fdb837;color:#fff;padding:5px;border-radius:4px;font-size:11px;font-weight:400;display:flex;align-items:center;justify-content:center;line-height:1;box-shadow:0 0 5px rgba(0,0,0,.1);transition:transform .2s ease}.igd-context-menu .context-menu-item .pro-badge i{margin-left:2px;height:auto;width:auto;font-size:15px}.share-modal *{box-sizing:border-box}.share-modal .swal2-close:focus{outline:0;background:100% 0;color:#f08080;box-shadow:none}.share-modal .share-link{margin-bottom:1rem}.share-modal .share-link input,.share-modal .share-link textarea{width:-webkit-fill-available;border:1px solid #ddd;border-radius:4px;padding:0 10px;font-size:14px;font-family:sans-serif;font-weight:400;line-height:1.5;color:#333;cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;text-align:center;word-break:break-all}.share-modal .share-link input{height:40px}.share-modal .share-link textarea{height:100px}.share-modal.embed .embed-code{display:flex}.share-modal.embed .share-links{display:none}.share-modal .share-links{display:flex;justify-content:center;flex-wrap:wrap}.share-modal .share-links .share-item{display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;color:#333;text-decoration:none;margin:0 0 10px 10px}.share-modal .share-links .share-item i{font-size:22px;width:auto;height:auto;border:1px solid #ccc;border-radius:50%;padding:10px;margin:10px}.share-modal .share-links .share-item span{font-size:.875rem}.share-modal .share-links .share-item.link i{background:#fff;border:1px solid #ccc;color:#333}.share-modal .share-links .share-item.link span{color:#333}.share-modal .share-links .share-item.link:hover i{background:#e6e6e6}.share-modal .share-links .share-item.embed i{background:#333;border:1px solid #333;color:#fff}.share-modal .share-links .share-item.embed:hover i{background:#1a1a1a}.share-modal .share-links .share-item.facebook i{background-color:#3b5998;color:#fff}.share-modal .share-links .share-item.facebook span{color:#3b5998}.share-modal .share-links .share-item.facebook:hover i{background-color:#4c70ba}.share-modal .share-links .share-item.twitter i{background-color:#1da1f2;color:#fff}.share-modal .share-links .share-item.twitter span{color:#1da1f2}.share-modal .share-links .share-item.twitter:hover i{background-color:#4db5f5}.share-modal .share-links .share-item.whatsapp i{background-color:#25d366;color:#fff}.share-modal .share-links .share-item.whatsapp span{color:#25d366}.share-modal .share-links .share-item.whatsapp:hover i{background-color:#4be083}.share-modal .share-links .share-item.email i{background-color:#dd4f42;color:#fff}.share-modal .share-links .share-item.email span{color:#dd4f42}.share-modal .share-links .share-item.email:hover i{background-color:#e5776d}.move-folders{display:flex;flex-direction:column;align-items:flex-start;max-height:300px;overflow-y:auto;border:1px solid #ddd;border-radius:4px;padding:10px}.move-folders-wrap button{margin:20px auto 0;padding:10px 20px}.move-folders-wrap button .igd-spinner{margin-left:10px}.move-folders,.move-folders *{box-sizing:border-box}.move-folders::-webkit-scrollbar{width:5px}.move-folders::-webkit-scrollbar-track{background:#f1f1f1}.move-folders::-webkit-scrollbar-thumb{background:#999;border-radius:5px}.move-folders .move-folder{display:flex;align-items:center;justify-content:flex-start;text-align:right;width:100%;cursor:pointer;padding:7px 0;border-radius:3px}.move-folders .move-folder>.igd-spinner{margin-right:10px}.move-folders .move-folder-wrap{width:100%;padding-right:20px;text-align:right}.move-folders .move-folder-wrap.empty{margin:10px 0;padding-right:30px;display:flex;align-items:center;color:#c73e1d;font-size:.875rem}.move-folders .move-folder-wrap.empty i{margin-left:5px}.move-folders .move-folder i{margin-left:10px}.move-folders .move-folder img{width:22px;height:22px;margin-left:10px}.move-folders .move-folder .file-item-checkbox .box{border-color:#999}.move-folders .move-folder span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.move-folders .move-folder:hover{background-color:#f5f5f5}.move-folders .move-folder:hover img{display:none}.move-folders .move-folder:hover .file-item-checkbox{display:flex;padding:0;border:1px solid #fff;margin-left:10px}.move-folders .move-folder.active{background-color:var(--color-primary-lighter)}.move-folders .move-folder.active img{display:none}.move-folders .move-folder.active .file-item-checkbox{display:flex;padding:0;border:1px solid #fff;margin-left:10px}.igd-download-popup{z-index:999999!important}.igd-download-wrap #igd-download-status{font-size:1.3rem;font-weight:600;margin:15px auto 5px}.igd-download-wrap #igd-hidden-download{display:none}.igd-copy-swal,.igd-move-swal{z-index:99999}.react-contexify{position:fixed;opacity:0;-webkit-user-select:none;-moz-user-select:none;user-select:none;background-color:#fff;box-sizing:border-box;box-shadow:0 10px 30px -5px rgba(0,0,0,.3);border-radius:6px;min-width:200px}.context-submenu{width:100%}.react-contexify__submenu--is-open,.react-contexify__submenu--is-open>.react-contexify__item__content{color:#fff;background-color:#4393e6}.react-contexify__submenu--is-open>.react-contexify__submenu{pointer-events:initial;opacity:1}.react-contexify .react-contexify__submenu{position:absolute;top:-6px;pointer-events:none;transition:opacity 275ms}.react-contexify__submenu-arrow{margin-right:auto;font-size:12px}.react-contexify__submenu-arrow i{margin-left:0!important}.react-contexify__separator{width:100%;height:1px;cursor:default;margin:4px 0;background-color:rgba(0,0,0,.2)}.react-contexify__will-leave--disabled{pointer-events:none}.react-contexify__item{cursor:pointer;position:relative}.react-contexify__item:focus{outline:0}.react-contexify__item:not(.react-contexify__item--disabled):hover>.react-contexify__submenu{pointer-events:initial;opacity:1}.react-contexify__item--disabled{cursor:default;opacity:.5}.react-contexify__item__content{display:flex;align-items:center;white-space:nowrap;color:#333;position:relative;width:100%}.react-contexify__theme--dark{background-color:rgba(40,40,40,.98)}.react-contexify__theme--dark .react-contexify__submenu{background-color:rgba(40,40,40,.98)}.react-contexify__theme--dark .react-contexify__separator{background-color:#eee}.react-contexify__theme--dark .react-contexify__item__content{color:#fff}.react-contexify__theme--light .react-contexify__separator{background-color:#eee}.react-contexify__theme--light .react-contexify__submenu--is-open,.react-contexify__theme--light .react-contexify__submenu--is-open>.react-contexify__item__content{color:#4393e6;background-color:#e0eefd}.react-contexify__theme--light .react-contexify__item:not(.react-contexify__item--disabled):focus>.react-contexify__item__content,.react-contexify__theme--light .react-contexify__item:not(.react-contexify__item--disabled):hover>.react-contexify__item__content{color:#4393e6;background-color:#e0eefd}.react-contexify__theme--light .react-contexify__item__content{color:#666}@keyframes react-contexify__scaleIn{from{opacity:0;transform:scale3d(.3,.3,.3)}to{opacity:1}}@keyframes react-contexify__scaleOut{from{opacity:1}to{opacity:0;transform:scale3d(.3,.3,.3)}}.react-contexify__will-enter--scale{transform-origin:top right;animation:react-contexify__scaleIn .3s}.react-contexify__will-leave--scale{transform-origin:top right;animation:react-contexify__scaleOut .3s}@keyframes react-contexify__fadeIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes react-contexify__fadeOut{from{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(10px)}}.react-contexify__will-enter--fade{animation:react-contexify__fadeIn .3s ease}.react-contexify__will-leave--fade{animation:react-contexify__fadeOut .3s ease}@keyframes react-contexify__flipInX{from{transform:perspective(800px) rotate3d(-1,0,0,-45deg)}to{transform:perspective(800px)}}@keyframes react-contexify__flipOutX{from{transform:perspective(800px)}to{transform:perspective(800px) rotate3d(-1,0,0,-45deg);opacity:0}}.react-contexify__will-enter--flip{backface-visibility:visible!important;transform-origin:top center;animation:react-contexify__flipInX .3s}.react-contexify__will-leave--flip{transform-origin:top center;animation:react-contexify__flipOutX .3s;backface-visibility:visible!important}@keyframes swing-in-top-fwd{0%{transform:rotateX(-100deg);transform-origin:top;opacity:0}100%{transform:rotateX(0);transform-origin:top;opacity:1}}@keyframes react-contexify__slideIn{from{opacity:0;transform:scale3d(1,.3,1)}to{opacity:1}}@keyframes react-contexify__slideOut{from{opacity:1}to{opacity:0;transform:scale3d(1,.3,1)}}.react-contexify__will-enter--slide{transform-origin:top center;animation:react-contexify__slideIn .3s}.react-contexify__will-leave--slide{transform-origin:top center;animation:react-contexify__slideOut .3s}.igd-shortcode-gallery .igd-file-browser-header .photo-proofing-btn .selection-count{margin-right:3px}.igd-module-gallery{overflow:hidden}.igd-module-gallery .item-selection{position:absolute;z-index:9;top:5px;right:5px;cursor:pointer;display:none}.igd-module-gallery .item-selection circle{display:none}.igd-module-gallery .item-selection:hover svg{fill:#fff}.igd-module-gallery .file-list{overflow:hidden}.igd-module-gallery .file-list .file-item{position:relative;border-radius:0}.igd-module-gallery .file-list .file-item .igd-gallery-folder-images{transition:all .3s ease-in-out}.igd-module-gallery .file-list .file-item:hover{transform:none}.igd-module-gallery .file-list .file-item:hover .item-selection{display:block}.igd-module-gallery .file-list .file-item:hover .igd-gallery-folder-images{transition:all .3s ease-in-out;transform:scale(1.07);box-shadow:0 0 0 1px #ddd}.igd-module-gallery .file-list .file-item.active{transform:none}.igd-module-gallery .file-list .file-item.active .item-selection{display:block}.igd-module-gallery .file-list .file-item.active .item-selection svg{fill:#4285f4}.igd-module-gallery .file-list .file-item.active .igd-gallery-folder-images{transition:all .3s ease-in-out;transform:scale(1.07);box-shadow:0 0 0 1px #ddd}.igd-module-gallery .file-list .file-item .file-item-footer{font-size:1rem}.igd-module-gallery .file-list .file-item:not(.folder-item){max-width:100%}.igd-module-gallery .file-list .file-item:not(.folder-item) .file-item-footer{background:rgba(0,0,0,.5)!important;color:#fff!important;padding:15px 10px!important;position:absolute;bottom:0;right:0;width:100%;justify-content:center;border:none!important}.igd-module-gallery .file-list .file-item:not(.folder-item) .file-item-footer i{margin-left:5px}.igd-module-gallery .file-list .file-item:not(.folder-item) .file-item-footer img{background:rgba(255,255,255,.9);padding:0 2px;border-radius:3px;box-sizing:content-box}.igd-module-gallery .file-list .file-item:not(.folder-item) .file-item-footer span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-module-gallery .file-list .file-item:last-child{margin-left:auto!important}.igd-module-gallery .igd-gallery-folder-images{position:relative;width:100%;height:100%;overflow:hidden;display:flex;align-items:center;justify-content:center}.igd-module-gallery .igd-gallery-folder-images img{position:absolute;-webkit-user-drag:none;opacity:0;pointer-events:none;animation-name:image-fade-out;animation-duration:1.5s}.igd-module-gallery .igd-gallery-folder-images img.active{animation-name:image-fade;animation-duration:1.5s;opacity:1}.igd-module-gallery .igd-gallery-folder-images img:not([src*=drive-thirdparty]){width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.igd-module-gallery .igd-gallery-folder-images i{height:auto;width:auto;font-size:3.5rem;color:#555}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item{overflow:hidden;position:relative;cursor:pointer}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item img{transition:all .3s ease-in-out;-o-object-fit:cover;object-fit:cover;width:100%;height:100%}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item-overlay{position:absolute;top:0;right:0;width:100%;height:100%;background:rgba(0,0,0,.5);transition:all .3s ease-in-out;color:#fff;display:flex;align-items:center;justify-content:center;flex-direction:column;opacity:0;pointer-events:none;text-align:center;padding:15px}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item-overlay .overlay-title{font-weight:600;margin-bottom:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item-overlay .overlay-size{font-size:13px}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item:hover .item-selection{display:block}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item:hover .igd-gallery-item-overlay{opacity:1;pointer-events:all}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item:hover img{box-shadow:0 0 0 1px #ddd;transition:all .3s ease-in-out;transform:scale(1.07)}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item.active .item-selection{display:block}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item.active .item-selection svg{fill:#4285f4}.igd-module-gallery.gallery-view-rounded .file-list .file-item{border-radius:5px}.igd-module-gallery.gallery-view-rounded .react-photo-gallery--gallery .igd-gallery-item{border-radius:7px}.igd-module-gallery.gallery-layout-grid .file-list .file-item{width:var(--column-width)}.igd-module-gallery.gallery-layout-grid .file-list .file-item:not(.folder-item){aspect-ratio:var(--aspect-ratio)}.igd-module-gallery.gallery-layout-grid .react-photo-gallery--gallery .igd-gallery-item{width:var(--column-width);aspect-ratio:var(--aspect-ratio)}.igd-module-gallery.gallery-layout-masonry .file-list .file-item{width:var(--column-width)}.igd-module-gallery.gallery-layout-masonry .file-list .file-item:not(.folder-item){aspect-ratio:var(--aspect-ratio)}@keyframes image-fade{from{opacity:.4}to{opacity:1}}@keyframes image-fade-out{from{opacity:1}to{opacity:0}}.igd-module-uploader,.igd-module-uploader *{box-sizing:border-box}.igd-module-uploader .dashicons-cloud-upload{width:auto;height:auto}.igd-module-uploader.igd-form-uploader{margin-top:1rem!important}.igd-module-uploader .upload-confirmation{display:none!important;margin:20px 0;text-align:center;flex-direction:column;align-items:center}.igd-module-uploader .upload-confirmation h3{color:var(--color-primary)}.igd-module-uploader.show-confirmation{border-style:solid!important}.igd-module-uploader.show-confirmation .upload-confirmation{display:flex!important}.igd-module-uploader.show-confirmation .igd-file-uploader-inner{display:none!important}.igd-file-uploader{display:flex;align-items:center;justify-content:center;flex-direction:column;border-radius:10px!important;border:1px dashed var(--color-primary-light)!important;padding:3px!important;max-width:500px;width:100%!important;background:#fff!important}.igd-file-uploader *{box-sizing:border-box}.igd-file-uploader:not(.igd-form-uploader){margin:auto}.igd-file-uploader.drag-active{border-color:var(--color-primary);border-width:2px;background-color:#bfdbfe;box-shadow:rgba(149,157,165,.2) 0 8px 24px}.igd-file-uploader.drag-active *{pointer-events:none}.igd-file-uploader-body{display:flex;align-items:center;flex-direction:column;width:100%!important;-webkit-user-select:none;-moz-user-select:none;user-select:none}.igd-file-uploader-body h3{font-size:1.2rem;font-weight:600;margin-bottom:10px!important}.igd-file-uploader-body .max-size-label{font-size:.875rem;margin-top:1rem;color:#999}.igd-file-uploader .igd-file-uploader-inner{display:flex!important;align-items:center!important;flex-direction:column!important;border-radius:7px!important;padding:1rem!important;background-color:var(--color-primary-lighter)!important;justify-content:center;width:100%!important;border:1px dashed #ddd!important}.igd-file-uploader .igd-file-uploader-inner p{font-weight:400;margin:5px 0!important;color:#555;line-height:1}.igd-file-uploader .igd-file-uploader-inner .dashicons-cloud-upload{font-size:4rem;height:auto;width:auto;margin-bottom:1rem;line-height:1;color:#555}.igd-file-uploader .igd-file-uploader-inner .igd-file-uploader-buttons{display:flex}.igd-file-uploader .igd-file-uploader-inner .igd-file-uploader-buttons button{display:flex;align-items:center;white-space:nowrap;cursor:pointer;border-radius:.25rem;border:none;padding:.375rem .5rem;margin:.5rem;background-color:var(--color-primary);box-shadow:rgba(149,157,165,.2) 0 8px 24px;color:#fff;transition:all .2s ease-in-out;font-weight:400}.igd-file-uploader .igd-file-uploader-inner .igd-file-uploader-buttons button span{margin-right:5px}.igd-file-uploader .igd-file-uploader-inner .igd-file-uploader-buttons button:hover{background-color:var(--color-primary-light-alt)}.igd-file-uploader .igd-file-uploader-inner .upload-info{display:flex;align-items:center;line-height:1}.igd-file-uploader .igd-file-uploader-inner .upload-info span{margin-left:5px}.igd-file-uploader .igd-file-uploader-inner .upload-info span:after{content:"|";margin-right:5px;color:#000}.igd-file-uploader .igd-file-uploader-inner .upload-info span:last-child{margin-left:0}.igd-file-uploader .igd-file-uploader-inner .upload-info span:last-child:after{content:"";margin-right:0}.igd-file-uploader .igd-file-uploader-inner .igd-file-uploader-add-more{margin-top:15px}.igd-file-uploader.required-error{border-color:red}.igd-file-uploader .file-list-wrapper{display:flex;flex-direction:column;z-index:50;margin-top:5px!important;width:100%!important;max-height:400px;max-width:100%;overflow:hidden!important;background-color:#fff!important;box-shadow:rgba(149,157,165,.2) 0 8px 24px!important;bottom:1rem;left:1rem}.igd-file-uploader .file-list-wrapper.fixed{position:fixed}.igd-file-uploader .file-list-wrapper .start-upload{margin:10px auto}@media (max-width:991px){.igd-file-uploader .file-list-wrapper{max-width:300px;max-height:300px;left:0}}.igd-file-uploader .file-list{display:flex;flex-flow:column;flex-wrap:nowrap!important;overflow-y:auto!important}.igd-file-uploader .file-list-header{display:flex;align-items:center;padding:10px 15px!important;background-color:var(--color-primary)!important;color:#fff;line-height:1;border-radius:5px;margin-bottom:5px}.igd-file-uploader .file-list-header .file-count{margin-left:5px}.igd-file-uploader .file-list-header i{cursor:pointer;height:26px!important;width:26px!important;border:1px solid!important;border-radius:50%!important;font-size:22px!important;display:flex;align-items:center;justify-content:center}.igd-file-uploader .file-list-item{display:flex;align-items:center;padding:8px 12px!important;border-bottom:1px solid #eaeaea!important;width:100%!important;opacity:.5}.igd-file-uploader .file-list-item img{width:22px!important;height:22px!important;margin-left:5px!important}.igd-file-uploader .file-list-item .file-info{display:flex;flex-wrap:wrap;overflow:hidden;width:100%;line-height:1}.igd-file-uploader .file-list-item .file-info .upload-item{display:flex;align-items:center;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;flex:1}.igd-file-uploader .file-list-item .file-info .upload-item-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;margin-left:4px}.igd-file-uploader .file-list-item .file-info .upload-item-size{font-size:.75rem;color:#999}.igd-file-uploader .file-list-item .file-info-percentage{margin-right:auto;text-align:left;font-size:.875rem;display:flex;align-items:center;width:-moz-max-content;width:max-content}.igd-file-uploader .file-list-item .file-info-percentage .igd-spinner{margin-top:0;margin-left:5px;border-radius:50%}.igd-file-uploader .file-list-item .file-info-progress{width:100%;height:4px;background-color:#ddd;border-radius:.25rem;margin-top:7px;overflow:hidden;position:relative;align-items:center;justify-content:space-between;display:none}.igd-file-uploader .file-list-item .file-info-progress-bar{width:var(--percentage);height:100%;background-color:var(--color-primary-light-alt);border-radius:.25rem;position:absolute;right:0;top:0;transition:width .5s ease-in-out}.igd-file-uploader .file-list-item .file-info-error{color:red;width:100%;font-size:.75rem;margin-top:3px}.igd-file-uploader .file-list-item .file-info .igd-spinner{width:20px;margin-right:7px}.igd-file-uploader .file-list-item .file-info .percentage{margin:0 7px}.igd-file-uploader .file-list-item .file-info i{margin-right:7px;height:22px!important;width:22px!important;font-size:16px;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer}.igd-file-uploader .file-list-item .file-info i:not(.dashicons-saved,.dashicons-no-alt){border:1px solid #ddd}.igd-file-uploader .file-list-item .file-info .dashicons-controls-play{padding-right:3px}.igd-file-uploader .file-list-item .file-info .remove-file{background:#ff9f10;color:#fff;margin-right:10px}.igd-file-uploader .file-list-item:hover{background-color:#e0f2fe}.igd-file-uploader .file-list-item.uploaded{opacity:1}.igd-file-uploader .file-list-item.uploaded .file-info .dashicons-saved{background:var(--color-primary);color:#fff}.igd-file-uploader .file-list-item.uploaded .file-info .remove-file{background:100% 0;color:#ff9f10;border:1px solid #ff9f10;opacity:.6}.igd-file-uploader .file-list-item.uploaded .file-info .remove-file:hover{background:#ff9f10;color:#fff;opacity:1}.igd-file-uploader .file-list-item.uploaded .file-info-progress{display:flex}.igd-file-uploader .file-list-item.uploaded .file-info-progress-bar{width:100%}.igd-file-uploader .file-list-item.active{opacity:.8}.igd-file-uploader .file-list-item.active .file-info-progress{display:flex}.igd-file-uploader .file-list::-webkit-scrollbar{width:5px}.igd-file-uploader .file-list::-webkit-scrollbar-track{background:#f1f1f1}.igd-file-uploader .file-list::-webkit-scrollbar-thumb{background:#ccc}.igd-file-uploader .file-list::-webkit-scrollbar-thumb:hover{background:#bbb}.igd-file-uploader .cancel-upload{position:absolute;top:15px;left:15px;cursor:pointer;border-radius:5px;height:40px;width:40px;font-size:25px;display:flex;align-items:center;justify-content:center;color:rgba(255,0,0,.3)}.igd-file-uploader .cancel-upload:hover{color:rgba(255,0,0,.5)}.igd-file-browser .igd-file-uploader{position:fixed!important;left:15px;bottom:15px;z-index:2;box-shadow:0 0 10px rgba(0,0,0,.2)}.igd-file-browser .igd-file-uploader:has(.file-list-wrapper) .igd-file-uploader-inner .dashicons-cloud-upload{display:none}@media (max-width:767px){.igd-file-browser .igd-file-uploader{position:absolute!important;height:100%;left:unset;bottom:unset;width:calc(100% - 20px)!important;justify-content:flex-start;background:rgba(0,0,0,.5)!important}.igd-file-browser .igd-file-uploader .igd-file-uploader-inner{background:linear-gradient(var(--color-primary-lighter),var(--color-primary-lighter)),#fff!important}}.ff-el-is-error .igd-file-uploader,.frm_blank_field .igd-file-uploader,.gfield_error .igd-file-uploader,.mf-input-wrapper.has-error .igd-file-uploader,.nf-error .igd-file-uploader,.wpforms-has-error .igd-file-uploader{border-color:red!important}@keyframes ssc-loading{from{transform:translateX(100%)}to{transform:translateX(-100%)}}.ssc-circle,.ssc-head-line,.ssc-line,.ssc-square{position:relative;overflow:hidden}.ssc-circle:after,.ssc-head-line:after,.ssc-line:after,.ssc-square:after{content:"";animation:ssc-loading 1.3s infinite;height:100%;right:0;position:absolute;left:0;top:0;transform:translateX(100%);z-index:1;background:linear-gradient(-90deg,transparent,rgba(255,255,255,.3),transparent)}.ssc{cursor:progress;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ssc-card{display:block;width:100%;border-radius:5px;box-shadow:0 2px 4px 1px rgba(0,0,0,.17);background-color:#fff;margin-bottom:15px}.ssc-circle{display:block;background-color:rgba(0,0,0,.17);border-radius:50%;width:30px;height:30px}.ssc-hr{display:block;width:100%;background-color:rgba(0,0,0,.17);height:2px}.ssc-line{display:block;background-color:rgba(0,0,0,.17);border-radius:15px;height:12px}.ssc-line:last-child{margin-bottom:unset}.ssc-head-line{display:block;background-color:rgba(0,0,0,.17);border-radius:15px;width:100%;height:24px}.ssc-square{display:block;background-color:rgba(0,0,0,.17);width:100%;height:100px;border-radius:5px}.flex{display:flex}.flex-1{flex:1}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-between{justify-content:space-between}.w-full{width:100%}.mb-3{margin-bottom:.875rem}.mr-2{margin-left:.5rem}.w-16{width:4rem}.w-6{width:1.5rem}.h-6{height:1.5rem}.p-4{padding:1rem}body.google-drive_page_integrate-google-drive-private-folders.swal2-shown{overflow:auto!important;padding-left:0!important}.igd-private-folders,.igd-private-folders *{box-sizing:border-box}.igd-private-folders-header{display:flex;width:calc(100% + 20px);margin-right:-20px;background:#fff;padding:20px 20px;position:sticky;top:32px;border-bottom:1px solid #ddd;box-shadow:0 1px 5px rgba(0,0,0,.1);z-index:99;margin-bottom:30px}.igd-private-folders-header .header-title{display:flex;align-items:center;line-height:1;margin-left:auto}.igd-private-folders-header .header-title img{margin-left:15px}.igd-private-folders-header .header-title-text{display:flex;flex-direction:column}.igd-private-folders-header .header-title-text h3{font-size:1.2rem;margin:0 0 5px 0}.igd-private-folders-header .header-title-text span{margin-top:2px;color:#7a7a7a}.igd-private-folders-header .igd-btn{margin-right:10px}@media (max-width:767px){.igd-private-folders-header{position:relative;top:0}}.igd-private-folders .private-folders-list{background:#fff;padding:20px;border-radius:10px;margin:10px 0 30px 15px;position:relative;overflow:hidden;min-height:70vh}.igd-private-folders .private-folders-list-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.igd-private-folders .private-folders-list-header ul{display:flex;align-items:center}.igd-private-folders .private-folders-list-header ul li{margin-left:5px;margin-bottom:0;cursor:pointer;color:#2fb44b;font-weight:600;font-size:.875rem}.igd-private-folders .private-folders-list-header ul li:not(:last-child):after{content:"|";margin:0 5px;color:#555}.igd-private-folders .private-folders-list-header ul li span{text-transform:capitalize}.igd-private-folders .private-folders-list-header ul li.active{color:#555c66}.igd-private-folders .private-folders-list-header ul li:hover{color:#248c3a}.igd-private-folders .private-folders-list-header .users-search{display:flex;align-items:center}.igd-private-folders .private-folders-list-header .users-search input{height:40px;border:1px solid rgba(47,180,75,.5)}.igd-private-folders .private-folders-list-header .users-search button{margin-right:10px}.igd-private-folders .private-folders-list .swal2-container{position:absolute;width:100%;height:100%;z-index:9}.igd-private-folders .private-folders-list .column-username span{margin-right:10px}.igd-private-folders .private-folders-list .column-actions button{display:inline-flex;align-items:center;padding:7px 10px;line-height:1}.igd-private-folders .private-folders-list .column-actions button i{margin-left:5px}.igd-private-folders .private-folders-list .column-folders .folder-item{display:inline-flex;align-items:center;border:1px solid rgba(47,180,75,.5);width:-moz-max-content;width:max-content;padding:5px;margin:3px;border-radius:5px;color:#7a7a7a}.igd-private-folders .private-folders-list .column-folders .folder-item img{margin-left:5px}.igd-private-folders .private-folders-list .private-folders-table{border-radius:10px;overflow:hidden;border-color:#efefef}.igd-private-folders .private-folders-list .private-folders-table thead th{padding:15px;border-color:#efefef}.igd-private-folders .private-folders-list .private-folders-table tbody tr td{padding:10px;vertical-align:middle}@media (max-width:767px){.igd-private-folders .private-folders-list{margin-right:10px}.igd-private-folders .private-folders-list-header{flex-direction:column}.igd-private-folders .private-folders-list .private-folders-table-wrap{overflow-x:auto}}.igd-private-folders .igd-pro-modal-wrap{position:absolute;z-index:9}.igd-private-folders .igd-pro-modal-close{display:none}.igd-details .details-file-name{width:calc(100% - 20px)}.igd-player{line-height:1.5;display:flex;align-items:flex-start;flex-direction:column;height:100%;background-color:#fff}.igd-player.playlist-left,.igd-player.playlist-right{padding:10px}.igd-player.playlist-left .media-wrap,.igd-player.playlist-right .media-wrap{flex-direction:column;align-items:flex-start;border:none}.igd-player.playlist-left .media-wrap .igd-player-media-wrap,.igd-player.playlist-right .media-wrap .igd-player-media-wrap{margin-top:10px;margin-right:0}.igd-player.playlist-left .igd-player-playlist .playlist-item-wrap,.igd-player.playlist-right .igd-player-playlist .playlist-item-wrap{padding:5px 0}.igd-player.playlist-left.type-audio .media-wrap,.igd-player.playlist-right.type-audio .media-wrap{border:1px solid #eee}.igd-player.playlist-left{flex-wrap:wrap;flex-direction:row;-moz-column-gap:10px;column-gap:10px}.igd-player.playlist-left .igd-player-playlist{width:calc(40% - 10px);order:1;margin:0;padding-left:10px;border-left:1px solid #eee}.igd-player.playlist-left .playlist-search{margin:0}.igd-player.playlist-left .media-wrap{flex:1;order:2;position:sticky;top:10px;z-index:9}.igd-player.playlist-left:has(.igd-player-playlist) .media-wrap{max-width:60%}.igd-player.playlist-right{flex-wrap:wrap;flex-direction:row;-moz-column-gap:10px;column-gap:10px;padding-left:5px}.igd-player.playlist-right .igd-player-playlist{width:calc(40% - 10px);order:2;margin:0;padding-right:10px;border-right:1px solid #eee;padding-left:5px}.igd-player.playlist-right .playlist-search{margin:0}.igd-player.playlist-right .media-wrap{flex:1;order:1;position:sticky;top:10px;z-index:9}.igd-player.playlist-right:has(.igd-player-playlist) .media-wrap{max-width:60%}.igd-player.playlist-bottom .playlist-search{width:calc(100% - 20px);margin:10px auto}.igd-player .media-wrap{width:100%;display:flex;align-items:center}.igd-player .media-wrap .current-item{display:flex;align-items:center;overflow:hidden}.igd-player .media-wrap .current-item img{margin-left:10px;width:40px}.igd-player .media-wrap .current-item .item-caption{display:flex;flex-direction:column;overflow:hidden}.igd-player .media-wrap .current-item .item-caption .item-title{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-player .media-wrap .current-item .item-caption .item-description{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-player .media-wrap .igd-player-media-wrap{position:relative}.igd-player .media-wrap iframe{aspect-ratio:16/9}.igd-player.type-video .igd-player-media-wrap{width:100%;height:0;overflow:hidden;padding-bottom:56.25%}.igd-player.type-video .igd-player-media-wrap .igd-player-media-video,.igd-player.type-video .igd-player-media-wrap .plyr,.igd-player.type-video .igd-player-media-wrap video{position:absolute;top:0;right:0;width:100%!important;height:100%!important}.igd-player.type-audio .media-wrap{padding:15px;border-bottom:1px solid #ddd;background:#f5f5f5}.igd-player.type-audio .igd-player-media-wrap{margin-right:auto}.igd-player.type-audio .igd-player-media-wrap .plyr__controls{padding:0;background:100% 0}.igd-player .igd-player-playlist{width:100%;height:100%;overflow-y:auto}.igd-player .igd-player-playlist .playlist-item{position:relative;cursor:pointer;display:flex;align-items:center;color:#333;padding:3px}.igd-player .igd-player-playlist .playlist-item.active{color:var(--color-primary);font-weight:700}.igd-player .igd-player-playlist .playlist-item.active .dashicons{border-color:var(--color-primary);color:var(--color-primary)}.igd-player .igd-player-playlist .playlist-item:not(:has(img)){padding:5px}.igd-player .igd-player-playlist .playlist-item-wrap{border-bottom:1px solid #eee;padding:5px 10px}.igd-player .igd-player-playlist .playlist-item-wrap:last-child{border-bottom:0}.igd-player .igd-player-playlist .playlist-item-wrap .sub-item{margin-right:30px}.igd-player .igd-player-playlist .playlist-item-wrap:hover{background-color:#f5f5f5}.igd-player .igd-player-playlist .playlist-item .item-index{margin-left:7px;white-space:nowrap}.igd-player .igd-player-playlist .playlist-item .igd-spinner{margin-right:0;width:18px;height:18px;margin-left:5px}.igd-player .igd-player-playlist .playlist-item img{width:30px;height:30px;-o-object-fit:cover;object-fit:cover;border-radius:3px;margin-left:5px}.igd-player .igd-player-playlist .playlist-item .item-name{margin-left:auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-player .igd-player-playlist .playlist-item .item-size{margin:0 10px;color:#777;white-space:nowrap;font-size:.75rem}.igd-player .igd-player-playlist .playlist-item .dashicons{font-size:25px;color:#555c66;height:auto;width:auto}.igd-player .igd-player-playlist .playlist-item .dashicons.dashicons-arrow-down,.igd-player .igd-player-playlist .playlist-item .dashicons.dashicons-arrow-right{margin-right:-5px;margin-left:5px}.igd-player .igd-player-playlist .playlist-item .dashicons:hover{color:#444;border-color:var(--color-primary)}.igd-player .igd-player-playlist .playlist-item:last-child{border-bottom:0}.igd-player .igd-player-playlist .search-result-info{display:flex;align-items:center;margin-bottom:7px;margin-top:7px}.igd-player .igd-player-playlist .search-result-info .clear-button{margin-right:7px;padding:7px 10px}.igd-player .igd-player-playlist::-webkit-scrollbar{width:5px;height:5px}.igd-player .igd-player-playlist::-webkit-scrollbar-thumb{background:#ddd;border-radius:10px}.igd-player .igd-player-playlist::-webkit-scrollbar-track{background:#eee;border-radius:10px}.igd-player .playlist-search{position:relative;display:flex;align-items:center;transition:width .3s linear;line-height:1;overflow:hidden;border:1px solid #ddd;border-radius:5px;width:100%;padding:0 15px;margin:10px 0}.igd-player .playlist-search .search-dismiss{cursor:pointer}.igd-player .playlist-search input{height:40px;padding:0 15px;font-size:14px;width:100%;border:none!important;box-shadow:none!important;border-radius:0!important;background:100% 0}.igd-player .playlist-search input:focus{outline:0}.igd-player .playlist-search .search-submit{position:relative;z-index:2}.igd-player .playlist-search .search-submit .dashicons{font-family:dashicons}.igd-player .playlist-search:has(input:focus){box-shadow:rgba(0,0,0,.24) 0 3px 8px}.igd-player .playlist-search.active .input-wrap{left:-10px}.igd-player .playlist-search.active .search-submit svg{fill:#333}.igd-player video{display:inline-block;max-width:100%;min-height:100%}.igd-player audio{display:none;max-width:100%;width:100%}.igd-player .plyr__controls .plyr__controls__item.plyr__time{white-space:nowrap}.igd-player .plyr__control:focus{background:100% 0;color:currentColor}.igd-player .plyr__volume input[type=range]{max-width:60px}.igd-player.size-sm.type-audio .media-wrap,.igd-player.size-xs.type-audio .media-wrap{flex-direction:column}.igd-player.size-sm.type-audio .media-wrap .current-item img,.igd-player.size-xs.type-audio .media-wrap .current-item img{width:30px}.igd-player.size-sm.type-audio .media-wrap .igd-player-media-wrap,.igd-player.size-xs.type-audio .media-wrap .igd-player-media-wrap{margin-top:15px;margin-right:0}.igd-player.size-sm .plyr__volume input[type=range],.igd-player.size-xs .plyr__volume input[type=range]{max-width:40px;min-width:40px}.igd-player.size-sm.playlist-left,.igd-player.size-sm.playlist-right,.igd-player.size-xs.playlist-left,.igd-player.size-xs.playlist-right{flex-direction:column}.igd-player.size-sm.playlist-left .igd-player-playlist,.igd-player.size-sm.playlist-left .media-wrap,.igd-player.size-sm.playlist-right .igd-player-playlist,.igd-player.size-sm.playlist-right .media-wrap,.igd-player.size-xs.playlist-left .igd-player-playlist,.igd-player.size-xs.playlist-left .media-wrap,.igd-player.size-xs.playlist-right .igd-player-playlist,.igd-player.size-xs.playlist-right .media-wrap{width:100%;max-width:100%!important}.igd-player.size-sm.playlist-left .media-wrap,.igd-player.size-sm.playlist-right .media-wrap,.igd-player.size-xs.playlist-left .media-wrap,.igd-player.size-xs.playlist-right .media-wrap{position:unset}.igd-player.size-sm.playlist-left .igd-player-playlist,.igd-player.size-sm.playlist-right .igd-player-playlist,.igd-player.size-xs.playlist-left .igd-player-playlist,.igd-player.size-xs.playlist-right .igd-player-playlist{order:999}.igd-lightbox{z-index:999999;position:fixed}.igd-lightbox .lg-backdrop{background:rgba(0,0,0,.9)!important}.igd-lightbox .lg-sub-html h4,.igd-lightbox .lg-sub-html p{color:inherit}.igd-lightbox:not(.gallery-lightbox) .lg-sub-html{background:#111!important;display:flex;align-items:center;padding:10px 15px;max-width:calc(100% - 100px)}.igd-lightbox .lg-outer .lg-thumb-item{height:60px}.igd-lightbox .item-name{display:flex;align-items:center;max-width:75%;overflow:hidden}.igd-lightbox .item-name img{margin-left:10px;width:24px}.igd-lightbox .item-name span{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.igd-lightbox.no-download .lg-download{display:none}.igd-lightbox .lg-outer[data-lg-slide-type=iframe] .lg-actual-size,.igd-lightbox .lg-outer[data-lg-slide-type=iframe] .lg-zoom-in,.igd-lightbox .lg-outer[data-lg-slide-type=iframe] .lg-zoom-out,.igd-lightbox .lg-outer[data-lg-slide-type=video] .lg-actual-size,.igd-lightbox .lg-outer[data-lg-slide-type=video] .lg-zoom-in,.igd-lightbox .lg-outer[data-lg-slide-type=video] .lg-zoom-out{display:none}.igd-lightbox .lg-outer[data-lg-slide-type=iframe] .igd-hidepopout{width:60px;height:55px;position:absolute;opacity:1;left:12px;top:0;z-index:10000000;background-color:#d1d1d1;cursor:default!important}.igd-lightbox .lg-item:has(video>source[type*="audio/"]) .lg-video-cont{margin-top:-60px;max-height:60px;max-width:500px}.igd-lightbox .lg-item:has(video>source[type*="audio/"]) .lg-video-cont .lg-video-poster{margin-top:-20px;max-width:100px!important;height:100px!important;max-height:none!important}@media (max-width:767px){.igd-lightbox .lg-item .lg-video-cont{max-width:90%!important}}.igd-select-files-modal .components-modal__header{border-bottom:1px solid #ddd;box-shadow:0 1px 5px rgba(0,0,0,.1)}.igd-select-files-modal .components-modal__header-heading{width:100%}.igd-select-files-modal .shortcode-module-header{display:flex;flex-direction:column;justify-content:center;align-items:center;margin:30px auto}.igd-select-files-modal .shortcode-module-header .module-title{font-size:1.2rem;margin-bottom:10px;font-weight:600}.igd-select-files-modal .shortcode-module .shortcode-types{display:flex;flex-wrap:wrap;justify-content:center}.igd-select-files-modal .shortcode-module .shortcode-types .shortcode-type{width:calc(20% - 20px);margin:10px;padding:2rem 1.5rem;border:1px solid #ddd;border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;max-width:250px;transition:background .3s ease}.igd-select-files-modal .shortcode-module .shortcode-types .shortcode-type i{height:auto;width:auto;border-radius:50%;padding:15px;border:1px solid #ddd}.igd-select-files-modal .shortcode-module .shortcode-types .shortcode-type span{font-size:1rem;margin-top:15px}.igd-select-files-modal .shortcode-module .shortcode-types .shortcode-type.active{background:var(--color-primary-light);border:1px solid var(--color-primary);color:#fff}.igd-select-files-modal .shortcode-module .shortcode-types .shortcode-type.active i{border:1px solid #fff}.igd-select-files-modal .shortcode-module .shortcode-types .shortcode-type:hover{background:var(--color-primary-light);border:1px solid var(--color-primary);color:#fff}.igd-select-files-modal .shortcode-module .shortcode-types .shortcode-type:hover i{border:1px solid #fff}.igd-select-files-modal .shortcode-module .settings-field{display:flex;flex-wrap:wrap;margin-bottom:10px;align-items:center;border:1px dashed #ddd;border-radius:5px;padding:12px 18px}.igd-select-files-modal .shortcode-module .settings-field-title{font-size:1.2rem;margin-bottom:20px;font-weight:600}.igd-select-files-modal .shortcode-module .settings-field-label{width:200px;font-weight:600;font-size:1rem;display:flex;justify-content:space-between}.igd-select-files-modal .shortcode-module .settings-field-label:after{content:":";margin-right:auto}.igd-select-files-modal .shortcode-module .settings-field-content{display:flex;flex-direction:column;align-items:flex-start;margin-right:20px;flex:1}.igd-select-files-modal .shortcode-module .settings-field-content .components-button i{margin-left:5px}.igd-select-files-modal .shortcode-module .settings-field-content .description{font-size:.8rem;margin-top:10px;text-align:right}.igd-select-files-modal .shortcode-module .settings-field.filter-field .filter-field-input{display:flex;flex-direction:column}.igd-select-files-modal .shortcode-module .settings-field.filter-field .filter-field-all{display:flex;align-items:center;justify-content:flex-start;margin-top:15px;flex-wrap:wrap}.igd-select-files-modal .shortcode-module .settings-field.filter-field .filter-field-all>div{display:flex;align-items:center}.igd-select-files-modal .shortcode-module .settings-field.filter-field .filter-field-all>div:first-child{margin-left:20px}.igd-select-files-modal .shortcode-module .settings-field.filter-field .filter-field-all-label{margin-left:10px;font-weight:500}.igd-select-files-modal .shortcode-module .settings-field.filter-field .filter-field-all .description{width:100%;text-align:right}.igd-select-files-modal .shortcode-module .settings-field.sort-field .sort-field-section{display:flex;flex-direction:column}.igd-select-files-modal .shortcode-module .settings-field.sort-field .sort-field-section:first-child{margin-left:35px;padding-left:15px;border-left:1px solid #ddd}.igd-select-files-modal .shortcode-module .settings-field.sort-field .sort-field-section-wrap{display:flex;margin:15px 30px}.igd-select-files-modal .shortcode-module .settings-field.sort-field .sort-field-section-label{margin-bottom:15px;font-weight:500;text-align:right}.igd-select-files-modal .shortcode-module .settings-field.sort-field .sort-field-section .sort-item{display:flex;align-items:center;margin-bottom:10px;cursor:pointer;position:relative}.igd-select-files-modal .shortcode-module .settings-field.sort-field .sort-field-section .sort-item i{display:none;position:absolute;right:-25px}.igd-select-files-modal .shortcode-module .settings-field.sort-field .sort-field-section .sort-item.active{color:var(--color-primary)}.igd-select-files-modal .shortcode-module .settings-field.sort-field .sort-field-section .sort-item.active i{display:block}.igd-select-files-modal .shortcode-module .settings-field.filter-users-field .filter-users-group{display:flex;flex-direction:column}.igd-select-files-modal .shortcode-module .settings-field.filter-users-field .filter-users{margin-top:15px;display:flex;flex-direction:column;border:1px dashed #ddd;padding:15px;border-radius:7px}.igd-select-files-modal .shortcode-module .settings-field.filter-users-field .filter-users-title{font-weight:500;font-size:1rem;margin-bottom:10px;text-align:right}.igd-select-files-modal .shortcode-module .settings-field.filter-users-field .filter-users-section{display:flex;align-items:center}.igd-select-files-modal .shortcode-module .settings-field.filter-users-field .filter-users-section:first-child{margin-left:20px}.igd-select-files-modal .shortcode-module .settings-field.filter-users-field .filter-users-section-label{margin-left:10px;font-weight:500}.igd-select-files-modal .shortcode-module .settings-field.filter-users-field .filter-users-section-wrap{display:flex;flex-wrap:wrap;margin-bottom:15px}.igd-select-files-modal .shortcode-module .settings-field.filter-users-field .filter-users-section-wrap .description{width:100%}.igd-select-files-modal .shortcode-module .settings-field input,.igd-select-files-modal .shortcode-module .settings-field select{height:40px;border-radius:5px;border:1px solid #ddd;font-size:.8rem;width:350px;max-width:100%}.igd-select-files-modal .shortcode-module .settings-field input:disabled,.igd-select-files-modal .shortcode-module .settings-field select:disabled{background:#f5f5f5;color:#aaa;cursor:not-allowed}.igd-select-files-modal .shortcode-module .settings-field .igd-select{width:400px}.igd-select-files-modal-header{display:flex;align-items:center;justify-content:space-between}.igd-select-files-modal-header .header-title{font-size:1.2rem;color:var(--color-primary);display:flex;align-items:center}.igd-select-files-modal-header .header-title i{margin-left:10px}.igd-select-files-modal-header button{padding:7px 8px}.igd-account-item{padding:1rem;display:flex;border:0 solid transparent;box-shadow:rgba(99,99,99,.2) 0 2px 8px 0;border-radius:.5rem;align-items:center;max-width:450px;margin-bottom:1rem;background:#fff}.igd-account-item img{width:50px;height:50px;margin-left:1rem;border-radius:50%}.igd-account-item-info{display:flex;flex-flow:column}.igd-account-item-info .account-name{font-size:1rem}.igd-account-item-info .account-email{color:#757575}.igd-account-item .igd-account-item-action{margin-right:auto}.igd-account-item .igd-account-item-action button{background-color:#ffe9d9;color:#f06500;border-color:transparent}.igd-account-item:hover button{background:#f96;color:#fff}.no-account-placeholder{display:flex;flex-flow:column;align-items:center;margin:10vh auto;padding:1.5rem 1rem;border-radius:.5rem;width:30rem;background:#fff;box-shadow:0 0 .5rem rgba(0,0,0,.1)}.no-account-placeholder>img{width:200px;margin-bottom:15px}.no-account-placeholder .placeholder-heading{font-size:1.2rem;margin-bottom:7px;font-weight:600}.no-account-placeholder button{margin-top:1.5rem;padding:7px 10px;background:#fff;color:#555;border-radius:3px;border:1px solid #ccc}.no-account-placeholder button img{width:24px;height:24px;margin-left:10px}.add-account-btn{padding:10px 15px;background:#fff;color:#555;border-radius:3px;border:1px solid #ccc}.add-account-btn img{width:24px;height:24px;margin-left:10px}.igd .igd-spinner{margin-top:0;border-radius:50%}.sortable-item{z-index:999999}.igd-select-sources-wrap .igd-browser-wrap{flex:1;margin-left:1rem}.igd-select-sources-wrap .igd-selected-list{width:24%;max-width:300px}.igd-select-sources-wrap.view-list .igd-browser-wrap{width:100%;margin-left:0}.igd-select-sources-wrap.view-list .igd-selected-list{width:100%;max-width:100%;margin-top:1rem}.igd-pagination{display:flex;padding:0}.igd-pagination li{justify-content:center!important;flex-wrap:wrap!important;list-style:none;position:relative;display:flex;align-items:center;padding:8px 16px;text-decoration:none!important;font-size:15px;margin-right:-1px;border:1px solid #dee2e6;margin-left:0;margin-top:0;cursor:pointer}.igd-pagination li.selected,.igd-pagination li:hover{background:var(--color-primary);color:#fff;border-color:var(--color-primary)}.igd-pagination li.disabled{background:#eee;cursor:not-allowed}.igd-pagination li:first-child{border-top-right-radius:3px;border-bottom-right-radius:3px}.igd-pagination li:last-child{border-top-left-radius:3px;border-bottom-left-radius:3px}.igd-pagination li svg{fill:currentColor}.igd-move-modal .components-modal__content{display:flex;flex-flow:column}.igd-file-item .igd-file-thumbnail{-webkit-user-drag:none}.template-tags{margin-top:10px;border-bottom:1px solid #eee;padding-bottom:8px;width:100%}.template-tags-title{width:100%;margin-bottom:7px;text-align:right;font-size:1rem;display:flex;align-items:center}.template-tags-title i{margin-left:7px;cursor:pointer}.template-tags-title span:nth-child(3){margin-right:7px}.template-tags-title+.template-tags-list{display:none}.template-tags-title.active i:before{content:"\f343"}.template-tags-title.active+.template-tags-list{display:flex}.template-tags-list{display:flex;flex-wrap:wrap}.template-tags-list .tag{color:#2fb44b;margin-left:10px;margin-bottom:7px;background:rgba(47,180,75,.1);padding:7px 10px;border-radius:5px;cursor:pointer;font-size:.87rem}.template-tags-list .tag:hover{background:rgba(47,180,75,.7);color:#fff}.template-tags-list .tag-break{width:100%;border-top:1px solid #eee;margin-top:5px;margin-bottom:11px}.template-tags-list .tag-break+.tag-break{display:none}.template-folder{padding:7px 10px;border-radius:5px;background:#eaeaea;margin-left:10px;font-size:.9rem;color:#555;display:flex;flex-wrap:wrap;align-items:center;width:-moz-max-content;width:max-content;line-height:1}.template-folder-account{margin-left:10px}.template-folder-item{background:#fff;padding:5px 7px;border-radius:3px;font-size:.8rem;display:flex;align-items:center;justify-content:center}.template-folder i,.template-folder img{margin-left:7px;width:20px}.template-folder-wrap{display:flex;align-items:center;width:100%}.template-folder-wrap button{font-size:.875rem;padding:7px;margin-right:10px}.template-folder-wrap button.btn-danger{background:#ff9f10;border-color:rgba(255,159,16,.5)}.template-folder-wrap button.btn-danger:hover{background:rgba(255,159,16,.8)}.template-folder-error{color:#ff9f10;font-size:.8rem;margin-top:10px;display:flex;align-items:center}.template-folder-error i{margin-left:5px}.template-folder .dashicons-no-alt{color:#ff9f10;cursor:pointer;margin-right:10px}body.google-drive_page_integrate-google-drive-settings{background:#f7f8fa}.igd-settings{display:flex;flex-wrap:wrap;margin-right:-20px;width:calc(100% + 20px)}@media (max-width:767px){.igd-settings{margin-right:-10px;width:calc(100% + 10px)}}.igd-settings *{box-sizing:border-box}.igd-settings .integrations-wrapper{margin-bottom:40px;background:#fff;padding:15px 20px;border-radius:10px}.igd-settings .integrations-wrapper .integrations-header{display:flex;flex-wrap:wrap;margin-bottom:60px;width:100%}.igd-settings .integrations-wrapper .integrations-header .igd-settings-body-title{margin-bottom:0}.igd-settings .integrations-wrapper .integrations-header p{font-size:1rem}.igd-settings .integrations-wrapper .integrations-header .integrations-actions{display:flex;align-items:center;-moz-column-gap:10px;column-gap:10px;margin-right:auto}.igd-settings .integrations-wrapper .integrations-header .integrations-actions button{height:40px}.igd-settings .integrations-wrapper .integrations{display:flex;flex-wrap:wrap;justify-content:space-between}.igd-settings .integrations-wrapper .integration-item{display:flex;flex-direction:column;align-items:center;justify-content:center;width:calc(25% - 30px);margin:15px 15px 60px 15px;text-align:center;border-radius:15px;padding:20px;position:relative;background:#fff;border:1px dashed rgba(47,180,75,.3);transition:all .3s ease;cursor:pointer;padding-top:60px;background:rgba(238,238,238,.3)}.igd-settings .integrations-wrapper .integration-item:last-child{margin-left:auto}.igd-settings .integrations-wrapper .integration-item-img{top:-50px;position:absolute;width:100px;height:auto;border-radius:50%;background:#fff;padding:5px;border:1px solid #ddd}.igd-settings .integrations-wrapper .integration-item-doc-link{position:absolute;top:10px;left:10px;text-decoration:none;color:#555;font-weight:400;display:flex;align-items:center;justify-content:center;line-height:1;transition:all .3s ease;border-radius:50%;background:#fff;border:1px solid #ddd;height:24px;width:24px}.igd-settings .integrations-wrapper .integration-item-doc-link i{height:auto;width:auto;font-size:22px}.igd-settings .integrations-wrapper .integration-item-doc-link:hover{transform:scale(1.2)}.igd-settings .integrations-wrapper .integration-item-title{font-size:14px;font-weight:600;text-transform:uppercase;color:#000;margin:10px 0}.igd-settings .integrations-wrapper .integration-item-description{font-size:.875rem;margin:10px 0;line-height:1.5}.igd-settings .integrations-wrapper .integration-item .toggle-label{color:#555;font-size:.75rem;font-weight:400;display:none}.igd-settings .integrations-wrapper .integration-item .toggle-label.active{color:#44b754}.igd-settings .integrations-wrapper .integration-item .toggle-label.inactive{color:#e74c3c}.igd-settings .integrations-wrapper .integration-item-toggle{margin:10px}.igd-settings .integrations-wrapper .integration-item-toggle-wrapper{display:flex;align-items:center}.igd-settings .integrations-wrapper .integration-item.active{border-style:solid;border-color:#2fb44b;background:rgba(47,180,75,.1)}.igd-settings .integrations-wrapper .integration-item.active:after{content:"Enabled";background:#44b754;position:absolute;top:10px;right:10px;text-align:center;color:#fff;font-size:12px;padding:5px 7px;border-radius:5px}.igd-settings .integrations-wrapper .integration-item .pro-badge{position:absolute;top:10px;right:10px;background:#ff9458;color:#fff;padding:5px 10px;border-radius:3px;font-size:12px;font-weight:400;display:flex;align-items:center;justify-content:center;line-height:1;box-shadow:0 0 5px rgba(0,0,0,.1);transition:all .3s ease}.igd-settings .integrations-wrapper .integration-item .pro-badge i{height:auto;width:auto;font-size:18px;margin-left:3px}.igd-settings .integrations-wrapper .integration-item .active-badge{position:absolute;top:-10px;left:-10px;background:#44b754;color:#fff;padding:5px 10px;border-radius:30px;font-size:12px;font-weight:400;display:flex;align-items:center;justify-content:center;line-height:1;box-shadow:0 0 5px rgba(0,0,0,.1);transition:all .3s ease}.igd-settings .integrations-wrapper .integration-item .active-badge i{height:auto;width:auto;font-size:18px;margin-left:3px}.igd-settings .integrations-wrapper .integration-item:hover .pro-badge{transform:scale(1.2)}.igd-settings .integrations-wrapper .integration-item.pro-item{border-color:#ff9458}@media (min-width:1200px) and (max-width:1600px){.igd-settings .integrations-wrapper .integration-item{width:calc(33.333% - 30px)}}@media (max-width:1200px){.igd-settings .integrations-wrapper .integration-item{width:calc(50% - 30px)}}@media (max-width:768px){.igd-settings .integrations-wrapper .integration-item{width:100%;margin:0}}.igd-settings-header{width:100%;display:flex;align-items:center;justify-content:space-between;padding:15px 20px;background:#fff;border-bottom:1px solid #e5e5e5;position:sticky;top:32px;z-index:9}.igd-settings-header-title{display:flex;align-items:center;font-size:1.5rem;font-weight:600;color:#000}.igd-settings-header-title img{margin-left:10px}.igd-settings-header-title i{margin-left:10px;background:var(--color-primary);color:#fff;padding:7px;border-radius:50%;height:auto;width:auto}.igd-settings-header-title i.dashicons-menu-alt3{display:none}.igd-settings-menu{width:250px;border:0 solid transparent;box-shadow:rgba(99,99,99,.2) 0 2px 8px 0;background:#fff;overflow:hidden;min-height:100vh}.igd-settings-menu-item{padding:8px 10px;margin:5px 0;cursor:pointer;transition:all .2s ease-in-out;display:flex;align-items:center;font-size:1rem}.igd-settings-menu-item img{margin-left:10px;width:32px}.igd-settings-menu-item:hover{background:#f5f5f5}.igd-settings-menu-item.active{background:rgba(47,180,75,.1);color:#2fb44b;border-left:3px solid #2fb44b;font-weight:500}@media (max-width:768px){.igd-settings-menu{width:100%;min-height:auto}.igd-settings-menu-item{padding:10px}}.igd-settings-body{flex:1;border:0 solid transparent;border-radius:.5rem;padding:20px 30px;display:flex;flex-flow:column}.igd-settings-body-title{font-size:1.2rem;font-weight:600;line-height:1;margin-top:0;margin-bottom:15px;text-align:right;display:flex;align-items:center;justify-content:space-between}@media (max-width:768px){.igd-settings-body{margin-top:20px;margin-right:0;padding:10px}}.igd-settings .settings-field{display:flex;align-items:center;flex-wrap:wrap;margin-bottom:20px;background:#fff;border-radius:10px;padding:20px 30px}.igd-settings .settings-field:last-child{border-bottom:none}.igd-settings .settings-field-label{width:200px;font-size:.9rem;font-weight:500;display:flex;justify-content:space-between;margin-left:30px;line-height:1.5;margin-top:0}.igd-settings .settings-field-label:after{content:":";margin-right:auto}.igd-settings .settings-field-content{flex:1;display:flex;flex-direction:column;width:100%}.igd-settings .settings-field-content input[type=email],.igd-settings .settings-field-content input[type=number],.igd-settings .settings-field-content input[type=text],.igd-settings .settings-field-content select{width:300px;height:45px!important;border-color:#ddd;border-radius:5px!important;max-width:100%}.igd-settings .settings-field-content input[type=email].folder-naming-template,.igd-settings .settings-field-content input[type=number].folder-naming-template,.igd-settings .settings-field-content input[type=text].folder-naming-template,.igd-settings .settings-field-content select.folder-naming-template{width:500px}.igd-settings .settings-field-content input[type=email]:focus,.igd-settings .settings-field-content input[type=number]:focus,.igd-settings .settings-field-content input[type=text]:focus,.igd-settings .settings-field-content select:focus{border-color:inherit;box-shadow:none}.igd-settings .settings-field-content .components-input-control__container{width:300px}.igd-settings .settings-field-content .components-input-control__backdrop{border-color:#ddd!important;border-radius:5px!important;height:45px}.igd-settings .settings-field-content .igd-color-palette{max-width:100%;position:relative;border:1px solid #e5e5e5;padding:11px;border-radius:10px;background:#fff}.igd-settings .settings-field-content .igd-color-palette legend{display:none}.igd-settings .settings-field-content .igd-color-palette .components-dropdown{width:-moz-max-content;width:max-content}.igd-settings .settings-field-content .igd-color-palette .components-color-palette__custom-color-button{width:100px;height:40px;border-radius:5px}.igd-settings .settings-field-content .igd-color-palette .components-color-palette__custom-color-button .components-truncate{display:none}.igd-settings .settings-field-content .igd-color-palette .components-color-palette__custom-color-button .components-color-palette__custom-color-value{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.igd-settings .settings-field-content .igd-color-palette .components-popover{right:0!important}.igd-settings .settings-field-content .igd-color-palette .components-popover .components-popover__content{outline-color:rgba(221,221,221,.5);border-radius:5px;box-shadow:rgba(0,0,0,.16) 0 10px 36px 0,rgba(0,0,0,.06) 0 0 0 1px}.igd-settings .settings-field-content .igd-color-palette .components-popover .components-popover__content .react-colorful+div{padding-top:0;display:flex}.igd-settings .settings-field-content .igd-color-palette .components-popover .components-popover__content .react-colorful+div>div:first-child{width:auto;padding-left:0}.igd-settings .settings-field-content .igd-color-palette .components-popover .components-popover__content .react-colorful+div>div:first-child>button{margin-right:5px}.igd-settings .settings-field-content .igd-color-palette .components-popover .components-popover__content .react-colorful+div>div:last-child{padding:5px;flex:1}.igd-settings .settings-field-content .igd-color-palette .components-popover .components-popover__content .react-colorful__saturation{height:100px;margin-bottom:10px}.igd-settings .settings-field-content .igd-color-palette .components-popover .components-popover__content .components-input-control__container{width:100%}.igd-settings .settings-field-content .igd-color-palette .components-popover .components-popover__content .components-input-control__container .components-spacer{margin-right:10px}.igd-settings .settings-field-content .igd-color-palette .components-popover .components-popover__content .components-input-control__container input{height:30px;min-height:30px;padding-left:5px}.igd-settings .settings-field-content .igd-color-palette .components-popover .components-popover__content .components-input-control__container select{height:auto!important}.igd-settings .settings-field-content .igd-color-palette .components-popover .components-popover__content .components-input-control__container .components-input-control__backdrop{border-color:#ddd;border-radius:5px;height:auto!important}.igd-settings .settings-field-content .igd-color-palette .components-popover .components-popover__content::-webkit-scrollbar{width:5px}.igd-settings .settings-field-content .igd-color-palette .components-popover .components-popover__content::-webkit-scrollbar-track{background:#f1f1f1}.igd-settings .settings-field-content .igd-color-palette .components-popover .components-popover__content::-webkit-scrollbar-thumb{background:#888}.igd-settings .settings-field-content .igd-color-palette .components-popover .components-popover__content::-webkit-scrollbar-thumb:hover{background:#555}.igd-settings .settings-field-content .igd-color-palette .components-circular-option-picker__custom-clear-wrapper{position:absolute;margin:0;right:120px;top:15px}.igd-settings .settings-field-content .igd-color-palette .components-circular-option-picker__custom-clear-wrapper button{color:#675ed5!important;background:#fff!important;border:1px solid rgba(103,94,213,.25)!important;box-shadow:none;font-size:.875rem;height:32px;width:60px;text-align:center;border-radius:5px;padding:5px 12px}.igd-settings .settings-field-content .igd-color-palette .components-circular-option-picker__custom-clear-wrapper button:hover{color:#fff;background:#675ed5;border:1px solid rgba(103,94,213,.25)}.igd-settings .settings-field-content .igd-color-palette .components-color-palette__custom-color-text-wrapper{position:absolute;box-shadow:none;pointer-events:none}.igd-settings .settings-field-content .igd-color-palette .components-circular-option-picker__option:after,.igd-settings .settings-field-content .igd-color-palette .components-circular-option-picker__option:before{width:auto;height:auto}.igd-settings .settings-field-content .igd-color-palette .components-circular-option-picker__option .components-tooltip{display:none}.igd-settings .settings-field-content .igd-color-palette .components-select-control .components-input-control__backdrop{display:block;border-color:#ddd!important;border-radius:5px!important}.igd-settings .settings-field-content .igd-color-palette.disabled{opacity:.5}.igd-settings .settings-field-content .igd-textarea{max-width:500px}.igd-settings .settings-field-content .igd-textarea textarea{border-color:#ddd;border-radius:5px!important}.igd-settings .settings-field-content .components-button-group{background:rgba(47,180,75,.1);padding:10px;width:-moz-max-content;width:max-content;border-radius:10px}.igd-settings .settings-field-content .components-button-group button{color:#47cf64;box-shadow:inset 0 0 0 1px rgba(47,180,75,.25);margin:0 3px;border-radius:5px;background:#fff}.igd-settings .settings-field-content .components-button-group button:first-child{border-top-right-radius:5px;border-bottom-right-radius:5px}.igd-settings .settings-field-content .components-button-group button:last-child{border-top-left-radius:5px;border-bottom-left-radius:5px}.igd-settings .settings-field-content .components-button-group button.is-primary{z-index:auto;background:#47cf64;color:#fff}.igd-settings .settings-field-content .components-button-group button.is-secondary:hover{color:#2fb44b;box-shadow:inset 0 0 0 1px #47cf64}.igd-settings .settings-field-content .components-button-group button i{margin-left:10px}.igd-settings .settings-field-content .preloaders{display:flex;flex-wrap:wrap}.igd-settings .settings-field-content .preloaders .preloader{display:flex;flex-direction:column;border:1px solid #e9e9e9;border-radius:.5rem;margin:0 0 15px 15px;position:relative;cursor:pointer;overflow:hidden;background:#eff3fe;width:130px}.igd-settings .settings-field-content .preloaders .preloader img{width:100%;height:100px;transition:all .2s ease-in-out}.igd-settings .settings-field-content .preloaders .preloader-name{border-top:1px solid #e9e9e9;padding:3px 5px;text-align:center;display:flex;align-items:center;justify-content:center;background:#fff;margin-top:auto}.igd-settings .settings-field-content .preloaders .preloader-name i{margin-left:3px}.igd-settings .settings-field-content .preloaders .preloader .pro-badge{position:absolute;top:-10px;left:-10px;background:#0a66c2;color:#fff;padding:5px 10px;border-radius:30px;font-size:12px;font-weight:400;display:flex;align-items:center;justify-content:center;line-height:1;box-shadow:0 0 5px rgba(0,0,0,.1);transition:all .3s ease}.igd-settings .settings-field-content .preloaders .preloader .pro-badge i{height:auto;width:auto;font-size:18px;margin-left:3px}.igd-settings .settings-field-content .preloaders .preloader.active{border-color:#2fb44b}.igd-settings .settings-field-content .preloaders .preloader.active .preloader-name{border-top-color:#2fb44b;background:#2fb44b;color:#fff}.igd-settings .settings-field-content .preloaders .preloader.active:after{content:"\f15e";font-family:Dashicons;height:24px;width:24px;background:#2fb44b;color:#fff;position:absolute;top:5px;left:5px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:21px}.igd-settings .settings-field-content .preloaders .preloader:hover{border-color:#2fb44b}.igd-settings .settings-field-content .preloaders .preloader:hover img{transform:scale(1.1)}.igd-settings .settings-field-content .preloaders .preloader.disabled .preloader-name{background:#ddd;color:#888}.igd-settings .settings-field-content .preloaders .preloader.disabled:hover{border-color:transparent}.igd-settings .settings-field-content .preloader-upload{border:1px dashed #ddd;border-radius:5px;padding:15px}.igd-settings .settings-field-content .preloader-upload h4{margin-top:0}.igd-settings .settings-field-content .preloader-upload-actions{display:flex;align-items:center}.igd-settings .settings-field-content .preloader-upload-actions button:nth-child(2){margin-right:10px}.igd-settings .settings-field-content .preloader-upload .preloader-preview{margin-top:20px}.igd-settings .settings-field-content .preloader-upload .preloader-preview img{max-width:150px;max-height:150px}.igd-settings .settings-field-content .own-google-app-warning{flex-direction:column}.igd-settings .settings-field .description{margin-top:7px;margin-bottom:0;color:#666;display:flex;align-items:center;flex-wrap:wrap}.igd-settings .settings-field .description .igd-btn{margin-right:15px}.igd-settings .settings-field .description strong{margin-left:3px}.igd-settings .settings-field .description strong:not(:first-child){margin-right:3px}.igd-settings .settings-field .template-tags-title{font-size:.875rem}.igd-settings .settings-field.field-preloader{flex-direction:column;align-items:flex-start}.igd-settings .settings-field.field-preloader .settings-field-label{width:100%}.igd-settings .settings-field.field-preloader .settings-field-label:after{content:""}.igd-settings .settings-field.field-preloader .description{font-size:1rem;margin-bottom:20px}.igd-settings .settings-field.field-access-browser:has(.settings-field-sub){flex-direction:column;align-items:flex-start}.igd-settings .settings-field.field-access-browser:has(.settings-field-sub) .settings-field-label{width:100%}.igd-settings .settings-field.field-access-browser:has(.settings-field-sub) .settings-field-label:after{content:""}.igd-settings .settings-field.field-custom-css{flex-direction:column;align-items:flex-start}.igd-settings .settings-field.field-custom-css .settings-field-label{width:100%}.igd-settings .settings-field.field-custom-css .settings-field-label:after{content:""}.igd-settings .settings-field.field-custom-css .igd-textarea,.igd-settings .settings-field.field-custom-css textarea{width:100%;max-width:100%}.igd-settings .settings-field.field-custom-css .description{font-size:1rem;margin-bottom:20px}.igd-settings .settings-field.field-custom-css .CodeMirror{border:1px solid #ddd;border-radius:5px}.igd-settings .settings-field.field-woocommerce-upload{align-items:flex-start}.igd-settings .settings-field.field-woocommerce-upload>.settings-field-label{margin-bottom:0;margin-top:20px}.igd-settings .settings-field.sync-folders .template-folder{margin-left:7px}.igd-settings .settings-field.sync-folders .template-folder-item{margin-right:0}.igd-settings .settings-field.sync-folders .igd-btn{margin-right:20px}.igd-settings .settings-field.field-access-denied-message{flex-direction:column;align-items:flex-start}.igd-settings .settings-field.field-access-denied-message .settings-field-label{width:100%}.igd-settings .settings-field.field-access-denied-message .settings-field-label:after{content:""}.igd-settings .settings-field.field-access-denied-message .description{margin-top:-5px;margin-bottom:15px}.igd-settings .settings-field.field-access-denied-message .wp-editor-wrap{width:100%}.igd-settings .settings-field.field-access-denied-message .wp-editor-wrap textarea{border:none}.igd-settings .settings-field.field-access-denied-message .wp-switch-editor{height:29px}.igd-settings .settings-field.field-access-denied-message textarea{width:100%;border:1px solid #eee;padding:15px;min-width:200px}.igd-settings .settings-field.field-access-denied-message textarea:focus{outline:0;box-shadow:none}.igd-settings .settings-field.field-naming-template input[type=text]{width:100%}.igd-settings .settings-field-sub{display:flex;flex-direction:column;width:100%}.igd-settings .settings-field-sub .settings-field{flex-direction:column;align-items:flex-start;margin-top:15px;margin-bottom:0;display:flex;border:1px dashed #ddd;padding:15px;border-radius:7px;width:100%}.igd-settings .settings-field-sub .settings-field-label{margin-bottom:10px;width:auto}.igd-settings .settings-field-sub .settings-field-label:after{content:"";display:none}.igd-settings .settings-field-sub .settings-field-content{width:100%;margin-right:0}.igd-settings .sub-settings{margin-right:10px;display:flex;flex-direction:column;margin-bottom:30px;background:#fff;border-top-left-radius:10px;border-bottom-left-radius:10px;padding:20px;position:relative}.igd-settings .sub-settings:before{content:"";position:absolute;top:0;right:-10px;width:10px;height:100%;background:#2fb44b}.igd-settings .sub-settings .settings-field{padding:0;margin:15px 0}.igd-settings .no-account-placeholder{margin:0 0 1rem 0;align-items:flex-start}.igd-settings .privacy-text-wrap{margin-top:30px;-webkit-user-select:none;-moz-user-select:none;user-select:none;background:#fff;border-radius:10px;padding:15px 15px 15px 30px}.igd-settings .privacy-text-wrap .privacy-text-btn{font-size:1rem;color:#555;cursor:pointer;display:flex;align-items:center}.igd-settings .privacy-text-wrap .privacy-text-btn img{margin-left:10px}.igd-settings .privacy-text-wrap .privacy-text-btn span{margin:0 5px}.igd-settings .privacy-text-wrap .privacy-text-btn i{margin-right:auto}.igd-settings .privacy-text-wrap .privacy-text{margin-top:20px;color:#333;padding:20px 10px;border-top:1px solid rgba(47,180,75,.2)}.igd-settings .privacy-text-wrap .privacy-text h4{margin-top:0;margin-bottom:5px;font-size:1rem}.igd-settings .privacy-text-wrap .privacy-text p{font-size:.9rem;line-height:1.5}.igd-settings .components-form-toggle{width:-moz-max-content;width:max-content;background:#fff;padding:3px;border-radius:15px}.igd-settings .components-form-toggle__track{width:44px;height:22px;border-radius:22px}.igd-settings .components-form-toggle__thumb{background:#2fb44b;border:none;width:15px;height:15px;border-radius:25px;top:6px;right:6px}.igd-settings .components-form-toggle.is-checked .components-form-toggle__thumb{background:#fff;transform:translateX(-22px)}.igd-settings .components-form-toggle.is-checked .components-form-toggle__track{background:#2fb44b}.igd-settings .components-checkbox-control{border-radius:5px;padding:10px;cursor:pointer;transition:all .2s ease-in-out;background:#fff;-webkit-user-select:none;-moz-user-select:none;user-select:none}.igd-settings .components-checkbox-control .components-base-control__field{display:flex;align-items:center;margin-bottom:0}.igd-settings .components-checkbox-control__input{border-color:#47cf64;outline:0;box-shadow:none}.igd-settings .components-checkbox-control__input:checked{background-color:#2fb44b}.igd-settings .components-checkbox-control:hover{border-color:#2fb44b}.igd-settings .sharing-channels{display:flex;flex-wrap:wrap}.igd-settings .sharing-channels-wrap{background:#fff;padding:15px 20px;border-radius:7px}.igd-settings .sharing-channels-wrap .igd-settings-body-title{margin-top:0;margin-bottom:5px}.igd-settings .sharing-channels-wrap .description{font-size:1rem;margin-bottom:10px}.igd-settings .sharing-channels .components-checkbox-control{margin:8px;border:1px solid #ddd}.igd-settings .sharing-channels .components-checkbox-control:first-child{margin-right:0}@media (max-width:767px){.igd-settings-header{top:0}.igd-settings-header-title i.dashicons-admin-generic{display:none}.igd-settings-header-title i.dashicons-menu-alt3{display:block}.igd-settings-menu.active{display:block}.igd-settings-body{margin-left:10px}.igd-settings .settings-field{flex-flow:column;align-items:flex-start}.igd-settings .settings-field-label{margin-bottom:10px}.igd-settings .settings-field-label:after{display:none}}body.google-drive_page_integrate-google-drive-getting-started #wpcontent{padding:0;background:#fff}.igd-getting-started *{box-sizing:border-box}.igd-getting-started .getting-started-header{background:url(../images/getting-started/bg-shapes.png) no-repeat top/cover,#116222;padding:60px 60px 120px 60px;color:#fff;text-align:center}.igd-getting-started .getting-started-header .header-logo{display:flex;align-items:center;justify-content:center;margin-bottom:1rem;line-height:1.5}.igd-getting-started .getting-started-header .header-logo img{width:50px;margin-left:10px;background:#fff;padding:5px;border-radius:50%}.igd-getting-started .getting-started-header .header-logo span{font-size:2rem;font-weight:600}.igd-getting-started .getting-started-header p{max-width:600px;font-size:1rem;margin:auto;line-height:1.5;color:#eafaff}.igd-getting-started .getting-started-header .header-title{font-size:1.3rem;background:#248c3a;padding:17px 20px;border-radius:30px;display:inline-flex;color:#eaf7ed}@media (max-width:767px){.igd-getting-started .getting-started-header{padding:20px 20px 80px 20px}.igd-getting-started .getting-started-header .header-logo img{width:35px;padding:2px}.igd-getting-started .getting-started-header .header-logo span{font-size:1.5rem}.igd-getting-started .getting-started-header p{font-size:.9rem}.igd-getting-started .getting-started-header .header-title{font-size:1rem;padding:10px 15px}}.igd-getting-started .getting-started-main{max-width:1000px;margin:-64px auto 0 auto}.igd-getting-started .getting-started-menu{display:flex;justify-content:center;align-items:center;background:#fff;border-top-right-radius:30px;border-top-left-radius:30px;border-bottom:1px solid #e5e5e5}.igd-getting-started .getting-started-menu .menu-item{display:flex;align-items:center;padding:20px 30px;cursor:pointer;color:#4d4d4d;transition:all .3s ease-in-out;border-bottom:2px solid transparent;margin-bottom:-2px}.igd-getting-started .getting-started-menu .menu-item svg{margin-left:10px}.igd-getting-started .getting-started-menu .menu-item span{font-size:.9rem;font-weight:500}.igd-getting-started .getting-started-menu .menu-item:hover{color:#248c3a}.igd-getting-started .getting-started-menu .menu-item:hover path,.igd-getting-started .getting-started-menu .menu-item:hover svg{fill:#248c3a}.igd-getting-started .getting-started-menu .menu-item.active{color:#2fb44b;border-bottom:2px solid #2fb44b}.igd-getting-started .getting-started-menu .menu-item.active path,.igd-getting-started .getting-started-menu .menu-item.active svg{fill:#2fb44b}@media (max-width:767px){.igd-getting-started .getting-started-menu{border-radius:0;flex-direction:column;align-items:normal}}.igd-getting-started .getting-started-content{display:none;margin-top:30px}.igd-getting-started .getting-started-content .section-wrap{display:flex;flex-wrap:wrap;justify-content:space-between;margin-bottom:30px}.igd-getting-started .getting-started-content .section-wrap section{width:48%}.igd-getting-started .getting-started-content section{display:flex;flex-wrap:wrap;padding:30px;border-radius:15px}.igd-getting-started .getting-started-content section.section-full{align-items:center;justify-content:space-between;margin-bottom:2rem}.igd-getting-started .getting-started-content section.section-full>div{width:48%}.igd-getting-started .getting-started-content section.section-half{justify-content:center}.igd-getting-started .getting-started-content section.section-half .col-description{text-align:center;margin-bottom:1rem}.igd-getting-started .getting-started-content section.section-half .col-image{margin-top:auto}.igd-getting-started .getting-started-content section.section-introduction{background:#eaf7ed}.igd-getting-started .getting-started-content section.section-file-browser,.igd-getting-started .getting-started-content section.section-file-uploader{background:#eff3fe}.igd-getting-started .getting-started-content section.section-photo-gallery,.igd-getting-started .getting-started-content section.section-slider-carousel{background:rgba(253,246,236,.8)}.igd-getting-started .getting-started-content section.section-file-importer,.igd-getting-started .getting-started-content section.section-links{background:#eff3fe}.igd-getting-started .getting-started-content section.section-multiple-accounts{background:#eaf7ed}.igd-getting-started .getting-started-content section.section-contact,.igd-getting-started .getting-started-content section.section-documentation{background:#eaf7ed}.igd-getting-started .getting-started-content section.section-contact .col-image img,.igd-getting-started .getting-started-content section.section-documentation .col-image img{border:none}.igd-getting-started .getting-started-content section.section-add-account,.igd-getting-started .getting-started-content section.section-media-player{background:#eaf7ed}.igd-getting-started .getting-started-content section.section-embed,.igd-getting-started .getting-started-content section.section-file-search{background:#eaf7ed}.igd-getting-started .getting-started-content section.section-private-folders,.igd-getting-started .getting-started-content section.section-shortcode-builder,.igd-getting-started .getting-started-content section.section-woocommerce{background:#fdf6ec}.igd-getting-started .getting-started-content section.section-data-privacy{background:#eaf7ed;margin-bottom:2rem}.igd-getting-started .getting-started-content section.section-data-privacy .col-description{text-align:right}.igd-getting-started .getting-started-content section.integrations{display:flex;flex-wrap:wrap;justify-content:space-between;margin:0 -10px;padding:0}.igd-getting-started .getting-started-content section.integrations .integration{width:calc(33% - 20px);display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;background:#eaf7ed;margin:10px;padding:20px;border-radius:15px}.igd-getting-started .getting-started-content section.integrations .integration img{width:100px;height:100px;margin-bottom:10px;border-radius:50%}.igd-getting-started .getting-started-content section .col-description h2{font-size:1.5rem;font-weight:600;margin:1rem 0}.igd-getting-started .getting-started-content section .col-image iframe,.igd-getting-started .getting-started-content section .col-image img{width:100%;border-radius:7px}.igd-getting-started .getting-started-content section .col-image iframe{aspect-ratio:16/9;box-shadow:0 0 10px rgba(0,0,0,.1)}.igd-getting-started .getting-started-content section .igd-btn{padding:15px 20px;margin:30px auto 0 auto}.igd-getting-started .getting-started-content .content-heading{display:flex;flex-direction:column;align-items:center;justify-content:center;margin:80px auto 40px auto;text-align:center;max-width:600px;line-height:1.3}.igd-getting-started .getting-started-content .content-heading h2{margin:5px 0;font-size:30px;font-weight:700}.igd-getting-started .getting-started-content .content-heading p{margin:5px;font-size:.875rem}.igd-getting-started .getting-started-content.active{display:block}@media (max-width:767px){.igd-getting-started .getting-started-content{padding:10px}.igd-getting-started .getting-started-content .section-wrap section{width:100%;margin-bottom:30px}.igd-getting-started .getting-started-content section.section-full{flex-direction:column;align-items:center;justify-content:center}.igd-getting-started .getting-started-content section.section-full>div{width:100%}.igd-getting-started .getting-started-content section.integrations{margin:0}.igd-getting-started .getting-started-content section.integrations .integration{width:100%;margin:0 0 20px 0}}.igd-getting-started .getting-started-content p{font-size:1rem}.igd-getting-started .getting-started-content li{font-size:.975rem;margin-bottom:15px;line-height:1.5}.igd-getting-started .getting-started-content h4{font-size:1rem}.igd-getting-started .log{border-radius:15px;margin-bottom:20px}.igd-getting-started .log-header{display:flex;align-items:center;cursor:pointer;padding:20px;background:rgba(47,180,75,.0875);border-radius:15px}.igd-getting-started .log-header span{font-size:1rem;font-weight:500;margin-left:10px}.igd-getting-started .log-header span.log-version{background:#2fb44b;color:#fff;padding:5px 10px;border-radius:5px}.igd-getting-started .log-header i{margin-right:auto;background:#2fb44b;display:flex;align-items:center;justify-content:center;color:#fff;border-radius:50%;height:25px;width:25px}.igd-getting-started .log-body{display:none}.igd-getting-started .log-body .log-section{padding-bottom:10px;border-bottom:1px solid rgba(47,180,75,.1)}.igd-getting-started .log-body .log-section:last-child{border-bottom:none}.igd-getting-started .log-body .log-item{font-size:1rem;line-height:1.5;margin-bottom:10px;display:flex;align-items:center}.igd-getting-started .log-body .log-item i{display:inline-flex;align-items:center;justify-content:center;margin-left:10px;border-radius:50%;height:25px;width:25px;padding:5px}.igd-getting-started .log-body .log-item-new{color:#3265a6}.igd-getting-started .log-body .log-item-new i{background:#3265a6;color:#fff}.igd-getting-started .log-body .log-item-fix{color:#2fb44b}.igd-getting-started .log-body .log-item-fix i{background:#2fb44b;color:#fff}.igd-getting-started .log-body .log-item-enhancement{color:#f5a623}.igd-getting-started .log-body .log-item-enhancement i{background:#f5a623;color:#fff}.igd-getting-started .log-body .log-item-remove{color:#f3754d}.igd-getting-started .log-body .log-item-remove i{background:100% 0}.igd-getting-started .log.active{border:1px solid rgba(47,180,75,.3)}.igd-getting-started .log.active .log-header{border-bottom:1px solid rgba(47,180,75,.3);border-bottom-right-radius:0;border-bottom-left-radius:0}.igd-getting-started .log.active .log-body{display:block;padding:20px}.igd-getting-started .free-vs-pro h2 span{margin:0 10px}.igd-getting-started .free-vs-pro h2 span:first-child{color:#7a7a7a}.igd-getting-started .free-vs-pro h2 span:last-child{color:#2fb44b}.igd-getting-started .features-list{background:#eff3fe;border-radius:15px}.igd-getting-started .features-list .list-header{display:flex;align-items:center;padding:30px;font-size:1.2rem;border-bottom:1px solid rgba(47,180,75,.1);font-weight:600;background:rgba(47,180,75,.0875)}.igd-getting-started .features-list .list-header .feature-title{width:75%}.igd-getting-started .features-list .list-header .feature-free{width:12%}.igd-getting-started .features-list .list-header .feature-pro{width:12%;margin-right:auto;text-align:center}.igd-getting-started .features-list .feature{display:flex;align-items:center;padding:20px 30px;font-size:1rem;font-weight:500;border-bottom:1px solid rgba(47,180,75,.1)}.igd-getting-started .features-list .feature:last-child{border-bottom:none}.igd-getting-started .features-list .feature .feature-title{width:75%}.igd-getting-started .features-list .feature i{color:#fff;background:#2fb44b;width:30px;height:30px;display:inline-flex;align-items:center;justify-content:center;border-radius:10px}.igd-getting-started .features-list .feature i.dashicons-no-alt{background:#7a7a7a}.igd-getting-started .features-list .feature .feature-free{width:12%}.igd-getting-started .features-list .feature .feature-pro{width:12%;margin-right:auto;text-align:center}.igd-getting-started .get-pro-cta{display:flex;align-items:center;background:rgba(47,180,75,.0875);border-radius:15px;padding:30px;margin:60px 0}.igd-getting-started .get-pro-cta .cta-content{display:flex;flex-direction:column;width:60%}.igd-getting-started .get-pro-cta .cta-content h2{margin-bottom:5px;font-size:1.5rem;font-weight:700;line-height:1.3}.igd-getting-started .get-pro-cta .cta-btn{flex:1;display:flex;align-items:center;justify-content:center}.igd-getting-started .get-pro-cta .cta-btn .igd-btn{padding:15px 20px}@media (max-width:767px){.igd-getting-started .get-pro-cta{flex-direction:column;align-items:center;padding:30px 20px;text-align:center}.igd-getting-started .get-pro-cta .cta-content{width:100%;margin-bottom:20px}.igd-getting-started .get-pro-cta .cta-btn{width:100%}}.igd-getting-started .demo-cta{display:flex;align-items:center;background:#fdf6ec;border-radius:15px;padding:30px;margin:60px 0}.igd-getting-started .demo-cta .cta-content{display:flex;flex-direction:column;width:60%}.igd-getting-started .demo-cta .cta-content h2{margin-bottom:5px;font-size:1.5rem;font-weight:700;line-height:1.3}.igd-getting-started .demo-cta .cta-btn{flex:1;display:flex;align-items:center;justify-content:center}.igd-getting-started .demo-cta .cta-btn .igd-btn{padding:15px 20px}@media (max-width:767px){.igd-getting-started .demo-cta{flex-direction:column;align-items:center;padding:30px 20px;text-align:center}.igd-getting-started .demo-cta .cta-content{width:100%;margin-bottom:20px}.igd-getting-started .demo-cta .cta-btn{width:100%}}.igd-getting-started .facebook-cta{display:flex;align-items:center;background:url(../images/getting-started/cta-bg.png) no-repeat center/cover,#eaf7ed;border-radius:15px;padding:30px 60px;margin:60px 0}.igd-getting-started .facebook-cta .cta-content{display:flex;flex-direction:column;width:60%}.igd-getting-started .facebook-cta .cta-content h2{margin-bottom:5px;font-size:1.5rem;font-weight:700;line-height:1.3}.igd-getting-started .facebook-cta .cta-btn{flex:1;display:flex;align-items:center;justify-content:center}.igd-getting-started .facebook-cta .cta-btn .igd-btn{padding:15px 20px}@media (max-width:767px){.igd-getting-started .facebook-cta{flex-direction:column;align-items:center;padding:30px 20px;text-align:center}.igd-getting-started .facebook-cta .cta-content{width:100%;margin-bottom:20px}.igd-getting-started .facebook-cta .cta-btn{width:100%}}.igd-getting-started .faq-item{margin-bottom:30px;border:1px solid #eff3fe;border-radius:15px;overflow:hidden;display:flex;width:100%;flex-direction:column;-webkit-user-select:none;-moz-user-select:none;user-select:none}.igd-getting-started .faq-item .faq-header{font-weight:500;cursor:pointer;display:flex;align-items:center;background:#eff3fe;padding:15px 20px}.igd-getting-started .faq-item .faq-header i{margin-left:15px;font-size:1.2rem;transition:all .3s ease-in-out;background:#fff;color:#333;width:35px;height:35px;display:inline-flex;align-items:center;justify-content:center;border-radius:10px}.igd-getting-started .faq-item .faq-header h3{font-size:1.2rem;margin:0}.igd-getting-started .faq-item .faq-body{display:none;line-height:1.5;padding:10px 20px}.igd-getting-started .faq-item .faq-body p{font-size:1rem;color:#444}.igd-getting-started .faq-item.active .faq-header i{color:#2fb44b;transform:rotate(-180deg)}.igd-getting-started .faq-item.active .faq-body{display:block}#woocommerce-product-data ul.wc-tabs li.upload_options_options a:before{content:"\f13b";font-family:dashicons}.igd-woocommerce{display:inline-flex;float:left;margin-left:10px}.igd-woocommerce .igd-wc-button{display:inline-flex!important;margin-right:auto!important;align-items:center}.igd-woocommerce .igd-wc-button img{margin-left:5px}.upload-box-settings{margin:20px}.upload-box-settings .form-field .description{display:block;clear:both;margin:20px 0 10px 0}.upload-box-settings .form-field .upload_folder_name{width:100%}.igd-wc-upload-wrap{margin:20px 0;display:block}.igd-wc-upload-wrap .upload-button{display:flex!important;align-items:center;width:-moz-max-content;width:max-content;text-align:center;margin-bottom:15px!important;float:none!important}.igd-wc-upload-wrap .upload-button i{margin-left:5px}.igd-wc-upload-wrap .igd-shortcode-uploader{visibility:hidden;width:0;height:0;position:absolute;overflow:hidden;z-index:-1;max-width:500px;clear:both}.igd-wc-upload-wrap .igd-shortcode-uploader .igd-file-uploader-inner .dashicons-cloud-upload{display:none}.igd-wc-upload-wrap .igd-shortcode-uploader .igd-file-uploader{margin:0}.igd-wc-upload-wrap .igd-wc-upload-description{margin:0;clear:both}.igd-wc-upload-wrap .wc-file-list-wrap{margin-top:15px;clear:both}.igd-wc-upload-wrap .wc-file-list-wrap h4{font-size:1.2rem;margin-bottom:10px}.igd-wc-upload-wrap .wc-file-list-wrap .wc-file-list{margin:10px 0;padding:0;list-style:none}.igd-wc-upload-wrap .wc-file-list-wrap .wc-file-list li{display:flex;align-items:center;margin:3px;font-size:12px;font-weight:600;color:#333;transition:all .2s ease-in-out;-webkit-user-select:none;-moz-user-select:none;user-select:none}.igd-wc-upload-wrap .wc-file-list-wrap .wc-file-list li img{margin-left:5px;width:16px}.igd-wc-upload-wrap .wc-file-list-wrap .wc-file-list li .dashicons-no-alt{color:#ff9f10;cursor:pointer;margin-right:15px;margin-left:0}.igd-wc-upload-wrap:has(.upload-button.active) .igd-shortcode-uploader{display:flex;visibility:visible;width:auto;height:auto;position:relative;overflow:visible;z-index:1}.woocommerce-page.woocommerce-checkout form #order_review td.product-name:has(.igd-wc-upload-wrap){flex-wrap:wrap}.igd-wc-uploaded-files{display:flex;flex-direction:column;margin:0!important;padding:0!important}.igd-wc-uploaded-files-wrap{width:30%;padding:0}.igd-wc-uploaded-files li{margin-bottom:5px!important}.igd-wc-uploaded-files a{display:flex;text-decoration:none;color:#555;font-size:.875rem;overflow:hidden;transition:all .2s ease-in-out}.igd-wc-uploaded-files a img{margin-left:5px!important;width:20px!important}.igd-wc-uploaded-files a span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.igd-wc-uploaded-files a:hover{color:#333}.dokan-igd-settings .igd-dokan-settings-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;flex-wrap:wrap;background:#eee;border-radius:7px;padding:10px}.dokan-igd-settings .igd-dokan-settings-header h2{margin:0}.dokan-igd-settings .igd-upload-settings-header{margin-top:50px}.dokan-igd-settings .dokan-igd-ajax-response{width:100%;margin:0;display:none}.dokan-igd-settings .save-upload-settings{padding:15px 20px}.dokan-igd-settings .dokan-control-label{text-align:right}.dokan-igd-settings .wc-radios{margin-top:0;padding:0}.dokan-igd-settings .parent-folder{padding:7px 10px;border-radius:5px;background:#eaeaea;margin-left:20px;font-size:.9rem;color:#555;display:inline-flex;flex-wrap:wrap;align-items:center;width:-moz-max-content;width:max-content;line-height:1}.dokan-igd-settings .parent-folder-item{background:#fff;padding:3px 5px;border-radius:3px;margin-right:10px;font-size:.8rem;display:flex;align-items:center;justify-content:center}.dokan-igd-settings .parent-folder i,.dokan-igd-settings .parent-folder img{margin-left:7px}.dokan-igd-settings .parent-folder .dashicons-no-alt{color:#ff9f10;cursor:pointer;margin-right:7px;margin-left:0}.dokan-igd-settings .parent-folder .select-parent-folder{margin-right:10px}.dokan-igd-settings .folder-naming-template{font-size:1rem;margin-bottom:10px}.dokan-igd-settings .variables{display:flex;flex-wrap:wrap}.dokan-igd-settings .variables .variable{display:flex;align-items:center;margin:3px;padding:3px;border:1px solid #ccc;border-radius:5px;background:#f5f5f5;font-size:12px;font-weight:600;color:#333;cursor:pointer;transition:all .2s ease-in-out}.dokan-igd-settings .variables .variable:hover{background:#e5e5e5}.dokan-igd-settings .variables .variable .variable-name{margin-left:5px}.igd-dokan{display:inline-block;margin-right:10px}.igd-dokan .igd-wc-button{display:inline-flex!important;margin-right:auto!important;align-items:center}.igd-dokan .igd-wc-button img{margin-left:5px}.edd-add-repeatable-row{display:flex;align-items:center}.igd-edd{margin-right:auto;display:inline-flex;float:left}.igd-edd .igd-edd-button{display:inline-flex!important;margin-right:auto!important;align-items:center}.igd-edd .igd-edd-button img{margin-left:5px}.igd-datepicker{background:#fff;border:1px solid rgba(47,180,75,.3);border-radius:7px;border-top:2px solid #47cf64;box-shadow:0 0 5px rgba(0,0,0,.2);font-size:14px;padding:10px;width:250px}.igd-datepicker .ui-datepicker-header{border:none;padding:0;margin-bottom:10px;display:flex;justify-content:space-between;align-items:center}.igd-datepicker .ui-datepicker-header .ui-datepicker-next,.igd-datepicker .ui-datepicker-header .ui-datepicker-prev{background:100% 0;color:#2fb44b;border:1px solid rgba(47,180,75,.3);font-size:20px;font-weight:700;line-height:1;text-shadow:none;padding:0;margin:0;width:30px;height:30px;border-radius:50%;text-align:center;vertical-align:middle;position:relative;top:2px;font-family:Dashicons,serif;display:flex;justify-content:center;align-items:center;cursor:pointer}.igd-datepicker .ui-datepicker-header .ui-datepicker-next:hover,.igd-datepicker .ui-datepicker-header .ui-datepicker-prev:hover{background:#f1f1f1}.igd-datepicker .ui-datepicker-header .ui-datepicker-prev{float:right}.igd-datepicker .ui-datepicker-header .ui-datepicker-prev:before{content:"\f341"}.igd-datepicker .ui-datepicker-header .ui-datepicker-next{order:3}.igd-datepicker .ui-datepicker-header .ui-datepicker-next:before{content:"\f345"}.igd-datepicker .ui-datepicker-header .ui-datepicker-title{font-size:16px;font-weight:700;line-height:1;text-align:center;margin:0;padding:0;text-transform:uppercase;order:2}.igd-datepicker .ui-datepicker-calendar{border:none;width:100%;margin:0;padding:0;border-collapse:collapse}.igd-datepicker .ui-datepicker-calendar th{font-size:12px;font-weight:700;line-height:1;text-align:center;padding:5px 0;text-transform:uppercase}.igd-datepicker .ui-datepicker-calendar td{padding:0;text-align:center}.igd-datepicker .ui-datepicker-calendar td a{display:flex;justify-content:center;align-items:center;padding:5px;color:#000;text-decoration:none;border-radius:50%;transition:all .3s ease;aspect-ratio:1/1}.igd-datepicker .ui-datepicker-calendar td a:hover{background:#47cf64;color:#fff}.igd-datepicker .ui-datepicker-calendar td.ui-datepicker-today a{border:1px solid #47cf64}.igd-datepicker .ui-datepicker-calendar td.ui-datepicker-unselectable a{color:#ccc}.igd-datepicker .ui-datepicker-calendar td.ui-datepicker-current-day a{background:#2fb44b;color:#fff;aspect-ratio:1/1}body.google-drive_page_integrate-google-drive-statistics #wpfooter{display:none}.igd-statistics,.igd-statistics *{box-sizing:border-box}.igd-statistics .statistics-header{display:flex;align-items:center;justify-content:space-between;position:sticky;top:32px;background:#fff;margin:0 -20px 30px 0;padding:15px;z-index:1;border-bottom:1px solid #eaeaea}.igd-statistics .statistics-header .statistics-header-title{font-size:18px;font-weight:600;color:#333;display:flex;align-items:center}.igd-statistics .statistics-header .statistics-header-title img{margin-left:10px}.igd-statistics .statistics-header-desc{margin-right:10px;font-size:14px;font-weight:400}.igd-statistics .statistics-header .statistics-range{display:flex;align-items:center;margin-right:auto}.igd-statistics .statistics-header .statistics-range .date-field-wrap{position:relative;display:flex;margin-left:10px;border:1px solid #ddd;border-radius:10px;overflow:hidden}.igd-statistics .statistics-header .statistics-range .date-field-wrap .date-field-prefix{display:inline-flex;align-items:center;font-size:.875rem;font-weight:400;background:#eee;color:#333;height:inherit;padding:7px}.igd-statistics .statistics-header .statistics-range .date-field-wrap .date-field-prefix span{margin-right:5px}.igd-statistics .statistics-header .statistics-range .date-field-wrap .date-field-suffix{display:inline-flex;align-items:center;vertical-align:middle;padding:7px;height:inherit}.igd-statistics .statistics-header .statistics-range input{height:40px;border:none;border-radius:0;max-width:100px}.igd-statistics .statistics-header .statistics-range input:focus{outline:0;box-shadow:none}.igd-statistics .statistics-header .statistics-range>button{height:40px}.igd-statistics .statistics-header .clear-statistics{margin-right:10px;transform:rotate(-90deg);cursor:pointer}.igd-statistics .statistics-header .clear-statistics-tooltip{opacity:1;padding:15px;border-radius:10px;margin-top:30px;margin-right:0;box-shadow:0 0 10px rgba(0,0,0,.1)}.igd-statistics .statistics-header .clear-statistics-tooltip button{width:100%}.igd-statistics .statistics-header .clear-statistics-tooltip .btn-info{margin-bottom:10px}.igd-statistics .statistics-header .clear-statistics-tooltip:after,.igd-statistics .statistics-header .clear-statistics-tooltip:before{top:30px}@media (max-width:767px){.igd-statistics .statistics-header{flex-direction:column;position:static}.igd-statistics .statistics-header .statistics-header-title{margin-bottom:10px}.igd-statistics .statistics-header .statistics-range{flex-wrap:wrap;justify-content:center}.igd-statistics .statistics-header .statistics-range .date-field-wrap{width:47%;margin-bottom:10px}.igd-statistics .statistics-header .statistics-range .date-field-wrap:nth-child(2){margin-left:0}}.igd-statistics .statistics-summary{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between;margin-bottom:30px;margin-top:30px;margin-left:10px}.igd-statistics .statistics-summary .statistics-summary-item{display:flex;align-items:center;font-size:14px;font-weight:600;transition:all .3s ease;border-radius:15px;padding:2rem 1rem;background:#fff;margin:0 15px;width:calc(25% - 30px);position:relative}.igd-statistics .statistics-summary .statistics-summary-item:before{content:"";position:absolute;top:0;width:90%;height:5px;background:#2fb44b;right:5%}.igd-statistics .statistics-summary .statistics-summary-item.summary-upload:before{background:#70c5ff}.igd-statistics .statistics-summary .statistics-summary-item.summary-preview:before{background:#18b3fd}.igd-statistics .statistics-summary .statistics-summary-item.summary-stream:before{background:#7da2f6}.igd-statistics .statistics-summary .statistics-summary-item:nth-child(1){margin-right:0}.igd-statistics .statistics-summary .statistics-summary-item .statistics-summary-item-icon{margin-left:15px;width:60px;box-shadow:0 0 3px rgba(0,0,0,.1);border-radius:50%}.igd-statistics .statistics-summary .statistics-summary-item .summary-info{display:flex;flex-direction:column}.igd-statistics .statistics-summary .statistics-summary-item .statistics-summary-item-title{font-size:1rem;font-weight:400;color:#7a7a7a;margin-top:5px}.igd-statistics .statistics-summary .statistics-summary-item .statistics-summary-item-count{font-size:2rem;font-weight:700;color:#333;line-height:1}@media (max-width:767px){.igd-statistics .statistics-summary .statistics-summary-item{width:calc(50% - 20px);margin:0 10px 20px 10px}.igd-statistics .statistics-summary .statistics-summary-item:nth-child(3){margin-right:0}}.igd-statistics .statistics-boxes{width:100%;display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:30px}.igd-statistics .statistics-boxes-wrapper{margin-left:15px}.igd-statistics .statistics-boxes.top-upload .statistics-box .box-title i{background:#70c5ff}.igd-statistics .statistics-boxes.top-upload .table-wrapper::-webkit-scrollbar-thumb{background:rgba(112,197,255,.25)}.igd-statistics .statistics-boxes.top-upload .table-wrapper::-webkit-scrollbar-thumb:hover{background:rgba(112,197,255,.5)}.igd-statistics .statistics-boxes.top-upload table thead tr th{background:#70c5ff}.igd-statistics .statistics-boxes.top-upload table tbody tr td{border-bottom:1px dashed rgba(112,197,255,.2)}.igd-statistics .statistics-boxes.top-preview .statistics-box .box-title i{background:#18b3fd}.igd-statistics .statistics-boxes.top-preview .table-wrapper::-webkit-scrollbar-thumb{background:rgba(24,179,253,.25)}.igd-statistics .statistics-boxes.top-preview .table-wrapper::-webkit-scrollbar-thumb:hover{background:rgba(24,179,253,.5)}.igd-statistics .statistics-boxes.top-preview table thead tr th{background:#18b3fd}.igd-statistics .statistics-boxes.top-preview table tbody tr td{border-bottom:1px dashed rgba(24,179,253,.2)}.igd-statistics .statistics-boxes.top-stream .statistics-box .box-title i{background:#7da2f6}.igd-statistics .statistics-boxes.top-stream .table-wrapper::-webkit-scrollbar-thumb{background:rgba(125,162,246,.25)}.igd-statistics .statistics-boxes.top-stream .table-wrapper::-webkit-scrollbar-thumb:hover{background:rgba(125,162,246,.5)}.igd-statistics .statistics-boxes.top-stream table thead tr th{background:#7da2f6}.igd-statistics .statistics-boxes.top-stream table tbody tr td{border-bottom:1px dashed rgba(125,162,246,.2)}.igd-statistics .statistics-boxes.top-search .statistics-box .box-title i{background:#5bd475}.igd-statistics .statistics-boxes.top-search .table-wrapper::-webkit-scrollbar-thumb{background:rgba(47,180,75,.25)}.igd-statistics .statistics-boxes.top-search .table-wrapper::-webkit-scrollbar-thumb:hover{background:rgba(47,180,75,.5)}.igd-statistics .statistics-boxes.top-search table thead tr th{background:#5bd475}.igd-statistics .statistics-boxes.top-search table tbody tr td{border-bottom:1px dashed rgba(47,180,75,.2)}@media (max-width:767px){.igd-statistics .statistics-boxes{flex-direction:column}.igd-statistics .statistics-boxes .statistics-box{width:100%;margin-bottom:15px}}.igd-statistics .statistics-box{width:49%;display:flex;flex-direction:column;background:#fff;padding:30px;border-radius:10px;box-shadow:rgba(149,157,165,.2) 0 8px 24px}.igd-statistics .statistics-box.event-chart,.igd-statistics .statistics-box.event-logs{width:100%;margin-bottom:50px}.igd-statistics .statistics-box .box-title{font-size:1rem;font-weight:500;color:#333;display:flex;align-items:center}.igd-statistics .statistics-box .box-title i{margin-right:auto;cursor:pointer;border-radius:50%;background:#2fb44b;color:#fff;padding:5px;width:auto;height:auto}.igd-statistics .statistics-box .table-wrapper{width:100%;overflow-y:auto;margin:15px 0;max-height:400px}.igd-statistics .statistics-box .table-wrapper thead{position:sticky;top:-1px}.igd-statistics .statistics-box .table-wrapper::-webkit-scrollbar{width:5px;height:5px;border-radius:10px}.igd-statistics .statistics-box .table-wrapper::-webkit-scrollbar-track{background:#f1f1f1;border-radius:10px;margin-top:50px}.igd-statistics .statistics-box .table-wrapper::-webkit-scrollbar-thumb{background:rgba(47,180,75,.3);border-radius:10px}.igd-statistics .statistics-box .table-wrapper::-webkit-scrollbar-thumb:hover{background:rgba(47,180,75,.5)}.igd-statistics .statistics-box table{width:100%;border-collapse:collapse;border-spacing:0;font-size:14px;color:#333;font-weight:600;border:none}.igd-statistics .statistics-box table thead{background:#f5f5f5;padding:10px}.igd-statistics .statistics-box table thead th:nth-child(1){width:62px}.igd-statistics .statistics-box table thead tr th{padding:12px;font-weight:600;border:none;background:#2fb44b;color:#fff}.igd-statistics .statistics-box table thead tr th:first-child{border-top-right-radius:10px;border-bottom-right-radius:10px}.igd-statistics .statistics-box table thead tr th:last-child{border-top-left-radius:10px;border-bottom-left-radius:10px}.igd-statistics .statistics-box table tbody:before{content:"_";display:block;line-height:1em;color:transparent}.igd-statistics .statistics-box table tbody tr{background:100% 0}.igd-statistics .statistics-box table tbody tr td{padding:7px 5px;font-weight:400;border-bottom:1px dashed rgba(47,180,75,.2);vertical-align:middle}.igd-statistics .statistics-box table .sl{display:flex;align-items:center}.igd-statistics .statistics-box table .sl .sl-no{margin-left:10px}.igd-statistics .statistics-box table .col-date{white-space:nowrap}.igd-statistics .statistics-box .no-data{font-size:14px;color:#333;margin-bottom:10px;text-align:center;display:block}.igd-statistics .statistics-box .igd-promo-wrapper{margin-right:-20px;width:calc(100% + 20px);border-radius:0;display:flex;justify-content:center;padding-top:100px;align-items:flex-start}.igd-statistics .statistics-box.event-logs .sl img{width:35px}.igd-statistics .statistics-box.event-logs .table-wrapper{max-height:600px}.igd-tinymce-modal{min-height:100%}.igd-tinymce-modal,.igd-tinymce-modal *{box-sizing:border-box}.igd-tinymce-modal:has(.igd-tinymce-types-wrap){height:auto}.igd-tinymce-modal .igd-module-builder-modal-header .header-title img{width:40px;margin-left:10px}.igd-tinymce-modal .igd-module-builder-modal-header button{margin:0 5px}.igd-tinymce-modal .igd-module-builder-modal-header button.btn-back{color:#555;border-color:#6f6f6f;background:100% 0}.igd-tinymce-modal .igd-module-builder-modal-header button.btn-back:hover{color:#fff;background-color:#555;border-color:#6f6f6f}.igd-tinymce-modal .igd-module-builder-modal-header button.btn-danger{color:#ff8165;border-color:#ffab98;background:100% 0}.igd-tinymce-modal .igd-module-builder-modal-header button.btn-danger:hover{color:#fff;background-color:#ff8165;border-color:#ffab98}.igd-tinymce-modal .igd-module-builder-modal-header button:nth-child(2){margin-right:auto}.igd-tinymce-modal .igd-tinymce-types{display:flex;flex-wrap:wrap;justify-content:center;margin-top:1rem;padding:1rem}.igd-tinymce-modal .igd-tinymce-types-header{margin-top:2rem}.igd-tinymce-modal .igd-tinymce-types-header h3{margin-bottom:.5rem;font-size:28px}.igd-tinymce-modal .igd-tinymce-types-header span{font-size:1rem;color:#7a7a7a}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type{display:flex;flex-direction:column;align-items:center;justify-content:center;width:calc(25% - 1rem);padding:2rem 1rem;margin:.5rem;border-radius:1rem;cursor:pointer;max-width:300px;overflow:hidden;transition:all .3s ease-in-out;background:#fff;border:1px dashed rgba(47,180,75,.3);position:relative}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type .icon-wrap{width:60px;height:60px;border-radius:50%;display:flex;align-items:center;justify-content:center;margin-bottom:1rem;transition:all .2s ease-in-out}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type .icon-wrap.icon-module{background:#eff3fe}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type .icon-wrap.icon-shortcodes{background:#eaf7ed}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type .icon-wrap.icon-browser{background:#f5f8ff}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type .icon-wrap.icon-uploader{background:#eaf7ed}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type .icon-wrap.icon-search{background:#e4ffde}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type .icon-wrap.icon-gallery{background:#ece8ff}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type .icon-wrap.icon-slider{background:#e9f0ff}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type .icon-wrap.icon-media{background:#fff6f5}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type .icon-wrap.icon-embed{background:#ecf7ff}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type .icon-wrap.icon-download{background:#eaf7ed}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type .icon-wrap.icon-view{background:#f5f8ff}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type .icon-wrap img{width:32px}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type-title{margin-bottom:1rem;font-weight:600;font-size:1.1rem}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type-description{font-size:.875rem;font-weight:400;color:#7a7a7a;line-height:1.5}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type:hover{background:rgba(47,180,75,.3)}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type:hover .icon-wrap{transform:scale(1.1)}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type .pro-badge{position:absolute;top:10px;left:10px;background:#fdb837;color:#fff;padding:7px;border-radius:7px;font-size:12px;font-weight:400;display:flex;align-items:center;justify-content:center;line-height:1;box-shadow:0 0 5px rgba(0,0,0,.1);transition:all .3s ease}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type .pro-badge i{height:auto;width:auto;font-size:18px;margin-left:3px}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type.pro-feature{border-color:#fdb837}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type.pro-feature:hover{background:rgba(253,184,55,.1)}.igd-tinymce-modal .igd-module-shortcodes{max-width:500px;margin:auto;align-items:center;text-align:center;border-color:#555!important;box-shadow:0 0 .2rem rgba(0,0,0,.1);border-radius:.5rem;background-color:#fff;padding:3rem 5rem}.igd-tinymce-modal .igd-module-shortcodes h2{margin:0 0 1rem 0;font-size:28px}.igd-tinymce-modal .igd-module-shortcodes .description{display:block;line-height:1.5;margin-bottom:1rem;font-size:.875rem}.igd-tinymce-modal .igd-module-shortcodes .components-select-control{width:100%}.igd-tinymce-modal .igd-module-shortcodes .components-input-control__backdrop,.igd-tinymce-modal .igd-module-shortcodes .components-select-control__input{height:45px!important;border-radius:.5rem!important;border-color:rgba(47,180,75,.3)!important;background-color:rgba(47,180,75,.05)!important}.igd-shortcode-wrap{-webkit-user-select:none;-moz-user-select:none;user-select:none;overflow-y:auto;margin-bottom:1rem;color:#333;box-sizing:border-box}.igd-shortcode-wrap *{box-sizing:inherit}.igd-shortcode-wrap::-webkit-scrollbar{width:5px}.igd-shortcode-wrap::-webkit-scrollbar-thumb{background:var(--color-primary-light);border-radius:10px}.igd-shortcode-wrap::-webkit-scrollbar-track{background:#ddd;border-radius:10px}.igd-shortcode-wrap.igd-shortcode-browser,.igd-shortcode-wrap.igd-shortcode-gallery,.igd-shortcode-wrap.igd-shortcode-search{border:1px solid #ddd;border-radius:.5rem}.igd-shortcode-wrap.igd-shortcode-browser .igd-file-browser,.igd-shortcode-wrap.igd-shortcode-gallery .igd-file-browser,.igd-shortcode-wrap.igd-shortcode-search .igd-file-browser{align-items:stretch}.igd-shortcode-wrap.igd-shortcode-browser .igd-file-browser .igd-details,.igd-shortcode-wrap.igd-shortcode-browser .igd-file-browser .igd-file-browser-header,.igd-shortcode-wrap.igd-shortcode-gallery .igd-file-browser .igd-details,.igd-shortcode-wrap.igd-shortcode-gallery .igd-file-browser .igd-file-browser-header,.igd-shortcode-wrap.igd-shortcode-search .igd-file-browser .igd-details,.igd-shortcode-wrap.igd-shortcode-search .igd-file-browser .igd-file-browser-header{top:0}.igd-shortcode-wrap.igd-shortcode-search .igd-file-browser-header{height:70px}.igd-shortcode-wrap.igd-shortcode-search .igd-file-browser-header .header-action{width:100%}.igd-shortcode-wrap.igd-shortcode-search .igd-file-browser-header .header-action .igd-search-bar{margin-right:0;width:100%;height:50px;position:relative}.igd-shortcode-wrap.igd-shortcode-audioVideo{overflow:hidden}.igd-shortcode-wrap.igd-shortcode-slider{overflow-y:unset}.igd-shortcode-wrap.igd-shortcode-media{border:1px solid #eee;overflow-y:unset}.igd-video-player video{position:static;transform:none}.igd-video-player audio{height:revert!important}.igd-download-link,.igd-view-link{display:block}.igd-embed-image{max-width:100%}.igd-slider{--slide-height:300px;--slide-gap:5px}.igd-slider .slick-next,.igd-slider .slick-prev{z-index:9}.igd-slider .slick-next:before,.igd-slider .slick-prev:before{display:none}.igd-slider .slick-prev{right:-25px}.igd-slider .slick-next{left:-25px}.igd-slider .slick-dots{position:static}.igd-slider .slick-dots li button:before{font-size:15px}.igd-slider .slider-img-wrap{height:100%;width:100%;position:relative}.igd-slider .slider-img-wrap img{height:100%;width:100%;-o-object-fit:cover;object-fit:cover}.igd-slider .slider-content-wrap{position:absolute;top:0;right:0;left:0;padding:1rem;color:#fff;text-align:center;width:100%;height:100%;opacity:0;background:linear-gradient(to bottom,rgba(0,0,0,.5) 50%,rgba(0,0,0,0) 100%);box-sizing:border-box;transition:all .3s ease-in-out;overflow:hidden;display:flex;align-items:center;justify-content:center}.igd-slider .slider-content-wrap h3{font-size:1rem;margin-bottom:0;color:#fff}.igd-slider .slider-content-wrap p{font-size:.875rem;margin-bottom:0;color:#fff}.igd-slider .slider-actions{display:flex;justify-content:center;align-items:center;margin:10px 0}.igd-slider .slider-actions .slider-action{cursor:pointer;transition:transform .3s ease-in-out}.igd-slider .slider-actions .slider-action.action-download{margin-right:20px}.igd-slider .slider-actions .slider-action svg{width:30px;height:30px;fill:#fff}.igd-slider .slider-actions .slider-action:hover{transform:scale(1.1)}.igd-slider .slick-slide{height:var(--slide-height)}.igd-slider .slick-slide>div{height:100%;position:relative;margin:0 var(--slide-gap)}.igd-slider .slick-slide .slider-item-wrap{position:absolute;width:100%;height:100%}.igd-slider .slick-slide:hover .slider-content-wrap{opacity:1}.igd-access-denied-placeholder{max-width:500px;margin:20px auto;padding:2rem;background:#f1f1f1;border-radius:.5rem;text-align:center}.igd-access-denied-placeholder img{max-width:100px;margin-bottom:15px}.igd-access-denied-placeholder h3{font-size:1.5rem;font-weight:600;margin-bottom:1rem}.igd-access-denied-placeholder p{font-size:1rem;margin-bottom:1rem;color:#555}.igd-disqus-wrap{display:none}.igd-admin-notice{margin-bottom:10px!important;display:flex;padding:10px!important}.igd-admin-notice .notice-main{display:flex;flex-direction:column}.igd-admin-notice .notice-image{margin-left:15px}.igd-admin-notice .notice-image img{width:90px}.igd-admin-notice .notice-text p{line-height:1.5;font-size:.85rem;margin:0;padding:0}.igd-admin-notice .notice-actions{display:flex;align-items:center;margin-top:10px}.igd-admin-notice .notice-actions a{margin-left:15px;text-decoration:none;transition:all .3s ease-in-out}.igd-admin-notice .notice-actions a:last-child{margin-left:0}.igd-admin-notice .notice-actions a.button-primary{background:#248c3a;border-color:#47cf64;padding:3px 10px}.igd-admin-notice .notice-actions a.button-primary:hover{background:#2fb44b}.igd-rating-notice .notice-overlay-wrap{position:fixed;top:0;right:0;background:rgba(0,0,0,.5);width:100%;height:100%;align-items:center;justify-content:center;display:none;z-index:9999}.igd-rating-notice .notice-overlay-wrap .notice-overlay{background:#fff;width:-moz-max-content;width:max-content;padding:30px;border-radius:15px;position:relative}.igd-rating-notice .notice-overlay-wrap .notice-overlay h4{margin-top:0;margin-bottom:10px}.igd-rating-notice .notice-overlay-wrap .notice-overlay-actions{display:flex;flex-flow:column;line-height:1.8}.igd-rating-notice .notice-overlay-wrap .notice-overlay-actions a{text-decoration:none}.igd-rating-notice .notice-overlay-wrap .notice-overlay-actions a:nth-child(2){color:#000}.igd-rating-notice .notice-overlay-wrap .notice-overlay-actions a:nth-child(3){color:#777}.igd-rating-notice .notice-overlay-wrap .notice-overlay-actions a:hover{color:#248c3a}.igd-rating-notice .notice-overlay-wrap .notice-overlay .close-notice{position:absolute;top:-5px;left:-5px;border-radius:30px;border:1px solid transparent;font-size:16px;cursor:pointer;width:30px;height:30px;line-height:30px;display:flex;align-items:center;justify-content:center;transition:all .3s ease-in-out}.igd-rating-notice .notice-overlay-wrap .notice-overlay .close-notice:hover{color:#f96;border-color:#f96}.igd-account-notice h4{font-size:1rem;margin:5px 0}.igd-acf-field .igd-items-table .file-actions .button{display:inline-flex;align-items:center}.igd-acf-field .igd-acf-button{display:flex;align-items:center;margin-top:15px}.igd-acf-field .igd-acf-button img{margin-left:7px}body.tutor-screen-course-builder .tutor-dropdown-icon-pack[data-video_source=google_drive] [data-for=google_drive]{display:block}.tutor-video-upload-wrap:has(.tutor-dropdown-icon-pack[data-video_source=google_drive]) .video_source_wrap_google_drive{display:block!important}.video_source_wrap_google_drive .google_drive-video-data{display:none}.video_source_wrap_google_drive.tutor-has-video .google_drive-video-data{display:block}.video_source_wrap_google_drive.tutor-has-video .video-metabox-source-google_drive-upload{display:none}.tutor_lesson_modal_form .tutorIgdUploadAttachmentBtn{margin-right:15px}.tutor_lesson_modal_form .igd-tutor-attachment i.tutor-icon-brand-google-drive{position:absolute;left:10px;top:10px}.et-fb-modules-list .igd_browser,.et-fb-modules-list .igd_download,.et-fb-modules-list .igd_embed,.et-fb-modules-list .igd_gallery,.et-fb-modules-list .igd_media,.et-fb-modules-list .igd_search,.et-fb-modules-list .igd_shortcodes,.et-fb-modules-list .igd_slider,.et-fb-modules-list .igd_uploader,.et-fb-modules-list .igd_view{max-height:100px!important}.et-fb-modules-list .igd_browser:before,.et-fb-modules-list .igd_download:before,.et-fb-modules-list .igd_embed:before,.et-fb-modules-list .igd_gallery:before,.et-fb-modules-list .igd_media:before,.et-fb-modules-list .igd_search:before,.et-fb-modules-list .igd_shortcodes:before,.et-fb-modules-list .igd_slider:before,.et-fb-modules-list .igd_uploader:before,.et-fb-modules-list .igd_view:before{content:""!important;height:30px;display:block;background-size:contain;background-repeat:no-repeat;background-position:center center;margin-bottom:10px!important}.et-fb-modules-list .igd_browser .et_module_title,.et-fb-modules-list .igd_download .et_module_title,.et-fb-modules-list .igd_embed .et_module_title,.et-fb-modules-list .igd_gallery .et_module_title,.et-fb-modules-list .igd_media .et_module_title,.et-fb-modules-list .igd_search .et_module_title,.et-fb-modules-list .igd_shortcodes .et_module_title,.et-fb-modules-list .igd_slider .et_module_title,.et-fb-modules-list .igd_uploader .et_module_title,.et-fb-modules-list .igd_view .et_module_title{line-height:1.5!important}.et-fb-modules-list .igd_browser:before{background-image:url(../images/shortcode-builder/types/browser.svg)}.et-fb-modules-list .igd_uploader:before{background-image:url(../images/shortcode-builder/types/uploader.svg)}.et-fb-modules-list .igd_gallery:before{background-image:url(../images/shortcode-builder/types/gallery.svg)}.et-fb-modules-list .igd_media:before{background-image:url(../images/shortcode-builder/types/media.svg)}.et-fb-modules-list .igd_search:before{background-image:url(../images/shortcode-builder/types/search.svg)}.et-fb-modules-list .igd_embed:before{background-image:url(../images/shortcode-builder/types/embed.svg)}.et-fb-modules-list .igd_view:before{background-image:url(../images/shortcode-builder/types/view.svg)}.et-fb-modules-list .igd_download:before{background-image:url(../images/shortcode-builder/types/download.svg)}.et-fb-modules-list .igd_shortcodes:before{background-image:url(../images/shortcode-builder/types/shortcodes.svg)}.et-fb-modules-list .igd_slider:before{background-image:url(../images/shortcode-builder/types/slider.svg)}#igd-app *{box-sizing:border-box}#igd-shortcode-builder *{box-sizing:border-box}.igd_file_browser_page #wpcontent{padding-right:0}.igd_file_browser_page #wpbody-content{padding-bottom:0}.igd_file_browser_page #wpfooter{display:none}.igd_file_browser_page .igd-body,.igd_file_browser_page .igd-details-wrap,.igd_file_browser_page .igd-sidebar-wrap{min-height:calc(100vh - 92px)}@media (min-width:992px){.igd_file_browser_page .igd-details-wrap,.igd_file_browser_page .igd-sidebar-wrap{top:92px}}body.igd-admin-page #wpbody-content>div.error:not(.igd-admin-notice),body.igd-admin-page #wpbody-content>div.notice:not(.igd-admin-notice),body.igd-admin-page #wpbody-content>div.updated:not(.igd-admin-notice){display:none!important}body.igd-admin-page #wpfooter{display:none}li#toplevel_page_integrate-google-drive img{width:20px}li#toplevel_page_integrate-google-drive .wp-submenu a[href="admin.php?page=integrate-google-drive-getting-started"]{color:#fbbc04!important}li#toplevel_page_integrate-google-drive .wp-submenu a[href="admin.php?page=integrate-google-drive-getting-started"]{border-top:1px solid hsla(0,0%,100%,.2);border-bottom:1px solid hsla(0,0%,100%,.2);padding:8px 12px;display:flex;align-items:center;margin:6px 0}li#toplevel_page_integrate-google-drive .wp-submenu a[href="admin.php?page=integrate-google-drive-recommended-plugins"]{margin-top:6px;padding-top:8px;padding-left:0;border-top:1px solid hsla(0,0%,100%,.2)}li#toplevel_page_integrate-google-drive .wp-submenu a[href="admin.php?page=integrate-google-drive-account"]{margin-top:6px;padding-top:8px;border-top:1px solid hsla(0,0%,100%,.2)}li#toplevel_page_integrate-google-drive .wp-submenu li:last-child a{border-bottom:0;margin-bottom:0}.igd-pro-modal{width:350px;background:#fff;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:30px 20px;border-radius:5px;box-shadow:0 0 10px rgba(0,0,0,.2);position:relative;text-align:center}.igd-pro-modal-wrap{width:100%;height:100%;position:fixed;top:0;right:0;z-index:99999999;background:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center}.igd-pro-modal .igd-pro-modal-close{position:absolute;top:15px;left:15px;cursor:pointer;font-size:30px;color:#777;padding:10px}.igd-pro-modal img{width:160px;margin-bottom:10px}.igd-pro-modal h3{font-size:1.2rem;font-weight:600;color:#333}.igd-pro-modal h2{color:#ff9458;margin:20px 0 20px 0;font-size:2.5rem;font-weight:700}.igd-pro-modal h2 .upto{font-size:14px;margin-left:5px}.igd-pro-modal p{font-size:.875rem;color:#333;margin-bottom:20px;line-height:1.2}.igd-pro-modal a{padding:10px 20px}.igd-pro-modal a:hover{color:#fff}
     1.igd-btn{cursor:pointer;width:-moz-max-content;width:max-content;display:flex;align-items:center;color:#fff;padding:8px 12px;border-radius:5px;border:1px solid transparent;line-height:1;text-decoration:none;transition:all .2s ease-in-out;font-size:.875rem}.igd-btn i{margin-left:7px}.igd-btn i:nth-child(2){margin-left:0;margin-right:7px}.igd-btn .igd-spinner{margin:2px 0 0 10px}.igd-btn.btn-primary{background-color:#2fb44b}.igd-btn.btn-primary:hover{background-color:#248c3a}.igd-btn.btn-secondary{background-color:#f1f1f1;border-color:#f1f1f1}.igd-btn.btn-secondary:hover{background-color:#e6e6e6}.igd-btn.btn-success{background-color:#00d084;border-color:#00d084}.igd-btn.btn-success:hover{background-color:#00c674}.igd-btn.btn-warning{background-color:#f9d6b7;color:#a65300}.igd-btn.btn-warning:hover{background-color:#fc9}.igd-btn.btn-danger{background-color:#f8d7da;color:#d8000c}.igd-btn.btn-danger:hover{background-color:#f5c6cb}.igd-btn.btn-info{background-color:#b4d8e7;color:#1f4e6e}.igd-btn.btn-info:hover{background-color:#00a5e6}.igd-btn.btn-light{background-color:#f1f1f1;border-color:#f1f1f1}.igd-btn.btn-light:hover{background-color:#e6e6e6}.igd-btn.btn-dark{background-color:#0071e6;border-color:#0071e6}.igd-btn.btn-dark:hover{background-color:#0058c6}.igd-btn.btn-link{background-color:transparent;border-color:transparent;color:#0071e6}.igd-btn.btn-link:hover{color:#0058c6}.igd-btn.btn-outline-primary{background-color:transparent;border-color:var(--color-primary);color:var(--color-primary)}.igd-btn.btn-outline-primary:hover{background-color:var(--color-primary);color:#fff}.igd-btn.btn-outline-secondary{background-color:transparent;border-color:#f1f1f1;color:#f1f1f1}.igd-btn.btn-outline-secondary:hover{background-color:#f1f1f1;color:#fff}.igd-btn.btn-outline-success{background-color:transparent;border-color:#00d084;color:#00d084}.igd-btn.btn-outline-success:hover{background-color:#00d084;color:#fff}.igd-btn.btn-outline-warning{background-color:transparent;border-color:#ffc800;color:#ffc800}.igd-btn.btn-outline-warning:hover{background-color:#ffc800;color:#fff}.igd-btn.btn-outline-danger{background-color:transparent;border-color:#ff5b5b;color:#ff5b5b}.igd-btn.btn-outline-danger:hover{background-color:#ff5b5b;color:#fff}.igd-btn.btn-outline-info{background-color:transparent;border-color:#00b5ff;color:#00b5ff}.igd-btn.btn-outline-info:hover{background-color:#00b5ff;color:#fff}.igd-btn.btn-outline-light{background-color:transparent;border-color:#f1f1f1;color:#f1f1f1}.igd-btn.btn-outline-light:hover{background-color:#f1f1f1;color:#fff}.igd-btn.btn-outline-dark{background-color:transparent;border-color:#0071e6;color:#0071e6}.igd-btn.btn-outline-dark:hover{background-color:#0071e6;color:#fff}.igd-btn.btn-outline-link{background-color:transparent;border-color:#0071e6;color:#0071e6}.igd-btn.btn-outline-link:hover{background-color:#0071e6;color:#fff}.igd-btn.disabled{color:#999;cursor:not-allowed;background:#f1f1f1!important;border-color:#ccc}.igd-tooltip{z-index:9999999!important;opacity:1!important}.igd-tooltip:before{z-index:-1!important}.igd-notice{border-radius:5px;border:1px solid #f1f1f1;border-right-width:5px;background:#fff;box-shadow:0 1px 1px 0 rgba(0,0,0,.1);padding:1rem;margin:10px 0;display:flex}.igd-notice .igd-notice-content{margin:0;text-align:right;font-size:.9rem;line-height:1.5;color:#757575}.igd-notice.igd-notice-info{border-color:rgba(0,181,255,.5);background:rgba(0,181,255,.1);border-right-color:#00b5ff}.igd-notice.igd-notice-warning{border-color:rgba(255,200,0,.5);background:rgba(255,200,0,.1);border-right-color:#ffc800}@media (max-width:767px){.igd-notice .igd-notice-content{flex-wrap:wrap}}.igd-hidden{display:none!important}.file-item-checkbox{cursor:pointer;display:none;border-radius:50%;transition:all .3s ease;width:-moz-max-content;width:max-content;padding:5px}.file-item-checkbox .box{width:20px;height:20px;border:1px solid #e5e5e5;border-radius:50%;display:flex;align-items:center;justify-content:center;transition:all .3s ease;position:relative;box-shadow:rgba(0,0,0,.05) 0 6px 24px 0,rgba(0,0,0,.08) 0 0 0 1px}.file-item-checkbox .box:hover{border-color:var(--color-primary);box-shadow:0 0 0 2px var(--color-primary-lighter)}.file-item-checkbox:hover{background-color:rgba(0,0,0,.15)}.file-item-checkbox:hover .box{box-shadow:0 0 0 2px var(--color-primary-lighter)}.file-item-checkbox.checked{background-color:rgba(0,0,0,.15)}.file-item-checkbox.checked .box{border-color:var(--color-primary-lighter);background:var(--color-primary);color:#fff;box-shadow:0 0 0 1px var(--color-primary-lighter)}.file-item-checkbox.checked .box:after{content:"";width:5px;height:10px;border:solid #fff;border-width:0 0 2px 2px;transform:rotate(-45deg);box-sizing:border-box;margin-top:-2px}.igd-swal{z-index:99999!important}.igd-swal .swal2-confirm{background-color:#2fb44b!important}.igd-swal .swal2-close:focus{background:100% 0;color:inherit;box-shadow:none}.igd-swal .swal2-cancel,.igd-swal .swal2-deny{background-color:#f08080!important}.igd-swal.save-settings-toast .swal2-popup{display:flex!important;padding:10px}.igd-swal.save-settings-toast .swal2-popup .swal2-html-container{margin-right:5px}.igd-swal.igd-swal-toast .swal2-popup{display:flex!important;padding:10px}.igd-swal.igd-swal-toast .swal2-popup .swal2-html-container{margin-right:5px}.igd-swal .swal2-input{width:auto!important}.igd-swal .swal2-title{font-size:1.2rem;color:#333;font-weight:500}.igd-swal .swal2-html-container{font-size:1rem;color:#555}.igd-swal .swal2-textarea:focus{border-color:#ddd!important;box-shadow:none!important}.igd-swal.igd-review-remind-swal .swal2-deny{background-color:#999!important}.igd-loading-spinner{display:flex;justify-content:center;margin-top:3rem}.igd-loading-spinner svg{width:2.5rem;height:2.5rem}.igd-divi-loading-spinner{display:flex;justify-content:center}.igd-divi-loading-spinner svg{width:100px;height:100px}.igd-spinner{border:2px solid #f3f3f3;border-top:2px solid #3498db;border-radius:50%;width:20px;height:20px;animation:igd-spin 2s linear infinite;display:flex}.igd-spinner.spinner-large{border-width:4px;width:50px;height:50px;animation:igd-spin 1s linear infinite;margin:30px auto}@keyframes igd-spin{0%{transform:rotate(0)}100%{transform:rotate(-360deg)}}.igd-disabled{pointer-events:none!important}.google-drive_page_integrate-google-drive-shortcode-builder{background:#f7f8fa}.google-drive_page_integrate-google-drive-shortcode-builder #wpfooter{display:none}@media (max-width:767px){.google-drive_page_integrate-google-drive-shortcode-builder #wpcontent{padding-left:10px}}.igd-shortcode-builder{width:calc(100% + 20px);margin-right:-20px}@media (max-width:767px){.igd-shortcode-builder{width:100%;margin-right:0}}.igd-shortcode-builder *{box-sizing:border-box}.igd-shortcode-builder-header{display:flex;flex-wrap:wrap;align-items:center;background:#fff;padding:12px 15px;border-bottom:1px solid #e5e5e5;justify-content:space-between;z-index:99;position:sticky;top:32px}.igd-shortcode-builder-header .header-title{display:flex;align-items:center;font-size:1.2rem;font-weight:500;cursor:pointer}.igd-shortcode-builder-header .header-title img{margin-left:10px}.igd-shortcode-builder-header .header-title .shortcode-title{background:#fff;border-radius:7px;padding:5px 12px;border:1px solid rgba(92,99,126,.3);position:relative;margin-right:10px}.igd-shortcode-builder-header .header-actions{display:flex}.igd-shortcode-builder-header .header-actions .btn-back{background:#5c637e;color:#fff;border-color:rgba(47,180,75,.3)}.igd-shortcode-builder-header .header-actions .btn-back:hover{background:#464c61}.igd-shortcode-builder-header .header-actions button{margin-right:15px}@media (max-width:767px){.igd-shortcode-builder-header{margin-right:-10px;margin-left:-10px;padding:10px;top:-50px}.igd-shortcode-builder-header .header-title img{width:30px;margin-left:5px}.igd-shortcode-builder-header .header-title label{font-size:1rem}.igd-shortcode-builder-header .header-title .shortcode-title{height:35px;min-height:unset;margin-right:auto;border-radius:5px;color:#555;font-size:.875rem;font-weight:400}.igd-shortcode-builder-header .header-actions .add-new-btn{margin-right:auto}.igd-shortcode-builder-header .header-actions button{overflow:hidden;padding:7px;font-size:.8rem;margin-right:10px}.igd-shortcode-builder-header .header-actions button:first-child{margin-right:0}.igd-shortcode-builder-header .header-actions button i{margin-left:3px}.igd-shortcode-builder-header .header-actions button span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.igd-shortcode-builder-header:has(.btn-back) .header-title{width:100%}.igd-shortcode-builder-header:has(.btn-back) .header-title label{max-width:35%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-shortcode-builder-header:has(.btn-back) .header-actions{width:100%;justify-content:center;margin-top:15px}}.igd-shortcode-builder .no-item-placeholder{padding:3rem 5rem;border-radius:10px;border:1px solid rgba(47,180,75,.3);background:#fff;margin:50px auto 0;width:-moz-max-content;width:max-content;display:flex;align-items:center;justify-content:center;flex-direction:column}.igd-shortcode-builder .no-item-placeholder img{width:200px;margin-right:-40px}.igd-shortcode-builder .no-item-placeholder h3{color:#7a7a7a;margin:1.5rem;font-weight:500}.igd-shortcode-builder .no-item-placeholder button{margin-top:1rem}.igd-shortcode-builder .selection-actions-wrap{display:flex;align-items:center;margin-top:30px}.igd-shortcode-builder .selection-actions-wrap .selection-count{font-weight:500;background:rgba(47,180,75,.1);padding:10px 10px;border-radius:5px;height:35px;border:1px solid rgba(47,180,75,.3);display:flex;align-items:center;justify-content:center;font-size:.9rem}.igd-shortcode-builder .selection-actions-wrap .igd-btn{margin-right:10px;height:35px}.igd-shortcode-builder .igd-shortcode-list{width:100%;border-collapse:separate;border-spacing:0 20px}.igd-shortcode-builder .igd-shortcode-list-header{display:flex;align-items:center;justify-content:space-between;margin-top:15px;margin-bottom:15px}.igd-shortcode-builder .igd-shortcode-list-header .igd-shortcode-list-title{font-size:1.2rem;font-weight:600;margin:0;display:flex;align-items:center}.igd-shortcode-builder .igd-shortcode-list-header .igd-shortcode-list-title .shortcode-list-count{font-size:1rem;font-weight:400;color:#777;margin-right:7px}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings i{width:25px;height:25px;font-size:25px;color:#5c637e;cursor:pointer}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .list-settings-tooltip{display:flex;flex-wrap:wrap;justify-content:space-between;max-width:580px}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .list-settings-tooltip .settings-columns{width:100%;margin-bottom:10px}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .settings-wrap{margin-bottom:5px}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .settings-wrap h4{margin-top:0;margin-bottom:7px}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .settings-wrap .components-select-control{min-width:100px}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .settings-wrap .components-select-control__input{height:35px}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .settings-wrap .components-input-control__backdrop{border-color:#eee}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .column-options{display:flex}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .column-options .igd-column-setting{margin-bottom:10px;margin-left:10px;border:1px solid #eee;padding:5px 7px;border-radius:5px}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .column-options .igd-column-setting .components-base-control__field{display:flex;align-items:center}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .column-options .components-checkbox-control__input-container{margin-left:5px}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .components-checkbox-control__label{text-transform:capitalize;font-size:.75rem;font-weight:500}.igd-shortcode-builder .igd-shortcode-list-wrap{padding:20px}.igd-shortcode-builder .igd-shortcode-list thead{background:#fff}.igd-shortcode-builder .igd-shortcode-list thead th{padding:24px 15px;font-size:.875rem;color:#555;border-right-width:0;border-left-width:0;margin-bottom:1rem}.igd-shortcode-builder .igd-shortcode-list thead th:first-child{border-radius:0 10px 10px 0}.igd-shortcode-builder .igd-shortcode-list thead th:last-child{border-radius:10px 0 0 10px;text-align:left;padding-left:70px}.igd-shortcode-builder .igd-shortcode-list tbody td,.igd-shortcode-builder .igd-shortcode-list tbody th{padding:15px 20px;font-size:.875rem;color:#555;text-align:right;white-space:nowrap}.igd-shortcode-builder .igd-shortcode-list tbody td:first-child,.igd-shortcode-builder .igd-shortcode-list tbody th:first-child{border-radius:0 10px 10px 0}.igd-shortcode-builder .igd-shortcode-list tbody td:last-child,.igd-shortcode-builder .igd-shortcode-list tbody th:last-child{border-radius:10px 0 0 10px}.igd-shortcode-builder .igd-shortcode-list-item{transition:all .3s ease;background:#fff}.igd-shortcode-builder .igd-shortcode-list-item:hover{background:#eaf2fa}.igd-shortcode-builder .igd-shortcode-list .col-selection{width:60px;text-align:center;padding-left:0}.igd-shortcode-builder .igd-shortcode-list .col-id{width:30px}.igd-shortcode-builder .igd-shortcode-list .col-title{text-align:right}.igd-shortcode-builder .igd-shortcode-list .col-shortcode-type{text-align:right}.igd-shortcode-builder .igd-shortcode-list .col-shortcode-type>div{display:flex;align-items:center;justify-content:flex-start}.igd-shortcode-builder .igd-shortcode-list .col-shortcode-type>div img{margin-left:10px;width:24px}.igd-shortcode-builder .igd-shortcode-list .col-shortcode-status{width:100px;text-align:center}.igd-shortcode-builder .igd-shortcode-list .col-locations{text-align:center}.igd-shortcode-builder .igd-shortcode-list .col-locations .location-count{text-align:center;font-weight:700;cursor:pointer;border:1px solid #5c637e;border-radius:5px;padding:5px 10px;color:#5c637e}.igd-shortcode-builder .igd-shortcode-list .col-locations .location-count:hover{background:#5c637e;color:#fff}.igd-shortcode-builder .igd-shortcode-list .col-locations h3{margin-top:0;margin-bottom:10px;color:#555}.igd-shortcode-builder .igd-shortcode-list .col-locations .locations-tooltip{padding:15px;max-width:250px}.igd-shortcode-builder .igd-shortcode-list .col-locations .location-item{margin-bottom:7px;overflow:hidden}.igd-shortcode-builder .igd-shortcode-list .col-locations .location-item a{text-decoration:none;display:flex;align-items:center;overflow:hidden}.igd-shortcode-builder .igd-shortcode-list .col-locations .location-item a .location-index{margin-left:5px}.igd-shortcode-builder .igd-shortcode-list .col-locations .location-item a .location-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.igd-shortcode-builder .igd-shortcode-list .col-locations .location-item a i{margin-right:7px}.igd-shortcode-builder .igd-shortcode-list .col-created{text-align:center}.igd-shortcode-builder .igd-shortcode-list .col-code>div{display:flex;align-items:center;justify-content:flex-start;position:relative;width:-moz-max-content;width:max-content;margin:auto}.igd-shortcode-builder .igd-shortcode-list .col-code>div code{padding:7px 35px 7px 10px;background:#fff;color:#5c637e;border-radius:7px;border:1px solid rgba(92,99,126,.2);font-size:12px}.igd-shortcode-builder .igd-shortcode-list .col-code>div i{right:3px;color:#5c637e;padding:7px;border-radius:30px;height:auto;width:auto;cursor:pointer;position:absolute;font-size:24px}.igd-shortcode-builder .igd-shortcode-list .col-actions{padding-left:10px;text-align:left}.igd-shortcode-builder .igd-shortcode-list .col-actions button{padding:7px 10px;display:inline-flex;background:#5c637e;height:35px}.igd-shortcode-builder .igd-shortcode-list .col-actions button:hover{background:#464c61}.igd-shortcode-builder .igd-shortcode-list .col-actions .btn-tools{margin-right:15px;padding:0;background:100% 0!important;color:#5c637e}.igd-shortcode-builder .igd-shortcode-list .col-actions .btn-tools img{width:26px}.igd-shortcode-builder .igd-shortcode-list .col-actions .options-tooltip{padding:0;border-radius:7px;box-shadow:0 0 10px rgba(0,0,0,.1)}.igd-shortcode-builder .igd-shortcode-list .col-actions .action-tools{display:flex;flex-direction:column}.igd-shortcode-builder .igd-shortcode-list .col-actions .action-tools button{padding:10px 15px;display:flex;background:100% 0;color:#555;justify-content:flex-start;border-radius:0;border-bottom:1px solid #e5e5e5;font-size:.875rem;width:100%}.igd-shortcode-builder .igd-shortcode-list .col-actions .action-tools button:hover{background:rgba(92,99,126,.1)}.igd-shortcode-builder .igd-shortcode-list .col-actions .action-tools button:last-child{border-bottom:none;margin-bottom:0}.igd-shortcode-builder .igd-shortcode-list-footer{display:flex;align-items:center;justify-content:center}@media (max-width:767px){.igd-shortcode-builder .igd-shortcode-list-wrap{overflow-x:auto;margin-left:10px}}.igd-shortcode-builder .igd-shortcode-builder-form{overflow-y:unset}.igd-shortcode-builder-form{display:flex;flex-wrap:wrap;align-items:flex-start}.igd-shortcode-builder-form .shortcode-builder-sidebar{width:20%;background:#fff;max-width:200px;padding:20px;position:sticky;top:100px;min-height:100vh;border-left:1px solid #eaeaea}.igd-shortcode-builder-form .shortcode-builder-sidebar.tab-advanced,.igd-shortcode-builder-form .shortcode-builder-sidebar.tab-notifications{top:0}.igd-shortcode-builder-form .shortcode-builder-sidebar.tab-permissions{top:-30px}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs{display:flex;flex-direction:column;align-items:center}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab{display:flex;align-items:center;flex-direction:column;justify-content:center;padding:1rem;background:#e9f9ec;border:1px dashed rgba(47,180,75,.3);width:100%;color:#333;border-radius:10px}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap{max-width:100%;position:relative;cursor:pointer;width:120px;display:flex;align-items:center;justify-content:center}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap:not(:last-child){margin-bottom:40px}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap:not(:last-child):after{content:"";height:40px;width:12px;background:#f7f8fa;position:absolute;top:100%}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap.active .shortcode-tab{background:#47cf64;color:#fff}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap.active .shortcode-tab .tab-icon{background-color:#fff}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap.active:after{background:#47cf64}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap:not(.active):hover .shortcode-tab{background:rgba(47,180,75,.3)}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-icon{width:30px;height:30px;margin-bottom:10px;background-color:#2fb44b;mask-size:cover;-webkit-mask-size:cover}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-icon.icon-type{-webkit-mask:url(../images/shortcode-builder/tabs/type.svg) no-repeat center/cover;mask:url(../images/shortcode-builder/tabs/type.svg) no-repeat center/cover}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-icon.icon-sources{-webkit-mask:url(../images/shortcode-builder/tabs/sources.svg) no-repeat center;mask:url(../images/shortcode-builder/tabs/sources.svg) no-repeat center}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-icon.icon-filters{-webkit-mask:url(../images/shortcode-builder/tabs/filters.svg) no-repeat center;mask:url(../images/shortcode-builder/tabs/filters.svg) no-repeat center}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-icon.icon-advanced{-webkit-mask:url(../images/shortcode-builder/tabs/advanced.svg) no-repeat center;mask:url(../images/shortcode-builder/tabs/advanced.svg) no-repeat center}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-icon.icon-notifications{-webkit-mask:url(../images/shortcode-builder/tabs/notifications.svg) no-repeat center;mask:url(../images/shortcode-builder/tabs/notifications.svg) no-repeat center}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-icon.icon-permissions{-webkit-mask:url(../images/shortcode-builder/tabs/permissions.svg) no-repeat center;mask:url(../images/shortcode-builder/tabs/permissions.svg) no-repeat center}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-name{font-size:.85rem;text-transform:uppercase;font-weight:500;white-space:nowrap}@media (max-width:767px){.igd-shortcode-builder-form .shortcode-builder-sidebar{width:100%;max-width:100%;background:100% 0;height:auto;min-height:auto;margin:20px 0;padding:0;position:static;border:0}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs{flex-direction:row}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab{background:100% 0;padding:0;border:0;color:#777}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-name{font-size:.7rem;font-weight:400;text-transform:capitalize}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-icon{width:26px;height:26px;margin-bottom:7px;background:#777}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap{width:auto}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap:not(:last-child){margin-bottom:0}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap:not(:last-child):after{display:none}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap.active .shortcode-tab{background:100% 0;color:#2fb44b}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap.active .shortcode-tab .tab-icon{background-color:#2fb44b}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap.active .shortcode-tab .tab-name{font-weight:500}}.igd-shortcode-builder-form .shortcode-builder-content{flex:1}.igd-shortcode-builder-form:has(.shortcode-builder-sidebar) .shortcode-builder-content{width:80%;max-width:calc(100% - 200px);min-height:100vh;display:flex;flex-direction:column}.igd-shortcode-builder-form .form-footer{display:flex;align-items:center;justify-content:space-between;margin-top:auto;position:sticky;bottom:0;padding:10px 15px;border-top:1px solid #eaeaea;background:#fff;z-index:9}.igd-shortcode-builder-form .form-footer button:first-child,.igd-shortcode-builder-form .form-footer button:last-child{background:#fff;color:#2fb44b;border-color:rgba(47,180,75,.3)}.igd-shortcode-builder-form .form-footer button:first-child:hover,.igd-shortcode-builder-form .form-footer button:last-child:hover{background:#d5f0db}.igd-shortcode-builder-form .form-footer button.disabled{opacity:.5;pointer-events:none;background:#ddd;border-color:#ddd}.igd-shortcode-builder-form .form-footer button.disabled:hover{background:#ddd;border-color:#ddd}@media (max-width:767px){.igd-shortcode-builder-form .form-footer{margin:0 -10px}.igd-shortcode-builder-form .form-footer button{font-weight:400}.igd-shortcode-builder-form .form-footer button span{font-size:14px}}.igd-shortcode-builder-form.editor-mode .shortcode-builder-sidebar{top:0}.igd-shortcode-builder-form.editor-mode .shortcode-builder-content{padding:0;display:flex;flex-direction:column;height:calc(100vh - 50px)}.shortcode-module{padding:15px}.shortcode-module-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px;width:100%;border-bottom:1px solid #e5e5e5;padding-bottom:10px}.shortcode-module-header .module-title{flex:1;text-align:right}.shortcode-module-header .module-title h2{font-size:1.2rem;margin-bottom:5px;font-weight:600;text-align:right;margin-top:0}.shortcode-module-header .module-title span{font-size:.85rem}.shortcode-module-header .module-type{cursor:pointer;display:flex;align-items:center;margin-right:15px;border:1px solid rgba(47,180,75,.3);padding:10px 12px;border-radius:5px;background:#fff;transition:all .2s ease-in-out}.shortcode-module-header .module-type-title{margin-left:10px;font-weight:400;font-size:1rem}.shortcode-module-header .module-type img{width:20px;height:20px;margin-left:7px}.shortcode-module-header .module-type-name{font-size:1rem;font-weight:500}.shortcode-module-header .module-type:hover{background:rgba(213,240,219,.3)}.shortcode-module-header .shortcode-wrap{display:flex;align-items:center;justify-content:flex-start;position:relative;width:-moz-max-content;width:max-content}.shortcode-module-header .shortcode-wrap code{padding:10px 35px 10px 10px;background:#fff;color:#5c637e;border-radius:7px;border:1px solid rgba(47,180,75,.2);font-size:12px;word-break:break-all;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.shortcode-module-header .shortcode-wrap i{right:3px;color:#5c637e;padding:7px;border-radius:30px;height:auto;width:auto;cursor:pointer;position:absolute;font-size:24px}.shortcode-module .shortcode-types{display:flex;flex-wrap:wrap;justify-content:space-between;gap:20px}.shortcode-module .shortcode-types .shortcode-type{width:calc(25% - 20px);padding:1.5rem 1rem;border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;transition:background .3s ease;position:relative;text-align:center;border:1px dashed rgba(47,180,75,.5);background:#fff}.shortcode-module .shortcode-types .shortcode-type .icon-wrap{width:60px;height:60px;background-color:#2fb44b;border-radius:50%;display:flex;align-items:center;justify-content:center}.shortcode-module .shortcode-types .shortcode-type .icon-wrap.icon-browser{background:#eff3fe}.shortcode-module .shortcode-types .shortcode-type .icon-wrap.icon-uploader{background:#eaf7ed}.shortcode-module .shortcode-types .shortcode-type .icon-wrap.icon-gallery{background:#ece8ff}.shortcode-module .shortcode-types .shortcode-type .icon-wrap.icon-slider{background:#e9f0ff}.shortcode-module .shortcode-types .shortcode-type .icon-wrap.icon-media{background:#fff6f5}.shortcode-module .shortcode-types .shortcode-type .icon-wrap.icon-search{background:#e4ffde}.shortcode-module .shortcode-types .shortcode-type .icon-wrap.icon-embed{background:#ecf7ff}.shortcode-module .shortcode-types .shortcode-type .icon-wrap.icon-download{background:#eaf7ed}.shortcode-module .shortcode-types .shortcode-type .icon-wrap.icon-view{background:#f5f8ff}.shortcode-module .shortcode-types .shortcode-type .icon-wrap img{width:32px;height:32px}.shortcode-module .shortcode-types .shortcode-type>span{font-size:1rem;font-weight:600;margin:20px 0 5px;color:#0a0a0a}.shortcode-module .shortcode-types .shortcode-type .description{font-size:.875rem;font-weight:400;color:#757575;margin-top:5px}.shortcode-module .shortcode-types .shortcode-type.active{background:#47cf64;color:#fff}.shortcode-module .shortcode-types .shortcode-type.active>span{color:#fff}.shortcode-module .shortcode-types .shortcode-type.active .description{color:#fff}.shortcode-module .shortcode-types .shortcode-type:not(.active):hover{background:rgba(47,180,75,.2)}.shortcode-module .shortcode-types .shortcode-type .pro-badge{position:absolute;top:10px;left:10px;background:#fdb837;color:#fff;padding:7px;border-radius:7px;font-size:12px;font-weight:400;display:flex;align-items:center;justify-content:center;line-height:1;box-shadow:0 0 5px rgba(0,0,0,.1);transition:all .3s ease}.shortcode-module .shortcode-types .shortcode-type .pro-badge i{height:auto;width:auto;font-size:18px;margin-left:3px}.shortcode-module .shortcode-types .shortcode-type.pro-feature{border-color:#fdb837}.shortcode-module .shortcode-types .shortcode-type.pro-feature:hover{background:rgba(253,184,55,.1)}.shortcode-module .shortcode-types .shortcode-type:last-child{margin-left:auto}.shortcode-module .settings-field{display:flex;flex-wrap:wrap;margin-bottom:15px;align-items:center;border-radius:10px;padding:12px 18px;background:#fff}.shortcode-module .settings-field-title{font-size:1.3rem;margin-bottom:30px;font-weight:600;text-align:right}.shortcode-module .settings-field-title.field-visibility{margin-top:50px}.shortcode-module .settings-field-label{width:200px;font-weight:600;font-size:1rem;display:flex;justify-content:space-between;text-align:right}.shortcode-module .settings-field-label i{margin-left:7px;color:#777}.shortcode-module .settings-field-label:after{content:":";margin-right:auto}.shortcode-module .settings-field-content{display:flex;flex-direction:column;align-items:flex-start;margin-right:20px;flex:1}.shortcode-module .settings-field-content .components-button i{margin-left:5px}.shortcode-module .settings-field-content .description{font-size:.875rem;margin-top:10px;text-align:right;color:#757575;display:flex;align-items:center;flex-wrap:wrap}.shortcode-module .settings-field-content .description .igd-btn,.shortcode-module .settings-field-content .description a{margin-right:10px;text-decoration:none}.shortcode-module .settings-field-content .description+.description{margin-top:0}.shortcode-module .settings-field.filter-field .filter-field-input{display:flex;flex-direction:column}.shortcode-module .settings-field.filter-field .filter-field-all{display:flex;align-items:center;justify-content:flex-start;margin-top:15px;flex-wrap:wrap}.shortcode-module .settings-field.filter-field .filter-field-all>div{display:flex;align-items:center}.shortcode-module .settings-field.filter-field .filter-field-all>div:first-child{margin-left:20px}.shortcode-module .settings-field.filter-field .filter-field-all-label{margin-left:10px;font-weight:500;font-size:.875rem;white-space:nowrap}.shortcode-module .settings-field.filter-field .filter-field-all .description{width:100%;text-align:right}.shortcode-module .settings-field.filter-field .filter-field-all ul{margin-top:0;padding-right:10px;margin-right:10px;list-style:disc}.shortcode-module .settings-field.filter-field .name-filter-option{display:flex;flex-wrap:wrap;align-items:center;margin-top:10px}.shortcode-module .settings-field.filter-field .name-filter-option h4{margin:0 0 0 15px;font-size:.875rem;font-weight:500}.shortcode-module .settings-field.filter-field .name-filter-option .name-filter-option-item{margin-left:15px;border:1px solid #ddd;border-radius:5px;padding:5px;display:flex;align-items:center;justify-content:center;font-size:.875rem;font-weight:500;color:#777;cursor:pointer;transition:all .3s ease}.shortcode-module .settings-field.filter-field .name-filter-option .name-filter-option-item:hover{background:#f5f8ff;color:#0a0a0a}.shortcode-module .settings-field.filter-field .name-filter-option .components-checkbox-control__input{height:20px;width:20px}.shortcode-module .settings-field.filter-field .name-filter-option .components-checkbox-control__label{margin-right:7px;text-transform:capitalize}@media (max-width:767px){.shortcode-module .settings-field.filter-field .name-filter-option div:not(#jairalok){width:auto;margin-bottom:0}}.shortcode-module .settings-field.sort-field .sort-field-section{display:flex;flex-direction:column}.shortcode-module .settings-field.sort-field .sort-field-section:first-child{margin-left:35px;padding-left:15px;border-left:1px solid #ddd}.shortcode-module .settings-field.sort-field .sort-field-section:last-child{border-left:0}.shortcode-module .settings-field.sort-field .sort-field-section-wrap{display:flex;margin:15px 30px}.shortcode-module .settings-field.sort-field .sort-field-section-label{margin-bottom:15px;font-weight:500;text-align:right;font-size:.9rem;margin-right:-20px}.shortcode-module .settings-field.sort-field .sort-field-section .sort-item{display:flex;align-items:center;margin-bottom:10px;cursor:pointer;position:relative;font-size:.875rem}.shortcode-module .settings-field.sort-field .sort-field-section .sort-item i{display:none;position:absolute;right:-25px}.shortcode-module .settings-field.sort-field .sort-field-section .sort-item.active{color:#2fb44b}.shortcode-module .settings-field.sort-field .sort-field-section .sort-item.active i{display:block}.shortcode-module .settings-field.filter-users-field .filter-users-group{display:flex;flex-direction:column}.shortcode-module .settings-field .filter-users{margin-top:15px;display:flex;flex-direction:column;border:1px dashed #ddd;padding:15px;border-radius:7px;width:100%}.shortcode-module .settings-field .filter-users-title{font-weight:500;font-size:1rem;margin-bottom:10px;text-align:right;margin-top:0}.shortcode-module .settings-field .filter-users-section{display:flex;align-items:center}.shortcode-module .settings-field .filter-users-section:first-child{margin-left:20px}.shortcode-module .settings-field .filter-users-section-label{margin-left:10px;font-weight:500;font-size:1rem}.shortcode-module .settings-field .filter-users-section-wrap{display:flex;flex-wrap:wrap}.shortcode-module .settings-field .filter-users-section-wrap .description{width:100%;margin-bottom:0}.shortcode-module .settings-field.field-parent-folder .shortcode-module .igd-select-sources-wrap{margin-top:10px}.shortcode-module .settings-field.field-upload-confirmation-message .description{margin-top:-5px;margin-bottom:15px}.shortcode-module .settings-field.field-upload-confirmation-message .wp-editor-wrap{width:100%}.shortcode-module .settings-field.field-upload-confirmation-message .wp-editor-wrap textarea{border:none}.shortcode-module .settings-field.field-upload-confirmation-message .wp-switch-editor{height:29px}.shortcode-module .settings-field.field-upload-confirmation-message textarea{width:100%;border:1px solid #eee;padding:15px;min-width:200px}.shortcode-module .settings-field.field-upload-confirmation-message textarea:focus{outline:0;box-shadow:none}.shortcode-module .settings-field.field-allow-search input[type=text]{width:100%}.shortcode-module .settings-field.field-private-folder input[type=text]{width:100%}.shortcode-module .settings-field.field-private-folder .settings-field-label{margin-top:15px}.shortcode-module .settings-field.field-gallery-image-size .gallery-custom-size-wrap{display:flex}.shortcode-module .settings-field.field-gallery-image-size .gallery-custom-size-wrap .components-base-control:first-child{display:flex;align-items:center}.shortcode-module .settings-field.field-gallery-image-size .gallery-custom-size-wrap .components-base-control:first-child:after{content:"X";margin-right:10px;margin-left:10px;font-weight:500}.shortcode-module .settings-field.field-gallery-image-size .gallery-custom-size-wrap .components-text-control__input{width:110px}.shortcode-module .settings-field.field-access-denied-message{flex-direction:column;align-items:flex-start}.shortcode-module .settings-field.field-access-denied-message .settings-field-label{width:100%}.shortcode-module .settings-field.field-access-denied-message .settings-field-label:after{content:""}.shortcode-module .settings-field.field-access-denied-message .description{margin-top:-5px;margin-bottom:15px}.shortcode-module .settings-field.field-access-denied-message .wp-editor-wrap{width:100%}.shortcode-module .settings-field.field-access-denied-message .wp-editor-wrap textarea{border:none}.shortcode-module .settings-field.field-access-denied-message .wp-switch-editor{height:29px}.shortcode-module .settings-field.field-access-denied-message textarea{width:100%;border:1px solid #eee;padding:15px;min-width:200px}.shortcode-module .settings-field.field-access-denied-message textarea:focus{outline:0;box-shadow:none}.shortcode-module .settings-field .components-select-control select,.shortcode-module .settings-field input[type=email],.shortcode-module .settings-field input[type=number],.shortcode-module .settings-field input[type=text],.shortcode-module .settings-field select{height:40px;border-radius:4px;border:1px solid #ddd;font-size:.8rem;width:350px;max-width:100%;padding:10px 15px;line-height:1}.shortcode-module .settings-field .components-select-control select:disabled,.shortcode-module .settings-field input[type=email]:disabled,.shortcode-module .settings-field input[type=number]:disabled,.shortcode-module .settings-field input[type=text]:disabled,.shortcode-module .settings-field select:disabled{background:#f5f5f5;color:#aaa;cursor:not-allowed}.shortcode-module .settings-field .igd-select{width:400px}.shortcode-module .settings-field .igd-select.filter-users-select{max-width:100%}.shortcode-module .settings-field .igd-select__control.igd-select__control--is-focused{border-color:#2fb44b;box-shadow:none}.shortcode-module .settings-field .igd-select__input{height:auto}.shortcode-module .settings-field .igd-select__input:focus{border:none;box-shadow:none}.shortcode-module .settings-field .igd-select__menu{border-radius:7px;border:1px solid rgba(47,180,75,.3);box-shadow:0 0 5px rgba(0,0,0,.1);z-index:99}.shortcode-module .settings-field .igd-select__menu .igd-select__option{padding:10px 15px;font-size:.8rem;cursor:pointer}.shortcode-module .settings-field .igd-select__menu .igd-select__option:hover{background:rgba(47,180,75,.1)}.shortcode-module .settings-field .igd-select__menu .igd-select__option--is-focused{background:rgba(47,180,75,.1)}.shortcode-module .settings-field .igd-select__multi-value{background:#2fb44b;color:#fff}.shortcode-module .settings-field .igd-select__multi-value .igd-select__multi-value__label{color:#fff}.shortcode-module .settings-field .components-button-group{background:rgba(47,180,75,.1);padding:10px;width:-moz-max-content;width:max-content;border-radius:10px}.shortcode-module .settings-field .components-button-group button{color:#47cf64;box-shadow:inset 0 0 0 1px rgba(47,180,75,.25);margin:0 3px;border-radius:5px;background:#fff}.shortcode-module .settings-field .components-button-group button:first-child{border-top-right-radius:5px;border-bottom-right-radius:5px}.shortcode-module .settings-field .components-button-group button:last-child{border-top-left-radius:5px;border-bottom-left-radius:5px}.shortcode-module .settings-field .components-button-group button.is-primary{z-index:auto;background:#47cf64;color:#fff}.shortcode-module .settings-field .components-button-group button.is-secondary:hover{color:#2fb44b;box-shadow:inset 0 0 0 1px #47cf64}.shortcode-module .settings-field .components-button-group button i{margin-left:5px}.shortcode-module .settings-field .components-range-control{width:350px;margin-top:15px}.shortcode-module .settings-field .components-range-control .components-range-control__wrapper{color:#2fb44b;margin-bottom:0}.shortcode-module .settings-field .components-range-control .components-range-control__wrapper .components-range-control__mark-label{top:20px}.shortcode-module .settings-field .components-range-control .components-range-control__wrapper .components-range-control__thumb-wrapper span{background:#2fb44b}.shortcode-module .settings-field .components-range-control .components-input-control__input{width:auto;height:auto;padding:0 10px 0 0}.shortcode-module .settings-field .components-range-control .components-input-control__backdrop{border-color:#ddd}.shortcode-module .settings-field .components-select-control .components-input-control__backdrop{border-color:#ddd}.shortcode-module .settings-field-sub{display:flex;flex-direction:column;width:100%}.shortcode-module .settings-field-sub .settings-field{flex-direction:column;align-items:flex-start;margin-top:15px;margin-bottom:0;display:flex;border:1px dashed #ddd;padding:10px 15px;border-radius:7px;width:100%}.shortcode-module .settings-field-sub .settings-field-label{margin-top:0;margin-bottom:12px;width:auto}.shortcode-module .settings-field-sub .settings-field-label:after{content:"";display:none}.shortcode-module .settings-field-sub .settings-field-content{width:100%;margin-right:0}.shortcode-module .settings-field-sub .settings-field-content+h4,.shortcode-module .settings-field-sub .settings-field-content>h4{margin-top:15px}@media (max-width:767px){.shortcode-module .shortcode-module-header{flex-flow:column-reverse;align-items:center;text-align:center}.shortcode-module .shortcode-module-header .module-title h2{text-align:center;margin-top:10px}.shortcode-module .shortcode-module-header .module-type{display:none}.shortcode-module .shortcode-module-header .shortcode-wrap{display:none}.shortcode-module .shortcode-types{gap:10px}.shortcode-module .shortcode-types .shortcode-type{width:calc(50% - 5px);text-align:center;padding:1rem}.shortcode-module .settings-field{flex-flow:column;align-items:flex-start;padding:10px}.shortcode-module .settings-field-label{margin-bottom:.5rem;font-size:.875rem;justify-content:flex-start}.shortcode-module .settings-field-label:after{display:none}.shortcode-module .settings-field-content{margin-right:0}.shortcode-module .settings-field input,.shortcode-module .settings-field select{width:100%;height:32px}.shortcode-module .settings-field .igd-select{width:100%}.shortcode-module .settings-field.filter-field .filter-field-all{flex-direction:column;align-items:flex-start;width:100%}.shortcode-module .settings-field.filter-field .filter-field-all div{margin-left:0;display:flex;width:100%}.shortcode-module .settings-field.filter-field .filter-field-all div:first-child{margin-bottom:10px}.shortcode-module .settings-field.filter-field .filter-field-all-label{min-width:70px}.shortcode-module .settings-field .filter-users-section-wrap{flex-direction:column;align-items:flex-start;width:100%}.shortcode-module .settings-field .filter-users-section-wrap .filter-users-section{width:100%}.shortcode-module .settings-field .filter-users-section-wrap .filter-users-section:first-child{margin-bottom:10px}}.igd-module-builder-modal .components-form-toggle,.igd-shortcode-builder .components-form-toggle{width:-moz-max-content;width:max-content;background:#fff;padding:3px;border-radius:15px}.igd-module-builder-modal .components-form-toggle__track,.igd-shortcode-builder .components-form-toggle__track{width:44px;height:22px;border-radius:22px;border-color:#5c637e}.igd-module-builder-modal .components-form-toggle__thumb,.igd-shortcode-builder .components-form-toggle__thumb{background:#5c637e;border:none;width:15px;height:15px;border-radius:25px;top:6px;right:6px}.igd-module-builder-modal .components-form-toggle.is-checked .components-form-toggle__thumb,.igd-shortcode-builder .components-form-toggle.is-checked .components-form-toggle__thumb{background:#fff;transform:translateX(-22px)}.igd-module-builder-modal .components-form-toggle.is-checked .components-form-toggle__track,.igd-shortcode-builder .components-form-toggle.is-checked .components-form-toggle__track{background:#47cf64}.igd-module-builder-modal .components-base-control__field,.igd-shortcode-builder .components-base-control__field{margin-bottom:0;display:flex;align-items:center}.igd-module-builder-modal .components-base-control__field .components-checkbox-control__input,.igd-shortcode-builder .components-base-control__field .components-checkbox-control__input{border-color:rgba(92,99,126,.5);margin:0}.igd-module-builder-modal .components-base-control__field .components-checkbox-control__input-container,.igd-shortcode-builder .components-base-control__field .components-checkbox-control__input-container{margin:0}.igd-module-builder-modal .components-base-control__field .components-checkbox-control__input:checked,.igd-shortcode-builder .components-base-control__field .components-checkbox-control__input:checked{background:#47cf64;border-color:#47cf64}@media (max-width:767px){.igd-module-builder-modal,.igd-shortcode-builder{margin-top:0}.igd-module-builder-modal .shortcode-tabs,.igd-shortcode-builder .shortcode-tabs{flex-wrap:wrap;justify-content:space-between}.igd-module-builder-modal .shortcode-tabs .shortcode-tab,.igd-shortcode-builder .shortcode-tabs .shortcode-tab{margin-left:0!important}.igd-module-builder-modal .shortcode-tabs .shortcode-tab .tab-index,.igd-shortcode-builder .shortcode-tabs .shortcode-tab .tab-index{height:2rem;width:2rem}.igd-module-builder-modal .shortcode-tabs .shortcode-tab:not(:last-child):after,.igd-shortcode-builder .shortcode-tabs .shortcode-tab:not(:last-child):after{width:1rem;height:.3rem}.igd-module-builder-modal .shortcode-builder-content,.igd-shortcode-builder .shortcode-builder-content{padding:0;max-width:100%}}.igd-select-sources-wrap{display:flex;flex-wrap:wrap;align-items:flex-start}.igd-select-sources-wrap .source-title-wrap{width:100%;margin-bottom:20px;text-align:right}.igd-select-sources-wrap .source-title-wrap h3{margin-bottom:5px}.igd-select-sources-wrap .source-title-wrap p{margin:0}.igd-select-sources-wrap .igd-file-browser{border:1px solid rgba(47,180,75,.3);border-radius:10px;overflow:hidden;flex:1;height:auto;background:#fff}.igd-select-sources-wrap .igd-file-browser-header{position:static;z-index:9}.igd-select-sources-wrap .igd-file-browser-header .header-title i{color:#555;display:flex;align-items:center;justify-content:center}.igd-select-sources-wrap .igd-file-browser-header .igd-breadcrumb .breadcrumb-item:hover{color:#fff;background:#248c3a}.igd-select-sources-wrap .igd-file-browser .select-btn{position:absolute;color:#fff;left:10px;border:1px solid rgba(47,180,75,.3);z-index:2;display:flex;align-items:center;border-radius:3px;padding:5px;background:#2fb44b;cursor:pointer;line-height:1;transition:background .3s ease;font-size:.875rem}.igd-select-sources-wrap .igd-file-browser .select-btn i{margin-left:0}.igd-select-sources-wrap .igd-file-browser .select-btn span{margin-right:5px;display:none}.igd-select-sources-wrap .igd-file-browser .select-btn.active{background:#ff9f10;border-color:#dc8400}.igd-select-sources-wrap .igd-file-browser .select-btn:hover span{display:block}.igd-select-sources-wrap .igd-file-browser .file-list .file-item:not(.folder-item):hover .select-btn span{display:block}.igd-select-sources-wrap .igd-file-browser .file-list:not(.list-view) .file-item:not(.folder-item) .select-btn{top:10px}.igd-select-sources-wrap .igd-selected-list{width:30%;max-width:300px;margin-right:15px;border:1px solid rgba(47,180,75,.3);border-radius:10px;overflow:hidden;background:#fff;position:sticky;top:120px}.igd-select-sources-wrap .igd-selected-list-header{padding:10px;background:#2fb44b;color:#fff;display:flex;align-items:center;justify-content:space-between}.igd-select-sources-wrap .igd-selected-list-header .header-title{font-size:1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-select-sources-wrap .igd-selected-list-header button{padding:7px 10px;font-size:.8rem;border-radius:5px;background:#ff9f10;border:none}.igd-select-sources-wrap .igd-selected-list-header button span{white-space:nowrap}.igd-select-sources-wrap .igd-selected-list-header button:hover{color:#ff9f10;background:#fff}.igd-select-sources-wrap .igd-selected-list .no-files-message{display:flex;justify-content:center;align-items:center;font-size:1rem;color:#ff9f10;margin:30px auto}.igd-select-sources-wrap .igd-selected-list .no-files-message i{margin-left:5px}.igd-select-sources-wrap .igd-selected-list>p{padding:10px;font-size:.875rem;color:#555;border:1px solid #ddd;margin:30px 10px 10px;border-radius:5px;background:rgba(48,142,225,.1);text-align:center}.igd-select-sources-wrap .igd-selected-list>p span{display:block;margin-top:10px}.igd-select-sources-wrap .no-account-placeholder{width:auto;flex:1;margin-top:0}@media (max-width:767px){.igd-select-sources-wrap{flex-direction:column}.igd-select-sources-wrap .igd-selected-list{margin-right:0}}.selected-item{display:flex;align-items:center;padding:10px 15px;border-bottom:1px solid #ddd;font-size:.875rem;z-index:99;color:#666}.selected-item-index{margin-left:7px;color:#777}.selected-item .item-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-left:7px}.selected-item .remove-item{color:#fff;background:#ff9f10;border:1px solid #dc8400;display:flex;align-items:center;justify-content:center;height:25px;width:25px;min-width:25px;font-size:18px;border-radius:50%;opacity:.7;margin-right:auto;cursor:pointer}.selected-item .remove-item:hover{opacity:1;background:#fff;color:#ff9f10}.selected-item .dashicons-category,.selected-item .dashicons-move,.selected-item img{margin-left:10px;color:#8f8f8f}.selected-item .dashicons-move{cursor:pointer}.selected-item .dashicons-move:hover{color:#555}.selected-item .file-item{display:flex;align-items:center;overflow:hidden;flex:1;cursor:pointer}.selected-item .file-item>img{max-width:20px;min-height:16px}.selected-item.sortable-item{border:none}.igd-shortcode-preview,.igd-shortcode-preview *{box-sizing:border-box}.igd-shortcode-preview-container{z-index:99999!important}.igd-shortcode-preview-container,.igd-shortcode-preview-container *{box-sizing:border-box}.igd-shortcode-preview-popup{display:flex!important;align-items:center;justify-content:center;position:absolute!important;grid-column:auto!important;grid-row:auto!important;background:100% 0;width:97%!important;height:95%!important}.igd-shortcode-preview-popup .swal2-html-container{width:100%!important;height:100%!important;background:#fff;border-radius:.5rem!important;margin:auto!important}.igd-shortcode-preview-header{display:flex;align-items:center;justify-content:space-between;padding:.8rem;border-bottom:1px solid #ddd;margin-bottom:1rem;position:sticky;top:0;z-index:10;background:#fff;box-shadow:0 .5rem 1rem rgba(0,0,0,.1)}.igd-shortcode-preview-header .header-title i{margin-left:7px}.igd-shortcode-preview-header button i{margin-left:0}.igd-shortcode-preview .preview-inner{text-align:right;padding:1rem 2rem}.swal2-container.swal2-top-end{z-index:99999!important}.igd-module-builder-modal{height:100%;display:flex;flex-direction:column;background:#f7f8fa}.igd-module-builder-modal *{box-sizing:border-box}.igd-module-builder-modal-wrap{height:100%}.igd-module-builder-modal-wrap.inline-select .shortcode-module{padding:0}.igd-module-builder-modal-wrap.inline-select .shortcode-builder-content{height:auto;max-width:100%;min-height:auto}.igd-module-builder-modal-container{z-index:99999999!important}.igd-module-builder-modal-container .swal2-popup{width:95%;height:90vh;padding:0;overflow:hidden}.igd-module-builder-modal-container .swal2-popup .swal2-html-container{margin:0;border-radius:.5rem;overflow-y:auto}.igd-module-builder-modal-header{display:flex;align-items:center;padding:12px 1rem;border-bottom:1px solid #eaeaea;background:#fff;z-index:99;box-shadow:0 0 .5rem rgba(0,0,0,.1);position:sticky;top:0}.igd-module-builder-modal-header .header-title{display:flex;align-items:center}.igd-module-builder-modal-header .header-title i{margin-left:7px}.igd-module-builder-modal-header .header-title h3{font-size:1.2rem;margin:0;font-weight:500}@media (max-width:600px){.igd-module-builder-modal-header .header-title h3{font-size:1rem}}.igd-module-builder-modal-header .close{margin-right:auto;margin-left:15px}.igd-module-builder-modal-header button{padding:7px 10px;font-size:.9rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-module-builder-modal-header .done .igd-spinner{display:none}.igd-module-builder-modal-header .done.loading i{display:none}.igd-module-builder-modal-header .done.loading .igd-spinner{display:inline-block}.igd-module-builder-modal .shortcode-module .media-uploader-post-content{margin-bottom:30px}.igd-module-builder-modal .shortcode-module .media-uploader-post-content textarea{width:100%;height:auto;padding:8px 12px;line-height:27px;vertical-align:top}.igd-module-builder-modal .shortcode-module-header{align-items:flex-start}.igd-module-builder-modal .shortcode-module-header .module-title{line-height:1}.igd-module-builder-modal .shortcode-module .igd-selected-list{top:20px}.igd-module-builder-modal .shortcode-module-body>.settings-field:last-child{margin-bottom:0}.igd-shortcode-builder-form{margin:0;overflow-y:auto;flex:1;display:flex}.igd-shortcode-builder-form .content-sources .settings-field.form-entry-field{margin-top:20px}.igd-shortcode-builder-form .content-sources .settings-field.form-entry-field input[type=text]{width:100%}.igd-shortcode-builder-form .content-sources .form-entry-title{margin-top:30px}.igd-shortcode-builder-form .content-sources #igd-select-files{width:100%;margin-bottom:20px}.igd-shortcode-builder-form .content-sources #igd-select-files .igd-body{max-height:400px}.module-builder-placeholder{display:flex;align-items:center;flex-flow:column;justify-content:center;text-align:center;border:1px solid #eaeaea;padding:2rem;border-radius:10px;max-width:380px;margin:auto;background:#fafafa}.module-builder-placeholder img{width:50px}.module-builder-placeholder h3{font-size:22px;margin-bottom:5px;font-weight:500;color:#333}.module-builder-placeholder p{font-size:.875rem;color:#555}.module-builder-placeholder button{margin-top:10px;padding:10px 15px}.module-builder-placeholder.pro-placeholder h4{margin-top:20px;margin-bottom:0;font-size:1.5rem;color:#ff9458;font-weight:500}.igd-shortcode-data-modal-container .igd-shortcode-data-modal-input{height:150px;padding:1rem;border-radius:.5rem;line-height:1.2;font-size:.878885rem}.igd-shortcode-data-modal-container .swal2-confirm{background:#2fb44b}#igd_data{display:none!important}.igd-form-uploader-trigger>*{pointer-events:none}.igd-file-browser{display:flex;flex-flow:column;align-items:flex-start;width:100%}.igd-file-browser,.igd-file-browser *{box-sizing:border-box}.igd-file-browser .btn-primary{background:var(--color-primary)}.igd-file-browser .btn-primary:hover{background:var(--color-primary-light-alt)}.igd-file-browser-header{display:flex;align-items:center;background:#f9fafc;border-bottom:1px solid #e5e5e5;padding:12px 15px;position:sticky;top:32px;width:100%;z-index:9;height:60px}.igd-file-browser-header .header-title{display:flex;align-items:center;font-size:1rem;font-weight:600;color:#fff}.igd-file-browser-header .header-title i,.igd-file-browser-header .header-title img{margin-left:10px;background:#fff;padding:5px;height:35px;width:35px;border-radius:50%;color:#fff}.igd-file-browser-header .header-action{display:flex;align-items:center;margin-right:auto;justify-content:flex-end}.igd-file-browser-header .header-action-item{margin-right:15px;cursor:pointer;color:#444;background:#f7f8fa;height:40px;width:40px;border-radius:10px;display:flex;align-items:center;justify-content:center;transition:all .2s ease-in-out}.igd-file-browser-header .header-action-item img{width:18px}.igd-file-browser-header .header-action-item:hover{background:var(--color-primary-lighter)}.igd-file-browser-header .user-box{display:flex;align-items:center;width:auto;padding:5px;max-width:250px;height:45px;background:100% 0}.igd-file-browser-header .user-box .user-info{display:flex;flex-direction:column;line-height:1;overflow:hidden;text-align:right}.igd-file-browser-header .user-box .user-info span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.igd-file-browser-header .user-box .user-info .user-name{font-size:.9rem;font-weight:600;color:#3d3d3d;margin-bottom:3px}.igd-file-browser-header .user-box .user-info .user-email{color:#7a7a7a;font-weight:300;font-size:.875rem}.igd-file-browser-header .user-box .user-image{width:35px;height:35px;border-radius:50%}.igd-file-browser-header .user-box-modal{display:flex;flex-direction:column;justify-content:flex-start;align-items:center;width:260px;border-radius:10px;max-height:75vh;overflow-y:auto}.igd-file-browser-header .user-box-modal::-webkit-scrollbar{width:5px;display:none}.igd-file-browser-header .user-box-modal::-webkit-scrollbar-track{background:var(--color-primary-lighter)}.igd-file-browser-header .user-box-modal::-webkit-scrollbar-thumb{background:var(--color-primary-light)}.igd-file-browser-header .user-box-modal::-webkit-scrollbar-thumb:hover{background:var(--color-primary)}.igd-file-browser-header .user-box-modal:hover::-webkit-scrollbar{display:block}.igd-file-browser-header .user-box-modal-wrap{border-radius:10px;padding:0;opacity:1;box-shadow:0 1px 0 0 #e5e5e5}.igd-file-browser-header .user-box-modal-wrap:after,.igd-file-browser-header .user-box-modal-wrap:before{right:calc(100% - 45px)}.igd-file-browser-header .user-box-modal-title{font-size:1.2rem;font-weight:500;display:block;position:sticky;background:#fff;top:0;width:100%;text-align:center;padding:15px;box-shadow:0 1px 0 0 #e5e5e5;margin-bottom:7px}.igd-file-browser-header .user-box-modal button{margin:10px auto 20px auto;padding:8px 12px;font-size:.875rem}.igd-file-browser-header .user-box-modal>div:last-child{margin-bottom:15px}.igd-file-browser-header .user-box-account{display:flex;align-items:center;border:1px solid #e5e5e5;padding:7px;border-radius:5px;cursor:pointer;width:calc(100% - 30px);margin:7px}.igd-file-browser-header .user-box-account.active,.igd-file-browser-header .user-box-account:hover{background:var(--color-primary-lighter);color:#000}.igd-file-browser-header .user-box-account img{width:30px;height:30px;border-radius:50%;margin-left:10px}.igd-file-browser-header .user-box-account .account-info{display:flex;flex-flow:column;overflow:hidden;text-align:right;line-height:1.5}.igd-file-browser-header .user-box-account .account-info .account-name{font-size:.9rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-file-browser-header .user-box-account .account-info .account-email{font-size:.8rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#7a7a7a}.igd-file-browser-header .user-box-account .active-badge{background:var(--color-primary);color:#fff;border-radius:50%;position:relative;margin-right:auto;left:0}.igd-file-browser-header .user-box .user-arrow{width:16px;margin-right:10px}@media (max-width:768px){.igd-file-browser-header{top:0;flex-flow:column;align-items:center;height:auto;padding:.5rem}.igd-file-browser-header .header-action{margin-right:0;width:100%;justify-content:center}.igd-file-browser-header .header-action .igd-search-bar input{min-height:35px;height:35px}.igd-file-browser-header .header-action .igd-search-bar i.dashicons-dismiss{margin-right:15px}.igd-file-browser-header .header-action .igd-search-bar i.dashicons-search{height:35px}.igd-file-browser-header .header-action .igd-search-bar.active{position:absolute;width:calc(100% - 20px);z-index:2;height:45px;background:#f7f8fa}.igd-file-browser-header .header-action-item{margin-right:.875rem}.igd-file-browser-header .header-action-item.sidebar-toggle{margin-right:0;margin-left:auto}.igd-file-browser-header .user-box{padding:5px;border-radius:30px;height:40px}.igd-file-browser-header .user-box .user-info{display:none}.igd-file-browser-header .user-box .user-arrow{margin-right:0}.igd-file-browser-header .user-box .user-image{width:30px;height:30px;margin-left:5px}.igd-file-browser-header .user-box-modal-wrap{left:10px;right:auto}}.igd-file-browser .igd-search-bar{display:flex;align-items:center;position:relative;overflow:hidden;margin-bottom:0}.igd-file-browser .igd-search-bar input{width:0;height:0;min-height:0;border:none;transition:all .3s ease;padding:0;margin:0;border:0;background:100% 0;box-shadow:none}.igd-file-browser .igd-search-bar input:focus{outline:0;border:none;box-shadow:none}.igd-file-browser .igd-search-bar .search-submit{margin-right:0;display:flex;align-items:center;justify-content:center;margin-bottom:0}.igd-file-browser .igd-search-bar .search-dismiss{display:none;background:100% 0;cursor:pointer}.igd-file-browser .igd-search-bar .search-dismiss img{width:16px}.igd-file-browser .igd-search-bar.active{width:auto;padding:5px 15px}.igd-file-browser .igd-search-bar.active input{width:100%!important;margin:0 15px;height:100%}.igd-file-browser .igd-search-bar.active .search-submit{margin-bottom:0}.igd-file-browser .igd-search-bar.active .search-dismiss{display:flex}.igd-file-browser .igd-search-bar.active .search-dismiss svg{margin-bottom:0}.igd-file-browser .igd-search-bar.error input{border:1px solid #f77066}.igd-file-browser-body{display:flex;align-items:flex-start;width:100%;height:100%;position:relative}.igd-file-browser .igd-sort{display:flex;align-items:center}.igd-file-browser .igd-sort-select{font-weight:600;cursor:pointer;padding:3px 5px;border-radius:5px}.igd-file-browser .igd-sort-select:hover{background:#ddd}.igd-file-browser .igd-sort-modal{width:220px;padding:0;border-radius:7px;opacity:1!important;box-shadow:rgba(149,157,165,.2) 0 8px 24px}.igd-file-browser .igd-sort-modal .sort-item{display:flex;align-items:center;margin-bottom:15px;padding-right:25px;cursor:pointer;font-size:.9rem}.igd-file-browser .igd-sort-modal .sort-item i{margin-left:5px;display:none}.igd-file-browser .igd-sort-modal .sort-item.active{color:var(--color-primary);padding-right:0}.igd-file-browser .igd-sort-modal .sort-item.active i{display:inline-block}.igd-file-browser .igd-sort-modal .sort-item:hover{color:var(--color-primary)}.igd-file-browser .igd-sort-modal-inner{display:flex;flex-direction:column}.igd-file-browser .igd-sort-modal-inner-section{border-bottom:1px solid #ddd;padding:15px}.igd-file-browser .igd-sort-modal-inner-section:last-child{border-bottom:0}.igd-file-browser .igd-sort-modal-inner-section-title{font-size:.9rem;margin-bottom:10px;display:block;font-weight:500}.igd-file-browser .igd-breadcrumb{display:flex;align-items:center;overflow:hidden;max-width:70%;flex-wrap:wrap}.igd-file-browser .igd-breadcrumb .breadcrumb-item{font-size:.875rem;display:flex;align-items:center;cursor:pointer;padding:5px;border-radius:5px;line-height:1;font-weight:500;color:#444;white-space:nowrap;position:relative;margin-bottom:0}.igd-file-browser .igd-breadcrumb .breadcrumb-item i{margin-right:3px}.igd-file-browser .igd-breadcrumb .breadcrumb-item i.dashicons-arrow-right-alt2{width:13px;height:15px;font-size:15px}.igd-file-browser .igd-breadcrumb .breadcrumb-item i.dashicons-admin-home{margin-left:5px;margin-right:0}.igd-file-browser .igd-breadcrumb .breadcrumb-item i:last-child{display:none}.igd-file-browser .igd-breadcrumb .breadcrumb-item span{margin-bottom:0;max-width:200px;overflow:hidden;text-overflow:ellipsis}.igd-file-browser .igd-breadcrumb .breadcrumb-item:first-child{margin-right:0}.igd-file-browser .igd-breadcrumb .breadcrumb-item:after{content:"";font-family:Dashicons;margin-right:7px}.igd-file-browser .igd-breadcrumb .breadcrumb-item:not(:last-child):after{content:"\f345"}.igd-file-browser .igd-breadcrumb .breadcrumb-item.active:after{content:"\f140";height:auto;width:auto;font-size:22px;margin-right:3px}.igd-file-browser .igd-breadcrumb .breadcrumb-item:hover{color:var(--color-primary);background:var(--color-primary-lighter)}@media (max-width:768px){.igd-file-browser .igd-breadcrumb{max-width:100%;margin-bottom:10px}}.igd-file-browser .collapsed-breadcrumbs{width:210px;opacity:1!important;box-shadow:rgba(149,157,165,.2) 0 8px 24px;padding:10px 0}.igd-file-browser .collapsed-breadcrumbs-item{cursor:pointer;font-size:.875rem;padding:7px 15px;display:flex;align-items:center}.igd-file-browser .collapsed-breadcrumbs-item:hover{color:var(--color-primary)}.igd-file-browser .collapsed-breadcrumbs-item i{margin-left:5px;font-size:1rem;height:1rem;width:1rem}.igd-file-browser .collapsed-breadcrumbs-item span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}.igd-file-browser .collapsed-breadcrumbs-item:before{content:"\f345";font-family:Dashicons,serif;margin-left:7px}.igd-file-browser .igd-root-placeholder{display:flex;flex-direction:column;align-items:center;width:-moz-max-content;width:max-content;margin:3rem auto;padding:50px 30px;border-radius:15px;min-width:30rem;background:#fff;box-shadow:rgba(149,157,165,.2) 0 2px 2px}.igd-file-browser .igd-root-placeholder .igd-placeholder-svg,.igd-file-browser .igd-root-placeholder img{width:200px;margin-bottom:1rem}.igd-file-browser .igd-root-placeholder-title{font-size:1rem;font-weight:500;margin:15px 0 5px 0;color:var(--color-primary)}.igd-file-browser .igd-root-placeholder-text{color:#7a7a7a}.igd-file-browser .igd-root-placeholder button{margin-top:30px}.igd-file-browser .igd-root-placeholder.empty-folder-placeholder img,.igd-file-browser .igd-root-placeholder.search-folder-placeholder img{width:100px}.igd-file-browser .igd-root-placeholder.search-placeholder .igd-placeholder-svg{width:100px;margin-bottom:1rem}.igd-file-browser .igd-root-placeholder.search-placeholder .igd-root-placeholder-title{margin-bottom:1.5rem}.igd-file-browser .igd-root-placeholder.search-placeholder:not(.empty-placeholder) .igd-root-placeholder-title{margin-top:0;margin-bottom:1.5rem}.igd-file-browser .igd-root-placeholder.search-placeholder .igd-search-bar{border:1px solid #ddd;padding:10px 20px;border-radius:5px}.igd-file-browser .igd-root-placeholder.search-placeholder .igd-search-bar .search-dismiss{display:none}.igd-file-browser .igd-root-placeholder.search-placeholder .igd-search-bar input{margin-right:0}.igd-file-browser .igd-root-placeholder+.igd-file-uploader{position:relative!important;margin:30px auto;left:unset;right:unset;bottom:unset}@media (max-width:767px){.igd-file-browser .igd-root-placeholder{min-width:auto}}.igd-sidebar-wrap{width:20%;max-width:230px;border-left:1px solid #e5e5e5;position:sticky;background:#f9fafc}.igd-sidebar .sidebar-uploader{display:flex;align-items:center;justify-content:center;padding:20px 10px 15px;border-bottom:1px solid #e5e5e5}.igd-sidebar .sidebar-uploader button{padding:7px 10px;font-size:.875rem;transition:background .3s ease;background:var(--color-primary)}.igd-sidebar .sidebar-uploader button.active{background:#fff;color:var(--color-primary);border-color:var(--color-primary-light)}.igd-sidebar .sidebar-uploader button.disabled{background:#ddd}.igd-sidebar .sidebar-uploader button.disabled:hover{background:#ddd!important}.igd-sidebar .sidebar-folders{display:flex;flex-direction:column}.igd-sidebar .sidebar-folders .root-item{padding:10px 15px;cursor:pointer;display:flex;align-items:center;font-size:1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-sidebar .sidebar-folders .root-item img{margin-left:10px}.igd-sidebar .sidebar-folders .root-item.active{background:var(--color-primary-lighter);color:var(--color-primary);border-right:5px solid}.igd-sidebar .sidebar-folders .root-item:hover{color:var(--color-primary)}.igd-sidebar .storage-info-wrap{display:flex;align-items:center;margin-top:30px;border-top:1px solid #e5e5e5;padding:15px}.igd-sidebar .storage-info-wrap i{margin-left:10px}.igd-sidebar .storage-info-wrap .storage-info{display:flex;flex-direction:column;flex:1}.igd-sidebar .storage-info-wrap .storage-info-sidebar{width:100%;height:10px;background:var(--color-primary-lighter);border-radius:5px;position:relative}.igd-sidebar .storage-info-wrap .storage-info-sidebar .storage-info-fill{position:absolute;top:0;right:0;width:0;height:100%;background:var(--color-primary);border-radius:5px}.igd-sidebar .storage-info-wrap .storage-info-sidebar .storage-info-fill.fill-danger{background:#f44336}.igd-sidebar .storage-info-wrap .storage-info span{font-size:.8rem;margin-top:5px}@media (max-width:767px){.igd-sidebar{max-width:80%;height:100%;background:#f5f9fd}.igd-sidebar-wrap{width:100%;max-width:100%;position:absolute;z-index:2;background:rgba(0,0,0,.5);height:100%}}.igd-body{display:flex;flex-direction:column;padding:10px;flex:1;width:100%;height:100%;position:relative;background:#f7f8fa}.igd-body .file-list{display:flex;align-items:flex-start;flex-wrap:wrap;overflow-y:auto}.igd-body .file-list .go-prev{display:flex;align-items:center;flex-direction:row!important;padding:10px;cursor:pointer!important;justify-content:flex-start!important;background:var(--color-primary-lighter);transition:all .3s ease;font-size:1rem;font-weight:300}.igd-body .file-list .go-prev i{margin:0 10px;position:relative;transition:all .3s ease;right:0}.igd-body .file-list .go-prev span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-body .file-list .root-item{flex-direction:row!important;padding:10px;cursor:pointer!important;align-items:center;justify-content:flex-start!important;font-size:1rem;background:#fff}.igd-body .file-list .root-item img{margin-left:10px}.igd-body .file-list .root-item .select-btn i{margin-left:0}.igd-body .file-list .file-item{display:flex;flex-direction:column;width:25%;margin:7px;border-radius:5px;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:auto;position:relative;aspect-ratio:1/1;justify-content:flex-end;box-shadow:rgba(0,0,0,.05) 0 6px 24px 0,rgba(0,0,0,.08) 0 0 0 1px;transition:transform .3s ease}.igd-body .file-list .file-item .igd-file-thumbnail{width:100%;height:100%;-o-object-fit:none;object-fit:none;position:absolute;-webkit-user-drag:none;bottom:20px}.igd-body .file-list .file-item .igd-file-thumbnail.has-thumbnail{-o-object-fit:cover;object-fit:cover}.igd-body .file-list .file-item .file-item-footer{display:flex;align-items:center;border-top:1px solid #e5e5e5;z-index:1;background:#fff;line-height:1;height:40px}.igd-body .file-list .file-item .file-item-footer .file-icon-wrap{width:30px;height:30px;display:flex;align-items:center;justify-content:center;margin-left:3px;margin-right:7px}.igd-body .file-list .file-item .file-item-footer .file-icon-wrap .file-icon{width:20px;height:20px;-webkit-user-drag:none}.igd-body .file-list .file-item .file-item-footer .file-icon-wrap .shortcut-icon{position:absolute;right:15px;bottom:8px;border:1px solid #ddd;border-radius:50%}.igd-body .file-list .file-item .file-item-footer .file-item-name{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:.875rem;font-weight:300;margin-left:auto;flex:1;text-align:right}.igd-body .file-list .file-item .file-item-footer .file-item-size{font-size:.75rem;font-weight:400;margin:0 5px;color:#999}.igd-body .file-list .file-item .file-item-footer .file-item-options{margin-right:auto;cursor:pointer;color:#565656;margin-left:7px}.igd-body .file-list .file-item .file-item-footer .file-item-options i{transform:rotate(-90deg);font-size:18px;width:18px;height:18px}.igd-body .file-list .file-item .file-item-footer .file-item-options:hover{color:var(--color-primary)}.igd-body .file-list .file-item.active{border:1px solid var(--color-primary-lighter-alt);transform:scale(1.03)}.igd-body .file-list .file-item.active .file-item-footer{background:var(--color-primary-light-alt);color:#fff}.igd-body .file-list .file-item.active .file-item-footer:not(:has(.file-item-checkbox)) .file-icon{background:#fff;border-radius:3px;box-sizing:content-box!important;padding:2px 5px}.igd-body .file-list .file-item.active .file-item-footer:has(.file-item-checkbox) .file-icon,.igd-body .file-list .file-item.active .file-item-footer:has(.file-item-checkbox) .shortcut-icon{display:none}.igd-body .file-list .file-item.active .file-item-footer .file-item-size{color:inherit}.igd-body .file-list .file-item.active .file-item-footer .file-item-options{color:inherit}.igd-body .file-list .file-item.active .file-item-footer .file-item-checkbox{display:flex;padding:0;border:1px solid #fff}.igd-body .file-list .file-item:hover{transform:scale(1.03)}.igd-body .file-list .file-item:hover .file-item-footer .file-icon-wrap:has(.file-item-checkbox) .file-icon,.igd-body .file-list .file-item:hover .file-item-footer .file-icon-wrap:has(.file-item-checkbox) .shortcut-icon{display:none}.igd-body .file-list .file-item:hover .file-item-footer .file-icon-wrap .file-item-checkbox{display:flex}.igd-body .file-list .file-item:hover .file-item-date{color:#fff}.igd-body .file-list .file-item.folder-item{height:50px;justify-content:center;position:relative;order:1}.igd-body .file-list .file-item.folder-item .file-item-footer{border-top:0;height:100%}.igd-body .file-list .file-item:not(.folder-item){order:3}@media (max-width:768px){.igd-body .file-list .file-item .file-item-footer .file-icon-wrap{margin-left:5px}.igd-body .file-list .file-item .file-item-footer .file-icon-wrap:has(.file-item-checkbox) .file-icon,.igd-body .file-list .file-item .file-item-footer .file-icon-wrap:has(.file-item-checkbox) .shortcut-icon{display:none}.igd-body .file-list .file-item .file-item-footer .file-icon-wrap .file-item-checkbox{display:flex}}.igd-body .file-list .folder-file-divider{width:100%;order:2}.igd-body .file-list.list-view{flex-flow:column;align-items:center}.igd-body .file-list.list-view .go-prev{padding:12px 10px!important}.igd-body .file-list.list-view .list-view-header{display:flex;align-items:center;width:100%;font-size:1rem;position:sticky;top:0;margin-top:10px;margin-bottom:15px;z-index:1;line-height:1}.igd-body .file-list.list-view .list-view-header .col-name{width:50%;padding-right:50px}.igd-body .file-list.list-view .list-view-header .col-size{width:20%;text-align:center}.igd-body .file-list.list-view .list-view-header .col-modified{width:25%;text-align:center}.igd-body .file-list.list-view .list-view-header:not(:has(.col-modified)) .col-name,.igd-body .file-list.list-view .list-view-header:not(:has(.col-size)) .col-name{width:70%}.igd-body .file-list.list-view .list-view-header:not(:has(.col-size)):not(:has(.col-modified)) .col-name{width:90%}.igd-body .file-list.list-view .file-item{width:100%!important;overflow:visible;margin:0;border-radius:0;padding:5px 10px;font-size:.875rem;flex-direction:row;align-items:center;justify-content:space-between;border:1px solid transparent;border-bottom-color:#eee;box-shadow:none;aspect-ratio:auto;background:#fff}.igd-body .file-list.list-view .file-item .file-item-date{width:20%;font-size:.75rem;font-weight:400;margin:0 5px;color:#999;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:right}.igd-body .file-list.list-view .file-item.active{transform:none;background:var(--color-primary-lighter-alt);color:#fff}.igd-body .file-list.list-view .file-item.active .file-item-date{color:inherit}.igd-body .file-list.list-view .file-item:hover{transform:none;background:var(--color-primary-lighter-alt);color:#fff}.igd-body .file-list.list-view .file-item:hover .file-item-footer .file-item-options{color:inherit}.igd-body .file-list.list-view .file-item:hover .file-item-size{color:inherit}.igd-body .file-list.list-view .file-item:hover .file-item-date{color:inherit}.igd-body .file-list.list-view .file-item.folder-item{height:45px}.igd-body .file-list.list-view .file-item .file-item-footer{border:0;width:70%;background:100% 0;height:33px}.igd-body .file-list.list-view .file-item .file-item-footer .file-item-name{width:70%}.igd-body .file-list.list-view .file-item .file-item-footer .file-item-size{width:30%;text-align:center}.igd-body .file-list.list-view .file-item .file-item-footer .file-item-options{position:absolute;left:0}.igd-body .file-list.list-view .file-item .file-item-footer .file-icon-wrap{margin-right:0}.igd-body .file-list.list-view .file-item .file-item-footer:not(:has(.file-item-size)) .file-item-name{width:100%}.igd-body .file-list.list-view .file-item:not(:has(.file-item-date)) .file-item-footer{width:90%}.igd-body .file-list.list-view .file-item:last-child{border-bottom:0}.igd-body .file-list.list-view .root-item{padding:15px 10px;font-size:1rem;justify-content:flex-start}@media (max-width:767px){.igd-body .file-list.list-view .list-view-header .col-name{width:65%}.igd-body .file-list.list-view .list-view-header .col-modified{display:none}.igd-body .file-list.list-view .file-item .file-item-footer{width:90%}.igd-body .file-list.list-view .file-item .file-item-date{display:none}}.igd-body .file-list.empty .list-view-header{display:none}.igd-body .file-list.empty+.igd-file-uploader{margin:10px 7px}.igd-body .file-list.igd-item-col-1 .file-item{width:100%}.igd-body .file-list.igd-item-col-1:not(.list-view) .file-item{margin:4px}.igd-body .file-list.igd-item-col-2 .file-item{width:calc(50% - 14px)}.igd-body .file-list.igd-item-col-3 .file-item{width:calc(33.33% - 14px)}.igd-body .file-list.igd-item-col-3 .file-item .file-item-footer .file-item-size{display:none}.igd-body .file-list.igd-item-col-4 .file-item{width:calc(25% - 14px)}.igd-body .file-list.igd-item-col-5 .file-item{width:calc(20% - 14px)}.igd-body .file-list.igd-item-col-6 .file-item{width:calc(16.66% - 14px)}.igd-body .file-list.igd-item-col-7 .file-item{width:calc(14.28% - 14px)}.igd-body .file-list.igd-item-col-8 .file-item{width:calc(12.5% - 14px)}.igd-body .search-result-info{font-size:1rem;margin:10px 5px 15px 0;display:flex;align-items:center}.igd-body .search-result-info .clear-button{margin-right:10px}.igd-body .loading-wrap{display:flex;justify-content:center;height:100%;width:100%;position:absolute;top:0;right:0;z-index:1}.igd-body .loading-wrap img{width:150px;height:150px;margin-top:2rem}.igd-body.loading{min-height:15rem}.igd-body.loading:not(.lazy-loading) .file-list,.igd-body.loading:not(.lazy-loading) .igd-gallery-images{opacity:.3}.igd-body.loading:not(.lazy-loading) .file-list .file-item,.igd-body.loading:not(.lazy-loading) .igd-gallery-images .file-item{transform:none;transition:none}.igd-body.lazy-loading .loading-wrap{position:unset}.igd-body.lazy-loading .loading-wrap img{margin-top:-1rem}.igd-details{display:flex;flex-flow:column;padding:20px 15px}.igd-details-wrap{width:250px;position:sticky;border-right:1px solid #e5e5e5;background:#fff}.igd-details .close-details{align-self:flex-end;cursor:pointer;font-size:1.25rem;opacity:.5;margin:-5px 0 5px 0}.igd-details .close-details:hover{opacity:1}.igd-details .details-item{display:flex;align-items:center;margin-bottom:15px;flex-wrap:wrap}.igd-details .details-item img{width:20px;height:20px;margin-left:10px}.igd-details .details-item-label{font-size:.875rem;font-weight:500;color:#444;width:80px;display:flex;align-items:center;justify-content:space-between}.igd-details .details-item-label:after{content:":";margin-left:10px}.igd-details .details-item.name{font-weight:500;font-size:1rem;margin-bottom:20px;word-break:break-all;flex-wrap:nowrap}.igd-details .details-item-value{font-size:.875rem;color:#555;word-break:break-all;max-width:100%}.igd-details .details-item.field-location{flex-direction:column;align-items:flex-start}.igd-details .details-item.field-location .details-item-value{margin-top:7px}.igd-details .details-item.field-location .location-wrap{display:flex;align-items:center;border:1px solid #ddd;border-radius:5px;padding:5px;cursor:pointer}.igd-details .details-item.field-location .location-wrap img{margin-left:5px}.igd-details .details-item.field-location .location-wrap span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-details .details-item.field-location .location-wrap:hover{background:#f5f5f5}.igd-details .details-item.field-description{display:flex;align-items:flex-start;flex-wrap:wrap;justify-content:space-between}.igd-details .details-item.field-description .details-item-label{margin-bottom:5px}.igd-details .details-item.field-description .description-placeholder,.igd-details .details-item.field-description .details-item-value{width:100%;color:#555}.igd-details .details-item.field-description .dashicons{cursor:pointer;padding:0 5px;box-sizing:content-box;margin-top:5px}.igd-details .details-item.field-description form,.igd-details .details-item.field-description textarea{width:100%}.igd-details .details-placeholder{font-size:1rem}@media (max-width:767px){.igd-details{max-width:80%;height:100%;margin-right:auto;background:#fff}.igd-details-wrap{width:100%;max-width:100%;position:absolute;z-index:2;background:rgba(0,0,0,.5);height:100%}}.igd-context-menu{z-index:99999999;background-color:#fff;border-radius:4px;list-style:none;font-size:14px;font-family:sans-serif;font-weight:400;line-height:1.5;color:#333;cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;box-shadow:0 0 10px rgba(0,0,0,.2)}.igd-context-menu,.igd-context-menu *{box-sizing:border-box}.igd-context-menu .context-menu-item{display:flex;align-items:center;padding:10px 15px;cursor:pointer;transition:background-color .2s ease;width:100%;position:relative}.igd-context-menu .context-menu-item.details,.igd-context-menu .context-menu-item.import{border-bottom:1px solid #eee}.igd-context-menu .context-menu-item.delete,.igd-context-menu .context-menu-item.download{border-top:1px solid #eee}.igd-context-menu .context-menu-item.disabled{color:#ccc}.igd-context-menu .context-menu-item.upload{border-bottom:1px solid #ddd}.igd-context-menu .context-menu-item.delete{border-bottom:1px solid #ddd}.igd-context-menu .context-menu-item.view{border-top:1px solid #ddd}.igd-context-menu .context-menu-item i{margin-left:10px}.igd-context-menu .context-menu-item:hover{background-color:#f5f5f5}.igd-context-menu .context-menu-item:hover .pro-badge{transform:scale(1.1)}.igd-context-menu .context-menu-item .pro-badge{position:absolute;left:0;background:#fdb837;color:#fff;padding:5px;border-radius:4px;font-size:11px;font-weight:400;display:flex;align-items:center;justify-content:center;line-height:1;box-shadow:0 0 5px rgba(0,0,0,.1);transition:transform .2s ease}.igd-context-menu .context-menu-item .pro-badge i{margin-left:2px;height:auto;width:auto;font-size:15px}.share-modal *{box-sizing:border-box}.share-modal .swal2-close:focus{outline:0;background:100% 0;color:#f08080;box-shadow:none}.share-modal .share-link{margin-bottom:1rem}.share-modal .share-link input,.share-modal .share-link textarea{width:-webkit-fill-available;border:1px solid #ddd;border-radius:4px;padding:0 10px;font-size:14px;font-family:sans-serif;font-weight:400;line-height:1.5;color:#333;cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;text-align:center;word-break:break-all}.share-modal .share-link input{height:40px}.share-modal .share-link textarea{height:100px}.share-modal.embed .embed-code{display:flex}.share-modal.embed .share-links{display:none}.share-modal .share-links{display:flex;justify-content:center;flex-wrap:wrap}.share-modal .share-links .share-item{display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;color:#333;text-decoration:none;margin:0 0 10px 10px}.share-modal .share-links .share-item i{font-size:22px;width:auto;height:auto;border:1px solid #ccc;border-radius:50%;padding:10px;margin:10px}.share-modal .share-links .share-item span{font-size:.875rem}.share-modal .share-links .share-item.link i{background:#fff;border:1px solid #ccc;color:#333}.share-modal .share-links .share-item.link span{color:#333}.share-modal .share-links .share-item.link:hover i{background:#e6e6e6}.share-modal .share-links .share-item.embed i{background:#333;border:1px solid #333;color:#fff}.share-modal .share-links .share-item.embed:hover i{background:#1a1a1a}.share-modal .share-links .share-item.facebook i{background-color:#3b5998;color:#fff}.share-modal .share-links .share-item.facebook span{color:#3b5998}.share-modal .share-links .share-item.facebook:hover i{background-color:#4c70ba}.share-modal .share-links .share-item.twitter i{background-color:#1da1f2;color:#fff}.share-modal .share-links .share-item.twitter span{color:#1da1f2}.share-modal .share-links .share-item.twitter:hover i{background-color:#4db5f5}.share-modal .share-links .share-item.whatsapp i{background-color:#25d366;color:#fff}.share-modal .share-links .share-item.whatsapp span{color:#25d366}.share-modal .share-links .share-item.whatsapp:hover i{background-color:#4be083}.share-modal .share-links .share-item.email i{background-color:#dd4f42;color:#fff}.share-modal .share-links .share-item.email span{color:#dd4f42}.share-modal .share-links .share-item.email:hover i{background-color:#e5776d}.move-folders{display:flex;flex-direction:column;align-items:flex-start;max-height:300px;overflow-y:auto;border:1px solid #ddd;border-radius:4px;padding:10px}.move-folders-wrap button{margin:20px auto 0;padding:10px 20px}.move-folders-wrap button .igd-spinner{margin-left:10px}.move-folders,.move-folders *{box-sizing:border-box}.move-folders::-webkit-scrollbar{width:5px}.move-folders::-webkit-scrollbar-track{background:#f1f1f1}.move-folders::-webkit-scrollbar-thumb{background:#999;border-radius:5px}.move-folders .move-folder{display:flex;align-items:center;justify-content:flex-start;text-align:right;width:100%;cursor:pointer;padding:7px 0;border-radius:3px}.move-folders .move-folder>.igd-spinner{margin-right:10px}.move-folders .move-folder-wrap{width:100%;padding-right:20px;text-align:right}.move-folders .move-folder-wrap.empty{margin:10px 0;padding-right:30px;display:flex;align-items:center;color:#c73e1d;font-size:.875rem}.move-folders .move-folder-wrap.empty i{margin-left:5px}.move-folders .move-folder i{margin-left:10px}.move-folders .move-folder img{width:22px;height:22px;margin-left:10px}.move-folders .move-folder .file-item-checkbox .box{border-color:#999}.move-folders .move-folder span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.move-folders .move-folder:hover{background-color:#f5f5f5}.move-folders .move-folder:hover:has(.file-item-checkbox) img{display:none}.move-folders .move-folder:hover:has(.file-item-checkbox) .file-item-checkbox{display:flex;padding:0;border:1px solid #fff;margin-left:10px}.move-folders .move-folder.active{background-color:var(--color-primary-lighter)}.move-folders .move-folder.active img{display:none}.move-folders .move-folder.active .file-item-checkbox{display:flex;padding:0;border:1px solid #fff;margin-left:10px}.igd-download-popup{z-index:999999!important}.igd-download-wrap #igd-download-status{font-size:1.3rem;font-weight:600;margin:15px auto 5px}.igd-download-wrap #igd-hidden-download{display:none}.igd-copy-swal,.igd-move-swal{z-index:99999}.react-contexify{position:fixed;opacity:0;-webkit-user-select:none;-moz-user-select:none;user-select:none;background-color:#fff;box-sizing:border-box;box-shadow:0 10px 30px -5px rgba(0,0,0,.3);border-radius:6px;min-width:200px}.context-submenu{width:100%}.react-contexify__submenu--is-open,.react-contexify__submenu--is-open>.react-contexify__item__content{color:#fff;background-color:#4393e6}.react-contexify__submenu--is-open>.react-contexify__submenu{pointer-events:initial;opacity:1}.react-contexify .react-contexify__submenu{position:absolute;top:-6px;pointer-events:none;transition:opacity 275ms}.react-contexify__submenu-arrow{margin-right:auto;font-size:12px}.react-contexify__submenu-arrow i{margin-left:0!important}.react-contexify__separator{width:100%;height:1px;cursor:default;margin:4px 0;background-color:rgba(0,0,0,.2)}.react-contexify__will-leave--disabled{pointer-events:none}.react-contexify__item{cursor:pointer;position:relative}.react-contexify__item:focus{outline:0}.react-contexify__item:not(.react-contexify__item--disabled):hover>.react-contexify__submenu{pointer-events:initial;opacity:1}.react-contexify__item--disabled{cursor:default;opacity:.5}.react-contexify__item__content{display:flex;align-items:center;white-space:nowrap;color:#333;position:relative;width:100%}.react-contexify__theme--dark{background-color:rgba(40,40,40,.98)}.react-contexify__theme--dark .react-contexify__submenu{background-color:rgba(40,40,40,.98)}.react-contexify__theme--dark .react-contexify__separator{background-color:#eee}.react-contexify__theme--dark .react-contexify__item__content{color:#fff}.react-contexify__theme--light .react-contexify__separator{background-color:#eee}.react-contexify__theme--light .react-contexify__submenu--is-open,.react-contexify__theme--light .react-contexify__submenu--is-open>.react-contexify__item__content{color:#4393e6;background-color:#e0eefd}.react-contexify__theme--light .react-contexify__item:not(.react-contexify__item--disabled):focus>.react-contexify__item__content,.react-contexify__theme--light .react-contexify__item:not(.react-contexify__item--disabled):hover>.react-contexify__item__content{color:#4393e6;background-color:#e0eefd}.react-contexify__theme--light .react-contexify__item__content{color:#666}@keyframes react-contexify__scaleIn{from{opacity:0;transform:scale3d(.3,.3,.3)}to{opacity:1}}@keyframes react-contexify__scaleOut{from{opacity:1}to{opacity:0;transform:scale3d(.3,.3,.3)}}.react-contexify__will-enter--scale{transform-origin:top right;animation:react-contexify__scaleIn .3s}.react-contexify__will-leave--scale{transform-origin:top right;animation:react-contexify__scaleOut .3s}@keyframes react-contexify__fadeIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes react-contexify__fadeOut{from{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(10px)}}.react-contexify__will-enter--fade{animation:react-contexify__fadeIn .3s ease}.react-contexify__will-leave--fade{animation:react-contexify__fadeOut .3s ease}@keyframes react-contexify__flipInX{from{transform:perspective(800px) rotate3d(-1,0,0,-45deg)}to{transform:perspective(800px)}}@keyframes react-contexify__flipOutX{from{transform:perspective(800px)}to{transform:perspective(800px) rotate3d(-1,0,0,-45deg);opacity:0}}.react-contexify__will-enter--flip{backface-visibility:visible!important;transform-origin:top center;animation:react-contexify__flipInX .3s}.react-contexify__will-leave--flip{transform-origin:top center;animation:react-contexify__flipOutX .3s;backface-visibility:visible!important}@keyframes swing-in-top-fwd{0%{transform:rotateX(-100deg);transform-origin:top;opacity:0}100%{transform:rotateX(0);transform-origin:top;opacity:1}}@keyframes react-contexify__slideIn{from{opacity:0;transform:scale3d(1,.3,1)}to{opacity:1}}@keyframes react-contexify__slideOut{from{opacity:1}to{opacity:0;transform:scale3d(1,.3,1)}}.react-contexify__will-enter--slide{transform-origin:top center;animation:react-contexify__slideIn .3s}.react-contexify__will-leave--slide{transform-origin:top center;animation:react-contexify__slideOut .3s}.igd-shortcode-gallery .igd-file-browser-header .photo-proofing-btn .selection-count{margin-right:3px}.igd-module-gallery{overflow:hidden}.igd-module-gallery .item-selection{position:absolute;z-index:9;top:5px;right:5px;cursor:pointer;display:none}.igd-module-gallery .item-selection circle{display:none}.igd-module-gallery .item-selection:hover svg{fill:#fff}.igd-module-gallery .file-list{overflow:hidden}.igd-module-gallery .file-list .file-item{position:relative;border-radius:0}.igd-module-gallery .file-list .file-item .igd-gallery-folder-images{transition:all .3s ease-in-out}.igd-module-gallery .file-list .file-item:hover{transform:none}.igd-module-gallery .file-list .file-item:hover .item-selection{display:block}.igd-module-gallery .file-list .file-item:hover .igd-gallery-folder-images{transition:all .3s ease-in-out;transform:scale(1.07);box-shadow:0 0 0 1px #ddd}.igd-module-gallery .file-list .file-item.active{transform:none}.igd-module-gallery .file-list .file-item.active .item-selection{display:block}.igd-module-gallery .file-list .file-item.active .item-selection svg{fill:#4285f4}.igd-module-gallery .file-list .file-item.active .igd-gallery-folder-images{transition:all .3s ease-in-out;transform:scale(1.07);box-shadow:0 0 0 1px #ddd}.igd-module-gallery .file-list .file-item .file-item-footer{font-size:1rem}.igd-module-gallery .file-list .file-item:not(.folder-item){max-width:100%}.igd-module-gallery .file-list .file-item:not(.folder-item) .file-item-footer{background:rgba(0,0,0,.5)!important;color:#fff!important;padding:15px 10px!important;position:absolute;bottom:0;right:0;width:100%;justify-content:center;border:none!important}.igd-module-gallery .file-list .file-item:not(.folder-item) .file-item-footer i{margin-left:5px}.igd-module-gallery .file-list .file-item:not(.folder-item) .file-item-footer img{background:rgba(255,255,255,.9);padding:0 2px;border-radius:3px;box-sizing:content-box}.igd-module-gallery .file-list .file-item:not(.folder-item) .file-item-footer span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-module-gallery .file-list .file-item:last-child{margin-left:auto!important}.igd-module-gallery .igd-gallery-folder-images{position:relative;width:100%;height:100%;overflow:hidden;display:flex;align-items:center;justify-content:center}.igd-module-gallery .igd-gallery-folder-images img{position:absolute;-webkit-user-drag:none;opacity:0;pointer-events:none;animation-name:image-fade-out;animation-duration:1.5s}.igd-module-gallery .igd-gallery-folder-images img.active{animation-name:image-fade;animation-duration:1.5s;opacity:1}.igd-module-gallery .igd-gallery-folder-images img:not([src*=drive-thirdparty]){width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.igd-module-gallery .igd-gallery-folder-images i{height:auto;width:auto;font-size:3.5rem;color:#555}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item{overflow:hidden;position:relative;cursor:pointer}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item img{transition:all .3s ease-in-out;-o-object-fit:cover;object-fit:cover;width:100%;height:100%}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item-overlay{position:absolute;top:0;right:0;width:100%;height:100%;background:rgba(0,0,0,.5);transition:all .3s ease-in-out;color:#fff;display:flex;align-items:center;justify-content:center;flex-direction:column;opacity:0;pointer-events:none;text-align:center;padding:15px}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item-overlay .overlay-title{font-weight:600;margin-bottom:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item-overlay .overlay-size{font-size:13px}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item:hover .item-selection{display:block}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item:hover .igd-gallery-item-overlay{opacity:1;pointer-events:all}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item:hover img{box-shadow:0 0 0 1px #ddd;transition:all .3s ease-in-out;transform:scale(1.07)}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item.active .item-selection{display:block}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item.active .item-selection svg{fill:#4285f4}.igd-module-gallery.gallery-view-rounded .file-list .file-item{border-radius:5px}.igd-module-gallery.gallery-view-rounded .react-photo-gallery--gallery .igd-gallery-item{border-radius:7px}.igd-module-gallery.gallery-layout-grid .file-list .file-item{width:var(--column-width)}.igd-module-gallery.gallery-layout-grid .file-list .file-item:not(.folder-item){aspect-ratio:var(--aspect-ratio)}.igd-module-gallery.gallery-layout-grid .react-photo-gallery--gallery .igd-gallery-item{width:var(--column-width);aspect-ratio:var(--aspect-ratio)}.igd-module-gallery.gallery-layout-masonry .file-list .file-item{width:var(--column-width)}.igd-module-gallery.gallery-layout-masonry .file-list .file-item:not(.folder-item){aspect-ratio:var(--aspect-ratio)}@keyframes image-fade{from{opacity:.4}to{opacity:1}}@keyframes image-fade-out{from{opacity:1}to{opacity:0}}.igd-module-uploader,.igd-module-uploader *{box-sizing:border-box}.igd-module-uploader .dashicons-cloud-upload{width:auto;height:auto}.igd-module-uploader.igd-form-uploader{margin-top:1rem!important}.igd-module-uploader .upload-confirmation{display:none!important;margin:20px 0;text-align:center;flex-direction:column;align-items:center}.igd-module-uploader .upload-confirmation h3{color:var(--color-primary)}.igd-module-uploader.show-confirmation{border-style:solid!important}.igd-module-uploader.show-confirmation .upload-confirmation{display:flex!important}.igd-module-uploader.show-confirmation .igd-file-uploader-inner{display:none!important}.igd-file-uploader{display:flex;align-items:center;justify-content:center;flex-direction:column;border-radius:10px!important;border:1px dashed var(--color-primary-light)!important;padding:3px!important;max-width:500px;width:100%!important;background:#fff!important}.igd-file-uploader *{box-sizing:border-box}.igd-file-uploader:not(.igd-form-uploader){margin:auto}.igd-file-uploader.drag-active{border-color:var(--color-primary);border-width:2px;background-color:#bfdbfe;box-shadow:rgba(149,157,165,.2) 0 8px 24px}.igd-file-uploader.drag-active *{pointer-events:none}.igd-file-uploader-body{display:flex;align-items:center;flex-direction:column;width:100%!important;-webkit-user-select:none;-moz-user-select:none;user-select:none}.igd-file-uploader-body h3{font-size:1.2rem;font-weight:600;margin-bottom:10px!important}.igd-file-uploader-body .max-size-label{font-size:.875rem;margin-top:1rem;color:#999}.igd-file-uploader .igd-file-uploader-inner{display:flex!important;align-items:center!important;flex-direction:column!important;border-radius:7px!important;padding:1rem!important;background-color:var(--color-primary-lighter)!important;justify-content:center;width:100%!important;border:1px dashed #ddd!important}.igd-file-uploader .igd-file-uploader-inner p{font-weight:400;margin:5px 0!important;color:#555;line-height:1}.igd-file-uploader .igd-file-uploader-inner .dashicons-cloud-upload{font-size:4rem;height:auto;width:auto;margin-bottom:1rem;line-height:1;color:#555}.igd-file-uploader .igd-file-uploader-inner .igd-file-uploader-buttons{display:flex}.igd-file-uploader .igd-file-uploader-inner .igd-file-uploader-buttons button{display:flex;align-items:center;white-space:nowrap;cursor:pointer;border-radius:.25rem;border:none;padding:.375rem .5rem;margin:.5rem;background-color:var(--color-primary);box-shadow:rgba(149,157,165,.2) 0 8px 24px;color:#fff;transition:all .2s ease-in-out;font-weight:400}.igd-file-uploader .igd-file-uploader-inner .igd-file-uploader-buttons button span{margin-right:5px}.igd-file-uploader .igd-file-uploader-inner .igd-file-uploader-buttons button:hover{background-color:var(--color-primary-light-alt)}.igd-file-uploader .igd-file-uploader-inner .upload-info{display:flex;align-items:center;line-height:1}.igd-file-uploader .igd-file-uploader-inner .upload-info span{margin-left:5px}.igd-file-uploader .igd-file-uploader-inner .upload-info span:after{content:"|";margin-right:5px;color:#000}.igd-file-uploader .igd-file-uploader-inner .upload-info span:last-child{margin-left:0}.igd-file-uploader .igd-file-uploader-inner .upload-info span:last-child:after{content:"";margin-right:0}.igd-file-uploader .igd-file-uploader-inner .igd-file-uploader-add-more{margin-top:15px}.igd-file-uploader.required-error{border-color:red}.igd-file-uploader .file-list-wrapper{display:flex;flex-direction:column;z-index:50;margin-top:5px!important;width:100%!important;max-height:400px;max-width:100%;overflow:hidden!important;background-color:#fff!important;box-shadow:rgba(149,157,165,.2) 0 8px 24px!important;bottom:1rem;left:1rem}.igd-file-uploader .file-list-wrapper.fixed{position:fixed}.igd-file-uploader .file-list-wrapper .start-upload{margin:10px auto}@media (max-width:991px){.igd-file-uploader .file-list-wrapper{max-width:300px;max-height:300px;left:0}}.igd-file-uploader .file-list{display:flex;flex-flow:column;flex-wrap:nowrap!important;overflow-y:auto!important}.igd-file-uploader .file-list-header{display:flex;align-items:center;padding:10px 15px!important;background-color:var(--color-primary)!important;color:#fff;line-height:1;border-radius:5px;margin-bottom:5px}.igd-file-uploader .file-list-header .file-count{margin-left:5px}.igd-file-uploader .file-list-header i{cursor:pointer;height:26px!important;width:26px!important;border:1px solid!important;border-radius:50%!important;font-size:22px!important;display:flex;align-items:center;justify-content:center}.igd-file-uploader .file-list-item{display:flex;align-items:center;padding:8px 12px!important;border-bottom:1px solid #eaeaea!important;width:100%!important;opacity:.5}.igd-file-uploader .file-list-item img{width:22px!important;height:22px!important;margin-left:5px!important}.igd-file-uploader .file-list-item .file-info{display:flex;flex-wrap:wrap;overflow:hidden;width:100%;line-height:1}.igd-file-uploader .file-list-item .file-info .upload-item{display:flex;align-items:center;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;flex:1}.igd-file-uploader .file-list-item .file-info .upload-item-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;margin-left:4px}.igd-file-uploader .file-list-item .file-info .upload-item-size{font-size:.75rem;color:#999}.igd-file-uploader .file-list-item .file-info-percentage{margin-right:auto;text-align:left;font-size:.875rem;display:flex;align-items:center;width:-moz-max-content;width:max-content}.igd-file-uploader .file-list-item .file-info-percentage .igd-spinner{margin-top:0;margin-left:5px;border-radius:50%}.igd-file-uploader .file-list-item .file-info-progress{width:100%;height:4px;background-color:#ddd;border-radius:.25rem;margin-top:7px;overflow:hidden;position:relative;align-items:center;justify-content:space-between;display:none}.igd-file-uploader .file-list-item .file-info-progress-bar{width:var(--percentage);height:100%;background-color:var(--color-primary-light-alt);border-radius:.25rem;position:absolute;right:0;top:0;transition:width .5s ease-in-out}.igd-file-uploader .file-list-item .file-info-error{color:red;width:100%;font-size:.75rem;margin-top:3px}.igd-file-uploader .file-list-item .file-info .igd-spinner{width:20px;margin-right:7px}.igd-file-uploader .file-list-item .file-info .percentage{margin:0 7px}.igd-file-uploader .file-list-item .file-info i{margin-right:7px;height:22px!important;width:22px!important;font-size:16px;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer}.igd-file-uploader .file-list-item .file-info i:not(.dashicons-saved,.dashicons-no-alt){border:1px solid #ddd}.igd-file-uploader .file-list-item .file-info .dashicons-controls-play{padding-right:3px}.igd-file-uploader .file-list-item .file-info .remove-file{background:#ff9f10;color:#fff;margin-right:10px}.igd-file-uploader .file-list-item:hover{background-color:#e0f2fe}.igd-file-uploader .file-list-item.uploaded{opacity:1}.igd-file-uploader .file-list-item.uploaded .file-info .dashicons-saved{background:var(--color-primary);color:#fff}.igd-file-uploader .file-list-item.uploaded .file-info .remove-file{background:100% 0;color:#ff9f10;border:1px solid #ff9f10;opacity:.6}.igd-file-uploader .file-list-item.uploaded .file-info .remove-file:hover{background:#ff9f10;color:#fff;opacity:1}.igd-file-uploader .file-list-item.uploaded .file-info-progress{display:flex}.igd-file-uploader .file-list-item.uploaded .file-info-progress-bar{width:100%}.igd-file-uploader .file-list-item.active{opacity:.8}.igd-file-uploader .file-list-item.active .file-info-progress{display:flex}.igd-file-uploader .file-list::-webkit-scrollbar{width:5px}.igd-file-uploader .file-list::-webkit-scrollbar-track{background:#f1f1f1}.igd-file-uploader .file-list::-webkit-scrollbar-thumb{background:#ccc}.igd-file-uploader .file-list::-webkit-scrollbar-thumb:hover{background:#bbb}.igd-file-uploader .cancel-upload{position:absolute;top:15px;left:15px;cursor:pointer;border-radius:5px;height:40px;width:40px;font-size:25px;display:flex;align-items:center;justify-content:center;color:rgba(255,0,0,.3)}.igd-file-uploader .cancel-upload:hover{color:rgba(255,0,0,.5)}.igd-file-browser .igd-file-uploader{position:fixed!important;left:15px;bottom:15px;z-index:2;box-shadow:0 0 10px rgba(0,0,0,.2)}.igd-file-browser .igd-file-uploader:has(.file-list-wrapper) .igd-file-uploader-inner .dashicons-cloud-upload{display:none}@media (max-width:767px){.igd-file-browser .igd-file-uploader{position:absolute!important;height:100%;left:unset;bottom:unset;width:calc(100% - 20px)!important;justify-content:flex-start;background:rgba(0,0,0,.5)!important}.igd-file-browser .igd-file-uploader .igd-file-uploader-inner{background:linear-gradient(var(--color-primary-lighter),var(--color-primary-lighter)),#fff!important}}.ff-el-is-error .igd-file-uploader,.frm_blank_field .igd-file-uploader,.gfield_error .igd-file-uploader,.mf-input-wrapper.has-error .igd-file-uploader,.nf-error .igd-file-uploader,.wpforms-has-error .igd-file-uploader{border-color:red!important}@keyframes ssc-loading{from{transform:translateX(100%)}to{transform:translateX(-100%)}}.ssc-circle,.ssc-head-line,.ssc-line,.ssc-square{position:relative;overflow:hidden}.ssc-circle:after,.ssc-head-line:after,.ssc-line:after,.ssc-square:after{content:"";animation:ssc-loading 1.3s infinite;height:100%;right:0;position:absolute;left:0;top:0;transform:translateX(100%);z-index:1;background:linear-gradient(-90deg,transparent,rgba(255,255,255,.3),transparent)}.ssc{cursor:progress;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ssc-card{display:block;width:100%;border-radius:5px;box-shadow:0 2px 4px 1px rgba(0,0,0,.17);background-color:#fff;margin-bottom:15px}.ssc-circle{display:block;background-color:rgba(0,0,0,.17);border-radius:50%;width:30px;height:30px}.ssc-hr{display:block;width:100%;background-color:rgba(0,0,0,.17);height:2px}.ssc-line{display:block;background-color:rgba(0,0,0,.17);border-radius:15px;height:12px}.ssc-line:last-child{margin-bottom:unset}.ssc-head-line{display:block;background-color:rgba(0,0,0,.17);border-radius:15px;width:100%;height:24px}.ssc-square{display:block;background-color:rgba(0,0,0,.17);width:100%;height:100px;border-radius:5px}.flex{display:flex}.flex-1{flex:1}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-between{justify-content:space-between}.w-full{width:100%}.mb-3{margin-bottom:.875rem}.mr-2{margin-left:.5rem}.w-16{width:4rem}.w-6{width:1.5rem}.h-6{height:1.5rem}.p-4{padding:1rem}body.google-drive_page_integrate-google-drive-private-folders.swal2-shown{overflow:auto!important;padding-left:0!important}.igd-private-folders,.igd-private-folders *{box-sizing:border-box}.igd-private-folders-header{display:flex;width:calc(100% + 20px);margin-right:-20px;background:#fff;padding:20px 20px;position:sticky;top:32px;border-bottom:1px solid #ddd;box-shadow:0 1px 5px rgba(0,0,0,.1);z-index:99;margin-bottom:30px}.igd-private-folders-header .header-title{display:flex;align-items:center;line-height:1;margin-left:auto}.igd-private-folders-header .header-title img{margin-left:15px}.igd-private-folders-header .header-title-text{display:flex;flex-direction:column}.igd-private-folders-header .header-title-text h3{font-size:1.2rem;margin:0 0 5px 0}.igd-private-folders-header .header-title-text span{margin-top:2px;color:#7a7a7a}.igd-private-folders-header .igd-btn{margin-right:10px}@media (max-width:767px){.igd-private-folders-header{position:relative;top:0}}.igd-private-folders .private-folders-list{background:#fff;padding:20px;border-radius:10px;margin:10px 0 30px 15px;position:relative;min-height:70vh}.igd-private-folders .private-folders-list-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.igd-private-folders .private-folders-list-header ul{display:flex;align-items:center}.igd-private-folders .private-folders-list-header ul li{margin-left:5px;margin-bottom:0;cursor:pointer;color:#2fb44b;font-weight:600;font-size:.875rem}.igd-private-folders .private-folders-list-header ul li:not(:last-child):after{content:"|";margin:0 5px;color:#555}.igd-private-folders .private-folders-list-header ul li span{text-transform:capitalize}.igd-private-folders .private-folders-list-header ul li.active{color:#555c66}.igd-private-folders .private-folders-list-header ul li:hover{color:#248c3a}.igd-private-folders .private-folders-list-header .users-search{display:flex;align-items:center}.igd-private-folders .private-folders-list-header .users-search input{height:40px;border:1px solid rgba(47,180,75,.5)}.igd-private-folders .private-folders-list-header .users-search button{margin-right:10px}.igd-private-folders .private-folders-list .swal2-container{position:absolute;width:100%;height:100%;z-index:9}.igd-private-folders .private-folders-list .column-username span{margin-right:10px}.igd-private-folders .private-folders-list .column-actions button{display:inline-flex;align-items:center;padding:7px 10px;line-height:1}.igd-private-folders .private-folders-list .column-actions button i{margin-left:5px}.igd-private-folders .private-folders-list .column-folders .folder-item{display:inline-flex;align-items:center;border:1px solid rgba(47,180,75,.5);width:-moz-max-content;width:max-content;padding:5px;margin:3px;border-radius:5px;color:#7a7a7a}.igd-private-folders .private-folders-list .column-folders .folder-item img{margin-left:5px}.igd-private-folders .private-folders-list .private-folders-table{border-radius:10px;overflow:hidden;border-color:#efefef}.igd-private-folders .private-folders-list .private-folders-table thead th{padding:15px;border-color:#efefef}.igd-private-folders .private-folders-list .private-folders-table tbody tr td{padding:10px;vertical-align:middle}@media (max-width:767px){.igd-private-folders .private-folders-list{margin-right:10px}.igd-private-folders .private-folders-list-header{flex-direction:column}.igd-private-folders .private-folders-list .private-folders-table-wrap{overflow-x:auto}}.igd-private-folders .igd-pro-modal-wrap{position:absolute;z-index:9;border-radius:5px}.igd-private-folders .igd-pro-modal-close{display:none}.igd-details .details-file-name{width:calc(100% - 20px)}.igd-player{line-height:1.5;display:flex;align-items:flex-start;flex-direction:column;height:100%;background-color:#fff}.igd-player.playlist-left,.igd-player.playlist-right{padding:10px}.igd-player.playlist-left .media-wrap,.igd-player.playlist-right .media-wrap{flex-direction:column;align-items:flex-start;border:none}.igd-player.playlist-left .media-wrap .igd-player-media-wrap,.igd-player.playlist-right .media-wrap .igd-player-media-wrap{margin-top:10px;margin-right:0}.igd-player.playlist-left .igd-player-playlist .playlist-item-wrap,.igd-player.playlist-right .igd-player-playlist .playlist-item-wrap{padding:5px 0}.igd-player.playlist-left.type-audio .media-wrap,.igd-player.playlist-right.type-audio .media-wrap{border:1px solid #eee}.igd-player.playlist-left{flex-wrap:wrap;flex-direction:row;-moz-column-gap:10px;column-gap:10px}.igd-player.playlist-left .igd-player-playlist{width:calc(40% - 10px);order:1;margin:0;padding-left:10px;border-left:1px solid #eee}.igd-player.playlist-left .playlist-search{margin:0}.igd-player.playlist-left .media-wrap{flex:1;order:2;position:sticky;top:10px;z-index:9}.igd-player.playlist-left:has(.igd-player-playlist) .media-wrap{max-width:60%}.igd-player.playlist-right{flex-wrap:wrap;flex-direction:row;-moz-column-gap:10px;column-gap:10px;padding-left:5px}.igd-player.playlist-right .igd-player-playlist{width:calc(40% - 10px);order:2;margin:0;padding-right:10px;border-right:1px solid #eee;padding-left:5px}.igd-player.playlist-right .playlist-search{margin:0}.igd-player.playlist-right .media-wrap{flex:1;order:1;position:sticky;top:10px;z-index:9}.igd-player.playlist-right:has(.igd-player-playlist) .media-wrap{max-width:60%}.igd-player.playlist-bottom .playlist-search{width:calc(100% - 20px);margin:10px auto}.igd-player .media-wrap{width:100%;display:flex;align-items:center}.igd-player .media-wrap .current-item{display:flex;align-items:center;overflow:hidden}.igd-player .media-wrap .current-item img{margin-left:10px;width:40px}.igd-player .media-wrap .current-item .item-caption{display:flex;flex-direction:column;overflow:hidden}.igd-player .media-wrap .current-item .item-caption .item-title{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-player .media-wrap .current-item .item-caption .item-description{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-player .media-wrap .igd-player-media-wrap{position:relative}.igd-player .media-wrap iframe{aspect-ratio:16/9}.igd-player.type-video .igd-player-media-wrap{width:100%;height:0;overflow:hidden;padding-bottom:56.25%}.igd-player.type-video .igd-player-media-wrap .igd-player-media-video,.igd-player.type-video .igd-player-media-wrap .plyr,.igd-player.type-video .igd-player-media-wrap video{position:absolute;top:0;right:0;width:100%!important;height:100%!important}.igd-player.type-audio .media-wrap{padding:15px;border-bottom:1px solid #ddd;background:#f5f5f5}.igd-player.type-audio .igd-player-media-wrap{margin-right:auto}.igd-player.type-audio .igd-player-media-wrap .plyr__controls{padding:0;background:100% 0}.igd-player .igd-player-playlist{width:100%;height:100%;overflow-y:auto}.igd-player .igd-player-playlist .playlist-item{position:relative;cursor:pointer;display:flex;align-items:center;color:#333;padding:3px}.igd-player .igd-player-playlist .playlist-item.active{color:var(--color-primary);font-weight:700}.igd-player .igd-player-playlist .playlist-item.active .dashicons{border-color:var(--color-primary);color:var(--color-primary)}.igd-player .igd-player-playlist .playlist-item:not(:has(img)){padding:5px}.igd-player .igd-player-playlist .playlist-item-wrap{border-bottom:1px solid #eee;padding:5px 10px}.igd-player .igd-player-playlist .playlist-item-wrap:last-child{border-bottom:0}.igd-player .igd-player-playlist .playlist-item-wrap .sub-item{margin-right:30px}.igd-player .igd-player-playlist .playlist-item-wrap:hover{background-color:#f5f5f5}.igd-player .igd-player-playlist .playlist-item .item-index{margin-left:7px;white-space:nowrap}.igd-player .igd-player-playlist .playlist-item .igd-spinner{margin-right:0;width:18px;height:18px;margin-left:5px}.igd-player .igd-player-playlist .playlist-item img{width:30px;height:30px;-o-object-fit:cover;object-fit:cover;border-radius:3px;margin-left:5px}.igd-player .igd-player-playlist .playlist-item .item-name{margin-left:auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-player .igd-player-playlist .playlist-item .item-size{margin:0 10px;color:#777;white-space:nowrap;font-size:.75rem}.igd-player .igd-player-playlist .playlist-item .dashicons{font-size:25px;color:#555c66;height:auto;width:auto}.igd-player .igd-player-playlist .playlist-item .dashicons.dashicons-arrow-down,.igd-player .igd-player-playlist .playlist-item .dashicons.dashicons-arrow-right{margin-right:-5px;margin-left:5px}.igd-player .igd-player-playlist .playlist-item .dashicons:hover{color:#444;border-color:var(--color-primary)}.igd-player .igd-player-playlist .playlist-item:last-child{border-bottom:0}.igd-player .igd-player-playlist .search-result-info{display:flex;align-items:center;margin-bottom:7px;margin-top:7px}.igd-player .igd-player-playlist .search-result-info .clear-button{margin-right:7px;padding:7px 10px}.igd-player .igd-player-playlist::-webkit-scrollbar{width:5px;height:5px}.igd-player .igd-player-playlist::-webkit-scrollbar-thumb{background:#ddd;border-radius:10px}.igd-player .igd-player-playlist::-webkit-scrollbar-track{background:#eee;border-radius:10px}.igd-player .playlist-search{position:relative;display:flex;align-items:center;transition:width .3s linear;line-height:1;overflow:hidden;border:1px solid #ddd;border-radius:5px;width:100%;padding:0 15px;margin:10px 0}.igd-player .playlist-search .search-dismiss{cursor:pointer}.igd-player .playlist-search input{height:40px;padding:0 15px;font-size:14px;width:100%;border:none!important;box-shadow:none!important;border-radius:0!important;background:100% 0}.igd-player .playlist-search input:focus{outline:0}.igd-player .playlist-search .search-submit{position:relative;z-index:2}.igd-player .playlist-search .search-submit .dashicons{font-family:dashicons}.igd-player .playlist-search:has(input:focus){box-shadow:rgba(0,0,0,.24) 0 3px 8px}.igd-player .playlist-search.active .input-wrap{left:-10px}.igd-player .playlist-search.active .search-submit svg{fill:#333}.igd-player video{display:inline-block;max-width:100%;min-height:100%}.igd-player audio{display:none;max-width:100%;width:100%}.igd-player .plyr__controls .plyr__controls__item.plyr__time{white-space:nowrap}.igd-player .plyr__control:focus{background:100% 0;color:currentColor}.igd-player .plyr__volume input[type=range]{max-width:60px}.igd-player.size-sm.type-audio .media-wrap,.igd-player.size-xs.type-audio .media-wrap{flex-direction:column}.igd-player.size-sm.type-audio .media-wrap .current-item img,.igd-player.size-xs.type-audio .media-wrap .current-item img{width:30px}.igd-player.size-sm.type-audio .media-wrap .igd-player-media-wrap,.igd-player.size-xs.type-audio .media-wrap .igd-player-media-wrap{margin-top:15px;margin-right:0}.igd-player.size-sm .plyr__volume input[type=range],.igd-player.size-xs .plyr__volume input[type=range]{max-width:40px;min-width:40px}.igd-player.size-sm.playlist-left,.igd-player.size-sm.playlist-right,.igd-player.size-xs.playlist-left,.igd-player.size-xs.playlist-right{flex-direction:column}.igd-player.size-sm.playlist-left .igd-player-playlist,.igd-player.size-sm.playlist-left .media-wrap,.igd-player.size-sm.playlist-right .igd-player-playlist,.igd-player.size-sm.playlist-right .media-wrap,.igd-player.size-xs.playlist-left .igd-player-playlist,.igd-player.size-xs.playlist-left .media-wrap,.igd-player.size-xs.playlist-right .igd-player-playlist,.igd-player.size-xs.playlist-right .media-wrap{width:100%;max-width:100%!important}.igd-player.size-sm.playlist-left .media-wrap,.igd-player.size-sm.playlist-right .media-wrap,.igd-player.size-xs.playlist-left .media-wrap,.igd-player.size-xs.playlist-right .media-wrap{position:unset}.igd-player.size-sm.playlist-left .igd-player-playlist,.igd-player.size-sm.playlist-right .igd-player-playlist,.igd-player.size-xs.playlist-left .igd-player-playlist,.igd-player.size-xs.playlist-right .igd-player-playlist{order:999}.igd-lightbox{z-index:999999;position:fixed}.igd-lightbox .lg-backdrop{background:rgba(0,0,0,.9)!important}.igd-lightbox .lg-sub-html h4,.igd-lightbox .lg-sub-html p{color:inherit}.igd-lightbox:not(.gallery-lightbox) .lg-sub-html{background:#111!important;display:flex;align-items:center;padding:10px 15px;max-width:calc(100% - 100px)}.igd-lightbox .lg-outer .lg-thumb-item{height:60px}.igd-lightbox .item-name{display:flex;align-items:center;max-width:75%;overflow:hidden}.igd-lightbox .item-name img{margin-left:10px;width:24px}.igd-lightbox .item-name span{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.igd-lightbox.no-download .lg-download{display:none}.igd-lightbox .lg-outer[data-lg-slide-type=iframe] .lg-actual-size,.igd-lightbox .lg-outer[data-lg-slide-type=iframe] .lg-zoom-in,.igd-lightbox .lg-outer[data-lg-slide-type=iframe] .lg-zoom-out,.igd-lightbox .lg-outer[data-lg-slide-type=video] .lg-actual-size,.igd-lightbox .lg-outer[data-lg-slide-type=video] .lg-zoom-in,.igd-lightbox .lg-outer[data-lg-slide-type=video] .lg-zoom-out{display:none}.igd-lightbox .lg-outer[data-lg-slide-type=iframe] .igd-hidepopout{width:60px;height:55px;position:absolute;opacity:1;left:12px;top:0;z-index:10000000;background-color:#d1d1d1;cursor:default!important}.igd-lightbox .lg-item:has(video>source[type*="audio/"]) .lg-video-cont{margin-top:-60px;max-height:60px;max-width:500px}.igd-lightbox .lg-item:has(video>source[type*="audio/"]) .lg-video-cont .lg-video-poster{margin-top:-20px;max-width:100px!important;height:100px!important;max-height:none!important}@media (max-width:767px){.igd-lightbox .lg-item .lg-video-cont{max-width:90%!important}}.igd-select-files-modal .components-modal__header{border-bottom:1px solid #ddd;box-shadow:0 1px 5px rgba(0,0,0,.1)}.igd-select-files-modal .components-modal__header-heading{width:100%}.igd-select-files-modal .shortcode-module-header{display:flex;flex-direction:column;justify-content:center;align-items:center;margin:30px auto}.igd-select-files-modal .shortcode-module-header .module-title{font-size:1.2rem;margin-bottom:10px;font-weight:600}.igd-select-files-modal .shortcode-module .shortcode-types{display:flex;flex-wrap:wrap;justify-content:center}.igd-select-files-modal .shortcode-module .shortcode-types .shortcode-type{width:calc(20% - 20px);margin:10px;padding:2rem 1.5rem;border:1px solid #ddd;border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;max-width:250px;transition:background .3s ease}.igd-select-files-modal .shortcode-module .shortcode-types .shortcode-type i{height:auto;width:auto;border-radius:50%;padding:15px;border:1px solid #ddd}.igd-select-files-modal .shortcode-module .shortcode-types .shortcode-type span{font-size:1rem;margin-top:15px}.igd-select-files-modal .shortcode-module .shortcode-types .shortcode-type.active{background:var(--color-primary-light);border:1px solid var(--color-primary);color:#fff}.igd-select-files-modal .shortcode-module .shortcode-types .shortcode-type.active i{border:1px solid #fff}.igd-select-files-modal .shortcode-module .shortcode-types .shortcode-type:hover{background:var(--color-primary-light);border:1px solid var(--color-primary);color:#fff}.igd-select-files-modal .shortcode-module .shortcode-types .shortcode-type:hover i{border:1px solid #fff}.igd-select-files-modal .shortcode-module .settings-field{display:flex;flex-wrap:wrap;margin-bottom:10px;align-items:center;border:1px dashed #ddd;border-radius:5px;padding:12px 18px}.igd-select-files-modal .shortcode-module .settings-field-title{font-size:1.2rem;margin-bottom:20px;font-weight:600}.igd-select-files-modal .shortcode-module .settings-field-label{width:200px;font-weight:600;font-size:1rem;display:flex;justify-content:space-between}.igd-select-files-modal .shortcode-module .settings-field-label:after{content:":";margin-right:auto}.igd-select-files-modal .shortcode-module .settings-field-content{display:flex;flex-direction:column;align-items:flex-start;margin-right:20px;flex:1}.igd-select-files-modal .shortcode-module .settings-field-content .components-button i{margin-left:5px}.igd-select-files-modal .shortcode-module .settings-field-content .description{font-size:.8rem;margin-top:10px;text-align:right}.igd-select-files-modal .shortcode-module .settings-field.filter-field .filter-field-input{display:flex;flex-direction:column}.igd-select-files-modal .shortcode-module .settings-field.filter-field .filter-field-all{display:flex;align-items:center;justify-content:flex-start;margin-top:15px;flex-wrap:wrap}.igd-select-files-modal .shortcode-module .settings-field.filter-field .filter-field-all>div{display:flex;align-items:center}.igd-select-files-modal .shortcode-module .settings-field.filter-field .filter-field-all>div:first-child{margin-left:20px}.igd-select-files-modal .shortcode-module .settings-field.filter-field .filter-field-all-label{margin-left:10px;font-weight:500}.igd-select-files-modal .shortcode-module .settings-field.filter-field .filter-field-all .description{width:100%;text-align:right}.igd-select-files-modal .shortcode-module .settings-field.sort-field .sort-field-section{display:flex;flex-direction:column}.igd-select-files-modal .shortcode-module .settings-field.sort-field .sort-field-section:first-child{margin-left:35px;padding-left:15px;border-left:1px solid #ddd}.igd-select-files-modal .shortcode-module .settings-field.sort-field .sort-field-section-wrap{display:flex;margin:15px 30px}.igd-select-files-modal .shortcode-module .settings-field.sort-field .sort-field-section-label{margin-bottom:15px;font-weight:500;text-align:right}.igd-select-files-modal .shortcode-module .settings-field.sort-field .sort-field-section .sort-item{display:flex;align-items:center;margin-bottom:10px;cursor:pointer;position:relative}.igd-select-files-modal .shortcode-module .settings-field.sort-field .sort-field-section .sort-item i{display:none;position:absolute;right:-25px}.igd-select-files-modal .shortcode-module .settings-field.sort-field .sort-field-section .sort-item.active{color:var(--color-primary)}.igd-select-files-modal .shortcode-module .settings-field.sort-field .sort-field-section .sort-item.active i{display:block}.igd-select-files-modal .shortcode-module .settings-field.filter-users-field .filter-users-group{display:flex;flex-direction:column}.igd-select-files-modal .shortcode-module .settings-field.filter-users-field .filter-users{margin-top:15px;display:flex;flex-direction:column;border:1px dashed #ddd;padding:15px;border-radius:7px}.igd-select-files-modal .shortcode-module .settings-field.filter-users-field .filter-users-title{font-weight:500;font-size:1rem;margin-bottom:10px;text-align:right}.igd-select-files-modal .shortcode-module .settings-field.filter-users-field .filter-users-section{display:flex;align-items:center}.igd-select-files-modal .shortcode-module .settings-field.filter-users-field .filter-users-section:first-child{margin-left:20px}.igd-select-files-modal .shortcode-module .settings-field.filter-users-field .filter-users-section-label{margin-left:10px;font-weight:500}.igd-select-files-modal .shortcode-module .settings-field.filter-users-field .filter-users-section-wrap{display:flex;flex-wrap:wrap;margin-bottom:15px}.igd-select-files-modal .shortcode-module .settings-field.filter-users-field .filter-users-section-wrap .description{width:100%}.igd-select-files-modal .shortcode-module .settings-field input,.igd-select-files-modal .shortcode-module .settings-field select{height:40px;border-radius:5px;border:1px solid #ddd;font-size:.8rem;width:350px;max-width:100%}.igd-select-files-modal .shortcode-module .settings-field input:disabled,.igd-select-files-modal .shortcode-module .settings-field select:disabled{background:#f5f5f5;color:#aaa;cursor:not-allowed}.igd-select-files-modal .shortcode-module .settings-field .igd-select{width:400px}.igd-select-files-modal-header{display:flex;align-items:center;justify-content:space-between}.igd-select-files-modal-header .header-title{font-size:1.2rem;color:var(--color-primary);display:flex;align-items:center}.igd-select-files-modal-header .header-title i{margin-left:10px}.igd-select-files-modal-header button{padding:7px 8px}.igd-account-item{padding:1rem;display:flex;border:0 solid transparent;box-shadow:rgba(99,99,99,.2) 0 2px 8px 0;border-radius:.5rem;align-items:center;max-width:450px;margin-bottom:1rem;background:#fff}.igd-account-item img{width:50px;height:50px;margin-left:1rem;border-radius:50%}.igd-account-item-info{display:flex;flex-flow:column}.igd-account-item-info .account-name{font-size:1rem}.igd-account-item-info .account-email{color:#757575}.igd-account-item .igd-account-item-action{margin-right:auto}.igd-account-item .igd-account-item-action button{background-color:#ffe9d9;color:#f06500;border-color:transparent}.igd-account-item:hover button{background:#f96;color:#fff}.no-account-placeholder{display:flex;flex-flow:column;align-items:center;margin:10vh auto;padding:1.5rem 1rem;border-radius:.5rem;width:30rem;background:#fff;box-shadow:0 0 .5rem rgba(0,0,0,.1)}.no-account-placeholder>img{width:200px;margin-bottom:15px}.no-account-placeholder .placeholder-heading{font-size:1.2rem;margin-bottom:7px;font-weight:600}.no-account-placeholder button{margin-top:1.5rem;padding:7px 10px;background:#fff;color:#555;border-radius:3px;border:1px solid #ccc}.no-account-placeholder button img{width:24px;height:24px;margin-left:10px}.add-account-btn{padding:10px 15px;background:#fff;color:#555;border-radius:3px;border:1px solid #ccc}.add-account-btn img{width:24px;height:24px;margin-left:10px}.igd .igd-spinner{margin-top:0;border-radius:50%}.sortable-item{z-index:999999}.igd-select-sources-wrap .igd-browser-wrap{flex:1;margin-left:1rem}.igd-select-sources-wrap .igd-selected-list{width:24%;max-width:300px}.igd-select-sources-wrap.view-list .igd-browser-wrap{width:100%;margin-left:0}.igd-select-sources-wrap.view-list .igd-selected-list{width:100%;max-width:100%;margin-top:1rem}.igd-pagination{display:flex;padding:0}.igd-pagination li{justify-content:center!important;flex-wrap:wrap!important;list-style:none;position:relative;display:flex;align-items:center;padding:8px 16px;text-decoration:none!important;font-size:15px;margin-right:-1px;border:1px solid #dee2e6;margin-left:0;margin-top:0;cursor:pointer}.igd-pagination li.selected,.igd-pagination li:hover{background:var(--color-primary);color:#fff;border-color:var(--color-primary)}.igd-pagination li.disabled{background:#eee;cursor:not-allowed}.igd-pagination li:first-child{border-top-right-radius:3px;border-bottom-right-radius:3px}.igd-pagination li:last-child{border-top-left-radius:3px;border-bottom-left-radius:3px}.igd-pagination li svg{fill:currentColor}.igd-move-modal .components-modal__content{display:flex;flex-flow:column}.igd-file-item .igd-file-thumbnail{-webkit-user-drag:none}.template-tags{margin-top:10px;border-bottom:1px solid #eee;padding-bottom:8px;width:100%}.template-tags-title{width:100%;margin-bottom:7px;text-align:right;font-size:1rem;display:flex;align-items:center}.template-tags-title i{margin-left:7px;cursor:pointer}.template-tags-title span:nth-child(3){margin-right:7px}.template-tags-title+.template-tags-list{display:none}.template-tags-title.active i:before{content:"\f343"}.template-tags-title.active+.template-tags-list{display:flex}.template-tags-list{display:flex;flex-wrap:wrap}.template-tags-list .tag{color:#2fb44b;margin-left:10px;margin-bottom:7px;background:rgba(47,180,75,.1);padding:7px 10px;border-radius:5px;cursor:pointer;font-size:.87rem}.template-tags-list .tag:hover{background:rgba(47,180,75,.7);color:#fff}.template-tags-list .tag-break{width:100%;border-top:1px solid #eee;margin-top:5px;margin-bottom:11px}.template-tags-list .tag-break+.tag-break{display:none}.template-folder{padding:7px 10px;border-radius:5px;background:#eaeaea;margin-left:10px;font-size:.9rem;color:#555;display:flex;flex-wrap:wrap;align-items:center;width:-moz-max-content;width:max-content;line-height:1}.template-folder-account{margin-left:10px}.template-folder-item{background:#fff;padding:5px 7px;border-radius:3px;font-size:.8rem;display:flex;align-items:center;justify-content:center}.template-folder i,.template-folder img{margin-left:7px;width:20px}.template-folder-wrap{display:flex;align-items:center;width:100%}.template-folder-wrap button{font-size:.875rem;padding:7px;margin-right:10px}.template-folder-wrap button.btn-danger{background:#ff9f10;border-color:rgba(255,159,16,.5)}.template-folder-wrap button.btn-danger:hover{background:rgba(255,159,16,.8)}.template-folder-error{color:#ff9f10;font-size:.8rem;margin-top:10px;display:flex;align-items:center}.template-folder-error i{margin-left:5px}.template-folder .dashicons-no-alt{color:#ff9f10;cursor:pointer;margin-right:10px}body.google-drive_page_integrate-google-drive-settings{background:#f7f8fa}.igd-settings{display:flex;flex-wrap:wrap;margin-right:-20px;width:calc(100% + 20px)}@media (max-width:767px){.igd-settings{margin-right:-10px;width:calc(100% + 10px)}}.igd-settings *{box-sizing:border-box}.igd-settings .integrations-wrapper{margin-bottom:40px;background:#fff;padding:15px 20px;border-radius:10px}.igd-settings .integrations-wrapper .integrations-header{display:flex;flex-wrap:wrap;margin-bottom:60px;width:100%}.igd-settings .integrations-wrapper .integrations-header .igd-settings-body-title{margin-bottom:0}.igd-settings .integrations-wrapper .integrations-header p{font-size:1rem}.igd-settings .integrations-wrapper .integrations-header .integrations-actions{display:flex;align-items:center;-moz-column-gap:10px;column-gap:10px;margin-right:auto}.igd-settings .integrations-wrapper .integrations-header .integrations-actions button{height:40px}.igd-settings .integrations-wrapper .integrations{display:flex;flex-wrap:wrap;justify-content:space-between}.igd-settings .integrations-wrapper .integration-item{display:flex;flex-direction:column;align-items:center;justify-content:center;width:calc(25% - 30px);margin:15px 15px 60px 15px;text-align:center;border-radius:15px;padding:20px;position:relative;background:#fff;border:1px dashed rgba(47,180,75,.3);transition:all .3s ease;cursor:pointer;padding-top:60px;background:rgba(238,238,238,.3)}.igd-settings .integrations-wrapper .integration-item:last-child{margin-left:auto}.igd-settings .integrations-wrapper .integration-item-img{top:-50px;position:absolute;width:100px;height:auto;border-radius:50%;background:#fff;padding:5px;border:1px solid #ddd}.igd-settings .integrations-wrapper .integration-item-doc-link{position:absolute;top:10px;left:10px;text-decoration:none;color:#555;font-weight:400;display:flex;align-items:center;justify-content:center;line-height:1;transition:all .3s ease;border-radius:50%;background:#fff;border:1px solid #ddd;height:24px;width:24px}.igd-settings .integrations-wrapper .integration-item-doc-link i{height:auto;width:auto;font-size:22px}.igd-settings .integrations-wrapper .integration-item-doc-link:hover{transform:scale(1.2)}.igd-settings .integrations-wrapper .integration-item-title{font-size:14px;font-weight:600;text-transform:uppercase;color:#000;margin:10px 0}.igd-settings .integrations-wrapper .integration-item-description{font-size:.875rem;margin:10px 0;line-height:1.5}.igd-settings .integrations-wrapper .integration-item .toggle-label{color:#555;font-size:.75rem;font-weight:400;display:none}.igd-settings .integrations-wrapper .integration-item .toggle-label.active{color:#44b754}.igd-settings .integrations-wrapper .integration-item .toggle-label.inactive{color:#e74c3c}.igd-settings .integrations-wrapper .integration-item-toggle{margin:10px}.igd-settings .integrations-wrapper .integration-item-toggle-wrapper{display:flex;align-items:center}.igd-settings .integrations-wrapper .integration-item.active{border-style:solid;border-color:#2fb44b;background:rgba(47,180,75,.1)}.igd-settings .integrations-wrapper .integration-item.active:after{content:"Enabled";background:#44b754;position:absolute;top:10px;right:10px;text-align:center;color:#fff;font-size:12px;padding:5px 7px;border-radius:5px}.igd-settings .integrations-wrapper .integration-item .pro-badge{position:absolute;top:10px;right:10px;background:#ff9458;color:#fff;padding:5px 10px;border-radius:3px;font-size:12px;font-weight:400;display:flex;align-items:center;justify-content:center;line-height:1;box-shadow:0 0 5px rgba(0,0,0,.1);transition:all .3s ease}.igd-settings .integrations-wrapper .integration-item .pro-badge i{height:auto;width:auto;font-size:18px;margin-left:3px}.igd-settings .integrations-wrapper .integration-item .active-badge{position:absolute;top:-10px;left:-10px;background:#44b754;color:#fff;padding:5px 10px;border-radius:30px;font-size:12px;font-weight:400;display:flex;align-items:center;justify-content:center;line-height:1;box-shadow:0 0 5px rgba(0,0,0,.1);transition:all .3s ease}.igd-settings .integrations-wrapper .integration-item .active-badge i{height:auto;width:auto;font-size:18px;margin-left:3px}.igd-settings .integrations-wrapper .integration-item:hover .pro-badge{transform:scale(1.2)}.igd-settings .integrations-wrapper .integration-item.pro-item{border-color:#ff9458}@media (min-width:1200px) and (max-width:1600px){.igd-settings .integrations-wrapper .integration-item{width:calc(33.333% - 30px)}}@media (max-width:1200px){.igd-settings .integrations-wrapper .integration-item{width:calc(50% - 30px)}}@media (max-width:768px){.igd-settings .integrations-wrapper .integration-item{width:100%;margin:0}}.igd-settings-header{width:100%;display:flex;align-items:center;justify-content:space-between;padding:15px 20px;background:#fff;border-bottom:1px solid #e5e5e5;position:sticky;top:32px;z-index:9}.igd-settings-header-title{display:flex;align-items:center;font-size:1.5rem;font-weight:600;color:#000}.igd-settings-header-title img{margin-left:10px}.igd-settings-header-title i{margin-left:10px;background:var(--color-primary);color:#fff;padding:7px;border-radius:50%;height:auto;width:auto}.igd-settings-header-title i.dashicons-menu-alt3{display:none}.igd-settings-menu{width:250px;border:0 solid transparent;box-shadow:rgba(99,99,99,.2) 0 2px 8px 0;background:#fff;overflow:hidden;min-height:100vh}.igd-settings-menu-item{padding:8px 10px;margin:5px 0;cursor:pointer;transition:all .2s ease-in-out;display:flex;align-items:center;font-size:1rem}.igd-settings-menu-item img{margin-left:10px;width:32px}.igd-settings-menu-item:hover{background:#f5f5f5}.igd-settings-menu-item.active{background:rgba(47,180,75,.1);color:#2fb44b;border-left:3px solid #2fb44b;font-weight:500}@media (max-width:768px){.igd-settings-menu{width:100%;min-height:auto}.igd-settings-menu-item{padding:10px}}.igd-settings-body{flex:1;border:0 solid transparent;border-radius:.5rem;padding:20px 30px;display:flex;flex-flow:column}.igd-settings-body-title{font-size:1.2rem;font-weight:600;line-height:1;margin-top:0;margin-bottom:15px;text-align:right;display:flex;align-items:center;justify-content:space-between}@media (max-width:768px){.igd-settings-body{margin-top:20px;margin-right:0;padding:10px}}.igd-settings .settings-field{display:flex;align-items:center;flex-wrap:wrap;margin-bottom:20px;background:#fff;border-radius:10px;padding:20px 30px}.igd-settings .settings-field:last-child{border-bottom:none}.igd-settings .settings-field-label{width:200px;font-size:.9rem;font-weight:500;display:flex;justify-content:space-between;margin-left:30px;line-height:1.5;margin-top:0}.igd-settings .settings-field-label:after{content:":";margin-right:auto}.igd-settings .settings-field-content{flex:1;display:flex;flex-direction:column;width:100%}.igd-settings .settings-field-content input[type=email],.igd-settings .settings-field-content input[type=number],.igd-settings .settings-field-content input[type=text],.igd-settings .settings-field-content select{width:300px;height:45px!important;border-color:#ddd;border-radius:5px!important;max-width:100%}.igd-settings .settings-field-content input[type=email].folder-naming-template,.igd-settings .settings-field-content input[type=number].folder-naming-template,.igd-settings .settings-field-content input[type=text].folder-naming-template,.igd-settings .settings-field-content select.folder-naming-template{width:500px}.igd-settings .settings-field-content input[type=email]:focus,.igd-settings .settings-field-content input[type=number]:focus,.igd-settings .settings-field-content input[type=text]:focus,.igd-settings .settings-field-content select:focus{border-color:inherit;box-shadow:none}.igd-settings .settings-field-content .components-input-control__container{width:300px}.igd-settings .settings-field-content .components-input-control__backdrop{border-color:#ddd!important;border-radius:5px!important;height:45px}.igd-settings .settings-field-content .igd-color-palette{max-width:100%;position:relative;border:1px solid #e5e5e5;padding:11px;border-radius:10px;background:#fff}.igd-settings .settings-field-content .igd-color-palette legend{display:none}.igd-settings .settings-field-content .igd-color-palette .components-dropdown{width:-moz-max-content;width:max-content}.igd-settings .settings-field-content .igd-color-palette .components-color-palette__custom-color-button{width:100px;height:40px;border-radius:5px}.igd-settings .settings-field-content .igd-color-palette .components-color-palette__custom-color-button .components-truncate{display:none}.igd-settings .settings-field-content .igd-color-palette .components-color-palette__custom-color-button .components-color-palette__custom-color-value{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.igd-settings .settings-field-content .igd-color-palette .components-popover{right:0!important}.igd-settings .settings-field-content .igd-color-palette .components-popover .components-popover__content{outline-color:rgba(221,221,221,.5);border-radius:5px;box-shadow:rgba(0,0,0,.16) 0 10px 36px 0,rgba(0,0,0,.06) 0 0 0 1px}.igd-settings .settings-field-content .igd-color-palette .components-popover .components-popover__content .react-colorful+div{padding-top:0;display:flex}.igd-settings .settings-field-content .igd-color-palette .components-popover .components-popover__content .react-colorful+div>div:first-child{width:auto;padding-left:0}.igd-settings .settings-field-content .igd-color-palette .components-popover .components-popover__content .react-colorful+div>div:first-child>button{margin-right:5px}.igd-settings .settings-field-content .igd-color-palette .components-popover .components-popover__content .react-colorful+div>div:last-child{padding:5px;flex:1}.igd-settings .settings-field-content .igd-color-palette .components-popover .components-popover__content .react-colorful__saturation{height:100px;margin-bottom:10px}.igd-settings .settings-field-content .igd-color-palette .components-popover .components-popover__content .components-input-control__container{width:100%}.igd-settings .settings-field-content .igd-color-palette .components-popover .components-popover__content .components-input-control__container .components-spacer{margin-right:10px}.igd-settings .settings-field-content .igd-color-palette .components-popover .components-popover__content .components-input-control__container input{height:30px;min-height:30px;padding-left:5px}.igd-settings .settings-field-content .igd-color-palette .components-popover .components-popover__content .components-input-control__container select{height:auto!important}.igd-settings .settings-field-content .igd-color-palette .components-popover .components-popover__content .components-input-control__container .components-input-control__backdrop{border-color:#ddd;border-radius:5px;height:auto!important}.igd-settings .settings-field-content .igd-color-palette .components-popover .components-popover__content::-webkit-scrollbar{width:5px}.igd-settings .settings-field-content .igd-color-palette .components-popover .components-popover__content::-webkit-scrollbar-track{background:#f1f1f1}.igd-settings .settings-field-content .igd-color-palette .components-popover .components-popover__content::-webkit-scrollbar-thumb{background:#888}.igd-settings .settings-field-content .igd-color-palette .components-popover .components-popover__content::-webkit-scrollbar-thumb:hover{background:#555}.igd-settings .settings-field-content .igd-color-palette .components-circular-option-picker__custom-clear-wrapper{position:absolute;margin:0;right:120px;top:15px}.igd-settings .settings-field-content .igd-color-palette .components-circular-option-picker__custom-clear-wrapper button{color:#675ed5!important;background:#fff!important;border:1px solid rgba(103,94,213,.25)!important;box-shadow:none;font-size:.875rem;height:32px;width:60px;text-align:center;border-radius:5px;padding:5px 12px}.igd-settings .settings-field-content .igd-color-palette .components-circular-option-picker__custom-clear-wrapper button:hover{color:#fff;background:#675ed5;border:1px solid rgba(103,94,213,.25)}.igd-settings .settings-field-content .igd-color-palette .components-color-palette__custom-color-text-wrapper{position:absolute;box-shadow:none;pointer-events:none}.igd-settings .settings-field-content .igd-color-palette .components-circular-option-picker__option:after,.igd-settings .settings-field-content .igd-color-palette .components-circular-option-picker__option:before{width:auto;height:auto}.igd-settings .settings-field-content .igd-color-palette .components-circular-option-picker__option .components-tooltip{display:none}.igd-settings .settings-field-content .igd-color-palette .components-select-control .components-input-control__backdrop{display:block;border-color:#ddd!important;border-radius:5px!important}.igd-settings .settings-field-content .igd-color-palette.disabled{opacity:.5}.igd-settings .settings-field-content .igd-textarea{max-width:500px}.igd-settings .settings-field-content .igd-textarea textarea{border-color:#ddd;border-radius:5px!important}.igd-settings .settings-field-content .components-button-group{background:rgba(47,180,75,.1);padding:10px;width:-moz-max-content;width:max-content;border-radius:10px}.igd-settings .settings-field-content .components-button-group button{color:#47cf64;box-shadow:inset 0 0 0 1px rgba(47,180,75,.25);margin:0 3px;border-radius:5px;background:#fff}.igd-settings .settings-field-content .components-button-group button:first-child{border-top-right-radius:5px;border-bottom-right-radius:5px}.igd-settings .settings-field-content .components-button-group button:last-child{border-top-left-radius:5px;border-bottom-left-radius:5px}.igd-settings .settings-field-content .components-button-group button.is-primary{z-index:auto;background:#47cf64;color:#fff}.igd-settings .settings-field-content .components-button-group button.is-secondary:hover{color:#2fb44b;box-shadow:inset 0 0 0 1px #47cf64}.igd-settings .settings-field-content .components-button-group button i{margin-left:10px}.igd-settings .settings-field-content .preloaders{display:flex;flex-wrap:wrap}.igd-settings .settings-field-content .preloaders .preloader{display:flex;flex-direction:column;border:1px solid #e9e9e9;border-radius:.5rem;margin:0 0 15px 15px;position:relative;cursor:pointer;overflow:hidden;background:#eff3fe;width:130px}.igd-settings .settings-field-content .preloaders .preloader img{width:100%;height:100px;transition:all .2s ease-in-out}.igd-settings .settings-field-content .preloaders .preloader-name{border-top:1px solid #e9e9e9;padding:3px 5px;text-align:center;display:flex;align-items:center;justify-content:center;background:#fff;margin-top:auto}.igd-settings .settings-field-content .preloaders .preloader-name i{margin-left:3px}.igd-settings .settings-field-content .preloaders .preloader .pro-badge{position:absolute;top:-10px;left:-10px;background:#0a66c2;color:#fff;padding:5px 10px;border-radius:30px;font-size:12px;font-weight:400;display:flex;align-items:center;justify-content:center;line-height:1;box-shadow:0 0 5px rgba(0,0,0,.1);transition:all .3s ease}.igd-settings .settings-field-content .preloaders .preloader .pro-badge i{height:auto;width:auto;font-size:18px;margin-left:3px}.igd-settings .settings-field-content .preloaders .preloader.active{border-color:#2fb44b}.igd-settings .settings-field-content .preloaders .preloader.active .preloader-name{border-top-color:#2fb44b;background:#2fb44b;color:#fff}.igd-settings .settings-field-content .preloaders .preloader.active:after{content:"\f15e";font-family:Dashicons;height:24px;width:24px;background:#2fb44b;color:#fff;position:absolute;top:5px;left:5px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:21px}.igd-settings .settings-field-content .preloaders .preloader:hover{border-color:#2fb44b}.igd-settings .settings-field-content .preloaders .preloader:hover img{transform:scale(1.1)}.igd-settings .settings-field-content .preloaders .preloader.disabled .preloader-name{background:#ddd;color:#888}.igd-settings .settings-field-content .preloaders .preloader.disabled:hover{border-color:transparent}.igd-settings .settings-field-content .preloader-upload{border:1px dashed #ddd;border-radius:5px;padding:15px}.igd-settings .settings-field-content .preloader-upload h4{margin-top:0}.igd-settings .settings-field-content .preloader-upload-actions{display:flex;align-items:center}.igd-settings .settings-field-content .preloader-upload-actions button:nth-child(2){margin-right:10px}.igd-settings .settings-field-content .preloader-upload .preloader-preview{margin-top:20px}.igd-settings .settings-field-content .preloader-upload .preloader-preview img{max-width:150px;max-height:150px}.igd-settings .settings-field-content .own-google-app-warning{flex-direction:column}.igd-settings .settings-field .description{margin-top:7px;margin-bottom:0;color:#666;display:flex;align-items:center;flex-wrap:wrap}.igd-settings .settings-field .description .igd-btn{margin-right:15px}.igd-settings .settings-field .description strong{margin-left:3px}.igd-settings .settings-field .description strong:not(:first-child){margin-right:3px}.igd-settings .settings-field .template-tags-title{font-size:.875rem}.igd-settings .settings-field.field-preloader{flex-direction:column;align-items:flex-start}.igd-settings .settings-field.field-preloader .settings-field-label{width:100%}.igd-settings .settings-field.field-preloader .settings-field-label:after{content:""}.igd-settings .settings-field.field-preloader .description{font-size:1rem;margin-bottom:20px}.igd-settings .settings-field.field-access-browser:has(.settings-field-sub){flex-direction:column;align-items:flex-start}.igd-settings .settings-field.field-access-browser:has(.settings-field-sub) .settings-field-label{width:100%}.igd-settings .settings-field.field-access-browser:has(.settings-field-sub) .settings-field-label:after{content:""}.igd-settings .settings-field.field-custom-css{flex-direction:column;align-items:flex-start}.igd-settings .settings-field.field-custom-css .settings-field-label{width:100%}.igd-settings .settings-field.field-custom-css .settings-field-label:after{content:""}.igd-settings .settings-field.field-custom-css .igd-textarea,.igd-settings .settings-field.field-custom-css textarea{width:100%;max-width:100%}.igd-settings .settings-field.field-custom-css .description{font-size:1rem;margin-bottom:20px}.igd-settings .settings-field.field-custom-css .CodeMirror{border:1px solid #ddd;border-radius:5px}.igd-settings .settings-field.field-woocommerce-upload{align-items:flex-start}.igd-settings .settings-field.field-woocommerce-upload>.settings-field-label{margin-bottom:0;margin-top:20px}.igd-settings .settings-field.sync-folders .template-folder{margin-left:7px}.igd-settings .settings-field.sync-folders .template-folder-item{margin-right:0}.igd-settings .settings-field.sync-folders .igd-btn{margin-right:20px}.igd-settings .settings-field.field-access-denied-message{flex-direction:column;align-items:flex-start}.igd-settings .settings-field.field-access-denied-message .settings-field-label{width:100%}.igd-settings .settings-field.field-access-denied-message .settings-field-label:after{content:""}.igd-settings .settings-field.field-access-denied-message .description{margin-top:-5px;margin-bottom:15px}.igd-settings .settings-field.field-access-denied-message .wp-editor-wrap{width:100%}.igd-settings .settings-field.field-access-denied-message .wp-editor-wrap textarea{border:none}.igd-settings .settings-field.field-access-denied-message .wp-switch-editor{height:29px}.igd-settings .settings-field.field-access-denied-message textarea{width:100%;border:1px solid #eee;padding:15px;min-width:200px}.igd-settings .settings-field.field-access-denied-message textarea:focus{outline:0;box-shadow:none}.igd-settings .settings-field.field-naming-template input[type=text]{width:100%}.igd-settings .settings-field-sub{display:flex;flex-direction:column;width:100%}.igd-settings .settings-field-sub .settings-field{flex-direction:column;align-items:flex-start;margin-top:15px;margin-bottom:0;display:flex;border:1px dashed #ddd;padding:15px;border-radius:7px;width:100%}.igd-settings .settings-field-sub .settings-field-label{margin-bottom:10px;width:auto}.igd-settings .settings-field-sub .settings-field-label:after{content:"";display:none}.igd-settings .settings-field-sub .settings-field-content{width:100%;margin-right:0}.igd-settings .sub-settings{margin-right:10px;display:flex;flex-direction:column;margin-bottom:30px;background:#fff;border-top-left-radius:10px;border-bottom-left-radius:10px;padding:20px;position:relative}.igd-settings .sub-settings:before{content:"";position:absolute;top:0;right:-10px;width:10px;height:100%;background:#2fb44b}.igd-settings .sub-settings .settings-field{padding:0;margin:15px 0}.igd-settings .no-account-placeholder{margin:0 0 1rem 0;align-items:flex-start}.igd-settings .privacy-text-wrap{margin-top:30px;-webkit-user-select:none;-moz-user-select:none;user-select:none;background:#fff;border-radius:10px;padding:15px 15px 15px 30px}.igd-settings .privacy-text-wrap .privacy-text-btn{font-size:1rem;color:#555;cursor:pointer;display:flex;align-items:center}.igd-settings .privacy-text-wrap .privacy-text-btn img{margin-left:10px}.igd-settings .privacy-text-wrap .privacy-text-btn span{margin:0 5px}.igd-settings .privacy-text-wrap .privacy-text-btn i{margin-right:auto}.igd-settings .privacy-text-wrap .privacy-text{margin-top:20px;color:#333;padding:20px 10px;border-top:1px solid rgba(47,180,75,.2)}.igd-settings .privacy-text-wrap .privacy-text h4{margin-top:0;margin-bottom:5px;font-size:1rem}.igd-settings .privacy-text-wrap .privacy-text p{font-size:.9rem;line-height:1.5}.igd-settings .components-form-toggle{width:-moz-max-content;width:max-content;background:#fff;padding:3px;border-radius:15px}.igd-settings .components-form-toggle__track{width:44px;height:22px;border-radius:22px}.igd-settings .components-form-toggle__thumb{background:#2fb44b;border:none;width:15px;height:15px;border-radius:25px;top:6px;right:6px}.igd-settings .components-form-toggle.is-checked .components-form-toggle__thumb{background:#fff;transform:translateX(-22px)}.igd-settings .components-form-toggle.is-checked .components-form-toggle__track{background:#2fb44b}.igd-settings .components-checkbox-control{border-radius:5px;padding:10px;cursor:pointer;transition:all .2s ease-in-out;background:#fff;-webkit-user-select:none;-moz-user-select:none;user-select:none}.igd-settings .components-checkbox-control .components-base-control__field{display:flex;align-items:center;margin-bottom:0}.igd-settings .components-checkbox-control__input{border-color:#47cf64;outline:0;box-shadow:none}.igd-settings .components-checkbox-control__input:checked{background-color:#2fb44b}.igd-settings .components-checkbox-control:hover{border-color:#2fb44b}.igd-settings .sharing-channels{display:flex;flex-wrap:wrap}.igd-settings .sharing-channels-wrap{background:#fff;padding:15px 20px;border-radius:7px}.igd-settings .sharing-channels-wrap .igd-settings-body-title{margin-top:0;margin-bottom:5px}.igd-settings .sharing-channels-wrap .description{font-size:1rem;margin-bottom:10px}.igd-settings .sharing-channels .components-checkbox-control{margin:8px;border:1px solid #ddd}.igd-settings .sharing-channels .components-checkbox-control:first-child{margin-right:0}@media (max-width:767px){.igd-settings-header{top:0}.igd-settings-header-title i.dashicons-admin-generic{display:none}.igd-settings-header-title i.dashicons-menu-alt3{display:block}.igd-settings-menu.active{display:block}.igd-settings-body{margin-left:10px}.igd-settings .settings-field{flex-flow:column;align-items:flex-start}.igd-settings .settings-field-label{margin-bottom:10px}.igd-settings .settings-field-label:after{display:none}}body.google-drive_page_integrate-google-drive-getting-started #wpcontent{padding:0;background:#fff}.igd-getting-started *{box-sizing:border-box}.igd-getting-started .getting-started-header{background:url(../images/getting-started/bg-shapes.png) no-repeat top/cover,#116222;padding:60px 60px 120px 60px;color:#fff;text-align:center}.igd-getting-started .getting-started-header .header-logo{display:flex;align-items:center;justify-content:center;margin-bottom:1rem;line-height:1.5}.igd-getting-started .getting-started-header .header-logo img{width:50px;margin-left:10px;background:#fff;padding:5px;border-radius:50%}.igd-getting-started .getting-started-header .header-logo span{font-size:2rem;font-weight:600}.igd-getting-started .getting-started-header p{max-width:600px;font-size:1rem;margin:auto;line-height:1.5;color:#eafaff}.igd-getting-started .getting-started-header .header-title{font-size:1.3rem;background:#248c3a;padding:17px 20px;border-radius:30px;display:inline-flex;color:#eaf7ed}@media (max-width:767px){.igd-getting-started .getting-started-header{padding:20px 20px 80px 20px}.igd-getting-started .getting-started-header .header-logo img{width:35px;padding:2px}.igd-getting-started .getting-started-header .header-logo span{font-size:1.5rem}.igd-getting-started .getting-started-header p{font-size:.9rem}.igd-getting-started .getting-started-header .header-title{font-size:1rem;padding:10px 15px}}.igd-getting-started .getting-started-main{max-width:1000px;margin:-64px auto 0 auto}.igd-getting-started .getting-started-menu{display:flex;justify-content:center;align-items:center;background:#fff;border-top-right-radius:30px;border-top-left-radius:30px;border-bottom:1px solid #e5e5e5}.igd-getting-started .getting-started-menu .menu-item{display:flex;align-items:center;padding:20px 30px;cursor:pointer;color:#4d4d4d;transition:all .3s ease-in-out;border-bottom:2px solid transparent;margin-bottom:-2px}.igd-getting-started .getting-started-menu .menu-item svg{margin-left:10px}.igd-getting-started .getting-started-menu .menu-item span{font-size:.9rem;font-weight:500}.igd-getting-started .getting-started-menu .menu-item:hover{color:#248c3a}.igd-getting-started .getting-started-menu .menu-item:hover path,.igd-getting-started .getting-started-menu .menu-item:hover svg{fill:#248c3a}.igd-getting-started .getting-started-menu .menu-item.active{color:#2fb44b;border-bottom:2px solid #2fb44b}.igd-getting-started .getting-started-menu .menu-item.active path,.igd-getting-started .getting-started-menu .menu-item.active svg{fill:#2fb44b}@media (max-width:767px){.igd-getting-started .getting-started-menu{border-radius:0;flex-direction:column;align-items:normal}}.igd-getting-started .getting-started-content{display:none;margin-top:30px}.igd-getting-started .getting-started-content .section-wrap{display:flex;flex-wrap:wrap;justify-content:space-between;margin-bottom:30px}.igd-getting-started .getting-started-content .section-wrap section{width:48%}.igd-getting-started .getting-started-content section{display:flex;flex-wrap:wrap;padding:30px;border-radius:15px}.igd-getting-started .getting-started-content section.section-full{align-items:center;justify-content:space-between;margin-bottom:2rem}.igd-getting-started .getting-started-content section.section-full>div{width:48%}.igd-getting-started .getting-started-content section.section-half{justify-content:center}.igd-getting-started .getting-started-content section.section-half .col-description{text-align:center;margin-bottom:1rem}.igd-getting-started .getting-started-content section.section-half .col-image{margin-top:auto}.igd-getting-started .getting-started-content section.section-introduction{background:#eaf7ed}.igd-getting-started .getting-started-content section.section-file-browser,.igd-getting-started .getting-started-content section.section-file-uploader{background:#eff3fe}.igd-getting-started .getting-started-content section.section-photo-gallery,.igd-getting-started .getting-started-content section.section-slider-carousel{background:rgba(253,246,236,.8)}.igd-getting-started .getting-started-content section.section-file-importer,.igd-getting-started .getting-started-content section.section-links{background:#eff3fe}.igd-getting-started .getting-started-content section.section-multiple-accounts{background:#eaf7ed}.igd-getting-started .getting-started-content section.section-contact,.igd-getting-started .getting-started-content section.section-documentation{background:#eaf7ed}.igd-getting-started .getting-started-content section.section-contact .col-image img,.igd-getting-started .getting-started-content section.section-documentation .col-image img{border:none}.igd-getting-started .getting-started-content section.section-add-account,.igd-getting-started .getting-started-content section.section-media-player{background:#eaf7ed}.igd-getting-started .getting-started-content section.section-embed,.igd-getting-started .getting-started-content section.section-file-search{background:#eaf7ed}.igd-getting-started .getting-started-content section.section-private-folders,.igd-getting-started .getting-started-content section.section-shortcode-builder,.igd-getting-started .getting-started-content section.section-woocommerce{background:#fdf6ec}.igd-getting-started .getting-started-content section.section-data-privacy{background:#eaf7ed;margin-bottom:2rem}.igd-getting-started .getting-started-content section.section-data-privacy .col-description{text-align:right}.igd-getting-started .getting-started-content section.integrations{display:flex;flex-wrap:wrap;justify-content:space-between;margin:0 -10px;padding:0}.igd-getting-started .getting-started-content section.integrations .integration{width:calc(33% - 20px);display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;background:#eaf7ed;margin:10px;padding:20px;border-radius:15px}.igd-getting-started .getting-started-content section.integrations .integration img{width:100px;height:100px;margin-bottom:10px;border-radius:50%}.igd-getting-started .getting-started-content section .col-description h2{font-size:1.5rem;font-weight:600;margin:1rem 0}.igd-getting-started .getting-started-content section .col-image iframe,.igd-getting-started .getting-started-content section .col-image img{width:100%;border-radius:7px}.igd-getting-started .getting-started-content section .col-image iframe{aspect-ratio:16/9;box-shadow:0 0 10px rgba(0,0,0,.1)}.igd-getting-started .getting-started-content section .igd-btn{padding:15px 20px;margin:30px auto 0 auto}.igd-getting-started .getting-started-content .content-heading{display:flex;flex-direction:column;align-items:center;justify-content:center;margin:80px auto 40px auto;text-align:center;max-width:600px;line-height:1.3}.igd-getting-started .getting-started-content .content-heading h2{margin:5px 0;font-size:30px;font-weight:700}.igd-getting-started .getting-started-content .content-heading p{margin:5px;font-size:.875rem}.igd-getting-started .getting-started-content.active{display:block}@media (max-width:767px){.igd-getting-started .getting-started-content{padding:10px}.igd-getting-started .getting-started-content .section-wrap section{width:100%;margin-bottom:30px}.igd-getting-started .getting-started-content section.section-full{flex-direction:column;align-items:center;justify-content:center}.igd-getting-started .getting-started-content section.section-full>div{width:100%}.igd-getting-started .getting-started-content section.integrations{margin:0}.igd-getting-started .getting-started-content section.integrations .integration{width:100%;margin:0 0 20px 0}}.igd-getting-started .getting-started-content p{font-size:1rem}.igd-getting-started .getting-started-content li{font-size:.975rem;margin-bottom:15px;line-height:1.5}.igd-getting-started .getting-started-content h4{font-size:1rem}.igd-getting-started .log{border-radius:15px;margin-bottom:20px}.igd-getting-started .log-header{display:flex;align-items:center;cursor:pointer;padding:20px;background:rgba(47,180,75,.0875);border-radius:15px}.igd-getting-started .log-header span{font-size:1rem;font-weight:500;margin-left:10px}.igd-getting-started .log-header span.log-version{background:#2fb44b;color:#fff;padding:5px 10px;border-radius:5px}.igd-getting-started .log-header i{margin-right:auto;background:#2fb44b;display:flex;align-items:center;justify-content:center;color:#fff;border-radius:50%;height:25px;width:25px}.igd-getting-started .log-body{display:none}.igd-getting-started .log-body .log-section{padding-bottom:10px;border-bottom:1px solid rgba(47,180,75,.1)}.igd-getting-started .log-body .log-section:last-child{border-bottom:none}.igd-getting-started .log-body .log-item{font-size:1rem;line-height:1.5;margin-bottom:10px;display:flex;align-items:center}.igd-getting-started .log-body .log-item i{display:inline-flex;align-items:center;justify-content:center;margin-left:10px;border-radius:50%;height:25px;width:25px;padding:5px}.igd-getting-started .log-body .log-item-new{color:#3265a6}.igd-getting-started .log-body .log-item-new i{background:#3265a6;color:#fff}.igd-getting-started .log-body .log-item-fix{color:#2fb44b}.igd-getting-started .log-body .log-item-fix i{background:#2fb44b;color:#fff}.igd-getting-started .log-body .log-item-enhancement{color:#f5a623}.igd-getting-started .log-body .log-item-enhancement i{background:#f5a623;color:#fff}.igd-getting-started .log-body .log-item-remove{color:#f3754d}.igd-getting-started .log-body .log-item-remove i{background:100% 0}.igd-getting-started .log.active{border:1px solid rgba(47,180,75,.3)}.igd-getting-started .log.active .log-header{border-bottom:1px solid rgba(47,180,75,.3);border-bottom-right-radius:0;border-bottom-left-radius:0}.igd-getting-started .log.active .log-body{display:block;padding:20px}.igd-getting-started .free-vs-pro h2 span{margin:0 10px}.igd-getting-started .free-vs-pro h2 span:first-child{color:#7a7a7a}.igd-getting-started .free-vs-pro h2 span:last-child{color:#2fb44b}.igd-getting-started .features-list{background:#eff3fe;border-radius:15px}.igd-getting-started .features-list .list-header{display:flex;align-items:center;padding:30px;font-size:1.2rem;border-bottom:1px solid rgba(47,180,75,.1);font-weight:600;background:rgba(47,180,75,.0875)}.igd-getting-started .features-list .list-header .feature-title{width:75%}.igd-getting-started .features-list .list-header .feature-free{width:12%}.igd-getting-started .features-list .list-header .feature-pro{width:12%;margin-right:auto;text-align:center}.igd-getting-started .features-list .feature{display:flex;align-items:center;padding:20px 30px;font-size:1rem;font-weight:500;border-bottom:1px solid rgba(47,180,75,.1)}.igd-getting-started .features-list .feature:last-child{border-bottom:none}.igd-getting-started .features-list .feature .feature-title{width:75%}.igd-getting-started .features-list .feature i{color:#fff;background:#2fb44b;width:30px;height:30px;display:inline-flex;align-items:center;justify-content:center;border-radius:10px}.igd-getting-started .features-list .feature i.dashicons-no-alt{background:#7a7a7a}.igd-getting-started .features-list .feature .feature-free{width:12%}.igd-getting-started .features-list .feature .feature-pro{width:12%;margin-right:auto;text-align:center}.igd-getting-started .get-pro-cta{display:flex;align-items:center;background:rgba(47,180,75,.0875);border-radius:15px;padding:30px;margin:60px 0}.igd-getting-started .get-pro-cta .cta-content{display:flex;flex-direction:column;width:60%}.igd-getting-started .get-pro-cta .cta-content h2{margin-bottom:5px;font-size:1.5rem;font-weight:700;line-height:1.3}.igd-getting-started .get-pro-cta .cta-btn{flex:1;display:flex;align-items:center;justify-content:center}.igd-getting-started .get-pro-cta .cta-btn .igd-btn{padding:15px 20px}@media (max-width:767px){.igd-getting-started .get-pro-cta{flex-direction:column;align-items:center;padding:30px 20px;text-align:center}.igd-getting-started .get-pro-cta .cta-content{width:100%;margin-bottom:20px}.igd-getting-started .get-pro-cta .cta-btn{width:100%}}.igd-getting-started .demo-cta{display:flex;align-items:center;background:#fdf6ec;border-radius:15px;padding:30px;margin:60px 0}.igd-getting-started .demo-cta .cta-content{display:flex;flex-direction:column;width:60%}.igd-getting-started .demo-cta .cta-content h2{margin-bottom:5px;font-size:1.5rem;font-weight:700;line-height:1.3}.igd-getting-started .demo-cta .cta-btn{flex:1;display:flex;align-items:center;justify-content:center}.igd-getting-started .demo-cta .cta-btn .igd-btn{padding:15px 20px}@media (max-width:767px){.igd-getting-started .demo-cta{flex-direction:column;align-items:center;padding:30px 20px;text-align:center}.igd-getting-started .demo-cta .cta-content{width:100%;margin-bottom:20px}.igd-getting-started .demo-cta .cta-btn{width:100%}}.igd-getting-started .facebook-cta{display:flex;align-items:center;background:url(../images/getting-started/cta-bg.png) no-repeat center/cover,#eaf7ed;border-radius:15px;padding:30px 60px;margin:60px 0}.igd-getting-started .facebook-cta .cta-content{display:flex;flex-direction:column;width:60%}.igd-getting-started .facebook-cta .cta-content h2{margin-bottom:5px;font-size:1.5rem;font-weight:700;line-height:1.3}.igd-getting-started .facebook-cta .cta-btn{flex:1;display:flex;align-items:center;justify-content:center}.igd-getting-started .facebook-cta .cta-btn .igd-btn{padding:15px 20px}@media (max-width:767px){.igd-getting-started .facebook-cta{flex-direction:column;align-items:center;padding:30px 20px;text-align:center}.igd-getting-started .facebook-cta .cta-content{width:100%;margin-bottom:20px}.igd-getting-started .facebook-cta .cta-btn{width:100%}}.igd-getting-started .faq-item{margin-bottom:30px;border:1px solid #eff3fe;border-radius:15px;overflow:hidden;display:flex;width:100%;flex-direction:column;-webkit-user-select:none;-moz-user-select:none;user-select:none}.igd-getting-started .faq-item .faq-header{font-weight:500;cursor:pointer;display:flex;align-items:center;background:#eff3fe;padding:15px 20px}.igd-getting-started .faq-item .faq-header i{margin-left:15px;font-size:1.2rem;transition:all .3s ease-in-out;background:#fff;color:#333;width:35px;height:35px;display:inline-flex;align-items:center;justify-content:center;border-radius:10px}.igd-getting-started .faq-item .faq-header h3{font-size:1.2rem;margin:0}.igd-getting-started .faq-item .faq-body{display:none;line-height:1.5;padding:10px 20px}.igd-getting-started .faq-item .faq-body p{font-size:1rem;color:#444}.igd-getting-started .faq-item.active .faq-header i{color:#2fb44b;transform:rotate(-180deg)}.igd-getting-started .faq-item.active .faq-body{display:block}#woocommerce-product-data ul.wc-tabs li.upload_options_options a:before{content:"\f13b";font-family:dashicons}.igd-woocommerce{display:inline-flex;float:left;margin-left:10px}.igd-woocommerce .igd-wc-button{display:inline-flex!important;margin-right:auto!important;align-items:center}.igd-woocommerce .igd-wc-button img{margin-left:5px}.upload-box-settings{margin:20px}.upload-box-settings .form-field .description{display:block;clear:both;margin:20px 0 10px 0}.upload-box-settings .form-field .upload_folder_name{width:100%}.igd-wc-upload-wrap{margin:20px 0;display:block}.igd-wc-upload-wrap .upload-button{display:flex!important;align-items:center;width:-moz-max-content;width:max-content;text-align:center;margin-bottom:15px!important;float:none!important}.igd-wc-upload-wrap .upload-button i{margin-left:5px}.igd-wc-upload-wrap .igd-shortcode-uploader{visibility:hidden;width:0;height:0;position:absolute;overflow:hidden;z-index:-1;max-width:500px;clear:both}.igd-wc-upload-wrap .igd-shortcode-uploader .igd-file-uploader-inner .dashicons-cloud-upload{display:none}.igd-wc-upload-wrap .igd-shortcode-uploader .igd-file-uploader{margin:0}.igd-wc-upload-wrap .igd-wc-upload-description{margin:0;clear:both}.igd-wc-upload-wrap .wc-file-list-wrap{margin-top:15px;clear:both}.igd-wc-upload-wrap .wc-file-list-wrap h4{font-size:1.2rem;margin-bottom:10px}.igd-wc-upload-wrap .wc-file-list-wrap .wc-file-list{margin:10px 0;padding:0;list-style:none}.igd-wc-upload-wrap .wc-file-list-wrap .wc-file-list li{display:flex;align-items:center;margin:3px;font-size:12px;font-weight:600;color:#333;transition:all .2s ease-in-out;-webkit-user-select:none;-moz-user-select:none;user-select:none}.igd-wc-upload-wrap .wc-file-list-wrap .wc-file-list li img{margin-left:5px;width:16px}.igd-wc-upload-wrap .wc-file-list-wrap .wc-file-list li .dashicons-no-alt{color:#ff9f10;cursor:pointer;margin-right:15px;margin-left:0}.igd-wc-upload-wrap:has(.upload-button.active) .igd-shortcode-uploader{display:flex;visibility:visible;width:auto;height:auto;position:relative;overflow:visible;z-index:1}.woocommerce-page.woocommerce-checkout form #order_review td.product-name:has(.igd-wc-upload-wrap){flex-wrap:wrap}.igd-wc-uploaded-files{display:flex;flex-direction:column;margin:0!important;padding:0!important}.igd-wc-uploaded-files-wrap{width:30%;padding:0}.igd-wc-uploaded-files li{margin-bottom:5px!important}.igd-wc-uploaded-files a{display:flex;text-decoration:none;color:#555;font-size:.875rem;overflow:hidden;transition:all .2s ease-in-out}.igd-wc-uploaded-files a img{margin-left:5px!important;width:20px!important}.igd-wc-uploaded-files a span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.igd-wc-uploaded-files a:hover{color:#333}.dokan-igd-settings .igd-dokan-settings-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;flex-wrap:wrap;background:#eee;border-radius:7px;padding:10px}.dokan-igd-settings .igd-dokan-settings-header h2{margin:0}.dokan-igd-settings .igd-upload-settings-header{margin-top:50px}.dokan-igd-settings .dokan-igd-ajax-response{width:100%;margin:0;display:none}.dokan-igd-settings .save-upload-settings{padding:15px 20px}.dokan-igd-settings .dokan-control-label{text-align:right}.dokan-igd-settings .wc-radios{margin-top:0;padding:0}.dokan-igd-settings .parent-folder{padding:7px 10px;border-radius:5px;background:#eaeaea;margin-left:20px;font-size:.9rem;color:#555;display:inline-flex;flex-wrap:wrap;align-items:center;width:-moz-max-content;width:max-content;line-height:1}.dokan-igd-settings .parent-folder-item{background:#fff;padding:3px 5px;border-radius:3px;margin-right:10px;font-size:.8rem;display:flex;align-items:center;justify-content:center}.dokan-igd-settings .parent-folder i,.dokan-igd-settings .parent-folder img{margin-left:7px}.dokan-igd-settings .parent-folder .dashicons-no-alt{color:#ff9f10;cursor:pointer;margin-right:7px;margin-left:0}.dokan-igd-settings .parent-folder .select-parent-folder{margin-right:10px}.dokan-igd-settings .folder-naming-template{font-size:1rem;margin-bottom:10px}.dokan-igd-settings .variables{display:flex;flex-wrap:wrap}.dokan-igd-settings .variables .variable{display:flex;align-items:center;margin:3px;padding:3px;border:1px solid #ccc;border-radius:5px;background:#f5f5f5;font-size:12px;font-weight:600;color:#333;cursor:pointer;transition:all .2s ease-in-out}.dokan-igd-settings .variables .variable:hover{background:#e5e5e5}.dokan-igd-settings .variables .variable .variable-name{margin-left:5px}.igd-dokan{display:inline-block;margin-right:10px}.igd-dokan .igd-wc-button{display:inline-flex!important;margin-right:auto!important;align-items:center}.igd-dokan .igd-wc-button img{margin-left:5px}.edd-add-repeatable-row{display:flex;align-items:center}.igd-edd{margin-right:auto;display:inline-flex;float:left}.igd-edd .igd-edd-button{display:inline-flex!important;margin-right:auto!important;align-items:center}.igd-edd .igd-edd-button img{margin-left:5px}.igd-datepicker{background:#fff;border:1px solid rgba(47,180,75,.3);border-radius:7px;border-top:2px solid #47cf64;box-shadow:0 0 5px rgba(0,0,0,.2);font-size:14px;padding:10px;width:250px}.igd-datepicker .ui-datepicker-header{border:none;padding:0;margin-bottom:10px;display:flex;justify-content:space-between;align-items:center}.igd-datepicker .ui-datepicker-header .ui-datepicker-next,.igd-datepicker .ui-datepicker-header .ui-datepicker-prev{background:100% 0;color:#2fb44b;border:1px solid rgba(47,180,75,.3);font-size:20px;font-weight:700;line-height:1;text-shadow:none;padding:0;margin:0;width:30px;height:30px;border-radius:50%;text-align:center;vertical-align:middle;position:relative;top:2px;font-family:Dashicons,serif;display:flex;justify-content:center;align-items:center;cursor:pointer}.igd-datepicker .ui-datepicker-header .ui-datepicker-next:hover,.igd-datepicker .ui-datepicker-header .ui-datepicker-prev:hover{background:#f1f1f1}.igd-datepicker .ui-datepicker-header .ui-datepicker-prev{float:right}.igd-datepicker .ui-datepicker-header .ui-datepicker-prev:before{content:"\f341"}.igd-datepicker .ui-datepicker-header .ui-datepicker-next{order:3}.igd-datepicker .ui-datepicker-header .ui-datepicker-next:before{content:"\f345"}.igd-datepicker .ui-datepicker-header .ui-datepicker-title{font-size:16px;font-weight:700;line-height:1;text-align:center;margin:0;padding:0;text-transform:uppercase;order:2}.igd-datepicker .ui-datepicker-calendar{border:none;width:100%;margin:0;padding:0;border-collapse:collapse}.igd-datepicker .ui-datepicker-calendar th{font-size:12px;font-weight:700;line-height:1;text-align:center;padding:5px 0;text-transform:uppercase}.igd-datepicker .ui-datepicker-calendar td{padding:0;text-align:center}.igd-datepicker .ui-datepicker-calendar td a{display:flex;justify-content:center;align-items:center;padding:5px;color:#000;text-decoration:none;border-radius:50%;transition:all .3s ease;aspect-ratio:1/1}.igd-datepicker .ui-datepicker-calendar td a:hover{background:#47cf64;color:#fff}.igd-datepicker .ui-datepicker-calendar td.ui-datepicker-today a{border:1px solid #47cf64}.igd-datepicker .ui-datepicker-calendar td.ui-datepicker-unselectable a{color:#ccc}.igd-datepicker .ui-datepicker-calendar td.ui-datepicker-current-day a{background:#2fb44b;color:#fff;aspect-ratio:1/1}body.google-drive_page_integrate-google-drive-statistics #wpfooter{display:none}.igd-statistics,.igd-statistics *{box-sizing:border-box}.igd-statistics .statistics-header{display:flex;align-items:center;justify-content:space-between;position:sticky;top:32px;background:#fff;margin:0 -20px 30px 0;padding:15px;z-index:1;border-bottom:1px solid #eaeaea}.igd-statistics .statistics-header .statistics-header-title{font-size:18px;font-weight:600;color:#333;display:flex;align-items:center}.igd-statistics .statistics-header .statistics-header-title img{margin-left:10px}.igd-statistics .statistics-header-desc{margin-right:10px;font-size:14px;font-weight:400}.igd-statistics .statistics-header .statistics-range{display:flex;align-items:center;margin-right:auto}.igd-statistics .statistics-header .statistics-range .date-field-wrap{position:relative;display:flex;margin-left:10px;border:1px solid #ddd;border-radius:10px;overflow:hidden}.igd-statistics .statistics-header .statistics-range .date-field-wrap .date-field-prefix{display:inline-flex;align-items:center;font-size:.875rem;font-weight:400;background:#eee;color:#333;height:inherit;padding:7px}.igd-statistics .statistics-header .statistics-range .date-field-wrap .date-field-prefix span{margin-right:5px}.igd-statistics .statistics-header .statistics-range .date-field-wrap .date-field-suffix{display:inline-flex;align-items:center;vertical-align:middle;padding:7px;height:inherit}.igd-statistics .statistics-header .statistics-range input{height:40px;border:none;border-radius:0;max-width:100px}.igd-statistics .statistics-header .statistics-range input:focus{outline:0;box-shadow:none}.igd-statistics .statistics-header .statistics-range>button{height:40px}.igd-statistics .statistics-header .clear-statistics{margin-right:10px;transform:rotate(-90deg);cursor:pointer}.igd-statistics .statistics-header .clear-statistics-tooltip{opacity:1;padding:15px;border-radius:10px;margin-top:30px;margin-right:0;box-shadow:0 0 10px rgba(0,0,0,.1)}.igd-statistics .statistics-header .clear-statistics-tooltip button{width:100%}.igd-statistics .statistics-header .clear-statistics-tooltip .btn-info{margin-bottom:10px}.igd-statistics .statistics-header .clear-statistics-tooltip:after,.igd-statistics .statistics-header .clear-statistics-tooltip:before{top:30px}@media (max-width:767px){.igd-statistics .statistics-header{flex-direction:column;position:static}.igd-statistics .statistics-header .statistics-header-title{margin-bottom:10px}.igd-statistics .statistics-header .statistics-range{flex-wrap:wrap;justify-content:center}.igd-statistics .statistics-header .statistics-range .date-field-wrap{width:47%;margin-bottom:10px}.igd-statistics .statistics-header .statistics-range .date-field-wrap:nth-child(2){margin-left:0}}.igd-statistics .statistics-summary{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between;margin-bottom:30px;margin-top:30px;margin-left:10px}.igd-statistics .statistics-summary .statistics-summary-item{display:flex;align-items:center;font-size:14px;font-weight:600;transition:all .3s ease;border-radius:15px;padding:2rem 1rem;background:#fff;margin:0 15px;width:calc(25% - 30px);position:relative}.igd-statistics .statistics-summary .statistics-summary-item:before{content:"";position:absolute;top:0;width:90%;height:5px;background:#2fb44b;right:5%}.igd-statistics .statistics-summary .statistics-summary-item.summary-upload:before{background:#70c5ff}.igd-statistics .statistics-summary .statistics-summary-item.summary-preview:before{background:#18b3fd}.igd-statistics .statistics-summary .statistics-summary-item.summary-stream:before{background:#7da2f6}.igd-statistics .statistics-summary .statistics-summary-item:nth-child(1){margin-right:0}.igd-statistics .statistics-summary .statistics-summary-item .statistics-summary-item-icon{margin-left:15px;width:60px;box-shadow:0 0 3px rgba(0,0,0,.1);border-radius:50%}.igd-statistics .statistics-summary .statistics-summary-item .summary-info{display:flex;flex-direction:column}.igd-statistics .statistics-summary .statistics-summary-item .statistics-summary-item-title{font-size:1rem;font-weight:400;color:#7a7a7a;margin-top:5px}.igd-statistics .statistics-summary .statistics-summary-item .statistics-summary-item-count{font-size:2rem;font-weight:700;color:#333;line-height:1}@media (max-width:767px){.igd-statistics .statistics-summary .statistics-summary-item{width:calc(50% - 20px);margin:0 10px 20px 10px}.igd-statistics .statistics-summary .statistics-summary-item:nth-child(3){margin-right:0}}.igd-statistics .statistics-boxes{width:100%;display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:30px}.igd-statistics .statistics-boxes-wrapper{margin-left:15px}.igd-statistics .statistics-boxes.top-upload .statistics-box .box-title i{background:#70c5ff}.igd-statistics .statistics-boxes.top-upload .table-wrapper::-webkit-scrollbar-thumb{background:rgba(112,197,255,.25)}.igd-statistics .statistics-boxes.top-upload .table-wrapper::-webkit-scrollbar-thumb:hover{background:rgba(112,197,255,.5)}.igd-statistics .statistics-boxes.top-upload table thead tr th{background:#70c5ff}.igd-statistics .statistics-boxes.top-upload table tbody tr td{border-bottom:1px dashed rgba(112,197,255,.2)}.igd-statistics .statistics-boxes.top-preview .statistics-box .box-title i{background:#18b3fd}.igd-statistics .statistics-boxes.top-preview .table-wrapper::-webkit-scrollbar-thumb{background:rgba(24,179,253,.25)}.igd-statistics .statistics-boxes.top-preview .table-wrapper::-webkit-scrollbar-thumb:hover{background:rgba(24,179,253,.5)}.igd-statistics .statistics-boxes.top-preview table thead tr th{background:#18b3fd}.igd-statistics .statistics-boxes.top-preview table tbody tr td{border-bottom:1px dashed rgba(24,179,253,.2)}.igd-statistics .statistics-boxes.top-stream .statistics-box .box-title i{background:#7da2f6}.igd-statistics .statistics-boxes.top-stream .table-wrapper::-webkit-scrollbar-thumb{background:rgba(125,162,246,.25)}.igd-statistics .statistics-boxes.top-stream .table-wrapper::-webkit-scrollbar-thumb:hover{background:rgba(125,162,246,.5)}.igd-statistics .statistics-boxes.top-stream table thead tr th{background:#7da2f6}.igd-statistics .statistics-boxes.top-stream table tbody tr td{border-bottom:1px dashed rgba(125,162,246,.2)}.igd-statistics .statistics-boxes.top-search .statistics-box .box-title i{background:#5bd475}.igd-statistics .statistics-boxes.top-search .table-wrapper::-webkit-scrollbar-thumb{background:rgba(47,180,75,.25)}.igd-statistics .statistics-boxes.top-search .table-wrapper::-webkit-scrollbar-thumb:hover{background:rgba(47,180,75,.5)}.igd-statistics .statistics-boxes.top-search table thead tr th{background:#5bd475}.igd-statistics .statistics-boxes.top-search table tbody tr td{border-bottom:1px dashed rgba(47,180,75,.2)}@media (max-width:767px){.igd-statistics .statistics-boxes{flex-direction:column}.igd-statistics .statistics-boxes .statistics-box{width:100%;margin-bottom:15px}}.igd-statistics .statistics-box{width:49%;display:flex;flex-direction:column;background:#fff;padding:30px;border-radius:10px;box-shadow:rgba(149,157,165,.2) 0 8px 24px}.igd-statistics .statistics-box.event-chart,.igd-statistics .statistics-box.event-logs{width:100%;margin-bottom:50px}.igd-statistics .statistics-box .box-title{font-size:1rem;font-weight:500;color:#333;display:flex;align-items:center}.igd-statistics .statistics-box .box-title i{margin-right:auto;cursor:pointer;border-radius:50%;background:#2fb44b;color:#fff;padding:5px;width:auto;height:auto}.igd-statistics .statistics-box .table-wrapper{width:100%;overflow-y:auto;margin:15px 0;max-height:400px}.igd-statistics .statistics-box .table-wrapper thead{position:sticky;top:-1px}.igd-statistics .statistics-box .table-wrapper::-webkit-scrollbar{width:5px;height:5px;border-radius:10px}.igd-statistics .statistics-box .table-wrapper::-webkit-scrollbar-track{background:#f1f1f1;border-radius:10px;margin-top:50px}.igd-statistics .statistics-box .table-wrapper::-webkit-scrollbar-thumb{background:rgba(47,180,75,.3);border-radius:10px}.igd-statistics .statistics-box .table-wrapper::-webkit-scrollbar-thumb:hover{background:rgba(47,180,75,.5)}.igd-statistics .statistics-box table{width:100%;border-collapse:collapse;border-spacing:0;font-size:14px;color:#333;font-weight:600;border:none}.igd-statistics .statistics-box table thead{background:#f5f5f5;padding:10px}.igd-statistics .statistics-box table thead th:nth-child(1){width:62px}.igd-statistics .statistics-box table thead tr th{padding:12px;font-weight:600;border:none;background:#2fb44b;color:#fff}.igd-statistics .statistics-box table thead tr th:first-child{border-top-right-radius:10px;border-bottom-right-radius:10px}.igd-statistics .statistics-box table thead tr th:last-child{border-top-left-radius:10px;border-bottom-left-radius:10px}.igd-statistics .statistics-box table tbody:before{content:"_";display:block;line-height:1em;color:transparent}.igd-statistics .statistics-box table tbody tr{background:100% 0}.igd-statistics .statistics-box table tbody tr td{padding:7px 5px;font-weight:400;border-bottom:1px dashed rgba(47,180,75,.2);vertical-align:middle}.igd-statistics .statistics-box table .sl{display:flex;align-items:center}.igd-statistics .statistics-box table .sl .sl-no{margin-left:10px}.igd-statistics .statistics-box table .col-date{white-space:nowrap}.igd-statistics .statistics-box .no-data{font-size:14px;color:#333;margin-bottom:10px;text-align:center;display:block}.igd-statistics .statistics-box .igd-promo-wrapper{margin-right:-20px;width:calc(100% + 20px);border-radius:0;display:flex;justify-content:center;padding-top:100px;align-items:flex-start}.igd-statistics .statistics-box.event-logs .sl img{width:35px}.igd-statistics .statistics-box.event-logs .table-wrapper{max-height:600px}.igd-tinymce-modal{min-height:100%}.igd-tinymce-modal,.igd-tinymce-modal *{box-sizing:border-box}.igd-tinymce-modal:has(.igd-tinymce-types-wrap){height:auto}.igd-tinymce-modal .igd-module-builder-modal-header .header-title img{width:40px;margin-left:10px}.igd-tinymce-modal .igd-module-builder-modal-header button{margin:0 5px}.igd-tinymce-modal .igd-module-builder-modal-header button.btn-back{color:#555;border-color:#6f6f6f;background:100% 0}.igd-tinymce-modal .igd-module-builder-modal-header button.btn-back:hover{color:#fff;background-color:#555;border-color:#6f6f6f}.igd-tinymce-modal .igd-module-builder-modal-header button.btn-danger{color:#ff8165;border-color:#ffab98;background:100% 0}.igd-tinymce-modal .igd-module-builder-modal-header button.btn-danger:hover{color:#fff;background-color:#ff8165;border-color:#ffab98}.igd-tinymce-modal .igd-module-builder-modal-header button:nth-child(2){margin-right:auto}.igd-tinymce-modal .igd-tinymce-types{display:flex;flex-wrap:wrap;justify-content:center;margin-top:1rem;padding:1rem}.igd-tinymce-modal .igd-tinymce-types-header{margin-top:2rem}.igd-tinymce-modal .igd-tinymce-types-header h3{margin-bottom:.5rem;font-size:28px}.igd-tinymce-modal .igd-tinymce-types-header span{font-size:1rem;color:#7a7a7a}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type{display:flex;flex-direction:column;align-items:center;justify-content:center;width:calc(25% - 1rem);padding:2rem 1rem;margin:.5rem;border-radius:1rem;cursor:pointer;max-width:300px;overflow:hidden;transition:all .3s ease-in-out;background:#fff;border:1px dashed rgba(47,180,75,.3);position:relative}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type .icon-wrap{width:60px;height:60px;border-radius:50%;display:flex;align-items:center;justify-content:center;margin-bottom:1rem;transition:all .2s ease-in-out}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type .icon-wrap.icon-module{background:#eff3fe}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type .icon-wrap.icon-shortcodes{background:#eaf7ed}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type .icon-wrap.icon-browser{background:#f5f8ff}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type .icon-wrap.icon-uploader{background:#eaf7ed}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type .icon-wrap.icon-search{background:#e4ffde}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type .icon-wrap.icon-gallery{background:#ece8ff}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type .icon-wrap.icon-slider{background:#e9f0ff}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type .icon-wrap.icon-media{background:#fff6f5}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type .icon-wrap.icon-embed{background:#ecf7ff}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type .icon-wrap.icon-download{background:#eaf7ed}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type .icon-wrap.icon-view{background:#f5f8ff}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type .icon-wrap img{width:32px}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type-title{margin-bottom:1rem;font-weight:600;font-size:1.1rem}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type-description{font-size:.875rem;font-weight:400;color:#7a7a7a;line-height:1.5}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type:hover{background:rgba(47,180,75,.3)}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type:hover .icon-wrap{transform:scale(1.1)}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type .pro-badge{position:absolute;top:10px;left:10px;background:#fdb837;color:#fff;padding:7px;border-radius:7px;font-size:12px;font-weight:400;display:flex;align-items:center;justify-content:center;line-height:1;box-shadow:0 0 5px rgba(0,0,0,.1);transition:all .3s ease}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type .pro-badge i{height:auto;width:auto;font-size:18px;margin-left:3px}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type.pro-feature{border-color:#fdb837}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type.pro-feature:hover{background:rgba(253,184,55,.1)}.igd-tinymce-modal .igd-module-shortcodes{max-width:500px;margin:auto;align-items:center;text-align:center;border-color:#555!important;box-shadow:0 0 .2rem rgba(0,0,0,.1);border-radius:.5rem;background-color:#fff;padding:3rem 5rem}.igd-tinymce-modal .igd-module-shortcodes h2{margin:0 0 1rem 0;font-size:28px}.igd-tinymce-modal .igd-module-shortcodes .description{display:block;line-height:1.5;margin-bottom:1rem;font-size:.875rem}.igd-tinymce-modal .igd-module-shortcodes .components-select-control{width:100%}.igd-tinymce-modal .igd-module-shortcodes .components-input-control__backdrop,.igd-tinymce-modal .igd-module-shortcodes .components-select-control__input{height:45px!important;border-radius:.5rem!important;border-color:rgba(47,180,75,.3)!important;background-color:rgba(47,180,75,.05)!important}.igd-shortcode-wrap{-webkit-user-select:none;-moz-user-select:none;user-select:none;overflow-y:auto;margin-bottom:1rem;color:#333;box-sizing:border-box}.igd-shortcode-wrap *{box-sizing:inherit}.igd-shortcode-wrap::-webkit-scrollbar{width:5px}.igd-shortcode-wrap::-webkit-scrollbar-thumb{background:var(--color-primary-light);border-radius:10px}.igd-shortcode-wrap::-webkit-scrollbar-track{background:#ddd;border-radius:10px}.igd-shortcode-wrap.igd-shortcode-browser,.igd-shortcode-wrap.igd-shortcode-gallery,.igd-shortcode-wrap.igd-shortcode-search{border:1px solid #ddd;border-radius:.5rem}.igd-shortcode-wrap.igd-shortcode-browser .igd-file-browser,.igd-shortcode-wrap.igd-shortcode-gallery .igd-file-browser,.igd-shortcode-wrap.igd-shortcode-search .igd-file-browser{align-items:stretch}.igd-shortcode-wrap.igd-shortcode-browser .igd-file-browser .igd-details,.igd-shortcode-wrap.igd-shortcode-browser .igd-file-browser .igd-file-browser-header,.igd-shortcode-wrap.igd-shortcode-gallery .igd-file-browser .igd-details,.igd-shortcode-wrap.igd-shortcode-gallery .igd-file-browser .igd-file-browser-header,.igd-shortcode-wrap.igd-shortcode-search .igd-file-browser .igd-details,.igd-shortcode-wrap.igd-shortcode-search .igd-file-browser .igd-file-browser-header{top:0}.igd-shortcode-wrap.igd-shortcode-search .igd-file-browser-header{height:70px}.igd-shortcode-wrap.igd-shortcode-search .igd-file-browser-header .header-action{width:100%}.igd-shortcode-wrap.igd-shortcode-search .igd-file-browser-header .header-action .igd-search-bar{margin-right:0;width:100%;height:50px;position:relative}.igd-shortcode-wrap.igd-shortcode-audioVideo{overflow:hidden}.igd-shortcode-wrap.igd-shortcode-slider{overflow-y:unset}.igd-shortcode-wrap.igd-shortcode-media{border:1px solid #eee;overflow-y:unset}.igd-video-player video{position:static;transform:none}.igd-video-player audio{height:revert!important}.igd-download-link,.igd-view-link{display:block}.igd-embed-image{max-width:100%}.igd-slider{--slide-height:300px;--slide-gap:5px}.igd-slider .slick-next,.igd-slider .slick-prev{z-index:9}.igd-slider .slick-next:before,.igd-slider .slick-prev:before{display:none}.igd-slider .slick-prev{right:-25px}.igd-slider .slick-next{left:-25px}.igd-slider .slick-dots{position:static}.igd-slider .slick-dots li button:before{font-size:15px}.igd-slider .slider-img-wrap{height:100%;width:100%;position:relative}.igd-slider .slider-img-wrap img{height:100%;width:100%;-o-object-fit:cover;object-fit:cover}.igd-slider .slider-content-wrap{position:absolute;top:0;right:0;left:0;padding:1rem;color:#fff;text-align:center;width:100%;height:100%;opacity:0;background:linear-gradient(to bottom,rgba(0,0,0,.5) 50%,rgba(0,0,0,0) 100%);box-sizing:border-box;transition:all .3s ease-in-out;overflow:hidden;display:flex;align-items:center;justify-content:center}.igd-slider .slider-content-wrap h3{font-size:1rem;margin-bottom:0;color:#fff}.igd-slider .slider-content-wrap p{font-size:.875rem;margin-bottom:0;color:#fff}.igd-slider .slider-actions{display:flex;justify-content:center;align-items:center;margin:10px 0}.igd-slider .slider-actions .slider-action{cursor:pointer;transition:transform .3s ease-in-out}.igd-slider .slider-actions .slider-action.action-download{margin-right:20px}.igd-slider .slider-actions .slider-action svg{width:30px;height:30px;fill:#fff}.igd-slider .slider-actions .slider-action:hover{transform:scale(1.1)}.igd-slider .slick-slide{height:var(--slide-height)}.igd-slider .slick-slide>div{height:100%;position:relative;margin:0 var(--slide-gap)}.igd-slider .slick-slide .slider-item-wrap{position:absolute;width:100%;height:100%}.igd-slider .slick-slide:hover .slider-content-wrap{opacity:1}.igd-access-denied-placeholder{max-width:500px;margin:20px auto;padding:2rem;background:#f1f1f1;border-radius:.5rem;text-align:center}.igd-access-denied-placeholder img{max-width:100px;margin-bottom:15px}.igd-access-denied-placeholder h3{font-size:1.5rem;font-weight:600;margin-bottom:1rem}.igd-access-denied-placeholder p{font-size:1rem;margin-bottom:1rem;color:#555}.igd-disqus-wrap{display:none}.igd-admin-notice{margin-bottom:10px!important;display:flex;padding:10px!important}.igd-admin-notice .notice-main{display:flex;flex-direction:column}.igd-admin-notice .notice-image{margin-left:15px}.igd-admin-notice .notice-image img{width:90px}.igd-admin-notice .notice-text p{line-height:1.5;font-size:.85rem;margin:0;padding:0}.igd-admin-notice .notice-actions{display:flex;align-items:center;margin-top:10px}.igd-admin-notice .notice-actions a{margin-left:15px;text-decoration:none;transition:all .3s ease-in-out}.igd-admin-notice .notice-actions a:last-child{margin-left:0}.igd-admin-notice .notice-actions a.button-primary{background:#248c3a;border-color:#47cf64;padding:3px 10px}.igd-admin-notice .notice-actions a.button-primary:hover{background:#2fb44b}.igd-rating-notice .notice-overlay-wrap{position:fixed;top:0;right:0;background:rgba(0,0,0,.5);width:100%;height:100%;align-items:center;justify-content:center;display:none;z-index:9999}.igd-rating-notice .notice-overlay-wrap .notice-overlay{background:#fff;width:-moz-max-content;width:max-content;padding:30px;border-radius:15px;position:relative}.igd-rating-notice .notice-overlay-wrap .notice-overlay h4{margin-top:0;margin-bottom:10px}.igd-rating-notice .notice-overlay-wrap .notice-overlay-actions{display:flex;flex-flow:column;line-height:1.8}.igd-rating-notice .notice-overlay-wrap .notice-overlay-actions a{text-decoration:none}.igd-rating-notice .notice-overlay-wrap .notice-overlay-actions a:nth-child(2){color:#000}.igd-rating-notice .notice-overlay-wrap .notice-overlay-actions a:nth-child(3){color:#777}.igd-rating-notice .notice-overlay-wrap .notice-overlay-actions a:hover{color:#248c3a}.igd-rating-notice .notice-overlay-wrap .notice-overlay .close-notice{position:absolute;top:-5px;left:-5px;border-radius:30px;border:1px solid transparent;font-size:16px;cursor:pointer;width:30px;height:30px;line-height:30px;display:flex;align-items:center;justify-content:center;transition:all .3s ease-in-out}.igd-rating-notice .notice-overlay-wrap .notice-overlay .close-notice:hover{color:#f96;border-color:#f96}.igd-account-notice h4{font-size:1rem;margin:5px 0}.igd-acf-field .igd-items-table .file-actions .button{display:inline-flex;align-items:center}.igd-acf-field .igd-acf-button{display:flex;align-items:center;margin-top:15px}.igd-acf-field .igd-acf-button img{margin-left:7px}body.tutor-screen-course-builder .tutor-dropdown-icon-pack[data-video_source=google_drive] [data-for=google_drive]{display:block}.tutor-video-upload-wrap:has(.tutor-dropdown-icon-pack[data-video_source=google_drive]) .video_source_wrap_google_drive{display:block!important}.video_source_wrap_google_drive .google_drive-video-data{display:none}.video_source_wrap_google_drive.tutor-has-video .google_drive-video-data{display:block}.video_source_wrap_google_drive.tutor-has-video .video-metabox-source-google_drive-upload{display:none}.tutor_lesson_modal_form .tutorIgdUploadAttachmentBtn{margin-right:15px}.tutor_lesson_modal_form .igd-tutor-attachment i.tutor-icon-brand-google-drive{position:absolute;left:10px;top:10px}.et-fb-modules-list .igd_browser,.et-fb-modules-list .igd_download,.et-fb-modules-list .igd_embed,.et-fb-modules-list .igd_gallery,.et-fb-modules-list .igd_media,.et-fb-modules-list .igd_search,.et-fb-modules-list .igd_shortcodes,.et-fb-modules-list .igd_slider,.et-fb-modules-list .igd_uploader,.et-fb-modules-list .igd_view{max-height:100px!important}.et-fb-modules-list .igd_browser:before,.et-fb-modules-list .igd_download:before,.et-fb-modules-list .igd_embed:before,.et-fb-modules-list .igd_gallery:before,.et-fb-modules-list .igd_media:before,.et-fb-modules-list .igd_search:before,.et-fb-modules-list .igd_shortcodes:before,.et-fb-modules-list .igd_slider:before,.et-fb-modules-list .igd_uploader:before,.et-fb-modules-list .igd_view:before{content:""!important;height:30px;display:block;background-size:contain;background-repeat:no-repeat;background-position:center center;margin-bottom:10px!important}.et-fb-modules-list .igd_browser .et_module_title,.et-fb-modules-list .igd_download .et_module_title,.et-fb-modules-list .igd_embed .et_module_title,.et-fb-modules-list .igd_gallery .et_module_title,.et-fb-modules-list .igd_media .et_module_title,.et-fb-modules-list .igd_search .et_module_title,.et-fb-modules-list .igd_shortcodes .et_module_title,.et-fb-modules-list .igd_slider .et_module_title,.et-fb-modules-list .igd_uploader .et_module_title,.et-fb-modules-list .igd_view .et_module_title{line-height:1.5!important}.et-fb-modules-list .igd_browser:before{background-image:url(../images/shortcode-builder/types/browser.svg)}.et-fb-modules-list .igd_uploader:before{background-image:url(../images/shortcode-builder/types/uploader.svg)}.et-fb-modules-list .igd_gallery:before{background-image:url(../images/shortcode-builder/types/gallery.svg)}.et-fb-modules-list .igd_media:before{background-image:url(../images/shortcode-builder/types/media.svg)}.et-fb-modules-list .igd_search:before{background-image:url(../images/shortcode-builder/types/search.svg)}.et-fb-modules-list .igd_embed:before{background-image:url(../images/shortcode-builder/types/embed.svg)}.et-fb-modules-list .igd_view:before{background-image:url(../images/shortcode-builder/types/view.svg)}.et-fb-modules-list .igd_download:before{background-image:url(../images/shortcode-builder/types/download.svg)}.et-fb-modules-list .igd_shortcodes:before{background-image:url(../images/shortcode-builder/types/shortcodes.svg)}.et-fb-modules-list .igd_slider:before{background-image:url(../images/shortcode-builder/types/slider.svg)}#igd-app *{box-sizing:border-box}#igd-shortcode-builder *{box-sizing:border-box}.igd_file_browser_page #wpcontent{padding-right:0}.igd_file_browser_page #wpbody-content{padding-bottom:0}.igd_file_browser_page #wpfooter{display:none}.igd_file_browser_page .igd-body,.igd_file_browser_page .igd-details-wrap,.igd_file_browser_page .igd-sidebar-wrap{min-height:calc(100vh - 92px)}@media (min-width:992px){.igd_file_browser_page .igd-details-wrap,.igd_file_browser_page .igd-sidebar-wrap{top:92px}}body.igd-admin-page #wpbody-content>div.error:not(.igd-admin-notice),body.igd-admin-page #wpbody-content>div.notice:not(.igd-admin-notice),body.igd-admin-page #wpbody-content>div.updated:not(.igd-admin-notice){display:none!important}body.igd-admin-page #wpfooter{display:none}li#toplevel_page_integrate-google-drive img{width:20px}li#toplevel_page_integrate-google-drive .wp-submenu a[href="admin.php?page=integrate-google-drive-getting-started"]{color:#fbbc04!important}li#toplevel_page_integrate-google-drive .wp-submenu a[href="admin.php?page=integrate-google-drive-getting-started"]{border-top:1px solid hsla(0,0%,100%,.2);border-bottom:1px solid hsla(0,0%,100%,.2);padding:8px 12px;display:flex;align-items:center;margin:6px 0}li#toplevel_page_integrate-google-drive .wp-submenu a[href="admin.php?page=integrate-google-drive-recommended-plugins"]{margin-top:6px;padding-top:8px;padding-left:0;border-top:1px solid hsla(0,0%,100%,.2)}li#toplevel_page_integrate-google-drive .wp-submenu a[href="admin.php?page=integrate-google-drive-account"]{margin-top:6px;padding-top:8px;border-top:1px solid hsla(0,0%,100%,.2)}li#toplevel_page_integrate-google-drive .wp-submenu li:last-child a{border-bottom:0;margin-bottom:0}.igd-pro-modal{width:350px;background:#111;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:30px 20px;border-radius:12px;box-shadow:0 0 10px rgba(0,0,0,.2);position:relative;text-align:center}.igd-pro-modal-wrap{width:100%;height:100%;position:fixed;top:0;right:0;z-index:99999999;background:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center}.igd-pro-modal .igd-pro-modal-close{position:absolute;top:15px;left:15px;cursor:pointer;font-size:30px;color:#777;padding:10px}.igd-pro-modal img{width:200px;position:absolute;top:-80px}.igd-pro-modal h3{font-size:1.2rem;font-weight:600;color:#fff;margin:7px 0 2px}.igd-pro-modal h2{color:#ff9458;margin:20px 0 20px 0;font-size:2.5rem;font-weight:700}.igd-pro-modal h2 .upto{font-size:14px;margin-left:5px}.igd-pro-modal p{font-size:.875rem;color:#999;margin-bottom:24px;line-height:1.2;margin-top:7px}.igd-pro-modal a{padding:15px 20px}.igd-pro-modal a:hover{color:#fff}.igd-pro-modal .discount{display:flex;align-items:center;justify-content:center;flex-direction:column;position:relative;margin:60px 0 15px}.igd-pro-modal .discount-special{color:#ff631a;position:absolute;font-size:28px;top:-24px;background:#111;padding:5px;text-transform:uppercase}.igd-pro-modal .discount-text{border:2px solid #ff631a;font-size:36px;padding:20px 20px 22px;border-radius:5px;font-weight:700;color:#ff631a}.igd-pro-modal .timer{display:flex;align-items:center;text-align:center}.igd-pro-modal .timer>div{display:inline-block;margin:0 14px;width:47px;background-size:contain;line-height:40px;background:url(../images/timer-bg.svg) no-repeat 100% 0}.igd-pro-modal .timer>div span:first-child{font-size:28px;color:#fff;height:47px;margin:0 0 2px;display:flex;align-items:center;justify-content:center;position:relative;z-index:1}.igd-pro-modal .timer>div span:last-child{font-family:Arial,serif;font-size:12px;text-transform:uppercase;color:#999}.igd-pro-modal-actions{margin-top:10px}
  • integrate-google-drive/trunk/assets/css/admin.css

    r2996843 r3004719  
    1 .igd-btn{cursor:pointer;width:-moz-max-content;width:max-content;display:flex;align-items:center;color:#fff;padding:8px 12px;border-radius:5px;border:1px solid transparent;line-height:1;text-decoration:none;transition:all .2s ease-in-out;font-size:.875rem}.igd-btn i{margin-right:7px}.igd-btn i:nth-child(2){margin-right:0;margin-left:7px}.igd-btn .igd-spinner{margin:2px 10px 0 0}.igd-btn.btn-primary{background-color:#2fb44b}.igd-btn.btn-primary:hover{background-color:#248c3a}.igd-btn.btn-secondary{background-color:#f1f1f1;border-color:#f1f1f1}.igd-btn.btn-secondary:hover{background-color:#e6e6e6}.igd-btn.btn-success{background-color:#00d084;border-color:#00d084}.igd-btn.btn-success:hover{background-color:#00c674}.igd-btn.btn-warning{background-color:#f9d6b7;color:#a65300}.igd-btn.btn-warning:hover{background-color:#fc9}.igd-btn.btn-danger{background-color:#f8d7da;color:#d8000c}.igd-btn.btn-danger:hover{background-color:#f5c6cb}.igd-btn.btn-info{background-color:#b4d8e7;color:#1f4e6e}.igd-btn.btn-info:hover{background-color:#00a5e6}.igd-btn.btn-light{background-color:#f1f1f1;border-color:#f1f1f1}.igd-btn.btn-light:hover{background-color:#e6e6e6}.igd-btn.btn-dark{background-color:#0071e6;border-color:#0071e6}.igd-btn.btn-dark:hover{background-color:#0058c6}.igd-btn.btn-link{background-color:transparent;border-color:transparent;color:#0071e6}.igd-btn.btn-link:hover{color:#0058c6}.igd-btn.btn-outline-primary{background-color:transparent;border-color:var(--color-primary);color:var(--color-primary)}.igd-btn.btn-outline-primary:hover{background-color:var(--color-primary);color:#fff}.igd-btn.btn-outline-secondary{background-color:transparent;border-color:#f1f1f1;color:#f1f1f1}.igd-btn.btn-outline-secondary:hover{background-color:#f1f1f1;color:#fff}.igd-btn.btn-outline-success{background-color:transparent;border-color:#00d084;color:#00d084}.igd-btn.btn-outline-success:hover{background-color:#00d084;color:#fff}.igd-btn.btn-outline-warning{background-color:transparent;border-color:#ffc800;color:#ffc800}.igd-btn.btn-outline-warning:hover{background-color:#ffc800;color:#fff}.igd-btn.btn-outline-danger{background-color:transparent;border-color:#ff5b5b;color:#ff5b5b}.igd-btn.btn-outline-danger:hover{background-color:#ff5b5b;color:#fff}.igd-btn.btn-outline-info{background-color:transparent;border-color:#00b5ff;color:#00b5ff}.igd-btn.btn-outline-info:hover{background-color:#00b5ff;color:#fff}.igd-btn.btn-outline-light{background-color:transparent;border-color:#f1f1f1;color:#f1f1f1}.igd-btn.btn-outline-light:hover{background-color:#f1f1f1;color:#fff}.igd-btn.btn-outline-dark{background-color:transparent;border-color:#0071e6;color:#0071e6}.igd-btn.btn-outline-dark:hover{background-color:#0071e6;color:#fff}.igd-btn.btn-outline-link{background-color:transparent;border-color:#0071e6;color:#0071e6}.igd-btn.btn-outline-link:hover{background-color:#0071e6;color:#fff}.igd-btn.disabled{color:#999;cursor:not-allowed;background:#f1f1f1!important;border-color:#ccc}.igd-tooltip{z-index:9999999!important;opacity:1!important}.igd-tooltip:before{z-index:-1!important}.igd-notice{border-radius:5px;border:1px solid #f1f1f1;border-left-width:5px;background:#fff;box-shadow:0 1px 1px 0 rgba(0,0,0,.1);padding:1rem;margin:10px 0;display:flex}.igd-notice .igd-notice-content{margin:0;text-align:left;font-size:.9rem;line-height:1.5;color:#757575}.igd-notice.igd-notice-info{border-color:rgba(0,181,255,.5);background:rgba(0,181,255,.1);border-left-color:#00b5ff}.igd-notice.igd-notice-warning{border-color:rgba(255,200,0,.5);background:rgba(255,200,0,.1);border-left-color:#ffc800}@media (max-width:767px){.igd-notice .igd-notice-content{flex-wrap:wrap}}.igd-hidden{display:none!important}.file-item-checkbox{cursor:pointer;display:none;border-radius:50%;transition:all .3s ease;width:-moz-max-content;width:max-content;padding:5px}.file-item-checkbox .box{width:20px;height:20px;border:1px solid #e5e5e5;border-radius:50%;display:flex;align-items:center;justify-content:center;transition:all .3s ease;position:relative;box-shadow:rgba(0,0,0,.05) 0 6px 24px 0,rgba(0,0,0,.08) 0 0 0 1px}.file-item-checkbox .box:hover{border-color:var(--color-primary);box-shadow:0 0 0 2px var(--color-primary-lighter)}.file-item-checkbox:hover{background-color:rgba(0,0,0,.15)}.file-item-checkbox:hover .box{box-shadow:0 0 0 2px var(--color-primary-lighter)}.file-item-checkbox.checked{background-color:rgba(0,0,0,.15)}.file-item-checkbox.checked .box{border-color:var(--color-primary-lighter);background:var(--color-primary);color:#fff;box-shadow:0 0 0 1px var(--color-primary-lighter)}.file-item-checkbox.checked .box:after{content:"";width:5px;height:10px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg);box-sizing:border-box;margin-top:-2px}.igd-swal{z-index:99999!important}.igd-swal .swal2-confirm{background-color:#2fb44b!important}.igd-swal .swal2-close:focus{background:0 0;color:inherit;box-shadow:none}.igd-swal .swal2-cancel,.igd-swal .swal2-deny{background-color:#f08080!important}.igd-swal.save-settings-toast .swal2-popup{display:flex!important;padding:10px}.igd-swal.save-settings-toast .swal2-popup .swal2-html-container{margin-left:5px}.igd-swal.igd-swal-toast .swal2-popup{display:flex!important;padding:10px}.igd-swal.igd-swal-toast .swal2-popup .swal2-html-container{margin-left:5px}.igd-swal .swal2-input{width:auto!important}.igd-swal .swal2-title{font-size:1.2rem;color:#333;font-weight:500}.igd-swal .swal2-html-container{font-size:1rem;color:#555}.igd-swal .swal2-textarea:focus{border-color:#ddd!important;box-shadow:none!important}.igd-swal.igd-review-remind-swal .swal2-deny{background-color:#999!important}.igd-loading-spinner{display:flex;justify-content:center;margin-top:3rem}.igd-loading-spinner svg{width:2.5rem;height:2.5rem}.igd-divi-loading-spinner{display:flex;justify-content:center}.igd-divi-loading-spinner svg{width:100px;height:100px}.igd-spinner{border:2px solid #f3f3f3;border-top:2px solid #3498db;border-radius:50%;width:20px;height:20px;animation:igd-spin 2s linear infinite;display:flex}.igd-spinner.spinner-large{border-width:4px;width:50px;height:50px;animation:igd-spin 1s linear infinite;margin:30px auto}@keyframes igd-spin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.igd-disabled{pointer-events:none!important}.google-drive_page_integrate-google-drive-shortcode-builder{background:#f7f8fa}.google-drive_page_integrate-google-drive-shortcode-builder #wpfooter{display:none}@media (max-width:767px){.google-drive_page_integrate-google-drive-shortcode-builder #wpcontent{padding-right:10px}}.igd-shortcode-builder{width:calc(100% + 20px);margin-left:-20px}@media (max-width:767px){.igd-shortcode-builder{width:100%;margin-left:0}}.igd-shortcode-builder *{box-sizing:border-box}.igd-shortcode-builder-header{display:flex;flex-wrap:wrap;align-items:center;background:#fff;padding:12px 15px;border-bottom:1px solid #e5e5e5;justify-content:space-between;z-index:99;position:sticky;top:32px}.igd-shortcode-builder-header .header-title{display:flex;align-items:center;font-size:1.2rem;font-weight:500;cursor:pointer}.igd-shortcode-builder-header .header-title img{margin-right:10px}.igd-shortcode-builder-header .header-title .shortcode-title{background:#fff;border-radius:7px;padding:5px 12px;border:1px solid rgba(92,99,126,.3);position:relative;margin-left:10px}.igd-shortcode-builder-header .header-actions{display:flex}.igd-shortcode-builder-header .header-actions .btn-back{background:#5c637e;color:#fff;border-color:rgba(47,180,75,.3)}.igd-shortcode-builder-header .header-actions .btn-back:hover{background:#464c61}.igd-shortcode-builder-header .header-actions button{margin-left:15px}@media (max-width:767px){.igd-shortcode-builder-header{margin-left:-10px;margin-right:-10px;padding:10px;top:-50px}.igd-shortcode-builder-header .header-title img{width:30px;margin-right:5px}.igd-shortcode-builder-header .header-title label{font-size:1rem}.igd-shortcode-builder-header .header-title .shortcode-title{height:35px;min-height:unset;margin-left:auto;border-radius:5px;color:#555;font-size:.875rem;font-weight:400}.igd-shortcode-builder-header .header-actions .add-new-btn{margin-left:auto}.igd-shortcode-builder-header .header-actions button{overflow:hidden;padding:7px;font-size:.8rem;margin-left:10px}.igd-shortcode-builder-header .header-actions button:first-child{margin-left:0}.igd-shortcode-builder-header .header-actions button i{margin-right:3px}.igd-shortcode-builder-header .header-actions button span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.igd-shortcode-builder-header:has(.btn-back) .header-title{width:100%}.igd-shortcode-builder-header:has(.btn-back) .header-title label{max-width:35%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-shortcode-builder-header:has(.btn-back) .header-actions{width:100%;justify-content:center;margin-top:15px}}.igd-shortcode-builder .no-item-placeholder{padding:3rem 5rem;border-radius:10px;border:1px solid rgba(47,180,75,.3);background:#fff;margin:50px auto 0;width:-moz-max-content;width:max-content;display:flex;align-items:center;justify-content:center;flex-direction:column}.igd-shortcode-builder .no-item-placeholder img{width:200px;margin-left:-40px}.igd-shortcode-builder .no-item-placeholder h3{color:#7a7a7a;margin:1.5rem;font-weight:500}.igd-shortcode-builder .no-item-placeholder button{margin-top:1rem}.igd-shortcode-builder .selection-actions-wrap{display:flex;align-items:center;margin-top:30px}.igd-shortcode-builder .selection-actions-wrap .selection-count{font-weight:500;background:rgba(47,180,75,.1);padding:10px 10px;border-radius:5px;height:35px;border:1px solid rgba(47,180,75,.3);display:flex;align-items:center;justify-content:center;font-size:.9rem}.igd-shortcode-builder .selection-actions-wrap .igd-btn{margin-left:10px;height:35px}.igd-shortcode-builder .igd-shortcode-list{width:100%;border-collapse:separate;border-spacing:0 20px}.igd-shortcode-builder .igd-shortcode-list-header{display:flex;align-items:center;justify-content:space-between;margin-top:15px;margin-bottom:15px}.igd-shortcode-builder .igd-shortcode-list-header .igd-shortcode-list-title{font-size:1.2rem;font-weight:600;margin:0;display:flex;align-items:center}.igd-shortcode-builder .igd-shortcode-list-header .igd-shortcode-list-title .shortcode-list-count{font-size:1rem;font-weight:400;color:#777;margin-left:7px}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings i{width:25px;height:25px;font-size:25px;color:#5c637e;cursor:pointer}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .list-settings-tooltip{display:flex;flex-wrap:wrap;justify-content:space-between;max-width:580px}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .list-settings-tooltip .settings-columns{width:100%;margin-bottom:10px}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .settings-wrap{margin-bottom:5px}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .settings-wrap h4{margin-top:0;margin-bottom:7px}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .settings-wrap .components-select-control{min-width:100px}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .settings-wrap .components-select-control__input{height:35px}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .settings-wrap .components-input-control__backdrop{border-color:#eee}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .column-options{display:flex}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .column-options .igd-column-setting{margin-bottom:10px;margin-right:10px;border:1px solid #eee;padding:5px 7px;border-radius:5px}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .column-options .igd-column-setting .components-base-control__field{display:flex;align-items:center}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .column-options .components-checkbox-control__input-container{margin-right:5px}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .components-checkbox-control__label{text-transform:capitalize;font-size:.75rem;font-weight:500}.igd-shortcode-builder .igd-shortcode-list-wrap{padding:20px}.igd-shortcode-builder .igd-shortcode-list thead{background:#fff}.igd-shortcode-builder .igd-shortcode-list thead th{padding:24px 15px;font-size:.875rem;color:#555;border-left-width:0;border-right-width:0;margin-bottom:1rem}.igd-shortcode-builder .igd-shortcode-list thead th:first-child{border-radius:10px 0 0 10px}.igd-shortcode-builder .igd-shortcode-list thead th:last-child{border-radius:0 10px 10px 0;text-align:right;padding-right:70px}.igd-shortcode-builder .igd-shortcode-list tbody td,.igd-shortcode-builder .igd-shortcode-list tbody th{padding:15px 20px;font-size:.875rem;color:#555;text-align:left;white-space:nowrap}.igd-shortcode-builder .igd-shortcode-list tbody td:first-child,.igd-shortcode-builder .igd-shortcode-list tbody th:first-child{border-radius:10px 0 0 10px}.igd-shortcode-builder .igd-shortcode-list tbody td:last-child,.igd-shortcode-builder .igd-shortcode-list tbody th:last-child{border-radius:0 10px 10px 0}.igd-shortcode-builder .igd-shortcode-list-item{transition:all .3s ease;background:#fff}.igd-shortcode-builder .igd-shortcode-list-item:hover{background:#eaf2fa}.igd-shortcode-builder .igd-shortcode-list .col-selection{width:60px;text-align:center;padding-right:0}.igd-shortcode-builder .igd-shortcode-list .col-id{width:30px}.igd-shortcode-builder .igd-shortcode-list .col-title{text-align:left}.igd-shortcode-builder .igd-shortcode-list .col-shortcode-type{text-align:left}.igd-shortcode-builder .igd-shortcode-list .col-shortcode-type>div{display:flex;align-items:center;justify-content:flex-start}.igd-shortcode-builder .igd-shortcode-list .col-shortcode-type>div img{margin-right:10px;width:24px}.igd-shortcode-builder .igd-shortcode-list .col-shortcode-status{width:100px;text-align:center}.igd-shortcode-builder .igd-shortcode-list .col-locations{text-align:center}.igd-shortcode-builder .igd-shortcode-list .col-locations .location-count{text-align:center;font-weight:700;cursor:pointer;border:1px solid #5c637e;border-radius:5px;padding:5px 10px;color:#5c637e}.igd-shortcode-builder .igd-shortcode-list .col-locations .location-count:hover{background:#5c637e;color:#fff}.igd-shortcode-builder .igd-shortcode-list .col-locations h3{margin-top:0;margin-bottom:10px;color:#555}.igd-shortcode-builder .igd-shortcode-list .col-locations .locations-tooltip{padding:15px;max-width:250px}.igd-shortcode-builder .igd-shortcode-list .col-locations .location-item{margin-bottom:7px;overflow:hidden}.igd-shortcode-builder .igd-shortcode-list .col-locations .location-item a{text-decoration:none;display:flex;align-items:center;overflow:hidden}.igd-shortcode-builder .igd-shortcode-list .col-locations .location-item a .location-index{margin-right:5px}.igd-shortcode-builder .igd-shortcode-list .col-locations .location-item a .location-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.igd-shortcode-builder .igd-shortcode-list .col-locations .location-item a i{margin-left:7px}.igd-shortcode-builder .igd-shortcode-list .col-created{text-align:center}.igd-shortcode-builder .igd-shortcode-list .col-code>div{display:flex;align-items:center;justify-content:flex-start;position:relative;width:-moz-max-content;width:max-content;margin:auto}.igd-shortcode-builder .igd-shortcode-list .col-code>div code{padding:7px 10px 7px 35px;background:#fff;color:#5c637e;border-radius:7px;border:1px solid rgba(92,99,126,.2);font-size:12px}.igd-shortcode-builder .igd-shortcode-list .col-code>div i{left:3px;color:#5c637e;padding:7px;border-radius:30px;height:auto;width:auto;cursor:pointer;position:absolute;font-size:24px}.igd-shortcode-builder .igd-shortcode-list .col-actions{padding-right:10px;text-align:right}.igd-shortcode-builder .igd-shortcode-list .col-actions button{padding:7px 10px;display:inline-flex;background:#5c637e;height:35px}.igd-shortcode-builder .igd-shortcode-list .col-actions button:hover{background:#464c61}.igd-shortcode-builder .igd-shortcode-list .col-actions .btn-tools{margin-left:15px;padding:0;background:0 0!important;color:#5c637e}.igd-shortcode-builder .igd-shortcode-list .col-actions .btn-tools img{width:26px}.igd-shortcode-builder .igd-shortcode-list .col-actions .options-tooltip{padding:0;border-radius:7px;box-shadow:0 0 10px rgba(0,0,0,.1)}.igd-shortcode-builder .igd-shortcode-list .col-actions .action-tools{display:flex;flex-direction:column}.igd-shortcode-builder .igd-shortcode-list .col-actions .action-tools button{padding:10px 15px;display:flex;background:0 0;color:#555;justify-content:flex-start;border-radius:0;border-bottom:1px solid #e5e5e5;font-size:.875rem;width:100%}.igd-shortcode-builder .igd-shortcode-list .col-actions .action-tools button:hover{background:rgba(92,99,126,.1)}.igd-shortcode-builder .igd-shortcode-list .col-actions .action-tools button:last-child{border-bottom:none;margin-bottom:0}.igd-shortcode-builder .igd-shortcode-list-footer{display:flex;align-items:center;justify-content:center}@media (max-width:767px){.igd-shortcode-builder .igd-shortcode-list-wrap{overflow-x:auto;margin-right:10px}}.igd-shortcode-builder .igd-shortcode-builder-form{overflow-y:unset}.igd-shortcode-builder-form{display:flex;flex-wrap:wrap;align-items:flex-start}.igd-shortcode-builder-form .shortcode-builder-sidebar{width:20%;background:#fff;max-width:200px;padding:20px;position:sticky;top:100px;min-height:100vh;border-right:1px solid #eaeaea}.igd-shortcode-builder-form .shortcode-builder-sidebar.tab-advanced,.igd-shortcode-builder-form .shortcode-builder-sidebar.tab-notifications{top:0}.igd-shortcode-builder-form .shortcode-builder-sidebar.tab-permissions{top:-30px}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs{display:flex;flex-direction:column;align-items:center}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab{display:flex;align-items:center;flex-direction:column;justify-content:center;padding:1rem;background:#e9f9ec;border:1px dashed rgba(47,180,75,.3);width:100%;color:#333;border-radius:10px}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap{max-width:100%;position:relative;cursor:pointer;width:120px;display:flex;align-items:center;justify-content:center}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap:not(:last-child){margin-bottom:40px}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap:not(:last-child):after{content:"";height:40px;width:12px;background:#f7f8fa;position:absolute;top:100%}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap.active .shortcode-tab{background:#47cf64;color:#fff}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap.active .shortcode-tab .tab-icon{background-color:#fff}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap.active:after{background:#47cf64}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap:not(.active):hover .shortcode-tab{background:rgba(47,180,75,.3)}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-icon{width:30px;height:30px;margin-bottom:10px;background-color:#2fb44b;mask-size:cover;-webkit-mask-size:cover}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-icon.icon-type{-webkit-mask:url(../images/shortcode-builder/tabs/type.svg) no-repeat center/cover;mask:url(../images/shortcode-builder/tabs/type.svg) no-repeat center/cover}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-icon.icon-sources{-webkit-mask:url(../images/shortcode-builder/tabs/sources.svg) no-repeat center;mask:url(../images/shortcode-builder/tabs/sources.svg) no-repeat center}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-icon.icon-filters{-webkit-mask:url(../images/shortcode-builder/tabs/filters.svg) no-repeat center;mask:url(../images/shortcode-builder/tabs/filters.svg) no-repeat center}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-icon.icon-advanced{-webkit-mask:url(../images/shortcode-builder/tabs/advanced.svg) no-repeat center;mask:url(../images/shortcode-builder/tabs/advanced.svg) no-repeat center}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-icon.icon-notifications{-webkit-mask:url(../images/shortcode-builder/tabs/notifications.svg) no-repeat center;mask:url(../images/shortcode-builder/tabs/notifications.svg) no-repeat center}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-icon.icon-permissions{-webkit-mask:url(../images/shortcode-builder/tabs/permissions.svg) no-repeat center;mask:url(../images/shortcode-builder/tabs/permissions.svg) no-repeat center}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-name{font-size:.85rem;text-transform:uppercase;font-weight:500;white-space:nowrap}@media (max-width:767px){.igd-shortcode-builder-form .shortcode-builder-sidebar{width:100%;max-width:100%;background:0 0;height:auto;min-height:auto;margin:20px 0;padding:0;position:static;border:0}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs{flex-direction:row}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab{background:0 0;padding:0;border:0;color:#777}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-name{font-size:.7rem;font-weight:400;text-transform:capitalize}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-icon{width:26px;height:26px;margin-bottom:7px;background:#777}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap{width:auto}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap:not(:last-child){margin-bottom:0}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap:not(:last-child):after{display:none}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap.active .shortcode-tab{background:0 0;color:#2fb44b}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap.active .shortcode-tab .tab-icon{background-color:#2fb44b}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap.active .shortcode-tab .tab-name{font-weight:500}}.igd-shortcode-builder-form .shortcode-builder-content{flex:1}.igd-shortcode-builder-form:has(.shortcode-builder-sidebar) .shortcode-builder-content{width:80%;max-width:calc(100% - 200px);min-height:100vh;display:flex;flex-direction:column}.igd-shortcode-builder-form .form-footer{display:flex;align-items:center;justify-content:space-between;margin-top:auto;position:sticky;bottom:0;padding:10px 15px;border-top:1px solid #eaeaea;background:#fff;z-index:9}.igd-shortcode-builder-form .form-footer button:first-child,.igd-shortcode-builder-form .form-footer button:last-child{background:#fff;color:#2fb44b;border-color:rgba(47,180,75,.3)}.igd-shortcode-builder-form .form-footer button:first-child:hover,.igd-shortcode-builder-form .form-footer button:last-child:hover{background:#d5f0db}.igd-shortcode-builder-form .form-footer button.disabled{opacity:.5;pointer-events:none;background:#ddd;border-color:#ddd}.igd-shortcode-builder-form .form-footer button.disabled:hover{background:#ddd;border-color:#ddd}@media (max-width:767px){.igd-shortcode-builder-form .form-footer{margin:0 -10px}.igd-shortcode-builder-form .form-footer button{font-weight:400}.igd-shortcode-builder-form .form-footer button span{font-size:14px}}.igd-shortcode-builder-form.editor-mode .shortcode-builder-sidebar{top:0}.igd-shortcode-builder-form.editor-mode .shortcode-builder-content{padding:0;display:flex;flex-direction:column;height:calc(100vh - 50px)}.shortcode-module{padding:15px}.shortcode-module-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px;width:100%;border-bottom:1px solid #e5e5e5;padding-bottom:10px}.shortcode-module-header .module-title{flex:1;text-align:left}.shortcode-module-header .module-title h2{font-size:1.2rem;margin-bottom:5px;font-weight:600;text-align:left;margin-top:0}.shortcode-module-header .module-title span{font-size:.85rem}.shortcode-module-header .module-type{cursor:pointer;display:flex;align-items:center;margin-left:15px;border:1px solid rgba(47,180,75,.3);padding:10px 12px;border-radius:5px;background:#fff;transition:all .2s ease-in-out}.shortcode-module-header .module-type-title{margin-right:10px;font-weight:400;font-size:1rem}.shortcode-module-header .module-type img{width:20px;height:20px;margin-right:7px}.shortcode-module-header .module-type-name{font-size:1rem;font-weight:500}.shortcode-module-header .module-type:hover{background:rgba(213,240,219,.3)}.shortcode-module-header .shortcode-wrap{display:flex;align-items:center;justify-content:flex-start;position:relative;width:-moz-max-content;width:max-content}.shortcode-module-header .shortcode-wrap code{padding:10px 10px 10px 35px;background:#fff;color:#5c637e;border-radius:7px;border:1px solid rgba(47,180,75,.2);font-size:12px;word-break:break-all;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.shortcode-module-header .shortcode-wrap i{left:3px;color:#5c637e;padding:7px;border-radius:30px;height:auto;width:auto;cursor:pointer;position:absolute;font-size:24px}.shortcode-module .shortcode-types{display:flex;flex-wrap:wrap;justify-content:space-between;gap:20px}.shortcode-module .shortcode-types .shortcode-type{width:calc(25% - 20px);padding:1.5rem 1rem;border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;transition:background .3s ease;position:relative;text-align:center;border:1px dashed rgba(47,180,75,.5);background:#fff}.shortcode-module .shortcode-types .shortcode-type .icon-wrap{width:60px;height:60px;background-color:#2fb44b;border-radius:50%;display:flex;align-items:center;justify-content:center}.shortcode-module .shortcode-types .shortcode-type .icon-wrap.icon-browser{background:#eff3fe}.shortcode-module .shortcode-types .shortcode-type .icon-wrap.icon-uploader{background:#eaf7ed}.shortcode-module .shortcode-types .shortcode-type .icon-wrap.icon-gallery{background:#ece8ff}.shortcode-module .shortcode-types .shortcode-type .icon-wrap.icon-slider{background:#e9f0ff}.shortcode-module .shortcode-types .shortcode-type .icon-wrap.icon-media{background:#fff6f5}.shortcode-module .shortcode-types .shortcode-type .icon-wrap.icon-search{background:#e4ffde}.shortcode-module .shortcode-types .shortcode-type .icon-wrap.icon-embed{background:#ecf7ff}.shortcode-module .shortcode-types .shortcode-type .icon-wrap.icon-download{background:#eaf7ed}.shortcode-module .shortcode-types .shortcode-type .icon-wrap.icon-view{background:#f5f8ff}.shortcode-module .shortcode-types .shortcode-type .icon-wrap img{width:32px;height:32px}.shortcode-module .shortcode-types .shortcode-type>span{font-size:1rem;font-weight:600;margin:20px 0 5px;color:#0a0a0a}.shortcode-module .shortcode-types .shortcode-type .description{font-size:.875rem;font-weight:400;color:#757575;margin-top:5px}.shortcode-module .shortcode-types .shortcode-type.active{background:#47cf64;color:#fff}.shortcode-module .shortcode-types .shortcode-type.active>span{color:#fff}.shortcode-module .shortcode-types .shortcode-type.active .description{color:#fff}.shortcode-module .shortcode-types .shortcode-type:not(.active):hover{background:rgba(47,180,75,.2)}.shortcode-module .shortcode-types .shortcode-type .pro-badge{position:absolute;top:10px;right:10px;background:#fdb837;color:#fff;padding:7px;border-radius:7px;font-size:12px;font-weight:400;display:flex;align-items:center;justify-content:center;line-height:1;box-shadow:0 0 5px rgba(0,0,0,.1);transition:all .3s ease}.shortcode-module .shortcode-types .shortcode-type .pro-badge i{height:auto;width:auto;font-size:18px;margin-right:3px}.shortcode-module .shortcode-types .shortcode-type.pro-feature{border-color:#fdb837}.shortcode-module .shortcode-types .shortcode-type.pro-feature:hover{background:rgba(253,184,55,.1)}.shortcode-module .shortcode-types .shortcode-type:last-child{margin-right:auto}.shortcode-module .settings-field{display:flex;flex-wrap:wrap;margin-bottom:15px;align-items:center;border-radius:10px;padding:12px 18px;background:#fff}.shortcode-module .settings-field-title{font-size:1.3rem;margin-bottom:30px;font-weight:600;text-align:left}.shortcode-module .settings-field-title.field-visibility{margin-top:50px}.shortcode-module .settings-field-label{width:200px;font-weight:600;font-size:1rem;display:flex;justify-content:space-between;text-align:left}.shortcode-module .settings-field-label i{margin-right:7px;color:#777}.shortcode-module .settings-field-label:after{content:":";margin-left:auto}.shortcode-module .settings-field-content{display:flex;flex-direction:column;align-items:flex-start;margin-left:20px;flex:1}.shortcode-module .settings-field-content .components-button i{margin-right:5px}.shortcode-module .settings-field-content .description{font-size:.875rem;margin-top:10px;text-align:left;color:#757575;display:flex;align-items:center;flex-wrap:wrap}.shortcode-module .settings-field-content .description .igd-btn,.shortcode-module .settings-field-content .description a{margin-left:10px;text-decoration:none}.shortcode-module .settings-field-content .description+.description{margin-top:0}.shortcode-module .settings-field.filter-field .filter-field-input{display:flex;flex-direction:column}.shortcode-module .settings-field.filter-field .filter-field-all{display:flex;align-items:center;justify-content:flex-start;margin-top:15px;flex-wrap:wrap}.shortcode-module .settings-field.filter-field .filter-field-all>div{display:flex;align-items:center}.shortcode-module .settings-field.filter-field .filter-field-all>div:first-child{margin-right:20px}.shortcode-module .settings-field.filter-field .filter-field-all-label{margin-right:10px;font-weight:500;font-size:.875rem;white-space:nowrap}.shortcode-module .settings-field.filter-field .filter-field-all .description{width:100%;text-align:left}.shortcode-module .settings-field.filter-field .filter-field-all ul{margin-top:0;padding-left:10px;margin-left:10px;list-style:disc}.shortcode-module .settings-field.filter-field .name-filter-option{display:flex;flex-wrap:wrap;align-items:center;margin-top:10px}.shortcode-module .settings-field.filter-field .name-filter-option h4{margin:0 15px 0 0;font-size:.875rem;font-weight:500}.shortcode-module .settings-field.filter-field .name-filter-option .name-filter-option-item{margin-right:15px;border:1px solid #ddd;border-radius:5px;padding:5px;display:flex;align-items:center;justify-content:center;font-size:.875rem;font-weight:500;color:#777;cursor:pointer;transition:all .3s ease}.shortcode-module .settings-field.filter-field .name-filter-option .name-filter-option-item:hover{background:#f5f8ff;color:#0a0a0a}.shortcode-module .settings-field.filter-field .name-filter-option .components-checkbox-control__input{height:20px;width:20px}.shortcode-module .settings-field.filter-field .name-filter-option .components-checkbox-control__label{margin-left:7px;text-transform:capitalize}@media (max-width:767px){.shortcode-module .settings-field.filter-field .name-filter-option div:not(#jairalok){width:auto;margin-bottom:0}}.shortcode-module .settings-field.sort-field .sort-field-section{display:flex;flex-direction:column}.shortcode-module .settings-field.sort-field .sort-field-section:first-child{margin-right:35px;padding-right:15px;border-right:1px solid #ddd}.shortcode-module .settings-field.sort-field .sort-field-section-wrap{display:flex;margin:15px 30px}.shortcode-module .settings-field.sort-field .sort-field-section-label{margin-bottom:15px;font-weight:500;text-align:left;font-size:.9rem;margin-left:-20px}.shortcode-module .settings-field.sort-field .sort-field-section .sort-item{display:flex;align-items:center;margin-bottom:10px;cursor:pointer;position:relative;font-size:.875rem}.shortcode-module .settings-field.sort-field .sort-field-section .sort-item i{display:none;position:absolute;left:-25px}.shortcode-module .settings-field.sort-field .sort-field-section .sort-item.active{color:#2fb44b}.shortcode-module .settings-field.sort-field .sort-field-section .sort-item.active i{display:block}.shortcode-module .settings-field.filter-users-field .filter-users-group{display:flex;flex-direction:column}.shortcode-module .settings-field .filter-users{margin-top:15px;display:flex;flex-direction:column;border:1px dashed #ddd;padding:15px;border-radius:7px;width:100%}.shortcode-module .settings-field .filter-users-title{font-weight:500;font-size:1rem;margin-bottom:10px;text-align:left;margin-top:0}.shortcode-module .settings-field .filter-users-section{display:flex;align-items:center}.shortcode-module .settings-field .filter-users-section:first-child{margin-right:20px}.shortcode-module .settings-field .filter-users-section-label{margin-right:10px;font-weight:500;font-size:1rem}.shortcode-module .settings-field .filter-users-section-wrap{display:flex;flex-wrap:wrap}.shortcode-module .settings-field .filter-users-section-wrap .description{width:100%;margin-bottom:0}.shortcode-module .settings-field.field-parent-folder .shortcode-module .igd-select-sources-wrap{margin-top:10px}.shortcode-module .settings-field.field-upload-confirmation-message .description{margin-top:-5px;margin-bottom:15px}.shortcode-module .settings-field.field-upload-confirmation-message .wp-editor-wrap{width:100%}.shortcode-module .settings-field.field-upload-confirmation-message .wp-editor-wrap textarea{border:none}.shortcode-module .settings-field.field-upload-confirmation-message .wp-switch-editor{height:29px}.shortcode-module .settings-field.field-upload-confirmation-message textarea{width:100%;border:1px solid #eee;padding:15px;min-width:200px}.shortcode-module .settings-field.field-upload-confirmation-message textarea:focus{outline:0;box-shadow:none}.shortcode-module .settings-field.field-allow-search input[type=text]{width:100%}.shortcode-module .settings-field.field-private-folder input[type=text]{width:100%}.shortcode-module .settings-field.field-private-folder .settings-field-label{margin-top:15px}.shortcode-module .settings-field.field-gallery-image-size .gallery-custom-size-wrap{display:flex}.shortcode-module .settings-field.field-gallery-image-size .gallery-custom-size-wrap .components-base-control:first-child{display:flex;align-items:center}.shortcode-module .settings-field.field-gallery-image-size .gallery-custom-size-wrap .components-base-control:first-child:after{content:"X";margin-left:10px;margin-right:10px;font-weight:500}.shortcode-module .settings-field.field-gallery-image-size .gallery-custom-size-wrap .components-text-control__input{width:110px}.shortcode-module .settings-field.field-access-denied-message{flex-direction:column;align-items:flex-start}.shortcode-module .settings-field.field-access-denied-message .settings-field-label{width:100%}.shortcode-module .settings-field.field-access-denied-message .settings-field-label:after{content:""}.shortcode-module .settings-field.field-access-denied-message .description{margin-top:-5px;margin-bottom:15px}.shortcode-module .settings-field.field-access-denied-message .wp-editor-wrap{width:100%}.shortcode-module .settings-field.field-access-denied-message .wp-editor-wrap textarea{border:none}.shortcode-module .settings-field.field-access-denied-message .wp-switch-editor{height:29px}.shortcode-module .settings-field.field-access-denied-message textarea{width:100%;border:1px solid #eee;padding:15px;min-width:200px}.shortcode-module .settings-field.field-access-denied-message textarea:focus{outline:0;box-shadow:none}.shortcode-module .settings-field .components-select-control select,.shortcode-module .settings-field input[type=email],.shortcode-module .settings-field input[type=number],.shortcode-module .settings-field input[type=text],.shortcode-module .settings-field select{height:40px;border-radius:4px;border:1px solid #ddd;font-size:.8rem;width:350px;max-width:100%;padding:10px 15px;line-height:1}.shortcode-module .settings-field .components-select-control select:disabled,.shortcode-module .settings-field input[type=email]:disabled,.shortcode-module .settings-field input[type=number]:disabled,.shortcode-module .settings-field input[type=text]:disabled,.shortcode-module .settings-field select:disabled{background:#f5f5f5;color:#aaa;cursor:not-allowed}.shortcode-module .settings-field .igd-select{width:400px}.shortcode-module .settings-field .igd-select.filter-users-select{max-width:100%}.shortcode-module .settings-field .igd-select__control.igd-select__control--is-focused{border-color:#2fb44b;box-shadow:none}.shortcode-module .settings-field .igd-select__input{height:auto}.shortcode-module .settings-field .igd-select__input:focus{border:none;box-shadow:none}.shortcode-module .settings-field .igd-select__menu{border-radius:7px;border:1px solid rgba(47,180,75,.3);box-shadow:0 0 5px rgba(0,0,0,.1);z-index:99}.shortcode-module .settings-field .igd-select__menu .igd-select__option{padding:10px 15px;font-size:.8rem;cursor:pointer}.shortcode-module .settings-field .igd-select__menu .igd-select__option:hover{background:rgba(47,180,75,.1)}.shortcode-module .settings-field .igd-select__menu .igd-select__option--is-focused{background:rgba(47,180,75,.1)}.shortcode-module .settings-field .igd-select__multi-value{background:#2fb44b;color:#fff}.shortcode-module .settings-field .igd-select__multi-value .igd-select__multi-value__label{color:#fff}.shortcode-module .settings-field .components-button-group{background:rgba(47,180,75,.1);padding:10px;width:-moz-max-content;width:max-content;border-radius:10px}.shortcode-module .settings-field .components-button-group button{color:#47cf64;box-shadow:inset 0 0 0 1px rgba(47,180,75,.25);margin:0 3px;border-radius:5px;background:#fff}.shortcode-module .settings-field .components-button-group button:first-child{border-top-left-radius:5px;border-bottom-left-radius:5px}.shortcode-module .settings-field .components-button-group button:last-child{border-top-right-radius:5px;border-bottom-right-radius:5px}.shortcode-module .settings-field .components-button-group button.is-primary{z-index:auto;background:#47cf64;color:#fff}.shortcode-module .settings-field .components-button-group button.is-secondary:hover{color:#2fb44b;box-shadow:inset 0 0 0 1px #47cf64}.shortcode-module .settings-field .components-button-group button i{margin-right:5px}.shortcode-module .settings-field .components-range-control{width:350px;margin-top:15px}.shortcode-module .settings-field .components-range-control .components-range-control__wrapper{color:#2fb44b;margin-bottom:0}.shortcode-module .settings-field .components-range-control .components-range-control__wrapper .components-range-control__mark-label{top:20px}.shortcode-module .settings-field .components-range-control .components-range-control__wrapper .components-range-control__thumb-wrapper span{background:#2fb44b}.shortcode-module .settings-field .components-range-control .components-input-control__input{width:auto;height:auto;padding:0 0 0 10px}.shortcode-module .settings-field .components-range-control .components-input-control__backdrop{border-color:#ddd}.shortcode-module .settings-field .components-select-control .components-input-control__backdrop{border-color:#ddd}.shortcode-module .settings-field-sub{display:flex;flex-direction:column;width:100%}.shortcode-module .settings-field-sub .settings-field{flex-direction:column;align-items:flex-start;margin-top:15px;margin-bottom:0;display:flex;border:1px dashed #ddd;padding:10px 15px;border-radius:7px;width:100%}.shortcode-module .settings-field-sub .settings-field-label{margin-top:0;margin-bottom:12px;width:auto}.shortcode-module .settings-field-sub .settings-field-label:after{content:"";display:none}.shortcode-module .settings-field-sub .settings-field-content{width:100%;margin-left:0}.shortcode-module .settings-field-sub .settings-field-content+h4,.shortcode-module .settings-field-sub .settings-field-content>h4{margin-top:15px}@media (max-width:767px){.shortcode-module .shortcode-module-header{flex-flow:column-reverse;align-items:center;text-align:center}.shortcode-module .shortcode-module-header .module-title h2{text-align:center;margin-top:10px}.shortcode-module .shortcode-module-header .module-type{display:none}.shortcode-module .shortcode-module-header .shortcode-wrap{display:none}.shortcode-module .shortcode-types{gap:10px}.shortcode-module .shortcode-types .shortcode-type{width:calc(50% - 5px);text-align:center;padding:1rem}.shortcode-module .settings-field{flex-flow:column;align-items:flex-start;padding:10px}.shortcode-module .settings-field-label{margin-bottom:.5rem;font-size:.875rem;justify-content:flex-start}.shortcode-module .settings-field-label:after{display:none}.shortcode-module .settings-field-content{margin-left:0}.shortcode-module .settings-field input,.shortcode-module .settings-field select{width:100%;height:32px}.shortcode-module .settings-field .igd-select{width:100%}.shortcode-module .settings-field.filter-field .filter-field-all{flex-direction:column;align-items:flex-start;width:100%}.shortcode-module .settings-field.filter-field .filter-field-all div{margin-right:0;display:flex;width:100%}.shortcode-module .settings-field.filter-field .filter-field-all div:first-child{margin-bottom:10px}.shortcode-module .settings-field.filter-field .filter-field-all-label{min-width:70px}.shortcode-module .settings-field .filter-users-section-wrap{flex-direction:column;align-items:flex-start;width:100%}.shortcode-module .settings-field .filter-users-section-wrap .filter-users-section{width:100%}.shortcode-module .settings-field .filter-users-section-wrap .filter-users-section:first-child{margin-bottom:10px}}.igd-module-builder-modal .components-form-toggle,.igd-shortcode-builder .components-form-toggle{width:-moz-max-content;width:max-content;background:#fff;padding:3px;border-radius:15px}.igd-module-builder-modal .components-form-toggle__track,.igd-shortcode-builder .components-form-toggle__track{width:44px;height:22px;border-radius:22px;border-color:#5c637e}.igd-module-builder-modal .components-form-toggle__thumb,.igd-shortcode-builder .components-form-toggle__thumb{background:#5c637e;border:none;width:15px;height:15px;border-radius:25px;top:6px;left:6px}.igd-module-builder-modal .components-form-toggle.is-checked .components-form-toggle__thumb,.igd-shortcode-builder .components-form-toggle.is-checked .components-form-toggle__thumb{background:#fff;transform:translateX(22px)}.igd-module-builder-modal .components-form-toggle.is-checked .components-form-toggle__track,.igd-shortcode-builder .components-form-toggle.is-checked .components-form-toggle__track{background:#47cf64}.igd-module-builder-modal .components-base-control__field,.igd-shortcode-builder .components-base-control__field{margin-bottom:0;display:flex;align-items:center}.igd-module-builder-modal .components-base-control__field .components-checkbox-control__input,.igd-shortcode-builder .components-base-control__field .components-checkbox-control__input{border-color:rgba(92,99,126,.5);margin:0}.igd-module-builder-modal .components-base-control__field .components-checkbox-control__input-container,.igd-shortcode-builder .components-base-control__field .components-checkbox-control__input-container{margin:0}.igd-module-builder-modal .components-base-control__field .components-checkbox-control__input:checked,.igd-shortcode-builder .components-base-control__field .components-checkbox-control__input:checked{background:#47cf64;border-color:#47cf64}@media (max-width:767px){.igd-module-builder-modal,.igd-shortcode-builder{margin-top:0}.igd-module-builder-modal .shortcode-tabs,.igd-shortcode-builder .shortcode-tabs{flex-wrap:wrap;justify-content:space-between}.igd-module-builder-modal .shortcode-tabs .shortcode-tab,.igd-shortcode-builder .shortcode-tabs .shortcode-tab{margin-right:0!important}.igd-module-builder-modal .shortcode-tabs .shortcode-tab .tab-index,.igd-shortcode-builder .shortcode-tabs .shortcode-tab .tab-index{height:2rem;width:2rem}.igd-module-builder-modal .shortcode-tabs .shortcode-tab:not(:last-child):after,.igd-shortcode-builder .shortcode-tabs .shortcode-tab:not(:last-child):after{width:1rem;height:.3rem}.igd-module-builder-modal .shortcode-builder-content,.igd-shortcode-builder .shortcode-builder-content{padding:0;max-width:100%}}.igd-select-sources-wrap{display:flex;flex-wrap:wrap;align-items:flex-start}.igd-select-sources-wrap .source-title-wrap{width:100%;margin-bottom:20px;text-align:left}.igd-select-sources-wrap .source-title-wrap h3{margin-bottom:5px}.igd-select-sources-wrap .source-title-wrap p{margin:0}.igd-select-sources-wrap .igd-file-browser{border:1px solid rgba(47,180,75,.3);border-radius:10px;overflow:hidden;flex:1;height:auto;background:#fff}.igd-select-sources-wrap .igd-file-browser-header{position:static;z-index:9}.igd-select-sources-wrap .igd-file-browser-header .header-title i{color:#555;display:flex;align-items:center;justify-content:center}.igd-select-sources-wrap .igd-file-browser-header .igd-breadcrumb .breadcrumb-item:hover{color:#fff;background:#248c3a}.igd-select-sources-wrap .igd-file-browser .select-btn{position:absolute;color:#fff;right:10px;border:1px solid rgba(47,180,75,.3);z-index:2;display:flex;align-items:center;border-radius:3px;padding:5px;background:#2fb44b;cursor:pointer;line-height:1;transition:background .3s ease;font-size:.875rem}.igd-select-sources-wrap .igd-file-browser .select-btn i{margin-right:0}.igd-select-sources-wrap .igd-file-browser .select-btn span{margin-left:5px;display:none}.igd-select-sources-wrap .igd-file-browser .select-btn.active{background:#ff9f10;border-color:#dc8400}.igd-select-sources-wrap .igd-file-browser .select-btn:hover span{display:block}.igd-select-sources-wrap .igd-file-browser .file-list .file-item:not(.folder-item):hover .select-btn span{display:block}.igd-select-sources-wrap .igd-file-browser .file-list:not(.list-view) .file-item:not(.folder-item) .select-btn{top:10px}.igd-select-sources-wrap .igd-selected-list{width:30%;max-width:300px;margin-left:15px;border:1px solid rgba(47,180,75,.3);border-radius:10px;overflow:hidden;background:#fff;position:sticky;top:120px}.igd-select-sources-wrap .igd-selected-list-header{padding:10px;background:#2fb44b;color:#fff;display:flex;align-items:center;justify-content:space-between}.igd-select-sources-wrap .igd-selected-list-header .header-title{font-size:1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-select-sources-wrap .igd-selected-list-header button{padding:7px 10px;font-size:.8rem;border-radius:5px;background:#ff9f10;border:none}.igd-select-sources-wrap .igd-selected-list-header button span{white-space:nowrap}.igd-select-sources-wrap .igd-selected-list-header button:hover{color:#ff9f10;background:#fff}.igd-select-sources-wrap .igd-selected-list .no-files-message{display:flex;justify-content:center;align-items:center;font-size:1rem;color:#ff9f10;margin:30px auto}.igd-select-sources-wrap .igd-selected-list .no-files-message i{margin-right:5px}.igd-select-sources-wrap .igd-selected-list>p{padding:10px;font-size:.875rem;color:#555;border:1px solid #ddd;margin:30px 10px 10px;border-radius:5px;background:rgba(48,142,225,.1);text-align:center}.igd-select-sources-wrap .igd-selected-list>p span{display:block;margin-top:10px}.igd-select-sources-wrap .no-account-placeholder{width:auto;flex:1;margin-top:0}@media (max-width:767px){.igd-select-sources-wrap{flex-direction:column}.igd-select-sources-wrap .igd-selected-list{margin-left:0}}.selected-item{display:flex;align-items:center;padding:10px 15px;border-bottom:1px solid #ddd;font-size:.875rem;z-index:99}.selected-item .item-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-right:7px}.selected-item .remove-item{color:#fff;background:#ff9f10;border:1px solid #dc8400;display:flex;align-items:center;justify-content:center;height:25px;width:25px;min-width:25px;font-size:18px;border-radius:50%;opacity:.7;margin-left:auto;cursor:pointer}.selected-item .remove-item:hover{opacity:1;background:#fff;color:#ff9f10}.selected-item .dashicons-category,.selected-item .dashicons-move,.selected-item img{margin-right:10px;color:#8f8f8f}.selected-item .dashicons-move{cursor:pointer}.selected-item .dashicons-move:hover{color:#555}.selected-item .file-item{display:flex;align-items:center;overflow:hidden;flex:1;cursor:pointer}.selected-item.sortable-item{border:none}.igd-shortcode-preview,.igd-shortcode-preview *{box-sizing:border-box}.igd-shortcode-preview-container{z-index:99999!important}.igd-shortcode-preview-container,.igd-shortcode-preview-container *{box-sizing:border-box}.igd-shortcode-preview-popup{display:flex!important;align-items:center;justify-content:center;position:absolute!important;grid-column:auto!important;grid-row:auto!important;background:0 0;width:97%!important;height:95%!important}.igd-shortcode-preview-popup .swal2-html-container{width:100%!important;height:100%!important;background:#fff;border-radius:.5rem!important;margin:auto!important}.igd-shortcode-preview-header{display:flex;align-items:center;justify-content:space-between;padding:.8rem;border-bottom:1px solid #ddd;margin-bottom:1rem;position:sticky;top:0;z-index:10;background:#fff;box-shadow:0 .5rem 1rem rgba(0,0,0,.1)}.igd-shortcode-preview-header .header-title i{margin-right:7px}.igd-shortcode-preview-header button i{margin-right:0}.igd-shortcode-preview .preview-inner{text-align:left;padding:1rem 2rem}.swal2-container.swal2-top-end{z-index:99999!important}.igd-module-builder-modal{height:100%;display:flex;flex-direction:column;background:#f7f8fa}.igd-module-builder-modal *{box-sizing:border-box}.igd-module-builder-modal-wrap{height:100%}.igd-module-builder-modal-wrap.inline-select .shortcode-module{padding:0}.igd-module-builder-modal-wrap.inline-select .shortcode-builder-content{height:auto;max-width:100%;min-height:auto}.igd-module-builder-modal-container{z-index:99999999!important}.igd-module-builder-modal-container .swal2-popup{width:95%;height:90vh;padding:0;overflow:hidden}.igd-module-builder-modal-container .swal2-popup .swal2-html-container{margin:0;border-radius:.5rem;overflow-y:auto}.igd-module-builder-modal-header{display:flex;align-items:center;padding:12px 1rem;border-bottom:1px solid #eaeaea;background:#fff;z-index:99;box-shadow:0 0 .5rem rgba(0,0,0,.1);position:sticky;top:0}.igd-module-builder-modal-header .header-title{display:flex;align-items:center}.igd-module-builder-modal-header .header-title i{margin-right:7px}.igd-module-builder-modal-header .header-title h3{font-size:1.2rem;margin:0;font-weight:500}@media (max-width:600px){.igd-module-builder-modal-header .header-title h3{font-size:1rem}}.igd-module-builder-modal-header .close{margin-left:auto;margin-right:15px}.igd-module-builder-modal-header button{padding:7px 10px;font-size:.9rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-module-builder-modal-header .done .igd-spinner{display:none}.igd-module-builder-modal-header .done.loading i{display:none}.igd-module-builder-modal-header .done.loading .igd-spinner{display:inline-block}.igd-module-builder-modal .shortcode-module .media-uploader-post-content{margin-bottom:30px}.igd-module-builder-modal .shortcode-module .media-uploader-post-content textarea{width:100%;height:auto;padding:8px 12px;line-height:27px;vertical-align:top}.igd-module-builder-modal .shortcode-module-header{align-items:flex-start}.igd-module-builder-modal .shortcode-module-header .module-title{line-height:1}.igd-module-builder-modal .shortcode-module .igd-selected-list{top:20px}.igd-module-builder-modal .shortcode-module-body>.settings-field:last-child{margin-bottom:0}.igd-shortcode-builder-form{margin:0;overflow-y:auto;flex:1;display:flex}.igd-shortcode-builder-form .content-sources .settings-field.form-entry-field{margin-top:20px}.igd-shortcode-builder-form .content-sources .settings-field.form-entry-field input[type=text]{width:100%}.igd-shortcode-builder-form .content-sources .form-entry-title{margin-top:30px}.igd-shortcode-builder-form .content-sources #igd-select-files{width:100%;margin-bottom:20px}.igd-shortcode-builder-form .content-sources #igd-select-files .igd-body{max-height:400px}.module-builder-placeholder{display:flex;align-items:center;flex-flow:column;justify-content:center;text-align:center;border:1px solid #eaeaea;padding:2rem;border-radius:10px;max-width:380px;margin:auto;background:#fafafa}.module-builder-placeholder img{width:50px}.module-builder-placeholder h3{font-size:22px;margin-bottom:5px;font-weight:500;color:#333}.module-builder-placeholder p{font-size:.875rem;color:#555}.module-builder-placeholder button{margin-top:10px;padding:10px 15px}.module-builder-placeholder.pro-placeholder h4{margin-top:20px;margin-bottom:0;font-size:1.5rem;color:#ff9458;font-weight:500}.igd-shortcode-data-modal-container .igd-shortcode-data-modal-input{height:150px;padding:1rem;border-radius:.5rem;line-height:1.2;font-size:.878885rem}.igd-shortcode-data-modal-container .swal2-confirm{background:#2fb44b}#igd_data{display:none!important}.igd-form-uploader-trigger>*{pointer-events:none}.igd-file-browser{display:flex;flex-flow:column;align-items:flex-start;width:100%}.igd-file-browser,.igd-file-browser *{box-sizing:border-box}.igd-file-browser .btn-primary{background:var(--color-primary)}.igd-file-browser .btn-primary:hover{background:var(--color-primary-light-alt)}.igd-file-browser-header{display:flex;align-items:center;background:#fff;border-bottom:1px solid #e5e5e5;padding:12px 15px;position:sticky;top:32px;width:100%;z-index:9;height:60px}.igd-file-browser-header .header-title{display:flex;align-items:center;font-size:1rem;font-weight:600;color:#fff}.igd-file-browser-header .header-title i,.igd-file-browser-header .header-title img{margin-right:10px;background:#fff;padding:5px;height:35px;width:35px;border-radius:50%;color:#fff}.igd-file-browser-header .header-action{display:flex;align-items:center;margin-left:auto;justify-content:flex-end}.igd-file-browser-header .header-action-item{margin-left:15px;cursor:pointer;color:#444;background:#f7f8fa;height:40px;width:40px;border-radius:10px;display:flex;align-items:center;justify-content:center;transition:all .2s ease-in-out}.igd-file-browser-header .header-action-item img{width:18px}.igd-file-browser-header .header-action-item:hover{background:var(--color-primary-lighter)}.igd-file-browser-header .user-box{display:flex;align-items:center;width:auto;padding:5px;max-width:250px;height:45px;background:0 0}.igd-file-browser-header .user-box .user-info{display:flex;flex-direction:column;line-height:1;overflow:hidden;text-align:left}.igd-file-browser-header .user-box .user-info span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.igd-file-browser-header .user-box .user-info .user-name{font-size:.9rem;font-weight:600;color:#3d3d3d;margin-bottom:3px}.igd-file-browser-header .user-box .user-info .user-email{color:#7a7a7a;font-weight:300;font-size:.875rem}.igd-file-browser-header .user-box .user-image{width:35px;height:35px;border-radius:50%}.igd-file-browser-header .user-box-modal{display:flex;flex-direction:column;justify-content:flex-start;align-items:center;width:260px;border-radius:10px;max-height:75vh;overflow-y:auto}.igd-file-browser-header .user-box-modal::-webkit-scrollbar{width:5px;display:none}.igd-file-browser-header .user-box-modal::-webkit-scrollbar-track{background:var(--color-primary-lighter)}.igd-file-browser-header .user-box-modal::-webkit-scrollbar-thumb{background:var(--color-primary-light)}.igd-file-browser-header .user-box-modal::-webkit-scrollbar-thumb:hover{background:var(--color-primary)}.igd-file-browser-header .user-box-modal:hover::-webkit-scrollbar{display:block}.igd-file-browser-header .user-box-modal-wrap{border-radius:10px;padding:0;opacity:1;box-shadow:0 1px 0 0 #e5e5e5}.igd-file-browser-header .user-box-modal-wrap:after,.igd-file-browser-header .user-box-modal-wrap:before{left:calc(100% - 45px)}.igd-file-browser-header .user-box-modal-title{font-size:1.2rem;font-weight:500;display:block;position:sticky;background:#fff;top:0;width:100%;text-align:center;padding:15px;box-shadow:0 1px 0 0 #e5e5e5;margin-bottom:7px}.igd-file-browser-header .user-box-modal button{margin:10px auto 20px auto;padding:8px 12px;font-size:.875rem}.igd-file-browser-header .user-box-modal>div:last-child{margin-bottom:15px}.igd-file-browser-header .user-box-account{display:flex;align-items:center;border:1px solid #e5e5e5;padding:7px;border-radius:5px;cursor:pointer;width:calc(100% - 30px);margin:7px}.igd-file-browser-header .user-box-account.active,.igd-file-browser-header .user-box-account:hover{background:var(--color-primary-lighter);color:#000}.igd-file-browser-header .user-box-account img{width:30px;height:30px;border-radius:50%;margin-right:10px}.igd-file-browser-header .user-box-account .account-info{display:flex;flex-flow:column;overflow:hidden;text-align:left;line-height:1.5}.igd-file-browser-header .user-box-account .account-info .account-name{font-size:.9rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-file-browser-header .user-box-account .account-info .account-email{font-size:.8rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#7a7a7a}.igd-file-browser-header .user-box-account .active-badge{background:var(--color-primary);color:#fff;border-radius:50%;position:relative;margin-left:auto;right:0}.igd-file-browser-header .user-box .user-arrow{width:16px;margin-left:10px}@media (max-width:768px){.igd-file-browser-header{top:0;flex-flow:column;align-items:center;height:auto;padding:.5rem}.igd-file-browser-header .header-action{margin-left:0;width:100%;justify-content:center}.igd-file-browser-header .header-action .igd-search-bar input{min-height:35px;height:35px}.igd-file-browser-header .header-action .igd-search-bar i.dashicons-dismiss{margin-left:15px}.igd-file-browser-header .header-action .igd-search-bar i.dashicons-search{height:35px}.igd-file-browser-header .header-action .igd-search-bar.active{position:absolute;width:calc(100% - 20px);z-index:2;height:45px;background:#f7f8fa}.igd-file-browser-header .header-action-item{margin-left:.875rem}.igd-file-browser-header .header-action-item.sidebar-toggle{margin-left:0;margin-right:auto}.igd-file-browser-header .user-box{padding:5px;border-radius:30px;height:40px}.igd-file-browser-header .user-box .user-info{display:none}.igd-file-browser-header .user-box .user-arrow{margin-left:0}.igd-file-browser-header .user-box .user-image{width:30px;height:30px;margin-right:5px}.igd-file-browser-header .user-box-modal-wrap{right:10px;left:auto}}.igd-file-browser .igd-search-bar{display:flex;align-items:center;position:relative;overflow:hidden;margin-bottom:0}.igd-file-browser .igd-search-bar input{width:0;height:0;min-height:0;border:none;transition:all .3s ease;padding:0;margin:0;border:0;background:0 0;box-shadow:none}.igd-file-browser .igd-search-bar input:focus{outline:0;border:none;box-shadow:none}.igd-file-browser .igd-search-bar .search-submit{margin-left:0;display:flex;align-items:center;justify-content:center;margin-bottom:0}.igd-file-browser .igd-search-bar .search-dismiss{display:none;background:0 0;cursor:pointer}.igd-file-browser .igd-search-bar .search-dismiss img{width:16px}.igd-file-browser .igd-search-bar.active{width:auto;padding:5px 15px}.igd-file-browser .igd-search-bar.active input{width:100%!important;margin:0 15px;height:100%}.igd-file-browser .igd-search-bar.active .search-submit{margin-bottom:0}.igd-file-browser .igd-search-bar.active .search-dismiss{display:flex}.igd-file-browser .igd-search-bar.active .search-dismiss svg{margin-bottom:0}.igd-file-browser .igd-search-bar.error input{border:1px solid #f77066}.igd-file-browser-body{display:flex;align-items:flex-start;width:100%;height:100%;position:relative}.igd-file-browser .igd-sort{display:flex;align-items:center}.igd-file-browser .igd-sort-select{font-weight:600;cursor:pointer;padding:3px 5px;border-radius:5px}.igd-file-browser .igd-sort-select:hover{background:#ddd}.igd-file-browser .igd-sort-modal{width:220px;padding:0;border-radius:7px;opacity:1!important;box-shadow:rgba(149,157,165,.2) 0 8px 24px}.igd-file-browser .igd-sort-modal .sort-item{display:flex;align-items:center;margin-bottom:15px;padding-left:25px;cursor:pointer;font-size:.9rem}.igd-file-browser .igd-sort-modal .sort-item i{margin-right:5px;display:none}.igd-file-browser .igd-sort-modal .sort-item.active{color:var(--color-primary);padding-left:0}.igd-file-browser .igd-sort-modal .sort-item.active i{display:inline-block}.igd-file-browser .igd-sort-modal .sort-item:hover{color:var(--color-primary)}.igd-file-browser .igd-sort-modal-inner{display:flex;flex-direction:column}.igd-file-browser .igd-sort-modal-inner-section{border-bottom:1px solid #ddd;padding:15px}.igd-file-browser .igd-sort-modal-inner-section:last-child{border-bottom:0}.igd-file-browser .igd-sort-modal-inner-section-title{font-size:.9rem;margin-bottom:10px;display:block;font-weight:500}.igd-file-browser .igd-breadcrumb{display:flex;align-items:center;overflow:hidden;max-width:70%;flex-wrap:wrap}.igd-file-browser .igd-breadcrumb .breadcrumb-item{font-size:.875rem;display:flex;align-items:center;cursor:pointer;padding:5px;border-radius:5px;line-height:1;font-weight:500;color:#444;white-space:nowrap;position:relative;margin-bottom:0}.igd-file-browser .igd-breadcrumb .breadcrumb-item i{margin-left:3px}.igd-file-browser .igd-breadcrumb .breadcrumb-item i.dashicons-arrow-right-alt2{width:13px;height:15px;font-size:15px}.igd-file-browser .igd-breadcrumb .breadcrumb-item i.dashicons-admin-home{margin-right:5px;margin-left:0}.igd-file-browser .igd-breadcrumb .breadcrumb-item i:last-child{display:none}.igd-file-browser .igd-breadcrumb .breadcrumb-item span{margin-bottom:0;max-width:200px;overflow:hidden;text-overflow:ellipsis}.igd-file-browser .igd-breadcrumb .breadcrumb-item:first-child{margin-left:0}.igd-file-browser .igd-breadcrumb .breadcrumb-item:after{content:"";font-family:Dashicons;margin-left:7px}.igd-file-browser .igd-breadcrumb .breadcrumb-item:not(:last-child):after{content:"\f345"}.igd-file-browser .igd-breadcrumb .breadcrumb-item.active:after{content:"\f140";height:auto;width:auto;font-size:22px;margin-left:3px}.igd-file-browser .igd-breadcrumb .breadcrumb-item:hover{color:var(--color-primary);background:var(--color-primary-lighter)}@media (max-width:768px){.igd-file-browser .igd-breadcrumb{max-width:100%;margin-bottom:10px}}.igd-file-browser .collapsed-breadcrumbs{width:210px;opacity:1!important;box-shadow:rgba(149,157,165,.2) 0 8px 24px;padding:10px 0}.igd-file-browser .collapsed-breadcrumbs-item{cursor:pointer;font-size:.875rem;padding:7px 15px;display:flex;align-items:center}.igd-file-browser .collapsed-breadcrumbs-item:hover{color:var(--color-primary)}.igd-file-browser .collapsed-breadcrumbs-item i{margin-right:5px;font-size:1rem;height:1rem;width:1rem}.igd-file-browser .collapsed-breadcrumbs-item span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}.igd-file-browser .collapsed-breadcrumbs-item:before{content:"\f345";font-family:Dashicons,serif;margin-right:7px}.igd-file-browser .igd-root-placeholder{display:flex;flex-direction:column;align-items:center;width:-moz-max-content;width:max-content;margin:3rem auto;padding:50px 30px;border-radius:15px;min-width:30rem;background:#fff;box-shadow:rgba(149,157,165,.2) 0 2px 2px}.igd-file-browser .igd-root-placeholder .igd-placeholder-svg,.igd-file-browser .igd-root-placeholder img{width:200px;margin-bottom:1rem}.igd-file-browser .igd-root-placeholder-title{font-size:1rem;font-weight:500;margin:15px 0 5px 0;color:var(--color-primary)}.igd-file-browser .igd-root-placeholder-text{color:#7a7a7a}.igd-file-browser .igd-root-placeholder button{margin-top:30px}.igd-file-browser .igd-root-placeholder.empty-folder-placeholder img,.igd-file-browser .igd-root-placeholder.search-folder-placeholder img{width:100px}.igd-file-browser .igd-root-placeholder.search-placeholder .igd-placeholder-svg{width:100px;margin-bottom:1rem}.igd-file-browser .igd-root-placeholder.search-placeholder .igd-root-placeholder-title{margin-bottom:1.5rem}.igd-file-browser .igd-root-placeholder.search-placeholder:not(.empty-placeholder) .igd-root-placeholder-title{margin-top:0;margin-bottom:1.5rem}.igd-file-browser .igd-root-placeholder.search-placeholder .igd-search-bar{border:1px solid #ddd;padding:10px 20px;border-radius:5px}.igd-file-browser .igd-root-placeholder.search-placeholder .igd-search-bar .search-dismiss{display:none}.igd-file-browser .igd-root-placeholder.search-placeholder .igd-search-bar input{margin-left:0}.igd-file-browser .igd-root-placeholder+.igd-file-uploader{position:relative!important;margin:30px auto;right:unset;left:unset;bottom:unset}@media (max-width:767px){.igd-file-browser .igd-root-placeholder{min-width:auto}}.igd-sidebar-wrap{width:20%;max-width:230px;border-right:1px solid #e5e5e5;position:sticky;background:#fff}.igd-sidebar .sidebar-uploader{display:flex;align-items:center;justify-content:center;padding:20px 10px 15px;border-bottom:1px solid #e5e5e5}.igd-sidebar .sidebar-uploader button{padding:7px 10px;font-size:.875rem;transition:background .3s ease;background:var(--color-primary)}.igd-sidebar .sidebar-uploader button.active{background:#fff;color:var(--color-primary);border-color:var(--color-primary-light)}.igd-sidebar .sidebar-uploader button.disabled{background:#ddd}.igd-sidebar .sidebar-uploader button.disabled:hover{background:#ddd!important}.igd-sidebar .sidebar-folders{display:flex;flex-direction:column}.igd-sidebar .sidebar-folders .root-item{padding:10px 15px;cursor:pointer;display:flex;align-items:center;font-size:1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-sidebar .sidebar-folders .root-item img{margin-right:10px}.igd-sidebar .sidebar-folders .root-item.active{background:var(--color-primary-lighter);color:var(--color-primary);border-left:5px solid}.igd-sidebar .sidebar-folders .root-item:hover{color:var(--color-primary)}.igd-sidebar .storage-info-wrap{display:flex;align-items:center;margin-top:30px;border-top:1px solid #e5e5e5;padding:15px}.igd-sidebar .storage-info-wrap i{margin-right:10px}.igd-sidebar .storage-info-wrap .storage-info{display:flex;flex-direction:column;flex:1}.igd-sidebar .storage-info-wrap .storage-info-sidebar{width:100%;height:10px;background:var(--color-primary-lighter);border-radius:5px;position:relative}.igd-sidebar .storage-info-wrap .storage-info-sidebar .storage-info-fill{position:absolute;top:0;left:0;width:0;height:100%;background:var(--color-primary);border-radius:5px}.igd-sidebar .storage-info-wrap .storage-info-sidebar .storage-info-fill.fill-danger{background:#f44336}.igd-sidebar .storage-info-wrap .storage-info span{font-size:.8rem;margin-top:5px}@media (max-width:767px){.igd-sidebar{max-width:80%;height:100%;background:#f5f9fd}.igd-sidebar-wrap{width:100%;max-width:100%;position:absolute;z-index:2;background:rgba(0,0,0,.5);height:100%}}.igd-body{display:flex;flex-direction:column;padding:10px;flex:1;width:100%;height:100%;position:relative;background:#f7f8fa}.igd-body .file-list{display:flex;align-items:flex-start;flex-wrap:wrap;overflow-y:auto}.igd-body .file-list .go-prev{display:flex;align-items:center;flex-direction:row!important;padding:10px;cursor:pointer!important;justify-content:flex-start!important;background:var(--color-primary-lighter);transition:all .3s ease;font-size:1rem;font-weight:300}.igd-body .file-list .go-prev i{margin:0 10px;position:relative;transition:all .3s ease;left:0}.igd-body .file-list .go-prev span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-body .file-list .root-item{flex-direction:row!important;padding:10px;cursor:pointer!important;align-items:center;justify-content:flex-start!important;font-size:1rem;background:#fff}.igd-body .file-list .root-item img{margin-right:10px}.igd-body .file-list .root-item .select-btn i{margin-right:0}.igd-body .file-list .file-item{display:flex;flex-direction:column;width:25%;margin:7px;border-radius:5px;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:auto;position:relative;aspect-ratio:1/1;justify-content:flex-end;box-shadow:rgba(0,0,0,.05) 0 6px 24px 0,rgba(0,0,0,.08) 0 0 0 1px;transition:transform .3s ease}.igd-body .file-list .file-item .igd-file-thumbnail{width:100%;height:100%;-o-object-fit:none;object-fit:none;position:absolute;-webkit-user-drag:none;bottom:20px}.igd-body .file-list .file-item .igd-file-thumbnail.has-thumbnail{-o-object-fit:cover;object-fit:cover}.igd-body .file-list .file-item .file-item-footer{display:flex;align-items:center;border-top:1px solid #e5e5e5;z-index:1;background:#fff;line-height:1;height:40px}.igd-body .file-list .file-item .file-item-footer .file-icon-wrap{width:30px;height:30px;display:flex;align-items:center;justify-content:center;margin-right:3px;margin-left:7px}.igd-body .file-list .file-item .file-item-footer .file-icon-wrap .file-icon{width:20px;height:20px;-webkit-user-drag:none}.igd-body .file-list .file-item .file-item-footer .file-icon-wrap .shortcut-icon{position:absolute;left:15px;bottom:8px;border:1px solid #ddd;border-radius:50%}.igd-body .file-list .file-item .file-item-footer .file-item-name{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:.875rem;font-weight:300;margin-right:auto;flex:1;text-align:left}.igd-body .file-list .file-item .file-item-footer .file-item-size{font-size:.75rem;font-weight:400;margin:0 5px;color:#999}.igd-body .file-list .file-item .file-item-footer .file-item-options{margin-left:auto;cursor:pointer;color:#565656;margin-right:7px}.igd-body .file-list .file-item .file-item-footer .file-item-options i{transform:rotate(90deg);font-size:18px;width:18px;height:18px}.igd-body .file-list .file-item .file-item-footer .file-item-options:hover{color:var(--color-primary)}.igd-body .file-list .file-item.active{border:1px solid var(--color-primary-lighter-alt);transform:scale(1.03)}.igd-body .file-list .file-item.active .file-item-footer{background:var(--color-primary-light-alt);color:#fff}.igd-body .file-list .file-item.active .file-item-footer:not(:has(.file-item-checkbox)) .file-icon{background:#fff;border-radius:3px;box-sizing:content-box!important;padding:2px 5px}.igd-body .file-list .file-item.active .file-item-footer:has(.file-item-checkbox) .file-icon,.igd-body .file-list .file-item.active .file-item-footer:has(.file-item-checkbox) .shortcut-icon{display:none}.igd-body .file-list .file-item.active .file-item-footer .file-item-size{color:inherit}.igd-body .file-list .file-item.active .file-item-footer .file-item-options{color:inherit}.igd-body .file-list .file-item.active .file-item-footer .file-item-checkbox{display:flex;padding:0;border:1px solid #fff}.igd-body .file-list .file-item:hover{transform:scale(1.03)}.igd-body .file-list .file-item:hover .file-item-footer .file-icon-wrap:has(.file-item-checkbox) .file-icon,.igd-body .file-list .file-item:hover .file-item-footer .file-icon-wrap:has(.file-item-checkbox) .shortcut-icon{display:none}.igd-body .file-list .file-item:hover .file-item-footer .file-icon-wrap .file-item-checkbox{display:flex}.igd-body .file-list .file-item:hover .file-item-date{color:#fff}.igd-body .file-list .file-item.folder-item{height:50px;justify-content:center;position:relative;order:1}.igd-body .file-list .file-item.folder-item .file-item-footer{border-top:0;height:100%}.igd-body .file-list .file-item:not(.folder-item){order:3}@media (max-width:768px){.igd-body .file-list .file-item .file-item-footer .file-icon-wrap{margin-right:5px}.igd-body .file-list .file-item .file-item-footer .file-icon-wrap:has(.file-item-checkbox) .file-icon,.igd-body .file-list .file-item .file-item-footer .file-icon-wrap:has(.file-item-checkbox) .shortcut-icon{display:none}.igd-body .file-list .file-item .file-item-footer .file-icon-wrap .file-item-checkbox{display:flex}}.igd-body .file-list .folder-file-divider{width:100%;order:2}.igd-body .file-list.list-view{flex-flow:column;align-items:center}.igd-body .file-list.list-view .go-prev{padding:12px 10px!important}.igd-body .file-list.list-view .list-view-header{display:flex;align-items:center;width:100%;font-size:1rem;position:sticky;top:0;margin-top:10px;margin-bottom:15px;z-index:1;line-height:1}.igd-body .file-list.list-view .list-view-header .col-name{width:50%;padding-left:50px}.igd-body .file-list.list-view .list-view-header .col-size{width:20%;text-align:center}.igd-body .file-list.list-view .list-view-header .col-modified{width:25%;text-align:center}.igd-body .file-list.list-view .list-view-header:not(:has(.col-modified)) .col-name,.igd-body .file-list.list-view .list-view-header:not(:has(.col-size)) .col-name{width:70%}.igd-body .file-list.list-view .list-view-header:not(:has(.col-size)):not(:has(.col-modified)) .col-name{width:90%}.igd-body .file-list.list-view .file-item{width:100%!important;overflow:visible;margin:0;border-radius:0;padding:5px 10px;font-size:.875rem;flex-direction:row;align-items:center;justify-content:space-between;border:1px solid transparent;border-bottom-color:#eee;box-shadow:none;aspect-ratio:auto;background:#fff}.igd-body .file-list.list-view .file-item .file-item-date{width:20%;font-size:.75rem;font-weight:400;margin:0 5px;color:#999;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}.igd-body .file-list.list-view .file-item.active{transform:none;background:var(--color-primary-lighter-alt);color:#fff}.igd-body .file-list.list-view .file-item.active .file-item-date{color:inherit}.igd-body .file-list.list-view .file-item:hover{transform:none;background:var(--color-primary-lighter-alt);color:#fff}.igd-body .file-list.list-view .file-item:hover .file-item-footer .file-item-options{color:inherit}.igd-body .file-list.list-view .file-item:hover .file-item-size{color:inherit}.igd-body .file-list.list-view .file-item:hover .file-item-date{color:inherit}.igd-body .file-list.list-view .file-item.folder-item{height:45px}.igd-body .file-list.list-view .file-item .file-item-footer{border:0;width:70%;background:0 0;height:33px}.igd-body .file-list.list-view .file-item .file-item-footer .file-item-name{width:70%}.igd-body .file-list.list-view .file-item .file-item-footer .file-item-size{width:30%;text-align:center}.igd-body .file-list.list-view .file-item .file-item-footer .file-item-options{position:absolute;right:0}.igd-body .file-list.list-view .file-item .file-item-footer .file-icon-wrap{margin-left:0}.igd-body .file-list.list-view .file-item .file-item-footer:not(:has(.file-item-size)) .file-item-name{width:100%}.igd-body .file-list.list-view .file-item:not(:has(.file-item-date)) .file-item-footer{width:90%}.igd-body .file-list.list-view .file-item:last-child{border-bottom:0}.igd-body .file-list.list-view .root-item{padding:15px 10px;font-size:1rem;justify-content:flex-start}@media (max-width:767px){.igd-body .file-list.list-view .list-view-header .col-name{width:65%}.igd-body .file-list.list-view .list-view-header .col-modified{display:none}.igd-body .file-list.list-view .file-item .file-item-footer{width:90%}.igd-body .file-list.list-view .file-item .file-item-date{display:none}}.igd-body .file-list.empty .list-view-header{display:none}.igd-body .file-list.empty+.igd-file-uploader{margin:10px 7px}.igd-body .file-list.igd-item-col-1 .file-item{width:100%}.igd-body .file-list.igd-item-col-1:not(.list-view) .file-item{margin:4px}.igd-body .file-list.igd-item-col-2 .file-item{width:calc(50% - 14px)}.igd-body .file-list.igd-item-col-3 .file-item{width:calc(33.33% - 14px)}.igd-body .file-list.igd-item-col-3 .file-item .file-item-footer .file-item-size{display:none}.igd-body .file-list.igd-item-col-4 .file-item{width:calc(25% - 14px)}.igd-body .file-list.igd-item-col-5 .file-item{width:calc(20% - 14px)}.igd-body .file-list.igd-item-col-6 .file-item{width:calc(16.66% - 14px)}.igd-body .file-list.igd-item-col-7 .file-item{width:calc(14.28% - 14px)}.igd-body .file-list.igd-item-col-8 .file-item{width:calc(12.5% - 14px)}.igd-body .search-result-info{font-size:1rem;margin:10px 0 15px 5px;display:flex;align-items:center}.igd-body .search-result-info .clear-button{margin-left:10px}.igd-body .loading-wrap{display:flex;justify-content:center;height:100%;width:100%;position:absolute;top:0;left:0;z-index:1}.igd-body .loading-wrap img{width:150px;height:150px;margin-top:2rem}.igd-body.loading{min-height:15rem}.igd-body.loading:not(.lazy-loading) .file-list,.igd-body.loading:not(.lazy-loading) .igd-gallery-images{opacity:.3}.igd-body.loading:not(.lazy-loading) .file-list .file-item,.igd-body.loading:not(.lazy-loading) .igd-gallery-images .file-item{transform:none;transition:none}.igd-body.lazy-loading .loading-wrap{position:unset}.igd-body.lazy-loading .loading-wrap img{margin-top:-1rem}.igd-details{display:flex;flex-flow:column;padding:20px 15px}.igd-details-wrap{width:250px;position:sticky;border-left:1px solid #e5e5e5;background:#fff}.igd-details .close-details{align-self:flex-end;cursor:pointer;font-size:1.25rem;opacity:.5;margin:-5px 0 5px 0}.igd-details .close-details:hover{opacity:1}.igd-details .details-item{display:flex;align-items:center;margin-bottom:15px;flex-wrap:wrap}.igd-details .details-item img{width:20px;height:20px;margin-right:10px}.igd-details .details-item-label{font-size:.875rem;font-weight:500;color:#444;width:80px;display:flex;align-items:center;justify-content:space-between}.igd-details .details-item-label:after{content:":";margin-right:10px}.igd-details .details-item.name{font-weight:500;font-size:1rem;margin-bottom:20px;word-break:break-all;flex-wrap:nowrap}.igd-details .details-item-value{font-size:.875rem;color:#555;word-break:break-all;max-width:100%}.igd-details .details-item.field-location{flex-direction:column;align-items:flex-start}.igd-details .details-item.field-location .details-item-value{margin-top:7px}.igd-details .details-item.field-location .location-wrap{display:flex;align-items:center;border:1px solid #ddd;border-radius:5px;padding:5px;cursor:pointer}.igd-details .details-item.field-location .location-wrap img{margin-right:5px}.igd-details .details-item.field-location .location-wrap span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-details .details-item.field-location .location-wrap:hover{background:#f5f5f5}.igd-details .details-item.field-description{display:flex;align-items:flex-start;flex-wrap:wrap;justify-content:space-between}.igd-details .details-item.field-description .details-item-label{margin-bottom:5px}.igd-details .details-item.field-description .description-placeholder,.igd-details .details-item.field-description .details-item-value{width:100%;color:#555}.igd-details .details-item.field-description .dashicons{cursor:pointer;padding:0 5px;box-sizing:content-box;margin-top:5px}.igd-details .details-item.field-description form,.igd-details .details-item.field-description textarea{width:100%}.igd-details .details-placeholder{font-size:1rem}@media (max-width:767px){.igd-details{max-width:80%;height:100%;margin-left:auto;background:#fff}.igd-details-wrap{width:100%;max-width:100%;position:absolute;z-index:2;background:rgba(0,0,0,.5);height:100%}}.igd-context-menu{z-index:99999999;background-color:#fff;border-radius:4px;list-style:none;font-size:14px;font-family:sans-serif;font-weight:400;line-height:1.5;color:#333;cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;box-shadow:0 0 10px rgba(0,0,0,.2)}.igd-context-menu,.igd-context-menu *{box-sizing:border-box}.igd-context-menu .context-menu-item{display:flex;align-items:center;padding:10px 15px;cursor:pointer;transition:background-color .2s ease;width:100%;position:relative}.igd-context-menu .context-menu-item.details,.igd-context-menu .context-menu-item.import{border-bottom:1px solid #eee}.igd-context-menu .context-menu-item.delete,.igd-context-menu .context-menu-item.download{border-top:1px solid #eee}.igd-context-menu .context-menu-item.disabled{color:#ccc}.igd-context-menu .context-menu-item.upload{border-bottom:1px solid #ddd}.igd-context-menu .context-menu-item.delete{border-bottom:1px solid #ddd}.igd-context-menu .context-menu-item.view{border-top:1px solid #ddd}.igd-context-menu .context-menu-item i{margin-right:10px}.igd-context-menu .context-menu-item:hover{background-color:#f5f5f5}.igd-context-menu .context-menu-item:hover .pro-badge{transform:scale(1.1)}.igd-context-menu .context-menu-item .pro-badge{position:absolute;right:0;background:#fdb837;color:#fff;padding:5px;border-radius:4px;font-size:11px;font-weight:400;display:flex;align-items:center;justify-content:center;line-height:1;box-shadow:0 0 5px rgba(0,0,0,.1);transition:transform .2s ease}.igd-context-menu .context-menu-item .pro-badge i{margin-right:2px;height:auto;width:auto;font-size:15px}.share-modal *{box-sizing:border-box}.share-modal .swal2-close:focus{outline:0;background:0 0;color:#f08080;box-shadow:none}.share-modal .share-link{margin-bottom:1rem}.share-modal .share-link input,.share-modal .share-link textarea{width:-webkit-fill-available;border:1px solid #ddd;border-radius:4px;padding:0 10px;font-size:14px;font-family:sans-serif;font-weight:400;line-height:1.5;color:#333;cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;text-align:center;word-break:break-all}.share-modal .share-link input{height:40px}.share-modal .share-link textarea{height:100px}.share-modal.embed .embed-code{display:flex}.share-modal.embed .share-links{display:none}.share-modal .share-links{display:flex;justify-content:center;flex-wrap:wrap}.share-modal .share-links .share-item{display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;color:#333;text-decoration:none;margin:0 10px 10px 0}.share-modal .share-links .share-item i{font-size:22px;width:auto;height:auto;border:1px solid #ccc;border-radius:50%;padding:10px;margin:10px}.share-modal .share-links .share-item span{font-size:.875rem}.share-modal .share-links .share-item.link i{background:#fff;border:1px solid #ccc;color:#333}.share-modal .share-links .share-item.link span{color:#333}.share-modal .share-links .share-item.link:hover i{background:#e6e6e6}.share-modal .share-links .share-item.embed i{background:#333;border:1px solid #333;color:#fff}.share-modal .share-links .share-item.embed:hover i{background:#1a1a1a}.share-modal .share-links .share-item.facebook i{background-color:#3b5998;color:#fff}.share-modal .share-links .share-item.facebook span{color:#3b5998}.share-modal .share-links .share-item.facebook:hover i{background-color:#4c70ba}.share-modal .share-links .share-item.twitter i{background-color:#1da1f2;color:#fff}.share-modal .share-links .share-item.twitter span{color:#1da1f2}.share-modal .share-links .share-item.twitter:hover i{background-color:#4db5f5}.share-modal .share-links .share-item.whatsapp i{background-color:#25d366;color:#fff}.share-modal .share-links .share-item.whatsapp span{color:#25d366}.share-modal .share-links .share-item.whatsapp:hover i{background-color:#4be083}.share-modal .share-links .share-item.email i{background-color:#dd4f42;color:#fff}.share-modal .share-links .share-item.email span{color:#dd4f42}.share-modal .share-links .share-item.email:hover i{background-color:#e5776d}.move-folders{display:flex;flex-direction:column;align-items:flex-start;max-height:300px;overflow-y:auto;border:1px solid #ddd;border-radius:4px;padding:10px}.move-folders-wrap button{margin:20px auto 0;padding:10px 20px}.move-folders-wrap button .igd-spinner{margin-right:10px}.move-folders,.move-folders *{box-sizing:border-box}.move-folders::-webkit-scrollbar{width:5px}.move-folders::-webkit-scrollbar-track{background:#f1f1f1}.move-folders::-webkit-scrollbar-thumb{background:#999;border-radius:5px}.move-folders .move-folder{display:flex;align-items:center;justify-content:flex-start;text-align:left;width:100%;cursor:pointer;padding:7px 0;border-radius:3px}.move-folders .move-folder>.igd-spinner{margin-left:10px}.move-folders .move-folder-wrap{width:100%;padding-left:20px;text-align:left}.move-folders .move-folder-wrap.empty{margin:10px 0;padding-left:30px;display:flex;align-items:center;color:#c73e1d;font-size:.875rem}.move-folders .move-folder-wrap.empty i{margin-right:5px}.move-folders .move-folder i{margin-right:10px}.move-folders .move-folder img{width:22px;height:22px;margin-right:10px}.move-folders .move-folder .file-item-checkbox .box{border-color:#999}.move-folders .move-folder span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.move-folders .move-folder:hover{background-color:#f5f5f5}.move-folders .move-folder:hover img{display:none}.move-folders .move-folder:hover .file-item-checkbox{display:flex;padding:0;border:1px solid #fff;margin-right:10px}.move-folders .move-folder.active{background-color:var(--color-primary-lighter)}.move-folders .move-folder.active img{display:none}.move-folders .move-folder.active .file-item-checkbox{display:flex;padding:0;border:1px solid #fff;margin-right:10px}.igd-download-popup{z-index:999999!important}.igd-download-wrap #igd-download-status{font-size:1.3rem;font-weight:600;margin:15px auto 5px}.igd-download-wrap #igd-hidden-download{display:none}.igd-copy-swal,.igd-move-swal{z-index:99999}.react-contexify{position:fixed;opacity:0;-webkit-user-select:none;-moz-user-select:none;user-select:none;background-color:#fff;box-sizing:border-box;box-shadow:0 10px 30px -5px rgba(0,0,0,.3);border-radius:6px;min-width:200px}.context-submenu{width:100%}.react-contexify__submenu--is-open,.react-contexify__submenu--is-open>.react-contexify__item__content{color:#fff;background-color:#4393e6}.react-contexify__submenu--is-open>.react-contexify__submenu{pointer-events:initial;opacity:1}.react-contexify .react-contexify__submenu{position:absolute;top:-6px;pointer-events:none;transition:opacity 275ms}.react-contexify__submenu-arrow{margin-left:auto;font-size:12px}.react-contexify__submenu-arrow i{margin-right:0!important}.react-contexify__separator{width:100%;height:1px;cursor:default;margin:4px 0;background-color:rgba(0,0,0,.2)}.react-contexify__will-leave--disabled{pointer-events:none}.react-contexify__item{cursor:pointer;position:relative}.react-contexify__item:focus{outline:0}.react-contexify__item:not(.react-contexify__item--disabled):hover>.react-contexify__submenu{pointer-events:initial;opacity:1}.react-contexify__item--disabled{cursor:default;opacity:.5}.react-contexify__item__content{display:flex;align-items:center;white-space:nowrap;color:#333;position:relative;width:100%}.react-contexify__theme--dark{background-color:rgba(40,40,40,.98)}.react-contexify__theme--dark .react-contexify__submenu{background-color:rgba(40,40,40,.98)}.react-contexify__theme--dark .react-contexify__separator{background-color:#eee}.react-contexify__theme--dark .react-contexify__item__content{color:#fff}.react-contexify__theme--light .react-contexify__separator{background-color:#eee}.react-contexify__theme--light .react-contexify__submenu--is-open,.react-contexify__theme--light .react-contexify__submenu--is-open>.react-contexify__item__content{color:#4393e6;background-color:#e0eefd}.react-contexify__theme--light .react-contexify__item:not(.react-contexify__item--disabled):focus>.react-contexify__item__content,.react-contexify__theme--light .react-contexify__item:not(.react-contexify__item--disabled):hover>.react-contexify__item__content{color:#4393e6;background-color:#e0eefd}.react-contexify__theme--light .react-contexify__item__content{color:#666}@keyframes react-contexify__scaleIn{from{opacity:0;transform:scale3d(.3,.3,.3)}to{opacity:1}}@keyframes react-contexify__scaleOut{from{opacity:1}to{opacity:0;transform:scale3d(.3,.3,.3)}}.react-contexify__will-enter--scale{transform-origin:top left;animation:react-contexify__scaleIn .3s}.react-contexify__will-leave--scale{transform-origin:top left;animation:react-contexify__scaleOut .3s}@keyframes react-contexify__fadeIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes react-contexify__fadeOut{from{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(10px)}}.react-contexify__will-enter--fade{animation:react-contexify__fadeIn .3s ease}.react-contexify__will-leave--fade{animation:react-contexify__fadeOut .3s ease}@keyframes react-contexify__flipInX{from{transform:perspective(800px) rotate3d(1,0,0,45deg)}to{transform:perspective(800px)}}@keyframes react-contexify__flipOutX{from{transform:perspective(800px)}to{transform:perspective(800px) rotate3d(1,0,0,45deg);opacity:0}}.react-contexify__will-enter--flip{backface-visibility:visible!important;transform-origin:top center;animation:react-contexify__flipInX .3s}.react-contexify__will-leave--flip{transform-origin:top center;animation:react-contexify__flipOutX .3s;backface-visibility:visible!important}@keyframes swing-in-top-fwd{0%{transform:rotateX(-100deg);transform-origin:top;opacity:0}100%{transform:rotateX(0);transform-origin:top;opacity:1}}@keyframes react-contexify__slideIn{from{opacity:0;transform:scale3d(1,.3,1)}to{opacity:1}}@keyframes react-contexify__slideOut{from{opacity:1}to{opacity:0;transform:scale3d(1,.3,1)}}.react-contexify__will-enter--slide{transform-origin:top center;animation:react-contexify__slideIn .3s}.react-contexify__will-leave--slide{transform-origin:top center;animation:react-contexify__slideOut .3s}.igd-shortcode-gallery .igd-file-browser-header .photo-proofing-btn .selection-count{margin-left:3px}.igd-module-gallery{overflow:hidden}.igd-module-gallery .item-selection{position:absolute;z-index:9;top:5px;left:5px;cursor:pointer;display:none}.igd-module-gallery .item-selection circle{display:none}.igd-module-gallery .item-selection:hover svg{fill:#fff}.igd-module-gallery .file-list{overflow:hidden}.igd-module-gallery .file-list .file-item{position:relative;border-radius:0}.igd-module-gallery .file-list .file-item .igd-gallery-folder-images{transition:all .3s ease-in-out}.igd-module-gallery .file-list .file-item:hover{transform:none}.igd-module-gallery .file-list .file-item:hover .item-selection{display:block}.igd-module-gallery .file-list .file-item:hover .igd-gallery-folder-images{transition:all .3s ease-in-out;transform:scale(1.07);box-shadow:0 0 0 1px #ddd}.igd-module-gallery .file-list .file-item.active{transform:none}.igd-module-gallery .file-list .file-item.active .item-selection{display:block}.igd-module-gallery .file-list .file-item.active .item-selection svg{fill:#4285f4}.igd-module-gallery .file-list .file-item.active .igd-gallery-folder-images{transition:all .3s ease-in-out;transform:scale(1.07);box-shadow:0 0 0 1px #ddd}.igd-module-gallery .file-list .file-item .file-item-footer{font-size:1rem}.igd-module-gallery .file-list .file-item:not(.folder-item){max-width:100%}.igd-module-gallery .file-list .file-item:not(.folder-item) .file-item-footer{background:rgba(0,0,0,.5)!important;color:#fff!important;padding:15px 10px!important;position:absolute;bottom:0;left:0;width:100%;justify-content:center;border:none!important}.igd-module-gallery .file-list .file-item:not(.folder-item) .file-item-footer i{margin-right:5px}.igd-module-gallery .file-list .file-item:not(.folder-item) .file-item-footer img{background:rgba(255,255,255,.9);padding:0 2px;border-radius:3px;box-sizing:content-box}.igd-module-gallery .file-list .file-item:not(.folder-item) .file-item-footer span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-module-gallery .file-list .file-item:last-child{margin-right:auto!important}.igd-module-gallery .igd-gallery-folder-images{position:relative;width:100%;height:100%;overflow:hidden;display:flex;align-items:center;justify-content:center}.igd-module-gallery .igd-gallery-folder-images img{position:absolute;-webkit-user-drag:none;opacity:0;pointer-events:none;animation-name:image-fade-out;animation-duration:1.5s}.igd-module-gallery .igd-gallery-folder-images img.active{animation-name:image-fade;animation-duration:1.5s;opacity:1}.igd-module-gallery .igd-gallery-folder-images img:not([src*=drive-thirdparty]){width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.igd-module-gallery .igd-gallery-folder-images i{height:auto;width:auto;font-size:3.5rem;color:#555}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item{overflow:hidden;position:relative;cursor:pointer}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item img{transition:all .3s ease-in-out;-o-object-fit:cover;object-fit:cover;width:100%;height:100%}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.5);transition:all .3s ease-in-out;color:#fff;display:flex;align-items:center;justify-content:center;flex-direction:column;opacity:0;pointer-events:none;text-align:center;padding:15px}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item-overlay .overlay-title{font-weight:600;margin-bottom:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item-overlay .overlay-size{font-size:13px}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item:hover .item-selection{display:block}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item:hover .igd-gallery-item-overlay{opacity:1;pointer-events:all}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item:hover img{box-shadow:0 0 0 1px #ddd;transition:all .3s ease-in-out;transform:scale(1.07)}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item.active .item-selection{display:block}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item.active .item-selection svg{fill:#4285f4}.igd-module-gallery.gallery-view-rounded .file-list .file-item{border-radius:5px}.igd-module-gallery.gallery-view-rounded .react-photo-gallery--gallery .igd-gallery-item{border-radius:7px}.igd-module-gallery.gallery-layout-grid .file-list .file-item{width:var(--column-width)}.igd-module-gallery.gallery-layout-grid .file-list .file-item:not(.folder-item){aspect-ratio:var(--aspect-ratio)}.igd-module-gallery.gallery-layout-grid .react-photo-gallery--gallery .igd-gallery-item{width:var(--column-width);aspect-ratio:var(--aspect-ratio)}.igd-module-gallery.gallery-layout-masonry .file-list .file-item{width:var(--column-width)}.igd-module-gallery.gallery-layout-masonry .file-list .file-item:not(.folder-item){aspect-ratio:var(--aspect-ratio)}@keyframes image-fade{from{opacity:.4}to{opacity:1}}@keyframes image-fade-out{from{opacity:1}to{opacity:0}}.igd-module-uploader,.igd-module-uploader *{box-sizing:border-box}.igd-module-uploader .dashicons-cloud-upload{width:auto;height:auto}.igd-module-uploader.igd-form-uploader{margin-top:1rem!important}.igd-module-uploader .upload-confirmation{display:none!important;margin:20px 0;text-align:center;flex-direction:column;align-items:center}.igd-module-uploader .upload-confirmation h3{color:var(--color-primary)}.igd-module-uploader.show-confirmation{border-style:solid!important}.igd-module-uploader.show-confirmation .upload-confirmation{display:flex!important}.igd-module-uploader.show-confirmation .igd-file-uploader-inner{display:none!important}.igd-file-uploader{display:flex;align-items:center;justify-content:center;flex-direction:column;border-radius:10px!important;border:1px dashed var(--color-primary-light)!important;padding:3px!important;max-width:500px;width:100%!important;background:#fff!important}.igd-file-uploader *{box-sizing:border-box}.igd-file-uploader:not(.igd-form-uploader){margin:auto}.igd-file-uploader.drag-active{border-color:var(--color-primary);border-width:2px;background-color:#bfdbfe;box-shadow:rgba(149,157,165,.2) 0 8px 24px}.igd-file-uploader.drag-active *{pointer-events:none}.igd-file-uploader-body{display:flex;align-items:center;flex-direction:column;width:100%!important;-webkit-user-select:none;-moz-user-select:none;user-select:none}.igd-file-uploader-body h3{font-size:1.2rem;font-weight:600;margin-bottom:10px!important}.igd-file-uploader-body .max-size-label{font-size:.875rem;margin-top:1rem;color:#999}.igd-file-uploader .igd-file-uploader-inner{display:flex!important;align-items:center!important;flex-direction:column!important;border-radius:7px!important;padding:1rem!important;background-color:var(--color-primary-lighter)!important;justify-content:center;width:100%!important;border:1px dashed #ddd!important}.igd-file-uploader .igd-file-uploader-inner p{font-weight:400;margin:5px 0!important;color:#555;line-height:1}.igd-file-uploader .igd-file-uploader-inner .dashicons-cloud-upload{font-size:4rem;height:auto;width:auto;margin-bottom:1rem;line-height:1;color:#555}.igd-file-uploader .igd-file-uploader-inner .igd-file-uploader-buttons{display:flex}.igd-file-uploader .igd-file-uploader-inner .igd-file-uploader-buttons button{display:flex;align-items:center;white-space:nowrap;cursor:pointer;border-radius:.25rem;border:none;padding:.375rem .5rem;margin:.5rem;background-color:var(--color-primary);box-shadow:rgba(149,157,165,.2) 0 8px 24px;color:#fff;transition:all .2s ease-in-out;font-weight:400}.igd-file-uploader .igd-file-uploader-inner .igd-file-uploader-buttons button span{margin-left:5px}.igd-file-uploader .igd-file-uploader-inner .igd-file-uploader-buttons button:hover{background-color:var(--color-primary-light-alt)}.igd-file-uploader .igd-file-uploader-inner .upload-info{display:flex;align-items:center;line-height:1}.igd-file-uploader .igd-file-uploader-inner .upload-info span{margin-right:5px}.igd-file-uploader .igd-file-uploader-inner .upload-info span:after{content:"|";margin-left:5px;color:#000}.igd-file-uploader .igd-file-uploader-inner .upload-info span:last-child{margin-right:0}.igd-file-uploader .igd-file-uploader-inner .upload-info span:last-child:after{content:"";margin-left:0}.igd-file-uploader .igd-file-uploader-inner .igd-file-uploader-add-more{margin-top:15px}.igd-file-uploader.required-error{border-color:red}.igd-file-uploader .file-list-wrapper{display:flex;flex-direction:column;z-index:50;margin-top:5px!important;width:100%!important;max-height:400px;max-width:100%;overflow:hidden!important;background-color:#fff!important;box-shadow:rgba(149,157,165,.2) 0 8px 24px!important;bottom:1rem;right:1rem}.igd-file-uploader .file-list-wrapper.fixed{position:fixed}.igd-file-uploader .file-list-wrapper .start-upload{margin:10px auto}@media (max-width:991px){.igd-file-uploader .file-list-wrapper{max-width:300px;max-height:300px;right:0}}.igd-file-uploader .file-list{display:flex;flex-flow:column;flex-wrap:nowrap!important;overflow-y:auto!important}.igd-file-uploader .file-list-header{display:flex;align-items:center;padding:10px 15px!important;background-color:var(--color-primary)!important;color:#fff;line-height:1;border-radius:5px;margin-bottom:5px}.igd-file-uploader .file-list-header .file-count{margin-right:5px}.igd-file-uploader .file-list-header i{cursor:pointer;height:26px!important;width:26px!important;border:1px solid!important;border-radius:50%!important;font-size:22px!important;display:flex;align-items:center;justify-content:center}.igd-file-uploader .file-list-item{display:flex;align-items:center;padding:8px 12px!important;border-bottom:1px solid #eaeaea!important;width:100%!important;opacity:.5}.igd-file-uploader .file-list-item img{width:22px!important;height:22px!important;margin-right:5px!important}.igd-file-uploader .file-list-item .file-info{display:flex;flex-wrap:wrap;overflow:hidden;width:100%;line-height:1}.igd-file-uploader .file-list-item .file-info .upload-item{display:flex;align-items:center;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;flex:1}.igd-file-uploader .file-list-item .file-info .upload-item-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;margin-right:4px}.igd-file-uploader .file-list-item .file-info .upload-item-size{font-size:.75rem;color:#999}.igd-file-uploader .file-list-item .file-info-percentage{margin-left:auto;text-align:right;font-size:.875rem;display:flex;align-items:center;width:-moz-max-content;width:max-content}.igd-file-uploader .file-list-item .file-info-percentage .igd-spinner{margin-top:0;margin-right:5px;border-radius:50%}.igd-file-uploader .file-list-item .file-info-progress{width:100%;height:4px;background-color:#ddd;border-radius:.25rem;margin-top:7px;overflow:hidden;position:relative;align-items:center;justify-content:space-between;display:none}.igd-file-uploader .file-list-item .file-info-progress-bar{width:var(--percentage);height:100%;background-color:var(--color-primary-light-alt);border-radius:.25rem;position:absolute;left:0;top:0;transition:width .5s ease-in-out}.igd-file-uploader .file-list-item .file-info-error{color:red;width:100%;font-size:.75rem;margin-top:3px}.igd-file-uploader .file-list-item .file-info .igd-spinner{width:20px;margin-left:7px}.igd-file-uploader .file-list-item .file-info .percentage{margin:0 7px}.igd-file-uploader .file-list-item .file-info i{margin-left:7px;height:22px!important;width:22px!important;font-size:16px;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer}.igd-file-uploader .file-list-item .file-info i:not(.dashicons-saved,.dashicons-no-alt){border:1px solid #ddd}.igd-file-uploader .file-list-item .file-info .dashicons-controls-play{padding-left:3px}.igd-file-uploader .file-list-item .file-info .remove-file{background:#ff9f10;color:#fff;margin-left:10px}.igd-file-uploader .file-list-item:hover{background-color:#e0f2fe}.igd-file-uploader .file-list-item.uploaded{opacity:1}.igd-file-uploader .file-list-item.uploaded .file-info .dashicons-saved{background:var(--color-primary);color:#fff}.igd-file-uploader .file-list-item.uploaded .file-info .remove-file{background:0 0;color:#ff9f10;border:1px solid #ff9f10;opacity:.6}.igd-file-uploader .file-list-item.uploaded .file-info .remove-file:hover{background:#ff9f10;color:#fff;opacity:1}.igd-file-uploader .file-list-item.uploaded .file-info-progress{display:flex}.igd-file-uploader .file-list-item.uploaded .file-info-progress-bar{width:100%}.igd-file-uploader .file-list-item.active{opacity:.8}.igd-file-uploader .file-list-item.active .file-info-progress{display:flex}.igd-file-uploader .file-list::-webkit-scrollbar{width:5px}.igd-file-uploader .file-list::-webkit-scrollbar-track{background:#f1f1f1}.igd-file-uploader .file-list::-webkit-scrollbar-thumb{background:#ccc}.igd-file-uploader .file-list::-webkit-scrollbar-thumb:hover{background:#bbb}.igd-file-uploader .cancel-upload{position:absolute;top:15px;right:15px;cursor:pointer;border-radius:5px;height:40px;width:40px;font-size:25px;display:flex;align-items:center;justify-content:center;color:rgba(255,0,0,.3)}.igd-file-uploader .cancel-upload:hover{color:rgba(255,0,0,.5)}.igd-file-browser .igd-file-uploader{position:fixed!important;right:15px;bottom:15px;z-index:2;box-shadow:0 0 10px rgba(0,0,0,.2)}.igd-file-browser .igd-file-uploader:has(.file-list-wrapper) .igd-file-uploader-inner .dashicons-cloud-upload{display:none}@media (max-width:767px){.igd-file-browser .igd-file-uploader{position:absolute!important;height:100%;right:unset;bottom:unset;width:calc(100% - 20px)!important;justify-content:flex-start;background:rgba(0,0,0,.5)!important}.igd-file-browser .igd-file-uploader .igd-file-uploader-inner{background:linear-gradient(var(--color-primary-lighter),var(--color-primary-lighter)),#fff!important}}.ff-el-is-error .igd-file-uploader,.frm_blank_field .igd-file-uploader,.gfield_error .igd-file-uploader,.mf-input-wrapper.has-error .igd-file-uploader,.nf-error .igd-file-uploader,.wpforms-has-error .igd-file-uploader{border-color:red!important}@keyframes ssc-loading{from{transform:translateX(-100%)}to{transform:translateX(100%)}}.ssc-circle,.ssc-head-line,.ssc-line,.ssc-square{position:relative;overflow:hidden}.ssc-circle:after,.ssc-head-line:after,.ssc-line:after,.ssc-square:after{content:"";animation:ssc-loading 1.3s infinite;height:100%;left:0;position:absolute;right:0;top:0;transform:translateX(-100%);z-index:1;background:linear-gradient(90deg,transparent,rgba(255,255,255,.3),transparent)}.ssc{cursor:progress;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ssc-card{display:block;width:100%;border-radius:5px;box-shadow:0 2px 4px 1px rgba(0,0,0,.17);background-color:#fff;margin-bottom:15px}.ssc-circle{display:block;background-color:rgba(0,0,0,.17);border-radius:50%;width:30px;height:30px}.ssc-hr{display:block;width:100%;background-color:rgba(0,0,0,.17);height:2px}.ssc-line{display:block;background-color:rgba(0,0,0,.17);border-radius:15px;height:12px}.ssc-line:last-child{margin-bottom:unset}.ssc-head-line{display:block;background-color:rgba(0,0,0,.17);border-radius:15px;width:100%;height:24px}.ssc-square{display:block;background-color:rgba(0,0,0,.17);width:100%;height:100px;border-radius:5px}.flex{display:flex}.flex-1{flex:1}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-between{justify-content:space-between}.w-full{width:100%}.mb-3{margin-bottom:.875rem}.mr-2{margin-right:.5rem}.w-16{width:4rem}.w-6{width:1.5rem}.h-6{height:1.5rem}.p-4{padding:1rem}body.google-drive_page_integrate-google-drive-private-folders.swal2-shown{overflow:auto!important;padding-right:0!important}.igd-private-folders,.igd-private-folders *{box-sizing:border-box}.igd-private-folders-header{display:flex;width:calc(100% + 20px);margin-left:-20px;background:#fff;padding:20px 20px;position:sticky;top:32px;border-bottom:1px solid #ddd;box-shadow:0 1px 5px rgba(0,0,0,.1);z-index:99;margin-bottom:30px}.igd-private-folders-header .header-title{display:flex;align-items:center;line-height:1;margin-right:auto}.igd-private-folders-header .header-title img{margin-right:15px}.igd-private-folders-header .header-title-text{display:flex;flex-direction:column}.igd-private-folders-header .header-title-text h3{font-size:1.2rem;margin:0 0 5px 0}.igd-private-folders-header .header-title-text span{margin-top:2px;color:#7a7a7a}.igd-private-folders-header .igd-btn{margin-left:10px}@media (max-width:767px){.igd-private-folders-header{position:relative;top:0}}.igd-private-folders .private-folders-list{background:#fff;padding:20px;border-radius:10px;margin:10px 15px 30px 0;position:relative;overflow:hidden;min-height:70vh}.igd-private-folders .private-folders-list-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.igd-private-folders .private-folders-list-header ul{display:flex;align-items:center}.igd-private-folders .private-folders-list-header ul li{margin-right:5px;margin-bottom:0;cursor:pointer;color:#2fb44b;font-weight:600;font-size:.875rem}.igd-private-folders .private-folders-list-header ul li:not(:last-child):after{content:"|";margin:0 5px;color:#555}.igd-private-folders .private-folders-list-header ul li span{text-transform:capitalize}.igd-private-folders .private-folders-list-header ul li.active{color:#555c66}.igd-private-folders .private-folders-list-header ul li:hover{color:#248c3a}.igd-private-folders .private-folders-list-header .users-search{display:flex;align-items:center}.igd-private-folders .private-folders-list-header .users-search input{height:40px;border:1px solid rgba(47,180,75,.5)}.igd-private-folders .private-folders-list-header .users-search button{margin-left:10px}.igd-private-folders .private-folders-list .swal2-container{position:absolute;width:100%;height:100%;z-index:9}.igd-private-folders .private-folders-list .column-username span{margin-left:10px}.igd-private-folders .private-folders-list .column-actions button{display:inline-flex;align-items:center;padding:7px 10px;line-height:1}.igd-private-folders .private-folders-list .column-actions button i{margin-right:5px}.igd-private-folders .private-folders-list .column-folders .folder-item{display:inline-flex;align-items:center;border:1px solid rgba(47,180,75,.5);width:-moz-max-content;width:max-content;padding:5px;margin:3px;border-radius:5px;color:#7a7a7a}.igd-private-folders .private-folders-list .column-folders .folder-item img{margin-right:5px}.igd-private-folders .private-folders-list .private-folders-table{border-radius:10px;overflow:hidden;border-color:#efefef}.igd-private-folders .private-folders-list .private-folders-table thead th{padding:15px;border-color:#efefef}.igd-private-folders .private-folders-list .private-folders-table tbody tr td{padding:10px;vertical-align:middle}@media (max-width:767px){.igd-private-folders .private-folders-list{margin-left:10px}.igd-private-folders .private-folders-list-header{flex-direction:column}.igd-private-folders .private-folders-list .private-folders-table-wrap{overflow-x:auto}}.igd-private-folders .igd-pro-modal-wrap{position:absolute;z-index:9}.igd-private-folders .igd-pro-modal-close{display:none}.igd-details .details-file-name{width:calc(100% - 20px)}.igd-player{line-height:1.5;display:flex;align-items:flex-start;flex-direction:column;height:100%;background-color:#fff}.igd-player.playlist-left,.igd-player.playlist-right{padding:10px}.igd-player.playlist-left .media-wrap,.igd-player.playlist-right .media-wrap{flex-direction:column;align-items:flex-start;border:none}.igd-player.playlist-left .media-wrap .igd-player-media-wrap,.igd-player.playlist-right .media-wrap .igd-player-media-wrap{margin-top:10px;margin-left:0}.igd-player.playlist-left .igd-player-playlist .playlist-item-wrap,.igd-player.playlist-right .igd-player-playlist .playlist-item-wrap{padding:5px 0}.igd-player.playlist-left.type-audio .media-wrap,.igd-player.playlist-right.type-audio .media-wrap{border:1px solid #eee}.igd-player.playlist-left{flex-wrap:wrap;flex-direction:row;-moz-column-gap:10px;column-gap:10px}.igd-player.playlist-left .igd-player-playlist{width:calc(40% - 10px);order:1;margin:0;padding-right:10px;border-right:1px solid #eee}.igd-player.playlist-left .playlist-search{margin:0}.igd-player.playlist-left .media-wrap{flex:1;order:2;position:sticky;top:10px;z-index:9}.igd-player.playlist-left:has(.igd-player-playlist) .media-wrap{max-width:60%}.igd-player.playlist-right{flex-wrap:wrap;flex-direction:row;-moz-column-gap:10px;column-gap:10px;padding-right:5px}.igd-player.playlist-right .igd-player-playlist{width:calc(40% - 10px);order:2;margin:0;padding-left:10px;border-left:1px solid #eee;padding-right:5px}.igd-player.playlist-right .playlist-search{margin:0}.igd-player.playlist-right .media-wrap{flex:1;order:1;position:sticky;top:10px;z-index:9}.igd-player.playlist-right:has(.igd-player-playlist) .media-wrap{max-width:60%}.igd-player.playlist-bottom .playlist-search{width:calc(100% - 20px);margin:10px auto}.igd-player .media-wrap{width:100%;display:flex;align-items:center}.igd-player .media-wrap .current-item{display:flex;align-items:center;overflow:hidden}.igd-player .media-wrap .current-item img{margin-right:10px;width:40px}.igd-player .media-wrap .current-item .item-caption{display:flex;flex-direction:column;overflow:hidden}.igd-player .media-wrap .current-item .item-caption .item-title{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-player .media-wrap .current-item .item-caption .item-description{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-player .media-wrap .igd-player-media-wrap{position:relative}.igd-player .media-wrap iframe{aspect-ratio:16/9}.igd-player.type-video .igd-player-media-wrap{width:100%;height:0;overflow:hidden;padding-bottom:56.25%}.igd-player.type-video .igd-player-media-wrap .igd-player-media-video,.igd-player.type-video .igd-player-media-wrap .plyr,.igd-player.type-video .igd-player-media-wrap video{position:absolute;top:0;left:0;width:100%!important;height:100%!important}.igd-player.type-audio .media-wrap{padding:15px;border-bottom:1px solid #ddd;background:#f5f5f5}.igd-player.type-audio .igd-player-media-wrap{margin-left:auto}.igd-player.type-audio .igd-player-media-wrap .plyr__controls{padding:0;background:0 0}.igd-player .igd-player-playlist{width:100%;height:100%;overflow-y:auto}.igd-player .igd-player-playlist .playlist-item{position:relative;cursor:pointer;display:flex;align-items:center;color:#333;padding:3px}.igd-player .igd-player-playlist .playlist-item.active{color:var(--color-primary);font-weight:700}.igd-player .igd-player-playlist .playlist-item.active .dashicons{border-color:var(--color-primary);color:var(--color-primary)}.igd-player .igd-player-playlist .playlist-item:not(:has(img)){padding:5px}.igd-player .igd-player-playlist .playlist-item-wrap{border-bottom:1px solid #eee;padding:5px 10px}.igd-player .igd-player-playlist .playlist-item-wrap:last-child{border-bottom:0}.igd-player .igd-player-playlist .playlist-item-wrap .sub-item{margin-left:30px}.igd-player .igd-player-playlist .playlist-item-wrap:hover{background-color:#f5f5f5}.igd-player .igd-player-playlist .playlist-item .item-index{margin-right:7px;white-space:nowrap}.igd-player .igd-player-playlist .playlist-item .igd-spinner{margin-left:0;width:18px;height:18px;margin-right:5px}.igd-player .igd-player-playlist .playlist-item img{width:30px;height:30px;-o-object-fit:cover;object-fit:cover;border-radius:3px;margin-right:5px}.igd-player .igd-player-playlist .playlist-item .item-name{margin-right:auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-player .igd-player-playlist .playlist-item .item-size{margin:0 10px;color:#777;white-space:nowrap;font-size:.75rem}.igd-player .igd-player-playlist .playlist-item .dashicons{font-size:25px;color:#555c66;height:auto;width:auto}.igd-player .igd-player-playlist .playlist-item .dashicons.dashicons-arrow-down,.igd-player .igd-player-playlist .playlist-item .dashicons.dashicons-arrow-right{margin-left:-5px;margin-right:5px}.igd-player .igd-player-playlist .playlist-item .dashicons:hover{color:#444;border-color:var(--color-primary)}.igd-player .igd-player-playlist .playlist-item:last-child{border-bottom:0}.igd-player .igd-player-playlist .search-result-info{display:flex;align-items:center;margin-bottom:7px;margin-top:7px}.igd-player .igd-player-playlist .search-result-info .clear-button{margin-left:7px;padding:7px 10px}.igd-player .igd-player-playlist::-webkit-scrollbar{width:5px;height:5px}.igd-player .igd-player-playlist::-webkit-scrollbar-thumb{background:#ddd;border-radius:10px}.igd-player .igd-player-playlist::-webkit-scrollbar-track{background:#eee;border-radius:10px}.igd-player .playlist-search{position:relative;display:flex;align-items:center;transition:width .3s linear;line-height:1;overflow:hidden;border:1px solid #ddd;border-radius:5px;width:100%;padding:0 15px;margin:10px 0}.igd-player .playlist-search .search-dismiss{cursor:pointer}.igd-player .playlist-search input{height:40px;padding:0 15px;font-size:14px;width:100%;border:none!important;box-shadow:none!important;border-radius:0!important;background:0 0}.igd-player .playlist-search input:focus{outline:0}.igd-player .playlist-search .search-submit{position:relative;z-index:2}.igd-player .playlist-search .search-submit .dashicons{font-family:dashicons}.igd-player .playlist-search:has(input:focus){box-shadow:rgba(0,0,0,.24) 0 3px 8px}.igd-player .playlist-search.active .input-wrap{right:-10px}.igd-player .playlist-search.active .search-submit svg{fill:#333}.igd-player video{display:inline-block;max-width:100%;min-height:100%}.igd-player audio{display:none;max-width:100%;width:100%}.igd-player .plyr__controls .plyr__controls__item.plyr__time{white-space:nowrap}.igd-player .plyr__control:focus{background:0 0;color:currentColor}.igd-player .plyr__volume input[type=range]{max-width:60px}.igd-player.size-sm.type-audio .media-wrap,.igd-player.size-xs.type-audio .media-wrap{flex-direction:column}.igd-player.size-sm.type-audio .media-wrap .current-item img,.igd-player.size-xs.type-audio .media-wrap .current-item img{width:30px}.igd-player.size-sm.type-audio .media-wrap .igd-player-media-wrap,.igd-player.size-xs.type-audio .media-wrap .igd-player-media-wrap{margin-top:15px;margin-left:0}.igd-player.size-sm .plyr__volume input[type=range],.igd-player.size-xs .plyr__volume input[type=range]{max-width:40px;min-width:40px}.igd-player.size-sm.playlist-left,.igd-player.size-sm.playlist-right,.igd-player.size-xs.playlist-left,.igd-player.size-xs.playlist-right{flex-direction:column}.igd-player.size-sm.playlist-left .igd-player-playlist,.igd-player.size-sm.playlist-left .media-wrap,.igd-player.size-sm.playlist-right .igd-player-playlist,.igd-player.size-sm.playlist-right .media-wrap,.igd-player.size-xs.playlist-left .igd-player-playlist,.igd-player.size-xs.playlist-left .media-wrap,.igd-player.size-xs.playlist-right .igd-player-playlist,.igd-player.size-xs.playlist-right .media-wrap{width:100%;max-width:100%!important}.igd-player.size-sm.playlist-left .media-wrap,.igd-player.size-sm.playlist-right .media-wrap,.igd-player.size-xs.playlist-left .media-wrap,.igd-player.size-xs.playlist-right .media-wrap{position:unset}.igd-player.size-sm.playlist-left .igd-player-playlist,.igd-player.size-sm.playlist-right .igd-player-playlist,.igd-player.size-xs.playlist-left .igd-player-playlist,.igd-player.size-xs.playlist-right .igd-player-playlist{order:999}.igd-lightbox{z-index:999999;position:fixed}.igd-lightbox .lg-backdrop{background:rgba(0,0,0,.9)!important}.igd-lightbox .lg-sub-html h4,.igd-lightbox .lg-sub-html p{color:inherit}.igd-lightbox:not(.gallery-lightbox) .lg-sub-html{background:#111!important;display:flex;align-items:center;padding:10px 15px;max-width:calc(100% - 100px)}.igd-lightbox .lg-outer .lg-thumb-item{height:60px}.igd-lightbox .item-name{display:flex;align-items:center;max-width:75%;overflow:hidden}.igd-lightbox .item-name img{margin-right:10px;width:24px}.igd-lightbox .item-name span{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.igd-lightbox.no-download .lg-download{display:none}.igd-lightbox .lg-outer[data-lg-slide-type=iframe] .lg-actual-size,.igd-lightbox .lg-outer[data-lg-slide-type=iframe] .lg-zoom-in,.igd-lightbox .lg-outer[data-lg-slide-type=iframe] .lg-zoom-out,.igd-lightbox .lg-outer[data-lg-slide-type=video] .lg-actual-size,.igd-lightbox .lg-outer[data-lg-slide-type=video] .lg-zoom-in,.igd-lightbox .lg-outer[data-lg-slide-type=video] .lg-zoom-out{display:none}.igd-lightbox .lg-outer[data-lg-slide-type=iframe] .igd-hidepopout{width:60px;height:55px;position:absolute;opacity:1;right:12px;top:0;z-index:10000000;background-color:#d1d1d1;cursor:default!important}.igd-lightbox .lg-item:has(video>source[type*="audio/"]) .lg-video-cont{margin-top:-60px;max-height:60px;max-width:500px}.igd-lightbox .lg-item:has(video>source[type*="audio/"]) .lg-video-cont .lg-video-poster{margin-top:-20px;max-width:100px!important;height:100px!important;max-height:none!important}@media (max-width:767px){.igd-lightbox .lg-item .lg-video-cont{max-width:90%!important}}.igd-select-files-modal .components-modal__header{border-bottom:1px solid #ddd;box-shadow:0 1px 5px rgba(0,0,0,.1)}.igd-select-files-modal .components-modal__header-heading{width:100%}.igd-select-files-modal .shortcode-module-header{display:flex;flex-direction:column;justify-content:center;align-items:center;margin:30px auto}.igd-select-files-modal .shortcode-module-header .module-title{font-size:1.2rem;margin-bottom:10px;font-weight:600}.igd-select-files-modal .shortcode-module .shortcode-types{display:flex;flex-wrap:wrap;justify-content:center}.igd-select-files-modal .shortcode-module .shortcode-types .shortcode-type{width:calc(20% - 20px);margin:10px;padding:2rem 1.5rem;border:1px solid #ddd;border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;max-width:250px;transition:background .3s ease}.igd-select-files-modal .shortcode-module .shortcode-types .shortcode-type i{height:auto;width:auto;border-radius:50%;padding:15px;border:1px solid #ddd}.igd-select-files-modal .shortcode-module .shortcode-types .shortcode-type span{font-size:1rem;margin-top:15px}.igd-select-files-modal .shortcode-module .shortcode-types .shortcode-type.active{background:var(--color-primary-light);border:1px solid var(--color-primary);color:#fff}.igd-select-files-modal .shortcode-module .shortcode-types .shortcode-type.active i{border:1px solid #fff}.igd-select-files-modal .shortcode-module .shortcode-types .shortcode-type:hover{background:var(--color-primary-light);border:1px solid var(--color-primary);color:#fff}.igd-select-files-modal .shortcode-module .shortcode-types .shortcode-type:hover i{border:1px solid #fff}.igd-select-files-modal .shortcode-module .settings-field{display:flex;flex-wrap:wrap;margin-bottom:10px;align-items:center;border:1px dashed #ddd;border-radius:5px;padding:12px 18px}.igd-select-files-modal .shortcode-module .settings-field-title{font-size:1.2rem;margin-bottom:20px;font-weight:600}.igd-select-files-modal .shortcode-module .settings-field-label{width:200px;font-weight:600;font-size:1rem;display:flex;justify-content:space-between}.igd-select-files-modal .shortcode-module .settings-field-label:after{content:":";margin-left:auto}.igd-select-files-modal .shortcode-module .settings-field-content{display:flex;flex-direction:column;align-items:flex-start;margin-left:20px;flex:1}.igd-select-files-modal .shortcode-module .settings-field-content .components-button i{margin-right:5px}.igd-select-files-modal .shortcode-module .settings-field-content .description{font-size:.8rem;margin-top:10px;text-align:left}.igd-select-files-modal .shortcode-module .settings-field.filter-field .filter-field-input{display:flex;flex-direction:column}.igd-select-files-modal .shortcode-module .settings-field.filter-field .filter-field-all{display:flex;align-items:center;justify-content:flex-start;margin-top:15px;flex-wrap:wrap}.igd-select-files-modal .shortcode-module .settings-field.filter-field .filter-field-all>div{display:flex;align-items:center}.igd-select-files-modal .shortcode-module .settings-field.filter-field .filter-field-all>div:first-child{margin-right:20px}.igd-select-files-modal .shortcode-module .settings-field.filter-field .filter-field-all-label{margin-right:10px;font-weight:500}.igd-select-files-modal .shortcode-module .settings-field.filter-field .filter-field-all .description{width:100%;text-align:left}.igd-select-files-modal .shortcode-module .settings-field.sort-field .sort-field-section{display:flex;flex-direction:column}.igd-select-files-modal .shortcode-module .settings-field.sort-field .sort-field-section:first-child{margin-right:35px;padding-right:15px;border-right:1px solid #ddd}.igd-select-files-modal .shortcode-module .settings-field.sort-field .sort-field-section-wrap{display:flex;margin:15px 30px}.igd-select-files-modal .shortcode-module .settings-field.sort-field .sort-field-section-label{margin-bottom:15px;font-weight:500;text-align:left}.igd-select-files-modal .shortcode-module .settings-field.sort-field .sort-field-section .sort-item{display:flex;align-items:center;margin-bottom:10px;cursor:pointer;position:relative}.igd-select-files-modal .shortcode-module .settings-field.sort-field .sort-field-section .sort-item i{display:none;position:absolute;left:-25px}.igd-select-files-modal .shortcode-module .settings-field.sort-field .sort-field-section .sort-item.active{color:var(--color-primary)}.igd-select-files-modal .shortcode-module .settings-field.sort-field .sort-field-section .sort-item.active i{display:block}.igd-select-files-modal .shortcode-module .settings-field.filter-users-field .filter-users-group{display:flex;flex-direction:column}.igd-select-files-modal .shortcode-module .settings-field.filter-users-field .filter-users{margin-top:15px;display:flex;flex-direction:column;border:1px dashed #ddd;padding:15px;border-radius:7px}.igd-select-files-modal .shortcode-module .settings-field.filter-users-field .filter-users-title{font-weight:500;font-size:1rem;margin-bottom:10px;text-align:left}.igd-select-files-modal .shortcode-module .settings-field.filter-users-field .filter-users-section{display:flex;align-items:center}.igd-select-files-modal .shortcode-module .settings-field.filter-users-field .filter-users-section:first-child{margin-right:20px}.igd-select-files-modal .shortcode-module .settings-field.filter-users-field .filter-users-section-label{margin-right:10px;font-weight:500}.igd-select-files-modal .shortcode-module .settings-field.filter-users-field .filter-users-section-wrap{display:flex;flex-wrap:wrap;margin-bottom:15px}.igd-select-files-modal .shortcode-module .settings-field.filter-users-field .filter-users-section-wrap .description{width:100%}.igd-select-files-modal .shortcode-module .settings-field input,.igd-select-files-modal .shortcode-module .settings-field select{height:40px;border-radius:5px;border:1px solid #ddd;font-size:.8rem;width:350px;max-width:100%}.igd-select-files-modal .shortcode-module .settings-field input:disabled,.igd-select-files-modal .shortcode-module .settings-field select:disabled{background:#f5f5f5;color:#aaa;cursor:not-allowed}.igd-select-files-modal .shortcode-module .settings-field .igd-select{width:400px}.igd-select-files-modal-header{display:flex;align-items:center;justify-content:space-between}.igd-select-files-modal-header .header-title{font-size:1.2rem;color:var(--color-primary);display:flex;align-items:center}.igd-select-files-modal-header .header-title i{margin-right:10px}.igd-select-files-modal-header button{padding:7px 8px}.igd-account-item{padding:1rem;display:flex;border:0 solid transparent;box-shadow:rgba(99,99,99,.2) 0 2px 8px 0;border-radius:.5rem;align-items:center;max-width:450px;margin-bottom:1rem;background:#fff}.igd-account-item img{width:50px;height:50px;margin-right:1rem;border-radius:50%}.igd-account-item-info{display:flex;flex-flow:column}.igd-account-item-info .account-name{font-size:1rem}.igd-account-item-info .account-email{color:#757575}.igd-account-item .igd-account-item-action{margin-left:auto}.igd-account-item .igd-account-item-action button{background-color:#ffe9d9;color:#f06500;border-color:transparent}.igd-account-item:hover button{background:#f96;color:#fff}.no-account-placeholder{display:flex;flex-flow:column;align-items:center;margin:10vh auto;padding:1.5rem 1rem;border-radius:.5rem;width:30rem;background:#fff;box-shadow:0 0 .5rem rgba(0,0,0,.1)}.no-account-placeholder>img{width:200px;margin-bottom:15px}.no-account-placeholder .placeholder-heading{font-size:1.2rem;margin-bottom:7px;font-weight:600}.no-account-placeholder button{margin-top:1.5rem;padding:7px 10px;background:#fff;color:#555;border-radius:3px;border:1px solid #ccc}.no-account-placeholder button img{width:24px;height:24px;margin-right:10px}.add-account-btn{padding:10px 15px;background:#fff;color:#555;border-radius:3px;border:1px solid #ccc}.add-account-btn img{width:24px;height:24px;margin-right:10px}.igd .igd-spinner{margin-top:0;border-radius:50%}.sortable-item{z-index:999999}.igd-select-sources-wrap .igd-browser-wrap{flex:1;margin-right:1rem}.igd-select-sources-wrap .igd-selected-list{width:24%;max-width:300px}.igd-select-sources-wrap.view-list .igd-browser-wrap{width:100%;margin-right:0}.igd-select-sources-wrap.view-list .igd-selected-list{width:100%;max-width:100%;margin-top:1rem}.igd-pagination{display:flex;padding:0}.igd-pagination li{justify-content:center!important;flex-wrap:wrap!important;list-style:none;position:relative;display:flex;align-items:center;padding:8px 16px;text-decoration:none!important;font-size:15px;margin-left:-1px;border:1px solid #dee2e6;margin-right:0;margin-top:0;cursor:pointer}.igd-pagination li.selected,.igd-pagination li:hover{background:var(--color-primary);color:#fff;border-color:var(--color-primary)}.igd-pagination li.disabled{background:#eee;cursor:not-allowed}.igd-pagination li:first-child{border-top-left-radius:3px;border-bottom-left-radius:3px}.igd-pagination li:last-child{border-top-right-radius:3px;border-bottom-right-radius:3px}.igd-pagination li svg{fill:currentColor}.igd-move-modal .components-modal__content{display:flex;flex-flow:column}.igd-file-item .igd-file-thumbnail{-webkit-user-drag:none}.template-tags{margin-top:10px;border-bottom:1px solid #eee;padding-bottom:8px;width:100%}.template-tags-title{width:100%;margin-bottom:7px;text-align:left;font-size:1rem;display:flex;align-items:center}.template-tags-title i{margin-right:7px;cursor:pointer}.template-tags-title span:nth-child(3){margin-left:7px}.template-tags-title+.template-tags-list{display:none}.template-tags-title.active i:before{content:"\f343"}.template-tags-title.active+.template-tags-list{display:flex}.template-tags-list{display:flex;flex-wrap:wrap}.template-tags-list .tag{color:#2fb44b;margin-right:10px;margin-bottom:7px;background:rgba(47,180,75,.1);padding:7px 10px;border-radius:5px;cursor:pointer;font-size:.87rem}.template-tags-list .tag:hover{background:rgba(47,180,75,.7);color:#fff}.template-tags-list .tag-break{width:100%;border-top:1px solid #eee;margin-top:5px;margin-bottom:11px}.template-tags-list .tag-break+.tag-break{display:none}.template-folder{padding:7px 10px;border-radius:5px;background:#eaeaea;margin-right:10px;font-size:.9rem;color:#555;display:flex;flex-wrap:wrap;align-items:center;width:-moz-max-content;width:max-content;line-height:1}.template-folder-account{margin-right:10px}.template-folder-item{background:#fff;padding:5px 7px;border-radius:3px;font-size:.8rem;display:flex;align-items:center;justify-content:center}.template-folder i,.template-folder img{margin-right:7px;width:20px}.template-folder-wrap{display:flex;align-items:center;width:100%}.template-folder-wrap button{font-size:.875rem;padding:7px;margin-left:10px}.template-folder-wrap button.btn-danger{background:#ff9f10;border-color:rgba(255,159,16,.5)}.template-folder-wrap button.btn-danger:hover{background:rgba(255,159,16,.8)}.template-folder-error{color:#ff9f10;font-size:.8rem;margin-top:10px;display:flex;align-items:center}.template-folder-error i{margin-right:5px}.template-folder .dashicons-no-alt{color:#ff9f10;cursor:pointer;margin-left:10px}body.google-drive_page_integrate-google-drive-settings{background:#f7f8fa}.igd-settings{display:flex;flex-wrap:wrap;margin-left:-20px;width:calc(100% + 20px)}@media (max-width:767px){.igd-settings{margin-left:-10px;width:calc(100% + 10px)}}.igd-settings *{box-sizing:border-box}.igd-settings .integrations-wrapper{margin-bottom:40px;background:#fff;padding:15px 20px;border-radius:10px}.igd-settings .integrations-wrapper .integrations-header{display:flex;flex-wrap:wrap;margin-bottom:60px;width:100%}.igd-settings .integrations-wrapper .integrations-header .igd-settings-body-title{margin-bottom:0}.igd-settings .integrations-wrapper .integrations-header p{font-size:1rem}.igd-settings .integrations-wrapper .integrations-header .integrations-actions{display:flex;align-items:center;-moz-column-gap:10px;column-gap:10px;margin-left:auto}.igd-settings .integrations-wrapper .integrations-header .integrations-actions button{height:40px}.igd-settings .integrations-wrapper .integrations{display:flex;flex-wrap:wrap;justify-content:space-between}.igd-settings .integrations-wrapper .integration-item{display:flex;flex-direction:column;align-items:center;justify-content:center;width:calc(25% - 30px);margin:15px 15px 60px 15px;text-align:center;border-radius:15px;padding:20px;position:relative;background:#fff;border:1px dashed rgba(47,180,75,.3);transition:all .3s ease;cursor:pointer;padding-top:60px;background:rgba(238,238,238,.3)}.igd-settings .integrations-wrapper .integration-item:last-child{margin-right:auto}.igd-settings .integrations-wrapper .integration-item-img{top:-50px;position:absolute;width:100px;height:auto;border-radius:50%;background:#fff;padding:5px;border:1px solid #ddd}.igd-settings .integrations-wrapper .integration-item-doc-link{position:absolute;top:10px;right:10px;text-decoration:none;color:#555;font-weight:400;display:flex;align-items:center;justify-content:center;line-height:1;transition:all .3s ease;border-radius:50%;background:#fff;border:1px solid #ddd;height:24px;width:24px}.igd-settings .integrations-wrapper .integration-item-doc-link i{height:auto;width:auto;font-size:22px}.igd-settings .integrations-wrapper .integration-item-doc-link:hover{transform:scale(1.2)}.igd-settings .integrations-wrapper .integration-item-title{font-size:14px;font-weight:600;text-transform:uppercase;color:#000;margin:10px 0}.igd-settings .integrations-wrapper .integration-item-description{font-size:.875rem;margin:10px 0;line-height:1.5}.igd-settings .integrations-wrapper .integration-item .toggle-label{color:#555;font-size:.75rem;font-weight:400;display:none}.igd-settings .integrations-wrapper .integration-item .toggle-label.active{color:#44b754}.igd-settings .integrations-wrapper .integration-item .toggle-label.inactive{color:#e74c3c}.igd-settings .integrations-wrapper .integration-item-toggle{margin:10px}.igd-settings .integrations-wrapper .integration-item-toggle-wrapper{display:flex;align-items:center}.igd-settings .integrations-wrapper .integration-item.active{border-style:solid;border-color:#2fb44b;background:rgba(47,180,75,.1)}.igd-settings .integrations-wrapper .integration-item.active:after{content:"Enabled";background:#44b754;position:absolute;top:10px;left:10px;text-align:center;color:#fff;font-size:12px;padding:5px 7px;border-radius:5px}.igd-settings .integrations-wrapper .integration-item .pro-badge{position:absolute;top:10px;left:10px;background:#ff9458;color:#fff;padding:5px 10px;border-radius:3px;font-size:12px;font-weight:400;display:flex;align-items:center;justify-content:center;line-height:1;box-shadow:0 0 5px rgba(0,0,0,.1);transition:all .3s ease}.igd-settings .integrations-wrapper .integration-item .pro-badge i{height:auto;width:auto;font-size:18px;margin-right:3px}.igd-settings .integrations-wrapper .integration-item .active-badge{position:absolute;top:-10px;right:-10px;background:#44b754;color:#fff;padding:5px 10px;border-radius:30px;font-size:12px;font-weight:400;display:flex;align-items:center;justify-content:center;line-height:1;box-shadow:0 0 5px rgba(0,0,0,.1);transition:all .3s ease}.igd-settings .integrations-wrapper .integration-item .active-badge i{height:auto;width:auto;font-size:18px;margin-right:3px}.igd-settings .integrations-wrapper .integration-item:hover .pro-badge{transform:scale(1.2)}.igd-settings .integrations-wrapper .integration-item.pro-item{border-color:#ff9458}@media (min-width:1200px) and (max-width:1600px){.igd-settings .integrations-wrapper .integration-item{width:calc(33.333% - 30px)}}@media (max-width:1200px){.igd-settings .integrations-wrapper .integration-item{width:calc(50% - 30px)}}@media (max-width:768px){.igd-settings .integrations-wrapper .integration-item{width:100%;margin:0}}.igd-settings-header{width:100%;display:flex;align-items:center;justify-content:space-between;padding:15px 20px;background:#fff;border-bottom:1px solid #e5e5e5;position:sticky;top:32px;z-index:9}.igd-settings-header-title{display:flex;align-items:center;font-size:1.5rem;font-weight:600;color:#000}.igd-settings-header-title img{margin-right:10px}.igd-settings-header-title i{margin-right:10px;background:var(--color-primary);color:#fff;padding:7px;border-radius:50%;height:auto;width:auto}.igd-settings-header-title i.dashicons-menu-alt3{display:none}.igd-settings-menu{width:250px;border:0 solid transparent;box-shadow:rgba(99,99,99,.2) 0 2px 8px 0;background:#fff;overflow:hidden;min-height:100vh}.igd-settings-menu-item{padding:8px 10px;margin:5px 0;cursor:pointer;transition:all .2s ease-in-out;display:flex;align-items:center;font-size:1rem}.igd-settings-menu-item img{margin-right:10px;width:32px}.igd-settings-menu-item:hover{background:#f5f5f5}.igd-settings-menu-item.active{background:rgba(47,180,75,.1);color:#2fb44b;border-right:3px solid #2fb44b;font-weight:500}@media (max-width:768px){.igd-settings-menu{width:100%;min-height:auto}.igd-settings-menu-item{padding:10px}}.igd-settings-body{flex:1;border:0 solid transparent;border-radius:.5rem;padding:20px 30px;display:flex;flex-flow:column}.igd-settings-body-title{font-size:1.2rem;font-weight:600;line-height:1;margin-top:0;margin-bottom:15px;text-align:left;display:flex;align-items:center;justify-content:space-between}@media (max-width:768px){.igd-settings-body{margin-top:20px;margin-left:0;padding:10px}}.igd-settings .settings-field{display:flex;align-items:center;flex-wrap:wrap;margin-bottom:20px;background:#fff;border-radius:10px;padding:20px 30px}.igd-settings .settings-field:last-child{border-bottom:none}.igd-settings .settings-field-label{width:200px;font-size:.9rem;font-weight:500;display:flex;justify-content:space-between;margin-right:30px;line-height:1.5;margin-top:0}.igd-settings .settings-field-label:after{content:":";margin-left:auto}.igd-settings .settings-field-content{flex:1;display:flex;flex-direction:column;width:100%}.igd-settings .settings-field-content input[type=email],.igd-settings .settings-field-content input[type=number],.igd-settings .settings-field-content input[type=text],.igd-settings .settings-field-content select{width:300px;height:45px!important;border-color:#ddd;border-radius:5px!important;max-width:100%}.igd-settings .settings-field-content input[type=email].folder-naming-template,.igd-settings .settings-field-content input[type=number].folder-naming-template,.igd-settings .settings-field-content input[type=text].folder-naming-template,.igd-settings .settings-field-content select.folder-naming-template{width:500px}.igd-settings .settings-field-content input[type=email]:focus,.igd-settings .settings-field-content input[type=number]:focus,.igd-settings .settings-field-content input[type=text]:focus,.igd-settings .settings-field-content select:focus{border-color:inherit;box-shadow:none}.igd-settings .settings-field-content .components-input-control__container{width:300px}.igd-settings .settings-field-content .components-input-control__backdrop{border-color:#ddd!important;border-radius:5px!important;height:45px}.igd-settings .settings-field-content .igd-color-palette{max-width:100%;position:relative;border:1px solid #e5e5e5;padding:11px;border-radius:10px;background:#fff}.igd-settings .settings-field-content .igd-color-palette legend{display:none}.igd-settings .settings-field-content .igd-color-palette .components-dropdown{width:-moz-max-content;width:max-content}.igd-settings .settings-field-content .igd-color-palette .components-color-palette__custom-color-button{width:100px;height:40px;border-radius:5px}.igd-settings .settings-field-content .igd-color-palette .components-color-palette__custom-color-button .components-truncate{display:none}.igd-settings .settings-field-content .igd-color-palette .components-color-palette__custom-color-button .components-color-palette__custom-color-value{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.igd-settings .settings-field-content .igd-color-palette .components-popover{left:0!important}.igd-settings .settings-field-content .igd-color-palette .components-popover .components-popover__content{outline-color:rgba(221,221,221,.5);border-radius:5px;box-shadow:rgba(0,0,0,.16) 0 10px 36px 0,rgba(0,0,0,.06) 0 0 0 1px}.igd-settings .settings-field-content .igd-color-palette .components-popover .components-popover__content .react-colorful+div{padding-top:0;display:flex}.igd-settings .settings-field-content .igd-color-palette .components-popover .components-popover__content .react-colorful+div>div:first-child{width:auto;padding-right:0}.igd-settings .settings-field-content .igd-color-palette .components-popover .components-popover__content .react-colorful+div>div:first-child>button{margin-left:5px}.igd-settings .settings-field-content .igd-color-palette .components-popover .components-popover__content .react-colorful+div>div:last-child{padding:5px;flex:1}.igd-settings .settings-field-content .igd-color-palette .components-popover .components-popover__content .react-colorful__saturation{height:100px;margin-bottom:10px}.igd-settings .settings-field-content .igd-color-palette .components-popover .components-popover__content .components-input-control__container{width:100%}.igd-settings .settings-field-content .igd-color-palette .components-popover .components-popover__content .components-input-control__container .components-spacer{margin-left:10px}.igd-settings .settings-field-content .igd-color-palette .components-popover .components-popover__content .components-input-control__container input{height:30px;min-height:30px;padding-right:5px}.igd-settings .settings-field-content .igd-color-palette .components-popover .components-popover__content .components-input-control__container select{height:auto!important}.igd-settings .settings-field-content .igd-color-palette .components-popover .components-popover__content .components-input-control__container .components-input-control__backdrop{border-color:#ddd;border-radius:5px;height:auto!important}.igd-settings .settings-field-content .igd-color-palette .components-popover .components-popover__content::-webkit-scrollbar{width:5px}.igd-settings .settings-field-content .igd-color-palette .components-popover .components-popover__content::-webkit-scrollbar-track{background:#f1f1f1}.igd-settings .settings-field-content .igd-color-palette .components-popover .components-popover__content::-webkit-scrollbar-thumb{background:#888}.igd-settings .settings-field-content .igd-color-palette .components-popover .components-popover__content::-webkit-scrollbar-thumb:hover{background:#555}.igd-settings .settings-field-content .igd-color-palette .components-circular-option-picker__custom-clear-wrapper{position:absolute;margin:0;left:120px;top:15px}.igd-settings .settings-field-content .igd-color-palette .components-circular-option-picker__custom-clear-wrapper button{color:#675ed5!important;background:#fff!important;border:1px solid rgba(103,94,213,.25)!important;box-shadow:none;font-size:.875rem;height:32px;width:60px;text-align:center;border-radius:5px;padding:5px 12px}.igd-settings .settings-field-content .igd-color-palette .components-circular-option-picker__custom-clear-wrapper button:hover{color:#fff;background:#675ed5;border:1px solid rgba(103,94,213,.25)}.igd-settings .settings-field-content .igd-color-palette .components-color-palette__custom-color-text-wrapper{position:absolute;box-shadow:none;pointer-events:none}.igd-settings .settings-field-content .igd-color-palette .components-circular-option-picker__option:after,.igd-settings .settings-field-content .igd-color-palette .components-circular-option-picker__option:before{width:auto;height:auto}.igd-settings .settings-field-content .igd-color-palette .components-circular-option-picker__option .components-tooltip{display:none}.igd-settings .settings-field-content .igd-color-palette .components-select-control .components-input-control__backdrop{display:block;border-color:#ddd!important;border-radius:5px!important}.igd-settings .settings-field-content .igd-color-palette.disabled{opacity:.5}.igd-settings .settings-field-content .igd-textarea{max-width:500px}.igd-settings .settings-field-content .igd-textarea textarea{border-color:#ddd;border-radius:5px!important}.igd-settings .settings-field-content .components-button-group{background:rgba(47,180,75,.1);padding:10px;width:-moz-max-content;width:max-content;border-radius:10px}.igd-settings .settings-field-content .components-button-group button{color:#47cf64;box-shadow:inset 0 0 0 1px rgba(47,180,75,.25);margin:0 3px;border-radius:5px;background:#fff}.igd-settings .settings-field-content .components-button-group button:first-child{border-top-left-radius:5px;border-bottom-left-radius:5px}.igd-settings .settings-field-content .components-button-group button:last-child{border-top-right-radius:5px;border-bottom-right-radius:5px}.igd-settings .settings-field-content .components-button-group button.is-primary{z-index:auto;background:#47cf64;color:#fff}.igd-settings .settings-field-content .components-button-group button.is-secondary:hover{color:#2fb44b;box-shadow:inset 0 0 0 1px #47cf64}.igd-settings .settings-field-content .components-button-group button i{margin-right:10px}.igd-settings .settings-field-content .preloaders{display:flex;flex-wrap:wrap}.igd-settings .settings-field-content .preloaders .preloader{display:flex;flex-direction:column;border:1px solid #e9e9e9;border-radius:.5rem;margin:0 15px 15px 0;position:relative;cursor:pointer;overflow:hidden;background:#eff3fe;width:130px}.igd-settings .settings-field-content .preloaders .preloader img{width:100%;height:100px;transition:all .2s ease-in-out}.igd-settings .settings-field-content .preloaders .preloader-name{border-top:1px solid #e9e9e9;padding:3px 5px;text-align:center;display:flex;align-items:center;justify-content:center;background:#fff;margin-top:auto}.igd-settings .settings-field-content .preloaders .preloader-name i{margin-right:3px}.igd-settings .settings-field-content .preloaders .preloader .pro-badge{position:absolute;top:-10px;right:-10px;background:#0a66c2;color:#fff;padding:5px 10px;border-radius:30px;font-size:12px;font-weight:400;display:flex;align-items:center;justify-content:center;line-height:1;box-shadow:0 0 5px rgba(0,0,0,.1);transition:all .3s ease}.igd-settings .settings-field-content .preloaders .preloader .pro-badge i{height:auto;width:auto;font-size:18px;margin-right:3px}.igd-settings .settings-field-content .preloaders .preloader.active{border-color:#2fb44b}.igd-settings .settings-field-content .preloaders .preloader.active .preloader-name{border-top-color:#2fb44b;background:#2fb44b;color:#fff}.igd-settings .settings-field-content .preloaders .preloader.active:after{content:"\f15e";font-family:Dashicons;height:24px;width:24px;background:#2fb44b;color:#fff;position:absolute;top:5px;right:5px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:21px}.igd-settings .settings-field-content .preloaders .preloader:hover{border-color:#2fb44b}.igd-settings .settings-field-content .preloaders .preloader:hover img{transform:scale(1.1)}.igd-settings .settings-field-content .preloaders .preloader.disabled .preloader-name{background:#ddd;color:#888}.igd-settings .settings-field-content .preloaders .preloader.disabled:hover{border-color:transparent}.igd-settings .settings-field-content .preloader-upload{border:1px dashed #ddd;border-radius:5px;padding:15px}.igd-settings .settings-field-content .preloader-upload h4{margin-top:0}.igd-settings .settings-field-content .preloader-upload-actions{display:flex;align-items:center}.igd-settings .settings-field-content .preloader-upload-actions button:nth-child(2){margin-left:10px}.igd-settings .settings-field-content .preloader-upload .preloader-preview{margin-top:20px}.igd-settings .settings-field-content .preloader-upload .preloader-preview img{max-width:150px;max-height:150px}.igd-settings .settings-field-content .own-google-app-warning{flex-direction:column}.igd-settings .settings-field .description{margin-top:7px;margin-bottom:0;color:#666;display:flex;align-items:center;flex-wrap:wrap}.igd-settings .settings-field .description .igd-btn{margin-left:15px}.igd-settings .settings-field .description strong{margin-right:3px}.igd-settings .settings-field .description strong:not(:first-child){margin-left:3px}.igd-settings .settings-field .template-tags-title{font-size:.875rem}.igd-settings .settings-field.field-preloader{flex-direction:column;align-items:flex-start}.igd-settings .settings-field.field-preloader .settings-field-label{width:100%}.igd-settings .settings-field.field-preloader .settings-field-label:after{content:""}.igd-settings .settings-field.field-preloader .description{font-size:1rem;margin-bottom:20px}.igd-settings .settings-field.field-access-browser:has(.settings-field-sub){flex-direction:column;align-items:flex-start}.igd-settings .settings-field.field-access-browser:has(.settings-field-sub) .settings-field-label{width:100%}.igd-settings .settings-field.field-access-browser:has(.settings-field-sub) .settings-field-label:after{content:""}.igd-settings .settings-field.field-custom-css{flex-direction:column;align-items:flex-start}.igd-settings .settings-field.field-custom-css .settings-field-label{width:100%}.igd-settings .settings-field.field-custom-css .settings-field-label:after{content:""}.igd-settings .settings-field.field-custom-css .igd-textarea,.igd-settings .settings-field.field-custom-css textarea{width:100%;max-width:100%}.igd-settings .settings-field.field-custom-css .description{font-size:1rem;margin-bottom:20px}.igd-settings .settings-field.field-custom-css .CodeMirror{border:1px solid #ddd;border-radius:5px}.igd-settings .settings-field.field-woocommerce-upload{align-items:flex-start}.igd-settings .settings-field.field-woocommerce-upload>.settings-field-label{margin-bottom:0;margin-top:20px}.igd-settings .settings-field.sync-folders .template-folder{margin-right:7px}.igd-settings .settings-field.sync-folders .template-folder-item{margin-left:0}.igd-settings .settings-field.sync-folders .igd-btn{margin-left:20px}.igd-settings .settings-field.field-access-denied-message{flex-direction:column;align-items:flex-start}.igd-settings .settings-field.field-access-denied-message .settings-field-label{width:100%}.igd-settings .settings-field.field-access-denied-message .settings-field-label:after{content:""}.igd-settings .settings-field.field-access-denied-message .description{margin-top:-5px;margin-bottom:15px}.igd-settings .settings-field.field-access-denied-message .wp-editor-wrap{width:100%}.igd-settings .settings-field.field-access-denied-message .wp-editor-wrap textarea{border:none}.igd-settings .settings-field.field-access-denied-message .wp-switch-editor{height:29px}.igd-settings .settings-field.field-access-denied-message textarea{width:100%;border:1px solid #eee;padding:15px;min-width:200px}.igd-settings .settings-field.field-access-denied-message textarea:focus{outline:0;box-shadow:none}.igd-settings .settings-field.field-naming-template input[type=text]{width:100%}.igd-settings .settings-field-sub{display:flex;flex-direction:column;width:100%}.igd-settings .settings-field-sub .settings-field{flex-direction:column;align-items:flex-start;margin-top:15px;margin-bottom:0;display:flex;border:1px dashed #ddd;padding:15px;border-radius:7px;width:100%}.igd-settings .settings-field-sub .settings-field-label{margin-bottom:10px;width:auto}.igd-settings .settings-field-sub .settings-field-label:after{content:"";display:none}.igd-settings .settings-field-sub .settings-field-content{width:100%;margin-left:0}.igd-settings .sub-settings{margin-left:10px;display:flex;flex-direction:column;margin-bottom:30px;background:#fff;border-top-right-radius:10px;border-bottom-right-radius:10px;padding:20px;position:relative}.igd-settings .sub-settings:before{content:"";position:absolute;top:0;left:-10px;width:10px;height:100%;background:#2fb44b}.igd-settings .sub-settings .settings-field{padding:0;margin:15px 0}.igd-settings .no-account-placeholder{margin:0 0 1rem 0;align-items:flex-start}.igd-settings .privacy-text-wrap{margin-top:30px;-webkit-user-select:none;-moz-user-select:none;user-select:none;background:#fff;border-radius:10px;padding:15px 30px 15px 15px}.igd-settings .privacy-text-wrap .privacy-text-btn{font-size:1rem;color:#555;cursor:pointer;display:flex;align-items:center}.igd-settings .privacy-text-wrap .privacy-text-btn img{margin-right:10px}.igd-settings .privacy-text-wrap .privacy-text-btn span{margin:0 5px}.igd-settings .privacy-text-wrap .privacy-text-btn i{margin-left:auto}.igd-settings .privacy-text-wrap .privacy-text{margin-top:20px;color:#333;padding:20px 10px;border-top:1px solid rgba(47,180,75,.2)}.igd-settings .privacy-text-wrap .privacy-text h4{margin-top:0;margin-bottom:5px;font-size:1rem}.igd-settings .privacy-text-wrap .privacy-text p{font-size:.9rem;line-height:1.5}.igd-settings .components-form-toggle{width:-moz-max-content;width:max-content;background:#fff;padding:3px;border-radius:15px}.igd-settings .components-form-toggle__track{width:44px;height:22px;border-radius:22px}.igd-settings .components-form-toggle__thumb{background:#2fb44b;border:none;width:15px;height:15px;border-radius:25px;top:6px;left:6px}.igd-settings .components-form-toggle.is-checked .components-form-toggle__thumb{background:#fff;transform:translateX(22px)}.igd-settings .components-form-toggle.is-checked .components-form-toggle__track{background:#2fb44b}.igd-settings .components-checkbox-control{border-radius:5px;padding:10px;cursor:pointer;transition:all .2s ease-in-out;background:#fff;-webkit-user-select:none;-moz-user-select:none;user-select:none}.igd-settings .components-checkbox-control .components-base-control__field{display:flex;align-items:center;margin-bottom:0}.igd-settings .components-checkbox-control__input{border-color:#47cf64;outline:0;box-shadow:none}.igd-settings .components-checkbox-control__input:checked{background-color:#2fb44b}.igd-settings .components-checkbox-control:hover{border-color:#2fb44b}.igd-settings .sharing-channels{display:flex;flex-wrap:wrap}.igd-settings .sharing-channels-wrap{background:#fff;padding:15px 20px;border-radius:7px}.igd-settings .sharing-channels-wrap .igd-settings-body-title{margin-top:0;margin-bottom:5px}.igd-settings .sharing-channels-wrap .description{font-size:1rem;margin-bottom:10px}.igd-settings .sharing-channels .components-checkbox-control{margin:8px;border:1px solid #ddd}.igd-settings .sharing-channels .components-checkbox-control:first-child{margin-left:0}@media (max-width:767px){.igd-settings-header{top:0}.igd-settings-header-title i.dashicons-admin-generic{display:none}.igd-settings-header-title i.dashicons-menu-alt3{display:block}.igd-settings-menu.active{display:block}.igd-settings-body{margin-right:10px}.igd-settings .settings-field{flex-flow:column;align-items:flex-start}.igd-settings .settings-field-label{margin-bottom:10px}.igd-settings .settings-field-label:after{display:none}}body.google-drive_page_integrate-google-drive-getting-started #wpcontent{padding:0;background:#fff}.igd-getting-started *{box-sizing:border-box}.igd-getting-started .getting-started-header{background:url(../images/getting-started/bg-shapes.png) no-repeat top/cover,#116222;padding:60px 60px 120px 60px;color:#fff;text-align:center}.igd-getting-started .getting-started-header .header-logo{display:flex;align-items:center;justify-content:center;margin-bottom:1rem;line-height:1.5}.igd-getting-started .getting-started-header .header-logo img{width:50px;margin-right:10px;background:#fff;padding:5px;border-radius:50%}.igd-getting-started .getting-started-header .header-logo span{font-size:2rem;font-weight:600}.igd-getting-started .getting-started-header p{max-width:600px;font-size:1rem;margin:auto;line-height:1.5;color:#eafaff}.igd-getting-started .getting-started-header .header-title{font-size:1.3rem;background:#248c3a;padding:17px 20px;border-radius:30px;display:inline-flex;color:#eaf7ed}@media (max-width:767px){.igd-getting-started .getting-started-header{padding:20px 20px 80px 20px}.igd-getting-started .getting-started-header .header-logo img{width:35px;padding:2px}.igd-getting-started .getting-started-header .header-logo span{font-size:1.5rem}.igd-getting-started .getting-started-header p{font-size:.9rem}.igd-getting-started .getting-started-header .header-title{font-size:1rem;padding:10px 15px}}.igd-getting-started .getting-started-main{max-width:1000px;margin:-64px auto 0 auto}.igd-getting-started .getting-started-menu{display:flex;justify-content:center;align-items:center;background:#fff;border-top-left-radius:30px;border-top-right-radius:30px;border-bottom:1px solid #e5e5e5}.igd-getting-started .getting-started-menu .menu-item{display:flex;align-items:center;padding:20px 30px;cursor:pointer;color:#4d4d4d;transition:all .3s ease-in-out;border-bottom:2px solid transparent;margin-bottom:-2px}.igd-getting-started .getting-started-menu .menu-item svg{margin-right:10px}.igd-getting-started .getting-started-menu .menu-item span{font-size:.9rem;font-weight:500}.igd-getting-started .getting-started-menu .menu-item:hover{color:#248c3a}.igd-getting-started .getting-started-menu .menu-item:hover path,.igd-getting-started .getting-started-menu .menu-item:hover svg{fill:#248c3a}.igd-getting-started .getting-started-menu .menu-item.active{color:#2fb44b;border-bottom:2px solid #2fb44b}.igd-getting-started .getting-started-menu .menu-item.active path,.igd-getting-started .getting-started-menu .menu-item.active svg{fill:#2fb44b}@media (max-width:767px){.igd-getting-started .getting-started-menu{border-radius:0;flex-direction:column;align-items:normal}}.igd-getting-started .getting-started-content{display:none;margin-top:30px}.igd-getting-started .getting-started-content .section-wrap{display:flex;flex-wrap:wrap;justify-content:space-between;margin-bottom:30px}.igd-getting-started .getting-started-content .section-wrap section{width:48%}.igd-getting-started .getting-started-content section{display:flex;flex-wrap:wrap;padding:30px;border-radius:15px}.igd-getting-started .getting-started-content section.section-full{align-items:center;justify-content:space-between;margin-bottom:2rem}.igd-getting-started .getting-started-content section.section-full>div{width:48%}.igd-getting-started .getting-started-content section.section-half{justify-content:center}.igd-getting-started .getting-started-content section.section-half .col-description{text-align:center;margin-bottom:1rem}.igd-getting-started .getting-started-content section.section-half .col-image{margin-top:auto}.igd-getting-started .getting-started-content section.section-introduction{background:#eaf7ed}.igd-getting-started .getting-started-content section.section-file-browser,.igd-getting-started .getting-started-content section.section-file-uploader{background:#eff3fe}.igd-getting-started .getting-started-content section.section-photo-gallery,.igd-getting-started .getting-started-content section.section-slider-carousel{background:rgba(253,246,236,.8)}.igd-getting-started .getting-started-content section.section-file-importer,.igd-getting-started .getting-started-content section.section-links{background:#eff3fe}.igd-getting-started .getting-started-content section.section-multiple-accounts{background:#eaf7ed}.igd-getting-started .getting-started-content section.section-contact,.igd-getting-started .getting-started-content section.section-documentation{background:#eaf7ed}.igd-getting-started .getting-started-content section.section-contact .col-image img,.igd-getting-started .getting-started-content section.section-documentation .col-image img{border:none}.igd-getting-started .getting-started-content section.section-add-account,.igd-getting-started .getting-started-content section.section-media-player{background:#eaf7ed}.igd-getting-started .getting-started-content section.section-embed,.igd-getting-started .getting-started-content section.section-file-search{background:#eaf7ed}.igd-getting-started .getting-started-content section.section-private-folders,.igd-getting-started .getting-started-content section.section-shortcode-builder,.igd-getting-started .getting-started-content section.section-woocommerce{background:#fdf6ec}.igd-getting-started .getting-started-content section.section-data-privacy{background:#eaf7ed;margin-bottom:2rem}.igd-getting-started .getting-started-content section.section-data-privacy .col-description{text-align:left}.igd-getting-started .getting-started-content section.integrations{display:flex;flex-wrap:wrap;justify-content:space-between;margin:0 -10px;padding:0}.igd-getting-started .getting-started-content section.integrations .integration{width:calc(33% - 20px);display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;background:#eaf7ed;margin:10px;padding:20px;border-radius:15px}.igd-getting-started .getting-started-content section.integrations .integration img{width:100px;height:100px;margin-bottom:10px;border-radius:50%}.igd-getting-started .getting-started-content section .col-description h2{font-size:1.5rem;font-weight:600;margin:1rem 0}.igd-getting-started .getting-started-content section .col-image iframe,.igd-getting-started .getting-started-content section .col-image img{width:100%;border-radius:7px}.igd-getting-started .getting-started-content section .col-image iframe{aspect-ratio:16/9;box-shadow:0 0 10px rgba(0,0,0,.1)}.igd-getting-started .getting-started-content section .igd-btn{padding:15px 20px;margin:30px auto 0 auto}.igd-getting-started .getting-started-content .content-heading{display:flex;flex-direction:column;align-items:center;justify-content:center;margin:80px auto 40px auto;text-align:center;max-width:600px;line-height:1.3}.igd-getting-started .getting-started-content .content-heading h2{margin:5px 0;font-size:30px;font-weight:700}.igd-getting-started .getting-started-content .content-heading p{margin:5px;font-size:.875rem}.igd-getting-started .getting-started-content.active{display:block}@media (max-width:767px){.igd-getting-started .getting-started-content{padding:10px}.igd-getting-started .getting-started-content .section-wrap section{width:100%;margin-bottom:30px}.igd-getting-started .getting-started-content section.section-full{flex-direction:column;align-items:center;justify-content:center}.igd-getting-started .getting-started-content section.section-full>div{width:100%}.igd-getting-started .getting-started-content section.integrations{margin:0}.igd-getting-started .getting-started-content section.integrations .integration{width:100%;margin:0 0 20px 0}}.igd-getting-started .getting-started-content p{font-size:1rem}.igd-getting-started .getting-started-content li{font-size:.975rem;margin-bottom:15px;line-height:1.5}.igd-getting-started .getting-started-content h4{font-size:1rem}.igd-getting-started .log{border-radius:15px;margin-bottom:20px}.igd-getting-started .log-header{display:flex;align-items:center;cursor:pointer;padding:20px;background:rgba(47,180,75,.0875);border-radius:15px}.igd-getting-started .log-header span{font-size:1rem;font-weight:500;margin-right:10px}.igd-getting-started .log-header span.log-version{background:#2fb44b;color:#fff;padding:5px 10px;border-radius:5px}.igd-getting-started .log-header i{margin-left:auto;background:#2fb44b;display:flex;align-items:center;justify-content:center;color:#fff;border-radius:50%;height:25px;width:25px}.igd-getting-started .log-body{display:none}.igd-getting-started .log-body .log-section{padding-bottom:10px;border-bottom:1px solid rgba(47,180,75,.1)}.igd-getting-started .log-body .log-section:last-child{border-bottom:none}.igd-getting-started .log-body .log-item{font-size:1rem;line-height:1.5;margin-bottom:10px;display:flex;align-items:center}.igd-getting-started .log-body .log-item i{display:inline-flex;align-items:center;justify-content:center;margin-right:10px;border-radius:50%;height:25px;width:25px;padding:5px}.igd-getting-started .log-body .log-item-new{color:#3265a6}.igd-getting-started .log-body .log-item-new i{background:#3265a6;color:#fff}.igd-getting-started .log-body .log-item-fix{color:#2fb44b}.igd-getting-started .log-body .log-item-fix i{background:#2fb44b;color:#fff}.igd-getting-started .log-body .log-item-enhancement{color:#f5a623}.igd-getting-started .log-body .log-item-enhancement i{background:#f5a623;color:#fff}.igd-getting-started .log-body .log-item-remove{color:#f3754d}.igd-getting-started .log-body .log-item-remove i{background:0 0}.igd-getting-started .log.active{border:1px solid rgba(47,180,75,.3)}.igd-getting-started .log.active .log-header{border-bottom:1px solid rgba(47,180,75,.3);border-bottom-left-radius:0;border-bottom-right-radius:0}.igd-getting-started .log.active .log-body{display:block;padding:20px}.igd-getting-started .free-vs-pro h2 span{margin:0 10px}.igd-getting-started .free-vs-pro h2 span:first-child{color:#7a7a7a}.igd-getting-started .free-vs-pro h2 span:last-child{color:#2fb44b}.igd-getting-started .features-list{background:#eff3fe;border-radius:15px}.igd-getting-started .features-list .list-header{display:flex;align-items:center;padding:30px;font-size:1.2rem;border-bottom:1px solid rgba(47,180,75,.1);font-weight:600;background:rgba(47,180,75,.0875)}.igd-getting-started .features-list .list-header .feature-title{width:75%}.igd-getting-started .features-list .list-header .feature-free{width:12%}.igd-getting-started .features-list .list-header .feature-pro{width:12%;margin-left:auto;text-align:center}.igd-getting-started .features-list .feature{display:flex;align-items:center;padding:20px 30px;font-size:1rem;font-weight:500;border-bottom:1px solid rgba(47,180,75,.1)}.igd-getting-started .features-list .feature:last-child{border-bottom:none}.igd-getting-started .features-list .feature .feature-title{width:75%}.igd-getting-started .features-list .feature i{color:#fff;background:#2fb44b;width:30px;height:30px;display:inline-flex;align-items:center;justify-content:center;border-radius:10px}.igd-getting-started .features-list .feature i.dashicons-no-alt{background:#7a7a7a}.igd-getting-started .features-list .feature .feature-free{width:12%}.igd-getting-started .features-list .feature .feature-pro{width:12%;margin-left:auto;text-align:center}.igd-getting-started .get-pro-cta{display:flex;align-items:center;background:rgba(47,180,75,.0875);border-radius:15px;padding:30px;margin:60px 0}.igd-getting-started .get-pro-cta .cta-content{display:flex;flex-direction:column;width:60%}.igd-getting-started .get-pro-cta .cta-content h2{margin-bottom:5px;font-size:1.5rem;font-weight:700;line-height:1.3}.igd-getting-started .get-pro-cta .cta-btn{flex:1;display:flex;align-items:center;justify-content:center}.igd-getting-started .get-pro-cta .cta-btn .igd-btn{padding:15px 20px}@media (max-width:767px){.igd-getting-started .get-pro-cta{flex-direction:column;align-items:center;padding:30px 20px;text-align:center}.igd-getting-started .get-pro-cta .cta-content{width:100%;margin-bottom:20px}.igd-getting-started .get-pro-cta .cta-btn{width:100%}}.igd-getting-started .demo-cta{display:flex;align-items:center;background:#fdf6ec;border-radius:15px;padding:30px;margin:60px 0}.igd-getting-started .demo-cta .cta-content{display:flex;flex-direction:column;width:60%}.igd-getting-started .demo-cta .cta-content h2{margin-bottom:5px;font-size:1.5rem;font-weight:700;line-height:1.3}.igd-getting-started .demo-cta .cta-btn{flex:1;display:flex;align-items:center;justify-content:center}.igd-getting-started .demo-cta .cta-btn .igd-btn{padding:15px 20px}@media (max-width:767px){.igd-getting-started .demo-cta{flex-direction:column;align-items:center;padding:30px 20px;text-align:center}.igd-getting-started .demo-cta .cta-content{width:100%;margin-bottom:20px}.igd-getting-started .demo-cta .cta-btn{width:100%}}.igd-getting-started .facebook-cta{display:flex;align-items:center;background:url(../images/getting-started/cta-bg.png) no-repeat center/cover,#eaf7ed;border-radius:15px;padding:30px 60px;margin:60px 0}.igd-getting-started .facebook-cta .cta-content{display:flex;flex-direction:column;width:60%}.igd-getting-started .facebook-cta .cta-content h2{margin-bottom:5px;font-size:1.5rem;font-weight:700;line-height:1.3}.igd-getting-started .facebook-cta .cta-btn{flex:1;display:flex;align-items:center;justify-content:center}.igd-getting-started .facebook-cta .cta-btn .igd-btn{padding:15px 20px}@media (max-width:767px){.igd-getting-started .facebook-cta{flex-direction:column;align-items:center;padding:30px 20px;text-align:center}.igd-getting-started .facebook-cta .cta-content{width:100%;margin-bottom:20px}.igd-getting-started .facebook-cta .cta-btn{width:100%}}.igd-getting-started .faq-item{margin-bottom:30px;border:1px solid #eff3fe;border-radius:15px;overflow:hidden;display:flex;width:100%;flex-direction:column;-webkit-user-select:none;-moz-user-select:none;user-select:none}.igd-getting-started .faq-item .faq-header{font-weight:500;cursor:pointer;display:flex;align-items:center;background:#eff3fe;padding:15px 20px}.igd-getting-started .faq-item .faq-header i{margin-right:15px;font-size:1.2rem;transition:all .3s ease-in-out;background:#fff;color:#333;width:35px;height:35px;display:inline-flex;align-items:center;justify-content:center;border-radius:10px}.igd-getting-started .faq-item .faq-header h3{font-size:1.2rem;margin:0}.igd-getting-started .faq-item .faq-body{display:none;line-height:1.5;padding:10px 20px}.igd-getting-started .faq-item .faq-body p{font-size:1rem;color:#444}.igd-getting-started .faq-item.active .faq-header i{color:#2fb44b;transform:rotate(180deg)}.igd-getting-started .faq-item.active .faq-body{display:block}#woocommerce-product-data ul.wc-tabs li.upload_options_options a:before{content:"\f13b";font-family:dashicons}.igd-woocommerce{display:inline-flex;float:right;margin-right:10px}.igd-woocommerce .igd-wc-button{display:inline-flex!important;margin-left:auto!important;align-items:center}.igd-woocommerce .igd-wc-button img{margin-right:5px}.upload-box-settings{margin:20px}.upload-box-settings .form-field .description{display:block;clear:both;margin:20px 0 10px 0}.upload-box-settings .form-field .upload_folder_name{width:100%}.igd-wc-upload-wrap{margin:20px 0;display:block}.igd-wc-upload-wrap .upload-button{display:flex!important;align-items:center;width:-moz-max-content;width:max-content;text-align:center;margin-bottom:15px!important;float:none!important}.igd-wc-upload-wrap .upload-button i{margin-right:5px}.igd-wc-upload-wrap .igd-shortcode-uploader{visibility:hidden;width:0;height:0;position:absolute;overflow:hidden;z-index:-1;max-width:500px;clear:both}.igd-wc-upload-wrap .igd-shortcode-uploader .igd-file-uploader-inner .dashicons-cloud-upload{display:none}.igd-wc-upload-wrap .igd-shortcode-uploader .igd-file-uploader{margin:0}.igd-wc-upload-wrap .igd-wc-upload-description{margin:0;clear:both}.igd-wc-upload-wrap .wc-file-list-wrap{margin-top:15px;clear:both}.igd-wc-upload-wrap .wc-file-list-wrap h4{font-size:1.2rem;margin-bottom:10px}.igd-wc-upload-wrap .wc-file-list-wrap .wc-file-list{margin:10px 0;padding:0;list-style:none}.igd-wc-upload-wrap .wc-file-list-wrap .wc-file-list li{display:flex;align-items:center;margin:3px;font-size:12px;font-weight:600;color:#333;transition:all .2s ease-in-out;-webkit-user-select:none;-moz-user-select:none;user-select:none}.igd-wc-upload-wrap .wc-file-list-wrap .wc-file-list li img{margin-right:5px;width:16px}.igd-wc-upload-wrap .wc-file-list-wrap .wc-file-list li .dashicons-no-alt{color:#ff9f10;cursor:pointer;margin-left:15px;margin-right:0}.igd-wc-upload-wrap:has(.upload-button.active) .igd-shortcode-uploader{display:flex;visibility:visible;width:auto;height:auto;position:relative;overflow:visible;z-index:1}.woocommerce-page.woocommerce-checkout form #order_review td.product-name:has(.igd-wc-upload-wrap){flex-wrap:wrap}.igd-wc-uploaded-files{display:flex;flex-direction:column;margin:0!important;padding:0!important}.igd-wc-uploaded-files-wrap{width:30%;padding:0}.igd-wc-uploaded-files li{margin-bottom:5px!important}.igd-wc-uploaded-files a{display:flex;text-decoration:none;color:#555;font-size:.875rem;overflow:hidden;transition:all .2s ease-in-out}.igd-wc-uploaded-files a img{margin-right:5px!important;width:20px!important}.igd-wc-uploaded-files a span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.igd-wc-uploaded-files a:hover{color:#333}.dokan-igd-settings .igd-dokan-settings-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;flex-wrap:wrap;background:#eee;border-radius:7px;padding:10px}.dokan-igd-settings .igd-dokan-settings-header h2{margin:0}.dokan-igd-settings .igd-upload-settings-header{margin-top:50px}.dokan-igd-settings .dokan-igd-ajax-response{width:100%;margin:0;display:none}.dokan-igd-settings .save-upload-settings{padding:15px 20px}.dokan-igd-settings .dokan-control-label{text-align:left}.dokan-igd-settings .wc-radios{margin-top:0;padding:0}.dokan-igd-settings .parent-folder{padding:7px 10px;border-radius:5px;background:#eaeaea;margin-right:20px;font-size:.9rem;color:#555;display:inline-flex;flex-wrap:wrap;align-items:center;width:-moz-max-content;width:max-content;line-height:1}.dokan-igd-settings .parent-folder-item{background:#fff;padding:3px 5px;border-radius:3px;margin-left:10px;font-size:.8rem;display:flex;align-items:center;justify-content:center}.dokan-igd-settings .parent-folder i,.dokan-igd-settings .parent-folder img{margin-right:7px}.dokan-igd-settings .parent-folder .dashicons-no-alt{color:#ff9f10;cursor:pointer;margin-left:7px;margin-right:0}.dokan-igd-settings .parent-folder .select-parent-folder{margin-left:10px}.dokan-igd-settings .folder-naming-template{font-size:1rem;margin-bottom:10px}.dokan-igd-settings .variables{display:flex;flex-wrap:wrap}.dokan-igd-settings .variables .variable{display:flex;align-items:center;margin:3px;padding:3px;border:1px solid #ccc;border-radius:5px;background:#f5f5f5;font-size:12px;font-weight:600;color:#333;cursor:pointer;transition:all .2s ease-in-out}.dokan-igd-settings .variables .variable:hover{background:#e5e5e5}.dokan-igd-settings .variables .variable .variable-name{margin-right:5px}.igd-dokan{display:inline-block;margin-left:10px}.igd-dokan .igd-wc-button{display:inline-flex!important;margin-left:auto!important;align-items:center}.igd-dokan .igd-wc-button img{margin-right:5px}.edd-add-repeatable-row{display:flex;align-items:center}.igd-edd{margin-left:auto;display:inline-flex;float:right}.igd-edd .igd-edd-button{display:inline-flex!important;margin-left:auto!important;align-items:center}.igd-edd .igd-edd-button img{margin-right:5px}.igd-datepicker{background:#fff;border:1px solid rgba(47,180,75,.3);border-radius:7px;border-top:2px solid #47cf64;box-shadow:0 0 5px rgba(0,0,0,.2);font-size:14px;padding:10px;width:250px}.igd-datepicker .ui-datepicker-header{border:none;padding:0;margin-bottom:10px;display:flex;justify-content:space-between;align-items:center}.igd-datepicker .ui-datepicker-header .ui-datepicker-next,.igd-datepicker .ui-datepicker-header .ui-datepicker-prev{background:0 0;color:#2fb44b;border:1px solid rgba(47,180,75,.3);font-size:20px;font-weight:700;line-height:1;text-shadow:none;padding:0;margin:0;width:30px;height:30px;border-radius:50%;text-align:center;vertical-align:middle;position:relative;top:2px;font-family:Dashicons,serif;display:flex;justify-content:center;align-items:center;cursor:pointer}.igd-datepicker .ui-datepicker-header .ui-datepicker-next:hover,.igd-datepicker .ui-datepicker-header .ui-datepicker-prev:hover{background:#f1f1f1}.igd-datepicker .ui-datepicker-header .ui-datepicker-prev{float:left}.igd-datepicker .ui-datepicker-header .ui-datepicker-prev:before{content:"\f341"}.igd-datepicker .ui-datepicker-header .ui-datepicker-next{order:3}.igd-datepicker .ui-datepicker-header .ui-datepicker-next:before{content:"\f345"}.igd-datepicker .ui-datepicker-header .ui-datepicker-title{font-size:16px;font-weight:700;line-height:1;text-align:center;margin:0;padding:0;text-transform:uppercase;order:2}.igd-datepicker .ui-datepicker-calendar{border:none;width:100%;margin:0;padding:0;border-collapse:collapse}.igd-datepicker .ui-datepicker-calendar th{font-size:12px;font-weight:700;line-height:1;text-align:center;padding:5px 0;text-transform:uppercase}.igd-datepicker .ui-datepicker-calendar td{padding:0;text-align:center}.igd-datepicker .ui-datepicker-calendar td a{display:flex;justify-content:center;align-items:center;padding:5px;color:#000;text-decoration:none;border-radius:50%;transition:all .3s ease;aspect-ratio:1/1}.igd-datepicker .ui-datepicker-calendar td a:hover{background:#47cf64;color:#fff}.igd-datepicker .ui-datepicker-calendar td.ui-datepicker-today a{border:1px solid #47cf64}.igd-datepicker .ui-datepicker-calendar td.ui-datepicker-unselectable a{color:#ccc}.igd-datepicker .ui-datepicker-calendar td.ui-datepicker-current-day a{background:#2fb44b;color:#fff;aspect-ratio:1/1}body.google-drive_page_integrate-google-drive-statistics #wpfooter{display:none}.igd-statistics,.igd-statistics *{box-sizing:border-box}.igd-statistics .statistics-header{display:flex;align-items:center;justify-content:space-between;position:sticky;top:32px;background:#fff;margin:0 0 30px -20px;padding:15px;z-index:1;border-bottom:1px solid #eaeaea}.igd-statistics .statistics-header .statistics-header-title{font-size:18px;font-weight:600;color:#333;display:flex;align-items:center}.igd-statistics .statistics-header .statistics-header-title img{margin-right:10px}.igd-statistics .statistics-header-desc{margin-left:10px;font-size:14px;font-weight:400}.igd-statistics .statistics-header .statistics-range{display:flex;align-items:center;margin-left:auto}.igd-statistics .statistics-header .statistics-range .date-field-wrap{position:relative;display:flex;margin-right:10px;border:1px solid #ddd;border-radius:10px;overflow:hidden}.igd-statistics .statistics-header .statistics-range .date-field-wrap .date-field-prefix{display:inline-flex;align-items:center;font-size:.875rem;font-weight:400;background:#eee;color:#333;height:inherit;padding:7px}.igd-statistics .statistics-header .statistics-range .date-field-wrap .date-field-prefix span{margin-left:5px}.igd-statistics .statistics-header .statistics-range .date-field-wrap .date-field-suffix{display:inline-flex;align-items:center;vertical-align:middle;padding:7px;height:inherit}.igd-statistics .statistics-header .statistics-range input{height:40px;border:none;border-radius:0;max-width:100px}.igd-statistics .statistics-header .statistics-range input:focus{outline:0;box-shadow:none}.igd-statistics .statistics-header .statistics-range>button{height:40px}.igd-statistics .statistics-header .clear-statistics{margin-left:10px;transform:rotate(90deg);cursor:pointer}.igd-statistics .statistics-header .clear-statistics-tooltip{opacity:1;padding:15px;border-radius:10px;margin-top:30px;margin-left:0;box-shadow:0 0 10px rgba(0,0,0,.1)}.igd-statistics .statistics-header .clear-statistics-tooltip button{width:100%}.igd-statistics .statistics-header .clear-statistics-tooltip .btn-info{margin-bottom:10px}.igd-statistics .statistics-header .clear-statistics-tooltip:after,.igd-statistics .statistics-header .clear-statistics-tooltip:before{top:30px}@media (max-width:767px){.igd-statistics .statistics-header{flex-direction:column;position:static}.igd-statistics .statistics-header .statistics-header-title{margin-bottom:10px}.igd-statistics .statistics-header .statistics-range{flex-wrap:wrap;justify-content:center}.igd-statistics .statistics-header .statistics-range .date-field-wrap{width:47%;margin-bottom:10px}.igd-statistics .statistics-header .statistics-range .date-field-wrap:nth-child(2){margin-right:0}}.igd-statistics .statistics-summary{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between;margin-bottom:30px;margin-top:30px;margin-right:10px}.igd-statistics .statistics-summary .statistics-summary-item{display:flex;align-items:center;font-size:14px;font-weight:600;transition:all .3s ease;border-radius:15px;padding:2rem 1rem;background:#fff;margin:0 15px;width:calc(25% - 30px);position:relative}.igd-statistics .statistics-summary .statistics-summary-item:before{content:"";position:absolute;top:0;width:90%;height:5px;background:#2fb44b;left:5%}.igd-statistics .statistics-summary .statistics-summary-item.summary-upload:before{background:#70c5ff}.igd-statistics .statistics-summary .statistics-summary-item.summary-preview:before{background:#18b3fd}.igd-statistics .statistics-summary .statistics-summary-item.summary-stream:before{background:#7da2f6}.igd-statistics .statistics-summary .statistics-summary-item:nth-child(1){margin-left:0}.igd-statistics .statistics-summary .statistics-summary-item .statistics-summary-item-icon{margin-right:15px;width:60px;box-shadow:0 0 3px rgba(0,0,0,.1);border-radius:50%}.igd-statistics .statistics-summary .statistics-summary-item .summary-info{display:flex;flex-direction:column}.igd-statistics .statistics-summary .statistics-summary-item .statistics-summary-item-title{font-size:1rem;font-weight:400;color:#7a7a7a;margin-top:5px}.igd-statistics .statistics-summary .statistics-summary-item .statistics-summary-item-count{font-size:2rem;font-weight:700;color:#333;line-height:1}@media (max-width:767px){.igd-statistics .statistics-summary .statistics-summary-item{width:calc(50% - 20px);margin:0 10px 20px 10px}.igd-statistics .statistics-summary .statistics-summary-item:nth-child(3){margin-left:0}}.igd-statistics .statistics-boxes{width:100%;display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:30px}.igd-statistics .statistics-boxes-wrapper{margin-right:15px}.igd-statistics .statistics-boxes.top-upload .statistics-box .box-title i{background:#70c5ff}.igd-statistics .statistics-boxes.top-upload .table-wrapper::-webkit-scrollbar-thumb{background:rgba(112,197,255,.25)}.igd-statistics .statistics-boxes.top-upload .table-wrapper::-webkit-scrollbar-thumb:hover{background:rgba(112,197,255,.5)}.igd-statistics .statistics-boxes.top-upload table thead tr th{background:#70c5ff}.igd-statistics .statistics-boxes.top-upload table tbody tr td{border-bottom:1px dashed rgba(112,197,255,.2)}.igd-statistics .statistics-boxes.top-preview .statistics-box .box-title i{background:#18b3fd}.igd-statistics .statistics-boxes.top-preview .table-wrapper::-webkit-scrollbar-thumb{background:rgba(24,179,253,.25)}.igd-statistics .statistics-boxes.top-preview .table-wrapper::-webkit-scrollbar-thumb:hover{background:rgba(24,179,253,.5)}.igd-statistics .statistics-boxes.top-preview table thead tr th{background:#18b3fd}.igd-statistics .statistics-boxes.top-preview table tbody tr td{border-bottom:1px dashed rgba(24,179,253,.2)}.igd-statistics .statistics-boxes.top-stream .statistics-box .box-title i{background:#7da2f6}.igd-statistics .statistics-boxes.top-stream .table-wrapper::-webkit-scrollbar-thumb{background:rgba(125,162,246,.25)}.igd-statistics .statistics-boxes.top-stream .table-wrapper::-webkit-scrollbar-thumb:hover{background:rgba(125,162,246,.5)}.igd-statistics .statistics-boxes.top-stream table thead tr th{background:#7da2f6}.igd-statistics .statistics-boxes.top-stream table tbody tr td{border-bottom:1px dashed rgba(125,162,246,.2)}.igd-statistics .statistics-boxes.top-search .statistics-box .box-title i{background:#5bd475}.igd-statistics .statistics-boxes.top-search .table-wrapper::-webkit-scrollbar-thumb{background:rgba(47,180,75,.25)}.igd-statistics .statistics-boxes.top-search .table-wrapper::-webkit-scrollbar-thumb:hover{background:rgba(47,180,75,.5)}.igd-statistics .statistics-boxes.top-search table thead tr th{background:#5bd475}.igd-statistics .statistics-boxes.top-search table tbody tr td{border-bottom:1px dashed rgba(47,180,75,.2)}@media (max-width:767px){.igd-statistics .statistics-boxes{flex-direction:column}.igd-statistics .statistics-boxes .statistics-box{width:100%;margin-bottom:15px}}.igd-statistics .statistics-box{width:49%;display:flex;flex-direction:column;background:#fff;padding:30px;border-radius:10px;box-shadow:rgba(149,157,165,.2) 0 8px 24px}.igd-statistics .statistics-box.event-chart,.igd-statistics .statistics-box.event-logs{width:100%;margin-bottom:50px}.igd-statistics .statistics-box .box-title{font-size:1rem;font-weight:500;color:#333;display:flex;align-items:center}.igd-statistics .statistics-box .box-title i{margin-left:auto;cursor:pointer;border-radius:50%;background:#2fb44b;color:#fff;padding:5px;width:auto;height:auto}.igd-statistics .statistics-box .table-wrapper{width:100%;overflow-y:auto;margin:15px 0;max-height:400px}.igd-statistics .statistics-box .table-wrapper thead{position:sticky;top:-1px}.igd-statistics .statistics-box .table-wrapper::-webkit-scrollbar{width:5px;height:5px;border-radius:10px}.igd-statistics .statistics-box .table-wrapper::-webkit-scrollbar-track{background:#f1f1f1;border-radius:10px;margin-top:50px}.igd-statistics .statistics-box .table-wrapper::-webkit-scrollbar-thumb{background:rgba(47,180,75,.3);border-radius:10px}.igd-statistics .statistics-box .table-wrapper::-webkit-scrollbar-thumb:hover{background:rgba(47,180,75,.5)}.igd-statistics .statistics-box table{width:100%;border-collapse:collapse;border-spacing:0;font-size:14px;color:#333;font-weight:600;border:none}.igd-statistics .statistics-box table thead{background:#f5f5f5;padding:10px}.igd-statistics .statistics-box table thead th:nth-child(1){width:62px}.igd-statistics .statistics-box table thead tr th{padding:12px;font-weight:600;border:none;background:#2fb44b;color:#fff}.igd-statistics .statistics-box table thead tr th:first-child{border-top-left-radius:10px;border-bottom-left-radius:10px}.igd-statistics .statistics-box table thead tr th:last-child{border-top-right-radius:10px;border-bottom-right-radius:10px}.igd-statistics .statistics-box table tbody:before{content:"_";display:block;line-height:1em;color:transparent}.igd-statistics .statistics-box table tbody tr{background:0 0}.igd-statistics .statistics-box table tbody tr td{padding:7px 5px;font-weight:400;border-bottom:1px dashed rgba(47,180,75,.2);vertical-align:middle}.igd-statistics .statistics-box table .sl{display:flex;align-items:center}.igd-statistics .statistics-box table .sl .sl-no{margin-right:10px}.igd-statistics .statistics-box table .col-date{white-space:nowrap}.igd-statistics .statistics-box .no-data{font-size:14px;color:#333;margin-bottom:10px;text-align:center;display:block}.igd-statistics .statistics-box .igd-promo-wrapper{margin-left:-20px;width:calc(100% + 20px);border-radius:0;display:flex;justify-content:center;padding-top:100px;align-items:flex-start}.igd-statistics .statistics-box.event-logs .sl img{width:35px}.igd-statistics .statistics-box.event-logs .table-wrapper{max-height:600px}.igd-tinymce-modal{min-height:100%}.igd-tinymce-modal,.igd-tinymce-modal *{box-sizing:border-box}.igd-tinymce-modal:has(.igd-tinymce-types-wrap){height:auto}.igd-tinymce-modal .igd-module-builder-modal-header .header-title img{width:40px;margin-right:10px}.igd-tinymce-modal .igd-module-builder-modal-header button{margin:0 5px}.igd-tinymce-modal .igd-module-builder-modal-header button.btn-back{color:#555;border-color:#6f6f6f;background:0 0}.igd-tinymce-modal .igd-module-builder-modal-header button.btn-back:hover{color:#fff;background-color:#555;border-color:#6f6f6f}.igd-tinymce-modal .igd-module-builder-modal-header button.btn-danger{color:#ff8165;border-color:#ffab98;background:0 0}.igd-tinymce-modal .igd-module-builder-modal-header button.btn-danger:hover{color:#fff;background-color:#ff8165;border-color:#ffab98}.igd-tinymce-modal .igd-module-builder-modal-header button:nth-child(2){margin-left:auto}.igd-tinymce-modal .igd-tinymce-types{display:flex;flex-wrap:wrap;justify-content:center;margin-top:1rem;padding:1rem}.igd-tinymce-modal .igd-tinymce-types-header{margin-top:2rem}.igd-tinymce-modal .igd-tinymce-types-header h3{margin-bottom:.5rem;font-size:28px}.igd-tinymce-modal .igd-tinymce-types-header span{font-size:1rem;color:#7a7a7a}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type{display:flex;flex-direction:column;align-items:center;justify-content:center;width:calc(25% - 1rem);padding:2rem 1rem;margin:.5rem;border-radius:1rem;cursor:pointer;max-width:300px;overflow:hidden;transition:all .3s ease-in-out;background:#fff;border:1px dashed rgba(47,180,75,.3);position:relative}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type .icon-wrap{width:60px;height:60px;border-radius:50%;display:flex;align-items:center;justify-content:center;margin-bottom:1rem;transition:all .2s ease-in-out}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type .icon-wrap.icon-module{background:#eff3fe}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type .icon-wrap.icon-shortcodes{background:#eaf7ed}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type .icon-wrap.icon-browser{background:#f5f8ff}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type .icon-wrap.icon-uploader{background:#eaf7ed}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type .icon-wrap.icon-search{background:#e4ffde}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type .icon-wrap.icon-gallery{background:#ece8ff}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type .icon-wrap.icon-slider{background:#e9f0ff}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type .icon-wrap.icon-media{background:#fff6f5}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type .icon-wrap.icon-embed{background:#ecf7ff}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type .icon-wrap.icon-download{background:#eaf7ed}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type .icon-wrap.icon-view{background:#f5f8ff}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type .icon-wrap img{width:32px}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type-title{margin-bottom:1rem;font-weight:600;font-size:1.1rem}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type-description{font-size:.875rem;font-weight:400;color:#7a7a7a;line-height:1.5}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type:hover{background:rgba(47,180,75,.3)}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type:hover .icon-wrap{transform:scale(1.1)}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type .pro-badge{position:absolute;top:10px;right:10px;background:#fdb837;color:#fff;padding:7px;border-radius:7px;font-size:12px;font-weight:400;display:flex;align-items:center;justify-content:center;line-height:1;box-shadow:0 0 5px rgba(0,0,0,.1);transition:all .3s ease}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type .pro-badge i{height:auto;width:auto;font-size:18px;margin-right:3px}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type.pro-feature{border-color:#fdb837}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type.pro-feature:hover{background:rgba(253,184,55,.1)}.igd-tinymce-modal .igd-module-shortcodes{max-width:500px;margin:auto;align-items:center;text-align:center;border-color:#555!important;box-shadow:0 0 .2rem rgba(0,0,0,.1);border-radius:.5rem;background-color:#fff;padding:3rem 5rem}.igd-tinymce-modal .igd-module-shortcodes h2{margin:0 0 1rem 0;font-size:28px}.igd-tinymce-modal .igd-module-shortcodes .description{display:block;line-height:1.5;margin-bottom:1rem;font-size:.875rem}.igd-tinymce-modal .igd-module-shortcodes .components-select-control{width:100%}.igd-tinymce-modal .igd-module-shortcodes .components-input-control__backdrop,.igd-tinymce-modal .igd-module-shortcodes .components-select-control__input{height:45px!important;border-radius:.5rem!important;border-color:rgba(47,180,75,.3)!important;background-color:rgba(47,180,75,.05)!important}.igd-shortcode-wrap{-webkit-user-select:none;-moz-user-select:none;user-select:none;overflow-y:auto;margin-bottom:1rem;color:#333;box-sizing:border-box}.igd-shortcode-wrap *{box-sizing:inherit}.igd-shortcode-wrap::-webkit-scrollbar{width:5px}.igd-shortcode-wrap::-webkit-scrollbar-thumb{background:var(--color-primary-light);border-radius:10px}.igd-shortcode-wrap::-webkit-scrollbar-track{background:#ddd;border-radius:10px}.igd-shortcode-wrap.igd-shortcode-browser,.igd-shortcode-wrap.igd-shortcode-gallery,.igd-shortcode-wrap.igd-shortcode-search{border:1px solid #ddd;border-radius:.5rem}.igd-shortcode-wrap.igd-shortcode-browser .igd-file-browser,.igd-shortcode-wrap.igd-shortcode-gallery .igd-file-browser,.igd-shortcode-wrap.igd-shortcode-search .igd-file-browser{align-items:stretch}.igd-shortcode-wrap.igd-shortcode-browser .igd-file-browser .igd-details,.igd-shortcode-wrap.igd-shortcode-browser .igd-file-browser .igd-file-browser-header,.igd-shortcode-wrap.igd-shortcode-gallery .igd-file-browser .igd-details,.igd-shortcode-wrap.igd-shortcode-gallery .igd-file-browser .igd-file-browser-header,.igd-shortcode-wrap.igd-shortcode-search .igd-file-browser .igd-details,.igd-shortcode-wrap.igd-shortcode-search .igd-file-browser .igd-file-browser-header{top:0}.igd-shortcode-wrap.igd-shortcode-search .igd-file-browser-header{height:70px}.igd-shortcode-wrap.igd-shortcode-search .igd-file-browser-header .header-action{width:100%}.igd-shortcode-wrap.igd-shortcode-search .igd-file-browser-header .header-action .igd-search-bar{margin-left:0;width:100%;height:50px;position:relative}.igd-shortcode-wrap.igd-shortcode-audioVideo{overflow:hidden}.igd-shortcode-wrap.igd-shortcode-slider{overflow-y:unset}.igd-shortcode-wrap.igd-shortcode-media{border:1px solid #eee;overflow-y:unset}.igd-video-player video{position:static;transform:none}.igd-video-player audio{height:revert!important}.igd-download-link,.igd-view-link{display:block}.igd-embed-image{max-width:100%}.igd-slider{--slide-height:300px;--slide-gap:5px}.igd-slider .slick-next,.igd-slider .slick-prev{z-index:9}.igd-slider .slick-next:before,.igd-slider .slick-prev:before{display:none}.igd-slider .slick-prev{left:-25px}.igd-slider .slick-next{right:-25px}.igd-slider .slick-dots{position:static}.igd-slider .slick-dots li button:before{font-size:15px}.igd-slider .slider-img-wrap{height:100%;width:100%;position:relative}.igd-slider .slider-img-wrap img{height:100%;width:100%;-o-object-fit:cover;object-fit:cover}.igd-slider .slider-content-wrap{position:absolute;top:0;left:0;right:0;padding:1rem;color:#fff;text-align:center;width:100%;height:100%;opacity:0;background:linear-gradient(to bottom,rgba(0,0,0,.5) 50%,rgba(0,0,0,0) 100%);box-sizing:border-box;transition:all .3s ease-in-out;overflow:hidden;display:flex;align-items:center;justify-content:center}.igd-slider .slider-content-wrap h3{font-size:1rem;margin-bottom:0;color:#fff}.igd-slider .slider-content-wrap p{font-size:.875rem;margin-bottom:0;color:#fff}.igd-slider .slider-actions{display:flex;justify-content:center;align-items:center;margin:10px 0}.igd-slider .slider-actions .slider-action{cursor:pointer;transition:transform .3s ease-in-out}.igd-slider .slider-actions .slider-action.action-download{margin-left:20px}.igd-slider .slider-actions .slider-action svg{width:30px;height:30px;fill:#fff}.igd-slider .slider-actions .slider-action:hover{transform:scale(1.1)}.igd-slider .slick-slide{height:var(--slide-height)}.igd-slider .slick-slide>div{height:100%;position:relative;margin:0 var(--slide-gap)}.igd-slider .slick-slide .slider-item-wrap{position:absolute;width:100%;height:100%}.igd-slider .slick-slide:hover .slider-content-wrap{opacity:1}.igd-access-denied-placeholder{max-width:500px;margin:20px auto;padding:2rem;background:#f1f1f1;border-radius:.5rem;text-align:center}.igd-access-denied-placeholder img{max-width:100px;margin-bottom:15px}.igd-access-denied-placeholder h3{font-size:1.5rem;font-weight:600;margin-bottom:1rem}.igd-access-denied-placeholder p{font-size:1rem;margin-bottom:1rem;color:#555}.igd-disqus-wrap{display:none}.igd-admin-notice{margin-bottom:10px!important;display:flex;padding:10px!important}.igd-admin-notice .notice-main{display:flex;flex-direction:column}.igd-admin-notice .notice-image{margin-right:15px}.igd-admin-notice .notice-image img{width:90px}.igd-admin-notice .notice-text p{line-height:1.5;font-size:.85rem;margin:0;padding:0}.igd-admin-notice .notice-actions{display:flex;align-items:center;margin-top:10px}.igd-admin-notice .notice-actions a{margin-right:15px;text-decoration:none;transition:all .3s ease-in-out}.igd-admin-notice .notice-actions a:last-child{margin-right:0}.igd-admin-notice .notice-actions a.button-primary{background:#248c3a;border-color:#47cf64;padding:3px 10px}.igd-admin-notice .notice-actions a.button-primary:hover{background:#2fb44b}.igd-rating-notice .notice-overlay-wrap{position:fixed;top:0;left:0;background:rgba(0,0,0,.5);width:100%;height:100%;align-items:center;justify-content:center;display:none;z-index:9999}.igd-rating-notice .notice-overlay-wrap .notice-overlay{background:#fff;width:-moz-max-content;width:max-content;padding:30px;border-radius:15px;position:relative}.igd-rating-notice .notice-overlay-wrap .notice-overlay h4{margin-top:0;margin-bottom:10px}.igd-rating-notice .notice-overlay-wrap .notice-overlay-actions{display:flex;flex-flow:column;line-height:1.8}.igd-rating-notice .notice-overlay-wrap .notice-overlay-actions a{text-decoration:none}.igd-rating-notice .notice-overlay-wrap .notice-overlay-actions a:nth-child(2){color:#000}.igd-rating-notice .notice-overlay-wrap .notice-overlay-actions a:nth-child(3){color:#777}.igd-rating-notice .notice-overlay-wrap .notice-overlay-actions a:hover{color:#248c3a}.igd-rating-notice .notice-overlay-wrap .notice-overlay .close-notice{position:absolute;top:-5px;right:-5px;border-radius:30px;border:1px solid transparent;font-size:16px;cursor:pointer;width:30px;height:30px;line-height:30px;display:flex;align-items:center;justify-content:center;transition:all .3s ease-in-out}.igd-rating-notice .notice-overlay-wrap .notice-overlay .close-notice:hover{color:#f96;border-color:#f96}.igd-account-notice h4{font-size:1rem;margin:5px 0}.igd-acf-field .igd-items-table .file-actions .button{display:inline-flex;align-items:center}.igd-acf-field .igd-acf-button{display:flex;align-items:center;margin-top:15px}.igd-acf-field .igd-acf-button img{margin-right:7px}body.tutor-screen-course-builder .tutor-dropdown-icon-pack[data-video_source=google_drive] [data-for=google_drive]{display:block}.tutor-video-upload-wrap:has(.tutor-dropdown-icon-pack[data-video_source=google_drive]) .video_source_wrap_google_drive{display:block!important}.video_source_wrap_google_drive .google_drive-video-data{display:none}.video_source_wrap_google_drive.tutor-has-video .google_drive-video-data{display:block}.video_source_wrap_google_drive.tutor-has-video .video-metabox-source-google_drive-upload{display:none}.tutor_lesson_modal_form .tutorIgdUploadAttachmentBtn{margin-left:15px}.tutor_lesson_modal_form .igd-tutor-attachment i.tutor-icon-brand-google-drive{position:absolute;right:10px;top:10px}.et-fb-modules-list .igd_browser,.et-fb-modules-list .igd_download,.et-fb-modules-list .igd_embed,.et-fb-modules-list .igd_gallery,.et-fb-modules-list .igd_media,.et-fb-modules-list .igd_search,.et-fb-modules-list .igd_shortcodes,.et-fb-modules-list .igd_slider,.et-fb-modules-list .igd_uploader,.et-fb-modules-list .igd_view{max-height:100px!important}.et-fb-modules-list .igd_browser:before,.et-fb-modules-list .igd_download:before,.et-fb-modules-list .igd_embed:before,.et-fb-modules-list .igd_gallery:before,.et-fb-modules-list .igd_media:before,.et-fb-modules-list .igd_search:before,.et-fb-modules-list .igd_shortcodes:before,.et-fb-modules-list .igd_slider:before,.et-fb-modules-list .igd_uploader:before,.et-fb-modules-list .igd_view:before{content:""!important;height:30px;display:block;background-size:contain;background-repeat:no-repeat;background-position:center center;margin-bottom:10px!important}.et-fb-modules-list .igd_browser .et_module_title,.et-fb-modules-list .igd_download .et_module_title,.et-fb-modules-list .igd_embed .et_module_title,.et-fb-modules-list .igd_gallery .et_module_title,.et-fb-modules-list .igd_media .et_module_title,.et-fb-modules-list .igd_search .et_module_title,.et-fb-modules-list .igd_shortcodes .et_module_title,.et-fb-modules-list .igd_slider .et_module_title,.et-fb-modules-list .igd_uploader .et_module_title,.et-fb-modules-list .igd_view .et_module_title{line-height:1.5!important}.et-fb-modules-list .igd_browser:before{background-image:url(../images/shortcode-builder/types/browser.svg)}.et-fb-modules-list .igd_uploader:before{background-image:url(../images/shortcode-builder/types/uploader.svg)}.et-fb-modules-list .igd_gallery:before{background-image:url(../images/shortcode-builder/types/gallery.svg)}.et-fb-modules-list .igd_media:before{background-image:url(../images/shortcode-builder/types/media.svg)}.et-fb-modules-list .igd_search:before{background-image:url(../images/shortcode-builder/types/search.svg)}.et-fb-modules-list .igd_embed:before{background-image:url(../images/shortcode-builder/types/embed.svg)}.et-fb-modules-list .igd_view:before{background-image:url(../images/shortcode-builder/types/view.svg)}.et-fb-modules-list .igd_download:before{background-image:url(../images/shortcode-builder/types/download.svg)}.et-fb-modules-list .igd_shortcodes:before{background-image:url(../images/shortcode-builder/types/shortcodes.svg)}.et-fb-modules-list .igd_slider:before{background-image:url(../images/shortcode-builder/types/slider.svg)}#igd-app *{box-sizing:border-box}#igd-shortcode-builder *{box-sizing:border-box}.igd_file_browser_page #wpcontent{padding-left:0}.igd_file_browser_page #wpbody-content{padding-bottom:0}.igd_file_browser_page #wpfooter{display:none}.igd_file_browser_page .igd-body,.igd_file_browser_page .igd-details-wrap,.igd_file_browser_page .igd-sidebar-wrap{min-height:calc(100vh - 92px)}@media (min-width:992px){.igd_file_browser_page .igd-details-wrap,.igd_file_browser_page .igd-sidebar-wrap{top:92px}}body.igd-admin-page #wpbody-content>div.error:not(.igd-admin-notice),body.igd-admin-page #wpbody-content>div.notice:not(.igd-admin-notice),body.igd-admin-page #wpbody-content>div.updated:not(.igd-admin-notice){display:none!important}body.igd-admin-page #wpfooter{display:none}li#toplevel_page_integrate-google-drive img{width:20px}li#toplevel_page_integrate-google-drive .wp-submenu a[href="admin.php?page=integrate-google-drive-getting-started"]{color:#fbbc04!important}li#toplevel_page_integrate-google-drive .wp-submenu a[href="admin.php?page=integrate-google-drive-getting-started"]{border-top:1px solid hsla(0,0%,100%,.2);border-bottom:1px solid hsla(0,0%,100%,.2);padding:8px 12px;display:flex;align-items:center;margin:6px 0}li#toplevel_page_integrate-google-drive .wp-submenu a[href="admin.php?page=integrate-google-drive-recommended-plugins"]{margin-top:6px;padding-top:8px;padding-right:0;border-top:1px solid hsla(0,0%,100%,.2)}li#toplevel_page_integrate-google-drive .wp-submenu a[href="admin.php?page=integrate-google-drive-account"]{margin-top:6px;padding-top:8px;border-top:1px solid hsla(0,0%,100%,.2)}li#toplevel_page_integrate-google-drive .wp-submenu li:last-child a{border-bottom:0;margin-bottom:0}.igd-pro-modal{width:350px;background:#fff;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:30px 20px;border-radius:5px;box-shadow:0 0 10px rgba(0,0,0,.2);position:relative;text-align:center}.igd-pro-modal-wrap{width:100%;height:100%;position:fixed;top:0;left:0;z-index:99999999;background:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center}.igd-pro-modal .igd-pro-modal-close{position:absolute;top:15px;right:15px;cursor:pointer;font-size:30px;color:#777;padding:10px}.igd-pro-modal img{width:160px;margin-bottom:10px}.igd-pro-modal h3{font-size:1.2rem;font-weight:600;color:#333}.igd-pro-modal h2{color:#ff9458;margin:20px 0 20px 0;font-size:2.5rem;font-weight:700}.igd-pro-modal h2 .upto{font-size:14px;margin-right:5px}.igd-pro-modal p{font-size:.875rem;color:#333;margin-bottom:20px;line-height:1.2}.igd-pro-modal a{padding:10px 20px}.igd-pro-modal a:hover{color:#fff}
     1.igd-btn{cursor:pointer;width:-moz-max-content;width:max-content;display:flex;align-items:center;color:#fff;padding:8px 12px;border-radius:5px;border:1px solid transparent;line-height:1;text-decoration:none;transition:all .2s ease-in-out;font-size:.875rem}.igd-btn i{margin-right:7px}.igd-btn i:nth-child(2){margin-right:0;margin-left:7px}.igd-btn .igd-spinner{margin:2px 10px 0 0}.igd-btn.btn-primary{background-color:#2fb44b}.igd-btn.btn-primary:hover{background-color:#248c3a}.igd-btn.btn-secondary{background-color:#f1f1f1;border-color:#f1f1f1}.igd-btn.btn-secondary:hover{background-color:#e6e6e6}.igd-btn.btn-success{background-color:#00d084;border-color:#00d084}.igd-btn.btn-success:hover{background-color:#00c674}.igd-btn.btn-warning{background-color:#f9d6b7;color:#a65300}.igd-btn.btn-warning:hover{background-color:#fc9}.igd-btn.btn-danger{background-color:#f8d7da;color:#d8000c}.igd-btn.btn-danger:hover{background-color:#f5c6cb}.igd-btn.btn-info{background-color:#b4d8e7;color:#1f4e6e}.igd-btn.btn-info:hover{background-color:#00a5e6}.igd-btn.btn-light{background-color:#f1f1f1;border-color:#f1f1f1}.igd-btn.btn-light:hover{background-color:#e6e6e6}.igd-btn.btn-dark{background-color:#0071e6;border-color:#0071e6}.igd-btn.btn-dark:hover{background-color:#0058c6}.igd-btn.btn-link{background-color:transparent;border-color:transparent;color:#0071e6}.igd-btn.btn-link:hover{color:#0058c6}.igd-btn.btn-outline-primary{background-color:transparent;border-color:var(--color-primary);color:var(--color-primary)}.igd-btn.btn-outline-primary:hover{background-color:var(--color-primary);color:#fff}.igd-btn.btn-outline-secondary{background-color:transparent;border-color:#f1f1f1;color:#f1f1f1}.igd-btn.btn-outline-secondary:hover{background-color:#f1f1f1;color:#fff}.igd-btn.btn-outline-success{background-color:transparent;border-color:#00d084;color:#00d084}.igd-btn.btn-outline-success:hover{background-color:#00d084;color:#fff}.igd-btn.btn-outline-warning{background-color:transparent;border-color:#ffc800;color:#ffc800}.igd-btn.btn-outline-warning:hover{background-color:#ffc800;color:#fff}.igd-btn.btn-outline-danger{background-color:transparent;border-color:#ff5b5b;color:#ff5b5b}.igd-btn.btn-outline-danger:hover{background-color:#ff5b5b;color:#fff}.igd-btn.btn-outline-info{background-color:transparent;border-color:#00b5ff;color:#00b5ff}.igd-btn.btn-outline-info:hover{background-color:#00b5ff;color:#fff}.igd-btn.btn-outline-light{background-color:transparent;border-color:#f1f1f1;color:#f1f1f1}.igd-btn.btn-outline-light:hover{background-color:#f1f1f1;color:#fff}.igd-btn.btn-outline-dark{background-color:transparent;border-color:#0071e6;color:#0071e6}.igd-btn.btn-outline-dark:hover{background-color:#0071e6;color:#fff}.igd-btn.btn-outline-link{background-color:transparent;border-color:#0071e6;color:#0071e6}.igd-btn.btn-outline-link:hover{background-color:#0071e6;color:#fff}.igd-btn.disabled{color:#999;cursor:not-allowed;background:#f1f1f1!important;border-color:#ccc}.igd-tooltip{z-index:9999999!important;opacity:1!important}.igd-tooltip:before{z-index:-1!important}.igd-notice{border-radius:5px;border:1px solid #f1f1f1;border-left-width:5px;background:#fff;box-shadow:0 1px 1px 0 rgba(0,0,0,.1);padding:1rem;margin:10px 0;display:flex}.igd-notice .igd-notice-content{margin:0;text-align:left;font-size:.9rem;line-height:1.5;color:#757575}.igd-notice.igd-notice-info{border-color:rgba(0,181,255,.5);background:rgba(0,181,255,.1);border-left-color:#00b5ff}.igd-notice.igd-notice-warning{border-color:rgba(255,200,0,.5);background:rgba(255,200,0,.1);border-left-color:#ffc800}@media (max-width:767px){.igd-notice .igd-notice-content{flex-wrap:wrap}}.igd-hidden{display:none!important}.file-item-checkbox{cursor:pointer;display:none;border-radius:50%;transition:all .3s ease;width:-moz-max-content;width:max-content;padding:5px}.file-item-checkbox .box{width:20px;height:20px;border:1px solid #e5e5e5;border-radius:50%;display:flex;align-items:center;justify-content:center;transition:all .3s ease;position:relative;box-shadow:rgba(0,0,0,.05) 0 6px 24px 0,rgba(0,0,0,.08) 0 0 0 1px}.file-item-checkbox .box:hover{border-color:var(--color-primary);box-shadow:0 0 0 2px var(--color-primary-lighter)}.file-item-checkbox:hover{background-color:rgba(0,0,0,.15)}.file-item-checkbox:hover .box{box-shadow:0 0 0 2px var(--color-primary-lighter)}.file-item-checkbox.checked{background-color:rgba(0,0,0,.15)}.file-item-checkbox.checked .box{border-color:var(--color-primary-lighter);background:var(--color-primary);color:#fff;box-shadow:0 0 0 1px var(--color-primary-lighter)}.file-item-checkbox.checked .box:after{content:"";width:5px;height:10px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg);box-sizing:border-box;margin-top:-2px}.igd-swal{z-index:99999!important}.igd-swal .swal2-confirm{background-color:#2fb44b!important}.igd-swal .swal2-close:focus{background:0 0;color:inherit;box-shadow:none}.igd-swal .swal2-cancel,.igd-swal .swal2-deny{background-color:#f08080!important}.igd-swal.save-settings-toast .swal2-popup{display:flex!important;padding:10px}.igd-swal.save-settings-toast .swal2-popup .swal2-html-container{margin-left:5px}.igd-swal.igd-swal-toast .swal2-popup{display:flex!important;padding:10px}.igd-swal.igd-swal-toast .swal2-popup .swal2-html-container{margin-left:5px}.igd-swal .swal2-input{width:auto!important}.igd-swal .swal2-title{font-size:1.2rem;color:#333;font-weight:500}.igd-swal .swal2-html-container{font-size:1rem;color:#555}.igd-swal .swal2-textarea:focus{border-color:#ddd!important;box-shadow:none!important}.igd-swal.igd-review-remind-swal .swal2-deny{background-color:#999!important}.igd-loading-spinner{display:flex;justify-content:center;margin-top:3rem}.igd-loading-spinner svg{width:2.5rem;height:2.5rem}.igd-divi-loading-spinner{display:flex;justify-content:center}.igd-divi-loading-spinner svg{width:100px;height:100px}.igd-spinner{border:2px solid #f3f3f3;border-top:2px solid #3498db;border-radius:50%;width:20px;height:20px;animation:igd-spin 2s linear infinite;display:flex}.igd-spinner.spinner-large{border-width:4px;width:50px;height:50px;animation:igd-spin 1s linear infinite;margin:30px auto}@keyframes igd-spin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.igd-disabled{pointer-events:none!important}.google-drive_page_integrate-google-drive-shortcode-builder{background:#f7f8fa}.google-drive_page_integrate-google-drive-shortcode-builder #wpfooter{display:none}@media (max-width:767px){.google-drive_page_integrate-google-drive-shortcode-builder #wpcontent{padding-right:10px}}.igd-shortcode-builder{width:calc(100% + 20px);margin-left:-20px}@media (max-width:767px){.igd-shortcode-builder{width:100%;margin-left:0}}.igd-shortcode-builder *{box-sizing:border-box}.igd-shortcode-builder-header{display:flex;flex-wrap:wrap;align-items:center;background:#fff;padding:12px 15px;border-bottom:1px solid #e5e5e5;justify-content:space-between;z-index:99;position:sticky;top:32px}.igd-shortcode-builder-header .header-title{display:flex;align-items:center;font-size:1.2rem;font-weight:500;cursor:pointer}.igd-shortcode-builder-header .header-title img{margin-right:10px}.igd-shortcode-builder-header .header-title .shortcode-title{background:#fff;border-radius:7px;padding:5px 12px;border:1px solid rgba(92,99,126,.3);position:relative;margin-left:10px}.igd-shortcode-builder-header .header-actions{display:flex}.igd-shortcode-builder-header .header-actions .btn-back{background:#5c637e;color:#fff;border-color:rgba(47,180,75,.3)}.igd-shortcode-builder-header .header-actions .btn-back:hover{background:#464c61}.igd-shortcode-builder-header .header-actions button{margin-left:15px}@media (max-width:767px){.igd-shortcode-builder-header{margin-left:-10px;margin-right:-10px;padding:10px;top:-50px}.igd-shortcode-builder-header .header-title img{width:30px;margin-right:5px}.igd-shortcode-builder-header .header-title label{font-size:1rem}.igd-shortcode-builder-header .header-title .shortcode-title{height:35px;min-height:unset;margin-left:auto;border-radius:5px;color:#555;font-size:.875rem;font-weight:400}.igd-shortcode-builder-header .header-actions .add-new-btn{margin-left:auto}.igd-shortcode-builder-header .header-actions button{overflow:hidden;padding:7px;font-size:.8rem;margin-left:10px}.igd-shortcode-builder-header .header-actions button:first-child{margin-left:0}.igd-shortcode-builder-header .header-actions button i{margin-right:3px}.igd-shortcode-builder-header .header-actions button span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.igd-shortcode-builder-header:has(.btn-back) .header-title{width:100%}.igd-shortcode-builder-header:has(.btn-back) .header-title label{max-width:35%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-shortcode-builder-header:has(.btn-back) .header-actions{width:100%;justify-content:center;margin-top:15px}}.igd-shortcode-builder .no-item-placeholder{padding:3rem 5rem;border-radius:10px;border:1px solid rgba(47,180,75,.3);background:#fff;margin:50px auto 0;width:-moz-max-content;width:max-content;display:flex;align-items:center;justify-content:center;flex-direction:column}.igd-shortcode-builder .no-item-placeholder img{width:200px;margin-left:-40px}.igd-shortcode-builder .no-item-placeholder h3{color:#7a7a7a;margin:1.5rem;font-weight:500}.igd-shortcode-builder .no-item-placeholder button{margin-top:1rem}.igd-shortcode-builder .selection-actions-wrap{display:flex;align-items:center;margin-top:30px}.igd-shortcode-builder .selection-actions-wrap .selection-count{font-weight:500;background:rgba(47,180,75,.1);padding:10px 10px;border-radius:5px;height:35px;border:1px solid rgba(47,180,75,.3);display:flex;align-items:center;justify-content:center;font-size:.9rem}.igd-shortcode-builder .selection-actions-wrap .igd-btn{margin-left:10px;height:35px}.igd-shortcode-builder .igd-shortcode-list{width:100%;border-collapse:separate;border-spacing:0 20px}.igd-shortcode-builder .igd-shortcode-list-header{display:flex;align-items:center;justify-content:space-between;margin-top:15px;margin-bottom:15px}.igd-shortcode-builder .igd-shortcode-list-header .igd-shortcode-list-title{font-size:1.2rem;font-weight:600;margin:0;display:flex;align-items:center}.igd-shortcode-builder .igd-shortcode-list-header .igd-shortcode-list-title .shortcode-list-count{font-size:1rem;font-weight:400;color:#777;margin-left:7px}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings i{width:25px;height:25px;font-size:25px;color:#5c637e;cursor:pointer}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .list-settings-tooltip{display:flex;flex-wrap:wrap;justify-content:space-between;max-width:580px}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .list-settings-tooltip .settings-columns{width:100%;margin-bottom:10px}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .settings-wrap{margin-bottom:5px}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .settings-wrap h4{margin-top:0;margin-bottom:7px}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .settings-wrap .components-select-control{min-width:100px}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .settings-wrap .components-select-control__input{height:35px}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .settings-wrap .components-input-control__backdrop{border-color:#eee}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .column-options{display:flex}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .column-options .igd-column-setting{margin-bottom:10px;margin-right:10px;border:1px solid #eee;padding:5px 7px;border-radius:5px}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .column-options .igd-column-setting .components-base-control__field{display:flex;align-items:center}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .column-options .components-checkbox-control__input-container{margin-right:5px}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .components-checkbox-control__label{text-transform:capitalize;font-size:.75rem;font-weight:500}.igd-shortcode-builder .igd-shortcode-list-wrap{padding:20px}.igd-shortcode-builder .igd-shortcode-list thead{background:#fff}.igd-shortcode-builder .igd-shortcode-list thead th{padding:24px 15px;font-size:.875rem;color:#555;border-left-width:0;border-right-width:0;margin-bottom:1rem}.igd-shortcode-builder .igd-shortcode-list thead th:first-child{border-radius:10px 0 0 10px}.igd-shortcode-builder .igd-shortcode-list thead th:last-child{border-radius:0 10px 10px 0;text-align:right;padding-right:70px}.igd-shortcode-builder .igd-shortcode-list tbody td,.igd-shortcode-builder .igd-shortcode-list tbody th{padding:15px 20px;font-size:.875rem;color:#555;text-align:left;white-space:nowrap}.igd-shortcode-builder .igd-shortcode-list tbody td:first-child,.igd-shortcode-builder .igd-shortcode-list tbody th:first-child{border-radius:10px 0 0 10px}.igd-shortcode-builder .igd-shortcode-list tbody td:last-child,.igd-shortcode-builder .igd-shortcode-list tbody th:last-child{border-radius:0 10px 10px 0}.igd-shortcode-builder .igd-shortcode-list-item{transition:all .3s ease;background:#fff}.igd-shortcode-builder .igd-shortcode-list-item:hover{background:#eaf2fa}.igd-shortcode-builder .igd-shortcode-list .col-selection{width:60px;text-align:center;padding-right:0}.igd-shortcode-builder .igd-shortcode-list .col-id{width:30px}.igd-shortcode-builder .igd-shortcode-list .col-title{text-align:left}.igd-shortcode-builder .igd-shortcode-list .col-shortcode-type{text-align:left}.igd-shortcode-builder .igd-shortcode-list .col-shortcode-type>div{display:flex;align-items:center;justify-content:flex-start}.igd-shortcode-builder .igd-shortcode-list .col-shortcode-type>div img{margin-right:10px;width:24px}.igd-shortcode-builder .igd-shortcode-list .col-shortcode-status{width:100px;text-align:center}.igd-shortcode-builder .igd-shortcode-list .col-locations{text-align:center}.igd-shortcode-builder .igd-shortcode-list .col-locations .location-count{text-align:center;font-weight:700;cursor:pointer;border:1px solid #5c637e;border-radius:5px;padding:5px 10px;color:#5c637e}.igd-shortcode-builder .igd-shortcode-list .col-locations .location-count:hover{background:#5c637e;color:#fff}.igd-shortcode-builder .igd-shortcode-list .col-locations h3{margin-top:0;margin-bottom:10px;color:#555}.igd-shortcode-builder .igd-shortcode-list .col-locations .locations-tooltip{padding:15px;max-width:250px}.igd-shortcode-builder .igd-shortcode-list .col-locations .location-item{margin-bottom:7px;overflow:hidden}.igd-shortcode-builder .igd-shortcode-list .col-locations .location-item a{text-decoration:none;display:flex;align-items:center;overflow:hidden}.igd-shortcode-builder .igd-shortcode-list .col-locations .location-item a .location-index{margin-right:5px}.igd-shortcode-builder .igd-shortcode-list .col-locations .location-item a .location-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.igd-shortcode-builder .igd-shortcode-list .col-locations .location-item a i{margin-left:7px}.igd-shortcode-builder .igd-shortcode-list .col-created{text-align:center}.igd-shortcode-builder .igd-shortcode-list .col-code>div{display:flex;align-items:center;justify-content:flex-start;position:relative;width:-moz-max-content;width:max-content;margin:auto}.igd-shortcode-builder .igd-shortcode-list .col-code>div code{padding:7px 10px 7px 35px;background:#fff;color:#5c637e;border-radius:7px;border:1px solid rgba(92,99,126,.2);font-size:12px}.igd-shortcode-builder .igd-shortcode-list .col-code>div i{left:3px;color:#5c637e;padding:7px;border-radius:30px;height:auto;width:auto;cursor:pointer;position:absolute;font-size:24px}.igd-shortcode-builder .igd-shortcode-list .col-actions{padding-right:10px;text-align:right}.igd-shortcode-builder .igd-shortcode-list .col-actions button{padding:7px 10px;display:inline-flex;background:#5c637e;height:35px}.igd-shortcode-builder .igd-shortcode-list .col-actions button:hover{background:#464c61}.igd-shortcode-builder .igd-shortcode-list .col-actions .btn-tools{margin-left:15px;padding:0;background:0 0!important;color:#5c637e}.igd-shortcode-builder .igd-shortcode-list .col-actions .btn-tools img{width:26px}.igd-shortcode-builder .igd-shortcode-list .col-actions .options-tooltip{padding:0;border-radius:7px;box-shadow:0 0 10px rgba(0,0,0,.1)}.igd-shortcode-builder .igd-shortcode-list .col-actions .action-tools{display:flex;flex-direction:column}.igd-shortcode-builder .igd-shortcode-list .col-actions .action-tools button{padding:10px 15px;display:flex;background:0 0;color:#555;justify-content:flex-start;border-radius:0;border-bottom:1px solid #e5e5e5;font-size:.875rem;width:100%}.igd-shortcode-builder .igd-shortcode-list .col-actions .action-tools button:hover{background:rgba(92,99,126,.1)}.igd-shortcode-builder .igd-shortcode-list .col-actions .action-tools button:last-child{border-bottom:none;margin-bottom:0}.igd-shortcode-builder .igd-shortcode-list-footer{display:flex;align-items:center;justify-content:center}@media (max-width:767px){.igd-shortcode-builder .igd-shortcode-list-wrap{overflow-x:auto;margin-right:10px}}.igd-shortcode-builder .igd-shortcode-builder-form{overflow-y:unset}.igd-shortcode-builder-form{display:flex;flex-wrap:wrap;align-items:flex-start}.igd-shortcode-builder-form .shortcode-builder-sidebar{width:20%;background:#fff;max-width:200px;padding:20px;position:sticky;top:100px;min-height:100vh;border-right:1px solid #eaeaea}.igd-shortcode-builder-form .shortcode-builder-sidebar.tab-advanced,.igd-shortcode-builder-form .shortcode-builder-sidebar.tab-notifications{top:0}.igd-shortcode-builder-form .shortcode-builder-sidebar.tab-permissions{top:-30px}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs{display:flex;flex-direction:column;align-items:center}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab{display:flex;align-items:center;flex-direction:column;justify-content:center;padding:1rem;background:#e9f9ec;border:1px dashed rgba(47,180,75,.3);width:100%;color:#333;border-radius:10px}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap{max-width:100%;position:relative;cursor:pointer;width:120px;display:flex;align-items:center;justify-content:center}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap:not(:last-child){margin-bottom:40px}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap:not(:last-child):after{content:"";height:40px;width:12px;background:#f7f8fa;position:absolute;top:100%}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap.active .shortcode-tab{background:#47cf64;color:#fff}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap.active .shortcode-tab .tab-icon{background-color:#fff}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap.active:after{background:#47cf64}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap:not(.active):hover .shortcode-tab{background:rgba(47,180,75,.3)}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-icon{width:30px;height:30px;margin-bottom:10px;background-color:#2fb44b;mask-size:cover;-webkit-mask-size:cover}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-icon.icon-type{-webkit-mask:url(../images/shortcode-builder/tabs/type.svg) no-repeat center/cover;mask:url(../images/shortcode-builder/tabs/type.svg) no-repeat center/cover}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-icon.icon-sources{-webkit-mask:url(../images/shortcode-builder/tabs/sources.svg) no-repeat center;mask:url(../images/shortcode-builder/tabs/sources.svg) no-repeat center}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-icon.icon-filters{-webkit-mask:url(../images/shortcode-builder/tabs/filters.svg) no-repeat center;mask:url(../images/shortcode-builder/tabs/filters.svg) no-repeat center}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-icon.icon-advanced{-webkit-mask:url(../images/shortcode-builder/tabs/advanced.svg) no-repeat center;mask:url(../images/shortcode-builder/tabs/advanced.svg) no-repeat center}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-icon.icon-notifications{-webkit-mask:url(../images/shortcode-builder/tabs/notifications.svg) no-repeat center;mask:url(../images/shortcode-builder/tabs/notifications.svg) no-repeat center}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-icon.icon-permissions{-webkit-mask:url(../images/shortcode-builder/tabs/permissions.svg) no-repeat center;mask:url(../images/shortcode-builder/tabs/permissions.svg) no-repeat center}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-name{font-size:.85rem;text-transform:uppercase;font-weight:500;white-space:nowrap}@media (max-width:767px){.igd-shortcode-builder-form .shortcode-builder-sidebar{width:100%;max-width:100%;background:0 0;height:auto;min-height:auto;margin:20px 0;padding:0;position:static;border:0}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs{flex-direction:row}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab{background:0 0;padding:0;border:0;color:#777}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-name{font-size:.7rem;font-weight:400;text-transform:capitalize}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-icon{width:26px;height:26px;margin-bottom:7px;background:#777}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap{width:auto}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap:not(:last-child){margin-bottom:0}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap:not(:last-child):after{display:none}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap.active .shortcode-tab{background:0 0;color:#2fb44b}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap.active .shortcode-tab .tab-icon{background-color:#2fb44b}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap.active .shortcode-tab .tab-name{font-weight:500}}.igd-shortcode-builder-form .shortcode-builder-content{flex:1}.igd-shortcode-builder-form:has(.shortcode-builder-sidebar) .shortcode-builder-content{width:80%;max-width:calc(100% - 200px);min-height:100vh;display:flex;flex-direction:column}.igd-shortcode-builder-form .form-footer{display:flex;align-items:center;justify-content:space-between;margin-top:auto;position:sticky;bottom:0;padding:10px 15px;border-top:1px solid #eaeaea;background:#fff;z-index:9}.igd-shortcode-builder-form .form-footer button:first-child,.igd-shortcode-builder-form .form-footer button:last-child{background:#fff;color:#2fb44b;border-color:rgba(47,180,75,.3)}.igd-shortcode-builder-form .form-footer button:first-child:hover,.igd-shortcode-builder-form .form-footer button:last-child:hover{background:#d5f0db}.igd-shortcode-builder-form .form-footer button.disabled{opacity:.5;pointer-events:none;background:#ddd;border-color:#ddd}.igd-shortcode-builder-form .form-footer button.disabled:hover{background:#ddd;border-color:#ddd}@media (max-width:767px){.igd-shortcode-builder-form .form-footer{margin:0 -10px}.igd-shortcode-builder-form .form-footer button{font-weight:400}.igd-shortcode-builder-form .form-footer button span{font-size:14px}}.igd-shortcode-builder-form.editor-mode .shortcode-builder-sidebar{top:0}.igd-shortcode-builder-form.editor-mode .shortcode-builder-content{padding:0;display:flex;flex-direction:column;height:calc(100vh - 50px)}.shortcode-module{padding:15px}.shortcode-module-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px;width:100%;border-bottom:1px solid #e5e5e5;padding-bottom:10px}.shortcode-module-header .module-title{flex:1;text-align:left}.shortcode-module-header .module-title h2{font-size:1.2rem;margin-bottom:5px;font-weight:600;text-align:left;margin-top:0}.shortcode-module-header .module-title span{font-size:.85rem}.shortcode-module-header .module-type{cursor:pointer;display:flex;align-items:center;margin-left:15px;border:1px solid rgba(47,180,75,.3);padding:10px 12px;border-radius:5px;background:#fff;transition:all .2s ease-in-out}.shortcode-module-header .module-type-title{margin-right:10px;font-weight:400;font-size:1rem}.shortcode-module-header .module-type img{width:20px;height:20px;margin-right:7px}.shortcode-module-header .module-type-name{font-size:1rem;font-weight:500}.shortcode-module-header .module-type:hover{background:rgba(213,240,219,.3)}.shortcode-module-header .shortcode-wrap{display:flex;align-items:center;justify-content:flex-start;position:relative;width:-moz-max-content;width:max-content}.shortcode-module-header .shortcode-wrap code{padding:10px 10px 10px 35px;background:#fff;color:#5c637e;border-radius:7px;border:1px solid rgba(47,180,75,.2);font-size:12px;word-break:break-all;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.shortcode-module-header .shortcode-wrap i{left:3px;color:#5c637e;padding:7px;border-radius:30px;height:auto;width:auto;cursor:pointer;position:absolute;font-size:24px}.shortcode-module .shortcode-types{display:flex;flex-wrap:wrap;justify-content:space-between;gap:20px}.shortcode-module .shortcode-types .shortcode-type{width:calc(25% - 20px);padding:1.5rem 1rem;border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;transition:background .3s ease;position:relative;text-align:center;border:1px dashed rgba(47,180,75,.5);background:#fff}.shortcode-module .shortcode-types .shortcode-type .icon-wrap{width:60px;height:60px;background-color:#2fb44b;border-radius:50%;display:flex;align-items:center;justify-content:center}.shortcode-module .shortcode-types .shortcode-type .icon-wrap.icon-browser{background:#eff3fe}.shortcode-module .shortcode-types .shortcode-type .icon-wrap.icon-uploader{background:#eaf7ed}.shortcode-module .shortcode-types .shortcode-type .icon-wrap.icon-gallery{background:#ece8ff}.shortcode-module .shortcode-types .shortcode-type .icon-wrap.icon-slider{background:#e9f0ff}.shortcode-module .shortcode-types .shortcode-type .icon-wrap.icon-media{background:#fff6f5}.shortcode-module .shortcode-types .shortcode-type .icon-wrap.icon-search{background:#e4ffde}.shortcode-module .shortcode-types .shortcode-type .icon-wrap.icon-embed{background:#ecf7ff}.shortcode-module .shortcode-types .shortcode-type .icon-wrap.icon-download{background:#eaf7ed}.shortcode-module .shortcode-types .shortcode-type .icon-wrap.icon-view{background:#f5f8ff}.shortcode-module .shortcode-types .shortcode-type .icon-wrap img{width:32px;height:32px}.shortcode-module .shortcode-types .shortcode-type>span{font-size:1rem;font-weight:600;margin:20px 0 5px;color:#0a0a0a}.shortcode-module .shortcode-types .shortcode-type .description{font-size:.875rem;font-weight:400;color:#757575;margin-top:5px}.shortcode-module .shortcode-types .shortcode-type.active{background:#47cf64;color:#fff}.shortcode-module .shortcode-types .shortcode-type.active>span{color:#fff}.shortcode-module .shortcode-types .shortcode-type.active .description{color:#fff}.shortcode-module .shortcode-types .shortcode-type:not(.active):hover{background:rgba(47,180,75,.2)}.shortcode-module .shortcode-types .shortcode-type .pro-badge{position:absolute;top:10px;right:10px;background:#fdb837;color:#fff;padding:7px;border-radius:7px;font-size:12px;font-weight:400;display:flex;align-items:center;justify-content:center;line-height:1;box-shadow:0 0 5px rgba(0,0,0,.1);transition:all .3s ease}.shortcode-module .shortcode-types .shortcode-type .pro-badge i{height:auto;width:auto;font-size:18px;margin-right:3px}.shortcode-module .shortcode-types .shortcode-type.pro-feature{border-color:#fdb837}.shortcode-module .shortcode-types .shortcode-type.pro-feature:hover{background:rgba(253,184,55,.1)}.shortcode-module .shortcode-types .shortcode-type:last-child{margin-right:auto}.shortcode-module .settings-field{display:flex;flex-wrap:wrap;margin-bottom:15px;align-items:center;border-radius:10px;padding:12px 18px;background:#fff}.shortcode-module .settings-field-title{font-size:1.3rem;margin-bottom:30px;font-weight:600;text-align:left}.shortcode-module .settings-field-title.field-visibility{margin-top:50px}.shortcode-module .settings-field-label{width:200px;font-weight:600;font-size:1rem;display:flex;justify-content:space-between;text-align:left}.shortcode-module .settings-field-label i{margin-right:7px;color:#777}.shortcode-module .settings-field-label:after{content:":";margin-left:auto}.shortcode-module .settings-field-content{display:flex;flex-direction:column;align-items:flex-start;margin-left:20px;flex:1}.shortcode-module .settings-field-content .components-button i{margin-right:5px}.shortcode-module .settings-field-content .description{font-size:.875rem;margin-top:10px;text-align:left;color:#757575;display:flex;align-items:center;flex-wrap:wrap}.shortcode-module .settings-field-content .description .igd-btn,.shortcode-module .settings-field-content .description a{margin-left:10px;text-decoration:none}.shortcode-module .settings-field-content .description+.description{margin-top:0}.shortcode-module .settings-field.filter-field .filter-field-input{display:flex;flex-direction:column}.shortcode-module .settings-field.filter-field .filter-field-all{display:flex;align-items:center;justify-content:flex-start;margin-top:15px;flex-wrap:wrap}.shortcode-module .settings-field.filter-field .filter-field-all>div{display:flex;align-items:center}.shortcode-module .settings-field.filter-field .filter-field-all>div:first-child{margin-right:20px}.shortcode-module .settings-field.filter-field .filter-field-all-label{margin-right:10px;font-weight:500;font-size:.875rem;white-space:nowrap}.shortcode-module .settings-field.filter-field .filter-field-all .description{width:100%;text-align:left}.shortcode-module .settings-field.filter-field .filter-field-all ul{margin-top:0;padding-left:10px;margin-left:10px;list-style:disc}.shortcode-module .settings-field.filter-field .name-filter-option{display:flex;flex-wrap:wrap;align-items:center;margin-top:10px}.shortcode-module .settings-field.filter-field .name-filter-option h4{margin:0 15px 0 0;font-size:.875rem;font-weight:500}.shortcode-module .settings-field.filter-field .name-filter-option .name-filter-option-item{margin-right:15px;border:1px solid #ddd;border-radius:5px;padding:5px;display:flex;align-items:center;justify-content:center;font-size:.875rem;font-weight:500;color:#777;cursor:pointer;transition:all .3s ease}.shortcode-module .settings-field.filter-field .name-filter-option .name-filter-option-item:hover{background:#f5f8ff;color:#0a0a0a}.shortcode-module .settings-field.filter-field .name-filter-option .components-checkbox-control__input{height:20px;width:20px}.shortcode-module .settings-field.filter-field .name-filter-option .components-checkbox-control__label{margin-left:7px;text-transform:capitalize}@media (max-width:767px){.shortcode-module .settings-field.filter-field .name-filter-option div:not(#jairalok){width:auto;margin-bottom:0}}.shortcode-module .settings-field.sort-field .sort-field-section{display:flex;flex-direction:column}.shortcode-module .settings-field.sort-field .sort-field-section:first-child{margin-right:35px;padding-right:15px;border-right:1px solid #ddd}.shortcode-module .settings-field.sort-field .sort-field-section:last-child{border-right:0}.shortcode-module .settings-field.sort-field .sort-field-section-wrap{display:flex;margin:15px 30px}.shortcode-module .settings-field.sort-field .sort-field-section-label{margin-bottom:15px;font-weight:500;text-align:left;font-size:.9rem;margin-left:-20px}.shortcode-module .settings-field.sort-field .sort-field-section .sort-item{display:flex;align-items:center;margin-bottom:10px;cursor:pointer;position:relative;font-size:.875rem}.shortcode-module .settings-field.sort-field .sort-field-section .sort-item i{display:none;position:absolute;left:-25px}.shortcode-module .settings-field.sort-field .sort-field-section .sort-item.active{color:#2fb44b}.shortcode-module .settings-field.sort-field .sort-field-section .sort-item.active i{display:block}.shortcode-module .settings-field.filter-users-field .filter-users-group{display:flex;flex-direction:column}.shortcode-module .settings-field .filter-users{margin-top:15px;display:flex;flex-direction:column;border:1px dashed #ddd;padding:15px;border-radius:7px;width:100%}.shortcode-module .settings-field .filter-users-title{font-weight:500;font-size:1rem;margin-bottom:10px;text-align:left;margin-top:0}.shortcode-module .settings-field .filter-users-section{display:flex;align-items:center}.shortcode-module .settings-field .filter-users-section:first-child{margin-right:20px}.shortcode-module .settings-field .filter-users-section-label{margin-right:10px;font-weight:500;font-size:1rem}.shortcode-module .settings-field .filter-users-section-wrap{display:flex;flex-wrap:wrap}.shortcode-module .settings-field .filter-users-section-wrap .description{width:100%;margin-bottom:0}.shortcode-module .settings-field.field-parent-folder .shortcode-module .igd-select-sources-wrap{margin-top:10px}.shortcode-module .settings-field.field-upload-confirmation-message .description{margin-top:-5px;margin-bottom:15px}.shortcode-module .settings-field.field-upload-confirmation-message .wp-editor-wrap{width:100%}.shortcode-module .settings-field.field-upload-confirmation-message .wp-editor-wrap textarea{border:none}.shortcode-module .settings-field.field-upload-confirmation-message .wp-switch-editor{height:29px}.shortcode-module .settings-field.field-upload-confirmation-message textarea{width:100%;border:1px solid #eee;padding:15px;min-width:200px}.shortcode-module .settings-field.field-upload-confirmation-message textarea:focus{outline:0;box-shadow:none}.shortcode-module .settings-field.field-allow-search input[type=text]{width:100%}.shortcode-module .settings-field.field-private-folder input[type=text]{width:100%}.shortcode-module .settings-field.field-private-folder .settings-field-label{margin-top:15px}.shortcode-module .settings-field.field-gallery-image-size .gallery-custom-size-wrap{display:flex}.shortcode-module .settings-field.field-gallery-image-size .gallery-custom-size-wrap .components-base-control:first-child{display:flex;align-items:center}.shortcode-module .settings-field.field-gallery-image-size .gallery-custom-size-wrap .components-base-control:first-child:after{content:"X";margin-left:10px;margin-right:10px;font-weight:500}.shortcode-module .settings-field.field-gallery-image-size .gallery-custom-size-wrap .components-text-control__input{width:110px}.shortcode-module .settings-field.field-access-denied-message{flex-direction:column;align-items:flex-start}.shortcode-module .settings-field.field-access-denied-message .settings-field-label{width:100%}.shortcode-module .settings-field.field-access-denied-message .settings-field-label:after{content:""}.shortcode-module .settings-field.field-access-denied-message .description{margin-top:-5px;margin-bottom:15px}.shortcode-module .settings-field.field-access-denied-message .wp-editor-wrap{width:100%}.shortcode-module .settings-field.field-access-denied-message .wp-editor-wrap textarea{border:none}.shortcode-module .settings-field.field-access-denied-message .wp-switch-editor{height:29px}.shortcode-module .settings-field.field-access-denied-message textarea{width:100%;border:1px solid #eee;padding:15px;min-width:200px}.shortcode-module .settings-field.field-access-denied-message textarea:focus{outline:0;box-shadow:none}.shortcode-module .settings-field .components-select-control select,.shortcode-module .settings-field input[type=email],.shortcode-module .settings-field input[type=number],.shortcode-module .settings-field input[type=text],.shortcode-module .settings-field select{height:40px;border-radius:4px;border:1px solid #ddd;font-size:.8rem;width:350px;max-width:100%;padding:10px 15px;line-height:1}.shortcode-module .settings-field .components-select-control select:disabled,.shortcode-module .settings-field input[type=email]:disabled,.shortcode-module .settings-field input[type=number]:disabled,.shortcode-module .settings-field input[type=text]:disabled,.shortcode-module .settings-field select:disabled{background:#f5f5f5;color:#aaa;cursor:not-allowed}.shortcode-module .settings-field .igd-select{width:400px}.shortcode-module .settings-field .igd-select.filter-users-select{max-width:100%}.shortcode-module .settings-field .igd-select__control.igd-select__control--is-focused{border-color:#2fb44b;box-shadow:none}.shortcode-module .settings-field .igd-select__input{height:auto}.shortcode-module .settings-field .igd-select__input:focus{border:none;box-shadow:none}.shortcode-module .settings-field .igd-select__menu{border-radius:7px;border:1px solid rgba(47,180,75,.3);box-shadow:0 0 5px rgba(0,0,0,.1);z-index:99}.shortcode-module .settings-field .igd-select__menu .igd-select__option{padding:10px 15px;font-size:.8rem;cursor:pointer}.shortcode-module .settings-field .igd-select__menu .igd-select__option:hover{background:rgba(47,180,75,.1)}.shortcode-module .settings-field .igd-select__menu .igd-select__option--is-focused{background:rgba(47,180,75,.1)}.shortcode-module .settings-field .igd-select__multi-value{background:#2fb44b;color:#fff}.shortcode-module .settings-field .igd-select__multi-value .igd-select__multi-value__label{color:#fff}.shortcode-module .settings-field .components-button-group{background:rgba(47,180,75,.1);padding:10px;width:-moz-max-content;width:max-content;border-radius:10px}.shortcode-module .settings-field .components-button-group button{color:#47cf64;box-shadow:inset 0 0 0 1px rgba(47,180,75,.25);margin:0 3px;border-radius:5px;background:#fff}.shortcode-module .settings-field .components-button-group button:first-child{border-top-left-radius:5px;border-bottom-left-radius:5px}.shortcode-module .settings-field .components-button-group button:last-child{border-top-right-radius:5px;border-bottom-right-radius:5px}.shortcode-module .settings-field .components-button-group button.is-primary{z-index:auto;background:#47cf64;color:#fff}.shortcode-module .settings-field .components-button-group button.is-secondary:hover{color:#2fb44b;box-shadow:inset 0 0 0 1px #47cf64}.shortcode-module .settings-field .components-button-group button i{margin-right:5px}.shortcode-module .settings-field .components-range-control{width:350px;margin-top:15px}.shortcode-module .settings-field .components-range-control .components-range-control__wrapper{color:#2fb44b;margin-bottom:0}.shortcode-module .settings-field .components-range-control .components-range-control__wrapper .components-range-control__mark-label{top:20px}.shortcode-module .settings-field .components-range-control .components-range-control__wrapper .components-range-control__thumb-wrapper span{background:#2fb44b}.shortcode-module .settings-field .components-range-control .components-input-control__input{width:auto;height:auto;padding:0 0 0 10px}.shortcode-module .settings-field .components-range-control .components-input-control__backdrop{border-color:#ddd}.shortcode-module .settings-field .components-select-control .components-input-control__backdrop{border-color:#ddd}.shortcode-module .settings-field-sub{display:flex;flex-direction:column;width:100%}.shortcode-module .settings-field-sub .settings-field{flex-direction:column;align-items:flex-start;margin-top:15px;margin-bottom:0;display:flex;border:1px dashed #ddd;padding:10px 15px;border-radius:7px;width:100%}.shortcode-module .settings-field-sub .settings-field-label{margin-top:0;margin-bottom:12px;width:auto}.shortcode-module .settings-field-sub .settings-field-label:after{content:"";display:none}.shortcode-module .settings-field-sub .settings-field-content{width:100%;margin-left:0}.shortcode-module .settings-field-sub .settings-field-content+h4,.shortcode-module .settings-field-sub .settings-field-content>h4{margin-top:15px}@media (max-width:767px){.shortcode-module .shortcode-module-header{flex-flow:column-reverse;align-items:center;text-align:center}.shortcode-module .shortcode-module-header .module-title h2{text-align:center;margin-top:10px}.shortcode-module .shortcode-module-header .module-type{display:none}.shortcode-module .shortcode-module-header .shortcode-wrap{display:none}.shortcode-module .shortcode-types{gap:10px}.shortcode-module .shortcode-types .shortcode-type{width:calc(50% - 5px);text-align:center;padding:1rem}.shortcode-module .settings-field{flex-flow:column;align-items:flex-start;padding:10px}.shortcode-module .settings-field-label{margin-bottom:.5rem;font-size:.875rem;justify-content:flex-start}.shortcode-module .settings-field-label:after{display:none}.shortcode-module .settings-field-content{margin-left:0}.shortcode-module .settings-field input,.shortcode-module .settings-field select{width:100%;height:32px}.shortcode-module .settings-field .igd-select{width:100%}.shortcode-module .settings-field.filter-field .filter-field-all{flex-direction:column;align-items:flex-start;width:100%}.shortcode-module .settings-field.filter-field .filter-field-all div{margin-right:0;display:flex;width:100%}.shortcode-module .settings-field.filter-field .filter-field-all div:first-child{margin-bottom:10px}.shortcode-module .settings-field.filter-field .filter-field-all-label{min-width:70px}.shortcode-module .settings-field .filter-users-section-wrap{flex-direction:column;align-items:flex-start;width:100%}.shortcode-module .settings-field .filter-users-section-wrap .filter-users-section{width:100%}.shortcode-module .settings-field .filter-users-section-wrap .filter-users-section:first-child{margin-bottom:10px}}.igd-module-builder-modal .components-form-toggle,.igd-shortcode-builder .components-form-toggle{width:-moz-max-content;width:max-content;background:#fff;padding:3px;border-radius:15px}.igd-module-builder-modal .components-form-toggle__track,.igd-shortcode-builder .components-form-toggle__track{width:44px;height:22px;border-radius:22px;border-color:#5c637e}.igd-module-builder-modal .components-form-toggle__thumb,.igd-shortcode-builder .components-form-toggle__thumb{background:#5c637e;border:none;width:15px;height:15px;border-radius:25px;top:6px;left:6px}.igd-module-builder-modal .components-form-toggle.is-checked .components-form-toggle__thumb,.igd-shortcode-builder .components-form-toggle.is-checked .components-form-toggle__thumb{background:#fff;transform:translateX(22px)}.igd-module-builder-modal .components-form-toggle.is-checked .components-form-toggle__track,.igd-shortcode-builder .components-form-toggle.is-checked .components-form-toggle__track{background:#47cf64}.igd-module-builder-modal .components-base-control__field,.igd-shortcode-builder .components-base-control__field{margin-bottom:0;display:flex;align-items:center}.igd-module-builder-modal .components-base-control__field .components-checkbox-control__input,.igd-shortcode-builder .components-base-control__field .components-checkbox-control__input{border-color:rgba(92,99,126,.5);margin:0}.igd-module-builder-modal .components-base-control__field .components-checkbox-control__input-container,.igd-shortcode-builder .components-base-control__field .components-checkbox-control__input-container{margin:0}.igd-module-builder-modal .components-base-control__field .components-checkbox-control__input:checked,.igd-shortcode-builder .components-base-control__field .components-checkbox-control__input:checked{background:#47cf64;border-color:#47cf64}@media (max-width:767px){.igd-module-builder-modal,.igd-shortcode-builder{margin-top:0}.igd-module-builder-modal .shortcode-tabs,.igd-shortcode-builder .shortcode-tabs{flex-wrap:wrap;justify-content:space-between}.igd-module-builder-modal .shortcode-tabs .shortcode-tab,.igd-shortcode-builder .shortcode-tabs .shortcode-tab{margin-right:0!important}.igd-module-builder-modal .shortcode-tabs .shortcode-tab .tab-index,.igd-shortcode-builder .shortcode-tabs .shortcode-tab .tab-index{height:2rem;width:2rem}.igd-module-builder-modal .shortcode-tabs .shortcode-tab:not(:last-child):after,.igd-shortcode-builder .shortcode-tabs .shortcode-tab:not(:last-child):after{width:1rem;height:.3rem}.igd-module-builder-modal .shortcode-builder-content,.igd-shortcode-builder .shortcode-builder-content{padding:0;max-width:100%}}.igd-select-sources-wrap{display:flex;flex-wrap:wrap;align-items:flex-start}.igd-select-sources-wrap .source-title-wrap{width:100%;margin-bottom:20px;text-align:left}.igd-select-sources-wrap .source-title-wrap h3{margin-bottom:5px}.igd-select-sources-wrap .source-title-wrap p{margin:0}.igd-select-sources-wrap .igd-file-browser{border:1px solid rgba(47,180,75,.3);border-radius:10px;overflow:hidden;flex:1;height:auto;background:#fff}.igd-select-sources-wrap .igd-file-browser-header{position:static;z-index:9}.igd-select-sources-wrap .igd-file-browser-header .header-title i{color:#555;display:flex;align-items:center;justify-content:center}.igd-select-sources-wrap .igd-file-browser-header .igd-breadcrumb .breadcrumb-item:hover{color:#fff;background:#248c3a}.igd-select-sources-wrap .igd-file-browser .select-btn{position:absolute;color:#fff;right:10px;border:1px solid rgba(47,180,75,.3);z-index:2;display:flex;align-items:center;border-radius:3px;padding:5px;background:#2fb44b;cursor:pointer;line-height:1;transition:background .3s ease;font-size:.875rem}.igd-select-sources-wrap .igd-file-browser .select-btn i{margin-right:0}.igd-select-sources-wrap .igd-file-browser .select-btn span{margin-left:5px;display:none}.igd-select-sources-wrap .igd-file-browser .select-btn.active{background:#ff9f10;border-color:#dc8400}.igd-select-sources-wrap .igd-file-browser .select-btn:hover span{display:block}.igd-select-sources-wrap .igd-file-browser .file-list .file-item:not(.folder-item):hover .select-btn span{display:block}.igd-select-sources-wrap .igd-file-browser .file-list:not(.list-view) .file-item:not(.folder-item) .select-btn{top:10px}.igd-select-sources-wrap .igd-selected-list{width:30%;max-width:300px;margin-left:15px;border:1px solid rgba(47,180,75,.3);border-radius:10px;overflow:hidden;background:#fff;position:sticky;top:120px}.igd-select-sources-wrap .igd-selected-list-header{padding:10px;background:#2fb44b;color:#fff;display:flex;align-items:center;justify-content:space-between}.igd-select-sources-wrap .igd-selected-list-header .header-title{font-size:1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-select-sources-wrap .igd-selected-list-header button{padding:7px 10px;font-size:.8rem;border-radius:5px;background:#ff9f10;border:none}.igd-select-sources-wrap .igd-selected-list-header button span{white-space:nowrap}.igd-select-sources-wrap .igd-selected-list-header button:hover{color:#ff9f10;background:#fff}.igd-select-sources-wrap .igd-selected-list .no-files-message{display:flex;justify-content:center;align-items:center;font-size:1rem;color:#ff9f10;margin:30px auto}.igd-select-sources-wrap .igd-selected-list .no-files-message i{margin-right:5px}.igd-select-sources-wrap .igd-selected-list>p{padding:10px;font-size:.875rem;color:#555;border:1px solid #ddd;margin:30px 10px 10px;border-radius:5px;background:rgba(48,142,225,.1);text-align:center}.igd-select-sources-wrap .igd-selected-list>p span{display:block;margin-top:10px}.igd-select-sources-wrap .no-account-placeholder{width:auto;flex:1;margin-top:0}@media (max-width:767px){.igd-select-sources-wrap{flex-direction:column}.igd-select-sources-wrap .igd-selected-list{margin-left:0}}.selected-item{display:flex;align-items:center;padding:10px 15px;border-bottom:1px solid #ddd;font-size:.875rem;z-index:99;color:#666}.selected-item-index{margin-right:7px;color:#777}.selected-item .item-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-right:7px}.selected-item .remove-item{color:#fff;background:#ff9f10;border:1px solid #dc8400;display:flex;align-items:center;justify-content:center;height:25px;width:25px;min-width:25px;font-size:18px;border-radius:50%;opacity:.7;margin-left:auto;cursor:pointer}.selected-item .remove-item:hover{opacity:1;background:#fff;color:#ff9f10}.selected-item .dashicons-category,.selected-item .dashicons-move,.selected-item img{margin-right:10px;color:#8f8f8f}.selected-item .dashicons-move{cursor:pointer}.selected-item .dashicons-move:hover{color:#555}.selected-item .file-item{display:flex;align-items:center;overflow:hidden;flex:1;cursor:pointer}.selected-item .file-item>img{max-width:20px;min-height:16px}.selected-item.sortable-item{border:none}.igd-shortcode-preview,.igd-shortcode-preview *{box-sizing:border-box}.igd-shortcode-preview-container{z-index:99999!important}.igd-shortcode-preview-container,.igd-shortcode-preview-container *{box-sizing:border-box}.igd-shortcode-preview-popup{display:flex!important;align-items:center;justify-content:center;position:absolute!important;grid-column:auto!important;grid-row:auto!important;background:0 0;width:97%!important;height:95%!important}.igd-shortcode-preview-popup .swal2-html-container{width:100%!important;height:100%!important;background:#fff;border-radius:.5rem!important;margin:auto!important}.igd-shortcode-preview-header{display:flex;align-items:center;justify-content:space-between;padding:.8rem;border-bottom:1px solid #ddd;margin-bottom:1rem;position:sticky;top:0;z-index:10;background:#fff;box-shadow:0 .5rem 1rem rgba(0,0,0,.1)}.igd-shortcode-preview-header .header-title i{margin-right:7px}.igd-shortcode-preview-header button i{margin-right:0}.igd-shortcode-preview .preview-inner{text-align:left;padding:1rem 2rem}.swal2-container.swal2-top-end{z-index:99999!important}.igd-module-builder-modal{height:100%;display:flex;flex-direction:column;background:#f7f8fa}.igd-module-builder-modal *{box-sizing:border-box}.igd-module-builder-modal-wrap{height:100%}.igd-module-builder-modal-wrap.inline-select .shortcode-module{padding:0}.igd-module-builder-modal-wrap.inline-select .shortcode-builder-content{height:auto;max-width:100%;min-height:auto}.igd-module-builder-modal-container{z-index:99999999!important}.igd-module-builder-modal-container .swal2-popup{width:95%;height:90vh;padding:0;overflow:hidden}.igd-module-builder-modal-container .swal2-popup .swal2-html-container{margin:0;border-radius:.5rem;overflow-y:auto}.igd-module-builder-modal-header{display:flex;align-items:center;padding:12px 1rem;border-bottom:1px solid #eaeaea;background:#fff;z-index:99;box-shadow:0 0 .5rem rgba(0,0,0,.1);position:sticky;top:0}.igd-module-builder-modal-header .header-title{display:flex;align-items:center}.igd-module-builder-modal-header .header-title i{margin-right:7px}.igd-module-builder-modal-header .header-title h3{font-size:1.2rem;margin:0;font-weight:500}@media (max-width:600px){.igd-module-builder-modal-header .header-title h3{font-size:1rem}}.igd-module-builder-modal-header .close{margin-left:auto;margin-right:15px}.igd-module-builder-modal-header button{padding:7px 10px;font-size:.9rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-module-builder-modal-header .done .igd-spinner{display:none}.igd-module-builder-modal-header .done.loading i{display:none}.igd-module-builder-modal-header .done.loading .igd-spinner{display:inline-block}.igd-module-builder-modal .shortcode-module .media-uploader-post-content{margin-bottom:30px}.igd-module-builder-modal .shortcode-module .media-uploader-post-content textarea{width:100%;height:auto;padding:8px 12px;line-height:27px;vertical-align:top}.igd-module-builder-modal .shortcode-module-header{align-items:flex-start}.igd-module-builder-modal .shortcode-module-header .module-title{line-height:1}.igd-module-builder-modal .shortcode-module .igd-selected-list{top:20px}.igd-module-builder-modal .shortcode-module-body>.settings-field:last-child{margin-bottom:0}.igd-shortcode-builder-form{margin:0;overflow-y:auto;flex:1;display:flex}.igd-shortcode-builder-form .content-sources .settings-field.form-entry-field{margin-top:20px}.igd-shortcode-builder-form .content-sources .settings-field.form-entry-field input[type=text]{width:100%}.igd-shortcode-builder-form .content-sources .form-entry-title{margin-top:30px}.igd-shortcode-builder-form .content-sources #igd-select-files{width:100%;margin-bottom:20px}.igd-shortcode-builder-form .content-sources #igd-select-files .igd-body{max-height:400px}.module-builder-placeholder{display:flex;align-items:center;flex-flow:column;justify-content:center;text-align:center;border:1px solid #eaeaea;padding:2rem;border-radius:10px;max-width:380px;margin:auto;background:#fafafa}.module-builder-placeholder img{width:50px}.module-builder-placeholder h3{font-size:22px;margin-bottom:5px;font-weight:500;color:#333}.module-builder-placeholder p{font-size:.875rem;color:#555}.module-builder-placeholder button{margin-top:10px;padding:10px 15px}.module-builder-placeholder.pro-placeholder h4{margin-top:20px;margin-bottom:0;font-size:1.5rem;color:#ff9458;font-weight:500}.igd-shortcode-data-modal-container .igd-shortcode-data-modal-input{height:150px;padding:1rem;border-radius:.5rem;line-height:1.2;font-size:.878885rem}.igd-shortcode-data-modal-container .swal2-confirm{background:#2fb44b}#igd_data{display:none!important}.igd-form-uploader-trigger>*{pointer-events:none}.igd-file-browser{display:flex;flex-flow:column;align-items:flex-start;width:100%}.igd-file-browser,.igd-file-browser *{box-sizing:border-box}.igd-file-browser .btn-primary{background:var(--color-primary)}.igd-file-browser .btn-primary:hover{background:var(--color-primary-light-alt)}.igd-file-browser-header{display:flex;align-items:center;background:#f9fafc;border-bottom:1px solid #e5e5e5;padding:12px 15px;position:sticky;top:32px;width:100%;z-index:9;height:60px}.igd-file-browser-header .header-title{display:flex;align-items:center;font-size:1rem;font-weight:600;color:#fff}.igd-file-browser-header .header-title i,.igd-file-browser-header .header-title img{margin-right:10px;background:#fff;padding:5px;height:35px;width:35px;border-radius:50%;color:#fff}.igd-file-browser-header .header-action{display:flex;align-items:center;margin-left:auto;justify-content:flex-end}.igd-file-browser-header .header-action-item{margin-left:15px;cursor:pointer;color:#444;background:#f7f8fa;height:40px;width:40px;border-radius:10px;display:flex;align-items:center;justify-content:center;transition:all .2s ease-in-out}.igd-file-browser-header .header-action-item img{width:18px}.igd-file-browser-header .header-action-item:hover{background:var(--color-primary-lighter)}.igd-file-browser-header .user-box{display:flex;align-items:center;width:auto;padding:5px;max-width:250px;height:45px;background:0 0}.igd-file-browser-header .user-box .user-info{display:flex;flex-direction:column;line-height:1;overflow:hidden;text-align:left}.igd-file-browser-header .user-box .user-info span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.igd-file-browser-header .user-box .user-info .user-name{font-size:.9rem;font-weight:600;color:#3d3d3d;margin-bottom:3px}.igd-file-browser-header .user-box .user-info .user-email{color:#7a7a7a;font-weight:300;font-size:.875rem}.igd-file-browser-header .user-box .user-image{width:35px;height:35px;border-radius:50%}.igd-file-browser-header .user-box-modal{display:flex;flex-direction:column;justify-content:flex-start;align-items:center;width:260px;border-radius:10px;max-height:75vh;overflow-y:auto}.igd-file-browser-header .user-box-modal::-webkit-scrollbar{width:5px;display:none}.igd-file-browser-header .user-box-modal::-webkit-scrollbar-track{background:var(--color-primary-lighter)}.igd-file-browser-header .user-box-modal::-webkit-scrollbar-thumb{background:var(--color-primary-light)}.igd-file-browser-header .user-box-modal::-webkit-scrollbar-thumb:hover{background:var(--color-primary)}.igd-file-browser-header .user-box-modal:hover::-webkit-scrollbar{display:block}.igd-file-browser-header .user-box-modal-wrap{border-radius:10px;padding:0;opacity:1;box-shadow:0 1px 0 0 #e5e5e5}.igd-file-browser-header .user-box-modal-wrap:after,.igd-file-browser-header .user-box-modal-wrap:before{left:calc(100% - 45px)}.igd-file-browser-header .user-box-modal-title{font-size:1.2rem;font-weight:500;display:block;position:sticky;background:#fff;top:0;width:100%;text-align:center;padding:15px;box-shadow:0 1px 0 0 #e5e5e5;margin-bottom:7px}.igd-file-browser-header .user-box-modal button{margin:10px auto 20px auto;padding:8px 12px;font-size:.875rem}.igd-file-browser-header .user-box-modal>div:last-child{margin-bottom:15px}.igd-file-browser-header .user-box-account{display:flex;align-items:center;border:1px solid #e5e5e5;padding:7px;border-radius:5px;cursor:pointer;width:calc(100% - 30px);margin:7px}.igd-file-browser-header .user-box-account.active,.igd-file-browser-header .user-box-account:hover{background:var(--color-primary-lighter);color:#000}.igd-file-browser-header .user-box-account img{width:30px;height:30px;border-radius:50%;margin-right:10px}.igd-file-browser-header .user-box-account .account-info{display:flex;flex-flow:column;overflow:hidden;text-align:left;line-height:1.5}.igd-file-browser-header .user-box-account .account-info .account-name{font-size:.9rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-file-browser-header .user-box-account .account-info .account-email{font-size:.8rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#7a7a7a}.igd-file-browser-header .user-box-account .active-badge{background:var(--color-primary);color:#fff;border-radius:50%;position:relative;margin-left:auto;right:0}.igd-file-browser-header .user-box .user-arrow{width:16px;margin-left:10px}@media (max-width:768px){.igd-file-browser-header{top:0;flex-flow:column;align-items:center;height:auto;padding:.5rem}.igd-file-browser-header .header-action{margin-left:0;width:100%;justify-content:center}.igd-file-browser-header .header-action .igd-search-bar input{min-height:35px;height:35px}.igd-file-browser-header .header-action .igd-search-bar i.dashicons-dismiss{margin-left:15px}.igd-file-browser-header .header-action .igd-search-bar i.dashicons-search{height:35px}.igd-file-browser-header .header-action .igd-search-bar.active{position:absolute;width:calc(100% - 20px);z-index:2;height:45px;background:#f7f8fa}.igd-file-browser-header .header-action-item{margin-left:.875rem}.igd-file-browser-header .header-action-item.sidebar-toggle{margin-left:0;margin-right:auto}.igd-file-browser-header .user-box{padding:5px;border-radius:30px;height:40px}.igd-file-browser-header .user-box .user-info{display:none}.igd-file-browser-header .user-box .user-arrow{margin-left:0}.igd-file-browser-header .user-box .user-image{width:30px;height:30px;margin-right:5px}.igd-file-browser-header .user-box-modal-wrap{right:10px;left:auto}}.igd-file-browser .igd-search-bar{display:flex;align-items:center;position:relative;overflow:hidden;margin-bottom:0}.igd-file-browser .igd-search-bar input{width:0;height:0;min-height:0;border:none;transition:all .3s ease;padding:0;margin:0;border:0;background:0 0;box-shadow:none}.igd-file-browser .igd-search-bar input:focus{outline:0;border:none;box-shadow:none}.igd-file-browser .igd-search-bar .search-submit{margin-left:0;display:flex;align-items:center;justify-content:center;margin-bottom:0}.igd-file-browser .igd-search-bar .search-dismiss{display:none;background:0 0;cursor:pointer}.igd-file-browser .igd-search-bar .search-dismiss img{width:16px}.igd-file-browser .igd-search-bar.active{width:auto;padding:5px 15px}.igd-file-browser .igd-search-bar.active input{width:100%!important;margin:0 15px;height:100%}.igd-file-browser .igd-search-bar.active .search-submit{margin-bottom:0}.igd-file-browser .igd-search-bar.active .search-dismiss{display:flex}.igd-file-browser .igd-search-bar.active .search-dismiss svg{margin-bottom:0}.igd-file-browser .igd-search-bar.error input{border:1px solid #f77066}.igd-file-browser-body{display:flex;align-items:flex-start;width:100%;height:100%;position:relative}.igd-file-browser .igd-sort{display:flex;align-items:center}.igd-file-browser .igd-sort-select{font-weight:600;cursor:pointer;padding:3px 5px;border-radius:5px}.igd-file-browser .igd-sort-select:hover{background:#ddd}.igd-file-browser .igd-sort-modal{width:220px;padding:0;border-radius:7px;opacity:1!important;box-shadow:rgba(149,157,165,.2) 0 8px 24px}.igd-file-browser .igd-sort-modal .sort-item{display:flex;align-items:center;margin-bottom:15px;padding-left:25px;cursor:pointer;font-size:.9rem}.igd-file-browser .igd-sort-modal .sort-item i{margin-right:5px;display:none}.igd-file-browser .igd-sort-modal .sort-item.active{color:var(--color-primary);padding-left:0}.igd-file-browser .igd-sort-modal .sort-item.active i{display:inline-block}.igd-file-browser .igd-sort-modal .sort-item:hover{color:var(--color-primary)}.igd-file-browser .igd-sort-modal-inner{display:flex;flex-direction:column}.igd-file-browser .igd-sort-modal-inner-section{border-bottom:1px solid #ddd;padding:15px}.igd-file-browser .igd-sort-modal-inner-section:last-child{border-bottom:0}.igd-file-browser .igd-sort-modal-inner-section-title{font-size:.9rem;margin-bottom:10px;display:block;font-weight:500}.igd-file-browser .igd-breadcrumb{display:flex;align-items:center;overflow:hidden;max-width:70%;flex-wrap:wrap}.igd-file-browser .igd-breadcrumb .breadcrumb-item{font-size:.875rem;display:flex;align-items:center;cursor:pointer;padding:5px;border-radius:5px;line-height:1;font-weight:500;color:#444;white-space:nowrap;position:relative;margin-bottom:0}.igd-file-browser .igd-breadcrumb .breadcrumb-item i{margin-left:3px}.igd-file-browser .igd-breadcrumb .breadcrumb-item i.dashicons-arrow-right-alt2{width:13px;height:15px;font-size:15px}.igd-file-browser .igd-breadcrumb .breadcrumb-item i.dashicons-admin-home{margin-right:5px;margin-left:0}.igd-file-browser .igd-breadcrumb .breadcrumb-item i:last-child{display:none}.igd-file-browser .igd-breadcrumb .breadcrumb-item span{margin-bottom:0;max-width:200px;overflow:hidden;text-overflow:ellipsis}.igd-file-browser .igd-breadcrumb .breadcrumb-item:first-child{margin-left:0}.igd-file-browser .igd-breadcrumb .breadcrumb-item:after{content:"";font-family:Dashicons;margin-left:7px}.igd-file-browser .igd-breadcrumb .breadcrumb-item:not(:last-child):after{content:"\f345"}.igd-file-browser .igd-breadcrumb .breadcrumb-item.active:after{content:"\f140";height:auto;width:auto;font-size:22px;margin-left:3px}.igd-file-browser .igd-breadcrumb .breadcrumb-item:hover{color:var(--color-primary);background:var(--color-primary-lighter)}@media (max-width:768px){.igd-file-browser .igd-breadcrumb{max-width:100%;margin-bottom:10px}}.igd-file-browser .collapsed-breadcrumbs{width:210px;opacity:1!important;box-shadow:rgba(149,157,165,.2) 0 8px 24px;padding:10px 0}.igd-file-browser .collapsed-breadcrumbs-item{cursor:pointer;font-size:.875rem;padding:7px 15px;display:flex;align-items:center}.igd-file-browser .collapsed-breadcrumbs-item:hover{color:var(--color-primary)}.igd-file-browser .collapsed-breadcrumbs-item i{margin-right:5px;font-size:1rem;height:1rem;width:1rem}.igd-file-browser .collapsed-breadcrumbs-item span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}.igd-file-browser .collapsed-breadcrumbs-item:before{content:"\f345";font-family:Dashicons,serif;margin-right:7px}.igd-file-browser .igd-root-placeholder{display:flex;flex-direction:column;align-items:center;width:-moz-max-content;width:max-content;margin:3rem auto;padding:50px 30px;border-radius:15px;min-width:30rem;background:#fff;box-shadow:rgba(149,157,165,.2) 0 2px 2px}.igd-file-browser .igd-root-placeholder .igd-placeholder-svg,.igd-file-browser .igd-root-placeholder img{width:200px;margin-bottom:1rem}.igd-file-browser .igd-root-placeholder-title{font-size:1rem;font-weight:500;margin:15px 0 5px 0;color:var(--color-primary)}.igd-file-browser .igd-root-placeholder-text{color:#7a7a7a}.igd-file-browser .igd-root-placeholder button{margin-top:30px}.igd-file-browser .igd-root-placeholder.empty-folder-placeholder img,.igd-file-browser .igd-root-placeholder.search-folder-placeholder img{width:100px}.igd-file-browser .igd-root-placeholder.search-placeholder .igd-placeholder-svg{width:100px;margin-bottom:1rem}.igd-file-browser .igd-root-placeholder.search-placeholder .igd-root-placeholder-title{margin-bottom:1.5rem}.igd-file-browser .igd-root-placeholder.search-placeholder:not(.empty-placeholder) .igd-root-placeholder-title{margin-top:0;margin-bottom:1.5rem}.igd-file-browser .igd-root-placeholder.search-placeholder .igd-search-bar{border:1px solid #ddd;padding:10px 20px;border-radius:5px}.igd-file-browser .igd-root-placeholder.search-placeholder .igd-search-bar .search-dismiss{display:none}.igd-file-browser .igd-root-placeholder.search-placeholder .igd-search-bar input{margin-left:0}.igd-file-browser .igd-root-placeholder+.igd-file-uploader{position:relative!important;margin:30px auto;right:unset;left:unset;bottom:unset}@media (max-width:767px){.igd-file-browser .igd-root-placeholder{min-width:auto}}.igd-sidebar-wrap{width:20%;max-width:230px;border-right:1px solid #e5e5e5;position:sticky;background:#f9fafc}.igd-sidebar .sidebar-uploader{display:flex;align-items:center;justify-content:center;padding:20px 10px 15px;border-bottom:1px solid #e5e5e5}.igd-sidebar .sidebar-uploader button{padding:7px 10px;font-size:.875rem;transition:background .3s ease;background:var(--color-primary)}.igd-sidebar .sidebar-uploader button.active{background:#fff;color:var(--color-primary);border-color:var(--color-primary-light)}.igd-sidebar .sidebar-uploader button.disabled{background:#ddd}.igd-sidebar .sidebar-uploader button.disabled:hover{background:#ddd!important}.igd-sidebar .sidebar-folders{display:flex;flex-direction:column}.igd-sidebar .sidebar-folders .root-item{padding:10px 15px;cursor:pointer;display:flex;align-items:center;font-size:1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-sidebar .sidebar-folders .root-item img{margin-right:10px}.igd-sidebar .sidebar-folders .root-item.active{background:var(--color-primary-lighter);color:var(--color-primary);border-left:5px solid}.igd-sidebar .sidebar-folders .root-item:hover{color:var(--color-primary)}.igd-sidebar .storage-info-wrap{display:flex;align-items:center;margin-top:30px;border-top:1px solid #e5e5e5;padding:15px}.igd-sidebar .storage-info-wrap i{margin-right:10px}.igd-sidebar .storage-info-wrap .storage-info{display:flex;flex-direction:column;flex:1}.igd-sidebar .storage-info-wrap .storage-info-sidebar{width:100%;height:10px;background:var(--color-primary-lighter);border-radius:5px;position:relative}.igd-sidebar .storage-info-wrap .storage-info-sidebar .storage-info-fill{position:absolute;top:0;left:0;width:0;height:100%;background:var(--color-primary);border-radius:5px}.igd-sidebar .storage-info-wrap .storage-info-sidebar .storage-info-fill.fill-danger{background:#f44336}.igd-sidebar .storage-info-wrap .storage-info span{font-size:.8rem;margin-top:5px}@media (max-width:767px){.igd-sidebar{max-width:80%;height:100%;background:#f5f9fd}.igd-sidebar-wrap{width:100%;max-width:100%;position:absolute;z-index:2;background:rgba(0,0,0,.5);height:100%}}.igd-body{display:flex;flex-direction:column;padding:10px;flex:1;width:100%;height:100%;position:relative;background:#f7f8fa}.igd-body .file-list{display:flex;align-items:flex-start;flex-wrap:wrap;overflow-y:auto}.igd-body .file-list .go-prev{display:flex;align-items:center;flex-direction:row!important;padding:10px;cursor:pointer!important;justify-content:flex-start!important;background:var(--color-primary-lighter);transition:all .3s ease;font-size:1rem;font-weight:300}.igd-body .file-list .go-prev i{margin:0 10px;position:relative;transition:all .3s ease;left:0}.igd-body .file-list .go-prev span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-body .file-list .root-item{flex-direction:row!important;padding:10px;cursor:pointer!important;align-items:center;justify-content:flex-start!important;font-size:1rem;background:#fff}.igd-body .file-list .root-item img{margin-right:10px}.igd-body .file-list .root-item .select-btn i{margin-right:0}.igd-body .file-list .file-item{display:flex;flex-direction:column;width:25%;margin:7px;border-radius:5px;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:auto;position:relative;aspect-ratio:1/1;justify-content:flex-end;box-shadow:rgba(0,0,0,.05) 0 6px 24px 0,rgba(0,0,0,.08) 0 0 0 1px;transition:transform .3s ease}.igd-body .file-list .file-item .igd-file-thumbnail{width:100%;height:100%;-o-object-fit:none;object-fit:none;position:absolute;-webkit-user-drag:none;bottom:20px}.igd-body .file-list .file-item .igd-file-thumbnail.has-thumbnail{-o-object-fit:cover;object-fit:cover}.igd-body .file-list .file-item .file-item-footer{display:flex;align-items:center;border-top:1px solid #e5e5e5;z-index:1;background:#fff;line-height:1;height:40px}.igd-body .file-list .file-item .file-item-footer .file-icon-wrap{width:30px;height:30px;display:flex;align-items:center;justify-content:center;margin-right:3px;margin-left:7px}.igd-body .file-list .file-item .file-item-footer .file-icon-wrap .file-icon{width:20px;height:20px;-webkit-user-drag:none}.igd-body .file-list .file-item .file-item-footer .file-icon-wrap .shortcut-icon{position:absolute;left:15px;bottom:8px;border:1px solid #ddd;border-radius:50%}.igd-body .file-list .file-item .file-item-footer .file-item-name{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:.875rem;font-weight:300;margin-right:auto;flex:1;text-align:left}.igd-body .file-list .file-item .file-item-footer .file-item-size{font-size:.75rem;font-weight:400;margin:0 5px;color:#999}.igd-body .file-list .file-item .file-item-footer .file-item-options{margin-left:auto;cursor:pointer;color:#565656;margin-right:7px}.igd-body .file-list .file-item .file-item-footer .file-item-options i{transform:rotate(90deg);font-size:18px;width:18px;height:18px}.igd-body .file-list .file-item .file-item-footer .file-item-options:hover{color:var(--color-primary)}.igd-body .file-list .file-item.active{border:1px solid var(--color-primary-lighter-alt);transform:scale(1.03)}.igd-body .file-list .file-item.active .file-item-footer{background:var(--color-primary-light-alt);color:#fff}.igd-body .file-list .file-item.active .file-item-footer:not(:has(.file-item-checkbox)) .file-icon{background:#fff;border-radius:3px;box-sizing:content-box!important;padding:2px 5px}.igd-body .file-list .file-item.active .file-item-footer:has(.file-item-checkbox) .file-icon,.igd-body .file-list .file-item.active .file-item-footer:has(.file-item-checkbox) .shortcut-icon{display:none}.igd-body .file-list .file-item.active .file-item-footer .file-item-size{color:inherit}.igd-body .file-list .file-item.active .file-item-footer .file-item-options{color:inherit}.igd-body .file-list .file-item.active .file-item-footer .file-item-checkbox{display:flex;padding:0;border:1px solid #fff}.igd-body .file-list .file-item:hover{transform:scale(1.03)}.igd-body .file-list .file-item:hover .file-item-footer .file-icon-wrap:has(.file-item-checkbox) .file-icon,.igd-body .file-list .file-item:hover .file-item-footer .file-icon-wrap:has(.file-item-checkbox) .shortcut-icon{display:none}.igd-body .file-list .file-item:hover .file-item-footer .file-icon-wrap .file-item-checkbox{display:flex}.igd-body .file-list .file-item:hover .file-item-date{color:#fff}.igd-body .file-list .file-item.folder-item{height:50px;justify-content:center;position:relative;order:1}.igd-body .file-list .file-item.folder-item .file-item-footer{border-top:0;height:100%}.igd-body .file-list .file-item:not(.folder-item){order:3}@media (max-width:768px){.igd-body .file-list .file-item .file-item-footer .file-icon-wrap{margin-right:5px}.igd-body .file-list .file-item .file-item-footer .file-icon-wrap:has(.file-item-checkbox) .file-icon,.igd-body .file-list .file-item .file-item-footer .file-icon-wrap:has(.file-item-checkbox) .shortcut-icon{display:none}.igd-body .file-list .file-item .file-item-footer .file-icon-wrap .file-item-checkbox{display:flex}}.igd-body .file-list .folder-file-divider{width:100%;order:2}.igd-body .file-list.list-view{flex-flow:column;align-items:center}.igd-body .file-list.list-view .go-prev{padding:12px 10px!important}.igd-body .file-list.list-view .list-view-header{display:flex;align-items:center;width:100%;font-size:1rem;position:sticky;top:0;margin-top:10px;margin-bottom:15px;z-index:1;line-height:1}.igd-body .file-list.list-view .list-view-header .col-name{width:50%;padding-left:50px}.igd-body .file-list.list-view .list-view-header .col-size{width:20%;text-align:center}.igd-body .file-list.list-view .list-view-header .col-modified{width:25%;text-align:center}.igd-body .file-list.list-view .list-view-header:not(:has(.col-modified)) .col-name,.igd-body .file-list.list-view .list-view-header:not(:has(.col-size)) .col-name{width:70%}.igd-body .file-list.list-view .list-view-header:not(:has(.col-size)):not(:has(.col-modified)) .col-name{width:90%}.igd-body .file-list.list-view .file-item{width:100%!important;overflow:visible;margin:0;border-radius:0;padding:5px 10px;font-size:.875rem;flex-direction:row;align-items:center;justify-content:space-between;border:1px solid transparent;border-bottom-color:#eee;box-shadow:none;aspect-ratio:auto;background:#fff}.igd-body .file-list.list-view .file-item .file-item-date{width:20%;font-size:.75rem;font-weight:400;margin:0 5px;color:#999;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}.igd-body .file-list.list-view .file-item.active{transform:none;background:var(--color-primary-lighter-alt);color:#fff}.igd-body .file-list.list-view .file-item.active .file-item-date{color:inherit}.igd-body .file-list.list-view .file-item:hover{transform:none;background:var(--color-primary-lighter-alt);color:#fff}.igd-body .file-list.list-view .file-item:hover .file-item-footer .file-item-options{color:inherit}.igd-body .file-list.list-view .file-item:hover .file-item-size{color:inherit}.igd-body .file-list.list-view .file-item:hover .file-item-date{color:inherit}.igd-body .file-list.list-view .file-item.folder-item{height:45px}.igd-body .file-list.list-view .file-item .file-item-footer{border:0;width:70%;background:0 0;height:33px}.igd-body .file-list.list-view .file-item .file-item-footer .file-item-name{width:70%}.igd-body .file-list.list-view .file-item .file-item-footer .file-item-size{width:30%;text-align:center}.igd-body .file-list.list-view .file-item .file-item-footer .file-item-options{position:absolute;right:0}.igd-body .file-list.list-view .file-item .file-item-footer .file-icon-wrap{margin-left:0}.igd-body .file-list.list-view .file-item .file-item-footer:not(:has(.file-item-size)) .file-item-name{width:100%}.igd-body .file-list.list-view .file-item:not(:has(.file-item-date)) .file-item-footer{width:90%}.igd-body .file-list.list-view .file-item:last-child{border-bottom:0}.igd-body .file-list.list-view .root-item{padding:15px 10px;font-size:1rem;justify-content:flex-start}@media (max-width:767px){.igd-body .file-list.list-view .list-view-header .col-name{width:65%}.igd-body .file-list.list-view .list-view-header .col-modified{display:none}.igd-body .file-list.list-view .file-item .file-item-footer{width:90%}.igd-body .file-list.list-view .file-item .file-item-date{display:none}}.igd-body .file-list.empty .list-view-header{display:none}.igd-body .file-list.empty+.igd-file-uploader{margin:10px 7px}.igd-body .file-list.igd-item-col-1 .file-item{width:100%}.igd-body .file-list.igd-item-col-1:not(.list-view) .file-item{margin:4px}.igd-body .file-list.igd-item-col-2 .file-item{width:calc(50% - 14px)}.igd-body .file-list.igd-item-col-3 .file-item{width:calc(33.33% - 14px)}.igd-body .file-list.igd-item-col-3 .file-item .file-item-footer .file-item-size{display:none}.igd-body .file-list.igd-item-col-4 .file-item{width:calc(25% - 14px)}.igd-body .file-list.igd-item-col-5 .file-item{width:calc(20% - 14px)}.igd-body .file-list.igd-item-col-6 .file-item{width:calc(16.66% - 14px)}.igd-body .file-list.igd-item-col-7 .file-item{width:calc(14.28% - 14px)}.igd-body .file-list.igd-item-col-8 .file-item{width:calc(12.5% - 14px)}.igd-body .search-result-info{font-size:1rem;margin:10px 0 15px 5px;display:flex;align-items:center}.igd-body .search-result-info .clear-button{margin-left:10px}.igd-body .loading-wrap{display:flex;justify-content:center;height:100%;width:100%;position:absolute;top:0;left:0;z-index:1}.igd-body .loading-wrap img{width:150px;height:150px;margin-top:2rem}.igd-body.loading{min-height:15rem}.igd-body.loading:not(.lazy-loading) .file-list,.igd-body.loading:not(.lazy-loading) .igd-gallery-images{opacity:.3}.igd-body.loading:not(.lazy-loading) .file-list .file-item,.igd-body.loading:not(.lazy-loading) .igd-gallery-images .file-item{transform:none;transition:none}.igd-body.lazy-loading .loading-wrap{position:unset}.igd-body.lazy-loading .loading-wrap img{margin-top:-1rem}.igd-details{display:flex;flex-flow:column;padding:20px 15px}.igd-details-wrap{width:250px;position:sticky;border-left:1px solid #e5e5e5;background:#fff}.igd-details .close-details{align-self:flex-end;cursor:pointer;font-size:1.25rem;opacity:.5;margin:-5px 0 5px 0}.igd-details .close-details:hover{opacity:1}.igd-details .details-item{display:flex;align-items:center;margin-bottom:15px;flex-wrap:wrap}.igd-details .details-item img{width:20px;height:20px;margin-right:10px}.igd-details .details-item-label{font-size:.875rem;font-weight:500;color:#444;width:80px;display:flex;align-items:center;justify-content:space-between}.igd-details .details-item-label:after{content:":";margin-right:10px}.igd-details .details-item.name{font-weight:500;font-size:1rem;margin-bottom:20px;word-break:break-all;flex-wrap:nowrap}.igd-details .details-item-value{font-size:.875rem;color:#555;word-break:break-all;max-width:100%}.igd-details .details-item.field-location{flex-direction:column;align-items:flex-start}.igd-details .details-item.field-location .details-item-value{margin-top:7px}.igd-details .details-item.field-location .location-wrap{display:flex;align-items:center;border:1px solid #ddd;border-radius:5px;padding:5px;cursor:pointer}.igd-details .details-item.field-location .location-wrap img{margin-right:5px}.igd-details .details-item.field-location .location-wrap span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-details .details-item.field-location .location-wrap:hover{background:#f5f5f5}.igd-details .details-item.field-description{display:flex;align-items:flex-start;flex-wrap:wrap;justify-content:space-between}.igd-details .details-item.field-description .details-item-label{margin-bottom:5px}.igd-details .details-item.field-description .description-placeholder,.igd-details .details-item.field-description .details-item-value{width:100%;color:#555}.igd-details .details-item.field-description .dashicons{cursor:pointer;padding:0 5px;box-sizing:content-box;margin-top:5px}.igd-details .details-item.field-description form,.igd-details .details-item.field-description textarea{width:100%}.igd-details .details-placeholder{font-size:1rem}@media (max-width:767px){.igd-details{max-width:80%;height:100%;margin-left:auto;background:#fff}.igd-details-wrap{width:100%;max-width:100%;position:absolute;z-index:2;background:rgba(0,0,0,.5);height:100%}}.igd-context-menu{z-index:99999999;background-color:#fff;border-radius:4px;list-style:none;font-size:14px;font-family:sans-serif;font-weight:400;line-height:1.5;color:#333;cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;box-shadow:0 0 10px rgba(0,0,0,.2)}.igd-context-menu,.igd-context-menu *{box-sizing:border-box}.igd-context-menu .context-menu-item{display:flex;align-items:center;padding:10px 15px;cursor:pointer;transition:background-color .2s ease;width:100%;position:relative}.igd-context-menu .context-menu-item.details,.igd-context-menu .context-menu-item.import{border-bottom:1px solid #eee}.igd-context-menu .context-menu-item.delete,.igd-context-menu .context-menu-item.download{border-top:1px solid #eee}.igd-context-menu .context-menu-item.disabled{color:#ccc}.igd-context-menu .context-menu-item.upload{border-bottom:1px solid #ddd}.igd-context-menu .context-menu-item.delete{border-bottom:1px solid #ddd}.igd-context-menu .context-menu-item.view{border-top:1px solid #ddd}.igd-context-menu .context-menu-item i{margin-right:10px}.igd-context-menu .context-menu-item:hover{background-color:#f5f5f5}.igd-context-menu .context-menu-item:hover .pro-badge{transform:scale(1.1)}.igd-context-menu .context-menu-item .pro-badge{position:absolute;right:0;background:#fdb837;color:#fff;padding:5px;border-radius:4px;font-size:11px;font-weight:400;display:flex;align-items:center;justify-content:center;line-height:1;box-shadow:0 0 5px rgba(0,0,0,.1);transition:transform .2s ease}.igd-context-menu .context-menu-item .pro-badge i{margin-right:2px;height:auto;width:auto;font-size:15px}.share-modal *{box-sizing:border-box}.share-modal .swal2-close:focus{outline:0;background:0 0;color:#f08080;box-shadow:none}.share-modal .share-link{margin-bottom:1rem}.share-modal .share-link input,.share-modal .share-link textarea{width:-webkit-fill-available;border:1px solid #ddd;border-radius:4px;padding:0 10px;font-size:14px;font-family:sans-serif;font-weight:400;line-height:1.5;color:#333;cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;text-align:center;word-break:break-all}.share-modal .share-link input{height:40px}.share-modal .share-link textarea{height:100px}.share-modal.embed .embed-code{display:flex}.share-modal.embed .share-links{display:none}.share-modal .share-links{display:flex;justify-content:center;flex-wrap:wrap}.share-modal .share-links .share-item{display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;color:#333;text-decoration:none;margin:0 10px 10px 0}.share-modal .share-links .share-item i{font-size:22px;width:auto;height:auto;border:1px solid #ccc;border-radius:50%;padding:10px;margin:10px}.share-modal .share-links .share-item span{font-size:.875rem}.share-modal .share-links .share-item.link i{background:#fff;border:1px solid #ccc;color:#333}.share-modal .share-links .share-item.link span{color:#333}.share-modal .share-links .share-item.link:hover i{background:#e6e6e6}.share-modal .share-links .share-item.embed i{background:#333;border:1px solid #333;color:#fff}.share-modal .share-links .share-item.embed:hover i{background:#1a1a1a}.share-modal .share-links .share-item.facebook i{background-color:#3b5998;color:#fff}.share-modal .share-links .share-item.facebook span{color:#3b5998}.share-modal .share-links .share-item.facebook:hover i{background-color:#4c70ba}.share-modal .share-links .share-item.twitter i{background-color:#1da1f2;color:#fff}.share-modal .share-links .share-item.twitter span{color:#1da1f2}.share-modal .share-links .share-item.twitter:hover i{background-color:#4db5f5}.share-modal .share-links .share-item.whatsapp i{background-color:#25d366;color:#fff}.share-modal .share-links .share-item.whatsapp span{color:#25d366}.share-modal .share-links .share-item.whatsapp:hover i{background-color:#4be083}.share-modal .share-links .share-item.email i{background-color:#dd4f42;color:#fff}.share-modal .share-links .share-item.email span{color:#dd4f42}.share-modal .share-links .share-item.email:hover i{background-color:#e5776d}.move-folders{display:flex;flex-direction:column;align-items:flex-start;max-height:300px;overflow-y:auto;border:1px solid #ddd;border-radius:4px;padding:10px}.move-folders-wrap button{margin:20px auto 0;padding:10px 20px}.move-folders-wrap button .igd-spinner{margin-right:10px}.move-folders,.move-folders *{box-sizing:border-box}.move-folders::-webkit-scrollbar{width:5px}.move-folders::-webkit-scrollbar-track{background:#f1f1f1}.move-folders::-webkit-scrollbar-thumb{background:#999;border-radius:5px}.move-folders .move-folder{display:flex;align-items:center;justify-content:flex-start;text-align:left;width:100%;cursor:pointer;padding:7px 0;border-radius:3px}.move-folders .move-folder>.igd-spinner{margin-left:10px}.move-folders .move-folder-wrap{width:100%;padding-left:20px;text-align:left}.move-folders .move-folder-wrap.empty{margin:10px 0;padding-left:30px;display:flex;align-items:center;color:#c73e1d;font-size:.875rem}.move-folders .move-folder-wrap.empty i{margin-right:5px}.move-folders .move-folder i{margin-right:10px}.move-folders .move-folder img{width:22px;height:22px;margin-right:10px}.move-folders .move-folder .file-item-checkbox .box{border-color:#999}.move-folders .move-folder span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.move-folders .move-folder:hover{background-color:#f5f5f5}.move-folders .move-folder:hover:has(.file-item-checkbox) img{display:none}.move-folders .move-folder:hover:has(.file-item-checkbox) .file-item-checkbox{display:flex;padding:0;border:1px solid #fff;margin-right:10px}.move-folders .move-folder.active{background-color:var(--color-primary-lighter)}.move-folders .move-folder.active img{display:none}.move-folders .move-folder.active .file-item-checkbox{display:flex;padding:0;border:1px solid #fff;margin-right:10px}.igd-download-popup{z-index:999999!important}.igd-download-wrap #igd-download-status{font-size:1.3rem;font-weight:600;margin:15px auto 5px}.igd-download-wrap #igd-hidden-download{display:none}.igd-copy-swal,.igd-move-swal{z-index:99999}.react-contexify{position:fixed;opacity:0;-webkit-user-select:none;-moz-user-select:none;user-select:none;background-color:#fff;box-sizing:border-box;box-shadow:0 10px 30px -5px rgba(0,0,0,.3);border-radius:6px;min-width:200px}.context-submenu{width:100%}.react-contexify__submenu--is-open,.react-contexify__submenu--is-open>.react-contexify__item__content{color:#fff;background-color:#4393e6}.react-contexify__submenu--is-open>.react-contexify__submenu{pointer-events:initial;opacity:1}.react-contexify .react-contexify__submenu{position:absolute;top:-6px;pointer-events:none;transition:opacity 275ms}.react-contexify__submenu-arrow{margin-left:auto;font-size:12px}.react-contexify__submenu-arrow i{margin-right:0!important}.react-contexify__separator{width:100%;height:1px;cursor:default;margin:4px 0;background-color:rgba(0,0,0,.2)}.react-contexify__will-leave--disabled{pointer-events:none}.react-contexify__item{cursor:pointer;position:relative}.react-contexify__item:focus{outline:0}.react-contexify__item:not(.react-contexify__item--disabled):hover>.react-contexify__submenu{pointer-events:initial;opacity:1}.react-contexify__item--disabled{cursor:default;opacity:.5}.react-contexify__item__content{display:flex;align-items:center;white-space:nowrap;color:#333;position:relative;width:100%}.react-contexify__theme--dark{background-color:rgba(40,40,40,.98)}.react-contexify__theme--dark .react-contexify__submenu{background-color:rgba(40,40,40,.98)}.react-contexify__theme--dark .react-contexify__separator{background-color:#eee}.react-contexify__theme--dark .react-contexify__item__content{color:#fff}.react-contexify__theme--light .react-contexify__separator{background-color:#eee}.react-contexify__theme--light .react-contexify__submenu--is-open,.react-contexify__theme--light .react-contexify__submenu--is-open>.react-contexify__item__content{color:#4393e6;background-color:#e0eefd}.react-contexify__theme--light .react-contexify__item:not(.react-contexify__item--disabled):focus>.react-contexify__item__content,.react-contexify__theme--light .react-contexify__item:not(.react-contexify__item--disabled):hover>.react-contexify__item__content{color:#4393e6;background-color:#e0eefd}.react-contexify__theme--light .react-contexify__item__content{color:#666}@keyframes react-contexify__scaleIn{from{opacity:0;transform:scale3d(.3,.3,.3)}to{opacity:1}}@keyframes react-contexify__scaleOut{from{opacity:1}to{opacity:0;transform:scale3d(.3,.3,.3)}}.react-contexify__will-enter--scale{transform-origin:top left;animation:react-contexify__scaleIn .3s}.react-contexify__will-leave--scale{transform-origin:top left;animation:react-contexify__scaleOut .3s}@keyframes react-contexify__fadeIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes react-contexify__fadeOut{from{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(10px)}}.react-contexify__will-enter--fade{animation:react-contexify__fadeIn .3s ease}.react-contexify__will-leave--fade{animation:react-contexify__fadeOut .3s ease}@keyframes react-contexify__flipInX{from{transform:perspective(800px) rotate3d(1,0,0,45deg)}to{transform:perspective(800px)}}@keyframes react-contexify__flipOutX{from{transform:perspective(800px)}to{transform:perspective(800px) rotate3d(1,0,0,45deg);opacity:0}}.react-contexify__will-enter--flip{backface-visibility:visible!important;transform-origin:top center;animation:react-contexify__flipInX .3s}.react-contexify__will-leave--flip{transform-origin:top center;animation:react-contexify__flipOutX .3s;backface-visibility:visible!important}@keyframes swing-in-top-fwd{0%{transform:rotateX(-100deg);transform-origin:top;opacity:0}100%{transform:rotateX(0);transform-origin:top;opacity:1}}@keyframes react-contexify__slideIn{from{opacity:0;transform:scale3d(1,.3,1)}to{opacity:1}}@keyframes react-contexify__slideOut{from{opacity:1}to{opacity:0;transform:scale3d(1,.3,1)}}.react-contexify__will-enter--slide{transform-origin:top center;animation:react-contexify__slideIn .3s}.react-contexify__will-leave--slide{transform-origin:top center;animation:react-contexify__slideOut .3s}.igd-shortcode-gallery .igd-file-browser-header .photo-proofing-btn .selection-count{margin-left:3px}.igd-module-gallery{overflow:hidden}.igd-module-gallery .item-selection{position:absolute;z-index:9;top:5px;left:5px;cursor:pointer;display:none}.igd-module-gallery .item-selection circle{display:none}.igd-module-gallery .item-selection:hover svg{fill:#fff}.igd-module-gallery .file-list{overflow:hidden}.igd-module-gallery .file-list .file-item{position:relative;border-radius:0}.igd-module-gallery .file-list .file-item .igd-gallery-folder-images{transition:all .3s ease-in-out}.igd-module-gallery .file-list .file-item:hover{transform:none}.igd-module-gallery .file-list .file-item:hover .item-selection{display:block}.igd-module-gallery .file-list .file-item:hover .igd-gallery-folder-images{transition:all .3s ease-in-out;transform:scale(1.07);box-shadow:0 0 0 1px #ddd}.igd-module-gallery .file-list .file-item.active{transform:none}.igd-module-gallery .file-list .file-item.active .item-selection{display:block}.igd-module-gallery .file-list .file-item.active .item-selection svg{fill:#4285f4}.igd-module-gallery .file-list .file-item.active .igd-gallery-folder-images{transition:all .3s ease-in-out;transform:scale(1.07);box-shadow:0 0 0 1px #ddd}.igd-module-gallery .file-list .file-item .file-item-footer{font-size:1rem}.igd-module-gallery .file-list .file-item:not(.folder-item){max-width:100%}.igd-module-gallery .file-list .file-item:not(.folder-item) .file-item-footer{background:rgba(0,0,0,.5)!important;color:#fff!important;padding:15px 10px!important;position:absolute;bottom:0;left:0;width:100%;justify-content:center;border:none!important}.igd-module-gallery .file-list .file-item:not(.folder-item) .file-item-footer i{margin-right:5px}.igd-module-gallery .file-list .file-item:not(.folder-item) .file-item-footer img{background:rgba(255,255,255,.9);padding:0 2px;border-radius:3px;box-sizing:content-box}.igd-module-gallery .file-list .file-item:not(.folder-item) .file-item-footer span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-module-gallery .file-list .file-item:last-child{margin-right:auto!important}.igd-module-gallery .igd-gallery-folder-images{position:relative;width:100%;height:100%;overflow:hidden;display:flex;align-items:center;justify-content:center}.igd-module-gallery .igd-gallery-folder-images img{position:absolute;-webkit-user-drag:none;opacity:0;pointer-events:none;animation-name:image-fade-out;animation-duration:1.5s}.igd-module-gallery .igd-gallery-folder-images img.active{animation-name:image-fade;animation-duration:1.5s;opacity:1}.igd-module-gallery .igd-gallery-folder-images img:not([src*=drive-thirdparty]){width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.igd-module-gallery .igd-gallery-folder-images i{height:auto;width:auto;font-size:3.5rem;color:#555}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item{overflow:hidden;position:relative;cursor:pointer}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item img{transition:all .3s ease-in-out;-o-object-fit:cover;object-fit:cover;width:100%;height:100%}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.5);transition:all .3s ease-in-out;color:#fff;display:flex;align-items:center;justify-content:center;flex-direction:column;opacity:0;pointer-events:none;text-align:center;padding:15px}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item-overlay .overlay-title{font-weight:600;margin-bottom:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item-overlay .overlay-size{font-size:13px}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item:hover .item-selection{display:block}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item:hover .igd-gallery-item-overlay{opacity:1;pointer-events:all}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item:hover img{box-shadow:0 0 0 1px #ddd;transition:all .3s ease-in-out;transform:scale(1.07)}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item.active .item-selection{display:block}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item.active .item-selection svg{fill:#4285f4}.igd-module-gallery.gallery-view-rounded .file-list .file-item{border-radius:5px}.igd-module-gallery.gallery-view-rounded .react-photo-gallery--gallery .igd-gallery-item{border-radius:7px}.igd-module-gallery.gallery-layout-grid .file-list .file-item{width:var(--column-width)}.igd-module-gallery.gallery-layout-grid .file-list .file-item:not(.folder-item){aspect-ratio:var(--aspect-ratio)}.igd-module-gallery.gallery-layout-grid .react-photo-gallery--gallery .igd-gallery-item{width:var(--column-width);aspect-ratio:var(--aspect-ratio)}.igd-module-gallery.gallery-layout-masonry .file-list .file-item{width:var(--column-width)}.igd-module-gallery.gallery-layout-masonry .file-list .file-item:not(.folder-item){aspect-ratio:var(--aspect-ratio)}@keyframes image-fade{from{opacity:.4}to{opacity:1}}@keyframes image-fade-out{from{opacity:1}to{opacity:0}}.igd-module-uploader,.igd-module-uploader *{box-sizing:border-box}.igd-module-uploader .dashicons-cloud-upload{width:auto;height:auto}.igd-module-uploader.igd-form-uploader{margin-top:1rem!important}.igd-module-uploader .upload-confirmation{display:none!important;margin:20px 0;text-align:center;flex-direction:column;align-items:center}.igd-module-uploader .upload-confirmation h3{color:var(--color-primary)}.igd-module-uploader.show-confirmation{border-style:solid!important}.igd-module-uploader.show-confirmation .upload-confirmation{display:flex!important}.igd-module-uploader.show-confirmation .igd-file-uploader-inner{display:none!important}.igd-file-uploader{display:flex;align-items:center;justify-content:center;flex-direction:column;border-radius:10px!important;border:1px dashed var(--color-primary-light)!important;padding:3px!important;max-width:500px;width:100%!important;background:#fff!important}.igd-file-uploader *{box-sizing:border-box}.igd-file-uploader:not(.igd-form-uploader){margin:auto}.igd-file-uploader.drag-active{border-color:var(--color-primary);border-width:2px;background-color:#bfdbfe;box-shadow:rgba(149,157,165,.2) 0 8px 24px}.igd-file-uploader.drag-active *{pointer-events:none}.igd-file-uploader-body{display:flex;align-items:center;flex-direction:column;width:100%!important;-webkit-user-select:none;-moz-user-select:none;user-select:none}.igd-file-uploader-body h3{font-size:1.2rem;font-weight:600;margin-bottom:10px!important}.igd-file-uploader-body .max-size-label{font-size:.875rem;margin-top:1rem;color:#999}.igd-file-uploader .igd-file-uploader-inner{display:flex!important;align-items:center!important;flex-direction:column!important;border-radius:7px!important;padding:1rem!important;background-color:var(--color-primary-lighter)!important;justify-content:center;width:100%!important;border:1px dashed #ddd!important}.igd-file-uploader .igd-file-uploader-inner p{font-weight:400;margin:5px 0!important;color:#555;line-height:1}.igd-file-uploader .igd-file-uploader-inner .dashicons-cloud-upload{font-size:4rem;height:auto;width:auto;margin-bottom:1rem;line-height:1;color:#555}.igd-file-uploader .igd-file-uploader-inner .igd-file-uploader-buttons{display:flex}.igd-file-uploader .igd-file-uploader-inner .igd-file-uploader-buttons button{display:flex;align-items:center;white-space:nowrap;cursor:pointer;border-radius:.25rem;border:none;padding:.375rem .5rem;margin:.5rem;background-color:var(--color-primary);box-shadow:rgba(149,157,165,.2) 0 8px 24px;color:#fff;transition:all .2s ease-in-out;font-weight:400}.igd-file-uploader .igd-file-uploader-inner .igd-file-uploader-buttons button span{margin-left:5px}.igd-file-uploader .igd-file-uploader-inner .igd-file-uploader-buttons button:hover{background-color:var(--color-primary-light-alt)}.igd-file-uploader .igd-file-uploader-inner .upload-info{display:flex;align-items:center;line-height:1}.igd-file-uploader .igd-file-uploader-inner .upload-info span{margin-right:5px}.igd-file-uploader .igd-file-uploader-inner .upload-info span:after{content:"|";margin-left:5px;color:#000}.igd-file-uploader .igd-file-uploader-inner .upload-info span:last-child{margin-right:0}.igd-file-uploader .igd-file-uploader-inner .upload-info span:last-child:after{content:"";margin-left:0}.igd-file-uploader .igd-file-uploader-inner .igd-file-uploader-add-more{margin-top:15px}.igd-file-uploader.required-error{border-color:red}.igd-file-uploader .file-list-wrapper{display:flex;flex-direction:column;z-index:50;margin-top:5px!important;width:100%!important;max-height:400px;max-width:100%;overflow:hidden!important;background-color:#fff!important;box-shadow:rgba(149,157,165,.2) 0 8px 24px!important;bottom:1rem;right:1rem}.igd-file-uploader .file-list-wrapper.fixed{position:fixed}.igd-file-uploader .file-list-wrapper .start-upload{margin:10px auto}@media (max-width:991px){.igd-file-uploader .file-list-wrapper{max-width:300px;max-height:300px;right:0}}.igd-file-uploader .file-list{display:flex;flex-flow:column;flex-wrap:nowrap!important;overflow-y:auto!important}.igd-file-uploader .file-list-header{display:flex;align-items:center;padding:10px 15px!important;background-color:var(--color-primary)!important;color:#fff;line-height:1;border-radius:5px;margin-bottom:5px}.igd-file-uploader .file-list-header .file-count{margin-right:5px}.igd-file-uploader .file-list-header i{cursor:pointer;height:26px!important;width:26px!important;border:1px solid!important;border-radius:50%!important;font-size:22px!important;display:flex;align-items:center;justify-content:center}.igd-file-uploader .file-list-item{display:flex;align-items:center;padding:8px 12px!important;border-bottom:1px solid #eaeaea!important;width:100%!important;opacity:.5}.igd-file-uploader .file-list-item img{width:22px!important;height:22px!important;margin-right:5px!important}.igd-file-uploader .file-list-item .file-info{display:flex;flex-wrap:wrap;overflow:hidden;width:100%;line-height:1}.igd-file-uploader .file-list-item .file-info .upload-item{display:flex;align-items:center;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;flex:1}.igd-file-uploader .file-list-item .file-info .upload-item-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;margin-right:4px}.igd-file-uploader .file-list-item .file-info .upload-item-size{font-size:.75rem;color:#999}.igd-file-uploader .file-list-item .file-info-percentage{margin-left:auto;text-align:right;font-size:.875rem;display:flex;align-items:center;width:-moz-max-content;width:max-content}.igd-file-uploader .file-list-item .file-info-percentage .igd-spinner{margin-top:0;margin-right:5px;border-radius:50%}.igd-file-uploader .file-list-item .file-info-progress{width:100%;height:4px;background-color:#ddd;border-radius:.25rem;margin-top:7px;overflow:hidden;position:relative;align-items:center;justify-content:space-between;display:none}.igd-file-uploader .file-list-item .file-info-progress-bar{width:var(--percentage);height:100%;background-color:var(--color-primary-light-alt);border-radius:.25rem;position:absolute;left:0;top:0;transition:width .5s ease-in-out}.igd-file-uploader .file-list-item .file-info-error{color:red;width:100%;font-size:.75rem;margin-top:3px}.igd-file-uploader .file-list-item .file-info .igd-spinner{width:20px;margin-left:7px}.igd-file-uploader .file-list-item .file-info .percentage{margin:0 7px}.igd-file-uploader .file-list-item .file-info i{margin-left:7px;height:22px!important;width:22px!important;font-size:16px;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer}.igd-file-uploader .file-list-item .file-info i:not(.dashicons-saved,.dashicons-no-alt){border:1px solid #ddd}.igd-file-uploader .file-list-item .file-info .dashicons-controls-play{padding-left:3px}.igd-file-uploader .file-list-item .file-info .remove-file{background:#ff9f10;color:#fff;margin-left:10px}.igd-file-uploader .file-list-item:hover{background-color:#e0f2fe}.igd-file-uploader .file-list-item.uploaded{opacity:1}.igd-file-uploader .file-list-item.uploaded .file-info .dashicons-saved{background:var(--color-primary);color:#fff}.igd-file-uploader .file-list-item.uploaded .file-info .remove-file{background:0 0;color:#ff9f10;border:1px solid #ff9f10;opacity:.6}.igd-file-uploader .file-list-item.uploaded .file-info .remove-file:hover{background:#ff9f10;color:#fff;opacity:1}.igd-file-uploader .file-list-item.uploaded .file-info-progress{display:flex}.igd-file-uploader .file-list-item.uploaded .file-info-progress-bar{width:100%}.igd-file-uploader .file-list-item.active{opacity:.8}.igd-file-uploader .file-list-item.active .file-info-progress{display:flex}.igd-file-uploader .file-list::-webkit-scrollbar{width:5px}.igd-file-uploader .file-list::-webkit-scrollbar-track{background:#f1f1f1}.igd-file-uploader .file-list::-webkit-scrollbar-thumb{background:#ccc}.igd-file-uploader .file-list::-webkit-scrollbar-thumb:hover{background:#bbb}.igd-file-uploader .cancel-upload{position:absolute;top:15px;right:15px;cursor:pointer;border-radius:5px;height:40px;width:40px;font-size:25px;display:flex;align-items:center;justify-content:center;color:rgba(255,0,0,.3)}.igd-file-uploader .cancel-upload:hover{color:rgba(255,0,0,.5)}.igd-file-browser .igd-file-uploader{position:fixed!important;right:15px;bottom:15px;z-index:2;box-shadow:0 0 10px rgba(0,0,0,.2)}.igd-file-browser .igd-file-uploader:has(.file-list-wrapper) .igd-file-uploader-inner .dashicons-cloud-upload{display:none}@media (max-width:767px){.igd-file-browser .igd-file-uploader{position:absolute!important;height:100%;right:unset;bottom:unset;width:calc(100% - 20px)!important;justify-content:flex-start;background:rgba(0,0,0,.5)!important}.igd-file-browser .igd-file-uploader .igd-file-uploader-inner{background:linear-gradient(var(--color-primary-lighter),var(--color-primary-lighter)),#fff!important}}.ff-el-is-error .igd-file-uploader,.frm_blank_field .igd-file-uploader,.gfield_error .igd-file-uploader,.mf-input-wrapper.has-error .igd-file-uploader,.nf-error .igd-file-uploader,.wpforms-has-error .igd-file-uploader{border-color:red!important}@keyframes ssc-loading{from{transform:translateX(-100%)}to{transform:translateX(100%)}}.ssc-circle,.ssc-head-line,.ssc-line,.ssc-square{position:relative;overflow:hidden}.ssc-circle:after,.ssc-head-line:after,.ssc-line:after,.ssc-square:after{content:"";animation:ssc-loading 1.3s infinite;height:100%;left:0;position:absolute;right:0;top:0;transform:translateX(-100%);z-index:1;background:linear-gradient(90deg,transparent,rgba(255,255,255,.3),transparent)}.ssc{cursor:progress;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ssc-card{display:block;width:100%;border-radius:5px;box-shadow:0 2px 4px 1px rgba(0,0,0,.17);background-color:#fff;margin-bottom:15px}.ssc-circle{display:block;background-color:rgba(0,0,0,.17);border-radius:50%;width:30px;height:30px}.ssc-hr{display:block;width:100%;background-color:rgba(0,0,0,.17);height:2px}.ssc-line{display:block;background-color:rgba(0,0,0,.17);border-radius:15px;height:12px}.ssc-line:last-child{margin-bottom:unset}.ssc-head-line{display:block;background-color:rgba(0,0,0,.17);border-radius:15px;width:100%;height:24px}.ssc-square{display:block;background-color:rgba(0,0,0,.17);width:100%;height:100px;border-radius:5px}.flex{display:flex}.flex-1{flex:1}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-between{justify-content:space-between}.w-full{width:100%}.mb-3{margin-bottom:.875rem}.mr-2{margin-right:.5rem}.w-16{width:4rem}.w-6{width:1.5rem}.h-6{height:1.5rem}.p-4{padding:1rem}body.google-drive_page_integrate-google-drive-private-folders.swal2-shown{overflow:auto!important;padding-right:0!important}.igd-private-folders,.igd-private-folders *{box-sizing:border-box}.igd-private-folders-header{display:flex;width:calc(100% + 20px);margin-left:-20px;background:#fff;padding:20px 20px;position:sticky;top:32px;border-bottom:1px solid #ddd;box-shadow:0 1px 5px rgba(0,0,0,.1);z-index:99;margin-bottom:30px}.igd-private-folders-header .header-title{display:flex;align-items:center;line-height:1;margin-right:auto}.igd-private-folders-header .header-title img{margin-right:15px}.igd-private-folders-header .header-title-text{display:flex;flex-direction:column}.igd-private-folders-header .header-title-text h3{font-size:1.2rem;margin:0 0 5px 0}.igd-private-folders-header .header-title-text span{margin-top:2px;color:#7a7a7a}.igd-private-folders-header .igd-btn{margin-left:10px}@media (max-width:767px){.igd-private-folders-header{position:relative;top:0}}.igd-private-folders .private-folders-list{background:#fff;padding:20px;border-radius:10px;margin:10px 15px 30px 0;position:relative;min-height:70vh}.igd-private-folders .private-folders-list-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.igd-private-folders .private-folders-list-header ul{display:flex;align-items:center}.igd-private-folders .private-folders-list-header ul li{margin-right:5px;margin-bottom:0;cursor:pointer;color:#2fb44b;font-weight:600;font-size:.875rem}.igd-private-folders .private-folders-list-header ul li:not(:last-child):after{content:"|";margin:0 5px;color:#555}.igd-private-folders .private-folders-list-header ul li span{text-transform:capitalize}.igd-private-folders .private-folders-list-header ul li.active{color:#555c66}.igd-private-folders .private-folders-list-header ul li:hover{color:#248c3a}.igd-private-folders .private-folders-list-header .users-search{display:flex;align-items:center}.igd-private-folders .private-folders-list-header .users-search input{height:40px;border:1px solid rgba(47,180,75,.5)}.igd-private-folders .private-folders-list-header .users-search button{margin-left:10px}.igd-private-folders .private-folders-list .swal2-container{position:absolute;width:100%;height:100%;z-index:9}.igd-private-folders .private-folders-list .column-username span{margin-left:10px}.igd-private-folders .private-folders-list .column-actions button{display:inline-flex;align-items:center;padding:7px 10px;line-height:1}.igd-private-folders .private-folders-list .column-actions button i{margin-right:5px}.igd-private-folders .private-folders-list .column-folders .folder-item{display:inline-flex;align-items:center;border:1px solid rgba(47,180,75,.5);width:-moz-max-content;width:max-content;padding:5px;margin:3px;border-radius:5px;color:#7a7a7a}.igd-private-folders .private-folders-list .column-folders .folder-item img{margin-right:5px}.igd-private-folders .private-folders-list .private-folders-table{border-radius:10px;overflow:hidden;border-color:#efefef}.igd-private-folders .private-folders-list .private-folders-table thead th{padding:15px;border-color:#efefef}.igd-private-folders .private-folders-list .private-folders-table tbody tr td{padding:10px;vertical-align:middle}@media (max-width:767px){.igd-private-folders .private-folders-list{margin-left:10px}.igd-private-folders .private-folders-list-header{flex-direction:column}.igd-private-folders .private-folders-list .private-folders-table-wrap{overflow-x:auto}}.igd-private-folders .igd-pro-modal-wrap{position:absolute;z-index:9;border-radius:5px}.igd-private-folders .igd-pro-modal-close{display:none}.igd-details .details-file-name{width:calc(100% - 20px)}.igd-player{line-height:1.5;display:flex;align-items:flex-start;flex-direction:column;height:100%;background-color:#fff}.igd-player.playlist-left,.igd-player.playlist-right{padding:10px}.igd-player.playlist-left .media-wrap,.igd-player.playlist-right .media-wrap{flex-direction:column;align-items:flex-start;border:none}.igd-player.playlist-left .media-wrap .igd-player-media-wrap,.igd-player.playlist-right .media-wrap .igd-player-media-wrap{margin-top:10px;margin-left:0}.igd-player.playlist-left .igd-player-playlist .playlist-item-wrap,.igd-player.playlist-right .igd-player-playlist .playlist-item-wrap{padding:5px 0}.igd-player.playlist-left.type-audio .media-wrap,.igd-player.playlist-right.type-audio .media-wrap{border:1px solid #eee}.igd-player.playlist-left{flex-wrap:wrap;flex-direction:row;-moz-column-gap:10px;column-gap:10px}.igd-player.playlist-left .igd-player-playlist{width:calc(40% - 10px);order:1;margin:0;padding-right:10px;border-right:1px solid #eee}.igd-player.playlist-left .playlist-search{margin:0}.igd-player.playlist-left .media-wrap{flex:1;order:2;position:sticky;top:10px;z-index:9}.igd-player.playlist-left:has(.igd-player-playlist) .media-wrap{max-width:60%}.igd-player.playlist-right{flex-wrap:wrap;flex-direction:row;-moz-column-gap:10px;column-gap:10px;padding-right:5px}.igd-player.playlist-right .igd-player-playlist{width:calc(40% - 10px);order:2;margin:0;padding-left:10px;border-left:1px solid #eee;padding-right:5px}.igd-player.playlist-right .playlist-search{margin:0}.igd-player.playlist-right .media-wrap{flex:1;order:1;position:sticky;top:10px;z-index:9}.igd-player.playlist-right:has(.igd-player-playlist) .media-wrap{max-width:60%}.igd-player.playlist-bottom .playlist-search{width:calc(100% - 20px);margin:10px auto}.igd-player .media-wrap{width:100%;display:flex;align-items:center}.igd-player .media-wrap .current-item{display:flex;align-items:center;overflow:hidden}.igd-player .media-wrap .current-item img{margin-right:10px;width:40px}.igd-player .media-wrap .current-item .item-caption{display:flex;flex-direction:column;overflow:hidden}.igd-player .media-wrap .current-item .item-caption .item-title{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-player .media-wrap .current-item .item-caption .item-description{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-player .media-wrap .igd-player-media-wrap{position:relative}.igd-player .media-wrap iframe{aspect-ratio:16/9}.igd-player.type-video .igd-player-media-wrap{width:100%;height:0;overflow:hidden;padding-bottom:56.25%}.igd-player.type-video .igd-player-media-wrap .igd-player-media-video,.igd-player.type-video .igd-player-media-wrap .plyr,.igd-player.type-video .igd-player-media-wrap video{position:absolute;top:0;left:0;width:100%!important;height:100%!important}.igd-player.type-audio .media-wrap{padding:15px;border-bottom:1px solid #ddd;background:#f5f5f5}.igd-player.type-audio .igd-player-media-wrap{margin-left:auto}.igd-player.type-audio .igd-player-media-wrap .plyr__controls{padding:0;background:0 0}.igd-player .igd-player-playlist{width:100%;height:100%;overflow-y:auto}.igd-player .igd-player-playlist .playlist-item{position:relative;cursor:pointer;display:flex;align-items:center;color:#333;padding:3px}.igd-player .igd-player-playlist .playlist-item.active{color:var(--color-primary);font-weight:700}.igd-player .igd-player-playlist .playlist-item.active .dashicons{border-color:var(--color-primary);color:var(--color-primary)}.igd-player .igd-player-playlist .playlist-item:not(:has(img)){padding:5px}.igd-player .igd-player-playlist .playlist-item-wrap{border-bottom:1px solid #eee;padding:5px 10px}.igd-player .igd-player-playlist .playlist-item-wrap:last-child{border-bottom:0}.igd-player .igd-player-playlist .playlist-item-wrap .sub-item{margin-left:30px}.igd-player .igd-player-playlist .playlist-item-wrap:hover{background-color:#f5f5f5}.igd-player .igd-player-playlist .playlist-item .item-index{margin-right:7px;white-space:nowrap}.igd-player .igd-player-playlist .playlist-item .igd-spinner{margin-left:0;width:18px;height:18px;margin-right:5px}.igd-player .igd-player-playlist .playlist-item img{width:30px;height:30px;-o-object-fit:cover;object-fit:cover;border-radius:3px;margin-right:5px}.igd-player .igd-player-playlist .playlist-item .item-name{margin-right:auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-player .igd-player-playlist .playlist-item .item-size{margin:0 10px;color:#777;white-space:nowrap;font-size:.75rem}.igd-player .igd-player-playlist .playlist-item .dashicons{font-size:25px;color:#555c66;height:auto;width:auto}.igd-player .igd-player-playlist .playlist-item .dashicons.dashicons-arrow-down,.igd-player .igd-player-playlist .playlist-item .dashicons.dashicons-arrow-right{margin-left:-5px;margin-right:5px}.igd-player .igd-player-playlist .playlist-item .dashicons:hover{color:#444;border-color:var(--color-primary)}.igd-player .igd-player-playlist .playlist-item:last-child{border-bottom:0}.igd-player .igd-player-playlist .search-result-info{display:flex;align-items:center;margin-bottom:7px;margin-top:7px}.igd-player .igd-player-playlist .search-result-info .clear-button{margin-left:7px;padding:7px 10px}.igd-player .igd-player-playlist::-webkit-scrollbar{width:5px;height:5px}.igd-player .igd-player-playlist::-webkit-scrollbar-thumb{background:#ddd;border-radius:10px}.igd-player .igd-player-playlist::-webkit-scrollbar-track{background:#eee;border-radius:10px}.igd-player .playlist-search{position:relative;display:flex;align-items:center;transition:width .3s linear;line-height:1;overflow:hidden;border:1px solid #ddd;border-radius:5px;width:100%;padding:0 15px;margin:10px 0}.igd-player .playlist-search .search-dismiss{cursor:pointer}.igd-player .playlist-search input{height:40px;padding:0 15px;font-size:14px;width:100%;border:none!important;box-shadow:none!important;border-radius:0!important;background:0 0}.igd-player .playlist-search input:focus{outline:0}.igd-player .playlist-search .search-submit{position:relative;z-index:2}.igd-player .playlist-search .search-submit .dashicons{font-family:dashicons}.igd-player .playlist-search:has(input:focus){box-shadow:rgba(0,0,0,.24) 0 3px 8px}.igd-player .playlist-search.active .input-wrap{right:-10px}.igd-player .playlist-search.active .search-submit svg{fill:#333}.igd-player video{display:inline-block;max-width:100%;min-height:100%}.igd-player audio{display:none;max-width:100%;width:100%}.igd-player .plyr__controls .plyr__controls__item.plyr__time{white-space:nowrap}.igd-player .plyr__control:focus{background:0 0;color:currentColor}.igd-player .plyr__volume input[type=range]{max-width:60px}.igd-player.size-sm.type-audio .media-wrap,.igd-player.size-xs.type-audio .media-wrap{flex-direction:column}.igd-player.size-sm.type-audio .media-wrap .current-item img,.igd-player.size-xs.type-audio .media-wrap .current-item img{width:30px}.igd-player.size-sm.type-audio .media-wrap .igd-player-media-wrap,.igd-player.size-xs.type-audio .media-wrap .igd-player-media-wrap{margin-top:15px;margin-left:0}.igd-player.size-sm .plyr__volume input[type=range],.igd-player.size-xs .plyr__volume input[type=range]{max-width:40px;min-width:40px}.igd-player.size-sm.playlist-left,.igd-player.size-sm.playlist-right,.igd-player.size-xs.playlist-left,.igd-player.size-xs.playlist-right{flex-direction:column}.igd-player.size-sm.playlist-left .igd-player-playlist,.igd-player.size-sm.playlist-left .media-wrap,.igd-player.size-sm.playlist-right .igd-player-playlist,.igd-player.size-sm.playlist-right .media-wrap,.igd-player.size-xs.playlist-left .igd-player-playlist,.igd-player.size-xs.playlist-left .media-wrap,.igd-player.size-xs.playlist-right .igd-player-playlist,.igd-player.size-xs.playlist-right .media-wrap{width:100%;max-width:100%!important}.igd-player.size-sm.playlist-left .media-wrap,.igd-player.size-sm.playlist-right .media-wrap,.igd-player.size-xs.playlist-left .media-wrap,.igd-player.size-xs.playlist-right .media-wrap{position:unset}.igd-player.size-sm.playlist-left .igd-player-playlist,.igd-player.size-sm.playlist-right .igd-player-playlist,.igd-player.size-xs.playlist-left .igd-player-playlist,.igd-player.size-xs.playlist-right .igd-player-playlist{order:999}.igd-lightbox{z-index:999999;position:fixed}.igd-lightbox .lg-backdrop{background:rgba(0,0,0,.9)!important}.igd-lightbox .lg-sub-html h4,.igd-lightbox .lg-sub-html p{color:inherit}.igd-lightbox:not(.gallery-lightbox) .lg-sub-html{background:#111!important;display:flex;align-items:center;padding:10px 15px;max-width:calc(100% - 100px)}.igd-lightbox .lg-outer .lg-thumb-item{height:60px}.igd-lightbox .item-name{display:flex;align-items:center;max-width:75%;overflow:hidden}.igd-lightbox .item-name img{margin-right:10px;width:24px}.igd-lightbox .item-name span{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.igd-lightbox.no-download .lg-download{display:none}.igd-lightbox .lg-outer[data-lg-slide-type=iframe] .lg-actual-size,.igd-lightbox .lg-outer[data-lg-slide-type=iframe] .lg-zoom-in,.igd-lightbox .lg-outer[data-lg-slide-type=iframe] .lg-zoom-out,.igd-lightbox .lg-outer[data-lg-slide-type=video] .lg-actual-size,.igd-lightbox .lg-outer[data-lg-slide-type=video] .lg-zoom-in,.igd-lightbox .lg-outer[data-lg-slide-type=video] .lg-zoom-out{display:none}.igd-lightbox .lg-outer[data-lg-slide-type=iframe] .igd-hidepopout{width:60px;height:55px;position:absolute;opacity:1;right:12px;top:0;z-index:10000000;background-color:#d1d1d1;cursor:default!important}.igd-lightbox .lg-item:has(video>source[type*="audio/"]) .lg-video-cont{margin-top:-60px;max-height:60px;max-width:500px}.igd-lightbox .lg-item:has(video>source[type*="audio/"]) .lg-video-cont .lg-video-poster{margin-top:-20px;max-width:100px!important;height:100px!important;max-height:none!important}@media (max-width:767px){.igd-lightbox .lg-item .lg-video-cont{max-width:90%!important}}.igd-select-files-modal .components-modal__header{border-bottom:1px solid #ddd;box-shadow:0 1px 5px rgba(0,0,0,.1)}.igd-select-files-modal .components-modal__header-heading{width:100%}.igd-select-files-modal .shortcode-module-header{display:flex;flex-direction:column;justify-content:center;align-items:center;margin:30px auto}.igd-select-files-modal .shortcode-module-header .module-title{font-size:1.2rem;margin-bottom:10px;font-weight:600}.igd-select-files-modal .shortcode-module .shortcode-types{display:flex;flex-wrap:wrap;justify-content:center}.igd-select-files-modal .shortcode-module .shortcode-types .shortcode-type{width:calc(20% - 20px);margin:10px;padding:2rem 1.5rem;border:1px solid #ddd;border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;max-width:250px;transition:background .3s ease}.igd-select-files-modal .shortcode-module .shortcode-types .shortcode-type i{height:auto;width:auto;border-radius:50%;padding:15px;border:1px solid #ddd}.igd-select-files-modal .shortcode-module .shortcode-types .shortcode-type span{font-size:1rem;margin-top:15px}.igd-select-files-modal .shortcode-module .shortcode-types .shortcode-type.active{background:var(--color-primary-light);border:1px solid var(--color-primary);color:#fff}.igd-select-files-modal .shortcode-module .shortcode-types .shortcode-type.active i{border:1px solid #fff}.igd-select-files-modal .shortcode-module .shortcode-types .shortcode-type:hover{background:var(--color-primary-light);border:1px solid var(--color-primary);color:#fff}.igd-select-files-modal .shortcode-module .shortcode-types .shortcode-type:hover i{border:1px solid #fff}.igd-select-files-modal .shortcode-module .settings-field{display:flex;flex-wrap:wrap;margin-bottom:10px;align-items:center;border:1px dashed #ddd;border-radius:5px;padding:12px 18px}.igd-select-files-modal .shortcode-module .settings-field-title{font-size:1.2rem;margin-bottom:20px;font-weight:600}.igd-select-files-modal .shortcode-module .settings-field-label{width:200px;font-weight:600;font-size:1rem;display:flex;justify-content:space-between}.igd-select-files-modal .shortcode-module .settings-field-label:after{content:":";margin-left:auto}.igd-select-files-modal .shortcode-module .settings-field-content{display:flex;flex-direction:column;align-items:flex-start;margin-left:20px;flex:1}.igd-select-files-modal .shortcode-module .settings-field-content .components-button i{margin-right:5px}.igd-select-files-modal .shortcode-module .settings-field-content .description{font-size:.8rem;margin-top:10px;text-align:left}.igd-select-files-modal .shortcode-module .settings-field.filter-field .filter-field-input{display:flex;flex-direction:column}.igd-select-files-modal .shortcode-module .settings-field.filter-field .filter-field-all{display:flex;align-items:center;justify-content:flex-start;margin-top:15px;flex-wrap:wrap}.igd-select-files-modal .shortcode-module .settings-field.filter-field .filter-field-all>div{display:flex;align-items:center}.igd-select-files-modal .shortcode-module .settings-field.filter-field .filter-field-all>div:first-child{margin-right:20px}.igd-select-files-modal .shortcode-module .settings-field.filter-field .filter-field-all-label{margin-right:10px;font-weight:500}.igd-select-files-modal .shortcode-module .settings-field.filter-field .filter-field-all .description{width:100%;text-align:left}.igd-select-files-modal .shortcode-module .settings-field.sort-field .sort-field-section{display:flex;flex-direction:column}.igd-select-files-modal .shortcode-module .settings-field.sort-field .sort-field-section:first-child{margin-right:35px;padding-right:15px;border-right:1px solid #ddd}.igd-select-files-modal .shortcode-module .settings-field.sort-field .sort-field-section-wrap{display:flex;margin:15px 30px}.igd-select-files-modal .shortcode-module .settings-field.sort-field .sort-field-section-label{margin-bottom:15px;font-weight:500;text-align:left}.igd-select-files-modal .shortcode-module .settings-field.sort-field .sort-field-section .sort-item{display:flex;align-items:center;margin-bottom:10px;cursor:pointer;position:relative}.igd-select-files-modal .shortcode-module .settings-field.sort-field .sort-field-section .sort-item i{display:none;position:absolute;left:-25px}.igd-select-files-modal .shortcode-module .settings-field.sort-field .sort-field-section .sort-item.active{color:var(--color-primary)}.igd-select-files-modal .shortcode-module .settings-field.sort-field .sort-field-section .sort-item.active i{display:block}.igd-select-files-modal .shortcode-module .settings-field.filter-users-field .filter-users-group{display:flex;flex-direction:column}.igd-select-files-modal .shortcode-module .settings-field.filter-users-field .filter-users{margin-top:15px;display:flex;flex-direction:column;border:1px dashed #ddd;padding:15px;border-radius:7px}.igd-select-files-modal .shortcode-module .settings-field.filter-users-field .filter-users-title{font-weight:500;font-size:1rem;margin-bottom:10px;text-align:left}.igd-select-files-modal .shortcode-module .settings-field.filter-users-field .filter-users-section{display:flex;align-items:center}.igd-select-files-modal .shortcode-module .settings-field.filter-users-field .filter-users-section:first-child{margin-right:20px}.igd-select-files-modal .shortcode-module .settings-field.filter-users-field .filter-users-section-label{margin-right:10px;font-weight:500}.igd-select-files-modal .shortcode-module .settings-field.filter-users-field .filter-users-section-wrap{display:flex;flex-wrap:wrap;margin-bottom:15px}.igd-select-files-modal .shortcode-module .settings-field.filter-users-field .filter-users-section-wrap .description{width:100%}.igd-select-files-modal .shortcode-module .settings-field input,.igd-select-files-modal .shortcode-module .settings-field select{height:40px;border-radius:5px;border:1px solid #ddd;font-size:.8rem;width:350px;max-width:100%}.igd-select-files-modal .shortcode-module .settings-field input:disabled,.igd-select-files-modal .shortcode-module .settings-field select:disabled{background:#f5f5f5;color:#aaa;cursor:not-allowed}.igd-select-files-modal .shortcode-module .settings-field .igd-select{width:400px}.igd-select-files-modal-header{display:flex;align-items:center;justify-content:space-between}.igd-select-files-modal-header .header-title{font-size:1.2rem;color:var(--color-primary);display:flex;align-items:center}.igd-select-files-modal-header .header-title i{margin-right:10px}.igd-select-files-modal-header button{padding:7px 8px}.igd-account-item{padding:1rem;display:flex;border:0 solid transparent;box-shadow:rgba(99,99,99,.2) 0 2px 8px 0;border-radius:.5rem;align-items:center;max-width:450px;margin-bottom:1rem;background:#fff}.igd-account-item img{width:50px;height:50px;margin-right:1rem;border-radius:50%}.igd-account-item-info{display:flex;flex-flow:column}.igd-account-item-info .account-name{font-size:1rem}.igd-account-item-info .account-email{color:#757575}.igd-account-item .igd-account-item-action{margin-left:auto}.igd-account-item .igd-account-item-action button{background-color:#ffe9d9;color:#f06500;border-color:transparent}.igd-account-item:hover button{background:#f96;color:#fff}.no-account-placeholder{display:flex;flex-flow:column;align-items:center;margin:10vh auto;padding:1.5rem 1rem;border-radius:.5rem;width:30rem;background:#fff;box-shadow:0 0 .5rem rgba(0,0,0,.1)}.no-account-placeholder>img{width:200px;margin-bottom:15px}.no-account-placeholder .placeholder-heading{font-size:1.2rem;margin-bottom:7px;font-weight:600}.no-account-placeholder button{margin-top:1.5rem;padding:7px 10px;background:#fff;color:#555;border-radius:3px;border:1px solid #ccc}.no-account-placeholder button img{width:24px;height:24px;margin-right:10px}.add-account-btn{padding:10px 15px;background:#fff;color:#555;border-radius:3px;border:1px solid #ccc}.add-account-btn img{width:24px;height:24px;margin-right:10px}.igd .igd-spinner{margin-top:0;border-radius:50%}.sortable-item{z-index:999999}.igd-select-sources-wrap .igd-browser-wrap{flex:1;margin-right:1rem}.igd-select-sources-wrap .igd-selected-list{width:24%;max-width:300px}.igd-select-sources-wrap.view-list .igd-browser-wrap{width:100%;margin-right:0}.igd-select-sources-wrap.view-list .igd-selected-list{width:100%;max-width:100%;margin-top:1rem}.igd-pagination{display:flex;padding:0}.igd-pagination li{justify-content:center!important;flex-wrap:wrap!important;list-style:none;position:relative;display:flex;align-items:center;padding:8px 16px;text-decoration:none!important;font-size:15px;margin-left:-1px;border:1px solid #dee2e6;margin-right:0;margin-top:0;cursor:pointer}.igd-pagination li.selected,.igd-pagination li:hover{background:var(--color-primary);color:#fff;border-color:var(--color-primary)}.igd-pagination li.disabled{background:#eee;cursor:not-allowed}.igd-pagination li:first-child{border-top-left-radius:3px;border-bottom-left-radius:3px}.igd-pagination li:last-child{border-top-right-radius:3px;border-bottom-right-radius:3px}.igd-pagination li svg{fill:currentColor}.igd-move-modal .components-modal__content{display:flex;flex-flow:column}.igd-file-item .igd-file-thumbnail{-webkit-user-drag:none}.template-tags{margin-top:10px;border-bottom:1px solid #eee;padding-bottom:8px;width:100%}.template-tags-title{width:100%;margin-bottom:7px;text-align:left;font-size:1rem;display:flex;align-items:center}.template-tags-title i{margin-right:7px;cursor:pointer}.template-tags-title span:nth-child(3){margin-left:7px}.template-tags-title+.template-tags-list{display:none}.template-tags-title.active i:before{content:"\f343"}.template-tags-title.active+.template-tags-list{display:flex}.template-tags-list{display:flex;flex-wrap:wrap}.template-tags-list .tag{color:#2fb44b;margin-right:10px;margin-bottom:7px;background:rgba(47,180,75,.1);padding:7px 10px;border-radius:5px;cursor:pointer;font-size:.87rem}.template-tags-list .tag:hover{background:rgba(47,180,75,.7);color:#fff}.template-tags-list .tag-break{width:100%;border-top:1px solid #eee;margin-top:5px;margin-bottom:11px}.template-tags-list .tag-break+.tag-break{display:none}.template-folder{padding:7px 10px;border-radius:5px;background:#eaeaea;margin-right:10px;font-size:.9rem;color:#555;display:flex;flex-wrap:wrap;align-items:center;width:-moz-max-content;width:max-content;line-height:1}.template-folder-account{margin-right:10px}.template-folder-item{background:#fff;padding:5px 7px;border-radius:3px;font-size:.8rem;display:flex;align-items:center;justify-content:center}.template-folder i,.template-folder img{margin-right:7px;width:20px}.template-folder-wrap{display:flex;align-items:center;width:100%}.template-folder-wrap button{font-size:.875rem;padding:7px;margin-left:10px}.template-folder-wrap button.btn-danger{background:#ff9f10;border-color:rgba(255,159,16,.5)}.template-folder-wrap button.btn-danger:hover{background:rgba(255,159,16,.8)}.template-folder-error{color:#ff9f10;font-size:.8rem;margin-top:10px;display:flex;align-items:center}.template-folder-error i{margin-right:5px}.template-folder .dashicons-no-alt{color:#ff9f10;cursor:pointer;margin-left:10px}body.google-drive_page_integrate-google-drive-settings{background:#f7f8fa}.igd-settings{display:flex;flex-wrap:wrap;margin-left:-20px;width:calc(100% + 20px)}@media (max-width:767px){.igd-settings{margin-left:-10px;width:calc(100% + 10px)}}.igd-settings *{box-sizing:border-box}.igd-settings .integrations-wrapper{margin-bottom:40px;background:#fff;padding:15px 20px;border-radius:10px}.igd-settings .integrations-wrapper .integrations-header{display:flex;flex-wrap:wrap;margin-bottom:60px;width:100%}.igd-settings .integrations-wrapper .integrations-header .igd-settings-body-title{margin-bottom:0}.igd-settings .integrations-wrapper .integrations-header p{font-size:1rem}.igd-settings .integrations-wrapper .integrations-header .integrations-actions{display:flex;align-items:center;-moz-column-gap:10px;column-gap:10px;margin-left:auto}.igd-settings .integrations-wrapper .integrations-header .integrations-actions button{height:40px}.igd-settings .integrations-wrapper .integrations{display:flex;flex-wrap:wrap;justify-content:space-between}.igd-settings .integrations-wrapper .integration-item{display:flex;flex-direction:column;align-items:center;justify-content:center;width:calc(25% - 30px);margin:15px 15px 60px 15px;text-align:center;border-radius:15px;padding:20px;position:relative;background:#fff;border:1px dashed rgba(47,180,75,.3);transition:all .3s ease;cursor:pointer;padding-top:60px;background:rgba(238,238,238,.3)}.igd-settings .integrations-wrapper .integration-item:last-child{margin-right:auto}.igd-settings .integrations-wrapper .integration-item-img{top:-50px;position:absolute;width:100px;height:auto;border-radius:50%;background:#fff;padding:5px;border:1px solid #ddd}.igd-settings .integrations-wrapper .integration-item-doc-link{position:absolute;top:10px;right:10px;text-decoration:none;color:#555;font-weight:400;display:flex;align-items:center;justify-content:center;line-height:1;transition:all .3s ease;border-radius:50%;background:#fff;border:1px solid #ddd;height:24px;width:24px}.igd-settings .integrations-wrapper .integration-item-doc-link i{height:auto;width:auto;font-size:22px}.igd-settings .integrations-wrapper .integration-item-doc-link:hover{transform:scale(1.2)}.igd-settings .integrations-wrapper .integration-item-title{font-size:14px;font-weight:600;text-transform:uppercase;color:#000;margin:10px 0}.igd-settings .integrations-wrapper .integration-item-description{font-size:.875rem;margin:10px 0;line-height:1.5}.igd-settings .integrations-wrapper .integration-item .toggle-label{color:#555;font-size:.75rem;font-weight:400;display:none}.igd-settings .integrations-wrapper .integration-item .toggle-label.active{color:#44b754}.igd-settings .integrations-wrapper .integration-item .toggle-label.inactive{color:#e74c3c}.igd-settings .integrations-wrapper .integration-item-toggle{margin:10px}.igd-settings .integrations-wrapper .integration-item-toggle-wrapper{display:flex;align-items:center}.igd-settings .integrations-wrapper .integration-item.active{border-style:solid;border-color:#2fb44b;background:rgba(47,180,75,.1)}.igd-settings .integrations-wrapper .integration-item.active:after{content:"Enabled";background:#44b754;position:absolute;top:10px;left:10px;text-align:center;color:#fff;font-size:12px;padding:5px 7px;border-radius:5px}.igd-settings .integrations-wrapper .integration-item .pro-badge{position:absolute;top:10px;left:10px;background:#ff9458;color:#fff;padding:5px 10px;border-radius:3px;font-size:12px;font-weight:400;display:flex;align-items:center;justify-content:center;line-height:1;box-shadow:0 0 5px rgba(0,0,0,.1);transition:all .3s ease}.igd-settings .integrations-wrapper .integration-item .pro-badge i{height:auto;width:auto;font-size:18px;margin-right:3px}.igd-settings .integrations-wrapper .integration-item .active-badge{position:absolute;top:-10px;right:-10px;background:#44b754;color:#fff;padding:5px 10px;border-radius:30px;font-size:12px;font-weight:400;display:flex;align-items:center;justify-content:center;line-height:1;box-shadow:0 0 5px rgba(0,0,0,.1);transition:all .3s ease}.igd-settings .integrations-wrapper .integration-item .active-badge i{height:auto;width:auto;font-size:18px;margin-right:3px}.igd-settings .integrations-wrapper .integration-item:hover .pro-badge{transform:scale(1.2)}.igd-settings .integrations-wrapper .integration-item.pro-item{border-color:#ff9458}@media (min-width:1200px) and (max-width:1600px){.igd-settings .integrations-wrapper .integration-item{width:calc(33.333% - 30px)}}@media (max-width:1200px){.igd-settings .integrations-wrapper .integration-item{width:calc(50% - 30px)}}@media (max-width:768px){.igd-settings .integrations-wrapper .integration-item{width:100%;margin:0}}.igd-settings-header{width:100%;display:flex;align-items:center;justify-content:space-between;padding:15px 20px;background:#fff;border-bottom:1px solid #e5e5e5;position:sticky;top:32px;z-index:9}.igd-settings-header-title{display:flex;align-items:center;font-size:1.5rem;font-weight:600;color:#000}.igd-settings-header-title img{margin-right:10px}.igd-settings-header-title i{margin-right:10px;background:var(--color-primary);color:#fff;padding:7px;border-radius:50%;height:auto;width:auto}.igd-settings-header-title i.dashicons-menu-alt3{display:none}.igd-settings-menu{width:250px;border:0 solid transparent;box-shadow:rgba(99,99,99,.2) 0 2px 8px 0;background:#fff;overflow:hidden;min-height:100vh}.igd-settings-menu-item{padding:8px 10px;margin:5px 0;cursor:pointer;transition:all .2s ease-in-out;display:flex;align-items:center;font-size:1rem}.igd-settings-menu-item img{margin-right:10px;width:32px}.igd-settings-menu-item:hover{background:#f5f5f5}.igd-settings-menu-item.active{background:rgba(47,180,75,.1);color:#2fb44b;border-right:3px solid #2fb44b;font-weight:500}@media (max-width:768px){.igd-settings-menu{width:100%;min-height:auto}.igd-settings-menu-item{padding:10px}}.igd-settings-body{flex:1;border:0 solid transparent;border-radius:.5rem;padding:20px 30px;display:flex;flex-flow:column}.igd-settings-body-title{font-size:1.2rem;font-weight:600;line-height:1;margin-top:0;margin-bottom:15px;text-align:left;display:flex;align-items:center;justify-content:space-between}@media (max-width:768px){.igd-settings-body{margin-top:20px;margin-left:0;padding:10px}}.igd-settings .settings-field{display:flex;align-items:center;flex-wrap:wrap;margin-bottom:20px;background:#fff;border-radius:10px;padding:20px 30px}.igd-settings .settings-field:last-child{border-bottom:none}.igd-settings .settings-field-label{width:200px;font-size:.9rem;font-weight:500;display:flex;justify-content:space-between;margin-right:30px;line-height:1.5;margin-top:0}.igd-settings .settings-field-label:after{content:":";margin-left:auto}.igd-settings .settings-field-content{flex:1;display:flex;flex-direction:column;width:100%}.igd-settings .settings-field-content input[type=email],.igd-settings .settings-field-content input[type=number],.igd-settings .settings-field-content input[type=text],.igd-settings .settings-field-content select{width:300px;height:45px!important;border-color:#ddd;border-radius:5px!important;max-width:100%}.igd-settings .settings-field-content input[type=email].folder-naming-template,.igd-settings .settings-field-content input[type=number].folder-naming-template,.igd-settings .settings-field-content input[type=text].folder-naming-template,.igd-settings .settings-field-content select.folder-naming-template{width:500px}.igd-settings .settings-field-content input[type=email]:focus,.igd-settings .settings-field-content input[type=number]:focus,.igd-settings .settings-field-content input[type=text]:focus,.igd-settings .settings-field-content select:focus{border-color:inherit;box-shadow:none}.igd-settings .settings-field-content .components-input-control__container{width:300px}.igd-settings .settings-field-content .components-input-control__backdrop{border-color:#ddd!important;border-radius:5px!important;height:45px}.igd-settings .settings-field-content .igd-color-palette{max-width:100%;position:relative;border:1px solid #e5e5e5;padding:11px;border-radius:10px;background:#fff}.igd-settings .settings-field-content .igd-color-palette legend{display:none}.igd-settings .settings-field-content .igd-color-palette .components-dropdown{width:-moz-max-content;width:max-content}.igd-settings .settings-field-content .igd-color-palette .components-color-palette__custom-color-button{width:100px;height:40px;border-radius:5px}.igd-settings .settings-field-content .igd-color-palette .components-color-palette__custom-color-button .components-truncate{display:none}.igd-settings .settings-field-content .igd-color-palette .components-color-palette__custom-color-button .components-color-palette__custom-color-value{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.igd-settings .settings-field-content .igd-color-palette .components-popover{left:0!important}.igd-settings .settings-field-content .igd-color-palette .components-popover .components-popover__content{outline-color:rgba(221,221,221,.5);border-radius:5px;box-shadow:rgba(0,0,0,.16) 0 10px 36px 0,rgba(0,0,0,.06) 0 0 0 1px}.igd-settings .settings-field-content .igd-color-palette .components-popover .components-popover__content .react-colorful+div{padding-top:0;display:flex}.igd-settings .settings-field-content .igd-color-palette .components-popover .components-popover__content .react-colorful+div>div:first-child{width:auto;padding-right:0}.igd-settings .settings-field-content .igd-color-palette .components-popover .components-popover__content .react-colorful+div>div:first-child>button{margin-left:5px}.igd-settings .settings-field-content .igd-color-palette .components-popover .components-popover__content .react-colorful+div>div:last-child{padding:5px;flex:1}.igd-settings .settings-field-content .igd-color-palette .components-popover .components-popover__content .react-colorful__saturation{height:100px;margin-bottom:10px}.igd-settings .settings-field-content .igd-color-palette .components-popover .components-popover__content .components-input-control__container{width:100%}.igd-settings .settings-field-content .igd-color-palette .components-popover .components-popover__content .components-input-control__container .components-spacer{margin-left:10px}.igd-settings .settings-field-content .igd-color-palette .components-popover .components-popover__content .components-input-control__container input{height:30px;min-height:30px;padding-right:5px}.igd-settings .settings-field-content .igd-color-palette .components-popover .components-popover__content .components-input-control__container select{height:auto!important}.igd-settings .settings-field-content .igd-color-palette .components-popover .components-popover__content .components-input-control__container .components-input-control__backdrop{border-color:#ddd;border-radius:5px;height:auto!important}.igd-settings .settings-field-content .igd-color-palette .components-popover .components-popover__content::-webkit-scrollbar{width:5px}.igd-settings .settings-field-content .igd-color-palette .components-popover .components-popover__content::-webkit-scrollbar-track{background:#f1f1f1}.igd-settings .settings-field-content .igd-color-palette .components-popover .components-popover__content::-webkit-scrollbar-thumb{background:#888}.igd-settings .settings-field-content .igd-color-palette .components-popover .components-popover__content::-webkit-scrollbar-thumb:hover{background:#555}.igd-settings .settings-field-content .igd-color-palette .components-circular-option-picker__custom-clear-wrapper{position:absolute;margin:0;left:120px;top:15px}.igd-settings .settings-field-content .igd-color-palette .components-circular-option-picker__custom-clear-wrapper button{color:#675ed5!important;background:#fff!important;border:1px solid rgba(103,94,213,.25)!important;box-shadow:none;font-size:.875rem;height:32px;width:60px;text-align:center;border-radius:5px;padding:5px 12px}.igd-settings .settings-field-content .igd-color-palette .components-circular-option-picker__custom-clear-wrapper button:hover{color:#fff;background:#675ed5;border:1px solid rgba(103,94,213,.25)}.igd-settings .settings-field-content .igd-color-palette .components-color-palette__custom-color-text-wrapper{position:absolute;box-shadow:none;pointer-events:none}.igd-settings .settings-field-content .igd-color-palette .components-circular-option-picker__option:after,.igd-settings .settings-field-content .igd-color-palette .components-circular-option-picker__option:before{width:auto;height:auto}.igd-settings .settings-field-content .igd-color-palette .components-circular-option-picker__option .components-tooltip{display:none}.igd-settings .settings-field-content .igd-color-palette .components-select-control .components-input-control__backdrop{display:block;border-color:#ddd!important;border-radius:5px!important}.igd-settings .settings-field-content .igd-color-palette.disabled{opacity:.5}.igd-settings .settings-field-content .igd-textarea{max-width:500px}.igd-settings .settings-field-content .igd-textarea textarea{border-color:#ddd;border-radius:5px!important}.igd-settings .settings-field-content .components-button-group{background:rgba(47,180,75,.1);padding:10px;width:-moz-max-content;width:max-content;border-radius:10px}.igd-settings .settings-field-content .components-button-group button{color:#47cf64;box-shadow:inset 0 0 0 1px rgba(47,180,75,.25);margin:0 3px;border-radius:5px;background:#fff}.igd-settings .settings-field-content .components-button-group button:first-child{border-top-left-radius:5px;border-bottom-left-radius:5px}.igd-settings .settings-field-content .components-button-group button:last-child{border-top-right-radius:5px;border-bottom-right-radius:5px}.igd-settings .settings-field-content .components-button-group button.is-primary{z-index:auto;background:#47cf64;color:#fff}.igd-settings .settings-field-content .components-button-group button.is-secondary:hover{color:#2fb44b;box-shadow:inset 0 0 0 1px #47cf64}.igd-settings .settings-field-content .components-button-group button i{margin-right:10px}.igd-settings .settings-field-content .preloaders{display:flex;flex-wrap:wrap}.igd-settings .settings-field-content .preloaders .preloader{display:flex;flex-direction:column;border:1px solid #e9e9e9;border-radius:.5rem;margin:0 15px 15px 0;position:relative;cursor:pointer;overflow:hidden;background:#eff3fe;width:130px}.igd-settings .settings-field-content .preloaders .preloader img{width:100%;height:100px;transition:all .2s ease-in-out}.igd-settings .settings-field-content .preloaders .preloader-name{border-top:1px solid #e9e9e9;padding:3px 5px;text-align:center;display:flex;align-items:center;justify-content:center;background:#fff;margin-top:auto}.igd-settings .settings-field-content .preloaders .preloader-name i{margin-right:3px}.igd-settings .settings-field-content .preloaders .preloader .pro-badge{position:absolute;top:-10px;right:-10px;background:#0a66c2;color:#fff;padding:5px 10px;border-radius:30px;font-size:12px;font-weight:400;display:flex;align-items:center;justify-content:center;line-height:1;box-shadow:0 0 5px rgba(0,0,0,.1);transition:all .3s ease}.igd-settings .settings-field-content .preloaders .preloader .pro-badge i{height:auto;width:auto;font-size:18px;margin-right:3px}.igd-settings .settings-field-content .preloaders .preloader.active{border-color:#2fb44b}.igd-settings .settings-field-content .preloaders .preloader.active .preloader-name{border-top-color:#2fb44b;background:#2fb44b;color:#fff}.igd-settings .settings-field-content .preloaders .preloader.active:after{content:"\f15e";font-family:Dashicons;height:24px;width:24px;background:#2fb44b;color:#fff;position:absolute;top:5px;right:5px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:21px}.igd-settings .settings-field-content .preloaders .preloader:hover{border-color:#2fb44b}.igd-settings .settings-field-content .preloaders .preloader:hover img{transform:scale(1.1)}.igd-settings .settings-field-content .preloaders .preloader.disabled .preloader-name{background:#ddd;color:#888}.igd-settings .settings-field-content .preloaders .preloader.disabled:hover{border-color:transparent}.igd-settings .settings-field-content .preloader-upload{border:1px dashed #ddd;border-radius:5px;padding:15px}.igd-settings .settings-field-content .preloader-upload h4{margin-top:0}.igd-settings .settings-field-content .preloader-upload-actions{display:flex;align-items:center}.igd-settings .settings-field-content .preloader-upload-actions button:nth-child(2){margin-left:10px}.igd-settings .settings-field-content .preloader-upload .preloader-preview{margin-top:20px}.igd-settings .settings-field-content .preloader-upload .preloader-preview img{max-width:150px;max-height:150px}.igd-settings .settings-field-content .own-google-app-warning{flex-direction:column}.igd-settings .settings-field .description{margin-top:7px;margin-bottom:0;color:#666;display:flex;align-items:center;flex-wrap:wrap}.igd-settings .settings-field .description .igd-btn{margin-left:15px}.igd-settings .settings-field .description strong{margin-right:3px}.igd-settings .settings-field .description strong:not(:first-child){margin-left:3px}.igd-settings .settings-field .template-tags-title{font-size:.875rem}.igd-settings .settings-field.field-preloader{flex-direction:column;align-items:flex-start}.igd-settings .settings-field.field-preloader .settings-field-label{width:100%}.igd-settings .settings-field.field-preloader .settings-field-label:after{content:""}.igd-settings .settings-field.field-preloader .description{font-size:1rem;margin-bottom:20px}.igd-settings .settings-field.field-access-browser:has(.settings-field-sub){flex-direction:column;align-items:flex-start}.igd-settings .settings-field.field-access-browser:has(.settings-field-sub) .settings-field-label{width:100%}.igd-settings .settings-field.field-access-browser:has(.settings-field-sub) .settings-field-label:after{content:""}.igd-settings .settings-field.field-custom-css{flex-direction:column;align-items:flex-start}.igd-settings .settings-field.field-custom-css .settings-field-label{width:100%}.igd-settings .settings-field.field-custom-css .settings-field-label:after{content:""}.igd-settings .settings-field.field-custom-css .igd-textarea,.igd-settings .settings-field.field-custom-css textarea{width:100%;max-width:100%}.igd-settings .settings-field.field-custom-css .description{font-size:1rem;margin-bottom:20px}.igd-settings .settings-field.field-custom-css .CodeMirror{border:1px solid #ddd;border-radius:5px}.igd-settings .settings-field.field-woocommerce-upload{align-items:flex-start}.igd-settings .settings-field.field-woocommerce-upload>.settings-field-label{margin-bottom:0;margin-top:20px}.igd-settings .settings-field.sync-folders .template-folder{margin-right:7px}.igd-settings .settings-field.sync-folders .template-folder-item{margin-left:0}.igd-settings .settings-field.sync-folders .igd-btn{margin-left:20px}.igd-settings .settings-field.field-access-denied-message{flex-direction:column;align-items:flex-start}.igd-settings .settings-field.field-access-denied-message .settings-field-label{width:100%}.igd-settings .settings-field.field-access-denied-message .settings-field-label:after{content:""}.igd-settings .settings-field.field-access-denied-message .description{margin-top:-5px;margin-bottom:15px}.igd-settings .settings-field.field-access-denied-message .wp-editor-wrap{width:100%}.igd-settings .settings-field.field-access-denied-message .wp-editor-wrap textarea{border:none}.igd-settings .settings-field.field-access-denied-message .wp-switch-editor{height:29px}.igd-settings .settings-field.field-access-denied-message textarea{width:100%;border:1px solid #eee;padding:15px;min-width:200px}.igd-settings .settings-field.field-access-denied-message textarea:focus{outline:0;box-shadow:none}.igd-settings .settings-field.field-naming-template input[type=text]{width:100%}.igd-settings .settings-field-sub{display:flex;flex-direction:column;width:100%}.igd-settings .settings-field-sub .settings-field{flex-direction:column;align-items:flex-start;margin-top:15px;margin-bottom:0;display:flex;border:1px dashed #ddd;padding:15px;border-radius:7px;width:100%}.igd-settings .settings-field-sub .settings-field-label{margin-bottom:10px;width:auto}.igd-settings .settings-field-sub .settings-field-label:after{content:"";display:none}.igd-settings .settings-field-sub .settings-field-content{width:100%;margin-left:0}.igd-settings .sub-settings{margin-left:10px;display:flex;flex-direction:column;margin-bottom:30px;background:#fff;border-top-right-radius:10px;border-bottom-right-radius:10px;padding:20px;position:relative}.igd-settings .sub-settings:before{content:"";position:absolute;top:0;left:-10px;width:10px;height:100%;background:#2fb44b}.igd-settings .sub-settings .settings-field{padding:0;margin:15px 0}.igd-settings .no-account-placeholder{margin:0 0 1rem 0;align-items:flex-start}.igd-settings .privacy-text-wrap{margin-top:30px;-webkit-user-select:none;-moz-user-select:none;user-select:none;background:#fff;border-radius:10px;padding:15px 30px 15px 15px}.igd-settings .privacy-text-wrap .privacy-text-btn{font-size:1rem;color:#555;cursor:pointer;display:flex;align-items:center}.igd-settings .privacy-text-wrap .privacy-text-btn img{margin-right:10px}.igd-settings .privacy-text-wrap .privacy-text-btn span{margin:0 5px}.igd-settings .privacy-text-wrap .privacy-text-btn i{margin-left:auto}.igd-settings .privacy-text-wrap .privacy-text{margin-top:20px;color:#333;padding:20px 10px;border-top:1px solid rgba(47,180,75,.2)}.igd-settings .privacy-text-wrap .privacy-text h4{margin-top:0;margin-bottom:5px;font-size:1rem}.igd-settings .privacy-text-wrap .privacy-text p{font-size:.9rem;line-height:1.5}.igd-settings .components-form-toggle{width:-moz-max-content;width:max-content;background:#fff;padding:3px;border-radius:15px}.igd-settings .components-form-toggle__track{width:44px;height:22px;border-radius:22px}.igd-settings .components-form-toggle__thumb{background:#2fb44b;border:none;width:15px;height:15px;border-radius:25px;top:6px;left:6px}.igd-settings .components-form-toggle.is-checked .components-form-toggle__thumb{background:#fff;transform:translateX(22px)}.igd-settings .components-form-toggle.is-checked .components-form-toggle__track{background:#2fb44b}.igd-settings .components-checkbox-control{border-radius:5px;padding:10px;cursor:pointer;transition:all .2s ease-in-out;background:#fff;-webkit-user-select:none;-moz-user-select:none;user-select:none}.igd-settings .components-checkbox-control .components-base-control__field{display:flex;align-items:center;margin-bottom:0}.igd-settings .components-checkbox-control__input{border-color:#47cf64;outline:0;box-shadow:none}.igd-settings .components-checkbox-control__input:checked{background-color:#2fb44b}.igd-settings .components-checkbox-control:hover{border-color:#2fb44b}.igd-settings .sharing-channels{display:flex;flex-wrap:wrap}.igd-settings .sharing-channels-wrap{background:#fff;padding:15px 20px;border-radius:7px}.igd-settings .sharing-channels-wrap .igd-settings-body-title{margin-top:0;margin-bottom:5px}.igd-settings .sharing-channels-wrap .description{font-size:1rem;margin-bottom:10px}.igd-settings .sharing-channels .components-checkbox-control{margin:8px;border:1px solid #ddd}.igd-settings .sharing-channels .components-checkbox-control:first-child{margin-left:0}@media (max-width:767px){.igd-settings-header{top:0}.igd-settings-header-title i.dashicons-admin-generic{display:none}.igd-settings-header-title i.dashicons-menu-alt3{display:block}.igd-settings-menu.active{display:block}.igd-settings-body{margin-right:10px}.igd-settings .settings-field{flex-flow:column;align-items:flex-start}.igd-settings .settings-field-label{margin-bottom:10px}.igd-settings .settings-field-label:after{display:none}}body.google-drive_page_integrate-google-drive-getting-started #wpcontent{padding:0;background:#fff}.igd-getting-started *{box-sizing:border-box}.igd-getting-started .getting-started-header{background:url(../images/getting-started/bg-shapes.png) no-repeat top/cover,#116222;padding:60px 60px 120px 60px;color:#fff;text-align:center}.igd-getting-started .getting-started-header .header-logo{display:flex;align-items:center;justify-content:center;margin-bottom:1rem;line-height:1.5}.igd-getting-started .getting-started-header .header-logo img{width:50px;margin-right:10px;background:#fff;padding:5px;border-radius:50%}.igd-getting-started .getting-started-header .header-logo span{font-size:2rem;font-weight:600}.igd-getting-started .getting-started-header p{max-width:600px;font-size:1rem;margin:auto;line-height:1.5;color:#eafaff}.igd-getting-started .getting-started-header .header-title{font-size:1.3rem;background:#248c3a;padding:17px 20px;border-radius:30px;display:inline-flex;color:#eaf7ed}@media (max-width:767px){.igd-getting-started .getting-started-header{padding:20px 20px 80px 20px}.igd-getting-started .getting-started-header .header-logo img{width:35px;padding:2px}.igd-getting-started .getting-started-header .header-logo span{font-size:1.5rem}.igd-getting-started .getting-started-header p{font-size:.9rem}.igd-getting-started .getting-started-header .header-title{font-size:1rem;padding:10px 15px}}.igd-getting-started .getting-started-main{max-width:1000px;margin:-64px auto 0 auto}.igd-getting-started .getting-started-menu{display:flex;justify-content:center;align-items:center;background:#fff;border-top-left-radius:30px;border-top-right-radius:30px;border-bottom:1px solid #e5e5e5}.igd-getting-started .getting-started-menu .menu-item{display:flex;align-items:center;padding:20px 30px;cursor:pointer;color:#4d4d4d;transition:all .3s ease-in-out;border-bottom:2px solid transparent;margin-bottom:-2px}.igd-getting-started .getting-started-menu .menu-item svg{margin-right:10px}.igd-getting-started .getting-started-menu .menu-item span{font-size:.9rem;font-weight:500}.igd-getting-started .getting-started-menu .menu-item:hover{color:#248c3a}.igd-getting-started .getting-started-menu .menu-item:hover path,.igd-getting-started .getting-started-menu .menu-item:hover svg{fill:#248c3a}.igd-getting-started .getting-started-menu .menu-item.active{color:#2fb44b;border-bottom:2px solid #2fb44b}.igd-getting-started .getting-started-menu .menu-item.active path,.igd-getting-started .getting-started-menu .menu-item.active svg{fill:#2fb44b}@media (max-width:767px){.igd-getting-started .getting-started-menu{border-radius:0;flex-direction:column;align-items:normal}}.igd-getting-started .getting-started-content{display:none;margin-top:30px}.igd-getting-started .getting-started-content .section-wrap{display:flex;flex-wrap:wrap;justify-content:space-between;margin-bottom:30px}.igd-getting-started .getting-started-content .section-wrap section{width:48%}.igd-getting-started .getting-started-content section{display:flex;flex-wrap:wrap;padding:30px;border-radius:15px}.igd-getting-started .getting-started-content section.section-full{align-items:center;justify-content:space-between;margin-bottom:2rem}.igd-getting-started .getting-started-content section.section-full>div{width:48%}.igd-getting-started .getting-started-content section.section-half{justify-content:center}.igd-getting-started .getting-started-content section.section-half .col-description{text-align:center;margin-bottom:1rem}.igd-getting-started .getting-started-content section.section-half .col-image{margin-top:auto}.igd-getting-started .getting-started-content section.section-introduction{background:#eaf7ed}.igd-getting-started .getting-started-content section.section-file-browser,.igd-getting-started .getting-started-content section.section-file-uploader{background:#eff3fe}.igd-getting-started .getting-started-content section.section-photo-gallery,.igd-getting-started .getting-started-content section.section-slider-carousel{background:rgba(253,246,236,.8)}.igd-getting-started .getting-started-content section.section-file-importer,.igd-getting-started .getting-started-content section.section-links{background:#eff3fe}.igd-getting-started .getting-started-content section.section-multiple-accounts{background:#eaf7ed}.igd-getting-started .getting-started-content section.section-contact,.igd-getting-started .getting-started-content section.section-documentation{background:#eaf7ed}.igd-getting-started .getting-started-content section.section-contact .col-image img,.igd-getting-started .getting-started-content section.section-documentation .col-image img{border:none}.igd-getting-started .getting-started-content section.section-add-account,.igd-getting-started .getting-started-content section.section-media-player{background:#eaf7ed}.igd-getting-started .getting-started-content section.section-embed,.igd-getting-started .getting-started-content section.section-file-search{background:#eaf7ed}.igd-getting-started .getting-started-content section.section-private-folders,.igd-getting-started .getting-started-content section.section-shortcode-builder,.igd-getting-started .getting-started-content section.section-woocommerce{background:#fdf6ec}.igd-getting-started .getting-started-content section.section-data-privacy{background:#eaf7ed;margin-bottom:2rem}.igd-getting-started .getting-started-content section.section-data-privacy .col-description{text-align:left}.igd-getting-started .getting-started-content section.integrations{display:flex;flex-wrap:wrap;justify-content:space-between;margin:0 -10px;padding:0}.igd-getting-started .getting-started-content section.integrations .integration{width:calc(33% - 20px);display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;background:#eaf7ed;margin:10px;padding:20px;border-radius:15px}.igd-getting-started .getting-started-content section.integrations .integration img{width:100px;height:100px;margin-bottom:10px;border-radius:50%}.igd-getting-started .getting-started-content section .col-description h2{font-size:1.5rem;font-weight:600;margin:1rem 0}.igd-getting-started .getting-started-content section .col-image iframe,.igd-getting-started .getting-started-content section .col-image img{width:100%;border-radius:7px}.igd-getting-started .getting-started-content section .col-image iframe{aspect-ratio:16/9;box-shadow:0 0 10px rgba(0,0,0,.1)}.igd-getting-started .getting-started-content section .igd-btn{padding:15px 20px;margin:30px auto 0 auto}.igd-getting-started .getting-started-content .content-heading{display:flex;flex-direction:column;align-items:center;justify-content:center;margin:80px auto 40px auto;text-align:center;max-width:600px;line-height:1.3}.igd-getting-started .getting-started-content .content-heading h2{margin:5px 0;font-size:30px;font-weight:700}.igd-getting-started .getting-started-content .content-heading p{margin:5px;font-size:.875rem}.igd-getting-started .getting-started-content.active{display:block}@media (max-width:767px){.igd-getting-started .getting-started-content{padding:10px}.igd-getting-started .getting-started-content .section-wrap section{width:100%;margin-bottom:30px}.igd-getting-started .getting-started-content section.section-full{flex-direction:column;align-items:center;justify-content:center}.igd-getting-started .getting-started-content section.section-full>div{width:100%}.igd-getting-started .getting-started-content section.integrations{margin:0}.igd-getting-started .getting-started-content section.integrations .integration{width:100%;margin:0 0 20px 0}}.igd-getting-started .getting-started-content p{font-size:1rem}.igd-getting-started .getting-started-content li{font-size:.975rem;margin-bottom:15px;line-height:1.5}.igd-getting-started .getting-started-content h4{font-size:1rem}.igd-getting-started .log{border-radius:15px;margin-bottom:20px}.igd-getting-started .log-header{display:flex;align-items:center;cursor:pointer;padding:20px;background:rgba(47,180,75,.0875);border-radius:15px}.igd-getting-started .log-header span{font-size:1rem;font-weight:500;margin-right:10px}.igd-getting-started .log-header span.log-version{background:#2fb44b;color:#fff;padding:5px 10px;border-radius:5px}.igd-getting-started .log-header i{margin-left:auto;background:#2fb44b;display:flex;align-items:center;justify-content:center;color:#fff;border-radius:50%;height:25px;width:25px}.igd-getting-started .log-body{display:none}.igd-getting-started .log-body .log-section{padding-bottom:10px;border-bottom:1px solid rgba(47,180,75,.1)}.igd-getting-started .log-body .log-section:last-child{border-bottom:none}.igd-getting-started .log-body .log-item{font-size:1rem;line-height:1.5;margin-bottom:10px;display:flex;align-items:center}.igd-getting-started .log-body .log-item i{display:inline-flex;align-items:center;justify-content:center;margin-right:10px;border-radius:50%;height:25px;width:25px;padding:5px}.igd-getting-started .log-body .log-item-new{color:#3265a6}.igd-getting-started .log-body .log-item-new i{background:#3265a6;color:#fff}.igd-getting-started .log-body .log-item-fix{color:#2fb44b}.igd-getting-started .log-body .log-item-fix i{background:#2fb44b;color:#fff}.igd-getting-started .log-body .log-item-enhancement{color:#f5a623}.igd-getting-started .log-body .log-item-enhancement i{background:#f5a623;color:#fff}.igd-getting-started .log-body .log-item-remove{color:#f3754d}.igd-getting-started .log-body .log-item-remove i{background:0 0}.igd-getting-started .log.active{border:1px solid rgba(47,180,75,.3)}.igd-getting-started .log.active .log-header{border-bottom:1px solid rgba(47,180,75,.3);border-bottom-left-radius:0;border-bottom-right-radius:0}.igd-getting-started .log.active .log-body{display:block;padding:20px}.igd-getting-started .free-vs-pro h2 span{margin:0 10px}.igd-getting-started .free-vs-pro h2 span:first-child{color:#7a7a7a}.igd-getting-started .free-vs-pro h2 span:last-child{color:#2fb44b}.igd-getting-started .features-list{background:#eff3fe;border-radius:15px}.igd-getting-started .features-list .list-header{display:flex;align-items:center;padding:30px;font-size:1.2rem;border-bottom:1px solid rgba(47,180,75,.1);font-weight:600;background:rgba(47,180,75,.0875)}.igd-getting-started .features-list .list-header .feature-title{width:75%}.igd-getting-started .features-list .list-header .feature-free{width:12%}.igd-getting-started .features-list .list-header .feature-pro{width:12%;margin-left:auto;text-align:center}.igd-getting-started .features-list .feature{display:flex;align-items:center;padding:20px 30px;font-size:1rem;font-weight:500;border-bottom:1px solid rgba(47,180,75,.1)}.igd-getting-started .features-list .feature:last-child{border-bottom:none}.igd-getting-started .features-list .feature .feature-title{width:75%}.igd-getting-started .features-list .feature i{color:#fff;background:#2fb44b;width:30px;height:30px;display:inline-flex;align-items:center;justify-content:center;border-radius:10px}.igd-getting-started .features-list .feature i.dashicons-no-alt{background:#7a7a7a}.igd-getting-started .features-list .feature .feature-free{width:12%}.igd-getting-started .features-list .feature .feature-pro{width:12%;margin-left:auto;text-align:center}.igd-getting-started .get-pro-cta{display:flex;align-items:center;background:rgba(47,180,75,.0875);border-radius:15px;padding:30px;margin:60px 0}.igd-getting-started .get-pro-cta .cta-content{display:flex;flex-direction:column;width:60%}.igd-getting-started .get-pro-cta .cta-content h2{margin-bottom:5px;font-size:1.5rem;font-weight:700;line-height:1.3}.igd-getting-started .get-pro-cta .cta-btn{flex:1;display:flex;align-items:center;justify-content:center}.igd-getting-started .get-pro-cta .cta-btn .igd-btn{padding:15px 20px}@media (max-width:767px){.igd-getting-started .get-pro-cta{flex-direction:column;align-items:center;padding:30px 20px;text-align:center}.igd-getting-started .get-pro-cta .cta-content{width:100%;margin-bottom:20px}.igd-getting-started .get-pro-cta .cta-btn{width:100%}}.igd-getting-started .demo-cta{display:flex;align-items:center;background:#fdf6ec;border-radius:15px;padding:30px;margin:60px 0}.igd-getting-started .demo-cta .cta-content{display:flex;flex-direction:column;width:60%}.igd-getting-started .demo-cta .cta-content h2{margin-bottom:5px;font-size:1.5rem;font-weight:700;line-height:1.3}.igd-getting-started .demo-cta .cta-btn{flex:1;display:flex;align-items:center;justify-content:center}.igd-getting-started .demo-cta .cta-btn .igd-btn{padding:15px 20px}@media (max-width:767px){.igd-getting-started .demo-cta{flex-direction:column;align-items:center;padding:30px 20px;text-align:center}.igd-getting-started .demo-cta .cta-content{width:100%;margin-bottom:20px}.igd-getting-started .demo-cta .cta-btn{width:100%}}.igd-getting-started .facebook-cta{display:flex;align-items:center;background:url(../images/getting-started/cta-bg.png) no-repeat center/cover,#eaf7ed;border-radius:15px;padding:30px 60px;margin:60px 0}.igd-getting-started .facebook-cta .cta-content{display:flex;flex-direction:column;width:60%}.igd-getting-started .facebook-cta .cta-content h2{margin-bottom:5px;font-size:1.5rem;font-weight:700;line-height:1.3}.igd-getting-started .facebook-cta .cta-btn{flex:1;display:flex;align-items:center;justify-content:center}.igd-getting-started .facebook-cta .cta-btn .igd-btn{padding:15px 20px}@media (max-width:767px){.igd-getting-started .facebook-cta{flex-direction:column;align-items:center;padding:30px 20px;text-align:center}.igd-getting-started .facebook-cta .cta-content{width:100%;margin-bottom:20px}.igd-getting-started .facebook-cta .cta-btn{width:100%}}.igd-getting-started .faq-item{margin-bottom:30px;border:1px solid #eff3fe;border-radius:15px;overflow:hidden;display:flex;width:100%;flex-direction:column;-webkit-user-select:none;-moz-user-select:none;user-select:none}.igd-getting-started .faq-item .faq-header{font-weight:500;cursor:pointer;display:flex;align-items:center;background:#eff3fe;padding:15px 20px}.igd-getting-started .faq-item .faq-header i{margin-right:15px;font-size:1.2rem;transition:all .3s ease-in-out;background:#fff;color:#333;width:35px;height:35px;display:inline-flex;align-items:center;justify-content:center;border-radius:10px}.igd-getting-started .faq-item .faq-header h3{font-size:1.2rem;margin:0}.igd-getting-started .faq-item .faq-body{display:none;line-height:1.5;padding:10px 20px}.igd-getting-started .faq-item .faq-body p{font-size:1rem;color:#444}.igd-getting-started .faq-item.active .faq-header i{color:#2fb44b;transform:rotate(180deg)}.igd-getting-started .faq-item.active .faq-body{display:block}#woocommerce-product-data ul.wc-tabs li.upload_options_options a:before{content:"\f13b";font-family:dashicons}.igd-woocommerce{display:inline-flex;float:right;margin-right:10px}.igd-woocommerce .igd-wc-button{display:inline-flex!important;margin-left:auto!important;align-items:center}.igd-woocommerce .igd-wc-button img{margin-right:5px}.upload-box-settings{margin:20px}.upload-box-settings .form-field .description{display:block;clear:both;margin:20px 0 10px 0}.upload-box-settings .form-field .upload_folder_name{width:100%}.igd-wc-upload-wrap{margin:20px 0;display:block}.igd-wc-upload-wrap .upload-button{display:flex!important;align-items:center;width:-moz-max-content;width:max-content;text-align:center;margin-bottom:15px!important;float:none!important}.igd-wc-upload-wrap .upload-button i{margin-right:5px}.igd-wc-upload-wrap .igd-shortcode-uploader{visibility:hidden;width:0;height:0;position:absolute;overflow:hidden;z-index:-1;max-width:500px;clear:both}.igd-wc-upload-wrap .igd-shortcode-uploader .igd-file-uploader-inner .dashicons-cloud-upload{display:none}.igd-wc-upload-wrap .igd-shortcode-uploader .igd-file-uploader{margin:0}.igd-wc-upload-wrap .igd-wc-upload-description{margin:0;clear:both}.igd-wc-upload-wrap .wc-file-list-wrap{margin-top:15px;clear:both}.igd-wc-upload-wrap .wc-file-list-wrap h4{font-size:1.2rem;margin-bottom:10px}.igd-wc-upload-wrap .wc-file-list-wrap .wc-file-list{margin:10px 0;padding:0;list-style:none}.igd-wc-upload-wrap .wc-file-list-wrap .wc-file-list li{display:flex;align-items:center;margin:3px;font-size:12px;font-weight:600;color:#333;transition:all .2s ease-in-out;-webkit-user-select:none;-moz-user-select:none;user-select:none}.igd-wc-upload-wrap .wc-file-list-wrap .wc-file-list li img{margin-right:5px;width:16px}.igd-wc-upload-wrap .wc-file-list-wrap .wc-file-list li .dashicons-no-alt{color:#ff9f10;cursor:pointer;margin-left:15px;margin-right:0}.igd-wc-upload-wrap:has(.upload-button.active) .igd-shortcode-uploader{display:flex;visibility:visible;width:auto;height:auto;position:relative;overflow:visible;z-index:1}.woocommerce-page.woocommerce-checkout form #order_review td.product-name:has(.igd-wc-upload-wrap){flex-wrap:wrap}.igd-wc-uploaded-files{display:flex;flex-direction:column;margin:0!important;padding:0!important}.igd-wc-uploaded-files-wrap{width:30%;padding:0}.igd-wc-uploaded-files li{margin-bottom:5px!important}.igd-wc-uploaded-files a{display:flex;text-decoration:none;color:#555;font-size:.875rem;overflow:hidden;transition:all .2s ease-in-out}.igd-wc-uploaded-files a img{margin-right:5px!important;width:20px!important}.igd-wc-uploaded-files a span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.igd-wc-uploaded-files a:hover{color:#333}.dokan-igd-settings .igd-dokan-settings-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;flex-wrap:wrap;background:#eee;border-radius:7px;padding:10px}.dokan-igd-settings .igd-dokan-settings-header h2{margin:0}.dokan-igd-settings .igd-upload-settings-header{margin-top:50px}.dokan-igd-settings .dokan-igd-ajax-response{width:100%;margin:0;display:none}.dokan-igd-settings .save-upload-settings{padding:15px 20px}.dokan-igd-settings .dokan-control-label{text-align:left}.dokan-igd-settings .wc-radios{margin-top:0;padding:0}.dokan-igd-settings .parent-folder{padding:7px 10px;border-radius:5px;background:#eaeaea;margin-right:20px;font-size:.9rem;color:#555;display:inline-flex;flex-wrap:wrap;align-items:center;width:-moz-max-content;width:max-content;line-height:1}.dokan-igd-settings .parent-folder-item{background:#fff;padding:3px 5px;border-radius:3px;margin-left:10px;font-size:.8rem;display:flex;align-items:center;justify-content:center}.dokan-igd-settings .parent-folder i,.dokan-igd-settings .parent-folder img{margin-right:7px}.dokan-igd-settings .parent-folder .dashicons-no-alt{color:#ff9f10;cursor:pointer;margin-left:7px;margin-right:0}.dokan-igd-settings .parent-folder .select-parent-folder{margin-left:10px}.dokan-igd-settings .folder-naming-template{font-size:1rem;margin-bottom:10px}.dokan-igd-settings .variables{display:flex;flex-wrap:wrap}.dokan-igd-settings .variables .variable{display:flex;align-items:center;margin:3px;padding:3px;border:1px solid #ccc;border-radius:5px;background:#f5f5f5;font-size:12px;font-weight:600;color:#333;cursor:pointer;transition:all .2s ease-in-out}.dokan-igd-settings .variables .variable:hover{background:#e5e5e5}.dokan-igd-settings .variables .variable .variable-name{margin-right:5px}.igd-dokan{display:inline-block;margin-left:10px}.igd-dokan .igd-wc-button{display:inline-flex!important;margin-left:auto!important;align-items:center}.igd-dokan .igd-wc-button img{margin-right:5px}.edd-add-repeatable-row{display:flex;align-items:center}.igd-edd{margin-left:auto;display:inline-flex;float:right}.igd-edd .igd-edd-button{display:inline-flex!important;margin-left:auto!important;align-items:center}.igd-edd .igd-edd-button img{margin-right:5px}.igd-datepicker{background:#fff;border:1px solid rgba(47,180,75,.3);border-radius:7px;border-top:2px solid #47cf64;box-shadow:0 0 5px rgba(0,0,0,.2);font-size:14px;padding:10px;width:250px}.igd-datepicker .ui-datepicker-header{border:none;padding:0;margin-bottom:10px;display:flex;justify-content:space-between;align-items:center}.igd-datepicker .ui-datepicker-header .ui-datepicker-next,.igd-datepicker .ui-datepicker-header .ui-datepicker-prev{background:0 0;color:#2fb44b;border:1px solid rgba(47,180,75,.3);font-size:20px;font-weight:700;line-height:1;text-shadow:none;padding:0;margin:0;width:30px;height:30px;border-radius:50%;text-align:center;vertical-align:middle;position:relative;top:2px;font-family:Dashicons,serif;display:flex;justify-content:center;align-items:center;cursor:pointer}.igd-datepicker .ui-datepicker-header .ui-datepicker-next:hover,.igd-datepicker .ui-datepicker-header .ui-datepicker-prev:hover{background:#f1f1f1}.igd-datepicker .ui-datepicker-header .ui-datepicker-prev{float:left}.igd-datepicker .ui-datepicker-header .ui-datepicker-prev:before{content:"\f341"}.igd-datepicker .ui-datepicker-header .ui-datepicker-next{order:3}.igd-datepicker .ui-datepicker-header .ui-datepicker-next:before{content:"\f345"}.igd-datepicker .ui-datepicker-header .ui-datepicker-title{font-size:16px;font-weight:700;line-height:1;text-align:center;margin:0;padding:0;text-transform:uppercase;order:2}.igd-datepicker .ui-datepicker-calendar{border:none;width:100%;margin:0;padding:0;border-collapse:collapse}.igd-datepicker .ui-datepicker-calendar th{font-size:12px;font-weight:700;line-height:1;text-align:center;padding:5px 0;text-transform:uppercase}.igd-datepicker .ui-datepicker-calendar td{padding:0;text-align:center}.igd-datepicker .ui-datepicker-calendar td a{display:flex;justify-content:center;align-items:center;padding:5px;color:#000;text-decoration:none;border-radius:50%;transition:all .3s ease;aspect-ratio:1/1}.igd-datepicker .ui-datepicker-calendar td a:hover{background:#47cf64;color:#fff}.igd-datepicker .ui-datepicker-calendar td.ui-datepicker-today a{border:1px solid #47cf64}.igd-datepicker .ui-datepicker-calendar td.ui-datepicker-unselectable a{color:#ccc}.igd-datepicker .ui-datepicker-calendar td.ui-datepicker-current-day a{background:#2fb44b;color:#fff;aspect-ratio:1/1}body.google-drive_page_integrate-google-drive-statistics #wpfooter{display:none}.igd-statistics,.igd-statistics *{box-sizing:border-box}.igd-statistics .statistics-header{display:flex;align-items:center;justify-content:space-between;position:sticky;top:32px;background:#fff;margin:0 0 30px -20px;padding:15px;z-index:1;border-bottom:1px solid #eaeaea}.igd-statistics .statistics-header .statistics-header-title{font-size:18px;font-weight:600;color:#333;display:flex;align-items:center}.igd-statistics .statistics-header .statistics-header-title img{margin-right:10px}.igd-statistics .statistics-header-desc{margin-left:10px;font-size:14px;font-weight:400}.igd-statistics .statistics-header .statistics-range{display:flex;align-items:center;margin-left:auto}.igd-statistics .statistics-header .statistics-range .date-field-wrap{position:relative;display:flex;margin-right:10px;border:1px solid #ddd;border-radius:10px;overflow:hidden}.igd-statistics .statistics-header .statistics-range .date-field-wrap .date-field-prefix{display:inline-flex;align-items:center;font-size:.875rem;font-weight:400;background:#eee;color:#333;height:inherit;padding:7px}.igd-statistics .statistics-header .statistics-range .date-field-wrap .date-field-prefix span{margin-left:5px}.igd-statistics .statistics-header .statistics-range .date-field-wrap .date-field-suffix{display:inline-flex;align-items:center;vertical-align:middle;padding:7px;height:inherit}.igd-statistics .statistics-header .statistics-range input{height:40px;border:none;border-radius:0;max-width:100px}.igd-statistics .statistics-header .statistics-range input:focus{outline:0;box-shadow:none}.igd-statistics .statistics-header .statistics-range>button{height:40px}.igd-statistics .statistics-header .clear-statistics{margin-left:10px;transform:rotate(90deg);cursor:pointer}.igd-statistics .statistics-header .clear-statistics-tooltip{opacity:1;padding:15px;border-radius:10px;margin-top:30px;margin-left:0;box-shadow:0 0 10px rgba(0,0,0,.1)}.igd-statistics .statistics-header .clear-statistics-tooltip button{width:100%}.igd-statistics .statistics-header .clear-statistics-tooltip .btn-info{margin-bottom:10px}.igd-statistics .statistics-header .clear-statistics-tooltip:after,.igd-statistics .statistics-header .clear-statistics-tooltip:before{top:30px}@media (max-width:767px){.igd-statistics .statistics-header{flex-direction:column;position:static}.igd-statistics .statistics-header .statistics-header-title{margin-bottom:10px}.igd-statistics .statistics-header .statistics-range{flex-wrap:wrap;justify-content:center}.igd-statistics .statistics-header .statistics-range .date-field-wrap{width:47%;margin-bottom:10px}.igd-statistics .statistics-header .statistics-range .date-field-wrap:nth-child(2){margin-right:0}}.igd-statistics .statistics-summary{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between;margin-bottom:30px;margin-top:30px;margin-right:10px}.igd-statistics .statistics-summary .statistics-summary-item{display:flex;align-items:center;font-size:14px;font-weight:600;transition:all .3s ease;border-radius:15px;padding:2rem 1rem;background:#fff;margin:0 15px;width:calc(25% - 30px);position:relative}.igd-statistics .statistics-summary .statistics-summary-item:before{content:"";position:absolute;top:0;width:90%;height:5px;background:#2fb44b;left:5%}.igd-statistics .statistics-summary .statistics-summary-item.summary-upload:before{background:#70c5ff}.igd-statistics .statistics-summary .statistics-summary-item.summary-preview:before{background:#18b3fd}.igd-statistics .statistics-summary .statistics-summary-item.summary-stream:before{background:#7da2f6}.igd-statistics .statistics-summary .statistics-summary-item:nth-child(1){margin-left:0}.igd-statistics .statistics-summary .statistics-summary-item .statistics-summary-item-icon{margin-right:15px;width:60px;box-shadow:0 0 3px rgba(0,0,0,.1);border-radius:50%}.igd-statistics .statistics-summary .statistics-summary-item .summary-info{display:flex;flex-direction:column}.igd-statistics .statistics-summary .statistics-summary-item .statistics-summary-item-title{font-size:1rem;font-weight:400;color:#7a7a7a;margin-top:5px}.igd-statistics .statistics-summary .statistics-summary-item .statistics-summary-item-count{font-size:2rem;font-weight:700;color:#333;line-height:1}@media (max-width:767px){.igd-statistics .statistics-summary .statistics-summary-item{width:calc(50% - 20px);margin:0 10px 20px 10px}.igd-statistics .statistics-summary .statistics-summary-item:nth-child(3){margin-left:0}}.igd-statistics .statistics-boxes{width:100%;display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:30px}.igd-statistics .statistics-boxes-wrapper{margin-right:15px}.igd-statistics .statistics-boxes.top-upload .statistics-box .box-title i{background:#70c5ff}.igd-statistics .statistics-boxes.top-upload .table-wrapper::-webkit-scrollbar-thumb{background:rgba(112,197,255,.25)}.igd-statistics .statistics-boxes.top-upload .table-wrapper::-webkit-scrollbar-thumb:hover{background:rgba(112,197,255,.5)}.igd-statistics .statistics-boxes.top-upload table thead tr th{background:#70c5ff}.igd-statistics .statistics-boxes.top-upload table tbody tr td{border-bottom:1px dashed rgba(112,197,255,.2)}.igd-statistics .statistics-boxes.top-preview .statistics-box .box-title i{background:#18b3fd}.igd-statistics .statistics-boxes.top-preview .table-wrapper::-webkit-scrollbar-thumb{background:rgba(24,179,253,.25)}.igd-statistics .statistics-boxes.top-preview .table-wrapper::-webkit-scrollbar-thumb:hover{background:rgba(24,179,253,.5)}.igd-statistics .statistics-boxes.top-preview table thead tr th{background:#18b3fd}.igd-statistics .statistics-boxes.top-preview table tbody tr td{border-bottom:1px dashed rgba(24,179,253,.2)}.igd-statistics .statistics-boxes.top-stream .statistics-box .box-title i{background:#7da2f6}.igd-statistics .statistics-boxes.top-stream .table-wrapper::-webkit-scrollbar-thumb{background:rgba(125,162,246,.25)}.igd-statistics .statistics-boxes.top-stream .table-wrapper::-webkit-scrollbar-thumb:hover{background:rgba(125,162,246,.5)}.igd-statistics .statistics-boxes.top-stream table thead tr th{background:#7da2f6}.igd-statistics .statistics-boxes.top-stream table tbody tr td{border-bottom:1px dashed rgba(125,162,246,.2)}.igd-statistics .statistics-boxes.top-search .statistics-box .box-title i{background:#5bd475}.igd-statistics .statistics-boxes.top-search .table-wrapper::-webkit-scrollbar-thumb{background:rgba(47,180,75,.25)}.igd-statistics .statistics-boxes.top-search .table-wrapper::-webkit-scrollbar-thumb:hover{background:rgba(47,180,75,.5)}.igd-statistics .statistics-boxes.top-search table thead tr th{background:#5bd475}.igd-statistics .statistics-boxes.top-search table tbody tr td{border-bottom:1px dashed rgba(47,180,75,.2)}@media (max-width:767px){.igd-statistics .statistics-boxes{flex-direction:column}.igd-statistics .statistics-boxes .statistics-box{width:100%;margin-bottom:15px}}.igd-statistics .statistics-box{width:49%;display:flex;flex-direction:column;background:#fff;padding:30px;border-radius:10px;box-shadow:rgba(149,157,165,.2) 0 8px 24px}.igd-statistics .statistics-box.event-chart,.igd-statistics .statistics-box.event-logs{width:100%;margin-bottom:50px}.igd-statistics .statistics-box .box-title{font-size:1rem;font-weight:500;color:#333;display:flex;align-items:center}.igd-statistics .statistics-box .box-title i{margin-left:auto;cursor:pointer;border-radius:50%;background:#2fb44b;color:#fff;padding:5px;width:auto;height:auto}.igd-statistics .statistics-box .table-wrapper{width:100%;overflow-y:auto;margin:15px 0;max-height:400px}.igd-statistics .statistics-box .table-wrapper thead{position:sticky;top:-1px}.igd-statistics .statistics-box .table-wrapper::-webkit-scrollbar{width:5px;height:5px;border-radius:10px}.igd-statistics .statistics-box .table-wrapper::-webkit-scrollbar-track{background:#f1f1f1;border-radius:10px;margin-top:50px}.igd-statistics .statistics-box .table-wrapper::-webkit-scrollbar-thumb{background:rgba(47,180,75,.3);border-radius:10px}.igd-statistics .statistics-box .table-wrapper::-webkit-scrollbar-thumb:hover{background:rgba(47,180,75,.5)}.igd-statistics .statistics-box table{width:100%;border-collapse:collapse;border-spacing:0;font-size:14px;color:#333;font-weight:600;border:none}.igd-statistics .statistics-box table thead{background:#f5f5f5;padding:10px}.igd-statistics .statistics-box table thead th:nth-child(1){width:62px}.igd-statistics .statistics-box table thead tr th{padding:12px;font-weight:600;border:none;background:#2fb44b;color:#fff}.igd-statistics .statistics-box table thead tr th:first-child{border-top-left-radius:10px;border-bottom-left-radius:10px}.igd-statistics .statistics-box table thead tr th:last-child{border-top-right-radius:10px;border-bottom-right-radius:10px}.igd-statistics .statistics-box table tbody:before{content:"_";display:block;line-height:1em;color:transparent}.igd-statistics .statistics-box table tbody tr{background:0 0}.igd-statistics .statistics-box table tbody tr td{padding:7px 5px;font-weight:400;border-bottom:1px dashed rgba(47,180,75,.2);vertical-align:middle}.igd-statistics .statistics-box table .sl{display:flex;align-items:center}.igd-statistics .statistics-box table .sl .sl-no{margin-right:10px}.igd-statistics .statistics-box table .col-date{white-space:nowrap}.igd-statistics .statistics-box .no-data{font-size:14px;color:#333;margin-bottom:10px;text-align:center;display:block}.igd-statistics .statistics-box .igd-promo-wrapper{margin-left:-20px;width:calc(100% + 20px);border-radius:0;display:flex;justify-content:center;padding-top:100px;align-items:flex-start}.igd-statistics .statistics-box.event-logs .sl img{width:35px}.igd-statistics .statistics-box.event-logs .table-wrapper{max-height:600px}.igd-tinymce-modal{min-height:100%}.igd-tinymce-modal,.igd-tinymce-modal *{box-sizing:border-box}.igd-tinymce-modal:has(.igd-tinymce-types-wrap){height:auto}.igd-tinymce-modal .igd-module-builder-modal-header .header-title img{width:40px;margin-right:10px}.igd-tinymce-modal .igd-module-builder-modal-header button{margin:0 5px}.igd-tinymce-modal .igd-module-builder-modal-header button.btn-back{color:#555;border-color:#6f6f6f;background:0 0}.igd-tinymce-modal .igd-module-builder-modal-header button.btn-back:hover{color:#fff;background-color:#555;border-color:#6f6f6f}.igd-tinymce-modal .igd-module-builder-modal-header button.btn-danger{color:#ff8165;border-color:#ffab98;background:0 0}.igd-tinymce-modal .igd-module-builder-modal-header button.btn-danger:hover{color:#fff;background-color:#ff8165;border-color:#ffab98}.igd-tinymce-modal .igd-module-builder-modal-header button:nth-child(2){margin-left:auto}.igd-tinymce-modal .igd-tinymce-types{display:flex;flex-wrap:wrap;justify-content:center;margin-top:1rem;padding:1rem}.igd-tinymce-modal .igd-tinymce-types-header{margin-top:2rem}.igd-tinymce-modal .igd-tinymce-types-header h3{margin-bottom:.5rem;font-size:28px}.igd-tinymce-modal .igd-tinymce-types-header span{font-size:1rem;color:#7a7a7a}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type{display:flex;flex-direction:column;align-items:center;justify-content:center;width:calc(25% - 1rem);padding:2rem 1rem;margin:.5rem;border-radius:1rem;cursor:pointer;max-width:300px;overflow:hidden;transition:all .3s ease-in-out;background:#fff;border:1px dashed rgba(47,180,75,.3);position:relative}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type .icon-wrap{width:60px;height:60px;border-radius:50%;display:flex;align-items:center;justify-content:center;margin-bottom:1rem;transition:all .2s ease-in-out}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type .icon-wrap.icon-module{background:#eff3fe}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type .icon-wrap.icon-shortcodes{background:#eaf7ed}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type .icon-wrap.icon-browser{background:#f5f8ff}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type .icon-wrap.icon-uploader{background:#eaf7ed}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type .icon-wrap.icon-search{background:#e4ffde}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type .icon-wrap.icon-gallery{background:#ece8ff}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type .icon-wrap.icon-slider{background:#e9f0ff}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type .icon-wrap.icon-media{background:#fff6f5}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type .icon-wrap.icon-embed{background:#ecf7ff}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type .icon-wrap.icon-download{background:#eaf7ed}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type .icon-wrap.icon-view{background:#f5f8ff}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type .icon-wrap img{width:32px}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type-title{margin-bottom:1rem;font-weight:600;font-size:1.1rem}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type-description{font-size:.875rem;font-weight:400;color:#7a7a7a;line-height:1.5}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type:hover{background:rgba(47,180,75,.3)}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type:hover .icon-wrap{transform:scale(1.1)}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type .pro-badge{position:absolute;top:10px;right:10px;background:#fdb837;color:#fff;padding:7px;border-radius:7px;font-size:12px;font-weight:400;display:flex;align-items:center;justify-content:center;line-height:1;box-shadow:0 0 5px rgba(0,0,0,.1);transition:all .3s ease}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type .pro-badge i{height:auto;width:auto;font-size:18px;margin-right:3px}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type.pro-feature{border-color:#fdb837}.igd-tinymce-modal .igd-tinymce-types .igd-tinymce-type.pro-feature:hover{background:rgba(253,184,55,.1)}.igd-tinymce-modal .igd-module-shortcodes{max-width:500px;margin:auto;align-items:center;text-align:center;border-color:#555!important;box-shadow:0 0 .2rem rgba(0,0,0,.1);border-radius:.5rem;background-color:#fff;padding:3rem 5rem}.igd-tinymce-modal .igd-module-shortcodes h2{margin:0 0 1rem 0;font-size:28px}.igd-tinymce-modal .igd-module-shortcodes .description{display:block;line-height:1.5;margin-bottom:1rem;font-size:.875rem}.igd-tinymce-modal .igd-module-shortcodes .components-select-control{width:100%}.igd-tinymce-modal .igd-module-shortcodes .components-input-control__backdrop,.igd-tinymce-modal .igd-module-shortcodes .components-select-control__input{height:45px!important;border-radius:.5rem!important;border-color:rgba(47,180,75,.3)!important;background-color:rgba(47,180,75,.05)!important}.igd-shortcode-wrap{-webkit-user-select:none;-moz-user-select:none;user-select:none;overflow-y:auto;margin-bottom:1rem;color:#333;box-sizing:border-box}.igd-shortcode-wrap *{box-sizing:inherit}.igd-shortcode-wrap::-webkit-scrollbar{width:5px}.igd-shortcode-wrap::-webkit-scrollbar-thumb{background:var(--color-primary-light);border-radius:10px}.igd-shortcode-wrap::-webkit-scrollbar-track{background:#ddd;border-radius:10px}.igd-shortcode-wrap.igd-shortcode-browser,.igd-shortcode-wrap.igd-shortcode-gallery,.igd-shortcode-wrap.igd-shortcode-search{border:1px solid #ddd;border-radius:.5rem}.igd-shortcode-wrap.igd-shortcode-browser .igd-file-browser,.igd-shortcode-wrap.igd-shortcode-gallery .igd-file-browser,.igd-shortcode-wrap.igd-shortcode-search .igd-file-browser{align-items:stretch}.igd-shortcode-wrap.igd-shortcode-browser .igd-file-browser .igd-details,.igd-shortcode-wrap.igd-shortcode-browser .igd-file-browser .igd-file-browser-header,.igd-shortcode-wrap.igd-shortcode-gallery .igd-file-browser .igd-details,.igd-shortcode-wrap.igd-shortcode-gallery .igd-file-browser .igd-file-browser-header,.igd-shortcode-wrap.igd-shortcode-search .igd-file-browser .igd-details,.igd-shortcode-wrap.igd-shortcode-search .igd-file-browser .igd-file-browser-header{top:0}.igd-shortcode-wrap.igd-shortcode-search .igd-file-browser-header{height:70px}.igd-shortcode-wrap.igd-shortcode-search .igd-file-browser-header .header-action{width:100%}.igd-shortcode-wrap.igd-shortcode-search .igd-file-browser-header .header-action .igd-search-bar{margin-left:0;width:100%;height:50px;position:relative}.igd-shortcode-wrap.igd-shortcode-audioVideo{overflow:hidden}.igd-shortcode-wrap.igd-shortcode-slider{overflow-y:unset}.igd-shortcode-wrap.igd-shortcode-media{border:1px solid #eee;overflow-y:unset}.igd-video-player video{position:static;transform:none}.igd-video-player audio{height:revert!important}.igd-download-link,.igd-view-link{display:block}.igd-embed-image{max-width:100%}.igd-slider{--slide-height:300px;--slide-gap:5px}.igd-slider .slick-next,.igd-slider .slick-prev{z-index:9}.igd-slider .slick-next:before,.igd-slider .slick-prev:before{display:none}.igd-slider .slick-prev{left:-25px}.igd-slider .slick-next{right:-25px}.igd-slider .slick-dots{position:static}.igd-slider .slick-dots li button:before{font-size:15px}.igd-slider .slider-img-wrap{height:100%;width:100%;position:relative}.igd-slider .slider-img-wrap img{height:100%;width:100%;-o-object-fit:cover;object-fit:cover}.igd-slider .slider-content-wrap{position:absolute;top:0;left:0;right:0;padding:1rem;color:#fff;text-align:center;width:100%;height:100%;opacity:0;background:linear-gradient(to bottom,rgba(0,0,0,.5) 50%,rgba(0,0,0,0) 100%);box-sizing:border-box;transition:all .3s ease-in-out;overflow:hidden;display:flex;align-items:center;justify-content:center}.igd-slider .slider-content-wrap h3{font-size:1rem;margin-bottom:0;color:#fff}.igd-slider .slider-content-wrap p{font-size:.875rem;margin-bottom:0;color:#fff}.igd-slider .slider-actions{display:flex;justify-content:center;align-items:center;margin:10px 0}.igd-slider .slider-actions .slider-action{cursor:pointer;transition:transform .3s ease-in-out}.igd-slider .slider-actions .slider-action.action-download{margin-left:20px}.igd-slider .slider-actions .slider-action svg{width:30px;height:30px;fill:#fff}.igd-slider .slider-actions .slider-action:hover{transform:scale(1.1)}.igd-slider .slick-slide{height:var(--slide-height)}.igd-slider .slick-slide>div{height:100%;position:relative;margin:0 var(--slide-gap)}.igd-slider .slick-slide .slider-item-wrap{position:absolute;width:100%;height:100%}.igd-slider .slick-slide:hover .slider-content-wrap{opacity:1}.igd-access-denied-placeholder{max-width:500px;margin:20px auto;padding:2rem;background:#f1f1f1;border-radius:.5rem;text-align:center}.igd-access-denied-placeholder img{max-width:100px;margin-bottom:15px}.igd-access-denied-placeholder h3{font-size:1.5rem;font-weight:600;margin-bottom:1rem}.igd-access-denied-placeholder p{font-size:1rem;margin-bottom:1rem;color:#555}.igd-disqus-wrap{display:none}.igd-admin-notice{margin-bottom:10px!important;display:flex;padding:10px!important}.igd-admin-notice .notice-main{display:flex;flex-direction:column}.igd-admin-notice .notice-image{margin-right:15px}.igd-admin-notice .notice-image img{width:90px}.igd-admin-notice .notice-text p{line-height:1.5;font-size:.85rem;margin:0;padding:0}.igd-admin-notice .notice-actions{display:flex;align-items:center;margin-top:10px}.igd-admin-notice .notice-actions a{margin-right:15px;text-decoration:none;transition:all .3s ease-in-out}.igd-admin-notice .notice-actions a:last-child{margin-right:0}.igd-admin-notice .notice-actions a.button-primary{background:#248c3a;border-color:#47cf64;padding:3px 10px}.igd-admin-notice .notice-actions a.button-primary:hover{background:#2fb44b}.igd-rating-notice .notice-overlay-wrap{position:fixed;top:0;left:0;background:rgba(0,0,0,.5);width:100%;height:100%;align-items:center;justify-content:center;display:none;z-index:9999}.igd-rating-notice .notice-overlay-wrap .notice-overlay{background:#fff;width:-moz-max-content;width:max-content;padding:30px;border-radius:15px;position:relative}.igd-rating-notice .notice-overlay-wrap .notice-overlay h4{margin-top:0;margin-bottom:10px}.igd-rating-notice .notice-overlay-wrap .notice-overlay-actions{display:flex;flex-flow:column;line-height:1.8}.igd-rating-notice .notice-overlay-wrap .notice-overlay-actions a{text-decoration:none}.igd-rating-notice .notice-overlay-wrap .notice-overlay-actions a:nth-child(2){color:#000}.igd-rating-notice .notice-overlay-wrap .notice-overlay-actions a:nth-child(3){color:#777}.igd-rating-notice .notice-overlay-wrap .notice-overlay-actions a:hover{color:#248c3a}.igd-rating-notice .notice-overlay-wrap .notice-overlay .close-notice{position:absolute;top:-5px;right:-5px;border-radius:30px;border:1px solid transparent;font-size:16px;cursor:pointer;width:30px;height:30px;line-height:30px;display:flex;align-items:center;justify-content:center;transition:all .3s ease-in-out}.igd-rating-notice .notice-overlay-wrap .notice-overlay .close-notice:hover{color:#f96;border-color:#f96}.igd-account-notice h4{font-size:1rem;margin:5px 0}.igd-acf-field .igd-items-table .file-actions .button{display:inline-flex;align-items:center}.igd-acf-field .igd-acf-button{display:flex;align-items:center;margin-top:15px}.igd-acf-field .igd-acf-button img{margin-right:7px}body.tutor-screen-course-builder .tutor-dropdown-icon-pack[data-video_source=google_drive] [data-for=google_drive]{display:block}.tutor-video-upload-wrap:has(.tutor-dropdown-icon-pack[data-video_source=google_drive]) .video_source_wrap_google_drive{display:block!important}.video_source_wrap_google_drive .google_drive-video-data{display:none}.video_source_wrap_google_drive.tutor-has-video .google_drive-video-data{display:block}.video_source_wrap_google_drive.tutor-has-video .video-metabox-source-google_drive-upload{display:none}.tutor_lesson_modal_form .tutorIgdUploadAttachmentBtn{margin-left:15px}.tutor_lesson_modal_form .igd-tutor-attachment i.tutor-icon-brand-google-drive{position:absolute;right:10px;top:10px}.et-fb-modules-list .igd_browser,.et-fb-modules-list .igd_download,.et-fb-modules-list .igd_embed,.et-fb-modules-list .igd_gallery,.et-fb-modules-list .igd_media,.et-fb-modules-list .igd_search,.et-fb-modules-list .igd_shortcodes,.et-fb-modules-list .igd_slider,.et-fb-modules-list .igd_uploader,.et-fb-modules-list .igd_view{max-height:100px!important}.et-fb-modules-list .igd_browser:before,.et-fb-modules-list .igd_download:before,.et-fb-modules-list .igd_embed:before,.et-fb-modules-list .igd_gallery:before,.et-fb-modules-list .igd_media:before,.et-fb-modules-list .igd_search:before,.et-fb-modules-list .igd_shortcodes:before,.et-fb-modules-list .igd_slider:before,.et-fb-modules-list .igd_uploader:before,.et-fb-modules-list .igd_view:before{content:""!important;height:30px;display:block;background-size:contain;background-repeat:no-repeat;background-position:center center;margin-bottom:10px!important}.et-fb-modules-list .igd_browser .et_module_title,.et-fb-modules-list .igd_download .et_module_title,.et-fb-modules-list .igd_embed .et_module_title,.et-fb-modules-list .igd_gallery .et_module_title,.et-fb-modules-list .igd_media .et_module_title,.et-fb-modules-list .igd_search .et_module_title,.et-fb-modules-list .igd_shortcodes .et_module_title,.et-fb-modules-list .igd_slider .et_module_title,.et-fb-modules-list .igd_uploader .et_module_title,.et-fb-modules-list .igd_view .et_module_title{line-height:1.5!important}.et-fb-modules-list .igd_browser:before{background-image:url(../images/shortcode-builder/types/browser.svg)}.et-fb-modules-list .igd_uploader:before{background-image:url(../images/shortcode-builder/types/uploader.svg)}.et-fb-modules-list .igd_gallery:before{background-image:url(../images/shortcode-builder/types/gallery.svg)}.et-fb-modules-list .igd_media:before{background-image:url(../images/shortcode-builder/types/media.svg)}.et-fb-modules-list .igd_search:before{background-image:url(../images/shortcode-builder/types/search.svg)}.et-fb-modules-list .igd_embed:before{background-image:url(../images/shortcode-builder/types/embed.svg)}.et-fb-modules-list .igd_view:before{background-image:url(../images/shortcode-builder/types/view.svg)}.et-fb-modules-list .igd_download:before{background-image:url(../images/shortcode-builder/types/download.svg)}.et-fb-modules-list .igd_shortcodes:before{background-image:url(../images/shortcode-builder/types/shortcodes.svg)}.et-fb-modules-list .igd_slider:before{background-image:url(../images/shortcode-builder/types/slider.svg)}#igd-app *{box-sizing:border-box}#igd-shortcode-builder *{box-sizing:border-box}.igd_file_browser_page #wpcontent{padding-left:0}.igd_file_browser_page #wpbody-content{padding-bottom:0}.igd_file_browser_page #wpfooter{display:none}.igd_file_browser_page .igd-body,.igd_file_browser_page .igd-details-wrap,.igd_file_browser_page .igd-sidebar-wrap{min-height:calc(100vh - 92px)}@media (min-width:992px){.igd_file_browser_page .igd-details-wrap,.igd_file_browser_page .igd-sidebar-wrap{top:92px}}body.igd-admin-page #wpbody-content>div.error:not(.igd-admin-notice),body.igd-admin-page #wpbody-content>div.notice:not(.igd-admin-notice),body.igd-admin-page #wpbody-content>div.updated:not(.igd-admin-notice){display:none!important}body.igd-admin-page #wpfooter{display:none}li#toplevel_page_integrate-google-drive img{width:20px}li#toplevel_page_integrate-google-drive .wp-submenu a[href="admin.php?page=integrate-google-drive-getting-started"]{color:#fbbc04!important}li#toplevel_page_integrate-google-drive .wp-submenu a[href="admin.php?page=integrate-google-drive-getting-started"]{border-top:1px solid hsla(0,0%,100%,.2);border-bottom:1px solid hsla(0,0%,100%,.2);padding:8px 12px;display:flex;align-items:center;margin:6px 0}li#toplevel_page_integrate-google-drive .wp-submenu a[href="admin.php?page=integrate-google-drive-recommended-plugins"]{margin-top:6px;padding-top:8px;padding-right:0;border-top:1px solid hsla(0,0%,100%,.2)}li#toplevel_page_integrate-google-drive .wp-submenu a[href="admin.php?page=integrate-google-drive-account"]{margin-top:6px;padding-top:8px;border-top:1px solid hsla(0,0%,100%,.2)}li#toplevel_page_integrate-google-drive .wp-submenu li:last-child a{border-bottom:0;margin-bottom:0}.igd-pro-modal{width:350px;background:#111;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:30px 20px;border-radius:12px;box-shadow:0 0 10px rgba(0,0,0,.2);position:relative;text-align:center}.igd-pro-modal-wrap{width:100%;height:100%;position:fixed;top:0;left:0;z-index:99999999;background:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center}.igd-pro-modal .igd-pro-modal-close{position:absolute;top:15px;right:15px;cursor:pointer;font-size:30px;color:#777;padding:10px}.igd-pro-modal img{width:200px;position:absolute;top:-80px}.igd-pro-modal h3{font-size:1.2rem;font-weight:600;color:#fff;margin:7px 0 2px}.igd-pro-modal h2{color:#ff9458;margin:20px 0 20px 0;font-size:2.5rem;font-weight:700}.igd-pro-modal h2 .upto{font-size:14px;margin-right:5px}.igd-pro-modal p{font-size:.875rem;color:#999;margin-bottom:24px;line-height:1.2;margin-top:7px}.igd-pro-modal a{padding:15px 20px}.igd-pro-modal a:hover{color:#fff}.igd-pro-modal .discount{display:flex;align-items:center;justify-content:center;flex-direction:column;position:relative;margin:60px 0 15px}.igd-pro-modal .discount-special{color:#ff631a;position:absolute;font-size:28px;top:-24px;background:#111;padding:5px;text-transform:uppercase}.igd-pro-modal .discount-text{border:2px solid #ff631a;font-size:36px;padding:20px 20px 22px;border-radius:5px;font-weight:700;color:#ff631a}.igd-pro-modal .timer{display:flex;align-items:center;text-align:center}.igd-pro-modal .timer>div{display:inline-block;margin:0 14px;width:47px;background-size:contain;line-height:40px;background:url(../images/timer-bg.svg) no-repeat 0 0}.igd-pro-modal .timer>div span:first-child{font-size:28px;color:#fff;height:47px;margin:0 0 2px;display:flex;align-items:center;justify-content:center;position:relative;z-index:1}.igd-pro-modal .timer>div span:last-child{font-family:Arial,serif;font-size:12px;text-transform:uppercase;color:#999}.igd-pro-modal-actions{margin-top:10px}
  • integrate-google-drive/trunk/assets/css/frontend-rtl.css

    r2996843 r3004719  
    1 .igd-btn{cursor:pointer;width:-moz-max-content;width:max-content;display:flex;align-items:center;color:#fff;padding:8px 12px;border-radius:5px;border:1px solid transparent;line-height:1;text-decoration:none;transition:all .2s ease-in-out;font-size:.875rem}.igd-btn i{margin-left:7px}.igd-btn i:nth-child(2){margin-left:0;margin-right:7px}.igd-btn .igd-spinner{margin:2px 0 0 10px}.igd-btn.btn-primary{background-color:#2fb44b}.igd-btn.btn-primary:hover{background-color:#248c3a}.igd-btn.btn-secondary{background-color:#f1f1f1;border-color:#f1f1f1}.igd-btn.btn-secondary:hover{background-color:#e6e6e6}.igd-btn.btn-success{background-color:#00d084;border-color:#00d084}.igd-btn.btn-success:hover{background-color:#00c674}.igd-btn.btn-warning{background-color:#f9d6b7;color:#a65300}.igd-btn.btn-warning:hover{background-color:#fc9}.igd-btn.btn-danger{background-color:#f8d7da;color:#d8000c}.igd-btn.btn-danger:hover{background-color:#f5c6cb}.igd-btn.btn-info{background-color:#b4d8e7;color:#1f4e6e}.igd-btn.btn-info:hover{background-color:#00a5e6}.igd-btn.btn-light{background-color:#f1f1f1;border-color:#f1f1f1}.igd-btn.btn-light:hover{background-color:#e6e6e6}.igd-btn.btn-dark{background-color:#0071e6;border-color:#0071e6}.igd-btn.btn-dark:hover{background-color:#0058c6}.igd-btn.btn-link{background-color:transparent;border-color:transparent;color:#0071e6}.igd-btn.btn-link:hover{color:#0058c6}.igd-btn.btn-outline-primary{background-color:transparent;border-color:var(--color-primary);color:var(--color-primary)}.igd-btn.btn-outline-primary:hover{background-color:var(--color-primary);color:#fff}.igd-btn.btn-outline-secondary{background-color:transparent;border-color:#f1f1f1;color:#f1f1f1}.igd-btn.btn-outline-secondary:hover{background-color:#f1f1f1;color:#fff}.igd-btn.btn-outline-success{background-color:transparent;border-color:#00d084;color:#00d084}.igd-btn.btn-outline-success:hover{background-color:#00d084;color:#fff}.igd-btn.btn-outline-warning{background-color:transparent;border-color:#ffc800;color:#ffc800}.igd-btn.btn-outline-warning:hover{background-color:#ffc800;color:#fff}.igd-btn.btn-outline-danger{background-color:transparent;border-color:#ff5b5b;color:#ff5b5b}.igd-btn.btn-outline-danger:hover{background-color:#ff5b5b;color:#fff}.igd-btn.btn-outline-info{background-color:transparent;border-color:#00b5ff;color:#00b5ff}.igd-btn.btn-outline-info:hover{background-color:#00b5ff;color:#fff}.igd-btn.btn-outline-light{background-color:transparent;border-color:#f1f1f1;color:#f1f1f1}.igd-btn.btn-outline-light:hover{background-color:#f1f1f1;color:#fff}.igd-btn.btn-outline-dark{background-color:transparent;border-color:#0071e6;color:#0071e6}.igd-btn.btn-outline-dark:hover{background-color:#0071e6;color:#fff}.igd-btn.btn-outline-link{background-color:transparent;border-color:#0071e6;color:#0071e6}.igd-btn.btn-outline-link:hover{background-color:#0071e6;color:#fff}.igd-btn.disabled{color:#999;cursor:not-allowed;background:#f1f1f1!important;border-color:#ccc}.igd-tooltip{z-index:9999999!important;opacity:1!important}.igd-tooltip:before{z-index:-1!important}.igd-notice{border-radius:5px;border:1px solid #f1f1f1;border-right-width:5px;background:#fff;box-shadow:0 1px 1px 0 rgba(0,0,0,.1);padding:1rem;margin:10px 0;display:flex}.igd-notice .igd-notice-content{margin:0;text-align:right;font-size:.9rem;line-height:1.5;color:#757575}.igd-notice.igd-notice-info{border-color:rgba(0,181,255,.5);background:rgba(0,181,255,.1);border-right-color:#00b5ff}.igd-notice.igd-notice-warning{border-color:rgba(255,200,0,.5);background:rgba(255,200,0,.1);border-right-color:#ffc800}@media (max-width:767px){.igd-notice .igd-notice-content{flex-wrap:wrap}}.igd-hidden{display:none!important}.file-item-checkbox{cursor:pointer;display:none;border-radius:50%;transition:all .3s ease;width:-moz-max-content;width:max-content;padding:5px}.file-item-checkbox .box{width:20px;height:20px;border:1px solid #e5e5e5;border-radius:50%;display:flex;align-items:center;justify-content:center;transition:all .3s ease;position:relative;box-shadow:rgba(0,0,0,.05) 0 6px 24px 0,rgba(0,0,0,.08) 0 0 0 1px}.file-item-checkbox .box:hover{border-color:var(--color-primary);box-shadow:0 0 0 2px var(--color-primary-lighter)}.file-item-checkbox:hover{background-color:rgba(0,0,0,.15)}.file-item-checkbox:hover .box{box-shadow:0 0 0 2px var(--color-primary-lighter)}.file-item-checkbox.checked{background-color:rgba(0,0,0,.15)}.file-item-checkbox.checked .box{border-color:var(--color-primary-lighter);background:var(--color-primary);color:#fff;box-shadow:0 0 0 1px var(--color-primary-lighter)}.file-item-checkbox.checked .box:after{content:"";width:5px;height:10px;border:solid #fff;border-width:0 0 2px 2px;transform:rotate(-45deg);box-sizing:border-box;margin-top:-2px}.igd-swal{z-index:99999!important}.igd-swal .swal2-confirm{background-color:#2fb44b!important}.igd-swal .swal2-close:focus{background:100% 0;color:inherit;box-shadow:none}.igd-swal .swal2-cancel,.igd-swal .swal2-deny{background-color:#f08080!important}.igd-swal.save-settings-toast .swal2-popup{display:flex!important;padding:10px}.igd-swal.save-settings-toast .swal2-popup .swal2-html-container{margin-right:5px}.igd-swal.igd-swal-toast .swal2-popup{display:flex!important;padding:10px}.igd-swal.igd-swal-toast .swal2-popup .swal2-html-container{margin-right:5px}.igd-swal .swal2-input{width:auto!important}.igd-swal .swal2-title{font-size:1.2rem;color:#333;font-weight:500}.igd-swal .swal2-html-container{font-size:1rem;color:#555}.igd-swal .swal2-textarea:focus{border-color:#ddd!important;box-shadow:none!important}.igd-swal.igd-review-remind-swal .swal2-deny{background-color:#999!important}.igd-loading-spinner{display:flex;justify-content:center;margin-top:3rem}.igd-loading-spinner svg{width:2.5rem;height:2.5rem}.igd-divi-loading-spinner{display:flex;justify-content:center}.igd-divi-loading-spinner svg{width:100px;height:100px}.igd-spinner{border:2px solid #f3f3f3;border-top:2px solid #3498db;border-radius:50%;width:20px;height:20px;animation:igd-spin 2s linear infinite;display:flex}.igd-spinner.spinner-large{border-width:4px;width:50px;height:50px;animation:igd-spin 1s linear infinite;margin:30px auto}@keyframes igd-spin{0%{transform:rotate(0)}100%{transform:rotate(-360deg)}}.igd-disabled{pointer-events:none!important}.google-drive_page_integrate-google-drive-shortcode-builder{background:#f7f8fa}.google-drive_page_integrate-google-drive-shortcode-builder #wpfooter{display:none}@media (max-width:767px){.google-drive_page_integrate-google-drive-shortcode-builder #wpcontent{padding-left:10px}}.igd-shortcode-builder{width:calc(100% + 20px);margin-right:-20px}@media (max-width:767px){.igd-shortcode-builder{width:100%;margin-right:0}}.igd-shortcode-builder *{box-sizing:border-box}.igd-shortcode-builder-header{display:flex;flex-wrap:wrap;align-items:center;background:#fff;padding:12px 15px;border-bottom:1px solid #e5e5e5;justify-content:space-between;z-index:99;position:sticky;top:32px}.igd-shortcode-builder-header .header-title{display:flex;align-items:center;font-size:1.2rem;font-weight:500;cursor:pointer}.igd-shortcode-builder-header .header-title img{margin-left:10px}.igd-shortcode-builder-header .header-title .shortcode-title{background:#fff;border-radius:7px;padding:5px 12px;border:1px solid rgba(92,99,126,.3);position:relative;margin-right:10px}.igd-shortcode-builder-header .header-actions{display:flex}.igd-shortcode-builder-header .header-actions .btn-back{background:#5c637e;color:#fff;border-color:rgba(47,180,75,.3)}.igd-shortcode-builder-header .header-actions .btn-back:hover{background:#464c61}.igd-shortcode-builder-header .header-actions button{margin-right:15px}@media (max-width:767px){.igd-shortcode-builder-header{margin-right:-10px;margin-left:-10px;padding:10px;top:-50px}.igd-shortcode-builder-header .header-title img{width:30px;margin-left:5px}.igd-shortcode-builder-header .header-title label{font-size:1rem}.igd-shortcode-builder-header .header-title .shortcode-title{height:35px;min-height:unset;margin-right:auto;border-radius:5px;color:#555;font-size:.875rem;font-weight:400}.igd-shortcode-builder-header .header-actions .add-new-btn{margin-right:auto}.igd-shortcode-builder-header .header-actions button{overflow:hidden;padding:7px;font-size:.8rem;margin-right:10px}.igd-shortcode-builder-header .header-actions button:first-child{margin-right:0}.igd-shortcode-builder-header .header-actions button i{margin-left:3px}.igd-shortcode-builder-header .header-actions button span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.igd-shortcode-builder-header:has(.btn-back) .header-title{width:100%}.igd-shortcode-builder-header:has(.btn-back) .header-title label{max-width:35%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-shortcode-builder-header:has(.btn-back) .header-actions{width:100%;justify-content:center;margin-top:15px}}.igd-shortcode-builder .no-item-placeholder{padding:3rem 5rem;border-radius:10px;border:1px solid rgba(47,180,75,.3);background:#fff;margin:50px auto 0;width:-moz-max-content;width:max-content;display:flex;align-items:center;justify-content:center;flex-direction:column}.igd-shortcode-builder .no-item-placeholder img{width:200px;margin-right:-40px}.igd-shortcode-builder .no-item-placeholder h3{color:#7a7a7a;margin:1.5rem;font-weight:500}.igd-shortcode-builder .no-item-placeholder button{margin-top:1rem}.igd-shortcode-builder .selection-actions-wrap{display:flex;align-items:center;margin-top:30px}.igd-shortcode-builder .selection-actions-wrap .selection-count{font-weight:500;background:rgba(47,180,75,.1);padding:10px 10px;border-radius:5px;height:35px;border:1px solid rgba(47,180,75,.3);display:flex;align-items:center;justify-content:center;font-size:.9rem}.igd-shortcode-builder .selection-actions-wrap .igd-btn{margin-right:10px;height:35px}.igd-shortcode-builder .igd-shortcode-list{width:100%;border-collapse:separate;border-spacing:0 20px}.igd-shortcode-builder .igd-shortcode-list-header{display:flex;align-items:center;justify-content:space-between;margin-top:15px;margin-bottom:15px}.igd-shortcode-builder .igd-shortcode-list-header .igd-shortcode-list-title{font-size:1.2rem;font-weight:600;margin:0;display:flex;align-items:center}.igd-shortcode-builder .igd-shortcode-list-header .igd-shortcode-list-title .shortcode-list-count{font-size:1rem;font-weight:400;color:#777;margin-right:7px}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings i{width:25px;height:25px;font-size:25px;color:#5c637e;cursor:pointer}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .list-settings-tooltip{display:flex;flex-wrap:wrap;justify-content:space-between;max-width:580px}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .list-settings-tooltip .settings-columns{width:100%;margin-bottom:10px}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .settings-wrap{margin-bottom:5px}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .settings-wrap h4{margin-top:0;margin-bottom:7px}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .settings-wrap .components-select-control{min-width:100px}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .settings-wrap .components-select-control__input{height:35px}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .settings-wrap .components-input-control__backdrop{border-color:#eee}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .column-options{display:flex}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .column-options .igd-column-setting{margin-bottom:10px;margin-left:10px;border:1px solid #eee;padding:5px 7px;border-radius:5px}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .column-options .igd-column-setting .components-base-control__field{display:flex;align-items:center}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .column-options .components-checkbox-control__input-container{margin-left:5px}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .components-checkbox-control__label{text-transform:capitalize;font-size:.75rem;font-weight:500}.igd-shortcode-builder .igd-shortcode-list-wrap{padding:20px}.igd-shortcode-builder .igd-shortcode-list thead{background:#fff}.igd-shortcode-builder .igd-shortcode-list thead th{padding:24px 15px;font-size:.875rem;color:#555;border-right-width:0;border-left-width:0;margin-bottom:1rem}.igd-shortcode-builder .igd-shortcode-list thead th:first-child{border-radius:0 10px 10px 0}.igd-shortcode-builder .igd-shortcode-list thead th:last-child{border-radius:10px 0 0 10px;text-align:left;padding-left:70px}.igd-shortcode-builder .igd-shortcode-list tbody td,.igd-shortcode-builder .igd-shortcode-list tbody th{padding:15px 20px;font-size:.875rem;color:#555;text-align:right;white-space:nowrap}.igd-shortcode-builder .igd-shortcode-list tbody td:first-child,.igd-shortcode-builder .igd-shortcode-list tbody th:first-child{border-radius:0 10px 10px 0}.igd-shortcode-builder .igd-shortcode-list tbody td:last-child,.igd-shortcode-builder .igd-shortcode-list tbody th:last-child{border-radius:10px 0 0 10px}.igd-shortcode-builder .igd-shortcode-list-item{transition:all .3s ease;background:#fff}.igd-shortcode-builder .igd-shortcode-list-item:hover{background:#eaf2fa}.igd-shortcode-builder .igd-shortcode-list .col-selection{width:60px;text-align:center;padding-left:0}.igd-shortcode-builder .igd-shortcode-list .col-id{width:30px}.igd-shortcode-builder .igd-shortcode-list .col-title{text-align:right}.igd-shortcode-builder .igd-shortcode-list .col-shortcode-type{text-align:right}.igd-shortcode-builder .igd-shortcode-list .col-shortcode-type>div{display:flex;align-items:center;justify-content:flex-start}.igd-shortcode-builder .igd-shortcode-list .col-shortcode-type>div img{margin-left:10px;width:24px}.igd-shortcode-builder .igd-shortcode-list .col-shortcode-status{width:100px;text-align:center}.igd-shortcode-builder .igd-shortcode-list .col-locations{text-align:center}.igd-shortcode-builder .igd-shortcode-list .col-locations .location-count{text-align:center;font-weight:700;cursor:pointer;border:1px solid #5c637e;border-radius:5px;padding:5px 10px;color:#5c637e}.igd-shortcode-builder .igd-shortcode-list .col-locations .location-count:hover{background:#5c637e;color:#fff}.igd-shortcode-builder .igd-shortcode-list .col-locations h3{margin-top:0;margin-bottom:10px;color:#555}.igd-shortcode-builder .igd-shortcode-list .col-locations .locations-tooltip{padding:15px;max-width:250px}.igd-shortcode-builder .igd-shortcode-list .col-locations .location-item{margin-bottom:7px;overflow:hidden}.igd-shortcode-builder .igd-shortcode-list .col-locations .location-item a{text-decoration:none;display:flex;align-items:center;overflow:hidden}.igd-shortcode-builder .igd-shortcode-list .col-locations .location-item a .location-index{margin-left:5px}.igd-shortcode-builder .igd-shortcode-list .col-locations .location-item a .location-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.igd-shortcode-builder .igd-shortcode-list .col-locations .location-item a i{margin-right:7px}.igd-shortcode-builder .igd-shortcode-list .col-created{text-align:center}.igd-shortcode-builder .igd-shortcode-list .col-code>div{display:flex;align-items:center;justify-content:flex-start;position:relative;width:-moz-max-content;width:max-content;margin:auto}.igd-shortcode-builder .igd-shortcode-list .col-code>div code{padding:7px 35px 7px 10px;background:#fff;color:#5c637e;border-radius:7px;border:1px solid rgba(92,99,126,.2);font-size:12px}.igd-shortcode-builder .igd-shortcode-list .col-code>div i{right:3px;color:#5c637e;padding:7px;border-radius:30px;height:auto;width:auto;cursor:pointer;position:absolute;font-size:24px}.igd-shortcode-builder .igd-shortcode-list .col-actions{padding-left:10px;text-align:left}.igd-shortcode-builder .igd-shortcode-list .col-actions button{padding:7px 10px;display:inline-flex;background:#5c637e;height:35px}.igd-shortcode-builder .igd-shortcode-list .col-actions button:hover{background:#464c61}.igd-shortcode-builder .igd-shortcode-list .col-actions .btn-tools{margin-right:15px;padding:0;background:100% 0!important;color:#5c637e}.igd-shortcode-builder .igd-shortcode-list .col-actions .btn-tools img{width:26px}.igd-shortcode-builder .igd-shortcode-list .col-actions .options-tooltip{padding:0;border-radius:7px;box-shadow:0 0 10px rgba(0,0,0,.1)}.igd-shortcode-builder .igd-shortcode-list .col-actions .action-tools{display:flex;flex-direction:column}.igd-shortcode-builder .igd-shortcode-list .col-actions .action-tools button{padding:10px 15px;display:flex;background:100% 0;color:#555;justify-content:flex-start;border-radius:0;border-bottom:1px solid #e5e5e5;font-size:.875rem;width:100%}.igd-shortcode-builder .igd-shortcode-list .col-actions .action-tools button:hover{background:rgba(92,99,126,.1)}.igd-shortcode-builder .igd-shortcode-list .col-actions .action-tools button:last-child{border-bottom:none;margin-bottom:0}.igd-shortcode-builder .igd-shortcode-list-footer{display:flex;align-items:center;justify-content:center}@media (max-width:767px){.igd-shortcode-builder .igd-shortcode-list-wrap{overflow-x:auto;margin-left:10px}}.igd-shortcode-builder .igd-shortcode-builder-form{overflow-y:unset}.igd-shortcode-builder-form{display:flex;flex-wrap:wrap;align-items:flex-start}.igd-shortcode-builder-form .shortcode-builder-sidebar{width:20%;background:#fff;max-width:200px;padding:20px;position:sticky;top:100px;min-height:100vh;border-left:1px solid #eaeaea}.igd-shortcode-builder-form .shortcode-builder-sidebar.tab-advanced,.igd-shortcode-builder-form .shortcode-builder-sidebar.tab-notifications{top:0}.igd-shortcode-builder-form .shortcode-builder-sidebar.tab-permissions{top:-30px}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs{display:flex;flex-direction:column;align-items:center}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab{display:flex;align-items:center;flex-direction:column;justify-content:center;padding:1rem;background:#e9f9ec;border:1px dashed rgba(47,180,75,.3);width:100%;color:#333;border-radius:10px}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap{max-width:100%;position:relative;cursor:pointer;width:120px;display:flex;align-items:center;justify-content:center}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap:not(:last-child){margin-bottom:40px}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap:not(:last-child):after{content:"";height:40px;width:12px;background:#f7f8fa;position:absolute;top:100%}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap.active .shortcode-tab{background:#47cf64;color:#fff}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap.active .shortcode-tab .tab-icon{background-color:#fff}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap.active:after{background:#47cf64}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap:not(.active):hover .shortcode-tab{background:rgba(47,180,75,.3)}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-icon{width:30px;height:30px;margin-bottom:10px;background-color:#2fb44b;mask-size:cover;-webkit-mask-size:cover}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-icon.icon-type{-webkit-mask:url(../images/shortcode-builder/tabs/type.svg) no-repeat center/cover;mask:url(../images/shortcode-builder/tabs/type.svg) no-repeat center/cover}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-icon.icon-sources{-webkit-mask:url(../images/shortcode-builder/tabs/sources.svg) no-repeat center;mask:url(../images/shortcode-builder/tabs/sources.svg) no-repeat center}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-icon.icon-filters{-webkit-mask:url(../images/shortcode-builder/tabs/filters.svg) no-repeat center;mask:url(../images/shortcode-builder/tabs/filters.svg) no-repeat center}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-icon.icon-advanced{-webkit-mask:url(../images/shortcode-builder/tabs/advanced.svg) no-repeat center;mask:url(../images/shortcode-builder/tabs/advanced.svg) no-repeat center}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-icon.icon-notifications{-webkit-mask:url(../images/shortcode-builder/tabs/notifications.svg) no-repeat center;mask:url(../images/shortcode-builder/tabs/notifications.svg) no-repeat center}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-icon.icon-permissions{-webkit-mask:url(../images/shortcode-builder/tabs/permissions.svg) no-repeat center;mask:url(../images/shortcode-builder/tabs/permissions.svg) no-repeat center}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-name{font-size:.85rem;text-transform:uppercase;font-weight:500;white-space:nowrap}@media (max-width:767px){.igd-shortcode-builder-form .shortcode-builder-sidebar{width:100%;max-width:100%;background:100% 0;height:auto;min-height:auto;margin:20px 0;padding:0;position:static;border:0}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs{flex-direction:row}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab{background:100% 0;padding:0;border:0;color:#777}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-name{font-size:.7rem;font-weight:400;text-transform:capitalize}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-icon{width:26px;height:26px;margin-bottom:7px;background:#777}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap{width:auto}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap:not(:last-child){margin-bottom:0}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap:not(:last-child):after{display:none}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap.active .shortcode-tab{background:100% 0;color:#2fb44b}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap.active .shortcode-tab .tab-icon{background-color:#2fb44b}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap.active .shortcode-tab .tab-name{font-weight:500}}.igd-shortcode-builder-form .shortcode-builder-content{flex:1}.igd-shortcode-builder-form:has(.shortcode-builder-sidebar) .shortcode-builder-content{width:80%;max-width:calc(100% - 200px);min-height:100vh;display:flex;flex-direction:column}.igd-shortcode-builder-form .form-footer{display:flex;align-items:center;justify-content:space-between;margin-top:auto;position:sticky;bottom:0;padding:10px 15px;border-top:1px solid #eaeaea;background:#fff;z-index:9}.igd-shortcode-builder-form .form-footer button:first-child,.igd-shortcode-builder-form .form-footer button:last-child{background:#fff;color:#2fb44b;border-color:rgba(47,180,75,.3)}.igd-shortcode-builder-form .form-footer button:first-child:hover,.igd-shortcode-builder-form .form-footer button:last-child:hover{background:#d5f0db}.igd-shortcode-builder-form .form-footer button.disabled{opacity:.5;pointer-events:none;background:#ddd;border-color:#ddd}.igd-shortcode-builder-form .form-footer button.disabled:hover{background:#ddd;border-color:#ddd}@media (max-width:767px){.igd-shortcode-builder-form .form-footer{margin:0 -10px}.igd-shortcode-builder-form .form-footer button{font-weight:400}.igd-shortcode-builder-form .form-footer button span{font-size:14px}}.igd-shortcode-builder-form.editor-mode .shortcode-builder-sidebar{top:0}.igd-shortcode-builder-form.editor-mode .shortcode-builder-content{padding:0;display:flex;flex-direction:column;height:calc(100vh - 50px)}.shortcode-module{padding:15px}.shortcode-module-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px;width:100%;border-bottom:1px solid #e5e5e5;padding-bottom:10px}.shortcode-module-header .module-title{flex:1;text-align:right}.shortcode-module-header .module-title h2{font-size:1.2rem;margin-bottom:5px;font-weight:600;text-align:right;margin-top:0}.shortcode-module-header .module-title span{font-size:.85rem}.shortcode-module-header .module-type{cursor:pointer;display:flex;align-items:center;margin-right:15px;border:1px solid rgba(47,180,75,.3);padding:10px 12px;border-radius:5px;background:#fff;transition:all .2s ease-in-out}.shortcode-module-header .module-type-title{margin-left:10px;font-weight:400;font-size:1rem}.shortcode-module-header .module-type img{width:20px;height:20px;margin-left:7px}.shortcode-module-header .module-type-name{font-size:1rem;font-weight:500}.shortcode-module-header .module-type:hover{background:rgba(213,240,219,.3)}.shortcode-module-header .shortcode-wrap{display:flex;align-items:center;justify-content:flex-start;position:relative;width:-moz-max-content;width:max-content}.shortcode-module-header .shortcode-wrap code{padding:10px 35px 10px 10px;background:#fff;color:#5c637e;border-radius:7px;border:1px solid rgba(47,180,75,.2);font-size:12px;word-break:break-all;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.shortcode-module-header .shortcode-wrap i{right:3px;color:#5c637e;padding:7px;border-radius:30px;height:auto;width:auto;cursor:pointer;position:absolute;font-size:24px}.shortcode-module .shortcode-types{display:flex;flex-wrap:wrap;justify-content:space-between;gap:20px}.shortcode-module .shortcode-types .shortcode-type{width:calc(25% - 20px);padding:1.5rem 1rem;border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;transition:background .3s ease;position:relative;text-align:center;border:1px dashed rgba(47,180,75,.5);background:#fff}.shortcode-module .shortcode-types .shortcode-type .icon-wrap{width:60px;height:60px;background-color:#2fb44b;border-radius:50%;display:flex;align-items:center;justify-content:center}.shortcode-module .shortcode-types .shortcode-type .icon-wrap.icon-browser{background:#eff3fe}.shortcode-module .shortcode-types .shortcode-type .icon-wrap.icon-uploader{background:#eaf7ed}.shortcode-module .shortcode-types .shortcode-type .icon-wrap.icon-gallery{background:#ece8ff}.shortcode-module .shortcode-types .shortcode-type .icon-wrap.icon-slider{background:#e9f0ff}.shortcode-module .shortcode-types .shortcode-type .icon-wrap.icon-media{background:#fff6f5}.shortcode-module .shortcode-types .shortcode-type .icon-wrap.icon-search{background:#e4ffde}.shortcode-module .shortcode-types .shortcode-type .icon-wrap.icon-embed{background:#ecf7ff}.shortcode-module .shortcode-types .shortcode-type .icon-wrap.icon-download{background:#eaf7ed}.shortcode-module .shortcode-types .shortcode-type .icon-wrap.icon-view{background:#f5f8ff}.shortcode-module .shortcode-types .shortcode-type .icon-wrap img{width:32px;height:32px}.shortcode-module .shortcode-types .shortcode-type>span{font-size:1rem;font-weight:600;margin:20px 0 5px;color:#0a0a0a}.shortcode-module .shortcode-types .shortcode-type .description{font-size:.875rem;font-weight:400;color:#757575;margin-top:5px}.shortcode-module .shortcode-types .shortcode-type.active{background:#47cf64;color:#fff}.shortcode-module .shortcode-types .shortcode-type.active>span{color:#fff}.shortcode-module .shortcode-types .shortcode-type.active .description{color:#fff}.shortcode-module .shortcode-types .shortcode-type:not(.active):hover{background:rgba(47,180,75,.2)}.shortcode-module .shortcode-types .shortcode-type .pro-badge{position:absolute;top:10px;left:10px;background:#fdb837;color:#fff;padding:7px;border-radius:7px;font-size:12px;font-weight:400;display:flex;align-items:center;justify-content:center;line-height:1;box-shadow:0 0 5px rgba(0,0,0,.1);transition:all .3s ease}.shortcode-module .shortcode-types .shortcode-type .pro-badge i{height:auto;width:auto;font-size:18px;margin-left:3px}.shortcode-module .shortcode-types .shortcode-type.pro-feature{border-color:#fdb837}.shortcode-module .shortcode-types .shortcode-type.pro-feature:hover{background:rgba(253,184,55,.1)}.shortcode-module .shortcode-types .shortcode-type:last-child{margin-left:auto}.shortcode-module .settings-field{display:flex;flex-wrap:wrap;margin-bottom:15px;align-items:center;border-radius:10px;padding:12px 18px;background:#fff}.shortcode-module .settings-field-title{font-size:1.3rem;margin-bottom:30px;font-weight:600;text-align:right}.shortcode-module .settings-field-title.field-visibility{margin-top:50px}.shortcode-module .settings-field-label{width:200px;font-weight:600;font-size:1rem;display:flex;justify-content:space-between;text-align:right}.shortcode-module .settings-field-label i{margin-left:7px;color:#777}.shortcode-module .settings-field-label:after{content:":";margin-right:auto}.shortcode-module .settings-field-content{display:flex;flex-direction:column;align-items:flex-start;margin-right:20px;flex:1}.shortcode-module .settings-field-content .components-button i{margin-left:5px}.shortcode-module .settings-field-content .description{font-size:.875rem;margin-top:10px;text-align:right;color:#757575;display:flex;align-items:center;flex-wrap:wrap}.shortcode-module .settings-field-content .description .igd-btn,.shortcode-module .settings-field-content .description a{margin-right:10px;text-decoration:none}.shortcode-module .settings-field-content .description+.description{margin-top:0}.shortcode-module .settings-field.filter-field .filter-field-input{display:flex;flex-direction:column}.shortcode-module .settings-field.filter-field .filter-field-all{display:flex;align-items:center;justify-content:flex-start;margin-top:15px;flex-wrap:wrap}.shortcode-module .settings-field.filter-field .filter-field-all>div{display:flex;align-items:center}.shortcode-module .settings-field.filter-field .filter-field-all>div:first-child{margin-left:20px}.shortcode-module .settings-field.filter-field .filter-field-all-label{margin-left:10px;font-weight:500;font-size:.875rem;white-space:nowrap}.shortcode-module .settings-field.filter-field .filter-field-all .description{width:100%;text-align:right}.shortcode-module .settings-field.filter-field .filter-field-all ul{margin-top:0;padding-right:10px;margin-right:10px;list-style:disc}.shortcode-module .settings-field.filter-field .name-filter-option{display:flex;flex-wrap:wrap;align-items:center;margin-top:10px}.shortcode-module .settings-field.filter-field .name-filter-option h4{margin:0 0 0 15px;font-size:.875rem;font-weight:500}.shortcode-module .settings-field.filter-field .name-filter-option .name-filter-option-item{margin-left:15px;border:1px solid #ddd;border-radius:5px;padding:5px;display:flex;align-items:center;justify-content:center;font-size:.875rem;font-weight:500;color:#777;cursor:pointer;transition:all .3s ease}.shortcode-module .settings-field.filter-field .name-filter-option .name-filter-option-item:hover{background:#f5f8ff;color:#0a0a0a}.shortcode-module .settings-field.filter-field .name-filter-option .components-checkbox-control__input{height:20px;width:20px}.shortcode-module .settings-field.filter-field .name-filter-option .components-checkbox-control__label{margin-right:7px;text-transform:capitalize}@media (max-width:767px){.shortcode-module .settings-field.filter-field .name-filter-option div:not(#jairalok){width:auto;margin-bottom:0}}.shortcode-module .settings-field.sort-field .sort-field-section{display:flex;flex-direction:column}.shortcode-module .settings-field.sort-field .sort-field-section:first-child{margin-left:35px;padding-left:15px;border-left:1px solid #ddd}.shortcode-module .settings-field.sort-field .sort-field-section-wrap{display:flex;margin:15px 30px}.shortcode-module .settings-field.sort-field .sort-field-section-label{margin-bottom:15px;font-weight:500;text-align:right;font-size:.9rem;margin-right:-20px}.shortcode-module .settings-field.sort-field .sort-field-section .sort-item{display:flex;align-items:center;margin-bottom:10px;cursor:pointer;position:relative;font-size:.875rem}.shortcode-module .settings-field.sort-field .sort-field-section .sort-item i{display:none;position:absolute;right:-25px}.shortcode-module .settings-field.sort-field .sort-field-section .sort-item.active{color:#2fb44b}.shortcode-module .settings-field.sort-field .sort-field-section .sort-item.active i{display:block}.shortcode-module .settings-field.filter-users-field .filter-users-group{display:flex;flex-direction:column}.shortcode-module .settings-field .filter-users{margin-top:15px;display:flex;flex-direction:column;border:1px dashed #ddd;padding:15px;border-radius:7px;width:100%}.shortcode-module .settings-field .filter-users-title{font-weight:500;font-size:1rem;margin-bottom:10px;text-align:right;margin-top:0}.shortcode-module .settings-field .filter-users-section{display:flex;align-items:center}.shortcode-module .settings-field .filter-users-section:first-child{margin-left:20px}.shortcode-module .settings-field .filter-users-section-label{margin-left:10px;font-weight:500;font-size:1rem}.shortcode-module .settings-field .filter-users-section-wrap{display:flex;flex-wrap:wrap}.shortcode-module .settings-field .filter-users-section-wrap .description{width:100%;margin-bottom:0}.shortcode-module .settings-field.field-parent-folder .shortcode-module .igd-select-sources-wrap{margin-top:10px}.shortcode-module .settings-field.field-upload-confirmation-message .description{margin-top:-5px;margin-bottom:15px}.shortcode-module .settings-field.field-upload-confirmation-message .wp-editor-wrap{width:100%}.shortcode-module .settings-field.field-upload-confirmation-message .wp-editor-wrap textarea{border:none}.shortcode-module .settings-field.field-upload-confirmation-message .wp-switch-editor{height:29px}.shortcode-module .settings-field.field-upload-confirmation-message textarea{width:100%;border:1px solid #eee;padding:15px;min-width:200px}.shortcode-module .settings-field.field-upload-confirmation-message textarea:focus{outline:0;box-shadow:none}.shortcode-module .settings-field.field-allow-search input[type=text]{width:100%}.shortcode-module .settings-field.field-private-folder input[type=text]{width:100%}.shortcode-module .settings-field.field-private-folder .settings-field-label{margin-top:15px}.shortcode-module .settings-field.field-gallery-image-size .gallery-custom-size-wrap{display:flex}.shortcode-module .settings-field.field-gallery-image-size .gallery-custom-size-wrap .components-base-control:first-child{display:flex;align-items:center}.shortcode-module .settings-field.field-gallery-image-size .gallery-custom-size-wrap .components-base-control:first-child:after{content:"X";margin-right:10px;margin-left:10px;font-weight:500}.shortcode-module .settings-field.field-gallery-image-size .gallery-custom-size-wrap .components-text-control__input{width:110px}.shortcode-module .settings-field.field-access-denied-message{flex-direction:column;align-items:flex-start}.shortcode-module .settings-field.field-access-denied-message .settings-field-label{width:100%}.shortcode-module .settings-field.field-access-denied-message .settings-field-label:after{content:""}.shortcode-module .settings-field.field-access-denied-message .description{margin-top:-5px;margin-bottom:15px}.shortcode-module .settings-field.field-access-denied-message .wp-editor-wrap{width:100%}.shortcode-module .settings-field.field-access-denied-message .wp-editor-wrap textarea{border:none}.shortcode-module .settings-field.field-access-denied-message .wp-switch-editor{height:29px}.shortcode-module .settings-field.field-access-denied-message textarea{width:100%;border:1px solid #eee;padding:15px;min-width:200px}.shortcode-module .settings-field.field-access-denied-message textarea:focus{outline:0;box-shadow:none}.shortcode-module .settings-field .components-select-control select,.shortcode-module .settings-field input[type=email],.shortcode-module .settings-field input[type=number],.shortcode-module .settings-field input[type=text],.shortcode-module .settings-field select{height:40px;border-radius:4px;border:1px solid #ddd;font-size:.8rem;width:350px;max-width:100%;padding:10px 15px;line-height:1}.shortcode-module .settings-field .components-select-control select:disabled,.shortcode-module .settings-field input[type=email]:disabled,.shortcode-module .settings-field input[type=number]:disabled,.shortcode-module .settings-field input[type=text]:disabled,.shortcode-module .settings-field select:disabled{background:#f5f5f5;color:#aaa;cursor:not-allowed}.shortcode-module .settings-field .igd-select{width:400px}.shortcode-module .settings-field .igd-select.filter-users-select{max-width:100%}.shortcode-module .settings-field .igd-select__control.igd-select__control--is-focused{border-color:#2fb44b;box-shadow:none}.shortcode-module .settings-field .igd-select__input{height:auto}.shortcode-module .settings-field .igd-select__input:focus{border:none;box-shadow:none}.shortcode-module .settings-field .igd-select__menu{border-radius:7px;border:1px solid rgba(47,180,75,.3);box-shadow:0 0 5px rgba(0,0,0,.1);z-index:99}.shortcode-module .settings-field .igd-select__menu .igd-select__option{padding:10px 15px;font-size:.8rem;cursor:pointer}.shortcode-module .settings-field .igd-select__menu .igd-select__option:hover{background:rgba(47,180,75,.1)}.shortcode-module .settings-field .igd-select__menu .igd-select__option--is-focused{background:rgba(47,180,75,.1)}.shortcode-module .settings-field .igd-select__multi-value{background:#2fb44b;color:#fff}.shortcode-module .settings-field .igd-select__multi-value .igd-select__multi-value__label{color:#fff}.shortcode-module .settings-field .components-button-group{background:rgba(47,180,75,.1);padding:10px;width:-moz-max-content;width:max-content;border-radius:10px}.shortcode-module .settings-field .components-button-group button{color:#47cf64;box-shadow:inset 0 0 0 1px rgba(47,180,75,.25);margin:0 3px;border-radius:5px;background:#fff}.shortcode-module .settings-field .components-button-group button:first-child{border-top-right-radius:5px;border-bottom-right-radius:5px}.shortcode-module .settings-field .components-button-group button:last-child{border-top-left-radius:5px;border-bottom-left-radius:5px}.shortcode-module .settings-field .components-button-group button.is-primary{z-index:auto;background:#47cf64;color:#fff}.shortcode-module .settings-field .components-button-group button.is-secondary:hover{color:#2fb44b;box-shadow:inset 0 0 0 1px #47cf64}.shortcode-module .settings-field .components-button-group button i{margin-left:5px}.shortcode-module .settings-field .components-range-control{width:350px;margin-top:15px}.shortcode-module .settings-field .components-range-control .components-range-control__wrapper{color:#2fb44b;margin-bottom:0}.shortcode-module .settings-field .components-range-control .components-range-control__wrapper .components-range-control__mark-label{top:20px}.shortcode-module .settings-field .components-range-control .components-range-control__wrapper .components-range-control__thumb-wrapper span{background:#2fb44b}.shortcode-module .settings-field .components-range-control .components-input-control__input{width:auto;height:auto;padding:0 10px 0 0}.shortcode-module .settings-field .components-range-control .components-input-control__backdrop{border-color:#ddd}.shortcode-module .settings-field .components-select-control .components-input-control__backdrop{border-color:#ddd}.shortcode-module .settings-field-sub{display:flex;flex-direction:column;width:100%}.shortcode-module .settings-field-sub .settings-field{flex-direction:column;align-items:flex-start;margin-top:15px;margin-bottom:0;display:flex;border:1px dashed #ddd;padding:10px 15px;border-radius:7px;width:100%}.shortcode-module .settings-field-sub .settings-field-label{margin-top:0;margin-bottom:12px;width:auto}.shortcode-module .settings-field-sub .settings-field-label:after{content:"";display:none}.shortcode-module .settings-field-sub .settings-field-content{width:100%;margin-right:0}.shortcode-module .settings-field-sub .settings-field-content+h4,.shortcode-module .settings-field-sub .settings-field-content>h4{margin-top:15px}@media (max-width:767px){.shortcode-module .shortcode-module-header{flex-flow:column-reverse;align-items:center;text-align:center}.shortcode-module .shortcode-module-header .module-title h2{text-align:center;margin-top:10px}.shortcode-module .shortcode-module-header .module-type{display:none}.shortcode-module .shortcode-module-header .shortcode-wrap{display:none}.shortcode-module .shortcode-types{gap:10px}.shortcode-module .shortcode-types .shortcode-type{width:calc(50% - 5px);text-align:center;padding:1rem}.shortcode-module .settings-field{flex-flow:column;align-items:flex-start;padding:10px}.shortcode-module .settings-field-label{margin-bottom:.5rem;font-size:.875rem;justify-content:flex-start}.shortcode-module .settings-field-label:after{display:none}.shortcode-module .settings-field-content{margin-right:0}.shortcode-module .settings-field input,.shortcode-module .settings-field select{width:100%;height:32px}.shortcode-module .settings-field .igd-select{width:100%}.shortcode-module .settings-field.filter-field .filter-field-all{flex-direction:column;align-items:flex-start;width:100%}.shortcode-module .settings-field.filter-field .filter-field-all div{margin-left:0;display:flex;width:100%}.shortcode-module .settings-field.filter-field .filter-field-all div:first-child{margin-bottom:10px}.shortcode-module .settings-field.filter-field .filter-field-all-label{min-width:70px}.shortcode-module .settings-field .filter-users-section-wrap{flex-direction:column;align-items:flex-start;width:100%}.shortcode-module .settings-field .filter-users-section-wrap .filter-users-section{width:100%}.shortcode-module .settings-field .filter-users-section-wrap .filter-users-section:first-child{margin-bottom:10px}}.igd-module-builder-modal .components-form-toggle,.igd-shortcode-builder .components-form-toggle{width:-moz-max-content;width:max-content;background:#fff;padding:3px;border-radius:15px}.igd-module-builder-modal .components-form-toggle__track,.igd-shortcode-builder .components-form-toggle__track{width:44px;height:22px;border-radius:22px;border-color:#5c637e}.igd-module-builder-modal .components-form-toggle__thumb,.igd-shortcode-builder .components-form-toggle__thumb{background:#5c637e;border:none;width:15px;height:15px;border-radius:25px;top:6px;right:6px}.igd-module-builder-modal .components-form-toggle.is-checked .components-form-toggle__thumb,.igd-shortcode-builder .components-form-toggle.is-checked .components-form-toggle__thumb{background:#fff;transform:translateX(-22px)}.igd-module-builder-modal .components-form-toggle.is-checked .components-form-toggle__track,.igd-shortcode-builder .components-form-toggle.is-checked .components-form-toggle__track{background:#47cf64}.igd-module-builder-modal .components-base-control__field,.igd-shortcode-builder .components-base-control__field{margin-bottom:0;display:flex;align-items:center}.igd-module-builder-modal .components-base-control__field .components-checkbox-control__input,.igd-shortcode-builder .components-base-control__field .components-checkbox-control__input{border-color:rgba(92,99,126,.5);margin:0}.igd-module-builder-modal .components-base-control__field .components-checkbox-control__input-container,.igd-shortcode-builder .components-base-control__field .components-checkbox-control__input-container{margin:0}.igd-module-builder-modal .components-base-control__field .components-checkbox-control__input:checked,.igd-shortcode-builder .components-base-control__field .components-checkbox-control__input:checked{background:#47cf64;border-color:#47cf64}@media (max-width:767px){.igd-module-builder-modal,.igd-shortcode-builder{margin-top:0}.igd-module-builder-modal .shortcode-tabs,.igd-shortcode-builder .shortcode-tabs{flex-wrap:wrap;justify-content:space-between}.igd-module-builder-modal .shortcode-tabs .shortcode-tab,.igd-shortcode-builder .shortcode-tabs .shortcode-tab{margin-left:0!important}.igd-module-builder-modal .shortcode-tabs .shortcode-tab .tab-index,.igd-shortcode-builder .shortcode-tabs .shortcode-tab .tab-index{height:2rem;width:2rem}.igd-module-builder-modal .shortcode-tabs .shortcode-tab:not(:last-child):after,.igd-shortcode-builder .shortcode-tabs .shortcode-tab:not(:last-child):after{width:1rem;height:.3rem}.igd-module-builder-modal .shortcode-builder-content,.igd-shortcode-builder .shortcode-builder-content{padding:0;max-width:100%}}.igd-select-sources-wrap{display:flex;flex-wrap:wrap;align-items:flex-start}.igd-select-sources-wrap .source-title-wrap{width:100%;margin-bottom:20px;text-align:right}.igd-select-sources-wrap .source-title-wrap h3{margin-bottom:5px}.igd-select-sources-wrap .source-title-wrap p{margin:0}.igd-select-sources-wrap .igd-file-browser{border:1px solid rgba(47,180,75,.3);border-radius:10px;overflow:hidden;flex:1;height:auto;background:#fff}.igd-select-sources-wrap .igd-file-browser-header{position:static;z-index:9}.igd-select-sources-wrap .igd-file-browser-header .header-title i{color:#555;display:flex;align-items:center;justify-content:center}.igd-select-sources-wrap .igd-file-browser-header .igd-breadcrumb .breadcrumb-item:hover{color:#fff;background:#248c3a}.igd-select-sources-wrap .igd-file-browser .select-btn{position:absolute;color:#fff;left:10px;border:1px solid rgba(47,180,75,.3);z-index:2;display:flex;align-items:center;border-radius:3px;padding:5px;background:#2fb44b;cursor:pointer;line-height:1;transition:background .3s ease;font-size:.875rem}.igd-select-sources-wrap .igd-file-browser .select-btn i{margin-left:0}.igd-select-sources-wrap .igd-file-browser .select-btn span{margin-right:5px;display:none}.igd-select-sources-wrap .igd-file-browser .select-btn.active{background:#ff9f10;border-color:#dc8400}.igd-select-sources-wrap .igd-file-browser .select-btn:hover span{display:block}.igd-select-sources-wrap .igd-file-browser .file-list .file-item:not(.folder-item):hover .select-btn span{display:block}.igd-select-sources-wrap .igd-file-browser .file-list:not(.list-view) .file-item:not(.folder-item) .select-btn{top:10px}.igd-select-sources-wrap .igd-selected-list{width:30%;max-width:300px;margin-right:15px;border:1px solid rgba(47,180,75,.3);border-radius:10px;overflow:hidden;background:#fff;position:sticky;top:120px}.igd-select-sources-wrap .igd-selected-list-header{padding:10px;background:#2fb44b;color:#fff;display:flex;align-items:center;justify-content:space-between}.igd-select-sources-wrap .igd-selected-list-header .header-title{font-size:1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-select-sources-wrap .igd-selected-list-header button{padding:7px 10px;font-size:.8rem;border-radius:5px;background:#ff9f10;border:none}.igd-select-sources-wrap .igd-selected-list-header button span{white-space:nowrap}.igd-select-sources-wrap .igd-selected-list-header button:hover{color:#ff9f10;background:#fff}.igd-select-sources-wrap .igd-selected-list .no-files-message{display:flex;justify-content:center;align-items:center;font-size:1rem;color:#ff9f10;margin:30px auto}.igd-select-sources-wrap .igd-selected-list .no-files-message i{margin-left:5px}.igd-select-sources-wrap .igd-selected-list>p{padding:10px;font-size:.875rem;color:#555;border:1px solid #ddd;margin:30px 10px 10px;border-radius:5px;background:rgba(48,142,225,.1);text-align:center}.igd-select-sources-wrap .igd-selected-list>p span{display:block;margin-top:10px}.igd-select-sources-wrap .no-account-placeholder{width:auto;flex:1;margin-top:0}@media (max-width:767px){.igd-select-sources-wrap{flex-direction:column}.igd-select-sources-wrap .igd-selected-list{margin-right:0}}.selected-item{display:flex;align-items:center;padding:10px 15px;border-bottom:1px solid #ddd;font-size:.875rem;z-index:99}.selected-item .item-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-left:7px}.selected-item .remove-item{color:#fff;background:#ff9f10;border:1px solid #dc8400;display:flex;align-items:center;justify-content:center;height:25px;width:25px;min-width:25px;font-size:18px;border-radius:50%;opacity:.7;margin-right:auto;cursor:pointer}.selected-item .remove-item:hover{opacity:1;background:#fff;color:#ff9f10}.selected-item .dashicons-category,.selected-item .dashicons-move,.selected-item img{margin-left:10px;color:#8f8f8f}.selected-item .dashicons-move{cursor:pointer}.selected-item .dashicons-move:hover{color:#555}.selected-item .file-item{display:flex;align-items:center;overflow:hidden;flex:1;cursor:pointer}.selected-item.sortable-item{border:none}.igd-shortcode-preview,.igd-shortcode-preview *{box-sizing:border-box}.igd-shortcode-preview-container{z-index:99999!important}.igd-shortcode-preview-container,.igd-shortcode-preview-container *{box-sizing:border-box}.igd-shortcode-preview-popup{display:flex!important;align-items:center;justify-content:center;position:absolute!important;grid-column:auto!important;grid-row:auto!important;background:100% 0;width:97%!important;height:95%!important}.igd-shortcode-preview-popup .swal2-html-container{width:100%!important;height:100%!important;background:#fff;border-radius:.5rem!important;margin:auto!important}.igd-shortcode-preview-header{display:flex;align-items:center;justify-content:space-between;padding:.8rem;border-bottom:1px solid #ddd;margin-bottom:1rem;position:sticky;top:0;z-index:10;background:#fff;box-shadow:0 .5rem 1rem rgba(0,0,0,.1)}.igd-shortcode-preview-header .header-title i{margin-left:7px}.igd-shortcode-preview-header button i{margin-left:0}.igd-shortcode-preview .preview-inner{text-align:right;padding:1rem 2rem}.swal2-container.swal2-top-end{z-index:99999!important}.igd-module-builder-modal{height:100%;display:flex;flex-direction:column;background:#f7f8fa}.igd-module-builder-modal *{box-sizing:border-box}.igd-module-builder-modal-wrap{height:100%}.igd-module-builder-modal-wrap.inline-select .shortcode-module{padding:0}.igd-module-builder-modal-wrap.inline-select .shortcode-builder-content{height:auto;max-width:100%;min-height:auto}.igd-module-builder-modal-container{z-index:99999999!important}.igd-module-builder-modal-container .swal2-popup{width:95%;height:90vh;padding:0;overflow:hidden}.igd-module-builder-modal-container .swal2-popup .swal2-html-container{margin:0;border-radius:.5rem;overflow-y:auto}.igd-module-builder-modal-header{display:flex;align-items:center;padding:12px 1rem;border-bottom:1px solid #eaeaea;background:#fff;z-index:99;box-shadow:0 0 .5rem rgba(0,0,0,.1);position:sticky;top:0}.igd-module-builder-modal-header .header-title{display:flex;align-items:center}.igd-module-builder-modal-header .header-title i{margin-left:7px}.igd-module-builder-modal-header .header-title h3{font-size:1.2rem;margin:0;font-weight:500}@media (max-width:600px){.igd-module-builder-modal-header .header-title h3{font-size:1rem}}.igd-module-builder-modal-header .close{margin-right:auto;margin-left:15px}.igd-module-builder-modal-header button{padding:7px 10px;font-size:.9rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-module-builder-modal-header .done .igd-spinner{display:none}.igd-module-builder-modal-header .done.loading i{display:none}.igd-module-builder-modal-header .done.loading .igd-spinner{display:inline-block}.igd-module-builder-modal .shortcode-module .media-uploader-post-content{margin-bottom:30px}.igd-module-builder-modal .shortcode-module .media-uploader-post-content textarea{width:100%;height:auto;padding:8px 12px;line-height:27px;vertical-align:top}.igd-module-builder-modal .shortcode-module-header{align-items:flex-start}.igd-module-builder-modal .shortcode-module-header .module-title{line-height:1}.igd-module-builder-modal .shortcode-module .igd-selected-list{top:20px}.igd-module-builder-modal .shortcode-module-body>.settings-field:last-child{margin-bottom:0}.igd-shortcode-builder-form{margin:0;overflow-y:auto;flex:1;display:flex}.igd-shortcode-builder-form .content-sources .settings-field.form-entry-field{margin-top:20px}.igd-shortcode-builder-form .content-sources .settings-field.form-entry-field input[type=text]{width:100%}.igd-shortcode-builder-form .content-sources .form-entry-title{margin-top:30px}.igd-shortcode-builder-form .content-sources #igd-select-files{width:100%;margin-bottom:20px}.igd-shortcode-builder-form .content-sources #igd-select-files .igd-body{max-height:400px}.module-builder-placeholder{display:flex;align-items:center;flex-flow:column;justify-content:center;text-align:center;border:1px solid #eaeaea;padding:2rem;border-radius:10px;max-width:380px;margin:auto;background:#fafafa}.module-builder-placeholder img{width:50px}.module-builder-placeholder h3{font-size:22px;margin-bottom:5px;font-weight:500;color:#333}.module-builder-placeholder p{font-size:.875rem;color:#555}.module-builder-placeholder button{margin-top:10px;padding:10px 15px}.module-builder-placeholder.pro-placeholder h4{margin-top:20px;margin-bottom:0;font-size:1.5rem;color:#ff9458;font-weight:500}.igd-shortcode-data-modal-container .igd-shortcode-data-modal-input{height:150px;padding:1rem;border-radius:.5rem;line-height:1.2;font-size:.878885rem}.igd-shortcode-data-modal-container .swal2-confirm{background:#2fb44b}#igd_data{display:none!important}.igd-form-uploader-trigger>*{pointer-events:none}.igd-file-browser{display:flex;flex-flow:column;align-items:flex-start;width:100%}.igd-file-browser,.igd-file-browser *{box-sizing:border-box}.igd-file-browser .btn-primary{background:var(--color-primary)}.igd-file-browser .btn-primary:hover{background:var(--color-primary-light-alt)}.igd-file-browser-header{display:flex;align-items:center;background:#fff;border-bottom:1px solid #e5e5e5;padding:12px 15px;position:sticky;top:32px;width:100%;z-index:9;height:60px}.igd-file-browser-header .header-title{display:flex;align-items:center;font-size:1rem;font-weight:600;color:#fff}.igd-file-browser-header .header-title i,.igd-file-browser-header .header-title img{margin-left:10px;background:#fff;padding:5px;height:35px;width:35px;border-radius:50%;color:#fff}.igd-file-browser-header .header-action{display:flex;align-items:center;margin-right:auto;justify-content:flex-end}.igd-file-browser-header .header-action-item{margin-right:15px;cursor:pointer;color:#444;background:#f7f8fa;height:40px;width:40px;border-radius:10px;display:flex;align-items:center;justify-content:center;transition:all .2s ease-in-out}.igd-file-browser-header .header-action-item img{width:18px}.igd-file-browser-header .header-action-item:hover{background:var(--color-primary-lighter)}.igd-file-browser-header .user-box{display:flex;align-items:center;width:auto;padding:5px;max-width:250px;height:45px;background:100% 0}.igd-file-browser-header .user-box .user-info{display:flex;flex-direction:column;line-height:1;overflow:hidden;text-align:right}.igd-file-browser-header .user-box .user-info span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.igd-file-browser-header .user-box .user-info .user-name{font-size:.9rem;font-weight:600;color:#3d3d3d;margin-bottom:3px}.igd-file-browser-header .user-box .user-info .user-email{color:#7a7a7a;font-weight:300;font-size:.875rem}.igd-file-browser-header .user-box .user-image{width:35px;height:35px;border-radius:50%}.igd-file-browser-header .user-box-modal{display:flex;flex-direction:column;justify-content:flex-start;align-items:center;width:260px;border-radius:10px;max-height:75vh;overflow-y:auto}.igd-file-browser-header .user-box-modal::-webkit-scrollbar{width:5px;display:none}.igd-file-browser-header .user-box-modal::-webkit-scrollbar-track{background:var(--color-primary-lighter)}.igd-file-browser-header .user-box-modal::-webkit-scrollbar-thumb{background:var(--color-primary-light)}.igd-file-browser-header .user-box-modal::-webkit-scrollbar-thumb:hover{background:var(--color-primary)}.igd-file-browser-header .user-box-modal:hover::-webkit-scrollbar{display:block}.igd-file-browser-header .user-box-modal-wrap{border-radius:10px;padding:0;opacity:1;box-shadow:0 1px 0 0 #e5e5e5}.igd-file-browser-header .user-box-modal-wrap:after,.igd-file-browser-header .user-box-modal-wrap:before{right:calc(100% - 45px)}.igd-file-browser-header .user-box-modal-title{font-size:1.2rem;font-weight:500;display:block;position:sticky;background:#fff;top:0;width:100%;text-align:center;padding:15px;box-shadow:0 1px 0 0 #e5e5e5;margin-bottom:7px}.igd-file-browser-header .user-box-modal button{margin:10px auto 20px auto;padding:8px 12px;font-size:.875rem}.igd-file-browser-header .user-box-modal>div:last-child{margin-bottom:15px}.igd-file-browser-header .user-box-account{display:flex;align-items:center;border:1px solid #e5e5e5;padding:7px;border-radius:5px;cursor:pointer;width:calc(100% - 30px);margin:7px}.igd-file-browser-header .user-box-account.active,.igd-file-browser-header .user-box-account:hover{background:var(--color-primary-lighter);color:#000}.igd-file-browser-header .user-box-account img{width:30px;height:30px;border-radius:50%;margin-left:10px}.igd-file-browser-header .user-box-account .account-info{display:flex;flex-flow:column;overflow:hidden;text-align:right;line-height:1.5}.igd-file-browser-header .user-box-account .account-info .account-name{font-size:.9rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-file-browser-header .user-box-account .account-info .account-email{font-size:.8rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#7a7a7a}.igd-file-browser-header .user-box-account .active-badge{background:var(--color-primary);color:#fff;border-radius:50%;position:relative;margin-right:auto;left:0}.igd-file-browser-header .user-box .user-arrow{width:16px;margin-right:10px}@media (max-width:768px){.igd-file-browser-header{top:0;flex-flow:column;align-items:center;height:auto;padding:.5rem}.igd-file-browser-header .header-action{margin-right:0;width:100%;justify-content:center}.igd-file-browser-header .header-action .igd-search-bar input{min-height:35px;height:35px}.igd-file-browser-header .header-action .igd-search-bar i.dashicons-dismiss{margin-right:15px}.igd-file-browser-header .header-action .igd-search-bar i.dashicons-search{height:35px}.igd-file-browser-header .header-action .igd-search-bar.active{position:absolute;width:calc(100% - 20px);z-index:2;height:45px;background:#f7f8fa}.igd-file-browser-header .header-action-item{margin-right:.875rem}.igd-file-browser-header .header-action-item.sidebar-toggle{margin-right:0;margin-left:auto}.igd-file-browser-header .user-box{padding:5px;border-radius:30px;height:40px}.igd-file-browser-header .user-box .user-info{display:none}.igd-file-browser-header .user-box .user-arrow{margin-right:0}.igd-file-browser-header .user-box .user-image{width:30px;height:30px;margin-left:5px}.igd-file-browser-header .user-box-modal-wrap{left:10px;right:auto}}.igd-file-browser .igd-search-bar{display:flex;align-items:center;position:relative;overflow:hidden;margin-bottom:0}.igd-file-browser .igd-search-bar input{width:0;height:0;min-height:0;border:none;transition:all .3s ease;padding:0;margin:0;border:0;background:100% 0;box-shadow:none}.igd-file-browser .igd-search-bar input:focus{outline:0;border:none;box-shadow:none}.igd-file-browser .igd-search-bar .search-submit{margin-right:0;display:flex;align-items:center;justify-content:center;margin-bottom:0}.igd-file-browser .igd-search-bar .search-dismiss{display:none;background:100% 0;cursor:pointer}.igd-file-browser .igd-search-bar .search-dismiss img{width:16px}.igd-file-browser .igd-search-bar.active{width:auto;padding:5px 15px}.igd-file-browser .igd-search-bar.active input{width:100%!important;margin:0 15px;height:100%}.igd-file-browser .igd-search-bar.active .search-submit{margin-bottom:0}.igd-file-browser .igd-search-bar.active .search-dismiss{display:flex}.igd-file-browser .igd-search-bar.active .search-dismiss svg{margin-bottom:0}.igd-file-browser .igd-search-bar.error input{border:1px solid #f77066}.igd-file-browser-body{display:flex;align-items:flex-start;width:100%;height:100%;position:relative}.igd-file-browser .igd-sort{display:flex;align-items:center}.igd-file-browser .igd-sort-select{font-weight:600;cursor:pointer;padding:3px 5px;border-radius:5px}.igd-file-browser .igd-sort-select:hover{background:#ddd}.igd-file-browser .igd-sort-modal{width:220px;padding:0;border-radius:7px;opacity:1!important;box-shadow:rgba(149,157,165,.2) 0 8px 24px}.igd-file-browser .igd-sort-modal .sort-item{display:flex;align-items:center;margin-bottom:15px;padding-right:25px;cursor:pointer;font-size:.9rem}.igd-file-browser .igd-sort-modal .sort-item i{margin-left:5px;display:none}.igd-file-browser .igd-sort-modal .sort-item.active{color:var(--color-primary);padding-right:0}.igd-file-browser .igd-sort-modal .sort-item.active i{display:inline-block}.igd-file-browser .igd-sort-modal .sort-item:hover{color:var(--color-primary)}.igd-file-browser .igd-sort-modal-inner{display:flex;flex-direction:column}.igd-file-browser .igd-sort-modal-inner-section{border-bottom:1px solid #ddd;padding:15px}.igd-file-browser .igd-sort-modal-inner-section:last-child{border-bottom:0}.igd-file-browser .igd-sort-modal-inner-section-title{font-size:.9rem;margin-bottom:10px;display:block;font-weight:500}.igd-file-browser .igd-breadcrumb{display:flex;align-items:center;overflow:hidden;max-width:70%;flex-wrap:wrap}.igd-file-browser .igd-breadcrumb .breadcrumb-item{font-size:.875rem;display:flex;align-items:center;cursor:pointer;padding:5px;border-radius:5px;line-height:1;font-weight:500;color:#444;white-space:nowrap;position:relative;margin-bottom:0}.igd-file-browser .igd-breadcrumb .breadcrumb-item i{margin-right:3px}.igd-file-browser .igd-breadcrumb .breadcrumb-item i.dashicons-arrow-right-alt2{width:13px;height:15px;font-size:15px}.igd-file-browser .igd-breadcrumb .breadcrumb-item i.dashicons-admin-home{margin-left:5px;margin-right:0}.igd-file-browser .igd-breadcrumb .breadcrumb-item i:last-child{display:none}.igd-file-browser .igd-breadcrumb .breadcrumb-item span{margin-bottom:0;max-width:200px;overflow:hidden;text-overflow:ellipsis}.igd-file-browser .igd-breadcrumb .breadcrumb-item:first-child{margin-right:0}.igd-file-browser .igd-breadcrumb .breadcrumb-item:after{content:"";font-family:Dashicons;margin-right:7px}.igd-file-browser .igd-breadcrumb .breadcrumb-item:not(:last-child):after{content:"\f345"}.igd-file-browser .igd-breadcrumb .breadcrumb-item.active:after{content:"\f140";height:auto;width:auto;font-size:22px;margin-right:3px}.igd-file-browser .igd-breadcrumb .breadcrumb-item:hover{color:var(--color-primary);background:var(--color-primary-lighter)}@media (max-width:768px){.igd-file-browser .igd-breadcrumb{max-width:100%;margin-bottom:10px}}.igd-file-browser .collapsed-breadcrumbs{width:210px;opacity:1!important;box-shadow:rgba(149,157,165,.2) 0 8px 24px;padding:10px 0}.igd-file-browser .collapsed-breadcrumbs-item{cursor:pointer;font-size:.875rem;padding:7px 15px;display:flex;align-items:center}.igd-file-browser .collapsed-breadcrumbs-item:hover{color:var(--color-primary)}.igd-file-browser .collapsed-breadcrumbs-item i{margin-left:5px;font-size:1rem;height:1rem;width:1rem}.igd-file-browser .collapsed-breadcrumbs-item span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}.igd-file-browser .collapsed-breadcrumbs-item:before{content:"\f345";font-family:Dashicons,serif;margin-left:7px}.igd-file-browser .igd-root-placeholder{display:flex;flex-direction:column;align-items:center;width:-moz-max-content;width:max-content;margin:3rem auto;padding:50px 30px;border-radius:15px;min-width:30rem;background:#fff;box-shadow:rgba(149,157,165,.2) 0 2px 2px}.igd-file-browser .igd-root-placeholder .igd-placeholder-svg,.igd-file-browser .igd-root-placeholder img{width:200px;margin-bottom:1rem}.igd-file-browser .igd-root-placeholder-title{font-size:1rem;font-weight:500;margin:15px 0 5px 0;color:var(--color-primary)}.igd-file-browser .igd-root-placeholder-text{color:#7a7a7a}.igd-file-browser .igd-root-placeholder button{margin-top:30px}.igd-file-browser .igd-root-placeholder.empty-folder-placeholder img,.igd-file-browser .igd-root-placeholder.search-folder-placeholder img{width:100px}.igd-file-browser .igd-root-placeholder.search-placeholder .igd-placeholder-svg{width:100px;margin-bottom:1rem}.igd-file-browser .igd-root-placeholder.search-placeholder .igd-root-placeholder-title{margin-bottom:1.5rem}.igd-file-browser .igd-root-placeholder.search-placeholder:not(.empty-placeholder) .igd-root-placeholder-title{margin-top:0;margin-bottom:1.5rem}.igd-file-browser .igd-root-placeholder.search-placeholder .igd-search-bar{border:1px solid #ddd;padding:10px 20px;border-radius:5px}.igd-file-browser .igd-root-placeholder.search-placeholder .igd-search-bar .search-dismiss{display:none}.igd-file-browser .igd-root-placeholder.search-placeholder .igd-search-bar input{margin-right:0}.igd-file-browser .igd-root-placeholder+.igd-file-uploader{position:relative!important;margin:30px auto;left:unset;right:unset;bottom:unset}@media (max-width:767px){.igd-file-browser .igd-root-placeholder{min-width:auto}}.igd-sidebar-wrap{width:20%;max-width:230px;border-left:1px solid #e5e5e5;position:sticky;background:#fff}.igd-sidebar .sidebar-uploader{display:flex;align-items:center;justify-content:center;padding:20px 10px 15px;border-bottom:1px solid #e5e5e5}.igd-sidebar .sidebar-uploader button{padding:7px 10px;font-size:.875rem;transition:background .3s ease;background:var(--color-primary)}.igd-sidebar .sidebar-uploader button.active{background:#fff;color:var(--color-primary);border-color:var(--color-primary-light)}.igd-sidebar .sidebar-uploader button.disabled{background:#ddd}.igd-sidebar .sidebar-uploader button.disabled:hover{background:#ddd!important}.igd-sidebar .sidebar-folders{display:flex;flex-direction:column}.igd-sidebar .sidebar-folders .root-item{padding:10px 15px;cursor:pointer;display:flex;align-items:center;font-size:1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-sidebar .sidebar-folders .root-item img{margin-left:10px}.igd-sidebar .sidebar-folders .root-item.active{background:var(--color-primary-lighter);color:var(--color-primary);border-right:5px solid}.igd-sidebar .sidebar-folders .root-item:hover{color:var(--color-primary)}.igd-sidebar .storage-info-wrap{display:flex;align-items:center;margin-top:30px;border-top:1px solid #e5e5e5;padding:15px}.igd-sidebar .storage-info-wrap i{margin-left:10px}.igd-sidebar .storage-info-wrap .storage-info{display:flex;flex-direction:column;flex:1}.igd-sidebar .storage-info-wrap .storage-info-sidebar{width:100%;height:10px;background:var(--color-primary-lighter);border-radius:5px;position:relative}.igd-sidebar .storage-info-wrap .storage-info-sidebar .storage-info-fill{position:absolute;top:0;right:0;width:0;height:100%;background:var(--color-primary);border-radius:5px}.igd-sidebar .storage-info-wrap .storage-info-sidebar .storage-info-fill.fill-danger{background:#f44336}.igd-sidebar .storage-info-wrap .storage-info span{font-size:.8rem;margin-top:5px}@media (max-width:767px){.igd-sidebar{max-width:80%;height:100%;background:#f5f9fd}.igd-sidebar-wrap{width:100%;max-width:100%;position:absolute;z-index:2;background:rgba(0,0,0,.5);height:100%}}.igd-body{display:flex;flex-direction:column;padding:10px;flex:1;width:100%;height:100%;position:relative;background:#f7f8fa}.igd-body .file-list{display:flex;align-items:flex-start;flex-wrap:wrap;overflow-y:auto}.igd-body .file-list .go-prev{display:flex;align-items:center;flex-direction:row!important;padding:10px;cursor:pointer!important;justify-content:flex-start!important;background:var(--color-primary-lighter);transition:all .3s ease;font-size:1rem;font-weight:300}.igd-body .file-list .go-prev i{margin:0 10px;position:relative;transition:all .3s ease;right:0}.igd-body .file-list .go-prev span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-body .file-list .root-item{flex-direction:row!important;padding:10px;cursor:pointer!important;align-items:center;justify-content:flex-start!important;font-size:1rem;background:#fff}.igd-body .file-list .root-item img{margin-left:10px}.igd-body .file-list .root-item .select-btn i{margin-left:0}.igd-body .file-list .file-item{display:flex;flex-direction:column;width:25%;margin:7px;border-radius:5px;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:auto;position:relative;aspect-ratio:1/1;justify-content:flex-end;box-shadow:rgba(0,0,0,.05) 0 6px 24px 0,rgba(0,0,0,.08) 0 0 0 1px;transition:transform .3s ease}.igd-body .file-list .file-item .igd-file-thumbnail{width:100%;height:100%;-o-object-fit:none;object-fit:none;position:absolute;-webkit-user-drag:none;bottom:20px}.igd-body .file-list .file-item .igd-file-thumbnail.has-thumbnail{-o-object-fit:cover;object-fit:cover}.igd-body .file-list .file-item .file-item-footer{display:flex;align-items:center;border-top:1px solid #e5e5e5;z-index:1;background:#fff;line-height:1;height:40px}.igd-body .file-list .file-item .file-item-footer .file-icon-wrap{width:30px;height:30px;display:flex;align-items:center;justify-content:center;margin-left:3px;margin-right:7px}.igd-body .file-list .file-item .file-item-footer .file-icon-wrap .file-icon{width:20px;height:20px;-webkit-user-drag:none}.igd-body .file-list .file-item .file-item-footer .file-icon-wrap .shortcut-icon{position:absolute;right:15px;bottom:8px;border:1px solid #ddd;border-radius:50%}.igd-body .file-list .file-item .file-item-footer .file-item-name{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:.875rem;font-weight:300;margin-left:auto;flex:1;text-align:right}.igd-body .file-list .file-item .file-item-footer .file-item-size{font-size:.75rem;font-weight:400;margin:0 5px;color:#999}.igd-body .file-list .file-item .file-item-footer .file-item-options{margin-right:auto;cursor:pointer;color:#565656;margin-left:7px}.igd-body .file-list .file-item .file-item-footer .file-item-options i{transform:rotate(-90deg);font-size:18px;width:18px;height:18px}.igd-body .file-list .file-item .file-item-footer .file-item-options:hover{color:var(--color-primary)}.igd-body .file-list .file-item.active{border:1px solid var(--color-primary-lighter-alt);transform:scale(1.03)}.igd-body .file-list .file-item.active .file-item-footer{background:var(--color-primary-light-alt);color:#fff}.igd-body .file-list .file-item.active .file-item-footer:not(:has(.file-item-checkbox)) .file-icon{background:#fff;border-radius:3px;box-sizing:content-box!important;padding:2px 5px}.igd-body .file-list .file-item.active .file-item-footer:has(.file-item-checkbox) .file-icon,.igd-body .file-list .file-item.active .file-item-footer:has(.file-item-checkbox) .shortcut-icon{display:none}.igd-body .file-list .file-item.active .file-item-footer .file-item-size{color:inherit}.igd-body .file-list .file-item.active .file-item-footer .file-item-options{color:inherit}.igd-body .file-list .file-item.active .file-item-footer .file-item-checkbox{display:flex;padding:0;border:1px solid #fff}.igd-body .file-list .file-item:hover{transform:scale(1.03)}.igd-body .file-list .file-item:hover .file-item-footer .file-icon-wrap:has(.file-item-checkbox) .file-icon,.igd-body .file-list .file-item:hover .file-item-footer .file-icon-wrap:has(.file-item-checkbox) .shortcut-icon{display:none}.igd-body .file-list .file-item:hover .file-item-footer .file-icon-wrap .file-item-checkbox{display:flex}.igd-body .file-list .file-item:hover .file-item-date{color:#fff}.igd-body .file-list .file-item.folder-item{height:50px;justify-content:center;position:relative;order:1}.igd-body .file-list .file-item.folder-item .file-item-footer{border-top:0;height:100%}.igd-body .file-list .file-item:not(.folder-item){order:3}@media (max-width:768px){.igd-body .file-list .file-item .file-item-footer .file-icon-wrap{margin-left:5px}.igd-body .file-list .file-item .file-item-footer .file-icon-wrap:has(.file-item-checkbox) .file-icon,.igd-body .file-list .file-item .file-item-footer .file-icon-wrap:has(.file-item-checkbox) .shortcut-icon{display:none}.igd-body .file-list .file-item .file-item-footer .file-icon-wrap .file-item-checkbox{display:flex}}.igd-body .file-list .folder-file-divider{width:100%;order:2}.igd-body .file-list.list-view{flex-flow:column;align-items:center}.igd-body .file-list.list-view .go-prev{padding:12px 10px!important}.igd-body .file-list.list-view .list-view-header{display:flex;align-items:center;width:100%;font-size:1rem;position:sticky;top:0;margin-top:10px;margin-bottom:15px;z-index:1;line-height:1}.igd-body .file-list.list-view .list-view-header .col-name{width:50%;padding-right:50px}.igd-body .file-list.list-view .list-view-header .col-size{width:20%;text-align:center}.igd-body .file-list.list-view .list-view-header .col-modified{width:25%;text-align:center}.igd-body .file-list.list-view .list-view-header:not(:has(.col-modified)) .col-name,.igd-body .file-list.list-view .list-view-header:not(:has(.col-size)) .col-name{width:70%}.igd-body .file-list.list-view .list-view-header:not(:has(.col-size)):not(:has(.col-modified)) .col-name{width:90%}.igd-body .file-list.list-view .file-item{width:100%!important;overflow:visible;margin:0;border-radius:0;padding:5px 10px;font-size:.875rem;flex-direction:row;align-items:center;justify-content:space-between;border:1px solid transparent;border-bottom-color:#eee;box-shadow:none;aspect-ratio:auto;background:#fff}.igd-body .file-list.list-view .file-item .file-item-date{width:20%;font-size:.75rem;font-weight:400;margin:0 5px;color:#999;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:right}.igd-body .file-list.list-view .file-item.active{transform:none;background:var(--color-primary-lighter-alt);color:#fff}.igd-body .file-list.list-view .file-item.active .file-item-date{color:inherit}.igd-body .file-list.list-view .file-item:hover{transform:none;background:var(--color-primary-lighter-alt);color:#fff}.igd-body .file-list.list-view .file-item:hover .file-item-footer .file-item-options{color:inherit}.igd-body .file-list.list-view .file-item:hover .file-item-size{color:inherit}.igd-body .file-list.list-view .file-item:hover .file-item-date{color:inherit}.igd-body .file-list.list-view .file-item.folder-item{height:45px}.igd-body .file-list.list-view .file-item .file-item-footer{border:0;width:70%;background:100% 0;height:33px}.igd-body .file-list.list-view .file-item .file-item-footer .file-item-name{width:70%}.igd-body .file-list.list-view .file-item .file-item-footer .file-item-size{width:30%;text-align:center}.igd-body .file-list.list-view .file-item .file-item-footer .file-item-options{position:absolute;left:0}.igd-body .file-list.list-view .file-item .file-item-footer .file-icon-wrap{margin-right:0}.igd-body .file-list.list-view .file-item .file-item-footer:not(:has(.file-item-size)) .file-item-name{width:100%}.igd-body .file-list.list-view .file-item:not(:has(.file-item-date)) .file-item-footer{width:90%}.igd-body .file-list.list-view .file-item:last-child{border-bottom:0}.igd-body .file-list.list-view .root-item{padding:15px 10px;font-size:1rem;justify-content:flex-start}@media (max-width:767px){.igd-body .file-list.list-view .list-view-header .col-name{width:65%}.igd-body .file-list.list-view .list-view-header .col-modified{display:none}.igd-body .file-list.list-view .file-item .file-item-footer{width:90%}.igd-body .file-list.list-view .file-item .file-item-date{display:none}}.igd-body .file-list.empty .list-view-header{display:none}.igd-body .file-list.empty+.igd-file-uploader{margin:10px 7px}.igd-body .file-list.igd-item-col-1 .file-item{width:100%}.igd-body .file-list.igd-item-col-1:not(.list-view) .file-item{margin:4px}.igd-body .file-list.igd-item-col-2 .file-item{width:calc(50% - 14px)}.igd-body .file-list.igd-item-col-3 .file-item{width:calc(33.33% - 14px)}.igd-body .file-list.igd-item-col-3 .file-item .file-item-footer .file-item-size{display:none}.igd-body .file-list.igd-item-col-4 .file-item{width:calc(25% - 14px)}.igd-body .file-list.igd-item-col-5 .file-item{width:calc(20% - 14px)}.igd-body .file-list.igd-item-col-6 .file-item{width:calc(16.66% - 14px)}.igd-body .file-list.igd-item-col-7 .file-item{width:calc(14.28% - 14px)}.igd-body .file-list.igd-item-col-8 .file-item{width:calc(12.5% - 14px)}.igd-body .search-result-info{font-size:1rem;margin:10px 5px 15px 0;display:flex;align-items:center}.igd-body .search-result-info .clear-button{margin-right:10px}.igd-body .loading-wrap{display:flex;justify-content:center;height:100%;width:100%;position:absolute;top:0;right:0;z-index:1}.igd-body .loading-wrap img{width:150px;height:150px;margin-top:2rem}.igd-body.loading{min-height:15rem}.igd-body.loading:not(.lazy-loading) .file-list,.igd-body.loading:not(.lazy-loading) .igd-gallery-images{opacity:.3}.igd-body.loading:not(.lazy-loading) .file-list .file-item,.igd-body.loading:not(.lazy-loading) .igd-gallery-images .file-item{transform:none;transition:none}.igd-body.lazy-loading .loading-wrap{position:unset}.igd-body.lazy-loading .loading-wrap img{margin-top:-1rem}.igd-details{display:flex;flex-flow:column;padding:20px 15px}.igd-details-wrap{width:250px;position:sticky;border-right:1px solid #e5e5e5;background:#fff}.igd-details .close-details{align-self:flex-end;cursor:pointer;font-size:1.25rem;opacity:.5;margin:-5px 0 5px 0}.igd-details .close-details:hover{opacity:1}.igd-details .details-item{display:flex;align-items:center;margin-bottom:15px;flex-wrap:wrap}.igd-details .details-item img{width:20px;height:20px;margin-left:10px}.igd-details .details-item-label{font-size:.875rem;font-weight:500;color:#444;width:80px;display:flex;align-items:center;justify-content:space-between}.igd-details .details-item-label:after{content:":";margin-left:10px}.igd-details .details-item.name{font-weight:500;font-size:1rem;margin-bottom:20px;word-break:break-all;flex-wrap:nowrap}.igd-details .details-item-value{font-size:.875rem;color:#555;word-break:break-all;max-width:100%}.igd-details .details-item.field-location{flex-direction:column;align-items:flex-start}.igd-details .details-item.field-location .details-item-value{margin-top:7px}.igd-details .details-item.field-location .location-wrap{display:flex;align-items:center;border:1px solid #ddd;border-radius:5px;padding:5px;cursor:pointer}.igd-details .details-item.field-location .location-wrap img{margin-left:5px}.igd-details .details-item.field-location .location-wrap span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-details .details-item.field-location .location-wrap:hover{background:#f5f5f5}.igd-details .details-item.field-description{display:flex;align-items:flex-start;flex-wrap:wrap;justify-content:space-between}.igd-details .details-item.field-description .details-item-label{margin-bottom:5px}.igd-details .details-item.field-description .description-placeholder,.igd-details .details-item.field-description .details-item-value{width:100%;color:#555}.igd-details .details-item.field-description .dashicons{cursor:pointer;padding:0 5px;box-sizing:content-box;margin-top:5px}.igd-details .details-item.field-description form,.igd-details .details-item.field-description textarea{width:100%}.igd-details .details-placeholder{font-size:1rem}@media (max-width:767px){.igd-details{max-width:80%;height:100%;margin-right:auto;background:#fff}.igd-details-wrap{width:100%;max-width:100%;position:absolute;z-index:2;background:rgba(0,0,0,.5);height:100%}}.igd-context-menu{z-index:99999999;background-color:#fff;border-radius:4px;list-style:none;font-size:14px;font-family:sans-serif;font-weight:400;line-height:1.5;color:#333;cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;box-shadow:0 0 10px rgba(0,0,0,.2)}.igd-context-menu,.igd-context-menu *{box-sizing:border-box}.igd-context-menu .context-menu-item{display:flex;align-items:center;padding:10px 15px;cursor:pointer;transition:background-color .2s ease;width:100%;position:relative}.igd-context-menu .context-menu-item.details,.igd-context-menu .context-menu-item.import{border-bottom:1px solid #eee}.igd-context-menu .context-menu-item.delete,.igd-context-menu .context-menu-item.download{border-top:1px solid #eee}.igd-context-menu .context-menu-item.disabled{color:#ccc}.igd-context-menu .context-menu-item.upload{border-bottom:1px solid #ddd}.igd-context-menu .context-menu-item.delete{border-bottom:1px solid #ddd}.igd-context-menu .context-menu-item.view{border-top:1px solid #ddd}.igd-context-menu .context-menu-item i{margin-left:10px}.igd-context-menu .context-menu-item:hover{background-color:#f5f5f5}.igd-context-menu .context-menu-item:hover .pro-badge{transform:scale(1.1)}.igd-context-menu .context-menu-item .pro-badge{position:absolute;left:0;background:#fdb837;color:#fff;padding:5px;border-radius:4px;font-size:11px;font-weight:400;display:flex;align-items:center;justify-content:center;line-height:1;box-shadow:0 0 5px rgba(0,0,0,.1);transition:transform .2s ease}.igd-context-menu .context-menu-item .pro-badge i{margin-left:2px;height:auto;width:auto;font-size:15px}.share-modal *{box-sizing:border-box}.share-modal .swal2-close:focus{outline:0;background:100% 0;color:#f08080;box-shadow:none}.share-modal .share-link{margin-bottom:1rem}.share-modal .share-link input,.share-modal .share-link textarea{width:-webkit-fill-available;border:1px solid #ddd;border-radius:4px;padding:0 10px;font-size:14px;font-family:sans-serif;font-weight:400;line-height:1.5;color:#333;cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;text-align:center;word-break:break-all}.share-modal .share-link input{height:40px}.share-modal .share-link textarea{height:100px}.share-modal.embed .embed-code{display:flex}.share-modal.embed .share-links{display:none}.share-modal .share-links{display:flex;justify-content:center;flex-wrap:wrap}.share-modal .share-links .share-item{display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;color:#333;text-decoration:none;margin:0 0 10px 10px}.share-modal .share-links .share-item i{font-size:22px;width:auto;height:auto;border:1px solid #ccc;border-radius:50%;padding:10px;margin:10px}.share-modal .share-links .share-item span{font-size:.875rem}.share-modal .share-links .share-item.link i{background:#fff;border:1px solid #ccc;color:#333}.share-modal .share-links .share-item.link span{color:#333}.share-modal .share-links .share-item.link:hover i{background:#e6e6e6}.share-modal .share-links .share-item.embed i{background:#333;border:1px solid #333;color:#fff}.share-modal .share-links .share-item.embed:hover i{background:#1a1a1a}.share-modal .share-links .share-item.facebook i{background-color:#3b5998;color:#fff}.share-modal .share-links .share-item.facebook span{color:#3b5998}.share-modal .share-links .share-item.facebook:hover i{background-color:#4c70ba}.share-modal .share-links .share-item.twitter i{background-color:#1da1f2;color:#fff}.share-modal .share-links .share-item.twitter span{color:#1da1f2}.share-modal .share-links .share-item.twitter:hover i{background-color:#4db5f5}.share-modal .share-links .share-item.whatsapp i{background-color:#25d366;color:#fff}.share-modal .share-links .share-item.whatsapp span{color:#25d366}.share-modal .share-links .share-item.whatsapp:hover i{background-color:#4be083}.share-modal .share-links .share-item.email i{background-color:#dd4f42;color:#fff}.share-modal .share-links .share-item.email span{color:#dd4f42}.share-modal .share-links .share-item.email:hover i{background-color:#e5776d}.move-folders{display:flex;flex-direction:column;align-items:flex-start;max-height:300px;overflow-y:auto;border:1px solid #ddd;border-radius:4px;padding:10px}.move-folders-wrap button{margin:20px auto 0;padding:10px 20px}.move-folders-wrap button .igd-spinner{margin-left:10px}.move-folders,.move-folders *{box-sizing:border-box}.move-folders::-webkit-scrollbar{width:5px}.move-folders::-webkit-scrollbar-track{background:#f1f1f1}.move-folders::-webkit-scrollbar-thumb{background:#999;border-radius:5px}.move-folders .move-folder{display:flex;align-items:center;justify-content:flex-start;text-align:right;width:100%;cursor:pointer;padding:7px 0;border-radius:3px}.move-folders .move-folder>.igd-spinner{margin-right:10px}.move-folders .move-folder-wrap{width:100%;padding-right:20px;text-align:right}.move-folders .move-folder-wrap.empty{margin:10px 0;padding-right:30px;display:flex;align-items:center;color:#c73e1d;font-size:.875rem}.move-folders .move-folder-wrap.empty i{margin-left:5px}.move-folders .move-folder i{margin-left:10px}.move-folders .move-folder img{width:22px;height:22px;margin-left:10px}.move-folders .move-folder .file-item-checkbox .box{border-color:#999}.move-folders .move-folder span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.move-folders .move-folder:hover{background-color:#f5f5f5}.move-folders .move-folder:hover img{display:none}.move-folders .move-folder:hover .file-item-checkbox{display:flex;padding:0;border:1px solid #fff;margin-left:10px}.move-folders .move-folder.active{background-color:var(--color-primary-lighter)}.move-folders .move-folder.active img{display:none}.move-folders .move-folder.active .file-item-checkbox{display:flex;padding:0;border:1px solid #fff;margin-left:10px}.igd-download-popup{z-index:999999!important}.igd-download-wrap #igd-download-status{font-size:1.3rem;font-weight:600;margin:15px auto 5px}.igd-download-wrap #igd-hidden-download{display:none}.igd-copy-swal,.igd-move-swal{z-index:99999}.react-contexify{position:fixed;opacity:0;-webkit-user-select:none;-moz-user-select:none;user-select:none;background-color:#fff;box-sizing:border-box;box-shadow:0 10px 30px -5px rgba(0,0,0,.3);border-radius:6px;min-width:200px}.context-submenu{width:100%}.react-contexify__submenu--is-open,.react-contexify__submenu--is-open>.react-contexify__item__content{color:#fff;background-color:#4393e6}.react-contexify__submenu--is-open>.react-contexify__submenu{pointer-events:initial;opacity:1}.react-contexify .react-contexify__submenu{position:absolute;top:-6px;pointer-events:none;transition:opacity 275ms}.react-contexify__submenu-arrow{margin-right:auto;font-size:12px}.react-contexify__submenu-arrow i{margin-left:0!important}.react-contexify__separator{width:100%;height:1px;cursor:default;margin:4px 0;background-color:rgba(0,0,0,.2)}.react-contexify__will-leave--disabled{pointer-events:none}.react-contexify__item{cursor:pointer;position:relative}.react-contexify__item:focus{outline:0}.react-contexify__item:not(.react-contexify__item--disabled):hover>.react-contexify__submenu{pointer-events:initial;opacity:1}.react-contexify__item--disabled{cursor:default;opacity:.5}.react-contexify__item__content{display:flex;align-items:center;white-space:nowrap;color:#333;position:relative;width:100%}.react-contexify__theme--dark{background-color:rgba(40,40,40,.98)}.react-contexify__theme--dark .react-contexify__submenu{background-color:rgba(40,40,40,.98)}.react-contexify__theme--dark .react-contexify__separator{background-color:#eee}.react-contexify__theme--dark .react-contexify__item__content{color:#fff}.react-contexify__theme--light .react-contexify__separator{background-color:#eee}.react-contexify__theme--light .react-contexify__submenu--is-open,.react-contexify__theme--light .react-contexify__submenu--is-open>.react-contexify__item__content{color:#4393e6;background-color:#e0eefd}.react-contexify__theme--light .react-contexify__item:not(.react-contexify__item--disabled):focus>.react-contexify__item__content,.react-contexify__theme--light .react-contexify__item:not(.react-contexify__item--disabled):hover>.react-contexify__item__content{color:#4393e6;background-color:#e0eefd}.react-contexify__theme--light .react-contexify__item__content{color:#666}@keyframes react-contexify__scaleIn{from{opacity:0;transform:scale3d(.3,.3,.3)}to{opacity:1}}@keyframes react-contexify__scaleOut{from{opacity:1}to{opacity:0;transform:scale3d(.3,.3,.3)}}.react-contexify__will-enter--scale{transform-origin:top right;animation:react-contexify__scaleIn .3s}.react-contexify__will-leave--scale{transform-origin:top right;animation:react-contexify__scaleOut .3s}@keyframes react-contexify__fadeIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes react-contexify__fadeOut{from{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(10px)}}.react-contexify__will-enter--fade{animation:react-contexify__fadeIn .3s ease}.react-contexify__will-leave--fade{animation:react-contexify__fadeOut .3s ease}@keyframes react-contexify__flipInX{from{transform:perspective(800px) rotate3d(-1,0,0,-45deg)}to{transform:perspective(800px)}}@keyframes react-contexify__flipOutX{from{transform:perspective(800px)}to{transform:perspective(800px) rotate3d(-1,0,0,-45deg);opacity:0}}.react-contexify__will-enter--flip{backface-visibility:visible!important;transform-origin:top center;animation:react-contexify__flipInX .3s}.react-contexify__will-leave--flip{transform-origin:top center;animation:react-contexify__flipOutX .3s;backface-visibility:visible!important}@keyframes swing-in-top-fwd{0%{transform:rotateX(-100deg);transform-origin:top;opacity:0}100%{transform:rotateX(0);transform-origin:top;opacity:1}}@keyframes react-contexify__slideIn{from{opacity:0;transform:scale3d(1,.3,1)}to{opacity:1}}@keyframes react-contexify__slideOut{from{opacity:1}to{opacity:0;transform:scale3d(1,.3,1)}}.react-contexify__will-enter--slide{transform-origin:top center;animation:react-contexify__slideIn .3s}.react-contexify__will-leave--slide{transform-origin:top center;animation:react-contexify__slideOut .3s}.igd-shortcode-gallery .igd-file-browser-header .photo-proofing-btn .selection-count{margin-right:3px}.igd-module-gallery{overflow:hidden}.igd-module-gallery .item-selection{position:absolute;z-index:9;top:5px;right:5px;cursor:pointer;display:none}.igd-module-gallery .item-selection circle{display:none}.igd-module-gallery .item-selection:hover svg{fill:#fff}.igd-module-gallery .file-list{overflow:hidden}.igd-module-gallery .file-list .file-item{position:relative;border-radius:0}.igd-module-gallery .file-list .file-item .igd-gallery-folder-images{transition:all .3s ease-in-out}.igd-module-gallery .file-list .file-item:hover{transform:none}.igd-module-gallery .file-list .file-item:hover .item-selection{display:block}.igd-module-gallery .file-list .file-item:hover .igd-gallery-folder-images{transition:all .3s ease-in-out;transform:scale(1.07);box-shadow:0 0 0 1px #ddd}.igd-module-gallery .file-list .file-item.active{transform:none}.igd-module-gallery .file-list .file-item.active .item-selection{display:block}.igd-module-gallery .file-list .file-item.active .item-selection svg{fill:#4285f4}.igd-module-gallery .file-list .file-item.active .igd-gallery-folder-images{transition:all .3s ease-in-out;transform:scale(1.07);box-shadow:0 0 0 1px #ddd}.igd-module-gallery .file-list .file-item .file-item-footer{font-size:1rem}.igd-module-gallery .file-list .file-item:not(.folder-item){max-width:100%}.igd-module-gallery .file-list .file-item:not(.folder-item) .file-item-footer{background:rgba(0,0,0,.5)!important;color:#fff!important;padding:15px 10px!important;position:absolute;bottom:0;right:0;width:100%;justify-content:center;border:none!important}.igd-module-gallery .file-list .file-item:not(.folder-item) .file-item-footer i{margin-left:5px}.igd-module-gallery .file-list .file-item:not(.folder-item) .file-item-footer img{background:rgba(255,255,255,.9);padding:0 2px;border-radius:3px;box-sizing:content-box}.igd-module-gallery .file-list .file-item:not(.folder-item) .file-item-footer span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-module-gallery .file-list .file-item:last-child{margin-left:auto!important}.igd-module-gallery .igd-gallery-folder-images{position:relative;width:100%;height:100%;overflow:hidden;display:flex;align-items:center;justify-content:center}.igd-module-gallery .igd-gallery-folder-images img{position:absolute;-webkit-user-drag:none;opacity:0;pointer-events:none;animation-name:image-fade-out;animation-duration:1.5s}.igd-module-gallery .igd-gallery-folder-images img.active{animation-name:image-fade;animation-duration:1.5s;opacity:1}.igd-module-gallery .igd-gallery-folder-images img:not([src*=drive-thirdparty]){width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.igd-module-gallery .igd-gallery-folder-images i{height:auto;width:auto;font-size:3.5rem;color:#555}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item{overflow:hidden;position:relative;cursor:pointer}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item img{transition:all .3s ease-in-out;-o-object-fit:cover;object-fit:cover;width:100%;height:100%}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item-overlay{position:absolute;top:0;right:0;width:100%;height:100%;background:rgba(0,0,0,.5);transition:all .3s ease-in-out;color:#fff;display:flex;align-items:center;justify-content:center;flex-direction:column;opacity:0;pointer-events:none;text-align:center;padding:15px}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item-overlay .overlay-title{font-weight:600;margin-bottom:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item-overlay .overlay-size{font-size:13px}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item:hover .item-selection{display:block}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item:hover .igd-gallery-item-overlay{opacity:1;pointer-events:all}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item:hover img{box-shadow:0 0 0 1px #ddd;transition:all .3s ease-in-out;transform:scale(1.07)}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item.active .item-selection{display:block}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item.active .item-selection svg{fill:#4285f4}.igd-module-gallery.gallery-view-rounded .file-list .file-item{border-radius:5px}.igd-module-gallery.gallery-view-rounded .react-photo-gallery--gallery .igd-gallery-item{border-radius:7px}.igd-module-gallery.gallery-layout-grid .file-list .file-item{width:var(--column-width)}.igd-module-gallery.gallery-layout-grid .file-list .file-item:not(.folder-item){aspect-ratio:var(--aspect-ratio)}.igd-module-gallery.gallery-layout-grid .react-photo-gallery--gallery .igd-gallery-item{width:var(--column-width);aspect-ratio:var(--aspect-ratio)}.igd-module-gallery.gallery-layout-masonry .file-list .file-item{width:var(--column-width)}.igd-module-gallery.gallery-layout-masonry .file-list .file-item:not(.folder-item){aspect-ratio:var(--aspect-ratio)}@keyframes image-fade{from{opacity:.4}to{opacity:1}}@keyframes image-fade-out{from{opacity:1}to{opacity:0}}.igd-module-uploader,.igd-module-uploader *{box-sizing:border-box}.igd-module-uploader .dashicons-cloud-upload{width:auto;height:auto}.igd-module-uploader.igd-form-uploader{margin-top:1rem!important}.igd-module-uploader .upload-confirmation{display:none!important;margin:20px 0;text-align:center;flex-direction:column;align-items:center}.igd-module-uploader .upload-confirmation h3{color:var(--color-primary)}.igd-module-uploader.show-confirmation{border-style:solid!important}.igd-module-uploader.show-confirmation .upload-confirmation{display:flex!important}.igd-module-uploader.show-confirmation .igd-file-uploader-inner{display:none!important}.igd-file-uploader{display:flex;align-items:center;justify-content:center;flex-direction:column;border-radius:10px!important;border:1px dashed var(--color-primary-light)!important;padding:3px!important;max-width:500px;width:100%!important;background:#fff!important}.igd-file-uploader *{box-sizing:border-box}.igd-file-uploader:not(.igd-form-uploader){margin:auto}.igd-file-uploader.drag-active{border-color:var(--color-primary);border-width:2px;background-color:#bfdbfe;box-shadow:rgba(149,157,165,.2) 0 8px 24px}.igd-file-uploader.drag-active *{pointer-events:none}.igd-file-uploader-body{display:flex;align-items:center;flex-direction:column;width:100%!important;-webkit-user-select:none;-moz-user-select:none;user-select:none}.igd-file-uploader-body h3{font-size:1.2rem;font-weight:600;margin-bottom:10px!important}.igd-file-uploader-body .max-size-label{font-size:.875rem;margin-top:1rem;color:#999}.igd-file-uploader .igd-file-uploader-inner{display:flex!important;align-items:center!important;flex-direction:column!important;border-radius:7px!important;padding:1rem!important;background-color:var(--color-primary-lighter)!important;justify-content:center;width:100%!important;border:1px dashed #ddd!important}.igd-file-uploader .igd-file-uploader-inner p{font-weight:400;margin:5px 0!important;color:#555;line-height:1}.igd-file-uploader .igd-file-uploader-inner .dashicons-cloud-upload{font-size:4rem;height:auto;width:auto;margin-bottom:1rem;line-height:1;color:#555}.igd-file-uploader .igd-file-uploader-inner .igd-file-uploader-buttons{display:flex}.igd-file-uploader .igd-file-uploader-inner .igd-file-uploader-buttons button{display:flex;align-items:center;white-space:nowrap;cursor:pointer;border-radius:.25rem;border:none;padding:.375rem .5rem;margin:.5rem;background-color:var(--color-primary);box-shadow:rgba(149,157,165,.2) 0 8px 24px;color:#fff;transition:all .2s ease-in-out;font-weight:400}.igd-file-uploader .igd-file-uploader-inner .igd-file-uploader-buttons button span{margin-right:5px}.igd-file-uploader .igd-file-uploader-inner .igd-file-uploader-buttons button:hover{background-color:var(--color-primary-light-alt)}.igd-file-uploader .igd-file-uploader-inner .upload-info{display:flex;align-items:center;line-height:1}.igd-file-uploader .igd-file-uploader-inner .upload-info span{margin-left:5px}.igd-file-uploader .igd-file-uploader-inner .upload-info span:after{content:"|";margin-right:5px;color:#000}.igd-file-uploader .igd-file-uploader-inner .upload-info span:last-child{margin-left:0}.igd-file-uploader .igd-file-uploader-inner .upload-info span:last-child:after{content:"";margin-right:0}.igd-file-uploader .igd-file-uploader-inner .igd-file-uploader-add-more{margin-top:15px}.igd-file-uploader.required-error{border-color:red}.igd-file-uploader .file-list-wrapper{display:flex;flex-direction:column;z-index:50;margin-top:5px!important;width:100%!important;max-height:400px;max-width:100%;overflow:hidden!important;background-color:#fff!important;box-shadow:rgba(149,157,165,.2) 0 8px 24px!important;bottom:1rem;left:1rem}.igd-file-uploader .file-list-wrapper.fixed{position:fixed}.igd-file-uploader .file-list-wrapper .start-upload{margin:10px auto}@media (max-width:991px){.igd-file-uploader .file-list-wrapper{max-width:300px;max-height:300px;left:0}}.igd-file-uploader .file-list{display:flex;flex-flow:column;flex-wrap:nowrap!important;overflow-y:auto!important}.igd-file-uploader .file-list-header{display:flex;align-items:center;padding:10px 15px!important;background-color:var(--color-primary)!important;color:#fff;line-height:1;border-radius:5px;margin-bottom:5px}.igd-file-uploader .file-list-header .file-count{margin-left:5px}.igd-file-uploader .file-list-header i{cursor:pointer;height:26px!important;width:26px!important;border:1px solid!important;border-radius:50%!important;font-size:22px!important;display:flex;align-items:center;justify-content:center}.igd-file-uploader .file-list-item{display:flex;align-items:center;padding:8px 12px!important;border-bottom:1px solid #eaeaea!important;width:100%!important;opacity:.5}.igd-file-uploader .file-list-item img{width:22px!important;height:22px!important;margin-left:5px!important}.igd-file-uploader .file-list-item .file-info{display:flex;flex-wrap:wrap;overflow:hidden;width:100%;line-height:1}.igd-file-uploader .file-list-item .file-info .upload-item{display:flex;align-items:center;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;flex:1}.igd-file-uploader .file-list-item .file-info .upload-item-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;margin-left:4px}.igd-file-uploader .file-list-item .file-info .upload-item-size{font-size:.75rem;color:#999}.igd-file-uploader .file-list-item .file-info-percentage{margin-right:auto;text-align:left;font-size:.875rem;display:flex;align-items:center;width:-moz-max-content;width:max-content}.igd-file-uploader .file-list-item .file-info-percentage .igd-spinner{margin-top:0;margin-left:5px;border-radius:50%}.igd-file-uploader .file-list-item .file-info-progress{width:100%;height:4px;background-color:#ddd;border-radius:.25rem;margin-top:7px;overflow:hidden;position:relative;align-items:center;justify-content:space-between;display:none}.igd-file-uploader .file-list-item .file-info-progress-bar{width:var(--percentage);height:100%;background-color:var(--color-primary-light-alt);border-radius:.25rem;position:absolute;right:0;top:0;transition:width .5s ease-in-out}.igd-file-uploader .file-list-item .file-info-error{color:red;width:100%;font-size:.75rem;margin-top:3px}.igd-file-uploader .file-list-item .file-info .igd-spinner{width:20px;margin-right:7px}.igd-file-uploader .file-list-item .file-info .percentage{margin:0 7px}.igd-file-uploader .file-list-item .file-info i{margin-right:7px;height:22px!important;width:22px!important;font-size:16px;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer}.igd-file-uploader .file-list-item .file-info i:not(.dashicons-saved,.dashicons-no-alt){border:1px solid #ddd}.igd-file-uploader .file-list-item .file-info .dashicons-controls-play{padding-right:3px}.igd-file-uploader .file-list-item .file-info .remove-file{background:#ff9f10;color:#fff;margin-right:10px}.igd-file-uploader .file-list-item:hover{background-color:#e0f2fe}.igd-file-uploader .file-list-item.uploaded{opacity:1}.igd-file-uploader .file-list-item.uploaded .file-info .dashicons-saved{background:var(--color-primary);color:#fff}.igd-file-uploader .file-list-item.uploaded .file-info .remove-file{background:100% 0;color:#ff9f10;border:1px solid #ff9f10;opacity:.6}.igd-file-uploader .file-list-item.uploaded .file-info .remove-file:hover{background:#ff9f10;color:#fff;opacity:1}.igd-file-uploader .file-list-item.uploaded .file-info-progress{display:flex}.igd-file-uploader .file-list-item.uploaded .file-info-progress-bar{width:100%}.igd-file-uploader .file-list-item.active{opacity:.8}.igd-file-uploader .file-list-item.active .file-info-progress{display:flex}.igd-file-uploader .file-list::-webkit-scrollbar{width:5px}.igd-file-uploader .file-list::-webkit-scrollbar-track{background:#f1f1f1}.igd-file-uploader .file-list::-webkit-scrollbar-thumb{background:#ccc}.igd-file-uploader .file-list::-webkit-scrollbar-thumb:hover{background:#bbb}.igd-file-uploader .cancel-upload{position:absolute;top:15px;left:15px;cursor:pointer;border-radius:5px;height:40px;width:40px;font-size:25px;display:flex;align-items:center;justify-content:center;color:rgba(255,0,0,.3)}.igd-file-uploader .cancel-upload:hover{color:rgba(255,0,0,.5)}.igd-file-browser .igd-file-uploader{position:fixed!important;left:15px;bottom:15px;z-index:2;box-shadow:0 0 10px rgba(0,0,0,.2)}.igd-file-browser .igd-file-uploader:has(.file-list-wrapper) .igd-file-uploader-inner .dashicons-cloud-upload{display:none}@media (max-width:767px){.igd-file-browser .igd-file-uploader{position:absolute!important;height:100%;left:unset;bottom:unset;width:calc(100% - 20px)!important;justify-content:flex-start;background:rgba(0,0,0,.5)!important}.igd-file-browser .igd-file-uploader .igd-file-uploader-inner{background:linear-gradient(var(--color-primary-lighter),var(--color-primary-lighter)),#fff!important}}.ff-el-is-error .igd-file-uploader,.frm_blank_field .igd-file-uploader,.gfield_error .igd-file-uploader,.mf-input-wrapper.has-error .igd-file-uploader,.nf-error .igd-file-uploader,.wpforms-has-error .igd-file-uploader{border-color:red!important}@keyframes ssc-loading{from{transform:translateX(100%)}to{transform:translateX(-100%)}}.ssc-circle,.ssc-head-line,.ssc-line,.ssc-square{position:relative;overflow:hidden}.ssc-circle:after,.ssc-head-line:after,.ssc-line:after,.ssc-square:after{content:"";animation:ssc-loading 1.3s infinite;height:100%;right:0;position:absolute;left:0;top:0;transform:translateX(100%);z-index:1;background:linear-gradient(-90deg,transparent,rgba(255,255,255,.3),transparent)}.ssc{cursor:progress;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ssc-card{display:block;width:100%;border-radius:5px;box-shadow:0 2px 4px 1px rgba(0,0,0,.17);background-color:#fff;margin-bottom:15px}.ssc-circle{display:block;background-color:rgba(0,0,0,.17);border-radius:50%;width:30px;height:30px}.ssc-hr{display:block;width:100%;background-color:rgba(0,0,0,.17);height:2px}.ssc-line{display:block;background-color:rgba(0,0,0,.17);border-radius:15px;height:12px}.ssc-line:last-child{margin-bottom:unset}.ssc-head-line{display:block;background-color:rgba(0,0,0,.17);border-radius:15px;width:100%;height:24px}.ssc-square{display:block;background-color:rgba(0,0,0,.17);width:100%;height:100px;border-radius:5px}.flex{display:flex}.flex-1{flex:1}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-between{justify-content:space-between}.w-full{width:100%}.mb-3{margin-bottom:.875rem}.mr-2{margin-left:.5rem}.w-16{width:4rem}.w-6{width:1.5rem}.h-6{height:1.5rem}.p-4{padding:1rem}body.google-drive_page_integrate-google-drive-private-folders.swal2-shown{overflow:auto!important;padding-left:0!important}.igd-private-folders,.igd-private-folders *{box-sizing:border-box}.igd-private-folders-header{display:flex;width:calc(100% + 20px);margin-right:-20px;background:#fff;padding:20px 20px;position:sticky;top:32px;border-bottom:1px solid #ddd;box-shadow:0 1px 5px rgba(0,0,0,.1);z-index:99;margin-bottom:30px}.igd-private-folders-header .header-title{display:flex;align-items:center;line-height:1;margin-left:auto}.igd-private-folders-header .header-title img{margin-left:15px}.igd-private-folders-header .header-title-text{display:flex;flex-direction:column}.igd-private-folders-header .header-title-text h3{font-size:1.2rem;margin:0 0 5px 0}.igd-private-folders-header .header-title-text span{margin-top:2px;color:#7a7a7a}.igd-private-folders-header .igd-btn{margin-right:10px}@media (max-width:767px){.igd-private-folders-header{position:relative;top:0}}.igd-private-folders .private-folders-list{background:#fff;padding:20px;border-radius:10px;margin:10px 0 30px 15px;position:relative;overflow:hidden;min-height:70vh}.igd-private-folders .private-folders-list-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.igd-private-folders .private-folders-list-header ul{display:flex;align-items:center}.igd-private-folders .private-folders-list-header ul li{margin-left:5px;margin-bottom:0;cursor:pointer;color:#2fb44b;font-weight:600;font-size:.875rem}.igd-private-folders .private-folders-list-header ul li:not(:last-child):after{content:"|";margin:0 5px;color:#555}.igd-private-folders .private-folders-list-header ul li span{text-transform:capitalize}.igd-private-folders .private-folders-list-header ul li.active{color:#555c66}.igd-private-folders .private-folders-list-header ul li:hover{color:#248c3a}.igd-private-folders .private-folders-list-header .users-search{display:flex;align-items:center}.igd-private-folders .private-folders-list-header .users-search input{height:40px;border:1px solid rgba(47,180,75,.5)}.igd-private-folders .private-folders-list-header .users-search button{margin-right:10px}.igd-private-folders .private-folders-list .swal2-container{position:absolute;width:100%;height:100%;z-index:9}.igd-private-folders .private-folders-list .column-username span{margin-right:10px}.igd-private-folders .private-folders-list .column-actions button{display:inline-flex;align-items:center;padding:7px 10px;line-height:1}.igd-private-folders .private-folders-list .column-actions button i{margin-left:5px}.igd-private-folders .private-folders-list .column-folders .folder-item{display:inline-flex;align-items:center;border:1px solid rgba(47,180,75,.5);width:-moz-max-content;width:max-content;padding:5px;margin:3px;border-radius:5px;color:#7a7a7a}.igd-private-folders .private-folders-list .column-folders .folder-item img{margin-left:5px}.igd-private-folders .private-folders-list .private-folders-table{border-radius:10px;overflow:hidden;border-color:#efefef}.igd-private-folders .private-folders-list .private-folders-table thead th{padding:15px;border-color:#efefef}.igd-private-folders .private-folders-list .private-folders-table tbody tr td{padding:10px;vertical-align:middle}@media (max-width:767px){.igd-private-folders .private-folders-list{margin-right:10px}.igd-private-folders .private-folders-list-header{flex-direction:column}.igd-private-folders .private-folders-list .private-folders-table-wrap{overflow-x:auto}}.igd-private-folders .igd-pro-modal-wrap{position:absolute;z-index:9}.igd-private-folders .igd-pro-modal-close{display:none}.igd-details .details-file-name{width:calc(100% - 20px)}.igd-player{line-height:1.5;display:flex;align-items:flex-start;flex-direction:column;height:100%;background-color:#fff}.igd-player.playlist-left,.igd-player.playlist-right{padding:10px}.igd-player.playlist-left .media-wrap,.igd-player.playlist-right .media-wrap{flex-direction:column;align-items:flex-start;border:none}.igd-player.playlist-left .media-wrap .igd-player-media-wrap,.igd-player.playlist-right .media-wrap .igd-player-media-wrap{margin-top:10px;margin-right:0}.igd-player.playlist-left .igd-player-playlist .playlist-item-wrap,.igd-player.playlist-right .igd-player-playlist .playlist-item-wrap{padding:5px 0}.igd-player.playlist-left.type-audio .media-wrap,.igd-player.playlist-right.type-audio .media-wrap{border:1px solid #eee}.igd-player.playlist-left{flex-wrap:wrap;flex-direction:row;-moz-column-gap:10px;column-gap:10px}.igd-player.playlist-left .igd-player-playlist{width:calc(40% - 10px);order:1;margin:0;padding-left:10px;border-left:1px solid #eee}.igd-player.playlist-left .playlist-search{margin:0}.igd-player.playlist-left .media-wrap{flex:1;order:2;position:sticky;top:10px;z-index:9}.igd-player.playlist-left:has(.igd-player-playlist) .media-wrap{max-width:60%}.igd-player.playlist-right{flex-wrap:wrap;flex-direction:row;-moz-column-gap:10px;column-gap:10px;padding-left:5px}.igd-player.playlist-right .igd-player-playlist{width:calc(40% - 10px);order:2;margin:0;padding-right:10px;border-right:1px solid #eee;padding-left:5px}.igd-player.playlist-right .playlist-search{margin:0}.igd-player.playlist-right .media-wrap{flex:1;order:1;position:sticky;top:10px;z-index:9}.igd-player.playlist-right:has(.igd-player-playlist) .media-wrap{max-width:60%}.igd-player.playlist-bottom .playlist-search{width:calc(100% - 20px);margin:10px auto}.igd-player .media-wrap{width:100%;display:flex;align-items:center}.igd-player .media-wrap .current-item{display:flex;align-items:center;overflow:hidden}.igd-player .media-wrap .current-item img{margin-left:10px;width:40px}.igd-player .media-wrap .current-item .item-caption{display:flex;flex-direction:column;overflow:hidden}.igd-player .media-wrap .current-item .item-caption .item-title{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-player .media-wrap .current-item .item-caption .item-description{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-player .media-wrap .igd-player-media-wrap{position:relative}.igd-player .media-wrap iframe{aspect-ratio:16/9}.igd-player.type-video .igd-player-media-wrap{width:100%;height:0;overflow:hidden;padding-bottom:56.25%}.igd-player.type-video .igd-player-media-wrap .igd-player-media-video,.igd-player.type-video .igd-player-media-wrap .plyr,.igd-player.type-video .igd-player-media-wrap video{position:absolute;top:0;right:0;width:100%!important;height:100%!important}.igd-player.type-audio .media-wrap{padding:15px;border-bottom:1px solid #ddd;background:#f5f5f5}.igd-player.type-audio .igd-player-media-wrap{margin-right:auto}.igd-player.type-audio .igd-player-media-wrap .plyr__controls{padding:0;background:100% 0}.igd-player .igd-player-playlist{width:100%;height:100%;overflow-y:auto}.igd-player .igd-player-playlist .playlist-item{position:relative;cursor:pointer;display:flex;align-items:center;color:#333;padding:3px}.igd-player .igd-player-playlist .playlist-item.active{color:var(--color-primary);font-weight:700}.igd-player .igd-player-playlist .playlist-item.active .dashicons{border-color:var(--color-primary);color:var(--color-primary)}.igd-player .igd-player-playlist .playlist-item:not(:has(img)){padding:5px}.igd-player .igd-player-playlist .playlist-item-wrap{border-bottom:1px solid #eee;padding:5px 10px}.igd-player .igd-player-playlist .playlist-item-wrap:last-child{border-bottom:0}.igd-player .igd-player-playlist .playlist-item-wrap .sub-item{margin-right:30px}.igd-player .igd-player-playlist .playlist-item-wrap:hover{background-color:#f5f5f5}.igd-player .igd-player-playlist .playlist-item .item-index{margin-left:7px;white-space:nowrap}.igd-player .igd-player-playlist .playlist-item .igd-spinner{margin-right:0;width:18px;height:18px;margin-left:5px}.igd-player .igd-player-playlist .playlist-item img{width:30px;height:30px;-o-object-fit:cover;object-fit:cover;border-radius:3px;margin-left:5px}.igd-player .igd-player-playlist .playlist-item .item-name{margin-left:auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-player .igd-player-playlist .playlist-item .item-size{margin:0 10px;color:#777;white-space:nowrap;font-size:.75rem}.igd-player .igd-player-playlist .playlist-item .dashicons{font-size:25px;color:#555c66;height:auto;width:auto}.igd-player .igd-player-playlist .playlist-item .dashicons.dashicons-arrow-down,.igd-player .igd-player-playlist .playlist-item .dashicons.dashicons-arrow-right{margin-right:-5px;margin-left:5px}.igd-player .igd-player-playlist .playlist-item .dashicons:hover{color:#444;border-color:var(--color-primary)}.igd-player .igd-player-playlist .playlist-item:last-child{border-bottom:0}.igd-player .igd-player-playlist .search-result-info{display:flex;align-items:center;margin-bottom:7px;margin-top:7px}.igd-player .igd-player-playlist .search-result-info .clear-button{margin-right:7px;padding:7px 10px}.igd-player .igd-player-playlist::-webkit-scrollbar{width:5px;height:5px}.igd-player .igd-player-playlist::-webkit-scrollbar-thumb{background:#ddd;border-radius:10px}.igd-player .igd-player-playlist::-webkit-scrollbar-track{background:#eee;border-radius:10px}.igd-player .playlist-search{position:relative;display:flex;align-items:center;transition:width .3s linear;line-height:1;overflow:hidden;border:1px solid #ddd;border-radius:5px;width:100%;padding:0 15px;margin:10px 0}.igd-player .playlist-search .search-dismiss{cursor:pointer}.igd-player .playlist-search input{height:40px;padding:0 15px;font-size:14px;width:100%;border:none!important;box-shadow:none!important;border-radius:0!important;background:100% 0}.igd-player .playlist-search input:focus{outline:0}.igd-player .playlist-search .search-submit{position:relative;z-index:2}.igd-player .playlist-search .search-submit .dashicons{font-family:dashicons}.igd-player .playlist-search:has(input:focus){box-shadow:rgba(0,0,0,.24) 0 3px 8px}.igd-player .playlist-search.active .input-wrap{left:-10px}.igd-player .playlist-search.active .search-submit svg{fill:#333}.igd-player video{display:inline-block;max-width:100%;min-height:100%}.igd-player audio{display:none;max-width:100%;width:100%}.igd-player .plyr__controls .plyr__controls__item.plyr__time{white-space:nowrap}.igd-player .plyr__control:focus{background:100% 0;color:currentColor}.igd-player .plyr__volume input[type=range]{max-width:60px}.igd-player.size-sm.type-audio .media-wrap,.igd-player.size-xs.type-audio .media-wrap{flex-direction:column}.igd-player.size-sm.type-audio .media-wrap .current-item img,.igd-player.size-xs.type-audio .media-wrap .current-item img{width:30px}.igd-player.size-sm.type-audio .media-wrap .igd-player-media-wrap,.igd-player.size-xs.type-audio .media-wrap .igd-player-media-wrap{margin-top:15px;margin-right:0}.igd-player.size-sm .plyr__volume input[type=range],.igd-player.size-xs .plyr__volume input[type=range]{max-width:40px;min-width:40px}.igd-player.size-sm.playlist-left,.igd-player.size-sm.playlist-right,.igd-player.size-xs.playlist-left,.igd-player.size-xs.playlist-right{flex-direction:column}.igd-player.size-sm.playlist-left .igd-player-playlist,.igd-player.size-sm.playlist-left .media-wrap,.igd-player.size-sm.playlist-right .igd-player-playlist,.igd-player.size-sm.playlist-right .media-wrap,.igd-player.size-xs.playlist-left .igd-player-playlist,.igd-player.size-xs.playlist-left .media-wrap,.igd-player.size-xs.playlist-right .igd-player-playlist,.igd-player.size-xs.playlist-right .media-wrap{width:100%;max-width:100%!important}.igd-player.size-sm.playlist-left .media-wrap,.igd-player.size-sm.playlist-right .media-wrap,.igd-player.size-xs.playlist-left .media-wrap,.igd-player.size-xs.playlist-right .media-wrap{position:unset}.igd-player.size-sm.playlist-left .igd-player-playlist,.igd-player.size-sm.playlist-right .igd-player-playlist,.igd-player.size-xs.playlist-left .igd-player-playlist,.igd-player.size-xs.playlist-right .igd-player-playlist{order:999}.igd-lightbox{z-index:999999;position:fixed}.igd-lightbox .lg-backdrop{background:rgba(0,0,0,.9)!important}.igd-lightbox .lg-sub-html h4,.igd-lightbox .lg-sub-html p{color:inherit}.igd-lightbox:not(.gallery-lightbox) .lg-sub-html{background:#111!important;display:flex;align-items:center;padding:10px 15px;max-width:calc(100% - 100px)}.igd-lightbox .lg-outer .lg-thumb-item{height:60px}.igd-lightbox .item-name{display:flex;align-items:center;max-width:75%;overflow:hidden}.igd-lightbox .item-name img{margin-left:10px;width:24px}.igd-lightbox .item-name span{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.igd-lightbox.no-download .lg-download{display:none}.igd-lightbox .lg-outer[data-lg-slide-type=iframe] .lg-actual-size,.igd-lightbox .lg-outer[data-lg-slide-type=iframe] .lg-zoom-in,.igd-lightbox .lg-outer[data-lg-slide-type=iframe] .lg-zoom-out,.igd-lightbox .lg-outer[data-lg-slide-type=video] .lg-actual-size,.igd-lightbox .lg-outer[data-lg-slide-type=video] .lg-zoom-in,.igd-lightbox .lg-outer[data-lg-slide-type=video] .lg-zoom-out{display:none}.igd-lightbox .lg-outer[data-lg-slide-type=iframe] .igd-hidepopout{width:60px;height:55px;position:absolute;opacity:1;left:12px;top:0;z-index:10000000;background-color:#d1d1d1;cursor:default!important}.igd-lightbox .lg-item:has(video>source[type*="audio/"]) .lg-video-cont{margin-top:-60px;max-height:60px;max-width:500px}.igd-lightbox .lg-item:has(video>source[type*="audio/"]) .lg-video-cont .lg-video-poster{margin-top:-20px;max-width:100px!important;height:100px!important;max-height:none!important}@media (max-width:767px){.igd-lightbox .lg-item .lg-video-cont{max-width:90%!important}}.igd-select-files-modal .components-modal__header{border-bottom:1px solid #ddd;box-shadow:0 1px 5px rgba(0,0,0,.1)}.igd-select-files-modal .components-modal__header-heading{width:100%}.igd-select-files-modal .shortcode-module-header{display:flex;flex-direction:column;justify-content:center;align-items:center;margin:30px auto}.igd-select-files-modal .shortcode-module-header .module-title{font-size:1.2rem;margin-bottom:10px;font-weight:600}.igd-select-files-modal .shortcode-module .shortcode-types{display:flex;flex-wrap:wrap;justify-content:center}.igd-select-files-modal .shortcode-module .shortcode-types .shortcode-type{width:calc(20% - 20px);margin:10px;padding:2rem 1.5rem;border:1px solid #ddd;border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;max-width:250px;transition:background .3s ease}.igd-select-files-modal .shortcode-module .shortcode-types .shortcode-type i{height:auto;width:auto;border-radius:50%;padding:15px;border:1px solid #ddd}.igd-select-files-modal .shortcode-module .shortcode-types .shortcode-type span{font-size:1rem;margin-top:15px}.igd-select-files-modal .shortcode-module .shortcode-types .shortcode-type.active{background:var(--color-primary-light);border:1px solid var(--color-primary);color:#fff}.igd-select-files-modal .shortcode-module .shortcode-types .shortcode-type.active i{border:1px solid #fff}.igd-select-files-modal .shortcode-module .shortcode-types .shortcode-type:hover{background:var(--color-primary-light);border:1px solid var(--color-primary);color:#fff}.igd-select-files-modal .shortcode-module .shortcode-types .shortcode-type:hover i{border:1px solid #fff}.igd-select-files-modal .shortcode-module .settings-field{display:flex;flex-wrap:wrap;margin-bottom:10px;align-items:center;border:1px dashed #ddd;border-radius:5px;padding:12px 18px}.igd-select-files-modal .shortcode-module .settings-field-title{font-size:1.2rem;margin-bottom:20px;font-weight:600}.igd-select-files-modal .shortcode-module .settings-field-label{width:200px;font-weight:600;font-size:1rem;display:flex;justify-content:space-between}.igd-select-files-modal .shortcode-module .settings-field-label:after{content:":";margin-right:auto}.igd-select-files-modal .shortcode-module .settings-field-content{display:flex;flex-direction:column;align-items:flex-start;margin-right:20px;flex:1}.igd-select-files-modal .shortcode-module .settings-field-content .components-button i{margin-left:5px}.igd-select-files-modal .shortcode-module .settings-field-content .description{font-size:.8rem;margin-top:10px;text-align:right}.igd-select-files-modal .shortcode-module .settings-field.filter-field .filter-field-input{display:flex;flex-direction:column}.igd-select-files-modal .shortcode-module .settings-field.filter-field .filter-field-all{display:flex;align-items:center;justify-content:flex-start;margin-top:15px;flex-wrap:wrap}.igd-select-files-modal .shortcode-module .settings-field.filter-field .filter-field-all>div{display:flex;align-items:center}.igd-select-files-modal .shortcode-module .settings-field.filter-field .filter-field-all>div:first-child{margin-left:20px}.igd-select-files-modal .shortcode-module .settings-field.filter-field .filter-field-all-label{margin-left:10px;font-weight:500}.igd-select-files-modal .shortcode-module .settings-field.filter-field .filter-field-all .description{width:100%;text-align:right}.igd-select-files-modal .shortcode-module .settings-field.sort-field .sort-field-section{display:flex;flex-direction:column}.igd-select-files-modal .shortcode-module .settings-field.sort-field .sort-field-section:first-child{margin-left:35px;padding-left:15px;border-left:1px solid #ddd}.igd-select-files-modal .shortcode-module .settings-field.sort-field .sort-field-section-wrap{display:flex;margin:15px 30px}.igd-select-files-modal .shortcode-module .settings-field.sort-field .sort-field-section-label{margin-bottom:15px;font-weight:500;text-align:right}.igd-select-files-modal .shortcode-module .settings-field.sort-field .sort-field-section .sort-item{display:flex;align-items:center;margin-bottom:10px;cursor:pointer;position:relative}.igd-select-files-modal .shortcode-module .settings-field.sort-field .sort-field-section .sort-item i{display:none;position:absolute;right:-25px}.igd-select-files-modal .shortcode-module .settings-field.sort-field .sort-field-section .sort-item.active{color:var(--color-primary)}.igd-select-files-modal .shortcode-module .settings-field.sort-field .sort-field-section .sort-item.active i{display:block}.igd-select-files-modal .shortcode-module .settings-field.filter-users-field .filter-users-group{display:flex;flex-direction:column}.igd-select-files-modal .shortcode-module .settings-field.filter-users-field .filter-users{margin-top:15px;display:flex;flex-direction:column;border:1px dashed #ddd;padding:15px;border-radius:7px}.igd-select-files-modal .shortcode-module .settings-field.filter-users-field .filter-users-title{font-weight:500;font-size:1rem;margin-bottom:10px;text-align:right}.igd-select-files-modal .shortcode-module .settings-field.filter-users-field .filter-users-section{display:flex;align-items:center}.igd-select-files-modal .shortcode-module .settings-field.filter-users-field .filter-users-section:first-child{margin-left:20px}.igd-select-files-modal .shortcode-module .settings-field.filter-users-field .filter-users-section-label{margin-left:10px;font-weight:500}.igd-select-files-modal .shortcode-module .settings-field.filter-users-field .filter-users-section-wrap{display:flex;flex-wrap:wrap;margin-bottom:15px}.igd-select-files-modal .shortcode-module .settings-field.filter-users-field .filter-users-section-wrap .description{width:100%}.igd-select-files-modal .shortcode-module .settings-field input,.igd-select-files-modal .shortcode-module .settings-field select{height:40px;border-radius:5px;border:1px solid #ddd;font-size:.8rem;width:350px;max-width:100%}.igd-select-files-modal .shortcode-module .settings-field input:disabled,.igd-select-files-modal .shortcode-module .settings-field select:disabled{background:#f5f5f5;color:#aaa;cursor:not-allowed}.igd-select-files-modal .shortcode-module .settings-field .igd-select{width:400px}.igd-select-files-modal-header{display:flex;align-items:center;justify-content:space-between}.igd-select-files-modal-header .header-title{font-size:1.2rem;color:var(--color-primary);display:flex;align-items:center}.igd-select-files-modal-header .header-title i{margin-left:10px}.igd-select-files-modal-header button{padding:7px 8px}.igd-account-item{padding:1rem;display:flex;border:0 solid transparent;box-shadow:rgba(99,99,99,.2) 0 2px 8px 0;border-radius:.5rem;align-items:center;max-width:450px;margin-bottom:1rem;background:#fff}.igd-account-item img{width:50px;height:50px;margin-left:1rem;border-radius:50%}.igd-account-item-info{display:flex;flex-flow:column}.igd-account-item-info .account-name{font-size:1rem}.igd-account-item-info .account-email{color:#757575}.igd-account-item .igd-account-item-action{margin-right:auto}.igd-account-item .igd-account-item-action button{background-color:#ffe9d9;color:#f06500;border-color:transparent}.igd-account-item:hover button{background:#f96;color:#fff}.no-account-placeholder{display:flex;flex-flow:column;align-items:center;margin:10vh auto;padding:1.5rem 1rem;border-radius:.5rem;width:30rem;background:#fff;box-shadow:0 0 .5rem rgba(0,0,0,.1)}.no-account-placeholder>img{width:200px;margin-bottom:15px}.no-account-placeholder .placeholder-heading{font-size:1.2rem;margin-bottom:7px;font-weight:600}.no-account-placeholder button{margin-top:1.5rem;padding:7px 10px;background:#fff;color:#555;border-radius:3px;border:1px solid #ccc}.no-account-placeholder button img{width:24px;height:24px;margin-left:10px}.add-account-btn{padding:10px 15px;background:#fff;color:#555;border-radius:3px;border:1px solid #ccc}.add-account-btn img{width:24px;height:24px;margin-left:10px}.igd .igd-spinner{margin-top:0;border-radius:50%}.sortable-item{z-index:999999}.igd-select-sources-wrap .igd-browser-wrap{flex:1;margin-left:1rem}.igd-select-sources-wrap .igd-selected-list{width:24%;max-width:300px}.igd-select-sources-wrap.view-list .igd-browser-wrap{width:100%;margin-left:0}.igd-select-sources-wrap.view-list .igd-selected-list{width:100%;max-width:100%;margin-top:1rem}.igd-pagination{display:flex;padding:0}.igd-pagination li{justify-content:center!important;flex-wrap:wrap!important;list-style:none;position:relative;display:flex;align-items:center;padding:8px 16px;text-decoration:none!important;font-size:15px;margin-right:-1px;border:1px solid #dee2e6;margin-left:0;margin-top:0;cursor:pointer}.igd-pagination li.selected,.igd-pagination li:hover{background:var(--color-primary);color:#fff;border-color:var(--color-primary)}.igd-pagination li.disabled{background:#eee;cursor:not-allowed}.igd-pagination li:first-child{border-top-right-radius:3px;border-bottom-right-radius:3px}.igd-pagination li:last-child{border-top-left-radius:3px;border-bottom-left-radius:3px}.igd-pagination li svg{fill:currentColor}.igd-move-modal .components-modal__content{display:flex;flex-flow:column}.igd-file-item .igd-file-thumbnail{-webkit-user-drag:none}.template-tags{margin-top:10px;border-bottom:1px solid #eee;padding-bottom:8px;width:100%}.template-tags-title{width:100%;margin-bottom:7px;text-align:right;font-size:1rem;display:flex;align-items:center}.template-tags-title i{margin-left:7px;cursor:pointer}.template-tags-title span:nth-child(3){margin-right:7px}.template-tags-title+.template-tags-list{display:none}.template-tags-title.active i:before{content:"\f343"}.template-tags-title.active+.template-tags-list{display:flex}.template-tags-list{display:flex;flex-wrap:wrap}.template-tags-list .tag{color:#2fb44b;margin-left:10px;margin-bottom:7px;background:rgba(47,180,75,.1);padding:7px 10px;border-radius:5px;cursor:pointer;font-size:.87rem}.template-tags-list .tag:hover{background:rgba(47,180,75,.7);color:#fff}.template-tags-list .tag-break{width:100%;border-top:1px solid #eee;margin-top:5px;margin-bottom:11px}.template-tags-list .tag-break+.tag-break{display:none}.template-folder{padding:7px 10px;border-radius:5px;background:#eaeaea;margin-left:10px;font-size:.9rem;color:#555;display:flex;flex-wrap:wrap;align-items:center;width:-moz-max-content;width:max-content;line-height:1}.template-folder-account{margin-left:10px}.template-folder-item{background:#fff;padding:5px 7px;border-radius:3px;font-size:.8rem;display:flex;align-items:center;justify-content:center}.template-folder i,.template-folder img{margin-left:7px;width:20px}.template-folder-wrap{display:flex;align-items:center;width:100%}.template-folder-wrap button{font-size:.875rem;padding:7px;margin-right:10px}.template-folder-wrap button.btn-danger{background:#ff9f10;border-color:rgba(255,159,16,.5)}.template-folder-wrap button.btn-danger:hover{background:rgba(255,159,16,.8)}.template-folder-error{color:#ff9f10;font-size:.8rem;margin-top:10px;display:flex;align-items:center}.template-folder-error i{margin-left:5px}.template-folder .dashicons-no-alt{color:#ff9f10;cursor:pointer;margin-right:10px}.igd-shortcode-wrap{-webkit-user-select:none;-moz-user-select:none;user-select:none;overflow-y:auto;margin-bottom:1rem;color:#333;box-sizing:border-box}.igd-shortcode-wrap *{box-sizing:inherit}.igd-shortcode-wrap::-webkit-scrollbar{width:5px}.igd-shortcode-wrap::-webkit-scrollbar-thumb{background:var(--color-primary-light);border-radius:10px}.igd-shortcode-wrap::-webkit-scrollbar-track{background:#ddd;border-radius:10px}.igd-shortcode-wrap.igd-shortcode-browser,.igd-shortcode-wrap.igd-shortcode-gallery,.igd-shortcode-wrap.igd-shortcode-search{border:1px solid #ddd;border-radius:.5rem}.igd-shortcode-wrap.igd-shortcode-browser .igd-file-browser,.igd-shortcode-wrap.igd-shortcode-gallery .igd-file-browser,.igd-shortcode-wrap.igd-shortcode-search .igd-file-browser{align-items:stretch}.igd-shortcode-wrap.igd-shortcode-browser .igd-file-browser .igd-details,.igd-shortcode-wrap.igd-shortcode-browser .igd-file-browser .igd-file-browser-header,.igd-shortcode-wrap.igd-shortcode-gallery .igd-file-browser .igd-details,.igd-shortcode-wrap.igd-shortcode-gallery .igd-file-browser .igd-file-browser-header,.igd-shortcode-wrap.igd-shortcode-search .igd-file-browser .igd-details,.igd-shortcode-wrap.igd-shortcode-search .igd-file-browser .igd-file-browser-header{top:0}.igd-shortcode-wrap.igd-shortcode-search .igd-file-browser-header{height:70px}.igd-shortcode-wrap.igd-shortcode-search .igd-file-browser-header .header-action{width:100%}.igd-shortcode-wrap.igd-shortcode-search .igd-file-browser-header .header-action .igd-search-bar{margin-right:0;width:100%;height:50px;position:relative}.igd-shortcode-wrap.igd-shortcode-audioVideo{overflow:hidden}.igd-shortcode-wrap.igd-shortcode-slider{overflow-y:unset}.igd-shortcode-wrap.igd-shortcode-media{border:1px solid #eee;overflow-y:unset}.igd-video-player video{position:static;transform:none}.igd-video-player audio{height:revert!important}.igd-download-link,.igd-view-link{display:block}.igd-embed-image{max-width:100%}.igd-slider{--slide-height:300px;--slide-gap:5px}.igd-slider .slick-next,.igd-slider .slick-prev{z-index:9}.igd-slider .slick-next:before,.igd-slider .slick-prev:before{display:none}.igd-slider .slick-prev{right:-25px}.igd-slider .slick-next{left:-25px}.igd-slider .slick-dots{position:static}.igd-slider .slick-dots li button:before{font-size:15px}.igd-slider .slider-img-wrap{height:100%;width:100%;position:relative}.igd-slider .slider-img-wrap img{height:100%;width:100%;-o-object-fit:cover;object-fit:cover}.igd-slider .slider-content-wrap{position:absolute;top:0;right:0;left:0;padding:1rem;color:#fff;text-align:center;width:100%;height:100%;opacity:0;background:linear-gradient(to bottom,rgba(0,0,0,.5) 50%,rgba(0,0,0,0) 100%);box-sizing:border-box;transition:all .3s ease-in-out;overflow:hidden;display:flex;align-items:center;justify-content:center}.igd-slider .slider-content-wrap h3{font-size:1rem;margin-bottom:0;color:#fff}.igd-slider .slider-content-wrap p{font-size:.875rem;margin-bottom:0;color:#fff}.igd-slider .slider-actions{display:flex;justify-content:center;align-items:center;margin:10px 0}.igd-slider .slider-actions .slider-action{cursor:pointer;transition:transform .3s ease-in-out}.igd-slider .slider-actions .slider-action.action-download{margin-right:20px}.igd-slider .slider-actions .slider-action svg{width:30px;height:30px;fill:#fff}.igd-slider .slider-actions .slider-action:hover{transform:scale(1.1)}.igd-slider .slick-slide{height:var(--slide-height)}.igd-slider .slick-slide>div{height:100%;position:relative;margin:0 var(--slide-gap)}.igd-slider .slick-slide .slider-item-wrap{position:absolute;width:100%;height:100%}.igd-slider .slick-slide:hover .slider-content-wrap{opacity:1}.igd-access-denied-placeholder{max-width:500px;margin:20px auto;padding:2rem;background:#f1f1f1;border-radius:.5rem;text-align:center}.igd-access-denied-placeholder img{max-width:100px;margin-bottom:15px}.igd-access-denied-placeholder h3{font-size:1.5rem;font-weight:600;margin-bottom:1rem}.igd-access-denied-placeholder p{font-size:1rem;margin-bottom:1rem;color:#555}.igd-disqus-wrap{display:none}[data-widget_type="igd_browser.default"] .elementor-widget-empty-icon:empty,[data-widget_type="igd_shortcodes.default"] .elementor-widget-empty-icon:empty{height:200px;background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIiB2aWV3Qm94PSIwIDAgOTkgOTkiIGZpbGw9Im5vbmUiPgo8cGF0aCBkPSJNOTguNTEzMyA0OS4yMTMxQzk4LjUxMzMgNzYuMzkyOCA3Ni40NjA0IDk4LjQyNjIgNDkuMjU2NyA5OC40MjYyQzIyLjA1MyA5OC40MjYyIDAgNzYuMzkyOCAwIDQ5LjIxMzFDMCAyMi4wMzM1IDIyLjA1MyAwIDQ5LjI1NjcgMEM3Ni40NjA0IDAgOTguNTEzMyAyMi4wMzM1IDk4LjUxMzMgNDkuMjEzMVoiIGZpbGw9InVybCgjcGFpbnQwX2xpbmVhcl8xNjgwXzIzNjUpIi8+CjxwYXRoIGQ9Ik0yNy42OTUzIDcwLjU1ODdDMjcuOTY1OSA3MC4wNDM1IDI4LjE0NjIgNjkuNzA3NSAyOC4zMjY2IDY5LjM5MzlDMzEuMTY3NSA2NC40ODg1IDM0LjA1MzUgNTkuNTgzIDM2Ljg3MTkgNTQuNjc3NkMzNy4yNzc3IDUzLjk2MDggMzcuNzUxMiA1My43MzY4IDM4LjU2MjkgNTMuNzM2OEM0OC42NjM5IDUzLjc1OTIgNTguNzY0OCA1My43NTkyIDY4Ljg2NTggNTMuNzU5MkM2OS4xNTg5IDUzLjc1OTIgNjkuNDc0NiA1My43MzY4IDY5Ljc2NzcgNTMuNzgxNkM3MS4xNDMgNTMuOTM4NCA3MS44MTk0IDU1LjA1ODQgNzEuMTY1NiA1Ni4yOTAzQzY4Ljc5ODIgNjAuNzI1NCA2Ni4zNjMxIDY1LjEzODEgNjMuOTczMSA2OS41NzMxQzYzLjUyMjIgNzAuNDI0MyA2Mi43NTU2IDcwLjU4MTEgNjEuODc2MyA3MC41ODExQzU3LjI5OTMgNzAuNTgxMSA1Mi43MjIzIDcwLjU4MTEgNDguMTIyNyA3MC41ODExQzQxLjgwOTYgNzAuNTgxMSAzNS40OTY1IDcwLjU4MTEgMjkuMjA1OSA3MC41ODExQzI4Ljc1NSA3MC41NTg3IDI4LjMyNjYgNzAuNTU4NyAyNy42OTUzIDcwLjU1ODdaIiBmaWxsPSIjMjY4M0ZCIi8+CjxwYXRoIGQ9Ik0zMS4wNTY2IDI1LjI4OTVDMzEuMzA0NiAyNS42NDc5IDMxLjQ4NSAyNS45MTY3IDMxLjY0MjggMjYuMTg1NUMzNC40NjExIDMxLjAyMzcgMzcuMjU2OSAzNS44ODQ0IDQwLjA5NzggNDAuNzAwMkM0MC40NTg2IDQxLjMwNSA0MC40MzYgNDEuNzA4MiA0MC4wOTc4IDQyLjMxM0MzNC44NjcgNTEuMjcyNyAyOS42NTg3IDYwLjI1NDggMjQuNDI3OCA2OS4yMTQ1QzI0LjAyMiA2OS45MzEzIDIzLjU3MSA3MC41MzYxIDIyLjYyNDEgNzAuNTEzN0MyMS42OTk2IDcwLjQ5MTMgMjEuMjcxMyA2OS44NjQxIDIwLjg4OCA2OS4xNDczQzE4LjYzMzMgNjQuOTgxMSAxNi4zNzg2IDYwLjgxNDggMTQuMTAxNCA1Ni42NDg1QzEzLjY1MDQgNTUuODE5NyAxMy41ODI4IDU1LjEwMyAxNC4wNzg4IDU0LjI1MThDMTkuNjAyOCA0NC44MjE3IDI1LjEwNDIgMzUuMzY5MiAzMC42MjgyIDI1LjkxNjdDMzAuNzE4NCAyNS43Mzc1IDMwLjg1MzcgMjUuNTU4MyAzMS4wNTY2IDI1LjI4OTVaIiBmaWxsPSIjMDFBQjQ3Ii8+CjxwYXRoIGQ9Ik02OC42NDM5IDUwLjMzMTVDNjguMTI1MyA1MC4zNTM5IDY3Ljc2NDYgNTAuMzc2MyA2Ny40MDM4IDUwLjM3NjNDNjEuODc5OSA1MC4zNzYzIDU2LjM1NTkgNTAuMzUzOSA1MC44NTQ1IDUwLjM5ODdDNTAuMDQyOCA1MC4zOTg3IDQ5LjU2OTMgNTAuMTk3MSA0OS4xNjM1IDQ5LjQ1NzlDNDQuMTEzIDQwLjcyMjIgMzkuMDM5OSAzMi4wMzEyIDMzLjk4OTUgMjMuMzE3OUMzMi43NzE5IDIxLjI3OTYgMzMuNDI1OCAyMC4xNTk2IDM1LjgxNTggMjAuMTM3MkM0MC4zOTI4IDIwLjEzNzIgNDQuOTY5OCAyMC4xMzcyIDQ5LjU2OTMgMjAuMTM3MkM1MC41NjE0IDIwLjEzNzIgNTEuMjgyOSAyMC40MDYgNTEuODAxNCAyMS4zMDJDNTcuMzAyOSAzMC43OTkzIDYyLjg0OTQgNDAuMjc0MiA2OC4zNzM0IDQ5Ljc0OTFDNjguNDQxIDQ5Ljg4MzUgNjguNDg2MSA1MC4wMTc5IDY4LjY0MzkgNTAuMzMxNVoiIGZpbGw9IiNGRUI5MDEiIHN0eWxlPSImIzEwOyIvPgo8cGF0aCBkPSJNNjguODc5NCA3Ni41MDMyQzc3LjY5MjYgNzYuNTAzMiA4NC44MzcxIDY5LjM2NjEgODQuODM3MSA2MC41NjIxQzg0LjgzNzEgNTEuNzU4IDc3LjY5MjYgNDQuNjIwOSA2OC44Nzk0IDQ0LjYyMDlDNjAuMDY2MiA0NC42MjA5IDUyLjkyMTcgNTEuNzU4IDUyLjkyMTcgNjAuNTYyMUM1Mi45MjE3IDY5LjM2NjEgNjAuMDY2MiA3Ni41MDMyIDY4Ljg3OTQgNzYuNTAzMloiIGZpbGw9IiNGNzgzMkUiLz4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik02OC44Nzk0IDczLjIwODlDNzUuODc2NCA3My4yMDg5IDgxLjU0MjggNjcuNTQzNSA4MS41NDI4IDYwLjU2MjFDODEuNTQyOCA1My41ODA2IDc1Ljg3NjQgNDcuOTE1MyA2OC44Nzk0IDQ3LjkxNTNDNjEuODgyNCA0Ny45MTUzIDU2LjIxNiA1My41ODA2IDU2LjIxNiA2MC41NjIxQzU2LjIxNiA2Ny41NDM1IDYxLjg4MjQgNzMuMjA4OSA2OC44Nzk0IDczLjIwODlaTTg0LjgzNzEgNjAuNTYyMUM4NC44MzcxIDY5LjM2NjEgNzcuNjkyNiA3Ni41MDMyIDY4Ljg3OTQgNzYuNTAzMkM2MC4wNjYyIDc2LjUwMzIgNTIuOTIxNyA2OS4zNjYxIDUyLjkyMTcgNjAuNTYyMUM1Mi45MjE3IDUxLjc1OCA2MC4wNjYyIDQ0LjYyMDkgNjguODc5NCA0NC42MjA5Qzc3LjY5MjYgNDQuNjIwOSA4NC44MzcxIDUxLjc1OCA4NC44MzcxIDYwLjU2MjFaIiBmaWxsPSJ3aGl0ZSIvPgo8cGF0aCBkPSJNNjMuNTIzNSA2MS4wOTgyQzY0LjA5NzcgNjEuNjcxNiA2NC42NTI5IDYyLjIyNTkgNjUuMjI3MSA2Mi43OTkzQzY1LjcyNDggNjMuMjk2MyA2Ni4yMjI1IDYzLjc5MzMgNjYuNzIwMiA2NC4yOTAyQzY3LjA4MzkgNjQuNjUzNCA2Ny4xMDMxIDY1LjE2OTUgNjYuNzU4NSA2NS40OTQ0QzY2LjQxNCA2NS44Mzg1IDY1Ljg5NzEgNjUuODE5NCA2NS41MzM0IDY1LjQ1NjJDNjQuNjE0NiA2NC41Mzg3IDYzLjY5NTggNjMuNjIxMiA2Mi43NzY5IDYyLjcwMzhDNjIuNDUxNSA2Mi4zNzg4IDYyLjEyNjEgNjIuMDUzOSA2MS44MDA3IDYxLjcyODlDNjEuNDE3OCA2MS4zNDY3IDYxLjQxNzggNjAuODMwNiA2MS44MDA3IDYwLjQ0ODNDNjMuMDQ0OSA1OS4yMDU5IDY0LjI4OTIgNTcuOTQ0NCA2NS41NTI2IDU2LjcwMTlDNjUuODIwNSA1Ni40MzQzIDY2LjE0NiA1Ni4zNzcgNjYuNDkwNSA1Ni41MTA4QzY2Ljc5NjggNTYuNjQ0NiA2Ni45ODgyIDU2Ljk1MDQgNjYuOTg4MiA1Ny4yOTQ1QzY2Ljk4ODIgNTcuNTIzOCA2Ni44NzM0IDU3LjcxNSA2Ni43MDExIDU3Ljg4N0M2NS42ODY2IDU4LjkwMDEgNjQuNjUyOSA1OS45MzIyIDYzLjYzODMgNjAuOTQ1M0M2My42MTkyIDYxLjAyMTcgNjMuNTgwOSA2MS4wNiA2My41MjM1IDYxLjA5ODJaIiBmaWxsPSJ3aGl0ZSIvPgoKPHBhdGggZD0iTTc0LjIyMDQgNjAuOTI0OUM3My43NDE4IDYwLjQ0NyA3My4yNjMzIDU5Ljk2OTIgNzIuODAzOSA1OS41MTA0QzcyLjIxMDQgNTguOTE3OSA3MS41OTc5IDU4LjMyNTQgNzEuMDA0NSA1Ny43MTM3QzcwLjc3NDggNTcuNDg0NCA3MC42OTgyIDU3LjE3ODUgNzAuNzkzOSA1Ni44NzI3QzcwLjg4OTYgNTYuNTY2OSA3MS4xMDAyIDU2LjM3NTcgNzEuNDI1NiA1Ni4zMTg0QzcxLjczMTkgNTYuMjYxMSA3MS45OTk5IDU2LjM1NjYgNzIuMjEwNCA1Ni41NjY5QzcyLjg4MDQgNTcuMjM1OSA3My41MzEzIDU3LjkwNDkgNzQuMjAxMiA1OC41NTQ3Qzc0Ljc3NTUgNTkuMTI4MiA3NS4zNjg5IDU5LjcyMDcgNzUuOTQzMiA2MC4yOTQxQzc2LjMwNjkgNjAuNjU3MyA3Ni4zMDY5IDYxLjE5MjUgNzUuOTQzMiA2MS41NTU3Qzc0LjY5ODkgNjIuNzk4MSA3My40NzM4IDY0LjAyMTQgNzIuMjI5NiA2NS4yNjM4QzcxLjkyMzMgNjUuNTY5NiA3MS41NDA1IDY1LjY0NjEgNzEuMTk1OSA2NS40NzQxQzcwLjY5ODIgNjUuMjA2NSA3MC42MDI1IDY0LjU1NjYgNzEuMDA0NSA2NC4xNTUyQzcxLjM2ODIgNjMuNzcyOSA3MS43NTEgNjMuNDA5NyA3Mi4xMzM5IDYzLjAyNzRDNzIuNzg0NyA2Mi4zNzc2IDczLjQzNTYgNjEuNzI3NyA3NC4xMDU1IDYxLjA1ODdDNzQuMTI0NyA2MS4wMjA1IDc0LjE2MyA2MC45ODIyIDc0LjIyMDQgNjAuOTI0OVoiIGZpbGw9IndoaXRlIi8+Cgo8ZGVmcz4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDBfbGluZWFyXzE2ODBfMjM2NSIgeDE9Ijk4LjUxMzMiIHkxPSI0MS4yMTYiIHgyPSItNy4zODM5OSIgeTI9IjU3Ljg1NDEiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KPHN0b3Agc3RvcC1jb2xvcj0iIzk0QjJGRiIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiM0MkI0RkYiIHN0b3Atb3BhY2l0eT0iMC42NSIvPgo8L2xpbmVhckdyYWRpZW50Pgo8L2RlZnM+Cjwvc3ZnPg==);background-color:rgba(47,180,75,.1);background-repeat:no-repeat;border:2px dashed rgba(47,180,75,.5);background-position:center;padding:2rem;box-sizing:content-box}.elementor-element-edit-mode .igd-download-link a,.elementor-element-edit-mode .igd-view-link a{pointer-events:none}.elementor-element-edit-mode .igd-embed{pointer-events:none}.elementor-field-type-google_drive_upload .igd-shortcode-uploader{width:100%}.elementor-field-type-google_drive_upload .igd-shortcode-uploader+.upload-file-list{height:0!important;width:0!important;opacity:0!important;min-height:1px!important;padding:0!important;border:none!important;min-width:0!important;max-width:1px!important}#woocommerce-product-data ul.wc-tabs li.upload_options_options a:before{content:"\f13b";font-family:dashicons}.igd-woocommerce{display:inline-flex;float:left;margin-left:10px}.igd-woocommerce .igd-wc-button{display:inline-flex!important;margin-right:auto!important;align-items:center}.igd-woocommerce .igd-wc-button img{margin-left:5px}.upload-box-settings{margin:20px}.upload-box-settings .form-field .description{display:block;clear:both;margin:20px 0 10px 0}.upload-box-settings .form-field .upload_folder_name{width:100%}.igd-wc-upload-wrap{margin:20px 0;display:block}.igd-wc-upload-wrap .upload-button{display:flex!important;align-items:center;width:-moz-max-content;width:max-content;text-align:center;margin-bottom:15px!important;float:none!important}.igd-wc-upload-wrap .upload-button i{margin-left:5px}.igd-wc-upload-wrap .igd-shortcode-uploader{visibility:hidden;width:0;height:0;position:absolute;overflow:hidden;z-index:-1;max-width:500px;clear:both}.igd-wc-upload-wrap .igd-shortcode-uploader .igd-file-uploader-inner .dashicons-cloud-upload{display:none}.igd-wc-upload-wrap .igd-shortcode-uploader .igd-file-uploader{margin:0}.igd-wc-upload-wrap .igd-wc-upload-description{margin:0;clear:both}.igd-wc-upload-wrap .wc-file-list-wrap{margin-top:15px;clear:both}.igd-wc-upload-wrap .wc-file-list-wrap h4{font-size:1.2rem;margin-bottom:10px}.igd-wc-upload-wrap .wc-file-list-wrap .wc-file-list{margin:10px 0;padding:0;list-style:none}.igd-wc-upload-wrap .wc-file-list-wrap .wc-file-list li{display:flex;align-items:center;margin:3px;font-size:12px;font-weight:600;color:#333;transition:all .2s ease-in-out;-webkit-user-select:none;-moz-user-select:none;user-select:none}.igd-wc-upload-wrap .wc-file-list-wrap .wc-file-list li img{margin-left:5px;width:16px}.igd-wc-upload-wrap .wc-file-list-wrap .wc-file-list li .dashicons-no-alt{color:#ff9f10;cursor:pointer;margin-right:15px;margin-left:0}.igd-wc-upload-wrap:has(.upload-button.active) .igd-shortcode-uploader{display:flex;visibility:visible;width:auto;height:auto;position:relative;overflow:visible;z-index:1}.woocommerce-page.woocommerce-checkout form #order_review td.product-name:has(.igd-wc-upload-wrap){flex-wrap:wrap}.igd-wc-uploaded-files{display:flex;flex-direction:column;margin:0!important;padding:0!important}.igd-wc-uploaded-files-wrap{width:30%;padding:0}.igd-wc-uploaded-files li{margin-bottom:5px!important}.igd-wc-uploaded-files a{display:flex;text-decoration:none;color:#555;font-size:.875rem;overflow:hidden;transition:all .2s ease-in-out}.igd-wc-uploaded-files a img{margin-left:5px!important;width:20px!important}.igd-wc-uploaded-files a span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.igd-wc-uploaded-files a:hover{color:#333}.igd-hidden{display:none!important}#igd-direct-content{font-family:roboto,sans-serif}
     1.igd-btn{cursor:pointer;width:-moz-max-content;width:max-content;display:flex;align-items:center;color:#fff;padding:8px 12px;border-radius:5px;border:1px solid transparent;line-height:1;text-decoration:none;transition:all .2s ease-in-out;font-size:.875rem}.igd-btn i{margin-left:7px}.igd-btn i:nth-child(2){margin-left:0;margin-right:7px}.igd-btn .igd-spinner{margin:2px 0 0 10px}.igd-btn.btn-primary{background-color:#2fb44b}.igd-btn.btn-primary:hover{background-color:#248c3a}.igd-btn.btn-secondary{background-color:#f1f1f1;border-color:#f1f1f1}.igd-btn.btn-secondary:hover{background-color:#e6e6e6}.igd-btn.btn-success{background-color:#00d084;border-color:#00d084}.igd-btn.btn-success:hover{background-color:#00c674}.igd-btn.btn-warning{background-color:#f9d6b7;color:#a65300}.igd-btn.btn-warning:hover{background-color:#fc9}.igd-btn.btn-danger{background-color:#f8d7da;color:#d8000c}.igd-btn.btn-danger:hover{background-color:#f5c6cb}.igd-btn.btn-info{background-color:#b4d8e7;color:#1f4e6e}.igd-btn.btn-info:hover{background-color:#00a5e6}.igd-btn.btn-light{background-color:#f1f1f1;border-color:#f1f1f1}.igd-btn.btn-light:hover{background-color:#e6e6e6}.igd-btn.btn-dark{background-color:#0071e6;border-color:#0071e6}.igd-btn.btn-dark:hover{background-color:#0058c6}.igd-btn.btn-link{background-color:transparent;border-color:transparent;color:#0071e6}.igd-btn.btn-link:hover{color:#0058c6}.igd-btn.btn-outline-primary{background-color:transparent;border-color:var(--color-primary);color:var(--color-primary)}.igd-btn.btn-outline-primary:hover{background-color:var(--color-primary);color:#fff}.igd-btn.btn-outline-secondary{background-color:transparent;border-color:#f1f1f1;color:#f1f1f1}.igd-btn.btn-outline-secondary:hover{background-color:#f1f1f1;color:#fff}.igd-btn.btn-outline-success{background-color:transparent;border-color:#00d084;color:#00d084}.igd-btn.btn-outline-success:hover{background-color:#00d084;color:#fff}.igd-btn.btn-outline-warning{background-color:transparent;border-color:#ffc800;color:#ffc800}.igd-btn.btn-outline-warning:hover{background-color:#ffc800;color:#fff}.igd-btn.btn-outline-danger{background-color:transparent;border-color:#ff5b5b;color:#ff5b5b}.igd-btn.btn-outline-danger:hover{background-color:#ff5b5b;color:#fff}.igd-btn.btn-outline-info{background-color:transparent;border-color:#00b5ff;color:#00b5ff}.igd-btn.btn-outline-info:hover{background-color:#00b5ff;color:#fff}.igd-btn.btn-outline-light{background-color:transparent;border-color:#f1f1f1;color:#f1f1f1}.igd-btn.btn-outline-light:hover{background-color:#f1f1f1;color:#fff}.igd-btn.btn-outline-dark{background-color:transparent;border-color:#0071e6;color:#0071e6}.igd-btn.btn-outline-dark:hover{background-color:#0071e6;color:#fff}.igd-btn.btn-outline-link{background-color:transparent;border-color:#0071e6;color:#0071e6}.igd-btn.btn-outline-link:hover{background-color:#0071e6;color:#fff}.igd-btn.disabled{color:#999;cursor:not-allowed;background:#f1f1f1!important;border-color:#ccc}.igd-tooltip{z-index:9999999!important;opacity:1!important}.igd-tooltip:before{z-index:-1!important}.igd-notice{border-radius:5px;border:1px solid #f1f1f1;border-right-width:5px;background:#fff;box-shadow:0 1px 1px 0 rgba(0,0,0,.1);padding:1rem;margin:10px 0;display:flex}.igd-notice .igd-notice-content{margin:0;text-align:right;font-size:.9rem;line-height:1.5;color:#757575}.igd-notice.igd-notice-info{border-color:rgba(0,181,255,.5);background:rgba(0,181,255,.1);border-right-color:#00b5ff}.igd-notice.igd-notice-warning{border-color:rgba(255,200,0,.5);background:rgba(255,200,0,.1);border-right-color:#ffc800}@media (max-width:767px){.igd-notice .igd-notice-content{flex-wrap:wrap}}.igd-hidden{display:none!important}.file-item-checkbox{cursor:pointer;display:none;border-radius:50%;transition:all .3s ease;width:-moz-max-content;width:max-content;padding:5px}.file-item-checkbox .box{width:20px;height:20px;border:1px solid #e5e5e5;border-radius:50%;display:flex;align-items:center;justify-content:center;transition:all .3s ease;position:relative;box-shadow:rgba(0,0,0,.05) 0 6px 24px 0,rgba(0,0,0,.08) 0 0 0 1px}.file-item-checkbox .box:hover{border-color:var(--color-primary);box-shadow:0 0 0 2px var(--color-primary-lighter)}.file-item-checkbox:hover{background-color:rgba(0,0,0,.15)}.file-item-checkbox:hover .box{box-shadow:0 0 0 2px var(--color-primary-lighter)}.file-item-checkbox.checked{background-color:rgba(0,0,0,.15)}.file-item-checkbox.checked .box{border-color:var(--color-primary-lighter);background:var(--color-primary);color:#fff;box-shadow:0 0 0 1px var(--color-primary-lighter)}.file-item-checkbox.checked .box:after{content:"";width:5px;height:10px;border:solid #fff;border-width:0 0 2px 2px;transform:rotate(-45deg);box-sizing:border-box;margin-top:-2px}.igd-swal{z-index:99999!important}.igd-swal .swal2-confirm{background-color:#2fb44b!important}.igd-swal .swal2-close:focus{background:100% 0;color:inherit;box-shadow:none}.igd-swal .swal2-cancel,.igd-swal .swal2-deny{background-color:#f08080!important}.igd-swal.save-settings-toast .swal2-popup{display:flex!important;padding:10px}.igd-swal.save-settings-toast .swal2-popup .swal2-html-container{margin-right:5px}.igd-swal.igd-swal-toast .swal2-popup{display:flex!important;padding:10px}.igd-swal.igd-swal-toast .swal2-popup .swal2-html-container{margin-right:5px}.igd-swal .swal2-input{width:auto!important}.igd-swal .swal2-title{font-size:1.2rem;color:#333;font-weight:500}.igd-swal .swal2-html-container{font-size:1rem;color:#555}.igd-swal .swal2-textarea:focus{border-color:#ddd!important;box-shadow:none!important}.igd-swal.igd-review-remind-swal .swal2-deny{background-color:#999!important}.igd-loading-spinner{display:flex;justify-content:center;margin-top:3rem}.igd-loading-spinner svg{width:2.5rem;height:2.5rem}.igd-divi-loading-spinner{display:flex;justify-content:center}.igd-divi-loading-spinner svg{width:100px;height:100px}.igd-spinner{border:2px solid #f3f3f3;border-top:2px solid #3498db;border-radius:50%;width:20px;height:20px;animation:igd-spin 2s linear infinite;display:flex}.igd-spinner.spinner-large{border-width:4px;width:50px;height:50px;animation:igd-spin 1s linear infinite;margin:30px auto}@keyframes igd-spin{0%{transform:rotate(0)}100%{transform:rotate(-360deg)}}.igd-disabled{pointer-events:none!important}.google-drive_page_integrate-google-drive-shortcode-builder{background:#f7f8fa}.google-drive_page_integrate-google-drive-shortcode-builder #wpfooter{display:none}@media (max-width:767px){.google-drive_page_integrate-google-drive-shortcode-builder #wpcontent{padding-left:10px}}.igd-shortcode-builder{width:calc(100% + 20px);margin-right:-20px}@media (max-width:767px){.igd-shortcode-builder{width:100%;margin-right:0}}.igd-shortcode-builder *{box-sizing:border-box}.igd-shortcode-builder-header{display:flex;flex-wrap:wrap;align-items:center;background:#fff;padding:12px 15px;border-bottom:1px solid #e5e5e5;justify-content:space-between;z-index:99;position:sticky;top:32px}.igd-shortcode-builder-header .header-title{display:flex;align-items:center;font-size:1.2rem;font-weight:500;cursor:pointer}.igd-shortcode-builder-header .header-title img{margin-left:10px}.igd-shortcode-builder-header .header-title .shortcode-title{background:#fff;border-radius:7px;padding:5px 12px;border:1px solid rgba(92,99,126,.3);position:relative;margin-right:10px}.igd-shortcode-builder-header .header-actions{display:flex}.igd-shortcode-builder-header .header-actions .btn-back{background:#5c637e;color:#fff;border-color:rgba(47,180,75,.3)}.igd-shortcode-builder-header .header-actions .btn-back:hover{background:#464c61}.igd-shortcode-builder-header .header-actions button{margin-right:15px}@media (max-width:767px){.igd-shortcode-builder-header{margin-right:-10px;margin-left:-10px;padding:10px;top:-50px}.igd-shortcode-builder-header .header-title img{width:30px;margin-left:5px}.igd-shortcode-builder-header .header-title label{font-size:1rem}.igd-shortcode-builder-header .header-title .shortcode-title{height:35px;min-height:unset;margin-right:auto;border-radius:5px;color:#555;font-size:.875rem;font-weight:400}.igd-shortcode-builder-header .header-actions .add-new-btn{margin-right:auto}.igd-shortcode-builder-header .header-actions button{overflow:hidden;padding:7px;font-size:.8rem;margin-right:10px}.igd-shortcode-builder-header .header-actions button:first-child{margin-right:0}.igd-shortcode-builder-header .header-actions button i{margin-left:3px}.igd-shortcode-builder-header .header-actions button span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.igd-shortcode-builder-header:has(.btn-back) .header-title{width:100%}.igd-shortcode-builder-header:has(.btn-back) .header-title label{max-width:35%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-shortcode-builder-header:has(.btn-back) .header-actions{width:100%;justify-content:center;margin-top:15px}}.igd-shortcode-builder .no-item-placeholder{padding:3rem 5rem;border-radius:10px;border:1px solid rgba(47,180,75,.3);background:#fff;margin:50px auto 0;width:-moz-max-content;width:max-content;display:flex;align-items:center;justify-content:center;flex-direction:column}.igd-shortcode-builder .no-item-placeholder img{width:200px;margin-right:-40px}.igd-shortcode-builder .no-item-placeholder h3{color:#7a7a7a;margin:1.5rem;font-weight:500}.igd-shortcode-builder .no-item-placeholder button{margin-top:1rem}.igd-shortcode-builder .selection-actions-wrap{display:flex;align-items:center;margin-top:30px}.igd-shortcode-builder .selection-actions-wrap .selection-count{font-weight:500;background:rgba(47,180,75,.1);padding:10px 10px;border-radius:5px;height:35px;border:1px solid rgba(47,180,75,.3);display:flex;align-items:center;justify-content:center;font-size:.9rem}.igd-shortcode-builder .selection-actions-wrap .igd-btn{margin-right:10px;height:35px}.igd-shortcode-builder .igd-shortcode-list{width:100%;border-collapse:separate;border-spacing:0 20px}.igd-shortcode-builder .igd-shortcode-list-header{display:flex;align-items:center;justify-content:space-between;margin-top:15px;margin-bottom:15px}.igd-shortcode-builder .igd-shortcode-list-header .igd-shortcode-list-title{font-size:1.2rem;font-weight:600;margin:0;display:flex;align-items:center}.igd-shortcode-builder .igd-shortcode-list-header .igd-shortcode-list-title .shortcode-list-count{font-size:1rem;font-weight:400;color:#777;margin-right:7px}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings i{width:25px;height:25px;font-size:25px;color:#5c637e;cursor:pointer}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .list-settings-tooltip{display:flex;flex-wrap:wrap;justify-content:space-between;max-width:580px}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .list-settings-tooltip .settings-columns{width:100%;margin-bottom:10px}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .settings-wrap{margin-bottom:5px}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .settings-wrap h4{margin-top:0;margin-bottom:7px}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .settings-wrap .components-select-control{min-width:100px}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .settings-wrap .components-select-control__input{height:35px}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .settings-wrap .components-input-control__backdrop{border-color:#eee}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .column-options{display:flex}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .column-options .igd-column-setting{margin-bottom:10px;margin-left:10px;border:1px solid #eee;padding:5px 7px;border-radius:5px}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .column-options .igd-column-setting .components-base-control__field{display:flex;align-items:center}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .column-options .components-checkbox-control__input-container{margin-left:5px}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .components-checkbox-control__label{text-transform:capitalize;font-size:.75rem;font-weight:500}.igd-shortcode-builder .igd-shortcode-list-wrap{padding:20px}.igd-shortcode-builder .igd-shortcode-list thead{background:#fff}.igd-shortcode-builder .igd-shortcode-list thead th{padding:24px 15px;font-size:.875rem;color:#555;border-right-width:0;border-left-width:0;margin-bottom:1rem}.igd-shortcode-builder .igd-shortcode-list thead th:first-child{border-radius:0 10px 10px 0}.igd-shortcode-builder .igd-shortcode-list thead th:last-child{border-radius:10px 0 0 10px;text-align:left;padding-left:70px}.igd-shortcode-builder .igd-shortcode-list tbody td,.igd-shortcode-builder .igd-shortcode-list tbody th{padding:15px 20px;font-size:.875rem;color:#555;text-align:right;white-space:nowrap}.igd-shortcode-builder .igd-shortcode-list tbody td:first-child,.igd-shortcode-builder .igd-shortcode-list tbody th:first-child{border-radius:0 10px 10px 0}.igd-shortcode-builder .igd-shortcode-list tbody td:last-child,.igd-shortcode-builder .igd-shortcode-list tbody th:last-child{border-radius:10px 0 0 10px}.igd-shortcode-builder .igd-shortcode-list-item{transition:all .3s ease;background:#fff}.igd-shortcode-builder .igd-shortcode-list-item:hover{background:#eaf2fa}.igd-shortcode-builder .igd-shortcode-list .col-selection{width:60px;text-align:center;padding-left:0}.igd-shortcode-builder .igd-shortcode-list .col-id{width:30px}.igd-shortcode-builder .igd-shortcode-list .col-title{text-align:right}.igd-shortcode-builder .igd-shortcode-list .col-shortcode-type{text-align:right}.igd-shortcode-builder .igd-shortcode-list .col-shortcode-type>div{display:flex;align-items:center;justify-content:flex-start}.igd-shortcode-builder .igd-shortcode-list .col-shortcode-type>div img{margin-left:10px;width:24px}.igd-shortcode-builder .igd-shortcode-list .col-shortcode-status{width:100px;text-align:center}.igd-shortcode-builder .igd-shortcode-list .col-locations{text-align:center}.igd-shortcode-builder .igd-shortcode-list .col-locations .location-count{text-align:center;font-weight:700;cursor:pointer;border:1px solid #5c637e;border-radius:5px;padding:5px 10px;color:#5c637e}.igd-shortcode-builder .igd-shortcode-list .col-locations .location-count:hover{background:#5c637e;color:#fff}.igd-shortcode-builder .igd-shortcode-list .col-locations h3{margin-top:0;margin-bottom:10px;color:#555}.igd-shortcode-builder .igd-shortcode-list .col-locations .locations-tooltip{padding:15px;max-width:250px}.igd-shortcode-builder .igd-shortcode-list .col-locations .location-item{margin-bottom:7px;overflow:hidden}.igd-shortcode-builder .igd-shortcode-list .col-locations .location-item a{text-decoration:none;display:flex;align-items:center;overflow:hidden}.igd-shortcode-builder .igd-shortcode-list .col-locations .location-item a .location-index{margin-left:5px}.igd-shortcode-builder .igd-shortcode-list .col-locations .location-item a .location-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.igd-shortcode-builder .igd-shortcode-list .col-locations .location-item a i{margin-right:7px}.igd-shortcode-builder .igd-shortcode-list .col-created{text-align:center}.igd-shortcode-builder .igd-shortcode-list .col-code>div{display:flex;align-items:center;justify-content:flex-start;position:relative;width:-moz-max-content;width:max-content;margin:auto}.igd-shortcode-builder .igd-shortcode-list .col-code>div code{padding:7px 35px 7px 10px;background:#fff;color:#5c637e;border-radius:7px;border:1px solid rgba(92,99,126,.2);font-size:12px}.igd-shortcode-builder .igd-shortcode-list .col-code>div i{right:3px;color:#5c637e;padding:7px;border-radius:30px;height:auto;width:auto;cursor:pointer;position:absolute;font-size:24px}.igd-shortcode-builder .igd-shortcode-list .col-actions{padding-left:10px;text-align:left}.igd-shortcode-builder .igd-shortcode-list .col-actions button{padding:7px 10px;display:inline-flex;background:#5c637e;height:35px}.igd-shortcode-builder .igd-shortcode-list .col-actions button:hover{background:#464c61}.igd-shortcode-builder .igd-shortcode-list .col-actions .btn-tools{margin-right:15px;padding:0;background:100% 0!important;color:#5c637e}.igd-shortcode-builder .igd-shortcode-list .col-actions .btn-tools img{width:26px}.igd-shortcode-builder .igd-shortcode-list .col-actions .options-tooltip{padding:0;border-radius:7px;box-shadow:0 0 10px rgba(0,0,0,.1)}.igd-shortcode-builder .igd-shortcode-list .col-actions .action-tools{display:flex;flex-direction:column}.igd-shortcode-builder .igd-shortcode-list .col-actions .action-tools button{padding:10px 15px;display:flex;background:100% 0;color:#555;justify-content:flex-start;border-radius:0;border-bottom:1px solid #e5e5e5;font-size:.875rem;width:100%}.igd-shortcode-builder .igd-shortcode-list .col-actions .action-tools button:hover{background:rgba(92,99,126,.1)}.igd-shortcode-builder .igd-shortcode-list .col-actions .action-tools button:last-child{border-bottom:none;margin-bottom:0}.igd-shortcode-builder .igd-shortcode-list-footer{display:flex;align-items:center;justify-content:center}@media (max-width:767px){.igd-shortcode-builder .igd-shortcode-list-wrap{overflow-x:auto;margin-left:10px}}.igd-shortcode-builder .igd-shortcode-builder-form{overflow-y:unset}.igd-shortcode-builder-form{display:flex;flex-wrap:wrap;align-items:flex-start}.igd-shortcode-builder-form .shortcode-builder-sidebar{width:20%;background:#fff;max-width:200px;padding:20px;position:sticky;top:100px;min-height:100vh;border-left:1px solid #eaeaea}.igd-shortcode-builder-form .shortcode-builder-sidebar.tab-advanced,.igd-shortcode-builder-form .shortcode-builder-sidebar.tab-notifications{top:0}.igd-shortcode-builder-form .shortcode-builder-sidebar.tab-permissions{top:-30px}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs{display:flex;flex-direction:column;align-items:center}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab{display:flex;align-items:center;flex-direction:column;justify-content:center;padding:1rem;background:#e9f9ec;border:1px dashed rgba(47,180,75,.3);width:100%;color:#333;border-radius:10px}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap{max-width:100%;position:relative;cursor:pointer;width:120px;display:flex;align-items:center;justify-content:center}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap:not(:last-child){margin-bottom:40px}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap:not(:last-child):after{content:"";height:40px;width:12px;background:#f7f8fa;position:absolute;top:100%}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap.active .shortcode-tab{background:#47cf64;color:#fff}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap.active .shortcode-tab .tab-icon{background-color:#fff}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap.active:after{background:#47cf64}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap:not(.active):hover .shortcode-tab{background:rgba(47,180,75,.3)}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-icon{width:30px;height:30px;margin-bottom:10px;background-color:#2fb44b;mask-size:cover;-webkit-mask-size:cover}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-icon.icon-type{-webkit-mask:url(../images/shortcode-builder/tabs/type.svg) no-repeat center/cover;mask:url(../images/shortcode-builder/tabs/type.svg) no-repeat center/cover}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-icon.icon-sources{-webkit-mask:url(../images/shortcode-builder/tabs/sources.svg) no-repeat center;mask:url(../images/shortcode-builder/tabs/sources.svg) no-repeat center}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-icon.icon-filters{-webkit-mask:url(../images/shortcode-builder/tabs/filters.svg) no-repeat center;mask:url(../images/shortcode-builder/tabs/filters.svg) no-repeat center}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-icon.icon-advanced{-webkit-mask:url(../images/shortcode-builder/tabs/advanced.svg) no-repeat center;mask:url(../images/shortcode-builder/tabs/advanced.svg) no-repeat center}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-icon.icon-notifications{-webkit-mask:url(../images/shortcode-builder/tabs/notifications.svg) no-repeat center;mask:url(../images/shortcode-builder/tabs/notifications.svg) no-repeat center}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-icon.icon-permissions{-webkit-mask:url(../images/shortcode-builder/tabs/permissions.svg) no-repeat center;mask:url(../images/shortcode-builder/tabs/permissions.svg) no-repeat center}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-name{font-size:.85rem;text-transform:uppercase;font-weight:500;white-space:nowrap}@media (max-width:767px){.igd-shortcode-builder-form .shortcode-builder-sidebar{width:100%;max-width:100%;background:100% 0;height:auto;min-height:auto;margin:20px 0;padding:0;position:static;border:0}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs{flex-direction:row}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab{background:100% 0;padding:0;border:0;color:#777}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-name{font-size:.7rem;font-weight:400;text-transform:capitalize}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-icon{width:26px;height:26px;margin-bottom:7px;background:#777}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap{width:auto}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap:not(:last-child){margin-bottom:0}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap:not(:last-child):after{display:none}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap.active .shortcode-tab{background:100% 0;color:#2fb44b}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap.active .shortcode-tab .tab-icon{background-color:#2fb44b}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap.active .shortcode-tab .tab-name{font-weight:500}}.igd-shortcode-builder-form .shortcode-builder-content{flex:1}.igd-shortcode-builder-form:has(.shortcode-builder-sidebar) .shortcode-builder-content{width:80%;max-width:calc(100% - 200px);min-height:100vh;display:flex;flex-direction:column}.igd-shortcode-builder-form .form-footer{display:flex;align-items:center;justify-content:space-between;margin-top:auto;position:sticky;bottom:0;padding:10px 15px;border-top:1px solid #eaeaea;background:#fff;z-index:9}.igd-shortcode-builder-form .form-footer button:first-child,.igd-shortcode-builder-form .form-footer button:last-child{background:#fff;color:#2fb44b;border-color:rgba(47,180,75,.3)}.igd-shortcode-builder-form .form-footer button:first-child:hover,.igd-shortcode-builder-form .form-footer button:last-child:hover{background:#d5f0db}.igd-shortcode-builder-form .form-footer button.disabled{opacity:.5;pointer-events:none;background:#ddd;border-color:#ddd}.igd-shortcode-builder-form .form-footer button.disabled:hover{background:#ddd;border-color:#ddd}@media (max-width:767px){.igd-shortcode-builder-form .form-footer{margin:0 -10px}.igd-shortcode-builder-form .form-footer button{font-weight:400}.igd-shortcode-builder-form .form-footer button span{font-size:14px}}.igd-shortcode-builder-form.editor-mode .shortcode-builder-sidebar{top:0}.igd-shortcode-builder-form.editor-mode .shortcode-builder-content{padding:0;display:flex;flex-direction:column;height:calc(100vh - 50px)}.shortcode-module{padding:15px}.shortcode-module-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px;width:100%;border-bottom:1px solid #e5e5e5;padding-bottom:10px}.shortcode-module-header .module-title{flex:1;text-align:right}.shortcode-module-header .module-title h2{font-size:1.2rem;margin-bottom:5px;font-weight:600;text-align:right;margin-top:0}.shortcode-module-header .module-title span{font-size:.85rem}.shortcode-module-header .module-type{cursor:pointer;display:flex;align-items:center;margin-right:15px;border:1px solid rgba(47,180,75,.3);padding:10px 12px;border-radius:5px;background:#fff;transition:all .2s ease-in-out}.shortcode-module-header .module-type-title{margin-left:10px;font-weight:400;font-size:1rem}.shortcode-module-header .module-type img{width:20px;height:20px;margin-left:7px}.shortcode-module-header .module-type-name{font-size:1rem;font-weight:500}.shortcode-module-header .module-type:hover{background:rgba(213,240,219,.3)}.shortcode-module-header .shortcode-wrap{display:flex;align-items:center;justify-content:flex-start;position:relative;width:-moz-max-content;width:max-content}.shortcode-module-header .shortcode-wrap code{padding:10px 35px 10px 10px;background:#fff;color:#5c637e;border-radius:7px;border:1px solid rgba(47,180,75,.2);font-size:12px;word-break:break-all;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.shortcode-module-header .shortcode-wrap i{right:3px;color:#5c637e;padding:7px;border-radius:30px;height:auto;width:auto;cursor:pointer;position:absolute;font-size:24px}.shortcode-module .shortcode-types{display:flex;flex-wrap:wrap;justify-content:space-between;gap:20px}.shortcode-module .shortcode-types .shortcode-type{width:calc(25% - 20px);padding:1.5rem 1rem;border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;transition:background .3s ease;position:relative;text-align:center;border:1px dashed rgba(47,180,75,.5);background:#fff}.shortcode-module .shortcode-types .shortcode-type .icon-wrap{width:60px;height:60px;background-color:#2fb44b;border-radius:50%;display:flex;align-items:center;justify-content:center}.shortcode-module .shortcode-types .shortcode-type .icon-wrap.icon-browser{background:#eff3fe}.shortcode-module .shortcode-types .shortcode-type .icon-wrap.icon-uploader{background:#eaf7ed}.shortcode-module .shortcode-types .shortcode-type .icon-wrap.icon-gallery{background:#ece8ff}.shortcode-module .shortcode-types .shortcode-type .icon-wrap.icon-slider{background:#e9f0ff}.shortcode-module .shortcode-types .shortcode-type .icon-wrap.icon-media{background:#fff6f5}.shortcode-module .shortcode-types .shortcode-type .icon-wrap.icon-search{background:#e4ffde}.shortcode-module .shortcode-types .shortcode-type .icon-wrap.icon-embed{background:#ecf7ff}.shortcode-module .shortcode-types .shortcode-type .icon-wrap.icon-download{background:#eaf7ed}.shortcode-module .shortcode-types .shortcode-type .icon-wrap.icon-view{background:#f5f8ff}.shortcode-module .shortcode-types .shortcode-type .icon-wrap img{width:32px;height:32px}.shortcode-module .shortcode-types .shortcode-type>span{font-size:1rem;font-weight:600;margin:20px 0 5px;color:#0a0a0a}.shortcode-module .shortcode-types .shortcode-type .description{font-size:.875rem;font-weight:400;color:#757575;margin-top:5px}.shortcode-module .shortcode-types .shortcode-type.active{background:#47cf64;color:#fff}.shortcode-module .shortcode-types .shortcode-type.active>span{color:#fff}.shortcode-module .shortcode-types .shortcode-type.active .description{color:#fff}.shortcode-module .shortcode-types .shortcode-type:not(.active):hover{background:rgba(47,180,75,.2)}.shortcode-module .shortcode-types .shortcode-type .pro-badge{position:absolute;top:10px;left:10px;background:#fdb837;color:#fff;padding:7px;border-radius:7px;font-size:12px;font-weight:400;display:flex;align-items:center;justify-content:center;line-height:1;box-shadow:0 0 5px rgba(0,0,0,.1);transition:all .3s ease}.shortcode-module .shortcode-types .shortcode-type .pro-badge i{height:auto;width:auto;font-size:18px;margin-left:3px}.shortcode-module .shortcode-types .shortcode-type.pro-feature{border-color:#fdb837}.shortcode-module .shortcode-types .shortcode-type.pro-feature:hover{background:rgba(253,184,55,.1)}.shortcode-module .shortcode-types .shortcode-type:last-child{margin-left:auto}.shortcode-module .settings-field{display:flex;flex-wrap:wrap;margin-bottom:15px;align-items:center;border-radius:10px;padding:12px 18px;background:#fff}.shortcode-module .settings-field-title{font-size:1.3rem;margin-bottom:30px;font-weight:600;text-align:right}.shortcode-module .settings-field-title.field-visibility{margin-top:50px}.shortcode-module .settings-field-label{width:200px;font-weight:600;font-size:1rem;display:flex;justify-content:space-between;text-align:right}.shortcode-module .settings-field-label i{margin-left:7px;color:#777}.shortcode-module .settings-field-label:after{content:":";margin-right:auto}.shortcode-module .settings-field-content{display:flex;flex-direction:column;align-items:flex-start;margin-right:20px;flex:1}.shortcode-module .settings-field-content .components-button i{margin-left:5px}.shortcode-module .settings-field-content .description{font-size:.875rem;margin-top:10px;text-align:right;color:#757575;display:flex;align-items:center;flex-wrap:wrap}.shortcode-module .settings-field-content .description .igd-btn,.shortcode-module .settings-field-content .description a{margin-right:10px;text-decoration:none}.shortcode-module .settings-field-content .description+.description{margin-top:0}.shortcode-module .settings-field.filter-field .filter-field-input{display:flex;flex-direction:column}.shortcode-module .settings-field.filter-field .filter-field-all{display:flex;align-items:center;justify-content:flex-start;margin-top:15px;flex-wrap:wrap}.shortcode-module .settings-field.filter-field .filter-field-all>div{display:flex;align-items:center}.shortcode-module .settings-field.filter-field .filter-field-all>div:first-child{margin-left:20px}.shortcode-module .settings-field.filter-field .filter-field-all-label{margin-left:10px;font-weight:500;font-size:.875rem;white-space:nowrap}.shortcode-module .settings-field.filter-field .filter-field-all .description{width:100%;text-align:right}.shortcode-module .settings-field.filter-field .filter-field-all ul{margin-top:0;padding-right:10px;margin-right:10px;list-style:disc}.shortcode-module .settings-field.filter-field .name-filter-option{display:flex;flex-wrap:wrap;align-items:center;margin-top:10px}.shortcode-module .settings-field.filter-field .name-filter-option h4{margin:0 0 0 15px;font-size:.875rem;font-weight:500}.shortcode-module .settings-field.filter-field .name-filter-option .name-filter-option-item{margin-left:15px;border:1px solid #ddd;border-radius:5px;padding:5px;display:flex;align-items:center;justify-content:center;font-size:.875rem;font-weight:500;color:#777;cursor:pointer;transition:all .3s ease}.shortcode-module .settings-field.filter-field .name-filter-option .name-filter-option-item:hover{background:#f5f8ff;color:#0a0a0a}.shortcode-module .settings-field.filter-field .name-filter-option .components-checkbox-control__input{height:20px;width:20px}.shortcode-module .settings-field.filter-field .name-filter-option .components-checkbox-control__label{margin-right:7px;text-transform:capitalize}@media (max-width:767px){.shortcode-module .settings-field.filter-field .name-filter-option div:not(#jairalok){width:auto;margin-bottom:0}}.shortcode-module .settings-field.sort-field .sort-field-section{display:flex;flex-direction:column}.shortcode-module .settings-field.sort-field .sort-field-section:first-child{margin-left:35px;padding-left:15px;border-left:1px solid #ddd}.shortcode-module .settings-field.sort-field .sort-field-section:last-child{border-left:0}.shortcode-module .settings-field.sort-field .sort-field-section-wrap{display:flex;margin:15px 30px}.shortcode-module .settings-field.sort-field .sort-field-section-label{margin-bottom:15px;font-weight:500;text-align:right;font-size:.9rem;margin-right:-20px}.shortcode-module .settings-field.sort-field .sort-field-section .sort-item{display:flex;align-items:center;margin-bottom:10px;cursor:pointer;position:relative;font-size:.875rem}.shortcode-module .settings-field.sort-field .sort-field-section .sort-item i{display:none;position:absolute;right:-25px}.shortcode-module .settings-field.sort-field .sort-field-section .sort-item.active{color:#2fb44b}.shortcode-module .settings-field.sort-field .sort-field-section .sort-item.active i{display:block}.shortcode-module .settings-field.filter-users-field .filter-users-group{display:flex;flex-direction:column}.shortcode-module .settings-field .filter-users{margin-top:15px;display:flex;flex-direction:column;border:1px dashed #ddd;padding:15px;border-radius:7px;width:100%}.shortcode-module .settings-field .filter-users-title{font-weight:500;font-size:1rem;margin-bottom:10px;text-align:right;margin-top:0}.shortcode-module .settings-field .filter-users-section{display:flex;align-items:center}.shortcode-module .settings-field .filter-users-section:first-child{margin-left:20px}.shortcode-module .settings-field .filter-users-section-label{margin-left:10px;font-weight:500;font-size:1rem}.shortcode-module .settings-field .filter-users-section-wrap{display:flex;flex-wrap:wrap}.shortcode-module .settings-field .filter-users-section-wrap .description{width:100%;margin-bottom:0}.shortcode-module .settings-field.field-parent-folder .shortcode-module .igd-select-sources-wrap{margin-top:10px}.shortcode-module .settings-field.field-upload-confirmation-message .description{margin-top:-5px;margin-bottom:15px}.shortcode-module .settings-field.field-upload-confirmation-message .wp-editor-wrap{width:100%}.shortcode-module .settings-field.field-upload-confirmation-message .wp-editor-wrap textarea{border:none}.shortcode-module .settings-field.field-upload-confirmation-message .wp-switch-editor{height:29px}.shortcode-module .settings-field.field-upload-confirmation-message textarea{width:100%;border:1px solid #eee;padding:15px;min-width:200px}.shortcode-module .settings-field.field-upload-confirmation-message textarea:focus{outline:0;box-shadow:none}.shortcode-module .settings-field.field-allow-search input[type=text]{width:100%}.shortcode-module .settings-field.field-private-folder input[type=text]{width:100%}.shortcode-module .settings-field.field-private-folder .settings-field-label{margin-top:15px}.shortcode-module .settings-field.field-gallery-image-size .gallery-custom-size-wrap{display:flex}.shortcode-module .settings-field.field-gallery-image-size .gallery-custom-size-wrap .components-base-control:first-child{display:flex;align-items:center}.shortcode-module .settings-field.field-gallery-image-size .gallery-custom-size-wrap .components-base-control:first-child:after{content:"X";margin-right:10px;margin-left:10px;font-weight:500}.shortcode-module .settings-field.field-gallery-image-size .gallery-custom-size-wrap .components-text-control__input{width:110px}.shortcode-module .settings-field.field-access-denied-message{flex-direction:column;align-items:flex-start}.shortcode-module .settings-field.field-access-denied-message .settings-field-label{width:100%}.shortcode-module .settings-field.field-access-denied-message .settings-field-label:after{content:""}.shortcode-module .settings-field.field-access-denied-message .description{margin-top:-5px;margin-bottom:15px}.shortcode-module .settings-field.field-access-denied-message .wp-editor-wrap{width:100%}.shortcode-module .settings-field.field-access-denied-message .wp-editor-wrap textarea{border:none}.shortcode-module .settings-field.field-access-denied-message .wp-switch-editor{height:29px}.shortcode-module .settings-field.field-access-denied-message textarea{width:100%;border:1px solid #eee;padding:15px;min-width:200px}.shortcode-module .settings-field.field-access-denied-message textarea:focus{outline:0;box-shadow:none}.shortcode-module .settings-field .components-select-control select,.shortcode-module .settings-field input[type=email],.shortcode-module .settings-field input[type=number],.shortcode-module .settings-field input[type=text],.shortcode-module .settings-field select{height:40px;border-radius:4px;border:1px solid #ddd;font-size:.8rem;width:350px;max-width:100%;padding:10px 15px;line-height:1}.shortcode-module .settings-field .components-select-control select:disabled,.shortcode-module .settings-field input[type=email]:disabled,.shortcode-module .settings-field input[type=number]:disabled,.shortcode-module .settings-field input[type=text]:disabled,.shortcode-module .settings-field select:disabled{background:#f5f5f5;color:#aaa;cursor:not-allowed}.shortcode-module .settings-field .igd-select{width:400px}.shortcode-module .settings-field .igd-select.filter-users-select{max-width:100%}.shortcode-module .settings-field .igd-select__control.igd-select__control--is-focused{border-color:#2fb44b;box-shadow:none}.shortcode-module .settings-field .igd-select__input{height:auto}.shortcode-module .settings-field .igd-select__input:focus{border:none;box-shadow:none}.shortcode-module .settings-field .igd-select__menu{border-radius:7px;border:1px solid rgba(47,180,75,.3);box-shadow:0 0 5px rgba(0,0,0,.1);z-index:99}.shortcode-module .settings-field .igd-select__menu .igd-select__option{padding:10px 15px;font-size:.8rem;cursor:pointer}.shortcode-module .settings-field .igd-select__menu .igd-select__option:hover{background:rgba(47,180,75,.1)}.shortcode-module .settings-field .igd-select__menu .igd-select__option--is-focused{background:rgba(47,180,75,.1)}.shortcode-module .settings-field .igd-select__multi-value{background:#2fb44b;color:#fff}.shortcode-module .settings-field .igd-select__multi-value .igd-select__multi-value__label{color:#fff}.shortcode-module .settings-field .components-button-group{background:rgba(47,180,75,.1);padding:10px;width:-moz-max-content;width:max-content;border-radius:10px}.shortcode-module .settings-field .components-button-group button{color:#47cf64;box-shadow:inset 0 0 0 1px rgba(47,180,75,.25);margin:0 3px;border-radius:5px;background:#fff}.shortcode-module .settings-field .components-button-group button:first-child{border-top-right-radius:5px;border-bottom-right-radius:5px}.shortcode-module .settings-field .components-button-group button:last-child{border-top-left-radius:5px;border-bottom-left-radius:5px}.shortcode-module .settings-field .components-button-group button.is-primary{z-index:auto;background:#47cf64;color:#fff}.shortcode-module .settings-field .components-button-group button.is-secondary:hover{color:#2fb44b;box-shadow:inset 0 0 0 1px #47cf64}.shortcode-module .settings-field .components-button-group button i{margin-left:5px}.shortcode-module .settings-field .components-range-control{width:350px;margin-top:15px}.shortcode-module .settings-field .components-range-control .components-range-control__wrapper{color:#2fb44b;margin-bottom:0}.shortcode-module .settings-field .components-range-control .components-range-control__wrapper .components-range-control__mark-label{top:20px}.shortcode-module .settings-field .components-range-control .components-range-control__wrapper .components-range-control__thumb-wrapper span{background:#2fb44b}.shortcode-module .settings-field .components-range-control .components-input-control__input{width:auto;height:auto;padding:0 10px 0 0}.shortcode-module .settings-field .components-range-control .components-input-control__backdrop{border-color:#ddd}.shortcode-module .settings-field .components-select-control .components-input-control__backdrop{border-color:#ddd}.shortcode-module .settings-field-sub{display:flex;flex-direction:column;width:100%}.shortcode-module .settings-field-sub .settings-field{flex-direction:column;align-items:flex-start;margin-top:15px;margin-bottom:0;display:flex;border:1px dashed #ddd;padding:10px 15px;border-radius:7px;width:100%}.shortcode-module .settings-field-sub .settings-field-label{margin-top:0;margin-bottom:12px;width:auto}.shortcode-module .settings-field-sub .settings-field-label:after{content:"";display:none}.shortcode-module .settings-field-sub .settings-field-content{width:100%;margin-right:0}.shortcode-module .settings-field-sub .settings-field-content+h4,.shortcode-module .settings-field-sub .settings-field-content>h4{margin-top:15px}@media (max-width:767px){.shortcode-module .shortcode-module-header{flex-flow:column-reverse;align-items:center;text-align:center}.shortcode-module .shortcode-module-header .module-title h2{text-align:center;margin-top:10px}.shortcode-module .shortcode-module-header .module-type{display:none}.shortcode-module .shortcode-module-header .shortcode-wrap{display:none}.shortcode-module .shortcode-types{gap:10px}.shortcode-module .shortcode-types .shortcode-type{width:calc(50% - 5px);text-align:center;padding:1rem}.shortcode-module .settings-field{flex-flow:column;align-items:flex-start;padding:10px}.shortcode-module .settings-field-label{margin-bottom:.5rem;font-size:.875rem;justify-content:flex-start}.shortcode-module .settings-field-label:after{display:none}.shortcode-module .settings-field-content{margin-right:0}.shortcode-module .settings-field input,.shortcode-module .settings-field select{width:100%;height:32px}.shortcode-module .settings-field .igd-select{width:100%}.shortcode-module .settings-field.filter-field .filter-field-all{flex-direction:column;align-items:flex-start;width:100%}.shortcode-module .settings-field.filter-field .filter-field-all div{margin-left:0;display:flex;width:100%}.shortcode-module .settings-field.filter-field .filter-field-all div:first-child{margin-bottom:10px}.shortcode-module .settings-field.filter-field .filter-field-all-label{min-width:70px}.shortcode-module .settings-field .filter-users-section-wrap{flex-direction:column;align-items:flex-start;width:100%}.shortcode-module .settings-field .filter-users-section-wrap .filter-users-section{width:100%}.shortcode-module .settings-field .filter-users-section-wrap .filter-users-section:first-child{margin-bottom:10px}}.igd-module-builder-modal .components-form-toggle,.igd-shortcode-builder .components-form-toggle{width:-moz-max-content;width:max-content;background:#fff;padding:3px;border-radius:15px}.igd-module-builder-modal .components-form-toggle__track,.igd-shortcode-builder .components-form-toggle__track{width:44px;height:22px;border-radius:22px;border-color:#5c637e}.igd-module-builder-modal .components-form-toggle__thumb,.igd-shortcode-builder .components-form-toggle__thumb{background:#5c637e;border:none;width:15px;height:15px;border-radius:25px;top:6px;right:6px}.igd-module-builder-modal .components-form-toggle.is-checked .components-form-toggle__thumb,.igd-shortcode-builder .components-form-toggle.is-checked .components-form-toggle__thumb{background:#fff;transform:translateX(-22px)}.igd-module-builder-modal .components-form-toggle.is-checked .components-form-toggle__track,.igd-shortcode-builder .components-form-toggle.is-checked .components-form-toggle__track{background:#47cf64}.igd-module-builder-modal .components-base-control__field,.igd-shortcode-builder .components-base-control__field{margin-bottom:0;display:flex;align-items:center}.igd-module-builder-modal .components-base-control__field .components-checkbox-control__input,.igd-shortcode-builder .components-base-control__field .components-checkbox-control__input{border-color:rgba(92,99,126,.5);margin:0}.igd-module-builder-modal .components-base-control__field .components-checkbox-control__input-container,.igd-shortcode-builder .components-base-control__field .components-checkbox-control__input-container{margin:0}.igd-module-builder-modal .components-base-control__field .components-checkbox-control__input:checked,.igd-shortcode-builder .components-base-control__field .components-checkbox-control__input:checked{background:#47cf64;border-color:#47cf64}@media (max-width:767px){.igd-module-builder-modal,.igd-shortcode-builder{margin-top:0}.igd-module-builder-modal .shortcode-tabs,.igd-shortcode-builder .shortcode-tabs{flex-wrap:wrap;justify-content:space-between}.igd-module-builder-modal .shortcode-tabs .shortcode-tab,.igd-shortcode-builder .shortcode-tabs .shortcode-tab{margin-left:0!important}.igd-module-builder-modal .shortcode-tabs .shortcode-tab .tab-index,.igd-shortcode-builder .shortcode-tabs .shortcode-tab .tab-index{height:2rem;width:2rem}.igd-module-builder-modal .shortcode-tabs .shortcode-tab:not(:last-child):after,.igd-shortcode-builder .shortcode-tabs .shortcode-tab:not(:last-child):after{width:1rem;height:.3rem}.igd-module-builder-modal .shortcode-builder-content,.igd-shortcode-builder .shortcode-builder-content{padding:0;max-width:100%}}.igd-select-sources-wrap{display:flex;flex-wrap:wrap;align-items:flex-start}.igd-select-sources-wrap .source-title-wrap{width:100%;margin-bottom:20px;text-align:right}.igd-select-sources-wrap .source-title-wrap h3{margin-bottom:5px}.igd-select-sources-wrap .source-title-wrap p{margin:0}.igd-select-sources-wrap .igd-file-browser{border:1px solid rgba(47,180,75,.3);border-radius:10px;overflow:hidden;flex:1;height:auto;background:#fff}.igd-select-sources-wrap .igd-file-browser-header{position:static;z-index:9}.igd-select-sources-wrap .igd-file-browser-header .header-title i{color:#555;display:flex;align-items:center;justify-content:center}.igd-select-sources-wrap .igd-file-browser-header .igd-breadcrumb .breadcrumb-item:hover{color:#fff;background:#248c3a}.igd-select-sources-wrap .igd-file-browser .select-btn{position:absolute;color:#fff;left:10px;border:1px solid rgba(47,180,75,.3);z-index:2;display:flex;align-items:center;border-radius:3px;padding:5px;background:#2fb44b;cursor:pointer;line-height:1;transition:background .3s ease;font-size:.875rem}.igd-select-sources-wrap .igd-file-browser .select-btn i{margin-left:0}.igd-select-sources-wrap .igd-file-browser .select-btn span{margin-right:5px;display:none}.igd-select-sources-wrap .igd-file-browser .select-btn.active{background:#ff9f10;border-color:#dc8400}.igd-select-sources-wrap .igd-file-browser .select-btn:hover span{display:block}.igd-select-sources-wrap .igd-file-browser .file-list .file-item:not(.folder-item):hover .select-btn span{display:block}.igd-select-sources-wrap .igd-file-browser .file-list:not(.list-view) .file-item:not(.folder-item) .select-btn{top:10px}.igd-select-sources-wrap .igd-selected-list{width:30%;max-width:300px;margin-right:15px;border:1px solid rgba(47,180,75,.3);border-radius:10px;overflow:hidden;background:#fff;position:sticky;top:120px}.igd-select-sources-wrap .igd-selected-list-header{padding:10px;background:#2fb44b;color:#fff;display:flex;align-items:center;justify-content:space-between}.igd-select-sources-wrap .igd-selected-list-header .header-title{font-size:1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-select-sources-wrap .igd-selected-list-header button{padding:7px 10px;font-size:.8rem;border-radius:5px;background:#ff9f10;border:none}.igd-select-sources-wrap .igd-selected-list-header button span{white-space:nowrap}.igd-select-sources-wrap .igd-selected-list-header button:hover{color:#ff9f10;background:#fff}.igd-select-sources-wrap .igd-selected-list .no-files-message{display:flex;justify-content:center;align-items:center;font-size:1rem;color:#ff9f10;margin:30px auto}.igd-select-sources-wrap .igd-selected-list .no-files-message i{margin-left:5px}.igd-select-sources-wrap .igd-selected-list>p{padding:10px;font-size:.875rem;color:#555;border:1px solid #ddd;margin:30px 10px 10px;border-radius:5px;background:rgba(48,142,225,.1);text-align:center}.igd-select-sources-wrap .igd-selected-list>p span{display:block;margin-top:10px}.igd-select-sources-wrap .no-account-placeholder{width:auto;flex:1;margin-top:0}@media (max-width:767px){.igd-select-sources-wrap{flex-direction:column}.igd-select-sources-wrap .igd-selected-list{margin-right:0}}.selected-item{display:flex;align-items:center;padding:10px 15px;border-bottom:1px solid #ddd;font-size:.875rem;z-index:99;color:#666}.selected-item-index{margin-left:7px;color:#777}.selected-item .item-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-left:7px}.selected-item .remove-item{color:#fff;background:#ff9f10;border:1px solid #dc8400;display:flex;align-items:center;justify-content:center;height:25px;width:25px;min-width:25px;font-size:18px;border-radius:50%;opacity:.7;margin-right:auto;cursor:pointer}.selected-item .remove-item:hover{opacity:1;background:#fff;color:#ff9f10}.selected-item .dashicons-category,.selected-item .dashicons-move,.selected-item img{margin-left:10px;color:#8f8f8f}.selected-item .dashicons-move{cursor:pointer}.selected-item .dashicons-move:hover{color:#555}.selected-item .file-item{display:flex;align-items:center;overflow:hidden;flex:1;cursor:pointer}.selected-item .file-item>img{max-width:20px;min-height:16px}.selected-item.sortable-item{border:none}.igd-shortcode-preview,.igd-shortcode-preview *{box-sizing:border-box}.igd-shortcode-preview-container{z-index:99999!important}.igd-shortcode-preview-container,.igd-shortcode-preview-container *{box-sizing:border-box}.igd-shortcode-preview-popup{display:flex!important;align-items:center;justify-content:center;position:absolute!important;grid-column:auto!important;grid-row:auto!important;background:100% 0;width:97%!important;height:95%!important}.igd-shortcode-preview-popup .swal2-html-container{width:100%!important;height:100%!important;background:#fff;border-radius:.5rem!important;margin:auto!important}.igd-shortcode-preview-header{display:flex;align-items:center;justify-content:space-between;padding:.8rem;border-bottom:1px solid #ddd;margin-bottom:1rem;position:sticky;top:0;z-index:10;background:#fff;box-shadow:0 .5rem 1rem rgba(0,0,0,.1)}.igd-shortcode-preview-header .header-title i{margin-left:7px}.igd-shortcode-preview-header button i{margin-left:0}.igd-shortcode-preview .preview-inner{text-align:right;padding:1rem 2rem}.swal2-container.swal2-top-end{z-index:99999!important}.igd-module-builder-modal{height:100%;display:flex;flex-direction:column;background:#f7f8fa}.igd-module-builder-modal *{box-sizing:border-box}.igd-module-builder-modal-wrap{height:100%}.igd-module-builder-modal-wrap.inline-select .shortcode-module{padding:0}.igd-module-builder-modal-wrap.inline-select .shortcode-builder-content{height:auto;max-width:100%;min-height:auto}.igd-module-builder-modal-container{z-index:99999999!important}.igd-module-builder-modal-container .swal2-popup{width:95%;height:90vh;padding:0;overflow:hidden}.igd-module-builder-modal-container .swal2-popup .swal2-html-container{margin:0;border-radius:.5rem;overflow-y:auto}.igd-module-builder-modal-header{display:flex;align-items:center;padding:12px 1rem;border-bottom:1px solid #eaeaea;background:#fff;z-index:99;box-shadow:0 0 .5rem rgba(0,0,0,.1);position:sticky;top:0}.igd-module-builder-modal-header .header-title{display:flex;align-items:center}.igd-module-builder-modal-header .header-title i{margin-left:7px}.igd-module-builder-modal-header .header-title h3{font-size:1.2rem;margin:0;font-weight:500}@media (max-width:600px){.igd-module-builder-modal-header .header-title h3{font-size:1rem}}.igd-module-builder-modal-header .close{margin-right:auto;margin-left:15px}.igd-module-builder-modal-header button{padding:7px 10px;font-size:.9rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-module-builder-modal-header .done .igd-spinner{display:none}.igd-module-builder-modal-header .done.loading i{display:none}.igd-module-builder-modal-header .done.loading .igd-spinner{display:inline-block}.igd-module-builder-modal .shortcode-module .media-uploader-post-content{margin-bottom:30px}.igd-module-builder-modal .shortcode-module .media-uploader-post-content textarea{width:100%;height:auto;padding:8px 12px;line-height:27px;vertical-align:top}.igd-module-builder-modal .shortcode-module-header{align-items:flex-start}.igd-module-builder-modal .shortcode-module-header .module-title{line-height:1}.igd-module-builder-modal .shortcode-module .igd-selected-list{top:20px}.igd-module-builder-modal .shortcode-module-body>.settings-field:last-child{margin-bottom:0}.igd-shortcode-builder-form{margin:0;overflow-y:auto;flex:1;display:flex}.igd-shortcode-builder-form .content-sources .settings-field.form-entry-field{margin-top:20px}.igd-shortcode-builder-form .content-sources .settings-field.form-entry-field input[type=text]{width:100%}.igd-shortcode-builder-form .content-sources .form-entry-title{margin-top:30px}.igd-shortcode-builder-form .content-sources #igd-select-files{width:100%;margin-bottom:20px}.igd-shortcode-builder-form .content-sources #igd-select-files .igd-body{max-height:400px}.module-builder-placeholder{display:flex;align-items:center;flex-flow:column;justify-content:center;text-align:center;border:1px solid #eaeaea;padding:2rem;border-radius:10px;max-width:380px;margin:auto;background:#fafafa}.module-builder-placeholder img{width:50px}.module-builder-placeholder h3{font-size:22px;margin-bottom:5px;font-weight:500;color:#333}.module-builder-placeholder p{font-size:.875rem;color:#555}.module-builder-placeholder button{margin-top:10px;padding:10px 15px}.module-builder-placeholder.pro-placeholder h4{margin-top:20px;margin-bottom:0;font-size:1.5rem;color:#ff9458;font-weight:500}.igd-shortcode-data-modal-container .igd-shortcode-data-modal-input{height:150px;padding:1rem;border-radius:.5rem;line-height:1.2;font-size:.878885rem}.igd-shortcode-data-modal-container .swal2-confirm{background:#2fb44b}#igd_data{display:none!important}.igd-form-uploader-trigger>*{pointer-events:none}.igd-file-browser{display:flex;flex-flow:column;align-items:flex-start;width:100%}.igd-file-browser,.igd-file-browser *{box-sizing:border-box}.igd-file-browser .btn-primary{background:var(--color-primary)}.igd-file-browser .btn-primary:hover{background:var(--color-primary-light-alt)}.igd-file-browser-header{display:flex;align-items:center;background:#f9fafc;border-bottom:1px solid #e5e5e5;padding:12px 15px;position:sticky;top:32px;width:100%;z-index:9;height:60px}.igd-file-browser-header .header-title{display:flex;align-items:center;font-size:1rem;font-weight:600;color:#fff}.igd-file-browser-header .header-title i,.igd-file-browser-header .header-title img{margin-left:10px;background:#fff;padding:5px;height:35px;width:35px;border-radius:50%;color:#fff}.igd-file-browser-header .header-action{display:flex;align-items:center;margin-right:auto;justify-content:flex-end}.igd-file-browser-header .header-action-item{margin-right:15px;cursor:pointer;color:#444;background:#f7f8fa;height:40px;width:40px;border-radius:10px;display:flex;align-items:center;justify-content:center;transition:all .2s ease-in-out}.igd-file-browser-header .header-action-item img{width:18px}.igd-file-browser-header .header-action-item:hover{background:var(--color-primary-lighter)}.igd-file-browser-header .user-box{display:flex;align-items:center;width:auto;padding:5px;max-width:250px;height:45px;background:100% 0}.igd-file-browser-header .user-box .user-info{display:flex;flex-direction:column;line-height:1;overflow:hidden;text-align:right}.igd-file-browser-header .user-box .user-info span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.igd-file-browser-header .user-box .user-info .user-name{font-size:.9rem;font-weight:600;color:#3d3d3d;margin-bottom:3px}.igd-file-browser-header .user-box .user-info .user-email{color:#7a7a7a;font-weight:300;font-size:.875rem}.igd-file-browser-header .user-box .user-image{width:35px;height:35px;border-radius:50%}.igd-file-browser-header .user-box-modal{display:flex;flex-direction:column;justify-content:flex-start;align-items:center;width:260px;border-radius:10px;max-height:75vh;overflow-y:auto}.igd-file-browser-header .user-box-modal::-webkit-scrollbar{width:5px;display:none}.igd-file-browser-header .user-box-modal::-webkit-scrollbar-track{background:var(--color-primary-lighter)}.igd-file-browser-header .user-box-modal::-webkit-scrollbar-thumb{background:var(--color-primary-light)}.igd-file-browser-header .user-box-modal::-webkit-scrollbar-thumb:hover{background:var(--color-primary)}.igd-file-browser-header .user-box-modal:hover::-webkit-scrollbar{display:block}.igd-file-browser-header .user-box-modal-wrap{border-radius:10px;padding:0;opacity:1;box-shadow:0 1px 0 0 #e5e5e5}.igd-file-browser-header .user-box-modal-wrap:after,.igd-file-browser-header .user-box-modal-wrap:before{right:calc(100% - 45px)}.igd-file-browser-header .user-box-modal-title{font-size:1.2rem;font-weight:500;display:block;position:sticky;background:#fff;top:0;width:100%;text-align:center;padding:15px;box-shadow:0 1px 0 0 #e5e5e5;margin-bottom:7px}.igd-file-browser-header .user-box-modal button{margin:10px auto 20px auto;padding:8px 12px;font-size:.875rem}.igd-file-browser-header .user-box-modal>div:last-child{margin-bottom:15px}.igd-file-browser-header .user-box-account{display:flex;align-items:center;border:1px solid #e5e5e5;padding:7px;border-radius:5px;cursor:pointer;width:calc(100% - 30px);margin:7px}.igd-file-browser-header .user-box-account.active,.igd-file-browser-header .user-box-account:hover{background:var(--color-primary-lighter);color:#000}.igd-file-browser-header .user-box-account img{width:30px;height:30px;border-radius:50%;margin-left:10px}.igd-file-browser-header .user-box-account .account-info{display:flex;flex-flow:column;overflow:hidden;text-align:right;line-height:1.5}.igd-file-browser-header .user-box-account .account-info .account-name{font-size:.9rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-file-browser-header .user-box-account .account-info .account-email{font-size:.8rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#7a7a7a}.igd-file-browser-header .user-box-account .active-badge{background:var(--color-primary);color:#fff;border-radius:50%;position:relative;margin-right:auto;left:0}.igd-file-browser-header .user-box .user-arrow{width:16px;margin-right:10px}@media (max-width:768px){.igd-file-browser-header{top:0;flex-flow:column;align-items:center;height:auto;padding:.5rem}.igd-file-browser-header .header-action{margin-right:0;width:100%;justify-content:center}.igd-file-browser-header .header-action .igd-search-bar input{min-height:35px;height:35px}.igd-file-browser-header .header-action .igd-search-bar i.dashicons-dismiss{margin-right:15px}.igd-file-browser-header .header-action .igd-search-bar i.dashicons-search{height:35px}.igd-file-browser-header .header-action .igd-search-bar.active{position:absolute;width:calc(100% - 20px);z-index:2;height:45px;background:#f7f8fa}.igd-file-browser-header .header-action-item{margin-right:.875rem}.igd-file-browser-header .header-action-item.sidebar-toggle{margin-right:0;margin-left:auto}.igd-file-browser-header .user-box{padding:5px;border-radius:30px;height:40px}.igd-file-browser-header .user-box .user-info{display:none}.igd-file-browser-header .user-box .user-arrow{margin-right:0}.igd-file-browser-header .user-box .user-image{width:30px;height:30px;margin-left:5px}.igd-file-browser-header .user-box-modal-wrap{left:10px;right:auto}}.igd-file-browser .igd-search-bar{display:flex;align-items:center;position:relative;overflow:hidden;margin-bottom:0}.igd-file-browser .igd-search-bar input{width:0;height:0;min-height:0;border:none;transition:all .3s ease;padding:0;margin:0;border:0;background:100% 0;box-shadow:none}.igd-file-browser .igd-search-bar input:focus{outline:0;border:none;box-shadow:none}.igd-file-browser .igd-search-bar .search-submit{margin-right:0;display:flex;align-items:center;justify-content:center;margin-bottom:0}.igd-file-browser .igd-search-bar .search-dismiss{display:none;background:100% 0;cursor:pointer}.igd-file-browser .igd-search-bar .search-dismiss img{width:16px}.igd-file-browser .igd-search-bar.active{width:auto;padding:5px 15px}.igd-file-browser .igd-search-bar.active input{width:100%!important;margin:0 15px;height:100%}.igd-file-browser .igd-search-bar.active .search-submit{margin-bottom:0}.igd-file-browser .igd-search-bar.active .search-dismiss{display:flex}.igd-file-browser .igd-search-bar.active .search-dismiss svg{margin-bottom:0}.igd-file-browser .igd-search-bar.error input{border:1px solid #f77066}.igd-file-browser-body{display:flex;align-items:flex-start;width:100%;height:100%;position:relative}.igd-file-browser .igd-sort{display:flex;align-items:center}.igd-file-browser .igd-sort-select{font-weight:600;cursor:pointer;padding:3px 5px;border-radius:5px}.igd-file-browser .igd-sort-select:hover{background:#ddd}.igd-file-browser .igd-sort-modal{width:220px;padding:0;border-radius:7px;opacity:1!important;box-shadow:rgba(149,157,165,.2) 0 8px 24px}.igd-file-browser .igd-sort-modal .sort-item{display:flex;align-items:center;margin-bottom:15px;padding-right:25px;cursor:pointer;font-size:.9rem}.igd-file-browser .igd-sort-modal .sort-item i{margin-left:5px;display:none}.igd-file-browser .igd-sort-modal .sort-item.active{color:var(--color-primary);padding-right:0}.igd-file-browser .igd-sort-modal .sort-item.active i{display:inline-block}.igd-file-browser .igd-sort-modal .sort-item:hover{color:var(--color-primary)}.igd-file-browser .igd-sort-modal-inner{display:flex;flex-direction:column}.igd-file-browser .igd-sort-modal-inner-section{border-bottom:1px solid #ddd;padding:15px}.igd-file-browser .igd-sort-modal-inner-section:last-child{border-bottom:0}.igd-file-browser .igd-sort-modal-inner-section-title{font-size:.9rem;margin-bottom:10px;display:block;font-weight:500}.igd-file-browser .igd-breadcrumb{display:flex;align-items:center;overflow:hidden;max-width:70%;flex-wrap:wrap}.igd-file-browser .igd-breadcrumb .breadcrumb-item{font-size:.875rem;display:flex;align-items:center;cursor:pointer;padding:5px;border-radius:5px;line-height:1;font-weight:500;color:#444;white-space:nowrap;position:relative;margin-bottom:0}.igd-file-browser .igd-breadcrumb .breadcrumb-item i{margin-right:3px}.igd-file-browser .igd-breadcrumb .breadcrumb-item i.dashicons-arrow-right-alt2{width:13px;height:15px;font-size:15px}.igd-file-browser .igd-breadcrumb .breadcrumb-item i.dashicons-admin-home{margin-left:5px;margin-right:0}.igd-file-browser .igd-breadcrumb .breadcrumb-item i:last-child{display:none}.igd-file-browser .igd-breadcrumb .breadcrumb-item span{margin-bottom:0;max-width:200px;overflow:hidden;text-overflow:ellipsis}.igd-file-browser .igd-breadcrumb .breadcrumb-item:first-child{margin-right:0}.igd-file-browser .igd-breadcrumb .breadcrumb-item:after{content:"";font-family:Dashicons;margin-right:7px}.igd-file-browser .igd-breadcrumb .breadcrumb-item:not(:last-child):after{content:"\f345"}.igd-file-browser .igd-breadcrumb .breadcrumb-item.active:after{content:"\f140";height:auto;width:auto;font-size:22px;margin-right:3px}.igd-file-browser .igd-breadcrumb .breadcrumb-item:hover{color:var(--color-primary);background:var(--color-primary-lighter)}@media (max-width:768px){.igd-file-browser .igd-breadcrumb{max-width:100%;margin-bottom:10px}}.igd-file-browser .collapsed-breadcrumbs{width:210px;opacity:1!important;box-shadow:rgba(149,157,165,.2) 0 8px 24px;padding:10px 0}.igd-file-browser .collapsed-breadcrumbs-item{cursor:pointer;font-size:.875rem;padding:7px 15px;display:flex;align-items:center}.igd-file-browser .collapsed-breadcrumbs-item:hover{color:var(--color-primary)}.igd-file-browser .collapsed-breadcrumbs-item i{margin-left:5px;font-size:1rem;height:1rem;width:1rem}.igd-file-browser .collapsed-breadcrumbs-item span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}.igd-file-browser .collapsed-breadcrumbs-item:before{content:"\f345";font-family:Dashicons,serif;margin-left:7px}.igd-file-browser .igd-root-placeholder{display:flex;flex-direction:column;align-items:center;width:-moz-max-content;width:max-content;margin:3rem auto;padding:50px 30px;border-radius:15px;min-width:30rem;background:#fff;box-shadow:rgba(149,157,165,.2) 0 2px 2px}.igd-file-browser .igd-root-placeholder .igd-placeholder-svg,.igd-file-browser .igd-root-placeholder img{width:200px;margin-bottom:1rem}.igd-file-browser .igd-root-placeholder-title{font-size:1rem;font-weight:500;margin:15px 0 5px 0;color:var(--color-primary)}.igd-file-browser .igd-root-placeholder-text{color:#7a7a7a}.igd-file-browser .igd-root-placeholder button{margin-top:30px}.igd-file-browser .igd-root-placeholder.empty-folder-placeholder img,.igd-file-browser .igd-root-placeholder.search-folder-placeholder img{width:100px}.igd-file-browser .igd-root-placeholder.search-placeholder .igd-placeholder-svg{width:100px;margin-bottom:1rem}.igd-file-browser .igd-root-placeholder.search-placeholder .igd-root-placeholder-title{margin-bottom:1.5rem}.igd-file-browser .igd-root-placeholder.search-placeholder:not(.empty-placeholder) .igd-root-placeholder-title{margin-top:0;margin-bottom:1.5rem}.igd-file-browser .igd-root-placeholder.search-placeholder .igd-search-bar{border:1px solid #ddd;padding:10px 20px;border-radius:5px}.igd-file-browser .igd-root-placeholder.search-placeholder .igd-search-bar .search-dismiss{display:none}.igd-file-browser .igd-root-placeholder.search-placeholder .igd-search-bar input{margin-right:0}.igd-file-browser .igd-root-placeholder+.igd-file-uploader{position:relative!important;margin:30px auto;left:unset;right:unset;bottom:unset}@media (max-width:767px){.igd-file-browser .igd-root-placeholder{min-width:auto}}.igd-sidebar-wrap{width:20%;max-width:230px;border-left:1px solid #e5e5e5;position:sticky;background:#f9fafc}.igd-sidebar .sidebar-uploader{display:flex;align-items:center;justify-content:center;padding:20px 10px 15px;border-bottom:1px solid #e5e5e5}.igd-sidebar .sidebar-uploader button{padding:7px 10px;font-size:.875rem;transition:background .3s ease;background:var(--color-primary)}.igd-sidebar .sidebar-uploader button.active{background:#fff;color:var(--color-primary);border-color:var(--color-primary-light)}.igd-sidebar .sidebar-uploader button.disabled{background:#ddd}.igd-sidebar .sidebar-uploader button.disabled:hover{background:#ddd!important}.igd-sidebar .sidebar-folders{display:flex;flex-direction:column}.igd-sidebar .sidebar-folders .root-item{padding:10px 15px;cursor:pointer;display:flex;align-items:center;font-size:1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-sidebar .sidebar-folders .root-item img{margin-left:10px}.igd-sidebar .sidebar-folders .root-item.active{background:var(--color-primary-lighter);color:var(--color-primary);border-right:5px solid}.igd-sidebar .sidebar-folders .root-item:hover{color:var(--color-primary)}.igd-sidebar .storage-info-wrap{display:flex;align-items:center;margin-top:30px;border-top:1px solid #e5e5e5;padding:15px}.igd-sidebar .storage-info-wrap i{margin-left:10px}.igd-sidebar .storage-info-wrap .storage-info{display:flex;flex-direction:column;flex:1}.igd-sidebar .storage-info-wrap .storage-info-sidebar{width:100%;height:10px;background:var(--color-primary-lighter);border-radius:5px;position:relative}.igd-sidebar .storage-info-wrap .storage-info-sidebar .storage-info-fill{position:absolute;top:0;right:0;width:0;height:100%;background:var(--color-primary);border-radius:5px}.igd-sidebar .storage-info-wrap .storage-info-sidebar .storage-info-fill.fill-danger{background:#f44336}.igd-sidebar .storage-info-wrap .storage-info span{font-size:.8rem;margin-top:5px}@media (max-width:767px){.igd-sidebar{max-width:80%;height:100%;background:#f5f9fd}.igd-sidebar-wrap{width:100%;max-width:100%;position:absolute;z-index:2;background:rgba(0,0,0,.5);height:100%}}.igd-body{display:flex;flex-direction:column;padding:10px;flex:1;width:100%;height:100%;position:relative;background:#f7f8fa}.igd-body .file-list{display:flex;align-items:flex-start;flex-wrap:wrap;overflow-y:auto}.igd-body .file-list .go-prev{display:flex;align-items:center;flex-direction:row!important;padding:10px;cursor:pointer!important;justify-content:flex-start!important;background:var(--color-primary-lighter);transition:all .3s ease;font-size:1rem;font-weight:300}.igd-body .file-list .go-prev i{margin:0 10px;position:relative;transition:all .3s ease;right:0}.igd-body .file-list .go-prev span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-body .file-list .root-item{flex-direction:row!important;padding:10px;cursor:pointer!important;align-items:center;justify-content:flex-start!important;font-size:1rem;background:#fff}.igd-body .file-list .root-item img{margin-left:10px}.igd-body .file-list .root-item .select-btn i{margin-left:0}.igd-body .file-list .file-item{display:flex;flex-direction:column;width:25%;margin:7px;border-radius:5px;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:auto;position:relative;aspect-ratio:1/1;justify-content:flex-end;box-shadow:rgba(0,0,0,.05) 0 6px 24px 0,rgba(0,0,0,.08) 0 0 0 1px;transition:transform .3s ease}.igd-body .file-list .file-item .igd-file-thumbnail{width:100%;height:100%;-o-object-fit:none;object-fit:none;position:absolute;-webkit-user-drag:none;bottom:20px}.igd-body .file-list .file-item .igd-file-thumbnail.has-thumbnail{-o-object-fit:cover;object-fit:cover}.igd-body .file-list .file-item .file-item-footer{display:flex;align-items:center;border-top:1px solid #e5e5e5;z-index:1;background:#fff;line-height:1;height:40px}.igd-body .file-list .file-item .file-item-footer .file-icon-wrap{width:30px;height:30px;display:flex;align-items:center;justify-content:center;margin-left:3px;margin-right:7px}.igd-body .file-list .file-item .file-item-footer .file-icon-wrap .file-icon{width:20px;height:20px;-webkit-user-drag:none}.igd-body .file-list .file-item .file-item-footer .file-icon-wrap .shortcut-icon{position:absolute;right:15px;bottom:8px;border:1px solid #ddd;border-radius:50%}.igd-body .file-list .file-item .file-item-footer .file-item-name{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:.875rem;font-weight:300;margin-left:auto;flex:1;text-align:right}.igd-body .file-list .file-item .file-item-footer .file-item-size{font-size:.75rem;font-weight:400;margin:0 5px;color:#999}.igd-body .file-list .file-item .file-item-footer .file-item-options{margin-right:auto;cursor:pointer;color:#565656;margin-left:7px}.igd-body .file-list .file-item .file-item-footer .file-item-options i{transform:rotate(-90deg);font-size:18px;width:18px;height:18px}.igd-body .file-list .file-item .file-item-footer .file-item-options:hover{color:var(--color-primary)}.igd-body .file-list .file-item.active{border:1px solid var(--color-primary-lighter-alt);transform:scale(1.03)}.igd-body .file-list .file-item.active .file-item-footer{background:var(--color-primary-light-alt);color:#fff}.igd-body .file-list .file-item.active .file-item-footer:not(:has(.file-item-checkbox)) .file-icon{background:#fff;border-radius:3px;box-sizing:content-box!important;padding:2px 5px}.igd-body .file-list .file-item.active .file-item-footer:has(.file-item-checkbox) .file-icon,.igd-body .file-list .file-item.active .file-item-footer:has(.file-item-checkbox) .shortcut-icon{display:none}.igd-body .file-list .file-item.active .file-item-footer .file-item-size{color:inherit}.igd-body .file-list .file-item.active .file-item-footer .file-item-options{color:inherit}.igd-body .file-list .file-item.active .file-item-footer .file-item-checkbox{display:flex;padding:0;border:1px solid #fff}.igd-body .file-list .file-item:hover{transform:scale(1.03)}.igd-body .file-list .file-item:hover .file-item-footer .file-icon-wrap:has(.file-item-checkbox) .file-icon,.igd-body .file-list .file-item:hover .file-item-footer .file-icon-wrap:has(.file-item-checkbox) .shortcut-icon{display:none}.igd-body .file-list .file-item:hover .file-item-footer .file-icon-wrap .file-item-checkbox{display:flex}.igd-body .file-list .file-item:hover .file-item-date{color:#fff}.igd-body .file-list .file-item.folder-item{height:50px;justify-content:center;position:relative;order:1}.igd-body .file-list .file-item.folder-item .file-item-footer{border-top:0;height:100%}.igd-body .file-list .file-item:not(.folder-item){order:3}@media (max-width:768px){.igd-body .file-list .file-item .file-item-footer .file-icon-wrap{margin-left:5px}.igd-body .file-list .file-item .file-item-footer .file-icon-wrap:has(.file-item-checkbox) .file-icon,.igd-body .file-list .file-item .file-item-footer .file-icon-wrap:has(.file-item-checkbox) .shortcut-icon{display:none}.igd-body .file-list .file-item .file-item-footer .file-icon-wrap .file-item-checkbox{display:flex}}.igd-body .file-list .folder-file-divider{width:100%;order:2}.igd-body .file-list.list-view{flex-flow:column;align-items:center}.igd-body .file-list.list-view .go-prev{padding:12px 10px!important}.igd-body .file-list.list-view .list-view-header{display:flex;align-items:center;width:100%;font-size:1rem;position:sticky;top:0;margin-top:10px;margin-bottom:15px;z-index:1;line-height:1}.igd-body .file-list.list-view .list-view-header .col-name{width:50%;padding-right:50px}.igd-body .file-list.list-view .list-view-header .col-size{width:20%;text-align:center}.igd-body .file-list.list-view .list-view-header .col-modified{width:25%;text-align:center}.igd-body .file-list.list-view .list-view-header:not(:has(.col-modified)) .col-name,.igd-body .file-list.list-view .list-view-header:not(:has(.col-size)) .col-name{width:70%}.igd-body .file-list.list-view .list-view-header:not(:has(.col-size)):not(:has(.col-modified)) .col-name{width:90%}.igd-body .file-list.list-view .file-item{width:100%!important;overflow:visible;margin:0;border-radius:0;padding:5px 10px;font-size:.875rem;flex-direction:row;align-items:center;justify-content:space-between;border:1px solid transparent;border-bottom-color:#eee;box-shadow:none;aspect-ratio:auto;background:#fff}.igd-body .file-list.list-view .file-item .file-item-date{width:20%;font-size:.75rem;font-weight:400;margin:0 5px;color:#999;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:right}.igd-body .file-list.list-view .file-item.active{transform:none;background:var(--color-primary-lighter-alt);color:#fff}.igd-body .file-list.list-view .file-item.active .file-item-date{color:inherit}.igd-body .file-list.list-view .file-item:hover{transform:none;background:var(--color-primary-lighter-alt);color:#fff}.igd-body .file-list.list-view .file-item:hover .file-item-footer .file-item-options{color:inherit}.igd-body .file-list.list-view .file-item:hover .file-item-size{color:inherit}.igd-body .file-list.list-view .file-item:hover .file-item-date{color:inherit}.igd-body .file-list.list-view .file-item.folder-item{height:45px}.igd-body .file-list.list-view .file-item .file-item-footer{border:0;width:70%;background:100% 0;height:33px}.igd-body .file-list.list-view .file-item .file-item-footer .file-item-name{width:70%}.igd-body .file-list.list-view .file-item .file-item-footer .file-item-size{width:30%;text-align:center}.igd-body .file-list.list-view .file-item .file-item-footer .file-item-options{position:absolute;left:0}.igd-body .file-list.list-view .file-item .file-item-footer .file-icon-wrap{margin-right:0}.igd-body .file-list.list-view .file-item .file-item-footer:not(:has(.file-item-size)) .file-item-name{width:100%}.igd-body .file-list.list-view .file-item:not(:has(.file-item-date)) .file-item-footer{width:90%}.igd-body .file-list.list-view .file-item:last-child{border-bottom:0}.igd-body .file-list.list-view .root-item{padding:15px 10px;font-size:1rem;justify-content:flex-start}@media (max-width:767px){.igd-body .file-list.list-view .list-view-header .col-name{width:65%}.igd-body .file-list.list-view .list-view-header .col-modified{display:none}.igd-body .file-list.list-view .file-item .file-item-footer{width:90%}.igd-body .file-list.list-view .file-item .file-item-date{display:none}}.igd-body .file-list.empty .list-view-header{display:none}.igd-body .file-list.empty+.igd-file-uploader{margin:10px 7px}.igd-body .file-list.igd-item-col-1 .file-item{width:100%}.igd-body .file-list.igd-item-col-1:not(.list-view) .file-item{margin:4px}.igd-body .file-list.igd-item-col-2 .file-item{width:calc(50% - 14px)}.igd-body .file-list.igd-item-col-3 .file-item{width:calc(33.33% - 14px)}.igd-body .file-list.igd-item-col-3 .file-item .file-item-footer .file-item-size{display:none}.igd-body .file-list.igd-item-col-4 .file-item{width:calc(25% - 14px)}.igd-body .file-list.igd-item-col-5 .file-item{width:calc(20% - 14px)}.igd-body .file-list.igd-item-col-6 .file-item{width:calc(16.66% - 14px)}.igd-body .file-list.igd-item-col-7 .file-item{width:calc(14.28% - 14px)}.igd-body .file-list.igd-item-col-8 .file-item{width:calc(12.5% - 14px)}.igd-body .search-result-info{font-size:1rem;margin:10px 5px 15px 0;display:flex;align-items:center}.igd-body .search-result-info .clear-button{margin-right:10px}.igd-body .loading-wrap{display:flex;justify-content:center;height:100%;width:100%;position:absolute;top:0;right:0;z-index:1}.igd-body .loading-wrap img{width:150px;height:150px;margin-top:2rem}.igd-body.loading{min-height:15rem}.igd-body.loading:not(.lazy-loading) .file-list,.igd-body.loading:not(.lazy-loading) .igd-gallery-images{opacity:.3}.igd-body.loading:not(.lazy-loading) .file-list .file-item,.igd-body.loading:not(.lazy-loading) .igd-gallery-images .file-item{transform:none;transition:none}.igd-body.lazy-loading .loading-wrap{position:unset}.igd-body.lazy-loading .loading-wrap img{margin-top:-1rem}.igd-details{display:flex;flex-flow:column;padding:20px 15px}.igd-details-wrap{width:250px;position:sticky;border-right:1px solid #e5e5e5;background:#fff}.igd-details .close-details{align-self:flex-end;cursor:pointer;font-size:1.25rem;opacity:.5;margin:-5px 0 5px 0}.igd-details .close-details:hover{opacity:1}.igd-details .details-item{display:flex;align-items:center;margin-bottom:15px;flex-wrap:wrap}.igd-details .details-item img{width:20px;height:20px;margin-left:10px}.igd-details .details-item-label{font-size:.875rem;font-weight:500;color:#444;width:80px;display:flex;align-items:center;justify-content:space-between}.igd-details .details-item-label:after{content:":";margin-left:10px}.igd-details .details-item.name{font-weight:500;font-size:1rem;margin-bottom:20px;word-break:break-all;flex-wrap:nowrap}.igd-details .details-item-value{font-size:.875rem;color:#555;word-break:break-all;max-width:100%}.igd-details .details-item.field-location{flex-direction:column;align-items:flex-start}.igd-details .details-item.field-location .details-item-value{margin-top:7px}.igd-details .details-item.field-location .location-wrap{display:flex;align-items:center;border:1px solid #ddd;border-radius:5px;padding:5px;cursor:pointer}.igd-details .details-item.field-location .location-wrap img{margin-left:5px}.igd-details .details-item.field-location .location-wrap span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-details .details-item.field-location .location-wrap:hover{background:#f5f5f5}.igd-details .details-item.field-description{display:flex;align-items:flex-start;flex-wrap:wrap;justify-content:space-between}.igd-details .details-item.field-description .details-item-label{margin-bottom:5px}.igd-details .details-item.field-description .description-placeholder,.igd-details .details-item.field-description .details-item-value{width:100%;color:#555}.igd-details .details-item.field-description .dashicons{cursor:pointer;padding:0 5px;box-sizing:content-box;margin-top:5px}.igd-details .details-item.field-description form,.igd-details .details-item.field-description textarea{width:100%}.igd-details .details-placeholder{font-size:1rem}@media (max-width:767px){.igd-details{max-width:80%;height:100%;margin-right:auto;background:#fff}.igd-details-wrap{width:100%;max-width:100%;position:absolute;z-index:2;background:rgba(0,0,0,.5);height:100%}}.igd-context-menu{z-index:99999999;background-color:#fff;border-radius:4px;list-style:none;font-size:14px;font-family:sans-serif;font-weight:400;line-height:1.5;color:#333;cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;box-shadow:0 0 10px rgba(0,0,0,.2)}.igd-context-menu,.igd-context-menu *{box-sizing:border-box}.igd-context-menu .context-menu-item{display:flex;align-items:center;padding:10px 15px;cursor:pointer;transition:background-color .2s ease;width:100%;position:relative}.igd-context-menu .context-menu-item.details,.igd-context-menu .context-menu-item.import{border-bottom:1px solid #eee}.igd-context-menu .context-menu-item.delete,.igd-context-menu .context-menu-item.download{border-top:1px solid #eee}.igd-context-menu .context-menu-item.disabled{color:#ccc}.igd-context-menu .context-menu-item.upload{border-bottom:1px solid #ddd}.igd-context-menu .context-menu-item.delete{border-bottom:1px solid #ddd}.igd-context-menu .context-menu-item.view{border-top:1px solid #ddd}.igd-context-menu .context-menu-item i{margin-left:10px}.igd-context-menu .context-menu-item:hover{background-color:#f5f5f5}.igd-context-menu .context-menu-item:hover .pro-badge{transform:scale(1.1)}.igd-context-menu .context-menu-item .pro-badge{position:absolute;left:0;background:#fdb837;color:#fff;padding:5px;border-radius:4px;font-size:11px;font-weight:400;display:flex;align-items:center;justify-content:center;line-height:1;box-shadow:0 0 5px rgba(0,0,0,.1);transition:transform .2s ease}.igd-context-menu .context-menu-item .pro-badge i{margin-left:2px;height:auto;width:auto;font-size:15px}.share-modal *{box-sizing:border-box}.share-modal .swal2-close:focus{outline:0;background:100% 0;color:#f08080;box-shadow:none}.share-modal .share-link{margin-bottom:1rem}.share-modal .share-link input,.share-modal .share-link textarea{width:-webkit-fill-available;border:1px solid #ddd;border-radius:4px;padding:0 10px;font-size:14px;font-family:sans-serif;font-weight:400;line-height:1.5;color:#333;cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;text-align:center;word-break:break-all}.share-modal .share-link input{height:40px}.share-modal .share-link textarea{height:100px}.share-modal.embed .embed-code{display:flex}.share-modal.embed .share-links{display:none}.share-modal .share-links{display:flex;justify-content:center;flex-wrap:wrap}.share-modal .share-links .share-item{display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;color:#333;text-decoration:none;margin:0 0 10px 10px}.share-modal .share-links .share-item i{font-size:22px;width:auto;height:auto;border:1px solid #ccc;border-radius:50%;padding:10px;margin:10px}.share-modal .share-links .share-item span{font-size:.875rem}.share-modal .share-links .share-item.link i{background:#fff;border:1px solid #ccc;color:#333}.share-modal .share-links .share-item.link span{color:#333}.share-modal .share-links .share-item.link:hover i{background:#e6e6e6}.share-modal .share-links .share-item.embed i{background:#333;border:1px solid #333;color:#fff}.share-modal .share-links .share-item.embed:hover i{background:#1a1a1a}.share-modal .share-links .share-item.facebook i{background-color:#3b5998;color:#fff}.share-modal .share-links .share-item.facebook span{color:#3b5998}.share-modal .share-links .share-item.facebook:hover i{background-color:#4c70ba}.share-modal .share-links .share-item.twitter i{background-color:#1da1f2;color:#fff}.share-modal .share-links .share-item.twitter span{color:#1da1f2}.share-modal .share-links .share-item.twitter:hover i{background-color:#4db5f5}.share-modal .share-links .share-item.whatsapp i{background-color:#25d366;color:#fff}.share-modal .share-links .share-item.whatsapp span{color:#25d366}.share-modal .share-links .share-item.whatsapp:hover i{background-color:#4be083}.share-modal .share-links .share-item.email i{background-color:#dd4f42;color:#fff}.share-modal .share-links .share-item.email span{color:#dd4f42}.share-modal .share-links .share-item.email:hover i{background-color:#e5776d}.move-folders{display:flex;flex-direction:column;align-items:flex-start;max-height:300px;overflow-y:auto;border:1px solid #ddd;border-radius:4px;padding:10px}.move-folders-wrap button{margin:20px auto 0;padding:10px 20px}.move-folders-wrap button .igd-spinner{margin-left:10px}.move-folders,.move-folders *{box-sizing:border-box}.move-folders::-webkit-scrollbar{width:5px}.move-folders::-webkit-scrollbar-track{background:#f1f1f1}.move-folders::-webkit-scrollbar-thumb{background:#999;border-radius:5px}.move-folders .move-folder{display:flex;align-items:center;justify-content:flex-start;text-align:right;width:100%;cursor:pointer;padding:7px 0;border-radius:3px}.move-folders .move-folder>.igd-spinner{margin-right:10px}.move-folders .move-folder-wrap{width:100%;padding-right:20px;text-align:right}.move-folders .move-folder-wrap.empty{margin:10px 0;padding-right:30px;display:flex;align-items:center;color:#c73e1d;font-size:.875rem}.move-folders .move-folder-wrap.empty i{margin-left:5px}.move-folders .move-folder i{margin-left:10px}.move-folders .move-folder img{width:22px;height:22px;margin-left:10px}.move-folders .move-folder .file-item-checkbox .box{border-color:#999}.move-folders .move-folder span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.move-folders .move-folder:hover{background-color:#f5f5f5}.move-folders .move-folder:hover:has(.file-item-checkbox) img{display:none}.move-folders .move-folder:hover:has(.file-item-checkbox) .file-item-checkbox{display:flex;padding:0;border:1px solid #fff;margin-left:10px}.move-folders .move-folder.active{background-color:var(--color-primary-lighter)}.move-folders .move-folder.active img{display:none}.move-folders .move-folder.active .file-item-checkbox{display:flex;padding:0;border:1px solid #fff;margin-left:10px}.igd-download-popup{z-index:999999!important}.igd-download-wrap #igd-download-status{font-size:1.3rem;font-weight:600;margin:15px auto 5px}.igd-download-wrap #igd-hidden-download{display:none}.igd-copy-swal,.igd-move-swal{z-index:99999}.react-contexify{position:fixed;opacity:0;-webkit-user-select:none;-moz-user-select:none;user-select:none;background-color:#fff;box-sizing:border-box;box-shadow:0 10px 30px -5px rgba(0,0,0,.3);border-radius:6px;min-width:200px}.context-submenu{width:100%}.react-contexify__submenu--is-open,.react-contexify__submenu--is-open>.react-contexify__item__content{color:#fff;background-color:#4393e6}.react-contexify__submenu--is-open>.react-contexify__submenu{pointer-events:initial;opacity:1}.react-contexify .react-contexify__submenu{position:absolute;top:-6px;pointer-events:none;transition:opacity 275ms}.react-contexify__submenu-arrow{margin-right:auto;font-size:12px}.react-contexify__submenu-arrow i{margin-left:0!important}.react-contexify__separator{width:100%;height:1px;cursor:default;margin:4px 0;background-color:rgba(0,0,0,.2)}.react-contexify__will-leave--disabled{pointer-events:none}.react-contexify__item{cursor:pointer;position:relative}.react-contexify__item:focus{outline:0}.react-contexify__item:not(.react-contexify__item--disabled):hover>.react-contexify__submenu{pointer-events:initial;opacity:1}.react-contexify__item--disabled{cursor:default;opacity:.5}.react-contexify__item__content{display:flex;align-items:center;white-space:nowrap;color:#333;position:relative;width:100%}.react-contexify__theme--dark{background-color:rgba(40,40,40,.98)}.react-contexify__theme--dark .react-contexify__submenu{background-color:rgba(40,40,40,.98)}.react-contexify__theme--dark .react-contexify__separator{background-color:#eee}.react-contexify__theme--dark .react-contexify__item__content{color:#fff}.react-contexify__theme--light .react-contexify__separator{background-color:#eee}.react-contexify__theme--light .react-contexify__submenu--is-open,.react-contexify__theme--light .react-contexify__submenu--is-open>.react-contexify__item__content{color:#4393e6;background-color:#e0eefd}.react-contexify__theme--light .react-contexify__item:not(.react-contexify__item--disabled):focus>.react-contexify__item__content,.react-contexify__theme--light .react-contexify__item:not(.react-contexify__item--disabled):hover>.react-contexify__item__content{color:#4393e6;background-color:#e0eefd}.react-contexify__theme--light .react-contexify__item__content{color:#666}@keyframes react-contexify__scaleIn{from{opacity:0;transform:scale3d(.3,.3,.3)}to{opacity:1}}@keyframes react-contexify__scaleOut{from{opacity:1}to{opacity:0;transform:scale3d(.3,.3,.3)}}.react-contexify__will-enter--scale{transform-origin:top right;animation:react-contexify__scaleIn .3s}.react-contexify__will-leave--scale{transform-origin:top right;animation:react-contexify__scaleOut .3s}@keyframes react-contexify__fadeIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes react-contexify__fadeOut{from{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(10px)}}.react-contexify__will-enter--fade{animation:react-contexify__fadeIn .3s ease}.react-contexify__will-leave--fade{animation:react-contexify__fadeOut .3s ease}@keyframes react-contexify__flipInX{from{transform:perspective(800px) rotate3d(-1,0,0,-45deg)}to{transform:perspective(800px)}}@keyframes react-contexify__flipOutX{from{transform:perspective(800px)}to{transform:perspective(800px) rotate3d(-1,0,0,-45deg);opacity:0}}.react-contexify__will-enter--flip{backface-visibility:visible!important;transform-origin:top center;animation:react-contexify__flipInX .3s}.react-contexify__will-leave--flip{transform-origin:top center;animation:react-contexify__flipOutX .3s;backface-visibility:visible!important}@keyframes swing-in-top-fwd{0%{transform:rotateX(-100deg);transform-origin:top;opacity:0}100%{transform:rotateX(0);transform-origin:top;opacity:1}}@keyframes react-contexify__slideIn{from{opacity:0;transform:scale3d(1,.3,1)}to{opacity:1}}@keyframes react-contexify__slideOut{from{opacity:1}to{opacity:0;transform:scale3d(1,.3,1)}}.react-contexify__will-enter--slide{transform-origin:top center;animation:react-contexify__slideIn .3s}.react-contexify__will-leave--slide{transform-origin:top center;animation:react-contexify__slideOut .3s}.igd-shortcode-gallery .igd-file-browser-header .photo-proofing-btn .selection-count{margin-right:3px}.igd-module-gallery{overflow:hidden}.igd-module-gallery .item-selection{position:absolute;z-index:9;top:5px;right:5px;cursor:pointer;display:none}.igd-module-gallery .item-selection circle{display:none}.igd-module-gallery .item-selection:hover svg{fill:#fff}.igd-module-gallery .file-list{overflow:hidden}.igd-module-gallery .file-list .file-item{position:relative;border-radius:0}.igd-module-gallery .file-list .file-item .igd-gallery-folder-images{transition:all .3s ease-in-out}.igd-module-gallery .file-list .file-item:hover{transform:none}.igd-module-gallery .file-list .file-item:hover .item-selection{display:block}.igd-module-gallery .file-list .file-item:hover .igd-gallery-folder-images{transition:all .3s ease-in-out;transform:scale(1.07);box-shadow:0 0 0 1px #ddd}.igd-module-gallery .file-list .file-item.active{transform:none}.igd-module-gallery .file-list .file-item.active .item-selection{display:block}.igd-module-gallery .file-list .file-item.active .item-selection svg{fill:#4285f4}.igd-module-gallery .file-list .file-item.active .igd-gallery-folder-images{transition:all .3s ease-in-out;transform:scale(1.07);box-shadow:0 0 0 1px #ddd}.igd-module-gallery .file-list .file-item .file-item-footer{font-size:1rem}.igd-module-gallery .file-list .file-item:not(.folder-item){max-width:100%}.igd-module-gallery .file-list .file-item:not(.folder-item) .file-item-footer{background:rgba(0,0,0,.5)!important;color:#fff!important;padding:15px 10px!important;position:absolute;bottom:0;right:0;width:100%;justify-content:center;border:none!important}.igd-module-gallery .file-list .file-item:not(.folder-item) .file-item-footer i{margin-left:5px}.igd-module-gallery .file-list .file-item:not(.folder-item) .file-item-footer img{background:rgba(255,255,255,.9);padding:0 2px;border-radius:3px;box-sizing:content-box}.igd-module-gallery .file-list .file-item:not(.folder-item) .file-item-footer span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-module-gallery .file-list .file-item:last-child{margin-left:auto!important}.igd-module-gallery .igd-gallery-folder-images{position:relative;width:100%;height:100%;overflow:hidden;display:flex;align-items:center;justify-content:center}.igd-module-gallery .igd-gallery-folder-images img{position:absolute;-webkit-user-drag:none;opacity:0;pointer-events:none;animation-name:image-fade-out;animation-duration:1.5s}.igd-module-gallery .igd-gallery-folder-images img.active{animation-name:image-fade;animation-duration:1.5s;opacity:1}.igd-module-gallery .igd-gallery-folder-images img:not([src*=drive-thirdparty]){width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.igd-module-gallery .igd-gallery-folder-images i{height:auto;width:auto;font-size:3.5rem;color:#555}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item{overflow:hidden;position:relative;cursor:pointer}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item img{transition:all .3s ease-in-out;-o-object-fit:cover;object-fit:cover;width:100%;height:100%}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item-overlay{position:absolute;top:0;right:0;width:100%;height:100%;background:rgba(0,0,0,.5);transition:all .3s ease-in-out;color:#fff;display:flex;align-items:center;justify-content:center;flex-direction:column;opacity:0;pointer-events:none;text-align:center;padding:15px}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item-overlay .overlay-title{font-weight:600;margin-bottom:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item-overlay .overlay-size{font-size:13px}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item:hover .item-selection{display:block}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item:hover .igd-gallery-item-overlay{opacity:1;pointer-events:all}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item:hover img{box-shadow:0 0 0 1px #ddd;transition:all .3s ease-in-out;transform:scale(1.07)}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item.active .item-selection{display:block}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item.active .item-selection svg{fill:#4285f4}.igd-module-gallery.gallery-view-rounded .file-list .file-item{border-radius:5px}.igd-module-gallery.gallery-view-rounded .react-photo-gallery--gallery .igd-gallery-item{border-radius:7px}.igd-module-gallery.gallery-layout-grid .file-list .file-item{width:var(--column-width)}.igd-module-gallery.gallery-layout-grid .file-list .file-item:not(.folder-item){aspect-ratio:var(--aspect-ratio)}.igd-module-gallery.gallery-layout-grid .react-photo-gallery--gallery .igd-gallery-item{width:var(--column-width);aspect-ratio:var(--aspect-ratio)}.igd-module-gallery.gallery-layout-masonry .file-list .file-item{width:var(--column-width)}.igd-module-gallery.gallery-layout-masonry .file-list .file-item:not(.folder-item){aspect-ratio:var(--aspect-ratio)}@keyframes image-fade{from{opacity:.4}to{opacity:1}}@keyframes image-fade-out{from{opacity:1}to{opacity:0}}.igd-module-uploader,.igd-module-uploader *{box-sizing:border-box}.igd-module-uploader .dashicons-cloud-upload{width:auto;height:auto}.igd-module-uploader.igd-form-uploader{margin-top:1rem!important}.igd-module-uploader .upload-confirmation{display:none!important;margin:20px 0;text-align:center;flex-direction:column;align-items:center}.igd-module-uploader .upload-confirmation h3{color:var(--color-primary)}.igd-module-uploader.show-confirmation{border-style:solid!important}.igd-module-uploader.show-confirmation .upload-confirmation{display:flex!important}.igd-module-uploader.show-confirmation .igd-file-uploader-inner{display:none!important}.igd-file-uploader{display:flex;align-items:center;justify-content:center;flex-direction:column;border-radius:10px!important;border:1px dashed var(--color-primary-light)!important;padding:3px!important;max-width:500px;width:100%!important;background:#fff!important}.igd-file-uploader *{box-sizing:border-box}.igd-file-uploader:not(.igd-form-uploader){margin:auto}.igd-file-uploader.drag-active{border-color:var(--color-primary);border-width:2px;background-color:#bfdbfe;box-shadow:rgba(149,157,165,.2) 0 8px 24px}.igd-file-uploader.drag-active *{pointer-events:none}.igd-file-uploader-body{display:flex;align-items:center;flex-direction:column;width:100%!important;-webkit-user-select:none;-moz-user-select:none;user-select:none}.igd-file-uploader-body h3{font-size:1.2rem;font-weight:600;margin-bottom:10px!important}.igd-file-uploader-body .max-size-label{font-size:.875rem;margin-top:1rem;color:#999}.igd-file-uploader .igd-file-uploader-inner{display:flex!important;align-items:center!important;flex-direction:column!important;border-radius:7px!important;padding:1rem!important;background-color:var(--color-primary-lighter)!important;justify-content:center;width:100%!important;border:1px dashed #ddd!important}.igd-file-uploader .igd-file-uploader-inner p{font-weight:400;margin:5px 0!important;color:#555;line-height:1}.igd-file-uploader .igd-file-uploader-inner .dashicons-cloud-upload{font-size:4rem;height:auto;width:auto;margin-bottom:1rem;line-height:1;color:#555}.igd-file-uploader .igd-file-uploader-inner .igd-file-uploader-buttons{display:flex}.igd-file-uploader .igd-file-uploader-inner .igd-file-uploader-buttons button{display:flex;align-items:center;white-space:nowrap;cursor:pointer;border-radius:.25rem;border:none;padding:.375rem .5rem;margin:.5rem;background-color:var(--color-primary);box-shadow:rgba(149,157,165,.2) 0 8px 24px;color:#fff;transition:all .2s ease-in-out;font-weight:400}.igd-file-uploader .igd-file-uploader-inner .igd-file-uploader-buttons button span{margin-right:5px}.igd-file-uploader .igd-file-uploader-inner .igd-file-uploader-buttons button:hover{background-color:var(--color-primary-light-alt)}.igd-file-uploader .igd-file-uploader-inner .upload-info{display:flex;align-items:center;line-height:1}.igd-file-uploader .igd-file-uploader-inner .upload-info span{margin-left:5px}.igd-file-uploader .igd-file-uploader-inner .upload-info span:after{content:"|";margin-right:5px;color:#000}.igd-file-uploader .igd-file-uploader-inner .upload-info span:last-child{margin-left:0}.igd-file-uploader .igd-file-uploader-inner .upload-info span:last-child:after{content:"";margin-right:0}.igd-file-uploader .igd-file-uploader-inner .igd-file-uploader-add-more{margin-top:15px}.igd-file-uploader.required-error{border-color:red}.igd-file-uploader .file-list-wrapper{display:flex;flex-direction:column;z-index:50;margin-top:5px!important;width:100%!important;max-height:400px;max-width:100%;overflow:hidden!important;background-color:#fff!important;box-shadow:rgba(149,157,165,.2) 0 8px 24px!important;bottom:1rem;left:1rem}.igd-file-uploader .file-list-wrapper.fixed{position:fixed}.igd-file-uploader .file-list-wrapper .start-upload{margin:10px auto}@media (max-width:991px){.igd-file-uploader .file-list-wrapper{max-width:300px;max-height:300px;left:0}}.igd-file-uploader .file-list{display:flex;flex-flow:column;flex-wrap:nowrap!important;overflow-y:auto!important}.igd-file-uploader .file-list-header{display:flex;align-items:center;padding:10px 15px!important;background-color:var(--color-primary)!important;color:#fff;line-height:1;border-radius:5px;margin-bottom:5px}.igd-file-uploader .file-list-header .file-count{margin-left:5px}.igd-file-uploader .file-list-header i{cursor:pointer;height:26px!important;width:26px!important;border:1px solid!important;border-radius:50%!important;font-size:22px!important;display:flex;align-items:center;justify-content:center}.igd-file-uploader .file-list-item{display:flex;align-items:center;padding:8px 12px!important;border-bottom:1px solid #eaeaea!important;width:100%!important;opacity:.5}.igd-file-uploader .file-list-item img{width:22px!important;height:22px!important;margin-left:5px!important}.igd-file-uploader .file-list-item .file-info{display:flex;flex-wrap:wrap;overflow:hidden;width:100%;line-height:1}.igd-file-uploader .file-list-item .file-info .upload-item{display:flex;align-items:center;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;flex:1}.igd-file-uploader .file-list-item .file-info .upload-item-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;margin-left:4px}.igd-file-uploader .file-list-item .file-info .upload-item-size{font-size:.75rem;color:#999}.igd-file-uploader .file-list-item .file-info-percentage{margin-right:auto;text-align:left;font-size:.875rem;display:flex;align-items:center;width:-moz-max-content;width:max-content}.igd-file-uploader .file-list-item .file-info-percentage .igd-spinner{margin-top:0;margin-left:5px;border-radius:50%}.igd-file-uploader .file-list-item .file-info-progress{width:100%;height:4px;background-color:#ddd;border-radius:.25rem;margin-top:7px;overflow:hidden;position:relative;align-items:center;justify-content:space-between;display:none}.igd-file-uploader .file-list-item .file-info-progress-bar{width:var(--percentage);height:100%;background-color:var(--color-primary-light-alt);border-radius:.25rem;position:absolute;right:0;top:0;transition:width .5s ease-in-out}.igd-file-uploader .file-list-item .file-info-error{color:red;width:100%;font-size:.75rem;margin-top:3px}.igd-file-uploader .file-list-item .file-info .igd-spinner{width:20px;margin-right:7px}.igd-file-uploader .file-list-item .file-info .percentage{margin:0 7px}.igd-file-uploader .file-list-item .file-info i{margin-right:7px;height:22px!important;width:22px!important;font-size:16px;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer}.igd-file-uploader .file-list-item .file-info i:not(.dashicons-saved,.dashicons-no-alt){border:1px solid #ddd}.igd-file-uploader .file-list-item .file-info .dashicons-controls-play{padding-right:3px}.igd-file-uploader .file-list-item .file-info .remove-file{background:#ff9f10;color:#fff;margin-right:10px}.igd-file-uploader .file-list-item:hover{background-color:#e0f2fe}.igd-file-uploader .file-list-item.uploaded{opacity:1}.igd-file-uploader .file-list-item.uploaded .file-info .dashicons-saved{background:var(--color-primary);color:#fff}.igd-file-uploader .file-list-item.uploaded .file-info .remove-file{background:100% 0;color:#ff9f10;border:1px solid #ff9f10;opacity:.6}.igd-file-uploader .file-list-item.uploaded .file-info .remove-file:hover{background:#ff9f10;color:#fff;opacity:1}.igd-file-uploader .file-list-item.uploaded .file-info-progress{display:flex}.igd-file-uploader .file-list-item.uploaded .file-info-progress-bar{width:100%}.igd-file-uploader .file-list-item.active{opacity:.8}.igd-file-uploader .file-list-item.active .file-info-progress{display:flex}.igd-file-uploader .file-list::-webkit-scrollbar{width:5px}.igd-file-uploader .file-list::-webkit-scrollbar-track{background:#f1f1f1}.igd-file-uploader .file-list::-webkit-scrollbar-thumb{background:#ccc}.igd-file-uploader .file-list::-webkit-scrollbar-thumb:hover{background:#bbb}.igd-file-uploader .cancel-upload{position:absolute;top:15px;left:15px;cursor:pointer;border-radius:5px;height:40px;width:40px;font-size:25px;display:flex;align-items:center;justify-content:center;color:rgba(255,0,0,.3)}.igd-file-uploader .cancel-upload:hover{color:rgba(255,0,0,.5)}.igd-file-browser .igd-file-uploader{position:fixed!important;left:15px;bottom:15px;z-index:2;box-shadow:0 0 10px rgba(0,0,0,.2)}.igd-file-browser .igd-file-uploader:has(.file-list-wrapper) .igd-file-uploader-inner .dashicons-cloud-upload{display:none}@media (max-width:767px){.igd-file-browser .igd-file-uploader{position:absolute!important;height:100%;left:unset;bottom:unset;width:calc(100% - 20px)!important;justify-content:flex-start;background:rgba(0,0,0,.5)!important}.igd-file-browser .igd-file-uploader .igd-file-uploader-inner{background:linear-gradient(var(--color-primary-lighter),var(--color-primary-lighter)),#fff!important}}.ff-el-is-error .igd-file-uploader,.frm_blank_field .igd-file-uploader,.gfield_error .igd-file-uploader,.mf-input-wrapper.has-error .igd-file-uploader,.nf-error .igd-file-uploader,.wpforms-has-error .igd-file-uploader{border-color:red!important}@keyframes ssc-loading{from{transform:translateX(100%)}to{transform:translateX(-100%)}}.ssc-circle,.ssc-head-line,.ssc-line,.ssc-square{position:relative;overflow:hidden}.ssc-circle:after,.ssc-head-line:after,.ssc-line:after,.ssc-square:after{content:"";animation:ssc-loading 1.3s infinite;height:100%;right:0;position:absolute;left:0;top:0;transform:translateX(100%);z-index:1;background:linear-gradient(-90deg,transparent,rgba(255,255,255,.3),transparent)}.ssc{cursor:progress;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ssc-card{display:block;width:100%;border-radius:5px;box-shadow:0 2px 4px 1px rgba(0,0,0,.17);background-color:#fff;margin-bottom:15px}.ssc-circle{display:block;background-color:rgba(0,0,0,.17);border-radius:50%;width:30px;height:30px}.ssc-hr{display:block;width:100%;background-color:rgba(0,0,0,.17);height:2px}.ssc-line{display:block;background-color:rgba(0,0,0,.17);border-radius:15px;height:12px}.ssc-line:last-child{margin-bottom:unset}.ssc-head-line{display:block;background-color:rgba(0,0,0,.17);border-radius:15px;width:100%;height:24px}.ssc-square{display:block;background-color:rgba(0,0,0,.17);width:100%;height:100px;border-radius:5px}.flex{display:flex}.flex-1{flex:1}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-between{justify-content:space-between}.w-full{width:100%}.mb-3{margin-bottom:.875rem}.mr-2{margin-left:.5rem}.w-16{width:4rem}.w-6{width:1.5rem}.h-6{height:1.5rem}.p-4{padding:1rem}body.google-drive_page_integrate-google-drive-private-folders.swal2-shown{overflow:auto!important;padding-left:0!important}.igd-private-folders,.igd-private-folders *{box-sizing:border-box}.igd-private-folders-header{display:flex;width:calc(100% + 20px);margin-right:-20px;background:#fff;padding:20px 20px;position:sticky;top:32px;border-bottom:1px solid #ddd;box-shadow:0 1px 5px rgba(0,0,0,.1);z-index:99;margin-bottom:30px}.igd-private-folders-header .header-title{display:flex;align-items:center;line-height:1;margin-left:auto}.igd-private-folders-header .header-title img{margin-left:15px}.igd-private-folders-header .header-title-text{display:flex;flex-direction:column}.igd-private-folders-header .header-title-text h3{font-size:1.2rem;margin:0 0 5px 0}.igd-private-folders-header .header-title-text span{margin-top:2px;color:#7a7a7a}.igd-private-folders-header .igd-btn{margin-right:10px}@media (max-width:767px){.igd-private-folders-header{position:relative;top:0}}.igd-private-folders .private-folders-list{background:#fff;padding:20px;border-radius:10px;margin:10px 0 30px 15px;position:relative;min-height:70vh}.igd-private-folders .private-folders-list-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.igd-private-folders .private-folders-list-header ul{display:flex;align-items:center}.igd-private-folders .private-folders-list-header ul li{margin-left:5px;margin-bottom:0;cursor:pointer;color:#2fb44b;font-weight:600;font-size:.875rem}.igd-private-folders .private-folders-list-header ul li:not(:last-child):after{content:"|";margin:0 5px;color:#555}.igd-private-folders .private-folders-list-header ul li span{text-transform:capitalize}.igd-private-folders .private-folders-list-header ul li.active{color:#555c66}.igd-private-folders .private-folders-list-header ul li:hover{color:#248c3a}.igd-private-folders .private-folders-list-header .users-search{display:flex;align-items:center}.igd-private-folders .private-folders-list-header .users-search input{height:40px;border:1px solid rgba(47,180,75,.5)}.igd-private-folders .private-folders-list-header .users-search button{margin-right:10px}.igd-private-folders .private-folders-list .swal2-container{position:absolute;width:100%;height:100%;z-index:9}.igd-private-folders .private-folders-list .column-username span{margin-right:10px}.igd-private-folders .private-folders-list .column-actions button{display:inline-flex;align-items:center;padding:7px 10px;line-height:1}.igd-private-folders .private-folders-list .column-actions button i{margin-left:5px}.igd-private-folders .private-folders-list .column-folders .folder-item{display:inline-flex;align-items:center;border:1px solid rgba(47,180,75,.5);width:-moz-max-content;width:max-content;padding:5px;margin:3px;border-radius:5px;color:#7a7a7a}.igd-private-folders .private-folders-list .column-folders .folder-item img{margin-left:5px}.igd-private-folders .private-folders-list .private-folders-table{border-radius:10px;overflow:hidden;border-color:#efefef}.igd-private-folders .private-folders-list .private-folders-table thead th{padding:15px;border-color:#efefef}.igd-private-folders .private-folders-list .private-folders-table tbody tr td{padding:10px;vertical-align:middle}@media (max-width:767px){.igd-private-folders .private-folders-list{margin-right:10px}.igd-private-folders .private-folders-list-header{flex-direction:column}.igd-private-folders .private-folders-list .private-folders-table-wrap{overflow-x:auto}}.igd-private-folders .igd-pro-modal-wrap{position:absolute;z-index:9;border-radius:5px}.igd-private-folders .igd-pro-modal-close{display:none}.igd-details .details-file-name{width:calc(100% - 20px)}.igd-player{line-height:1.5;display:flex;align-items:flex-start;flex-direction:column;height:100%;background-color:#fff}.igd-player.playlist-left,.igd-player.playlist-right{padding:10px}.igd-player.playlist-left .media-wrap,.igd-player.playlist-right .media-wrap{flex-direction:column;align-items:flex-start;border:none}.igd-player.playlist-left .media-wrap .igd-player-media-wrap,.igd-player.playlist-right .media-wrap .igd-player-media-wrap{margin-top:10px;margin-right:0}.igd-player.playlist-left .igd-player-playlist .playlist-item-wrap,.igd-player.playlist-right .igd-player-playlist .playlist-item-wrap{padding:5px 0}.igd-player.playlist-left.type-audio .media-wrap,.igd-player.playlist-right.type-audio .media-wrap{border:1px solid #eee}.igd-player.playlist-left{flex-wrap:wrap;flex-direction:row;-moz-column-gap:10px;column-gap:10px}.igd-player.playlist-left .igd-player-playlist{width:calc(40% - 10px);order:1;margin:0;padding-left:10px;border-left:1px solid #eee}.igd-player.playlist-left .playlist-search{margin:0}.igd-player.playlist-left .media-wrap{flex:1;order:2;position:sticky;top:10px;z-index:9}.igd-player.playlist-left:has(.igd-player-playlist) .media-wrap{max-width:60%}.igd-player.playlist-right{flex-wrap:wrap;flex-direction:row;-moz-column-gap:10px;column-gap:10px;padding-left:5px}.igd-player.playlist-right .igd-player-playlist{width:calc(40% - 10px);order:2;margin:0;padding-right:10px;border-right:1px solid #eee;padding-left:5px}.igd-player.playlist-right .playlist-search{margin:0}.igd-player.playlist-right .media-wrap{flex:1;order:1;position:sticky;top:10px;z-index:9}.igd-player.playlist-right:has(.igd-player-playlist) .media-wrap{max-width:60%}.igd-player.playlist-bottom .playlist-search{width:calc(100% - 20px);margin:10px auto}.igd-player .media-wrap{width:100%;display:flex;align-items:center}.igd-player .media-wrap .current-item{display:flex;align-items:center;overflow:hidden}.igd-player .media-wrap .current-item img{margin-left:10px;width:40px}.igd-player .media-wrap .current-item .item-caption{display:flex;flex-direction:column;overflow:hidden}.igd-player .media-wrap .current-item .item-caption .item-title{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-player .media-wrap .current-item .item-caption .item-description{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-player .media-wrap .igd-player-media-wrap{position:relative}.igd-player .media-wrap iframe{aspect-ratio:16/9}.igd-player.type-video .igd-player-media-wrap{width:100%;height:0;overflow:hidden;padding-bottom:56.25%}.igd-player.type-video .igd-player-media-wrap .igd-player-media-video,.igd-player.type-video .igd-player-media-wrap .plyr,.igd-player.type-video .igd-player-media-wrap video{position:absolute;top:0;right:0;width:100%!important;height:100%!important}.igd-player.type-audio .media-wrap{padding:15px;border-bottom:1px solid #ddd;background:#f5f5f5}.igd-player.type-audio .igd-player-media-wrap{margin-right:auto}.igd-player.type-audio .igd-player-media-wrap .plyr__controls{padding:0;background:100% 0}.igd-player .igd-player-playlist{width:100%;height:100%;overflow-y:auto}.igd-player .igd-player-playlist .playlist-item{position:relative;cursor:pointer;display:flex;align-items:center;color:#333;padding:3px}.igd-player .igd-player-playlist .playlist-item.active{color:var(--color-primary);font-weight:700}.igd-player .igd-player-playlist .playlist-item.active .dashicons{border-color:var(--color-primary);color:var(--color-primary)}.igd-player .igd-player-playlist .playlist-item:not(:has(img)){padding:5px}.igd-player .igd-player-playlist .playlist-item-wrap{border-bottom:1px solid #eee;padding:5px 10px}.igd-player .igd-player-playlist .playlist-item-wrap:last-child{border-bottom:0}.igd-player .igd-player-playlist .playlist-item-wrap .sub-item{margin-right:30px}.igd-player .igd-player-playlist .playlist-item-wrap:hover{background-color:#f5f5f5}.igd-player .igd-player-playlist .playlist-item .item-index{margin-left:7px;white-space:nowrap}.igd-player .igd-player-playlist .playlist-item .igd-spinner{margin-right:0;width:18px;height:18px;margin-left:5px}.igd-player .igd-player-playlist .playlist-item img{width:30px;height:30px;-o-object-fit:cover;object-fit:cover;border-radius:3px;margin-left:5px}.igd-player .igd-player-playlist .playlist-item .item-name{margin-left:auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-player .igd-player-playlist .playlist-item .item-size{margin:0 10px;color:#777;white-space:nowrap;font-size:.75rem}.igd-player .igd-player-playlist .playlist-item .dashicons{font-size:25px;color:#555c66;height:auto;width:auto}.igd-player .igd-player-playlist .playlist-item .dashicons.dashicons-arrow-down,.igd-player .igd-player-playlist .playlist-item .dashicons.dashicons-arrow-right{margin-right:-5px;margin-left:5px}.igd-player .igd-player-playlist .playlist-item .dashicons:hover{color:#444;border-color:var(--color-primary)}.igd-player .igd-player-playlist .playlist-item:last-child{border-bottom:0}.igd-player .igd-player-playlist .search-result-info{display:flex;align-items:center;margin-bottom:7px;margin-top:7px}.igd-player .igd-player-playlist .search-result-info .clear-button{margin-right:7px;padding:7px 10px}.igd-player .igd-player-playlist::-webkit-scrollbar{width:5px;height:5px}.igd-player .igd-player-playlist::-webkit-scrollbar-thumb{background:#ddd;border-radius:10px}.igd-player .igd-player-playlist::-webkit-scrollbar-track{background:#eee;border-radius:10px}.igd-player .playlist-search{position:relative;display:flex;align-items:center;transition:width .3s linear;line-height:1;overflow:hidden;border:1px solid #ddd;border-radius:5px;width:100%;padding:0 15px;margin:10px 0}.igd-player .playlist-search .search-dismiss{cursor:pointer}.igd-player .playlist-search input{height:40px;padding:0 15px;font-size:14px;width:100%;border:none!important;box-shadow:none!important;border-radius:0!important;background:100% 0}.igd-player .playlist-search input:focus{outline:0}.igd-player .playlist-search .search-submit{position:relative;z-index:2}.igd-player .playlist-search .search-submit .dashicons{font-family:dashicons}.igd-player .playlist-search:has(input:focus){box-shadow:rgba(0,0,0,.24) 0 3px 8px}.igd-player .playlist-search.active .input-wrap{left:-10px}.igd-player .playlist-search.active .search-submit svg{fill:#333}.igd-player video{display:inline-block;max-width:100%;min-height:100%}.igd-player audio{display:none;max-width:100%;width:100%}.igd-player .plyr__controls .plyr__controls__item.plyr__time{white-space:nowrap}.igd-player .plyr__control:focus{background:100% 0;color:currentColor}.igd-player .plyr__volume input[type=range]{max-width:60px}.igd-player.size-sm.type-audio .media-wrap,.igd-player.size-xs.type-audio .media-wrap{flex-direction:column}.igd-player.size-sm.type-audio .media-wrap .current-item img,.igd-player.size-xs.type-audio .media-wrap .current-item img{width:30px}.igd-player.size-sm.type-audio .media-wrap .igd-player-media-wrap,.igd-player.size-xs.type-audio .media-wrap .igd-player-media-wrap{margin-top:15px;margin-right:0}.igd-player.size-sm .plyr__volume input[type=range],.igd-player.size-xs .plyr__volume input[type=range]{max-width:40px;min-width:40px}.igd-player.size-sm.playlist-left,.igd-player.size-sm.playlist-right,.igd-player.size-xs.playlist-left,.igd-player.size-xs.playlist-right{flex-direction:column}.igd-player.size-sm.playlist-left .igd-player-playlist,.igd-player.size-sm.playlist-left .media-wrap,.igd-player.size-sm.playlist-right .igd-player-playlist,.igd-player.size-sm.playlist-right .media-wrap,.igd-player.size-xs.playlist-left .igd-player-playlist,.igd-player.size-xs.playlist-left .media-wrap,.igd-player.size-xs.playlist-right .igd-player-playlist,.igd-player.size-xs.playlist-right .media-wrap{width:100%;max-width:100%!important}.igd-player.size-sm.playlist-left .media-wrap,.igd-player.size-sm.playlist-right .media-wrap,.igd-player.size-xs.playlist-left .media-wrap,.igd-player.size-xs.playlist-right .media-wrap{position:unset}.igd-player.size-sm.playlist-left .igd-player-playlist,.igd-player.size-sm.playlist-right .igd-player-playlist,.igd-player.size-xs.playlist-left .igd-player-playlist,.igd-player.size-xs.playlist-right .igd-player-playlist{order:999}.igd-lightbox{z-index:999999;position:fixed}.igd-lightbox .lg-backdrop{background:rgba(0,0,0,.9)!important}.igd-lightbox .lg-sub-html h4,.igd-lightbox .lg-sub-html p{color:inherit}.igd-lightbox:not(.gallery-lightbox) .lg-sub-html{background:#111!important;display:flex;align-items:center;padding:10px 15px;max-width:calc(100% - 100px)}.igd-lightbox .lg-outer .lg-thumb-item{height:60px}.igd-lightbox .item-name{display:flex;align-items:center;max-width:75%;overflow:hidden}.igd-lightbox .item-name img{margin-left:10px;width:24px}.igd-lightbox .item-name span{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.igd-lightbox.no-download .lg-download{display:none}.igd-lightbox .lg-outer[data-lg-slide-type=iframe] .lg-actual-size,.igd-lightbox .lg-outer[data-lg-slide-type=iframe] .lg-zoom-in,.igd-lightbox .lg-outer[data-lg-slide-type=iframe] .lg-zoom-out,.igd-lightbox .lg-outer[data-lg-slide-type=video] .lg-actual-size,.igd-lightbox .lg-outer[data-lg-slide-type=video] .lg-zoom-in,.igd-lightbox .lg-outer[data-lg-slide-type=video] .lg-zoom-out{display:none}.igd-lightbox .lg-outer[data-lg-slide-type=iframe] .igd-hidepopout{width:60px;height:55px;position:absolute;opacity:1;left:12px;top:0;z-index:10000000;background-color:#d1d1d1;cursor:default!important}.igd-lightbox .lg-item:has(video>source[type*="audio/"]) .lg-video-cont{margin-top:-60px;max-height:60px;max-width:500px}.igd-lightbox .lg-item:has(video>source[type*="audio/"]) .lg-video-cont .lg-video-poster{margin-top:-20px;max-width:100px!important;height:100px!important;max-height:none!important}@media (max-width:767px){.igd-lightbox .lg-item .lg-video-cont{max-width:90%!important}}.igd-select-files-modal .components-modal__header{border-bottom:1px solid #ddd;box-shadow:0 1px 5px rgba(0,0,0,.1)}.igd-select-files-modal .components-modal__header-heading{width:100%}.igd-select-files-modal .shortcode-module-header{display:flex;flex-direction:column;justify-content:center;align-items:center;margin:30px auto}.igd-select-files-modal .shortcode-module-header .module-title{font-size:1.2rem;margin-bottom:10px;font-weight:600}.igd-select-files-modal .shortcode-module .shortcode-types{display:flex;flex-wrap:wrap;justify-content:center}.igd-select-files-modal .shortcode-module .shortcode-types .shortcode-type{width:calc(20% - 20px);margin:10px;padding:2rem 1.5rem;border:1px solid #ddd;border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;max-width:250px;transition:background .3s ease}.igd-select-files-modal .shortcode-module .shortcode-types .shortcode-type i{height:auto;width:auto;border-radius:50%;padding:15px;border:1px solid #ddd}.igd-select-files-modal .shortcode-module .shortcode-types .shortcode-type span{font-size:1rem;margin-top:15px}.igd-select-files-modal .shortcode-module .shortcode-types .shortcode-type.active{background:var(--color-primary-light);border:1px solid var(--color-primary);color:#fff}.igd-select-files-modal .shortcode-module .shortcode-types .shortcode-type.active i{border:1px solid #fff}.igd-select-files-modal .shortcode-module .shortcode-types .shortcode-type:hover{background:var(--color-primary-light);border:1px solid var(--color-primary);color:#fff}.igd-select-files-modal .shortcode-module .shortcode-types .shortcode-type:hover i{border:1px solid #fff}.igd-select-files-modal .shortcode-module .settings-field{display:flex;flex-wrap:wrap;margin-bottom:10px;align-items:center;border:1px dashed #ddd;border-radius:5px;padding:12px 18px}.igd-select-files-modal .shortcode-module .settings-field-title{font-size:1.2rem;margin-bottom:20px;font-weight:600}.igd-select-files-modal .shortcode-module .settings-field-label{width:200px;font-weight:600;font-size:1rem;display:flex;justify-content:space-between}.igd-select-files-modal .shortcode-module .settings-field-label:after{content:":";margin-right:auto}.igd-select-files-modal .shortcode-module .settings-field-content{display:flex;flex-direction:column;align-items:flex-start;margin-right:20px;flex:1}.igd-select-files-modal .shortcode-module .settings-field-content .components-button i{margin-left:5px}.igd-select-files-modal .shortcode-module .settings-field-content .description{font-size:.8rem;margin-top:10px;text-align:right}.igd-select-files-modal .shortcode-module .settings-field.filter-field .filter-field-input{display:flex;flex-direction:column}.igd-select-files-modal .shortcode-module .settings-field.filter-field .filter-field-all{display:flex;align-items:center;justify-content:flex-start;margin-top:15px;flex-wrap:wrap}.igd-select-files-modal .shortcode-module .settings-field.filter-field .filter-field-all>div{display:flex;align-items:center}.igd-select-files-modal .shortcode-module .settings-field.filter-field .filter-field-all>div:first-child{margin-left:20px}.igd-select-files-modal .shortcode-module .settings-field.filter-field .filter-field-all-label{margin-left:10px;font-weight:500}.igd-select-files-modal .shortcode-module .settings-field.filter-field .filter-field-all .description{width:100%;text-align:right}.igd-select-files-modal .shortcode-module .settings-field.sort-field .sort-field-section{display:flex;flex-direction:column}.igd-select-files-modal .shortcode-module .settings-field.sort-field .sort-field-section:first-child{margin-left:35px;padding-left:15px;border-left:1px solid #ddd}.igd-select-files-modal .shortcode-module .settings-field.sort-field .sort-field-section-wrap{display:flex;margin:15px 30px}.igd-select-files-modal .shortcode-module .settings-field.sort-field .sort-field-section-label{margin-bottom:15px;font-weight:500;text-align:right}.igd-select-files-modal .shortcode-module .settings-field.sort-field .sort-field-section .sort-item{display:flex;align-items:center;margin-bottom:10px;cursor:pointer;position:relative}.igd-select-files-modal .shortcode-module .settings-field.sort-field .sort-field-section .sort-item i{display:none;position:absolute;right:-25px}.igd-select-files-modal .shortcode-module .settings-field.sort-field .sort-field-section .sort-item.active{color:var(--color-primary)}.igd-select-files-modal .shortcode-module .settings-field.sort-field .sort-field-section .sort-item.active i{display:block}.igd-select-files-modal .shortcode-module .settings-field.filter-users-field .filter-users-group{display:flex;flex-direction:column}.igd-select-files-modal .shortcode-module .settings-field.filter-users-field .filter-users{margin-top:15px;display:flex;flex-direction:column;border:1px dashed #ddd;padding:15px;border-radius:7px}.igd-select-files-modal .shortcode-module .settings-field.filter-users-field .filter-users-title{font-weight:500;font-size:1rem;margin-bottom:10px;text-align:right}.igd-select-files-modal .shortcode-module .settings-field.filter-users-field .filter-users-section{display:flex;align-items:center}.igd-select-files-modal .shortcode-module .settings-field.filter-users-field .filter-users-section:first-child{margin-left:20px}.igd-select-files-modal .shortcode-module .settings-field.filter-users-field .filter-users-section-label{margin-left:10px;font-weight:500}.igd-select-files-modal .shortcode-module .settings-field.filter-users-field .filter-users-section-wrap{display:flex;flex-wrap:wrap;margin-bottom:15px}.igd-select-files-modal .shortcode-module .settings-field.filter-users-field .filter-users-section-wrap .description{width:100%}.igd-select-files-modal .shortcode-module .settings-field input,.igd-select-files-modal .shortcode-module .settings-field select{height:40px;border-radius:5px;border:1px solid #ddd;font-size:.8rem;width:350px;max-width:100%}.igd-select-files-modal .shortcode-module .settings-field input:disabled,.igd-select-files-modal .shortcode-module .settings-field select:disabled{background:#f5f5f5;color:#aaa;cursor:not-allowed}.igd-select-files-modal .shortcode-module .settings-field .igd-select{width:400px}.igd-select-files-modal-header{display:flex;align-items:center;justify-content:space-between}.igd-select-files-modal-header .header-title{font-size:1.2rem;color:var(--color-primary);display:flex;align-items:center}.igd-select-files-modal-header .header-title i{margin-left:10px}.igd-select-files-modal-header button{padding:7px 8px}.igd-account-item{padding:1rem;display:flex;border:0 solid transparent;box-shadow:rgba(99,99,99,.2) 0 2px 8px 0;border-radius:.5rem;align-items:center;max-width:450px;margin-bottom:1rem;background:#fff}.igd-account-item img{width:50px;height:50px;margin-left:1rem;border-radius:50%}.igd-account-item-info{display:flex;flex-flow:column}.igd-account-item-info .account-name{font-size:1rem}.igd-account-item-info .account-email{color:#757575}.igd-account-item .igd-account-item-action{margin-right:auto}.igd-account-item .igd-account-item-action button{background-color:#ffe9d9;color:#f06500;border-color:transparent}.igd-account-item:hover button{background:#f96;color:#fff}.no-account-placeholder{display:flex;flex-flow:column;align-items:center;margin:10vh auto;padding:1.5rem 1rem;border-radius:.5rem;width:30rem;background:#fff;box-shadow:0 0 .5rem rgba(0,0,0,.1)}.no-account-placeholder>img{width:200px;margin-bottom:15px}.no-account-placeholder .placeholder-heading{font-size:1.2rem;margin-bottom:7px;font-weight:600}.no-account-placeholder button{margin-top:1.5rem;padding:7px 10px;background:#fff;color:#555;border-radius:3px;border:1px solid #ccc}.no-account-placeholder button img{width:24px;height:24px;margin-left:10px}.add-account-btn{padding:10px 15px;background:#fff;color:#555;border-radius:3px;border:1px solid #ccc}.add-account-btn img{width:24px;height:24px;margin-left:10px}.igd .igd-spinner{margin-top:0;border-radius:50%}.sortable-item{z-index:999999}.igd-select-sources-wrap .igd-browser-wrap{flex:1;margin-left:1rem}.igd-select-sources-wrap .igd-selected-list{width:24%;max-width:300px}.igd-select-sources-wrap.view-list .igd-browser-wrap{width:100%;margin-left:0}.igd-select-sources-wrap.view-list .igd-selected-list{width:100%;max-width:100%;margin-top:1rem}.igd-pagination{display:flex;padding:0}.igd-pagination li{justify-content:center!important;flex-wrap:wrap!important;list-style:none;position:relative;display:flex;align-items:center;padding:8px 16px;text-decoration:none!important;font-size:15px;margin-right:-1px;border:1px solid #dee2e6;margin-left:0;margin-top:0;cursor:pointer}.igd-pagination li.selected,.igd-pagination li:hover{background:var(--color-primary);color:#fff;border-color:var(--color-primary)}.igd-pagination li.disabled{background:#eee;cursor:not-allowed}.igd-pagination li:first-child{border-top-right-radius:3px;border-bottom-right-radius:3px}.igd-pagination li:last-child{border-top-left-radius:3px;border-bottom-left-radius:3px}.igd-pagination li svg{fill:currentColor}.igd-move-modal .components-modal__content{display:flex;flex-flow:column}.igd-file-item .igd-file-thumbnail{-webkit-user-drag:none}.template-tags{margin-top:10px;border-bottom:1px solid #eee;padding-bottom:8px;width:100%}.template-tags-title{width:100%;margin-bottom:7px;text-align:right;font-size:1rem;display:flex;align-items:center}.template-tags-title i{margin-left:7px;cursor:pointer}.template-tags-title span:nth-child(3){margin-right:7px}.template-tags-title+.template-tags-list{display:none}.template-tags-title.active i:before{content:"\f343"}.template-tags-title.active+.template-tags-list{display:flex}.template-tags-list{display:flex;flex-wrap:wrap}.template-tags-list .tag{color:#2fb44b;margin-left:10px;margin-bottom:7px;background:rgba(47,180,75,.1);padding:7px 10px;border-radius:5px;cursor:pointer;font-size:.87rem}.template-tags-list .tag:hover{background:rgba(47,180,75,.7);color:#fff}.template-tags-list .tag-break{width:100%;border-top:1px solid #eee;margin-top:5px;margin-bottom:11px}.template-tags-list .tag-break+.tag-break{display:none}.template-folder{padding:7px 10px;border-radius:5px;background:#eaeaea;margin-left:10px;font-size:.9rem;color:#555;display:flex;flex-wrap:wrap;align-items:center;width:-moz-max-content;width:max-content;line-height:1}.template-folder-account{margin-left:10px}.template-folder-item{background:#fff;padding:5px 7px;border-radius:3px;font-size:.8rem;display:flex;align-items:center;justify-content:center}.template-folder i,.template-folder img{margin-left:7px;width:20px}.template-folder-wrap{display:flex;align-items:center;width:100%}.template-folder-wrap button{font-size:.875rem;padding:7px;margin-right:10px}.template-folder-wrap button.btn-danger{background:#ff9f10;border-color:rgba(255,159,16,.5)}.template-folder-wrap button.btn-danger:hover{background:rgba(255,159,16,.8)}.template-folder-error{color:#ff9f10;font-size:.8rem;margin-top:10px;display:flex;align-items:center}.template-folder-error i{margin-left:5px}.template-folder .dashicons-no-alt{color:#ff9f10;cursor:pointer;margin-right:10px}.igd-shortcode-wrap{-webkit-user-select:none;-moz-user-select:none;user-select:none;overflow-y:auto;margin-bottom:1rem;color:#333;box-sizing:border-box}.igd-shortcode-wrap *{box-sizing:inherit}.igd-shortcode-wrap::-webkit-scrollbar{width:5px}.igd-shortcode-wrap::-webkit-scrollbar-thumb{background:var(--color-primary-light);border-radius:10px}.igd-shortcode-wrap::-webkit-scrollbar-track{background:#ddd;border-radius:10px}.igd-shortcode-wrap.igd-shortcode-browser,.igd-shortcode-wrap.igd-shortcode-gallery,.igd-shortcode-wrap.igd-shortcode-search{border:1px solid #ddd;border-radius:.5rem}.igd-shortcode-wrap.igd-shortcode-browser .igd-file-browser,.igd-shortcode-wrap.igd-shortcode-gallery .igd-file-browser,.igd-shortcode-wrap.igd-shortcode-search .igd-file-browser{align-items:stretch}.igd-shortcode-wrap.igd-shortcode-browser .igd-file-browser .igd-details,.igd-shortcode-wrap.igd-shortcode-browser .igd-file-browser .igd-file-browser-header,.igd-shortcode-wrap.igd-shortcode-gallery .igd-file-browser .igd-details,.igd-shortcode-wrap.igd-shortcode-gallery .igd-file-browser .igd-file-browser-header,.igd-shortcode-wrap.igd-shortcode-search .igd-file-browser .igd-details,.igd-shortcode-wrap.igd-shortcode-search .igd-file-browser .igd-file-browser-header{top:0}.igd-shortcode-wrap.igd-shortcode-search .igd-file-browser-header{height:70px}.igd-shortcode-wrap.igd-shortcode-search .igd-file-browser-header .header-action{width:100%}.igd-shortcode-wrap.igd-shortcode-search .igd-file-browser-header .header-action .igd-search-bar{margin-right:0;width:100%;height:50px;position:relative}.igd-shortcode-wrap.igd-shortcode-audioVideo{overflow:hidden}.igd-shortcode-wrap.igd-shortcode-slider{overflow-y:unset}.igd-shortcode-wrap.igd-shortcode-media{border:1px solid #eee;overflow-y:unset}.igd-video-player video{position:static;transform:none}.igd-video-player audio{height:revert!important}.igd-download-link,.igd-view-link{display:block}.igd-embed-image{max-width:100%}.igd-slider{--slide-height:300px;--slide-gap:5px}.igd-slider .slick-next,.igd-slider .slick-prev{z-index:9}.igd-slider .slick-next:before,.igd-slider .slick-prev:before{display:none}.igd-slider .slick-prev{right:-25px}.igd-slider .slick-next{left:-25px}.igd-slider .slick-dots{position:static}.igd-slider .slick-dots li button:before{font-size:15px}.igd-slider .slider-img-wrap{height:100%;width:100%;position:relative}.igd-slider .slider-img-wrap img{height:100%;width:100%;-o-object-fit:cover;object-fit:cover}.igd-slider .slider-content-wrap{position:absolute;top:0;right:0;left:0;padding:1rem;color:#fff;text-align:center;width:100%;height:100%;opacity:0;background:linear-gradient(to bottom,rgba(0,0,0,.5) 50%,rgba(0,0,0,0) 100%);box-sizing:border-box;transition:all .3s ease-in-out;overflow:hidden;display:flex;align-items:center;justify-content:center}.igd-slider .slider-content-wrap h3{font-size:1rem;margin-bottom:0;color:#fff}.igd-slider .slider-content-wrap p{font-size:.875rem;margin-bottom:0;color:#fff}.igd-slider .slider-actions{display:flex;justify-content:center;align-items:center;margin:10px 0}.igd-slider .slider-actions .slider-action{cursor:pointer;transition:transform .3s ease-in-out}.igd-slider .slider-actions .slider-action.action-download{margin-right:20px}.igd-slider .slider-actions .slider-action svg{width:30px;height:30px;fill:#fff}.igd-slider .slider-actions .slider-action:hover{transform:scale(1.1)}.igd-slider .slick-slide{height:var(--slide-height)}.igd-slider .slick-slide>div{height:100%;position:relative;margin:0 var(--slide-gap)}.igd-slider .slick-slide .slider-item-wrap{position:absolute;width:100%;height:100%}.igd-slider .slick-slide:hover .slider-content-wrap{opacity:1}.igd-access-denied-placeholder{max-width:500px;margin:20px auto;padding:2rem;background:#f1f1f1;border-radius:.5rem;text-align:center}.igd-access-denied-placeholder img{max-width:100px;margin-bottom:15px}.igd-access-denied-placeholder h3{font-size:1.5rem;font-weight:600;margin-bottom:1rem}.igd-access-denied-placeholder p{font-size:1rem;margin-bottom:1rem;color:#555}.igd-disqus-wrap{display:none}[data-widget_type="igd_browser.default"] .elementor-widget-empty-icon:empty,[data-widget_type="igd_shortcodes.default"] .elementor-widget-empty-icon:empty{height:200px;background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIiB2aWV3Qm94PSIwIDAgOTkgOTkiIGZpbGw9Im5vbmUiPgo8cGF0aCBkPSJNOTguNTEzMyA0OS4yMTMxQzk4LjUxMzMgNzYuMzkyOCA3Ni40NjA0IDk4LjQyNjIgNDkuMjU2NyA5OC40MjYyQzIyLjA1MyA5OC40MjYyIDAgNzYuMzkyOCAwIDQ5LjIxMzFDMCAyMi4wMzM1IDIyLjA1MyAwIDQ5LjI1NjcgMEM3Ni40NjA0IDAgOTguNTEzMyAyMi4wMzM1IDk4LjUxMzMgNDkuMjEzMVoiIGZpbGw9InVybCgjcGFpbnQwX2xpbmVhcl8xNjgwXzIzNjUpIi8+CjxwYXRoIGQ9Ik0yNy42OTUzIDcwLjU1ODdDMjcuOTY1OSA3MC4wNDM1IDI4LjE0NjIgNjkuNzA3NSAyOC4zMjY2IDY5LjM5MzlDMzEuMTY3NSA2NC40ODg1IDM0LjA1MzUgNTkuNTgzIDM2Ljg3MTkgNTQuNjc3NkMzNy4yNzc3IDUzLjk2MDggMzcuNzUxMiA1My43MzY4IDM4LjU2MjkgNTMuNzM2OEM0OC42NjM5IDUzLjc1OTIgNTguNzY0OCA1My43NTkyIDY4Ljg2NTggNTMuNzU5MkM2OS4xNTg5IDUzLjc1OTIgNjkuNDc0NiA1My43MzY4IDY5Ljc2NzcgNTMuNzgxNkM3MS4xNDMgNTMuOTM4NCA3MS44MTk0IDU1LjA1ODQgNzEuMTY1NiA1Ni4yOTAzQzY4Ljc5ODIgNjAuNzI1NCA2Ni4zNjMxIDY1LjEzODEgNjMuOTczMSA2OS41NzMxQzYzLjUyMjIgNzAuNDI0MyA2Mi43NTU2IDcwLjU4MTEgNjEuODc2MyA3MC41ODExQzU3LjI5OTMgNzAuNTgxMSA1Mi43MjIzIDcwLjU4MTEgNDguMTIyNyA3MC41ODExQzQxLjgwOTYgNzAuNTgxMSAzNS40OTY1IDcwLjU4MTEgMjkuMjA1OSA3MC41ODExQzI4Ljc1NSA3MC41NTg3IDI4LjMyNjYgNzAuNTU4NyAyNy42OTUzIDcwLjU1ODdaIiBmaWxsPSIjMjY4M0ZCIi8+CjxwYXRoIGQ9Ik0zMS4wNTY2IDI1LjI4OTVDMzEuMzA0NiAyNS42NDc5IDMxLjQ4NSAyNS45MTY3IDMxLjY0MjggMjYuMTg1NUMzNC40NjExIDMxLjAyMzcgMzcuMjU2OSAzNS44ODQ0IDQwLjA5NzggNDAuNzAwMkM0MC40NTg2IDQxLjMwNSA0MC40MzYgNDEuNzA4MiA0MC4wOTc4IDQyLjMxM0MzNC44NjcgNTEuMjcyNyAyOS42NTg3IDYwLjI1NDggMjQuNDI3OCA2OS4yMTQ1QzI0LjAyMiA2OS45MzEzIDIzLjU3MSA3MC41MzYxIDIyLjYyNDEgNzAuNTEzN0MyMS42OTk2IDcwLjQ5MTMgMjEuMjcxMyA2OS44NjQxIDIwLjg4OCA2OS4xNDczQzE4LjYzMzMgNjQuOTgxMSAxNi4zNzg2IDYwLjgxNDggMTQuMTAxNCA1Ni42NDg1QzEzLjY1MDQgNTUuODE5NyAxMy41ODI4IDU1LjEwMyAxNC4wNzg4IDU0LjI1MThDMTkuNjAyOCA0NC44MjE3IDI1LjEwNDIgMzUuMzY5MiAzMC42MjgyIDI1LjkxNjdDMzAuNzE4NCAyNS43Mzc1IDMwLjg1MzcgMjUuNTU4MyAzMS4wNTY2IDI1LjI4OTVaIiBmaWxsPSIjMDFBQjQ3Ii8+CjxwYXRoIGQ9Ik02OC42NDM5IDUwLjMzMTVDNjguMTI1MyA1MC4zNTM5IDY3Ljc2NDYgNTAuMzc2MyA2Ny40MDM4IDUwLjM3NjNDNjEuODc5OSA1MC4zNzYzIDU2LjM1NTkgNTAuMzUzOSA1MC44NTQ1IDUwLjM5ODdDNTAuMDQyOCA1MC4zOTg3IDQ5LjU2OTMgNTAuMTk3MSA0OS4xNjM1IDQ5LjQ1NzlDNDQuMTEzIDQwLjcyMjIgMzkuMDM5OSAzMi4wMzEyIDMzLjk4OTUgMjMuMzE3OUMzMi43NzE5IDIxLjI3OTYgMzMuNDI1OCAyMC4xNTk2IDM1LjgxNTggMjAuMTM3MkM0MC4zOTI4IDIwLjEzNzIgNDQuOTY5OCAyMC4xMzcyIDQ5LjU2OTMgMjAuMTM3MkM1MC41NjE0IDIwLjEzNzIgNTEuMjgyOSAyMC40MDYgNTEuODAxNCAyMS4zMDJDNTcuMzAyOSAzMC43OTkzIDYyLjg0OTQgNDAuMjc0MiA2OC4zNzM0IDQ5Ljc0OTFDNjguNDQxIDQ5Ljg4MzUgNjguNDg2MSA1MC4wMTc5IDY4LjY0MzkgNTAuMzMxNVoiIGZpbGw9IiNGRUI5MDEiIHN0eWxlPSImIzEwOyIvPgo8cGF0aCBkPSJNNjguODc5NCA3Ni41MDMyQzc3LjY5MjYgNzYuNTAzMiA4NC44MzcxIDY5LjM2NjEgODQuODM3MSA2MC41NjIxQzg0LjgzNzEgNTEuNzU4IDc3LjY5MjYgNDQuNjIwOSA2OC44Nzk0IDQ0LjYyMDlDNjAuMDY2MiA0NC42MjA5IDUyLjkyMTcgNTEuNzU4IDUyLjkyMTcgNjAuNTYyMUM1Mi45MjE3IDY5LjM2NjEgNjAuMDY2MiA3Ni41MDMyIDY4Ljg3OTQgNzYuNTAzMloiIGZpbGw9IiNGNzgzMkUiLz4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik02OC44Nzk0IDczLjIwODlDNzUuODc2NCA3My4yMDg5IDgxLjU0MjggNjcuNTQzNSA4MS41NDI4IDYwLjU2MjFDODEuNTQyOCA1My41ODA2IDc1Ljg3NjQgNDcuOTE1MyA2OC44Nzk0IDQ3LjkxNTNDNjEuODgyNCA0Ny45MTUzIDU2LjIxNiA1My41ODA2IDU2LjIxNiA2MC41NjIxQzU2LjIxNiA2Ny41NDM1IDYxLjg4MjQgNzMuMjA4OSA2OC44Nzk0IDczLjIwODlaTTg0LjgzNzEgNjAuNTYyMUM4NC44MzcxIDY5LjM2NjEgNzcuNjkyNiA3Ni41MDMyIDY4Ljg3OTQgNzYuNTAzMkM2MC4wNjYyIDc2LjUwMzIgNTIuOTIxNyA2OS4zNjYxIDUyLjkyMTcgNjAuNTYyMUM1Mi45MjE3IDUxLjc1OCA2MC4wNjYyIDQ0LjYyMDkgNjguODc5NCA0NC42MjA5Qzc3LjY5MjYgNDQuNjIwOSA4NC44MzcxIDUxLjc1OCA4NC44MzcxIDYwLjU2MjFaIiBmaWxsPSJ3aGl0ZSIvPgo8cGF0aCBkPSJNNjMuNTIzNSA2MS4wOTgyQzY0LjA5NzcgNjEuNjcxNiA2NC42NTI5IDYyLjIyNTkgNjUuMjI3MSA2Mi43OTkzQzY1LjcyNDggNjMuMjk2MyA2Ni4yMjI1IDYzLjc5MzMgNjYuNzIwMiA2NC4yOTAyQzY3LjA4MzkgNjQuNjUzNCA2Ny4xMDMxIDY1LjE2OTUgNjYuNzU4NSA2NS40OTQ0QzY2LjQxNCA2NS44Mzg1IDY1Ljg5NzEgNjUuODE5NCA2NS41MzM0IDY1LjQ1NjJDNjQuNjE0NiA2NC41Mzg3IDYzLjY5NTggNjMuNjIxMiA2Mi43NzY5IDYyLjcwMzhDNjIuNDUxNSA2Mi4zNzg4IDYyLjEyNjEgNjIuMDUzOSA2MS44MDA3IDYxLjcyODlDNjEuNDE3OCA2MS4zNDY3IDYxLjQxNzggNjAuODMwNiA2MS44MDA3IDYwLjQ0ODNDNjMuMDQ0OSA1OS4yMDU5IDY0LjI4OTIgNTcuOTQ0NCA2NS41NTI2IDU2LjcwMTlDNjUuODIwNSA1Ni40MzQzIDY2LjE0NiA1Ni4zNzcgNjYuNDkwNSA1Ni41MTA4QzY2Ljc5NjggNTYuNjQ0NiA2Ni45ODgyIDU2Ljk1MDQgNjYuOTg4MiA1Ny4yOTQ1QzY2Ljk4ODIgNTcuNTIzOCA2Ni44NzM0IDU3LjcxNSA2Ni43MDExIDU3Ljg4N0M2NS42ODY2IDU4LjkwMDEgNjQuNjUyOSA1OS45MzIyIDYzLjYzODMgNjAuOTQ1M0M2My42MTkyIDYxLjAyMTcgNjMuNTgwOSA2MS4wNiA2My41MjM1IDYxLjA5ODJaIiBmaWxsPSJ3aGl0ZSIvPgoKPHBhdGggZD0iTTc0LjIyMDQgNjAuOTI0OUM3My43NDE4IDYwLjQ0NyA3My4yNjMzIDU5Ljk2OTIgNzIuODAzOSA1OS41MTA0QzcyLjIxMDQgNTguOTE3OSA3MS41OTc5IDU4LjMyNTQgNzEuMDA0NSA1Ny43MTM3QzcwLjc3NDggNTcuNDg0NCA3MC42OTgyIDU3LjE3ODUgNzAuNzkzOSA1Ni44NzI3QzcwLjg4OTYgNTYuNTY2OSA3MS4xMDAyIDU2LjM3NTcgNzEuNDI1NiA1Ni4zMTg0QzcxLjczMTkgNTYuMjYxMSA3MS45OTk5IDU2LjM1NjYgNzIuMjEwNCA1Ni41NjY5QzcyLjg4MDQgNTcuMjM1OSA3My41MzEzIDU3LjkwNDkgNzQuMjAxMiA1OC41NTQ3Qzc0Ljc3NTUgNTkuMTI4MiA3NS4zNjg5IDU5LjcyMDcgNzUuOTQzMiA2MC4yOTQxQzc2LjMwNjkgNjAuNjU3MyA3Ni4zMDY5IDYxLjE5MjUgNzUuOTQzMiA2MS41NTU3Qzc0LjY5ODkgNjIuNzk4MSA3My40NzM4IDY0LjAyMTQgNzIuMjI5NiA2NS4yNjM4QzcxLjkyMzMgNjUuNTY5NiA3MS41NDA1IDY1LjY0NjEgNzEuMTk1OSA2NS40NzQxQzcwLjY5ODIgNjUuMjA2NSA3MC42MDI1IDY0LjU1NjYgNzEuMDA0NSA2NC4xNTUyQzcxLjM2ODIgNjMuNzcyOSA3MS43NTEgNjMuNDA5NyA3Mi4xMzM5IDYzLjAyNzRDNzIuNzg0NyA2Mi4zNzc2IDczLjQzNTYgNjEuNzI3NyA3NC4xMDU1IDYxLjA1ODdDNzQuMTI0NyA2MS4wMjA1IDc0LjE2MyA2MC45ODIyIDc0LjIyMDQgNjAuOTI0OVoiIGZpbGw9IndoaXRlIi8+Cgo8ZGVmcz4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDBfbGluZWFyXzE2ODBfMjM2NSIgeDE9Ijk4LjUxMzMiIHkxPSI0MS4yMTYiIHgyPSItNy4zODM5OSIgeTI9IjU3Ljg1NDEiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KPHN0b3Agc3RvcC1jb2xvcj0iIzk0QjJGRiIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiM0MkI0RkYiIHN0b3Atb3BhY2l0eT0iMC42NSIvPgo8L2xpbmVhckdyYWRpZW50Pgo8L2RlZnM+Cjwvc3ZnPg==);background-color:rgba(47,180,75,.1);background-repeat:no-repeat;border:2px dashed rgba(47,180,75,.5);background-position:center;padding:2rem;box-sizing:content-box}.elementor-element-edit-mode .igd-download-link a,.elementor-element-edit-mode .igd-view-link a{pointer-events:none}.elementor-element-edit-mode .igd-embed{pointer-events:none}.elementor-field-type-google_drive_upload .igd-shortcode-uploader{width:100%}.elementor-field-type-google_drive_upload .igd-shortcode-uploader+.upload-file-list{height:0!important;width:0!important;opacity:0!important;min-height:1px!important;padding:0!important;border:none!important;min-width:0!important;max-width:1px!important}#woocommerce-product-data ul.wc-tabs li.upload_options_options a:before{content:"\f13b";font-family:dashicons}.igd-woocommerce{display:inline-flex;float:left;margin-left:10px}.igd-woocommerce .igd-wc-button{display:inline-flex!important;margin-right:auto!important;align-items:center}.igd-woocommerce .igd-wc-button img{margin-left:5px}.upload-box-settings{margin:20px}.upload-box-settings .form-field .description{display:block;clear:both;margin:20px 0 10px 0}.upload-box-settings .form-field .upload_folder_name{width:100%}.igd-wc-upload-wrap{margin:20px 0;display:block}.igd-wc-upload-wrap .upload-button{display:flex!important;align-items:center;width:-moz-max-content;width:max-content;text-align:center;margin-bottom:15px!important;float:none!important}.igd-wc-upload-wrap .upload-button i{margin-left:5px}.igd-wc-upload-wrap .igd-shortcode-uploader{visibility:hidden;width:0;height:0;position:absolute;overflow:hidden;z-index:-1;max-width:500px;clear:both}.igd-wc-upload-wrap .igd-shortcode-uploader .igd-file-uploader-inner .dashicons-cloud-upload{display:none}.igd-wc-upload-wrap .igd-shortcode-uploader .igd-file-uploader{margin:0}.igd-wc-upload-wrap .igd-wc-upload-description{margin:0;clear:both}.igd-wc-upload-wrap .wc-file-list-wrap{margin-top:15px;clear:both}.igd-wc-upload-wrap .wc-file-list-wrap h4{font-size:1.2rem;margin-bottom:10px}.igd-wc-upload-wrap .wc-file-list-wrap .wc-file-list{margin:10px 0;padding:0;list-style:none}.igd-wc-upload-wrap .wc-file-list-wrap .wc-file-list li{display:flex;align-items:center;margin:3px;font-size:12px;font-weight:600;color:#333;transition:all .2s ease-in-out;-webkit-user-select:none;-moz-user-select:none;user-select:none}.igd-wc-upload-wrap .wc-file-list-wrap .wc-file-list li img{margin-left:5px;width:16px}.igd-wc-upload-wrap .wc-file-list-wrap .wc-file-list li .dashicons-no-alt{color:#ff9f10;cursor:pointer;margin-right:15px;margin-left:0}.igd-wc-upload-wrap:has(.upload-button.active) .igd-shortcode-uploader{display:flex;visibility:visible;width:auto;height:auto;position:relative;overflow:visible;z-index:1}.woocommerce-page.woocommerce-checkout form #order_review td.product-name:has(.igd-wc-upload-wrap){flex-wrap:wrap}.igd-wc-uploaded-files{display:flex;flex-direction:column;margin:0!important;padding:0!important}.igd-wc-uploaded-files-wrap{width:30%;padding:0}.igd-wc-uploaded-files li{margin-bottom:5px!important}.igd-wc-uploaded-files a{display:flex;text-decoration:none;color:#555;font-size:.875rem;overflow:hidden;transition:all .2s ease-in-out}.igd-wc-uploaded-files a img{margin-left:5px!important;width:20px!important}.igd-wc-uploaded-files a span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.igd-wc-uploaded-files a:hover{color:#333}.igd-hidden{display:none!important}#igd-direct-content{font-family:roboto,sans-serif}
  • integrate-google-drive/trunk/assets/css/frontend.css

    r2996843 r3004719  
    1 .igd-btn{cursor:pointer;width:-moz-max-content;width:max-content;display:flex;align-items:center;color:#fff;padding:8px 12px;border-radius:5px;border:1px solid transparent;line-height:1;text-decoration:none;transition:all .2s ease-in-out;font-size:.875rem}.igd-btn i{margin-right:7px}.igd-btn i:nth-child(2){margin-right:0;margin-left:7px}.igd-btn .igd-spinner{margin:2px 10px 0 0}.igd-btn.btn-primary{background-color:#2fb44b}.igd-btn.btn-primary:hover{background-color:#248c3a}.igd-btn.btn-secondary{background-color:#f1f1f1;border-color:#f1f1f1}.igd-btn.btn-secondary:hover{background-color:#e6e6e6}.igd-btn.btn-success{background-color:#00d084;border-color:#00d084}.igd-btn.btn-success:hover{background-color:#00c674}.igd-btn.btn-warning{background-color:#f9d6b7;color:#a65300}.igd-btn.btn-warning:hover{background-color:#fc9}.igd-btn.btn-danger{background-color:#f8d7da;color:#d8000c}.igd-btn.btn-danger:hover{background-color:#f5c6cb}.igd-btn.btn-info{background-color:#b4d8e7;color:#1f4e6e}.igd-btn.btn-info:hover{background-color:#00a5e6}.igd-btn.btn-light{background-color:#f1f1f1;border-color:#f1f1f1}.igd-btn.btn-light:hover{background-color:#e6e6e6}.igd-btn.btn-dark{background-color:#0071e6;border-color:#0071e6}.igd-btn.btn-dark:hover{background-color:#0058c6}.igd-btn.btn-link{background-color:transparent;border-color:transparent;color:#0071e6}.igd-btn.btn-link:hover{color:#0058c6}.igd-btn.btn-outline-primary{background-color:transparent;border-color:var(--color-primary);color:var(--color-primary)}.igd-btn.btn-outline-primary:hover{background-color:var(--color-primary);color:#fff}.igd-btn.btn-outline-secondary{background-color:transparent;border-color:#f1f1f1;color:#f1f1f1}.igd-btn.btn-outline-secondary:hover{background-color:#f1f1f1;color:#fff}.igd-btn.btn-outline-success{background-color:transparent;border-color:#00d084;color:#00d084}.igd-btn.btn-outline-success:hover{background-color:#00d084;color:#fff}.igd-btn.btn-outline-warning{background-color:transparent;border-color:#ffc800;color:#ffc800}.igd-btn.btn-outline-warning:hover{background-color:#ffc800;color:#fff}.igd-btn.btn-outline-danger{background-color:transparent;border-color:#ff5b5b;color:#ff5b5b}.igd-btn.btn-outline-danger:hover{background-color:#ff5b5b;color:#fff}.igd-btn.btn-outline-info{background-color:transparent;border-color:#00b5ff;color:#00b5ff}.igd-btn.btn-outline-info:hover{background-color:#00b5ff;color:#fff}.igd-btn.btn-outline-light{background-color:transparent;border-color:#f1f1f1;color:#f1f1f1}.igd-btn.btn-outline-light:hover{background-color:#f1f1f1;color:#fff}.igd-btn.btn-outline-dark{background-color:transparent;border-color:#0071e6;color:#0071e6}.igd-btn.btn-outline-dark:hover{background-color:#0071e6;color:#fff}.igd-btn.btn-outline-link{background-color:transparent;border-color:#0071e6;color:#0071e6}.igd-btn.btn-outline-link:hover{background-color:#0071e6;color:#fff}.igd-btn.disabled{color:#999;cursor:not-allowed;background:#f1f1f1!important;border-color:#ccc}.igd-tooltip{z-index:9999999!important;opacity:1!important}.igd-tooltip:before{z-index:-1!important}.igd-notice{border-radius:5px;border:1px solid #f1f1f1;border-left-width:5px;background:#fff;box-shadow:0 1px 1px 0 rgba(0,0,0,.1);padding:1rem;margin:10px 0;display:flex}.igd-notice .igd-notice-content{margin:0;text-align:left;font-size:.9rem;line-height:1.5;color:#757575}.igd-notice.igd-notice-info{border-color:rgba(0,181,255,.5);background:rgba(0,181,255,.1);border-left-color:#00b5ff}.igd-notice.igd-notice-warning{border-color:rgba(255,200,0,.5);background:rgba(255,200,0,.1);border-left-color:#ffc800}@media (max-width:767px){.igd-notice .igd-notice-content{flex-wrap:wrap}}.igd-hidden{display:none!important}.file-item-checkbox{cursor:pointer;display:none;border-radius:50%;transition:all .3s ease;width:-moz-max-content;width:max-content;padding:5px}.file-item-checkbox .box{width:20px;height:20px;border:1px solid #e5e5e5;border-radius:50%;display:flex;align-items:center;justify-content:center;transition:all .3s ease;position:relative;box-shadow:rgba(0,0,0,.05) 0 6px 24px 0,rgba(0,0,0,.08) 0 0 0 1px}.file-item-checkbox .box:hover{border-color:var(--color-primary);box-shadow:0 0 0 2px var(--color-primary-lighter)}.file-item-checkbox:hover{background-color:rgba(0,0,0,.15)}.file-item-checkbox:hover .box{box-shadow:0 0 0 2px var(--color-primary-lighter)}.file-item-checkbox.checked{background-color:rgba(0,0,0,.15)}.file-item-checkbox.checked .box{border-color:var(--color-primary-lighter);background:var(--color-primary);color:#fff;box-shadow:0 0 0 1px var(--color-primary-lighter)}.file-item-checkbox.checked .box:after{content:"";width:5px;height:10px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg);box-sizing:border-box;margin-top:-2px}.igd-swal{z-index:99999!important}.igd-swal .swal2-confirm{background-color:#2fb44b!important}.igd-swal .swal2-close:focus{background:0 0;color:inherit;box-shadow:none}.igd-swal .swal2-cancel,.igd-swal .swal2-deny{background-color:#f08080!important}.igd-swal.save-settings-toast .swal2-popup{display:flex!important;padding:10px}.igd-swal.save-settings-toast .swal2-popup .swal2-html-container{margin-left:5px}.igd-swal.igd-swal-toast .swal2-popup{display:flex!important;padding:10px}.igd-swal.igd-swal-toast .swal2-popup .swal2-html-container{margin-left:5px}.igd-swal .swal2-input{width:auto!important}.igd-swal .swal2-title{font-size:1.2rem;color:#333;font-weight:500}.igd-swal .swal2-html-container{font-size:1rem;color:#555}.igd-swal .swal2-textarea:focus{border-color:#ddd!important;box-shadow:none!important}.igd-swal.igd-review-remind-swal .swal2-deny{background-color:#999!important}.igd-loading-spinner{display:flex;justify-content:center;margin-top:3rem}.igd-loading-spinner svg{width:2.5rem;height:2.5rem}.igd-divi-loading-spinner{display:flex;justify-content:center}.igd-divi-loading-spinner svg{width:100px;height:100px}.igd-spinner{border:2px solid #f3f3f3;border-top:2px solid #3498db;border-radius:50%;width:20px;height:20px;animation:igd-spin 2s linear infinite;display:flex}.igd-spinner.spinner-large{border-width:4px;width:50px;height:50px;animation:igd-spin 1s linear infinite;margin:30px auto}@keyframes igd-spin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.igd-disabled{pointer-events:none!important}.google-drive_page_integrate-google-drive-shortcode-builder{background:#f7f8fa}.google-drive_page_integrate-google-drive-shortcode-builder #wpfooter{display:none}@media (max-width:767px){.google-drive_page_integrate-google-drive-shortcode-builder #wpcontent{padding-right:10px}}.igd-shortcode-builder{width:calc(100% + 20px);margin-left:-20px}@media (max-width:767px){.igd-shortcode-builder{width:100%;margin-left:0}}.igd-shortcode-builder *{box-sizing:border-box}.igd-shortcode-builder-header{display:flex;flex-wrap:wrap;align-items:center;background:#fff;padding:12px 15px;border-bottom:1px solid #e5e5e5;justify-content:space-between;z-index:99;position:sticky;top:32px}.igd-shortcode-builder-header .header-title{display:flex;align-items:center;font-size:1.2rem;font-weight:500;cursor:pointer}.igd-shortcode-builder-header .header-title img{margin-right:10px}.igd-shortcode-builder-header .header-title .shortcode-title{background:#fff;border-radius:7px;padding:5px 12px;border:1px solid rgba(92,99,126,.3);position:relative;margin-left:10px}.igd-shortcode-builder-header .header-actions{display:flex}.igd-shortcode-builder-header .header-actions .btn-back{background:#5c637e;color:#fff;border-color:rgba(47,180,75,.3)}.igd-shortcode-builder-header .header-actions .btn-back:hover{background:#464c61}.igd-shortcode-builder-header .header-actions button{margin-left:15px}@media (max-width:767px){.igd-shortcode-builder-header{margin-left:-10px;margin-right:-10px;padding:10px;top:-50px}.igd-shortcode-builder-header .header-title img{width:30px;margin-right:5px}.igd-shortcode-builder-header .header-title label{font-size:1rem}.igd-shortcode-builder-header .header-title .shortcode-title{height:35px;min-height:unset;margin-left:auto;border-radius:5px;color:#555;font-size:.875rem;font-weight:400}.igd-shortcode-builder-header .header-actions .add-new-btn{margin-left:auto}.igd-shortcode-builder-header .header-actions button{overflow:hidden;padding:7px;font-size:.8rem;margin-left:10px}.igd-shortcode-builder-header .header-actions button:first-child{margin-left:0}.igd-shortcode-builder-header .header-actions button i{margin-right:3px}.igd-shortcode-builder-header .header-actions button span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.igd-shortcode-builder-header:has(.btn-back) .header-title{width:100%}.igd-shortcode-builder-header:has(.btn-back) .header-title label{max-width:35%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-shortcode-builder-header:has(.btn-back) .header-actions{width:100%;justify-content:center;margin-top:15px}}.igd-shortcode-builder .no-item-placeholder{padding:3rem 5rem;border-radius:10px;border:1px solid rgba(47,180,75,.3);background:#fff;margin:50px auto 0;width:-moz-max-content;width:max-content;display:flex;align-items:center;justify-content:center;flex-direction:column}.igd-shortcode-builder .no-item-placeholder img{width:200px;margin-left:-40px}.igd-shortcode-builder .no-item-placeholder h3{color:#7a7a7a;margin:1.5rem;font-weight:500}.igd-shortcode-builder .no-item-placeholder button{margin-top:1rem}.igd-shortcode-builder .selection-actions-wrap{display:flex;align-items:center;margin-top:30px}.igd-shortcode-builder .selection-actions-wrap .selection-count{font-weight:500;background:rgba(47,180,75,.1);padding:10px 10px;border-radius:5px;height:35px;border:1px solid rgba(47,180,75,.3);display:flex;align-items:center;justify-content:center;font-size:.9rem}.igd-shortcode-builder .selection-actions-wrap .igd-btn{margin-left:10px;height:35px}.igd-shortcode-builder .igd-shortcode-list{width:100%;border-collapse:separate;border-spacing:0 20px}.igd-shortcode-builder .igd-shortcode-list-header{display:flex;align-items:center;justify-content:space-between;margin-top:15px;margin-bottom:15px}.igd-shortcode-builder .igd-shortcode-list-header .igd-shortcode-list-title{font-size:1.2rem;font-weight:600;margin:0;display:flex;align-items:center}.igd-shortcode-builder .igd-shortcode-list-header .igd-shortcode-list-title .shortcode-list-count{font-size:1rem;font-weight:400;color:#777;margin-left:7px}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings i{width:25px;height:25px;font-size:25px;color:#5c637e;cursor:pointer}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .list-settings-tooltip{display:flex;flex-wrap:wrap;justify-content:space-between;max-width:580px}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .list-settings-tooltip .settings-columns{width:100%;margin-bottom:10px}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .settings-wrap{margin-bottom:5px}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .settings-wrap h4{margin-top:0;margin-bottom:7px}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .settings-wrap .components-select-control{min-width:100px}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .settings-wrap .components-select-control__input{height:35px}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .settings-wrap .components-input-control__backdrop{border-color:#eee}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .column-options{display:flex}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .column-options .igd-column-setting{margin-bottom:10px;margin-right:10px;border:1px solid #eee;padding:5px 7px;border-radius:5px}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .column-options .igd-column-setting .components-base-control__field{display:flex;align-items:center}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .column-options .components-checkbox-control__input-container{margin-right:5px}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .components-checkbox-control__label{text-transform:capitalize;font-size:.75rem;font-weight:500}.igd-shortcode-builder .igd-shortcode-list-wrap{padding:20px}.igd-shortcode-builder .igd-shortcode-list thead{background:#fff}.igd-shortcode-builder .igd-shortcode-list thead th{padding:24px 15px;font-size:.875rem;color:#555;border-left-width:0;border-right-width:0;margin-bottom:1rem}.igd-shortcode-builder .igd-shortcode-list thead th:first-child{border-radius:10px 0 0 10px}.igd-shortcode-builder .igd-shortcode-list thead th:last-child{border-radius:0 10px 10px 0;text-align:right;padding-right:70px}.igd-shortcode-builder .igd-shortcode-list tbody td,.igd-shortcode-builder .igd-shortcode-list tbody th{padding:15px 20px;font-size:.875rem;color:#555;text-align:left;white-space:nowrap}.igd-shortcode-builder .igd-shortcode-list tbody td:first-child,.igd-shortcode-builder .igd-shortcode-list tbody th:first-child{border-radius:10px 0 0 10px}.igd-shortcode-builder .igd-shortcode-list tbody td:last-child,.igd-shortcode-builder .igd-shortcode-list tbody th:last-child{border-radius:0 10px 10px 0}.igd-shortcode-builder .igd-shortcode-list-item{transition:all .3s ease;background:#fff}.igd-shortcode-builder .igd-shortcode-list-item:hover{background:#eaf2fa}.igd-shortcode-builder .igd-shortcode-list .col-selection{width:60px;text-align:center;padding-right:0}.igd-shortcode-builder .igd-shortcode-list .col-id{width:30px}.igd-shortcode-builder .igd-shortcode-list .col-title{text-align:left}.igd-shortcode-builder .igd-shortcode-list .col-shortcode-type{text-align:left}.igd-shortcode-builder .igd-shortcode-list .col-shortcode-type>div{display:flex;align-items:center;justify-content:flex-start}.igd-shortcode-builder .igd-shortcode-list .col-shortcode-type>div img{margin-right:10px;width:24px}.igd-shortcode-builder .igd-shortcode-list .col-shortcode-status{width:100px;text-align:center}.igd-shortcode-builder .igd-shortcode-list .col-locations{text-align:center}.igd-shortcode-builder .igd-shortcode-list .col-locations .location-count{text-align:center;font-weight:700;cursor:pointer;border:1px solid #5c637e;border-radius:5px;padding:5px 10px;color:#5c637e}.igd-shortcode-builder .igd-shortcode-list .col-locations .location-count:hover{background:#5c637e;color:#fff}.igd-shortcode-builder .igd-shortcode-list .col-locations h3{margin-top:0;margin-bottom:10px;color:#555}.igd-shortcode-builder .igd-shortcode-list .col-locations .locations-tooltip{padding:15px;max-width:250px}.igd-shortcode-builder .igd-shortcode-list .col-locations .location-item{margin-bottom:7px;overflow:hidden}.igd-shortcode-builder .igd-shortcode-list .col-locations .location-item a{text-decoration:none;display:flex;align-items:center;overflow:hidden}.igd-shortcode-builder .igd-shortcode-list .col-locations .location-item a .location-index{margin-right:5px}.igd-shortcode-builder .igd-shortcode-list .col-locations .location-item a .location-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.igd-shortcode-builder .igd-shortcode-list .col-locations .location-item a i{margin-left:7px}.igd-shortcode-builder .igd-shortcode-list .col-created{text-align:center}.igd-shortcode-builder .igd-shortcode-list .col-code>div{display:flex;align-items:center;justify-content:flex-start;position:relative;width:-moz-max-content;width:max-content;margin:auto}.igd-shortcode-builder .igd-shortcode-list .col-code>div code{padding:7px 10px 7px 35px;background:#fff;color:#5c637e;border-radius:7px;border:1px solid rgba(92,99,126,.2);font-size:12px}.igd-shortcode-builder .igd-shortcode-list .col-code>div i{left:3px;color:#5c637e;padding:7px;border-radius:30px;height:auto;width:auto;cursor:pointer;position:absolute;font-size:24px}.igd-shortcode-builder .igd-shortcode-list .col-actions{padding-right:10px;text-align:right}.igd-shortcode-builder .igd-shortcode-list .col-actions button{padding:7px 10px;display:inline-flex;background:#5c637e;height:35px}.igd-shortcode-builder .igd-shortcode-list .col-actions button:hover{background:#464c61}.igd-shortcode-builder .igd-shortcode-list .col-actions .btn-tools{margin-left:15px;padding:0;background:0 0!important;color:#5c637e}.igd-shortcode-builder .igd-shortcode-list .col-actions .btn-tools img{width:26px}.igd-shortcode-builder .igd-shortcode-list .col-actions .options-tooltip{padding:0;border-radius:7px;box-shadow:0 0 10px rgba(0,0,0,.1)}.igd-shortcode-builder .igd-shortcode-list .col-actions .action-tools{display:flex;flex-direction:column}.igd-shortcode-builder .igd-shortcode-list .col-actions .action-tools button{padding:10px 15px;display:flex;background:0 0;color:#555;justify-content:flex-start;border-radius:0;border-bottom:1px solid #e5e5e5;font-size:.875rem;width:100%}.igd-shortcode-builder .igd-shortcode-list .col-actions .action-tools button:hover{background:rgba(92,99,126,.1)}.igd-shortcode-builder .igd-shortcode-list .col-actions .action-tools button:last-child{border-bottom:none;margin-bottom:0}.igd-shortcode-builder .igd-shortcode-list-footer{display:flex;align-items:center;justify-content:center}@media (max-width:767px){.igd-shortcode-builder .igd-shortcode-list-wrap{overflow-x:auto;margin-right:10px}}.igd-shortcode-builder .igd-shortcode-builder-form{overflow-y:unset}.igd-shortcode-builder-form{display:flex;flex-wrap:wrap;align-items:flex-start}.igd-shortcode-builder-form .shortcode-builder-sidebar{width:20%;background:#fff;max-width:200px;padding:20px;position:sticky;top:100px;min-height:100vh;border-right:1px solid #eaeaea}.igd-shortcode-builder-form .shortcode-builder-sidebar.tab-advanced,.igd-shortcode-builder-form .shortcode-builder-sidebar.tab-notifications{top:0}.igd-shortcode-builder-form .shortcode-builder-sidebar.tab-permissions{top:-30px}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs{display:flex;flex-direction:column;align-items:center}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab{display:flex;align-items:center;flex-direction:column;justify-content:center;padding:1rem;background:#e9f9ec;border:1px dashed rgba(47,180,75,.3);width:100%;color:#333;border-radius:10px}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap{max-width:100%;position:relative;cursor:pointer;width:120px;display:flex;align-items:center;justify-content:center}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap:not(:last-child){margin-bottom:40px}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap:not(:last-child):after{content:"";height:40px;width:12px;background:#f7f8fa;position:absolute;top:100%}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap.active .shortcode-tab{background:#47cf64;color:#fff}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap.active .shortcode-tab .tab-icon{background-color:#fff}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap.active:after{background:#47cf64}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap:not(.active):hover .shortcode-tab{background:rgba(47,180,75,.3)}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-icon{width:30px;height:30px;margin-bottom:10px;background-color:#2fb44b;mask-size:cover;-webkit-mask-size:cover}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-icon.icon-type{-webkit-mask:url(../images/shortcode-builder/tabs/type.svg) no-repeat center/cover;mask:url(../images/shortcode-builder/tabs/type.svg) no-repeat center/cover}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-icon.icon-sources{-webkit-mask:url(../images/shortcode-builder/tabs/sources.svg) no-repeat center;mask:url(../images/shortcode-builder/tabs/sources.svg) no-repeat center}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-icon.icon-filters{-webkit-mask:url(../images/shortcode-builder/tabs/filters.svg) no-repeat center;mask:url(../images/shortcode-builder/tabs/filters.svg) no-repeat center}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-icon.icon-advanced{-webkit-mask:url(../images/shortcode-builder/tabs/advanced.svg) no-repeat center;mask:url(../images/shortcode-builder/tabs/advanced.svg) no-repeat center}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-icon.icon-notifications{-webkit-mask:url(../images/shortcode-builder/tabs/notifications.svg) no-repeat center;mask:url(../images/shortcode-builder/tabs/notifications.svg) no-repeat center}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-icon.icon-permissions{-webkit-mask:url(../images/shortcode-builder/tabs/permissions.svg) no-repeat center;mask:url(../images/shortcode-builder/tabs/permissions.svg) no-repeat center}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-name{font-size:.85rem;text-transform:uppercase;font-weight:500;white-space:nowrap}@media (max-width:767px){.igd-shortcode-builder-form .shortcode-builder-sidebar{width:100%;max-width:100%;background:0 0;height:auto;min-height:auto;margin:20px 0;padding:0;position:static;border:0}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs{flex-direction:row}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab{background:0 0;padding:0;border:0;color:#777}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-name{font-size:.7rem;font-weight:400;text-transform:capitalize}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-icon{width:26px;height:26px;margin-bottom:7px;background:#777}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap{width:auto}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap:not(:last-child){margin-bottom:0}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap:not(:last-child):after{display:none}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap.active .shortcode-tab{background:0 0;color:#2fb44b}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap.active .shortcode-tab .tab-icon{background-color:#2fb44b}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap.active .shortcode-tab .tab-name{font-weight:500}}.igd-shortcode-builder-form .shortcode-builder-content{flex:1}.igd-shortcode-builder-form:has(.shortcode-builder-sidebar) .shortcode-builder-content{width:80%;max-width:calc(100% - 200px);min-height:100vh;display:flex;flex-direction:column}.igd-shortcode-builder-form .form-footer{display:flex;align-items:center;justify-content:space-between;margin-top:auto;position:sticky;bottom:0;padding:10px 15px;border-top:1px solid #eaeaea;background:#fff;z-index:9}.igd-shortcode-builder-form .form-footer button:first-child,.igd-shortcode-builder-form .form-footer button:last-child{background:#fff;color:#2fb44b;border-color:rgba(47,180,75,.3)}.igd-shortcode-builder-form .form-footer button:first-child:hover,.igd-shortcode-builder-form .form-footer button:last-child:hover{background:#d5f0db}.igd-shortcode-builder-form .form-footer button.disabled{opacity:.5;pointer-events:none;background:#ddd;border-color:#ddd}.igd-shortcode-builder-form .form-footer button.disabled:hover{background:#ddd;border-color:#ddd}@media (max-width:767px){.igd-shortcode-builder-form .form-footer{margin:0 -10px}.igd-shortcode-builder-form .form-footer button{font-weight:400}.igd-shortcode-builder-form .form-footer button span{font-size:14px}}.igd-shortcode-builder-form.editor-mode .shortcode-builder-sidebar{top:0}.igd-shortcode-builder-form.editor-mode .shortcode-builder-content{padding:0;display:flex;flex-direction:column;height:calc(100vh - 50px)}.shortcode-module{padding:15px}.shortcode-module-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px;width:100%;border-bottom:1px solid #e5e5e5;padding-bottom:10px}.shortcode-module-header .module-title{flex:1;text-align:left}.shortcode-module-header .module-title h2{font-size:1.2rem;margin-bottom:5px;font-weight:600;text-align:left;margin-top:0}.shortcode-module-header .module-title span{font-size:.85rem}.shortcode-module-header .module-type{cursor:pointer;display:flex;align-items:center;margin-left:15px;border:1px solid rgba(47,180,75,.3);padding:10px 12px;border-radius:5px;background:#fff;transition:all .2s ease-in-out}.shortcode-module-header .module-type-title{margin-right:10px;font-weight:400;font-size:1rem}.shortcode-module-header .module-type img{width:20px;height:20px;margin-right:7px}.shortcode-module-header .module-type-name{font-size:1rem;font-weight:500}.shortcode-module-header .module-type:hover{background:rgba(213,240,219,.3)}.shortcode-module-header .shortcode-wrap{display:flex;align-items:center;justify-content:flex-start;position:relative;width:-moz-max-content;width:max-content}.shortcode-module-header .shortcode-wrap code{padding:10px 10px 10px 35px;background:#fff;color:#5c637e;border-radius:7px;border:1px solid rgba(47,180,75,.2);font-size:12px;word-break:break-all;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.shortcode-module-header .shortcode-wrap i{left:3px;color:#5c637e;padding:7px;border-radius:30px;height:auto;width:auto;cursor:pointer;position:absolute;font-size:24px}.shortcode-module .shortcode-types{display:flex;flex-wrap:wrap;justify-content:space-between;gap:20px}.shortcode-module .shortcode-types .shortcode-type{width:calc(25% - 20px);padding:1.5rem 1rem;border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;transition:background .3s ease;position:relative;text-align:center;border:1px dashed rgba(47,180,75,.5);background:#fff}.shortcode-module .shortcode-types .shortcode-type .icon-wrap{width:60px;height:60px;background-color:#2fb44b;border-radius:50%;display:flex;align-items:center;justify-content:center}.shortcode-module .shortcode-types .shortcode-type .icon-wrap.icon-browser{background:#eff3fe}.shortcode-module .shortcode-types .shortcode-type .icon-wrap.icon-uploader{background:#eaf7ed}.shortcode-module .shortcode-types .shortcode-type .icon-wrap.icon-gallery{background:#ece8ff}.shortcode-module .shortcode-types .shortcode-type .icon-wrap.icon-slider{background:#e9f0ff}.shortcode-module .shortcode-types .shortcode-type .icon-wrap.icon-media{background:#fff6f5}.shortcode-module .shortcode-types .shortcode-type .icon-wrap.icon-search{background:#e4ffde}.shortcode-module .shortcode-types .shortcode-type .icon-wrap.icon-embed{background:#ecf7ff}.shortcode-module .shortcode-types .shortcode-type .icon-wrap.icon-download{background:#eaf7ed}.shortcode-module .shortcode-types .shortcode-type .icon-wrap.icon-view{background:#f5f8ff}.shortcode-module .shortcode-types .shortcode-type .icon-wrap img{width:32px;height:32px}.shortcode-module .shortcode-types .shortcode-type>span{font-size:1rem;font-weight:600;margin:20px 0 5px;color:#0a0a0a}.shortcode-module .shortcode-types .shortcode-type .description{font-size:.875rem;font-weight:400;color:#757575;margin-top:5px}.shortcode-module .shortcode-types .shortcode-type.active{background:#47cf64;color:#fff}.shortcode-module .shortcode-types .shortcode-type.active>span{color:#fff}.shortcode-module .shortcode-types .shortcode-type.active .description{color:#fff}.shortcode-module .shortcode-types .shortcode-type:not(.active):hover{background:rgba(47,180,75,.2)}.shortcode-module .shortcode-types .shortcode-type .pro-badge{position:absolute;top:10px;right:10px;background:#fdb837;color:#fff;padding:7px;border-radius:7px;font-size:12px;font-weight:400;display:flex;align-items:center;justify-content:center;line-height:1;box-shadow:0 0 5px rgba(0,0,0,.1);transition:all .3s ease}.shortcode-module .shortcode-types .shortcode-type .pro-badge i{height:auto;width:auto;font-size:18px;margin-right:3px}.shortcode-module .shortcode-types .shortcode-type.pro-feature{border-color:#fdb837}.shortcode-module .shortcode-types .shortcode-type.pro-feature:hover{background:rgba(253,184,55,.1)}.shortcode-module .shortcode-types .shortcode-type:last-child{margin-right:auto}.shortcode-module .settings-field{display:flex;flex-wrap:wrap;margin-bottom:15px;align-items:center;border-radius:10px;padding:12px 18px;background:#fff}.shortcode-module .settings-field-title{font-size:1.3rem;margin-bottom:30px;font-weight:600;text-align:left}.shortcode-module .settings-field-title.field-visibility{margin-top:50px}.shortcode-module .settings-field-label{width:200px;font-weight:600;font-size:1rem;display:flex;justify-content:space-between;text-align:left}.shortcode-module .settings-field-label i{margin-right:7px;color:#777}.shortcode-module .settings-field-label:after{content:":";margin-left:auto}.shortcode-module .settings-field-content{display:flex;flex-direction:column;align-items:flex-start;margin-left:20px;flex:1}.shortcode-module .settings-field-content .components-button i{margin-right:5px}.shortcode-module .settings-field-content .description{font-size:.875rem;margin-top:10px;text-align:left;color:#757575;display:flex;align-items:center;flex-wrap:wrap}.shortcode-module .settings-field-content .description .igd-btn,.shortcode-module .settings-field-content .description a{margin-left:10px;text-decoration:none}.shortcode-module .settings-field-content .description+.description{margin-top:0}.shortcode-module .settings-field.filter-field .filter-field-input{display:flex;flex-direction:column}.shortcode-module .settings-field.filter-field .filter-field-all{display:flex;align-items:center;justify-content:flex-start;margin-top:15px;flex-wrap:wrap}.shortcode-module .settings-field.filter-field .filter-field-all>div{display:flex;align-items:center}.shortcode-module .settings-field.filter-field .filter-field-all>div:first-child{margin-right:20px}.shortcode-module .settings-field.filter-field .filter-field-all-label{margin-right:10px;font-weight:500;font-size:.875rem;white-space:nowrap}.shortcode-module .settings-field.filter-field .filter-field-all .description{width:100%;text-align:left}.shortcode-module .settings-field.filter-field .filter-field-all ul{margin-top:0;padding-left:10px;margin-left:10px;list-style:disc}.shortcode-module .settings-field.filter-field .name-filter-option{display:flex;flex-wrap:wrap;align-items:center;margin-top:10px}.shortcode-module .settings-field.filter-field .name-filter-option h4{margin:0 15px 0 0;font-size:.875rem;font-weight:500}.shortcode-module .settings-field.filter-field .name-filter-option .name-filter-option-item{margin-right:15px;border:1px solid #ddd;border-radius:5px;padding:5px;display:flex;align-items:center;justify-content:center;font-size:.875rem;font-weight:500;color:#777;cursor:pointer;transition:all .3s ease}.shortcode-module .settings-field.filter-field .name-filter-option .name-filter-option-item:hover{background:#f5f8ff;color:#0a0a0a}.shortcode-module .settings-field.filter-field .name-filter-option .components-checkbox-control__input{height:20px;width:20px}.shortcode-module .settings-field.filter-field .name-filter-option .components-checkbox-control__label{margin-left:7px;text-transform:capitalize}@media (max-width:767px){.shortcode-module .settings-field.filter-field .name-filter-option div:not(#jairalok){width:auto;margin-bottom:0}}.shortcode-module .settings-field.sort-field .sort-field-section{display:flex;flex-direction:column}.shortcode-module .settings-field.sort-field .sort-field-section:first-child{margin-right:35px;padding-right:15px;border-right:1px solid #ddd}.shortcode-module .settings-field.sort-field .sort-field-section-wrap{display:flex;margin:15px 30px}.shortcode-module .settings-field.sort-field .sort-field-section-label{margin-bottom:15px;font-weight:500;text-align:left;font-size:.9rem;margin-left:-20px}.shortcode-module .settings-field.sort-field .sort-field-section .sort-item{display:flex;align-items:center;margin-bottom:10px;cursor:pointer;position:relative;font-size:.875rem}.shortcode-module .settings-field.sort-field .sort-field-section .sort-item i{display:none;position:absolute;left:-25px}.shortcode-module .settings-field.sort-field .sort-field-section .sort-item.active{color:#2fb44b}.shortcode-module .settings-field.sort-field .sort-field-section .sort-item.active i{display:block}.shortcode-module .settings-field.filter-users-field .filter-users-group{display:flex;flex-direction:column}.shortcode-module .settings-field .filter-users{margin-top:15px;display:flex;flex-direction:column;border:1px dashed #ddd;padding:15px;border-radius:7px;width:100%}.shortcode-module .settings-field .filter-users-title{font-weight:500;font-size:1rem;margin-bottom:10px;text-align:left;margin-top:0}.shortcode-module .settings-field .filter-users-section{display:flex;align-items:center}.shortcode-module .settings-field .filter-users-section:first-child{margin-right:20px}.shortcode-module .settings-field .filter-users-section-label{margin-right:10px;font-weight:500;font-size:1rem}.shortcode-module .settings-field .filter-users-section-wrap{display:flex;flex-wrap:wrap}.shortcode-module .settings-field .filter-users-section-wrap .description{width:100%;margin-bottom:0}.shortcode-module .settings-field.field-parent-folder .shortcode-module .igd-select-sources-wrap{margin-top:10px}.shortcode-module .settings-field.field-upload-confirmation-message .description{margin-top:-5px;margin-bottom:15px}.shortcode-module .settings-field.field-upload-confirmation-message .wp-editor-wrap{width:100%}.shortcode-module .settings-field.field-upload-confirmation-message .wp-editor-wrap textarea{border:none}.shortcode-module .settings-field.field-upload-confirmation-message .wp-switch-editor{height:29px}.shortcode-module .settings-field.field-upload-confirmation-message textarea{width:100%;border:1px solid #eee;padding:15px;min-width:200px}.shortcode-module .settings-field.field-upload-confirmation-message textarea:focus{outline:0;box-shadow:none}.shortcode-module .settings-field.field-allow-search input[type=text]{width:100%}.shortcode-module .settings-field.field-private-folder input[type=text]{width:100%}.shortcode-module .settings-field.field-private-folder .settings-field-label{margin-top:15px}.shortcode-module .settings-field.field-gallery-image-size .gallery-custom-size-wrap{display:flex}.shortcode-module .settings-field.field-gallery-image-size .gallery-custom-size-wrap .components-base-control:first-child{display:flex;align-items:center}.shortcode-module .settings-field.field-gallery-image-size .gallery-custom-size-wrap .components-base-control:first-child:after{content:"X";margin-left:10px;margin-right:10px;font-weight:500}.shortcode-module .settings-field.field-gallery-image-size .gallery-custom-size-wrap .components-text-control__input{width:110px}.shortcode-module .settings-field.field-access-denied-message{flex-direction:column;align-items:flex-start}.shortcode-module .settings-field.field-access-denied-message .settings-field-label{width:100%}.shortcode-module .settings-field.field-access-denied-message .settings-field-label:after{content:""}.shortcode-module .settings-field.field-access-denied-message .description{margin-top:-5px;margin-bottom:15px}.shortcode-module .settings-field.field-access-denied-message .wp-editor-wrap{width:100%}.shortcode-module .settings-field.field-access-denied-message .wp-editor-wrap textarea{border:none}.shortcode-module .settings-field.field-access-denied-message .wp-switch-editor{height:29px}.shortcode-module .settings-field.field-access-denied-message textarea{width:100%;border:1px solid #eee;padding:15px;min-width:200px}.shortcode-module .settings-field.field-access-denied-message textarea:focus{outline:0;box-shadow:none}.shortcode-module .settings-field .components-select-control select,.shortcode-module .settings-field input[type=email],.shortcode-module .settings-field input[type=number],.shortcode-module .settings-field input[type=text],.shortcode-module .settings-field select{height:40px;border-radius:4px;border:1px solid #ddd;font-size:.8rem;width:350px;max-width:100%;padding:10px 15px;line-height:1}.shortcode-module .settings-field .components-select-control select:disabled,.shortcode-module .settings-field input[type=email]:disabled,.shortcode-module .settings-field input[type=number]:disabled,.shortcode-module .settings-field input[type=text]:disabled,.shortcode-module .settings-field select:disabled{background:#f5f5f5;color:#aaa;cursor:not-allowed}.shortcode-module .settings-field .igd-select{width:400px}.shortcode-module .settings-field .igd-select.filter-users-select{max-width:100%}.shortcode-module .settings-field .igd-select__control.igd-select__control--is-focused{border-color:#2fb44b;box-shadow:none}.shortcode-module .settings-field .igd-select__input{height:auto}.shortcode-module .settings-field .igd-select__input:focus{border:none;box-shadow:none}.shortcode-module .settings-field .igd-select__menu{border-radius:7px;border:1px solid rgba(47,180,75,.3);box-shadow:0 0 5px rgba(0,0,0,.1);z-index:99}.shortcode-module .settings-field .igd-select__menu .igd-select__option{padding:10px 15px;font-size:.8rem;cursor:pointer}.shortcode-module .settings-field .igd-select__menu .igd-select__option:hover{background:rgba(47,180,75,.1)}.shortcode-module .settings-field .igd-select__menu .igd-select__option--is-focused{background:rgba(47,180,75,.1)}.shortcode-module .settings-field .igd-select__multi-value{background:#2fb44b;color:#fff}.shortcode-module .settings-field .igd-select__multi-value .igd-select__multi-value__label{color:#fff}.shortcode-module .settings-field .components-button-group{background:rgba(47,180,75,.1);padding:10px;width:-moz-max-content;width:max-content;border-radius:10px}.shortcode-module .settings-field .components-button-group button{color:#47cf64;box-shadow:inset 0 0 0 1px rgba(47,180,75,.25);margin:0 3px;border-radius:5px;background:#fff}.shortcode-module .settings-field .components-button-group button:first-child{border-top-left-radius:5px;border-bottom-left-radius:5px}.shortcode-module .settings-field .components-button-group button:last-child{border-top-right-radius:5px;border-bottom-right-radius:5px}.shortcode-module .settings-field .components-button-group button.is-primary{z-index:auto;background:#47cf64;color:#fff}.shortcode-module .settings-field .components-button-group button.is-secondary:hover{color:#2fb44b;box-shadow:inset 0 0 0 1px #47cf64}.shortcode-module .settings-field .components-button-group button i{margin-right:5px}.shortcode-module .settings-field .components-range-control{width:350px;margin-top:15px}.shortcode-module .settings-field .components-range-control .components-range-control__wrapper{color:#2fb44b;margin-bottom:0}.shortcode-module .settings-field .components-range-control .components-range-control__wrapper .components-range-control__mark-label{top:20px}.shortcode-module .settings-field .components-range-control .components-range-control__wrapper .components-range-control__thumb-wrapper span{background:#2fb44b}.shortcode-module .settings-field .components-range-control .components-input-control__input{width:auto;height:auto;padding:0 0 0 10px}.shortcode-module .settings-field .components-range-control .components-input-control__backdrop{border-color:#ddd}.shortcode-module .settings-field .components-select-control .components-input-control__backdrop{border-color:#ddd}.shortcode-module .settings-field-sub{display:flex;flex-direction:column;width:100%}.shortcode-module .settings-field-sub .settings-field{flex-direction:column;align-items:flex-start;margin-top:15px;margin-bottom:0;display:flex;border:1px dashed #ddd;padding:10px 15px;border-radius:7px;width:100%}.shortcode-module .settings-field-sub .settings-field-label{margin-top:0;margin-bottom:12px;width:auto}.shortcode-module .settings-field-sub .settings-field-label:after{content:"";display:none}.shortcode-module .settings-field-sub .settings-field-content{width:100%;margin-left:0}.shortcode-module .settings-field-sub .settings-field-content+h4,.shortcode-module .settings-field-sub .settings-field-content>h4{margin-top:15px}@media (max-width:767px){.shortcode-module .shortcode-module-header{flex-flow:column-reverse;align-items:center;text-align:center}.shortcode-module .shortcode-module-header .module-title h2{text-align:center;margin-top:10px}.shortcode-module .shortcode-module-header .module-type{display:none}.shortcode-module .shortcode-module-header .shortcode-wrap{display:none}.shortcode-module .shortcode-types{gap:10px}.shortcode-module .shortcode-types .shortcode-type{width:calc(50% - 5px);text-align:center;padding:1rem}.shortcode-module .settings-field{flex-flow:column;align-items:flex-start;padding:10px}.shortcode-module .settings-field-label{margin-bottom:.5rem;font-size:.875rem;justify-content:flex-start}.shortcode-module .settings-field-label:after{display:none}.shortcode-module .settings-field-content{margin-left:0}.shortcode-module .settings-field input,.shortcode-module .settings-field select{width:100%;height:32px}.shortcode-module .settings-field .igd-select{width:100%}.shortcode-module .settings-field.filter-field .filter-field-all{flex-direction:column;align-items:flex-start;width:100%}.shortcode-module .settings-field.filter-field .filter-field-all div{margin-right:0;display:flex;width:100%}.shortcode-module .settings-field.filter-field .filter-field-all div:first-child{margin-bottom:10px}.shortcode-module .settings-field.filter-field .filter-field-all-label{min-width:70px}.shortcode-module .settings-field .filter-users-section-wrap{flex-direction:column;align-items:flex-start;width:100%}.shortcode-module .settings-field .filter-users-section-wrap .filter-users-section{width:100%}.shortcode-module .settings-field .filter-users-section-wrap .filter-users-section:first-child{margin-bottom:10px}}.igd-module-builder-modal .components-form-toggle,.igd-shortcode-builder .components-form-toggle{width:-moz-max-content;width:max-content;background:#fff;padding:3px;border-radius:15px}.igd-module-builder-modal .components-form-toggle__track,.igd-shortcode-builder .components-form-toggle__track{width:44px;height:22px;border-radius:22px;border-color:#5c637e}.igd-module-builder-modal .components-form-toggle__thumb,.igd-shortcode-builder .components-form-toggle__thumb{background:#5c637e;border:none;width:15px;height:15px;border-radius:25px;top:6px;left:6px}.igd-module-builder-modal .components-form-toggle.is-checked .components-form-toggle__thumb,.igd-shortcode-builder .components-form-toggle.is-checked .components-form-toggle__thumb{background:#fff;transform:translateX(22px)}.igd-module-builder-modal .components-form-toggle.is-checked .components-form-toggle__track,.igd-shortcode-builder .components-form-toggle.is-checked .components-form-toggle__track{background:#47cf64}.igd-module-builder-modal .components-base-control__field,.igd-shortcode-builder .components-base-control__field{margin-bottom:0;display:flex;align-items:center}.igd-module-builder-modal .components-base-control__field .components-checkbox-control__input,.igd-shortcode-builder .components-base-control__field .components-checkbox-control__input{border-color:rgba(92,99,126,.5);margin:0}.igd-module-builder-modal .components-base-control__field .components-checkbox-control__input-container,.igd-shortcode-builder .components-base-control__field .components-checkbox-control__input-container{margin:0}.igd-module-builder-modal .components-base-control__field .components-checkbox-control__input:checked,.igd-shortcode-builder .components-base-control__field .components-checkbox-control__input:checked{background:#47cf64;border-color:#47cf64}@media (max-width:767px){.igd-module-builder-modal,.igd-shortcode-builder{margin-top:0}.igd-module-builder-modal .shortcode-tabs,.igd-shortcode-builder .shortcode-tabs{flex-wrap:wrap;justify-content:space-between}.igd-module-builder-modal .shortcode-tabs .shortcode-tab,.igd-shortcode-builder .shortcode-tabs .shortcode-tab{margin-right:0!important}.igd-module-builder-modal .shortcode-tabs .shortcode-tab .tab-index,.igd-shortcode-builder .shortcode-tabs .shortcode-tab .tab-index{height:2rem;width:2rem}.igd-module-builder-modal .shortcode-tabs .shortcode-tab:not(:last-child):after,.igd-shortcode-builder .shortcode-tabs .shortcode-tab:not(:last-child):after{width:1rem;height:.3rem}.igd-module-builder-modal .shortcode-builder-content,.igd-shortcode-builder .shortcode-builder-content{padding:0;max-width:100%}}.igd-select-sources-wrap{display:flex;flex-wrap:wrap;align-items:flex-start}.igd-select-sources-wrap .source-title-wrap{width:100%;margin-bottom:20px;text-align:left}.igd-select-sources-wrap .source-title-wrap h3{margin-bottom:5px}.igd-select-sources-wrap .source-title-wrap p{margin:0}.igd-select-sources-wrap .igd-file-browser{border:1px solid rgba(47,180,75,.3);border-radius:10px;overflow:hidden;flex:1;height:auto;background:#fff}.igd-select-sources-wrap .igd-file-browser-header{position:static;z-index:9}.igd-select-sources-wrap .igd-file-browser-header .header-title i{color:#555;display:flex;align-items:center;justify-content:center}.igd-select-sources-wrap .igd-file-browser-header .igd-breadcrumb .breadcrumb-item:hover{color:#fff;background:#248c3a}.igd-select-sources-wrap .igd-file-browser .select-btn{position:absolute;color:#fff;right:10px;border:1px solid rgba(47,180,75,.3);z-index:2;display:flex;align-items:center;border-radius:3px;padding:5px;background:#2fb44b;cursor:pointer;line-height:1;transition:background .3s ease;font-size:.875rem}.igd-select-sources-wrap .igd-file-browser .select-btn i{margin-right:0}.igd-select-sources-wrap .igd-file-browser .select-btn span{margin-left:5px;display:none}.igd-select-sources-wrap .igd-file-browser .select-btn.active{background:#ff9f10;border-color:#dc8400}.igd-select-sources-wrap .igd-file-browser .select-btn:hover span{display:block}.igd-select-sources-wrap .igd-file-browser .file-list .file-item:not(.folder-item):hover .select-btn span{display:block}.igd-select-sources-wrap .igd-file-browser .file-list:not(.list-view) .file-item:not(.folder-item) .select-btn{top:10px}.igd-select-sources-wrap .igd-selected-list{width:30%;max-width:300px;margin-left:15px;border:1px solid rgba(47,180,75,.3);border-radius:10px;overflow:hidden;background:#fff;position:sticky;top:120px}.igd-select-sources-wrap .igd-selected-list-header{padding:10px;background:#2fb44b;color:#fff;display:flex;align-items:center;justify-content:space-between}.igd-select-sources-wrap .igd-selected-list-header .header-title{font-size:1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-select-sources-wrap .igd-selected-list-header button{padding:7px 10px;font-size:.8rem;border-radius:5px;background:#ff9f10;border:none}.igd-select-sources-wrap .igd-selected-list-header button span{white-space:nowrap}.igd-select-sources-wrap .igd-selected-list-header button:hover{color:#ff9f10;background:#fff}.igd-select-sources-wrap .igd-selected-list .no-files-message{display:flex;justify-content:center;align-items:center;font-size:1rem;color:#ff9f10;margin:30px auto}.igd-select-sources-wrap .igd-selected-list .no-files-message i{margin-right:5px}.igd-select-sources-wrap .igd-selected-list>p{padding:10px;font-size:.875rem;color:#555;border:1px solid #ddd;margin:30px 10px 10px;border-radius:5px;background:rgba(48,142,225,.1);text-align:center}.igd-select-sources-wrap .igd-selected-list>p span{display:block;margin-top:10px}.igd-select-sources-wrap .no-account-placeholder{width:auto;flex:1;margin-top:0}@media (max-width:767px){.igd-select-sources-wrap{flex-direction:column}.igd-select-sources-wrap .igd-selected-list{margin-left:0}}.selected-item{display:flex;align-items:center;padding:10px 15px;border-bottom:1px solid #ddd;font-size:.875rem;z-index:99}.selected-item .item-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-right:7px}.selected-item .remove-item{color:#fff;background:#ff9f10;border:1px solid #dc8400;display:flex;align-items:center;justify-content:center;height:25px;width:25px;min-width:25px;font-size:18px;border-radius:50%;opacity:.7;margin-left:auto;cursor:pointer}.selected-item .remove-item:hover{opacity:1;background:#fff;color:#ff9f10}.selected-item .dashicons-category,.selected-item .dashicons-move,.selected-item img{margin-right:10px;color:#8f8f8f}.selected-item .dashicons-move{cursor:pointer}.selected-item .dashicons-move:hover{color:#555}.selected-item .file-item{display:flex;align-items:center;overflow:hidden;flex:1;cursor:pointer}.selected-item.sortable-item{border:none}.igd-shortcode-preview,.igd-shortcode-preview *{box-sizing:border-box}.igd-shortcode-preview-container{z-index:99999!important}.igd-shortcode-preview-container,.igd-shortcode-preview-container *{box-sizing:border-box}.igd-shortcode-preview-popup{display:flex!important;align-items:center;justify-content:center;position:absolute!important;grid-column:auto!important;grid-row:auto!important;background:0 0;width:97%!important;height:95%!important}.igd-shortcode-preview-popup .swal2-html-container{width:100%!important;height:100%!important;background:#fff;border-radius:.5rem!important;margin:auto!important}.igd-shortcode-preview-header{display:flex;align-items:center;justify-content:space-between;padding:.8rem;border-bottom:1px solid #ddd;margin-bottom:1rem;position:sticky;top:0;z-index:10;background:#fff;box-shadow:0 .5rem 1rem rgba(0,0,0,.1)}.igd-shortcode-preview-header .header-title i{margin-right:7px}.igd-shortcode-preview-header button i{margin-right:0}.igd-shortcode-preview .preview-inner{text-align:left;padding:1rem 2rem}.swal2-container.swal2-top-end{z-index:99999!important}.igd-module-builder-modal{height:100%;display:flex;flex-direction:column;background:#f7f8fa}.igd-module-builder-modal *{box-sizing:border-box}.igd-module-builder-modal-wrap{height:100%}.igd-module-builder-modal-wrap.inline-select .shortcode-module{padding:0}.igd-module-builder-modal-wrap.inline-select .shortcode-builder-content{height:auto;max-width:100%;min-height:auto}.igd-module-builder-modal-container{z-index:99999999!important}.igd-module-builder-modal-container .swal2-popup{width:95%;height:90vh;padding:0;overflow:hidden}.igd-module-builder-modal-container .swal2-popup .swal2-html-container{margin:0;border-radius:.5rem;overflow-y:auto}.igd-module-builder-modal-header{display:flex;align-items:center;padding:12px 1rem;border-bottom:1px solid #eaeaea;background:#fff;z-index:99;box-shadow:0 0 .5rem rgba(0,0,0,.1);position:sticky;top:0}.igd-module-builder-modal-header .header-title{display:flex;align-items:center}.igd-module-builder-modal-header .header-title i{margin-right:7px}.igd-module-builder-modal-header .header-title h3{font-size:1.2rem;margin:0;font-weight:500}@media (max-width:600px){.igd-module-builder-modal-header .header-title h3{font-size:1rem}}.igd-module-builder-modal-header .close{margin-left:auto;margin-right:15px}.igd-module-builder-modal-header button{padding:7px 10px;font-size:.9rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-module-builder-modal-header .done .igd-spinner{display:none}.igd-module-builder-modal-header .done.loading i{display:none}.igd-module-builder-modal-header .done.loading .igd-spinner{display:inline-block}.igd-module-builder-modal .shortcode-module .media-uploader-post-content{margin-bottom:30px}.igd-module-builder-modal .shortcode-module .media-uploader-post-content textarea{width:100%;height:auto;padding:8px 12px;line-height:27px;vertical-align:top}.igd-module-builder-modal .shortcode-module-header{align-items:flex-start}.igd-module-builder-modal .shortcode-module-header .module-title{line-height:1}.igd-module-builder-modal .shortcode-module .igd-selected-list{top:20px}.igd-module-builder-modal .shortcode-module-body>.settings-field:last-child{margin-bottom:0}.igd-shortcode-builder-form{margin:0;overflow-y:auto;flex:1;display:flex}.igd-shortcode-builder-form .content-sources .settings-field.form-entry-field{margin-top:20px}.igd-shortcode-builder-form .content-sources .settings-field.form-entry-field input[type=text]{width:100%}.igd-shortcode-builder-form .content-sources .form-entry-title{margin-top:30px}.igd-shortcode-builder-form .content-sources #igd-select-files{width:100%;margin-bottom:20px}.igd-shortcode-builder-form .content-sources #igd-select-files .igd-body{max-height:400px}.module-builder-placeholder{display:flex;align-items:center;flex-flow:column;justify-content:center;text-align:center;border:1px solid #eaeaea;padding:2rem;border-radius:10px;max-width:380px;margin:auto;background:#fafafa}.module-builder-placeholder img{width:50px}.module-builder-placeholder h3{font-size:22px;margin-bottom:5px;font-weight:500;color:#333}.module-builder-placeholder p{font-size:.875rem;color:#555}.module-builder-placeholder button{margin-top:10px;padding:10px 15px}.module-builder-placeholder.pro-placeholder h4{margin-top:20px;margin-bottom:0;font-size:1.5rem;color:#ff9458;font-weight:500}.igd-shortcode-data-modal-container .igd-shortcode-data-modal-input{height:150px;padding:1rem;border-radius:.5rem;line-height:1.2;font-size:.878885rem}.igd-shortcode-data-modal-container .swal2-confirm{background:#2fb44b}#igd_data{display:none!important}.igd-form-uploader-trigger>*{pointer-events:none}.igd-file-browser{display:flex;flex-flow:column;align-items:flex-start;width:100%}.igd-file-browser,.igd-file-browser *{box-sizing:border-box}.igd-file-browser .btn-primary{background:var(--color-primary)}.igd-file-browser .btn-primary:hover{background:var(--color-primary-light-alt)}.igd-file-browser-header{display:flex;align-items:center;background:#fff;border-bottom:1px solid #e5e5e5;padding:12px 15px;position:sticky;top:32px;width:100%;z-index:9;height:60px}.igd-file-browser-header .header-title{display:flex;align-items:center;font-size:1rem;font-weight:600;color:#fff}.igd-file-browser-header .header-title i,.igd-file-browser-header .header-title img{margin-right:10px;background:#fff;padding:5px;height:35px;width:35px;border-radius:50%;color:#fff}.igd-file-browser-header .header-action{display:flex;align-items:center;margin-left:auto;justify-content:flex-end}.igd-file-browser-header .header-action-item{margin-left:15px;cursor:pointer;color:#444;background:#f7f8fa;height:40px;width:40px;border-radius:10px;display:flex;align-items:center;justify-content:center;transition:all .2s ease-in-out}.igd-file-browser-header .header-action-item img{width:18px}.igd-file-browser-header .header-action-item:hover{background:var(--color-primary-lighter)}.igd-file-browser-header .user-box{display:flex;align-items:center;width:auto;padding:5px;max-width:250px;height:45px;background:0 0}.igd-file-browser-header .user-box .user-info{display:flex;flex-direction:column;line-height:1;overflow:hidden;text-align:left}.igd-file-browser-header .user-box .user-info span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.igd-file-browser-header .user-box .user-info .user-name{font-size:.9rem;font-weight:600;color:#3d3d3d;margin-bottom:3px}.igd-file-browser-header .user-box .user-info .user-email{color:#7a7a7a;font-weight:300;font-size:.875rem}.igd-file-browser-header .user-box .user-image{width:35px;height:35px;border-radius:50%}.igd-file-browser-header .user-box-modal{display:flex;flex-direction:column;justify-content:flex-start;align-items:center;width:260px;border-radius:10px;max-height:75vh;overflow-y:auto}.igd-file-browser-header .user-box-modal::-webkit-scrollbar{width:5px;display:none}.igd-file-browser-header .user-box-modal::-webkit-scrollbar-track{background:var(--color-primary-lighter)}.igd-file-browser-header .user-box-modal::-webkit-scrollbar-thumb{background:var(--color-primary-light)}.igd-file-browser-header .user-box-modal::-webkit-scrollbar-thumb:hover{background:var(--color-primary)}.igd-file-browser-header .user-box-modal:hover::-webkit-scrollbar{display:block}.igd-file-browser-header .user-box-modal-wrap{border-radius:10px;padding:0;opacity:1;box-shadow:0 1px 0 0 #e5e5e5}.igd-file-browser-header .user-box-modal-wrap:after,.igd-file-browser-header .user-box-modal-wrap:before{left:calc(100% - 45px)}.igd-file-browser-header .user-box-modal-title{font-size:1.2rem;font-weight:500;display:block;position:sticky;background:#fff;top:0;width:100%;text-align:center;padding:15px;box-shadow:0 1px 0 0 #e5e5e5;margin-bottom:7px}.igd-file-browser-header .user-box-modal button{margin:10px auto 20px auto;padding:8px 12px;font-size:.875rem}.igd-file-browser-header .user-box-modal>div:last-child{margin-bottom:15px}.igd-file-browser-header .user-box-account{display:flex;align-items:center;border:1px solid #e5e5e5;padding:7px;border-radius:5px;cursor:pointer;width:calc(100% - 30px);margin:7px}.igd-file-browser-header .user-box-account.active,.igd-file-browser-header .user-box-account:hover{background:var(--color-primary-lighter);color:#000}.igd-file-browser-header .user-box-account img{width:30px;height:30px;border-radius:50%;margin-right:10px}.igd-file-browser-header .user-box-account .account-info{display:flex;flex-flow:column;overflow:hidden;text-align:left;line-height:1.5}.igd-file-browser-header .user-box-account .account-info .account-name{font-size:.9rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-file-browser-header .user-box-account .account-info .account-email{font-size:.8rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#7a7a7a}.igd-file-browser-header .user-box-account .active-badge{background:var(--color-primary);color:#fff;border-radius:50%;position:relative;margin-left:auto;right:0}.igd-file-browser-header .user-box .user-arrow{width:16px;margin-left:10px}@media (max-width:768px){.igd-file-browser-header{top:0;flex-flow:column;align-items:center;height:auto;padding:.5rem}.igd-file-browser-header .header-action{margin-left:0;width:100%;justify-content:center}.igd-file-browser-header .header-action .igd-search-bar input{min-height:35px;height:35px}.igd-file-browser-header .header-action .igd-search-bar i.dashicons-dismiss{margin-left:15px}.igd-file-browser-header .header-action .igd-search-bar i.dashicons-search{height:35px}.igd-file-browser-header .header-action .igd-search-bar.active{position:absolute;width:calc(100% - 20px);z-index:2;height:45px;background:#f7f8fa}.igd-file-browser-header .header-action-item{margin-left:.875rem}.igd-file-browser-header .header-action-item.sidebar-toggle{margin-left:0;margin-right:auto}.igd-file-browser-header .user-box{padding:5px;border-radius:30px;height:40px}.igd-file-browser-header .user-box .user-info{display:none}.igd-file-browser-header .user-box .user-arrow{margin-left:0}.igd-file-browser-header .user-box .user-image{width:30px;height:30px;margin-right:5px}.igd-file-browser-header .user-box-modal-wrap{right:10px;left:auto}}.igd-file-browser .igd-search-bar{display:flex;align-items:center;position:relative;overflow:hidden;margin-bottom:0}.igd-file-browser .igd-search-bar input{width:0;height:0;min-height:0;border:none;transition:all .3s ease;padding:0;margin:0;border:0;background:0 0;box-shadow:none}.igd-file-browser .igd-search-bar input:focus{outline:0;border:none;box-shadow:none}.igd-file-browser .igd-search-bar .search-submit{margin-left:0;display:flex;align-items:center;justify-content:center;margin-bottom:0}.igd-file-browser .igd-search-bar .search-dismiss{display:none;background:0 0;cursor:pointer}.igd-file-browser .igd-search-bar .search-dismiss img{width:16px}.igd-file-browser .igd-search-bar.active{width:auto;padding:5px 15px}.igd-file-browser .igd-search-bar.active input{width:100%!important;margin:0 15px;height:100%}.igd-file-browser .igd-search-bar.active .search-submit{margin-bottom:0}.igd-file-browser .igd-search-bar.active .search-dismiss{display:flex}.igd-file-browser .igd-search-bar.active .search-dismiss svg{margin-bottom:0}.igd-file-browser .igd-search-bar.error input{border:1px solid #f77066}.igd-file-browser-body{display:flex;align-items:flex-start;width:100%;height:100%;position:relative}.igd-file-browser .igd-sort{display:flex;align-items:center}.igd-file-browser .igd-sort-select{font-weight:600;cursor:pointer;padding:3px 5px;border-radius:5px}.igd-file-browser .igd-sort-select:hover{background:#ddd}.igd-file-browser .igd-sort-modal{width:220px;padding:0;border-radius:7px;opacity:1!important;box-shadow:rgba(149,157,165,.2) 0 8px 24px}.igd-file-browser .igd-sort-modal .sort-item{display:flex;align-items:center;margin-bottom:15px;padding-left:25px;cursor:pointer;font-size:.9rem}.igd-file-browser .igd-sort-modal .sort-item i{margin-right:5px;display:none}.igd-file-browser .igd-sort-modal .sort-item.active{color:var(--color-primary);padding-left:0}.igd-file-browser .igd-sort-modal .sort-item.active i{display:inline-block}.igd-file-browser .igd-sort-modal .sort-item:hover{color:var(--color-primary)}.igd-file-browser .igd-sort-modal-inner{display:flex;flex-direction:column}.igd-file-browser .igd-sort-modal-inner-section{border-bottom:1px solid #ddd;padding:15px}.igd-file-browser .igd-sort-modal-inner-section:last-child{border-bottom:0}.igd-file-browser .igd-sort-modal-inner-section-title{font-size:.9rem;margin-bottom:10px;display:block;font-weight:500}.igd-file-browser .igd-breadcrumb{display:flex;align-items:center;overflow:hidden;max-width:70%;flex-wrap:wrap}.igd-file-browser .igd-breadcrumb .breadcrumb-item{font-size:.875rem;display:flex;align-items:center;cursor:pointer;padding:5px;border-radius:5px;line-height:1;font-weight:500;color:#444;white-space:nowrap;position:relative;margin-bottom:0}.igd-file-browser .igd-breadcrumb .breadcrumb-item i{margin-left:3px}.igd-file-browser .igd-breadcrumb .breadcrumb-item i.dashicons-arrow-right-alt2{width:13px;height:15px;font-size:15px}.igd-file-browser .igd-breadcrumb .breadcrumb-item i.dashicons-admin-home{margin-right:5px;margin-left:0}.igd-file-browser .igd-breadcrumb .breadcrumb-item i:last-child{display:none}.igd-file-browser .igd-breadcrumb .breadcrumb-item span{margin-bottom:0;max-width:200px;overflow:hidden;text-overflow:ellipsis}.igd-file-browser .igd-breadcrumb .breadcrumb-item:first-child{margin-left:0}.igd-file-browser .igd-breadcrumb .breadcrumb-item:after{content:"";font-family:Dashicons;margin-left:7px}.igd-file-browser .igd-breadcrumb .breadcrumb-item:not(:last-child):after{content:"\f345"}.igd-file-browser .igd-breadcrumb .breadcrumb-item.active:after{content:"\f140";height:auto;width:auto;font-size:22px;margin-left:3px}.igd-file-browser .igd-breadcrumb .breadcrumb-item:hover{color:var(--color-primary);background:var(--color-primary-lighter)}@media (max-width:768px){.igd-file-browser .igd-breadcrumb{max-width:100%;margin-bottom:10px}}.igd-file-browser .collapsed-breadcrumbs{width:210px;opacity:1!important;box-shadow:rgba(149,157,165,.2) 0 8px 24px;padding:10px 0}.igd-file-browser .collapsed-breadcrumbs-item{cursor:pointer;font-size:.875rem;padding:7px 15px;display:flex;align-items:center}.igd-file-browser .collapsed-breadcrumbs-item:hover{color:var(--color-primary)}.igd-file-browser .collapsed-breadcrumbs-item i{margin-right:5px;font-size:1rem;height:1rem;width:1rem}.igd-file-browser .collapsed-breadcrumbs-item span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}.igd-file-browser .collapsed-breadcrumbs-item:before{content:"\f345";font-family:Dashicons,serif;margin-right:7px}.igd-file-browser .igd-root-placeholder{display:flex;flex-direction:column;align-items:center;width:-moz-max-content;width:max-content;margin:3rem auto;padding:50px 30px;border-radius:15px;min-width:30rem;background:#fff;box-shadow:rgba(149,157,165,.2) 0 2px 2px}.igd-file-browser .igd-root-placeholder .igd-placeholder-svg,.igd-file-browser .igd-root-placeholder img{width:200px;margin-bottom:1rem}.igd-file-browser .igd-root-placeholder-title{font-size:1rem;font-weight:500;margin:15px 0 5px 0;color:var(--color-primary)}.igd-file-browser .igd-root-placeholder-text{color:#7a7a7a}.igd-file-browser .igd-root-placeholder button{margin-top:30px}.igd-file-browser .igd-root-placeholder.empty-folder-placeholder img,.igd-file-browser .igd-root-placeholder.search-folder-placeholder img{width:100px}.igd-file-browser .igd-root-placeholder.search-placeholder .igd-placeholder-svg{width:100px;margin-bottom:1rem}.igd-file-browser .igd-root-placeholder.search-placeholder .igd-root-placeholder-title{margin-bottom:1.5rem}.igd-file-browser .igd-root-placeholder.search-placeholder:not(.empty-placeholder) .igd-root-placeholder-title{margin-top:0;margin-bottom:1.5rem}.igd-file-browser .igd-root-placeholder.search-placeholder .igd-search-bar{border:1px solid #ddd;padding:10px 20px;border-radius:5px}.igd-file-browser .igd-root-placeholder.search-placeholder .igd-search-bar .search-dismiss{display:none}.igd-file-browser .igd-root-placeholder.search-placeholder .igd-search-bar input{margin-left:0}.igd-file-browser .igd-root-placeholder+.igd-file-uploader{position:relative!important;margin:30px auto;right:unset;left:unset;bottom:unset}@media (max-width:767px){.igd-file-browser .igd-root-placeholder{min-width:auto}}.igd-sidebar-wrap{width:20%;max-width:230px;border-right:1px solid #e5e5e5;position:sticky;background:#fff}.igd-sidebar .sidebar-uploader{display:flex;align-items:center;justify-content:center;padding:20px 10px 15px;border-bottom:1px solid #e5e5e5}.igd-sidebar .sidebar-uploader button{padding:7px 10px;font-size:.875rem;transition:background .3s ease;background:var(--color-primary)}.igd-sidebar .sidebar-uploader button.active{background:#fff;color:var(--color-primary);border-color:var(--color-primary-light)}.igd-sidebar .sidebar-uploader button.disabled{background:#ddd}.igd-sidebar .sidebar-uploader button.disabled:hover{background:#ddd!important}.igd-sidebar .sidebar-folders{display:flex;flex-direction:column}.igd-sidebar .sidebar-folders .root-item{padding:10px 15px;cursor:pointer;display:flex;align-items:center;font-size:1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-sidebar .sidebar-folders .root-item img{margin-right:10px}.igd-sidebar .sidebar-folders .root-item.active{background:var(--color-primary-lighter);color:var(--color-primary);border-left:5px solid}.igd-sidebar .sidebar-folders .root-item:hover{color:var(--color-primary)}.igd-sidebar .storage-info-wrap{display:flex;align-items:center;margin-top:30px;border-top:1px solid #e5e5e5;padding:15px}.igd-sidebar .storage-info-wrap i{margin-right:10px}.igd-sidebar .storage-info-wrap .storage-info{display:flex;flex-direction:column;flex:1}.igd-sidebar .storage-info-wrap .storage-info-sidebar{width:100%;height:10px;background:var(--color-primary-lighter);border-radius:5px;position:relative}.igd-sidebar .storage-info-wrap .storage-info-sidebar .storage-info-fill{position:absolute;top:0;left:0;width:0;height:100%;background:var(--color-primary);border-radius:5px}.igd-sidebar .storage-info-wrap .storage-info-sidebar .storage-info-fill.fill-danger{background:#f44336}.igd-sidebar .storage-info-wrap .storage-info span{font-size:.8rem;margin-top:5px}@media (max-width:767px){.igd-sidebar{max-width:80%;height:100%;background:#f5f9fd}.igd-sidebar-wrap{width:100%;max-width:100%;position:absolute;z-index:2;background:rgba(0,0,0,.5);height:100%}}.igd-body{display:flex;flex-direction:column;padding:10px;flex:1;width:100%;height:100%;position:relative;background:#f7f8fa}.igd-body .file-list{display:flex;align-items:flex-start;flex-wrap:wrap;overflow-y:auto}.igd-body .file-list .go-prev{display:flex;align-items:center;flex-direction:row!important;padding:10px;cursor:pointer!important;justify-content:flex-start!important;background:var(--color-primary-lighter);transition:all .3s ease;font-size:1rem;font-weight:300}.igd-body .file-list .go-prev i{margin:0 10px;position:relative;transition:all .3s ease;left:0}.igd-body .file-list .go-prev span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-body .file-list .root-item{flex-direction:row!important;padding:10px;cursor:pointer!important;align-items:center;justify-content:flex-start!important;font-size:1rem;background:#fff}.igd-body .file-list .root-item img{margin-right:10px}.igd-body .file-list .root-item .select-btn i{margin-right:0}.igd-body .file-list .file-item{display:flex;flex-direction:column;width:25%;margin:7px;border-radius:5px;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:auto;position:relative;aspect-ratio:1/1;justify-content:flex-end;box-shadow:rgba(0,0,0,.05) 0 6px 24px 0,rgba(0,0,0,.08) 0 0 0 1px;transition:transform .3s ease}.igd-body .file-list .file-item .igd-file-thumbnail{width:100%;height:100%;-o-object-fit:none;object-fit:none;position:absolute;-webkit-user-drag:none;bottom:20px}.igd-body .file-list .file-item .igd-file-thumbnail.has-thumbnail{-o-object-fit:cover;object-fit:cover}.igd-body .file-list .file-item .file-item-footer{display:flex;align-items:center;border-top:1px solid #e5e5e5;z-index:1;background:#fff;line-height:1;height:40px}.igd-body .file-list .file-item .file-item-footer .file-icon-wrap{width:30px;height:30px;display:flex;align-items:center;justify-content:center;margin-right:3px;margin-left:7px}.igd-body .file-list .file-item .file-item-footer .file-icon-wrap .file-icon{width:20px;height:20px;-webkit-user-drag:none}.igd-body .file-list .file-item .file-item-footer .file-icon-wrap .shortcut-icon{position:absolute;left:15px;bottom:8px;border:1px solid #ddd;border-radius:50%}.igd-body .file-list .file-item .file-item-footer .file-item-name{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:.875rem;font-weight:300;margin-right:auto;flex:1;text-align:left}.igd-body .file-list .file-item .file-item-footer .file-item-size{font-size:.75rem;font-weight:400;margin:0 5px;color:#999}.igd-body .file-list .file-item .file-item-footer .file-item-options{margin-left:auto;cursor:pointer;color:#565656;margin-right:7px}.igd-body .file-list .file-item .file-item-footer .file-item-options i{transform:rotate(90deg);font-size:18px;width:18px;height:18px}.igd-body .file-list .file-item .file-item-footer .file-item-options:hover{color:var(--color-primary)}.igd-body .file-list .file-item.active{border:1px solid var(--color-primary-lighter-alt);transform:scale(1.03)}.igd-body .file-list .file-item.active .file-item-footer{background:var(--color-primary-light-alt);color:#fff}.igd-body .file-list .file-item.active .file-item-footer:not(:has(.file-item-checkbox)) .file-icon{background:#fff;border-radius:3px;box-sizing:content-box!important;padding:2px 5px}.igd-body .file-list .file-item.active .file-item-footer:has(.file-item-checkbox) .file-icon,.igd-body .file-list .file-item.active .file-item-footer:has(.file-item-checkbox) .shortcut-icon{display:none}.igd-body .file-list .file-item.active .file-item-footer .file-item-size{color:inherit}.igd-body .file-list .file-item.active .file-item-footer .file-item-options{color:inherit}.igd-body .file-list .file-item.active .file-item-footer .file-item-checkbox{display:flex;padding:0;border:1px solid #fff}.igd-body .file-list .file-item:hover{transform:scale(1.03)}.igd-body .file-list .file-item:hover .file-item-footer .file-icon-wrap:has(.file-item-checkbox) .file-icon,.igd-body .file-list .file-item:hover .file-item-footer .file-icon-wrap:has(.file-item-checkbox) .shortcut-icon{display:none}.igd-body .file-list .file-item:hover .file-item-footer .file-icon-wrap .file-item-checkbox{display:flex}.igd-body .file-list .file-item:hover .file-item-date{color:#fff}.igd-body .file-list .file-item.folder-item{height:50px;justify-content:center;position:relative;order:1}.igd-body .file-list .file-item.folder-item .file-item-footer{border-top:0;height:100%}.igd-body .file-list .file-item:not(.folder-item){order:3}@media (max-width:768px){.igd-body .file-list .file-item .file-item-footer .file-icon-wrap{margin-right:5px}.igd-body .file-list .file-item .file-item-footer .file-icon-wrap:has(.file-item-checkbox) .file-icon,.igd-body .file-list .file-item .file-item-footer .file-icon-wrap:has(.file-item-checkbox) .shortcut-icon{display:none}.igd-body .file-list .file-item .file-item-footer .file-icon-wrap .file-item-checkbox{display:flex}}.igd-body .file-list .folder-file-divider{width:100%;order:2}.igd-body .file-list.list-view{flex-flow:column;align-items:center}.igd-body .file-list.list-view .go-prev{padding:12px 10px!important}.igd-body .file-list.list-view .list-view-header{display:flex;align-items:center;width:100%;font-size:1rem;position:sticky;top:0;margin-top:10px;margin-bottom:15px;z-index:1;line-height:1}.igd-body .file-list.list-view .list-view-header .col-name{width:50%;padding-left:50px}.igd-body .file-list.list-view .list-view-header .col-size{width:20%;text-align:center}.igd-body .file-list.list-view .list-view-header .col-modified{width:25%;text-align:center}.igd-body .file-list.list-view .list-view-header:not(:has(.col-modified)) .col-name,.igd-body .file-list.list-view .list-view-header:not(:has(.col-size)) .col-name{width:70%}.igd-body .file-list.list-view .list-view-header:not(:has(.col-size)):not(:has(.col-modified)) .col-name{width:90%}.igd-body .file-list.list-view .file-item{width:100%!important;overflow:visible;margin:0;border-radius:0;padding:5px 10px;font-size:.875rem;flex-direction:row;align-items:center;justify-content:space-between;border:1px solid transparent;border-bottom-color:#eee;box-shadow:none;aspect-ratio:auto;background:#fff}.igd-body .file-list.list-view .file-item .file-item-date{width:20%;font-size:.75rem;font-weight:400;margin:0 5px;color:#999;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}.igd-body .file-list.list-view .file-item.active{transform:none;background:var(--color-primary-lighter-alt);color:#fff}.igd-body .file-list.list-view .file-item.active .file-item-date{color:inherit}.igd-body .file-list.list-view .file-item:hover{transform:none;background:var(--color-primary-lighter-alt);color:#fff}.igd-body .file-list.list-view .file-item:hover .file-item-footer .file-item-options{color:inherit}.igd-body .file-list.list-view .file-item:hover .file-item-size{color:inherit}.igd-body .file-list.list-view .file-item:hover .file-item-date{color:inherit}.igd-body .file-list.list-view .file-item.folder-item{height:45px}.igd-body .file-list.list-view .file-item .file-item-footer{border:0;width:70%;background:0 0;height:33px}.igd-body .file-list.list-view .file-item .file-item-footer .file-item-name{width:70%}.igd-body .file-list.list-view .file-item .file-item-footer .file-item-size{width:30%;text-align:center}.igd-body .file-list.list-view .file-item .file-item-footer .file-item-options{position:absolute;right:0}.igd-body .file-list.list-view .file-item .file-item-footer .file-icon-wrap{margin-left:0}.igd-body .file-list.list-view .file-item .file-item-footer:not(:has(.file-item-size)) .file-item-name{width:100%}.igd-body .file-list.list-view .file-item:not(:has(.file-item-date)) .file-item-footer{width:90%}.igd-body .file-list.list-view .file-item:last-child{border-bottom:0}.igd-body .file-list.list-view .root-item{padding:15px 10px;font-size:1rem;justify-content:flex-start}@media (max-width:767px){.igd-body .file-list.list-view .list-view-header .col-name{width:65%}.igd-body .file-list.list-view .list-view-header .col-modified{display:none}.igd-body .file-list.list-view .file-item .file-item-footer{width:90%}.igd-body .file-list.list-view .file-item .file-item-date{display:none}}.igd-body .file-list.empty .list-view-header{display:none}.igd-body .file-list.empty+.igd-file-uploader{margin:10px 7px}.igd-body .file-list.igd-item-col-1 .file-item{width:100%}.igd-body .file-list.igd-item-col-1:not(.list-view) .file-item{margin:4px}.igd-body .file-list.igd-item-col-2 .file-item{width:calc(50% - 14px)}.igd-body .file-list.igd-item-col-3 .file-item{width:calc(33.33% - 14px)}.igd-body .file-list.igd-item-col-3 .file-item .file-item-footer .file-item-size{display:none}.igd-body .file-list.igd-item-col-4 .file-item{width:calc(25% - 14px)}.igd-body .file-list.igd-item-col-5 .file-item{width:calc(20% - 14px)}.igd-body .file-list.igd-item-col-6 .file-item{width:calc(16.66% - 14px)}.igd-body .file-list.igd-item-col-7 .file-item{width:calc(14.28% - 14px)}.igd-body .file-list.igd-item-col-8 .file-item{width:calc(12.5% - 14px)}.igd-body .search-result-info{font-size:1rem;margin:10px 0 15px 5px;display:flex;align-items:center}.igd-body .search-result-info .clear-button{margin-left:10px}.igd-body .loading-wrap{display:flex;justify-content:center;height:100%;width:100%;position:absolute;top:0;left:0;z-index:1}.igd-body .loading-wrap img{width:150px;height:150px;margin-top:2rem}.igd-body.loading{min-height:15rem}.igd-body.loading:not(.lazy-loading) .file-list,.igd-body.loading:not(.lazy-loading) .igd-gallery-images{opacity:.3}.igd-body.loading:not(.lazy-loading) .file-list .file-item,.igd-body.loading:not(.lazy-loading) .igd-gallery-images .file-item{transform:none;transition:none}.igd-body.lazy-loading .loading-wrap{position:unset}.igd-body.lazy-loading .loading-wrap img{margin-top:-1rem}.igd-details{display:flex;flex-flow:column;padding:20px 15px}.igd-details-wrap{width:250px;position:sticky;border-left:1px solid #e5e5e5;background:#fff}.igd-details .close-details{align-self:flex-end;cursor:pointer;font-size:1.25rem;opacity:.5;margin:-5px 0 5px 0}.igd-details .close-details:hover{opacity:1}.igd-details .details-item{display:flex;align-items:center;margin-bottom:15px;flex-wrap:wrap}.igd-details .details-item img{width:20px;height:20px;margin-right:10px}.igd-details .details-item-label{font-size:.875rem;font-weight:500;color:#444;width:80px;display:flex;align-items:center;justify-content:space-between}.igd-details .details-item-label:after{content:":";margin-right:10px}.igd-details .details-item.name{font-weight:500;font-size:1rem;margin-bottom:20px;word-break:break-all;flex-wrap:nowrap}.igd-details .details-item-value{font-size:.875rem;color:#555;word-break:break-all;max-width:100%}.igd-details .details-item.field-location{flex-direction:column;align-items:flex-start}.igd-details .details-item.field-location .details-item-value{margin-top:7px}.igd-details .details-item.field-location .location-wrap{display:flex;align-items:center;border:1px solid #ddd;border-radius:5px;padding:5px;cursor:pointer}.igd-details .details-item.field-location .location-wrap img{margin-right:5px}.igd-details .details-item.field-location .location-wrap span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-details .details-item.field-location .location-wrap:hover{background:#f5f5f5}.igd-details .details-item.field-description{display:flex;align-items:flex-start;flex-wrap:wrap;justify-content:space-between}.igd-details .details-item.field-description .details-item-label{margin-bottom:5px}.igd-details .details-item.field-description .description-placeholder,.igd-details .details-item.field-description .details-item-value{width:100%;color:#555}.igd-details .details-item.field-description .dashicons{cursor:pointer;padding:0 5px;box-sizing:content-box;margin-top:5px}.igd-details .details-item.field-description form,.igd-details .details-item.field-description textarea{width:100%}.igd-details .details-placeholder{font-size:1rem}@media (max-width:767px){.igd-details{max-width:80%;height:100%;margin-left:auto;background:#fff}.igd-details-wrap{width:100%;max-width:100%;position:absolute;z-index:2;background:rgba(0,0,0,.5);height:100%}}.igd-context-menu{z-index:99999999;background-color:#fff;border-radius:4px;list-style:none;font-size:14px;font-family:sans-serif;font-weight:400;line-height:1.5;color:#333;cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;box-shadow:0 0 10px rgba(0,0,0,.2)}.igd-context-menu,.igd-context-menu *{box-sizing:border-box}.igd-context-menu .context-menu-item{display:flex;align-items:center;padding:10px 15px;cursor:pointer;transition:background-color .2s ease;width:100%;position:relative}.igd-context-menu .context-menu-item.details,.igd-context-menu .context-menu-item.import{border-bottom:1px solid #eee}.igd-context-menu .context-menu-item.delete,.igd-context-menu .context-menu-item.download{border-top:1px solid #eee}.igd-context-menu .context-menu-item.disabled{color:#ccc}.igd-context-menu .context-menu-item.upload{border-bottom:1px solid #ddd}.igd-context-menu .context-menu-item.delete{border-bottom:1px solid #ddd}.igd-context-menu .context-menu-item.view{border-top:1px solid #ddd}.igd-context-menu .context-menu-item i{margin-right:10px}.igd-context-menu .context-menu-item:hover{background-color:#f5f5f5}.igd-context-menu .context-menu-item:hover .pro-badge{transform:scale(1.1)}.igd-context-menu .context-menu-item .pro-badge{position:absolute;right:0;background:#fdb837;color:#fff;padding:5px;border-radius:4px;font-size:11px;font-weight:400;display:flex;align-items:center;justify-content:center;line-height:1;box-shadow:0 0 5px rgba(0,0,0,.1);transition:transform .2s ease}.igd-context-menu .context-menu-item .pro-badge i{margin-right:2px;height:auto;width:auto;font-size:15px}.share-modal *{box-sizing:border-box}.share-modal .swal2-close:focus{outline:0;background:0 0;color:#f08080;box-shadow:none}.share-modal .share-link{margin-bottom:1rem}.share-modal .share-link input,.share-modal .share-link textarea{width:-webkit-fill-available;border:1px solid #ddd;border-radius:4px;padding:0 10px;font-size:14px;font-family:sans-serif;font-weight:400;line-height:1.5;color:#333;cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;text-align:center;word-break:break-all}.share-modal .share-link input{height:40px}.share-modal .share-link textarea{height:100px}.share-modal.embed .embed-code{display:flex}.share-modal.embed .share-links{display:none}.share-modal .share-links{display:flex;justify-content:center;flex-wrap:wrap}.share-modal .share-links .share-item{display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;color:#333;text-decoration:none;margin:0 10px 10px 0}.share-modal .share-links .share-item i{font-size:22px;width:auto;height:auto;border:1px solid #ccc;border-radius:50%;padding:10px;margin:10px}.share-modal .share-links .share-item span{font-size:.875rem}.share-modal .share-links .share-item.link i{background:#fff;border:1px solid #ccc;color:#333}.share-modal .share-links .share-item.link span{color:#333}.share-modal .share-links .share-item.link:hover i{background:#e6e6e6}.share-modal .share-links .share-item.embed i{background:#333;border:1px solid #333;color:#fff}.share-modal .share-links .share-item.embed:hover i{background:#1a1a1a}.share-modal .share-links .share-item.facebook i{background-color:#3b5998;color:#fff}.share-modal .share-links .share-item.facebook span{color:#3b5998}.share-modal .share-links .share-item.facebook:hover i{background-color:#4c70ba}.share-modal .share-links .share-item.twitter i{background-color:#1da1f2;color:#fff}.share-modal .share-links .share-item.twitter span{color:#1da1f2}.share-modal .share-links .share-item.twitter:hover i{background-color:#4db5f5}.share-modal .share-links .share-item.whatsapp i{background-color:#25d366;color:#fff}.share-modal .share-links .share-item.whatsapp span{color:#25d366}.share-modal .share-links .share-item.whatsapp:hover i{background-color:#4be083}.share-modal .share-links .share-item.email i{background-color:#dd4f42;color:#fff}.share-modal .share-links .share-item.email span{color:#dd4f42}.share-modal .share-links .share-item.email:hover i{background-color:#e5776d}.move-folders{display:flex;flex-direction:column;align-items:flex-start;max-height:300px;overflow-y:auto;border:1px solid #ddd;border-radius:4px;padding:10px}.move-folders-wrap button{margin:20px auto 0;padding:10px 20px}.move-folders-wrap button .igd-spinner{margin-right:10px}.move-folders,.move-folders *{box-sizing:border-box}.move-folders::-webkit-scrollbar{width:5px}.move-folders::-webkit-scrollbar-track{background:#f1f1f1}.move-folders::-webkit-scrollbar-thumb{background:#999;border-radius:5px}.move-folders .move-folder{display:flex;align-items:center;justify-content:flex-start;text-align:left;width:100%;cursor:pointer;padding:7px 0;border-radius:3px}.move-folders .move-folder>.igd-spinner{margin-left:10px}.move-folders .move-folder-wrap{width:100%;padding-left:20px;text-align:left}.move-folders .move-folder-wrap.empty{margin:10px 0;padding-left:30px;display:flex;align-items:center;color:#c73e1d;font-size:.875rem}.move-folders .move-folder-wrap.empty i{margin-right:5px}.move-folders .move-folder i{margin-right:10px}.move-folders .move-folder img{width:22px;height:22px;margin-right:10px}.move-folders .move-folder .file-item-checkbox .box{border-color:#999}.move-folders .move-folder span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.move-folders .move-folder:hover{background-color:#f5f5f5}.move-folders .move-folder:hover img{display:none}.move-folders .move-folder:hover .file-item-checkbox{display:flex;padding:0;border:1px solid #fff;margin-right:10px}.move-folders .move-folder.active{background-color:var(--color-primary-lighter)}.move-folders .move-folder.active img{display:none}.move-folders .move-folder.active .file-item-checkbox{display:flex;padding:0;border:1px solid #fff;margin-right:10px}.igd-download-popup{z-index:999999!important}.igd-download-wrap #igd-download-status{font-size:1.3rem;font-weight:600;margin:15px auto 5px}.igd-download-wrap #igd-hidden-download{display:none}.igd-copy-swal,.igd-move-swal{z-index:99999}.react-contexify{position:fixed;opacity:0;-webkit-user-select:none;-moz-user-select:none;user-select:none;background-color:#fff;box-sizing:border-box;box-shadow:0 10px 30px -5px rgba(0,0,0,.3);border-radius:6px;min-width:200px}.context-submenu{width:100%}.react-contexify__submenu--is-open,.react-contexify__submenu--is-open>.react-contexify__item__content{color:#fff;background-color:#4393e6}.react-contexify__submenu--is-open>.react-contexify__submenu{pointer-events:initial;opacity:1}.react-contexify .react-contexify__submenu{position:absolute;top:-6px;pointer-events:none;transition:opacity 275ms}.react-contexify__submenu-arrow{margin-left:auto;font-size:12px}.react-contexify__submenu-arrow i{margin-right:0!important}.react-contexify__separator{width:100%;height:1px;cursor:default;margin:4px 0;background-color:rgba(0,0,0,.2)}.react-contexify__will-leave--disabled{pointer-events:none}.react-contexify__item{cursor:pointer;position:relative}.react-contexify__item:focus{outline:0}.react-contexify__item:not(.react-contexify__item--disabled):hover>.react-contexify__submenu{pointer-events:initial;opacity:1}.react-contexify__item--disabled{cursor:default;opacity:.5}.react-contexify__item__content{display:flex;align-items:center;white-space:nowrap;color:#333;position:relative;width:100%}.react-contexify__theme--dark{background-color:rgba(40,40,40,.98)}.react-contexify__theme--dark .react-contexify__submenu{background-color:rgba(40,40,40,.98)}.react-contexify__theme--dark .react-contexify__separator{background-color:#eee}.react-contexify__theme--dark .react-contexify__item__content{color:#fff}.react-contexify__theme--light .react-contexify__separator{background-color:#eee}.react-contexify__theme--light .react-contexify__submenu--is-open,.react-contexify__theme--light .react-contexify__submenu--is-open>.react-contexify__item__content{color:#4393e6;background-color:#e0eefd}.react-contexify__theme--light .react-contexify__item:not(.react-contexify__item--disabled):focus>.react-contexify__item__content,.react-contexify__theme--light .react-contexify__item:not(.react-contexify__item--disabled):hover>.react-contexify__item__content{color:#4393e6;background-color:#e0eefd}.react-contexify__theme--light .react-contexify__item__content{color:#666}@keyframes react-contexify__scaleIn{from{opacity:0;transform:scale3d(.3,.3,.3)}to{opacity:1}}@keyframes react-contexify__scaleOut{from{opacity:1}to{opacity:0;transform:scale3d(.3,.3,.3)}}.react-contexify__will-enter--scale{transform-origin:top left;animation:react-contexify__scaleIn .3s}.react-contexify__will-leave--scale{transform-origin:top left;animation:react-contexify__scaleOut .3s}@keyframes react-contexify__fadeIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes react-contexify__fadeOut{from{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(10px)}}.react-contexify__will-enter--fade{animation:react-contexify__fadeIn .3s ease}.react-contexify__will-leave--fade{animation:react-contexify__fadeOut .3s ease}@keyframes react-contexify__flipInX{from{transform:perspective(800px) rotate3d(1,0,0,45deg)}to{transform:perspective(800px)}}@keyframes react-contexify__flipOutX{from{transform:perspective(800px)}to{transform:perspective(800px) rotate3d(1,0,0,45deg);opacity:0}}.react-contexify__will-enter--flip{backface-visibility:visible!important;transform-origin:top center;animation:react-contexify__flipInX .3s}.react-contexify__will-leave--flip{transform-origin:top center;animation:react-contexify__flipOutX .3s;backface-visibility:visible!important}@keyframes swing-in-top-fwd{0%{transform:rotateX(-100deg);transform-origin:top;opacity:0}100%{transform:rotateX(0);transform-origin:top;opacity:1}}@keyframes react-contexify__slideIn{from{opacity:0;transform:scale3d(1,.3,1)}to{opacity:1}}@keyframes react-contexify__slideOut{from{opacity:1}to{opacity:0;transform:scale3d(1,.3,1)}}.react-contexify__will-enter--slide{transform-origin:top center;animation:react-contexify__slideIn .3s}.react-contexify__will-leave--slide{transform-origin:top center;animation:react-contexify__slideOut .3s}.igd-shortcode-gallery .igd-file-browser-header .photo-proofing-btn .selection-count{margin-left:3px}.igd-module-gallery{overflow:hidden}.igd-module-gallery .item-selection{position:absolute;z-index:9;top:5px;left:5px;cursor:pointer;display:none}.igd-module-gallery .item-selection circle{display:none}.igd-module-gallery .item-selection:hover svg{fill:#fff}.igd-module-gallery .file-list{overflow:hidden}.igd-module-gallery .file-list .file-item{position:relative;border-radius:0}.igd-module-gallery .file-list .file-item .igd-gallery-folder-images{transition:all .3s ease-in-out}.igd-module-gallery .file-list .file-item:hover{transform:none}.igd-module-gallery .file-list .file-item:hover .item-selection{display:block}.igd-module-gallery .file-list .file-item:hover .igd-gallery-folder-images{transition:all .3s ease-in-out;transform:scale(1.07);box-shadow:0 0 0 1px #ddd}.igd-module-gallery .file-list .file-item.active{transform:none}.igd-module-gallery .file-list .file-item.active .item-selection{display:block}.igd-module-gallery .file-list .file-item.active .item-selection svg{fill:#4285f4}.igd-module-gallery .file-list .file-item.active .igd-gallery-folder-images{transition:all .3s ease-in-out;transform:scale(1.07);box-shadow:0 0 0 1px #ddd}.igd-module-gallery .file-list .file-item .file-item-footer{font-size:1rem}.igd-module-gallery .file-list .file-item:not(.folder-item){max-width:100%}.igd-module-gallery .file-list .file-item:not(.folder-item) .file-item-footer{background:rgba(0,0,0,.5)!important;color:#fff!important;padding:15px 10px!important;position:absolute;bottom:0;left:0;width:100%;justify-content:center;border:none!important}.igd-module-gallery .file-list .file-item:not(.folder-item) .file-item-footer i{margin-right:5px}.igd-module-gallery .file-list .file-item:not(.folder-item) .file-item-footer img{background:rgba(255,255,255,.9);padding:0 2px;border-radius:3px;box-sizing:content-box}.igd-module-gallery .file-list .file-item:not(.folder-item) .file-item-footer span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-module-gallery .file-list .file-item:last-child{margin-right:auto!important}.igd-module-gallery .igd-gallery-folder-images{position:relative;width:100%;height:100%;overflow:hidden;display:flex;align-items:center;justify-content:center}.igd-module-gallery .igd-gallery-folder-images img{position:absolute;-webkit-user-drag:none;opacity:0;pointer-events:none;animation-name:image-fade-out;animation-duration:1.5s}.igd-module-gallery .igd-gallery-folder-images img.active{animation-name:image-fade;animation-duration:1.5s;opacity:1}.igd-module-gallery .igd-gallery-folder-images img:not([src*=drive-thirdparty]){width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.igd-module-gallery .igd-gallery-folder-images i{height:auto;width:auto;font-size:3.5rem;color:#555}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item{overflow:hidden;position:relative;cursor:pointer}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item img{transition:all .3s ease-in-out;-o-object-fit:cover;object-fit:cover;width:100%;height:100%}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.5);transition:all .3s ease-in-out;color:#fff;display:flex;align-items:center;justify-content:center;flex-direction:column;opacity:0;pointer-events:none;text-align:center;padding:15px}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item-overlay .overlay-title{font-weight:600;margin-bottom:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item-overlay .overlay-size{font-size:13px}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item:hover .item-selection{display:block}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item:hover .igd-gallery-item-overlay{opacity:1;pointer-events:all}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item:hover img{box-shadow:0 0 0 1px #ddd;transition:all .3s ease-in-out;transform:scale(1.07)}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item.active .item-selection{display:block}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item.active .item-selection svg{fill:#4285f4}.igd-module-gallery.gallery-view-rounded .file-list .file-item{border-radius:5px}.igd-module-gallery.gallery-view-rounded .react-photo-gallery--gallery .igd-gallery-item{border-radius:7px}.igd-module-gallery.gallery-layout-grid .file-list .file-item{width:var(--column-width)}.igd-module-gallery.gallery-layout-grid .file-list .file-item:not(.folder-item){aspect-ratio:var(--aspect-ratio)}.igd-module-gallery.gallery-layout-grid .react-photo-gallery--gallery .igd-gallery-item{width:var(--column-width);aspect-ratio:var(--aspect-ratio)}.igd-module-gallery.gallery-layout-masonry .file-list .file-item{width:var(--column-width)}.igd-module-gallery.gallery-layout-masonry .file-list .file-item:not(.folder-item){aspect-ratio:var(--aspect-ratio)}@keyframes image-fade{from{opacity:.4}to{opacity:1}}@keyframes image-fade-out{from{opacity:1}to{opacity:0}}.igd-module-uploader,.igd-module-uploader *{box-sizing:border-box}.igd-module-uploader .dashicons-cloud-upload{width:auto;height:auto}.igd-module-uploader.igd-form-uploader{margin-top:1rem!important}.igd-module-uploader .upload-confirmation{display:none!important;margin:20px 0;text-align:center;flex-direction:column;align-items:center}.igd-module-uploader .upload-confirmation h3{color:var(--color-primary)}.igd-module-uploader.show-confirmation{border-style:solid!important}.igd-module-uploader.show-confirmation .upload-confirmation{display:flex!important}.igd-module-uploader.show-confirmation .igd-file-uploader-inner{display:none!important}.igd-file-uploader{display:flex;align-items:center;justify-content:center;flex-direction:column;border-radius:10px!important;border:1px dashed var(--color-primary-light)!important;padding:3px!important;max-width:500px;width:100%!important;background:#fff!important}.igd-file-uploader *{box-sizing:border-box}.igd-file-uploader:not(.igd-form-uploader){margin:auto}.igd-file-uploader.drag-active{border-color:var(--color-primary);border-width:2px;background-color:#bfdbfe;box-shadow:rgba(149,157,165,.2) 0 8px 24px}.igd-file-uploader.drag-active *{pointer-events:none}.igd-file-uploader-body{display:flex;align-items:center;flex-direction:column;width:100%!important;-webkit-user-select:none;-moz-user-select:none;user-select:none}.igd-file-uploader-body h3{font-size:1.2rem;font-weight:600;margin-bottom:10px!important}.igd-file-uploader-body .max-size-label{font-size:.875rem;margin-top:1rem;color:#999}.igd-file-uploader .igd-file-uploader-inner{display:flex!important;align-items:center!important;flex-direction:column!important;border-radius:7px!important;padding:1rem!important;background-color:var(--color-primary-lighter)!important;justify-content:center;width:100%!important;border:1px dashed #ddd!important}.igd-file-uploader .igd-file-uploader-inner p{font-weight:400;margin:5px 0!important;color:#555;line-height:1}.igd-file-uploader .igd-file-uploader-inner .dashicons-cloud-upload{font-size:4rem;height:auto;width:auto;margin-bottom:1rem;line-height:1;color:#555}.igd-file-uploader .igd-file-uploader-inner .igd-file-uploader-buttons{display:flex}.igd-file-uploader .igd-file-uploader-inner .igd-file-uploader-buttons button{display:flex;align-items:center;white-space:nowrap;cursor:pointer;border-radius:.25rem;border:none;padding:.375rem .5rem;margin:.5rem;background-color:var(--color-primary);box-shadow:rgba(149,157,165,.2) 0 8px 24px;color:#fff;transition:all .2s ease-in-out;font-weight:400}.igd-file-uploader .igd-file-uploader-inner .igd-file-uploader-buttons button span{margin-left:5px}.igd-file-uploader .igd-file-uploader-inner .igd-file-uploader-buttons button:hover{background-color:var(--color-primary-light-alt)}.igd-file-uploader .igd-file-uploader-inner .upload-info{display:flex;align-items:center;line-height:1}.igd-file-uploader .igd-file-uploader-inner .upload-info span{margin-right:5px}.igd-file-uploader .igd-file-uploader-inner .upload-info span:after{content:"|";margin-left:5px;color:#000}.igd-file-uploader .igd-file-uploader-inner .upload-info span:last-child{margin-right:0}.igd-file-uploader .igd-file-uploader-inner .upload-info span:last-child:after{content:"";margin-left:0}.igd-file-uploader .igd-file-uploader-inner .igd-file-uploader-add-more{margin-top:15px}.igd-file-uploader.required-error{border-color:red}.igd-file-uploader .file-list-wrapper{display:flex;flex-direction:column;z-index:50;margin-top:5px!important;width:100%!important;max-height:400px;max-width:100%;overflow:hidden!important;background-color:#fff!important;box-shadow:rgba(149,157,165,.2) 0 8px 24px!important;bottom:1rem;right:1rem}.igd-file-uploader .file-list-wrapper.fixed{position:fixed}.igd-file-uploader .file-list-wrapper .start-upload{margin:10px auto}@media (max-width:991px){.igd-file-uploader .file-list-wrapper{max-width:300px;max-height:300px;right:0}}.igd-file-uploader .file-list{display:flex;flex-flow:column;flex-wrap:nowrap!important;overflow-y:auto!important}.igd-file-uploader .file-list-header{display:flex;align-items:center;padding:10px 15px!important;background-color:var(--color-primary)!important;color:#fff;line-height:1;border-radius:5px;margin-bottom:5px}.igd-file-uploader .file-list-header .file-count{margin-right:5px}.igd-file-uploader .file-list-header i{cursor:pointer;height:26px!important;width:26px!important;border:1px solid!important;border-radius:50%!important;font-size:22px!important;display:flex;align-items:center;justify-content:center}.igd-file-uploader .file-list-item{display:flex;align-items:center;padding:8px 12px!important;border-bottom:1px solid #eaeaea!important;width:100%!important;opacity:.5}.igd-file-uploader .file-list-item img{width:22px!important;height:22px!important;margin-right:5px!important}.igd-file-uploader .file-list-item .file-info{display:flex;flex-wrap:wrap;overflow:hidden;width:100%;line-height:1}.igd-file-uploader .file-list-item .file-info .upload-item{display:flex;align-items:center;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;flex:1}.igd-file-uploader .file-list-item .file-info .upload-item-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;margin-right:4px}.igd-file-uploader .file-list-item .file-info .upload-item-size{font-size:.75rem;color:#999}.igd-file-uploader .file-list-item .file-info-percentage{margin-left:auto;text-align:right;font-size:.875rem;display:flex;align-items:center;width:-moz-max-content;width:max-content}.igd-file-uploader .file-list-item .file-info-percentage .igd-spinner{margin-top:0;margin-right:5px;border-radius:50%}.igd-file-uploader .file-list-item .file-info-progress{width:100%;height:4px;background-color:#ddd;border-radius:.25rem;margin-top:7px;overflow:hidden;position:relative;align-items:center;justify-content:space-between;display:none}.igd-file-uploader .file-list-item .file-info-progress-bar{width:var(--percentage);height:100%;background-color:var(--color-primary-light-alt);border-radius:.25rem;position:absolute;left:0;top:0;transition:width .5s ease-in-out}.igd-file-uploader .file-list-item .file-info-error{color:red;width:100%;font-size:.75rem;margin-top:3px}.igd-file-uploader .file-list-item .file-info .igd-spinner{width:20px;margin-left:7px}.igd-file-uploader .file-list-item .file-info .percentage{margin:0 7px}.igd-file-uploader .file-list-item .file-info i{margin-left:7px;height:22px!important;width:22px!important;font-size:16px;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer}.igd-file-uploader .file-list-item .file-info i:not(.dashicons-saved,.dashicons-no-alt){border:1px solid #ddd}.igd-file-uploader .file-list-item .file-info .dashicons-controls-play{padding-left:3px}.igd-file-uploader .file-list-item .file-info .remove-file{background:#ff9f10;color:#fff;margin-left:10px}.igd-file-uploader .file-list-item:hover{background-color:#e0f2fe}.igd-file-uploader .file-list-item.uploaded{opacity:1}.igd-file-uploader .file-list-item.uploaded .file-info .dashicons-saved{background:var(--color-primary);color:#fff}.igd-file-uploader .file-list-item.uploaded .file-info .remove-file{background:0 0;color:#ff9f10;border:1px solid #ff9f10;opacity:.6}.igd-file-uploader .file-list-item.uploaded .file-info .remove-file:hover{background:#ff9f10;color:#fff;opacity:1}.igd-file-uploader .file-list-item.uploaded .file-info-progress{display:flex}.igd-file-uploader .file-list-item.uploaded .file-info-progress-bar{width:100%}.igd-file-uploader .file-list-item.active{opacity:.8}.igd-file-uploader .file-list-item.active .file-info-progress{display:flex}.igd-file-uploader .file-list::-webkit-scrollbar{width:5px}.igd-file-uploader .file-list::-webkit-scrollbar-track{background:#f1f1f1}.igd-file-uploader .file-list::-webkit-scrollbar-thumb{background:#ccc}.igd-file-uploader .file-list::-webkit-scrollbar-thumb:hover{background:#bbb}.igd-file-uploader .cancel-upload{position:absolute;top:15px;right:15px;cursor:pointer;border-radius:5px;height:40px;width:40px;font-size:25px;display:flex;align-items:center;justify-content:center;color:rgba(255,0,0,.3)}.igd-file-uploader .cancel-upload:hover{color:rgba(255,0,0,.5)}.igd-file-browser .igd-file-uploader{position:fixed!important;right:15px;bottom:15px;z-index:2;box-shadow:0 0 10px rgba(0,0,0,.2)}.igd-file-browser .igd-file-uploader:has(.file-list-wrapper) .igd-file-uploader-inner .dashicons-cloud-upload{display:none}@media (max-width:767px){.igd-file-browser .igd-file-uploader{position:absolute!important;height:100%;right:unset;bottom:unset;width:calc(100% - 20px)!important;justify-content:flex-start;background:rgba(0,0,0,.5)!important}.igd-file-browser .igd-file-uploader .igd-file-uploader-inner{background:linear-gradient(var(--color-primary-lighter),var(--color-primary-lighter)),#fff!important}}.ff-el-is-error .igd-file-uploader,.frm_blank_field .igd-file-uploader,.gfield_error .igd-file-uploader,.mf-input-wrapper.has-error .igd-file-uploader,.nf-error .igd-file-uploader,.wpforms-has-error .igd-file-uploader{border-color:red!important}@keyframes ssc-loading{from{transform:translateX(-100%)}to{transform:translateX(100%)}}.ssc-circle,.ssc-head-line,.ssc-line,.ssc-square{position:relative;overflow:hidden}.ssc-circle:after,.ssc-head-line:after,.ssc-line:after,.ssc-square:after{content:"";animation:ssc-loading 1.3s infinite;height:100%;left:0;position:absolute;right:0;top:0;transform:translateX(-100%);z-index:1;background:linear-gradient(90deg,transparent,rgba(255,255,255,.3),transparent)}.ssc{cursor:progress;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ssc-card{display:block;width:100%;border-radius:5px;box-shadow:0 2px 4px 1px rgba(0,0,0,.17);background-color:#fff;margin-bottom:15px}.ssc-circle{display:block;background-color:rgba(0,0,0,.17);border-radius:50%;width:30px;height:30px}.ssc-hr{display:block;width:100%;background-color:rgba(0,0,0,.17);height:2px}.ssc-line{display:block;background-color:rgba(0,0,0,.17);border-radius:15px;height:12px}.ssc-line:last-child{margin-bottom:unset}.ssc-head-line{display:block;background-color:rgba(0,0,0,.17);border-radius:15px;width:100%;height:24px}.ssc-square{display:block;background-color:rgba(0,0,0,.17);width:100%;height:100px;border-radius:5px}.flex{display:flex}.flex-1{flex:1}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-between{justify-content:space-between}.w-full{width:100%}.mb-3{margin-bottom:.875rem}.mr-2{margin-right:.5rem}.w-16{width:4rem}.w-6{width:1.5rem}.h-6{height:1.5rem}.p-4{padding:1rem}body.google-drive_page_integrate-google-drive-private-folders.swal2-shown{overflow:auto!important;padding-right:0!important}.igd-private-folders,.igd-private-folders *{box-sizing:border-box}.igd-private-folders-header{display:flex;width:calc(100% + 20px);margin-left:-20px;background:#fff;padding:20px 20px;position:sticky;top:32px;border-bottom:1px solid #ddd;box-shadow:0 1px 5px rgba(0,0,0,.1);z-index:99;margin-bottom:30px}.igd-private-folders-header .header-title{display:flex;align-items:center;line-height:1;margin-right:auto}.igd-private-folders-header .header-title img{margin-right:15px}.igd-private-folders-header .header-title-text{display:flex;flex-direction:column}.igd-private-folders-header .header-title-text h3{font-size:1.2rem;margin:0 0 5px 0}.igd-private-folders-header .header-title-text span{margin-top:2px;color:#7a7a7a}.igd-private-folders-header .igd-btn{margin-left:10px}@media (max-width:767px){.igd-private-folders-header{position:relative;top:0}}.igd-private-folders .private-folders-list{background:#fff;padding:20px;border-radius:10px;margin:10px 15px 30px 0;position:relative;overflow:hidden;min-height:70vh}.igd-private-folders .private-folders-list-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.igd-private-folders .private-folders-list-header ul{display:flex;align-items:center}.igd-private-folders .private-folders-list-header ul li{margin-right:5px;margin-bottom:0;cursor:pointer;color:#2fb44b;font-weight:600;font-size:.875rem}.igd-private-folders .private-folders-list-header ul li:not(:last-child):after{content:"|";margin:0 5px;color:#555}.igd-private-folders .private-folders-list-header ul li span{text-transform:capitalize}.igd-private-folders .private-folders-list-header ul li.active{color:#555c66}.igd-private-folders .private-folders-list-header ul li:hover{color:#248c3a}.igd-private-folders .private-folders-list-header .users-search{display:flex;align-items:center}.igd-private-folders .private-folders-list-header .users-search input{height:40px;border:1px solid rgba(47,180,75,.5)}.igd-private-folders .private-folders-list-header .users-search button{margin-left:10px}.igd-private-folders .private-folders-list .swal2-container{position:absolute;width:100%;height:100%;z-index:9}.igd-private-folders .private-folders-list .column-username span{margin-left:10px}.igd-private-folders .private-folders-list .column-actions button{display:inline-flex;align-items:center;padding:7px 10px;line-height:1}.igd-private-folders .private-folders-list .column-actions button i{margin-right:5px}.igd-private-folders .private-folders-list .column-folders .folder-item{display:inline-flex;align-items:center;border:1px solid rgba(47,180,75,.5);width:-moz-max-content;width:max-content;padding:5px;margin:3px;border-radius:5px;color:#7a7a7a}.igd-private-folders .private-folders-list .column-folders .folder-item img{margin-right:5px}.igd-private-folders .private-folders-list .private-folders-table{border-radius:10px;overflow:hidden;border-color:#efefef}.igd-private-folders .private-folders-list .private-folders-table thead th{padding:15px;border-color:#efefef}.igd-private-folders .private-folders-list .private-folders-table tbody tr td{padding:10px;vertical-align:middle}@media (max-width:767px){.igd-private-folders .private-folders-list{margin-left:10px}.igd-private-folders .private-folders-list-header{flex-direction:column}.igd-private-folders .private-folders-list .private-folders-table-wrap{overflow-x:auto}}.igd-private-folders .igd-pro-modal-wrap{position:absolute;z-index:9}.igd-private-folders .igd-pro-modal-close{display:none}.igd-details .details-file-name{width:calc(100% - 20px)}.igd-player{line-height:1.5;display:flex;align-items:flex-start;flex-direction:column;height:100%;background-color:#fff}.igd-player.playlist-left,.igd-player.playlist-right{padding:10px}.igd-player.playlist-left .media-wrap,.igd-player.playlist-right .media-wrap{flex-direction:column;align-items:flex-start;border:none}.igd-player.playlist-left .media-wrap .igd-player-media-wrap,.igd-player.playlist-right .media-wrap .igd-player-media-wrap{margin-top:10px;margin-left:0}.igd-player.playlist-left .igd-player-playlist .playlist-item-wrap,.igd-player.playlist-right .igd-player-playlist .playlist-item-wrap{padding:5px 0}.igd-player.playlist-left.type-audio .media-wrap,.igd-player.playlist-right.type-audio .media-wrap{border:1px solid #eee}.igd-player.playlist-left{flex-wrap:wrap;flex-direction:row;-moz-column-gap:10px;column-gap:10px}.igd-player.playlist-left .igd-player-playlist{width:calc(40% - 10px);order:1;margin:0;padding-right:10px;border-right:1px solid #eee}.igd-player.playlist-left .playlist-search{margin:0}.igd-player.playlist-left .media-wrap{flex:1;order:2;position:sticky;top:10px;z-index:9}.igd-player.playlist-left:has(.igd-player-playlist) .media-wrap{max-width:60%}.igd-player.playlist-right{flex-wrap:wrap;flex-direction:row;-moz-column-gap:10px;column-gap:10px;padding-right:5px}.igd-player.playlist-right .igd-player-playlist{width:calc(40% - 10px);order:2;margin:0;padding-left:10px;border-left:1px solid #eee;padding-right:5px}.igd-player.playlist-right .playlist-search{margin:0}.igd-player.playlist-right .media-wrap{flex:1;order:1;position:sticky;top:10px;z-index:9}.igd-player.playlist-right:has(.igd-player-playlist) .media-wrap{max-width:60%}.igd-player.playlist-bottom .playlist-search{width:calc(100% - 20px);margin:10px auto}.igd-player .media-wrap{width:100%;display:flex;align-items:center}.igd-player .media-wrap .current-item{display:flex;align-items:center;overflow:hidden}.igd-player .media-wrap .current-item img{margin-right:10px;width:40px}.igd-player .media-wrap .current-item .item-caption{display:flex;flex-direction:column;overflow:hidden}.igd-player .media-wrap .current-item .item-caption .item-title{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-player .media-wrap .current-item .item-caption .item-description{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-player .media-wrap .igd-player-media-wrap{position:relative}.igd-player .media-wrap iframe{aspect-ratio:16/9}.igd-player.type-video .igd-player-media-wrap{width:100%;height:0;overflow:hidden;padding-bottom:56.25%}.igd-player.type-video .igd-player-media-wrap .igd-player-media-video,.igd-player.type-video .igd-player-media-wrap .plyr,.igd-player.type-video .igd-player-media-wrap video{position:absolute;top:0;left:0;width:100%!important;height:100%!important}.igd-player.type-audio .media-wrap{padding:15px;border-bottom:1px solid #ddd;background:#f5f5f5}.igd-player.type-audio .igd-player-media-wrap{margin-left:auto}.igd-player.type-audio .igd-player-media-wrap .plyr__controls{padding:0;background:0 0}.igd-player .igd-player-playlist{width:100%;height:100%;overflow-y:auto}.igd-player .igd-player-playlist .playlist-item{position:relative;cursor:pointer;display:flex;align-items:center;color:#333;padding:3px}.igd-player .igd-player-playlist .playlist-item.active{color:var(--color-primary);font-weight:700}.igd-player .igd-player-playlist .playlist-item.active .dashicons{border-color:var(--color-primary);color:var(--color-primary)}.igd-player .igd-player-playlist .playlist-item:not(:has(img)){padding:5px}.igd-player .igd-player-playlist .playlist-item-wrap{border-bottom:1px solid #eee;padding:5px 10px}.igd-player .igd-player-playlist .playlist-item-wrap:last-child{border-bottom:0}.igd-player .igd-player-playlist .playlist-item-wrap .sub-item{margin-left:30px}.igd-player .igd-player-playlist .playlist-item-wrap:hover{background-color:#f5f5f5}.igd-player .igd-player-playlist .playlist-item .item-index{margin-right:7px;white-space:nowrap}.igd-player .igd-player-playlist .playlist-item .igd-spinner{margin-left:0;width:18px;height:18px;margin-right:5px}.igd-player .igd-player-playlist .playlist-item img{width:30px;height:30px;-o-object-fit:cover;object-fit:cover;border-radius:3px;margin-right:5px}.igd-player .igd-player-playlist .playlist-item .item-name{margin-right:auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-player .igd-player-playlist .playlist-item .item-size{margin:0 10px;color:#777;white-space:nowrap;font-size:.75rem}.igd-player .igd-player-playlist .playlist-item .dashicons{font-size:25px;color:#555c66;height:auto;width:auto}.igd-player .igd-player-playlist .playlist-item .dashicons.dashicons-arrow-down,.igd-player .igd-player-playlist .playlist-item .dashicons.dashicons-arrow-right{margin-left:-5px;margin-right:5px}.igd-player .igd-player-playlist .playlist-item .dashicons:hover{color:#444;border-color:var(--color-primary)}.igd-player .igd-player-playlist .playlist-item:last-child{border-bottom:0}.igd-player .igd-player-playlist .search-result-info{display:flex;align-items:center;margin-bottom:7px;margin-top:7px}.igd-player .igd-player-playlist .search-result-info .clear-button{margin-left:7px;padding:7px 10px}.igd-player .igd-player-playlist::-webkit-scrollbar{width:5px;height:5px}.igd-player .igd-player-playlist::-webkit-scrollbar-thumb{background:#ddd;border-radius:10px}.igd-player .igd-player-playlist::-webkit-scrollbar-track{background:#eee;border-radius:10px}.igd-player .playlist-search{position:relative;display:flex;align-items:center;transition:width .3s linear;line-height:1;overflow:hidden;border:1px solid #ddd;border-radius:5px;width:100%;padding:0 15px;margin:10px 0}.igd-player .playlist-search .search-dismiss{cursor:pointer}.igd-player .playlist-search input{height:40px;padding:0 15px;font-size:14px;width:100%;border:none!important;box-shadow:none!important;border-radius:0!important;background:0 0}.igd-player .playlist-search input:focus{outline:0}.igd-player .playlist-search .search-submit{position:relative;z-index:2}.igd-player .playlist-search .search-submit .dashicons{font-family:dashicons}.igd-player .playlist-search:has(input:focus){box-shadow:rgba(0,0,0,.24) 0 3px 8px}.igd-player .playlist-search.active .input-wrap{right:-10px}.igd-player .playlist-search.active .search-submit svg{fill:#333}.igd-player video{display:inline-block;max-width:100%;min-height:100%}.igd-player audio{display:none;max-width:100%;width:100%}.igd-player .plyr__controls .plyr__controls__item.plyr__time{white-space:nowrap}.igd-player .plyr__control:focus{background:0 0;color:currentColor}.igd-player .plyr__volume input[type=range]{max-width:60px}.igd-player.size-sm.type-audio .media-wrap,.igd-player.size-xs.type-audio .media-wrap{flex-direction:column}.igd-player.size-sm.type-audio .media-wrap .current-item img,.igd-player.size-xs.type-audio .media-wrap .current-item img{width:30px}.igd-player.size-sm.type-audio .media-wrap .igd-player-media-wrap,.igd-player.size-xs.type-audio .media-wrap .igd-player-media-wrap{margin-top:15px;margin-left:0}.igd-player.size-sm .plyr__volume input[type=range],.igd-player.size-xs .plyr__volume input[type=range]{max-width:40px;min-width:40px}.igd-player.size-sm.playlist-left,.igd-player.size-sm.playlist-right,.igd-player.size-xs.playlist-left,.igd-player.size-xs.playlist-right{flex-direction:column}.igd-player.size-sm.playlist-left .igd-player-playlist,.igd-player.size-sm.playlist-left .media-wrap,.igd-player.size-sm.playlist-right .igd-player-playlist,.igd-player.size-sm.playlist-right .media-wrap,.igd-player.size-xs.playlist-left .igd-player-playlist,.igd-player.size-xs.playlist-left .media-wrap,.igd-player.size-xs.playlist-right .igd-player-playlist,.igd-player.size-xs.playlist-right .media-wrap{width:100%;max-width:100%!important}.igd-player.size-sm.playlist-left .media-wrap,.igd-player.size-sm.playlist-right .media-wrap,.igd-player.size-xs.playlist-left .media-wrap,.igd-player.size-xs.playlist-right .media-wrap{position:unset}.igd-player.size-sm.playlist-left .igd-player-playlist,.igd-player.size-sm.playlist-right .igd-player-playlist,.igd-player.size-xs.playlist-left .igd-player-playlist,.igd-player.size-xs.playlist-right .igd-player-playlist{order:999}.igd-lightbox{z-index:999999;position:fixed}.igd-lightbox .lg-backdrop{background:rgba(0,0,0,.9)!important}.igd-lightbox .lg-sub-html h4,.igd-lightbox .lg-sub-html p{color:inherit}.igd-lightbox:not(.gallery-lightbox) .lg-sub-html{background:#111!important;display:flex;align-items:center;padding:10px 15px;max-width:calc(100% - 100px)}.igd-lightbox .lg-outer .lg-thumb-item{height:60px}.igd-lightbox .item-name{display:flex;align-items:center;max-width:75%;overflow:hidden}.igd-lightbox .item-name img{margin-right:10px;width:24px}.igd-lightbox .item-name span{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.igd-lightbox.no-download .lg-download{display:none}.igd-lightbox .lg-outer[data-lg-slide-type=iframe] .lg-actual-size,.igd-lightbox .lg-outer[data-lg-slide-type=iframe] .lg-zoom-in,.igd-lightbox .lg-outer[data-lg-slide-type=iframe] .lg-zoom-out,.igd-lightbox .lg-outer[data-lg-slide-type=video] .lg-actual-size,.igd-lightbox .lg-outer[data-lg-slide-type=video] .lg-zoom-in,.igd-lightbox .lg-outer[data-lg-slide-type=video] .lg-zoom-out{display:none}.igd-lightbox .lg-outer[data-lg-slide-type=iframe] .igd-hidepopout{width:60px;height:55px;position:absolute;opacity:1;right:12px;top:0;z-index:10000000;background-color:#d1d1d1;cursor:default!important}.igd-lightbox .lg-item:has(video>source[type*="audio/"]) .lg-video-cont{margin-top:-60px;max-height:60px;max-width:500px}.igd-lightbox .lg-item:has(video>source[type*="audio/"]) .lg-video-cont .lg-video-poster{margin-top:-20px;max-width:100px!important;height:100px!important;max-height:none!important}@media (max-width:767px){.igd-lightbox .lg-item .lg-video-cont{max-width:90%!important}}.igd-select-files-modal .components-modal__header{border-bottom:1px solid #ddd;box-shadow:0 1px 5px rgba(0,0,0,.1)}.igd-select-files-modal .components-modal__header-heading{width:100%}.igd-select-files-modal .shortcode-module-header{display:flex;flex-direction:column;justify-content:center;align-items:center;margin:30px auto}.igd-select-files-modal .shortcode-module-header .module-title{font-size:1.2rem;margin-bottom:10px;font-weight:600}.igd-select-files-modal .shortcode-module .shortcode-types{display:flex;flex-wrap:wrap;justify-content:center}.igd-select-files-modal .shortcode-module .shortcode-types .shortcode-type{width:calc(20% - 20px);margin:10px;padding:2rem 1.5rem;border:1px solid #ddd;border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;max-width:250px;transition:background .3s ease}.igd-select-files-modal .shortcode-module .shortcode-types .shortcode-type i{height:auto;width:auto;border-radius:50%;padding:15px;border:1px solid #ddd}.igd-select-files-modal .shortcode-module .shortcode-types .shortcode-type span{font-size:1rem;margin-top:15px}.igd-select-files-modal .shortcode-module .shortcode-types .shortcode-type.active{background:var(--color-primary-light);border:1px solid var(--color-primary);color:#fff}.igd-select-files-modal .shortcode-module .shortcode-types .shortcode-type.active i{border:1px solid #fff}.igd-select-files-modal .shortcode-module .shortcode-types .shortcode-type:hover{background:var(--color-primary-light);border:1px solid var(--color-primary);color:#fff}.igd-select-files-modal .shortcode-module .shortcode-types .shortcode-type:hover i{border:1px solid #fff}.igd-select-files-modal .shortcode-module .settings-field{display:flex;flex-wrap:wrap;margin-bottom:10px;align-items:center;border:1px dashed #ddd;border-radius:5px;padding:12px 18px}.igd-select-files-modal .shortcode-module .settings-field-title{font-size:1.2rem;margin-bottom:20px;font-weight:600}.igd-select-files-modal .shortcode-module .settings-field-label{width:200px;font-weight:600;font-size:1rem;display:flex;justify-content:space-between}.igd-select-files-modal .shortcode-module .settings-field-label:after{content:":";margin-left:auto}.igd-select-files-modal .shortcode-module .settings-field-content{display:flex;flex-direction:column;align-items:flex-start;margin-left:20px;flex:1}.igd-select-files-modal .shortcode-module .settings-field-content .components-button i{margin-right:5px}.igd-select-files-modal .shortcode-module .settings-field-content .description{font-size:.8rem;margin-top:10px;text-align:left}.igd-select-files-modal .shortcode-module .settings-field.filter-field .filter-field-input{display:flex;flex-direction:column}.igd-select-files-modal .shortcode-module .settings-field.filter-field .filter-field-all{display:flex;align-items:center;justify-content:flex-start;margin-top:15px;flex-wrap:wrap}.igd-select-files-modal .shortcode-module .settings-field.filter-field .filter-field-all>div{display:flex;align-items:center}.igd-select-files-modal .shortcode-module .settings-field.filter-field .filter-field-all>div:first-child{margin-right:20px}.igd-select-files-modal .shortcode-module .settings-field.filter-field .filter-field-all-label{margin-right:10px;font-weight:500}.igd-select-files-modal .shortcode-module .settings-field.filter-field .filter-field-all .description{width:100%;text-align:left}.igd-select-files-modal .shortcode-module .settings-field.sort-field .sort-field-section{display:flex;flex-direction:column}.igd-select-files-modal .shortcode-module .settings-field.sort-field .sort-field-section:first-child{margin-right:35px;padding-right:15px;border-right:1px solid #ddd}.igd-select-files-modal .shortcode-module .settings-field.sort-field .sort-field-section-wrap{display:flex;margin:15px 30px}.igd-select-files-modal .shortcode-module .settings-field.sort-field .sort-field-section-label{margin-bottom:15px;font-weight:500;text-align:left}.igd-select-files-modal .shortcode-module .settings-field.sort-field .sort-field-section .sort-item{display:flex;align-items:center;margin-bottom:10px;cursor:pointer;position:relative}.igd-select-files-modal .shortcode-module .settings-field.sort-field .sort-field-section .sort-item i{display:none;position:absolute;left:-25px}.igd-select-files-modal .shortcode-module .settings-field.sort-field .sort-field-section .sort-item.active{color:var(--color-primary)}.igd-select-files-modal .shortcode-module .settings-field.sort-field .sort-field-section .sort-item.active i{display:block}.igd-select-files-modal .shortcode-module .settings-field.filter-users-field .filter-users-group{display:flex;flex-direction:column}.igd-select-files-modal .shortcode-module .settings-field.filter-users-field .filter-users{margin-top:15px;display:flex;flex-direction:column;border:1px dashed #ddd;padding:15px;border-radius:7px}.igd-select-files-modal .shortcode-module .settings-field.filter-users-field .filter-users-title{font-weight:500;font-size:1rem;margin-bottom:10px;text-align:left}.igd-select-files-modal .shortcode-module .settings-field.filter-users-field .filter-users-section{display:flex;align-items:center}.igd-select-files-modal .shortcode-module .settings-field.filter-users-field .filter-users-section:first-child{margin-right:20px}.igd-select-files-modal .shortcode-module .settings-field.filter-users-field .filter-users-section-label{margin-right:10px;font-weight:500}.igd-select-files-modal .shortcode-module .settings-field.filter-users-field .filter-users-section-wrap{display:flex;flex-wrap:wrap;margin-bottom:15px}.igd-select-files-modal .shortcode-module .settings-field.filter-users-field .filter-users-section-wrap .description{width:100%}.igd-select-files-modal .shortcode-module .settings-field input,.igd-select-files-modal .shortcode-module .settings-field select{height:40px;border-radius:5px;border:1px solid #ddd;font-size:.8rem;width:350px;max-width:100%}.igd-select-files-modal .shortcode-module .settings-field input:disabled,.igd-select-files-modal .shortcode-module .settings-field select:disabled{background:#f5f5f5;color:#aaa;cursor:not-allowed}.igd-select-files-modal .shortcode-module .settings-field .igd-select{width:400px}.igd-select-files-modal-header{display:flex;align-items:center;justify-content:space-between}.igd-select-files-modal-header .header-title{font-size:1.2rem;color:var(--color-primary);display:flex;align-items:center}.igd-select-files-modal-header .header-title i{margin-right:10px}.igd-select-files-modal-header button{padding:7px 8px}.igd-account-item{padding:1rem;display:flex;border:0 solid transparent;box-shadow:rgba(99,99,99,.2) 0 2px 8px 0;border-radius:.5rem;align-items:center;max-width:450px;margin-bottom:1rem;background:#fff}.igd-account-item img{width:50px;height:50px;margin-right:1rem;border-radius:50%}.igd-account-item-info{display:flex;flex-flow:column}.igd-account-item-info .account-name{font-size:1rem}.igd-account-item-info .account-email{color:#757575}.igd-account-item .igd-account-item-action{margin-left:auto}.igd-account-item .igd-account-item-action button{background-color:#ffe9d9;color:#f06500;border-color:transparent}.igd-account-item:hover button{background:#f96;color:#fff}.no-account-placeholder{display:flex;flex-flow:column;align-items:center;margin:10vh auto;padding:1.5rem 1rem;border-radius:.5rem;width:30rem;background:#fff;box-shadow:0 0 .5rem rgba(0,0,0,.1)}.no-account-placeholder>img{width:200px;margin-bottom:15px}.no-account-placeholder .placeholder-heading{font-size:1.2rem;margin-bottom:7px;font-weight:600}.no-account-placeholder button{margin-top:1.5rem;padding:7px 10px;background:#fff;color:#555;border-radius:3px;border:1px solid #ccc}.no-account-placeholder button img{width:24px;height:24px;margin-right:10px}.add-account-btn{padding:10px 15px;background:#fff;color:#555;border-radius:3px;border:1px solid #ccc}.add-account-btn img{width:24px;height:24px;margin-right:10px}.igd .igd-spinner{margin-top:0;border-radius:50%}.sortable-item{z-index:999999}.igd-select-sources-wrap .igd-browser-wrap{flex:1;margin-right:1rem}.igd-select-sources-wrap .igd-selected-list{width:24%;max-width:300px}.igd-select-sources-wrap.view-list .igd-browser-wrap{width:100%;margin-right:0}.igd-select-sources-wrap.view-list .igd-selected-list{width:100%;max-width:100%;margin-top:1rem}.igd-pagination{display:flex;padding:0}.igd-pagination li{justify-content:center!important;flex-wrap:wrap!important;list-style:none;position:relative;display:flex;align-items:center;padding:8px 16px;text-decoration:none!important;font-size:15px;margin-left:-1px;border:1px solid #dee2e6;margin-right:0;margin-top:0;cursor:pointer}.igd-pagination li.selected,.igd-pagination li:hover{background:var(--color-primary);color:#fff;border-color:var(--color-primary)}.igd-pagination li.disabled{background:#eee;cursor:not-allowed}.igd-pagination li:first-child{border-top-left-radius:3px;border-bottom-left-radius:3px}.igd-pagination li:last-child{border-top-right-radius:3px;border-bottom-right-radius:3px}.igd-pagination li svg{fill:currentColor}.igd-move-modal .components-modal__content{display:flex;flex-flow:column}.igd-file-item .igd-file-thumbnail{-webkit-user-drag:none}.template-tags{margin-top:10px;border-bottom:1px solid #eee;padding-bottom:8px;width:100%}.template-tags-title{width:100%;margin-bottom:7px;text-align:left;font-size:1rem;display:flex;align-items:center}.template-tags-title i{margin-right:7px;cursor:pointer}.template-tags-title span:nth-child(3){margin-left:7px}.template-tags-title+.template-tags-list{display:none}.template-tags-title.active i:before{content:"\f343"}.template-tags-title.active+.template-tags-list{display:flex}.template-tags-list{display:flex;flex-wrap:wrap}.template-tags-list .tag{color:#2fb44b;margin-right:10px;margin-bottom:7px;background:rgba(47,180,75,.1);padding:7px 10px;border-radius:5px;cursor:pointer;font-size:.87rem}.template-tags-list .tag:hover{background:rgba(47,180,75,.7);color:#fff}.template-tags-list .tag-break{width:100%;border-top:1px solid #eee;margin-top:5px;margin-bottom:11px}.template-tags-list .tag-break+.tag-break{display:none}.template-folder{padding:7px 10px;border-radius:5px;background:#eaeaea;margin-right:10px;font-size:.9rem;color:#555;display:flex;flex-wrap:wrap;align-items:center;width:-moz-max-content;width:max-content;line-height:1}.template-folder-account{margin-right:10px}.template-folder-item{background:#fff;padding:5px 7px;border-radius:3px;font-size:.8rem;display:flex;align-items:center;justify-content:center}.template-folder i,.template-folder img{margin-right:7px;width:20px}.template-folder-wrap{display:flex;align-items:center;width:100%}.template-folder-wrap button{font-size:.875rem;padding:7px;margin-left:10px}.template-folder-wrap button.btn-danger{background:#ff9f10;border-color:rgba(255,159,16,.5)}.template-folder-wrap button.btn-danger:hover{background:rgba(255,159,16,.8)}.template-folder-error{color:#ff9f10;font-size:.8rem;margin-top:10px;display:flex;align-items:center}.template-folder-error i{margin-right:5px}.template-folder .dashicons-no-alt{color:#ff9f10;cursor:pointer;margin-left:10px}.igd-shortcode-wrap{-webkit-user-select:none;-moz-user-select:none;user-select:none;overflow-y:auto;margin-bottom:1rem;color:#333;box-sizing:border-box}.igd-shortcode-wrap *{box-sizing:inherit}.igd-shortcode-wrap::-webkit-scrollbar{width:5px}.igd-shortcode-wrap::-webkit-scrollbar-thumb{background:var(--color-primary-light);border-radius:10px}.igd-shortcode-wrap::-webkit-scrollbar-track{background:#ddd;border-radius:10px}.igd-shortcode-wrap.igd-shortcode-browser,.igd-shortcode-wrap.igd-shortcode-gallery,.igd-shortcode-wrap.igd-shortcode-search{border:1px solid #ddd;border-radius:.5rem}.igd-shortcode-wrap.igd-shortcode-browser .igd-file-browser,.igd-shortcode-wrap.igd-shortcode-gallery .igd-file-browser,.igd-shortcode-wrap.igd-shortcode-search .igd-file-browser{align-items:stretch}.igd-shortcode-wrap.igd-shortcode-browser .igd-file-browser .igd-details,.igd-shortcode-wrap.igd-shortcode-browser .igd-file-browser .igd-file-browser-header,.igd-shortcode-wrap.igd-shortcode-gallery .igd-file-browser .igd-details,.igd-shortcode-wrap.igd-shortcode-gallery .igd-file-browser .igd-file-browser-header,.igd-shortcode-wrap.igd-shortcode-search .igd-file-browser .igd-details,.igd-shortcode-wrap.igd-shortcode-search .igd-file-browser .igd-file-browser-header{top:0}.igd-shortcode-wrap.igd-shortcode-search .igd-file-browser-header{height:70px}.igd-shortcode-wrap.igd-shortcode-search .igd-file-browser-header .header-action{width:100%}.igd-shortcode-wrap.igd-shortcode-search .igd-file-browser-header .header-action .igd-search-bar{margin-left:0;width:100%;height:50px;position:relative}.igd-shortcode-wrap.igd-shortcode-audioVideo{overflow:hidden}.igd-shortcode-wrap.igd-shortcode-slider{overflow-y:unset}.igd-shortcode-wrap.igd-shortcode-media{border:1px solid #eee;overflow-y:unset}.igd-video-player video{position:static;transform:none}.igd-video-player audio{height:revert!important}.igd-download-link,.igd-view-link{display:block}.igd-embed-image{max-width:100%}.igd-slider{--slide-height:300px;--slide-gap:5px}.igd-slider .slick-next,.igd-slider .slick-prev{z-index:9}.igd-slider .slick-next:before,.igd-slider .slick-prev:before{display:none}.igd-slider .slick-prev{left:-25px}.igd-slider .slick-next{right:-25px}.igd-slider .slick-dots{position:static}.igd-slider .slick-dots li button:before{font-size:15px}.igd-slider .slider-img-wrap{height:100%;width:100%;position:relative}.igd-slider .slider-img-wrap img{height:100%;width:100%;-o-object-fit:cover;object-fit:cover}.igd-slider .slider-content-wrap{position:absolute;top:0;left:0;right:0;padding:1rem;color:#fff;text-align:center;width:100%;height:100%;opacity:0;background:linear-gradient(to bottom,rgba(0,0,0,.5) 50%,rgba(0,0,0,0) 100%);box-sizing:border-box;transition:all .3s ease-in-out;overflow:hidden;display:flex;align-items:center;justify-content:center}.igd-slider .slider-content-wrap h3{font-size:1rem;margin-bottom:0;color:#fff}.igd-slider .slider-content-wrap p{font-size:.875rem;margin-bottom:0;color:#fff}.igd-slider .slider-actions{display:flex;justify-content:center;align-items:center;margin:10px 0}.igd-slider .slider-actions .slider-action{cursor:pointer;transition:transform .3s ease-in-out}.igd-slider .slider-actions .slider-action.action-download{margin-left:20px}.igd-slider .slider-actions .slider-action svg{width:30px;height:30px;fill:#fff}.igd-slider .slider-actions .slider-action:hover{transform:scale(1.1)}.igd-slider .slick-slide{height:var(--slide-height)}.igd-slider .slick-slide>div{height:100%;position:relative;margin:0 var(--slide-gap)}.igd-slider .slick-slide .slider-item-wrap{position:absolute;width:100%;height:100%}.igd-slider .slick-slide:hover .slider-content-wrap{opacity:1}.igd-access-denied-placeholder{max-width:500px;margin:20px auto;padding:2rem;background:#f1f1f1;border-radius:.5rem;text-align:center}.igd-access-denied-placeholder img{max-width:100px;margin-bottom:15px}.igd-access-denied-placeholder h3{font-size:1.5rem;font-weight:600;margin-bottom:1rem}.igd-access-denied-placeholder p{font-size:1rem;margin-bottom:1rem;color:#555}.igd-disqus-wrap{display:none}[data-widget_type="igd_browser.default"] .elementor-widget-empty-icon:empty,[data-widget_type="igd_shortcodes.default"] .elementor-widget-empty-icon:empty{height:200px;background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIiB2aWV3Qm94PSIwIDAgOTkgOTkiIGZpbGw9Im5vbmUiPgo8cGF0aCBkPSJNOTguNTEzMyA0OS4yMTMxQzk4LjUxMzMgNzYuMzkyOCA3Ni40NjA0IDk4LjQyNjIgNDkuMjU2NyA5OC40MjYyQzIyLjA1MyA5OC40MjYyIDAgNzYuMzkyOCAwIDQ5LjIxMzFDMCAyMi4wMzM1IDIyLjA1MyAwIDQ5LjI1NjcgMEM3Ni40NjA0IDAgOTguNTEzMyAyMi4wMzM1IDk4LjUxMzMgNDkuMjEzMVoiIGZpbGw9InVybCgjcGFpbnQwX2xpbmVhcl8xNjgwXzIzNjUpIi8+CjxwYXRoIGQ9Ik0yNy42OTUzIDcwLjU1ODdDMjcuOTY1OSA3MC4wNDM1IDI4LjE0NjIgNjkuNzA3NSAyOC4zMjY2IDY5LjM5MzlDMzEuMTY3NSA2NC40ODg1IDM0LjA1MzUgNTkuNTgzIDM2Ljg3MTkgNTQuNjc3NkMzNy4yNzc3IDUzLjk2MDggMzcuNzUxMiA1My43MzY4IDM4LjU2MjkgNTMuNzM2OEM0OC42NjM5IDUzLjc1OTIgNTguNzY0OCA1My43NTkyIDY4Ljg2NTggNTMuNzU5MkM2OS4xNTg5IDUzLjc1OTIgNjkuNDc0NiA1My43MzY4IDY5Ljc2NzcgNTMuNzgxNkM3MS4xNDMgNTMuOTM4NCA3MS44MTk0IDU1LjA1ODQgNzEuMTY1NiA1Ni4yOTAzQzY4Ljc5ODIgNjAuNzI1NCA2Ni4zNjMxIDY1LjEzODEgNjMuOTczMSA2OS41NzMxQzYzLjUyMjIgNzAuNDI0MyA2Mi43NTU2IDcwLjU4MTEgNjEuODc2MyA3MC41ODExQzU3LjI5OTMgNzAuNTgxMSA1Mi43MjIzIDcwLjU4MTEgNDguMTIyNyA3MC41ODExQzQxLjgwOTYgNzAuNTgxMSAzNS40OTY1IDcwLjU4MTEgMjkuMjA1OSA3MC41ODExQzI4Ljc1NSA3MC41NTg3IDI4LjMyNjYgNzAuNTU4NyAyNy42OTUzIDcwLjU1ODdaIiBmaWxsPSIjMjY4M0ZCIi8+CjxwYXRoIGQ9Ik0zMS4wNTY2IDI1LjI4OTVDMzEuMzA0NiAyNS42NDc5IDMxLjQ4NSAyNS45MTY3IDMxLjY0MjggMjYuMTg1NUMzNC40NjExIDMxLjAyMzcgMzcuMjU2OSAzNS44ODQ0IDQwLjA5NzggNDAuNzAwMkM0MC40NTg2IDQxLjMwNSA0MC40MzYgNDEuNzA4MiA0MC4wOTc4IDQyLjMxM0MzNC44NjcgNTEuMjcyNyAyOS42NTg3IDYwLjI1NDggMjQuNDI3OCA2OS4yMTQ1QzI0LjAyMiA2OS45MzEzIDIzLjU3MSA3MC41MzYxIDIyLjYyNDEgNzAuNTEzN0MyMS42OTk2IDcwLjQ5MTMgMjEuMjcxMyA2OS44NjQxIDIwLjg4OCA2OS4xNDczQzE4LjYzMzMgNjQuOTgxMSAxNi4zNzg2IDYwLjgxNDggMTQuMTAxNCA1Ni42NDg1QzEzLjY1MDQgNTUuODE5NyAxMy41ODI4IDU1LjEwMyAxNC4wNzg4IDU0LjI1MThDMTkuNjAyOCA0NC44MjE3IDI1LjEwNDIgMzUuMzY5MiAzMC42MjgyIDI1LjkxNjdDMzAuNzE4NCAyNS43Mzc1IDMwLjg1MzcgMjUuNTU4MyAzMS4wNTY2IDI1LjI4OTVaIiBmaWxsPSIjMDFBQjQ3Ii8+CjxwYXRoIGQ9Ik02OC42NDM5IDUwLjMzMTVDNjguMTI1MyA1MC4zNTM5IDY3Ljc2NDYgNTAuMzc2MyA2Ny40MDM4IDUwLjM3NjNDNjEuODc5OSA1MC4zNzYzIDU2LjM1NTkgNTAuMzUzOSA1MC44NTQ1IDUwLjM5ODdDNTAuMDQyOCA1MC4zOTg3IDQ5LjU2OTMgNTAuMTk3MSA0OS4xNjM1IDQ5LjQ1NzlDNDQuMTEzIDQwLjcyMjIgMzkuMDM5OSAzMi4wMzEyIDMzLjk4OTUgMjMuMzE3OUMzMi43NzE5IDIxLjI3OTYgMzMuNDI1OCAyMC4xNTk2IDM1LjgxNTggMjAuMTM3MkM0MC4zOTI4IDIwLjEzNzIgNDQuOTY5OCAyMC4xMzcyIDQ5LjU2OTMgMjAuMTM3MkM1MC41NjE0IDIwLjEzNzIgNTEuMjgyOSAyMC40MDYgNTEuODAxNCAyMS4zMDJDNTcuMzAyOSAzMC43OTkzIDYyLjg0OTQgNDAuMjc0MiA2OC4zNzM0IDQ5Ljc0OTFDNjguNDQxIDQ5Ljg4MzUgNjguNDg2MSA1MC4wMTc5IDY4LjY0MzkgNTAuMzMxNVoiIGZpbGw9IiNGRUI5MDEiIHN0eWxlPSImIzEwOyIvPgo8cGF0aCBkPSJNNjguODc5NCA3Ni41MDMyQzc3LjY5MjYgNzYuNTAzMiA4NC44MzcxIDY5LjM2NjEgODQuODM3MSA2MC41NjIxQzg0LjgzNzEgNTEuNzU4IDc3LjY5MjYgNDQuNjIwOSA2OC44Nzk0IDQ0LjYyMDlDNjAuMDY2MiA0NC42MjA5IDUyLjkyMTcgNTEuNzU4IDUyLjkyMTcgNjAuNTYyMUM1Mi45MjE3IDY5LjM2NjEgNjAuMDY2MiA3Ni41MDMyIDY4Ljg3OTQgNzYuNTAzMloiIGZpbGw9IiNGNzgzMkUiLz4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik02OC44Nzk0IDczLjIwODlDNzUuODc2NCA3My4yMDg5IDgxLjU0MjggNjcuNTQzNSA4MS41NDI4IDYwLjU2MjFDODEuNTQyOCA1My41ODA2IDc1Ljg3NjQgNDcuOTE1MyA2OC44Nzk0IDQ3LjkxNTNDNjEuODgyNCA0Ny45MTUzIDU2LjIxNiA1My41ODA2IDU2LjIxNiA2MC41NjIxQzU2LjIxNiA2Ny41NDM1IDYxLjg4MjQgNzMuMjA4OSA2OC44Nzk0IDczLjIwODlaTTg0LjgzNzEgNjAuNTYyMUM4NC44MzcxIDY5LjM2NjEgNzcuNjkyNiA3Ni41MDMyIDY4Ljg3OTQgNzYuNTAzMkM2MC4wNjYyIDc2LjUwMzIgNTIuOTIxNyA2OS4zNjYxIDUyLjkyMTcgNjAuNTYyMUM1Mi45MjE3IDUxLjc1OCA2MC4wNjYyIDQ0LjYyMDkgNjguODc5NCA0NC42MjA5Qzc3LjY5MjYgNDQuNjIwOSA4NC44MzcxIDUxLjc1OCA4NC44MzcxIDYwLjU2MjFaIiBmaWxsPSJ3aGl0ZSIvPgo8cGF0aCBkPSJNNjMuNTIzNSA2MS4wOTgyQzY0LjA5NzcgNjEuNjcxNiA2NC42NTI5IDYyLjIyNTkgNjUuMjI3MSA2Mi43OTkzQzY1LjcyNDggNjMuMjk2MyA2Ni4yMjI1IDYzLjc5MzMgNjYuNzIwMiA2NC4yOTAyQzY3LjA4MzkgNjQuNjUzNCA2Ny4xMDMxIDY1LjE2OTUgNjYuNzU4NSA2NS40OTQ0QzY2LjQxNCA2NS44Mzg1IDY1Ljg5NzEgNjUuODE5NCA2NS41MzM0IDY1LjQ1NjJDNjQuNjE0NiA2NC41Mzg3IDYzLjY5NTggNjMuNjIxMiA2Mi43NzY5IDYyLjcwMzhDNjIuNDUxNSA2Mi4zNzg4IDYyLjEyNjEgNjIuMDUzOSA2MS44MDA3IDYxLjcyODlDNjEuNDE3OCA2MS4zNDY3IDYxLjQxNzggNjAuODMwNiA2MS44MDA3IDYwLjQ0ODNDNjMuMDQ0OSA1OS4yMDU5IDY0LjI4OTIgNTcuOTQ0NCA2NS41NTI2IDU2LjcwMTlDNjUuODIwNSA1Ni40MzQzIDY2LjE0NiA1Ni4zNzcgNjYuNDkwNSA1Ni41MTA4QzY2Ljc5NjggNTYuNjQ0NiA2Ni45ODgyIDU2Ljk1MDQgNjYuOTg4MiA1Ny4yOTQ1QzY2Ljk4ODIgNTcuNTIzOCA2Ni44NzM0IDU3LjcxNSA2Ni43MDExIDU3Ljg4N0M2NS42ODY2IDU4LjkwMDEgNjQuNjUyOSA1OS45MzIyIDYzLjYzODMgNjAuOTQ1M0M2My42MTkyIDYxLjAyMTcgNjMuNTgwOSA2MS4wNiA2My41MjM1IDYxLjA5ODJaIiBmaWxsPSJ3aGl0ZSIvPgoKPHBhdGggZD0iTTc0LjIyMDQgNjAuOTI0OUM3My43NDE4IDYwLjQ0NyA3My4yNjMzIDU5Ljk2OTIgNzIuODAzOSA1OS41MTA0QzcyLjIxMDQgNTguOTE3OSA3MS41OTc5IDU4LjMyNTQgNzEuMDA0NSA1Ny43MTM3QzcwLjc3NDggNTcuNDg0NCA3MC42OTgyIDU3LjE3ODUgNzAuNzkzOSA1Ni44NzI3QzcwLjg4OTYgNTYuNTY2OSA3MS4xMDAyIDU2LjM3NTcgNzEuNDI1NiA1Ni4zMTg0QzcxLjczMTkgNTYuMjYxMSA3MS45OTk5IDU2LjM1NjYgNzIuMjEwNCA1Ni41NjY5QzcyLjg4MDQgNTcuMjM1OSA3My41MzEzIDU3LjkwNDkgNzQuMjAxMiA1OC41NTQ3Qzc0Ljc3NTUgNTkuMTI4MiA3NS4zNjg5IDU5LjcyMDcgNzUuOTQzMiA2MC4yOTQxQzc2LjMwNjkgNjAuNjU3MyA3Ni4zMDY5IDYxLjE5MjUgNzUuOTQzMiA2MS41NTU3Qzc0LjY5ODkgNjIuNzk4MSA3My40NzM4IDY0LjAyMTQgNzIuMjI5NiA2NS4yNjM4QzcxLjkyMzMgNjUuNTY5NiA3MS41NDA1IDY1LjY0NjEgNzEuMTk1OSA2NS40NzQxQzcwLjY5ODIgNjUuMjA2NSA3MC42MDI1IDY0LjU1NjYgNzEuMDA0NSA2NC4xNTUyQzcxLjM2ODIgNjMuNzcyOSA3MS43NTEgNjMuNDA5NyA3Mi4xMzM5IDYzLjAyNzRDNzIuNzg0NyA2Mi4zNzc2IDczLjQzNTYgNjEuNzI3NyA3NC4xMDU1IDYxLjA1ODdDNzQuMTI0NyA2MS4wMjA1IDc0LjE2MyA2MC45ODIyIDc0LjIyMDQgNjAuOTI0OVoiIGZpbGw9IndoaXRlIi8+Cgo8ZGVmcz4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDBfbGluZWFyXzE2ODBfMjM2NSIgeDE9Ijk4LjUxMzMiIHkxPSI0MS4yMTYiIHgyPSItNy4zODM5OSIgeTI9IjU3Ljg1NDEiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KPHN0b3Agc3RvcC1jb2xvcj0iIzk0QjJGRiIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiM0MkI0RkYiIHN0b3Atb3BhY2l0eT0iMC42NSIvPgo8L2xpbmVhckdyYWRpZW50Pgo8L2RlZnM+Cjwvc3ZnPg==);background-color:rgba(47,180,75,.1);background-repeat:no-repeat;border:2px dashed rgba(47,180,75,.5);background-position:center;padding:2rem;box-sizing:content-box}.elementor-element-edit-mode .igd-download-link a,.elementor-element-edit-mode .igd-view-link a{pointer-events:none}.elementor-element-edit-mode .igd-embed{pointer-events:none}.elementor-field-type-google_drive_upload .igd-shortcode-uploader{width:100%}.elementor-field-type-google_drive_upload .igd-shortcode-uploader+.upload-file-list{height:0!important;width:0!important;opacity:0!important;min-height:1px!important;padding:0!important;border:none!important;min-width:0!important;max-width:1px!important}#woocommerce-product-data ul.wc-tabs li.upload_options_options a:before{content:"\f13b";font-family:dashicons}.igd-woocommerce{display:inline-flex;float:right;margin-right:10px}.igd-woocommerce .igd-wc-button{display:inline-flex!important;margin-left:auto!important;align-items:center}.igd-woocommerce .igd-wc-button img{margin-right:5px}.upload-box-settings{margin:20px}.upload-box-settings .form-field .description{display:block;clear:both;margin:20px 0 10px 0}.upload-box-settings .form-field .upload_folder_name{width:100%}.igd-wc-upload-wrap{margin:20px 0;display:block}.igd-wc-upload-wrap .upload-button{display:flex!important;align-items:center;width:-moz-max-content;width:max-content;text-align:center;margin-bottom:15px!important;float:none!important}.igd-wc-upload-wrap .upload-button i{margin-right:5px}.igd-wc-upload-wrap .igd-shortcode-uploader{visibility:hidden;width:0;height:0;position:absolute;overflow:hidden;z-index:-1;max-width:500px;clear:both}.igd-wc-upload-wrap .igd-shortcode-uploader .igd-file-uploader-inner .dashicons-cloud-upload{display:none}.igd-wc-upload-wrap .igd-shortcode-uploader .igd-file-uploader{margin:0}.igd-wc-upload-wrap .igd-wc-upload-description{margin:0;clear:both}.igd-wc-upload-wrap .wc-file-list-wrap{margin-top:15px;clear:both}.igd-wc-upload-wrap .wc-file-list-wrap h4{font-size:1.2rem;margin-bottom:10px}.igd-wc-upload-wrap .wc-file-list-wrap .wc-file-list{margin:10px 0;padding:0;list-style:none}.igd-wc-upload-wrap .wc-file-list-wrap .wc-file-list li{display:flex;align-items:center;margin:3px;font-size:12px;font-weight:600;color:#333;transition:all .2s ease-in-out;-webkit-user-select:none;-moz-user-select:none;user-select:none}.igd-wc-upload-wrap .wc-file-list-wrap .wc-file-list li img{margin-right:5px;width:16px}.igd-wc-upload-wrap .wc-file-list-wrap .wc-file-list li .dashicons-no-alt{color:#ff9f10;cursor:pointer;margin-left:15px;margin-right:0}.igd-wc-upload-wrap:has(.upload-button.active) .igd-shortcode-uploader{display:flex;visibility:visible;width:auto;height:auto;position:relative;overflow:visible;z-index:1}.woocommerce-page.woocommerce-checkout form #order_review td.product-name:has(.igd-wc-upload-wrap){flex-wrap:wrap}.igd-wc-uploaded-files{display:flex;flex-direction:column;margin:0!important;padding:0!important}.igd-wc-uploaded-files-wrap{width:30%;padding:0}.igd-wc-uploaded-files li{margin-bottom:5px!important}.igd-wc-uploaded-files a{display:flex;text-decoration:none;color:#555;font-size:.875rem;overflow:hidden;transition:all .2s ease-in-out}.igd-wc-uploaded-files a img{margin-right:5px!important;width:20px!important}.igd-wc-uploaded-files a span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.igd-wc-uploaded-files a:hover{color:#333}.igd-hidden{display:none!important}#igd-direct-content{font-family:roboto,sans-serif}
     1.igd-btn{cursor:pointer;width:-moz-max-content;width:max-content;display:flex;align-items:center;color:#fff;padding:8px 12px;border-radius:5px;border:1px solid transparent;line-height:1;text-decoration:none;transition:all .2s ease-in-out;font-size:.875rem}.igd-btn i{margin-right:7px}.igd-btn i:nth-child(2){margin-right:0;margin-left:7px}.igd-btn .igd-spinner{margin:2px 10px 0 0}.igd-btn.btn-primary{background-color:#2fb44b}.igd-btn.btn-primary:hover{background-color:#248c3a}.igd-btn.btn-secondary{background-color:#f1f1f1;border-color:#f1f1f1}.igd-btn.btn-secondary:hover{background-color:#e6e6e6}.igd-btn.btn-success{background-color:#00d084;border-color:#00d084}.igd-btn.btn-success:hover{background-color:#00c674}.igd-btn.btn-warning{background-color:#f9d6b7;color:#a65300}.igd-btn.btn-warning:hover{background-color:#fc9}.igd-btn.btn-danger{background-color:#f8d7da;color:#d8000c}.igd-btn.btn-danger:hover{background-color:#f5c6cb}.igd-btn.btn-info{background-color:#b4d8e7;color:#1f4e6e}.igd-btn.btn-info:hover{background-color:#00a5e6}.igd-btn.btn-light{background-color:#f1f1f1;border-color:#f1f1f1}.igd-btn.btn-light:hover{background-color:#e6e6e6}.igd-btn.btn-dark{background-color:#0071e6;border-color:#0071e6}.igd-btn.btn-dark:hover{background-color:#0058c6}.igd-btn.btn-link{background-color:transparent;border-color:transparent;color:#0071e6}.igd-btn.btn-link:hover{color:#0058c6}.igd-btn.btn-outline-primary{background-color:transparent;border-color:var(--color-primary);color:var(--color-primary)}.igd-btn.btn-outline-primary:hover{background-color:var(--color-primary);color:#fff}.igd-btn.btn-outline-secondary{background-color:transparent;border-color:#f1f1f1;color:#f1f1f1}.igd-btn.btn-outline-secondary:hover{background-color:#f1f1f1;color:#fff}.igd-btn.btn-outline-success{background-color:transparent;border-color:#00d084;color:#00d084}.igd-btn.btn-outline-success:hover{background-color:#00d084;color:#fff}.igd-btn.btn-outline-warning{background-color:transparent;border-color:#ffc800;color:#ffc800}.igd-btn.btn-outline-warning:hover{background-color:#ffc800;color:#fff}.igd-btn.btn-outline-danger{background-color:transparent;border-color:#ff5b5b;color:#ff5b5b}.igd-btn.btn-outline-danger:hover{background-color:#ff5b5b;color:#fff}.igd-btn.btn-outline-info{background-color:transparent;border-color:#00b5ff;color:#00b5ff}.igd-btn.btn-outline-info:hover{background-color:#00b5ff;color:#fff}.igd-btn.btn-outline-light{background-color:transparent;border-color:#f1f1f1;color:#f1f1f1}.igd-btn.btn-outline-light:hover{background-color:#f1f1f1;color:#fff}.igd-btn.btn-outline-dark{background-color:transparent;border-color:#0071e6;color:#0071e6}.igd-btn.btn-outline-dark:hover{background-color:#0071e6;color:#fff}.igd-btn.btn-outline-link{background-color:transparent;border-color:#0071e6;color:#0071e6}.igd-btn.btn-outline-link:hover{background-color:#0071e6;color:#fff}.igd-btn.disabled{color:#999;cursor:not-allowed;background:#f1f1f1!important;border-color:#ccc}.igd-tooltip{z-index:9999999!important;opacity:1!important}.igd-tooltip:before{z-index:-1!important}.igd-notice{border-radius:5px;border:1px solid #f1f1f1;border-left-width:5px;background:#fff;box-shadow:0 1px 1px 0 rgba(0,0,0,.1);padding:1rem;margin:10px 0;display:flex}.igd-notice .igd-notice-content{margin:0;text-align:left;font-size:.9rem;line-height:1.5;color:#757575}.igd-notice.igd-notice-info{border-color:rgba(0,181,255,.5);background:rgba(0,181,255,.1);border-left-color:#00b5ff}.igd-notice.igd-notice-warning{border-color:rgba(255,200,0,.5);background:rgba(255,200,0,.1);border-left-color:#ffc800}@media (max-width:767px){.igd-notice .igd-notice-content{flex-wrap:wrap}}.igd-hidden{display:none!important}.file-item-checkbox{cursor:pointer;display:none;border-radius:50%;transition:all .3s ease;width:-moz-max-content;width:max-content;padding:5px}.file-item-checkbox .box{width:20px;height:20px;border:1px solid #e5e5e5;border-radius:50%;display:flex;align-items:center;justify-content:center;transition:all .3s ease;position:relative;box-shadow:rgba(0,0,0,.05) 0 6px 24px 0,rgba(0,0,0,.08) 0 0 0 1px}.file-item-checkbox .box:hover{border-color:var(--color-primary);box-shadow:0 0 0 2px var(--color-primary-lighter)}.file-item-checkbox:hover{background-color:rgba(0,0,0,.15)}.file-item-checkbox:hover .box{box-shadow:0 0 0 2px var(--color-primary-lighter)}.file-item-checkbox.checked{background-color:rgba(0,0,0,.15)}.file-item-checkbox.checked .box{border-color:var(--color-primary-lighter);background:var(--color-primary);color:#fff;box-shadow:0 0 0 1px var(--color-primary-lighter)}.file-item-checkbox.checked .box:after{content:"";width:5px;height:10px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg);box-sizing:border-box;margin-top:-2px}.igd-swal{z-index:99999!important}.igd-swal .swal2-confirm{background-color:#2fb44b!important}.igd-swal .swal2-close:focus{background:0 0;color:inherit;box-shadow:none}.igd-swal .swal2-cancel,.igd-swal .swal2-deny{background-color:#f08080!important}.igd-swal.save-settings-toast .swal2-popup{display:flex!important;padding:10px}.igd-swal.save-settings-toast .swal2-popup .swal2-html-container{margin-left:5px}.igd-swal.igd-swal-toast .swal2-popup{display:flex!important;padding:10px}.igd-swal.igd-swal-toast .swal2-popup .swal2-html-container{margin-left:5px}.igd-swal .swal2-input{width:auto!important}.igd-swal .swal2-title{font-size:1.2rem;color:#333;font-weight:500}.igd-swal .swal2-html-container{font-size:1rem;color:#555}.igd-swal .swal2-textarea:focus{border-color:#ddd!important;box-shadow:none!important}.igd-swal.igd-review-remind-swal .swal2-deny{background-color:#999!important}.igd-loading-spinner{display:flex;justify-content:center;margin-top:3rem}.igd-loading-spinner svg{width:2.5rem;height:2.5rem}.igd-divi-loading-spinner{display:flex;justify-content:center}.igd-divi-loading-spinner svg{width:100px;height:100px}.igd-spinner{border:2px solid #f3f3f3;border-top:2px solid #3498db;border-radius:50%;width:20px;height:20px;animation:igd-spin 2s linear infinite;display:flex}.igd-spinner.spinner-large{border-width:4px;width:50px;height:50px;animation:igd-spin 1s linear infinite;margin:30px auto}@keyframes igd-spin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.igd-disabled{pointer-events:none!important}.google-drive_page_integrate-google-drive-shortcode-builder{background:#f7f8fa}.google-drive_page_integrate-google-drive-shortcode-builder #wpfooter{display:none}@media (max-width:767px){.google-drive_page_integrate-google-drive-shortcode-builder #wpcontent{padding-right:10px}}.igd-shortcode-builder{width:calc(100% + 20px);margin-left:-20px}@media (max-width:767px){.igd-shortcode-builder{width:100%;margin-left:0}}.igd-shortcode-builder *{box-sizing:border-box}.igd-shortcode-builder-header{display:flex;flex-wrap:wrap;align-items:center;background:#fff;padding:12px 15px;border-bottom:1px solid #e5e5e5;justify-content:space-between;z-index:99;position:sticky;top:32px}.igd-shortcode-builder-header .header-title{display:flex;align-items:center;font-size:1.2rem;font-weight:500;cursor:pointer}.igd-shortcode-builder-header .header-title img{margin-right:10px}.igd-shortcode-builder-header .header-title .shortcode-title{background:#fff;border-radius:7px;padding:5px 12px;border:1px solid rgba(92,99,126,.3);position:relative;margin-left:10px}.igd-shortcode-builder-header .header-actions{display:flex}.igd-shortcode-builder-header .header-actions .btn-back{background:#5c637e;color:#fff;border-color:rgba(47,180,75,.3)}.igd-shortcode-builder-header .header-actions .btn-back:hover{background:#464c61}.igd-shortcode-builder-header .header-actions button{margin-left:15px}@media (max-width:767px){.igd-shortcode-builder-header{margin-left:-10px;margin-right:-10px;padding:10px;top:-50px}.igd-shortcode-builder-header .header-title img{width:30px;margin-right:5px}.igd-shortcode-builder-header .header-title label{font-size:1rem}.igd-shortcode-builder-header .header-title .shortcode-title{height:35px;min-height:unset;margin-left:auto;border-radius:5px;color:#555;font-size:.875rem;font-weight:400}.igd-shortcode-builder-header .header-actions .add-new-btn{margin-left:auto}.igd-shortcode-builder-header .header-actions button{overflow:hidden;padding:7px;font-size:.8rem;margin-left:10px}.igd-shortcode-builder-header .header-actions button:first-child{margin-left:0}.igd-shortcode-builder-header .header-actions button i{margin-right:3px}.igd-shortcode-builder-header .header-actions button span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.igd-shortcode-builder-header:has(.btn-back) .header-title{width:100%}.igd-shortcode-builder-header:has(.btn-back) .header-title label{max-width:35%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-shortcode-builder-header:has(.btn-back) .header-actions{width:100%;justify-content:center;margin-top:15px}}.igd-shortcode-builder .no-item-placeholder{padding:3rem 5rem;border-radius:10px;border:1px solid rgba(47,180,75,.3);background:#fff;margin:50px auto 0;width:-moz-max-content;width:max-content;display:flex;align-items:center;justify-content:center;flex-direction:column}.igd-shortcode-builder .no-item-placeholder img{width:200px;margin-left:-40px}.igd-shortcode-builder .no-item-placeholder h3{color:#7a7a7a;margin:1.5rem;font-weight:500}.igd-shortcode-builder .no-item-placeholder button{margin-top:1rem}.igd-shortcode-builder .selection-actions-wrap{display:flex;align-items:center;margin-top:30px}.igd-shortcode-builder .selection-actions-wrap .selection-count{font-weight:500;background:rgba(47,180,75,.1);padding:10px 10px;border-radius:5px;height:35px;border:1px solid rgba(47,180,75,.3);display:flex;align-items:center;justify-content:center;font-size:.9rem}.igd-shortcode-builder .selection-actions-wrap .igd-btn{margin-left:10px;height:35px}.igd-shortcode-builder .igd-shortcode-list{width:100%;border-collapse:separate;border-spacing:0 20px}.igd-shortcode-builder .igd-shortcode-list-header{display:flex;align-items:center;justify-content:space-between;margin-top:15px;margin-bottom:15px}.igd-shortcode-builder .igd-shortcode-list-header .igd-shortcode-list-title{font-size:1.2rem;font-weight:600;margin:0;display:flex;align-items:center}.igd-shortcode-builder .igd-shortcode-list-header .igd-shortcode-list-title .shortcode-list-count{font-size:1rem;font-weight:400;color:#777;margin-left:7px}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings i{width:25px;height:25px;font-size:25px;color:#5c637e;cursor:pointer}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .list-settings-tooltip{display:flex;flex-wrap:wrap;justify-content:space-between;max-width:580px}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .list-settings-tooltip .settings-columns{width:100%;margin-bottom:10px}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .settings-wrap{margin-bottom:5px}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .settings-wrap h4{margin-top:0;margin-bottom:7px}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .settings-wrap .components-select-control{min-width:100px}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .settings-wrap .components-select-control__input{height:35px}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .settings-wrap .components-input-control__backdrop{border-color:#eee}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .column-options{display:flex}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .column-options .igd-column-setting{margin-bottom:10px;margin-right:10px;border:1px solid #eee;padding:5px 7px;border-radius:5px}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .column-options .igd-column-setting .components-base-control__field{display:flex;align-items:center}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .column-options .components-checkbox-control__input-container{margin-right:5px}.igd-shortcode-builder .igd-shortcode-list-header .igd-list-column-settings .components-checkbox-control__label{text-transform:capitalize;font-size:.75rem;font-weight:500}.igd-shortcode-builder .igd-shortcode-list-wrap{padding:20px}.igd-shortcode-builder .igd-shortcode-list thead{background:#fff}.igd-shortcode-builder .igd-shortcode-list thead th{padding:24px 15px;font-size:.875rem;color:#555;border-left-width:0;border-right-width:0;margin-bottom:1rem}.igd-shortcode-builder .igd-shortcode-list thead th:first-child{border-radius:10px 0 0 10px}.igd-shortcode-builder .igd-shortcode-list thead th:last-child{border-radius:0 10px 10px 0;text-align:right;padding-right:70px}.igd-shortcode-builder .igd-shortcode-list tbody td,.igd-shortcode-builder .igd-shortcode-list tbody th{padding:15px 20px;font-size:.875rem;color:#555;text-align:left;white-space:nowrap}.igd-shortcode-builder .igd-shortcode-list tbody td:first-child,.igd-shortcode-builder .igd-shortcode-list tbody th:first-child{border-radius:10px 0 0 10px}.igd-shortcode-builder .igd-shortcode-list tbody td:last-child,.igd-shortcode-builder .igd-shortcode-list tbody th:last-child{border-radius:0 10px 10px 0}.igd-shortcode-builder .igd-shortcode-list-item{transition:all .3s ease;background:#fff}.igd-shortcode-builder .igd-shortcode-list-item:hover{background:#eaf2fa}.igd-shortcode-builder .igd-shortcode-list .col-selection{width:60px;text-align:center;padding-right:0}.igd-shortcode-builder .igd-shortcode-list .col-id{width:30px}.igd-shortcode-builder .igd-shortcode-list .col-title{text-align:left}.igd-shortcode-builder .igd-shortcode-list .col-shortcode-type{text-align:left}.igd-shortcode-builder .igd-shortcode-list .col-shortcode-type>div{display:flex;align-items:center;justify-content:flex-start}.igd-shortcode-builder .igd-shortcode-list .col-shortcode-type>div img{margin-right:10px;width:24px}.igd-shortcode-builder .igd-shortcode-list .col-shortcode-status{width:100px;text-align:center}.igd-shortcode-builder .igd-shortcode-list .col-locations{text-align:center}.igd-shortcode-builder .igd-shortcode-list .col-locations .location-count{text-align:center;font-weight:700;cursor:pointer;border:1px solid #5c637e;border-radius:5px;padding:5px 10px;color:#5c637e}.igd-shortcode-builder .igd-shortcode-list .col-locations .location-count:hover{background:#5c637e;color:#fff}.igd-shortcode-builder .igd-shortcode-list .col-locations h3{margin-top:0;margin-bottom:10px;color:#555}.igd-shortcode-builder .igd-shortcode-list .col-locations .locations-tooltip{padding:15px;max-width:250px}.igd-shortcode-builder .igd-shortcode-list .col-locations .location-item{margin-bottom:7px;overflow:hidden}.igd-shortcode-builder .igd-shortcode-list .col-locations .location-item a{text-decoration:none;display:flex;align-items:center;overflow:hidden}.igd-shortcode-builder .igd-shortcode-list .col-locations .location-item a .location-index{margin-right:5px}.igd-shortcode-builder .igd-shortcode-list .col-locations .location-item a .location-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.igd-shortcode-builder .igd-shortcode-list .col-locations .location-item a i{margin-left:7px}.igd-shortcode-builder .igd-shortcode-list .col-created{text-align:center}.igd-shortcode-builder .igd-shortcode-list .col-code>div{display:flex;align-items:center;justify-content:flex-start;position:relative;width:-moz-max-content;width:max-content;margin:auto}.igd-shortcode-builder .igd-shortcode-list .col-code>div code{padding:7px 10px 7px 35px;background:#fff;color:#5c637e;border-radius:7px;border:1px solid rgba(92,99,126,.2);font-size:12px}.igd-shortcode-builder .igd-shortcode-list .col-code>div i{left:3px;color:#5c637e;padding:7px;border-radius:30px;height:auto;width:auto;cursor:pointer;position:absolute;font-size:24px}.igd-shortcode-builder .igd-shortcode-list .col-actions{padding-right:10px;text-align:right}.igd-shortcode-builder .igd-shortcode-list .col-actions button{padding:7px 10px;display:inline-flex;background:#5c637e;height:35px}.igd-shortcode-builder .igd-shortcode-list .col-actions button:hover{background:#464c61}.igd-shortcode-builder .igd-shortcode-list .col-actions .btn-tools{margin-left:15px;padding:0;background:0 0!important;color:#5c637e}.igd-shortcode-builder .igd-shortcode-list .col-actions .btn-tools img{width:26px}.igd-shortcode-builder .igd-shortcode-list .col-actions .options-tooltip{padding:0;border-radius:7px;box-shadow:0 0 10px rgba(0,0,0,.1)}.igd-shortcode-builder .igd-shortcode-list .col-actions .action-tools{display:flex;flex-direction:column}.igd-shortcode-builder .igd-shortcode-list .col-actions .action-tools button{padding:10px 15px;display:flex;background:0 0;color:#555;justify-content:flex-start;border-radius:0;border-bottom:1px solid #e5e5e5;font-size:.875rem;width:100%}.igd-shortcode-builder .igd-shortcode-list .col-actions .action-tools button:hover{background:rgba(92,99,126,.1)}.igd-shortcode-builder .igd-shortcode-list .col-actions .action-tools button:last-child{border-bottom:none;margin-bottom:0}.igd-shortcode-builder .igd-shortcode-list-footer{display:flex;align-items:center;justify-content:center}@media (max-width:767px){.igd-shortcode-builder .igd-shortcode-list-wrap{overflow-x:auto;margin-right:10px}}.igd-shortcode-builder .igd-shortcode-builder-form{overflow-y:unset}.igd-shortcode-builder-form{display:flex;flex-wrap:wrap;align-items:flex-start}.igd-shortcode-builder-form .shortcode-builder-sidebar{width:20%;background:#fff;max-width:200px;padding:20px;position:sticky;top:100px;min-height:100vh;border-right:1px solid #eaeaea}.igd-shortcode-builder-form .shortcode-builder-sidebar.tab-advanced,.igd-shortcode-builder-form .shortcode-builder-sidebar.tab-notifications{top:0}.igd-shortcode-builder-form .shortcode-builder-sidebar.tab-permissions{top:-30px}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs{display:flex;flex-direction:column;align-items:center}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab{display:flex;align-items:center;flex-direction:column;justify-content:center;padding:1rem;background:#e9f9ec;border:1px dashed rgba(47,180,75,.3);width:100%;color:#333;border-radius:10px}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap{max-width:100%;position:relative;cursor:pointer;width:120px;display:flex;align-items:center;justify-content:center}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap:not(:last-child){margin-bottom:40px}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap:not(:last-child):after{content:"";height:40px;width:12px;background:#f7f8fa;position:absolute;top:100%}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap.active .shortcode-tab{background:#47cf64;color:#fff}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap.active .shortcode-tab .tab-icon{background-color:#fff}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap.active:after{background:#47cf64}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap:not(.active):hover .shortcode-tab{background:rgba(47,180,75,.3)}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-icon{width:30px;height:30px;margin-bottom:10px;background-color:#2fb44b;mask-size:cover;-webkit-mask-size:cover}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-icon.icon-type{-webkit-mask:url(../images/shortcode-builder/tabs/type.svg) no-repeat center/cover;mask:url(../images/shortcode-builder/tabs/type.svg) no-repeat center/cover}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-icon.icon-sources{-webkit-mask:url(../images/shortcode-builder/tabs/sources.svg) no-repeat center;mask:url(../images/shortcode-builder/tabs/sources.svg) no-repeat center}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-icon.icon-filters{-webkit-mask:url(../images/shortcode-builder/tabs/filters.svg) no-repeat center;mask:url(../images/shortcode-builder/tabs/filters.svg) no-repeat center}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-icon.icon-advanced{-webkit-mask:url(../images/shortcode-builder/tabs/advanced.svg) no-repeat center;mask:url(../images/shortcode-builder/tabs/advanced.svg) no-repeat center}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-icon.icon-notifications{-webkit-mask:url(../images/shortcode-builder/tabs/notifications.svg) no-repeat center;mask:url(../images/shortcode-builder/tabs/notifications.svg) no-repeat center}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-icon.icon-permissions{-webkit-mask:url(../images/shortcode-builder/tabs/permissions.svg) no-repeat center;mask:url(../images/shortcode-builder/tabs/permissions.svg) no-repeat center}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-name{font-size:.85rem;text-transform:uppercase;font-weight:500;white-space:nowrap}@media (max-width:767px){.igd-shortcode-builder-form .shortcode-builder-sidebar{width:100%;max-width:100%;background:0 0;height:auto;min-height:auto;margin:20px 0;padding:0;position:static;border:0}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs{flex-direction:row}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab{background:0 0;padding:0;border:0;color:#777}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-name{font-size:.7rem;font-weight:400;text-transform:capitalize}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab .tab-icon{width:26px;height:26px;margin-bottom:7px;background:#777}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap{width:auto}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap:not(:last-child){margin-bottom:0}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap:not(:last-child):after{display:none}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap.active .shortcode-tab{background:0 0;color:#2fb44b}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap.active .shortcode-tab .tab-icon{background-color:#2fb44b}.igd-shortcode-builder-form .shortcode-builder-sidebar .shortcode-tabs .shortcode-tab-wrap.active .shortcode-tab .tab-name{font-weight:500}}.igd-shortcode-builder-form .shortcode-builder-content{flex:1}.igd-shortcode-builder-form:has(.shortcode-builder-sidebar) .shortcode-builder-content{width:80%;max-width:calc(100% - 200px);min-height:100vh;display:flex;flex-direction:column}.igd-shortcode-builder-form .form-footer{display:flex;align-items:center;justify-content:space-between;margin-top:auto;position:sticky;bottom:0;padding:10px 15px;border-top:1px solid #eaeaea;background:#fff;z-index:9}.igd-shortcode-builder-form .form-footer button:first-child,.igd-shortcode-builder-form .form-footer button:last-child{background:#fff;color:#2fb44b;border-color:rgba(47,180,75,.3)}.igd-shortcode-builder-form .form-footer button:first-child:hover,.igd-shortcode-builder-form .form-footer button:last-child:hover{background:#d5f0db}.igd-shortcode-builder-form .form-footer button.disabled{opacity:.5;pointer-events:none;background:#ddd;border-color:#ddd}.igd-shortcode-builder-form .form-footer button.disabled:hover{background:#ddd;border-color:#ddd}@media (max-width:767px){.igd-shortcode-builder-form .form-footer{margin:0 -10px}.igd-shortcode-builder-form .form-footer button{font-weight:400}.igd-shortcode-builder-form .form-footer button span{font-size:14px}}.igd-shortcode-builder-form.editor-mode .shortcode-builder-sidebar{top:0}.igd-shortcode-builder-form.editor-mode .shortcode-builder-content{padding:0;display:flex;flex-direction:column;height:calc(100vh - 50px)}.shortcode-module{padding:15px}.shortcode-module-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px;width:100%;border-bottom:1px solid #e5e5e5;padding-bottom:10px}.shortcode-module-header .module-title{flex:1;text-align:left}.shortcode-module-header .module-title h2{font-size:1.2rem;margin-bottom:5px;font-weight:600;text-align:left;margin-top:0}.shortcode-module-header .module-title span{font-size:.85rem}.shortcode-module-header .module-type{cursor:pointer;display:flex;align-items:center;margin-left:15px;border:1px solid rgba(47,180,75,.3);padding:10px 12px;border-radius:5px;background:#fff;transition:all .2s ease-in-out}.shortcode-module-header .module-type-title{margin-right:10px;font-weight:400;font-size:1rem}.shortcode-module-header .module-type img{width:20px;height:20px;margin-right:7px}.shortcode-module-header .module-type-name{font-size:1rem;font-weight:500}.shortcode-module-header .module-type:hover{background:rgba(213,240,219,.3)}.shortcode-module-header .shortcode-wrap{display:flex;align-items:center;justify-content:flex-start;position:relative;width:-moz-max-content;width:max-content}.shortcode-module-header .shortcode-wrap code{padding:10px 10px 10px 35px;background:#fff;color:#5c637e;border-radius:7px;border:1px solid rgba(47,180,75,.2);font-size:12px;word-break:break-all;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.shortcode-module-header .shortcode-wrap i{left:3px;color:#5c637e;padding:7px;border-radius:30px;height:auto;width:auto;cursor:pointer;position:absolute;font-size:24px}.shortcode-module .shortcode-types{display:flex;flex-wrap:wrap;justify-content:space-between;gap:20px}.shortcode-module .shortcode-types .shortcode-type{width:calc(25% - 20px);padding:1.5rem 1rem;border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;transition:background .3s ease;position:relative;text-align:center;border:1px dashed rgba(47,180,75,.5);background:#fff}.shortcode-module .shortcode-types .shortcode-type .icon-wrap{width:60px;height:60px;background-color:#2fb44b;border-radius:50%;display:flex;align-items:center;justify-content:center}.shortcode-module .shortcode-types .shortcode-type .icon-wrap.icon-browser{background:#eff3fe}.shortcode-module .shortcode-types .shortcode-type .icon-wrap.icon-uploader{background:#eaf7ed}.shortcode-module .shortcode-types .shortcode-type .icon-wrap.icon-gallery{background:#ece8ff}.shortcode-module .shortcode-types .shortcode-type .icon-wrap.icon-slider{background:#e9f0ff}.shortcode-module .shortcode-types .shortcode-type .icon-wrap.icon-media{background:#fff6f5}.shortcode-module .shortcode-types .shortcode-type .icon-wrap.icon-search{background:#e4ffde}.shortcode-module .shortcode-types .shortcode-type .icon-wrap.icon-embed{background:#ecf7ff}.shortcode-module .shortcode-types .shortcode-type .icon-wrap.icon-download{background:#eaf7ed}.shortcode-module .shortcode-types .shortcode-type .icon-wrap.icon-view{background:#f5f8ff}.shortcode-module .shortcode-types .shortcode-type .icon-wrap img{width:32px;height:32px}.shortcode-module .shortcode-types .shortcode-type>span{font-size:1rem;font-weight:600;margin:20px 0 5px;color:#0a0a0a}.shortcode-module .shortcode-types .shortcode-type .description{font-size:.875rem;font-weight:400;color:#757575;margin-top:5px}.shortcode-module .shortcode-types .shortcode-type.active{background:#47cf64;color:#fff}.shortcode-module .shortcode-types .shortcode-type.active>span{color:#fff}.shortcode-module .shortcode-types .shortcode-type.active .description{color:#fff}.shortcode-module .shortcode-types .shortcode-type:not(.active):hover{background:rgba(47,180,75,.2)}.shortcode-module .shortcode-types .shortcode-type .pro-badge{position:absolute;top:10px;right:10px;background:#fdb837;color:#fff;padding:7px;border-radius:7px;font-size:12px;font-weight:400;display:flex;align-items:center;justify-content:center;line-height:1;box-shadow:0 0 5px rgba(0,0,0,.1);transition:all .3s ease}.shortcode-module .shortcode-types .shortcode-type .pro-badge i{height:auto;width:auto;font-size:18px;margin-right:3px}.shortcode-module .shortcode-types .shortcode-type.pro-feature{border-color:#fdb837}.shortcode-module .shortcode-types .shortcode-type.pro-feature:hover{background:rgba(253,184,55,.1)}.shortcode-module .shortcode-types .shortcode-type:last-child{margin-right:auto}.shortcode-module .settings-field{display:flex;flex-wrap:wrap;margin-bottom:15px;align-items:center;border-radius:10px;padding:12px 18px;background:#fff}.shortcode-module .settings-field-title{font-size:1.3rem;margin-bottom:30px;font-weight:600;text-align:left}.shortcode-module .settings-field-title.field-visibility{margin-top:50px}.shortcode-module .settings-field-label{width:200px;font-weight:600;font-size:1rem;display:flex;justify-content:space-between;text-align:left}.shortcode-module .settings-field-label i{margin-right:7px;color:#777}.shortcode-module .settings-field-label:after{content:":";margin-left:auto}.shortcode-module .settings-field-content{display:flex;flex-direction:column;align-items:flex-start;margin-left:20px;flex:1}.shortcode-module .settings-field-content .components-button i{margin-right:5px}.shortcode-module .settings-field-content .description{font-size:.875rem;margin-top:10px;text-align:left;color:#757575;display:flex;align-items:center;flex-wrap:wrap}.shortcode-module .settings-field-content .description .igd-btn,.shortcode-module .settings-field-content .description a{margin-left:10px;text-decoration:none}.shortcode-module .settings-field-content .description+.description{margin-top:0}.shortcode-module .settings-field.filter-field .filter-field-input{display:flex;flex-direction:column}.shortcode-module .settings-field.filter-field .filter-field-all{display:flex;align-items:center;justify-content:flex-start;margin-top:15px;flex-wrap:wrap}.shortcode-module .settings-field.filter-field .filter-field-all>div{display:flex;align-items:center}.shortcode-module .settings-field.filter-field .filter-field-all>div:first-child{margin-right:20px}.shortcode-module .settings-field.filter-field .filter-field-all-label{margin-right:10px;font-weight:500;font-size:.875rem;white-space:nowrap}.shortcode-module .settings-field.filter-field .filter-field-all .description{width:100%;text-align:left}.shortcode-module .settings-field.filter-field .filter-field-all ul{margin-top:0;padding-left:10px;margin-left:10px;list-style:disc}.shortcode-module .settings-field.filter-field .name-filter-option{display:flex;flex-wrap:wrap;align-items:center;margin-top:10px}.shortcode-module .settings-field.filter-field .name-filter-option h4{margin:0 15px 0 0;font-size:.875rem;font-weight:500}.shortcode-module .settings-field.filter-field .name-filter-option .name-filter-option-item{margin-right:15px;border:1px solid #ddd;border-radius:5px;padding:5px;display:flex;align-items:center;justify-content:center;font-size:.875rem;font-weight:500;color:#777;cursor:pointer;transition:all .3s ease}.shortcode-module .settings-field.filter-field .name-filter-option .name-filter-option-item:hover{background:#f5f8ff;color:#0a0a0a}.shortcode-module .settings-field.filter-field .name-filter-option .components-checkbox-control__input{height:20px;width:20px}.shortcode-module .settings-field.filter-field .name-filter-option .components-checkbox-control__label{margin-left:7px;text-transform:capitalize}@media (max-width:767px){.shortcode-module .settings-field.filter-field .name-filter-option div:not(#jairalok){width:auto;margin-bottom:0}}.shortcode-module .settings-field.sort-field .sort-field-section{display:flex;flex-direction:column}.shortcode-module .settings-field.sort-field .sort-field-section:first-child{margin-right:35px;padding-right:15px;border-right:1px solid #ddd}.shortcode-module .settings-field.sort-field .sort-field-section:last-child{border-right:0}.shortcode-module .settings-field.sort-field .sort-field-section-wrap{display:flex;margin:15px 30px}.shortcode-module .settings-field.sort-field .sort-field-section-label{margin-bottom:15px;font-weight:500;text-align:left;font-size:.9rem;margin-left:-20px}.shortcode-module .settings-field.sort-field .sort-field-section .sort-item{display:flex;align-items:center;margin-bottom:10px;cursor:pointer;position:relative;font-size:.875rem}.shortcode-module .settings-field.sort-field .sort-field-section .sort-item i{display:none;position:absolute;left:-25px}.shortcode-module .settings-field.sort-field .sort-field-section .sort-item.active{color:#2fb44b}.shortcode-module .settings-field.sort-field .sort-field-section .sort-item.active i{display:block}.shortcode-module .settings-field.filter-users-field .filter-users-group{display:flex;flex-direction:column}.shortcode-module .settings-field .filter-users{margin-top:15px;display:flex;flex-direction:column;border:1px dashed #ddd;padding:15px;border-radius:7px;width:100%}.shortcode-module .settings-field .filter-users-title{font-weight:500;font-size:1rem;margin-bottom:10px;text-align:left;margin-top:0}.shortcode-module .settings-field .filter-users-section{display:flex;align-items:center}.shortcode-module .settings-field .filter-users-section:first-child{margin-right:20px}.shortcode-module .settings-field .filter-users-section-label{margin-right:10px;font-weight:500;font-size:1rem}.shortcode-module .settings-field .filter-users-section-wrap{display:flex;flex-wrap:wrap}.shortcode-module .settings-field .filter-users-section-wrap .description{width:100%;margin-bottom:0}.shortcode-module .settings-field.field-parent-folder .shortcode-module .igd-select-sources-wrap{margin-top:10px}.shortcode-module .settings-field.field-upload-confirmation-message .description{margin-top:-5px;margin-bottom:15px}.shortcode-module .settings-field.field-upload-confirmation-message .wp-editor-wrap{width:100%}.shortcode-module .settings-field.field-upload-confirmation-message .wp-editor-wrap textarea{border:none}.shortcode-module .settings-field.field-upload-confirmation-message .wp-switch-editor{height:29px}.shortcode-module .settings-field.field-upload-confirmation-message textarea{width:100%;border:1px solid #eee;padding:15px;min-width:200px}.shortcode-module .settings-field.field-upload-confirmation-message textarea:focus{outline:0;box-shadow:none}.shortcode-module .settings-field.field-allow-search input[type=text]{width:100%}.shortcode-module .settings-field.field-private-folder input[type=text]{width:100%}.shortcode-module .settings-field.field-private-folder .settings-field-label{margin-top:15px}.shortcode-module .settings-field.field-gallery-image-size .gallery-custom-size-wrap{display:flex}.shortcode-module .settings-field.field-gallery-image-size .gallery-custom-size-wrap .components-base-control:first-child{display:flex;align-items:center}.shortcode-module .settings-field.field-gallery-image-size .gallery-custom-size-wrap .components-base-control:first-child:after{content:"X";margin-left:10px;margin-right:10px;font-weight:500}.shortcode-module .settings-field.field-gallery-image-size .gallery-custom-size-wrap .components-text-control__input{width:110px}.shortcode-module .settings-field.field-access-denied-message{flex-direction:column;align-items:flex-start}.shortcode-module .settings-field.field-access-denied-message .settings-field-label{width:100%}.shortcode-module .settings-field.field-access-denied-message .settings-field-label:after{content:""}.shortcode-module .settings-field.field-access-denied-message .description{margin-top:-5px;margin-bottom:15px}.shortcode-module .settings-field.field-access-denied-message .wp-editor-wrap{width:100%}.shortcode-module .settings-field.field-access-denied-message .wp-editor-wrap textarea{border:none}.shortcode-module .settings-field.field-access-denied-message .wp-switch-editor{height:29px}.shortcode-module .settings-field.field-access-denied-message textarea{width:100%;border:1px solid #eee;padding:15px;min-width:200px}.shortcode-module .settings-field.field-access-denied-message textarea:focus{outline:0;box-shadow:none}.shortcode-module .settings-field .components-select-control select,.shortcode-module .settings-field input[type=email],.shortcode-module .settings-field input[type=number],.shortcode-module .settings-field input[type=text],.shortcode-module .settings-field select{height:40px;border-radius:4px;border:1px solid #ddd;font-size:.8rem;width:350px;max-width:100%;padding:10px 15px;line-height:1}.shortcode-module .settings-field .components-select-control select:disabled,.shortcode-module .settings-field input[type=email]:disabled,.shortcode-module .settings-field input[type=number]:disabled,.shortcode-module .settings-field input[type=text]:disabled,.shortcode-module .settings-field select:disabled{background:#f5f5f5;color:#aaa;cursor:not-allowed}.shortcode-module .settings-field .igd-select{width:400px}.shortcode-module .settings-field .igd-select.filter-users-select{max-width:100%}.shortcode-module .settings-field .igd-select__control.igd-select__control--is-focused{border-color:#2fb44b;box-shadow:none}.shortcode-module .settings-field .igd-select__input{height:auto}.shortcode-module .settings-field .igd-select__input:focus{border:none;box-shadow:none}.shortcode-module .settings-field .igd-select__menu{border-radius:7px;border:1px solid rgba(47,180,75,.3);box-shadow:0 0 5px rgba(0,0,0,.1);z-index:99}.shortcode-module .settings-field .igd-select__menu .igd-select__option{padding:10px 15px;font-size:.8rem;cursor:pointer}.shortcode-module .settings-field .igd-select__menu .igd-select__option:hover{background:rgba(47,180,75,.1)}.shortcode-module .settings-field .igd-select__menu .igd-select__option--is-focused{background:rgba(47,180,75,.1)}.shortcode-module .settings-field .igd-select__multi-value{background:#2fb44b;color:#fff}.shortcode-module .settings-field .igd-select__multi-value .igd-select__multi-value__label{color:#fff}.shortcode-module .settings-field .components-button-group{background:rgba(47,180,75,.1);padding:10px;width:-moz-max-content;width:max-content;border-radius:10px}.shortcode-module .settings-field .components-button-group button{color:#47cf64;box-shadow:inset 0 0 0 1px rgba(47,180,75,.25);margin:0 3px;border-radius:5px;background:#fff}.shortcode-module .settings-field .components-button-group button:first-child{border-top-left-radius:5px;border-bottom-left-radius:5px}.shortcode-module .settings-field .components-button-group button:last-child{border-top-right-radius:5px;border-bottom-right-radius:5px}.shortcode-module .settings-field .components-button-group button.is-primary{z-index:auto;background:#47cf64;color:#fff}.shortcode-module .settings-field .components-button-group button.is-secondary:hover{color:#2fb44b;box-shadow:inset 0 0 0 1px #47cf64}.shortcode-module .settings-field .components-button-group button i{margin-right:5px}.shortcode-module .settings-field .components-range-control{width:350px;margin-top:15px}.shortcode-module .settings-field .components-range-control .components-range-control__wrapper{color:#2fb44b;margin-bottom:0}.shortcode-module .settings-field .components-range-control .components-range-control__wrapper .components-range-control__mark-label{top:20px}.shortcode-module .settings-field .components-range-control .components-range-control__wrapper .components-range-control__thumb-wrapper span{background:#2fb44b}.shortcode-module .settings-field .components-range-control .components-input-control__input{width:auto;height:auto;padding:0 0 0 10px}.shortcode-module .settings-field .components-range-control .components-input-control__backdrop{border-color:#ddd}.shortcode-module .settings-field .components-select-control .components-input-control__backdrop{border-color:#ddd}.shortcode-module .settings-field-sub{display:flex;flex-direction:column;width:100%}.shortcode-module .settings-field-sub .settings-field{flex-direction:column;align-items:flex-start;margin-top:15px;margin-bottom:0;display:flex;border:1px dashed #ddd;padding:10px 15px;border-radius:7px;width:100%}.shortcode-module .settings-field-sub .settings-field-label{margin-top:0;margin-bottom:12px;width:auto}.shortcode-module .settings-field-sub .settings-field-label:after{content:"";display:none}.shortcode-module .settings-field-sub .settings-field-content{width:100%;margin-left:0}.shortcode-module .settings-field-sub .settings-field-content+h4,.shortcode-module .settings-field-sub .settings-field-content>h4{margin-top:15px}@media (max-width:767px){.shortcode-module .shortcode-module-header{flex-flow:column-reverse;align-items:center;text-align:center}.shortcode-module .shortcode-module-header .module-title h2{text-align:center;margin-top:10px}.shortcode-module .shortcode-module-header .module-type{display:none}.shortcode-module .shortcode-module-header .shortcode-wrap{display:none}.shortcode-module .shortcode-types{gap:10px}.shortcode-module .shortcode-types .shortcode-type{width:calc(50% - 5px);text-align:center;padding:1rem}.shortcode-module .settings-field{flex-flow:column;align-items:flex-start;padding:10px}.shortcode-module .settings-field-label{margin-bottom:.5rem;font-size:.875rem;justify-content:flex-start}.shortcode-module .settings-field-label:after{display:none}.shortcode-module .settings-field-content{margin-left:0}.shortcode-module .settings-field input,.shortcode-module .settings-field select{width:100%;height:32px}.shortcode-module .settings-field .igd-select{width:100%}.shortcode-module .settings-field.filter-field .filter-field-all{flex-direction:column;align-items:flex-start;width:100%}.shortcode-module .settings-field.filter-field .filter-field-all div{margin-right:0;display:flex;width:100%}.shortcode-module .settings-field.filter-field .filter-field-all div:first-child{margin-bottom:10px}.shortcode-module .settings-field.filter-field .filter-field-all-label{min-width:70px}.shortcode-module .settings-field .filter-users-section-wrap{flex-direction:column;align-items:flex-start;width:100%}.shortcode-module .settings-field .filter-users-section-wrap .filter-users-section{width:100%}.shortcode-module .settings-field .filter-users-section-wrap .filter-users-section:first-child{margin-bottom:10px}}.igd-module-builder-modal .components-form-toggle,.igd-shortcode-builder .components-form-toggle{width:-moz-max-content;width:max-content;background:#fff;padding:3px;border-radius:15px}.igd-module-builder-modal .components-form-toggle__track,.igd-shortcode-builder .components-form-toggle__track{width:44px;height:22px;border-radius:22px;border-color:#5c637e}.igd-module-builder-modal .components-form-toggle__thumb,.igd-shortcode-builder .components-form-toggle__thumb{background:#5c637e;border:none;width:15px;height:15px;border-radius:25px;top:6px;left:6px}.igd-module-builder-modal .components-form-toggle.is-checked .components-form-toggle__thumb,.igd-shortcode-builder .components-form-toggle.is-checked .components-form-toggle__thumb{background:#fff;transform:translateX(22px)}.igd-module-builder-modal .components-form-toggle.is-checked .components-form-toggle__track,.igd-shortcode-builder .components-form-toggle.is-checked .components-form-toggle__track{background:#47cf64}.igd-module-builder-modal .components-base-control__field,.igd-shortcode-builder .components-base-control__field{margin-bottom:0;display:flex;align-items:center}.igd-module-builder-modal .components-base-control__field .components-checkbox-control__input,.igd-shortcode-builder .components-base-control__field .components-checkbox-control__input{border-color:rgba(92,99,126,.5);margin:0}.igd-module-builder-modal .components-base-control__field .components-checkbox-control__input-container,.igd-shortcode-builder .components-base-control__field .components-checkbox-control__input-container{margin:0}.igd-module-builder-modal .components-base-control__field .components-checkbox-control__input:checked,.igd-shortcode-builder .components-base-control__field .components-checkbox-control__input:checked{background:#47cf64;border-color:#47cf64}@media (max-width:767px){.igd-module-builder-modal,.igd-shortcode-builder{margin-top:0}.igd-module-builder-modal .shortcode-tabs,.igd-shortcode-builder .shortcode-tabs{flex-wrap:wrap;justify-content:space-between}.igd-module-builder-modal .shortcode-tabs .shortcode-tab,.igd-shortcode-builder .shortcode-tabs .shortcode-tab{margin-right:0!important}.igd-module-builder-modal .shortcode-tabs .shortcode-tab .tab-index,.igd-shortcode-builder .shortcode-tabs .shortcode-tab .tab-index{height:2rem;width:2rem}.igd-module-builder-modal .shortcode-tabs .shortcode-tab:not(:last-child):after,.igd-shortcode-builder .shortcode-tabs .shortcode-tab:not(:last-child):after{width:1rem;height:.3rem}.igd-module-builder-modal .shortcode-builder-content,.igd-shortcode-builder .shortcode-builder-content{padding:0;max-width:100%}}.igd-select-sources-wrap{display:flex;flex-wrap:wrap;align-items:flex-start}.igd-select-sources-wrap .source-title-wrap{width:100%;margin-bottom:20px;text-align:left}.igd-select-sources-wrap .source-title-wrap h3{margin-bottom:5px}.igd-select-sources-wrap .source-title-wrap p{margin:0}.igd-select-sources-wrap .igd-file-browser{border:1px solid rgba(47,180,75,.3);border-radius:10px;overflow:hidden;flex:1;height:auto;background:#fff}.igd-select-sources-wrap .igd-file-browser-header{position:static;z-index:9}.igd-select-sources-wrap .igd-file-browser-header .header-title i{color:#555;display:flex;align-items:center;justify-content:center}.igd-select-sources-wrap .igd-file-browser-header .igd-breadcrumb .breadcrumb-item:hover{color:#fff;background:#248c3a}.igd-select-sources-wrap .igd-file-browser .select-btn{position:absolute;color:#fff;right:10px;border:1px solid rgba(47,180,75,.3);z-index:2;display:flex;align-items:center;border-radius:3px;padding:5px;background:#2fb44b;cursor:pointer;line-height:1;transition:background .3s ease;font-size:.875rem}.igd-select-sources-wrap .igd-file-browser .select-btn i{margin-right:0}.igd-select-sources-wrap .igd-file-browser .select-btn span{margin-left:5px;display:none}.igd-select-sources-wrap .igd-file-browser .select-btn.active{background:#ff9f10;border-color:#dc8400}.igd-select-sources-wrap .igd-file-browser .select-btn:hover span{display:block}.igd-select-sources-wrap .igd-file-browser .file-list .file-item:not(.folder-item):hover .select-btn span{display:block}.igd-select-sources-wrap .igd-file-browser .file-list:not(.list-view) .file-item:not(.folder-item) .select-btn{top:10px}.igd-select-sources-wrap .igd-selected-list{width:30%;max-width:300px;margin-left:15px;border:1px solid rgba(47,180,75,.3);border-radius:10px;overflow:hidden;background:#fff;position:sticky;top:120px}.igd-select-sources-wrap .igd-selected-list-header{padding:10px;background:#2fb44b;color:#fff;display:flex;align-items:center;justify-content:space-between}.igd-select-sources-wrap .igd-selected-list-header .header-title{font-size:1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-select-sources-wrap .igd-selected-list-header button{padding:7px 10px;font-size:.8rem;border-radius:5px;background:#ff9f10;border:none}.igd-select-sources-wrap .igd-selected-list-header button span{white-space:nowrap}.igd-select-sources-wrap .igd-selected-list-header button:hover{color:#ff9f10;background:#fff}.igd-select-sources-wrap .igd-selected-list .no-files-message{display:flex;justify-content:center;align-items:center;font-size:1rem;color:#ff9f10;margin:30px auto}.igd-select-sources-wrap .igd-selected-list .no-files-message i{margin-right:5px}.igd-select-sources-wrap .igd-selected-list>p{padding:10px;font-size:.875rem;color:#555;border:1px solid #ddd;margin:30px 10px 10px;border-radius:5px;background:rgba(48,142,225,.1);text-align:center}.igd-select-sources-wrap .igd-selected-list>p span{display:block;margin-top:10px}.igd-select-sources-wrap .no-account-placeholder{width:auto;flex:1;margin-top:0}@media (max-width:767px){.igd-select-sources-wrap{flex-direction:column}.igd-select-sources-wrap .igd-selected-list{margin-left:0}}.selected-item{display:flex;align-items:center;padding:10px 15px;border-bottom:1px solid #ddd;font-size:.875rem;z-index:99;color:#666}.selected-item-index{margin-right:7px;color:#777}.selected-item .item-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-right:7px}.selected-item .remove-item{color:#fff;background:#ff9f10;border:1px solid #dc8400;display:flex;align-items:center;justify-content:center;height:25px;width:25px;min-width:25px;font-size:18px;border-radius:50%;opacity:.7;margin-left:auto;cursor:pointer}.selected-item .remove-item:hover{opacity:1;background:#fff;color:#ff9f10}.selected-item .dashicons-category,.selected-item .dashicons-move,.selected-item img{margin-right:10px;color:#8f8f8f}.selected-item .dashicons-move{cursor:pointer}.selected-item .dashicons-move:hover{color:#555}.selected-item .file-item{display:flex;align-items:center;overflow:hidden;flex:1;cursor:pointer}.selected-item .file-item>img{max-width:20px;min-height:16px}.selected-item.sortable-item{border:none}.igd-shortcode-preview,.igd-shortcode-preview *{box-sizing:border-box}.igd-shortcode-preview-container{z-index:99999!important}.igd-shortcode-preview-container,.igd-shortcode-preview-container *{box-sizing:border-box}.igd-shortcode-preview-popup{display:flex!important;align-items:center;justify-content:center;position:absolute!important;grid-column:auto!important;grid-row:auto!important;background:0 0;width:97%!important;height:95%!important}.igd-shortcode-preview-popup .swal2-html-container{width:100%!important;height:100%!important;background:#fff;border-radius:.5rem!important;margin:auto!important}.igd-shortcode-preview-header{display:flex;align-items:center;justify-content:space-between;padding:.8rem;border-bottom:1px solid #ddd;margin-bottom:1rem;position:sticky;top:0;z-index:10;background:#fff;box-shadow:0 .5rem 1rem rgba(0,0,0,.1)}.igd-shortcode-preview-header .header-title i{margin-right:7px}.igd-shortcode-preview-header button i{margin-right:0}.igd-shortcode-preview .preview-inner{text-align:left;padding:1rem 2rem}.swal2-container.swal2-top-end{z-index:99999!important}.igd-module-builder-modal{height:100%;display:flex;flex-direction:column;background:#f7f8fa}.igd-module-builder-modal *{box-sizing:border-box}.igd-module-builder-modal-wrap{height:100%}.igd-module-builder-modal-wrap.inline-select .shortcode-module{padding:0}.igd-module-builder-modal-wrap.inline-select .shortcode-builder-content{height:auto;max-width:100%;min-height:auto}.igd-module-builder-modal-container{z-index:99999999!important}.igd-module-builder-modal-container .swal2-popup{width:95%;height:90vh;padding:0;overflow:hidden}.igd-module-builder-modal-container .swal2-popup .swal2-html-container{margin:0;border-radius:.5rem;overflow-y:auto}.igd-module-builder-modal-header{display:flex;align-items:center;padding:12px 1rem;border-bottom:1px solid #eaeaea;background:#fff;z-index:99;box-shadow:0 0 .5rem rgba(0,0,0,.1);position:sticky;top:0}.igd-module-builder-modal-header .header-title{display:flex;align-items:center}.igd-module-builder-modal-header .header-title i{margin-right:7px}.igd-module-builder-modal-header .header-title h3{font-size:1.2rem;margin:0;font-weight:500}@media (max-width:600px){.igd-module-builder-modal-header .header-title h3{font-size:1rem}}.igd-module-builder-modal-header .close{margin-left:auto;margin-right:15px}.igd-module-builder-modal-header button{padding:7px 10px;font-size:.9rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-module-builder-modal-header .done .igd-spinner{display:none}.igd-module-builder-modal-header .done.loading i{display:none}.igd-module-builder-modal-header .done.loading .igd-spinner{display:inline-block}.igd-module-builder-modal .shortcode-module .media-uploader-post-content{margin-bottom:30px}.igd-module-builder-modal .shortcode-module .media-uploader-post-content textarea{width:100%;height:auto;padding:8px 12px;line-height:27px;vertical-align:top}.igd-module-builder-modal .shortcode-module-header{align-items:flex-start}.igd-module-builder-modal .shortcode-module-header .module-title{line-height:1}.igd-module-builder-modal .shortcode-module .igd-selected-list{top:20px}.igd-module-builder-modal .shortcode-module-body>.settings-field:last-child{margin-bottom:0}.igd-shortcode-builder-form{margin:0;overflow-y:auto;flex:1;display:flex}.igd-shortcode-builder-form .content-sources .settings-field.form-entry-field{margin-top:20px}.igd-shortcode-builder-form .content-sources .settings-field.form-entry-field input[type=text]{width:100%}.igd-shortcode-builder-form .content-sources .form-entry-title{margin-top:30px}.igd-shortcode-builder-form .content-sources #igd-select-files{width:100%;margin-bottom:20px}.igd-shortcode-builder-form .content-sources #igd-select-files .igd-body{max-height:400px}.module-builder-placeholder{display:flex;align-items:center;flex-flow:column;justify-content:center;text-align:center;border:1px solid #eaeaea;padding:2rem;border-radius:10px;max-width:380px;margin:auto;background:#fafafa}.module-builder-placeholder img{width:50px}.module-builder-placeholder h3{font-size:22px;margin-bottom:5px;font-weight:500;color:#333}.module-builder-placeholder p{font-size:.875rem;color:#555}.module-builder-placeholder button{margin-top:10px;padding:10px 15px}.module-builder-placeholder.pro-placeholder h4{margin-top:20px;margin-bottom:0;font-size:1.5rem;color:#ff9458;font-weight:500}.igd-shortcode-data-modal-container .igd-shortcode-data-modal-input{height:150px;padding:1rem;border-radius:.5rem;line-height:1.2;font-size:.878885rem}.igd-shortcode-data-modal-container .swal2-confirm{background:#2fb44b}#igd_data{display:none!important}.igd-form-uploader-trigger>*{pointer-events:none}.igd-file-browser{display:flex;flex-flow:column;align-items:flex-start;width:100%}.igd-file-browser,.igd-file-browser *{box-sizing:border-box}.igd-file-browser .btn-primary{background:var(--color-primary)}.igd-file-browser .btn-primary:hover{background:var(--color-primary-light-alt)}.igd-file-browser-header{display:flex;align-items:center;background:#f9fafc;border-bottom:1px solid #e5e5e5;padding:12px 15px;position:sticky;top:32px;width:100%;z-index:9;height:60px}.igd-file-browser-header .header-title{display:flex;align-items:center;font-size:1rem;font-weight:600;color:#fff}.igd-file-browser-header .header-title i,.igd-file-browser-header .header-title img{margin-right:10px;background:#fff;padding:5px;height:35px;width:35px;border-radius:50%;color:#fff}.igd-file-browser-header .header-action{display:flex;align-items:center;margin-left:auto;justify-content:flex-end}.igd-file-browser-header .header-action-item{margin-left:15px;cursor:pointer;color:#444;background:#f7f8fa;height:40px;width:40px;border-radius:10px;display:flex;align-items:center;justify-content:center;transition:all .2s ease-in-out}.igd-file-browser-header .header-action-item img{width:18px}.igd-file-browser-header .header-action-item:hover{background:var(--color-primary-lighter)}.igd-file-browser-header .user-box{display:flex;align-items:center;width:auto;padding:5px;max-width:250px;height:45px;background:0 0}.igd-file-browser-header .user-box .user-info{display:flex;flex-direction:column;line-height:1;overflow:hidden;text-align:left}.igd-file-browser-header .user-box .user-info span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.igd-file-browser-header .user-box .user-info .user-name{font-size:.9rem;font-weight:600;color:#3d3d3d;margin-bottom:3px}.igd-file-browser-header .user-box .user-info .user-email{color:#7a7a7a;font-weight:300;font-size:.875rem}.igd-file-browser-header .user-box .user-image{width:35px;height:35px;border-radius:50%}.igd-file-browser-header .user-box-modal{display:flex;flex-direction:column;justify-content:flex-start;align-items:center;width:260px;border-radius:10px;max-height:75vh;overflow-y:auto}.igd-file-browser-header .user-box-modal::-webkit-scrollbar{width:5px;display:none}.igd-file-browser-header .user-box-modal::-webkit-scrollbar-track{background:var(--color-primary-lighter)}.igd-file-browser-header .user-box-modal::-webkit-scrollbar-thumb{background:var(--color-primary-light)}.igd-file-browser-header .user-box-modal::-webkit-scrollbar-thumb:hover{background:var(--color-primary)}.igd-file-browser-header .user-box-modal:hover::-webkit-scrollbar{display:block}.igd-file-browser-header .user-box-modal-wrap{border-radius:10px;padding:0;opacity:1;box-shadow:0 1px 0 0 #e5e5e5}.igd-file-browser-header .user-box-modal-wrap:after,.igd-file-browser-header .user-box-modal-wrap:before{left:calc(100% - 45px)}.igd-file-browser-header .user-box-modal-title{font-size:1.2rem;font-weight:500;display:block;position:sticky;background:#fff;top:0;width:100%;text-align:center;padding:15px;box-shadow:0 1px 0 0 #e5e5e5;margin-bottom:7px}.igd-file-browser-header .user-box-modal button{margin:10px auto 20px auto;padding:8px 12px;font-size:.875rem}.igd-file-browser-header .user-box-modal>div:last-child{margin-bottom:15px}.igd-file-browser-header .user-box-account{display:flex;align-items:center;border:1px solid #e5e5e5;padding:7px;border-radius:5px;cursor:pointer;width:calc(100% - 30px);margin:7px}.igd-file-browser-header .user-box-account.active,.igd-file-browser-header .user-box-account:hover{background:var(--color-primary-lighter);color:#000}.igd-file-browser-header .user-box-account img{width:30px;height:30px;border-radius:50%;margin-right:10px}.igd-file-browser-header .user-box-account .account-info{display:flex;flex-flow:column;overflow:hidden;text-align:left;line-height:1.5}.igd-file-browser-header .user-box-account .account-info .account-name{font-size:.9rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-file-browser-header .user-box-account .account-info .account-email{font-size:.8rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#7a7a7a}.igd-file-browser-header .user-box-account .active-badge{background:var(--color-primary);color:#fff;border-radius:50%;position:relative;margin-left:auto;right:0}.igd-file-browser-header .user-box .user-arrow{width:16px;margin-left:10px}@media (max-width:768px){.igd-file-browser-header{top:0;flex-flow:column;align-items:center;height:auto;padding:.5rem}.igd-file-browser-header .header-action{margin-left:0;width:100%;justify-content:center}.igd-file-browser-header .header-action .igd-search-bar input{min-height:35px;height:35px}.igd-file-browser-header .header-action .igd-search-bar i.dashicons-dismiss{margin-left:15px}.igd-file-browser-header .header-action .igd-search-bar i.dashicons-search{height:35px}.igd-file-browser-header .header-action .igd-search-bar.active{position:absolute;width:calc(100% - 20px);z-index:2;height:45px;background:#f7f8fa}.igd-file-browser-header .header-action-item{margin-left:.875rem}.igd-file-browser-header .header-action-item.sidebar-toggle{margin-left:0;margin-right:auto}.igd-file-browser-header .user-box{padding:5px;border-radius:30px;height:40px}.igd-file-browser-header .user-box .user-info{display:none}.igd-file-browser-header .user-box .user-arrow{margin-left:0}.igd-file-browser-header .user-box .user-image{width:30px;height:30px;margin-right:5px}.igd-file-browser-header .user-box-modal-wrap{right:10px;left:auto}}.igd-file-browser .igd-search-bar{display:flex;align-items:center;position:relative;overflow:hidden;margin-bottom:0}.igd-file-browser .igd-search-bar input{width:0;height:0;min-height:0;border:none;transition:all .3s ease;padding:0;margin:0;border:0;background:0 0;box-shadow:none}.igd-file-browser .igd-search-bar input:focus{outline:0;border:none;box-shadow:none}.igd-file-browser .igd-search-bar .search-submit{margin-left:0;display:flex;align-items:center;justify-content:center;margin-bottom:0}.igd-file-browser .igd-search-bar .search-dismiss{display:none;background:0 0;cursor:pointer}.igd-file-browser .igd-search-bar .search-dismiss img{width:16px}.igd-file-browser .igd-search-bar.active{width:auto;padding:5px 15px}.igd-file-browser .igd-search-bar.active input{width:100%!important;margin:0 15px;height:100%}.igd-file-browser .igd-search-bar.active .search-submit{margin-bottom:0}.igd-file-browser .igd-search-bar.active .search-dismiss{display:flex}.igd-file-browser .igd-search-bar.active .search-dismiss svg{margin-bottom:0}.igd-file-browser .igd-search-bar.error input{border:1px solid #f77066}.igd-file-browser-body{display:flex;align-items:flex-start;width:100%;height:100%;position:relative}.igd-file-browser .igd-sort{display:flex;align-items:center}.igd-file-browser .igd-sort-select{font-weight:600;cursor:pointer;padding:3px 5px;border-radius:5px}.igd-file-browser .igd-sort-select:hover{background:#ddd}.igd-file-browser .igd-sort-modal{width:220px;padding:0;border-radius:7px;opacity:1!important;box-shadow:rgba(149,157,165,.2) 0 8px 24px}.igd-file-browser .igd-sort-modal .sort-item{display:flex;align-items:center;margin-bottom:15px;padding-left:25px;cursor:pointer;font-size:.9rem}.igd-file-browser .igd-sort-modal .sort-item i{margin-right:5px;display:none}.igd-file-browser .igd-sort-modal .sort-item.active{color:var(--color-primary);padding-left:0}.igd-file-browser .igd-sort-modal .sort-item.active i{display:inline-block}.igd-file-browser .igd-sort-modal .sort-item:hover{color:var(--color-primary)}.igd-file-browser .igd-sort-modal-inner{display:flex;flex-direction:column}.igd-file-browser .igd-sort-modal-inner-section{border-bottom:1px solid #ddd;padding:15px}.igd-file-browser .igd-sort-modal-inner-section:last-child{border-bottom:0}.igd-file-browser .igd-sort-modal-inner-section-title{font-size:.9rem;margin-bottom:10px;display:block;font-weight:500}.igd-file-browser .igd-breadcrumb{display:flex;align-items:center;overflow:hidden;max-width:70%;flex-wrap:wrap}.igd-file-browser .igd-breadcrumb .breadcrumb-item{font-size:.875rem;display:flex;align-items:center;cursor:pointer;padding:5px;border-radius:5px;line-height:1;font-weight:500;color:#444;white-space:nowrap;position:relative;margin-bottom:0}.igd-file-browser .igd-breadcrumb .breadcrumb-item i{margin-left:3px}.igd-file-browser .igd-breadcrumb .breadcrumb-item i.dashicons-arrow-right-alt2{width:13px;height:15px;font-size:15px}.igd-file-browser .igd-breadcrumb .breadcrumb-item i.dashicons-admin-home{margin-right:5px;margin-left:0}.igd-file-browser .igd-breadcrumb .breadcrumb-item i:last-child{display:none}.igd-file-browser .igd-breadcrumb .breadcrumb-item span{margin-bottom:0;max-width:200px;overflow:hidden;text-overflow:ellipsis}.igd-file-browser .igd-breadcrumb .breadcrumb-item:first-child{margin-left:0}.igd-file-browser .igd-breadcrumb .breadcrumb-item:after{content:"";font-family:Dashicons;margin-left:7px}.igd-file-browser .igd-breadcrumb .breadcrumb-item:not(:last-child):after{content:"\f345"}.igd-file-browser .igd-breadcrumb .breadcrumb-item.active:after{content:"\f140";height:auto;width:auto;font-size:22px;margin-left:3px}.igd-file-browser .igd-breadcrumb .breadcrumb-item:hover{color:var(--color-primary);background:var(--color-primary-lighter)}@media (max-width:768px){.igd-file-browser .igd-breadcrumb{max-width:100%;margin-bottom:10px}}.igd-file-browser .collapsed-breadcrumbs{width:210px;opacity:1!important;box-shadow:rgba(149,157,165,.2) 0 8px 24px;padding:10px 0}.igd-file-browser .collapsed-breadcrumbs-item{cursor:pointer;font-size:.875rem;padding:7px 15px;display:flex;align-items:center}.igd-file-browser .collapsed-breadcrumbs-item:hover{color:var(--color-primary)}.igd-file-browser .collapsed-breadcrumbs-item i{margin-right:5px;font-size:1rem;height:1rem;width:1rem}.igd-file-browser .collapsed-breadcrumbs-item span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}.igd-file-browser .collapsed-breadcrumbs-item:before{content:"\f345";font-family:Dashicons,serif;margin-right:7px}.igd-file-browser .igd-root-placeholder{display:flex;flex-direction:column;align-items:center;width:-moz-max-content;width:max-content;margin:3rem auto;padding:50px 30px;border-radius:15px;min-width:30rem;background:#fff;box-shadow:rgba(149,157,165,.2) 0 2px 2px}.igd-file-browser .igd-root-placeholder .igd-placeholder-svg,.igd-file-browser .igd-root-placeholder img{width:200px;margin-bottom:1rem}.igd-file-browser .igd-root-placeholder-title{font-size:1rem;font-weight:500;margin:15px 0 5px 0;color:var(--color-primary)}.igd-file-browser .igd-root-placeholder-text{color:#7a7a7a}.igd-file-browser .igd-root-placeholder button{margin-top:30px}.igd-file-browser .igd-root-placeholder.empty-folder-placeholder img,.igd-file-browser .igd-root-placeholder.search-folder-placeholder img{width:100px}.igd-file-browser .igd-root-placeholder.search-placeholder .igd-placeholder-svg{width:100px;margin-bottom:1rem}.igd-file-browser .igd-root-placeholder.search-placeholder .igd-root-placeholder-title{margin-bottom:1.5rem}.igd-file-browser .igd-root-placeholder.search-placeholder:not(.empty-placeholder) .igd-root-placeholder-title{margin-top:0;margin-bottom:1.5rem}.igd-file-browser .igd-root-placeholder.search-placeholder .igd-search-bar{border:1px solid #ddd;padding:10px 20px;border-radius:5px}.igd-file-browser .igd-root-placeholder.search-placeholder .igd-search-bar .search-dismiss{display:none}.igd-file-browser .igd-root-placeholder.search-placeholder .igd-search-bar input{margin-left:0}.igd-file-browser .igd-root-placeholder+.igd-file-uploader{position:relative!important;margin:30px auto;right:unset;left:unset;bottom:unset}@media (max-width:767px){.igd-file-browser .igd-root-placeholder{min-width:auto}}.igd-sidebar-wrap{width:20%;max-width:230px;border-right:1px solid #e5e5e5;position:sticky;background:#f9fafc}.igd-sidebar .sidebar-uploader{display:flex;align-items:center;justify-content:center;padding:20px 10px 15px;border-bottom:1px solid #e5e5e5}.igd-sidebar .sidebar-uploader button{padding:7px 10px;font-size:.875rem;transition:background .3s ease;background:var(--color-primary)}.igd-sidebar .sidebar-uploader button.active{background:#fff;color:var(--color-primary);border-color:var(--color-primary-light)}.igd-sidebar .sidebar-uploader button.disabled{background:#ddd}.igd-sidebar .sidebar-uploader button.disabled:hover{background:#ddd!important}.igd-sidebar .sidebar-folders{display:flex;flex-direction:column}.igd-sidebar .sidebar-folders .root-item{padding:10px 15px;cursor:pointer;display:flex;align-items:center;font-size:1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-sidebar .sidebar-folders .root-item img{margin-right:10px}.igd-sidebar .sidebar-folders .root-item.active{background:var(--color-primary-lighter);color:var(--color-primary);border-left:5px solid}.igd-sidebar .sidebar-folders .root-item:hover{color:var(--color-primary)}.igd-sidebar .storage-info-wrap{display:flex;align-items:center;margin-top:30px;border-top:1px solid #e5e5e5;padding:15px}.igd-sidebar .storage-info-wrap i{margin-right:10px}.igd-sidebar .storage-info-wrap .storage-info{display:flex;flex-direction:column;flex:1}.igd-sidebar .storage-info-wrap .storage-info-sidebar{width:100%;height:10px;background:var(--color-primary-lighter);border-radius:5px;position:relative}.igd-sidebar .storage-info-wrap .storage-info-sidebar .storage-info-fill{position:absolute;top:0;left:0;width:0;height:100%;background:var(--color-primary);border-radius:5px}.igd-sidebar .storage-info-wrap .storage-info-sidebar .storage-info-fill.fill-danger{background:#f44336}.igd-sidebar .storage-info-wrap .storage-info span{font-size:.8rem;margin-top:5px}@media (max-width:767px){.igd-sidebar{max-width:80%;height:100%;background:#f5f9fd}.igd-sidebar-wrap{width:100%;max-width:100%;position:absolute;z-index:2;background:rgba(0,0,0,.5);height:100%}}.igd-body{display:flex;flex-direction:column;padding:10px;flex:1;width:100%;height:100%;position:relative;background:#f7f8fa}.igd-body .file-list{display:flex;align-items:flex-start;flex-wrap:wrap;overflow-y:auto}.igd-body .file-list .go-prev{display:flex;align-items:center;flex-direction:row!important;padding:10px;cursor:pointer!important;justify-content:flex-start!important;background:var(--color-primary-lighter);transition:all .3s ease;font-size:1rem;font-weight:300}.igd-body .file-list .go-prev i{margin:0 10px;position:relative;transition:all .3s ease;left:0}.igd-body .file-list .go-prev span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-body .file-list .root-item{flex-direction:row!important;padding:10px;cursor:pointer!important;align-items:center;justify-content:flex-start!important;font-size:1rem;background:#fff}.igd-body .file-list .root-item img{margin-right:10px}.igd-body .file-list .root-item .select-btn i{margin-right:0}.igd-body .file-list .file-item{display:flex;flex-direction:column;width:25%;margin:7px;border-radius:5px;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:auto;position:relative;aspect-ratio:1/1;justify-content:flex-end;box-shadow:rgba(0,0,0,.05) 0 6px 24px 0,rgba(0,0,0,.08) 0 0 0 1px;transition:transform .3s ease}.igd-body .file-list .file-item .igd-file-thumbnail{width:100%;height:100%;-o-object-fit:none;object-fit:none;position:absolute;-webkit-user-drag:none;bottom:20px}.igd-body .file-list .file-item .igd-file-thumbnail.has-thumbnail{-o-object-fit:cover;object-fit:cover}.igd-body .file-list .file-item .file-item-footer{display:flex;align-items:center;border-top:1px solid #e5e5e5;z-index:1;background:#fff;line-height:1;height:40px}.igd-body .file-list .file-item .file-item-footer .file-icon-wrap{width:30px;height:30px;display:flex;align-items:center;justify-content:center;margin-right:3px;margin-left:7px}.igd-body .file-list .file-item .file-item-footer .file-icon-wrap .file-icon{width:20px;height:20px;-webkit-user-drag:none}.igd-body .file-list .file-item .file-item-footer .file-icon-wrap .shortcut-icon{position:absolute;left:15px;bottom:8px;border:1px solid #ddd;border-radius:50%}.igd-body .file-list .file-item .file-item-footer .file-item-name{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:.875rem;font-weight:300;margin-right:auto;flex:1;text-align:left}.igd-body .file-list .file-item .file-item-footer .file-item-size{font-size:.75rem;font-weight:400;margin:0 5px;color:#999}.igd-body .file-list .file-item .file-item-footer .file-item-options{margin-left:auto;cursor:pointer;color:#565656;margin-right:7px}.igd-body .file-list .file-item .file-item-footer .file-item-options i{transform:rotate(90deg);font-size:18px;width:18px;height:18px}.igd-body .file-list .file-item .file-item-footer .file-item-options:hover{color:var(--color-primary)}.igd-body .file-list .file-item.active{border:1px solid var(--color-primary-lighter-alt);transform:scale(1.03)}.igd-body .file-list .file-item.active .file-item-footer{background:var(--color-primary-light-alt);color:#fff}.igd-body .file-list .file-item.active .file-item-footer:not(:has(.file-item-checkbox)) .file-icon{background:#fff;border-radius:3px;box-sizing:content-box!important;padding:2px 5px}.igd-body .file-list .file-item.active .file-item-footer:has(.file-item-checkbox) .file-icon,.igd-body .file-list .file-item.active .file-item-footer:has(.file-item-checkbox) .shortcut-icon{display:none}.igd-body .file-list .file-item.active .file-item-footer .file-item-size{color:inherit}.igd-body .file-list .file-item.active .file-item-footer .file-item-options{color:inherit}.igd-body .file-list .file-item.active .file-item-footer .file-item-checkbox{display:flex;padding:0;border:1px solid #fff}.igd-body .file-list .file-item:hover{transform:scale(1.03)}.igd-body .file-list .file-item:hover .file-item-footer .file-icon-wrap:has(.file-item-checkbox) .file-icon,.igd-body .file-list .file-item:hover .file-item-footer .file-icon-wrap:has(.file-item-checkbox) .shortcut-icon{display:none}.igd-body .file-list .file-item:hover .file-item-footer .file-icon-wrap .file-item-checkbox{display:flex}.igd-body .file-list .file-item:hover .file-item-date{color:#fff}.igd-body .file-list .file-item.folder-item{height:50px;justify-content:center;position:relative;order:1}.igd-body .file-list .file-item.folder-item .file-item-footer{border-top:0;height:100%}.igd-body .file-list .file-item:not(.folder-item){order:3}@media (max-width:768px){.igd-body .file-list .file-item .file-item-footer .file-icon-wrap{margin-right:5px}.igd-body .file-list .file-item .file-item-footer .file-icon-wrap:has(.file-item-checkbox) .file-icon,.igd-body .file-list .file-item .file-item-footer .file-icon-wrap:has(.file-item-checkbox) .shortcut-icon{display:none}.igd-body .file-list .file-item .file-item-footer .file-icon-wrap .file-item-checkbox{display:flex}}.igd-body .file-list .folder-file-divider{width:100%;order:2}.igd-body .file-list.list-view{flex-flow:column;align-items:center}.igd-body .file-list.list-view .go-prev{padding:12px 10px!important}.igd-body .file-list.list-view .list-view-header{display:flex;align-items:center;width:100%;font-size:1rem;position:sticky;top:0;margin-top:10px;margin-bottom:15px;z-index:1;line-height:1}.igd-body .file-list.list-view .list-view-header .col-name{width:50%;padding-left:50px}.igd-body .file-list.list-view .list-view-header .col-size{width:20%;text-align:center}.igd-body .file-list.list-view .list-view-header .col-modified{width:25%;text-align:center}.igd-body .file-list.list-view .list-view-header:not(:has(.col-modified)) .col-name,.igd-body .file-list.list-view .list-view-header:not(:has(.col-size)) .col-name{width:70%}.igd-body .file-list.list-view .list-view-header:not(:has(.col-size)):not(:has(.col-modified)) .col-name{width:90%}.igd-body .file-list.list-view .file-item{width:100%!important;overflow:visible;margin:0;border-radius:0;padding:5px 10px;font-size:.875rem;flex-direction:row;align-items:center;justify-content:space-between;border:1px solid transparent;border-bottom-color:#eee;box-shadow:none;aspect-ratio:auto;background:#fff}.igd-body .file-list.list-view .file-item .file-item-date{width:20%;font-size:.75rem;font-weight:400;margin:0 5px;color:#999;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}.igd-body .file-list.list-view .file-item.active{transform:none;background:var(--color-primary-lighter-alt);color:#fff}.igd-body .file-list.list-view .file-item.active .file-item-date{color:inherit}.igd-body .file-list.list-view .file-item:hover{transform:none;background:var(--color-primary-lighter-alt);color:#fff}.igd-body .file-list.list-view .file-item:hover .file-item-footer .file-item-options{color:inherit}.igd-body .file-list.list-view .file-item:hover .file-item-size{color:inherit}.igd-body .file-list.list-view .file-item:hover .file-item-date{color:inherit}.igd-body .file-list.list-view .file-item.folder-item{height:45px}.igd-body .file-list.list-view .file-item .file-item-footer{border:0;width:70%;background:0 0;height:33px}.igd-body .file-list.list-view .file-item .file-item-footer .file-item-name{width:70%}.igd-body .file-list.list-view .file-item .file-item-footer .file-item-size{width:30%;text-align:center}.igd-body .file-list.list-view .file-item .file-item-footer .file-item-options{position:absolute;right:0}.igd-body .file-list.list-view .file-item .file-item-footer .file-icon-wrap{margin-left:0}.igd-body .file-list.list-view .file-item .file-item-footer:not(:has(.file-item-size)) .file-item-name{width:100%}.igd-body .file-list.list-view .file-item:not(:has(.file-item-date)) .file-item-footer{width:90%}.igd-body .file-list.list-view .file-item:last-child{border-bottom:0}.igd-body .file-list.list-view .root-item{padding:15px 10px;font-size:1rem;justify-content:flex-start}@media (max-width:767px){.igd-body .file-list.list-view .list-view-header .col-name{width:65%}.igd-body .file-list.list-view .list-view-header .col-modified{display:none}.igd-body .file-list.list-view .file-item .file-item-footer{width:90%}.igd-body .file-list.list-view .file-item .file-item-date{display:none}}.igd-body .file-list.empty .list-view-header{display:none}.igd-body .file-list.empty+.igd-file-uploader{margin:10px 7px}.igd-body .file-list.igd-item-col-1 .file-item{width:100%}.igd-body .file-list.igd-item-col-1:not(.list-view) .file-item{margin:4px}.igd-body .file-list.igd-item-col-2 .file-item{width:calc(50% - 14px)}.igd-body .file-list.igd-item-col-3 .file-item{width:calc(33.33% - 14px)}.igd-body .file-list.igd-item-col-3 .file-item .file-item-footer .file-item-size{display:none}.igd-body .file-list.igd-item-col-4 .file-item{width:calc(25% - 14px)}.igd-body .file-list.igd-item-col-5 .file-item{width:calc(20% - 14px)}.igd-body .file-list.igd-item-col-6 .file-item{width:calc(16.66% - 14px)}.igd-body .file-list.igd-item-col-7 .file-item{width:calc(14.28% - 14px)}.igd-body .file-list.igd-item-col-8 .file-item{width:calc(12.5% - 14px)}.igd-body .search-result-info{font-size:1rem;margin:10px 0 15px 5px;display:flex;align-items:center}.igd-body .search-result-info .clear-button{margin-left:10px}.igd-body .loading-wrap{display:flex;justify-content:center;height:100%;width:100%;position:absolute;top:0;left:0;z-index:1}.igd-body .loading-wrap img{width:150px;height:150px;margin-top:2rem}.igd-body.loading{min-height:15rem}.igd-body.loading:not(.lazy-loading) .file-list,.igd-body.loading:not(.lazy-loading) .igd-gallery-images{opacity:.3}.igd-body.loading:not(.lazy-loading) .file-list .file-item,.igd-body.loading:not(.lazy-loading) .igd-gallery-images .file-item{transform:none;transition:none}.igd-body.lazy-loading .loading-wrap{position:unset}.igd-body.lazy-loading .loading-wrap img{margin-top:-1rem}.igd-details{display:flex;flex-flow:column;padding:20px 15px}.igd-details-wrap{width:250px;position:sticky;border-left:1px solid #e5e5e5;background:#fff}.igd-details .close-details{align-self:flex-end;cursor:pointer;font-size:1.25rem;opacity:.5;margin:-5px 0 5px 0}.igd-details .close-details:hover{opacity:1}.igd-details .details-item{display:flex;align-items:center;margin-bottom:15px;flex-wrap:wrap}.igd-details .details-item img{width:20px;height:20px;margin-right:10px}.igd-details .details-item-label{font-size:.875rem;font-weight:500;color:#444;width:80px;display:flex;align-items:center;justify-content:space-between}.igd-details .details-item-label:after{content:":";margin-right:10px}.igd-details .details-item.name{font-weight:500;font-size:1rem;margin-bottom:20px;word-break:break-all;flex-wrap:nowrap}.igd-details .details-item-value{font-size:.875rem;color:#555;word-break:break-all;max-width:100%}.igd-details .details-item.field-location{flex-direction:column;align-items:flex-start}.igd-details .details-item.field-location .details-item-value{margin-top:7px}.igd-details .details-item.field-location .location-wrap{display:flex;align-items:center;border:1px solid #ddd;border-radius:5px;padding:5px;cursor:pointer}.igd-details .details-item.field-location .location-wrap img{margin-right:5px}.igd-details .details-item.field-location .location-wrap span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-details .details-item.field-location .location-wrap:hover{background:#f5f5f5}.igd-details .details-item.field-description{display:flex;align-items:flex-start;flex-wrap:wrap;justify-content:space-between}.igd-details .details-item.field-description .details-item-label{margin-bottom:5px}.igd-details .details-item.field-description .description-placeholder,.igd-details .details-item.field-description .details-item-value{width:100%;color:#555}.igd-details .details-item.field-description .dashicons{cursor:pointer;padding:0 5px;box-sizing:content-box;margin-top:5px}.igd-details .details-item.field-description form,.igd-details .details-item.field-description textarea{width:100%}.igd-details .details-placeholder{font-size:1rem}@media (max-width:767px){.igd-details{max-width:80%;height:100%;margin-left:auto;background:#fff}.igd-details-wrap{width:100%;max-width:100%;position:absolute;z-index:2;background:rgba(0,0,0,.5);height:100%}}.igd-context-menu{z-index:99999999;background-color:#fff;border-radius:4px;list-style:none;font-size:14px;font-family:sans-serif;font-weight:400;line-height:1.5;color:#333;cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;box-shadow:0 0 10px rgba(0,0,0,.2)}.igd-context-menu,.igd-context-menu *{box-sizing:border-box}.igd-context-menu .context-menu-item{display:flex;align-items:center;padding:10px 15px;cursor:pointer;transition:background-color .2s ease;width:100%;position:relative}.igd-context-menu .context-menu-item.details,.igd-context-menu .context-menu-item.import{border-bottom:1px solid #eee}.igd-context-menu .context-menu-item.delete,.igd-context-menu .context-menu-item.download{border-top:1px solid #eee}.igd-context-menu .context-menu-item.disabled{color:#ccc}.igd-context-menu .context-menu-item.upload{border-bottom:1px solid #ddd}.igd-context-menu .context-menu-item.delete{border-bottom:1px solid #ddd}.igd-context-menu .context-menu-item.view{border-top:1px solid #ddd}.igd-context-menu .context-menu-item i{margin-right:10px}.igd-context-menu .context-menu-item:hover{background-color:#f5f5f5}.igd-context-menu .context-menu-item:hover .pro-badge{transform:scale(1.1)}.igd-context-menu .context-menu-item .pro-badge{position:absolute;right:0;background:#fdb837;color:#fff;padding:5px;border-radius:4px;font-size:11px;font-weight:400;display:flex;align-items:center;justify-content:center;line-height:1;box-shadow:0 0 5px rgba(0,0,0,.1);transition:transform .2s ease}.igd-context-menu .context-menu-item .pro-badge i{margin-right:2px;height:auto;width:auto;font-size:15px}.share-modal *{box-sizing:border-box}.share-modal .swal2-close:focus{outline:0;background:0 0;color:#f08080;box-shadow:none}.share-modal .share-link{margin-bottom:1rem}.share-modal .share-link input,.share-modal .share-link textarea{width:-webkit-fill-available;border:1px solid #ddd;border-radius:4px;padding:0 10px;font-size:14px;font-family:sans-serif;font-weight:400;line-height:1.5;color:#333;cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;text-align:center;word-break:break-all}.share-modal .share-link input{height:40px}.share-modal .share-link textarea{height:100px}.share-modal.embed .embed-code{display:flex}.share-modal.embed .share-links{display:none}.share-modal .share-links{display:flex;justify-content:center;flex-wrap:wrap}.share-modal .share-links .share-item{display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;color:#333;text-decoration:none;margin:0 10px 10px 0}.share-modal .share-links .share-item i{font-size:22px;width:auto;height:auto;border:1px solid #ccc;border-radius:50%;padding:10px;margin:10px}.share-modal .share-links .share-item span{font-size:.875rem}.share-modal .share-links .share-item.link i{background:#fff;border:1px solid #ccc;color:#333}.share-modal .share-links .share-item.link span{color:#333}.share-modal .share-links .share-item.link:hover i{background:#e6e6e6}.share-modal .share-links .share-item.embed i{background:#333;border:1px solid #333;color:#fff}.share-modal .share-links .share-item.embed:hover i{background:#1a1a1a}.share-modal .share-links .share-item.facebook i{background-color:#3b5998;color:#fff}.share-modal .share-links .share-item.facebook span{color:#3b5998}.share-modal .share-links .share-item.facebook:hover i{background-color:#4c70ba}.share-modal .share-links .share-item.twitter i{background-color:#1da1f2;color:#fff}.share-modal .share-links .share-item.twitter span{color:#1da1f2}.share-modal .share-links .share-item.twitter:hover i{background-color:#4db5f5}.share-modal .share-links .share-item.whatsapp i{background-color:#25d366;color:#fff}.share-modal .share-links .share-item.whatsapp span{color:#25d366}.share-modal .share-links .share-item.whatsapp:hover i{background-color:#4be083}.share-modal .share-links .share-item.email i{background-color:#dd4f42;color:#fff}.share-modal .share-links .share-item.email span{color:#dd4f42}.share-modal .share-links .share-item.email:hover i{background-color:#e5776d}.move-folders{display:flex;flex-direction:column;align-items:flex-start;max-height:300px;overflow-y:auto;border:1px solid #ddd;border-radius:4px;padding:10px}.move-folders-wrap button{margin:20px auto 0;padding:10px 20px}.move-folders-wrap button .igd-spinner{margin-right:10px}.move-folders,.move-folders *{box-sizing:border-box}.move-folders::-webkit-scrollbar{width:5px}.move-folders::-webkit-scrollbar-track{background:#f1f1f1}.move-folders::-webkit-scrollbar-thumb{background:#999;border-radius:5px}.move-folders .move-folder{display:flex;align-items:center;justify-content:flex-start;text-align:left;width:100%;cursor:pointer;padding:7px 0;border-radius:3px}.move-folders .move-folder>.igd-spinner{margin-left:10px}.move-folders .move-folder-wrap{width:100%;padding-left:20px;text-align:left}.move-folders .move-folder-wrap.empty{margin:10px 0;padding-left:30px;display:flex;align-items:center;color:#c73e1d;font-size:.875rem}.move-folders .move-folder-wrap.empty i{margin-right:5px}.move-folders .move-folder i{margin-right:10px}.move-folders .move-folder img{width:22px;height:22px;margin-right:10px}.move-folders .move-folder .file-item-checkbox .box{border-color:#999}.move-folders .move-folder span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.move-folders .move-folder:hover{background-color:#f5f5f5}.move-folders .move-folder:hover:has(.file-item-checkbox) img{display:none}.move-folders .move-folder:hover:has(.file-item-checkbox) .file-item-checkbox{display:flex;padding:0;border:1px solid #fff;margin-right:10px}.move-folders .move-folder.active{background-color:var(--color-primary-lighter)}.move-folders .move-folder.active img{display:none}.move-folders .move-folder.active .file-item-checkbox{display:flex;padding:0;border:1px solid #fff;margin-right:10px}.igd-download-popup{z-index:999999!important}.igd-download-wrap #igd-download-status{font-size:1.3rem;font-weight:600;margin:15px auto 5px}.igd-download-wrap #igd-hidden-download{display:none}.igd-copy-swal,.igd-move-swal{z-index:99999}.react-contexify{position:fixed;opacity:0;-webkit-user-select:none;-moz-user-select:none;user-select:none;background-color:#fff;box-sizing:border-box;box-shadow:0 10px 30px -5px rgba(0,0,0,.3);border-radius:6px;min-width:200px}.context-submenu{width:100%}.react-contexify__submenu--is-open,.react-contexify__submenu--is-open>.react-contexify__item__content{color:#fff;background-color:#4393e6}.react-contexify__submenu--is-open>.react-contexify__submenu{pointer-events:initial;opacity:1}.react-contexify .react-contexify__submenu{position:absolute;top:-6px;pointer-events:none;transition:opacity 275ms}.react-contexify__submenu-arrow{margin-left:auto;font-size:12px}.react-contexify__submenu-arrow i{margin-right:0!important}.react-contexify__separator{width:100%;height:1px;cursor:default;margin:4px 0;background-color:rgba(0,0,0,.2)}.react-contexify__will-leave--disabled{pointer-events:none}.react-contexify__item{cursor:pointer;position:relative}.react-contexify__item:focus{outline:0}.react-contexify__item:not(.react-contexify__item--disabled):hover>.react-contexify__submenu{pointer-events:initial;opacity:1}.react-contexify__item--disabled{cursor:default;opacity:.5}.react-contexify__item__content{display:flex;align-items:center;white-space:nowrap;color:#333;position:relative;width:100%}.react-contexify__theme--dark{background-color:rgba(40,40,40,.98)}.react-contexify__theme--dark .react-contexify__submenu{background-color:rgba(40,40,40,.98)}.react-contexify__theme--dark .react-contexify__separator{background-color:#eee}.react-contexify__theme--dark .react-contexify__item__content{color:#fff}.react-contexify__theme--light .react-contexify__separator{background-color:#eee}.react-contexify__theme--light .react-contexify__submenu--is-open,.react-contexify__theme--light .react-contexify__submenu--is-open>.react-contexify__item__content{color:#4393e6;background-color:#e0eefd}.react-contexify__theme--light .react-contexify__item:not(.react-contexify__item--disabled):focus>.react-contexify__item__content,.react-contexify__theme--light .react-contexify__item:not(.react-contexify__item--disabled):hover>.react-contexify__item__content{color:#4393e6;background-color:#e0eefd}.react-contexify__theme--light .react-contexify__item__content{color:#666}@keyframes react-contexify__scaleIn{from{opacity:0;transform:scale3d(.3,.3,.3)}to{opacity:1}}@keyframes react-contexify__scaleOut{from{opacity:1}to{opacity:0;transform:scale3d(.3,.3,.3)}}.react-contexify__will-enter--scale{transform-origin:top left;animation:react-contexify__scaleIn .3s}.react-contexify__will-leave--scale{transform-origin:top left;animation:react-contexify__scaleOut .3s}@keyframes react-contexify__fadeIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes react-contexify__fadeOut{from{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(10px)}}.react-contexify__will-enter--fade{animation:react-contexify__fadeIn .3s ease}.react-contexify__will-leave--fade{animation:react-contexify__fadeOut .3s ease}@keyframes react-contexify__flipInX{from{transform:perspective(800px) rotate3d(1,0,0,45deg)}to{transform:perspective(800px)}}@keyframes react-contexify__flipOutX{from{transform:perspective(800px)}to{transform:perspective(800px) rotate3d(1,0,0,45deg);opacity:0}}.react-contexify__will-enter--flip{backface-visibility:visible!important;transform-origin:top center;animation:react-contexify__flipInX .3s}.react-contexify__will-leave--flip{transform-origin:top center;animation:react-contexify__flipOutX .3s;backface-visibility:visible!important}@keyframes swing-in-top-fwd{0%{transform:rotateX(-100deg);transform-origin:top;opacity:0}100%{transform:rotateX(0);transform-origin:top;opacity:1}}@keyframes react-contexify__slideIn{from{opacity:0;transform:scale3d(1,.3,1)}to{opacity:1}}@keyframes react-contexify__slideOut{from{opacity:1}to{opacity:0;transform:scale3d(1,.3,1)}}.react-contexify__will-enter--slide{transform-origin:top center;animation:react-contexify__slideIn .3s}.react-contexify__will-leave--slide{transform-origin:top center;animation:react-contexify__slideOut .3s}.igd-shortcode-gallery .igd-file-browser-header .photo-proofing-btn .selection-count{margin-left:3px}.igd-module-gallery{overflow:hidden}.igd-module-gallery .item-selection{position:absolute;z-index:9;top:5px;left:5px;cursor:pointer;display:none}.igd-module-gallery .item-selection circle{display:none}.igd-module-gallery .item-selection:hover svg{fill:#fff}.igd-module-gallery .file-list{overflow:hidden}.igd-module-gallery .file-list .file-item{position:relative;border-radius:0}.igd-module-gallery .file-list .file-item .igd-gallery-folder-images{transition:all .3s ease-in-out}.igd-module-gallery .file-list .file-item:hover{transform:none}.igd-module-gallery .file-list .file-item:hover .item-selection{display:block}.igd-module-gallery .file-list .file-item:hover .igd-gallery-folder-images{transition:all .3s ease-in-out;transform:scale(1.07);box-shadow:0 0 0 1px #ddd}.igd-module-gallery .file-list .file-item.active{transform:none}.igd-module-gallery .file-list .file-item.active .item-selection{display:block}.igd-module-gallery .file-list .file-item.active .item-selection svg{fill:#4285f4}.igd-module-gallery .file-list .file-item.active .igd-gallery-folder-images{transition:all .3s ease-in-out;transform:scale(1.07);box-shadow:0 0 0 1px #ddd}.igd-module-gallery .file-list .file-item .file-item-footer{font-size:1rem}.igd-module-gallery .file-list .file-item:not(.folder-item){max-width:100%}.igd-module-gallery .file-list .file-item:not(.folder-item) .file-item-footer{background:rgba(0,0,0,.5)!important;color:#fff!important;padding:15px 10px!important;position:absolute;bottom:0;left:0;width:100%;justify-content:center;border:none!important}.igd-module-gallery .file-list .file-item:not(.folder-item) .file-item-footer i{margin-right:5px}.igd-module-gallery .file-list .file-item:not(.folder-item) .file-item-footer img{background:rgba(255,255,255,.9);padding:0 2px;border-radius:3px;box-sizing:content-box}.igd-module-gallery .file-list .file-item:not(.folder-item) .file-item-footer span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-module-gallery .file-list .file-item:last-child{margin-right:auto!important}.igd-module-gallery .igd-gallery-folder-images{position:relative;width:100%;height:100%;overflow:hidden;display:flex;align-items:center;justify-content:center}.igd-module-gallery .igd-gallery-folder-images img{position:absolute;-webkit-user-drag:none;opacity:0;pointer-events:none;animation-name:image-fade-out;animation-duration:1.5s}.igd-module-gallery .igd-gallery-folder-images img.active{animation-name:image-fade;animation-duration:1.5s;opacity:1}.igd-module-gallery .igd-gallery-folder-images img:not([src*=drive-thirdparty]){width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.igd-module-gallery .igd-gallery-folder-images i{height:auto;width:auto;font-size:3.5rem;color:#555}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item{overflow:hidden;position:relative;cursor:pointer}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item img{transition:all .3s ease-in-out;-o-object-fit:cover;object-fit:cover;width:100%;height:100%}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.5);transition:all .3s ease-in-out;color:#fff;display:flex;align-items:center;justify-content:center;flex-direction:column;opacity:0;pointer-events:none;text-align:center;padding:15px}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item-overlay .overlay-title{font-weight:600;margin-bottom:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item-overlay .overlay-size{font-size:13px}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item:hover .item-selection{display:block}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item:hover .igd-gallery-item-overlay{opacity:1;pointer-events:all}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item:hover img{box-shadow:0 0 0 1px #ddd;transition:all .3s ease-in-out;transform:scale(1.07)}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item.active .item-selection{display:block}.igd-module-gallery .react-photo-gallery--gallery .igd-gallery-item.active .item-selection svg{fill:#4285f4}.igd-module-gallery.gallery-view-rounded .file-list .file-item{border-radius:5px}.igd-module-gallery.gallery-view-rounded .react-photo-gallery--gallery .igd-gallery-item{border-radius:7px}.igd-module-gallery.gallery-layout-grid .file-list .file-item{width:var(--column-width)}.igd-module-gallery.gallery-layout-grid .file-list .file-item:not(.folder-item){aspect-ratio:var(--aspect-ratio)}.igd-module-gallery.gallery-layout-grid .react-photo-gallery--gallery .igd-gallery-item{width:var(--column-width);aspect-ratio:var(--aspect-ratio)}.igd-module-gallery.gallery-layout-masonry .file-list .file-item{width:var(--column-width)}.igd-module-gallery.gallery-layout-masonry .file-list .file-item:not(.folder-item){aspect-ratio:var(--aspect-ratio)}@keyframes image-fade{from{opacity:.4}to{opacity:1}}@keyframes image-fade-out{from{opacity:1}to{opacity:0}}.igd-module-uploader,.igd-module-uploader *{box-sizing:border-box}.igd-module-uploader .dashicons-cloud-upload{width:auto;height:auto}.igd-module-uploader.igd-form-uploader{margin-top:1rem!important}.igd-module-uploader .upload-confirmation{display:none!important;margin:20px 0;text-align:center;flex-direction:column;align-items:center}.igd-module-uploader .upload-confirmation h3{color:var(--color-primary)}.igd-module-uploader.show-confirmation{border-style:solid!important}.igd-module-uploader.show-confirmation .upload-confirmation{display:flex!important}.igd-module-uploader.show-confirmation .igd-file-uploader-inner{display:none!important}.igd-file-uploader{display:flex;align-items:center;justify-content:center;flex-direction:column;border-radius:10px!important;border:1px dashed var(--color-primary-light)!important;padding:3px!important;max-width:500px;width:100%!important;background:#fff!important}.igd-file-uploader *{box-sizing:border-box}.igd-file-uploader:not(.igd-form-uploader){margin:auto}.igd-file-uploader.drag-active{border-color:var(--color-primary);border-width:2px;background-color:#bfdbfe;box-shadow:rgba(149,157,165,.2) 0 8px 24px}.igd-file-uploader.drag-active *{pointer-events:none}.igd-file-uploader-body{display:flex;align-items:center;flex-direction:column;width:100%!important;-webkit-user-select:none;-moz-user-select:none;user-select:none}.igd-file-uploader-body h3{font-size:1.2rem;font-weight:600;margin-bottom:10px!important}.igd-file-uploader-body .max-size-label{font-size:.875rem;margin-top:1rem;color:#999}.igd-file-uploader .igd-file-uploader-inner{display:flex!important;align-items:center!important;flex-direction:column!important;border-radius:7px!important;padding:1rem!important;background-color:var(--color-primary-lighter)!important;justify-content:center;width:100%!important;border:1px dashed #ddd!important}.igd-file-uploader .igd-file-uploader-inner p{font-weight:400;margin:5px 0!important;color:#555;line-height:1}.igd-file-uploader .igd-file-uploader-inner .dashicons-cloud-upload{font-size:4rem;height:auto;width:auto;margin-bottom:1rem;line-height:1;color:#555}.igd-file-uploader .igd-file-uploader-inner .igd-file-uploader-buttons{display:flex}.igd-file-uploader .igd-file-uploader-inner .igd-file-uploader-buttons button{display:flex;align-items:center;white-space:nowrap;cursor:pointer;border-radius:.25rem;border:none;padding:.375rem .5rem;margin:.5rem;background-color:var(--color-primary);box-shadow:rgba(149,157,165,.2) 0 8px 24px;color:#fff;transition:all .2s ease-in-out;font-weight:400}.igd-file-uploader .igd-file-uploader-inner .igd-file-uploader-buttons button span{margin-left:5px}.igd-file-uploader .igd-file-uploader-inner .igd-file-uploader-buttons button:hover{background-color:var(--color-primary-light-alt)}.igd-file-uploader .igd-file-uploader-inner .upload-info{display:flex;align-items:center;line-height:1}.igd-file-uploader .igd-file-uploader-inner .upload-info span{margin-right:5px}.igd-file-uploader .igd-file-uploader-inner .upload-info span:after{content:"|";margin-left:5px;color:#000}.igd-file-uploader .igd-file-uploader-inner .upload-info span:last-child{margin-right:0}.igd-file-uploader .igd-file-uploader-inner .upload-info span:last-child:after{content:"";margin-left:0}.igd-file-uploader .igd-file-uploader-inner .igd-file-uploader-add-more{margin-top:15px}.igd-file-uploader.required-error{border-color:red}.igd-file-uploader .file-list-wrapper{display:flex;flex-direction:column;z-index:50;margin-top:5px!important;width:100%!important;max-height:400px;max-width:100%;overflow:hidden!important;background-color:#fff!important;box-shadow:rgba(149,157,165,.2) 0 8px 24px!important;bottom:1rem;right:1rem}.igd-file-uploader .file-list-wrapper.fixed{position:fixed}.igd-file-uploader .file-list-wrapper .start-upload{margin:10px auto}@media (max-width:991px){.igd-file-uploader .file-list-wrapper{max-width:300px;max-height:300px;right:0}}.igd-file-uploader .file-list{display:flex;flex-flow:column;flex-wrap:nowrap!important;overflow-y:auto!important}.igd-file-uploader .file-list-header{display:flex;align-items:center;padding:10px 15px!important;background-color:var(--color-primary)!important;color:#fff;line-height:1;border-radius:5px;margin-bottom:5px}.igd-file-uploader .file-list-header .file-count{margin-right:5px}.igd-file-uploader .file-list-header i{cursor:pointer;height:26px!important;width:26px!important;border:1px solid!important;border-radius:50%!important;font-size:22px!important;display:flex;align-items:center;justify-content:center}.igd-file-uploader .file-list-item{display:flex;align-items:center;padding:8px 12px!important;border-bottom:1px solid #eaeaea!important;width:100%!important;opacity:.5}.igd-file-uploader .file-list-item img{width:22px!important;height:22px!important;margin-right:5px!important}.igd-file-uploader .file-list-item .file-info{display:flex;flex-wrap:wrap;overflow:hidden;width:100%;line-height:1}.igd-file-uploader .file-list-item .file-info .upload-item{display:flex;align-items:center;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;flex:1}.igd-file-uploader .file-list-item .file-info .upload-item-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;margin-right:4px}.igd-file-uploader .file-list-item .file-info .upload-item-size{font-size:.75rem;color:#999}.igd-file-uploader .file-list-item .file-info-percentage{margin-left:auto;text-align:right;font-size:.875rem;display:flex;align-items:center;width:-moz-max-content;width:max-content}.igd-file-uploader .file-list-item .file-info-percentage .igd-spinner{margin-top:0;margin-right:5px;border-radius:50%}.igd-file-uploader .file-list-item .file-info-progress{width:100%;height:4px;background-color:#ddd;border-radius:.25rem;margin-top:7px;overflow:hidden;position:relative;align-items:center;justify-content:space-between;display:none}.igd-file-uploader .file-list-item .file-info-progress-bar{width:var(--percentage);height:100%;background-color:var(--color-primary-light-alt);border-radius:.25rem;position:absolute;left:0;top:0;transition:width .5s ease-in-out}.igd-file-uploader .file-list-item .file-info-error{color:red;width:100%;font-size:.75rem;margin-top:3px}.igd-file-uploader .file-list-item .file-info .igd-spinner{width:20px;margin-left:7px}.igd-file-uploader .file-list-item .file-info .percentage{margin:0 7px}.igd-file-uploader .file-list-item .file-info i{margin-left:7px;height:22px!important;width:22px!important;font-size:16px;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer}.igd-file-uploader .file-list-item .file-info i:not(.dashicons-saved,.dashicons-no-alt){border:1px solid #ddd}.igd-file-uploader .file-list-item .file-info .dashicons-controls-play{padding-left:3px}.igd-file-uploader .file-list-item .file-info .remove-file{background:#ff9f10;color:#fff;margin-left:10px}.igd-file-uploader .file-list-item:hover{background-color:#e0f2fe}.igd-file-uploader .file-list-item.uploaded{opacity:1}.igd-file-uploader .file-list-item.uploaded .file-info .dashicons-saved{background:var(--color-primary);color:#fff}.igd-file-uploader .file-list-item.uploaded .file-info .remove-file{background:0 0;color:#ff9f10;border:1px solid #ff9f10;opacity:.6}.igd-file-uploader .file-list-item.uploaded .file-info .remove-file:hover{background:#ff9f10;color:#fff;opacity:1}.igd-file-uploader .file-list-item.uploaded .file-info-progress{display:flex}.igd-file-uploader .file-list-item.uploaded .file-info-progress-bar{width:100%}.igd-file-uploader .file-list-item.active{opacity:.8}.igd-file-uploader .file-list-item.active .file-info-progress{display:flex}.igd-file-uploader .file-list::-webkit-scrollbar{width:5px}.igd-file-uploader .file-list::-webkit-scrollbar-track{background:#f1f1f1}.igd-file-uploader .file-list::-webkit-scrollbar-thumb{background:#ccc}.igd-file-uploader .file-list::-webkit-scrollbar-thumb:hover{background:#bbb}.igd-file-uploader .cancel-upload{position:absolute;top:15px;right:15px;cursor:pointer;border-radius:5px;height:40px;width:40px;font-size:25px;display:flex;align-items:center;justify-content:center;color:rgba(255,0,0,.3)}.igd-file-uploader .cancel-upload:hover{color:rgba(255,0,0,.5)}.igd-file-browser .igd-file-uploader{position:fixed!important;right:15px;bottom:15px;z-index:2;box-shadow:0 0 10px rgba(0,0,0,.2)}.igd-file-browser .igd-file-uploader:has(.file-list-wrapper) .igd-file-uploader-inner .dashicons-cloud-upload{display:none}@media (max-width:767px){.igd-file-browser .igd-file-uploader{position:absolute!important;height:100%;right:unset;bottom:unset;width:calc(100% - 20px)!important;justify-content:flex-start;background:rgba(0,0,0,.5)!important}.igd-file-browser .igd-file-uploader .igd-file-uploader-inner{background:linear-gradient(var(--color-primary-lighter),var(--color-primary-lighter)),#fff!important}}.ff-el-is-error .igd-file-uploader,.frm_blank_field .igd-file-uploader,.gfield_error .igd-file-uploader,.mf-input-wrapper.has-error .igd-file-uploader,.nf-error .igd-file-uploader,.wpforms-has-error .igd-file-uploader{border-color:red!important}@keyframes ssc-loading{from{transform:translateX(-100%)}to{transform:translateX(100%)}}.ssc-circle,.ssc-head-line,.ssc-line,.ssc-square{position:relative;overflow:hidden}.ssc-circle:after,.ssc-head-line:after,.ssc-line:after,.ssc-square:after{content:"";animation:ssc-loading 1.3s infinite;height:100%;left:0;position:absolute;right:0;top:0;transform:translateX(-100%);z-index:1;background:linear-gradient(90deg,transparent,rgba(255,255,255,.3),transparent)}.ssc{cursor:progress;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ssc-card{display:block;width:100%;border-radius:5px;box-shadow:0 2px 4px 1px rgba(0,0,0,.17);background-color:#fff;margin-bottom:15px}.ssc-circle{display:block;background-color:rgba(0,0,0,.17);border-radius:50%;width:30px;height:30px}.ssc-hr{display:block;width:100%;background-color:rgba(0,0,0,.17);height:2px}.ssc-line{display:block;background-color:rgba(0,0,0,.17);border-radius:15px;height:12px}.ssc-line:last-child{margin-bottom:unset}.ssc-head-line{display:block;background-color:rgba(0,0,0,.17);border-radius:15px;width:100%;height:24px}.ssc-square{display:block;background-color:rgba(0,0,0,.17);width:100%;height:100px;border-radius:5px}.flex{display:flex}.flex-1{flex:1}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-between{justify-content:space-between}.w-full{width:100%}.mb-3{margin-bottom:.875rem}.mr-2{margin-right:.5rem}.w-16{width:4rem}.w-6{width:1.5rem}.h-6{height:1.5rem}.p-4{padding:1rem}body.google-drive_page_integrate-google-drive-private-folders.swal2-shown{overflow:auto!important;padding-right:0!important}.igd-private-folders,.igd-private-folders *{box-sizing:border-box}.igd-private-folders-header{display:flex;width:calc(100% + 20px);margin-left:-20px;background:#fff;padding:20px 20px;position:sticky;top:32px;border-bottom:1px solid #ddd;box-shadow:0 1px 5px rgba(0,0,0,.1);z-index:99;margin-bottom:30px}.igd-private-folders-header .header-title{display:flex;align-items:center;line-height:1;margin-right:auto}.igd-private-folders-header .header-title img{margin-right:15px}.igd-private-folders-header .header-title-text{display:flex;flex-direction:column}.igd-private-folders-header .header-title-text h3{font-size:1.2rem;margin:0 0 5px 0}.igd-private-folders-header .header-title-text span{margin-top:2px;color:#7a7a7a}.igd-private-folders-header .igd-btn{margin-left:10px}@media (max-width:767px){.igd-private-folders-header{position:relative;top:0}}.igd-private-folders .private-folders-list{background:#fff;padding:20px;border-radius:10px;margin:10px 15px 30px 0;position:relative;min-height:70vh}.igd-private-folders .private-folders-list-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.igd-private-folders .private-folders-list-header ul{display:flex;align-items:center}.igd-private-folders .private-folders-list-header ul li{margin-right:5px;margin-bottom:0;cursor:pointer;color:#2fb44b;font-weight:600;font-size:.875rem}.igd-private-folders .private-folders-list-header ul li:not(:last-child):after{content:"|";margin:0 5px;color:#555}.igd-private-folders .private-folders-list-header ul li span{text-transform:capitalize}.igd-private-folders .private-folders-list-header ul li.active{color:#555c66}.igd-private-folders .private-folders-list-header ul li:hover{color:#248c3a}.igd-private-folders .private-folders-list-header .users-search{display:flex;align-items:center}.igd-private-folders .private-folders-list-header .users-search input{height:40px;border:1px solid rgba(47,180,75,.5)}.igd-private-folders .private-folders-list-header .users-search button{margin-left:10px}.igd-private-folders .private-folders-list .swal2-container{position:absolute;width:100%;height:100%;z-index:9}.igd-private-folders .private-folders-list .column-username span{margin-left:10px}.igd-private-folders .private-folders-list .column-actions button{display:inline-flex;align-items:center;padding:7px 10px;line-height:1}.igd-private-folders .private-folders-list .column-actions button i{margin-right:5px}.igd-private-folders .private-folders-list .column-folders .folder-item{display:inline-flex;align-items:center;border:1px solid rgba(47,180,75,.5);width:-moz-max-content;width:max-content;padding:5px;margin:3px;border-radius:5px;color:#7a7a7a}.igd-private-folders .private-folders-list .column-folders .folder-item img{margin-right:5px}.igd-private-folders .private-folders-list .private-folders-table{border-radius:10px;overflow:hidden;border-color:#efefef}.igd-private-folders .private-folders-list .private-folders-table thead th{padding:15px;border-color:#efefef}.igd-private-folders .private-folders-list .private-folders-table tbody tr td{padding:10px;vertical-align:middle}@media (max-width:767px){.igd-private-folders .private-folders-list{margin-left:10px}.igd-private-folders .private-folders-list-header{flex-direction:column}.igd-private-folders .private-folders-list .private-folders-table-wrap{overflow-x:auto}}.igd-private-folders .igd-pro-modal-wrap{position:absolute;z-index:9;border-radius:5px}.igd-private-folders .igd-pro-modal-close{display:none}.igd-details .details-file-name{width:calc(100% - 20px)}.igd-player{line-height:1.5;display:flex;align-items:flex-start;flex-direction:column;height:100%;background-color:#fff}.igd-player.playlist-left,.igd-player.playlist-right{padding:10px}.igd-player.playlist-left .media-wrap,.igd-player.playlist-right .media-wrap{flex-direction:column;align-items:flex-start;border:none}.igd-player.playlist-left .media-wrap .igd-player-media-wrap,.igd-player.playlist-right .media-wrap .igd-player-media-wrap{margin-top:10px;margin-left:0}.igd-player.playlist-left .igd-player-playlist .playlist-item-wrap,.igd-player.playlist-right .igd-player-playlist .playlist-item-wrap{padding:5px 0}.igd-player.playlist-left.type-audio .media-wrap,.igd-player.playlist-right.type-audio .media-wrap{border:1px solid #eee}.igd-player.playlist-left{flex-wrap:wrap;flex-direction:row;-moz-column-gap:10px;column-gap:10px}.igd-player.playlist-left .igd-player-playlist{width:calc(40% - 10px);order:1;margin:0;padding-right:10px;border-right:1px solid #eee}.igd-player.playlist-left .playlist-search{margin:0}.igd-player.playlist-left .media-wrap{flex:1;order:2;position:sticky;top:10px;z-index:9}.igd-player.playlist-left:has(.igd-player-playlist) .media-wrap{max-width:60%}.igd-player.playlist-right{flex-wrap:wrap;flex-direction:row;-moz-column-gap:10px;column-gap:10px;padding-right:5px}.igd-player.playlist-right .igd-player-playlist{width:calc(40% - 10px);order:2;margin:0;padding-left:10px;border-left:1px solid #eee;padding-right:5px}.igd-player.playlist-right .playlist-search{margin:0}.igd-player.playlist-right .media-wrap{flex:1;order:1;position:sticky;top:10px;z-index:9}.igd-player.playlist-right:has(.igd-player-playlist) .media-wrap{max-width:60%}.igd-player.playlist-bottom .playlist-search{width:calc(100% - 20px);margin:10px auto}.igd-player .media-wrap{width:100%;display:flex;align-items:center}.igd-player .media-wrap .current-item{display:flex;align-items:center;overflow:hidden}.igd-player .media-wrap .current-item img{margin-right:10px;width:40px}.igd-player .media-wrap .current-item .item-caption{display:flex;flex-direction:column;overflow:hidden}.igd-player .media-wrap .current-item .item-caption .item-title{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-player .media-wrap .current-item .item-caption .item-description{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-player .media-wrap .igd-player-media-wrap{position:relative}.igd-player .media-wrap iframe{aspect-ratio:16/9}.igd-player.type-video .igd-player-media-wrap{width:100%;height:0;overflow:hidden;padding-bottom:56.25%}.igd-player.type-video .igd-player-media-wrap .igd-player-media-video,.igd-player.type-video .igd-player-media-wrap .plyr,.igd-player.type-video .igd-player-media-wrap video{position:absolute;top:0;left:0;width:100%!important;height:100%!important}.igd-player.type-audio .media-wrap{padding:15px;border-bottom:1px solid #ddd;background:#f5f5f5}.igd-player.type-audio .igd-player-media-wrap{margin-left:auto}.igd-player.type-audio .igd-player-media-wrap .plyr__controls{padding:0;background:0 0}.igd-player .igd-player-playlist{width:100%;height:100%;overflow-y:auto}.igd-player .igd-player-playlist .playlist-item{position:relative;cursor:pointer;display:flex;align-items:center;color:#333;padding:3px}.igd-player .igd-player-playlist .playlist-item.active{color:var(--color-primary);font-weight:700}.igd-player .igd-player-playlist .playlist-item.active .dashicons{border-color:var(--color-primary);color:var(--color-primary)}.igd-player .igd-player-playlist .playlist-item:not(:has(img)){padding:5px}.igd-player .igd-player-playlist .playlist-item-wrap{border-bottom:1px solid #eee;padding:5px 10px}.igd-player .igd-player-playlist .playlist-item-wrap:last-child{border-bottom:0}.igd-player .igd-player-playlist .playlist-item-wrap .sub-item{margin-left:30px}.igd-player .igd-player-playlist .playlist-item-wrap:hover{background-color:#f5f5f5}.igd-player .igd-player-playlist .playlist-item .item-index{margin-right:7px;white-space:nowrap}.igd-player .igd-player-playlist .playlist-item .igd-spinner{margin-left:0;width:18px;height:18px;margin-right:5px}.igd-player .igd-player-playlist .playlist-item img{width:30px;height:30px;-o-object-fit:cover;object-fit:cover;border-radius:3px;margin-right:5px}.igd-player .igd-player-playlist .playlist-item .item-name{margin-right:auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.igd-player .igd-player-playlist .playlist-item .item-size{margin:0 10px;color:#777;white-space:nowrap;font-size:.75rem}.igd-player .igd-player-playlist .playlist-item .dashicons{font-size:25px;color:#555c66;height:auto;width:auto}.igd-player .igd-player-playlist .playlist-item .dashicons.dashicons-arrow-down,.igd-player .igd-player-playlist .playlist-item .dashicons.dashicons-arrow-right{margin-left:-5px;margin-right:5px}.igd-player .igd-player-playlist .playlist-item .dashicons:hover{color:#444;border-color:var(--color-primary)}.igd-player .igd-player-playlist .playlist-item:last-child{border-bottom:0}.igd-player .igd-player-playlist .search-result-info{display:flex;align-items:center;margin-bottom:7px;margin-top:7px}.igd-player .igd-player-playlist .search-result-info .clear-button{margin-left:7px;padding:7px 10px}.igd-player .igd-player-playlist::-webkit-scrollbar{width:5px;height:5px}.igd-player .igd-player-playlist::-webkit-scrollbar-thumb{background:#ddd;border-radius:10px}.igd-player .igd-player-playlist::-webkit-scrollbar-track{background:#eee;border-radius:10px}.igd-player .playlist-search{position:relative;display:flex;align-items:center;transition:width .3s linear;line-height:1;overflow:hidden;border:1px solid #ddd;border-radius:5px;width:100%;padding:0 15px;margin:10px 0}.igd-player .playlist-search .search-dismiss{cursor:pointer}.igd-player .playlist-search input{height:40px;padding:0 15px;font-size:14px;width:100%;border:none!important;box-shadow:none!important;border-radius:0!important;background:0 0}.igd-player .playlist-search input:focus{outline:0}.igd-player .playlist-search .search-submit{position:relative;z-index:2}.igd-player .playlist-search .search-submit .dashicons{font-family:dashicons}.igd-player .playlist-search:has(input:focus){box-shadow:rgba(0,0,0,.24) 0 3px 8px}.igd-player .playlist-search.active .input-wrap{right:-10px}.igd-player .playlist-search.active .search-submit svg{fill:#333}.igd-player video{display:inline-block;max-width:100%;min-height:100%}.igd-player audio{display:none;max-width:100%;width:100%}.igd-player .plyr__controls .plyr__controls__item.plyr__time{white-space:nowrap}.igd-player .plyr__control:focus{background:0 0;color:currentColor}.igd-player .plyr__volume input[type=range]{max-width:60px}.igd-player.size-sm.type-audio .media-wrap,.igd-player.size-xs.type-audio .media-wrap{flex-direction:column}.igd-player.size-sm.type-audio .media-wrap .current-item img,.igd-player.size-xs.type-audio .media-wrap .current-item img{width:30px}.igd-player.size-sm.type-audio .media-wrap .igd-player-media-wrap,.igd-player.size-xs.type-audio .media-wrap .igd-player-media-wrap{margin-top:15px;margin-left:0}.igd-player.size-sm .plyr__volume input[type=range],.igd-player.size-xs .plyr__volume input[type=range]{max-width:40px;min-width:40px}.igd-player.size-sm.playlist-left,.igd-player.size-sm.playlist-right,.igd-player.size-xs.playlist-left,.igd-player.size-xs.playlist-right{flex-direction:column}.igd-player.size-sm.playlist-left .igd-player-playlist,.igd-player.size-sm.playlist-left .media-wrap,.igd-player.size-sm.playlist-right .igd-player-playlist,.igd-player.size-sm.playlist-right .media-wrap,.igd-player.size-xs.playlist-left .igd-player-playlist,.igd-player.size-xs.playlist-left .media-wrap,.igd-player.size-xs.playlist-right .igd-player-playlist,.igd-player.size-xs.playlist-right .media-wrap{width:100%;max-width:100%!important}.igd-player.size-sm.playlist-left .media-wrap,.igd-player.size-sm.playlist-right .media-wrap,.igd-player.size-xs.playlist-left .media-wrap,.igd-player.size-xs.playlist-right .media-wrap{position:unset}.igd-player.size-sm.playlist-left .igd-player-playlist,.igd-player.size-sm.playlist-right .igd-player-playlist,.igd-player.size-xs.playlist-left .igd-player-playlist,.igd-player.size-xs.playlist-right .igd-player-playlist{order:999}.igd-lightbox{z-index:999999;position:fixed}.igd-lightbox .lg-backdrop{background:rgba(0,0,0,.9)!important}.igd-lightbox .lg-sub-html h4,.igd-lightbox .lg-sub-html p{color:inherit}.igd-lightbox:not(.gallery-lightbox) .lg-sub-html{background:#111!important;display:flex;align-items:center;padding:10px 15px;max-width:calc(100% - 100px)}.igd-lightbox .lg-outer .lg-thumb-item{height:60px}.igd-lightbox .item-name{display:flex;align-items:center;max-width:75%;overflow:hidden}.igd-lightbox .item-name img{margin-right:10px;width:24px}.igd-lightbox .item-name span{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.igd-lightbox.no-download .lg-download{display:none}.igd-lightbox .lg-outer[data-lg-slide-type=iframe] .lg-actual-size,.igd-lightbox .lg-outer[data-lg-slide-type=iframe] .lg-zoom-in,.igd-lightbox .lg-outer[data-lg-slide-type=iframe] .lg-zoom-out,.igd-lightbox .lg-outer[data-lg-slide-type=video] .lg-actual-size,.igd-lightbox .lg-outer[data-lg-slide-type=video] .lg-zoom-in,.igd-lightbox .lg-outer[data-lg-slide-type=video] .lg-zoom-out{display:none}.igd-lightbox .lg-outer[data-lg-slide-type=iframe] .igd-hidepopout{width:60px;height:55px;position:absolute;opacity:1;right:12px;top:0;z-index:10000000;background-color:#d1d1d1;cursor:default!important}.igd-lightbox .lg-item:has(video>source[type*="audio/"]) .lg-video-cont{margin-top:-60px;max-height:60px;max-width:500px}.igd-lightbox .lg-item:has(video>source[type*="audio/"]) .lg-video-cont .lg-video-poster{margin-top:-20px;max-width:100px!important;height:100px!important;max-height:none!important}@media (max-width:767px){.igd-lightbox .lg-item .lg-video-cont{max-width:90%!important}}.igd-select-files-modal .components-modal__header{border-bottom:1px solid #ddd;box-shadow:0 1px 5px rgba(0,0,0,.1)}.igd-select-files-modal .components-modal__header-heading{width:100%}.igd-select-files-modal .shortcode-module-header{display:flex;flex-direction:column;justify-content:center;align-items:center;margin:30px auto}.igd-select-files-modal .shortcode-module-header .module-title{font-size:1.2rem;margin-bottom:10px;font-weight:600}.igd-select-files-modal .shortcode-module .shortcode-types{display:flex;flex-wrap:wrap;justify-content:center}.igd-select-files-modal .shortcode-module .shortcode-types .shortcode-type{width:calc(20% - 20px);margin:10px;padding:2rem 1.5rem;border:1px solid #ddd;border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;max-width:250px;transition:background .3s ease}.igd-select-files-modal .shortcode-module .shortcode-types .shortcode-type i{height:auto;width:auto;border-radius:50%;padding:15px;border:1px solid #ddd}.igd-select-files-modal .shortcode-module .shortcode-types .shortcode-type span{font-size:1rem;margin-top:15px}.igd-select-files-modal .shortcode-module .shortcode-types .shortcode-type.active{background:var(--color-primary-light);border:1px solid var(--color-primary);color:#fff}.igd-select-files-modal .shortcode-module .shortcode-types .shortcode-type.active i{border:1px solid #fff}.igd-select-files-modal .shortcode-module .shortcode-types .shortcode-type:hover{background:var(--color-primary-light);border:1px solid var(--color-primary);color:#fff}.igd-select-files-modal .shortcode-module .shortcode-types .shortcode-type:hover i{border:1px solid #fff}.igd-select-files-modal .shortcode-module .settings-field{display:flex;flex-wrap:wrap;margin-bottom:10px;align-items:center;border:1px dashed #ddd;border-radius:5px;padding:12px 18px}.igd-select-files-modal .shortcode-module .settings-field-title{font-size:1.2rem;margin-bottom:20px;font-weight:600}.igd-select-files-modal .shortcode-module .settings-field-label{width:200px;font-weight:600;font-size:1rem;display:flex;justify-content:space-between}.igd-select-files-modal .shortcode-module .settings-field-label:after{content:":";margin-left:auto}.igd-select-files-modal .shortcode-module .settings-field-content{display:flex;flex-direction:column;align-items:flex-start;margin-left:20px;flex:1}.igd-select-files-modal .shortcode-module .settings-field-content .components-button i{margin-right:5px}.igd-select-files-modal .shortcode-module .settings-field-content .description{font-size:.8rem;margin-top:10px;text-align:left}.igd-select-files-modal .shortcode-module .settings-field.filter-field .filter-field-input{display:flex;flex-direction:column}.igd-select-files-modal .shortcode-module .settings-field.filter-field .filter-field-all{display:flex;align-items:center;justify-content:flex-start;margin-top:15px;flex-wrap:wrap}.igd-select-files-modal .shortcode-module .settings-field.filter-field .filter-field-all>div{display:flex;align-items:center}.igd-select-files-modal .shortcode-module .settings-field.filter-field .filter-field-all>div:first-child{margin-right:20px}.igd-select-files-modal .shortcode-module .settings-field.filter-field .filter-field-all-label{margin-right:10px;font-weight:500}.igd-select-files-modal .shortcode-module .settings-field.filter-field .filter-field-all .description{width:100%;text-align:left}.igd-select-files-modal .shortcode-module .settings-field.sort-field .sort-field-section{display:flex;flex-direction:column}.igd-select-files-modal .shortcode-module .settings-field.sort-field .sort-field-section:first-child{margin-right:35px;padding-right:15px;border-right:1px solid #ddd}.igd-select-files-modal .shortcode-module .settings-field.sort-field .sort-field-section-wrap{display:flex;margin:15px 30px}.igd-select-files-modal .shortcode-module .settings-field.sort-field .sort-field-section-label{margin-bottom:15px;font-weight:500;text-align:left}.igd-select-files-modal .shortcode-module .settings-field.sort-field .sort-field-section .sort-item{display:flex;align-items:center;margin-bottom:10px;cursor:pointer;position:relative}.igd-select-files-modal .shortcode-module .settings-field.sort-field .sort-field-section .sort-item i{display:none;position:absolute;left:-25px}.igd-select-files-modal .shortcode-module .settings-field.sort-field .sort-field-section .sort-item.active{color:var(--color-primary)}.igd-select-files-modal .shortcode-module .settings-field.sort-field .sort-field-section .sort-item.active i{display:block}.igd-select-files-modal .shortcode-module .settings-field.filter-users-field .filter-users-group{display:flex;flex-direction:column}.igd-select-files-modal .shortcode-module .settings-field.filter-users-field .filter-users{margin-top:15px;display:flex;flex-direction:column;border:1px dashed #ddd;padding:15px;border-radius:7px}.igd-select-files-modal .shortcode-module .settings-field.filter-users-field .filter-users-title{font-weight:500;font-size:1rem;margin-bottom:10px;text-align:left}.igd-select-files-modal .shortcode-module .settings-field.filter-users-field .filter-users-section{display:flex;align-items:center}.igd-select-files-modal .shortcode-module .settings-field.filter-users-field .filter-users-section:first-child{margin-right:20px}.igd-select-files-modal .shortcode-module .settings-field.filter-users-field .filter-users-section-label{margin-right:10px;font-weight:500}.igd-select-files-modal .shortcode-module .settings-field.filter-users-field .filter-users-section-wrap{display:flex;flex-wrap:wrap;margin-bottom:15px}.igd-select-files-modal .shortcode-module .settings-field.filter-users-field .filter-users-section-wrap .description{width:100%}.igd-select-files-modal .shortcode-module .settings-field input,.igd-select-files-modal .shortcode-module .settings-field select{height:40px;border-radius:5px;border:1px solid #ddd;font-size:.8rem;width:350px;max-width:100%}.igd-select-files-modal .shortcode-module .settings-field input:disabled,.igd-select-files-modal .shortcode-module .settings-field select:disabled{background:#f5f5f5;color:#aaa;cursor:not-allowed}.igd-select-files-modal .shortcode-module .settings-field .igd-select{width:400px}.igd-select-files-modal-header{display:flex;align-items:center;justify-content:space-between}.igd-select-files-modal-header .header-title{font-size:1.2rem;color:var(--color-primary);display:flex;align-items:center}.igd-select-files-modal-header .header-title i{margin-right:10px}.igd-select-files-modal-header button{padding:7px 8px}.igd-account-item{padding:1rem;display:flex;border:0 solid transparent;box-shadow:rgba(99,99,99,.2) 0 2px 8px 0;border-radius:.5rem;align-items:center;max-width:450px;margin-bottom:1rem;background:#fff}.igd-account-item img{width:50px;height:50px;margin-right:1rem;border-radius:50%}.igd-account-item-info{display:flex;flex-flow:column}.igd-account-item-info .account-name{font-size:1rem}.igd-account-item-info .account-email{color:#757575}.igd-account-item .igd-account-item-action{margin-left:auto}.igd-account-item .igd-account-item-action button{background-color:#ffe9d9;color:#f06500;border-color:transparent}.igd-account-item:hover button{background:#f96;color:#fff}.no-account-placeholder{display:flex;flex-flow:column;align-items:center;margin:10vh auto;padding:1.5rem 1rem;border-radius:.5rem;width:30rem;background:#fff;box-shadow:0 0 .5rem rgba(0,0,0,.1)}.no-account-placeholder>img{width:200px;margin-bottom:15px}.no-account-placeholder .placeholder-heading{font-size:1.2rem;margin-bottom:7px;font-weight:600}.no-account-placeholder button{margin-top:1.5rem;padding:7px 10px;background:#fff;color:#555;border-radius:3px;border:1px solid #ccc}.no-account-placeholder button img{width:24px;height:24px;margin-right:10px}.add-account-btn{padding:10px 15px;background:#fff;color:#555;border-radius:3px;border:1px solid #ccc}.add-account-btn img{width:24px;height:24px;margin-right:10px}.igd .igd-spinner{margin-top:0;border-radius:50%}.sortable-item{z-index:999999}.igd-select-sources-wrap .igd-browser-wrap{flex:1;margin-right:1rem}.igd-select-sources-wrap .igd-selected-list{width:24%;max-width:300px}.igd-select-sources-wrap.view-list .igd-browser-wrap{width:100%;margin-right:0}.igd-select-sources-wrap.view-list .igd-selected-list{width:100%;max-width:100%;margin-top:1rem}.igd-pagination{display:flex;padding:0}.igd-pagination li{justify-content:center!important;flex-wrap:wrap!important;list-style:none;position:relative;display:flex;align-items:center;padding:8px 16px;text-decoration:none!important;font-size:15px;margin-left:-1px;border:1px solid #dee2e6;margin-right:0;margin-top:0;cursor:pointer}.igd-pagination li.selected,.igd-pagination li:hover{background:var(--color-primary);color:#fff;border-color:var(--color-primary)}.igd-pagination li.disabled{background:#eee;cursor:not-allowed}.igd-pagination li:first-child{border-top-left-radius:3px;border-bottom-left-radius:3px}.igd-pagination li:last-child{border-top-right-radius:3px;border-bottom-right-radius:3px}.igd-pagination li svg{fill:currentColor}.igd-move-modal .components-modal__content{display:flex;flex-flow:column}.igd-file-item .igd-file-thumbnail{-webkit-user-drag:none}.template-tags{margin-top:10px;border-bottom:1px solid #eee;padding-bottom:8px;width:100%}.template-tags-title{width:100%;margin-bottom:7px;text-align:left;font-size:1rem;display:flex;align-items:center}.template-tags-title i{margin-right:7px;cursor:pointer}.template-tags-title span:nth-child(3){margin-left:7px}.template-tags-title+.template-tags-list{display:none}.template-tags-title.active i:before{content:"\f343"}.template-tags-title.active+.template-tags-list{display:flex}.template-tags-list{display:flex;flex-wrap:wrap}.template-tags-list .tag{color:#2fb44b;margin-right:10px;margin-bottom:7px;background:rgba(47,180,75,.1);padding:7px 10px;border-radius:5px;cursor:pointer;font-size:.87rem}.template-tags-list .tag:hover{background:rgba(47,180,75,.7);color:#fff}.template-tags-list .tag-break{width:100%;border-top:1px solid #eee;margin-top:5px;margin-bottom:11px}.template-tags-list .tag-break+.tag-break{display:none}.template-folder{padding:7px 10px;border-radius:5px;background:#eaeaea;margin-right:10px;font-size:.9rem;color:#555;display:flex;flex-wrap:wrap;align-items:center;width:-moz-max-content;width:max-content;line-height:1}.template-folder-account{margin-right:10px}.template-folder-item{background:#fff;padding:5px 7px;border-radius:3px;font-size:.8rem;display:flex;align-items:center;justify-content:center}.template-folder i,.template-folder img{margin-right:7px;width:20px}.template-folder-wrap{display:flex;align-items:center;width:100%}.template-folder-wrap button{font-size:.875rem;padding:7px;margin-left:10px}.template-folder-wrap button.btn-danger{background:#ff9f10;border-color:rgba(255,159,16,.5)}.template-folder-wrap button.btn-danger:hover{background:rgba(255,159,16,.8)}.template-folder-error{color:#ff9f10;font-size:.8rem;margin-top:10px;display:flex;align-items:center}.template-folder-error i{margin-right:5px}.template-folder .dashicons-no-alt{color:#ff9f10;cursor:pointer;margin-left:10px}.igd-shortcode-wrap{-webkit-user-select:none;-moz-user-select:none;user-select:none;overflow-y:auto;margin-bottom:1rem;color:#333;box-sizing:border-box}.igd-shortcode-wrap *{box-sizing:inherit}.igd-shortcode-wrap::-webkit-scrollbar{width:5px}.igd-shortcode-wrap::-webkit-scrollbar-thumb{background:var(--color-primary-light);border-radius:10px}.igd-shortcode-wrap::-webkit-scrollbar-track{background:#ddd;border-radius:10px}.igd-shortcode-wrap.igd-shortcode-browser,.igd-shortcode-wrap.igd-shortcode-gallery,.igd-shortcode-wrap.igd-shortcode-search{border:1px solid #ddd;border-radius:.5rem}.igd-shortcode-wrap.igd-shortcode-browser .igd-file-browser,.igd-shortcode-wrap.igd-shortcode-gallery .igd-file-browser,.igd-shortcode-wrap.igd-shortcode-search .igd-file-browser{align-items:stretch}.igd-shortcode-wrap.igd-shortcode-browser .igd-file-browser .igd-details,.igd-shortcode-wrap.igd-shortcode-browser .igd-file-browser .igd-file-browser-header,.igd-shortcode-wrap.igd-shortcode-gallery .igd-file-browser .igd-details,.igd-shortcode-wrap.igd-shortcode-gallery .igd-file-browser .igd-file-browser-header,.igd-shortcode-wrap.igd-shortcode-search .igd-file-browser .igd-details,.igd-shortcode-wrap.igd-shortcode-search .igd-file-browser .igd-file-browser-header{top:0}.igd-shortcode-wrap.igd-shortcode-search .igd-file-browser-header{height:70px}.igd-shortcode-wrap.igd-shortcode-search .igd-file-browser-header .header-action{width:100%}.igd-shortcode-wrap.igd-shortcode-search .igd-file-browser-header .header-action .igd-search-bar{margin-left:0;width:100%;height:50px;position:relative}.igd-shortcode-wrap.igd-shortcode-audioVideo{overflow:hidden}.igd-shortcode-wrap.igd-shortcode-slider{overflow-y:unset}.igd-shortcode-wrap.igd-shortcode-media{border:1px solid #eee;overflow-y:unset}.igd-video-player video{position:static;transform:none}.igd-video-player audio{height:revert!important}.igd-download-link,.igd-view-link{display:block}.igd-embed-image{max-width:100%}.igd-slider{--slide-height:300px;--slide-gap:5px}.igd-slider .slick-next,.igd-slider .slick-prev{z-index:9}.igd-slider .slick-next:before,.igd-slider .slick-prev:before{display:none}.igd-slider .slick-prev{left:-25px}.igd-slider .slick-next{right:-25px}.igd-slider .slick-dots{position:static}.igd-slider .slick-dots li button:before{font-size:15px}.igd-slider .slider-img-wrap{height:100%;width:100%;position:relative}.igd-slider .slider-img-wrap img{height:100%;width:100%;-o-object-fit:cover;object-fit:cover}.igd-slider .slider-content-wrap{position:absolute;top:0;left:0;right:0;padding:1rem;color:#fff;text-align:center;width:100%;height:100%;opacity:0;background:linear-gradient(to bottom,rgba(0,0,0,.5) 50%,rgba(0,0,0,0) 100%);box-sizing:border-box;transition:all .3s ease-in-out;overflow:hidden;display:flex;align-items:center;justify-content:center}.igd-slider .slider-content-wrap h3{font-size:1rem;margin-bottom:0;color:#fff}.igd-slider .slider-content-wrap p{font-size:.875rem;margin-bottom:0;color:#fff}.igd-slider .slider-actions{display:flex;justify-content:center;align-items:center;margin:10px 0}.igd-slider .slider-actions .slider-action{cursor:pointer;transition:transform .3s ease-in-out}.igd-slider .slider-actions .slider-action.action-download{margin-left:20px}.igd-slider .slider-actions .slider-action svg{width:30px;height:30px;fill:#fff}.igd-slider .slider-actions .slider-action:hover{transform:scale(1.1)}.igd-slider .slick-slide{height:var(--slide-height)}.igd-slider .slick-slide>div{height:100%;position:relative;margin:0 var(--slide-gap)}.igd-slider .slick-slide .slider-item-wrap{position:absolute;width:100%;height:100%}.igd-slider .slick-slide:hover .slider-content-wrap{opacity:1}.igd-access-denied-placeholder{max-width:500px;margin:20px auto;padding:2rem;background:#f1f1f1;border-radius:.5rem;text-align:center}.igd-access-denied-placeholder img{max-width:100px;margin-bottom:15px}.igd-access-denied-placeholder h3{font-size:1.5rem;font-weight:600;margin-bottom:1rem}.igd-access-denied-placeholder p{font-size:1rem;margin-bottom:1rem;color:#555}.igd-disqus-wrap{display:none}[data-widget_type="igd_browser.default"] .elementor-widget-empty-icon:empty,[data-widget_type="igd_shortcodes.default"] .elementor-widget-empty-icon:empty{height:200px;background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIiB2aWV3Qm94PSIwIDAgOTkgOTkiIGZpbGw9Im5vbmUiPgo8cGF0aCBkPSJNOTguNTEzMyA0OS4yMTMxQzk4LjUxMzMgNzYuMzkyOCA3Ni40NjA0IDk4LjQyNjIgNDkuMjU2NyA5OC40MjYyQzIyLjA1MyA5OC40MjYyIDAgNzYuMzkyOCAwIDQ5LjIxMzFDMCAyMi4wMzM1IDIyLjA1MyAwIDQ5LjI1NjcgMEM3Ni40NjA0IDAgOTguNTEzMyAyMi4wMzM1IDk4LjUxMzMgNDkuMjEzMVoiIGZpbGw9InVybCgjcGFpbnQwX2xpbmVhcl8xNjgwXzIzNjUpIi8+CjxwYXRoIGQ9Ik0yNy42OTUzIDcwLjU1ODdDMjcuOTY1OSA3MC4wNDM1IDI4LjE0NjIgNjkuNzA3NSAyOC4zMjY2IDY5LjM5MzlDMzEuMTY3NSA2NC40ODg1IDM0LjA1MzUgNTkuNTgzIDM2Ljg3MTkgNTQuNjc3NkMzNy4yNzc3IDUzLjk2MDggMzcuNzUxMiA1My43MzY4IDM4LjU2MjkgNTMuNzM2OEM0OC42NjM5IDUzLjc1OTIgNTguNzY0OCA1My43NTkyIDY4Ljg2NTggNTMuNzU5MkM2OS4xNTg5IDUzLjc1OTIgNjkuNDc0NiA1My43MzY4IDY5Ljc2NzcgNTMuNzgxNkM3MS4xNDMgNTMuOTM4NCA3MS44MTk0IDU1LjA1ODQgNzEuMTY1NiA1Ni4yOTAzQzY4Ljc5ODIgNjAuNzI1NCA2Ni4zNjMxIDY1LjEzODEgNjMuOTczMSA2OS41NzMxQzYzLjUyMjIgNzAuNDI0MyA2Mi43NTU2IDcwLjU4MTEgNjEuODc2MyA3MC41ODExQzU3LjI5OTMgNzAuNTgxMSA1Mi43MjIzIDcwLjU4MTEgNDguMTIyNyA3MC41ODExQzQxLjgwOTYgNzAuNTgxMSAzNS40OTY1IDcwLjU4MTEgMjkuMjA1OSA3MC41ODExQzI4Ljc1NSA3MC41NTg3IDI4LjMyNjYgNzAuNTU4NyAyNy42OTUzIDcwLjU1ODdaIiBmaWxsPSIjMjY4M0ZCIi8+CjxwYXRoIGQ9Ik0zMS4wNTY2IDI1LjI4OTVDMzEuMzA0NiAyNS42NDc5IDMxLjQ4NSAyNS45MTY3IDMxLjY0MjggMjYuMTg1NUMzNC40NjExIDMxLjAyMzcgMzcuMjU2OSAzNS44ODQ0IDQwLjA5NzggNDAuNzAwMkM0MC40NTg2IDQxLjMwNSA0MC40MzYgNDEuNzA4MiA0MC4wOTc4IDQyLjMxM0MzNC44NjcgNTEuMjcyNyAyOS42NTg3IDYwLjI1NDggMjQuNDI3OCA2OS4yMTQ1QzI0LjAyMiA2OS45MzEzIDIzLjU3MSA3MC41MzYxIDIyLjYyNDEgNzAuNTEzN0MyMS42OTk2IDcwLjQ5MTMgMjEuMjcxMyA2OS44NjQxIDIwLjg4OCA2OS4xNDczQzE4LjYzMzMgNjQuOTgxMSAxNi4zNzg2IDYwLjgxNDggMTQuMTAxNCA1Ni42NDg1QzEzLjY1MDQgNTUuODE5NyAxMy41ODI4IDU1LjEwMyAxNC4wNzg4IDU0LjI1MThDMTkuNjAyOCA0NC44MjE3IDI1LjEwNDIgMzUuMzY5MiAzMC42MjgyIDI1LjkxNjdDMzAuNzE4NCAyNS43Mzc1IDMwLjg1MzcgMjUuNTU4MyAzMS4wNTY2IDI1LjI4OTVaIiBmaWxsPSIjMDFBQjQ3Ii8+CjxwYXRoIGQ9Ik02OC42NDM5IDUwLjMzMTVDNjguMTI1MyA1MC4zNTM5IDY3Ljc2NDYgNTAuMzc2MyA2Ny40MDM4IDUwLjM3NjNDNjEuODc5OSA1MC4zNzYzIDU2LjM1NTkgNTAuMzUzOSA1MC44NTQ1IDUwLjM5ODdDNTAuMDQyOCA1MC4zOTg3IDQ5LjU2OTMgNTAuMTk3MSA0OS4xNjM1IDQ5LjQ1NzlDNDQuMTEzIDQwLjcyMjIgMzkuMDM5OSAzMi4wMzEyIDMzLjk4OTUgMjMuMzE3OUMzMi43NzE5IDIxLjI3OTYgMzMuNDI1OCAyMC4xNTk2IDM1LjgxNTggMjAuMTM3MkM0MC4zOTI4IDIwLjEzNzIgNDQuOTY5OCAyMC4xMzcyIDQ5LjU2OTMgMjAuMTM3MkM1MC41NjE0IDIwLjEzNzIgNTEuMjgyOSAyMC40MDYgNTEuODAxNCAyMS4zMDJDNTcuMzAyOSAzMC43OTkzIDYyLjg0OTQgNDAuMjc0MiA2OC4zNzM0IDQ5Ljc0OTFDNjguNDQxIDQ5Ljg4MzUgNjguNDg2MSA1MC4wMTc5IDY4LjY0MzkgNTAuMzMxNVoiIGZpbGw9IiNGRUI5MDEiIHN0eWxlPSImIzEwOyIvPgo8cGF0aCBkPSJNNjguODc5NCA3Ni41MDMyQzc3LjY5MjYgNzYuNTAzMiA4NC44MzcxIDY5LjM2NjEgODQuODM3MSA2MC41NjIxQzg0LjgzNzEgNTEuNzU4IDc3LjY5MjYgNDQuNjIwOSA2OC44Nzk0IDQ0LjYyMDlDNjAuMDY2MiA0NC42MjA5IDUyLjkyMTcgNTEuNzU4IDUyLjkyMTcgNjAuNTYyMUM1Mi45MjE3IDY5LjM2NjEgNjAuMDY2MiA3Ni41MDMyIDY4Ljg3OTQgNzYuNTAzMloiIGZpbGw9IiNGNzgzMkUiLz4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik02OC44Nzk0IDczLjIwODlDNzUuODc2NCA3My4yMDg5IDgxLjU0MjggNjcuNTQzNSA4MS41NDI4IDYwLjU2MjFDODEuNTQyOCA1My41ODA2IDc1Ljg3NjQgNDcuOTE1MyA2OC44Nzk0IDQ3LjkxNTNDNjEuODgyNCA0Ny45MTUzIDU2LjIxNiA1My41ODA2IDU2LjIxNiA2MC41NjIxQzU2LjIxNiA2Ny41NDM1IDYxLjg4MjQgNzMuMjA4OSA2OC44Nzk0IDczLjIwODlaTTg0LjgzNzEgNjAuNTYyMUM4NC44MzcxIDY5LjM2NjEgNzcuNjkyNiA3Ni41MDMyIDY4Ljg3OTQgNzYuNTAzMkM2MC4wNjYyIDc2LjUwMzIgNTIuOTIxNyA2OS4zNjYxIDUyLjkyMTcgNjAuNTYyMUM1Mi45MjE3IDUxLjc1OCA2MC4wNjYyIDQ0LjYyMDkgNjguODc5NCA0NC42MjA5Qzc3LjY5MjYgNDQuNjIwOSA4NC44MzcxIDUxLjc1OCA4NC44MzcxIDYwLjU2MjFaIiBmaWxsPSJ3aGl0ZSIvPgo8cGF0aCBkPSJNNjMuNTIzNSA2MS4wOTgyQzY0LjA5NzcgNjEuNjcxNiA2NC42NTI5IDYyLjIyNTkgNjUuMjI3MSA2Mi43OTkzQzY1LjcyNDggNjMuMjk2MyA2Ni4yMjI1IDYzLjc5MzMgNjYuNzIwMiA2NC4yOTAyQzY3LjA4MzkgNjQuNjUzNCA2Ny4xMDMxIDY1LjE2OTUgNjYuNzU4NSA2NS40OTQ0QzY2LjQxNCA2NS44Mzg1IDY1Ljg5NzEgNjUuODE5NCA2NS41MzM0IDY1LjQ1NjJDNjQuNjE0NiA2NC41Mzg3IDYzLjY5NTggNjMuNjIxMiA2Mi43NzY5IDYyLjcwMzhDNjIuNDUxNSA2Mi4zNzg4IDYyLjEyNjEgNjIuMDUzOSA2MS44MDA3IDYxLjcyODlDNjEuNDE3OCA2MS4zNDY3IDYxLjQxNzggNjAuODMwNiA2MS44MDA3IDYwLjQ0ODNDNjMuMDQ0OSA1OS4yMDU5IDY0LjI4OTIgNTcuOTQ0NCA2NS41NTI2IDU2LjcwMTlDNjUuODIwNSA1Ni40MzQzIDY2LjE0NiA1Ni4zNzcgNjYuNDkwNSA1Ni41MTA4QzY2Ljc5NjggNTYuNjQ0NiA2Ni45ODgyIDU2Ljk1MDQgNjYuOTg4MiA1Ny4yOTQ1QzY2Ljk4ODIgNTcuNTIzOCA2Ni44NzM0IDU3LjcxNSA2Ni43MDExIDU3Ljg4N0M2NS42ODY2IDU4LjkwMDEgNjQuNjUyOSA1OS45MzIyIDYzLjYzODMgNjAuOTQ1M0M2My42MTkyIDYxLjAyMTcgNjMuNTgwOSA2MS4wNiA2My41MjM1IDYxLjA5ODJaIiBmaWxsPSJ3aGl0ZSIvPgoKPHBhdGggZD0iTTc0LjIyMDQgNjAuOTI0OUM3My43NDE4IDYwLjQ0NyA3My4yNjMzIDU5Ljk2OTIgNzIuODAzOSA1OS41MTA0QzcyLjIxMDQgNTguOTE3OSA3MS41OTc5IDU4LjMyNTQgNzEuMDA0NSA1Ny43MTM3QzcwLjc3NDggNTcuNDg0NCA3MC42OTgyIDU3LjE3ODUgNzAuNzkzOSA1Ni44NzI3QzcwLjg4OTYgNTYuNTY2OSA3MS4xMDAyIDU2LjM3NTcgNzEuNDI1NiA1Ni4zMTg0QzcxLjczMTkgNTYuMjYxMSA3MS45OTk5IDU2LjM1NjYgNzIuMjEwNCA1Ni41NjY5QzcyLjg4MDQgNTcuMjM1OSA3My41MzEzIDU3LjkwNDkgNzQuMjAxMiA1OC41NTQ3Qzc0Ljc3NTUgNTkuMTI4MiA3NS4zNjg5IDU5LjcyMDcgNzUuOTQzMiA2MC4yOTQxQzc2LjMwNjkgNjAuNjU3MyA3Ni4zMDY5IDYxLjE5MjUgNzUuOTQzMiA2MS41NTU3Qzc0LjY5ODkgNjIuNzk4MSA3My40NzM4IDY0LjAyMTQgNzIuMjI5NiA2NS4yNjM4QzcxLjkyMzMgNjUuNTY5NiA3MS41NDA1IDY1LjY0NjEgNzEuMTk1OSA2NS40NzQxQzcwLjY5ODIgNjUuMjA2NSA3MC42MDI1IDY0LjU1NjYgNzEuMDA0NSA2NC4xNTUyQzcxLjM2ODIgNjMuNzcyOSA3MS43NTEgNjMuNDA5NyA3Mi4xMzM5IDYzLjAyNzRDNzIuNzg0NyA2Mi4zNzc2IDczLjQzNTYgNjEuNzI3NyA3NC4xMDU1IDYxLjA1ODdDNzQuMTI0NyA2MS4wMjA1IDc0LjE2MyA2MC45ODIyIDc0LjIyMDQgNjAuOTI0OVoiIGZpbGw9IndoaXRlIi8+Cgo8ZGVmcz4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDBfbGluZWFyXzE2ODBfMjM2NSIgeDE9Ijk4LjUxMzMiIHkxPSI0MS4yMTYiIHgyPSItNy4zODM5OSIgeTI9IjU3Ljg1NDEiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KPHN0b3Agc3RvcC1jb2xvcj0iIzk0QjJGRiIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiM0MkI0RkYiIHN0b3Atb3BhY2l0eT0iMC42NSIvPgo8L2xpbmVhckdyYWRpZW50Pgo8L2RlZnM+Cjwvc3ZnPg==);background-color:rgba(47,180,75,.1);background-repeat:no-repeat;border:2px dashed rgba(47,180,75,.5);background-position:center;padding:2rem;box-sizing:content-box}.elementor-element-edit-mode .igd-download-link a,.elementor-element-edit-mode .igd-view-link a{pointer-events:none}.elementor-element-edit-mode .igd-embed{pointer-events:none}.elementor-field-type-google_drive_upload .igd-shortcode-uploader{width:100%}.elementor-field-type-google_drive_upload .igd-shortcode-uploader+.upload-file-list{height:0!important;width:0!important;opacity:0!important;min-height:1px!important;padding:0!important;border:none!important;min-width:0!important;max-width:1px!important}#woocommerce-product-data ul.wc-tabs li.upload_options_options a:before{content:"\f13b";font-family:dashicons}.igd-woocommerce{display:inline-flex;float:right;margin-right:10px}.igd-woocommerce .igd-wc-button{display:inline-flex!important;margin-left:auto!important;align-items:center}.igd-woocommerce .igd-wc-button img{margin-right:5px}.upload-box-settings{margin:20px}.upload-box-settings .form-field .description{display:block;clear:both;margin:20px 0 10px 0}.upload-box-settings .form-field .upload_folder_name{width:100%}.igd-wc-upload-wrap{margin:20px 0;display:block}.igd-wc-upload-wrap .upload-button{display:flex!important;align-items:center;width:-moz-max-content;width:max-content;text-align:center;margin-bottom:15px!important;float:none!important}.igd-wc-upload-wrap .upload-button i{margin-right:5px}.igd-wc-upload-wrap .igd-shortcode-uploader{visibility:hidden;width:0;height:0;position:absolute;overflow:hidden;z-index:-1;max-width:500px;clear:both}.igd-wc-upload-wrap .igd-shortcode-uploader .igd-file-uploader-inner .dashicons-cloud-upload{display:none}.igd-wc-upload-wrap .igd-shortcode-uploader .igd-file-uploader{margin:0}.igd-wc-upload-wrap .igd-wc-upload-description{margin:0;clear:both}.igd-wc-upload-wrap .wc-file-list-wrap{margin-top:15px;clear:both}.igd-wc-upload-wrap .wc-file-list-wrap h4{font-size:1.2rem;margin-bottom:10px}.igd-wc-upload-wrap .wc-file-list-wrap .wc-file-list{margin:10px 0;padding:0;list-style:none}.igd-wc-upload-wrap .wc-file-list-wrap .wc-file-list li{display:flex;align-items:center;margin:3px;font-size:12px;font-weight:600;color:#333;transition:all .2s ease-in-out;-webkit-user-select:none;-moz-user-select:none;user-select:none}.igd-wc-upload-wrap .wc-file-list-wrap .wc-file-list li img{margin-right:5px;width:16px}.igd-wc-upload-wrap .wc-file-list-wrap .wc-file-list li .dashicons-no-alt{color:#ff9f10;cursor:pointer;margin-left:15px;margin-right:0}.igd-wc-upload-wrap:has(.upload-button.active) .igd-shortcode-uploader{display:flex;visibility:visible;width:auto;height:auto;position:relative;overflow:visible;z-index:1}.woocommerce-page.woocommerce-checkout form #order_review td.product-name:has(.igd-wc-upload-wrap){flex-wrap:wrap}.igd-wc-uploaded-files{display:flex;flex-direction:column;margin:0!important;padding:0!important}.igd-wc-uploaded-files-wrap{width:30%;padding:0}.igd-wc-uploaded-files li{margin-bottom:5px!important}.igd-wc-uploaded-files a{display:flex;text-decoration:none;color:#555;font-size:.875rem;overflow:hidden;transition:all .2s ease-in-out}.igd-wc-uploaded-files a img{margin-right:5px!important;width:20px!important}.igd-wc-uploaded-files a span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.igd-wc-uploaded-files a:hover{color:#333}.igd-hidden{display:none!important}#igd-direct-content{font-family:roboto,sans-serif}
  • integrate-google-drive/trunk/assets/js/admin.js

    r2997844 r3004719  
    1 (()=>{var e={155:e=>{var t,n,i=e.exports={};function r(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function o(e){if(t===setTimeout)return setTimeout(e,0);if((t===r||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:r}catch(e){t=r}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var l,c=[],s=!1,d=-1;function u(){s&&l&&(s=!1,l.length?c=l.concat(c):d=-1,c.length&&m())}function m(){if(!s){var e=o(u);s=!0;for(var t=c.length;t;){for(l=c,c=[];++d<t;)l&&l[d].run();d=-1,t=c.length}l=null,s=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function g(e,t){this.fun=e,this.array=t}function p(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new g(e,t)),1!==c.length||s||o(m)},g.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=p,i.addListener=p,i.once=p,i.off=p,i.removeListener=p,i.removeAllListeners=p,i.emit=p,i.prependListener=p,i.prependOnceListener=p,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},880:(e,t,n)=>{"use strict";var i=n(976);function r(){}function a(){}a.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,a,o){if(o!==i){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:r};return n.PropTypes=n,n}},884:(e,t,n)=>{e.exports=n(880)()},976:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}},t={};function n(i){var r=t[i];if(void 0!==r)return r.exports;var a=t[i]={exports:{}};return e[i](a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=React.createContext();const t=e;var i=e.Provider;function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,a,o,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=a.call(n)).done)&&(l.push(i.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var o=React,l=o.useEffect,c=o.useState;function s(e){var t=e.text,n=r(c(!0),2),i=n[0],a=n[1];return l((function(){i||ReactDOM.unmountComponentAtNode(document.getElementById("igd-pro-modal"))}),[i]),i?React.createElement("div",{className:"igd-pro-modal-wrap"},React.createElement("div",{className:"igd-pro-modal"},React.createElement("span",{className:"igd-pro-modal-close",onClick:function(){return a(!1)}},"×"),React.createElement("img",{src:"".concat(igd.pluginUrl,"/assets/images/offer.png"),alt:"Upgrade to Pro"}),React.createElement("h3",null,wp.i18n.__("Unlock PRO Features","integrate-google-drive")),React.createElement("h2",null,React.createElement("span",{className:"upto"},"UPTO"),wp.i18n.__("50% OFF","integrate-google-drive")),React.createElement("p",null,t),React.createElement("a",{href:igd.upgradeUrl,className:"igd-btn btn-success"},wp.i18n.__("Upgrade Now","integrate-google-drive")))):null}function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function u(){u=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},a=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",l=r.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function s(e,t,n,r){var a=t&&t.prototype instanceof p?t:p,o=Object.create(a.prototype),l=new O(r||[]);return i(o,"_invoke",{value:R(e,n,l)}),o}function m(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var g={};function p(){}function f(){}function v(){}var h={};c(h,a,(function(){return this}));var w=Object.getPrototypeOf,y=w&&w(w(k([])));y&&y!==t&&n.call(y,a)&&(h=y);var b=v.prototype=p.prototype=Object.create(h);function _(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function r(i,a,o,l){var c=m(e[i],e,a);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==d(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,o,l)}),(function(e){r("throw",e,o,l)})):t.resolve(u).then((function(e){s.value=e,o(s)}),(function(e){return r("throw",e,o,l)}))}l(c.arg)}var a;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return a=a?a.then(i,i):i()}})}function R(e,t,n){var i="suspendedStart";return function(r,a){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===r)throw a;return F()}for(n.method=r,n.arg=a;;){var o=n.delegate;if(o){var l=N(o,n);if(l){if(l===g)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var c=m(e,t,n);if("normal"===c.type){if(i=n.done?"completed":"suspendedYield",c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i="completed",n.method="throw",n.arg=c.arg)}}}function N(e,t){var n=t.method,i=e.iterator[n];if(void 0===i)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,N(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var r=m(i,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,g;var a=r.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,g):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,g)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function k(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,r=function t(){for(;++i<e.length;)if(n.call(e,i))return t.value=e[i],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:F}}function F(){return{value:void 0,done:!0}}return f.prototype=v,i(b,"constructor",{value:v,configurable:!0}),i(v,"constructor",{value:f,configurable:!0}),f.displayName=c(v,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,l,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},_(E.prototype),c(E.prototype,o,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,i,r,a){void 0===a&&(a=Promise);var o=new E(s(t,n,i,r),a);return e.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},_(b),c(b,l,"Generator"),c(b,a,(function(){return this})),c(b,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var i in t)n.push(i);return n.reverse(),function e(){for(;n.length;){var i=n.pop();if(i in t)return e.value=i,e.done=!1,e}return e.done=!0,e}},e.values=k,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function i(n,i){return o.type="throw",o.arg=e,t.next=n,i&&(t.method="next",t.arg=void 0),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r],o=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var a=r;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;C(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:k(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),g}},e}function m(e,t,n,i,r,a,o){try{var l=e[a](o),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(i,r)}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==d(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==d(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===d(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,a,o,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=a.call(n)).done)&&(l.push(i.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return h(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function w(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n={text:{"application/vnd.oasis.opendocument.text":"Text","text/plain":"Text"},file:{"text/html":"HTML","text/php":"PHP","x-httpd-php":"PHP","text/css":"CSS","text/js":"JavaScript","application/javascript":"JavaScript","application/json":"JSON","application/xml":"XML","application/x-shockwave-flash":"SWF","video/x-flv":"FLV","application/vnd.google-apps.file":"File"},image:{"application/vnd.google-apps.photo":"Photo","image/png":"PNG","image/jpeg":"JPEG","image/jpg":"JPG","image/gif":"GIF","image/bmp":"BMP","image/vnd.microsoft.icon":"ICO","image/tiff":"TIFF","image/tif":"TIF","image/svg+xml":"SVG"},zip:{"application/zip":"ZIP","application/x-rar-compressed":"RAR","application/x-msdownload":"EXE","application/vnd.ms-cab-compressed":"CAB"},audio:{"audio/mpeg":"MP3","video/quicktime":"QT","application/vnd.google-apps.audio":"Audio","audio/x-m4a":"Audio"},video:{"application/vnd.google-apps.video":"Video","video/x-flv":"Video","video/mp4":"Video","video/webm":"Video","video/ogg":"Video","application/x-mpegURL":"Video","video/MP2T":"Video","video/3gpp":"Video","video/quicktime":"Video","video/x-msvideo":"Video","video/x-ms-wmv":"Video"},pdf:{"application/pdf":"PDF"},word:{"application/msword":"MS Word"},doc:{"application/vnd.google-apps.document":"Google Docs"},excel:{"application/vnd.ms-excel":"Excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":"Excel"},presentation:{"application/vnd.google-apps.presentation":"Slide","application/vnd.oasis.opendocument.presentation":"Presentation"},powerpoint:{"application/vnd.ms-powerpoint":"Powerpoint"},form:{"application/vnd.google-apps.form":"Form"},folder:{"application/vnd.google-apps.folder":"Folder"},drawing:{"application/vnd.google-apps.drawing":"Drawing"},script:{"application/vnd.google-apps.script":"Script"},sites:{"application/vnd.google-apps.sites":"Sites"},spreadsheet:{"application/vnd.google-apps.spreadsheet":"Spreadsheet","application/vnd.oasis.opendocument.spreadsheet":"Spreadsheet"}},i="File",r="file";return Object.keys(n).map((function(a){t&&n[a][e]?r=a:n[a][e]&&(i=n[a][e])})),t?r:i}function y(e){if(e<1)return 0;var t=Math.floor(Math.log(e)/Math.log(1024));return 1*(e/Math.pow(1024,t)).toFixed(2)+" "+["Byte","KB","MB","GB","TB"][t]}function b(e){var t;return!e.type||("application/vnd.google-apps.folder"===e.type||"application/vnd.google-apps.folder"===(null===(t=e.shortcutDetails)||void 0===t?void 0:t.targetMimeType))}function _(e){var t=w(e,!0);return t=t||"file","".concat(igd.pluginUrl,"/assets/images/icons/").concat(t,".png")}function E(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:igd.activeAccount,n=t.root_id,i=t.id,r=[{accountId:i,id:n,name:wp.i18n.__("My Drive","integrate-google-drive"),type:"application/vnd.google-apps.folder",iconLink:"".concat(igd.pluginUrl,"/assets/images/my-drive.svg")},{accountId:i,id:"shared-drives",name:wp.i18n.__("Shared Drives","integrate-google-drive"),type:"application/vnd.google-apps.folder",iconLink:"".concat(igd.pluginUrl,"/assets/images/shared-drives.svg")},{accountId:i,id:"computers",name:wp.i18n.__("Computers","integrate-google-drive"),type:"application/vnd.google-apps.folder",iconLink:"".concat(igd.pluginUrl,"/assets/images/computers.svg")},{accountId:i,id:"shared",name:wp.i18n.__("Shared with me","integrate-google-drive"),type:"application/vnd.google-apps.folder",iconLink:"".concat(igd.pluginUrl,"/assets/images/shared.svg")},{accountId:i,id:"starred",name:wp.i18n.__("Starred","integrate-google-drive"),type:"application/vnd.google-apps.folder",iconLink:"".concat(igd.pluginUrl,"/assets/images/starred.svg")}];return e?r.find((function(t){return t.id==e})):r}function R(e){var t,n,i,r=null==e||null===(t=e.getSource)||void 0===t||null===(n=t.call(e))||void 0===n||null===(i=n.relativePath)||void 0===i?void 0:i.replace(/^\//,"");return null!=r?r:""}function N(e){return C(e)||S(e)}function S(e){var t,n;return!(null==e||null===(t=e.type)||void 0===t||!t.includes("video/"))||!(null===(n=e.shortcutDetails)||void 0===n||!n.targetMimeType.includes("video/"))}function C(e){var t,n;return!(null===(t=e.type)||void 0===t||!t.includes("audio/"))||!(null===(n=e.shortcutDetails)||void 0===n||!n.targetMimeType.includes("audio/"))}function O(e){var t,n;return!(null===(t=e.type)||void 0===t||!t.includes("image/"))||!(null===(n=e.shortcutDetails)||void 0===n||!n.targetMimeType.includes("image/"))}function k(e,t){return E(e,t)}function F(){return{browser:{title:wp.i18n.__("File Browser","integrate-google-drive"),description:wp.i18n.__("Let your users browse the selected specific Google Drive files and folders.","integrate-google-drive"),isPro:!0},uploader:{title:wp.i18n.__("File Uploader","integrate-google-drive"),description:wp.i18n.__("Let your users upload files to the specific selected Google Drive folder.","integrate-google-drive"),isPro:!0},media:{title:wp.i18n.__("Media Player","integrate-google-drive"),description:wp.i18n.__("Play audio and video files in a media player.","integrate-google-drive"),isPro:!0},search:{title:wp.i18n.__("Search Box","integrate-google-drive"),description:wp.i18n.__("Let your users search for contents and files via a search box.","integrate-google-drive"),isPro:!0},slider:{title:wp.i18n.__("Slider Carousel","integrate-google-drive"),description:wp.i18n.__("Display images, videos and documents in a slider carousel.","integrate-google-drive"),isPro:!0},gallery:{title:wp.i18n.__("Gallery","integrate-google-drive"),description:wp.i18n.__("Display images and videos in a masonry grid layout with lightbox preview.","integrate-google-drive")},embed:{title:wp.i18n.__("Embed Documents","integrate-google-drive"),description:wp.i18n.__("Embed Google Drive documents.","integrate-google-drive")},download:{title:wp.i18n.__("Download Links","integrate-google-drive"),description:wp.i18n.__("Insert Google Drive files download links.","integrate-google-drive")},view:{title:wp.i18n.__("View Links","integrate-google-drive"),description:wp.i18n.__("Insert Google Drive files view links.","integrate-google-drive")}}}function A(e){var t=e.target.parentNode.querySelector("code");window.getSelection().selectAllChildren(t);var n=t.innerHTML;if(window.isSecureContext)navigator.clipboard.writeText(n);else{var i=document.createElement("textarea");i.value=n,document.body.appendChild(i),i.select(),document.execCommand("Copy"),i.remove()}Swal.fire({title:wp.i18n.__("Copied","integrate-google-drive"),text:wp.i18n.__("Shortcode copied to clipboard","integrate-google-drive"),icon:"success",showConfirmButton:!1,timer:2e3,timerProgressBar:!0,toast:!0})}function x(e,t){e.onerror=null;var n="https://www.gravatar.com/avatar/"+t+"?s=200&d=mm";e.src===n?e.src="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD//gA7Q1JFQVRPUjogZ2QtanBlZyB2MS4wICh1c2luZyBJSkcgSlBFRyB2NjIpLCBxdWFsaXR5ID0gOTAK/9sAQwADAgIDAgIDAwMDBAMDBAUIBQUEBAUKBwcGCAwKDAwLCgsLDQ4SEA0OEQ4LCxAWEBETFBUVFQwPFxgWFBgSFBUU/9sAQwEDBAQFBAUJBQUJFA0LDRQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQU/8AAEQgAyADIAwEiAAIRAQMRAf/EAB8AAAEFAQEBAQEBAAAAAAAAAAABAgMEBQYHCAkKC//EALUQAAIBAwMCBAMFBQQEAAABfQECAwAEEQUSITFBBhNRYQcicRQygZGhCCNCscEVUtHwJDNicoIJChYXGBkaJSYnKCkqNDU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6g4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2drh4uPk5ebn6Onq8fLz9PX29/j5+v/EAB8BAAMBAQEBAQEBAQEAAAAAAAABAgMEBQYHCAkKC//EALURAAIBAgQEAwQHBQQEAAECdwABAgMRBAUhMQYSQVEHYXETIjKBCBRCkaGxwQkjM1LwFWJy0QoWJDThJfEXGBkaJicoKSo1Njc4OTpDREVGR0hJSlNUVVZXWFlaY2RlZmdoaWpzdHV2d3h5eoKDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uLj5OXm5+jp6vLz9PX29/j5+v/aAAwDAQACEQMRAD8A+t6KMUtACZooxRQAUZpaSgAozRiloASijFGKADNFLRigBM0UUtACUUtJigAopaKAE5oopaAEo5paKAEoopaAE5opaKAEooooAWkoooAMUUUUAFFFFABRRRQAUUUUAGKKKKACiiigApaSigAooooAWkoooAKWkooAKKKKAClpKWgBKKKKACiiloASiiigAop8UTzyLHGrSOxwqqMkmvTPCnwpXYl1rJJY8i0Q8D/eP9B+dAHnVjpl3qcvl2ltLcv6RoWx9fSumsvhXr10AZI4bUH/AJ7Sc/kua9ltLO3sIRDbQxwRDokahR+QqagDyL/hTmp7f+P20z6Zb/CqV58KddtgTGkF0PSKTB/8exXtVFAHzff6Re6VJsvLWW2bt5ikA/Q96qV9LXNrDeRGKeJJ426pIoYH8DXnvir4UxTK9zox8qXqbVj8p/3T2+h/SgDyujFSTwSWszwzRtHKh2sjDBBqOgApaSigAoo7UUAFFFFAC0UlFABRRiigAooooAKKKKAClUFmAAJJ4AApK7r4V+GxqmqNqE6hoLQjaD/FIen5dfyoA634f+B00G2W9vEDajIMgN/yxB7D39fyrtKKSgApaKKACkopaACikxRQByXjzwTF4jtGubdAmpRD5WHHmD+6f6GvFJEeJ2R1KOpwVYYIPpX0zXkvxY8NLZXseqwKFiuDslAHR8dfxA/T3oA8+oxR0ooAKKMUYoAMUUUYoAKKMUUAFGaKM0AFFFFABR3oooAK978CaUNJ8L2MW3bJIgmf/ebn9BgfhXhFtF59zFGP43C/ma+lY0EaKi8KoAFADqKKKAEpaSloAKSlpKACloooASsjxdpY1nw5fW23LmMsn+8OR+orXpTyKAPmSlqzq1uLTVLyAcCKZ0GfZiKq0AFHNFFABS0mKKACiiigAoopaAEo60UUAFFFHegCxp8giv7Zz0SVSfzFfSdfMoPOa+ivD+oDVdEsbsHPmxKT7HHI/PNAGhSUtFABRRRQAlFLRQAlFGaWgBKKWqup3y6bp1zdv92GNnP4DNAHz74gkEuvalIOjXMpH4uaoU53MjszcliSTSUAJRS0lABRS0UAJiiiigAooxRQAUUUfpQAUUUUAFerfCLXlms59KlceZEfMhB7qeoH0PP415TirekapPouowXts22WJsj0I7g+xFAH0hSdqzvD+u2/iLTYry2PDDDoTyjdwa0aAClpOlFAC0lLSUALRSUv4UAJXBfFrXls9Jj02Jx51yQzgdRGP8Tj8jXYa1rFtoWnS3l022NBwO7HsB714Drusz6/qk97cH55DwoPCr2AoAodaKMUUAFFFFABRRRQAUUdaKACiiigAo6UUUAFFFFABiiiigDY8M+J7vwvfefbNujbiWFj8rj/AB969q8O+KrDxNbCS1l2ygfPA5w6fh3HvXkfhz4f6p4hCyiMWtqf+W8wxkf7I6n+XvXpnh74d6X4fkjnCvc3aciaQ4wfYDgfrQB1FFFLQAn50UtJQAtZWv8AiWw8N2pmu5sMR8kSnLv9B/WtWuY8R/D3TPEUjzsJLe7brNG2cn3B4/lQB5P4q8WXfiq88yb93bpnyoFPCj+p96w66bxH8P8AVPDwaUoLq0H/AC3hGcf7w6j+XvXMmgAooooAMUUGjNABRiiigAoozRQAUUUUAFFFFABRRUkEEl1OkMKNJK7BVRRkkntQAW9vLdzJDDG0srkKqKMkmvWPB3wyg00Jd6qq3F31WA8pH9fU/pWl4G8DxeGrYT3CrJqTj5n6iMf3V/qa6ygAAAAAHFHaiigA6UUUUALSUUtACUClpM0ABGRgjg1wPjH4ZQ6isl3pSrb3fVoOiSfT0P6V39FAHzRcW8tpO8M0bRSodrIwwQajr27xz4Hh8S2xnt1WPUox8r9BIP7rf0NeKzwSWs8kMyNHKjFWRhggjtQBHRRRQAUUUUAFFFFABRRRQAUUUdaACvWvhh4PFjbrq12n+kSr+4Vh9xD/ABfU/wAvrXF+AfDX/CR64gkUmzt8STeh9F/E/pmvdAAowOAOMUAKaSiloAKKTNHagApaSjNAC0lAooAMUtJmgUAFGMUUZ4oAWvPvif4PF9bPq9omLiEfv0UffQfxfUfy+legZoIDAg8g8YoA+ZaK6Xx94a/4RzW3Ea4s7jMkJ7D1X8D+mK5qgAooooAKKKKACiiigAoorZ8IaR/bniKytSu6Ivvk/wB0cn+WPxoA9c+HugjQ/DkO9dtzcDzpT9eg/AY/WumpOg7YooAXrSUtJQAUtJS0AJRRRQAuaKKSgBaKSloAKKSigBc0UUlAHNfELQRrvhyfYu64tx50R+nUfiM/jivCq+miOtfP3i/SP7D8RXtqBtjD74/91uR/PH4UAY1FFFABRRRQAUUUd6ACvSPg3p2+6v74j7irCp+pyf5D8683r2n4UWf2bwmsuMGeZ5Py+X/2WgDsqDQaKACij8KSgBaO1JS/hQAUUlFACikpfwooAM0Cij8KAEpe1FFABRRRQAV5Z8ZNO2XWn3yj76GFj9OR/M/lXqdcb8VrMXPhN5MZMEySD8fl/wDZqAPFqKKKACiiigAooooAK9+8DweR4R0tfWEP+fP9aKKAN2iiigApKKKACloooASloooAKSiigApaKKAEooooAXFJRRQAVh+OYPtHhLVF64hL/wDfPP8ASiigDwGiiigAooooA//Z":e.src=n}function P(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=e.id,r=e.iconLink,a=e.thumbnailLink,o=e.accountId;e.shortcutDetails&&(i=e.shortcutDetails.targetId);var l=n.w,c=n.h;l||(l=64),c||(c=64);var s=null==r?void 0:r.replace("/16/","/".concat(l,"/"));if(a)if(function(e){var t,n,i,r,a,o;return"reader"===(null===(t=e.permissions)||void 0===t||null===(n=t.users)||void 0===n||null===(i=n.anyoneWithLink)||void 0===i?void 0:i.role)||"writer"===(null===(r=e.permissions)||void 0===r||null===(a=r.users)||void 0===a||null===(o=a.anyoneWithLink)||void 0===o?void 0:o.role)}(e))s="custom"===t?"https://drive.google.com/thumbnail?id=".concat(i,"&sz=w").concat(l,"-h").concat(c):"https://drive.google.com/thumbnail?id=".concat(i,"small"===t?"&sz=w300-h300":"medium"===t?"&sz=w600-h400":"large"===t?"&sz=w1024-h768":"full"===t?"&sz=w2048":"&sz=w300-h300");else if(a.includes("google.com")){var d="".concat(igd.ajaxUrl,"?action=igd_get_preview_thumbnail&id=").concat(i,"&size=").concat(t,"&accountId=").concat(o);"custom"===t&&(d+="&w=".concat(l,"&h=").concat(c)),s=d}else s="custom"===t?a.replace("=s220","=w".concat(l,"-h").concat(c)):"small"===t?a.replace("=s220","=w300-h300"):"medium"===t?a.replace("=s220","=h600-nu"):"large"===t?a.replace("=s220","=w1024-h768-p-k-nu"):"full"===t?a.replace("=s220",""):a.replace("=s220","=w200-h190-p-k-nu");return s}function j(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:wp.i18n.__("Upgrade to PRO to use this feature.","integrate-google-drive"),t=document.getElementById("igd-pro-modal");t||((t=document.createElement("div")).id="igd-pro-modal",document.body.appendChild(t)),ReactDOM.render(React.createElement(s,{text:e}),t)}function I(){var e=v(React.useState(!1),2),t=e[0],n=e[1];return React.useEffect((function(){n(!0)}),[]),t}function D(e,t,n,i,r){var a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(!i||i.preview){n=n.filter((function(e){return!b(e)}));var o=!i||!1!==i.inlinePreview,l=n.find((function(e){return e.id===t}));if(!o&&l&&l.webViewLink)window.open(l.webViewLink,"_blank");else{var c=!i||!!i.download,s=!i||i.allowPreviewPopout,d=!!i&&i.comment,u=n.map((function(e){var t=e.id,n=e.name,r=e.iconLink,o=e.accountId,l=e.exportAs,s=e.exportLinks,u=e.webContentLink,m=e.description,g=N(e),p=O(e),f="";if(l&&c&&(s||u)){f="".concat(igd.ajaxUrl,"?action=igd_download&id=").concat(e.id,"&accountId=").concat(e.accountId);var v=Object.keys(l);if(v.length){var h=l[v[0]].mimetype;f+="&mimetype=".concat(h)}}var w={thumb:P(e,"small"),downloadUrl:f,subHtml:a?"<h4>".concat(n,"</h4>").concat(m?"<p>".concat(m,"</p>"):""):'<div class="item-name">\n                      <img src="'.concat(null==r?void 0:r.replace("/16/","/32/"),'" alt="').concat(n,'" />\n                      <span>').concat(n,"</span>\n                  </div>")};if(d){var y="".concat(window.location.protocol,"//").concat(window.location.host).concat(window.location.pathname),b="".concat(y,"?id=").concat(t);"disqus"===i.commentMethod?(w.disqusIdentifier=t,w.disqusUrl=b):w.fbHtml='<div class="fb-comments" data-href="'.concat(b,'" data-width="400" data-numposts="5"></div>')}if(g){w.poster=P(e,"large");var _=S(e)?"video/mp4":"audio/mp3";w.video='{"source": [{"src":"'.concat(igd.ajaxUrl,"?action=igd_stream&id=").concat(t,"&accountId=").concat(o,'", "type":"').concat(_,'"}], "attributes": {"preload": "auto","playsinline": true, "autoplay": true, "controls": true, "referrerpolicy": "no-referrer"}}')}else p?w.src=P(e,"full"):(w.iframe=!0,w.iframeTitle=n,w.src="".concat(igd.ajaxUrl,"?action=igd_preview&file_id=").concat(t,"&account_id=").concat(o,"&popout=").concat(!i||!!i.allowPreviewPopout));return w})),m=function(){document.body.style.overflow="hidden"},g=function t(){document.body.style.overflow="",e.target.removeEventListener("lgBeforeOpen",m),e.target.removeEventListener("lgAfterClose",t),e.target.removeEventListener("lgSlideItemLoad",w)};window.dynamicGallery&&(e.target.removeEventListener("lgBeforeOpen",m),e.target.removeEventListener("lgAfterClose",g),e.target.removeEventListener("lgSlideItemLoad",w),window.dynamicGallery.destroy(!0));var p=window.innerWidth<768,f=[lgThumbnail,lgZoom,lgVideo];d&&f.push(lgComment),p||f.push(lgFullscreen);var v={dynamic:!0,dynamicEl:u,plugins:f,addClass:"igd-lightbox ".concat(c?"":"no-download"," ").concat(a?"gallery-lightbox":""," "),counter:a,autoplayVideoOnSlide:!0,preload:3,mobileSettings:{showCloseIcon:!0,thumbWidth:60,thumbHeight:60,download:!0,controls:!0}};a?v.allowMediaOverlap=!0:v.appendSubHtmlTo=".lg-outer",d&&(v.commentBox=!0,"disqus"===i.commentMethod?v.disqusComments=!0:v.fbComments=!0),window.dynamicGallery=lightGallery(e.target,v),e.target.addEventListener("lgBeforeOpen",m),e.target.addEventListener("lgAfterClose",g),e.target.addEventListener("lgSlideItemLoad",w),r&&r.downloadNotification&&document.addEventListener("click",(function(e){e.target.classList.contains("lg-download")&&wp.ajax.post("igd_notification",{files:[l],notifications:r,type:"download"})}),!1);var h=n.findIndex((function(e){return e.id===t}));dynamicGallery.openGallery(h)}}function w(){var e=document.querySelector(".lg-current");if(e){var t=e.querySelector(".igd-hidepopout");s||t||e.insertAdjacentHTML("beforeend",'<div class="igd-hidepopout">&nbsp;</div>')}}}var T=function(){var e=window.IgdShortcode;Array.from(document.querySelectorAll(".igd")).forEach((function(t){var n=t.dataset.shortcodeData;if(n)try{var i=JSON.parse(U(n));ReactDOM.render(React.createElement(e,{data:i}),t)}catch(e){console.error("Could not parse the shortcode data",e)}}))};function B(e){return btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,(function(e,t){return String.fromCharCode("0x"+t)})))}function U(e){return decodeURIComponent(atob(e).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))}function L(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:igd.activeAccount;return t.root_id!==e&&k(e,t)}function M(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"550",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"600",n=window.screenLeft||window.screenX,i=window.screenTop||window.screenY,r=n+(window.innerWidth||document.documentElement.clientWidth||screen.width)/2-e/2,a=i+(window.innerHeight||document.documentElement.clientHeight||screen.height)/2-t/2,o=window.open(igd.authUrl,"newwindow","width=".concat(e,",height=").concat(t,",left=").concat(r,",top=").concat(a));o.focus&&o.focus()}function z(e,t){var n=H(e,t);return"igd_last_folder_".concat(n)}function H(e,t){var n="",i=window.location.pathname.replace(/\//g,"_");if(e||"undefined"==typeof pagenow||(i=pagenow.replace(/\//g,"_")),t)n+=t.id;else if(e){n=e.filter((function(e){return b(e)})).map((function(e){var t;return null===(t=e.id)||void 0===t?void 0:t.slice(0,3)})).join("_")}return"".concat(n,"_").concat(i)}function K(e,t,n){if(e){var i=z(t,n);sessionStorage.setItem(i,JSON.stringify(p(p({},e),{},{pageNumber:0})))}}function W(e,t){var n=z(e,t);sessionStorage.removeItem(n)}function Q(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=(e=new Date(e)).getFullYear(),i=("0"+(e.getMonth()+1)).slice(-2),r=("0"+e.getDate()).slice(-2);if(t){var a=e.getHours(),o=a<12?"AM":"PM",l=0===a?12:a>12?a-12:a,c=("0"+e.getMinutes()).slice(-2);return"".concat(n,"-").concat(i,"-").concat(r," ").concat(("0"+l).slice(-2),":").concat(c," ").concat(o)}return"".concat(n,"-").concat(i,"-").concat(r)}function V(){var e=new URL(window.location.href);e.searchParams.delete("id"),window.history.pushState({},"",e)}function q(){return new URLSearchParams(window.location.search).get("id")}function G(){var e;return e=u().mark((function e(){var t,n,i,r;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=localStorage.getItem("igd_last_review_popup"),n=Number(localStorage.getItem("igd_remind_in_days"))||2,i=(new Date).getTime(),r=24*n*60*60*1e3,!(t&&i-t<=r)){e.next=6;break}return e.abrupt("return");case 6:return localStorage.setItem("igd_last_review_popup",(new Date).getTime()),e.next=9,Swal.fire({title:wp.i18n.__("Are You Enjoying This Plugin?","integrate-google-drive"),text:wp.i18n.__("Your feedback helps us create a better experience for you.","integrate-google-drive"),icon:"question",showDenyButton:!0,confirmButtonText:wp.i18n.__("Yes, I'm enjoying it","integrate-google-drive"),denyButtonText:wp.i18n.__("Not really","integrate-google-drive"),reverseButtons:!0,allowOutsideClick:!1,allowEscapeKey:!1,showCloseButton:!0,customClass:{container:"igd-swal igd-review-swal"}}).then((function(e){e.isConfirmed?Swal.fire({title:wp.i18n.__("We're glad to hear that!","integrate-google-drive"),text:wp.i18n.__("Would you mind taking a few minutes to rate us and write a review?","integrate-google-drive"),icon:"success",showDenyButton:!0,confirmButtonText:wp.i18n.__("Sure, I'd be happy to","integrate-google-drive"),denyButtonText:wp.i18n.__("Maybe later","integrate-google-drive"),reverseButtons:!0,allowOutsideClick:!1,allowEscapeKey:!1,customClass:{container:"igd-swal igd-review-swal"}}).then((function(e){e.isConfirmed?(window.open("https://wordpress.org/support/plugin/integrate-google-drive/reviews/?filter=5#new-post","_blank"),wp.ajax.post("igd_hide_review_notice")):e.isDenied&&localStorage.setItem("igd_remind_in_days",10)})):e.isDenied&&Swal.fire({title:wp.i18n.__("Sorry to hear that!","integrate-google-drive"),text:wp.i18n.__("Could you please provide us with some feedback to help us improve?","integrate-google-drive"),input:"textarea",inputPlaceholder:wp.i18n.__("Enter your feedback here...","integrate-google-drive"),showCancelButton:!1,confirmButtonText:wp.i18n.__("Submit","integrate-google-drive"),showLoaderOnConfirm:!0,showCloseButton:!0,allowOutsideClick:!1,allowEscapeKey:!1,customClass:{container:"igd-swal igd-review-swal"}}).then((function(e){e.isConfirmed?(Swal.fire({title:wp.i18n.__("Thank you for your feedback!","integrate-google-drive"),text:wp.i18n.__("We'll use your feedback to improve our plugin.","integrate-google-drive"),icon:"info",customClass:{container:"igd-swal igd-review-swal"}}),wp.ajax.post("igd_review_feedback",{feedback:e.value})):e.isDismissed&&wp.ajax.post("igd_hide_review_notice")}))}));case 9:e.sent;case 10:case"end":return e.stop()}}),e)})),G=function(){var t=this,n=arguments;return new Promise((function(i,r){var a=e.apply(t,n);function o(e){m(a,i,r,o,l,"next",e)}function l(e){m(a,i,r,o,l,"throw",e)}o(void 0)}))},G.apply(this,arguments)}function Y(e){var t=document.createElement("textarea");return t.innerHTML=e,t.value}function J(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,a,o,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=a.call(n)).done)&&(l.push(i.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return X(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return X(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function X(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var Z=React,$=Z.useState,ee=Z.useRef,te=Z.useEffect,ne=Z.useContext;function ie(){var e=ne(t),n=e.isSearch,i=e.searchFiles,r=e.setFiles,a=e.listFiles,o=e.activeFolder,l=e.setIsSearchResults,c=e.initFolders,s=e.searchKeyword,d=e.setSearchKeyword,u=e.initialSearchTerm,m=ee(null),g=J($(!1),2),p=g[0],f=g[1],v=ee(),h=J($(n||u),2),w=h[0],y=h[1],b=function(e){if(e&&e.preventDefault(),f(!1),l(!1),!s)return Swal.fire({title:wp.i18n.__("Error","integrate-google-drive"),text:wp.i18n.__("Please enter a keyword to search","integrate-google-drive"),icon:"error",confirmButtonText:"Ok",customClass:{container:"igd-swal"}}),void f(!0);i(s)},_=I();return te((function(){if(_&&s&&!(s.length<5))return m.current=setTimeout((function(){b()}),1500),function(){clearTimeout(m.current)}}),[s]),React.createElement("form",{ref:v,className:"header-action-item igd-search-bar ".concat(w?"active":""," ").concat(p?"error":""),onSubmit:b},(!n||n&&!!s)&&React.createElement("div",{className:"search-dismiss",onClick:function(){n||y(!w),d(""),f(!1),l(!1),o?a(o):r(c&&!n?c:[])}},React.createElement("svg",{width:"14",height:"14",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M1.5 1.5L10.5 10.5M1.5 10.5L10.5 1.5L1.5 10.5Z",stroke:"#BABABA",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),React.createElement("input",{type:"text",placeholder:wp.i18n.__("Enter a keyword to search","integrate-google-drive"),value:s,onChange:function(e){d(e.target.value)}}),React.createElement("div",{className:"search-submit",onClick:function(){var e;w?b():(y(!0),null===(e=v.current)||void 0===e||e.querySelector("input").focus())}},React.createElement("svg",{"data-tip":wp.i18n.__("Search","integrate-google-drive"),"data-for":"search",width:"20",height:"20",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("circle",{cx:"9.7659",cy:"9.76639",r:"8.98856",stroke:"#3D3D3D",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),React.createElement("path",{d:"M16.0176 16.4849L19.5416 19.9997",stroke:"#3D3D3D",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})),React.createElement(ReactTooltip,{id:"search",place:"bottom",effect:"solid",className:"igd-tooltip"})))}var re=React.useContext,ae=igd.settings.rememberLastFolder,oe=void 0===ae||ae;function le(){var e=re(t),n=e.breadcrumbs,i=e.initFolders,r=e.setFiles,a=e.activeFolder,o=e.setActiveFolder,l=e.setActiveFile,c=e.listFiles,s=e.initParentFolder,d=e.show,u=e.isShortcodeBuilder,m=e.activeAccount,g=e.setIsOptions,p=e.setActiveFiles,f=!!n&&Object.keys(n),v=f.length>2?f[0]:"",h=f.length>3?f.slice(1,-2):[],w=f.length?f.slice(-2):[],y=function(e){e.preventDefault(),e.stopPropagation(),g(!1),p([]),l(a),d(e)};return React.createElement("div",{className:"igd-breadcrumb"},React.createElement("div",{className:"breadcrumb-item",onClick:function(e){i?s?(o(s),c(s)):(o(null),r(i),oe&&W(i,s)):(o(null),r([]),oe&&W(i,s))}},React.createElement("i",{className:"dashicons dashicons-admin-home"}),React.createElement("span",{className:""},wp.i18n.__("Home","integrate-google-drive"))),!!a&&React.createElement(React.Fragment,null,!!v&&React.createElement("div",{className:"breadcrumb-item ".concat(u||a.id!==v?"":"active"),onClick:function(e){a.id===v?y(e):c({id:v,name:n[v],accountId:a.accountId})}},React.createElement("span",null,Y(n[v]))),!!h.length&&React.createElement(React.Fragment,null,React.createElement("div",{"data-tip":!0,"data-for":"collapsed_breadcrumbs",className:"breadcrumb-item"},React.createElement("i",{className:"dashicons dashicons-ellipsis"}),React.createElement("i",{className:"dashicons dashicons-arrow-right-alt2"})),React.createElement(ReactTooltip,{id:"collapsed_breadcrumbs",place:"bottom",type:"light",effect:"solid",event:"click",globalEventOff:"click",clickable:!0,className:"collapsed-breadcrumbs igd-tooltip",getContent:function(){return h.map((function(e){return React.createElement("div",{key:e,className:"collapsed-breadcrumbs-item",onClick:function(t){c({id:e,name:n[e],accountId:a.accountId})}},React.createElement("span",null,n[e]))}))}})),w.map((function(e){return React.createElement("div",{key:e,className:"breadcrumb-item ".concat(L(a.id,m)||u||a.id!==e?"":"active"),onClick:function(t){L(a.id,m)||(a.id===e?y(t):c({id:e,name:n[e],accountId:a.accountId}))}},React.createElement("span",null,Y(n[e])))}))))}function ce(e){return ce="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ce(e)}function se(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function de(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?se(Object(n),!0).forEach((function(t){ue(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):se(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ue(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==ce(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==ce(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ce(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var me=React.useContext,ge=window.ReactTooltip;function pe(){var e=me(t),n=e.shortcodeId,i=e.activeAccount,r=e.setActiveAccount,a=e.files,o=e.activeFiles,l=e.allFolders,c=e.getFiles,s=e.isShortcodeBuilder,d=e.initFolders,u=e.activeFolder,m=e.isSearch,g=e.setShowSidebar,p=e.sort,f=e.setSort,v=e.setActiveFile,h=e.permissions,w=e.notifications,y=e.showBreadcrumbs,b=e.isOptions,_=e.setIsOptions,E=e.showRefresh,R=e.showSorting,N=e.shortcodeBuilderType,S=e.isMobile,C=e.show,O=e.hideAll,k=e.setFiles,F=e.setAllFiles,A="gallery"===N,P=igd.isPro,I={name:wp.i18n.__("Name","integrate-google-drive"),size:wp.i18n.__("Size","integrate-google-drive"),created:wp.i18n.__("Created","integrate-google-drive"),updated:wp.i18n.__("Modified","integrate-google-drive")},D={asc:wp.i18n.__("Ascending","integrate-google-drive"),desc:wp.i18n.__("Descending","integrate-google-drive")};return React.createElement("div",{className:"igd-file-browser-header"},(!m||s)&&y&&React.createElement(le,null),React.createElement("div",{className:"header-action"},S&&!s&&igd.isAdmin&&React.createElement("i",{className:"dashicons dashicons-menu-alt3 header-action-item sidebar-toggle",onClick:function(){return g((function(e){return!e}))}}),!!A&&!!h&&!!h.photoProof&&React.createElement("button",{className:"igd-btn btn-primary ".concat(o.length?"":"disabled"," photo-proofing-btn"),onClick:function(){h.photoProofMaxSelection>0&&o.length>h.photoProofMaxSelection?Swal.fire({title:wp.i18n.__("Error","integrate-google-drive"),text:wp.i18n.sprintf(wp.i18n.__("You can not select more than %s files.","integrate-google-drive"),h.photoProofMaxSelection),icon:"error",showConfirmButton:!0,confirmButtonText:wp.i18n.__("OK","integrate-google-drive"),customClass:{container:"igd-swal"}}):Swal.fire({title:wp.i18n.sprintf(wp.i18n.__("Approve Selection (%s selected)","integrate-google-drive"),o.length),text:wp.i18n.__("Are you sure you want to approve the selected files?","integrate-google-drive"),input:"textarea",inputValue:"",inputAttributes:{autocapitalize:"off",placeholder:wp.i18n.__("Enter a message to send to the author","integrate-google-drive")},showCancelButton:!1,confirmButtonText:wp.i18n.__("Approve","integrate-google-drive"),showLoaderOnConfirm:!0,showCloseButton:!0,customClass:{container:"igd-swal"},preConfirm:function(e){return wp.ajax.post("igd_photo_proof",{shortcode_id:n,message:e,selected:o,email:h.photoProofEmail}).done((function(){Swal.fire({title:"Sent!",text:"Your selected images have been sent to the author.",icon:"success",showConfirmButton:!1,timer:3e3,timerProgressBar:!0,toast:!0})})).fail((function(e){Swal.fire({title:"Error!",text:e.message,icon:"error",showConfirmButton:!0,confirmButtonText:"OK",customClass:{container:"igd-swal"}})}))}})},disabled:!o.length},React.createElement("i",{className:"dashicons dashicons-camera"}),React.createElement("span",null,wp.i18n.__("Send Selection","integrate-google-drive")),o.length>0&&React.createElement("span",{className:"selection-count"},"(",o.length,")")),!!o.length&&(!h||h.delete)&&React.createElement("div",{"data-tip":wp.i18n.__("Delete","integrate-google-drive"),"data-for":"delete",className:"header-action-item action-delete",onClick:function(){var e=o.map((function(e){return e.id})),t=o[0].accountId;Swal.fire({title:wp.i18n.__("Are you sure?","integrate-google-drive"),text:wp.i18n.sprintf(wp.i18n._n("You are about to delete the file.","You are about to delete %s files.",o.length,"integrate-google-drive"),o.length),icon:"warning",showCancelButton:!0,customClass:{container:"igd-swal"},confirmButtonText:wp.i18n.__("Yes, delete it!","integrate-google-drive"),cancelButtonText:wp.i18n.__("No, cancel!","integrate-google-drive"),reverseButtons:!0,showLoaderOnConfirm:!0,preConfirm:function(){return wp.ajax.post("igd_delete_files",{file_ids:e,account_id:t})}}).then((function(t){if(t.isConfirmed){w&&w.deleteNotification&&wp.ajax.post("igd_notification",{files:o,notifications:w,type:"delete"});var n=a.filter((function(t){return!e.includes(t.id)}));k(n),F((function(e){return de(de({},e),{},ue({},u.id,n))})),Swal.fire({title:wp.i18n.__("Deleted!","integrate-google-drive"),text:wp.i18n.sprintf(wp.i18n._n("File has been deleted.","%d files have been deleted.",o.length,"integrate-google-drive"),o.length),icon:"success",showConfirmButton:!1,timer:1500,timerProgressBar:!0,toast:!0,customClass:{container:"igd-swal"}})}}))}},React.createElement("img",{src:"".concat(igd.pluginUrl,"/assets/images/file-browser/delete.svg"),alt:"Delete Files"}),React.createElement(ge,{id:"delete",effect:"solid",place:"bottom",className:"igd-tooltip"})),(d||u)&&(!h||h.allowSearch||m)&&React.createElement(ie,null),E&&(!m||s)&&u&&React.createElement("div",{"data-tip":wp.i18n.__("Refresh","integrate-google-drive"),"data-for":"sync",className:"header-action-item action-update",onClick:function(){u&&c(u,"refresh")}},React.createElement("img",{src:"".concat(igd.pluginUrl,"/assets/images/file-browser/update.svg"),alt:"Sync Files"}),React.createElement(ge,{id:"sync",effect:"solid",place:"bottom",className:"igd-tooltip"})),R&&(!m||s)&&u&&React.createElement(React.Fragment,null,React.createElement("div",{"data-tip":wp.i18n.__("Sort","integrate-google-drive"),"data-for":"sort",className:"header-action-item action-sort"},React.createElement("img",{src:"".concat(igd.pluginUrl,"/assets/images/file-browser/sort.svg"),alt:"Sort"}),React.createElement(ge,{id:"sort",effect:"solid",place:"bottom",className:"igd-tooltip"})),React.createElement(ge,{id:"sort",type:"light",event:"click",globalEventOff:"click",className:"igd-sort-modal igd-tooltip",place:"bottom",border:!0,backgroundColor:"#fff",clickable:!0,borderColor:"#ddd",effect:"solid"},React.createElement("div",{className:"igd-sort-modal-inner"},React.createElement("div",{className:"igd-sort-modal-inner-section"},React.createElement("span",{className:"igd-sort-modal-inner-section-title"},wp.i18n.__("SORT BY","integrate-google-drive")),Object.keys(I).map((function(e){return React.createElement("div",{key:e,className:"sort-item ".concat(p.sortBy===e?"active":""),onClick:function(){return f(de(de({},p),{},{sortBy:e}))}},React.createElement("i",{className:"dashicons dashicons-saved"}),React.createElement("span",null,I[e]))}))),React.createElement("div",{className:"igd-sort-modal-inner-section"},React.createElement("span",{className:"igd-sort-modal-inner-section-title"},wp.i18n.__("SORT DIRECTION","integrate-google-drive")),Object.keys(D).map((function(e){return React.createElement("div",{key:e,className:"sort-item ".concat(p.sortDirection===e?"active":""),onClick:function(){return f((function(t){return de(de({},t),{},{sortDirection:e})}))}},React.createElement("i",{className:"dashicons dashicons-saved"}),React.createElement("span",null,D[e]))})))))),null!==b&&(s||(!A||A&&!!h&&!!h.download&&!!h.zipDownload)&&(!m||m&&!!a.length))&&React.createElement("div",{"data-tip":wp.i18n.__("Options","integrate-google-drive"),"data-for":"options",onClick:function(e){e.preventDefault(),v(null),_(!b),b?O():C(e)},className:"header-action-item action-options"},React.createElement("img",{src:"".concat(igd.pluginUrl,"/assets/images/file-browser/options.svg"),alt:"Options"}),React.createElement(ge,{id:"options",effect:"solid",place:"bottom",className:"igd-tooltip"})),(!d||l)&&React.createElement(React.Fragment,null,React.createElement("div",{className:"header-action-item action-accounts user-box","data-tip":!0,"data-for":"switch-account"},React.createElement("img",{referrerPolicy:"no-referrer",className:"user-image",src:i.photo,onError:function(e){return x(e.currentTarget,i.email)}}),React.createElement("img",{src:"".concat(igd.pluginUrl,"/assets/images/file-browser/arrow-down.svg"),className:"user-arrow"})),React.createElement(ge,{id:"switch-account",place:"bottom",type:"light",effect:"solid",event:"click",globalEventOff:"click",clickable:!0,border:!0,borderColor:"#ddd",resizeHide:!1,className:"user-box-modal-wrap igd-tooltip",overridePosition:function(e,t,n,i){var r=e.left,a=e.top,o=document.documentElement;return{left:r=Math.min(o.clientWidth-i.clientWidth,r),top:a=Math.min(o.clientHeight-i.clientHeight,a)}}},React.createElement("div",{className:"user-box-modal"},React.createElement("span",{className:"user-box-modal-title"},wp.i18n.__("Switch Account","integrate-google-drive")),Object.keys(igd.accounts).map((function(e){var t=igd.accounts[e],n=t.id,a=t.name,o=t.photo,l=t.email,c=i.id===n;return React.createElement("div",{key:e,className:"user-box-account ".concat(c?"active":""),onClick:function(){return r(igd.accounts[e])}},React.createElement("img",{referrerPolicy:"no-referrer",onError:function(e){return x(e.currentTarget,l)},src:o}),React.createElement("div",{className:"account-info"},React.createElement("span",{className:"account-name"},a),React.createElement("span",{className:"account-email"},l)),c&&React.createElement("i",{className:"dashicons dashicons-saved active-badge"}))})),!s&&!d&&React.createElement(React.Fragment,null,React.createElement("button",{"data-tip":"Multiple Accounts - PRO","data-for":"addAccountPromo",className:"igd-btn btn-primary",onClick:function(){P||!igd.accounts?igd.authUrl?M():window.location=igd.adminUrl+"/admin.php?page=integrate-google-drive-settings":j(wp.i18n.__("Upgrade to PRO to add multiple accounts.","integrate-google-drive"))}},React.createElement("i",{className:"dashicons dashicons-plus"}),React.createElement("span",null,wp.i18n.__("Add account","integrate-google-drive"))),!P&&!!igd.accounts&&React.createElement(ge,{id:"addAccountPromo",effect:"solid",place:"right",className:"igd-tooltip",backgroundColor:"#FDB837"})))))))}function fe(e){return function(e){if(Array.isArray(e))return ve(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return ve(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ve(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ve(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function he(e){var t=e.file,n=e.isSelected,i=e.selectedFolders,r=void 0===i?[]:i,a=e.setSelectedFolders;return React.createElement("button",{className:"select-btn ".concat(n?"active":""),onClick:function(e){e.preventDefault(),e.stopPropagation(),a(n?fe(r.filter((function(e){return e.id!=t.id}))):[].concat(fe(r),[t]))}},React.createElement("i",{className:"dashicons ".concat(n?"dashicons-no":"dashicons-plus")}),React.createElement("span",null,n?wp.i18n.__("Remove","integrate-google-drive"):wp.i18n.__("Select","integrate-google-drive")))}var we=React.useContext;function ye(){var e=we(t),n=e.activeAccount,i=e.initFolders,r=e.activeFolder,a=e.setActiveFolder,o=e.selectedFolders,l=e.shortcodeBuilderType,c=e.listFiles,s=e.setSelectedFolders,d=e.isList,u=e.selectionType,m="uploader"===l,g="embed"===l,p="view"===l,f="download"===l,v="slider"===l,h=n.root_id,w=E(!1,n);i&&(w=w.filter((function(e){return i.includes(e.id)})));var y=l&&!p&&!f&&!g&&!v;return m?y=!o.length||o[0].id===h:"parent"===u&&(y=!0),w.map((function(e){var t=e.id,n=e.name,i=e.iconLink,l=o&&!!o.find((function(e){return e.id===t}));return React.createElement("div",{key:t,className:"".concat(t===(null==r?void 0:r.id)?"active":""," file-item root-item folder-item"),onClick:function(t){t.stopPropagation(),a(e),c(e)}},React.createElement("img",{src:i,alt:n}),React.createElement("span",null,n),y&&h===t&&React.createElement(he,{file:e,isSelected:l,selectedFolders:o,setSelectedFolders:s,isList:d}))}))}var be=window.React,_e=be.useRef,Ee=be.useContext;function Re(){var e=Ee(t),n=e.activeAccount,i=e.activeFolder,r=e.isUpload,a=e.setIsUpload,o=e.isMobile,l=e.setShowSidebar,c=n.storage,s=void 0===c?{}:c,d=Math.round(100*s.usage/s.limit),u=!(!i||k(i.id,n)&&n.root_id!==i.id),m=_e(null);return React.createElement("div",{ref:m,className:"igd-sidebar-wrap"},React.createElement("div",{className:"igd-sidebar"},React.createElement("div",{className:"sidebar-uploader"},React.createElement("button",{id:"igd_upload_files",disabled:!u,className:"".concat(r?"active":u?"":"disabled"," igd-btn"),onClick:function(){a((function(e){return!e})),o&&l(!1)}},React.createElement("i",{className:"dashicons dashicons-cloud-upload"}),React.createElement("span",null,wp.i18n.__("Upload Files","integrate-google-drive")))),React.createElement("div",{className:"sidebar-folders"},React.createElement(ye,null)),React.createElement("div",{className:"storage-info-wrap"},React.createElement("i",{className:"dashicons dashicons-database"}),React.createElement("div",{className:"storage-info"},React.createElement("div",{className:"storage-info-sidebar"},React.createElement("div",{style:{width:"".concat(d,"%")},className:"storage-info-fill ".concat(d>90?"fill-danger":"")})),React.createElement("span",null,y(s.usage)," of ",y(s.limit)," used")))))}function Ne(e){return Ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ne(e)}function Se(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Ce(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Se(Object(n),!0).forEach((function(t){Oe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Se(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Oe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Ne(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==Ne(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Ne(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ke(e){return function(e){if(Array.isArray(e))return xe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ae(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,a,o,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=a.call(n)).done)&&(l.push(i.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(e,t)||Ae(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ae(e,t){if(e){if("string"==typeof e)return xe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xe(e,t):void 0}}function xe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var Pe=React,je=Pe.useState,Ie=Pe.useEffect,De=Pe.useRef,Te=Pe.useContext;function Be(){var e=Te(t),n=e.account,i=void 0===n?igd.activeAccount:n,r=e.notifications,a=e.folders,o=e.filters,l=e.maxFiles,c=e.maxFileSize,s=e.minFileSize,d=e.activeFolder,u=e.isUpload,m=e.setIsUpload,g=e.isFormUploader,p=e.isRequired,f=e.showUploadLabel,v=e.uploadLabelText,h=e.uploadFileName,w=e.isWooCommerceUploader,y=e.wcItemId,E=e.wcOrderId,N=e.wcProductId,S=e.initUploadedFiles,C=void 0===S?[]:S,O=e.setFiles,k=e.setAllFiles,F=e.enableFolderUpload,A=void 0===F?!!d:F,x=e.uploadImmediately,P=void 0===x?!!d||w:x,j=e.overwrite,I=e.showUploadConfirmation,D=e.uploadConfirmationMessage,T=o||{},B=T.allowExtensions,U=T.allowAllExtensions,L=T.allowExceptExtensions,M=Fe(je(C),2),z=M[0],H=M[1],K=Fe(je(C),2),W=K[0],Q=K[1],V=Fe(je([]),2),q=V[0],G=V[1],Y=Fe(je([]),2),J=Y[0],X=Y[1],Z=Fe(je(0),2),$=Z[0],ee=Z[1],te=Fe(je(!1),2),ne=te[0],ie=te[1],re=Fe(je([]),2),ae=re[0],oe=re[1],le=De(null),ce=De(null),se=De(null),de=De(null),ue=De(null),me=d;if(!me){var ge=a?a.filter((function(e){return b(e)})):[];me=ge&&ge.length?ge[0]:{id:"root",accountId:i.id}}var pe=function(e){if(e){var t=le.current.files,n=t.findIndex((function(t){return t.id===e.id}))+1;n<t.length&&we(t[n])}},fe=function(e,t,n){if(!e)return n(!0);var i=t.name.split(".").pop();(U?!e.split(",").map((function(e){return e.trim()})).includes(i):e.split(",").map((function(e){return e.trim()})).includes(i))?n(!0):(this.trigger("Error",{code:"EXT_ERROR",file:t}),n(!1))},ve=function(e,t,n){if(!(e=1024*e*1024))return n(!0);t.size<e?(this.trigger("Error",{code:"SIZE_MIN_ERROR",file:t}),n(!1)):n(!0)},he=function(e,t,n){if(!e)return n(!0);var i=this.files.length;C.length&&(i=de.current.querySelectorAll(".file-list-item.uploaded").length),i>=e?(this.trigger("Error",{code:"FILES_MAX_ERROR",file:t}),n(!1)):n(!0)},we=function(e){le.current.stop(),ee(0),G((function(t){return t.find((function(t){return t.id===e.id}))?t:[].concat(ke(t),[e])}));var t=R(e);wp.ajax.post("igd_get_upload_url",{data:{name:e.name,queueIndex:e.status,uploadFileName:h,size:e.size,type:e.type,folderId:me.id,accountId:me.accountId,path:t&&t.substring(0,t.lastIndexOf("/")+1),fileId:e.id,overwrite:j,isWooCommerceUploader:w,wcProductId:N,wcOrderId:E,wcItemId:y}}).done((function(e){le.current.setOption("url",e),le.current.start()})).fail((function(t){console.log(t),pe(e),X(J.filter((function(t){return t.id!==e.id}))),G(J.filter((function(t){return t.id!==e.id}))),ee(0),H((function(n){return n.map((function(n){return n.id===e.id&&(n.error=t.error),n}))}))}))},ye=function(){var e={browse_button:ce.current,drop_element:de.current,multipart:!1,multi_selection:!l||l>1,filters:{max_files:l,file_ext:U?L:B,max_file_size:c?"".concat(parseInt(c),"mb"):0,min_file_size:s},init:{FilesAdded:function(e,t){ie(!1),H((function(e){return[].concat(ke(e),ke(t))})),X((function(e){return[].concat(ke(e),ke(t))})),G((function(e){var n=ke(e);return P&&!e.length&&(we(t[0]),n=[].concat(ke(e),[t[0]])),n}))},FilesRemoved:function(e,t){X((function(e){return e.filter((function(e){return!t.find((function(t){return t.id===e.id}))}))})),H((function(e){return e.filter((function(e){return!t.find((function(t){return t.id===e.id}))}))}))},FileUploaded:function(e,t,n){!function(e,t){pe(e);var n=JSON.parse(t.response);if(n){var i={file:n=Ce(Ce({},n),{},{type:n.mimeType,accountId:me.accountId,pluploadId:e.id,path:A&&R(e)})};w&&(i.wcOrderId=E,i.wcItemId=y,i.wcProductId=N),Q((function(e){return[].concat(ke(e),[n])})),X((function(t){return t.filter((function(t){return t.id!==e.id}))})),wp.ajax.post("igd_file_uploaded",i).done((function(e){O&&(O((function(t){return[e].concat(ke(t))})),k((function(t){return Ce(Ce({},t),{},Oe({},me.id,[e].concat(ke(t[me.id]))))})))}))}}(t,n)},UploadProgress:function(e,t){ee(t.percent)},UploadComplete:function(){G([]),X([]),setTimeout((function(){ie(!0)}),!g&&I?1e3:0)},Error:function(e,t){return function(e,t){var n;switch(e){case-600:n=wp.i18n.__("File size exceeds the maximum upload size.","integrate-google-drive")+"(".concat(c?"".concat(parseInt(c),"mb"):0,")");break;case"SIZE_MIN_ERROR":n=wp.i18n.__("File size is less than the minimum upload size.","integrate-google-drive")+"(".concat(s,"mb)");break;case"EXT_ERROR":n=wp.i18n.__("This file type is not allowed","integrate-google-drive");break;case"FILES_MAX_ERROR":n=wp.i18n.__("You can not upload more than","integrate-google-drive")+" ".concat(l," ").concat(wp.i18n.__("files","integrate-google-drive"));break;default:n=t.error}t.error=n,H((function(e){var n=e.findIndex((function(e){return e.id===t.id}));if(n>-1){var i=ke(e);return i[n]=t,i}return[].concat(ke(e),[t])}))}(t.code,t.file)}}};return!U&&B&&(e.filters.mime_types=[{title:"Allowed files",extensions:B}]),e},be=function(){if(plupload.buildUrl=function(e){return e},plupload.addFileFilter("file_ext",fe),plupload.addFileFilter("min_file_size",ve),plupload.addFileFilter("max_files",he),le.current=new plupload.Uploader(ye()),le.current.init(),A){var e=new mOxie.FileInput({browse_button:se.current,directory:!0});e.init(),e.onchange=function(){le.current.addFile(e.files)}}};Ie((function(){return be(),function(){le.current&&le.current.destroy()}}),[]);var _e=function(){if(jQuery){var e=jQuery,t=e(de.current).closest("form");if(t.length){var n=e(de.current).parent().next(".upload-file-list"),i=function(e){return e.map((function(e){return{id:e.id,accountId:e.accountId,name:e.name,iconLink:e.iconLink,thumbnailLink:e.thumbnailLink,size:e.size,parents:e.parents,path:A&&e.path}}))}(W);if(["metform","elementor","ninjaforms","cf7"].includes(g)){var r=i.map((function(e){var t="https://drive.google.com/file/d/".concat(e.id,"/view");return"".concat(e.name," — ( ").concat(t," )")})).join(", \n\n");n.val(r).change()}else n.val(JSON.stringify(i)).change();if(t.trigger("change"),!P){var a=t.find(":submit");a.length?(a.is("input")?a.val(ue.current):a.text(ue.current),a.trigger("click")):t.submit()}}}};Ie((function(){ne&&W.length&&(r&&r.uploadNotification&&wp.ajax.post("igd_notification",{files:W,notifications:r,type:"upload"}),g&&_e())}),[ne]),Ie((function(){if(J.length&&!q.length&&g&&!P&&de.current){var e=jQuery(de.current).closest("form");if(e.length){var t=jQuery(e).find(":submit");if(t.length){var n=t.parent();t.addClass("igd-disabled");var i=function(e){e.preventDefault();var n=t.is("input");ue.current=t.is("input")?t.val():t.text(),n?t.val(wp.i18n.__("Uploading Files...","integrate-google-drive")):t.text(wp.i18n.__("Uploading Files...","integrate-google-drive")),we(J[0])};return n.on("click",i),function(){t&&(n.off("click",i),t.removeClass("igd-disabled"))}}}}}),[J]),Ie((function(){if(g){var e=jQuery(de.current).closest("form"),t=function(e){H([]),X([]),G([]),Q([])};return e.on("reset",t),function(){return e.off("reset",t)}}}),[]);var Ee=!g&&!w&&!P&&I&&W.length&&ne,Re=J.length||z.filter((function(e){return!e.error})).length,Ne=J.length?P||q.length?wp.i18n.__("Item(s) Uploading...","integrate-google-drive"):wp.i18n.__("Item(s) Selected","integrate-google-drive"):wp.i18n.__("Item(s) Uploaded","integrate-google-drive");return React.createElement("div",{onDragEnter:function(){return de.current.classList.add("drag-active")},onDragLeave:function(){return de.current.classList.remove("drag-active")},onDrop:function(){return de.current.classList.remove("drag-active")},ref:de,className:"igd-file-uploader igd-module-uploader ".concat(g?" igd-form-uploader":""," ").concat(!p||J.length||z.length?"":"required-error","  ").concat(Ee?"show-confirmation":""," ")},React.createElement("div",{className:"igd-file-uploader-body"},!!Ee&&React.createElement("div",{className:"upload-confirmation"},React.createElement("div",{className:"upload-confirmation-message",dangerouslySetInnerHTML:{__html:D}}),(!l||l>W.length)&&React.createElement("button",{type:"button",className:"igd-btn btn-primary",onClick:function(){return ie(!1)}},wp.i18n.__("Upload More Files","integrate-google-drive"))),React.createElement("div",{className:"igd-file-uploader-inner"},f&&React.createElement("h4",{className:"igd-file-uploader-label"},v),React.createElement("i",{className:"dashicons dashicons-cloud-upload"}),React.createElement("p",null,wp.i18n.__("Drag and drop files here","integrate-google-drive")),React.createElement("p",{className:"or"},wp.i18n.__("OR","integrate-google-drive")),React.createElement("div",{className:"igd-file-uploader-buttons"},React.createElement("button",{type:"button",ref:ce},React.createElement("svg",{width:"24",height:"24",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M842.24 355.413333l-232.106667-256a42.666667 42.666667 0 0 0-31.573333-14.08h-298.666667A107.946667 107.946667 0 0 0 170.666667 192v640A107.946667 107.946667 0 0 0 279.893333 938.666667h464.213334A107.946667 107.946667 0 0 0 853.333333 832V384a42.666667 42.666667 0 0 0-11.093333-28.586667zM597.333333 213.333333l116.906667 128h-85.333333a33.706667 33.706667 0 0 1-31.573334-36.266666z m146.773334 640H279.893333a22.613333 22.613333 0 0 1-23.893333-21.333333v-640a22.613333 22.613333 0 0 1 23.893333-21.333333H512v134.4A119.04 119.04 0 0 0 627.626667 426.666667H768v405.333333a22.613333 22.613333 0 0 1-23.893333 21.333333z",fill:"currentColor"}),React.createElement("path",{d:"M597.333333 554.666667h-42.666666v-42.666667a42.666667 42.666667 0 0 0-85.333334 0v42.666667h-42.666666a42.666667 42.666667 0 0 0 0 85.333333h42.666666v42.666667a42.666667 42.666667 0 0 0 85.333334 0v-42.666667h42.666666a42.666667 42.666667 0 0 0 0-85.333333z",fill:"currentColor"})),React.createElement("span",null,wp.i18n.__("Browse Files","integrate-google-drive"))),A&&React.createElement("button",{type:"button",ref:se},React.createElement("svg",{width:"24",height:"24",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M597.333333 554.666667h-42.666666v-42.666667a42.666667 42.666667 0 0 0-85.333334 0v42.666667h-42.666666a42.666667 42.666667 0 0 0 0 85.333333h42.666666v42.666667a42.666667 42.666667 0 0 0 85.333334 0v-42.666667h42.666666a42.666667 42.666667 0 0 0 0-85.333333z",fill:"currentColor"}),React.createElement("path",{d:"M832 300.8h-298.666667L421.12 165.12a42.666667 42.666667 0 0 0-32.853333-15.786667H192A105.386667 105.386667 0 0 0 85.333333 253.013333v517.973334a105.386667 105.386667 0 0 0 106.666667 103.68h640a105.386667 105.386667 0 0 0 106.666667-103.68V404.48a105.386667 105.386667 0 0 0-106.666667-103.68z m21.333333 469.333333a19.626667 19.626667 0 0 1-21.333333 18.346667h-640a19.626667 19.626667 0 0 1-21.333333-18.346667V253.013333a19.626667 19.626667 0 0 1 21.333333-18.346666h176.213333l110.933334 135.68a42.666667 42.666667 0 0 0 32.853333 15.786666h320a19.626667 19.626667 0 0 1 21.333333 18.346667z",fill:"currentColor"})),React.createElement("span",null,wp.i18n.__("Browse Folder","integrate-google-drive")))),u&&React.createElement("i",{className:"cancel-upload dashicons dashicons-no",onClick:function(){return m(!1)}}),React.createElement("div",{className:"upload-info"},!!s&&React.createElement("span",{className:"max-size-label"},wp.i18n.__("Min File Size:","integrate-google-drive")," ",s,"MB"),!!c&&React.createElement("span",{className:"max-size-label"},wp.i18n.__("Max File Size:","integrate-google-drive")," ",c,"MB")))),!!z.length&&!Ee&&React.createElement("div",{className:"file-list-wrapper"},React.createElement("div",{className:"file-list-header"},React.createElement("span",{className:"file-count"},Re),React.createElement("span",{className:"file-status-text"},Ne)),React.createElement("div",{className:"file-list"},ke(new Set(z)).map((function(e){var t=e.id,n=e.name,i=e.size,r=e.type,a=e.error,o=q.find((function(e){return e.id===t})),l=W.find((function(e){return e.id===t||e.pluploadId===t})),c=ae.find((function(e){return e.id===t})),s=R(e);return React.createElement("div",{key:t,className:"file-list-item ".concat(o?"active":""," ").concat(l?"uploaded":""),id:t},React.createElement("img",{width:32,height:32,src:_(r)}),React.createElement("div",{className:"file-info"},React.createElement("div",{className:"upload-item"},React.createElement("span",{className:"upload-item-name"},s||n),React.createElement("span",{className:"upload-item-size"},"(",plupload.formatSize(i),")")),React.createElement("div",{className:"file-info-percentage"},!!l&&React.createElement("i",{className:"dashicons dashicons-saved"}),!l&&o&&!a&&!c&&React.createElement("div",{className:"igd-spinner"}),!l&&!!o&&!!$&&React.createElement("span",{className:"percentage"},$,"%"),!l&&o&&!c&&!a&&React.createElement("i",{className:"dashicons dashicons-controls-pause",onClick:function(){le.current.stop(),oe([].concat(ke(ae),[e]))}}),!l&&c&&!a&&React.createElement("i",{className:"dashicons dashicons-controls-play",onClick:function(){le.current.start(),oe(ae.filter((function(e){return e.id!==t})))}}),React.createElement(React.Fragment,null,React.createElement("i",{"data-tip":wp.i18n.__("Remove","integrate-google-drive"),"data-for":"remove-file",className:"remove-file dashicons dashicons-no-alt",onClick:function(){if(H((function(e){return e.filter((function(e){return e.id!==t}))})),X((function(e){return e.filter((function(e){return e.id!==t}))})),le.current.removeFile(e),l){Q((function(e){return e.filter((function(e){return e.id!==l.id}))}));var n={id:l.id,account_id:l.accountId,nonce:igd.nonce};w&&(n.isWooCommerceUploader=!0,n.wcProductId=N,n.wcOrderId=E,n.wcItemId=y),wp.ajax.post("igd_upload_remove_file",n)}else o&&(le.current.stop(),ee(0),pe(e)),le.current.removeFile(e),le.current.setOption("url",""),G((function(e){return e.filter((function(e){return e.id!==t}))}))}}),React.createElement(ReactTooltip,{id:"remove-file",effect:"solid",place:"top",className:"igd-tooltip"}))),a?React.createElement("span",{className:"file-info-error"},a):React.createElement("span",{className:"file-info-progress",style:{"--percentage":o?"".concat($||2,"%"):0}},React.createElement("span",{className:"file-info-progress-bar"}))))}))),!!J.length&&!g&&!w&&!P&&React.createElement("button",{type:"button",className:"igd-btn btn-primary start-upload",onClick:function(){return we(J[0])}},React.createElement("i",{className:"dashicons dashicons-cloud-upload"}),q.length?wp.i18n.__("Uploading Files...","integrate-google-drive"):wp.i18n.__("Start Upload","integrate-google-drive"))))}const Ue=React;var Le=n.n(Ue),Me=n(884),ze=n.n(Me),He=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,i){return e[0]===t&&(n=i,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),i=this.__entries__[n];return i&&i[1]},t.prototype.set=function(t,n){var i=e(this.__entries__,t);~i?this.__entries__[i][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,i=e(n,t);~i&&n.splice(i,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,i=this.__entries__;n<i.length;n++){var r=i[n];e.call(t,r[1],r[0])}},t}()}(),Ke="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,We=void 0!==n.g&&n.g.Math===Math?n.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),Qe="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(We):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var Ve=["top","right","bottom","left","width","height","size","weight"],qe="undefined"!=typeof MutationObserver,Ge=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,i=!1,r=0;function a(){n&&(n=!1,e()),i&&l()}function o(){Qe(a)}function l(){var e=Date.now();if(n){if(e-r<2)return;i=!0}else n=!0,i=!1,setTimeout(o,t);r=e}return l}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){Ke&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),qe?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){Ke&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;Ve.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Ye=function(e,t){for(var n=0,i=Object.keys(t);n<i.length;n++){var r=i[n];Object.defineProperty(e,r,{value:t[r],enumerable:!1,writable:!1,configurable:!0})}return e},Je=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||We},Xe=it(0,0,0,0);function Ze(e){return parseFloat(e)||0}function $e(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+Ze(e["border-"+n+"-width"])}),0)}function et(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Xe;var i=Je(e).getComputedStyle(e),r=function(e){for(var t={},n=0,i=["top","right","bottom","left"];n<i.length;n++){var r=i[n],a=e["padding-"+r];t[r]=Ze(a)}return t}(i),a=r.left+r.right,o=r.top+r.bottom,l=Ze(i.width),c=Ze(i.height);if("border-box"===i.boxSizing&&(Math.round(l+a)!==t&&(l-=$e(i,"left","right")+a),Math.round(c+o)!==n&&(c-=$e(i,"top","bottom")+o)),!function(e){return e===Je(e).document.documentElement}(e)){var s=Math.round(l+a)-t,d=Math.round(c+o)-n;1!==Math.abs(s)&&(l-=s),1!==Math.abs(d)&&(c-=d)}return it(r.left,r.top,l,c)}var tt="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof Je(e).SVGGraphicsElement}:function(e){return e instanceof Je(e).SVGElement&&"function"==typeof e.getBBox};function nt(e){return Ke?tt(e)?function(e){var t=e.getBBox();return it(0,0,t.width,t.height)}(e):et(e):Xe}function it(e,t,n,i){return{x:e,y:t,width:n,height:i}}var rt=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=it(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=nt(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),at=function(e,t){var n,i,r,a,o,l,c,s=(i=(n=t).x,r=n.y,a=n.width,o=n.height,l="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,c=Object.create(l.prototype),Ye(c,{x:i,y:r,width:a,height:o,top:r,right:i+a,bottom:o+r,left:i}),c);Ye(this,{target:e,contentRect:s})},ot=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new He,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof Je(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new rt(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof Je(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new at(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),lt="undefined"!=typeof WeakMap?new WeakMap:new He,ct=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=Ge.getInstance(),i=new ot(t,n,this);lt.set(this,i)};["observe","unobserve","disconnect"].forEach((function(e){ct.prototype[e]=function(){var t;return(t=lt.get(this))[e].apply(t,arguments)}}));const st=void 0!==We.ResizeObserver?We.ResizeObserver:ct;function dt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ut(){return ut=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},ut.apply(this,arguments)}function mt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),i.forEach((function(t){dt(e,t,n[t])}))}return e}function gt(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n,i,r={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function pt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],i=!0,r=!1,a=void 0;try{for(var o,l=e[Symbol.iterator]();!(i=(o=l.next()).done)&&(n.push(o.value),!t||n.length!==t);i=!0);}catch(e){r=!0,a=e}finally{try{i||null==l.return||l.return()}finally{if(r)throw a}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var ft={cursor:"pointer"},vt=function(e){var t=e.index,n=e.onClick,i=e.photo,r=e.margin,a=e.direction,o=e.top,l=e.left,c=e.key,s={margin:r,display:"block"};"column"===a&&(s.position="absolute",s.left=l,s.top=o);return Le().createElement("img",ut({key:c,style:n?mt({},s,ft):s},i,{onClick:n?function(e){n(e,{photo:i,index:t})}:null}))},ht=ze().shape({key:ze().string,src:ze().string.isRequired,width:ze().number.isRequired,height:ze().number.isRequired,alt:ze().string,title:ze().string,srcSet:ze().oneOfType([ze().string,ze().array]),sizes:ze().oneOfType([ze().string,ze().array])});vt.propTypes={index:ze().number.isRequired,onClick:ze().func,photo:ht.isRequired,margin:ze().number,top:function(e){if("column"===e.direction&&"number"!=typeof e.top)return new Error("top is a required number when direction is set to `column`")},left:function(e){if("column"===e.direction&&"number"!=typeof e.left)return new Error("left is a required number when direction is set to `column`")},direction:ze().string};var wt=function(e,t){return t||(t=0),Number(Math.round(e+"e"+t)+"e-"+t)},yt=function(e){var t=e.width,n=e.height;return wt(t/n,2)};function bt(e){this.content=[],this.scoreFunction=e}bt.prototype={push:function(e){this.content.push(e),this.bubbleUp(this.content.length-1)},pop:function(){var e=this.content[0],t=this.content.pop();return this.content.length>0&&(this.content[0]=t,this.sinkDown(0)),e},remove:function(e){for(var t=this.content.length,n=0;n<t;n++)if(this.content[n]==e){var i=this.content.pop();if(n==t-1)break;this.content[n]=i,this.bubbleUp(n),this.sinkDown(n);break}},size:function(){return this.content.length},bubbleUp:function(e){for(var t=this.content[e],n=this.scoreFunction(t);e>0;){var i=Math.floor((e+1)/2)-1,r=this.content[i];if(n>=this.scoreFunction(r))break;this.content[i]=t,this.content[e]=r,e=i}},sinkDown:function(e){for(var t=this.content.length,n=this.content[e],i=this.scoreFunction(n);;){var r=2*(e+1),a=r-1,o=null;if(a<t){var l=this.content[a],c=this.scoreFunction(l);c<i&&(o=a)}if(r<t){var s=this.content[r];this.scoreFunction(s)<(null==o?i:c)&&(o=r)}if(null==o)break;this.content[e]=this.content[o],this.content[o]=n,e=o}}};var _t=function(e,t,n){var i=function(e,t,n){var i={},r={},a={};a[t]=0;var o=new bt((function(e){return e.weight}));for(o.push({id:t,weight:0});o.size();){var l=o.pop(),c=l.id;if(!r[c]){var s=e(c)||{};for(var d in r[c]=1,s){var u=l.weight+s[d];(void 0===a[d]||a[d]>u)&&(a[d]=u,o.push({id:d,weight:u}),i[d]=c)}}}if(void 0===a[n])throw new Error("There is no path from ".concat(t," to ").concat(n));return i}(e,t,n);return function(e,t){for(var n=[],i=t;i;)n.push(i),e[i],i=e[i];return n.reverse()}(i,n)},Et=function(e,t,n){return(t-e.length*(2*n))/e.reduce((function(e,t){return e+yt(t)}),0)},Rt=function(e,t,n,i,r,a){var o=e.slice(t,n),l=Et(o,i,a);return Math.pow(Math.abs(l-r),2)},Nt=function(e){var t=e.containerWidth,n=e.limitNodeSearch,i=e.targetRowHeight,r=e.margin,a=e.photos,o=function(e,t,n,i,r){return function(a){var o={};o[+(a=+a)]=0;for(var l=a+1;l<n.length+1&&!(l-a>i);++l)o[l.toString()]=Rt(n,a,l,t,e,r);return o}}(i,t,a,n,r),l=_t(o,"0",a.length);l=l.map((function(e){return+e}));for(var c=1;c<l.length;++c)for(var s=a.slice(l[c-1],l[c]),d=Et(s,t,r),u=l[c-1];u<l[c];++u)a[u].width=wt(d*yt(a[u]),1),a[u].height=d;return a},St=Le().memo((function(e){var t=e.photos,n=e.onClick,i=e.direction,r=e.margin,a=e.limitNodeSearch,o=e.targetRowHeight,l=e.columns,c=e.renderImage,s=pt((0,Ue.useState)(0),2),d=s[0],u=s[1],m=(0,Ue.useRef)(null);(0,Ue.useLayoutEffect)((function(){var e=null,t=new st((function(t){var n=t[0].contentRect.width;d!==n&&(e=window.requestAnimationFrame((function(){u(Math.floor(n))})))}));return t.observe(m.current),function(){t.disconnect(),window.cancelAnimationFrame(e)}}));var g=function(e,i){var r=i.index;n(e,{index:r,photo:t[r],previous:t[r-1]||null,next:t[r+1]||null})};if(!d)return Le().createElement("div",{ref:m}," ");var p,f,v=d-1;"row"===i&&("function"==typeof a&&(a=a(d)),"function"==typeof o&&(o=o(d)),void 0===a&&(a=2,d>=450&&(a=function(e){var t=e.targetRowHeight,n=e.containerWidth;return wt(n/t/1.5)+8}({containerWidth:d,targetRowHeight:o}))),p={display:"flex",flexWrap:"wrap",flexDirection:"row"},f=Nt({containerWidth:v,limitNodeSearch:a,targetRowHeight:o,margin:r,photos:t})),"column"===i&&("function"==typeof l&&(l=l(d)),void 0===l&&(l=1,d>=500&&(l=2),d>=900&&(l=3),d>=1500&&(l=4)),p={position:"relative"},f=function(e){for(var t=e.photos,n=e.columns,i=e.containerWidth,r=e.margin,a=(i-2*r*n)/n,o=t.map((function(e){var t=e.height/e.width*a;return mt({},e,{width:wt(a,1),height:wt(t,1)})})),l=[],c=[],s=0;s<n;s++)l[s]=wt(s*(a+2*r),1),c[s]=0;var d=o.map((function(e){var t=c.reduce((function(e,t,n){return t<c[e]?n:e}),0);e.top=c[t],e.left=l[t],c[t]=c[t]+e.height+2*r;var n=c.reduce((function(e,t,n){return t>c[e]?n:e}),0);return e.containerHeight=c[n],e}));return d}({containerWidth:v,columns:l,margin:r,photos:t}),p.height=f[f.length-1].containerHeight);var h=c||vt;return Le().createElement("div",{className:"react-photo-gallery--gallery"},Le().createElement("div",{ref:m,style:p},f.map((function(e,t){var a=e.left,o=e.top,l=e.containerHeight,c=gt(e,["left","top","containerHeight"]);return h({left:a,top:o,key:e.key||e.src,containerHeight:l,index:t,margin:r,direction:i,onClick:n?g:null,photo:c})}))))}));St.propTypes={photos:ze().arrayOf(ht).isRequired,direction:ze().string,onClick:ze().func,columns:ze().oneOfType([ze().func,ze().number]),targetRowHeight:ze().oneOfType([ze().func,ze().number]),limitNodeSearch:ze().oneOfType([ze().func,ze().number]),margin:ze().number,renderImage:ze().func},St.defaultProps={margin:2,direction:"row",targetRowHeight:300};const Ct=St;var Ot=React.useContext;function kt(){var e=Ot(t),n=e.isUpload,i=e.permissions,r=e.setIsUpload,a=e.isShortcodeBuilder,o=e.shortcodeBuilderType,l=e.files,c=!a&&(!o||"browser"===o)&&(!i||i.upload),s=wp.i18n.__("There is no items here.","integrate-google-drive"),d=wp.i18n.__("The folder is empty.","integrate-google-drive");return a&&l.length&&(s=wp.i18n.__("No items available for selection.","integrate-google-drive"),d=wp.i18n.__("This folder doesn't contain any selectable items.","integrate-google-drive")),React.createElement("div",{className:"igd-root-placeholder empty-folder-placeholder ".concat(n?"igd-hidden":"")},React.createElement("img",{src:"".concat(igd.pluginUrl,"/assets/images/file-browser/empty-folder-placeholder.svg"),alt:"Empty Folder"}),React.createElement("span",{className:"igd-root-placeholder-title"},s),React.createElement("span",{className:"igd-root-placeholder-text"},d),c&&React.createElement("button",{type:"button",className:"igd-btn btn-primary uploader-btn",onClick:function(){return r(!0)}},React.createElement("i",{className:"dashicons dashicons-cloud-upload"}),wp.i18n.__("Upload Files","integrate-google-drive")))}function Ft(e){return Ft="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ft(e)}function At(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function xt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?At(Object(n),!0).forEach((function(t){Pt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):At(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Pt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Ft(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==Ft(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Ft(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,a,o,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=a.call(n)).done)&&(l.push(i.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(e,t)||Dt(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function It(e){return function(e){if(Array.isArray(e))return Tt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Dt(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Dt(e,t){if(e){if("string"==typeof e)return Tt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Tt(e,t):void 0}}function Tt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var Bt=React,Ut=Bt.useEffect,Lt=Bt.useState,Mt=Bt.useContext,zt=igd.settings.rememberLastFolder,Ht=void 0===zt||zt,Kt=function(e){var t=e.id,n=e.activeFiles,i=e.setActiveFiles,r=e.files;return React.createElement("div",{className:"item-selection",onClick:function(e){e.stopPropagation(),n.find((function(e){return e.id===t}))?i((function(e){return e.filter((function(e){return e.id!==t}))})):i((function(e){return[].concat(It(e),[r.find((function(e){return e.id===t}))])}))}},React.createElement("svg",{fill:"#FFFFFFB2",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},React.createElement("radialGradient",{id:"shadow",cx:"38",cy:"95.488",r:"10.488",gradientTransform:"matrix(1 0 0 -1 -26 109)",gradientUnits:"userSpaceOnUse"},React.createElement("stop",{offset:".832",stopColor:"#010101"}),React.createElement("stop",{offset:"1",stopColor:"#010101",stopOpacity:"0"})),React.createElement("circle",{opacity:".26",fill:"url(#shadow)",cx:"12",cy:"13.512",r:"10.488"}),React.createElement("circle",{fill:"#FFF",cx:"12",cy:"12.2",r:"8.292"}),React.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),React.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})))};function Wt(){var e=Mt(t),n=e.galleryLayout,i=e.galleryColumns,r=e.galleryAspectRatio,a=e.galleryHeight,o=e.galleryMargin,l=e.galleryView,c=e.galleryFolderView,s=e.galleryOverlay,d=e.galleryOverlayTitle,u=e.galleryOverlayDescription,m=e.galleryOverlaySize,g=e.galleryImageSize,p=e.galleryCustomSizeWidth,f=e.galleryCustomSizeHeight,v=e.activeAccount,h=e.files,w=e.listFiles,_=e.setShouldRefresh,E=e.breadcrumbs,R=e.initFolders,N=e.setFiles,C=e.activeFolder,F=e.setActiveFolder,A=e.permissions,x=e.setActiveFiles,j=e.activeFiles,T=e.selectAll,B=e.isLoading,U=e.initParentFolder,L=e.notifications,M=jt(Lt({}),2),H=M[0],K=M[1],W=!!E&&Object.keys(E),Q=jt(Lt([]),2),V=Q[0],q=Q[1],G=jt(Lt([]),2),Y=G[0],J=G[1];Ut((function(){if(!h.length)return q([]),void J([]);var e=h.filter((function(e){return b(e)||[v.root_id,"shared","computers","starred","shared-drives"].includes(e.id)}));q(e);var t=h.filter((function(e){return O(e)||S(e)})).map((function(e){var t=e.id,i=e.description,r=e.name,a=e.size,o=e.metaData,l=void 0===o?{}:o,c={id:t,name:r,description:i,size:a,src:P(e,g,{w:p,h:f})};return"grid"!==n&&(l.width&&!S(e)||(l.width=600),l.height&&!S(e)||(l.height=400),c.width=l.width,c.height=l.height),c}));J(t)}),[h]),Ut((function(){V.length&&"title"!==c&&V.forEach((function(e){k(e.id,v)||X(e)}))}),[V,v]);var X=function(e){function t(e,t){var n=jQuery(e);setTimeout((function(){e.dataset.intervalId&&clearInterval(e.dataset.intervalId),e.dataset.intervalId=setInterval((function(){var e=n.find("img"),t=e.filter(".active").length?e.filter(".active"):e.first();if(t.length){var i=t.next().length?t.next():e.first();e.removeClass("active"),i.addClass("active")}}),3e3)}),1500*t)}wp.ajax.post("igd_get_files",{data:{folder:e}}).done((function(n){var i=n.files,r=n.error;if(r)Swal.fire({html:r,icon:"error",confirmButtonText:wp.i18n.__("Ok","integrate-google-drive"),customClass:{container:"igd-swal"}});else{var a=i.filter((function(e){return O(e)||S(e)}));a=a.slice(0,10),K((function(t){return xt(xt({},t),{},Pt({},e.id,a))})),document.querySelectorAll(".igd-gallery-folder-images").forEach(t)}})).fail((function(e){return console.log(e)}))};Ut((function(){var e=jQuery(".react-photo-gallery--gallery img");if(e.length){var t=function(){_(!0)};return e.on("error",t),function(){e.off("error",t)}}}),[Y]);var Z=I();Ut((function(){if(Z)if(T){x(h);var e=Y.map((function(e){return xt(xt({},e),{},{isSelected:!0})}));J(e)}else{x([]);var t=Y.map((function(e){return xt(xt({},e),{},{isSelected:!1})}));J(t)}}),[T]);var $=function(){var e=window.innerWidth;return e<768?i.xs:e<992?i.sm:e<1200?i.md:e<1600?i.lg:e>=1920?i.xl:i.md},ee=jt(Lt($()),2),te=ee[0],ne=ee[1];return Ut((function(){var e=function(){ne($())};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[]),React.createElement(React.Fragment,null,React.createElement("div",{className:"igd-module-gallery gallery-view-".concat(l," gallery-layout-").concat(n),style:{"--column-width":"calc(".concat(100/te,"% - ").concat(2*o,"px)"),"--aspect-ratio":"".concat(r)}},React.createElement("div",{className:"file-list"},!!W.length&&!!C&&React.createElement("div",{className:"go-prev file-item folder-item",style:{margin:"".concat(o,"px")},onClick:function(e){if(W.length>1){var t=W[W.length-2],n={id:t,name:E[t],accountId:v.id};w(n)}else if(F(""),N(R),Ht){var i=z(R,U);i&&sessionStorage.removeItem(i)}}},React.createElement("i",{className:"dashicons dashicons-arrow-left-alt"}),React.createElement("span",null,wp.i18n.__("Previous folder","integrate-google-drive"))),!!V.length&&V.map((function(e){var t=e.id,n=e.name,i=e.iconLink,r=j.find((function(e){return e.id===t})),a=null==i?void 0:i.replace("/16/","/64/");return React.createElement("div",{key:t,className:"file-item ".concat(r?"active":""," ").concat("title"===c?"folder-item":""),style:{margin:"".concat(o,"px")},onClick:function(){return w(e)}},(A.download&&A.zipDownload||A.photoProof)&&React.createElement(Kt,{id:t,activeFiles:j,setActiveFiles:x,files:h}),"thumbnail"===c&&React.createElement("div",{className:"igd-gallery-folder-images"},H[t]&&H[t].length>0?H[t].map((function(e,t){var n=e.id,i=e.name,r=P(e,g,{w:p,h:f});return React.createElement("img",{key:n,className:"".concat(0===t?"active":""),onError:function(e){e.target.src=a},src:r,alt:i,referrerPolicy:"no-referrer"})})):React.createElement("img",{className:"active",src:a,alt:n,referrerPolicy:"no-referrer"})),React.createElement("div",{className:"file-item-footer"},React.createElement("div",{className:"file-icon-wrap"},k(t,v)?React.createElement("i",{className:"file-icon dashicons ".concat(a," footer-icon")}):React.createElement("img",{className:"file-icon",src:a,alt:n,referrerPolicy:"no-referrer"})),React.createElement("span",null,n)))}))),React.createElement(Ct,{photos:Y,margin:parseInt(o),targetRowHeight:"justified"===n&&a,columns:te,direction:"masonry"===n?"column":"row",renderImage:function(e){var t=e.photo,n=e.margin,i=e.direction,r=e.top,a=e.left,o=t.name,l=t.description,c=t.src,g=t.size,p=t.id,f=t.width,v=t.height,w={display:"block",margin:"".concat(n,"px"),width:"".concat(f,"px"),height:"".concat(v,"px")};"column"===i&&(w.position="absolute",w.left="".concat(a,"px"),w.top="".concat(r,"px"));var b=j.find((function(e){return e.id===p}));return React.createElement("div",{className:"igd-gallery-item ".concat(b?"active":""),style:w,onClick:function(e){return function(e,t){D(e,t,h.filter((function(e){return O(e)||S(e)})),A,L,!0)}(e,p)}},(A.download&&A.zipDownload||A.photoProof)&&React.createElement(Kt,{id:p,activeFiles:j,setActiveFiles:x,files:h}),React.createElement("img",{src:c,alt:o,referrerPolicy:"no-referrer"}),!!s&&React.createElement("div",{className:"igd-gallery-item-overlay"},!!d&&React.createElement("div",{className:"overlay-title"},o),!!u&&!!l&&React.createElement("p",{className:"overlay-description"},l),!!m&&React.createElement("span",{className:"overlay-size"},y(g))))}})),Z&&!B&&!V.length&&!Y.length&&React.createElement(kt,null))}function Qt(){return React.createElement("div",{className:"igd-root-placeholder"},React.createElement("img",{src:"".concat(igd.pluginUrl,"/assets/images/file-browser/computers-placeholder.svg"),alt:"Computers"}),React.createElement("span",{className:"igd-root-placeholder-title"},wp.i18n.__("No Computers Syncing","integrate-google-drive")),React.createElement("span",{className:"igd-root-placeholder-text"},wp.i18n.__("The files synced with computers will display here.","integrate-google-drive")))}function Vt(){return React.createElement("div",{className:"igd-root-placeholder"},React.createElement("img",{src:"".concat(igd.pluginUrl,"/assets/images/file-browser/shared-placeholder.svg"),alt:"Shared Files"}),React.createElement("span",{className:"igd-root-placeholder-title"},wp.i18n.__("Shared With Me","integrate-google-drive")),React.createElement("span",{className:"igd-root-placeholder-text"},wp.i18n.__("Files and folders others have shared with you.","integrate-google-drive")))}function qt(){return React.createElement("div",{className:"igd-root-placeholder"},React.createElement("img",{src:"".concat(igd.pluginUrl,"/assets/images/file-browser/starred-placeholder.svg"),alt:"Starred Files"}),React.createElement("span",{className:"igd-root-placeholder-title"},wp.i18n.__("Nothing is starred","integrate-google-drive")),React.createElement("span",{className:"igd-root-placeholder-text"},wp.i18n.__("Adds star to files and folders that you want to find easily later.","integrate-google-drive")))}function Gt(){return React.createElement("div",{className:"igd-root-placeholder"},React.createElement("img",{src:"".concat(igd.pluginUrl,"/assets/images/file-browser/shared-drives-placeholder.svg"),alt:"Shared Drives"}),React.createElement("span",{className:"igd-root-placeholder-title"},wp.i18n.__("No Shared Drives","integrate-google-drive")),React.createElement("span",{className:"igd-root-placeholder-text"},wp.i18n.__("The Drives others have shared with you.","integrate-google-drive")))}function Yt(e){var t=e.activeFolder.id;return React.createElement(React.Fragment,null,"computers"===t&&React.createElement(Qt,null),"shared-drives"===t&&React.createElement(Gt,null),"shared"===t&&React.createElement(Vt,null),"starred"===t&&React.createElement(qt,null))}function Jt(e){var t=e.isSearchResults;return React.createElement("div",{className:"igd-root-placeholder search-placeholder ".concat(t?"empty-placeholder":"")},t&&React.createElement("svg",{width:100,height:100,className:"igd-placeholder-svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 259 223",fill:"none"},React.createElement("g",{clipPath:"url(#clip0_1110_10155)"},React.createElement("path",{d:"M127.836 80.9443C127.836 103.828 127.836 126.64 127.836 149.523C127.836 157.696 124.072 161.391 115.905 161.391C81.2469 161.391 46.5181 161.391 11.8603 161.391C3.97712 161.391 0.07102 157.553 0.07102 149.665C0.07102 116.264 0.14204 82.8631 0 49.462C0 46.4062 1.0653 46.0509 3.62202 46.1219C12.4995 46.2641 21.377 46.193 30.2545 46.193C40.4104 46.193 46.092 40.4367 46.163 30.4164C46.163 21.3199 46.234 12.1524 46.092 3.05595C46.092 0.923972 46.3761 0.000114277 48.8618 0.0711803C71.5882 0.213312 94.3146 0.142246 117.041 0.142246C123.788 0.142246 127.836 4.19301 127.836 11.0153C127.907 34.2539 127.836 57.6346 127.836 80.9443ZM65.6935 103.046C76.9147 103.046 88.2069 103.046 99.428 103.046C103.689 103.046 105.891 101.34 105.891 98.2133C105.891 95.2285 103.689 93.4519 99.6411 93.4519C77.2698 93.4519 54.8985 93.4519 32.5272 93.4519C28.479 93.4519 26.2774 95.1575 26.2064 98.1423C26.1354 101.198 28.479 103.046 32.5982 103.046C43.6773 103.046 54.6854 103.046 65.6935 103.046ZM66.1196 67.6549C55.0405 67.6549 43.8904 67.6549 32.8112 67.6549C28.6211 67.6549 26.2774 69.3605 26.2774 72.4164C26.2774 75.4722 28.55 77.3199 32.7402 77.3199C54.9695 77.3199 77.1277 77.3199 99.357 77.3199C103.618 77.3199 105.891 75.6143 105.891 72.5585C105.891 69.4316 103.618 67.726 99.428 67.726C88.2779 67.6549 77.1988 67.6549 66.1196 67.6549ZM48.6487 117.756C43.1091 117.756 37.5696 117.685 32.03 117.756C28.266 117.756 26.2064 119.533 26.2774 122.518C26.2774 125.361 28.55 127.208 32.101 127.208C43.0381 127.208 54.0462 127.208 64.9833 127.208C68.5343 127.208 70.807 125.218 70.807 122.447C70.807 119.604 68.5343 117.828 64.9123 117.756C59.5148 117.756 54.0462 117.756 48.6487 117.756Z",fill:"#C1E9C9"}),React.createElement("path",{d:"M148.999 101.482C148.999 124.081 148.999 146.751 148.999 169.35C148.999 178.376 145.377 182 136.287 182C101.984 182 67.6104 182 33.3077 182C24.6433 182 20.4531 177.452 21.1633 168.924C21.3053 167.574 21.5894 166.934 23.0098 167.076C23.72 167.147 24.4302 167.076 25.1404 167.076C55.3239 167.076 85.5074 167.076 115.691 167.076C127.409 167.076 133.588 160.894 133.588 149.097C133.588 107.523 133.659 65.9494 133.517 24.3758C133.517 21.2489 134.298 20.4672 137.352 20.5383C145.164 20.8225 148.999 24.518 148.999 32.4774C148.999 55.5027 148.999 78.5281 148.999 101.482Z",fill:"#C1E9C9"}),React.createElement("path",{d:"M40.4817 18.6906C40.4817 22.9545 40.5527 27.2185 40.4817 31.4825C40.4106 36.9545 37.0727 40.4368 31.6752 40.5078C22.9397 40.5789 14.1332 40.5078 5.39776 40.5078C3.19614 40.5078 1.42064 39.8682 0.568403 37.6652C-0.212817 35.6043 0.710443 34.0408 2.13084 32.5484C12.2157 22.4571 22.3005 12.3657 32.4564 2.27433C33.9478 0.781945 35.5813 -0.355111 37.7829 0.639812C39.9135 1.56367 40.4817 3.34032 40.4817 5.54337C40.4106 9.87839 40.4817 14.2845 40.4817 18.6906Z",fill:"#C1E9C9"})),React.createElement("g",{clipPath:"url(#clip1_1110_10155)"},React.createElement("path",{d:"M148.9 79.6302C120.227 79.6302 91.6528 79.6302 62.9789 79.6302C51.4894 79.6302 46.8936 84.6083 48.4922 96.058C53.3877 132.199 58.4831 168.241 63.5784 204.382C64.5775 211.252 69.1733 214.935 76.9662 214.935C99.4456 215.035 121.925 214.935 144.405 214.935C169.382 214.935 194.359 214.935 219.336 214.935C221.035 214.935 222.633 214.935 224.332 215.234C226.33 215.632 227.529 217.026 227.529 219.117C227.429 221.208 226.23 222.502 224.232 222.801C222.733 223 221.234 222.9 219.736 222.9C172.779 222.9 125.822 222.9 78.8644 222.9C64.2778 222.9 57.484 217.126 55.4858 202.789C50.1906 166.747 45.1952 130.606 40.1997 94.5646C38.801 84.3096 44.4958 75.5482 54.5866 72.4617C56.2851 71.9639 57.2841 71.6652 57.7837 69.5744C59.682 62.3064 63.6783 59.6182 71.7709 59.5186C95.2495 59.5186 118.728 59.4191 142.207 59.6182C145.603 59.6182 147.801 58.8217 149.2 55.6357C150.199 53.2462 151.698 50.9563 153.097 48.7659C156.094 43.8873 160.49 41.0996 166.285 41.0996C187.465 41 208.546 40.9005 229.727 41.0996C236.62 41.1991 241.116 46.0777 241.416 52.8479C241.516 55.1379 241.516 57.5274 241.416 59.8173C241.216 66.3884 240.417 72.163 249.409 75.1499C256.902 77.639 259.799 85.7035 258.8 93.7681C255.203 121.347 251.207 148.926 247.411 176.504C247.011 179.292 245.912 181.582 242.915 181.283C239.418 180.985 239.018 178.197 239.418 175.31C241.916 157.588 244.413 139.865 246.811 122.143C248.21 112.486 249.609 102.828 250.807 93.0711C251.607 86.4005 247.411 80.9245 240.817 79.9289C238.818 79.6302 236.82 79.6302 234.822 79.6302C206.248 79.6302 177.574 79.6302 148.9 79.6302Z",fill:"#2FB44B"}),React.createElement("path",{d:"M225.431 149.025C225.331 153.904 223.632 161.072 219.536 167.444C218.037 169.834 218.237 171.228 220.235 173.219C230.126 182.777 239.818 192.634 249.509 202.391C253.205 206.074 253.705 209.659 251.007 212.347C248.31 215.035 244.813 214.537 241.116 210.853C231.525 201.395 222.034 191.937 212.542 182.379C210.444 180.188 209.046 179.491 206.048 181.383C190.962 191.14 171.48 190.144 157.593 179.292C143.605 168.34 138.11 150.22 143.506 133.394C148.901 116.667 164.486 105.118 182.57 104.521C205.549 103.724 225.431 123.039 225.431 149.025ZM183.569 176.106C200.254 176.007 213.542 162.566 213.342 145.939C213.242 129.71 199.454 116.269 183.269 116.468C166.684 116.568 153.297 130.208 153.496 146.735C153.596 163.063 167.084 176.206 183.569 176.106Z",fill:"#2FB44B"}),React.createElement("path",{d:"M107.738 171.427C112.933 171.427 118.029 171.228 123.224 171.427C128.519 171.626 131.316 174.613 131.516 179.89C131.616 182.18 131.616 184.569 131.516 186.859C131.316 191.937 128.519 195.023 123.524 195.222C112.933 195.421 102.243 195.421 91.6526 195.222C86.6572 195.123 83.8598 191.937 83.56 186.959C83.4601 184.967 83.56 182.976 83.56 180.985C83.6599 174.215 86.3575 171.526 93.3511 171.427C98.0468 171.327 102.842 171.327 107.738 171.427Z",fill:"#2FB44B"}),React.createElement("circle",{cx:"183",cy:"146",r:"30",fill:"white"}),React.createElement("rect",{width:"26.9682",height:"2.81029",transform:"matrix(0.708463 0.705748 0.708463 -0.705748 172.83 137.269)",fill:"#2FB44B"}),React.createElement("rect",{width:"27.6664",height:"2.81029",transform:"matrix(-0.708463 0.705748 0.708463 0.705748 191.885 135.286)",fill:"#2FB44B"})),React.createElement("defs",null,React.createElement("clipPath",{id:"clip0_1110_10155"},React.createElement("rect",{width:"149",height:"182",fill:"white"})),React.createElement("clipPath",{id:"clip1_1110_10155"},React.createElement("rect",{width:"219",height:"182",fill:"white",transform:"translate(40 41)"})))),t?React.createElement("h3",{className:"igd-root-placeholder-title"},wp.i18n.__("No results found!","integrate-google-drive")):React.createElement("h3",{className:"igd-root-placeholder-title"},wp.i18n.__("Search for files & content","integrate-google-drive")),!t&&React.createElement(ie,null))}var Xt=React.useContext;function Zt(){var e=Xt(t),n=e.files,i=e.searchKeywordRef,r=n.length?n.length:wp.i18n.__("No","integrate-google-drive"),a=wp.i18n.sprintf(wp.i18n.__('Search results for "%s": %s items found.',"integrate-google-drive"),"<strong>".concat(i.current,"</strong>"),r);return React.createElement("div",{className:"search-result-info"},React.createElement("span",{dangerouslySetInnerHTML:{__html:a}}),React.createElement("button",{onClick:function(e){document.querySelector(".search-dismiss").click()},className:"clear-button igd-btn btn-warning"},wp.i18n.__("Clear","integrate-google-drive")))}function $t(e){return $t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$t(e)}function en(e){return function(e){if(Array.isArray(e))return tn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return tn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tn(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function nn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function rn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nn(Object(n),!0).forEach((function(t){an(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function an(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==$t(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==$t(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===$t(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var on=React,ln=on.useRef,cn=on.useContext;function sn(){var e=document.querySelector(".igd-tutor-attachment-modal"),n=igd.settings,i=n.preloader,r=void 0===i?"default":i,a=n.rememberLastFolder,o=void 0===a||a,l=cn(t),c=l.isLoading,s=l.activeAccount,d=l.initFolders,u=l.initParentFolder,m=l.files,g=void 0===m?[]:m,p=l.setFiles,f=l.activeFiles,h=l.setActiveFiles,w=l.breadcrumbs,_=l.activeFolder,E=l.setActiveFolder,R=l.isShortcodeBuilder,N=l.selectedFolders,S=l.setSelectedFolders,C=l.isList,O=l.showLastModified,F=l.showFileSizeField,A=l.shortcodeBuilderType,x=l.isUpload,j=l.permissions,I=l.isSearchResults,T=l.isMobile,B=l.setIsOptions,U=l.setShouldRefresh,L=l.listFiles,M=l.show,H=l.hideAll,K=l.isSelectFiles,W=l.selectionType,V=l.setActiveFile,q=l.isLMS,G=l.isWooCommerce,Y=l.getFiles,J=l.notifications,X=l.lazyLoad,Z=l.lazyLoadNumber,$="browser"===A,ee="uploader"===A,te="gallery"===A,ne="embed"===A,ie="search"===A,re="media"===A,ae="view"===A,oe="download"===A,le="slider"===A,ce=ee&&N.length;N&&N.length&&K&&["single","parent","template"].includes(W)&&(ce=!0);var se=[!!$,!!re,!!le,!!te,!!ne,!!ae,!!oe,!!q,!!G,!!K&&!W].includes(!0),de=!(!_||k(_.id,s)&&s.root_id!==_.id),ue=ln(),me=function(e,t){var n=v(React.useState(t?"igd-item-col-1":"igd-item-col-4"),2),i=n[0],r=n[1];function a(e){if(t)r("igd-item-col-1");else{var n=e[0].contentRect.width,i={1:320,2:480,3:768,4:992,5:1200,6:1520},a="";if(n>1520)a="igd-item-col-6";else for(var o in i)if(n<i[o]){a="igd-item-col-".concat(o);break}r(a)}}return React.useEffect((function(){if(e.current){var t=new ResizeObserver(a);return t.observe(e.current),function(){t.disconnect()}}}),[e,t]),i}(ue,C);!R&&ie||!X||function(e,t,n,i,r,a,o){React.useEffect((function(){var o=e.current;if(o&&!n&&!r&&i&&i.pageNumber&&!(i.pageNumber<1)){var l=document.body.classList.contains("block-editor-page"),c=document.body.classList.contains("elementor-editor-active"),s=document.body.classList.contains("et-fb");if(!(l||c||s)||a){var d=function(e){for(var t=e.parentElement,n=null;t;)"div"===t.nodeName.toLowerCase()&&(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth)&&(n=t),t=t.parentElement;return n}(o),u=d?d.scrollTop:window.pageYOffset,m=function(){var e=d?d.scrollTop:window.pageYOffset,n=e>u;if(u=e,n)if(d)d.scrollHeight-e<=d.clientHeight&&t(i,"lazy");else{var r=o.getBoundingClientRect(),a=window.innerHeight||document.documentElement.clientHeight;r.bottom<=a+5&&t(i,"lazy")}},g=d||window;return g.addEventListener("scroll",m),function(){g.removeEventListener("scroll",m)}}}}),[e,t,n,i])}(ue,Y,c,_,I,R);var ge=w?Object.keys(w):[],pe=!1;return X&&(null==_?void 0:_.pageNumber)>0&&g.length<((null==_?void 0:_.pageNumber)-1)*Z&&E(rn(rn({},_),{},{pageNumber:0})),React.createElement("div",{ref:ue,className:"igd-body ".concat(c?"lazy"===c?"lazy-loading":"loading":"")},I&&!c&&React.createElement(Zt,null),(!te||R)&&React.createElement("div",{className:"file-list ".concat(C?"list-view":""," ").concat(me," ").concat(g.length||k(_,s)?"":"empty"),onClick:function(){var e=document.querySelector(".igd-context-menu")?300:0;setTimeout((function(){V(null),h([])}),e)},onContextMenu:function(e){e.preventDefault(),B(!1),h([]),k(_.id,s)&&s.root_id!==_.id||(V(_),M(e))}},!te&&C&&!!g.length&&(O||F)&&React.createElement("div",{className:"list-view-header"},React.createElement("span",{className:"col-name"},wp.i18n.__("Name","integrate-google-drive")),F&&React.createElement("span",{className:"col-size"},wp.i18n.__("Size","integrate-google-drive")),O&&React.createElement("span",{className:"col-modified"},wp.i18n.__("Modified","integrate-google-drive"))),(!_||!_&&!!d)&&(!ie||R)&&!I&&React.createElement(ye,null),(!ie||R)&&!!_&&!!ge.length&&React.createElement("div",{className:"go-prev file-item folder-item",onClick:function(e){if(V(null),d){if(ge.length>1){var t=ge[ge.length-2],n=[ge[ge.length-3]],i={id:t,name:w[t],accountId:s.id,parents:n};L(i)}else if(E(null),p(d),o){var r=z(d,u);r&&sessionStorage.removeItem(r)}}else if(ge.length>1){var a=ge[ge.length-2],l=[ge[ge.length-3]],c={id:a,name:w[a],accountId:s.id,parents:l};L(c)}else p([]),E(null)}},React.createElement("i",{className:"dashicons dashicons-arrow-left-alt2"}),React.createElement("span",null,wp.i18n.__("Previous folder","integrate-google-drive"))),!!g.length&&g.map((function(t,n){var i=t.id,r=t.name,a=t.type,o=t.iconLink,l=void 0===o?"":o,c=t.thumbnailLink,s=t.size,d=t.updated;if(i){var u=b(t),m=f.find((function(e){return e.id===i})),p=N&&!!N.find((function(e){return e.id===i})),v=R&&(se||u)&&(!q||!u)&&(!e||!u);ce&&(v=(N[0].id||N[0])===i);var w=null==l?void 0:l.replace("/16/","/64/"),_=P(t,"small"),E=!pe&&u&&!g.slice(n+1).some(b);return E&&(pe=!0),React.createElement(React.Fragment,null,E&&!C&&React.createElement("div",{className:"folder-file-divider"}),React.createElement("div",{key:i,"data-id":i,className:"file-item ".concat(u?"folder-item":"","  ").concat(E?"folder-item-last":""," ").concat(m||p?"active":""),onClick:function(e){e.stopPropagation(),H(),T?u?L(t):R?S([].concat(en(N),[t])):(V(t),D(e,i,g,j,J)):(e.detail&&1!=e.detail||R?u?L(t):R&&v&&S(p?en(N.filter((function(e){return e.id!=t.id}))):[].concat(en(N),[t])):(e.ctrlKey||e.shiftKey||e.metaKey)&&!ee?h((function(e){return e.find((function(e){return e.id===t.id}))?e.filter((function(e){return e.id!==t.id})):[].concat(en(e),[t])})):u?L(t):(V(t),D(e,i,g,j,J)),console.log(t))},onDoubleClick:function(e){e.stopPropagation(),R||(u?L(t):(V(t),D(e,i,g,j,J)))},onContextMenu:function(e){e.preventDefault(),e.stopPropagation(),H(),B(!1),t["shared-drives"]||R||(h([t]),V(t),M(e))},title:r},!u&&!C&&React.createElement("img",{referrerPolicy:"no-referrer",className:"igd-file-thumbnail ".concat(c?"has-thumbnail":""),src:_,loading:"lazy",onError:function(e){var t=e.target;t.classList.remove("has-thumbnail"),t.src!==w&&(t.src=w,U(!0))},alt:r}),React.createElement("div",{className:"file-item-footer"},React.createElement("div",{className:"file-icon-wrap"},React.createElement("img",{className:"file-icon",referrerPolicy:"no-referrer",src:w,alt:"icon"}),"application/vnd.google-apps.shortcut"===a&&React.createElement("svg",{className:"shortcut-icon",viewBox:"0 0 16 16",fill:"none",focusable:"false",xmlns:"http://www.w3.org/2000/svg",width:"16px",height:"16px"},React.createElement("circle",{cx:"8",cy:"8",r:"8",fill:"white"}),React.createElement("path",{d:"M10,3H6V4H8.15A5,5,0,0,0,10,13V12A4,4,0,0,1,9,4.65V7h1Z",fill:"#5F6368"})),!R&&(!j||j.download&&j.zipDownload)&&React.createElement("span",{className:"file-item-checkbox ".concat(m?"checked":""),onClick:function(e){e.stopPropagation(),h(m?function(e){return e.filter((function(e){return e.id!==t.id}))}:[].concat(en(f),[t]))}},React.createElement("span",{className:"box"}))),React.createElement("span",{className:"file-item-name"},r),F&&(C?React.createElement("span",{className:"file-item-size"},s?y(s):"—"):(!j||j.download)&&!u&&!!s&&React.createElement("span",{className:"file-item-size"},y(s))),!R&&React.createElement("span",{className:"file-item-options",onClick:function(e){e.stopPropagation(),B(!1),V(t),M(e)}},React.createElement("i",{className:"dashicons dashicons-ellipsis"}))),C&&O&&React.createElement("span",{className:"file-item-date"},Q(d,!0)),v&&React.createElement(he,{file:t,isSelected:p,selectedFolders:N,setSelectedFolders:S,isList:C})))}}))),!R&&te&&React.createElement(Wt,null),!c&&(d||_&&(!k(_.id,s)||_.id===s.root_id))&&!g.length&&(R||!te)&&(R||!ie)&&!I&&React.createElement(kt,null),!ie&&!I&&!R&&!te&&de&&x&&React.createElement(Be,null),!I&&!c&&!g.length&&_&&k(_.id,s)&&React.createElement(Yt,{activeFolder:_}),!c&&(!R&&ie||I)&&!g.length&&React.createElement(Jt,{isSearchResults:I}),c&&React.createElement("div",{className:"loading-wrap"},igd.settings.customPreloader?React.createElement("img",{src:igd.settings.customPreloader,alt:"Loading..."}):React.createElement("img",{src:"".concat(igd.pluginUrl,"/assets/images/preloader/").concat(r,".svg"),alt:"Loading..."})))}function dn(e){return dn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},dn(e)}function un(e){return function(e){if(Array.isArray(e))return hn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||vn(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function gn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mn(Object(n),!0).forEach((function(t){pn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pn(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==dn(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==dn(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===dn(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,a,o,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=a.call(n)).done)&&(l.push(i.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(e,t)||vn(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vn(e,t){if(e){if("string"==typeof e)return hn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?hn(e,t):void 0}}function hn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var wn=React,yn=wn.useContext,bn=wn.useState,_n=wn.useEffect;function En(){var e=yn(t),n=e.files,i=e.activeAccount,r=e.activeFile,a=e.setShowDetails,o=e.activeFolder,l=e.setFiles,c=e.listFiles,s=e.setAllFiles,d=e.initParentFolder,u=fn(bn(null),2),m=u[0],g=u[1],p=m||{},f=p.id,v=p.accountId,h=p.name,b=p.iconLink,_=p.type,E=p.size,R=p.owner,N=p.updated,S=p.created,C=p.description,O=p.parents,F=fn(bn(null),2),A=F[0],x=F[1],P=fn(bn(!1),2),j=P[0],I=P[1],D=fn(bn(""),2),T=D[0],B=D[1];_n((function(){g(null),r?g(r):o&&!k(o.id,i)&&g(o)}),[r,o]),_n((function(){if(null!=m&&m.parents){var e=m.parents[0];(null==o?void 0:o.id)!==e?(x("loading"),wp.ajax.post("igd_get_file",{id:e,accountId:v}).done((function(e){x(e)})).fail((function(e){console.log(e),x(null)}))):x(o)}else x(null)}),[m,o]);var U=null==b?void 0:b.replace("/16/","/64/"),L=[{key:"type",label:wp.i18n.__("Type","integrate-google-drive"),value:w(_)},{key:"size",label:wp.i18n.__("Size","integrate-google-drive"),value:E&&y(E)},{key:"owner",label:wp.i18n.__("Owner","integrate-google-drive"),value:R},{key:"updated",label:wp.i18n.__("Updated","integrate-google-drive"),value:N&&Q(N)},{key:"created",label:wp.i18n.__("Created","integrate-google-drive"),value:S&&Q(S)}];return React.createElement("div",{className:"igd-details-wrap"},React.createElement("div",{className:"igd-details"},React.createElement("i",{className:"close-details dashicons dashicons-no",onClick:function(){a(!1),localStorage.removeItem("igd_show_details")}}),m&&!k(m.id,i)?React.createElement(React.Fragment,null,React.createElement("div",{className:"details-item name"},React.createElement("img",{src:U}),React.createElement("span",null,h)),L.map((function(e){var t=e.key,n=e.label,i=e.value;if(i)return React.createElement("div",{key:t,className:"details-item field-".concat(t)},React.createElement("span",{className:"details-item-label"},n),React.createElement("span",{className:"details-item-value"},i))})),!(null==O||!O.length)&&o&&o.id!==(null==d?void 0:d.id)&&React.createElement("div",{className:"details-item field-location"},React.createElement("span",{className:"details-item-label"},wp.i18n.__("Location","integrate-google-drive")),A&&React.createElement("div",{className:"details-item-value"},"loading"===A?React.createElement("span",{className:"igd-spinner"}):React.createElement("div",{className:"location-wrap",onClick:function(){c(A)}},React.createElement("img",{src:A.iconLink}),React.createElement("span",null,A.name)))),React.createElement("div",{className:"details-item field-description"},React.createElement("span",{className:"details-item-label"},wp.i18n.__("Description","integrate-google-drive")),React.createElement("i",{className:"dashicons ".concat(j?"dashicons-saved":"dashicons-edit"),onClick:function(){j?(!function(){var e=n.map((function(e){return e.id===f?gn(gn({},e),{},{description:T}):e}));l(un(e)),g(gn(gn({},m),{},{description:T})),s((function(t){return gn(gn({},t),{},pn({},null==o?void 0:o.id,un(e)))})),wp.ajax.post("igd_update_description",{id:f,accountId:v,description:T}).done((function(){Swal.close(),Swal.fire({title:wp.i18n.__("Updated!","integrate-google-drive"),text:wp.i18n.__("Description has been updated.","integrate-google-drive"),icon:"success",showConfirmButton:!1,timer:2e3,timerProgressBar:!0,toast:!0,customClass:{container:"igd-swal"},position:"top-end"})}))}(),I(!1)):(I(!0),B(C))}}),!j&&(C?React.createElement("span",{className:"details-item-value"},C):React.createElement("span",{className:"description-placeholder"},wp.i18n.__("Add description","integrate-google-drive"))),j&&React.createElement("textarea",{onChange:function(e){return B(e.target.value)},value:T,rows:4}))):React.createElement("div",{className:"details-placeholder"},React.createElement("i",{className:"dashicons dashicons-pressthis"}),React.createElement("span",null,wp.i18n.__("Select a file or folder to view its details.","integrate-google-drive")))))}function Rn(e){var t,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Rn(e[t]))&&(i&&(i+=" "),i+=n);else for(t in e)e[t]&&(i&&(i+=" "),i+=t);return i}const Nn=function(){for(var e,t,n=0,i="";n<arguments.length;)(e=arguments[n++])&&(t=Rn(e))&&(i&&(i+=" "),i+=t);return i};var Sn=n(155);function Cn(){return Cn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Cn.apply(this,arguments)}function On(e,t){if(null==e)return{};var n,i,r={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}var kn=(0,Ue.createContext)({});function Fn(){return(0,Ue.useContext)(kn)}var An=function(e){return Le().createElement(kn.Provider,{value:e.refTracker},e.children)};function xn(){var e=new Map;return{on:function(t,n){var i;return e.has(t)?null==(i=e.get(t))||i.add(n):e.set(t,new Set([n])),this},off:function(t,n){return n?e.get(t).delete(n):e.delete(t),this},emit:function(t,n){if("production"!==Sn.env.NODE){var i=t;e.has(t)||0===i||console.error("It seems that the menu you are trying to display is not renderer or you have a menu id mismatch.","You used the menu id: "+t)}return e.has(t)&&e.get(t).forEach((function(e){e(n)})),this}}}var Pn=xn();function jn(){return(0,Ue.useRef)(new Map).current}var In={show:function(e){var t=e.id,n=e.event,i=e.props,r=e.position;n.preventDefault&&n.preventDefault(),Pn.emit(0).emit(t,{event:n.nativeEvent||n,props:i,position:r})},hideAll:function(){Pn.emit(0)}};function Dn(){var e,t,n,i,r=new Map,a=!1;function o(){i[e].node.focus()}function l(){return-1!==e||(c(),!1)}function c(){e+1<i.length?e++:e+1===i.length&&(e=0),a&&s(),o()}function s(){if(l()&&!n){var c=r.get(t),s=c.isRoot,d=c.items,u=c.focusedIndex,m=c.parentNode;t.classList.remove("react-contexify__submenu--is-open"),i=d,t=m,s&&(n=!0,r.clear()),a||(e=u,o())}}return{init:function(t){i=t,e=-1,n=!0},moveDown:c,moveUp:function(){-1===e||0===e?e=i.length-1:e-1<i.length&&e--,a&&s(),o()},openSubmenu:function(){if(l()&&e>=0&&i[e].isSubmenu){var c=Array.from(i[e].submenuRefTracker.values()),s=i[e].node;return r.set(s,{isRoot:n,focusedIndex:e,parentNode:t||s,items:i}),s.classList.add("react-contexify__submenu--is-open"),t=s,c.length>0?(e=0,i=c):a=!0,n=!1,o(),!0}return!1},closeSubmenu:s}}var Tn={fade:"fade",flip:"flip",scale:"scale",slide:"slide"},Bn=function(){};function Un(e){return"function"==typeof e}function Ln(e){return"string"==typeof e}function Mn(e,t){return Ue.Children.map(Ue.Children.toArray(e).filter(Boolean),(function(e){return(0,Ue.cloneElement)(e,t)}))}function zn(e,t){return Un(e)?e(t):e}function Hn(e,t){return Un(t)?Cn({},e,t(e)):Cn({},e,t)}var Kn=function(e){var t,n,i,r=e.id,a=e.theme,o=e.style,l=e.className,c=e.children,s=e.animation,d=void 0===s?"scale":s,u=e.onHidden,m=void 0===u?Bn:u,g=e.onShown,p=void 0===g?Bn:g,f=On(e,["id","theme","style","className","children","animation","onHidden","onShown"]),v=(0,Ue.useReducer)(Hn,{x:0,y:0,visible:!1,triggerEvent:{},propsFromTrigger:null,willLeave:!1}),h=v[0],w=v[1],y=(0,Ue.useRef)(null),b=(0,Ue.useRef)(!1),_=(n=h.visible,i=(0,Ue.useRef)(),(0,Ue.useEffect)((function(){i.current=n}),[n]),i.current),E=jn(),R=(0,Ue.useState)((function(){return Dn()}))[0];function N(e){var t=e.event,n=e.props,i=e.position;t.stopPropagation();var r,a,o=i||(a={x:0,y:0},function(e){return"touchend"===e.type}(r=t)&&r.changedTouches&&r.changedTouches.length>0?(a.x=r.changedTouches[0].clientX,a.y=r.changedTouches[0].clientY):(a.x=r.clientX,a.y=r.clientY),(!a.x||a.x<0)&&(a.x=0),(!a.y||a.y<0)&&(a.y=0),a),l=o.x,c=o.y;setTimeout((function(){w({visible:!0,willLeave:!1,x:l,y:c,triggerEvent:t,propsFromTrigger:n})}),0)}function S(e){var t=e;(void 0===t||2!==t.button&&!0!==t.ctrlKey||"contextmenu"===t.type)&&(!function(e){return!(!e||!(Ln(e)||"exit"in e&&e.exit))}(d)?w((function(e){return{visible:!e.visible&&e.visible}})):w((function(e){return{willLeave:e.visible}})))}(0,Ue.useEffect)((function(){return b.current=!0,Pn.on(r,N).on(0,S),function(){Pn.off(r,N).off(0,S)}}),[r]),(0,Ue.useEffect)((function(){b.current&&h.visible!==_&&(h.visible?p():m())}),[h.visible,m,p]),(0,Ue.useEffect)((function(){h.visible?R.init(Array.from(E.values())):E.clear()}),[h.visible,R,E]),(0,Ue.useEffect)((function(){if(h.visible){var e=window,t=e.innerWidth,n=e.innerHeight,i=y.current,r=i.offsetWidth,a=i.offsetHeight,o=h.x,l=h.y;o+r>t&&(o-=o+r-t),l+a>n&&(l-=l+a-n),w({x:o,y:l})}}),[h.visible]),(0,Ue.useEffect)((function(){function e(e){switch(e.preventDefault(),e.key){case"Enter":R.openSubmenu()||S();break;case"Escape":S();break;case"ArrowUp":R.moveUp();break;case"ArrowDown":R.moveDown();break;case"ArrowRight":R.openSubmenu();break;case"ArrowLeft":R.closeSubmenu()}}return h.visible&&(window.addEventListener("resize",S),window.addEventListener("contextmenu",S),window.addEventListener("click",S),window.addEventListener("scroll",S),window.addEventListener("keydown",e),window.addEventListener("blur",S)),function(){window.removeEventListener("resize",S),window.removeEventListener("contextmenu",S),window.removeEventListener("click",S),window.removeEventListener("scroll",S),window.removeEventListener("keydown",e),window.removeEventListener("blur",S)}}),[h.visible,R]);var C,O,k=h.visible,F=h.triggerEvent,A=h.propsFromTrigger,x=h.x,P=h.y,j=h.willLeave,I=Nn("react-contexify",l,((t={})["react-contexify__theme--"+a]=a,t),d?Ln(d)?Nn(((C={})["react-contexify__will-enter--"+d]=d&&k&&!j,C["react-contexify__will-leave--"+d+" react-contexify__will-leave--'disabled'"]=d&&k&&j,C)):"enter"in d&&"exit"in d?Nn(((O={})["react-contexify__will-enter--"+d.enter]=d.enter&&k&&!j,O["react-contexify__will-leave--"+d.exit+" react-contexify__will-leave--'disabled'"]=d.exit&&k&&j,O)):null:null),D=Cn({},o,{left:x,top:P,opacity:1});return Le().createElement(An,{refTracker:E},k&&Le().createElement("div",Object.assign({},f,{className:I,onAnimationEnd:function(){h.willLeave&&h.visible&&w({visible:!1,willLeave:!1})},style:D,ref:y,role:"menu"}),Mn(c,{propsFromTrigger:A,triggerEvent:F})))},Wn=function(e){var t,n=e.children,i=e.className,r=e.style,a=e.triggerEvent,o=e.data,l=e.propsFromTrigger,c=e.onClick,s=void 0===c?Bn:c,d=e.disabled,u=void 0!==d&&d,m=e.hidden,g=void 0!==m&&m,p=On(e,["children","className","style","triggerEvent","data","propsFromTrigger","onClick","disabled","hidden"]),f=Fn(),v={data:o,triggerEvent:a,props:l},h=zn(u,v);if(zn(g,v))return null;var w=Nn("react-contexify__item",i,((t={})["react-contexify__item--disabled"]=h,t));return Le().createElement("div",Object.assign({},p,{className:w,style:r,onClick:function(e){v.event=e,h?e.stopPropagation():s(v)},onKeyDown:function(e){"Enter"===e.key&&(v.event=e,s(v))},ref:function(e){e&&!h&&f.set(e,{node:e,isSubmenu:!1})},tabIndex:-1,role:"menuitem","aria-disabled":h}),Le().createElement("div",{className:"react-contexify__item__content"},n))};var Qn=function(e){var t,n=e.arrow,i=void 0===n?"▶":n,r=e.children,a=e.disabled,o=void 0!==a&&a,l=e.hidden,c=void 0!==l&&l,s=e.label,d=e.className,u=e.triggerEvent,m=e.propsFromTrigger,g=e.style,p=On(e,["arrow","children","disabled","hidden","label","className","triggerEvent","propsFromTrigger","style"]),f=Fn(),v=jn(),h=(0,Ue.useRef)(null),w=(0,Ue.useState)({left:"100%",top:0,bottom:"initial"}),y=w[0],b=w[1],_={triggerEvent:u,props:m},E=zn(o,_),R=zn(c,_);if((0,Ue.useEffect)((function(){if(h.current){var e=window,t=e.innerWidth,n=e.innerHeight,i=h.current.getBoundingClientRect(),r={};i.right<t?(r.left="100%",r.right=void 0):(r.right="100%",r.left=void 0),i.bottom>n?(r.bottom=0,r.top="initial"):r.bottom="initial",b(r)}}),[]),R)return null;var N=Nn("react-contexify__item",d,((t={})["react-contexify__item--disabled"]=E,t)),S=Cn({},g,y);return Le().createElement(An,{refTracker:v},Le().createElement("div",Object.assign({},p,{className:N,ref:function(e){e&&!E&&f.set(e,{node:e,isSubmenu:!0,submenuRefTracker:v})},tabIndex:-1,role:"menuitem","aria-haspopup":!0,"aria-disabled":E}),Le().createElement("div",{className:"react-contexify__item__content",onClick:function(e){e.stopPropagation()}},s,Le().createElement("span",{className:"react-contexify__submenu-arrow"},i)),Le().createElement("div",{className:"react-contexify react-contexify__submenu",ref:h,style:S},Mn(r,{propsFromTrigger:m,triggerEvent:u}))))};function Vn(e){return Vn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vn(e)}function qn(e){return function(e){if(Array.isArray(e))return $n(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Zn(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Gn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Yn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gn(Object(n),!0).forEach((function(t){Jn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Jn(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Vn(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==Vn(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Vn(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,a,o,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=a.call(n)).done)&&(l.push(i.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(e,t)||Zn(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Zn(e,t){if(e){if("string"==typeof e)return $n(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$n(e,t):void 0}}function $n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var ei=React,ti=ei.useState,ni=ei.useEffect;function ii(e){var t=e.files,n=e.setFiles,i=e.allFiles,r=e.setAllFiles,a=e.activeAccount,o=e.initFolders,l=Xn(ti(null),2),c=l[0],s=l[1],d=Xn(ti(null),2),u=d[0],m=d[1],g=Xn(ti(null),2),p=g[0],f=g[1],v=Xn(ti([]),2),h=v[0],w=v[1],y=Xn(ti(!1),2),_=y[0],R=y[1],N=t.map((function(e){return e.id})),S=t.map((function(e){return e.parents[0]}));function C(e){return s(e.id),wp.ajax.post("igd_get_files",{data:{folder:e}}).done((function(t){var n=t.files;n=n.filter((function(e){return b(e)})),m((function(t){return Yn(Yn({},t),{},Jn({},e.id,n))}))})).fail((function(e){console.log(e)})).always((function(){s(null)}))}ni((function(){var e={id:a.root_id,accountId:a.id};C(e).then((function(t){w([e])}))}),[]);var O=!!p&&(N.includes(p.id)||S.includes(p.id));p&&["computers","shared","starred","shared-drives"].includes(p.id)&&(O=!0),p&&a.root_id===p.id&&S.includes(a.root_id)&&(O=!0);var k=E(!1,a);return o&&(k=o.filter((function(e){return b(e)}))),React.createElement("div",{className:"move-folders-wrap"},React.createElement("div",{className:"move-folders"},k.map((function(e){var t=e.id,n=e.name,i=e.iconLink,r=h.find((function(e){return e.id===t})),a=!!p&&p.id===t;return React.createElement(React.Fragment,null,React.createElement("div",{key:t,className:"move-folder ".concat(a?"active":""),onClick:function(){f(a?null:e)}},React.createElement("i",{className:"dashicons dashicons-arrow-".concat(r?"down":"right"),onClick:function(n){n.stopPropagation(),w((function(n){return r?n.filter((function(e){return e.id!==t})):[].concat(qn(n),[e])})),r||u&&u[t]||C(e)}}),React.createElement("img",{src:i,alt:n}),React.createElement("div",{className:"file-item-checkbox ".concat(a?"checked":"")},React.createElement("span",{className:"box"})),React.createElement("span",null,n),c===t&&React.createElement("div",{className:"igd-spinner"})),r&&React.createElement(ri,{folders:u[t]?u[t]:[],childFolders:u,selectedFolder:p,setSelectedFolder:f,getFolders:C,openFolders:h,setOpenFolders:w,loading:c}))}))),React.createElement("button",{disabled:O,type:"button",className:"igd-btn ".concat(O?"disabled":"btn-primary"),onClick:function(){R(!0),wp.ajax.post("igd_move_file",{file_ids:N,folder_id:p.id,account_id:p.accountId}).done((function(e){if(n((function(e){return e.filter((function(e){return!N.includes(e.id)}))})),i[p.id]){var a=[].concat(qn(i[p.id]),qn(t));r((function(e){return Yn(Yn({},e),{},Jn({},p.id,a))}))}Swal.fire({title:wp.i18n.__("Success","integrate-google-drive"),text:wp.i18n.__("File(s) moved successfully","integrate-google-drive"),icon:"success",toast:!0,showConfirmButton:!1,timer:2e3,timerProgressBar:!0})})).fail((function(e){console.log(e),Swal.fire({title:wp.i18n.__("Error","integrate-google-drive"),text:wp.i18n.__("Error moving file(s)","integrate-google-drive"),icon:"error",toast:!0,showConfirmButton:!1,timer:3e3,timerProgressBar:!0})})).always((function(){R(!1)}))}},_&&React.createElement("div",{className:"igd-spinner"}),_?wp.i18n.__("Moving...","integrate-google-drive"):wp.i18n.__("Move","integrate-google-drive")))}function ri(e){var t=e.folders,n=e.childFolders,i=e.selectedFolder,r=e.setSelectedFolder,a=e.getFolders,o=e.openFolders,l=e.setOpenFolders,c=e.loading;return t.length?t.map((function(e){var t=o.find((function(t){return t.id===e.id})),s=!!i&&i.id===e.id;return React.createElement("div",{key:e.id,className:"move-folder-wrap"},React.createElement("div",{className:"move-folder ".concat(s?"active":""),onClick:function(){r(s?null:e)}},React.createElement("i",{className:"dashicons dashicons-arrow-".concat(t?"down":"right"),onClick:function(i){i.stopPropagation(),l(t?function(t){return t.filter((function(t){return t.id!==e.id}))}:function(t){return[].concat(qn(t),[e])}),t||n&&n[e.id]||a(e)}}," "),React.createElement("img",{src:e.iconLink,alt:e.name}),React.createElement("div",{className:"file-item-checkbox ".concat(s?"checked":"")},React.createElement("span",{className:"box"})),React.createElement("span",null,e.name),c===e.id&&React.createElement("div",{className:"igd-spinner"})),t&&n[e.id]&&React.createElement(ri,{folders:n[e.id],childFolders:n,getFolders:a,setSelectedFolder:r,selectedFolder:i,openFolders:o,setOpenFolders:l,loading:c}))})):!c&&React.createElement("div",{className:"move-folder-wrap empty"},React.createElement("i",{className:"dashicons dashicons-warning"}),React.createElement("span",null,wp.i18n.__("No folders found!","integrate-google-drive")))}function ai(e){return ai="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ai(e)}function oi(e){return function(e){if(Array.isArray(e))return mi(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ui(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function li(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function ci(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?li(Object(n),!0).forEach((function(t){si(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):li(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function si(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==ai(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==ai(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ai(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function di(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,a,o,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=a.call(n)).done)&&(l.push(i.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(e,t)||ui(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ui(e,t){if(e){if("string"==typeof e)return mi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?mi(e,t):void 0}}function mi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var gi=React,pi=gi.useState,fi=gi.useEffect;function vi(e){var t=e.files,n=e.allFiles,i=e.setAllFiles,r=e.activeAccount,a=e.initFolders,o=di(pi(null),2),l=o[0],c=o[1],s=di(pi(null),2),d=s[0],u=s[1],m=di(pi(null),2),g=m[0],p=m[1],f=di(pi([]),2),v=f[0],h=f[1],w=di(pi(!1),2),y=w[0],_=w[1];function R(e){return c(e.id),wp.ajax.post("igd_get_files",{data:{folder:e}}).done((function(t){var n=t.files;n=n.filter((function(e){return b(e)})),u((function(t){return ci(ci({},t),{},si({},e.id,n))}))})).fail((function(e){console.log(e)})).always((function(){c(null)}))}fi((function(){var e={id:r.root_id,accountId:r.id};R(e).then((function(t){h([e])}))}),[]);var N=!1;g&&["computers","shared","starred","shared-drives"].includes(g.id)&&(N=!0);var S=E(!1,r);return a&&(S=a.filter((function(e){return b(e)}))),React.createElement("div",{className:"move-folders-wrap"},React.createElement("div",{className:"move-folders"},S.map((function(e){var t=e.id,n=e.name,i=e.iconLink,r=v.find((function(e){return e.id===t})),a=!!g&&g.id===t;return React.createElement(React.Fragment,null,React.createElement("div",{key:t,className:"move-folder ".concat(a?"active":""),onClick:function(){p(a?null:e)}},React.createElement("i",{className:"dashicons dashicons-arrow-".concat(r?"down":"right"),onClick:function(n){n.stopPropagation(),h((function(n){return r?n.filter((function(e){return e.id!==t})):[].concat(oi(n),[e])})),r||d&&d[t]||R(e)}}),React.createElement("img",{src:i,alt:n}),React.createElement("div",{className:"file-item-checkbox ".concat(a?"checked":"")},React.createElement("span",{className:"box"})),React.createElement("span",null,n),l===t&&React.createElement("div",{className:"igd-spinner"})),r&&React.createElement(hi,{folders:d[t]?d[t]:[],childFolders:d,selectedFolder:g,setSelectedFolder:p,getFolders:R,openFolders:v,setOpenFolders:h,loading:l}))}))),React.createElement("button",{disabled:N,type:"button",className:"igd-btn ".concat(N?"disabled":"btn-primary"),onClick:function(){_(!0),wp.ajax.post("igd_copy_file",{files:t,folder_id:g.id}).done((function(e){if(Swal.fire({title:wp.i18n.__("Success","integrate-google-drive"),text:wp.i18n.__("File(s) copied successfully","integrate-google-drive"),icon:"success",toast:!0,showConfirmButton:!1,timer:2e3,timerProgressBar:!0}),n[g.id]){var t=[].concat(oi(n[g.id]),oi(e));i((function(e){return ci(ci({},e),{},si({},g.id,t))}))}})).fail((function(e){console.log(e),Swal.fire({title:wp.i18n.__("Error","integrate-google-drive"),text:wp.i18n.__("Error copying file(s)","integrate-google-drive"),icon:"error",toast:!0,showConfirmButton:!1,timer:3e3,timerProgressBar:!0})})).always((function(){_(!1)}))}},y&&React.createElement("div",{className:"igd-spinner"}),y?wp.i18n.sprintf(wp.i18n.__("Copying %s files","integrate-google-drive"),t.length):wp.i18n.__("Copy","integrate-google-drive")))}function hi(e){var t=e.folders,n=e.childFolders,i=e.selectedFolder,r=e.setSelectedFolder,a=e.getFolders,o=e.openFolders,l=e.setOpenFolders,c=e.loading;return t.length?t.map((function(e){var t=o.find((function(t){return t.id===e.id})),s=!!i&&i.id===e.id;return React.createElement("div",{key:e.id,className:"move-folder-wrap"},React.createElement("div",{className:"move-folder ".concat(s?"active":""),onClick:function(){r(s?null:e)}},React.createElement("i",{className:"dashicons dashicons-arrow-".concat(t?"down":"right"),onClick:function(i){i.stopPropagation(),l(t?function(t){return t.filter((function(t){return t.id!==e.id}))}:function(t){return[].concat(oi(t),[e])}),t||n&&n[e.id]||a(e)}}," "),React.createElement("img",{src:e.iconLink,alt:e.name}),React.createElement("div",{className:"file-item-checkbox ".concat(s?"checked":"")},React.createElement("span",{className:"box"})),React.createElement("span",null,e.name),c===e.id&&React.createElement("div",{className:"igd-spinner"})),t&&n[e.id]&&React.createElement(hi,{folders:n[e.id],childFolders:n,getFolders:a,setSelectedFolder:r,selectedFolder:i,openFolders:o,setOpenFolders:l,loading:c}))})):!c&&React.createElement("div",{className:"move-folder-wrap empty"},React.createElement("i",{className:"dashicons dashicons-warning"}),React.createElement("span",null,wp.i18n.__("No folders found!","integrate-google-drive")))}function wi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,a,o,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=a.call(n)).done)&&(l.push(i.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return yi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yi(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var bi=React,_i=bi.useState,Ei=bi.useEffect;function Ri(e){var t=e.file,n=e.isDirectLink,i=t.id,r=t.name,a=t.accountId,o=t.type;function l(e){var t=jQuery(e.target).parents("#igd-share-modal").find(".share-link input").val();function n(e){var t=document.createElement("textarea");t.value=e,document.body.appendChild(t),t.focus(),t.select(),document.execCommand("Copy"),t.remove()}function i(){Swal.fire({title:wp.i18n.__("Copied","integrate-google-drive"),text:wp.i18n.__("Link copied to clipboard","integrate-google-drive"),icon:"success",showConfirmButton:!1,timer:2e3,timerProgressBar:!0,toast:!0})}navigator.clipboard&&window.isSecureContext?navigator.clipboard.writeText(t).then((function(){i()})).catch((function(){n(t),i()})):(n(t),i())}var c=B(JSON.stringify({id:i,accountId:a,type:o,name:r})),s=n?"".concat(igd.homeUrl,"/?direct_file=").concat(c):null,d=n?"".concat(igd.homeUrl,"/?direct_file=").concat(c,"&embed=1"):null,u=wi(_i(s),2),m=u[0],g=u[1],p=wi(_i(d),2),f=p[0],v=p[1];Ei((function(){n||(Swal.showLoading(),wp.ajax.send("igd_get_share_link",{data:{file:t},success:function(e){g(e.viewLink),v(e.embedLink)},error:function(e){console.log(e),Swal.fire({title:wp.i18n.__("Error!","integrate-google-drive"),text:e.message,icon:"error",showConfirmButton:!0,confirmButtonText:wp.i18n.__("OK","integrate-google-drive"),customClass:{container:"igd-swal"}})}}).done((function(){Swal.hideLoading()})))}),[]);var h=wi(_i("link"),2),w=h[0],y=h[1],b=igd.settings.channels,_=void 0===b?["shareLink","embedCode","email"]:b;return m&&React.createElement(React.Fragment,null,React.createElement("div",{className:"share-link"},"link"===w?React.createElement("input",{type:"text",value:m,readOnly:!0,onClick:l}):React.createElement("textarea",{readOnly:!0,onClick:function(){document.querySelector(".share-link textarea").select(),document.execCommand("copy"),setTimeout((function(){Swal.fire({title:wp.i18n.__("Copied!","integrate-google-drive"),text:wp.i18n.__("Embed code copied to clipboard.","integrate-google-drive"),icon:"success",showConfirmButton:!1,timer:2e3,timerProgressBar:!0,toast:!0})}),500)}},'<iframe src="'.concat(f,'" width="100%" height="480" frameBorder="0" allowTransparency="true" allow="encrypted-media" frameborder="0" allowfullscreen="true" mozallowfullscreen="true" webkitallowfullscreen="true"></iframe>'))),React.createElement("div",{className:"share-links"},_.includes("shareLink")&&React.createElement("div",{className:"share-item link",onClick:function(e){y("link"),l(e)}},React.createElement("i",{className:"dashicons dashicons-admin-links"}),React.createElement("span",null,wp.i18n.__("Copy Link","integrate-google-drive"))),_.includes("embedCode")&&React.createElement("div",{className:"share-item embed",onClick:function(){return y("embed")}},React.createElement("i",{className:"dashicons dashicons-editor-code"}),React.createElement("span",null,wp.i18n.__("Embed","integrate-google-drive"))),_.includes("email")&&React.createElement("a",{className:"share-item email",href:"mailto:?subject=".concat(r,"&body=").concat(m),onClick:function(){return y("link")}},React.createElement("i",{className:"dashicons dashicons-email"}),React.createElement("span",null,wp.i18n.__("Email","integrate-google-drive"))),_.includes("facebook")&&React.createElement("a",{className:"share-item facebook",href:"https://www.facebook.com/sharer/sharer.php?u=".concat(m),target:"_blank",onClick:function(){return y("link")}},React.createElement("i",{className:"dashicons dashicons-facebook"}),React.createElement("span",null,wp.i18n.__("Facebook","integrate-google-drive"))),_.includes("twitter")&&React.createElement("a",{className:"share-item twitter",href:"https://twitter.com/intent/tweet?text=".concat(r,"&url=").concat(m),target:"_blank",onClick:function(){return y("link")}},React.createElement("i",{className:"dashicons dashicons-twitter"}),React.createElement("span",null,wp.i18n.__("Twitter","integrate-google-drive"))),_.includes("whatsapp")&&React.createElement("a",{className:"share-item whatsapp",href:"https://wa.me/?text=".concat(m),target:"_blank",onClick:function(){return y("link")}},React.createElement("i",{className:"dashicons dashicons-whatsapp"}),React.createElement("span",null,wp.i18n.__("WhatsApp","integrate-google-drive")))))}var Ni=React,Si=Ni.useEffect,Ci=Ni.useRef,Oi=ReactDOM.createPortal;const ki=function(e){var t=e.children,n=Ci(document.createElement("div"));return Si((function(){return document.body.appendChild(n.current),function(){return document.body.removeChild(n.current)}}),[]),Oi(t,n.current)};function Fi(e){return Fi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fi(e)}function Ai(e){return function(e){if(Array.isArray(e))return xi(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return xi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xi(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function Pi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function ji(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pi(Object(n),!0).forEach((function(t){Ii(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ii(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Fi(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==Fi(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Fi(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Di=React.useContext;function Ti(){var e=Di(t),n=e.activeAccount,i=e.getFiles,r=e.activeFiles,a=e.setActiveFiles,o=e.activeFile,l=e.activeFolder,c=e.permissions,s=e.notifications,d=e.shortcodeBuilderType,u=e.isOptions,m=e.setIsOptions,g=e.isList,p=e.setIsList,f=e.setShowDetails,v=e.setIsUpload,h=e.isShortcodeBuilder,w=e.contextMenuId,_=e.selectAll,E=e.setSelectAll,R=e.files,N=e.setFiles,S=e.setAllFiles,C=e.allFiles,O=e.initFolders,F=e.initParentFolder,A="search"===d,x="gallery"===d,P="uploader"===d,I=o&&l&&o.id===l.id,T=function(){return I||!o||b(o)?1!==r.length||b(r[0])?u?r:[o]:[r[0]]:[o]},U=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=e?wp.i18n.__("Direct Link","integrate-google-drive"):wp.i18n.__("Share","integrate-google-drive");Swal.fire({title:t,html:'<div id="igd-share-modal"></div>',didOpen:function(){var t=document.getElementById("igd-share-modal");ReactDOM.render(React.createElement(Ri,{file:o,isDirectLink:e}),t)},showCloseButton:!0,showConfirmButton:!1,showCancelButton:!1,customClass:{container:"igd-swal share-modal"}})},L=o&&o.permissions?o.permissions:{},M=!!L.canEdit,z=!!L.canPreview,K=!!L.canRename;c&&(c.refresh=!0,c.selectAll=c.download&&c.zipDownload);var W=[{key:"doc",title:wp.i18n.__("Google Doc","integrate-google-drive"),icon:"dashicons-media-document"},{key:"sheet",title:wp.i18n.__("Google Sheet","integrate-google-drive"),icon:"dashicons-media-spreadsheet"},{key:"slide",title:wp.i18n.__("Google Slide","integrate-google-drive"),icon:"dashicons-media-interactive"}],Q=[{key:"refresh",title:wp.i18n.__("Refresh","integrate-google-drive"),icon:"dashicons-update-alt"},{key:"newFolder",title:wp.i18n.__("New Folder","integrate-google-drive"),icon:"dashicons-open-folder"},{key:"createDoc",title:wp.i18n.__("Create Document","integrate-google-drive"),icon:"dashicons-welcome-add-page"},{key:"upload",title:wp.i18n.__("Upload Files","integrate-google-drive"),icon:"dashicons-cloud-upload"},{key:"preview",title:c&&!1===c.inlinePreview?wp.i18n.__("Preview in a new window","integrate-google-drive"):wp.i18n.__("Preview","integrate-google-drive"),icon:"dashicons-visibility"},{key:"drive",title:wp.i18n.__("Open in Google Drive","integrate-google-drive"),icon:"dashicons-admin-links"},{key:"details",title:wp.i18n.__("View Details","integrate-google-drive"),icon:"dashicons-info-outline"},{key:"directLink",title:wp.i18n.__("Direct Link","integrate-google-drive"),icon:"dashicons-admin-links"},{key:"share",title:wp.i18n.__("Share","integrate-google-drive"),icon:"dashicons-share"},{key:"selectAll",title:_?wp.i18n.__("Deselect All","integrate-google-drive"):wp.i18n.__("Select All","integrate-google-drive"),icon:"dashicons-screenoptions"},{key:"edit",title:wp.i18n.__("Edit (New Window)","integrate-google-drive"),icon:"dashicons-edit-page"},{key:"download",title:wp.i18n.__("Download","integrate-google-drive")+"".concat(u&&r.length>1?" (".concat(r.length,")"):""),icon:"dashicons-download"},{key:"import",title:wp.i18n.__("Import to Media","integrate-google-drive")+"".concat(u&&r.length>1?" (".concat(r.length,")"):""),icon:"dashicons-migrate"},{key:"move",title:wp.i18n.__("Move","integrate-google-drive")+"".concat(u&&r.length>1?" (".concat(r.length,")"):""),icon:"dashicons-editor-break"},{key:"rename",title:wp.i18n.__("Rename","integrate-google-drive"),icon:"dashicons-edit"},{key:"copy",title:wp.i18n.__("Copy","integrate-google-drive")+"".concat(u&&r.length>1?" (".concat(r.length,")"):""),icon:"dashicons-admin-page"},{key:"delete",title:wp.i18n.__("Delete","integrate-google-drive")+"".concat(u&&r.length>1?" (".concat(r.length,")"):""),icon:"dashicons-trash"},{key:"view",title:g?wp.i18n.__("Grid View","integrate-google-drive"):wp.i18n.__("List View","integrate-google-drive"),icon:g?"dashicons-grid-view":"dashicons-list-view"}].filter((function(e){var t=e.key;if((!h||["view","selectAll"].includes(t))&&(!A||["preview","download","view"].includes(t))&&("drive"!==t||!u&&!O)&&(!c||c[t])&&("view"!==t||(!x||h)&&u)&&("edit"!==t||M)&&(!["share","directLink","details"].includes(t)||o)&&("selectAll"!==t||R.length&&u&&!P)&&("preview"!==t||!(!o&&(1!==r.length||b(r[0]))||o&&(!z||b(o))||u&&(1!==r.length||b(r[0]))))&&("copy"!==t||!(u&&!r.length||!u&&o&&b(o)||u&&r.length&&r.some((function(e){return b(e)}))))&&("move"!==t||!u||r.length)&&("import"!==t||!(u&&(!r.length||r.some((function(e){return b(e)})))||o&&b(o)))&&("rename"!==t||!u||!(r.length>1)&&K)&&("delete"!==t||!u||r.length)&&("download"!==t||(o||r.length)&&(!o||o.permissions&&(b(o)||o.permissions.canDownload)))&&(I||l&&u&&!o&&!r.length||!["refresh","newFolder","upload","createDoc"].includes(t))&&(!(u&&l&&n.root_id!==l.id&&k(l.id,n))||["view"].includes(t))&&(!I||r.length||u||["refresh","newFolder","upload","createDoc"].includes(t)))return!0}));return Q.length||!c||c.view||m(null),React.createElement(ki,null,React.createElement(Kn,{id:w,className:"igd-context-menu",animation:Tn.fade},Q.map((function(e){var t=e.key,d=e.title,h=e.icon;return React.createElement(Wn,{key:t,onClick:function(e){e.data;var d=e.event;e.triggerEvent;if(m(!1),"newFolder"===t)return a([]),void Swal.fire({title:wp.i18n.__("New Folder","integrate-google-drive"),text:wp.i18n.__("Enter new folder name","integrate-google-drive"),input:"text",inputValue:"",inputAttributes:{autocapitalize:"off"},showCancelButton:!1,confirmButtonText:wp.i18n.__("Create","integrate-google-drive"),showLoaderOnConfirm:!0,showCloseButton:!0,customClass:{container:"igd-swal"},preConfirm:function(e){return e?wp.ajax.post("igd_new_folder",{name:e,parent_id:l.id,account_id:l.accountId}).done((function(e){var t=[].concat(Ai(R),[e]);N(t),S((function(e){return ji(ji({},e),{},Ii({},l.id,t))})),Swal.close(),Swal.fire({title:"Created!",text:"Folder has been created.",icon:"success",showConfirmButton:!1,timer:2e3,timerProgressBar:!0,toast:!0})})).fail((function(e){Swal.fire({title:"Error!",text:e.message,icon:"error",showConfirmButton:!0,confirmButtonText:"OK",customClass:{container:"igd-swal"}})})):Swal.showValidationMessage(wp.i18n.__("Please enter a name","integrate-google-drive"))}});if("refresh"!==t)if("upload"!==t)if("edit"!==t)if("share"!==t)if("directLink"!==t)if("preview"!==t)if("drive"!==t)if("download"!==t)if("rename"!==t)if("move"!==t){var h,w;if("copy"!==t)return"import"===t?igd.isPro?void function(){var e=u?r.filter((function(e){return!b(e)})):[o].filter((function(e){return!b(e)}));Swal.fire({title:"Importing ".concat(e.length," files"),text:wp.i18n.__("Please wait...","integrate-google-drive"),icon:"info",showConfirmButton:!1,allowEscapeKey:!1,allowEnterKey:!1,allowOutsideClick:!1,customClass:{container:"igd-swal"},didOpen:function(){Swal.showLoading(),wp.ajax.send("igd_import_media",{data:{files:e},success:function(e){console.log(e)},error:function(e){console.log(e)},complete:function(){Swal.fire({title:wp.i18n.__("Imported!","integrate-google-drive"),text:wp.i18n.__("File(s) have been imported.","integrate-google-drive"),icon:"success",showConfirmButton:!1,timer:2e3,timerProgressBar:!0,toast:!0,customClass:{container:"igd-swal"}})}})}})}():void j(wp.i18n.__("Upgrade to PRO to import cloud files to the Media Library.","integrate-google-drive")):"delete"===t?(h=u?r.map((function(e){return e.id})):[o.id],w=u?r[0].accountId:o.accountId,void Swal.fire({title:wp.i18n.__("Are you sure?","integrate-google-drive"),text:wp.i18n.__("You won't be able to revert this!","integrate-google-drive"),icon:"warning",showCancelButton:!0,customClass:{container:"igd-swal"},confirmButtonText:wp.i18n.__("Yes, delete it!","integrate-google-drive"),cancelButtonText:wp.i18n.__("No, cancel!","integrate-google-drive"),reverseButtons:!0,showLoaderOnConfirm:!0,preConfirm:function(){return wp.ajax.post("igd_delete_files",{file_ids:h,account_id:w})}}).then((function(e){if(e.isConfirmed){s&&s.deleteNotification&&wp.ajax.post("igd_notification",{files:T(),notifications:s,type:"delete"});var t=R.filter((function(e){return!h.includes(e.id)}));N(t),S((function(e){return ji(ji({},e),{},Ii({},l.id,t))})),Swal.fire({title:wp.i18n.__("Deleted!","integrate-google-drive"),text:wp.i18n.sprintf(wp.i18n._n("File has been deleted.","%d files have been deleted.",r.length,"integrate-google-drive"),r.length),icon:"success",showConfirmButton:!1,timer:1500,timerProgressBar:!0,toast:!0,customClass:{container:"igd-swal"}})}}))):"view"===t?(p(!g),void function(e,t,n){var i=H(t,n);localStorage.setItem("igd_listing_view_".concat(i),e)}(g?"grid":"list",O,F)):"details"===t?(f(!0),void localStorage.setItem("igd_show_details",1)):void("selectAll"!==t||E((function(e){return!e})));Swal.fire({title:wp.i18n.__("Copy","integrate-google-drive"),text:wp.i18n.__("Select destination","integrate-google-drive"),html:'<div id="igd-copy"></div>',showCancelButton:!1,showConfirmButton:!1,showCloseButton:!0,customClass:{container:"igd-swal igd-copy-swal"},didOpen:function(e){ReactDOM.render(React.createElement(vi,{files:u?r:[o],allFiles:C,setAllFiles:S,activeAccount:n,initFolders:O}),document.getElementById("igd-copy"))},willClose:function(){ReactDOM.unmountComponentAtNode(document.getElementById("igd-copy"))}})}else Swal.fire({title:wp.i18n.__("Move","integrate-google-drive"),text:wp.i18n.__("Select destination","integrate-google-drive"),html:'<div id="igd-move"></div>',showCancelButton:!1,showConfirmButton:!1,showCloseButton:!0,customClass:{container:"igd-swal igd-move-swal"},didOpen:function(e){var t=document.getElementById("igd-move");ReactDOM.render(React.createElement(ii,{files:u?r:[o],setFiles:N,allFiles:C,setAllFiles:S,activeAccount:n,initFolders:O}),t)},willClose:function(){var e=document.getElementById("igd-move");ReactDOM.unmountComponentAtNode(e)}});else Swal.fire({title:wp.i18n.__("Rename","integrate-google-drive"),text:wp.i18n.__("Enter new name","integrate-google-drive"),input:"text",inputValue:o.name,inputAttributes:{autocapitalize:"off"},showCancelButton:!1,confirmButtonText:wp.i18n.__("Rename","integrate-google-drive"),showLoaderOnConfirm:!0,showCloseButton:!0,customClass:{container:"igd-swal"},preConfirm:function(e){return e?wp.ajax.post("igd_rename_file",{name:e,id:o.id,accountId:o.accountId}).done((function(){var t=R.map((function(t){return t.id===o.id?ji(ji({},t),{},{name:e}):t}));N(t),S((function(e){return ji(ji({},e),{},Ii({},l.id,t))})),Swal.close(),Swal.fire({title:wp.i18n.__("Renamed!","integrate-google-drive"),text:wp.i18n.__("File has been renamed.","integrate-google-drive"),icon:"success",showConfirmButton:!1,timer:2e3,timerProgressBar:!0,toast:!0,customClass:{container:"igd-swal"}})})).fail((function(e){Swal.fire({title:wp.i18n.__("Error!","integrate-google-drive"),text:e.message,icon:"error",showConfirmButton:!0,confirmButtonText:wp.i18n.__("OK","integrate-google-drive"),customClass:{container:"igd-swal"}})})):Swal.showValidationMessage(wp.i18n.__("Please enter a name","integrate-google-drive"))}});else{if(o&&o.exportAs&&Object.keys(o.exportAs).length)return;if(I||!o||b(o))if(1!==r.length||b(r[0]))!function(){var e=(new Date).getTime(),t=u?r.map((function(e){return e.id})):[o.id],n=u?r[0].accountId:o.accountId,i="".concat(igd.ajaxUrl,"?action=igd_download_zip&file_ids=").concat(B(JSON.stringify(t)),"&id=").concat(e,"&accountId=").concat(n);Swal.fire({title:wp.i18n.__("Download","integrate-google-drive"),html:'<div class="igd-download-wrap"><div id="igd-download-status"></div><div id="igd-download-progress"></div><iframe id="igd-hidden-download" class="igd-hidden" src="'.concat(i,'" ></iframe></div>'),showCancelButton:!1,showConfirmButton:!1,showCloseButton:!0,allowOutsideClick:!1,allowEscapeKey:!1,allowEnterKey:!1,customClass:{container:"igd-swal igd-download-popup"},didOpen:function(){Swal.showLoading();var t=jQuery("#igd-download-status"),n=jQuery("#igd-download-progress");window.downloadStatusInterval=setInterval((function(){wp.ajax.send("igd_download_status",{data:{id:e},success:function(e){if(!document.getElementById("igd-hidden-download"))return clearInterval(window.downloadStatusInterval),void Swal.close();if(!e)return clearInterval(window.downloadStatusInterval),Swal.close(),void Swal.fire({title:wp.i18n.__("Completed!","integrate-google-drive"),text:wp.i18n.__("Download completed","integrate-google-drive"),icon:"success",showConfirmButton:!1,toast:!0,timer:2e3,timerProgressBar:!0,customClass:{container:"igd-swal"}});var i=e.status,r=e.total,a=e.downloaded,o=e.action;"failed"===o?(clearInterval(window.downloadStatusInterval),Swal.close(),Swal.fire({title:wp.i18n.__("Error!","integrate-google-drive"),text:i,icon:"error",showConfirmButton:!0,confirmButtonText:wp.i18n.__("OK","integrate-google-drive"),customClass:{container:"igd-swal"}})):(t.html(i),"downloading"===o&&n.html("".concat(y(a)," of ").concat(y(r)," - ").concat(Math.round(a/r*100),"%")))},error:function(e){clearInterval(window.downloadStatusInterval),Swal.close(),Swal.fire({title:wp.i18n.__("Error!","integrate-google-drive"),text:e.message,icon:"error",showConfirmButton:!0,confirmButtonText:wp.i18n.__("OK","integrate-google-drive"),customClass:{container:"igd-swal"}})}})}),1e3)},willClose:function(){clearInterval(window.downloadStatusInterval)}})}();else{var _="".concat(igd.ajaxUrl,"?action=igd_download&id=").concat(r[0].id,"&accountId=").concat(r[0].accountId);window.location.href=_}else{var k="".concat(igd.ajaxUrl,"?action=igd_download&id=").concat(o.id,"&accountId=").concat(o.accountId);window.location.href=k}s&&s.downloadNotification&&wp.ajax.post("igd_notification",{files:T(),notifications:s,type:"download"})}else{var A=o||r[0];window.open(A.webViewLink,"_blank").focus()}else{var x=o||r[0];D(d,x.id,[x],c,s)}else U(!0);else U();else window.open(o.webViewLink,"_blank").focus();else v(!0);else i(l,"refresh")},data:{action:t},className:"context-menu-item ".concat(t," ").concat(["import"].includes(t)&&!igd.isPro?"disabled":"")},"createDoc"===t?React.createElement(Qn,{className:"context-submenu",label:React.createElement("div",{className:"context-submenu-label"},React.createElement("i",{className:"dashicons ".concat(h)}),React.createElement("span",null,d)),arrow:React.createElement("i",{className:"dashicons dashicons-arrow-right"})},W.map((function(e){var t=e.key,n=e.title,i=e.icon;return React.createElement(Wn,{key:t,onClick:function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"doc",t=wp.i18n.__("New Document","integrate-google-drive"),n=wp.i18n.__("Enter document name","integrate-google-drive");"sheet"===e?(t=wp.i18n.__("New Spreadsheet","integrate-google-drive"),n=wp.i18n.__("Enter spreadsheet name","integrate-google-drive")):"slide"===e&&(t=wp.i18n.__("New Presentation","integrate-google-drive"),n=wp.i18n.__("Enter presentation name","integrate-google-drive")),Swal.fire({title:t,text:n,input:"text",inputValue:"",inputAttributes:{autocapitalize:"off"},showCancelButton:!1,confirmButtonText:wp.i18n.__("Create","integrate-google-drive"),showLoaderOnConfirm:!0,showCloseButton:!0,customClass:{container:"igd-swal"},preConfirm:function(t){return t?wp.ajax.post("igd_create_doc",{name:t,type:e,folder_id:l.id,account_id:l.accountId}).done((function(t){var n=[].concat(Ai(R),[t]);N(n),S((function(e){return ji(ji({},e),{},Ii({},l.id,n))})),Swal.close();var i=wp.i18n.__("Document created","integrate-google-drive"),r=wp.i18n.__("Document created successfully","integrate-google-drive");"sheet"===e?(i=wp.i18n.__("Spreadsheet created","integrate-google-drive"),r=wp.i18n.__("Spreadsheet created successfully","integrate-google-drive")):"slide"===e&&(i=wp.i18n.__("Presentation created","integrate-google-drive"),r=wp.i18n.__("Presentation created successfully","integrate-google-drive")),Swal.fire({title:i,text:r,icon:"success",showConfirmButton:!1,timer:2e3,timerProgressBar:!0,toast:!0})})).fail((function(e){console.log(e),Swal.fire({title:wp.i18n.__("Error!","integrate-google-drive"),text:e.message,icon:"error",showConfirmButton:!0,confirmButtonText:wp.i18n.__("OK","integrate-google-drive"),customClass:{container:"igd-swal"}})})):Swal.showValidationMessage(wp.i18n.__("Please enter a name","integrate-google-drive"))}})}(t)},className:"context-menu-item ".concat(t)},React.createElement("i",{className:"dashicons ".concat(i)}),React.createElement("span",null,n))}))):"download"===t&&o&&o.exportAs&&Object.keys(o.exportAs).length?React.createElement(Qn,{className:"context-submenu",label:React.createElement("div",{className:"context-submenu-label"},React.createElement("i",{className:"dashicons ".concat(h)}),React.createElement("span",null,wp.i18n.__("Download as","integrate-google-drive"))),arrow:React.createElement("i",{className:"dashicons dashicons-arrow-right"})},Object.keys(o.exportAs).map((function(e){return React.createElement(Wn,{key:e,className:"context-menu-item ".concat(e),onClick:function(){return function(e){var t=o.exportAs[e].mimetype;window.location.href="".concat(igd.ajaxUrl,"?action=igd_download&id=").concat(o.id,"&accountId=").concat(o.accountId,"&mimetype=").concat(t)}(e)}},React.createElement("i",{className:"dashicons dashicons-media-text"}),React.createElement("span",null,e))}))):React.createElement(React.Fragment,null,React.createElement("i",{className:"dashicons ".concat(h)}),React.createElement("span",null,d),["import"].includes(t)&&!igd.isPro&&React.createElement("div",{className:"pro-badge"},React.createElement("i",{className:"dashicons dashicons-lock"}),React.createElement("span",null,wp.i18n.__("PRO","integrate-google-drive")))))}))))}function Bi(){return React.createElement("div",{className:"no-account-placeholder"},React.createElement("img",{src:"".concat(igd.pluginUrl,"/assets/images/file-browser/no-account-placeholder.svg"),alt:"No Accounts"}),React.createElement("span",{className:"placeholder-heading"},wp.i18n.__("You didn't link any account yet.","integrate-google-drive")),React.createElement("span",{className:"placeholder-description"},wp.i18n.__("Please link to a Google Drive account to continue.","integrate-google-drive")),React.createElement("button",{className:"igd-btn add-account-btn",onClick:function(){igd.authUrl?M():window.location=igd.adminUrl+"/admin.php?page=integrate-google-drive-settings&tab=accounts"}},React.createElement("img",{src:"".concat(igd.pluginUrl,"/assets/images/google-icon.png")}),React.createElement("span",null,wp.i18n.__("Sign in with Google","integrate-google-drive"))))}function Ui(e){return Ui="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ui(e)}function Li(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Mi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Li(Object(n),!0).forEach((function(t){Hi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Li(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function zi(e){return function(e){if(Array.isArray(e))return Qi(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Wi(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Hi(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Ui(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==Ui(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Ui(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ki(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,a,o,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=a.call(n)).done)&&(l.push(i.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(e,t)||Wi(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Wi(e,t){if(e){if("string"==typeof e)return Qi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qi(e,t):void 0}}function Qi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var Vi=React,qi=Vi.useState,Gi=Vi.useEffect,Yi=Vi.useMemo,Ji=Vi.useRef,Xi=igd.settings.rememberLastFolder,Zi=void 0===Xi||Xi;function $i(e){var t=e.shortcodeId,n=e.initParentFolder,r=e.isShortcodeBuilder,a=e.selectedFolders,o=e.setSelectedFolders,l=e.allFolders,c=e.privateFolders,s=e.initFolders,d=e.filters,u=e.shortcodeBuilderType,m=e.isList,g=e.showLastModified,p=void 0===g?!u:g,f=e.showFileSizeField,v=void 0===f||f,h=e.fileNumbers,w=e.sort,y=e.permissions,_=e.notifications,R=e.showHeader,C=void 0===R?r||!u:R,F=e.showRefresh,A=void 0===F||F,x=e.showSorting,P=void 0===x||x,j=e.showBreadcrumbs,D=void 0===j||j,T=e.galleryLayout,B=e.galleryAspectRatio,U=e.galleryColumns,L=e.galleryHeight,M=e.galleryMargin,Q=e.galleryView,V=e.galleryFolderView,q=e.thumbnailCaption,Y=e.galleryOverlay,J=e.galleryOverlayTitle,X=e.galleryOverlayDescription,Z=e.galleryOverlaySize,$=e.galleryImageSize,ee=e.galleryCustomSizeWidth,te=e.galleryCustomSizeHeight,ne=e.isSelectFiles,ie=e.selectionType,re=e.initialSearchTerm,ae=e.isLMS,oe=e.isWooCommerce,le=e.lazyLoad,ce=void 0===le||le,se=e.lazyLoadNumber,de=void 0===se?100:se,ue=e.account,me=void 0===ue?igd.activeAccount:ue;!s&&igd.userAccessData&&(n=igd.userAccessData.initParentFolder,s=igd.userAccessData.initFolders);var ge=null;Zi&&(ge=function(e,t){var n=null,i=document.body.classList.contains("elementor-editor-active"),r=document.body.classList.contains("et-fb"),a=document.body.classList.contains("block-editor-page");if(i||r||a)return n;var o=z(e,t),l=sessionStorage.getItem(o);return l&&(n=JSON.parse(l)).id===(null==t?void 0:t.id)&&(n=null),n}(s,n));var fe,ve="search"===u&&!r,he="gallery"===u,we="media"===u,ye="uploader"===u,be=Ki(qi(me),2),_e=be[0],Ee=be[1],Ne=Ki(qi(!ve&&s?s:[]),2),Se=Ne[0],Ce=Ne[1],Oe=[];!ve&&s&&(Oe=Hi({},(null===(fe=n)||void 0===fe?void 0:fe.id)||"",s));var ke=Ki(qi(Oe),2),Fe=ke[0],Ae=ke[1],xe=Ki(qi([]),2),Pe=xe[0],je=xe[1],Ie=Ki(qi(null),2),De=Ie[0],Te=Ie[1],Be=Ki(qi(!s&&!n&&!ve),2),Ue=Be[0],Le=Be[1],Me=Ki(qi({}),2),ze=Me[0],He=Me[1],Ke=Ki(qi(!1),2),We=Ke[0],Qe=Ke[1],Ve=Ki(qi(!1),2),qe=Ve[0],Ge=Ve[1],Ye=Ki(qi(window.innerWidth<=768),2),Je=Ye[0],Xe=Ye[1],Ze=Ki(qi(!Je&&!r&&!s),2),$e=Ze[0],et=Ze[1],tt=Ki(qi(!1),2),nt=tt[0],it=tt[1],rt=Ki(qi(!1),2),at=rt[0],ot=rt[1],lt=Ji(re),ct=Ki(qi(re),2),st=ct[0],dt=ct[1],ut=!Je&&"1"==localStorage.getItem("igd_show_details")&&!s,mt=Ki(qi(ut),2),gt=mt[0],pt=mt[1],ft=null;s?n&&(ft=n):ft=E(_e.root_id,_e),ge&&(ft=ge);var vt=Ki(qi(ft),2),ht=vt[0],wt=vt[1],yt=localStorage.getItem("igd_sort")?JSON.parse(localStorage.getItem("igd_sort")):{sortBy:"name",sortDirection:"asc"},bt=Ki(qi(null!=w?w:yt),2),_t=bt[0],Et=bt[1],Rt=function(e,t){var n=H(e,t);return localStorage.getItem("igd_listing_view_".concat(n))}(s,n);Rt&&(m="list"===Rt);var Nt=Ki(qi(m),2),St=Nt[0],Ct=Nt[1],Ot=I();Gi((function(){Object.keys(igd.accounts).length&&(y&&y.allowSearch&&re?jt(re):ve&&!r||(s||n?Zi&&ge&&xt(ge,"last"):xt()))}),[]),Gi((function(){if(Ot){Le("switch"),Ae({});var e={id:_e.root_id,accountId:_e.id,name:wp.i18n.__("My Drive","integrate-google-drive")};igd.activeAccount=_e,wp.ajax.post("igd_switch_account",{id:_e.id}).done((function(){xt(e,"switch")})).fail((function(e){console.log(e)}))}}),[_e]),Gi((function(){Ot&&(localStorage.setItem("igd_sort",JSON.stringify(_t)),xt(ht,"sort"))}),[_t]),Gi((function(){var e=function(){Xe(window.innerWidth<768)};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[]),Gi((function(){Ot&&n.id&&n.id!==(null==ht?void 0:ht.id)&&Pt(n)}),[n]);var kt=Ki(qi(!1),2),Ft=kt[0],At=kt[1];function xt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(Te(null),je([]),Qe(!1),Le(t||!0),s){if(!e)return Le(!1),wt(null),void Ce(s);c?e.isPrivate=!0:ve&&(e.folders=s)}else e||ge&&ge.accountId===_e.id&&(e=ge),e||(e=r?{id:_e.root_id,accountId:_e.id}:E(_e.root_id,_e));"lazy"!==t&&(e.pageNumber=1),wp.ajax.post("igd_get_files",{data:{folder:e,sort:_t,refresh:"refresh"===t,from_server:r||!!s&&!!n&&n.id===e.id,fileNumbers:h,limit:ce?de:0,filters:d}}).done((function(i){var r=i.files,a=void 0===r?[]:r,o=i.breadcrumbs,l=i.error,c=i.nextPageNumber,d=void 0===c?0:c;if(l)"refresh"!==t&&Swal.fire({html:l,icon:"error",confirmButtonText:wp.i18n.__("Ok","integrate-google-drive"),customClass:{container:"igd-swal"}});else{a.length&&Zi&&K(e,s,n),!a.length&&Zi&&W(s,n),"lazy"===t&&ht&&ht.id===e.id&&(a=[].concat(zi(Se),zi(a))),ye&&(a=a.filter((function(e){return b(e)}))),we&&(a=a.filter((function(e){return N(e)||b(e)}))),ae&&(a=a.filter((function(e){return S(e)||b(e)}))),he&&(a=a.filter((function(e){return O(e)||S(e)||b(e)}))),Ce(a);var u=Mi(Mi({},e),{},{pageNumber:d});Ae((function(t){return Mi(Mi({},t),{},Hi({},e.id,[].concat(zi(a),[u])))})),wt(u),o&&He(o)}})).fail((function(t){console.log(t),wt(Mi(Mi({},e),{},{pageNumber:0})),Swal.fire({title:wp.i18n.__("Error!","integrate-google-drive"),text:wp.i18n.__("Something went wrong! Please try again later.","integrate-google-drive"),icon:"error",confirmButtonText:wp.i18n.__("Ok","integrate-google-drive"),customClass:{container:"igd-swal"}})})).always((function(){return Le(!1)}))}function Pt(e){var t=e.id;if(Te(null),je([]),Qe(!1),Fe[t]){var i=Fe[t];e=i.find((function(t){return t.id===e.id}))||e,wt(e),Ce(i.filter((function(e){return e.id!==t}))),Zi&&K(ht,s,n),He(function e(t){if(k(t,_e)){var n=E(t,_e);return Hi({},t,n.name)}var r=Object.keys(ze),a=i.find((function(e){return e.id===t}));if(a){var o=Hi({},t,a.name),l=a.parents||[];return!l.length||s&&s.find((function(e){return e.id===t}))?o:Mi(Mi({},e(l[0])),o)}if(r.includes(t)){var c=r.indexOf(t);return Object.fromEntries(r.slice(0,c+1).map((function(e){return[e,ze[e]]})))}return{}}(t))}else xt(e);!s&&igd.showReviewPopup&&setTimeout((function(){!function(){G.apply(this,arguments)}()}),5e3)}function jt(e){Qe(!0),lt.current=e;var t=ht?[ht]:s;Le(!0),Te(null),je([]),Ge(!1),wp.ajax.post("igd_search_files",{folders:t,sort:_t,fileNumbers:h,keyword:e,accountId:_e.id,isPrivate:c,fullTextSearch:null==y?void 0:y.fullTextSearch,filters:d}).done((function(t){var n=t.files,i=t.error;if(i)Swal.fire({html:i,icon:"error",confirmButtonText:wp.i18n.__("Ok","integrate-google-drive"),customClass:{container:"igd-swal"}});else{if(s){var r=s.filter((function(t){return t.name.toLowerCase().includes(e.toLowerCase())}));n=[].concat(zi(r),zi(n))}we&&(n=n.filter((function(e){return N(e)||b(e)}))),ae&&(n=n.filter((function(e){return S(e)||b(e)}))),he&&(n=n.filter((function(e){return O(e)||S(e)||b(e)})));var a=new Set;n=n.filter((function(e){return!a.has(e.id)&&(a.add(e.id),!0)})),Ce(n)}})).fail((function(e){console.log(e),Swal.fire({title:wp.i18n.__("Error!","integrate-google-drive"),text:wp.i18n.__("Something went wrong! Please try again later.","integrate-google-drive"),icon:"error",confirmButtonText:"Ok",customClass:{container:"igd-swal"}})})).always((function(){Le(!1)})),_&&_.searchNotification&&wp.ajax.post("igd_notification",{files:t,keyword:e,notifications:_,type:"search"})}Gi((function(){!Ft||(null==ht?void 0:ht.pageNumber)>1||(console.log("Refresh files on image load fail"),xt(ht,"refresh"))}),[Ft]),Gi((function(){if(s&&ze){var e=Object.keys(ze),t=ht&&ht.id?ht.id:ht,i=!!e&&e.findIndex((function(e){return e===t}));if(n&&(e.find((function(e){return e===n.id}))&&delete ze[n.id],e[e.length-1]===n.id&&He({})),-1!==i)for(var r=function(t){if(s.find((function(n){return n.id===e[t]})))return"break";delete ze[e[t]]},a=0;a<i;a++){if("break"===r(a))break}}}),[ze]),Gi((function(){if(Ot)if(r){var e;if(at){var t=[].concat(zi(a),zi(Se)),n=new Set;e=t.filter((function(e){return!n.has(e.id)&&(n.add(e.id),!0)}))}else e=a.filter((function(e){return!Se.some((function(t){return t.id===e.id}))}));o(e)}else he||r||je(at?Se:[])}),[at]),Gi((function(){Ot&&(ot(!1),je([]),Qe(!1))}),[ht]);var It,Dt=Yi((function(){return"igd-context-menu-".concat(Date.now())}),[]),Tt=(It={id:Dt},{show:function(e,t){In.show({id:(null==t?void 0:t.id)||(null==It?void 0:It.id),props:(null==t?void 0:t.props)||(null==It?void 0:It.props),event:e,position:null==t?void 0:t.position})},hideAll:function(){In.hideAll()}}),Bt=Tt.show,Ut=Tt.hideAll;return Gi((function(){var e=function(){ReactTooltip.hide(),Ut()},t=document.querySelector(".igd-shortcode-builder-form");return t&&t.addEventListener("scroll",e),function(){t&&t.removeEventListener("scroll",e)}}),[]),0!==Object.keys(igd.accounts).length?React.createElement(i,{value:{shortcodeId:t,activeAccount:_e,activeFiles:Pe,setActiveFiles:je,activeFile:De,setActiveFile:Te,activeFolder:ht,permissions:y,notifications:_,shortcodeBuilderType:u,isList:St,setIsList:Ct,setShowDetails:pt,setIsUpload:Ge,getFiles:xt,isShortcodeBuilder:r,isMobile:Je,setActiveAccount:Ee,allFolders:l,initFolders:s,isSearch:ve,setShowSidebar:et,sort:_t,setSort:Et,setFiles:Ce,setAllFiles:Ae,breadcrumbs:ze,setActiveFolder:wt,isSearchResults:We,setIsSearchResults:Qe,isOptions:nt,setIsOptions:it,listFiles:Pt,showBreadcrumbs:D,showRefresh:A,showSorting:P,initParentFolder:n,isUpload:qe,isLoading:Ue,files:Se,allFiles:Fe,selectedFolders:a,setSelectedFolders:o,filters:d,showLastModified:p,showFileSizeField:v,setShouldRefresh:At,galleryLayout:T,galleryAspectRatio:B,galleryColumns:U,galleryHeight:L,galleryMargin:M,galleryView:Q,galleryFolderView:V,thumbnailCaption:q,galleryOverlay:Y,galleryOverlayTitle:J,galleryOverlayDescription:X,galleryOverlaySize:Z,galleryImageSize:$,galleryCustomSizeWidth:ee,galleryCustomSizeHeight:te,show:Bt,hideAll:Ut,contextMenuId:Dt,isSelectFiles:ne,selectionType:ie,selectAll:at,setSelectAll:ot,searchFiles:jt,initialSearchTerm:re,searchKeywordRef:lt,searchKeyword:st,setSearchKeyword:dt,isLMS:ae,isWooCommerce:oe,lazyLoad:ce,lazyLoadNumber:de}},React.createElement("div",{className:"igd-file-browser"},React.createElement(Ti,null),(C&&!ve||ve&&We)&&React.createElement(pe,null),React.createElement("div",{className:"igd-file-browser-body"},$e&&React.createElement(Re,null),React.createElement(sn,null),!r&&gt&&React.createElement(En,null)))):React.createElement(Bi,null)}Zi=Zi||igd.isAdmin;var er=React.createContext();const tr=er;var nr=er.Provider,ir=React,rr=ir.useRef,ar=ir.useEffect;function or(e){var t=e.file,n=e.isPlaying,i=e.playNext,r=e.playPrev,a=e.handleDownload,o=e.nextPrevious,l=e.rewindForward,c=e.download,s=e.playableItems,d=e.playlistAutoplay,u=e.showPlaylist,m=e.isLoop,g=e.isOpenPlaylist,p=e.setIsOpenPlaylist,f=e.isShuffle,v=e.setIsLoop,h=e.setIsShuffle,w=rr(null),y=rr(null),b=t||{},_=b.id,E=b.accountId,R=t&&C(t),N="".concat(igd.ajaxUrl,"?action=igd_stream&id=").concat(_,"&accountId=").concat(E),S=t&&P(t,"large"),O={controls:["play-large",!!l&&"rewind","play",!!l&&"fast-forward","current-time","progress","duration","mute","volume","captions","settings","pip","airplay","fullscreen"],settings:["speed","loop","shuffle","playlist"],speed:{selected:1,options:[.5,.75,1,1.25,1.5,2]},i18n:{shuffle:wp.i18n.__("Shuffle","integrate-google-drive"),loop:wp.i18n.__("Loop","integrate-google-drive"),playlist:wp.i18n.__("Playlist","integrate-google-drive")},keyboard:{focused:!0,global:!0},disableContextMenu:!c};ar((function(){var e=jQuery,t=w.current,n=t.querySelector("video, audio");if(y.current=new Plyr(n,O),o&&s.length>1&&!e(t).find('[data-plyr="prev"]').length){var b=e('<button type="button" class="plyr__controls__item plyr__control" aria-label="Previous" data-plyr="prev"><svg width="18" height="18" fill="currentColor" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M64 468V44c0-6.6 5.4-12 12-12h48c6.6 0 12 5.4 12 12v176.4l195.5-181C352.1 22.3 384 36.6 384 64v384c0 27.4-31.9 41.7-52.5 24.6L136 292.7V468c0 6.6-5.4 12-12 12H76c-6.6 0-12-5.4-12-12z"/></svg></button>').on("click",(function(){return r()})),_=e('<button type="button"  class="plyr__controls__item plyr__control" aria-label="Next" data-plyr="next" tabindex="0"><svg width="18" height="18" fill="currentColor" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M384 44v424c0 6.6-5.4 12-12 12h-48c-6.6 0-12-5.4-12-12V291.6l-195.5 181C95.9 489.7 64 475.4 64 448V64c0-27.4 31.9-41.7 52.5-24.6L312 219.3V44c0-6.6 5.4-12 12-12h48c6.6 0 12 5.4 12 12z"/></svg></button>').on("click",(function(){return i()})),E=e(t).find('.plyr__controls [data-plyr="play"]'),R=e(t).find('.plyr__controls [data-plyr="play"]');l&&(E=e(t).find('.plyr__controls [data-plyr="rewind"]'),R=e(t).find('.plyr__controls [data-plyr="fast-forward"]')),b.insertBefore(E),_.insertAfter(R)}var N=e(t).find('.plyr__menu__container > div > div:first-child [role="menu"]'),S=N.parent().attr("id").match(/(\d+)/)[0];if(!e(t).find('[data-plyr-menu="loop"]').length){var C=e('<button data-plyr="settings" type="button" class="plyr__control plyr__control--forward" role="menuitem" data-plyr-menu="loop" aria-haspopup="true"><span> '.concat(wp.i18n.__("Loop","integrate-google-drive"),'  <span class="plyr__menu__value">').concat(m?wp.i18n.__("Enable","integrate-google-drive"):wp.i18n.__("Disable","integrate-google-drive"),"</span> </span></button>")).on("click",(function(){e("#plyr-settings-".concat(S,"-home")).prop("hidden",!0),e("#plyr-settings-".concat(S,"-loop")).prop("hidden",!1)}));N.append(C);var k=e('<button data-plyr="loop" type="button" role="menuitemradio" class="plyr__control" aria-checked="'.concat(m?"true":"false",'" value="enable"><span>').concat(wp.i18n.__("Enable","integrate-google-drive"),"</span></button>")).on("click",(function(){v(!0),e(".plyr__control.plyr__control--back").click(),C.find(".plyr__menu__value").text(wp.i18n.__("Enable","integrate-google-drive")),e(this).attr("aria-checked","true"),e(this).siblings().attr("aria-checked","false")})),F=e('<button data-plyr="loop" type="button" role="menuitemradio" class="plyr__control" aria-checked="'.concat(m?"false":"true",'" value="disable"><span>').concat(wp.i18n.__("Disable","integrate-google-drive"),"</span></button>")).on("click",(function(){v(!1),e(".plyr__control.plyr__control--back").click(),C.find(".plyr__menu__value").text(wp.i18n.__("Disable","integrate-google-drive")),e(this).attr("aria-checked","true"),e(this).siblings().attr("aria-checked","false")}));e("#plyr-settings-".concat(S,'-loop [role="menu"]')).append(k).append(F)}if(!e(t).find('[data-plyr-menu="shuffle"]').length){var A=e('<button data-plyr="settings" type="button" class="plyr__control plyr__control--forward" role="menuitem" data-plyr-menu="shuffle" aria-haspopup="true"><span> '.concat(wp.i18n.__("Shuffle","integrate-google-drive"),' <span class="plyr__menu__value">').concat(f?wp.i18n.__("Enable","integrate-google-drive"):wp.i18n.__("Disable","integrate-google-drive"),"</span> </span></button>")).on("click",(function(){e("#plyr-settings-".concat(S,"-home")).prop("hidden",!0),e("#plyr-settings-".concat(S,"-shuffle")).prop("hidden",!1)}));N.append(A);var x=e('<button data-plyr="loop" type="button" role="menuitemradio" class="plyr__control" aria-checked="'.concat(f?"true":"false",'" value="enable"><span>').concat(wp.i18n.__("Enable","integrate-google-drive"),"</span></button>")).on("click",(function(){h(!0),e(".plyr__control.plyr__control--back").click(),A.find(".plyr__menu__value").text(wp.i18n.__("Enable","integrate-google-drive")),e(this).attr("aria-checked","true"),e(this).siblings().attr("aria-checked","false")})),P=e('<button data-plyr="loop" type="button" role="menuitemradio" class="plyr__control" aria-checked="'.concat(f?"false":"true",'" value="disable"><span>').concat(wp.i18n.__("Disable","integrate-google-drive"),"</span></button>")).on("click",(function(){h(!1),e(".plyr__control.plyr__control--back").click(),A.find(".plyr__menu__value").text(wp.i18n.__("Disable","integrate-google-drive")),e(this).attr("aria-checked","true"),e(this).siblings().attr("aria-checked","false")}));e("#plyr-settings-".concat(S,'-shuffle [role="menu"]')).append(x).append(P)}if(u&&!e(t).find('[data-plyr-menu="playlist"]').length){var j=e('<button data-plyr="settings" type="button" class="plyr__control plyr__control--forward" role="menuitem" data-plyr-menu="playlist" aria-haspopup="true"><span> '.concat(wp.i18n.__("Playlist","integrate-google-drive"),' <span class="plyr__menu__value">').concat(g?wp.i18n.__("Show","integrate-google-drive"):wp.i18n.__("Hide","integrate-google-drive"),"</span> </span> </span></button>")).on("click",(function(){e("#plyr-settings-".concat(S,"-home")).prop("hidden",!0),e("#plyr-settings-".concat(S,"-playlist")).prop("hidden",!1)}));N.append(j);var I=e('<button data-plyr="loop" type="button" role="menuitemradio" class="plyr__control" aria-checked="'.concat(g?"true":"false",'" value="enable"><span>').concat(wp.i18n.__("Show","integrate-google-drive"),"</span></button>")).on("click",(function(){e(t).find('.plyr__controls__item > [data-plyr="settings"]').click(),p(!0),j.find(".plyr__menu__value").text(wp.i18n.__("Show","integrate-google-drive")),e(this).attr("aria-checked","true"),e(this).siblings().attr("aria-checked","false")})),D=e('<button data-plyr="loop" type="button" role="menuitemradio" class="plyr__control" aria-checked="'.concat(g?"false":"true",'" value="disable"><span>').concat(wp.i18n.__("Hide","integrate-google-drive"),"</span></button>")).on("click",(function(){e(t).find('.plyr__controls__item > [data-plyr="settings"]').click(),p(!1),j.find(".plyr__menu__value").text(wp.i18n.__("Hide","integrate-google-drive")),e(this).attr("aria-checked","true"),e(this).siblings().attr("aria-checked","false")}));e("#plyr-settings-".concat(S,'-playlist [role="menu"]')).append(I).append(D)}if(c&&!e(t).find('[data-plyr-menu="download"]').length){var T=e('<button data-plyr="settings" type="button" class="plyr__control" role="menuitem" data-plyr-menu="download" aria-haspopup="true"><span> '.concat(wp.i18n.__("Download","integrate-google-drive")," </span></button>")).on("click",(function(){e(t).find('.plyr__controls__item > [data-plyr="settings"]').click(),a()}));N.append(T)}return y.current.on("ended",(function(){(m||d)&&i(!0)})),function(){y.current.destroy()}}),[t]);var k=I();ar((function(){k&&y.current&&(n?y.current.play():y.current.pause())}),[n,y.current]);var F=R?'<audio src="'.concat(N,'" controls preload="auto"></audio>'):'<video class="igd-player-media-video" src="'.concat(N,'" width="100%" height="100%" controls  poster=').concat(S,' preload="auto" ></video>');return React.createElement("div",{className:"igd-player-media-wrap",ref:w,dangerouslySetInnerHTML:{__html:F}})}function lr(e){var t=e.files,n=e.searchKeywordRef,i=t.length?t.length:wp.i18n.__("No","integrate-google-drive"),r=wp.i18n.sprintf(wp.i18n.__('Search results for "%s": %s items found.',"integrate-google-drive"),"<strong>".concat(n.current,"</strong>"),i);return React.createElement("div",{className:"search-result-info"},React.createElement("span",{dangerouslySetInnerHTML:{__html:r}}),React.createElement("button",{onClick:function(e){document.querySelector(".search-dismiss").click()},className:"clear-button igd-btn btn-warning"},wp.i18n.__("Clear","integrate-google-drive")))}function cr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,a,o,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=a.call(n)).done)&&(l.push(i.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return sr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sr(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function sr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var dr=React,ur=dr.useState,mr=dr.useRef,gr=dr.useEffect;dr.useContext;function pr(e){var t=e.initFolders,n=e.initParentFolder,i=e.sort,r=e.filters,a=e.privateFolders,o=e.setFiles,l=e.fullTextSearch,c=e.initialSearchTerm,s=e.isSearchResults,d=e.setIsSearchResults,u=e.searchKeywordRef,m=e.notifications,g=e.isLoading,p=e.setIsLoading,f=cr(ur(c),2),v=f[0],h=f[1],w=mr(null),y=cr(ur(!1),2),_=y[0],E=y[1],R=mr(),S=cr(ur(!!c),2),C=S[0],O=S[1],k=function(e){var c;p(!0),d(!0),u.current=e;var s=n?[n]:t;wp.ajax.post("igd_search_files",{folders:s,sort:i,keyword:e,accountId:null===(c=s[0])||void 0===c?void 0:c.accountId,isPrivate:a,fullTextSearch:l,filters:r}).done((function(e){var t=e.files,n=e.error;n?Swal.fire({html:n,icon:"error",confirmButtonText:wp.i18n.__("Ok","integrate-google-drive"),customClass:{container:"igd-swal"}}):(t=t.filter((function(e){return b(e)||N(e)})),o(t))})).fail((function(e){console.log(e),Swal.fire({title:wp.i18n.__("Error!","integrate-google-drive"),text:wp.i18n.__("Something went wrong! Please try again later.","integrate-google-drive"),icon:"error",confirmButtonText:"Ok",customClass:{container:"igd-swal"}})})).always((function(){p(!1)})),m&&m.searchNotification&&wp.ajax.post("igd_notification",{files:s,keyword:e,notifications:m,type:"search"})},F=function(e){if(e&&e.preventDefault(),E(!1),!v)return Swal.fire({title:wp.i18n.__("Error","integrate-google-drive"),text:wp.i18n.__("Please enter a keyword to search","integrate-google-drive"),icon:"error",confirmButtonText:"Ok",customClass:{container:"igd-swal"}}),void E(!0);k(v)},A=I();return gr((function(){if(A&&v&&!(v.length<4))return w.current=setTimeout((function(){F()}),2e3),function(){clearTimeout(w.current)}}),[v]),gr((function(){R.current.addEventListener("keydown",(function(e){" "===e.key&&e.stopPropagation()}),!0),c&&k(c)}),[]),React.createElement("form",{ref:R,className:"playlist-search ".concat(C?"active":""," ").concat(_?"error":""),onSubmit:F},g&&React.createElement("div",{className:"igd-spinner"}),s&&!g&&React.createElement("div",{className:"search-dismiss",onClick:function(){O(!C),h(""),E(!1),d(!1),o(t)}},React.createElement("svg",{width:"14",height:"14",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M1.5 1.5L10.5 10.5M1.5 10.5L10.5 1.5L1.5 10.5Z",stroke:"#BABABA",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),React.createElement("input",{type:"text",placeholder:wp.i18n.__("Enter a keyword to search in the playlist","integrate-google-drive"),value:v,onChange:function(e){h(e.target.value)}}),React.createElement("div",{className:"search-submit",onClick:function(){var e;C?F():(O(!0),null===(e=R.current)||void 0===e||e.querySelector("input").focus())}},React.createElement("svg",{width:"18",height:"18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},React.createElement("path",{d:"M508.5 468.9L387.1 347.5c-2.3-2.3-5.3-3.5-8.5-3.5h-13.2c31.5-36.5 50.6-84 50.6-136C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c52 0 99.5-19.1 136-50.6v13.2c0 3.2 1.3 6.2 3.5 8.5l121.4 121.4c4.7 4.7 12.3 4.7 17 0l22.6-22.6c4.7-4.7 4.7-12.3 0-17zM208 368c-88.4 0-160-71.6-160-160S119.6 48 208 48s160 71.6 160 160-71.6 160-160 160z"})),React.createElement(ReactTooltip,{id:"search",place:"bottom",effect:"solid",className:"igd-tooltip"})))}function fr(e){return function(e){if(Array.isArray(e))return wr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||hr(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,a,o,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=a.call(n)).done)&&(l.push(i.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(e,t)||hr(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function hr(e,t){if(e){if("string"==typeof e)return wr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?wr(e,t):void 0}}function wr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var yr=React.useState;function br(e){var t=e.file,n=e.files,i=e.setFile,r=e.folderFiles,a=e.getFolderFiles,o=e.isSub,l=e.isPlaying,c=e.setIsPlaying,s=e.download,d=e.activeFolder,u=e.setActiveFolder,m=e.playlistThumbnail,g=e.playlistNumber,p=e.allowSearch,f=e.initParentFolder,v=e.initFolders,h=e.filters,w=e.privateFolders,_=e.fullTextSearch,E=e.initialSearchTerm,R=e.sort,C=e.setFiles,O=e.isSearchResults,k=e.setIsSearchResults,F=e.searchKeywordRef,A=e.notifications,x=vr(yr([]),2),j=x[0],I=x[1],D=vr(yr(!1),2),T=D[0],B=D[1];return React.createElement("div",{className:o?"sub-item":"igd-player-playlist"},!o&&p&&React.createElement(React.Fragment,null,React.createElement(pr,{initFolders:v,initParentFolder:f,filters:h,sort:R,privateFolders:w,setFiles:C,fullTextSearch:_,initialSearchTerm:E,isSearchResults:O,setIsSearchResults:k,searchKeywordRef:F,isLoading:T,setIsLoading:B,notifications:A}),O&&!T&&React.createElement(lr,{files:n,searchKeywordRef:F})),n.length>0&&n.map((function(e,n){var o=e.id,x=e.name,D=e.size,T=P(e,"custom",{w:64,h:64}),B=b(e);if(B||N(e)){var U=o===d,L=(null==t?void 0:t.id)===o,M=j.find((function(t){return t.id===e.id}));return React.createElement("div",{key:o,className:"playlist-item-wrap"},React.createElement("div",{className:"playlist-item ".concat(L?"active":""),onClick:function(n){if(n.stopPropagation(),B){if(u(!U&&o),I(M?function(t){return t.filter((function(t){return t.id!==e.id}))}:function(t){return[].concat(fr(t),[e])}),M||r&&r[e.id])return;a(e)}else if(t&&t.id===o)c(!l||"pause"===l);else if(c(!0),i(e),S(e)){var s=n.target.closest(".igd-player");s&&(s.classList.contains("playlist-bottom")||window.innerWidth<768)&&s.scrollIntoView({behavior:"smooth"})}}},g&&React.createElement("span",{className:"item-index"},String(n+1).padStart(2,"0"),"."),B&&(!U||!!r[o])&&React.createElement("span",{className:"dashicons ".concat(M?"dashicons-arrow-down":"dashicons-arrow-right")}),U&&!r[o]&&React.createElement("div",{className:"igd-spinner"}),m&&React.createElement("img",{src:T,alt:x}),React.createElement("span",{className:"item-name"},x),!B&&s&&!!D&&React.createElement("span",{className:"item-size"},y(D)),!B&&L&&l&&"pause"!==l&&React.createElement("span",{className:"dashicons dashicons-controls-pause"}),!B&&(!L||!l||"pause"===l)&&React.createElement("span",{className:"dashicons dashicons-controls-play"})),M&&!!r[o]&&React.createElement(br,{isSub:!0,files:r[o],file:t,setFile:i,folderFiles:r,getFolderFiles:a,isPlaying:l,setIsPlaying:c,download:s,activeFolder:d,setActiveFolder:u,playlistThumbnail:m,playlistNumber:g,allowSearch:p,initParentFolder:f,initFolders:v,filters:h,privateFolders:w,fullTextSearch:_,initialSearchTerm:E,sort:R,setFiles:C,isSearchResults:O,setIsSearchResults:k,searchKeywordRef:F,notifications:A}))}})))}function _r(e){return _r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_r(e)}function Er(e){return function(e){if(Array.isArray(e))return kr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Or(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Rr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Nr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rr(Object(n),!0).forEach((function(t){Sr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Sr(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==_r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==_r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===_r(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,a,o,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=a.call(n)).done)&&(l.push(i.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(e,t)||Or(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Or(e,t){if(e){if("string"==typeof e)return kr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?kr(e,t):void 0}}function kr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var Fr=React,Ar=Fr.useRef,xr=Fr.useEffect,Pr=Fr.useState;const jr=function(e){var t=e.initFolders,n=void 0===t?[]:t,i=e.nextPrevious,r=e.rewindForward,a=e.allowEmbedPlayer,o=e.download,l=e.sort,c=e.allowSearch,s=e.initParentFolder,d=e.filters,u=e.privateFolders,m=e.fullTextSearch,g=void 0===m||m,p=e.initialSearchTerm,f=e.showPlaylist,v=void 0===f||f,h=e.openedPlaylist,w=void 0===h||h,y=e.playlistPosition,_=void 0===y?"bottom":y,E=e.notifications,R=e.playlistThumbnail,O=e.playlistAutoplay,k=e.playlistNumber,F=Cr(Pr(n),2),A=F[0],x=F[1],j=Cr(Pr(n.filter((function(e){return N(e)}))),2),D=j[0],T=j[1],B=Cr(Pr(D.length?D[0]:null),2),U=B[0],L=B[1],M=Cr(Pr(null),2),z=M[0],H=M[1],K=Cr(Pr(v&&w),2),W=K[0],Q=K[1],V=Ar(p),q=Cr(Pr(!1),2),G=q[0],Y=q[1];xr((function(){A.length&&T(n.filter((function(e){return!b(e)})))}),[A]);var J=Cr(Pr(!1),2),X=J[0],Z=J[1],$=Cr(Pr({}),2),ee=$[0],te=$[1],ne=U&&S(U),ie=Cr(Pr("true"===localStorage.getItem("igd_is_loop")),2),re=ie[0],ae=ie[1],oe=Cr(Pr("true"===localStorage.getItem("igd_is_shuffle")),2),le=oe[0],ce=oe[1],se=U?D.findIndex((function(e){return e.id===U.id})):0,de=Ar(null),ue=I();xr((function(){ue&&localStorage.setItem("igd_is_loop",re?"true":"false")}),[re]),xr((function(){ue&&localStorage.setItem("igd_is_shuffle",le?"true":"false")}),[le]),xr((function(){ue&&E&&E.playNotification&&wp.ajax.post("igd_notification",{files:[U],notifications:E,type:"play"})}),[U]);var me=U&&C(U),ge=Cr(Pr("lg"),2),pe=ge[0],fe=ge[1];xr((function(){if(de.current){var e=480,t=768,n=992,i=new ResizeObserver((function(i){var r=i[0].contentRect.width;fe(r<=e?"xs":r<=t?"sm":r<=n?"md":"lg")}));return i.observe(de.current),function(){i.disconnect()}}}),[de]);var ve=a&&U&&S(U)&&U.size>1e8;return xr((function(){ve&&wp.ajax.post("igd_update_file_permission",{file_id:U.id,account_id:U.accountId})}),[U]),React.createElement("div",{ref:de,className:"\n                igd-player \n                playlist-".concat(_,"\n               \n                ").concat(ne?"type-video":"type-audio"," \n                ").concat(X?"active":"paused"," \n                ").concat(re?"is-loop":"","\n                ").concat(W?"is-playlist":"","\n                ").concat(le?"is-shuffle":"","\n                size-").concat(pe,"\n            ")},React.createElement("div",{className:"media-wrap"},me&&React.createElement("div",{className:"current-item"},React.createElement("img",{src:P(U,"small"),alt:U.name}),React.createElement("div",{className:"item-caption"},React.createElement("span",{className:"item-title"},U.name),!!U.description&&React.createElement("span",{className:"item-description"},U.description))),ve&&React.createElement("iframe",{src:"https://drive.google.com/file/d/".concat(U.id,"/preview"),width:"100%",height:"100%",frameBorder:"0",allowFullScreen:!0,referrerPolicy:"no-referrer",allow:"autoplay",sandbox:"allow-scripts allow-same-origin"}),!!U&&!ve&&React.createElement(or,{file:U,isPlaying:X,setIsPlaying:Z,playNext:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(Z(!0),!e||!re){var t=se+1<D.length?D[se+1]:D[0];le&&(t=D[Math.floor(Math.random()*D.length)]),L(t)}},playPrev:function(){Z(!0),L(se-1>=0?D[se-1]:D[D.length-1])},download:o,showPlaylist:v,nextPrevious:i,rewindForward:r,playableItems:D,handleDownload:function(){var e="".concat(igd.ajaxUrl,"?action=igd_download&id=").concat(U.id,"&accountId=").concat(U.accountId);window.open(e,"_blank").focus(),E&&E.downloadNotification&&wp.ajax.post("igd_notification",{files:[U],notifications:E,type:"download"})},playlistAutoplay:O,isLoop:re,setIsLoop:ae,isOpenPlaylist:W,setIsOpenPlaylist:Q,isShuffle:le,setIsShuffle:ce})),W&&React.createElement(br,{file:U,files:A,setFile:L,folderFiles:ee,getFolderFiles:function(e){return wp.ajax.post("igd_get_files",{data:{folder:e,sort:l,filters:d}}).done((function(t){var n=t.files;n=n.filter((function(e){return N(e)||b(e)})),te((function(t){return Nr(Nr({},t),{},Sr({},e.id?e.id:e,n))})),T((function(e){return[].concat(Er(e),Er(n.filter((function(e){return!b(e)}))))}))}))},isPlaying:X,setIsPlaying:Z,download:o,activeFolder:z,setActiveFolder:H,playlistThumbnail:R,playlistNumber:k,allowSearch:c,initParentFolder:s,initFolders:n,filters:d,privateFolders:u,fullTextSearch:g,initialSearchTerm:p,sort:l,setFiles:x,isSearchResults:G,setIsSearchResults:Y,searchKeywordRef:V,notifications:E}))};function Ir(e){var t=e.initFolders,n=e.slideName,i=e.slideDescription,r=e.slideHeight,a=e.slidesPerPage,o=e.slideAutoplay,l=e.slideAutoplaySpeed,c=e.slideDots,s=e.slideArrows,d=e.download,u=e.preview,m=e.notifications,g=e.sliderImageSize,p=e.sliderCustomSizeWidth,f=e.sliderCustomSizeHeight,v=e.slideGap,h=function(e,n){D(e,n,t,{download:d,preview:u,inlinePreview:!0,notifications:m})},w=function(){var e=a[arguments.length>0&&void 0!==arguments[0]?arguments[0]:"md"];return t.length<e?t.length:e},y={dots:c,arrows:s,speed:500,slidesToShow:w("md"),infinite:!0,initialSlide:0,autoplay:o,autoplaySpeed:parseInt(l),cssEase:"linear",nextArrow:React.createElement("span",{className:"slick-arrow slick-next"},React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 320 512"},React.createElement("path",{d:"M278.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-160 160c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L210.7 256 73.4 118.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l160 160z"}))),prevArrow:React.createElement("span",{className:"slick-arrow slick-prev"},React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 320 512"},React.createElement("path",{d:"M41.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 256 246.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z"}))),responsive:[{breakpoint:576,settings:{slidesToShow:w("xs"),dots:!1}},{breakpoint:768,settings:{slidesToShow:w("sm")}},{breakpoint:992,settings:{slidesToShow:w("md")}},{breakpoint:1200,settings:{slidesToShow:w("lg")}},{breakpoint:2800,settings:{slidesToShow:w("xl")}}]};return React.createElement("div",{className:"igd-slider",style:{"--slide-height":r,"--slide-gap":"".concat(v,"px")}},React.createElement(Slider.default,y,t.map((function(e,t){var r=e.id,a=(e.accountId,e.name),o=e.description,l=P(e,g,{w:p,h:f});return React.createElement(React.Fragment,null,React.createElement("div",{className:"slider-img-wrap",onClick:function(e){return u&&h(e,r)}},React.createElement("img",{referrerPolicy:"no-referrer",src:l,alt:a})),React.createElement("div",{className:"slider-content-wrap",onClick:function(e){return u&&h(e,r)}},n&&React.createElement("h3",null,a),i&&!!o&&React.createElement("p",null,o)))}))))}function Dr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,a,o,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=a.call(n)).done)&&(l.push(i.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Tr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Tr(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Tr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var Br=React,Ur=Br.useEffect,Lr=Br.useState;function Mr(e){var t=e.data,n=e.isPreview,r=Dr(Lr(!1),2),a=r[0],o=r[1],l=Dr(Lr(""),2),c=l[0],s=l[1],d=t.id,u=t.type,m=t.allFolders,g=t.privateFolders,p=void 0!==g&&g,f=t.folders,v=void 0===f?[]:f,h=t.filters,w=t.galleryLayout,y=void 0===w?"justified":w,_=t.galleryAspectRatio,R=void 0===_?"1/1":_,S=t.galleryColumns,C=void 0===S?{xs:1,sm:2,md:3,lg:4,xl:5}:S,O=t.galleryHeight,k=void 0===O?300:O,F=t.galleryMargin,A=void 0===F?5:F,x=t.galleryView,P=void 0===x?"rounded":x,j=t.galleryFolderView,I=void 0===j?"title":j,D=t.galleryOverlay,B=void 0===D||D,U=t.galleryOverlayTitle,L=void 0===U||U,M=t.galleryOverlayDescription,z=void 0===M||M,H=t.galleryOverlaySize,K=void 0!==H&&H,W=t.galleryImageSize,Q=void 0===W?"medium":W,V=t.galleryCustomSizeWidth,q=t.galleryCustomSizeHeight,G=t.view,Y=t.lazyLoad,J=void 0===Y||Y,X=t.lazyLoadNumber,Z=void 0===X?100:X,$=t.showLastModified,ee=void 0!==$&&$,te=t.showFileSizeField,ne=void 0===te||te,ie=t.showHeader,re=void 0===ie||ie,ae=t.showRefresh,oe=void 0===ae||ae,le=t.showSorting,ce=void 0===le||le,se=t.showBreadcrumbs,de=void 0===se||se,ue=t.nextPrevious,me=void 0===ue||ue,ge=t.rewindForward,pe=void 0!==ge&&ge,fe=t.allowEmbedPlayer,ve=t.showPlaylist,he=void 0===ve||ve,we=t.playlistThumbnail,ye=void 0===we||we,be=t.playlistNumber,_e=void 0===be||be,Ee=t.playlistAutoplay,Re=void 0===Ee||Ee,Ne=t.openedPlaylist,Se=void 0===Ne||Ne,Ce=t.playlistPosition,Oe=void 0===Ce?"bottom":Ce,ke=t.fileNumbers,Fe=t.sort,Ae=t.maxFiles,xe=t.maxFileSize,Pe=t.minFileSize,je=t.notifications,Ie=t.preview,De=void 0===Ie||Ie,Te=t.inlinePreview,Ue=void 0===Te||Te,Le=t.allowPreviewPopout,Me=void 0===Le||Le,ze=t.directLink,He=void 0!==ze&&ze,Ke=t.createDoc,We=void 0!==Ke&&Ke,Qe=t.edit,Ve=void 0!==Qe&&Qe,qe=t.newFolder,Ge=void 0!==qe&&qe,Ye=t.rename,Je=void 0!==Ye&&Ye,Xe=t.details,Ze=void 0!==Xe&&Xe,$e=t.moveCopy,et=t.moveCopy,tt=t.canDelete,nt=void 0!==tt&&tt,it=t.upload,rt=void 0!==it&&it,at=t.download,ot=void 0===at||at,lt=t.zipDownload,ct=void 0!==lt&&lt,st=t.allowShare,dt=void 0!==st&&st,ut=t.viewSwitch,mt=void 0===ut||ut,gt=t.allowSearch,pt=void 0===gt?"search"===u:gt,ft=t.fullTextSearch,vt=void 0===ft||ft,ht=t.initialSearchTerm,wt=void 0===ht?"":ht,yt=t.comment,bt=void 0!==yt&&yt,_t=t.commentMethod,Et=void 0===_t?"facebook":_t,Rt=t.photoProof,Nt=void 0!==Rt&&Rt,St=t.photoProofEmail,Ct=t.photoProofMaxSelection,Ot=t.uploadImmediately,kt=t.isFormUploader,Ft=t.isRequired,At=t.isWooCommerceUploader,xt=t.wcOrderId,Pt=t.wcItemId,jt=t.wcProductId,It=t.uploadedFiles,Dt=void 0===It?[]:It,Tt=t.initParentFolder,Bt=t.enableFolderUpload,Ut=t.overwrite,Lt=t.showUploadLabel,Mt=t.uploadLabelText,zt=void 0===Mt?wp.i18n.__("Upload Files","integrate-google-drive"):Mt,Ht=t.uploadFileName,Kt=t.showUploadConfirmation,Wt=void 0===Kt||Kt,Qt=t.uploadConfirmationMessage,Vt=void 0===Qt?"<h3>".concat(wp.i18n.__("Upload successful!","integrate-google-drive"),"</h3> <p>").concat(wp.i18n.__("Your file(s) have been uploaded. Thank you for your submission!","integrate-google-drive"),"</p>"):Qt,qt=t.slideName,Gt=void 0===qt||qt,Yt=t.sliderImageSize,Jt=void 0===Yt?"medium":Yt,Xt=t.sliderCustomSizeWidth,Zt=t.sliderCustomSizeHeight,$t=t.slideDescription,en=t.slideHeight,tn=void 0===en?"300px":en,nn=t.slidesPerPage,rn=void 0===nn?{xs:1,sm:2,md:3,lg:4,xl:5}:nn,an=t.slidesToScroll,on=void 0===an?1:an,ln=t.slideAutoplay,cn=t.slideAutoplaySpeed,sn=void 0===cn?3e3:cn,dn=t.slideDots,un=void 0===dn||dn,mn=t.slideArrows,gn=void 0===mn||mn,pn=t.slideGap,fn=void 0===pn?5:pn,vn=t.account,hn=m?E():v;return Ur((function(){n&&(o(!0),wp.ajax.post("igd_get_shortcode_content",{data:t}).done((function(e){return s(e)})).fail((function(e){return console.log(e)})).always((function(){o(!1),setTimeout((function(){T()}),100)})))}),[n,t]),React.createElement(React.Fragment,null,n&&a&&React.createElement("div",{className:"igd-spinner spinner-large"}),n&&!a&&React.createElement("div",{className:"preview-inner",dangerouslySetInnerHTML:{__html:c}}),!n&&React.createElement(React.Fragment,null,["browser","gallery","search"].includes(u)&&React.createElement($i,{shortcodeId:d,account:vn,galleryLayout:y,galleryAspectRatio:R,galleryColumns:C,galleryOverlay:B,galleryOverlayTitle:L,galleryOverlayDescription:z,galleryOverlaySize:K,galleryImageSize:Q,galleryCustomSizeWidth:V,galleryCustomSizeHeight:q,galleryHeight:k,galleryMargin:A,galleryView:P,galleryFolderView:I,initParentFolder:Tt,allFolders:m,privateFolders:p,initFolders:hn,filters:h,isList:"list"===G,lazyLoad:J,lazyLoadNumber:Z,showLastModified:ee,showFileSizeField:ne,showHeader:re,showRefresh:oe,showSorting:ce,showBreadcrumbs:de,fileNumbers:ke,sort:Fe,shortcodeBuilderType:u,initialSearchTerm:wt,permissions:{preview:De,inlinePreview:Ue,allowPreviewPopout:Me,directLink:He,newFolder:Ge,rename:Je,move:et,copy:$e,upload:rt,download:ot,zipDownload:ct,details:Ze,view:mt,delete:nt,share:dt,allowSearch:pt,createDoc:We,edit:Ve,fullTextSearch:vt,comment:bt,commentMethod:Et,photoProof:Nt,photoProofEmail:St,photoProofMaxSelection:Ct},notifications:je}),"slider"===u&&React.createElement(Ir,{initFolders:hn,slideName:Gt,slideDescription:$t,slideHeight:tn,slidesPerPage:rn,slidesToScroll:on,slideAutoplay:ln,slideAutoplaySpeed:sn,slideDots:un,slideArrows:gn,download:t.download,preview:t.preview,notifications:je,sliderImageSize:Jt,sliderCustomSizeWidth:Xt,sliderCustomSizeHeight:Zt,slideGap:fn}),"uploader"===u&&React.createElement(i,{value:{account:vn,folders:v,filters:h,maxFiles:Ae,maxFileSize:xe,minFileSize:Pe,enableFolderUpload:Bt,isFormUploader:kt,isRequired:Ft,showUploadLabel:Lt,uploadLabelText:zt,uploadFileName:Ht,isWooCommerceUploader:At,wcOrderId:xt,wcItemId:Pt,wcProductId:jt,notifications:je,initUploadedFiles:Dt,uploadImmediately:Ot,overwrite:Ut,showUploadConfirmation:Wt,uploadConfirmationMessage:Vt}},React.createElement(Be,null)),"media"===u&&React.createElement(jr,{initParentFolder:Tt,initFolders:hn.filter((function(e){return N(e)||b(e)})),nextPrevious:me,rewindForward:pe,allowEmbedPlayer:fe,showPlaylist:he,playlistThumbnail:ye,playlistNumber:_e,playlistAutoplay:Re,openedPlaylist:Se,playlistPosition:Oe,download:t.download,sort:Fe,filters:h,privateFolders:p,allowSearch:pt,fullTextSearch:vt,initialSearchTerm:wt,notifications:je})))}function zr(e){var t=e.data,n=e.onClose;return React.createElement("div",{className:"igd-shortcode-preview-wrap"},React.createElement("div",{className:"igd-shortcode-preview-header"},React.createElement("div",{className:"header-title"},React.createElement("i",{className:"dashicons dashicons-visibility"}),React.createElement("span",null,wp.i18n.__("Shortcode Preview","integrate-google-drive"))),React.createElement("button",{type:"button",className:"igd-btn btn-danger",onClick:n},React.createElement("i",{className:"dashicons dashicons-no"}))),React.createElement(Mr,{data:t,isPreview:!0}))}function Hr(e){return Hr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hr(e)}function Kr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Wr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kr(Object(n),!0).forEach((function(t){Qr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Qr(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Hr(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==Hr(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Hr(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Vr=React,qr=Vr.useContext,Gr=Vr.useEffect,Yr=window.ReactTooltip;function Jr(){var e=qr(tr),t=e.edit,n=e.setEdit,i=e.editData,r=e.updateShortcode,a=e.setEditData,o=e.updating,l=e.deleteShortcode,c=i.title,s=i.id;i.folders,i.allFolders;Gr((function(){"-1"==t&&document.getElementById("shortcode-title").focus()}),[t]);return React.createElement("div",{className:"igd-shortcode-builder-header ".concat(t?"is-edit":"")},React.createElement("div",{className:"header-title"},React.createElement("img",{src:igd.pluginUrl+"/assets/images/shortcode-builder/shortcode-icon.svg",alt:"Shortcode Builder"}),t?React.createElement(React.Fragment,null,React.createElement("label",{htmlFor:"shortcode-title"},s>0?wp.i18n.__("Edit Shortcode","integrate-google-drive"):wp.i18n.__("Add New Shortcode","integrate-google-drive")),React.createElement("input",{type:"text",onChange:function(e){return a((function(t){return Wr(Wr({},t),{},{title:e.target.value})}))},value:c,className:"shortcode-title",id:"shortcode-title"})):React.createElement("span",null,wp.i18n.__("Shortcode Builder","integrate-google-drive"))),React.createElement("div",{className:"header-actions"},t?React.createElement(React.Fragment,null,React.createElement("button",{type:"button",className:"igd-btn btn-back",onClick:function(){V(),n(null)}},React.createElement("i",{className:"dashicons dashicons-arrow-left-alt2"}),React.createElement("span",null,wp.i18n.__("Back","integrate-google-drive"))),!!s&&s>0&&React.createElement("button",{"data-tip":wp.i18n.__("Delete Shortcode","integrate-google-drive"),"data-for":"delete",type:"button",className:"igd-btn btn-danger btn-delete",onClick:function(){Swal.fire({title:wp.i18n.__("Are you sure?","integrate-google-drive"),text:wp.i18n.__("You won't be able to revert this!","integrate-google-drive"),icon:"warning",showCancelButton:!0,confirmButtonText:wp.i18n.__("Yes, delete it!","integrate-google-drive"),cancelButtonText:wp.i18n.__("No, cancel!","integrate-google-drive"),reverseButtons:!0,focusCancel:!0,showLoaderOnConfirm:!0,customClass:{container:"igd-swal"},preConfirm:function(){return l(s,!0)}})}},React.createElement("i",{className:"dashicons dashicons-trash"}),React.createElement("span",null,wp.i18n.__("Delete","integrate-google-drive")),React.createElement(Yr,{id:"delete",effect:"solid",place:"top",className:"igd-tooltip"})),React.createElement("button",{type:"button",className:"igd-btn btn-info btn-preview",onClick:function(){return e=i,void Swal.fire({html:'<div id="igd-shortcode-preview" class="igd-shortcode-preview"></div>',showConfirmButton:!1,customClass:{popup:"igd-shortcode-preview-popup",container:"igd-shortcode-preview-container"},didOpen:function(){var t=document.getElementById("igd-shortcode-preview");ReactDOM.render(React.createElement(zr,{data:e,onClose:function(){return Swal.close()}}),t)},willClose:function(){var e=document.getElementById("igd-shortcode-preview");ReactDOM.unmountComponentAtNode(e)}});var e}},React.createElement("i",{className:"dashicons dashicons-visibility"}),React.createElement("span",null,wp.i18n.__("Preview","integrate-google-drive"))),React.createElement("button",{type:"button",className:"igd-btn btn-save btn-primary",onClick:function(){var e=new URL(window.location.href);e.searchParams.delete("id"),window.history.pushState({},"",e),r(i,!0)}},o?React.createElement("div",{className:"igd-spinner"}):React.createElement("i",{className:"dashicons dashicons-saved"}),React.createElement("span",null,wp.i18n.__("Save","integrate-google-drive")))):React.createElement("button",{type:"button",className:"igd-btn btn-primary add-new-btn",onClick:function(){return n(-1)}},o?React.createElement("div",{className:"igd-spinner"}):React.createElement("i",{className:"dashicons dashicons-plus"}),React.createElement("span",null,wp.i18n.__("Add new shortcode","integrate-google-drive")))))}function Xr(e){return function(e){if(Array.isArray(e))return Zr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Zr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Zr(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Zr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var $r=React.useMemo,ea="...",ta=function(e,t){var n=t-e+1;return Array.from({length:n},(function(t,n){return n+e}))};const na=function(e){var t=e.onPageChange,n=e.pageCount,i=e.siblingCount,r=void 0===i?1:i,a=e.currentPage,o=void 0===a?1:a,l=e.className,c=function(e){var t=e.pageCount,n=e.siblingCount,i=void 0===n?1:n,r=e.currentPage;return $r((function(){if(i+5>=t)return ta(1,t);var e=Math.max(r-i,1),n=Math.min(r+i,t),a=e>2,o=n<t-2,l=1,c=t;if(!a&&o){var s=ta(1,2+2*i);return[].concat(Xr(s),[ea,t])}if(a&&!o){var d=ta(t-(2+2*i)+1,t);return[l,ea].concat(Xr(d))}if(a&&o){var u=ta(e,n);return[l,ea].concat(Xr(u),[ea,c])}}),[t,i,r])}({pageCount:n,siblingCount:r,currentPage:o});if(0===o||c.length<2)return null;var s=c[c.length-1];return React.createElement("ul",{className:"pagination-container ".concat(l||"")},React.createElement("li",{className:"pagination-item ".concat(1===o?"disabled":""),onClick:function(){return 1!==o&&void t(o-1)}},React.createElement("svg",{height:"15px",width:"15px",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 490.787 490.787"},React.createElement("pat",{d:"M362.671,490.787c-2.831,0.005-5.548-1.115-7.552-3.115L120.452,253.006c-4.164-4.165-4.164-10.917,0-15.083L355.119,3.256c4.093-4.237,10.845-4.354,15.083-0.262c4.237,4.093,4.354,10.845,0.262,15.083c-0.086,0.089-0.173,0.176-0.262,0.262L143.087,245.454l227.136,227.115c4.171,4.16,4.179,10.914,0.019,15.085C368.236,489.664,365.511,490.792,362.671,490.787z"}),React.createElement("path",{d:"M362.671,490.787c-2.831,0.005-5.548-1.115-7.552-3.115L120.452,253.006c-4.164-4.165-4.164-10.917,0-15.083L355.119,3.256c4.093-4.237,10.845-4.354,15.083-0.262c4.237,4.093,4.354,10.845,0.262,15.083c-0.086,0.089-0.173,0.176-0.262,0.262L143.087,245.454l227.136,227.115c4.171,4.16,4.179,10.914,0.019,15.085C368.236,489.664,365.511,490.792,362.671,490.787z"}))),c.map((function(e){return e===ea?React.createElement("li",{key:e,className:"pagination-item dots"},"…"):React.createElement("li",{key:e,className:"pagination-item ".concat(e===o?"selected":""),onClick:function(){return t(e)}},e)})),React.createElement("li",{className:"pagination-item ".concat(o===s?"disabled":""),onClick:function(){return o!==s&&void t(o+1)}},React.createElement("svg",{height:"15px",width:"15px",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 490.8 490.8"},React.createElement("path",{d:"M135.685,3.128c-4.237-4.093-10.99-3.975-15.083,0.262c-3.992,4.134-3.992,10.687,0,14.82l227.115,227.136L120.581,472.461c-4.237,4.093-4.354,10.845-0.262,15.083c4.093,4.237,10.845,4.354,15.083,0.262c0.089-0.086,0.176-0.173,0.262-0.262l234.667-234.667c4.164-4.165,4.164-10.917,0-15.083L135.685,3.128z"}),React.createElement("path",{d:"M128.133,490.68c-5.891,0.011-10.675-4.757-10.686-10.648c-0.005-2.84,1.123-5.565,3.134-7.571l227.136-227.115L120.581,18.232c-4.171-4.171-4.171-10.933,0-15.104c4.171-4.171,10.933-4.171,15.104,0l234.667,234.667c4.164,4.165,4.164,10.917,0,15.083L135.685,487.544C133.685,489.551,130.967,490.68,128.133,490.68z"}))))};function ia(e){return ia="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ia(e)}function ra(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function aa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ra(Object(n),!0).forEach((function(t){oa(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ra(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function oa(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==ia(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==ia(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ia(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function la(e){return function(e){if(Array.isArray(e))return da(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||sa(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ca(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,a,o,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=a.call(n)).done)&&(l.push(i.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(e,t)||sa(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function sa(e,t){if(e){if("string"==typeof e)return da(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?da(e,t):void 0}}function da(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var ua=wp.components,ma=ua.FormToggle,ga=ua.CheckboxControl,pa=ua.SelectControl,fa=window.ReactTooltip,va=React,ha=va.useContext,wa=va.useState,ya=va.useEffect;function ba(){var e=ha(tr),t=e.shortcodes,n=e.deleteShortcode,i=e.setEdit,r=e.updateShortcode,a=e.duplicateShortcode,o=e.total,l=e.page,c=e.setPage,s=e.perPage,d=e.setPerPage,u=e.sortBy,m=e.setSortBy,g=e.sortOrder,p=e.setSortOrder,f=F(),v=ca(wa([]),2),h=v[0],w=v[1],y=localStorage.getItem("igd_shortcode_list_columns"),b=ca(wa(y?JSON.parse(y):["ID","type","status","shortcode","created"]),2),_=b[0],E=b[1];ya((function(){localStorage.setItem("igd_shortcode_list_columns",JSON.stringify(_))}),[_]);return React.createElement("div",{className:"igd-shortcode-list-wrap"},React.createElement("div",{className:"igd-shortcode-list-header"},React.createElement("h3",{className:"igd-shortcode-list-title"},wp.i18n.__("All Shortcodes","integrate-google-drive"),React.createElement("span",{className:"shortcode-list-count"}," ( ",o," ",wp.i18n._n("Item","Items",o,"integrate-google-drive")," )")),React.createElement("div",{className:"igd-list-column-settings"},React.createElement("i",{"data-tip":!0,"data-for":"list-settings-tooltip",className:"column-settings-icon dashicons dashicons-admin-generic"}),React.createElement(fa,{id:"list-settings-tooltip",effect:"solid",place:"left",event:"click",type:"light",clickable:!0,border:!0,scrollHide:!1,borderColor:"#ddd",className:"igd-tooltip list-settings-tooltip",globalEventOff:"click"},React.createElement("div",{className:"settings-wrap settings-columns"},React.createElement("h4",null,wp.i18n.__("Columns","integrate-google-drive")),React.createElement("div",{className:"column-options"},["ID","type","status","shortcode","locations","created"].map((function(e,t){return React.createElement("div",{className:"igd-column-setting",key:t},React.createElement(ga,{label:e,checked:_.includes(e),onChange:function(){var t=_.includes(e)?_.filter((function(t){return t!==e})):[].concat(la(_),[e]);E(t)}}))})))),React.createElement("div",{className:"settings-wrap settings-per-page"},React.createElement("h4",null,wp.i18n.__("Items Per Page","integrate-google-drive")),React.createElement(pa,{value:s,options:[{label:"10",value:10},{label:"20",value:20},{label:"50",value:50},{label:"100",value:100}],onChange:function(e){d(e),c(1),localStorage.setItem("igd_shortcode_list_per_page",e)}})),React.createElement("div",{className:"settings-wrap settings-sort-by"},React.createElement("h4",null,wp.i18n.__("Sort By","integrate-google-drive")),React.createElement(pa,{value:u,options:[{label:wp.i18n.__("Name","integrate-google-drive"),value:"title"},{label:wp.i18n.__("Date Created","integrate-google-drive"),value:"created_at"}],onChange:function(e){m(e),c(1),localStorage.setItem("igd_shortcode_list_sort_by",e)}})),React.createElement("div",{className:"settings-wrap settings-sort-order"},React.createElement("h4",null,wp.i18n.__("Sort Order","integrate-google-drive")),React.createElement(pa,{value:g,options:[{label:wp.i18n.__("Ascending","integrate-google-drive"),value:"asc"},{label:wp.i18n.__("Descending","integrate-google-drive"),value:"desc"}],onChange:function(e){p(e),c(1),localStorage.setItem("igd_shortcode_list_sort_order",e)}}))))),!!h.length&&React.createElement("div",{className:"selection-actions-wrap"},React.createElement("div",{className:"selection-count"},h.length," ",wp.i18n.__("Item(s) selected","integrate-google-drive")),React.createElement("button",{className:"igd-btn btn-warning",onClick:function(){return w([])}},React.createElement("i",{className:"dashicons dashicons-no-alt"}),React.createElement("span",null,wp.i18n.__("Clear Selection","integrate-google-drive"))),React.createElement("button",{className:"igd-btn btn-info",onClick:function(){a(h),w([])}},React.createElement("i",{className:"dashicons dashicons-admin-page"}),React.createElement("span",null,wp.i18n.__("Duplicate","integrate-google-drive"))),React.createElement("button",{className:"igd-btn btn-danger",onClick:function(){Swal.fire({title:wp.i18n.__("Are you sure?","integrate-google-drive"),text:wp.i18n.__("You will not be able to recover this shortcode!","integrate-google-drive"),icon:"warning",showCancelButton:!0,confirmButtonText:wp.i18n.__("Yes, delete it!","integrate-google-drive"),reverseButtons:!0,customClass:{container:"igd-swal"}}).then((function(e){e.isConfirmed&&(h.forEach((function(e){n(e)})),w([]))}))}},React.createElement("i",{className:"dashicons dashicons-trash"}),React.createElement("span",null,wp.i18n.__("Delete","integrate-google-drive")))),React.createElement("table",{className:"igd-shortcode-list"},React.createElement("thead",null,React.createElement("tr",null,React.createElement("th",{className:"col-selection"},React.createElement(ga,{checked:h.length===t.length,onChange:function(){h.length===t.length?w([]):w(t.map((function(e){return e.id})))}})),_.includes("ID")&&React.createElement("th",{className:"col-id"},wp.i18n.__("ID","integrate-google-drive")),React.createElement("th",{className:"col-title"},wp.i18n.__("Title","integrate-google-drive")),_.includes("type")&&React.createElement("th",{className:"col-shortcode-type"},wp.i18n.__("Type","integrate-google-drive")),_.includes("status")&&React.createElement("th",null,wp.i18n.__("Status","integrate-google-drive")),_.includes("shortcode")&&React.createElement("th",null,wp.i18n.__("Shortcode","integrate-google-drive")),_.includes("locations")&&React.createElement("th",null,wp.i18n.__("Locations","integrate-google-drive")),_.includes("created")&&React.createElement("th",null,wp.i18n.__("Created","integrate-google-drive")),React.createElement("th",null,wp.i18n.__("Actions","integrate-google-drive")))),React.createElement("tbody",null,t.map((function(e){var t=e.id,o=e.title,l=e.status,c=e.created_at,s=e.config,d=e.locations,u=f[null==s?void 0:s.type]?f[null==s?void 0:s.type].title:"";return React.createElement("tr",{className:"igd-shortcode-list-item"},React.createElement("td",{className:"col-selection"},React.createElement(ga,{checked:h.includes(t),onChange:function(){h.includes(t)?w(h.filter((function(e){return e!==t}))):w([].concat(la(h),[t]))}})),_.includes("ID")&&React.createElement("td",{className:"col-id"},t),React.createElement("td",{className:"col-title"},o),_.includes("type")&&React.createElement("td",{className:"col-shortcode-type"},React.createElement("div",null,React.createElement("img",{src:"".concat(igd.pluginUrl,"/assets/images/shortcode-builder/types/").concat(s.type,".svg"),alt:o}),React.createElement("span",null,u))),_.includes("status")&&React.createElement("td",{className:"col-shortcode-status"},React.createElement(ma,{"data-tip":wp.i18n.__("Shortcode status","integrate-google-drive"),"data-for":"shortcodeStatus",checked:"on"===l,onChange:function(){r(aa(aa({},s),{},{id:t,status:"on"===l?"off":"on"}))}}),React.createElement(fa,{id:"shortcodeStatus",effect:"solid",place:"top",className:"igd-tooltip"})),_.includes("shortcode")&&React.createElement("td",{className:"col-code"},React.createElement("div",null,React.createElement("i",{"data-tip":wp.i18n.__("Copy shortcode","integrate-google-drive"),"data-for":"copyShortcode",className:"dashicons dashicons-admin-page",onClick:A}),React.createElement(fa,{id:"copyShortcode",effect:"solid",place:"top",className:"igd-tooltip"}),React.createElement("code",{onClick:A},'[integrate_google_drive id="'.concat(t,'"]')))),_.includes("locations")&&React.createElement("td",{className:"col-locations"},d&&d.length>0?React.createElement("div",{className:"shortcode-locations"},React.createElement("span",{"data-tip":!0,"data-for":"shortcodeLocations-".concat(t),className:"location-count"},d.length),React.createElement(fa,{id:"shortcodeLocations-".concat(t),effect:"solid",place:"top",delayHide:1e3,type:"light",clickable:!0,border:!0,scrollHide:!1,borderColor:"#ddd",className:"igd-tooltip locations-tooltip",globalEventOff:"click"},React.createElement("h3",null,wp.i18n.__("Shortcode Locations","integrate-google-drive")),d.map((function(e,t){return React.createElement("div",{key:t,className:"location-item"},React.createElement("a",{href:e.url,target:"_blank"},React.createElement("span",{className:"location-index"},t+1,". "),React.createElement("span",{className:"location-title"},e.title),React.createElement("i",{className:"dashicons dashicons-external"})))})))):React.createElement("div",{className:"shortcode-locations"},React.createElement("span",{className:"location-count"},wp.i18n.__("0","integrate-google-drive")))),_.includes("created")&&React.createElement("td",{className:"col-created"},function(e){var t=new Date,n=Math.abs(t-new Date(e)),i=Math.floor(n/864e5);if(i>7)return Q(e);var r=Math.floor(n/36e5),a=Math.floor(n/6e4);return i>0?i+" day"+(i>1?"s":"")+" ago":r>0?r+" hour"+(r>1?"s":"")+" ago":a+" minute"+(a>1?"s":"")+" ago"}(c)),React.createElement("td",{className:"col-actions"},React.createElement("button",{"data-tip":wp.i18n.__("Edit shortcode","integrate-google-drive"),"data-for":"editShortcode-".concat(t),className:"igd-btn btn-primary",onClick:function(){!function(e){var t=new URL(window.location.href);t.searchParams.set("id",e),window.history.pushState({},"",t)}(t),i(t)}},React.createElement("i",{className:"dashicons dashicons-edit-large"}),React.createElement("span",null,wp.i18n.__("Edit","integrate-google-drive"))),React.createElement(fa,{id:"editShortcode-".concat(t),effect:"solid",place:"top",className:"igd-tooltip"}),React.createElement("button",{"data-tip":wp.i18n.__("Tools","integrate-google-drive"),"data-for":"toolsTooltip-".concat(t),className:"igd-btn btn-tools"},React.createElement("i",{className:"dashicons dashicons-ellipsis"})),React.createElement(fa,{id:"toolsTooltip-".concat(t),effect:"solid",place:"top",className:"igd-tooltip"}),React.createElement(fa,{id:"toolsTooltip-".concat(t),effect:"solid",place:"bottom",event:"click",type:"light",clickable:!0,border:!0,scrollHide:!1,borderColor:"#ddd",className:"options-tooltip igd-tooltip",globalEventOff:"click"},React.createElement("div",{className:"action-tools"},React.createElement("button",{className:"igd-btn",onClick:function(){return e=s,void Swal.fire({html:'<div id="igd-shortcode-preview" class="igd-shortcode-preview"></div>',showConfirmButton:!1,customClass:{popup:"igd-shortcode-preview-popup",container:"igd-shortcode-preview-container"},didOpen:function(){ReactDOM.render(React.createElement(zr,{data:e,onClose:function(){return Swal.close()}}),document.getElementById("igd-shortcode-preview"))},willClose:function(){ReactDOM.unmountComponentAtNode(document.getElementById("igd-shortcode-preview"))}});var e}},React.createElement("i",{className:"dashicons dashicons-visibility"}),React.createElement("span",null,wp.i18n.__("Preview","integrate-google-drive"))),React.createElement("button",{className:"igd-btn",onClick:function(){a([t])}},React.createElement("i",{className:"dashicons dashicons-admin-page"}),React.createElement("span",null,wp.i18n.__("Duplicate","integrate-google-drive"))),React.createElement("button",{className:"igd-btn",onClick:function(){Swal.fire({title:wp.i18n.__("Are you sure?","integrate-google-drive"),text:wp.i18n.__("You won't be able to revert this!","integrate-google-drive"),icon:"warning",showCancelButton:!0,confirmButtonText:wp.i18n.__("Yes, delete it!","integrate-google-drive"),cancelButtonText:wp.i18n.__("No, cancel!","integrate-google-drive"),reverseButtons:!0,focusCancel:!0,showLoaderOnConfirm:!0,customClass:{container:"igd-swal"},preConfirm:function(){return n(t)}})}},React.createElement("i",{className:"text-red-500 dashicons dashicons-trash"}),React.createElement("span",null,wp.i18n.__("Delete","integrate-google-drive")))))))})))),React.createElement("div",{className:"igd-shortcode-list-footer"},React.createElement(na,{className:"igd-pagination",pageCount:Math.ceil(o/s),currentPage:l,onPageChange:function(e){return c(e)}})))}function _a(e){var t=e.setEdit;return React.createElement("div",{className:"no-item-placeholder"},React.createElement("img",{src:"".concat(igd.pluginUrl,"/assets/images/shortcode-builder/placeholder.png"),alt:"No Shortcode"}),React.createElement("h3",null,wp.i18n.__("You didn't create any shortcode yet!","integrate-google-drive")),React.createElement("button",{type:"button",className:"igd-btn btn-primary",onClick:function(){return t(-1)}},React.createElement("i",{className:"dashicons dashicons-plus"}),React.createElement("span",null,wp.i18n.__("Add new shortcode","integrate-google-drive"))))}function Ea(e){return Ea="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ea(e)}function Ra(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Na(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ra(Object(n),!0).forEach((function(t){Sa(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ra(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Sa(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Ea(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==Ea(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Ea(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ca=React.useContext;function Oa(e){var t=e.setTab,n=e.isEditor,i=Ca(tr),r=i.editData,a=i.setEditData,o=F(),l=r.type;return React.createElement("div",{className:"shortcode-module-body"},React.createElement("div",{className:"shortcode-types"},Object.keys(o).map((function(e){var i=e===l,r=o[e],c=r.title,s=r.isPro,d=r.description;return React.createElement("div",{key:e,className:"shortcode-type ".concat(s&&!igd.isPro?"pro-feature":""," ").concat(i?"active":""," ").concat(n?"edit-mode":""),onClick:function(){!s||igd.isPro?l!==e&&(a((function(t){return Na(Na({},t),{},{type:e,folders:[]})})),["embed","view","download"].includes(e)&&a((function(e){return Na(Na({},e),{},{allFolders:!1})})),t("sources")):j(wp.i18n.__("Upgrade to PRO to use this module.","integrate-google-drive"))}},s&&!igd.isPro&&React.createElement("div",{className:"pro-badge"},React.createElement("i",{className:"dashicons dashicons-lock"}),React.createElement("span",null,wp.i18n.__("PRO","integrate-google-drive"))),React.createElement("div",{className:"icon-wrap icon-".concat(e)},React.createElement("img",{className:"type-".concat(e),src:"".concat(igd.pluginUrl,"/assets/images/shortcode-builder/types/").concat(e,".svg"),alt:c})),React.createElement("span",null,c),React.createElement("p",{className:"description"},d))}))))}function ka(e){return ka="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ka(e)}function Fa(e){return function(e){if(Array.isArray(e))return Da(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ia(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Aa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function xa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Aa(Object(n),!0).forEach((function(t){Pa(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Aa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Pa(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==ka(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==ka(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ka(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ja(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,a,o,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=a.call(n)).done)&&(l.push(i.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(e,t)||Ia(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ia(e,t){if(e){if("string"==typeof e)return Da(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Da(e,t):void 0}}function Da(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var Ta=wp.components.FormToggle,Ba=React,Ua=Ba.useEffect,La=Ba.useRef,Ma=Ba.useContext,za=Ba.useState,Ha=window.ReactTooltip,Ka=SortableElement((function(e){var t=e.item,n=e.onRemove,i=e.onClick,r=e.length;return React.createElement("div",{className:"selected-item"},r>1&&React.createElement("i",{className:"dashicons dashicons-move sort-item"}),React.createElement("div",{className:"file-item",onClick:function(){return i(t)}},t.iconLink?React.createElement("img",{src:t.iconLink}):React.createElement("i",{className:"dashicons dashicons-category"}),React.createElement("span",{className:"item-name"},t.name?t.name:E(t,igd.accounts[t.accountId]))),React.createElement("span",{className:"remove-item dashicons dashicons-no-alt",onClick:function(){return n(t)}}))})),Wa=SortableContainer((function(e){var t=e.items,n=e.onRemove,i=e.onClick;return React.createElement("div",null,!!t&&!!t.length&&t.map((function(e,r){return React.createElement(Ka,{length:t.length,key:"item-".concat(r),index:r,item:e,onRemove:n,onClick:i})})))}));function Qa(){var e=igd,t=e.activeAccount,n=e.isPro,i=e.settings,r=Ma(tr),a=r.editData,o=r.updateShortcode,l=r.setEditData,c=r.isSelectFiles,s=r.isInlineSelect,d=r.isFormBuilder,u=r.selectionType,m=r.isEditor,g=r.isLMS,p=r.initParentFolder,f=r.initFolders,v=r.isWooCommerce,h=a.type,w=a.allFolders,y=a.folders,b=void 0===y?[]:y,_=a.privateFolders,R=a.createPrivateFolder,N=a.nameTemplate,S=void 0===N?i.nameTemplate?i.nameTemplate:"%user_login% (%user_email%)":N,C=a.parentFolder,O=void 0===C?i.parentFolder?i.parentFolder:E(t.root_id):C,k=a.templateFolder,F=void 0===k?i.templateFolder?i.templateFolder:null:k,A=a.mergePrivateFolders,x=void 0===A?i.mergeFolders:A,P=a.createEntryFolders,I=a.entryFolderNameTemplate,D=void 0===I?"cf7"===d?"Form entry - %form_title%":"Entry (%entry_id%) - %form_title%":I,T=a.mergeFolders,B=ja(za(!1),2),U=B[0],L=B[1],M=ja(za(!1),2),z=M[0],H=M[1],K=ja(za(p),2),W=K[0],Q=K[1],V="browser"===h,q="uploader"===h,G="slider"===h,Y="gallery"===h,J="media"===h,X="search"===h,Z="embed"===h,$="view"===h,ee="download"===h,te=La(null);Ua((function(){if(te.current){new ResizeObserver((function(e){var t=e[0].target;e[0].contentRect.width<700?t.classList.add("view-list"):t.classList.remove("view-list")})).observe(te.current)}}),[]);var ne="",ie="";_&&(ie=wp.i18n.__("Don't select any items if you don't want to show the module for the users who are not linked any folders.","integrate-google-drive"),V?ne=wp.i18n.__("Select files & folders for non-linked users","integrate-google-drive"):q?ne=wp.i18n.__("Select Upload Folder for non-linked users","integrate-google-drive"):Y?ne=wp.i18n.__("Select image files and folders for non-linked users","integrate-google-drive"):J?ne=wp.i18n.__("Select audio, video files and folders for non-linked users","integrate-google-drive"):X&&(ne=wp.i18n.__("Select folders for non-linked users.","integrate-google-drive"))),d&&!_&&(ne=wp.i18n.__("Select Upload Folder","integrate-google-drive"));var re=["%user_login%","%user_email%","%first_name%","%last_name%","%display_name%","%user_id%","%user_role%","%user_meta_{key}%","","%post_id%","%post_title%","%post_slug%","%post_author%","%post_date%","%post_modified%","%post_type%","%post_status%","%post_category%","%post_tags%","%post_meta_{key}%","","%wc_product_name%","%wc_product_id%","%wc_product_sku%","%wc_product_slug%","%wc_product_price%","%wc_product_sale_price%","%wc_product_regular_price%","%wc_product_tags%","%wc_product_type%","%wc_product_status%","",!!d&&"cf7"!==d&&"%entry_id%",!!d&&"elementor"!==d&&"%form_id%",!!d&&"%form_title%","","%date%","%time%","%unique_id%"],ae=["cf7"!==d&&"%entry_id%","elementor"!==d&&"%form_id%","%form_title%","","%post_id%","%post_title%","%post_slug%","%post_author%","%post_date%","%post_modified%","%post_type%","%post_status%","%post_category%","%post_tags%","%post_meta_{key}%","","%wc_product_name%","%wc_product_id%","%wc_product_sku%","%wc_product_slug%","%wc_product_price%","%wc_product_sale_price%","%wc_product_regular_price%","%wc_product_tags%","%wc_product_type%","%wc_product_status%","","%user_login%","%user_email%","%first_name%","%last_name%","%display_name%","%user_id%","%user_role%","%user_meta_{key}%","","%date%","%time%","%unique_id%"],oe=!(Z&&"classic"===m||$||ee||w||c||g||v),le=wp.i18n.__("Turn ON to display the private files and folders linked to the user.","integrate-google-drive");Z?le=wp.i18n.__("Turn ON to embed the private files and folders linked to the user.","integrate-google-drive"):q?le=wp.i18n.__("Turn ON to upload the files in the private folder linked to the user.","integrate-google-drive"):X&&(le=wp.i18n.__("Turn ON to search the private files and folders linked to the user.","integrate-google-drive"));var ce=ja(za(null),2),se=ce[0],de=ce[1],ue=La(),me=ja(za(null),2),ge=me[0],pe=me[1],fe=La();return React.createElement("div",{className:"shortcode-module-body content-sources"},!v&&!G&&!Z&&!$&&!ee&&!q&&!c&&!g&&React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("All Folders & Files","integrate-google-drive")," "),React.createElement("div",{className:"settings-field-content"},React.createElement(Ta,{checked:w,onChange:function(){return l(xa(xa({},a),{},{allFolders:!w}))}}),React.createElement("span",{className:"description"},wp.i18n.__("If turned ON, users can navigate through all the folders & files of all the linked Google Drive accounts.","integrate-google-drive"),React.createElement("br",null),wp.i18n.__("Otherwise, to select specific folders & files turn off this option.","integrate-google-drive")))),d&&React.createElement("h3",{className:"igd-settings-body-title"},wp.i18n.__("User Private Folders","integrate-google-drive")),!!oe&&React.createElement("div",{className:"settings-field field-private-folder"},React.createElement("h4",{className:"settings-field-label"},q?wp.i18n.__("Use Private Folder","integrate-google-drive"):wp.i18n.__("Use Private Files","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(Ta,{"data-tip":wp.i18n.__("PRO Feature","integrate-google-drive"),checked:n&&_,onChange:function(){n?l(xa(xa({},a),{},{privateFolders:!_})):j(wp.i18n.__("Upgrade to Pro to use User Private Folders","integrate-google-drive"))}}),!n&&React.createElement(Ha,{effect:"solid",place:"right",backgroundColor:"#FF9F10",className:"igd-tooltip"}),React.createElement("p",{className:"description"},le,React.createElement("a",{href:"https://softlabbd.com/docs/how-to-use-and-enable-private-folders-automatically-link-manually/",target:"_blank",className:""},wp.i18n.__("Documentation","integrate-google-drive"),React.createElement("i",{className:"dashicons dashicons-editor-help"}))),!!_&&React.createElement("div",{className:"settings-field-sub"},React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Create Private Folder","integrate-google-drive")," "),React.createElement("div",{className:"settings-field-content"},React.createElement(Ta,{"data-tip":wp.i18n.__("PRO Feature","integrate-google-drive"),checked:n&&R,onChange:function(){n?l(xa(xa({},a),{},{createPrivateFolder:!R})):j(wp.i18n.__("Upgrade to Pro to use User Private Folders","integrate-google-drive"))}}),!n&&React.createElement(Ha,{effect:"solid",place:"right",backgroundColor:"#FF9F10",className:"igd-tooltip"}),React.createElement("p",{className:"description"},wp.i18n.__("Turn ON to create and link a folder automatically to the user who has not linked any folder yet while the user will view the module.","integrate-google-drive"))),!!R&&React.createElement(React.Fragment,null,React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Naming template","integrate-google-drive")," "),React.createElement("div",{className:"settings-field-content"},React.createElement("input",{"data-tip":wp.i18n.__("PRO Feature","integrate-google-drive"),type:"text",value:S,onChange:function(e){igd.isPro?l(xa(xa({},a),{},{nameTemplate:e.target.value})):j(wp.i18n.__("Upgrade to PRO to enable auto private folders creation for the user.","integrate-google-drive"))},onSelect:function(e){return de(e.target.selectionStart)},onFocus:function(e){return jQuery(e.target).closest(".settings-field-content").addClass("active")},onBlur:function(e){return jQuery(e.target).closest(".settings-field-content").removeClass("active")},ref:ue}),!n&&React.createElement(Ha,{effect:"solid",place:"left",backgroundColor:"#FF9F10",className:"igd-tooltip"}),React.createElement("p",{className:"description"},wp.i18n.__("Set the folder name template for the automatically created private folders.","integrate-google-drive")),React.createElement("div",{className:"template-tags"},React.createElement("div",{className:"template-tags-title",onClick:function(e){return jQuery(e.target).closest(".template-tags-title").toggleClass("active")}},React.createElement("i",{className:"dashicons dashicons-arrow-down-alt2"}),React.createElement("span",null,wp.i18n.__("Available template tags","integrate-google-drive")),React.createElement("span",null,wp.i18n.__(" (click to insert)","integrate-google-drive"))),React.createElement("div",{className:"template-tags-list"},re.map((function(e,t){if("boolean"!=typeof e)return""===e?React.createElement("span",{className:"tag-break"}):React.createElement("span",{className:"tag",key:t,onClick:function(){if(igd.isPro){var t;t=(t=null!==se?S.slice(0,se)+e+" "+S.slice(se):S+" "+e).trim(),l(xa(xa({},a),{},{nameTemplate:t}));var n=se+e.length+1;ue.current.setSelectionRange(n,n)}else j(wp.i18n.__("Upgrade to PRO to enable auto private folders creation.","integrate-google-drive"))}},e)}))))),React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Parent Folder","integrate-google-drive")," "),React.createElement("div",{className:"settings-field-content"},React.createElement("div",{className:"template-folder-wrap"},!!O&&React.createElement("div",{className:"template-folder"},React.createElement("div",{className:"template-folder-account"},igd.accounts[O.accountId].email),React.createElement("div",{className:"template-folder-item"},O.iconLink?React.createElement("img",{src:O.iconLink}):React.createElement("i",{className:"dashicons dashicons-category"}),React.createElement("span",{className:"template-folder-name"},O.name?O.name:E(O,igd.accounts[O.accountId]))),React.createElement("div",{className:"dashicons dashicons-no-alt",onClick:function(){return l(xa(xa({},a),{},{parentFolder:null}))}},React.createElement("span",{className:"screen-reader-text"},wp.i18n.__("Remove","integrate-google-drive")))),React.createElement("button",{"data-tip":wp.i18n.__("PRO Feature","integrate-google-drive"),className:"igd-btn ".concat(U?"btn-warning":"btn-primary"),onClick:function(){n?L(!U):j(wp.i18n.__("Upgrade to PRO to enable auto private folders creation for the user.","integrate-google-drive"))}},React.createElement("i",{className:"dashicons dashicons-open-folder"}),U?React.createElement("span",null,wp.i18n.__("Cancel","integrate-google-drive")):React.createElement("span",null,O?wp.i18n.__("Change Parent Folder","integrate-google-drive"):wp.i18n.__("Select Parent Folder","integrate-google-drive"))),!n&&React.createElement(Ha,{effect:"solid",place:"right",backgroundColor:"#FF9F10",className:"igd-tooltip"})),React.createElement("p",{className:"description"},wp.i18n.__("Select the parent folder where the automatically created private folders will be created.","integrate-google-drive"))),!!U&&n&&React.createElement("div",{id:"igd-select-files",className:"igd-module-builder-modal-wrap inline-select"},React.createElement(nr,{value:{editData:{folders:[]},setEditData:function(e){var t=e.folders,n=void 0===t?[]:t;l((function(e){return xa(xa({},e),{},{parentFolder:n[0]})})),L(!1)},isEditor:!0,isInlineSelect:!0,isSelectFiles:!0,selectionType:"parent",initParentFolder:p,initFolders:f}},React.createElement(ol,null))),React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Template Folder","integrate-google-drive")," "),React.createElement("div",{className:"settings-field-content"},React.createElement("div",{className:"template-folder-wrap"},!!F&&React.createElement("div",{className:"template-folder"},React.createElement("div",{className:"template-folder-account"},igd.accounts[F.accountId].email),React.createElement("div",{className:"template-folder-item"},F.iconLink?React.createElement("img",{src:F.iconLink}):React.createElement("i",{className:"dashicons dashicons-category"}),React.createElement("span",{className:"template-folder-name"},F.name?F.name:E(F,igd.accounts[F.accountId]))),React.createElement("div",{className:"dashicons dashicons-no-alt",onClick:function(){return l(xa(xa({},a),{},{templateFolder:null}))}},React.createElement("span",{className:"screen-reader-text"},wp.i18n.__("Remove","integrate-google-drive")))),React.createElement("button",{"data-tip":wp.i18n.__("PRO Feature","integrate-google-drive"),className:"igd-btn ".concat(z?"btn-warning":"btn-primary"),onClick:function(){n?H(!z):j(wp.i18n.__("Upgrade to Pro to use User Private Folders","integrate-google-drive"))}},React.createElement("i",{className:"dashicons dashicons-open-folder"}),z?React.createElement("span",null,wp.i18n.__("Cancel","integrate-google-drive")):React.createElement("span",null,F?wp.i18n.__("Change Template Folder","integrate-google-drive"):wp.i18n.__("Select Template Folder","integrate-google-drive"))),!n&&React.createElement(Ha,{effect:"solid",place:"right",backgroundColor:"#FF9F10",className:"igd-tooltip"})),!!O&&!!F&&O.accountId!==F.accountId&&React.createElement("div",{className:"template-folder-error"},React.createElement("i",{className:"dashicons dashicons-warning"}),React.createElement("span",null,wp.i18n.__("Template folder and parent folder must be from the same account.","integrate-google-drive"))),!!O&&!!F&&O.id===F.id&&React.createElement("div",{className:"template-folder-error"},React.createElement("i",{className:"dashicons dashicons-warning"}),React.createElement("span",null,wp.i18n.__("Template folder and parent folder can't be the same.","integrate-google-drive"))),React.createElement("p",{className:"description"},wp.i18n.__("Select the template folder that will be copied to the new private folder.","integrate-google-drive"))),!!z&&n&&React.createElement("div",{id:"igd-select-files",className:"igd-module-builder-modal-wrap inline-select"},React.createElement(nr,{value:{editData:{folders:[]},setEditData:function(e){var t=e.folders,n=void 0===t?[]:t;l((function(e){return xa(xa({},e),{},{templateFolder:n[0]})})),H(!1)},isEditor:!0,isInlineSelect:!0,isSelectFiles:!0,selectionType:"template",initParentFolder:p,initFolders:f}},React.createElement(ol,null))),React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Merge Folders","integrate-google-drive")," "),React.createElement("div",{className:"settings-field-content"},React.createElement(Ta,{"data-tip":wp.i18n.__("PRO Feature","integrate-google-drive"),checked:x,onChange:function(){n?l(xa(xa({},a),{},{mergePrivateFolders:!x})):j(wp.i18n.__("Upgrade to PRO to create private folders.","integrate-google-drive"))}}),React.createElement("p",{className:"description"},wp.i18n.__("Allow merging folders if a folder with the same name already exists.","integrate-google-drive")))))))),!!d&&React.createElement("h3",{className:"igd-settings-body-title form-entry-title"},wp.i18n.__("Form Entry Folders","integrate-google-drive")),!!d&&React.createElement("div",{className:"settings-field form-entry-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Create Entry Folders","integrate-google-drive")," "),React.createElement("div",{className:"settings-field-content"},React.createElement(Ta,{"data-tip":wp.i18n.__("PRO Feature","integrate-google-drive"),checked:P,onChange:function(){n?l(xa(xa({},a),{},{createEntryFolders:!P})):j(wp.i18n.__("Upgrade to Pro to create entry folders","integrate-google-drive"))}}),!n&&React.createElement(Ha,{effect:"solid",place:"right",backgroundColor:"#FF9F10",className:"igd-tooltip"}),React.createElement("p",{className:"description"},wp.i18n.__("Create a folder for each form entry.","integrate-google-drive")),!!P&&React.createElement("div",{className:"settings-field-sub"},React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Name template","integrate-google-drive")," "),React.createElement("div",{className:"settings-field-content"},React.createElement("input",{type:"text",value:D,onChange:function(e){igd.isPro?l(xa(xa({},a),{},{entryFolderNameTemplate:e.target.value})):j(wp.i18n.__("Upgrade to PRO to create form entry folders.","integrate-google-drive"))},onSelect:function(e){return pe(e.target.selectionStart)},ref:fe}),React.createElement("p",{className:"description"},wp.i18n.__("Set the form entry folder name template.","integrate-google-drive")),React.createElement("div",{className:"template-tags"},React.createElement("div",{className:"template-tags-title",onClick:function(e){return jQuery(e.target).closest(".template-tags-title").toggleClass("active")}},React.createElement("i",{className:"dashicons dashicons-arrow-down-alt2"}),React.createElement("span",null,wp.i18n.__("Available template tags","integrate-google-drive")),React.createElement("span",null,wp.i18n.__(" (click to insert)","integrate-google-drive"))),React.createElement("div",{className:"template-tags-list"},ae.map((function(e,t){if("boolean"!=typeof e)return""===e?React.createElement("span",{className:"tag-break"}):React.createElement("span",{className:"tag",key:t,onClick:function(){if(igd.isPro){var t;t=(t=null!==ge?D.slice(0,ge)+e+" "+D.slice(ge):D+" "+e).trim(),l(xa(xa({},a),{},{entryFolderNameTemplate:t}));var n=ge+e.length+1;fe.current.setSelectionRange(n,n)}else j(wp.i18n.__("Upgrade to PRO to enable auto entry folders creation.","integrate-google-drive"))}},e)}))),"cf7"===d&&React.createElement("div",{className:"igd-notice igd-notice-info"},React.createElement("div",{className:"igd-notice-content"},wp.i18n.__("You can also use the form field names to rename the upload folder with the form field values.","integrate-google-drive"),React.createElement("br",null),React.createElement("br",null),React.createElement("strong",null,wp.i18n.__("For example: ","integrate-google-drive")),wp.i18n.__('If you have a field with the name "your-name" and a field with the name "your-email", you can use the tags %field_your-name% and %field_your-email% to rename the upload folder.',"integrate-google-drive"))),["fluentforms","metform"].includes(d)&&React.createElement("div",{className:"igd-notice igd-notice-info"},React.createElement("div",{className:"igd-notice-content"},wp.i18n.__("You can also use the form field name attributes to rename the upload folder with the form field values.","integrate-google-drive"),React.createElement("br",null),React.createElement("br",null),React.createElement("strong",null,wp.i18n.__("For example: ","integrate-google-drive")),wp.i18n.__('If you have a field with the FIELD NAME attribute "your-name" and a field with the name attribute "your-email", you can use the tags %field_your-name% and %field_your-email% to rename the upload folder.',"integrate-google-drive"))),["wpforms","gravityforms","formidableforms"].includes(d)&&React.createElement("div",{className:"igd-notice igd-notice-info"},React.createElement("div",{className:"igd-notice-content"},wp.i18n.__("You can also use the form FIELD ID to rename the upload folder with the form field values.","integrate-google-drive"),React.createElement("br",null),React.createElement("br",null),React.createElement("strong",null,wp.i18n.__("For example: ","integrate-google-drive")),wp.i18n.__("If you have a field with the ID 1, you can use the tag %field_id_1% to rename the upload folder.","integrate-google-drive"))),"ninjaforms"===d&&React.createElement("div",{className:"igd-notice igd-notice-info"},React.createElement("div",{className:"igd-notice-content"},wp.i18n.__("You can also use the form FIELD KEY  to rename the upload folder with the form field values.","integrate-google-drive"),React.createElement("br",null),React.createElement("br",null),React.createElement("strong",null,wp.i18n.__("For example: ","integrate-google-drive")),wp.i18n.__('If you have a field with the key "your-name" and a field with the key "your-email", you can use the tags %field_your-name% and %field_your-email% to rename the upload folder.',"integrate-google-drive"))),"elementor"===d&&React.createElement("div",{className:"igd-notice igd-notice-info"},React.createElement("div",{className:"igd-notice-content"},wp.i18n.__("You can also use the field ID  to rename the upload folder with the form field values.","integrate-google-drive"),React.createElement("br",null),React.createElement("br",null),React.createElement("strong",null,wp.i18n.__("For example: ","integrate-google-drive")),wp.i18n.__('If you have a field with the id "name" and a field with the key "field_12ca45", you can use the tags %name% and %field_12ca45% to rename the upload folder.',"integrate-google-drive")))))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Merge Folders","integrate-google-drive")," "),React.createElement("div",{className:"settings-field-content"},React.createElement(Ta,{"data-tip":wp.i18n.__("PRO Feature","integrate-google-drive"),checked:T,onChange:function(){n?l(xa(xa({},a),{},{mergeFolders:!T})):j(wp.i18n.__("Upgrade to Pro to create entry folders","integrate-google-drive"))}}),React.createElement("p",{className:"description"},wp.i18n.__("Allow merging folders if a folder with the same name already exists, and upload files into that existing folder instead of creating a new one.","integrate-google-drive"))))))),(!w||!!c||!!g)&&!_&&React.createElement("div",{ref:te,className:"igd-select-sources-wrap"},!g&&React.createElement("div",{className:"source-title-wrap"},!!ne&&React.createElement("h3",{className:"igd-select-sources-title"},ne),!!ie&&React.createElement("p",{className:"igd-select-sources-description"},ie)),React.createElement($i,{isShortcodeBuilder:!0,shortcodeBuilderType:h,isSelectFiles:c,selectionType:u,isLMS:g,isWooCommerce:v,setSelectedFolders:function(e){g&&o(e),l(xa(xa({},a),{},{folders:Fa(e).filter((function(e,t,n){return t===n.findIndex((function(t){return e.id?t.id===e.id:t===e}))}))}))},selectedFolders:b,initParentFolder:W,initFolders:f}),!s&&!g&&React.createElement("div",{className:"igd-selected-list"},React.createElement("div",{className:"igd-selected-list-header"},React.createElement("span",{className:"header-title"},"(",b.length,") ",wp.i18n.__("Selected Items","integrate-google-drive")),!!b&&!!b.length&&React.createElement("button",{className:"igd-btn btn-danger",onClick:function(){return l(xa(xa({},a),{},{folders:[]}))}},React.createElement("span",null,wp.i18n.__("Clear","integrate-google-drive")))),React.createElement(Wa,{lockAxis:"y",lockToContainerEdges:!0,shouldCancelStart:function(e){return!e.target.classList.contains("sort-item")},items:b,helperClass:"sortable-item",onSortEnd:function(e){var t=e.oldIndex,n=e.newIndex;l((function(e){return xa(xa({},e),{},{folders:(i=b,r=t,a=n,function(e,t,n){const i=t<0?e.length+t:t;if(i>=0&&i<e.length){const i=n<0?e.length+n:n,[r]=e.splice(t,1);e.splice(i,0,r)}}(i=[...i],r,a),i)});var i,r,a}))},onRemove:function(e){return l(xa(xa({},a),{},{folders:b.filter((function(t){return t!==e}))}))},onClick:function(e){e.parents&&Q((function(t){return xa(xa({},t),{},{id:e.parents[0],accountId:e.accountId})}))}}),(!b||!b.length)&&React.createElement("div",{className:"no-files-message"},React.createElement("i",{className:"dashicons dashicons-info"}),React.createElement("span",null,wp.i18n.__("No items selected","integrate-google-drive"),".")),q&&React.createElement("p",null,wp.i18n.__("Choose a single upload folder for file uploads.","integrate-google-drive"),!!b.length&&React.createElement("span",null,wp.i18n.__("To change it, deselect the current folder and select a new one.","integrate-google-drive"))),Z&&React.createElement("p",null,wp.i18n.__("If folder is selected, all the files of the folder will be embedded.","integrate-google-drive"),React.createElement("br",null),React.createElement("b",null,"Note:")," ",wp.i18n.__("Embed files must be public","integrate-google-drive")))))}function Va(e){return Va="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Va(e)}function qa(e){return function(e){if(Array.isArray(e))return Ga(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Ga(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ga(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ga(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function Ya(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Ja(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ya(Object(n),!0).forEach((function(t){Xa(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ya(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xa(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Va(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==Va(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Va(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Za=wp.components,$a=Za.FormToggle,eo=Za.CheckboxControl,to=React.useContext;function no(){var e=to(tr),t=e.editData,n=e.setEditData,i=e.isFormBuilder,r=t.allowExtensions,a=t.allowAllExtensions,o=t.allowExceptExtensions,l=t.allowNames,c=t.allowAllNames,s=t.allowExceptNames,d=t.nameFilterOptions,u=void 0===d?["files"]:d,m=t.showFiles,g=void 0===m||m,p=t.showFolders,f=void 0===p||p,v=t.type,h=t.maxFileSize,w=t.maxFiles,y=t.minFiles,b=t.minFileSize,_=t.fileNumbers,E="uploader"===v,R="browser"===v,N="gallery"===v,S="embed"===v,C="search"===v,O="media"===v,k="slider"===v;return React.createElement("div",{className:"shortcode-module-body"},(R||N||C)&&React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Show Files","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement($a,{checked:g,onChange:function(){return n(Ja(Ja({},t),{},{showFiles:!g}))}}),React.createElement("p",{className:"description"},wp.i18n.__("If turned off, files won't show.","integrate-google-drive")))),(R||N||C)&&React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Show Folders","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement($a,{checked:f,onChange:function(){return n(Ja(Ja({},t),{},{showFolders:!f}))}}),React.createElement("p",{className:"description"},wp.i18n.__("If turned off, folders won't show.","integrate-google-drive")))),React.createElement("div",{className:"settings-field filter-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Allowed Extensions","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement("div",{className:"filter-field-input"},React.createElement("input",{type:"text",disabled:a,value:r,onChange:function(e){return n(Ja(Ja({},t),{},{allowExtensions:e.target.value}))}}),React.createElement("p",{className:"description"},wp.i18n.sprintf(wp.i18n.__('Enter comma ( , ) seperated file extensions to allow, such as "jpg, png, gif". Leave empty to %s all extension files.',"integrate-google-drive"),E?wp.i18n.__("upload","integrate-google-drive"):wp.i18n.__("show","integrate-google-drive")))),React.createElement("div",{className:"filter-field-all"},React.createElement("div",null,React.createElement("h4",{className:"filter-field-all-label"},wp.i18n.__("Allow all : ","integrate-google-drive")," "),React.createElement($a,{checked:a,onChange:function(){return n(Ja(Ja({},t),{},{allowAllExtensions:!a}))}})),React.createElement("div",null,React.createElement("h4",{className:"filter-field-all-label"},wp.i18n.__("Except : ","integrate-google-drive")),React.createElement("input",{type:"text",disabled:!a,value:o,onChange:function(e){return n(Ja(Ja({},t),{},{allowExceptExtensions:e.target.value}))}})),React.createElement("p",{className:"description"},wp.i18n.sprintf(wp.i18n.__('When "Allow all" is enabled, exceptions will not be %s.',"integrate-google-drive"),E?wp.i18n.__("uploaded","integrate-google-drive"):wp.i18n.__("displayed","integrate-google-drive")))))),(R||N||S||C||O||k)&&React.createElement("div",{className:"settings-field filter-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Allowed Names","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement("div",{className:"filter-field-input"},React.createElement("input",{type:"text",disabled:c,value:l,onChange:function(e){return n(Ja(Ja({},t),{},{allowNames:e.target.value}))}}),React.createElement("p",{className:"description"},wp.i18n.sprintf(wp.i18n.__("Enter file and folder names, separated by commas, to display. Leave blank to display all files and folders.","integrate-google-drive")))),React.createElement("div",{className:"filter-field-all"},React.createElement("div",null,React.createElement("h4",{className:"filter-field-all-label"},wp.i18n.__("Allow all : ","integrate-google-drive")," "),React.createElement($a,{checked:c,onChange:function(){return n(Ja(Ja({},t),{},{allowAllNames:!c}))}})),React.createElement("div",null,React.createElement("h4",{className:"filter-field-all-label"},wp.i18n.__("Except : ","integrate-google-drive")),React.createElement("input",{type:"text",disabled:!c,value:s,onChange:function(e){return n(Ja(Ja({},t),{},{allowExceptNames:e.target.value}))}})),React.createElement("p",{className:"description"},wp.i18n.__('When "Allow all" is enabled, exceptions will not be displayed.',"integrate-google-drive")),React.createElement("div",{className:"igd-notice igd-notice-info"},React.createElement("div",{className:"igd-notice-content"},wp.i18n.__("You can use the * and ? wildcards to match multiple characters and single characters respectively.","integrate-google-drive"),React.createElement("br",null),React.createElement("strong",null,wp.i18n.__("For example:","integrate-google-drive")),React.createElement("ul",null,React.createElement("li",null,React.createElement("strong",null,"report*, *.txt")," ",wp.i18n.__("will match all files that start with report and have the .txt extension.","integrate-google-drive")),React.createElement("li",null,React.createElement("strong",null,"file?, image_*")," ",wp.i18n.__('will match all files that start with file like "file1", "file2", and all files that start with image_.',"integrate-google-drive"))))),React.createElement("div",{className:"name-filter-option"},React.createElement("h4",{className:"name-filter-option-label"},wp.i18n.__("Apply to : ","integrate-google-drive")," "),["files","folders"].map((function(e){return React.createElement("div",{key:e,className:"name-filter-option-item"},React.createElement(eo,{label:e,checked:u.includes(e),onChange:function(){u.includes(e)?n(Ja(Ja({},t),{},{nameFilterOptions:u.filter((function(t){return t!==e}))})):n(Ja(Ja({},t),{},{nameFilterOptions:[].concat(qa(u),[e])}))}}))})),React.createElement("p",{className:"description"},wp.i18n.__("Select the type of files to apply the name filters.","integrate-google-drive")))))),(R||N||C||O||k)&&React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Maximum File Numbers","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement("input",{type:"number",min:1,max:1e3,value:_,onChange:function(e){return n(Ja(Ja({},t),{},{fileNumbers:e.target.value}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Enter the maximum number of how many files you want to show. Leave empty to show all files.","integrate-google-drive")))),E&&React.createElement(React.Fragment,null,React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Max File Uploads","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement("input",{type:"number",min:1,value:w,onChange:function(e){var i=e.target.value;i=i.replace(/[^0-9]/g,""),n(Ja(Ja({},t),{},{maxFiles:i}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Enter the max number of files to upload at once. Leave empty for no limit.","integrate-google-drive")))),i&&"metform"!==i&&React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Min File Uploads","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement("input",{type:"number",min:1,value:y,onChange:function(e){var i=e.target.value;i=i.replace(/[^0-9]/g,""),n(Ja(Ja({},t),{},{minFiles:i}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Enter the minimum number of files to upload. Leave empty for no limit.","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Max File Size (MB)","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement("input",{type:"number",min:0,value:h,onChange:function(e){var i=e.target.value;i=i.replace(/[^0-9]/g,""),n(Ja(Ja({},t),{},{maxFileSize:i}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Enter the maximum upload file size (MB).","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Min File Size (MB)","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement("input",{type:"number",min:0,value:b,onChange:function(e){var i=e.target.value;i=i.replace(/[^0-9]/g,""),n(Ja(Ja({},t),{},{minFileSize:i}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Enter the minimum upload file size (MB).","integrate-google-drive"))))))}function io(e){return io="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},io(e)}function ro(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,a,o,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=a.call(n)).done)&&(l.push(i.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ao(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ao(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ao(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function oo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function lo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oo(Object(n),!0).forEach((function(t){co(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function co(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==io(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==io(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===io(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var so=wp.components,uo=so.ButtonGroup,mo=so.Button,go=so.FormToggle,po=so.RangeControl,fo=so.SelectControl,vo=so.TextControl,ho=so.__experimentalRadio,wo=so.__experimentalRadioGroup,yo=React,bo=yo.useState,_o=yo.useContext,Eo=yo.useEffect,Ro=yo.useRef;function No(){var e=igd.isPro,t=_o(tr),n=t.editData,i=t.setEditData,r=t.isFormBuilder,a=t.isWooCommerce,o={name:wp.i18n.__("Name","integrate-google-drive"),size:wp.i18n.__("Size","integrate-google-drive"),created:wp.i18n.__("Created Date","integrate-google-drive"),updated:wp.i18n.__("Modified Date","integrate-google-drive")},l={asc:wp.i18n.__("Ascending","integrate-google-drive"),desc:wp.i18n.__("Descending","integrate-google-drive")},c=n.moduleWidth,s=void 0===c?"100%":c,d=n.moduleHeight,u=void 0===d?"":d,m=n.embedWidth,g=void 0===m?"100%":m,p=n.embedHeight,f=void 0===p?"480px":p,v=n.galleryHeight,h=void 0===v?300:v,w=n.galleryMargin,y=void 0===w?5:w,b=n.galleryColumns,_=void 0===b?{xs:1,sm:2,md:3,lg:4,xl:5}:b,E=n.galleryView,R=void 0===E?"rounded":E,N=n.galleryLayout,S=void 0===N?"justified":N,C=n.galleryFolderView,O=void 0===C?"title":C,k=n.galleryAspectRatio,F=void 0===k?"1/1":k,A=n.galleryOverlay,x=void 0===A||A,P=n.galleryOverlayTitle,I=void 0===P||P,D=n.galleryOverlayDescription,T=void 0===D||D,B=n.galleryOverlaySize,U=void 0!==B&&B,L=n.galleryImageSize,M=void 0===L?"medium":L,z=n.galleryCustomSizeWidth,H=n.galleryCustomSizeHeight,K=n.showHeader,W=void 0===K||K,Q=n.showBreadcrumbs,V=void 0===Q||Q,q=n.directImage,G=void 0!==q&&q,Y=n.showFileName,J=void 0!==Y&&Y,X=n.allowEmbedPopout,Z=void 0===X||X,$=n.embedType,ee=void 0===$?"readOnly":$,te=n.showRefresh,ne=void 0===te||te,ie=n.showSorting,re=void 0===ie||ie,ae=n.showPlaylist,oe=void 0===ae||ae,le=n.openedPlaylist,ce=void 0===le||le,se=n.playlistAutoplay,de=void 0===se||se,ue=n.playlistThumbnail,me=void 0===ue||ue,ge=n.playlistNumber,pe=void 0===ge||ge,fe=n.playlistPosition,ve=void 0===fe?"left":fe,he=n.nextPrevious,we=void 0===he||he,ye=n.rewindForward,be=void 0!==ye&&ye,_e=n.allowEmbedPlayer,Ee=n.sort,Re=void 0===Ee?{sortBy:"name",sortDirection:"asc"}:Ee,Ne=n.view,Se=void 0===Ne?"list":Ne,Ce=n.lazyLoad,Oe=void 0===Ce||Ce,ke=n.lazyLoadNumber,Fe=void 0===ke?100:ke,Ae=n.showLastModified,xe=void 0!==Ae&&Ae,Pe=n.type,je=n.openNewTab,Ie=void 0===je||je,De=n.uploadImmediately,Te=n.enableFolderUpload,Be=n.overwrite,Ue=n.uploadFileName,Le=void 0===Ue?"%file_name%%file_extension%":Ue,Me=n.showUploadLabel,ze=n.uploadLabelText,He=void 0===ze?wp.i18n.__("Upload Files","integrate-google-drive"):ze,Ke=n.showUploadConfirmation,We=void 0===Ke?e:Ke,Qe=n.uploadConfirmationMessage,Ve=void 0===Qe?"<h3>".concat(wp.i18n.__("Upload successful!","integrate-google-drive"),"</h3><p>").concat(wp.i18n.__("Your file(s) have been uploaded. Thank you for your submission!","integrate-google-drive"),"</p>"):Qe,qe=n.slideName,Ge=void 0===qe||qe,Ye=n.slideDescription,Je=void 0!==Ye&&Ye,Xe=n.slideHeight,Ze=void 0===Xe?"300px":Xe,$e=n.sliderImageSize,et=void 0===$e?"medium":$e,tt=n.sliderCustomSizeWidth,nt=n.sliderCustomSizeHeight,it=n.slidesPerPage,rt=void 0===it?{xs:1,sm:2,md:3,lg:4,xl:5}:it,at=n.slideAutoplay,ot=void 0===at||at,lt=n.slideAutoplaySpeed,ct=void 0===lt?3e3:lt,st=n.slideDots,dt=void 0===st||st,ut=n.slideArrows,mt=void 0===ut||ut,gt=n.slideGap,pt=void 0===gt?5:gt,ft=n.woocommerceRedirect,vt=n.woocommerceAddPermission,ht="browser"===Pe,wt="uploader"===Pe,yt="gallery"===Pe,bt="search"===Pe,_t="media"===Pe,Et="view"===Pe,Rt="embed"===Pe,Nt="slider"===Pe,St="upload-confirmation-message",Ct={tinymce:{wpautop:!0,toolbar1:"formatselect,bold,italic,strikethrough,forecolor,backcolor,bullist,numlist,blockquote,hr,alignleft,aligncenter,alignright,link,unlink,media,spellchecker,fullscreen,wp_adv",toolbar2:"underline,alignjustify,forecolor,pastetext,removeformat,charmap,outdent,indent,undo,redo,wp_help",plugins:"lists,fullscreen,paste,wpautoresize,wpdialogs,wpeditimage,wpgallery,wplink,wptextpattern,wpview,wordpress,wpemoji,media,textcolor,hr",menubar:!1,branding:!1,height:250,wp_adv_height:48,setup:function(e){e.on("change",(function(){var t=e.getContent();i((function(e){return lo(lo({},e),{},{uploadConfirmationMessage:t})}))}))}},quicktags:{buttons:"strong,em,link,block,del,ins,img,ul,ol,li,code,close"},mediaButtons:!0};Eo((function(){if(!document.body.classList.contains("et-fb")&&!r&&wt&&We&&e&&wp.editor)return setTimeout((function(){wp.editor.remove(St),wp.domReady((function(){return wp.editor.initialize(St,Ct)}))}),100),function(){document.getElementById(St)&&wp.editor.remove(St)}}),[We]);var Ot=ro(bo(null),2),kt=Ot[0],Ft=Ot[1],At=Ro(),xt=ro(bo("lg"),2),Pt=xt[0],jt=xt[1];return React.createElement("div",{className:"shortcode-module-body"},!a&&!Nt&&!Rt&&!Et&&React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Module Container","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement("div",{className:"settings-field-sub"},React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Container Width","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement("input",{type:"text",value:s,onChange:function(e){return i(lo(lo({},n),{},{moduleWidth:e.target.value}))},placeholder:"100%"}),React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Container Height","integrate-google-drive")),React.createElement("input",{type:"text",value:u,onChange:function(e){return i(lo(lo({},n),{},{moduleHeight:e.target.value}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Set the module container width and height. You can use any valid CSS unit (pixels, percentage), eg '360px', '780px', '80%'. Keep blank for default value.","integrate-google-drive"))))))),Rt&&React.createElement(React.Fragment,null,React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Embed Iframe Width","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement("input",{type:"text",value:g,onChange:function(e){return i(lo(lo({},n),{},{embedWidth:e.target.value}))},placeholder:"100%"}),React.createElement("p",{className:"description"},wp.i18n.__("Set embed iframe width. You can use any valid CSS unit (pixels, percentage), eg '360px', '780px', '100%'. Keep blank for default value.","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Embed Iframe Height","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement("input",{type:"text",value:f,onChange:function(e){return i(lo(lo({},n),{},{embedHeight:e.target.value}))},placeholder:"480px"}),React.createElement("p",{className:"description"},wp.i18n.__("Set embed iframe height. You can use any valid CSS unit (pixels, percentage), eg '360px', '780px', '100%'. Keep blank for default value.","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Show File Name","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(go,{checked:J,onChange:function(){return i(lo(lo({},n),{},{showFileName:!J}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Show/ hide the file name at the top of the file.","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Direct Media Display","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(go,{"data-tip":wp.i18n.__("PRO Feature","integrate-google-drive"),checked:e&&G,onChange:function(){e?i(lo(lo({},n),{},{directImage:!G})):j(wp.i18n.__("Upgrade to Pro to display Audio, Video and Images directly without embed.","integrate-google-drive"))}}),!e&&React.createElement(ReactTooltip,{effect:"solid",place:"right",backgroundColor:"#FF9F10",className:"igd-tooltip"}),React.createElement("p",{className:"description"},wp.i18n.__("Display Audio, Video and Image files directly without embedding them into an iframe.","integrate-google-drive")),React.createElement("div",{className:"igd-notice igd-notice-info"},React.createElement("div",{className:"igd-notice-content"},React.createElement("p",{className:"description"},wp.i18n.__("Occasionally, audio and video files may not play correctly within an embedded player. Enable this option to resolve the issue by displaying media files directly, bypassing the embed.","integrate-google-drive")))))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Embed Type","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(wo,{"data-tip":wp.i18n.__("PRO Feature","integrate-google-drive"),label:"Embed Type",checked:e?ee:"readOnly",onChange:function(t){e?i(lo(lo({},n),{},{embedType:t})):j(wp.i18n.__("Upgrade to Pro to change the embed type.","integrate-google-drive"))}},React.createElement(ho,{value:"readOnly"},wp.i18n.__("Read Only","integrate-google-drive")),React.createElement(ho,{value:"editable"},wp.i18n.__("Editable","integrate-google-drive")),React.createElement(ho,{value:"fullEditable"},wp.i18n.__("Full Editable","integrate-google-drive"))),!e&&React.createElement(ReactTooltip,{effect:"solid",place:"right",backgroundColor:"#FF9F10",className:"igd-tooltip"}),React.createElement("p",{className:"description"},wp.i18n.__("Select the embed type for the selected documents.","integrate-google-drive")),React.createElement("div",{className:"igd-notice igd-notice-info"},React.createElement("div",{className:"igd-notice-content"},React.createElement("p",{className:"description"},React.createElement("strong",null,wp.i18n.__("Read Only","integrate-google-drive"))," - ",wp.i18n.__("The document will be displayed in a read-only mode.","integrate-google-drive"),React.createElement("br",null),React.createElement("strong",null,wp.i18n.__("Editable","integrate-google-drive"))," - ",wp.i18n.__("The document will be displayed in an editable mode. Users will be able to edit the document.","integrate-google-drive"),React.createElement("br",null),React.createElement("strong",null,wp.i18n.__("Full Editable","integrate-google-drive"))," - ",wp.i18n.__("The document will be displayed in an editable mode with extended edit tool-bars and features.","integrate-google-drive")),React.createElement("p",{className:"description"},React.createElement("strong",null,wp.i18n.__("Note:","integrate-google-drive"))," ",wp.i18n.__("The editable mode is only available for the editable Google Docs & Office Docs.","integrate-google-drive")))))),"readOnly"===ee&&React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Allow Pop-out","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(go,{checked:Z,onChange:function(){return i(lo(lo({},n),{},{allowEmbedPopout:!Z}))}}),React.createElement("p",{className:"description"},wp.i18n.__("In the embed document view (e.g. a pdf) there is a pop-out button that when clicked will bring the user to the Google Drive view of the document, with full features to download, print, etc. ","integrate-google-drive")),React.createElement("div",{className:"igd-notice igd-notice-info"},React.createElement("div",{className:"igd-notice-content"},React.createElement("p",{className:"description"},wp.i18n.__("If the pop-out option is disabled, users will be able to view the embedded document only on your website and not on Google Drive.","integrate-google-drive"))))))),yt&&React.createElement(React.Fragment,null,React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Layout","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(uo,{"data-tip":wp.i18n.__("PRO Feature","integrate-google-drive")},["justified","grid","masonry"].map((function(t){return React.createElement(mo,{isPrimary:t===S,isSecondary:t!==S,onClick:function(){e?i(lo(lo({},n),{},{galleryLayout:t})):j(wp.i18n.__("Upgrade to change the gallery layout.","integrate-google-drive"))}},React.createElement("i",{className:"dashicons dashicons-grid-view"}),React.createElement("span",{style:{textTransform:"capitalize"}},t))}))),!e&&React.createElement(ReactTooltip,{effect:"solid",place:"right",backgroundColor:"#FF9F10",className:"igd-tooltip"}),React.createElement("p",{className:"description"},wp.i18n.__("Select the layout for the gallery.","integrate-google-drive")))),(!e||"justified"!==S)&&React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Columns","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement("div",{className:"column-devices"},React.createElement(uo,{"data-tip":wp.i18n.__("PRO Feature","integrate-google-drive")},["xs","sm","md","lg","xl"].map((function(t){var n="xs"===t?"Mobile":"sm"===t?"Tablet":"md"===t?"Laptop":"lg"===t?"Desktop":"xl"===t?"Large Desktop":"";return React.createElement(mo,{isPrimary:t===Pt,isSecondary:t!==Pt,onClick:function(){e?jt(t):j(wp.i18n.__("Upgrade to change the gallery column.","integrate-google-drive"))}},React.createElement("span",null,n))})))),React.createElement(po,{"data-tip":wp.i18n.__("PRO Feature","integrate-google-drive"),value:_[Pt],onChange:function(t){e?i(lo(lo({},n),{},{galleryColumns:lo(lo({},_),{},co({},Pt,t))})):j(wp.i18n.__("Upgrade to change the gallery column.","integrate-google-drive"))},min:1,max:24,marks:[{value:1,label:"1"},{value:4,label:"4"},{value:8,label:"8"},{value:12,label:"12"},{value:16,label:"16"},{value:20,label:"20"},{value:24,label:"24"}]}),!e&&React.createElement(ReactTooltip,{effect:"solid",place:"right",backgroundColor:"#FF9F10",className:"igd-tooltip"}),React.createElement("p",{className:"description"},wp.i18n.__("Set the number of columns to display on each device.","integrate-google-drive")))),"justified"===S&&React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Row Height","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(po,{value:h,onChange:function(e){return i(lo(lo({},n),{},{galleryHeight:e}))},allowReset:!0,resetFallbackValue:300,min:0,max:1e3,marks:[{value:0,label:"0"},{value:1e3,label:"1000"}],step:10}),React.createElement("p",{className:"description"},wp.i18n.__("The ideal height you want your grid rows to be. It won't set it exactly to this as plugin adjusts the row height to get the correct width. Leave empty for default value.","integrate-google-drive")))),"grid"===S&&React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Aspect Ratio","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(uo,null,["1/1","3/2","4/3","9/16","16/9","21/9"].map((function(e){return React.createElement(mo,{isPrimary:e===F,isSecondary:e!==F,onClick:function(){return i(lo(lo({},n),{},{galleryAspectRatio:e}))}},React.createElement("span",null,e.replace("/",":")))}))),React.createElement("p",{className:"description"},wp.i18n.__("Select the aspect ratio for the gallery items.","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Margin","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(po,{value:y,onChange:function(e){return i(lo(lo({},n),{},{galleryMargin:e}))},allowReset:!0,resetFallbackValue:5,min:0,max:100,marks:[{value:0,label:"0"},{value:100,label:"100"}]}),React.createElement("p",{className:"description"},wp.i18n.__("The margin between each image in the gallery. Leave empty for default value.","integrate-google-drive")))),React.createElement("div",{className:"settings-field field-gallery-image-size"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Image Thumbnail Size","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(fo,{value:M,onChange:function(e){return i(lo(lo({},n),{},{galleryImageSize:e}))},options:[{label:wp.i18n.__("Small - 300x300","integrate-google-drive"),value:"small"},{label:wp.i18n.__("Medium - 600x400","integrate-google-drive"),value:"medium"},{label:wp.i18n.__("Large - 1024x768","integrate-google-drive"),value:"large"},{label:wp.i18n.__("Full","integrate-google-drive"),value:"full"},{label:wp.i18n.__("Custom","integrate-google-drive"),value:"custom"}]}),React.createElement("p",{className:"description"},wp.i18n.__("Select the thumbnail size for the gallery images.","integrate-google-drive")),"custom"===M&&React.createElement("div",{className:"settings-field-sub"},React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Custom Size","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement("div",{className:"gallery-custom-size-wrap"},React.createElement(vo,{value:z,onChange:function(e){return i(lo(lo({},n),{},{galleryCustomSizeWidth:e}))},placeholder:wp.i18n.__("Width","integrate-google-drive"),type:"number",min:0}),React.createElement(vo,{value:H,onChange:function(e){return i(lo(lo({},n),{},{galleryCustomSizeHeight:e}))},placeholder:wp.i18n.__("Height","integrate-google-drive"),type:"number",min:0})),React.createElement("p",{className:"description"},wp.i18n.__("Set the custom thumbnail size width and height for the gallery images.","integrate-google-drive"))))))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Thumbnail View","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(uo,null,React.createElement(mo,{isPrimary:"rounded"===R,isSecondary:"square"===R,onClick:function(){return i(lo(lo({},n),{},{galleryView:"rounded"}))}},React.createElement("i",{className:"dashicons dashicons-grid-view"}),React.createElement("span",null,wp.i18n.__("Rounded","integrate-google-drive"))),React.createElement(mo,{isPrimary:"square"===R,isSecondary:"rounded"===R,onClick:function(){return i(lo(lo({},n),{},{galleryView:"square"}))}},React.createElement("i",{className:"dashicons dashicons-screenoptions"}),React.createElement("span",null,wp.i18n.__("Square","integrate-google-drive")))),React.createElement("p",{className:"description"},wp.i18n.__("Select the image thumbnail view style for the gallery.","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Folder View","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(uo,null,React.createElement(mo,{isPrimary:"title"===O,isSecondary:"thumbnail"===O,onClick:function(){return i(lo(lo({},n),{},{galleryFolderView:"title"}))}},React.createElement("i",{className:"dashicons dashicons-info"}),React.createElement("span",null,wp.i18n.__("Title","integrate-google-drive"))),React.createElement(mo,{isPrimary:"thumbnail"===O,isSecondary:"title"===O,onClick:function(){return i(lo(lo({},n),{},{galleryFolderView:"thumbnail"}))}},React.createElement("i",{className:"dashicons dashicons-format-gallery"}),React.createElement("span",null,wp.i18n.__("Thumbnail","integrate-google-drive")))),React.createElement("p",{className:"description"},wp.i18n.__("Select the folders view style for the gallery.","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Show Overlay","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(go,{checked:x,onChange:function(){return i(lo(lo({},n),{},{galleryOverlay:!x}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Show the image overlay on hover.","integrate-google-drive")),!!x&&React.createElement("div",{className:"settings-field-sub"},React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Show Title","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(go,{checked:I,onChange:function(){return i(lo(lo({},n),{},{galleryOverlayTitle:!I}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Show the gallery item title on hover overlay.","integrate-google-drive")),React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Show Description","integrate-google-drive")),React.createElement(go,{checked:T,onChange:function(){return i(lo(lo({},n),{},{galleryOverlayDescription:!T}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Show the gallery item description on hover overlay.","integrate-google-drive")),React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Show Size","integrate-google-drive")),React.createElement(go,{checked:U,onChange:function(){return i(lo(lo({},n),{},{galleryOverlaySize:!U}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Show the gallery item size on hover overlay.","integrate-google-drive")))))))),(ht||bt)&&React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Browser View","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(uo,null,React.createElement(mo,{isPrimary:"grid"===Se,isSecondary:"list"===Se,onClick:function(){return i(lo(lo({},n),{},{view:"grid"}))}},React.createElement("i",{className:"dashicons dashicons-grid-view"}),React.createElement("span",null,wp.i18n.__("Grid","integrate-google-drive"))),React.createElement(mo,{isPrimary:"list"===Se,isSecondary:"grid"===Se,onClick:function(){return i(lo(lo({},n),{},{view:"list"}))}},React.createElement("i",{className:"dashicons dashicons-list-view"}),React.createElement("span",null,wp.i18n.__("List","integrate-google-drive")))),React.createElement("p",{className:"description"},wp.i18n.__("Select the file browser view.","integrate-google-drive")),React.createElement("div",{className:"settings-field-sub"},"list"===Se&&React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Show Last Modified Field","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(go,{checked:xe,onChange:function(){return i(lo(lo({},n),{},{showLastModified:!xe}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Show/ hide the file last modified date field in the list view.","integrate-google-drive"))))))),(ht||yt)&&React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Enable Lazy load","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(go,{checked:Oe,onChange:function(){return i(lo(lo({},n),{},{lazyLoad:!Oe}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Enable/ disable files lazy load.","integrate-google-drive")),React.createElement("div",{className:"settings-field-sub"},Oe&&React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Lazy load number","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(po,{value:Fe,onChange:function(e){return i(lo(lo({},n),{},{lazyLoadNumber:e}))},allowReset:!0,resetFallbackValue:100,min:0,max:1e3,marks:[{value:0,label:"0"},{value:1e3,label:"1000"}],step:10}),React.createElement("p",{className:"description"},wp.i18n.__("Set the number of files to load on each lazy load.","integrate-google-drive"))))))),(ht||yt)&&React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Show Header","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(go,{checked:W,onChange:function(){return i(lo(lo({},n),{},{showHeader:!W}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Show/ hide the file browser header.","integrate-google-drive")),React.createElement("div",{className:"settings-field-sub"},W&&React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Show Breadcrumbs Navigation","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(go,{checked:V,onChange:function(){return i(lo(lo({},n),{},{showBreadcrumbs:!V}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Show/ hide the breadcrumbs folder navigation in the header.","integrate-google-drive")))),W&&React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Show Refresh Button","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(go,{checked:ne,onChange:function(){return i(lo(lo({},n),{},{showRefresh:!ne}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Show/ hide the refresh (sync) button in the header.","integrate-google-drive")))),W&&React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Show Sorting Button","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(go,{checked:re,onChange:function(){return i(lo(lo({},n),{},{showSorting:!re}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Show/ hide the files sorting options button in the header","integrate-google-drive"))))))),_t&&React.createElement(React.Fragment,null,React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Allow Embed Player","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(go,{checked:_e,onChange:function(){return i(lo(lo({},n),{},{allowEmbedPlayer:!_e}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Enable embed player for the large video files using Google Drive native player.","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Show Next & Previous","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(go,{checked:we,onChange:function(){return i(lo(lo({},n),{},{nextPrevious:!we}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Show/hide the next & previous buttons in the player. Enables navigation between media items in the playlist.","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Show Rewind & Forward","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(go,{checked:be,onChange:function(){return i(lo(lo({},n),{},{rewindForward:!be}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Show/hide the rewind & forward buttons in the player. Allows users to quickly skip backward or forward in the video.","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Show Playlist","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(go,{checked:oe,onChange:function(){return i(lo(lo({},n),{},{showPlaylist:!oe}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Show/hide the playlist in the player.","integrate-google-drive")),oe&&React.createElement("div",{className:"settings-field-sub"},React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Opened Playlist","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(go,{checked:ce,onChange:function(){return i(lo(lo({},n),{},{openedPlaylist:!ce}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Should be the playlist opened by default.","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Playlist Autoplay","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(go,{checked:de,onChange:function(){return i(lo(lo({},n),{},{playlistAutoplay:!de}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Start playing next item automatically in the playlist once the current item is ended.","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Show Thumbnail","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(go,{checked:me,onChange:function(){return i(lo(lo({},n),{},{playlistThumbnail:!me}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Show/hide the thumbnail in the playlist.","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Show Number Prefix","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(go,{checked:pe,onChange:function(){return i(lo(lo({},n),{},{playlistNumber:!pe}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Show/hide the numeric prefix in the playlist items.","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Playlist Position","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(wo,{label:"Player Position",checked:ve,onChange:function(e){i(lo(lo({},n),{},{playlistPosition:e}))}},React.createElement(ho,{value:"left"},wp.i18n.__("Left","integrate-google-drive")),React.createElement(ho,{value:"right"},wp.i18n.__("Right","integrate-google-drive")),React.createElement(ho,{value:"bottom"},wp.i18n.__("Bottom","integrate-google-drive"))),React.createElement("p",{className:"description"},wp.i18n.__("Select the playlist position in the player.","integrate-google-drive")))))))),(ht||yt||bt||_t)&&React.createElement("div",{className:"settings-field sort-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Sorting","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement("div",{className:"sort-field-section-wrap"},React.createElement("div",{className:"sort-field-section"},React.createElement("span",{className:"sort-field-section-label"},wp.i18n.__("SORT BY","integrate-google-drive")),Object.keys(o).map((function(e){return React.createElement("div",{key:e,className:"sort-item ".concat(Re.sortBy===e?"active":""),onClick:function(){return i(lo(lo({},n),{},{sort:lo(lo({},Re),{},{sortBy:e})}))}},React.createElement("i",{className:"dashicons dashicons-saved"}),React.createElement("span",null,o[e]))}))),React.createElement("div",{className:"sort-field-section"},React.createElement("span",{className:"sort-field-section-label"},wp.i18n.__("SORT DIRECTION","integrate-google-drive")),Object.keys(l).map((function(e){return React.createElement("div",{key:e,className:"sort-item ".concat(Re.sortDirection===e?"active":""),onClick:function(){return i(lo(lo({},n),{},{sort:lo(lo({},Re),{},{sortDirection:e})}))}},React.createElement("i",{className:"dashicons dashicons-saved"}),React.createElement("span",null,l[e]))})))),React.createElement("p",{className:"description"},wp.i18n.__("Select file sorting and direction.","integrate-google-drive")))),wt&&React.createElement(React.Fragment,null,React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Overwrite Files","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(go,{checked:Be,onChange:function(){return i(lo(lo({},n),{},{overwrite:!Be}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Enable to overwrite files with the same name.","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Enable Folder Upload","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(go,{checked:Te,onChange:function(){return i(lo(lo({},n),{},{enableFolderUpload:!Te}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Allow users to upload folders. A folder upload button will be added.","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Upload Immediately","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(go,{checked:De,onChange:function(){return i(lo(lo({},n),{},{uploadImmediately:!De}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Start uploading files immediately after they are selected.","integrate-google-drive")),!!r&&React.createElement("div",{className:"igd-notice igd-notice-info"},React.createElement("div",{className:"igd-notice-content"},React.createElement("strong",null,wp.i18n.__("Note: ","integrate-google-drive")),wp.i18n.__("For multi-step forms, must be enabled this option to proceed to the next step.","integrate-google-drive"))))),!r&&!De&&React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Show Upload Confirmation","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(go,{checked:We,onChange:function(){return i(lo(lo({},n),{},{showUploadConfirmation:!We}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Show/ hide the upload confirmation message after upload is complete.","integrate-google-drive")),We&&React.createElement("div",{className:"settings-field-sub"},React.createElement("div",{className:"settings-field field-upload-confirmation-message"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Confirmation Message","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement("p",{className:"description"},wp.i18n.__("Enter the upload confirmation message.","integrate-google-drive")),React.createElement("textarea",{value:Ve,id:"upload-confirmation-message",onChange:function(e){i((function(t){return lo(lo({},t),{},{uploadConfirmationMessage:e.target.value})}))}})))))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("File Rename","integrate-google-drive")," "),React.createElement("div",{className:"settings-field-content"},React.createElement("input",{type:"text",value:Le,onSelect:function(e){return Ft(e.target.selectionStart)},ref:At,onChange:function(e){i(lo(lo({},n),{},{uploadFileName:e.target.value}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Rename the uploaded file by adding suffix or prefix. You can use the available tags to rename the file.","integrate-google-drive")),React.createElement("div",{className:"template-tags"},React.createElement("div",{className:"template-tags-title",onClick:function(e){return jQuery(e.target).closest(".template-tags-title").toggleClass("active")}},React.createElement("i",{className:"dashicons dashicons-arrow-down-alt2"}),React.createElement("span",null,wp.i18n.__("Available tags","integrate-google-drive")),React.createElement("span",null,wp.i18n.__(" (click to insert)","integrate-google-drive"))),React.createElement("div",{className:"template-tags-list"},["%file_name%","%file_extension%","%queue_index%","","%post_id%","%post_title%","%post_slug%","%post_author%","%post_date%","%post_modified%","%post_type%","%post_status%","%post_category%","%post_tags%","%post_meta_{key}%","","%wc_product_name%","%wc_product_id%","%wc_product_sku%","%wc_product_slug%","%wc_product_price%","%wc_product_sale_price%","%wc_product_regular_price%","%wc_product_tags%","%wc_product_type%","%wc_product_status%","","%user_login%","%user_email%","%first_name%","%last_name%","%display_name%","%user_id%","%user_role%","%user_meta_{key}%","","%date%","%time%","%unique_id%"].map((function(e,t){return""===e?React.createElement("span",{className:"tag-break"}):React.createElement("span",{className:"tag",key:t,onClick:function(){var t;t=(t=null!==kt?Le.slice(0,kt)+e+" "+Le.slice(kt):Le+" "+e).trim(),i(lo(lo({},n),{},{uploadFileName:t}));var r=kt+e.length+1;At.current.setSelectionRange(r,r)}},e)})))))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Show Upload Label Text","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(go,{checked:Me,onChange:function(){return i(lo(lo({},n),{},{showUploadLabel:!Me}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Show/ hide the uploader label text.","integrate-google-drive")),Me&&React.createElement("div",{className:"settings-field-sub"},React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Label Text","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement("input",{type:"text",value:He,onChange:function(e){return i(lo(lo({},n),{},{uploadLabelText:e.target.value}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Enter the uploader label text.","integrate-google-drive")))))))),Et&&React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Open in new tab","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(go,{checked:Ie,onChange:function(){return i(lo(lo({},n),{},{openNewTab:!Ie}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Open a new tab for viewing the file.","integrate-google-drive")))),Nt&&React.createElement(React.Fragment,null,React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Slide Height","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement("input",{type:"text",value:Ze,onChange:function(e){i(lo(lo({},n),{},{slideHeight:e.target.value}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Set the height of the carousel slide. You can use any valid CSS unit (pixels, percentage), eg '360px', '780px', '80%'. Keep blank for default value.","integrate-google-drive")))),React.createElement("div",{className:"settings-field field-gallery-image-size"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Image Size","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(fo,{value:et,onChange:function(e){return i(lo(lo({},n),{},{sliderImageSize:e}))},options:[{label:wp.i18n.__("Small - 300x300","integrate-google-drive"),value:"small"},{label:wp.i18n.__("Medium - 600x400","integrate-google-drive"),value:"medium"},{label:wp.i18n.__("Large - 1024x768","integrate-google-drive"),value:"large"},{label:wp.i18n.__("Full","integrate-google-drive"),value:"full"},{label:wp.i18n.__("Custom","integrate-google-drive"),value:"custom"}]}),React.createElement("p",{className:"description"},wp.i18n.__("Select the thumbnail size for the slider images.","integrate-google-drive")),"custom"===et&&React.createElement("div",{className:"settings-field-sub"},React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Custom Size","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement("div",{className:"gallery-custom-size-wrap"},React.createElement(vo,{value:tt,onChange:function(e){return i(lo(lo({},n),{},{sliderCustomSizeWidth:e}))},placeholder:wp.i18n.__("Width","integrate-google-drive"),type:"number",min:0}),React.createElement(vo,{value:nt,onChange:function(e){return i(lo(lo({},n),{},{sliderCustomSizeHeight:e}))},placeholder:wp.i18n.__("Height","integrate-google-drive"),type:"number",min:0})),React.createElement("p",{className:"description"},wp.i18n.__("Set the custom thumbnail size width and height for the slider images.","integrate-google-drive"))))))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Slides per Page","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement("div",{className:"column-devices"},React.createElement(uo,null,["xs","sm","md","lg","xl"].map((function(e){var t="xs"===e?"Mobile":"sm"===e?"Tablet":"md"===e?"Laptop":"lg"===e?"Desktop":"xl"===e?"Large Desktop":"";return React.createElement(mo,{isPrimary:e===Pt,isSecondary:e!==Pt,onClick:function(){return jt(e)}},React.createElement("span",null,t))})))),React.createElement(po,{value:rt[Pt],onChange:function(e){return i(lo(lo({},n),{},{slidesPerPage:lo(lo({},rt),{},co({},Pt,e))}))},min:1,max:12,marks:[{value:1,label:"1"},{value:4,label:"4"},{value:8,label:"8"},{value:12,label:"12"}]}),React.createElement("p",{className:"description"},wp.i18n.__("Set the number of slides per page for each device.","integrate-google-drive")),React.createElement("p",{className:"description"},wp.i18n.__("Mobile: < 576px, Tablet: ≥ 576px, Laptop: ≥ 768px, Desktop: ≥ 992px, Large Desktop: ≥ 1200px","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Gap","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(po,{value:pt,onChange:function(e){return i(lo(lo({},n),{},{slideGap:e}))},min:0,max:50,marks:[{value:0,label:"0"},{value:50,label:"50"}]}),React.createElement("p",{className:"description"},wp.i18n.__("Set the gap between slides in pixels.","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Show File Name","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(go,{checked:Ge,onChange:function(){return i(lo(lo({},n),{},{slideName:!Ge}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Show/ hide the file name in the carousel slide.","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Show File Description","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(go,{checked:Je,onChange:function(){return i(lo(lo({},n),{},{slideDescription:!Je}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Show/ hide the file description in the carousel slide.","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Slide Autoplay","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(go,{checked:ot,onChange:function(){return i(lo(lo({},n),{},{slideAutoplay:!ot}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Enable autoplay for the slider.","integrate-google-drive")),ot&&React.createElement("div",{className:"settings-field-sub"},React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Autoplay Speed","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement("input",{type:"number",value:ct,onChange:function(e){i(lo(lo({},n),{},{slideAutoplaySpeed:e.target.value}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Set the autoplay speed in milliseconds.","integrate-google-drive"))))))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Slide Dots Navigation","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(go,{checked:dt,onChange:function(){return i(lo(lo({},n),{},{slideDots:!dt}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Enable dots navigation for the slider.","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Slide Arrows Navigation","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(go,{checked:mt,onChange:function(){return i(lo(lo({},n),{},{slideArrows:!mt}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Enable arrows navigation for the slider.","integrate-google-drive"))))),a&&React.createElement(React.Fragment,null,React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Enable Redirection","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(go,{checked:ft,onChange:function(){return i(lo(lo({},n),{},{woocommerceRedirect:!ft}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Enable to redirect the user directly to the Google Drive file instead of downloading the file.","integrate-google-drive")))),ft&&React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Add User Permission","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(go,{checked:vt,onChange:function(){return i(lo(lo({},n),{},{woocommerceAddPermission:!vt}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Enable to add permission for the purchase email address to the file.","integrate-google-drive")),React.createElement("p",{className:"description"},React.createElement("strong",null,wp.i18n.__("Note:","integrate-google-drive"))," ",wp.i18n.__("The purchase email address must be a gmail address. Otherwise the permission will not be added.","integrate-google-drive"))))))}function So(e){return So="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},So(e)}function Co(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Oo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Co(Object(n),!0).forEach((function(t){ko(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Co(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ko(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==So(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==So(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===So(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Fo=React.useContext,Ao=wp.components.FormToggle,xo=igd.isPro;function Po(){var e=Fo(tr),t=e.editData,n=e.setEditData,i=t.type,r=t.enableNotification,a=void 0!==r&&r,o=t.downloadNotification,l=void 0===o||o,c=t.uploadNotification,s=void 0===c||c,d=t.deleteNotification,u=void 0===d||d,m=t.playNotification,g=void 0===m||m,p=t.searchNotification,f=void 0===p?"search"===i:p,v=t.viewNotification,h=void 0===v||v,w=t.notificationEmail,y=void 0===w?"%admin_email%":w,b=t.skipCurrentUserNotification,_=void 0===b||b,E="browser"===i,R="uploader"===i,N="media"===i,S="gallery"===i,C="slider"===i,O="search"===i,k="download"===i,F="view"===i;return React.createElement("div",{className:"shortcode-module-body"},React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Enable Notifications","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(Ao,{"data-tip":"PRO Feature",checked:xo&&a,onChange:function(){igd.isPro?n(Oo(Oo({},t),{},{enableNotification:!a})):j(wp.i18n.__("Upgrade to PRO to enable email notificationenableN","integrate-google-drive"))}}),!igd.isPro&&React.createElement(ReactTooltip,{effect:"solid",place:"right",backgroundColor:"#ff9966",className:"igd-tooltip"}),React.createElement("p",{className:"description"},wp.i18n.__("Enable email notifications to get notified on various user activities (upload, download, delete, etc).","integrate-google-drive")),(a||!igd.isPro)&&React.createElement("div",{className:"settings-field-sub"},(E||S||O||N||C||k)&&React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Download Notification","integrate-google-drive")," "),React.createElement("div",{className:"settings-field-content"},React.createElement(Ao,{"data-tip":"PRO Feature",checked:l&&igd.isPro,onChange:function(){igd.isPro?n(Oo(Oo({},t),{},{downloadNotification:!l})):j(wp.i18n.__("Upgrade to PRO to enable email notifications.","integrate-google-drive"))}}),!igd.isPro&&React.createElement(ReactTooltip,{effect:"solid",place:"right",backgroundColor:"#ff9966",className:"igd-tooltip"}),React.createElement("p",{className:"description"},wp.i18n.__("Receive email notification whenever files is downloaded through this module.","integrate-google-drive")))),(E||R)&&React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Upload Notification","integrate-google-drive")," "),React.createElement("div",{className:"settings-field-content"},React.createElement(Ao,{"data-tip":"PRO Feature",checked:s&&igd.isPro,onChange:function(){igd.isPro?n(Oo(Oo({},t),{},{uploadNotification:!s})):j(wp.i18n.__("Upgrade to PRO to enable email notification.","integrate-google-drive"))}}),!igd.isPro&&React.createElement(ReactTooltip,{effect:"solid",place:"right",backgroundColor:"#ff9966",className:"igd-tooltip"}),React.createElement("p",{className:"description"},wp.i18n.__("Receive an email notifications whenever someone uploaded files through this module.","integrate-google-drive")))),E&&React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Delete Notification","integrate-google-drive")," "),React.createElement("div",{className:"settings-field-content"},React.createElement(Ao,{"data-tip":"PRO Feature",checked:u&&igd.isPro,onChange:function(){igd.isPro?n(Oo(Oo({},t),{},{deleteNotification:!u})):j(wp.i18n.__("Upgrade to PRO to enable email notifications.","integrate-google-drive"))}}),!igd.isPro&&React.createElement(ReactTooltip,{effect:"solid",place:"right",backgroundColor:"#ff9966",className:"igd-tooltip"}),React.createElement("p",{className:"description"},wp.i18n.__("Receive email notifications whenever someone deleted files through this module.","integrate-google-drive")))),N&&React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Media Play Notification","integrate-google-drive")," "),React.createElement("div",{className:"settings-field-content"},React.createElement(Ao,{"data-tip":"PRO Feature",checked:g&&igd.isPro,onChange:function(){igd.isPro?n(Oo(Oo({},t),{},{playNotification:!g})):j(wp.i18n.__("Upgrade to PRO to enable email notifications.","integrate-google-drive"))}}),!igd.isPro&&React.createElement(ReactTooltip,{effect:"solid",place:"right",backgroundColor:"#ff9966",className:"igd-tooltip"}),React.createElement("p",{className:"description"},wp.i18n.__("Receive email notifications whenever someone play audio/video files through this module.","integrate-google-drive")))),(E||S||O||N)&&React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Search Notification","integrate-google-drive")," "),React.createElement("div",{className:"settings-field-content"},React.createElement(Ao,{"data-tip":"PRO Feature",checked:f&&igd.isPro,onChange:function(){igd.isPro?n(Oo(Oo({},t),{},{searchNotification:!f})):j(wp.i18n.__("Upgrade to PRO to enable email notifications.","integrate-google-drive"))}}),!igd.isPro&&React.createElement(ReactTooltip,{effect:"solid",place:"right",backgroundColor:"#ff9966",className:"igd-tooltip"}),React.createElement("p",{className:"description"},wp.i18n.__("Receive email notifications whenever someone search for files through this module.","integrate-google-drive")))),F&&React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("View Notification","integrate-google-drive")," "),React.createElement("div",{className:"settings-field-content"},React.createElement(Ao,{"data-tip":"PRO Feature",checked:h&&igd.isPro,onChange:function(){igd.isPro?n(Oo(Oo({},t),{},{viewNotification:!h})):j(wp.i18n.__("Upgrade to PRO to enable email notifications.","integrate-google-drive"))}}),!igd.isPro&&React.createElement(ReactTooltip,{effect:"solid",place:"right",backgroundColor:"#ff9966",className:"igd-tooltip"}),React.createElement("p",{className:"description"},wp.i18n.__("Receive email notifications whenever someone view files through this module.","integrate-google-drive"))))))),a&&React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Notification Recipients","integrate-google-drive")," "),React.createElement("div",{className:"settings-field-content"},React.createElement("input",{"data-tip":"PRO Feature",type:"email",value:y,onChange:function(e){igd.isPro?n(Oo(Oo({},t),{},{notificationEmail:e.target.value})):j(wp.i18n.__("Upgrade to PRO to enable email notifications.","integrate-google-drive"))}}),!igd.isPro&&React.createElement(ReactTooltip,{effect:"solid",place:"right",backgroundColor:"#ff9966",className:"igd-tooltip"}),React.createElement("p",{className:"description"},wp.i18n.__("Enter the email address where the notifications will be sent. Add multiple email addresses by separating them with a comma (,).","integrate-google-drive")),React.createElement("p",{className:"description"},wp.i18n.__("You can also set the below placeholder tags as email recipient.","integrate-google-drive")),React.createElement("div",{className:"template-tags"},React.createElement("div",{className:"template-tags-title",onClick:function(e){return jQuery(e.target).closest(".template-tags-title").toggleClass("active")}},React.createElement("i",{className:"dashicons dashicons-arrow-down-alt2"}),React.createElement("span",null,wp.i18n.__("Available template tags","integrate-google-drive")),React.createElement("span",null,wp.i18n.__(" (click to insert)","integrate-google-drive"))),React.createElement("div",{className:"template-tags-list"},["%admin_email%","%user_email%","%linked_user_email%"].map((function(e,i){return React.createElement("span",{className:"tag",key:i,onClick:function(){igd.isPro?n(Oo(Oo({},t),{},{notificationEmail:(y+", "+e).replace(/^,/,"")})):j(wp.i18n.__("Upgrade to PRO to enable email notifications.","integrate-google-drive"))}},e)})))),React.createElement("div",{className:"igd-notice igd-notice-info"},React.createElement("div",{className:"igd-notice-content"},React.createElement("div",null,React.createElement("strong",null,"%admin_email%")," - ",wp.i18n.__("The email of site admin.","integrate-google-drive")),React.createElement("div",null,React.createElement("strong",null,"%user_email%")," - ",wp.i18n.__("The email of current user who executes the action.","integrate-google-drive")),React.createElement("div",null,React.createElement("strong",null,"%linked_user_email%")," - ",wp.i18n.__("The email of the owner of the private folder.","integrate-google-drive")))),React.createElement("div",{className:"settings-field-sub"},React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Skip current user notification","integrate-google-drive")," "),React.createElement("div",{className:"settings-field-content"},React.createElement(Ao,{"data-tip":"PRO Feature",checked:igd.isPro&&_,onChange:function(){igd.isPro?n(Oo(Oo({},t),{},{skipCurrentUserNotification:!_})):j(wp.i18n.__("Upgrade to PRO to enable email notifications.","integrate-google-drive"))}}),!igd.isPro&&React.createElement(ReactTooltip,{effect:"solid",place:"right",backgroundColor:"#ff9966",className:"igd-tooltip"}),React.createElement("p",{className:"description"},wp.i18n.__("Enable to skip the notification for the user that executes the action.","integrate-google-drive"))))))))}function jo(e){var t=e.usersOptions,n=e.values,i=e.onChange,r=e.description,a=void 0===r?wp.i18n.__("Select the users and roles who can access.","integrate-google-drive"):r;return React.createElement("div",{className:"filter-users"},React.createElement("h4",{className:"filter-users-title"},"Filter Users & Roles:"),React.createElement("div",{className:"filter-users-section-wrap"},React.createElement(ReactSelect,{isClearable:!1,isMulti:!0,placeholder:"Select users & roles",options:t,value:t.filter((function(e){return n.includes(e.value)})),onChange:function(e){return i(e)},className:"igd-select filter-users-select",classNamePrefix:"igd-select"}),React.createElement("p",{className:"description"},a)))}function Io(e){return Io="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Io(e)}function Do(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function To(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Do(Object(n),!0).forEach((function(t){Bo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Do(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Bo(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Io(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==Io(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Io(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Uo(e){return function(e){if(Array.isArray(e))return zo(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Mo(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Lo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,a,o,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=a.call(n)).done)&&(l.push(i.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(e,t)||Mo(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Mo(e,t){if(e){if("string"==typeof e)return zo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zo(e,t):void 0}}function zo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var Ho=window.ReactTooltip,Ko=wp.components,Wo=Ko.FormToggle,Qo=Ko.ButtonGroup,Vo=Ko.Button,qo=React,Go=qo.useState,Yo=qo.useEffect,Jo=qo.useContext,Xo=qo.useRef,Zo=["%post_id%","%post_title%","%post_slug%","%post_author%","%post_date%","%post_modified%","%post_type%","%post_status%","%post_category%","%post_tags%","%post_meta_{key}%","","%wc_product_name%","%wc_product_id%","%wc_product_sku%","%wc_product_slug%","%wc_product_price%","%wc_product_sale_price%","%wc_product_regular_price%","%wc_product_tags%","%wc_product_type%","%wc_product_status%","","%user_login%","%user_email%","%first_name%","%last_name%","%display_name%","%user_id%","%user_role%","%user_meta_{key}%","","%date%","%time%","%unique_id%"];function $o(){var e=!!igd.isPro,t=Jo(tr),n=t.editData,i=t.setEditData,r=n.type,a=n.preview,o=void 0===a||a,l=n.inlinePreview,c=void 0===l||l,s=n.allowPreviewPopout,d=void 0===s||s,u=n.previewUsers,m=void 0===u?["everyone"]:u,g=n.rename,p=void 0!==g&&g,f=n.renameUsers,v=void 0===f?["everyone"]:f,h=n.newFolder,w=void 0!==h&&h,y=n.newFolderUsers,b=void 0===y?["everyone"]:y,_=n.moveCopy,E=void 0!==_&&_,R=n.moveCopyUsers,N=void 0===R?["everyone"]:R,S=n.canDelete,C=void 0!==S&&S,O=n.deleteUsers,k=void 0===O?["everyone"]:O,F=n.upload,A=void 0!==F&&F,x=n.uploadUsers,P=void 0===x?["everyone"]:x,I=n.photoProof,D=void 0!==I&&I,T=n.photoProofEmail,B=void 0===T?"":T,U=n.photoProofMaxSelection,L=n.photoProofUsers,M=void 0===L?["everyone"]:L,z=n.download,H=void 0===z||z,K=n.zipDownload,W=void 0!==K&&K,Q=n.showFileSizeField,V=void 0===Q||Q,q=n.downloadUsers,G=void 0===q?["everyone"]:q,Y=n.details,J=void 0!==Y&&Y,X=n.detailsUsers,Z=void 0===X?["everyone"]:X,$=n.viewSwitch,ee=void 0===$||$,te=n.allowShare,ne=void 0!==te&&te,ie=n.shareUsers,re=void 0===ie?["everyone"]:ie,ae=n.createDoc,oe=void 0!==ae&&ae,le=n.createDocumentUsers,ce=void 0===le?["everyone"]:le,se=n.edit,de=void 0!==se&&se,ue=n.editUsers,me=void 0===ue?["everyone"]:ue,ge=n.directLink,pe=void 0!==ge&&ge,fe=n.directLinkUsers,ve=void 0===fe?["everyone"]:fe,he=n.allowSearch,we=void 0===he?"search"===r:he,ye=n.searchUsers,be=void 0===ye?["everyone"]:ye,_e=n.fullTextSearch,Ee=void 0===_e||_e,Re=n.initialSearchTerm,Ne=void 0===Re?"":Re,Se=n.comment,Ce=void 0!==Se&&Se,Oe=n.commentMethod,ke=void 0===Oe?"facebook":Oe,Fe=n.commentUsers,Ae=void 0===Fe?["everyone"]:Fe,xe=n.displayFor,Pe=void 0===xe?"everyone":xe,je=n.displayUsers,Ie=void 0===je?["everyone"]:je,De=n.displayEveryone,Te=n.displayExcept,Be=void 0===Te?[]:Te,Ue=n.showAccessDeniedMessage,Le=n.accessDeniedMessage,Me=void 0===Le?'<img width="100" src="'.concat(igd.pluginUrl,'/assets/images/access-denied.png"><h3 class="placeholder-title">').concat(wp.i18n.__("Access Denied","integrate-google-drive"),'</h3><p class="placeholder-description">').concat(wp.i18n.__("We're sorry, but your account does not currently have access to this content. To gain access, please contact the site administrator who can assist in linking your account to the appropriate content. Thank you.","integrate-google-drive"),"</p>"):Le,ze="browser"===r,He="media"===r,Ke="gallery"===r,We="slider"===r,Qe="search"===r,Ve=Lo(Go(null),2),qe=Ve[0],Ge=Ve[1],Ye=qe&&[{label:wp.i18n.__("Everyone","integrate-google-drive"),value:"everyone"}].concat(Uo(Object.keys(qe.roles).map((function(e){return{label:"".concat(e," (role)"),value:e}}))),Uo(qe.users.map((function(e){var t=e.username,n=e.email,i=e.id;return{label:"".concat(t," (").concat(n,")"),value:parseInt(i)}}))));Yo((function(){wp.ajax.post("igd_get_users_data").then((function(e){return Ge(e)}))}),[]);var Je=Lo(Go(null),2),Xe=Je[0],Ze=Je[1],$e=Xo(),et="access-denied-message",tt={tinymce:{wpautop:!0,toolbar1:"formatselect,bold,italic,strikethrough,forecolor,backcolor,bullist,numlist,blockquote,hr,alignleft,aligncenter,alignright,link,unlink,media,spellchecker,fullscreen,wp_adv",toolbar2:"underline,alignjustify,forecolor,pastetext,removeformat,charmap,outdent,indent,undo,redo,wp_help",plugins:"lists,fullscreen,paste,wpautoresize,wpdialogs,wpeditimage,wpgallery,wplink,wptextpattern,wpview,wordpress,wpemoji,media,textcolor,hr",menubar:!1,branding:!1,height:250,wp_adv_height:48,setup:function(e){e.on("change",(function(){var t=e.getContent();i((function(e){return To(To({},e),{},{accessDeniedMessage:t})}))}))}},quicktags:{buttons:"strong,em,link,block,del,ins,img,ul,ol,li,code,close"},mediaButtons:!0};return Yo((function(){if(Ue)return setTimeout((function(){wp.editor&&(wp.editor.remove(et),wp.domReady((function(){return wp.editor.initialize(et,tt)})))}),100),function(){document.getElementById(et)&&wp.editor.remove(et)}}),[Ue]),React.createElement("div",{className:"shortcode-module-body"},ze||He||Ke||We||Qe&&React.createElement("h3",{className:"settings-field-title"},wp.i18n.__("File Manipulation","integrate-google-drive")),ze&&React.createElement("div",{className:"settings-field"},React.createElement("h3",{className:"settings-field-label"},React.createElement("i",{className:"dashicons dashicons-upload"}),wp.i18n.__("Upload","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(Wo,{checked:A,onChange:function(){return i(To(To({},n),{},{upload:!A}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Allow users to upload files.","integrate-google-drive")),React.createElement("div",{className:"settings-field-sub"},A&&!!qe&&React.createElement(jo,{usersOptions:Ye,values:P,onChange:function(e){return i(To(To({},n),{},{uploadUsers:Uo(e.map((function(e){return e.value})))}))},description:wp.i18n.__("Select users & roles who can upload files.","integrate-google-drive")})))),(ze||We||Qe)&&React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},React.createElement("i",{className:"dashicons dashicons-visibility"}),wp.i18n.__("Preview","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(Wo,{checked:o,onChange:function(){return i(To(To({},n),{},{preview:!o}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Allow users to preview files.","integrate-google-drive")),React.createElement("div",{className:"settings-field-sub"},o&&!We&&React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Inline Preview","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(Wo,{checked:c,onChange:function(){return i(To(To({},n),{},{inlinePreview:!c}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Open preview in a pop-up lightbox. If disabled, the preview will be opened in Google Drive.","integrate-google-drive")),c&&React.createElement(React.Fragment,null,React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Allow Pop-out","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(Wo,{checked:d,onChange:function(){return i(To(To({},n),{},{allowPreviewPopout:!d}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Pop-out button allows the user to view the document on Google Drive with full features, while disabling it will only show the preview document on your website.","integrate-google-drive")))))),o&&!!qe&&React.createElement(jo,{usersOptions:Ye,values:m,onChange:function(e){return i(To(To({},n),{},{previewUsers:Uo(e.map((function(e){return e.value})))}))},description:wp.i18n.__("Select users & roles who can preview files.","integrate-google-drive")})))),Ke&&React.createElement("div",{className:"settings-field"},React.createElement("div",{className:"settings-field-label"},React.createElement("i",{className:"dashicons dashicons-format-gallery"}),wp.i18n.__("Photo Proofing","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(Wo,{"data-tip":wp.i18n.__("PRO Feature","integrate-google-drive"),checked:e&&D,onChange:function(){e?i(To(To({},n),{},{photoProof:!D})):j(wp.i18n.__("Upgrade to Pro to photo proofing","integrate-google-drive"))}}),!e&&React.createElement(Ho,{effect:"solid",place:"right",backgroundColor:"#FF9F10",className:"igd-tooltip"}),React.createElement("p",{className:"description"},wp.i18n.__("Allow users to select images and send them to the admin.","integrate-google-drive")),e&&!!D&&React.createElement("div",{className:"settings-field-sub"},React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Maximum Selection","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement("input",{type:"number",value:U,onChange:function(t){e?i(To(To({},n),{},{photoProofMaxSelection:t.target.value})):j(wp.i18n.__("Upgrade to PRO to enable photo proofing","integrate-google-drive"))},min:0}),!e&&React.createElement(Ho,{effect:"solid",place:"right",backgroundColor:"#FF9F10",className:"igd-tooltip"}),React.createElement("p",{className:"description"},wp.i18n.__("Enter the maximum number of images that can be selected. Leave empty for no limit.","integrate-google-drive"))),React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Notification Email","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement("input",{type:"text",value:B,onChange:function(t){e?i(To(To({},n),{},{photoProofEmail:t.target.value})):j(wp.i18n.__("Upgrade to Pro to enable photo proofing","integrate-google-drive"))}}),!e&&React.createElement(Ho,{effect:"solid",place:"right",backgroundColor:"#FF9F10",className:"igd-tooltip"}),React.createElement("p",{className:"description"},wp.i18n.__("Enter the email address where the selected images notification will be sent.","integrate-google-drive")))),!!qe&&React.createElement(jo,{usersOptions:Ye,values:M,onChange:function(e){return i(To(To({},n),{},{photoProofUsers:Uo(e.map((function(e){return e.value})))}))},description:wp.i18n.__("Select users & roles who can select.","integrate-google-drive")})))),(ze||He||We||Ke||Qe)&&React.createElement("div",{className:"settings-field"},React.createElement("div",{className:"settings-field-label"},React.createElement("i",{className:"dashicons dashicons-download"}),wp.i18n.__("Download","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(Wo,{checked:H,onChange:function(){return i(To(To({},n),{},{download:!H}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Allow users to download files.","integrate-google-drive")),!!H&&React.createElement("div",{className:"settings-field-sub"},(ze||Ke||Qe)&&React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Zip Download","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(Wo,{"data-tip":wp.i18n.__("PRO Feature","integrate-google-drive"),checked:e&&W,onChange:function(){e?i(To(To({},n),{},{zipDownload:!W})):j(wp.i18n.__("Upgrade to Pro to enable zip download.","integrate-google-drive"))}}),!e&&React.createElement(Ho,{effect:"solid",place:"right",backgroundColor:"#FF9F10",className:"igd-tooltip"}),React.createElement("p",{className:"description"},wp.i18n.__("Allow users to download multiple files at once.","integrate-google-drive")),React.createElement("div",{className:"igd-notice igd-notice-warning"},React.createElement("p",{className:"igd-notice-content"},wp.i18n.__("The Google Drive API does not support ZIP creation on the fly. Therefore, the ZIP file needs to be created (temporarily) on your server. For that reason, it is not recommended to enable this setting when you are working with large files or folders.","integrate-google-drive")))),!Ke&&React.createElement(React.Fragment,null,React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Show File Size Field","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(Wo,{checked:V,onChange:function(){return i(To(To({},n),{},{showFileSizeField:!V}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Show/ hide the file size field in the file list.","integrate-google-drive"))))),!!qe&&React.createElement(jo,{usersOptions:Ye,values:G,onChange:function(e){return i(To(To({},n),{},{downloadUsers:Uo(e.map((function(e){return e.value})))}))},description:wp.i18n.__("Select users & roles who can download files.","integrate-google-drive")})))),ze&&React.createElement(React.Fragment,null,React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},React.createElement("i",{className:"dashicons dashicons-trash"}),wp.i18n.__("Delete","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(Wo,{checked:C,onChange:function(){return i(To(To({},n),{},{canDelete:!C}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Allow users to delete files and folders.","integrate-google-drive")),React.createElement("div",{className:"settings-field-sub"},C&&!!qe&&React.createElement(jo,{usersOptions:Ye,values:k,onChange:function(e){return i(To(To({},n),{},{deleteUsers:Uo(e.map((function(e){return e.value})))}))},description:wp.i18n.__("Select users & roles who can delete files & folders.","integrate-google-drive")})))),React.createElement("div",{className:"settings-field"},React.createElement("h3",{className:"settings-field-label"},React.createElement("i",{className:"dashicons dashicons-open-folder"}),wp.i18n.__("New Folder","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(Wo,{checked:w,onChange:function(){return i(To(To({},n),{},{newFolder:!w}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Allow users to create new folders.","integrate-google-drive")),React.createElement("div",{className:"settings-field-sub"},w&&!!qe&&React.createElement(jo,{usersOptions:Ye,values:b,onChange:function(e){return i(To(To({},n),{},{newFolderUsers:Uo(e.map((function(e){return e.value})))}))},description:wp.i18n.__("Select users & roles who can create folders.","integrate-google-drive")})))),React.createElement("div",{className:"settings-field"},React.createElement("h3",{className:"settings-field-label"},React.createElement("i",{className:"dashicons dashicons-admin-page"}),wp.i18n.__("Move/ Copy","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(Wo,{checked:E,onChange:function(){return i(To(To({},n),{},{moveCopy:!E}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Allow users to move/ copy files and folders.","integrate-google-drive")),React.createElement("div",{className:"settings-field-sub"},E&&!!qe&&React.createElement(jo,{usersOptions:Ye,values:N,onChange:function(e){return i(To(To({},n),{},{moveCopyUsers:Uo(e.map((function(e){return e.value})))}))},description:wp.i18n.__("Select users & roles who can move/ copy files.","integrate-google-drive")})))),React.createElement("div",{className:"settings-field"},React.createElement("h3",{className:"settings-field-label"},React.createElement("i",{className:"dashicons dashicons-edit"}),wp.i18n.__("Rename","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(Wo,{checked:p,onChange:function(){return i(To(To({},n),{},{rename:!p}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Allow users to rename files and folders.","integrate-google-drive")),React.createElement("div",{className:"settings-field-sub"},p&&!!qe&&React.createElement(jo,{usersOptions:Ye,values:v,onChange:function(e){return i(To(To({},n),{},{renameUsers:Uo(e.map((function(e){return e.value})))}))},description:wp.i18n.__("Select users & roles who can rename files.","integrate-google-drive")})))),React.createElement("div",{className:"settings-field"},React.createElement("h3",{className:"settings-field-label"},React.createElement("i",{className:"dashicons dashicons-plus"}),wp.i18n.__("Create Documents","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(Wo,{checked:oe,onChange:function(){return i(To(To({},n),{},{createDoc:!oe}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Allow users to create Google Docs and Office documents.","integrate-google-drive")),React.createElement("div",{className:"settings-field-sub"},oe&&!!qe&&React.createElement(jo,{usersOptions:Ye,values:ce,onChange:function(e){return i(To(To({},n),{},{createDocumentUsers:Uo(e.map((function(e){return e.value})))}))},description:wp.i18n.__("Select users & roles who can create documents.","integrate-google-drive")})))),React.createElement("div",{className:"settings-field"},React.createElement("h3",{className:"settings-field-label"},React.createElement("i",{className:"dashicons dashicons-edit-large"}),wp.i18n.__("Edit Documents","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(Wo,{checked:de,onChange:function(){return i(To(To({},n),{},{edit:!de}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Allow users to edit Google Docs and Office documents.","integrate-google-drive")),React.createElement("div",{className:"settings-field-sub"},de&&!!qe&&React.createElement(jo,{usersOptions:Ye,values:me,onChange:function(e){return i(To(To({},n),{},{editUsers:Uo(e.map((function(e){return e.value})))}))},description:wp.i18n.__("Select users & roles who can edit documents.","integrate-google-drive")})))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},React.createElement("i",{className:"dashicons dashicons-share"}),wp.i18n.__("Allow Share","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(Wo,{checked:ne,onChange:function(){return i(To(To({},n),{},{allowShare:!ne}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Allow users to share files.","integrate-google-drive")),React.createElement("div",{className:"settings-field-sub"},ne&&!!qe&&React.createElement(jo,{usersOptions:Ye,values:re,onChange:function(e){return i(To(To({},n),{},{shareUsers:Uo(e.map((function(e){return e.value})))}))},description:wp.i18n.__("Select users & roles who can share files.","integrate-google-drive")})))),React.createElement("div",{className:"settings-field"},React.createElement("h3",{className:"settings-field-label"},React.createElement("i",{className:"dashicons dashicons-admin-links"}),wp.i18n.__("Direct Link","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(Wo,{checked:pe,onChange:function(){return i(To(To({},n),{},{directLink:!pe}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Allow users to generate direct links for files on your website.","integrate-google-drive")),React.createElement("div",{className:"settings-field-sub"},pe&&!!qe&&React.createElement(jo,{usersOptions:Ye,values:ve,onChange:function(e){return i(To(To({},n),{},{directLinkUsers:Uo(e.map((function(e){return e.value})))}))},description:wp.i18n.__("Select users & roles who can share files.","integrate-google-drive")})))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},React.createElement("i",{className:"dashicons dashicons-info-outline"}),wp.i18n.__("View Details","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(Wo,{checked:J,onChange:function(){return i(To(To({},n),{},{details:!J}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Allow users to view file details (owner, created & modified date, etc).","integrate-google-drive")),React.createElement("div",{className:"settings-field-sub"},J&&!!qe&&React.createElement(jo,{usersOptions:Ye,values:Z,onChange:function(e){return i(To(To({},n),{},{detailsUsers:Uo(e.map((function(e){return e.value})))}))},description:wp.i18n.__("Select users & roles who view the file details.","integrate-google-drive")}))))),(ze||Ke||Qe)&&React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},React.createElement("i",{className:"dashicons dashicons-admin-comments"}),wp.i18n.__("Allow Comments","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(Wo,{"data-tip":wp.i18n.__("PRO Feature","integrate-google-drive"),checked:e&&Ce,onChange:function(){e?i(To(To({},n),{},{comment:!Ce})):j(wp.i18n.__("Upgrade to Pro to enable comments","integrate-google-drive"))}}),!e&&React.createElement(Ho,{effect:"solid",place:"right",backgroundColor:"#FF9F10",className:"igd-tooltip"}),React.createElement("p",{className:"description"},wp.i18n.__("Allow users to comment on files while they view the file in lightbox preview.","integrate-google-drive")),Ce&&React.createElement("div",{className:"settings-field-sub"},React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Comment Method","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(Qo,null,React.createElement(Vo,{isPrimary:"facebook"===ke,isSecondary:"facebook"!==ke,onClick:function(){return i(To(To({},n),{},{commentMethod:"facebook"}))}},React.createElement("span",null,wp.i18n.__("Facebook","integrate-google-drive"))),React.createElement(Vo,{isPrimary:"disqus"===ke,isSecondary:"disqus"!==ke,onClick:function(){return i(To(To({},n),{},{commentMethod:"disqus"}))}},React.createElement("span",null,wp.i18n.__("Disqus","integrate-google-drive")))),React.createElement("p",{className:"description"},wp.i18n.__("Select the comment method you want to use.","integrate-google-drive")))),!!qe&&React.createElement(jo,{usersOptions:Ye,values:Ae,onChange:function(e){return i(To(To({},n),{},{commentUsers:Uo(e.map((function(e){return e.value})))}))},description:wp.i18n.__("Select users & roles who can comments on files.","integrate-google-drive")})))),(ze||Qe)&&React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},React.createElement("i",{className:"dashicons dashicons-screenoptions"}),wp.i18n.__("View Switching","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(Wo,{checked:ee,onChange:function(){i(To(To({},n),{},{viewSwitch:!ee}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Allow users to switch between grid and list view of the file listing.","integrate-google-drive")))),(ze||Ke||He||Qe)&&React.createElement("div",{className:"settings-field field-allow-search"},React.createElement("h4",{className:"settings-field-label"},React.createElement("i",{className:"dashicons dashicons-search"}),wp.i18n.__("Allow Search","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},!Qe&&React.createElement(React.Fragment,null,React.createElement(Wo,{"data-tip":wp.i18n.__("PRO Feature","integrate-google-drive"),checked:e&&we,onChange:function(){e?i(To(To({},n),{},{allowSearch:!we})):j(wp.i18n.__("Upgrade to Pro to enable search","integrate-google-drive"))}}),!e&&React.createElement(Ho,{effect:"solid",place:"right",backgroundColor:"#FF9F10",className:"igd-tooltip"}),React.createElement("p",{className:"description"},wp.i18n.__("Allow users to search for files.","integrate-google-drive"))),we&&React.createElement("div",{className:"settings-field-sub"},React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Full-text Search","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(Wo,{checked:Ee,onChange:function(){return i(To(To({},n),{},{fullTextSearch:!Ee}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Allow to search in file content, descriptions, tags and other metadata.","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Initial Search Term","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement("input",{type:"text",value:Ne,onChange:function(e){return i(To(To({},n),{},{initialSearchTerm:e.target.value}))},onSelect:function(e){return Ze(e.target.selectionStart)},ref:$e}),React.createElement("p",{className:"description"},wp.i18n.__("Set initial search terms if you want to start a search when the shortcode is rendered. Please note that this only affects the initial render.","integrate-google-drive")),React.createElement("p",{className:"description"},wp.i18n.__("You can also set dynamic placeholder tags to the initial search term.","integrate-google-drive")),React.createElement("div",{className:"template-tags"},React.createElement("div",{className:"template-tags-title",onClick:function(e){return jQuery(e.target).closest(".template-tags-title").toggleClass("active")}},React.createElement("i",{className:"dashicons dashicons-arrow-down-alt2"}),React.createElement("span",null,wp.i18n.__("Available template tags","integrate-google-drive")),React.createElement("span",null,wp.i18n.__(" (click to insert)","integrate-google-drive"))),React.createElement("div",{className:"template-tags-list"},Zo.map((function(e,t){return""===e?React.createElement("span",{className:"tag-break"}):React.createElement("span",{className:"tag",key:t,onClick:function(){var t;t=(t=null!==Xe?uploadFileName.slice(0,Xe)+e+" "+uploadFileName.slice(Xe):uploadFileName+" "+e).trim(),i(To(To({},n),{},{uploadFileName:t}));var r=Xe+e.length+1;$e.current.setSelectionRange(r,r)}},e)})))))),!Qe&&!!qe&&React.createElement(jo,{usersOptions:Ye,values:be,onChange:function(e){return i(To(To({},n),{},{searchUsers:Uo(e.map((function(e){return e.value})))}))},description:wp.i18n.__("Select users & roles who can search for files.","integrate-google-drive")})))),React.createElement("h3",{className:"settings-field-title field-visibility"},wp.i18n.__("Visibility","integrate-google-drive")),React.createElement("div",{className:"settings-field filter-users-field"},React.createElement("h4",{className:"settings-field-label"},React.createElement("i",{className:"dashicons dashicons-visibility"}),wp.i18n.__("Display for","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement("div",{className:"filter-users-group"},React.createElement(Qo,null,React.createElement(Vo,{isPrimary:"everyone"===Pe,isSecondary:"everyone"!==Pe,onClick:function(){return i(To(To({},n),{},{displayFor:"everyone"}))}},React.createElement("span",null,wp.i18n.__("Everyone","integrate-google-drive"))),React.createElement(Vo,{isPrimary:"loggedIn"===Pe,isSecondary:"loggedIn"!==Pe,onClick:function(){return i(To(To({},n),{},{displayFor:"loggedIn"}))}},React.createElement("span",null,wp.i18n.__("Logged In","integrate-google-drive")))),React.createElement("p",{className:"description"},wp.i18n.__("Select who can see the module.","integrate-google-drive"))),"loggedIn"===Pe&&React.createElement(React.Fragment,null,qe?React.createElement("div",{className:"filter-users"},React.createElement("h4",{className:"filter-users-title"},wp.i18n.__("Filter users & roles","integrate-google-drive")),React.createElement("div",{className:"filter-users-section-wrap"},React.createElement(ReactSelect,{isDisabled:De,isMulti:!0,placeholder:"Select users & roles",options:Ye,value:Ye.filter((function(e){return Ie.includes(e.value)})),onChange:function(e){return i(To(To({},n),{},{displayUsers:Uo(e.map((function(e){return e.value})))}))},className:"igd-select",classNamePrefix:"igd-select"}),React.createElement("p",{className:"description"},wp.i18n.__("Select the users and user roles who can see the module.","integrate-google-drive"))),React.createElement("div",{className:"filter-users-section-wrap"},React.createElement("div",{className:"filter-users-section"},React.createElement("span",{className:"filter-users-section-label"},wp.i18n.__("Everyone :","integrate-google-drive")," "),React.createElement(Wo,{checked:De,onChange:function(){return i(To(To({},n),{},{displayEveryone:!De}))}})),React.createElement("div",{className:"filter-users-section"},React.createElement("span",{className:"filter-users-section-label"},wp.i18n.__("Except","integrate-google-drive")),React.createElement(ReactSelect,{isDisabled:!De,isMulti:!0,placeholder:"Select users & roles",options:Ye.filter((function(e){return"everyone"!==e.value})),value:Ye.filter((function(e){return Be.includes(e.value)})),onChange:function(e){return i(To(To({},n),{},{displayExcept:Uo(e.map((function(e){return e.value})))}))},className:"igd-select",classNamePrefix:"igd-select"})),React.createElement("p",{className:"description"},wp.i18n.__("When activated, the module will be visible to everyone except for those specifically exempted.","integrate-google-drive")))):React.createElement("div",{className:"igd-spinner spinner-large"})))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},React.createElement("i",{className:"dashicons dashicons-welcome-comments"}),wp.i18n.__("Show Access Denied Message","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(Wo,{checked:Ue,onChange:function(){return i(To(To({},n),{},{showAccessDeniedMessage:!Ue}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Show a message to users who don't have access to the module.","integrate-google-drive")),!!Ue&&React.createElement("div",{className:"settings-field-sub"},React.createElement("div",{className:"settings-field  field-access-denied-message"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Access Denied Message","integrate-google-drive")),React.createElement("p",{className:"description"},wp.i18n.__("Enter the message you want to show to users who don't have access to the module.","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement("textarea",{value:Me,id:"access-denied-message",onChange:function(e){setData((function(t){return To(To({},t),{},{accessDeniedMessage:e.target.value})}))},rows:8})))))))}function el(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,a,o,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=a.call(n)).done)&&(l.push(i.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return tl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tl(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var nl=React,il=nl.useState,rl=nl.useContext,al=nl.useEffect;function ol(){var e=document.querySelector(".igd-tutor-attachment-modal"),t=rl(tr),n=t.editData,i=t.updateShortcode,r=t.updating,a=t.isEditor,o=t.builderType,l=t.isInlineSelect,c=t.isSelectFiles,s=t.isFormBuilder,d=t.isLMS,u=t.isWooCommerce,m=n.id,g=n.type,p="browser"===g,f="uploader"===g,v="gallery"===g,h="media"===g,w="search"===g,y="embed"===g,b="view"===g,_="download"===g,E="slider"===g,R=a&&"embed"===o,N=a&&("view"===o||"download"===o),S={type:wp.i18n.__("Types","integrate-google-drive"),sources:wp.i18n.__("Source","integrate-google-drive"),filters:wp.i18n.__("Filter","integrate-google-drive"),advanced:wp.i18n.__("Advanced","integrate-google-drive"),notifications:wp.i18n.__("Notifications","integrate-google-drive"),permissions:wp.i18n.__("Permissions","integrate-google-drive")},C=function(){return Object.keys(S).filter((function(e){return(!a||"type"!==e)&&((!(s||R||u)||!["type","permissions"].includes(e))&&((!(N||c||d)||"sources"===e)&&((!u&&!y||!["notifications"].includes(e))&&((!u||"filters"!==e)&&(!_&&!b||!["advanced","filters"].includes(e))))))}))},O=el(il(C),2),k=O[0],x=O[1],P=sessionStorage.getItem("igd_shortcode_builder_tab_".concat(m));P||(P=m&&k.includes("type")&&k.includes("sources")?"sources":k[0]);var j=el(il(P),2),I=j[0],D=j[1],T=k.indexOf(I);al((function(){x(C()),m&&sessionStorage.setItem("igd_shortcode_builder_tab_".concat(m),I)}),[I,g]);var B=wp.i18n.__("Module Type","integrate-google-drive"),U=wp.i18n.__("Select the module type that you want to use.","integrate-google-drive");return"sources"===I&&(B=wp.i18n.__("Select Folders and Files","integrate-google-drive"),U=wp.i18n.__("Select the folders & files to display in the file browser.","integrate-google-drive"),f&&(B=wp.i18n.__("Select Upload Folder","integrate-google-drive"),U=wp.i18n.__("Select the folder where the files will be uploaded.","integrate-google-drive")),v&&(B=wp.i18n.__("Select Files and Folders","integrate-google-drive"),U=wp.i18n.__("Select the files and folders to display in the gallery.","integrate-google-drive")),h&&(B=wp.i18n.__("Select Files and Folders","integrate-google-drive"),U=wp.i18n.__("Select the folders and audio/ video files to display and play in the media player.","integrate-google-drive")),w&&(B=wp.i18n.__("Select Folders","integrate-google-drive"),U=wp.i18n.__("Select the folders to search in.","integrate-google-drive")),y&&(B=wp.i18n.__("Select Files","integrate-google-drive"),U=wp.i18n.__("Select the files to embed. You can also select folders to embed all the files of the folder.","integrate-google-drive")),_&&(B=wp.i18n.__("Select Files","integrate-google-drive"),U=wp.i18n.__("Select the files to insert the download link. You can also select folders to insert the download link to download all the files of the folder in a zip file.","integrate-google-drive")),b&&(B=wp.i18n.__("Select Files","integrate-google-drive"),U=wp.i18n.__("Select the files and folders to insert the link to view the file in Google Drive.","integrate-google-drive")),e&&(B=wp.i18n.__("Select Files","integrate-google-drive"),U=wp.i18n.__("Select the files to attach in the course.","integrate-google-drive")),u&&(B=wp.i18n.__("Select Files","integrate-google-drive"),U=wp.i18n.__("Select the files to attach in the product for download.","integrate-google-drive"))),"filters"===I&&(B=wp.i18n.__("Filter Folders and Files","integrate-google-drive"),p?U=wp.i18n.__("Show/ hide files and folders and filter them by extensions and names to not display in the file browser.","integrate-google-drive"):f?U=wp.i18n.__("Filter the files to upload by extensions","integrate-google-drive"):v?U=wp.i18n.__("Show/ hide files and folders and filter them by extensions and names to not display in the gallery.","integrate-google-drive"):E?U=wp.i18n.__("Show/ hide files and filter them by extensions and names to not display in the slider.","integrate-google-drive"):h?U=wp.i18n.__("Show/ hide files and folders and filter them by extensions and names to not display in the media player.","integrate-google-drive"):w&&(U=wp.i18n.__("Show/ hide files and folders and filter them by extensions and names to not display in the search results.","integrate-google-drive"))),"advanced"===I&&(B=wp.i18n.__("Advanced Options","integrate-google-drive"),U=wp.i18n.__("Advanced options to customize the module.","integrate-google-drive")),"notifications"===I&&(B=wp.i18n.__("Email Notifications","integrate-google-drive"),U=wp.i18n.__("Receive email notifications for various user activities (upload, download, delete, etc).","integrate-google-drive")),"permissions"===I&&(B=wp.i18n.__("Permissions","integrate-google-drive"),U=wp.i18n.__("Set the permissions to access the module.","integrate-google-drive")),React.createElement("div",{className:"igd-shortcode-builder-form ".concat(a?"editor-mode":"")},!c&&k.length>1&&React.createElement("div",{className:"shortcode-builder-sidebar tab-".concat(I)},React.createElement("div",{className:"shortcode-tabs ".concat(a?"edit-mode":"")},k.map((function(e,t){return React.createElement("div",{key:e,className:"shortcode-tab-wrap ".concat(T>=t?"active":""),onClick:function(){return D(e)}},React.createElement("div",{key:e,className:"shortcode-tab"},React.createElement("span",{className:"tab-icon icon-".concat(e)}),React.createElement("span",{className:"tab-name"},S[e])))})))),React.createElement("div",{className:"shortcode-builder-content"},React.createElement("div",{className:"shortcode-module"},!l&&React.createElement("div",{className:"shortcode-module-header"},React.createElement("div",{className:"module-title"},React.createElement("h2",null,B),React.createElement("span",null,U)),m>0&&React.createElement("div",{className:"shortcode-wrap"},React.createElement("i",{className:"dashicons dashicons-admin-page",onClick:A}),React.createElement("code",{onClick:A},'[integrate_google_drive id="'.concat(m,'"]'))),!!g&&React.createElement("div",{className:"module-type",onClick:function(){return D("type")}},React.createElement("span",{className:"module-type-title"},"Type : "),React.createElement("img",{className:"type-".concat(g),src:"".concat(igd.pluginUrl,"/assets/images/shortcode-builder/types/").concat(g,".svg"),alt:F()[g].title}),React.createElement("span",{className:"module-type-name"},F()[g].title))),"type"===I&&React.createElement(Oa,{setTab:D,isEditor:a}),"sources"===I&&React.createElement(Qa,null),"filters"===I&&React.createElement(no,null),"advanced"===I&&React.createElement(No,null),"notifications"===I&&React.createElement(Po,null),"permissions"===I&&React.createElement($o,null)),!c&&k.length>1&&React.createElement("div",{className:"form-footer"},React.createElement("button",{"data-tip":wp.i18n.__("Previous step","integrate-google-drive"),"data-for":"previous",type:"button",disabled:0===T,className:"igd-btn ".concat(0===T?"disabled":"btn-link"),onClick:function(){return D(k[T-1])}},React.createElement("i",{className:"dashicons dashicons-arrow-left-alt"}),React.createElement("span",null,wp.i18n.__("Back","integrate-google-drive")),React.createElement(ReactTooltip,{id:"previous",effect:"solid",place:"top",className:"igd-tooltip"})),React.createElement("button",{type:"button",className:"igd-btn btn-primary",onClick:function(){return i(n)}},r?React.createElement("div",{className:"igd-spinner"}):React.createElement("i",{className:"dashicons dashicons-saved"}),React.createElement("span",null,wp.i18n.__("Save Changes","integrate-google-drive"))),React.createElement("button",{"data-tip":wp.i18n.__("Next step","integrate-google-drive"),"data-for":"next",type:"button",className:"igd-btn ".concat(T===k.length-1?"btn-primary":"btn-link"),onClick:function(){T===k.length-1?i(n,!0):D(k[T+1])}},T===k.length-1?React.createElement(React.Fragment,null,React.createElement("i",{className:"dashicons dashicons-saved"}),React.createElement("span",null,wp.i18n.__("Finish","integrate-google-drive"))):React.createElement(React.Fragment,null,React.createElement("span",null,wp.i18n.__("Next","integrate-google-drive")),React.createElement("i",{className:"dashicons dashicons-arrow-right-alt"}),React.createElement(ReactTooltip,{id:"next",effect:"solid",place:"top",className:"igd-tooltip"}))))))}function ll(e){return ll="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ll(e)}function cl(e){return function(e){if(Array.isArray(e))return pl(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||gl(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function sl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function dl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sl(Object(n),!0).forEach((function(t){ul(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ul(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==ll(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==ll(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ll(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ml(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,a,o,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=a.call(n)).done)&&(l.push(i.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(e,t)||gl(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function gl(e,t){if(e){if("string"==typeof e)return pl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pl(e,t):void 0}}function pl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var fl=React,vl=fl.useState,hl=fl.useEffect;function wl(e){var t=e.initFolders,n=e.initParentFolder,i=ml(vl(!1),2),r=i[0],a=i[1],o=ml(vl([]),2),l=o[0],c=o[1],s=ml(vl(!1),2),d=s[0],u=s[1],m=ml(vl(!0),2),g=m[0],p=m[1],f=ml(vl(localStorage.getItem("igd_shortcode_list_per_page")||10),2),v=f[0],h=f[1],w=ml(vl(localStorage.getItem("igd_shortcode_list_sort_by")||"created_at"),2),y=w[0],b=w[1],_=ml(vl(localStorage.getItem("igd_shortcode_list_sort_order")||"desc"),2),E=_[0],R=_[1],N=ml(vl(1),2),S=N[0],C=N[1],O=ml(vl(0),2),k=O[0],F=O[1],A={id:null,status:"on",title:wp.i18n.__("Shortcode Title","integrate-google-drive"),type:igd.isPro?"browser":"gallery",allFolders:!1,folders:[],privateFolders:!1,allowExtensions:null,allowAllExtensions:!1,allowExceptExtensions:null,allowNames:null,allowAllNames:!1,allowExceptNames:null,nameFilterOptions:["files"],showFiles:!0,showFolders:!0,fileNumbers:"",embedWidth:"100%",embedHeight:"480px",sort:{sortBy:"name",sortDirection:"asc"},view:"list",lazyLoad:!0,lazyLoadNumber:100,maxFileSize:"",minFileSize:"",enableFolderUpload:!1,openNewTab:!0,showUploadLabel:!0,uploadLabelText:wp.i18n.__("Upload Files","integrate-google-drive"),allowEmbedPopout:!0,thumbnailCaption:!0,preview:!0,download:!0,displayFor:"everyone",displayUsers:["everyone"],displayEveryone:!1,displayExcept:[]},x=ml(vl(A),2),P=x[0],j=x[1],D=function(){return p(!0),wp.ajax.post("igd_get_shortcodes",{per_page:v,page:S,sort_by:y,sort_order:E}).done((function(e){F(e.total),c(e.shortcodes)})).fail((function(e){console.log(e)})).always((function(){p(!1)}))};hl((function(){D().then((function(){q()&&a(q())}))}),[]),hl((function(){if(r<1)j(A);else{var e=dl(dl({},l.find((function(e){return e.id==r})).config),{},{id:parseInt(r)});j(e)}}),[r]);var T=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return u(!0),wp.ajax.post("igd_update_shortcode",{data:B(JSON.stringify(e))}).done((function(t){if(j(dl(dl({},t.config),{},{id:parseInt(t.id)})),e.id){var n=l.findIndex((function(e){return e.id==t.id})),i=cl(l);i[n]=dl(dl({},i[n]),t),c(i)}else c([t].concat(cl(l)));Swal.fire({title:wp.i18n.__("Updated!","integrate-google-drive"),text:wp.i18n.__("Shortcode has been updated.","integrate-google-drive"),icon:"success",timer:2e3,showConfirmButton:!1,toast:!0,position:"top-end"})})).fail((function(e){console.log(e),Swal.fire({title:wp.i18n.__("Error!","integrate-google-drive"),text:wp.i18n.__("Something went wrong.","integrate-google-drive"),icon:"error",timer:2e3,showConfirmButton:!1,toast:!0,position:"top-end"})})).always((function(){u(!1),t&&a(!1)}))},U=I();return hl((function(){P.id?P.id<1?document.title=wp.i18n.__("Add New Shortcode - Integrate Google Drive","integrate-google-drive"):document.title=wp.i18n.__("Edit Shortcode","integrate-google-drive")+" - "+P.title:document.title=wp.i18n.__("All Shortcodes - Integrate Google Drive","integrate-google-drive")}),[r,P]),hl((function(){U&&(D(),window.scrollTo({top:0,behavior:"smooth"}))}),[S,v]),hl((function(){U&&D()}),[y,E]),hl((function(){var e=function(e){"Enter"===e.key&&T(P)};return document.addEventListener("keydown",e),function(){document.removeEventListener("keydown",e)}}),[P]),React.createElement(nr,{value:{shortcodes:l,edit:r,setEdit:a,editData:P,setEditData:j,updating:d,total:k,perPage:v,setPerPage:h,page:S,setPage:C,updateShortcode:T,deleteShortcode:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return wp.ajax.post("igd_delete_shortcode",{id:e,nonce:igd.nonce}).done((function(){c((function(t){return t.filter((function(t){return t.id!=e}))})),t&&(V(),a(!1)),Swal.fire({title:wp.i18n.__("Shortcode has been deleted","integrate-google-drive"),icon:"success",showConfirmButton:!1,timer:1500,timerProgressBar:!0,toast:!0})}))},duplicateShortcode:function(e){return u(!0),wp.ajax.post("igd_duplicate_shortcode",{ids:e}).done((function(e){c([].concat(cl(l),cl(e))),Swal.fire({title:wp.i18n.__("Duplicated!","integrate-google-drive"),text:wp.i18n.__("Shortcode has been duplicated.","integrate-google-drive"),icon:"success",timer:2e3,showConfirmButton:!1,toast:!0,position:"top-end"})})).fail((function(e){console.log(e),Swal.fire({title:wp.i18n.__("Error!","integrate-google-drive"),text:wp.i18n.__("Something went wrong.","integrate-google-drive"),icon:"error",timer:2e3,showConfirmButton:!1,toast:!0,position:"top-end"})})).always((function(){u(!1)}))},initFolders:t,initParentFolder:n,sortBy:y,setSortBy:b,sortOrder:E,setSortOrder:R}},React.createElement("div",{className:"igd-shortcode-builder"},React.createElement(Jr,null),g&&React.createElement("div",{className:"igd-spinner spinner-large"}),!g&&!r&&!!l.length&&React.createElement(ba,null),!g&&!r&&!l.length&&React.createElement(_a,{setEdit:a}),!g&&!!r&&(!!P.id||-1===r)&&React.createElement(ol,null)))}function yl(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,a,o,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=a.call(n)).done)&&(l.push(i.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return bl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return bl(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function bl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var _l=React.useState;function El(e){var t=e.initData,n=e.onUpdate,i=e.onClose,r=e.isSelectFiles,a=e.selectionType,o=e.isFormBuilder,l=e.isLMS,c=e.isWooCommerce,s=yl(_l(t),2),d=s[0],u=s[1],m=wp.i18n.__("Configure Module","integrate-google-drive"),g="dashicons dashicons-admin-generic";return r?(m=wp.i18n.__("Select Files","integrate-google-drive"),g="dashicons dashicons-open-folder"):l&&(m=wp.i18n.__("Select Video","integrate-google-drive"),g="dashicons dashicons-video-alt3"),React.createElement("div",{className:"igd-module-builder-modal",onClick:function(e){return e.stopPropagation()}},React.createElement("div",{className:"igd-module-builder-modal-header"},React.createElement("div",{className:"header-title"},React.createElement("i",{className:g}),React.createElement("h3",null,m)),React.createElement("button",{type:"button",className:"igd-btn btn-danger close",onClick:i},React.createElement("i",{className:"dashicons dashicons-no-alt"}),React.createElement("span",null,wp.i18n.__("Cancel","integrate-google-drive"))),!l&&React.createElement("button",{type:"button",className:"igd-btn btn-primary done",onClick:function(){return n(d)}},React.createElement("i",{className:"dashicons dashicons-saved"}),React.createElement("div",{className:"igd-spinner"}),React.createElement("span",null,wp.i18n.__("Done","integrate-google-drive")))),React.createElement(nr,{value:{editData:d,setEditData:u,updateShortcode:function(e){return n(e)},isEditor:!0,builderType:d.type,isSelectFiles:r,selectionType:a,isFormBuilder:o,isLMS:l,isWooCommerce:c}},React.createElement(ol,null)))}function Rl(e){return Rl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rl(e)}function Nl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Sl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nl(Object(n),!0).forEach((function(t){Cl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Cl(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Rl(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==Rl(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Rl(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ol(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,a,o,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=a.call(n)).done)&&(l.push(i.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return kl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kl(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function Fl(e){var t=e.setType,n={shortcodes:{title:wp.i18n.__("Module Shortcodes","integrate-google-drive"),description:wp.i18n.__("Insert pre-built module's shortcode.","integrate-google-drive")},browser:{title:wp.i18n.__("File Browser","integrate-google-drive"),description:wp.i18n.__("Insert a file browser to browse specific Google Drive files and folders.","integrate-google-drive"),isPro:!0},uploader:{title:wp.i18n.__("File Uploader","integrate-google-drive"),description:wp.i18n.__("Insert a file uploader to upload files to a specific Google Drive folder.","integrate-google-drive"),isPro:!0},media:{title:wp.i18n.__("Media Player","integrate-google-drive"),description:wp.i18n.__("Insert a media player to play specific Google Drive Audio and Video files.","integrate-google-drive"),isPro:!0},search:{title:wp.i18n.__("File Search","integrate-google-drive"),description:wp.i18n.__("Insert a search box to search files and folders in specific Google Drive folders.","integrate-google-drive"),isPro:!0},slider:{title:wp.i18n.__("Slider Carousel","integrate-google-drive"),description:wp.i18n.__("Display Images, Videos, and Documents in a slider carousel.","integrate-google-drive"),isPro:!0},gallery:{title:wp.i18n.__("Gallery","integrate-google-drive"),description:wp.i18n.__("Insert a gallery to display specific Google Drive photos and videos with a lightbox preview.","integrate-google-drive")},embed:{title:wp.i18n.__("Embed Documents","integrate-google-drive"),description:wp.i18n.__("Embed documents to your page/ post.","integrate-google-drive")},download:{title:wp.i18n.__("Insert Download Links","integrate-google-drive"),description:wp.i18n.__("Insert links to download Google Drive files.","integrate-google-drive")},view:{title:wp.i18n.__("Insert View Links","integrate-google-drive"),description:wp.i18n.__("Insert links to view the files in Google Drive.","integrate-google-drive")}};if(!igd.isPro){var i={},r={};Object.entries(n).forEach((function(e){var t=Ol(e,2),n=t[0],a=t[1];a.isPro?r[n]=a:i[n]=a})),n=Sl(Sl({},i),r)}return React.createElement("div",{className:"igd-tinymce-types-wrap"},React.createElement("div",{className:"igd-tinymce-types-header"},React.createElement("h3",null,wp.i18n.__("Select Insert Type","integrate-google-drive")),React.createElement("span",null,wp.i18n.__("Select the insert type that you want to insert into you post or page.","integrate-google-drive"))),React.createElement("div",{className:"igd-tinymce-types"},Object.keys(n).map((function(e){var i="".concat(igd.pluginUrl,"/assets/images/shortcode-builder/types/").concat(e,".svg"),r=n[e],a=r.title,o=r.description,l=r.isPro;return React.createElement("div",{key:e,className:"igd-tinymce-type ".concat(l&&!igd.isPro?"pro-feature":""),onClick:function(){!l||igd.isPro?t(e):j(a+wp.i18n.__(" is available in the Pro version.","integrate-google-drive"))}},l&&!igd.isPro&&React.createElement("div",{className:"pro-badge"},React.createElement("i",{className:"dashicons dashicons-lock"}),React.createElement("span",null,wp.i18n.__("PRO","integrate-google-drive"))),React.createElement("div",{className:"icon-wrap icon-".concat(e)},React.createElement("img",{src:i})),React.createElement("span",{className:"igd-tinymce-type-title"},a),React.createElement("span",{className:"igd-tinymce-type-description"},o))}))))}function Al(e){return Al="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Al(e)}function xl(e){return function(e){if(Array.isArray(e))return Bl(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Tl(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function jl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pl(Object(n),!0).forEach((function(t){Il(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Il(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Al(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==Al(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Al(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dl(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,a,o,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=a.call(n)).done)&&(l.push(i.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(e,t)||Tl(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Tl(e,t){if(e){if("string"==typeof e)return Bl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Bl(e,t):void 0}}function Bl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var Ul=wp.components.SelectControl,Ll=React,Ml=Ll.useState,zl=Ll.useEffect;function Hl(e){var t=e.setContent,n=Dl(Ml({id:null,isInit:!0,shortcodes:[]}),2),i=n[0],r=n[1],a=i.id,o=i.isInit,l=i.shortcodes;zl((function(){wp.ajax.post("igd_get_shortcodes").done((function(e){var t=e.shortcodes;return r(jl(jl({},i),{},{isInit:!1,shortcodes:t}))}))}),[]);var c=[{label:wp.i18n.__("Select shortcode","integrate-google-drive"),value:""}].concat(xl(l.map((function(e){return{label:e.title,value:e.id}}))));return React.createElement("div",{className:"igd-module-shortcodes"},React.createElement("h2",null,wp.i18n.__("Module Shortcodes","integrate-google-drive")),React.createElement("p",{className:"description"},wp.i18n.__("Select the already created module shortcode to insert into the post.","integrate-google-drive")),o?React.createElement("div",{className:"igd-spinner spinner-large"}):React.createElement(Ul,{options:c,value:a,onChange:function(e){t('[integrate_google_drive id="'.concat(e,'"]')),r(jl(jl({},i),{},{id:e}))}}))}function Kl(e){return Kl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kl(e)}function Wl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Ql(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wl(Object(n),!0).forEach((function(t){Vl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Vl(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Kl(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==Kl(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Kl(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ql(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,a,o,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=a.call(n)).done)&&(l.push(i.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Gl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Gl(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Gl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var Yl=React,Jl=Yl.useState;Yl.useEffect;function Xl(e){var t=e.initData,n=ql(Jl(!1),2),i=n[0],r=n[1],a=ql(Jl(t?t.type:null),2),o=a[0],l=a[1],c=ql(Jl(""),2),s=c[0],d=c[1],u=ql(Jl(t||{type:o,showFiles:!0,showFolders:!0,moduleWidth:"100%",moduleHeight:"",embedWidth:"100%",embedHeight:"480px",galleryHeight:300,galleryMargin:5,galleryView:"rounded",showHeader:!0,showBreadcrumbs:!0,allowEmbedPopout:!0,embedType:"readOnly",showRefresh:!0,openedPlaylist:!0,showFullscreen:!0,nextPrevious:!0,volumeButton:!0,view:"list",lazyLoad:!0,lazyLoadNumber:100,openNewTab:!0,sort:{sortBy:"name",sortDirection:"asc"},preview:!0,allowPreviewPopout:!0,download:!0,zipDownload:!1,displayFor:"everyone",displayUsers:["everyone"],displayExcept:[],slideName:!0,slideHeight:"300px",slidesToShow:3,slidesToScroll:1,slideAutoplaySpeed:3e3,slideDots:!0}),2),m=u[0],g=u[1],p=function(){return Swal.close()};function f(e){var t="undefined"==typeof tinyMCE;t&&(window.tinyMCE=window.parent.tinyMCE);var n=tinyMCE.activeEditor;if(n){var i=n.id,r=t?window.parent.document.getElementById(i):document.getElementById(i),a=tinyMCE.get(i);if(a&&!a.isHidden())a.execCommand("mceInsertContent",!1,e);else{var o=r.selectionStart,l=r.value.substring(0,o),c=r.value.substring(r.selectionEnd,r.value.length);r.value=l+e+c,r.selectionStart=o+e.length,r.selectionEnd=o+e.length}}else console.warn("No active TinyMCE editor found.")}var v=function(){m.folders?(r(!0),m.folders=m.folders.map((function(e){return e.id?{id:e.id,accountId:e.accountId,name:e.name,type:e.type,permissions:e.permissions,resourceKey:e.resourceKey}:e})),wp.ajax.post("igd_get_embed_content",{data:m}).done((function(e){f(e)})).fail((function(e){console.log(e)})).always((function(){p()}))):p()},h=function(){var e="";m.folders?(m.folders.map((function(t){var n=t.id,i=t.accountId,r=(t.type,t.name),a=b(t)?"".concat(igd.ajaxUrl,"?action=igd_download_zip&file_ids=").concat(B(JSON.stringify([n]))):"".concat(igd.ajaxUrl,"?action=igd_download&id=").concat(n,"&accountId=").concat(i);e+='<a class="igd-download-link" href="'.concat(a,'">').concat(r,"</a> <br>")})),f(e),p()):p()},w=function(){f('[integrate_google_drive data="'.concat(B(JSON.stringify(m)),'"]')),p()},y=!!o,_="".concat(igd.pluginUrl,"/assets/images/shortcode-builder/insert-module.svg"),E=wp.i18n.__("Insert Module","integrate-google-drive");return"shortcodes"===o?E=wp.i18n.__("Insert Module Shortcodes","integrate-google-drive"):"browser"===o?E=wp.i18n.__("Insert File Browser","integrate-google-drive"):"embed"===o?E=wp.i18n.__("Embed Documents","integrate-google-drive"):"download"===o?E=wp.i18n.__("Insert Download Links","integrate-google-drive"):"view"===o&&(E=wp.i18n.__("Insert View Links","integrate-google-drive")),React.createElement("div",{className:"igd-module-builder-modal igd-tinymce-modal",onClick:function(e){return e.stopPropagation()}},React.createElement("div",{className:"igd-module-builder-modal-header"},React.createElement("div",{className:"header-title"},React.createElement("img",{src:_,width:20}),React.createElement("h3",null,E)),!!o&&!t&&React.createElement("button",{type:"button",className:"igd-btn btn-back",onClick:function(){l(""),d(""),g({})}},React.createElement("i",{className:"dashicons dashicons-arrow-left-alt2"}),React.createElement("span",null,wp.i18n.__("Back","integrate-google-drive"))),React.createElement("button",{type:"button",className:"igd-btn btn-danger",onClick:p},React.createElement("i",{className:"dashicons dashicons-no-alt"}),React.createElement("span",null,wp.i18n.__("Cancel","integrate-google-drive"))),React.createElement("button",{type:"button",className:"igd-btn btn-primary done ".concat(i?"loading":""," "),onClick:function(){y&&("embed"===o?v():"download"===o?h():"view"===o?function(){if(m.folders){var e="";m.folders.map((function(t){var n=t.webViewLink,i=t.name;e+='<a href="'.concat(n,'" target="_blank" >').concat(i," <br></a>")})),f(e),p()}else p()}():"shortcodes"===o?(f(s),p()):["browser","uploader","gallery","media","search","slider"].includes(o)&&w())}},i?React.createElement("div",{className:"igd-spinner"}):React.createElement("i",{className:"dashicons dashicons-saved"}),React.createElement("span",null,wp.i18n.__("Done","integrate-google-drive")))),!o&&React.createElement(Fl,{setType:l}),"shortcodes"===o&&React.createElement(Hl,{setContent:d}),!!o&&"shortcodes"!==o&&React.createElement(nr,{value:{editData:Ql(Ql({},m),{},{type:o}),setEditData:g,updateShortcode:function(e){"embed"===o?v():["download","view"].includes(o)?h():w()},isEditor:"classic",builderType:o}},React.createElement(ol,null)))}jQuery;var Zl={init:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=e?window.parent.jQuery(window.parent.document):jQuery(document);e&&(window.tinymce=e),t.on("click","#igd-media-button",(function(e){e.preventDefault(),Zl.openModuleBuilder()}));var n=!1,i=function(e,t){return!!t.dom.hasClass(e,"igd_module_shortcode")},r=function(e){var t=e.dom.get("wp-igd-toolbar");t&&e.dom.remove(t),e.dom.setAttrib(e.dom.select("img[data-wp-igd-select]"),"data-wp-igd-select",null),n=!1};tinymce.PluginManager.add("igd_tinymce_js",(function(e){e.on("BeforeSetcontent",(function(e){e.content=e.content.replace(/\[integrate_google_drive data="([^\]]*)"\]/g,(function(e,t){return'<img src="data:image/svg+xml,<svg xmlns=\'http://www.w3.org/2000/svg\' width=\'5\' height=\'5\'></svg>" class="igd_module_shortcode mceItem" title="Integrate Google Drive" data-mce-placeholder="1" data-code="'.concat(t,'"/>')}))})),e.on("PostProcess",(function(e){e.get&&(e.content=function(e){function t(e,t){return(t=new RegExp(t+'="([^"]+)"',"g").exec(e))?t[1]:""}return e.replace(/(?:<p[^>]*>)*(<img[^>]+>)(?:<\/p>)*/g,(function(e,n){return-1!=t(n,"class").indexOf("igd_module_shortcode")?'<p>[integrate_google_drive data="'.concat(t(n,"data-code"),'"]</p>'):e}))}(e.content))})),e.on("mouseup",(function(t){var a,o=t.target,l=e.dom;if(!(t.button&&t.button>1))if("DIV"===o.nodeName&&l.getParent(o,"#wp-igd-toolbar")){if(a=l.select("img[data-wp-igd-select]")[0])if(e.selection.select(a),l.hasClass(o,"remove"))r(e),function(e,t){t.dom.remove(e),r(t)}(a,e);else if(l.hasClass(o,"edit")){var c=e.selection.getContent(),s=/\[integrate_google_drive data="([^\]]*)"\]/g.exec(c);if(s){var d=s[1],u=JSON.parse(U(d));Zl.openModuleBuilder(u)}r(e)}}else"IMG"===o.nodeName&&!e.dom.getAttrib(o,"data-wp-igd-select")&&i(o,e)?function(e,t){var a,o,l=t.dom;r(t),e&&"IMG"===e.nodeName&&i(e,t)&&(l.setAttrib(e,"data-wp-igd-select",1),a='<div class="dashicons dashicons-edit edit" title="'.concat(wp.i18n.__("Edit","integrate-google-drive"),'" data-mce-bogus="1"></div>\n                    <div class="dashicons dashicons-no-alt remove" title="Remove" data-mce-bogus="1"></div>'),o=l.create("div",{id:"wp-igd-toolbar","data-mce-bogus":"1",contenteditable:!1},a),e.parentNode.insertBefore(o,e),n=!0)}(o,e):"IMG"!==o.nodeName&&r(e)})),e.on("mousedown",(function(t){e.dom.getParent(t.target,"#wp-igd-toolbar")?tinymce.Env.ie&&t.preventDefault():r(e)})),e.on("keydown",(function(t){var i=t.keyCode;if(n){if(t.ctrlKey||t.metaKey||t.altKey||i<48&&i>90||i>186)return;r(e)}})),e.on("cut",(function(){r(e)}))}))},openModuleBuilder:function(e){Swal.fire({html:'<div id="igd-tinymce" class="igd-module-builder-modal-wrap"></div>',showConfirmButton:!1,customClass:{container:"igd-module-builder-modal-container"},didOpen:function(){ReactDOM.render(React.createElement(Xl,{initData:e}),document.getElementById("igd-tinymce"))},willClose:function(){ReactDOM.unmountComponentAtNode(document.getElementById("igd-tinymce"))}})}};const $l=Zl;var ec=jQuery,tc={init:function(){ec(document).on("click",".igd-form-uploader-trigger-cf7",tc.openModal)},openModal:function(e){var t=ec("#tag-generator-panel-google_drive-data"),n={type:"uploader",isFormUploader:"cf7",folders:[]};if(t.val())try{n=JSON.parse(U(t.val()))}catch(e){console.log(e)}Swal.fire({html:'<div id="igd-form-uploader-config" class="igd-module-builder-modal-wrap"></div>',showConfirmButton:!1,customClass:{container:"igd-module-builder-modal-container"},didOpen:function(){ReactDOM.render(React.createElement(El,{initData:n,onUpdate:function(e){tc.updateData(e,t),Swal.close()},onClose:function(){return Swal.close()},isFormBuilder:"cf7"}),document.getElementById("igd-form-uploader-config"))},willClose:function(){ReactDOM.unmountComponentAtNode(document.getElementById("igd-form-uploader-config"))}})},updateData:function(e,t){var n;if(null!=e&&null!==(n=e.folders)&&void 0!==n&&n.length){var i=e.folders[0];e.folders[0]={id:i.id,accountId:i.accountId,name:i.name,type:i.type}}try{var r=JSON.stringify(e);t.val(B(r)).trigger("change")}catch(e){console.log(e)}}};const nc=tc;var ic=jQuery,rc={init:function(){T(),ic(document).on("click",".igd-form-uploader-trigger-wpforms",rc.openModal),ic(document).on("wpformsFieldAdd",(function(e,t,n){"igd-uploader"===n&&T()}))},openModal:function(){var e={type:"uploader",isFormUploader:"wpforms"},t=ic(this).parent().find(".igd-uploader-data");if(t.val())try{e=JSON.parse(t.val())}catch(e){console.log(e)}Swal.fire({html:'<div id="igd-form-uploader-config" class="igd-module-builder-modal-wrap"></div>',showConfirmButton:!1,customClass:{container:"igd-swal igd-module-builder-modal-container"},didOpen:function(n){ReactDOM.render(React.createElement(El,{initData:e,onUpdate:function(e){rc.updateData(e,t),Swal.close()},onClose:function(){return Swal.close()},isFormBuilder:"wpforms"}),document.getElementById("igd-form-uploader-config"))},willClose:function(e){ReactDOM.unmountComponentAtNode(document.getElementById("igd-form-uploader-config"))}})},updateData:function(e,t){var n;if(null!=e&&null!==(n=e.folders)&&void 0!==n&&n.length){var i=e.folders[0];e.folders[0]={id:i.id,accountId:i.accountId,name:i.name,type:i.type}}var r=JSON.stringify(e);t.val(r).trigger("change");var a=ic(".wpforms-field-igd-uploader.active .igd");ReactDOM.unmountComponentAtNode(a[0]),a.attr("data-shortcode-data",B(r)),T()}};const ac=rc;var oc=jQuery,lc={init:function(){oc("#igd-form-uploader-config-gravityforms").on("click",lc.openModal),oc(document).on("gform_field_added",(function(e,t,n){"integrate_google_drive"===n.type&&T()})),oc(document).on("gform_load_field_settings",(function(e,t){"integrate_google_drive"===t.type&&(oc(".igd-uploader-data").val(t.defaultValue),void 0!==t.igdData&&""!==t.igdData&&oc(".igd-uploader-data").val(t.igdData))}))},openModal:function(){var e=oc(this).parent().find(".igd-uploader-data"),t={type:"uploader",isFormUploader:"gravityforms"};if(e.val())try{t=JSON.parse(e.val())}catch(e){console.log(e)}Swal.fire({html:'<div id="igd-form-uploader-config" class="igd-module-builder-modal-wrap"></div>',showConfirmButton:!1,customClass:{container:"igd-module-builder-modal-container"},didOpen:function(){ReactDOM.render(React.createElement(El,{initData:t,onUpdate:function(t){lc.updateData(t,e),Swal.close()},onClose:function(){return Swal.close()},isFormBuilder:"gravityforms"}),document.getElementById("igd-form-uploader-config"))},willClose:function(){ReactDOM.unmountComponentAtNode(document.getElementById("igd-form-uploader-config"))}})},updateData:function(e,t){var n;if(null!=e&&null!==(n=e.folders)&&void 0!==n&&n.length){var i=e.folders[0];e.folders[0]={id:i.id,accountId:i.accountId,name:i.name,type:i.type}}var r=JSON.stringify(e);oc(t).val(r).trigger("change");var a=oc(".gfield.field_selected .igd");ReactDOM.unmountComponentAtNode(a.get(0)),a.attr("data-shortcode-data",B(r)),T()}};const cc=lc;var sc=jQuery,dc={init:function(){sc("#ff_form_editor_app").on("click",".igd-form-uploader-trigger-fluentforms",dc.openModal);var e=document.querySelector(".panel__body--list");e&&sc(e).on("DOMNodeInserted",(function(e){sc(e.target).find(".igd")&&T()}))},openModal:function(){var e=sc(".igd-uploader-data textarea");sc(e).on("input",(function(){var e=sc(this).val(),t=sc(".panel__body--item.selected .igd");ReactDOM.unmountComponentAtNode(t[0]),t.attr("data-shortcode-data",B(e)),T()}));var t={type:"uploader",isFormUploader:"fluentforms"};if(e.val())try{t=JSON.parse(e.val())}catch(e){console.log(e)}Swal.fire({html:'<div id="igd-form-uploader-config" class="igd-module-builder-modal-wrap"></div>',showConfirmButton:!1,customClass:{container:"igd-module-builder-modal-container"},didOpen:function(){ReactDOM.render(React.createElement(El,{initData:t,onUpdate:function(t){dc.updateData(t,e)},onClose:function(){return Swal.close()},isFormBuilder:"fluentforms"}),document.getElementById("igd-form-uploader-config"))},willClose:function(){ReactDOM.unmountComponentAtNode(document.getElementById("igd-form-uploader-config"))}})},updateData:function(e,t){var n;if(null!=e&&null!==(n=e.folders)&&void 0!==n&&n.length){var i=e.folders[0];e.folders[0]={id:i.id,accountId:i.accountId,name:i.name,type:i.type}}var r=JSON.stringify(e);Swal.fire({title:wp.i18n.__("Shortcode Data","integrate-google-drive"),text:wp.i18n.__('Please, copy the following text and paste it into the "Shortcode Data" form editor field.',"integrate-google-drive"),input:"textarea",inputValue:r,showCancelButton:!1,showCloseButton:!0,confirmButtonText:wp.i18n.__("Copy","integrate-google-drive"),didOpen:function(e){e.querySelector("textarea").select(),document.execCommand("copy")},reverseButtons:!0,customClass:{container:"igd-shortcode-data-modal-container",input:"igd-swal igd-shortcode-data-modal-input"}}),t.val("")}};const uc=dc;var mc=jQuery,gc={init:function(){T(),mc("#frm_builder_page").on("click",".igd-form-uploader-trigger-formidableforms",gc.openModal);var e=mc("#frm-show-fields");e.length&&e.on("DOMNodeInserted",(function(e){mc(e.target).find(".igd").length&&T()}))},openModal:function(){var e={type:"uploader",isFormUploader:"formidableforms"},t=mc(".frm-fields:not(.frm_hidden) .igd-uploader-data");if(t.val())try{e=JSON.parse(t.val())}catch(e){console.log(e)}Swal.fire({html:'<div id="igd-form-uploader-config" class="igd-module-builder-modal-wrap"></div>',showConfirmButton:!1,customClass:{container:"igd-module-builder-modal-container"},didOpen:function(){ReactDOM.render(React.createElement(El,{initData:e,onUpdate:function(e){gc.updateData(e,t),Swal.close()},onClose:function(){return Swal.close()},isFormBuilder:"formidableforms"}),document.getElementById("igd-form-uploader-config"))},willClose:function(){ReactDOM.unmountComponentAtNode(document.getElementById("igd-form-uploader-config"))}})},updateData:function(e,t){var n;if(null!=e&&null!==(n=e.folders)&&void 0!==n&&n.length){var i=e.folders[0];e.folders[0]={id:i.id,accountId:i.accountId,name:i.name,type:i.type}}var r=JSON.stringify(e);t.val(r).trigger("change");var a=mc(".edit_field_type_integrate-google-drive.selected .igd");ReactDOM.unmountComponentAtNode(a[0]),a.attr("data-shortcode-data",B(r)),T()}};const pc=gc;var fc=jQuery,vc={init:function(){T(),fc("#nf-builder").on("click",".igd-form-uploader-trigger-ninjaforms",vc.openModal)},openModal:function(){var e={type:"uploader",isFormUploader:"ninjaforms"},t=fc("#igd_data");if(t.val())try{e=JSON.parse(t.val())}catch(e){console.log(e)}Swal.fire({html:'<div id="igd-form-uploader-config" class="igd-module-builder-modal-wrap"></div>',showConfirmButton:!1,customClass:{container:"igd-module-builder-modal-container"},didOpen:function(){ReactDOM.render(React.createElement(El,{initData:e,onUpdate:function(e){vc.updateData(e,t),Swal.close()},onClose:function(){return Swal.close()},isFormBuilder:"ninjaforms"}),document.getElementById("igd-form-uploader-config"))},willClose:function(){ReactDOM.unmountComponentAtNode(document.getElementById("igd-form-uploader-config"))}})},updateData:function(e,t){var n;if(null!=e&&null!==(n=e.folders)&&void 0!==n&&n.length){var i=e.folders[0];e.folders[0]={id:i.id,accountId:i.accountId,name:i.name,type:i.type}}var r=JSON.stringify(e);t.val(r).trigger("change");var a=fc(".nf-field-wrap.integrate_google_drive.active .igd");ReactDOM.unmountComponentAtNode(a[0]),a.attr("data-shortcode-data",B(r)),T()}};const hc=vc;window.ModuleBuilderModal=El,window.IgdShortcode=Mr,window.initShortcode=T,function(e){var t=igd.isPro,n=igd.settings.integrations,i=void 0===n?["classic-editor","gutenberg-editor","elementor","divi","cf7"]:n,r={init:function(){r.initFileBrowser(),r.initShortcodeBuilder(),e(window).on("elementor/frontend/init",(function(){elementor.hooks.addAction("panel/open_editor/widget",(function(e,t,n){window.parent.tinyMCE&&window.parent.tinyMCE.on("AddEditor",(function(e){$l.init(window.parent.tinymce)}))}))}))},ready:function(){i.includes("classic-editor")&&"undefined"!=typeof tinymce&&$l.init(),i.includes("cf7")&&nc.init(),t&&(t&&i.includes("wpforms")&&ac.init(),t&&i.includes("gravityforms")&&cc.init(),t&&i.includes("fluentforms")&&uc.init(),t&&i.includes("formidableforms")&&pc.init(),t&&i.includes("ninjaforms")&&hc.init()),i.includes("gutenberg-editor")&&r.updateBlockCategoryIcon(),e(document).on("click",".igd-offer-notice .offer-btn-main, .igd-offer-notice .notice-dismiss",r.handleNoticeDismiss)},handleNoticeDismiss:function(t){e(this).closest(".igd-admin-notice").slideUp(),wp.ajax.post("igd_dismiss_offer_notice")},initFileBrowser:function(){var e=document.getElementById("igd-app");if(e){var t={},n=jQuery(e).find(".app-data").html();n&&(t=JSON.parse(n)),ReactDOM.render(React.createElement($i,t),e)}},initShortcodeBuilder:function(){var e=document.getElementById("igd-shortcode-builder");if(e){var t={},n=jQuery(e).find(".shortcode-builder-data").html();n&&(t=JSON.parse(n)),ReactDOM.render(React.createElement(wl,t),e)}},updateBlockCategoryIcon:function(){var e=React.createElement("svg",{width:"18",height:"18",viewBox:"0 0 87.3 78",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"m6.6 66.85 3.85 6.65c.8 1.4 1.95 2.5 3.3 3.3l13.75-23.8h-27.5c0 1.55.4 3.1 1.2 4.5z",fill:"#0066da"}),React.createElement("path",{d:"m43.65 25-13.75-23.8c-1.35.8-2.5 1.9-3.3 3.3l-25.4 44a9.06 9.06 0 0 0 -1.2 4.5h27.5z",fill:"#00ac47"}),React.createElement("path",{d:"m73.55 76.8c1.35-.8 2.5-1.9 3.3-3.3l1.6-2.75 7.65-13.25c.8-1.4 1.2-2.95 1.2-4.5h-27.502l5.852 11.5z",fill:"#ea4335"}),React.createElement("path",{d:"m43.65 25 13.75-23.8c-1.35-.8-2.9-1.2-4.5-1.2h-18.5c-1.6 0-3.15.45-4.5 1.2z",fill:"#00832d"}),React.createElement("path",{d:"m59.8 53h-32.3l-13.75 23.8c1.35.8 2.9 1.2 4.5 1.2h50.8c1.6 0 3.15-.45 4.5-1.2z",fill:"#2684fc"}),React.createElement("path",{d:"m73.4 26.5-12.7-22c-.8-1.4-1.95-2.5-3.3-3.3l-13.75 23.8 16.15 28h27.45c0-1.55-.4-3.1-1.2-4.5z",fill:"#ffba00"}));wp.blocks&&wp.blocks.updateCategory("igd-category",{icon:e})}};r.init(),e(document).on("ready",r.ready)}(jQuery)})()})();
     1(()=>{var e={155:e=>{var t,n,i=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(e){if(t===setTimeout)return setTimeout(e,0);if((t===a||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:a}catch(e){t=a}try{n="function"==typeof clearTimeout?clearTimeout:r}catch(e){n=r}}();var l,c=[],s=!1,d=-1;function u(){s&&l&&(s=!1,l.length?c=l.concat(c):d=-1,c.length&&m())}function m(){if(!s){var e=o(u);s=!0;for(var t=c.length;t;){for(l=c,c=[];++d<t;)l&&l[d].run();d=-1,t=c.length}l=null,s=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===r||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function g(e,t){this.fun=e,this.array=t}function p(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new g(e,t)),1!==c.length||s||o(m)},g.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=p,i.addListener=p,i.once=p,i.off=p,i.removeListener=p,i.removeAllListeners=p,i.emit=p,i.prependListener=p,i.prependOnceListener=p,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},880:(e,t,n)=>{"use strict";var i=n(976);function a(){}function r(){}r.resetWarningCache=a,e.exports=function(){function e(e,t,n,a,r,o){if(o!==i){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:r,resetWarningCache:a};return n.PropTypes=n,n}},884:(e,t,n)=>{e.exports=n(880)()},976:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}},t={};function n(i){var a=t[i];if(void 0!==a)return a.exports;var r=t[i]={exports:{}};return e[i](r,r.exports,n),r.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=React.createContext();const t=e;var i=e.Provider;function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,a,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=r.call(n)).done)&&(l.push(i.value),l.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw a}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var o=React,l=o.useEffect,c=o.useState;function s(e){var t=e.text,n=e.isDismissable,i=void 0===n||n,r=a(c(!0),2),o=r[0],s=r[1];return l((function(){o||ReactDOM.unmountComponentAtNode(document.getElementById("igd-pro-modal"))}),[o]),l((function(){var e=jQuery;function t(){var e=(new Date).getTime()+2.3*24*60*60*1e3;localStorage.setItem("igd_offer_time",e),n=e}i&&e(document).on("click",".igd-pro-modal-wrap",(function(t){e(t.target).hasClass("igd-pro-modal-wrap")&&s(!1)}));var n=localStorage.getItem("igd_offer_time");!n||isNaN(n)?t():n=parseInt(n),setInterval((function(){var i=(new Date).getTime(),a=n-i;a<0&&(t(),a=n-i);var r=Math.floor(a/864e5),o=Math.floor(a%864e5/36e5),l=Math.floor(a%36e5/6e4),c=Math.floor(a%6e4/1e3);e(".timer .days span:first").text(r),e(".timer .hours span:first").text(o),e(".timer .minutes span:first").text(l),e(".timer .seconds span:first").text(c)}),1e3)}),[]),o?React.createElement("div",{className:"igd-pro-modal-wrap"},React.createElement("div",{className:"igd-pro-modal"},React.createElement("span",{className:"igd-pro-modal-close",onClick:function(){return s(!1)}},"×"),React.createElement("img",{src:"".concat(igd.pluginUrl,"/assets/images/offer.svg"),alt:"Upgrade to Pro"}),React.createElement("div",{className:"discount"},React.createElement("span",{className:"discount-special"},wp.i18n.__("Special","igd-dark-mode")),React.createElement("span",{className:"discount-text"},wp.i18n.__("30% OFF","igd-dark-mode"))),React.createElement("h3",null,wp.i18n.__("Unlock PRO Feature","integrate-google-drive")),React.createElement("p",null,t),React.createElement("div",{className:"timer"},React.createElement("div",{className:"days"},React.createElement("span",null,"0"),React.createElement("span",null,"DAYS")),React.createElement("div",{className:"hours"},React.createElement("span",null,"0"),React.createElement("span",null,"HOURS")),React.createElement("div",{className:"minutes"},React.createElement("span",null,"0"),React.createElement("span",null,"MINUTES")),React.createElement("div",{className:"seconds"},React.createElement("span",null,"0"),React.createElement("span",null,"SECONDS"))),React.createElement("div",{className:"igd-pro-modal-actions"},React.createElement("a",{href:igd.upgradeUrl,className:"igd-btn btn-primary"},wp.i18n.__("Upgrade Now","integrate-google-drive"))))):null}function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function u(){u=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},r=a.iterator||"@@iterator",o=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function s(e,t,n,a){var r=t&&t.prototype instanceof p?t:p,o=Object.create(r.prototype),l=new O(a||[]);return i(o,"_invoke",{value:R(e,n,l)}),o}function m(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var g={};function p(){}function f(){}function v(){}var h={};c(h,r,(function(){return this}));var w=Object.getPrototypeOf,y=w&&w(w(k([])));y&&y!==t&&n.call(y,r)&&(h=y);var b=v.prototype=p.prototype=Object.create(h);function _(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function a(i,r,o,l){var c=m(e[i],e,r);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==d(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){a("next",e,o,l)}),(function(e){a("throw",e,o,l)})):t.resolve(u).then((function(e){s.value=e,o(s)}),(function(e){return a("throw",e,o,l)}))}l(c.arg)}var r;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){a(e,n,t,i)}))}return r=r?r.then(i,i):i()}})}function R(e,t,n){var i="suspendedStart";return function(a,r){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===a)throw r;return F()}for(n.method=a,n.arg=r;;){var o=n.delegate;if(o){var l=N(o,n);if(l){if(l===g)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var c=m(e,t,n);if("normal"===c.type){if(i=n.done?"completed":"suspendedYield",c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i="completed",n.method="throw",n.arg=c.arg)}}}function N(e,t){var n=t.method,i=e.iterator[n];if(void 0===i)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,N(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var a=m(i,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,g;var r=a.arg;return r?r.done?(t[e.resultName]=r.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,g):r:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,g)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function k(e){if(e){var t=e[r];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function t(){for(;++i<e.length;)if(n.call(e,i))return t.value=e[i],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:F}}function F(){return{value:void 0,done:!0}}return f.prototype=v,i(b,"constructor",{value:v,configurable:!0}),i(v,"constructor",{value:f,configurable:!0}),f.displayName=c(v,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,l,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},_(E.prototype),c(E.prototype,o,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,i,a,r){void 0===r&&(r=Promise);var o=new E(s(t,n,i,a),r);return e.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},_(b),c(b,l,"Generator"),c(b,r,(function(){return this})),c(b,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var i in t)n.push(i);return n.reverse(),function e(){for(;n.length;){var i=n.pop();if(i in t)return e.value=i,e.done=!1,e}return e.done=!0,e}},e.values=k,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function i(n,i){return o.type="throw",o.arg=e,t.next=n,i&&(t.method="next",t.arg=void 0),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var r=this.tryEntries[a],o=r.completion;if("root"===r.tryLoc)return i("end");if(r.tryLoc<=this.prev){var l=n.call(r,"catchLoc"),c=n.call(r,"finallyLoc");if(l&&c){if(this.prev<r.catchLoc)return i(r.catchLoc,!0);if(this.prev<r.finallyLoc)return i(r.finallyLoc)}else if(l){if(this.prev<r.catchLoc)return i(r.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return i(r.finallyLoc)}}}},abrupt:function(e,t){for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var r=a;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var o=r?r.completion:{};return o.type=e,o.arg=t,r?(this.method="next",this.next=r.finallyLoc,g):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var a=i.arg;C(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:k(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),g}},e}function m(e,t,n,i,a,r,o){try{var l=e[r](o),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(i,a)}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==d(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==d(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===d(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,a,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=r.call(n)).done)&&(l.push(i.value),l.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw a}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return h(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function w(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n={text:{"application/vnd.oasis.opendocument.text":"Text","text/plain":"Text"},file:{"text/html":"HTML","text/php":"PHP","x-httpd-php":"PHP","text/css":"CSS","text/js":"JavaScript","application/javascript":"JavaScript","application/json":"JSON","application/xml":"XML","application/x-shockwave-flash":"SWF","video/x-flv":"FLV","application/vnd.google-apps.file":"File"},image:{"application/vnd.google-apps.photo":"Photo","image/png":"PNG","image/jpeg":"JPEG","image/jpg":"JPG","image/gif":"GIF","image/bmp":"BMP","image/vnd.microsoft.icon":"ICO","image/tiff":"TIFF","image/tif":"TIF","image/svg+xml":"SVG"},zip:{"application/zip":"ZIP","application/x-rar-compressed":"RAR","application/x-msdownload":"EXE","application/vnd.ms-cab-compressed":"CAB"},audio:{"audio/mpeg":"MP3","video/quicktime":"QT","application/vnd.google-apps.audio":"Audio","audio/x-m4a":"Audio"},video:{"application/vnd.google-apps.video":"Video","video/x-flv":"Video","video/mp4":"Video","video/webm":"Video","video/ogg":"Video","application/x-mpegURL":"Video","video/MP2T":"Video","video/3gpp":"Video","video/quicktime":"Video","video/x-msvideo":"Video","video/x-ms-wmv":"Video"},pdf:{"application/pdf":"PDF"},word:{"application/msword":"MS Word"},doc:{"application/vnd.google-apps.document":"Google Docs"},excel:{"application/vnd.ms-excel":"Excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":"Excel"},presentation:{"application/vnd.google-apps.presentation":"Slide","application/vnd.oasis.opendocument.presentation":"Presentation"},powerpoint:{"application/vnd.ms-powerpoint":"Powerpoint"},form:{"application/vnd.google-apps.form":"Form"},folder:{"application/vnd.google-apps.folder":"Folder"},drawing:{"application/vnd.google-apps.drawing":"Drawing"},script:{"application/vnd.google-apps.script":"Script"},sites:{"application/vnd.google-apps.sites":"Sites"},spreadsheet:{"application/vnd.google-apps.spreadsheet":"Spreadsheet","application/vnd.oasis.opendocument.spreadsheet":"Spreadsheet"}},i="File",a="file";return Object.keys(n).map((function(r){t&&n[r][e]?a=r:n[r][e]&&(i=n[r][e])})),t?a:i}function y(e){if(e<1)return 0;var t=Math.floor(Math.log(e)/Math.log(1024));return 1*(e/Math.pow(1024,t)).toFixed(2)+" "+["Byte","KB","MB","GB","TB"][t]}function b(e){var t;return!e.type||("application/vnd.google-apps.folder"===e.type||"application/vnd.google-apps.folder"===(null===(t=e.shortcutDetails)||void 0===t?void 0:t.targetMimeType))}function _(e){var t=w(e,!0);return t=t||"file","".concat(igd.pluginUrl,"/assets/images/icons/").concat(t,".png")}function E(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:igd.activeAccount,n=t.root_id,i=t.id,a=[{accountId:i,id:n,name:wp.i18n.__("My Drive","integrate-google-drive"),type:"application/vnd.google-apps.folder",iconLink:"".concat(igd.pluginUrl,"/assets/images/my-drive.svg")},{accountId:i,id:"shared-drives",name:wp.i18n.__("Shared Drives","integrate-google-drive"),type:"application/vnd.google-apps.folder",iconLink:"".concat(igd.pluginUrl,"/assets/images/shared-drives.svg")},{accountId:i,id:"computers",name:wp.i18n.__("Computers","integrate-google-drive"),type:"application/vnd.google-apps.folder",iconLink:"".concat(igd.pluginUrl,"/assets/images/computers.svg")},{accountId:i,id:"shared",name:wp.i18n.__("Shared with me","integrate-google-drive"),type:"application/vnd.google-apps.folder",iconLink:"".concat(igd.pluginUrl,"/assets/images/shared.svg")},{accountId:i,id:"starred",name:wp.i18n.__("Starred","integrate-google-drive"),type:"application/vnd.google-apps.folder",iconLink:"".concat(igd.pluginUrl,"/assets/images/starred.svg")}];return e?a.find((function(t){return t.id==e})):a}function R(e){var t,n,i,a=null==e||null===(t=e.getSource)||void 0===t||null===(n=t.call(e))||void 0===n||null===(i=n.relativePath)||void 0===i?void 0:i.replace(/^\//,"");return null!=a?a:""}function N(e){return C(e)||S(e)}function S(e){var t,n;return!(null==e||null===(t=e.type)||void 0===t||!t.includes("video/"))||!(null===(n=e.shortcutDetails)||void 0===n||!n.targetMimeType.includes("video/"))}function C(e){var t,n;return!(null===(t=e.type)||void 0===t||!t.includes("audio/"))||!(null===(n=e.shortcutDetails)||void 0===n||!n.targetMimeType.includes("audio/"))}function O(e){var t,n;return!(null===(t=e.type)||void 0===t||!t.includes("image/"))||!(null===(n=e.shortcutDetails)||void 0===n||!n.targetMimeType.includes("image/"))}function k(e,t){return E(e,t)}function F(){return{browser:{title:wp.i18n.__("File Browser","integrate-google-drive"),description:wp.i18n.__("Let your users browse the selected specific Google Drive files and folders.","integrate-google-drive"),isPro:!0},uploader:{title:wp.i18n.__("File Uploader","integrate-google-drive"),description:wp.i18n.__("Let your users upload files to the specific selected Google Drive folder.","integrate-google-drive"),isPro:!0},media:{title:wp.i18n.__("Media Player","integrate-google-drive"),description:wp.i18n.__("Play audio and video files in a media player.","integrate-google-drive"),isPro:!0},search:{title:wp.i18n.__("Search Box","integrate-google-drive"),description:wp.i18n.__("Let your users search for contents and files via a search box.","integrate-google-drive"),isPro:!0},slider:{title:wp.i18n.__("Slider Carousel","integrate-google-drive"),description:wp.i18n.__("Display images, videos and documents in a slider carousel.","integrate-google-drive"),isPro:!0},gallery:{title:wp.i18n.__("Gallery","integrate-google-drive"),description:wp.i18n.__("Display images and videos in a masonry grid layout with lightbox preview.","integrate-google-drive")},embed:{title:wp.i18n.__("Embed Documents","integrate-google-drive"),description:wp.i18n.__("Embed Google Drive documents.","integrate-google-drive")},download:{title:wp.i18n.__("Download Links","integrate-google-drive"),description:wp.i18n.__("Insert Google Drive files download links.","integrate-google-drive")},view:{title:wp.i18n.__("View Links","integrate-google-drive"),description:wp.i18n.__("Insert Google Drive files view links.","integrate-google-drive")}}}function A(e){var t=e.target.parentNode.querySelector("code");window.getSelection().selectAllChildren(t);var n=t.innerHTML;if(window.isSecureContext)navigator.clipboard.writeText(n);else{var i=document.createElement("textarea");i.value=n,document.body.appendChild(i),i.select(),document.execCommand("Copy"),i.remove()}Swal.fire({title:wp.i18n.__("Copied","integrate-google-drive"),text:wp.i18n.__("Shortcode copied to clipboard","integrate-google-drive"),icon:"success",showConfirmButton:!1,timer:2e3,timerProgressBar:!0,toast:!0})}function x(e,t){e.onerror=null;var n="https://www.gravatar.com/avatar/"+t+"?s=200&d=mm";e.src===n?e.src="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD//gA7Q1JFQVRPUjogZ2QtanBlZyB2MS4wICh1c2luZyBJSkcgSlBFRyB2NjIpLCBxdWFsaXR5ID0gOTAK/9sAQwADAgIDAgIDAwMDBAMDBAUIBQUEBAUKBwcGCAwKDAwLCgsLDQ4SEA0OEQ4LCxAWEBETFBUVFQwPFxgWFBgSFBUU/9sAQwEDBAQFBAUJBQUJFA0LDRQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQU/8AAEQgAyADIAwEiAAIRAQMRAf/EAB8AAAEFAQEBAQEBAAAAAAAAAAABAgMEBQYHCAkKC//EALUQAAIBAwMCBAMFBQQEAAABfQECAwAEEQUSITFBBhNRYQcicRQygZGhCCNCscEVUtHwJDNicoIJChYXGBkaJSYnKCkqNDU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6g4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2drh4uPk5ebn6Onq8fLz9PX29/j5+v/EAB8BAAMBAQEBAQEBAQEAAAAAAAABAgMEBQYHCAkKC//EALURAAIBAgQEAwQHBQQEAAECdwABAgMRBAUhMQYSQVEHYXETIjKBCBRCkaGxwQkjM1LwFWJy0QoWJDThJfEXGBkaJicoKSo1Njc4OTpDREVGR0hJSlNUVVZXWFlaY2RlZmdoaWpzdHV2d3h5eoKDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uLj5OXm5+jp6vLz9PX29/j5+v/aAAwDAQACEQMRAD8A+t6KMUtACZooxRQAUZpaSgAozRiloASijFGKADNFLRigBM0UUtACUUtJigAopaKAE5oopaAEo5paKAEoopaAE5opaKAEooooAWkoooAMUUUUAFFFFABRRRQAUUUUAGKKKKACiiigApaSigAooooAWkoooAKWkooAKKKKAClpKWgBKKKKACiiloASiiigAop8UTzyLHGrSOxwqqMkmvTPCnwpXYl1rJJY8i0Q8D/eP9B+dAHnVjpl3qcvl2ltLcv6RoWx9fSumsvhXr10AZI4bUH/AJ7Sc/kua9ltLO3sIRDbQxwRDokahR+QqagDyL/hTmp7f+P20z6Zb/CqV58KddtgTGkF0PSKTB/8exXtVFAHzff6Re6VJsvLWW2bt5ikA/Q96qV9LXNrDeRGKeJJ426pIoYH8DXnvir4UxTK9zox8qXqbVj8p/3T2+h/SgDyujFSTwSWszwzRtHKh2sjDBBqOgApaSigAoo7UUAFFFFAC0UlFABRRiigAooooAKKKKAClUFmAAJJ4AApK7r4V+GxqmqNqE6hoLQjaD/FIen5dfyoA634f+B00G2W9vEDajIMgN/yxB7D39fyrtKKSgApaKKACkopaACikxRQByXjzwTF4jtGubdAmpRD5WHHmD+6f6GvFJEeJ2R1KOpwVYYIPpX0zXkvxY8NLZXseqwKFiuDslAHR8dfxA/T3oA8+oxR0ooAKKMUYoAMUUUYoAKKMUUAFGaKM0AFFFFABR3oooAK978CaUNJ8L2MW3bJIgmf/ebn9BgfhXhFtF59zFGP43C/ma+lY0EaKi8KoAFADqKKKAEpaSloAKSlpKACloooASsjxdpY1nw5fW23LmMsn+8OR+orXpTyKAPmSlqzq1uLTVLyAcCKZ0GfZiKq0AFHNFFABS0mKKACiiigAoopaAEo60UUAFFFHegCxp8giv7Zz0SVSfzFfSdfMoPOa+ivD+oDVdEsbsHPmxKT7HHI/PNAGhSUtFABRRRQAlFLRQAlFGaWgBKKWqup3y6bp1zdv92GNnP4DNAHz74gkEuvalIOjXMpH4uaoU53MjszcliSTSUAJRS0lABRS0UAJiiiigAooxRQAUUUfpQAUUUUAFerfCLXlms59KlceZEfMhB7qeoH0PP415TirekapPouowXts22WJsj0I7g+xFAH0hSdqzvD+u2/iLTYry2PDDDoTyjdwa0aAClpOlFAC0lLSUALRSUv4UAJXBfFrXls9Jj02Jx51yQzgdRGP8Tj8jXYa1rFtoWnS3l022NBwO7HsB714Drusz6/qk97cH55DwoPCr2AoAodaKMUUAFFFFABRRRQAUUdaKACiiigAo6UUUAFFFFABiiiigDY8M+J7vwvfefbNujbiWFj8rj/AB969q8O+KrDxNbCS1l2ygfPA5w6fh3HvXkfhz4f6p4hCyiMWtqf+W8wxkf7I6n+XvXpnh74d6X4fkjnCvc3aciaQ4wfYDgfrQB1FFFLQAn50UtJQAtZWv8AiWw8N2pmu5sMR8kSnLv9B/WtWuY8R/D3TPEUjzsJLe7brNG2cn3B4/lQB5P4q8WXfiq88yb93bpnyoFPCj+p96w66bxH8P8AVPDwaUoLq0H/AC3hGcf7w6j+XvXMmgAooooAMUUGjNABRiiigAoozRQAUUUUAFFFFABRRUkEEl1OkMKNJK7BVRRkkntQAW9vLdzJDDG0srkKqKMkmvWPB3wyg00Jd6qq3F31WA8pH9fU/pWl4G8DxeGrYT3CrJqTj5n6iMf3V/qa6ygAAAAAHFHaiigA6UUUUALSUUtACUClpM0ABGRgjg1wPjH4ZQ6isl3pSrb3fVoOiSfT0P6V39FAHzRcW8tpO8M0bRSodrIwwQajr27xz4Hh8S2xnt1WPUox8r9BIP7rf0NeKzwSWs8kMyNHKjFWRhggjtQBHRRRQAUUUUAFFFFABRRRQAUUUdaACvWvhh4PFjbrq12n+kSr+4Vh9xD/ABfU/wAvrXF+AfDX/CR64gkUmzt8STeh9F/E/pmvdAAowOAOMUAKaSiloAKKTNHagApaSjNAC0lAooAMUtJmgUAFGMUUZ4oAWvPvif4PF9bPq9omLiEfv0UffQfxfUfy+legZoIDAg8g8YoA+ZaK6Xx94a/4RzW3Ea4s7jMkJ7D1X8D+mK5qgAooooAKKKKACiiigAoorZ8IaR/bniKytSu6Ivvk/wB0cn+WPxoA9c+HugjQ/DkO9dtzcDzpT9eg/AY/WumpOg7YooAXrSUtJQAUtJS0AJRRRQAuaKKSgBaKSloAKKSigBc0UUlAHNfELQRrvhyfYu64tx50R+nUfiM/jivCq+miOtfP3i/SP7D8RXtqBtjD74/91uR/PH4UAY1FFFABRRRQAUUUd6ACvSPg3p2+6v74j7irCp+pyf5D8683r2n4UWf2bwmsuMGeZ5Py+X/2WgDsqDQaKACij8KSgBaO1JS/hQAUUlFACikpfwooAM0Cij8KAEpe1FFABRRRQAV5Z8ZNO2XWn3yj76GFj9OR/M/lXqdcb8VrMXPhN5MZMEySD8fl/wDZqAPFqKKKACiiigAooooAK9+8DweR4R0tfWEP+fP9aKKAN2iiigApKKKACloooASloooAKSiigApaKKAEooooAXFJRRQAVh+OYPtHhLVF64hL/wDfPP8ASiigDwGiiigAooooA//Z":e.src=n}function P(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=e.id,a=e.iconLink,r=e.thumbnailLink,o=e.accountId;e.shortcutDetails&&(i=e.shortcutDetails.targetId);var l=n.w,c=n.h;l||(l=64),c||(c=64);var s=null==a?void 0:a.replace("/16/","/".concat(l,"/"));if(r)if(function(e){var t,n,i,a,r,o;return"reader"===(null===(t=e.permissions)||void 0===t||null===(n=t.users)||void 0===n||null===(i=n.anyoneWithLink)||void 0===i?void 0:i.role)||"writer"===(null===(a=e.permissions)||void 0===a||null===(r=a.users)||void 0===r||null===(o=r.anyoneWithLink)||void 0===o?void 0:o.role)}(e))s="custom"===t?"https://drive.google.com/thumbnail?id=".concat(i,"&sz=w").concat(l,"-h").concat(c):"https://drive.google.com/thumbnail?id=".concat(i,"small"===t?"&sz=w300-h300":"medium"===t?"&sz=w600-h400":"large"===t?"&sz=w1024-h768":"full"===t?"&sz=w2048":"&sz=w300-h300");else if(r.includes("google.com")){var d="".concat(igd.ajaxUrl,"?action=igd_get_preview_thumbnail&id=").concat(i,"&size=").concat(t,"&accountId=").concat(o);"custom"===t&&(d+="&w=".concat(l,"&h=").concat(c)),s=d}else s="custom"===t?r.replace("=s220","=w".concat(l,"-h").concat(c)):"small"===t?r.replace("=s220","=w300-h300"):"medium"===t?r.replace("=s220","=h600-nu"):"large"===t?r.replace("=s220","=w1024-h768-p-k-nu"):"full"===t?r.replace("=s220",""):r.replace("=s220","=w200-h190-p-k-nu");return s}function j(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:wp.i18n.__("Upgrade to PRO to use this feature.","integrate-google-drive"),t=document.getElementById("igd-pro-modal");t||((t=document.createElement("div")).id="igd-pro-modal",document.body.appendChild(t)),ReactDOM.render(React.createElement(s,{text:e}),t)}function I(){var e=v(React.useState(!1),2),t=e[0],n=e[1];return React.useEffect((function(){n(!0)}),[]),t}function D(e,t,n,i,a){var r=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(!i||i.preview){n=n.filter((function(e){return!b(e)}));var o=!i||!1!==i.inlinePreview,l=n.find((function(e){return e.id===t}));if(!o&&l&&l.webViewLink)window.open(l.webViewLink,"_blank");else{var c=!i||!!i.download,s=!i||i.allowPreviewPopout,d=!!i&&i.comment,u=n.map((function(e){var t=e.id,n=e.name,a=e.iconLink,o=e.accountId,l=e.exportAs,s=e.exportLinks,u=e.webContentLink,m=e.description,g=N(e),p=O(e),f="";if(l&&c&&(s||u)){f="".concat(igd.ajaxUrl,"?action=igd_download&id=").concat(e.id,"&accountId=").concat(e.accountId);var v=Object.keys(l);if(v.length){var h=l[v[0]].mimetype;f+="&mimetype=".concat(h)}}var w={thumb:P(e,"small"),downloadUrl:f,subHtml:r?"<h4>".concat(n,"</h4>").concat(m?"<p>".concat(m,"</p>"):""):'<div class="item-name">\n                      <img src="'.concat(null==a?void 0:a.replace("/16/","/32/"),'" alt="').concat(n,'" />\n                      <span>').concat(n,"</span>\n                  </div>")};if(d){var y="".concat(window.location.protocol,"//").concat(window.location.host).concat(window.location.pathname),b="".concat(y,"?id=").concat(t);"disqus"===i.commentMethod?(w.disqusIdentifier=t,w.disqusUrl=b):w.fbHtml='<div class="fb-comments" data-href="'.concat(b,'" data-width="400" data-numposts="5"></div>')}if(g){w.poster=P(e,"large");var _=S(e)?"video/mp4":"audio/mp3";w.video='{"source": [{"src":"'.concat(igd.ajaxUrl,"?action=igd_stream&id=").concat(t,"&accountId=").concat(o,'", "type":"').concat(_,'"}], "attributes": {"preload": "auto","playsinline": true, "autoplay": true, "controls": true, "referrerpolicy": "no-referrer"}}')}else p?w.src=P(e,"full"):(w.iframe=!0,w.iframeTitle=n,w.src="".concat(igd.ajaxUrl,"?action=igd_preview&file_id=").concat(t,"&account_id=").concat(o,"&popout=").concat(!i||!!i.allowPreviewPopout));return w})),m=function(){document.body.style.overflow="hidden"},g=function t(){document.body.style.overflow="",e.target.removeEventListener("lgBeforeOpen",m),e.target.removeEventListener("lgAfterClose",t),e.target.removeEventListener("lgSlideItemLoad",w)};window.dynamicGallery&&(e.target.removeEventListener("lgBeforeOpen",m),e.target.removeEventListener("lgAfterClose",g),e.target.removeEventListener("lgSlideItemLoad",w),window.dynamicGallery.destroy(!0));var p=window.innerWidth<768,f=[lgThumbnail,lgZoom,lgVideo];d&&f.push(lgComment),p||f.push(lgFullscreen);var v={dynamic:!0,dynamicEl:u,plugins:f,addClass:"igd-lightbox ".concat(c?"":"no-download"," ").concat(r?"gallery-lightbox":""," "),counter:r,autoplayVideoOnSlide:!0,preload:3,mobileSettings:{showCloseIcon:!0,thumbWidth:60,thumbHeight:60,download:!0,controls:!0}};r?v.allowMediaOverlap=!0:v.appendSubHtmlTo=".lg-outer",d&&(v.commentBox=!0,"disqus"===i.commentMethod?v.disqusComments=!0:v.fbComments=!0),window.dynamicGallery=lightGallery(e.target,v),e.target.addEventListener("lgBeforeOpen",m),e.target.addEventListener("lgAfterClose",g),e.target.addEventListener("lgSlideItemLoad",w),a&&a.downloadNotification&&document.addEventListener("click",(function(e){e.target.classList.contains("lg-download")&&wp.ajax.post("igd_notification",{files:[l],notifications:a,type:"download"})}),!1);var h=n.findIndex((function(e){return e.id===t}));dynamicGallery.openGallery(h)}}function w(){var e=document.querySelector(".lg-current");if(e){var t=e.querySelector(".igd-hidepopout");s||t||e.insertAdjacentHTML("beforeend",'<div class="igd-hidepopout">&nbsp;</div>')}}}var T=function(){var e=window.IgdShortcode;Array.from(document.querySelectorAll(".igd")).forEach((function(t){var n=t.dataset.shortcodeData;if(n)try{var i=JSON.parse(U(n));ReactDOM.render(React.createElement(e,{data:i}),t)}catch(e){console.error("Could not parse the shortcode data",e)}}))};function B(e){return btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,(function(e,t){return String.fromCharCode("0x"+t)})))}function U(e){return decodeURIComponent(atob(e).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))}function L(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:igd.activeAccount;return t.root_id!==e&&k(e,t)}function M(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"550",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"600",n=window.screenLeft||window.screenX,i=window.screenTop||window.screenY,a=n+(window.innerWidth||document.documentElement.clientWidth||screen.width)/2-e/2,r=i+(window.innerHeight||document.documentElement.clientHeight||screen.height)/2-t/2,o=window.open(igd.authUrl,"newwindow","width=".concat(e,",height=").concat(t,",left=").concat(a,",top=").concat(r));o.focus&&o.focus()}function z(e,t){var n=H(e,t);return"igd_last_folder_".concat(n)}function H(e,t){var n="",i=window.location.pathname.replace(/\//g,"_");if(e||"undefined"==typeof pagenow||(i=pagenow.replace(/\//g,"_")),t)n+=t.id;else if(e){n=e.filter((function(e){return b(e)})).map((function(e){var t;return null===(t=e.id)||void 0===t?void 0:t.slice(0,3)})).join("_")}return"".concat(n,"_").concat(i)}function K(e,t,n){if(e){var i=z(t,n);sessionStorage.setItem(i,JSON.stringify(p(p({},e),{},{pageNumber:0})))}}function W(e,t){var n=z(e,t);sessionStorage.removeItem(n)}function Q(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=(e=new Date(e)).getFullYear(),i=("0"+(e.getMonth()+1)).slice(-2),a=("0"+e.getDate()).slice(-2);if(t){var r=e.getHours(),o=r<12?"AM":"PM",l=0===r?12:r>12?r-12:r,c=("0"+e.getMinutes()).slice(-2);return"".concat(n,"-").concat(i,"-").concat(a," ").concat(("0"+l).slice(-2),":").concat(c," ").concat(o)}return"".concat(n,"-").concat(i,"-").concat(a)}function V(){var e=new URL(window.location.href);e.searchParams.delete("id"),window.history.pushState({},"",e)}function q(){return new URLSearchParams(window.location.search).get("id")}function G(){var e;return e=u().mark((function e(){var t,n,i,a;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=localStorage.getItem("igd_last_review_popup"),n=Number(localStorage.getItem("igd_remind_in_days"))||2,i=(new Date).getTime(),a=24*n*60*60*1e3,!(t&&i-t<=a)){e.next=6;break}return e.abrupt("return");case 6:return localStorage.setItem("igd_last_review_popup",(new Date).getTime()),e.next=9,Swal.fire({title:wp.i18n.__("Are You Enjoying This Plugin?","integrate-google-drive"),text:wp.i18n.__("Your feedback helps us create a better experience for you.","integrate-google-drive"),icon:"question",showDenyButton:!0,confirmButtonText:wp.i18n.__("Yes, I'm enjoying it","integrate-google-drive"),denyButtonText:wp.i18n.__("Not really","integrate-google-drive"),reverseButtons:!0,allowOutsideClick:!1,allowEscapeKey:!1,showCloseButton:!0,customClass:{container:"igd-swal igd-review-swal"}}).then((function(e){e.isConfirmed?Swal.fire({title:wp.i18n.__("We're glad to hear that!","integrate-google-drive"),text:wp.i18n.__("Would you mind taking a few minutes to rate us and write a review?","integrate-google-drive"),icon:"success",showDenyButton:!0,confirmButtonText:wp.i18n.__("Sure, I'd be happy to","integrate-google-drive"),denyButtonText:wp.i18n.__("Maybe later","integrate-google-drive"),reverseButtons:!0,allowOutsideClick:!1,allowEscapeKey:!1,customClass:{container:"igd-swal igd-review-swal"}}).then((function(e){e.isConfirmed?(window.open("https://wordpress.org/support/plugin/integrate-google-drive/reviews/?filter=5#new-post","_blank"),wp.ajax.post("igd_hide_review_notice")):e.isDenied&&localStorage.setItem("igd_remind_in_days",10)})):e.isDenied&&Swal.fire({title:wp.i18n.__("Sorry to hear that!","integrate-google-drive"),text:wp.i18n.__("Could you please provide us with some feedback to help us improve?","integrate-google-drive"),input:"textarea",inputPlaceholder:wp.i18n.__("Enter your feedback here...","integrate-google-drive"),showCancelButton:!1,confirmButtonText:wp.i18n.__("Submit","integrate-google-drive"),showLoaderOnConfirm:!0,showCloseButton:!0,allowOutsideClick:!1,allowEscapeKey:!1,customClass:{container:"igd-swal igd-review-swal"}}).then((function(e){e.isConfirmed?(Swal.fire({title:wp.i18n.__("Thank you for your feedback!","integrate-google-drive"),text:wp.i18n.__("We'll use your feedback to improve our plugin.","integrate-google-drive"),icon:"info",customClass:{container:"igd-swal igd-review-swal"}}),wp.ajax.post("igd_review_feedback",{feedback:e.value})):e.isDismissed&&wp.ajax.post("igd_hide_review_notice")}))}));case 9:e.sent;case 10:case"end":return e.stop()}}),e)})),G=function(){var t=this,n=arguments;return new Promise((function(i,a){var r=e.apply(t,n);function o(e){m(r,i,a,o,l,"next",e)}function l(e){m(r,i,a,o,l,"throw",e)}o(void 0)}))},G.apply(this,arguments)}function Y(e){var t=document.createElement("textarea");return t.innerHTML=e,t.value}function J(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,a,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=r.call(n)).done)&&(l.push(i.value),l.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw a}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return X(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return X(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function X(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var Z=React,$=Z.useState,ee=Z.useRef,te=Z.useEffect,ne=Z.useContext;function ie(){var e=ne(t),n=e.isSearch,i=e.searchFiles,a=e.setFiles,r=e.listFiles,o=e.activeFolder,l=e.setIsSearchResults,c=e.initFolders,s=e.searchKeyword,d=e.setSearchKeyword,u=e.initialSearchTerm,m=ee(null),g=J($(!1),2),p=g[0],f=g[1],v=ee(),h=J($(n||u),2),w=h[0],y=h[1],b=function(e){if(e&&e.preventDefault(),f(!1),l(!1),!s)return Swal.fire({title:wp.i18n.__("Error","integrate-google-drive"),text:wp.i18n.__("Please enter a keyword to search","integrate-google-drive"),icon:"error",confirmButtonText:"Ok",customClass:{container:"igd-swal"}}),void f(!0);i(s)},_=I();return te((function(){if(_&&s&&!(s.length<5))return m.current=setTimeout((function(){b()}),1500),function(){clearTimeout(m.current)}}),[s]),React.createElement("form",{ref:v,className:"header-action-item igd-search-bar ".concat(w?"active":""," ").concat(p?"error":""),onSubmit:b},(!n||n&&!!s)&&React.createElement("div",{className:"search-dismiss",onClick:function(){n||y(!w),d(""),f(!1),l(!1),o?r(o):a(c&&!n?c:[])}},React.createElement("svg",{width:"14",height:"14",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M1.5 1.5L10.5 10.5M1.5 10.5L10.5 1.5L1.5 10.5Z",stroke:"#BABABA",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),React.createElement("input",{type:"text",placeholder:wp.i18n.__("Enter a keyword to search","integrate-google-drive"),value:s,onChange:function(e){d(e.target.value)}}),React.createElement("div",{className:"search-submit",onClick:function(){var e;w?b():(y(!0),null===(e=v.current)||void 0===e||e.querySelector("input").focus())}},React.createElement("svg",{"data-tip":wp.i18n.__("Search","integrate-google-drive"),"data-for":"search",width:"20",height:"20",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("circle",{cx:"9.7659",cy:"9.76639",r:"8.98856",stroke:"#3D3D3D",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),React.createElement("path",{d:"M16.0176 16.4849L19.5416 19.9997",stroke:"#3D3D3D",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})),React.createElement(ReactTooltip,{id:"search",place:"bottom",effect:"solid",className:"igd-tooltip"})))}var ae=React.useContext,re=igd.settings.rememberLastFolder,oe=void 0===re||re;function le(){var e=ae(t),n=e.breadcrumbs,i=e.initFolders,a=e.setFiles,r=e.activeFolder,o=e.setActiveFolder,l=e.setActiveFile,c=e.listFiles,s=e.initParentFolder,d=e.show,u=e.isShortcodeBuilder,m=e.activeAccount,g=e.setIsOptions,p=e.setActiveFiles,f=!!n&&Object.keys(n),v=f.length>2?f[0]:"",h=f.length>3?f.slice(1,-2):[],w=f.length?f.slice(-2):[],y=function(e){e.preventDefault(),e.stopPropagation(),g(!1),p([]),l(r),d(e)};return React.createElement("div",{className:"igd-breadcrumb"},React.createElement("div",{className:"breadcrumb-item",onClick:function(e){i?s?(o(s),c(s)):(o(null),a(i),oe&&W(i,s)):(o(null),a([]),oe&&W(i,s))}},React.createElement("i",{className:"dashicons dashicons-admin-home"}),React.createElement("span",{className:""},wp.i18n.__("Home","integrate-google-drive"))),!!r&&React.createElement(React.Fragment,null,!!v&&React.createElement("div",{className:"breadcrumb-item ".concat(u||r.id!==v?"":"active"),onClick:function(e){r.id===v?y(e):c({id:v,name:n[v],accountId:r.accountId})}},React.createElement("span",null,Y(n[v]))),!!h.length&&React.createElement(React.Fragment,null,React.createElement("div",{"data-tip":!0,"data-for":"collapsed_breadcrumbs",className:"breadcrumb-item"},React.createElement("i",{className:"dashicons dashicons-ellipsis"}),React.createElement("i",{className:"dashicons dashicons-arrow-right-alt2"})),React.createElement(ReactTooltip,{id:"collapsed_breadcrumbs",place:"bottom",type:"light",effect:"solid",event:"click",globalEventOff:"click",clickable:!0,className:"collapsed-breadcrumbs igd-tooltip",getContent:function(){return h.map((function(e){return React.createElement("div",{key:e,className:"collapsed-breadcrumbs-item",onClick:function(t){c({id:e,name:n[e],accountId:r.accountId})}},React.createElement("span",null,n[e]))}))}})),w.map((function(e){return React.createElement("div",{key:e,className:"breadcrumb-item ".concat(L(r.id,m)||u||r.id!==e?"":"active"),onClick:function(t){L(r.id,m)||(r.id===e?y(t):c({id:e,name:n[e],accountId:r.accountId}))}},React.createElement("span",null,Y(n[e])))}))))}function ce(e){return ce="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ce(e)}function se(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function de(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?se(Object(n),!0).forEach((function(t){ue(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):se(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ue(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==ce(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==ce(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ce(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var me=React.useContext,ge=window.ReactTooltip;function pe(){var e=me(t),n=e.shortcodeId,i=e.activeAccount,a=e.setActiveAccount,r=e.files,o=e.activeFiles,l=e.allFolders,c=e.getFiles,s=e.isShortcodeBuilder,d=e.initFolders,u=e.activeFolder,m=e.isSearch,g=e.setShowSidebar,p=e.sort,f=e.setSort,v=e.setActiveFile,h=e.permissions,w=e.notifications,y=e.showBreadcrumbs,b=e.isOptions,_=e.setIsOptions,E=e.showRefresh,R=e.showSorting,N=e.shortcodeBuilderType,S=e.isMobile,C=e.show,O=e.hideAll,k=e.setFiles,F=e.setAllFiles,A="gallery"===N,P=igd.isPro,I={name:wp.i18n.__("Name","integrate-google-drive"),size:wp.i18n.__("Size","integrate-google-drive"),created:wp.i18n.__("Created","integrate-google-drive"),updated:wp.i18n.__("Modified","integrate-google-drive")},D={asc:wp.i18n.__("Ascending","integrate-google-drive"),desc:wp.i18n.__("Descending","integrate-google-drive")};return React.createElement("div",{className:"igd-file-browser-header"},(!m||s)&&y&&React.createElement(le,null),React.createElement("div",{className:"header-action"},S&&!s&&igd.isAdmin&&React.createElement("i",{className:"dashicons dashicons-menu-alt3 header-action-item sidebar-toggle",onClick:function(){return g((function(e){return!e}))}}),!!A&&!!h&&!!h.photoProof&&React.createElement("button",{className:"igd-btn btn-primary ".concat(o.length?"":"disabled"," photo-proofing-btn"),onClick:function(){h.photoProofMaxSelection>0&&o.length>h.photoProofMaxSelection?Swal.fire({title:wp.i18n.__("Error","integrate-google-drive"),text:wp.i18n.sprintf(wp.i18n.__("You can not select more than %s files.","integrate-google-drive"),h.photoProofMaxSelection),icon:"error",showConfirmButton:!0,confirmButtonText:wp.i18n.__("OK","integrate-google-drive"),customClass:{container:"igd-swal"}}):Swal.fire({title:wp.i18n.sprintf(wp.i18n.__("Approve Selection (%s selected)","integrate-google-drive"),o.length),text:wp.i18n.__("Are you sure you want to approve the selected files?","integrate-google-drive"),input:"textarea",inputValue:"",inputAttributes:{autocapitalize:"off",placeholder:wp.i18n.__("Enter a message to send to the author","integrate-google-drive")},showCancelButton:!1,confirmButtonText:wp.i18n.__("Approve","integrate-google-drive"),showLoaderOnConfirm:!0,showCloseButton:!0,customClass:{container:"igd-swal"},preConfirm:function(e){return wp.ajax.post("igd_photo_proof",{shortcode_id:n,message:e,selected:o,email:h.photoProofEmail}).done((function(){Swal.fire({title:"Sent!",text:"Your selected images have been sent to the author.",icon:"success",showConfirmButton:!1,timer:3e3,timerProgressBar:!0,toast:!0})})).fail((function(e){Swal.fire({title:"Error!",text:e.message,icon:"error",showConfirmButton:!0,confirmButtonText:"OK",customClass:{container:"igd-swal"}})}))}})},disabled:!o.length},React.createElement("i",{className:"dashicons dashicons-camera"}),React.createElement("span",null,wp.i18n.__("Send Selection","integrate-google-drive")),o.length>0&&React.createElement("span",{className:"selection-count"},"(",o.length,")")),!!o.length&&(!h||h.delete)&&React.createElement("div",{"data-tip":wp.i18n.__("Delete","integrate-google-drive"),"data-for":"delete",className:"header-action-item action-delete",onClick:function(){var e=o.map((function(e){return e.id})),t=o[0].accountId;Swal.fire({title:wp.i18n.__("Are you sure?","integrate-google-drive"),text:wp.i18n.sprintf(wp.i18n._n("You are about to delete the file.","You are about to delete %s files.",o.length,"integrate-google-drive"),o.length),icon:"warning",showCancelButton:!0,customClass:{container:"igd-swal"},confirmButtonText:wp.i18n.__("Yes, delete it!","integrate-google-drive"),cancelButtonText:wp.i18n.__("No, cancel!","integrate-google-drive"),reverseButtons:!0,showLoaderOnConfirm:!0,preConfirm:function(){return wp.ajax.post("igd_delete_files",{file_ids:e,account_id:t})}}).then((function(t){if(t.isConfirmed){w&&w.deleteNotification&&wp.ajax.post("igd_notification",{files:o,notifications:w,type:"delete"});var n=r.filter((function(t){return!e.includes(t.id)}));k(n),F((function(e){return de(de({},e),{},ue({},u.id,n))})),Swal.fire({title:wp.i18n.__("Deleted!","integrate-google-drive"),text:wp.i18n.sprintf(wp.i18n._n("File has been deleted.","%d files have been deleted.",o.length,"integrate-google-drive"),o.length),icon:"success",showConfirmButton:!1,timer:1500,timerProgressBar:!0,toast:!0,customClass:{container:"igd-swal"}})}}))}},React.createElement("img",{src:"".concat(igd.pluginUrl,"/assets/images/file-browser/delete.svg"),alt:"Delete Files"}),React.createElement(ge,{id:"delete",effect:"solid",place:"bottom",className:"igd-tooltip"})),(d||u)&&(!h||h.allowSearch||m)&&React.createElement(ie,null),E&&(!m||s)&&u&&React.createElement("div",{"data-tip":wp.i18n.__("Refresh","integrate-google-drive"),"data-for":"sync",className:"header-action-item action-update",onClick:function(){u&&c(u,"refresh")}},React.createElement("img",{src:"".concat(igd.pluginUrl,"/assets/images/file-browser/update.svg"),alt:"Sync Files"}),React.createElement(ge,{id:"sync",effect:"solid",place:"bottom",className:"igd-tooltip"})),R&&(!m||s)&&u&&React.createElement(React.Fragment,null,React.createElement("div",{"data-tip":wp.i18n.__("Sort","integrate-google-drive"),"data-for":"sort",className:"header-action-item action-sort"},React.createElement("img",{src:"".concat(igd.pluginUrl,"/assets/images/file-browser/sort.svg"),alt:"Sort"}),React.createElement(ge,{id:"sort",effect:"solid",place:"bottom",className:"igd-tooltip"})),React.createElement(ge,{id:"sort",type:"light",event:"click",globalEventOff:"click",className:"igd-sort-modal igd-tooltip",place:"bottom",border:!0,backgroundColor:"#fff",clickable:!0,borderColor:"#ddd",effect:"solid"},React.createElement("div",{className:"igd-sort-modal-inner"},React.createElement("div",{className:"igd-sort-modal-inner-section"},React.createElement("span",{className:"igd-sort-modal-inner-section-title"},wp.i18n.__("SORT BY","integrate-google-drive")),Object.keys(I).map((function(e){return React.createElement("div",{key:e,className:"sort-item ".concat(p.sortBy===e?"active":""),onClick:function(){return f(de(de({},p),{},{sortBy:e}))}},React.createElement("i",{className:"dashicons dashicons-saved"}),React.createElement("span",null,I[e]))}))),React.createElement("div",{className:"igd-sort-modal-inner-section"},React.createElement("span",{className:"igd-sort-modal-inner-section-title"},wp.i18n.__("SORT DIRECTION","integrate-google-drive")),Object.keys(D).map((function(e){return React.createElement("div",{key:e,className:"sort-item ".concat(p.sortDirection===e?"active":""),onClick:function(){return f((function(t){return de(de({},t),{},{sortDirection:e})}))}},React.createElement("i",{className:"dashicons dashicons-saved"}),React.createElement("span",null,D[e]))})))))),null!==b&&(s||(!A||A&&!!h&&!!h.download&&!!h.zipDownload)&&(!m||m&&!!r.length))&&React.createElement("div",{"data-tip":wp.i18n.__("Options","integrate-google-drive"),"data-for":"options",onClick:function(e){e.preventDefault(),v(null),_(!b),b?O():C(e)},className:"header-action-item action-options"},React.createElement("img",{src:"".concat(igd.pluginUrl,"/assets/images/file-browser/options.svg"),alt:"Options"}),React.createElement(ge,{id:"options",effect:"solid",place:"bottom",className:"igd-tooltip"})),(!d||l)&&React.createElement(React.Fragment,null,React.createElement("div",{className:"header-action-item action-accounts user-box","data-tip":!0,"data-for":"switch-account"},React.createElement("img",{referrerPolicy:"no-referrer",className:"user-image",src:i.photo,onError:function(e){return x(e.currentTarget,i.email)}}),React.createElement("img",{src:"".concat(igd.pluginUrl,"/assets/images/file-browser/arrow-down.svg"),className:"user-arrow"})),React.createElement(ge,{id:"switch-account",place:"bottom",type:"light",effect:"solid",event:"click",globalEventOff:"click",clickable:!0,border:!0,borderColor:"#ddd",resizeHide:!1,className:"user-box-modal-wrap igd-tooltip"},React.createElement("div",{className:"user-box-modal"},React.createElement("span",{className:"user-box-modal-title"},wp.i18n.__("Switch Account","integrate-google-drive")),Object.keys(igd.accounts).map((function(e){var t=igd.accounts[e],n=t.id,r=t.name,o=t.photo,l=t.email,c=i.id===n;return React.createElement("div",{key:e,className:"user-box-account ".concat(c?"active":""),onClick:function(){return a(igd.accounts[e])}},React.createElement("img",{referrerPolicy:"no-referrer",onError:function(e){return x(e.currentTarget,l)},src:o}),React.createElement("div",{className:"account-info"},React.createElement("span",{className:"account-name"},r),React.createElement("span",{className:"account-email"},l)),c&&React.createElement("i",{className:"dashicons dashicons-saved active-badge"}))})),!s&&!d&&React.createElement(React.Fragment,null,React.createElement("button",{"data-tip":"Multiple Accounts - PRO","data-for":"addAccountPromo",className:"igd-btn btn-primary",onClick:function(){P||!igd.accounts?igd.authUrl?M():window.location=igd.adminUrl+"/admin.php?page=integrate-google-drive-settings":j(wp.i18n.__("Upgrade to PRO to add multiple accounts.","integrate-google-drive"))}},React.createElement("i",{className:"dashicons dashicons-plus"}),React.createElement("span",null,wp.i18n.__("Add account","integrate-google-drive"))),!P&&!!igd.accounts&&React.createElement(ge,{id:"addAccountPromo",effect:"solid",place:"right",className:"igd-tooltip",backgroundColor:"#FDB837"})))))))}function fe(e){return function(e){if(Array.isArray(e))return ve(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return ve(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ve(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ve(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function he(e){var t=e.file,n=e.isSelected,i=e.selectedFolders,a=void 0===i?[]:i,r=e.setSelectedFolders;return React.createElement("button",{className:"select-btn ".concat(n?"active":""),onClick:function(e){e.preventDefault(),e.stopPropagation(),r(n?fe(a.filter((function(e){return e.id!=t.id}))):[].concat(fe(a),[t]))}},React.createElement("i",{className:"dashicons ".concat(n?"dashicons-no":"dashicons-plus")}),React.createElement("span",null,n?wp.i18n.__("Remove","integrate-google-drive"):wp.i18n.__("Select","integrate-google-drive")))}var we=React.useContext;function ye(){var e=we(t),n=e.activeAccount,i=e.initFolders,a=e.activeFolder,r=e.setActiveFolder,o=e.selectedFolders,l=e.shortcodeBuilderType,c=e.listFiles,s=e.setSelectedFolders,d=e.isList,u=e.selectionType,m="uploader"===l,g="embed"===l,p="view"===l,f="download"===l,v="slider"===l,h=n.root_id,w=E(!1,n);i&&(w=w.filter((function(e){return i.includes(e.id)})));var y=l&&!p&&!f&&!g&&!v;return m?y=!o.length||o[0].id===h:"parent"===u&&(y=!0),w.map((function(e){var t=e.id,n=e.name,i=e.iconLink,l=o&&!!o.find((function(e){return e.id===t}));return React.createElement("div",{key:t,className:"".concat(t===(null==a?void 0:a.id)?"active":""," file-item root-item folder-item"),onClick:function(t){t.stopPropagation(),r(e),c(e)}},React.createElement("img",{src:i,alt:n}),React.createElement("span",null,n),y&&h===t&&React.createElement(he,{file:e,isSelected:l,selectedFolders:o,setSelectedFolders:s,isList:d}))}))}var be=window.React,_e=be.useRef,Ee=be.useContext;function Re(){var e=Ee(t),n=e.activeAccount,i=e.activeFolder,a=e.isUpload,r=e.setIsUpload,o=e.isMobile,l=e.setShowSidebar,c=n.storage,s=void 0===c?{}:c,d=Math.round(100*s.usage/s.limit),u=!(!i||k(i.id,n)&&n.root_id!==i.id),m=_e(null);return React.createElement("div",{ref:m,className:"igd-sidebar-wrap"},React.createElement("div",{className:"igd-sidebar"},React.createElement("div",{className:"sidebar-uploader"},React.createElement("button",{id:"igd_upload_files",disabled:!u,className:"".concat(a?"active":u?"":"disabled"," igd-btn"),onClick:function(){r((function(e){return!e})),o&&l(!1)}},React.createElement("i",{className:"dashicons dashicons-cloud-upload"}),React.createElement("span",null,wp.i18n.__("Upload Files","integrate-google-drive")))),React.createElement("div",{className:"sidebar-folders"},React.createElement(ye,null)),React.createElement("div",{className:"storage-info-wrap"},React.createElement("i",{className:"dashicons dashicons-database"}),React.createElement("div",{className:"storage-info"},React.createElement("div",{className:"storage-info-sidebar"},React.createElement("div",{style:{width:"".concat(d,"%")},className:"storage-info-fill ".concat(d>90?"fill-danger":"")})),React.createElement("span",null,y(s.usage)," of ",y(s.limit)," used")))))}function Ne(e){return Ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ne(e)}function Se(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Ce(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Se(Object(n),!0).forEach((function(t){Oe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Se(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Oe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Ne(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==Ne(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Ne(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ke(e){return function(e){if(Array.isArray(e))return xe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ae(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,a,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=r.call(n)).done)&&(l.push(i.value),l.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw a}}return l}}(e,t)||Ae(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ae(e,t){if(e){if("string"==typeof e)return xe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xe(e,t):void 0}}function xe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var Pe=React,je=Pe.useState,Ie=Pe.useEffect,De=Pe.useRef,Te=Pe.useContext;function Be(){var e=Te(t),n=e.account,i=void 0===n?igd.activeAccount:n,a=e.notifications,r=e.folders,o=e.filters,l=e.maxFiles,c=e.maxFileSize,s=e.minFileSize,d=e.activeFolder,u=e.isUpload,m=e.setIsUpload,g=e.isFormUploader,p=e.isRequired,f=e.showUploadLabel,v=e.uploadLabelText,h=e.uploadFileName,w=e.isWooCommerceUploader,y=e.wcItemId,E=e.wcOrderId,N=e.wcProductId,S=e.initUploadedFiles,C=void 0===S?[]:S,O=e.setFiles,k=e.setAllFiles,F=e.enableFolderUpload,A=void 0===F?!!d:F,x=e.uploadImmediately,P=void 0===x?!!d||w:x,j=e.overwrite,I=e.showUploadConfirmation,D=e.uploadConfirmationMessage,T=o||{},B=T.allowExtensions,U=T.allowAllExtensions,L=T.allowExceptExtensions,M=Fe(je(C),2),z=M[0],H=M[1],K=Fe(je(C),2),W=K[0],Q=K[1],V=Fe(je([]),2),q=V[0],G=V[1],Y=Fe(je([]),2),J=Y[0],X=Y[1],Z=Fe(je(0),2),$=Z[0],ee=Z[1],te=Fe(je(!1),2),ne=te[0],ie=te[1],ae=Fe(je([]),2),re=ae[0],oe=ae[1],le=De(null),ce=De(null),se=De(null),de=d;if(!de){var ue=r?r.filter((function(e){return b(e)})):[];de=ue&&ue.length?ue[0]:{id:"root",accountId:i.id}}var me=function(e){if(e){var t=le.current.files,n=t.findIndex((function(t){return t.id===e.id}))+1;n<t.length&&ve(t[n])}},ge=function(e,t,n){if(!e)return n(!0);var i=t.name.split(".").pop();(U?!e.split(",").map((function(e){return e.trim()})).includes(i):e.split(",").map((function(e){return e.trim()})).includes(i))?n(!0):(this.trigger("Error",{code:"EXT_ERROR",file:t}),n(!1))},pe=function(e,t,n){if(!(e=1024*e*1024))return n(!0);t.size<e?(this.trigger("Error",{code:"SIZE_MIN_ERROR",file:t}),n(!1)):n(!0)},fe=function(e,t,n){if(!e)return n(!0);var i=this.files.length;C.length&&(i=ce.current.querySelectorAll(".file-list-item.uploaded").length),i>=e?(this.trigger("Error",{code:"FILES_MAX_ERROR",file:t}),n(!1)):n(!0)},ve=function(e){le.current.stop(),ee(0),G((function(t){return t.find((function(t){return t.id===e.id}))?t:[].concat(ke(t),[e])}));var t=R(e);wp.ajax.post("igd_get_upload_url",{data:{name:e.name,queueIndex:e.status,uploadFileName:h,size:e.size,type:e.type,folderId:de.id,accountId:de.accountId,path:t&&t.substring(0,t.lastIndexOf("/")+1),fileId:e.id,overwrite:j,isWooCommerceUploader:w,wcProductId:N,wcOrderId:E,wcItemId:y}}).done((function(e){le.current.setOption("url",e),le.current.start()})).fail((function(t){console.log(t),me(e),X(J.filter((function(t){return t.id!==e.id}))),G(J.filter((function(t){return t.id!==e.id}))),ee(0),H((function(n){return n.map((function(n){return n.id===e.id&&(n.error=t.error),n}))}))}))},he=function(){var e={browse_button:ce.current.querySelector(".browse-files"),drop_element:ce.current,multipart:!1,multi_selection:!l||l>1,filters:{max_files:l,file_ext:U?L:B,max_file_size:c?"".concat(parseInt(c),"mb"):0,min_file_size:s},init:{FilesAdded:function(e,t){ie(!1),H((function(e){return[].concat(ke(e),ke(t))})),X((function(e){return[].concat(ke(e),ke(t))})),G((function(e){var n=ke(e);return P&&!e.length&&(ve(t[0]),n=[].concat(ke(e),[t[0]])),n}))},FilesRemoved:function(e,t){X((function(e){return e.filter((function(e){return!t.find((function(t){return t.id===e.id}))}))})),H((function(e){return e.filter((function(e){return!t.find((function(t){return t.id===e.id}))}))}))},FileUploaded:function(e,t,n){!function(e,t){me(e);var n=JSON.parse(t.response);if(n){var i={file:n=Ce(Ce({},n),{},{type:n.mimeType,accountId:de.accountId,pluploadId:e.id,path:A&&R(e)})};w&&(i.wcOrderId=E,i.wcItemId=y,i.wcProductId=N),Q((function(e){return[].concat(ke(e),[n])})),X((function(t){return t.filter((function(t){return t.id!==e.id}))})),wp.ajax.post("igd_file_uploaded",i).done((function(e){O&&(O((function(t){return[e].concat(ke(t))})),k((function(t){return Ce(Ce({},t),{},Oe({},de.id,[e].concat(ke(t[de.id]))))})))}))}}(t,n)},UploadProgress:function(e,t){ee(t.percent)},UploadComplete:function(){G([]),X([]),setTimeout((function(){ie(!0)}),!g&&I?1e3:0)},Error:function(e,t){return function(e,t){var n;switch(e){case-600:n=wp.i18n.__("File size exceeds the maximum upload size.","integrate-google-drive")+"(".concat(c?"".concat(parseInt(c),"mb"):0,")");break;case"SIZE_MIN_ERROR":n=wp.i18n.__("File size is less than the minimum upload size.","integrate-google-drive")+"(".concat(s,"mb)");break;case"EXT_ERROR":n=wp.i18n.__("This file type is not allowed","integrate-google-drive");break;case"FILES_MAX_ERROR":n=wp.i18n.__("You can not upload more than","integrate-google-drive")+" ".concat(l," ").concat(wp.i18n.__("files","integrate-google-drive"));break;default:n=t.error}t.error=n,H((function(e){var n=e.findIndex((function(e){return e.id===t.id}));if(n>-1){var i=ke(e);return i[n]=t,i}return[].concat(ke(e),[t])}))}(t.code,t.file)}}};return!U&&B&&(e.filters.mime_types=[{title:"Allowed files",extensions:B}]),e},we=function(){if(plupload.buildUrl=function(e){return e},plupload.addFileFilter("file_ext",ge),plupload.addFileFilter("min_file_size",pe),plupload.addFileFilter("max_files",fe),le.current=new plupload.Uploader(he()),le.current.init(),A){var e=new mOxie.FileInput({browse_button:ce.current.querySelector(".browse-folder"),directory:!0});e.init(),e.onchange=function(){le.current.addFile(e.files)}}};Ie((function(){return we(),function(){le.current&&le.current.destroy()}}),[]);var ye=function(){if(jQuery){var e=jQuery,t=e(ce.current).closest("form");if(t.length){var n=e(ce.current).parent().next(".upload-file-list"),i=function(e){return e.map((function(e){return{id:e.id,accountId:e.accountId,name:e.name,iconLink:e.iconLink,thumbnailLink:e.thumbnailLink,size:e.size,parents:e.parents,path:A&&e.path}}))}(W);if(["metform","elementor","ninjaforms","cf7"].includes(g)){var a=i.map((function(e){var t="https://drive.google.com/file/d/".concat(e.id,"/view");return"".concat(e.name," — ( ").concat(t," )")})).join(", \n\n");n.val(a).change()}else n.val(JSON.stringify(i)).change();if(t.trigger("change"),!P){var r=t.find(":submit");r.length?(r.is("input")?r.val(se.current):r.text(se.current),r.trigger("click")):t.submit()}}}};Ie((function(){ne&&W.length&&(a&&a.uploadNotification&&wp.ajax.post("igd_notification",{files:W,notifications:a,type:"upload"}),g&&ye())}),[ne]),Ie((function(){if(J.length&&!q.length&&g&&!P&&ce.current){var e=jQuery(ce.current).closest("form");if(e.length){var t=jQuery(e).find(":submit");if(t.length){var n=t.parent();t.addClass("igd-disabled");var i=function(e){e.preventDefault();var n=t.is("input");se.current=t.is("input")?t.val():t.text(),n?t.val(wp.i18n.__("Uploading Files...","integrate-google-drive")):t.text(wp.i18n.__("Uploading Files...","integrate-google-drive")),ve(J[0])};return n.on("click",i),function(){t&&(n.off("click",i),t.removeClass("igd-disabled"))}}}}}),[J]),Ie((function(){if(g){var e=jQuery(ce.current).closest("form"),t=function(e){H([]),X([]),G([]),Q([])};return e.on("reset",t),function(){return e.off("reset",t)}}}),[]);var be=!g&&!w&&!P&&I&&W.length&&ne,_e=J.length||z.filter((function(e){return!e.error})).length,Ee=J.length?P||q.length?wp.i18n.__("Item(s) Uploading...","integrate-google-drive"):wp.i18n.__("Item(s) Selected","integrate-google-drive"):wp.i18n.__("Item(s) Uploaded","integrate-google-drive");return React.createElement("div",{onDragEnter:function(){return ce.current.classList.add("drag-active")},onDragLeave:function(){return ce.current.classList.remove("drag-active")},onDrop:function(){return ce.current.classList.remove("drag-active")},ref:ce,className:"igd-file-uploader igd-module-uploader ".concat(g?" igd-form-uploader":""," ").concat(!p||J.length||z.length?"":"required-error","  ").concat(be?"show-confirmation":""," ")},React.createElement("div",{className:"igd-file-uploader-body"},!!be&&React.createElement("div",{className:"upload-confirmation"},React.createElement("div",{className:"upload-confirmation-message",dangerouslySetInnerHTML:{__html:D}}),(!l||l>W.length)&&React.createElement("button",{type:"button",className:"igd-btn btn-primary",onClick:function(){return ie(!1)}},wp.i18n.__("Upload More Files","integrate-google-drive"))),React.createElement("div",{className:"igd-file-uploader-inner"},f&&React.createElement("h4",{className:"igd-file-uploader-label"},v),React.createElement("i",{className:"dashicons dashicons-cloud-upload"}),React.createElement("p",null,wp.i18n.__("Drag and drop files here","integrate-google-drive")),React.createElement("p",{className:"or"},wp.i18n.__("OR","integrate-google-drive")),React.createElement("div",{className:"igd-file-uploader-buttons"},React.createElement("button",{type:"button",className:"browse-files",onMouseOver:function(){navigator.userAgent.match(/(iPad|iPhone|iPod)/g)&&le.current.refresh()}},React.createElement("svg",{width:"24",height:"24",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M842.24 355.413333l-232.106667-256a42.666667 42.666667 0 0 0-31.573333-14.08h-298.666667A107.946667 107.946667 0 0 0 170.666667 192v640A107.946667 107.946667 0 0 0 279.893333 938.666667h464.213334A107.946667 107.946667 0 0 0 853.333333 832V384a42.666667 42.666667 0 0 0-11.093333-28.586667zM597.333333 213.333333l116.906667 128h-85.333333a33.706667 33.706667 0 0 1-31.573334-36.266666z m146.773334 640H279.893333a22.613333 22.613333 0 0 1-23.893333-21.333333v-640a22.613333 22.613333 0 0 1 23.893333-21.333333H512v134.4A119.04 119.04 0 0 0 627.626667 426.666667H768v405.333333a22.613333 22.613333 0 0 1-23.893333 21.333333z",fill:"currentColor"}),React.createElement("path",{d:"M597.333333 554.666667h-42.666666v-42.666667a42.666667 42.666667 0 0 0-85.333334 0v42.666667h-42.666666a42.666667 42.666667 0 0 0 0 85.333333h42.666666v42.666667a42.666667 42.666667 0 0 0 85.333334 0v-42.666667h42.666666a42.666667 42.666667 0 0 0 0-85.333333z",fill:"currentColor"})),React.createElement("span",null,wp.i18n.__("Browse Files","integrate-google-drive"))),A&&React.createElement("button",{type:"button",className:"browse-folder",onMouseOver:function(){navigator.userAgent.match(/(iPad|iPhone|iPod)/g)&&le.current.refresh()}},React.createElement("svg",{width:"24",height:"24",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M597.333333 554.666667h-42.666666v-42.666667a42.666667 42.666667 0 0 0-85.333334 0v42.666667h-42.666666a42.666667 42.666667 0 0 0 0 85.333333h42.666666v42.666667a42.666667 42.666667 0 0 0 85.333334 0v-42.666667h42.666666a42.666667 42.666667 0 0 0 0-85.333333z",fill:"currentColor"}),React.createElement("path",{d:"M832 300.8h-298.666667L421.12 165.12a42.666667 42.666667 0 0 0-32.853333-15.786667H192A105.386667 105.386667 0 0 0 85.333333 253.013333v517.973334a105.386667 105.386667 0 0 0 106.666667 103.68h640a105.386667 105.386667 0 0 0 106.666667-103.68V404.48a105.386667 105.386667 0 0 0-106.666667-103.68z m21.333333 469.333333a19.626667 19.626667 0 0 1-21.333333 18.346667h-640a19.626667 19.626667 0 0 1-21.333333-18.346667V253.013333a19.626667 19.626667 0 0 1 21.333333-18.346666h176.213333l110.933334 135.68a42.666667 42.666667 0 0 0 32.853333 15.786666h320a19.626667 19.626667 0 0 1 21.333333 18.346667z",fill:"currentColor"})),React.createElement("span",null,wp.i18n.__("Browse Folder","integrate-google-drive")))),u&&React.createElement("i",{className:"cancel-upload dashicons dashicons-no",onClick:function(){return m(!1)}}),React.createElement("div",{className:"upload-info"},!!s&&React.createElement("span",{className:"max-size-label"},wp.i18n.__("Min File Size:","integrate-google-drive")," ",s,"MB"),!!c&&React.createElement("span",{className:"max-size-label"},wp.i18n.__("Max File Size:","integrate-google-drive")," ",c,"MB")))),!!z.length&&!be&&React.createElement("div",{className:"file-list-wrapper"},React.createElement("div",{className:"file-list-header"},React.createElement("span",{className:"file-count"},_e),React.createElement("span",{className:"file-status-text"},Ee)),React.createElement("div",{className:"file-list"},ke(new Set(z)).map((function(e){var t=e.id,n=e.name,i=e.size,a=e.type,r=e.error,o=q.find((function(e){return e.id===t})),l=W.find((function(e){return e.id===t||e.pluploadId===t})),c=re.find((function(e){return e.id===t})),s=R(e);return React.createElement("div",{key:t,className:"file-list-item ".concat(o?"active":""," ").concat(l?"uploaded":""),id:t},React.createElement("img",{width:32,height:32,src:_(a)}),React.createElement("div",{className:"file-info"},React.createElement("div",{className:"upload-item"},React.createElement("span",{className:"upload-item-name"},s||n),React.createElement("span",{className:"upload-item-size"},"(",plupload.formatSize(i),")")),React.createElement("div",{className:"file-info-percentage"},!!l&&React.createElement("i",{className:"dashicons dashicons-saved"}),!l&&o&&!r&&!c&&React.createElement("div",{className:"igd-spinner"}),!l&&!!o&&!!$&&React.createElement("span",{className:"percentage"},$,"%"),!l&&o&&!c&&!r&&React.createElement("i",{className:"dashicons dashicons-controls-pause",onClick:function(){le.current.stop(),oe([].concat(ke(re),[e]))}}),!l&&c&&!r&&React.createElement("i",{className:"dashicons dashicons-controls-play",onClick:function(){le.current.start(),oe(re.filter((function(e){return e.id!==t})))}}),React.createElement(React.Fragment,null,React.createElement("i",{"data-tip":wp.i18n.__("Remove","integrate-google-drive"),"data-for":"remove-file",className:"remove-file dashicons dashicons-no-alt",onClick:function(){if(H((function(e){return e.filter((function(e){return e.id!==t}))})),X((function(e){return e.filter((function(e){return e.id!==t}))})),le.current.removeFile(e),l){Q((function(e){return e.filter((function(e){return e.id!==l.id}))}));var n={id:l.id,account_id:l.accountId,nonce:igd.nonce};w&&(n.isWooCommerceUploader=!0,n.wcProductId=N,n.wcOrderId=E,n.wcItemId=y),wp.ajax.post("igd_upload_remove_file",n)}else o&&(le.current.stop(),ee(0),me(e)),le.current.removeFile(e),le.current.setOption("url",""),G((function(e){return e.filter((function(e){return e.id!==t}))}))}}),React.createElement(ReactTooltip,{id:"remove-file",effect:"solid",place:"top",className:"igd-tooltip"}))),r?React.createElement("span",{className:"file-info-error"},r):React.createElement("span",{className:"file-info-progress",style:{"--percentage":o?"".concat($||2,"%"):0}},React.createElement("span",{className:"file-info-progress-bar"}))))}))),!!J.length&&!g&&!w&&!P&&React.createElement("button",{type:"button",className:"igd-btn btn-primary start-upload",onClick:function(){return ve(J[0])}},React.createElement("i",{className:"dashicons dashicons-cloud-upload"}),q.length?wp.i18n.__("Uploading Files...","integrate-google-drive"):wp.i18n.__("Start Upload","integrate-google-drive"))))}const Ue=React;var Le=n.n(Ue),Me=n(884),ze=n.n(Me),He=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,i){return e[0]===t&&(n=i,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),i=this.__entries__[n];return i&&i[1]},t.prototype.set=function(t,n){var i=e(this.__entries__,t);~i?this.__entries__[i][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,i=e(n,t);~i&&n.splice(i,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,i=this.__entries__;n<i.length;n++){var a=i[n];e.call(t,a[1],a[0])}},t}()}(),Ke="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,We=void 0!==n.g&&n.g.Math===Math?n.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),Qe="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(We):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var Ve=["top","right","bottom","left","width","height","size","weight"],qe="undefined"!=typeof MutationObserver,Ge=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,i=!1,a=0;function r(){n&&(n=!1,e()),i&&l()}function o(){Qe(r)}function l(){var e=Date.now();if(n){if(e-a<2)return;i=!0}else n=!0,i=!1,setTimeout(o,t);a=e}return l}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){Ke&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),qe?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){Ke&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;Ve.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Ye=function(e,t){for(var n=0,i=Object.keys(t);n<i.length;n++){var a=i[n];Object.defineProperty(e,a,{value:t[a],enumerable:!1,writable:!1,configurable:!0})}return e},Je=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||We},Xe=it(0,0,0,0);function Ze(e){return parseFloat(e)||0}function $e(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+Ze(e["border-"+n+"-width"])}),0)}function et(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Xe;var i=Je(e).getComputedStyle(e),a=function(e){for(var t={},n=0,i=["top","right","bottom","left"];n<i.length;n++){var a=i[n],r=e["padding-"+a];t[a]=Ze(r)}return t}(i),r=a.left+a.right,o=a.top+a.bottom,l=Ze(i.width),c=Ze(i.height);if("border-box"===i.boxSizing&&(Math.round(l+r)!==t&&(l-=$e(i,"left","right")+r),Math.round(c+o)!==n&&(c-=$e(i,"top","bottom")+o)),!function(e){return e===Je(e).document.documentElement}(e)){var s=Math.round(l+r)-t,d=Math.round(c+o)-n;1!==Math.abs(s)&&(l-=s),1!==Math.abs(d)&&(c-=d)}return it(a.left,a.top,l,c)}var tt="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof Je(e).SVGGraphicsElement}:function(e){return e instanceof Je(e).SVGElement&&"function"==typeof e.getBBox};function nt(e){return Ke?tt(e)?function(e){var t=e.getBBox();return it(0,0,t.width,t.height)}(e):et(e):Xe}function it(e,t,n,i){return{x:e,y:t,width:n,height:i}}var at=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=it(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=nt(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),rt=function(e,t){var n,i,a,r,o,l,c,s=(i=(n=t).x,a=n.y,r=n.width,o=n.height,l="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,c=Object.create(l.prototype),Ye(c,{x:i,y:a,width:r,height:o,top:a,right:i+r,bottom:o+a,left:i}),c);Ye(this,{target:e,contentRect:s})},ot=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new He,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof Je(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new at(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof Je(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new rt(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),lt="undefined"!=typeof WeakMap?new WeakMap:new He,ct=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=Ge.getInstance(),i=new ot(t,n,this);lt.set(this,i)};["observe","unobserve","disconnect"].forEach((function(e){ct.prototype[e]=function(){var t;return(t=lt.get(this))[e].apply(t,arguments)}}));const st=void 0!==We.ResizeObserver?We.ResizeObserver:ct;function dt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ut(){return ut=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},ut.apply(this,arguments)}function mt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),i.forEach((function(t){dt(e,t,n[t])}))}return e}function gt(e,t){if(null==e)return{};var n,i,a=function(e,t){if(null==e)return{};var n,i,a={},r=Object.keys(e);for(i=0;i<r.length;i++)n=r[i],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(i=0;i<r.length;i++)n=r[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function pt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],i=!0,a=!1,r=void 0;try{for(var o,l=e[Symbol.iterator]();!(i=(o=l.next()).done)&&(n.push(o.value),!t||n.length!==t);i=!0);}catch(e){a=!0,r=e}finally{try{i||null==l.return||l.return()}finally{if(a)throw r}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var ft={cursor:"pointer"},vt=function(e){var t=e.index,n=e.onClick,i=e.photo,a=e.margin,r=e.direction,o=e.top,l=e.left,c=e.key,s={margin:a,display:"block"};"column"===r&&(s.position="absolute",s.left=l,s.top=o);return Le().createElement("img",ut({key:c,style:n?mt({},s,ft):s},i,{onClick:n?function(e){n(e,{photo:i,index:t})}:null}))},ht=ze().shape({key:ze().string,src:ze().string.isRequired,width:ze().number.isRequired,height:ze().number.isRequired,alt:ze().string,title:ze().string,srcSet:ze().oneOfType([ze().string,ze().array]),sizes:ze().oneOfType([ze().string,ze().array])});vt.propTypes={index:ze().number.isRequired,onClick:ze().func,photo:ht.isRequired,margin:ze().number,top:function(e){if("column"===e.direction&&"number"!=typeof e.top)return new Error("top is a required number when direction is set to `column`")},left:function(e){if("column"===e.direction&&"number"!=typeof e.left)return new Error("left is a required number when direction is set to `column`")},direction:ze().string};var wt=function(e,t){return t||(t=0),Number(Math.round(e+"e"+t)+"e-"+t)},yt=function(e){var t=e.width,n=e.height;return wt(t/n,2)};function bt(e){this.content=[],this.scoreFunction=e}bt.prototype={push:function(e){this.content.push(e),this.bubbleUp(this.content.length-1)},pop:function(){var e=this.content[0],t=this.content.pop();return this.content.length>0&&(this.content[0]=t,this.sinkDown(0)),e},remove:function(e){for(var t=this.content.length,n=0;n<t;n++)if(this.content[n]==e){var i=this.content.pop();if(n==t-1)break;this.content[n]=i,this.bubbleUp(n),this.sinkDown(n);break}},size:function(){return this.content.length},bubbleUp:function(e){for(var t=this.content[e],n=this.scoreFunction(t);e>0;){var i=Math.floor((e+1)/2)-1,a=this.content[i];if(n>=this.scoreFunction(a))break;this.content[i]=t,this.content[e]=a,e=i}},sinkDown:function(e){for(var t=this.content.length,n=this.content[e],i=this.scoreFunction(n);;){var a=2*(e+1),r=a-1,o=null;if(r<t){var l=this.content[r],c=this.scoreFunction(l);c<i&&(o=r)}if(a<t){var s=this.content[a];this.scoreFunction(s)<(null==o?i:c)&&(o=a)}if(null==o)break;this.content[e]=this.content[o],this.content[o]=n,e=o}}};var _t=function(e,t,n){var i=function(e,t,n){var i={},a={},r={};r[t]=0;var o=new bt((function(e){return e.weight}));for(o.push({id:t,weight:0});o.size();){var l=o.pop(),c=l.id;if(!a[c]){var s=e(c)||{};for(var d in a[c]=1,s){var u=l.weight+s[d];(void 0===r[d]||r[d]>u)&&(r[d]=u,o.push({id:d,weight:u}),i[d]=c)}}}if(void 0===r[n])throw new Error("There is no path from ".concat(t," to ").concat(n));return i}(e,t,n);return function(e,t){for(var n=[],i=t;i;)n.push(i),e[i],i=e[i];return n.reverse()}(i,n)},Et=function(e,t,n){return(t-e.length*(2*n))/e.reduce((function(e,t){return e+yt(t)}),0)},Rt=function(e,t,n,i,a,r){var o=e.slice(t,n),l=Et(o,i,r);return Math.pow(Math.abs(l-a),2)},Nt=function(e){var t=e.containerWidth,n=e.limitNodeSearch,i=e.targetRowHeight,a=e.margin,r=e.photos,o=function(e,t,n,i,a){return function(r){var o={};o[+(r=+r)]=0;for(var l=r+1;l<n.length+1&&!(l-r>i);++l)o[l.toString()]=Rt(n,r,l,t,e,a);return o}}(i,t,r,n,a),l=_t(o,"0",r.length);l=l.map((function(e){return+e}));for(var c=1;c<l.length;++c)for(var s=r.slice(l[c-1],l[c]),d=Et(s,t,a),u=l[c-1];u<l[c];++u)r[u].width=wt(d*yt(r[u]),1),r[u].height=d;return r},St=Le().memo((function(e){var t=e.photos,n=e.onClick,i=e.direction,a=e.margin,r=e.limitNodeSearch,o=e.targetRowHeight,l=e.columns,c=e.renderImage,s=pt((0,Ue.useState)(0),2),d=s[0],u=s[1],m=(0,Ue.useRef)(null);(0,Ue.useLayoutEffect)((function(){var e=null,t=new st((function(t){var n=t[0].contentRect.width;d!==n&&(e=window.requestAnimationFrame((function(){u(Math.floor(n))})))}));return t.observe(m.current),function(){t.disconnect(),window.cancelAnimationFrame(e)}}));var g=function(e,i){var a=i.index;n(e,{index:a,photo:t[a],previous:t[a-1]||null,next:t[a+1]||null})};if(!d)return Le().createElement("div",{ref:m}," ");var p,f,v=d-1;"row"===i&&("function"==typeof r&&(r=r(d)),"function"==typeof o&&(o=o(d)),void 0===r&&(r=2,d>=450&&(r=function(e){var t=e.targetRowHeight,n=e.containerWidth;return wt(n/t/1.5)+8}({containerWidth:d,targetRowHeight:o}))),p={display:"flex",flexWrap:"wrap",flexDirection:"row"},f=Nt({containerWidth:v,limitNodeSearch:r,targetRowHeight:o,margin:a,photos:t})),"column"===i&&("function"==typeof l&&(l=l(d)),void 0===l&&(l=1,d>=500&&(l=2),d>=900&&(l=3),d>=1500&&(l=4)),p={position:"relative"},f=function(e){for(var t=e.photos,n=e.columns,i=e.containerWidth,a=e.margin,r=(i-2*a*n)/n,o=t.map((function(e){var t=e.height/e.width*r;return mt({},e,{width:wt(r,1),height:wt(t,1)})})),l=[],c=[],s=0;s<n;s++)l[s]=wt(s*(r+2*a),1),c[s]=0;var d=o.map((function(e){var t=c.reduce((function(e,t,n){return t<c[e]?n:e}),0);e.top=c[t],e.left=l[t],c[t]=c[t]+e.height+2*a;var n=c.reduce((function(e,t,n){return t>c[e]?n:e}),0);return e.containerHeight=c[n],e}));return d}({containerWidth:v,columns:l,margin:a,photos:t}),p.height=f[f.length-1].containerHeight);var h=c||vt;return Le().createElement("div",{className:"react-photo-gallery--gallery"},Le().createElement("div",{ref:m,style:p},f.map((function(e,t){var r=e.left,o=e.top,l=e.containerHeight,c=gt(e,["left","top","containerHeight"]);return h({left:r,top:o,key:e.key||e.src,containerHeight:l,index:t,margin:a,direction:i,onClick:n?g:null,photo:c})}))))}));St.propTypes={photos:ze().arrayOf(ht).isRequired,direction:ze().string,onClick:ze().func,columns:ze().oneOfType([ze().func,ze().number]),targetRowHeight:ze().oneOfType([ze().func,ze().number]),limitNodeSearch:ze().oneOfType([ze().func,ze().number]),margin:ze().number,renderImage:ze().func},St.defaultProps={margin:2,direction:"row",targetRowHeight:300};const Ct=St;var Ot=React.useContext;function kt(){var e=Ot(t),n=e.isUpload,i=e.permissions,a=e.setIsUpload,r=e.isShortcodeBuilder,o=e.shortcodeBuilderType,l=e.files,c=!r&&(!o||"browser"===o)&&(!i||i.upload),s=wp.i18n.__("There is no items here.","integrate-google-drive"),d=wp.i18n.__("The folder is empty.","integrate-google-drive");return r&&l.length&&(s=wp.i18n.__("No items available for selection.","integrate-google-drive"),d=wp.i18n.__("This folder doesn't contain any selectable items.","integrate-google-drive")),React.createElement("div",{className:"igd-root-placeholder empty-folder-placeholder ".concat(n?"igd-hidden":"")},React.createElement("img",{src:"".concat(igd.pluginUrl,"/assets/images/file-browser/empty-folder-placeholder.svg"),alt:"Empty Folder"}),React.createElement("span",{className:"igd-root-placeholder-title"},s),React.createElement("span",{className:"igd-root-placeholder-text"},d),c&&React.createElement("button",{type:"button",className:"igd-btn btn-primary uploader-btn",onClick:function(){return a(!0)}},React.createElement("i",{className:"dashicons dashicons-cloud-upload"}),wp.i18n.__("Upload Files","integrate-google-drive")))}function Ft(e){return Ft="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ft(e)}function At(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function xt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?At(Object(n),!0).forEach((function(t){Pt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):At(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Pt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Ft(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==Ft(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Ft(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,a,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=r.call(n)).done)&&(l.push(i.value),l.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw a}}return l}}(e,t)||Dt(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function It(e){return function(e){if(Array.isArray(e))return Tt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Dt(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Dt(e,t){if(e){if("string"==typeof e)return Tt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Tt(e,t):void 0}}function Tt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var Bt=React,Ut=Bt.useEffect,Lt=Bt.useState,Mt=Bt.useContext,zt=igd.settings.rememberLastFolder,Ht=void 0===zt||zt,Kt=function(e){var t=e.id,n=e.activeFiles,i=e.setActiveFiles,a=e.files;return React.createElement("div",{className:"item-selection",onClick:function(e){e.stopPropagation(),n.find((function(e){return e.id===t}))?i((function(e){return e.filter((function(e){return e.id!==t}))})):i((function(e){return[].concat(It(e),[a.find((function(e){return e.id===t}))])}))}},React.createElement("svg",{fill:"#FFFFFFB2",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},React.createElement("radialGradient",{id:"shadow",cx:"38",cy:"95.488",r:"10.488",gradientTransform:"matrix(1 0 0 -1 -26 109)",gradientUnits:"userSpaceOnUse"},React.createElement("stop",{offset:".832",stopColor:"#010101"}),React.createElement("stop",{offset:"1",stopColor:"#010101",stopOpacity:"0"})),React.createElement("circle",{opacity:".26",fill:"url(#shadow)",cx:"12",cy:"13.512",r:"10.488"}),React.createElement("circle",{fill:"#FFF",cx:"12",cy:"12.2",r:"8.292"}),React.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),React.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})))};function Wt(){var e=Mt(t),n=e.galleryLayout,i=e.galleryColumns,a=e.galleryAspectRatio,r=e.galleryHeight,o=e.galleryMargin,l=e.galleryView,c=e.galleryFolderView,s=e.galleryOverlay,d=e.galleryOverlayTitle,u=e.galleryOverlayDescription,m=e.galleryOverlaySize,g=e.galleryImageSize,p=e.galleryCustomSizeWidth,f=e.galleryCustomSizeHeight,v=e.activeAccount,h=e.files,w=e.listFiles,_=e.setShouldRefresh,E=e.breadcrumbs,R=e.initFolders,N=e.setFiles,C=e.activeFolder,F=e.setActiveFolder,A=e.permissions,x=e.setActiveFiles,j=e.activeFiles,T=e.selectAll,B=e.isLoading,U=e.initParentFolder,L=e.notifications,M=jt(Lt({}),2),H=M[0],K=M[1],W=!!E&&Object.keys(E),Q=jt(Lt([]),2),V=Q[0],q=Q[1],G=jt(Lt([]),2),Y=G[0],J=G[1];Ut((function(){if(!h.length)return q([]),void J([]);var e=h.filter((function(e){return b(e)||[v.root_id,"shared","computers","starred","shared-drives"].includes(e.id)}));q(e);var t=h.filter((function(e){return O(e)||S(e)})).map((function(e){var t=e.id,i=e.description,a=e.name,r=e.size,o=e.metaData,l=void 0===o?{}:o,c={id:t,name:a,description:i,size:r,src:P(e,g,{w:p,h:f})};return"grid"!==n&&(l.width&&!S(e)||(l.width=600),l.height&&!S(e)||(l.height=400),c.width=l.width,c.height=l.height),c}));J(t)}),[h]),Ut((function(){V.length&&"title"!==c&&V.forEach((function(e){k(e.id,v)||X(e)}))}),[V,v]);var X=function(e){function t(e,t){var n=jQuery(e);setTimeout((function(){e.dataset.intervalId&&clearInterval(e.dataset.intervalId),e.dataset.intervalId=setInterval((function(){var e=n.find("img"),t=e.filter(".active").length?e.filter(".active"):e.first();if(t.length){var i=t.next().length?t.next():e.first();e.removeClass("active"),i.addClass("active")}}),3e3)}),1500*t)}wp.ajax.post("igd_get_files",{data:{folder:e}}).done((function(n){var i=n.files,a=n.error;if(a)Swal.fire({html:a,icon:"error",confirmButtonText:wp.i18n.__("Ok","integrate-google-drive"),customClass:{container:"igd-swal"}});else{var r=i.filter((function(e){return O(e)||S(e)}));r=r.slice(0,10),K((function(t){return xt(xt({},t),{},Pt({},e.id,r))})),document.querySelectorAll(".igd-gallery-folder-images").forEach(t)}})).fail((function(e){return console.log(e)}))};Ut((function(){var e=jQuery(".react-photo-gallery--gallery img");if(e.length){var t=function(){_(!0)};return e.on("error",t),function(){e.off("error",t)}}}),[Y]);var Z=I();Ut((function(){if(Z)if(T){x(h);var e=Y.map((function(e){return xt(xt({},e),{},{isSelected:!0})}));J(e)}else{x([]);var t=Y.map((function(e){return xt(xt({},e),{},{isSelected:!1})}));J(t)}}),[T]);var $=function(){var e=window.innerWidth;return e<768?i.xs:e<992?i.sm:e<1200?i.md:e<1600?i.lg:e>=1920?i.xl:i.md},ee=jt(Lt($()),2),te=ee[0],ne=ee[1];return Ut((function(){var e=function(){ne($())};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[]),React.createElement(React.Fragment,null,React.createElement("div",{className:"igd-module-gallery gallery-view-".concat(l," gallery-layout-").concat(n),style:{"--column-width":"calc(".concat(100/te,"% - ").concat(2*o,"px)"),"--aspect-ratio":"".concat(a)}},React.createElement("div",{className:"file-list"},!!W.length&&!!C&&React.createElement("div",{className:"go-prev file-item folder-item",style:{margin:"".concat(o,"px")},onClick:function(e){if(W.length>1){var t=W[W.length-2],n={id:t,name:E[t],accountId:v.id};w(n)}else if(F(""),N(R),Ht){var i=z(R,U);i&&sessionStorage.removeItem(i)}}},React.createElement("i",{className:"dashicons dashicons-arrow-left-alt"}),React.createElement("span",null,wp.i18n.__("Previous folder","integrate-google-drive"))),!!V.length&&V.map((function(e){var t=e.id,n=e.name,i=e.iconLink,a=j.find((function(e){return e.id===t})),r=null==i?void 0:i.replace("/16/","/64/");return React.createElement("div",{key:t,className:"file-item ".concat(a?"active":""," ").concat("title"===c?"folder-item":""),style:{margin:"".concat(o,"px")},onClick:function(){return w(e)}},(A.download&&A.zipDownload||A.photoProof)&&React.createElement(Kt,{id:t,activeFiles:j,setActiveFiles:x,files:h}),"thumbnail"===c&&React.createElement("div",{className:"igd-gallery-folder-images"},H[t]&&H[t].length>0?H[t].map((function(e,t){var n=e.id,i=e.name,a=P(e,g,{w:p,h:f});return React.createElement("img",{key:n,className:"".concat(0===t?"active":""),onError:function(e){e.target.src=r},src:a,alt:i,referrerPolicy:"no-referrer"})})):React.createElement("img",{className:"active",src:r,alt:n,referrerPolicy:"no-referrer"})),React.createElement("div",{className:"file-item-footer"},React.createElement("div",{className:"file-icon-wrap"},k(t,v)?React.createElement("i",{className:"file-icon dashicons ".concat(r," footer-icon")}):React.createElement("img",{className:"file-icon",src:r,alt:n,referrerPolicy:"no-referrer"})),React.createElement("span",null,n)))}))),React.createElement(Ct,{photos:Y,margin:parseInt(o),targetRowHeight:"justified"===n&&r,columns:te,direction:"masonry"===n?"column":"row",renderImage:function(e){var t=e.photo,n=e.margin,i=e.direction,a=e.top,r=e.left,o=t.name,l=t.description,c=t.src,g=t.size,p=t.id,f=t.width,v=t.height,w={display:"block",margin:"".concat(n,"px"),width:"".concat(f,"px"),height:"".concat(v,"px")};"column"===i&&(w.position="absolute",w.left="".concat(r,"px"),w.top="".concat(a,"px"));var b=j.find((function(e){return e.id===p}));return React.createElement("div",{className:"igd-gallery-item ".concat(b?"active":""),style:w,onClick:function(e){return function(e,t){D(e,t,h.filter((function(e){return O(e)||S(e)})),A,L,!0)}(e,p)}},(A.download&&A.zipDownload||A.photoProof)&&React.createElement(Kt,{id:p,activeFiles:j,setActiveFiles:x,files:h}),React.createElement("img",{src:c,alt:o,referrerPolicy:"no-referrer"}),!!s&&React.createElement("div",{className:"igd-gallery-item-overlay"},!!d&&React.createElement("div",{className:"overlay-title"},o),!!u&&!!l&&React.createElement("p",{className:"overlay-description"},l),!!m&&React.createElement("span",{className:"overlay-size"},y(g))))}})),Z&&!B&&!V.length&&!Y.length&&React.createElement(kt,null))}function Qt(){return React.createElement("div",{className:"igd-root-placeholder"},React.createElement("img",{src:"".concat(igd.pluginUrl,"/assets/images/file-browser/computers-placeholder.svg"),alt:"Computers"}),React.createElement("span",{className:"igd-root-placeholder-title"},wp.i18n.__("No Computers Syncing","integrate-google-drive")),React.createElement("span",{className:"igd-root-placeholder-text"},wp.i18n.__("The files synced with computers will display here.","integrate-google-drive")))}function Vt(){return React.createElement("div",{className:"igd-root-placeholder"},React.createElement("img",{src:"".concat(igd.pluginUrl,"/assets/images/file-browser/shared-placeholder.svg"),alt:"Shared Files"}),React.createElement("span",{className:"igd-root-placeholder-title"},wp.i18n.__("Shared With Me","integrate-google-drive")),React.createElement("span",{className:"igd-root-placeholder-text"},wp.i18n.__("Files and folders others have shared with you.","integrate-google-drive")))}function qt(){return React.createElement("div",{className:"igd-root-placeholder"},React.createElement("img",{src:"".concat(igd.pluginUrl,"/assets/images/file-browser/starred-placeholder.svg"),alt:"Starred Files"}),React.createElement("span",{className:"igd-root-placeholder-title"},wp.i18n.__("Nothing is starred","integrate-google-drive")),React.createElement("span",{className:"igd-root-placeholder-text"},wp.i18n.__("Adds star to files and folders that you want to find easily later.","integrate-google-drive")))}function Gt(){return React.createElement("div",{className:"igd-root-placeholder"},React.createElement("img",{src:"".concat(igd.pluginUrl,"/assets/images/file-browser/shared-drives-placeholder.svg"),alt:"Shared Drives"}),React.createElement("span",{className:"igd-root-placeholder-title"},wp.i18n.__("No Shared Drives","integrate-google-drive")),React.createElement("span",{className:"igd-root-placeholder-text"},wp.i18n.__("The Drives others have shared with you.","integrate-google-drive")))}function Yt(e){var t=e.activeFolder.id;return React.createElement(React.Fragment,null,"computers"===t&&React.createElement(Qt,null),"shared-drives"===t&&React.createElement(Gt,null),"shared"===t&&React.createElement(Vt,null),"starred"===t&&React.createElement(qt,null))}function Jt(e){var t=e.isSearchResults;return React.createElement("div",{className:"igd-root-placeholder search-placeholder ".concat(t?"empty-placeholder":"")},t&&React.createElement("svg",{width:100,height:100,className:"igd-placeholder-svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 259 223",fill:"none"},React.createElement("g",{clipPath:"url(#clip0_1110_10155)"},React.createElement("path",{d:"M127.836 80.9443C127.836 103.828 127.836 126.64 127.836 149.523C127.836 157.696 124.072 161.391 115.905 161.391C81.2469 161.391 46.5181 161.391 11.8603 161.391C3.97712 161.391 0.07102 157.553 0.07102 149.665C0.07102 116.264 0.14204 82.8631 0 49.462C0 46.4062 1.0653 46.0509 3.62202 46.1219C12.4995 46.2641 21.377 46.193 30.2545 46.193C40.4104 46.193 46.092 40.4367 46.163 30.4164C46.163 21.3199 46.234 12.1524 46.092 3.05595C46.092 0.923972 46.3761 0.000114277 48.8618 0.0711803C71.5882 0.213312 94.3146 0.142246 117.041 0.142246C123.788 0.142246 127.836 4.19301 127.836 11.0153C127.907 34.2539 127.836 57.6346 127.836 80.9443ZM65.6935 103.046C76.9147 103.046 88.2069 103.046 99.428 103.046C103.689 103.046 105.891 101.34 105.891 98.2133C105.891 95.2285 103.689 93.4519 99.6411 93.4519C77.2698 93.4519 54.8985 93.4519 32.5272 93.4519C28.479 93.4519 26.2774 95.1575 26.2064 98.1423C26.1354 101.198 28.479 103.046 32.5982 103.046C43.6773 103.046 54.6854 103.046 65.6935 103.046ZM66.1196 67.6549C55.0405 67.6549 43.8904 67.6549 32.8112 67.6549C28.6211 67.6549 26.2774 69.3605 26.2774 72.4164C26.2774 75.4722 28.55 77.3199 32.7402 77.3199C54.9695 77.3199 77.1277 77.3199 99.357 77.3199C103.618 77.3199 105.891 75.6143 105.891 72.5585C105.891 69.4316 103.618 67.726 99.428 67.726C88.2779 67.6549 77.1988 67.6549 66.1196 67.6549ZM48.6487 117.756C43.1091 117.756 37.5696 117.685 32.03 117.756C28.266 117.756 26.2064 119.533 26.2774 122.518C26.2774 125.361 28.55 127.208 32.101 127.208C43.0381 127.208 54.0462 127.208 64.9833 127.208C68.5343 127.208 70.807 125.218 70.807 122.447C70.807 119.604 68.5343 117.828 64.9123 117.756C59.5148 117.756 54.0462 117.756 48.6487 117.756Z",fill:"#C1E9C9"}),React.createElement("path",{d:"M148.999 101.482C148.999 124.081 148.999 146.751 148.999 169.35C148.999 178.376 145.377 182 136.287 182C101.984 182 67.6104 182 33.3077 182C24.6433 182 20.4531 177.452 21.1633 168.924C21.3053 167.574 21.5894 166.934 23.0098 167.076C23.72 167.147 24.4302 167.076 25.1404 167.076C55.3239 167.076 85.5074 167.076 115.691 167.076C127.409 167.076 133.588 160.894 133.588 149.097C133.588 107.523 133.659 65.9494 133.517 24.3758C133.517 21.2489 134.298 20.4672 137.352 20.5383C145.164 20.8225 148.999 24.518 148.999 32.4774C148.999 55.5027 148.999 78.5281 148.999 101.482Z",fill:"#C1E9C9"}),React.createElement("path",{d:"M40.4817 18.6906C40.4817 22.9545 40.5527 27.2185 40.4817 31.4825C40.4106 36.9545 37.0727 40.4368 31.6752 40.5078C22.9397 40.5789 14.1332 40.5078 5.39776 40.5078C3.19614 40.5078 1.42064 39.8682 0.568403 37.6652C-0.212817 35.6043 0.710443 34.0408 2.13084 32.5484C12.2157 22.4571 22.3005 12.3657 32.4564 2.27433C33.9478 0.781945 35.5813 -0.355111 37.7829 0.639812C39.9135 1.56367 40.4817 3.34032 40.4817 5.54337C40.4106 9.87839 40.4817 14.2845 40.4817 18.6906Z",fill:"#C1E9C9"})),React.createElement("g",{clipPath:"url(#clip1_1110_10155)"},React.createElement("path",{d:"M148.9 79.6302C120.227 79.6302 91.6528 79.6302 62.9789 79.6302C51.4894 79.6302 46.8936 84.6083 48.4922 96.058C53.3877 132.199 58.4831 168.241 63.5784 204.382C64.5775 211.252 69.1733 214.935 76.9662 214.935C99.4456 215.035 121.925 214.935 144.405 214.935C169.382 214.935 194.359 214.935 219.336 214.935C221.035 214.935 222.633 214.935 224.332 215.234C226.33 215.632 227.529 217.026 227.529 219.117C227.429 221.208 226.23 222.502 224.232 222.801C222.733 223 221.234 222.9 219.736 222.9C172.779 222.9 125.822 222.9 78.8644 222.9C64.2778 222.9 57.484 217.126 55.4858 202.789C50.1906 166.747 45.1952 130.606 40.1997 94.5646C38.801 84.3096 44.4958 75.5482 54.5866 72.4617C56.2851 71.9639 57.2841 71.6652 57.7837 69.5744C59.682 62.3064 63.6783 59.6182 71.7709 59.5186C95.2495 59.5186 118.728 59.4191 142.207 59.6182C145.603 59.6182 147.801 58.8217 149.2 55.6357C150.199 53.2462 151.698 50.9563 153.097 48.7659C156.094 43.8873 160.49 41.0996 166.285 41.0996C187.465 41 208.546 40.9005 229.727 41.0996C236.62 41.1991 241.116 46.0777 241.416 52.8479C241.516 55.1379 241.516 57.5274 241.416 59.8173C241.216 66.3884 240.417 72.163 249.409 75.1499C256.902 77.639 259.799 85.7035 258.8 93.7681C255.203 121.347 251.207 148.926 247.411 176.504C247.011 179.292 245.912 181.582 242.915 181.283C239.418 180.985 239.018 178.197 239.418 175.31C241.916 157.588 244.413 139.865 246.811 122.143C248.21 112.486 249.609 102.828 250.807 93.0711C251.607 86.4005 247.411 80.9245 240.817 79.9289C238.818 79.6302 236.82 79.6302 234.822 79.6302C206.248 79.6302 177.574 79.6302 148.9 79.6302Z",fill:"#2FB44B"}),React.createElement("path",{d:"M225.431 149.025C225.331 153.904 223.632 161.072 219.536 167.444C218.037 169.834 218.237 171.228 220.235 173.219C230.126 182.777 239.818 192.634 249.509 202.391C253.205 206.074 253.705 209.659 251.007 212.347C248.31 215.035 244.813 214.537 241.116 210.853C231.525 201.395 222.034 191.937 212.542 182.379C210.444 180.188 209.046 179.491 206.048 181.383C190.962 191.14 171.48 190.144 157.593 179.292C143.605 168.34 138.11 150.22 143.506 133.394C148.901 116.667 164.486 105.118 182.57 104.521C205.549 103.724 225.431 123.039 225.431 149.025ZM183.569 176.106C200.254 176.007 213.542 162.566 213.342 145.939C213.242 129.71 199.454 116.269 183.269 116.468C166.684 116.568 153.297 130.208 153.496 146.735C153.596 163.063 167.084 176.206 183.569 176.106Z",fill:"#2FB44B"}),React.createElement("path",{d:"M107.738 171.427C112.933 171.427 118.029 171.228 123.224 171.427C128.519 171.626 131.316 174.613 131.516 179.89C131.616 182.18 131.616 184.569 131.516 186.859C131.316 191.937 128.519 195.023 123.524 195.222C112.933 195.421 102.243 195.421 91.6526 195.222C86.6572 195.123 83.8598 191.937 83.56 186.959C83.4601 184.967 83.56 182.976 83.56 180.985C83.6599 174.215 86.3575 171.526 93.3511 171.427C98.0468 171.327 102.842 171.327 107.738 171.427Z",fill:"#2FB44B"}),React.createElement("circle",{cx:"183",cy:"146",r:"30",fill:"white"}),React.createElement("rect",{width:"26.9682",height:"2.81029",transform:"matrix(0.708463 0.705748 0.708463 -0.705748 172.83 137.269)",fill:"#2FB44B"}),React.createElement("rect",{width:"27.6664",height:"2.81029",transform:"matrix(-0.708463 0.705748 0.708463 0.705748 191.885 135.286)",fill:"#2FB44B"})),React.createElement("defs",null,React.createElement("clipPath",{id:"clip0_1110_10155"},React.createElement("rect",{width:"149",height:"182",fill:"white"})),React.createElement("clipPath",{id:"clip1_1110_10155"},React.createElement("rect",{width:"219",height:"182",fill:"white",transform:"translate(40 41)"})))),t?React.createElement("h3",{className:"igd-root-placeholder-title"},wp.i18n.__("No results found!","integrate-google-drive")):React.createElement("h3",{className:"igd-root-placeholder-title"},wp.i18n.__("Search for files & content","integrate-google-drive")),!t&&React.createElement(ie,null))}var Xt=React.useContext;function Zt(){var e=Xt(t),n=e.files,i=e.searchKeywordRef,a=n.length?n.length:wp.i18n.__("No","integrate-google-drive"),r=wp.i18n.sprintf(wp.i18n.__('Search results for "%s": %s items found.',"integrate-google-drive"),"<strong>".concat(i.current,"</strong>"),a);return React.createElement("div",{className:"search-result-info"},React.createElement("span",{dangerouslySetInnerHTML:{__html:r}}),React.createElement("button",{onClick:function(e){document.querySelector(".search-dismiss").click()},className:"clear-button igd-btn btn-warning"},wp.i18n.__("Clear","integrate-google-drive")))}function $t(e){return $t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$t(e)}function en(e){return function(e){if(Array.isArray(e))return tn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return tn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tn(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function nn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function an(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nn(Object(n),!0).forEach((function(t){rn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function rn(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==$t(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==$t(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===$t(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var on=React,ln=on.useRef,cn=on.useContext;function sn(){var e=document.querySelector(".igd-tutor-attachment-modal"),n=igd.settings,i=n.preloader,a=void 0===i?"default":i,r=n.rememberLastFolder,o=void 0===r||r,l=cn(t),c=l.isLoading,s=l.activeAccount,d=l.initFolders,u=l.initParentFolder,m=l.files,g=void 0===m?[]:m,p=l.setFiles,f=l.activeFiles,h=l.setActiveFiles,w=l.breadcrumbs,_=l.activeFolder,E=l.setActiveFolder,R=l.isShortcodeBuilder,N=l.selectedFolders,S=l.setSelectedFolders,C=l.isList,O=l.showLastModified,F=l.showFileSizeField,A=l.shortcodeBuilderType,x=l.isUpload,j=l.permissions,I=l.isSearchResults,T=l.isMobile,B=l.setIsOptions,U=l.setShouldRefresh,L=l.listFiles,M=l.show,H=l.hideAll,K=l.isSelectFiles,W=l.selectionType,V=l.setActiveFile,q=l.isLMS,G=l.isWooCommerce,Y=l.getFiles,J=l.notifications,X=l.lazyLoad,Z=l.lazyLoadNumber,$="browser"===A,ee="uploader"===A,te="gallery"===A,ne="embed"===A,ie="search"===A,ae="media"===A,re="view"===A,oe="download"===A,le="slider"===A,ce=ee&&N.length;N&&N.length&&K&&["single","parent","template"].includes(W)&&(ce=!0);var se=[!!$,!!ae,!!le,!!te,!!ne,!!re,!!oe,!!q,!!G,!!K&&!W].includes(!0),de=!(!_||k(_.id,s)&&s.root_id!==_.id),ue=ln(),me=function(e,t){var n=v(React.useState(t?"igd-item-col-1":"igd-item-col-4"),2),i=n[0],a=n[1];function r(e){if(t)a("igd-item-col-1");else{var n=e[0].contentRect.width,i={1:320,2:480,3:768,4:992,5:1200,6:1520},r="";if(n>1520)r="igd-item-col-6";else for(var o in i)if(n<i[o]){r="igd-item-col-".concat(o);break}a(r)}}return React.useEffect((function(){if(e.current){var t=new ResizeObserver(r);return t.observe(e.current),function(){t.disconnect()}}}),[e,t]),i}(ue,C);!R&&ie||!X||function(e,t,n,i,a,r,o){React.useEffect((function(){var o=e.current;if(o&&!n&&!a&&i&&i.pageNumber&&!(i.pageNumber<1)){var l=document.body.classList.contains("block-editor-page"),c=document.body.classList.contains("elementor-editor-active"),s=document.body.classList.contains("et-fb");if(!(l||c||s)||r){var d=function(e){for(var t=e.parentElement,n=null;t;)"div"===t.nodeName.toLowerCase()&&(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth)&&(n=t),t=t.parentElement;return n}(o),u=d?d.scrollTop:window.pageYOffset,m=function(){var e=d?d.scrollTop:window.pageYOffset,n=e>u;if(u=e,n)if(d)d.scrollHeight-e<=d.clientHeight&&t(i,"lazy");else{var a=o.getBoundingClientRect(),r=window.innerHeight||document.documentElement.clientHeight;a.bottom<=r+5&&t(i,"lazy")}},g=d||window;return g.addEventListener("scroll",m),function(){g.removeEventListener("scroll",m)}}}}),[e,t,n,i])}(ue,Y,c,_,I,R);var ge=w?Object.keys(w):[],pe=!1;return X&&(null==_?void 0:_.pageNumber)>0&&g.length<((null==_?void 0:_.pageNumber)-1)*Z&&E(an(an({},_),{},{pageNumber:0})),React.createElement("div",{ref:ue,className:"igd-body ".concat(c?"lazy"===c?"lazy-loading":"loading":"")},I&&!c&&React.createElement(Zt,null),(!te||R)&&React.createElement("div",{className:"file-list ".concat(C?"list-view":""," ").concat(me," ").concat(g.length||k(_,s)?"":"empty"),onClick:function(){var e=document.querySelector(".igd-context-menu")?300:0;setTimeout((function(){V(null),h([])}),e)},onContextMenu:function(e){e.preventDefault(),B(!1),h([]),k(_.id,s)&&s.root_id!==_.id||(V(_),M(e))}},!te&&C&&!!g.length&&(O||F)&&React.createElement("div",{className:"list-view-header"},React.createElement("span",{className:"col-name"},wp.i18n.__("Name","integrate-google-drive")),F&&React.createElement("span",{className:"col-size"},wp.i18n.__("Size","integrate-google-drive")),O&&React.createElement("span",{className:"col-modified"},wp.i18n.__("Modified","integrate-google-drive"))),(!_||!_&&!!d)&&(!ie||R)&&!I&&React.createElement(ye,null),(!ie||R)&&!!_&&!!ge.length&&React.createElement("div",{className:"go-prev file-item folder-item",onClick:function(e){if(V(null),d){if(ge.length>1){var t=ge[ge.length-2],n=[ge[ge.length-3]],i={id:t,name:w[t],accountId:s.id,parents:n};L(i)}else if(E(null),p(d),o){var a=z(d,u);a&&sessionStorage.removeItem(a)}}else if(ge.length>1){var r=ge[ge.length-2],l=[ge[ge.length-3]],c={id:r,name:w[r],accountId:s.id,parents:l};L(c)}else p([]),E(null)}},React.createElement("i",{className:"dashicons dashicons-arrow-left-alt2"}),React.createElement("span",null,wp.i18n.__("Previous folder","integrate-google-drive"))),!!g.length&&g.map((function(t,n){var i=t.id,a=t.name,r=t.type,o=t.iconLink,l=void 0===o?"":o,c=t.thumbnailLink,s=t.size,d=t.updated;if(i){var u=b(t),m=f.find((function(e){return e.id===i})),p=N&&!!N.find((function(e){return e.id===i})),v=R&&(se||u)&&(!q||!u)&&(!e||!u);ce&&(v=(N[0].id||N[0])===i);var w=null==l?void 0:l.replace("/16/","/64/"),_=P(t,"small"),E=!pe&&u&&!g.slice(n+1).some(b);return E&&(pe=!0),React.createElement(React.Fragment,null,E&&!C&&React.createElement("div",{className:"folder-file-divider"}),React.createElement("div",{key:i,"data-id":i,className:"file-item ".concat(u?"folder-item":"","  ").concat(E?"folder-item-last":""," ").concat(m||p?"active":""),onClick:function(e){e.stopPropagation(),H(),T?u?L(t):R?S([].concat(en(N),[t])):(V(t),D(e,i,g,j,J)):(e.detail&&1!=e.detail||R?u?L(t):R&&v&&S(p?en(N.filter((function(e){return e.id!=t.id}))):[].concat(en(N),[t])):(e.ctrlKey||e.shiftKey||e.metaKey)&&!ee?h((function(e){return e.find((function(e){return e.id===t.id}))?e.filter((function(e){return e.id!==t.id})):[].concat(en(e),[t])})):u?L(t):(V(t),D(e,i,g,j,J)),console.log(t))},onDoubleClick:function(e){e.stopPropagation(),R||(u?L(t):(V(t),D(e,i,g,j,J)))},onContextMenu:function(e){e.preventDefault(),e.stopPropagation(),H(),B(!1),t["shared-drives"]||R||(h([t]),V(t),M(e))},title:a},!u&&!C&&React.createElement("img",{referrerPolicy:"no-referrer",className:"igd-file-thumbnail ".concat(c?"has-thumbnail":""),src:_,loading:"lazy",onError:function(e){var t=e.target;t.classList.remove("has-thumbnail"),t.src!==w&&(t.src=w,U(!0))},alt:a}),React.createElement("div",{className:"file-item-footer"},React.createElement("div",{className:"file-icon-wrap"},React.createElement("img",{className:"file-icon",referrerPolicy:"no-referrer",src:w,alt:"icon"}),"application/vnd.google-apps.shortcut"===r&&React.createElement("svg",{className:"shortcut-icon",viewBox:"0 0 16 16",fill:"none",focusable:"false",xmlns:"http://www.w3.org/2000/svg",width:"16px",height:"16px"},React.createElement("circle",{cx:"8",cy:"8",r:"8",fill:"white"}),React.createElement("path",{d:"M10,3H6V4H8.15A5,5,0,0,0,10,13V12A4,4,0,0,1,9,4.65V7h1Z",fill:"#5F6368"})),!R&&(!j||j.download&&j.zipDownload)&&React.createElement("span",{className:"file-item-checkbox ".concat(m?"checked":""),onClick:function(e){e.stopPropagation(),h(m?function(e){return e.filter((function(e){return e.id!==t.id}))}:[].concat(en(f),[t]))}},React.createElement("span",{className:"box"}))),React.createElement("span",{className:"file-item-name"},a),F&&(C?React.createElement("span",{className:"file-item-size"},s?y(s):"—"):(!j||j.download)&&!u&&!!s&&React.createElement("span",{className:"file-item-size"},y(s))),!R&&React.createElement("span",{className:"file-item-options",onClick:function(e){e.stopPropagation(),B(!1),V(t),M(e)}},React.createElement("i",{className:"dashicons dashicons-ellipsis"}))),C&&O&&React.createElement("span",{className:"file-item-date"},Q(d,!0)),v&&React.createElement(he,{file:t,isSelected:p,selectedFolders:N,setSelectedFolders:S,isList:C})))}}))),!R&&te&&React.createElement(Wt,null),!c&&(d||_&&(!k(_.id,s)||_.id===s.root_id))&&!g.length&&(R||!te)&&(R||!ie)&&!I&&React.createElement(kt,null),!ie&&!I&&!R&&!te&&de&&x&&React.createElement(Be,null),!I&&!c&&!g.length&&_&&k(_.id,s)&&React.createElement(Yt,{activeFolder:_}),!c&&(!R&&ie||I)&&!g.length&&React.createElement(Jt,{isSearchResults:I}),c&&React.createElement("div",{className:"loading-wrap"},igd.settings.customPreloader?React.createElement("img",{src:igd.settings.customPreloader,alt:"Loading..."}):React.createElement("img",{src:"".concat(igd.pluginUrl,"/assets/images/preloader/").concat(a,".svg"),alt:"Loading..."})))}function dn(e){return dn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},dn(e)}function un(e){return function(e){if(Array.isArray(e))return hn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||vn(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function gn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mn(Object(n),!0).forEach((function(t){pn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pn(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==dn(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==dn(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===dn(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,a,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=r.call(n)).done)&&(l.push(i.value),l.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw a}}return l}}(e,t)||vn(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vn(e,t){if(e){if("string"==typeof e)return hn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?hn(e,t):void 0}}function hn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var wn=React,yn=wn.useContext,bn=wn.useState,_n=wn.useEffect;function En(){var e=yn(t),n=e.files,i=e.activeAccount,a=e.activeFile,r=e.setShowDetails,o=e.activeFolder,l=e.setFiles,c=e.listFiles,s=e.setAllFiles,d=e.initParentFolder,u=fn(bn(null),2),m=u[0],g=u[1],p=m||{},f=p.id,v=p.accountId,h=p.name,b=p.iconLink,_=p.type,E=p.size,R=p.owner,N=p.updated,S=p.created,C=p.description,O=p.parents,F=fn(bn(null),2),A=F[0],x=F[1],P=fn(bn(!1),2),j=P[0],I=P[1],D=fn(bn(""),2),T=D[0],B=D[1];_n((function(){g(null),a?g(a):o&&!k(o.id,i)&&g(o)}),[a,o]),_n((function(){if(null!=m&&m.parents){var e=m.parents[0];(null==o?void 0:o.id)!==e?(x("loading"),wp.ajax.post("igd_get_file",{id:e,accountId:v}).done((function(e){x(e)})).fail((function(e){console.log(e),x(null)}))):x(o)}else x(null)}),[m,o]);var U=null==b?void 0:b.replace("/16/","/64/"),L=[{key:"type",label:wp.i18n.__("Type","integrate-google-drive"),value:w(_)},{key:"size",label:wp.i18n.__("Size","integrate-google-drive"),value:E&&y(E)},{key:"owner",label:wp.i18n.__("Owner","integrate-google-drive"),value:R},{key:"updated",label:wp.i18n.__("Updated","integrate-google-drive"),value:N&&Q(N)},{key:"created",label:wp.i18n.__("Created","integrate-google-drive"),value:S&&Q(S)}];return React.createElement("div",{className:"igd-details-wrap"},React.createElement("div",{className:"igd-details"},React.createElement("i",{className:"close-details dashicons dashicons-no",onClick:function(){r(!1),localStorage.removeItem("igd_show_details")}}),m&&!k(m.id,i)?React.createElement(React.Fragment,null,React.createElement("div",{className:"details-item name"},React.createElement("img",{src:U}),React.createElement("span",null,h)),L.map((function(e){var t=e.key,n=e.label,i=e.value;if(i)return React.createElement("div",{key:t,className:"details-item field-".concat(t)},React.createElement("span",{className:"details-item-label"},n),React.createElement("span",{className:"details-item-value"},i))})),!(null==O||!O.length)&&o&&o.id!==(null==d?void 0:d.id)&&React.createElement("div",{className:"details-item field-location"},React.createElement("span",{className:"details-item-label"},wp.i18n.__("Location","integrate-google-drive")),A&&React.createElement("div",{className:"details-item-value"},"loading"===A?React.createElement("span",{className:"igd-spinner"}):React.createElement("div",{className:"location-wrap",onClick:function(){c(A)}},React.createElement("img",{src:A.iconLink}),React.createElement("span",null,A.name)))),React.createElement("div",{className:"details-item field-description"},React.createElement("span",{className:"details-item-label"},wp.i18n.__("Description","integrate-google-drive")),React.createElement("i",{className:"dashicons ".concat(j?"dashicons-saved":"dashicons-edit"),onClick:function(){j?(!function(){var e=n.map((function(e){return e.id===f?gn(gn({},e),{},{description:T}):e}));l(un(e)),g(gn(gn({},m),{},{description:T})),s((function(t){return gn(gn({},t),{},pn({},null==o?void 0:o.id,un(e)))})),wp.ajax.post("igd_update_description",{id:f,accountId:v,description:T}).done((function(){Swal.close(),Swal.fire({title:wp.i18n.__("Updated!","integrate-google-drive"),text:wp.i18n.__("Description has been updated.","integrate-google-drive"),icon:"success",showConfirmButton:!1,timer:2e3,timerProgressBar:!0,toast:!0,customClass:{container:"igd-swal"},position:"top-end"})}))}(),I(!1)):(I(!0),B(C))}}),!j&&(C?React.createElement("span",{className:"details-item-value"},C):React.createElement("span",{className:"description-placeholder"},wp.i18n.__("Add description","integrate-google-drive"))),j&&React.createElement("textarea",{onChange:function(e){return B(e.target.value)},value:T,rows:4}))):React.createElement("div",{className:"details-placeholder"},React.createElement("i",{className:"dashicons dashicons-pressthis"}),React.createElement("span",null,wp.i18n.__("Select a file or folder to view its details.","integrate-google-drive")))))}function Rn(e){var t,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Rn(e[t]))&&(i&&(i+=" "),i+=n);else for(t in e)e[t]&&(i&&(i+=" "),i+=t);return i}const Nn=function(){for(var e,t,n=0,i="";n<arguments.length;)(e=arguments[n++])&&(t=Rn(e))&&(i&&(i+=" "),i+=t);return i};var Sn=n(155);function Cn(){return Cn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Cn.apply(this,arguments)}function On(e,t){if(null==e)return{};var n,i,a={},r=Object.keys(e);for(i=0;i<r.length;i++)n=r[i],t.indexOf(n)>=0||(a[n]=e[n]);return a}var kn=(0,Ue.createContext)({});function Fn(){return(0,Ue.useContext)(kn)}var An=function(e){return Le().createElement(kn.Provider,{value:e.refTracker},e.children)};function xn(){var e=new Map;return{on:function(t,n){var i;return e.has(t)?null==(i=e.get(t))||i.add(n):e.set(t,new Set([n])),this},off:function(t,n){return n?e.get(t).delete(n):e.delete(t),this},emit:function(t,n){if("production"!==Sn.env.NODE){var i=t;e.has(t)||0===i||console.error("It seems that the menu you are trying to display is not renderer or you have a menu id mismatch.","You used the menu id: "+t)}return e.has(t)&&e.get(t).forEach((function(e){e(n)})),this}}}var Pn=xn();function jn(){return(0,Ue.useRef)(new Map).current}var In={show:function(e){var t=e.id,n=e.event,i=e.props,a=e.position;n.preventDefault&&n.preventDefault(),Pn.emit(0).emit(t,{event:n.nativeEvent||n,props:i,position:a})},hideAll:function(){Pn.emit(0)}};function Dn(){var e,t,n,i,a=new Map,r=!1;function o(){i[e].node.focus()}function l(){return-1!==e||(c(),!1)}function c(){e+1<i.length?e++:e+1===i.length&&(e=0),r&&s(),o()}function s(){if(l()&&!n){var c=a.get(t),s=c.isRoot,d=c.items,u=c.focusedIndex,m=c.parentNode;t.classList.remove("react-contexify__submenu--is-open"),i=d,t=m,s&&(n=!0,a.clear()),r||(e=u,o())}}return{init:function(t){i=t,e=-1,n=!0},moveDown:c,moveUp:function(){-1===e||0===e?e=i.length-1:e-1<i.length&&e--,r&&s(),o()},openSubmenu:function(){if(l()&&e>=0&&i[e].isSubmenu){var c=Array.from(i[e].submenuRefTracker.values()),s=i[e].node;return a.set(s,{isRoot:n,focusedIndex:e,parentNode:t||s,items:i}),s.classList.add("react-contexify__submenu--is-open"),t=s,c.length>0?(e=0,i=c):r=!0,n=!1,o(),!0}return!1},closeSubmenu:s}}var Tn={fade:"fade",flip:"flip",scale:"scale",slide:"slide"},Bn=function(){};function Un(e){return"function"==typeof e}function Ln(e){return"string"==typeof e}function Mn(e,t){return Ue.Children.map(Ue.Children.toArray(e).filter(Boolean),(function(e){return(0,Ue.cloneElement)(e,t)}))}function zn(e,t){return Un(e)?e(t):e}function Hn(e,t){return Un(t)?Cn({},e,t(e)):Cn({},e,t)}var Kn=function(e){var t,n,i,a=e.id,r=e.theme,o=e.style,l=e.className,c=e.children,s=e.animation,d=void 0===s?"scale":s,u=e.onHidden,m=void 0===u?Bn:u,g=e.onShown,p=void 0===g?Bn:g,f=On(e,["id","theme","style","className","children","animation","onHidden","onShown"]),v=(0,Ue.useReducer)(Hn,{x:0,y:0,visible:!1,triggerEvent:{},propsFromTrigger:null,willLeave:!1}),h=v[0],w=v[1],y=(0,Ue.useRef)(null),b=(0,Ue.useRef)(!1),_=(n=h.visible,i=(0,Ue.useRef)(),(0,Ue.useEffect)((function(){i.current=n}),[n]),i.current),E=jn(),R=(0,Ue.useState)((function(){return Dn()}))[0];function N(e){var t=e.event,n=e.props,i=e.position;t.stopPropagation();var a,r,o=i||(r={x:0,y:0},function(e){return"touchend"===e.type}(a=t)&&a.changedTouches&&a.changedTouches.length>0?(r.x=a.changedTouches[0].clientX,r.y=a.changedTouches[0].clientY):(r.x=a.clientX,r.y=a.clientY),(!r.x||r.x<0)&&(r.x=0),(!r.y||r.y<0)&&(r.y=0),r),l=o.x,c=o.y;setTimeout((function(){w({visible:!0,willLeave:!1,x:l,y:c,triggerEvent:t,propsFromTrigger:n})}),0)}function S(e){var t=e;(void 0===t||2!==t.button&&!0!==t.ctrlKey||"contextmenu"===t.type)&&(!function(e){return!(!e||!(Ln(e)||"exit"in e&&e.exit))}(d)?w((function(e){return{visible:!e.visible&&e.visible}})):w((function(e){return{willLeave:e.visible}})))}(0,Ue.useEffect)((function(){return b.current=!0,Pn.on(a,N).on(0,S),function(){Pn.off(a,N).off(0,S)}}),[a]),(0,Ue.useEffect)((function(){b.current&&h.visible!==_&&(h.visible?p():m())}),[h.visible,m,p]),(0,Ue.useEffect)((function(){h.visible?R.init(Array.from(E.values())):E.clear()}),[h.visible,R,E]),(0,Ue.useEffect)((function(){if(h.visible){var e=window,t=e.innerWidth,n=e.innerHeight,i=y.current,a=i.offsetWidth,r=i.offsetHeight,o=h.x,l=h.y;o+a>t&&(o-=o+a-t),l+r>n&&(l-=l+r-n),w({x:o,y:l})}}),[h.visible]),(0,Ue.useEffect)((function(){function e(e){switch(e.preventDefault(),e.key){case"Enter":R.openSubmenu()||S();break;case"Escape":S();break;case"ArrowUp":R.moveUp();break;case"ArrowDown":R.moveDown();break;case"ArrowRight":R.openSubmenu();break;case"ArrowLeft":R.closeSubmenu()}}return h.visible&&(window.addEventListener("resize",S),window.addEventListener("contextmenu",S),window.addEventListener("click",S),window.addEventListener("scroll",S),window.addEventListener("keydown",e),window.addEventListener("blur",S)),function(){window.removeEventListener("resize",S),window.removeEventListener("contextmenu",S),window.removeEventListener("click",S),window.removeEventListener("scroll",S),window.removeEventListener("keydown",e),window.removeEventListener("blur",S)}}),[h.visible,R]);var C,O,k=h.visible,F=h.triggerEvent,A=h.propsFromTrigger,x=h.x,P=h.y,j=h.willLeave,I=Nn("react-contexify",l,((t={})["react-contexify__theme--"+r]=r,t),d?Ln(d)?Nn(((C={})["react-contexify__will-enter--"+d]=d&&k&&!j,C["react-contexify__will-leave--"+d+" react-contexify__will-leave--'disabled'"]=d&&k&&j,C)):"enter"in d&&"exit"in d?Nn(((O={})["react-contexify__will-enter--"+d.enter]=d.enter&&k&&!j,O["react-contexify__will-leave--"+d.exit+" react-contexify__will-leave--'disabled'"]=d.exit&&k&&j,O)):null:null),D=Cn({},o,{left:x,top:P,opacity:1});return Le().createElement(An,{refTracker:E},k&&Le().createElement("div",Object.assign({},f,{className:I,onAnimationEnd:function(){h.willLeave&&h.visible&&w({visible:!1,willLeave:!1})},style:D,ref:y,role:"menu"}),Mn(c,{propsFromTrigger:A,triggerEvent:F})))},Wn=function(e){var t,n=e.children,i=e.className,a=e.style,r=e.triggerEvent,o=e.data,l=e.propsFromTrigger,c=e.onClick,s=void 0===c?Bn:c,d=e.disabled,u=void 0!==d&&d,m=e.hidden,g=void 0!==m&&m,p=On(e,["children","className","style","triggerEvent","data","propsFromTrigger","onClick","disabled","hidden"]),f=Fn(),v={data:o,triggerEvent:r,props:l},h=zn(u,v);if(zn(g,v))return null;var w=Nn("react-contexify__item",i,((t={})["react-contexify__item--disabled"]=h,t));return Le().createElement("div",Object.assign({},p,{className:w,style:a,onClick:function(e){v.event=e,h?e.stopPropagation():s(v)},onKeyDown:function(e){"Enter"===e.key&&(v.event=e,s(v))},ref:function(e){e&&!h&&f.set(e,{node:e,isSubmenu:!1})},tabIndex:-1,role:"menuitem","aria-disabled":h}),Le().createElement("div",{className:"react-contexify__item__content"},n))};var Qn=function(e){var t,n=e.arrow,i=void 0===n?"▶":n,a=e.children,r=e.disabled,o=void 0!==r&&r,l=e.hidden,c=void 0!==l&&l,s=e.label,d=e.className,u=e.triggerEvent,m=e.propsFromTrigger,g=e.style,p=On(e,["arrow","children","disabled","hidden","label","className","triggerEvent","propsFromTrigger","style"]),f=Fn(),v=jn(),h=(0,Ue.useRef)(null),w=(0,Ue.useState)({left:"100%",top:0,bottom:"initial"}),y=w[0],b=w[1],_={triggerEvent:u,props:m},E=zn(o,_),R=zn(c,_);if((0,Ue.useEffect)((function(){if(h.current){var e=window,t=e.innerWidth,n=e.innerHeight,i=h.current.getBoundingClientRect(),a={};i.right<t?(a.left="100%",a.right=void 0):(a.right="100%",a.left=void 0),i.bottom>n?(a.bottom=0,a.top="initial"):a.bottom="initial",b(a)}}),[]),R)return null;var N=Nn("react-contexify__item",d,((t={})["react-contexify__item--disabled"]=E,t)),S=Cn({},g,y);return Le().createElement(An,{refTracker:v},Le().createElement("div",Object.assign({},p,{className:N,ref:function(e){e&&!E&&f.set(e,{node:e,isSubmenu:!0,submenuRefTracker:v})},tabIndex:-1,role:"menuitem","aria-haspopup":!0,"aria-disabled":E}),Le().createElement("div",{className:"react-contexify__item__content",onClick:function(e){e.stopPropagation()}},s,Le().createElement("span",{className:"react-contexify__submenu-arrow"},i)),Le().createElement("div",{className:"react-contexify react-contexify__submenu",ref:h,style:S},Mn(a,{propsFromTrigger:m,triggerEvent:u}))))};function Vn(e){return Vn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vn(e)}function qn(e){return function(e){if(Array.isArray(e))return $n(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Zn(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Gn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Yn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gn(Object(n),!0).forEach((function(t){Jn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Jn(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Vn(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==Vn(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Vn(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,a,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=r.call(n)).done)&&(l.push(i.value),l.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw a}}return l}}(e,t)||Zn(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Zn(e,t){if(e){if("string"==typeof e)return $n(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$n(e,t):void 0}}function $n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var ei=React,ti=ei.useState,ni=ei.useEffect;function ii(e){var t=e.files,n=e.setFiles,i=e.allFiles,a=e.setAllFiles,r=e.activeAccount,o=e.initFolders,l=Xn(ti(null),2),c=l[0],s=l[1],d=Xn(ti(null),2),u=d[0],m=d[1],g=Xn(ti(null),2),p=g[0],f=g[1],v=Xn(ti([]),2),h=v[0],w=v[1],y=Xn(ti(!1),2),_=y[0],R=y[1],N=t.map((function(e){return e.id})),S=t.map((function(e){return e.parents[0]}));function C(e){return s(e.id),wp.ajax.post("igd_get_files",{data:{folder:e}}).done((function(t){var n=t.files;n=n.filter((function(e){return b(e)})),m((function(t){return Yn(Yn({},t),{},Jn({},e.id,n))}))})).fail((function(e){console.log(e)})).always((function(){s(null)}))}ni((function(){var e={id:r.root_id,accountId:r.id};C(e).then((function(t){w([e])}))}),[]);var O=!!p&&(N.includes(p.id)||S.includes(p.id));p&&["computers","shared","starred","shared-drives"].includes(p.id)&&(O=!0),p&&r.root_id===p.id&&S.includes(r.root_id)&&(O=!0);var k=E(!1,r);return o&&(k=o.filter((function(e){return b(e)}))),React.createElement("div",{className:"move-folders-wrap"},React.createElement("div",{className:"move-folders"},k.map((function(e){var t=e.id,n=e.name,i=e.iconLink,a=h.find((function(e){return e.id===t})),r=!!p&&p.id===t;return React.createElement(React.Fragment,null,React.createElement("div",{key:t,className:"move-folder ".concat(r?"active":""),onClick:function(){f(r?null:e)}},React.createElement("i",{className:"dashicons dashicons-arrow-".concat(a?"down":"right"),onClick:function(n){n.stopPropagation(),w((function(n){return a?n.filter((function(e){return e.id!==t})):[].concat(qn(n),[e])})),a||u&&u[t]||C(e)}}),React.createElement("img",{src:i,alt:n}),React.createElement("div",{className:"file-item-checkbox ".concat(r?"checked":"")},React.createElement("span",{className:"box"})),React.createElement("span",null,n),c===t&&React.createElement("div",{className:"igd-spinner"})),a&&React.createElement(ai,{folders:u[t]?u[t]:[],childFolders:u,selectedFolder:p,setSelectedFolder:f,getFolders:C,openFolders:h,setOpenFolders:w,loading:c}))}))),React.createElement("button",{disabled:O,type:"button",className:"igd-btn ".concat(O?"disabled":"btn-primary"),onClick:function(){R(!0),wp.ajax.post("igd_move_file",{file_ids:N,folder_id:p.id,account_id:p.accountId}).done((function(e){if(n((function(e){return e.filter((function(e){return!N.includes(e.id)}))})),i[p.id]){var r=[].concat(qn(i[p.id]),qn(t));a((function(e){return Yn(Yn({},e),{},Jn({},p.id,r))}))}Swal.fire({title:wp.i18n.__("Success","integrate-google-drive"),text:wp.i18n.__("File(s) moved successfully","integrate-google-drive"),icon:"success",toast:!0,showConfirmButton:!1,timer:2e3,timerProgressBar:!0})})).fail((function(e){console.log(e),Swal.fire({title:wp.i18n.__("Error","integrate-google-drive"),text:wp.i18n.__("Error moving file(s)","integrate-google-drive"),icon:"error",toast:!0,showConfirmButton:!1,timer:3e3,timerProgressBar:!0})})).always((function(){R(!1)}))}},_&&React.createElement("div",{className:"igd-spinner"}),_?wp.i18n.__("Moving...","integrate-google-drive"):wp.i18n.__("Move","integrate-google-drive")))}function ai(e){var t=e.folders,n=e.childFolders,i=e.selectedFolder,a=e.setSelectedFolder,r=e.getFolders,o=e.openFolders,l=e.setOpenFolders,c=e.loading;return t.length?t.map((function(e){var t=o.find((function(t){return t.id===e.id})),s=!!i&&i.id===e.id;return React.createElement("div",{key:e.id,className:"move-folder-wrap"},React.createElement("div",{className:"move-folder ".concat(s?"active":""),onClick:function(){a(s?null:e)}},React.createElement("i",{className:"dashicons dashicons-arrow-".concat(t?"down":"right"),onClick:function(i){i.stopPropagation(),l(t?function(t){return t.filter((function(t){return t.id!==e.id}))}:function(t){return[].concat(qn(t),[e])}),t||n&&n[e.id]||r(e)}}," "),React.createElement("img",{src:e.iconLink,alt:e.name}),React.createElement("div",{className:"file-item-checkbox ".concat(s?"checked":"")},React.createElement("span",{className:"box"})),React.createElement("span",null,e.name),c===e.id&&React.createElement("div",{className:"igd-spinner"})),t&&n[e.id]&&React.createElement(ai,{folders:n[e.id],childFolders:n,getFolders:r,setSelectedFolder:a,selectedFolder:i,openFolders:o,setOpenFolders:l,loading:c}))})):!c&&React.createElement("div",{className:"move-folder-wrap empty"},React.createElement("i",{className:"dashicons dashicons-warning"}),React.createElement("span",null,wp.i18n.__("No folders found!","integrate-google-drive")))}function ri(e){return ri="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ri(e)}function oi(e){return function(e){if(Array.isArray(e))return mi(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ui(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function li(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function ci(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?li(Object(n),!0).forEach((function(t){si(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):li(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function si(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==ri(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==ri(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ri(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function di(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,a,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=r.call(n)).done)&&(l.push(i.value),l.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw a}}return l}}(e,t)||ui(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ui(e,t){if(e){if("string"==typeof e)return mi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?mi(e,t):void 0}}function mi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var gi=React,pi=gi.useState,fi=gi.useEffect;function vi(e){var t=e.files,n=e.allFiles,i=e.setAllFiles,a=e.activeAccount,r=e.initFolders,o=di(pi(null),2),l=o[0],c=o[1],s=di(pi(null),2),d=s[0],u=s[1],m=di(pi(null),2),g=m[0],p=m[1],f=di(pi([]),2),v=f[0],h=f[1],w=di(pi(!1),2),y=w[0],_=w[1];function R(e){return c(e.id),wp.ajax.post("igd_get_files",{data:{folder:e}}).done((function(t){var n=t.files;n=n.filter((function(e){return b(e)})),u((function(t){return ci(ci({},t),{},si({},e.id,n))}))})).fail((function(e){console.log(e)})).always((function(){c(null)}))}fi((function(){var e={id:a.root_id,accountId:a.id};R(e).then((function(t){h([e])}))}),[]);var N=!1;g&&["computers","shared","starred","shared-drives"].includes(g.id)&&(N=!0);var S=E(!1,a);return r&&(S=r.filter((function(e){return b(e)}))),React.createElement("div",{className:"move-folders-wrap"},React.createElement("div",{className:"move-folders"},S.map((function(e){var t=e.id,n=e.name,i=e.iconLink,a=v.find((function(e){return e.id===t})),r=!!g&&g.id===t;return React.createElement(React.Fragment,null,React.createElement("div",{key:t,className:"move-folder ".concat(r?"active":""),onClick:function(){p(r?null:e)}},React.createElement("i",{className:"dashicons dashicons-arrow-".concat(a?"down":"right"),onClick:function(n){n.stopPropagation(),h((function(n){return a?n.filter((function(e){return e.id!==t})):[].concat(oi(n),[e])})),a||d&&d[t]||R(e)}}),React.createElement("img",{src:i,alt:n}),React.createElement("div",{className:"file-item-checkbox ".concat(r?"checked":"")},React.createElement("span",{className:"box"})),React.createElement("span",null,n),l===t&&React.createElement("div",{className:"igd-spinner"})),a&&React.createElement(hi,{folders:d[t]?d[t]:[],childFolders:d,selectedFolder:g,setSelectedFolder:p,getFolders:R,openFolders:v,setOpenFolders:h,loading:l}))}))),React.createElement("button",{disabled:N,type:"button",className:"igd-btn ".concat(N?"disabled":"btn-primary"),onClick:function(){_(!0),wp.ajax.post("igd_copy_file",{files:t,folder_id:g.id}).done((function(e){if(Swal.fire({title:wp.i18n.__("Success","integrate-google-drive"),text:wp.i18n.__("File(s) copied successfully","integrate-google-drive"),icon:"success",toast:!0,showConfirmButton:!1,timer:2e3,timerProgressBar:!0}),n[g.id]){var t=[].concat(oi(n[g.id]),oi(e));i((function(e){return ci(ci({},e),{},si({},g.id,t))}))}})).fail((function(e){console.log(e),Swal.fire({title:wp.i18n.__("Error","integrate-google-drive"),text:wp.i18n.__("Error copying file(s)","integrate-google-drive"),icon:"error",toast:!0,showConfirmButton:!1,timer:3e3,timerProgressBar:!0})})).always((function(){_(!1)}))}},y&&React.createElement("div",{className:"igd-spinner"}),y?wp.i18n.sprintf(wp.i18n.__("Copying %s files","integrate-google-drive"),t.length):wp.i18n.__("Copy","integrate-google-drive")))}function hi(e){var t=e.folders,n=e.childFolders,i=e.selectedFolder,a=e.setSelectedFolder,r=e.getFolders,o=e.openFolders,l=e.setOpenFolders,c=e.loading;return t.length?t.map((function(e){var t=o.find((function(t){return t.id===e.id})),s=!!i&&i.id===e.id;return React.createElement("div",{key:e.id,className:"move-folder-wrap"},React.createElement("div",{className:"move-folder ".concat(s?"active":""),onClick:function(){a(s?null:e)}},React.createElement("i",{className:"dashicons dashicons-arrow-".concat(t?"down":"right"),onClick:function(i){i.stopPropagation(),l(t?function(t){return t.filter((function(t){return t.id!==e.id}))}:function(t){return[].concat(oi(t),[e])}),t||n&&n[e.id]||r(e)}}," "),React.createElement("img",{src:e.iconLink,alt:e.name}),React.createElement("div",{className:"file-item-checkbox ".concat(s?"checked":"")},React.createElement("span",{className:"box"})),React.createElement("span",null,e.name),c===e.id&&React.createElement("div",{className:"igd-spinner"})),t&&n[e.id]&&React.createElement(hi,{folders:n[e.id],childFolders:n,getFolders:r,setSelectedFolder:a,selectedFolder:i,openFolders:o,setOpenFolders:l,loading:c}))})):!c&&React.createElement("div",{className:"move-folder-wrap empty"},React.createElement("i",{className:"dashicons dashicons-warning"}),React.createElement("span",null,wp.i18n.__("No folders found!","integrate-google-drive")))}function wi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,a,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=r.call(n)).done)&&(l.push(i.value),l.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw a}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return yi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yi(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var bi=React,_i=bi.useState,Ei=bi.useEffect;function Ri(e){var t=e.file,n=e.isDirectLink,i=t.id,a=t.name,r=t.accountId,o=t.type;function l(e){var t=jQuery(e.target).parents("#igd-share-modal").find(".share-link input").val();function n(e){var t=document.createElement("textarea");t.value=e,document.body.appendChild(t),t.focus(),t.select(),document.execCommand("Copy"),t.remove()}function i(){Swal.fire({title:wp.i18n.__("Copied","integrate-google-drive"),text:wp.i18n.__("Link copied to clipboard","integrate-google-drive"),icon:"success",showConfirmButton:!1,timer:2e3,timerProgressBar:!0,toast:!0})}navigator.clipboard&&window.isSecureContext?navigator.clipboard.writeText(t).then((function(){i()})).catch((function(){n(t),i()})):(n(t),i())}var c=B(JSON.stringify({id:i,accountId:r,type:o,name:a})),s=n?"".concat(igd.homeUrl,"/?direct_file=").concat(c):null,d=n?"".concat(igd.homeUrl,"/?direct_file=").concat(c,"&embed=1"):null,u=wi(_i(s),2),m=u[0],g=u[1],p=wi(_i(d),2),f=p[0],v=p[1];Ei((function(){n||(Swal.showLoading(),wp.ajax.send("igd_get_share_link",{data:{file:t},success:function(e){g(e.viewLink),v(e.embedLink)},error:function(e){console.log(e),Swal.fire({title:wp.i18n.__("Error!","integrate-google-drive"),text:e.message,icon:"error",showConfirmButton:!0,confirmButtonText:wp.i18n.__("OK","integrate-google-drive"),customClass:{container:"igd-swal"}})}}).done((function(){Swal.hideLoading()})))}),[]);var h=wi(_i("link"),2),w=h[0],y=h[1],b=igd.settings.channels,_=void 0===b?["shareLink","embedCode","email"]:b;return m&&React.createElement(React.Fragment,null,React.createElement("div",{className:"share-link"},"link"===w?React.createElement("input",{type:"text",value:m,readOnly:!0,onClick:l}):React.createElement("textarea",{readOnly:!0,onClick:function(){document.querySelector(".share-link textarea").select(),document.execCommand("copy"),setTimeout((function(){Swal.fire({title:wp.i18n.__("Copied!","integrate-google-drive"),text:wp.i18n.__("Embed code copied to clipboard.","integrate-google-drive"),icon:"success",showConfirmButton:!1,timer:2e3,timerProgressBar:!0,toast:!0})}),500)}},'<iframe src="'.concat(f,'" width="100%" height="480" frameBorder="0" allowTransparency="true" allow="encrypted-media" frameborder="0" allowfullscreen="true" mozallowfullscreen="true" webkitallowfullscreen="true"></iframe>'))),React.createElement("div",{className:"share-links"},_.includes("shareLink")&&React.createElement("div",{className:"share-item link",onClick:function(e){y("link"),l(e)}},React.createElement("i",{className:"dashicons dashicons-admin-links"}),React.createElement("span",null,wp.i18n.__("Copy Link","integrate-google-drive"))),_.includes("embedCode")&&React.createElement("div",{className:"share-item embed",onClick:function(){return y("embed")}},React.createElement("i",{className:"dashicons dashicons-editor-code"}),React.createElement("span",null,wp.i18n.__("Embed","integrate-google-drive"))),_.includes("email")&&React.createElement("a",{className:"share-item email",href:"mailto:?subject=".concat(a,"&body=").concat(m),onClick:function(){return y("link")}},React.createElement("i",{className:"dashicons dashicons-email"}),React.createElement("span",null,wp.i18n.__("Email","integrate-google-drive"))),_.includes("facebook")&&React.createElement("a",{className:"share-item facebook",href:"https://www.facebook.com/sharer/sharer.php?u=".concat(m),target:"_blank",onClick:function(){return y("link")}},React.createElement("i",{className:"dashicons dashicons-facebook"}),React.createElement("span",null,wp.i18n.__("Facebook","integrate-google-drive"))),_.includes("twitter")&&React.createElement("a",{className:"share-item twitter",href:"https://twitter.com/intent/tweet?text=".concat(a,"&url=").concat(m),target:"_blank",onClick:function(){return y("link")}},React.createElement("i",{className:"dashicons dashicons-twitter"}),React.createElement("span",null,wp.i18n.__("Twitter","integrate-google-drive"))),_.includes("whatsapp")&&React.createElement("a",{className:"share-item whatsapp",href:"https://wa.me/?text=".concat(m),target:"_blank",onClick:function(){return y("link")}},React.createElement("i",{className:"dashicons dashicons-whatsapp"}),React.createElement("span",null,wp.i18n.__("WhatsApp","integrate-google-drive")))))}var Ni=React,Si=Ni.useEffect,Ci=Ni.useRef,Oi=ReactDOM.createPortal;const ki=function(e){var t=e.children,n=Ci(document.createElement("div"));return Si((function(){return document.body.appendChild(n.current),function(){return document.body.removeChild(n.current)}}),[]),Oi(t,n.current)};function Fi(e){return Fi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fi(e)}function Ai(e){return function(e){if(Array.isArray(e))return xi(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return xi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xi(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function Pi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function ji(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pi(Object(n),!0).forEach((function(t){Ii(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ii(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Fi(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==Fi(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Fi(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Di=React.useContext;function Ti(){var e=Di(t),n=e.activeAccount,i=e.getFiles,a=e.activeFiles,r=e.setActiveFiles,o=e.activeFile,l=e.activeFolder,c=e.permissions,s=e.notifications,d=e.shortcodeBuilderType,u=e.isOptions,m=e.setIsOptions,g=e.isList,p=e.setIsList,f=e.setShowDetails,v=e.setIsUpload,h=e.isShortcodeBuilder,w=e.contextMenuId,_=e.selectAll,E=e.setSelectAll,R=e.files,N=e.setFiles,S=e.setAllFiles,C=e.allFiles,O=e.initFolders,F=e.initParentFolder,A="search"===d,x="gallery"===d,P="uploader"===d,I=o&&l&&o.id===l.id,T=function(){return I||!o||b(o)?1!==a.length||b(a[0])?u?a:[o]:[a[0]]:[o]},U=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=e?wp.i18n.__("Direct Link","integrate-google-drive"):wp.i18n.__("Share","integrate-google-drive");Swal.fire({title:t,html:'<div id="igd-share-modal"></div>',didOpen:function(){var t=document.getElementById("igd-share-modal");ReactDOM.render(React.createElement(Ri,{file:o,isDirectLink:e}),t)},showCloseButton:!0,showConfirmButton:!1,showCancelButton:!1,customClass:{container:"igd-swal share-modal"}})},L=o&&o.permissions?o.permissions:{},M=!!L.canEdit,z=!!L.canPreview,K=!!L.canRename;c&&(c.refresh=!0,c.selectAll=c.download&&c.zipDownload);var W=[{key:"doc",title:wp.i18n.__("Google Doc","integrate-google-drive"),icon:"dashicons-media-document"},{key:"sheet",title:wp.i18n.__("Google Sheet","integrate-google-drive"),icon:"dashicons-media-spreadsheet"},{key:"slide",title:wp.i18n.__("Google Slide","integrate-google-drive"),icon:"dashicons-media-interactive"}],Q=[{key:"refresh",title:wp.i18n.__("Refresh","integrate-google-drive"),icon:"dashicons-update-alt"},{key:"newFolder",title:wp.i18n.__("New Folder","integrate-google-drive"),icon:"dashicons-open-folder"},{key:"createDoc",title:wp.i18n.__("Create Document","integrate-google-drive"),icon:"dashicons-welcome-add-page"},{key:"upload",title:wp.i18n.__("Upload Files","integrate-google-drive"),icon:"dashicons-cloud-upload"},{key:"preview",title:c&&!1===c.inlinePreview?wp.i18n.__("Preview in a new window","integrate-google-drive"):wp.i18n.__("Preview","integrate-google-drive"),icon:"dashicons-visibility"},{key:"drive",title:wp.i18n.__("Open in Google Drive","integrate-google-drive"),icon:"dashicons-admin-links"},{key:"details",title:wp.i18n.__("View Details","integrate-google-drive"),icon:"dashicons-info-outline"},{key:"directLink",title:wp.i18n.__("Direct Link","integrate-google-drive"),icon:"dashicons-admin-links"},{key:"share",title:wp.i18n.__("Share","integrate-google-drive"),icon:"dashicons-share"},{key:"selectAll",title:_?wp.i18n.__("Deselect All","integrate-google-drive"):wp.i18n.__("Select All","integrate-google-drive"),icon:"dashicons-screenoptions"},{key:"edit",title:wp.i18n.__("Edit (New Window)","integrate-google-drive"),icon:"dashicons-edit-page"},{key:"download",title:wp.i18n.__("Download","integrate-google-drive")+"".concat(u&&a.length>1?" (".concat(a.length,")"):""),icon:"dashicons-download"},{key:"import",title:wp.i18n.__("Import to Media","integrate-google-drive")+"".concat(u&&a.length>1?" (".concat(a.length,")"):""),icon:"dashicons-migrate"},{key:"move",title:wp.i18n.__("Move","integrate-google-drive")+"".concat(u&&a.length>1?" (".concat(a.length,")"):""),icon:"dashicons-editor-break"},{key:"rename",title:wp.i18n.__("Rename","integrate-google-drive"),icon:"dashicons-edit"},{key:"copy",title:wp.i18n.__("Copy","integrate-google-drive")+"".concat(u&&a.length>1?" (".concat(a.length,")"):""),icon:"dashicons-admin-page"},{key:"delete",title:wp.i18n.__("Delete","integrate-google-drive")+"".concat(u&&a.length>1?" (".concat(a.length,")"):""),icon:"dashicons-trash"},{key:"view",title:g?wp.i18n.__("Grid View","integrate-google-drive"):wp.i18n.__("List View","integrate-google-drive"),icon:g?"dashicons-grid-view":"dashicons-list-view"}].filter((function(e){var t=e.key;if((!h||["view","selectAll"].includes(t))&&(!A||["preview","download","view"].includes(t))&&("drive"!==t||!u&&!O)&&(!c||c[t])&&("view"!==t||(!x||h)&&u)&&("edit"!==t||M)&&(!["share","directLink","details"].includes(t)||o)&&("selectAll"!==t||R.length&&u&&!P)&&("preview"!==t||!(!o&&(1!==a.length||b(a[0]))||o&&(!z||b(o))||u&&(1!==a.length||b(a[0]))))&&("copy"!==t||!(u&&!a.length||!u&&o&&b(o)||u&&a.length&&a.some((function(e){return b(e)}))))&&("move"!==t||!u||a.length)&&("import"!==t||!(u&&(!a.length||a.some((function(e){return b(e)})))||o&&b(o)))&&("rename"!==t||!u||!(a.length>1)&&K)&&("delete"!==t||!u||a.length)&&("download"!==t||(o||a.length)&&(!o||o.permissions&&(b(o)||o.permissions.canDownload)))&&(I||l&&u&&!o&&!a.length||!["refresh","newFolder","upload","createDoc"].includes(t))&&(!(u&&l&&n.root_id!==l.id&&k(l.id,n))||["view"].includes(t))&&(!I||a.length||u||["refresh","newFolder","upload","createDoc"].includes(t)))return!0}));return Q.length||!c||c.view||m(null),React.createElement(ki,null,React.createElement(Kn,{id:w,className:"igd-context-menu",animation:Tn.fade},Q.map((function(e){var t=e.key,d=e.title,h=e.icon;return React.createElement(Wn,{key:t,onClick:function(e){e.data;var d=e.event;e.triggerEvent;if(m(!1),"newFolder"===t)return r([]),void Swal.fire({title:wp.i18n.__("New Folder","integrate-google-drive"),text:wp.i18n.__("Enter new folder name","integrate-google-drive"),input:"text",inputValue:"",inputAttributes:{autocapitalize:"off"},showCancelButton:!1,confirmButtonText:wp.i18n.__("Create","integrate-google-drive"),showLoaderOnConfirm:!0,showCloseButton:!0,customClass:{container:"igd-swal"},preConfirm:function(e){return e?wp.ajax.post("igd_new_folder",{name:e,parent_id:l.id,account_id:l.accountId}).done((function(e){var t=[].concat(Ai(R),[e]);N(t),S((function(e){return ji(ji({},e),{},Ii({},l.id,t))})),Swal.close(),Swal.fire({title:"Created!",text:"Folder has been created.",icon:"success",showConfirmButton:!1,timer:2e3,timerProgressBar:!0,toast:!0})})).fail((function(e){Swal.fire({title:"Error!",text:e.message,icon:"error",showConfirmButton:!0,confirmButtonText:"OK",customClass:{container:"igd-swal"}})})):Swal.showValidationMessage(wp.i18n.__("Please enter a name","integrate-google-drive"))}});if("refresh"!==t)if("upload"!==t)if("edit"!==t)if("share"!==t)if("directLink"!==t)if("preview"!==t)if("drive"!==t)if("download"!==t)if("rename"!==t)if("move"!==t){var h,w;if("copy"!==t)return"import"===t?igd.isPro?void function(){var e=u?a.filter((function(e){return!b(e)})):[o].filter((function(e){return!b(e)}));Swal.fire({title:"Importing ".concat(e.length," files"),text:wp.i18n.__("Please wait...","integrate-google-drive"),icon:"info",showConfirmButton:!1,allowEscapeKey:!1,allowEnterKey:!1,allowOutsideClick:!1,customClass:{container:"igd-swal"},didOpen:function(){Swal.showLoading(),wp.ajax.send("igd_import_media",{data:{files:e},success:function(e){console.log(e)},error:function(e){console.log(e)},complete:function(){Swal.fire({title:wp.i18n.__("Imported!","integrate-google-drive"),text:wp.i18n.__("File(s) have been imported.","integrate-google-drive"),icon:"success",showConfirmButton:!1,timer:2e3,timerProgressBar:!0,toast:!0,customClass:{container:"igd-swal"}})}})}})}():void j(wp.i18n.__("Upgrade to PRO to import cloud files to the Media Library.","integrate-google-drive")):"delete"===t?(h=u?a.map((function(e){return e.id})):[o.id],w=u?a[0].accountId:o.accountId,void Swal.fire({title:wp.i18n.__("Are you sure?","integrate-google-drive"),text:wp.i18n.__("You won't be able to revert this!","integrate-google-drive"),icon:"warning",showCancelButton:!0,customClass:{container:"igd-swal"},confirmButtonText:wp.i18n.__("Yes, delete it!","integrate-google-drive"),cancelButtonText:wp.i18n.__("No, cancel!","integrate-google-drive"),reverseButtons:!0,showLoaderOnConfirm:!0,preConfirm:function(){return wp.ajax.post("igd_delete_files",{file_ids:h,account_id:w})}}).then((function(e){if(e.isConfirmed){s&&s.deleteNotification&&wp.ajax.post("igd_notification",{files:T(),notifications:s,type:"delete"});var t=R.filter((function(e){return!h.includes(e.id)}));N(t),S((function(e){return ji(ji({},e),{},Ii({},l.id,t))})),Swal.fire({title:wp.i18n.__("Deleted!","integrate-google-drive"),text:wp.i18n.sprintf(wp.i18n._n("File has been deleted.","%d files have been deleted.",a.length,"integrate-google-drive"),a.length),icon:"success",showConfirmButton:!1,timer:1500,timerProgressBar:!0,toast:!0,customClass:{container:"igd-swal"}})}}))):"view"===t?(p(!g),void function(e,t,n){var i=H(t,n);localStorage.setItem("igd_listing_view_".concat(i),e)}(g?"grid":"list",O,F)):"details"===t?(f(!0),void localStorage.setItem("igd_show_details",1)):void("selectAll"!==t||E((function(e){return!e})));Swal.fire({title:wp.i18n.__("Copy","integrate-google-drive"),text:wp.i18n.__("Select destination","integrate-google-drive"),html:'<div id="igd-copy"></div>',showCancelButton:!1,showConfirmButton:!1,showCloseButton:!0,customClass:{container:"igd-swal igd-copy-swal"},didOpen:function(e){ReactDOM.render(React.createElement(vi,{files:u?a:[o],allFiles:C,setAllFiles:S,activeAccount:n,initFolders:O}),document.getElementById("igd-copy"))},willClose:function(){ReactDOM.unmountComponentAtNode(document.getElementById("igd-copy"))}})}else Swal.fire({title:wp.i18n.__("Move","integrate-google-drive"),text:wp.i18n.__("Select destination","integrate-google-drive"),html:'<div id="igd-move"></div>',showCancelButton:!1,showConfirmButton:!1,showCloseButton:!0,customClass:{container:"igd-swal igd-move-swal"},didOpen:function(e){var t=document.getElementById("igd-move");ReactDOM.render(React.createElement(ii,{files:u?a:[o],setFiles:N,allFiles:C,setAllFiles:S,activeAccount:n,initFolders:O}),t)},willClose:function(){var e=document.getElementById("igd-move");ReactDOM.unmountComponentAtNode(e)}});else Swal.fire({title:wp.i18n.__("Rename","integrate-google-drive"),text:wp.i18n.__("Enter new name","integrate-google-drive"),input:"text",inputValue:o.name,inputAttributes:{autocapitalize:"off"},showCancelButton:!1,confirmButtonText:wp.i18n.__("Rename","integrate-google-drive"),showLoaderOnConfirm:!0,showCloseButton:!0,customClass:{container:"igd-swal"},preConfirm:function(e){return e?wp.ajax.post("igd_rename_file",{name:e,id:o.id,accountId:o.accountId}).done((function(){var t=R.map((function(t){return t.id===o.id?ji(ji({},t),{},{name:e}):t}));N(t),S((function(e){return ji(ji({},e),{},Ii({},l.id,t))})),Swal.close(),Swal.fire({title:wp.i18n.__("Renamed!","integrate-google-drive"),text:wp.i18n.__("File has been renamed.","integrate-google-drive"),icon:"success",showConfirmButton:!1,timer:2e3,timerProgressBar:!0,toast:!0,customClass:{container:"igd-swal"}})})).fail((function(e){Swal.fire({title:wp.i18n.__("Error!","integrate-google-drive"),text:e.message,icon:"error",showConfirmButton:!0,confirmButtonText:wp.i18n.__("OK","integrate-google-drive"),customClass:{container:"igd-swal"}})})):Swal.showValidationMessage(wp.i18n.__("Please enter a name","integrate-google-drive"))}});else{if(o&&o.exportAs&&Object.keys(o.exportAs).length)return;if(I||!o||b(o))if(1!==a.length||b(a[0]))!function(){var e=(new Date).getTime(),t=u?a.map((function(e){return e.id})):[o.id],n=u?a[0].accountId:o.accountId,i="".concat(igd.ajaxUrl,"?action=igd_download_zip&file_ids=").concat(B(JSON.stringify(t)),"&id=").concat(e,"&accountId=").concat(n);Swal.fire({title:wp.i18n.__("Download","integrate-google-drive"),html:'<div class="igd-download-wrap"><div id="igd-download-status"></div><div id="igd-download-progress"></div><iframe id="igd-hidden-download" class="igd-hidden" src="'.concat(i,'" ></iframe></div>'),showCancelButton:!1,showConfirmButton:!1,showCloseButton:!0,allowOutsideClick:!1,allowEscapeKey:!1,allowEnterKey:!1,customClass:{container:"igd-swal igd-download-popup"},didOpen:function(){Swal.showLoading();var t=jQuery("#igd-download-status"),n=jQuery("#igd-download-progress");window.downloadStatusInterval=setInterval((function(){wp.ajax.send("igd_download_status",{data:{id:e},success:function(e){if(!document.getElementById("igd-hidden-download"))return clearInterval(window.downloadStatusInterval),void Swal.close();if(!e)return clearInterval(window.downloadStatusInterval),Swal.close(),void Swal.fire({title:wp.i18n.__("Completed!","integrate-google-drive"),text:wp.i18n.__("Download completed","integrate-google-drive"),icon:"success",showConfirmButton:!1,toast:!0,timer:2e3,timerProgressBar:!0,customClass:{container:"igd-swal"}});var i=e.status,a=e.total,r=e.downloaded,o=e.action;"failed"===o?(clearInterval(window.downloadStatusInterval),Swal.close(),Swal.fire({title:wp.i18n.__("Error!","integrate-google-drive"),text:i,icon:"error",showConfirmButton:!0,confirmButtonText:wp.i18n.__("OK","integrate-google-drive"),customClass:{container:"igd-swal"}})):(t.html(i),"downloading"===o&&n.html("".concat(y(r)," of ").concat(y(a)," - ").concat(Math.round(r/a*100),"%")))},error:function(e){clearInterval(window.downloadStatusInterval),Swal.close(),Swal.fire({title:wp.i18n.__("Error!","integrate-google-drive"),text:e.message,icon:"error",showConfirmButton:!0,confirmButtonText:wp.i18n.__("OK","integrate-google-drive"),customClass:{container:"igd-swal"}})}})}),1e3)},willClose:function(){clearInterval(window.downloadStatusInterval)}})}();else{var _="".concat(igd.ajaxUrl,"?action=igd_download&id=").concat(a[0].id,"&accountId=").concat(a[0].accountId);window.location.href=_}else{var k="".concat(igd.ajaxUrl,"?action=igd_download&id=").concat(o.id,"&accountId=").concat(o.accountId);window.location.href=k}s&&s.downloadNotification&&wp.ajax.post("igd_notification",{files:T(),notifications:s,type:"download"})}else{var A=o||a[0];window.open(A.webViewLink,"_blank").focus()}else{var x=o||a[0];D(d,x.id,[x],c,s)}else U(!0);else U();else window.open(o.webViewLink,"_blank").focus();else v(!0);else i(l,"refresh")},data:{action:t},className:"context-menu-item ".concat(t," ").concat(["import"].includes(t)&&!igd.isPro?"disabled":"")},"createDoc"===t?React.createElement(Qn,{className:"context-submenu",label:React.createElement("div",{className:"context-submenu-label"},React.createElement("i",{className:"dashicons ".concat(h)}),React.createElement("span",null,d)),arrow:React.createElement("i",{className:"dashicons dashicons-arrow-right"})},W.map((function(e){var t=e.key,n=e.title,i=e.icon;return React.createElement(Wn,{key:t,onClick:function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"doc",t=wp.i18n.__("New Document","integrate-google-drive"),n=wp.i18n.__("Enter document name","integrate-google-drive");"sheet"===e?(t=wp.i18n.__("New Spreadsheet","integrate-google-drive"),n=wp.i18n.__("Enter spreadsheet name","integrate-google-drive")):"slide"===e&&(t=wp.i18n.__("New Presentation","integrate-google-drive"),n=wp.i18n.__("Enter presentation name","integrate-google-drive")),Swal.fire({title:t,text:n,input:"text",inputValue:"",inputAttributes:{autocapitalize:"off"},showCancelButton:!1,confirmButtonText:wp.i18n.__("Create","integrate-google-drive"),showLoaderOnConfirm:!0,showCloseButton:!0,customClass:{container:"igd-swal"},preConfirm:function(t){return t?wp.ajax.post("igd_create_doc",{name:t,type:e,folder_id:l.id,account_id:l.accountId}).done((function(t){var n=[].concat(Ai(R),[t]);N(n),S((function(e){return ji(ji({},e),{},Ii({},l.id,n))})),Swal.close();var i=wp.i18n.__("Document created","integrate-google-drive"),a=wp.i18n.__("Document created successfully","integrate-google-drive");"sheet"===e?(i=wp.i18n.__("Spreadsheet created","integrate-google-drive"),a=wp.i18n.__("Spreadsheet created successfully","integrate-google-drive")):"slide"===e&&(i=wp.i18n.__("Presentation created","integrate-google-drive"),a=wp.i18n.__("Presentation created successfully","integrate-google-drive")),Swal.fire({title:i,text:a,icon:"success",showConfirmButton:!1,timer:2e3,timerProgressBar:!0,toast:!0})})).fail((function(e){console.log(e),Swal.fire({title:wp.i18n.__("Error!","integrate-google-drive"),text:e.message,icon:"error",showConfirmButton:!0,confirmButtonText:wp.i18n.__("OK","integrate-google-drive"),customClass:{container:"igd-swal"}})})):Swal.showValidationMessage(wp.i18n.__("Please enter a name","integrate-google-drive"))}})}(t)},className:"context-menu-item ".concat(t)},React.createElement("i",{className:"dashicons ".concat(i)}),React.createElement("span",null,n))}))):"download"===t&&o&&o.exportAs&&Object.keys(o.exportAs).length?React.createElement(Qn,{className:"context-submenu",label:React.createElement("div",{className:"context-submenu-label"},React.createElement("i",{className:"dashicons ".concat(h)}),React.createElement("span",null,wp.i18n.__("Download as","integrate-google-drive"))),arrow:React.createElement("i",{className:"dashicons dashicons-arrow-right"})},Object.keys(o.exportAs).map((function(e){return React.createElement(Wn,{key:e,className:"context-menu-item ".concat(e),onClick:function(){return function(e){var t=o.exportAs[e].mimetype;window.location.href="".concat(igd.ajaxUrl,"?action=igd_download&id=").concat(o.id,"&accountId=").concat(o.accountId,"&mimetype=").concat(t)}(e)}},React.createElement("i",{className:"dashicons dashicons-media-text"}),React.createElement("span",null,e))}))):React.createElement(React.Fragment,null,React.createElement("i",{className:"dashicons ".concat(h)}),React.createElement("span",null,d),["import"].includes(t)&&!igd.isPro&&React.createElement("div",{className:"pro-badge"},React.createElement("i",{className:"dashicons dashicons-lock"}),React.createElement("span",null,wp.i18n.__("PRO","integrate-google-drive")))))}))))}function Bi(){return React.createElement("div",{className:"no-account-placeholder"},React.createElement("img",{src:"".concat(igd.pluginUrl,"/assets/images/file-browser/no-account-placeholder.svg"),alt:"No Accounts"}),React.createElement("span",{className:"placeholder-heading"},wp.i18n.__("You didn't link any account yet.","integrate-google-drive")),React.createElement("span",{className:"placeholder-description"},wp.i18n.__("Please link to a Google Drive account to continue.","integrate-google-drive")),React.createElement("button",{className:"igd-btn add-account-btn",onClick:function(){igd.authUrl?M():window.location=igd.adminUrl+"/admin.php?page=integrate-google-drive-settings&tab=accounts"}},React.createElement("img",{src:"".concat(igd.pluginUrl,"/assets/images/google-icon.png")}),React.createElement("span",null,wp.i18n.__("Sign in with Google","integrate-google-drive"))))}function Ui(e){return Ui="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ui(e)}function Li(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Mi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Li(Object(n),!0).forEach((function(t){Hi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Li(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function zi(e){return function(e){if(Array.isArray(e))return Qi(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Wi(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Hi(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Ui(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==Ui(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Ui(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ki(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,a,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=r.call(n)).done)&&(l.push(i.value),l.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw a}}return l}}(e,t)||Wi(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Wi(e,t){if(e){if("string"==typeof e)return Qi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qi(e,t):void 0}}function Qi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var Vi=React,qi=Vi.useState,Gi=Vi.useEffect,Yi=Vi.useMemo,Ji=Vi.useRef,Xi=igd.settings.rememberLastFolder,Zi=void 0===Xi||Xi;function $i(e){var t=e.shortcodeId,n=e.initParentFolder,a=e.isShortcodeBuilder,r=e.selectedFolders,o=e.setSelectedFolders,l=e.allFolders,c=e.privateFolders,s=e.initFolders,d=e.filters,u=e.shortcodeBuilderType,m=e.isList,g=e.showLastModified,p=void 0===g?!u:g,f=e.showFileSizeField,v=void 0===f||f,h=e.fileNumbers,w=e.sort,y=e.permissions,_=e.notifications,R=e.showHeader,C=void 0===R?a||!u:R,F=e.showRefresh,A=void 0===F||F,x=e.showSorting,P=void 0===x||x,j=e.showBreadcrumbs,D=void 0===j||j,T=e.galleryLayout,B=e.galleryAspectRatio,U=e.galleryColumns,L=e.galleryHeight,M=e.galleryMargin,Q=e.galleryView,V=e.galleryFolderView,q=e.thumbnailCaption,Y=e.galleryOverlay,J=e.galleryOverlayTitle,X=e.galleryOverlayDescription,Z=e.galleryOverlaySize,$=e.galleryImageSize,ee=e.galleryCustomSizeWidth,te=e.galleryCustomSizeHeight,ne=e.isSelectFiles,ie=e.selectionType,ae=e.initialSearchTerm,re=e.isLMS,oe=e.isWooCommerce,le=e.lazyLoad,ce=void 0===le||le,se=e.lazyLoadNumber,de=void 0===se?100:se,ue=e.account,me=void 0===ue?igd.activeAccount:ue;!s&&igd.userAccessData&&(n=igd.userAccessData.initParentFolder,s=igd.userAccessData.initFolders);var ge=null;Zi&&(ge=function(e,t){var n=null,i=document.body.classList.contains("elementor-editor-active"),a=document.body.classList.contains("et-fb"),r=document.body.classList.contains("block-editor-page");if(i||a||r)return n;var o=z(e,t),l=sessionStorage.getItem(o);return l&&(n=JSON.parse(l)).id===(null==t?void 0:t.id)&&(n=null),n}(s,n));var fe,ve="search"===u&&!a,he="gallery"===u,we="media"===u,ye="uploader"===u,be=Ki(qi(me),2),_e=be[0],Ee=be[1],Ne=Ki(qi(!ve&&s?s:[]),2),Se=Ne[0],Ce=Ne[1],Oe=[];!ve&&s&&(Oe=Hi({},(null===(fe=n)||void 0===fe?void 0:fe.id)||"",s));var ke=Ki(qi(Oe),2),Fe=ke[0],Ae=ke[1],xe=Ki(qi([]),2),Pe=xe[0],je=xe[1],Ie=Ki(qi(null),2),De=Ie[0],Te=Ie[1],Be=Ki(qi(!s&&!n&&!ve),2),Ue=Be[0],Le=Be[1],Me=Ki(qi({}),2),ze=Me[0],He=Me[1],Ke=Ki(qi(!1),2),We=Ke[0],Qe=Ke[1],Ve=Ki(qi(!1),2),qe=Ve[0],Ge=Ve[1],Ye=Ki(qi(window.innerWidth<=768),2),Je=Ye[0],Xe=Ye[1],Ze=Ki(qi(!Je&&!a&&!s),2),$e=Ze[0],et=Ze[1],tt=Ki(qi(!1),2),nt=tt[0],it=tt[1],at=Ki(qi(!1),2),rt=at[0],ot=at[1],lt=Ji(ae),ct=Ki(qi(ae),2),st=ct[0],dt=ct[1],ut=!Je&&"1"==localStorage.getItem("igd_show_details")&&!s,mt=Ki(qi(ut),2),gt=mt[0],pt=mt[1],ft=null;s?n&&(ft=n):ft=E(_e.root_id,_e),ge&&(ft=ge);var vt=Ki(qi(ft),2),ht=vt[0],wt=vt[1],yt=localStorage.getItem("igd_sort")?JSON.parse(localStorage.getItem("igd_sort")):{sortBy:"name",sortDirection:"asc"},bt=Ki(qi(null!=w?w:yt),2),_t=bt[0],Et=bt[1],Rt=function(e,t){var n=H(e,t);return localStorage.getItem("igd_listing_view_".concat(n))}(s,n);Rt&&(m="list"===Rt);var Nt=Ki(qi(m),2),St=Nt[0],Ct=Nt[1],Ot=I();Gi((function(){Object.keys(igd.accounts).length&&(y&&y.allowSearch&&ae?jt(ae):ve&&!a||(s||n?Zi&&ge&&xt(ge,"last"):xt()))}),[]),Gi((function(){if(Ot){Le("switch"),Ae({});var e={id:_e.root_id,accountId:_e.id,name:wp.i18n.__("My Drive","integrate-google-drive")};igd.activeAccount=_e,wp.ajax.post("igd_switch_account",{id:_e.id}).done((function(){xt(e,"switch")})).fail((function(e){console.log(e)}))}}),[_e]),Gi((function(){Ot&&(localStorage.setItem("igd_sort",JSON.stringify(_t)),xt(ht,"sort"))}),[_t]),Gi((function(){var e=function(){Xe(window.innerWidth<768)};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[]),Gi((function(){Ot&&n.id&&n.id!==(null==ht?void 0:ht.id)&&Pt(n)}),[n]);var kt=Ki(qi(!1),2),Ft=kt[0],At=kt[1];function xt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(Te(null),je([]),Qe(!1),Le(t||!0),s){if(!e)return Le(!1),wt(null),void Ce(s);c?e.isPrivate=!0:ve&&(e.folders=s)}else e||ge&&ge.accountId===_e.id&&(e=ge),e||(e=a?{id:_e.root_id,accountId:_e.id}:E(_e.root_id,_e));"lazy"!==t&&(e.pageNumber=1),wp.ajax.post("igd_get_files",{data:{folder:e,sort:_t,refresh:"refresh"===t,from_server:a||!!s&&!!n&&n.id===e.id,fileNumbers:h,limit:ce?de:0,filters:d}}).done((function(i){var a=i.files,r=void 0===a?[]:a,o=i.breadcrumbs,l=i.error,c=i.nextPageNumber,d=void 0===c?0:c;if(l)"refresh"!==t&&Swal.fire({html:l,icon:"error",confirmButtonText:wp.i18n.__("Ok","integrate-google-drive"),customClass:{container:"igd-swal"}});else{r.length&&Zi&&K(e,s,n),!r.length&&Zi&&W(s,n),"lazy"===t&&ht&&ht.id===e.id&&(r=[].concat(zi(Se),zi(r))),ye&&(r=r.filter((function(e){return b(e)}))),we&&(r=r.filter((function(e){return N(e)||b(e)}))),re&&(r=r.filter((function(e){return S(e)||b(e)}))),he&&(r=r.filter((function(e){return O(e)||S(e)||b(e)}))),Ce(r);var u=Mi(Mi({},e),{},{pageNumber:d});Ae((function(t){return Mi(Mi({},t),{},Hi({},e.id,[].concat(zi(r),[u])))})),wt(u),o&&He(o)}})).fail((function(t){console.log(t),wt(Mi(Mi({},e),{},{pageNumber:0})),Swal.fire({title:wp.i18n.__("Error!","integrate-google-drive"),text:wp.i18n.__("Something went wrong! Please try again later.","integrate-google-drive"),icon:"error",confirmButtonText:wp.i18n.__("Ok","integrate-google-drive"),customClass:{container:"igd-swal"}})})).always((function(){return Le(!1)}))}function Pt(e){var t=e.id;if(Te(null),je([]),Qe(!1),Fe[t]){var i=Fe[t];e=i.find((function(t){return t.id===e.id}))||e,wt(e),Ce(i.filter((function(e){return e.id!==t}))),Zi&&K(ht,s,n),He(function e(t){if(k(t,_e)){var n=E(t,_e);return Hi({},t,n.name)}var a=Object.keys(ze),r=i.find((function(e){return e.id===t}));if(r){var o=Hi({},t,r.name),l=r.parents||[];return!l.length||s&&s.find((function(e){return e.id===t}))?o:Mi(Mi({},e(l[0])),o)}if(a.includes(t)){var c=a.indexOf(t);return Object.fromEntries(a.slice(0,c+1).map((function(e){return[e,ze[e]]})))}return{}}(t))}else xt(e);!s&&igd.showReviewPopup&&setTimeout((function(){!function(){G.apply(this,arguments)}()}),5e3)}function jt(e){Qe(!0),lt.current=e;var t=ht?[ht]:s;Le(!0),Te(null),je([]),Ge(!1),wp.ajax.post("igd_search_files",{folders:t,sort:_t,fileNumbers:h,keyword:e,accountId:_e.id,isPrivate:c,fullTextSearch:null==y?void 0:y.fullTextSearch,filters:d}).done((function(t){var n=t.files,i=t.error;if(i)Swal.fire({html:i,icon:"error",confirmButtonText:wp.i18n.__("Ok","integrate-google-drive"),customClass:{container:"igd-swal"}});else{if(s){var a=s.filter((function(t){return t.name.toLowerCase().includes(e.toLowerCase())}));n=[].concat(zi(a),zi(n))}we&&(n=n.filter((function(e){return N(e)||b(e)}))),re&&(n=n.filter((function(e){return S(e)||b(e)}))),he&&(n=n.filter((function(e){return O(e)||S(e)||b(e)})));var r=new Set;n=n.filter((function(e){return!r.has(e.id)&&(r.add(e.id),!0)})),Ce(n)}})).fail((function(e){console.log(e),Swal.fire({title:wp.i18n.__("Error!","integrate-google-drive"),text:wp.i18n.__("Something went wrong! Please try again later.","integrate-google-drive"),icon:"error",confirmButtonText:"Ok",customClass:{container:"igd-swal"}})})).always((function(){Le(!1)})),_&&_.searchNotification&&wp.ajax.post("igd_notification",{files:t,keyword:e,notifications:_,type:"search"})}Gi((function(){!Ft||(null==ht?void 0:ht.pageNumber)>1||(console.log("Refresh files on image load fail"),xt(ht,"refresh"))}),[Ft]),Gi((function(){if(s&&ze){var e=Object.keys(ze),t=ht&&ht.id?ht.id:ht,i=!!e&&e.findIndex((function(e){return e===t}));if(n&&(e.find((function(e){return e===n.id}))&&delete ze[n.id],e[e.length-1]===n.id&&He({})),-1!==i)for(var a=function(t){if(s.find((function(n){return n.id===e[t]})))return"break";delete ze[e[t]]},r=0;r<i;r++){if("break"===a(r))break}}}),[ze]),Gi((function(){if(Ot)if(a){var e;if(rt){var t=[].concat(zi(r),zi(Se)),n=new Set;e=t.filter((function(e){return!n.has(e.id)&&(n.add(e.id),!0)}))}else e=r.filter((function(e){return!Se.some((function(t){return t.id===e.id}))}));o(e)}else he||a||je(rt?Se:[])}),[rt]),Gi((function(){Ot&&(ot(!1),je([]),Qe(!1))}),[ht]);var It,Dt=Yi((function(){return"igd-context-menu-".concat(Date.now())}),[]),Tt=(It={id:Dt},{show:function(e,t){In.show({id:(null==t?void 0:t.id)||(null==It?void 0:It.id),props:(null==t?void 0:t.props)||(null==It?void 0:It.props),event:e,position:null==t?void 0:t.position})},hideAll:function(){In.hideAll()}}),Bt=Tt.show,Ut=Tt.hideAll;return Gi((function(){var e=function(){ReactTooltip.hide(),Ut()},t=document.querySelector(".igd-shortcode-builder-form");return t&&t.addEventListener("scroll",e),function(){t&&t.removeEventListener("scroll",e)}}),[]),Object.keys(igd.accounts).length?React.createElement(i,{value:{shortcodeId:t,activeAccount:_e,activeFiles:Pe,setActiveFiles:je,activeFile:De,setActiveFile:Te,activeFolder:ht,permissions:y,notifications:_,shortcodeBuilderType:u,isList:St,setIsList:Ct,setShowDetails:pt,setIsUpload:Ge,getFiles:xt,isShortcodeBuilder:a,isMobile:Je,setActiveAccount:Ee,allFolders:l,initFolders:s,isSearch:ve,setShowSidebar:et,sort:_t,setSort:Et,setFiles:Ce,setAllFiles:Ae,breadcrumbs:ze,setActiveFolder:wt,isSearchResults:We,setIsSearchResults:Qe,isOptions:nt,setIsOptions:it,listFiles:Pt,showBreadcrumbs:D,showRefresh:A,showSorting:P,initParentFolder:n,isUpload:qe,isLoading:Ue,files:Se,allFiles:Fe,selectedFolders:r,setSelectedFolders:o,filters:d,showLastModified:p,showFileSizeField:v,setShouldRefresh:At,galleryLayout:T,galleryAspectRatio:B,galleryColumns:U,galleryHeight:L,galleryMargin:M,galleryView:Q,galleryFolderView:V,thumbnailCaption:q,galleryOverlay:Y,galleryOverlayTitle:J,galleryOverlayDescription:X,galleryOverlaySize:Z,galleryImageSize:$,galleryCustomSizeWidth:ee,galleryCustomSizeHeight:te,show:Bt,hideAll:Ut,contextMenuId:Dt,isSelectFiles:ne,selectionType:ie,selectAll:rt,setSelectAll:ot,searchFiles:jt,initialSearchTerm:ae,searchKeywordRef:lt,searchKeyword:st,setSearchKeyword:dt,isLMS:re,isWooCommerce:oe,lazyLoad:ce,lazyLoadNumber:de}},React.createElement("div",{className:"igd-file-browser"},React.createElement(Ti,null),(C&&!ve||ve&&We)&&React.createElement(pe,null),React.createElement("div",{className:"igd-file-browser-body"},$e&&React.createElement(Re,null),React.createElement(sn,null),!a&&gt&&React.createElement(En,null)))):React.createElement(Bi,null)}Zi=Zi||igd.isAdmin;var ea=React.createContext();const ta=ea;var na=ea.Provider,ia=React,aa=ia.useRef,ra=ia.useEffect;function oa(e){var t=e.file,n=e.isPlaying,i=e.playNext,a=e.playPrev,r=e.handleDownload,o=e.nextPrevious,l=e.rewindForward,c=e.download,s=e.playableItems,d=e.playlistAutoplay,u=e.showPlaylist,m=e.isLoop,g=e.isOpenPlaylist,p=e.setIsOpenPlaylist,f=e.isShuffle,v=e.setIsLoop,h=e.setIsShuffle,w=aa(null),y=aa(null),b=t||{},_=b.id,E=b.accountId,R=t&&C(t),N="".concat(igd.ajaxUrl,"?action=igd_stream&id=").concat(_,"&accountId=").concat(E),S=t&&P(t,"large"),O={controls:["play-large",!!l&&"rewind","play",!!l&&"fast-forward","current-time","progress","duration","mute","volume","captions","settings","pip","airplay","fullscreen"],settings:["speed","loop","shuffle","playlist"],speed:{selected:1,options:[.5,.75,1,1.25,1.5,2]},i18n:{shuffle:wp.i18n.__("Shuffle","integrate-google-drive"),loop:wp.i18n.__("Loop","integrate-google-drive"),playlist:wp.i18n.__("Playlist","integrate-google-drive")},keyboard:{focused:!0,global:!0},disableContextMenu:!c};ra((function(){var e=jQuery,t=w.current,n=t.querySelector("video, audio");if(y.current=new Plyr(n,O),o&&s.length>1&&!e(t).find('[data-plyr="prev"]').length){var b=e('<button type="button" class="plyr__controls__item plyr__control" aria-label="Previous" data-plyr="prev"><svg width="18" height="18" fill="currentColor" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M64 468V44c0-6.6 5.4-12 12-12h48c6.6 0 12 5.4 12 12v176.4l195.5-181C352.1 22.3 384 36.6 384 64v384c0 27.4-31.9 41.7-52.5 24.6L136 292.7V468c0 6.6-5.4 12-12 12H76c-6.6 0-12-5.4-12-12z"/></svg></button>').on("click",(function(){return a()})),_=e('<button type="button"  class="plyr__controls__item plyr__control" aria-label="Next" data-plyr="next" tabindex="0"><svg width="18" height="18" fill="currentColor" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M384 44v424c0 6.6-5.4 12-12 12h-48c-6.6 0-12-5.4-12-12V291.6l-195.5 181C95.9 489.7 64 475.4 64 448V64c0-27.4 31.9-41.7 52.5-24.6L312 219.3V44c0-6.6 5.4-12 12-12h48c6.6 0 12 5.4 12 12z"/></svg></button>').on("click",(function(){return i()})),E=e(t).find('.plyr__controls [data-plyr="play"]'),R=e(t).find('.plyr__controls [data-plyr="play"]');l&&(E=e(t).find('.plyr__controls [data-plyr="rewind"]'),R=e(t).find('.plyr__controls [data-plyr="fast-forward"]')),b.insertBefore(E),_.insertAfter(R)}var N=e(t).find('.plyr__menu__container > div > div:first-child [role="menu"]'),S=N.parent().attr("id").match(/(\d+)/)[0];if(!e(t).find('[data-plyr-menu="loop"]').length){var C=e('<button data-plyr="settings" type="button" class="plyr__control plyr__control--forward" role="menuitem" data-plyr-menu="loop" aria-haspopup="true"><span> '.concat(wp.i18n.__("Loop","integrate-google-drive"),'  <span class="plyr__menu__value">').concat(m?wp.i18n.__("Enable","integrate-google-drive"):wp.i18n.__("Disable","integrate-google-drive"),"</span> </span></button>")).on("click",(function(){e("#plyr-settings-".concat(S,"-home")).prop("hidden",!0),e("#plyr-settings-".concat(S,"-loop")).prop("hidden",!1)}));N.append(C);var k=e('<button data-plyr="loop" type="button" role="menuitemradio" class="plyr__control" aria-checked="'.concat(m?"true":"false",'" value="enable"><span>').concat(wp.i18n.__("Enable","integrate-google-drive"),"</span></button>")).on("click",(function(){v(!0),e(".plyr__control.plyr__control--back").click(),C.find(".plyr__menu__value").text(wp.i18n.__("Enable","integrate-google-drive")),e(this).attr("aria-checked","true"),e(this).siblings().attr("aria-checked","false")})),F=e('<button data-plyr="loop" type="button" role="menuitemradio" class="plyr__control" aria-checked="'.concat(m?"false":"true",'" value="disable"><span>').concat(wp.i18n.__("Disable","integrate-google-drive"),"</span></button>")).on("click",(function(){v(!1),e(".plyr__control.plyr__control--back").click(),C.find(".plyr__menu__value").text(wp.i18n.__("Disable","integrate-google-drive")),e(this).attr("aria-checked","true"),e(this).siblings().attr("aria-checked","false")}));e("#plyr-settings-".concat(S,'-loop [role="menu"]')).append(k).append(F)}if(!e(t).find('[data-plyr-menu="shuffle"]').length){var A=e('<button data-plyr="settings" type="button" class="plyr__control plyr__control--forward" role="menuitem" data-plyr-menu="shuffle" aria-haspopup="true"><span> '.concat(wp.i18n.__("Shuffle","integrate-google-drive"),' <span class="plyr__menu__value">').concat(f?wp.i18n.__("Enable","integrate-google-drive"):wp.i18n.__("Disable","integrate-google-drive"),"</span> </span></button>")).on("click",(function(){e("#plyr-settings-".concat(S,"-home")).prop("hidden",!0),e("#plyr-settings-".concat(S,"-shuffle")).prop("hidden",!1)}));N.append(A);var x=e('<button data-plyr="loop" type="button" role="menuitemradio" class="plyr__control" aria-checked="'.concat(f?"true":"false",'" value="enable"><span>').concat(wp.i18n.__("Enable","integrate-google-drive"),"</span></button>")).on("click",(function(){h(!0),e(".plyr__control.plyr__control--back").click(),A.find(".plyr__menu__value").text(wp.i18n.__("Enable","integrate-google-drive")),e(this).attr("aria-checked","true"),e(this).siblings().attr("aria-checked","false")})),P=e('<button data-plyr="loop" type="button" role="menuitemradio" class="plyr__control" aria-checked="'.concat(f?"false":"true",'" value="disable"><span>').concat(wp.i18n.__("Disable","integrate-google-drive"),"</span></button>")).on("click",(function(){h(!1),e(".plyr__control.plyr__control--back").click(),A.find(".plyr__menu__value").text(wp.i18n.__("Disable","integrate-google-drive")),e(this).attr("aria-checked","true"),e(this).siblings().attr("aria-checked","false")}));e("#plyr-settings-".concat(S,'-shuffle [role="menu"]')).append(x).append(P)}if(u&&!e(t).find('[data-plyr-menu="playlist"]').length){var j=e('<button data-plyr="settings" type="button" class="plyr__control plyr__control--forward" role="menuitem" data-plyr-menu="playlist" aria-haspopup="true"><span> '.concat(wp.i18n.__("Playlist","integrate-google-drive"),' <span class="plyr__menu__value">').concat(g?wp.i18n.__("Show","integrate-google-drive"):wp.i18n.__("Hide","integrate-google-drive"),"</span> </span> </span></button>")).on("click",(function(){e("#plyr-settings-".concat(S,"-home")).prop("hidden",!0),e("#plyr-settings-".concat(S,"-playlist")).prop("hidden",!1)}));N.append(j);var I=e('<button data-plyr="loop" type="button" role="menuitemradio" class="plyr__control" aria-checked="'.concat(g?"true":"false",'" value="enable"><span>').concat(wp.i18n.__("Show","integrate-google-drive"),"</span></button>")).on("click",(function(){e(t).find('.plyr__controls__item > [data-plyr="settings"]').click(),p(!0),j.find(".plyr__menu__value").text(wp.i18n.__("Show","integrate-google-drive")),e(this).attr("aria-checked","true"),e(this).siblings().attr("aria-checked","false")})),D=e('<button data-plyr="loop" type="button" role="menuitemradio" class="plyr__control" aria-checked="'.concat(g?"false":"true",'" value="disable"><span>').concat(wp.i18n.__("Hide","integrate-google-drive"),"</span></button>")).on("click",(function(){e(t).find('.plyr__controls__item > [data-plyr="settings"]').click(),p(!1),j.find(".plyr__menu__value").text(wp.i18n.__("Hide","integrate-google-drive")),e(this).attr("aria-checked","true"),e(this).siblings().attr("aria-checked","false")}));e("#plyr-settings-".concat(S,'-playlist [role="menu"]')).append(I).append(D)}if(c&&!e(t).find('[data-plyr-menu="download"]').length){var T=e('<button data-plyr="settings" type="button" class="plyr__control" role="menuitem" data-plyr-menu="download" aria-haspopup="true"><span> '.concat(wp.i18n.__("Download","integrate-google-drive")," </span></button>")).on("click",(function(){e(t).find('.plyr__controls__item > [data-plyr="settings"]').click(),r()}));N.append(T)}return y.current.on("ended",(function(){(m||d)&&i(!0)})),function(){y.current.destroy()}}),[t]);var k=I();ra((function(){k&&y.current&&(n?y.current.play():y.current.pause())}),[n,y.current]);var F=R?'<audio src="'.concat(N,'" controls preload="auto"></audio>'):'<video class="igd-player-media-video" src="'.concat(N,'" width="100%" height="100%" controls  poster=').concat(S,' preload="auto" ></video>');return React.createElement("div",{className:"igd-player-media-wrap",ref:w,dangerouslySetInnerHTML:{__html:F}})}function la(e){var t=e.files,n=e.searchKeywordRef,i=t.length?t.length:wp.i18n.__("No","integrate-google-drive"),a=wp.i18n.sprintf(wp.i18n.__('Search results for "%s": %s items found.',"integrate-google-drive"),"<strong>".concat(n.current,"</strong>"),i);return React.createElement("div",{className:"search-result-info"},React.createElement("span",{dangerouslySetInnerHTML:{__html:a}}),React.createElement("button",{onClick:function(e){document.querySelector(".search-dismiss").click()},className:"clear-button igd-btn btn-warning"},wp.i18n.__("Clear","integrate-google-drive")))}function ca(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,a,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=r.call(n)).done)&&(l.push(i.value),l.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw a}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return sa(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sa(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function sa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var da=React,ua=da.useState,ma=da.useRef,ga=da.useEffect;da.useContext;function pa(e){var t=e.initFolders,n=e.initParentFolder,i=e.sort,a=e.filters,r=e.privateFolders,o=e.setFiles,l=e.fullTextSearch,c=e.initialSearchTerm,s=e.isSearchResults,d=e.setIsSearchResults,u=e.searchKeywordRef,m=e.notifications,g=e.isLoading,p=e.setIsLoading,f=ca(ua(c),2),v=f[0],h=f[1],w=ma(null),y=ca(ua(!1),2),_=y[0],E=y[1],R=ma(),S=ca(ua(!!c),2),C=S[0],O=S[1],k=function(e){var c;p(!0),d(!0),u.current=e;var s=n?[n]:t;wp.ajax.post("igd_search_files",{folders:s,sort:i,keyword:e,accountId:null===(c=s[0])||void 0===c?void 0:c.accountId,isPrivate:r,fullTextSearch:l,filters:a}).done((function(e){var t=e.files,n=e.error;n?Swal.fire({html:n,icon:"error",confirmButtonText:wp.i18n.__("Ok","integrate-google-drive"),customClass:{container:"igd-swal"}}):(t=t.filter((function(e){return b(e)||N(e)})),o(t))})).fail((function(e){console.log(e),Swal.fire({title:wp.i18n.__("Error!","integrate-google-drive"),text:wp.i18n.__("Something went wrong! Please try again later.","integrate-google-drive"),icon:"error",confirmButtonText:"Ok",customClass:{container:"igd-swal"}})})).always((function(){p(!1)})),m&&m.searchNotification&&wp.ajax.post("igd_notification",{files:s,keyword:e,notifications:m,type:"search"})},F=function(e){if(e&&e.preventDefault(),E(!1),!v)return Swal.fire({title:wp.i18n.__("Error","integrate-google-drive"),text:wp.i18n.__("Please enter a keyword to search","integrate-google-drive"),icon:"error",confirmButtonText:"Ok",customClass:{container:"igd-swal"}}),void E(!0);k(v)},A=I();return ga((function(){if(A&&v&&!(v.length<4))return w.current=setTimeout((function(){F()}),2e3),function(){clearTimeout(w.current)}}),[v]),ga((function(){R.current.addEventListener("keydown",(function(e){" "===e.key&&e.stopPropagation()}),!0),c&&k(c)}),[]),React.createElement("form",{ref:R,className:"playlist-search ".concat(C?"active":""," ").concat(_?"error":""),onSubmit:F},g&&React.createElement("div",{className:"igd-spinner"}),s&&!g&&React.createElement("div",{className:"search-dismiss",onClick:function(){O(!C),h(""),E(!1),d(!1),o(t)}},React.createElement("svg",{width:"14",height:"14",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M1.5 1.5L10.5 10.5M1.5 10.5L10.5 1.5L1.5 10.5Z",stroke:"#BABABA",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),React.createElement("input",{type:"text",placeholder:wp.i18n.__("Enter a keyword to search in the playlist","integrate-google-drive"),value:v,onChange:function(e){h(e.target.value)}}),React.createElement("div",{className:"search-submit",onClick:function(){var e;C?F():(O(!0),null===(e=R.current)||void 0===e||e.querySelector("input").focus())}},React.createElement("svg",{width:"18",height:"18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},React.createElement("path",{d:"M508.5 468.9L387.1 347.5c-2.3-2.3-5.3-3.5-8.5-3.5h-13.2c31.5-36.5 50.6-84 50.6-136C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c52 0 99.5-19.1 136-50.6v13.2c0 3.2 1.3 6.2 3.5 8.5l121.4 121.4c4.7 4.7 12.3 4.7 17 0l22.6-22.6c4.7-4.7 4.7-12.3 0-17zM208 368c-88.4 0-160-71.6-160-160S119.6 48 208 48s160 71.6 160 160-71.6 160-160 160z"})),React.createElement(ReactTooltip,{id:"search",place:"bottom",effect:"solid",className:"igd-tooltip"})))}function fa(e){return function(e){if(Array.isArray(e))return wa(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ha(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function va(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,a,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=r.call(n)).done)&&(l.push(i.value),l.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw a}}return l}}(e,t)||ha(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ha(e,t){if(e){if("string"==typeof e)return wa(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?wa(e,t):void 0}}function wa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var ya=React.useState;function ba(e){var t=e.file,n=e.files,i=e.setFile,a=e.folderFiles,r=e.getFolderFiles,o=e.isSub,l=e.isPlaying,c=e.setIsPlaying,s=e.download,d=e.activeFolder,u=e.setActiveFolder,m=e.playlistThumbnail,g=e.playlistNumber,p=e.allowSearch,f=e.initParentFolder,v=e.initFolders,h=e.filters,w=e.privateFolders,_=e.fullTextSearch,E=e.initialSearchTerm,R=e.sort,C=e.setFiles,O=e.isSearchResults,k=e.setIsSearchResults,F=e.searchKeywordRef,A=e.notifications,x=va(ya([]),2),j=x[0],I=x[1],D=va(ya(!1),2),T=D[0],B=D[1];return React.createElement("div",{className:o?"sub-item":"igd-player-playlist"},!o&&p&&React.createElement(React.Fragment,null,React.createElement(pa,{initFolders:v,initParentFolder:f,filters:h,sort:R,privateFolders:w,setFiles:C,fullTextSearch:_,initialSearchTerm:E,isSearchResults:O,setIsSearchResults:k,searchKeywordRef:F,isLoading:T,setIsLoading:B,notifications:A}),O&&!T&&React.createElement(la,{files:n,searchKeywordRef:F})),n.length>0&&n.map((function(e,n){var o=e.id,x=e.name,D=e.size,T=P(e,"custom",{w:64,h:64}),B=b(e);if(B||N(e)){var U=o===d,L=(null==t?void 0:t.id)===o,M=j.find((function(t){return t.id===e.id}));return React.createElement("div",{key:o,className:"playlist-item-wrap"},React.createElement("div",{className:"playlist-item ".concat(L?"active":""),onClick:function(n){if(n.stopPropagation(),B){if(u(!U&&o),I(M?function(t){return t.filter((function(t){return t.id!==e.id}))}:function(t){return[].concat(fa(t),[e])}),M||a&&a[e.id])return;r(e)}else if(t&&t.id===o)c(!l||"pause"===l);else if(c(!0),i(e),S(e)){var s=n.target.closest(".igd-player");s&&(s.classList.contains("playlist-bottom")||window.innerWidth<768)&&s.scrollIntoView({behavior:"smooth"})}}},g&&React.createElement("span",{className:"item-index"},String(n+1).padStart(2,"0"),"."),B&&(!U||!!a[o])&&React.createElement("span",{className:"dashicons ".concat(M?"dashicons-arrow-down":"dashicons-arrow-right")}),U&&!a[o]&&React.createElement("div",{className:"igd-spinner"}),m&&React.createElement("img",{src:T,alt:x}),React.createElement("span",{className:"item-name"},x),!B&&s&&!!D&&React.createElement("span",{className:"item-size"},y(D)),!B&&L&&l&&"pause"!==l&&React.createElement("span",{className:"dashicons dashicons-controls-pause"}),!B&&(!L||!l||"pause"===l)&&React.createElement("span",{className:"dashicons dashicons-controls-play"})),M&&!!a[o]&&React.createElement(ba,{isSub:!0,files:a[o],file:t,setFile:i,folderFiles:a,getFolderFiles:r,isPlaying:l,setIsPlaying:c,download:s,activeFolder:d,setActiveFolder:u,playlistThumbnail:m,playlistNumber:g,allowSearch:p,initParentFolder:f,initFolders:v,filters:h,privateFolders:w,fullTextSearch:_,initialSearchTerm:E,sort:R,setFiles:C,isSearchResults:O,setIsSearchResults:k,searchKeywordRef:F,notifications:A}))}})))}function _a(e){return _a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_a(e)}function Ea(e){return function(e){if(Array.isArray(e))return ka(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Oa(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ra(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Na(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ra(Object(n),!0).forEach((function(t){Sa(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ra(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Sa(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==_a(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==_a(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===_a(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ca(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,a,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=r.call(n)).done)&&(l.push(i.value),l.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw a}}return l}}(e,t)||Oa(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Oa(e,t){if(e){if("string"==typeof e)return ka(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ka(e,t):void 0}}function ka(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var Fa=React,Aa=Fa.useRef,xa=Fa.useEffect,Pa=Fa.useState;const ja=function(e){var t=e.initFolders,n=void 0===t?[]:t,i=e.nextPrevious,a=e.rewindForward,r=e.allowEmbedPlayer,o=e.download,l=e.sort,c=e.allowSearch,s=e.initParentFolder,d=e.filters,u=e.privateFolders,m=e.fullTextSearch,g=void 0===m||m,p=e.initialSearchTerm,f=e.showPlaylist,v=void 0===f||f,h=e.openedPlaylist,w=void 0===h||h,y=e.playlistPosition,_=void 0===y?"bottom":y,E=e.notifications,R=e.playlistThumbnail,O=e.playlistAutoplay,k=e.playlistNumber,F=Ca(Pa(n),2),A=F[0],x=F[1],j=Ca(Pa(n.filter((function(e){return N(e)}))),2),D=j[0],T=j[1],B=Ca(Pa(D.length?D[0]:null),2),U=B[0],L=B[1],M=Ca(Pa(null),2),z=M[0],H=M[1],K=Ca(Pa(v&&w),2),W=K[0],Q=K[1],V=Aa(p),q=Ca(Pa(!1),2),G=q[0],Y=q[1];xa((function(){A.length&&T(n.filter((function(e){return!b(e)})))}),[A]);var J=Ca(Pa(!1),2),X=J[0],Z=J[1],$=Ca(Pa({}),2),ee=$[0],te=$[1],ne=U&&S(U),ie=Ca(Pa("true"===localStorage.getItem("igd_is_loop")),2),ae=ie[0],re=ie[1],oe=Ca(Pa("true"===localStorage.getItem("igd_is_shuffle")),2),le=oe[0],ce=oe[1],se=U?D.findIndex((function(e){return e.id===U.id})):0,de=Aa(null),ue=I();xa((function(){ue&&localStorage.setItem("igd_is_loop",ae?"true":"false")}),[ae]),xa((function(){ue&&localStorage.setItem("igd_is_shuffle",le?"true":"false")}),[le]),xa((function(){ue&&E&&E.playNotification&&wp.ajax.post("igd_notification",{files:[U],notifications:E,type:"play"})}),[U]);var me=U&&C(U),ge=Ca(Pa("lg"),2),pe=ge[0],fe=ge[1];xa((function(){if(de.current){var e=480,t=768,n=992,i=new ResizeObserver((function(i){var a=i[0].contentRect.width;fe(a<=e?"xs":a<=t?"sm":a<=n?"md":"lg")}));return i.observe(de.current),function(){i.disconnect()}}}),[de]);var ve=r&&U&&S(U)&&U.size>1e8;return xa((function(){ve&&wp.ajax.post("igd_update_file_permission",{file_id:U.id,account_id:U.accountId})}),[U]),React.createElement("div",{ref:de,className:"\n                igd-player \n                playlist-".concat(_,"\n               \n                ").concat(ne?"type-video":"type-audio"," \n                ").concat(X?"active":"paused"," \n                ").concat(ae?"is-loop":"","\n                ").concat(W?"is-playlist":"","\n                ").concat(le?"is-shuffle":"","\n                size-").concat(pe,"\n            ")},React.createElement("div",{className:"media-wrap"},me&&React.createElement("div",{className:"current-item"},React.createElement("img",{src:P(U,"small"),alt:U.name}),React.createElement("div",{className:"item-caption"},React.createElement("span",{className:"item-title"},U.name),!!U.description&&React.createElement("span",{className:"item-description"},U.description))),ve&&React.createElement("iframe",{src:"https://drive.google.com/file/d/".concat(U.id,"/preview"),width:"100%",height:"100%",frameBorder:"0",allowFullScreen:!0,referrerPolicy:"no-referrer",allow:"autoplay",sandbox:"allow-scripts allow-same-origin"}),!!U&&!ve&&React.createElement(oa,{file:U,isPlaying:X,setIsPlaying:Z,playNext:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(Z(!0),!e||!ae){var t=se+1<D.length?D[se+1]:D[0];le&&(t=D[Math.floor(Math.random()*D.length)]),L(t)}},playPrev:function(){Z(!0),L(se-1>=0?D[se-1]:D[D.length-1])},download:o,showPlaylist:v,nextPrevious:i,rewindForward:a,playableItems:D,handleDownload:function(){var e="".concat(igd.ajaxUrl,"?action=igd_download&id=").concat(U.id,"&accountId=").concat(U.accountId);window.open(e,"_blank").focus(),E&&E.downloadNotification&&wp.ajax.post("igd_notification",{files:[U],notifications:E,type:"download"})},playlistAutoplay:O,isLoop:ae,setIsLoop:re,isOpenPlaylist:W,setIsOpenPlaylist:Q,isShuffle:le,setIsShuffle:ce})),W&&React.createElement(ba,{file:U,files:A,setFile:L,folderFiles:ee,getFolderFiles:function(e){return wp.ajax.post("igd_get_files",{data:{folder:e,sort:l,filters:d}}).done((function(t){var n=t.files;n=n.filter((function(e){return N(e)||b(e)})),te((function(t){return Na(Na({},t),{},Sa({},e.id?e.id:e,n))})),T((function(e){return[].concat(Ea(e),Ea(n.filter((function(e){return!b(e)}))))}))}))},isPlaying:X,setIsPlaying:Z,download:o,activeFolder:z,setActiveFolder:H,playlistThumbnail:R,playlistNumber:k,allowSearch:c,initParentFolder:s,initFolders:n,filters:d,privateFolders:u,fullTextSearch:g,initialSearchTerm:p,sort:l,setFiles:x,isSearchResults:G,setIsSearchResults:Y,searchKeywordRef:V,notifications:E}))};function Ia(e){var t=e.initFolders,n=e.slideName,i=e.slideDescription,a=e.slideHeight,r=e.slidesPerPage,o=e.slideAutoplay,l=e.slideAutoplaySpeed,c=e.slideDots,s=e.slideArrows,d=e.download,u=e.preview,m=e.notifications,g=e.sliderImageSize,p=e.sliderCustomSizeWidth,f=e.sliderCustomSizeHeight,v=e.slideGap,h=function(e,n){D(e,n,t,{download:d,preview:u,inlinePreview:!0,notifications:m})},w=function(){var e=r[arguments.length>0&&void 0!==arguments[0]?arguments[0]:"md"];return t.length<e?t.length:e},y={dots:c,arrows:s,speed:500,slidesToShow:w("md"),infinite:!0,initialSlide:0,autoplay:o,autoplaySpeed:parseInt(l),cssEase:"linear",nextArrow:React.createElement("span",{className:"slick-arrow slick-next"},React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 320 512"},React.createElement("path",{d:"M278.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-160 160c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L210.7 256 73.4 118.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l160 160z"}))),prevArrow:React.createElement("span",{className:"slick-arrow slick-prev"},React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 320 512"},React.createElement("path",{d:"M41.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 256 246.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z"}))),responsive:[{breakpoint:576,settings:{slidesToShow:w("xs"),dots:!1}},{breakpoint:768,settings:{slidesToShow:w("sm")}},{breakpoint:992,settings:{slidesToShow:w("md")}},{breakpoint:1200,settings:{slidesToShow:w("lg")}},{breakpoint:2800,settings:{slidesToShow:w("xl")}}]};return React.createElement("div",{className:"igd-slider",style:{"--slide-height":a,"--slide-gap":"".concat(v,"px")}},React.createElement(Slider.default,y,t.map((function(e,t){var a=e.id,r=(e.accountId,e.name),o=e.description,l=P(e,g,{w:p,h:f});return React.createElement(React.Fragment,null,React.createElement("div",{className:"slider-img-wrap",onClick:function(e){return u&&h(e,a)}},React.createElement("img",{referrerPolicy:"no-referrer",src:l,alt:r})),React.createElement("div",{className:"slider-content-wrap",onClick:function(e){return u&&h(e,a)}},n&&React.createElement("h3",null,r),i&&!!o&&React.createElement("p",null,o)))}))))}function Da(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,a,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=r.call(n)).done)&&(l.push(i.value),l.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw a}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ta(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ta(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ta(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var Ba=React,Ua=Ba.useEffect,La=Ba.useState;function Ma(e){var t=e.data,n=e.isPreview,a=Da(La(!1),2),r=a[0],o=a[1],l=Da(La(""),2),c=l[0],s=l[1],d=t.id,u=t.type,m=t.allFolders,g=t.privateFolders,p=void 0!==g&&g,f=t.folders,v=void 0===f?[]:f,h=t.filters,w=t.galleryLayout,y=void 0===w?"justified":w,_=t.galleryAspectRatio,R=void 0===_?"1/1":_,S=t.galleryColumns,C=void 0===S?{xs:1,sm:2,md:3,lg:4,xl:5}:S,O=t.galleryHeight,k=void 0===O?300:O,F=t.galleryMargin,A=void 0===F?5:F,x=t.galleryView,P=void 0===x?"rounded":x,j=t.galleryFolderView,I=void 0===j?"title":j,D=t.galleryOverlay,B=void 0===D||D,U=t.galleryOverlayTitle,L=void 0===U||U,M=t.galleryOverlayDescription,z=void 0===M||M,H=t.galleryOverlaySize,K=void 0!==H&&H,W=t.galleryImageSize,Q=void 0===W?"medium":W,V=t.galleryCustomSizeWidth,q=t.galleryCustomSizeHeight,G=t.view,Y=t.lazyLoad,J=void 0===Y||Y,X=t.lazyLoadNumber,Z=void 0===X?100:X,$=t.showLastModified,ee=void 0!==$&&$,te=t.showFileSizeField,ne=void 0===te||te,ie=t.showHeader,ae=void 0===ie||ie,re=t.showRefresh,oe=void 0===re||re,le=t.showSorting,ce=void 0===le||le,se=t.showBreadcrumbs,de=void 0===se||se,ue=t.nextPrevious,me=void 0===ue||ue,ge=t.rewindForward,pe=void 0!==ge&&ge,fe=t.allowEmbedPlayer,ve=t.showPlaylist,he=void 0===ve||ve,we=t.playlistThumbnail,ye=void 0===we||we,be=t.playlistNumber,_e=void 0===be||be,Ee=t.playlistAutoplay,Re=void 0===Ee||Ee,Ne=t.openedPlaylist,Se=void 0===Ne||Ne,Ce=t.playlistPosition,Oe=void 0===Ce?"bottom":Ce,ke=t.fileNumbers,Fe=t.sort,Ae=t.maxFiles,xe=t.maxFileSize,Pe=t.minFileSize,je=t.notifications,Ie=t.preview,De=void 0===Ie||Ie,Te=t.inlinePreview,Ue=void 0===Te||Te,Le=t.allowPreviewPopout,Me=void 0===Le||Le,ze=t.directLink,He=void 0!==ze&&ze,Ke=t.createDoc,We=void 0!==Ke&&Ke,Qe=t.edit,Ve=void 0!==Qe&&Qe,qe=t.newFolder,Ge=void 0!==qe&&qe,Ye=t.rename,Je=void 0!==Ye&&Ye,Xe=t.details,Ze=void 0!==Xe&&Xe,$e=t.moveCopy,et=t.moveCopy,tt=t.canDelete,nt=void 0!==tt&&tt,it=t.upload,at=void 0!==it&&it,rt=t.download,ot=void 0===rt||rt,lt=t.zipDownload,ct=void 0!==lt&&lt,st=t.allowShare,dt=void 0!==st&&st,ut=t.viewSwitch,mt=void 0===ut||ut,gt=t.allowSearch,pt=void 0===gt?"search"===u:gt,ft=t.fullTextSearch,vt=void 0===ft||ft,ht=t.initialSearchTerm,wt=void 0===ht?"":ht,yt=t.comment,bt=void 0!==yt&&yt,_t=t.commentMethod,Et=void 0===_t?"facebook":_t,Rt=t.photoProof,Nt=void 0!==Rt&&Rt,St=t.photoProofEmail,Ct=t.photoProofMaxSelection,Ot=t.uploadImmediately,kt=t.isFormUploader,Ft=t.isRequired,At=t.isWooCommerceUploader,xt=t.wcOrderId,Pt=t.wcItemId,jt=t.wcProductId,It=t.uploadedFiles,Dt=void 0===It?[]:It,Tt=t.initParentFolder,Bt=t.enableFolderUpload,Ut=t.overwrite,Lt=t.showUploadLabel,Mt=t.uploadLabelText,zt=void 0===Mt?wp.i18n.__("Upload Files","integrate-google-drive"):Mt,Ht=t.uploadFileName,Kt=t.showUploadConfirmation,Wt=void 0===Kt||Kt,Qt=t.uploadConfirmationMessage,Vt=void 0===Qt?"<h3>".concat(wp.i18n.__("Upload successful!","integrate-google-drive"),"</h3> <p>").concat(wp.i18n.__("Your file(s) have been uploaded. Thank you for your submission!","integrate-google-drive"),"</p>"):Qt,qt=t.slideName,Gt=void 0===qt||qt,Yt=t.sliderImageSize,Jt=void 0===Yt?"medium":Yt,Xt=t.sliderCustomSizeWidth,Zt=t.sliderCustomSizeHeight,$t=t.slideDescription,en=t.slideHeight,tn=void 0===en?"300px":en,nn=t.slidesPerPage,an=void 0===nn?{xs:1,sm:2,md:3,lg:4,xl:5}:nn,rn=t.slidesToScroll,on=void 0===rn?1:rn,ln=t.slideAutoplay,cn=void 0===ln||ln,sn=t.slideAutoplaySpeed,dn=void 0===sn?3e3:sn,un=t.slideDots,mn=void 0===un||un,gn=t.slideArrows,pn=void 0===gn||gn,fn=t.slideGap,vn=void 0===fn?5:fn,hn=t.account,wn=m?E():v;return Ua((function(){n&&(o(!0),wp.ajax.post("igd_get_shortcode_content",{data:t}).done((function(e){return s(e)})).fail((function(e){return console.log(e)})).always((function(){o(!1),setTimeout((function(){T()}),100)})))}),[n,t]),React.createElement(React.Fragment,null,n&&r&&React.createElement("div",{className:"igd-spinner spinner-large"}),n&&!r&&React.createElement("div",{className:"preview-inner",dangerouslySetInnerHTML:{__html:c}}),!n&&React.createElement(React.Fragment,null,["browser","gallery","search"].includes(u)&&React.createElement($i,{shortcodeId:d,account:hn,galleryLayout:y,galleryAspectRatio:R,galleryColumns:C,galleryOverlay:B,galleryOverlayTitle:L,galleryOverlayDescription:z,galleryOverlaySize:K,galleryImageSize:Q,galleryCustomSizeWidth:V,galleryCustomSizeHeight:q,galleryHeight:k,galleryMargin:A,galleryView:P,galleryFolderView:I,initParentFolder:Tt,allFolders:m,privateFolders:p,initFolders:wn,filters:h,isList:"list"===G,lazyLoad:J,lazyLoadNumber:Z,showLastModified:ee,showFileSizeField:ne,showHeader:ae,showRefresh:oe,showSorting:ce,showBreadcrumbs:de,fileNumbers:ke,sort:Fe,shortcodeBuilderType:u,initialSearchTerm:wt,permissions:{preview:De,inlinePreview:Ue,allowPreviewPopout:Me,directLink:He,newFolder:Ge,rename:Je,move:et,copy:$e,upload:at,download:ot,zipDownload:ct,details:Ze,view:mt,delete:nt,share:dt,allowSearch:pt,createDoc:We,edit:Ve,fullTextSearch:vt,comment:bt,commentMethod:Et,photoProof:Nt,photoProofEmail:St,photoProofMaxSelection:Ct},notifications:je}),"slider"===u&&React.createElement(Ia,{initFolders:wn,slideName:Gt,slideDescription:$t,slideHeight:tn,slidesPerPage:an,slidesToScroll:on,slideAutoplay:cn,slideAutoplaySpeed:dn,slideDots:mn,slideArrows:pn,download:t.download,preview:t.preview,notifications:je,sliderImageSize:Jt,sliderCustomSizeWidth:Xt,sliderCustomSizeHeight:Zt,slideGap:vn}),"uploader"===u&&React.createElement(i,{value:{account:hn,folders:v,filters:h,maxFiles:Ae,maxFileSize:xe,minFileSize:Pe,enableFolderUpload:Bt,isFormUploader:kt,isRequired:Ft,showUploadLabel:Lt,uploadLabelText:zt,uploadFileName:Ht,isWooCommerceUploader:At,wcOrderId:xt,wcItemId:Pt,wcProductId:jt,notifications:je,initUploadedFiles:Dt,uploadImmediately:Ot,overwrite:Ut,showUploadConfirmation:Wt,uploadConfirmationMessage:Vt}},React.createElement(Be,null)),"media"===u&&React.createElement(ja,{initParentFolder:Tt,initFolders:wn.filter((function(e){return N(e)||b(e)})),nextPrevious:me,rewindForward:pe,allowEmbedPlayer:fe,showPlaylist:he,playlistThumbnail:ye,playlistNumber:_e,playlistAutoplay:Re,openedPlaylist:Se,playlistPosition:Oe,download:t.download,sort:Fe,filters:h,privateFolders:p,allowSearch:pt,fullTextSearch:vt,initialSearchTerm:wt,notifications:je})))}function za(e){var t=e.data,n=e.onClose;return React.createElement("div",{className:"igd-shortcode-preview-wrap"},React.createElement("div",{className:"igd-shortcode-preview-header"},React.createElement("div",{className:"header-title"},React.createElement("i",{className:"dashicons dashicons-visibility"}),React.createElement("span",null,wp.i18n.__("Shortcode Preview","integrate-google-drive"))),React.createElement("button",{type:"button",className:"igd-btn btn-danger",onClick:n},React.createElement("i",{className:"dashicons dashicons-no"}))),React.createElement(Ma,{data:t,isPreview:!0}))}function Ha(e){return Ha="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ha(e)}function Ka(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Wa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ka(Object(n),!0).forEach((function(t){Qa(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ka(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Qa(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Ha(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==Ha(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Ha(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Va=React,qa=Va.useContext,Ga=Va.useEffect,Ya=window.ReactTooltip;function Ja(){var e=qa(ta),t=e.edit,n=e.setEdit,i=e.editData,a=e.updateShortcode,r=e.setEditData,o=e.updating,l=e.deleteShortcode,c=i.title,s=i.id;i.folders,i.allFolders;Ga((function(){"-1"==t&&document.getElementById("shortcode-title").focus()}),[t]);return React.createElement("div",{className:"igd-shortcode-builder-header ".concat(t?"is-edit":"")},React.createElement("div",{className:"header-title"},React.createElement("img",{src:igd.pluginUrl+"/assets/images/shortcode-builder/shortcode-icon.svg",alt:"Shortcode Builder"}),t?React.createElement(React.Fragment,null,React.createElement("label",{htmlFor:"shortcode-title"},s>0?wp.i18n.__("Edit Shortcode","integrate-google-drive"):wp.i18n.__("Add New Shortcode","integrate-google-drive")),React.createElement("input",{type:"text",onChange:function(e){return r((function(t){return Wa(Wa({},t),{},{title:e.target.value})}))},value:c,className:"shortcode-title",id:"shortcode-title"})):React.createElement("span",null,wp.i18n.__("Shortcode Builder","integrate-google-drive"))),React.createElement("div",{className:"header-actions"},t?React.createElement(React.Fragment,null,React.createElement("button",{type:"button",className:"igd-btn btn-back",onClick:function(){V(),n(null)}},React.createElement("i",{className:"dashicons dashicons-arrow-left-alt2"}),React.createElement("span",null,wp.i18n.__("Back","integrate-google-drive"))),!!s&&s>0&&React.createElement("button",{"data-tip":wp.i18n.__("Delete Shortcode","integrate-google-drive"),"data-for":"delete",type:"button",className:"igd-btn btn-danger btn-delete",onClick:function(){Swal.fire({title:wp.i18n.__("Are you sure?","integrate-google-drive"),text:wp.i18n.__("You won't be able to revert this!","integrate-google-drive"),icon:"warning",showCancelButton:!0,confirmButtonText:wp.i18n.__("Yes, delete it!","integrate-google-drive"),cancelButtonText:wp.i18n.__("No, cancel!","integrate-google-drive"),reverseButtons:!0,focusCancel:!0,showLoaderOnConfirm:!0,customClass:{container:"igd-swal"},preConfirm:function(){return l(s,!0)}})}},React.createElement("i",{className:"dashicons dashicons-trash"}),React.createElement("span",null,wp.i18n.__("Delete","integrate-google-drive")),React.createElement(Ya,{id:"delete",effect:"solid",place:"top",className:"igd-tooltip"})),React.createElement("button",{type:"button",className:"igd-btn btn-info btn-preview",onClick:function(){return e=i,void Swal.fire({html:'<div id="igd-shortcode-preview" class="igd-shortcode-preview"></div>',showConfirmButton:!1,customClass:{popup:"igd-shortcode-preview-popup",container:"igd-shortcode-preview-container"},didOpen:function(){var t=document.getElementById("igd-shortcode-preview");ReactDOM.render(React.createElement(za,{data:e,onClose:function(){return Swal.close()}}),t)},willClose:function(){var e=document.getElementById("igd-shortcode-preview");ReactDOM.unmountComponentAtNode(e)}});var e}},React.createElement("i",{className:"dashicons dashicons-visibility"}),React.createElement("span",null,wp.i18n.__("Preview","integrate-google-drive"))),React.createElement("button",{type:"button",className:"igd-btn btn-save btn-primary",onClick:function(){var e=new URL(window.location.href);e.searchParams.delete("id"),window.history.pushState({},"",e),a(i,!0)}},o?React.createElement("div",{className:"igd-spinner"}):React.createElement("i",{className:"dashicons dashicons-saved"}),React.createElement("span",null,wp.i18n.__("Save","integrate-google-drive")))):React.createElement("button",{type:"button",className:"igd-btn btn-primary add-new-btn",onClick:function(){return n(-1)}},o?React.createElement("div",{className:"igd-spinner"}):React.createElement("i",{className:"dashicons dashicons-plus"}),React.createElement("span",null,wp.i18n.__("Add new shortcode","integrate-google-drive")))))}function Xa(e){return function(e){if(Array.isArray(e))return Za(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Za(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Za(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Za(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var $a=React.useMemo,er="...",tr=function(e,t){var n=t-e+1;return Array.from({length:n},(function(t,n){return n+e}))};const nr=function(e){var t=e.onPageChange,n=e.pageCount,i=e.siblingCount,a=void 0===i?1:i,r=e.currentPage,o=void 0===r?1:r,l=e.className,c=function(e){var t=e.pageCount,n=e.siblingCount,i=void 0===n?1:n,a=e.currentPage;return $a((function(){if(i+5>=t)return tr(1,t);var e=Math.max(a-i,1),n=Math.min(a+i,t),r=e>2,o=n<t-2,l=1,c=t;if(!r&&o){var s=tr(1,2+2*i);return[].concat(Xa(s),[er,t])}if(r&&!o){var d=tr(t-(2+2*i)+1,t);return[l,er].concat(Xa(d))}if(r&&o){var u=tr(e,n);return[l,er].concat(Xa(u),[er,c])}}),[t,i,a])}({pageCount:n,siblingCount:a,currentPage:o});if(0===o||c.length<2)return null;var s=c[c.length-1];return React.createElement("ul",{className:"pagination-container ".concat(l||"")},React.createElement("li",{className:"pagination-item ".concat(1===o?"disabled":""),onClick:function(){return 1!==o&&void t(o-1)}},React.createElement("svg",{height:"15px",width:"15px",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 490.787 490.787"},React.createElement("pat",{d:"M362.671,490.787c-2.831,0.005-5.548-1.115-7.552-3.115L120.452,253.006c-4.164-4.165-4.164-10.917,0-15.083L355.119,3.256c4.093-4.237,10.845-4.354,15.083-0.262c4.237,4.093,4.354,10.845,0.262,15.083c-0.086,0.089-0.173,0.176-0.262,0.262L143.087,245.454l227.136,227.115c4.171,4.16,4.179,10.914,0.019,15.085C368.236,489.664,365.511,490.792,362.671,490.787z"}),React.createElement("path",{d:"M362.671,490.787c-2.831,0.005-5.548-1.115-7.552-3.115L120.452,253.006c-4.164-4.165-4.164-10.917,0-15.083L355.119,3.256c4.093-4.237,10.845-4.354,15.083-0.262c4.237,4.093,4.354,10.845,0.262,15.083c-0.086,0.089-0.173,0.176-0.262,0.262L143.087,245.454l227.136,227.115c4.171,4.16,4.179,10.914,0.019,15.085C368.236,489.664,365.511,490.792,362.671,490.787z"}))),c.map((function(e){return e===er?React.createElement("li",{key:e,className:"pagination-item dots"},"…"):React.createElement("li",{key:e,className:"pagination-item ".concat(e===o?"selected":""),onClick:function(){return t(e)}},e)})),React.createElement("li",{className:"pagination-item ".concat(o===s?"disabled":""),onClick:function(){return o!==s&&void t(o+1)}},React.createElement("svg",{height:"15px",width:"15px",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 490.8 490.8"},React.createElement("path",{d:"M135.685,3.128c-4.237-4.093-10.99-3.975-15.083,0.262c-3.992,4.134-3.992,10.687,0,14.82l227.115,227.136L120.581,472.461c-4.237,4.093-4.354,10.845-0.262,15.083c4.093,4.237,10.845,4.354,15.083,0.262c0.089-0.086,0.176-0.173,0.262-0.262l234.667-234.667c4.164-4.165,4.164-10.917,0-15.083L135.685,3.128z"}),React.createElement("path",{d:"M128.133,490.68c-5.891,0.011-10.675-4.757-10.686-10.648c-0.005-2.84,1.123-5.565,3.134-7.571l227.136-227.115L120.581,18.232c-4.171-4.171-4.171-10.933,0-15.104c4.171-4.171,10.933-4.171,15.104,0l234.667,234.667c4.164,4.165,4.164,10.917,0,15.083L135.685,487.544C133.685,489.551,130.967,490.68,128.133,490.68z"}))))};function ir(e){return ir="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ir(e)}function ar(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function rr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ar(Object(n),!0).forEach((function(t){or(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ar(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function or(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==ir(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==ir(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ir(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lr(e){return function(e){if(Array.isArray(e))return dr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||sr(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function cr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,a,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=r.call(n)).done)&&(l.push(i.value),l.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw a}}return l}}(e,t)||sr(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function sr(e,t){if(e){if("string"==typeof e)return dr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?dr(e,t):void 0}}function dr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var ur=wp.components,mr=ur.FormToggle,gr=ur.CheckboxControl,pr=ur.SelectControl,fr=window.ReactTooltip,vr=React,hr=vr.useContext,wr=vr.useState,yr=vr.useEffect;function br(){var e=hr(ta),t=e.shortcodes,n=e.deleteShortcode,i=e.setEdit,a=e.updateShortcode,r=e.duplicateShortcode,o=e.total,l=e.page,c=e.setPage,s=e.perPage,d=e.setPerPage,u=e.sortBy,m=e.setSortBy,g=e.sortOrder,p=e.setSortOrder,f=F(),v=cr(wr([]),2),h=v[0],w=v[1],y=localStorage.getItem("igd_shortcode_list_columns"),b=cr(wr(y?JSON.parse(y):["ID","type","status","shortcode","created"]),2),_=b[0],E=b[1];yr((function(){localStorage.setItem("igd_shortcode_list_columns",JSON.stringify(_))}),[_]);return React.createElement("div",{className:"igd-shortcode-list-wrap"},React.createElement("div",{className:"igd-shortcode-list-header"},React.createElement("h3",{className:"igd-shortcode-list-title"},wp.i18n.__("All Shortcodes","integrate-google-drive"),React.createElement("span",{className:"shortcode-list-count"}," ( ",o," ",wp.i18n._n("Item","Items",o,"integrate-google-drive")," )")),React.createElement("div",{className:"igd-list-column-settings"},React.createElement("i",{"data-tip":!0,"data-for":"list-settings-tooltip",className:"column-settings-icon dashicons dashicons-admin-generic"}),React.createElement(fr,{id:"list-settings-tooltip",effect:"solid",place:"left",event:"click",type:"light",clickable:!0,border:!0,scrollHide:!1,borderColor:"#ddd",className:"igd-tooltip list-settings-tooltip",globalEventOff:"click"},React.createElement("div",{className:"settings-wrap settings-columns"},React.createElement("h4",null,wp.i18n.__("Columns","integrate-google-drive")),React.createElement("div",{className:"column-options"},["ID","type","status","shortcode","locations","created"].map((function(e,t){return React.createElement("div",{className:"igd-column-setting",key:t},React.createElement(gr,{label:e,checked:_.includes(e),onChange:function(){var t=_.includes(e)?_.filter((function(t){return t!==e})):[].concat(lr(_),[e]);E(t)}}))})))),React.createElement("div",{className:"settings-wrap settings-per-page"},React.createElement("h4",null,wp.i18n.__("Items Per Page","integrate-google-drive")),React.createElement(pr,{value:s,options:[{label:"10",value:10},{label:"20",value:20},{label:"50",value:50},{label:"100",value:100}],onChange:function(e){d(e),c(1),localStorage.setItem("igd_shortcode_list_per_page",e)}})),React.createElement("div",{className:"settings-wrap settings-sort-by"},React.createElement("h4",null,wp.i18n.__("Sort By","integrate-google-drive")),React.createElement(pr,{value:u,options:[{label:wp.i18n.__("Name","integrate-google-drive"),value:"title"},{label:wp.i18n.__("Date Created","integrate-google-drive"),value:"created_at"}],onChange:function(e){m(e),c(1),localStorage.setItem("igd_shortcode_list_sort_by",e)}})),React.createElement("div",{className:"settings-wrap settings-sort-order"},React.createElement("h4",null,wp.i18n.__("Sort Order","integrate-google-drive")),React.createElement(pr,{value:g,options:[{label:wp.i18n.__("Ascending","integrate-google-drive"),value:"asc"},{label:wp.i18n.__("Descending","integrate-google-drive"),value:"desc"}],onChange:function(e){p(e),c(1),localStorage.setItem("igd_shortcode_list_sort_order",e)}}))))),!!h.length&&React.createElement("div",{className:"selection-actions-wrap"},React.createElement("div",{className:"selection-count"},h.length," ",wp.i18n.__("Item(s) selected","integrate-google-drive")),React.createElement("button",{className:"igd-btn btn-warning",onClick:function(){return w([])}},React.createElement("i",{className:"dashicons dashicons-no-alt"}),React.createElement("span",null,wp.i18n.__("Clear Selection","integrate-google-drive"))),React.createElement("button",{className:"igd-btn btn-info",onClick:function(){r(h),w([])}},React.createElement("i",{className:"dashicons dashicons-admin-page"}),React.createElement("span",null,wp.i18n.__("Duplicate","integrate-google-drive"))),React.createElement("button",{className:"igd-btn btn-danger",onClick:function(){Swal.fire({title:wp.i18n.__("Are you sure?","integrate-google-drive"),text:wp.i18n.__("You will not be able to recover this shortcode!","integrate-google-drive"),icon:"warning",showCancelButton:!0,confirmButtonText:wp.i18n.__("Yes, delete it!","integrate-google-drive"),reverseButtons:!0,customClass:{container:"igd-swal"}}).then((function(e){e.isConfirmed&&(h.forEach((function(e){n(e)})),w([]))}))}},React.createElement("i",{className:"dashicons dashicons-trash"}),React.createElement("span",null,wp.i18n.__("Delete","integrate-google-drive")))),React.createElement("table",{className:"igd-shortcode-list"},React.createElement("thead",null,React.createElement("tr",null,React.createElement("th",{className:"col-selection"},React.createElement(gr,{checked:h.length===t.length,onChange:function(){h.length===t.length?w([]):w(t.map((function(e){return e.id})))}})),_.includes("ID")&&React.createElement("th",{className:"col-id"},wp.i18n.__("ID","integrate-google-drive")),React.createElement("th",{className:"col-title"},wp.i18n.__("Title","integrate-google-drive")),_.includes("type")&&React.createElement("th",{className:"col-shortcode-type"},wp.i18n.__("Type","integrate-google-drive")),_.includes("status")&&React.createElement("th",null,wp.i18n.__("Status","integrate-google-drive")),_.includes("shortcode")&&React.createElement("th",null,wp.i18n.__("Shortcode","integrate-google-drive")),_.includes("locations")&&React.createElement("th",null,wp.i18n.__("Locations","integrate-google-drive")),_.includes("created")&&React.createElement("th",null,wp.i18n.__("Created","integrate-google-drive")),React.createElement("th",null,wp.i18n.__("Actions","integrate-google-drive")))),React.createElement("tbody",null,t.map((function(e){var t=e.id,o=e.title,l=e.status,c=e.created_at,s=e.config,d=e.locations,u=f[null==s?void 0:s.type]?f[null==s?void 0:s.type].title:"";return React.createElement("tr",{className:"igd-shortcode-list-item"},React.createElement("td",{className:"col-selection"},React.createElement(gr,{checked:h.includes(t),onChange:function(){h.includes(t)?w(h.filter((function(e){return e!==t}))):w([].concat(lr(h),[t]))}})),_.includes("ID")&&React.createElement("td",{className:"col-id"},t),React.createElement("td",{className:"col-title"},o),_.includes("type")&&React.createElement("td",{className:"col-shortcode-type"},React.createElement("div",null,React.createElement("img",{src:"".concat(igd.pluginUrl,"/assets/images/shortcode-builder/types/").concat(s.type,".svg"),alt:o}),React.createElement("span",null,u))),_.includes("status")&&React.createElement("td",{className:"col-shortcode-status"},React.createElement(mr,{"data-tip":wp.i18n.__("Shortcode status","integrate-google-drive"),"data-for":"shortcodeStatus",checked:"on"===l,onChange:function(){a(rr(rr({},s),{},{id:t,status:"on"===l?"off":"on"}))}}),React.createElement(fr,{id:"shortcodeStatus",effect:"solid",place:"top",className:"igd-tooltip"})),_.includes("shortcode")&&React.createElement("td",{className:"col-code"},React.createElement("div",null,React.createElement("i",{"data-tip":wp.i18n.__("Copy shortcode","integrate-google-drive"),"data-for":"copyShortcode",className:"dashicons dashicons-admin-page",onClick:A}),React.createElement(fr,{id:"copyShortcode",effect:"solid",place:"top",className:"igd-tooltip"}),React.createElement("code",{onClick:A},'[integrate_google_drive id="'.concat(t,'"]')))),_.includes("locations")&&React.createElement("td",{className:"col-locations"},d&&d.length>0?React.createElement("div",{className:"shortcode-locations"},React.createElement("span",{"data-tip":!0,"data-for":"shortcodeLocations-".concat(t),className:"location-count"},d.length),React.createElement(fr,{id:"shortcodeLocations-".concat(t),effect:"solid",place:"top",delayHide:1e3,type:"light",clickable:!0,border:!0,scrollHide:!1,borderColor:"#ddd",className:"igd-tooltip locations-tooltip",globalEventOff:"click"},React.createElement("h3",null,wp.i18n.__("Shortcode Locations","integrate-google-drive")),d.map((function(e,t){return React.createElement("div",{key:t,className:"location-item"},React.createElement("a",{href:e.url,target:"_blank"},React.createElement("span",{className:"location-index"},t+1,". "),React.createElement("span",{className:"location-title"},e.title),React.createElement("i",{className:"dashicons dashicons-external"})))})))):React.createElement("div",{className:"shortcode-locations"},React.createElement("span",{className:"location-count"},wp.i18n.__("0","integrate-google-drive")))),_.includes("created")&&React.createElement("td",{className:"col-created"},function(e){var t=new Date,n=Math.abs(t-new Date(e)),i=Math.floor(n/864e5);if(i>7)return Q(e);var a=Math.floor(n/36e5),r=Math.floor(n/6e4);return i>0?i+" day"+(i>1?"s":"")+" ago":a>0?a+" hour"+(a>1?"s":"")+" ago":r+" minute"+(r>1?"s":"")+" ago"}(c)),React.createElement("td",{className:"col-actions"},React.createElement("button",{"data-tip":wp.i18n.__("Edit shortcode","integrate-google-drive"),"data-for":"editShortcode-".concat(t),className:"igd-btn btn-primary",onClick:function(){!function(e){var t=new URL(window.location.href);t.searchParams.set("id",e),window.history.pushState({},"",t)}(t),i(t)}},React.createElement("i",{className:"dashicons dashicons-edit-large"}),React.createElement("span",null,wp.i18n.__("Edit","integrate-google-drive"))),React.createElement(fr,{id:"editShortcode-".concat(t),effect:"solid",place:"top",className:"igd-tooltip"}),React.createElement("button",{"data-tip":wp.i18n.__("Tools","integrate-google-drive"),"data-for":"toolsTooltip-".concat(t),className:"igd-btn btn-tools"},React.createElement("i",{className:"dashicons dashicons-ellipsis"})),React.createElement(fr,{id:"toolsTooltip-".concat(t),effect:"solid",place:"top",className:"igd-tooltip"}),React.createElement(fr,{id:"toolsTooltip-".concat(t),effect:"solid",place:"bottom",event:"click",type:"light",clickable:!0,border:!0,scrollHide:!1,borderColor:"#ddd",className:"options-tooltip igd-tooltip",globalEventOff:"click"},React.createElement("div",{className:"action-tools"},React.createElement("button",{className:"igd-btn",onClick:function(){return e=s,void Swal.fire({html:'<div id="igd-shortcode-preview" class="igd-shortcode-preview"></div>',showConfirmButton:!1,customClass:{popup:"igd-shortcode-preview-popup",container:"igd-shortcode-preview-container"},didOpen:function(){ReactDOM.render(React.createElement(za,{data:e,onClose:function(){return Swal.close()}}),document.getElementById("igd-shortcode-preview"))},willClose:function(){ReactDOM.unmountComponentAtNode(document.getElementById("igd-shortcode-preview"))}});var e}},React.createElement("i",{className:"dashicons dashicons-visibility"}),React.createElement("span",null,wp.i18n.__("Preview","integrate-google-drive"))),React.createElement("button",{className:"igd-btn",onClick:function(){r([t])}},React.createElement("i",{className:"dashicons dashicons-admin-page"}),React.createElement("span",null,wp.i18n.__("Duplicate","integrate-google-drive"))),React.createElement("button",{className:"igd-btn",onClick:function(){Swal.fire({title:wp.i18n.__("Are you sure?","integrate-google-drive"),text:wp.i18n.__("You won't be able to revert this!","integrate-google-drive"),icon:"warning",showCancelButton:!0,confirmButtonText:wp.i18n.__("Yes, delete it!","integrate-google-drive"),cancelButtonText:wp.i18n.__("No, cancel!","integrate-google-drive"),reverseButtons:!0,focusCancel:!0,showLoaderOnConfirm:!0,customClass:{container:"igd-swal"},preConfirm:function(){return n(t)}})}},React.createElement("i",{className:"text-red-500 dashicons dashicons-trash"}),React.createElement("span",null,wp.i18n.__("Delete","integrate-google-drive")))))))})))),React.createElement("div",{className:"igd-shortcode-list-footer"},React.createElement(nr,{className:"igd-pagination",pageCount:Math.ceil(o/s),currentPage:l,onPageChange:function(e){return c(e)}})))}function _r(e){var t=e.setEdit;return React.createElement("div",{className:"no-item-placeholder"},React.createElement("img",{src:"".concat(igd.pluginUrl,"/assets/images/shortcode-builder/placeholder.png"),alt:"No Shortcode"}),React.createElement("h3",null,wp.i18n.__("You didn't create any shortcode yet!","integrate-google-drive")),React.createElement("button",{type:"button",className:"igd-btn btn-primary",onClick:function(){return t(-1)}},React.createElement("i",{className:"dashicons dashicons-plus"}),React.createElement("span",null,wp.i18n.__("Add new shortcode","integrate-google-drive"))))}function Er(e){return Er="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Er(e)}function Rr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Nr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rr(Object(n),!0).forEach((function(t){Sr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Sr(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Er(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==Er(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Er(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Cr=React.useContext;function Or(e){var t=e.setTab,n=e.isEditor,i=Cr(ta),a=i.editData,r=i.setEditData,o=F(),l=a.type;return React.createElement("div",{className:"shortcode-module-body"},React.createElement("div",{className:"shortcode-types"},Object.keys(o).map((function(e){var i=e===l,a=o[e],c=a.title,s=a.isPro,d=a.description;return React.createElement("div",{key:e,className:"shortcode-type ".concat(s&&!igd.isPro?"pro-feature":""," ").concat(i?"active":""," ").concat(n?"edit-mode":""),onClick:function(){!s||igd.isPro?l!==e&&(r((function(t){return Nr(Nr({},t),{},{type:e,folders:[]})})),["embed","view","download"].includes(e)&&r((function(e){return Nr(Nr({},e),{},{allFolders:!1})})),t("sources")):j(wp.i18n.__("Upgrade to PRO to use this module.","integrate-google-drive"))}},s&&!igd.isPro&&React.createElement("div",{className:"pro-badge"},React.createElement("i",{className:"dashicons dashicons-lock"}),React.createElement("span",null,wp.i18n.__("PRO","integrate-google-drive"))),React.createElement("div",{className:"icon-wrap icon-".concat(e)},React.createElement("img",{className:"type-".concat(e),src:"".concat(igd.pluginUrl,"/assets/images/shortcode-builder/types/").concat(e,".svg"),alt:c})),React.createElement("span",null,c),React.createElement("p",{className:"description"},d))}))))}function kr(e){return kr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kr(e)}function Fr(e){return function(e){if(Array.isArray(e))return Dr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ir(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ar(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function xr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ar(Object(n),!0).forEach((function(t){Pr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ar(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Pr(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==kr(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==kr(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===kr(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,a,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=r.call(n)).done)&&(l.push(i.value),l.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw a}}return l}}(e,t)||Ir(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ir(e,t){if(e){if("string"==typeof e)return Dr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Dr(e,t):void 0}}function Dr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var Tr=wp.components.FormToggle,Br=React,Ur=Br.useEffect,Lr=Br.useRef,Mr=Br.useContext,zr=Br.useState,Hr=window.ReactTooltip;function Kr(){var e=igd,t=e.activeAccount,n=e.isPro,i=e.settings,a=Mr(ta),r=a.editData,o=a.updateShortcode,l=a.setEditData,c=a.isSelectFiles,s=a.isInlineSelect,d=a.isFormBuilder,u=a.selectionType,m=a.isEditor,g=a.isLMS,p=a.initParentFolder,f=a.initFolders,v=a.isWooCommerce,h=r.type,w=r.allFolders,y=r.folders,_=void 0===y?[]:y,R=r.privateFolders,N=r.createPrivateFolder,S=r.nameTemplate,C=void 0===S?i.nameTemplate?i.nameTemplate:"%user_login% (%user_email%)":S,O=r.parentFolder,k=void 0===O?i.parentFolder?i.parentFolder:E(t.root_id):O,F=r.templateFolder,A=void 0===F?i.templateFolder?i.templateFolder:null:F,x=r.mergePrivateFolders,P=void 0===x?i.mergeFolders:x,I=r.createEntryFolders,D=r.entryFolderNameTemplate,T=void 0===D?"cf7"===d?"Form entry - %form_title%":"Entry (%entry_id%) - %form_title%":D,B=r.mergeFolders,U=jr(zr(!1),2),L=U[0],M=U[1],z=jr(zr(!1),2),H=z[0],K=z[1],W=jr(zr(p),2),Q=W[0],V=W[1],q="browser"===h,G="uploader"===h,Y="slider"===h,J="gallery"===h,X="media"===h,Z="search"===h,$="embed"===h,ee="view"===h,te="download"===h,ne=Lr(null);Ur((function(){if(ne.current){new ResizeObserver((function(e){var t=e[0].target;e[0].contentRect.width<700?t.classList.add("view-list"):t.classList.remove("view-list")})).observe(ne.current)}}),[]);var ie="",ae="";R&&(ae=wp.i18n.__("Don't select any items if you don't want to show the module for the users who are not linked any folders.","integrate-google-drive"),q?ie=wp.i18n.__("Select files & folders for non-linked users","integrate-google-drive"):G?ie=wp.i18n.__("Select Upload Folder for non-linked users","integrate-google-drive"):J?ie=wp.i18n.__("Select image files and folders for non-linked users","integrate-google-drive"):X?ie=wp.i18n.__("Select audio, video files and folders for non-linked users","integrate-google-drive"):Z&&(ie=wp.i18n.__("Select folders for non-linked users.","integrate-google-drive"))),d&&!R&&(ie=wp.i18n.__("Select Upload Folder","integrate-google-drive"));var re=["%user_login%","%user_email%","%first_name%","%last_name%","%display_name%","%user_id%","%user_role%","%user_meta_{key}%","","%post_id%","%post_title%","%post_slug%","%post_author%","%post_date%","%post_modified%","%post_type%","%post_status%","%post_category%","%post_tags%","%post_meta_{key}%","","%wc_product_name%","%wc_product_id%","%wc_product_sku%","%wc_product_slug%","%wc_product_price%","%wc_product_sale_price%","%wc_product_regular_price%","%wc_product_tags%","%wc_product_type%","%wc_product_status%","",!!d&&"cf7"!==d&&"%entry_id%",!!d&&"elementor"!==d&&"%form_id%",!!d&&"%form_title%","","%date%","%time%","%unique_id%"],oe=["cf7"!==d&&"%entry_id%","elementor"!==d&&"%form_id%","%form_title%","","%post_id%","%post_title%","%post_slug%","%post_author%","%post_date%","%post_modified%","%post_type%","%post_status%","%post_category%","%post_tags%","%post_meta_{key}%","","%wc_product_name%","%wc_product_id%","%wc_product_sku%","%wc_product_slug%","%wc_product_price%","%wc_product_sale_price%","%wc_product_regular_price%","%wc_product_tags%","%wc_product_type%","%wc_product_status%","","%user_login%","%user_email%","%first_name%","%last_name%","%display_name%","%user_id%","%user_role%","%user_meta_{key}%","","%date%","%time%","%unique_id%"],le=!($&&"classic"===m||ee||te||w||c||g||v),ce=wp.i18n.__("Turn ON to display the private files and folders linked to the user.","integrate-google-drive");$?ce=wp.i18n.__("Turn ON to embed the private files and folders linked to the user.","integrate-google-drive"):G?ce=wp.i18n.__("Turn ON to upload the files in the private folder linked to the user.","integrate-google-drive"):Z&&(ce=wp.i18n.__("Turn ON to search the private files and folders linked to the user.","integrate-google-drive"));var se=jr(zr(null),2),de=se[0],ue=se[1],me=Lr(),ge=jr(zr(null),2),pe=ge[0],fe=ge[1],ve=Lr();return React.createElement("div",{className:"shortcode-module-body content-sources"},!v&&!Y&&!$&&!ee&&!te&&!G&&!c&&!g&&React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("All Folders & Files","integrate-google-drive")," "),React.createElement("div",{className:"settings-field-content"},React.createElement(Tr,{checked:w,onChange:function(){return l(xr(xr({},r),{},{allFolders:!w}))}}),React.createElement("span",{className:"description"},wp.i18n.__("If turned ON, users can navigate through all the folders & files of all the linked Google Drive accounts.","integrate-google-drive"),React.createElement("br",null),wp.i18n.__("Otherwise, to select specific folders & files turn off this option.","integrate-google-drive")))),d&&React.createElement("h3",{className:"igd-settings-body-title"},wp.i18n.__("User Private Folders","integrate-google-drive")),!!le&&React.createElement("div",{className:"settings-field field-private-folder"},React.createElement("h4",{className:"settings-field-label"},G?wp.i18n.__("Use Private Folder","integrate-google-drive"):wp.i18n.__("Use Private Files","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(Tr,{"data-tip":wp.i18n.__("PRO Feature","integrate-google-drive"),checked:n&&R,onChange:function(){n?l(xr(xr({},r),{},{privateFolders:!R})):j(wp.i18n.__("Upgrade to Pro to use User Private Folders","integrate-google-drive"))}}),!n&&React.createElement(Hr,{effect:"solid",place:"right",backgroundColor:"#FF9F10",className:"igd-tooltip"}),React.createElement("p",{className:"description"},ce,React.createElement("a",{href:"https://softlabbd.com/docs/how-to-use-and-enable-private-folders-automatically-link-manually/",target:"_blank",className:""},wp.i18n.__("Documentation","integrate-google-drive"),React.createElement("i",{className:"dashicons dashicons-editor-help"}))),!!R&&React.createElement("div",{className:"settings-field-sub"},React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Create Private Folder","integrate-google-drive")," "),React.createElement("div",{className:"settings-field-content"},React.createElement(Tr,{"data-tip":wp.i18n.__("PRO Feature","integrate-google-drive"),checked:n&&N,onChange:function(){n?l(xr(xr({},r),{},{createPrivateFolder:!N})):j(wp.i18n.__("Upgrade to Pro to use User Private Folders","integrate-google-drive"))}}),!n&&React.createElement(Hr,{effect:"solid",place:"right",backgroundColor:"#FF9F10",className:"igd-tooltip"}),React.createElement("p",{className:"description"},wp.i18n.__("Turn ON to create and link a folder automatically to the user who has not linked any folder yet while the user will view the module.","integrate-google-drive"))),!!N&&React.createElement(React.Fragment,null,React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Naming template","integrate-google-drive")," "),React.createElement("div",{className:"settings-field-content"},React.createElement("input",{"data-tip":wp.i18n.__("PRO Feature","integrate-google-drive"),type:"text",value:C,onChange:function(e){igd.isPro?l(xr(xr({},r),{},{nameTemplate:e.target.value})):j(wp.i18n.__("Upgrade to PRO to enable auto private folders creation for the user.","integrate-google-drive"))},onSelect:function(e){return ue(e.target.selectionStart)},onFocus:function(e){return jQuery(e.target).closest(".settings-field-content").addClass("active")},onBlur:function(e){return jQuery(e.target).closest(".settings-field-content").removeClass("active")},ref:me}),!n&&React.createElement(Hr,{effect:"solid",place:"left",backgroundColor:"#FF9F10",className:"igd-tooltip"}),React.createElement("p",{className:"description"},wp.i18n.__("Set the folder name template for the automatically created private folders.","integrate-google-drive")),React.createElement("div",{className:"template-tags"},React.createElement("div",{className:"template-tags-title",onClick:function(e){return jQuery(e.target).closest(".template-tags-title").toggleClass("active")}},React.createElement("i",{className:"dashicons dashicons-arrow-down-alt2"}),React.createElement("span",null,wp.i18n.__("Available template tags","integrate-google-drive")),React.createElement("span",null,wp.i18n.__(" (click to insert)","integrate-google-drive"))),React.createElement("div",{className:"template-tags-list"},re.map((function(e,t){if("boolean"!=typeof e)return""===e?React.createElement("span",{className:"tag-break"}):React.createElement("span",{className:"tag",key:t,onClick:function(){if(igd.isPro){var t;t=(t=null!==de?C.slice(0,de)+e+" "+C.slice(de):C+" "+e).trim(),l(xr(xr({},r),{},{nameTemplate:t}));var n=de+e.length+1;me.current.setSelectionRange(n,n)}else j(wp.i18n.__("Upgrade to PRO to enable auto private folders creation.","integrate-google-drive"))}},e)}))))),React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Parent Folder","integrate-google-drive")," "),React.createElement("div",{className:"settings-field-content"},React.createElement("div",{className:"template-folder-wrap"},!!k&&React.createElement("div",{className:"template-folder"},React.createElement("div",{className:"template-folder-account"},igd.accounts[k.accountId].email),React.createElement("div",{className:"template-folder-item"},k.iconLink?React.createElement("img",{src:k.iconLink}):React.createElement("i",{className:"dashicons dashicons-category"}),React.createElement("span",{className:"template-folder-name"},k.name?k.name:E(k,igd.accounts[k.accountId]))),React.createElement("div",{className:"dashicons dashicons-no-alt",onClick:function(){return l(xr(xr({},r),{},{parentFolder:null}))}},React.createElement("span",{className:"screen-reader-text"},wp.i18n.__("Remove","integrate-google-drive")))),React.createElement("button",{"data-tip":wp.i18n.__("PRO Feature","integrate-google-drive"),className:"igd-btn ".concat(L?"btn-warning":"btn-primary"),onClick:function(){n?M(!L):j(wp.i18n.__("Upgrade to PRO to enable auto private folders creation for the user.","integrate-google-drive"))}},React.createElement("i",{className:"dashicons dashicons-open-folder"}),L?React.createElement("span",null,wp.i18n.__("Cancel","integrate-google-drive")):React.createElement("span",null,k?wp.i18n.__("Change Parent Folder","integrate-google-drive"):wp.i18n.__("Select Parent Folder","integrate-google-drive"))),!n&&React.createElement(Hr,{effect:"solid",place:"right",backgroundColor:"#FF9F10",className:"igd-tooltip"})),React.createElement("p",{className:"description"},wp.i18n.__("Select the parent folder where the automatically created private folders will be created.","integrate-google-drive"))),!!L&&n&&React.createElement("div",{id:"igd-select-files",className:"igd-module-builder-modal-wrap inline-select"},React.createElement(na,{value:{editData:{folders:[]},setEditData:function(e){var t=e.folders,n=void 0===t?[]:t;l((function(e){return xr(xr({},e),{},{parentFolder:n[0]})})),M(!1)},isEditor:!0,isInlineSelect:!0,isSelectFiles:!0,selectionType:"parent",initParentFolder:p,initFolders:f}},React.createElement(al,null))),React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Template Folder","integrate-google-drive")," "),React.createElement("div",{className:"settings-field-content"},React.createElement("div",{className:"template-folder-wrap"},!!A&&React.createElement("div",{className:"template-folder"},React.createElement("div",{className:"template-folder-account"},igd.accounts[A.accountId].email),React.createElement("div",{className:"template-folder-item"},A.iconLink?React.createElement("img",{src:A.iconLink}):React.createElement("i",{className:"dashicons dashicons-category"}),React.createElement("span",{className:"template-folder-name"},A.name?A.name:E(A,igd.accounts[A.accountId]))),React.createElement("div",{className:"dashicons dashicons-no-alt",onClick:function(){return l(xr(xr({},r),{},{templateFolder:null}))}},React.createElement("span",{className:"screen-reader-text"},wp.i18n.__("Remove","integrate-google-drive")))),React.createElement("button",{"data-tip":wp.i18n.__("PRO Feature","integrate-google-drive"),className:"igd-btn ".concat(H?"btn-warning":"btn-primary"),onClick:function(){n?K(!H):j(wp.i18n.__("Upgrade to Pro to use User Private Folders","integrate-google-drive"))}},React.createElement("i",{className:"dashicons dashicons-open-folder"}),H?React.createElement("span",null,wp.i18n.__("Cancel","integrate-google-drive")):React.createElement("span",null,A?wp.i18n.__("Change Template Folder","integrate-google-drive"):wp.i18n.__("Select Template Folder","integrate-google-drive"))),!n&&React.createElement(Hr,{effect:"solid",place:"right",backgroundColor:"#FF9F10",className:"igd-tooltip"})),!!k&&!!A&&k.accountId!==A.accountId&&React.createElement("div",{className:"template-folder-error"},React.createElement("i",{className:"dashicons dashicons-warning"}),React.createElement("span",null,wp.i18n.__("Template folder and parent folder must be from the same account.","integrate-google-drive"))),!!k&&!!A&&k.id===A.id&&React.createElement("div",{className:"template-folder-error"},React.createElement("i",{className:"dashicons dashicons-warning"}),React.createElement("span",null,wp.i18n.__("Template folder and parent folder can't be the same.","integrate-google-drive"))),React.createElement("p",{className:"description"},wp.i18n.__("Select the template folder that will be copied to the new private folder.","integrate-google-drive"))),!!H&&n&&React.createElement("div",{id:"igd-select-files",className:"igd-module-builder-modal-wrap inline-select"},React.createElement(na,{value:{editData:{folders:[]},setEditData:function(e){var t=e.folders,n=void 0===t?[]:t;l((function(e){return xr(xr({},e),{},{templateFolder:n[0]})})),K(!1)},isEditor:!0,isInlineSelect:!0,isSelectFiles:!0,selectionType:"template",initParentFolder:p,initFolders:f}},React.createElement(al,null))),React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Merge Folders","integrate-google-drive")," "),React.createElement("div",{className:"settings-field-content"},React.createElement(Tr,{"data-tip":wp.i18n.__("PRO Feature","integrate-google-drive"),checked:P,onChange:function(){n?l(xr(xr({},r),{},{mergePrivateFolders:!P})):j(wp.i18n.__("Upgrade to PRO to create private folders.","integrate-google-drive"))}}),React.createElement("p",{className:"description"},wp.i18n.__("Allow merging folders if a folder with the same name already exists.","integrate-google-drive")))))))),!!d&&React.createElement("h3",{className:"igd-settings-body-title form-entry-title"},wp.i18n.__("Form Entry Folders","integrate-google-drive")),!!d&&React.createElement("div",{className:"settings-field form-entry-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Create Entry Folders","integrate-google-drive")," "),React.createElement("div",{className:"settings-field-content"},React.createElement(Tr,{"data-tip":wp.i18n.__("PRO Feature","integrate-google-drive"),checked:I,onChange:function(){n?l(xr(xr({},r),{},{createEntryFolders:!I})):j(wp.i18n.__("Upgrade to Pro to create entry folders","integrate-google-drive"))}}),!n&&React.createElement(Hr,{effect:"solid",place:"right",backgroundColor:"#FF9F10",className:"igd-tooltip"}),React.createElement("p",{className:"description"},wp.i18n.__("Create a folder for each form entry.","integrate-google-drive")),!!I&&React.createElement("div",{className:"settings-field-sub"},React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Name template","integrate-google-drive")," "),React.createElement("div",{className:"settings-field-content"},React.createElement("input",{type:"text",value:T,onChange:function(e){igd.isPro?l(xr(xr({},r),{},{entryFolderNameTemplate:e.target.value})):j(wp.i18n.__("Upgrade to PRO to create form entry folders.","integrate-google-drive"))},onSelect:function(e){return fe(e.target.selectionStart)},ref:ve}),React.createElement("p",{className:"description"},wp.i18n.__("Set the form entry folder name template.","integrate-google-drive")),React.createElement("div",{className:"template-tags"},React.createElement("div",{className:"template-tags-title",onClick:function(e){return jQuery(e.target).closest(".template-tags-title").toggleClass("active")}},React.createElement("i",{className:"dashicons dashicons-arrow-down-alt2"}),React.createElement("span",null,wp.i18n.__("Available template tags","integrate-google-drive")),React.createElement("span",null,wp.i18n.__(" (click to insert)","integrate-google-drive"))),React.createElement("div",{className:"template-tags-list"},oe.map((function(e,t){if("boolean"!=typeof e)return""===e?React.createElement("span",{className:"tag-break"}):React.createElement("span",{className:"tag",key:t,onClick:function(){if(igd.isPro){var t;t=(t=null!==pe?T.slice(0,pe)+e+" "+T.slice(pe):T+" "+e).trim(),l(xr(xr({},r),{},{entryFolderNameTemplate:t}));var n=pe+e.length+1;ve.current.setSelectionRange(n,n)}else j(wp.i18n.__("Upgrade to PRO to enable auto entry folders creation.","integrate-google-drive"))}},e)}))),"cf7"===d&&React.createElement("div",{className:"igd-notice igd-notice-info"},React.createElement("div",{className:"igd-notice-content"},wp.i18n.__("You can also use the form field names to rename the upload folder with the form field values.","integrate-google-drive"),React.createElement("br",null),React.createElement("br",null),React.createElement("strong",null,wp.i18n.__("For example: ","integrate-google-drive")),wp.i18n.__('If you have a field with the name "your-name" and a field with the name "your-email", you can use the tags %field_your-name% and %field_your-email% to rename the upload folder.',"integrate-google-drive"))),["fluentforms","metform"].includes(d)&&React.createElement("div",{className:"igd-notice igd-notice-info"},React.createElement("div",{className:"igd-notice-content"},wp.i18n.__("You can also use the form field name attributes to rename the upload folder with the form field values.","integrate-google-drive"),React.createElement("br",null),React.createElement("br",null),React.createElement("strong",null,wp.i18n.__("For example: ","integrate-google-drive")),wp.i18n.__('If you have a field with the FIELD NAME attribute "your-name" and a field with the name attribute "your-email", you can use the tags %field_your-name% and %field_your-email% to rename the upload folder.',"integrate-google-drive"))),["wpforms","gravityforms","formidableforms"].includes(d)&&React.createElement("div",{className:"igd-notice igd-notice-info"},React.createElement("div",{className:"igd-notice-content"},wp.i18n.__("You can also use the form FIELD ID to rename the upload folder with the form field values.","integrate-google-drive"),React.createElement("br",null),React.createElement("br",null),React.createElement("strong",null,wp.i18n.__("For example: ","integrate-google-drive")),wp.i18n.__("If you have a field with the ID 1, you can use the tag %field_id_1% to rename the upload folder.","integrate-google-drive"))),"ninjaforms"===d&&React.createElement("div",{className:"igd-notice igd-notice-info"},React.createElement("div",{className:"igd-notice-content"},wp.i18n.__("You can also use the form FIELD KEY  to rename the upload folder with the form field values.","integrate-google-drive"),React.createElement("br",null),React.createElement("br",null),React.createElement("strong",null,wp.i18n.__("For example: ","integrate-google-drive")),wp.i18n.__('If you have a field with the key "your-name" and a field with the key "your-email", you can use the tags %field_your-name% and %field_your-email% to rename the upload folder.',"integrate-google-drive"))),"elementor"===d&&React.createElement("div",{className:"igd-notice igd-notice-info"},React.createElement("div",{className:"igd-notice-content"},wp.i18n.__("You can also use the field ID  to rename the upload folder with the form field values.","integrate-google-drive"),React.createElement("br",null),React.createElement("br",null),React.createElement("strong",null,wp.i18n.__("For example: ","integrate-google-drive")),wp.i18n.__('If you have a field with the id "name" and a field with the key "field_12ca45", you can use the tags %name% and %field_12ca45% to rename the upload folder.',"integrate-google-drive")))))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Merge Folders","integrate-google-drive")," "),React.createElement("div",{className:"settings-field-content"},React.createElement(Tr,{"data-tip":wp.i18n.__("PRO Feature","integrate-google-drive"),checked:B,onChange:function(){n?l(xr(xr({},r),{},{mergeFolders:!B})):j(wp.i18n.__("Upgrade to Pro to create entry folders","integrate-google-drive"))}}),React.createElement("p",{className:"description"},wp.i18n.__("Allow merging folders if a folder with the same name already exists, and upload files into that existing folder instead of creating a new one.","integrate-google-drive"))))))),(!w||!!c||!!g)&&!R&&React.createElement("div",{ref:ne,className:"igd-select-sources-wrap"},!g&&React.createElement("div",{className:"source-title-wrap"},!!ie&&React.createElement("h3",{className:"igd-select-sources-title"},ie),!!ae&&React.createElement("p",{className:"igd-select-sources-description"},ae)),React.createElement($i,{isShortcodeBuilder:!0,shortcodeBuilderType:h,isSelectFiles:c,selectionType:u,isLMS:g,isWooCommerce:v,setSelectedFolders:function(e){g&&o(e),l(xr(xr({},r),{},{folders:Fr(e).filter((function(e,t,n){return t===n.findIndex((function(t){return e.id?t.id===e.id:t===e}))}))}))},selectedFolders:_,initParentFolder:Q,initFolders:f}),!s&&!g&&React.createElement("div",{className:"igd-selected-list"},React.createElement("div",{className:"igd-selected-list-header"},React.createElement("span",{className:"header-title"},"(",_.length,") ",wp.i18n._n("Item Selected","Items Selected",_.length,"integrate-google-drive")),!!_&&!!_.length&&React.createElement("button",{className:"igd-btn btn-danger",onClick:function(){return l(xr(xr({},r),{},{folders:[]}))}},React.createElement("span",null,wp.i18n.__("Clear","integrate-google-drive")))),!!_.length&&_.sort((function(e,t){return b(e)&&!b(t)?-1:!b(e)&&b(t)?1:0})).map((function(e,t){var n=e.iconLink,i=e.name,a=e.accountId;return React.createElement("div",{className:"selected-item"},React.createElement("span",{className:"selected-item-index"},t+1,"."),React.createElement("div",{className:"file-item",onClick:function(){e.parents&&V((function(t){return xr(xr({},t),{},{id:e.parents[0],accountId:e.accountId})}))}},n?React.createElement("img",{src:n}):React.createElement("i",{className:"dashicons dashicons-category"}),React.createElement("span",{className:"item-name"},i||E(e,igd.accounts[a]))),React.createElement("span",{className:"remove-item dashicons dashicons-no-alt",onClick:function(){return l(xr(xr({},r),{},{folders:_.filter((function(t){return t!==e}))}))}}))})),(!_||!_.length)&&React.createElement("div",{className:"no-files-message"},React.createElement("i",{className:"dashicons dashicons-info"}),React.createElement("span",null,wp.i18n.__("No items selected","integrate-google-drive"),".")),G&&React.createElement("p",null,wp.i18n.__("Choose a single upload folder for file uploads.","integrate-google-drive"),!!_.length&&React.createElement("span",null,wp.i18n.__("To change it, deselect the current folder and select a new one.","integrate-google-drive"))),$&&React.createElement("p",null,wp.i18n.__("If folder is selected, all the files of the folder will be embedded.","integrate-google-drive"),React.createElement("br",null),React.createElement("b",null,"Note:")," ",wp.i18n.__("Embed files must be public","integrate-google-drive")))))}function Wr(e){return Wr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wr(e)}function Qr(e){return function(e){if(Array.isArray(e))return Vr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Vr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Vr(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function qr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Gr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qr(Object(n),!0).forEach((function(t){Yr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Yr(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Wr(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==Wr(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Wr(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Jr=wp.components,Xr=Jr.FormToggle,Zr=Jr.CheckboxControl,$r=React.useContext;function eo(){var e=$r(ta),t=e.editData,n=e.setEditData,i=e.isFormBuilder,a=t.allowExtensions,r=t.allowAllExtensions,o=t.allowExceptExtensions,l=t.allowNames,c=t.allowAllNames,s=t.allowExceptNames,d=t.nameFilterOptions,u=void 0===d?["files"]:d,m=t.showFiles,g=void 0===m||m,p=t.showFolders,f=void 0===p||p,v=t.type,h=t.maxFileSize,w=t.maxFiles,y=t.minFiles,b=t.minFileSize,_=t.fileNumbers,E="uploader"===v,R="browser"===v,N="gallery"===v,S="embed"===v,C="search"===v,O="media"===v,k="slider"===v;return React.createElement("div",{className:"shortcode-module-body"},(R||N||C)&&React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Show Files","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(Xr,{checked:g,onChange:function(){return n(Gr(Gr({},t),{},{showFiles:!g}))}}),React.createElement("p",{className:"description"},wp.i18n.__("If turned off, files won't show.","integrate-google-drive")))),(R||N||C)&&React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Show Folders","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(Xr,{checked:f,onChange:function(){return n(Gr(Gr({},t),{},{showFolders:!f}))}}),React.createElement("p",{className:"description"},wp.i18n.__("If turned off, folders won't show.","integrate-google-drive")))),React.createElement("div",{className:"settings-field filter-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Allowed Extensions","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement("div",{className:"filter-field-input"},React.createElement("input",{type:"text",disabled:r,value:a,onChange:function(e){return n(Gr(Gr({},t),{},{allowExtensions:e.target.value}))}}),React.createElement("p",{className:"description"},wp.i18n.sprintf(wp.i18n.__('Enter comma ( , ) seperated file extensions to allow, such as "jpg, png, gif". Leave empty to %s all extension files.',"integrate-google-drive"),E?wp.i18n.__("upload","integrate-google-drive"):wp.i18n.__("show","integrate-google-drive")))),React.createElement("div",{className:"filter-field-all"},React.createElement("div",null,React.createElement("h4",{className:"filter-field-all-label"},wp.i18n.__("Allow all : ","integrate-google-drive")," "),React.createElement(Xr,{checked:r,onChange:function(){return n(Gr(Gr({},t),{},{allowAllExtensions:!r}))}})),React.createElement("div",null,React.createElement("h4",{className:"filter-field-all-label"},wp.i18n.__("Except : ","integrate-google-drive")),React.createElement("input",{type:"text",disabled:!r,value:o,onChange:function(e){return n(Gr(Gr({},t),{},{allowExceptExtensions:e.target.value}))}})),React.createElement("p",{className:"description"},wp.i18n.sprintf(wp.i18n.__('When "Allow all" is enabled, exceptions will not be %s.',"integrate-google-drive"),E?wp.i18n.__("uploaded","integrate-google-drive"):wp.i18n.__("displayed","integrate-google-drive")))))),(R||N||S||C||O||k)&&React.createElement("div",{className:"settings-field filter-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Allowed Names","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement("div",{className:"filter-field-input"},React.createElement("input",{type:"text",disabled:c,value:l,onChange:function(e){return n(Gr(Gr({},t),{},{allowNames:e.target.value}))}}),React.createElement("p",{className:"description"},wp.i18n.sprintf(wp.i18n.__("Enter file and folder names, separated by commas, to display. Leave blank to display all files and folders.","integrate-google-drive")))),React.createElement("div",{className:"filter-field-all"},React.createElement("div",null,React.createElement("h4",{className:"filter-field-all-label"},wp.i18n.__("Allow all : ","integrate-google-drive")," "),React.createElement(Xr,{checked:c,onChange:function(){return n(Gr(Gr({},t),{},{allowAllNames:!c}))}})),React.createElement("div",null,React.createElement("h4",{className:"filter-field-all-label"},wp.i18n.__("Except : ","integrate-google-drive")),React.createElement("input",{type:"text",disabled:!c,value:s,onChange:function(e){return n(Gr(Gr({},t),{},{allowExceptNames:e.target.value}))}})),React.createElement("p",{className:"description"},wp.i18n.__('When "Allow all" is enabled, exceptions will not be displayed.',"integrate-google-drive")),React.createElement("div",{className:"igd-notice igd-notice-info"},React.createElement("div",{className:"igd-notice-content"},wp.i18n.__("You can use the * and ? wildcards to match multiple characters and single characters respectively.","integrate-google-drive"),React.createElement("br",null),React.createElement("strong",null,wp.i18n.__("For example:","integrate-google-drive")),React.createElement("ul",null,React.createElement("li",null,React.createElement("strong",null,"report*, *.txt")," ",wp.i18n.__("will match all files that start with report and have the .txt extension.","integrate-google-drive")),React.createElement("li",null,React.createElement("strong",null,"file?, image_*")," ",wp.i18n.__('will match all files that start with file like "file1", "file2", and all files that start with image_.',"integrate-google-drive"))))),React.createElement("div",{className:"name-filter-option"},React.createElement("h4",{className:"name-filter-option-label"},wp.i18n.__("Apply to : ","integrate-google-drive")," "),["files","folders"].map((function(e){return React.createElement("div",{key:e,className:"name-filter-option-item"},React.createElement(Zr,{label:e,checked:u.includes(e),onChange:function(){u.includes(e)?n(Gr(Gr({},t),{},{nameFilterOptions:u.filter((function(t){return t!==e}))})):n(Gr(Gr({},t),{},{nameFilterOptions:[].concat(Qr(u),[e])}))}}))})),React.createElement("p",{className:"description"},wp.i18n.__("Select the type of files to apply the name filters.","integrate-google-drive")))))),(R||N||C||O||k)&&React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Maximum File Numbers","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement("input",{type:"number",min:1,max:1e3,value:_,onChange:function(e){return n(Gr(Gr({},t),{},{fileNumbers:e.target.value}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Enter the maximum number of how many files you want to show. Leave empty to show all files.","integrate-google-drive")))),E&&React.createElement(React.Fragment,null,React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Max File Uploads","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement("input",{type:"number",min:1,value:w,onChange:function(e){var i=e.target.value;i=i.replace(/[^0-9]/g,""),n(Gr(Gr({},t),{},{maxFiles:i}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Enter the max number of files to upload at once. Leave empty for no limit.","integrate-google-drive")))),i&&"metform"!==i&&React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Min File Uploads","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement("input",{type:"number",min:1,value:y,onChange:function(e){var i=e.target.value;i=i.replace(/[^0-9]/g,""),n(Gr(Gr({},t),{},{minFiles:i}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Enter the minimum number of files to upload. Leave empty for no limit.","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Max File Size (MB)","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement("input",{type:"number",min:0,value:h,onChange:function(e){var i=e.target.value;i=i.replace(/[^0-9]/g,""),n(Gr(Gr({},t),{},{maxFileSize:i}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Enter the maximum upload file size (MB).","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Min File Size (MB)","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement("input",{type:"number",min:0,value:b,onChange:function(e){var i=e.target.value;i=i.replace(/[^0-9]/g,""),n(Gr(Gr({},t),{},{minFileSize:i}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Enter the minimum upload file size (MB).","integrate-google-drive"))))))}function to(e){return to="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},to(e)}function no(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,a,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=r.call(n)).done)&&(l.push(i.value),l.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw a}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return io(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return io(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function io(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function ao(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function ro(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ao(Object(n),!0).forEach((function(t){oo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ao(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function oo(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==to(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==to(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===to(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var lo=wp.components,co=lo.ButtonGroup,so=lo.Button,uo=lo.FormToggle,mo=lo.RangeControl,go=lo.SelectControl,po=lo.TextControl,fo=lo.__experimentalRadio,vo=lo.__experimentalRadioGroup,ho=React,wo=ho.useState,yo=ho.useContext,bo=ho.useEffect,_o=ho.useRef;function Eo(){var e=igd.isPro,t=yo(ta),n=t.editData,i=t.setEditData,a=t.isFormBuilder,r=t.isWooCommerce,o={name:wp.i18n.__("Name","integrate-google-drive"),size:wp.i18n.__("Size","integrate-google-drive"),created:wp.i18n.__("Created Date","integrate-google-drive"),updated:wp.i18n.__("Modified Date","integrate-google-drive"),random:wp.i18n.__("Random","integrate-google-drive")},l={asc:wp.i18n.__("Ascending","integrate-google-drive"),desc:wp.i18n.__("Descending","integrate-google-drive")},c=n.moduleWidth,s=void 0===c?"100%":c,d=n.moduleHeight,u=void 0===d?"":d,m=n.embedWidth,g=void 0===m?"100%":m,p=n.embedHeight,f=void 0===p?"480px":p,v=n.galleryHeight,h=void 0===v?300:v,w=n.galleryMargin,y=void 0===w?5:w,b=n.galleryColumns,_=void 0===b?{xs:1,sm:2,md:3,lg:4,xl:5}:b,E=n.galleryView,R=void 0===E?"rounded":E,N=n.galleryLayout,S=void 0===N?"justified":N,C=n.galleryFolderView,O=void 0===C?"title":C,k=n.galleryAspectRatio,F=void 0===k?"1/1":k,A=n.galleryOverlay,x=void 0===A||A,P=n.galleryOverlayTitle,I=void 0===P||P,D=n.galleryOverlayDescription,T=void 0===D||D,B=n.galleryOverlaySize,U=void 0!==B&&B,L=n.galleryImageSize,M=void 0===L?"medium":L,z=n.galleryCustomSizeWidth,H=n.galleryCustomSizeHeight,K=n.showHeader,W=void 0===K||K,Q=n.showBreadcrumbs,V=void 0===Q||Q,q=n.directImage,G=void 0!==q&&q,Y=n.showFileName,J=void 0!==Y&&Y,X=n.allowEmbedPopout,Z=void 0===X||X,$=n.embedType,ee=void 0===$?"readOnly":$,te=n.showRefresh,ne=void 0===te||te,ie=n.showSorting,ae=void 0===ie||ie,re=n.showPlaylist,oe=void 0===re||re,le=n.openedPlaylist,ce=void 0===le||le,se=n.playlistAutoplay,de=void 0===se||se,ue=n.playlistThumbnail,me=void 0===ue||ue,ge=n.playlistNumber,pe=void 0===ge||ge,fe=n.playlistPosition,ve=void 0===fe?"left":fe,he=n.nextPrevious,we=void 0===he||he,ye=n.rewindForward,be=void 0!==ye&&ye,_e=n.allowEmbedPlayer,Ee=n.sort,Re=void 0===Ee?{sortBy:"name",sortDirection:"asc"}:Ee,Ne=n.view,Se=void 0===Ne?"list":Ne,Ce=n.lazyLoad,Oe=void 0===Ce||Ce,ke=n.lazyLoadNumber,Fe=void 0===ke?100:ke,Ae=n.showLastModified,xe=void 0!==Ae&&Ae,Pe=n.type,je=n.openNewTab,Ie=void 0===je||je,De=n.uploadImmediately,Te=n.enableFolderUpload,Be=n.overwrite,Ue=n.uploadFileName,Le=void 0===Ue?"%file_name%%file_extension%":Ue,Me=n.showUploadLabel,ze=n.uploadLabelText,He=void 0===ze?wp.i18n.__("Upload Files","integrate-google-drive"):ze,Ke=n.showUploadConfirmation,We=void 0===Ke?e:Ke,Qe=n.uploadConfirmationMessage,Ve=void 0===Qe?"<h3>".concat(wp.i18n.__("Upload successful!","integrate-google-drive"),"</h3><p>").concat(wp.i18n.__("Your file(s) have been uploaded. Thank you for your submission!","integrate-google-drive"),"</p>"):Qe,qe=n.slideName,Ge=void 0===qe||qe,Ye=n.slideDescription,Je=void 0!==Ye&&Ye,Xe=n.slideHeight,Ze=void 0===Xe?"300px":Xe,$e=n.sliderImageSize,et=void 0===$e?"medium":$e,tt=n.sliderCustomSizeWidth,nt=n.sliderCustomSizeHeight,it=n.slidesPerPage,at=void 0===it?{xs:1,sm:2,md:3,lg:4,xl:5}:it,rt=n.slideAutoplay,ot=void 0===rt||rt,lt=n.slideAutoplaySpeed,ct=void 0===lt?3e3:lt,st=n.slideDots,dt=void 0===st||st,ut=n.slideArrows,mt=void 0===ut||ut,gt=n.slideGap,pt=void 0===gt?5:gt,ft=n.woocommerceRedirect,vt=n.woocommerceAddPermission,ht="browser"===Pe,wt="uploader"===Pe,yt="gallery"===Pe,bt="search"===Pe,_t="media"===Pe,Et="view"===Pe,Rt="embed"===Pe,Nt="slider"===Pe,St="upload-confirmation-message",Ct={tinymce:{wpautop:!0,toolbar1:"formatselect,bold,italic,strikethrough,forecolor,backcolor,bullist,numlist,blockquote,hr,alignleft,aligncenter,alignright,link,unlink,media,spellchecker,fullscreen,wp_adv",toolbar2:"underline,alignjustify,forecolor,pastetext,removeformat,charmap,outdent,indent,undo,redo,wp_help",plugins:"lists,fullscreen,paste,wpautoresize,wpdialogs,wpeditimage,wpgallery,wplink,wptextpattern,wpview,wordpress,wpemoji,media,textcolor,hr",menubar:!1,branding:!1,height:250,wp_adv_height:48,setup:function(e){e.on("change",(function(){var t=e.getContent();i((function(e){return ro(ro({},e),{},{uploadConfirmationMessage:t})}))}))}},quicktags:{buttons:"strong,em,link,block,del,ins,img,ul,ol,li,code,close"},mediaButtons:!0};bo((function(){if(!document.body.classList.contains("et-fb")&&!a&&wt&&We&&e&&wp.editor)return setTimeout((function(){wp.editor.remove(St),wp.domReady((function(){return wp.editor.initialize(St,Ct)}))}),100),function(){document.getElementById(St)&&wp.editor.remove(St)}}),[We]);var Ot=no(wo(null),2),kt=Ot[0],Ft=Ot[1],At=_o(),xt=no(wo("lg"),2),Pt=xt[0],jt=xt[1];return React.createElement("div",{className:"shortcode-module-body"},!r&&!Nt&&!Rt&&!Et&&React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Module Container","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement("div",{className:"settings-field-sub"},React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Container Width","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement("input",{type:"text",value:s,onChange:function(e){return i(ro(ro({},n),{},{moduleWidth:e.target.value}))},placeholder:"100%"}),React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Container Height","integrate-google-drive")),React.createElement("input",{type:"text",value:u,onChange:function(e){return i(ro(ro({},n),{},{moduleHeight:e.target.value}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Set the module container width and height. You can use any valid CSS unit (pixels, percentage), eg '360px', '780px', '80%'. Keep blank for default value.","integrate-google-drive"))))))),Rt&&React.createElement(React.Fragment,null,React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Embed Iframe Width","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement("input",{type:"text",value:g,onChange:function(e){return i(ro(ro({},n),{},{embedWidth:e.target.value}))},placeholder:"100%"}),React.createElement("p",{className:"description"},wp.i18n.__("Set embed iframe width. You can use any valid CSS unit (pixels, percentage), eg '360px', '780px', '100%'. Keep blank for default value.","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Embed Iframe Height","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement("input",{type:"text",value:f,onChange:function(e){return i(ro(ro({},n),{},{embedHeight:e.target.value}))},placeholder:"480px"}),React.createElement("p",{className:"description"},wp.i18n.__("Set embed iframe height. You can use any valid CSS unit (pixels, percentage), eg '360px', '780px', '100%'. Keep blank for default value.","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Show File Name","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(uo,{checked:J,onChange:function(){return i(ro(ro({},n),{},{showFileName:!J}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Show/ hide the file name at the top of the file.","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Direct Media Display","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(uo,{"data-tip":wp.i18n.__("PRO Feature","integrate-google-drive"),checked:e&&G,onChange:function(){e?i(ro(ro({},n),{},{directImage:!G})):j(wp.i18n.__("Upgrade to Pro to display Audio, Video and Images directly without embed.","integrate-google-drive"))}}),!e&&React.createElement(ReactTooltip,{effect:"solid",place:"right",backgroundColor:"#FF9F10",className:"igd-tooltip"}),React.createElement("p",{className:"description"},wp.i18n.__("Display Audio, Video and Image files directly without embedding them into an iframe.","integrate-google-drive")),React.createElement("div",{className:"igd-notice igd-notice-info"},React.createElement("div",{className:"igd-notice-content"},React.createElement("p",{className:"description"},wp.i18n.__("Occasionally, audio and video files may not play correctly within an embedded player. Enable this option to resolve the issue by displaying media files directly, bypassing the embed.","integrate-google-drive")))))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Embed Type","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(vo,{"data-tip":wp.i18n.__("PRO Feature","integrate-google-drive"),label:"Embed Type",checked:e?ee:"readOnly",onChange:function(t){e?i(ro(ro({},n),{},{embedType:t})):j(wp.i18n.__("Upgrade to Pro to change the embed type.","integrate-google-drive"))}},React.createElement(fo,{value:"readOnly"},wp.i18n.__("Read Only","integrate-google-drive")),React.createElement(fo,{value:"editable"},wp.i18n.__("Editable","integrate-google-drive")),React.createElement(fo,{value:"fullEditable"},wp.i18n.__("Full Editable","integrate-google-drive"))),!e&&React.createElement(ReactTooltip,{effect:"solid",place:"right",backgroundColor:"#FF9F10",className:"igd-tooltip"}),React.createElement("p",{className:"description"},wp.i18n.__("Select the embed type for the selected documents.","integrate-google-drive")),React.createElement("div",{className:"igd-notice igd-notice-info"},React.createElement("div",{className:"igd-notice-content"},React.createElement("p",{className:"description"},React.createElement("strong",null,wp.i18n.__("Read Only","integrate-google-drive"))," - ",wp.i18n.__("The document will be displayed in a read-only mode.","integrate-google-drive"),React.createElement("br",null),React.createElement("strong",null,wp.i18n.__("Editable","integrate-google-drive"))," - ",wp.i18n.__("The document will be displayed in an editable mode. Users will be able to edit the document.","integrate-google-drive"),React.createElement("br",null),React.createElement("strong",null,wp.i18n.__("Full Editable","integrate-google-drive"))," - ",wp.i18n.__("The document will be displayed in an editable mode with extended edit tool-bars and features.","integrate-google-drive")),React.createElement("p",{className:"description"},React.createElement("strong",null,wp.i18n.__("Note:","integrate-google-drive"))," ",wp.i18n.__("The editable mode is only available for the editable Google Docs & Office Docs.","integrate-google-drive")))))),"readOnly"===ee&&React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Allow Pop-out","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(uo,{checked:Z,onChange:function(){return i(ro(ro({},n),{},{allowEmbedPopout:!Z}))}}),React.createElement("p",{className:"description"},wp.i18n.__("In the embed document view (e.g. a pdf) there is a pop-out button that when clicked will bring the user to the Google Drive view of the document, with full features to download, print, etc. ","integrate-google-drive")),React.createElement("div",{className:"igd-notice igd-notice-info"},React.createElement("div",{className:"igd-notice-content"},React.createElement("p",{className:"description"},wp.i18n.__("If the pop-out option is disabled, users will be able to view the embedded document only on your website and not on Google Drive.","integrate-google-drive"))))))),yt&&React.createElement(React.Fragment,null,React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Layout","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(co,{"data-tip":wp.i18n.__("PRO Feature","integrate-google-drive")},["justified","grid","masonry"].map((function(t){return React.createElement(so,{isPrimary:t===S,isSecondary:t!==S,onClick:function(){e?i(ro(ro({},n),{},{galleryLayout:t})):j(wp.i18n.__("Upgrade to change the gallery layout.","integrate-google-drive"))}},React.createElement("i",{className:"dashicons dashicons-grid-view"}),React.createElement("span",{style:{textTransform:"capitalize"}},t))}))),!e&&React.createElement(ReactTooltip,{effect:"solid",place:"right",backgroundColor:"#FF9F10",className:"igd-tooltip"}),React.createElement("p",{className:"description"},wp.i18n.__("Select the layout for the gallery.","integrate-google-drive")))),(!e||"justified"!==S)&&React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Columns","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement("div",{className:"column-devices"},React.createElement(co,{"data-tip":wp.i18n.__("PRO Feature","integrate-google-drive")},["xs","sm","md","lg","xl"].map((function(t){var n="xs"===t?"Mobile":"sm"===t?"Tablet":"md"===t?"Laptop":"lg"===t?"Desktop":"xl"===t?"Large Desktop":"";return React.createElement(so,{isPrimary:t===Pt,isSecondary:t!==Pt,onClick:function(){e?jt(t):j(wp.i18n.__("Upgrade to change the gallery column.","integrate-google-drive"))}},React.createElement("span",null,n))})))),React.createElement(mo,{"data-tip":wp.i18n.__("PRO Feature","integrate-google-drive"),value:_[Pt],onChange:function(t){e?i(ro(ro({},n),{},{galleryColumns:ro(ro({},_),{},oo({},Pt,t))})):j(wp.i18n.__("Upgrade to change the gallery column.","integrate-google-drive"))},min:1,max:24,marks:[{value:1,label:"1"},{value:4,label:"4"},{value:8,label:"8"},{value:12,label:"12"},{value:16,label:"16"},{value:20,label:"20"},{value:24,label:"24"}]}),!e&&React.createElement(ReactTooltip,{effect:"solid",place:"right",backgroundColor:"#FF9F10",className:"igd-tooltip"}),React.createElement("p",{className:"description"},wp.i18n.__("Set the number of columns to display on each device.","integrate-google-drive")))),"justified"===S&&React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Row Height","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(mo,{value:h,onChange:function(e){return i(ro(ro({},n),{},{galleryHeight:e}))},allowReset:!0,resetFallbackValue:300,min:0,max:1e3,marks:[{value:0,label:"0"},{value:1e3,label:"1000"}],step:10}),React.createElement("p",{className:"description"},wp.i18n.__("The ideal height you want your grid rows to be. It won't set it exactly to this as plugin adjusts the row height to get the correct width. Leave empty for default value.","integrate-google-drive")))),"grid"===S&&React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Aspect Ratio","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(co,null,["1/1","3/2","4/3","9/16","16/9","21/9"].map((function(e){return React.createElement(so,{isPrimary:e===F,isSecondary:e!==F,onClick:function(){return i(ro(ro({},n),{},{galleryAspectRatio:e}))}},React.createElement("span",null,e.replace("/",":")))}))),React.createElement("p",{className:"description"},wp.i18n.__("Select the aspect ratio for the gallery items.","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Margin","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(mo,{value:y,onChange:function(e){return i(ro(ro({},n),{},{galleryMargin:e}))},allowReset:!0,resetFallbackValue:5,min:0,max:100,marks:[{value:0,label:"0"},{value:100,label:"100"}]}),React.createElement("p",{className:"description"},wp.i18n.__("The margin between each image in the gallery. Leave empty for default value.","integrate-google-drive")))),React.createElement("div",{className:"settings-field field-gallery-image-size"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Image Thumbnail Size","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(go,{value:M,onChange:function(e){return i(ro(ro({},n),{},{galleryImageSize:e}))},options:[{label:wp.i18n.__("Small - 300x300","integrate-google-drive"),value:"small"},{label:wp.i18n.__("Medium - 600x400","integrate-google-drive"),value:"medium"},{label:wp.i18n.__("Large - 1024x768","integrate-google-drive"),value:"large"},{label:wp.i18n.__("Full","integrate-google-drive"),value:"full"},{label:wp.i18n.__("Custom","integrate-google-drive"),value:"custom"}]}),React.createElement("p",{className:"description"},wp.i18n.__("Select the thumbnail size for the gallery images.","integrate-google-drive")),"custom"===M&&React.createElement("div",{className:"settings-field-sub"},React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Custom Size","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement("div",{className:"gallery-custom-size-wrap"},React.createElement(po,{value:z,onChange:function(e){return i(ro(ro({},n),{},{galleryCustomSizeWidth:e}))},placeholder:wp.i18n.__("Width","integrate-google-drive"),type:"number",min:0}),React.createElement(po,{value:H,onChange:function(e){return i(ro(ro({},n),{},{galleryCustomSizeHeight:e}))},placeholder:wp.i18n.__("Height","integrate-google-drive"),type:"number",min:0})),React.createElement("p",{className:"description"},wp.i18n.__("Set the custom thumbnail size width and height for the gallery images.","integrate-google-drive"))))))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Thumbnail View","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(co,null,React.createElement(so,{isPrimary:"rounded"===R,isSecondary:"square"===R,onClick:function(){return i(ro(ro({},n),{},{galleryView:"rounded"}))}},React.createElement("i",{className:"dashicons dashicons-grid-view"}),React.createElement("span",null,wp.i18n.__("Rounded","integrate-google-drive"))),React.createElement(so,{isPrimary:"square"===R,isSecondary:"rounded"===R,onClick:function(){return i(ro(ro({},n),{},{galleryView:"square"}))}},React.createElement("i",{className:"dashicons dashicons-screenoptions"}),React.createElement("span",null,wp.i18n.__("Square","integrate-google-drive")))),React.createElement("p",{className:"description"},wp.i18n.__("Select the image thumbnail view style for the gallery.","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Folder View","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(co,null,React.createElement(so,{isPrimary:"title"===O,isSecondary:"thumbnail"===O,onClick:function(){return i(ro(ro({},n),{},{galleryFolderView:"title"}))}},React.createElement("i",{className:"dashicons dashicons-info"}),React.createElement("span",null,wp.i18n.__("Title","integrate-google-drive"))),React.createElement(so,{isPrimary:"thumbnail"===O,isSecondary:"title"===O,onClick:function(){return i(ro(ro({},n),{},{galleryFolderView:"thumbnail"}))}},React.createElement("i",{className:"dashicons dashicons-format-gallery"}),React.createElement("span",null,wp.i18n.__("Thumbnail","integrate-google-drive")))),React.createElement("p",{className:"description"},wp.i18n.__("Select the folders view style for the gallery.","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Show Overlay","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(uo,{checked:x,onChange:function(){return i(ro(ro({},n),{},{galleryOverlay:!x}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Show the image overlay on hover.","integrate-google-drive")),!!x&&React.createElement("div",{className:"settings-field-sub"},React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Show Title","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(uo,{checked:I,onChange:function(){return i(ro(ro({},n),{},{galleryOverlayTitle:!I}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Show the gallery item title on hover overlay.","integrate-google-drive")),React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Show Description","integrate-google-drive")),React.createElement(uo,{checked:T,onChange:function(){return i(ro(ro({},n),{},{galleryOverlayDescription:!T}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Show the gallery item description on hover overlay.","integrate-google-drive")),React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Show Size","integrate-google-drive")),React.createElement(uo,{checked:U,onChange:function(){return i(ro(ro({},n),{},{galleryOverlaySize:!U}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Show the gallery item size on hover overlay.","integrate-google-drive")))))))),(ht||bt)&&React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Browser View","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(co,null,React.createElement(so,{isPrimary:"grid"===Se,isSecondary:"list"===Se,onClick:function(){return i(ro(ro({},n),{},{view:"grid"}))}},React.createElement("i",{className:"dashicons dashicons-grid-view"}),React.createElement("span",null,wp.i18n.__("Grid","integrate-google-drive"))),React.createElement(so,{isPrimary:"list"===Se,isSecondary:"grid"===Se,onClick:function(){return i(ro(ro({},n),{},{view:"list"}))}},React.createElement("i",{className:"dashicons dashicons-list-view"}),React.createElement("span",null,wp.i18n.__("List","integrate-google-drive")))),React.createElement("p",{className:"description"},wp.i18n.__("Select the file browser view.","integrate-google-drive")),React.createElement("div",{className:"settings-field-sub"},"list"===Se&&React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Show Last Modified Field","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(uo,{checked:xe,onChange:function(){return i(ro(ro({},n),{},{showLastModified:!xe}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Show/ hide the file last modified date field in the list view.","integrate-google-drive"))))))),(ht||yt)&&React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Enable Lazy load","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(uo,{checked:Oe,onChange:function(){return i(ro(ro({},n),{},{lazyLoad:!Oe}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Enable/ disable files lazy load.","integrate-google-drive")),React.createElement("div",{className:"settings-field-sub"},Oe&&React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Lazy load number","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(mo,{value:Fe,onChange:function(e){return i(ro(ro({},n),{},{lazyLoadNumber:e}))},allowReset:!0,resetFallbackValue:100,min:0,max:1e3,marks:[{value:0,label:"0"},{value:1e3,label:"1000"}],step:10}),React.createElement("p",{className:"description"},wp.i18n.__("Set the number of files to load on each lazy load.","integrate-google-drive"))))))),(ht||yt)&&React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Show Header","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(uo,{checked:W,onChange:function(){return i(ro(ro({},n),{},{showHeader:!W}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Show/ hide the file browser header.","integrate-google-drive")),React.createElement("div",{className:"settings-field-sub"},W&&React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Show Breadcrumbs Navigation","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(uo,{checked:V,onChange:function(){return i(ro(ro({},n),{},{showBreadcrumbs:!V}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Show/ hide the breadcrumbs folder navigation in the header.","integrate-google-drive")))),W&&React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Show Refresh Button","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(uo,{checked:ne,onChange:function(){return i(ro(ro({},n),{},{showRefresh:!ne}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Show/ hide the refresh (sync) button in the header.","integrate-google-drive")))),W&&React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Show Sorting Button","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(uo,{checked:ae,onChange:function(){return i(ro(ro({},n),{},{showSorting:!ae}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Show/ hide the files sorting options button in the header","integrate-google-drive"))))))),_t&&React.createElement(React.Fragment,null,React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Allow Embed Player","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(uo,{checked:_e,onChange:function(){return i(ro(ro({},n),{},{allowEmbedPlayer:!_e}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Enable embed player for the large video files using Google Drive native player.","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Show Next & Previous","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(uo,{checked:we,onChange:function(){return i(ro(ro({},n),{},{nextPrevious:!we}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Show/hide the next & previous buttons in the player. Enables navigation between media items in the playlist.","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Show Rewind & Forward","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(uo,{checked:be,onChange:function(){return i(ro(ro({},n),{},{rewindForward:!be}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Show/hide the rewind & forward buttons in the player. Allows users to quickly skip backward or forward in the video.","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Show Playlist","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(uo,{checked:oe,onChange:function(){return i(ro(ro({},n),{},{showPlaylist:!oe}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Show/hide the playlist in the player.","integrate-google-drive")),oe&&React.createElement("div",{className:"settings-field-sub"},React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Opened Playlist","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(uo,{checked:ce,onChange:function(){return i(ro(ro({},n),{},{openedPlaylist:!ce}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Should be the playlist opened by default.","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Playlist Autoplay","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(uo,{checked:de,onChange:function(){return i(ro(ro({},n),{},{playlistAutoplay:!de}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Start playing next item automatically in the playlist once the current item is ended.","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Show Thumbnail","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(uo,{checked:me,onChange:function(){return i(ro(ro({},n),{},{playlistThumbnail:!me}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Show/hide the thumbnail in the playlist.","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Show Number Prefix","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(uo,{checked:pe,onChange:function(){return i(ro(ro({},n),{},{playlistNumber:!pe}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Show/hide the numeric prefix in the playlist items.","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Playlist Position","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(vo,{label:"Player Position",checked:ve,onChange:function(e){i(ro(ro({},n),{},{playlistPosition:e}))}},React.createElement(fo,{value:"left"},wp.i18n.__("Left","integrate-google-drive")),React.createElement(fo,{value:"right"},wp.i18n.__("Right","integrate-google-drive")),React.createElement(fo,{value:"bottom"},wp.i18n.__("Bottom","integrate-google-drive"))),React.createElement("p",{className:"description"},wp.i18n.__("Select the playlist position in the player.","integrate-google-drive")))))))),wt&&React.createElement(React.Fragment,null,React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Overwrite Files","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(uo,{checked:Be,onChange:function(){return i(ro(ro({},n),{},{overwrite:!Be}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Enable to overwrite files with the same name.","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Enable Folder Upload","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(uo,{checked:Te,onChange:function(){return i(ro(ro({},n),{},{enableFolderUpload:!Te}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Allow users to upload folders. A folder upload button will be added.","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Upload Immediately","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(uo,{checked:De,onChange:function(){return i(ro(ro({},n),{},{uploadImmediately:!De}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Start uploading files immediately after they are selected.","integrate-google-drive")),!!a&&React.createElement("div",{className:"igd-notice igd-notice-info"},React.createElement("div",{className:"igd-notice-content"},React.createElement("strong",null,wp.i18n.__("Note: ","integrate-google-drive")),wp.i18n.__("For multi-step forms, must be enabled this option to proceed to the next step.","integrate-google-drive"))))),!a&&!De&&React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Show Upload Confirmation","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(uo,{checked:We,onChange:function(){return i(ro(ro({},n),{},{showUploadConfirmation:!We}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Show/ hide the upload confirmation message after upload is complete.","integrate-google-drive")),We&&React.createElement("div",{className:"settings-field-sub"},React.createElement("div",{className:"settings-field field-upload-confirmation-message"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Confirmation Message","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement("p",{className:"description"},wp.i18n.__("Enter the upload confirmation message.","integrate-google-drive")),React.createElement("textarea",{value:Ve,id:"upload-confirmation-message",onChange:function(e){i((function(t){return ro(ro({},t),{},{uploadConfirmationMessage:e.target.value})}))}})))))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("File Rename","integrate-google-drive")," "),React.createElement("div",{className:"settings-field-content"},React.createElement("input",{type:"text",value:Le,onSelect:function(e){return Ft(e.target.selectionStart)},ref:At,onChange:function(e){i(ro(ro({},n),{},{uploadFileName:e.target.value}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Rename the uploaded file by adding suffix or prefix. You can use the available tags to rename the file.","integrate-google-drive")),React.createElement("div",{className:"template-tags"},React.createElement("div",{className:"template-tags-title",onClick:function(e){return jQuery(e.target).closest(".template-tags-title").toggleClass("active")}},React.createElement("i",{className:"dashicons dashicons-arrow-down-alt2"}),React.createElement("span",null,wp.i18n.__("Available tags","integrate-google-drive")),React.createElement("span",null,wp.i18n.__(" (click to insert)","integrate-google-drive"))),React.createElement("div",{className:"template-tags-list"},["%file_name%","%file_extension%","%queue_index%","","%post_id%","%post_title%","%post_slug%","%post_author%","%post_date%","%post_modified%","%post_type%","%post_status%","%post_category%","%post_tags%","%post_meta_{key}%","","%wc_product_name%","%wc_product_id%","%wc_product_sku%","%wc_product_slug%","%wc_product_price%","%wc_product_sale_price%","%wc_product_regular_price%","%wc_product_tags%","%wc_product_type%","%wc_product_status%","","%user_login%","%user_email%","%first_name%","%last_name%","%display_name%","%user_id%","%user_role%","%user_meta_{key}%","","%date%","%time%","%unique_id%"].map((function(e,t){return""===e?React.createElement("span",{className:"tag-break"}):React.createElement("span",{className:"tag",key:t,onClick:function(){var t;t=(t=null!==kt?Le.slice(0,kt)+e+" "+Le.slice(kt):Le+" "+e).trim(),i(ro(ro({},n),{},{uploadFileName:t}));var a=kt+e.length+1;At.current.setSelectionRange(a,a)}},e)})))))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Show Upload Label Text","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(uo,{checked:Me,onChange:function(){return i(ro(ro({},n),{},{showUploadLabel:!Me}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Show/ hide the uploader label text.","integrate-google-drive")),Me&&React.createElement("div",{className:"settings-field-sub"},React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Label Text","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement("input",{type:"text",value:He,onChange:function(e){return i(ro(ro({},n),{},{uploadLabelText:e.target.value}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Enter the uploader label text.","integrate-google-drive")))))))),Et&&React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Open in new tab","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(uo,{checked:Ie,onChange:function(){return i(ro(ro({},n),{},{openNewTab:!Ie}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Open a new tab for viewing the file.","integrate-google-drive")))),Nt&&React.createElement(React.Fragment,null,React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Slide Height","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement("input",{type:"text",value:Ze,onChange:function(e){i(ro(ro({},n),{},{slideHeight:e.target.value}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Set the height of the carousel slide. You can use any valid CSS unit (pixels, percentage), eg '360px', '780px', '80%'. Keep blank for default value.","integrate-google-drive")))),React.createElement("div",{className:"settings-field field-gallery-image-size"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Image Size","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(go,{value:et,onChange:function(e){return i(ro(ro({},n),{},{sliderImageSize:e}))},options:[{label:wp.i18n.__("Small - 300x300","integrate-google-drive"),value:"small"},{label:wp.i18n.__("Medium - 600x400","integrate-google-drive"),value:"medium"},{label:wp.i18n.__("Large - 1024x768","integrate-google-drive"),value:"large"},{label:wp.i18n.__("Full","integrate-google-drive"),value:"full"},{label:wp.i18n.__("Custom","integrate-google-drive"),value:"custom"}]}),React.createElement("p",{className:"description"},wp.i18n.__("Select the thumbnail size for the slider images.","integrate-google-drive")),"custom"===et&&React.createElement("div",{className:"settings-field-sub"},React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Custom Size","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement("div",{className:"gallery-custom-size-wrap"},React.createElement(po,{value:tt,onChange:function(e){return i(ro(ro({},n),{},{sliderCustomSizeWidth:e}))},placeholder:wp.i18n.__("Width","integrate-google-drive"),type:"number",min:0}),React.createElement(po,{value:nt,onChange:function(e){return i(ro(ro({},n),{},{sliderCustomSizeHeight:e}))},placeholder:wp.i18n.__("Height","integrate-google-drive"),type:"number",min:0})),React.createElement("p",{className:"description"},wp.i18n.__("Set the custom thumbnail size width and height for the slider images.","integrate-google-drive"))))))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Slides per Page","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement("div",{className:"column-devices"},React.createElement(co,null,["xs","sm","md","lg","xl"].map((function(e){var t="xs"===e?"Mobile":"sm"===e?"Tablet":"md"===e?"Laptop":"lg"===e?"Desktop":"xl"===e?"Large Desktop":"";return React.createElement(so,{isPrimary:e===Pt,isSecondary:e!==Pt,onClick:function(){return jt(e)}},React.createElement("span",null,t))})))),React.createElement(mo,{value:at[Pt],onChange:function(e){return i(ro(ro({},n),{},{slidesPerPage:ro(ro({},at),{},oo({},Pt,e))}))},min:1,max:12,marks:[{value:1,label:"1"},{value:4,label:"4"},{value:8,label:"8"},{value:12,label:"12"}]}),React.createElement("p",{className:"description"},wp.i18n.__("Set the number of slides per page for each device.","integrate-google-drive")),React.createElement("p",{className:"description"},wp.i18n.__("Mobile: < 576px, Tablet: ≥ 576px, Laptop: ≥ 768px, Desktop: ≥ 992px, Large Desktop: ≥ 1200px","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Gap","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(mo,{value:pt,onChange:function(e){return i(ro(ro({},n),{},{slideGap:e}))},min:0,max:50,marks:[{value:0,label:"0"},{value:50,label:"50"}]}),React.createElement("p",{className:"description"},wp.i18n.__("Set the gap between slides in pixels.","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Show File Name","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(uo,{checked:Ge,onChange:function(){return i(ro(ro({},n),{},{slideName:!Ge}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Show/ hide the file name in the carousel slide.","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Show File Description","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(uo,{checked:Je,onChange:function(){return i(ro(ro({},n),{},{slideDescription:!Je}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Show/ hide the file description in the carousel slide.","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Slide Autoplay","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(uo,{checked:ot,onChange:function(){return i(ro(ro({},n),{},{slideAutoplay:!ot}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Enable autoplay for the slider.","integrate-google-drive")),ot&&React.createElement("div",{className:"settings-field-sub"},React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Autoplay Speed","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement("input",{type:"number",value:ct,onChange:function(e){i(ro(ro({},n),{},{slideAutoplaySpeed:e.target.value}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Set the autoplay speed in milliseconds.","integrate-google-drive"))))))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Slide Dots Navigation","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(uo,{checked:dt,onChange:function(){return i(ro(ro({},n),{},{slideDots:!dt}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Enable dots navigation for the slider.","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Slide Arrows Navigation","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(uo,{checked:mt,onChange:function(){return i(ro(ro({},n),{},{slideArrows:!mt}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Enable arrows navigation for the slider.","integrate-google-drive"))))),r&&React.createElement(React.Fragment,null,React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Enable Redirection","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(uo,{checked:ft,onChange:function(){return i(ro(ro({},n),{},{woocommerceRedirect:!ft}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Enable to redirect the user directly to the Google Drive file instead of downloading the file.","integrate-google-drive")))),ft&&React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Add User Permission","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(uo,{checked:vt,onChange:function(){return i(ro(ro({},n),{},{woocommerceAddPermission:!vt}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Enable to add permission for the purchase email address to the file.","integrate-google-drive")),React.createElement("p",{className:"description"},React.createElement("strong",null,wp.i18n.__("Note:","integrate-google-drive"))," ",wp.i18n.__("The purchase email address must be a gmail address. Otherwise the permission will not be added.","integrate-google-drive"))))),(ht||yt||bt||_t||Nt)&&React.createElement("div",{className:"settings-field sort-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Sorting","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement("div",{className:"sort-field-section-wrap"},React.createElement("div",{className:"sort-field-section"},React.createElement("span",{className:"sort-field-section-label"},wp.i18n.__("SORT BY","integrate-google-drive")),Object.keys(o).map((function(e){return React.createElement("div",{key:e,className:"sort-item ".concat(Re.sortBy===e?"active":""),onClick:function(){return i(ro(ro({},n),{},{sort:ro(ro({},Re),{},{sortBy:e})}))}},React.createElement("i",{className:"dashicons dashicons-saved"}),React.createElement("span",null,o[e]))}))),"random"!==Re.sortBy&&React.createElement("div",{className:"sort-field-section"},React.createElement("span",{className:"sort-field-section-label"},wp.i18n.__("SORT DIRECTION","integrate-google-drive")),Object.keys(l).map((function(e){return React.createElement("div",{key:e,className:"sort-item ".concat(Re.sortDirection===e?"active":""),onClick:function(){return i(ro(ro({},n),{},{sort:ro(ro({},Re),{},{sortDirection:e})}))}},React.createElement("i",{className:"dashicons dashicons-saved"}),React.createElement("span",null,l[e]))})))),React.createElement("p",{className:"description"},wp.i18n.__("Select file sorting and direction.","integrate-google-drive")))))}function Ro(e){return Ro="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ro(e)}function No(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function So(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?No(Object(n),!0).forEach((function(t){Co(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):No(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Co(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Ro(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==Ro(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Ro(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Oo=React.useContext,ko=wp.components.FormToggle,Fo=igd.isPro;function Ao(){var e=Oo(ta),t=e.editData,n=e.setEditData,i=t.type,a=t.enableNotification,r=void 0!==a&&a,o=t.downloadNotification,l=void 0===o||o,c=t.uploadNotification,s=void 0===c||c,d=t.deleteNotification,u=void 0===d||d,m=t.playNotification,g=void 0===m||m,p=t.searchNotification,f=void 0===p?"search"===i:p,v=t.viewNotification,h=void 0===v||v,w=t.notificationEmail,y=void 0===w?"%admin_email%":w,b=t.skipCurrentUserNotification,_=void 0===b||b,E="browser"===i,R="uploader"===i,N="media"===i,S="gallery"===i,C="slider"===i,O="search"===i,k="download"===i,F="view"===i;return React.createElement("div",{className:"shortcode-module-body"},React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Enable Notifications","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(ko,{"data-tip":"PRO Feature",checked:Fo&&r,onChange:function(){igd.isPro?n(So(So({},t),{},{enableNotification:!r})):j(wp.i18n.__("Upgrade to PRO to enable email notificationenableN","integrate-google-drive"))}}),!igd.isPro&&React.createElement(ReactTooltip,{effect:"solid",place:"right",backgroundColor:"#ff9966",className:"igd-tooltip"}),React.createElement("p",{className:"description"},wp.i18n.__("Enable email notifications to get notified on various user activities (upload, download, delete, etc).","integrate-google-drive")),(r||!igd.isPro)&&React.createElement("div",{className:"settings-field-sub"},(E||S||O||N||C||k)&&React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Download Notification","integrate-google-drive")," "),React.createElement("div",{className:"settings-field-content"},React.createElement(ko,{"data-tip":"PRO Feature",checked:l&&igd.isPro,onChange:function(){igd.isPro?n(So(So({},t),{},{downloadNotification:!l})):j(wp.i18n.__("Upgrade to PRO to enable email notifications.","integrate-google-drive"))}}),!igd.isPro&&React.createElement(ReactTooltip,{effect:"solid",place:"right",backgroundColor:"#ff9966",className:"igd-tooltip"}),React.createElement("p",{className:"description"},wp.i18n.__("Receive email notification whenever files is downloaded through this module.","integrate-google-drive")))),(E||R)&&React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Upload Notification","integrate-google-drive")," "),React.createElement("div",{className:"settings-field-content"},React.createElement(ko,{"data-tip":"PRO Feature",checked:s&&igd.isPro,onChange:function(){igd.isPro?n(So(So({},t),{},{uploadNotification:!s})):j(wp.i18n.__("Upgrade to PRO to enable email notification.","integrate-google-drive"))}}),!igd.isPro&&React.createElement(ReactTooltip,{effect:"solid",place:"right",backgroundColor:"#ff9966",className:"igd-tooltip"}),React.createElement("p",{className:"description"},wp.i18n.__("Receive an email notifications whenever someone uploaded files through this module.","integrate-google-drive")))),E&&React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Delete Notification","integrate-google-drive")," "),React.createElement("div",{className:"settings-field-content"},React.createElement(ko,{"data-tip":"PRO Feature",checked:u&&igd.isPro,onChange:function(){igd.isPro?n(So(So({},t),{},{deleteNotification:!u})):j(wp.i18n.__("Upgrade to PRO to enable email notifications.","integrate-google-drive"))}}),!igd.isPro&&React.createElement(ReactTooltip,{effect:"solid",place:"right",backgroundColor:"#ff9966",className:"igd-tooltip"}),React.createElement("p",{className:"description"},wp.i18n.__("Receive email notifications whenever someone deleted files through this module.","integrate-google-drive")))),N&&React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Media Play Notification","integrate-google-drive")," "),React.createElement("div",{className:"settings-field-content"},React.createElement(ko,{"data-tip":"PRO Feature",checked:g&&igd.isPro,onChange:function(){igd.isPro?n(So(So({},t),{},{playNotification:!g})):j(wp.i18n.__("Upgrade to PRO to enable email notifications.","integrate-google-drive"))}}),!igd.isPro&&React.createElement(ReactTooltip,{effect:"solid",place:"right",backgroundColor:"#ff9966",className:"igd-tooltip"}),React.createElement("p",{className:"description"},wp.i18n.__("Receive email notifications whenever someone play audio/video files through this module.","integrate-google-drive")))),(E||S||O||N)&&React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Search Notification","integrate-google-drive")," "),React.createElement("div",{className:"settings-field-content"},React.createElement(ko,{"data-tip":"PRO Feature",checked:f&&igd.isPro,onChange:function(){igd.isPro?n(So(So({},t),{},{searchNotification:!f})):j(wp.i18n.__("Upgrade to PRO to enable email notifications.","integrate-google-drive"))}}),!igd.isPro&&React.createElement(ReactTooltip,{effect:"solid",place:"right",backgroundColor:"#ff9966",className:"igd-tooltip"}),React.createElement("p",{className:"description"},wp.i18n.__("Receive email notifications whenever someone search for files through this module.","integrate-google-drive")))),F&&React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("View Notification","integrate-google-drive")," "),React.createElement("div",{className:"settings-field-content"},React.createElement(ko,{"data-tip":"PRO Feature",checked:h&&igd.isPro,onChange:function(){igd.isPro?n(So(So({},t),{},{viewNotification:!h})):j(wp.i18n.__("Upgrade to PRO to enable email notifications.","integrate-google-drive"))}}),!igd.isPro&&React.createElement(ReactTooltip,{effect:"solid",place:"right",backgroundColor:"#ff9966",className:"igd-tooltip"}),React.createElement("p",{className:"description"},wp.i18n.__("Receive email notifications whenever someone view files through this module.","integrate-google-drive"))))))),r&&React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Notification Recipients","integrate-google-drive")," "),React.createElement("div",{className:"settings-field-content"},React.createElement("input",{"data-tip":"PRO Feature",type:"email",value:y,onChange:function(e){igd.isPro?n(So(So({},t),{},{notificationEmail:e.target.value})):j(wp.i18n.__("Upgrade to PRO to enable email notifications.","integrate-google-drive"))}}),!igd.isPro&&React.createElement(ReactTooltip,{effect:"solid",place:"right",backgroundColor:"#ff9966",className:"igd-tooltip"}),React.createElement("p",{className:"description"},wp.i18n.__("Enter the email address where the notifications will be sent. Add multiple email addresses by separating them with a comma (,).","integrate-google-drive")),React.createElement("p",{className:"description"},wp.i18n.__("You can also set the below placeholder tags as email recipient.","integrate-google-drive")),React.createElement("div",{className:"template-tags"},React.createElement("div",{className:"template-tags-title",onClick:function(e){return jQuery(e.target).closest(".template-tags-title").toggleClass("active")}},React.createElement("i",{className:"dashicons dashicons-arrow-down-alt2"}),React.createElement("span",null,wp.i18n.__("Available template tags","integrate-google-drive")),React.createElement("span",null,wp.i18n.__(" (click to insert)","integrate-google-drive"))),React.createElement("div",{className:"template-tags-list"},["%admin_email%","%user_email%","%linked_user_email%"].map((function(e,i){return React.createElement("span",{className:"tag",key:i,onClick:function(){igd.isPro?n(So(So({},t),{},{notificationEmail:(y+", "+e).replace(/^,/,"")})):j(wp.i18n.__("Upgrade to PRO to enable email notifications.","integrate-google-drive"))}},e)})))),React.createElement("div",{className:"igd-notice igd-notice-info"},React.createElement("div",{className:"igd-notice-content"},React.createElement("div",null,React.createElement("strong",null,"%admin_email%")," - ",wp.i18n.__("The email of site admin.","integrate-google-drive")),React.createElement("div",null,React.createElement("strong",null,"%user_email%")," - ",wp.i18n.__("The email of current user who executes the action.","integrate-google-drive")),React.createElement("div",null,React.createElement("strong",null,"%linked_user_email%")," - ",wp.i18n.__("The email of the owner of the private folder.","integrate-google-drive")))),React.createElement("div",{className:"settings-field-sub"},React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Skip current user notification","integrate-google-drive")," "),React.createElement("div",{className:"settings-field-content"},React.createElement(ko,{"data-tip":"PRO Feature",checked:igd.isPro&&_,onChange:function(){igd.isPro?n(So(So({},t),{},{skipCurrentUserNotification:!_})):j(wp.i18n.__("Upgrade to PRO to enable email notifications.","integrate-google-drive"))}}),!igd.isPro&&React.createElement(ReactTooltip,{effect:"solid",place:"right",backgroundColor:"#ff9966",className:"igd-tooltip"}),React.createElement("p",{className:"description"},wp.i18n.__("Enable to skip the notification for the user that executes the action.","integrate-google-drive"))))))))}function xo(e){var t=e.usersOptions,n=e.values,i=e.onChange,a=e.description,r=void 0===a?wp.i18n.__("Select the users and roles who can access.","integrate-google-drive"):a;return React.createElement("div",{className:"filter-users"},React.createElement("h4",{className:"filter-users-title"},"Filter Users & Roles:"),React.createElement("div",{className:"filter-users-section-wrap"},React.createElement(ReactSelect,{isClearable:!1,isMulti:!0,placeholder:"Select users & roles",options:t,value:t.filter((function(e){return n.includes(e.value)})),onChange:function(e){return i(e)},className:"igd-select filter-users-select",classNamePrefix:"igd-select"}),React.createElement("p",{className:"description"},r)))}function Po(e){return Po="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Po(e)}function jo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Io(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jo(Object(n),!0).forEach((function(t){Do(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Do(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Po(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==Po(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Po(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function To(e){return function(e){if(Array.isArray(e))return Lo(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Uo(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Bo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,a,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=r.call(n)).done)&&(l.push(i.value),l.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw a}}return l}}(e,t)||Uo(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Uo(e,t){if(e){if("string"==typeof e)return Lo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Lo(e,t):void 0}}function Lo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var Mo=window.ReactTooltip,zo=wp.components,Ho=zo.FormToggle,Ko=zo.ButtonGroup,Wo=zo.Button,Qo=React,Vo=Qo.useState,qo=Qo.useEffect,Go=Qo.useContext,Yo=Qo.useRef,Jo=["%post_id%","%post_title%","%post_slug%","%post_author%","%post_date%","%post_modified%","%post_type%","%post_status%","%post_category%","%post_tags%","%post_meta_{key}%","","%wc_product_name%","%wc_product_id%","%wc_product_sku%","%wc_product_slug%","%wc_product_price%","%wc_product_sale_price%","%wc_product_regular_price%","%wc_product_tags%","%wc_product_type%","%wc_product_status%","","%user_login%","%user_email%","%first_name%","%last_name%","%display_name%","%user_id%","%user_role%","%user_meta_{key}%","","%date%","%time%","%unique_id%"];function Xo(){var e=!!igd.isPro,t=Go(ta),n=t.editData,i=t.setEditData,a=n.type,r=n.preview,o=void 0===r||r,l=n.inlinePreview,c=void 0===l||l,s=n.allowPreviewPopout,d=void 0===s||s,u=n.previewUsers,m=void 0===u?["everyone"]:u,g=n.rename,p=void 0!==g&&g,f=n.renameUsers,v=void 0===f?["everyone"]:f,h=n.newFolder,w=void 0!==h&&h,y=n.newFolderUsers,b=void 0===y?["everyone"]:y,_=n.moveCopy,E=void 0!==_&&_,R=n.moveCopyUsers,N=void 0===R?["everyone"]:R,S=n.canDelete,C=void 0!==S&&S,O=n.deleteUsers,k=void 0===O?["everyone"]:O,F=n.upload,A=void 0!==F&&F,x=n.uploadUsers,P=void 0===x?["everyone"]:x,I=n.photoProof,D=void 0!==I&&I,T=n.photoProofEmail,B=void 0===T?"":T,U=n.photoProofMaxSelection,L=n.photoProofUsers,M=void 0===L?["everyone"]:L,z=n.download,H=void 0===z||z,K=n.zipDownload,W=void 0!==K&&K,Q=n.showFileSizeField,V=void 0===Q||Q,q=n.downloadUsers,G=void 0===q?["everyone"]:q,Y=n.details,J=void 0!==Y&&Y,X=n.detailsUsers,Z=void 0===X?["everyone"]:X,$=n.viewSwitch,ee=void 0===$||$,te=n.allowShare,ne=void 0!==te&&te,ie=n.shareUsers,ae=void 0===ie?["everyone"]:ie,re=n.createDoc,oe=void 0!==re&&re,le=n.createDocumentUsers,ce=void 0===le?["everyone"]:le,se=n.edit,de=void 0!==se&&se,ue=n.editUsers,me=void 0===ue?["everyone"]:ue,ge=n.directLink,pe=void 0!==ge&&ge,fe=n.directLinkUsers,ve=void 0===fe?["everyone"]:fe,he=n.allowSearch,we=void 0===he?"search"===a:he,ye=n.searchUsers,be=void 0===ye?["everyone"]:ye,_e=n.fullTextSearch,Ee=void 0===_e||_e,Re=n.initialSearchTerm,Ne=void 0===Re?"":Re,Se=n.comment,Ce=void 0!==Se&&Se,Oe=n.commentMethod,ke=void 0===Oe?"facebook":Oe,Fe=n.commentUsers,Ae=void 0===Fe?["everyone"]:Fe,xe=n.displayFor,Pe=void 0===xe?"everyone":xe,je=n.displayUsers,Ie=void 0===je?["everyone"]:je,De=n.displayEveryone,Te=n.displayExcept,Be=void 0===Te?[]:Te,Ue=n.showAccessDeniedMessage,Le=n.accessDeniedMessage,Me=void 0===Le?'<img width="100" src="'.concat(igd.pluginUrl,'/assets/images/access-denied.png"><h3 class="placeholder-title">').concat(wp.i18n.__("Access Denied","integrate-google-drive"),'</h3><p class="placeholder-description">').concat(wp.i18n.__("We're sorry, but your account does not currently have access to this content. To gain access, please contact the site administrator who can assist in linking your account to the appropriate content. Thank you.","integrate-google-drive"),"</p>"):Le,ze="browser"===a,He="media"===a,Ke="gallery"===a,We="slider"===a,Qe="search"===a,Ve=Bo(Vo(null),2),qe=Ve[0],Ge=Ve[1],Ye=qe&&[{label:wp.i18n.__("Everyone","integrate-google-drive"),value:"everyone"}].concat(To(Object.keys(qe.roles).map((function(e){var t=qe.roles[e];return{label:"".concat(t," (role)"),value:t}}))),To(qe.users.map((function(e){var t=e.username,n=e.email,i=e.id;return{label:"".concat(t," (").concat(n,")"),value:parseInt(i)}}))));qo((function(){wp.ajax.post("igd_get_users_data").then((function(e){return Ge(e)}))}),[]);var Je=Bo(Vo(null),2),Xe=Je[0],Ze=Je[1],$e=Yo(),et="access-denied-message",tt={tinymce:{wpautop:!0,toolbar1:"formatselect,bold,italic,strikethrough,forecolor,backcolor,bullist,numlist,blockquote,hr,alignleft,aligncenter,alignright,link,unlink,media,spellchecker,fullscreen,wp_adv",toolbar2:"underline,alignjustify,forecolor,pastetext,removeformat,charmap,outdent,indent,undo,redo,wp_help",plugins:"lists,fullscreen,paste,wpautoresize,wpdialogs,wpeditimage,wpgallery,wplink,wptextpattern,wpview,wordpress,wpemoji,media,textcolor,hr",menubar:!1,branding:!1,height:250,wp_adv_height:48,setup:function(e){e.on("change",(function(){var t=e.getContent();i((function(e){return Io(Io({},e),{},{accessDeniedMessage:t})}))}))}},quicktags:{buttons:"strong,em,link,block,del,ins,img,ul,ol,li,code,close"},mediaButtons:!0};return qo((function(){if(Ue)return setTimeout((function(){wp.editor&&(wp.editor.remove(et),wp.domReady((function(){return wp.editor.initialize(et,tt)})))}),100),function(){document.getElementById(et)&&wp.editor.remove(et)}}),[Ue]),React.createElement("div",{className:"shortcode-module-body"},ze||He||Ke||We||Qe&&React.createElement("h3",{className:"settings-field-title"},wp.i18n.__("File Manipulation","integrate-google-drive")),ze&&React.createElement("div",{className:"settings-field"},React.createElement("h3",{className:"settings-field-label"},React.createElement("i",{className:"dashicons dashicons-upload"}),wp.i18n.__("Upload","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(Ho,{checked:A,onChange:function(){return i(Io(Io({},n),{},{upload:!A}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Allow users to upload files.","integrate-google-drive")),React.createElement("div",{className:"settings-field-sub"},A&&!!qe&&React.createElement(xo,{usersOptions:Ye,values:P,onChange:function(e){return i(Io(Io({},n),{},{uploadUsers:To(e.map((function(e){return e.value})))}))},description:wp.i18n.__("Select users & roles who can upload files.","integrate-google-drive")})))),(ze||We||Qe)&&React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},React.createElement("i",{className:"dashicons dashicons-visibility"}),wp.i18n.__("Preview","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(Ho,{checked:o,onChange:function(){return i(Io(Io({},n),{},{preview:!o}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Allow users to preview files.","integrate-google-drive")),React.createElement("div",{className:"settings-field-sub"},o&&!We&&React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Inline Preview","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(Ho,{checked:c,onChange:function(){return i(Io(Io({},n),{},{inlinePreview:!c}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Open preview in a pop-up lightbox. If disabled, the preview will be opened in Google Drive.","integrate-google-drive")),c&&React.createElement(React.Fragment,null,React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Allow Pop-out","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(Ho,{checked:d,onChange:function(){return i(Io(Io({},n),{},{allowPreviewPopout:!d}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Pop-out button allows the user to view the document on Google Drive with full features, while disabling it will only show the preview document on your website.","integrate-google-drive")))))),o&&!!qe&&React.createElement(xo,{usersOptions:Ye,values:m,onChange:function(e){return i(Io(Io({},n),{},{previewUsers:To(e.map((function(e){return e.value})))}))},description:wp.i18n.__("Select users & roles who can preview files.","integrate-google-drive")})))),Ke&&React.createElement("div",{className:"settings-field"},React.createElement("div",{className:"settings-field-label"},React.createElement("i",{className:"dashicons dashicons-format-gallery"}),wp.i18n.__("Photo Proofing","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(Ho,{"data-tip":wp.i18n.__("PRO Feature","integrate-google-drive"),checked:e&&D,onChange:function(){e?i(Io(Io({},n),{},{photoProof:!D})):j(wp.i18n.__("Upgrade to Pro to photo proofing","integrate-google-drive"))}}),!e&&React.createElement(Mo,{effect:"solid",place:"right",backgroundColor:"#FF9F10",className:"igd-tooltip"}),React.createElement("p",{className:"description"},wp.i18n.__("Allow users to select images and send them to the admin.","integrate-google-drive")),e&&!!D&&React.createElement("div",{className:"settings-field-sub"},React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Maximum Selection","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement("input",{type:"number",value:U,onChange:function(t){e?i(Io(Io({},n),{},{photoProofMaxSelection:t.target.value})):j(wp.i18n.__("Upgrade to PRO to enable photo proofing","integrate-google-drive"))},min:0}),!e&&React.createElement(Mo,{effect:"solid",place:"right",backgroundColor:"#FF9F10",className:"igd-tooltip"}),React.createElement("p",{className:"description"},wp.i18n.__("Enter the maximum number of images that can be selected. Leave empty for no limit.","integrate-google-drive"))),React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Notification Email","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement("input",{type:"text",value:B,onChange:function(t){e?i(Io(Io({},n),{},{photoProofEmail:t.target.value})):j(wp.i18n.__("Upgrade to Pro to enable photo proofing","integrate-google-drive"))}}),!e&&React.createElement(Mo,{effect:"solid",place:"right",backgroundColor:"#FF9F10",className:"igd-tooltip"}),React.createElement("p",{className:"description"},wp.i18n.__("Enter the email address where the selected images notification will be sent.","integrate-google-drive")))),!!qe&&React.createElement(xo,{usersOptions:Ye,values:M,onChange:function(e){return i(Io(Io({},n),{},{photoProofUsers:To(e.map((function(e){return e.value})))}))},description:wp.i18n.__("Select users & roles who can select.","integrate-google-drive")})))),(ze||He||We||Ke||Qe)&&React.createElement("div",{className:"settings-field"},React.createElement("div",{className:"settings-field-label"},React.createElement("i",{className:"dashicons dashicons-download"}),wp.i18n.__("Download","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(Ho,{checked:H,onChange:function(){return i(Io(Io({},n),{},{download:!H}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Allow users to download files.","integrate-google-drive")),!!H&&React.createElement("div",{className:"settings-field-sub"},(ze||Ke||Qe)&&React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Zip Download","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(Ho,{"data-tip":wp.i18n.__("PRO Feature","integrate-google-drive"),checked:e&&W,onChange:function(){e?i(Io(Io({},n),{},{zipDownload:!W})):j(wp.i18n.__("Upgrade to Pro to enable zip download.","integrate-google-drive"))}}),!e&&React.createElement(Mo,{effect:"solid",place:"right",backgroundColor:"#FF9F10",className:"igd-tooltip"}),React.createElement("p",{className:"description"},wp.i18n.__("Allow users to download multiple files at once.","integrate-google-drive")),React.createElement("div",{className:"igd-notice igd-notice-warning"},React.createElement("p",{className:"igd-notice-content"},wp.i18n.__("The Google Drive API does not support ZIP creation on the fly. Therefore, the ZIP file needs to be created (temporarily) on your server. For that reason, it is not recommended to enable this setting when you are working with large files or folders.","integrate-google-drive")))),!Ke&&React.createElement(React.Fragment,null,React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Show File Size Field","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(Ho,{checked:V,onChange:function(){return i(Io(Io({},n),{},{showFileSizeField:!V}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Show/ hide the file size field in the file list.","integrate-google-drive"))))),!!qe&&React.createElement(xo,{usersOptions:Ye,values:G,onChange:function(e){return i(Io(Io({},n),{},{downloadUsers:To(e.map((function(e){return e.value})))}))},description:wp.i18n.__("Select users & roles who can download files.","integrate-google-drive")})))),ze&&React.createElement(React.Fragment,null,React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},React.createElement("i",{className:"dashicons dashicons-trash"}),wp.i18n.__("Delete","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(Ho,{checked:C,onChange:function(){return i(Io(Io({},n),{},{canDelete:!C}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Allow users to delete files and folders.","integrate-google-drive")),React.createElement("div",{className:"settings-field-sub"},C&&!!qe&&React.createElement(xo,{usersOptions:Ye,values:k,onChange:function(e){return i(Io(Io({},n),{},{deleteUsers:To(e.map((function(e){return e.value})))}))},description:wp.i18n.__("Select users & roles who can delete files & folders.","integrate-google-drive")})))),React.createElement("div",{className:"settings-field"},React.createElement("h3",{className:"settings-field-label"},React.createElement("i",{className:"dashicons dashicons-open-folder"}),wp.i18n.__("New Folder","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(Ho,{checked:w,onChange:function(){return i(Io(Io({},n),{},{newFolder:!w}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Allow users to create new folders.","integrate-google-drive")),React.createElement("div",{className:"settings-field-sub"},w&&!!qe&&React.createElement(xo,{usersOptions:Ye,values:b,onChange:function(e){return i(Io(Io({},n),{},{newFolderUsers:To(e.map((function(e){return e.value})))}))},description:wp.i18n.__("Select users & roles who can create folders.","integrate-google-drive")})))),React.createElement("div",{className:"settings-field"},React.createElement("h3",{className:"settings-field-label"},React.createElement("i",{className:"dashicons dashicons-admin-page"}),wp.i18n.__("Move/ Copy","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(Ho,{checked:E,onChange:function(){return i(Io(Io({},n),{},{moveCopy:!E}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Allow users to move/ copy files and folders.","integrate-google-drive")),React.createElement("div",{className:"settings-field-sub"},E&&!!qe&&React.createElement(xo,{usersOptions:Ye,values:N,onChange:function(e){return i(Io(Io({},n),{},{moveCopyUsers:To(e.map((function(e){return e.value})))}))},description:wp.i18n.__("Select users & roles who can move/ copy files.","integrate-google-drive")})))),React.createElement("div",{className:"settings-field"},React.createElement("h3",{className:"settings-field-label"},React.createElement("i",{className:"dashicons dashicons-edit"}),wp.i18n.__("Rename","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(Ho,{checked:p,onChange:function(){return i(Io(Io({},n),{},{rename:!p}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Allow users to rename files and folders.","integrate-google-drive")),React.createElement("div",{className:"settings-field-sub"},p&&!!qe&&React.createElement(xo,{usersOptions:Ye,values:v,onChange:function(e){return i(Io(Io({},n),{},{renameUsers:To(e.map((function(e){return e.value})))}))},description:wp.i18n.__("Select users & roles who can rename files.","integrate-google-drive")})))),React.createElement("div",{className:"settings-field"},React.createElement("h3",{className:"settings-field-label"},React.createElement("i",{className:"dashicons dashicons-plus"}),wp.i18n.__("Create Documents","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(Ho,{checked:oe,onChange:function(){return i(Io(Io({},n),{},{createDoc:!oe}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Allow users to create Google Docs and Office documents.","integrate-google-drive")),React.createElement("div",{className:"settings-field-sub"},oe&&!!qe&&React.createElement(xo,{usersOptions:Ye,values:ce,onChange:function(e){return i(Io(Io({},n),{},{createDocumentUsers:To(e.map((function(e){return e.value})))}))},description:wp.i18n.__("Select users & roles who can create documents.","integrate-google-drive")})))),React.createElement("div",{className:"settings-field"},React.createElement("h3",{className:"settings-field-label"},React.createElement("i",{className:"dashicons dashicons-edit-large"}),wp.i18n.__("Edit Documents","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(Ho,{checked:de,onChange:function(){return i(Io(Io({},n),{},{edit:!de}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Allow users to edit Google Docs and Office documents.","integrate-google-drive")),React.createElement("div",{className:"settings-field-sub"},de&&!!qe&&React.createElement(xo,{usersOptions:Ye,values:me,onChange:function(e){return i(Io(Io({},n),{},{editUsers:To(e.map((function(e){return e.value})))}))},description:wp.i18n.__("Select users & roles who can edit documents.","integrate-google-drive")})))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},React.createElement("i",{className:"dashicons dashicons-share"}),wp.i18n.__("Allow Share","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(Ho,{checked:ne,onChange:function(){return i(Io(Io({},n),{},{allowShare:!ne}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Allow users to share files.","integrate-google-drive")),React.createElement("div",{className:"settings-field-sub"},ne&&!!qe&&React.createElement(xo,{usersOptions:Ye,values:ae,onChange:function(e){return i(Io(Io({},n),{},{shareUsers:To(e.map((function(e){return e.value})))}))},description:wp.i18n.__("Select users & roles who can share files.","integrate-google-drive")})))),React.createElement("div",{className:"settings-field"},React.createElement("h3",{className:"settings-field-label"},React.createElement("i",{className:"dashicons dashicons-admin-links"}),wp.i18n.__("Direct Link","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(Ho,{checked:pe,onChange:function(){return i(Io(Io({},n),{},{directLink:!pe}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Allow users to generate direct links for files on your website.","integrate-google-drive")),React.createElement("div",{className:"settings-field-sub"},pe&&!!qe&&React.createElement(xo,{usersOptions:Ye,values:ve,onChange:function(e){return i(Io(Io({},n),{},{directLinkUsers:To(e.map((function(e){return e.value})))}))},description:wp.i18n.__("Select users & roles who can share files.","integrate-google-drive")})))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},React.createElement("i",{className:"dashicons dashicons-info-outline"}),wp.i18n.__("View Details","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(Ho,{checked:J,onChange:function(){return i(Io(Io({},n),{},{details:!J}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Allow users to view file details (owner, created & modified date, etc).","integrate-google-drive")),React.createElement("div",{className:"settings-field-sub"},J&&!!qe&&React.createElement(xo,{usersOptions:Ye,values:Z,onChange:function(e){return i(Io(Io({},n),{},{detailsUsers:To(e.map((function(e){return e.value})))}))},description:wp.i18n.__("Select users & roles who view the file details.","integrate-google-drive")}))))),(ze||Ke||Qe)&&React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},React.createElement("i",{className:"dashicons dashicons-admin-comments"}),wp.i18n.__("Allow Comments","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(Ho,{"data-tip":wp.i18n.__("PRO Feature","integrate-google-drive"),checked:e&&Ce,onChange:function(){e?i(Io(Io({},n),{},{comment:!Ce})):j(wp.i18n.__("Upgrade to Pro to enable comments","integrate-google-drive"))}}),!e&&React.createElement(Mo,{effect:"solid",place:"right",backgroundColor:"#FF9F10",className:"igd-tooltip"}),React.createElement("p",{className:"description"},wp.i18n.__("Allow users to comment on files while they view the file in lightbox preview.","integrate-google-drive")),Ce&&React.createElement("div",{className:"settings-field-sub"},React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Comment Method","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(Ko,null,React.createElement(Wo,{isPrimary:"facebook"===ke,isSecondary:"facebook"!==ke,onClick:function(){return i(Io(Io({},n),{},{commentMethod:"facebook"}))}},React.createElement("span",null,wp.i18n.__("Facebook","integrate-google-drive"))),React.createElement(Wo,{isPrimary:"disqus"===ke,isSecondary:"disqus"!==ke,onClick:function(){return i(Io(Io({},n),{},{commentMethod:"disqus"}))}},React.createElement("span",null,wp.i18n.__("Disqus","integrate-google-drive")))),React.createElement("p",{className:"description"},wp.i18n.__("Select the comment method you want to use.","integrate-google-drive")))),!!qe&&React.createElement(xo,{usersOptions:Ye,values:Ae,onChange:function(e){return i(Io(Io({},n),{},{commentUsers:To(e.map((function(e){return e.value})))}))},description:wp.i18n.__("Select users & roles who can comments on files.","integrate-google-drive")})))),(ze||Qe)&&React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},React.createElement("i",{className:"dashicons dashicons-screenoptions"}),wp.i18n.__("View Switching","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(Ho,{checked:ee,onChange:function(){i(Io(Io({},n),{},{viewSwitch:!ee}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Allow users to switch between grid and list view of the file listing.","integrate-google-drive")))),(ze||Ke||He||Qe)&&React.createElement("div",{className:"settings-field field-allow-search"},React.createElement("h4",{className:"settings-field-label"},React.createElement("i",{className:"dashicons dashicons-search"}),wp.i18n.__("Allow Search","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},!Qe&&React.createElement(React.Fragment,null,React.createElement(Ho,{"data-tip":wp.i18n.__("PRO Feature","integrate-google-drive"),checked:e&&we,onChange:function(){e?i(Io(Io({},n),{},{allowSearch:!we})):j(wp.i18n.__("Upgrade to Pro to enable search","integrate-google-drive"))}}),!e&&React.createElement(Mo,{effect:"solid",place:"right",backgroundColor:"#FF9F10",className:"igd-tooltip"}),React.createElement("p",{className:"description"},wp.i18n.__("Allow users to search for files.","integrate-google-drive"))),we&&React.createElement("div",{className:"settings-field-sub"},React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Full-text Search","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(Ho,{checked:Ee,onChange:function(){return i(Io(Io({},n),{},{fullTextSearch:!Ee}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Allow to search in file content, descriptions, tags and other metadata.","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Initial Search Term","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement("input",{type:"text",value:Ne,onChange:function(e){return i(Io(Io({},n),{},{initialSearchTerm:e.target.value}))},onSelect:function(e){return Ze(e.target.selectionStart)},ref:$e}),React.createElement("p",{className:"description"},wp.i18n.__("Set initial search terms if you want to start a search when the shortcode is rendered. Please note that this only affects the initial render.","integrate-google-drive")),React.createElement("p",{className:"description"},wp.i18n.__("You can also set dynamic placeholder tags to the initial search term.","integrate-google-drive")),React.createElement("div",{className:"template-tags"},React.createElement("div",{className:"template-tags-title",onClick:function(e){return jQuery(e.target).closest(".template-tags-title").toggleClass("active")}},React.createElement("i",{className:"dashicons dashicons-arrow-down-alt2"}),React.createElement("span",null,wp.i18n.__("Available template tags","integrate-google-drive")),React.createElement("span",null,wp.i18n.__(" (click to insert)","integrate-google-drive"))),React.createElement("div",{className:"template-tags-list"},Jo.map((function(e,t){return""===e?React.createElement("span",{className:"tag-break"}):React.createElement("span",{className:"tag",key:t,onClick:function(){var t;t=(t=null!==Xe?uploadFileName.slice(0,Xe)+e+" "+uploadFileName.slice(Xe):uploadFileName+" "+e).trim(),i(Io(Io({},n),{},{uploadFileName:t}));var a=Xe+e.length+1;$e.current.setSelectionRange(a,a)}},e)})))))),!Qe&&!!qe&&React.createElement(xo,{usersOptions:Ye,values:be,onChange:function(e){return i(Io(Io({},n),{},{searchUsers:To(e.map((function(e){return e.value})))}))},description:wp.i18n.__("Select users & roles who can search for files.","integrate-google-drive")})))),React.createElement("h3",{className:"settings-field-title field-visibility"},wp.i18n.__("Visibility","integrate-google-drive")),React.createElement("div",{className:"settings-field filter-users-field"},React.createElement("h4",{className:"settings-field-label"},React.createElement("i",{className:"dashicons dashicons-visibility"}),wp.i18n.__("Display for","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement("div",{className:"filter-users-group"},React.createElement(Ko,null,React.createElement(Wo,{isPrimary:"everyone"===Pe,isSecondary:"everyone"!==Pe,onClick:function(){return i(Io(Io({},n),{},{displayFor:"everyone"}))}},React.createElement("span",null,wp.i18n.__("Everyone","integrate-google-drive"))),React.createElement(Wo,{isPrimary:"loggedIn"===Pe,isSecondary:"loggedIn"!==Pe,onClick:function(){return i(Io(Io({},n),{},{displayFor:"loggedIn"}))}},React.createElement("span",null,wp.i18n.__("Logged In","integrate-google-drive")))),React.createElement("p",{className:"description"},wp.i18n.__("Select who can see the module.","integrate-google-drive"))),"loggedIn"===Pe&&React.createElement(React.Fragment,null,qe?React.createElement("div",{className:"filter-users"},React.createElement("h4",{className:"filter-users-title"},wp.i18n.__("Filter users & roles","integrate-google-drive")),React.createElement("div",{className:"filter-users-section-wrap"},React.createElement(ReactSelect,{isDisabled:De,isMulti:!0,placeholder:"Select users & roles",options:Ye,value:Ye.filter((function(e){return Ie.includes(e.value)})),onChange:function(e){return i(Io(Io({},n),{},{displayUsers:To(e.map((function(e){return e.value})))}))},className:"igd-select",classNamePrefix:"igd-select"}),React.createElement("p",{className:"description"},wp.i18n.__("Select the users and user roles who can see the module.","integrate-google-drive"))),React.createElement("div",{className:"filter-users-section-wrap"},React.createElement("div",{className:"filter-users-section"},React.createElement("span",{className:"filter-users-section-label"},wp.i18n.__("Everyone :","integrate-google-drive")," "),React.createElement(Ho,{checked:De,onChange:function(){return i(Io(Io({},n),{},{displayEveryone:!De}))}})),React.createElement("div",{className:"filter-users-section"},React.createElement("span",{className:"filter-users-section-label"},wp.i18n.__("Except","integrate-google-drive")),React.createElement(ReactSelect,{isDisabled:!De,isMulti:!0,placeholder:"Select users & roles",options:Ye.filter((function(e){return"everyone"!==e.value})),value:Ye.filter((function(e){return Be.includes(e.value)})),onChange:function(e){return i(Io(Io({},n),{},{displayExcept:To(e.map((function(e){return e.value})))}))},className:"igd-select",classNamePrefix:"igd-select"})),React.createElement("p",{className:"description"},wp.i18n.__("When activated, the module will be visible to everyone except for those specifically exempted.","integrate-google-drive")))):React.createElement("div",{className:"igd-spinner spinner-large"})))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},React.createElement("i",{className:"dashicons dashicons-welcome-comments"}),wp.i18n.__("Show Access Denied Message","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(Ho,{checked:Ue,onChange:function(){return i(Io(Io({},n),{},{showAccessDeniedMessage:!Ue}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Show a message to users who don't have access to the module.","integrate-google-drive")),!!Ue&&React.createElement("div",{className:"settings-field-sub"},React.createElement("div",{className:"settings-field  field-access-denied-message"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Access Denied Message","integrate-google-drive")),React.createElement("p",{className:"description"},wp.i18n.__("Enter the message you want to show to users who don't have access to the module.","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement("textarea",{value:Me,id:"access-denied-message",onChange:function(e){setData((function(t){return Io(Io({},t),{},{accessDeniedMessage:e.target.value})}))},rows:8})))))))}function Zo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,a,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=r.call(n)).done)&&(l.push(i.value),l.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw a}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return $o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $o(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var el=React,tl=el.useState,nl=el.useContext,il=el.useEffect;function al(){var e=document.querySelector(".igd-tutor-attachment-modal"),t=nl(ta),n=t.editData,i=t.updateShortcode,a=t.updating,r=t.isEditor,o=t.builderType,l=t.isInlineSelect,c=t.isSelectFiles,s=t.isFormBuilder,d=t.isLMS,u=t.isWooCommerce,m=n.id,g=n.type,p="browser"===g,f="uploader"===g,v="gallery"===g,h="media"===g,w="search"===g,y="embed"===g,b="view"===g,_="download"===g,E="slider"===g,R=r&&"embed"===o,N=r&&("view"===o||"download"===o),S={type:wp.i18n.__("Types","integrate-google-drive"),sources:wp.i18n.__("Source","integrate-google-drive"),filters:wp.i18n.__("Filter","integrate-google-drive"),advanced:wp.i18n.__("Advanced","integrate-google-drive"),notifications:wp.i18n.__("Notifications","integrate-google-drive"),permissions:wp.i18n.__("Permissions","integrate-google-drive")},C=function(){return Object.keys(S).filter((function(e){return(!r||"type"!==e)&&((!(s||R||u)||!["type","permissions"].includes(e))&&((!(N||c||d)||"sources"===e)&&((!u&&!y||!["notifications"].includes(e))&&((!u||"filters"!==e)&&(!_&&!b||!["advanced","filters"].includes(e))))))}))},O=Zo(tl(C),2),k=O[0],x=O[1],P=sessionStorage.getItem("igd_shortcode_builder_tab_".concat(m));P||(P=m&&k.includes("type")&&k.includes("sources")?"sources":k[0]);var j=Zo(tl(P),2),I=j[0],D=j[1],T=k.indexOf(I);il((function(){x(C()),m&&sessionStorage.setItem("igd_shortcode_builder_tab_".concat(m),I)}),[I,g]);var B=wp.i18n.__("Module Type","integrate-google-drive"),U=wp.i18n.__("Select the module type that you want to use.","integrate-google-drive");return"sources"===I&&(B=wp.i18n.__("Select Folders and Files","integrate-google-drive"),U=wp.i18n.__("Select the folders & files to display in the file browser.","integrate-google-drive"),f&&(B=wp.i18n.__("Select Upload Folder","integrate-google-drive"),U=wp.i18n.__("Select the folder where the files will be uploaded.","integrate-google-drive")),v&&(B=wp.i18n.__("Select Files and Folders","integrate-google-drive"),U=wp.i18n.__("Select the files and folders to display in the gallery.","integrate-google-drive")),h&&(B=wp.i18n.__("Select Files and Folders","integrate-google-drive"),U=wp.i18n.__("Select the folders and audio/ video files to display and play in the media player.","integrate-google-drive")),w&&(B=wp.i18n.__("Select Folders","integrate-google-drive"),U=wp.i18n.__("Select the folders to search in.","integrate-google-drive")),y&&(B=wp.i18n.__("Select Files","integrate-google-drive"),U=wp.i18n.__("Select the files to embed. You can also select folders to embed all the files of the folder.","integrate-google-drive")),_&&(B=wp.i18n.__("Select Files","integrate-google-drive"),U=wp.i18n.__("Select the files to insert the download link. You can also select folders to insert the download link to download all the files of the folder in a zip file.","integrate-google-drive")),b&&(B=wp.i18n.__("Select Files","integrate-google-drive"),U=wp.i18n.__("Select the files and folders to insert the link to view the file in Google Drive.","integrate-google-drive")),e&&(B=wp.i18n.__("Select Files","integrate-google-drive"),U=wp.i18n.__("Select the files to attach in the course.","integrate-google-drive")),u&&(B=wp.i18n.__("Select Files","integrate-google-drive"),U=wp.i18n.__("Select the files to attach in the product for download.","integrate-google-drive"))),"filters"===I&&(B=wp.i18n.__("Filter Folders and Files","integrate-google-drive"),p?U=wp.i18n.__("Show/ hide files and folders and filter them by extensions and names to not display in the file browser.","integrate-google-drive"):f?U=wp.i18n.__("Filter the files to upload by extensions","integrate-google-drive"):v?U=wp.i18n.__("Show/ hide files and folders and filter them by extensions and names to not display in the gallery.","integrate-google-drive"):E?U=wp.i18n.__("Show/ hide files and filter them by extensions and names to not display in the slider.","integrate-google-drive"):h?U=wp.i18n.__("Show/ hide files and folders and filter them by extensions and names to not display in the media player.","integrate-google-drive"):w&&(U=wp.i18n.__("Show/ hide files and folders and filter them by extensions and names to not display in the search results.","integrate-google-drive"))),"advanced"===I&&(B=wp.i18n.__("Advanced Options","integrate-google-drive"),U=wp.i18n.__("Advanced options to customize the module.","integrate-google-drive")),"notifications"===I&&(B=wp.i18n.__("Email Notifications","integrate-google-drive"),U=wp.i18n.__("Receive email notifications for various user activities (upload, download, delete, etc).","integrate-google-drive")),"permissions"===I&&(B=wp.i18n.__("Permissions","integrate-google-drive"),U=wp.i18n.__("Set the permissions to access the module.","integrate-google-drive")),React.createElement("div",{className:"igd-shortcode-builder-form ".concat(r?"editor-mode":"")},!c&&k.length>1&&React.createElement("div",{className:"shortcode-builder-sidebar tab-".concat(I)},React.createElement("div",{className:"shortcode-tabs ".concat(r?"edit-mode":"")},k.map((function(e,t){return React.createElement("div",{key:e,className:"shortcode-tab-wrap ".concat(T>=t?"active":""),onClick:function(){return D(e)}},React.createElement("div",{key:e,className:"shortcode-tab"},React.createElement("span",{className:"tab-icon icon-".concat(e)}),React.createElement("span",{className:"tab-name"},S[e])))})))),React.createElement("div",{className:"shortcode-builder-content"},React.createElement("div",{className:"shortcode-module"},!l&&React.createElement("div",{className:"shortcode-module-header"},React.createElement("div",{className:"module-title"},React.createElement("h2",null,B),React.createElement("span",null,U)),m>0&&React.createElement("div",{className:"shortcode-wrap"},React.createElement("i",{className:"dashicons dashicons-admin-page",onClick:A}),React.createElement("code",{onClick:A},'[integrate_google_drive id="'.concat(m,'"]'))),!!g&&React.createElement("div",{className:"module-type",onClick:function(){return D("type")}},React.createElement("span",{className:"module-type-title"},"Type : "),React.createElement("img",{className:"type-".concat(g),src:"".concat(igd.pluginUrl,"/assets/images/shortcode-builder/types/").concat(g,".svg"),alt:F()[g].title}),React.createElement("span",{className:"module-type-name"},F()[g].title))),"type"===I&&React.createElement(Or,{setTab:D,isEditor:r}),"sources"===I&&React.createElement(Kr,null),"filters"===I&&React.createElement(eo,null),"advanced"===I&&React.createElement(Eo,null),"notifications"===I&&React.createElement(Ao,null),"permissions"===I&&React.createElement(Xo,null)),!c&&k.length>1&&React.createElement("div",{className:"form-footer"},React.createElement("button",{"data-tip":wp.i18n.__("Previous step","integrate-google-drive"),"data-for":"previous",type:"button",disabled:0===T,className:"igd-btn ".concat(0===T?"disabled":"btn-link"),onClick:function(){return D(k[T-1])}},React.createElement("i",{className:"dashicons dashicons-arrow-left-alt"}),React.createElement("span",null,wp.i18n.__("Back","integrate-google-drive")),React.createElement(ReactTooltip,{id:"previous",effect:"solid",place:"top",className:"igd-tooltip"})),React.createElement("button",{type:"button",className:"igd-btn btn-primary",onClick:function(){return i(n)}},a?React.createElement("div",{className:"igd-spinner"}):React.createElement("i",{className:"dashicons dashicons-saved"}),React.createElement("span",null,wp.i18n.__("Save Changes","integrate-google-drive"))),React.createElement("button",{"data-tip":wp.i18n.__("Next step","integrate-google-drive"),"data-for":"next",type:"button",className:"igd-btn ".concat(T===k.length-1?"btn-primary":"btn-link"),onClick:function(){T===k.length-1?i(n,!0):D(k[T+1])}},T===k.length-1?React.createElement(React.Fragment,null,React.createElement("i",{className:"dashicons dashicons-saved"}),React.createElement("span",null,wp.i18n.__("Finish","integrate-google-drive"))):React.createElement(React.Fragment,null,React.createElement("span",null,wp.i18n.__("Next","integrate-google-drive")),React.createElement("i",{className:"dashicons dashicons-arrow-right-alt"}),React.createElement(ReactTooltip,{id:"next",effect:"solid",place:"top",className:"igd-tooltip"}))))))}function rl(e){return rl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rl(e)}function ol(e){return function(e){if(Array.isArray(e))return ml(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ul(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ll(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function cl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ll(Object(n),!0).forEach((function(t){sl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ll(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sl(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==rl(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==rl(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===rl(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dl(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,a,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=r.call(n)).done)&&(l.push(i.value),l.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw a}}return l}}(e,t)||ul(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ul(e,t){if(e){if("string"==typeof e)return ml(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ml(e,t):void 0}}function ml(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var gl=React,pl=gl.useState,fl=gl.useEffect;function vl(e){var t=e.initFolders,n=e.initParentFolder,i=dl(pl(!1),2),a=i[0],r=i[1],o=dl(pl([]),2),l=o[0],c=o[1],s=dl(pl(!1),2),d=s[0],u=s[1],m=dl(pl(!0),2),g=m[0],p=m[1],f=dl(pl(localStorage.getItem("igd_shortcode_list_per_page")||10),2),v=f[0],h=f[1],w=dl(pl(localStorage.getItem("igd_shortcode_list_sort_by")||"created_at"),2),y=w[0],b=w[1],_=dl(pl(localStorage.getItem("igd_shortcode_list_sort_order")||"desc"),2),E=_[0],R=_[1],N=dl(pl(1),2),S=N[0],C=N[1],O=dl(pl(0),2),k=O[0],F=O[1],A={id:null,status:"on",title:wp.i18n.__("Shortcode Title","integrate-google-drive"),type:igd.isPro?"browser":"gallery",allFolders:!1,folders:[],privateFolders:!1,allowExtensions:null,allowAllExtensions:!1,allowExceptExtensions:null,allowNames:null,allowAllNames:!1,allowExceptNames:null,nameFilterOptions:["files"],showFiles:!0,showFolders:!0,fileNumbers:"",embedWidth:"100%",embedHeight:"480px",sort:{sortBy:"name",sortDirection:"asc"},view:"list",lazyLoad:!0,lazyLoadNumber:100,maxFileSize:"",minFileSize:"",enableFolderUpload:!1,openNewTab:!0,showUploadLabel:!0,uploadLabelText:wp.i18n.__("Upload Files","integrate-google-drive"),allowEmbedPopout:!0,thumbnailCaption:!0,preview:!0,download:!0,displayFor:"everyone",displayUsers:["everyone"],displayEveryone:!1,displayExcept:[]},x=dl(pl(A),2),P=x[0],j=x[1],D=function(){return p(!0),wp.ajax.post("igd_get_shortcodes",{per_page:v,page:S,sort_by:y,sort_order:E}).done((function(e){F(e.total),c(e.shortcodes)})).fail((function(e){console.log(e)})).always((function(){p(!1)}))};fl((function(){D().then((function(){q()&&r(q())}))}),[]),fl((function(){if(a<1)j(A);else{var e=cl(cl({},l.find((function(e){return e.id==a})).config),{},{id:parseInt(a)});j(e)}}),[a]);var T=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return u(!0),wp.ajax.post("igd_update_shortcode",{data:B(JSON.stringify(e))}).done((function(t){if(j(cl(cl({},t.config),{},{id:parseInt(t.id)})),e.id){var n=l.findIndex((function(e){return e.id==t.id})),i=ol(l);i[n]=cl(cl({},i[n]),t),c(i)}else c([t].concat(ol(l)));Swal.fire({title:wp.i18n.__("Updated!","integrate-google-drive"),text:wp.i18n.__("Shortcode has been updated.","integrate-google-drive"),icon:"success",timer:2e3,showConfirmButton:!1,toast:!0,position:"top-end"})})).fail((function(e){console.log(e),Swal.fire({title:wp.i18n.__("Error!","integrate-google-drive"),text:wp.i18n.__("Something went wrong.","integrate-google-drive"),icon:"error",timer:2e3,showConfirmButton:!1,toast:!0,position:"top-end"})})).always((function(){u(!1),t&&r(!1)}))},U=I();return fl((function(){P.id?P.id<1?document.title=wp.i18n.__("Add New Shortcode - Integrate Google Drive","integrate-google-drive"):document.title=wp.i18n.__("Edit Shortcode","integrate-google-drive")+" - "+P.title:document.title=wp.i18n.__("All Shortcodes - Integrate Google Drive","integrate-google-drive")}),[a,P]),fl((function(){U&&(D(),window.scrollTo({top:0,behavior:"smooth"}))}),[S,v]),fl((function(){U&&D()}),[y,E]),fl((function(){var e=function(e){"Enter"===e.key&&T(P)};return document.addEventListener("keydown",e),function(){document.removeEventListener("keydown",e)}}),[P]),React.createElement(na,{value:{shortcodes:l,edit:a,setEdit:r,editData:P,setEditData:j,updating:d,total:k,perPage:v,setPerPage:h,page:S,setPage:C,updateShortcode:T,deleteShortcode:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return wp.ajax.post("igd_delete_shortcode",{id:e,nonce:igd.nonce}).done((function(){c((function(t){return t.filter((function(t){return t.id!=e}))})),t&&(V(),r(!1)),Swal.fire({title:wp.i18n.__("Shortcode has been deleted","integrate-google-drive"),icon:"success",showConfirmButton:!1,timer:1500,timerProgressBar:!0,toast:!0})}))},duplicateShortcode:function(e){return u(!0),wp.ajax.post("igd_duplicate_shortcode",{ids:e}).done((function(e){c([].concat(ol(l),ol(e))),Swal.fire({title:wp.i18n.__("Duplicated!","integrate-google-drive"),text:wp.i18n.__("Shortcode has been duplicated.","integrate-google-drive"),icon:"success",timer:2e3,showConfirmButton:!1,toast:!0,position:"top-end"})})).fail((function(e){console.log(e),Swal.fire({title:wp.i18n.__("Error!","integrate-google-drive"),text:wp.i18n.__("Something went wrong.","integrate-google-drive"),icon:"error",timer:2e3,showConfirmButton:!1,toast:!0,position:"top-end"})})).always((function(){u(!1)}))},initFolders:t,initParentFolder:n,sortBy:y,setSortBy:b,sortOrder:E,setSortOrder:R}},React.createElement("div",{className:"igd-shortcode-builder"},React.createElement(Ja,null),g&&React.createElement("div",{className:"igd-spinner spinner-large"}),!g&&!a&&!!l.length&&React.createElement(br,null),!g&&!a&&!l.length&&React.createElement(_r,{setEdit:r}),!g&&!!a&&(!!P.id||-1===a)&&React.createElement(al,null)))}function hl(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,a,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=r.call(n)).done)&&(l.push(i.value),l.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw a}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return wl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return wl(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function wl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var yl=React.useState;function bl(e){var t=e.initData,n=e.onUpdate,i=e.onClose,a=e.isSelectFiles,r=e.selectionType,o=e.isFormBuilder,l=e.isLMS,c=e.isWooCommerce,s=hl(yl(t),2),d=s[0],u=s[1],m=wp.i18n.__("Configure Module","integrate-google-drive"),g="dashicons dashicons-admin-generic";return a?(m=wp.i18n.__("Select Files","integrate-google-drive"),g="dashicons dashicons-open-folder"):l&&(m=wp.i18n.__("Select Video","integrate-google-drive"),g="dashicons dashicons-video-alt3"),React.createElement("div",{className:"igd-module-builder-modal",onClick:function(e){return e.stopPropagation()}},React.createElement("div",{className:"igd-module-builder-modal-header"},React.createElement("div",{className:"header-title"},React.createElement("i",{className:g}),React.createElement("h3",null,m)),React.createElement("button",{type:"button",className:"igd-btn btn-danger close",onClick:i},React.createElement("i",{className:"dashicons dashicons-no-alt"}),React.createElement("span",null,wp.i18n.__("Cancel","integrate-google-drive"))),!l&&React.createElement("button",{type:"button",className:"igd-btn btn-primary done",onClick:function(){return n(d)}},React.createElement("i",{className:"dashicons dashicons-saved"}),React.createElement("div",{className:"igd-spinner"}),React.createElement("span",null,wp.i18n.__("Done","integrate-google-drive")))),React.createElement(na,{value:{editData:d,setEditData:u,updateShortcode:function(e){return n(e)},isEditor:!0,builderType:d.type,isSelectFiles:a,selectionType:r,isFormBuilder:o,isLMS:l,isWooCommerce:c}},React.createElement(al,null)))}function _l(e){return _l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_l(e)}function El(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Rl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?El(Object(n),!0).forEach((function(t){Nl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):El(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Nl(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==_l(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==_l(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===_l(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sl(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,a,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=r.call(n)).done)&&(l.push(i.value),l.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw a}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Cl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Cl(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Cl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function Ol(e){var t=e.setType,n={shortcodes:{title:wp.i18n.__("Module Shortcodes","integrate-google-drive"),description:wp.i18n.__("Insert pre-built module's shortcode.","integrate-google-drive")},browser:{title:wp.i18n.__("File Browser","integrate-google-drive"),description:wp.i18n.__("Insert a file browser to browse specific Google Drive files and folders.","integrate-google-drive"),isPro:!0},uploader:{title:wp.i18n.__("File Uploader","integrate-google-drive"),description:wp.i18n.__("Insert a file uploader to upload files to a specific Google Drive folder.","integrate-google-drive"),isPro:!0},media:{title:wp.i18n.__("Media Player","integrate-google-drive"),description:wp.i18n.__("Insert a media player to play specific Google Drive Audio and Video files.","integrate-google-drive"),isPro:!0},search:{title:wp.i18n.__("File Search","integrate-google-drive"),description:wp.i18n.__("Insert a search box to search files and folders in specific Google Drive folders.","integrate-google-drive"),isPro:!0},slider:{title:wp.i18n.__("Slider Carousel","integrate-google-drive"),description:wp.i18n.__("Display Images, Videos, and Documents in a slider carousel.","integrate-google-drive"),isPro:!0},gallery:{title:wp.i18n.__("Gallery","integrate-google-drive"),description:wp.i18n.__("Insert a gallery to display specific Google Drive photos and videos with a lightbox preview.","integrate-google-drive")},embed:{title:wp.i18n.__("Embed Documents","integrate-google-drive"),description:wp.i18n.__("Embed documents to your page/ post.","integrate-google-drive")},download:{title:wp.i18n.__("Insert Download Links","integrate-google-drive"),description:wp.i18n.__("Insert links to download Google Drive files.","integrate-google-drive")},view:{title:wp.i18n.__("Insert View Links","integrate-google-drive"),description:wp.i18n.__("Insert links to view the files in Google Drive.","integrate-google-drive")}};if(!igd.isPro){var i={},a={};Object.entries(n).forEach((function(e){var t=Sl(e,2),n=t[0],r=t[1];r.isPro?a[n]=r:i[n]=r})),n=Rl(Rl({},i),a)}return React.createElement("div",{className:"igd-tinymce-types-wrap"},React.createElement("div",{className:"igd-tinymce-types-header"},React.createElement("h3",null,wp.i18n.__("Select Insert Type","integrate-google-drive")),React.createElement("span",null,wp.i18n.__("Select the insert type that you want to insert into you post or page.","integrate-google-drive"))),React.createElement("div",{className:"igd-tinymce-types"},Object.keys(n).map((function(e){var i="".concat(igd.pluginUrl,"/assets/images/shortcode-builder/types/").concat(e,".svg"),a=n[e],r=a.title,o=a.description,l=a.isPro;return React.createElement("div",{key:e,className:"igd-tinymce-type ".concat(l&&!igd.isPro?"pro-feature":""),onClick:function(){!l||igd.isPro?t(e):j(r+wp.i18n.__(" is available in the Pro version.","integrate-google-drive"))}},l&&!igd.isPro&&React.createElement("div",{className:"pro-badge"},React.createElement("i",{className:"dashicons dashicons-lock"}),React.createElement("span",null,wp.i18n.__("PRO","integrate-google-drive"))),React.createElement("div",{className:"icon-wrap icon-".concat(e)},React.createElement("img",{src:i})),React.createElement("span",{className:"igd-tinymce-type-title"},r),React.createElement("span",{className:"igd-tinymce-type-description"},o))}))))}function kl(e){return kl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kl(e)}function Fl(e){return function(e){if(Array.isArray(e))return Dl(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Il(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Al(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function xl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Al(Object(n),!0).forEach((function(t){Pl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Al(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Pl(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==kl(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==kl(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===kl(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jl(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,a,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=r.call(n)).done)&&(l.push(i.value),l.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw a}}return l}}(e,t)||Il(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Il(e,t){if(e){if("string"==typeof e)return Dl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Dl(e,t):void 0}}function Dl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var Tl=wp.components.SelectControl,Bl=React,Ul=Bl.useState,Ll=Bl.useEffect;function Ml(e){var t=e.setContent,n=jl(Ul({id:null,isInit:!0,shortcodes:[]}),2),i=n[0],a=n[1],r=i.id,o=i.isInit,l=i.shortcodes;Ll((function(){wp.ajax.post("igd_get_shortcodes").done((function(e){var t=e.shortcodes;return a(xl(xl({},i),{},{isInit:!1,shortcodes:t}))}))}),[]);var c=[{label:wp.i18n.__("Select shortcode","integrate-google-drive"),value:""}].concat(Fl(l.map((function(e){return{label:e.title,value:e.id}}))));return React.createElement("div",{className:"igd-module-shortcodes"},React.createElement("h2",null,wp.i18n.__("Module Shortcodes","integrate-google-drive")),React.createElement("p",{className:"description"},wp.i18n.__("Select the already created module shortcode to insert into the post.","integrate-google-drive")),o?React.createElement("div",{className:"igd-spinner spinner-large"}):React.createElement(Tl,{options:c,value:r,onChange:function(e){t('[integrate_google_drive id="'.concat(e,'"]')),a(xl(xl({},i),{},{id:e}))}}))}function zl(e){return zl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zl(e)}function Hl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Kl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hl(Object(n),!0).forEach((function(t){Wl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Wl(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==zl(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==zl(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===zl(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ql(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,a,r,o,l=[],c=!0,s=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=r.call(n)).done)&&(l.push(i.value),l.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(s)throw a}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Vl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Vl(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var ql=React,Gl=ql.useState;ql.useEffect;function Yl(e){var t=e.initData,n=Ql(Gl(!1),2),i=n[0],a=n[1],r=Ql(Gl(t?t.type:null),2),o=r[0],l=r[1],c=Ql(Gl(""),2),s=c[0],d=c[1],u=Ql(Gl(t||{type:o,showFiles:!0,showFolders:!0,moduleWidth:"100%",moduleHeight:"",embedWidth:"100%",embedHeight:"480px",galleryHeight:300,galleryMargin:5,galleryView:"rounded",showHeader:!0,showBreadcrumbs:!0,allowEmbedPopout:!0,embedType:"readOnly",showRefresh:!0,openedPlaylist:!0,showFullscreen:!0,nextPrevious:!0,volumeButton:!0,view:"list",lazyLoad:!0,lazyLoadNumber:100,openNewTab:!0,sort:{sortBy:"name",sortDirection:"asc"},preview:!0,allowPreviewPopout:!0,download:!0,zipDownload:!1,displayFor:"everyone",displayUsers:["everyone"],displayExcept:[],slideName:!0,slideHeight:"300px",slidesToShow:3,slidesToScroll:1,slideAutoplaySpeed:3e3,slideDots:!0}),2),m=u[0],g=u[1],p=function(){return Swal.close()};function f(e){var t="undefined"==typeof tinyMCE;t&&(window.tinyMCE=window.parent.tinyMCE);var n=tinyMCE.activeEditor;if(n){var i=n.id,a=t?window.parent.document.getElementById(i):document.getElementById(i),r=tinyMCE.get(i);if(r&&!r.isHidden())r.execCommand("mceInsertContent",!1,e);else{var o=a.selectionStart,l=a.value.substring(0,o),c=a.value.substring(a.selectionEnd,a.value.length);a.value=l+e+c,a.selectionStart=o+e.length,a.selectionEnd=o+e.length}}else console.warn("No active TinyMCE editor found.")}var v=function(){m.folders?(a(!0),m.folders=m.folders.map((function(e){return e.id?{id:e.id,accountId:e.accountId,name:e.name,type:e.type,permissions:e.permissions,resourceKey:e.resourceKey}:e})),wp.ajax.post("igd_get_embed_content",{data:m}).done((function(e){f(e)})).fail((function(e){console.log(e)})).always((function(){p()}))):p()},h=function(){var e="";m.folders?(m.folders.map((function(t){var n=t.id,i=t.accountId,a=(t.type,t.name),r=b(t)?"".concat(igd.ajaxUrl,"?action=igd_download_zip&file_ids=").concat(B(JSON.stringify([n]))):"".concat(igd.ajaxUrl,"?action=igd_download&id=").concat(n,"&accountId=").concat(i);e+='<a class="igd-download-link" href="'.concat(r,'">').concat(a,"</a> <br>")})),f(e),p()):p()},w=function(){f('[integrate_google_drive data="'.concat(B(JSON.stringify(m)),'"]')),p()},y=!!o,_="".concat(igd.pluginUrl,"/assets/images/shortcode-builder/insert-module.svg"),E=wp.i18n.__("Insert Module","integrate-google-drive");return"shortcodes"===o?E=wp.i18n.__("Insert Module Shortcodes","integrate-google-drive"):"browser"===o?E=wp.i18n.__("Insert File Browser","integrate-google-drive"):"embed"===o?E=wp.i18n.__("Embed Documents","integrate-google-drive"):"download"===o?E=wp.i18n.__("Insert Download Links","integrate-google-drive"):"view"===o&&(E=wp.i18n.__("Insert View Links","integrate-google-drive")),React.createElement("div",{className:"igd-module-builder-modal igd-tinymce-modal",onClick:function(e){return e.stopPropagation()}},React.createElement("div",{className:"igd-module-builder-modal-header"},React.createElement("div",{className:"header-title"},React.createElement("img",{src:_,width:20}),React.createElement("h3",null,E)),!!o&&!t&&React.createElement("button",{type:"button",className:"igd-btn btn-back",onClick:function(){l(""),d(""),g({})}},React.createElement("i",{className:"dashicons dashicons-arrow-left-alt2"}),React.createElement("span",null,wp.i18n.__("Back","integrate-google-drive"))),React.createElement("button",{type:"button",className:"igd-btn btn-danger",onClick:p},React.createElement("i",{className:"dashicons dashicons-no-alt"}),React.createElement("span",null,wp.i18n.__("Cancel","integrate-google-drive"))),React.createElement("button",{type:"button",className:"igd-btn btn-primary done ".concat(i?"loading":""," "),onClick:function(){y&&("embed"===o?v():"download"===o?h():"view"===o?function(){if(m.folders){var e="";m.folders.map((function(t){var n=t.webViewLink,i=t.name;e+='<a href="'.concat(n,'" target="_blank" >').concat(i," <br></a>")})),f(e),p()}else p()}():"shortcodes"===o?(f(s),p()):["browser","uploader","gallery","media","search","slider"].includes(o)&&w())}},i?React.createElement("div",{className:"igd-spinner"}):React.createElement("i",{className:"dashicons dashicons-saved"}),React.createElement("span",null,wp.i18n.__("Done","integrate-google-drive")))),!o&&React.createElement(Ol,{setType:l}),"shortcodes"===o&&React.createElement(Ml,{setContent:d}),!!o&&"shortcodes"!==o&&React.createElement(na,{value:{editData:Kl(Kl({},m),{},{type:o}),setEditData:g,updateShortcode:function(e){"embed"===o?v():["download","view"].includes(o)?h():w()},isEditor:"classic",builderType:o}},React.createElement(al,null)))}jQuery;var Jl={init:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=e?window.parent.jQuery(window.parent.document):jQuery(document);e&&(window.tinymce=e),t.on("click","#igd-media-button",(function(e){e.preventDefault(),Jl.openModuleBuilder()}));var n=!1,i=function(e,t){return!!t.dom.hasClass(e,"igd_module_shortcode")},a=function(e){var t=e.dom.get("wp-igd-toolbar");t&&e.dom.remove(t),e.dom.setAttrib(e.dom.select("img[data-wp-igd-select]"),"data-wp-igd-select",null),n=!1};tinymce.PluginManager.add("igd_tinymce_js",(function(e){e.on("BeforeSetcontent",(function(e){e.content=e.content.replace(/\[integrate_google_drive data="([^\]]*)"\]/g,(function(e,t){return'<img src="data:image/svg+xml,<svg xmlns=\'http://www.w3.org/2000/svg\' width=\'5\' height=\'5\'></svg>" class="igd_module_shortcode mceItem" title="Integrate Google Drive" data-mce-placeholder="1" data-code="'.concat(t,'"/>')}))})),e.on("PostProcess",(function(e){e.get&&(e.content=function(e){function t(e,t){return(t=new RegExp(t+'="([^"]+)"',"g").exec(e))?t[1]:""}return e.replace(/(?:<p[^>]*>)*(<img[^>]+>)(?:<\/p>)*/g,(function(e,n){return-1!=t(n,"class").indexOf("igd_module_shortcode")?'<p>[integrate_google_drive data="'.concat(t(n,"data-code"),'"]</p>'):e}))}(e.content))})),e.on("mouseup",(function(t){var r,o=t.target,l=e.dom;if(!(t.button&&t.button>1))if("DIV"===o.nodeName&&l.getParent(o,"#wp-igd-toolbar")){if(r=l.select("img[data-wp-igd-select]")[0])if(e.selection.select(r),l.hasClass(o,"remove"))a(e),function(e,t){t.dom.remove(e),a(t)}(r,e);else if(l.hasClass(o,"edit")){var c=e.selection.getContent(),s=/\[integrate_google_drive data="([^\]]*)"\]/g.exec(c);if(s){var d=s[1],u=JSON.parse(U(d));Jl.openModuleBuilder(u)}a(e)}}else"IMG"===o.nodeName&&!e.dom.getAttrib(o,"data-wp-igd-select")&&i(o,e)?function(e,t){var r,o,l=t.dom;a(t),e&&"IMG"===e.nodeName&&i(e,t)&&(l.setAttrib(e,"data-wp-igd-select",1),r='<div class="dashicons dashicons-edit edit" title="'.concat(wp.i18n.__("Edit","integrate-google-drive"),'" data-mce-bogus="1"></div>\n                    <div class="dashicons dashicons-no-alt remove" title="Remove" data-mce-bogus="1"></div>'),o=l.create("div",{id:"wp-igd-toolbar","data-mce-bogus":"1",contenteditable:!1},r),e.parentNode.insertBefore(o,e),n=!0)}(o,e):"IMG"!==o.nodeName&&a(e)})),e.on("mousedown",(function(t){e.dom.getParent(t.target,"#wp-igd-toolbar")?tinymce.Env.ie&&t.preventDefault():a(e)})),e.on("keydown",(function(t){var i=t.keyCode;if(n){if(t.ctrlKey||t.metaKey||t.altKey||i<48&&i>90||i>186)return;a(e)}})),e.on("cut",(function(){a(e)}))}))},openModuleBuilder:function(e){Swal.fire({html:'<div id="igd-tinymce" class="igd-module-builder-modal-wrap"></div>',showConfirmButton:!1,customClass:{container:"igd-module-builder-modal-container"},didOpen:function(){ReactDOM.render(React.createElement(Yl,{initData:e}),document.getElementById("igd-tinymce"))},willClose:function(){ReactDOM.unmountComponentAtNode(document.getElementById("igd-tinymce"))}})}};const Xl=Jl;var Zl=jQuery,$l={init:function(){Zl(document).on("click",".igd-form-uploader-trigger-cf7",$l.openModal)},openModal:function(e){var t=Zl("#tag-generator-panel-google_drive-data"),n={type:"uploader",isFormUploader:"cf7",folders:[]};if(t.val())try{n=JSON.parse(U(t.val()))}catch(e){console.log(e)}Swal.fire({html:'<div id="igd-form-uploader-config" class="igd-module-builder-modal-wrap"></div>',showConfirmButton:!1,customClass:{container:"igd-module-builder-modal-container"},didOpen:function(){ReactDOM.render(React.createElement(bl,{initData:n,onUpdate:function(e){$l.updateData(e,t),Swal.close()},onClose:function(){return Swal.close()},isFormBuilder:"cf7"}),document.getElementById("igd-form-uploader-config"))},willClose:function(){ReactDOM.unmountComponentAtNode(document.getElementById("igd-form-uploader-config"))}})},updateData:function(e,t){var n;if(null!=e&&null!==(n=e.folders)&&void 0!==n&&n.length){var i=e.folders[0];e.folders[0]={id:i.id,accountId:i.accountId,name:i.name,type:i.type}}try{var a=JSON.stringify(e);t.val(B(a)).trigger("change")}catch(e){console.log(e)}}};const ec=$l;var tc=jQuery,nc={init:function(){T(),tc(document).on("click",".igd-form-uploader-trigger-wpforms",nc.openModal),tc(document).on("wpformsFieldAdd",(function(e,t,n){"igd-uploader"===n&&T()}))},openModal:function(){var e={type:"uploader",isFormUploader:"wpforms"},t=tc(this).parent().find(".igd-uploader-data");if(t.val())try{e=JSON.parse(t.val())}catch(e){console.log(e)}Swal.fire({html:'<div id="igd-form-uploader-config" class="igd-module-builder-modal-wrap"></div>',showConfirmButton:!1,customClass:{container:"igd-swal igd-module-builder-modal-container"},didOpen:function(n){ReactDOM.render(React.createElement(bl,{initData:e,onUpdate:function(e){nc.updateData(e,t),Swal.close()},onClose:function(){return Swal.close()},isFormBuilder:"wpforms"}),document.getElementById("igd-form-uploader-config"))},willClose:function(e){ReactDOM.unmountComponentAtNode(document.getElementById("igd-form-uploader-config"))}})},updateData:function(e,t){var n;if(null!=e&&null!==(n=e.folders)&&void 0!==n&&n.length){var i=e.folders[0];e.folders[0]={id:i.id,accountId:i.accountId,name:i.name,type:i.type}}var a=JSON.stringify(e);t.val(a).trigger("change");var r=tc(".wpforms-field-igd-uploader.active .igd");ReactDOM.unmountComponentAtNode(r[0]),r.attr("data-shortcode-data",B(a)),T()}};const ic=nc;var ac=jQuery,rc={init:function(){ac("#igd-form-uploader-config-gravityforms").on("click",rc.openModal),ac(document).on("gform_field_added",(function(e,t,n){"integrate_google_drive"===n.type&&T()})),ac(document).on("gform_load_field_settings",(function(e,t){"integrate_google_drive"===t.type&&(ac(".igd-uploader-data").val(t.defaultValue),void 0!==t.igdData&&""!==t.igdData&&ac(".igd-uploader-data").val(t.igdData))}))},openModal:function(){var e=ac(this).parent().find(".igd-uploader-data"),t={type:"uploader",isFormUploader:"gravityforms"};if(e.val())try{t=JSON.parse(e.val())}catch(e){console.log(e)}Swal.fire({html:'<div id="igd-form-uploader-config" class="igd-module-builder-modal-wrap"></div>',showConfirmButton:!1,customClass:{container:"igd-module-builder-modal-container"},didOpen:function(){ReactDOM.render(React.createElement(bl,{initData:t,onUpdate:function(t){rc.updateData(t,e),Swal.close()},onClose:function(){return Swal.close()},isFormBuilder:"gravityforms"}),document.getElementById("igd-form-uploader-config"))},willClose:function(){ReactDOM.unmountComponentAtNode(document.getElementById("igd-form-uploader-config"))}})},updateData:function(e,t){var n;if(null!=e&&null!==(n=e.folders)&&void 0!==n&&n.length){var i=e.folders[0];e.folders[0]={id:i.id,accountId:i.accountId,name:i.name,type:i.type}}var a=JSON.stringify(e);ac(t).val(a).trigger("change");var r=ac(".gfield.field_selected .igd");ReactDOM.unmountComponentAtNode(r.get(0)),r.attr("data-shortcode-data",B(a)),T()}};const oc=rc;var lc=jQuery,cc={init:function(){lc("#ff_form_editor_app").on("click",".igd-form-uploader-trigger-fluentforms",cc.openModal);var e=document.querySelector(".panel__body--list");e&&lc(e).on("DOMNodeInserted",(function(e){lc(e.target).find(".igd")&&T()}))},openModal:function(){var e=lc(".igd-uploader-data textarea");lc(e).on("input",(function(){var e=lc(this).val(),t=lc(".panel__body--item.selected .igd");ReactDOM.unmountComponentAtNode(t[0]),t.attr("data-shortcode-data",B(e)),T()}));var t={type:"uploader",isFormUploader:"fluentforms"};if(e.val())try{t=JSON.parse(e.val())}catch(e){console.log(e)}Swal.fire({html:'<div id="igd-form-uploader-config" class="igd-module-builder-modal-wrap"></div>',showConfirmButton:!1,customClass:{container:"igd-module-builder-modal-container"},didOpen:function(){ReactDOM.render(React.createElement(bl,{initData:t,onUpdate:function(t){cc.updateData(t,e)},onClose:function(){return Swal.close()},isFormBuilder:"fluentforms"}),document.getElementById("igd-form-uploader-config"))},willClose:function(){ReactDOM.unmountComponentAtNode(document.getElementById("igd-form-uploader-config"))}})},updateData:function(e,t){var n;if(null!=e&&null!==(n=e.folders)&&void 0!==n&&n.length){var i=e.folders[0];e.folders[0]={id:i.id,accountId:i.accountId,name:i.name,type:i.type}}var a=JSON.stringify(e);Swal.fire({title:wp.i18n.__("Shortcode Data","integrate-google-drive"),text:wp.i18n.__('Please, copy the following text and paste it into the "Shortcode Data" form editor field.',"integrate-google-drive"),input:"textarea",inputValue:a,showCancelButton:!1,showCloseButton:!0,confirmButtonText:wp.i18n.__("Copy","integrate-google-drive"),didOpen:function(e){e.querySelector("textarea").select(),document.execCommand("copy")},reverseButtons:!0,customClass:{container:"igd-shortcode-data-modal-container",input:"igd-swal igd-shortcode-data-modal-input"}}),t.val("")}};const sc=cc;var dc=jQuery,uc={init:function(){T(),dc("#frm_builder_page").on("click",".igd-form-uploader-trigger-formidableforms",uc.openModal);var e=dc("#frm-show-fields");e.length&&e.on("DOMNodeInserted",(function(e){dc(e.target).find(".igd").length&&T()}))},openModal:function(){var e={type:"uploader",isFormUploader:"formidableforms"},t=dc(".frm-fields:not(.frm_hidden) .igd-uploader-data");if(t.val())try{e=JSON.parse(t.val())}catch(e){console.log(e)}Swal.fire({html:'<div id="igd-form-uploader-config" class="igd-module-builder-modal-wrap"></div>',showConfirmButton:!1,customClass:{container:"igd-module-builder-modal-container"},didOpen:function(){ReactDOM.render(React.createElement(bl,{initData:e,onUpdate:function(e){uc.updateData(e,t),Swal.close()},onClose:function(){return Swal.close()},isFormBuilder:"formidableforms"}),document.getElementById("igd-form-uploader-config"))},willClose:function(){ReactDOM.unmountComponentAtNode(document.getElementById("igd-form-uploader-config"))}})},updateData:function(e,t){var n;if(null!=e&&null!==(n=e.folders)&&void 0!==n&&n.length){var i=e.folders[0];e.folders[0]={id:i.id,accountId:i.accountId,name:i.name,type:i.type}}var a=JSON.stringify(e);t.val(a).trigger("change");var r=dc(".edit_field_type_integrate-google-drive.selected .igd");ReactDOM.unmountComponentAtNode(r[0]),r.attr("data-shortcode-data",B(a)),T()}};const mc=uc;var gc=jQuery,pc={init:function(){T(),gc("#nf-builder").on("click",".igd-form-uploader-trigger-ninjaforms",pc.openModal)},openModal:function(){var e={type:"uploader",isFormUploader:"ninjaforms"},t=gc("#igd_data");if(t.val())try{e=JSON.parse(t.val())}catch(e){console.log(e)}Swal.fire({html:'<div id="igd-form-uploader-config" class="igd-module-builder-modal-wrap"></div>',showConfirmButton:!1,customClass:{container:"igd-module-builder-modal-container"},didOpen:function(){ReactDOM.render(React.createElement(bl,{initData:e,onUpdate:function(e){pc.updateData(e,t),Swal.close()},onClose:function(){return Swal.close()},isFormBuilder:"ninjaforms"}),document.getElementById("igd-form-uploader-config"))},willClose:function(){ReactDOM.unmountComponentAtNode(document.getElementById("igd-form-uploader-config"))}})},updateData:function(e,t){var n;if(null!=e&&null!==(n=e.folders)&&void 0!==n&&n.length){var i=e.folders[0];e.folders[0]={id:i.id,accountId:i.accountId,name:i.name,type:i.type}}var a=JSON.stringify(e);t.val(a).trigger("change");var r=gc(".nf-field-wrap.integrate_google_drive.active .igd");ReactDOM.unmountComponentAtNode(r[0]),r.attr("data-shortcode-data",B(a)),T()}};const fc=pc;window.ModuleBuilderModal=bl,window.IgdShortcode=Ma,window.initShortcode=T,function(e){var t=igd.isPro,n=igd.settings.integrations,i=void 0===n?["classic-editor","gutenberg-editor","elementor","divi","cf7"]:n,a={init:function(){a.initFileBrowser(),a.initShortcodeBuilder(),e(window).on("elementor/frontend/init",(function(){elementor.hooks.addAction("panel/open_editor/widget",(function(e,t,n){window.parent.tinyMCE&&window.parent.tinyMCE.on("AddEditor",(function(e){Xl.init(window.parent.tinymce)}))}))}))},ready:function(){i.includes("classic-editor")&&"undefined"!=typeof tinymce&&Xl.init(),i.includes("cf7")&&ec.init(),t&&(t&&i.includes("wpforms")&&ic.init(),t&&i.includes("gravityforms")&&oc.init(),t&&i.includes("fluentforms")&&sc.init(),t&&i.includes("formidableforms")&&mc.init(),t&&i.includes("ninjaforms")&&fc.init()),i.includes("gutenberg-editor")&&a.updateBlockCategoryIcon(),e(document).on("click",".igd-offer-notice .offer-btn-main, .igd-offer-notice .notice-dismiss",a.handleNoticeDismiss)},handleNoticeDismiss:function(t){e(this).closest(".igd-admin-notice").slideUp(),wp.ajax.post("igd_dismiss_offer_notice")},initFileBrowser:function(){var e=document.getElementById("igd-app");if(e){var t={},n=jQuery(e).find(".app-data").html();n&&(t=JSON.parse(n)),ReactDOM.render(React.createElement($i,t),e)}},initShortcodeBuilder:function(){var e=document.getElementById("igd-shortcode-builder");if(e){var t={},n=jQuery(e).find(".shortcode-builder-data").html();n&&(t=JSON.parse(n)),ReactDOM.render(React.createElement(vl,t),e)}},updateBlockCategoryIcon:function(){var e=React.createElement("svg",{width:"18",height:"18",viewBox:"0 0 87.3 78",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"m6.6 66.85 3.85 6.65c.8 1.4 1.95 2.5 3.3 3.3l13.75-23.8h-27.5c0 1.55.4 3.1 1.2 4.5z",fill:"#0066da"}),React.createElement("path",{d:"m43.65 25-13.75-23.8c-1.35.8-2.5 1.9-3.3 3.3l-25.4 44a9.06 9.06 0 0 0 -1.2 4.5h27.5z",fill:"#00ac47"}),React.createElement("path",{d:"m73.55 76.8c1.35-.8 2.5-1.9 3.3-3.3l1.6-2.75 7.65-13.25c.8-1.4 1.2-2.95 1.2-4.5h-27.502l5.852 11.5z",fill:"#ea4335"}),React.createElement("path",{d:"m43.65 25 13.75-23.8c-1.35-.8-2.9-1.2-4.5-1.2h-18.5c-1.6 0-3.15.45-4.5 1.2z",fill:"#00832d"}),React.createElement("path",{d:"m59.8 53h-32.3l-13.75 23.8c1.35.8 2.9 1.2 4.5 1.2h50.8c1.6 0 3.15-.45 4.5-1.2z",fill:"#2684fc"}),React.createElement("path",{d:"m73.4 26.5-12.7-22c-.8-1.4-1.95-2.5-3.3-3.3l-13.75 23.8 16.15 28h27.45c0-1.55-.4-3.1-1.2-4.5z",fill:"#ffba00"}));wp.blocks&&wp.blocks.updateCategory("igd-category",{icon:e})}};a.init(),e(document).on("ready",a.ready)}(jQuery)})()})();
  • integrate-google-drive/trunk/assets/js/frontend.js

    r2997844 r3004719  
    1 (()=>{var e={155:e=>{var t,n,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();var l,c=[],s=!1,d=-1;function u(){s&&l&&(s=!1,l.length?c=l.concat(c):d=-1,c.length&&f())}function f(){if(!s){var e=a(u);s=!0;for(var t=c.length;t;){for(l=c,c=[];++d<t;)l&&l[d].run();d=-1,t=c.length}l=null,s=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===o||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function m(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new p(e,t)),1!==c.length||s||a(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=m,r.addListener=m,r.once=m,r.off=m,r.removeListener=m,r.removeAllListeners=m,r.emit=m,r.prependListener=m,r.prependOnceListener=m,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},880:(e,t,n)=>{"use strict";var r=n(976);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},884:(e,t,n)=>{e.exports=n(880)()},976:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=React.createContext();const t=e;var r=e.Provider;function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var a=React,l=a.useEffect,c=a.useState;function s(e){var t=e.text,n=i(c(!0),2),r=n[0],o=n[1];return l((function(){r||ReactDOM.unmountComponentAtNode(document.getElementById("igd-pro-modal"))}),[r]),r?React.createElement("div",{className:"igd-pro-modal-wrap"},React.createElement("div",{className:"igd-pro-modal"},React.createElement("span",{className:"igd-pro-modal-close",onClick:function(){return o(!1)}},"×"),React.createElement("img",{src:"".concat(igd.pluginUrl,"/assets/images/offer.png"),alt:"Upgrade to Pro"}),React.createElement("h3",null,wp.i18n.__("Unlock PRO Features","integrate-google-drive")),React.createElement("h2",null,React.createElement("span",{className:"upto"},"UPTO"),wp.i18n.__("50% OFF","integrate-google-drive")),React.createElement("p",null,t),React.createElement("a",{href:igd.upgradeUrl,className:"igd-btn btn-success"},wp.i18n.__("Upgrade Now","integrate-google-drive")))):null}function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function u(){u=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function s(e,t,n,i){var o=t&&t.prototype instanceof m?t:m,a=Object.create(o.prototype),l=new C(i||[]);return r(a,"_invoke",{value:R(e,n,l)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var p={};function m(){}function g(){}function v(){}var h={};c(h,o,(function(){return this}));var w=Object.getPrototypeOf,y=w&&w(w(x([])));y&&y!==t&&n.call(y,o)&&(h=y);var b=v.prototype=m.prototype=Object.create(h);function _(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function i(r,o,a,l){var c=f(e[r],e,o);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==d(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){i("next",e,a,l)}),(function(e){i("throw",e,a,l)})):t.resolve(u).then((function(e){s.value=e,a(s)}),(function(e){return i("throw",e,a,l)}))}l(c.arg)}var o;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){i(e,n,t,r)}))}return o=o?o.then(r,r):r()}})}function R(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return F()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var l=S(a,n);if(l){if(l===p)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=f(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function S(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var i=f(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,p;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function x(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:F}}function F(){return{value:void 0,done:!0}}return g.prototype=v,r(b,"constructor",{value:v,configurable:!0}),r(v,"constructor",{value:g,configurable:!0}),g.displayName=c(v,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,l,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},_(E.prototype),c(E.prototype,a,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new E(s(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},_(b),c(b,l,"Generator"),c(b,o,(function(){return this})),c(b,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=x,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var l=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(l&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;O(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:x(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},e}function f(e,t,n,r,i,o,a){try{var l=e[o](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,i)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==d(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==d(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===d(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return h(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function w(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n={text:{"application/vnd.oasis.opendocument.text":"Text","text/plain":"Text"},file:{"text/html":"HTML","text/php":"PHP","x-httpd-php":"PHP","text/css":"CSS","text/js":"JavaScript","application/javascript":"JavaScript","application/json":"JSON","application/xml":"XML","application/x-shockwave-flash":"SWF","video/x-flv":"FLV","application/vnd.google-apps.file":"File"},image:{"application/vnd.google-apps.photo":"Photo","image/png":"PNG","image/jpeg":"JPEG","image/jpg":"JPG","image/gif":"GIF","image/bmp":"BMP","image/vnd.microsoft.icon":"ICO","image/tiff":"TIFF","image/tif":"TIF","image/svg+xml":"SVG"},zip:{"application/zip":"ZIP","application/x-rar-compressed":"RAR","application/x-msdownload":"EXE","application/vnd.ms-cab-compressed":"CAB"},audio:{"audio/mpeg":"MP3","video/quicktime":"QT","application/vnd.google-apps.audio":"Audio","audio/x-m4a":"Audio"},video:{"application/vnd.google-apps.video":"Video","video/x-flv":"Video","video/mp4":"Video","video/webm":"Video","video/ogg":"Video","application/x-mpegURL":"Video","video/MP2T":"Video","video/3gpp":"Video","video/quicktime":"Video","video/x-msvideo":"Video","video/x-ms-wmv":"Video"},pdf:{"application/pdf":"PDF"},word:{"application/msword":"MS Word"},doc:{"application/vnd.google-apps.document":"Google Docs"},excel:{"application/vnd.ms-excel":"Excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":"Excel"},presentation:{"application/vnd.google-apps.presentation":"Slide","application/vnd.oasis.opendocument.presentation":"Presentation"},powerpoint:{"application/vnd.ms-powerpoint":"Powerpoint"},form:{"application/vnd.google-apps.form":"Form"},folder:{"application/vnd.google-apps.folder":"Folder"},drawing:{"application/vnd.google-apps.drawing":"Drawing"},script:{"application/vnd.google-apps.script":"Script"},sites:{"application/vnd.google-apps.sites":"Sites"},spreadsheet:{"application/vnd.google-apps.spreadsheet":"Spreadsheet","application/vnd.oasis.opendocument.spreadsheet":"Spreadsheet"}},r="File",i="file";return Object.keys(n).map((function(o){t&&n[o][e]?i=o:n[o][e]&&(r=n[o][e])})),t?i:r}function y(e){if(e<1)return 0;var t=Math.floor(Math.log(e)/Math.log(1024));return 1*(e/Math.pow(1024,t)).toFixed(2)+" "+["Byte","KB","MB","GB","TB"][t]}function b(e){var t;return!e.type||("application/vnd.google-apps.folder"===e.type||"application/vnd.google-apps.folder"===(null===(t=e.shortcutDetails)||void 0===t?void 0:t.targetMimeType))}function _(e){var t=w(e,!0);return t=t||"file","".concat(igd.pluginUrl,"/assets/images/icons/").concat(t,".png")}function E(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:igd.activeAccount,n=t.root_id,r=t.id,i=[{accountId:r,id:n,name:wp.i18n.__("My Drive","integrate-google-drive"),type:"application/vnd.google-apps.folder",iconLink:"".concat(igd.pluginUrl,"/assets/images/my-drive.svg")},{accountId:r,id:"shared-drives",name:wp.i18n.__("Shared Drives","integrate-google-drive"),type:"application/vnd.google-apps.folder",iconLink:"".concat(igd.pluginUrl,"/assets/images/shared-drives.svg")},{accountId:r,id:"computers",name:wp.i18n.__("Computers","integrate-google-drive"),type:"application/vnd.google-apps.folder",iconLink:"".concat(igd.pluginUrl,"/assets/images/computers.svg")},{accountId:r,id:"shared",name:wp.i18n.__("Shared with me","integrate-google-drive"),type:"application/vnd.google-apps.folder",iconLink:"".concat(igd.pluginUrl,"/assets/images/shared.svg")},{accountId:r,id:"starred",name:wp.i18n.__("Starred","integrate-google-drive"),type:"application/vnd.google-apps.folder",iconLink:"".concat(igd.pluginUrl,"/assets/images/starred.svg")}];return e?i.find((function(t){return t.id==e})):i}function R(e){var t,n,r,i=null==e||null===(t=e.getSource)||void 0===t||null===(n=t.call(e))||void 0===n||null===(r=n.relativePath)||void 0===r?void 0:r.replace(/^\//,"");return null!=i?i:""}function S(e){return O(e)||A(e)}function A(e){var t,n;return!(null==e||null===(t=e.type)||void 0===t||!t.includes("video/"))||!(null===(n=e.shortcutDetails)||void 0===n||!n.targetMimeType.includes("video/"))}function O(e){var t,n;return!(null===(t=e.type)||void 0===t||!t.includes("audio/"))||!(null===(n=e.shortcutDetails)||void 0===n||!n.targetMimeType.includes("audio/"))}function C(e){var t,n;return!(null===(t=e.type)||void 0===t||!t.includes("image/"))||!(null===(n=e.shortcutDetails)||void 0===n||!n.targetMimeType.includes("image/"))}function x(e,t){return E(e,t)}function F(e,t){e.onerror=null;var n="https://www.gravatar.com/avatar/"+t+"?s=200&d=mm";e.src===n?e.src="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD//gA7Q1JFQVRPUjogZ2QtanBlZyB2MS4wICh1c2luZyBJSkcgSlBFRyB2NjIpLCBxdWFsaXR5ID0gOTAK/9sAQwADAgIDAgIDAwMDBAMDBAUIBQUEBAUKBwcGCAwKDAwLCgsLDQ4SEA0OEQ4LCxAWEBETFBUVFQwPFxgWFBgSFBUU/9sAQwEDBAQFBAUJBQUJFA0LDRQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQU/8AAEQgAyADIAwEiAAIRAQMRAf/EAB8AAAEFAQEBAQEBAAAAAAAAAAABAgMEBQYHCAkKC//EALUQAAIBAwMCBAMFBQQEAAABfQECAwAEEQUSITFBBhNRYQcicRQygZGhCCNCscEVUtHwJDNicoIJChYXGBkaJSYnKCkqNDU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6g4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2drh4uPk5ebn6Onq8fLz9PX29/j5+v/EAB8BAAMBAQEBAQEBAQEAAAAAAAABAgMEBQYHCAkKC//EALURAAIBAgQEAwQHBQQEAAECdwABAgMRBAUhMQYSQVEHYXETIjKBCBRCkaGxwQkjM1LwFWJy0QoWJDThJfEXGBkaJicoKSo1Njc4OTpDREVGR0hJSlNUVVZXWFlaY2RlZmdoaWpzdHV2d3h5eoKDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uLj5OXm5+jp6vLz9PX29/j5+v/aAAwDAQACEQMRAD8A+t6KMUtACZooxRQAUZpaSgAozRiloASijFGKADNFLRigBM0UUtACUUtJigAopaKAE5oopaAEo5paKAEoopaAE5opaKAEooooAWkoooAMUUUUAFFFFABRRRQAUUUUAGKKKKACiiigApaSigAooooAWkoooAKWkooAKKKKAClpKWgBKKKKACiiloASiiigAop8UTzyLHGrSOxwqqMkmvTPCnwpXYl1rJJY8i0Q8D/eP9B+dAHnVjpl3qcvl2ltLcv6RoWx9fSumsvhXr10AZI4bUH/AJ7Sc/kua9ltLO3sIRDbQxwRDokahR+QqagDyL/hTmp7f+P20z6Zb/CqV58KddtgTGkF0PSKTB/8exXtVFAHzff6Re6VJsvLWW2bt5ikA/Q96qV9LXNrDeRGKeJJ426pIoYH8DXnvir4UxTK9zox8qXqbVj8p/3T2+h/SgDyujFSTwSWszwzRtHKh2sjDBBqOgApaSigAoo7UUAFFFFAC0UlFABRRiigAooooAKKKKAClUFmAAJJ4AApK7r4V+GxqmqNqE6hoLQjaD/FIen5dfyoA634f+B00G2W9vEDajIMgN/yxB7D39fyrtKKSgApaKKACkopaACikxRQByXjzwTF4jtGubdAmpRD5WHHmD+6f6GvFJEeJ2R1KOpwVYYIPpX0zXkvxY8NLZXseqwKFiuDslAHR8dfxA/T3oA8+oxR0ooAKKMUYoAMUUUYoAKKMUUAFGaKM0AFFFFABR3oooAK978CaUNJ8L2MW3bJIgmf/ebn9BgfhXhFtF59zFGP43C/ma+lY0EaKi8KoAFADqKKKAEpaSloAKSlpKACloooASsjxdpY1nw5fW23LmMsn+8OR+orXpTyKAPmSlqzq1uLTVLyAcCKZ0GfZiKq0AFHNFFABS0mKKACiiigAoopaAEo60UUAFFFHegCxp8giv7Zz0SVSfzFfSdfMoPOa+ivD+oDVdEsbsHPmxKT7HHI/PNAGhSUtFABRRRQAlFLRQAlFGaWgBKKWqup3y6bp1zdv92GNnP4DNAHz74gkEuvalIOjXMpH4uaoU53MjszcliSTSUAJRS0lABRS0UAJiiiigAooxRQAUUUfpQAUUUUAFerfCLXlms59KlceZEfMhB7qeoH0PP415TirekapPouowXts22WJsj0I7g+xFAH0hSdqzvD+u2/iLTYry2PDDDoTyjdwa0aAClpOlFAC0lLSUALRSUv4UAJXBfFrXls9Jj02Jx51yQzgdRGP8Tj8jXYa1rFtoWnS3l022NBwO7HsB714Drusz6/qk97cH55DwoPCr2AoAodaKMUUAFFFFABRRRQAUUdaKACiiigAo6UUUAFFFFABiiiigDY8M+J7vwvfefbNujbiWFj8rj/AB969q8O+KrDxNbCS1l2ygfPA5w6fh3HvXkfhz4f6p4hCyiMWtqf+W8wxkf7I6n+XvXpnh74d6X4fkjnCvc3aciaQ4wfYDgfrQB1FFFLQAn50UtJQAtZWv8AiWw8N2pmu5sMR8kSnLv9B/WtWuY8R/D3TPEUjzsJLe7brNG2cn3B4/lQB5P4q8WXfiq88yb93bpnyoFPCj+p96w66bxH8P8AVPDwaUoLq0H/AC3hGcf7w6j+XvXMmgAooooAMUUGjNABRiiigAoozRQAUUUUAFFFFABRRUkEEl1OkMKNJK7BVRRkkntQAW9vLdzJDDG0srkKqKMkmvWPB3wyg00Jd6qq3F31WA8pH9fU/pWl4G8DxeGrYT3CrJqTj5n6iMf3V/qa6ygAAAAAHFHaiigA6UUUUALSUUtACUClpM0ABGRgjg1wPjH4ZQ6isl3pSrb3fVoOiSfT0P6V39FAHzRcW8tpO8M0bRSodrIwwQajr27xz4Hh8S2xnt1WPUox8r9BIP7rf0NeKzwSWs8kMyNHKjFWRhggjtQBHRRRQAUUUUAFFFFABRRRQAUUUdaACvWvhh4PFjbrq12n+kSr+4Vh9xD/ABfU/wAvrXF+AfDX/CR64gkUmzt8STeh9F/E/pmvdAAowOAOMUAKaSiloAKKTNHagApaSjNAC0lAooAMUtJmgUAFGMUUZ4oAWvPvif4PF9bPq9omLiEfv0UffQfxfUfy+legZoIDAg8g8YoA+ZaK6Xx94a/4RzW3Ea4s7jMkJ7D1X8D+mK5qgAooooAKKKKACiiigAoorZ8IaR/bniKytSu6Ivvk/wB0cn+WPxoA9c+HugjQ/DkO9dtzcDzpT9eg/AY/WumpOg7YooAXrSUtJQAUtJS0AJRRRQAuaKKSgBaKSloAKKSigBc0UUlAHNfELQRrvhyfYu64tx50R+nUfiM/jivCq+miOtfP3i/SP7D8RXtqBtjD74/91uR/PH4UAY1FFFABRRRQAUUUd6ACvSPg3p2+6v74j7irCp+pyf5D8683r2n4UWf2bwmsuMGeZ5Py+X/2WgDsqDQaKACij8KSgBaO1JS/hQAUUlFACikpfwooAM0Cij8KAEpe1FFABRRRQAV5Z8ZNO2XWn3yj76GFj9OR/M/lXqdcb8VrMXPhN5MZMEySD8fl/wDZqAPFqKKKACiiigAooooAK9+8DweR4R0tfWEP+fP9aKKAN2iiigApKKKACloooASloooAKSiigApaKKAEooooAXFJRRQAVh+OYPtHhLVF64hL/wDfPP8ASiigDwGiiigAooooA//Z":e.src=n}function k(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e.id,i=e.iconLink,o=e.thumbnailLink,a=e.accountId;e.shortcutDetails&&(r=e.shortcutDetails.targetId);var l=n.w,c=n.h;l||(l=64),c||(c=64);var s=null==i?void 0:i.replace("/16/","/".concat(l,"/"));if(o)if(function(e){var t,n,r,i,o,a;return"reader"===(null===(t=e.permissions)||void 0===t||null===(n=t.users)||void 0===n||null===(r=n.anyoneWithLink)||void 0===r?void 0:r.role)||"writer"===(null===(i=e.permissions)||void 0===i||null===(o=i.users)||void 0===o||null===(a=o.anyoneWithLink)||void 0===a?void 0:a.role)}(e))s="custom"===t?"https://drive.google.com/thumbnail?id=".concat(r,"&sz=w").concat(l,"-h").concat(c):"https://drive.google.com/thumbnail?id=".concat(r,"small"===t?"&sz=w300-h300":"medium"===t?"&sz=w600-h400":"large"===t?"&sz=w1024-h768":"full"===t?"&sz=w2048":"&sz=w300-h300");else if(o.includes("google.com")){var d="".concat(igd.ajaxUrl,"?action=igd_get_preview_thumbnail&id=").concat(r,"&size=").concat(t,"&accountId=").concat(a);"custom"===t&&(d+="&w=".concat(l,"&h=").concat(c)),s=d}else s="custom"===t?o.replace("=s220","=w".concat(l,"-h").concat(c)):"small"===t?o.replace("=s220","=w300-h300"):"medium"===t?o.replace("=s220","=h600-nu"):"large"===t?o.replace("=s220","=w1024-h768-p-k-nu"):"full"===t?o.replace("=s220",""):o.replace("=s220","=w200-h190-p-k-nu");return s}function N(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:wp.i18n.__("Upgrade to PRO to use this feature.","integrate-google-drive"),t=document.getElementById("igd-pro-modal");t||((t=document.createElement("div")).id="igd-pro-modal",document.body.appendChild(t)),ReactDOM.render(React.createElement(s,{text:e}),t)}function j(){var e=v(React.useState(!1),2),t=e[0],n=e[1];return React.useEffect((function(){n(!0)}),[]),t}function P(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(!r||r.preview){n=n.filter((function(e){return!b(e)}));var a=!r||!1!==r.inlinePreview,l=n.find((function(e){return e.id===t}));if(!a&&l&&l.webViewLink)window.open(l.webViewLink,"_blank");else{var c=!r||!!r.download,s=!r||r.allowPreviewPopout,d=!!r&&r.comment,u=n.map((function(e){var t=e.id,n=e.name,i=e.iconLink,a=e.accountId,l=e.exportAs,s=e.exportLinks,u=e.webContentLink,f=e.description,p=S(e),m=C(e),g="";if(l&&c&&(s||u)){g="".concat(igd.ajaxUrl,"?action=igd_download&id=").concat(e.id,"&accountId=").concat(e.accountId);var v=Object.keys(l);if(v.length){var h=l[v[0]].mimetype;g+="&mimetype=".concat(h)}}var w={thumb:k(e,"small"),downloadUrl:g,subHtml:o?"<h4>".concat(n,"</h4>").concat(f?"<p>".concat(f,"</p>"):""):'<div class="item-name">\n                      <img src="'.concat(null==i?void 0:i.replace("/16/","/32/"),'" alt="').concat(n,'" />\n                      <span>').concat(n,"</span>\n                  </div>")};if(d){var y="".concat(window.location.protocol,"//").concat(window.location.host).concat(window.location.pathname),b="".concat(y,"?id=").concat(t);"disqus"===r.commentMethod?(w.disqusIdentifier=t,w.disqusUrl=b):w.fbHtml='<div class="fb-comments" data-href="'.concat(b,'" data-width="400" data-numposts="5"></div>')}if(p){w.poster=k(e,"large");var _=A(e)?"video/mp4":"audio/mp3";w.video='{"source": [{"src":"'.concat(igd.ajaxUrl,"?action=igd_stream&id=").concat(t,"&accountId=").concat(a,'", "type":"').concat(_,'"}], "attributes": {"preload": "auto","playsinline": true, "autoplay": true, "controls": true, "referrerpolicy": "no-referrer"}}')}else m?w.src=k(e,"full"):(w.iframe=!0,w.iframeTitle=n,w.src="".concat(igd.ajaxUrl,"?action=igd_preview&file_id=").concat(t,"&account_id=").concat(a,"&popout=").concat(!r||!!r.allowPreviewPopout));return w})),f=function(){document.body.style.overflow="hidden"},p=function t(){document.body.style.overflow="",e.target.removeEventListener("lgBeforeOpen",f),e.target.removeEventListener("lgAfterClose",t),e.target.removeEventListener("lgSlideItemLoad",w)};window.dynamicGallery&&(e.target.removeEventListener("lgBeforeOpen",f),e.target.removeEventListener("lgAfterClose",p),e.target.removeEventListener("lgSlideItemLoad",w),window.dynamicGallery.destroy(!0));var m=window.innerWidth<768,g=[lgThumbnail,lgZoom,lgVideo];d&&g.push(lgComment),m||g.push(lgFullscreen);var v={dynamic:!0,dynamicEl:u,plugins:g,addClass:"igd-lightbox ".concat(c?"":"no-download"," ").concat(o?"gallery-lightbox":""," "),counter:o,autoplayVideoOnSlide:!0,preload:3,mobileSettings:{showCloseIcon:!0,thumbWidth:60,thumbHeight:60,download:!0,controls:!0}};o?v.allowMediaOverlap=!0:v.appendSubHtmlTo=".lg-outer",d&&(v.commentBox=!0,"disqus"===r.commentMethod?v.disqusComments=!0:v.fbComments=!0),window.dynamicGallery=lightGallery(e.target,v),e.target.addEventListener("lgBeforeOpen",f),e.target.addEventListener("lgAfterClose",p),e.target.addEventListener("lgSlideItemLoad",w),i&&i.downloadNotification&&document.addEventListener("click",(function(e){e.target.classList.contains("lg-download")&&wp.ajax.post("igd_notification",{files:[l],notifications:i,type:"download"})}),!1);var h=n.findIndex((function(e){return e.id===t}));dynamicGallery.openGallery(h)}}function w(){var e=document.querySelector(".lg-current");if(e){var t=e.querySelector(".igd-hidepopout");s||t||e.insertAdjacentHTML("beforeend",'<div class="igd-hidepopout">&nbsp;</div>')}}}var I=function(){var e=window.IgdShortcode;Array.from(document.querySelectorAll(".igd")).forEach((function(t){var n=t.dataset.shortcodeData;if(n)try{var r=JSON.parse(decodeURIComponent(atob(n).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join("")));ReactDOM.render(React.createElement(e,{data:r}),t)}catch(e){console.error("Could not parse the shortcode data",e)}}))};function T(e){return btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,(function(e,t){return String.fromCharCode("0x"+t)})))}function L(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:igd.activeAccount;return t.root_id!==e&&x(e,t)}function B(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"550",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"600",n=window.screenLeft||window.screenX,r=window.screenTop||window.screenY,i=n+(window.innerWidth||document.documentElement.clientWidth||screen.width)/2-e/2,o=r+(window.innerHeight||document.documentElement.clientHeight||screen.height)/2-t/2,a=window.open(igd.authUrl,"newwindow","width=".concat(e,",height=").concat(t,",left=").concat(i,",top=").concat(o));a.focus&&a.focus()}function D(e,t){var n=U(e,t);return"igd_last_folder_".concat(n)}function U(e,t){var n="",r=window.location.pathname.replace(/\//g,"_");if(e||"undefined"==typeof pagenow||(r=pagenow.replace(/\//g,"_")),t)n+=t.id;else if(e){n=e.filter((function(e){return b(e)})).map((function(e){var t;return null===(t=e.id)||void 0===t?void 0:t.slice(0,3)})).join("_")}return"".concat(n,"_").concat(r)}function M(e,t,n){if(e){var r=D(t,n);sessionStorage.setItem(r,JSON.stringify(m(m({},e),{},{pageNumber:0})))}}function z(e,t){var n=D(e,t);sessionStorage.removeItem(n)}function K(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=(e=new Date(e)).getFullYear(),r=("0"+(e.getMonth()+1)).slice(-2),i=("0"+e.getDate()).slice(-2);if(t){var o=e.getHours(),a=o<12?"AM":"PM",l=0===o?12:o>12?o-12:o,c=("0"+e.getMinutes()).slice(-2);return"".concat(n,"-").concat(r,"-").concat(i," ").concat(("0"+l).slice(-2),":").concat(c," ").concat(a)}return"".concat(n,"-").concat(r,"-").concat(i)}function H(){var e;return e=u().mark((function e(){var t,n,r,i;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=localStorage.getItem("igd_last_review_popup"),n=Number(localStorage.getItem("igd_remind_in_days"))||2,r=(new Date).getTime(),i=24*n*60*60*1e3,!(t&&r-t<=i)){e.next=6;break}return e.abrupt("return");case 6:return localStorage.setItem("igd_last_review_popup",(new Date).getTime()),e.next=9,Swal.fire({title:wp.i18n.__("Are You Enjoying This Plugin?","integrate-google-drive"),text:wp.i18n.__("Your feedback helps us create a better experience for you.","integrate-google-drive"),icon:"question",showDenyButton:!0,confirmButtonText:wp.i18n.__("Yes, I'm enjoying it","integrate-google-drive"),denyButtonText:wp.i18n.__("Not really","integrate-google-drive"),reverseButtons:!0,allowOutsideClick:!1,allowEscapeKey:!1,showCloseButton:!0,customClass:{container:"igd-swal igd-review-swal"}}).then((function(e){e.isConfirmed?Swal.fire({title:wp.i18n.__("We're glad to hear that!","integrate-google-drive"),text:wp.i18n.__("Would you mind taking a few minutes to rate us and write a review?","integrate-google-drive"),icon:"success",showDenyButton:!0,confirmButtonText:wp.i18n.__("Sure, I'd be happy to","integrate-google-drive"),denyButtonText:wp.i18n.__("Maybe later","integrate-google-drive"),reverseButtons:!0,allowOutsideClick:!1,allowEscapeKey:!1,customClass:{container:"igd-swal igd-review-swal"}}).then((function(e){e.isConfirmed?(window.open("https://wordpress.org/support/plugin/integrate-google-drive/reviews/?filter=5#new-post","_blank"),wp.ajax.post("igd_hide_review_notice")):e.isDenied&&localStorage.setItem("igd_remind_in_days",10)})):e.isDenied&&Swal.fire({title:wp.i18n.__("Sorry to hear that!","integrate-google-drive"),text:wp.i18n.__("Could you please provide us with some feedback to help us improve?","integrate-google-drive"),input:"textarea",inputPlaceholder:wp.i18n.__("Enter your feedback here...","integrate-google-drive"),showCancelButton:!1,confirmButtonText:wp.i18n.__("Submit","integrate-google-drive"),showLoaderOnConfirm:!0,showCloseButton:!0,allowOutsideClick:!1,allowEscapeKey:!1,customClass:{container:"igd-swal igd-review-swal"}}).then((function(e){e.isConfirmed?(Swal.fire({title:wp.i18n.__("Thank you for your feedback!","integrate-google-drive"),text:wp.i18n.__("We'll use your feedback to improve our plugin.","integrate-google-drive"),icon:"info",customClass:{container:"igd-swal igd-review-swal"}}),wp.ajax.post("igd_review_feedback",{feedback:e.value})):e.isDismissed&&wp.ajax.post("igd_hide_review_notice")}))}));case 9:e.sent;case 10:case"end":return e.stop()}}),e)})),H=function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){f(o,r,i,a,l,"next",e)}function l(e){f(o,r,i,a,l,"throw",e)}a(void 0)}))},H.apply(this,arguments)}function W(e){var t=document.createElement("textarea");return t.innerHTML=e,t.value}function Q(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return q(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return q(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function q(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var V=React,G=V.useState,J=V.useRef,Y=V.useEffect,X=V.useContext;function Z(){var e=X(t),n=e.isSearch,r=e.searchFiles,i=e.setFiles,o=e.listFiles,a=e.activeFolder,l=e.setIsSearchResults,c=e.initFolders,s=e.searchKeyword,d=e.setSearchKeyword,u=e.initialSearchTerm,f=J(null),p=Q(G(!1),2),m=p[0],g=p[1],v=J(),h=Q(G(n||u),2),w=h[0],y=h[1],b=function(e){if(e&&e.preventDefault(),g(!1),l(!1),!s)return Swal.fire({title:wp.i18n.__("Error","integrate-google-drive"),text:wp.i18n.__("Please enter a keyword to search","integrate-google-drive"),icon:"error",confirmButtonText:"Ok",customClass:{container:"igd-swal"}}),void g(!0);r(s)},_=j();return Y((function(){if(_&&s&&!(s.length<5))return f.current=setTimeout((function(){b()}),1500),function(){clearTimeout(f.current)}}),[s]),React.createElement("form",{ref:v,className:"header-action-item igd-search-bar ".concat(w?"active":""," ").concat(m?"error":""),onSubmit:b},(!n||n&&!!s)&&React.createElement("div",{className:"search-dismiss",onClick:function(){n||y(!w),d(""),g(!1),l(!1),a?o(a):i(c&&!n?c:[])}},React.createElement("svg",{width:"14",height:"14",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M1.5 1.5L10.5 10.5M1.5 10.5L10.5 1.5L1.5 10.5Z",stroke:"#BABABA",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),React.createElement("input",{type:"text",placeholder:wp.i18n.__("Enter a keyword to search","integrate-google-drive"),value:s,onChange:function(e){d(e.target.value)}}),React.createElement("div",{className:"search-submit",onClick:function(){var e;w?b():(y(!0),null===(e=v.current)||void 0===e||e.querySelector("input").focus())}},React.createElement("svg",{"data-tip":wp.i18n.__("Search","integrate-google-drive"),"data-for":"search",width:"20",height:"20",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("circle",{cx:"9.7659",cy:"9.76639",r:"8.98856",stroke:"#3D3D3D",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),React.createElement("path",{d:"M16.0176 16.4849L19.5416 19.9997",stroke:"#3D3D3D",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})),React.createElement(ReactTooltip,{id:"search",place:"bottom",effect:"solid",className:"igd-tooltip"})))}var $=React.useContext,ee=igd.settings.rememberLastFolder,te=void 0===ee||ee;function ne(){var e=$(t),n=e.breadcrumbs,r=e.initFolders,i=e.setFiles,o=e.activeFolder,a=e.setActiveFolder,l=e.setActiveFile,c=e.listFiles,s=e.initParentFolder,d=e.show,u=e.isShortcodeBuilder,f=e.activeAccount,p=e.setIsOptions,m=e.setActiveFiles,g=!!n&&Object.keys(n),v=g.length>2?g[0]:"",h=g.length>3?g.slice(1,-2):[],w=g.length?g.slice(-2):[],y=function(e){e.preventDefault(),e.stopPropagation(),p(!1),m([]),l(o),d(e)};return React.createElement("div",{className:"igd-breadcrumb"},React.createElement("div",{className:"breadcrumb-item",onClick:function(e){r?s?(a(s),c(s)):(a(null),i(r),te&&z(r,s)):(a(null),i([]),te&&z(r,s))}},React.createElement("i",{className:"dashicons dashicons-admin-home"}),React.createElement("span",{className:""},wp.i18n.__("Home","integrate-google-drive"))),!!o&&React.createElement(React.Fragment,null,!!v&&React.createElement("div",{className:"breadcrumb-item ".concat(u||o.id!==v?"":"active"),onClick:function(e){o.id===v?y(e):c({id:v,name:n[v],accountId:o.accountId})}},React.createElement("span",null,W(n[v]))),!!h.length&&React.createElement(React.Fragment,null,React.createElement("div",{"data-tip":!0,"data-for":"collapsed_breadcrumbs",className:"breadcrumb-item"},React.createElement("i",{className:"dashicons dashicons-ellipsis"}),React.createElement("i",{className:"dashicons dashicons-arrow-right-alt2"})),React.createElement(ReactTooltip,{id:"collapsed_breadcrumbs",place:"bottom",type:"light",effect:"solid",event:"click",globalEventOff:"click",clickable:!0,className:"collapsed-breadcrumbs igd-tooltip",getContent:function(){return h.map((function(e){return React.createElement("div",{key:e,className:"collapsed-breadcrumbs-item",onClick:function(t){c({id:e,name:n[e],accountId:o.accountId})}},React.createElement("span",null,n[e]))}))}})),w.map((function(e){return React.createElement("div",{key:e,className:"breadcrumb-item ".concat(L(o.id,f)||u||o.id!==e?"":"active"),onClick:function(t){L(o.id,f)||(o.id===e?y(t):c({id:e,name:n[e],accountId:o.accountId}))}},React.createElement("span",null,W(n[e])))}))))}function re(e){return re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},re(e)}function ie(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function oe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ie(Object(n),!0).forEach((function(t){ae(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ie(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ae(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==re(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==re(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===re(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var le=React.useContext,ce=window.ReactTooltip;function se(){var e=le(t),n=e.shortcodeId,r=e.activeAccount,i=e.setActiveAccount,o=e.files,a=e.activeFiles,l=e.allFolders,c=e.getFiles,s=e.isShortcodeBuilder,d=e.initFolders,u=e.activeFolder,f=e.isSearch,p=e.setShowSidebar,m=e.sort,g=e.setSort,v=e.setActiveFile,h=e.permissions,w=e.notifications,y=e.showBreadcrumbs,b=e.isOptions,_=e.setIsOptions,E=e.showRefresh,R=e.showSorting,S=e.shortcodeBuilderType,A=e.isMobile,O=e.show,C=e.hideAll,x=e.setFiles,k=e.setAllFiles,j="gallery"===S,P=igd.isPro,I={name:wp.i18n.__("Name","integrate-google-drive"),size:wp.i18n.__("Size","integrate-google-drive"),created:wp.i18n.__("Created","integrate-google-drive"),updated:wp.i18n.__("Modified","integrate-google-drive")},T={asc:wp.i18n.__("Ascending","integrate-google-drive"),desc:wp.i18n.__("Descending","integrate-google-drive")};return React.createElement("div",{className:"igd-file-browser-header"},(!f||s)&&y&&React.createElement(ne,null),React.createElement("div",{className:"header-action"},A&&!s&&igd.isAdmin&&React.createElement("i",{className:"dashicons dashicons-menu-alt3 header-action-item sidebar-toggle",onClick:function(){return p((function(e){return!e}))}}),!!j&&!!h&&!!h.photoProof&&React.createElement("button",{className:"igd-btn btn-primary ".concat(a.length?"":"disabled"," photo-proofing-btn"),onClick:function(){h.photoProofMaxSelection>0&&a.length>h.photoProofMaxSelection?Swal.fire({title:wp.i18n.__("Error","integrate-google-drive"),text:wp.i18n.sprintf(wp.i18n.__("You can not select more than %s files.","integrate-google-drive"),h.photoProofMaxSelection),icon:"error",showConfirmButton:!0,confirmButtonText:wp.i18n.__("OK","integrate-google-drive"),customClass:{container:"igd-swal"}}):Swal.fire({title:wp.i18n.sprintf(wp.i18n.__("Approve Selection (%s selected)","integrate-google-drive"),a.length),text:wp.i18n.__("Are you sure you want to approve the selected files?","integrate-google-drive"),input:"textarea",inputValue:"",inputAttributes:{autocapitalize:"off",placeholder:wp.i18n.__("Enter a message to send to the author","integrate-google-drive")},showCancelButton:!1,confirmButtonText:wp.i18n.__("Approve","integrate-google-drive"),showLoaderOnConfirm:!0,showCloseButton:!0,customClass:{container:"igd-swal"},preConfirm:function(e){return wp.ajax.post("igd_photo_proof",{shortcode_id:n,message:e,selected:a,email:h.photoProofEmail}).done((function(){Swal.fire({title:"Sent!",text:"Your selected images have been sent to the author.",icon:"success",showConfirmButton:!1,timer:3e3,timerProgressBar:!0,toast:!0})})).fail((function(e){Swal.fire({title:"Error!",text:e.message,icon:"error",showConfirmButton:!0,confirmButtonText:"OK",customClass:{container:"igd-swal"}})}))}})},disabled:!a.length},React.createElement("i",{className:"dashicons dashicons-camera"}),React.createElement("span",null,wp.i18n.__("Send Selection","integrate-google-drive")),a.length>0&&React.createElement("span",{className:"selection-count"},"(",a.length,")")),!!a.length&&(!h||h.delete)&&React.createElement("div",{"data-tip":wp.i18n.__("Delete","integrate-google-drive"),"data-for":"delete",className:"header-action-item action-delete",onClick:function(){var e=a.map((function(e){return e.id})),t=a[0].accountId;Swal.fire({title:wp.i18n.__("Are you sure?","integrate-google-drive"),text:wp.i18n.sprintf(wp.i18n._n("You are about to delete the file.","You are about to delete %s files.",a.length,"integrate-google-drive"),a.length),icon:"warning",showCancelButton:!0,customClass:{container:"igd-swal"},confirmButtonText:wp.i18n.__("Yes, delete it!","integrate-google-drive"),cancelButtonText:wp.i18n.__("No, cancel!","integrate-google-drive"),reverseButtons:!0,showLoaderOnConfirm:!0,preConfirm:function(){return wp.ajax.post("igd_delete_files",{file_ids:e,account_id:t})}}).then((function(t){if(t.isConfirmed){w&&w.deleteNotification&&wp.ajax.post("igd_notification",{files:a,notifications:w,type:"delete"});var n=o.filter((function(t){return!e.includes(t.id)}));x(n),k((function(e){return oe(oe({},e),{},ae({},u.id,n))})),Swal.fire({title:wp.i18n.__("Deleted!","integrate-google-drive"),text:wp.i18n.sprintf(wp.i18n._n("File has been deleted.","%d files have been deleted.",a.length,"integrate-google-drive"),a.length),icon:"success",showConfirmButton:!1,timer:1500,timerProgressBar:!0,toast:!0,customClass:{container:"igd-swal"}})}}))}},React.createElement("img",{src:"".concat(igd.pluginUrl,"/assets/images/file-browser/delete.svg"),alt:"Delete Files"}),React.createElement(ce,{id:"delete",effect:"solid",place:"bottom",className:"igd-tooltip"})),(d||u)&&(!h||h.allowSearch||f)&&React.createElement(Z,null),E&&(!f||s)&&u&&React.createElement("div",{"data-tip":wp.i18n.__("Refresh","integrate-google-drive"),"data-for":"sync",className:"header-action-item action-update",onClick:function(){u&&c(u,"refresh")}},React.createElement("img",{src:"".concat(igd.pluginUrl,"/assets/images/file-browser/update.svg"),alt:"Sync Files"}),React.createElement(ce,{id:"sync",effect:"solid",place:"bottom",className:"igd-tooltip"})),R&&(!f||s)&&u&&React.createElement(React.Fragment,null,React.createElement("div",{"data-tip":wp.i18n.__("Sort","integrate-google-drive"),"data-for":"sort",className:"header-action-item action-sort"},React.createElement("img",{src:"".concat(igd.pluginUrl,"/assets/images/file-browser/sort.svg"),alt:"Sort"}),React.createElement(ce,{id:"sort",effect:"solid",place:"bottom",className:"igd-tooltip"})),React.createElement(ce,{id:"sort",type:"light",event:"click",globalEventOff:"click",className:"igd-sort-modal igd-tooltip",place:"bottom",border:!0,backgroundColor:"#fff",clickable:!0,borderColor:"#ddd",effect:"solid"},React.createElement("div",{className:"igd-sort-modal-inner"},React.createElement("div",{className:"igd-sort-modal-inner-section"},React.createElement("span",{className:"igd-sort-modal-inner-section-title"},wp.i18n.__("SORT BY","integrate-google-drive")),Object.keys(I).map((function(e){return React.createElement("div",{key:e,className:"sort-item ".concat(m.sortBy===e?"active":""),onClick:function(){return g(oe(oe({},m),{},{sortBy:e}))}},React.createElement("i",{className:"dashicons dashicons-saved"}),React.createElement("span",null,I[e]))}))),React.createElement("div",{className:"igd-sort-modal-inner-section"},React.createElement("span",{className:"igd-sort-modal-inner-section-title"},wp.i18n.__("SORT DIRECTION","integrate-google-drive")),Object.keys(T).map((function(e){return React.createElement("div",{key:e,className:"sort-item ".concat(m.sortDirection===e?"active":""),onClick:function(){return g((function(t){return oe(oe({},t),{},{sortDirection:e})}))}},React.createElement("i",{className:"dashicons dashicons-saved"}),React.createElement("span",null,T[e]))})))))),null!==b&&(s||(!j||j&&!!h&&!!h.download&&!!h.zipDownload)&&(!f||f&&!!o.length))&&React.createElement("div",{"data-tip":wp.i18n.__("Options","integrate-google-drive"),"data-for":"options",onClick:function(e){e.preventDefault(),v(null),_(!b),b?C():O(e)},className:"header-action-item action-options"},React.createElement("img",{src:"".concat(igd.pluginUrl,"/assets/images/file-browser/options.svg"),alt:"Options"}),React.createElement(ce,{id:"options",effect:"solid",place:"bottom",className:"igd-tooltip"})),(!d||l)&&React.createElement(React.Fragment,null,React.createElement("div",{className:"header-action-item action-accounts user-box","data-tip":!0,"data-for":"switch-account"},React.createElement("img",{referrerPolicy:"no-referrer",className:"user-image",src:r.photo,onError:function(e){return F(e.currentTarget,r.email)}}),React.createElement("img",{src:"".concat(igd.pluginUrl,"/assets/images/file-browser/arrow-down.svg"),className:"user-arrow"})),React.createElement(ce,{id:"switch-account",place:"bottom",type:"light",effect:"solid",event:"click",globalEventOff:"click",clickable:!0,border:!0,borderColor:"#ddd",resizeHide:!1,className:"user-box-modal-wrap igd-tooltip",overridePosition:function(e,t,n,r){var i=e.left,o=e.top,a=document.documentElement;return{left:i=Math.min(a.clientWidth-r.clientWidth,i),top:o=Math.min(a.clientHeight-r.clientHeight,o)}}},React.createElement("div",{className:"user-box-modal"},React.createElement("span",{className:"user-box-modal-title"},wp.i18n.__("Switch Account","integrate-google-drive")),Object.keys(igd.accounts).map((function(e){var t=igd.accounts[e],n=t.id,o=t.name,a=t.photo,l=t.email,c=r.id===n;return React.createElement("div",{key:e,className:"user-box-account ".concat(c?"active":""),onClick:function(){return i(igd.accounts[e])}},React.createElement("img",{referrerPolicy:"no-referrer",onError:function(e){return F(e.currentTarget,l)},src:a}),React.createElement("div",{className:"account-info"},React.createElement("span",{className:"account-name"},o),React.createElement("span",{className:"account-email"},l)),c&&React.createElement("i",{className:"dashicons dashicons-saved active-badge"}))})),!s&&!d&&React.createElement(React.Fragment,null,React.createElement("button",{"data-tip":"Multiple Accounts - PRO","data-for":"addAccountPromo",className:"igd-btn btn-primary",onClick:function(){P||!igd.accounts?igd.authUrl?B():window.location=igd.adminUrl+"/admin.php?page=integrate-google-drive-settings":N(wp.i18n.__("Upgrade to PRO to add multiple accounts.","integrate-google-drive"))}},React.createElement("i",{className:"dashicons dashicons-plus"}),React.createElement("span",null,wp.i18n.__("Add account","integrate-google-drive"))),!P&&!!igd.accounts&&React.createElement(ce,{id:"addAccountPromo",effect:"solid",place:"right",className:"igd-tooltip",backgroundColor:"#FDB837"})))))))}function de(e){return function(e){if(Array.isArray(e))return ue(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return ue(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ue(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ue(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function fe(e){var t=e.file,n=e.isSelected,r=e.selectedFolders,i=void 0===r?[]:r,o=e.setSelectedFolders;return React.createElement("button",{className:"select-btn ".concat(n?"active":""),onClick:function(e){e.preventDefault(),e.stopPropagation(),o(n?de(i.filter((function(e){return e.id!=t.id}))):[].concat(de(i),[t]))}},React.createElement("i",{className:"dashicons ".concat(n?"dashicons-no":"dashicons-plus")}),React.createElement("span",null,n?wp.i18n.__("Remove","integrate-google-drive"):wp.i18n.__("Select","integrate-google-drive")))}var pe=React.useContext;function me(){var e=pe(t),n=e.activeAccount,r=e.initFolders,i=e.activeFolder,o=e.setActiveFolder,a=e.selectedFolders,l=e.shortcodeBuilderType,c=e.listFiles,s=e.setSelectedFolders,d=e.isList,u=e.selectionType,f="uploader"===l,p="embed"===l,m="view"===l,g="download"===l,v="slider"===l,h=n.root_id,w=E(!1,n);r&&(w=w.filter((function(e){return r.includes(e.id)})));var y=l&&!m&&!g&&!p&&!v;return f?y=!a.length||a[0].id===h:"parent"===u&&(y=!0),w.map((function(e){var t=e.id,n=e.name,r=e.iconLink,l=a&&!!a.find((function(e){return e.id===t}));return React.createElement("div",{key:t,className:"".concat(t===(null==i?void 0:i.id)?"active":""," file-item root-item folder-item"),onClick:function(t){t.stopPropagation(),o(e),c(e)}},React.createElement("img",{src:r,alt:n}),React.createElement("span",null,n),y&&h===t&&React.createElement(fe,{file:e,isSelected:l,selectedFolders:a,setSelectedFolders:s,isList:d}))}))}var ge=window.React,ve=ge.useRef,he=ge.useContext;function we(){var e=he(t),n=e.activeAccount,r=e.activeFolder,i=e.isUpload,o=e.setIsUpload,a=e.isMobile,l=e.setShowSidebar,c=n.storage,s=void 0===c?{}:c,d=Math.round(100*s.usage/s.limit),u=!(!r||x(r.id,n)&&n.root_id!==r.id),f=ve(null);return React.createElement("div",{ref:f,className:"igd-sidebar-wrap"},React.createElement("div",{className:"igd-sidebar"},React.createElement("div",{className:"sidebar-uploader"},React.createElement("button",{id:"igd_upload_files",disabled:!u,className:"".concat(i?"active":u?"":"disabled"," igd-btn"),onClick:function(){o((function(e){return!e})),a&&l(!1)}},React.createElement("i",{className:"dashicons dashicons-cloud-upload"}),React.createElement("span",null,wp.i18n.__("Upload Files","integrate-google-drive")))),React.createElement("div",{className:"sidebar-folders"},React.createElement(me,null)),React.createElement("div",{className:"storage-info-wrap"},React.createElement("i",{className:"dashicons dashicons-database"}),React.createElement("div",{className:"storage-info"},React.createElement("div",{className:"storage-info-sidebar"},React.createElement("div",{style:{width:"".concat(d,"%")},className:"storage-info-fill ".concat(d>90?"fill-danger":"")})),React.createElement("span",null,y(s.usage)," of ",y(s.limit)," used")))))}function ye(e){return ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ye(e)}function be(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?be(Object(n),!0).forEach((function(t){Ee(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):be(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ee(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==ye(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==ye(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ye(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Re(e){return function(e){if(Array.isArray(e))return Oe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ae(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Se(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return l}}(e,t)||Ae(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ae(e,t){if(e){if("string"==typeof e)return Oe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Oe(e,t):void 0}}function Oe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ce=React,xe=Ce.useState,Fe=Ce.useEffect,ke=Ce.useRef,Ne=Ce.useContext;function je(){var e=Ne(t),n=e.account,r=void 0===n?igd.activeAccount:n,i=e.notifications,o=e.folders,a=e.filters,l=e.maxFiles,c=e.maxFileSize,s=e.minFileSize,d=e.activeFolder,u=e.isUpload,f=e.setIsUpload,p=e.isFormUploader,m=e.isRequired,g=e.showUploadLabel,v=e.uploadLabelText,h=e.uploadFileName,w=e.isWooCommerceUploader,y=e.wcItemId,E=e.wcOrderId,S=e.wcProductId,A=e.initUploadedFiles,O=void 0===A?[]:A,C=e.setFiles,x=e.setAllFiles,F=e.enableFolderUpload,k=void 0===F?!!d:F,N=e.uploadImmediately,j=void 0===N?!!d||w:N,P=e.overwrite,I=e.showUploadConfirmation,T=e.uploadConfirmationMessage,L=a||{},B=L.allowExtensions,D=L.allowAllExtensions,U=L.allowExceptExtensions,M=Se(xe(O),2),z=M[0],K=M[1],H=Se(xe(O),2),W=H[0],Q=H[1],q=Se(xe([]),2),V=q[0],G=q[1],J=Se(xe([]),2),Y=J[0],X=J[1],Z=Se(xe(0),2),$=Z[0],ee=Z[1],te=Se(xe(!1),2),ne=te[0],re=te[1],ie=Se(xe([]),2),oe=ie[0],ae=ie[1],le=ke(null),ce=ke(null),se=ke(null),de=ke(null),ue=ke(null),fe=d;if(!fe){var pe=o?o.filter((function(e){return b(e)})):[];fe=pe&&pe.length?pe[0]:{id:"root",accountId:r.id}}var me=function(e){if(e){var t=le.current.files,n=t.findIndex((function(t){return t.id===e.id}))+1;n<t.length&&we(t[n])}},ge=function(e,t,n){if(!e)return n(!0);var r=t.name.split(".").pop();(D?!e.split(",").map((function(e){return e.trim()})).includes(r):e.split(",").map((function(e){return e.trim()})).includes(r))?n(!0):(this.trigger("Error",{code:"EXT_ERROR",file:t}),n(!1))},ve=function(e,t,n){if(!(e=1024*e*1024))return n(!0);t.size<e?(this.trigger("Error",{code:"SIZE_MIN_ERROR",file:t}),n(!1)):n(!0)},he=function(e,t,n){if(!e)return n(!0);var r=this.files.length;O.length&&(r=de.current.querySelectorAll(".file-list-item.uploaded").length),r>=e?(this.trigger("Error",{code:"FILES_MAX_ERROR",file:t}),n(!1)):n(!0)},we=function(e){le.current.stop(),ee(0),G((function(t){return t.find((function(t){return t.id===e.id}))?t:[].concat(Re(t),[e])}));var t=R(e);wp.ajax.post("igd_get_upload_url",{data:{name:e.name,queueIndex:e.status,uploadFileName:h,size:e.size,type:e.type,folderId:fe.id,accountId:fe.accountId,path:t&&t.substring(0,t.lastIndexOf("/")+1),fileId:e.id,overwrite:P,isWooCommerceUploader:w,wcProductId:S,wcOrderId:E,wcItemId:y}}).done((function(e){le.current.setOption("url",e),le.current.start()})).fail((function(t){console.log(t),me(e),X(Y.filter((function(t){return t.id!==e.id}))),G(Y.filter((function(t){return t.id!==e.id}))),ee(0),K((function(n){return n.map((function(n){return n.id===e.id&&(n.error=t.error),n}))}))}))},ye=function(){var e={browse_button:ce.current,drop_element:de.current,multipart:!1,multi_selection:!l||l>1,filters:{max_files:l,file_ext:D?U:B,max_file_size:c?"".concat(parseInt(c),"mb"):0,min_file_size:s},init:{FilesAdded:function(e,t){re(!1),K((function(e){return[].concat(Re(e),Re(t))})),X((function(e){return[].concat(Re(e),Re(t))})),G((function(e){var n=Re(e);return j&&!e.length&&(we(t[0]),n=[].concat(Re(e),[t[0]])),n}))},FilesRemoved:function(e,t){X((function(e){return e.filter((function(e){return!t.find((function(t){return t.id===e.id}))}))})),K((function(e){return e.filter((function(e){return!t.find((function(t){return t.id===e.id}))}))}))},FileUploaded:function(e,t,n){!function(e,t){me(e);var n=JSON.parse(t.response);if(n){var r={file:n=_e(_e({},n),{},{type:n.mimeType,accountId:fe.accountId,pluploadId:e.id,path:k&&R(e)})};w&&(r.wcOrderId=E,r.wcItemId=y,r.wcProductId=S),Q((function(e){return[].concat(Re(e),[n])})),X((function(t){return t.filter((function(t){return t.id!==e.id}))})),wp.ajax.post("igd_file_uploaded",r).done((function(e){C&&(C((function(t){return[e].concat(Re(t))})),x((function(t){return _e(_e({},t),{},Ee({},fe.id,[e].concat(Re(t[fe.id]))))})))}))}}(t,n)},UploadProgress:function(e,t){ee(t.percent)},UploadComplete:function(){G([]),X([]),setTimeout((function(){re(!0)}),!p&&I?1e3:0)},Error:function(e,t){return function(e,t){var n;switch(e){case-600:n=wp.i18n.__("File size exceeds the maximum upload size.","integrate-google-drive")+"(".concat(c?"".concat(parseInt(c),"mb"):0,")");break;case"SIZE_MIN_ERROR":n=wp.i18n.__("File size is less than the minimum upload size.","integrate-google-drive")+"(".concat(s,"mb)");break;case"EXT_ERROR":n=wp.i18n.__("This file type is not allowed","integrate-google-drive");break;case"FILES_MAX_ERROR":n=wp.i18n.__("You can not upload more than","integrate-google-drive")+" ".concat(l," ").concat(wp.i18n.__("files","integrate-google-drive"));break;default:n=t.error}t.error=n,K((function(e){var n=e.findIndex((function(e){return e.id===t.id}));if(n>-1){var r=Re(e);return r[n]=t,r}return[].concat(Re(e),[t])}))}(t.code,t.file)}}};return!D&&B&&(e.filters.mime_types=[{title:"Allowed files",extensions:B}]),e},be=function(){if(plupload.buildUrl=function(e){return e},plupload.addFileFilter("file_ext",ge),plupload.addFileFilter("min_file_size",ve),plupload.addFileFilter("max_files",he),le.current=new plupload.Uploader(ye()),le.current.init(),k){var e=new mOxie.FileInput({browse_button:se.current,directory:!0});e.init(),e.onchange=function(){le.current.addFile(e.files)}}};Fe((function(){return be(),function(){le.current&&le.current.destroy()}}),[]);var Ae=function(){if(jQuery){var e=jQuery,t=e(de.current).closest("form");if(t.length){var n=e(de.current).parent().next(".upload-file-list"),r=function(e){return e.map((function(e){return{id:e.id,accountId:e.accountId,name:e.name,iconLink:e.iconLink,thumbnailLink:e.thumbnailLink,size:e.size,parents:e.parents,path:k&&e.path}}))}(W);if(["metform","elementor","ninjaforms","cf7"].includes(p)){var i=r.map((function(e){var t="https://drive.google.com/file/d/".concat(e.id,"/view");return"".concat(e.name," — ( ").concat(t," )")})).join(", \n\n");n.val(i).change()}else n.val(JSON.stringify(r)).change();if(t.trigger("change"),!j){var o=t.find(":submit");o.length?(o.is("input")?o.val(ue.current):o.text(ue.current),o.trigger("click")):t.submit()}}}};Fe((function(){ne&&W.length&&(i&&i.uploadNotification&&wp.ajax.post("igd_notification",{files:W,notifications:i,type:"upload"}),p&&Ae())}),[ne]),Fe((function(){if(Y.length&&!V.length&&p&&!j&&de.current){var e=jQuery(de.current).closest("form");if(e.length){var t=jQuery(e).find(":submit");if(t.length){var n=t.parent();t.addClass("igd-disabled");var r=function(e){e.preventDefault();var n=t.is("input");ue.current=t.is("input")?t.val():t.text(),n?t.val(wp.i18n.__("Uploading Files...","integrate-google-drive")):t.text(wp.i18n.__("Uploading Files...","integrate-google-drive")),we(Y[0])};return n.on("click",r),function(){t&&(n.off("click",r),t.removeClass("igd-disabled"))}}}}}),[Y]),Fe((function(){if(p){var e=jQuery(de.current).closest("form"),t=function(e){K([]),X([]),G([]),Q([])};return e.on("reset",t),function(){return e.off("reset",t)}}}),[]);var Oe=!p&&!w&&!j&&I&&W.length&&ne,Ce=Y.length||z.filter((function(e){return!e.error})).length,je=Y.length?j||V.length?wp.i18n.__("Item(s) Uploading...","integrate-google-drive"):wp.i18n.__("Item(s) Selected","integrate-google-drive"):wp.i18n.__("Item(s) Uploaded","integrate-google-drive");return React.createElement("div",{onDragEnter:function(){return de.current.classList.add("drag-active")},onDragLeave:function(){return de.current.classList.remove("drag-active")},onDrop:function(){return de.current.classList.remove("drag-active")},ref:de,className:"igd-file-uploader igd-module-uploader ".concat(p?" igd-form-uploader":""," ").concat(!m||Y.length||z.length?"":"required-error","  ").concat(Oe?"show-confirmation":""," ")},React.createElement("div",{className:"igd-file-uploader-body"},!!Oe&&React.createElement("div",{className:"upload-confirmation"},React.createElement("div",{className:"upload-confirmation-message",dangerouslySetInnerHTML:{__html:T}}),(!l||l>W.length)&&React.createElement("button",{type:"button",className:"igd-btn btn-primary",onClick:function(){return re(!1)}},wp.i18n.__("Upload More Files","integrate-google-drive"))),React.createElement("div",{className:"igd-file-uploader-inner"},g&&React.createElement("h4",{className:"igd-file-uploader-label"},v),React.createElement("i",{className:"dashicons dashicons-cloud-upload"}),React.createElement("p",null,wp.i18n.__("Drag and drop files here","integrate-google-drive")),React.createElement("p",{className:"or"},wp.i18n.__("OR","integrate-google-drive")),React.createElement("div",{className:"igd-file-uploader-buttons"},React.createElement("button",{type:"button",ref:ce},React.createElement("svg",{width:"24",height:"24",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M842.24 355.413333l-232.106667-256a42.666667 42.666667 0 0 0-31.573333-14.08h-298.666667A107.946667 107.946667 0 0 0 170.666667 192v640A107.946667 107.946667 0 0 0 279.893333 938.666667h464.213334A107.946667 107.946667 0 0 0 853.333333 832V384a42.666667 42.666667 0 0 0-11.093333-28.586667zM597.333333 213.333333l116.906667 128h-85.333333a33.706667 33.706667 0 0 1-31.573334-36.266666z m146.773334 640H279.893333a22.613333 22.613333 0 0 1-23.893333-21.333333v-640a22.613333 22.613333 0 0 1 23.893333-21.333333H512v134.4A119.04 119.04 0 0 0 627.626667 426.666667H768v405.333333a22.613333 22.613333 0 0 1-23.893333 21.333333z",fill:"currentColor"}),React.createElement("path",{d:"M597.333333 554.666667h-42.666666v-42.666667a42.666667 42.666667 0 0 0-85.333334 0v42.666667h-42.666666a42.666667 42.666667 0 0 0 0 85.333333h42.666666v42.666667a42.666667 42.666667 0 0 0 85.333334 0v-42.666667h42.666666a42.666667 42.666667 0 0 0 0-85.333333z",fill:"currentColor"})),React.createElement("span",null,wp.i18n.__("Browse Files","integrate-google-drive"))),k&&React.createElement("button",{type:"button",ref:se},React.createElement("svg",{width:"24",height:"24",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M597.333333 554.666667h-42.666666v-42.666667a42.666667 42.666667 0 0 0-85.333334 0v42.666667h-42.666666a42.666667 42.666667 0 0 0 0 85.333333h42.666666v42.666667a42.666667 42.666667 0 0 0 85.333334 0v-42.666667h42.666666a42.666667 42.666667 0 0 0 0-85.333333z",fill:"currentColor"}),React.createElement("path",{d:"M832 300.8h-298.666667L421.12 165.12a42.666667 42.666667 0 0 0-32.853333-15.786667H192A105.386667 105.386667 0 0 0 85.333333 253.013333v517.973334a105.386667 105.386667 0 0 0 106.666667 103.68h640a105.386667 105.386667 0 0 0 106.666667-103.68V404.48a105.386667 105.386667 0 0 0-106.666667-103.68z m21.333333 469.333333a19.626667 19.626667 0 0 1-21.333333 18.346667h-640a19.626667 19.626667 0 0 1-21.333333-18.346667V253.013333a19.626667 19.626667 0 0 1 21.333333-18.346666h176.213333l110.933334 135.68a42.666667 42.666667 0 0 0 32.853333 15.786666h320a19.626667 19.626667 0 0 1 21.333333 18.346667z",fill:"currentColor"})),React.createElement("span",null,wp.i18n.__("Browse Folder","integrate-google-drive")))),u&&React.createElement("i",{className:"cancel-upload dashicons dashicons-no",onClick:function(){return f(!1)}}),React.createElement("div",{className:"upload-info"},!!s&&React.createElement("span",{className:"max-size-label"},wp.i18n.__("Min File Size:","integrate-google-drive")," ",s,"MB"),!!c&&React.createElement("span",{className:"max-size-label"},wp.i18n.__("Max File Size:","integrate-google-drive")," ",c,"MB")))),!!z.length&&!Oe&&React.createElement("div",{className:"file-list-wrapper"},React.createElement("div",{className:"file-list-header"},React.createElement("span",{className:"file-count"},Ce),React.createElement("span",{className:"file-status-text"},je)),React.createElement("div",{className:"file-list"},Re(new Set(z)).map((function(e){var t=e.id,n=e.name,r=e.size,i=e.type,o=e.error,a=V.find((function(e){return e.id===t})),l=W.find((function(e){return e.id===t||e.pluploadId===t})),c=oe.find((function(e){return e.id===t})),s=R(e);return React.createElement("div",{key:t,className:"file-list-item ".concat(a?"active":""," ").concat(l?"uploaded":""),id:t},React.createElement("img",{width:32,height:32,src:_(i)}),React.createElement("div",{className:"file-info"},React.createElement("div",{className:"upload-item"},React.createElement("span",{className:"upload-item-name"},s||n),React.createElement("span",{className:"upload-item-size"},"(",plupload.formatSize(r),")")),React.createElement("div",{className:"file-info-percentage"},!!l&&React.createElement("i",{className:"dashicons dashicons-saved"}),!l&&a&&!o&&!c&&React.createElement("div",{className:"igd-spinner"}),!l&&!!a&&!!$&&React.createElement("span",{className:"percentage"},$,"%"),!l&&a&&!c&&!o&&React.createElement("i",{className:"dashicons dashicons-controls-pause",onClick:function(){le.current.stop(),ae([].concat(Re(oe),[e]))}}),!l&&c&&!o&&React.createElement("i",{className:"dashicons dashicons-controls-play",onClick:function(){le.current.start(),ae(oe.filter((function(e){return e.id!==t})))}}),React.createElement(React.Fragment,null,React.createElement("i",{"data-tip":wp.i18n.__("Remove","integrate-google-drive"),"data-for":"remove-file",className:"remove-file dashicons dashicons-no-alt",onClick:function(){if(K((function(e){return e.filter((function(e){return e.id!==t}))})),X((function(e){return e.filter((function(e){return e.id!==t}))})),le.current.removeFile(e),l){Q((function(e){return e.filter((function(e){return e.id!==l.id}))}));var n={id:l.id,account_id:l.accountId,nonce:igd.nonce};w&&(n.isWooCommerceUploader=!0,n.wcProductId=S,n.wcOrderId=E,n.wcItemId=y),wp.ajax.post("igd_upload_remove_file",n)}else a&&(le.current.stop(),ee(0),me(e)),le.current.removeFile(e),le.current.setOption("url",""),G((function(e){return e.filter((function(e){return e.id!==t}))}))}}),React.createElement(ReactTooltip,{id:"remove-file",effect:"solid",place:"top",className:"igd-tooltip"}))),o?React.createElement("span",{className:"file-info-error"},o):React.createElement("span",{className:"file-info-progress",style:{"--percentage":a?"".concat($||2,"%"):0}},React.createElement("span",{className:"file-info-progress-bar"}))))}))),!!Y.length&&!p&&!w&&!j&&React.createElement("button",{type:"button",className:"igd-btn btn-primary start-upload",onClick:function(){return we(Y[0])}},React.createElement("i",{className:"dashicons dashicons-cloud-upload"}),V.length?wp.i18n.__("Uploading Files...","integrate-google-drive"):wp.i18n.__("Start Upload","integrate-google-drive"))))}const Pe=React;var Ie=n.n(Pe),Te=n(884),Le=n.n(Te),Be=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];e.call(t,i[1],i[0])}},t}()}(),De="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,Ue=void 0!==n.g&&n.g.Math===Math?n.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),Me="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(Ue):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var ze=["top","right","bottom","left","width","height","size","weight"],Ke="undefined"!=typeof MutationObserver,He=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,i=0;function o(){n&&(n=!1,e()),r&&l()}function a(){Me(o)}function l(){var e=Date.now();if(n){if(e-i<2)return;r=!0}else n=!0,r=!1,setTimeout(a,t);i=e}return l}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){De&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Ke?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){De&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;ze.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),We=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},Qe=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||Ue},qe=Ze(0,0,0,0);function Ve(e){return parseFloat(e)||0}function Ge(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+Ve(e["border-"+n+"-width"])}),0)}function Je(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return qe;var r=Qe(e).getComputedStyle(e),i=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var i=r[n],o=e["padding-"+i];t[i]=Ve(o)}return t}(r),o=i.left+i.right,a=i.top+i.bottom,l=Ve(r.width),c=Ve(r.height);if("border-box"===r.boxSizing&&(Math.round(l+o)!==t&&(l-=Ge(r,"left","right")+o),Math.round(c+a)!==n&&(c-=Ge(r,"top","bottom")+a)),!function(e){return e===Qe(e).document.documentElement}(e)){var s=Math.round(l+o)-t,d=Math.round(c+a)-n;1!==Math.abs(s)&&(l-=s),1!==Math.abs(d)&&(c-=d)}return Ze(i.left,i.top,l,c)}var Ye="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof Qe(e).SVGGraphicsElement}:function(e){return e instanceof Qe(e).SVGElement&&"function"==typeof e.getBBox};function Xe(e){return De?Ye(e)?function(e){var t=e.getBBox();return Ze(0,0,t.width,t.height)}(e):Je(e):qe}function Ze(e,t,n,r){return{x:e,y:t,width:n,height:r}}var $e=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Ze(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=Xe(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),et=function(e,t){var n,r,i,o,a,l,c,s=(r=(n=t).x,i=n.y,o=n.width,a=n.height,l="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,c=Object.create(l.prototype),We(c,{x:r,y:i,width:o,height:a,top:i,right:r+o,bottom:a+i,left:r}),c);We(this,{target:e,contentRect:s})},tt=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new Be,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof Qe(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new $e(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof Qe(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new et(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),nt="undefined"!=typeof WeakMap?new WeakMap:new Be,rt=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=He.getInstance(),r=new tt(t,n,this);nt.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){rt.prototype[e]=function(){var t;return(t=nt.get(this))[e].apply(t,arguments)}}));const it=void 0!==Ue.ResizeObserver?Ue.ResizeObserver:rt;function ot(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function at(){return at=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},at.apply(this,arguments)}function lt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){ot(e,t,n[t])}))}return e}function ct(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function st(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==l.return||l.return()}finally{if(i)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var dt={cursor:"pointer"},ut=function(e){var t=e.index,n=e.onClick,r=e.photo,i=e.margin,o=e.direction,a=e.top,l=e.left,c=e.key,s={margin:i,display:"block"};"column"===o&&(s.position="absolute",s.left=l,s.top=a);return Ie().createElement("img",at({key:c,style:n?lt({},s,dt):s},r,{onClick:n?function(e){n(e,{photo:r,index:t})}:null}))},ft=Le().shape({key:Le().string,src:Le().string.isRequired,width:Le().number.isRequired,height:Le().number.isRequired,alt:Le().string,title:Le().string,srcSet:Le().oneOfType([Le().string,Le().array]),sizes:Le().oneOfType([Le().string,Le().array])});ut.propTypes={index:Le().number.isRequired,onClick:Le().func,photo:ft.isRequired,margin:Le().number,top:function(e){if("column"===e.direction&&"number"!=typeof e.top)return new Error("top is a required number when direction is set to `column`")},left:function(e){if("column"===e.direction&&"number"!=typeof e.left)return new Error("left is a required number when direction is set to `column`")},direction:Le().string};var pt=function(e,t){return t||(t=0),Number(Math.round(e+"e"+t)+"e-"+t)},mt=function(e){var t=e.width,n=e.height;return pt(t/n,2)};function gt(e){this.content=[],this.scoreFunction=e}gt.prototype={push:function(e){this.content.push(e),this.bubbleUp(this.content.length-1)},pop:function(){var e=this.content[0],t=this.content.pop();return this.content.length>0&&(this.content[0]=t,this.sinkDown(0)),e},remove:function(e){for(var t=this.content.length,n=0;n<t;n++)if(this.content[n]==e){var r=this.content.pop();if(n==t-1)break;this.content[n]=r,this.bubbleUp(n),this.sinkDown(n);break}},size:function(){return this.content.length},bubbleUp:function(e){for(var t=this.content[e],n=this.scoreFunction(t);e>0;){var r=Math.floor((e+1)/2)-1,i=this.content[r];if(n>=this.scoreFunction(i))break;this.content[r]=t,this.content[e]=i,e=r}},sinkDown:function(e){for(var t=this.content.length,n=this.content[e],r=this.scoreFunction(n);;){var i=2*(e+1),o=i-1,a=null;if(o<t){var l=this.content[o],c=this.scoreFunction(l);c<r&&(a=o)}if(i<t){var s=this.content[i];this.scoreFunction(s)<(null==a?r:c)&&(a=i)}if(null==a)break;this.content[e]=this.content[a],this.content[a]=n,e=a}}};var vt=function(e,t,n){var r=function(e,t,n){var r={},i={},o={};o[t]=0;var a=new gt((function(e){return e.weight}));for(a.push({id:t,weight:0});a.size();){var l=a.pop(),c=l.id;if(!i[c]){var s=e(c)||{};for(var d in i[c]=1,s){var u=l.weight+s[d];(void 0===o[d]||o[d]>u)&&(o[d]=u,a.push({id:d,weight:u}),r[d]=c)}}}if(void 0===o[n])throw new Error("There is no path from ".concat(t," to ").concat(n));return r}(e,t,n);return function(e,t){for(var n=[],r=t;r;)n.push(r),e[r],r=e[r];return n.reverse()}(r,n)},ht=function(e,t,n){return(t-e.length*(2*n))/e.reduce((function(e,t){return e+mt(t)}),0)},wt=function(e,t,n,r,i,o){var a=e.slice(t,n),l=ht(a,r,o);return Math.pow(Math.abs(l-i),2)},yt=function(e){var t=e.containerWidth,n=e.limitNodeSearch,r=e.targetRowHeight,i=e.margin,o=e.photos,a=function(e,t,n,r,i){return function(o){var a={};a[+(o=+o)]=0;for(var l=o+1;l<n.length+1&&!(l-o>r);++l)a[l.toString()]=wt(n,o,l,t,e,i);return a}}(r,t,o,n,i),l=vt(a,"0",o.length);l=l.map((function(e){return+e}));for(var c=1;c<l.length;++c)for(var s=o.slice(l[c-1],l[c]),d=ht(s,t,i),u=l[c-1];u<l[c];++u)o[u].width=pt(d*mt(o[u]),1),o[u].height=d;return o},bt=Ie().memo((function(e){var t=e.photos,n=e.onClick,r=e.direction,i=e.margin,o=e.limitNodeSearch,a=e.targetRowHeight,l=e.columns,c=e.renderImage,s=st((0,Pe.useState)(0),2),d=s[0],u=s[1],f=(0,Pe.useRef)(null);(0,Pe.useLayoutEffect)((function(){var e=null,t=new it((function(t){var n=t[0].contentRect.width;d!==n&&(e=window.requestAnimationFrame((function(){u(Math.floor(n))})))}));return t.observe(f.current),function(){t.disconnect(),window.cancelAnimationFrame(e)}}));var p=function(e,r){var i=r.index;n(e,{index:i,photo:t[i],previous:t[i-1]||null,next:t[i+1]||null})};if(!d)return Ie().createElement("div",{ref:f}," ");var m,g,v=d-1;"row"===r&&("function"==typeof o&&(o=o(d)),"function"==typeof a&&(a=a(d)),void 0===o&&(o=2,d>=450&&(o=function(e){var t=e.targetRowHeight,n=e.containerWidth;return pt(n/t/1.5)+8}({containerWidth:d,targetRowHeight:a}))),m={display:"flex",flexWrap:"wrap",flexDirection:"row"},g=yt({containerWidth:v,limitNodeSearch:o,targetRowHeight:a,margin:i,photos:t})),"column"===r&&("function"==typeof l&&(l=l(d)),void 0===l&&(l=1,d>=500&&(l=2),d>=900&&(l=3),d>=1500&&(l=4)),m={position:"relative"},g=function(e){for(var t=e.photos,n=e.columns,r=e.containerWidth,i=e.margin,o=(r-2*i*n)/n,a=t.map((function(e){var t=e.height/e.width*o;return lt({},e,{width:pt(o,1),height:pt(t,1)})})),l=[],c=[],s=0;s<n;s++)l[s]=pt(s*(o+2*i),1),c[s]=0;var d=a.map((function(e){var t=c.reduce((function(e,t,n){return t<c[e]?n:e}),0);e.top=c[t],e.left=l[t],c[t]=c[t]+e.height+2*i;var n=c.reduce((function(e,t,n){return t>c[e]?n:e}),0);return e.containerHeight=c[n],e}));return d}({containerWidth:v,columns:l,margin:i,photos:t}),m.height=g[g.length-1].containerHeight);var h=c||ut;return Ie().createElement("div",{className:"react-photo-gallery--gallery"},Ie().createElement("div",{ref:f,style:m},g.map((function(e,t){var o=e.left,a=e.top,l=e.containerHeight,c=ct(e,["left","top","containerHeight"]);return h({left:o,top:a,key:e.key||e.src,containerHeight:l,index:t,margin:i,direction:r,onClick:n?p:null,photo:c})}))))}));bt.propTypes={photos:Le().arrayOf(ft).isRequired,direction:Le().string,onClick:Le().func,columns:Le().oneOfType([Le().func,Le().number]),targetRowHeight:Le().oneOfType([Le().func,Le().number]),limitNodeSearch:Le().oneOfType([Le().func,Le().number]),margin:Le().number,renderImage:Le().func},bt.defaultProps={margin:2,direction:"row",targetRowHeight:300};const _t=bt;var Et=React.useContext;function Rt(){var e=Et(t),n=e.isUpload,r=e.permissions,i=e.setIsUpload,o=e.isShortcodeBuilder,a=e.shortcodeBuilderType,l=e.files,c=!o&&(!a||"browser"===a)&&(!r||r.upload),s=wp.i18n.__("There is no items here.","integrate-google-drive"),d=wp.i18n.__("The folder is empty.","integrate-google-drive");return o&&l.length&&(s=wp.i18n.__("No items available for selection.","integrate-google-drive"),d=wp.i18n.__("This folder doesn't contain any selectable items.","integrate-google-drive")),React.createElement("div",{className:"igd-root-placeholder empty-folder-placeholder ".concat(n?"igd-hidden":"")},React.createElement("img",{src:"".concat(igd.pluginUrl,"/assets/images/file-browser/empty-folder-placeholder.svg"),alt:"Empty Folder"}),React.createElement("span",{className:"igd-root-placeholder-title"},s),React.createElement("span",{className:"igd-root-placeholder-text"},d),c&&React.createElement("button",{type:"button",className:"igd-btn btn-primary uploader-btn",onClick:function(){return i(!0)}},React.createElement("i",{className:"dashicons dashicons-cloud-upload"}),wp.i18n.__("Upload Files","integrate-google-drive")))}function St(e){return St="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},St(e)}function At(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ot(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?At(Object(n),!0).forEach((function(t){Ct(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):At(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ct(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==St(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==St(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===St(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return l}}(e,t)||kt(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ft(e){return function(e){if(Array.isArray(e))return Nt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||kt(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kt(e,t){if(e){if("string"==typeof e)return Nt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Nt(e,t):void 0}}function Nt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var jt=React,Pt=jt.useEffect,It=jt.useState,Tt=jt.useContext,Lt=igd.settings.rememberLastFolder,Bt=void 0===Lt||Lt,Dt=function(e){var t=e.id,n=e.activeFiles,r=e.setActiveFiles,i=e.files;return React.createElement("div",{className:"item-selection",onClick:function(e){e.stopPropagation(),n.find((function(e){return e.id===t}))?r((function(e){return e.filter((function(e){return e.id!==t}))})):r((function(e){return[].concat(Ft(e),[i.find((function(e){return e.id===t}))])}))}},React.createElement("svg",{fill:"#FFFFFFB2",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},React.createElement("radialGradient",{id:"shadow",cx:"38",cy:"95.488",r:"10.488",gradientTransform:"matrix(1 0 0 -1 -26 109)",gradientUnits:"userSpaceOnUse"},React.createElement("stop",{offset:".832",stopColor:"#010101"}),React.createElement("stop",{offset:"1",stopColor:"#010101",stopOpacity:"0"})),React.createElement("circle",{opacity:".26",fill:"url(#shadow)",cx:"12",cy:"13.512",r:"10.488"}),React.createElement("circle",{fill:"#FFF",cx:"12",cy:"12.2",r:"8.292"}),React.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),React.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})))};function Ut(){var e=Tt(t),n=e.galleryLayout,r=e.galleryColumns,i=e.galleryAspectRatio,o=e.galleryHeight,a=e.galleryMargin,l=e.galleryView,c=e.galleryFolderView,s=e.galleryOverlay,d=e.galleryOverlayTitle,u=e.galleryOverlayDescription,f=e.galleryOverlaySize,p=e.galleryImageSize,m=e.galleryCustomSizeWidth,g=e.galleryCustomSizeHeight,v=e.activeAccount,h=e.files,w=e.listFiles,_=e.setShouldRefresh,E=e.breadcrumbs,R=e.initFolders,S=e.setFiles,O=e.activeFolder,F=e.setActiveFolder,N=e.permissions,I=e.setActiveFiles,T=e.activeFiles,L=e.selectAll,B=e.isLoading,U=e.initParentFolder,M=e.notifications,z=xt(It({}),2),K=z[0],H=z[1],W=!!E&&Object.keys(E),Q=xt(It([]),2),q=Q[0],V=Q[1],G=xt(It([]),2),J=G[0],Y=G[1];Pt((function(){if(!h.length)return V([]),void Y([]);var e=h.filter((function(e){return b(e)||[v.root_id,"shared","computers","starred","shared-drives"].includes(e.id)}));V(e);var t=h.filter((function(e){return C(e)||A(e)})).map((function(e){var t=e.id,r=e.description,i=e.name,o=e.size,a=e.metaData,l=void 0===a?{}:a,c={id:t,name:i,description:r,size:o,src:k(e,p,{w:m,h:g})};return"grid"!==n&&(l.width&&!A(e)||(l.width=600),l.height&&!A(e)||(l.height=400),c.width=l.width,c.height=l.height),c}));Y(t)}),[h]),Pt((function(){q.length&&"title"!==c&&q.forEach((function(e){x(e.id,v)||X(e)}))}),[q,v]);var X=function(e){function t(e,t){var n=jQuery(e);setTimeout((function(){e.dataset.intervalId&&clearInterval(e.dataset.intervalId),e.dataset.intervalId=setInterval((function(){var e=n.find("img"),t=e.filter(".active").length?e.filter(".active"):e.first();if(t.length){var r=t.next().length?t.next():e.first();e.removeClass("active"),r.addClass("active")}}),3e3)}),1500*t)}wp.ajax.post("igd_get_files",{data:{folder:e}}).done((function(n){var r=n.files,i=n.error;if(i)Swal.fire({html:i,icon:"error",confirmButtonText:wp.i18n.__("Ok","integrate-google-drive"),customClass:{container:"igd-swal"}});else{var o=r.filter((function(e){return C(e)||A(e)}));o=o.slice(0,10),H((function(t){return Ot(Ot({},t),{},Ct({},e.id,o))})),document.querySelectorAll(".igd-gallery-folder-images").forEach(t)}})).fail((function(e){return console.log(e)}))};Pt((function(){var e=jQuery(".react-photo-gallery--gallery img");if(e.length){var t=function(){_(!0)};return e.on("error",t),function(){e.off("error",t)}}}),[J]);var Z=j();Pt((function(){if(Z)if(L){I(h);var e=J.map((function(e){return Ot(Ot({},e),{},{isSelected:!0})}));Y(e)}else{I([]);var t=J.map((function(e){return Ot(Ot({},e),{},{isSelected:!1})}));Y(t)}}),[L]);var $=function(){var e=window.innerWidth;return e<768?r.xs:e<992?r.sm:e<1200?r.md:e<1600?r.lg:e>=1920?r.xl:r.md},ee=xt(It($()),2),te=ee[0],ne=ee[1];return Pt((function(){var e=function(){ne($())};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[]),React.createElement(React.Fragment,null,React.createElement("div",{className:"igd-module-gallery gallery-view-".concat(l," gallery-layout-").concat(n),style:{"--column-width":"calc(".concat(100/te,"% - ").concat(2*a,"px)"),"--aspect-ratio":"".concat(i)}},React.createElement("div",{className:"file-list"},!!W.length&&!!O&&React.createElement("div",{className:"go-prev file-item folder-item",style:{margin:"".concat(a,"px")},onClick:function(e){if(W.length>1){var t=W[W.length-2],n={id:t,name:E[t],accountId:v.id};w(n)}else if(F(""),S(R),Bt){var r=D(R,U);r&&sessionStorage.removeItem(r)}}},React.createElement("i",{className:"dashicons dashicons-arrow-left-alt"}),React.createElement("span",null,wp.i18n.__("Previous folder","integrate-google-drive"))),!!q.length&&q.map((function(e){var t=e.id,n=e.name,r=e.iconLink,i=T.find((function(e){return e.id===t})),o=null==r?void 0:r.replace("/16/","/64/");return React.createElement("div",{key:t,className:"file-item ".concat(i?"active":""," ").concat("title"===c?"folder-item":""),style:{margin:"".concat(a,"px")},onClick:function(){return w(e)}},(N.download&&N.zipDownload||N.photoProof)&&React.createElement(Dt,{id:t,activeFiles:T,setActiveFiles:I,files:h}),"thumbnail"===c&&React.createElement("div",{className:"igd-gallery-folder-images"},K[t]&&K[t].length>0?K[t].map((function(e,t){var n=e.id,r=e.name,i=k(e,p,{w:m,h:g});return React.createElement("img",{key:n,className:"".concat(0===t?"active":""),onError:function(e){e.target.src=o},src:i,alt:r,referrerPolicy:"no-referrer"})})):React.createElement("img",{className:"active",src:o,alt:n,referrerPolicy:"no-referrer"})),React.createElement("div",{className:"file-item-footer"},React.createElement("div",{className:"file-icon-wrap"},x(t,v)?React.createElement("i",{className:"file-icon dashicons ".concat(o," footer-icon")}):React.createElement("img",{className:"file-icon",src:o,alt:n,referrerPolicy:"no-referrer"})),React.createElement("span",null,n)))}))),React.createElement(_t,{photos:J,margin:parseInt(a),targetRowHeight:"justified"===n&&o,columns:te,direction:"masonry"===n?"column":"row",renderImage:function(e){var t=e.photo,n=e.margin,r=e.direction,i=e.top,o=e.left,a=t.name,l=t.description,c=t.src,p=t.size,m=t.id,g=t.width,v=t.height,w={display:"block",margin:"".concat(n,"px"),width:"".concat(g,"px"),height:"".concat(v,"px")};"column"===r&&(w.position="absolute",w.left="".concat(o,"px"),w.top="".concat(i,"px"));var b=T.find((function(e){return e.id===m}));return React.createElement("div",{className:"igd-gallery-item ".concat(b?"active":""),style:w,onClick:function(e){return function(e,t){P(e,t,h.filter((function(e){return C(e)||A(e)})),N,M,!0)}(e,m)}},(N.download&&N.zipDownload||N.photoProof)&&React.createElement(Dt,{id:m,activeFiles:T,setActiveFiles:I,files:h}),React.createElement("img",{src:c,alt:a,referrerPolicy:"no-referrer"}),!!s&&React.createElement("div",{className:"igd-gallery-item-overlay"},!!d&&React.createElement("div",{className:"overlay-title"},a),!!u&&!!l&&React.createElement("p",{className:"overlay-description"},l),!!f&&React.createElement("span",{className:"overlay-size"},y(p))))}})),Z&&!B&&!q.length&&!J.length&&React.createElement(Rt,null))}function Mt(){return React.createElement("div",{className:"igd-root-placeholder"},React.createElement("img",{src:"".concat(igd.pluginUrl,"/assets/images/file-browser/computers-placeholder.svg"),alt:"Computers"}),React.createElement("span",{className:"igd-root-placeholder-title"},wp.i18n.__("No Computers Syncing","integrate-google-drive")),React.createElement("span",{className:"igd-root-placeholder-text"},wp.i18n.__("The files synced with computers will display here.","integrate-google-drive")))}function zt(){return React.createElement("div",{className:"igd-root-placeholder"},React.createElement("img",{src:"".concat(igd.pluginUrl,"/assets/images/file-browser/shared-placeholder.svg"),alt:"Shared Files"}),React.createElement("span",{className:"igd-root-placeholder-title"},wp.i18n.__("Shared With Me","integrate-google-drive")),React.createElement("span",{className:"igd-root-placeholder-text"},wp.i18n.__("Files and folders others have shared with you.","integrate-google-drive")))}function Kt(){return React.createElement("div",{className:"igd-root-placeholder"},React.createElement("img",{src:"".concat(igd.pluginUrl,"/assets/images/file-browser/starred-placeholder.svg"),alt:"Starred Files"}),React.createElement("span",{className:"igd-root-placeholder-title"},wp.i18n.__("Nothing is starred","integrate-google-drive")),React.createElement("span",{className:"igd-root-placeholder-text"},wp.i18n.__("Adds star to files and folders that you want to find easily later.","integrate-google-drive")))}function Ht(){return React.createElement("div",{className:"igd-root-placeholder"},React.createElement("img",{src:"".concat(igd.pluginUrl,"/assets/images/file-browser/shared-drives-placeholder.svg"),alt:"Shared Drives"}),React.createElement("span",{className:"igd-root-placeholder-title"},wp.i18n.__("No Shared Drives","integrate-google-drive")),React.createElement("span",{className:"igd-root-placeholder-text"},wp.i18n.__("The Drives others have shared with you.","integrate-google-drive")))}function Wt(e){var t=e.activeFolder.id;return React.createElement(React.Fragment,null,"computers"===t&&React.createElement(Mt,null),"shared-drives"===t&&React.createElement(Ht,null),"shared"===t&&React.createElement(zt,null),"starred"===t&&React.createElement(Kt,null))}function Qt(e){var t=e.isSearchResults;return React.createElement("div",{className:"igd-root-placeholder search-placeholder ".concat(t?"empty-placeholder":"")},t&&React.createElement("svg",{width:100,height:100,className:"igd-placeholder-svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 259 223",fill:"none"},React.createElement("g",{clipPath:"url(#clip0_1110_10155)"},React.createElement("path",{d:"M127.836 80.9443C127.836 103.828 127.836 126.64 127.836 149.523C127.836 157.696 124.072 161.391 115.905 161.391C81.2469 161.391 46.5181 161.391 11.8603 161.391C3.97712 161.391 0.07102 157.553 0.07102 149.665C0.07102 116.264 0.14204 82.8631 0 49.462C0 46.4062 1.0653 46.0509 3.62202 46.1219C12.4995 46.2641 21.377 46.193 30.2545 46.193C40.4104 46.193 46.092 40.4367 46.163 30.4164C46.163 21.3199 46.234 12.1524 46.092 3.05595C46.092 0.923972 46.3761 0.000114277 48.8618 0.0711803C71.5882 0.213312 94.3146 0.142246 117.041 0.142246C123.788 0.142246 127.836 4.19301 127.836 11.0153C127.907 34.2539 127.836 57.6346 127.836 80.9443ZM65.6935 103.046C76.9147 103.046 88.2069 103.046 99.428 103.046C103.689 103.046 105.891 101.34 105.891 98.2133C105.891 95.2285 103.689 93.4519 99.6411 93.4519C77.2698 93.4519 54.8985 93.4519 32.5272 93.4519C28.479 93.4519 26.2774 95.1575 26.2064 98.1423C26.1354 101.198 28.479 103.046 32.5982 103.046C43.6773 103.046 54.6854 103.046 65.6935 103.046ZM66.1196 67.6549C55.0405 67.6549 43.8904 67.6549 32.8112 67.6549C28.6211 67.6549 26.2774 69.3605 26.2774 72.4164C26.2774 75.4722 28.55 77.3199 32.7402 77.3199C54.9695 77.3199 77.1277 77.3199 99.357 77.3199C103.618 77.3199 105.891 75.6143 105.891 72.5585C105.891 69.4316 103.618 67.726 99.428 67.726C88.2779 67.6549 77.1988 67.6549 66.1196 67.6549ZM48.6487 117.756C43.1091 117.756 37.5696 117.685 32.03 117.756C28.266 117.756 26.2064 119.533 26.2774 122.518C26.2774 125.361 28.55 127.208 32.101 127.208C43.0381 127.208 54.0462 127.208 64.9833 127.208C68.5343 127.208 70.807 125.218 70.807 122.447C70.807 119.604 68.5343 117.828 64.9123 117.756C59.5148 117.756 54.0462 117.756 48.6487 117.756Z",fill:"#C1E9C9"}),React.createElement("path",{d:"M148.999 101.482C148.999 124.081 148.999 146.751 148.999 169.35C148.999 178.376 145.377 182 136.287 182C101.984 182 67.6104 182 33.3077 182C24.6433 182 20.4531 177.452 21.1633 168.924C21.3053 167.574 21.5894 166.934 23.0098 167.076C23.72 167.147 24.4302 167.076 25.1404 167.076C55.3239 167.076 85.5074 167.076 115.691 167.076C127.409 167.076 133.588 160.894 133.588 149.097C133.588 107.523 133.659 65.9494 133.517 24.3758C133.517 21.2489 134.298 20.4672 137.352 20.5383C145.164 20.8225 148.999 24.518 148.999 32.4774C148.999 55.5027 148.999 78.5281 148.999 101.482Z",fill:"#C1E9C9"}),React.createElement("path",{d:"M40.4817 18.6906C40.4817 22.9545 40.5527 27.2185 40.4817 31.4825C40.4106 36.9545 37.0727 40.4368 31.6752 40.5078C22.9397 40.5789 14.1332 40.5078 5.39776 40.5078C3.19614 40.5078 1.42064 39.8682 0.568403 37.6652C-0.212817 35.6043 0.710443 34.0408 2.13084 32.5484C12.2157 22.4571 22.3005 12.3657 32.4564 2.27433C33.9478 0.781945 35.5813 -0.355111 37.7829 0.639812C39.9135 1.56367 40.4817 3.34032 40.4817 5.54337C40.4106 9.87839 40.4817 14.2845 40.4817 18.6906Z",fill:"#C1E9C9"})),React.createElement("g",{clipPath:"url(#clip1_1110_10155)"},React.createElement("path",{d:"M148.9 79.6302C120.227 79.6302 91.6528 79.6302 62.9789 79.6302C51.4894 79.6302 46.8936 84.6083 48.4922 96.058C53.3877 132.199 58.4831 168.241 63.5784 204.382C64.5775 211.252 69.1733 214.935 76.9662 214.935C99.4456 215.035 121.925 214.935 144.405 214.935C169.382 214.935 194.359 214.935 219.336 214.935C221.035 214.935 222.633 214.935 224.332 215.234C226.33 215.632 227.529 217.026 227.529 219.117C227.429 221.208 226.23 222.502 224.232 222.801C222.733 223 221.234 222.9 219.736 222.9C172.779 222.9 125.822 222.9 78.8644 222.9C64.2778 222.9 57.484 217.126 55.4858 202.789C50.1906 166.747 45.1952 130.606 40.1997 94.5646C38.801 84.3096 44.4958 75.5482 54.5866 72.4617C56.2851 71.9639 57.2841 71.6652 57.7837 69.5744C59.682 62.3064 63.6783 59.6182 71.7709 59.5186C95.2495 59.5186 118.728 59.4191 142.207 59.6182C145.603 59.6182 147.801 58.8217 149.2 55.6357C150.199 53.2462 151.698 50.9563 153.097 48.7659C156.094 43.8873 160.49 41.0996 166.285 41.0996C187.465 41 208.546 40.9005 229.727 41.0996C236.62 41.1991 241.116 46.0777 241.416 52.8479C241.516 55.1379 241.516 57.5274 241.416 59.8173C241.216 66.3884 240.417 72.163 249.409 75.1499C256.902 77.639 259.799 85.7035 258.8 93.7681C255.203 121.347 251.207 148.926 247.411 176.504C247.011 179.292 245.912 181.582 242.915 181.283C239.418 180.985 239.018 178.197 239.418 175.31C241.916 157.588 244.413 139.865 246.811 122.143C248.21 112.486 249.609 102.828 250.807 93.0711C251.607 86.4005 247.411 80.9245 240.817 79.9289C238.818 79.6302 236.82 79.6302 234.822 79.6302C206.248 79.6302 177.574 79.6302 148.9 79.6302Z",fill:"#2FB44B"}),React.createElement("path",{d:"M225.431 149.025C225.331 153.904 223.632 161.072 219.536 167.444C218.037 169.834 218.237 171.228 220.235 173.219C230.126 182.777 239.818 192.634 249.509 202.391C253.205 206.074 253.705 209.659 251.007 212.347C248.31 215.035 244.813 214.537 241.116 210.853C231.525 201.395 222.034 191.937 212.542 182.379C210.444 180.188 209.046 179.491 206.048 181.383C190.962 191.14 171.48 190.144 157.593 179.292C143.605 168.34 138.11 150.22 143.506 133.394C148.901 116.667 164.486 105.118 182.57 104.521C205.549 103.724 225.431 123.039 225.431 149.025ZM183.569 176.106C200.254 176.007 213.542 162.566 213.342 145.939C213.242 129.71 199.454 116.269 183.269 116.468C166.684 116.568 153.297 130.208 153.496 146.735C153.596 163.063 167.084 176.206 183.569 176.106Z",fill:"#2FB44B"}),React.createElement("path",{d:"M107.738 171.427C112.933 171.427 118.029 171.228 123.224 171.427C128.519 171.626 131.316 174.613 131.516 179.89C131.616 182.18 131.616 184.569 131.516 186.859C131.316 191.937 128.519 195.023 123.524 195.222C112.933 195.421 102.243 195.421 91.6526 195.222C86.6572 195.123 83.8598 191.937 83.56 186.959C83.4601 184.967 83.56 182.976 83.56 180.985C83.6599 174.215 86.3575 171.526 93.3511 171.427C98.0468 171.327 102.842 171.327 107.738 171.427Z",fill:"#2FB44B"}),React.createElement("circle",{cx:"183",cy:"146",r:"30",fill:"white"}),React.createElement("rect",{width:"26.9682",height:"2.81029",transform:"matrix(0.708463 0.705748 0.708463 -0.705748 172.83 137.269)",fill:"#2FB44B"}),React.createElement("rect",{width:"27.6664",height:"2.81029",transform:"matrix(-0.708463 0.705748 0.708463 0.705748 191.885 135.286)",fill:"#2FB44B"})),React.createElement("defs",null,React.createElement("clipPath",{id:"clip0_1110_10155"},React.createElement("rect",{width:"149",height:"182",fill:"white"})),React.createElement("clipPath",{id:"clip1_1110_10155"},React.createElement("rect",{width:"219",height:"182",fill:"white",transform:"translate(40 41)"})))),t?React.createElement("h3",{className:"igd-root-placeholder-title"},wp.i18n.__("No results found!","integrate-google-drive")):React.createElement("h3",{className:"igd-root-placeholder-title"},wp.i18n.__("Search for files & content","integrate-google-drive")),!t&&React.createElement(Z,null))}var qt=React.useContext;function Vt(){var e=qt(t),n=e.files,r=e.searchKeywordRef,i=n.length?n.length:wp.i18n.__("No","integrate-google-drive"),o=wp.i18n.sprintf(wp.i18n.__('Search results for "%s": %s items found.',"integrate-google-drive"),"<strong>".concat(r.current,"</strong>"),i);return React.createElement("div",{className:"search-result-info"},React.createElement("span",{dangerouslySetInnerHTML:{__html:o}}),React.createElement("button",{onClick:function(e){document.querySelector(".search-dismiss").click()},className:"clear-button igd-btn btn-warning"},wp.i18n.__("Clear","integrate-google-drive")))}function Gt(e){return Gt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gt(e)}function Jt(e){return function(e){if(Array.isArray(e))return Yt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Yt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Yt(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Yt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Xt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xt(Object(n),!0).forEach((function(t){$t(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $t(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Gt(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Gt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Gt(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var en=React,tn=en.useRef,nn=en.useContext;function rn(){var e=document.querySelector(".igd-tutor-attachment-modal"),n=igd.settings,r=n.preloader,i=void 0===r?"default":r,o=n.rememberLastFolder,a=void 0===o||o,l=nn(t),c=l.isLoading,s=l.activeAccount,d=l.initFolders,u=l.initParentFolder,f=l.files,p=void 0===f?[]:f,m=l.setFiles,g=l.activeFiles,h=l.setActiveFiles,w=l.breadcrumbs,_=l.activeFolder,E=l.setActiveFolder,R=l.isShortcodeBuilder,S=l.selectedFolders,A=l.setSelectedFolders,O=l.isList,C=l.showLastModified,F=l.showFileSizeField,N=l.shortcodeBuilderType,j=l.isUpload,I=l.permissions,T=l.isSearchResults,L=l.isMobile,B=l.setIsOptions,U=l.setShouldRefresh,M=l.listFiles,z=l.show,H=l.hideAll,W=l.isSelectFiles,Q=l.selectionType,q=l.setActiveFile,V=l.isLMS,G=l.isWooCommerce,J=l.getFiles,Y=l.notifications,X=l.lazyLoad,Z=l.lazyLoadNumber,$="browser"===N,ee="uploader"===N,te="gallery"===N,ne="embed"===N,re="search"===N,ie="media"===N,oe="view"===N,ae="download"===N,le="slider"===N,ce=ee&&S.length;S&&S.length&&W&&["single","parent","template"].includes(Q)&&(ce=!0);var se=[!!$,!!ie,!!le,!!te,!!ne,!!oe,!!ae,!!V,!!G,!!W&&!Q].includes(!0),de=!(!_||x(_.id,s)&&s.root_id!==_.id),ue=tn(),pe=function(e,t){var n=v(React.useState(t?"igd-item-col-1":"igd-item-col-4"),2),r=n[0],i=n[1];function o(e){if(t)i("igd-item-col-1");else{var n=e[0].contentRect.width,r={1:320,2:480,3:768,4:992,5:1200,6:1520},o="";if(n>1520)o="igd-item-col-6";else for(var a in r)if(n<r[a]){o="igd-item-col-".concat(a);break}i(o)}}return React.useEffect((function(){if(e.current){var t=new ResizeObserver(o);return t.observe(e.current),function(){t.disconnect()}}}),[e,t]),r}(ue,O);!R&&re||!X||function(e,t,n,r,i,o,a){React.useEffect((function(){var a=e.current;if(a&&!n&&!i&&r&&r.pageNumber&&!(r.pageNumber<1)){var l=document.body.classList.contains("block-editor-page"),c=document.body.classList.contains("elementor-editor-active"),s=document.body.classList.contains("et-fb");if(!(l||c||s)||o){var d=function(e){for(var t=e.parentElement,n=null;t;)"div"===t.nodeName.toLowerCase()&&(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth)&&(n=t),t=t.parentElement;return n}(a),u=d?d.scrollTop:window.pageYOffset,f=function(){var e=d?d.scrollTop:window.pageYOffset,n=e>u;if(u=e,n)if(d)d.scrollHeight-e<=d.clientHeight&&t(r,"lazy");else{var i=a.getBoundingClientRect(),o=window.innerHeight||document.documentElement.clientHeight;i.bottom<=o+5&&t(r,"lazy")}},p=d||window;return p.addEventListener("scroll",f),function(){p.removeEventListener("scroll",f)}}}}),[e,t,n,r])}(ue,J,c,_,T,R);var ge=w?Object.keys(w):[],ve=!1;return X&&(null==_?void 0:_.pageNumber)>0&&p.length<((null==_?void 0:_.pageNumber)-1)*Z&&E(Zt(Zt({},_),{},{pageNumber:0})),React.createElement("div",{ref:ue,className:"igd-body ".concat(c?"lazy"===c?"lazy-loading":"loading":"")},T&&!c&&React.createElement(Vt,null),(!te||R)&&React.createElement("div",{className:"file-list ".concat(O?"list-view":""," ").concat(pe," ").concat(p.length||x(_,s)?"":"empty"),onClick:function(){var e=document.querySelector(".igd-context-menu")?300:0;setTimeout((function(){q(null),h([])}),e)},onContextMenu:function(e){e.preventDefault(),B(!1),h([]),x(_.id,s)&&s.root_id!==_.id||(q(_),z(e))}},!te&&O&&!!p.length&&(C||F)&&React.createElement("div",{className:"list-view-header"},React.createElement("span",{className:"col-name"},wp.i18n.__("Name","integrate-google-drive")),F&&React.createElement("span",{className:"col-size"},wp.i18n.__("Size","integrate-google-drive")),C&&React.createElement("span",{className:"col-modified"},wp.i18n.__("Modified","integrate-google-drive"))),(!_||!_&&!!d)&&(!re||R)&&!T&&React.createElement(me,null),(!re||R)&&!!_&&!!ge.length&&React.createElement("div",{className:"go-prev file-item folder-item",onClick:function(e){if(q(null),d){if(ge.length>1){var t=ge[ge.length-2],n=[ge[ge.length-3]],r={id:t,name:w[t],accountId:s.id,parents:n};M(r)}else if(E(null),m(d),a){var i=D(d,u);i&&sessionStorage.removeItem(i)}}else if(ge.length>1){var o=ge[ge.length-2],l=[ge[ge.length-3]],c={id:o,name:w[o],accountId:s.id,parents:l};M(c)}else m([]),E(null)}},React.createElement("i",{className:"dashicons dashicons-arrow-left-alt2"}),React.createElement("span",null,wp.i18n.__("Previous folder","integrate-google-drive"))),!!p.length&&p.map((function(t,n){var r=t.id,i=t.name,o=t.type,a=t.iconLink,l=void 0===a?"":a,c=t.thumbnailLink,s=t.size,d=t.updated;if(r){var u=b(t),f=g.find((function(e){return e.id===r})),m=S&&!!S.find((function(e){return e.id===r})),v=R&&(se||u)&&(!V||!u)&&(!e||!u);ce&&(v=(S[0].id||S[0])===r);var w=null==l?void 0:l.replace("/16/","/64/"),_=k(t,"small"),E=!ve&&u&&!p.slice(n+1).some(b);return E&&(ve=!0),React.createElement(React.Fragment,null,E&&!O&&React.createElement("div",{className:"folder-file-divider"}),React.createElement("div",{key:r,"data-id":r,className:"file-item ".concat(u?"folder-item":"","  ").concat(E?"folder-item-last":""," ").concat(f||m?"active":""),onClick:function(e){e.stopPropagation(),H(),L?u?M(t):R?A([].concat(Jt(S),[t])):(q(t),P(e,r,p,I,Y)):(e.detail&&1!=e.detail||R?u?M(t):R&&v&&A(m?Jt(S.filter((function(e){return e.id!=t.id}))):[].concat(Jt(S),[t])):(e.ctrlKey||e.shiftKey||e.metaKey)&&!ee?h((function(e){return e.find((function(e){return e.id===t.id}))?e.filter((function(e){return e.id!==t.id})):[].concat(Jt(e),[t])})):u?M(t):(q(t),P(e,r,p,I,Y)),console.log(t))},onDoubleClick:function(e){e.stopPropagation(),R||(u?M(t):(q(t),P(e,r,p,I,Y)))},onContextMenu:function(e){e.preventDefault(),e.stopPropagation(),H(),B(!1),t["shared-drives"]||R||(h([t]),q(t),z(e))},title:i},!u&&!O&&React.createElement("img",{referrerPolicy:"no-referrer",className:"igd-file-thumbnail ".concat(c?"has-thumbnail":""),src:_,loading:"lazy",onError:function(e){var t=e.target;t.classList.remove("has-thumbnail"),t.src!==w&&(t.src=w,U(!0))},alt:i}),React.createElement("div",{className:"file-item-footer"},React.createElement("div",{className:"file-icon-wrap"},React.createElement("img",{className:"file-icon",referrerPolicy:"no-referrer",src:w,alt:"icon"}),"application/vnd.google-apps.shortcut"===o&&React.createElement("svg",{className:"shortcut-icon",viewBox:"0 0 16 16",fill:"none",focusable:"false",xmlns:"http://www.w3.org/2000/svg",width:"16px",height:"16px"},React.createElement("circle",{cx:"8",cy:"8",r:"8",fill:"white"}),React.createElement("path",{d:"M10,3H6V4H8.15A5,5,0,0,0,10,13V12A4,4,0,0,1,9,4.65V7h1Z",fill:"#5F6368"})),!R&&(!I||I.download&&I.zipDownload)&&React.createElement("span",{className:"file-item-checkbox ".concat(f?"checked":""),onClick:function(e){e.stopPropagation(),h(f?function(e){return e.filter((function(e){return e.id!==t.id}))}:[].concat(Jt(g),[t]))}},React.createElement("span",{className:"box"}))),React.createElement("span",{className:"file-item-name"},i),F&&(O?React.createElement("span",{className:"file-item-size"},s?y(s):"—"):(!I||I.download)&&!u&&!!s&&React.createElement("span",{className:"file-item-size"},y(s))),!R&&React.createElement("span",{className:"file-item-options",onClick:function(e){e.stopPropagation(),B(!1),q(t),z(e)}},React.createElement("i",{className:"dashicons dashicons-ellipsis"}))),O&&C&&React.createElement("span",{className:"file-item-date"},K(d,!0)),v&&React.createElement(fe,{file:t,isSelected:m,selectedFolders:S,setSelectedFolders:A,isList:O})))}}))),!R&&te&&React.createElement(Ut,null),!c&&(d||_&&(!x(_.id,s)||_.id===s.root_id))&&!p.length&&(R||!te)&&(R||!re)&&!T&&React.createElement(Rt,null),!re&&!T&&!R&&!te&&de&&j&&React.createElement(je,null),!T&&!c&&!p.length&&_&&x(_.id,s)&&React.createElement(Wt,{activeFolder:_}),!c&&(!R&&re||T)&&!p.length&&React.createElement(Qt,{isSearchResults:T}),c&&React.createElement("div",{className:"loading-wrap"},igd.settings.customPreloader?React.createElement("img",{src:igd.settings.customPreloader,alt:"Loading..."}):React.createElement("img",{src:"".concat(igd.pluginUrl,"/assets/images/preloader/").concat(i,".svg"),alt:"Loading..."})))}function on(e){return on="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},on(e)}function an(e){return function(e){if(Array.isArray(e))return fn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||un(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ln(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function cn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ln(Object(n),!0).forEach((function(t){sn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ln(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sn(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==on(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==on(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===on(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return l}}(e,t)||un(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function un(e,t){if(e){if("string"==typeof e)return fn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fn(e,t):void 0}}function fn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var pn=React,mn=pn.useContext,gn=pn.useState,vn=pn.useEffect;function hn(){var e=mn(t),n=e.files,r=e.activeAccount,i=e.activeFile,o=e.setShowDetails,a=e.activeFolder,l=e.setFiles,c=e.listFiles,s=e.setAllFiles,d=e.initParentFolder,u=dn(gn(null),2),f=u[0],p=u[1],m=f||{},g=m.id,v=m.accountId,h=m.name,b=m.iconLink,_=m.type,E=m.size,R=m.owner,S=m.updated,A=m.created,O=m.description,C=m.parents,F=dn(gn(null),2),k=F[0],N=F[1],j=dn(gn(!1),2),P=j[0],I=j[1],T=dn(gn(""),2),L=T[0],B=T[1];vn((function(){p(null),i?p(i):a&&!x(a.id,r)&&p(a)}),[i,a]),vn((function(){if(null!=f&&f.parents){var e=f.parents[0];(null==a?void 0:a.id)!==e?(N("loading"),wp.ajax.post("igd_get_file",{id:e,accountId:v}).done((function(e){N(e)})).fail((function(e){console.log(e),N(null)}))):N(a)}else N(null)}),[f,a]);var D=null==b?void 0:b.replace("/16/","/64/"),U=[{key:"type",label:wp.i18n.__("Type","integrate-google-drive"),value:w(_)},{key:"size",label:wp.i18n.__("Size","integrate-google-drive"),value:E&&y(E)},{key:"owner",label:wp.i18n.__("Owner","integrate-google-drive"),value:R},{key:"updated",label:wp.i18n.__("Updated","integrate-google-drive"),value:S&&K(S)},{key:"created",label:wp.i18n.__("Created","integrate-google-drive"),value:A&&K(A)}];return React.createElement("div",{className:"igd-details-wrap"},React.createElement("div",{className:"igd-details"},React.createElement("i",{className:"close-details dashicons dashicons-no",onClick:function(){o(!1),localStorage.removeItem("igd_show_details")}}),f&&!x(f.id,r)?React.createElement(React.Fragment,null,React.createElement("div",{className:"details-item name"},React.createElement("img",{src:D}),React.createElement("span",null,h)),U.map((function(e){var t=e.key,n=e.label,r=e.value;if(r)return React.createElement("div",{key:t,className:"details-item field-".concat(t)},React.createElement("span",{className:"details-item-label"},n),React.createElement("span",{className:"details-item-value"},r))})),!(null==C||!C.length)&&a&&a.id!==(null==d?void 0:d.id)&&React.createElement("div",{className:"details-item field-location"},React.createElement("span",{className:"details-item-label"},wp.i18n.__("Location","integrate-google-drive")),k&&React.createElement("div",{className:"details-item-value"},"loading"===k?React.createElement("span",{className:"igd-spinner"}):React.createElement("div",{className:"location-wrap",onClick:function(){c(k)}},React.createElement("img",{src:k.iconLink}),React.createElement("span",null,k.name)))),React.createElement("div",{className:"details-item field-description"},React.createElement("span",{className:"details-item-label"},wp.i18n.__("Description","integrate-google-drive")),React.createElement("i",{className:"dashicons ".concat(P?"dashicons-saved":"dashicons-edit"),onClick:function(){P?(!function(){var e=n.map((function(e){return e.id===g?cn(cn({},e),{},{description:L}):e}));l(an(e)),p(cn(cn({},f),{},{description:L})),s((function(t){return cn(cn({},t),{},sn({},null==a?void 0:a.id,an(e)))})),wp.ajax.post("igd_update_description",{id:g,accountId:v,description:L}).done((function(){Swal.close(),Swal.fire({title:wp.i18n.__("Updated!","integrate-google-drive"),text:wp.i18n.__("Description has been updated.","integrate-google-drive"),icon:"success",showConfirmButton:!1,timer:2e3,timerProgressBar:!0,toast:!0,customClass:{container:"igd-swal"},position:"top-end"})}))}(),I(!1)):(I(!0),B(O))}}),!P&&(O?React.createElement("span",{className:"details-item-value"},O):React.createElement("span",{className:"description-placeholder"},wp.i18n.__("Add description","integrate-google-drive"))),P&&React.createElement("textarea",{onChange:function(e){return B(e.target.value)},value:L,rows:4}))):React.createElement("div",{className:"details-placeholder"},React.createElement("i",{className:"dashicons dashicons-pressthis"}),React.createElement("span",null,wp.i18n.__("Select a file or folder to view its details.","integrate-google-drive")))))}function wn(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=wn(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}const yn=function(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=wn(e))&&(r&&(r+=" "),r+=t);return r};var bn=n(155);function _n(){return _n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_n.apply(this,arguments)}function En(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var Rn=(0,Pe.createContext)({});function Sn(){return(0,Pe.useContext)(Rn)}var An=function(e){return Ie().createElement(Rn.Provider,{value:e.refTracker},e.children)};function On(){var e=new Map;return{on:function(t,n){var r;return e.has(t)?null==(r=e.get(t))||r.add(n):e.set(t,new Set([n])),this},off:function(t,n){return n?e.get(t).delete(n):e.delete(t),this},emit:function(t,n){if("production"!==bn.env.NODE){var r=t;e.has(t)||0===r||console.error("It seems that the menu you are trying to display is not renderer or you have a menu id mismatch.","You used the menu id: "+t)}return e.has(t)&&e.get(t).forEach((function(e){e(n)})),this}}}var Cn=On();function xn(){return(0,Pe.useRef)(new Map).current}var Fn={show:function(e){var t=e.id,n=e.event,r=e.props,i=e.position;n.preventDefault&&n.preventDefault(),Cn.emit(0).emit(t,{event:n.nativeEvent||n,props:r,position:i})},hideAll:function(){Cn.emit(0)}};function kn(){var e,t,n,r,i=new Map,o=!1;function a(){r[e].node.focus()}function l(){return-1!==e||(c(),!1)}function c(){e+1<r.length?e++:e+1===r.length&&(e=0),o&&s(),a()}function s(){if(l()&&!n){var c=i.get(t),s=c.isRoot,d=c.items,u=c.focusedIndex,f=c.parentNode;t.classList.remove("react-contexify__submenu--is-open"),r=d,t=f,s&&(n=!0,i.clear()),o||(e=u,a())}}return{init:function(t){r=t,e=-1,n=!0},moveDown:c,moveUp:function(){-1===e||0===e?e=r.length-1:e-1<r.length&&e--,o&&s(),a()},openSubmenu:function(){if(l()&&e>=0&&r[e].isSubmenu){var c=Array.from(r[e].submenuRefTracker.values()),s=r[e].node;return i.set(s,{isRoot:n,focusedIndex:e,parentNode:t||s,items:r}),s.classList.add("react-contexify__submenu--is-open"),t=s,c.length>0?(e=0,r=c):o=!0,n=!1,a(),!0}return!1},closeSubmenu:s}}var Nn={fade:"fade",flip:"flip",scale:"scale",slide:"slide"},jn=function(){};function Pn(e){return"function"==typeof e}function In(e){return"string"==typeof e}function Tn(e,t){return Pe.Children.map(Pe.Children.toArray(e).filter(Boolean),(function(e){return(0,Pe.cloneElement)(e,t)}))}function Ln(e,t){return Pn(e)?e(t):e}function Bn(e,t){return Pn(t)?_n({},e,t(e)):_n({},e,t)}var Dn=function(e){var t,n,r,i=e.id,o=e.theme,a=e.style,l=e.className,c=e.children,s=e.animation,d=void 0===s?"scale":s,u=e.onHidden,f=void 0===u?jn:u,p=e.onShown,m=void 0===p?jn:p,g=En(e,["id","theme","style","className","children","animation","onHidden","onShown"]),v=(0,Pe.useReducer)(Bn,{x:0,y:0,visible:!1,triggerEvent:{},propsFromTrigger:null,willLeave:!1}),h=v[0],w=v[1],y=(0,Pe.useRef)(null),b=(0,Pe.useRef)(!1),_=(n=h.visible,r=(0,Pe.useRef)(),(0,Pe.useEffect)((function(){r.current=n}),[n]),r.current),E=xn(),R=(0,Pe.useState)((function(){return kn()}))[0];function S(e){var t=e.event,n=e.props,r=e.position;t.stopPropagation();var i,o,a=r||(o={x:0,y:0},function(e){return"touchend"===e.type}(i=t)&&i.changedTouches&&i.changedTouches.length>0?(o.x=i.changedTouches[0].clientX,o.y=i.changedTouches[0].clientY):(o.x=i.clientX,o.y=i.clientY),(!o.x||o.x<0)&&(o.x=0),(!o.y||o.y<0)&&(o.y=0),o),l=a.x,c=a.y;setTimeout((function(){w({visible:!0,willLeave:!1,x:l,y:c,triggerEvent:t,propsFromTrigger:n})}),0)}function A(e){var t=e;(void 0===t||2!==t.button&&!0!==t.ctrlKey||"contextmenu"===t.type)&&(!function(e){return!(!e||!(In(e)||"exit"in e&&e.exit))}(d)?w((function(e){return{visible:!e.visible&&e.visible}})):w((function(e){return{willLeave:e.visible}})))}(0,Pe.useEffect)((function(){return b.current=!0,Cn.on(i,S).on(0,A),function(){Cn.off(i,S).off(0,A)}}),[i]),(0,Pe.useEffect)((function(){b.current&&h.visible!==_&&(h.visible?m():f())}),[h.visible,f,m]),(0,Pe.useEffect)((function(){h.visible?R.init(Array.from(E.values())):E.clear()}),[h.visible,R,E]),(0,Pe.useEffect)((function(){if(h.visible){var e=window,t=e.innerWidth,n=e.innerHeight,r=y.current,i=r.offsetWidth,o=r.offsetHeight,a=h.x,l=h.y;a+i>t&&(a-=a+i-t),l+o>n&&(l-=l+o-n),w({x:a,y:l})}}),[h.visible]),(0,Pe.useEffect)((function(){function e(e){switch(e.preventDefault(),e.key){case"Enter":R.openSubmenu()||A();break;case"Escape":A();break;case"ArrowUp":R.moveUp();break;case"ArrowDown":R.moveDown();break;case"ArrowRight":R.openSubmenu();break;case"ArrowLeft":R.closeSubmenu()}}return h.visible&&(window.addEventListener("resize",A),window.addEventListener("contextmenu",A),window.addEventListener("click",A),window.addEventListener("scroll",A),window.addEventListener("keydown",e),window.addEventListener("blur",A)),function(){window.removeEventListener("resize",A),window.removeEventListener("contextmenu",A),window.removeEventListener("click",A),window.removeEventListener("scroll",A),window.removeEventListener("keydown",e),window.removeEventListener("blur",A)}}),[h.visible,R]);var O,C,x=h.visible,F=h.triggerEvent,k=h.propsFromTrigger,N=h.x,j=h.y,P=h.willLeave,I=yn("react-contexify",l,((t={})["react-contexify__theme--"+o]=o,t),d?In(d)?yn(((O={})["react-contexify__will-enter--"+d]=d&&x&&!P,O["react-contexify__will-leave--"+d+" react-contexify__will-leave--'disabled'"]=d&&x&&P,O)):"enter"in d&&"exit"in d?yn(((C={})["react-contexify__will-enter--"+d.enter]=d.enter&&x&&!P,C["react-contexify__will-leave--"+d.exit+" react-contexify__will-leave--'disabled'"]=d.exit&&x&&P,C)):null:null),T=_n({},a,{left:N,top:j,opacity:1});return Ie().createElement(An,{refTracker:E},x&&Ie().createElement("div",Object.assign({},g,{className:I,onAnimationEnd:function(){h.willLeave&&h.visible&&w({visible:!1,willLeave:!1})},style:T,ref:y,role:"menu"}),Tn(c,{propsFromTrigger:k,triggerEvent:F})))},Un=function(e){var t,n=e.children,r=e.className,i=e.style,o=e.triggerEvent,a=e.data,l=e.propsFromTrigger,c=e.onClick,s=void 0===c?jn:c,d=e.disabled,u=void 0!==d&&d,f=e.hidden,p=void 0!==f&&f,m=En(e,["children","className","style","triggerEvent","data","propsFromTrigger","onClick","disabled","hidden"]),g=Sn(),v={data:a,triggerEvent:o,props:l},h=Ln(u,v);if(Ln(p,v))return null;var w=yn("react-contexify__item",r,((t={})["react-contexify__item--disabled"]=h,t));return Ie().createElement("div",Object.assign({},m,{className:w,style:i,onClick:function(e){v.event=e,h?e.stopPropagation():s(v)},onKeyDown:function(e){"Enter"===e.key&&(v.event=e,s(v))},ref:function(e){e&&!h&&g.set(e,{node:e,isSubmenu:!1})},tabIndex:-1,role:"menuitem","aria-disabled":h}),Ie().createElement("div",{className:"react-contexify__item__content"},n))};var Mn=function(e){var t,n=e.arrow,r=void 0===n?"▶":n,i=e.children,o=e.disabled,a=void 0!==o&&o,l=e.hidden,c=void 0!==l&&l,s=e.label,d=e.className,u=e.triggerEvent,f=e.propsFromTrigger,p=e.style,m=En(e,["arrow","children","disabled","hidden","label","className","triggerEvent","propsFromTrigger","style"]),g=Sn(),v=xn(),h=(0,Pe.useRef)(null),w=(0,Pe.useState)({left:"100%",top:0,bottom:"initial"}),y=w[0],b=w[1],_={triggerEvent:u,props:f},E=Ln(a,_),R=Ln(c,_);if((0,Pe.useEffect)((function(){if(h.current){var e=window,t=e.innerWidth,n=e.innerHeight,r=h.current.getBoundingClientRect(),i={};r.right<t?(i.left="100%",i.right=void 0):(i.right="100%",i.left=void 0),r.bottom>n?(i.bottom=0,i.top="initial"):i.bottom="initial",b(i)}}),[]),R)return null;var S=yn("react-contexify__item",d,((t={})["react-contexify__item--disabled"]=E,t)),A=_n({},p,y);return Ie().createElement(An,{refTracker:v},Ie().createElement("div",Object.assign({},m,{className:S,ref:function(e){e&&!E&&g.set(e,{node:e,isSubmenu:!0,submenuRefTracker:v})},tabIndex:-1,role:"menuitem","aria-haspopup":!0,"aria-disabled":E}),Ie().createElement("div",{className:"react-contexify__item__content",onClick:function(e){e.stopPropagation()}},s,Ie().createElement("span",{className:"react-contexify__submenu-arrow"},r)),Ie().createElement("div",{className:"react-contexify react-contexify__submenu",ref:h,style:A},Tn(i,{propsFromTrigger:f,triggerEvent:u}))))};function zn(e){return zn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zn(e)}function Kn(e){return function(e){if(Array.isArray(e))return Gn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Vn(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Hn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Wn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hn(Object(n),!0).forEach((function(t){Qn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Qn(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==zn(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==zn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===zn(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return l}}(e,t)||Vn(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vn(e,t){if(e){if("string"==typeof e)return Gn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Gn(e,t):void 0}}function Gn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Jn=React,Yn=Jn.useState,Xn=Jn.useEffect;function Zn(e){var t=e.files,n=e.setFiles,r=e.allFiles,i=e.setAllFiles,o=e.activeAccount,a=e.initFolders,l=qn(Yn(null),2),c=l[0],s=l[1],d=qn(Yn(null),2),u=d[0],f=d[1],p=qn(Yn(null),2),m=p[0],g=p[1],v=qn(Yn([]),2),h=v[0],w=v[1],y=qn(Yn(!1),2),_=y[0],R=y[1],S=t.map((function(e){return e.id})),A=t.map((function(e){return e.parents[0]}));function O(e){return s(e.id),wp.ajax.post("igd_get_files",{data:{folder:e}}).done((function(t){var n=t.files;n=n.filter((function(e){return b(e)})),f((function(t){return Wn(Wn({},t),{},Qn({},e.id,n))}))})).fail((function(e){console.log(e)})).always((function(){s(null)}))}Xn((function(){var e={id:o.root_id,accountId:o.id};O(e).then((function(t){w([e])}))}),[]);var C=!!m&&(S.includes(m.id)||A.includes(m.id));m&&["computers","shared","starred","shared-drives"].includes(m.id)&&(C=!0),m&&o.root_id===m.id&&A.includes(o.root_id)&&(C=!0);var x=E(!1,o);return a&&(x=a.filter((function(e){return b(e)}))),React.createElement("div",{className:"move-folders-wrap"},React.createElement("div",{className:"move-folders"},x.map((function(e){var t=e.id,n=e.name,r=e.iconLink,i=h.find((function(e){return e.id===t})),o=!!m&&m.id===t;return React.createElement(React.Fragment,null,React.createElement("div",{key:t,className:"move-folder ".concat(o?"active":""),onClick:function(){g(o?null:e)}},React.createElement("i",{className:"dashicons dashicons-arrow-".concat(i?"down":"right"),onClick:function(n){n.stopPropagation(),w((function(n){return i?n.filter((function(e){return e.id!==t})):[].concat(Kn(n),[e])})),i||u&&u[t]||O(e)}}),React.createElement("img",{src:r,alt:n}),React.createElement("div",{className:"file-item-checkbox ".concat(o?"checked":"")},React.createElement("span",{className:"box"})),React.createElement("span",null,n),c===t&&React.createElement("div",{className:"igd-spinner"})),i&&React.createElement($n,{folders:u[t]?u[t]:[],childFolders:u,selectedFolder:m,setSelectedFolder:g,getFolders:O,openFolders:h,setOpenFolders:w,loading:c}))}))),React.createElement("button",{disabled:C,type:"button",className:"igd-btn ".concat(C?"disabled":"btn-primary"),onClick:function(){R(!0),wp.ajax.post("igd_move_file",{file_ids:S,folder_id:m.id,account_id:m.accountId}).done((function(e){if(n((function(e){return e.filter((function(e){return!S.includes(e.id)}))})),r[m.id]){var o=[].concat(Kn(r[m.id]),Kn(t));i((function(e){return Wn(Wn({},e),{},Qn({},m.id,o))}))}Swal.fire({title:wp.i18n.__("Success","integrate-google-drive"),text:wp.i18n.__("File(s) moved successfully","integrate-google-drive"),icon:"success",toast:!0,showConfirmButton:!1,timer:2e3,timerProgressBar:!0})})).fail((function(e){console.log(e),Swal.fire({title:wp.i18n.__("Error","integrate-google-drive"),text:wp.i18n.__("Error moving file(s)","integrate-google-drive"),icon:"error",toast:!0,showConfirmButton:!1,timer:3e3,timerProgressBar:!0})})).always((function(){R(!1)}))}},_&&React.createElement("div",{className:"igd-spinner"}),_?wp.i18n.__("Moving...","integrate-google-drive"):wp.i18n.__("Move","integrate-google-drive")))}function $n(e){var t=e.folders,n=e.childFolders,r=e.selectedFolder,i=e.setSelectedFolder,o=e.getFolders,a=e.openFolders,l=e.setOpenFolders,c=e.loading;return t.length?t.map((function(e){var t=a.find((function(t){return t.id===e.id})),s=!!r&&r.id===e.id;return React.createElement("div",{key:e.id,className:"move-folder-wrap"},React.createElement("div",{className:"move-folder ".concat(s?"active":""),onClick:function(){i(s?null:e)}},React.createElement("i",{className:"dashicons dashicons-arrow-".concat(t?"down":"right"),onClick:function(r){r.stopPropagation(),l(t?function(t){return t.filter((function(t){return t.id!==e.id}))}:function(t){return[].concat(Kn(t),[e])}),t||n&&n[e.id]||o(e)}}," "),React.createElement("img",{src:e.iconLink,alt:e.name}),React.createElement("div",{className:"file-item-checkbox ".concat(s?"checked":"")},React.createElement("span",{className:"box"})),React.createElement("span",null,e.name),c===e.id&&React.createElement("div",{className:"igd-spinner"})),t&&n[e.id]&&React.createElement($n,{folders:n[e.id],childFolders:n,getFolders:o,setSelectedFolder:i,selectedFolder:r,openFolders:a,setOpenFolders:l,loading:c}))})):!c&&React.createElement("div",{className:"move-folder-wrap empty"},React.createElement("i",{className:"dashicons dashicons-warning"}),React.createElement("span",null,wp.i18n.__("No folders found!","integrate-google-drive")))}function er(e){return er="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},er(e)}function tr(e){return function(e){if(Array.isArray(e))return lr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ar(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nr(Object(n),!0).forEach((function(t){ir(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ir(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==er(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==er(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===er(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function or(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return l}}(e,t)||ar(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ar(e,t){if(e){if("string"==typeof e)return lr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?lr(e,t):void 0}}function lr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var cr=React,sr=cr.useState,dr=cr.useEffect;function ur(e){var t=e.files,n=e.allFiles,r=e.setAllFiles,i=e.activeAccount,o=e.initFolders,a=or(sr(null),2),l=a[0],c=a[1],s=or(sr(null),2),d=s[0],u=s[1],f=or(sr(null),2),p=f[0],m=f[1],g=or(sr([]),2),v=g[0],h=g[1],w=or(sr(!1),2),y=w[0],_=w[1];function R(e){return c(e.id),wp.ajax.post("igd_get_files",{data:{folder:e}}).done((function(t){var n=t.files;n=n.filter((function(e){return b(e)})),u((function(t){return rr(rr({},t),{},ir({},e.id,n))}))})).fail((function(e){console.log(e)})).always((function(){c(null)}))}dr((function(){var e={id:i.root_id,accountId:i.id};R(e).then((function(t){h([e])}))}),[]);var S=!1;p&&["computers","shared","starred","shared-drives"].includes(p.id)&&(S=!0);var A=E(!1,i);return o&&(A=o.filter((function(e){return b(e)}))),React.createElement("div",{className:"move-folders-wrap"},React.createElement("div",{className:"move-folders"},A.map((function(e){var t=e.id,n=e.name,r=e.iconLink,i=v.find((function(e){return e.id===t})),o=!!p&&p.id===t;return React.createElement(React.Fragment,null,React.createElement("div",{key:t,className:"move-folder ".concat(o?"active":""),onClick:function(){m(o?null:e)}},React.createElement("i",{className:"dashicons dashicons-arrow-".concat(i?"down":"right"),onClick:function(n){n.stopPropagation(),h((function(n){return i?n.filter((function(e){return e.id!==t})):[].concat(tr(n),[e])})),i||d&&d[t]||R(e)}}),React.createElement("img",{src:r,alt:n}),React.createElement("div",{className:"file-item-checkbox ".concat(o?"checked":"")},React.createElement("span",{className:"box"})),React.createElement("span",null,n),l===t&&React.createElement("div",{className:"igd-spinner"})),i&&React.createElement(fr,{folders:d[t]?d[t]:[],childFolders:d,selectedFolder:p,setSelectedFolder:m,getFolders:R,openFolders:v,setOpenFolders:h,loading:l}))}))),React.createElement("button",{disabled:S,type:"button",className:"igd-btn ".concat(S?"disabled":"btn-primary"),onClick:function(){_(!0),wp.ajax.post("igd_copy_file",{files:t,folder_id:p.id}).done((function(e){if(Swal.fire({title:wp.i18n.__("Success","integrate-google-drive"),text:wp.i18n.__("File(s) copied successfully","integrate-google-drive"),icon:"success",toast:!0,showConfirmButton:!1,timer:2e3,timerProgressBar:!0}),n[p.id]){var t=[].concat(tr(n[p.id]),tr(e));r((function(e){return rr(rr({},e),{},ir({},p.id,t))}))}})).fail((function(e){console.log(e),Swal.fire({title:wp.i18n.__("Error","integrate-google-drive"),text:wp.i18n.__("Error copying file(s)","integrate-google-drive"),icon:"error",toast:!0,showConfirmButton:!1,timer:3e3,timerProgressBar:!0})})).always((function(){_(!1)}))}},y&&React.createElement("div",{className:"igd-spinner"}),y?wp.i18n.sprintf(wp.i18n.__("Copying %s files","integrate-google-drive"),t.length):wp.i18n.__("Copy","integrate-google-drive")))}function fr(e){var t=e.folders,n=e.childFolders,r=e.selectedFolder,i=e.setSelectedFolder,o=e.getFolders,a=e.openFolders,l=e.setOpenFolders,c=e.loading;return t.length?t.map((function(e){var t=a.find((function(t){return t.id===e.id})),s=!!r&&r.id===e.id;return React.createElement("div",{key:e.id,className:"move-folder-wrap"},React.createElement("div",{className:"move-folder ".concat(s?"active":""),onClick:function(){i(s?null:e)}},React.createElement("i",{className:"dashicons dashicons-arrow-".concat(t?"down":"right"),onClick:function(r){r.stopPropagation(),l(t?function(t){return t.filter((function(t){return t.id!==e.id}))}:function(t){return[].concat(tr(t),[e])}),t||n&&n[e.id]||o(e)}}," "),React.createElement("img",{src:e.iconLink,alt:e.name}),React.createElement("div",{className:"file-item-checkbox ".concat(s?"checked":"")},React.createElement("span",{className:"box"})),React.createElement("span",null,e.name),c===e.id&&React.createElement("div",{className:"igd-spinner"})),t&&n[e.id]&&React.createElement(fr,{folders:n[e.id],childFolders:n,getFolders:o,setSelectedFolder:i,selectedFolder:r,openFolders:a,setOpenFolders:l,loading:c}))})):!c&&React.createElement("div",{className:"move-folder-wrap empty"},React.createElement("i",{className:"dashicons dashicons-warning"}),React.createElement("span",null,wp.i18n.__("No folders found!","integrate-google-drive")))}function pr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return mr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mr(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var gr=React,vr=gr.useState,hr=gr.useEffect;function wr(e){var t=e.file,n=e.isDirectLink,r=t.id,i=t.name,o=t.accountId,a=t.type;function l(e){var t=jQuery(e.target).parents("#igd-share-modal").find(".share-link input").val();function n(e){var t=document.createElement("textarea");t.value=e,document.body.appendChild(t),t.focus(),t.select(),document.execCommand("Copy"),t.remove()}function r(){Swal.fire({title:wp.i18n.__("Copied","integrate-google-drive"),text:wp.i18n.__("Link copied to clipboard","integrate-google-drive"),icon:"success",showConfirmButton:!1,timer:2e3,timerProgressBar:!0,toast:!0})}navigator.clipboard&&window.isSecureContext?navigator.clipboard.writeText(t).then((function(){r()})).catch((function(){n(t),r()})):(n(t),r())}var c=T(JSON.stringify({id:r,accountId:o,type:a,name:i})),s=n?"".concat(igd.homeUrl,"/?direct_file=").concat(c):null,d=n?"".concat(igd.homeUrl,"/?direct_file=").concat(c,"&embed=1"):null,u=pr(vr(s),2),f=u[0],p=u[1],m=pr(vr(d),2),g=m[0],v=m[1];hr((function(){n||(Swal.showLoading(),wp.ajax.send("igd_get_share_link",{data:{file:t},success:function(e){p(e.viewLink),v(e.embedLink)},error:function(e){console.log(e),Swal.fire({title:wp.i18n.__("Error!","integrate-google-drive"),text:e.message,icon:"error",showConfirmButton:!0,confirmButtonText:wp.i18n.__("OK","integrate-google-drive"),customClass:{container:"igd-swal"}})}}).done((function(){Swal.hideLoading()})))}),[]);var h=pr(vr("link"),2),w=h[0],y=h[1],b=igd.settings.channels,_=void 0===b?["shareLink","embedCode","email"]:b;return f&&React.createElement(React.Fragment,null,React.createElement("div",{className:"share-link"},"link"===w?React.createElement("input",{type:"text",value:f,readOnly:!0,onClick:l}):React.createElement("textarea",{readOnly:!0,onClick:function(){document.querySelector(".share-link textarea").select(),document.execCommand("copy"),setTimeout((function(){Swal.fire({title:wp.i18n.__("Copied!","integrate-google-drive"),text:wp.i18n.__("Embed code copied to clipboard.","integrate-google-drive"),icon:"success",showConfirmButton:!1,timer:2e3,timerProgressBar:!0,toast:!0})}),500)}},'<iframe src="'.concat(g,'" width="100%" height="480" frameBorder="0" allowTransparency="true" allow="encrypted-media" frameborder="0" allowfullscreen="true" mozallowfullscreen="true" webkitallowfullscreen="true"></iframe>'))),React.createElement("div",{className:"share-links"},_.includes("shareLink")&&React.createElement("div",{className:"share-item link",onClick:function(e){y("link"),l(e)}},React.createElement("i",{className:"dashicons dashicons-admin-links"}),React.createElement("span",null,wp.i18n.__("Copy Link","integrate-google-drive"))),_.includes("embedCode")&&React.createElement("div",{className:"share-item embed",onClick:function(){return y("embed")}},React.createElement("i",{className:"dashicons dashicons-editor-code"}),React.createElement("span",null,wp.i18n.__("Embed","integrate-google-drive"))),_.includes("email")&&React.createElement("a",{className:"share-item email",href:"mailto:?subject=".concat(i,"&body=").concat(f),onClick:function(){return y("link")}},React.createElement("i",{className:"dashicons dashicons-email"}),React.createElement("span",null,wp.i18n.__("Email","integrate-google-drive"))),_.includes("facebook")&&React.createElement("a",{className:"share-item facebook",href:"https://www.facebook.com/sharer/sharer.php?u=".concat(f),target:"_blank",onClick:function(){return y("link")}},React.createElement("i",{className:"dashicons dashicons-facebook"}),React.createElement("span",null,wp.i18n.__("Facebook","integrate-google-drive"))),_.includes("twitter")&&React.createElement("a",{className:"share-item twitter",href:"https://twitter.com/intent/tweet?text=".concat(i,"&url=").concat(f),target:"_blank",onClick:function(){return y("link")}},React.createElement("i",{className:"dashicons dashicons-twitter"}),React.createElement("span",null,wp.i18n.__("Twitter","integrate-google-drive"))),_.includes("whatsapp")&&React.createElement("a",{className:"share-item whatsapp",href:"https://wa.me/?text=".concat(f),target:"_blank",onClick:function(){return y("link")}},React.createElement("i",{className:"dashicons dashicons-whatsapp"}),React.createElement("span",null,wp.i18n.__("WhatsApp","integrate-google-drive")))))}var yr=React,br=yr.useEffect,_r=yr.useRef,Er=ReactDOM.createPortal;const Rr=function(e){var t=e.children,n=_r(document.createElement("div"));return br((function(){return document.body.appendChild(n.current),function(){return document.body.removeChild(n.current)}}),[]),Er(t,n.current)};function Sr(e){return Sr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sr(e)}function Ar(e){return function(e){if(Array.isArray(e))return Or(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Or(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Or(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Or(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Cr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cr(Object(n),!0).forEach((function(t){Fr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Fr(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Sr(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Sr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Sr(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var kr=React.useContext;function Nr(){var e=kr(t),n=e.activeAccount,r=e.getFiles,i=e.activeFiles,o=e.setActiveFiles,a=e.activeFile,l=e.activeFolder,c=e.permissions,s=e.notifications,d=e.shortcodeBuilderType,u=e.isOptions,f=e.setIsOptions,p=e.isList,m=e.setIsList,g=e.setShowDetails,v=e.setIsUpload,h=e.isShortcodeBuilder,w=e.contextMenuId,_=e.selectAll,E=e.setSelectAll,R=e.files,S=e.setFiles,A=e.setAllFiles,O=e.allFiles,C=e.initFolders,F=e.initParentFolder,k="search"===d,j="gallery"===d,I="uploader"===d,L=a&&l&&a.id===l.id,B=function(){return L||!a||b(a)?1!==i.length||b(i[0])?u?i:[a]:[i[0]]:[a]},D=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=e?wp.i18n.__("Direct Link","integrate-google-drive"):wp.i18n.__("Share","integrate-google-drive");Swal.fire({title:t,html:'<div id="igd-share-modal"></div>',didOpen:function(){var t=document.getElementById("igd-share-modal");ReactDOM.render(React.createElement(wr,{file:a,isDirectLink:e}),t)},showCloseButton:!0,showConfirmButton:!1,showCancelButton:!1,customClass:{container:"igd-swal share-modal"}})},M=a&&a.permissions?a.permissions:{},z=!!M.canEdit,K=!!M.canPreview,H=!!M.canRename;c&&(c.refresh=!0,c.selectAll=c.download&&c.zipDownload);var W=[{key:"doc",title:wp.i18n.__("Google Doc","integrate-google-drive"),icon:"dashicons-media-document"},{key:"sheet",title:wp.i18n.__("Google Sheet","integrate-google-drive"),icon:"dashicons-media-spreadsheet"},{key:"slide",title:wp.i18n.__("Google Slide","integrate-google-drive"),icon:"dashicons-media-interactive"}],Q=[{key:"refresh",title:wp.i18n.__("Refresh","integrate-google-drive"),icon:"dashicons-update-alt"},{key:"newFolder",title:wp.i18n.__("New Folder","integrate-google-drive"),icon:"dashicons-open-folder"},{key:"createDoc",title:wp.i18n.__("Create Document","integrate-google-drive"),icon:"dashicons-welcome-add-page"},{key:"upload",title:wp.i18n.__("Upload Files","integrate-google-drive"),icon:"dashicons-cloud-upload"},{key:"preview",title:c&&!1===c.inlinePreview?wp.i18n.__("Preview in a new window","integrate-google-drive"):wp.i18n.__("Preview","integrate-google-drive"),icon:"dashicons-visibility"},{key:"drive",title:wp.i18n.__("Open in Google Drive","integrate-google-drive"),icon:"dashicons-admin-links"},{key:"details",title:wp.i18n.__("View Details","integrate-google-drive"),icon:"dashicons-info-outline"},{key:"directLink",title:wp.i18n.__("Direct Link","integrate-google-drive"),icon:"dashicons-admin-links"},{key:"share",title:wp.i18n.__("Share","integrate-google-drive"),icon:"dashicons-share"},{key:"selectAll",title:_?wp.i18n.__("Deselect All","integrate-google-drive"):wp.i18n.__("Select All","integrate-google-drive"),icon:"dashicons-screenoptions"},{key:"edit",title:wp.i18n.__("Edit (New Window)","integrate-google-drive"),icon:"dashicons-edit-page"},{key:"download",title:wp.i18n.__("Download","integrate-google-drive")+"".concat(u&&i.length>1?" (".concat(i.length,")"):""),icon:"dashicons-download"},{key:"import",title:wp.i18n.__("Import to Media","integrate-google-drive")+"".concat(u&&i.length>1?" (".concat(i.length,")"):""),icon:"dashicons-migrate"},{key:"move",title:wp.i18n.__("Move","integrate-google-drive")+"".concat(u&&i.length>1?" (".concat(i.length,")"):""),icon:"dashicons-editor-break"},{key:"rename",title:wp.i18n.__("Rename","integrate-google-drive"),icon:"dashicons-edit"},{key:"copy",title:wp.i18n.__("Copy","integrate-google-drive")+"".concat(u&&i.length>1?" (".concat(i.length,")"):""),icon:"dashicons-admin-page"},{key:"delete",title:wp.i18n.__("Delete","integrate-google-drive")+"".concat(u&&i.length>1?" (".concat(i.length,")"):""),icon:"dashicons-trash"},{key:"view",title:p?wp.i18n.__("Grid View","integrate-google-drive"):wp.i18n.__("List View","integrate-google-drive"),icon:p?"dashicons-grid-view":"dashicons-list-view"}].filter((function(e){var t=e.key;if((!h||["view","selectAll"].includes(t))&&(!k||["preview","download","view"].includes(t))&&("drive"!==t||!u&&!C)&&(!c||c[t])&&("view"!==t||(!j||h)&&u)&&("edit"!==t||z)&&(!["share","directLink","details"].includes(t)||a)&&("selectAll"!==t||R.length&&u&&!I)&&("preview"!==t||!(!a&&(1!==i.length||b(i[0]))||a&&(!K||b(a))||u&&(1!==i.length||b(i[0]))))&&("copy"!==t||!(u&&!i.length||!u&&a&&b(a)||u&&i.length&&i.some((function(e){return b(e)}))))&&("move"!==t||!u||i.length)&&("import"!==t||!(u&&(!i.length||i.some((function(e){return b(e)})))||a&&b(a)))&&("rename"!==t||!u||!(i.length>1)&&H)&&("delete"!==t||!u||i.length)&&("download"!==t||(a||i.length)&&(!a||a.permissions&&(b(a)||a.permissions.canDownload)))&&(L||l&&u&&!a&&!i.length||!["refresh","newFolder","upload","createDoc"].includes(t))&&(!(u&&l&&n.root_id!==l.id&&x(l.id,n))||["view"].includes(t))&&(!L||i.length||u||["refresh","newFolder","upload","createDoc"].includes(t)))return!0}));return Q.length||!c||c.view||f(null),React.createElement(Rr,null,React.createElement(Dn,{id:w,className:"igd-context-menu",animation:Nn.fade},Q.map((function(e){var t=e.key,d=e.title,h=e.icon;return React.createElement(Un,{key:t,onClick:function(e){e.data;var d=e.event;e.triggerEvent;if(f(!1),"newFolder"===t)return o([]),void Swal.fire({title:wp.i18n.__("New Folder","integrate-google-drive"),text:wp.i18n.__("Enter new folder name","integrate-google-drive"),input:"text",inputValue:"",inputAttributes:{autocapitalize:"off"},showCancelButton:!1,confirmButtonText:wp.i18n.__("Create","integrate-google-drive"),showLoaderOnConfirm:!0,showCloseButton:!0,customClass:{container:"igd-swal"},preConfirm:function(e){return e?wp.ajax.post("igd_new_folder",{name:e,parent_id:l.id,account_id:l.accountId}).done((function(e){var t=[].concat(Ar(R),[e]);S(t),A((function(e){return xr(xr({},e),{},Fr({},l.id,t))})),Swal.close(),Swal.fire({title:"Created!",text:"Folder has been created.",icon:"success",showConfirmButton:!1,timer:2e3,timerProgressBar:!0,toast:!0})})).fail((function(e){Swal.fire({title:"Error!",text:e.message,icon:"error",showConfirmButton:!0,confirmButtonText:"OK",customClass:{container:"igd-swal"}})})):Swal.showValidationMessage(wp.i18n.__("Please enter a name","integrate-google-drive"))}});if("refresh"!==t)if("upload"!==t)if("edit"!==t)if("share"!==t)if("directLink"!==t)if("preview"!==t)if("drive"!==t)if("download"!==t)if("rename"!==t)if("move"!==t){var h,w;if("copy"!==t)return"import"===t?igd.isPro?void function(){var e=u?i.filter((function(e){return!b(e)})):[a].filter((function(e){return!b(e)}));Swal.fire({title:"Importing ".concat(e.length," files"),text:wp.i18n.__("Please wait...","integrate-google-drive"),icon:"info",showConfirmButton:!1,allowEscapeKey:!1,allowEnterKey:!1,allowOutsideClick:!1,customClass:{container:"igd-swal"},didOpen:function(){Swal.showLoading(),wp.ajax.send("igd_import_media",{data:{files:e},success:function(e){console.log(e)},error:function(e){console.log(e)},complete:function(){Swal.fire({title:wp.i18n.__("Imported!","integrate-google-drive"),text:wp.i18n.__("File(s) have been imported.","integrate-google-drive"),icon:"success",showConfirmButton:!1,timer:2e3,timerProgressBar:!0,toast:!0,customClass:{container:"igd-swal"}})}})}})}():void N(wp.i18n.__("Upgrade to PRO to import cloud files to the Media Library.","integrate-google-drive")):"delete"===t?(h=u?i.map((function(e){return e.id})):[a.id],w=u?i[0].accountId:a.accountId,void Swal.fire({title:wp.i18n.__("Are you sure?","integrate-google-drive"),text:wp.i18n.__("You won't be able to revert this!","integrate-google-drive"),icon:"warning",showCancelButton:!0,customClass:{container:"igd-swal"},confirmButtonText:wp.i18n.__("Yes, delete it!","integrate-google-drive"),cancelButtonText:wp.i18n.__("No, cancel!","integrate-google-drive"),reverseButtons:!0,showLoaderOnConfirm:!0,preConfirm:function(){return wp.ajax.post("igd_delete_files",{file_ids:h,account_id:w})}}).then((function(e){if(e.isConfirmed){s&&s.deleteNotification&&wp.ajax.post("igd_notification",{files:B(),notifications:s,type:"delete"});var t=R.filter((function(e){return!h.includes(e.id)}));S(t),A((function(e){return xr(xr({},e),{},Fr({},l.id,t))})),Swal.fire({title:wp.i18n.__("Deleted!","integrate-google-drive"),text:wp.i18n.sprintf(wp.i18n._n("File has been deleted.","%d files have been deleted.",i.length,"integrate-google-drive"),i.length),icon:"success",showConfirmButton:!1,timer:1500,timerProgressBar:!0,toast:!0,customClass:{container:"igd-swal"}})}}))):"view"===t?(m(!p),void function(e,t,n){var r=U(t,n);localStorage.setItem("igd_listing_view_".concat(r),e)}(p?"grid":"list",C,F)):"details"===t?(g(!0),void localStorage.setItem("igd_show_details",1)):void("selectAll"!==t||E((function(e){return!e})));Swal.fire({title:wp.i18n.__("Copy","integrate-google-drive"),text:wp.i18n.__("Select destination","integrate-google-drive"),html:'<div id="igd-copy"></div>',showCancelButton:!1,showConfirmButton:!1,showCloseButton:!0,customClass:{container:"igd-swal igd-copy-swal"},didOpen:function(e){ReactDOM.render(React.createElement(ur,{files:u?i:[a],allFiles:O,setAllFiles:A,activeAccount:n,initFolders:C}),document.getElementById("igd-copy"))},willClose:function(){ReactDOM.unmountComponentAtNode(document.getElementById("igd-copy"))}})}else Swal.fire({title:wp.i18n.__("Move","integrate-google-drive"),text:wp.i18n.__("Select destination","integrate-google-drive"),html:'<div id="igd-move"></div>',showCancelButton:!1,showConfirmButton:!1,showCloseButton:!0,customClass:{container:"igd-swal igd-move-swal"},didOpen:function(e){var t=document.getElementById("igd-move");ReactDOM.render(React.createElement(Zn,{files:u?i:[a],setFiles:S,allFiles:O,setAllFiles:A,activeAccount:n,initFolders:C}),t)},willClose:function(){var e=document.getElementById("igd-move");ReactDOM.unmountComponentAtNode(e)}});else Swal.fire({title:wp.i18n.__("Rename","integrate-google-drive"),text:wp.i18n.__("Enter new name","integrate-google-drive"),input:"text",inputValue:a.name,inputAttributes:{autocapitalize:"off"},showCancelButton:!1,confirmButtonText:wp.i18n.__("Rename","integrate-google-drive"),showLoaderOnConfirm:!0,showCloseButton:!0,customClass:{container:"igd-swal"},preConfirm:function(e){return e?wp.ajax.post("igd_rename_file",{name:e,id:a.id,accountId:a.accountId}).done((function(){var t=R.map((function(t){return t.id===a.id?xr(xr({},t),{},{name:e}):t}));S(t),A((function(e){return xr(xr({},e),{},Fr({},l.id,t))})),Swal.close(),Swal.fire({title:wp.i18n.__("Renamed!","integrate-google-drive"),text:wp.i18n.__("File has been renamed.","integrate-google-drive"),icon:"success",showConfirmButton:!1,timer:2e3,timerProgressBar:!0,toast:!0,customClass:{container:"igd-swal"}})})).fail((function(e){Swal.fire({title:wp.i18n.__("Error!","integrate-google-drive"),text:e.message,icon:"error",showConfirmButton:!0,confirmButtonText:wp.i18n.__("OK","integrate-google-drive"),customClass:{container:"igd-swal"}})})):Swal.showValidationMessage(wp.i18n.__("Please enter a name","integrate-google-drive"))}});else{if(a&&a.exportAs&&Object.keys(a.exportAs).length)return;if(L||!a||b(a))if(1!==i.length||b(i[0]))!function(){var e=(new Date).getTime(),t=u?i.map((function(e){return e.id})):[a.id],n=u?i[0].accountId:a.accountId,r="".concat(igd.ajaxUrl,"?action=igd_download_zip&file_ids=").concat(T(JSON.stringify(t)),"&id=").concat(e,"&accountId=").concat(n);Swal.fire({title:wp.i18n.__("Download","integrate-google-drive"),html:'<div class="igd-download-wrap"><div id="igd-download-status"></div><div id="igd-download-progress"></div><iframe id="igd-hidden-download" class="igd-hidden" src="'.concat(r,'" ></iframe></div>'),showCancelButton:!1,showConfirmButton:!1,showCloseButton:!0,allowOutsideClick:!1,allowEscapeKey:!1,allowEnterKey:!1,customClass:{container:"igd-swal igd-download-popup"},didOpen:function(){Swal.showLoading();var t=jQuery("#igd-download-status"),n=jQuery("#igd-download-progress");window.downloadStatusInterval=setInterval((function(){wp.ajax.send("igd_download_status",{data:{id:e},success:function(e){if(!document.getElementById("igd-hidden-download"))return clearInterval(window.downloadStatusInterval),void Swal.close();if(!e)return clearInterval(window.downloadStatusInterval),Swal.close(),void Swal.fire({title:wp.i18n.__("Completed!","integrate-google-drive"),text:wp.i18n.__("Download completed","integrate-google-drive"),icon:"success",showConfirmButton:!1,toast:!0,timer:2e3,timerProgressBar:!0,customClass:{container:"igd-swal"}});var r=e.status,i=e.total,o=e.downloaded,a=e.action;"failed"===a?(clearInterval(window.downloadStatusInterval),Swal.close(),Swal.fire({title:wp.i18n.__("Error!","integrate-google-drive"),text:r,icon:"error",showConfirmButton:!0,confirmButtonText:wp.i18n.__("OK","integrate-google-drive"),customClass:{container:"igd-swal"}})):(t.html(r),"downloading"===a&&n.html("".concat(y(o)," of ").concat(y(i)," - ").concat(Math.round(o/i*100),"%")))},error:function(e){clearInterval(window.downloadStatusInterval),Swal.close(),Swal.fire({title:wp.i18n.__("Error!","integrate-google-drive"),text:e.message,icon:"error",showConfirmButton:!0,confirmButtonText:wp.i18n.__("OK","integrate-google-drive"),customClass:{container:"igd-swal"}})}})}),1e3)},willClose:function(){clearInterval(window.downloadStatusInterval)}})}();else{var _="".concat(igd.ajaxUrl,"?action=igd_download&id=").concat(i[0].id,"&accountId=").concat(i[0].accountId);window.location.href=_}else{var x="".concat(igd.ajaxUrl,"?action=igd_download&id=").concat(a.id,"&accountId=").concat(a.accountId);window.location.href=x}s&&s.downloadNotification&&wp.ajax.post("igd_notification",{files:B(),notifications:s,type:"download"})}else{var k=a||i[0];window.open(k.webViewLink,"_blank").focus()}else{var j=a||i[0];P(d,j.id,[j],c,s)}else D(!0);else D();else window.open(a.webViewLink,"_blank").focus();else v(!0);else r(l,"refresh")},data:{action:t},className:"context-menu-item ".concat(t," ").concat(["import"].includes(t)&&!igd.isPro?"disabled":"")},"createDoc"===t?React.createElement(Mn,{className:"context-submenu",label:React.createElement("div",{className:"context-submenu-label"},React.createElement("i",{className:"dashicons ".concat(h)}),React.createElement("span",null,d)),arrow:React.createElement("i",{className:"dashicons dashicons-arrow-right"})},W.map((function(e){var t=e.key,n=e.title,r=e.icon;return React.createElement(Un,{key:t,onClick:function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"doc",t=wp.i18n.__("New Document","integrate-google-drive"),n=wp.i18n.__("Enter document name","integrate-google-drive");"sheet"===e?(t=wp.i18n.__("New Spreadsheet","integrate-google-drive"),n=wp.i18n.__("Enter spreadsheet name","integrate-google-drive")):"slide"===e&&(t=wp.i18n.__("New Presentation","integrate-google-drive"),n=wp.i18n.__("Enter presentation name","integrate-google-drive")),Swal.fire({title:t,text:n,input:"text",inputValue:"",inputAttributes:{autocapitalize:"off"},showCancelButton:!1,confirmButtonText:wp.i18n.__("Create","integrate-google-drive"),showLoaderOnConfirm:!0,showCloseButton:!0,customClass:{container:"igd-swal"},preConfirm:function(t){return t?wp.ajax.post("igd_create_doc",{name:t,type:e,folder_id:l.id,account_id:l.accountId}).done((function(t){var n=[].concat(Ar(R),[t]);S(n),A((function(e){return xr(xr({},e),{},Fr({},l.id,n))})),Swal.close();var r=wp.i18n.__("Document created","integrate-google-drive"),i=wp.i18n.__("Document created successfully","integrate-google-drive");"sheet"===e?(r=wp.i18n.__("Spreadsheet created","integrate-google-drive"),i=wp.i18n.__("Spreadsheet created successfully","integrate-google-drive")):"slide"===e&&(r=wp.i18n.__("Presentation created","integrate-google-drive"),i=wp.i18n.__("Presentation created successfully","integrate-google-drive")),Swal.fire({title:r,text:i,icon:"success",showConfirmButton:!1,timer:2e3,timerProgressBar:!0,toast:!0})})).fail((function(e){console.log(e),Swal.fire({title:wp.i18n.__("Error!","integrate-google-drive"),text:e.message,icon:"error",showConfirmButton:!0,confirmButtonText:wp.i18n.__("OK","integrate-google-drive"),customClass:{container:"igd-swal"}})})):Swal.showValidationMessage(wp.i18n.__("Please enter a name","integrate-google-drive"))}})}(t)},className:"context-menu-item ".concat(t)},React.createElement("i",{className:"dashicons ".concat(r)}),React.createElement("span",null,n))}))):"download"===t&&a&&a.exportAs&&Object.keys(a.exportAs).length?React.createElement(Mn,{className:"context-submenu",label:React.createElement("div",{className:"context-submenu-label"},React.createElement("i",{className:"dashicons ".concat(h)}),React.createElement("span",null,wp.i18n.__("Download as","integrate-google-drive"))),arrow:React.createElement("i",{className:"dashicons dashicons-arrow-right"})},Object.keys(a.exportAs).map((function(e){return React.createElement(Un,{key:e,className:"context-menu-item ".concat(e),onClick:function(){return function(e){var t=a.exportAs[e].mimetype;window.location.href="".concat(igd.ajaxUrl,"?action=igd_download&id=").concat(a.id,"&accountId=").concat(a.accountId,"&mimetype=").concat(t)}(e)}},React.createElement("i",{className:"dashicons dashicons-media-text"}),React.createElement("span",null,e))}))):React.createElement(React.Fragment,null,React.createElement("i",{className:"dashicons ".concat(h)}),React.createElement("span",null,d),["import"].includes(t)&&!igd.isPro&&React.createElement("div",{className:"pro-badge"},React.createElement("i",{className:"dashicons dashicons-lock"}),React.createElement("span",null,wp.i18n.__("PRO","integrate-google-drive")))))}))))}function jr(){return React.createElement("div",{className:"no-account-placeholder"},React.createElement("img",{src:"".concat(igd.pluginUrl,"/assets/images/file-browser/no-account-placeholder.svg"),alt:"No Accounts"}),React.createElement("span",{className:"placeholder-heading"},wp.i18n.__("You didn't link any account yet.","integrate-google-drive")),React.createElement("span",{className:"placeholder-description"},wp.i18n.__("Please link to a Google Drive account to continue.","integrate-google-drive")),React.createElement("button",{className:"igd-btn add-account-btn",onClick:function(){igd.authUrl?B():window.location=igd.adminUrl+"/admin.php?page=integrate-google-drive-settings&tab=accounts"}},React.createElement("img",{src:"".concat(igd.pluginUrl,"/assets/images/google-icon.png")}),React.createElement("span",null,wp.i18n.__("Sign in with Google","integrate-google-drive"))))}function Pr(e){return Pr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pr(e)}function Ir(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Tr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ir(Object(n),!0).forEach((function(t){Br(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ir(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Lr(e){return function(e){if(Array.isArray(e))return Mr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ur(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Br(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Pr(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Pr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Pr(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return l}}(e,t)||Ur(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ur(e,t){if(e){if("string"==typeof e)return Mr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Mr(e,t):void 0}}function Mr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var zr=React,Kr=zr.useState,Hr=zr.useEffect,Wr=zr.useMemo,Qr=zr.useRef,qr=igd.settings.rememberLastFolder,Vr=void 0===qr||qr;function Gr(e){var t=e.shortcodeId,n=e.initParentFolder,i=e.isShortcodeBuilder,o=e.selectedFolders,a=e.setSelectedFolders,l=e.allFolders,c=e.privateFolders,s=e.initFolders,d=e.filters,u=e.shortcodeBuilderType,f=e.isList,p=e.showLastModified,m=void 0===p?!u:p,g=e.showFileSizeField,v=void 0===g||g,h=e.fileNumbers,w=e.sort,y=e.permissions,_=e.notifications,R=e.showHeader,O=void 0===R?i||!u:R,F=e.showRefresh,k=void 0===F||F,N=e.showSorting,P=void 0===N||N,I=e.showBreadcrumbs,T=void 0===I||I,L=e.galleryLayout,B=e.galleryAspectRatio,K=e.galleryColumns,W=e.galleryHeight,Q=e.galleryMargin,q=e.galleryView,V=e.galleryFolderView,G=e.thumbnailCaption,J=e.galleryOverlay,Y=e.galleryOverlayTitle,X=e.galleryOverlayDescription,Z=e.galleryOverlaySize,$=e.galleryImageSize,ee=e.galleryCustomSizeWidth,te=e.galleryCustomSizeHeight,ne=e.isSelectFiles,re=e.selectionType,ie=e.initialSearchTerm,oe=e.isLMS,ae=e.isWooCommerce,le=e.lazyLoad,ce=void 0===le||le,de=e.lazyLoadNumber,ue=void 0===de?100:de,fe=e.account,pe=void 0===fe?igd.activeAccount:fe;!s&&igd.userAccessData&&(n=igd.userAccessData.initParentFolder,s=igd.userAccessData.initFolders);var me=null;Vr&&(me=function(e,t){var n=null,r=document.body.classList.contains("elementor-editor-active"),i=document.body.classList.contains("et-fb"),o=document.body.classList.contains("block-editor-page");if(r||i||o)return n;var a=D(e,t),l=sessionStorage.getItem(a);return l&&(n=JSON.parse(l)).id===(null==t?void 0:t.id)&&(n=null),n}(s,n));var ge,ve="search"===u&&!i,he="gallery"===u,ye="media"===u,be="uploader"===u,_e=Dr(Kr(pe),2),Ee=_e[0],Re=_e[1],Se=Dr(Kr(!ve&&s?s:[]),2),Ae=Se[0],Oe=Se[1],Ce=[];!ve&&s&&(Ce=Br({},(null===(ge=n)||void 0===ge?void 0:ge.id)||"",s));var xe=Dr(Kr(Ce),2),Fe=xe[0],ke=xe[1],Ne=Dr(Kr([]),2),je=Ne[0],Pe=Ne[1],Ie=Dr(Kr(null),2),Te=Ie[0],Le=Ie[1],Be=Dr(Kr(!s&&!n&&!ve),2),De=Be[0],Ue=Be[1],Me=Dr(Kr({}),2),ze=Me[0],Ke=Me[1],He=Dr(Kr(!1),2),We=He[0],Qe=He[1],qe=Dr(Kr(!1),2),Ve=qe[0],Ge=qe[1],Je=Dr(Kr(window.innerWidth<=768),2),Ye=Je[0],Xe=Je[1],Ze=Dr(Kr(!Ye&&!i&&!s),2),$e=Ze[0],et=Ze[1],tt=Dr(Kr(!1),2),nt=tt[0],rt=tt[1],it=Dr(Kr(!1),2),ot=it[0],at=it[1],lt=Qr(ie),ct=Dr(Kr(ie),2),st=ct[0],dt=ct[1],ut=!Ye&&"1"==localStorage.getItem("igd_show_details")&&!s,ft=Dr(Kr(ut),2),pt=ft[0],mt=ft[1],gt=null;s?n&&(gt=n):gt=E(Ee.root_id,Ee),me&&(gt=me);var vt=Dr(Kr(gt),2),ht=vt[0],wt=vt[1],yt=localStorage.getItem("igd_sort")?JSON.parse(localStorage.getItem("igd_sort")):{sortBy:"name",sortDirection:"asc"},bt=Dr(Kr(null!=w?w:yt),2),_t=bt[0],Et=bt[1],Rt=function(e,t){var n=U(e,t);return localStorage.getItem("igd_listing_view_".concat(n))}(s,n);Rt&&(f="list"===Rt);var St=Dr(Kr(f),2),At=St[0],Ot=St[1],Ct=j();Hr((function(){Object.keys(igd.accounts).length&&(y&&y.allowSearch&&ie?Pt(ie):ve&&!i||(s||n?Vr&&me&&Nt(me,"last"):Nt()))}),[]),Hr((function(){if(Ct){Ue("switch"),ke({});var e={id:Ee.root_id,accountId:Ee.id,name:wp.i18n.__("My Drive","integrate-google-drive")};igd.activeAccount=Ee,wp.ajax.post("igd_switch_account",{id:Ee.id}).done((function(){Nt(e,"switch")})).fail((function(e){console.log(e)}))}}),[Ee]),Hr((function(){Ct&&(localStorage.setItem("igd_sort",JSON.stringify(_t)),Nt(ht,"sort"))}),[_t]),Hr((function(){var e=function(){Xe(window.innerWidth<768)};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[]),Hr((function(){Ct&&n.id&&n.id!==(null==ht?void 0:ht.id)&&jt(n)}),[n]);var xt=Dr(Kr(!1),2),Ft=xt[0],kt=xt[1];function Nt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(Le(null),Pe([]),Qe(!1),Ue(t||!0),s){if(!e)return Ue(!1),wt(null),void Oe(s);c?e.isPrivate=!0:ve&&(e.folders=s)}else e||me&&me.accountId===Ee.id&&(e=me),e||(e=i?{id:Ee.root_id,accountId:Ee.id}:E(Ee.root_id,Ee));"lazy"!==t&&(e.pageNumber=1),wp.ajax.post("igd_get_files",{data:{folder:e,sort:_t,refresh:"refresh"===t,from_server:i||!!s&&!!n&&n.id===e.id,fileNumbers:h,limit:ce?ue:0,filters:d}}).done((function(r){var i=r.files,o=void 0===i?[]:i,a=r.breadcrumbs,l=r.error,c=r.nextPageNumber,d=void 0===c?0:c;if(l)"refresh"!==t&&Swal.fire({html:l,icon:"error",confirmButtonText:wp.i18n.__("Ok","integrate-google-drive"),customClass:{container:"igd-swal"}});else{o.length&&Vr&&M(e,s,n),!o.length&&Vr&&z(s,n),"lazy"===t&&ht&&ht.id===e.id&&(o=[].concat(Lr(Ae),Lr(o))),be&&(o=o.filter((function(e){return b(e)}))),ye&&(o=o.filter((function(e){return S(e)||b(e)}))),oe&&(o=o.filter((function(e){return A(e)||b(e)}))),he&&(o=o.filter((function(e){return C(e)||A(e)||b(e)}))),Oe(o);var u=Tr(Tr({},e),{},{pageNumber:d});ke((function(t){return Tr(Tr({},t),{},Br({},e.id,[].concat(Lr(o),[u])))})),wt(u),a&&Ke(a)}})).fail((function(t){console.log(t),wt(Tr(Tr({},e),{},{pageNumber:0})),Swal.fire({title:wp.i18n.__("Error!","integrate-google-drive"),text:wp.i18n.__("Something went wrong! Please try again later.","integrate-google-drive"),icon:"error",confirmButtonText:wp.i18n.__("Ok","integrate-google-drive"),customClass:{container:"igd-swal"}})})).always((function(){return Ue(!1)}))}function jt(e){var t=e.id;if(Le(null),Pe([]),Qe(!1),Fe[t]){var r=Fe[t];e=r.find((function(t){return t.id===e.id}))||e,wt(e),Oe(r.filter((function(e){return e.id!==t}))),Vr&&M(ht,s,n),Ke(function e(t){if(x(t,Ee)){var n=E(t,Ee);return Br({},t,n.name)}var i=Object.keys(ze),o=r.find((function(e){return e.id===t}));if(o){var a=Br({},t,o.name),l=o.parents||[];return!l.length||s&&s.find((function(e){return e.id===t}))?a:Tr(Tr({},e(l[0])),a)}if(i.includes(t)){var c=i.indexOf(t);return Object.fromEntries(i.slice(0,c+1).map((function(e){return[e,ze[e]]})))}return{}}(t))}else Nt(e);!s&&igd.showReviewPopup&&setTimeout((function(){!function(){H.apply(this,arguments)}()}),5e3)}function Pt(e){Qe(!0),lt.current=e;var t=ht?[ht]:s;Ue(!0),Le(null),Pe([]),Ge(!1),wp.ajax.post("igd_search_files",{folders:t,sort:_t,fileNumbers:h,keyword:e,accountId:Ee.id,isPrivate:c,fullTextSearch:null==y?void 0:y.fullTextSearch,filters:d}).done((function(t){var n=t.files,r=t.error;if(r)Swal.fire({html:r,icon:"error",confirmButtonText:wp.i18n.__("Ok","integrate-google-drive"),customClass:{container:"igd-swal"}});else{if(s){var i=s.filter((function(t){return t.name.toLowerCase().includes(e.toLowerCase())}));n=[].concat(Lr(i),Lr(n))}ye&&(n=n.filter((function(e){return S(e)||b(e)}))),oe&&(n=n.filter((function(e){return A(e)||b(e)}))),he&&(n=n.filter((function(e){return C(e)||A(e)||b(e)})));var o=new Set;n=n.filter((function(e){return!o.has(e.id)&&(o.add(e.id),!0)})),Oe(n)}})).fail((function(e){console.log(e),Swal.fire({title:wp.i18n.__("Error!","integrate-google-drive"),text:wp.i18n.__("Something went wrong! Please try again later.","integrate-google-drive"),icon:"error",confirmButtonText:"Ok",customClass:{container:"igd-swal"}})})).always((function(){Ue(!1)})),_&&_.searchNotification&&wp.ajax.post("igd_notification",{files:t,keyword:e,notifications:_,type:"search"})}Hr((function(){!Ft||(null==ht?void 0:ht.pageNumber)>1||(console.log("Refresh files on image load fail"),Nt(ht,"refresh"))}),[Ft]),Hr((function(){if(s&&ze){var e=Object.keys(ze),t=ht&&ht.id?ht.id:ht,r=!!e&&e.findIndex((function(e){return e===t}));if(n&&(e.find((function(e){return e===n.id}))&&delete ze[n.id],e[e.length-1]===n.id&&Ke({})),-1!==r)for(var i=function(t){if(s.find((function(n){return n.id===e[t]})))return"break";delete ze[e[t]]},o=0;o<r;o++){if("break"===i(o))break}}}),[ze]),Hr((function(){if(Ct)if(i){var e;if(ot){var t=[].concat(Lr(o),Lr(Ae)),n=new Set;e=t.filter((function(e){return!n.has(e.id)&&(n.add(e.id),!0)}))}else e=o.filter((function(e){return!Ae.some((function(t){return t.id===e.id}))}));a(e)}else he||i||Pe(ot?Ae:[])}),[ot]),Hr((function(){Ct&&(at(!1),Pe([]),Qe(!1))}),[ht]);var It,Tt=Wr((function(){return"igd-context-menu-".concat(Date.now())}),[]),Lt=(It={id:Tt},{show:function(e,t){Fn.show({id:(null==t?void 0:t.id)||(null==It?void 0:It.id),props:(null==t?void 0:t.props)||(null==It?void 0:It.props),event:e,position:null==t?void 0:t.position})},hideAll:function(){Fn.hideAll()}}),Bt=Lt.show,Dt=Lt.hideAll;return Hr((function(){var e=function(){ReactTooltip.hide(),Dt()},t=document.querySelector(".igd-shortcode-builder-form");return t&&t.addEventListener("scroll",e),function(){t&&t.removeEventListener("scroll",e)}}),[]),0!==Object.keys(igd.accounts).length?React.createElement(r,{value:{shortcodeId:t,activeAccount:Ee,activeFiles:je,setActiveFiles:Pe,activeFile:Te,setActiveFile:Le,activeFolder:ht,permissions:y,notifications:_,shortcodeBuilderType:u,isList:At,setIsList:Ot,setShowDetails:mt,setIsUpload:Ge,getFiles:Nt,isShortcodeBuilder:i,isMobile:Ye,setActiveAccount:Re,allFolders:l,initFolders:s,isSearch:ve,setShowSidebar:et,sort:_t,setSort:Et,setFiles:Oe,setAllFiles:ke,breadcrumbs:ze,setActiveFolder:wt,isSearchResults:We,setIsSearchResults:Qe,isOptions:nt,setIsOptions:rt,listFiles:jt,showBreadcrumbs:T,showRefresh:k,showSorting:P,initParentFolder:n,isUpload:Ve,isLoading:De,files:Ae,allFiles:Fe,selectedFolders:o,setSelectedFolders:a,filters:d,showLastModified:m,showFileSizeField:v,setShouldRefresh:kt,galleryLayout:L,galleryAspectRatio:B,galleryColumns:K,galleryHeight:W,galleryMargin:Q,galleryView:q,galleryFolderView:V,thumbnailCaption:G,galleryOverlay:J,galleryOverlayTitle:Y,galleryOverlayDescription:X,galleryOverlaySize:Z,galleryImageSize:$,galleryCustomSizeWidth:ee,galleryCustomSizeHeight:te,show:Bt,hideAll:Dt,contextMenuId:Tt,isSelectFiles:ne,selectionType:re,selectAll:ot,setSelectAll:at,searchFiles:Pt,initialSearchTerm:ie,searchKeywordRef:lt,searchKeyword:st,setSearchKeyword:dt,isLMS:oe,isWooCommerce:ae,lazyLoad:ce,lazyLoadNumber:ue}},React.createElement("div",{className:"igd-file-browser"},React.createElement(Nr,null),(O&&!ve||ve&&We)&&React.createElement(se,null),React.createElement("div",{className:"igd-file-browser-body"},$e&&React.createElement(we,null),React.createElement(rn,null),!i&&pt&&React.createElement(hn,null)))):React.createElement(jr,null)}Vr=Vr||igd.isAdmin;var Jr=React,Yr=Jr.useRef,Xr=Jr.useEffect;function Zr(e){var t=e.file,n=e.isPlaying,r=e.playNext,i=e.playPrev,o=e.handleDownload,a=e.nextPrevious,l=e.rewindForward,c=e.download,s=e.playableItems,d=e.playlistAutoplay,u=e.showPlaylist,f=e.isLoop,p=e.isOpenPlaylist,m=e.setIsOpenPlaylist,g=e.isShuffle,v=e.setIsLoop,h=e.setIsShuffle,w=Yr(null),y=Yr(null),b=t||{},_=b.id,E=b.accountId,R=t&&O(t),S="".concat(igd.ajaxUrl,"?action=igd_stream&id=").concat(_,"&accountId=").concat(E),A=t&&k(t,"large"),C={controls:["play-large",!!l&&"rewind","play",!!l&&"fast-forward","current-time","progress","duration","mute","volume","captions","settings","pip","airplay","fullscreen"],settings:["speed","loop","shuffle","playlist"],speed:{selected:1,options:[.5,.75,1,1.25,1.5,2]},i18n:{shuffle:wp.i18n.__("Shuffle","integrate-google-drive"),loop:wp.i18n.__("Loop","integrate-google-drive"),playlist:wp.i18n.__("Playlist","integrate-google-drive")},keyboard:{focused:!0,global:!0},disableContextMenu:!c};Xr((function(){var e=jQuery,t=w.current,n=t.querySelector("video, audio");if(y.current=new Plyr(n,C),a&&s.length>1&&!e(t).find('[data-plyr="prev"]').length){var b=e('<button type="button" class="plyr__controls__item plyr__control" aria-label="Previous" data-plyr="prev"><svg width="18" height="18" fill="currentColor" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M64 468V44c0-6.6 5.4-12 12-12h48c6.6 0 12 5.4 12 12v176.4l195.5-181C352.1 22.3 384 36.6 384 64v384c0 27.4-31.9 41.7-52.5 24.6L136 292.7V468c0 6.6-5.4 12-12 12H76c-6.6 0-12-5.4-12-12z"/></svg></button>').on("click",(function(){return i()})),_=e('<button type="button"  class="plyr__controls__item plyr__control" aria-label="Next" data-plyr="next" tabindex="0"><svg width="18" height="18" fill="currentColor" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M384 44v424c0 6.6-5.4 12-12 12h-48c-6.6 0-12-5.4-12-12V291.6l-195.5 181C95.9 489.7 64 475.4 64 448V64c0-27.4 31.9-41.7 52.5-24.6L312 219.3V44c0-6.6 5.4-12 12-12h48c6.6 0 12 5.4 12 12z"/></svg></button>').on("click",(function(){return r()})),E=e(t).find('.plyr__controls [data-plyr="play"]'),R=e(t).find('.plyr__controls [data-plyr="play"]');l&&(E=e(t).find('.plyr__controls [data-plyr="rewind"]'),R=e(t).find('.plyr__controls [data-plyr="fast-forward"]')),b.insertBefore(E),_.insertAfter(R)}var S=e(t).find('.plyr__menu__container > div > div:first-child [role="menu"]'),A=S.parent().attr("id").match(/(\d+)/)[0];if(!e(t).find('[data-plyr-menu="loop"]').length){var O=e('<button data-plyr="settings" type="button" class="plyr__control plyr__control--forward" role="menuitem" data-plyr-menu="loop" aria-haspopup="true"><span> '.concat(wp.i18n.__("Loop","integrate-google-drive"),'  <span class="plyr__menu__value">').concat(f?wp.i18n.__("Enable","integrate-google-drive"):wp.i18n.__("Disable","integrate-google-drive"),"</span> </span></button>")).on("click",(function(){e("#plyr-settings-".concat(A,"-home")).prop("hidden",!0),e("#plyr-settings-".concat(A,"-loop")).prop("hidden",!1)}));S.append(O);var x=e('<button data-plyr="loop" type="button" role="menuitemradio" class="plyr__control" aria-checked="'.concat(f?"true":"false",'" value="enable"><span>').concat(wp.i18n.__("Enable","integrate-google-drive"),"</span></button>")).on("click",(function(){v(!0),e(".plyr__control.plyr__control--back").click(),O.find(".plyr__menu__value").text(wp.i18n.__("Enable","integrate-google-drive")),e(this).attr("aria-checked","true"),e(this).siblings().attr("aria-checked","false")})),F=e('<button data-plyr="loop" type="button" role="menuitemradio" class="plyr__control" aria-checked="'.concat(f?"false":"true",'" value="disable"><span>').concat(wp.i18n.__("Disable","integrate-google-drive"),"</span></button>")).on("click",(function(){v(!1),e(".plyr__control.plyr__control--back").click(),O.find(".plyr__menu__value").text(wp.i18n.__("Disable","integrate-google-drive")),e(this).attr("aria-checked","true"),e(this).siblings().attr("aria-checked","false")}));e("#plyr-settings-".concat(A,'-loop [role="menu"]')).append(x).append(F)}if(!e(t).find('[data-plyr-menu="shuffle"]').length){var k=e('<button data-plyr="settings" type="button" class="plyr__control plyr__control--forward" role="menuitem" data-plyr-menu="shuffle" aria-haspopup="true"><span> '.concat(wp.i18n.__("Shuffle","integrate-google-drive"),' <span class="plyr__menu__value">').concat(g?wp.i18n.__("Enable","integrate-google-drive"):wp.i18n.__("Disable","integrate-google-drive"),"</span> </span></button>")).on("click",(function(){e("#plyr-settings-".concat(A,"-home")).prop("hidden",!0),e("#plyr-settings-".concat(A,"-shuffle")).prop("hidden",!1)}));S.append(k);var N=e('<button data-plyr="loop" type="button" role="menuitemradio" class="plyr__control" aria-checked="'.concat(g?"true":"false",'" value="enable"><span>').concat(wp.i18n.__("Enable","integrate-google-drive"),"</span></button>")).on("click",(function(){h(!0),e(".plyr__control.plyr__control--back").click(),k.find(".plyr__menu__value").text(wp.i18n.__("Enable","integrate-google-drive")),e(this).attr("aria-checked","true"),e(this).siblings().attr("aria-checked","false")})),j=e('<button data-plyr="loop" type="button" role="menuitemradio" class="plyr__control" aria-checked="'.concat(g?"false":"true",'" value="disable"><span>').concat(wp.i18n.__("Disable","integrate-google-drive"),"</span></button>")).on("click",(function(){h(!1),e(".plyr__control.plyr__control--back").click(),k.find(".plyr__menu__value").text(wp.i18n.__("Disable","integrate-google-drive")),e(this).attr("aria-checked","true"),e(this).siblings().attr("aria-checked","false")}));e("#plyr-settings-".concat(A,'-shuffle [role="menu"]')).append(N).append(j)}if(u&&!e(t).find('[data-plyr-menu="playlist"]').length){var P=e('<button data-plyr="settings" type="button" class="plyr__control plyr__control--forward" role="menuitem" data-plyr-menu="playlist" aria-haspopup="true"><span> '.concat(wp.i18n.__("Playlist","integrate-google-drive"),' <span class="plyr__menu__value">').concat(p?wp.i18n.__("Show","integrate-google-drive"):wp.i18n.__("Hide","integrate-google-drive"),"</span> </span> </span></button>")).on("click",(function(){e("#plyr-settings-".concat(A,"-home")).prop("hidden",!0),e("#plyr-settings-".concat(A,"-playlist")).prop("hidden",!1)}));S.append(P);var I=e('<button data-plyr="loop" type="button" role="menuitemradio" class="plyr__control" aria-checked="'.concat(p?"true":"false",'" value="enable"><span>').concat(wp.i18n.__("Show","integrate-google-drive"),"</span></button>")).on("click",(function(){e(t).find('.plyr__controls__item > [data-plyr="settings"]').click(),m(!0),P.find(".plyr__menu__value").text(wp.i18n.__("Show","integrate-google-drive")),e(this).attr("aria-checked","true"),e(this).siblings().attr("aria-checked","false")})),T=e('<button data-plyr="loop" type="button" role="menuitemradio" class="plyr__control" aria-checked="'.concat(p?"false":"true",'" value="disable"><span>').concat(wp.i18n.__("Hide","integrate-google-drive"),"</span></button>")).on("click",(function(){e(t).find('.plyr__controls__item > [data-plyr="settings"]').click(),m(!1),P.find(".plyr__menu__value").text(wp.i18n.__("Hide","integrate-google-drive")),e(this).attr("aria-checked","true"),e(this).siblings().attr("aria-checked","false")}));e("#plyr-settings-".concat(A,'-playlist [role="menu"]')).append(I).append(T)}if(c&&!e(t).find('[data-plyr-menu="download"]').length){var L=e('<button data-plyr="settings" type="button" class="plyr__control" role="menuitem" data-plyr-menu="download" aria-haspopup="true"><span> '.concat(wp.i18n.__("Download","integrate-google-drive")," </span></button>")).on("click",(function(){e(t).find('.plyr__controls__item > [data-plyr="settings"]').click(),o()}));S.append(L)}return y.current.on("ended",(function(){(f||d)&&r(!0)})),function(){y.current.destroy()}}),[t]);var x=j();Xr((function(){x&&y.current&&(n?y.current.play():y.current.pause())}),[n,y.current]);var F=R?'<audio src="'.concat(S,'" controls preload="auto"></audio>'):'<video class="igd-player-media-video" src="'.concat(S,'" width="100%" height="100%" controls  poster=').concat(A,' preload="auto" ></video>');return React.createElement("div",{className:"igd-player-media-wrap",ref:w,dangerouslySetInnerHTML:{__html:F}})}function $r(e){var t=e.files,n=e.searchKeywordRef,r=t.length?t.length:wp.i18n.__("No","integrate-google-drive"),i=wp.i18n.sprintf(wp.i18n.__('Search results for "%s": %s items found.',"integrate-google-drive"),"<strong>".concat(n.current,"</strong>"),r);return React.createElement("div",{className:"search-result-info"},React.createElement("span",{dangerouslySetInnerHTML:{__html:i}}),React.createElement("button",{onClick:function(e){document.querySelector(".search-dismiss").click()},className:"clear-button igd-btn btn-warning"},wp.i18n.__("Clear","integrate-google-drive")))}function ei(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ti(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ti(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ti(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ni=React,ri=ni.useState,ii=ni.useRef,oi=ni.useEffect;ni.useContext;function ai(e){var t=e.initFolders,n=e.initParentFolder,r=e.sort,i=e.filters,o=e.privateFolders,a=e.setFiles,l=e.fullTextSearch,c=e.initialSearchTerm,s=e.isSearchResults,d=e.setIsSearchResults,u=e.searchKeywordRef,f=e.notifications,p=e.isLoading,m=e.setIsLoading,g=ei(ri(c),2),v=g[0],h=g[1],w=ii(null),y=ei(ri(!1),2),_=y[0],E=y[1],R=ii(),A=ei(ri(!!c),2),O=A[0],C=A[1],x=function(e){var c;m(!0),d(!0),u.current=e;var s=n?[n]:t;wp.ajax.post("igd_search_files",{folders:s,sort:r,keyword:e,accountId:null===(c=s[0])||void 0===c?void 0:c.accountId,isPrivate:o,fullTextSearch:l,filters:i}).done((function(e){var t=e.files,n=e.error;n?Swal.fire({html:n,icon:"error",confirmButtonText:wp.i18n.__("Ok","integrate-google-drive"),customClass:{container:"igd-swal"}}):(t=t.filter((function(e){return b(e)||S(e)})),a(t))})).fail((function(e){console.log(e),Swal.fire({title:wp.i18n.__("Error!","integrate-google-drive"),text:wp.i18n.__("Something went wrong! Please try again later.","integrate-google-drive"),icon:"error",confirmButtonText:"Ok",customClass:{container:"igd-swal"}})})).always((function(){m(!1)})),f&&f.searchNotification&&wp.ajax.post("igd_notification",{files:s,keyword:e,notifications:f,type:"search"})},F=function(e){if(e&&e.preventDefault(),E(!1),!v)return Swal.fire({title:wp.i18n.__("Error","integrate-google-drive"),text:wp.i18n.__("Please enter a keyword to search","integrate-google-drive"),icon:"error",confirmButtonText:"Ok",customClass:{container:"igd-swal"}}),void E(!0);x(v)},k=j();return oi((function(){if(k&&v&&!(v.length<4))return w.current=setTimeout((function(){F()}),2e3),function(){clearTimeout(w.current)}}),[v]),oi((function(){R.current.addEventListener("keydown",(function(e){" "===e.key&&e.stopPropagation()}),!0),c&&x(c)}),[]),React.createElement("form",{ref:R,className:"playlist-search ".concat(O?"active":""," ").concat(_?"error":""),onSubmit:F},p&&React.createElement("div",{className:"igd-spinner"}),s&&!p&&React.createElement("div",{className:"search-dismiss",onClick:function(){C(!O),h(""),E(!1),d(!1),a(t)}},React.createElement("svg",{width:"14",height:"14",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M1.5 1.5L10.5 10.5M1.5 10.5L10.5 1.5L1.5 10.5Z",stroke:"#BABABA",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),React.createElement("input",{type:"text",placeholder:wp.i18n.__("Enter a keyword to search in the playlist","integrate-google-drive"),value:v,onChange:function(e){h(e.target.value)}}),React.createElement("div",{className:"search-submit",onClick:function(){var e;O?F():(C(!0),null===(e=R.current)||void 0===e||e.querySelector("input").focus())}},React.createElement("svg",{width:"18",height:"18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},React.createElement("path",{d:"M508.5 468.9L387.1 347.5c-2.3-2.3-5.3-3.5-8.5-3.5h-13.2c31.5-36.5 50.6-84 50.6-136C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c52 0 99.5-19.1 136-50.6v13.2c0 3.2 1.3 6.2 3.5 8.5l121.4 121.4c4.7 4.7 12.3 4.7 17 0l22.6-22.6c4.7-4.7 4.7-12.3 0-17zM208 368c-88.4 0-160-71.6-160-160S119.6 48 208 48s160 71.6 160 160-71.6 160-160 160z"})),React.createElement(ReactTooltip,{id:"search",place:"bottom",effect:"solid",className:"igd-tooltip"})))}function li(e){return function(e){if(Array.isArray(e))return di(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||si(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ci(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return l}}(e,t)||si(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function si(e,t){if(e){if("string"==typeof e)return di(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?di(e,t):void 0}}function di(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ui=React.useState;function fi(e){var t=e.file,n=e.files,r=e.setFile,i=e.folderFiles,o=e.getFolderFiles,a=e.isSub,l=e.isPlaying,c=e.setIsPlaying,s=e.download,d=e.activeFolder,u=e.setActiveFolder,f=e.playlistThumbnail,p=e.playlistNumber,m=e.allowSearch,g=e.initParentFolder,v=e.initFolders,h=e.filters,w=e.privateFolders,_=e.fullTextSearch,E=e.initialSearchTerm,R=e.sort,O=e.setFiles,C=e.isSearchResults,x=e.setIsSearchResults,F=e.searchKeywordRef,N=e.notifications,j=ci(ui([]),2),P=j[0],I=j[1],T=ci(ui(!1),2),L=T[0],B=T[1];return React.createElement("div",{className:a?"sub-item":"igd-player-playlist"},!a&&m&&React.createElement(React.Fragment,null,React.createElement(ai,{initFolders:v,initParentFolder:g,filters:h,sort:R,privateFolders:w,setFiles:O,fullTextSearch:_,initialSearchTerm:E,isSearchResults:C,setIsSearchResults:x,searchKeywordRef:F,isLoading:L,setIsLoading:B,notifications:N}),C&&!L&&React.createElement($r,{files:n,searchKeywordRef:F})),n.length>0&&n.map((function(e,n){var a=e.id,j=e.name,T=e.size,L=k(e,"custom",{w:64,h:64}),B=b(e);if(B||S(e)){var D=a===d,U=(null==t?void 0:t.id)===a,M=P.find((function(t){return t.id===e.id}));return React.createElement("div",{key:a,className:"playlist-item-wrap"},React.createElement("div",{className:"playlist-item ".concat(U?"active":""),onClick:function(n){if(n.stopPropagation(),B){if(u(!D&&a),I(M?function(t){return t.filter((function(t){return t.id!==e.id}))}:function(t){return[].concat(li(t),[e])}),M||i&&i[e.id])return;o(e)}else if(t&&t.id===a)c(!l||"pause"===l);else if(c(!0),r(e),A(e)){var s=n.target.closest(".igd-player");s&&(s.classList.contains("playlist-bottom")||window.innerWidth<768)&&s.scrollIntoView({behavior:"smooth"})}}},p&&React.createElement("span",{className:"item-index"},String(n+1).padStart(2,"0"),"."),B&&(!D||!!i[a])&&React.createElement("span",{className:"dashicons ".concat(M?"dashicons-arrow-down":"dashicons-arrow-right")}),D&&!i[a]&&React.createElement("div",{className:"igd-spinner"}),f&&React.createElement("img",{src:L,alt:j}),React.createElement("span",{className:"item-name"},j),!B&&s&&!!T&&React.createElement("span",{className:"item-size"},y(T)),!B&&U&&l&&"pause"!==l&&React.createElement("span",{className:"dashicons dashicons-controls-pause"}),!B&&(!U||!l||"pause"===l)&&React.createElement("span",{className:"dashicons dashicons-controls-play"})),M&&!!i[a]&&React.createElement(fi,{isSub:!0,files:i[a],file:t,setFile:r,folderFiles:i,getFolderFiles:o,isPlaying:l,setIsPlaying:c,download:s,activeFolder:d,setActiveFolder:u,playlistThumbnail:f,playlistNumber:p,allowSearch:m,initParentFolder:g,initFolders:v,filters:h,privateFolders:w,fullTextSearch:_,initialSearchTerm:E,sort:R,setFiles:O,isSearchResults:C,setIsSearchResults:x,searchKeywordRef:F,notifications:N}))}})))}function pi(e){return pi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pi(e)}function mi(e){return function(e){if(Array.isArray(e))return bi(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||yi(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function gi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gi(Object(n),!0).forEach((function(t){hi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function hi(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==pi(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==pi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===pi(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return l}}(e,t)||yi(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yi(e,t){if(e){if("string"==typeof e)return bi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?bi(e,t):void 0}}function bi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var _i=React,Ei=_i.useRef,Ri=_i.useEffect,Si=_i.useState;const Ai=function(e){var t=e.initFolders,n=void 0===t?[]:t,r=e.nextPrevious,i=e.rewindForward,o=e.allowEmbedPlayer,a=e.download,l=e.sort,c=e.allowSearch,s=e.initParentFolder,d=e.filters,u=e.privateFolders,f=e.fullTextSearch,p=void 0===f||f,m=e.initialSearchTerm,g=e.showPlaylist,v=void 0===g||g,h=e.openedPlaylist,w=void 0===h||h,y=e.playlistPosition,_=void 0===y?"bottom":y,E=e.notifications,R=e.playlistThumbnail,C=e.playlistAutoplay,x=e.playlistNumber,F=wi(Si(n),2),N=F[0],P=F[1],I=wi(Si(n.filter((function(e){return S(e)}))),2),T=I[0],L=I[1],B=wi(Si(T.length?T[0]:null),2),D=B[0],U=B[1],M=wi(Si(null),2),z=M[0],K=M[1],H=wi(Si(v&&w),2),W=H[0],Q=H[1],q=Ei(m),V=wi(Si(!1),2),G=V[0],J=V[1];Ri((function(){N.length&&L(n.filter((function(e){return!b(e)})))}),[N]);var Y=wi(Si(!1),2),X=Y[0],Z=Y[1],$=wi(Si({}),2),ee=$[0],te=$[1],ne=D&&A(D),re=wi(Si("true"===localStorage.getItem("igd_is_loop")),2),ie=re[0],oe=re[1],ae=wi(Si("true"===localStorage.getItem("igd_is_shuffle")),2),le=ae[0],ce=ae[1],se=D?T.findIndex((function(e){return e.id===D.id})):0,de=Ei(null),ue=j();Ri((function(){ue&&localStorage.setItem("igd_is_loop",ie?"true":"false")}),[ie]),Ri((function(){ue&&localStorage.setItem("igd_is_shuffle",le?"true":"false")}),[le]),Ri((function(){ue&&E&&E.playNotification&&wp.ajax.post("igd_notification",{files:[D],notifications:E,type:"play"})}),[D]);var fe=D&&O(D),pe=wi(Si("lg"),2),me=pe[0],ge=pe[1];Ri((function(){if(de.current){var e=480,t=768,n=992,r=new ResizeObserver((function(r){var i=r[0].contentRect.width;ge(i<=e?"xs":i<=t?"sm":i<=n?"md":"lg")}));return r.observe(de.current),function(){r.disconnect()}}}),[de]);var ve=o&&D&&A(D)&&D.size>1e8;return Ri((function(){ve&&wp.ajax.post("igd_update_file_permission",{file_id:D.id,account_id:D.accountId})}),[D]),React.createElement("div",{ref:de,className:"\n                igd-player \n                playlist-".concat(_,"\n               \n                ").concat(ne?"type-video":"type-audio"," \n                ").concat(X?"active":"paused"," \n                ").concat(ie?"is-loop":"","\n                ").concat(W?"is-playlist":"","\n                ").concat(le?"is-shuffle":"","\n                size-").concat(me,"\n            ")},React.createElement("div",{className:"media-wrap"},fe&&React.createElement("div",{className:"current-item"},React.createElement("img",{src:k(D,"small"),alt:D.name}),React.createElement("div",{className:"item-caption"},React.createElement("span",{className:"item-title"},D.name),!!D.description&&React.createElement("span",{className:"item-description"},D.description))),ve&&React.createElement("iframe",{src:"https://drive.google.com/file/d/".concat(D.id,"/preview"),width:"100%",height:"100%",frameBorder:"0",allowFullScreen:!0,referrerPolicy:"no-referrer",allow:"autoplay",sandbox:"allow-scripts allow-same-origin"}),!!D&&!ve&&React.createElement(Zr,{file:D,isPlaying:X,setIsPlaying:Z,playNext:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(Z(!0),!e||!ie){var t=se+1<T.length?T[se+1]:T[0];le&&(t=T[Math.floor(Math.random()*T.length)]),U(t)}},playPrev:function(){Z(!0),U(se-1>=0?T[se-1]:T[T.length-1])},download:a,showPlaylist:v,nextPrevious:r,rewindForward:i,playableItems:T,handleDownload:function(){var e="".concat(igd.ajaxUrl,"?action=igd_download&id=").concat(D.id,"&accountId=").concat(D.accountId);window.open(e,"_blank").focus(),E&&E.downloadNotification&&wp.ajax.post("igd_notification",{files:[D],notifications:E,type:"download"})},playlistAutoplay:C,isLoop:ie,setIsLoop:oe,isOpenPlaylist:W,setIsOpenPlaylist:Q,isShuffle:le,setIsShuffle:ce})),W&&React.createElement(fi,{file:D,files:N,setFile:U,folderFiles:ee,getFolderFiles:function(e){return wp.ajax.post("igd_get_files",{data:{folder:e,sort:l,filters:d}}).done((function(t){var n=t.files;n=n.filter((function(e){return S(e)||b(e)})),te((function(t){return vi(vi({},t),{},hi({},e.id?e.id:e,n))})),L((function(e){return[].concat(mi(e),mi(n.filter((function(e){return!b(e)}))))}))}))},isPlaying:X,setIsPlaying:Z,download:a,activeFolder:z,setActiveFolder:K,playlistThumbnail:R,playlistNumber:x,allowSearch:c,initParentFolder:s,initFolders:n,filters:d,privateFolders:u,fullTextSearch:p,initialSearchTerm:m,sort:l,setFiles:P,isSearchResults:G,setIsSearchResults:J,searchKeywordRef:q,notifications:E}))};function Oi(e){var t=e.initFolders,n=e.slideName,r=e.slideDescription,i=e.slideHeight,o=e.slidesPerPage,a=e.slideAutoplay,l=e.slideAutoplaySpeed,c=e.slideDots,s=e.slideArrows,d=e.download,u=e.preview,f=e.notifications,p=e.sliderImageSize,m=e.sliderCustomSizeWidth,g=e.sliderCustomSizeHeight,v=e.slideGap,h=function(e,n){P(e,n,t,{download:d,preview:u,inlinePreview:!0,notifications:f})},w=function(){var e=o[arguments.length>0&&void 0!==arguments[0]?arguments[0]:"md"];return t.length<e?t.length:e},y={dots:c,arrows:s,speed:500,slidesToShow:w("md"),infinite:!0,initialSlide:0,autoplay:a,autoplaySpeed:parseInt(l),cssEase:"linear",nextArrow:React.createElement("span",{className:"slick-arrow slick-next"},React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 320 512"},React.createElement("path",{d:"M278.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-160 160c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L210.7 256 73.4 118.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l160 160z"}))),prevArrow:React.createElement("span",{className:"slick-arrow slick-prev"},React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 320 512"},React.createElement("path",{d:"M41.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 256 246.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z"}))),responsive:[{breakpoint:576,settings:{slidesToShow:w("xs"),dots:!1}},{breakpoint:768,settings:{slidesToShow:w("sm")}},{breakpoint:992,settings:{slidesToShow:w("md")}},{breakpoint:1200,settings:{slidesToShow:w("lg")}},{breakpoint:2800,settings:{slidesToShow:w("xl")}}]};return React.createElement("div",{className:"igd-slider",style:{"--slide-height":i,"--slide-gap":"".concat(v,"px")}},React.createElement(Slider.default,y,t.map((function(e,t){var i=e.id,o=(e.accountId,e.name),a=e.description,l=k(e,p,{w:m,h:g});return React.createElement(React.Fragment,null,React.createElement("div",{className:"slider-img-wrap",onClick:function(e){return u&&h(e,i)}},React.createElement("img",{referrerPolicy:"no-referrer",src:l,alt:o})),React.createElement("div",{className:"slider-content-wrap",onClick:function(e){return u&&h(e,i)}},n&&React.createElement("h3",null,o),r&&!!a&&React.createElement("p",null,a)))}))))}function Ci(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return xi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xi(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Fi,ki,Ni=React,ji=Ni.useEffect,Pi=Ni.useState;window.IgdShortcode=function(e){var t=e.data,n=e.isPreview,i=Ci(Pi(!1),2),o=i[0],a=i[1],l=Ci(Pi(""),2),c=l[0],s=l[1],d=t.id,u=t.type,f=t.allFolders,p=t.privateFolders,m=void 0!==p&&p,g=t.folders,v=void 0===g?[]:g,h=t.filters,w=t.galleryLayout,y=void 0===w?"justified":w,_=t.galleryAspectRatio,R=void 0===_?"1/1":_,A=t.galleryColumns,O=void 0===A?{xs:1,sm:2,md:3,lg:4,xl:5}:A,C=t.galleryHeight,x=void 0===C?300:C,F=t.galleryMargin,k=void 0===F?5:F,N=t.galleryView,j=void 0===N?"rounded":N,P=t.galleryFolderView,T=void 0===P?"title":P,L=t.galleryOverlay,B=void 0===L||L,D=t.galleryOverlayTitle,U=void 0===D||D,M=t.galleryOverlayDescription,z=void 0===M||M,K=t.galleryOverlaySize,H=void 0!==K&&K,W=t.galleryImageSize,Q=void 0===W?"medium":W,q=t.galleryCustomSizeWidth,V=t.galleryCustomSizeHeight,G=t.view,J=t.lazyLoad,Y=void 0===J||J,X=t.lazyLoadNumber,Z=void 0===X?100:X,$=t.showLastModified,ee=void 0!==$&&$,te=t.showFileSizeField,ne=void 0===te||te,re=t.showHeader,ie=void 0===re||re,oe=t.showRefresh,ae=void 0===oe||oe,le=t.showSorting,ce=void 0===le||le,se=t.showBreadcrumbs,de=void 0===se||se,ue=t.nextPrevious,fe=void 0===ue||ue,pe=t.rewindForward,me=void 0!==pe&&pe,ge=t.allowEmbedPlayer,ve=t.showPlaylist,he=void 0===ve||ve,we=t.playlistThumbnail,ye=void 0===we||we,be=t.playlistNumber,_e=void 0===be||be,Ee=t.playlistAutoplay,Re=void 0===Ee||Ee,Se=t.openedPlaylist,Ae=void 0===Se||Se,Oe=t.playlistPosition,Ce=void 0===Oe?"bottom":Oe,xe=t.fileNumbers,Fe=t.sort,ke=t.maxFiles,Ne=t.maxFileSize,Pe=t.minFileSize,Ie=t.notifications,Te=t.preview,Le=void 0===Te||Te,Be=t.inlinePreview,De=void 0===Be||Be,Ue=t.allowPreviewPopout,Me=void 0===Ue||Ue,ze=t.directLink,Ke=void 0!==ze&&ze,He=t.createDoc,We=void 0!==He&&He,Qe=t.edit,qe=void 0!==Qe&&Qe,Ve=t.newFolder,Ge=void 0!==Ve&&Ve,Je=t.rename,Ye=void 0!==Je&&Je,Xe=t.details,Ze=void 0!==Xe&&Xe,$e=t.moveCopy,et=t.moveCopy,tt=t.canDelete,nt=void 0!==tt&&tt,rt=t.upload,it=void 0!==rt&&rt,ot=t.download,at=void 0===ot||ot,lt=t.zipDownload,ct=void 0!==lt&&lt,st=t.allowShare,dt=void 0!==st&&st,ut=t.viewSwitch,ft=void 0===ut||ut,pt=t.allowSearch,mt=void 0===pt?"search"===u:pt,gt=t.fullTextSearch,vt=void 0===gt||gt,ht=t.initialSearchTerm,wt=void 0===ht?"":ht,yt=t.comment,bt=void 0!==yt&&yt,_t=t.commentMethod,Et=void 0===_t?"facebook":_t,Rt=t.photoProof,St=void 0!==Rt&&Rt,At=t.photoProofEmail,Ot=t.photoProofMaxSelection,Ct=t.uploadImmediately,xt=t.isFormUploader,Ft=t.isRequired,kt=t.isWooCommerceUploader,Nt=t.wcOrderId,jt=t.wcItemId,Pt=t.wcProductId,It=t.uploadedFiles,Tt=void 0===It?[]:It,Lt=t.initParentFolder,Bt=t.enableFolderUpload,Dt=t.overwrite,Ut=t.showUploadLabel,Mt=t.uploadLabelText,zt=void 0===Mt?wp.i18n.__("Upload Files","integrate-google-drive"):Mt,Kt=t.uploadFileName,Ht=t.showUploadConfirmation,Wt=void 0===Ht||Ht,Qt=t.uploadConfirmationMessage,qt=void 0===Qt?"<h3>".concat(wp.i18n.__("Upload successful!","integrate-google-drive"),"</h3> <p>").concat(wp.i18n.__("Your file(s) have been uploaded. Thank you for your submission!","integrate-google-drive"),"</p>"):Qt,Vt=t.slideName,Gt=void 0===Vt||Vt,Jt=t.sliderImageSize,Yt=void 0===Jt?"medium":Jt,Xt=t.sliderCustomSizeWidth,Zt=t.sliderCustomSizeHeight,$t=t.slideDescription,en=t.slideHeight,tn=void 0===en?"300px":en,nn=t.slidesPerPage,rn=void 0===nn?{xs:1,sm:2,md:3,lg:4,xl:5}:nn,on=t.slidesToScroll,an=void 0===on?1:on,ln=t.slideAutoplay,cn=t.slideAutoplaySpeed,sn=void 0===cn?3e3:cn,dn=t.slideDots,un=void 0===dn||dn,fn=t.slideArrows,pn=void 0===fn||fn,mn=t.slideGap,gn=void 0===mn?5:mn,vn=t.account,hn=f?E():v;return ji((function(){n&&(a(!0),wp.ajax.post("igd_get_shortcode_content",{data:t}).done((function(e){return s(e)})).fail((function(e){return console.log(e)})).always((function(){a(!1),setTimeout((function(){I()}),100)})))}),[n,t]),React.createElement(React.Fragment,null,n&&o&&React.createElement("div",{className:"igd-spinner spinner-large"}),n&&!o&&React.createElement("div",{className:"preview-inner",dangerouslySetInnerHTML:{__html:c}}),!n&&React.createElement(React.Fragment,null,["browser","gallery","search"].includes(u)&&React.createElement(Gr,{shortcodeId:d,account:vn,galleryLayout:y,galleryAspectRatio:R,galleryColumns:O,galleryOverlay:B,galleryOverlayTitle:U,galleryOverlayDescription:z,galleryOverlaySize:H,galleryImageSize:Q,galleryCustomSizeWidth:q,galleryCustomSizeHeight:V,galleryHeight:x,galleryMargin:k,galleryView:j,galleryFolderView:T,initParentFolder:Lt,allFolders:f,privateFolders:m,initFolders:hn,filters:h,isList:"list"===G,lazyLoad:Y,lazyLoadNumber:Z,showLastModified:ee,showFileSizeField:ne,showHeader:ie,showRefresh:ae,showSorting:ce,showBreadcrumbs:de,fileNumbers:xe,sort:Fe,shortcodeBuilderType:u,initialSearchTerm:wt,permissions:{preview:Le,inlinePreview:De,allowPreviewPopout:Me,directLink:Ke,newFolder:Ge,rename:Ye,move:et,copy:$e,upload:it,download:at,zipDownload:ct,details:Ze,view:ft,delete:nt,share:dt,allowSearch:mt,createDoc:We,edit:qe,fullTextSearch:vt,comment:bt,commentMethod:Et,photoProof:St,photoProofEmail:At,photoProofMaxSelection:Ot},notifications:Ie}),"slider"===u&&React.createElement(Oi,{initFolders:hn,slideName:Gt,slideDescription:$t,slideHeight:tn,slidesPerPage:rn,slidesToScroll:an,slideAutoplay:ln,slideAutoplaySpeed:sn,slideDots:un,slideArrows:pn,download:t.download,preview:t.preview,notifications:Ie,sliderImageSize:Yt,sliderCustomSizeWidth:Xt,sliderCustomSizeHeight:Zt,slideGap:gn}),"uploader"===u&&React.createElement(r,{value:{account:vn,folders:v,filters:h,maxFiles:ke,maxFileSize:Ne,minFileSize:Pe,enableFolderUpload:Bt,isFormUploader:xt,isRequired:Ft,showUploadLabel:Ut,uploadLabelText:zt,uploadFileName:Kt,isWooCommerceUploader:kt,wcOrderId:Nt,wcItemId:jt,wcProductId:Pt,notifications:Ie,initUploadedFiles:Tt,uploadImmediately:Ct,overwrite:Dt,showUploadConfirmation:Wt,uploadConfirmationMessage:qt}},React.createElement(je,null)),"media"===u&&React.createElement(Ai,{initParentFolder:Lt,initFolders:hn.filter((function(e){return S(e)||b(e)})),nextPrevious:fe,rewindForward:me,allowEmbedPlayer:ge,showPlaylist:he,playlistThumbnail:ye,playlistNumber:_e,playlistAutoplay:Re,openedPlaylist:Ae,playlistPosition:Ce,download:t.download,sort:Fe,filters:h,privateFolders:m,allowSearch:mt,fullTextSearch:vt,initialSearchTerm:wt,notifications:Ie})))},window.initShortcode=I,Fi=jQuery,(ki={init:function(){I(),Fi(window).on("elementor/frontend/init",(function(){window.elementorFrontend.hooks.addAction("frontend/element_ready/igd_browser.default",I),window.elementorFrontend.hooks.addAction("frontend/element_ready/igd_uploader.default",I),window.elementorFrontend.hooks.addAction("frontend/element_ready/igd_gallery.default",I),window.elementorFrontend.hooks.addAction("frontend/element_ready/igd_slider.default",I),window.elementorFrontend.hooks.addAction("frontend/element_ready/igd_media.default",I),window.elementorFrontend.hooks.addAction("frontend/element_ready/igd_search.default",I),window.elementorFrontend.hooks.addAction("frontend/element_ready/igd_embed.default",I),window.elementorFrontend.hooks.addAction("frontend/element_ready/igd_download.default",I),window.elementorFrontend.hooks.addAction("frontend/element_ready/igd_view.default",I),window.elementorFrontend.hooks.addAction("frontend/element_ready/igd_shortcodes.default",I),window.elementorFrontend.hooks.addAction("frontend/element_ready/shortcode.default",I),window.elementorFrontend.hooks.addAction("frontend/element_ready/form.default",I),window.elementorFrontend.hooks.addAction("frontend/element_ready/mf-igd-uploader.default",I),window.elementorFrontend.hooks.addAction("frontend/element_ready/text-editor.default",I)})),Fi(document).on("click",".igd-view-link[data-id], .igd-download-link[data-id]",ki.sendNotification)},ready:function(){Fi(document).on("change",".nf-element.upload-file-list",(function(){var e=Fi(this).val(),t=parseInt(Fi(this).data("min-files")),n=parseInt(Fi(this).data("field-id")),r="min-files-error";if(t>0){var i=[];try{i=e.split("), ")}catch(e){console.log(e)}if(i.length<t){var o=wp.i18n.sprintf(wp.i18n.__("Please upload at least %s files.","integrate-google-drive"),t);nfRadio.channel("fields").request("add:error",n,r,o)}else nfRadio.channel("fields").request("remove:error",n,r)}})),Fi(document).on("click",".igd-wc-upload-wrap .upload-button",(function(){Fi(this).toggleClass("active")})),Fi(document.body).on("updated_wc_div",(function(){I()})),Fi(document).on("gform_post_render",(function(e,t){I()}))},sendNotification:function(){var e=Fi(this).hasClass("igd-view-link")?"view":"download",t=Fi(this).data("id"),n=Fi(this).data("account-id"),r=Fi(this).data("notification-email"),i=Fi(this).data("skip-current-user-notification");t&&wp.ajax.post("igd_send_view_download_notification",{id:t,accountId:n,type:e,notificationEmail:r,skipCurrentUserNotification:i})}}).init(),Fi(document).ready(ki.ready)})()})();
     1(()=>{var e={155:e=>{var t,n,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();var l,c=[],s=!1,d=-1;function u(){s&&l&&(s=!1,l.length?c=l.concat(c):d=-1,c.length&&f())}function f(){if(!s){var e=a(u);s=!0;for(var t=c.length;t;){for(l=c,c=[];++d<t;)l&&l[d].run();d=-1,t=c.length}l=null,s=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===o||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function p(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new m(e,t)),1!==c.length||s||a(f)},m.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=p,r.addListener=p,r.once=p,r.off=p,r.removeListener=p,r.removeAllListeners=p,r.emit=p,r.prependListener=p,r.prependOnceListener=p,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},880:(e,t,n)=>{"use strict";var r=n(976);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},884:(e,t,n)=>{e.exports=n(880)()},976:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=React.createContext();const t=e;var r=e.Provider;function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var a=React,l=a.useEffect,c=a.useState;function s(e){var t=e.text,n=e.isDismissable,r=void 0===n||n,o=i(c(!0),2),a=o[0],s=o[1];return l((function(){a||ReactDOM.unmountComponentAtNode(document.getElementById("igd-pro-modal"))}),[a]),l((function(){var e=jQuery;function t(){var e=(new Date).getTime()+2.3*24*60*60*1e3;localStorage.setItem("igd_offer_time",e),n=e}r&&e(document).on("click",".igd-pro-modal-wrap",(function(t){e(t.target).hasClass("igd-pro-modal-wrap")&&s(!1)}));var n=localStorage.getItem("igd_offer_time");!n||isNaN(n)?t():n=parseInt(n),setInterval((function(){var r=(new Date).getTime(),i=n-r;i<0&&(t(),i=n-r);var o=Math.floor(i/864e5),a=Math.floor(i%864e5/36e5),l=Math.floor(i%36e5/6e4),c=Math.floor(i%6e4/1e3);e(".timer .days span:first").text(o),e(".timer .hours span:first").text(a),e(".timer .minutes span:first").text(l),e(".timer .seconds span:first").text(c)}),1e3)}),[]),a?React.createElement("div",{className:"igd-pro-modal-wrap"},React.createElement("div",{className:"igd-pro-modal"},React.createElement("span",{className:"igd-pro-modal-close",onClick:function(){return s(!1)}},"×"),React.createElement("img",{src:"".concat(igd.pluginUrl,"/assets/images/offer.svg"),alt:"Upgrade to Pro"}),React.createElement("div",{className:"discount"},React.createElement("span",{className:"discount-special"},wp.i18n.__("Special","igd-dark-mode")),React.createElement("span",{className:"discount-text"},wp.i18n.__("30% OFF","igd-dark-mode"))),React.createElement("h3",null,wp.i18n.__("Unlock PRO Feature","integrate-google-drive")),React.createElement("p",null,t),React.createElement("div",{className:"timer"},React.createElement("div",{className:"days"},React.createElement("span",null,"0"),React.createElement("span",null,"DAYS")),React.createElement("div",{className:"hours"},React.createElement("span",null,"0"),React.createElement("span",null,"HOURS")),React.createElement("div",{className:"minutes"},React.createElement("span",null,"0"),React.createElement("span",null,"MINUTES")),React.createElement("div",{className:"seconds"},React.createElement("span",null,"0"),React.createElement("span",null,"SECONDS"))),React.createElement("div",{className:"igd-pro-modal-actions"},React.createElement("a",{href:igd.upgradeUrl,className:"igd-btn btn-primary"},wp.i18n.__("Upgrade Now","integrate-google-drive"))))):null}function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function u(){u=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function s(e,t,n,i){var o=t&&t.prototype instanceof p?t:p,a=Object.create(o.prototype),l=new C(i||[]);return r(a,"_invoke",{value:R(e,n,l)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var m={};function p(){}function g(){}function v(){}var h={};c(h,o,(function(){return this}));var w=Object.getPrototypeOf,y=w&&w(w(x([])));y&&y!==t&&n.call(y,o)&&(h=y);var b=v.prototype=p.prototype=Object.create(h);function _(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function i(r,o,a,l){var c=f(e[r],e,o);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==d(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){i("next",e,a,l)}),(function(e){i("throw",e,a,l)})):t.resolve(u).then((function(e){s.value=e,a(s)}),(function(e){return i("throw",e,a,l)}))}l(c.arg)}var o;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){i(e,n,t,r)}))}return o=o?o.then(r,r):r()}})}function R(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return F()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var l=S(a,n);if(l){if(l===m)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=f(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===m)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function S(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var i=f(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,m;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,m):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,m)}function A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function x(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:F}}function F(){return{value:void 0,done:!0}}return g.prototype=v,r(b,"constructor",{value:v,configurable:!0}),r(v,"constructor",{value:g,configurable:!0}),g.displayName=c(v,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,l,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},_(E.prototype),c(E.prototype,a,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new E(s(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},_(b),c(b,l,"Generator"),c(b,o,(function(){return this})),c(b,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=x,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var l=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(l&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;O(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:x(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),m}},e}function f(e,t,n,r,i,o,a){try{var l=e[o](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,i)}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==d(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==d(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===d(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return h(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function w(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n={text:{"application/vnd.oasis.opendocument.text":"Text","text/plain":"Text"},file:{"text/html":"HTML","text/php":"PHP","x-httpd-php":"PHP","text/css":"CSS","text/js":"JavaScript","application/javascript":"JavaScript","application/json":"JSON","application/xml":"XML","application/x-shockwave-flash":"SWF","video/x-flv":"FLV","application/vnd.google-apps.file":"File"},image:{"application/vnd.google-apps.photo":"Photo","image/png":"PNG","image/jpeg":"JPEG","image/jpg":"JPG","image/gif":"GIF","image/bmp":"BMP","image/vnd.microsoft.icon":"ICO","image/tiff":"TIFF","image/tif":"TIF","image/svg+xml":"SVG"},zip:{"application/zip":"ZIP","application/x-rar-compressed":"RAR","application/x-msdownload":"EXE","application/vnd.ms-cab-compressed":"CAB"},audio:{"audio/mpeg":"MP3","video/quicktime":"QT","application/vnd.google-apps.audio":"Audio","audio/x-m4a":"Audio"},video:{"application/vnd.google-apps.video":"Video","video/x-flv":"Video","video/mp4":"Video","video/webm":"Video","video/ogg":"Video","application/x-mpegURL":"Video","video/MP2T":"Video","video/3gpp":"Video","video/quicktime":"Video","video/x-msvideo":"Video","video/x-ms-wmv":"Video"},pdf:{"application/pdf":"PDF"},word:{"application/msword":"MS Word"},doc:{"application/vnd.google-apps.document":"Google Docs"},excel:{"application/vnd.ms-excel":"Excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":"Excel"},presentation:{"application/vnd.google-apps.presentation":"Slide","application/vnd.oasis.opendocument.presentation":"Presentation"},powerpoint:{"application/vnd.ms-powerpoint":"Powerpoint"},form:{"application/vnd.google-apps.form":"Form"},folder:{"application/vnd.google-apps.folder":"Folder"},drawing:{"application/vnd.google-apps.drawing":"Drawing"},script:{"application/vnd.google-apps.script":"Script"},sites:{"application/vnd.google-apps.sites":"Sites"},spreadsheet:{"application/vnd.google-apps.spreadsheet":"Spreadsheet","application/vnd.oasis.opendocument.spreadsheet":"Spreadsheet"}},r="File",i="file";return Object.keys(n).map((function(o){t&&n[o][e]?i=o:n[o][e]&&(r=n[o][e])})),t?i:r}function y(e){if(e<1)return 0;var t=Math.floor(Math.log(e)/Math.log(1024));return 1*(e/Math.pow(1024,t)).toFixed(2)+" "+["Byte","KB","MB","GB","TB"][t]}function b(e){var t;return!e.type||("application/vnd.google-apps.folder"===e.type||"application/vnd.google-apps.folder"===(null===(t=e.shortcutDetails)||void 0===t?void 0:t.targetMimeType))}function _(e){var t=w(e,!0);return t=t||"file","".concat(igd.pluginUrl,"/assets/images/icons/").concat(t,".png")}function E(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:igd.activeAccount,n=t.root_id,r=t.id,i=[{accountId:r,id:n,name:wp.i18n.__("My Drive","integrate-google-drive"),type:"application/vnd.google-apps.folder",iconLink:"".concat(igd.pluginUrl,"/assets/images/my-drive.svg")},{accountId:r,id:"shared-drives",name:wp.i18n.__("Shared Drives","integrate-google-drive"),type:"application/vnd.google-apps.folder",iconLink:"".concat(igd.pluginUrl,"/assets/images/shared-drives.svg")},{accountId:r,id:"computers",name:wp.i18n.__("Computers","integrate-google-drive"),type:"application/vnd.google-apps.folder",iconLink:"".concat(igd.pluginUrl,"/assets/images/computers.svg")},{accountId:r,id:"shared",name:wp.i18n.__("Shared with me","integrate-google-drive"),type:"application/vnd.google-apps.folder",iconLink:"".concat(igd.pluginUrl,"/assets/images/shared.svg")},{accountId:r,id:"starred",name:wp.i18n.__("Starred","integrate-google-drive"),type:"application/vnd.google-apps.folder",iconLink:"".concat(igd.pluginUrl,"/assets/images/starred.svg")}];return e?i.find((function(t){return t.id==e})):i}function R(e){var t,n,r,i=null==e||null===(t=e.getSource)||void 0===t||null===(n=t.call(e))||void 0===n||null===(r=n.relativePath)||void 0===r?void 0:r.replace(/^\//,"");return null!=i?i:""}function S(e){return O(e)||A(e)}function A(e){var t,n;return!(null==e||null===(t=e.type)||void 0===t||!t.includes("video/"))||!(null===(n=e.shortcutDetails)||void 0===n||!n.targetMimeType.includes("video/"))}function O(e){var t,n;return!(null===(t=e.type)||void 0===t||!t.includes("audio/"))||!(null===(n=e.shortcutDetails)||void 0===n||!n.targetMimeType.includes("audio/"))}function C(e){var t,n;return!(null===(t=e.type)||void 0===t||!t.includes("image/"))||!(null===(n=e.shortcutDetails)||void 0===n||!n.targetMimeType.includes("image/"))}function x(e,t){return E(e,t)}function F(e,t){e.onerror=null;var n="https://www.gravatar.com/avatar/"+t+"?s=200&d=mm";e.src===n?e.src="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD//gA7Q1JFQVRPUjogZ2QtanBlZyB2MS4wICh1c2luZyBJSkcgSlBFRyB2NjIpLCBxdWFsaXR5ID0gOTAK/9sAQwADAgIDAgIDAwMDBAMDBAUIBQUEBAUKBwcGCAwKDAwLCgsLDQ4SEA0OEQ4LCxAWEBETFBUVFQwPFxgWFBgSFBUU/9sAQwEDBAQFBAUJBQUJFA0LDRQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQU/8AAEQgAyADIAwEiAAIRAQMRAf/EAB8AAAEFAQEBAQEBAAAAAAAAAAABAgMEBQYHCAkKC//EALUQAAIBAwMCBAMFBQQEAAABfQECAwAEEQUSITFBBhNRYQcicRQygZGhCCNCscEVUtHwJDNicoIJChYXGBkaJSYnKCkqNDU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6g4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2drh4uPk5ebn6Onq8fLz9PX29/j5+v/EAB8BAAMBAQEBAQEBAQEAAAAAAAABAgMEBQYHCAkKC//EALURAAIBAgQEAwQHBQQEAAECdwABAgMRBAUhMQYSQVEHYXETIjKBCBRCkaGxwQkjM1LwFWJy0QoWJDThJfEXGBkaJicoKSo1Njc4OTpDREVGR0hJSlNUVVZXWFlaY2RlZmdoaWpzdHV2d3h5eoKDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uLj5OXm5+jp6vLz9PX29/j5+v/aAAwDAQACEQMRAD8A+t6KMUtACZooxRQAUZpaSgAozRiloASijFGKADNFLRigBM0UUtACUUtJigAopaKAE5oopaAEo5paKAEoopaAE5opaKAEooooAWkoooAMUUUUAFFFFABRRRQAUUUUAGKKKKACiiigApaSigAooooAWkoooAKWkooAKKKKAClpKWgBKKKKACiiloASiiigAop8UTzyLHGrSOxwqqMkmvTPCnwpXYl1rJJY8i0Q8D/eP9B+dAHnVjpl3qcvl2ltLcv6RoWx9fSumsvhXr10AZI4bUH/AJ7Sc/kua9ltLO3sIRDbQxwRDokahR+QqagDyL/hTmp7f+P20z6Zb/CqV58KddtgTGkF0PSKTB/8exXtVFAHzff6Re6VJsvLWW2bt5ikA/Q96qV9LXNrDeRGKeJJ426pIoYH8DXnvir4UxTK9zox8qXqbVj8p/3T2+h/SgDyujFSTwSWszwzRtHKh2sjDBBqOgApaSigAoo7UUAFFFFAC0UlFABRRiigAooooAKKKKAClUFmAAJJ4AApK7r4V+GxqmqNqE6hoLQjaD/FIen5dfyoA634f+B00G2W9vEDajIMgN/yxB7D39fyrtKKSgApaKKACkopaACikxRQByXjzwTF4jtGubdAmpRD5WHHmD+6f6GvFJEeJ2R1KOpwVYYIPpX0zXkvxY8NLZXseqwKFiuDslAHR8dfxA/T3oA8+oxR0ooAKKMUYoAMUUUYoAKKMUUAFGaKM0AFFFFABR3oooAK978CaUNJ8L2MW3bJIgmf/ebn9BgfhXhFtF59zFGP43C/ma+lY0EaKi8KoAFADqKKKAEpaSloAKSlpKACloooASsjxdpY1nw5fW23LmMsn+8OR+orXpTyKAPmSlqzq1uLTVLyAcCKZ0GfZiKq0AFHNFFABS0mKKACiiigAoopaAEo60UUAFFFHegCxp8giv7Zz0SVSfzFfSdfMoPOa+ivD+oDVdEsbsHPmxKT7HHI/PNAGhSUtFABRRRQAlFLRQAlFGaWgBKKWqup3y6bp1zdv92GNnP4DNAHz74gkEuvalIOjXMpH4uaoU53MjszcliSTSUAJRS0lABRS0UAJiiiigAooxRQAUUUfpQAUUUUAFerfCLXlms59KlceZEfMhB7qeoH0PP415TirekapPouowXts22WJsj0I7g+xFAH0hSdqzvD+u2/iLTYry2PDDDoTyjdwa0aAClpOlFAC0lLSUALRSUv4UAJXBfFrXls9Jj02Jx51yQzgdRGP8Tj8jXYa1rFtoWnS3l022NBwO7HsB714Drusz6/qk97cH55DwoPCr2AoAodaKMUUAFFFFABRRRQAUUdaKACiiigAo6UUUAFFFFABiiiigDY8M+J7vwvfefbNujbiWFj8rj/AB969q8O+KrDxNbCS1l2ygfPA5w6fh3HvXkfhz4f6p4hCyiMWtqf+W8wxkf7I6n+XvXpnh74d6X4fkjnCvc3aciaQ4wfYDgfrQB1FFFLQAn50UtJQAtZWv8AiWw8N2pmu5sMR8kSnLv9B/WtWuY8R/D3TPEUjzsJLe7brNG2cn3B4/lQB5P4q8WXfiq88yb93bpnyoFPCj+p96w66bxH8P8AVPDwaUoLq0H/AC3hGcf7w6j+XvXMmgAooooAMUUGjNABRiiigAoozRQAUUUUAFFFFABRRUkEEl1OkMKNJK7BVRRkkntQAW9vLdzJDDG0srkKqKMkmvWPB3wyg00Jd6qq3F31WA8pH9fU/pWl4G8DxeGrYT3CrJqTj5n6iMf3V/qa6ygAAAAAHFHaiigA6UUUUALSUUtACUClpM0ABGRgjg1wPjH4ZQ6isl3pSrb3fVoOiSfT0P6V39FAHzRcW8tpO8M0bRSodrIwwQajr27xz4Hh8S2xnt1WPUox8r9BIP7rf0NeKzwSWs8kMyNHKjFWRhggjtQBHRRRQAUUUUAFFFFABRRRQAUUUdaACvWvhh4PFjbrq12n+kSr+4Vh9xD/ABfU/wAvrXF+AfDX/CR64gkUmzt8STeh9F/E/pmvdAAowOAOMUAKaSiloAKKTNHagApaSjNAC0lAooAMUtJmgUAFGMUUZ4oAWvPvif4PF9bPq9omLiEfv0UffQfxfUfy+legZoIDAg8g8YoA+ZaK6Xx94a/4RzW3Ea4s7jMkJ7D1X8D+mK5qgAooooAKKKKACiiigAoorZ8IaR/bniKytSu6Ivvk/wB0cn+WPxoA9c+HugjQ/DkO9dtzcDzpT9eg/AY/WumpOg7YooAXrSUtJQAUtJS0AJRRRQAuaKKSgBaKSloAKKSigBc0UUlAHNfELQRrvhyfYu64tx50R+nUfiM/jivCq+miOtfP3i/SP7D8RXtqBtjD74/91uR/PH4UAY1FFFABRRRQAUUUd6ACvSPg3p2+6v74j7irCp+pyf5D8683r2n4UWf2bwmsuMGeZ5Py+X/2WgDsqDQaKACij8KSgBaO1JS/hQAUUlFACikpfwooAM0Cij8KAEpe1FFABRRRQAV5Z8ZNO2XWn3yj76GFj9OR/M/lXqdcb8VrMXPhN5MZMEySD8fl/wDZqAPFqKKKACiiigAooooAK9+8DweR4R0tfWEP+fP9aKKAN2iiigApKKKACloooASloooAKSiigApaKKAEooooAXFJRRQAVh+OYPtHhLVF64hL/wDfPP8ASiigDwGiiigAooooA//Z":e.src=n}function k(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e.id,i=e.iconLink,o=e.thumbnailLink,a=e.accountId;e.shortcutDetails&&(r=e.shortcutDetails.targetId);var l=n.w,c=n.h;l||(l=64),c||(c=64);var s=null==i?void 0:i.replace("/16/","/".concat(l,"/"));if(o)if(function(e){var t,n,r,i,o,a;return"reader"===(null===(t=e.permissions)||void 0===t||null===(n=t.users)||void 0===n||null===(r=n.anyoneWithLink)||void 0===r?void 0:r.role)||"writer"===(null===(i=e.permissions)||void 0===i||null===(o=i.users)||void 0===o||null===(a=o.anyoneWithLink)||void 0===a?void 0:a.role)}(e))s="custom"===t?"https://drive.google.com/thumbnail?id=".concat(r,"&sz=w").concat(l,"-h").concat(c):"https://drive.google.com/thumbnail?id=".concat(r,"small"===t?"&sz=w300-h300":"medium"===t?"&sz=w600-h400":"large"===t?"&sz=w1024-h768":"full"===t?"&sz=w2048":"&sz=w300-h300");else if(o.includes("google.com")){var d="".concat(igd.ajaxUrl,"?action=igd_get_preview_thumbnail&id=").concat(r,"&size=").concat(t,"&accountId=").concat(a);"custom"===t&&(d+="&w=".concat(l,"&h=").concat(c)),s=d}else s="custom"===t?o.replace("=s220","=w".concat(l,"-h").concat(c)):"small"===t?o.replace("=s220","=w300-h300"):"medium"===t?o.replace("=s220","=h600-nu"):"large"===t?o.replace("=s220","=w1024-h768-p-k-nu"):"full"===t?o.replace("=s220",""):o.replace("=s220","=w200-h190-p-k-nu");return s}function N(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:wp.i18n.__("Upgrade to PRO to use this feature.","integrate-google-drive"),t=document.getElementById("igd-pro-modal");t||((t=document.createElement("div")).id="igd-pro-modal",document.body.appendChild(t)),ReactDOM.render(React.createElement(s,{text:e}),t)}function j(){var e=v(React.useState(!1),2),t=e[0],n=e[1];return React.useEffect((function(){n(!0)}),[]),t}function P(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(!r||r.preview){n=n.filter((function(e){return!b(e)}));var a=!r||!1!==r.inlinePreview,l=n.find((function(e){return e.id===t}));if(!a&&l&&l.webViewLink)window.open(l.webViewLink,"_blank");else{var c=!r||!!r.download,s=!r||r.allowPreviewPopout,d=!!r&&r.comment,u=n.map((function(e){var t=e.id,n=e.name,i=e.iconLink,a=e.accountId,l=e.exportAs,s=e.exportLinks,u=e.webContentLink,f=e.description,m=S(e),p=C(e),g="";if(l&&c&&(s||u)){g="".concat(igd.ajaxUrl,"?action=igd_download&id=").concat(e.id,"&accountId=").concat(e.accountId);var v=Object.keys(l);if(v.length){var h=l[v[0]].mimetype;g+="&mimetype=".concat(h)}}var w={thumb:k(e,"small"),downloadUrl:g,subHtml:o?"<h4>".concat(n,"</h4>").concat(f?"<p>".concat(f,"</p>"):""):'<div class="item-name">\n                      <img src="'.concat(null==i?void 0:i.replace("/16/","/32/"),'" alt="').concat(n,'" />\n                      <span>').concat(n,"</span>\n                  </div>")};if(d){var y="".concat(window.location.protocol,"//").concat(window.location.host).concat(window.location.pathname),b="".concat(y,"?id=").concat(t);"disqus"===r.commentMethod?(w.disqusIdentifier=t,w.disqusUrl=b):w.fbHtml='<div class="fb-comments" data-href="'.concat(b,'" data-width="400" data-numposts="5"></div>')}if(m){w.poster=k(e,"large");var _=A(e)?"video/mp4":"audio/mp3";w.video='{"source": [{"src":"'.concat(igd.ajaxUrl,"?action=igd_stream&id=").concat(t,"&accountId=").concat(a,'", "type":"').concat(_,'"}], "attributes": {"preload": "auto","playsinline": true, "autoplay": true, "controls": true, "referrerpolicy": "no-referrer"}}')}else p?w.src=k(e,"full"):(w.iframe=!0,w.iframeTitle=n,w.src="".concat(igd.ajaxUrl,"?action=igd_preview&file_id=").concat(t,"&account_id=").concat(a,"&popout=").concat(!r||!!r.allowPreviewPopout));return w})),f=function(){document.body.style.overflow="hidden"},m=function t(){document.body.style.overflow="",e.target.removeEventListener("lgBeforeOpen",f),e.target.removeEventListener("lgAfterClose",t),e.target.removeEventListener("lgSlideItemLoad",w)};window.dynamicGallery&&(e.target.removeEventListener("lgBeforeOpen",f),e.target.removeEventListener("lgAfterClose",m),e.target.removeEventListener("lgSlideItemLoad",w),window.dynamicGallery.destroy(!0));var p=window.innerWidth<768,g=[lgThumbnail,lgZoom,lgVideo];d&&g.push(lgComment),p||g.push(lgFullscreen);var v={dynamic:!0,dynamicEl:u,plugins:g,addClass:"igd-lightbox ".concat(c?"":"no-download"," ").concat(o?"gallery-lightbox":""," "),counter:o,autoplayVideoOnSlide:!0,preload:3,mobileSettings:{showCloseIcon:!0,thumbWidth:60,thumbHeight:60,download:!0,controls:!0}};o?v.allowMediaOverlap=!0:v.appendSubHtmlTo=".lg-outer",d&&(v.commentBox=!0,"disqus"===r.commentMethod?v.disqusComments=!0:v.fbComments=!0),window.dynamicGallery=lightGallery(e.target,v),e.target.addEventListener("lgBeforeOpen",f),e.target.addEventListener("lgAfterClose",m),e.target.addEventListener("lgSlideItemLoad",w),i&&i.downloadNotification&&document.addEventListener("click",(function(e){e.target.classList.contains("lg-download")&&wp.ajax.post("igd_notification",{files:[l],notifications:i,type:"download"})}),!1);var h=n.findIndex((function(e){return e.id===t}));dynamicGallery.openGallery(h)}}function w(){var e=document.querySelector(".lg-current");if(e){var t=e.querySelector(".igd-hidepopout");s||t||e.insertAdjacentHTML("beforeend",'<div class="igd-hidepopout">&nbsp;</div>')}}}var I=function(){var e=window.IgdShortcode;Array.from(document.querySelectorAll(".igd")).forEach((function(t){var n=t.dataset.shortcodeData;if(n)try{var r=JSON.parse(decodeURIComponent(atob(n).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join("")));ReactDOM.render(React.createElement(e,{data:r}),t)}catch(e){console.error("Could not parse the shortcode data",e)}}))};function T(e){return btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,(function(e,t){return String.fromCharCode("0x"+t)})))}function L(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:igd.activeAccount;return t.root_id!==e&&x(e,t)}function B(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"550",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"600",n=window.screenLeft||window.screenX,r=window.screenTop||window.screenY,i=n+(window.innerWidth||document.documentElement.clientWidth||screen.width)/2-e/2,o=r+(window.innerHeight||document.documentElement.clientHeight||screen.height)/2-t/2,a=window.open(igd.authUrl,"newwindow","width=".concat(e,",height=").concat(t,",left=").concat(i,",top=").concat(o));a.focus&&a.focus()}function D(e,t){var n=U(e,t);return"igd_last_folder_".concat(n)}function U(e,t){var n="",r=window.location.pathname.replace(/\//g,"_");if(e||"undefined"==typeof pagenow||(r=pagenow.replace(/\//g,"_")),t)n+=t.id;else if(e){n=e.filter((function(e){return b(e)})).map((function(e){var t;return null===(t=e.id)||void 0===t?void 0:t.slice(0,3)})).join("_")}return"".concat(n,"_").concat(r)}function M(e,t,n){if(e){var r=D(t,n);sessionStorage.setItem(r,JSON.stringify(p(p({},e),{},{pageNumber:0})))}}function z(e,t){var n=D(e,t);sessionStorage.removeItem(n)}function K(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=(e=new Date(e)).getFullYear(),r=("0"+(e.getMonth()+1)).slice(-2),i=("0"+e.getDate()).slice(-2);if(t){var o=e.getHours(),a=o<12?"AM":"PM",l=0===o?12:o>12?o-12:o,c=("0"+e.getMinutes()).slice(-2);return"".concat(n,"-").concat(r,"-").concat(i," ").concat(("0"+l).slice(-2),":").concat(c," ").concat(a)}return"".concat(n,"-").concat(r,"-").concat(i)}function H(){var e;return e=u().mark((function e(){var t,n,r,i;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=localStorage.getItem("igd_last_review_popup"),n=Number(localStorage.getItem("igd_remind_in_days"))||2,r=(new Date).getTime(),i=24*n*60*60*1e3,!(t&&r-t<=i)){e.next=6;break}return e.abrupt("return");case 6:return localStorage.setItem("igd_last_review_popup",(new Date).getTime()),e.next=9,Swal.fire({title:wp.i18n.__("Are You Enjoying This Plugin?","integrate-google-drive"),text:wp.i18n.__("Your feedback helps us create a better experience for you.","integrate-google-drive"),icon:"question",showDenyButton:!0,confirmButtonText:wp.i18n.__("Yes, I'm enjoying it","integrate-google-drive"),denyButtonText:wp.i18n.__("Not really","integrate-google-drive"),reverseButtons:!0,allowOutsideClick:!1,allowEscapeKey:!1,showCloseButton:!0,customClass:{container:"igd-swal igd-review-swal"}}).then((function(e){e.isConfirmed?Swal.fire({title:wp.i18n.__("We're glad to hear that!","integrate-google-drive"),text:wp.i18n.__("Would you mind taking a few minutes to rate us and write a review?","integrate-google-drive"),icon:"success",showDenyButton:!0,confirmButtonText:wp.i18n.__("Sure, I'd be happy to","integrate-google-drive"),denyButtonText:wp.i18n.__("Maybe later","integrate-google-drive"),reverseButtons:!0,allowOutsideClick:!1,allowEscapeKey:!1,customClass:{container:"igd-swal igd-review-swal"}}).then((function(e){e.isConfirmed?(window.open("https://wordpress.org/support/plugin/integrate-google-drive/reviews/?filter=5#new-post","_blank"),wp.ajax.post("igd_hide_review_notice")):e.isDenied&&localStorage.setItem("igd_remind_in_days",10)})):e.isDenied&&Swal.fire({title:wp.i18n.__("Sorry to hear that!","integrate-google-drive"),text:wp.i18n.__("Could you please provide us with some feedback to help us improve?","integrate-google-drive"),input:"textarea",inputPlaceholder:wp.i18n.__("Enter your feedback here...","integrate-google-drive"),showCancelButton:!1,confirmButtonText:wp.i18n.__("Submit","integrate-google-drive"),showLoaderOnConfirm:!0,showCloseButton:!0,allowOutsideClick:!1,allowEscapeKey:!1,customClass:{container:"igd-swal igd-review-swal"}}).then((function(e){e.isConfirmed?(Swal.fire({title:wp.i18n.__("Thank you for your feedback!","integrate-google-drive"),text:wp.i18n.__("We'll use your feedback to improve our plugin.","integrate-google-drive"),icon:"info",customClass:{container:"igd-swal igd-review-swal"}}),wp.ajax.post("igd_review_feedback",{feedback:e.value})):e.isDismissed&&wp.ajax.post("igd_hide_review_notice")}))}));case 9:e.sent;case 10:case"end":return e.stop()}}),e)})),H=function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){f(o,r,i,a,l,"next",e)}function l(e){f(o,r,i,a,l,"throw",e)}a(void 0)}))},H.apply(this,arguments)}function W(e){var t=document.createElement("textarea");return t.innerHTML=e,t.value}function Q(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return q(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return q(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function q(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var V=React,G=V.useState,J=V.useRef,Y=V.useEffect,X=V.useContext;function Z(){var e=X(t),n=e.isSearch,r=e.searchFiles,i=e.setFiles,o=e.listFiles,a=e.activeFolder,l=e.setIsSearchResults,c=e.initFolders,s=e.searchKeyword,d=e.setSearchKeyword,u=e.initialSearchTerm,f=J(null),m=Q(G(!1),2),p=m[0],g=m[1],v=J(),h=Q(G(n||u),2),w=h[0],y=h[1],b=function(e){if(e&&e.preventDefault(),g(!1),l(!1),!s)return Swal.fire({title:wp.i18n.__("Error","integrate-google-drive"),text:wp.i18n.__("Please enter a keyword to search","integrate-google-drive"),icon:"error",confirmButtonText:"Ok",customClass:{container:"igd-swal"}}),void g(!0);r(s)},_=j();return Y((function(){if(_&&s&&!(s.length<5))return f.current=setTimeout((function(){b()}),1500),function(){clearTimeout(f.current)}}),[s]),React.createElement("form",{ref:v,className:"header-action-item igd-search-bar ".concat(w?"active":""," ").concat(p?"error":""),onSubmit:b},(!n||n&&!!s)&&React.createElement("div",{className:"search-dismiss",onClick:function(){n||y(!w),d(""),g(!1),l(!1),a?o(a):i(c&&!n?c:[])}},React.createElement("svg",{width:"14",height:"14",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M1.5 1.5L10.5 10.5M1.5 10.5L10.5 1.5L1.5 10.5Z",stroke:"#BABABA",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),React.createElement("input",{type:"text",placeholder:wp.i18n.__("Enter a keyword to search","integrate-google-drive"),value:s,onChange:function(e){d(e.target.value)}}),React.createElement("div",{className:"search-submit",onClick:function(){var e;w?b():(y(!0),null===(e=v.current)||void 0===e||e.querySelector("input").focus())}},React.createElement("svg",{"data-tip":wp.i18n.__("Search","integrate-google-drive"),"data-for":"search",width:"20",height:"20",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("circle",{cx:"9.7659",cy:"9.76639",r:"8.98856",stroke:"#3D3D3D",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),React.createElement("path",{d:"M16.0176 16.4849L19.5416 19.9997",stroke:"#3D3D3D",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})),React.createElement(ReactTooltip,{id:"search",place:"bottom",effect:"solid",className:"igd-tooltip"})))}var $=React.useContext,ee=igd.settings.rememberLastFolder,te=void 0===ee||ee;function ne(){var e=$(t),n=e.breadcrumbs,r=e.initFolders,i=e.setFiles,o=e.activeFolder,a=e.setActiveFolder,l=e.setActiveFile,c=e.listFiles,s=e.initParentFolder,d=e.show,u=e.isShortcodeBuilder,f=e.activeAccount,m=e.setIsOptions,p=e.setActiveFiles,g=!!n&&Object.keys(n),v=g.length>2?g[0]:"",h=g.length>3?g.slice(1,-2):[],w=g.length?g.slice(-2):[],y=function(e){e.preventDefault(),e.stopPropagation(),m(!1),p([]),l(o),d(e)};return React.createElement("div",{className:"igd-breadcrumb"},React.createElement("div",{className:"breadcrumb-item",onClick:function(e){r?s?(a(s),c(s)):(a(null),i(r),te&&z(r,s)):(a(null),i([]),te&&z(r,s))}},React.createElement("i",{className:"dashicons dashicons-admin-home"}),React.createElement("span",{className:""},wp.i18n.__("Home","integrate-google-drive"))),!!o&&React.createElement(React.Fragment,null,!!v&&React.createElement("div",{className:"breadcrumb-item ".concat(u||o.id!==v?"":"active"),onClick:function(e){o.id===v?y(e):c({id:v,name:n[v],accountId:o.accountId})}},React.createElement("span",null,W(n[v]))),!!h.length&&React.createElement(React.Fragment,null,React.createElement("div",{"data-tip":!0,"data-for":"collapsed_breadcrumbs",className:"breadcrumb-item"},React.createElement("i",{className:"dashicons dashicons-ellipsis"}),React.createElement("i",{className:"dashicons dashicons-arrow-right-alt2"})),React.createElement(ReactTooltip,{id:"collapsed_breadcrumbs",place:"bottom",type:"light",effect:"solid",event:"click",globalEventOff:"click",clickable:!0,className:"collapsed-breadcrumbs igd-tooltip",getContent:function(){return h.map((function(e){return React.createElement("div",{key:e,className:"collapsed-breadcrumbs-item",onClick:function(t){c({id:e,name:n[e],accountId:o.accountId})}},React.createElement("span",null,n[e]))}))}})),w.map((function(e){return React.createElement("div",{key:e,className:"breadcrumb-item ".concat(L(o.id,f)||u||o.id!==e?"":"active"),onClick:function(t){L(o.id,f)||(o.id===e?y(t):c({id:e,name:n[e],accountId:o.accountId}))}},React.createElement("span",null,W(n[e])))}))))}function re(e){return re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},re(e)}function ie(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function oe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ie(Object(n),!0).forEach((function(t){ae(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ie(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ae(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==re(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==re(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===re(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var le=React.useContext,ce=window.ReactTooltip;function se(){var e=le(t),n=e.shortcodeId,r=e.activeAccount,i=e.setActiveAccount,o=e.files,a=e.activeFiles,l=e.allFolders,c=e.getFiles,s=e.isShortcodeBuilder,d=e.initFolders,u=e.activeFolder,f=e.isSearch,m=e.setShowSidebar,p=e.sort,g=e.setSort,v=e.setActiveFile,h=e.permissions,w=e.notifications,y=e.showBreadcrumbs,b=e.isOptions,_=e.setIsOptions,E=e.showRefresh,R=e.showSorting,S=e.shortcodeBuilderType,A=e.isMobile,O=e.show,C=e.hideAll,x=e.setFiles,k=e.setAllFiles,j="gallery"===S,P=igd.isPro,I={name:wp.i18n.__("Name","integrate-google-drive"),size:wp.i18n.__("Size","integrate-google-drive"),created:wp.i18n.__("Created","integrate-google-drive"),updated:wp.i18n.__("Modified","integrate-google-drive")},T={asc:wp.i18n.__("Ascending","integrate-google-drive"),desc:wp.i18n.__("Descending","integrate-google-drive")};return React.createElement("div",{className:"igd-file-browser-header"},(!f||s)&&y&&React.createElement(ne,null),React.createElement("div",{className:"header-action"},A&&!s&&igd.isAdmin&&React.createElement("i",{className:"dashicons dashicons-menu-alt3 header-action-item sidebar-toggle",onClick:function(){return m((function(e){return!e}))}}),!!j&&!!h&&!!h.photoProof&&React.createElement("button",{className:"igd-btn btn-primary ".concat(a.length?"":"disabled"," photo-proofing-btn"),onClick:function(){h.photoProofMaxSelection>0&&a.length>h.photoProofMaxSelection?Swal.fire({title:wp.i18n.__("Error","integrate-google-drive"),text:wp.i18n.sprintf(wp.i18n.__("You can not select more than %s files.","integrate-google-drive"),h.photoProofMaxSelection),icon:"error",showConfirmButton:!0,confirmButtonText:wp.i18n.__("OK","integrate-google-drive"),customClass:{container:"igd-swal"}}):Swal.fire({title:wp.i18n.sprintf(wp.i18n.__("Approve Selection (%s selected)","integrate-google-drive"),a.length),text:wp.i18n.__("Are you sure you want to approve the selected files?","integrate-google-drive"),input:"textarea",inputValue:"",inputAttributes:{autocapitalize:"off",placeholder:wp.i18n.__("Enter a message to send to the author","integrate-google-drive")},showCancelButton:!1,confirmButtonText:wp.i18n.__("Approve","integrate-google-drive"),showLoaderOnConfirm:!0,showCloseButton:!0,customClass:{container:"igd-swal"},preConfirm:function(e){return wp.ajax.post("igd_photo_proof",{shortcode_id:n,message:e,selected:a,email:h.photoProofEmail}).done((function(){Swal.fire({title:"Sent!",text:"Your selected images have been sent to the author.",icon:"success",showConfirmButton:!1,timer:3e3,timerProgressBar:!0,toast:!0})})).fail((function(e){Swal.fire({title:"Error!",text:e.message,icon:"error",showConfirmButton:!0,confirmButtonText:"OK",customClass:{container:"igd-swal"}})}))}})},disabled:!a.length},React.createElement("i",{className:"dashicons dashicons-camera"}),React.createElement("span",null,wp.i18n.__("Send Selection","integrate-google-drive")),a.length>0&&React.createElement("span",{className:"selection-count"},"(",a.length,")")),!!a.length&&(!h||h.delete)&&React.createElement("div",{"data-tip":wp.i18n.__("Delete","integrate-google-drive"),"data-for":"delete",className:"header-action-item action-delete",onClick:function(){var e=a.map((function(e){return e.id})),t=a[0].accountId;Swal.fire({title:wp.i18n.__("Are you sure?","integrate-google-drive"),text:wp.i18n.sprintf(wp.i18n._n("You are about to delete the file.","You are about to delete %s files.",a.length,"integrate-google-drive"),a.length),icon:"warning",showCancelButton:!0,customClass:{container:"igd-swal"},confirmButtonText:wp.i18n.__("Yes, delete it!","integrate-google-drive"),cancelButtonText:wp.i18n.__("No, cancel!","integrate-google-drive"),reverseButtons:!0,showLoaderOnConfirm:!0,preConfirm:function(){return wp.ajax.post("igd_delete_files",{file_ids:e,account_id:t})}}).then((function(t){if(t.isConfirmed){w&&w.deleteNotification&&wp.ajax.post("igd_notification",{files:a,notifications:w,type:"delete"});var n=o.filter((function(t){return!e.includes(t.id)}));x(n),k((function(e){return oe(oe({},e),{},ae({},u.id,n))})),Swal.fire({title:wp.i18n.__("Deleted!","integrate-google-drive"),text:wp.i18n.sprintf(wp.i18n._n("File has been deleted.","%d files have been deleted.",a.length,"integrate-google-drive"),a.length),icon:"success",showConfirmButton:!1,timer:1500,timerProgressBar:!0,toast:!0,customClass:{container:"igd-swal"}})}}))}},React.createElement("img",{src:"".concat(igd.pluginUrl,"/assets/images/file-browser/delete.svg"),alt:"Delete Files"}),React.createElement(ce,{id:"delete",effect:"solid",place:"bottom",className:"igd-tooltip"})),(d||u)&&(!h||h.allowSearch||f)&&React.createElement(Z,null),E&&(!f||s)&&u&&React.createElement("div",{"data-tip":wp.i18n.__("Refresh","integrate-google-drive"),"data-for":"sync",className:"header-action-item action-update",onClick:function(){u&&c(u,"refresh")}},React.createElement("img",{src:"".concat(igd.pluginUrl,"/assets/images/file-browser/update.svg"),alt:"Sync Files"}),React.createElement(ce,{id:"sync",effect:"solid",place:"bottom",className:"igd-tooltip"})),R&&(!f||s)&&u&&React.createElement(React.Fragment,null,React.createElement("div",{"data-tip":wp.i18n.__("Sort","integrate-google-drive"),"data-for":"sort",className:"header-action-item action-sort"},React.createElement("img",{src:"".concat(igd.pluginUrl,"/assets/images/file-browser/sort.svg"),alt:"Sort"}),React.createElement(ce,{id:"sort",effect:"solid",place:"bottom",className:"igd-tooltip"})),React.createElement(ce,{id:"sort",type:"light",event:"click",globalEventOff:"click",className:"igd-sort-modal igd-tooltip",place:"bottom",border:!0,backgroundColor:"#fff",clickable:!0,borderColor:"#ddd",effect:"solid"},React.createElement("div",{className:"igd-sort-modal-inner"},React.createElement("div",{className:"igd-sort-modal-inner-section"},React.createElement("span",{className:"igd-sort-modal-inner-section-title"},wp.i18n.__("SORT BY","integrate-google-drive")),Object.keys(I).map((function(e){return React.createElement("div",{key:e,className:"sort-item ".concat(p.sortBy===e?"active":""),onClick:function(){return g(oe(oe({},p),{},{sortBy:e}))}},React.createElement("i",{className:"dashicons dashicons-saved"}),React.createElement("span",null,I[e]))}))),React.createElement("div",{className:"igd-sort-modal-inner-section"},React.createElement("span",{className:"igd-sort-modal-inner-section-title"},wp.i18n.__("SORT DIRECTION","integrate-google-drive")),Object.keys(T).map((function(e){return React.createElement("div",{key:e,className:"sort-item ".concat(p.sortDirection===e?"active":""),onClick:function(){return g((function(t){return oe(oe({},t),{},{sortDirection:e})}))}},React.createElement("i",{className:"dashicons dashicons-saved"}),React.createElement("span",null,T[e]))})))))),null!==b&&(s||(!j||j&&!!h&&!!h.download&&!!h.zipDownload)&&(!f||f&&!!o.length))&&React.createElement("div",{"data-tip":wp.i18n.__("Options","integrate-google-drive"),"data-for":"options",onClick:function(e){e.preventDefault(),v(null),_(!b),b?C():O(e)},className:"header-action-item action-options"},React.createElement("img",{src:"".concat(igd.pluginUrl,"/assets/images/file-browser/options.svg"),alt:"Options"}),React.createElement(ce,{id:"options",effect:"solid",place:"bottom",className:"igd-tooltip"})),(!d||l)&&React.createElement(React.Fragment,null,React.createElement("div",{className:"header-action-item action-accounts user-box","data-tip":!0,"data-for":"switch-account"},React.createElement("img",{referrerPolicy:"no-referrer",className:"user-image",src:r.photo,onError:function(e){return F(e.currentTarget,r.email)}}),React.createElement("img",{src:"".concat(igd.pluginUrl,"/assets/images/file-browser/arrow-down.svg"),className:"user-arrow"})),React.createElement(ce,{id:"switch-account",place:"bottom",type:"light",effect:"solid",event:"click",globalEventOff:"click",clickable:!0,border:!0,borderColor:"#ddd",resizeHide:!1,className:"user-box-modal-wrap igd-tooltip"},React.createElement("div",{className:"user-box-modal"},React.createElement("span",{className:"user-box-modal-title"},wp.i18n.__("Switch Account","integrate-google-drive")),Object.keys(igd.accounts).map((function(e){var t=igd.accounts[e],n=t.id,o=t.name,a=t.photo,l=t.email,c=r.id===n;return React.createElement("div",{key:e,className:"user-box-account ".concat(c?"active":""),onClick:function(){return i(igd.accounts[e])}},React.createElement("img",{referrerPolicy:"no-referrer",onError:function(e){return F(e.currentTarget,l)},src:a}),React.createElement("div",{className:"account-info"},React.createElement("span",{className:"account-name"},o),React.createElement("span",{className:"account-email"},l)),c&&React.createElement("i",{className:"dashicons dashicons-saved active-badge"}))})),!s&&!d&&React.createElement(React.Fragment,null,React.createElement("button",{"data-tip":"Multiple Accounts - PRO","data-for":"addAccountPromo",className:"igd-btn btn-primary",onClick:function(){P||!igd.accounts?igd.authUrl?B():window.location=igd.adminUrl+"/admin.php?page=integrate-google-drive-settings":N(wp.i18n.__("Upgrade to PRO to add multiple accounts.","integrate-google-drive"))}},React.createElement("i",{className:"dashicons dashicons-plus"}),React.createElement("span",null,wp.i18n.__("Add account","integrate-google-drive"))),!P&&!!igd.accounts&&React.createElement(ce,{id:"addAccountPromo",effect:"solid",place:"right",className:"igd-tooltip",backgroundColor:"#FDB837"})))))))}function de(e){return function(e){if(Array.isArray(e))return ue(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return ue(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ue(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ue(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function fe(e){var t=e.file,n=e.isSelected,r=e.selectedFolders,i=void 0===r?[]:r,o=e.setSelectedFolders;return React.createElement("button",{className:"select-btn ".concat(n?"active":""),onClick:function(e){e.preventDefault(),e.stopPropagation(),o(n?de(i.filter((function(e){return e.id!=t.id}))):[].concat(de(i),[t]))}},React.createElement("i",{className:"dashicons ".concat(n?"dashicons-no":"dashicons-plus")}),React.createElement("span",null,n?wp.i18n.__("Remove","integrate-google-drive"):wp.i18n.__("Select","integrate-google-drive")))}var me=React.useContext;function pe(){var e=me(t),n=e.activeAccount,r=e.initFolders,i=e.activeFolder,o=e.setActiveFolder,a=e.selectedFolders,l=e.shortcodeBuilderType,c=e.listFiles,s=e.setSelectedFolders,d=e.isList,u=e.selectionType,f="uploader"===l,m="embed"===l,p="view"===l,g="download"===l,v="slider"===l,h=n.root_id,w=E(!1,n);r&&(w=w.filter((function(e){return r.includes(e.id)})));var y=l&&!p&&!g&&!m&&!v;return f?y=!a.length||a[0].id===h:"parent"===u&&(y=!0),w.map((function(e){var t=e.id,n=e.name,r=e.iconLink,l=a&&!!a.find((function(e){return e.id===t}));return React.createElement("div",{key:t,className:"".concat(t===(null==i?void 0:i.id)?"active":""," file-item root-item folder-item"),onClick:function(t){t.stopPropagation(),o(e),c(e)}},React.createElement("img",{src:r,alt:n}),React.createElement("span",null,n),y&&h===t&&React.createElement(fe,{file:e,isSelected:l,selectedFolders:a,setSelectedFolders:s,isList:d}))}))}var ge=window.React,ve=ge.useRef,he=ge.useContext;function we(){var e=he(t),n=e.activeAccount,r=e.activeFolder,i=e.isUpload,o=e.setIsUpload,a=e.isMobile,l=e.setShowSidebar,c=n.storage,s=void 0===c?{}:c,d=Math.round(100*s.usage/s.limit),u=!(!r||x(r.id,n)&&n.root_id!==r.id),f=ve(null);return React.createElement("div",{ref:f,className:"igd-sidebar-wrap"},React.createElement("div",{className:"igd-sidebar"},React.createElement("div",{className:"sidebar-uploader"},React.createElement("button",{id:"igd_upload_files",disabled:!u,className:"".concat(i?"active":u?"":"disabled"," igd-btn"),onClick:function(){o((function(e){return!e})),a&&l(!1)}},React.createElement("i",{className:"dashicons dashicons-cloud-upload"}),React.createElement("span",null,wp.i18n.__("Upload Files","integrate-google-drive")))),React.createElement("div",{className:"sidebar-folders"},React.createElement(pe,null)),React.createElement("div",{className:"storage-info-wrap"},React.createElement("i",{className:"dashicons dashicons-database"}),React.createElement("div",{className:"storage-info"},React.createElement("div",{className:"storage-info-sidebar"},React.createElement("div",{style:{width:"".concat(d,"%")},className:"storage-info-fill ".concat(d>90?"fill-danger":"")})),React.createElement("span",null,y(s.usage)," of ",y(s.limit)," used")))))}function ye(e){return ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ye(e)}function be(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?be(Object(n),!0).forEach((function(t){Ee(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):be(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ee(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==ye(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==ye(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ye(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Re(e){return function(e){if(Array.isArray(e))return Oe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ae(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Se(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return l}}(e,t)||Ae(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ae(e,t){if(e){if("string"==typeof e)return Oe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Oe(e,t):void 0}}function Oe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ce=React,xe=Ce.useState,Fe=Ce.useEffect,ke=Ce.useRef,Ne=Ce.useContext;function je(){var e=Ne(t),n=e.account,r=void 0===n?igd.activeAccount:n,i=e.notifications,o=e.folders,a=e.filters,l=e.maxFiles,c=e.maxFileSize,s=e.minFileSize,d=e.activeFolder,u=e.isUpload,f=e.setIsUpload,m=e.isFormUploader,p=e.isRequired,g=e.showUploadLabel,v=e.uploadLabelText,h=e.uploadFileName,w=e.isWooCommerceUploader,y=e.wcItemId,E=e.wcOrderId,S=e.wcProductId,A=e.initUploadedFiles,O=void 0===A?[]:A,C=e.setFiles,x=e.setAllFiles,F=e.enableFolderUpload,k=void 0===F?!!d:F,N=e.uploadImmediately,j=void 0===N?!!d||w:N,P=e.overwrite,I=e.showUploadConfirmation,T=e.uploadConfirmationMessage,L=a||{},B=L.allowExtensions,D=L.allowAllExtensions,U=L.allowExceptExtensions,M=Se(xe(O),2),z=M[0],K=M[1],H=Se(xe(O),2),W=H[0],Q=H[1],q=Se(xe([]),2),V=q[0],G=q[1],J=Se(xe([]),2),Y=J[0],X=J[1],Z=Se(xe(0),2),$=Z[0],ee=Z[1],te=Se(xe(!1),2),ne=te[0],re=te[1],ie=Se(xe([]),2),oe=ie[0],ae=ie[1],le=ke(null),ce=ke(null),se=ke(null),de=d;if(!de){var ue=o?o.filter((function(e){return b(e)})):[];de=ue&&ue.length?ue[0]:{id:"root",accountId:r.id}}var fe=function(e){if(e){var t=le.current.files,n=t.findIndex((function(t){return t.id===e.id}))+1;n<t.length&&ve(t[n])}},me=function(e,t,n){if(!e)return n(!0);var r=t.name.split(".").pop();(D?!e.split(",").map((function(e){return e.trim()})).includes(r):e.split(",").map((function(e){return e.trim()})).includes(r))?n(!0):(this.trigger("Error",{code:"EXT_ERROR",file:t}),n(!1))},pe=function(e,t,n){if(!(e=1024*e*1024))return n(!0);t.size<e?(this.trigger("Error",{code:"SIZE_MIN_ERROR",file:t}),n(!1)):n(!0)},ge=function(e,t,n){if(!e)return n(!0);var r=this.files.length;O.length&&(r=ce.current.querySelectorAll(".file-list-item.uploaded").length),r>=e?(this.trigger("Error",{code:"FILES_MAX_ERROR",file:t}),n(!1)):n(!0)},ve=function(e){le.current.stop(),ee(0),G((function(t){return t.find((function(t){return t.id===e.id}))?t:[].concat(Re(t),[e])}));var t=R(e);wp.ajax.post("igd_get_upload_url",{data:{name:e.name,queueIndex:e.status,uploadFileName:h,size:e.size,type:e.type,folderId:de.id,accountId:de.accountId,path:t&&t.substring(0,t.lastIndexOf("/")+1),fileId:e.id,overwrite:P,isWooCommerceUploader:w,wcProductId:S,wcOrderId:E,wcItemId:y}}).done((function(e){le.current.setOption("url",e),le.current.start()})).fail((function(t){console.log(t),fe(e),X(Y.filter((function(t){return t.id!==e.id}))),G(Y.filter((function(t){return t.id!==e.id}))),ee(0),K((function(n){return n.map((function(n){return n.id===e.id&&(n.error=t.error),n}))}))}))},he=function(){var e={browse_button:ce.current.querySelector(".browse-files"),drop_element:ce.current,multipart:!1,multi_selection:!l||l>1,filters:{max_files:l,file_ext:D?U:B,max_file_size:c?"".concat(parseInt(c),"mb"):0,min_file_size:s},init:{FilesAdded:function(e,t){re(!1),K((function(e){return[].concat(Re(e),Re(t))})),X((function(e){return[].concat(Re(e),Re(t))})),G((function(e){var n=Re(e);return j&&!e.length&&(ve(t[0]),n=[].concat(Re(e),[t[0]])),n}))},FilesRemoved:function(e,t){X((function(e){return e.filter((function(e){return!t.find((function(t){return t.id===e.id}))}))})),K((function(e){return e.filter((function(e){return!t.find((function(t){return t.id===e.id}))}))}))},FileUploaded:function(e,t,n){!function(e,t){fe(e);var n=JSON.parse(t.response);if(n){var r={file:n=_e(_e({},n),{},{type:n.mimeType,accountId:de.accountId,pluploadId:e.id,path:k&&R(e)})};w&&(r.wcOrderId=E,r.wcItemId=y,r.wcProductId=S),Q((function(e){return[].concat(Re(e),[n])})),X((function(t){return t.filter((function(t){return t.id!==e.id}))})),wp.ajax.post("igd_file_uploaded",r).done((function(e){C&&(C((function(t){return[e].concat(Re(t))})),x((function(t){return _e(_e({},t),{},Ee({},de.id,[e].concat(Re(t[de.id]))))})))}))}}(t,n)},UploadProgress:function(e,t){ee(t.percent)},UploadComplete:function(){G([]),X([]),setTimeout((function(){re(!0)}),!m&&I?1e3:0)},Error:function(e,t){return function(e,t){var n;switch(e){case-600:n=wp.i18n.__("File size exceeds the maximum upload size.","integrate-google-drive")+"(".concat(c?"".concat(parseInt(c),"mb"):0,")");break;case"SIZE_MIN_ERROR":n=wp.i18n.__("File size is less than the minimum upload size.","integrate-google-drive")+"(".concat(s,"mb)");break;case"EXT_ERROR":n=wp.i18n.__("This file type is not allowed","integrate-google-drive");break;case"FILES_MAX_ERROR":n=wp.i18n.__("You can not upload more than","integrate-google-drive")+" ".concat(l," ").concat(wp.i18n.__("files","integrate-google-drive"));break;default:n=t.error}t.error=n,K((function(e){var n=e.findIndex((function(e){return e.id===t.id}));if(n>-1){var r=Re(e);return r[n]=t,r}return[].concat(Re(e),[t])}))}(t.code,t.file)}}};return!D&&B&&(e.filters.mime_types=[{title:"Allowed files",extensions:B}]),e},we=function(){if(plupload.buildUrl=function(e){return e},plupload.addFileFilter("file_ext",me),plupload.addFileFilter("min_file_size",pe),plupload.addFileFilter("max_files",ge),le.current=new plupload.Uploader(he()),le.current.init(),k){var e=new mOxie.FileInput({browse_button:ce.current.querySelector(".browse-folder"),directory:!0});e.init(),e.onchange=function(){le.current.addFile(e.files)}}};Fe((function(){return we(),function(){le.current&&le.current.destroy()}}),[]);var ye=function(){if(jQuery){var e=jQuery,t=e(ce.current).closest("form");if(t.length){var n=e(ce.current).parent().next(".upload-file-list"),r=function(e){return e.map((function(e){return{id:e.id,accountId:e.accountId,name:e.name,iconLink:e.iconLink,thumbnailLink:e.thumbnailLink,size:e.size,parents:e.parents,path:k&&e.path}}))}(W);if(["metform","elementor","ninjaforms","cf7"].includes(m)){var i=r.map((function(e){var t="https://drive.google.com/file/d/".concat(e.id,"/view");return"".concat(e.name," — ( ").concat(t," )")})).join(", \n\n");n.val(i).change()}else n.val(JSON.stringify(r)).change();if(t.trigger("change"),!j){var o=t.find(":submit");o.length?(o.is("input")?o.val(se.current):o.text(se.current),o.trigger("click")):t.submit()}}}};Fe((function(){ne&&W.length&&(i&&i.uploadNotification&&wp.ajax.post("igd_notification",{files:W,notifications:i,type:"upload"}),m&&ye())}),[ne]),Fe((function(){if(Y.length&&!V.length&&m&&!j&&ce.current){var e=jQuery(ce.current).closest("form");if(e.length){var t=jQuery(e).find(":submit");if(t.length){var n=t.parent();t.addClass("igd-disabled");var r=function(e){e.preventDefault();var n=t.is("input");se.current=t.is("input")?t.val():t.text(),n?t.val(wp.i18n.__("Uploading Files...","integrate-google-drive")):t.text(wp.i18n.__("Uploading Files...","integrate-google-drive")),ve(Y[0])};return n.on("click",r),function(){t&&(n.off("click",r),t.removeClass("igd-disabled"))}}}}}),[Y]),Fe((function(){if(m){var e=jQuery(ce.current).closest("form"),t=function(e){K([]),X([]),G([]),Q([])};return e.on("reset",t),function(){return e.off("reset",t)}}}),[]);var be=!m&&!w&&!j&&I&&W.length&&ne,Ae=Y.length||z.filter((function(e){return!e.error})).length,Oe=Y.length?j||V.length?wp.i18n.__("Item(s) Uploading...","integrate-google-drive"):wp.i18n.__("Item(s) Selected","integrate-google-drive"):wp.i18n.__("Item(s) Uploaded","integrate-google-drive");return React.createElement("div",{onDragEnter:function(){return ce.current.classList.add("drag-active")},onDragLeave:function(){return ce.current.classList.remove("drag-active")},onDrop:function(){return ce.current.classList.remove("drag-active")},ref:ce,className:"igd-file-uploader igd-module-uploader ".concat(m?" igd-form-uploader":""," ").concat(!p||Y.length||z.length?"":"required-error","  ").concat(be?"show-confirmation":""," ")},React.createElement("div",{className:"igd-file-uploader-body"},!!be&&React.createElement("div",{className:"upload-confirmation"},React.createElement("div",{className:"upload-confirmation-message",dangerouslySetInnerHTML:{__html:T}}),(!l||l>W.length)&&React.createElement("button",{type:"button",className:"igd-btn btn-primary",onClick:function(){return re(!1)}},wp.i18n.__("Upload More Files","integrate-google-drive"))),React.createElement("div",{className:"igd-file-uploader-inner"},g&&React.createElement("h4",{className:"igd-file-uploader-label"},v),React.createElement("i",{className:"dashicons dashicons-cloud-upload"}),React.createElement("p",null,wp.i18n.__("Drag and drop files here","integrate-google-drive")),React.createElement("p",{className:"or"},wp.i18n.__("OR","integrate-google-drive")),React.createElement("div",{className:"igd-file-uploader-buttons"},React.createElement("button",{type:"button",className:"browse-files",onMouseOver:function(){navigator.userAgent.match(/(iPad|iPhone|iPod)/g)&&le.current.refresh()}},React.createElement("svg",{width:"24",height:"24",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M842.24 355.413333l-232.106667-256a42.666667 42.666667 0 0 0-31.573333-14.08h-298.666667A107.946667 107.946667 0 0 0 170.666667 192v640A107.946667 107.946667 0 0 0 279.893333 938.666667h464.213334A107.946667 107.946667 0 0 0 853.333333 832V384a42.666667 42.666667 0 0 0-11.093333-28.586667zM597.333333 213.333333l116.906667 128h-85.333333a33.706667 33.706667 0 0 1-31.573334-36.266666z m146.773334 640H279.893333a22.613333 22.613333 0 0 1-23.893333-21.333333v-640a22.613333 22.613333 0 0 1 23.893333-21.333333H512v134.4A119.04 119.04 0 0 0 627.626667 426.666667H768v405.333333a22.613333 22.613333 0 0 1-23.893333 21.333333z",fill:"currentColor"}),React.createElement("path",{d:"M597.333333 554.666667h-42.666666v-42.666667a42.666667 42.666667 0 0 0-85.333334 0v42.666667h-42.666666a42.666667 42.666667 0 0 0 0 85.333333h42.666666v42.666667a42.666667 42.666667 0 0 0 85.333334 0v-42.666667h42.666666a42.666667 42.666667 0 0 0 0-85.333333z",fill:"currentColor"})),React.createElement("span",null,wp.i18n.__("Browse Files","integrate-google-drive"))),k&&React.createElement("button",{type:"button",className:"browse-folder",onMouseOver:function(){navigator.userAgent.match(/(iPad|iPhone|iPod)/g)&&le.current.refresh()}},React.createElement("svg",{width:"24",height:"24",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M597.333333 554.666667h-42.666666v-42.666667a42.666667 42.666667 0 0 0-85.333334 0v42.666667h-42.666666a42.666667 42.666667 0 0 0 0 85.333333h42.666666v42.666667a42.666667 42.666667 0 0 0 85.333334 0v-42.666667h42.666666a42.666667 42.666667 0 0 0 0-85.333333z",fill:"currentColor"}),React.createElement("path",{d:"M832 300.8h-298.666667L421.12 165.12a42.666667 42.666667 0 0 0-32.853333-15.786667H192A105.386667 105.386667 0 0 0 85.333333 253.013333v517.973334a105.386667 105.386667 0 0 0 106.666667 103.68h640a105.386667 105.386667 0 0 0 106.666667-103.68V404.48a105.386667 105.386667 0 0 0-106.666667-103.68z m21.333333 469.333333a19.626667 19.626667 0 0 1-21.333333 18.346667h-640a19.626667 19.626667 0 0 1-21.333333-18.346667V253.013333a19.626667 19.626667 0 0 1 21.333333-18.346666h176.213333l110.933334 135.68a42.666667 42.666667 0 0 0 32.853333 15.786666h320a19.626667 19.626667 0 0 1 21.333333 18.346667z",fill:"currentColor"})),React.createElement("span",null,wp.i18n.__("Browse Folder","integrate-google-drive")))),u&&React.createElement("i",{className:"cancel-upload dashicons dashicons-no",onClick:function(){return f(!1)}}),React.createElement("div",{className:"upload-info"},!!s&&React.createElement("span",{className:"max-size-label"},wp.i18n.__("Min File Size:","integrate-google-drive")," ",s,"MB"),!!c&&React.createElement("span",{className:"max-size-label"},wp.i18n.__("Max File Size:","integrate-google-drive")," ",c,"MB")))),!!z.length&&!be&&React.createElement("div",{className:"file-list-wrapper"},React.createElement("div",{className:"file-list-header"},React.createElement("span",{className:"file-count"},Ae),React.createElement("span",{className:"file-status-text"},Oe)),React.createElement("div",{className:"file-list"},Re(new Set(z)).map((function(e){var t=e.id,n=e.name,r=e.size,i=e.type,o=e.error,a=V.find((function(e){return e.id===t})),l=W.find((function(e){return e.id===t||e.pluploadId===t})),c=oe.find((function(e){return e.id===t})),s=R(e);return React.createElement("div",{key:t,className:"file-list-item ".concat(a?"active":""," ").concat(l?"uploaded":""),id:t},React.createElement("img",{width:32,height:32,src:_(i)}),React.createElement("div",{className:"file-info"},React.createElement("div",{className:"upload-item"},React.createElement("span",{className:"upload-item-name"},s||n),React.createElement("span",{className:"upload-item-size"},"(",plupload.formatSize(r),")")),React.createElement("div",{className:"file-info-percentage"},!!l&&React.createElement("i",{className:"dashicons dashicons-saved"}),!l&&a&&!o&&!c&&React.createElement("div",{className:"igd-spinner"}),!l&&!!a&&!!$&&React.createElement("span",{className:"percentage"},$,"%"),!l&&a&&!c&&!o&&React.createElement("i",{className:"dashicons dashicons-controls-pause",onClick:function(){le.current.stop(),ae([].concat(Re(oe),[e]))}}),!l&&c&&!o&&React.createElement("i",{className:"dashicons dashicons-controls-play",onClick:function(){le.current.start(),ae(oe.filter((function(e){return e.id!==t})))}}),React.createElement(React.Fragment,null,React.createElement("i",{"data-tip":wp.i18n.__("Remove","integrate-google-drive"),"data-for":"remove-file",className:"remove-file dashicons dashicons-no-alt",onClick:function(){if(K((function(e){return e.filter((function(e){return e.id!==t}))})),X((function(e){return e.filter((function(e){return e.id!==t}))})),le.current.removeFile(e),l){Q((function(e){return e.filter((function(e){return e.id!==l.id}))}));var n={id:l.id,account_id:l.accountId,nonce:igd.nonce};w&&(n.isWooCommerceUploader=!0,n.wcProductId=S,n.wcOrderId=E,n.wcItemId=y),wp.ajax.post("igd_upload_remove_file",n)}else a&&(le.current.stop(),ee(0),fe(e)),le.current.removeFile(e),le.current.setOption("url",""),G((function(e){return e.filter((function(e){return e.id!==t}))}))}}),React.createElement(ReactTooltip,{id:"remove-file",effect:"solid",place:"top",className:"igd-tooltip"}))),o?React.createElement("span",{className:"file-info-error"},o):React.createElement("span",{className:"file-info-progress",style:{"--percentage":a?"".concat($||2,"%"):0}},React.createElement("span",{className:"file-info-progress-bar"}))))}))),!!Y.length&&!m&&!w&&!j&&React.createElement("button",{type:"button",className:"igd-btn btn-primary start-upload",onClick:function(){return ve(Y[0])}},React.createElement("i",{className:"dashicons dashicons-cloud-upload"}),V.length?wp.i18n.__("Uploading Files...","integrate-google-drive"):wp.i18n.__("Start Upload","integrate-google-drive"))))}const Pe=React;var Ie=n.n(Pe),Te=n(884),Le=n.n(Te),Be=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];e.call(t,i[1],i[0])}},t}()}(),De="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,Ue=void 0!==n.g&&n.g.Math===Math?n.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),Me="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(Ue):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var ze=["top","right","bottom","left","width","height","size","weight"],Ke="undefined"!=typeof MutationObserver,He=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,i=0;function o(){n&&(n=!1,e()),r&&l()}function a(){Me(o)}function l(){var e=Date.now();if(n){if(e-i<2)return;r=!0}else n=!0,r=!1,setTimeout(a,t);i=e}return l}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){De&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Ke?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){De&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;ze.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),We=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},Qe=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||Ue},qe=Ze(0,0,0,0);function Ve(e){return parseFloat(e)||0}function Ge(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+Ve(e["border-"+n+"-width"])}),0)}function Je(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return qe;var r=Qe(e).getComputedStyle(e),i=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var i=r[n],o=e["padding-"+i];t[i]=Ve(o)}return t}(r),o=i.left+i.right,a=i.top+i.bottom,l=Ve(r.width),c=Ve(r.height);if("border-box"===r.boxSizing&&(Math.round(l+o)!==t&&(l-=Ge(r,"left","right")+o),Math.round(c+a)!==n&&(c-=Ge(r,"top","bottom")+a)),!function(e){return e===Qe(e).document.documentElement}(e)){var s=Math.round(l+o)-t,d=Math.round(c+a)-n;1!==Math.abs(s)&&(l-=s),1!==Math.abs(d)&&(c-=d)}return Ze(i.left,i.top,l,c)}var Ye="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof Qe(e).SVGGraphicsElement}:function(e){return e instanceof Qe(e).SVGElement&&"function"==typeof e.getBBox};function Xe(e){return De?Ye(e)?function(e){var t=e.getBBox();return Ze(0,0,t.width,t.height)}(e):Je(e):qe}function Ze(e,t,n,r){return{x:e,y:t,width:n,height:r}}var $e=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Ze(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=Xe(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),et=function(e,t){var n,r,i,o,a,l,c,s=(r=(n=t).x,i=n.y,o=n.width,a=n.height,l="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,c=Object.create(l.prototype),We(c,{x:r,y:i,width:o,height:a,top:i,right:r+o,bottom:a+i,left:r}),c);We(this,{target:e,contentRect:s})},tt=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new Be,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof Qe(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new $e(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof Qe(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new et(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),nt="undefined"!=typeof WeakMap?new WeakMap:new Be,rt=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=He.getInstance(),r=new tt(t,n,this);nt.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){rt.prototype[e]=function(){var t;return(t=nt.get(this))[e].apply(t,arguments)}}));const it=void 0!==Ue.ResizeObserver?Ue.ResizeObserver:rt;function ot(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function at(){return at=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},at.apply(this,arguments)}function lt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){ot(e,t,n[t])}))}return e}function ct(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function st(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==l.return||l.return()}finally{if(i)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var dt={cursor:"pointer"},ut=function(e){var t=e.index,n=e.onClick,r=e.photo,i=e.margin,o=e.direction,a=e.top,l=e.left,c=e.key,s={margin:i,display:"block"};"column"===o&&(s.position="absolute",s.left=l,s.top=a);return Ie().createElement("img",at({key:c,style:n?lt({},s,dt):s},r,{onClick:n?function(e){n(e,{photo:r,index:t})}:null}))},ft=Le().shape({key:Le().string,src:Le().string.isRequired,width:Le().number.isRequired,height:Le().number.isRequired,alt:Le().string,title:Le().string,srcSet:Le().oneOfType([Le().string,Le().array]),sizes:Le().oneOfType([Le().string,Le().array])});ut.propTypes={index:Le().number.isRequired,onClick:Le().func,photo:ft.isRequired,margin:Le().number,top:function(e){if("column"===e.direction&&"number"!=typeof e.top)return new Error("top is a required number when direction is set to `column`")},left:function(e){if("column"===e.direction&&"number"!=typeof e.left)return new Error("left is a required number when direction is set to `column`")},direction:Le().string};var mt=function(e,t){return t||(t=0),Number(Math.round(e+"e"+t)+"e-"+t)},pt=function(e){var t=e.width,n=e.height;return mt(t/n,2)};function gt(e){this.content=[],this.scoreFunction=e}gt.prototype={push:function(e){this.content.push(e),this.bubbleUp(this.content.length-1)},pop:function(){var e=this.content[0],t=this.content.pop();return this.content.length>0&&(this.content[0]=t,this.sinkDown(0)),e},remove:function(e){for(var t=this.content.length,n=0;n<t;n++)if(this.content[n]==e){var r=this.content.pop();if(n==t-1)break;this.content[n]=r,this.bubbleUp(n),this.sinkDown(n);break}},size:function(){return this.content.length},bubbleUp:function(e){for(var t=this.content[e],n=this.scoreFunction(t);e>0;){var r=Math.floor((e+1)/2)-1,i=this.content[r];if(n>=this.scoreFunction(i))break;this.content[r]=t,this.content[e]=i,e=r}},sinkDown:function(e){for(var t=this.content.length,n=this.content[e],r=this.scoreFunction(n);;){var i=2*(e+1),o=i-1,a=null;if(o<t){var l=this.content[o],c=this.scoreFunction(l);c<r&&(a=o)}if(i<t){var s=this.content[i];this.scoreFunction(s)<(null==a?r:c)&&(a=i)}if(null==a)break;this.content[e]=this.content[a],this.content[a]=n,e=a}}};var vt=function(e,t,n){var r=function(e,t,n){var r={},i={},o={};o[t]=0;var a=new gt((function(e){return e.weight}));for(a.push({id:t,weight:0});a.size();){var l=a.pop(),c=l.id;if(!i[c]){var s=e(c)||{};for(var d in i[c]=1,s){var u=l.weight+s[d];(void 0===o[d]||o[d]>u)&&(o[d]=u,a.push({id:d,weight:u}),r[d]=c)}}}if(void 0===o[n])throw new Error("There is no path from ".concat(t," to ").concat(n));return r}(e,t,n);return function(e,t){for(var n=[],r=t;r;)n.push(r),e[r],r=e[r];return n.reverse()}(r,n)},ht=function(e,t,n){return(t-e.length*(2*n))/e.reduce((function(e,t){return e+pt(t)}),0)},wt=function(e,t,n,r,i,o){var a=e.slice(t,n),l=ht(a,r,o);return Math.pow(Math.abs(l-i),2)},yt=function(e){var t=e.containerWidth,n=e.limitNodeSearch,r=e.targetRowHeight,i=e.margin,o=e.photos,a=function(e,t,n,r,i){return function(o){var a={};a[+(o=+o)]=0;for(var l=o+1;l<n.length+1&&!(l-o>r);++l)a[l.toString()]=wt(n,o,l,t,e,i);return a}}(r,t,o,n,i),l=vt(a,"0",o.length);l=l.map((function(e){return+e}));for(var c=1;c<l.length;++c)for(var s=o.slice(l[c-1],l[c]),d=ht(s,t,i),u=l[c-1];u<l[c];++u)o[u].width=mt(d*pt(o[u]),1),o[u].height=d;return o},bt=Ie().memo((function(e){var t=e.photos,n=e.onClick,r=e.direction,i=e.margin,o=e.limitNodeSearch,a=e.targetRowHeight,l=e.columns,c=e.renderImage,s=st((0,Pe.useState)(0),2),d=s[0],u=s[1],f=(0,Pe.useRef)(null);(0,Pe.useLayoutEffect)((function(){var e=null,t=new it((function(t){var n=t[0].contentRect.width;d!==n&&(e=window.requestAnimationFrame((function(){u(Math.floor(n))})))}));return t.observe(f.current),function(){t.disconnect(),window.cancelAnimationFrame(e)}}));var m=function(e,r){var i=r.index;n(e,{index:i,photo:t[i],previous:t[i-1]||null,next:t[i+1]||null})};if(!d)return Ie().createElement("div",{ref:f}," ");var p,g,v=d-1;"row"===r&&("function"==typeof o&&(o=o(d)),"function"==typeof a&&(a=a(d)),void 0===o&&(o=2,d>=450&&(o=function(e){var t=e.targetRowHeight,n=e.containerWidth;return mt(n/t/1.5)+8}({containerWidth:d,targetRowHeight:a}))),p={display:"flex",flexWrap:"wrap",flexDirection:"row"},g=yt({containerWidth:v,limitNodeSearch:o,targetRowHeight:a,margin:i,photos:t})),"column"===r&&("function"==typeof l&&(l=l(d)),void 0===l&&(l=1,d>=500&&(l=2),d>=900&&(l=3),d>=1500&&(l=4)),p={position:"relative"},g=function(e){for(var t=e.photos,n=e.columns,r=e.containerWidth,i=e.margin,o=(r-2*i*n)/n,a=t.map((function(e){var t=e.height/e.width*o;return lt({},e,{width:mt(o,1),height:mt(t,1)})})),l=[],c=[],s=0;s<n;s++)l[s]=mt(s*(o+2*i),1),c[s]=0;var d=a.map((function(e){var t=c.reduce((function(e,t,n){return t<c[e]?n:e}),0);e.top=c[t],e.left=l[t],c[t]=c[t]+e.height+2*i;var n=c.reduce((function(e,t,n){return t>c[e]?n:e}),0);return e.containerHeight=c[n],e}));return d}({containerWidth:v,columns:l,margin:i,photos:t}),p.height=g[g.length-1].containerHeight);var h=c||ut;return Ie().createElement("div",{className:"react-photo-gallery--gallery"},Ie().createElement("div",{ref:f,style:p},g.map((function(e,t){var o=e.left,a=e.top,l=e.containerHeight,c=ct(e,["left","top","containerHeight"]);return h({left:o,top:a,key:e.key||e.src,containerHeight:l,index:t,margin:i,direction:r,onClick:n?m:null,photo:c})}))))}));bt.propTypes={photos:Le().arrayOf(ft).isRequired,direction:Le().string,onClick:Le().func,columns:Le().oneOfType([Le().func,Le().number]),targetRowHeight:Le().oneOfType([Le().func,Le().number]),limitNodeSearch:Le().oneOfType([Le().func,Le().number]),margin:Le().number,renderImage:Le().func},bt.defaultProps={margin:2,direction:"row",targetRowHeight:300};const _t=bt;var Et=React.useContext;function Rt(){var e=Et(t),n=e.isUpload,r=e.permissions,i=e.setIsUpload,o=e.isShortcodeBuilder,a=e.shortcodeBuilderType,l=e.files,c=!o&&(!a||"browser"===a)&&(!r||r.upload),s=wp.i18n.__("There is no items here.","integrate-google-drive"),d=wp.i18n.__("The folder is empty.","integrate-google-drive");return o&&l.length&&(s=wp.i18n.__("No items available for selection.","integrate-google-drive"),d=wp.i18n.__("This folder doesn't contain any selectable items.","integrate-google-drive")),React.createElement("div",{className:"igd-root-placeholder empty-folder-placeholder ".concat(n?"igd-hidden":"")},React.createElement("img",{src:"".concat(igd.pluginUrl,"/assets/images/file-browser/empty-folder-placeholder.svg"),alt:"Empty Folder"}),React.createElement("span",{className:"igd-root-placeholder-title"},s),React.createElement("span",{className:"igd-root-placeholder-text"},d),c&&React.createElement("button",{type:"button",className:"igd-btn btn-primary uploader-btn",onClick:function(){return i(!0)}},React.createElement("i",{className:"dashicons dashicons-cloud-upload"}),wp.i18n.__("Upload Files","integrate-google-drive")))}function St(e){return St="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},St(e)}function At(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ot(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?At(Object(n),!0).forEach((function(t){Ct(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):At(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ct(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==St(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==St(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===St(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return l}}(e,t)||kt(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ft(e){return function(e){if(Array.isArray(e))return Nt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||kt(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kt(e,t){if(e){if("string"==typeof e)return Nt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Nt(e,t):void 0}}function Nt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var jt=React,Pt=jt.useEffect,It=jt.useState,Tt=jt.useContext,Lt=igd.settings.rememberLastFolder,Bt=void 0===Lt||Lt,Dt=function(e){var t=e.id,n=e.activeFiles,r=e.setActiveFiles,i=e.files;return React.createElement("div",{className:"item-selection",onClick:function(e){e.stopPropagation(),n.find((function(e){return e.id===t}))?r((function(e){return e.filter((function(e){return e.id!==t}))})):r((function(e){return[].concat(Ft(e),[i.find((function(e){return e.id===t}))])}))}},React.createElement("svg",{fill:"#FFFFFFB2",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},React.createElement("radialGradient",{id:"shadow",cx:"38",cy:"95.488",r:"10.488",gradientTransform:"matrix(1 0 0 -1 -26 109)",gradientUnits:"userSpaceOnUse"},React.createElement("stop",{offset:".832",stopColor:"#010101"}),React.createElement("stop",{offset:"1",stopColor:"#010101",stopOpacity:"0"})),React.createElement("circle",{opacity:".26",fill:"url(#shadow)",cx:"12",cy:"13.512",r:"10.488"}),React.createElement("circle",{fill:"#FFF",cx:"12",cy:"12.2",r:"8.292"}),React.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),React.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})))};function Ut(){var e=Tt(t),n=e.galleryLayout,r=e.galleryColumns,i=e.galleryAspectRatio,o=e.galleryHeight,a=e.galleryMargin,l=e.galleryView,c=e.galleryFolderView,s=e.galleryOverlay,d=e.galleryOverlayTitle,u=e.galleryOverlayDescription,f=e.galleryOverlaySize,m=e.galleryImageSize,p=e.galleryCustomSizeWidth,g=e.galleryCustomSizeHeight,v=e.activeAccount,h=e.files,w=e.listFiles,_=e.setShouldRefresh,E=e.breadcrumbs,R=e.initFolders,S=e.setFiles,O=e.activeFolder,F=e.setActiveFolder,N=e.permissions,I=e.setActiveFiles,T=e.activeFiles,L=e.selectAll,B=e.isLoading,U=e.initParentFolder,M=e.notifications,z=xt(It({}),2),K=z[0],H=z[1],W=!!E&&Object.keys(E),Q=xt(It([]),2),q=Q[0],V=Q[1],G=xt(It([]),2),J=G[0],Y=G[1];Pt((function(){if(!h.length)return V([]),void Y([]);var e=h.filter((function(e){return b(e)||[v.root_id,"shared","computers","starred","shared-drives"].includes(e.id)}));V(e);var t=h.filter((function(e){return C(e)||A(e)})).map((function(e){var t=e.id,r=e.description,i=e.name,o=e.size,a=e.metaData,l=void 0===a?{}:a,c={id:t,name:i,description:r,size:o,src:k(e,m,{w:p,h:g})};return"grid"!==n&&(l.width&&!A(e)||(l.width=600),l.height&&!A(e)||(l.height=400),c.width=l.width,c.height=l.height),c}));Y(t)}),[h]),Pt((function(){q.length&&"title"!==c&&q.forEach((function(e){x(e.id,v)||X(e)}))}),[q,v]);var X=function(e){function t(e,t){var n=jQuery(e);setTimeout((function(){e.dataset.intervalId&&clearInterval(e.dataset.intervalId),e.dataset.intervalId=setInterval((function(){var e=n.find("img"),t=e.filter(".active").length?e.filter(".active"):e.first();if(t.length){var r=t.next().length?t.next():e.first();e.removeClass("active"),r.addClass("active")}}),3e3)}),1500*t)}wp.ajax.post("igd_get_files",{data:{folder:e}}).done((function(n){var r=n.files,i=n.error;if(i)Swal.fire({html:i,icon:"error",confirmButtonText:wp.i18n.__("Ok","integrate-google-drive"),customClass:{container:"igd-swal"}});else{var o=r.filter((function(e){return C(e)||A(e)}));o=o.slice(0,10),H((function(t){return Ot(Ot({},t),{},Ct({},e.id,o))})),document.querySelectorAll(".igd-gallery-folder-images").forEach(t)}})).fail((function(e){return console.log(e)}))};Pt((function(){var e=jQuery(".react-photo-gallery--gallery img");if(e.length){var t=function(){_(!0)};return e.on("error",t),function(){e.off("error",t)}}}),[J]);var Z=j();Pt((function(){if(Z)if(L){I(h);var e=J.map((function(e){return Ot(Ot({},e),{},{isSelected:!0})}));Y(e)}else{I([]);var t=J.map((function(e){return Ot(Ot({},e),{},{isSelected:!1})}));Y(t)}}),[L]);var $=function(){var e=window.innerWidth;return e<768?r.xs:e<992?r.sm:e<1200?r.md:e<1600?r.lg:e>=1920?r.xl:r.md},ee=xt(It($()),2),te=ee[0],ne=ee[1];return Pt((function(){var e=function(){ne($())};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[]),React.createElement(React.Fragment,null,React.createElement("div",{className:"igd-module-gallery gallery-view-".concat(l," gallery-layout-").concat(n),style:{"--column-width":"calc(".concat(100/te,"% - ").concat(2*a,"px)"),"--aspect-ratio":"".concat(i)}},React.createElement("div",{className:"file-list"},!!W.length&&!!O&&React.createElement("div",{className:"go-prev file-item folder-item",style:{margin:"".concat(a,"px")},onClick:function(e){if(W.length>1){var t=W[W.length-2],n={id:t,name:E[t],accountId:v.id};w(n)}else if(F(""),S(R),Bt){var r=D(R,U);r&&sessionStorage.removeItem(r)}}},React.createElement("i",{className:"dashicons dashicons-arrow-left-alt"}),React.createElement("span",null,wp.i18n.__("Previous folder","integrate-google-drive"))),!!q.length&&q.map((function(e){var t=e.id,n=e.name,r=e.iconLink,i=T.find((function(e){return e.id===t})),o=null==r?void 0:r.replace("/16/","/64/");return React.createElement("div",{key:t,className:"file-item ".concat(i?"active":""," ").concat("title"===c?"folder-item":""),style:{margin:"".concat(a,"px")},onClick:function(){return w(e)}},(N.download&&N.zipDownload||N.photoProof)&&React.createElement(Dt,{id:t,activeFiles:T,setActiveFiles:I,files:h}),"thumbnail"===c&&React.createElement("div",{className:"igd-gallery-folder-images"},K[t]&&K[t].length>0?K[t].map((function(e,t){var n=e.id,r=e.name,i=k(e,m,{w:p,h:g});return React.createElement("img",{key:n,className:"".concat(0===t?"active":""),onError:function(e){e.target.src=o},src:i,alt:r,referrerPolicy:"no-referrer"})})):React.createElement("img",{className:"active",src:o,alt:n,referrerPolicy:"no-referrer"})),React.createElement("div",{className:"file-item-footer"},React.createElement("div",{className:"file-icon-wrap"},x(t,v)?React.createElement("i",{className:"file-icon dashicons ".concat(o," footer-icon")}):React.createElement("img",{className:"file-icon",src:o,alt:n,referrerPolicy:"no-referrer"})),React.createElement("span",null,n)))}))),React.createElement(_t,{photos:J,margin:parseInt(a),targetRowHeight:"justified"===n&&o,columns:te,direction:"masonry"===n?"column":"row",renderImage:function(e){var t=e.photo,n=e.margin,r=e.direction,i=e.top,o=e.left,a=t.name,l=t.description,c=t.src,m=t.size,p=t.id,g=t.width,v=t.height,w={display:"block",margin:"".concat(n,"px"),width:"".concat(g,"px"),height:"".concat(v,"px")};"column"===r&&(w.position="absolute",w.left="".concat(o,"px"),w.top="".concat(i,"px"));var b=T.find((function(e){return e.id===p}));return React.createElement("div",{className:"igd-gallery-item ".concat(b?"active":""),style:w,onClick:function(e){return function(e,t){P(e,t,h.filter((function(e){return C(e)||A(e)})),N,M,!0)}(e,p)}},(N.download&&N.zipDownload||N.photoProof)&&React.createElement(Dt,{id:p,activeFiles:T,setActiveFiles:I,files:h}),React.createElement("img",{src:c,alt:a,referrerPolicy:"no-referrer"}),!!s&&React.createElement("div",{className:"igd-gallery-item-overlay"},!!d&&React.createElement("div",{className:"overlay-title"},a),!!u&&!!l&&React.createElement("p",{className:"overlay-description"},l),!!f&&React.createElement("span",{className:"overlay-size"},y(m))))}})),Z&&!B&&!q.length&&!J.length&&React.createElement(Rt,null))}function Mt(){return React.createElement("div",{className:"igd-root-placeholder"},React.createElement("img",{src:"".concat(igd.pluginUrl,"/assets/images/file-browser/computers-placeholder.svg"),alt:"Computers"}),React.createElement("span",{className:"igd-root-placeholder-title"},wp.i18n.__("No Computers Syncing","integrate-google-drive")),React.createElement("span",{className:"igd-root-placeholder-text"},wp.i18n.__("The files synced with computers will display here.","integrate-google-drive")))}function zt(){return React.createElement("div",{className:"igd-root-placeholder"},React.createElement("img",{src:"".concat(igd.pluginUrl,"/assets/images/file-browser/shared-placeholder.svg"),alt:"Shared Files"}),React.createElement("span",{className:"igd-root-placeholder-title"},wp.i18n.__("Shared With Me","integrate-google-drive")),React.createElement("span",{className:"igd-root-placeholder-text"},wp.i18n.__("Files and folders others have shared with you.","integrate-google-drive")))}function Kt(){return React.createElement("div",{className:"igd-root-placeholder"},React.createElement("img",{src:"".concat(igd.pluginUrl,"/assets/images/file-browser/starred-placeholder.svg"),alt:"Starred Files"}),React.createElement("span",{className:"igd-root-placeholder-title"},wp.i18n.__("Nothing is starred","integrate-google-drive")),React.createElement("span",{className:"igd-root-placeholder-text"},wp.i18n.__("Adds star to files and folders that you want to find easily later.","integrate-google-drive")))}function Ht(){return React.createElement("div",{className:"igd-root-placeholder"},React.createElement("img",{src:"".concat(igd.pluginUrl,"/assets/images/file-browser/shared-drives-placeholder.svg"),alt:"Shared Drives"}),React.createElement("span",{className:"igd-root-placeholder-title"},wp.i18n.__("No Shared Drives","integrate-google-drive")),React.createElement("span",{className:"igd-root-placeholder-text"},wp.i18n.__("The Drives others have shared with you.","integrate-google-drive")))}function Wt(e){var t=e.activeFolder.id;return React.createElement(React.Fragment,null,"computers"===t&&React.createElement(Mt,null),"shared-drives"===t&&React.createElement(Ht,null),"shared"===t&&React.createElement(zt,null),"starred"===t&&React.createElement(Kt,null))}function Qt(e){var t=e.isSearchResults;return React.createElement("div",{className:"igd-root-placeholder search-placeholder ".concat(t?"empty-placeholder":"")},t&&React.createElement("svg",{width:100,height:100,className:"igd-placeholder-svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 259 223",fill:"none"},React.createElement("g",{clipPath:"url(#clip0_1110_10155)"},React.createElement("path",{d:"M127.836 80.9443C127.836 103.828 127.836 126.64 127.836 149.523C127.836 157.696 124.072 161.391 115.905 161.391C81.2469 161.391 46.5181 161.391 11.8603 161.391C3.97712 161.391 0.07102 157.553 0.07102 149.665C0.07102 116.264 0.14204 82.8631 0 49.462C0 46.4062 1.0653 46.0509 3.62202 46.1219C12.4995 46.2641 21.377 46.193 30.2545 46.193C40.4104 46.193 46.092 40.4367 46.163 30.4164C46.163 21.3199 46.234 12.1524 46.092 3.05595C46.092 0.923972 46.3761 0.000114277 48.8618 0.0711803C71.5882 0.213312 94.3146 0.142246 117.041 0.142246C123.788 0.142246 127.836 4.19301 127.836 11.0153C127.907 34.2539 127.836 57.6346 127.836 80.9443ZM65.6935 103.046C76.9147 103.046 88.2069 103.046 99.428 103.046C103.689 103.046 105.891 101.34 105.891 98.2133C105.891 95.2285 103.689 93.4519 99.6411 93.4519C77.2698 93.4519 54.8985 93.4519 32.5272 93.4519C28.479 93.4519 26.2774 95.1575 26.2064 98.1423C26.1354 101.198 28.479 103.046 32.5982 103.046C43.6773 103.046 54.6854 103.046 65.6935 103.046ZM66.1196 67.6549C55.0405 67.6549 43.8904 67.6549 32.8112 67.6549C28.6211 67.6549 26.2774 69.3605 26.2774 72.4164C26.2774 75.4722 28.55 77.3199 32.7402 77.3199C54.9695 77.3199 77.1277 77.3199 99.357 77.3199C103.618 77.3199 105.891 75.6143 105.891 72.5585C105.891 69.4316 103.618 67.726 99.428 67.726C88.2779 67.6549 77.1988 67.6549 66.1196 67.6549ZM48.6487 117.756C43.1091 117.756 37.5696 117.685 32.03 117.756C28.266 117.756 26.2064 119.533 26.2774 122.518C26.2774 125.361 28.55 127.208 32.101 127.208C43.0381 127.208 54.0462 127.208 64.9833 127.208C68.5343 127.208 70.807 125.218 70.807 122.447C70.807 119.604 68.5343 117.828 64.9123 117.756C59.5148 117.756 54.0462 117.756 48.6487 117.756Z",fill:"#C1E9C9"}),React.createElement("path",{d:"M148.999 101.482C148.999 124.081 148.999 146.751 148.999 169.35C148.999 178.376 145.377 182 136.287 182C101.984 182 67.6104 182 33.3077 182C24.6433 182 20.4531 177.452 21.1633 168.924C21.3053 167.574 21.5894 166.934 23.0098 167.076C23.72 167.147 24.4302 167.076 25.1404 167.076C55.3239 167.076 85.5074 167.076 115.691 167.076C127.409 167.076 133.588 160.894 133.588 149.097C133.588 107.523 133.659 65.9494 133.517 24.3758C133.517 21.2489 134.298 20.4672 137.352 20.5383C145.164 20.8225 148.999 24.518 148.999 32.4774C148.999 55.5027 148.999 78.5281 148.999 101.482Z",fill:"#C1E9C9"}),React.createElement("path",{d:"M40.4817 18.6906C40.4817 22.9545 40.5527 27.2185 40.4817 31.4825C40.4106 36.9545 37.0727 40.4368 31.6752 40.5078C22.9397 40.5789 14.1332 40.5078 5.39776 40.5078C3.19614 40.5078 1.42064 39.8682 0.568403 37.6652C-0.212817 35.6043 0.710443 34.0408 2.13084 32.5484C12.2157 22.4571 22.3005 12.3657 32.4564 2.27433C33.9478 0.781945 35.5813 -0.355111 37.7829 0.639812C39.9135 1.56367 40.4817 3.34032 40.4817 5.54337C40.4106 9.87839 40.4817 14.2845 40.4817 18.6906Z",fill:"#C1E9C9"})),React.createElement("g",{clipPath:"url(#clip1_1110_10155)"},React.createElement("path",{d:"M148.9 79.6302C120.227 79.6302 91.6528 79.6302 62.9789 79.6302C51.4894 79.6302 46.8936 84.6083 48.4922 96.058C53.3877 132.199 58.4831 168.241 63.5784 204.382C64.5775 211.252 69.1733 214.935 76.9662 214.935C99.4456 215.035 121.925 214.935 144.405 214.935C169.382 214.935 194.359 214.935 219.336 214.935C221.035 214.935 222.633 214.935 224.332 215.234C226.33 215.632 227.529 217.026 227.529 219.117C227.429 221.208 226.23 222.502 224.232 222.801C222.733 223 221.234 222.9 219.736 222.9C172.779 222.9 125.822 222.9 78.8644 222.9C64.2778 222.9 57.484 217.126 55.4858 202.789C50.1906 166.747 45.1952 130.606 40.1997 94.5646C38.801 84.3096 44.4958 75.5482 54.5866 72.4617C56.2851 71.9639 57.2841 71.6652 57.7837 69.5744C59.682 62.3064 63.6783 59.6182 71.7709 59.5186C95.2495 59.5186 118.728 59.4191 142.207 59.6182C145.603 59.6182 147.801 58.8217 149.2 55.6357C150.199 53.2462 151.698 50.9563 153.097 48.7659C156.094 43.8873 160.49 41.0996 166.285 41.0996C187.465 41 208.546 40.9005 229.727 41.0996C236.62 41.1991 241.116 46.0777 241.416 52.8479C241.516 55.1379 241.516 57.5274 241.416 59.8173C241.216 66.3884 240.417 72.163 249.409 75.1499C256.902 77.639 259.799 85.7035 258.8 93.7681C255.203 121.347 251.207 148.926 247.411 176.504C247.011 179.292 245.912 181.582 242.915 181.283C239.418 180.985 239.018 178.197 239.418 175.31C241.916 157.588 244.413 139.865 246.811 122.143C248.21 112.486 249.609 102.828 250.807 93.0711C251.607 86.4005 247.411 80.9245 240.817 79.9289C238.818 79.6302 236.82 79.6302 234.822 79.6302C206.248 79.6302 177.574 79.6302 148.9 79.6302Z",fill:"#2FB44B"}),React.createElement("path",{d:"M225.431 149.025C225.331 153.904 223.632 161.072 219.536 167.444C218.037 169.834 218.237 171.228 220.235 173.219C230.126 182.777 239.818 192.634 249.509 202.391C253.205 206.074 253.705 209.659 251.007 212.347C248.31 215.035 244.813 214.537 241.116 210.853C231.525 201.395 222.034 191.937 212.542 182.379C210.444 180.188 209.046 179.491 206.048 181.383C190.962 191.14 171.48 190.144 157.593 179.292C143.605 168.34 138.11 150.22 143.506 133.394C148.901 116.667 164.486 105.118 182.57 104.521C205.549 103.724 225.431 123.039 225.431 149.025ZM183.569 176.106C200.254 176.007 213.542 162.566 213.342 145.939C213.242 129.71 199.454 116.269 183.269 116.468C166.684 116.568 153.297 130.208 153.496 146.735C153.596 163.063 167.084 176.206 183.569 176.106Z",fill:"#2FB44B"}),React.createElement("path",{d:"M107.738 171.427C112.933 171.427 118.029 171.228 123.224 171.427C128.519 171.626 131.316 174.613 131.516 179.89C131.616 182.18 131.616 184.569 131.516 186.859C131.316 191.937 128.519 195.023 123.524 195.222C112.933 195.421 102.243 195.421 91.6526 195.222C86.6572 195.123 83.8598 191.937 83.56 186.959C83.4601 184.967 83.56 182.976 83.56 180.985C83.6599 174.215 86.3575 171.526 93.3511 171.427C98.0468 171.327 102.842 171.327 107.738 171.427Z",fill:"#2FB44B"}),React.createElement("circle",{cx:"183",cy:"146",r:"30",fill:"white"}),React.createElement("rect",{width:"26.9682",height:"2.81029",transform:"matrix(0.708463 0.705748 0.708463 -0.705748 172.83 137.269)",fill:"#2FB44B"}),React.createElement("rect",{width:"27.6664",height:"2.81029",transform:"matrix(-0.708463 0.705748 0.708463 0.705748 191.885 135.286)",fill:"#2FB44B"})),React.createElement("defs",null,React.createElement("clipPath",{id:"clip0_1110_10155"},React.createElement("rect",{width:"149",height:"182",fill:"white"})),React.createElement("clipPath",{id:"clip1_1110_10155"},React.createElement("rect",{width:"219",height:"182",fill:"white",transform:"translate(40 41)"})))),t?React.createElement("h3",{className:"igd-root-placeholder-title"},wp.i18n.__("No results found!","integrate-google-drive")):React.createElement("h3",{className:"igd-root-placeholder-title"},wp.i18n.__("Search for files & content","integrate-google-drive")),!t&&React.createElement(Z,null))}var qt=React.useContext;function Vt(){var e=qt(t),n=e.files,r=e.searchKeywordRef,i=n.length?n.length:wp.i18n.__("No","integrate-google-drive"),o=wp.i18n.sprintf(wp.i18n.__('Search results for "%s": %s items found.',"integrate-google-drive"),"<strong>".concat(r.current,"</strong>"),i);return React.createElement("div",{className:"search-result-info"},React.createElement("span",{dangerouslySetInnerHTML:{__html:o}}),React.createElement("button",{onClick:function(e){document.querySelector(".search-dismiss").click()},className:"clear-button igd-btn btn-warning"},wp.i18n.__("Clear","integrate-google-drive")))}function Gt(e){return Gt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gt(e)}function Jt(e){return function(e){if(Array.isArray(e))return Yt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Yt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Yt(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Yt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Xt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xt(Object(n),!0).forEach((function(t){$t(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $t(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Gt(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Gt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Gt(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var en=React,tn=en.useRef,nn=en.useContext;function rn(){var e=document.querySelector(".igd-tutor-attachment-modal"),n=igd.settings,r=n.preloader,i=void 0===r?"default":r,o=n.rememberLastFolder,a=void 0===o||o,l=nn(t),c=l.isLoading,s=l.activeAccount,d=l.initFolders,u=l.initParentFolder,f=l.files,m=void 0===f?[]:f,p=l.setFiles,g=l.activeFiles,h=l.setActiveFiles,w=l.breadcrumbs,_=l.activeFolder,E=l.setActiveFolder,R=l.isShortcodeBuilder,S=l.selectedFolders,A=l.setSelectedFolders,O=l.isList,C=l.showLastModified,F=l.showFileSizeField,N=l.shortcodeBuilderType,j=l.isUpload,I=l.permissions,T=l.isSearchResults,L=l.isMobile,B=l.setIsOptions,U=l.setShouldRefresh,M=l.listFiles,z=l.show,H=l.hideAll,W=l.isSelectFiles,Q=l.selectionType,q=l.setActiveFile,V=l.isLMS,G=l.isWooCommerce,J=l.getFiles,Y=l.notifications,X=l.lazyLoad,Z=l.lazyLoadNumber,$="browser"===N,ee="uploader"===N,te="gallery"===N,ne="embed"===N,re="search"===N,ie="media"===N,oe="view"===N,ae="download"===N,le="slider"===N,ce=ee&&S.length;S&&S.length&&W&&["single","parent","template"].includes(Q)&&(ce=!0);var se=[!!$,!!ie,!!le,!!te,!!ne,!!oe,!!ae,!!V,!!G,!!W&&!Q].includes(!0),de=!(!_||x(_.id,s)&&s.root_id!==_.id),ue=tn(),me=function(e,t){var n=v(React.useState(t?"igd-item-col-1":"igd-item-col-4"),2),r=n[0],i=n[1];function o(e){if(t)i("igd-item-col-1");else{var n=e[0].contentRect.width,r={1:320,2:480,3:768,4:992,5:1200,6:1520},o="";if(n>1520)o="igd-item-col-6";else for(var a in r)if(n<r[a]){o="igd-item-col-".concat(a);break}i(o)}}return React.useEffect((function(){if(e.current){var t=new ResizeObserver(o);return t.observe(e.current),function(){t.disconnect()}}}),[e,t]),r}(ue,O);!R&&re||!X||function(e,t,n,r,i,o,a){React.useEffect((function(){var a=e.current;if(a&&!n&&!i&&r&&r.pageNumber&&!(r.pageNumber<1)){var l=document.body.classList.contains("block-editor-page"),c=document.body.classList.contains("elementor-editor-active"),s=document.body.classList.contains("et-fb");if(!(l||c||s)||o){var d=function(e){for(var t=e.parentElement,n=null;t;)"div"===t.nodeName.toLowerCase()&&(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth)&&(n=t),t=t.parentElement;return n}(a),u=d?d.scrollTop:window.pageYOffset,f=function(){var e=d?d.scrollTop:window.pageYOffset,n=e>u;if(u=e,n)if(d)d.scrollHeight-e<=d.clientHeight&&t(r,"lazy");else{var i=a.getBoundingClientRect(),o=window.innerHeight||document.documentElement.clientHeight;i.bottom<=o+5&&t(r,"lazy")}},m=d||window;return m.addEventListener("scroll",f),function(){m.removeEventListener("scroll",f)}}}}),[e,t,n,r])}(ue,J,c,_,T,R);var ge=w?Object.keys(w):[],ve=!1;return X&&(null==_?void 0:_.pageNumber)>0&&m.length<((null==_?void 0:_.pageNumber)-1)*Z&&E(Zt(Zt({},_),{},{pageNumber:0})),React.createElement("div",{ref:ue,className:"igd-body ".concat(c?"lazy"===c?"lazy-loading":"loading":"")},T&&!c&&React.createElement(Vt,null),(!te||R)&&React.createElement("div",{className:"file-list ".concat(O?"list-view":""," ").concat(me," ").concat(m.length||x(_,s)?"":"empty"),onClick:function(){var e=document.querySelector(".igd-context-menu")?300:0;setTimeout((function(){q(null),h([])}),e)},onContextMenu:function(e){e.preventDefault(),B(!1),h([]),x(_.id,s)&&s.root_id!==_.id||(q(_),z(e))}},!te&&O&&!!m.length&&(C||F)&&React.createElement("div",{className:"list-view-header"},React.createElement("span",{className:"col-name"},wp.i18n.__("Name","integrate-google-drive")),F&&React.createElement("span",{className:"col-size"},wp.i18n.__("Size","integrate-google-drive")),C&&React.createElement("span",{className:"col-modified"},wp.i18n.__("Modified","integrate-google-drive"))),(!_||!_&&!!d)&&(!re||R)&&!T&&React.createElement(pe,null),(!re||R)&&!!_&&!!ge.length&&React.createElement("div",{className:"go-prev file-item folder-item",onClick:function(e){if(q(null),d){if(ge.length>1){var t=ge[ge.length-2],n=[ge[ge.length-3]],r={id:t,name:w[t],accountId:s.id,parents:n};M(r)}else if(E(null),p(d),a){var i=D(d,u);i&&sessionStorage.removeItem(i)}}else if(ge.length>1){var o=ge[ge.length-2],l=[ge[ge.length-3]],c={id:o,name:w[o],accountId:s.id,parents:l};M(c)}else p([]),E(null)}},React.createElement("i",{className:"dashicons dashicons-arrow-left-alt2"}),React.createElement("span",null,wp.i18n.__("Previous folder","integrate-google-drive"))),!!m.length&&m.map((function(t,n){var r=t.id,i=t.name,o=t.type,a=t.iconLink,l=void 0===a?"":a,c=t.thumbnailLink,s=t.size,d=t.updated;if(r){var u=b(t),f=g.find((function(e){return e.id===r})),p=S&&!!S.find((function(e){return e.id===r})),v=R&&(se||u)&&(!V||!u)&&(!e||!u);ce&&(v=(S[0].id||S[0])===r);var w=null==l?void 0:l.replace("/16/","/64/"),_=k(t,"small"),E=!ve&&u&&!m.slice(n+1).some(b);return E&&(ve=!0),React.createElement(React.Fragment,null,E&&!O&&React.createElement("div",{className:"folder-file-divider"}),React.createElement("div",{key:r,"data-id":r,className:"file-item ".concat(u?"folder-item":"","  ").concat(E?"folder-item-last":""," ").concat(f||p?"active":""),onClick:function(e){e.stopPropagation(),H(),L?u?M(t):R?A([].concat(Jt(S),[t])):(q(t),P(e,r,m,I,Y)):(e.detail&&1!=e.detail||R?u?M(t):R&&v&&A(p?Jt(S.filter((function(e){return e.id!=t.id}))):[].concat(Jt(S),[t])):(e.ctrlKey||e.shiftKey||e.metaKey)&&!ee?h((function(e){return e.find((function(e){return e.id===t.id}))?e.filter((function(e){return e.id!==t.id})):[].concat(Jt(e),[t])})):u?M(t):(q(t),P(e,r,m,I,Y)),console.log(t))},onDoubleClick:function(e){e.stopPropagation(),R||(u?M(t):(q(t),P(e,r,m,I,Y)))},onContextMenu:function(e){e.preventDefault(),e.stopPropagation(),H(),B(!1),t["shared-drives"]||R||(h([t]),q(t),z(e))},title:i},!u&&!O&&React.createElement("img",{referrerPolicy:"no-referrer",className:"igd-file-thumbnail ".concat(c?"has-thumbnail":""),src:_,loading:"lazy",onError:function(e){var t=e.target;t.classList.remove("has-thumbnail"),t.src!==w&&(t.src=w,U(!0))},alt:i}),React.createElement("div",{className:"file-item-footer"},React.createElement("div",{className:"file-icon-wrap"},React.createElement("img",{className:"file-icon",referrerPolicy:"no-referrer",src:w,alt:"icon"}),"application/vnd.google-apps.shortcut"===o&&React.createElement("svg",{className:"shortcut-icon",viewBox:"0 0 16 16",fill:"none",focusable:"false",xmlns:"http://www.w3.org/2000/svg",width:"16px",height:"16px"},React.createElement("circle",{cx:"8",cy:"8",r:"8",fill:"white"}),React.createElement("path",{d:"M10,3H6V4H8.15A5,5,0,0,0,10,13V12A4,4,0,0,1,9,4.65V7h1Z",fill:"#5F6368"})),!R&&(!I||I.download&&I.zipDownload)&&React.createElement("span",{className:"file-item-checkbox ".concat(f?"checked":""),onClick:function(e){e.stopPropagation(),h(f?function(e){return e.filter((function(e){return e.id!==t.id}))}:[].concat(Jt(g),[t]))}},React.createElement("span",{className:"box"}))),React.createElement("span",{className:"file-item-name"},i),F&&(O?React.createElement("span",{className:"file-item-size"},s?y(s):"—"):(!I||I.download)&&!u&&!!s&&React.createElement("span",{className:"file-item-size"},y(s))),!R&&React.createElement("span",{className:"file-item-options",onClick:function(e){e.stopPropagation(),B(!1),q(t),z(e)}},React.createElement("i",{className:"dashicons dashicons-ellipsis"}))),O&&C&&React.createElement("span",{className:"file-item-date"},K(d,!0)),v&&React.createElement(fe,{file:t,isSelected:p,selectedFolders:S,setSelectedFolders:A,isList:O})))}}))),!R&&te&&React.createElement(Ut,null),!c&&(d||_&&(!x(_.id,s)||_.id===s.root_id))&&!m.length&&(R||!te)&&(R||!re)&&!T&&React.createElement(Rt,null),!re&&!T&&!R&&!te&&de&&j&&React.createElement(je,null),!T&&!c&&!m.length&&_&&x(_.id,s)&&React.createElement(Wt,{activeFolder:_}),!c&&(!R&&re||T)&&!m.length&&React.createElement(Qt,{isSearchResults:T}),c&&React.createElement("div",{className:"loading-wrap"},igd.settings.customPreloader?React.createElement("img",{src:igd.settings.customPreloader,alt:"Loading..."}):React.createElement("img",{src:"".concat(igd.pluginUrl,"/assets/images/preloader/").concat(i,".svg"),alt:"Loading..."})))}function on(e){return on="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},on(e)}function an(e){return function(e){if(Array.isArray(e))return fn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||un(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ln(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function cn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ln(Object(n),!0).forEach((function(t){sn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ln(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sn(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==on(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==on(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===on(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return l}}(e,t)||un(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function un(e,t){if(e){if("string"==typeof e)return fn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fn(e,t):void 0}}function fn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var mn=React,pn=mn.useContext,gn=mn.useState,vn=mn.useEffect;function hn(){var e=pn(t),n=e.files,r=e.activeAccount,i=e.activeFile,o=e.setShowDetails,a=e.activeFolder,l=e.setFiles,c=e.listFiles,s=e.setAllFiles,d=e.initParentFolder,u=dn(gn(null),2),f=u[0],m=u[1],p=f||{},g=p.id,v=p.accountId,h=p.name,b=p.iconLink,_=p.type,E=p.size,R=p.owner,S=p.updated,A=p.created,O=p.description,C=p.parents,F=dn(gn(null),2),k=F[0],N=F[1],j=dn(gn(!1),2),P=j[0],I=j[1],T=dn(gn(""),2),L=T[0],B=T[1];vn((function(){m(null),i?m(i):a&&!x(a.id,r)&&m(a)}),[i,a]),vn((function(){if(null!=f&&f.parents){var e=f.parents[0];(null==a?void 0:a.id)!==e?(N("loading"),wp.ajax.post("igd_get_file",{id:e,accountId:v}).done((function(e){N(e)})).fail((function(e){console.log(e),N(null)}))):N(a)}else N(null)}),[f,a]);var D=null==b?void 0:b.replace("/16/","/64/"),U=[{key:"type",label:wp.i18n.__("Type","integrate-google-drive"),value:w(_)},{key:"size",label:wp.i18n.__("Size","integrate-google-drive"),value:E&&y(E)},{key:"owner",label:wp.i18n.__("Owner","integrate-google-drive"),value:R},{key:"updated",label:wp.i18n.__("Updated","integrate-google-drive"),value:S&&K(S)},{key:"created",label:wp.i18n.__("Created","integrate-google-drive"),value:A&&K(A)}];return React.createElement("div",{className:"igd-details-wrap"},React.createElement("div",{className:"igd-details"},React.createElement("i",{className:"close-details dashicons dashicons-no",onClick:function(){o(!1),localStorage.removeItem("igd_show_details")}}),f&&!x(f.id,r)?React.createElement(React.Fragment,null,React.createElement("div",{className:"details-item name"},React.createElement("img",{src:D}),React.createElement("span",null,h)),U.map((function(e){var t=e.key,n=e.label,r=e.value;if(r)return React.createElement("div",{key:t,className:"details-item field-".concat(t)},React.createElement("span",{className:"details-item-label"},n),React.createElement("span",{className:"details-item-value"},r))})),!(null==C||!C.length)&&a&&a.id!==(null==d?void 0:d.id)&&React.createElement("div",{className:"details-item field-location"},React.createElement("span",{className:"details-item-label"},wp.i18n.__("Location","integrate-google-drive")),k&&React.createElement("div",{className:"details-item-value"},"loading"===k?React.createElement("span",{className:"igd-spinner"}):React.createElement("div",{className:"location-wrap",onClick:function(){c(k)}},React.createElement("img",{src:k.iconLink}),React.createElement("span",null,k.name)))),React.createElement("div",{className:"details-item field-description"},React.createElement("span",{className:"details-item-label"},wp.i18n.__("Description","integrate-google-drive")),React.createElement("i",{className:"dashicons ".concat(P?"dashicons-saved":"dashicons-edit"),onClick:function(){P?(!function(){var e=n.map((function(e){return e.id===g?cn(cn({},e),{},{description:L}):e}));l(an(e)),m(cn(cn({},f),{},{description:L})),s((function(t){return cn(cn({},t),{},sn({},null==a?void 0:a.id,an(e)))})),wp.ajax.post("igd_update_description",{id:g,accountId:v,description:L}).done((function(){Swal.close(),Swal.fire({title:wp.i18n.__("Updated!","integrate-google-drive"),text:wp.i18n.__("Description has been updated.","integrate-google-drive"),icon:"success",showConfirmButton:!1,timer:2e3,timerProgressBar:!0,toast:!0,customClass:{container:"igd-swal"},position:"top-end"})}))}(),I(!1)):(I(!0),B(O))}}),!P&&(O?React.createElement("span",{className:"details-item-value"},O):React.createElement("span",{className:"description-placeholder"},wp.i18n.__("Add description","integrate-google-drive"))),P&&React.createElement("textarea",{onChange:function(e){return B(e.target.value)},value:L,rows:4}))):React.createElement("div",{className:"details-placeholder"},React.createElement("i",{className:"dashicons dashicons-pressthis"}),React.createElement("span",null,wp.i18n.__("Select a file or folder to view its details.","integrate-google-drive")))))}function wn(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=wn(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}const yn=function(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=wn(e))&&(r&&(r+=" "),r+=t);return r};var bn=n(155);function _n(){return _n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_n.apply(this,arguments)}function En(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var Rn=(0,Pe.createContext)({});function Sn(){return(0,Pe.useContext)(Rn)}var An=function(e){return Ie().createElement(Rn.Provider,{value:e.refTracker},e.children)};function On(){var e=new Map;return{on:function(t,n){var r;return e.has(t)?null==(r=e.get(t))||r.add(n):e.set(t,new Set([n])),this},off:function(t,n){return n?e.get(t).delete(n):e.delete(t),this},emit:function(t,n){if("production"!==bn.env.NODE){var r=t;e.has(t)||0===r||console.error("It seems that the menu you are trying to display is not renderer or you have a menu id mismatch.","You used the menu id: "+t)}return e.has(t)&&e.get(t).forEach((function(e){e(n)})),this}}}var Cn=On();function xn(){return(0,Pe.useRef)(new Map).current}var Fn={show:function(e){var t=e.id,n=e.event,r=e.props,i=e.position;n.preventDefault&&n.preventDefault(),Cn.emit(0).emit(t,{event:n.nativeEvent||n,props:r,position:i})},hideAll:function(){Cn.emit(0)}};function kn(){var e,t,n,r,i=new Map,o=!1;function a(){r[e].node.focus()}function l(){return-1!==e||(c(),!1)}function c(){e+1<r.length?e++:e+1===r.length&&(e=0),o&&s(),a()}function s(){if(l()&&!n){var c=i.get(t),s=c.isRoot,d=c.items,u=c.focusedIndex,f=c.parentNode;t.classList.remove("react-contexify__submenu--is-open"),r=d,t=f,s&&(n=!0,i.clear()),o||(e=u,a())}}return{init:function(t){r=t,e=-1,n=!0},moveDown:c,moveUp:function(){-1===e||0===e?e=r.length-1:e-1<r.length&&e--,o&&s(),a()},openSubmenu:function(){if(l()&&e>=0&&r[e].isSubmenu){var c=Array.from(r[e].submenuRefTracker.values()),s=r[e].node;return i.set(s,{isRoot:n,focusedIndex:e,parentNode:t||s,items:r}),s.classList.add("react-contexify__submenu--is-open"),t=s,c.length>0?(e=0,r=c):o=!0,n=!1,a(),!0}return!1},closeSubmenu:s}}var Nn={fade:"fade",flip:"flip",scale:"scale",slide:"slide"},jn=function(){};function Pn(e){return"function"==typeof e}function In(e){return"string"==typeof e}function Tn(e,t){return Pe.Children.map(Pe.Children.toArray(e).filter(Boolean),(function(e){return(0,Pe.cloneElement)(e,t)}))}function Ln(e,t){return Pn(e)?e(t):e}function Bn(e,t){return Pn(t)?_n({},e,t(e)):_n({},e,t)}var Dn=function(e){var t,n,r,i=e.id,o=e.theme,a=e.style,l=e.className,c=e.children,s=e.animation,d=void 0===s?"scale":s,u=e.onHidden,f=void 0===u?jn:u,m=e.onShown,p=void 0===m?jn:m,g=En(e,["id","theme","style","className","children","animation","onHidden","onShown"]),v=(0,Pe.useReducer)(Bn,{x:0,y:0,visible:!1,triggerEvent:{},propsFromTrigger:null,willLeave:!1}),h=v[0],w=v[1],y=(0,Pe.useRef)(null),b=(0,Pe.useRef)(!1),_=(n=h.visible,r=(0,Pe.useRef)(),(0,Pe.useEffect)((function(){r.current=n}),[n]),r.current),E=xn(),R=(0,Pe.useState)((function(){return kn()}))[0];function S(e){var t=e.event,n=e.props,r=e.position;t.stopPropagation();var i,o,a=r||(o={x:0,y:0},function(e){return"touchend"===e.type}(i=t)&&i.changedTouches&&i.changedTouches.length>0?(o.x=i.changedTouches[0].clientX,o.y=i.changedTouches[0].clientY):(o.x=i.clientX,o.y=i.clientY),(!o.x||o.x<0)&&(o.x=0),(!o.y||o.y<0)&&(o.y=0),o),l=a.x,c=a.y;setTimeout((function(){w({visible:!0,willLeave:!1,x:l,y:c,triggerEvent:t,propsFromTrigger:n})}),0)}function A(e){var t=e;(void 0===t||2!==t.button&&!0!==t.ctrlKey||"contextmenu"===t.type)&&(!function(e){return!(!e||!(In(e)||"exit"in e&&e.exit))}(d)?w((function(e){return{visible:!e.visible&&e.visible}})):w((function(e){return{willLeave:e.visible}})))}(0,Pe.useEffect)((function(){return b.current=!0,Cn.on(i,S).on(0,A),function(){Cn.off(i,S).off(0,A)}}),[i]),(0,Pe.useEffect)((function(){b.current&&h.visible!==_&&(h.visible?p():f())}),[h.visible,f,p]),(0,Pe.useEffect)((function(){h.visible?R.init(Array.from(E.values())):E.clear()}),[h.visible,R,E]),(0,Pe.useEffect)((function(){if(h.visible){var e=window,t=e.innerWidth,n=e.innerHeight,r=y.current,i=r.offsetWidth,o=r.offsetHeight,a=h.x,l=h.y;a+i>t&&(a-=a+i-t),l+o>n&&(l-=l+o-n),w({x:a,y:l})}}),[h.visible]),(0,Pe.useEffect)((function(){function e(e){switch(e.preventDefault(),e.key){case"Enter":R.openSubmenu()||A();break;case"Escape":A();break;case"ArrowUp":R.moveUp();break;case"ArrowDown":R.moveDown();break;case"ArrowRight":R.openSubmenu();break;case"ArrowLeft":R.closeSubmenu()}}return h.visible&&(window.addEventListener("resize",A),window.addEventListener("contextmenu",A),window.addEventListener("click",A),window.addEventListener("scroll",A),window.addEventListener("keydown",e),window.addEventListener("blur",A)),function(){window.removeEventListener("resize",A),window.removeEventListener("contextmenu",A),window.removeEventListener("click",A),window.removeEventListener("scroll",A),window.removeEventListener("keydown",e),window.removeEventListener("blur",A)}}),[h.visible,R]);var O,C,x=h.visible,F=h.triggerEvent,k=h.propsFromTrigger,N=h.x,j=h.y,P=h.willLeave,I=yn("react-contexify",l,((t={})["react-contexify__theme--"+o]=o,t),d?In(d)?yn(((O={})["react-contexify__will-enter--"+d]=d&&x&&!P,O["react-contexify__will-leave--"+d+" react-contexify__will-leave--'disabled'"]=d&&x&&P,O)):"enter"in d&&"exit"in d?yn(((C={})["react-contexify__will-enter--"+d.enter]=d.enter&&x&&!P,C["react-contexify__will-leave--"+d.exit+" react-contexify__will-leave--'disabled'"]=d.exit&&x&&P,C)):null:null),T=_n({},a,{left:N,top:j,opacity:1});return Ie().createElement(An,{refTracker:E},x&&Ie().createElement("div",Object.assign({},g,{className:I,onAnimationEnd:function(){h.willLeave&&h.visible&&w({visible:!1,willLeave:!1})},style:T,ref:y,role:"menu"}),Tn(c,{propsFromTrigger:k,triggerEvent:F})))},Un=function(e){var t,n=e.children,r=e.className,i=e.style,o=e.triggerEvent,a=e.data,l=e.propsFromTrigger,c=e.onClick,s=void 0===c?jn:c,d=e.disabled,u=void 0!==d&&d,f=e.hidden,m=void 0!==f&&f,p=En(e,["children","className","style","triggerEvent","data","propsFromTrigger","onClick","disabled","hidden"]),g=Sn(),v={data:a,triggerEvent:o,props:l},h=Ln(u,v);if(Ln(m,v))return null;var w=yn("react-contexify__item",r,((t={})["react-contexify__item--disabled"]=h,t));return Ie().createElement("div",Object.assign({},p,{className:w,style:i,onClick:function(e){v.event=e,h?e.stopPropagation():s(v)},onKeyDown:function(e){"Enter"===e.key&&(v.event=e,s(v))},ref:function(e){e&&!h&&g.set(e,{node:e,isSubmenu:!1})},tabIndex:-1,role:"menuitem","aria-disabled":h}),Ie().createElement("div",{className:"react-contexify__item__content"},n))};var Mn=function(e){var t,n=e.arrow,r=void 0===n?"▶":n,i=e.children,o=e.disabled,a=void 0!==o&&o,l=e.hidden,c=void 0!==l&&l,s=e.label,d=e.className,u=e.triggerEvent,f=e.propsFromTrigger,m=e.style,p=En(e,["arrow","children","disabled","hidden","label","className","triggerEvent","propsFromTrigger","style"]),g=Sn(),v=xn(),h=(0,Pe.useRef)(null),w=(0,Pe.useState)({left:"100%",top:0,bottom:"initial"}),y=w[0],b=w[1],_={triggerEvent:u,props:f},E=Ln(a,_),R=Ln(c,_);if((0,Pe.useEffect)((function(){if(h.current){var e=window,t=e.innerWidth,n=e.innerHeight,r=h.current.getBoundingClientRect(),i={};r.right<t?(i.left="100%",i.right=void 0):(i.right="100%",i.left=void 0),r.bottom>n?(i.bottom=0,i.top="initial"):i.bottom="initial",b(i)}}),[]),R)return null;var S=yn("react-contexify__item",d,((t={})["react-contexify__item--disabled"]=E,t)),A=_n({},m,y);return Ie().createElement(An,{refTracker:v},Ie().createElement("div",Object.assign({},p,{className:S,ref:function(e){e&&!E&&g.set(e,{node:e,isSubmenu:!0,submenuRefTracker:v})},tabIndex:-1,role:"menuitem","aria-haspopup":!0,"aria-disabled":E}),Ie().createElement("div",{className:"react-contexify__item__content",onClick:function(e){e.stopPropagation()}},s,Ie().createElement("span",{className:"react-contexify__submenu-arrow"},r)),Ie().createElement("div",{className:"react-contexify react-contexify__submenu",ref:h,style:A},Tn(i,{propsFromTrigger:f,triggerEvent:u}))))};function zn(e){return zn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zn(e)}function Kn(e){return function(e){if(Array.isArray(e))return Gn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Vn(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Hn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Wn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hn(Object(n),!0).forEach((function(t){Qn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Qn(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==zn(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==zn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===zn(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return l}}(e,t)||Vn(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vn(e,t){if(e){if("string"==typeof e)return Gn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Gn(e,t):void 0}}function Gn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Jn=React,Yn=Jn.useState,Xn=Jn.useEffect;function Zn(e){var t=e.files,n=e.setFiles,r=e.allFiles,i=e.setAllFiles,o=e.activeAccount,a=e.initFolders,l=qn(Yn(null),2),c=l[0],s=l[1],d=qn(Yn(null),2),u=d[0],f=d[1],m=qn(Yn(null),2),p=m[0],g=m[1],v=qn(Yn([]),2),h=v[0],w=v[1],y=qn(Yn(!1),2),_=y[0],R=y[1],S=t.map((function(e){return e.id})),A=t.map((function(e){return e.parents[0]}));function O(e){return s(e.id),wp.ajax.post("igd_get_files",{data:{folder:e}}).done((function(t){var n=t.files;n=n.filter((function(e){return b(e)})),f((function(t){return Wn(Wn({},t),{},Qn({},e.id,n))}))})).fail((function(e){console.log(e)})).always((function(){s(null)}))}Xn((function(){var e={id:o.root_id,accountId:o.id};O(e).then((function(t){w([e])}))}),[]);var C=!!p&&(S.includes(p.id)||A.includes(p.id));p&&["computers","shared","starred","shared-drives"].includes(p.id)&&(C=!0),p&&o.root_id===p.id&&A.includes(o.root_id)&&(C=!0);var x=E(!1,o);return a&&(x=a.filter((function(e){return b(e)}))),React.createElement("div",{className:"move-folders-wrap"},React.createElement("div",{className:"move-folders"},x.map((function(e){var t=e.id,n=e.name,r=e.iconLink,i=h.find((function(e){return e.id===t})),o=!!p&&p.id===t;return React.createElement(React.Fragment,null,React.createElement("div",{key:t,className:"move-folder ".concat(o?"active":""),onClick:function(){g(o?null:e)}},React.createElement("i",{className:"dashicons dashicons-arrow-".concat(i?"down":"right"),onClick:function(n){n.stopPropagation(),w((function(n){return i?n.filter((function(e){return e.id!==t})):[].concat(Kn(n),[e])})),i||u&&u[t]||O(e)}}),React.createElement("img",{src:r,alt:n}),React.createElement("div",{className:"file-item-checkbox ".concat(o?"checked":"")},React.createElement("span",{className:"box"})),React.createElement("span",null,n),c===t&&React.createElement("div",{className:"igd-spinner"})),i&&React.createElement($n,{folders:u[t]?u[t]:[],childFolders:u,selectedFolder:p,setSelectedFolder:g,getFolders:O,openFolders:h,setOpenFolders:w,loading:c}))}))),React.createElement("button",{disabled:C,type:"button",className:"igd-btn ".concat(C?"disabled":"btn-primary"),onClick:function(){R(!0),wp.ajax.post("igd_move_file",{file_ids:S,folder_id:p.id,account_id:p.accountId}).done((function(e){if(n((function(e){return e.filter((function(e){return!S.includes(e.id)}))})),r[p.id]){var o=[].concat(Kn(r[p.id]),Kn(t));i((function(e){return Wn(Wn({},e),{},Qn({},p.id,o))}))}Swal.fire({title:wp.i18n.__("Success","integrate-google-drive"),text:wp.i18n.__("File(s) moved successfully","integrate-google-drive"),icon:"success",toast:!0,showConfirmButton:!1,timer:2e3,timerProgressBar:!0})})).fail((function(e){console.log(e),Swal.fire({title:wp.i18n.__("Error","integrate-google-drive"),text:wp.i18n.__("Error moving file(s)","integrate-google-drive"),icon:"error",toast:!0,showConfirmButton:!1,timer:3e3,timerProgressBar:!0})})).always((function(){R(!1)}))}},_&&React.createElement("div",{className:"igd-spinner"}),_?wp.i18n.__("Moving...","integrate-google-drive"):wp.i18n.__("Move","integrate-google-drive")))}function $n(e){var t=e.folders,n=e.childFolders,r=e.selectedFolder,i=e.setSelectedFolder,o=e.getFolders,a=e.openFolders,l=e.setOpenFolders,c=e.loading;return t.length?t.map((function(e){var t=a.find((function(t){return t.id===e.id})),s=!!r&&r.id===e.id;return React.createElement("div",{key:e.id,className:"move-folder-wrap"},React.createElement("div",{className:"move-folder ".concat(s?"active":""),onClick:function(){i(s?null:e)}},React.createElement("i",{className:"dashicons dashicons-arrow-".concat(t?"down":"right"),onClick:function(r){r.stopPropagation(),l(t?function(t){return t.filter((function(t){return t.id!==e.id}))}:function(t){return[].concat(Kn(t),[e])}),t||n&&n[e.id]||o(e)}}," "),React.createElement("img",{src:e.iconLink,alt:e.name}),React.createElement("div",{className:"file-item-checkbox ".concat(s?"checked":"")},React.createElement("span",{className:"box"})),React.createElement("span",null,e.name),c===e.id&&React.createElement("div",{className:"igd-spinner"})),t&&n[e.id]&&React.createElement($n,{folders:n[e.id],childFolders:n,getFolders:o,setSelectedFolder:i,selectedFolder:r,openFolders:a,setOpenFolders:l,loading:c}))})):!c&&React.createElement("div",{className:"move-folder-wrap empty"},React.createElement("i",{className:"dashicons dashicons-warning"}),React.createElement("span",null,wp.i18n.__("No folders found!","integrate-google-drive")))}function er(e){return er="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},er(e)}function tr(e){return function(e){if(Array.isArray(e))return lr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ar(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nr(Object(n),!0).forEach((function(t){ir(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ir(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==er(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==er(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===er(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function or(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return l}}(e,t)||ar(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ar(e,t){if(e){if("string"==typeof e)return lr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?lr(e,t):void 0}}function lr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var cr=React,sr=cr.useState,dr=cr.useEffect;function ur(e){var t=e.files,n=e.allFiles,r=e.setAllFiles,i=e.activeAccount,o=e.initFolders,a=or(sr(null),2),l=a[0],c=a[1],s=or(sr(null),2),d=s[0],u=s[1],f=or(sr(null),2),m=f[0],p=f[1],g=or(sr([]),2),v=g[0],h=g[1],w=or(sr(!1),2),y=w[0],_=w[1];function R(e){return c(e.id),wp.ajax.post("igd_get_files",{data:{folder:e}}).done((function(t){var n=t.files;n=n.filter((function(e){return b(e)})),u((function(t){return rr(rr({},t),{},ir({},e.id,n))}))})).fail((function(e){console.log(e)})).always((function(){c(null)}))}dr((function(){var e={id:i.root_id,accountId:i.id};R(e).then((function(t){h([e])}))}),[]);var S=!1;m&&["computers","shared","starred","shared-drives"].includes(m.id)&&(S=!0);var A=E(!1,i);return o&&(A=o.filter((function(e){return b(e)}))),React.createElement("div",{className:"move-folders-wrap"},React.createElement("div",{className:"move-folders"},A.map((function(e){var t=e.id,n=e.name,r=e.iconLink,i=v.find((function(e){return e.id===t})),o=!!m&&m.id===t;return React.createElement(React.Fragment,null,React.createElement("div",{key:t,className:"move-folder ".concat(o?"active":""),onClick:function(){p(o?null:e)}},React.createElement("i",{className:"dashicons dashicons-arrow-".concat(i?"down":"right"),onClick:function(n){n.stopPropagation(),h((function(n){return i?n.filter((function(e){return e.id!==t})):[].concat(tr(n),[e])})),i||d&&d[t]||R(e)}}),React.createElement("img",{src:r,alt:n}),React.createElement("div",{className:"file-item-checkbox ".concat(o?"checked":"")},React.createElement("span",{className:"box"})),React.createElement("span",null,n),l===t&&React.createElement("div",{className:"igd-spinner"})),i&&React.createElement(fr,{folders:d[t]?d[t]:[],childFolders:d,selectedFolder:m,setSelectedFolder:p,getFolders:R,openFolders:v,setOpenFolders:h,loading:l}))}))),React.createElement("button",{disabled:S,type:"button",className:"igd-btn ".concat(S?"disabled":"btn-primary"),onClick:function(){_(!0),wp.ajax.post("igd_copy_file",{files:t,folder_id:m.id}).done((function(e){if(Swal.fire({title:wp.i18n.__("Success","integrate-google-drive"),text:wp.i18n.__("File(s) copied successfully","integrate-google-drive"),icon:"success",toast:!0,showConfirmButton:!1,timer:2e3,timerProgressBar:!0}),n[m.id]){var t=[].concat(tr(n[m.id]),tr(e));r((function(e){return rr(rr({},e),{},ir({},m.id,t))}))}})).fail((function(e){console.log(e),Swal.fire({title:wp.i18n.__("Error","integrate-google-drive"),text:wp.i18n.__("Error copying file(s)","integrate-google-drive"),icon:"error",toast:!0,showConfirmButton:!1,timer:3e3,timerProgressBar:!0})})).always((function(){_(!1)}))}},y&&React.createElement("div",{className:"igd-spinner"}),y?wp.i18n.sprintf(wp.i18n.__("Copying %s files","integrate-google-drive"),t.length):wp.i18n.__("Copy","integrate-google-drive")))}function fr(e){var t=e.folders,n=e.childFolders,r=e.selectedFolder,i=e.setSelectedFolder,o=e.getFolders,a=e.openFolders,l=e.setOpenFolders,c=e.loading;return t.length?t.map((function(e){var t=a.find((function(t){return t.id===e.id})),s=!!r&&r.id===e.id;return React.createElement("div",{key:e.id,className:"move-folder-wrap"},React.createElement("div",{className:"move-folder ".concat(s?"active":""),onClick:function(){i(s?null:e)}},React.createElement("i",{className:"dashicons dashicons-arrow-".concat(t?"down":"right"),onClick:function(r){r.stopPropagation(),l(t?function(t){return t.filter((function(t){return t.id!==e.id}))}:function(t){return[].concat(tr(t),[e])}),t||n&&n[e.id]||o(e)}}," "),React.createElement("img",{src:e.iconLink,alt:e.name}),React.createElement("div",{className:"file-item-checkbox ".concat(s?"checked":"")},React.createElement("span",{className:"box"})),React.createElement("span",null,e.name),c===e.id&&React.createElement("div",{className:"igd-spinner"})),t&&n[e.id]&&React.createElement(fr,{folders:n[e.id],childFolders:n,getFolders:o,setSelectedFolder:i,selectedFolder:r,openFolders:a,setOpenFolders:l,loading:c}))})):!c&&React.createElement("div",{className:"move-folder-wrap empty"},React.createElement("i",{className:"dashicons dashicons-warning"}),React.createElement("span",null,wp.i18n.__("No folders found!","integrate-google-drive")))}function mr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return pr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return pr(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var gr=React,vr=gr.useState,hr=gr.useEffect;function wr(e){var t=e.file,n=e.isDirectLink,r=t.id,i=t.name,o=t.accountId,a=t.type;function l(e){var t=jQuery(e.target).parents("#igd-share-modal").find(".share-link input").val();function n(e){var t=document.createElement("textarea");t.value=e,document.body.appendChild(t),t.focus(),t.select(),document.execCommand("Copy"),t.remove()}function r(){Swal.fire({title:wp.i18n.__("Copied","integrate-google-drive"),text:wp.i18n.__("Link copied to clipboard","integrate-google-drive"),icon:"success",showConfirmButton:!1,timer:2e3,timerProgressBar:!0,toast:!0})}navigator.clipboard&&window.isSecureContext?navigator.clipboard.writeText(t).then((function(){r()})).catch((function(){n(t),r()})):(n(t),r())}var c=T(JSON.stringify({id:r,accountId:o,type:a,name:i})),s=n?"".concat(igd.homeUrl,"/?direct_file=").concat(c):null,d=n?"".concat(igd.homeUrl,"/?direct_file=").concat(c,"&embed=1"):null,u=mr(vr(s),2),f=u[0],m=u[1],p=mr(vr(d),2),g=p[0],v=p[1];hr((function(){n||(Swal.showLoading(),wp.ajax.send("igd_get_share_link",{data:{file:t},success:function(e){m(e.viewLink),v(e.embedLink)},error:function(e){console.log(e),Swal.fire({title:wp.i18n.__("Error!","integrate-google-drive"),text:e.message,icon:"error",showConfirmButton:!0,confirmButtonText:wp.i18n.__("OK","integrate-google-drive"),customClass:{container:"igd-swal"}})}}).done((function(){Swal.hideLoading()})))}),[]);var h=mr(vr("link"),2),w=h[0],y=h[1],b=igd.settings.channels,_=void 0===b?["shareLink","embedCode","email"]:b;return f&&React.createElement(React.Fragment,null,React.createElement("div",{className:"share-link"},"link"===w?React.createElement("input",{type:"text",value:f,readOnly:!0,onClick:l}):React.createElement("textarea",{readOnly:!0,onClick:function(){document.querySelector(".share-link textarea").select(),document.execCommand("copy"),setTimeout((function(){Swal.fire({title:wp.i18n.__("Copied!","integrate-google-drive"),text:wp.i18n.__("Embed code copied to clipboard.","integrate-google-drive"),icon:"success",showConfirmButton:!1,timer:2e3,timerProgressBar:!0,toast:!0})}),500)}},'<iframe src="'.concat(g,'" width="100%" height="480" frameBorder="0" allowTransparency="true" allow="encrypted-media" frameborder="0" allowfullscreen="true" mozallowfullscreen="true" webkitallowfullscreen="true"></iframe>'))),React.createElement("div",{className:"share-links"},_.includes("shareLink")&&React.createElement("div",{className:"share-item link",onClick:function(e){y("link"),l(e)}},React.createElement("i",{className:"dashicons dashicons-admin-links"}),React.createElement("span",null,wp.i18n.__("Copy Link","integrate-google-drive"))),_.includes("embedCode")&&React.createElement("div",{className:"share-item embed",onClick:function(){return y("embed")}},React.createElement("i",{className:"dashicons dashicons-editor-code"}),React.createElement("span",null,wp.i18n.__("Embed","integrate-google-drive"))),_.includes("email")&&React.createElement("a",{className:"share-item email",href:"mailto:?subject=".concat(i,"&body=").concat(f),onClick:function(){return y("link")}},React.createElement("i",{className:"dashicons dashicons-email"}),React.createElement("span",null,wp.i18n.__("Email","integrate-google-drive"))),_.includes("facebook")&&React.createElement("a",{className:"share-item facebook",href:"https://www.facebook.com/sharer/sharer.php?u=".concat(f),target:"_blank",onClick:function(){return y("link")}},React.createElement("i",{className:"dashicons dashicons-facebook"}),React.createElement("span",null,wp.i18n.__("Facebook","integrate-google-drive"))),_.includes("twitter")&&React.createElement("a",{className:"share-item twitter",href:"https://twitter.com/intent/tweet?text=".concat(i,"&url=").concat(f),target:"_blank",onClick:function(){return y("link")}},React.createElement("i",{className:"dashicons dashicons-twitter"}),React.createElement("span",null,wp.i18n.__("Twitter","integrate-google-drive"))),_.includes("whatsapp")&&React.createElement("a",{className:"share-item whatsapp",href:"https://wa.me/?text=".concat(f),target:"_blank",onClick:function(){return y("link")}},React.createElement("i",{className:"dashicons dashicons-whatsapp"}),React.createElement("span",null,wp.i18n.__("WhatsApp","integrate-google-drive")))))}var yr=React,br=yr.useEffect,_r=yr.useRef,Er=ReactDOM.createPortal;const Rr=function(e){var t=e.children,n=_r(document.createElement("div"));return br((function(){return document.body.appendChild(n.current),function(){return document.body.removeChild(n.current)}}),[]),Er(t,n.current)};function Sr(e){return Sr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sr(e)}function Ar(e){return function(e){if(Array.isArray(e))return Or(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Or(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Or(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Or(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Cr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cr(Object(n),!0).forEach((function(t){Fr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Fr(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Sr(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Sr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Sr(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var kr=React.useContext;function Nr(){var e=kr(t),n=e.activeAccount,r=e.getFiles,i=e.activeFiles,o=e.setActiveFiles,a=e.activeFile,l=e.activeFolder,c=e.permissions,s=e.notifications,d=e.shortcodeBuilderType,u=e.isOptions,f=e.setIsOptions,m=e.isList,p=e.setIsList,g=e.setShowDetails,v=e.setIsUpload,h=e.isShortcodeBuilder,w=e.contextMenuId,_=e.selectAll,E=e.setSelectAll,R=e.files,S=e.setFiles,A=e.setAllFiles,O=e.allFiles,C=e.initFolders,F=e.initParentFolder,k="search"===d,j="gallery"===d,I="uploader"===d,L=a&&l&&a.id===l.id,B=function(){return L||!a||b(a)?1!==i.length||b(i[0])?u?i:[a]:[i[0]]:[a]},D=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=e?wp.i18n.__("Direct Link","integrate-google-drive"):wp.i18n.__("Share","integrate-google-drive");Swal.fire({title:t,html:'<div id="igd-share-modal"></div>',didOpen:function(){var t=document.getElementById("igd-share-modal");ReactDOM.render(React.createElement(wr,{file:a,isDirectLink:e}),t)},showCloseButton:!0,showConfirmButton:!1,showCancelButton:!1,customClass:{container:"igd-swal share-modal"}})},M=a&&a.permissions?a.permissions:{},z=!!M.canEdit,K=!!M.canPreview,H=!!M.canRename;c&&(c.refresh=!0,c.selectAll=c.download&&c.zipDownload);var W=[{key:"doc",title:wp.i18n.__("Google Doc","integrate-google-drive"),icon:"dashicons-media-document"},{key:"sheet",title:wp.i18n.__("Google Sheet","integrate-google-drive"),icon:"dashicons-media-spreadsheet"},{key:"slide",title:wp.i18n.__("Google Slide","integrate-google-drive"),icon:"dashicons-media-interactive"}],Q=[{key:"refresh",title:wp.i18n.__("Refresh","integrate-google-drive"),icon:"dashicons-update-alt"},{key:"newFolder",title:wp.i18n.__("New Folder","integrate-google-drive"),icon:"dashicons-open-folder"},{key:"createDoc",title:wp.i18n.__("Create Document","integrate-google-drive"),icon:"dashicons-welcome-add-page"},{key:"upload",title:wp.i18n.__("Upload Files","integrate-google-drive"),icon:"dashicons-cloud-upload"},{key:"preview",title:c&&!1===c.inlinePreview?wp.i18n.__("Preview in a new window","integrate-google-drive"):wp.i18n.__("Preview","integrate-google-drive"),icon:"dashicons-visibility"},{key:"drive",title:wp.i18n.__("Open in Google Drive","integrate-google-drive"),icon:"dashicons-admin-links"},{key:"details",title:wp.i18n.__("View Details","integrate-google-drive"),icon:"dashicons-info-outline"},{key:"directLink",title:wp.i18n.__("Direct Link","integrate-google-drive"),icon:"dashicons-admin-links"},{key:"share",title:wp.i18n.__("Share","integrate-google-drive"),icon:"dashicons-share"},{key:"selectAll",title:_?wp.i18n.__("Deselect All","integrate-google-drive"):wp.i18n.__("Select All","integrate-google-drive"),icon:"dashicons-screenoptions"},{key:"edit",title:wp.i18n.__("Edit (New Window)","integrate-google-drive"),icon:"dashicons-edit-page"},{key:"download",title:wp.i18n.__("Download","integrate-google-drive")+"".concat(u&&i.length>1?" (".concat(i.length,")"):""),icon:"dashicons-download"},{key:"import",title:wp.i18n.__("Import to Media","integrate-google-drive")+"".concat(u&&i.length>1?" (".concat(i.length,")"):""),icon:"dashicons-migrate"},{key:"move",title:wp.i18n.__("Move","integrate-google-drive")+"".concat(u&&i.length>1?" (".concat(i.length,")"):""),icon:"dashicons-editor-break"},{key:"rename",title:wp.i18n.__("Rename","integrate-google-drive"),icon:"dashicons-edit"},{key:"copy",title:wp.i18n.__("Copy","integrate-google-drive")+"".concat(u&&i.length>1?" (".concat(i.length,")"):""),icon:"dashicons-admin-page"},{key:"delete",title:wp.i18n.__("Delete","integrate-google-drive")+"".concat(u&&i.length>1?" (".concat(i.length,")"):""),icon:"dashicons-trash"},{key:"view",title:m?wp.i18n.__("Grid View","integrate-google-drive"):wp.i18n.__("List View","integrate-google-drive"),icon:m?"dashicons-grid-view":"dashicons-list-view"}].filter((function(e){var t=e.key;if((!h||["view","selectAll"].includes(t))&&(!k||["preview","download","view"].includes(t))&&("drive"!==t||!u&&!C)&&(!c||c[t])&&("view"!==t||(!j||h)&&u)&&("edit"!==t||z)&&(!["share","directLink","details"].includes(t)||a)&&("selectAll"!==t||R.length&&u&&!I)&&("preview"!==t||!(!a&&(1!==i.length||b(i[0]))||a&&(!K||b(a))||u&&(1!==i.length||b(i[0]))))&&("copy"!==t||!(u&&!i.length||!u&&a&&b(a)||u&&i.length&&i.some((function(e){return b(e)}))))&&("move"!==t||!u||i.length)&&("import"!==t||!(u&&(!i.length||i.some((function(e){return b(e)})))||a&&b(a)))&&("rename"!==t||!u||!(i.length>1)&&H)&&("delete"!==t||!u||i.length)&&("download"!==t||(a||i.length)&&(!a||a.permissions&&(b(a)||a.permissions.canDownload)))&&(L||l&&u&&!a&&!i.length||!["refresh","newFolder","upload","createDoc"].includes(t))&&(!(u&&l&&n.root_id!==l.id&&x(l.id,n))||["view"].includes(t))&&(!L||i.length||u||["refresh","newFolder","upload","createDoc"].includes(t)))return!0}));return Q.length||!c||c.view||f(null),React.createElement(Rr,null,React.createElement(Dn,{id:w,className:"igd-context-menu",animation:Nn.fade},Q.map((function(e){var t=e.key,d=e.title,h=e.icon;return React.createElement(Un,{key:t,onClick:function(e){e.data;var d=e.event;e.triggerEvent;if(f(!1),"newFolder"===t)return o([]),void Swal.fire({title:wp.i18n.__("New Folder","integrate-google-drive"),text:wp.i18n.__("Enter new folder name","integrate-google-drive"),input:"text",inputValue:"",inputAttributes:{autocapitalize:"off"},showCancelButton:!1,confirmButtonText:wp.i18n.__("Create","integrate-google-drive"),showLoaderOnConfirm:!0,showCloseButton:!0,customClass:{container:"igd-swal"},preConfirm:function(e){return e?wp.ajax.post("igd_new_folder",{name:e,parent_id:l.id,account_id:l.accountId}).done((function(e){var t=[].concat(Ar(R),[e]);S(t),A((function(e){return xr(xr({},e),{},Fr({},l.id,t))})),Swal.close(),Swal.fire({title:"Created!",text:"Folder has been created.",icon:"success",showConfirmButton:!1,timer:2e3,timerProgressBar:!0,toast:!0})})).fail((function(e){Swal.fire({title:"Error!",text:e.message,icon:"error",showConfirmButton:!0,confirmButtonText:"OK",customClass:{container:"igd-swal"}})})):Swal.showValidationMessage(wp.i18n.__("Please enter a name","integrate-google-drive"))}});if("refresh"!==t)if("upload"!==t)if("edit"!==t)if("share"!==t)if("directLink"!==t)if("preview"!==t)if("drive"!==t)if("download"!==t)if("rename"!==t)if("move"!==t){var h,w;if("copy"!==t)return"import"===t?igd.isPro?void function(){var e=u?i.filter((function(e){return!b(e)})):[a].filter((function(e){return!b(e)}));Swal.fire({title:"Importing ".concat(e.length," files"),text:wp.i18n.__("Please wait...","integrate-google-drive"),icon:"info",showConfirmButton:!1,allowEscapeKey:!1,allowEnterKey:!1,allowOutsideClick:!1,customClass:{container:"igd-swal"},didOpen:function(){Swal.showLoading(),wp.ajax.send("igd_import_media",{data:{files:e},success:function(e){console.log(e)},error:function(e){console.log(e)},complete:function(){Swal.fire({title:wp.i18n.__("Imported!","integrate-google-drive"),text:wp.i18n.__("File(s) have been imported.","integrate-google-drive"),icon:"success",showConfirmButton:!1,timer:2e3,timerProgressBar:!0,toast:!0,customClass:{container:"igd-swal"}})}})}})}():void N(wp.i18n.__("Upgrade to PRO to import cloud files to the Media Library.","integrate-google-drive")):"delete"===t?(h=u?i.map((function(e){return e.id})):[a.id],w=u?i[0].accountId:a.accountId,void Swal.fire({title:wp.i18n.__("Are you sure?","integrate-google-drive"),text:wp.i18n.__("You won't be able to revert this!","integrate-google-drive"),icon:"warning",showCancelButton:!0,customClass:{container:"igd-swal"},confirmButtonText:wp.i18n.__("Yes, delete it!","integrate-google-drive"),cancelButtonText:wp.i18n.__("No, cancel!","integrate-google-drive"),reverseButtons:!0,showLoaderOnConfirm:!0,preConfirm:function(){return wp.ajax.post("igd_delete_files",{file_ids:h,account_id:w})}}).then((function(e){if(e.isConfirmed){s&&s.deleteNotification&&wp.ajax.post("igd_notification",{files:B(),notifications:s,type:"delete"});var t=R.filter((function(e){return!h.includes(e.id)}));S(t),A((function(e){return xr(xr({},e),{},Fr({},l.id,t))})),Swal.fire({title:wp.i18n.__("Deleted!","integrate-google-drive"),text:wp.i18n.sprintf(wp.i18n._n("File has been deleted.","%d files have been deleted.",i.length,"integrate-google-drive"),i.length),icon:"success",showConfirmButton:!1,timer:1500,timerProgressBar:!0,toast:!0,customClass:{container:"igd-swal"}})}}))):"view"===t?(p(!m),void function(e,t,n){var r=U(t,n);localStorage.setItem("igd_listing_view_".concat(r),e)}(m?"grid":"list",C,F)):"details"===t?(g(!0),void localStorage.setItem("igd_show_details",1)):void("selectAll"!==t||E((function(e){return!e})));Swal.fire({title:wp.i18n.__("Copy","integrate-google-drive"),text:wp.i18n.__("Select destination","integrate-google-drive"),html:'<div id="igd-copy"></div>',showCancelButton:!1,showConfirmButton:!1,showCloseButton:!0,customClass:{container:"igd-swal igd-copy-swal"},didOpen:function(e){ReactDOM.render(React.createElement(ur,{files:u?i:[a],allFiles:O,setAllFiles:A,activeAccount:n,initFolders:C}),document.getElementById("igd-copy"))},willClose:function(){ReactDOM.unmountComponentAtNode(document.getElementById("igd-copy"))}})}else Swal.fire({title:wp.i18n.__("Move","integrate-google-drive"),text:wp.i18n.__("Select destination","integrate-google-drive"),html:'<div id="igd-move"></div>',showCancelButton:!1,showConfirmButton:!1,showCloseButton:!0,customClass:{container:"igd-swal igd-move-swal"},didOpen:function(e){var t=document.getElementById("igd-move");ReactDOM.render(React.createElement(Zn,{files:u?i:[a],setFiles:S,allFiles:O,setAllFiles:A,activeAccount:n,initFolders:C}),t)},willClose:function(){var e=document.getElementById("igd-move");ReactDOM.unmountComponentAtNode(e)}});else Swal.fire({title:wp.i18n.__("Rename","integrate-google-drive"),text:wp.i18n.__("Enter new name","integrate-google-drive"),input:"text",inputValue:a.name,inputAttributes:{autocapitalize:"off"},showCancelButton:!1,confirmButtonText:wp.i18n.__("Rename","integrate-google-drive"),showLoaderOnConfirm:!0,showCloseButton:!0,customClass:{container:"igd-swal"},preConfirm:function(e){return e?wp.ajax.post("igd_rename_file",{name:e,id:a.id,accountId:a.accountId}).done((function(){var t=R.map((function(t){return t.id===a.id?xr(xr({},t),{},{name:e}):t}));S(t),A((function(e){return xr(xr({},e),{},Fr({},l.id,t))})),Swal.close(),Swal.fire({title:wp.i18n.__("Renamed!","integrate-google-drive"),text:wp.i18n.__("File has been renamed.","integrate-google-drive"),icon:"success",showConfirmButton:!1,timer:2e3,timerProgressBar:!0,toast:!0,customClass:{container:"igd-swal"}})})).fail((function(e){Swal.fire({title:wp.i18n.__("Error!","integrate-google-drive"),text:e.message,icon:"error",showConfirmButton:!0,confirmButtonText:wp.i18n.__("OK","integrate-google-drive"),customClass:{container:"igd-swal"}})})):Swal.showValidationMessage(wp.i18n.__("Please enter a name","integrate-google-drive"))}});else{if(a&&a.exportAs&&Object.keys(a.exportAs).length)return;if(L||!a||b(a))if(1!==i.length||b(i[0]))!function(){var e=(new Date).getTime(),t=u?i.map((function(e){return e.id})):[a.id],n=u?i[0].accountId:a.accountId,r="".concat(igd.ajaxUrl,"?action=igd_download_zip&file_ids=").concat(T(JSON.stringify(t)),"&id=").concat(e,"&accountId=").concat(n);Swal.fire({title:wp.i18n.__("Download","integrate-google-drive"),html:'<div class="igd-download-wrap"><div id="igd-download-status"></div><div id="igd-download-progress"></div><iframe id="igd-hidden-download" class="igd-hidden" src="'.concat(r,'" ></iframe></div>'),showCancelButton:!1,showConfirmButton:!1,showCloseButton:!0,allowOutsideClick:!1,allowEscapeKey:!1,allowEnterKey:!1,customClass:{container:"igd-swal igd-download-popup"},didOpen:function(){Swal.showLoading();var t=jQuery("#igd-download-status"),n=jQuery("#igd-download-progress");window.downloadStatusInterval=setInterval((function(){wp.ajax.send("igd_download_status",{data:{id:e},success:function(e){if(!document.getElementById("igd-hidden-download"))return clearInterval(window.downloadStatusInterval),void Swal.close();if(!e)return clearInterval(window.downloadStatusInterval),Swal.close(),void Swal.fire({title:wp.i18n.__("Completed!","integrate-google-drive"),text:wp.i18n.__("Download completed","integrate-google-drive"),icon:"success",showConfirmButton:!1,toast:!0,timer:2e3,timerProgressBar:!0,customClass:{container:"igd-swal"}});var r=e.status,i=e.total,o=e.downloaded,a=e.action;"failed"===a?(clearInterval(window.downloadStatusInterval),Swal.close(),Swal.fire({title:wp.i18n.__("Error!","integrate-google-drive"),text:r,icon:"error",showConfirmButton:!0,confirmButtonText:wp.i18n.__("OK","integrate-google-drive"),customClass:{container:"igd-swal"}})):(t.html(r),"downloading"===a&&n.html("".concat(y(o)," of ").concat(y(i)," - ").concat(Math.round(o/i*100),"%")))},error:function(e){clearInterval(window.downloadStatusInterval),Swal.close(),Swal.fire({title:wp.i18n.__("Error!","integrate-google-drive"),text:e.message,icon:"error",showConfirmButton:!0,confirmButtonText:wp.i18n.__("OK","integrate-google-drive"),customClass:{container:"igd-swal"}})}})}),1e3)},willClose:function(){clearInterval(window.downloadStatusInterval)}})}();else{var _="".concat(igd.ajaxUrl,"?action=igd_download&id=").concat(i[0].id,"&accountId=").concat(i[0].accountId);window.location.href=_}else{var x="".concat(igd.ajaxUrl,"?action=igd_download&id=").concat(a.id,"&accountId=").concat(a.accountId);window.location.href=x}s&&s.downloadNotification&&wp.ajax.post("igd_notification",{files:B(),notifications:s,type:"download"})}else{var k=a||i[0];window.open(k.webViewLink,"_blank").focus()}else{var j=a||i[0];P(d,j.id,[j],c,s)}else D(!0);else D();else window.open(a.webViewLink,"_blank").focus();else v(!0);else r(l,"refresh")},data:{action:t},className:"context-menu-item ".concat(t," ").concat(["import"].includes(t)&&!igd.isPro?"disabled":"")},"createDoc"===t?React.createElement(Mn,{className:"context-submenu",label:React.createElement("div",{className:"context-submenu-label"},React.createElement("i",{className:"dashicons ".concat(h)}),React.createElement("span",null,d)),arrow:React.createElement("i",{className:"dashicons dashicons-arrow-right"})},W.map((function(e){var t=e.key,n=e.title,r=e.icon;return React.createElement(Un,{key:t,onClick:function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"doc",t=wp.i18n.__("New Document","integrate-google-drive"),n=wp.i18n.__("Enter document name","integrate-google-drive");"sheet"===e?(t=wp.i18n.__("New Spreadsheet","integrate-google-drive"),n=wp.i18n.__("Enter spreadsheet name","integrate-google-drive")):"slide"===e&&(t=wp.i18n.__("New Presentation","integrate-google-drive"),n=wp.i18n.__("Enter presentation name","integrate-google-drive")),Swal.fire({title:t,text:n,input:"text",inputValue:"",inputAttributes:{autocapitalize:"off"},showCancelButton:!1,confirmButtonText:wp.i18n.__("Create","integrate-google-drive"),showLoaderOnConfirm:!0,showCloseButton:!0,customClass:{container:"igd-swal"},preConfirm:function(t){return t?wp.ajax.post("igd_create_doc",{name:t,type:e,folder_id:l.id,account_id:l.accountId}).done((function(t){var n=[].concat(Ar(R),[t]);S(n),A((function(e){return xr(xr({},e),{},Fr({},l.id,n))})),Swal.close();var r=wp.i18n.__("Document created","integrate-google-drive"),i=wp.i18n.__("Document created successfully","integrate-google-drive");"sheet"===e?(r=wp.i18n.__("Spreadsheet created","integrate-google-drive"),i=wp.i18n.__("Spreadsheet created successfully","integrate-google-drive")):"slide"===e&&(r=wp.i18n.__("Presentation created","integrate-google-drive"),i=wp.i18n.__("Presentation created successfully","integrate-google-drive")),Swal.fire({title:r,text:i,icon:"success",showConfirmButton:!1,timer:2e3,timerProgressBar:!0,toast:!0})})).fail((function(e){console.log(e),Swal.fire({title:wp.i18n.__("Error!","integrate-google-drive"),text:e.message,icon:"error",showConfirmButton:!0,confirmButtonText:wp.i18n.__("OK","integrate-google-drive"),customClass:{container:"igd-swal"}})})):Swal.showValidationMessage(wp.i18n.__("Please enter a name","integrate-google-drive"))}})}(t)},className:"context-menu-item ".concat(t)},React.createElement("i",{className:"dashicons ".concat(r)}),React.createElement("span",null,n))}))):"download"===t&&a&&a.exportAs&&Object.keys(a.exportAs).length?React.createElement(Mn,{className:"context-submenu",label:React.createElement("div",{className:"context-submenu-label"},React.createElement("i",{className:"dashicons ".concat(h)}),React.createElement("span",null,wp.i18n.__("Download as","integrate-google-drive"))),arrow:React.createElement("i",{className:"dashicons dashicons-arrow-right"})},Object.keys(a.exportAs).map((function(e){return React.createElement(Un,{key:e,className:"context-menu-item ".concat(e),onClick:function(){return function(e){var t=a.exportAs[e].mimetype;window.location.href="".concat(igd.ajaxUrl,"?action=igd_download&id=").concat(a.id,"&accountId=").concat(a.accountId,"&mimetype=").concat(t)}(e)}},React.createElement("i",{className:"dashicons dashicons-media-text"}),React.createElement("span",null,e))}))):React.createElement(React.Fragment,null,React.createElement("i",{className:"dashicons ".concat(h)}),React.createElement("span",null,d),["import"].includes(t)&&!igd.isPro&&React.createElement("div",{className:"pro-badge"},React.createElement("i",{className:"dashicons dashicons-lock"}),React.createElement("span",null,wp.i18n.__("PRO","integrate-google-drive")))))}))))}function jr(){return React.createElement("div",{className:"no-account-placeholder"},React.createElement("img",{src:"".concat(igd.pluginUrl,"/assets/images/file-browser/no-account-placeholder.svg"),alt:"No Accounts"}),React.createElement("span",{className:"placeholder-heading"},wp.i18n.__("You didn't link any account yet.","integrate-google-drive")),React.createElement("span",{className:"placeholder-description"},wp.i18n.__("Please link to a Google Drive account to continue.","integrate-google-drive")),React.createElement("button",{className:"igd-btn add-account-btn",onClick:function(){igd.authUrl?B():window.location=igd.adminUrl+"/admin.php?page=integrate-google-drive-settings&tab=accounts"}},React.createElement("img",{src:"".concat(igd.pluginUrl,"/assets/images/google-icon.png")}),React.createElement("span",null,wp.i18n.__("Sign in with Google","integrate-google-drive"))))}function Pr(e){return Pr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pr(e)}function Ir(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Tr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ir(Object(n),!0).forEach((function(t){Br(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ir(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Lr(e){return function(e){if(Array.isArray(e))return Mr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ur(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Br(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Pr(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Pr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Pr(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return l}}(e,t)||Ur(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ur(e,t){if(e){if("string"==typeof e)return Mr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Mr(e,t):void 0}}function Mr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var zr=React,Kr=zr.useState,Hr=zr.useEffect,Wr=zr.useMemo,Qr=zr.useRef,qr=igd.settings.rememberLastFolder,Vr=void 0===qr||qr;function Gr(e){var t=e.shortcodeId,n=e.initParentFolder,i=e.isShortcodeBuilder,o=e.selectedFolders,a=e.setSelectedFolders,l=e.allFolders,c=e.privateFolders,s=e.initFolders,d=e.filters,u=e.shortcodeBuilderType,f=e.isList,m=e.showLastModified,p=void 0===m?!u:m,g=e.showFileSizeField,v=void 0===g||g,h=e.fileNumbers,w=e.sort,y=e.permissions,_=e.notifications,R=e.showHeader,O=void 0===R?i||!u:R,F=e.showRefresh,k=void 0===F||F,N=e.showSorting,P=void 0===N||N,I=e.showBreadcrumbs,T=void 0===I||I,L=e.galleryLayout,B=e.galleryAspectRatio,K=e.galleryColumns,W=e.galleryHeight,Q=e.galleryMargin,q=e.galleryView,V=e.galleryFolderView,G=e.thumbnailCaption,J=e.galleryOverlay,Y=e.galleryOverlayTitle,X=e.galleryOverlayDescription,Z=e.galleryOverlaySize,$=e.galleryImageSize,ee=e.galleryCustomSizeWidth,te=e.galleryCustomSizeHeight,ne=e.isSelectFiles,re=e.selectionType,ie=e.initialSearchTerm,oe=e.isLMS,ae=e.isWooCommerce,le=e.lazyLoad,ce=void 0===le||le,de=e.lazyLoadNumber,ue=void 0===de?100:de,fe=e.account,me=void 0===fe?igd.activeAccount:fe;!s&&igd.userAccessData&&(n=igd.userAccessData.initParentFolder,s=igd.userAccessData.initFolders);var pe=null;Vr&&(pe=function(e,t){var n=null,r=document.body.classList.contains("elementor-editor-active"),i=document.body.classList.contains("et-fb"),o=document.body.classList.contains("block-editor-page");if(r||i||o)return n;var a=D(e,t),l=sessionStorage.getItem(a);return l&&(n=JSON.parse(l)).id===(null==t?void 0:t.id)&&(n=null),n}(s,n));var ge,ve="search"===u&&!i,he="gallery"===u,ye="media"===u,be="uploader"===u,_e=Dr(Kr(me),2),Ee=_e[0],Re=_e[1],Se=Dr(Kr(!ve&&s?s:[]),2),Ae=Se[0],Oe=Se[1],Ce=[];!ve&&s&&(Ce=Br({},(null===(ge=n)||void 0===ge?void 0:ge.id)||"",s));var xe=Dr(Kr(Ce),2),Fe=xe[0],ke=xe[1],Ne=Dr(Kr([]),2),je=Ne[0],Pe=Ne[1],Ie=Dr(Kr(null),2),Te=Ie[0],Le=Ie[1],Be=Dr(Kr(!s&&!n&&!ve),2),De=Be[0],Ue=Be[1],Me=Dr(Kr({}),2),ze=Me[0],Ke=Me[1],He=Dr(Kr(!1),2),We=He[0],Qe=He[1],qe=Dr(Kr(!1),2),Ve=qe[0],Ge=qe[1],Je=Dr(Kr(window.innerWidth<=768),2),Ye=Je[0],Xe=Je[1],Ze=Dr(Kr(!Ye&&!i&&!s),2),$e=Ze[0],et=Ze[1],tt=Dr(Kr(!1),2),nt=tt[0],rt=tt[1],it=Dr(Kr(!1),2),ot=it[0],at=it[1],lt=Qr(ie),ct=Dr(Kr(ie),2),st=ct[0],dt=ct[1],ut=!Ye&&"1"==localStorage.getItem("igd_show_details")&&!s,ft=Dr(Kr(ut),2),mt=ft[0],pt=ft[1],gt=null;s?n&&(gt=n):gt=E(Ee.root_id,Ee),pe&&(gt=pe);var vt=Dr(Kr(gt),2),ht=vt[0],wt=vt[1],yt=localStorage.getItem("igd_sort")?JSON.parse(localStorage.getItem("igd_sort")):{sortBy:"name",sortDirection:"asc"},bt=Dr(Kr(null!=w?w:yt),2),_t=bt[0],Et=bt[1],Rt=function(e,t){var n=U(e,t);return localStorage.getItem("igd_listing_view_".concat(n))}(s,n);Rt&&(f="list"===Rt);var St=Dr(Kr(f),2),At=St[0],Ot=St[1],Ct=j();Hr((function(){Object.keys(igd.accounts).length&&(y&&y.allowSearch&&ie?Pt(ie):ve&&!i||(s||n?Vr&&pe&&Nt(pe,"last"):Nt()))}),[]),Hr((function(){if(Ct){Ue("switch"),ke({});var e={id:Ee.root_id,accountId:Ee.id,name:wp.i18n.__("My Drive","integrate-google-drive")};igd.activeAccount=Ee,wp.ajax.post("igd_switch_account",{id:Ee.id}).done((function(){Nt(e,"switch")})).fail((function(e){console.log(e)}))}}),[Ee]),Hr((function(){Ct&&(localStorage.setItem("igd_sort",JSON.stringify(_t)),Nt(ht,"sort"))}),[_t]),Hr((function(){var e=function(){Xe(window.innerWidth<768)};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[]),Hr((function(){Ct&&n.id&&n.id!==(null==ht?void 0:ht.id)&&jt(n)}),[n]);var xt=Dr(Kr(!1),2),Ft=xt[0],kt=xt[1];function Nt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(Le(null),Pe([]),Qe(!1),Ue(t||!0),s){if(!e)return Ue(!1),wt(null),void Oe(s);c?e.isPrivate=!0:ve&&(e.folders=s)}else e||pe&&pe.accountId===Ee.id&&(e=pe),e||(e=i?{id:Ee.root_id,accountId:Ee.id}:E(Ee.root_id,Ee));"lazy"!==t&&(e.pageNumber=1),wp.ajax.post("igd_get_files",{data:{folder:e,sort:_t,refresh:"refresh"===t,from_server:i||!!s&&!!n&&n.id===e.id,fileNumbers:h,limit:ce?ue:0,filters:d}}).done((function(r){var i=r.files,o=void 0===i?[]:i,a=r.breadcrumbs,l=r.error,c=r.nextPageNumber,d=void 0===c?0:c;if(l)"refresh"!==t&&Swal.fire({html:l,icon:"error",confirmButtonText:wp.i18n.__("Ok","integrate-google-drive"),customClass:{container:"igd-swal"}});else{o.length&&Vr&&M(e,s,n),!o.length&&Vr&&z(s,n),"lazy"===t&&ht&&ht.id===e.id&&(o=[].concat(Lr(Ae),Lr(o))),be&&(o=o.filter((function(e){return b(e)}))),ye&&(o=o.filter((function(e){return S(e)||b(e)}))),oe&&(o=o.filter((function(e){return A(e)||b(e)}))),he&&(o=o.filter((function(e){return C(e)||A(e)||b(e)}))),Oe(o);var u=Tr(Tr({},e),{},{pageNumber:d});ke((function(t){return Tr(Tr({},t),{},Br({},e.id,[].concat(Lr(o),[u])))})),wt(u),a&&Ke(a)}})).fail((function(t){console.log(t),wt(Tr(Tr({},e),{},{pageNumber:0})),Swal.fire({title:wp.i18n.__("Error!","integrate-google-drive"),text:wp.i18n.__("Something went wrong! Please try again later.","integrate-google-drive"),icon:"error",confirmButtonText:wp.i18n.__("Ok","integrate-google-drive"),customClass:{container:"igd-swal"}})})).always((function(){return Ue(!1)}))}function jt(e){var t=e.id;if(Le(null),Pe([]),Qe(!1),Fe[t]){var r=Fe[t];e=r.find((function(t){return t.id===e.id}))||e,wt(e),Oe(r.filter((function(e){return e.id!==t}))),Vr&&M(ht,s,n),Ke(function e(t){if(x(t,Ee)){var n=E(t,Ee);return Br({},t,n.name)}var i=Object.keys(ze),o=r.find((function(e){return e.id===t}));if(o){var a=Br({},t,o.name),l=o.parents||[];return!l.length||s&&s.find((function(e){return e.id===t}))?a:Tr(Tr({},e(l[0])),a)}if(i.includes(t)){var c=i.indexOf(t);return Object.fromEntries(i.slice(0,c+1).map((function(e){return[e,ze[e]]})))}return{}}(t))}else Nt(e);!s&&igd.showReviewPopup&&setTimeout((function(){!function(){H.apply(this,arguments)}()}),5e3)}function Pt(e){Qe(!0),lt.current=e;var t=ht?[ht]:s;Ue(!0),Le(null),Pe([]),Ge(!1),wp.ajax.post("igd_search_files",{folders:t,sort:_t,fileNumbers:h,keyword:e,accountId:Ee.id,isPrivate:c,fullTextSearch:null==y?void 0:y.fullTextSearch,filters:d}).done((function(t){var n=t.files,r=t.error;if(r)Swal.fire({html:r,icon:"error",confirmButtonText:wp.i18n.__("Ok","integrate-google-drive"),customClass:{container:"igd-swal"}});else{if(s){var i=s.filter((function(t){return t.name.toLowerCase().includes(e.toLowerCase())}));n=[].concat(Lr(i),Lr(n))}ye&&(n=n.filter((function(e){return S(e)||b(e)}))),oe&&(n=n.filter((function(e){return A(e)||b(e)}))),he&&(n=n.filter((function(e){return C(e)||A(e)||b(e)})));var o=new Set;n=n.filter((function(e){return!o.has(e.id)&&(o.add(e.id),!0)})),Oe(n)}})).fail((function(e){console.log(e),Swal.fire({title:wp.i18n.__("Error!","integrate-google-drive"),text:wp.i18n.__("Something went wrong! Please try again later.","integrate-google-drive"),icon:"error",confirmButtonText:"Ok",customClass:{container:"igd-swal"}})})).always((function(){Ue(!1)})),_&&_.searchNotification&&wp.ajax.post("igd_notification",{files:t,keyword:e,notifications:_,type:"search"})}Hr((function(){!Ft||(null==ht?void 0:ht.pageNumber)>1||(console.log("Refresh files on image load fail"),Nt(ht,"refresh"))}),[Ft]),Hr((function(){if(s&&ze){var e=Object.keys(ze),t=ht&&ht.id?ht.id:ht,r=!!e&&e.findIndex((function(e){return e===t}));if(n&&(e.find((function(e){return e===n.id}))&&delete ze[n.id],e[e.length-1]===n.id&&Ke({})),-1!==r)for(var i=function(t){if(s.find((function(n){return n.id===e[t]})))return"break";delete ze[e[t]]},o=0;o<r;o++){if("break"===i(o))break}}}),[ze]),Hr((function(){if(Ct)if(i){var e;if(ot){var t=[].concat(Lr(o),Lr(Ae)),n=new Set;e=t.filter((function(e){return!n.has(e.id)&&(n.add(e.id),!0)}))}else e=o.filter((function(e){return!Ae.some((function(t){return t.id===e.id}))}));a(e)}else he||i||Pe(ot?Ae:[])}),[ot]),Hr((function(){Ct&&(at(!1),Pe([]),Qe(!1))}),[ht]);var It,Tt=Wr((function(){return"igd-context-menu-".concat(Date.now())}),[]),Lt=(It={id:Tt},{show:function(e,t){Fn.show({id:(null==t?void 0:t.id)||(null==It?void 0:It.id),props:(null==t?void 0:t.props)||(null==It?void 0:It.props),event:e,position:null==t?void 0:t.position})},hideAll:function(){Fn.hideAll()}}),Bt=Lt.show,Dt=Lt.hideAll;return Hr((function(){var e=function(){ReactTooltip.hide(),Dt()},t=document.querySelector(".igd-shortcode-builder-form");return t&&t.addEventListener("scroll",e),function(){t&&t.removeEventListener("scroll",e)}}),[]),Object.keys(igd.accounts).length?React.createElement(r,{value:{shortcodeId:t,activeAccount:Ee,activeFiles:je,setActiveFiles:Pe,activeFile:Te,setActiveFile:Le,activeFolder:ht,permissions:y,notifications:_,shortcodeBuilderType:u,isList:At,setIsList:Ot,setShowDetails:pt,setIsUpload:Ge,getFiles:Nt,isShortcodeBuilder:i,isMobile:Ye,setActiveAccount:Re,allFolders:l,initFolders:s,isSearch:ve,setShowSidebar:et,sort:_t,setSort:Et,setFiles:Oe,setAllFiles:ke,breadcrumbs:ze,setActiveFolder:wt,isSearchResults:We,setIsSearchResults:Qe,isOptions:nt,setIsOptions:rt,listFiles:jt,showBreadcrumbs:T,showRefresh:k,showSorting:P,initParentFolder:n,isUpload:Ve,isLoading:De,files:Ae,allFiles:Fe,selectedFolders:o,setSelectedFolders:a,filters:d,showLastModified:p,showFileSizeField:v,setShouldRefresh:kt,galleryLayout:L,galleryAspectRatio:B,galleryColumns:K,galleryHeight:W,galleryMargin:Q,galleryView:q,galleryFolderView:V,thumbnailCaption:G,galleryOverlay:J,galleryOverlayTitle:Y,galleryOverlayDescription:X,galleryOverlaySize:Z,galleryImageSize:$,galleryCustomSizeWidth:ee,galleryCustomSizeHeight:te,show:Bt,hideAll:Dt,contextMenuId:Tt,isSelectFiles:ne,selectionType:re,selectAll:ot,setSelectAll:at,searchFiles:Pt,initialSearchTerm:ie,searchKeywordRef:lt,searchKeyword:st,setSearchKeyword:dt,isLMS:oe,isWooCommerce:ae,lazyLoad:ce,lazyLoadNumber:ue}},React.createElement("div",{className:"igd-file-browser"},React.createElement(Nr,null),(O&&!ve||ve&&We)&&React.createElement(se,null),React.createElement("div",{className:"igd-file-browser-body"},$e&&React.createElement(we,null),React.createElement(rn,null),!i&&mt&&React.createElement(hn,null)))):React.createElement(jr,null)}Vr=Vr||igd.isAdmin;var Jr=React,Yr=Jr.useRef,Xr=Jr.useEffect;function Zr(e){var t=e.file,n=e.isPlaying,r=e.playNext,i=e.playPrev,o=e.handleDownload,a=e.nextPrevious,l=e.rewindForward,c=e.download,s=e.playableItems,d=e.playlistAutoplay,u=e.showPlaylist,f=e.isLoop,m=e.isOpenPlaylist,p=e.setIsOpenPlaylist,g=e.isShuffle,v=e.setIsLoop,h=e.setIsShuffle,w=Yr(null),y=Yr(null),b=t||{},_=b.id,E=b.accountId,R=t&&O(t),S="".concat(igd.ajaxUrl,"?action=igd_stream&id=").concat(_,"&accountId=").concat(E),A=t&&k(t,"large"),C={controls:["play-large",!!l&&"rewind","play",!!l&&"fast-forward","current-time","progress","duration","mute","volume","captions","settings","pip","airplay","fullscreen"],settings:["speed","loop","shuffle","playlist"],speed:{selected:1,options:[.5,.75,1,1.25,1.5,2]},i18n:{shuffle:wp.i18n.__("Shuffle","integrate-google-drive"),loop:wp.i18n.__("Loop","integrate-google-drive"),playlist:wp.i18n.__("Playlist","integrate-google-drive")},keyboard:{focused:!0,global:!0},disableContextMenu:!c};Xr((function(){var e=jQuery,t=w.current,n=t.querySelector("video, audio");if(y.current=new Plyr(n,C),a&&s.length>1&&!e(t).find('[data-plyr="prev"]').length){var b=e('<button type="button" class="plyr__controls__item plyr__control" aria-label="Previous" data-plyr="prev"><svg width="18" height="18" fill="currentColor" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M64 468V44c0-6.6 5.4-12 12-12h48c6.6 0 12 5.4 12 12v176.4l195.5-181C352.1 22.3 384 36.6 384 64v384c0 27.4-31.9 41.7-52.5 24.6L136 292.7V468c0 6.6-5.4 12-12 12H76c-6.6 0-12-5.4-12-12z"/></svg></button>').on("click",(function(){return i()})),_=e('<button type="button"  class="plyr__controls__item plyr__control" aria-label="Next" data-plyr="next" tabindex="0"><svg width="18" height="18" fill="currentColor" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M384 44v424c0 6.6-5.4 12-12 12h-48c-6.6 0-12-5.4-12-12V291.6l-195.5 181C95.9 489.7 64 475.4 64 448V64c0-27.4 31.9-41.7 52.5-24.6L312 219.3V44c0-6.6 5.4-12 12-12h48c6.6 0 12 5.4 12 12z"/></svg></button>').on("click",(function(){return r()})),E=e(t).find('.plyr__controls [data-plyr="play"]'),R=e(t).find('.plyr__controls [data-plyr="play"]');l&&(E=e(t).find('.plyr__controls [data-plyr="rewind"]'),R=e(t).find('.plyr__controls [data-plyr="fast-forward"]')),b.insertBefore(E),_.insertAfter(R)}var S=e(t).find('.plyr__menu__container > div > div:first-child [role="menu"]'),A=S.parent().attr("id").match(/(\d+)/)[0];if(!e(t).find('[data-plyr-menu="loop"]').length){var O=e('<button data-plyr="settings" type="button" class="plyr__control plyr__control--forward" role="menuitem" data-plyr-menu="loop" aria-haspopup="true"><span> '.concat(wp.i18n.__("Loop","integrate-google-drive"),'  <span class="plyr__menu__value">').concat(f?wp.i18n.__("Enable","integrate-google-drive"):wp.i18n.__("Disable","integrate-google-drive"),"</span> </span></button>")).on("click",(function(){e("#plyr-settings-".concat(A,"-home")).prop("hidden",!0),e("#plyr-settings-".concat(A,"-loop")).prop("hidden",!1)}));S.append(O);var x=e('<button data-plyr="loop" type="button" role="menuitemradio" class="plyr__control" aria-checked="'.concat(f?"true":"false",'" value="enable"><span>').concat(wp.i18n.__("Enable","integrate-google-drive"),"</span></button>")).on("click",(function(){v(!0),e(".plyr__control.plyr__control--back").click(),O.find(".plyr__menu__value").text(wp.i18n.__("Enable","integrate-google-drive")),e(this).attr("aria-checked","true"),e(this).siblings().attr("aria-checked","false")})),F=e('<button data-plyr="loop" type="button" role="menuitemradio" class="plyr__control" aria-checked="'.concat(f?"false":"true",'" value="disable"><span>').concat(wp.i18n.__("Disable","integrate-google-drive"),"</span></button>")).on("click",(function(){v(!1),e(".plyr__control.plyr__control--back").click(),O.find(".plyr__menu__value").text(wp.i18n.__("Disable","integrate-google-drive")),e(this).attr("aria-checked","true"),e(this).siblings().attr("aria-checked","false")}));e("#plyr-settings-".concat(A,'-loop [role="menu"]')).append(x).append(F)}if(!e(t).find('[data-plyr-menu="shuffle"]').length){var k=e('<button data-plyr="settings" type="button" class="plyr__control plyr__control--forward" role="menuitem" data-plyr-menu="shuffle" aria-haspopup="true"><span> '.concat(wp.i18n.__("Shuffle","integrate-google-drive"),' <span class="plyr__menu__value">').concat(g?wp.i18n.__("Enable","integrate-google-drive"):wp.i18n.__("Disable","integrate-google-drive"),"</span> </span></button>")).on("click",(function(){e("#plyr-settings-".concat(A,"-home")).prop("hidden",!0),e("#plyr-settings-".concat(A,"-shuffle")).prop("hidden",!1)}));S.append(k);var N=e('<button data-plyr="loop" type="button" role="menuitemradio" class="plyr__control" aria-checked="'.concat(g?"true":"false",'" value="enable"><span>').concat(wp.i18n.__("Enable","integrate-google-drive"),"</span></button>")).on("click",(function(){h(!0),e(".plyr__control.plyr__control--back").click(),k.find(".plyr__menu__value").text(wp.i18n.__("Enable","integrate-google-drive")),e(this).attr("aria-checked","true"),e(this).siblings().attr("aria-checked","false")})),j=e('<button data-plyr="loop" type="button" role="menuitemradio" class="plyr__control" aria-checked="'.concat(g?"false":"true",'" value="disable"><span>').concat(wp.i18n.__("Disable","integrate-google-drive"),"</span></button>")).on("click",(function(){h(!1),e(".plyr__control.plyr__control--back").click(),k.find(".plyr__menu__value").text(wp.i18n.__("Disable","integrate-google-drive")),e(this).attr("aria-checked","true"),e(this).siblings().attr("aria-checked","false")}));e("#plyr-settings-".concat(A,'-shuffle [role="menu"]')).append(N).append(j)}if(u&&!e(t).find('[data-plyr-menu="playlist"]').length){var P=e('<button data-plyr="settings" type="button" class="plyr__control plyr__control--forward" role="menuitem" data-plyr-menu="playlist" aria-haspopup="true"><span> '.concat(wp.i18n.__("Playlist","integrate-google-drive"),' <span class="plyr__menu__value">').concat(m?wp.i18n.__("Show","integrate-google-drive"):wp.i18n.__("Hide","integrate-google-drive"),"</span> </span> </span></button>")).on("click",(function(){e("#plyr-settings-".concat(A,"-home")).prop("hidden",!0),e("#plyr-settings-".concat(A,"-playlist")).prop("hidden",!1)}));S.append(P);var I=e('<button data-plyr="loop" type="button" role="menuitemradio" class="plyr__control" aria-checked="'.concat(m?"true":"false",'" value="enable"><span>').concat(wp.i18n.__("Show","integrate-google-drive"),"</span></button>")).on("click",(function(){e(t).find('.plyr__controls__item > [data-plyr="settings"]').click(),p(!0),P.find(".plyr__menu__value").text(wp.i18n.__("Show","integrate-google-drive")),e(this).attr("aria-checked","true"),e(this).siblings().attr("aria-checked","false")})),T=e('<button data-plyr="loop" type="button" role="menuitemradio" class="plyr__control" aria-checked="'.concat(m?"false":"true",'" value="disable"><span>').concat(wp.i18n.__("Hide","integrate-google-drive"),"</span></button>")).on("click",(function(){e(t).find('.plyr__controls__item > [data-plyr="settings"]').click(),p(!1),P.find(".plyr__menu__value").text(wp.i18n.__("Hide","integrate-google-drive")),e(this).attr("aria-checked","true"),e(this).siblings().attr("aria-checked","false")}));e("#plyr-settings-".concat(A,'-playlist [role="menu"]')).append(I).append(T)}if(c&&!e(t).find('[data-plyr-menu="download"]').length){var L=e('<button data-plyr="settings" type="button" class="plyr__control" role="menuitem" data-plyr-menu="download" aria-haspopup="true"><span> '.concat(wp.i18n.__("Download","integrate-google-drive")," </span></button>")).on("click",(function(){e(t).find('.plyr__controls__item > [data-plyr="settings"]').click(),o()}));S.append(L)}return y.current.on("ended",(function(){(f||d)&&r(!0)})),function(){y.current.destroy()}}),[t]);var x=j();Xr((function(){x&&y.current&&(n?y.current.play():y.current.pause())}),[n,y.current]);var F=R?'<audio src="'.concat(S,'" controls preload="auto"></audio>'):'<video class="igd-player-media-video" src="'.concat(S,'" width="100%" height="100%" controls  poster=').concat(A,' preload="auto" ></video>');return React.createElement("div",{className:"igd-player-media-wrap",ref:w,dangerouslySetInnerHTML:{__html:F}})}function $r(e){var t=e.files,n=e.searchKeywordRef,r=t.length?t.length:wp.i18n.__("No","integrate-google-drive"),i=wp.i18n.sprintf(wp.i18n.__('Search results for "%s": %s items found.',"integrate-google-drive"),"<strong>".concat(n.current,"</strong>"),r);return React.createElement("div",{className:"search-result-info"},React.createElement("span",{dangerouslySetInnerHTML:{__html:i}}),React.createElement("button",{onClick:function(e){document.querySelector(".search-dismiss").click()},className:"clear-button igd-btn btn-warning"},wp.i18n.__("Clear","integrate-google-drive")))}function ei(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ti(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ti(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ti(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ni=React,ri=ni.useState,ii=ni.useRef,oi=ni.useEffect;ni.useContext;function ai(e){var t=e.initFolders,n=e.initParentFolder,r=e.sort,i=e.filters,o=e.privateFolders,a=e.setFiles,l=e.fullTextSearch,c=e.initialSearchTerm,s=e.isSearchResults,d=e.setIsSearchResults,u=e.searchKeywordRef,f=e.notifications,m=e.isLoading,p=e.setIsLoading,g=ei(ri(c),2),v=g[0],h=g[1],w=ii(null),y=ei(ri(!1),2),_=y[0],E=y[1],R=ii(),A=ei(ri(!!c),2),O=A[0],C=A[1],x=function(e){var c;p(!0),d(!0),u.current=e;var s=n?[n]:t;wp.ajax.post("igd_search_files",{folders:s,sort:r,keyword:e,accountId:null===(c=s[0])||void 0===c?void 0:c.accountId,isPrivate:o,fullTextSearch:l,filters:i}).done((function(e){var t=e.files,n=e.error;n?Swal.fire({html:n,icon:"error",confirmButtonText:wp.i18n.__("Ok","integrate-google-drive"),customClass:{container:"igd-swal"}}):(t=t.filter((function(e){return b(e)||S(e)})),a(t))})).fail((function(e){console.log(e),Swal.fire({title:wp.i18n.__("Error!","integrate-google-drive"),text:wp.i18n.__("Something went wrong! Please try again later.","integrate-google-drive"),icon:"error",confirmButtonText:"Ok",customClass:{container:"igd-swal"}})})).always((function(){p(!1)})),f&&f.searchNotification&&wp.ajax.post("igd_notification",{files:s,keyword:e,notifications:f,type:"search"})},F=function(e){if(e&&e.preventDefault(),E(!1),!v)return Swal.fire({title:wp.i18n.__("Error","integrate-google-drive"),text:wp.i18n.__("Please enter a keyword to search","integrate-google-drive"),icon:"error",confirmButtonText:"Ok",customClass:{container:"igd-swal"}}),void E(!0);x(v)},k=j();return oi((function(){if(k&&v&&!(v.length<4))return w.current=setTimeout((function(){F()}),2e3),function(){clearTimeout(w.current)}}),[v]),oi((function(){R.current.addEventListener("keydown",(function(e){" "===e.key&&e.stopPropagation()}),!0),c&&x(c)}),[]),React.createElement("form",{ref:R,className:"playlist-search ".concat(O?"active":""," ").concat(_?"error":""),onSubmit:F},m&&React.createElement("div",{className:"igd-spinner"}),s&&!m&&React.createElement("div",{className:"search-dismiss",onClick:function(){C(!O),h(""),E(!1),d(!1),a(t)}},React.createElement("svg",{width:"14",height:"14",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M1.5 1.5L10.5 10.5M1.5 10.5L10.5 1.5L1.5 10.5Z",stroke:"#BABABA",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),React.createElement("input",{type:"text",placeholder:wp.i18n.__("Enter a keyword to search in the playlist","integrate-google-drive"),value:v,onChange:function(e){h(e.target.value)}}),React.createElement("div",{className:"search-submit",onClick:function(){var e;O?F():(C(!0),null===(e=R.current)||void 0===e||e.querySelector("input").focus())}},React.createElement("svg",{width:"18",height:"18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},React.createElement("path",{d:"M508.5 468.9L387.1 347.5c-2.3-2.3-5.3-3.5-8.5-3.5h-13.2c31.5-36.5 50.6-84 50.6-136C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c52 0 99.5-19.1 136-50.6v13.2c0 3.2 1.3 6.2 3.5 8.5l121.4 121.4c4.7 4.7 12.3 4.7 17 0l22.6-22.6c4.7-4.7 4.7-12.3 0-17zM208 368c-88.4 0-160-71.6-160-160S119.6 48 208 48s160 71.6 160 160-71.6 160-160 160z"})),React.createElement(ReactTooltip,{id:"search",place:"bottom",effect:"solid",className:"igd-tooltip"})))}function li(e){return function(e){if(Array.isArray(e))return di(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||si(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ci(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return l}}(e,t)||si(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function si(e,t){if(e){if("string"==typeof e)return di(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?di(e,t):void 0}}function di(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ui=React.useState;function fi(e){var t=e.file,n=e.files,r=e.setFile,i=e.folderFiles,o=e.getFolderFiles,a=e.isSub,l=e.isPlaying,c=e.setIsPlaying,s=e.download,d=e.activeFolder,u=e.setActiveFolder,f=e.playlistThumbnail,m=e.playlistNumber,p=e.allowSearch,g=e.initParentFolder,v=e.initFolders,h=e.filters,w=e.privateFolders,_=e.fullTextSearch,E=e.initialSearchTerm,R=e.sort,O=e.setFiles,C=e.isSearchResults,x=e.setIsSearchResults,F=e.searchKeywordRef,N=e.notifications,j=ci(ui([]),2),P=j[0],I=j[1],T=ci(ui(!1),2),L=T[0],B=T[1];return React.createElement("div",{className:a?"sub-item":"igd-player-playlist"},!a&&p&&React.createElement(React.Fragment,null,React.createElement(ai,{initFolders:v,initParentFolder:g,filters:h,sort:R,privateFolders:w,setFiles:O,fullTextSearch:_,initialSearchTerm:E,isSearchResults:C,setIsSearchResults:x,searchKeywordRef:F,isLoading:L,setIsLoading:B,notifications:N}),C&&!L&&React.createElement($r,{files:n,searchKeywordRef:F})),n.length>0&&n.map((function(e,n){var a=e.id,j=e.name,T=e.size,L=k(e,"custom",{w:64,h:64}),B=b(e);if(B||S(e)){var D=a===d,U=(null==t?void 0:t.id)===a,M=P.find((function(t){return t.id===e.id}));return React.createElement("div",{key:a,className:"playlist-item-wrap"},React.createElement("div",{className:"playlist-item ".concat(U?"active":""),onClick:function(n){if(n.stopPropagation(),B){if(u(!D&&a),I(M?function(t){return t.filter((function(t){return t.id!==e.id}))}:function(t){return[].concat(li(t),[e])}),M||i&&i[e.id])return;o(e)}else if(t&&t.id===a)c(!l||"pause"===l);else if(c(!0),r(e),A(e)){var s=n.target.closest(".igd-player");s&&(s.classList.contains("playlist-bottom")||window.innerWidth<768)&&s.scrollIntoView({behavior:"smooth"})}}},m&&React.createElement("span",{className:"item-index"},String(n+1).padStart(2,"0"),"."),B&&(!D||!!i[a])&&React.createElement("span",{className:"dashicons ".concat(M?"dashicons-arrow-down":"dashicons-arrow-right")}),D&&!i[a]&&React.createElement("div",{className:"igd-spinner"}),f&&React.createElement("img",{src:L,alt:j}),React.createElement("span",{className:"item-name"},j),!B&&s&&!!T&&React.createElement("span",{className:"item-size"},y(T)),!B&&U&&l&&"pause"!==l&&React.createElement("span",{className:"dashicons dashicons-controls-pause"}),!B&&(!U||!l||"pause"===l)&&React.createElement("span",{className:"dashicons dashicons-controls-play"})),M&&!!i[a]&&React.createElement(fi,{isSub:!0,files:i[a],file:t,setFile:r,folderFiles:i,getFolderFiles:o,isPlaying:l,setIsPlaying:c,download:s,activeFolder:d,setActiveFolder:u,playlistThumbnail:f,playlistNumber:m,allowSearch:p,initParentFolder:g,initFolders:v,filters:h,privateFolders:w,fullTextSearch:_,initialSearchTerm:E,sort:R,setFiles:O,isSearchResults:C,setIsSearchResults:x,searchKeywordRef:F,notifications:N}))}})))}function mi(e){return mi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mi(e)}function pi(e){return function(e){if(Array.isArray(e))return bi(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||yi(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function gi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gi(Object(n),!0).forEach((function(t){hi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function hi(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==mi(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==mi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===mi(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return l}}(e,t)||yi(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yi(e,t){if(e){if("string"==typeof e)return bi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?bi(e,t):void 0}}function bi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var _i=React,Ei=_i.useRef,Ri=_i.useEffect,Si=_i.useState;const Ai=function(e){var t=e.initFolders,n=void 0===t?[]:t,r=e.nextPrevious,i=e.rewindForward,o=e.allowEmbedPlayer,a=e.download,l=e.sort,c=e.allowSearch,s=e.initParentFolder,d=e.filters,u=e.privateFolders,f=e.fullTextSearch,m=void 0===f||f,p=e.initialSearchTerm,g=e.showPlaylist,v=void 0===g||g,h=e.openedPlaylist,w=void 0===h||h,y=e.playlistPosition,_=void 0===y?"bottom":y,E=e.notifications,R=e.playlistThumbnail,C=e.playlistAutoplay,x=e.playlistNumber,F=wi(Si(n),2),N=F[0],P=F[1],I=wi(Si(n.filter((function(e){return S(e)}))),2),T=I[0],L=I[1],B=wi(Si(T.length?T[0]:null),2),D=B[0],U=B[1],M=wi(Si(null),2),z=M[0],K=M[1],H=wi(Si(v&&w),2),W=H[0],Q=H[1],q=Ei(p),V=wi(Si(!1),2),G=V[0],J=V[1];Ri((function(){N.length&&L(n.filter((function(e){return!b(e)})))}),[N]);var Y=wi(Si(!1),2),X=Y[0],Z=Y[1],$=wi(Si({}),2),ee=$[0],te=$[1],ne=D&&A(D),re=wi(Si("true"===localStorage.getItem("igd_is_loop")),2),ie=re[0],oe=re[1],ae=wi(Si("true"===localStorage.getItem("igd_is_shuffle")),2),le=ae[0],ce=ae[1],se=D?T.findIndex((function(e){return e.id===D.id})):0,de=Ei(null),ue=j();Ri((function(){ue&&localStorage.setItem("igd_is_loop",ie?"true":"false")}),[ie]),Ri((function(){ue&&localStorage.setItem("igd_is_shuffle",le?"true":"false")}),[le]),Ri((function(){ue&&E&&E.playNotification&&wp.ajax.post("igd_notification",{files:[D],notifications:E,type:"play"})}),[D]);var fe=D&&O(D),me=wi(Si("lg"),2),pe=me[0],ge=me[1];Ri((function(){if(de.current){var e=480,t=768,n=992,r=new ResizeObserver((function(r){var i=r[0].contentRect.width;ge(i<=e?"xs":i<=t?"sm":i<=n?"md":"lg")}));return r.observe(de.current),function(){r.disconnect()}}}),[de]);var ve=o&&D&&A(D)&&D.size>1e8;return Ri((function(){ve&&wp.ajax.post("igd_update_file_permission",{file_id:D.id,account_id:D.accountId})}),[D]),React.createElement("div",{ref:de,className:"\n                igd-player \n                playlist-".concat(_,"\n               \n                ").concat(ne?"type-video":"type-audio"," \n                ").concat(X?"active":"paused"," \n                ").concat(ie?"is-loop":"","\n                ").concat(W?"is-playlist":"","\n                ").concat(le?"is-shuffle":"","\n                size-").concat(pe,"\n            ")},React.createElement("div",{className:"media-wrap"},fe&&React.createElement("div",{className:"current-item"},React.createElement("img",{src:k(D,"small"),alt:D.name}),React.createElement("div",{className:"item-caption"},React.createElement("span",{className:"item-title"},D.name),!!D.description&&React.createElement("span",{className:"item-description"},D.description))),ve&&React.createElement("iframe",{src:"https://drive.google.com/file/d/".concat(D.id,"/preview"),width:"100%",height:"100%",frameBorder:"0",allowFullScreen:!0,referrerPolicy:"no-referrer",allow:"autoplay",sandbox:"allow-scripts allow-same-origin"}),!!D&&!ve&&React.createElement(Zr,{file:D,isPlaying:X,setIsPlaying:Z,playNext:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(Z(!0),!e||!ie){var t=se+1<T.length?T[se+1]:T[0];le&&(t=T[Math.floor(Math.random()*T.length)]),U(t)}},playPrev:function(){Z(!0),U(se-1>=0?T[se-1]:T[T.length-1])},download:a,showPlaylist:v,nextPrevious:r,rewindForward:i,playableItems:T,handleDownload:function(){var e="".concat(igd.ajaxUrl,"?action=igd_download&id=").concat(D.id,"&accountId=").concat(D.accountId);window.open(e,"_blank").focus(),E&&E.downloadNotification&&wp.ajax.post("igd_notification",{files:[D],notifications:E,type:"download"})},playlistAutoplay:C,isLoop:ie,setIsLoop:oe,isOpenPlaylist:W,setIsOpenPlaylist:Q,isShuffle:le,setIsShuffle:ce})),W&&React.createElement(fi,{file:D,files:N,setFile:U,folderFiles:ee,getFolderFiles:function(e){return wp.ajax.post("igd_get_files",{data:{folder:e,sort:l,filters:d}}).done((function(t){var n=t.files;n=n.filter((function(e){return S(e)||b(e)})),te((function(t){return vi(vi({},t),{},hi({},e.id?e.id:e,n))})),L((function(e){return[].concat(pi(e),pi(n.filter((function(e){return!b(e)}))))}))}))},isPlaying:X,setIsPlaying:Z,download:a,activeFolder:z,setActiveFolder:K,playlistThumbnail:R,playlistNumber:x,allowSearch:c,initParentFolder:s,initFolders:n,filters:d,privateFolders:u,fullTextSearch:m,initialSearchTerm:p,sort:l,setFiles:P,isSearchResults:G,setIsSearchResults:J,searchKeywordRef:q,notifications:E}))};function Oi(e){var t=e.initFolders,n=e.slideName,r=e.slideDescription,i=e.slideHeight,o=e.slidesPerPage,a=e.slideAutoplay,l=e.slideAutoplaySpeed,c=e.slideDots,s=e.slideArrows,d=e.download,u=e.preview,f=e.notifications,m=e.sliderImageSize,p=e.sliderCustomSizeWidth,g=e.sliderCustomSizeHeight,v=e.slideGap,h=function(e,n){P(e,n,t,{download:d,preview:u,inlinePreview:!0,notifications:f})},w=function(){var e=o[arguments.length>0&&void 0!==arguments[0]?arguments[0]:"md"];return t.length<e?t.length:e},y={dots:c,arrows:s,speed:500,slidesToShow:w("md"),infinite:!0,initialSlide:0,autoplay:a,autoplaySpeed:parseInt(l),cssEase:"linear",nextArrow:React.createElement("span",{className:"slick-arrow slick-next"},React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 320 512"},React.createElement("path",{d:"M278.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-160 160c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L210.7 256 73.4 118.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l160 160z"}))),prevArrow:React.createElement("span",{className:"slick-arrow slick-prev"},React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 320 512"},React.createElement("path",{d:"M41.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 256 246.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z"}))),responsive:[{breakpoint:576,settings:{slidesToShow:w("xs"),dots:!1}},{breakpoint:768,settings:{slidesToShow:w("sm")}},{breakpoint:992,settings:{slidesToShow:w("md")}},{breakpoint:1200,settings:{slidesToShow:w("lg")}},{breakpoint:2800,settings:{slidesToShow:w("xl")}}]};return React.createElement("div",{className:"igd-slider",style:{"--slide-height":i,"--slide-gap":"".concat(v,"px")}},React.createElement(Slider.default,y,t.map((function(e,t){var i=e.id,o=(e.accountId,e.name),a=e.description,l=k(e,m,{w:p,h:g});return React.createElement(React.Fragment,null,React.createElement("div",{className:"slider-img-wrap",onClick:function(e){return u&&h(e,i)}},React.createElement("img",{referrerPolicy:"no-referrer",src:l,alt:o})),React.createElement("div",{className:"slider-content-wrap",onClick:function(e){return u&&h(e,i)}},n&&React.createElement("h3",null,o),r&&!!a&&React.createElement("p",null,a)))}))))}function Ci(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw i}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return xi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xi(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Fi,ki,Ni=React,ji=Ni.useEffect,Pi=Ni.useState;window.IgdShortcode=function(e){var t=e.data,n=e.isPreview,i=Ci(Pi(!1),2),o=i[0],a=i[1],l=Ci(Pi(""),2),c=l[0],s=l[1],d=t.id,u=t.type,f=t.allFolders,m=t.privateFolders,p=void 0!==m&&m,g=t.folders,v=void 0===g?[]:g,h=t.filters,w=t.galleryLayout,y=void 0===w?"justified":w,_=t.galleryAspectRatio,R=void 0===_?"1/1":_,A=t.galleryColumns,O=void 0===A?{xs:1,sm:2,md:3,lg:4,xl:5}:A,C=t.galleryHeight,x=void 0===C?300:C,F=t.galleryMargin,k=void 0===F?5:F,N=t.galleryView,j=void 0===N?"rounded":N,P=t.galleryFolderView,T=void 0===P?"title":P,L=t.galleryOverlay,B=void 0===L||L,D=t.galleryOverlayTitle,U=void 0===D||D,M=t.galleryOverlayDescription,z=void 0===M||M,K=t.galleryOverlaySize,H=void 0!==K&&K,W=t.galleryImageSize,Q=void 0===W?"medium":W,q=t.galleryCustomSizeWidth,V=t.galleryCustomSizeHeight,G=t.view,J=t.lazyLoad,Y=void 0===J||J,X=t.lazyLoadNumber,Z=void 0===X?100:X,$=t.showLastModified,ee=void 0!==$&&$,te=t.showFileSizeField,ne=void 0===te||te,re=t.showHeader,ie=void 0===re||re,oe=t.showRefresh,ae=void 0===oe||oe,le=t.showSorting,ce=void 0===le||le,se=t.showBreadcrumbs,de=void 0===se||se,ue=t.nextPrevious,fe=void 0===ue||ue,me=t.rewindForward,pe=void 0!==me&&me,ge=t.allowEmbedPlayer,ve=t.showPlaylist,he=void 0===ve||ve,we=t.playlistThumbnail,ye=void 0===we||we,be=t.playlistNumber,_e=void 0===be||be,Ee=t.playlistAutoplay,Re=void 0===Ee||Ee,Se=t.openedPlaylist,Ae=void 0===Se||Se,Oe=t.playlistPosition,Ce=void 0===Oe?"bottom":Oe,xe=t.fileNumbers,Fe=t.sort,ke=t.maxFiles,Ne=t.maxFileSize,Pe=t.minFileSize,Ie=t.notifications,Te=t.preview,Le=void 0===Te||Te,Be=t.inlinePreview,De=void 0===Be||Be,Ue=t.allowPreviewPopout,Me=void 0===Ue||Ue,ze=t.directLink,Ke=void 0!==ze&&ze,He=t.createDoc,We=void 0!==He&&He,Qe=t.edit,qe=void 0!==Qe&&Qe,Ve=t.newFolder,Ge=void 0!==Ve&&Ve,Je=t.rename,Ye=void 0!==Je&&Je,Xe=t.details,Ze=void 0!==Xe&&Xe,$e=t.moveCopy,et=t.moveCopy,tt=t.canDelete,nt=void 0!==tt&&tt,rt=t.upload,it=void 0!==rt&&rt,ot=t.download,at=void 0===ot||ot,lt=t.zipDownload,ct=void 0!==lt&&lt,st=t.allowShare,dt=void 0!==st&&st,ut=t.viewSwitch,ft=void 0===ut||ut,mt=t.allowSearch,pt=void 0===mt?"search"===u:mt,gt=t.fullTextSearch,vt=void 0===gt||gt,ht=t.initialSearchTerm,wt=void 0===ht?"":ht,yt=t.comment,bt=void 0!==yt&&yt,_t=t.commentMethod,Et=void 0===_t?"facebook":_t,Rt=t.photoProof,St=void 0!==Rt&&Rt,At=t.photoProofEmail,Ot=t.photoProofMaxSelection,Ct=t.uploadImmediately,xt=t.isFormUploader,Ft=t.isRequired,kt=t.isWooCommerceUploader,Nt=t.wcOrderId,jt=t.wcItemId,Pt=t.wcProductId,It=t.uploadedFiles,Tt=void 0===It?[]:It,Lt=t.initParentFolder,Bt=t.enableFolderUpload,Dt=t.overwrite,Ut=t.showUploadLabel,Mt=t.uploadLabelText,zt=void 0===Mt?wp.i18n.__("Upload Files","integrate-google-drive"):Mt,Kt=t.uploadFileName,Ht=t.showUploadConfirmation,Wt=void 0===Ht||Ht,Qt=t.uploadConfirmationMessage,qt=void 0===Qt?"<h3>".concat(wp.i18n.__("Upload successful!","integrate-google-drive"),"</h3> <p>").concat(wp.i18n.__("Your file(s) have been uploaded. Thank you for your submission!","integrate-google-drive"),"</p>"):Qt,Vt=t.slideName,Gt=void 0===Vt||Vt,Jt=t.sliderImageSize,Yt=void 0===Jt?"medium":Jt,Xt=t.sliderCustomSizeWidth,Zt=t.sliderCustomSizeHeight,$t=t.slideDescription,en=t.slideHeight,tn=void 0===en?"300px":en,nn=t.slidesPerPage,rn=void 0===nn?{xs:1,sm:2,md:3,lg:4,xl:5}:nn,on=t.slidesToScroll,an=void 0===on?1:on,ln=t.slideAutoplay,cn=void 0===ln||ln,sn=t.slideAutoplaySpeed,dn=void 0===sn?3e3:sn,un=t.slideDots,fn=void 0===un||un,mn=t.slideArrows,pn=void 0===mn||mn,gn=t.slideGap,vn=void 0===gn?5:gn,hn=t.account,wn=f?E():v;return ji((function(){n&&(a(!0),wp.ajax.post("igd_get_shortcode_content",{data:t}).done((function(e){return s(e)})).fail((function(e){return console.log(e)})).always((function(){a(!1),setTimeout((function(){I()}),100)})))}),[n,t]),React.createElement(React.Fragment,null,n&&o&&React.createElement("div",{className:"igd-spinner spinner-large"}),n&&!o&&React.createElement("div",{className:"preview-inner",dangerouslySetInnerHTML:{__html:c}}),!n&&React.createElement(React.Fragment,null,["browser","gallery","search"].includes(u)&&React.createElement(Gr,{shortcodeId:d,account:hn,galleryLayout:y,galleryAspectRatio:R,galleryColumns:O,galleryOverlay:B,galleryOverlayTitle:U,galleryOverlayDescription:z,galleryOverlaySize:H,galleryImageSize:Q,galleryCustomSizeWidth:q,galleryCustomSizeHeight:V,galleryHeight:x,galleryMargin:k,galleryView:j,galleryFolderView:T,initParentFolder:Lt,allFolders:f,privateFolders:p,initFolders:wn,filters:h,isList:"list"===G,lazyLoad:Y,lazyLoadNumber:Z,showLastModified:ee,showFileSizeField:ne,showHeader:ie,showRefresh:ae,showSorting:ce,showBreadcrumbs:de,fileNumbers:xe,sort:Fe,shortcodeBuilderType:u,initialSearchTerm:wt,permissions:{preview:Le,inlinePreview:De,allowPreviewPopout:Me,directLink:Ke,newFolder:Ge,rename:Ye,move:et,copy:$e,upload:it,download:at,zipDownload:ct,details:Ze,view:ft,delete:nt,share:dt,allowSearch:pt,createDoc:We,edit:qe,fullTextSearch:vt,comment:bt,commentMethod:Et,photoProof:St,photoProofEmail:At,photoProofMaxSelection:Ot},notifications:Ie}),"slider"===u&&React.createElement(Oi,{initFolders:wn,slideName:Gt,slideDescription:$t,slideHeight:tn,slidesPerPage:rn,slidesToScroll:an,slideAutoplay:cn,slideAutoplaySpeed:dn,slideDots:fn,slideArrows:pn,download:t.download,preview:t.preview,notifications:Ie,sliderImageSize:Yt,sliderCustomSizeWidth:Xt,sliderCustomSizeHeight:Zt,slideGap:vn}),"uploader"===u&&React.createElement(r,{value:{account:hn,folders:v,filters:h,maxFiles:ke,maxFileSize:Ne,minFileSize:Pe,enableFolderUpload:Bt,isFormUploader:xt,isRequired:Ft,showUploadLabel:Ut,uploadLabelText:zt,uploadFileName:Kt,isWooCommerceUploader:kt,wcOrderId:Nt,wcItemId:jt,wcProductId:Pt,notifications:Ie,initUploadedFiles:Tt,uploadImmediately:Ct,overwrite:Dt,showUploadConfirmation:Wt,uploadConfirmationMessage:qt}},React.createElement(je,null)),"media"===u&&React.createElement(Ai,{initParentFolder:Lt,initFolders:wn.filter((function(e){return S(e)||b(e)})),nextPrevious:fe,rewindForward:pe,allowEmbedPlayer:ge,showPlaylist:he,playlistThumbnail:ye,playlistNumber:_e,playlistAutoplay:Re,openedPlaylist:Ae,playlistPosition:Ce,download:t.download,sort:Fe,filters:h,privateFolders:p,allowSearch:pt,fullTextSearch:vt,initialSearchTerm:wt,notifications:Ie})))},window.initShortcode=I,Fi=jQuery,(ki={init:function(){I(),Fi(window).on("elementor/frontend/init",(function(){window.elementorFrontend.hooks.addAction("frontend/element_ready/igd_browser.default",I),window.elementorFrontend.hooks.addAction("frontend/element_ready/igd_uploader.default",I),window.elementorFrontend.hooks.addAction("frontend/element_ready/igd_gallery.default",I),window.elementorFrontend.hooks.addAction("frontend/element_ready/igd_slider.default",I),window.elementorFrontend.hooks.addAction("frontend/element_ready/igd_media.default",I),window.elementorFrontend.hooks.addAction("frontend/element_ready/igd_search.default",I),window.elementorFrontend.hooks.addAction("frontend/element_ready/igd_embed.default",I),window.elementorFrontend.hooks.addAction("frontend/element_ready/igd_download.default",I),window.elementorFrontend.hooks.addAction("frontend/element_ready/igd_view.default",I),window.elementorFrontend.hooks.addAction("frontend/element_ready/igd_shortcodes.default",I),window.elementorFrontend.hooks.addAction("frontend/element_ready/shortcode.default",I),window.elementorFrontend.hooks.addAction("frontend/element_ready/form.default",I),window.elementorFrontend.hooks.addAction("frontend/element_ready/mf-igd-uploader.default",I),window.elementorFrontend.hooks.addAction("frontend/element_ready/text-editor.default",I)})),Fi(document).on("click",".igd-view-link[data-id], .igd-download-link[data-id]",ki.sendNotification)},ready:function(){Fi(document).on("change",".nf-element.upload-file-list",(function(){var e=Fi(this).val(),t=parseInt(Fi(this).data("min-files")),n=parseInt(Fi(this).data("field-id")),r="min-files-error";if(t>0){var i=[];try{i=e.split("), ")}catch(e){console.log(e)}if(i.length<t){var o=wp.i18n.sprintf(wp.i18n.__("Please upload at least %s files.","integrate-google-drive"),t);nfRadio.channel("fields").request("add:error",n,r,o)}else nfRadio.channel("fields").request("remove:error",n,r)}})),Fi(document).on("click",".igd-wc-upload-wrap .upload-button",(function(){Fi(this).toggleClass("active")})),Fi(document.body).on("updated_wc_div",(function(){I()})),Fi(document).on("gform_post_render",(function(e,t){I()}))},sendNotification:function(){var e=Fi(this).hasClass("igd-view-link")?"view":"download",t=Fi(this).data("id"),n=Fi(this).data("account-id"),r=Fi(this).data("notification-email"),i=Fi(this).data("skip-current-user-notification");t&&wp.ajax.post("igd_send_view_download_notification",{id:t,accountId:n,type:e,notificationEmail:r,skipCurrentUserNotification:i})}}).init(),Fi(document).ready(ki.ready)})()})();
  • integrate-google-drive/trunk/assets/js/private-folders.js

    r2997844 r3004719  
    1 (()=>{"use strict";function e(){return React.createElement(React.Fragment,null,React.createElement("div",{className:"igd-private-folders-header"},React.createElement("div",{className:"header-title"},React.createElement("img",{src:igd.pluginUrl+"/assets/images/private-folders-icon.svg",alt:"Private Folders"}),React.createElement("div",{className:"header-title-text"},React.createElement("h3",null,wp.i18n.__("User Private Files","integrate-google-drive")),React.createElement("span",null,wp.i18n.__("Link specific files & folders to the users","integrate-google-drive")))),React.createElement("a",{target:"_blank",href:"https://softlabbd.com/docs/how-to-use-and-enable-private-folders-automatically-link-manually/",className:"igd-btn btn-outline-info"},React.createElement("i",{className:"dashicons dashicons-welcome-learn-more"}),React.createElement("span",null,wp.i18n.__("Documentation","integrate-google-drive"))),!igd.isPro&&React.createElement("a",{href:igd.upgradeUrl,className:"igd-btn btn-outline-primary"},React.createElement("i",{className:"dashicons dashicons-unlock"}),React.createElement("span",null,wp.i18n.__("Unlock PRO","integrate-google-drive")))))}function t(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var n=React.useMemo,a="...",l=function(e,t){var r=t-e+1;return Array.from({length:r},(function(t,r){return r+e}))};const o=function(e){var r=e.onPageChange,o=e.pageCount,c=e.siblingCount,i=void 0===c?1:c,s=e.currentPage,u=void 0===s?1:s,m=e.className,d=function(e){var r=e.pageCount,o=e.siblingCount,c=void 0===o?1:o,i=e.currentPage;return n((function(){if(c+5>=r)return l(1,r);var e=Math.max(i-c,1),n=Math.min(i+c,r),o=e>2,s=n<r-2,u=1,m=r;if(!o&&s){var d=l(1,2+2*c);return[].concat(t(d),[a,r])}if(o&&!s){var f=l(r-(2+2*c)+1,r);return[u,a].concat(t(f))}if(o&&s){var g=l(e,n);return[u,a].concat(t(g),[a,m])}}),[r,c,i])}({pageCount:o,siblingCount:i,currentPage:u});if(0===u||d.length<2)return null;var f=d[d.length-1];return React.createElement("ul",{className:"pagination-container ".concat(m||"")},React.createElement("li",{className:"pagination-item ".concat(1===u?"disabled":""),onClick:function(){return 1!==u&&void r(u-1)}},React.createElement("svg",{height:"15px",width:"15px",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 490.787 490.787"},React.createElement("pat",{d:"M362.671,490.787c-2.831,0.005-5.548-1.115-7.552-3.115L120.452,253.006c-4.164-4.165-4.164-10.917,0-15.083L355.119,3.256c4.093-4.237,10.845-4.354,15.083-0.262c4.237,4.093,4.354,10.845,0.262,15.083c-0.086,0.089-0.173,0.176-0.262,0.262L143.087,245.454l227.136,227.115c4.171,4.16,4.179,10.914,0.019,15.085C368.236,489.664,365.511,490.792,362.671,490.787z"}),React.createElement("path",{d:"M362.671,490.787c-2.831,0.005-5.548-1.115-7.552-3.115L120.452,253.006c-4.164-4.165-4.164-10.917,0-15.083L355.119,3.256c4.093-4.237,10.845-4.354,15.083-0.262c4.237,4.093,4.354,10.845,0.262,15.083c-0.086,0.089-0.173,0.176-0.262,0.262L143.087,245.454l227.136,227.115c4.171,4.16,4.179,10.914,0.019,15.085C368.236,489.664,365.511,490.792,362.671,490.787z"}))),d.map((function(e){return e===a?React.createElement("li",{key:e,className:"pagination-item dots"},"…"):React.createElement("li",{key:e,className:"pagination-item ".concat(e===u?"selected":""),onClick:function(){return r(e)}},e)})),React.createElement("li",{className:"pagination-item ".concat(u===f?"disabled":""),onClick:function(){return u!==f&&void r(u+1)}},React.createElement("svg",{height:"15px",width:"15px",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 490.8 490.8"},React.createElement("path",{d:"M135.685,3.128c-4.237-4.093-10.99-3.975-15.083,0.262c-3.992,4.134-3.992,10.687,0,14.82l227.115,227.136L120.581,472.461c-4.237,4.093-4.354,10.845-0.262,15.083c4.093,4.237,10.845,4.354,15.083,0.262c0.089-0.086,0.176-0.173,0.262-0.262l234.667-234.667c4.164-4.165,4.164-10.917,0-15.083L135.685,3.128z"}),React.createElement("path",{d:"M128.133,490.68c-5.891,0.011-10.675-4.757-10.686-10.648c-0.005-2.84,1.123-5.565,3.134-7.571l227.136-227.115L120.581,18.232c-4.171-4.171-4.171-10.933,0-15.104c4.171-4.171,10.933-4.171,15.104,0l234.667,234.667c4.164,4.165,4.164,10.917,0,15.083L135.685,487.544C133.685,489.551,130.967,490.68,128.133,490.68z"}))))};function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,l,o,c=[],i=!0,s=!1;try{if(l=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;i=!1}else for(;!(i=(n=l.call(r)).done)&&(c.push(n.value),c.length!==t);i=!0);}catch(e){s=!0,a=e}finally{try{if(!i&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw a}}return c}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var s=React,u=s.useEffect,m=s.useState;function d(e){var t=e.text,r=c(m(!0),2),n=r[0],a=r[1];return u((function(){n||ReactDOM.unmountComponentAtNode(document.getElementById("igd-pro-modal"))}),[n]),n?React.createElement("div",{className:"igd-pro-modal-wrap"},React.createElement("div",{className:"igd-pro-modal"},React.createElement("span",{className:"igd-pro-modal-close",onClick:function(){return a(!1)}},"×"),React.createElement("img",{src:"".concat(igd.pluginUrl,"/assets/images/offer.png"),alt:"Upgrade to Pro"}),React.createElement("h3",null,wp.i18n.__("Unlock PRO Features","integrate-google-drive")),React.createElement("h2",null,React.createElement("span",{className:"upto"},"UPTO"),wp.i18n.__("50% OFF","integrate-google-drive")),React.createElement("p",null,t),React.createElement("a",{href:igd.upgradeUrl,className:"igd-btn btn-success"},wp.i18n.__("Upgrade Now","integrate-google-drive")))):null}function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,l,o,c=[],i=!0,s=!1;try{if(l=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;i=!1}else for(;!(i=(n=l.call(r)).done)&&(c.push(n.value),c.length!==t);i=!0);}catch(e){s=!0,a=e}finally{try{if(!i&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw a}}return c}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return g(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return g(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function v(e){return function(e){if(Array.isArray(e))return h(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||b(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,l,o,c=[],i=!0,s=!1;try{if(l=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;i=!1}else for(;!(i=(n=l.call(r)).done)&&(c.push(n.value),c.length!==t);i=!0);}catch(e){s=!0,a=e}finally{try{if(!i&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw a}}return c}}(e,t)||b(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,t){if(e){if("string"==typeof e)return h(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?h(e,t):void 0}}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function E(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function R(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?E(Object(r),!0).forEach((function(t){w(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function w(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==p(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===p(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var N=React,_=N.useState,O=N.useEffect,S=window.ModuleBuilderModal;function j(){var e=igdUserData,t=e.roles,r=e.total,n=e.users,a=R({all:r},t),l=y(_(r),2),c=l[0],i=l[1],s=y(_(n),2),u=s[0],m=s[1],g=y(_(1),2),p=g[0],b=g[1],h=y(_("all"),2),E=h[0],w=h[1],N=y(_(""),2),j=N[0],A=N[1],P=y(_(!1),2),C=P[0],x=P[1],U=function(){x(!0),wp.ajax.post("igd_get_users_data",{search:j,role:E,page:p,number:10}).done((function(e){var t=e.total,r=e.users;m(r),i(t)})).always((function(){x(!1)}))},I=function(){var e=f(React.useState(!1),2),t=e[0],r=e[1];return React.useEffect((function(){r(!0)}),[]),t}();return O((function(){I&&U()}),[E,p]),React.createElement("div",{className:"private-folders-list"},React.createElement("div",{className:"private-folders-list-header"},React.createElement("ul",{className:"nav-items"},Object.keys(a).map((function(e){var t=a[e];if(t)return React.createElement("li",{key:e,className:"".concat(e==E?"active":""),onClick:function(){A(""),b(1),w(e)}},React.createElement("span",null,e," "),React.createElement("span",null," (",t,")"))}))),React.createElement("form",{onSubmit:function(e){e.preventDefault(),w(""),b(1),U()},className:"users-search"},React.createElement("input",{type:"search",id:"user-search-input",value:j,placeholder:wp.i18n.__("Search Users","integrate-google-drive"),onChange:function(e){return A(e.target.value)}}),React.createElement("button",{type:"submit",id:"search-submit",className:"igd-btn btn-primary"},wp.i18n.__("Search","integrate-google-drive")))),C&&React.createElement("div",{className:"igd-spinner spinner-large"}),!C&&React.createElement("div",{className:"private-folders-table-wrap"},React.createElement("table",{className:"private-folders-table widefat striped table-view-list"},React.createElement("thead",null,React.createElement("tr",null,React.createElement("th",{id:"username",className:"manage-column column-username column-primary sortable desc"},React.createElement("span",null,"Username")),React.createElement("th",{id:"name",className:"manage-column column-name"},wp.i18n.__("Name","integrate-google-drive")),React.createElement("th",{id:"email",className:"manage-column column-email"},wp.i18n.__("Email","integrate-google-drive")),React.createElement("th",{id:"role",className:"manage-column column-role"},wp.i18n.__("Role","integrate-google-drive")),React.createElement("th",{id:"folders",className:"manage-column column-private-folders"},wp.i18n.__("Private Folders","integrate-google-drive")),React.createElement("th",{id:"actions",className:"manage-column column-actions num"},wp.i18n.__("Actions","integrate-google-drive")))),React.createElement("tbody",{id:"the-list"},u.map((function(e){var t=e.avatar,r=e.username,n=e.name,a=e.role,l=e.folders,o=void 0===l?[]:l,c=e.email,i=e.id;return React.createElement("tr",null,React.createElement("td",{className:"username column-username has-row-actions column-primary","data-colname":"Username"},React.createElement("span",{dangerouslySetInnerHTML:{__html:t}}),r),React.createElement("td",{className:"name column-name","data-colname":"Name"},n),React.createElement("td",{className:"email column-email","data-colname":"Email"},c),React.createElement("td",{className:"role column-role","data-colname":"Role"},a),React.createElement("td",{className:"role column-folders","data-colname":"Private Folders"},!!o&&o.map((function(e){var t=e.name,r=e.iconLink;return React.createElement("div",{className:"folder-item"},r?React.createElement("img",{src:r}):React.createElement("i",{className:"dashicons dashicons-category"}),t?e.name:e)}))),React.createElement("td",{className:"posts column-actions num","data-colname":"Actions"},React.createElement("button",{className:"igd-btn btn-primary",onClick:function(){igd.isPro?Swal.fire({html:'<div id="igd-select-files" class="igd-module-builder-modal-wrap"></div>',showConfirmButton:!1,customClass:{container:"igd-module-builder-modal-container"},didOpen:function(t){var r=document.getElementById("igd-select-files");ReactDOM.render(React.createElement(S,{initData:{folders:o},onUpdate:function(t){var r=t.folders,n=void 0===r?[]:r;!function(e){var t=u.findIndex((function(t){return t.id===e.id}));u[t]=e,m(v(u))}(R(R({},e),{},{folders:n})),wp.ajax.post("igd_update_user_folders",{id:i,folders:n}),Swal.fire({text:wp.i18n.__("User files have been updated successfully.","integrate-google-drive"),icon:"success",showConfirmButton:!1,timer:2e3,timerProgressBar:!0,toast:!0,position:"top-end",customClass:{container:"igd-swal igd-swal-toast"}})},onClose:function(){return Swal.close()},isSelectFiles:!0}),r)},willClose:function(e){var t=document.getElementById("igd-select-files");ReactDOM.unmountComponentAtNode(t)}}):function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:wp.i18n.__("Upgrade to PRO to use this feature.","integrate-google-drive"),t=document.getElementById("igd-pro-modal");t||((t=document.createElement("div")).id="igd-pro-modal",document.body.appendChild(t)),ReactDOM.render(React.createElement(d,{text:e}),t)}(wp.i18n.__("With Private Folders, securely share Google Drive documents with users/clients for viewing, downloading, and managing in their private folders. Upgrade to PRO for user-specific private folders.","integrate-google-drive"))}},React.createElement("i",{className:"dashicons dashicons-open-folder"}),React.createElement("span",null,wp.i18n.__("Select Files","integrate-google-drive")))))}))))),!C&&React.createElement("div",{className:"private-folders-list-footer"},React.createElement(o,{className:"igd-pagination",pageCount:Math.ceil(c/10),currentPage:p,onPageChange:function(e){b(e)}})),!igd.isPro&&React.createElement(d,{text:wp.i18n.__("Upgrade to PRO to use the private folders for users.","integrate-google-drive")}))}function A(){return React.createElement("div",{className:"igd-private-folders"},React.createElement(e,null),React.createElement(j,null))}var P=document.getElementById("igd-private-folders-app");P&&ReactDOM.render(React.createElement(A,null),P)})();
     1(()=>{"use strict";function e(){return React.createElement(React.Fragment,null,React.createElement("div",{className:"igd-private-folders-header"},React.createElement("div",{className:"header-title"},React.createElement("img",{src:igd.pluginUrl+"/assets/images/private-folders-icon.svg",alt:"Private Folders"}),React.createElement("div",{className:"header-title-text"},React.createElement("h3",null,wp.i18n.__("User Private Files","integrate-google-drive")),React.createElement("span",null,wp.i18n.__("Link specific files & folders to the users","integrate-google-drive")))),React.createElement("a",{target:"_blank",href:"https://softlabbd.com/docs/how-to-use-and-enable-private-folders-automatically-link-manually/",className:"igd-btn btn-outline-info"},React.createElement("i",{className:"dashicons dashicons-welcome-learn-more"}),React.createElement("span",null,wp.i18n.__("Documentation","integrate-google-drive"))),!igd.isPro&&React.createElement("a",{href:igd.upgradeUrl,className:"igd-btn btn-outline-primary"},React.createElement("i",{className:"dashicons dashicons-unlock"}),React.createElement("span",null,wp.i18n.__("Unlock PRO","integrate-google-drive")))))}function t(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}var n=React.useMemo,r="...",l=function(e,t){var a=t-e+1;return Array.from({length:a},(function(t,a){return a+e}))};const c=function(e){var a=e.onPageChange,c=e.pageCount,i=e.siblingCount,o=void 0===i?1:i,s=e.currentPage,u=void 0===s?1:s,m=e.className,d=function(e){var a=e.pageCount,c=e.siblingCount,i=void 0===c?1:c,o=e.currentPage;return n((function(){if(i+5>=a)return l(1,a);var e=Math.max(o-i,1),n=Math.min(o+i,a),c=e>2,s=n<a-2,u=1,m=a;if(!c&&s){var d=l(1,2+2*i);return[].concat(t(d),[r,a])}if(c&&!s){var f=l(a-(2+2*i)+1,a);return[u,r].concat(t(f))}if(c&&s){var p=l(e,n);return[u,r].concat(t(p),[r,m])}}),[a,i,o])}({pageCount:c,siblingCount:o,currentPage:u});if(0===u||d.length<2)return null;var f=d[d.length-1];return React.createElement("ul",{className:"pagination-container ".concat(m||"")},React.createElement("li",{className:"pagination-item ".concat(1===u?"disabled":""),onClick:function(){return 1!==u&&void a(u-1)}},React.createElement("svg",{height:"15px",width:"15px",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 490.787 490.787"},React.createElement("pat",{d:"M362.671,490.787c-2.831,0.005-5.548-1.115-7.552-3.115L120.452,253.006c-4.164-4.165-4.164-10.917,0-15.083L355.119,3.256c4.093-4.237,10.845-4.354,15.083-0.262c4.237,4.093,4.354,10.845,0.262,15.083c-0.086,0.089-0.173,0.176-0.262,0.262L143.087,245.454l227.136,227.115c4.171,4.16,4.179,10.914,0.019,15.085C368.236,489.664,365.511,490.792,362.671,490.787z"}),React.createElement("path",{d:"M362.671,490.787c-2.831,0.005-5.548-1.115-7.552-3.115L120.452,253.006c-4.164-4.165-4.164-10.917,0-15.083L355.119,3.256c4.093-4.237,10.845-4.354,15.083-0.262c4.237,4.093,4.354,10.845,0.262,15.083c-0.086,0.089-0.173,0.176-0.262,0.262L143.087,245.454l227.136,227.115c4.171,4.16,4.179,10.914,0.019,15.085C368.236,489.664,365.511,490.792,362.671,490.787z"}))),d.map((function(e){return e===r?React.createElement("li",{key:e,className:"pagination-item dots"},"…"):React.createElement("li",{key:e,className:"pagination-item ".concat(e===u?"selected":""),onClick:function(){return a(e)}},e)})),React.createElement("li",{className:"pagination-item ".concat(u===f?"disabled":""),onClick:function(){return u!==f&&void a(u+1)}},React.createElement("svg",{height:"15px",width:"15px",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 490.8 490.8"},React.createElement("path",{d:"M135.685,3.128c-4.237-4.093-10.99-3.975-15.083,0.262c-3.992,4.134-3.992,10.687,0,14.82l227.115,227.136L120.581,472.461c-4.237,4.093-4.354,10.845-0.262,15.083c4.093,4.237,10.845,4.354,15.083,0.262c0.089-0.086,0.176-0.173,0.262-0.262l234.667-234.667c4.164-4.165,4.164-10.917,0-15.083L135.685,3.128z"}),React.createElement("path",{d:"M128.133,490.68c-5.891,0.011-10.675-4.757-10.686-10.648c-0.005-2.84,1.123-5.565,3.134-7.571l227.136-227.115L120.581,18.232c-4.171-4.171-4.171-10.933,0-15.104c4.171-4.171,10.933-4.171,15.104,0l234.667,234.667c4.164,4.165,4.164,10.917,0,15.083L135.685,487.544C133.685,489.551,130.967,490.68,128.133,490.68z"}))))};function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,r,l,c,i=[],o=!0,s=!1;try{if(l=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;o=!1}else for(;!(o=(n=l.call(a)).done)&&(i.push(n.value),i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{if(!o&&null!=a.return&&(c=a.return(),Object(c)!==c))return}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);"Object"===a&&e.constructor&&(a=e.constructor.name);if("Map"===a||"Set"===a)return Array.from(e);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return o(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}var s=React,u=s.useEffect,m=s.useState;function d(e){var t=e.text,a=e.isDismissable,n=void 0===a||a,r=i(m(!0),2),l=r[0],c=r[1];return u((function(){l||ReactDOM.unmountComponentAtNode(document.getElementById("igd-pro-modal"))}),[l]),u((function(){var e=jQuery;function t(){var e=(new Date).getTime()+2.3*24*60*60*1e3;localStorage.setItem("igd_offer_time",e),a=e}n&&e(document).on("click",".igd-pro-modal-wrap",(function(t){e(t.target).hasClass("igd-pro-modal-wrap")&&c(!1)}));var a=localStorage.getItem("igd_offer_time");!a||isNaN(a)?t():a=parseInt(a),setInterval((function(){var n=(new Date).getTime(),r=a-n;r<0&&(t(),r=a-n);var l=Math.floor(r/864e5),c=Math.floor(r%864e5/36e5),i=Math.floor(r%36e5/6e4),o=Math.floor(r%6e4/1e3);e(".timer .days span:first").text(l),e(".timer .hours span:first").text(c),e(".timer .minutes span:first").text(i),e(".timer .seconds span:first").text(o)}),1e3)}),[]),l?React.createElement("div",{className:"igd-pro-modal-wrap"},React.createElement("div",{className:"igd-pro-modal"},React.createElement("span",{className:"igd-pro-modal-close",onClick:function(){return c(!1)}},"×"),React.createElement("img",{src:"".concat(igd.pluginUrl,"/assets/images/offer.svg"),alt:"Upgrade to Pro"}),React.createElement("div",{className:"discount"},React.createElement("span",{className:"discount-special"},wp.i18n.__("Special","igd-dark-mode")),React.createElement("span",{className:"discount-text"},wp.i18n.__("30% OFF","igd-dark-mode"))),React.createElement("h3",null,wp.i18n.__("Unlock PRO Feature","integrate-google-drive")),React.createElement("p",null,t),React.createElement("div",{className:"timer"},React.createElement("div",{className:"days"},React.createElement("span",null,"0"),React.createElement("span",null,"DAYS")),React.createElement("div",{className:"hours"},React.createElement("span",null,"0"),React.createElement("span",null,"HOURS")),React.createElement("div",{className:"minutes"},React.createElement("span",null,"0"),React.createElement("span",null,"MINUTES")),React.createElement("div",{className:"seconds"},React.createElement("span",null,"0"),React.createElement("span",null,"SECONDS"))),React.createElement("div",{className:"igd-pro-modal-actions"},React.createElement("a",{href:igd.upgradeUrl,className:"igd-btn btn-primary"},wp.i18n.__("Upgrade Now","integrate-google-drive"))))):null}function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,r,l,c,i=[],o=!0,s=!1;try{if(l=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;o=!1}else for(;!(o=(n=l.call(a)).done)&&(i.push(n.value),i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{if(!o&&null!=a.return&&(c=a.return(),Object(c)!==c))return}finally{if(s)throw r}}return i}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return p(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);"Object"===a&&e.constructor&&(a=e.constructor.name);if("Map"===a||"Set"===a)return Array.from(e);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return p(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function v(e){return function(e){if(Array.isArray(e))return h(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||b(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,r,l,c,i=[],o=!0,s=!1;try{if(l=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;o=!1}else for(;!(o=(n=l.call(a)).done)&&(i.push(n.value),i.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{if(!o&&null!=a.return&&(c=a.return(),Object(c)!==c))return}finally{if(s)throw r}}return i}}(e,t)||b(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,t){if(e){if("string"==typeof e)return h(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?h(e,t):void 0}}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}function E(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function R(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?E(Object(a),!0).forEach((function(t){w(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):E(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function w(e,t,a){return(t=function(e){var t=function(e,t){if("object"!==g(e)||null===e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var n=a.call(e,t||"default");if("object"!==g(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===g(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var N=React,S=N.useState,_=N.useEffect,O=window.ModuleBuilderModal;function j(){var e=igdUserData,t=e.roles,a=e.total,n=e.users,r=R({all:a},t),l=y(S(a),2),i=l[0],o=l[1],s=y(S(n),2),u=s[0],m=s[1],p=y(S(1),2),g=p[0],b=p[1],h=y(S("all"),2),E=h[0],w=h[1],N=y(S(""),2),j=N[0],A=N[1],C=y(S(!1),2),P=C[0],x=C[1],I=function(){x(!0),wp.ajax.post("igd_get_users_data",{search:j,role:E,page:g,number:10}).done((function(e){var t=e.total,a=e.users;m(a),o(t)})).always((function(){x(!1)}))},M=function(){var e=f(React.useState(!1),2),t=e[0],a=e[1];return React.useEffect((function(){a(!0)}),[]),t}();return _((function(){M&&I()}),[E,g]),React.createElement("div",{className:"private-folders-list"},React.createElement("div",{className:"private-folders-list-header"},React.createElement("ul",{className:"nav-items"},Object.keys(r).map((function(e){var t=r[e];if(t)return React.createElement("li",{key:e,className:"".concat(e==E?"active":""),onClick:function(){A(""),b(1),w(e)}},React.createElement("span",null,e," "),React.createElement("span",null," (",t,")"))}))),React.createElement("form",{onSubmit:function(e){e.preventDefault(),w(""),b(1),I()},className:"users-search"},React.createElement("input",{type:"search",id:"user-search-input",value:j,placeholder:wp.i18n.__("Search Users","integrate-google-drive"),onChange:function(e){return A(e.target.value)}}),React.createElement("button",{type:"submit",id:"search-submit",className:"igd-btn btn-primary"},wp.i18n.__("Search","integrate-google-drive")))),P&&React.createElement("div",{className:"igd-spinner spinner-large"}),!P&&React.createElement("div",{className:"private-folders-table-wrap"},React.createElement("table",{className:"private-folders-table widefat striped table-view-list"},React.createElement("thead",null,React.createElement("tr",null,React.createElement("th",{id:"username",className:"manage-column column-username column-primary sortable desc"},React.createElement("span",null,"Username")),React.createElement("th",{id:"name",className:"manage-column column-name"},wp.i18n.__("Name","integrate-google-drive")),React.createElement("th",{id:"email",className:"manage-column column-email"},wp.i18n.__("Email","integrate-google-drive")),React.createElement("th",{id:"role",className:"manage-column column-role"},wp.i18n.__("Role","integrate-google-drive")),React.createElement("th",{id:"folders",className:"manage-column column-private-folders"},wp.i18n.__("Private Folders","integrate-google-drive")),React.createElement("th",{id:"actions",className:"manage-column column-actions num"},wp.i18n.__("Actions","integrate-google-drive")))),React.createElement("tbody",{id:"the-list"},u.map((function(e){var t=e.avatar,a=e.username,n=e.name,r=e.role,l=e.folders,c=void 0===l?[]:l,i=e.email,o=e.id;return React.createElement("tr",null,React.createElement("td",{className:"username column-username has-row-actions column-primary","data-colname":"Username"},React.createElement("span",{dangerouslySetInnerHTML:{__html:t}}),a),React.createElement("td",{className:"name column-name","data-colname":"Name"},n),React.createElement("td",{className:"email column-email","data-colname":"Email"},i),React.createElement("td",{className:"role column-role","data-colname":"Role"},r),React.createElement("td",{className:"role column-folders","data-colname":"Private Folders"},!!c&&c.map((function(e){var t=e.name,a=e.iconLink;return React.createElement("div",{className:"folder-item"},a?React.createElement("img",{src:a}):React.createElement("i",{className:"dashicons dashicons-category"}),t?e.name:e)}))),React.createElement("td",{className:"posts column-actions num","data-colname":"Actions"},React.createElement("button",{className:"igd-btn btn-primary",onClick:function(){igd.isPro?Swal.fire({html:'<div id="igd-select-files" class="igd-module-builder-modal-wrap"></div>',showConfirmButton:!1,customClass:{container:"igd-module-builder-modal-container"},didOpen:function(t){var a=document.getElementById("igd-select-files");ReactDOM.render(React.createElement(O,{initData:{folders:c},onUpdate:function(t){var a=t.folders,n=void 0===a?[]:a;!function(e){var t=u.findIndex((function(t){return t.id===e.id}));u[t]=e,m(v(u))}(R(R({},e),{},{folders:n})),wp.ajax.post("igd_update_user_folders",{id:o,folders:n}),Swal.fire({text:wp.i18n.__("User files have been updated successfully.","integrate-google-drive"),icon:"success",showConfirmButton:!1,timer:2e3,timerProgressBar:!0,toast:!0,position:"top-end",customClass:{container:"igd-swal igd-swal-toast"}})},onClose:function(){return Swal.close()},isSelectFiles:!0}),a)},willClose:function(e){var t=document.getElementById("igd-select-files");ReactDOM.unmountComponentAtNode(t)}}):function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:wp.i18n.__("Upgrade to PRO to use this feature.","integrate-google-drive"),t=document.getElementById("igd-pro-modal");t||((t=document.createElement("div")).id="igd-pro-modal",document.body.appendChild(t)),ReactDOM.render(React.createElement(d,{text:e}),t)}(wp.i18n.__("With Private Folders, securely share Google Drive documents with users/clients for viewing, downloading, and managing in their private folders. Upgrade to PRO for user-specific private folders.","integrate-google-drive"))}},React.createElement("i",{className:"dashicons dashicons-open-folder"}),React.createElement("span",null,wp.i18n.__("Select Files","integrate-google-drive")))))}))))),!P&&React.createElement("div",{className:"private-folders-list-footer"},React.createElement(c,{className:"igd-pagination",pageCount:Math.ceil(i/10),currentPage:g,onPageChange:function(e){b(e)}})),!igd.isPro&&React.createElement(d,{text:wp.i18n.__("Upgrade to PRO to use the private folders for users.","integrate-google-drive"),isDismissable:!1}))}function A(){return React.createElement("div",{className:"igd-private-folders"},React.createElement(e,null),React.createElement(j,null))}var C=document.getElementById("igd-private-folders-app");C&&ReactDOM.render(React.createElement(A,null),C)})();
  • integrate-google-drive/trunk/assets/js/settings.js

    r2997844 r3004719  
    1 (()=>{"use strict";function e(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,o,i,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=o.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw r}}return l}}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return t(e,n);var a=Object.prototype.toString.call(e).slice(8,-1);"Object"===a&&e.constructor&&(a=e.constructor.name);if("Map"===a||"Set"===a)return Array.from(e);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return t(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var n=React,a=n.useEffect,r=n.useState;function o(t){var n=t.text,o=e(r(!0),2),i=o[0],l=o[1];return a((function(){i||ReactDOM.unmountComponentAtNode(document.getElementById("igd-pro-modal"))}),[i]),i?React.createElement("div",{className:"igd-pro-modal-wrap"},React.createElement("div",{className:"igd-pro-modal"},React.createElement("span",{className:"igd-pro-modal-close",onClick:function(){return l(!1)}},"×"),React.createElement("img",{src:"".concat(igd.pluginUrl,"/assets/images/offer.png"),alt:"Upgrade to Pro"}),React.createElement("h3",null,wp.i18n.__("Unlock PRO Features","integrate-google-drive")),React.createElement("h2",null,React.createElement("span",{className:"upto"},"UPTO"),wp.i18n.__("50% OFF","integrate-google-drive")),React.createElement("p",null,n),React.createElement("a",{href:igd.upgradeUrl,className:"igd-btn btn-success"},wp.i18n.__("Upgrade Now","integrate-google-drive")))):null}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function l(){l=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",c=r.asyncIterator||"@@asyncIterator",s=r.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function g(e,t,n,r){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),l=new O(r||[]);return a(i,"_invoke",{value:E(e,n,l)}),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=g;var m={};function p(){}function f(){}function v(){}var w={};d(w,o,(function(){return this}));var h=Object.getPrototypeOf,y=h&&h(h(P([])));y&&y!==t&&n.call(y,o)&&(w=y);var b=v.prototype=p.prototype=Object.create(w);function _(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function R(e,t){function r(a,o,l,c){var s=u(e[a],e,o);if("throw"!==s.type){var d=s.arg,g=d.value;return g&&"object"==i(g)&&n.call(g,"__await")?t.resolve(g.__await).then((function(e){r("next",e,l,c)}),(function(e){r("throw",e,l,c)})):t.resolve(g).then((function(e){d.value=e,l(d)}),(function(e){return r("throw",e,l,c)}))}c(s.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function E(e,t,n){var a="suspendedStart";return function(r,o){if("executing"===a)throw new Error("Generator is already running");if("completed"===a){if("throw"===r)throw o;return k()}for(n.method=r,n.arg=o;;){var i=n.delegate;if(i){var l=N(i,n);if(l){if(l===m)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===a)throw a="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a="executing";var c=u(e,t,n);if("normal"===c.type){if(a=n.done?"completed":"suspendedYield",c.arg===m)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a="completed",n.method="throw",n.arg=c.arg)}}}function N(e,t){var n=t.method,a=e.iterator[n];if(void 0===a)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,N(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var r=u(a,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,m;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,m):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,m)}function A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function P(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,r=function t(){for(;++a<e.length;)if(n.call(e,a))return t.value=e[a],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:k}}function k(){return{value:void 0,done:!0}}return f.prototype=v,a(b,"constructor",{value:v,configurable:!0}),a(v,"constructor",{value:f,configurable:!0}),f.displayName=d(v,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,d(e,s,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},_(R.prototype),d(R.prototype,c,(function(){return this})),e.AsyncIterator=R,e.async=function(t,n,a,r,o){void 0===o&&(o=Promise);var i=new R(g(t,n,a,r),o);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},_(b),d(b,s,"Generator"),d(b,o,(function(){return this})),d(b,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var a in t)n.push(a);return n.reverse(),function e(){for(;n.length;){var a=n.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},e.values=P,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function a(n,a){return i.type="throw",i.arg=e,t.next=n,a&&(t.method="next",t.arg=void 0),!!a}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],i=o.completion;if("root"===o.tryLoc)return a("end");if(o.tryLoc<=this.prev){var l=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(l&&c){if(this.prev<o.catchLoc)return a(o.catchLoc,!0);if(this.prev<o.finallyLoc)return a(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return a(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return a(o.finallyLoc)}}}},abrupt:function(e,t){for(var a=this.tryEntries.length-1;a>=0;--a){var r=this.tryEntries[a];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var r=a.arg;S(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:P(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),m}},e}function c(e,t,n,a,r,o,i){try{var l=e[o](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(a,r)}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,o,i,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=o.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function g(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:igd.activeAccount,n=t.root_id,a=t.id,r=[{accountId:a,id:n,name:wp.i18n.__("My Drive","integrate-google-drive"),type:"application/vnd.google-apps.folder",iconLink:"".concat(igd.pluginUrl,"/assets/images/my-drive.svg")},{accountId:a,id:"shared-drives",name:wp.i18n.__("Shared Drives","integrate-google-drive"),type:"application/vnd.google-apps.folder",iconLink:"".concat(igd.pluginUrl,"/assets/images/shared-drives.svg")},{accountId:a,id:"computers",name:wp.i18n.__("Computers","integrate-google-drive"),type:"application/vnd.google-apps.folder",iconLink:"".concat(igd.pluginUrl,"/assets/images/computers.svg")},{accountId:a,id:"shared",name:wp.i18n.__("Shared with me","integrate-google-drive"),type:"application/vnd.google-apps.folder",iconLink:"".concat(igd.pluginUrl,"/assets/images/shared.svg")},{accountId:a,id:"starred",name:wp.i18n.__("Starred","integrate-google-drive"),type:"application/vnd.google-apps.folder",iconLink:"".concat(igd.pluginUrl,"/assets/images/starred.svg")}];return e?r.find((function(t){return t.id==e})):r}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:wp.i18n.__("Upgrade to PRO to use this feature.","integrate-google-drive"),t=document.getElementById("igd-pro-modal");t||((t=document.createElement("div")).id="igd-pro-modal",document.body.appendChild(t)),ReactDOM.render(React.createElement(o,{text:e}),t)}function m(){var e=s(React.useState(!1),2),t=e[0],n=e[1];return React.useEffect((function(){n(!0)}),[]),t}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"550",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"600",n=window.screenLeft||window.screenX,a=window.screenTop||window.screenY,r=n+(window.innerWidth||document.documentElement.clientWidth||screen.width)/2-e/2,o=a+(window.innerHeight||document.documentElement.clientHeight||screen.height)/2-t/2,i=window.open(igd.authUrl,"newwindow","width=".concat(e,",height=").concat(t,",left=").concat(r,",top=").concat(o));i.focus&&i.focus()}function f(){var e;return e=l().mark((function e(){var t,n,a,r;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=localStorage.getItem("igd_last_review_popup"),n=Number(localStorage.getItem("igd_remind_in_days"))||2,a=(new Date).getTime(),r=24*n*60*60*1e3,!(t&&a-t<=r)){e.next=6;break}return e.abrupt("return");case 6:return localStorage.setItem("igd_last_review_popup",(new Date).getTime()),e.next=9,Swal.fire({title:wp.i18n.__("Are You Enjoying This Plugin?","integrate-google-drive"),text:wp.i18n.__("Your feedback helps us create a better experience for you.","integrate-google-drive"),icon:"question",showDenyButton:!0,confirmButtonText:wp.i18n.__("Yes, I'm enjoying it","integrate-google-drive"),denyButtonText:wp.i18n.__("Not really","integrate-google-drive"),reverseButtons:!0,allowOutsideClick:!1,allowEscapeKey:!1,showCloseButton:!0,customClass:{container:"igd-swal igd-review-swal"}}).then((function(e){e.isConfirmed?Swal.fire({title:wp.i18n.__("We're glad to hear that!","integrate-google-drive"),text:wp.i18n.__("Would you mind taking a few minutes to rate us and write a review?","integrate-google-drive"),icon:"success",showDenyButton:!0,confirmButtonText:wp.i18n.__("Sure, I'd be happy to","integrate-google-drive"),denyButtonText:wp.i18n.__("Maybe later","integrate-google-drive"),reverseButtons:!0,allowOutsideClick:!1,allowEscapeKey:!1,customClass:{container:"igd-swal igd-review-swal"}}).then((function(e){e.isConfirmed?(window.open("https://wordpress.org/support/plugin/integrate-google-drive/reviews/?filter=5#new-post","_blank"),wp.ajax.post("igd_hide_review_notice")):e.isDenied&&localStorage.setItem("igd_remind_in_days",10)})):e.isDenied&&Swal.fire({title:wp.i18n.__("Sorry to hear that!","integrate-google-drive"),text:wp.i18n.__("Could you please provide us with some feedback to help us improve?","integrate-google-drive"),input:"textarea",inputPlaceholder:wp.i18n.__("Enter your feedback here...","integrate-google-drive"),showCancelButton:!1,confirmButtonText:wp.i18n.__("Submit","integrate-google-drive"),showLoaderOnConfirm:!0,showCloseButton:!0,allowOutsideClick:!1,allowEscapeKey:!1,customClass:{container:"igd-swal igd-review-swal"}}).then((function(e){e.isConfirmed?(Swal.fire({title:wp.i18n.__("Thank you for your feedback!","integrate-google-drive"),text:wp.i18n.__("We'll use your feedback to improve our plugin.","integrate-google-drive"),icon:"info",customClass:{container:"igd-swal igd-review-swal"}}),wp.ajax.post("igd_review_feedback",{feedback:e.value})):e.isDismissed&&wp.ajax.post("igd_hide_review_notice")}))}));case 9:e.sent;case 10:case"end":return e.stop()}}),e)})),f=function(){var t=this,n=arguments;return new Promise((function(a,r){var o=e.apply(t,n);function i(e){c(o,a,r,i,l,"next",e)}function l(e){c(o,a,r,i,l,"throw",e)}i(void 0)}))},f.apply(this,arguments)}function v(e){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function h(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==v(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!==v(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===v(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,o,i,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=o.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return b(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return b(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var _=React.useState,R=window.ReactTooltip;function E(){var e=y(_(igd.accounts),2),t=e[0],n=e[1],a=y(_(!1),2),r=a[0],o=a[1],i=igd.isPro;return React.createElement("div",{className:"igd-settings-body"},React.createElement("span",{className:"igd-settings-body-title"},wp.i18n.__("Google Accounts","integrate-google-drive")),Object.keys(t).length?Object.keys(t).map((function(e){var a=t[e],r=a.id,o=a.name,i=a.photo,l=a.email,c=a.lost;return React.createElement("div",{key:e,className:"igd-account-item"},React.createElement("img",{referrerPolicy:"no-referrer",onError:function(e){return function(e,t){e.onerror=null;var n="https://www.gravatar.com/avatar/"+t+"?s=200&d=mm";e.src===n?e.src="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD//gA7Q1JFQVRPUjogZ2QtanBlZyB2MS4wICh1c2luZyBJSkcgSlBFRyB2NjIpLCBxdWFsaXR5ID0gOTAK/9sAQwADAgIDAgIDAwMDBAMDBAUIBQUEBAUKBwcGCAwKDAwLCgsLDQ4SEA0OEQ4LCxAWEBETFBUVFQwPFxgWFBgSFBUU/9sAQwEDBAQFBAUJBQUJFA0LDRQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQU/8AAEQgAyADIAwEiAAIRAQMRAf/EAB8AAAEFAQEBAQEBAAAAAAAAAAABAgMEBQYHCAkKC//EALUQAAIBAwMCBAMFBQQEAAABfQECAwAEEQUSITFBBhNRYQcicRQygZGhCCNCscEVUtHwJDNicoIJChYXGBkaJSYnKCkqNDU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6g4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2drh4uPk5ebn6Onq8fLz9PX29/j5+v/EAB8BAAMBAQEBAQEBAQEAAAAAAAABAgMEBQYHCAkKC//EALURAAIBAgQEAwQHBQQEAAECdwABAgMRBAUhMQYSQVEHYXETIjKBCBRCkaGxwQkjM1LwFWJy0QoWJDThJfEXGBkaJicoKSo1Njc4OTpDREVGR0hJSlNUVVZXWFlaY2RlZmdoaWpzdHV2d3h5eoKDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uLj5OXm5+jp6vLz9PX29/j5+v/aAAwDAQACEQMRAD8A+t6KMUtACZooxRQAUZpaSgAozRiloASijFGKADNFLRigBM0UUtACUUtJigAopaKAE5oopaAEo5paKAEoopaAE5opaKAEooooAWkoooAMUUUUAFFFFABRRRQAUUUUAGKKKKACiiigApaSigAooooAWkoooAKWkooAKKKKAClpKWgBKKKKACiiloASiiigAop8UTzyLHGrSOxwqqMkmvTPCnwpXYl1rJJY8i0Q8D/eP9B+dAHnVjpl3qcvl2ltLcv6RoWx9fSumsvhXr10AZI4bUH/AJ7Sc/kua9ltLO3sIRDbQxwRDokahR+QqagDyL/hTmp7f+P20z6Zb/CqV58KddtgTGkF0PSKTB/8exXtVFAHzff6Re6VJsvLWW2bt5ikA/Q96qV9LXNrDeRGKeJJ426pIoYH8DXnvir4UxTK9zox8qXqbVj8p/3T2+h/SgDyujFSTwSWszwzRtHKh2sjDBBqOgApaSigAoo7UUAFFFFAC0UlFABRRiigAooooAKKKKAClUFmAAJJ4AApK7r4V+GxqmqNqE6hoLQjaD/FIen5dfyoA634f+B00G2W9vEDajIMgN/yxB7D39fyrtKKSgApaKKACkopaACikxRQByXjzwTF4jtGubdAmpRD5WHHmD+6f6GvFJEeJ2R1KOpwVYYIPpX0zXkvxY8NLZXseqwKFiuDslAHR8dfxA/T3oA8+oxR0ooAKKMUYoAMUUUYoAKKMUUAFGaKM0AFFFFABR3oooAK978CaUNJ8L2MW3bJIgmf/ebn9BgfhXhFtF59zFGP43C/ma+lY0EaKi8KoAFADqKKKAEpaSloAKSlpKACloooASsjxdpY1nw5fW23LmMsn+8OR+orXpTyKAPmSlqzq1uLTVLyAcCKZ0GfZiKq0AFHNFFABS0mKKACiiigAoopaAEo60UUAFFFHegCxp8giv7Zz0SVSfzFfSdfMoPOa+ivD+oDVdEsbsHPmxKT7HHI/PNAGhSUtFABRRRQAlFLRQAlFGaWgBKKWqup3y6bp1zdv92GNnP4DNAHz74gkEuvalIOjXMpH4uaoU53MjszcliSTSUAJRS0lABRS0UAJiiiigAooxRQAUUUfpQAUUUUAFerfCLXlms59KlceZEfMhB7qeoH0PP415TirekapPouowXts22WJsj0I7g+xFAH0hSdqzvD+u2/iLTYry2PDDDoTyjdwa0aAClpOlFAC0lLSUALRSUv4UAJXBfFrXls9Jj02Jx51yQzgdRGP8Tj8jXYa1rFtoWnS3l022NBwO7HsB714Drusz6/qk97cH55DwoPCr2AoAodaKMUUAFFFFABRRRQAUUdaKACiiigAo6UUUAFFFFABiiiigDY8M+J7vwvfefbNujbiWFj8rj/AB969q8O+KrDxNbCS1l2ygfPA5w6fh3HvXkfhz4f6p4hCyiMWtqf+W8wxkf7I6n+XvXpnh74d6X4fkjnCvc3aciaQ4wfYDgfrQB1FFFLQAn50UtJQAtZWv8AiWw8N2pmu5sMR8kSnLv9B/WtWuY8R/D3TPEUjzsJLe7brNG2cn3B4/lQB5P4q8WXfiq88yb93bpnyoFPCj+p96w66bxH8P8AVPDwaUoLq0H/AC3hGcf7w6j+XvXMmgAooooAMUUGjNABRiiigAoozRQAUUUUAFFFFABRRUkEEl1OkMKNJK7BVRRkkntQAW9vLdzJDDG0srkKqKMkmvWPB3wyg00Jd6qq3F31WA8pH9fU/pWl4G8DxeGrYT3CrJqTj5n6iMf3V/qa6ygAAAAAHFHaiigA6UUUUALSUUtACUClpM0ABGRgjg1wPjH4ZQ6isl3pSrb3fVoOiSfT0P6V39FAHzRcW8tpO8M0bRSodrIwwQajr27xz4Hh8S2xnt1WPUox8r9BIP7rf0NeKzwSWs8kMyNHKjFWRhggjtQBHRRRQAUUUUAFFFFABRRRQAUUUdaACvWvhh4PFjbrq12n+kSr+4Vh9xD/ABfU/wAvrXF+AfDX/CR64gkUmzt8STeh9F/E/pmvdAAowOAOMUAKaSiloAKKTNHagApaSjNAC0lAooAMUtJmgUAFGMUUZ4oAWvPvif4PF9bPq9omLiEfv0UffQfxfUfy+legZoIDAg8g8YoA+ZaK6Xx94a/4RzW3Ea4s7jMkJ7D1X8D+mK5qgAooooAKKKKACiiigAoorZ8IaR/bniKytSu6Ivvk/wB0cn+WPxoA9c+HugjQ/DkO9dtzcDzpT9eg/AY/WumpOg7YooAXrSUtJQAUtJS0AJRRRQAuaKKSgBaKSloAKKSigBc0UUlAHNfELQRrvhyfYu64tx50R+nUfiM/jivCq+miOtfP3i/SP7D8RXtqBtjD74/91uR/PH4UAY1FFFABRRRQAUUUd6ACvSPg3p2+6v74j7irCp+pyf5D8683r2n4UWf2bwmsuMGeZ5Py+X/2WgDsqDQaKACij8KSgBaO1JS/hQAUUlFACikpfwooAM0Cij8KAEpe1FFABRRRQAV5Z8ZNO2XWn3yj76GFj9OR/M/lXqdcb8VrMXPhN5MZMEySD8fl/wDZqAPFqKKKACiiigAooooAK9+8DweR4R0tfWEP+fP9aKKAN2iiigApKKKACloooASloooAKSiigApaKKAEooooAXFJRRQAVh+OYPtHhLVF64hL/wDfPP8ASiigDwGiiigAooooA//Z":e.src=n}(e.currentTarget,l)},src:i}),React.createElement("div",{className:"igd-account-item-info"},React.createElement("span",{className:"account-name"},o),React.createElement("span",{className:"account-email"},l)),React.createElement("div",{className:"igd-account-item-action"},c&&React.createElement("button",{className:"igd-btn btn-primary",onClick:p},React.createElement("i",{className:"dashicons dashicons-update"}),React.createElement("span",null,wp.i18n.__("Refresh","integrate-google-drive"))),React.createElement("button",{"data-tip":wp.i18n.__("Remove account","integrate-google-drive"),"data-for":"remove-account",className:"igd-btn btn-danger",onClick:function(){Swal.fire({title:wp.i18n.__("Are you sure?","integrate-google-drive"),text:wp.i18n.__("You won't be able to revert this!","integrate-google-drive"),icon:"warning",showCancelButton:!0,confirmButtonText:wp.i18n.__("Yes, remove it!","integrate-google-drive"),reverseButtons:!0,showLoaderOnConfirm:!0,customClass:{container:"igd-swal"},preConfirm:function(){return wp.ajax.post("igd_delete_account",{id:r})}}).then((function(a){a.value&&(delete t[e],n(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t)),Swal.fire({title:wp.i18n.__("Removed!","integrate-google-drive"),text:wp.i18n.__("Account has been removed.","integrate-google-drive"),icon:"success",showConfirmButton:!1,timer:1500,toast:!0}))}))}},React.createElement("i",{className:"dashicons dashicons-trash"}),React.createElement("span",null,wp.i18n.__("Remove","integrate-google-drive"))),React.createElement(R,{className:"igd-tooltip",id:"remove-account",place:"top",type:"dark",effect:"solid"})))})):React.createElement("div",{className:"no-account-placeholder"},React.createElement("span",{className:"placeholder-heading"},wp.i18n.__("You didn't link any Google account.","integrate-google-drive")),React.createElement("span",{className:"placeholder-desc"},wp.i18n.__("Link a Google account to continue.","integrate-google-drive"))),React.createElement("button",{"data-tip":wp.i18n.__("Multiple Accounts - PRO","integrate-google-drive"),"data-for":"addAccountPromo",className:"igd-btn add-account-btn",onClick:function(){i||!Object.keys(t).length?p():u(wp.i18n.__("Upgrade to PRO to add multiple accounts.","integrate-google-drive"))}},React.createElement("img",{src:"".concat(igd.pluginUrl,"/assets/images/google-icon.png")}),React.createElement("span",null,wp.i18n.__("Add new account","integrate-google-drive")),!i&&!!Object.keys(t).length&&React.createElement(R,{id:"addAccountPromo",effect:"solid",place:"right",backgroundColor:"#ff9966",className:"igd-tooltip"})),React.createElement("div",{className:"privacy-text-wrap"},React.createElement("div",{className:"privacy-text-btn",onClick:function(){return o(!r)}},React.createElement("img",{src:"".concat(igd.pluginUrl,"/assets/images/settings/privacy.svg"),alt:"Privacy"}),React.createElement("span",null,wp.i18n.__("See what happens with your data when you authorize?","integrate-google-drive")),React.createElement("i",{className:"dashicons dashicons-arrow-down-alt2"})),r&&React.createElement("div",{className:"privacy-text"},React.createElement("h4",null,wp.i18n.__("Requested scopes and justification","integrate-google-drive")),React.createElement("p",null,wp.i18n.__("In order to display your Google Drive cloud files, you have to authorize it with your Google account.\n\n                            The authorization will ask you to grant the application the https://www.googleapis.com/auth/drive scope.\n\n                            The scope is needed to allow the plugin to see, edit, create, and delete all of your Google\n                            Drive files and files that are shared with you.","integrate-google-drive")),React.createElement("h4",null,wp.i18n.__("Information about the data","integrate-google-drive")),React.createElement("p",null,wp.i18n.__("The authorization tokens will be stored, encrypted, on your server and is not accessible by any third party.\n                            When you use the Application, all communications are strictly between your server and the\n                            cloud storage service servers. We do not collect and do not have access to your personal\n                            data.","integrate-google-drive")))))}function N(e){return N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},N(e)}function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach((function(t){O(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function O(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==N(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!==N(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===N(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var P=wp.components.FormToggle;function k(e){var t=e.data,n=e.setData,a=igd.isPro,r=t.rememberLastFolder,o=void 0===r||r,i=t.ownApp,l=t.clientID,c=t.clientSecret,s=t.deleteData,d=t.workspaceDomain,g=t.manageSharing,m=void 0===g||g,p="".concat(igd.adminUrl,"?action=integrate-google-drive-authorization");return React.createElement("div",{className:"igd-settings-body"},React.createElement("h3",{className:"igd-settings-body-title"},wp.i18n.__("Advanced Settings","integrate-google-drive")),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Remember Last Opened Folder","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(P,{checked:o,onChange:function(){return n(S(S({},t),{},{rememberLastFolder:!o}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Enable this to load the last opened folder when a visitor revisit a File Browser or Gallery module.","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Google Workspace Domain","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement("input",{type:"text",value:d,onChange:function(e){return n(S(S({},t),{},{workspaceDomain:e.target.value}))},placeholder:wp.i18n.__("Google Workspace Domain","integrate-google-drive")}),React.createElement("p",{className:"description"},wp.i18n.__("If you are using Google Workspace  and you want to share your documents ONLY with users having an account in your Google Workspace Domain, please insert your domain.","integrate-google-drive")),React.createElement("div",{className:"igd-notice igd-notice-info"},React.createElement("p",{className:"igd-notice-content"},wp.i18n.__("If you want to share your documents with to the public, please leave this field empty.","integrate-google-drive"))))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Manage Sharing Permissions","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(P,{checked:m,onChange:function(){return n(S(S({},t),{},{manageSharing:!m}))}}),React.createElement("p",{className:"description"},wp.i18n.__("By default, the plugin will manage the sharing permissions of the documents. If you want to manage the sharing permissions manually, please disable this option.","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Link Own Google App","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(P,{"data-tip":wp.i18n.__("PRO Feature","integrate-google-drive"),checked:i&&a,onChange:function(){a?n(S(S({},t),{},{ownApp:!i})):u(wp.i18n.__("Upgrade to PRO to use your own Google App.","integrate-google-drive"))}}),!a&&React.createElement(ReactTooltip,{effect:"solid",place:"right",backgroundColor:"#ff9966",className:"igd-tooltip"}),React.createElement("p",{className:"description"},wp.i18n.__("Use your own Google app API instead of using the plugin default app API.","integrate-google-drive"),React.createElement("a",{href:"https://softlabbd.com/docs/how-to-link-your-own-google-app-with-the-plugin/",target:"_blank",className:"igd-btn btn-outline-info"},React.createElement("i",{className:"dashicons dashicons-editor-help"}),wp.i18n.__("Documentation","integrate-google-drive"))),(!a||i)&&React.createElement("div",{className:"settings-field-sub"},React.createElement("div",{className:"settings-field field-own-app"},React.createElement("div",{className:"igd-notice igd-notice-warning own-google-app-warning"},React.createElement("p",{className:"igd-notice-content"},wp.i18n.__("Using your own Google App is an optional option. For an easy setup you can just use the default App of the plugin itself. The advantage of using your own app is limited. If you decided to create your own Google App anyway, please enter your app Client ID & Secret key in the below settings.","integrate-google-drive")),React.createElement("br",null),React.createElement("p",{className:"igd-notice-content"},"On the ",React.createElement("a",{target:"_blank",href:"https://softlabbd.com/docs/how-to-link-your-own-google-app-with-the-plugin/"},"Documentation")," page you can find how you can create your own Google App.")),React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("App Client ID","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement("input",{type:"text",value:l,onChange:function(e){return n(S(S({},t),{},{clientID:e.target.value}))},placeholder:wp.i18n.__("App Client ID","integrate-google-drive")}),React.createElement("p",{className:"description"},wp.i18n.__("Insert you app client ID.","integrate-google-drive"))),React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("App Secret Key","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement("input",{type:"text",value:c,onChange:function(e){return n(S(S({},t),{},{clientSecret:e.target.value}))},placeholder:wp.i18n.__("App Secret Key","integrate-google-drive")}),React.createElement("p",{className:"description"},wp.i18n.__("Insert you app secret key.","integrate-google-drive"))),React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Redirect URI","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement("input",{type:"text",value:p,readOnly:!0,onClick:function(e){e.target.select(),e.target.setSelectionRange(0,99999),navigator.clipboard.writeText(e.target.value),Swal.fire({title:wp.i18n.__("Copied to clipboard.","integrate-google-drive"),icon:"success",timer:1500,toast:!0,position:"top-end",showConfirmButton:!1,timerProgressBar:!0})}}),React.createElement("p",{className:"description"},wp.i18n.__("Copy the above redirect URI and set to your own google app.","integrate-google-drive"))))))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Delete Data on Uninstall","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(P,{checked:s,onChange:function(){return n(S(S({},t),{},{deleteData:!s}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Delete the plugin data (settings, cache, accounts) on the uninstallation.","integrate-google-drive")))))}function C(e){return C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},C(e)}function F(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?F(Object(n),!0).forEach((function(t){D(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function D(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==C(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!==C(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===C(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var U=wp.components,B=U.SelectControl,x=U.FormToggle,I=U.ButtonGroup,L=U.Button,T=window,K=T.ModuleBuilderModal,M=T.ReactTooltip;function G(e){var t=e.data,n=e.setData,a=t.autoSync,r=t.syncInterval,o=void 0===r?"never":r,i=t.customSyncInterval,l=t.syncType,c=void 0===l?"all":l,s=t.syncFolders,d=void 0===s?[]:s;return React.createElement("div",{className:"igd-settings-body"},React.createElement("h3",{className:"igd-settings-body-title"},wp.i18n.__("Auto Synchronization","integrate-google-drive"),React.createElement("a",{href:"https://softlabbd.com/docs/how-to-enable-auto-synchronization/",target:"_blank",className:"igd-btn btn-outline-info"},React.createElement("i",{className:"dashicons dashicons-editor-help"}),wp.i18n.__("Documentation","integrate-google-drive"))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Enable Auto Synchronization","integrate-google-drive")," "),React.createElement("div",{className:"settings-field-content"},React.createElement(x,{"data-tip":wp.i18n.__("PRO Feature","integrate-google-drive"),checked:a&&igd.isPro,onChange:function(){igd.isPro?n(j(j({},t),{},{autoSync:!a})):u(wp.i18n.__("Upgrade to PRO to enable auto synchronization.","integrate-google-drive"))}}),!igd.isPro&&React.createElement(M,{effect:"solid",place:"right",backgroundColor:"#ff9966",className:"igd-tooltip"}),React.createElement("span",{className:"description"},wp.i18n.__("Enable/ disable the local cache file auto synchronization with the cloud files.","integrate-google-drive")))),(a||!igd.isPro)&&React.createElement(React.Fragment,null,React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Synchronization Interval","integrate-google-drive")," "),React.createElement("div",{className:"settings-field-content"},React.createElement(B,{"data-tip":wp.i18n.__("PRO Feature","integrate-google-drive"),value:o,options:[{label:"Never",value:"never"},{label:"1 Hour",value:3600},{label:"6 Hours",value:21600},{label:"24 Hours",value:86400},{label:"2 Days",value:172800},{label:"3 Days",value:259200},{label:"7 Days",value:604800},{label:"Custom",value:"custom"}],onChange:function(e){igd.isPro?n(j(j({},t),{},{syncInterval:e})):u(wp.i18n.__("Upgrade to PRO to enable auto synchronization.","integrate-google-drive"))}}),!igd.isPro&&React.createElement(M,{effect:"solid",place:"right",backgroundColor:"#ff9966",className:"igd-tooltip"}),React.createElement("span",{className:"description"},wp.i18n.__("Select the automatic cloud files synchronization interval.","integrate-google-drive")))),"custom"===o&&React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Custom Sync Interval","integrate-google-drive")," "),React.createElement("div",{className:"settings-field-content"},React.createElement("input",{type:"number",value:i,onChange:function(e){return n(j(j({},t),{},{customSyncInterval:e.target.value}))},min:60}),React.createElement("p",{className:"description"},wp.i18n.__("Enter the custom synchronization interval in seconds (min: 60 seconds).","integrate-google-drive")),React.createElement("p",{className:"description"},wp.i18n.__("e.g: 3600 = 1 hour, 1800 = 30 minutes.","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Synchronization Type","integrate-google-drive")," "),React.createElement("div",{className:"settings-field-content"},React.createElement(I,{"data-tip":"PRO Feature"},React.createElement(L,{isPrimary:"all"===c,isSecondary:"all"!==c,onClick:function(){igd.isPro?n(j(j({},t),{},{syncType:"all"})):u(wp.i18n.__("Upgrade to PRO to enable auto synchronization.","integrate-google-drive"))}},React.createElement("span",null,wp.i18n.__("All Folders","integrate-google-drive"))),React.createElement(L,{isPrimary:"selected"===c,isSecondary:"selected"!==c,onClick:function(){igd.isPro?n(j(j({},t),{},{syncType:"selected"})):u(wp.i18n.__("Upgrade to PRO to enable auto synchronization.","integrate-google-drive"))}},React.createElement("span",null,wp.i18n.__("Specific Selected Folders","integrate-google-drive")))),!igd.isPro&&React.createElement(M,{effect:"solid",place:"right",backgroundColor:"#ff9966",className:"igd-tooltip"}),React.createElement("p",{className:"description"},wp.i18n.__("Select the synchronization type.","integrate-google-drive")),React.createElement("div",{className:"igd-notice igd-notice-info"},React.createElement("div",{className:"igd-notice-content"},React.createElement("div",null,React.createElement("strong",null,wp.i18n.__("All Folders","integrate-google-drive"))," - ",wp.i18n.__("All the cached folders will be synchronized with the cloud.","integrate-google-drive")),React.createElement("div",null,React.createElement("strong",null,wp.i18n.__("Specific Folders","integrate-google-drive"))," - ",wp.i18n.__("Syncs only chosen folders with the cloud, helpful for large sets of folders when only a few need synchronization.","integrate-google-drive")))),"selected"===c&&React.createElement("div",{className:"settings-field-sub"},React.createElement("div",{className:"settings-field sync-folders"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Select Folders","integrate-google-drive")," "),React.createElement("div",{className:"settings-field-content"},React.createElement("div",{className:"template-folder-wrap"},!!d.length&&d.map((function(e,a){var r=e.id,o=e.name,i=e.iconLink;return React.createElement("div",{className:"template-folder"},React.createElement("div",{className:"template-folder-item"},i?React.createElement("img",{src:i}):React.createElement("i",{className:"dashicons dashicons-category"}),React.createElement("span",{className:"template-folder-name"},o),React.createElement("div",{className:"dashicons dashicons-no-alt",onClick:function(){var e=d.filter((function(e){return e.id!==r}));n(j(j({},t),{},{syncFolders:e}))}})))})),React.createElement("button",{"data-tip":"PRO Feature",className:"igd-btn btn-primary",onClick:function(){igd.isPro?Swal.fire({html:'<div id="igd-select-files" class="igd-module-builder-modal-wrap"></div>',showConfirmButton:!1,customClass:{container:"igd-module-builder-modal-container"},didOpen:function(e){var t=document.getElementById("igd-select-files");ReactDOM.render(React.createElement(K,{initData:{folders:d},onUpdate:function(e){var t=e.folders,a=void 0===t?[]:t;n((function(e){return j(j({},e),{},{syncFolders:a.map((function(e){return{id:e.id,name:e.name,iconLink:e.iconLink,accountId:e.accountId}}))})})),Swal.close()},onClose:function(){return Swal.close()},isSelectFiles:!0,selectionType:"folders"}),t)},willClose:function(e){var t=document.getElementById("igd-select-files");ReactDOM.unmountComponentAtNode(t)}}):u(wp.i18n.__("Upgrade to PRO to enable auto synchronization.","integrate-google-drive"))}},React.createElement("i",{className:"dashicons dashicons-open-folder"}),React.createElement("span",null,d.length?wp.i18n.__("Update Folders","integrate-google-drive"):wp.i18n.__("Select Folders","integrate-google-drive"))),!igd.isPro&&React.createElement(M,{effect:"solid",place:"right",backgroundColor:"#FF9F10",className:"igd-tooltip"})),React.createElement("p",{className:"description"},wp.i18n.__("Select the folders to be synchronized with the cloud files.","integrate-google-drive")))))))))}function Q(e){return Q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Q(e)}function W(e){return function(e){if(Array.isArray(e))return z(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return z(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return z(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function z(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function J(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?q(Object(n),!0).forEach((function(t){V(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function V(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Q(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!==Q(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Q(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var H=wp.components,X=H.FormToggle,Y=H.CheckboxControl,Z=window.ReactTooltip;function $(e){var t=e.data,n=e.setData,a=t.integrations,r=void 0===a?["classic-editor","gutenberg-editor","elementor","divi","cf7"]:a,o=t.channels,i=void 0===o?["shareLink","embedCode","email"]:o,l=[{key:"classic-editor",title:wp.i18n.__("Classic Editor","integrate-google-drive"),description:wp.i18n.__("Add Google Drive module, embed documents and insert file view links and download links using the Google Drive button on the classic editor.","integrate-google-drive"),docLink:"https://softlabbd.com/docs/how-to-use-integrate-google-drive-with-classic-editor/"},{key:"gutenberg-editor",title:wp.i18n.__("Gutenberg Editor","integrate-google-drive"),description:wp.i18n.__("Add Google Drive modules, embed documents and insert file view links and download links using the Google Drive Gutenberg editor blocks","integrate-google-drive"),docLink:"https://softlabbd.com/docs/how-to-use-integrate-google-drive-with-gutenberg-editor/"},{key:"elementor",title:wp.i18n.__("Elementor","integrate-google-drive"),description:wp.i18n.__("Add Google Drive modules, embed documents and insert file view links and download links using the Google Drive Elementor widgets.","integrate-google-drive"),docLink:"https://softlabbd.com/docs/how-to-use-integrate-google-drive-with-elementor-editor/"},{key:"divi",title:wp.i18n.__("Divi","integrate-google-drive"),description:wp.i18n.__("Add Google Drive modules, embed documents and insert file view links and download links using the Google Drive Divi page builder modules.","integrate-google-drive"),docLink:"https://softlabbd.com/docs/how-to-use-integrate-google-drive-with-divi/"},{key:"acf",title:wp.i18n.__("Advanced Custom Fields","integrate-google-drive"),description:wp.i18n.__("Allows you to select Google Drive files and folders using ACF field and display in theme template file.","integrate-google-drive"),docLink:"https://softlabbd.com/docs/how-to-use-integrate-google-drive-with-advanced-custom-fields/",isPro:!0},{key:"woocommerce",title:wp.i18n.__("WooCommerce","integrate-google-drive"),description:wp.i18n.__("Allows you to serve your Google Drive files as downloadable files and let customer upload files to Google Drive on checkout.","integrate-google-drive"),docLink:"https://softlabbd.com/docs/how-to-allow-customers-to-upload-files-in-woocommerce-and-store-on-google-drive/",isPro:!0},{key:"dokan",title:wp.i18n.__("Dokan","integrate-google-drive"),description:wp.i18n.__("Allows vendors to serve their Google Drive files as downloadable files and let customer upload files to Google Drive on checkout.","integrate-google-drive"),docLink:"https://softlabbd.com/docs/how-to-allow-vendors-to-serve-sell-their-digital-download-files-directly-from-google-drive-in-dokan/",isPro:!0},{key:"edd",title:wp.i18n.__("Easy Digital Downloads","integrate-google-drive"),description:wp.i18n.__("Allows you to serve your Easy Digital Downloads files directly from Google Drive.","integrate-google-drive"),docLink:"https://softlabbd.com/docs/how-to-use-integrate-google-drive-with-easy-digital-downloads/",isPro:!0},{key:"tutor",title:wp.i18n.__("Tutor LMS","integrate-google-drive"),description:wp.i18n.__("Allows Instructors to link their Google accounts for efficient and independent course material management.","integrate-google-drive"),docLink:"https://softlabbd.com/docs/how-to-integrate-google-drive-with-the-tutor-lms-plugin/",isPro:!0},{key:"cf7",title:wp.i18n.__("Contact Form 7","integrate-google-drive"),description:wp.i18n.__("Allows you to upload your files directly to Google Drive from your Contact Form 7 upload field.","integrate-google-drive"),docLink:"https://softlabbd.com/docs/how-to-use-google-drive-uploader-field-with-contact-form-7/"},{key:"wpforms",title:wp.i18n.__("WPForms","integrate-google-drive"),description:wp.i18n.__("Allows you to upload your files directly to Google Drive from your WPForms upload field.","integrate-google-drive"),docLink:"https://softlabbd.com/docs/how-to-use-google-drive-uploader-field-with-wpforms/",isPro:!0},{key:"gravityforms",title:wp.i18n.__("Gravity Forms","integrate-google-drive"),description:wp.i18n.__("Allows you to upload your files directly to Google Drive from your Gravity Forms upload field.","integrate-google-drive"),docLink:"https://softlabbd.com/docs/how-to-use-google-drive-uploader-field-with-gravity-forms/",isPro:!0},{key:"fluentforms",title:wp.i18n.__("Fluent Forms","integrate-google-drive"),description:wp.i18n.__("Allows you to upload your files directly to Google Drive from your Fluent Forms upload field.","integrate-google-drive"),docLink:"https://softlabbd.com/docs/how-to-use-google-drive-uploader-field-with-fluent-forms/",isPro:!0},{key:"formidableforms",title:wp.i18n.__("Formidable Forms","integrate-google-drive"),description:wp.i18n.__("Allows you to upload your files directly to Google Drive from your Formidable Forms upload field.","integrate-google-drive"),docLink:"https://softlabbd.com/docs/how-to-use-google-drive-uploader-field-with-formidable-forms/",isPro:!0},{key:"ninjaforms",title:wp.i18n.__("Ninja Forms","integrate-google-drive"),description:wp.i18n.__("Allows effortless file uploads from Ninja Forms to Google Drive for quick and efficient storage.","integrate-google-drive"),docLink:"https://softlabbd.com/docs/how-to-use-google-drive-uploader-field-with-ninja-forms/",isPro:!0},{key:"elementor-form",title:wp.i18n.__("Elementor Form","integrate-google-drive"),description:wp.i18n.__("Allows effortless file uploads from Elementor PRO Form widget to Google Drive for quick and efficient storage.","integrate-google-drive"),docLink:"https://softlabbd.com/docs/upload-files-from-elementor-form-to-google-drive",isPro:!0},{key:"metform",title:wp.i18n.__("MetForm","integrate-google-drive"),description:wp.i18n.__("Allows effortless file uploads from MetForm to Google Drive for quick and efficient storage.","integrate-google-drive"),docLink:"https://softlabbd.com/docs/upload-files-from-metform-to-google-drive/",isPro:!0}];igd.isPro||l.sort((function(e,t){return e.isPro===t.isPro?0:e.isPro?1:-1}));var c=[{label:wp.i18n.__("Share Link","integrate-google-drive"),value:"shareLink",icon:"admin-links"},{label:wp.i18n.__("Embed Code","integrate-google-drive"),value:"embedCode",icon:"editor-code"},{label:wp.i18n.__("Email","integrate-google-drive"),value:"email",icon:"email"},{label:wp.i18n.__("Facebook","integrate-google-drive"),value:"facebook",icon:"facebook"},{label:wp.i18n.__("Twitter","integrate-google-drive"),value:"twitter",icon:"twitter"},{label:wp.i18n.__("WhatsApp","integrate-google-drive"),value:"whatsapp",icon:"whatsapp"}];return React.createElement("div",{className:"igd-settings-body"},React.createElement("div",{className:"integrations-wrapper settings-field"},React.createElement("div",{className:"integrations-header"},React.createElement("div",{className:"integrations-header-title"},React.createElement("h3",{className:"igd-settings-body-title"},wp.i18n.__("Plugins Integrations","integrate-google-drive")),React.createElement("p",{className:"description"},wp.i18n.__("Select the plugins you want to integrate with Integrate Google Drive.","integrate-google-drive"))),React.createElement("div",{className:"integrations-actions"},React.createElement("button",{className:"igd-btn btn-outline-primary",onClick:function(){n(J(J({},t),{},{integrations:l.filter((function(e){return!e.isPro||!!igd.isPro})).map((function(e){return e.key}))}))}},wp.i18n.__("Enable All","integrate-google-drive")),React.createElement("button",{className:"igd-btn btn-outline-warning",onClick:function(){n(J(J({},t),{},{integrations:[]}))}},wp.i18n.__("Disable All","integrate-google-drive")))),React.createElement("div",{className:"integrations"},l.map((function(e){var a=e.key,o=e.title,i=e.description,l=e.isPro,c=e.docLink,s=l?igd.isPro&&r.includes(a):r.includes(a),d=l&&!igd.isPro;return React.createElement("div",{key:a,className:"integration-item ".concat(d?"pro-item":""," ").concat(s?"active":""),onClick:function(){if(!l||igd.isPro){var e=s?r.filter((function(e){return e!==a})):[].concat(W(r),[a]);e.includes("dokan")&&!r.includes("woocommerce")?e.push("woocommerce"):!e.includes("woocommerce")&&e.includes("dokan")&&(e=e.filter((function(e){return"dokan"!==e}))),n(J(J({},t),{},{integrations:e}))}else u("Upgrade to PRO to enable ".concat(o," integration"))}},React.createElement("img",{className:"integration-item-img",src:"".concat(igd.pluginUrl,"/assets/images/settings/").concat(a,".png")}),React.createElement("a",{"data-tip":wp.i18n.__("Documentation","integrate-google-drive"),href:c,target:"_blank",className:"integration-item-doc-link",onClick:function(e){e.stopPropagation()}},React.createElement("i",{className:"dashicons dashicons-editor-help"})),React.createElement(Z,{className:"igd-tooltip",place:"top",type:"dark",effect:"solid"}),React.createElement("span",{className:"integration-item-title"},o),React.createElement("span",{className:"integration-item-description"},i),d&&React.createElement("div",{className:"pro-badge"},React.createElement("i",{className:"dashicons dashicons-lock"}),React.createElement("span",null,wp.i18n.__("PRO","integrate-google-drive"))),React.createElement(X,{className:"integration-item-toggle",checked:s}))})))),React.createElement("div",{className:"sharing-channels-wrap"},React.createElement("h3",{className:"igd-settings-body-title"},wp.i18n.__("File sharing channels","integrate-google-drive")),React.createElement("p",{className:"description"},wp.i18n.__("Select the sharing channels you want to show for the users in the file sharing modal.","integrate-google-drive")),React.createElement("div",{className:"sharing-channels"},c.map((function(e){return React.createElement(Y,{key:e.value,label:React.createElement("div",{className:"tool-option"},React.createElement("i",{className:"dashicons dashicons-"+e.icon})," ",e.label," "),checked:i.includes(e.value),onChange:function(){i.includes(e.value)?n(J(J({},t),{},{channels:i.filter((function(t){return t!==e.value}))})):n(J(J({},t),{},{channels:[].concat(W(i),[e.value])}))}})})))))}function ee(e){return ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ee(e)}function te(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function ne(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?te(Object(n),!0).forEach((function(t){ae(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):te(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ae(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==ee(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!==ee(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ee(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var re=wp.components,oe=re.FormToggle,ie=re.SelectControl,le=re.TextControl,ce=window.ReactTooltip;function se(e){var t=e.data,n=e.setData,a=igd.isPro,r=t.enableStatistics,o=void 0!==r&&r,i=t.emailReport,l=void 0!==i&&i,c=t.emailReportFrequency,s=void 0===c?"weekly":c,d=t.emailReportRecipients;return React.createElement("div",{className:"igd-settings-body"},React.createElement("span",{className:"igd-settings-body-title"},wp.i18n.__("Statistics Settings","integrate-google-drive"),React.createElement("a",{href:"https://softlabbd.com/docs/understanding-the-integrate-google-drive-statistics-properly/",target:"_blank",className:"igd-btn btn-outline-info"},React.createElement("i",{className:"dashicons dashicons-editor-help"}),wp.i18n.__("Documentation","integrate-google-drive"))),React.createElement("div",{className:"settings-field"},React.createElement("span",{className:"settings-field-label"},wp.i18n.__("Enable Statistics","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(oe,{"data-tip":wp.i18n.__("PRO Feature","integrate-google-drive"),checked:o,onChange:function(){a?n(ne(ne({},t),{},{enableStatistics:!o})):u(wp.i18n.__("Upgrade to PRO to enable the statistics.","integrate-google-drive"))}}),!a&&React.createElement(ce,{effect:"solid",place:"right",backgroundColor:"#ff9966",className:"igd-tooltip"}),React.createElement("span",{className:"description"},wp.i18n.__("Enable/ disable the statistics logs.","integrate-google-drive")))),(o||!a)&&React.createElement("div",{className:"settings-field"},React.createElement("span",{className:"settings-field-label"},wp.i18n.__("Email Reporting","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(oe,{"data-tip":wp.i18n.__("PRO Feature","integrate-google-drive"),checked:l,onChange:function(){a?n(ne(ne({},t),{},{emailReport:!l})):u(wp.i18n.__("Upgrade to PRO to enable the statistics.","integrate-google-drive"))}}),!a&&React.createElement(ce,{effect:"solid",place:"right",backgroundColor:"#ff9966",className:"igd-tooltip"}),React.createElement("p",{className:"description"},wp.i18n.__("Enable / disable the statistics email reporting.","integrate-google-drive")))),(o&&l||!a)&&React.createElement(React.Fragment,null,React.createElement("div",{className:"settings-field"},React.createElement("span",{className:"settings-field-label"},wp.i18n.__("Email Report Frequency","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(ie,{"data-tip":wp.i18n.__("PRO Feature","integrate-google-drive"),value:s,options:[{label:wp.i18n.__("Daily","integrate-google-drive"),value:"daily"},{label:wp.i18n.__("Weekly","integrate-google-drive"),value:"weekly"},{label:wp.i18n.__("Monthly","integrate-google-drive"),value:"monthly"}],onChange:function(e){a?n(ne(ne({},t),{},{emailReportFrequency:e})):u(wp.i18n.__("Upgrade to PRO to enable the statistics.","integrate-google-drive"))}}),!a&&React.createElement(ce,{effect:"solid",place:"right",backgroundColor:"#ff9966",className:"igd-tooltip"}),React.createElement("p",{className:"description"},wp.i18n.__("Select the email report frequency.","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},React.createElement("span",{className:"settings-field-label"},wp.i18n.__("Email Report Recipients","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(le,{"data-tip":wp.i18n.__("PRO Feature","integrate-google-drive"),value:d,onChange:function(e){a?n(ne(ne({},t),{},{emailReportRecipients:e})):u(wp.i18n.__("Upgrade to PRO to enable the statistics.","integrate-google-drive"))}}),!a&&React.createElement(ce,{effect:"solid",place:"right",backgroundColor:"#ff9966",className:"igd-tooltip"}),React.createElement("p",{className:"description"},wp.i18n.__("Enter the recipients email addresses separated by comma.","integrate-google-drive"))))))}function de(e){return de="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},de(e)}function ge(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function ue(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ge(Object(n),!0).forEach((function(t){me(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ge(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function me(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==de(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!==de(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===de(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}React.useEffect;var pe=wp.components.FormToggle,fe=window,ve=fe.ModuleBuilderModal,we=fe.ReactTooltip;function he(e){var t,n,a=e.data,r=e.setData,o=igd,i=o.activeAccount,l=o.isPro,c=a.autoPrivateFolders,s=a.deleteAutoPrivateFolders,d=a.nameTemplate,m=void 0===d?"%user_login% (%user_email%)":d,p=a.parentFolder,f=void 0===p?g(i.root_id):p,v=a.templateFolder,w=a.mergeFolders,h=a.privateFoldersInAdminDashboard;return React.createElement("div",{className:"igd-settings-body"},React.createElement("span",{className:"igd-settings-body-title"},wp.i18n.__("Private Folders","integrate-google-drive"),React.createElement("a",{href:"https://softlabbd.com/docs/how-to-use-and-enable-private-folders-automatically-link-manually/",target:"_blank",className:"igd-btn btn-outline-info"},React.createElement("i",{className:"dashicons dashicons-editor-help"}),wp.i18n.__("Documentation","integrate-google-drive"))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Create Folder on Registration","integrate-google-drive")," "),React.createElement("div",{className:"settings-field-content"},React.createElement(pe,{"data-tip":"PRO Feature",checked:c,onChange:function(){igd.isPro?r(ue(ue({},a),{},{autoPrivateFolders:!c})):u(wp.i18n.__("Upgrade to PRO to enable auto private folders creation on user registration.","integrate-google-drive"))}}),!igd.isPro&&React.createElement(we,{effect:"solid",place:"right",backgroundColor:"#FF9F10",className:"igd-tooltip"}),React.createElement("span",{className:"description"},wp.i18n.__("Enable/ disable automatic private folders.","integrate-google-drive"),React.createElement("br",null),wp.i18n.__("If ON, a new private folder will be created for the new registered users.","integrate-google-drive")))),c&&React.createElement(React.Fragment,null,React.createElement("div",{className:"settings-field field-naming-template"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Naming template","integrate-google-drive")," "),React.createElement("div",{className:"settings-field-content"},React.createElement("input",{"data-tip":"PRO Feature",type:"text",value:m,onChange:function(e){igd.isPro?r(ue(ue({},a),{},{nameTemplate:e.target.value})):u(wp.i18n.__("Upgrade to PRO to enable auto private folders creation on user registration.","integrate-google-drive"))}}),!igd.isPro&&React.createElement(we,{effect:"solid",place:"right",backgroundColor:"#FF9F10",className:"igd-tooltip"}),React.createElement("p",{className:"description"},wp.i18n.__("Set the folder name template for the automatically created private folders. and use the below tags to customize the folder name.","integrate-google-drive")),React.createElement("div",{className:"template-tags"},React.createElement("div",{className:"template-tags-title",onClick:function(e){return jQuery(e.target).closest(".template-tags-title").toggleClass("active")}},React.createElement("i",{className:"dashicons dashicons-arrow-down-alt2"}),React.createElement("span",null,wp.i18n.__("Available template tags","integrate-google-drive")),React.createElement("span",null,wp.i18n.__(" (click to insert)","integrate-google-drive"))),React.createElement("div",{className:"template-tags-list"},["%user_login%","%user_email%","%first_name%","%last_name%","%display_name%","%user_id%","%user_role%","%user_meta_{key}%","%date%","%time%","%unique_id%"].map((function(e,t){return React.createElement("span",{className:"tag",key:t,onClick:function(){igd.isPro?r(ue(ue({},a),{},{nameTemplate:m+" "+e})):u(wp.i18n.__("Upgrade to PRO to enable auto private folders creation.","integrate-google-drive"))}},e)})))))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Parent Folder","integrate-google-drive")," "),React.createElement("div",{className:"settings-field-content"},React.createElement("div",{className:"template-folder-wrap"},!!f&&React.createElement("div",{className:"template-folder"},React.createElement("div",{className:"template-folder-account"},null===(t=igd.accounts[f.accountId])||void 0===t?void 0:t.email),React.createElement("div",{className:"template-folder-item"},f.iconLink?React.createElement("img",{src:f.iconLink}):React.createElement("i",{className:"dashicons dashicons-category"}),React.createElement("span",{className:"template-folder-name"},f.name?f.name:g(f))),React.createElement("div",{className:"dashicons dashicons-no-alt",onClick:function(){return r(ue(ue({},a),{},{parentFolder:null}))}},React.createElement("span",{className:"screen-reader-text"},wp.i18n.__("Remove","integrate-google-drive")))),React.createElement("button",{"data-tip":"PRO Feature",className:"igd-btn btn-primary",onClick:function(){igd.isPro?Swal.fire({html:'<div id="igd-select-files" class="igd-module-builder-modal-wrap"></div>',showConfirmButton:!1,customClass:{container:"igd-module-builder-modal-container"},didOpen:function(e){var t=document.getElementById("igd-select-files");ReactDOM.render(React.createElement(ve,{initData:{folders:f?[f]:[]},onUpdate:function(e){var t=e.folders,n=void 0===t?[]:t;r((function(e){return ue(ue({},e),{},{parentFolder:n[0]})})),Swal.close()},onClose:function(){return Swal.close()},isSelectFiles:!0,selectionType:"parent"}),t)},willClose:function(e){var t=document.getElementById("igd-select-files");ReactDOM.unmountComponentAtNode(t)}}):u(wp.i18n.__("Upgrade to PRO to enable auto private folders creation on user registration.","integrate-google-drive"))}},React.createElement("i",{className:"dashicons dashicons-open-folder"}),React.createElement("span",null,f?wp.i18n.__("Change Parent Folder","integrate-google-drive"):wp.i18n.__("Select Parent Folder","integrate-google-drive"))),!igd.isPro&&React.createElement(we,{effect:"solid",place:"right",backgroundColor:"#FF9F10",className:"igd-tooltip"})),React.createElement("p",{className:"description"},wp.i18n.__("Select the parent folder for the newly created private folders. All the private folders will be created within the selected parent folder.","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Template Folder","integrate-google-drive")," "),React.createElement("div",{className:"settings-field-content"},React.createElement("div",{className:"template-folder-wrap"},!!v&&React.createElement("div",{className:"template-folder"},React.createElement("div",{className:"template-folder-account"},null===(n=igd.accounts[v.accountId])||void 0===n?void 0:n.email),React.createElement("div",{className:"template-folder-item"},v.iconLink?React.createElement("img",{src:v.iconLink}):React.createElement("i",{className:"dashicons dashicons-category"}),React.createElement("span",{className:"template-folder-name"},v.name?v.name:g(v))),React.createElement("div",{className:"dashicons dashicons-no-alt",onClick:function(){return r(ue(ue({},a),{},{templateFolder:null}))}},React.createElement("span",{className:"screen-reader-text"},wp.i18n.__("Remove","integrate-google-drive")))),React.createElement("button",{"data-tip":"PRO Feature",className:"igd-btn btn-primary",onClick:function(){igd.isPro?Swal.fire({html:'<div id="igd-select-files" class="igd-module-builder-modal-wrap single"></div>',showConfirmButton:!1,customClass:{container:"igd-module-builder-modal-container"},didOpen:function(e){var t=document.getElementById("igd-select-files");ReactDOM.render(React.createElement(ve,{initData:{folders:v?[v]:[]},onUpdate:function(e){var t=e.folders,n=void 0===t?[]:t;r((function(e){return ue(ue({},e),{},{templateFolder:n[0]})})),Swal.close()},onClose:function(){return Swal.close()},isSelectFiles:!0,selectionType:"template"}),t)},willClose:function(e){var t=document.getElementById("igd-select-files");ReactDOM.unmountComponentAtNode(t)}}):u(wp.i18n.__("Upgrade to PRO to enable auto private folders creation on user registration.","integrate-google-drive"))}},React.createElement("i",{className:"dashicons dashicons-open-folder"}),React.createElement("span",null,v?wp.i18n.__("Change Template Folder","integrate-google-drive"):wp.i18n.__("Select Template Folder","integrate-google-drive"))),!igd.isPro&&React.createElement(we,{effect:"solid",place:"right",backgroundColor:"#FF9F10",className:"igd-tooltip"})),!!f&&!!v&&f.accountId!==v.accountId&&React.createElement("div",{className:"template-folder-error"},React.createElement("i",{className:"dashicons dashicons-warning"}),React.createElement("span",null,wp.i18n.__("Template folder and parent folder must be from the same account.","integrate-google-drive"))),!!f&&!!v&&f.id===v.id&&React.createElement("div",{className:"template-folder-error"},React.createElement("i",{className:"dashicons dashicons-warning"}),React.createElement("span",null,wp.i18n.__("Template folder and parent folder can't be the same.","integrate-google-drive"))),React.createElement("p",{className:"description"},wp.i18n.__("Select the template folder for the newly created private folders. All the files and folders within the template folder will be copied to the newly created private folders for the users.","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Delete private folders","integrate-google-drive")," "),React.createElement("div",{className:"settings-field-content"},React.createElement(pe,{"data-tip":"PRO Feature",checked:s,onChange:function(){igd.isPro?r(ue(ue({},a),{},{deleteAutoPrivateFolders:!s})):u(wp.i18n.__("Upgrade to PRO to enable auto private folders creation on user registration.","integrate-google-drive"))}}),!igd.isPro&&React.createElement(we,{effect:"solid",place:"right",backgroundColor:"#FF9F10",className:"igd-tooltip"}),React.createElement("p",{className:"description"},wp.i18n.__("If ON, Delete the linked private folders on account delete.","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Merge Folders","integrate-google-drive")," "),React.createElement("div",{className:"settings-field-content"},React.createElement(pe,{"data-tip":wp.i18n.__("PRO Feature","integrate-google-drive"),checked:w,onChange:function(){l?r(ue(ue({},a),{},{mergeFolders:!w})):u(wp.i18n.__("Upgrade to PRO to enable auto private folders creation on user registration.","integrate-google-drive"))}}),React.createElement("p",{className:"description"},wp.i18n.__("Enable the merging of folders when a folder with a same name already exists, rather than creating a new folder.","integrate-google-drive"))))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Private Folders in Admin Dashboard","integrate-google-drive")," "),React.createElement("div",{className:"settings-field-content"},React.createElement(pe,{"data-tip":wp.i18n.__("PRO Feature","integrate-google-drive"),checked:h,onChange:function(){l?r(ue(ue({},a),{},{privateFoldersInAdminDashboard:!h})):u(wp.i18n.__("Upgrade to PRO to allow private folders in admin dashboard.","integrate-google-drive"))}}),React.createElement("p",{className:"description"},wp.i18n.__("Allow access to private folders in admin dashboard file browser, shortcode builder.","integrate-google-drive")))))}function ye(e){return ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ye(e)}function be(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function _e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?be(Object(n),!0).forEach((function(t){Re(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):be(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Re(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==ye(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!==ye(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ye(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ee=wp.components.ColorPalette,Ne=React,Ae=Ne.useEffect,Se=Ne.useRef,Oe=window.ReactTooltip;function Pe(e){var t=e.data,n=e.setData,a={atom:wp.i18n.__("Atom","integrate-google-drive"),"bar-chart":wp.i18n.__("Bar Chart","integrate-google-drive"),spinner:wp.i18n.__("Spinner","integrate-google-drive"),bars:wp.i18n.__("Bars","integrate-google-drive"),bricks:wp.i18n.__("Bricks","integrate-google-drive"),blocks:wp.i18n.__("Blocks","integrate-google-drive"),"color-bar":wp.i18n.__("Color Bar","integrate-google-drive"),clock:wp.i18n.__("Clock","integrate-google-drive"),"dash-ring":wp.i18n.__("Dash Ring","integrate-google-drive"),ripple:wp.i18n.__("Ripple","integrate-google-drive"),progress:wp.i18n.__("Progress","integrate-google-drive"),flipball:wp.i18n.__("Flip Ball","integrate-google-drive"),hourglass:wp.i18n.__("Hourglass","integrate-google-drive"),infinity:wp.i18n.__("Infinity","integrate-google-drive"),"dual-ring":wp.i18n.__("Dual Ring","integrate-google-drive"),"fidget-spinner":wp.i18n.__("Fidget Spinner","integrate-google-drive"),gear:wp.i18n.__("Gear","integrate-google-drive"),gears:wp.i18n.__("Gears","integrate-google-drive")},r=t.preloader,o=void 0===r?"default":r,i=t.customPreloader,l=t.primaryColor,c=void 0===l?"#3C82F6":l,s=t.customCss;Ae((function(){var e=document.querySelector(".igd-custom-css");e&&wp.codeEditor.initialize(e,_e(_e({},wp.codeEditor.defaultSettings),{},{mode:"css",wordWrap:!0,tabSize:2,autoComplete:{enable:!0,showDescriptions:!0,caseSensitive:!0,autoTrigger:!0,delay:0,maxItems:10,sortBy:"score",maxLength:0,maxResults:10,highlightMatches:!0,maxHighlightLength:0,style:"popup"},showGutter:!0,showPrintMargin:!0,highlightActiveLine:!0,showLineNumbers:!0,enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableCodeFolding:!0,enableCodeFormatting:!0})).codemirror.on("change",(function(e){var a=e.getValue();n(_e(_e({},t),{},{customCss:a}))}))}),[]);var d=Se();return React.createElement("div",{className:"igd-settings-body"},React.createElement("h3",{className:"igd-settings-body-title"},wp.i18n.__("Appearance Settings","integrate-google-drive")),React.createElement("div",{className:"settings-field field-preloader"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Preloader","integrate-google-drive")),React.createElement("p",{className:"description"},wp.i18n.__("Choose the preloader style for the file browser. Preloader will be displayed in the file browser while the files are loading.","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement("div",{className:"preloaders"},React.createElement("div",{className:"preloader ".concat("default"===o?"active":""),onClick:function(){return n(_e(_e({},t),{},{preloader:"default"}))}},React.createElement("img",{src:"".concat(igd.pluginUrl,"/assets/images/preloader/default.svg"),alt:wp.i18n.__("Default","integrate-google-drive")}),React.createElement("span",{className:"preloader-name"},wp.i18n.__("Default","integrate-google-drive"))),Object.keys(a).map((function(e){var r=a[e],i=igd.isPro&&o===e;return React.createElement("div",{className:"preloader ".concat(i?"active":""," ").concat(igd.isPro?"":"disabled"),key:e,onClick:function(){igd.isPro?n(_e(_e({},t),{},{preloader:e})):u(wp.i18n.__("Upgrade to PRO to use this preloader.","integrate-google-drive"))}},React.createElement("img",{src:"".concat(igd.pluginUrl,"/assets/images/preloader/").concat(e,".svg"),alt:r}),igd.isPro?React.createElement("div",{className:"preloader-name"},React.createElement("span",null,r)):React.createElement("div",{className:"preloader-name"},React.createElement("i",{className:"dashicons dashicons-lock"}),React.createElement("span",null,wp.i18n.__("PRO","integrate-google-drive"))))}))),React.createElement("div",{className:"preloader-upload"},React.createElement("h4",null,wp.i18n.__("Custom Preloader Image","integrate-google-drive")),React.createElement("div",{className:"preloader-upload-actions"},React.createElement("button",{type:"button",className:"igd-btn btn-primary upload-btn",onClick:function(){igd.isPro?function(){if(d.current)return d.current.off("select"),void d.current.on("select",(function(){var e=d.current.state().get("selection").first().toJSON();n(_e(_e({},t),{},{customPreloader:e.url}))})).open();d.current=wp.media({title:wp.i18n.__("Select Preloader","integrate-google-drive"),button:{text:wp.i18n.__("Select","integrate-google-drive")},multiple:!1,library:{type:"image"}}),d.current.on("select",(function(){var e=d.current.state().get("selection").first().toJSON();n(_e(_e({},t),{},{customPreloader:e.url}))})).open()}():u(wp.i18n.__("Upgrade to PRO to use custom preloader.","integrate-google-drive"))}},React.createElement("i",{className:"dashicons dashicons-upload"}),React.createElement("span",null,wp.i18n.__("Upload Image","integrate-google-drive"))),!!i&&React.createElement("button",{type:"button",className:"igd-btn btn-danger",onClick:function(){return n(_e(_e({},t),{},{customPreloader:""}))}},React.createElement("i",{className:"dashicons dashicons-trash"}),React.createElement("span",null,wp.i18n.__("Remove","integrate-google-drive")))),!!i&&React.createElement("div",{className:"preloader-preview"},React.createElement("img",{src:i}))))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Primary Color","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement("div",{className:"igd-color-palette-wrap","data-tip":wp.i18n.__("PRO Feature","integrate-google-drive"),onClick:function(){igd.isPro||u(wp.i18n.__("Upgrade to PRO to change the file browser primary color.","integrate-google-drive"))}},React.createElement(Ee,{colors:[{name:"Default",color:"#3C82F6"},{name:"Green",color:"#2FB44B"},{color:"#2463EB",name:"Azure"},{color:"#0073aa",name:"Sapphire Blue"},{color:"#2265C0",name:"Lapis Blue"},{color:"#3F51B5",name:"Indigo"},{color:"#6E61C2",name:"Amethyst"}],value:c,onChange:function(e){n(_e(_e({},t),{},{primaryColor:e}))},className:"igd-color-palette ".concat(igd.isPro?"":"disabled"),enableAlpha:!0,asButtons:!0}),!igd.isPro&&React.createElement(Oe,{className:"igd-tooltip",effect:"solid",place:"right",backgroundColor:"#ff9966"})),React.createElement("span",{className:"description"},wp.i18n.__("Choose the primary color for the file browser. The color will affects both on admin and frontend file browser module.","integrate-google-drive")))),React.createElement("div",{className:"settings-field field-custom-css"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Custom CSS","integrate-google-drive")),React.createElement("p",{className:"description"},wp.i18n.__("To customize the plugin's styles, insert your custom CSS here.","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement("textarea",{value:s,onChange:function(e){return n(_e(_e({},t),{},{customCss:e}))},rows:20,placeholder:wp.i18n.__("Enter your custom CSS here...","integrate-google-drive"),id:"igd-custom-css",className:"igd-textarea igd-custom-css"}))))}function ke(e){return ke="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ke(e)}function Ce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Fe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ce(Object(n),!0).forEach((function(t){je(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ce(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function je(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==ke(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!==ke(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ke(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function De(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,o,i,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=o.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ue(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ue(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ue(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var Be=wp.components.SelectControl,xe=React.useState;function Ie(e){var t=e.data,n=e.setData,a=e.saveSettings,r=t.exportData,o=void 0===r?"all":r,i=De(xe(!1),2),l=i[0],c=i[1];return React.createElement("div",{className:"igd-settings-body"},React.createElement("h3",{className:"igd-settings-body-title"},wp.i18n.__("Tools","integrate-google-drive")),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Clear Cached Files","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement("button",{className:"igd-btn btn-warning",type:"button",onClick:function(){Swal.fire({title:wp.i18n.__("Are you sure?","integrate-google-drive"),text:wp.i18n.__("Clear all the cached files!","integrate-google-drive"),icon:"warning",showCancelButton:!0,confirmButtonText:wp.i18n.__("Clear cache","integrate-google-drive"),cancelButtonText:wp.i18n.__("Cancel","integrate-google-drive"),reverseButtons:!0,showLoaderOnConfirm:!0,customClass:{container:"igd-swal"},preConfirm:function(){return new Promise((function(e,t){wp.ajax.post("igd_clear_cache",{nonce:igd.nonce}).done((function(){return e()}))}))}}).then((function(e){e.isConfirmed&&Swal.fire({title:wp.i18n.__("Cache Cleared!","integrate-google-drive"),text:wp.i18n.__("Cached files are deleted and synchronized with the cloud files.","integrate-google-drive"),icon:"success",showConfirmButton:!1,timer:2500,timerProgressBar:!0,toast:!0})}))}},React.createElement("i",{className:"dashicons dashicons-update"}),React.createElement("span",null,wp.i18n.__("Clear cache","integrate-google-drive"))),React.createElement("p",{className:"description"},wp.i18n.__("Clear cached files and synchronize the cloud files.","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Export Data","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(Be,{value:o,options:[{label:wp.i18n.__("Settings","integrate-google-drive"),value:"settings"},{label:wp.i18n.__("Shortcode Modules","integrate-google-drive"),value:"shortcodes"},{label:wp.i18n.__("User Private Files","integrate-google-drive"),value:"user_files"},{label:wp.i18n.__("Statistics Logs","integrate-google-drive"),value:"events"},{label:wp.i18n.__("Export All (Settings, Shortcode Modules, User Private Files, Statistics Logs)","integrate-google-drive"),value:"all"}],onChange:function(e){n(Fe(Fe({},t),{},{exportData:e}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Select the data you want to export.","integrate-google-drive")),React.createElement("br",null),React.createElement("button",{type:"button",className:"igd-btn btn-primary",onClick:function(){c("export"),wp.ajax.post("igd_get_export_data",{type:o}).done((function(e){var t=JSON.stringify(e),n=new Blob([t],{type:"application/json"}),a=URL.createObjectURL(n),r=document.createElement("a");r.href=a,r.download="integrate-google-drive-export-".concat(o.replace("_","-"),"-").concat((new Date).toISOString().slice(0,10),".json"),r.click(),URL.revokeObjectURL(a)})).fail((function(e){return console.log(e)})).always((function(){return c(!1)}))}},"export"===l?React.createElement("div",{className:"igd-spinner"}):React.createElement("i",{className:"dashicons dashicons-download"}),React.createElement("span",null,wp.i18n.__("Export","integrate-google-drive"))),React.createElement("p",{className:"description"},wp.i18n.__("Export the selected data to a JSON file.","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},"Import Data"),React.createElement("div",{className:"settings-field-content"},React.createElement("button",{type:"button",className:"igd-btn btn-info",onClick:function(){var e=document.createElement("input");e.type="file",e.accept="application/json",e.onchange=function(){var t=e.files[0],r=new FileReader;r.readAsText(t),r.onload=function(){c("import");var e=JSON.parse(r.result);wp.ajax.post("igd_import_data",{data:e}).done((function(){Swal.fire({title:wp.i18n.__("Imported!","integrate-google-drive"),text:wp.i18n.__("Data imported successfully.","integrate-google-drive"),icon:"success",showConfirmButton:!1,timer:2500,timerProgressBar:!0,toast:!0}),e.settings&&(n(e.settings),a())})).fail((function(e){return console.log(e)})).always((function(){return c(!1)}))}},e.click()}},"import"===l?React.createElement("div",{className:"igd-spinner"}):React.createElement("i",{className:"dashicons dashicons-upload"}),React.createElement("span",null,"Import")),React.createElement("p",{className:"description"},wp.i18n.__("Select the exported JSON file you would like to import. Please note that the import will replace the current data","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},React.createElement("span",{className:"settings-field-label"},wp.i18n.__("Reset Settings","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement("button",{type:"button",className:"igd-btn btn-danger",onClick:function(){Swal.fire({title:wp.i18n.__("Are you sure?","integrate-google-drive"),text:wp.i18n.__("We recommend you to export your current settings before resetting them.","integrate-google-drive"),icon:"warning",showCancelButton:!0,confirmButtonText:wp.i18n.__("Reset","integrate-google-drive"),reverseButtons:!0,showLoaderOnConfirm:!0,customClass:{container:"igd-swal"}}).then((function(e){e.value&&(n({}),a())}))}},React.createElement("i",{className:"dashicons dashicons-update"}),React.createElement("span",null,wp.i18n.__("Reset","integrate-google-drive"))),React.createElement("p",{className:"description"},wp.i18n.__("Reset all settings to default.","integrate-google-drive")))))}function Le(e){return Le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Le(e)}function Te(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Ke(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Te(Object(n),!0).forEach((function(t){Me(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Te(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Me(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Le(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!==Le(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Le(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ge(e){return function(e){if(Array.isArray(e))return ze(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||We(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,o,i,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=o.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw r}}return l}}(e,t)||We(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function We(e,t){if(e){if("string"==typeof e)return ze(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ze(e,t):void 0}}function ze(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var qe=React,Je=qe.useState,Ve=qe.useEffect;function He(e){var t=e.data,n=e.setData,a=t.accessFileBrowserUsers,r=void 0===a?["administrator"]:a,o=t.userFolders,i=void 0===o?{}:o,l=t.accessSettingsUsers,c=void 0===l?["administrator"]:l,s=t.accessShortcodeBuilderUsers,d=void 0===s?["administrator"]:s,g=t.accessStatisticsUsers,m=void 0===g?["administrator"]:g,p=t.accessPrivateFilesUsers,f=void 0===p?["administrator"]:p,v=t.accessGettingStartedUsers,w=void 0===v?["administrator"]:v,h=Qe(Je({roles:{administrator:1},users:[]}),2),y=h[0],b=h[1];Ve((function(){wp.ajax.post("igd_get_users_data").done((function(e){return b(e)}))}),[]);var _=y&&[].concat(Ge(Object.keys(y.roles).map((function(e){return{label:"".concat(e," (role)"),value:e}}))),Ge(y.users.map((function(e){var t=e.username,n=e.email,a=e.id;return{label:"".concat(t," (").concat(n,")"),value:parseInt(a)}})))),R=y?_.filter((function(e){return r.includes(e.value)})):[];return React.createElement("div",{className:"igd-settings-body"},React.createElement("h3",{className:"igd-settings-body-title"},wp.i18n.__("User Access Settings","integrate-google-drive"),React.createElement("a",{href:"https://softlabbd.com/docs/allow-other-users-to-use-integrate-google-drive-in-admin-dashboard/",target:"_blank",className:"igd-btn btn-outline-info"},React.createElement("i",{className:"dashicons dashicons-editor-help"}),wp.i18n.__("Documentation","integrate-google-drive"))),React.createElement("div",{className:"settings-field field-access-browser"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("File Browser Page","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(ReactSelect,{isMulti:!0,placeholder:"Select users & roles",options:_,value:R,onChange:function(e){return n(Ke(Ke({},t),{},{accessFileBrowserUsers:Ge(e.map((function(e){return e.value})))}))},className:"igd-select",classNamePrefix:"igd-select",isClearable:!1,styles:{multiValue:function(e,t){return"administrator"===t.data.value?Ke(Ke({},e),{},{backgroundColor:"gray"}):e},multiValueLabel:function(e,t){return"administrator"===t.data.value?Ke(Ke({},e),{},{fontWeight:"bold",color:"white",paddingRight:6}):e},multiValueRemove:function(e,t){return"administrator"===t.data.value?Ke(Ke({},e),{},{display:"none"}):e}}}),React.createElement("p",{className:"description"},wp.i18n.__("Select which roles & users can access the admin dashboard file browser.","integrate-google-drive")),R.length>1&&React.createElement("div",{className:"settings-field-sub"},R.map((function(e){var a=e.label,r=e.value;if("administrator"!==r){var o=i[r]||[];return React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Select folders for ","integrate-google-drive")," - ",a),React.createElement("div",{className:"template-folder-wrap"},o.length?o.map((function(e){var a=e.id,o=e.name,l=e.iconLink;return l=l||"https://drive-thirdparty.googleusercontent.com/64/type/application/vnd.google-apps.folder",React.createElement("div",{className:"template-folder"},React.createElement("div",{className:"template-folder-item"},React.createElement("img",{src:l}),React.createElement("span",{className:"template-folder-name"},o),React.createElement("div",{className:"dashicons dashicons-no-alt",onClick:function(){var e=i[r].filter((function(e){return e.id!==a}));n(Ke(Ke({},t),{},{userFolders:Ke(Ke({},i),{},Me({},r,e))}))}})))})):React.createElement("div",{className:"template-folder"},React.createElement("div",{className:"template-folder-item"},React.createElement("img",{src:"https://drive-thirdparty.googleusercontent.com/64/type/application/vnd.google-apps.folder"}),React.createElement("span",{className:"template-folder-name"},wp.i18n.__("All Folders","integrate-google-drive")))),React.createElement("button",{"data-tip":"PRO Feature",className:"igd-btn btn-primary",onClick:function(){igd.isPro?Swal.fire({html:'<div id="igd-select-files" class="igd-module-builder-modal-wrap"></div>',showConfirmButton:!1,customClass:{container:"igd-module-builder-modal-container"},didOpen:function(e){var t=document.getElementById("igd-select-files");ReactDOM.render(React.createElement(ModuleBuilderModal,{initData:{folders:o},onUpdate:function(e){var t=e.folders,a=void 0===t?[]:t;n((function(e){return Ke(Ke({},e),{},{userFolders:Ke(Ke({},i),{},Me({},r,a.map((function(e){return{id:e.id,name:e.name,iconLink:e.iconLink,accountId:e.accountId,type:e.type,shortcutDetails:e.shortcutDetails}}))))})})),Swal.close()},onClose:function(){return Swal.close()},isSelectFiles:!0,selectionType:"folders"}),t)},willClose:function(e){var t=document.getElementById("igd-select-files");ReactDOM.unmountComponentAtNode(t)}}):u(wp.i18n.__("Upgrade to select specific folders for users.","integrate-google-drive"))}},React.createElement("i",{className:"dashicons dashicons-open-folder"}),React.createElement("span",null,o.length?wp.i18n.__("Update Folders","integrate-google-drive"):wp.i18n.__("Select Folders","integrate-google-drive"))),!igd.isPro&&React.createElement(ReactTooltip,{effect:"solid",place:"right",backgroundColor:"#FF9F10",className:"igd-tooltip"})),React.createElement("p",{className:"description"},wp.i18n.__("Select specific folders that will be accessible to ","integrate-google-drive")," ",a,"."))}}))))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Shortcode Builder Page","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(ReactSelect,{isMulti:!0,placeholder:"Select users & roles",options:_,value:y?_.filter((function(e){return d.includes(e.value)})):[],onChange:function(e){return n(Ke(Ke({},t),{},{accessShortcodeBuilderUsers:Ge(e.map((function(e){return e.value})))}))},className:"igd-select",classNamePrefix:"igd-select",isClearable:!1,styles:{multiValue:function(e,t){return"administrator"===t.data.value?Ke(Ke({},e),{},{backgroundColor:"gray"}):e},multiValueLabel:function(e,t){return"administrator"===t.data.value?Ke(Ke({},e),{},{fontWeight:"bold",color:"white",paddingRight:6}):e},multiValueRemove:function(e,t){return"administrator"===t.data.value?Ke(Ke({},e),{},{display:"none"}):e}}}),React.createElement("p",{className:"description"},wp.i18n.__("Select which roles & users can create & edit shortcode modules.","integrate-google-drive")),React.createElement("p",{className:"description"},React.createElement("strong",null,wp.i18n.__("Note: ","integrate-google-drive"))," ",wp.i18n.__("Roles & Users can only access the folders that they have assigned in the ","integrate-google-drive"),React.createElement("strong",null,wp.i18n.__(" Access Backend File Browser ","integrate-google-drive"))," ",wp.i18n.__(" settings above.","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("User Private Files Page","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(ReactSelect,{isMulti:!0,placeholder:"Select users & roles",options:_,value:y?_.filter((function(e){return f.includes(e.value)})):[],onChange:function(e){return n(Ke(Ke({},t),{},{accessPrivateFilesUsers:Ge(e.map((function(e){return e.value})))}))},className:"igd-select",classNamePrefix:"igd-select",isClearable:!1,styles:{multiValue:function(e,t){return"administrator"===t.data.value?Ke(Ke({},e),{},{backgroundColor:"gray"}):e},multiValueLabel:function(e,t){return"administrator"===t.data.value?Ke(Ke({},e),{},{fontWeight:"bold",color:"white",paddingRight:6}):e},multiValueRemove:function(e,t){return"administrator"===t.data.value?Ke(Ke({},e),{},{display:"none"}):e}}}),React.createElement("p",{className:"description"},wp.i18n.__("Select which roles & users can manually link private files & folders to users.","integrate-google-drive")),React.createElement("p",{className:"description"},React.createElement("strong",null,wp.i18n.__("Note: ","integrate-google-drive"))," ",wp.i18n.__("Roles & Users can only access the folders that they have assigned in the ","integrate-google-drive"),React.createElement("strong",null,wp.i18n.__(" Access Backend File Browser ","integrate-google-drive"))," ",wp.i18n.__(" settings above.","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Settings Page","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(ReactSelect,{isMulti:!0,placeholder:"Select users & roles",options:_,value:y?_.filter((function(e){return c.includes(e.value)})):[],onChange:function(e){return n(Ke(Ke({},t),{},{accessSettingsUsers:Ge(e.map((function(e){return e.value})))}))},className:"igd-select",classNamePrefix:"igd-select",isClearable:!1,styles:{multiValue:function(e,t){return"administrator"===t.data.value?Ke(Ke({},e),{},{backgroundColor:"gray"}):e},multiValueLabel:function(e,t){return"administrator"===t.data.value?Ke(Ke({},e),{},{fontWeight:"bold",color:"white",paddingRight:6}):e},multiValueRemove:function(e,t){return"administrator"===t.data.value?Ke(Ke({},e),{},{display:"none"}):e}}}),React.createElement("p",{className:"description"},wp.i18n.__("Select which roles & users can change the plugin settings.","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Statistics Page","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(ReactSelect,{isMulti:!0,placeholder:"Select users & roles",options:_,value:y?_.filter((function(e){return m.includes(e.value)})):[],onChange:function(e){return n(Ke(Ke({},t),{},{accessStatisticsUsers:Ge(e.map((function(e){return e.value})))}))},className:"igd-select",classNamePrefix:"igd-select",isClearable:!1,styles:{multiValue:function(e,t){return"administrator"===t.data.value?Ke(Ke({},e),{},{backgroundColor:"gray"}):e},multiValueLabel:function(e,t){return"administrator"===t.data.value?Ke(Ke({},e),{},{fontWeight:"bold",color:"white",paddingRight:6}):e},multiValueRemove:function(e,t){return"administrator"===t.data.value?Ke(Ke({},e),{},{display:"none"}):e}}}),React.createElement("p",{className:"description"},wp.i18n.__("Select the users & roles to allow access to the statistics page.","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},React.createElement("span",{className:"settings-field-label"},wp.i18n.__("Getting Started Page","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(ReactSelect,{isMulti:!0,placeholder:"Select users & roles",options:_,value:y?_.filter((function(e){return w.includes(e.value)})):[],onChange:function(e){return n(Ke(Ke({},t),{},{accessGettingStartedUsers:Ge(e.map((function(e){return e.value})))}))},className:"igd-select",classNamePrefix:"igd-select",isClearable:!1,styles:{multiValue:function(e,t){return"administrator"===t.data.value?Ke(Ke({},e),{},{backgroundColor:"gray"}):e},multiValueLabel:function(e,t){return"administrator"===t.data.value?Ke(Ke({},e),{},{fontWeight:"bold",color:"white",paddingRight:6}):e},multiValueRemove:function(e,t){return"administrator"===t.data.value?Ke(Ke({},e),{},{display:"none"}):e}}}),React.createElement("p",{className:"description"},wp.i18n.__("Select the users & roles to allow viewing the getting started page.","integrate-google-drive")))))}function Xe(e){return Xe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xe(e)}function Ye(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,o,i,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=o.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw r}}return l}}(e,t)||$e(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ze(e){return function(e){if(Array.isArray(e))return et(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||$e(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $e(e,t){if(e){if("string"==typeof e)return et(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?et(e,t):void 0}}function et(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function tt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function nt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tt(Object(n),!0).forEach((function(t){at(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function at(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Xe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!==Xe(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Xe(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rt=wp.components,ot=rt.FormToggle,it=rt.CheckboxControl,lt=window,ct=lt.ModuleBuilderModal,st=lt.ReactTooltip,dt=React,gt=dt.useEffect,ut=dt.useState,mt=dt.useRef;function pt(e){var t=e.data,n=e.setData,a=!!igd.isPro,r=t.integrations,o=void 0===r?[]:r,i=t.wooCommerceDownload,l=void 0===i||i,c=t.wooCommerceUpload,s=void 0!==c&&c,d=t.wooCommerceUploadLocations,p=void 0===d?["checkout","order-received","my-account"]:d,f=t.wooCommerceUploadOrderStatuses,v=void 0===f?["wc-pending","wc-processing"]:f,w=t.wooCommerceUploadParentFolder,h=void 0===w?{id:igd.activeAccount.root_id,accountId:igd.activeAccount.id,name:wp.i18n.__("My Drive","integrate-google-drive")}:w,y=t.wooCommerceUploadFolderNameTemplate,b=void 0===y?"Order - %wc_order_id% - %wc_product_name% (%user_email%)":y,_=[{label:wp.i18n.__("Product Page","integrate-google-drive"),value:"product"},{label:wp.i18n.__("Cart Page","integrate-google-drive"),value:"cart"},{label:wp.i18n.__("Checkout Page","integrate-google-drive"),value:"checkout"},{label:wp.i18n.__("Order Received Page","integrate-google-drive"),value:"order-received"},{label:wp.i18n.__("My Account Page","integrate-google-drive"),value:"my-account"}],R={"wc-pending":wp.i18n._x("Pending payment","Order status","woocommerce"),"wc-processing":wp.i18n._x("Processing","Order status","woocommerce"),"wc-on-hold":wp.i18n._x("On hold","Order status","woocommerce"),"wc-completed":wp.i18n._x("Completed","Order status","woocommerce"),"wc-cancelled":wp.i18n._x("Cancelled","Order status","woocommerce"),"wc-refunded":wp.i18n._x("Refunded","Order status","woocommerce"),"wc-failed":wp.i18n._x("Failed","Order status","woocommerce")},E=m();gt((function(){E&&(l||s)&&n((function(e){return nt(nt({},e),{},{integrations:[].concat(Ze(o),["woocommerce"])})}))}),[l,s]);var N=Ye(ut(null),2),A=N[0],S=N[1],O=mt();return React.createElement("div",{className:"igd-settings-body"},React.createElement("h3",{className:"igd-settings-body-title"},wp.i18n.__("WooCommerce Settings","integrate-google-drive"),React.createElement("a",{href:"https://softlabbd.com/docs/how-to-use-integrate-google-drive-with-woocommerce/",target:"_blank",className:"igd-btn btn-outline-info"},React.createElement("i",{className:"dashicons dashicons-editor-help"}),wp.i18n.__("Documentation","integrate-google-drive"))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Enable Downloads","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(ot,{"data-tip":wp.i18n.__("Pro Feature","integrate-google-drive"),checked:a&&l,onChange:function(){a?n(nt(nt({},t),{},{wooCommerceDownload:!l})):u(wp.i18n.__("Upgrade to the Pro version to enable WooCommerce downloads.","integrate-google-drive"))}}),!a&&React.createElement(st,{effect:"solid",place:"right",backgroundColor:"#FF9F10",className:"igd-tooltip"}),React.createElement("p",{className:"description"},wp.i18n.__("Enable to add Google Drive files to WooCommerce downloadable products.","integrate-google-drive")))),React.createElement("div",{className:"settings-field field-woocommerce-upload"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Enable Uploads","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(ot,{"data-tip":wp.i18n.__("Pro Feature","integrate-google-drive"),checked:a&&s,onChange:function(){a?n(nt(nt({},t),{},{wooCommerceUpload:!s})):u(wp.i18n.__("Upgrade to the Pro version to enable WooCommerce uploads.","integrate-google-drive"))}}),!a&&React.createElement(st,{effect:"solid",place:"right",backgroundColor:"#FF9F10",className:"igd-tooltip"}),React.createElement("p",{className:"description"},wp.i18n.__("Enable/ disable customer file uploads for WooCommerce products.","integrate-google-drive")),s&&React.createElement("div",{className:"settings-field-sub"},React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Upload Box Locations","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement("div",{className:"upload-box-locations"},_.map((function(e){return React.createElement(it,{key:e.value,label:e.label,checked:p.includes(e.value),onChange:function(){p.includes(e.value)?n(nt(nt({},t),{},{wooCommerceUploadLocations:p.filter((function(t){return t!==e.value}))})):n(nt(nt({},t),{},{wooCommerceUploadLocations:[].concat(Ze(p),[e.value])}))}})}))),React.createElement("p",{className:"description"},wp.i18n.__("Select the locations where you want to show the upload box in woocommerce products.","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},(p.includes("order-received")||p.includes("my-account"))&&React.createElement(React.Fragment,null,React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Show upload box when order status is","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement("div",{className:"upload-box-order-status"},Object.keys(R).map((function(e){return React.createElement(it,{key:e,label:R[e],checked:v.includes(e),onChange:function(){v.includes(e)?n(nt(nt({},t),{},{wooCommerceUploadOrderStatuses:v.filter((function(t){return t!==e}))})):n(nt(nt({},t),{},{wooCommerceUploadOrderStatuses:[].concat(Ze(v),[e])}))}})}))),React.createElement("p",{className:"description"},wp.i18n.__("Select the order statuses when you want to show the upload box","integrate-google-drive")),React.createElement("div",{className:"igd-notice igd-notice-info"},React.createElement("p",{className:"igd-notice-content"},wp.i18n.__("This option will only work on the Order Received and My Account page.","integrate-google-drive")))))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Folder Naming template","integrate-google-drive")," "),React.createElement("div",{className:"settings-field-content"},React.createElement("input",{type:"text",className:"folder-naming-template",onSelect:function(e){return S(e.target.selectionStart)},ref:O,value:b,onChange:function(e){n(nt(nt({},t),{},{wooCommerceUploadFolderNameTemplate:e.target.value}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Set the upload folder naming template when a customer uploads a file a new folder will be created with this name.","integrate-google-drive")),React.createElement("div",{className:"template-tags"},React.createElement("div",{className:"template-tags-title",onClick:function(e){return jQuery(e.target).closest(".template-tags-title").toggleClass("active")}},React.createElement("i",{className:"dashicons dashicons-arrow-down-alt2"}),React.createElement("span",null,wp.i18n.__("Available template tags","integrate-google-drive")),React.createElement("span",null,wp.i18n.__(" (click to insert)","integrate-google-drive"))),React.createElement("div",{className:"template-tags-list"},["%wc_order_id%","%wc_product_name%","%wc_order_date%","%wc_order_meta_{key}%","","%wc_product_id%","%wc_product_sku%","%wc_product_slug%","%wc_product_price%","%wc_product_sale_price%","%wc_product_regular_price%","%wc_product_tags%","%wc_product_type%","%wc_product_status%","%wc_product_meta_{key}%","","%user_login%","%user_email%","%first_name%","%last_name%","%display_name%","%user_id%","%user_role%","%user_meta_{key}%","%date%","%time%","%unique_id%"].map((function(e,a){return""===e?React.createElement("span",{className:"tag-break"}):React.createElement("span",{className:"tag",key:a,onClick:function(){var a;a=(a=null!==A?b.slice(0,A)+e+" "+b.slice(A):b+" "+e).trim(),n(nt(nt({},t),{},{wooCommerceUploadFolderNameTemplate:a}));var r=A+e.length+1;O.current.setSelectionRange(r,r)}},e)})))))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Upload Parent Folder","integrate-google-drive")," "),React.createElement("div",{className:"settings-field-content"},React.createElement("div",{className:"template-folder-wrap"},!!h&&React.createElement("div",{className:"template-folder"},React.createElement("div",{className:"template-folder-account"},igd.accounts[h.accountId]?igd.accounts[h.accountId].email:""),React.createElement("div",{className:"template-folder-item"},h.iconLink?React.createElement("img",{src:h.iconLink}):React.createElement("i",{className:"dashicons dashicons-category"}),React.createElement("span",{className:"template-folder-name"},h.name?h.name:g(h))),React.createElement("div",{className:"dashicons dashicons-no-alt",onClick:function(){return n(nt(nt({},t),{},{wooCommerceUploadParentFolder:null}))}},React.createElement("span",{className:"screen-reader-text"},wp.i18n.__("Remove","integrate-google-drive")))),React.createElement("button",{className:"igd-btn btn-primary",onClick:function(){Swal.fire({html:'<div id="igd-select-files" class="igd-module-builder-modal-wrap"></div>',showConfirmButton:!1,customClass:{container:"igd-module-builder-modal-container"},didOpen:function(e){var t=document.getElementById("igd-select-files");ReactDOM.render(React.createElement(ct,{initData:{folders:h?[h]:[]},onUpdate:function(e){var t=e.folders,a=void 0===t?[]:t;n((function(e){return nt(nt({},e),{},{wooCommerceUploadParentFolder:a[0]})})),Swal.close()},onClose:function(){return Swal.close()},isSelectFiles:!0,selectionType:"parent"}),t)},willClose:function(e){var t=document.getElementById("igd-select-files");ReactDOM.unmountComponentAtNode(t)}})}},React.createElement("i",{className:"dashicons dashicons-open-folder"}),React.createElement("span",null,h?wp.i18n.__("Change Parent Folder","integrate-google-drive"):wp.i18n.__("Select Parent Folder","integrate-google-drive")))),React.createElement("p",{className:"description"},wp.i18n.__("Select the parent folder where the new folders will be created with the uploaded files for each product.","integrate-google-drive"))))))))}function ft(e){return ft="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ft(e)}function vt(e){return function(e){if(Array.isArray(e))return wt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return wt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return wt(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function wt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function ht(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function yt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ht(Object(n),!0).forEach((function(t){bt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ht(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==ft(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!==ft(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ft(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _t=wp.components.FormToggle,Rt=window.ReactTooltip,Et=React.useEffect;function Nt(e){var t=e.data,n=e.setData,a=!!igd.isPro,r=t.integrations,o=void 0===r?[]:r,i=t.dokanDownload,l=void 0===i||i,c=t.dokanUpload,s=void 0!==c&&c,d=m();return Et((function(){d&&(l||s)&&n((function(e){return yt(yt({},e),{},{integrations:[].concat(vt(o),["woocommerce","dokan"])})}))}),[l,s]),React.createElement("div",{className:"igd-settings-body"},React.createElement("h3",{className:"igd-settings-body-title"},wp.i18n.__("Dokan Multi-vendor Settings","integrate-google-drive"),React.createElement("a",{href:"https://softlabbd.com/docs/how-to-allow-vendors-to-serve-sell-their-digital-download-files-directly-from-google-drive-in-dokan/",target:"_blank",className:"igd-btn btn-outline-info"},React.createElement("i",{className:"dashicons dashicons-editor-help"}),wp.i18n.__("Documentation","integrate-google-drive"))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Enable Downloads","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(_t,{"data-tip":wp.i18n.__("Pro Feature","integrate-google-drive"),checked:a&&l,onChange:function(){a?n(yt(yt({},t),{},{dokanDownload:!l})):u(wp.i18n.__("Upgrade to the Pro version to enable Dokan downloads.","integrate-google-drive"))}}),!a&&React.createElement(Rt,{className:"igd-tooltip",effect:"solid",place:"right",backgroundColor:"#FF9F10"}),React.createElement("p",{className:"description"},wp.i18n.__("Enable to allow vendors to use their Google Drive files as downloadable products.","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Enable Uploads","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(_t,{"data-tip":wp.i18n.__("Pro Feature","integrate-google-drive"),checked:a&&s,onChange:function(){a?n(yt(yt({},t),{},{dokanUpload:!s})):u(wp.i18n.__("Upgrade to the Pro version to enable Dokan uploads.","integrate-google-drive"))}}),!a&&React.createElement(Rt,{className:"igd-tooltip",effect:"solid",place:"right",backgroundColor:"#FF9F10"}),React.createElement("p",{className:"description"},wp.i18n.__("Enable to allow vendors to let customers upload files to their Google Drive.","integrate-google-drive")))))}function At(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,o,i,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=o.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return St(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return St(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function St(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var Ot=React,Pt=Ot.useState,kt=Ot.useEffect,Ct=Ot.useRef;function Ft(){var e=[{key:"accounts",title:wp.i18n.__("Accounts","integrate-google-drive")},{key:"advanced",title:wp.i18n.__("Advanced","integrate-google-drive")},{key:"appearance",title:wp.i18n.__("Appearance","integrate-google-drive")},{key:"privateFolders",title:wp.i18n.__("Private Folders","integrate-google-drive")},{key:"userAccess",title:wp.i18n.__("User Access","integrate-google-drive")},{key:"statistics",title:wp.i18n.__("Statistics","integrate-google-drive")},{key:"integrations",title:wp.i18n.__("Integrations","integrate-google-drive")},{key:"woocommerce",title:wp.i18n.__("WooCommerce","integrate-google-drive")},{key:"dokan",title:wp.i18n.__("Dokan","integrate-google-drive")},{key:"sync",title:wp.i18n.__("Synchronization","integrate-google-drive")},{key:"tools",title:wp.i18n.__("Tools","integrate-google-drive")}],t=At(Pt(!1),2),n=t[0],a=t[1],r=new URLSearchParams(window.location.search).get("tab"),o=At(Pt(r||localStorage.getItem("igd_settings_tab")||"accounts"),2),i=o[0],l=o[1],c=At(Pt(igd.settings),2),s=c[0],d=c[1],g=function(){var e;a(!0),wp.ajax.post("igd_save_settings",{settings:(e=JSON.stringify(s),btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,(function(e,t){return String.fromCharCode("0x"+t)}))))}).done((function(){Swal.fire({title:!1,text:wp.i18n.__("Settings saved successfully.","integrate-google-drive"),icon:"success",toast:!0,timer:3e3,timerProgressBar:!0,showConfirmButton:!1,position:"top-end",customClass:{container:"igd-swal save-settings-toast"}})})).fail((function(e){console.log(e)})).always((function(){a(!1)}))},u=m();kt((function(){u&&(localStorage.setItem("igd_settings_tab",i),igd.showReviewPopup&&setTimeout((function(){!function(){f.apply(this,arguments)}()}),5e3))}),[i]);var p=Ct(s);return kt((function(){if(u){var e=100,t=p.current;for(var n in s)if(s[n]!==t[n]){if(["ownApp","exportData","syncType"].includes(n))return;["workspaceDomain","email","clientID","workspaceDomain","customCss","nameTemplate","notificationEmail","emailReportRecipients","wooCommerceUploadFolderNameTemplate","customSyncInterval"].includes(n)&&(e=2e3),["customCss"].includes(n)&&(e=5e3);break}p.current=s;var a=setTimeout((function(){g()}),e);return function(){return clearTimeout(a)}}}),[s]),React.createElement("div",{className:"igd-settings"},React.createElement("div",{className:"igd-settings-header"},React.createElement("div",{className:"igd-settings-header-title"},React.createElement("img",{src:"".concat(igd.pluginUrl,"/assets/images/settings/settings-icon.svg"),alt:"Settings"}),React.createElement("span",null,wp.i18n.__("Settings","integrate-google-drive"))),React.createElement("div",{className:"igd-settings-header-action"},React.createElement("button",{type:"button",className:"igd-btn btn-primary",onClick:g},n?React.createElement("div",{className:"igd-spinner"}):React.createElement("i",{className:"dashicons dashicons-saved"}),React.createElement("span",null,n?wp.i18n.__("Saving...","integrate-google-drive"):wp.i18n.__("Save Changes","integrate-google-drive"))))),React.createElement("div",{className:"igd-settings-menu"},e.map((function(e){var t=e.key,n=e.title,a=t===i,r="".concat(igd.pluginUrl,"/assets/images/settings/menu/").concat(t,".svg");return React.createElement("div",{key:t,className:"igd-settings-menu-item ".concat(a?"active":""),onClick:function(){return l(t)}},React.createElement("img",{src:r,alt:n}),React.createElement("span",null,n))}))),"accounts"===i&&React.createElement(E,null),"advanced"===i&&React.createElement(k,{data:s,setData:d}),"appearance"===i&&React.createElement(Pe,{data:s,setData:d}),"sync"===i&&React.createElement(G,{data:s,setData:d}),"privateFolders"===i&&React.createElement(he,{data:s,setData:d}),"integrations"===i&&React.createElement($,{data:s,setData:d}),"woocommerce"===i&&React.createElement(pt,{data:s,setData:d}),"dokan"===i&&React.createElement(Nt,{data:s,setData:d}),"userAccess"===i&&React.createElement(He,{data:s,setData:d}),"statistics"===i&&React.createElement(se,{data:s,setData:d}),"tools"===i&&React.createElement(Ie,{data:s,setData:d,saveSettings:g}))}var jt=document.getElementById("igd-settings");jt&&ReactDOM.render(React.createElement(Ft,null),jt)})();
     1(()=>{"use strict";function e(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,o,i,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=o.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw r}}return l}}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return t(e,n);var a=Object.prototype.toString.call(e).slice(8,-1);"Object"===a&&e.constructor&&(a=e.constructor.name);if("Map"===a||"Set"===a)return Array.from(e);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return t(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var n=React,a=n.useEffect,r=n.useState;function o(t){var n=t.text,o=t.isDismissable,i=void 0===o||o,l=e(r(!0),2),c=l[0],s=l[1];return a((function(){c||ReactDOM.unmountComponentAtNode(document.getElementById("igd-pro-modal"))}),[c]),a((function(){var e=jQuery;function t(){var e=(new Date).getTime()+2.3*24*60*60*1e3;localStorage.setItem("igd_offer_time",e),n=e}i&&e(document).on("click",".igd-pro-modal-wrap",(function(t){e(t.target).hasClass("igd-pro-modal-wrap")&&s(!1)}));var n=localStorage.getItem("igd_offer_time");!n||isNaN(n)?t():n=parseInt(n),setInterval((function(){var a=(new Date).getTime(),r=n-a;r<0&&(t(),r=n-a);var o=Math.floor(r/864e5),i=Math.floor(r%864e5/36e5),l=Math.floor(r%36e5/6e4),c=Math.floor(r%6e4/1e3);e(".timer .days span:first").text(o),e(".timer .hours span:first").text(i),e(".timer .minutes span:first").text(l),e(".timer .seconds span:first").text(c)}),1e3)}),[]),c?React.createElement("div",{className:"igd-pro-modal-wrap"},React.createElement("div",{className:"igd-pro-modal"},React.createElement("span",{className:"igd-pro-modal-close",onClick:function(){return s(!1)}},"×"),React.createElement("img",{src:"".concat(igd.pluginUrl,"/assets/images/offer.svg"),alt:"Upgrade to Pro"}),React.createElement("div",{className:"discount"},React.createElement("span",{className:"discount-special"},wp.i18n.__("Special","igd-dark-mode")),React.createElement("span",{className:"discount-text"},wp.i18n.__("30% OFF","igd-dark-mode"))),React.createElement("h3",null,wp.i18n.__("Unlock PRO Feature","integrate-google-drive")),React.createElement("p",null,n),React.createElement("div",{className:"timer"},React.createElement("div",{className:"days"},React.createElement("span",null,"0"),React.createElement("span",null,"DAYS")),React.createElement("div",{className:"hours"},React.createElement("span",null,"0"),React.createElement("span",null,"HOURS")),React.createElement("div",{className:"minutes"},React.createElement("span",null,"0"),React.createElement("span",null,"MINUTES")),React.createElement("div",{className:"seconds"},React.createElement("span",null,"0"),React.createElement("span",null,"SECONDS"))),React.createElement("div",{className:"igd-pro-modal-actions"},React.createElement("a",{href:igd.upgradeUrl,className:"igd-btn btn-primary"},wp.i18n.__("Upgrade Now","integrate-google-drive"))))):null}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function l(){l=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",c=r.asyncIterator||"@@asyncIterator",s=r.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function g(e,t,n,r){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),l=new O(r||[]);return a(i,"_invoke",{value:E(e,n,l)}),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=g;var m={};function p(){}function f(){}function v(){}var w={};d(w,o,(function(){return this}));var h=Object.getPrototypeOf,y=h&&h(h(P([])));y&&y!==t&&n.call(y,o)&&(w=y);var b=v.prototype=p.prototype=Object.create(w);function _(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function R(e,t){function r(a,o,l,c){var s=u(e[a],e,o);if("throw"!==s.type){var d=s.arg,g=d.value;return g&&"object"==i(g)&&n.call(g,"__await")?t.resolve(g.__await).then((function(e){r("next",e,l,c)}),(function(e){r("throw",e,l,c)})):t.resolve(g).then((function(e){d.value=e,l(d)}),(function(e){return r("throw",e,l,c)}))}c(s.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return o=o?o.then(a,a):a()}})}function E(e,t,n){var a="suspendedStart";return function(r,o){if("executing"===a)throw new Error("Generator is already running");if("completed"===a){if("throw"===r)throw o;return k()}for(n.method=r,n.arg=o;;){var i=n.delegate;if(i){var l=N(i,n);if(l){if(l===m)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===a)throw a="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a="executing";var c=u(e,t,n);if("normal"===c.type){if(a=n.done?"completed":"suspendedYield",c.arg===m)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a="completed",n.method="throw",n.arg=c.arg)}}}function N(e,t){var n=t.method,a=e.iterator[n];if(void 0===a)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,N(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var r=u(a,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,m;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,m):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,m)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function P(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,r=function t(){for(;++a<e.length;)if(n.call(e,a))return t.value=e[a],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:k}}function k(){return{value:void 0,done:!0}}return f.prototype=v,a(b,"constructor",{value:v,configurable:!0}),a(v,"constructor",{value:f,configurable:!0}),f.displayName=d(v,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,d(e,s,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},_(R.prototype),d(R.prototype,c,(function(){return this})),e.AsyncIterator=R,e.async=function(t,n,a,r,o){void 0===o&&(o=Promise);var i=new R(g(t,n,a,r),o);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},_(b),d(b,s,"Generator"),d(b,o,(function(){return this})),d(b,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var a in t)n.push(a);return n.reverse(),function e(){for(;n.length;){var a=n.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},e.values=P,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(A),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function a(n,a){return i.type="throw",i.arg=e,t.next=n,a&&(t.method="next",t.arg=void 0),!!a}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],i=o.completion;if("root"===o.tryLoc)return a("end");if(o.tryLoc<=this.prev){var l=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(l&&c){if(this.prev<o.catchLoc)return a(o.catchLoc,!0);if(this.prev<o.finallyLoc)return a(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return a(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return a(o.finallyLoc)}}}},abrupt:function(e,t){for(var a=this.tryEntries.length-1;a>=0;--a){var r=this.tryEntries[a];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),A(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var r=a.arg;A(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:P(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),m}},e}function c(e,t,n,a,r,o,i){try{var l=e[o](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(a,r)}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,o,i,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=o.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function g(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:igd.activeAccount,n=t.root_id,a=t.id,r=[{accountId:a,id:n,name:wp.i18n.__("My Drive","integrate-google-drive"),type:"application/vnd.google-apps.folder",iconLink:"".concat(igd.pluginUrl,"/assets/images/my-drive.svg")},{accountId:a,id:"shared-drives",name:wp.i18n.__("Shared Drives","integrate-google-drive"),type:"application/vnd.google-apps.folder",iconLink:"".concat(igd.pluginUrl,"/assets/images/shared-drives.svg")},{accountId:a,id:"computers",name:wp.i18n.__("Computers","integrate-google-drive"),type:"application/vnd.google-apps.folder",iconLink:"".concat(igd.pluginUrl,"/assets/images/computers.svg")},{accountId:a,id:"shared",name:wp.i18n.__("Shared with me","integrate-google-drive"),type:"application/vnd.google-apps.folder",iconLink:"".concat(igd.pluginUrl,"/assets/images/shared.svg")},{accountId:a,id:"starred",name:wp.i18n.__("Starred","integrate-google-drive"),type:"application/vnd.google-apps.folder",iconLink:"".concat(igd.pluginUrl,"/assets/images/starred.svg")}];return e?r.find((function(t){return t.id==e})):r}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:wp.i18n.__("Upgrade to PRO to use this feature.","integrate-google-drive"),t=document.getElementById("igd-pro-modal");t||((t=document.createElement("div")).id="igd-pro-modal",document.body.appendChild(t)),ReactDOM.render(React.createElement(o,{text:e}),t)}function m(){var e=s(React.useState(!1),2),t=e[0],n=e[1];return React.useEffect((function(){n(!0)}),[]),t}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"550",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"600",n=window.screenLeft||window.screenX,a=window.screenTop||window.screenY,r=n+(window.innerWidth||document.documentElement.clientWidth||screen.width)/2-e/2,o=a+(window.innerHeight||document.documentElement.clientHeight||screen.height)/2-t/2,i=window.open(igd.authUrl,"newwindow","width=".concat(e,",height=").concat(t,",left=").concat(r,",top=").concat(o));i.focus&&i.focus()}function f(){var e;return e=l().mark((function e(){var t,n,a,r;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=localStorage.getItem("igd_last_review_popup"),n=Number(localStorage.getItem("igd_remind_in_days"))||2,a=(new Date).getTime(),r=24*n*60*60*1e3,!(t&&a-t<=r)){e.next=6;break}return e.abrupt("return");case 6:return localStorage.setItem("igd_last_review_popup",(new Date).getTime()),e.next=9,Swal.fire({title:wp.i18n.__("Are You Enjoying This Plugin?","integrate-google-drive"),text:wp.i18n.__("Your feedback helps us create a better experience for you.","integrate-google-drive"),icon:"question",showDenyButton:!0,confirmButtonText:wp.i18n.__("Yes, I'm enjoying it","integrate-google-drive"),denyButtonText:wp.i18n.__("Not really","integrate-google-drive"),reverseButtons:!0,allowOutsideClick:!1,allowEscapeKey:!1,showCloseButton:!0,customClass:{container:"igd-swal igd-review-swal"}}).then((function(e){e.isConfirmed?Swal.fire({title:wp.i18n.__("We're glad to hear that!","integrate-google-drive"),text:wp.i18n.__("Would you mind taking a few minutes to rate us and write a review?","integrate-google-drive"),icon:"success",showDenyButton:!0,confirmButtonText:wp.i18n.__("Sure, I'd be happy to","integrate-google-drive"),denyButtonText:wp.i18n.__("Maybe later","integrate-google-drive"),reverseButtons:!0,allowOutsideClick:!1,allowEscapeKey:!1,customClass:{container:"igd-swal igd-review-swal"}}).then((function(e){e.isConfirmed?(window.open("https://wordpress.org/support/plugin/integrate-google-drive/reviews/?filter=5#new-post","_blank"),wp.ajax.post("igd_hide_review_notice")):e.isDenied&&localStorage.setItem("igd_remind_in_days",10)})):e.isDenied&&Swal.fire({title:wp.i18n.__("Sorry to hear that!","integrate-google-drive"),text:wp.i18n.__("Could you please provide us with some feedback to help us improve?","integrate-google-drive"),input:"textarea",inputPlaceholder:wp.i18n.__("Enter your feedback here...","integrate-google-drive"),showCancelButton:!1,confirmButtonText:wp.i18n.__("Submit","integrate-google-drive"),showLoaderOnConfirm:!0,showCloseButton:!0,allowOutsideClick:!1,allowEscapeKey:!1,customClass:{container:"igd-swal igd-review-swal"}}).then((function(e){e.isConfirmed?(Swal.fire({title:wp.i18n.__("Thank you for your feedback!","integrate-google-drive"),text:wp.i18n.__("We'll use your feedback to improve our plugin.","integrate-google-drive"),icon:"info",customClass:{container:"igd-swal igd-review-swal"}}),wp.ajax.post("igd_review_feedback",{feedback:e.value})):e.isDismissed&&wp.ajax.post("igd_hide_review_notice")}))}));case 9:e.sent;case 10:case"end":return e.stop()}}),e)})),f=function(){var t=this,n=arguments;return new Promise((function(a,r){var o=e.apply(t,n);function i(e){c(o,a,r,i,l,"next",e)}function l(e){c(o,a,r,i,l,"throw",e)}i(void 0)}))},f.apply(this,arguments)}function v(e){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function h(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==v(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!==v(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===v(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,o,i,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=o.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return b(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return b(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var _=React.useState,R=window.ReactTooltip;function E(){var e=y(_(igd.accounts),2),t=e[0],n=e[1],a=y(_(!1),2),r=a[0],o=a[1],i=igd.isPro;return React.createElement("div",{className:"igd-settings-body"},React.createElement("span",{className:"igd-settings-body-title"},wp.i18n.__("Google Accounts","integrate-google-drive")),Object.keys(t).length?Object.keys(t).map((function(e){var a=t[e],r=a.id,o=a.name,i=a.photo,l=a.email,c=a.lost;return React.createElement("div",{key:e,className:"igd-account-item"},React.createElement("img",{referrerPolicy:"no-referrer",onError:function(e){return function(e,t){e.onerror=null;var n="https://www.gravatar.com/avatar/"+t+"?s=200&d=mm";e.src===n?e.src="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD//gA7Q1JFQVRPUjogZ2QtanBlZyB2MS4wICh1c2luZyBJSkcgSlBFRyB2NjIpLCBxdWFsaXR5ID0gOTAK/9sAQwADAgIDAgIDAwMDBAMDBAUIBQUEBAUKBwcGCAwKDAwLCgsLDQ4SEA0OEQ4LCxAWEBETFBUVFQwPFxgWFBgSFBUU/9sAQwEDBAQFBAUJBQUJFA0LDRQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQU/8AAEQgAyADIAwEiAAIRAQMRAf/EAB8AAAEFAQEBAQEBAAAAAAAAAAABAgMEBQYHCAkKC//EALUQAAIBAwMCBAMFBQQEAAABfQECAwAEEQUSITFBBhNRYQcicRQygZGhCCNCscEVUtHwJDNicoIJChYXGBkaJSYnKCkqNDU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6g4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2drh4uPk5ebn6Onq8fLz9PX29/j5+v/EAB8BAAMBAQEBAQEBAQEAAAAAAAABAgMEBQYHCAkKC//EALURAAIBAgQEAwQHBQQEAAECdwABAgMRBAUhMQYSQVEHYXETIjKBCBRCkaGxwQkjM1LwFWJy0QoWJDThJfEXGBkaJicoKSo1Njc4OTpDREVGR0hJSlNUVVZXWFlaY2RlZmdoaWpzdHV2d3h5eoKDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uLj5OXm5+jp6vLz9PX29/j5+v/aAAwDAQACEQMRAD8A+t6KMUtACZooxRQAUZpaSgAozRiloASijFGKADNFLRigBM0UUtACUUtJigAopaKAE5oopaAEo5paKAEoopaAE5opaKAEooooAWkoooAMUUUUAFFFFABRRRQAUUUUAGKKKKACiiigApaSigAooooAWkoooAKWkooAKKKKAClpKWgBKKKKACiiloASiiigAop8UTzyLHGrSOxwqqMkmvTPCnwpXYl1rJJY8i0Q8D/eP9B+dAHnVjpl3qcvl2ltLcv6RoWx9fSumsvhXr10AZI4bUH/AJ7Sc/kua9ltLO3sIRDbQxwRDokahR+QqagDyL/hTmp7f+P20z6Zb/CqV58KddtgTGkF0PSKTB/8exXtVFAHzff6Re6VJsvLWW2bt5ikA/Q96qV9LXNrDeRGKeJJ426pIoYH8DXnvir4UxTK9zox8qXqbVj8p/3T2+h/SgDyujFSTwSWszwzRtHKh2sjDBBqOgApaSigAoo7UUAFFFFAC0UlFABRRiigAooooAKKKKAClUFmAAJJ4AApK7r4V+GxqmqNqE6hoLQjaD/FIen5dfyoA634f+B00G2W9vEDajIMgN/yxB7D39fyrtKKSgApaKKACkopaACikxRQByXjzwTF4jtGubdAmpRD5WHHmD+6f6GvFJEeJ2R1KOpwVYYIPpX0zXkvxY8NLZXseqwKFiuDslAHR8dfxA/T3oA8+oxR0ooAKKMUYoAMUUUYoAKKMUUAFGaKM0AFFFFABR3oooAK978CaUNJ8L2MW3bJIgmf/ebn9BgfhXhFtF59zFGP43C/ma+lY0EaKi8KoAFADqKKKAEpaSloAKSlpKACloooASsjxdpY1nw5fW23LmMsn+8OR+orXpTyKAPmSlqzq1uLTVLyAcCKZ0GfZiKq0AFHNFFABS0mKKACiiigAoopaAEo60UUAFFFHegCxp8giv7Zz0SVSfzFfSdfMoPOa+ivD+oDVdEsbsHPmxKT7HHI/PNAGhSUtFABRRRQAlFLRQAlFGaWgBKKWqup3y6bp1zdv92GNnP4DNAHz74gkEuvalIOjXMpH4uaoU53MjszcliSTSUAJRS0lABRS0UAJiiiigAooxRQAUUUfpQAUUUUAFerfCLXlms59KlceZEfMhB7qeoH0PP415TirekapPouowXts22WJsj0I7g+xFAH0hSdqzvD+u2/iLTYry2PDDDoTyjdwa0aAClpOlFAC0lLSUALRSUv4UAJXBfFrXls9Jj02Jx51yQzgdRGP8Tj8jXYa1rFtoWnS3l022NBwO7HsB714Drusz6/qk97cH55DwoPCr2AoAodaKMUUAFFFFABRRRQAUUdaKACiiigAo6UUUAFFFFABiiiigDY8M+J7vwvfefbNujbiWFj8rj/AB969q8O+KrDxNbCS1l2ygfPA5w6fh3HvXkfhz4f6p4hCyiMWtqf+W8wxkf7I6n+XvXpnh74d6X4fkjnCvc3aciaQ4wfYDgfrQB1FFFLQAn50UtJQAtZWv8AiWw8N2pmu5sMR8kSnLv9B/WtWuY8R/D3TPEUjzsJLe7brNG2cn3B4/lQB5P4q8WXfiq88yb93bpnyoFPCj+p96w66bxH8P8AVPDwaUoLq0H/AC3hGcf7w6j+XvXMmgAooooAMUUGjNABRiiigAoozRQAUUUUAFFFFABRRUkEEl1OkMKNJK7BVRRkkntQAW9vLdzJDDG0srkKqKMkmvWPB3wyg00Jd6qq3F31WA8pH9fU/pWl4G8DxeGrYT3CrJqTj5n6iMf3V/qa6ygAAAAAHFHaiigA6UUUUALSUUtACUClpM0ABGRgjg1wPjH4ZQ6isl3pSrb3fVoOiSfT0P6V39FAHzRcW8tpO8M0bRSodrIwwQajr27xz4Hh8S2xnt1WPUox8r9BIP7rf0NeKzwSWs8kMyNHKjFWRhggjtQBHRRRQAUUUUAFFFFABRRRQAUUUdaACvWvhh4PFjbrq12n+kSr+4Vh9xD/ABfU/wAvrXF+AfDX/CR64gkUmzt8STeh9F/E/pmvdAAowOAOMUAKaSiloAKKTNHagApaSjNAC0lAooAMUtJmgUAFGMUUZ4oAWvPvif4PF9bPq9omLiEfv0UffQfxfUfy+legZoIDAg8g8YoA+ZaK6Xx94a/4RzW3Ea4s7jMkJ7D1X8D+mK5qgAooooAKKKKACiiigAoorZ8IaR/bniKytSu6Ivvk/wB0cn+WPxoA9c+HugjQ/DkO9dtzcDzpT9eg/AY/WumpOg7YooAXrSUtJQAUtJS0AJRRRQAuaKKSgBaKSloAKKSigBc0UUlAHNfELQRrvhyfYu64tx50R+nUfiM/jivCq+miOtfP3i/SP7D8RXtqBtjD74/91uR/PH4UAY1FFFABRRRQAUUUd6ACvSPg3p2+6v74j7irCp+pyf5D8683r2n4UWf2bwmsuMGeZ5Py+X/2WgDsqDQaKACij8KSgBaO1JS/hQAUUlFACikpfwooAM0Cij8KAEpe1FFABRRRQAV5Z8ZNO2XWn3yj76GFj9OR/M/lXqdcb8VrMXPhN5MZMEySD8fl/wDZqAPFqKKKACiiigAooooAK9+8DweR4R0tfWEP+fP9aKKAN2iiigApKKKACloooASloooAKSiigApaKKAEooooAXFJRRQAVh+OYPtHhLVF64hL/wDfPP8ASiigDwGiiigAooooA//Z":e.src=n}(e.currentTarget,l)},src:i}),React.createElement("div",{className:"igd-account-item-info"},React.createElement("span",{className:"account-name"},o),React.createElement("span",{className:"account-email"},l)),React.createElement("div",{className:"igd-account-item-action"},c&&React.createElement("button",{className:"igd-btn btn-primary",onClick:p},React.createElement("i",{className:"dashicons dashicons-update"}),React.createElement("span",null,wp.i18n.__("Refresh","integrate-google-drive"))),React.createElement("button",{"data-tip":wp.i18n.__("Remove account","integrate-google-drive"),"data-for":"remove-account",className:"igd-btn btn-danger",onClick:function(){Swal.fire({title:wp.i18n.__("Are you sure?","integrate-google-drive"),text:wp.i18n.__("You won't be able to revert this!","integrate-google-drive"),icon:"warning",showCancelButton:!0,confirmButtonText:wp.i18n.__("Yes, remove it!","integrate-google-drive"),reverseButtons:!0,showLoaderOnConfirm:!0,customClass:{container:"igd-swal"},preConfirm:function(){return wp.ajax.post("igd_delete_account",{id:r})}}).then((function(a){a.value&&(delete t[e],n(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t)),Swal.fire({title:wp.i18n.__("Removed!","integrate-google-drive"),text:wp.i18n.__("Account has been removed.","integrate-google-drive"),icon:"success",showConfirmButton:!1,timer:1500,toast:!0}))}))}},React.createElement("i",{className:"dashicons dashicons-trash"}),React.createElement("span",null,wp.i18n.__("Remove","integrate-google-drive"))),React.createElement(R,{className:"igd-tooltip",id:"remove-account",place:"top",type:"dark",effect:"solid"})))})):React.createElement("div",{className:"no-account-placeholder"},React.createElement("span",{className:"placeholder-heading"},wp.i18n.__("You didn't link any Google account.","integrate-google-drive")),React.createElement("span",{className:"placeholder-desc"},wp.i18n.__("Link a Google account to continue.","integrate-google-drive"))),React.createElement("button",{"data-tip":wp.i18n.__("Multiple Accounts - PRO","integrate-google-drive"),"data-for":"addAccountPromo",className:"igd-btn add-account-btn",onClick:function(){i||!Object.keys(t).length?p():u(wp.i18n.__("Upgrade to PRO to add multiple accounts.","integrate-google-drive"))}},React.createElement("img",{src:"".concat(igd.pluginUrl,"/assets/images/google-icon.png")}),React.createElement("span",null,wp.i18n.__("Add new account","integrate-google-drive")),!i&&!!Object.keys(t).length&&React.createElement(R,{id:"addAccountPromo",effect:"solid",place:"right",backgroundColor:"#ff9966",className:"igd-tooltip"})),React.createElement("div",{className:"privacy-text-wrap"},React.createElement("div",{className:"privacy-text-btn",onClick:function(){return o(!r)}},React.createElement("img",{src:"".concat(igd.pluginUrl,"/assets/images/settings/privacy.svg"),alt:"Privacy"}),React.createElement("span",null,wp.i18n.__("See what happens with your data when you authorize?","integrate-google-drive")),React.createElement("i",{className:"dashicons dashicons-arrow-down-alt2"})),r&&React.createElement("div",{className:"privacy-text"},React.createElement("h4",null,wp.i18n.__("Requested scopes and justification","integrate-google-drive")),React.createElement("p",null,wp.i18n.__("In order to display your Google Drive cloud files, you have to authorize it with your Google account.\n\n                            The authorization will ask you to grant the application the https://www.googleapis.com/auth/drive scope.\n\n                            The scope is needed to allow the plugin to see, edit, create, and delete all of your Google\n                            Drive files and files that are shared with you.","integrate-google-drive")),React.createElement("h4",null,wp.i18n.__("Information about the data","integrate-google-drive")),React.createElement("p",null,wp.i18n.__("The authorization tokens will be stored, encrypted, on your server and is not accessible by any third party.\n                            When you use the Application, all communications are strictly between your server and the\n                            cloud storage service servers. We do not collect and do not have access to your personal\n                            data.","integrate-google-drive")))))}function N(e){return N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},N(e)}function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach((function(t){O(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function O(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==N(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!==N(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===N(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var P=wp.components.FormToggle;function k(e){var t=e.data,n=e.setData,a=igd.isPro,r=t.rememberLastFolder,o=void 0===r||r,i=t.ownApp,l=t.clientID,c=t.clientSecret,s=t.deleteData,d=t.workspaceDomain,g=t.manageSharing,m=void 0===g||g,p="".concat(igd.adminUrl,"?action=integrate-google-drive-authorization");return React.createElement("div",{className:"igd-settings-body"},React.createElement("h3",{className:"igd-settings-body-title"},wp.i18n.__("Advanced Settings","integrate-google-drive")),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Remember Last Opened Folder","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(P,{checked:o,onChange:function(){return n(A(A({},t),{},{rememberLastFolder:!o}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Enable this to load the last opened folder when a visitor revisit a File Browser or Gallery module.","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Google Workspace Domain","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement("input",{type:"text",value:d,onChange:function(e){return n(A(A({},t),{},{workspaceDomain:e.target.value}))},placeholder:wp.i18n.__("Google Workspace Domain","integrate-google-drive")}),React.createElement("p",{className:"description"},wp.i18n.__("If you are using Google Workspace  and you want to share your documents ONLY with users having an account in your Google Workspace Domain, please insert your domain.","integrate-google-drive")),React.createElement("div",{className:"igd-notice igd-notice-info"},React.createElement("p",{className:"igd-notice-content"},wp.i18n.__("If you want to share your documents with to the public, please leave this field empty.","integrate-google-drive"))))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Manage Sharing Permissions","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(P,{checked:m,onChange:function(){return n(A(A({},t),{},{manageSharing:!m}))}}),React.createElement("p",{className:"description"},wp.i18n.__("By default, the plugin will manage the sharing permissions of the documents. If you want to manage the sharing permissions manually, please disable this option.","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Link Own Google App","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(P,{"data-tip":wp.i18n.__("PRO Feature","integrate-google-drive"),checked:i&&a,onChange:function(){a?n(A(A({},t),{},{ownApp:!i})):u(wp.i18n.__("Upgrade to PRO to use your own Google App.","integrate-google-drive"))}}),!a&&React.createElement(ReactTooltip,{effect:"solid",place:"right",backgroundColor:"#ff9966",className:"igd-tooltip"}),React.createElement("p",{className:"description"},wp.i18n.__("Use your own Google app API instead of using the plugin default app API.","integrate-google-drive"),React.createElement("a",{href:"https://softlabbd.com/docs/how-to-link-your-own-google-app-with-the-plugin/",target:"_blank",className:"igd-btn btn-outline-info"},React.createElement("i",{className:"dashicons dashicons-editor-help"}),wp.i18n.__("Documentation","integrate-google-drive"))),(!a||i)&&React.createElement("div",{className:"settings-field-sub"},React.createElement("div",{className:"settings-field field-own-app"},React.createElement("div",{className:"igd-notice igd-notice-warning own-google-app-warning"},React.createElement("p",{className:"igd-notice-content"},wp.i18n.__("Using your own Google App is an optional option. For an easy setup you can just use the default App of the plugin itself. The advantage of using your own app is limited. If you decided to create your own Google App anyway, please enter your app Client ID & Secret key in the below settings.","integrate-google-drive")),React.createElement("br",null),React.createElement("p",{className:"igd-notice-content"},"On the ",React.createElement("a",{target:"_blank",href:"https://softlabbd.com/docs/how-to-link-your-own-google-app-with-the-plugin/"},"Documentation")," page you can find how you can create your own Google App.")),React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("App Client ID","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement("input",{type:"text",value:l,onChange:function(e){return n(A(A({},t),{},{clientID:e.target.value}))},placeholder:wp.i18n.__("App Client ID","integrate-google-drive")}),React.createElement("p",{className:"description"},wp.i18n.__("Insert you app client ID.","integrate-google-drive"))),React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("App Secret Key","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement("input",{type:"text",value:c,onChange:function(e){return n(A(A({},t),{},{clientSecret:e.target.value}))},placeholder:wp.i18n.__("App Secret Key","integrate-google-drive")}),React.createElement("p",{className:"description"},wp.i18n.__("Insert you app secret key.","integrate-google-drive"))),React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Redirect URI","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement("input",{type:"text",value:p,readOnly:!0,onClick:function(e){e.target.select(),e.target.setSelectionRange(0,99999),navigator.clipboard.writeText(e.target.value),Swal.fire({title:wp.i18n.__("Copied to clipboard.","integrate-google-drive"),icon:"success",timer:1500,toast:!0,position:"top-end",showConfirmButton:!1,timerProgressBar:!0})}}),React.createElement("p",{className:"description"},wp.i18n.__("Copy the above redirect URI and set to your own google app.","integrate-google-drive"))))))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Delete Data on Uninstall","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(P,{checked:s,onChange:function(){return n(A(A({},t),{},{deleteData:!s}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Delete the plugin data (settings, cache, accounts) on the uninstallation.","integrate-google-drive")))))}function C(e){return C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},C(e)}function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function F(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j(Object(n),!0).forEach((function(t){D(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function D(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==C(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!==C(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===C(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var U=wp.components,B=U.SelectControl,x=U.FormToggle,I=U.ButtonGroup,L=U.Button,T=window,K=T.ModuleBuilderModal,M=T.ReactTooltip;function G(e){var t=e.data,n=e.setData,a=t.autoSync,r=t.syncInterval,o=void 0===r?"never":r,i=t.customSyncInterval,l=t.syncType,c=void 0===l?"all":l,s=t.syncFolders,d=void 0===s?[]:s;return React.createElement("div",{className:"igd-settings-body"},React.createElement("h3",{className:"igd-settings-body-title"},wp.i18n.__("Auto Synchronization","integrate-google-drive"),React.createElement("a",{href:"https://softlabbd.com/docs/how-to-enable-auto-synchronization/",target:"_blank",className:"igd-btn btn-outline-info"},React.createElement("i",{className:"dashicons dashicons-editor-help"}),wp.i18n.__("Documentation","integrate-google-drive"))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Enable Auto Synchronization","integrate-google-drive")," "),React.createElement("div",{className:"settings-field-content"},React.createElement(x,{"data-tip":wp.i18n.__("PRO Feature","integrate-google-drive"),checked:a&&igd.isPro,onChange:function(){igd.isPro?n(F(F({},t),{},{autoSync:!a})):u(wp.i18n.__("Upgrade to PRO to enable auto synchronization.","integrate-google-drive"))}}),!igd.isPro&&React.createElement(M,{effect:"solid",place:"right",backgroundColor:"#ff9966",className:"igd-tooltip"}),React.createElement("span",{className:"description"},wp.i18n.__("Enable/ disable the local cache file auto synchronization with the cloud files.","integrate-google-drive")))),(a||!igd.isPro)&&React.createElement(React.Fragment,null,React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Synchronization Interval","integrate-google-drive")," "),React.createElement("div",{className:"settings-field-content"},React.createElement(B,{"data-tip":wp.i18n.__("PRO Feature","integrate-google-drive"),value:o,options:[{label:"Never",value:"never"},{label:"1 Hour",value:3600},{label:"6 Hours",value:21600},{label:"24 Hours",value:86400},{label:"2 Days",value:172800},{label:"3 Days",value:259200},{label:"7 Days",value:604800},{label:"Custom",value:"custom"}],onChange:function(e){igd.isPro?n(F(F({},t),{},{syncInterval:e})):u(wp.i18n.__("Upgrade to PRO to enable auto synchronization.","integrate-google-drive"))}}),!igd.isPro&&React.createElement(M,{effect:"solid",place:"right",backgroundColor:"#ff9966",className:"igd-tooltip"}),React.createElement("span",{className:"description"},wp.i18n.__("Select the automatic cloud files synchronization interval.","integrate-google-drive")))),"custom"===o&&React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Custom Sync Interval","integrate-google-drive")," "),React.createElement("div",{className:"settings-field-content"},React.createElement("input",{type:"number",value:i,onChange:function(e){return n(F(F({},t),{},{customSyncInterval:e.target.value}))},min:60}),React.createElement("p",{className:"description"},wp.i18n.__("Enter the custom synchronization interval in seconds (min: 60 seconds).","integrate-google-drive")),React.createElement("p",{className:"description"},wp.i18n.__("e.g: 3600 = 1 hour, 1800 = 30 minutes.","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Synchronization Type","integrate-google-drive")," "),React.createElement("div",{className:"settings-field-content"},React.createElement(I,{"data-tip":"PRO Feature"},React.createElement(L,{isPrimary:"all"===c,isSecondary:"all"!==c,onClick:function(){igd.isPro?n(F(F({},t),{},{syncType:"all"})):u(wp.i18n.__("Upgrade to PRO to enable auto synchronization.","integrate-google-drive"))}},React.createElement("span",null,wp.i18n.__("All Folders","integrate-google-drive"))),React.createElement(L,{isPrimary:"selected"===c,isSecondary:"selected"!==c,onClick:function(){igd.isPro?n(F(F({},t),{},{syncType:"selected"})):u(wp.i18n.__("Upgrade to PRO to enable auto synchronization.","integrate-google-drive"))}},React.createElement("span",null,wp.i18n.__("Specific Selected Folders","integrate-google-drive")))),!igd.isPro&&React.createElement(M,{effect:"solid",place:"right",backgroundColor:"#ff9966",className:"igd-tooltip"}),React.createElement("p",{className:"description"},wp.i18n.__("Select the synchronization type.","integrate-google-drive")),React.createElement("div",{className:"igd-notice igd-notice-info"},React.createElement("div",{className:"igd-notice-content"},React.createElement("div",null,React.createElement("strong",null,wp.i18n.__("All Folders","integrate-google-drive"))," - ",wp.i18n.__("All the cached folders will be synchronized with the cloud.","integrate-google-drive")),React.createElement("div",null,React.createElement("strong",null,wp.i18n.__("Specific Folders","integrate-google-drive"))," - ",wp.i18n.__("Syncs only chosen folders with the cloud, helpful for large sets of folders when only a few need synchronization.","integrate-google-drive")))),"selected"===c&&React.createElement("div",{className:"settings-field-sub"},React.createElement("div",{className:"settings-field sync-folders"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Select Folders","integrate-google-drive")," "),React.createElement("div",{className:"settings-field-content"},React.createElement("div",{className:"template-folder-wrap"},!!d.length&&d.map((function(e,a){var r=e.id,o=e.name,i=e.iconLink;return React.createElement("div",{className:"template-folder"},React.createElement("div",{className:"template-folder-item"},i?React.createElement("img",{src:i}):React.createElement("i",{className:"dashicons dashicons-category"}),React.createElement("span",{className:"template-folder-name"},o),React.createElement("div",{className:"dashicons dashicons-no-alt",onClick:function(){var e=d.filter((function(e){return e.id!==r}));n(F(F({},t),{},{syncFolders:e}))}})))})),React.createElement("button",{"data-tip":"PRO Feature",className:"igd-btn btn-primary",onClick:function(){igd.isPro?Swal.fire({html:'<div id="igd-select-files" class="igd-module-builder-modal-wrap"></div>',showConfirmButton:!1,customClass:{container:"igd-module-builder-modal-container"},didOpen:function(e){var t=document.getElementById("igd-select-files");ReactDOM.render(React.createElement(K,{initData:{folders:d},onUpdate:function(e){var t=e.folders,a=void 0===t?[]:t;n((function(e){return F(F({},e),{},{syncFolders:a.map((function(e){return{id:e.id,name:e.name,iconLink:e.iconLink,accountId:e.accountId}}))})})),Swal.close()},onClose:function(){return Swal.close()},isSelectFiles:!0,selectionType:"folders"}),t)},willClose:function(e){var t=document.getElementById("igd-select-files");ReactDOM.unmountComponentAtNode(t)}}):u(wp.i18n.__("Upgrade to PRO to enable auto synchronization.","integrate-google-drive"))}},React.createElement("i",{className:"dashicons dashicons-open-folder"}),React.createElement("span",null,d.length?wp.i18n.__("Update Folders","integrate-google-drive"):wp.i18n.__("Select Folders","integrate-google-drive"))),!igd.isPro&&React.createElement(M,{effect:"solid",place:"right",backgroundColor:"#FF9F10",className:"igd-tooltip"})),React.createElement("p",{className:"description"},wp.i18n.__("Select the folders to be synchronized with the cloud files.","integrate-google-drive")))))))))}function Q(e){return Q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Q(e)}function W(e){return function(e){if(Array.isArray(e))return z(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return z(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return z(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function z(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function J(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?q(Object(n),!0).forEach((function(t){V(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function V(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Q(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!==Q(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Q(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var H=wp.components,X=H.FormToggle,Y=H.CheckboxControl,Z=window.ReactTooltip;function $(e){var t=e.data,n=e.setData,a=t.integrations,r=void 0===a?["classic-editor","gutenberg-editor","elementor","divi","cf7"]:a,o=t.channels,i=void 0===o?["shareLink","embedCode","email"]:o,l=[{key:"classic-editor",title:wp.i18n.__("Classic Editor","integrate-google-drive"),description:wp.i18n.__("Add Google Drive module, embed documents and insert file view links and download links using the Google Drive button on the classic editor.","integrate-google-drive"),docLink:"https://softlabbd.com/docs/how-to-use-integrate-google-drive-with-classic-editor/"},{key:"gutenberg-editor",title:wp.i18n.__("Gutenberg Editor","integrate-google-drive"),description:wp.i18n.__("Add Google Drive modules, embed documents and insert file view links and download links using the Google Drive Gutenberg editor blocks","integrate-google-drive"),docLink:"https://softlabbd.com/docs/how-to-use-integrate-google-drive-with-gutenberg-editor/"},{key:"elementor",title:wp.i18n.__("Elementor","integrate-google-drive"),description:wp.i18n.__("Add Google Drive modules, embed documents and insert file view links and download links using the Google Drive Elementor widgets.","integrate-google-drive"),docLink:"https://softlabbd.com/docs/how-to-use-integrate-google-drive-with-elementor-editor/"},{key:"divi",title:wp.i18n.__("Divi","integrate-google-drive"),description:wp.i18n.__("Add Google Drive modules, embed documents and insert file view links and download links using the Google Drive Divi page builder modules.","integrate-google-drive"),docLink:"https://softlabbd.com/docs/how-to-use-integrate-google-drive-with-divi/"},{key:"acf",title:wp.i18n.__("Advanced Custom Fields","integrate-google-drive"),description:wp.i18n.__("Allows you to select Google Drive files and folders using ACF field and display in theme template file.","integrate-google-drive"),docLink:"https://softlabbd.com/docs/how-to-use-integrate-google-drive-with-advanced-custom-fields/",isPro:!0},{key:"woocommerce",title:wp.i18n.__("WooCommerce","integrate-google-drive"),description:wp.i18n.__("Allows you to serve your Google Drive files as downloadable files and let customer upload files to Google Drive on checkout.","integrate-google-drive"),docLink:"https://softlabbd.com/docs/how-to-allow-customers-to-upload-files-in-woocommerce-and-store-on-google-drive/",isPro:!0},{key:"dokan",title:wp.i18n.__("Dokan","integrate-google-drive"),description:wp.i18n.__("Allows vendors to serve their Google Drive files as downloadable files and let customer upload files to Google Drive on checkout.","integrate-google-drive"),docLink:"https://softlabbd.com/docs/how-to-allow-vendors-to-serve-sell-their-digital-download-files-directly-from-google-drive-in-dokan/",isPro:!0},{key:"edd",title:wp.i18n.__("Easy Digital Downloads","integrate-google-drive"),description:wp.i18n.__("Allows you to serve your Easy Digital Downloads files directly from Google Drive.","integrate-google-drive"),docLink:"https://softlabbd.com/docs/how-to-use-integrate-google-drive-with-easy-digital-downloads/",isPro:!0},{key:"tutor",title:wp.i18n.__("Tutor LMS","integrate-google-drive"),description:wp.i18n.__("Allows Instructors to link their Google accounts for efficient and independent course material management.","integrate-google-drive"),docLink:"https://softlabbd.com/docs/how-to-integrate-google-drive-with-the-tutor-lms-plugin/",isPro:!0},{key:"cf7",title:wp.i18n.__("Contact Form 7","integrate-google-drive"),description:wp.i18n.__("Allows you to upload your files directly to Google Drive from your Contact Form 7 upload field.","integrate-google-drive"),docLink:"https://softlabbd.com/docs/how-to-use-google-drive-uploader-field-with-contact-form-7/"},{key:"wpforms",title:wp.i18n.__("WPForms","integrate-google-drive"),description:wp.i18n.__("Allows you to upload your files directly to Google Drive from your WPForms upload field.","integrate-google-drive"),docLink:"https://softlabbd.com/docs/how-to-use-google-drive-uploader-field-with-wpforms/",isPro:!0},{key:"gravityforms",title:wp.i18n.__("Gravity Forms","integrate-google-drive"),description:wp.i18n.__("Allows you to upload your files directly to Google Drive from your Gravity Forms upload field.","integrate-google-drive"),docLink:"https://softlabbd.com/docs/how-to-use-google-drive-uploader-field-with-gravity-forms/",isPro:!0},{key:"fluentforms",title:wp.i18n.__("Fluent Forms","integrate-google-drive"),description:wp.i18n.__("Allows you to upload your files directly to Google Drive from your Fluent Forms upload field.","integrate-google-drive"),docLink:"https://softlabbd.com/docs/how-to-use-google-drive-uploader-field-with-fluent-forms/",isPro:!0},{key:"formidableforms",title:wp.i18n.__("Formidable Forms","integrate-google-drive"),description:wp.i18n.__("Allows you to upload your files directly to Google Drive from your Formidable Forms upload field.","integrate-google-drive"),docLink:"https://softlabbd.com/docs/how-to-use-google-drive-uploader-field-with-formidable-forms/",isPro:!0},{key:"ninjaforms",title:wp.i18n.__("Ninja Forms","integrate-google-drive"),description:wp.i18n.__("Allows effortless file uploads from Ninja Forms to Google Drive for quick and efficient storage.","integrate-google-drive"),docLink:"https://softlabbd.com/docs/how-to-use-google-drive-uploader-field-with-ninja-forms/",isPro:!0},{key:"elementor-form",title:wp.i18n.__("Elementor Form","integrate-google-drive"),description:wp.i18n.__("Allows effortless file uploads from Elementor PRO Form widget to Google Drive for quick and efficient storage.","integrate-google-drive"),docLink:"https://softlabbd.com/docs/upload-files-from-elementor-form-to-google-drive",isPro:!0},{key:"metform",title:wp.i18n.__("MetForm","integrate-google-drive"),description:wp.i18n.__("Allows effortless file uploads from MetForm to Google Drive for quick and efficient storage.","integrate-google-drive"),docLink:"https://softlabbd.com/docs/upload-files-from-metform-to-google-drive/",isPro:!0}];igd.isPro||l.sort((function(e,t){return e.isPro===t.isPro?0:e.isPro?1:-1}));var c=[{label:wp.i18n.__("Share Link","integrate-google-drive"),value:"shareLink",icon:"admin-links"},{label:wp.i18n.__("Embed Code","integrate-google-drive"),value:"embedCode",icon:"editor-code"},{label:wp.i18n.__("Email","integrate-google-drive"),value:"email",icon:"email"},{label:wp.i18n.__("Facebook","integrate-google-drive"),value:"facebook",icon:"facebook"},{label:wp.i18n.__("Twitter","integrate-google-drive"),value:"twitter",icon:"twitter"},{label:wp.i18n.__("WhatsApp","integrate-google-drive"),value:"whatsapp",icon:"whatsapp"}];return React.createElement("div",{className:"igd-settings-body"},React.createElement("div",{className:"integrations-wrapper settings-field"},React.createElement("div",{className:"integrations-header"},React.createElement("div",{className:"integrations-header-title"},React.createElement("h3",{className:"igd-settings-body-title"},wp.i18n.__("Plugins Integrations","integrate-google-drive")),React.createElement("p",{className:"description"},wp.i18n.__("Select the plugins you want to integrate with Integrate Google Drive.","integrate-google-drive"))),React.createElement("div",{className:"integrations-actions"},React.createElement("button",{className:"igd-btn btn-outline-primary",onClick:function(){n(J(J({},t),{},{integrations:l.filter((function(e){return!e.isPro||!!igd.isPro})).map((function(e){return e.key}))}))}},wp.i18n.__("Enable All","integrate-google-drive")),React.createElement("button",{className:"igd-btn btn-outline-warning",onClick:function(){n(J(J({},t),{},{integrations:[]}))}},wp.i18n.__("Disable All","integrate-google-drive")))),React.createElement("div",{className:"integrations"},l.map((function(e){var a=e.key,o=e.title,i=e.description,l=e.isPro,c=e.docLink,s=l?igd.isPro&&r.includes(a):r.includes(a),d=l&&!igd.isPro;return React.createElement("div",{key:a,className:"integration-item ".concat(d?"pro-item":""," ").concat(s?"active":""),onClick:function(){if(!l||igd.isPro){var e=s?r.filter((function(e){return e!==a})):[].concat(W(r),[a]);e.includes("dokan")&&!r.includes("woocommerce")?e.push("woocommerce"):!e.includes("woocommerce")&&e.includes("dokan")&&(e=e.filter((function(e){return"dokan"!==e}))),n(J(J({},t),{},{integrations:e}))}else u("Upgrade to PRO to enable ".concat(o," integration"))}},React.createElement("img",{className:"integration-item-img",src:"".concat(igd.pluginUrl,"/assets/images/settings/").concat(a,".png")}),React.createElement("a",{"data-tip":wp.i18n.__("Documentation","integrate-google-drive"),href:c,target:"_blank",className:"integration-item-doc-link",onClick:function(e){e.stopPropagation()}},React.createElement("i",{className:"dashicons dashicons-editor-help"})),React.createElement(Z,{className:"igd-tooltip",place:"top",type:"dark",effect:"solid"}),React.createElement("span",{className:"integration-item-title"},o),React.createElement("span",{className:"integration-item-description"},i),d&&React.createElement("div",{className:"pro-badge"},React.createElement("i",{className:"dashicons dashicons-lock"}),React.createElement("span",null,wp.i18n.__("PRO","integrate-google-drive"))),React.createElement(X,{className:"integration-item-toggle",checked:s}))})))),React.createElement("div",{className:"sharing-channels-wrap"},React.createElement("h3",{className:"igd-settings-body-title"},wp.i18n.__("File sharing channels","integrate-google-drive")),React.createElement("p",{className:"description"},wp.i18n.__("Select the sharing channels you want to show for the users in the file sharing modal.","integrate-google-drive")),React.createElement("div",{className:"sharing-channels"},c.map((function(e){return React.createElement(Y,{key:e.value,label:React.createElement("div",{className:"tool-option"},React.createElement("i",{className:"dashicons dashicons-"+e.icon})," ",e.label," "),checked:i.includes(e.value),onChange:function(){i.includes(e.value)?n(J(J({},t),{},{channels:i.filter((function(t){return t!==e.value}))})):n(J(J({},t),{},{channels:[].concat(W(i),[e.value])}))}})})))))}function ee(e){return ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ee(e)}function te(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function ne(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?te(Object(n),!0).forEach((function(t){ae(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):te(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ae(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==ee(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!==ee(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ee(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var re=wp.components,oe=re.FormToggle,ie=re.SelectControl,le=re.TextControl,ce=window.ReactTooltip;function se(e){var t=e.data,n=e.setData,a=igd.isPro,r=t.enableStatistics,o=void 0!==r&&r,i=t.emailReport,l=void 0!==i&&i,c=t.emailReportFrequency,s=void 0===c?"weekly":c,d=t.emailReportRecipients;return React.createElement("div",{className:"igd-settings-body"},React.createElement("span",{className:"igd-settings-body-title"},wp.i18n.__("Statistics Settings","integrate-google-drive"),React.createElement("a",{href:"https://softlabbd.com/docs/understanding-the-integrate-google-drive-statistics-properly/",target:"_blank",className:"igd-btn btn-outline-info"},React.createElement("i",{className:"dashicons dashicons-editor-help"}),wp.i18n.__("Documentation","integrate-google-drive"))),React.createElement("div",{className:"settings-field"},React.createElement("span",{className:"settings-field-label"},wp.i18n.__("Enable Statistics","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(oe,{"data-tip":wp.i18n.__("PRO Feature","integrate-google-drive"),checked:o,onChange:function(){a?n(ne(ne({},t),{},{enableStatistics:!o})):u(wp.i18n.__("Upgrade to PRO to enable the statistics.","integrate-google-drive"))}}),!a&&React.createElement(ce,{effect:"solid",place:"right",backgroundColor:"#ff9966",className:"igd-tooltip"}),React.createElement("span",{className:"description"},wp.i18n.__("Enable/ disable the statistics logs.","integrate-google-drive")))),(o||!a)&&React.createElement("div",{className:"settings-field"},React.createElement("span",{className:"settings-field-label"},wp.i18n.__("Email Reporting","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(oe,{"data-tip":wp.i18n.__("PRO Feature","integrate-google-drive"),checked:l,onChange:function(){a?n(ne(ne({},t),{},{emailReport:!l})):u(wp.i18n.__("Upgrade to PRO to enable the statistics.","integrate-google-drive"))}}),!a&&React.createElement(ce,{effect:"solid",place:"right",backgroundColor:"#ff9966",className:"igd-tooltip"}),React.createElement("p",{className:"description"},wp.i18n.__("Enable / disable the statistics email reporting.","integrate-google-drive")))),(o&&l||!a)&&React.createElement(React.Fragment,null,React.createElement("div",{className:"settings-field"},React.createElement("span",{className:"settings-field-label"},wp.i18n.__("Email Report Frequency","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(ie,{"data-tip":wp.i18n.__("PRO Feature","integrate-google-drive"),value:s,options:[{label:wp.i18n.__("Daily","integrate-google-drive"),value:"daily"},{label:wp.i18n.__("Weekly","integrate-google-drive"),value:"weekly"},{label:wp.i18n.__("Monthly","integrate-google-drive"),value:"monthly"}],onChange:function(e){a?n(ne(ne({},t),{},{emailReportFrequency:e})):u(wp.i18n.__("Upgrade to PRO to enable the statistics.","integrate-google-drive"))}}),!a&&React.createElement(ce,{effect:"solid",place:"right",backgroundColor:"#ff9966",className:"igd-tooltip"}),React.createElement("p",{className:"description"},wp.i18n.__("Select the email report frequency.","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},React.createElement("span",{className:"settings-field-label"},wp.i18n.__("Email Report Recipients","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(le,{"data-tip":wp.i18n.__("PRO Feature","integrate-google-drive"),value:d,onChange:function(e){a?n(ne(ne({},t),{},{emailReportRecipients:e})):u(wp.i18n.__("Upgrade to PRO to enable the statistics.","integrate-google-drive"))}}),!a&&React.createElement(ce,{effect:"solid",place:"right",backgroundColor:"#ff9966",className:"igd-tooltip"}),React.createElement("p",{className:"description"},wp.i18n.__("Enter the recipients email addresses separated by comma.","integrate-google-drive"))))))}function de(e){return de="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},de(e)}function ge(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function ue(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ge(Object(n),!0).forEach((function(t){me(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ge(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function me(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==de(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!==de(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===de(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pe(e){return function(e){if(Array.isArray(e))return we(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ve(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,o,i,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=o.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw r}}return l}}(e,t)||ve(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ve(e,t){if(e){if("string"==typeof e)return we(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?we(e,t):void 0}}function we(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var he=React,ye=he.useEffect,be=he.useState,_e=wp.components.FormToggle,Re=window,Ee=Re.ModuleBuilderModal,Ne=Re.ReactTooltip;function Se(e){var t,n,a=e.data,r=e.setData,o=igd,i=o.activeAccount,l=o.isPro,c=a.autoPrivateFolders,s=a.privateFolderRoles,d=void 0===s?["editor","author","contributor","subscriber"]:s,m=a.deleteAutoPrivateFolders,p=a.nameTemplate,f=void 0===p?"%user_login% (%user_email%)":p,v=a.parentFolder,w=void 0===v?g(i.root_id):v,h=a.templateFolder,y=a.mergeFolders,b=a.privateFoldersInAdminDashboard,_=fe(be(null),2),R=_[0],E=_[1],N=R&&[{label:wp.i18n.__("All","integrate-google-drive"),value:"all"}].concat(pe(Object.keys(R.roles).map((function(e){var t=R.roles[e];return{label:"".concat(t," (role)"),value:t}}))),pe(R.users.map((function(e){var t=e.username,n=e.email,a=e.id;return{label:"".concat(t," (").concat(n,")"),value:parseInt(a)}}))));return ye((function(){wp.ajax.post("igd_get_users_data").then((function(e){return E(e)}))}),[]),React.createElement("div",{className:"igd-settings-body"},React.createElement("span",{className:"igd-settings-body-title"},wp.i18n.__("Private Folders","integrate-google-drive"),React.createElement("a",{href:"https://softlabbd.com/docs/how-to-use-and-enable-private-folders-automatically-link-manually/",target:"_blank",className:"igd-btn btn-outline-info"},React.createElement("i",{className:"dashicons dashicons-editor-help"}),wp.i18n.__("Documentation","integrate-google-drive"))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Create Folder on Registration","integrate-google-drive")," "),React.createElement("div",{className:"settings-field-content"},React.createElement(_e,{"data-tip":"PRO Feature",checked:c,onChange:function(){igd.isPro?r(ue(ue({},a),{},{autoPrivateFolders:!c})):u(wp.i18n.__("Upgrade to PRO to enable auto private folders creation on user registration.","integrate-google-drive"))}}),!igd.isPro&&React.createElement(Ne,{effect:"solid",place:"right",backgroundColor:"#FF9F10",className:"igd-tooltip"}),React.createElement("span",{className:"description"},wp.i18n.__("Enable/ disable automatic private folders.","integrate-google-drive"),React.createElement("br",null),wp.i18n.__("If ON, a new private folder will be created for the new registered users.","integrate-google-drive")))),c&&React.createElement(React.Fragment,null,React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Filter User Roles","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(ReactSelect,{isMulti:!0,placeholder:"Select user roles",options:N,value:R?N.filter((function(e){return d.includes(e.value)})):[],onChange:function(e){return r(ue(ue({},a),{},{privateFolderRoles:pe(e.map((function(e){return e.value})))}))},className:"igd-select",classNamePrefix:"igd-select",isClearable:!0}),React.createElement("p",{className:"description"},wp.i18n.__("Select the user roles for which the private folders will be created.","integrate-google-drive")))),React.createElement("div",{className:"settings-field field-naming-template"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Naming template","integrate-google-drive")," "),React.createElement("div",{className:"settings-field-content"},React.createElement("input",{"data-tip":"PRO Feature",type:"text",value:f,onChange:function(e){igd.isPro?r(ue(ue({},a),{},{nameTemplate:e.target.value})):u(wp.i18n.__("Upgrade to PRO to enable auto private folders creation on user registration.","integrate-google-drive"))}}),!igd.isPro&&React.createElement(Ne,{effect:"solid",place:"right",backgroundColor:"#FF9F10",className:"igd-tooltip"}),React.createElement("p",{className:"description"},wp.i18n.__("Set the folder name template for the automatically created private folders. and use the below tags to customize the folder name.","integrate-google-drive")),React.createElement("div",{className:"template-tags"},React.createElement("div",{className:"template-tags-title",onClick:function(e){return jQuery(e.target).closest(".template-tags-title").toggleClass("active")}},React.createElement("i",{className:"dashicons dashicons-arrow-down-alt2"}),React.createElement("span",null,wp.i18n.__("Available template tags","integrate-google-drive")),React.createElement("span",null,wp.i18n.__(" (click to insert)","integrate-google-drive"))),React.createElement("div",{className:"template-tags-list"},["%user_login%","%user_email%","%first_name%","%last_name%","%display_name%","%user_id%","%user_role%","%user_meta_{key}%","%date%","%time%","%unique_id%"].map((function(e,t){return React.createElement("span",{className:"tag",key:t,onClick:function(){igd.isPro?r(ue(ue({},a),{},{nameTemplate:f+" "+e})):u(wp.i18n.__("Upgrade to PRO to enable auto private folders creation.","integrate-google-drive"))}},e)})))))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Parent Folder","integrate-google-drive")," "),React.createElement("div",{className:"settings-field-content"},React.createElement("div",{className:"template-folder-wrap"},!!w&&React.createElement("div",{className:"template-folder"},React.createElement("div",{className:"template-folder-account"},null===(t=igd.accounts[w.accountId])||void 0===t?void 0:t.email),React.createElement("div",{className:"template-folder-item"},w.iconLink?React.createElement("img",{src:w.iconLink}):React.createElement("i",{className:"dashicons dashicons-category"}),React.createElement("span",{className:"template-folder-name"},w.name?w.name:g(w))),React.createElement("div",{className:"dashicons dashicons-no-alt",onClick:function(){return r(ue(ue({},a),{},{parentFolder:null}))}},React.createElement("span",{className:"screen-reader-text"},wp.i18n.__("Remove","integrate-google-drive")))),React.createElement("button",{"data-tip":"PRO Feature",className:"igd-btn btn-primary",onClick:function(){igd.isPro?Swal.fire({html:'<div id="igd-select-files" class="igd-module-builder-modal-wrap"></div>',showConfirmButton:!1,customClass:{container:"igd-module-builder-modal-container"},didOpen:function(e){var t=document.getElementById("igd-select-files");ReactDOM.render(React.createElement(Ee,{initData:{folders:w?[w]:[]},onUpdate:function(e){var t=e.folders,n=void 0===t?[]:t;r((function(e){return ue(ue({},e),{},{parentFolder:n[0]})})),Swal.close()},onClose:function(){return Swal.close()},isSelectFiles:!0,selectionType:"parent"}),t)},willClose:function(e){var t=document.getElementById("igd-select-files");ReactDOM.unmountComponentAtNode(t)}}):u(wp.i18n.__("Upgrade to PRO to enable auto private folders creation on user registration.","integrate-google-drive"))}},React.createElement("i",{className:"dashicons dashicons-open-folder"}),React.createElement("span",null,w?wp.i18n.__("Change Parent Folder","integrate-google-drive"):wp.i18n.__("Select Parent Folder","integrate-google-drive"))),!igd.isPro&&React.createElement(Ne,{effect:"solid",place:"right",backgroundColor:"#FF9F10",className:"igd-tooltip"})),React.createElement("p",{className:"description"},wp.i18n.__("Select the parent folder for the newly created private folders. All the private folders will be created within the selected parent folder.","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Template Folder","integrate-google-drive")," "),React.createElement("div",{className:"settings-field-content"},React.createElement("div",{className:"template-folder-wrap"},!!h&&React.createElement("div",{className:"template-folder"},React.createElement("div",{className:"template-folder-account"},null===(n=igd.accounts[h.accountId])||void 0===n?void 0:n.email),React.createElement("div",{className:"template-folder-item"},h.iconLink?React.createElement("img",{src:h.iconLink}):React.createElement("i",{className:"dashicons dashicons-category"}),React.createElement("span",{className:"template-folder-name"},h.name?h.name:g(h))),React.createElement("div",{className:"dashicons dashicons-no-alt",onClick:function(){return r(ue(ue({},a),{},{templateFolder:null}))}},React.createElement("span",{className:"screen-reader-text"},wp.i18n.__("Remove","integrate-google-drive")))),React.createElement("button",{"data-tip":"PRO Feature",className:"igd-btn btn-primary",onClick:function(){igd.isPro?Swal.fire({html:'<div id="igd-select-files" class="igd-module-builder-modal-wrap single"></div>',showConfirmButton:!1,customClass:{container:"igd-module-builder-modal-container"},didOpen:function(e){var t=document.getElementById("igd-select-files");ReactDOM.render(React.createElement(Ee,{initData:{folders:h?[h]:[]},onUpdate:function(e){var t=e.folders,n=void 0===t?[]:t;r((function(e){return ue(ue({},e),{},{templateFolder:n[0]})})),Swal.close()},onClose:function(){return Swal.close()},isSelectFiles:!0,selectionType:"template"}),t)},willClose:function(e){var t=document.getElementById("igd-select-files");ReactDOM.unmountComponentAtNode(t)}}):u(wp.i18n.__("Upgrade to PRO to enable auto private folders creation on user registration.","integrate-google-drive"))}},React.createElement("i",{className:"dashicons dashicons-open-folder"}),React.createElement("span",null,h?wp.i18n.__("Change Template Folder","integrate-google-drive"):wp.i18n.__("Select Template Folder","integrate-google-drive"))),!igd.isPro&&React.createElement(Ne,{effect:"solid",place:"right",backgroundColor:"#FF9F10",className:"igd-tooltip"})),!!w&&!!h&&w.accountId!==h.accountId&&React.createElement("div",{className:"template-folder-error"},React.createElement("i",{className:"dashicons dashicons-warning"}),React.createElement("span",null,wp.i18n.__("Template folder and parent folder must be from the same account.","integrate-google-drive"))),!!w&&!!h&&w.id===h.id&&React.createElement("div",{className:"template-folder-error"},React.createElement("i",{className:"dashicons dashicons-warning"}),React.createElement("span",null,wp.i18n.__("Template folder and parent folder can't be the same.","integrate-google-drive"))),React.createElement("p",{className:"description"},wp.i18n.__("Select the template folder for the newly created private folders. All the files and folders within the template folder will be copied to the newly created private folders for the users.","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Delete private folders","integrate-google-drive")," "),React.createElement("div",{className:"settings-field-content"},React.createElement(_e,{"data-tip":"PRO Feature",checked:m,onChange:function(){igd.isPro?r(ue(ue({},a),{},{deleteAutoPrivateFolders:!m})):u(wp.i18n.__("Upgrade to PRO to enable auto private folders creation on user registration.","integrate-google-drive"))}}),!igd.isPro&&React.createElement(Ne,{effect:"solid",place:"right",backgroundColor:"#FF9F10",className:"igd-tooltip"}),React.createElement("p",{className:"description"},wp.i18n.__("If ON, Delete the linked private folders on account delete.","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Merge Folders","integrate-google-drive")," "),React.createElement("div",{className:"settings-field-content"},React.createElement(_e,{"data-tip":wp.i18n.__("PRO Feature","integrate-google-drive"),checked:y,onChange:function(){l?r(ue(ue({},a),{},{mergeFolders:!y})):u(wp.i18n.__("Upgrade to PRO to enable auto private folders creation on user registration.","integrate-google-drive"))}}),React.createElement("p",{className:"description"},wp.i18n.__("Enable the merging of folders when a folder with a same name already exists, rather than creating a new folder.","integrate-google-drive"))))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Private Folders in Admin Dashboard","integrate-google-drive")," "),React.createElement("div",{className:"settings-field-content"},React.createElement(_e,{"data-tip":wp.i18n.__("PRO Feature","integrate-google-drive"),checked:b,onChange:function(){l?r(ue(ue({},a),{},{privateFoldersInAdminDashboard:!b})):u(wp.i18n.__("Upgrade to PRO to allow private folders in admin dashboard.","integrate-google-drive"))}}),React.createElement("p",{className:"description"},wp.i18n.__("Allow access to private folders in admin dashboard file browser, shortcode builder.","integrate-google-drive")))))}function Ae(e){return Ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ae(e)}function Oe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Pe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oe(Object(n),!0).forEach((function(t){ke(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ke(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Ae(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!==Ae(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Ae(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ce=wp.components.ColorPalette,je=React,Fe=je.useEffect,De=je.useRef,Ue=window.ReactTooltip;function Be(e){var t=e.data,n=e.setData,a={atom:wp.i18n.__("Atom","integrate-google-drive"),"bar-chart":wp.i18n.__("Bar Chart","integrate-google-drive"),spinner:wp.i18n.__("Spinner","integrate-google-drive"),bars:wp.i18n.__("Bars","integrate-google-drive"),bricks:wp.i18n.__("Bricks","integrate-google-drive"),blocks:wp.i18n.__("Blocks","integrate-google-drive"),"color-bar":wp.i18n.__("Color Bar","integrate-google-drive"),clock:wp.i18n.__("Clock","integrate-google-drive"),"dash-ring":wp.i18n.__("Dash Ring","integrate-google-drive"),ripple:wp.i18n.__("Ripple","integrate-google-drive"),progress:wp.i18n.__("Progress","integrate-google-drive"),flipball:wp.i18n.__("Flip Ball","integrate-google-drive"),hourglass:wp.i18n.__("Hourglass","integrate-google-drive"),infinity:wp.i18n.__("Infinity","integrate-google-drive"),"dual-ring":wp.i18n.__("Dual Ring","integrate-google-drive"),"fidget-spinner":wp.i18n.__("Fidget Spinner","integrate-google-drive"),gear:wp.i18n.__("Gear","integrate-google-drive"),gears:wp.i18n.__("Gears","integrate-google-drive")},r=t.preloader,o=void 0===r?"default":r,i=t.customPreloader,l=t.primaryColor,c=void 0===l?"#3C82F6":l,s=t.customCss;Fe((function(){var e=document.querySelector(".igd-custom-css");e&&wp.codeEditor.initialize(e,Pe(Pe({},wp.codeEditor.defaultSettings),{},{mode:"css",wordWrap:!0,tabSize:2,autoComplete:{enable:!0,showDescriptions:!0,caseSensitive:!0,autoTrigger:!0,delay:0,maxItems:10,sortBy:"score",maxLength:0,maxResults:10,highlightMatches:!0,maxHighlightLength:0,style:"popup"},showGutter:!0,showPrintMargin:!0,highlightActiveLine:!0,showLineNumbers:!0,enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableCodeFolding:!0,enableCodeFormatting:!0})).codemirror.on("change",(function(e){var a=e.getValue();n(Pe(Pe({},t),{},{customCss:a}))}))}),[]);var d=De();return React.createElement("div",{className:"igd-settings-body"},React.createElement("h3",{className:"igd-settings-body-title"},wp.i18n.__("Appearance Settings","integrate-google-drive")),React.createElement("div",{className:"settings-field field-preloader"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Preloader","integrate-google-drive")),React.createElement("p",{className:"description"},wp.i18n.__("Choose the preloader style for the file browser. Preloader will be displayed in the file browser while the files are loading.","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement("div",{className:"preloaders"},React.createElement("div",{className:"preloader ".concat("default"===o?"active":""),onClick:function(){return n(Pe(Pe({},t),{},{preloader:"default"}))}},React.createElement("img",{src:"".concat(igd.pluginUrl,"/assets/images/preloader/default.svg"),alt:wp.i18n.__("Default","integrate-google-drive")}),React.createElement("span",{className:"preloader-name"},wp.i18n.__("Default","integrate-google-drive"))),Object.keys(a).map((function(e){var r=a[e],i=igd.isPro&&o===e;return React.createElement("div",{className:"preloader ".concat(i?"active":""," ").concat(igd.isPro?"":"disabled"),key:e,onClick:function(){igd.isPro?n(Pe(Pe({},t),{},{preloader:e})):u(wp.i18n.__("Upgrade to PRO to use this preloader.","integrate-google-drive"))}},React.createElement("img",{src:"".concat(igd.pluginUrl,"/assets/images/preloader/").concat(e,".svg"),alt:r}),igd.isPro?React.createElement("div",{className:"preloader-name"},React.createElement("span",null,r)):React.createElement("div",{className:"preloader-name"},React.createElement("i",{className:"dashicons dashicons-lock"}),React.createElement("span",null,wp.i18n.__("PRO","integrate-google-drive"))))}))),React.createElement("div",{className:"preloader-upload"},React.createElement("h4",null,wp.i18n.__("Custom Preloader Image","integrate-google-drive")),React.createElement("div",{className:"preloader-upload-actions"},React.createElement("button",{type:"button",className:"igd-btn btn-primary upload-btn",onClick:function(){igd.isPro?function(){if(d.current)return d.current.off("select"),void d.current.on("select",(function(){var e=d.current.state().get("selection").first().toJSON();n(Pe(Pe({},t),{},{customPreloader:e.url}))})).open();d.current=wp.media({title:wp.i18n.__("Select Preloader","integrate-google-drive"),button:{text:wp.i18n.__("Select","integrate-google-drive")},multiple:!1,library:{type:"image"}}),d.current.on("select",(function(){var e=d.current.state().get("selection").first().toJSON();n(Pe(Pe({},t),{},{customPreloader:e.url}))})).open()}():u(wp.i18n.__("Upgrade to PRO to use custom preloader.","integrate-google-drive"))}},React.createElement("i",{className:"dashicons dashicons-upload"}),React.createElement("span",null,wp.i18n.__("Upload Image","integrate-google-drive"))),!!i&&React.createElement("button",{type:"button",className:"igd-btn btn-danger",onClick:function(){return n(Pe(Pe({},t),{},{customPreloader:""}))}},React.createElement("i",{className:"dashicons dashicons-trash"}),React.createElement("span",null,wp.i18n.__("Remove","integrate-google-drive")))),!!i&&React.createElement("div",{className:"preloader-preview"},React.createElement("img",{src:i}))))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Primary Color","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement("div",{className:"igd-color-palette-wrap","data-tip":wp.i18n.__("PRO Feature","integrate-google-drive"),onClick:function(){igd.isPro||u(wp.i18n.__("Upgrade to PRO to change the file browser primary color.","integrate-google-drive"))}},React.createElement(Ce,{colors:[{name:"Default",color:"#3C82F6"},{name:"Green",color:"#2FB44B"},{color:"#2463EB",name:"Azure"},{color:"#0073aa",name:"Sapphire Blue"},{color:"#2265C0",name:"Lapis Blue"},{color:"#3F51B5",name:"Indigo"},{color:"#6E61C2",name:"Amethyst"}],value:c,onChange:function(e){n(Pe(Pe({},t),{},{primaryColor:e}))},className:"igd-color-palette ".concat(igd.isPro?"":"disabled"),enableAlpha:!0,asButtons:!0}),!igd.isPro&&React.createElement(Ue,{className:"igd-tooltip",effect:"solid",place:"right",backgroundColor:"#ff9966"})),React.createElement("span",{className:"description"},wp.i18n.__("Choose the primary color for the file browser. The color will affects both on admin and frontend file browser module.","integrate-google-drive")))),React.createElement("div",{className:"settings-field field-custom-css"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Custom CSS","integrate-google-drive")),React.createElement("p",{className:"description"},wp.i18n.__("To customize the plugin's styles, insert your custom CSS here.","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement("textarea",{value:s,onChange:function(e){return n(Pe(Pe({},t),{},{customCss:e}))},rows:20,placeholder:wp.i18n.__("Enter your custom CSS here...","integrate-google-drive"),id:"igd-custom-css",className:"igd-textarea igd-custom-css"}))))}function xe(e){return xe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xe(e)}function Ie(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Le(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ie(Object(n),!0).forEach((function(t){Te(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ie(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Te(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==xe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!==xe(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===xe(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ke(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,o,i,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=o.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Me(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Me(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Me(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var Ge=wp.components.SelectControl,Qe=React.useState;function We(e){var t=e.data,n=e.setData,a=e.saveSettings,r=t.exportData,o=void 0===r?"all":r,i=Ke(Qe(!1),2),l=i[0],c=i[1];return React.createElement("div",{className:"igd-settings-body"},React.createElement("h3",{className:"igd-settings-body-title"},wp.i18n.__("Tools","integrate-google-drive")),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Clear Cached Files","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement("button",{className:"igd-btn btn-warning",type:"button",onClick:function(){Swal.fire({title:wp.i18n.__("Are you sure?","integrate-google-drive"),text:wp.i18n.__("Clear all the cached files!","integrate-google-drive"),icon:"warning",showCancelButton:!0,confirmButtonText:wp.i18n.__("Clear cache","integrate-google-drive"),cancelButtonText:wp.i18n.__("Cancel","integrate-google-drive"),reverseButtons:!0,showLoaderOnConfirm:!0,customClass:{container:"igd-swal"},preConfirm:function(){return new Promise((function(e,t){wp.ajax.post("igd_clear_cache",{nonce:igd.nonce}).done((function(){return e()}))}))}}).then((function(e){e.isConfirmed&&Swal.fire({title:wp.i18n.__("Cache Cleared!","integrate-google-drive"),text:wp.i18n.__("Cached files are deleted and synchronized with the cloud files.","integrate-google-drive"),icon:"success",showConfirmButton:!1,timer:2500,timerProgressBar:!0,toast:!0})}))}},React.createElement("i",{className:"dashicons dashicons-update"}),React.createElement("span",null,wp.i18n.__("Clear cache","integrate-google-drive"))),React.createElement("p",{className:"description"},wp.i18n.__("Clear cached files and synchronize the cloud files.","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Export Data","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(Ge,{value:o,options:[{label:wp.i18n.__("Settings","integrate-google-drive"),value:"settings"},{label:wp.i18n.__("Shortcode Modules","integrate-google-drive"),value:"shortcodes"},{label:wp.i18n.__("User Private Files","integrate-google-drive"),value:"user_files"},{label:wp.i18n.__("Statistics Logs","integrate-google-drive"),value:"events"},{label:wp.i18n.__("Export All (Settings, Shortcode Modules, User Private Files, Statistics Logs)","integrate-google-drive"),value:"all"}],onChange:function(e){n(Le(Le({},t),{},{exportData:e}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Select the data you want to export.","integrate-google-drive")),React.createElement("br",null),React.createElement("button",{type:"button",className:"igd-btn btn-primary",onClick:function(){c("export"),wp.ajax.post("igd_get_export_data",{type:o}).done((function(e){var t=JSON.stringify(e),n=new Blob([t],{type:"application/json"}),a=URL.createObjectURL(n),r=document.createElement("a");r.href=a,r.download="integrate-google-drive-export-".concat(o.replace("_","-"),"-").concat((new Date).toISOString().slice(0,10),".json"),r.click(),URL.revokeObjectURL(a)})).fail((function(e){return console.log(e)})).always((function(){return c(!1)}))}},"export"===l?React.createElement("div",{className:"igd-spinner"}):React.createElement("i",{className:"dashicons dashicons-download"}),React.createElement("span",null,wp.i18n.__("Export","integrate-google-drive"))),React.createElement("p",{className:"description"},wp.i18n.__("Export the selected data to a JSON file.","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},"Import Data"),React.createElement("div",{className:"settings-field-content"},React.createElement("button",{type:"button",className:"igd-btn btn-info",onClick:function(){var e=document.createElement("input");e.type="file",e.accept="application/json",e.onchange=function(){var t=e.files[0],r=new FileReader;r.readAsText(t),r.onload=function(){c("import");var e=JSON.parse(r.result);wp.ajax.post("igd_import_data",{data:e}).done((function(){Swal.fire({title:wp.i18n.__("Imported!","integrate-google-drive"),text:wp.i18n.__("Data imported successfully.","integrate-google-drive"),icon:"success",showConfirmButton:!1,timer:2500,timerProgressBar:!0,toast:!0}),e.settings&&(n(e.settings),a())})).fail((function(e){return console.log(e)})).always((function(){return c(!1)}))}},e.click()}},"import"===l?React.createElement("div",{className:"igd-spinner"}):React.createElement("i",{className:"dashicons dashicons-upload"}),React.createElement("span",null,"Import")),React.createElement("p",{className:"description"},wp.i18n.__("Select the exported JSON file you would like to import. Please note that the import will replace the current data","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},React.createElement("span",{className:"settings-field-label"},wp.i18n.__("Reset Settings","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement("button",{type:"button",className:"igd-btn btn-danger",onClick:function(){Swal.fire({title:wp.i18n.__("Are you sure?","integrate-google-drive"),text:wp.i18n.__("We recommend you to export your current settings before resetting them.","integrate-google-drive"),icon:"warning",showCancelButton:!0,confirmButtonText:wp.i18n.__("Reset","integrate-google-drive"),reverseButtons:!0,showLoaderOnConfirm:!0,customClass:{container:"igd-swal"}}).then((function(e){e.value&&(n({}),a())}))}},React.createElement("i",{className:"dashicons dashicons-update"}),React.createElement("span",null,wp.i18n.__("Reset","integrate-google-drive"))),React.createElement("p",{className:"description"},wp.i18n.__("Reset all settings to default.","integrate-google-drive")))))}function ze(e){return ze="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ze(e)}function qe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Je(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qe(Object(n),!0).forEach((function(t){Ve(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ve(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==ze(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!==ze(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ze(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function He(e){return function(e){if(Array.isArray(e))return Ze(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ye(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,o,i,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=o.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw r}}return l}}(e,t)||Ye(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ye(e,t){if(e){if("string"==typeof e)return Ze(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ze(e,t):void 0}}function Ze(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var $e=React,et=$e.useState,tt=$e.useEffect;function nt(e){var t=e.data,n=e.setData,a=t.accessFileBrowserUsers,r=void 0===a?["administrator"]:a,o=t.userFolders,i=void 0===o?{}:o,l=t.accessSettingsUsers,c=void 0===l?["administrator"]:l,s=t.accessShortcodeBuilderUsers,d=void 0===s?["administrator"]:s,g=t.accessStatisticsUsers,m=void 0===g?["administrator"]:g,p=t.accessPrivateFilesUsers,f=void 0===p?["administrator"]:p,v=t.accessGettingStartedUsers,w=void 0===v?["administrator"]:v,h=Xe(et({roles:{administrator:1},users:[]}),2),y=h[0],b=h[1];tt((function(){wp.ajax.post("igd_get_users_data").done((function(e){b(e)})).fail((function(e){return console.log(e)}))}),[]);var _=y&&[].concat(He(Object.keys(y.roles).map((function(e){var t=y.roles[e];return{label:"".concat(t," (role)"),value:t}}))),He(y.users.map((function(e){var t=e.username,n=e.email,a=e.id;return{label:"".concat(t," (").concat(n,")"),value:parseInt(a)}})))),R=y?_.filter((function(e){return r.includes(e.value)})):[];return React.createElement("div",{className:"igd-settings-body"},React.createElement("h3",{className:"igd-settings-body-title"},wp.i18n.__("User Access Settings","integrate-google-drive"),React.createElement("a",{href:"https://softlabbd.com/docs/allow-other-users-to-use-integrate-google-drive-in-admin-dashboard/",target:"_blank",className:"igd-btn btn-outline-info"},React.createElement("i",{className:"dashicons dashicons-editor-help"}),wp.i18n.__("Documentation","integrate-google-drive"))),React.createElement("div",{className:"settings-field field-access-browser"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("File Browser Page","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(ReactSelect,{isMulti:!0,placeholder:"Select users & roles",options:_,value:R,onChange:function(e){return n(Je(Je({},t),{},{accessFileBrowserUsers:He(e.map((function(e){return e.value})))}))},className:"igd-select",classNamePrefix:"igd-select",isClearable:!1,styles:{multiValue:function(e,t){return"administrator"===t.data.value?Je(Je({},e),{},{backgroundColor:"gray"}):e},multiValueLabel:function(e,t){return"administrator"===t.data.value?Je(Je({},e),{},{fontWeight:"bold",color:"white",paddingRight:6}):e},multiValueRemove:function(e,t){return"administrator"===t.data.value?Je(Je({},e),{},{display:"none"}):e}}}),React.createElement("p",{className:"description"},wp.i18n.__("Select which roles & users can access the admin dashboard file browser.","integrate-google-drive")),R.length>1&&React.createElement("div",{className:"settings-field-sub"},R.map((function(e){var a=e.label,r=e.value;if("administrator"!==r){var o=i[r]||[];return React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Select folders for ","integrate-google-drive")," - ",a),React.createElement("div",{className:"template-folder-wrap"},o.length?o.map((function(e){var a=e.id,o=e.name,l=e.iconLink;return l=l||"https://drive-thirdparty.googleusercontent.com/64/type/application/vnd.google-apps.folder",React.createElement("div",{className:"template-folder"},React.createElement("div",{className:"template-folder-item"},React.createElement("img",{src:l}),React.createElement("span",{className:"template-folder-name"},o),React.createElement("div",{className:"dashicons dashicons-no-alt",onClick:function(){var e=i[r].filter((function(e){return e.id!==a}));n(Je(Je({},t),{},{userFolders:Je(Je({},i),{},Ve({},r,e))}))}})))})):React.createElement("div",{className:"template-folder"},React.createElement("div",{className:"template-folder-item"},React.createElement("img",{src:"https://drive-thirdparty.googleusercontent.com/64/type/application/vnd.google-apps.folder"}),React.createElement("span",{className:"template-folder-name"},wp.i18n.__("All Folders","integrate-google-drive")))),React.createElement("button",{"data-tip":"PRO Feature",className:"igd-btn btn-primary",onClick:function(){igd.isPro?Swal.fire({html:'<div id="igd-select-files" class="igd-module-builder-modal-wrap"></div>',showConfirmButton:!1,customClass:{container:"igd-module-builder-modal-container"},didOpen:function(e){var t=document.getElementById("igd-select-files");ReactDOM.render(React.createElement(ModuleBuilderModal,{initData:{folders:o},onUpdate:function(e){var t=e.folders,a=void 0===t?[]:t;n((function(e){return Je(Je({},e),{},{userFolders:Je(Je({},i),{},Ve({},r,a.map((function(e){return{id:e.id,name:e.name,iconLink:e.iconLink,accountId:e.accountId,type:e.type,shortcutDetails:e.shortcutDetails}}))))})})),Swal.close()},onClose:function(){return Swal.close()},isSelectFiles:!0,selectionType:"folders"}),t)},willClose:function(e){var t=document.getElementById("igd-select-files");ReactDOM.unmountComponentAtNode(t)}}):u(wp.i18n.__("Upgrade to select specific folders for users.","integrate-google-drive"))}},React.createElement("i",{className:"dashicons dashicons-open-folder"}),React.createElement("span",null,o.length?wp.i18n.__("Update Folders","integrate-google-drive"):wp.i18n.__("Select Folders","integrate-google-drive"))),!igd.isPro&&React.createElement(ReactTooltip,{effect:"solid",place:"right",backgroundColor:"#FF9F10",className:"igd-tooltip"})),React.createElement("p",{className:"description"},wp.i18n.__("Select specific folders that will be accessible to ","integrate-google-drive")," ",a,"."))}}))))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Shortcode Builder Page","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(ReactSelect,{isMulti:!0,placeholder:"Select users & roles",options:_,value:y?_.filter((function(e){return d.includes(e.value)})):[],onChange:function(e){return n(Je(Je({},t),{},{accessShortcodeBuilderUsers:He(e.map((function(e){return e.value})))}))},className:"igd-select",classNamePrefix:"igd-select",isClearable:!1,styles:{multiValue:function(e,t){return"administrator"===t.data.value?Je(Je({},e),{},{backgroundColor:"gray"}):e},multiValueLabel:function(e,t){return"administrator"===t.data.value?Je(Je({},e),{},{fontWeight:"bold",color:"white",paddingRight:6}):e},multiValueRemove:function(e,t){return"administrator"===t.data.value?Je(Je({},e),{},{display:"none"}):e}}}),React.createElement("p",{className:"description"},wp.i18n.__("Select which roles & users can create & edit shortcode modules.","integrate-google-drive")),React.createElement("p",{className:"description"},React.createElement("strong",null,wp.i18n.__("Note: ","integrate-google-drive"))," ",wp.i18n.__("Roles & Users can only access the folders that they have assigned in the ","integrate-google-drive"),React.createElement("strong",null,wp.i18n.__(" Access Backend File Browser ","integrate-google-drive"))," ",wp.i18n.__(" settings above.","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("User Private Files Page","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(ReactSelect,{isMulti:!0,placeholder:"Select users & roles",options:_,value:y?_.filter((function(e){return f.includes(e.value)})):[],onChange:function(e){return n(Je(Je({},t),{},{accessPrivateFilesUsers:He(e.map((function(e){return e.value})))}))},className:"igd-select",classNamePrefix:"igd-select",isClearable:!1,styles:{multiValue:function(e,t){return"administrator"===t.data.value?Je(Je({},e),{},{backgroundColor:"gray"}):e},multiValueLabel:function(e,t){return"administrator"===t.data.value?Je(Je({},e),{},{fontWeight:"bold",color:"white",paddingRight:6}):e},multiValueRemove:function(e,t){return"administrator"===t.data.value?Je(Je({},e),{},{display:"none"}):e}}}),React.createElement("p",{className:"description"},wp.i18n.__("Select which roles & users can manually link private files & folders to users.","integrate-google-drive")),React.createElement("p",{className:"description"},React.createElement("strong",null,wp.i18n.__("Note: ","integrate-google-drive"))," ",wp.i18n.__("Roles & Users can only access the folders that they have assigned in the ","integrate-google-drive"),React.createElement("strong",null,wp.i18n.__(" Access Backend File Browser ","integrate-google-drive"))," ",wp.i18n.__(" settings above.","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Settings Page","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(ReactSelect,{isMulti:!0,placeholder:"Select users & roles",options:_,value:y?_.filter((function(e){return c.includes(e.value)})):[],onChange:function(e){return n(Je(Je({},t),{},{accessSettingsUsers:He(e.map((function(e){return e.value})))}))},className:"igd-select",classNamePrefix:"igd-select",isClearable:!1,styles:{multiValue:function(e,t){return"administrator"===t.data.value?Je(Je({},e),{},{backgroundColor:"gray"}):e},multiValueLabel:function(e,t){return"administrator"===t.data.value?Je(Je({},e),{},{fontWeight:"bold",color:"white",paddingRight:6}):e},multiValueRemove:function(e,t){return"administrator"===t.data.value?Je(Je({},e),{},{display:"none"}):e}}}),React.createElement("p",{className:"description"},wp.i18n.__("Select which roles & users can change the plugin settings.","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Statistics Page","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(ReactSelect,{isMulti:!0,placeholder:"Select users & roles",options:_,value:y?_.filter((function(e){return m.includes(e.value)})):[],onChange:function(e){return n(Je(Je({},t),{},{accessStatisticsUsers:He(e.map((function(e){return e.value})))}))},className:"igd-select",classNamePrefix:"igd-select",isClearable:!1,styles:{multiValue:function(e,t){return"administrator"===t.data.value?Je(Je({},e),{},{backgroundColor:"gray"}):e},multiValueLabel:function(e,t){return"administrator"===t.data.value?Je(Je({},e),{},{fontWeight:"bold",color:"white",paddingRight:6}):e},multiValueRemove:function(e,t){return"administrator"===t.data.value?Je(Je({},e),{},{display:"none"}):e}}}),React.createElement("p",{className:"description"},wp.i18n.__("Select the users & roles to allow access to the statistics page.","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},React.createElement("span",{className:"settings-field-label"},wp.i18n.__("Getting Started Page","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(ReactSelect,{isMulti:!0,placeholder:"Select users & roles",options:_,value:y?_.filter((function(e){return w.includes(e.value)})):[],onChange:function(e){return n(Je(Je({},t),{},{accessGettingStartedUsers:He(e.map((function(e){return e.value})))}))},className:"igd-select",classNamePrefix:"igd-select",isClearable:!1,styles:{multiValue:function(e,t){return"administrator"===t.data.value?Je(Je({},e),{},{backgroundColor:"gray"}):e},multiValueLabel:function(e,t){return"administrator"===t.data.value?Je(Je({},e),{},{fontWeight:"bold",color:"white",paddingRight:6}):e},multiValueRemove:function(e,t){return"administrator"===t.data.value?Je(Je({},e),{},{display:"none"}):e}}}),React.createElement("p",{className:"description"},wp.i18n.__("Select the users & roles to allow viewing the getting started page.","integrate-google-drive")))))}function at(e){return at="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},at(e)}function rt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,o,i,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=o.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw r}}return l}}(e,t)||it(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ot(e){return function(e){if(Array.isArray(e))return lt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||it(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function it(e,t){if(e){if("string"==typeof e)return lt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?lt(e,t):void 0}}function lt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function ct(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function st(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ct(Object(n),!0).forEach((function(t){dt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ct(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==at(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!==at(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===at(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gt=wp.components,ut=gt.FormToggle,mt=gt.CheckboxControl,pt=window,ft=pt.ModuleBuilderModal,vt=pt.ReactTooltip,wt=React,ht=wt.useEffect,yt=wt.useState,bt=wt.useRef;function _t(e){var t=e.data,n=e.setData,a=!!igd.isPro,r=t.integrations,o=void 0===r?[]:r,i=t.wooCommerceDownload,l=void 0===i||i,c=t.wooCommerceUpload,s=void 0!==c&&c,d=t.wooCommerceUploadLocations,p=void 0===d?["checkout","order-received","my-account"]:d,f=t.wooCommerceUploadOrderStatuses,v=void 0===f?["wc-pending","wc-processing"]:f,w=t.wooCommerceUploadParentFolder,h=void 0===w?{id:igd.activeAccount.root_id,accountId:igd.activeAccount.id,name:wp.i18n.__("My Drive","integrate-google-drive")}:w,y=t.wooCommerceUploadFolderNameTemplate,b=void 0===y?"Order - %wc_order_id% - %wc_product_name% (%user_email%)":y,_=[{label:wp.i18n.__("Product Page","integrate-google-drive"),value:"product"},{label:wp.i18n.__("Cart Page","integrate-google-drive"),value:"cart"},{label:wp.i18n.__("Checkout Page","integrate-google-drive"),value:"checkout"},{label:wp.i18n.__("Order Received Page","integrate-google-drive"),value:"order-received"},{label:wp.i18n.__("My Account Page","integrate-google-drive"),value:"my-account"}],R={"wc-pending":wp.i18n._x("Pending payment","Order status","woocommerce"),"wc-processing":wp.i18n._x("Processing","Order status","woocommerce"),"wc-on-hold":wp.i18n._x("On hold","Order status","woocommerce"),"wc-completed":wp.i18n._x("Completed","Order status","woocommerce"),"wc-cancelled":wp.i18n._x("Cancelled","Order status","woocommerce"),"wc-refunded":wp.i18n._x("Refunded","Order status","woocommerce"),"wc-failed":wp.i18n._x("Failed","Order status","woocommerce")},E=m();ht((function(){E&&(l||s)&&n((function(e){return st(st({},e),{},{integrations:[].concat(ot(o),["woocommerce"])})}))}),[l,s]);var N=rt(yt(null),2),S=N[0],A=N[1],O=bt();return React.createElement("div",{className:"igd-settings-body"},React.createElement("h3",{className:"igd-settings-body-title"},wp.i18n.__("WooCommerce Settings","integrate-google-drive"),React.createElement("a",{href:"https://softlabbd.com/docs/how-to-use-integrate-google-drive-with-woocommerce/",target:"_blank",className:"igd-btn btn-outline-info"},React.createElement("i",{className:"dashicons dashicons-editor-help"}),wp.i18n.__("Documentation","integrate-google-drive"))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Enable Downloads","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(ut,{"data-tip":wp.i18n.__("Pro Feature","integrate-google-drive"),checked:a&&l,onChange:function(){a?n(st(st({},t),{},{wooCommerceDownload:!l})):u(wp.i18n.__("Upgrade to the Pro version to enable WooCommerce downloads.","integrate-google-drive"))}}),!a&&React.createElement(vt,{effect:"solid",place:"right",backgroundColor:"#FF9F10",className:"igd-tooltip"}),React.createElement("p",{className:"description"},wp.i18n.__("Enable to add Google Drive files to WooCommerce downloadable products.","integrate-google-drive")))),React.createElement("div",{className:"settings-field field-woocommerce-upload"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Enable Uploads","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(ut,{"data-tip":wp.i18n.__("Pro Feature","integrate-google-drive"),checked:a&&s,onChange:function(){a?n(st(st({},t),{},{wooCommerceUpload:!s})):u(wp.i18n.__("Upgrade to the Pro version to enable WooCommerce uploads.","integrate-google-drive"))}}),!a&&React.createElement(vt,{effect:"solid",place:"right",backgroundColor:"#FF9F10",className:"igd-tooltip"}),React.createElement("p",{className:"description"},wp.i18n.__("Enable/ disable customer file uploads for WooCommerce products.","integrate-google-drive")),s&&React.createElement("div",{className:"settings-field-sub"},React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Upload Box Locations","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement("div",{className:"upload-box-locations"},_.map((function(e){return React.createElement(mt,{key:e.value,label:e.label,checked:p.includes(e.value),onChange:function(){p.includes(e.value)?n(st(st({},t),{},{wooCommerceUploadLocations:p.filter((function(t){return t!==e.value}))})):n(st(st({},t),{},{wooCommerceUploadLocations:[].concat(ot(p),[e.value])}))}})}))),React.createElement("p",{className:"description"},wp.i18n.__("Select the locations where you want to show the upload box in woocommerce products.","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},(p.includes("order-received")||p.includes("my-account"))&&React.createElement(React.Fragment,null,React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Show upload box when order status is","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement("div",{className:"upload-box-order-status"},Object.keys(R).map((function(e){return React.createElement(mt,{key:e,label:R[e],checked:v.includes(e),onChange:function(){v.includes(e)?n(st(st({},t),{},{wooCommerceUploadOrderStatuses:v.filter((function(t){return t!==e}))})):n(st(st({},t),{},{wooCommerceUploadOrderStatuses:[].concat(ot(v),[e])}))}})}))),React.createElement("p",{className:"description"},wp.i18n.__("Select the order statuses when you want to show the upload box","integrate-google-drive")),React.createElement("div",{className:"igd-notice igd-notice-info"},React.createElement("p",{className:"igd-notice-content"},wp.i18n.__("This option will only work on the Order Received and My Account page.","integrate-google-drive")))))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Folder Naming template","integrate-google-drive")," "),React.createElement("div",{className:"settings-field-content"},React.createElement("input",{type:"text",className:"folder-naming-template",onSelect:function(e){return A(e.target.selectionStart)},ref:O,value:b,onChange:function(e){n(st(st({},t),{},{wooCommerceUploadFolderNameTemplate:e.target.value}))}}),React.createElement("p",{className:"description"},wp.i18n.__("Set the upload folder naming template when a customer uploads a file a new folder will be created with this name.","integrate-google-drive")),React.createElement("div",{className:"template-tags"},React.createElement("div",{className:"template-tags-title",onClick:function(e){return jQuery(e.target).closest(".template-tags-title").toggleClass("active")}},React.createElement("i",{className:"dashicons dashicons-arrow-down-alt2"}),React.createElement("span",null,wp.i18n.__("Available template tags","integrate-google-drive")),React.createElement("span",null,wp.i18n.__(" (click to insert)","integrate-google-drive"))),React.createElement("div",{className:"template-tags-list"},["%wc_order_id%","%wc_product_name%","%wc_order_date%","%wc_order_meta_{key}%","","%wc_product_id%","%wc_product_sku%","%wc_product_slug%","%wc_product_price%","%wc_product_sale_price%","%wc_product_regular_price%","%wc_product_tags%","%wc_product_type%","%wc_product_status%","%wc_product_meta_{key}%","","%user_login%","%user_email%","%first_name%","%last_name%","%display_name%","%user_id%","%user_role%","%user_meta_{key}%","%date%","%time%","%unique_id%"].map((function(e,a){return""===e?React.createElement("span",{className:"tag-break"}):React.createElement("span",{className:"tag",key:a,onClick:function(){var a;a=(a=null!==S?b.slice(0,S)+e+" "+b.slice(S):b+" "+e).trim(),n(st(st({},t),{},{wooCommerceUploadFolderNameTemplate:a}));var r=S+e.length+1;O.current.setSelectionRange(r,r)}},e)})))))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Upload Parent Folder","integrate-google-drive")," "),React.createElement("div",{className:"settings-field-content"},React.createElement("div",{className:"template-folder-wrap"},!!h&&React.createElement("div",{className:"template-folder"},React.createElement("div",{className:"template-folder-account"},igd.accounts[h.accountId]?igd.accounts[h.accountId].email:""),React.createElement("div",{className:"template-folder-item"},h.iconLink?React.createElement("img",{src:h.iconLink}):React.createElement("i",{className:"dashicons dashicons-category"}),React.createElement("span",{className:"template-folder-name"},h.name?h.name:g(h))),React.createElement("div",{className:"dashicons dashicons-no-alt",onClick:function(){return n(st(st({},t),{},{wooCommerceUploadParentFolder:null}))}},React.createElement("span",{className:"screen-reader-text"},wp.i18n.__("Remove","integrate-google-drive")))),React.createElement("button",{className:"igd-btn btn-primary",onClick:function(){Swal.fire({html:'<div id="igd-select-files" class="igd-module-builder-modal-wrap"></div>',showConfirmButton:!1,customClass:{container:"igd-module-builder-modal-container"},didOpen:function(e){var t=document.getElementById("igd-select-files");ReactDOM.render(React.createElement(ft,{initData:{folders:h?[h]:[]},onUpdate:function(e){var t=e.folders,a=void 0===t?[]:t;n((function(e){return st(st({},e),{},{wooCommerceUploadParentFolder:a[0]})})),Swal.close()},onClose:function(){return Swal.close()},isSelectFiles:!0,selectionType:"parent"}),t)},willClose:function(e){var t=document.getElementById("igd-select-files");ReactDOM.unmountComponentAtNode(t)}})}},React.createElement("i",{className:"dashicons dashicons-open-folder"}),React.createElement("span",null,h?wp.i18n.__("Change Parent Folder","integrate-google-drive"):wp.i18n.__("Select Parent Folder","integrate-google-drive")))),React.createElement("p",{className:"description"},wp.i18n.__("Select the parent folder where the new folders will be created with the uploaded files for each product.","integrate-google-drive"))))))))}function Rt(e){return Rt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rt(e)}function Et(e){return function(e){if(Array.isArray(e))return Nt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Nt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Nt(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Nt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function St(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function At(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?St(Object(n),!0).forEach((function(t){Ot(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):St(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ot(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Rt(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!==Rt(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Rt(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Pt=wp.components.FormToggle,kt=window.ReactTooltip,Ct=React.useEffect;function jt(e){var t=e.data,n=e.setData,a=!!igd.isPro,r=t.integrations,o=void 0===r?[]:r,i=t.dokanDownload,l=void 0===i||i,c=t.dokanUpload,s=void 0!==c&&c,d=m();return Ct((function(){d&&(l||s)&&n((function(e){return At(At({},e),{},{integrations:[].concat(Et(o),["woocommerce","dokan"])})}))}),[l,s]),React.createElement("div",{className:"igd-settings-body"},React.createElement("h3",{className:"igd-settings-body-title"},wp.i18n.__("Dokan Multi-vendor Settings","integrate-google-drive"),React.createElement("a",{href:"https://softlabbd.com/docs/how-to-allow-vendors-to-serve-sell-their-digital-download-files-directly-from-google-drive-in-dokan/",target:"_blank",className:"igd-btn btn-outline-info"},React.createElement("i",{className:"dashicons dashicons-editor-help"}),wp.i18n.__("Documentation","integrate-google-drive"))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Enable Downloads","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(Pt,{"data-tip":wp.i18n.__("Pro Feature","integrate-google-drive"),checked:a&&l,onChange:function(){a?n(At(At({},t),{},{dokanDownload:!l})):u(wp.i18n.__("Upgrade to the Pro version to enable Dokan downloads.","integrate-google-drive"))}}),!a&&React.createElement(kt,{className:"igd-tooltip",effect:"solid",place:"right",backgroundColor:"#FF9F10"}),React.createElement("p",{className:"description"},wp.i18n.__("Enable to allow vendors to use their Google Drive files as downloadable products.","integrate-google-drive")))),React.createElement("div",{className:"settings-field"},React.createElement("h4",{className:"settings-field-label"},wp.i18n.__("Enable Uploads","integrate-google-drive")),React.createElement("div",{className:"settings-field-content"},React.createElement(Pt,{"data-tip":wp.i18n.__("Pro Feature","integrate-google-drive"),checked:a&&s,onChange:function(){a?n(At(At({},t),{},{dokanUpload:!s})):u(wp.i18n.__("Upgrade to the Pro version to enable Dokan uploads.","integrate-google-drive"))}}),!a&&React.createElement(kt,{className:"igd-tooltip",effect:"solid",place:"right",backgroundColor:"#FF9F10"}),React.createElement("p",{className:"description"},wp.i18n.__("Enable to allow vendors to let customers upload files to their Google Drive.","integrate-google-drive")))))}function Ft(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,o,i,l=[],c=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(a=o.call(n)).done)&&(l.push(a.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Dt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Dt(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Dt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var Ut=React,Bt=Ut.useState,xt=Ut.useEffect,It=Ut.useRef;function Lt(){var e=[{key:"accounts",title:wp.i18n.__("Accounts","integrate-google-drive")},{key:"advanced",title:wp.i18n.__("Advanced","integrate-google-drive")},{key:"appearance",title:wp.i18n.__("Appearance","integrate-google-drive")},{key:"privateFolders",title:wp.i18n.__("Private Folders","integrate-google-drive")},{key:"userAccess",title:wp.i18n.__("User Access","integrate-google-drive")},{key:"statistics",title:wp.i18n.__("Statistics","integrate-google-drive")},{key:"integrations",title:wp.i18n.__("Integrations","integrate-google-drive")},{key:"woocommerce",title:wp.i18n.__("WooCommerce","integrate-google-drive")},{key:"dokan",title:wp.i18n.__("Dokan","integrate-google-drive")},{key:"sync",title:wp.i18n.__("Synchronization","integrate-google-drive")},{key:"tools",title:wp.i18n.__("Tools","integrate-google-drive")}],t=Ft(Bt(!1),2),n=t[0],a=t[1],r=new URLSearchParams(window.location.search).get("tab"),o=Ft(Bt(r||localStorage.getItem("igd_settings_tab")||"accounts"),2),i=o[0],l=o[1],c=Ft(Bt(igd.settings),2),s=c[0],d=c[1],g=function(){var e;a(!0),wp.ajax.post("igd_save_settings",{settings:(e=JSON.stringify(s),btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,(function(e,t){return String.fromCharCode("0x"+t)})))),nonce:igd.nonce}).done((function(){Swal.fire({title:!1,text:wp.i18n.__("Settings saved successfully.","integrate-google-drive"),icon:"success",toast:!0,timer:3e3,timerProgressBar:!0,showConfirmButton:!1,position:"top-end",customClass:{container:"igd-swal save-settings-toast"}})})).fail((function(e){console.log(e),Swal.fire({title:"Error",text:wp.i18n.__("An error occurred while saving the settings.","integrate-google-drive"),icon:"error"})})).always((function(){a(!1)}))},u=m();xt((function(){u&&(localStorage.setItem("igd_settings_tab",i),igd.showReviewPopup&&setTimeout((function(){!function(){f.apply(this,arguments)}()}),5e3))}),[i]);var p=It(s);return xt((function(){if(u){var e=100,t=p.current;for(var n in s)if(s[n]!==t[n]){if(["ownApp","exportData","syncType"].includes(n))return;["workspaceDomain","email","clientID","workspaceDomain","customCss","nameTemplate","notificationEmail","emailReportRecipients","wooCommerceUploadFolderNameTemplate","customSyncInterval"].includes(n)&&(e=2e3),["customCss"].includes(n)&&(e=5e3);break}p.current=s;var a=setTimeout((function(){g()}),e);return function(){return clearTimeout(a)}}}),[s]),React.createElement("div",{className:"igd-settings"},React.createElement("div",{className:"igd-settings-header"},React.createElement("div",{className:"igd-settings-header-title"},React.createElement("img",{src:"".concat(igd.pluginUrl,"/assets/images/settings/settings-icon.svg"),alt:"Settings"}),React.createElement("span",null,wp.i18n.__("Settings","integrate-google-drive"))),React.createElement("div",{className:"igd-settings-header-action"},React.createElement("button",{type:"button",className:"igd-btn btn-primary",onClick:g},n?React.createElement("div",{className:"igd-spinner"}):React.createElement("i",{className:"dashicons dashicons-saved"}),React.createElement("span",null,n?wp.i18n.__("Saving...","integrate-google-drive"):wp.i18n.__("Save Changes","integrate-google-drive"))))),React.createElement("div",{className:"igd-settings-menu"},e.map((function(e){var t=e.key,n=e.title,a=t===i,r="".concat(igd.pluginUrl,"/assets/images/settings/menu/").concat(t,".svg");return React.createElement("div",{key:t,className:"igd-settings-menu-item ".concat(a?"active":""),onClick:function(){return l(t)}},React.createElement("img",{src:r,alt:n}),React.createElement("span",null,n))}))),"accounts"===i&&React.createElement(E,null),"advanced"===i&&React.createElement(k,{data:s,setData:d}),"appearance"===i&&React.createElement(Be,{data:s,setData:d}),"sync"===i&&React.createElement(G,{data:s,setData:d}),"privateFolders"===i&&React.createElement(Se,{data:s,setData:d}),"integrations"===i&&React.createElement($,{data:s,setData:d}),"woocommerce"===i&&React.createElement(_t,{data:s,setData:d}),"dokan"===i&&React.createElement(jt,{data:s,setData:d}),"userAccess"===i&&React.createElement(nt,{data:s,setData:d}),"statistics"===i&&React.createElement(se,{data:s,setData:d}),"tools"===i&&React.createElement(We,{data:s,setData:d,saveSettings:g}))}var Tt=document.getElementById("igd-settings");Tt&&ReactDOM.render(React.createElement(Lt,null),Tt)})();
  • integrate-google-drive/trunk/includes/class-admin.php

    r2997844 r3004719  
    4040            return;
    4141        }
    42         //Rating notice
     42        // Rating notice
    4343        if ( 'off' != get_option( 'igd_rating_notice' ) && 'off' != get_transient( 'igd_rating_notice_interval' ) ) {
    4444            add_filter( 'igd_localize_data', function ( $data ) {
  • integrate-google-drive/trunk/includes/class-ajax.php

    r2991758 r3004719  
    213213    }
    214214   
    215     public function get_export_data( $request )
     215    public function get_export_data()
    216216    {
    217217        $type = ( !empty($_POST['$type']) ? sanitize_text_field( $_POST['$type'] ) : 'all' );
     
    391391    public function update_shortcode()
    392392    {
     393        if ( !igd_can_access( 'shortcode_builder' ) ) {
     394            wp_send_json_error( __( 'You do not have permission to access this page', 'integrate-google-drive' ) );
     395        }
    393396        $data = ( !empty($_POST['data']) ? json_decode( base64_decode( $_POST['data'] ), true ) : [] );
    394397        $id = Shortcode_Builder::instance()->update_shortcode( $data );
     
    472475    public function save_settings()
    473476    {
     477        $nonce = ( !empty($_POST['nonce']) ? sanitize_text_field( $_POST['nonce'] ) : '' );
     478        if ( !wp_verify_nonce( $nonce, 'wp_rest' ) ) {
     479            wp_send_json_error( __( 'Invalid request', 'integrate-google-drive' ) );
     480        }
     481        if ( !igd_can_access( 'settings' ) ) {
     482            wp_send_json_error( __( 'You do not have permission to access this page', 'integrate-google-drive' ) );
     483        }
    474484        $settings = ( !empty($_POST['settings']) ? json_decode( base64_decode( $_POST['settings'] ), true ) : [] );
    475485        update_option( 'igd_settings', $settings );
  • integrate-google-drive/trunk/includes/class-enqueue.php

    r2991534 r3004719  
    5353        $js_deps = array(
    5454            'wp-element',
    55             'wp-api-fetch',
    5655            'wp-i18n',
    5756            'wp-util',
     
    280279        );
    281280        wp_register_script(
    282             'igd-react-sortable-hoc',
    283             IGD_ASSETS . '/vendor/react-sortable-hoc.js',
    284             [],
    285             IGD_VERSION,
    286             true
    287         );
    288         wp_register_script(
    289281            'igd-react-tooltip',
    290282            IGD_ASSETS . '/vendor/react-tooltip.js',
     
    301293            "wp-element",
    302294            "wp-components",
    303             "wp-api-fetch",
    304295            "wp-i18n",
    305296            "wp-util",
     
    308299            "igd-sweetalert2",
    309300            "igd-react-select",
    310             "igd-react-sortable-hoc",
    311301            "igd-react-tooltip"
    312302        ),
  • integrate-google-drive/trunk/includes/class-hooks.php

    r2997844 r3004719  
    4949            $client = Client::instance();
    5050            $client->create_access_token();
    51             $redirect = admin_url( 'admin.php?page=integrate-google-drive-settings&tab=accounts' );
    52             echo  '<script type="text/javascript">window.opener.parent.location.href = "' . $redirect . '"; window.close();</script>' ;
     51            echo  '<script type="text/javascript">window.opener.parent.location.reload(); window.close();</script>' ;
    5352            die;
    5453        }
     
    5857    public function create_user_folder( $user_id )
    5958    {
     59        $allowed_user_roles = igd_get_settings( 'allowedUserRoles', [
     60            'editor',
     61            'contributor',
     62            'author',
     63            'subscriber'
     64        ] );
     65        // Check if user role is allowed
     66        $user = get_user_by( 'id', $user_id );
     67        if ( !in_array( $user->roles[0], $allowed_user_roles ) ) {
     68            return;
     69        }
    6070        Private_Folders::instance()->create_user_folder( $user_id );
    6171    }
     
    113123            ?></title>
    114124
    115                 <?php
     125                <?php
    116126            wp_enqueue_style( 'google-font-roboto', 'https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap' );
    117127            ?>
  • integrate-google-drive/trunk/includes/class-shortcode.php

    r2991534 r3004719  
    258258            return !igd_is_dir( $file ) && !empty($file['thumbnailLink']);
    259259        } );
     260        // Sort the files.
     261        if ( !empty($this->data['sort']) ) {
     262            $filtered_files = igd_sort_files( $filtered_files, $this->data['sort'] );
     263        }
    260264        // Merge and re-index the folders with the filtered files.
    261265        $this->data['folders'] = array_values( $filtered_files );
     
    327331            $client->setUseBatch( true );
    328332            foreach ( $this->data['folders'] as $key => $folder ) {
    329                 $request = $service->files->get( $folder['id'], [
    330                     'supportsAllDrives' => true,
    331                     'fields'            => $app->file_fields,
    332                 ] );
     333                // Check if file is drive
     334               
     335                if ( !empty($folder['shared-drives']) ) {
     336                    $request = $service->drives->get( $folder['id'], [
     337                        'fields' => '*',
     338                    ] );
     339                } else {
     340                    $request = $service->files->get( $folder['id'], [
     341                        'supportsAllDrives' => true,
     342                        'fields'            => $app->file_fields,
     343                    ] );
     344                }
     345               
    333346                $batch->add( $request, ( $key ?: '-1' ) );
    334347            }
     
    350363                }
    351364               
    352                 $file = igd_file_map( $file, $account_id );
     365                // check if file is drive
     366               
     367                if ( is_a( $file, 'IGDGoogle_Service_Drive_DriveList' ) ) {
     368                    $file = igd_drive_map( $file, $account_id );
     369                } else {
     370                    $file = igd_file_map( $file, $account_id );
     371                }
     372               
    353373                Files::add_file( $file );
    354374                $this->data['folders'][$index] = $file;
     
    367387        if ( isset( $this->data['fileNumbers'] ) && $this->data['fileNumbers'] > 0 && count( $this->data['folders'] ) > $this->data['fileNumbers'] ) {
    368388            $this->data['folders'] = array_values( array_slice( $this->data['folders'], 0, $this->data['fileNumbers'] ) );
     389        }
     390        // Sort files
     391        if ( !empty($this->data['sort']) ) {
     392            $this->data['folders'] = igd_sort_files( $this->data['folders'], $this->data['sort'] );
    369393        }
    370394    }
  • integrate-google-drive/trunk/includes/functions.php

    r2996843 r3004719  
    262262        ];
    263263    }
     264
     265    return $file;
     266}
     267
     268function igd_drive_map( $drive, $account_id ) {
     269    if ( empty( $account_id ) ) {
     270        $account_id = Account::instance()->get_active_account()['id'];
     271    }
     272
     273    $drive = $drive->toSimpleObject();
     274
     275    $file = [
     276        'id'            => $drive->id,
     277        'name'          => $drive->name,
     278        'iconLink'      => $drive->backgroundImageLink,
     279        'thumbnailLink' => $drive->backgroundImageLink,
     280        'created'       => $drive->createdTime,
     281        'updated'       => $drive->createdTime,
     282        'hidden'        => $drive->hidden,
     283        'shared-drives' => true,
     284        'accountId'     => $account_id,
     285        'type'          => 'application/vnd.google-apps.folder',
     286        'parents'       => [ 'shared-drives' ],
     287    ];
     288
     289    $file['permissions'] = $drive->capabilities;
    264290
    265291    return $file;
     
    702728}
    703729
    704 function igd_get_all_child_folders( $folder ) {
    705 
     730function igd_get_child_items( $folder ) {
    706731    $args = [
    707732        'folder' => $folder,
    708733    ];
    709734
    710     $list = [];
    711 
    712735    $app = App::instance( $folder['accountId'] );
    713736
    714     $data  = $app->get_files( $args );
    715     $files = ! empty( $data['files'] ) ? $data['files'] : [];
     737    $data = $app->get_files( $args );
    716738
    717739    if ( ! empty( $data['error'] ) ) {
    718740        error_log( 'Integrate Google Drive - Error: ' . $data['error'] );
    719741
    720         return $list;
    721     }
    722 
    723     if ( ! empty( $files ) ) {
    724         foreach ( $files as $file ) {
    725 
    726             if ( ! igd_is_dir( $file ) ) {
    727                 continue;
    728             }
    729 
    730             $list[]        = $file;
    731             $child_folders = igd_get_all_child_folders( $file );
     742        return [];
     743    }
     744
     745    return ! empty( $data['files'] ) ? $data['files'] : [];
     746}
     747
     748function igd_get_all_child_folders( $folder ) {
     749
     750    $folders = array_filter( igd_get_child_items( $folder ), function ( $file ) {
     751        return igd_is_dir( $file );
     752    } );
     753
     754    $list = [];
     755
     756    if ( ! empty( $folders ) ) {
     757        foreach ( $folders as $folder_item ) {
     758            $list[]        = $folder_item;
     759            $child_folders = igd_get_all_child_folders( $folder_item );
    732760            $list          = array_merge( $list, $child_folders );
    733761        }
     
    739767function igd_get_all_child_files( $folder ) {
    740768
    741     $args = [
    742         'folder' => $folder,
    743     ];
     769    $items = igd_get_child_items( $folder );
    744770
    745771    $list = [];
    746772
    747     $app = App::instance( $folder['accountId'] );
    748 
    749     $data  = $app->get_files( $args );
    750     $files = ! empty( $data['files'] ) ? $data['files'] : [];
    751 
    752     if ( ! empty( $data['error'] ) ) {
    753         error_log( 'Integrate Google Drive - Error: ' . $data['error'] );
    754 
    755         return $list;
    756     }
    757 
    758     if ( ! empty( $files ) ) {
    759         foreach ( $files as $file ) {
    760             if ( igd_is_dir( $file ) ) {
    761                 $child_files = igd_get_all_child_files( $file );
     773    if ( ! empty( $items ) ) {
     774        foreach ( $items as $item ) {
     775
     776            if ( igd_is_dir( $item ) ) {
     777                $child_files = igd_get_all_child_files( $item );
    762778                $list        = array_merge( $list, $child_files );
    763779                continue;
    764780            }
    765781
    766             $list[] = $file;
     782            $list[] = $item;
    767783        }
    768784    }
     
    779795    if ( ! empty( $file['parents'] ) ) {
    780796        foreach ( $file['parents'] as $parent_id ) {
    781             $parent_folder = $app->get_file_by_id( $parent_id ); // Assuming `get_file` is a method to get a file's details using its id
     797            $parent_folder = $app->get_file_by_id( $parent_id );
    782798
    783799            // Check if retrieved parent folder is indeed a directory
     
    15321548function igd_can_access( $access_right ) {
    15331549
     1550    if ( ! is_user_logged_in() ) {
     1551        return false;
     1552    }
     1553
    15341554    if ( ! function_exists( 'wp_get_current_user' ) ) {
    15351555        include_once( ABSPATH . "wp-includes/pluggable.php" );
     
    20332053    return false; // It's either not a valid email or not a Gmail address
    20342054}
     2055
     2056function igd_sort_files( $files, $sort ) {
     2057
     2058    if ( empty( $sort ) ) {
     2059        $sort = [ 'sortBy' => 'name', 'sortDirection' => 'asc' ];
     2060    }
     2061
     2062    $sort_by        = $sort['sortBy'];
     2063    $sort_direction = $sort['sortDirection'] === 'asc' ? SORT_ASC : SORT_DESC;
     2064
     2065    $is_random = 'random' == $sort_by;
     2066
     2067    // Initializing sorting arrays
     2068    $sort_array           = [];
     2069    $sort_array_secondary = [];
     2070
     2071    // Populating sorting arrays and adding isFolder attribute to files
     2072    foreach ( $files as $key => $file ) {
     2073        $files[ $key ]['isFolder'] = igd_is_dir( $file );
     2074        $sort_array[ $key ]        = $files[ $key ]['isFolder'];
     2075
     2076        if ( ! $is_random ) {
     2077            // Convert date to timestamp if needed
     2078            $sort_array_secondary[ $key ] = in_array( $sort_by, [
     2079                'created',
     2080                'updated'
     2081            ] ) ? strtotime( $file[ $sort_by ] ) : $file[ $sort_by ];
     2082        }
     2083    }
     2084
     2085    if ( $is_random ) {
     2086        shuffle( $files );
     2087    } else {
     2088        array_multisort( $sort_array, SORT_DESC, $sort_array_secondary, $sort_direction, SORT_NATURAL | SORT_FLAG_CASE, $files );
     2089    }
     2090
     2091    return $files;
     2092}
  • integrate-google-drive/trunk/includes/views/getting-started/what-new.php

    r2997844 r3004719  
    33$logs = [
    44
     5    'v.1.3.4' => [
     6        'date' => '2023-12-03',
     7        'new'  => [
     8            'Added user role based private folder creation on user registration.',
     9            'Added sort option for slider module.',
     10            'Added random sort option for shortcode module files.',
     11        ],
     12        'fix'  => [
     13            'Fixed uploader browse files button not working properly on IOS devices.',
     14            'Fixed search module not working properly.',
     15        ],
     16
     17    ],
    518    'v.1.3.3' => [
    619        'date' => '2023-11-17',
  • integrate-google-drive/trunk/languages/integrate-google-drive.pot

    r2997844 r3004719  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Integrate Google Drive 1.3.2\n"
     5"Project-Id-Version: Integrate Google Drive 1.3.4\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/integrate-google-drive\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2023-11-17T17:53:52+00:00\n"
     12"POT-Creation-Date: 2023-12-03T04:24:52+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.6.0\n"
     
    1717#. Plugin Name of the plugin
    1818#: includes/blocks/class-blocks.php:89
    19 #: includes/class-admin.php:170
     19#: includes/class-admin.php:186
    2020#: includes/elementor/class-elementor.php:475
    2121#: includes/integrations/class-acf.php:16
     
    4040msgstr ""
    4141
    42 #: app/class-app.php:128
     42#: app/class-app.php:129
    4343msgid "Server error"
    4444msgstr ""
    4545
    46 #: app/class-app.php:128
     46#: app/class-app.php:129
    4747msgid "Couldn't connect to the Google drive API server."
    4848msgstr ""
     
    5252msgstr ""
    5353
    54 #: app/class-private-folders.php:198
     54#: app/class-private-folders.php:182
    5555msgctxt "No user roles"
    5656msgid "None"
     
    7373msgstr ""
    7474
    75 #: includes/class-admin.php:105
     75#: includes/class-admin.php:121
    7676msgid "File Browser - Integrate Google Drive"
    7777msgstr ""
    7878
    79 #: includes/class-admin.php:106
     79#: includes/class-admin.php:122
    8080#: includes/elementor/class-elementor-browser-widget__premium_only.php:18
    8181#: includes/elementor/class-elementor-browser-widget__premium_only.php:57
     
    8484#: includes/views/getting-started/introduction.php:123
    8585#: includes/views/getting-started/introduction.php:136
     86#: assets/js/admin.js:1
    8687msgid "File Browser"
    8788msgstr ""
    8889
    89 #: includes/class-admin.php:110
     90#: includes/class-admin.php:126
    9091msgid "Shortcode Builder - Integrate Google Drive"
    9192msgstr ""
    9293
    93 #: includes/class-admin.php:111
     94#: includes/class-admin.php:127
    9495#: includes/views/getting-started/basic-usage.php:90
    9596#: includes/views/getting-started/basic-usage.php:117
    9697#: includes/views/getting-started/get-pro.php:29
     98#: assets/js/admin.js:1
    9799msgid "Shortcode Builder"
    98100msgstr ""
    99101
    100 #: includes/class-admin.php:115
     102#: includes/class-admin.php:131
    101103msgid "Users Private Files - Integrate Google Drive"
    102104msgstr ""
    103105
    104 #: includes/class-admin.php:116
     106#: includes/class-admin.php:132
    105107msgid "Users Private Files"
    106108msgstr ""
    107109
    108 #: includes/class-admin.php:120
     110#: includes/class-admin.php:136
    109111msgid "Getting Started - Integrate Google Drive"
    110112msgstr ""
    111113
    112 #: includes/class-admin.php:121
     114#: includes/class-admin.php:137
    113115#: includes/views/getting-started/index.php:17
    114116msgid "Getting Started"
    115117msgstr ""
    116118
    117 #: includes/class-admin.php:125
     119#: includes/class-admin.php:141
    118120msgid "Statistics - Integrate Google Drive"
    119121msgstr ""
    120122
    121 #: includes/class-admin.php:126
     123#: includes/class-admin.php:142
    122124#: includes/views/getting-started/get-pro.php:69
     125#: assets/js/settings.js:1
     126#: assets/js/statistics.js:1
    123127msgid "Statistics"
    124128msgstr ""
    125129
    126 #: includes/class-admin.php:130
     130#: includes/class-admin.php:146
    127131msgid "Settings - Integrate Google Drive"
    128132msgstr ""
    129133
    130 #: includes/class-admin.php:131
     134#: includes/class-admin.php:147
    131135#: includes/integrations/templates/tutor/dashboard/settings/google-drive.php:19
     136#: assets/js/settings.js:1
    132137msgid "Settings"
    133138msgstr ""
    134139
    135 #: includes/class-admin.php:158
    136 #: includes/class-admin.php:159
     140#: includes/class-admin.php:174
     141#: includes/class-admin.php:175
    137142msgid "Recommended Plugins"
    138143msgstr ""
    139144
    140 #: includes/class-admin.php:171
     145#: includes/class-admin.php:187
    141146#: includes/class-tinymce.php:35
    142147#: includes/integrations/class-dokan.php:395
     
    154159msgstr ""
    155160
    156 #: includes/class-ajax.php:510
     161#: includes/class-ajax.php:490
     162#: includes/class-ajax.php:594
     163msgid "You do not have permission to access this page"
     164msgstr ""
     165
     166#: includes/class-ajax.php:514
    157167msgid "No active account found"
    158168msgstr ""
    159169
    160 #: includes/class-ajax.php:652
     170#: includes/class-ajax.php:590
     171#: includes/class-ajax.php:666
    161172msgid "Invalid request"
    162173msgstr ""
    163174
    164175#. translators: %s: User feedback
    165 #: includes/class-ajax.php:742
     176#: includes/class-ajax.php:756
    166177msgid "Feedback: %s"
    167178msgstr ""
    168179
    169180#. translators: %s: Website URL
    170 #: includes/class-ajax.php:746
     181#: includes/class-ajax.php:760
    171182msgid "Website URL: %s"
    172183msgstr ""
    173184
    174185#. translators: %s: Plugin name
    175 #: includes/class-ajax.php:749
     186#: includes/class-ajax.php:763
    176187msgid "Feedback for %s"
    177188msgstr ""
    178189
    179 #: includes/class-ajax.php:790
    180 #: includes/class-ajax.php:884
     190#: includes/class-ajax.php:804
     191#: includes/class-ajax.php:898
    181192msgid "Something went wrong! Preview is not available"
    182193msgstr ""
    183194
    184 #: includes/class-ajax.php:806
    185 #: includes/class-ajax.php:851
     195#: includes/class-ajax.php:820
     196#: includes/class-ajax.php:865
    186197#: includes/class-statistics__premium_only.php:180
    187198msgid "Invalid nonce"
    188199msgstr ""
    189200
    190 #: includes/class-ajax.php:905
     201#: includes/class-ajax.php:919
    191202msgid "Something went wrong! File may be deleted or moved to trash."
    192203msgstr ""
     
    197208
    198209#: includes/class-email-report__premium_only.php:83
     210#: assets/js/settings.js:1
    199211msgid "Weekly"
    200212msgstr ""
    201213
    202214#: includes/class-email-report__premium_only.php:87
     215#: assets/js/settings.js:1
    203216msgid "Monthly"
    204217msgstr ""
    205218
    206219#: includes/class-email-report__premium_only.php:90
     220#: assets/js/settings.js:1
    207221msgid "Daily"
    208222msgstr ""
     
    213227
    214228#. translators: %d: number of files
    215 #: includes/class-hooks.php:224
    216 #: includes/class-hooks.php:240
     229#: includes/class-hooks.php:235
     230#: includes/class-hooks.php:251
    217231msgid "%d file uploaded to Google Drive"
    218232msgid_plural "%d files uploaded to Google Drive"
     
    220234msgstr[1] ""
    221235
    222 #: includes/class-hooks.php:289
     236#: includes/class-hooks.php:300
    223237msgid "Integrate Google Drive Synchronize Interval"
    224238msgstr ""
     
    279293
    280294#: includes/class-shortcode.php:44
     295#: assets/js/admin.js:1
    281296msgid "Access Denied"
    282297msgstr ""
    283298
    284299#: includes/class-shortcode.php:44
     300#: assets/js/admin.js:1
    285301msgid "We're sorry, but your account does not currently have access to this content. To gain access, please contact the site administrator who can assist in linking your account to the appropriate content. Thank you."
    286302msgstr ""
     
    289305#: includes/class-statistics__premium_only.php:78
    290306#: includes/class-statistics__premium_only.php:92
     307#: assets/js/admin.js:1
     308#: assets/js/frontend.js:1
    291309msgid "Type"
    292310msgstr ""
     
    305323#: includes/class-statistics__premium_only.php:61
    306324#: includes/class-statistics__premium_only.php:98
     325#: assets/js/statistics.js:1
    307326msgid "Date"
    308327msgstr ""
     
    353372#: includes/elementor/class-elementor-uploader-widget__premium_only.php:97
    354373#: includes/elementor/class-elementor-view-widget.php:98
     374#: assets/js/admin.js:1
    355375msgid "Configure Module"
    356376msgstr ""
     
    496516#: includes/elementor/class-elementor-download-widget.php:58
    497517#: includes/elementor/class-elementor-download-widget.php:91
     518#: assets/js/admin.js:1
    498519msgid "Insert Download Links"
    499520msgstr ""
     
    504525#: includes/views/getting-started/basic-usage.php:85
    505526#: includes/views/getting-started/introduction.php:220
     527#: assets/js/admin.js:1
    506528msgid "Embed Documents"
    507529msgstr ""
     
    531553#: includes/elementor/class-elementor-gallery-widget.php:19
    532554#: includes/views/getting-started/introduction.php:178
     555#: assets/js/admin.js:1
    533556msgid "Gallery"
    534557msgstr ""
     
    548571#: includes/elementor/class-elementor.php:366
    549572#: includes/views/getting-started/introduction.php:162
     573#: assets/js/admin.js:1
    550574msgid "Media Player"
    551575msgstr ""
     
    553577#: includes/elementor/class-elementor-search-widget__premium_only.php:19
    554578#: includes/elementor/class-elementor.php:372
     579#: assets/js/admin.js:1
    555580msgid "Search Box"
    556581msgstr ""
     
    563588#: includes/views/getting-started/basic-usage.php:60
    564589#: includes/views/getting-started/introduction.php:208
     590#: assets/js/admin.js:1
    565591msgid "File Search"
    566592msgstr ""
    567593
    568594#: includes/elementor/class-elementor-shortcodes-widget.php:17
     595#: assets/js/admin.js:1
    569596msgid "Module Shortcodes"
    570597msgstr ""
     
    586613#: includes/elementor/class-elementor.php:378
    587614#: includes/views/getting-started/introduction.php:192
     615#: assets/js/admin.js:1
    588616msgid "Slider Carousel"
    589617msgstr ""
     
    600628#: includes/views/getting-started/introduction.php:143
    601629#: includes/views/getting-started/introduction.php:155
     630#: assets/js/admin.js:1
    602631msgid "File Uploader"
    603632msgstr ""
     
    606635#: includes/elementor/class-elementor-view-widget.php:58
    607636#: includes/elementor/class-elementor-view-widget.php:91
     637#: assets/js/admin.js:1
    608638msgid "Insert View Links"
    609639msgstr ""
     
    631661
    632662#: includes/functions.php:45
     663#: assets/js/admin.js:1
     664#: assets/js/frontend.js:1
     665#: assets/js/settings.js:1
    633666msgid "Shared Drives"
    634667msgstr ""
    635668
    636669#: includes/functions.php:53
     670#: assets/js/admin.js:1
     671#: assets/js/frontend.js:1
     672#: assets/js/settings.js:1
    637673msgid "Shared with me"
    638674msgstr ""
    639675
    640676#: includes/functions.php:57
     677#: assets/js/admin.js:1
     678#: assets/js/frontend.js:1
     679#: assets/js/settings.js:1
    641680msgid "Computers"
    642681msgstr ""
    643682
    644 #: includes/functions.php:1476
     683#: includes/functions.php:1492
    645684msgid "The file you are trying to load does not exist in your theme or Tutor LMS plugin location. If you are extending the Tutor LMS plugin, please create a php file here: "
    646685msgstr ""
     
    652691#: includes/integrations/class-acf.php:49
    653692#: includes/integrations/class-cf7.php:292
     693#: assets/js/admin.js:1
     694#: assets/js/frontend.js:1
     695#: assets/js/private-folders.js:1
    654696msgid "Name"
    655697msgstr ""
    656698
    657699#: includes/integrations/class-acf.php:51
     700#: assets/js/admin.js:1
     701#: assets/js/private-folders.js:1
    658702msgid "Actions"
    659703msgstr ""
     
    664708
    665709#: includes/integrations/class-acf.php:67
     710#: assets/js/admin.js:1
     711#: assets/js/frontend.js:1
    666712msgid "Download"
    667713msgstr ""
     
    670716#: includes/integrations/templates/dokan-settings.php:63
    671717#: includes/integrations/templates/tutor/dashboard/settings/google-drive.php:61
     718#: assets/js/admin.js:1
     719#: assets/js/frontend.js:1
     720#: assets/js/settings.js:1
    672721msgid "Remove"
    673722msgstr ""
     
    678727
    679728#: includes/integrations/class-acf.php:82
     729#: assets/js/dokan.js:1
     730#: assets/js/edd.js:1
     731#: assets/js/woocommerce.js:1
    680732msgid "Add File"
    681733msgstr ""
     
    843895
    844896#: includes/integrations/class-fluentforms.php:194
     897#: assets/js/admin.js:1
    845898msgid "Shortcode Data"
    846899msgstr ""
     
    889942#. translators: %s: minimum files
    890943#: includes/integrations/class-ninjaforms.php:252
     944#: assets/js/frontend.js:1
    891945msgid "Please upload at least %s files."
    892946msgstr ""
     
    894948#: includes/integrations/class-tutor.php:201
    895949#: includes/integrations/class-tutor.php:389
     950#: assets/js/admin.js:1
     951#: assets/js/frontend.js:1
    896952msgid "Size"
    897953msgstr ""
     
    924980#: includes/integrations/templates/dokan-settings.php:27
    925981#: includes/integrations/templates/tutor/dashboard/settings/google-drive.php:71
     982#: assets/js/settings.js:1
    926983msgid "Add new account"
    927984msgstr ""
     
    929986#: includes/integrations/templates/dokan-settings.php:57
    930987#: includes/integrations/templates/tutor/dashboard/settings/google-drive.php:55
     988#: assets/js/admin.js:1
     989#: assets/js/frontend.js:1
     990#: assets/js/settings.js:1
    931991msgid "Refresh"
    932992msgstr ""
     
    934994#: includes/integrations/templates/dokan-settings.php:74
    935995#: includes/integrations/templates/tutor/dashboard/settings/google-drive.php:79
     996#: assets/js/admin.js:1
     997#: assets/js/frontend.js:1
    936998msgid "You didn't link any account yet."
    937999msgstr ""
     
    9391001#: includes/integrations/templates/dokan-settings.php:76
    9401002#: includes/integrations/templates/tutor/dashboard/settings/google-drive.php:81
     1003#: assets/js/admin.js:1
     1004#: assets/js/frontend.js:1
    9411005msgid "Please link to a Google Drive account to continue."
    9421006msgstr ""
     
    9441008#: includes/integrations/templates/dokan-settings.php:81
    9451009#: includes/integrations/templates/tutor/dashboard/settings/google-drive.php:86
     1010#: assets/js/admin.js:1
     1011#: assets/js/frontend.js:1
    9461012msgid "Sign in with Google"
    9471013msgstr ""
     
    9601026
    9611027#: includes/integrations/templates/dokan-settings.php:110
     1028#: assets/js/settings.js:1
    9621029msgid "Upload Box Locations"
    9631030msgstr ""
    9641031
    9651032#: includes/integrations/templates/dokan-settings.php:119
     1033#: assets/js/settings.js:1
    9661034msgid "Product Page"
    9671035msgstr ""
    9681036
    9691037#: includes/integrations/templates/dokan-settings.php:120
     1038#: assets/js/settings.js:1
    9701039msgid "Cart Page"
    9711040msgstr ""
    9721041
    9731042#: includes/integrations/templates/dokan-settings.php:121
     1043#: assets/js/settings.js:1
    9741044msgid "Checkout Page"
    9751045msgstr ""
    9761046
    9771047#: includes/integrations/templates/dokan-settings.php:122
     1048#: assets/js/settings.js:1
    9781049msgid "Order Received Page"
    9791050msgstr ""
    9801051
    9811052#: includes/integrations/templates/dokan-settings.php:123
     1053#: assets/js/settings.js:1
    9821054msgid "My Account Page"
    9831055msgstr ""
     
    10131085
    10141086#: includes/integrations/templates/dokan-settings.php:247
     1087#: assets/js/settings.js:1
    10151088msgid "Upload Parent Folder"
    10161089msgstr ""
    10171090
    10181091#: includes/integrations/templates/dokan-settings.php:299
     1092#: assets/js/admin.js:1
     1093#: assets/js/settings.js:1
    10191094msgid "Change Parent Folder"
    10201095msgstr ""
    10211096
    10221097#: includes/integrations/templates/dokan-settings.php:299
     1098#: assets/js/admin.js:1
     1099#: assets/js/settings.js:1
    10231100msgid "Select Parent Folder"
    10241101msgstr ""
     
    11201197
    11211198#: includes/views/email-report__premium_only.php:77
     1199#: assets/js/statistics.js:1
    11221200msgid "Top Downloads"
    11231201msgstr ""
    11241202
    11251203#: includes/views/email-report__premium_only.php:81
     1204#: assets/js/statistics.js:1
    11261205msgid "Top Uploads"
    11271206msgstr ""
    11281207
    11291208#: includes/views/email-report__premium_only.php:85
     1209#: assets/js/statistics.js:1
    11301210msgid "Top Streams"
    11311211msgstr ""
    11321212
    11331213#: includes/views/email-report__premium_only.php:89
     1214#: assets/js/statistics.js:1
    11341215msgid "Top Previews"
    11351216msgstr ""
    11361217
    11371218#: includes/views/email-report__premium_only.php:116
     1219#: assets/js/statistics.js:1
    11381220msgid "File"
    11391221msgstr ""
     
    11481230
    11491231#: includes/views/email-report__premium_only.php:179
     1232#: assets/js/statistics.js:1
    11501233msgid "A visitor"
    11511234msgstr ""
     
    13191402
    13201403#: includes/views/getting-started/basic-usage.php:139
     1404#: assets/js/private-folders.js:1
     1405#: assets/js/settings.js:1
    13211406msgid "User Private Files"
    13221407msgstr ""
     
    16241709
    16251710#: includes/views/getting-started/get-pro.php:175
     1711#: assets/js/admin.js:1
     1712#: assets/js/frontend.js:1
     1713#: assets/js/private-folders.js:1
     1714#: assets/js/settings.js:1
    16261715msgid "Upgrade Now"
    16271716msgstr ""
     
    17541843#: includes/views/getting-started/help.php:91
    17551844#: includes/views/getting-started/help.php:97
     1845#: assets/js/admin.js:1
     1846#: assets/js/private-folders.js:1
     1847#: assets/js/settings.js:1
    17561848msgid "Documentation"
    17571849msgstr ""
     
    18141906
    18151907#: includes/views/getting-started/introduction.php:5
     1908#: assets/js/settings.js:1
    18161909msgid "Classic Editor"
    18171910msgstr ""
    18181911
    18191912#: includes/views/getting-started/introduction.php:6
     1913#: assets/js/settings.js:1
    18201914msgid "Add Google Drive module, embed documents and insert file view links and download links using the Google Drive button on the classic editor."
    18211915msgstr ""
    18221916
    18231917#: includes/views/getting-started/introduction.php:10
     1918#: assets/js/settings.js:1
    18241919msgid "Gutenberg Editor"
    18251920msgstr ""
    18261921
    18271922#: includes/views/getting-started/introduction.php:11
     1923#: assets/js/settings.js:1
    18281924msgid "Add Google Drive modules, embed documents and insert file view links and download links using the Google Drive Gutenberg editor blocks"
    18291925msgstr ""
    18301926
    18311927#: includes/views/getting-started/introduction.php:15
     1928#: assets/js/settings.js:1
    18321929msgid "Elementor"
    18331930msgstr ""
    18341931
    18351932#: includes/views/getting-started/introduction.php:16
     1933#: assets/js/settings.js:1
    18361934msgid "Add Google Drive modules, embed documents and insert file view links and download links using the Google Drive Elementor widgets."
    18371935msgstr ""
    18381936
    18391937#: includes/views/getting-started/introduction.php:21
     1938#: assets/js/settings.js:1
    18401939msgid "Divi"
    18411940msgstr ""
     
    18461945
    18471946#: includes/views/getting-started/introduction.php:26
     1947#: assets/js/settings.js:1
    18481948msgid "Advanced Custom Fields"
    18491949msgstr ""
    18501950
    18511951#: includes/views/getting-started/introduction.php:27
     1952#: assets/js/settings.js:1
    18521953msgid "Allows you to select Google Drive files and folders using ACF field and display in theme template file."
    18531954msgstr ""
    18541955
    18551956#: includes/views/getting-started/introduction.php:31
     1957#: assets/js/settings.js:1
    18561958msgid "WooCommerce"
    18571959msgstr ""
     
    18621964
    18631965#: includes/views/getting-started/introduction.php:35
     1966#: assets/js/settings.js:1
    18641967msgid "Dokan"
    18651968msgstr ""
    18661969
    18671970#: includes/views/getting-started/introduction.php:36
     1971#: assets/js/settings.js:1
    18681972msgid "Allows vendors to serve their Google Drive files as downloadable files and let customer upload files to Google Drive on checkout."
    18691973msgstr ""
    18701974
    18711975#: includes/views/getting-started/introduction.php:39
     1976#: assets/js/settings.js:1
    18721977msgid "Easy Digital Downloads"
    18731978msgstr ""
    18741979
    18751980#: includes/views/getting-started/introduction.php:40
     1981#: assets/js/settings.js:1
    18761982msgid "Allows you to serve your Easy Digital Downloads files directly from Google Drive."
    18771983msgstr ""
    18781984
    18791985#: includes/views/getting-started/introduction.php:43
     1986#: assets/js/settings.js:1
    18801987msgid "Tutor LMS"
    18811988msgstr ""
    18821989
    18831990#: includes/views/getting-started/introduction.php:44
     1991#: assets/js/settings.js:1
    18841992msgid "Allows Instructors to link their Google accounts for efficient and independent course material management."
    18851993msgstr ""
    18861994
    18871995#: includes/views/getting-started/introduction.php:47
     1996#: assets/js/settings.js:1
    18881997msgid "Contact Form 7"
    18891998msgstr ""
    18901999
    18912000#: includes/views/getting-started/introduction.php:48
     2001#: assets/js/settings.js:1
    18922002msgid "Allows you to upload your files directly to Google Drive from your Contact Form 7 upload field."
    18932003msgstr ""
    18942004
    18952005#: includes/views/getting-started/introduction.php:51
     2006#: assets/js/settings.js:1
    18962007msgid "WPForms"
    18972008msgstr ""
    18982009
    18992010#: includes/views/getting-started/introduction.php:52
     2011#: assets/js/settings.js:1
    19002012msgid "Allows you to upload your files directly to Google Drive from your WPForms upload field."
    19012013msgstr ""
    19022014
    19032015#: includes/views/getting-started/introduction.php:55
     2016#: assets/js/settings.js:1
    19042017msgid "Gravity Forms"
    19052018msgstr ""
    19062019
    19072020#: includes/views/getting-started/introduction.php:56
     2021#: assets/js/settings.js:1
    19082022msgid "Allows you to upload your files directly to Google Drive from your Gravity Forms upload field."
    19092023msgstr ""
    19102024
    19112025#: includes/views/getting-started/introduction.php:59
     2026#: assets/js/settings.js:1
    19122027msgid "Fluent Forms"
    19132028msgstr ""
    19142029
    19152030#: includes/views/getting-started/introduction.php:60
     2031#: assets/js/settings.js:1
    19162032msgid "Allows you to upload your files directly to Google Drive from your Fluent Forms upload field."
    19172033msgstr ""
    19182034
    19192035#: includes/views/getting-started/introduction.php:63
     2036#: assets/js/settings.js:1
    19202037msgid "Formidable Forms"
    19212038msgstr ""
    19222039
    19232040#: includes/views/getting-started/introduction.php:64
     2041#: assets/js/settings.js:1
    19242042msgid "Allows you to upload your files directly to Google Drive from your Formidable Forms upload field."
    19252043msgstr ""
    19262044
    19272045#: includes/views/getting-started/introduction.php:67
     2046#: assets/js/settings.js:1
    19282047msgid "Ninja Forms"
    19292048msgstr ""
     
    19342053
    19352054#: includes/views/getting-started/introduction.php:72
     2055#: assets/js/settings.js:1
    19362056msgid "Elementor Form"
    19372057msgstr ""
    19382058
    19392059#: includes/views/getting-started/introduction.php:73
     2060#: assets/js/settings.js:1
    19402061msgid "Allows effortless file uploads from Elementor PRO Form widget to Google Drive for quick and efficient storage."
    19412062msgstr ""
    19422063
    19432064#: includes/views/getting-started/introduction.php:76
     2065#: assets/js/settings.js:1
    19442066msgid "MetForm"
    19452067msgstr ""
    19462068
    19472069#: includes/views/getting-started/introduction.php:77
     2070#: assets/js/settings.js:1
    19482071msgid "Allows effortless file uploads from MetForm to Google Drive for quick and efficient storage."
    19492072msgstr ""
     
    20372160
    20382161#: includes/views/getting-started/introduction.php:267
     2162#: assets/js/private-folders.js:1
     2163#: assets/js/settings.js:1
    20392164msgid "Private Folders"
    20402165msgstr ""
     
    20592184msgstr ""
    20602185
    2061 #: includes/views/getting-started/what-new.php:540
     2186#: includes/views/getting-started/what-new.php:553
    20622187msgid "New Features"
    20632188msgstr ""
    20642189
    2065 #: includes/views/getting-started/what-new.php:549
     2190#: includes/views/getting-started/what-new.php:562
    20662191msgid "Bug Fixes"
    20672192msgstr ""
    20682193
    2069 #: includes/views/getting-started/what-new.php:557
     2194#: includes/views/getting-started/what-new.php:570
    20702195msgid "Improvements"
    20712196msgstr ""
    20722197
    2073 #: includes/views/getting-started/what-new.php:565
     2198#: includes/views/getting-started/what-new.php:578
    20742199msgid "Removes"
    20752200msgstr ""
     
    21442269
    21452270#: includes/views/photo-proof-email__premium_only.php:313
     2271#: assets/js/admin.js:1
    21462272msgid "Title"
    21472273msgstr ""
     
    21692295
    21702296#: includes/views/recommended-plugins.php:502
     2297#: assets/js/admin.js:1
     2298#: assets/js/dokan.js:1
     2299#: assets/js/frontend.js:1
     2300#: assets/js/settings.js:1
     2301#: assets/js/tutor.js:1
    21712302msgid "Are you sure?"
    21722303msgstr ""
     
    21792310msgid "You can't access this page"
    21802311msgstr ""
     2312
     2313#: assets/js/admin.js:1
     2314#: assets/js/frontend.js:1
     2315#: assets/js/private-folders.js:1
     2316#: assets/js/settings.js:1
     2317msgid "Unlock PRO Feature"
     2318msgstr ""
     2319
     2320#: assets/js/admin.js:1
     2321#: assets/js/frontend.js:1
     2322#: assets/js/settings.js:1
     2323msgid "My Drive"
     2324msgstr ""
     2325
     2326#: assets/js/admin.js:1
     2327#: assets/js/frontend.js:1
     2328#: assets/js/settings.js:1
     2329msgid "Starred"
     2330msgstr ""
     2331
     2332#: assets/js/admin.js:1
     2333msgid "Let your users browse the selected specific Google Drive files and folders."
     2334msgstr ""
     2335
     2336#: assets/js/admin.js:1
     2337msgid "Let your users upload files to the specific selected Google Drive folder."
     2338msgstr ""
     2339
     2340#: assets/js/admin.js:1
     2341msgid "Play audio and video files in a media player."
     2342msgstr ""
     2343
     2344#: assets/js/admin.js:1
     2345msgid "Let your users search for contents and files via a search box."
     2346msgstr ""
     2347
     2348#: assets/js/admin.js:1
     2349msgid "Display images, videos and documents in a slider carousel."
     2350msgstr ""
     2351
     2352#: assets/js/admin.js:1
     2353msgid "Display images and videos in a masonry grid layout with lightbox preview."
     2354msgstr ""
     2355
     2356#: assets/js/admin.js:1
     2357msgid "Embed Google Drive documents."
     2358msgstr ""
     2359
     2360#: assets/js/admin.js:1
     2361msgid "Download Links"
     2362msgstr ""
     2363
     2364#: assets/js/admin.js:1
     2365msgid "Insert Google Drive files download links."
     2366msgstr ""
     2367
     2368#: assets/js/admin.js:1
     2369msgid "View Links"
     2370msgstr ""
     2371
     2372#: assets/js/admin.js:1
     2373msgid "Insert Google Drive files view links."
     2374msgstr ""
     2375
     2376#: assets/js/admin.js:1
     2377#: assets/js/frontend.js:1
     2378msgid "Copied"
     2379msgstr ""
     2380
     2381#: assets/js/admin.js:1
     2382msgid "Shortcode copied to clipboard"
     2383msgstr ""
     2384
     2385#: assets/js/admin.js:1
     2386#: assets/js/frontend.js:1
     2387#: assets/js/private-folders.js:1
     2388#: assets/js/settings.js:1
     2389msgid "Upgrade to PRO to use this feature."
     2390msgstr ""
     2391
     2392#: assets/js/admin.js:1
     2393#: assets/js/frontend.js:1
     2394#: assets/js/settings.js:1
     2395msgid "Are You Enjoying This Plugin?"
     2396msgstr ""
     2397
     2398#: assets/js/admin.js:1
     2399#: assets/js/frontend.js:1
     2400#: assets/js/settings.js:1
     2401msgid "Your feedback helps us create a better experience for you."
     2402msgstr ""
     2403
     2404#: assets/js/admin.js:1
     2405#: assets/js/frontend.js:1
     2406#: assets/js/settings.js:1
     2407msgid "Yes, I'm enjoying it"
     2408msgstr ""
     2409
     2410#: assets/js/admin.js:1
     2411#: assets/js/frontend.js:1
     2412#: assets/js/settings.js:1
     2413msgid "Not really"
     2414msgstr ""
     2415
     2416#: assets/js/admin.js:1
     2417#: assets/js/frontend.js:1
     2418#: assets/js/settings.js:1
     2419msgid "We're glad to hear that!"
     2420msgstr ""
     2421
     2422#: assets/js/admin.js:1
     2423#: assets/js/frontend.js:1
     2424#: assets/js/settings.js:1
     2425msgid "Would you mind taking a few minutes to rate us and write a review?"
     2426msgstr ""
     2427
     2428#: assets/js/admin.js:1
     2429#: assets/js/frontend.js:1
     2430#: assets/js/settings.js:1
     2431msgid "Sure, I'd be happy to"
     2432msgstr ""
     2433
     2434#: assets/js/admin.js:1
     2435#: assets/js/frontend.js:1
     2436#: assets/js/settings.js:1
     2437msgid "Maybe later"
     2438msgstr ""
     2439
     2440#: assets/js/admin.js:1
     2441#: assets/js/frontend.js:1
     2442#: assets/js/settings.js:1
     2443msgid "Sorry to hear that!"
     2444msgstr ""
     2445
     2446#: assets/js/admin.js:1
     2447#: assets/js/frontend.js:1
     2448#: assets/js/settings.js:1
     2449msgid "Could you please provide us with some feedback to help us improve?"
     2450msgstr ""
     2451
     2452#: assets/js/admin.js:1
     2453#: assets/js/frontend.js:1
     2454#: assets/js/settings.js:1
     2455msgid "Enter your feedback here..."
     2456msgstr ""
     2457
     2458#: assets/js/admin.js:1
     2459#: assets/js/frontend.js:1
     2460#: assets/js/settings.js:1
     2461msgid "Submit"
     2462msgstr ""
     2463
     2464#: assets/js/admin.js:1
     2465#: assets/js/frontend.js:1
     2466#: assets/js/settings.js:1
     2467msgid "Thank you for your feedback!"
     2468msgstr ""
     2469
     2470#: assets/js/admin.js:1
     2471#: assets/js/frontend.js:1
     2472#: assets/js/settings.js:1
     2473msgid "We'll use your feedback to improve our plugin."
     2474msgstr ""
     2475
     2476#: assets/js/admin.js:1
     2477#: assets/js/frontend.js:1
     2478msgid "Error"
     2479msgstr ""
     2480
     2481#: assets/js/admin.js:1
     2482#: assets/js/frontend.js:1
     2483msgid "Please enter a keyword to search"
     2484msgstr ""
     2485
     2486#: assets/js/admin.js:1
     2487#: assets/js/frontend.js:1
     2488msgid "Enter a keyword to search"
     2489msgstr ""
     2490
     2491#: assets/js/admin.js:1
     2492#: assets/js/frontend.js:1
     2493#: assets/js/private-folders.js:1
     2494msgid "Search"
     2495msgstr ""
     2496
     2497#: assets/js/admin.js:1
     2498#: assets/js/frontend.js:1
     2499msgid "Home"
     2500msgstr ""
     2501
     2502#: assets/js/admin.js:1
     2503#: assets/js/frontend.js:1
     2504msgid "Created"
     2505msgstr ""
     2506
     2507#: assets/js/admin.js:1
     2508#: assets/js/frontend.js:1
     2509msgid "Modified"
     2510msgstr ""
     2511
     2512#: assets/js/admin.js:1
     2513#: assets/js/frontend.js:1
     2514msgid "Ascending"
     2515msgstr ""
     2516
     2517#: assets/js/admin.js:1
     2518#: assets/js/frontend.js:1
     2519msgid "Descending"
     2520msgstr ""
     2521
     2522#: assets/js/admin.js:1
     2523#: assets/js/frontend.js:1
     2524msgid "You can not select more than %s files."
     2525msgstr ""
     2526
     2527#: assets/js/admin.js:1
     2528#: assets/js/frontend.js:1
     2529msgid "OK"
     2530msgstr ""
     2531
     2532#: assets/js/admin.js:1
     2533#: assets/js/frontend.js:1
     2534msgid "Approve Selection (%s selected)"
     2535msgstr ""
     2536
     2537#: assets/js/admin.js:1
     2538#: assets/js/frontend.js:1
     2539msgid "Are you sure you want to approve the selected files?"
     2540msgstr ""
     2541
     2542#: assets/js/admin.js:1
     2543#: assets/js/frontend.js:1
     2544msgid "Enter a message to send to the author"
     2545msgstr ""
     2546
     2547#: assets/js/admin.js:1
     2548#: assets/js/frontend.js:1
     2549msgid "Approve"
     2550msgstr ""
     2551
     2552#: assets/js/admin.js:1
     2553#: assets/js/frontend.js:1
     2554msgid "Send Selection"
     2555msgstr ""
     2556
     2557#: assets/js/admin.js:1
     2558#: assets/js/frontend.js:1
     2559msgid "Delete"
     2560msgstr ""
     2561
     2562#: assets/js/admin.js:1
     2563#: assets/js/frontend.js:1
     2564msgid "You are about to delete the file."
     2565msgid_plural "You are about to delete %s files."
     2566msgstr[0] ""
     2567msgstr[1] ""
     2568
     2569#: assets/js/admin.js:1
     2570#: assets/js/frontend.js:1
     2571msgid "Yes, delete it!"
     2572msgstr ""
     2573
     2574#: assets/js/admin.js:1
     2575#: assets/js/frontend.js:1
     2576msgid "No, cancel!"
     2577msgstr ""
     2578
     2579#: assets/js/admin.js:1
     2580#: assets/js/frontend.js:1
     2581#: assets/js/statistics.js:1
     2582msgid "Deleted!"
     2583msgstr ""
     2584
     2585#: assets/js/admin.js:1
     2586#: assets/js/frontend.js:1
     2587msgid "File has been deleted."
     2588msgid_plural "%d files have been deleted."
     2589msgstr[0] ""
     2590msgstr[1] ""
     2591
     2592#: assets/js/admin.js:1
     2593#: assets/js/frontend.js:1
     2594msgid "Sort"
     2595msgstr ""
     2596
     2597#: assets/js/admin.js:1
     2598#: assets/js/frontend.js:1
     2599msgid "SORT BY"
     2600msgstr ""
     2601
     2602#: assets/js/admin.js:1
     2603#: assets/js/frontend.js:1
     2604msgid "SORT DIRECTION"
     2605msgstr ""
     2606
     2607#: assets/js/admin.js:1
     2608#: assets/js/frontend.js:1
     2609msgid "Options"
     2610msgstr ""
     2611
     2612#: assets/js/admin.js:1
     2613#: assets/js/frontend.js:1
     2614msgid "Switch Account"
     2615msgstr ""
     2616
     2617#: assets/js/admin.js:1
     2618#: assets/js/frontend.js:1
     2619#: assets/js/settings.js:1
     2620msgid "Upgrade to PRO to add multiple accounts."
     2621msgstr ""
     2622
     2623#: assets/js/admin.js:1
     2624#: assets/js/frontend.js:1
     2625msgid "Add account"
     2626msgstr ""
     2627
     2628#: assets/js/admin.js:1
     2629#: assets/js/frontend.js:1
     2630#: assets/js/settings.js:1
     2631msgid "Select"
     2632msgstr ""
     2633
     2634#: assets/js/admin.js:1
     2635#: assets/js/frontend.js:1
     2636msgid "Upload Files"
     2637msgstr ""
     2638
     2639#: assets/js/admin.js:1
     2640#: assets/js/frontend.js:1
     2641msgid "File size exceeds the maximum upload size."
     2642msgstr ""
     2643
     2644#: assets/js/admin.js:1
     2645#: assets/js/frontend.js:1
     2646msgid "File size is less than the minimum upload size."
     2647msgstr ""
     2648
     2649#: assets/js/admin.js:1
     2650#: assets/js/frontend.js:1
     2651msgid "This file type is not allowed"
     2652msgstr ""
     2653
     2654#: assets/js/admin.js:1
     2655#: assets/js/frontend.js:1
     2656msgid "You can not upload more than"
     2657msgstr ""
     2658
     2659#: assets/js/admin.js:1
     2660#: assets/js/frontend.js:1
     2661msgid "files"
     2662msgstr ""
     2663
     2664#: assets/js/admin.js:1
     2665#: assets/js/frontend.js:1
     2666msgid "Uploading Files..."
     2667msgstr ""
     2668
     2669#: assets/js/admin.js:1
     2670#: assets/js/frontend.js:1
     2671msgid "Item(s) Uploading..."
     2672msgstr ""
     2673
     2674#: assets/js/admin.js:1
     2675#: assets/js/frontend.js:1
     2676msgid "Item(s) Selected"
     2677msgstr ""
     2678
     2679#: assets/js/admin.js:1
     2680#: assets/js/frontend.js:1
     2681msgid "Item(s) Uploaded"
     2682msgstr ""
     2683
     2684#: assets/js/admin.js:1
     2685#: assets/js/frontend.js:1
     2686msgid "Upload More Files"
     2687msgstr ""
     2688
     2689#: assets/js/admin.js:1
     2690#: assets/js/frontend.js:1
     2691msgid "Drag and drop files here"
     2692msgstr ""
     2693
     2694#: assets/js/admin.js:1
     2695#: assets/js/frontend.js:1
     2696msgid "OR"
     2697msgstr ""
     2698
     2699#: assets/js/admin.js:1
     2700#: assets/js/frontend.js:1
     2701msgid "Browse Files"
     2702msgstr ""
     2703
     2704#: assets/js/admin.js:1
     2705#: assets/js/frontend.js:1
     2706msgid "Browse Folder"
     2707msgstr ""
     2708
     2709#: assets/js/admin.js:1
     2710#: assets/js/frontend.js:1
     2711msgid "Min File Size:"
     2712msgstr ""
     2713
     2714#: assets/js/admin.js:1
     2715#: assets/js/frontend.js:1
     2716msgid "Max File Size:"
     2717msgstr ""
     2718
     2719#: assets/js/admin.js:1
     2720#: assets/js/frontend.js:1
     2721msgid "Start Upload"
     2722msgstr ""
     2723
     2724#: assets/js/admin.js:1
     2725#: assets/js/frontend.js:1
     2726msgid "There is no items here."
     2727msgstr ""
     2728
     2729#: assets/js/admin.js:1
     2730#: assets/js/frontend.js:1
     2731msgid "The folder is empty."
     2732msgstr ""
     2733
     2734#: assets/js/admin.js:1
     2735#: assets/js/frontend.js:1
     2736msgid "No items available for selection."
     2737msgstr ""
     2738
     2739#: assets/js/admin.js:1
     2740#: assets/js/frontend.js:1
     2741msgid "This folder doesn't contain any selectable items."
     2742msgstr ""
     2743
     2744#: assets/js/admin.js:1
     2745#: assets/js/frontend.js:1
     2746msgid "Ok"
     2747msgstr ""
     2748
     2749#: assets/js/admin.js:1
     2750#: assets/js/frontend.js:1
     2751msgid "Previous folder"
     2752msgstr ""
     2753
     2754#: assets/js/admin.js:1
     2755#: assets/js/frontend.js:1
     2756msgid "No Computers Syncing"
     2757msgstr ""
     2758
     2759#: assets/js/admin.js:1
     2760#: assets/js/frontend.js:1
     2761msgid "The files synced with computers will display here."
     2762msgstr ""
     2763
     2764#: assets/js/admin.js:1
     2765#: assets/js/frontend.js:1
     2766msgid "Shared With Me"
     2767msgstr ""
     2768
     2769#: assets/js/admin.js:1
     2770#: assets/js/frontend.js:1
     2771msgid "Files and folders others have shared with you."
     2772msgstr ""
     2773
     2774#: assets/js/admin.js:1
     2775#: assets/js/frontend.js:1
     2776msgid "Nothing is starred"
     2777msgstr ""
     2778
     2779#: assets/js/admin.js:1
     2780#: assets/js/frontend.js:1
     2781msgid "Adds star to files and folders that you want to find easily later."
     2782msgstr ""
     2783
     2784#: assets/js/admin.js:1
     2785#: assets/js/frontend.js:1
     2786msgid "No Shared Drives"
     2787msgstr ""
     2788
     2789#: assets/js/admin.js:1
     2790#: assets/js/frontend.js:1
     2791msgid "The Drives others have shared with you."
     2792msgstr ""
     2793
     2794#: assets/js/admin.js:1
     2795#: assets/js/frontend.js:1
     2796msgid "No results found!"
     2797msgstr ""
     2798
     2799#: assets/js/admin.js:1
     2800#: assets/js/frontend.js:1
     2801msgid "Search for files & content"
     2802msgstr ""
     2803
     2804#: assets/js/admin.js:1
     2805#: assets/js/frontend.js:1
     2806msgid "No"
     2807msgstr ""
     2808
     2809#: assets/js/admin.js:1
     2810#: assets/js/frontend.js:1
     2811msgid "Search results for \"%s\": %s items found."
     2812msgstr ""
     2813
     2814#: assets/js/admin.js:1
     2815#: assets/js/frontend.js:1
     2816msgid "Clear"
     2817msgstr ""
     2818
     2819#: assets/js/admin.js:1
     2820#: assets/js/frontend.js:1
     2821msgid "Owner"
     2822msgstr ""
     2823
     2824#: assets/js/admin.js:1
     2825#: assets/js/frontend.js:1
     2826msgid "Updated"
     2827msgstr ""
     2828
     2829#: assets/js/admin.js:1
     2830#: assets/js/frontend.js:1
     2831msgid "Location"
     2832msgstr ""
     2833
     2834#: assets/js/admin.js:1
     2835#: assets/js/frontend.js:1
     2836#: assets/js/statistics.js:1
     2837msgid "Description"
     2838msgstr ""
     2839
     2840#: assets/js/admin.js:1
     2841#: assets/js/frontend.js:1
     2842msgid "Updated!"
     2843msgstr ""
     2844
     2845#: assets/js/admin.js:1
     2846#: assets/js/frontend.js:1
     2847msgid "Description has been updated."
     2848msgstr ""
     2849
     2850#: assets/js/admin.js:1
     2851#: assets/js/frontend.js:1
     2852msgid "Add description"
     2853msgstr ""
     2854
     2855#: assets/js/admin.js:1
     2856#: assets/js/frontend.js:1
     2857msgid "Select a file or folder to view its details."
     2858msgstr ""
     2859
     2860#: assets/js/admin.js:1
     2861#: assets/js/frontend.js:1
     2862msgid "Success"
     2863msgstr ""
     2864
     2865#: assets/js/admin.js:1
     2866#: assets/js/frontend.js:1
     2867msgid "File(s) moved successfully"
     2868msgstr ""
     2869
     2870#: assets/js/admin.js:1
     2871#: assets/js/frontend.js:1
     2872msgid "Error moving file(s)"
     2873msgstr ""
     2874
     2875#: assets/js/admin.js:1
     2876#: assets/js/frontend.js:1
     2877msgid "Moving..."
     2878msgstr ""
     2879
     2880#: assets/js/admin.js:1
     2881#: assets/js/frontend.js:1
     2882msgid "Move"
     2883msgstr ""
     2884
     2885#: assets/js/admin.js:1
     2886#: assets/js/frontend.js:1
     2887msgid "No folders found!"
     2888msgstr ""
     2889
     2890#: assets/js/admin.js:1
     2891#: assets/js/frontend.js:1
     2892msgid "File(s) copied successfully"
     2893msgstr ""
     2894
     2895#: assets/js/admin.js:1
     2896#: assets/js/frontend.js:1
     2897msgid "Error copying file(s)"
     2898msgstr ""
     2899
     2900#: assets/js/admin.js:1
     2901#: assets/js/frontend.js:1
     2902msgid "Copying %s files"
     2903msgstr ""
     2904
     2905#: assets/js/admin.js:1
     2906#: assets/js/frontend.js:1
     2907msgid "Copy"
     2908msgstr ""
     2909
     2910#: assets/js/admin.js:1
     2911#: assets/js/frontend.js:1
     2912msgid "Link copied to clipboard"
     2913msgstr ""
     2914
     2915#: assets/js/admin.js:1
     2916#: assets/js/frontend.js:1
     2917#: assets/js/statistics.js:1
     2918msgid "Error!"
     2919msgstr ""
     2920
     2921#: assets/js/admin.js:1
     2922#: assets/js/frontend.js:1
     2923msgid "Copied!"
     2924msgstr ""
     2925
     2926#: assets/js/admin.js:1
     2927#: assets/js/frontend.js:1
     2928msgid "Embed code copied to clipboard."
     2929msgstr ""
     2930
     2931#: assets/js/admin.js:1
     2932#: assets/js/frontend.js:1
     2933msgid "Copy Link"
     2934msgstr ""
     2935
     2936#: assets/js/admin.js:1
     2937#: assets/js/frontend.js:1
     2938msgid "Embed"
     2939msgstr ""
     2940
     2941#: assets/js/admin.js:1
     2942#: assets/js/frontend.js:1
     2943#: assets/js/private-folders.js:1
     2944#: assets/js/settings.js:1
     2945msgid "Email"
     2946msgstr ""
     2947
     2948#: assets/js/admin.js:1
     2949#: assets/js/frontend.js:1
     2950#: assets/js/settings.js:1
     2951msgid "Facebook"
     2952msgstr ""
     2953
     2954#: assets/js/admin.js:1
     2955#: assets/js/frontend.js:1
     2956#: assets/js/settings.js:1
     2957msgid "Twitter"
     2958msgstr ""
     2959
     2960#: assets/js/admin.js:1
     2961#: assets/js/frontend.js:1
     2962#: assets/js/settings.js:1
     2963msgid "WhatsApp"
     2964msgstr ""
     2965
     2966#: assets/js/admin.js:1
     2967#: assets/js/frontend.js:1
     2968msgid "Direct Link"
     2969msgstr ""
     2970
     2971#: assets/js/admin.js:1
     2972#: assets/js/frontend.js:1
     2973msgid "Share"
     2974msgstr ""
     2975
     2976#: assets/js/admin.js:1
     2977#: assets/js/frontend.js:1
     2978msgid "Google Doc"
     2979msgstr ""
     2980
     2981#: assets/js/admin.js:1
     2982#: assets/js/frontend.js:1
     2983msgid "Google Sheet"
     2984msgstr ""
     2985
     2986#: assets/js/admin.js:1
     2987#: assets/js/frontend.js:1
     2988msgid "Google Slide"
     2989msgstr ""
     2990
     2991#: assets/js/admin.js:1
     2992#: assets/js/frontend.js:1
     2993msgid "New Folder"
     2994msgstr ""
     2995
     2996#: assets/js/admin.js:1
     2997#: assets/js/frontend.js:1
     2998msgid "Create Document"
     2999msgstr ""
     3000
     3001#: assets/js/admin.js:1
     3002#: assets/js/frontend.js:1
     3003msgid "Preview in a new window"
     3004msgstr ""
     3005
     3006#: assets/js/admin.js:1
     3007#: assets/js/frontend.js:1
     3008msgid "Preview"
     3009msgstr ""
     3010
     3011#: assets/js/admin.js:1
     3012#: assets/js/frontend.js:1
     3013msgid "Open in Google Drive"
     3014msgstr ""
     3015
     3016#: assets/js/admin.js:1
     3017#: assets/js/frontend.js:1
     3018msgid "View Details"
     3019msgstr ""
     3020
     3021#: assets/js/admin.js:1
     3022#: assets/js/frontend.js:1
     3023msgid "Deselect All"
     3024msgstr ""
     3025
     3026#: assets/js/admin.js:1
     3027#: assets/js/frontend.js:1
     3028msgid "Select All"
     3029msgstr ""
     3030
     3031#: assets/js/admin.js:1
     3032#: assets/js/frontend.js:1
     3033msgid "Edit (New Window)"
     3034msgstr ""
     3035
     3036#: assets/js/admin.js:1
     3037#: assets/js/frontend.js:1
     3038msgid "Import to Media"
     3039msgstr ""
     3040
     3041#: assets/js/admin.js:1
     3042#: assets/js/frontend.js:1
     3043msgid "Rename"
     3044msgstr ""
     3045
     3046#: assets/js/admin.js:1
     3047#: assets/js/frontend.js:1
     3048msgid "Grid View"
     3049msgstr ""
     3050
     3051#: assets/js/admin.js:1
     3052#: assets/js/frontend.js:1
     3053msgid "List View"
     3054msgstr ""
     3055
     3056#: assets/js/admin.js:1
     3057#: assets/js/frontend.js:1
     3058msgid "Enter new folder name"
     3059msgstr ""
     3060
     3061#: assets/js/admin.js:1
     3062#: assets/js/frontend.js:1
     3063msgid "Create"
     3064msgstr ""
     3065
     3066#: assets/js/admin.js:1
     3067#: assets/js/frontend.js:1
     3068msgid "Please enter a name"
     3069msgstr ""
     3070
     3071#: assets/js/admin.js:1
     3072#: assets/js/frontend.js:1
     3073msgid "Please wait..."
     3074msgstr ""
     3075
     3076#: assets/js/admin.js:1
     3077#: assets/js/frontend.js:1
     3078#: assets/js/settings.js:1
     3079msgid "Imported!"
     3080msgstr ""
     3081
     3082#: assets/js/admin.js:1
     3083#: assets/js/frontend.js:1
     3084msgid "File(s) have been imported."
     3085msgstr ""
     3086
     3087#: assets/js/admin.js:1
     3088#: assets/js/frontend.js:1
     3089msgid "Upgrade to PRO to import cloud files to the Media Library."
     3090msgstr ""
     3091
     3092#: assets/js/admin.js:1
     3093#: assets/js/dokan.js:1
     3094#: assets/js/frontend.js:1
     3095#: assets/js/settings.js:1
     3096#: assets/js/tutor.js:1
     3097msgid "You won't be able to revert this!"
     3098msgstr ""
     3099
     3100#: assets/js/admin.js:1
     3101#: assets/js/frontend.js:1
     3102msgid "Select destination"
     3103msgstr ""
     3104
     3105#: assets/js/admin.js:1
     3106#: assets/js/frontend.js:1
     3107msgid "Enter new name"
     3108msgstr ""
     3109
     3110#: assets/js/admin.js:1
     3111#: assets/js/frontend.js:1
     3112msgid "Renamed!"
     3113msgstr ""
     3114
     3115#: assets/js/admin.js:1
     3116#: assets/js/frontend.js:1
     3117msgid "File has been renamed."
     3118msgstr ""
     3119
     3120#: assets/js/admin.js:1
     3121#: assets/js/frontend.js:1
     3122msgid "Completed!"
     3123msgstr ""
     3124
     3125#: assets/js/admin.js:1
     3126#: assets/js/frontend.js:1
     3127msgid "Download completed"
     3128msgstr ""
     3129
     3130#: assets/js/admin.js:1
     3131#: assets/js/frontend.js:1
     3132msgid "New Document"
     3133msgstr ""
     3134
     3135#: assets/js/admin.js:1
     3136#: assets/js/frontend.js:1
     3137msgid "Enter document name"
     3138msgstr ""
     3139
     3140#: assets/js/admin.js:1
     3141#: assets/js/frontend.js:1
     3142msgid "New Spreadsheet"
     3143msgstr ""
     3144
     3145#: assets/js/admin.js:1
     3146#: assets/js/frontend.js:1
     3147msgid "Enter spreadsheet name"
     3148msgstr ""
     3149
     3150#: assets/js/admin.js:1
     3151#: assets/js/frontend.js:1
     3152msgid "New Presentation"
     3153msgstr ""
     3154
     3155#: assets/js/admin.js:1
     3156#: assets/js/frontend.js:1
     3157msgid "Enter presentation name"
     3158msgstr ""
     3159
     3160#: assets/js/admin.js:1
     3161#: assets/js/frontend.js:1
     3162msgid "Document created"
     3163msgstr ""
     3164
     3165#: assets/js/admin.js:1
     3166#: assets/js/frontend.js:1
     3167msgid "Document created successfully"
     3168msgstr ""
     3169
     3170#: assets/js/admin.js:1
     3171#: assets/js/frontend.js:1
     3172msgid "Spreadsheet created"
     3173msgstr ""
     3174
     3175#: assets/js/admin.js:1
     3176#: assets/js/frontend.js:1
     3177msgid "Spreadsheet created successfully"
     3178msgstr ""
     3179
     3180#: assets/js/admin.js:1
     3181#: assets/js/frontend.js:1
     3182msgid "Presentation created"
     3183msgstr ""
     3184
     3185#: assets/js/admin.js:1
     3186#: assets/js/frontend.js:1
     3187msgid "Presentation created successfully"
     3188msgstr ""
     3189
     3190#: assets/js/admin.js:1
     3191#: assets/js/frontend.js:1
     3192msgid "Download as"
     3193msgstr ""
     3194
     3195#: assets/js/admin.js:1
     3196#: assets/js/frontend.js:1
     3197#: assets/js/settings.js:1
     3198msgid "PRO"
     3199msgstr ""
     3200
     3201#: assets/js/admin.js:1
     3202#: assets/js/frontend.js:1
     3203msgid "Something went wrong! Please try again later."
     3204msgstr ""
     3205
     3206#: assets/js/admin.js:1
     3207#: assets/js/frontend.js:1
     3208msgid "Shuffle"
     3209msgstr ""
     3210
     3211#: assets/js/admin.js:1
     3212#: assets/js/frontend.js:1
     3213msgid "Loop"
     3214msgstr ""
     3215
     3216#: assets/js/admin.js:1
     3217#: assets/js/frontend.js:1
     3218msgid "Playlist"
     3219msgstr ""
     3220
     3221#: assets/js/admin.js:1
     3222#: assets/js/frontend.js:1
     3223msgid "Enable"
     3224msgstr ""
     3225
     3226#: assets/js/admin.js:1
     3227#: assets/js/frontend.js:1
     3228msgid "Disable"
     3229msgstr ""
     3230
     3231#: assets/js/admin.js:1
     3232#: assets/js/frontend.js:1
     3233msgid "Show"
     3234msgstr ""
     3235
     3236#: assets/js/admin.js:1
     3237#: assets/js/frontend.js:1
     3238msgid "Hide"
     3239msgstr ""
     3240
     3241#: assets/js/admin.js:1
     3242#: assets/js/frontend.js:1
     3243msgid "Enter a keyword to search in the playlist"
     3244msgstr ""
     3245
     3246#: assets/js/admin.js:1
     3247#: assets/js/frontend.js:1
     3248msgid "Upload successful!"
     3249msgstr ""
     3250
     3251#: assets/js/admin.js:1
     3252#: assets/js/frontend.js:1
     3253msgid "Your file(s) have been uploaded. Thank you for your submission!"
     3254msgstr ""
     3255
     3256#: assets/js/admin.js:1
     3257msgid "Shortcode Preview"
     3258msgstr ""
     3259
     3260#: assets/js/admin.js:1
     3261msgid "Edit Shortcode"
     3262msgstr ""
     3263
     3264#: assets/js/admin.js:1
     3265msgid "Add New Shortcode"
     3266msgstr ""
     3267
     3268#: assets/js/admin.js:1
     3269msgid "Back"
     3270msgstr ""
     3271
     3272#: assets/js/admin.js:1
     3273msgid "Delete Shortcode"
     3274msgstr ""
     3275
     3276#: assets/js/admin.js:1
     3277msgid "Save"
     3278msgstr ""
     3279
     3280#: assets/js/admin.js:1
     3281msgid "Add new shortcode"
     3282msgstr ""
     3283
     3284#: assets/js/admin.js:1
     3285msgid "All Shortcodes"
     3286msgstr ""
     3287
     3288#: assets/js/admin.js:1
     3289msgid "Item"
     3290msgid_plural "Items"
     3291msgstr[0] ""
     3292msgstr[1] ""
     3293
     3294#: assets/js/admin.js:1
     3295msgid "Columns"
     3296msgstr ""
     3297
     3298#: assets/js/admin.js:1
     3299msgid "Items Per Page"
     3300msgstr ""
     3301
     3302#: assets/js/admin.js:1
     3303msgid "Sort By"
     3304msgstr ""
     3305
     3306#: assets/js/admin.js:1
     3307msgid "Date Created"
     3308msgstr ""
     3309
     3310#: assets/js/admin.js:1
     3311msgid "Sort Order"
     3312msgstr ""
     3313
     3314#: assets/js/admin.js:1
     3315msgid "Item(s) selected"
     3316msgstr ""
     3317
     3318#: assets/js/admin.js:1
     3319msgid "Clear Selection"
     3320msgstr ""
     3321
     3322#: assets/js/admin.js:1
     3323msgid "Duplicate"
     3324msgstr ""
     3325
     3326#: assets/js/admin.js:1
     3327msgid "You will not be able to recover this shortcode!"
     3328msgstr ""
     3329
     3330#: assets/js/admin.js:1
     3331msgid "ID"
     3332msgstr ""
     3333
     3334#: assets/js/admin.js:1
     3335msgid "Status"
     3336msgstr ""
     3337
     3338#: assets/js/admin.js:1
     3339msgid "Shortcode"
     3340msgstr ""
     3341
     3342#: assets/js/admin.js:1
     3343msgid "Locations"
     3344msgstr ""
     3345
     3346#: assets/js/admin.js:1
     3347msgid "Shortcode status"
     3348msgstr ""
     3349
     3350#: assets/js/admin.js:1
     3351msgid "Copy shortcode"
     3352msgstr ""
     3353
     3354#: assets/js/admin.js:1
     3355msgid "Shortcode Locations"
     3356msgstr ""
     3357
     3358#: assets/js/admin.js:1
     3359msgid "0"
     3360msgstr ""
     3361
     3362#: assets/js/admin.js:1
     3363msgid "Edit shortcode"
     3364msgstr ""
     3365
     3366#: assets/js/admin.js:1
     3367msgid "Edit"
     3368msgstr ""
     3369
     3370#: assets/js/admin.js:1
     3371#: assets/js/settings.js:1
     3372msgid "Tools"
     3373msgstr ""
     3374
     3375#: assets/js/admin.js:1
     3376msgid "You didn't create any shortcode yet!"
     3377msgstr ""
     3378
     3379#: assets/js/admin.js:1
     3380msgid "Upgrade to PRO to use this module."
     3381msgstr ""
     3382
     3383#: assets/js/admin.js:1
     3384msgid "Don't select any items if you don't want to show the module for the users who are not linked any folders."
     3385msgstr ""
     3386
     3387#: assets/js/admin.js:1
     3388msgid "Select files & folders for non-linked users"
     3389msgstr ""
     3390
     3391#: assets/js/admin.js:1
     3392msgid "Select Upload Folder for non-linked users"
     3393msgstr ""
     3394
     3395#: assets/js/admin.js:1
     3396msgid "Select image files and folders for non-linked users"
     3397msgstr ""
     3398
     3399#: assets/js/admin.js:1
     3400msgid "Select audio, video files and folders for non-linked users"
     3401msgstr ""
     3402
     3403#: assets/js/admin.js:1
     3404msgid "Select folders for non-linked users."
     3405msgstr ""
     3406
     3407#: assets/js/admin.js:1
     3408msgid "Select Upload Folder"
     3409msgstr ""
     3410
     3411#: assets/js/admin.js:1
     3412msgid "Turn ON to display the private files and folders linked to the user."
     3413msgstr ""
     3414
     3415#: assets/js/admin.js:1
     3416msgid "Turn ON to embed the private files and folders linked to the user."
     3417msgstr ""
     3418
     3419#: assets/js/admin.js:1
     3420msgid "Turn ON to upload the files in the private folder linked to the user."
     3421msgstr ""
     3422
     3423#: assets/js/admin.js:1
     3424msgid "Turn ON to search the private files and folders linked to the user."
     3425msgstr ""
     3426
     3427#: assets/js/admin.js:1
     3428msgid "All Folders & Files"
     3429msgstr ""
     3430
     3431#: assets/js/admin.js:1
     3432msgid "If turned ON, users can navigate through all the folders & files of all the linked Google Drive accounts."
     3433msgstr ""
     3434
     3435#: assets/js/admin.js:1
     3436msgid "Otherwise, to select specific folders & files turn off this option."
     3437msgstr ""
     3438
     3439#: assets/js/admin.js:1
     3440msgid "User Private Folders"
     3441msgstr ""
     3442
     3443#: assets/js/admin.js:1
     3444msgid "Use Private Folder"
     3445msgstr ""
     3446
     3447#: assets/js/admin.js:1
     3448msgid "Use Private Files"
     3449msgstr ""
     3450
     3451#: assets/js/admin.js:1
     3452#: assets/js/settings.js:1
     3453msgid "PRO Feature"
     3454msgstr ""
     3455
     3456#: assets/js/admin.js:1
     3457msgid "Upgrade to Pro to use User Private Folders"
     3458msgstr ""
     3459
     3460#: assets/js/admin.js:1
     3461msgid "Create Private Folder"
     3462msgstr ""
     3463
     3464#: assets/js/admin.js:1
     3465msgid "Turn ON to create and link a folder automatically to the user who has not linked any folder yet while the user will view the module."
     3466msgstr ""
     3467
     3468#: assets/js/admin.js:1
     3469#: assets/js/settings.js:1
     3470msgid "Naming template"
     3471msgstr ""
     3472
     3473#: assets/js/admin.js:1
     3474msgid "Upgrade to PRO to enable auto private folders creation for the user."
     3475msgstr ""
     3476
     3477#: assets/js/admin.js:1
     3478msgid "Set the folder name template for the automatically created private folders."
     3479msgstr ""
     3480
     3481#: assets/js/admin.js:1
     3482#: assets/js/settings.js:1
     3483msgid "Available template tags"
     3484msgstr ""
     3485
     3486#: assets/js/admin.js:1
     3487#: assets/js/settings.js:1
     3488msgid " (click to insert)"
     3489msgstr ""
     3490
     3491#: assets/js/admin.js:1
     3492#: assets/js/settings.js:1
     3493msgid "Upgrade to PRO to enable auto private folders creation."
     3494msgstr ""
     3495
     3496#: assets/js/admin.js:1
     3497#: assets/js/settings.js:1
     3498msgid "Parent Folder"
     3499msgstr ""
     3500
     3501#: assets/js/admin.js:1
     3502#: assets/js/settings.js:1
     3503msgid "Cancel"
     3504msgstr ""
     3505
     3506#: assets/js/admin.js:1
     3507msgid "Select the parent folder where the automatically created private folders will be created."
     3508msgstr ""
     3509
     3510#: assets/js/admin.js:1
     3511#: assets/js/settings.js:1
     3512msgid "Template Folder"
     3513msgstr ""
     3514
     3515#: assets/js/admin.js:1
     3516#: assets/js/settings.js:1
     3517msgid "Change Template Folder"
     3518msgstr ""
     3519
     3520#: assets/js/admin.js:1
     3521#: assets/js/settings.js:1
     3522msgid "Select Template Folder"
     3523msgstr ""
     3524
     3525#: assets/js/admin.js:1
     3526#: assets/js/settings.js:1
     3527msgid "Template folder and parent folder must be from the same account."
     3528msgstr ""
     3529
     3530#: assets/js/admin.js:1
     3531#: assets/js/settings.js:1
     3532msgid "Template folder and parent folder can't be the same."
     3533msgstr ""
     3534
     3535#: assets/js/admin.js:1
     3536msgid "Select the template folder that will be copied to the new private folder."
     3537msgstr ""
     3538
     3539#: assets/js/admin.js:1
     3540#: assets/js/settings.js:1
     3541msgid "Merge Folders"
     3542msgstr ""
     3543
     3544#: assets/js/admin.js:1
     3545msgid "Upgrade to PRO to create private folders."
     3546msgstr ""
     3547
     3548#: assets/js/admin.js:1
     3549msgid "Allow merging folders if a folder with the same name already exists."
     3550msgstr ""
     3551
     3552#: assets/js/admin.js:1
     3553msgid "Form Entry Folders"
     3554msgstr ""
     3555
     3556#: assets/js/admin.js:1
     3557msgid "Create Entry Folders"
     3558msgstr ""
     3559
     3560#: assets/js/admin.js:1
     3561msgid "Upgrade to Pro to create entry folders"
     3562msgstr ""
     3563
     3564#: assets/js/admin.js:1
     3565msgid "Create a folder for each form entry."
     3566msgstr ""
     3567
     3568#: assets/js/admin.js:1
     3569msgid "Name template"
     3570msgstr ""
     3571
     3572#: assets/js/admin.js:1
     3573msgid "Upgrade to PRO to create form entry folders."
     3574msgstr ""
     3575
     3576#: assets/js/admin.js:1
     3577msgid "Set the form entry folder name template."
     3578msgstr ""
     3579
     3580#: assets/js/admin.js:1
     3581msgid "Upgrade to PRO to enable auto entry folders creation."
     3582msgstr ""
     3583
     3584#: assets/js/admin.js:1
     3585msgid "You can also use the form field names to rename the upload folder with the form field values."
     3586msgstr ""
     3587
     3588#: assets/js/admin.js:1
     3589msgid "For example: "
     3590msgstr ""
     3591
     3592#: assets/js/admin.js:1
     3593msgid "If you have a field with the name \"your-name\" and a field with the name \"your-email\", you can use the tags %field_your-name% and %field_your-email% to rename the upload folder."
     3594msgstr ""
     3595
     3596#: assets/js/admin.js:1
     3597msgid "You can also use the form field name attributes to rename the upload folder with the form field values."
     3598msgstr ""
     3599
     3600#: assets/js/admin.js:1
     3601msgid "If you have a field with the FIELD NAME attribute \"your-name\" and a field with the name attribute \"your-email\", you can use the tags %field_your-name% and %field_your-email% to rename the upload folder."
     3602msgstr ""
     3603
     3604#: assets/js/admin.js:1
     3605msgid "You can also use the form FIELD ID to rename the upload folder with the form field values."
     3606msgstr ""
     3607
     3608#: assets/js/admin.js:1
     3609msgid "If you have a field with the ID 1, you can use the tag %field_id_1% to rename the upload folder."
     3610msgstr ""
     3611
     3612#: assets/js/admin.js:1
     3613msgid "You can also use the form FIELD KEY  to rename the upload folder with the form field values."
     3614msgstr ""
     3615
     3616#: assets/js/admin.js:1
     3617msgid "If you have a field with the key \"your-name\" and a field with the key \"your-email\", you can use the tags %field_your-name% and %field_your-email% to rename the upload folder."
     3618msgstr ""
     3619
     3620#: assets/js/admin.js:1
     3621msgid "You can also use the field ID  to rename the upload folder with the form field values."
     3622msgstr ""
     3623
     3624#: assets/js/admin.js:1
     3625msgid "If you have a field with the id \"name\" and a field with the key \"field_12ca45\", you can use the tags %name% and %field_12ca45% to rename the upload folder."
     3626msgstr ""
     3627
     3628#: assets/js/admin.js:1
     3629msgid "Allow merging folders if a folder with the same name already exists, and upload files into that existing folder instead of creating a new one."
     3630msgstr ""
     3631
     3632#: assets/js/admin.js:1
     3633msgid "Item Selected"
     3634msgid_plural "Items Selected"
     3635msgstr[0] ""
     3636msgstr[1] ""
     3637
     3638#: assets/js/admin.js:1
     3639msgid "No items selected"
     3640msgstr ""
     3641
     3642#: assets/js/admin.js:1
     3643msgid "Choose a single upload folder for file uploads."
     3644msgstr ""
     3645
     3646#: assets/js/admin.js:1
     3647msgid "To change it, deselect the current folder and select a new one."
     3648msgstr ""
     3649
     3650#: assets/js/admin.js:1
     3651msgid "If folder is selected, all the files of the folder will be embedded."
     3652msgstr ""
     3653
     3654#: assets/js/admin.js:1
     3655msgid "Embed files must be public"
     3656msgstr ""
     3657
     3658#: assets/js/admin.js:1
     3659msgid "Show Files"
     3660msgstr ""
     3661
     3662#: assets/js/admin.js:1
     3663msgid "If turned off, files won't show."
     3664msgstr ""
     3665
     3666#: assets/js/admin.js:1
     3667msgid "Show Folders"
     3668msgstr ""
     3669
     3670#: assets/js/admin.js:1
     3671msgid "If turned off, folders won't show."
     3672msgstr ""
     3673
     3674#: assets/js/admin.js:1
     3675msgid "Allowed Extensions"
     3676msgstr ""
     3677
     3678#: assets/js/admin.js:1
     3679msgid "Enter comma ( , ) seperated file extensions to allow, such as \"jpg, png, gif\". Leave empty to %s all extension files."
     3680msgstr ""
     3681
     3682#: assets/js/admin.js:1
     3683msgid "upload"
     3684msgstr ""
     3685
     3686#: assets/js/admin.js:1
     3687msgid "show"
     3688msgstr ""
     3689
     3690#: assets/js/admin.js:1
     3691msgid "Allow all : "
     3692msgstr ""
     3693
     3694#: assets/js/admin.js:1
     3695msgid "Except : "
     3696msgstr ""
     3697
     3698#: assets/js/admin.js:1
     3699msgid "When \"Allow all\" is enabled, exceptions will not be %s."
     3700msgstr ""
     3701
     3702#: assets/js/admin.js:1
     3703msgid "uploaded"
     3704msgstr ""
     3705
     3706#: assets/js/admin.js:1
     3707msgid "displayed"
     3708msgstr ""
     3709
     3710#: assets/js/admin.js:1
     3711msgid "Allowed Names"
     3712msgstr ""
     3713
     3714#: assets/js/admin.js:1
     3715msgid "Enter file and folder names, separated by commas, to display. Leave blank to display all files and folders."
     3716msgstr ""
     3717
     3718#: assets/js/admin.js:1
     3719msgid "When \"Allow all\" is enabled, exceptions will not be displayed."
     3720msgstr ""
     3721
     3722#: assets/js/admin.js:1
     3723msgid "You can use the * and ? wildcards to match multiple characters and single characters respectively."
     3724msgstr ""
     3725
     3726#: assets/js/admin.js:1
     3727msgid "For example:"
     3728msgstr ""
     3729
     3730#: assets/js/admin.js:1
     3731msgid "will match all files that start with report and have the .txt extension."
     3732msgstr ""
     3733
     3734#: assets/js/admin.js:1
     3735msgid "will match all files that start with file like \"file1\", \"file2\", and all files that start with image_."
     3736msgstr ""
     3737
     3738#: assets/js/admin.js:1
     3739msgid "Apply to : "
     3740msgstr ""
     3741
     3742#: assets/js/admin.js:1
     3743msgid "Select the type of files to apply the name filters."
     3744msgstr ""
     3745
     3746#: assets/js/admin.js:1
     3747msgid "Maximum File Numbers"
     3748msgstr ""
     3749
     3750#: assets/js/admin.js:1
     3751msgid "Enter the maximum number of how many files you want to show. Leave empty to show all files."
     3752msgstr ""
     3753
     3754#: assets/js/admin.js:1
     3755msgid "Max File Uploads"
     3756msgstr ""
     3757
     3758#: assets/js/admin.js:1
     3759msgid "Enter the max number of files to upload at once. Leave empty for no limit."
     3760msgstr ""
     3761
     3762#: assets/js/admin.js:1
     3763msgid "Min File Uploads"
     3764msgstr ""
     3765
     3766#: assets/js/admin.js:1
     3767msgid "Enter the minimum number of files to upload. Leave empty for no limit."
     3768msgstr ""
     3769
     3770#: assets/js/admin.js:1
     3771msgid "Max File Size (MB)"
     3772msgstr ""
     3773
     3774#: assets/js/admin.js:1
     3775msgid "Enter the maximum upload file size (MB)."
     3776msgstr ""
     3777
     3778#: assets/js/admin.js:1
     3779msgid "Min File Size (MB)"
     3780msgstr ""
     3781
     3782#: assets/js/admin.js:1
     3783msgid "Enter the minimum upload file size (MB)."
     3784msgstr ""
     3785
     3786#: assets/js/admin.js:1
     3787msgid "Created Date"
     3788msgstr ""
     3789
     3790#: assets/js/admin.js:1
     3791msgid "Modified Date"
     3792msgstr ""
     3793
     3794#: assets/js/admin.js:1
     3795msgid "Random"
     3796msgstr ""
     3797
     3798#: assets/js/admin.js:1
     3799msgid "Module Container"
     3800msgstr ""
     3801
     3802#: assets/js/admin.js:1
     3803msgid "Container Width"
     3804msgstr ""
     3805
     3806#: assets/js/admin.js:1
     3807msgid "Container Height"
     3808msgstr ""
     3809
     3810#: assets/js/admin.js:1
     3811msgid "Set the module container width and height. You can use any valid CSS unit (pixels, percentage), eg '360px', '780px', '80%'. Keep blank for default value."
     3812msgstr ""
     3813
     3814#: assets/js/admin.js:1
     3815msgid "Embed Iframe Width"
     3816msgstr ""
     3817
     3818#: assets/js/admin.js:1
     3819msgid "Set embed iframe width. You can use any valid CSS unit (pixels, percentage), eg '360px', '780px', '100%'. Keep blank for default value."
     3820msgstr ""
     3821
     3822#: assets/js/admin.js:1
     3823msgid "Embed Iframe Height"
     3824msgstr ""
     3825
     3826#: assets/js/admin.js:1
     3827msgid "Set embed iframe height. You can use any valid CSS unit (pixels, percentage), eg '360px', '780px', '100%'. Keep blank for default value."
     3828msgstr ""
     3829
     3830#: assets/js/admin.js:1
     3831msgid "Show File Name"
     3832msgstr ""
     3833
     3834#: assets/js/admin.js:1
     3835msgid "Show/ hide the file name at the top of the file."
     3836msgstr ""
     3837
     3838#: assets/js/admin.js:1
     3839msgid "Direct Media Display"
     3840msgstr ""
     3841
     3842#: assets/js/admin.js:1
     3843msgid "Upgrade to Pro to display Audio, Video and Images directly without embed."
     3844msgstr ""
     3845
     3846#: assets/js/admin.js:1
     3847msgid "Display Audio, Video and Image files directly without embedding them into an iframe."
     3848msgstr ""
     3849
     3850#: assets/js/admin.js:1
     3851msgid "Occasionally, audio and video files may not play correctly within an embedded player. Enable this option to resolve the issue by displaying media files directly, bypassing the embed."
     3852msgstr ""
     3853
     3854#: assets/js/admin.js:1
     3855msgid "Embed Type"
     3856msgstr ""
     3857
     3858#: assets/js/admin.js:1
     3859msgid "Upgrade to Pro to change the embed type."
     3860msgstr ""
     3861
     3862#: assets/js/admin.js:1
     3863msgid "Read Only"
     3864msgstr ""
     3865
     3866#: assets/js/admin.js:1
     3867msgid "Editable"
     3868msgstr ""
     3869
     3870#: assets/js/admin.js:1
     3871msgid "Full Editable"
     3872msgstr ""
     3873
     3874#: assets/js/admin.js:1
     3875msgid "Select the embed type for the selected documents."
     3876msgstr ""
     3877
     3878#: assets/js/admin.js:1
     3879msgid "The document will be displayed in a read-only mode."
     3880msgstr ""
     3881
     3882#: assets/js/admin.js:1
     3883msgid "The document will be displayed in an editable mode. Users will be able to edit the document."
     3884msgstr ""
     3885
     3886#: assets/js/admin.js:1
     3887msgid "The document will be displayed in an editable mode with extended edit tool-bars and features."
     3888msgstr ""
     3889
     3890#: assets/js/admin.js:1
     3891msgid "Note:"
     3892msgstr ""
     3893
     3894#: assets/js/admin.js:1
     3895msgid "The editable mode is only available for the editable Google Docs & Office Docs."
     3896msgstr ""
     3897
     3898#: assets/js/admin.js:1
     3899msgid "Allow Pop-out"
     3900msgstr ""
     3901
     3902#: assets/js/admin.js:1
     3903msgid "In the embed document view (e.g. a pdf) there is a pop-out button that when clicked will bring the user to the Google Drive view of the document, with full features to download, print, etc. "
     3904msgstr ""
     3905
     3906#: assets/js/admin.js:1
     3907msgid "If the pop-out option is disabled, users will be able to view the embedded document only on your website and not on Google Drive."
     3908msgstr ""
     3909
     3910#: assets/js/admin.js:1
     3911msgid "Layout"
     3912msgstr ""
     3913
     3914#: assets/js/admin.js:1
     3915msgid "Upgrade to change the gallery layout."
     3916msgstr ""
     3917
     3918#: assets/js/admin.js:1
     3919msgid "Select the layout for the gallery."
     3920msgstr ""
     3921
     3922#: assets/js/admin.js:1
     3923msgid "Upgrade to change the gallery column."
     3924msgstr ""
     3925
     3926#: assets/js/admin.js:1
     3927msgid "Set the number of columns to display on each device."
     3928msgstr ""
     3929
     3930#: assets/js/admin.js:1
     3931msgid "Row Height"
     3932msgstr ""
     3933
     3934#: assets/js/admin.js:1
     3935msgid "The ideal height you want your grid rows to be. It won't set it exactly to this as plugin adjusts the row height to get the correct width. Leave empty for default value."
     3936msgstr ""
     3937
     3938#: assets/js/admin.js:1
     3939msgid "Aspect Ratio"
     3940msgstr ""
     3941
     3942#: assets/js/admin.js:1
     3943msgid "Select the aspect ratio for the gallery items."
     3944msgstr ""
     3945
     3946#: assets/js/admin.js:1
     3947msgid "Margin"
     3948msgstr ""
     3949
     3950#: assets/js/admin.js:1
     3951msgid "The margin between each image in the gallery. Leave empty for default value."
     3952msgstr ""
     3953
     3954#: assets/js/admin.js:1
     3955msgid "Image Thumbnail Size"
     3956msgstr ""
     3957
     3958#: assets/js/admin.js:1
     3959msgid "Small - 300x300"
     3960msgstr ""
     3961
     3962#: assets/js/admin.js:1
     3963msgid "Medium - 600x400"
     3964msgstr ""
     3965
     3966#: assets/js/admin.js:1
     3967msgid "Large - 1024x768"
     3968msgstr ""
     3969
     3970#: assets/js/admin.js:1
     3971msgid "Full"
     3972msgstr ""
     3973
     3974#: assets/js/admin.js:1
     3975msgid "Custom"
     3976msgstr ""
     3977
     3978#: assets/js/admin.js:1
     3979msgid "Select the thumbnail size for the gallery images."
     3980msgstr ""
     3981
     3982#: assets/js/admin.js:1
     3983msgid "Custom Size"
     3984msgstr ""
     3985
     3986#: assets/js/admin.js:1
     3987msgid "Width"
     3988msgstr ""
     3989
     3990#: assets/js/admin.js:1
     3991msgid "Height"
     3992msgstr ""
     3993
     3994#: assets/js/admin.js:1
     3995msgid "Set the custom thumbnail size width and height for the gallery images."
     3996msgstr ""
     3997
     3998#: assets/js/admin.js:1
     3999msgid "Thumbnail View"
     4000msgstr ""
     4001
     4002#: assets/js/admin.js:1
     4003msgid "Rounded"
     4004msgstr ""
     4005
     4006#: assets/js/admin.js:1
     4007msgid "Square"
     4008msgstr ""
     4009
     4010#: assets/js/admin.js:1
     4011msgid "Select the image thumbnail view style for the gallery."
     4012msgstr ""
     4013
     4014#: assets/js/admin.js:1
     4015msgid "Folder View"
     4016msgstr ""
     4017
     4018#: assets/js/admin.js:1
     4019msgid "Thumbnail"
     4020msgstr ""
     4021
     4022#: assets/js/admin.js:1
     4023msgid "Select the folders view style for the gallery."
     4024msgstr ""
     4025
     4026#: assets/js/admin.js:1
     4027msgid "Show Overlay"
     4028msgstr ""
     4029
     4030#: assets/js/admin.js:1
     4031msgid "Show the image overlay on hover."
     4032msgstr ""
     4033
     4034#: assets/js/admin.js:1
     4035msgid "Show Title"
     4036msgstr ""
     4037
     4038#: assets/js/admin.js:1
     4039msgid "Show the gallery item title on hover overlay."
     4040msgstr ""
     4041
     4042#: assets/js/admin.js:1
     4043msgid "Show Description"
     4044msgstr ""
     4045
     4046#: assets/js/admin.js:1
     4047msgid "Show the gallery item description on hover overlay."
     4048msgstr ""
     4049
     4050#: assets/js/admin.js:1
     4051msgid "Show Size"
     4052msgstr ""
     4053
     4054#: assets/js/admin.js:1
     4055msgid "Show the gallery item size on hover overlay."
     4056msgstr ""
     4057
     4058#: assets/js/admin.js:1
     4059msgid "Browser View"
     4060msgstr ""
     4061
     4062#: assets/js/admin.js:1
     4063msgid "Grid"
     4064msgstr ""
     4065
     4066#: assets/js/admin.js:1
     4067msgid "List"
     4068msgstr ""
     4069
     4070#: assets/js/admin.js:1
     4071msgid "Select the file browser view."
     4072msgstr ""
     4073
     4074#: assets/js/admin.js:1
     4075msgid "Show Last Modified Field"
     4076msgstr ""
     4077
     4078#: assets/js/admin.js:1
     4079msgid "Show/ hide the file last modified date field in the list view."
     4080msgstr ""
     4081
     4082#: assets/js/admin.js:1
     4083msgid "Enable Lazy load"
     4084msgstr ""
     4085
     4086#: assets/js/admin.js:1
     4087msgid "Enable/ disable files lazy load."
     4088msgstr ""
     4089
     4090#: assets/js/admin.js:1
     4091msgid "Lazy load number"
     4092msgstr ""
     4093
     4094#: assets/js/admin.js:1
     4095msgid "Set the number of files to load on each lazy load."
     4096msgstr ""
     4097
     4098#: assets/js/admin.js:1
     4099msgid "Show Header"
     4100msgstr ""
     4101
     4102#: assets/js/admin.js:1
     4103msgid "Show/ hide the file browser header."
     4104msgstr ""
     4105
     4106#: assets/js/admin.js:1
     4107msgid "Show Breadcrumbs Navigation"
     4108msgstr ""
     4109
     4110#: assets/js/admin.js:1
     4111msgid "Show/ hide the breadcrumbs folder navigation in the header."
     4112msgstr ""
     4113
     4114#: assets/js/admin.js:1
     4115msgid "Show Refresh Button"
     4116msgstr ""
     4117
     4118#: assets/js/admin.js:1
     4119msgid "Show/ hide the refresh (sync) button in the header."
     4120msgstr ""
     4121
     4122#: assets/js/admin.js:1
     4123msgid "Show Sorting Button"
     4124msgstr ""
     4125
     4126#: assets/js/admin.js:1
     4127msgid "Show/ hide the files sorting options button in the header"
     4128msgstr ""
     4129
     4130#: assets/js/admin.js:1
     4131msgid "Allow Embed Player"
     4132msgstr ""
     4133
     4134#: assets/js/admin.js:1
     4135msgid "Enable embed player for the large video files using Google Drive native player."
     4136msgstr ""
     4137
     4138#: assets/js/admin.js:1
     4139msgid "Show Next & Previous"
     4140msgstr ""
     4141
     4142#: assets/js/admin.js:1
     4143msgid "Show/hide the next & previous buttons in the player. Enables navigation between media items in the playlist."
     4144msgstr ""
     4145
     4146#: assets/js/admin.js:1
     4147msgid "Show Rewind & Forward"
     4148msgstr ""
     4149
     4150#: assets/js/admin.js:1
     4151msgid "Show/hide the rewind & forward buttons in the player. Allows users to quickly skip backward or forward in the video."
     4152msgstr ""
     4153
     4154#: assets/js/admin.js:1
     4155msgid "Show Playlist"
     4156msgstr ""
     4157
     4158#: assets/js/admin.js:1
     4159msgid "Show/hide the playlist in the player."
     4160msgstr ""
     4161
     4162#: assets/js/admin.js:1
     4163msgid "Opened Playlist"
     4164msgstr ""
     4165
     4166#: assets/js/admin.js:1
     4167msgid "Should be the playlist opened by default."
     4168msgstr ""
     4169
     4170#: assets/js/admin.js:1
     4171msgid "Playlist Autoplay"
     4172msgstr ""
     4173
     4174#: assets/js/admin.js:1
     4175msgid "Start playing next item automatically in the playlist once the current item is ended."
     4176msgstr ""
     4177
     4178#: assets/js/admin.js:1
     4179msgid "Show Thumbnail"
     4180msgstr ""
     4181
     4182#: assets/js/admin.js:1
     4183msgid "Show/hide the thumbnail in the playlist."
     4184msgstr ""
     4185
     4186#: assets/js/admin.js:1
     4187msgid "Show Number Prefix"
     4188msgstr ""
     4189
     4190#: assets/js/admin.js:1
     4191msgid "Show/hide the numeric prefix in the playlist items."
     4192msgstr ""
     4193
     4194#: assets/js/admin.js:1
     4195msgid "Playlist Position"
     4196msgstr ""
     4197
     4198#: assets/js/admin.js:1
     4199msgid "Left"
     4200msgstr ""
     4201
     4202#: assets/js/admin.js:1
     4203msgid "Right"
     4204msgstr ""
     4205
     4206#: assets/js/admin.js:1
     4207msgid "Bottom"
     4208msgstr ""
     4209
     4210#: assets/js/admin.js:1
     4211msgid "Select the playlist position in the player."
     4212msgstr ""
     4213
     4214#: assets/js/admin.js:1
     4215msgid "Overwrite Files"
     4216msgstr ""
     4217
     4218#: assets/js/admin.js:1
     4219msgid "Enable to overwrite files with the same name."
     4220msgstr ""
     4221
     4222#: assets/js/admin.js:1
     4223msgid "Enable Folder Upload"
     4224msgstr ""
     4225
     4226#: assets/js/admin.js:1
     4227msgid "Allow users to upload folders. A folder upload button will be added."
     4228msgstr ""
     4229
     4230#: assets/js/admin.js:1
     4231msgid "Upload Immediately"
     4232msgstr ""
     4233
     4234#: assets/js/admin.js:1
     4235msgid "Start uploading files immediately after they are selected."
     4236msgstr ""
     4237
     4238#: assets/js/admin.js:1
     4239#: assets/js/settings.js:1
     4240msgid "Note: "
     4241msgstr ""
     4242
     4243#: assets/js/admin.js:1
     4244msgid "For multi-step forms, must be enabled this option to proceed to the next step."
     4245msgstr ""
     4246
     4247#: assets/js/admin.js:1
     4248msgid "Show Upload Confirmation"
     4249msgstr ""
     4250
     4251#: assets/js/admin.js:1
     4252msgid "Show/ hide the upload confirmation message after upload is complete."
     4253msgstr ""
     4254
     4255#: assets/js/admin.js:1
     4256msgid "Confirmation Message"
     4257msgstr ""
     4258
     4259#: assets/js/admin.js:1
     4260msgid "Enter the upload confirmation message."
     4261msgstr ""
     4262
     4263#: assets/js/admin.js:1
     4264msgid "File Rename"
     4265msgstr ""
     4266
     4267#: assets/js/admin.js:1
     4268msgid "Rename the uploaded file by adding suffix or prefix. You can use the available tags to rename the file."
     4269msgstr ""
     4270
     4271#: assets/js/admin.js:1
     4272msgid "Available tags"
     4273msgstr ""
     4274
     4275#: assets/js/admin.js:1
     4276msgid "Show Upload Label Text"
     4277msgstr ""
     4278
     4279#: assets/js/admin.js:1
     4280msgid "Show/ hide the uploader label text."
     4281msgstr ""
     4282
     4283#: assets/js/admin.js:1
     4284msgid "Label Text"
     4285msgstr ""
     4286
     4287#: assets/js/admin.js:1
     4288msgid "Enter the uploader label text."
     4289msgstr ""
     4290
     4291#: assets/js/admin.js:1
     4292msgid "Open in new tab"
     4293msgstr ""
     4294
     4295#: assets/js/admin.js:1
     4296msgid "Open a new tab for viewing the file."
     4297msgstr ""
     4298
     4299#: assets/js/admin.js:1
     4300msgid "Slide Height"
     4301msgstr ""
     4302
     4303#: assets/js/admin.js:1
     4304msgid "Set the height of the carousel slide. You can use any valid CSS unit (pixels, percentage), eg '360px', '780px', '80%'. Keep blank for default value."
     4305msgstr ""
     4306
     4307#: assets/js/admin.js:1
     4308msgid "Image Size"
     4309msgstr ""
     4310
     4311#: assets/js/admin.js:1
     4312msgid "Select the thumbnail size for the slider images."
     4313msgstr ""
     4314
     4315#: assets/js/admin.js:1
     4316msgid "Set the custom thumbnail size width and height for the slider images."
     4317msgstr ""
     4318
     4319#: assets/js/admin.js:1
     4320msgid "Slides per Page"
     4321msgstr ""
     4322
     4323#: assets/js/admin.js:1
     4324msgid "Set the number of slides per page for each device."
     4325msgstr ""
     4326
     4327#: assets/js/admin.js:1
     4328msgid "Mobile: < 576px, Tablet: ≥ 576px, Laptop: ≥ 768px, Desktop: ≥ 992px, Large Desktop: ≥ 1200px"
     4329msgstr ""
     4330
     4331#: assets/js/admin.js:1
     4332msgid "Gap"
     4333msgstr ""
     4334
     4335#: assets/js/admin.js:1
     4336msgid "Set the gap between slides in pixels."
     4337msgstr ""
     4338
     4339#: assets/js/admin.js:1
     4340msgid "Show/ hide the file name in the carousel slide."
     4341msgstr ""
     4342
     4343#: assets/js/admin.js:1
     4344msgid "Show File Description"
     4345msgstr ""
     4346
     4347#: assets/js/admin.js:1
     4348msgid "Show/ hide the file description in the carousel slide."
     4349msgstr ""
     4350
     4351#: assets/js/admin.js:1
     4352msgid "Slide Autoplay"
     4353msgstr ""
     4354
     4355#: assets/js/admin.js:1
     4356msgid "Enable autoplay for the slider."
     4357msgstr ""
     4358
     4359#: assets/js/admin.js:1
     4360msgid "Autoplay Speed"
     4361msgstr ""
     4362
     4363#: assets/js/admin.js:1
     4364msgid "Set the autoplay speed in milliseconds."
     4365msgstr ""
     4366
     4367#: assets/js/admin.js:1
     4368msgid "Slide Dots Navigation"
     4369msgstr ""
     4370
     4371#: assets/js/admin.js:1
     4372msgid "Enable dots navigation for the slider."
     4373msgstr ""
     4374
     4375#: assets/js/admin.js:1
     4376msgid "Slide Arrows Navigation"
     4377msgstr ""
     4378
     4379#: assets/js/admin.js:1
     4380msgid "Enable arrows navigation for the slider."
     4381msgstr ""
     4382
     4383#: assets/js/admin.js:1
     4384msgid "Enable Redirection"
     4385msgstr ""
     4386
     4387#: assets/js/admin.js:1
     4388msgid "Enable to redirect the user directly to the Google Drive file instead of downloading the file."
     4389msgstr ""
     4390
     4391#: assets/js/admin.js:1
     4392msgid "Add User Permission"
     4393msgstr ""
     4394
     4395#: assets/js/admin.js:1
     4396msgid "Enable to add permission for the purchase email address to the file."
     4397msgstr ""
     4398
     4399#: assets/js/admin.js:1
     4400msgid "The purchase email address must be a gmail address. Otherwise the permission will not be added."
     4401msgstr ""
     4402
     4403#: assets/js/admin.js:1
     4404msgid "Sorting"
     4405msgstr ""
     4406
     4407#: assets/js/admin.js:1
     4408msgid "Select file sorting and direction."
     4409msgstr ""
     4410
     4411#: assets/js/admin.js:1
     4412msgid "Enable Notifications"
     4413msgstr ""
     4414
     4415#: assets/js/admin.js:1
     4416msgid "Upgrade to PRO to enable email notificationenableN"
     4417msgstr ""
     4418
     4419#: assets/js/admin.js:1
     4420msgid "Enable email notifications to get notified on various user activities (upload, download, delete, etc)."
     4421msgstr ""
     4422
     4423#: assets/js/admin.js:1
     4424msgid "Download Notification"
     4425msgstr ""
     4426
     4427#: assets/js/admin.js:1
     4428msgid "Upgrade to PRO to enable email notifications."
     4429msgstr ""
     4430
     4431#: assets/js/admin.js:1
     4432msgid "Receive email notification whenever files is downloaded through this module."
     4433msgstr ""
     4434
     4435#: assets/js/admin.js:1
     4436msgid "Upload Notification"
     4437msgstr ""
     4438
     4439#: assets/js/admin.js:1
     4440msgid "Upgrade to PRO to enable email notification."
     4441msgstr ""
     4442
     4443#: assets/js/admin.js:1
     4444msgid "Receive an email notifications whenever someone uploaded files through this module."
     4445msgstr ""
     4446
     4447#: assets/js/admin.js:1
     4448msgid "Delete Notification"
     4449msgstr ""
     4450
     4451#: assets/js/admin.js:1
     4452msgid "Receive email notifications whenever someone deleted files through this module."
     4453msgstr ""
     4454
     4455#: assets/js/admin.js:1
     4456msgid "Media Play Notification"
     4457msgstr ""
     4458
     4459#: assets/js/admin.js:1
     4460msgid "Receive email notifications whenever someone play audio/video files through this module."
     4461msgstr ""
     4462
     4463#: assets/js/admin.js:1
     4464msgid "Search Notification"
     4465msgstr ""
     4466
     4467#: assets/js/admin.js:1
     4468msgid "Receive email notifications whenever someone search for files through this module."
     4469msgstr ""
     4470
     4471#: assets/js/admin.js:1
     4472msgid "View Notification"
     4473msgstr ""
     4474
     4475#: assets/js/admin.js:1
     4476msgid "Receive email notifications whenever someone view files through this module."
     4477msgstr ""
     4478
     4479#: assets/js/admin.js:1
     4480msgid "Notification Recipients"
     4481msgstr ""
     4482
     4483#: assets/js/admin.js:1
     4484msgid "Enter the email address where the notifications will be sent. Add multiple email addresses by separating them with a comma (,)."
     4485msgstr ""
     4486
     4487#: assets/js/admin.js:1
     4488msgid "You can also set the below placeholder tags as email recipient."
     4489msgstr ""
     4490
     4491#: assets/js/admin.js:1
     4492msgid "The email of site admin."
     4493msgstr ""
     4494
     4495#: assets/js/admin.js:1
     4496msgid "The email of current user who executes the action."
     4497msgstr ""
     4498
     4499#: assets/js/admin.js:1
     4500msgid "The email of the owner of the private folder."
     4501msgstr ""
     4502
     4503#: assets/js/admin.js:1
     4504msgid "Skip current user notification"
     4505msgstr ""
     4506
     4507#: assets/js/admin.js:1
     4508msgid "Enable to skip the notification for the user that executes the action."
     4509msgstr ""
     4510
     4511#: assets/js/admin.js:1
     4512msgid "Select the users and roles who can access."
     4513msgstr ""
     4514
     4515#: assets/js/admin.js:1
     4516msgid "Everyone"
     4517msgstr ""
     4518
     4519#: assets/js/admin.js:1
     4520msgid "File Manipulation"
     4521msgstr ""
     4522
     4523#: assets/js/admin.js:1
     4524msgid "Upload"
     4525msgstr ""
     4526
     4527#: assets/js/admin.js:1
     4528msgid "Allow users to upload files."
     4529msgstr ""
     4530
     4531#: assets/js/admin.js:1
     4532msgid "Select users & roles who can upload files."
     4533msgstr ""
     4534
     4535#: assets/js/admin.js:1
     4536msgid "Allow users to preview files."
     4537msgstr ""
     4538
     4539#: assets/js/admin.js:1
     4540msgid "Inline Preview"
     4541msgstr ""
     4542
     4543#: assets/js/admin.js:1
     4544msgid "Open preview in a pop-up lightbox. If disabled, the preview will be opened in Google Drive."
     4545msgstr ""
     4546
     4547#: assets/js/admin.js:1
     4548msgid "Pop-out button allows the user to view the document on Google Drive with full features, while disabling it will only show the preview document on your website."
     4549msgstr ""
     4550
     4551#: assets/js/admin.js:1
     4552msgid "Select users & roles who can preview files."
     4553msgstr ""
     4554
     4555#: assets/js/admin.js:1
     4556msgid "Photo Proofing"
     4557msgstr ""
     4558
     4559#: assets/js/admin.js:1
     4560msgid "Upgrade to Pro to photo proofing"
     4561msgstr ""
     4562
     4563#: assets/js/admin.js:1
     4564msgid "Allow users to select images and send them to the admin."
     4565msgstr ""
     4566
     4567#: assets/js/admin.js:1
     4568msgid "Maximum Selection"
     4569msgstr ""
     4570
     4571#: assets/js/admin.js:1
     4572msgid "Upgrade to PRO to enable photo proofing"
     4573msgstr ""
     4574
     4575#: assets/js/admin.js:1
     4576msgid "Enter the maximum number of images that can be selected. Leave empty for no limit."
     4577msgstr ""
     4578
     4579#: assets/js/admin.js:1
     4580msgid "Notification Email"
     4581msgstr ""
     4582
     4583#: assets/js/admin.js:1
     4584msgid "Upgrade to Pro to enable photo proofing"
     4585msgstr ""
     4586
     4587#: assets/js/admin.js:1
     4588msgid "Enter the email address where the selected images notification will be sent."
     4589msgstr ""
     4590
     4591#: assets/js/admin.js:1
     4592msgid "Select users & roles who can select."
     4593msgstr ""
     4594
     4595#: assets/js/admin.js:1
     4596msgid "Allow users to download files."
     4597msgstr ""
     4598
     4599#: assets/js/admin.js:1
     4600msgid "Zip Download"
     4601msgstr ""
     4602
     4603#: assets/js/admin.js:1
     4604msgid "Upgrade to Pro to enable zip download."
     4605msgstr ""
     4606
     4607#: assets/js/admin.js:1
     4608msgid "Allow users to download multiple files at once."
     4609msgstr ""
     4610
     4611#: assets/js/admin.js:1
     4612msgid "The Google Drive API does not support ZIP creation on the fly. Therefore, the ZIP file needs to be created (temporarily) on your server. For that reason, it is not recommended to enable this setting when you are working with large files or folders."
     4613msgstr ""
     4614
     4615#: assets/js/admin.js:1
     4616msgid "Show File Size Field"
     4617msgstr ""
     4618
     4619#: assets/js/admin.js:1
     4620msgid "Show/ hide the file size field in the file list."
     4621msgstr ""
     4622
     4623#: assets/js/admin.js:1
     4624msgid "Select users & roles who can download files."
     4625msgstr ""
     4626
     4627#: assets/js/admin.js:1
     4628msgid "Allow users to delete files and folders."
     4629msgstr ""
     4630
     4631#: assets/js/admin.js:1
     4632msgid "Select users & roles who can delete files & folders."
     4633msgstr ""
     4634
     4635#: assets/js/admin.js:1
     4636msgid "Allow users to create new folders."
     4637msgstr ""
     4638
     4639#: assets/js/admin.js:1
     4640msgid "Select users & roles who can create folders."
     4641msgstr ""
     4642
     4643#: assets/js/admin.js:1
     4644msgid "Move/ Copy"
     4645msgstr ""
     4646
     4647#: assets/js/admin.js:1
     4648msgid "Allow users to move/ copy files and folders."
     4649msgstr ""
     4650
     4651#: assets/js/admin.js:1
     4652msgid "Select users & roles who can move/ copy files."
     4653msgstr ""
     4654
     4655#: assets/js/admin.js:1
     4656msgid "Allow users to rename files and folders."
     4657msgstr ""
     4658
     4659#: assets/js/admin.js:1
     4660msgid "Select users & roles who can rename files."
     4661msgstr ""
     4662
     4663#: assets/js/admin.js:1
     4664msgid "Create Documents"
     4665msgstr ""
     4666
     4667#: assets/js/admin.js:1
     4668msgid "Allow users to create Google Docs and Office documents."
     4669msgstr ""
     4670
     4671#: assets/js/admin.js:1
     4672msgid "Select users & roles who can create documents."
     4673msgstr ""
     4674
     4675#: assets/js/admin.js:1
     4676msgid "Edit Documents"
     4677msgstr ""
     4678
     4679#: assets/js/admin.js:1
     4680msgid "Allow users to edit Google Docs and Office documents."
     4681msgstr ""
     4682
     4683#: assets/js/admin.js:1
     4684msgid "Select users & roles who can edit documents."
     4685msgstr ""
     4686
     4687#: assets/js/admin.js:1
     4688msgid "Allow Share"
     4689msgstr ""
     4690
     4691#: assets/js/admin.js:1
     4692msgid "Allow users to share files."
     4693msgstr ""
     4694
     4695#: assets/js/admin.js:1
     4696msgid "Select users & roles who can share files."
     4697msgstr ""
     4698
     4699#: assets/js/admin.js:1
     4700msgid "Allow users to generate direct links for files on your website."
     4701msgstr ""
     4702
     4703#: assets/js/admin.js:1
     4704msgid "Allow users to view file details (owner, created & modified date, etc)."
     4705msgstr ""
     4706
     4707#: assets/js/admin.js:1
     4708msgid "Select users & roles who view the file details."
     4709msgstr ""
     4710
     4711#: assets/js/admin.js:1
     4712msgid "Allow Comments"
     4713msgstr ""
     4714
     4715#: assets/js/admin.js:1
     4716msgid "Upgrade to Pro to enable comments"
     4717msgstr ""
     4718
     4719#: assets/js/admin.js:1
     4720msgid "Allow users to comment on files while they view the file in lightbox preview."
     4721msgstr ""
     4722
     4723#: assets/js/admin.js:1
     4724msgid "Comment Method"
     4725msgstr ""
     4726
     4727#: assets/js/admin.js:1
     4728msgid "Disqus"
     4729msgstr ""
     4730
     4731#: assets/js/admin.js:1
     4732msgid "Select the comment method you want to use."
     4733msgstr ""
     4734
     4735#: assets/js/admin.js:1
     4736msgid "Select users & roles who can comments on files."
     4737msgstr ""
     4738
     4739#: assets/js/admin.js:1
     4740msgid "View Switching"
     4741msgstr ""
     4742
     4743#: assets/js/admin.js:1
     4744msgid "Allow users to switch between grid and list view of the file listing."
     4745msgstr ""
     4746
     4747#: assets/js/admin.js:1
     4748msgid "Allow Search"
     4749msgstr ""
     4750
     4751#: assets/js/admin.js:1
     4752msgid "Upgrade to Pro to enable search"
     4753msgstr ""
     4754
     4755#: assets/js/admin.js:1
     4756msgid "Allow users to search for files."
     4757msgstr ""
     4758
     4759#: assets/js/admin.js:1
     4760msgid "Full-text Search"
     4761msgstr ""
     4762
     4763#: assets/js/admin.js:1
     4764msgid "Allow to search in file content, descriptions, tags and other metadata."
     4765msgstr ""
     4766
     4767#: assets/js/admin.js:1
     4768msgid "Initial Search Term"
     4769msgstr ""
     4770
     4771#: assets/js/admin.js:1
     4772msgid "Set initial search terms if you want to start a search when the shortcode is rendered. Please note that this only affects the initial render."
     4773msgstr ""
     4774
     4775#: assets/js/admin.js:1
     4776msgid "You can also set dynamic placeholder tags to the initial search term."
     4777msgstr ""
     4778
     4779#: assets/js/admin.js:1
     4780msgid "Select users & roles who can search for files."
     4781msgstr ""
     4782
     4783#: assets/js/admin.js:1
     4784msgid "Visibility"
     4785msgstr ""
     4786
     4787#: assets/js/admin.js:1
     4788msgid "Display for"
     4789msgstr ""
     4790
     4791#: assets/js/admin.js:1
     4792msgid "Logged In"
     4793msgstr ""
     4794
     4795#: assets/js/admin.js:1
     4796msgid "Select who can see the module."
     4797msgstr ""
     4798
     4799#: assets/js/admin.js:1
     4800msgid "Filter users & roles"
     4801msgstr ""
     4802
     4803#: assets/js/admin.js:1
     4804msgid "Select the users and user roles who can see the module."
     4805msgstr ""
     4806
     4807#: assets/js/admin.js:1
     4808msgid "Everyone :"
     4809msgstr ""
     4810
     4811#: assets/js/admin.js:1
     4812msgid "Except"
     4813msgstr ""
     4814
     4815#: assets/js/admin.js:1
     4816msgid "When activated, the module will be visible to everyone except for those specifically exempted."
     4817msgstr ""
     4818
     4819#: assets/js/admin.js:1
     4820msgid "Show Access Denied Message"
     4821msgstr ""
     4822
     4823#: assets/js/admin.js:1
     4824msgid "Show a message to users who don't have access to the module."
     4825msgstr ""
     4826
     4827#: assets/js/admin.js:1
     4828msgid "Access Denied Message"
     4829msgstr ""
     4830
     4831#: assets/js/admin.js:1
     4832msgid "Enter the message you want to show to users who don't have access to the module."
     4833msgstr ""
     4834
     4835#: assets/js/admin.js:1
     4836msgid "Types"
     4837msgstr ""
     4838
     4839#: assets/js/admin.js:1
     4840msgid "Source"
     4841msgstr ""
     4842
     4843#: assets/js/admin.js:1
     4844#: assets/js/statistics.js:1
     4845msgid "Filter"
     4846msgstr ""
     4847
     4848#: assets/js/admin.js:1
     4849#: assets/js/settings.js:1
     4850msgid "Advanced"
     4851msgstr ""
     4852
     4853#: assets/js/admin.js:1
     4854msgid "Notifications"
     4855msgstr ""
     4856
     4857#: assets/js/admin.js:1
     4858msgid "Permissions"
     4859msgstr ""
     4860
     4861#: assets/js/admin.js:1
     4862msgid "Module Type"
     4863msgstr ""
     4864
     4865#: assets/js/admin.js:1
     4866msgid "Select the module type that you want to use."
     4867msgstr ""
     4868
     4869#: assets/js/admin.js:1
     4870msgid "Select Folders and Files"
     4871msgstr ""
     4872
     4873#: assets/js/admin.js:1
     4874msgid "Select the folders & files to display in the file browser."
     4875msgstr ""
     4876
     4877#: assets/js/admin.js:1
     4878msgid "Select the folder where the files will be uploaded."
     4879msgstr ""
     4880
     4881#: assets/js/admin.js:1
     4882msgid "Select Files and Folders"
     4883msgstr ""
     4884
     4885#: assets/js/admin.js:1
     4886msgid "Select the files and folders to display in the gallery."
     4887msgstr ""
     4888
     4889#: assets/js/admin.js:1
     4890msgid "Select the folders and audio/ video files to display and play in the media player."
     4891msgstr ""
     4892
     4893#: assets/js/admin.js:1
     4894#: assets/js/settings.js:1
     4895msgid "Select Folders"
     4896msgstr ""
     4897
     4898#: assets/js/admin.js:1
     4899msgid "Select the folders to search in."
     4900msgstr ""
     4901
     4902#: assets/js/admin.js:1
     4903#: assets/js/private-folders.js:1
     4904msgid "Select Files"
     4905msgstr ""
     4906
     4907#: assets/js/admin.js:1
     4908msgid "Select the files to embed. You can also select folders to embed all the files of the folder."
     4909msgstr ""
     4910
     4911#: assets/js/admin.js:1
     4912msgid "Select the files to insert the download link. You can also select folders to insert the download link to download all the files of the folder in a zip file."
     4913msgstr ""
     4914
     4915#: assets/js/admin.js:1
     4916msgid "Select the files and folders to insert the link to view the file in Google Drive."
     4917msgstr ""
     4918
     4919#: assets/js/admin.js:1
     4920msgid "Select the files to attach in the course."
     4921msgstr ""
     4922
     4923#: assets/js/admin.js:1
     4924msgid "Select the files to attach in the product for download."
     4925msgstr ""
     4926
     4927#: assets/js/admin.js:1
     4928msgid "Filter Folders and Files"
     4929msgstr ""
     4930
     4931#: assets/js/admin.js:1
     4932msgid "Show/ hide files and folders and filter them by extensions and names to not display in the file browser."
     4933msgstr ""
     4934
     4935#: assets/js/admin.js:1
     4936msgid "Filter the files to upload by extensions"
     4937msgstr ""
     4938
     4939#: assets/js/admin.js:1
     4940msgid "Show/ hide files and folders and filter them by extensions and names to not display in the gallery."
     4941msgstr ""
     4942
     4943#: assets/js/admin.js:1
     4944msgid "Show/ hide files and filter them by extensions and names to not display in the slider."
     4945msgstr ""
     4946
     4947#: assets/js/admin.js:1
     4948msgid "Show/ hide files and folders and filter them by extensions and names to not display in the media player."
     4949msgstr ""
     4950
     4951#: assets/js/admin.js:1
     4952msgid "Show/ hide files and folders and filter them by extensions and names to not display in the search results."
     4953msgstr ""
     4954
     4955#: assets/js/admin.js:1
     4956msgid "Advanced Options"
     4957msgstr ""
     4958
     4959#: assets/js/admin.js:1
     4960msgid "Advanced options to customize the module."
     4961msgstr ""
     4962
     4963#: assets/js/admin.js:1
     4964msgid "Email Notifications"
     4965msgstr ""
     4966
     4967#: assets/js/admin.js:1
     4968msgid "Receive email notifications for various user activities (upload, download, delete, etc)."
     4969msgstr ""
     4970
     4971#: assets/js/admin.js:1
     4972msgid "Set the permissions to access the module."
     4973msgstr ""
     4974
     4975#: assets/js/admin.js:1
     4976msgid "Previous step"
     4977msgstr ""
     4978
     4979#: assets/js/admin.js:1
     4980#: assets/js/settings.js:1
     4981msgid "Save Changes"
     4982msgstr ""
     4983
     4984#: assets/js/admin.js:1
     4985msgid "Next step"
     4986msgstr ""
     4987
     4988#: assets/js/admin.js:1
     4989msgid "Finish"
     4990msgstr ""
     4991
     4992#: assets/js/admin.js:1
     4993msgid "Next"
     4994msgstr ""
     4995
     4996#: assets/js/admin.js:1
     4997msgid "Shortcode Title"
     4998msgstr ""
     4999
     5000#: assets/js/admin.js:1
     5001msgid "Shortcode has been updated."
     5002msgstr ""
     5003
     5004#: assets/js/admin.js:1
     5005#: assets/js/statistics.js:1
     5006msgid "Something went wrong."
     5007msgstr ""
     5008
     5009#: assets/js/admin.js:1
     5010msgid "Add New Shortcode - Integrate Google Drive"
     5011msgstr ""
     5012
     5013#: assets/js/admin.js:1
     5014msgid "All Shortcodes - Integrate Google Drive"
     5015msgstr ""
     5016
     5017#: assets/js/admin.js:1
     5018msgid "Shortcode has been deleted"
     5019msgstr ""
     5020
     5021#: assets/js/admin.js:1
     5022msgid "Duplicated!"
     5023msgstr ""
     5024
     5025#: assets/js/admin.js:1
     5026msgid "Shortcode has been duplicated."
     5027msgstr ""
     5028
     5029#: assets/js/admin.js:1
     5030msgid "Select Video"
     5031msgstr ""
     5032
     5033#: assets/js/admin.js:1
     5034msgid "Done"
     5035msgstr ""
     5036
     5037#: assets/js/admin.js:1
     5038msgid "Insert pre-built module's shortcode."
     5039msgstr ""
     5040
     5041#: assets/js/admin.js:1
     5042msgid "Insert a file browser to browse specific Google Drive files and folders."
     5043msgstr ""
     5044
     5045#: assets/js/admin.js:1
     5046msgid "Insert a file uploader to upload files to a specific Google Drive folder."
     5047msgstr ""
     5048
     5049#: assets/js/admin.js:1
     5050msgid "Insert a media player to play specific Google Drive Audio and Video files."
     5051msgstr ""
     5052
     5053#: assets/js/admin.js:1
     5054msgid "Insert a search box to search files and folders in specific Google Drive folders."
     5055msgstr ""
     5056
     5057#: assets/js/admin.js:1
     5058msgid "Display Images, Videos, and Documents in a slider carousel."
     5059msgstr ""
     5060
     5061#: assets/js/admin.js:1
     5062msgid "Insert a gallery to display specific Google Drive photos and videos with a lightbox preview."
     5063msgstr ""
     5064
     5065#: assets/js/admin.js:1
     5066msgid "Embed documents to your page/ post."
     5067msgstr ""
     5068
     5069#: assets/js/admin.js:1
     5070msgid "Insert links to download Google Drive files."
     5071msgstr ""
     5072
     5073#: assets/js/admin.js:1
     5074msgid "Insert links to view the files in Google Drive."
     5075msgstr ""
     5076
     5077#: assets/js/admin.js:1
     5078msgid "Select Insert Type"
     5079msgstr ""
     5080
     5081#: assets/js/admin.js:1
     5082msgid "Select the insert type that you want to insert into you post or page."
     5083msgstr ""
     5084
     5085#: assets/js/admin.js:1
     5086msgid " is available in the Pro version."
     5087msgstr ""
     5088
     5089#: assets/js/admin.js:1
     5090msgid "Select shortcode"
     5091msgstr ""
     5092
     5093#: assets/js/admin.js:1
     5094msgid "Select the already created module shortcode to insert into the post."
     5095msgstr ""
     5096
     5097#: assets/js/admin.js:1
     5098msgid "Insert Module"
     5099msgstr ""
     5100
     5101#: assets/js/admin.js:1
     5102msgid "Insert Module Shortcodes"
     5103msgstr ""
     5104
     5105#: assets/js/admin.js:1
     5106msgid "Insert File Browser"
     5107msgstr ""
     5108
     5109#: assets/js/admin.js:1
     5110msgid "Please, copy the following text and paste it into the \"Shortcode Data\" form editor field."
     5111msgstr ""
     5112
     5113#: assets/js/dokan.js:1
     5114#: assets/js/settings.js:1
     5115#: assets/js/tutor.js:1
     5116msgid "Yes, remove it!"
     5117msgstr ""
     5118
     5119#: assets/js/dokan.js:1
     5120#: assets/js/settings.js:1
     5121#: assets/js/tutor.js:1
     5122msgid "Removed!"
     5123msgstr ""
     5124
     5125#: assets/js/dokan.js:1
     5126#: assets/js/settings.js:1
     5127#: assets/js/tutor.js:1
     5128msgid "Account has been removed."
     5129msgstr ""
     5130
     5131#: assets/js/elementor.js:1
     5132#: assets/js/statistics.js:1
     5133msgid "GET PRO"
     5134msgstr ""
     5135
     5136#: assets/js/private-folders.js:1
     5137msgid "Link specific files & folders to the users"
     5138msgstr ""
     5139
     5140#: assets/js/private-folders.js:1
     5141msgid "Unlock PRO"
     5142msgstr ""
     5143
     5144#: assets/js/private-folders.js:1
     5145msgid "Search Users"
     5146msgstr ""
     5147
     5148#: assets/js/private-folders.js:1
     5149msgid "Role"
     5150msgstr ""
     5151
     5152#: assets/js/private-folders.js:1
     5153msgid "User files have been updated successfully."
     5154msgstr ""
     5155
     5156#: assets/js/private-folders.js:1
     5157msgid "With Private Folders, securely share Google Drive documents with users/clients for viewing, downloading, and managing in their private folders. Upgrade to PRO for user-specific private folders."
     5158msgstr ""
     5159
     5160#: assets/js/private-folders.js:1
     5161msgid "Upgrade to PRO to use the private folders for users."
     5162msgstr ""
     5163
     5164#: assets/js/settings.js:1
     5165msgid "Google Accounts"
     5166msgstr ""
     5167
     5168#: assets/js/settings.js:1
     5169msgid "Remove account"
     5170msgstr ""
     5171
     5172#: assets/js/settings.js:1
     5173msgid "You didn't link any Google account."
     5174msgstr ""
     5175
     5176#: assets/js/settings.js:1
     5177msgid "Link a Google account to continue."
     5178msgstr ""
     5179
     5180#: assets/js/settings.js:1
     5181msgid "Multiple Accounts - PRO"
     5182msgstr ""
     5183
     5184#: assets/js/settings.js:1
     5185msgid "See what happens with your data when you authorize?"
     5186msgstr ""
     5187
     5188#: assets/js/settings.js:1
     5189msgid "Requested scopes and justification"
     5190msgstr ""
     5191
     5192#: assets/js/settings.js:1
     5193msgid ""
     5194"In order to display your Google Drive cloud files, you have to authorize it with your Google account.\n"
     5195"\n"
     5196"                            The authorization will ask you to grant the application the https://www.googleapis.com/auth/drive scope.\n"
     5197"\n"
     5198"                            The scope is needed to allow the plugin to see, edit, create, and delete all of your Google\n"
     5199"                            Drive files and files that are shared with you."
     5200msgstr ""
     5201
     5202#: assets/js/settings.js:1
     5203msgid "Information about the data"
     5204msgstr ""
     5205
     5206#: assets/js/settings.js:1
     5207msgid ""
     5208"The authorization tokens will be stored, encrypted, on your server and is not accessible by any third party.\n"
     5209"                            When you use the Application, all communications are strictly between your server and the\n"
     5210"                            cloud storage service servers. We do not collect and do not have access to your personal\n"
     5211"                            data."
     5212msgstr ""
     5213
     5214#: assets/js/settings.js:1
     5215msgid "Advanced Settings"
     5216msgstr ""
     5217
     5218#: assets/js/settings.js:1
     5219msgid "Remember Last Opened Folder"
     5220msgstr ""
     5221
     5222#: assets/js/settings.js:1
     5223msgid "Enable this to load the last opened folder when a visitor revisit a File Browser or Gallery module."
     5224msgstr ""
     5225
     5226#: assets/js/settings.js:1
     5227msgid "Google Workspace Domain"
     5228msgstr ""
     5229
     5230#: assets/js/settings.js:1
     5231msgid "If you are using Google Workspace  and you want to share your documents ONLY with users having an account in your Google Workspace Domain, please insert your domain."
     5232msgstr ""
     5233
     5234#: assets/js/settings.js:1
     5235msgid "If you want to share your documents with to the public, please leave this field empty."
     5236msgstr ""
     5237
     5238#: assets/js/settings.js:1
     5239msgid "Manage Sharing Permissions"
     5240msgstr ""
     5241
     5242#: assets/js/settings.js:1
     5243msgid "By default, the plugin will manage the sharing permissions of the documents. If you want to manage the sharing permissions manually, please disable this option."
     5244msgstr ""
     5245
     5246#: assets/js/settings.js:1
     5247msgid "Link Own Google App"
     5248msgstr ""
     5249
     5250#: assets/js/settings.js:1
     5251msgid "Upgrade to PRO to use your own Google App."
     5252msgstr ""
     5253
     5254#: assets/js/settings.js:1
     5255msgid "Use your own Google app API instead of using the plugin default app API."
     5256msgstr ""
     5257
     5258#: assets/js/settings.js:1
     5259msgid "Using your own Google App is an optional option. For an easy setup you can just use the default App of the plugin itself. The advantage of using your own app is limited. If you decided to create your own Google App anyway, please enter your app Client ID & Secret key in the below settings."
     5260msgstr ""
     5261
     5262#: assets/js/settings.js:1
     5263msgid "App Client ID"
     5264msgstr ""
     5265
     5266#: assets/js/settings.js:1
     5267msgid "Insert you app client ID."
     5268msgstr ""
     5269
     5270#: assets/js/settings.js:1
     5271msgid "App Secret Key"
     5272msgstr ""
     5273
     5274#: assets/js/settings.js:1
     5275msgid "Insert you app secret key."
     5276msgstr ""
     5277
     5278#: assets/js/settings.js:1
     5279msgid "Redirect URI"
     5280msgstr ""
     5281
     5282#: assets/js/settings.js:1
     5283msgid "Copied to clipboard."
     5284msgstr ""
     5285
     5286#: assets/js/settings.js:1
     5287msgid "Copy the above redirect URI and set to your own google app."
     5288msgstr ""
     5289
     5290#: assets/js/settings.js:1
     5291msgid "Delete Data on Uninstall"
     5292msgstr ""
     5293
     5294#: assets/js/settings.js:1
     5295msgid "Delete the plugin data (settings, cache, accounts) on the uninstallation."
     5296msgstr ""
     5297
     5298#: assets/js/settings.js:1
     5299msgid "Auto Synchronization"
     5300msgstr ""
     5301
     5302#: assets/js/settings.js:1
     5303msgid "Enable Auto Synchronization"
     5304msgstr ""
     5305
     5306#: assets/js/settings.js:1
     5307msgid "Upgrade to PRO to enable auto synchronization."
     5308msgstr ""
     5309
     5310#: assets/js/settings.js:1
     5311msgid "Enable/ disable the local cache file auto synchronization with the cloud files."
     5312msgstr ""
     5313
     5314#: assets/js/settings.js:1
     5315msgid "Synchronization Interval"
     5316msgstr ""
     5317
     5318#: assets/js/settings.js:1
     5319msgid "Select the automatic cloud files synchronization interval."
     5320msgstr ""
     5321
     5322#: assets/js/settings.js:1
     5323msgid "Custom Sync Interval"
     5324msgstr ""
     5325
     5326#: assets/js/settings.js:1
     5327msgid "Enter the custom synchronization interval in seconds (min: 60 seconds)."
     5328msgstr ""
     5329
     5330#: assets/js/settings.js:1
     5331msgid "e.g: 3600 = 1 hour, 1800 = 30 minutes."
     5332msgstr ""
     5333
     5334#: assets/js/settings.js:1
     5335msgid "Synchronization Type"
     5336msgstr ""
     5337
     5338#: assets/js/settings.js:1
     5339msgid "All Folders"
     5340msgstr ""
     5341
     5342#: assets/js/settings.js:1
     5343msgid "Specific Selected Folders"
     5344msgstr ""
     5345
     5346#: assets/js/settings.js:1
     5347msgid "Select the synchronization type."
     5348msgstr ""
     5349
     5350#: assets/js/settings.js:1
     5351msgid "All the cached folders will be synchronized with the cloud."
     5352msgstr ""
     5353
     5354#: assets/js/settings.js:1
     5355msgid "Specific Folders"
     5356msgstr ""
     5357
     5358#: assets/js/settings.js:1
     5359msgid "Syncs only chosen folders with the cloud, helpful for large sets of folders when only a few need synchronization."
     5360msgstr ""
     5361
     5362#: assets/js/settings.js:1
     5363msgid "Update Folders"
     5364msgstr ""
     5365
     5366#: assets/js/settings.js:1
     5367msgid "Select the folders to be synchronized with the cloud files."
     5368msgstr ""
     5369
     5370#: assets/js/settings.js:1
     5371msgid "Add Google Drive modules, embed documents and insert file view links and download links using the Google Drive Divi page builder modules."
     5372msgstr ""
     5373
     5374#: assets/js/settings.js:1
     5375msgid "Allows you to serve your Google Drive files as downloadable files and let customer upload files to Google Drive on checkout."
     5376msgstr ""
     5377
     5378#: assets/js/settings.js:1
     5379msgid "Allows effortless file uploads from Ninja Forms to Google Drive for quick and efficient storage."
     5380msgstr ""
     5381
     5382#: assets/js/settings.js:1
     5383msgid "Share Link"
     5384msgstr ""
     5385
     5386#: assets/js/settings.js:1
     5387msgid "Embed Code"
     5388msgstr ""
     5389
     5390#: assets/js/settings.js:1
     5391msgid "Plugins Integrations"
     5392msgstr ""
     5393
     5394#: assets/js/settings.js:1
     5395msgid "Select the plugins you want to integrate with Integrate Google Drive."
     5396msgstr ""
     5397
     5398#: assets/js/settings.js:1
     5399msgid "Enable All"
     5400msgstr ""
     5401
     5402#: assets/js/settings.js:1
     5403msgid "Disable All"
     5404msgstr ""
     5405
     5406#: assets/js/settings.js:1
     5407msgid "File sharing channels"
     5408msgstr ""
     5409
     5410#: assets/js/settings.js:1
     5411msgid "Select the sharing channels you want to show for the users in the file sharing modal."
     5412msgstr ""
     5413
     5414#: assets/js/settings.js:1
     5415msgid "Statistics Settings"
     5416msgstr ""
     5417
     5418#: assets/js/settings.js:1
     5419msgid "Enable Statistics"
     5420msgstr ""
     5421
     5422#: assets/js/settings.js:1
     5423msgid "Upgrade to PRO to enable the statistics."
     5424msgstr ""
     5425
     5426#: assets/js/settings.js:1
     5427msgid "Enable/ disable the statistics logs."
     5428msgstr ""
     5429
     5430#: assets/js/settings.js:1
     5431msgid "Email Reporting"
     5432msgstr ""
     5433
     5434#: assets/js/settings.js:1
     5435msgid "Enable / disable the statistics email reporting."
     5436msgstr ""
     5437
     5438#: assets/js/settings.js:1
     5439msgid "Email Report Frequency"
     5440msgstr ""
     5441
     5442#: assets/js/settings.js:1
     5443msgid "Select the email report frequency."
     5444msgstr ""
     5445
     5446#: assets/js/settings.js:1
     5447msgid "Email Report Recipients"
     5448msgstr ""
     5449
     5450#: assets/js/settings.js:1
     5451msgid "Enter the recipients email addresses separated by comma."
     5452msgstr ""
     5453
     5454#: assets/js/settings.js:1
     5455msgid "All"
     5456msgstr ""
     5457
     5458#: assets/js/settings.js:1
     5459msgid "Create Folder on Registration"
     5460msgstr ""
     5461
     5462#: assets/js/settings.js:1
     5463msgid "Upgrade to PRO to enable auto private folders creation on user registration."
     5464msgstr ""
     5465
     5466#: assets/js/settings.js:1
     5467msgid "Enable/ disable automatic private folders."
     5468msgstr ""
     5469
     5470#: assets/js/settings.js:1
     5471msgid "If ON, a new private folder will be created for the new registered users."
     5472msgstr ""
     5473
     5474#: assets/js/settings.js:1
     5475msgid "Filter User Roles"
     5476msgstr ""
     5477
     5478#: assets/js/settings.js:1
     5479msgid "Select the user roles for which the private folders will be created."
     5480msgstr ""
     5481
     5482#: assets/js/settings.js:1
     5483msgid "Set the folder name template for the automatically created private folders. and use the below tags to customize the folder name."
     5484msgstr ""
     5485
     5486#: assets/js/settings.js:1
     5487msgid "Select the parent folder for the newly created private folders. All the private folders will be created within the selected parent folder."
     5488msgstr ""
     5489
     5490#: assets/js/settings.js:1
     5491msgid "Select the template folder for the newly created private folders. All the files and folders within the template folder will be copied to the newly created private folders for the users."
     5492msgstr ""
     5493
     5494#: assets/js/settings.js:1
     5495msgid "Delete private folders"
     5496msgstr ""
     5497
     5498#: assets/js/settings.js:1
     5499msgid "If ON, Delete the linked private folders on account delete."
     5500msgstr ""
     5501
     5502#: assets/js/settings.js:1
     5503msgid "Enable the merging of folders when a folder with a same name already exists, rather than creating a new folder."
     5504msgstr ""
     5505
     5506#: assets/js/settings.js:1
     5507msgid "Private Folders in Admin Dashboard"
     5508msgstr ""
     5509
     5510#: assets/js/settings.js:1
     5511msgid "Upgrade to PRO to allow private folders in admin dashboard."
     5512msgstr ""
     5513
     5514#: assets/js/settings.js:1
     5515msgid "Allow access to private folders in admin dashboard file browser, shortcode builder."
     5516msgstr ""
     5517
     5518#: assets/js/settings.js:1
     5519msgid "Atom"
     5520msgstr ""
     5521
     5522#: assets/js/settings.js:1
     5523msgid "Bar Chart"
     5524msgstr ""
     5525
     5526#: assets/js/settings.js:1
     5527msgid "Spinner"
     5528msgstr ""
     5529
     5530#: assets/js/settings.js:1
     5531msgid "Bars"
     5532msgstr ""
     5533
     5534#: assets/js/settings.js:1
     5535msgid "Bricks"
     5536msgstr ""
     5537
     5538#: assets/js/settings.js:1
     5539msgid "Blocks"
     5540msgstr ""
     5541
     5542#: assets/js/settings.js:1
     5543msgid "Color Bar"
     5544msgstr ""
     5545
     5546#: assets/js/settings.js:1
     5547msgid "Clock"
     5548msgstr ""
     5549
     5550#: assets/js/settings.js:1
     5551msgid "Dash Ring"
     5552msgstr ""
     5553
     5554#: assets/js/settings.js:1
     5555msgid "Ripple"
     5556msgstr ""
     5557
     5558#: assets/js/settings.js:1
     5559msgid "Progress"
     5560msgstr ""
     5561
     5562#: assets/js/settings.js:1
     5563msgid "Flip Ball"
     5564msgstr ""
     5565
     5566#: assets/js/settings.js:1
     5567msgid "Hourglass"
     5568msgstr ""
     5569
     5570#: assets/js/settings.js:1
     5571msgid "Infinity"
     5572msgstr ""
     5573
     5574#: assets/js/settings.js:1
     5575msgid "Dual Ring"
     5576msgstr ""
     5577
     5578#: assets/js/settings.js:1
     5579msgid "Fidget Spinner"
     5580msgstr ""
     5581
     5582#: assets/js/settings.js:1
     5583msgid "Gear"
     5584msgstr ""
     5585
     5586#: assets/js/settings.js:1
     5587msgid "Gears"
     5588msgstr ""
     5589
     5590#: assets/js/settings.js:1
     5591msgid "Appearance Settings"
     5592msgstr ""
     5593
     5594#: assets/js/settings.js:1
     5595msgid "Preloader"
     5596msgstr ""
     5597
     5598#: assets/js/settings.js:1
     5599msgid "Choose the preloader style for the file browser. Preloader will be displayed in the file browser while the files are loading."
     5600msgstr ""
     5601
     5602#: assets/js/settings.js:1
     5603msgid "Default"
     5604msgstr ""
     5605
     5606#: assets/js/settings.js:1
     5607msgid "Upgrade to PRO to use this preloader."
     5608msgstr ""
     5609
     5610#: assets/js/settings.js:1
     5611msgid "Custom Preloader Image"
     5612msgstr ""
     5613
     5614#: assets/js/settings.js:1
     5615msgid "Select Preloader"
     5616msgstr ""
     5617
     5618#: assets/js/settings.js:1
     5619msgid "Upgrade to PRO to use custom preloader."
     5620msgstr ""
     5621
     5622#: assets/js/settings.js:1
     5623msgid "Upload Image"
     5624msgstr ""
     5625
     5626#: assets/js/settings.js:1
     5627msgid "Primary Color"
     5628msgstr ""
     5629
     5630#: assets/js/settings.js:1
     5631msgid "Upgrade to PRO to change the file browser primary color."
     5632msgstr ""
     5633
     5634#: assets/js/settings.js:1
     5635msgid "Choose the primary color for the file browser. The color will affects both on admin and frontend file browser module."
     5636msgstr ""
     5637
     5638#: assets/js/settings.js:1
     5639msgid "Custom CSS"
     5640msgstr ""
     5641
     5642#: assets/js/settings.js:1
     5643msgid "To customize the plugin's styles, insert your custom CSS here."
     5644msgstr ""
     5645
     5646#: assets/js/settings.js:1
     5647msgid "Enter your custom CSS here..."
     5648msgstr ""
     5649
     5650#: assets/js/settings.js:1
     5651msgid "Clear Cached Files"
     5652msgstr ""
     5653
     5654#: assets/js/settings.js:1
     5655msgid "Clear all the cached files!"
     5656msgstr ""
     5657
     5658#: assets/js/settings.js:1
     5659msgid "Clear cache"
     5660msgstr ""
     5661
     5662#: assets/js/settings.js:1
     5663msgid "Cache Cleared!"
     5664msgstr ""
     5665
     5666#: assets/js/settings.js:1
     5667msgid "Cached files are deleted and synchronized with the cloud files."
     5668msgstr ""
     5669
     5670#: assets/js/settings.js:1
     5671msgid "Clear cached files and synchronize the cloud files."
     5672msgstr ""
     5673
     5674#: assets/js/settings.js:1
     5675msgid "Export Data"
     5676msgstr ""
     5677
     5678#: assets/js/settings.js:1
     5679msgid "Shortcode Modules"
     5680msgstr ""
     5681
     5682#: assets/js/settings.js:1
     5683msgid "Statistics Logs"
     5684msgstr ""
     5685
     5686#: assets/js/settings.js:1
     5687msgid "Export All (Settings, Shortcode Modules, User Private Files, Statistics Logs)"
     5688msgstr ""
     5689
     5690#: assets/js/settings.js:1
     5691msgid "Select the data you want to export."
     5692msgstr ""
     5693
     5694#: assets/js/settings.js:1
     5695msgid "Export"
     5696msgstr ""
     5697
     5698#: assets/js/settings.js:1
     5699msgid "Export the selected data to a JSON file."
     5700msgstr ""
     5701
     5702#: assets/js/settings.js:1
     5703msgid "Data imported successfully."
     5704msgstr ""
     5705
     5706#: assets/js/settings.js:1
     5707msgid "Select the exported JSON file you would like to import. Please note that the import will replace the current data"
     5708msgstr ""
     5709
     5710#: assets/js/settings.js:1
     5711msgid "Reset Settings"
     5712msgstr ""
     5713
     5714#: assets/js/settings.js:1
     5715msgid "We recommend you to export your current settings before resetting them."
     5716msgstr ""
     5717
     5718#: assets/js/settings.js:1
     5719msgid "Reset"
     5720msgstr ""
     5721
     5722#: assets/js/settings.js:1
     5723msgid "Reset all settings to default."
     5724msgstr ""
     5725
     5726#: assets/js/settings.js:1
     5727msgid "User Access Settings"
     5728msgstr ""
     5729
     5730#: assets/js/settings.js:1
     5731msgid "File Browser Page"
     5732msgstr ""
     5733
     5734#: assets/js/settings.js:1
     5735msgid "Select which roles & users can access the admin dashboard file browser."
     5736msgstr ""
     5737
     5738#: assets/js/settings.js:1
     5739msgid "Select folders for "
     5740msgstr ""
     5741
     5742#: assets/js/settings.js:1
     5743msgid "Upgrade to select specific folders for users."
     5744msgstr ""
     5745
     5746#: assets/js/settings.js:1
     5747msgid "Select specific folders that will be accessible to "
     5748msgstr ""
     5749
     5750#: assets/js/settings.js:1
     5751msgid "Shortcode Builder Page"
     5752msgstr ""
     5753
     5754#: assets/js/settings.js:1
     5755msgid "Select which roles & users can create & edit shortcode modules."
     5756msgstr ""
     5757
     5758#: assets/js/settings.js:1
     5759msgid "Roles & Users can only access the folders that they have assigned in the "
     5760msgstr ""
     5761
     5762#: assets/js/settings.js:1
     5763msgid " Access Backend File Browser "
     5764msgstr ""
     5765
     5766#: assets/js/settings.js:1
     5767msgid " settings above."
     5768msgstr ""
     5769
     5770#: assets/js/settings.js:1
     5771msgid "User Private Files Page"
     5772msgstr ""
     5773
     5774#: assets/js/settings.js:1
     5775msgid "Select which roles & users can manually link private files & folders to users."
     5776msgstr ""
     5777
     5778#: assets/js/settings.js:1
     5779msgid "Settings Page"
     5780msgstr ""
     5781
     5782#: assets/js/settings.js:1
     5783msgid "Select which roles & users can change the plugin settings."
     5784msgstr ""
     5785
     5786#: assets/js/settings.js:1
     5787msgid "Statistics Page"
     5788msgstr ""
     5789
     5790#: assets/js/settings.js:1
     5791msgid "Select the users & roles to allow access to the statistics page."
     5792msgstr ""
     5793
     5794#: assets/js/settings.js:1
     5795msgid "Getting Started Page"
     5796msgstr ""
     5797
     5798#: assets/js/settings.js:1
     5799msgid "Select the users & roles to allow viewing the getting started page."
     5800msgstr ""
     5801
     5802#: assets/js/settings.js:1
     5803msgid "WooCommerce Settings"
     5804msgstr ""
     5805
     5806#: assets/js/settings.js:1
     5807msgid "Enable Downloads"
     5808msgstr ""
     5809
     5810#: assets/js/settings.js:1
     5811msgid "Pro Feature"
     5812msgstr ""
     5813
     5814#: assets/js/settings.js:1
     5815msgid "Upgrade to the Pro version to enable WooCommerce downloads."
     5816msgstr ""
     5817
     5818#: assets/js/settings.js:1
     5819msgid "Enable to add Google Drive files to WooCommerce downloadable products."
     5820msgstr ""
     5821
     5822#: assets/js/settings.js:1
     5823msgid "Enable Uploads"
     5824msgstr ""
     5825
     5826#: assets/js/settings.js:1
     5827msgid "Upgrade to the Pro version to enable WooCommerce uploads."
     5828msgstr ""
     5829
     5830#: assets/js/settings.js:1
     5831msgid "Enable/ disable customer file uploads for WooCommerce products."
     5832msgstr ""
     5833
     5834#: assets/js/settings.js:1
     5835msgid "Select the locations where you want to show the upload box in woocommerce products."
     5836msgstr ""
     5837
     5838#: assets/js/settings.js:1
     5839msgid "Show upload box when order status is"
     5840msgstr ""
     5841
     5842#: assets/js/settings.js:1
     5843msgid "Select the order statuses when you want to show the upload box"
     5844msgstr ""
     5845
     5846#: assets/js/settings.js:1
     5847msgid "This option will only work on the Order Received and My Account page."
     5848msgstr ""
     5849
     5850#: assets/js/settings.js:1
     5851msgid "Folder Naming template"
     5852msgstr ""
     5853
     5854#: assets/js/settings.js:1
     5855msgid "Set the upload folder naming template when a customer uploads a file a new folder will be created with this name."
     5856msgstr ""
     5857
     5858#: assets/js/settings.js:1
     5859msgid "Select the parent folder where the new folders will be created with the uploaded files for each product."
     5860msgstr ""
     5861
     5862#: assets/js/settings.js:1
     5863msgid "Dokan Multi-vendor Settings"
     5864msgstr ""
     5865
     5866#: assets/js/settings.js:1
     5867msgid "Upgrade to the Pro version to enable Dokan downloads."
     5868msgstr ""
     5869
     5870#: assets/js/settings.js:1
     5871msgid "Enable to allow vendors to use their Google Drive files as downloadable products."
     5872msgstr ""
     5873
     5874#: assets/js/settings.js:1
     5875msgid "Upgrade to the Pro version to enable Dokan uploads."
     5876msgstr ""
     5877
     5878#: assets/js/settings.js:1
     5879msgid "Enable to allow vendors to let customers upload files to their Google Drive."
     5880msgstr ""
     5881
     5882#: assets/js/settings.js:1
     5883msgid "Accounts"
     5884msgstr ""
     5885
     5886#: assets/js/settings.js:1
     5887msgid "Appearance"
     5888msgstr ""
     5889
     5890#: assets/js/settings.js:1
     5891msgid "User Access"
     5892msgstr ""
     5893
     5894#: assets/js/settings.js:1
     5895msgid "Integrations"
     5896msgstr ""
     5897
     5898#: assets/js/settings.js:1
     5899msgid "Synchronization"
     5900msgstr ""
     5901
     5902#: assets/js/settings.js:1
     5903msgid "Settings saved successfully."
     5904msgstr ""
     5905
     5906#: assets/js/settings.js:1
     5907msgid "An error occurred while saving the settings."
     5908msgstr ""
     5909
     5910#: assets/js/settings.js:1
     5911msgid "Saving..."
     5912msgstr ""
     5913
     5914#: assets/js/statistics.js:1
     5915msgid "Events Chart / Day"
     5916msgstr ""
     5917
     5918#: assets/js/statistics.js:1
     5919msgid "Total"
     5920msgstr ""
     5921
     5922#: assets/js/statistics.js:1
     5923msgid "No data found"
     5924msgstr ""
     5925
     5926#: assets/js/statistics.js:1
     5927msgid "Top Users with most Downloads"
     5928msgstr ""
     5929
     5930#: assets/js/statistics.js:1
     5931msgid "User"
     5932msgstr ""
     5933
     5934#: assets/js/statistics.js:1
     5935msgid "No data found!"
     5936msgstr ""
     5937
     5938#: assets/js/statistics.js:1
     5939msgid "Top Users with most Uploads"
     5940msgstr ""
     5941
     5942#: assets/js/statistics.js:1
     5943msgid "Uploads"
     5944msgstr ""
     5945
     5946#: assets/js/statistics.js:1
     5947msgid "Top Users with most Streams"
     5948msgstr ""
     5949
     5950#: assets/js/statistics.js:1
     5951msgid "All Event Logs"
     5952msgstr ""
     5953
     5954#: assets/js/statistics.js:1
     5955msgid "downloaded the file"
     5956msgstr ""
     5957
     5958#: assets/js/statistics.js:1
     5959msgid "uploaded the file"
     5960msgstr ""
     5961
     5962#: assets/js/statistics.js:1
     5963msgid "streamed the file"
     5964msgstr ""
     5965
     5966#: assets/js/statistics.js:1
     5967msgid "deleted the file"
     5968msgstr ""
     5969
     5970#: assets/js/statistics.js:1
     5971msgid "copied the file"
     5972msgstr ""
     5973
     5974#: assets/js/statistics.js:1
     5975msgid "moved the file"
     5976msgstr ""
     5977
     5978#: assets/js/statistics.js:1
     5979msgid "renamed the file"
     5980msgstr ""
     5981
     5982#: assets/js/statistics.js:1
     5983msgid "created the file"
     5984msgstr ""
     5985
     5986#: assets/js/statistics.js:1
     5987msgid "shared the file"
     5988msgstr ""
     5989
     5990#: assets/js/statistics.js:1
     5991msgid "updated description of the file"
     5992msgstr ""
     5993
     5994#: assets/js/statistics.js:1
     5995msgid "searched for"
     5996msgstr ""
     5997
     5998#: assets/js/statistics.js:1
     5999msgid "created a new folder"
     6000msgstr ""
     6001
     6002#: assets/js/statistics.js:1
     6003msgid "previewed the file"
     6004msgstr ""
     6005
     6006#: assets/js/statistics.js:1
     6007msgid "From"
     6008msgstr ""
     6009
     6010#: assets/js/statistics.js:1
     6011msgid "To"
     6012msgstr ""
     6013
     6014#: assets/js/statistics.js:1
     6015msgid "Export Statistics"
     6016msgstr ""
     6017
     6018#: assets/js/statistics.js:1
     6019msgid "All statistics data has been deleted."
     6020msgstr ""
     6021
     6022#: assets/js/statistics.js:1
     6023msgid "Clear Statistics"
     6024msgstr ""
     6025
     6026#: assets/js/statistics.js:1
     6027msgid "Top Users with most Previews"
     6028msgstr ""
     6029
     6030#: assets/js/statistics.js:1
     6031msgid "Top Searches"
     6032msgstr ""
     6033
     6034#: assets/js/statistics.js:1
     6035msgid "Query"
     6036msgstr ""
     6037
     6038#: assets/js/statistics.js:1
     6039msgid "Top Users with most Searches"
     6040msgstr ""
     6041
     6042#: assets/js/statistics.js:1
     6043msgid "Upgrade to Pro"
     6044msgstr ""
     6045
     6046#: assets/js/statistics.js:1
     6047msgid "Upgrade to Pro to access the statistics."
     6048msgstr ""
     6049
     6050#: assets/js/tutor.js:1
     6051msgid "Size:"
     6052msgstr ""
  • integrate-google-drive/trunk/plugin.php

    r2997844 r3004719  
    55 * Plugin URI:  https://softlabbd.com/integrate-google-drive
    66 * Description: Seamless Google Drive integration for WordPress, allowing you to embed, share, play, and download documents and media files directly from Google Drive to your WordPress site.
    7  * Version:     1.3.3
     7 * Version:     1.3.4
    88 * Author:      SoftLab
    99 * Author URI:  https://softlabbd.com/
     
    6464   
    6565    /** define constants */
    66     define( 'IGD_VERSION', '1.3.3' );
     66    define( 'IGD_VERSION', '1.3.4' );
    6767    define( 'IGD_FILE', __FILE__ );
    6868    define( 'IGD_PATH', dirname( IGD_FILE ) );
  • integrate-google-drive/trunk/readme.txt

    r2997844 r3004719  
    55Tested up to: 6.4
    66Requires PHP: 7.0
    7 Stable tag: 1.3.3
     7Stable tag: 1.3.4
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    320320== Changelog ==
    321321
     322= 1.3.4 (2023-12-03)=
     323* New: Added user role based private folder creation on user registration.
     324* New: Added sort option for slider module.
     325* New: Added random sort option for shortcode module files.
     326* Fix: Fixed uploader browse files button not working properly on IOS devices.
     327* Fix: Fixed search module not working properly.
     328
    322329= 1.3.3 (2023-11-17)=
    323330* Fix: Fixed security issue.
Note: See TracChangeset for help on using the changeset viewer.