EmbedPress – Embed Google Docs, YouTube, Maps, Vimeo, Wistia Videos & Upload PDF, PPT in Gutenberg & Elementor - Version 3.6.3

Version Description

Download this release

Release Info

Developer wpdevteam
Plugin Icon wp plugin EmbedPress – Embed Google Docs, YouTube, Maps, Vimeo, Wistia Videos & Upload PDF, PPT in Gutenberg & Elementor
Version 3.6.3
Comparing to
See all releases

Code changes from version 3.6.2 to 3.6.3

EmbedPress/Core.php CHANGED
@@ -362,6 +362,14 @@ class Core {
362
  'permission_callback' => '__return_true',
363
  ]
364
  );
 
 
 
 
 
 
 
 
365
  }
366
 
367
  /**
362
  'permission_callback' => '__return_true',
363
  ]
364
  );
365
+ register_rest_route(
366
+ 'embedpress/v1', '/oembed/(?P<provider>[a-zA-Z0-9\-]+)',
367
+ [
368
+ 'methods' => \WP_REST_Server::CREATABLE,
369
+ 'callback' => ['\\EmbedPress\\RestAPI', 'oembed'],
370
+ 'permission_callback' => '__return_true',
371
+ ]
372
+ );
373
  }
374
 
375
  /**
EmbedPress/Elementor/Widgets/Embedpress_Elementor.php CHANGED
@@ -116,6 +116,24 @@ class Embedpress_Elementor extends Widget_Base
116
  ]
117
  ]
118
  );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
119
  $this->add_control(
120
  'embedpress_embeded_link',
121
  [
@@ -1393,7 +1411,10 @@ class Embedpress_Elementor extends Widget_Base
1393
  'max' => 100,
1394
  'step' => 1,
1395
  'default' => 9,
1396
- 'condition' => $condition
 
 
 
1397
  ]
1398
  );
1399
  $this->add_control(
@@ -1406,7 +1427,10 @@ class Embedpress_Elementor extends Widget_Base
1406
  'desc' => esc_html__( 'Newest', 'embedpress' ),
1407
  ],
1408
  'default' => 'desc',
1409
- 'condition' => $condition
 
 
 
1410
  ]
1411
  );
1412
  }
@@ -1425,11 +1449,26 @@ class Embedpress_Elementor extends Widget_Base
1425
  );
1426
 
1427
  $this->add_control(
1428
- 'opense_important_note',
 
 
 
 
 
 
 
 
 
 
 
 
1429
  [
1430
  'type' => \Elementor\Controls_Manager::RAW_HTML,
1431
  'raw' => esc_html__( 'These options take effect only when a Opensea Collection is embedded.', 'embedpress' ),
1432
  'content_classes' => 'elementor-panel-alert elementor-panel-alert-info',
 
 
 
1433
  ]
1434
  );
1435
 
@@ -1447,15 +1486,17 @@ class Embedpress_Elementor extends Widget_Base
1447
  'conditions' => [
1448
  'terms' => [
1449
  [
1450
- 'name' => 'embedpress_pro_embeded_source',
1451
  'operator' => '===',
1452
- 'value' => 'opensea',
1453
  ],
1454
  ],
1455
  ]
1456
 
1457
  ]
1458
  );
 
 
1459
  $this->add_control(
1460
  'preset',
1461
  [
@@ -1469,10 +1510,17 @@ class Embedpress_Elementor extends Widget_Base
1469
  ],
1470
  'conditions' => [
1471
  'terms' => [
 
 
 
 
 
 
1472
  [
1473
  'name' => 'layout',
1474
  'operator' => '===',
1475
  'value' => 'ep-grid',
 
1476
  ],
1477
  ],
1478
  ]
@@ -1496,15 +1544,9 @@ class Embedpress_Elementor extends Widget_Base
1496
  '6' => esc_html__('6', 'embedpress'),
1497
  'auto' => esc_html__('Auto', 'embedpress'),
1498
  ],
1499
- 'conditions' => [
1500
- 'terms' => [
1501
- [
1502
- 'name' => 'embedpress_pro_embeded_source',
1503
- 'operator' => '===',
1504
- 'value' => 'opensea',
1505
- ],
1506
- ],
1507
- ]
1508
 
1509
  ]
1510
  );
@@ -1526,9 +1568,27 @@ class Embedpress_Elementor extends Widget_Base
1526
  'unit' => 'px',
1527
  'size' => 15,
1528
  ],
 
 
 
1529
  ]
1530
  );
1531
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1532
  $this->add_control(
1533
  'nftimage',
1534
  [
@@ -1588,7 +1648,7 @@ class Embedpress_Elementor extends Widget_Base
1588
  $this->add_control(
1589
  'nftprice',
1590
  [
1591
- 'label' => __('Price', 'embedpress'),
1592
  'type' => Controls_Manager::SWITCHER,
1593
  'label_block' => false,
1594
  'return_value' => 'yes',
@@ -1605,8 +1665,8 @@ class Embedpress_Elementor extends Widget_Base
1605
  [
1606
  'label' => sprintf(__('Prefix %s', 'embedpress'), $this->pro_text),
1607
  'type' => \Elementor\Controls_Manager::TEXT,
1608
- 'default' => esc_html__( 'Price', 'embedpress' ),
1609
- 'placeholder' => esc_html__( 'Price', 'embedpress' ),
1610
  'classes' => $this->pro_class,
1611
  'condition' => [
1612
  'nftprice' => 'yes',
@@ -1662,7 +1722,7 @@ class Embedpress_Elementor extends Widget_Base
1662
  [
1663
  'label' => sprintf(__('Button Label %s', 'embedpress'), $this->pro_text),
1664
  'type' => \Elementor\Controls_Manager::TEXT,
1665
- 'default' => esc_html__( 'See Datails', 'embedpress' ),
1666
  'placeholder' => esc_html__( 'See Details', 'embedpress' ),
1667
  'classes' => $this->pro_class,
1668
  'condition' => [
@@ -1671,6 +1731,66 @@ class Embedpress_Elementor extends Widget_Base
1671
  ]
1672
  );
1673
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1674
 
1675
  $this->end_controls_section();
1676
  }
@@ -1690,11 +1810,26 @@ class Embedpress_Elementor extends Widget_Base
1690
  );
1691
 
1692
  $this->add_control(
1693
- 'opense_color_important_note',
 
 
 
 
 
 
 
 
 
 
 
 
1694
  [
1695
  'type' => \Elementor\Controls_Manager::RAW_HTML,
1696
  'raw' => esc_html__( 'These options take effect only when a Opensea Collection is embedded.', 'embedpress' ),
1697
  'content_classes' => 'elementor-panel-alert elementor-panel-alert-info',
 
 
 
1698
  ]
1699
  );
1700
 
@@ -1702,7 +1837,7 @@ class Embedpress_Elementor extends Widget_Base
1702
  $this->add_control(
1703
  'item_heading',
1704
  [
1705
- 'label' => esc_html__( 'NFT Item', 'embedpress' ),
1706
  'type' => \Elementor\Controls_Manager::HEADING,
1707
  'separator' => 'before',
1708
  ]
@@ -1719,6 +1854,43 @@ class Embedpress_Elementor extends Widget_Base
1719
  ]
1720
  );
1721
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1722
  $this->add_control(
1723
  'title_heading',
1724
  [
@@ -1883,6 +2055,179 @@ class Embedpress_Elementor extends Widget_Base
1883
  'selector' => '{{WRAPPER}} .ep-nft-gallery-wrapper.ep-nft-gallery-r1a5mbx .ep_nft_button a',
1884
  ]
1885
  );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1886
 
1887
  $this->end_controls_section();
1888
  }
116
  ]
117
  ]
118
  );
119
+
120
+ $this->add_control(
121
+ 'embedpress_pro_embeded_nft_type',
122
+ [
123
+ 'label' => __('Type', 'embedpress'),
124
+ 'type' => Controls_Manager::SELECT,
125
+ 'label_block' => false,
126
+ 'default' => 'collection',
127
+ 'options' => [
128
+ 'collection' => __('Assets Collection', 'embedpress'),
129
+ 'single' => __('Single Asset', 'embedpress'),
130
+ ],
131
+ 'condition' => [
132
+ 'embedpress_pro_embeded_source' => 'opensea'
133
+ ]
134
+ ]
135
+ );
136
+
137
  $this->add_control(
138
  'embedpress_embeded_link',
139
  [
1411
  'max' => 100,
1412
  'step' => 1,
1413
  'default' => 9,
1414
+ 'condition' => [
1415
+ 'embedpress_pro_embeded_nft_type' => ['collection'],
1416
+ 'embedpress_pro_embeded_source!' => 'default',
1417
+ ],
1418
  ]
1419
  );
1420
  $this->add_control(
1427
  'desc' => esc_html__( 'Newest', 'embedpress' ),
1428
  ],
1429
  'default' => 'desc',
1430
+ 'condition' => [
1431
+ 'embedpress_pro_embeded_nft_type' => ['collection'],
1432
+ 'embedpress_pro_embeded_source!' => 'default',
1433
+ ],
1434
  ]
1435
  );
1436
  }
1449
  );
1450
 
1451
  $this->add_control(
1452
+ 'opense_important_note_single',
1453
+ [
1454
+ 'type' => \Elementor\Controls_Manager::RAW_HTML,
1455
+ 'raw' => esc_html__( 'These options take effect only when a Opensea Single Asset is embedded.', 'embedpress' ),
1456
+ 'content_classes' => 'elementor-panel-alert elementor-panel-alert-info',
1457
+ 'condition' => [
1458
+ 'embedpress_pro_embeded_nft_type' => 'single'
1459
+ ],
1460
+
1461
+ ]
1462
+ );
1463
+ $this->add_control(
1464
+ 'opense_important_note_collection',
1465
  [
1466
  'type' => \Elementor\Controls_Manager::RAW_HTML,
1467
  'raw' => esc_html__( 'These options take effect only when a Opensea Collection is embedded.', 'embedpress' ),
1468
  'content_classes' => 'elementor-panel-alert elementor-panel-alert-info',
1469
+ 'condition' => [
1470
+ 'embedpress_pro_embeded_nft_type' => 'collection'
1471
+ ],
1472
  ]
1473
  );
1474
 
1486
  'conditions' => [
1487
  'terms' => [
1488
  [
1489
+ 'name' => 'embedpress_pro_embeded_nft_type',
1490
  'operator' => '===',
1491
+ 'value' => 'collection',
1492
  ],
1493
  ],
1494
  ]
1495
 
1496
  ]
1497
  );
1498
+
1499
+
1500
  $this->add_control(
1501
  'preset',
1502
  [
1510
  ],
1511
  'conditions' => [
1512
  'terms' => [
1513
+ [
1514
+ 'name' => 'embedpress_pro_embeded_nft_type',
1515
+ 'operator' => '===',
1516
+ 'value' => 'collection',
1517
+ 'relation' => 'and'
1518
+ ],
1519
  [
1520
  'name' => 'layout',
1521
  'operator' => '===',
1522
  'value' => 'ep-grid',
1523
+ 'relation' => 'and'
1524
  ],
1525
  ],
1526
  ]
1544
  '6' => esc_html__('6', 'embedpress'),
1545
  'auto' => esc_html__('Auto', 'embedpress'),
1546
  ],
1547
+ 'condition' => [
1548
+ 'embedpress_pro_embeded_nft_type' => ['collection']
1549
+ ],
 
 
 
 
 
 
1550
 
1551
  ]
1552
  );
1568
  'unit' => 'px',
1569
  'size' => 15,
1570
  ],
1571
+ 'condition' => [
1572
+ 'embedpress_pro_embeded_nft_type' => ['collection']
1573
+ ],
1574
  ]
1575
  );
1576
 
1577
+ $this->add_control(
1578
+ 'collectionname',
1579
+ [
1580
+ 'label' => __('Collection Name', 'embedpress'),
1581
+ 'type' => Controls_Manager::SWITCHER,
1582
+ 'label_block' => false,
1583
+ 'return_value' => 'yes',
1584
+ 'label_off' => __('Hide', 'embedpress'),
1585
+ 'label_on' => __('Show', 'embedpress'),
1586
+ 'default' => 'yes',
1587
+ 'condition' => [
1588
+ 'embedpress_pro_embeded_nft_type' => 'single'
1589
+ ],
1590
+ ]
1591
+ );
1592
  $this->add_control(
1593
  'nftimage',
1594
  [
1648
  $this->add_control(
1649
  'nftprice',
1650
  [
1651
+ 'label' => __('Current Price', 'embedpress'),
1652
  'type' => Controls_Manager::SWITCHER,
1653
  'label_block' => false,
1654
  'return_value' => 'yes',
1665
  [
1666
  'label' => sprintf(__('Prefix %s', 'embedpress'), $this->pro_text),
1667
  'type' => \Elementor\Controls_Manager::TEXT,
1668
+ 'default' => esc_html__( 'Current Price', 'embedpress' ),
1669
+ 'placeholder' => esc_html__( 'Current Price', 'embedpress' ),
1670
  'classes' => $this->pro_class,
1671
  'condition' => [
1672
  'nftprice' => 'yes',
1722
  [
1723
  'label' => sprintf(__('Button Label %s', 'embedpress'), $this->pro_text),
1724
  'type' => \Elementor\Controls_Manager::TEXT,
1725
+ 'default' => esc_html__( 'See Details', 'embedpress' ),
1726
  'placeholder' => esc_html__( 'See Details', 'embedpress' ),
1727
  'classes' => $this->pro_class,
1728
  'condition' => [
1731
  ]
1732
  );
1733
 
1734
+ $this->add_control(
1735
+ 'nftrank',
1736
+ [
1737
+ 'label' => __('Rank', 'embedpress'),
1738
+ 'type' => Controls_Manager::SWITCHER,
1739
+ 'label_block' => false,
1740
+ 'return_value' => 'yes',
1741
+ 'label_off' => __('Hide', 'embedpress'),
1742
+ 'label_on' => __('Show', 'embedpress'),
1743
+ 'default' => 'yes',
1744
+ 'condition' => [
1745
+ 'embedpress_pro_embeded_nft_type' => 'single'
1746
+ ],
1747
+ ]
1748
+ );
1749
+ $this->add_control(
1750
+ 'label_nftrank',
1751
+ [
1752
+ 'label' => sprintf(__('Rank Label %s', 'embedpress'), $this->pro_text),
1753
+ 'type' => \Elementor\Controls_Manager::TEXT,
1754
+ 'default' => esc_html__( 'Rank', 'embedpress' ),
1755
+ 'placeholder' => esc_html__( 'Rank', 'embedpress' ),
1756
+ 'classes' => $this->pro_class,
1757
+ 'condition' => [
1758
+ 'nftrank' => 'yes',
1759
+ 'embedpress_pro_embeded_nft_type!' => 'collection'
1760
+ ]
1761
+ ]
1762
+ );
1763
+
1764
+ $this->add_control(
1765
+ 'nftdetails',
1766
+ [
1767
+ 'label' => __('Details', 'embedpress'),
1768
+ 'type' => Controls_Manager::SWITCHER,
1769
+ 'label_block' => false,
1770
+ 'return_value' => 'yes',
1771
+ 'label_off' => __('Hide', 'embedpress'),
1772
+ 'label_on' => __('Show', 'embedpress'),
1773
+ 'default' => 'yes',
1774
+ 'condition' => [
1775
+ 'embedpress_pro_embeded_nft_type' => 'single'
1776
+ ],
1777
+ ]
1778
+ );
1779
+
1780
+ $this->add_control(
1781
+ 'label_nftdetails',
1782
+ [
1783
+ 'label' => sprintf(__('Details Label %s', 'embedpress'), $this->pro_text),
1784
+ 'type' => \Elementor\Controls_Manager::TEXT,
1785
+ 'default' => esc_html__( 'Details', 'embedpress' ),
1786
+ 'placeholder' => esc_html__( 'Details', 'embedpress' ),
1787
+ 'classes' => $this->pro_class,
1788
+ 'condition' => [
1789
+ 'nftdetails' => 'yes',
1790
+ 'embedpress_pro_embeded_nft_type!' => 'collection'
1791
+ ]
1792
+ ]
1793
+ );
1794
 
1795
  $this->end_controls_section();
1796
  }
1810
  );
1811
 
1812
  $this->add_control(
1813
+ 'opense_color_important_note_single',
1814
+ [
1815
+ 'type' => \Elementor\Controls_Manager::RAW_HTML,
1816
+ 'raw' => esc_html__( 'These options take effect only when a Opensea Single Asset is embedded.', 'embedpress' ),
1817
+ 'content_classes' => 'elementor-panel-alert elementor-panel-alert-info',
1818
+ 'condition' => [
1819
+ 'embedpress_pro_embeded_nft_type' => 'single'
1820
+ ],
1821
+
1822
+ ]
1823
+ );
1824
+ $this->add_control(
1825
+ 'opense_color_important_note_collection',
1826
  [
1827
  'type' => \Elementor\Controls_Manager::RAW_HTML,
1828
  'raw' => esc_html__( 'These options take effect only when a Opensea Collection is embedded.', 'embedpress' ),
1829
  'content_classes' => 'elementor-panel-alert elementor-panel-alert-info',
1830
+ 'condition' => [
1831
+ 'embedpress_pro_embeded_nft_type' => 'collection'
1832
+ ],
1833
  ]
1834
  );
1835
 
1837
  $this->add_control(
1838
  'item_heading',
1839
  [
1840
+ 'label' => esc_html__( 'Item', 'embedpress' ),
1841
  'type' => \Elementor\Controls_Manager::HEADING,
1842
  'separator' => 'before',
1843
  ]
1854
  ]
1855
  );
1856
 
1857
+ $this->add_control(
1858
+ 'collectionname_heading',
1859
+ [
1860
+ 'label' => esc_html__( 'Collection Name', 'embedpress' ),
1861
+ 'type' => \Elementor\Controls_Manager::HEADING,
1862
+ 'separator' => 'before',
1863
+ ]
1864
+ );
1865
+
1866
+ $this->add_control(
1867
+ 'nft_collectionname_color',
1868
+ [
1869
+ 'label' => esc_html__( 'Color', 'embedpress' ),
1870
+ 'type' => \Elementor\Controls_Manager::COLOR,
1871
+ 'selectors' => [
1872
+ '{{WRAPPER}} .ep-nft-single-item-wraper a.CollectionLink--link' => 'color: {{VALUE}}',
1873
+ ],
1874
+ ]
1875
+ );
1876
+ $this->add_control(
1877
+ 'nft_collectionname_hover_color',
1878
+ [
1879
+ 'label' => esc_html__( 'Hove Color', 'embedpress' ),
1880
+ 'type' => \Elementor\Controls_Manager::COLOR,
1881
+ 'selectors' => [
1882
+ '{{WRAPPER}} .ep-nft-single-item-wraper a.CollectionLink--link:hover' => 'color: {{VALUE}}',
1883
+ ],
1884
+ ]
1885
+ );
1886
+ $this->add_group_control(
1887
+ \Elementor\Group_Control_Typography::get_type(),
1888
+ [
1889
+ 'name' => 'nft_collectionname_typography',
1890
+ 'selector' => '{{WRAPPER}} .ep-nft-single-item-wraper a.CollectionLink--link',
1891
+ ]
1892
+ );
1893
+
1894
  $this->add_control(
1895
  'title_heading',
1896
  [
2055
  'selector' => '{{WRAPPER}} .ep-nft-gallery-wrapper.ep-nft-gallery-r1a5mbx .ep_nft_button a',
2056
  ]
2057
  );
2058
+ $this->add_control(
2059
+ 'nftrank_heading',
2060
+ [
2061
+ 'label' => esc_html__( 'Rank', 'embedpress' ),
2062
+ 'type' => \Elementor\Controls_Manager::HEADING,
2063
+ 'separator' => 'before',
2064
+ 'condition' => [
2065
+ 'nftrank' => 'yes',
2066
+ 'embedpress_pro_embeded_nft_type!' => 'collection'
2067
+ ]
2068
+ ]
2069
+ );
2070
+
2071
+ $this->add_control(
2072
+ 'nftrank_label_color',
2073
+ [
2074
+ 'label' => esc_html__( 'Label Color', 'embedpress' ),
2075
+ 'type' => \Elementor\Controls_Manager::COLOR,
2076
+ 'selectors' => [
2077
+ '{{WRAPPER}} .ep-nft-single-item-wraper .ep-nft-rank-wraper' => 'color: {{VALUE}}!important;',
2078
+ ],
2079
+ 'condition' => [
2080
+ 'nftrank' => 'yes',
2081
+ 'embedpress_pro_embeded_nft_type!' => 'collection'
2082
+ ]
2083
+ ]
2084
+ );
2085
+ $this->add_group_control(
2086
+ \Elementor\Group_Control_Typography::get_type(),
2087
+ [
2088
+ 'name' => 'nftrank_label_typography',
2089
+ 'selector' => '{{WRAPPER}} .ep-nft-single-item-wraper .ep-nft-rank-wraper ',
2090
+ 'condition' => [
2091
+ 'nftrank' => 'yes',
2092
+ 'embedpress_pro_embeded_nft_type!' => 'collection'
2093
+ ]
2094
+ ]
2095
+ );
2096
+ $this->add_control(
2097
+ 'nftrank_color',
2098
+ [
2099
+ 'label' => esc_html__( 'Rank Color', 'embedpress' ),
2100
+ 'type' => \Elementor\Controls_Manager::COLOR,
2101
+ 'selectors' => [
2102
+ '{{WRAPPER}} .ep-nft-single-item-wraper .ep-nft-rank-wraper span.ep-nft-rank' => 'color: {{VALUE}}!important;',
2103
+ ],
2104
+ 'condition' => [
2105
+ 'nftrank' => 'yes',
2106
+ 'embedpress_pro_embeded_nft_type!' => 'collection'
2107
+ ]
2108
+ ]
2109
+ );
2110
+ $this->add_control(
2111
+ 'nftrank_border_color',
2112
+ [
2113
+ 'label' => esc_html__( 'Border Color', 'embedpress' ),
2114
+ 'type' => \Elementor\Controls_Manager::COLOR,
2115
+ 'selectors' => [
2116
+ '{{WRAPPER}} .ep-nft-single-item-wraper .ep-nft-rank-wraper span.ep-nft-rank' => 'border-color: {{VALUE}}!important',
2117
+ ],
2118
+ 'condition' => [
2119
+ 'nftrank' => 'yes',
2120
+ 'embedpress_pro_embeded_nft_type!' => 'collection'
2121
+ ]
2122
+ ]
2123
+ );
2124
+ $this->add_group_control(
2125
+ \Elementor\Group_Control_Typography::get_type(),
2126
+ [
2127
+ 'name' => 'nftrank_typography',
2128
+ 'selector' => '{{WRAPPER}} .ep-nft-single-item-wraper .ep-nft-rank-wraper span.ep-nft-rank',
2129
+ 'condition' => [
2130
+ 'nftrank' => 'yes',
2131
+ 'embedpress_pro_embeded_nft_type!' => 'collection'
2132
+ ]
2133
+ ]
2134
+ );
2135
+
2136
+
2137
+
2138
+ $this->add_control(
2139
+ 'nftdetails_heading',
2140
+ [
2141
+ 'label' => esc_html__( 'Details', 'embedpress' ),
2142
+ 'type' => \Elementor\Controls_Manager::HEADING,
2143
+ 'separator' => 'before',
2144
+ 'condition' => [
2145
+ 'nftrank' => 'yes',
2146
+ 'embedpress_pro_embeded_nft_type!' => 'collection'
2147
+ ]
2148
+ ]
2149
+ );
2150
+
2151
+ $this->add_control(
2152
+ 'nftdetail_title_color',
2153
+ [
2154
+ 'label' => esc_html__( 'Title Color', 'embedpress' ),
2155
+ 'type' => \Elementor\Controls_Manager::COLOR,
2156
+ 'selectors' => [
2157
+ '{{WRAPPER}} .ep-title' => 'color: {{VALUE}}',
2158
+ ],
2159
+ 'condition' => [
2160
+ 'nftrank' => 'yes',
2161
+ 'embedpress_pro_embeded_nft_type!' => 'collection'
2162
+ ]
2163
+ ]
2164
+ );
2165
+ $this->add_group_control(
2166
+ \Elementor\Group_Control_Typography::get_type(),
2167
+ [
2168
+ 'label' => esc_html__( 'Title Typography', 'embedpress' ),
2169
+ 'name' => 'nftdetail_title_typography',
2170
+ 'selector' => '{{WRAPPER}} .ep-title',
2171
+ 'condition' => [
2172
+ 'nftrank' => 'yes',
2173
+ 'embedpress_pro_embeded_nft_type!' => 'collection'
2174
+ ]
2175
+ ]
2176
+ );
2177
+
2178
+ $this->add_control(
2179
+ 'nftdetail_color',
2180
+ [
2181
+ 'label' => esc_html__( 'Content Color', 'embedpress' ),
2182
+ 'type' => \Elementor\Controls_Manager::COLOR,
2183
+ 'selectors' => [
2184
+ '{{WRAPPER}} .ep-asset-detail-item' => 'color: {{VALUE}}',
2185
+ ],
2186
+ 'condition' => [
2187
+ 'nftrank' => 'yes',
2188
+ 'embedpress_pro_embeded_nft_type!' => 'collection'
2189
+ ]
2190
+ ]
2191
+ );
2192
+ $this->add_group_control(
2193
+ \Elementor\Group_Control_Typography::get_type(),
2194
+ [
2195
+ 'label' => esc_html__( 'Content Typography', 'embedpress' ),
2196
+ 'name' => 'nftdetail_typography',
2197
+ 'selector' => '{{WRAPPER}} .ep-asset-detail-item',
2198
+ 'condition' => [
2199
+ 'nftrank' => 'yes',
2200
+ 'embedpress_pro_embeded_nft_type!' => 'collection'
2201
+ ]
2202
+ ]
2203
+ );
2204
+
2205
+ $this->add_control(
2206
+ 'nftdetail_link_color',
2207
+ [
2208
+ 'label' => esc_html__( 'Link Color', 'embedpress' ),
2209
+ 'type' => \Elementor\Controls_Manager::COLOR,
2210
+ 'selectors' => [
2211
+ '{{WRAPPER}} .ep-asset-detail-item a' => 'color: {{VALUE}}',
2212
+ ],
2213
+ 'condition' => [
2214
+ 'nftrank' => 'yes',
2215
+ 'embedpress_pro_embeded_nft_type!' => 'collection'
2216
+ ]
2217
+ ]
2218
+ );
2219
+ $this->add_group_control(
2220
+ \Elementor\Group_Control_Typography::get_type(),
2221
+ [
2222
+ 'name' => 'nftdetail_link_typography',
2223
+ 'selector' => '{{WRAPPER}} .ep-asset-detail-item a, .ep-asset-detail-item',
2224
+ 'condition' => [
2225
+ 'nftrank' => 'yes',
2226
+ 'embedpress_pro_embeded_nft_type!' => 'collection'
2227
+ ]
2228
+ ]
2229
+ );
2230
+
2231
 
2232
  $this->end_controls_section();
2233
  }
EmbedPress/Elementor/Widgets/Embedpress_Pdf.php CHANGED
@@ -432,228 +432,90 @@ class Embedpress_Pdf extends Widget_Base
432
  $id = $this->get_id();
433
  $this->_render($url, $settings, $id);
434
 
435
- if($settings['embedpress_pdf_type'] == 'file'){
436
- $this->_scripts();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
437
  }
 
 
438
  }
439
 
440
- /**
441
- * Generate scripts for PDF widgets
442
- */
443
- public function _scripts()
444
  {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
445
  ?>
446
- <script>
447
- (function($) {
448
- let x = 0;
449
- const setThemeMode = (frm, themeMode) => {
450
- const htmlEL = frm.getElementsByTagName("html")[0];
451
- if(htmlEL){
452
- htmlEL.setAttribute('ep-data-theme', themeMode);
453
- }
454
- }
455
- const setEmbedInterval = setInterval(() => {
456
- if ($('.embedpress-document-embed').length > 0) {
457
- x++;
458
- const isDisplay = ($selectorName) => {
459
- if ($selectorName == 'no' || $selectorName == '') {
460
- $selectorName = 'none';
461
- } else {
462
- $selectorName = 'block';
463
- }
464
- return $selectorName;
465
- }
466
-
467
- $('.embedpress-document-embed').each((index, element) => {
468
-
469
- const frm = document.querySelector(`.${$(element).data('id')}`).contentWindow.document;
470
- const otherhead = frm.getElementsByTagName("head")[0];
471
- const style = frm.createElement("style");
472
- style.setAttribute('id', 'EBiframeStyleID');
473
-
474
- $themeMode = $(element).data('thememode');
475
- $toolbar = $(element).data('toolbar');
476
- $toolbarPosition = $(element).data('toolbar-position');
477
- $presentationMode = $(element).data('presentation-mode');
478
- $open = $(element).data('open');
479
- $download = $(element).data('download');
480
- $copy_text = $(element).data('copy');
481
- $doc_rotation = $(element).data('rotate');
482
- $doc_details = $(element).data('details');
483
-
484
- if ($toolbar == 'no' || $toolbar == '') {
485
- $toolbar = 'no';
486
- $toolbarPosition = 'top';
487
- $open = 'no';
488
- $presentationMode = 'no';
489
- $download = 'no';
490
- $copy_text = 'no';
491
- $doc_rotation = 'no';
492
- $details = 'no';
493
- }
494
-
495
-
496
- $toolbar = isDisplay($toolbar);
497
- $presentation = isDisplay($presentationMode);
498
- $download = isDisplay($download);
499
- $open = isDisplay($open);
500
- $copy_text = isDisplay($copy_text);
501
-
502
- if ($copy_text === 'block') {
503
- $copy_text = 'all';
504
- }
505
-
506
- $doc_details = isDisplay($doc_details);
507
- $doc_rotation = isDisplay($doc_rotation);
508
-
509
- if ($toolbarPosition == 'top') {
510
- $toolbarPosition = 'top:0;bottom:auto;'
511
- $settingsPos = '';
512
- } else {
513
- $toolbarPosition = 'bottom:0;top:auto;'
514
- $settingsPos = `
515
- .findbar, .secondaryToolbar {
516
- top: auto;bottom: 32px;
517
- }
518
- .doorHangerRight:after{
519
- transform: rotate(180deg);
520
- bottom: -16px;
521
- }
522
- .doorHangerRight:before {
523
- transform: rotate(180deg);
524
- bottom: -18px;
525
- }
526
- #findbar:before {
527
- bottom: -20px!important;
528
- transform: rotate(180deg);
529
- }
530
- #findbar:after {
531
- bottom: -19px!important;
532
- transform: rotate(180deg);
533
- }
534
- `;
535
-
536
- }
537
-
538
- style.textContent = `
539
-
540
- .toolbar{
541
- display: ${$toolbar}!important;
542
- position: absolute;
543
- ${$toolbarPosition}
544
- }
545
- #secondaryToolbar{
546
- display: ${$toolbar};
547
- }
548
- #secondaryPresentationMode, #toolbarViewerRight #presentationMode{
549
- display: ${$presentation}!important;
550
  }
551
- #secondaryOpenFile, #toolbarViewerRight #openFile{
552
- display: none!important;
553
- }
554
- #secondaryDownload, #secondaryPrint, #toolbarViewerRight #print, #toolbarViewerRight #download{
555
- display: ${$download}!important;
556
- }
557
- #pageRotateCw{
558
- display: ${$doc_rotation}!important;
559
- }
560
- #pageRotateCcw{
561
- display: ${$doc_rotation}!important;
562
- }
563
- #documentProperties{
564
- display: ${$doc_details}!important;
565
- }
566
- .textLayer{
567
- user-select: ${$copy_text}!important;
568
- }
569
- ${$settingsPos}
570
- `;
571
- if(frm){
572
- setThemeMode(frm, $themeMode);
573
  }
574
- if (otherhead) {
575
- if(frm.getElementById("EBiframeStyleID")){
576
- frm.getElementById("EBiframeStyleID").remove();
577
- }
578
- otherhead.appendChild(style);
579
- clearInterval(setEmbedInterval);
580
  }
581
-
582
- });
583
- if (x > 50) {
584
- clearInterval(setEmbedInterval);
585
  }
586
- }
587
-
588
- }, 100);
589
- }(jQuery));
590
- </script>
591
- <?php
592
- }
593
-
594
- public function _render($url, $settings, $id)
595
- {
596
- $id = 'embedpress-pdf-' . $id;
597
- $dimension = "width: {$settings['embedpress_elementor_document_width']['size']}px;height: {$settings['embedpress_elementor_document_height']['size']}px";
598
- $this->add_render_attribute('embedpres-pdf-render', [
599
- 'class' => ['embedpress-embed-document-pdf', $id],
600
- 'data-emid' => $id
601
- ]);
602
- $this->add_render_attribute('embedpress-document', [
603
- 'class' => ['embedpress-document-embed', 'ep-doc-' . md5($id), 'ose-document'],
604
- 'data-thememode' => $settings['embedpress_theme_mode'],
605
- 'data-toolbar' => $settings['pdf_toolbar'],
606
- 'data-toolbar-position' => $settings['pdf_toolbar_position'],
607
- 'data-open' => 'no',
608
- 'data-presentation-mode' => $settings['pdf_presentation_mode'],
609
- 'data-download' => defined('EMBEDPRESS_PRO_PLUGIN_VERSION')? $settings['pdf_print_download'] : 'yes',
610
- 'data-copy' => defined('EMBEDPRESS_PRO_PLUGIN_VERSION')? $settings['pdf_text_copy'] : 'yes',
611
- 'data-rotate' => $settings['pdf_rotate_access'],
612
- 'data-details' => $settings['pdf_details'],
613
- 'data-id' => $id
614
- ]);
615
- ?>
616
- <div <?php echo $this->get_render_attribute_string('embedpress-document'); ?> style="<?php echo esc_attr($dimension); ?>; max-width:100%; display: inline-block">
617
  <?php
618
- do_action('embedpress_pdf_after_embed', $settings, $url, $id, $this);
619
- ?>
620
- <?php if ($url != '') {
621
- if ($this->is_pdf($url) && !$this->is_external_url($url)) {
622
- $this->add_render_attribute('embedpres-pdf-render', 'data-emsrc', $url);
623
- $renderer = Helper::get_pdf_renderer();
624
- $src = $renderer . ((strpos($renderer, '?') == false) ? '?' : '&') . 'file=' . $url;
625
- if (!empty($settings['embedpress_pdf_zoom'])) {
626
- $zoom = $settings['embedpress_pdf_zoom'];
627
- if ($zoom == 'custom') {
628
- if (!empty($settings['embedpress_pdf_zoom_custom'])) {
629
- $zoom = $settings['embedpress_pdf_zoom_custom'];
630
- } else {
631
- $zoom = null;
632
- }
633
- }
634
- if ($zoom) {
635
- $src = $src . "#zoom=$zoom";
636
- }
637
- }
638
- ?>
639
- <iframe class="embedpress-embed-document-pdf <?php echo esc_attr($id); ?>" style="<?php echo esc_attr($dimension); ?>; max-width:100%; display: inline-block" src="<?php echo esc_attr($src); ?>" <?php $this->get_render_attribute_string('embedpres-pdf-render'); ?> frameborder="0"></iframe>
640
- <?php
641
 
642
- } else {
643
- ?>
644
- <div>
645
- <iframe class="embedpress-embed-document-pdf <?php echo esc_attr($id); ?>" allowfullscreen="true" mozallowfullscreen="true" webkitallowfullscreen="true" style="<?php echo esc_attr($dimension); ?>; max-width:100%;" src="<?php echo esc_url($url); ?>" <?php $this->get_render_attribute_string('embedpres-pdf-render'); ?>></iframe>
646
- </div>
647
 
648
- <?php
649
- }
650
- if ($settings['embedpress_pdf_powered_by'] === 'yes') {
651
 
652
- printf('<p class="embedpress-el-powered">%s</p>', __('Powered By EmbedPress', 'embedpress'));
653
- }
654
  }
655
- ?>
656
- </div>
 
657
 
658
  <?php
659
  }
432
  $id = $this->get_id();
433
  $this->_render($url, $settings, $id);
434
 
435
+ }
436
+
437
+ public function getParamData($settings){
438
+ $urlParamData = array(
439
+ 'themeMode' => $settings['embedpress_theme_mode'],
440
+ 'toolbar' => !empty($settings['pdf_toolbar']) ? 'true' : 'false',
441
+ 'position' => $settings['pdf_toolbar_position'],
442
+ 'presentation' => !empty($settings['pdf_presentation_mode']) ? 'true' : 'false',
443
+ 'download' => defined('EMBEDPRESS_PRO_PLUGIN_VERSION')? $settings['pdf_print_download'] : 'true',
444
+ 'copy_text' => defined('EMBEDPRESS_PRO_PLUGIN_VERSION')? $settings['pdf_text_copy'] : 'true',
445
+ 'doc_rotation' => !empty($settings['pdf_rotate_access']) ? 'true' : 'false',
446
+ 'doc_details' => !empty($settings['pdf_details']) ? 'true' : 'false',
447
+ );
448
+
449
+ if($settings['embedpress_pdf_type'] == 'file'){
450
+ return "#" .http_build_query($urlParamData) ;
451
  }
452
+ return '';
453
+
454
  }
455
 
456
+ public function _render($url, $settings, $id)
 
 
 
457
  {
458
+ $id = 'embedpress-pdf-' . $id;
459
+ $dimension = "width: {$settings['embedpress_elementor_document_width']['size']}px;height: {$settings['embedpress_elementor_document_height']['size']}px";
460
+ $this->add_render_attribute('embedpres-pdf-render', [
461
+ 'class' => ['embedpress-embed-document-pdf', $id],
462
+ 'data-emid' => $id
463
+ ]);
464
+ $this->add_render_attribute('embedpress-document', [
465
+ 'class' => ['embedpress-document-embed', 'ep-doc-' . md5($id), 'ose-document'],
466
+ 'data-thememode' => $settings['embedpress_theme_mode'],
467
+ 'data-toolbar' => $settings['pdf_toolbar'],
468
+ 'data-toolbar-position' => $settings['pdf_toolbar_position'],
469
+ 'data-open' => 'no',
470
+ 'data-presentation-mode' => $settings['pdf_presentation_mode'],
471
+ 'data-download' => defined('EMBEDPRESS_PRO_PLUGIN_VERSION')? $settings['pdf_print_download'] : 'yes',
472
+ 'data-copy' => defined('EMBEDPRESS_PRO_PLUGIN_VERSION')? $settings['pdf_text_copy'] : 'yes',
473
+ 'data-rotate' => $settings['pdf_rotate_access'],
474
+ 'data-details' => $settings['pdf_details'],
475
+ 'data-id' => $id
476
+ ]);
477
  ?>
478
+ <div <?php echo $this->get_render_attribute_string('embedpress-document'); ?> style="<?php echo esc_attr($dimension); ?>; max-width:100%; display: inline-block">
479
+ <?php
480
+ do_action('embedpress_pdf_after_embed', $settings, $url, $id, $this);
481
+ ?>
482
+ <?php if ($url != '') {
483
+ if ($this->is_pdf($url) && !$this->is_external_url($url)) {
484
+ $this->add_render_attribute('embedpres-pdf-render', 'data-emsrc', $url);
485
+ $renderer = Helper::get_pdf_renderer();
486
+ $src = $renderer . ((strpos($renderer, '?') == false) ? '?' : '&') . 'file=' . $url.$this->getParamData($settings);
487
+ if (!empty($settings['embedpress_pdf_zoom'])) {
488
+ $zoom = $settings['embedpress_pdf_zoom'];
489
+ if ($zoom == 'custom') {
490
+ if (!empty($settings['embedpress_pdf_zoom_custom'])) {
491
+ $zoom = $settings['embedpress_pdf_zoom_custom'];
492
+ } else {
493
+ $zoom = null;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
494
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
495
  }
496
+ if ($zoom) {
497
+ $src = $src . "#zoom=$zoom";
 
 
 
 
498
  }
 
 
 
 
499
  }
500
+ ?>
501
+ <iframe class="embedpress-embed-document-pdf <?php echo esc_attr($id); ?>" style="<?php echo esc_attr($dimension); ?>; max-width:100%; display: inline-block" src="<?php echo esc_attr($src); ?>" <?php $this->get_render_attribute_string('embedpres-pdf-render'); ?> frameborder="0"></iframe>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
502
  <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
503
 
504
+ } else {
505
+ ?>
506
+ <div>
507
+ <iframe class="embedpress-embed-document-pdf <?php echo esc_attr($id); ?>" allowfullscreen="true" mozallowfullscreen="true" webkitallowfullscreen="true" style="<?php echo esc_attr($dimension); ?>; max-width:100%;" src="<?php echo esc_url($url); ?>" <?php $this->get_render_attribute_string('embedpres-pdf-render'); ?>></iframe>
508
+ </div>
509
 
510
+ <?php
511
+ }
512
+ if ($settings['embedpress_pdf_powered_by'] === 'yes') {
513
 
514
+ printf('<p class="embedpress-el-powered">%s</p>', __('Powered By EmbedPress', 'embedpress'));
 
515
  }
516
+ }
517
+ ?>
518
+ </div>
519
 
520
  <?php
521
  }
EmbedPress/Includes/Classes/Feature_Enhancer.php CHANGED
@@ -74,7 +74,7 @@ class Feature_Enhancer
74
  'width' => intval($attributes['width']),
75
  'height' => intval($attributes['height']),
76
  'pagesize' => isset($attributes['pagesize']) ? intval($attributes['pagesize']) : 6,
77
- 'columns' => isset($attributes['columns']) ? intval($attributes['columns']) : 2,
78
  'ispagination' => isset($attributes['ispagination']) ? $attributes['ispagination'] : 0,
79
  'gapbetweenvideos' => isset($attributes['gapbetweenvideos']) ? $attributes['gapbetweenvideos'] : 30,
80
  ];
74
  'width' => intval($attributes['width']),
75
  'height' => intval($attributes['height']),
76
  'pagesize' => isset($attributes['pagesize']) ? intval($attributes['pagesize']) : 6,
77
+ 'columns' => isset($attributes['columns']) ? intval($attributes['columns']) : 3,
78
  'ispagination' => isset($attributes['ispagination']) ? $attributes['ispagination'] : 0,
79
  'gapbetweenvideos' => isset($attributes['gapbetweenvideos']) ? $attributes['gapbetweenvideos'] : 30,
80
  ];
EmbedPress/Providers/OpenSea.php CHANGED
@@ -33,10 +33,16 @@ class OpenSea extends ProviderAdapter implements ProviderInterface {
33
  'limit',
34
  'orderby',
35
  'layout',
 
36
  'preset',
37
  'nftperrow',
38
  'gapbetweenitem',
39
  'nftimage',
 
 
 
 
 
40
  'nftcreator',
41
  'prefix_nftcreator',
42
  'nfttitle',
@@ -47,19 +53,39 @@ class OpenSea extends ProviderAdapter implements ProviderInterface {
47
  'nftbutton',
48
  'label_nftbutton',
49
  'itemBGColor',
 
 
50
  'titleColor',
51
  'titleFontsize',
52
  'creatorColor',
53
  'creatorFontsize',
54
  'creatorLinkColor',
55
  'creatorLinkFontsize',
 
 
56
  'priceColor',
57
  'priceFontsize',
 
 
 
 
58
  'lastSaleColor',
59
  'lastSaleFontsize',
 
 
60
  'buttonTextColor',
61
  'buttonBackgroundColor',
62
- 'buttonFontSize'
 
 
 
 
 
 
 
 
 
 
63
  ];
64
 
65
  /** inline {@inheritdoc} */
@@ -120,12 +146,77 @@ class OpenSea extends ProviderAdapter implements ProviderInterface {
120
  return $results;
121
  }
122
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
123
 
124
  public function getAssets($url) {
125
  preg_match('~opensea\.io/assets/.*/([a-zA-Z0-9]+)/([a-zA-Z0-9]+)~i', (string) $url, $matches);
126
 
 
 
 
 
 
 
 
 
 
 
127
  if(!empty($matches[1]) && !empty($matches[2])){
128
- $params = $this->getParams();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
129
  return "
130
  <!-- vertical=\"true\" -->
131
  <nft-card
@@ -135,6 +226,7 @@ class OpenSea extends ProviderAdapter implements ProviderInterface {
135
  </nft-card>
136
  <script src=\"https://unpkg.com/embeddable-nfts/dist/nft-card.min.js\"></script>";
137
  }
 
138
  return "";
139
  }
140
 
@@ -248,6 +340,10 @@ class OpenSea extends ProviderAdapter implements ProviderInterface {
248
  */
249
  public function normalizeJSONData($asset){
250
  $nftItem = [];
 
 
 
 
251
  $nftItem['id'] = isset($asset->id)?$asset->id:'';
252
  $nftItem['name'] = isset($asset->name)?$asset->name:'';
253
  $nftItem['permalink'] = isset($asset->permalink)?$asset->permalink:'';
@@ -258,10 +354,21 @@ class OpenSea extends ProviderAdapter implements ProviderInterface {
258
  $nftItem['image_original_url'] = isset($asset->image_original_url)?$asset->image_original_url:'';
259
  $nftItem['created_by'] = isset($asset->creator->user->username)?$asset->creator->user->username:'';
260
  $nftItem['creator_img_url'] = isset($asset->asset_contract->image_url)?$asset->asset_contract->image_url:'';
261
- $nftItem['current_price'] = isset($asset->seaport_sell_orders)?$asset->seaport_sell_orders:0;
262
- $nftItem['last_sale'] = isset($asset->last_sale->total_price)?$asset->last_sale->total_price:0;
 
263
  $nftItem['creator_url'] = 'https://opensea.io/'.$nftItem['created_by'];
264
 
 
 
 
 
 
 
 
 
 
 
265
  return $nftItem;
266
  }
267
 
@@ -305,6 +412,7 @@ class OpenSea extends ProviderAdapter implements ProviderInterface {
305
  $BgColor = '';
306
  $FontSize = '';
307
  $TextColor = '';
 
308
 
309
  if(!empty($color)){
310
  $TextColor = "color:{$color};";
@@ -315,11 +423,16 @@ class OpenSea extends ProviderAdapter implements ProviderInterface {
315
 
316
  if(!empty($bgKey) && !empty($this->getColor($bgKey)) && !empty($buttonBg)){
317
  $BgColor = 'background-color: '. $buttonBg;
 
 
 
 
318
  }
319
 
320
  if((!empty($TextColor)) || (!empty($FontSize)) || (!empty($BgColor))){
321
  $itemStyle = $itemStyle . "style='{$TextColor}{$FontSize}{$BgColor}'";
322
  }
 
323
  return $itemStyle;
324
  }
325
 
@@ -342,7 +455,8 @@ class OpenSea extends ProviderAdapter implements ProviderInterface {
342
  'prefix_nftcreator' => 'Created By',
343
  'prefix_nftprice' => 'Price',
344
  'prefix_nftlastsale' => 'Last Sale',
345
- 'label_nftbutton' => 'See Details'
 
346
  ] );
347
 
348
  //Intialize default value
@@ -384,10 +498,11 @@ class OpenSea extends ProviderAdapter implements ProviderInterface {
384
 
385
  $creator_img_url = $item['creator_img_url'];
386
 
387
- $current_price = $item['current_price']?(float)($item['current_price'][0]->current_price / 1000000000000000000) : 0;
 
388
 
389
  if(!empty($item['last_sale'] && $item['last_sale'] > 0) ){
390
- $last_sale = (float) $item['last_sale'] / 1000000000000000000;
391
  }
392
 
393
  // Checked and assigned prefix text value
@@ -467,10 +582,10 @@ class OpenSea extends ProviderAdapter implements ProviderInterface {
467
 
468
  $innerNFTbutton = '';
469
  $outterNFTbutton = '';
470
- if(isset($params['layout']) && $params['layout'] == 'ep-grid'){
471
  $outterNFTbutton = $nftbutton;
472
  }
473
- else if(isset($params['layout']) && $params['layout'] == 'ep-list'){
474
  $innerNFTbutton = $nftbutton;
475
  }
476
  else{
@@ -497,8 +612,248 @@ class OpenSea extends ProviderAdapter implements ProviderInterface {
497
  </div>
498
  ';
499
 
 
 
 
 
 
 
 
500
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
501
  return $template;
 
502
  }
503
 
504
  /** inline {@inheritdoc} */
33
  'limit',
34
  'orderby',
35
  'layout',
36
+ 'layout-single',
37
  'preset',
38
  'nftperrow',
39
  'gapbetweenitem',
40
  'nftimage',
41
+ 'collectionname',
42
+ 'nftrank',
43
+ 'label_nftrank',
44
+ 'nftdetails',
45
+ 'label_nftdetails',
46
  'nftcreator',
47
  'prefix_nftcreator',
48
  'nfttitle',
53
  'nftbutton',
54
  'label_nftbutton',
55
  'itemBGColor',
56
+ 'collectionNameColor',
57
+ 'collectionNameFZ',
58
  'titleColor',
59
  'titleFontsize',
60
  'creatorColor',
61
  'creatorFontsize',
62
  'creatorLinkColor',
63
  'creatorLinkFontsize',
64
+ 'priceLabelColor',
65
+ 'priceLabelFontsize',
66
  'priceColor',
67
  'priceFontsize',
68
+ 'priceUSDColor',
69
+ 'priceUSDFontsize',
70
+ 'lastSaleLabelColor',
71
+ 'lastSaleLabelFontsize',
72
  'lastSaleColor',
73
  'lastSaleFontsize',
74
+ 'lastSaleUSDColor',
75
+ 'lastSaleUSDFontsize',
76
  'buttonTextColor',
77
  'buttonBackgroundColor',
78
+ 'buttonFontSize',
79
+ 'rankBtnColor',
80
+ 'rankBtnFZ',
81
+ 'rankBtnBorderColor',
82
+ 'rankLabelColor',
83
+ 'rankLabelFZ',
84
+ 'detialTitleColor',
85
+ 'detialTitleFZ',
86
+ 'detailTextColor',
87
+ 'detailTextLinkColor',
88
+ 'detailTextFZ',
89
  ];
90
 
91
  /** inline {@inheritdoc} */
146
  return $results;
147
  }
148
 
149
+ //Create transient for opensea api request
150
+ public function createTransient($url, $api_key){
151
+ $results = wp_remote_get($url, [
152
+ 'headers' => array(
153
+ 'Content-Type' => 'application/json',
154
+ 'X-API-KEY' => $api_key,
155
+ )
156
+ ]);
157
+
158
+ if (!is_wp_error($results) ) {
159
+ $jsonResult = json_decode($results['body']);
160
+ }
161
+
162
+ return $jsonResult;
163
+ }
164
+
165
 
166
  public function getAssets($url) {
167
  preg_match('~opensea\.io/assets/.*/([a-zA-Z0-9]+)/([a-zA-Z0-9]+)~i', (string) $url, $matches);
168
 
169
+ $opensea_settings = get_option( EMBEDPRESS_PLG_NAME.':opensea');
170
+
171
+ $params = $this->getParams();
172
+
173
+ $api_key = 'b61c8a54123d4dcb9acc1b9c26a01cd1';
174
+
175
+ if(!empty($opensea_settings['api_key'])){
176
+ $api_key = $opensea_settings['api_key'];
177
+ }
178
+
179
  if(!empty($matches[1]) && !empty($matches[2])){
180
+
181
+ $param = array(
182
+ 'include_orders' => true,
183
+ );
184
+
185
+ $url = "https://api.opensea.io/api/v1/asset/$matches[1]/$matches[2]/?" . http_build_query($param);
186
+
187
+ $results = wp_remote_get($url, [
188
+ 'headers' => array(
189
+ 'Content-Type' => 'application/json',
190
+ 'X-API-KEY' => $api_key,
191
+ )
192
+ ]);
193
+
194
+ if (!is_wp_error($results) ) {
195
+ $jsonResult = json_decode($results['body']);
196
+ }
197
+
198
+ $asset = $this->normalizeJSONData($jsonResult);
199
+
200
+ $template = $this->nftSingleItemTemplate($asset);
201
+ ob_start();
202
+
203
+ ?>
204
+
205
+
206
+ <div class="ep-parent-wrapper ep-parent-ep-nft-gallery-r1a5mbx ">
207
+ <div class="ep-nft-gallery-wrapper ep-nft-gallery-r1a5mbx" data-id="ep-nft-gallery-r1a5mbx">
208
+ <div class="ep_nft_content_wrap ep_nft__wrapper nft_items ep-nft-single-item-wraper ep-list">
209
+ <?php print_r($template); ?>
210
+ </div>
211
+ </div>
212
+ </div>
213
+
214
+ <?php $html = ob_get_clean();
215
+
216
+ // wp_send_json($html);
217
+
218
+ return $html;
219
+
220
  return "
221
  <!-- vertical=\"true\" -->
222
  <nft-card
226
  </nft-card>
227
  <script src=\"https://unpkg.com/embeddable-nfts/dist/nft-card.min.js\"></script>";
228
  }
229
+
230
  return "";
231
  }
232
 
340
  */
341
  public function normalizeJSONData($asset){
342
  $nftItem = [];
343
+
344
+ $current_price = isset($asset->seaport_sell_orders)?$asset->seaport_sell_orders:0;
345
+ $last_sale = isset($asset->last_sale->total_price)?$asset->last_sale->total_price:0;
346
+
347
  $nftItem['id'] = isset($asset->id)?$asset->id:'';
348
  $nftItem['name'] = isset($asset->name)?$asset->name:'';
349
  $nftItem['permalink'] = isset($asset->permalink)?$asset->permalink:'';
354
  $nftItem['image_original_url'] = isset($asset->image_original_url)?$asset->image_original_url:'';
355
  $nftItem['created_by'] = isset($asset->creator->user->username)?$asset->creator->user->username:'';
356
  $nftItem['creator_img_url'] = isset($asset->asset_contract->image_url)?$asset->asset_contract->image_url:'';
357
+
358
+ $nftItem['current_price'] = isset($current_price[0]->current_price)?(float)($current_price[0]->current_price / 1000000000000000000) : 0;
359
+ $nftItem['last_sale'] = isset($asset->last_sale->total_price)?(float)($asset->last_sale->total_price / 1000000000000000000) : 0;
360
  $nftItem['creator_url'] = 'https://opensea.io/'.$nftItem['created_by'];
361
 
362
+ //single asstet data
363
+ $nftItem['collectionname'] = isset($asset->collection->name)?$asset->collection->name:'';
364
+ $nftItem['collection_slug'] = isset($asset->collection->slug)?$asset->collection->slug:'';
365
+ $nftItem['verified'] = isset($asset->creator->config)?$asset->creator->config:'';
366
+ $nftItem['rank'] = isset($asset->rarity_data->rank)?$asset->rarity_data->rank:0;
367
+ $nftItem['address'] = isset($asset->asset_contract->address)?$asset->asset_contract->address:'';
368
+ $nftItem['schema_name'] = isset($asset->asset_contract->schema_name)?$asset->asset_contract->schema_name:'';
369
+ $nftItem['token_id'] = isset($asset->token_id)?$asset->token_id:'';
370
+ $nftItem['usd_price'] = isset($asset->collection->payment_tokens[0]->usd_price)?$asset->collection->payment_tokens[0]->usd_price:'';
371
+
372
  return $nftItem;
373
  }
374
 
412
  $BgColor = '';
413
  $FontSize = '';
414
  $TextColor = '';
415
+ $borderColor = '';
416
 
417
  if(!empty($color)){
418
  $TextColor = "color:{$color};";
423
 
424
  if(!empty($bgKey) && !empty($this->getColor($bgKey)) && !empty($buttonBg)){
425
  $BgColor = 'background-color: '. $buttonBg;
426
+
427
+ if($bgKey == 'rankBtnBorderColor'){
428
+ $BgColor = 'border-color: '. $buttonBg;;
429
+ }
430
  }
431
 
432
  if((!empty($TextColor)) || (!empty($FontSize)) || (!empty($BgColor))){
433
  $itemStyle = $itemStyle . "style='{$TextColor}{$FontSize}{$BgColor}'";
434
  }
435
+
436
  return $itemStyle;
437
  }
438
 
455
  'prefix_nftcreator' => 'Created By',
456
  'prefix_nftprice' => 'Price',
457
  'prefix_nftlastsale' => 'Last Sale',
458
+ 'label_nftbutton' => 'See Details',
459
+
460
  ] );
461
 
462
  //Intialize default value
498
 
499
  $creator_img_url = $item['creator_img_url'];
500
 
501
+ $current_price = $item['current_price'];
502
+
503
 
504
  if(!empty($item['last_sale'] && $item['last_sale'] > 0) ){
505
+ $last_sale = $item['last_sale'];
506
  }
507
 
508
  // Checked and assigned prefix text value
582
 
583
  $innerNFTbutton = '';
584
  $outterNFTbutton = '';
585
+ if(isset($params['layout']) && $params['layout'] == 'ep-grid' || isset($params['layout-single']) && $params['layout-single'] == 'ep-grid'){
586
  $outterNFTbutton = $nftbutton;
587
  }
588
+ else if(isset($params['layout']) && $params['layout'] == 'ep-list' || isset($params['layout-single']) && $params['layout-single'] == 'ep-list'){
589
  $innerNFTbutton = $nftbutton;
590
  }
591
  else{
612
  </div>
613
  ';
614
 
615
+ return $template;
616
+ }
617
+
618
+ /**
619
+ * NFT Collection Item template
620
+ */
621
+ public function nftSingleItemTemplate($item){
622
 
623
+ $params = $this->getParams();
624
+
625
+
626
+ $params = wp_parse_args( $params, [
627
+ 'nftimage' => true,
628
+ 'nfttitle' => true,
629
+ 'nftcreator' => true,
630
+ 'nftbutton' => true,
631
+ 'nftprice' => true,
632
+ 'nftlastsale' => true,
633
+ 'collectionname'=> true,
634
+ 'nftrank'=> true,
635
+ 'nftdetails'=> true,
636
+ 'layout' => 'ep-grid',
637
+ 'preset' => 'ep-preset-2',
638
+ 'prefix_nftcreator' => 'Created By',
639
+ 'prefix_nftprice' => 'Current Price',
640
+ 'prefix_nftlastsale' => 'Last Sale',
641
+ 'label_nftbutton' => 'See Details',
642
+ 'label_nftrank' => 'Rank',
643
+ 'label_nftdetails' => 'Details',
644
+ ] );
645
+
646
+ //Intialize default value
647
+
648
+ $thumbnail = '';
649
+ $title = '';
650
+ $creator = '';
651
+ $prefix_creator = '';
652
+ $current_price = 0;
653
+ $prefix_current_price = '';
654
+ $last_sale = 0;
655
+ $prefix_last_sale = '';
656
+ $nftbutton = '';
657
+ $label_nftbutton = '';
658
+ $label_nftrank = '';
659
+ $label_nftdetails = '';
660
+
661
+ $is_verified = '';
662
+ $rank = '';
663
+ $collectionname = '';
664
+
665
+ $toggle_item = '';
666
+
667
+ //Template part
668
+ $current_price_template = '';
669
+ $last_sale_price_template = '';
670
+
671
+ // Assgined current value
672
+ $name = $item['name'] ? $item['name'] : '#'.$item['id'];
673
+
674
+ $image_url = $item['image_url'] ? $item['image_url'] : ($item['image_thumbnail_url']?$item['image_thumbnail_url'] : ($item['image_preview_url']?$item['image_preview_url'] : $item['image_original_url']));
675
+
676
+
677
+ $img_placeholder = '
678
+ <svg viewBox="0 0 320 330" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 0H320V330H0V0Z" fill="url(#paint0_linear_16_5)"></path><g opacity="0.15" clip-path="url(#clip0_16_5)"><path d="M136.04 172.213C129.37 172.213 123.436 167.942 121.282 161.584L121.136 161.105C120.628 159.421 120.415 158.005 120.415 156.588V128.178L110.306 161.921C109.006 166.884 111.969 172.029 116.94 173.4L181.371 190.655C182.175 190.864 182.979 190.964 183.771 190.964C187.921 190.964 191.713 188.209 192.775 184.15L196.529 172.213H136.04Z" fill="white"></path><path d="M147.499 128.462C152.095 128.462 155.832 124.724 155.832 120.128C155.832 115.532 152.095 111.795 147.499 111.795C142.903 111.795 139.165 115.532 139.165 120.128C139.165 124.724 142.903 128.462 147.499 128.462Z" fill="white"></path><path opacity="0.5" d="M199.583 99.2943H137.081C131.34 99.2943 126.665 103.97 126.665 109.712V155.546C126.665 161.288 131.34 165.963 137.081 165.963H199.583C205.325 165.963 210 161.288 210 155.546V109.712C210 103.97 205.325 99.2943 199.583 99.2943ZM137.081 107.628H199.583C200.733 107.628 201.666 108.561 201.666 109.712V139.292L188.504 123.932C187.108 122.295 185.087 121.42 182.916 121.37C180.758 121.383 178.733 122.341 177.349 124L161.874 142.575L156.832 137.545C153.982 134.696 149.344 134.696 146.498 137.545L134.998 149.041V109.712C134.998 108.561 135.931 107.628 137.081 107.628Z" fill="white"></path></g><path d="M60.746 217.336H62.798V229H60.746V217.336ZM64.9331 220.036H66.9311V229H64.9331V220.036ZM70.7111 219.838C71.2271 219.838 71.7011 219.91 72.1331 220.054C72.5771 220.198 72.9551 220.42 73.2671 220.72C73.5911 221.008 73.8371 221.368 74.0051 221.8C74.1851 222.232 74.2751 222.742 74.2751 223.33V229H72.2771V223.726C72.2771 222.994 72.0971 222.454 71.7371 222.106C71.3891 221.746 70.8371 221.566 70.0811 221.566C69.5051 221.566 68.9771 221.692 68.4971 221.944C68.0291 222.184 67.6451 222.502 67.3451 222.898C67.0451 223.282 66.8711 223.708 66.8231 224.176L66.8051 223.204C66.8651 222.76 66.9971 222.34 67.2011 221.944C67.4051 221.536 67.6751 221.176 68.0111 220.864C68.3471 220.54 68.7431 220.288 69.1991 220.108C69.6551 219.928 70.1591 219.838 70.7111 219.838ZM77.8571 219.838C78.3851 219.838 78.8651 219.91 79.2971 220.054C79.7291 220.198 80.1011 220.42 80.4131 220.72C80.7371 221.008 80.9891 221.368 81.1691 221.8C81.3491 222.232 81.4391 222.742 81.4391 223.33V229H79.4231V223.726C79.4231 222.994 79.2431 222.454 78.8831 222.106C78.5351 221.746 77.9831 221.566 77.2271 221.566C76.6511 221.566 76.1231 221.692 75.6431 221.944C75.1751 222.184 74.7911 222.502 74.4911 222.898C74.2031 223.282 74.0351 223.708 73.9871 224.176L73.9511 223.168C74.0111 222.736 74.1491 222.322 74.3651 221.926C74.5811 221.518 74.8571 221.158 75.1931 220.846C75.5291 220.534 75.9191 220.288 76.3631 220.108C76.8191 219.928 77.3171 219.838 77.8571 219.838ZM86.9122 229.198C86.0962 229.198 85.3462 229 84.6622 228.604C83.9902 228.208 83.4502 227.662 83.0422 226.966C82.6462 226.258 82.4482 225.448 82.4482 224.536C82.4482 223.6 82.6522 222.784 83.0602 222.088C83.4682 221.38 84.0202 220.828 84.7162 220.432C85.4122 220.036 86.1922 219.838 87.0562 219.838C88.0162 219.838 88.7782 220.048 89.3422 220.468C89.9062 220.888 90.3082 221.452 90.5482 222.16C90.7882 222.868 90.9082 223.66 90.9082 224.536C90.9082 225.028 90.8362 225.55 90.6922 226.102C90.5482 226.642 90.3202 227.146 90.0082 227.614C89.7082 228.082 89.3002 228.466 88.7842 228.766C88.2802 229.054 87.6562 229.198 86.9122 229.198ZM87.5242 227.542C88.1962 227.542 88.7662 227.416 89.2342 227.164C89.7142 226.9 90.0742 226.54 90.3142 226.084C90.5662 225.628 90.6922 225.112 90.6922 224.536C90.6922 223.9 90.5662 223.36 90.3142 222.916C90.0622 222.46 89.7022 222.112 89.2342 221.872C88.7662 221.62 88.1962 221.494 87.5242 221.494C86.5642 221.494 85.8202 221.776 85.2922 222.34C84.7642 222.904 84.5002 223.636 84.5002 224.536C84.5002 225.124 84.6262 225.646 84.8782 226.102C85.1422 226.558 85.5022 226.912 85.9582 227.164C86.4142 227.416 86.9362 227.542 87.5242 227.542ZM90.6922 220.036H92.7082V229H90.8362C90.8362 229 90.8242 228.886 90.8002 228.658C90.7762 228.43 90.7522 228.154 90.7282 227.83C90.7042 227.494 90.6922 227.176 90.6922 226.876V220.036ZM98.1805 227.614C97.3405 227.614 96.5785 227.464 95.8945 227.164C95.2225 226.864 94.6885 226.426 94.2925 225.85C93.9085 225.274 93.7165 224.584 93.7165 223.78C93.7165 222.976 93.9025 222.28 94.2745 221.692C94.6585 221.104 95.1865 220.648 95.8585 220.324C96.5425 220 97.3165 219.838 98.1805 219.838C98.4325 219.838 98.6725 219.856 98.9005 219.892C99.1405 219.928 99.3685 219.976 99.5845 220.036L103.779 220.054V221.728C103.203 221.74 102.621 221.662 102.033 221.494C101.457 221.314 100.947 221.128 100.503 220.936L100.449 220.828C100.857 221.032 101.223 221.284 101.547 221.584C101.883 221.872 102.147 222.202 102.339 222.574C102.531 222.946 102.627 223.366 102.627 223.834C102.627 224.626 102.435 225.304 102.051 225.868C101.679 226.432 101.157 226.864 100.485 227.164C99.8245 227.464 99.0565 227.614 98.1805 227.614ZM101.061 232.654V232.24C101.061 231.652 100.887 231.238 100.539 230.998C100.191 230.758 99.7045 230.638 99.0805 230.638H96.6505C96.1705 230.638 95.7565 230.596 95.4085 230.512C95.0725 230.44 94.8025 230.326 94.5985 230.17C94.3945 230.026 94.2445 229.852 94.1485 229.648C94.0525 229.456 94.0045 229.24 94.0045 229C94.0045 228.52 94.1485 228.16 94.4365 227.92C94.7365 227.68 95.1265 227.524 95.6065 227.452C96.0985 227.38 96.6145 227.368 97.1545 227.416L98.1805 227.614C97.4725 227.638 96.9325 227.704 96.5605 227.812C96.2005 227.908 96.0205 228.106 96.0205 228.406C96.0205 228.586 96.0925 228.73 96.2365 228.838C96.3805 228.946 96.5845 229 96.8485 229H99.4045C100.137 229 100.779 229.084 101.331 229.252C101.883 229.432 102.309 229.726 102.609 230.134C102.921 230.554 103.077 231.124 103.077 231.844V232.654H101.061ZM98.1805 226.048C98.6605 226.048 99.0865 225.958 99.4585 225.778C99.8305 225.598 100.125 225.34 100.341 225.004C100.557 224.668 100.665 224.26 100.665 223.78C100.665 223.3 100.557 222.886 100.341 222.538C100.125 222.19 99.8305 221.926 99.4585 221.746C99.0865 221.566 98.6605 221.476 98.1805 221.476C97.7125 221.476 97.2865 221.566 96.9025 221.746C96.5305 221.926 96.2365 222.19 96.0205 222.538C95.8045 222.874 95.6965 223.288 95.6965 223.78C95.6965 224.26 95.8045 224.668 96.0205 225.004C96.2365 225.34 96.5305 225.598 96.9025 225.778C97.2745 225.958 97.7005 226.048 98.1805 226.048ZM112.044 226.048H113.97C113.874 226.66 113.634 227.206 113.25 227.686C112.878 228.154 112.368 228.526 111.72 228.802C111.072 229.066 110.298 229.198 109.398 229.198C108.378 229.198 107.466 229.012 106.662 228.64C105.858 228.256 105.228 227.716 104.772 227.02C104.316 226.324 104.088 225.496 104.088 224.536C104.088 223.588 104.31 222.76 104.754 222.052C105.198 221.344 105.81 220.798 106.59 220.414C107.382 220.03 108.294 219.838 109.326 219.838C110.394 219.838 111.282 220.03 111.99 220.414C112.71 220.786 113.244 221.35 113.592 222.106C113.94 222.85 114.084 223.792 114.024 224.932H106.122C106.182 225.436 106.344 225.892 106.608 226.3C106.884 226.696 107.256 227.008 107.724 227.236C108.192 227.452 108.738 227.56 109.362 227.56C110.058 227.56 110.64 227.422 111.108 227.146C111.588 226.87 111.9 226.504 112.044 226.048ZM109.272 221.458C108.456 221.458 107.784 221.662 107.256 222.07C106.728 222.466 106.386 222.976 106.23 223.6H112.008C111.96 222.928 111.69 222.406 111.198 222.034C110.706 221.65 110.064 221.458 109.272 221.458ZM129.585 226.876L128.973 227.11V217.336H131.007V229H128.973L120.225 219.514L120.855 219.28V229H118.803V217.336H120.855L129.585 226.876ZM137.576 229.198C136.58 229.198 135.686 229.018 134.894 228.658C134.102 228.298 133.478 227.77 133.022 227.074C132.566 226.378 132.338 225.532 132.338 224.536C132.338 223.552 132.566 222.712 133.022 222.016C133.478 221.308 134.102 220.768 134.894 220.396C135.686 220.024 136.58 219.838 137.576 219.838C138.572 219.838 139.46 220.024 140.24 220.396C141.02 220.768 141.632 221.308 142.076 222.016C142.532 222.712 142.76 223.552 142.76 224.536C142.76 225.532 142.532 226.378 142.076 227.074C141.632 227.77 141.02 228.298 140.24 228.658C139.46 229.018 138.572 229.198 137.576 229.198ZM137.576 227.56C138.152 227.56 138.68 227.446 139.16 227.218C139.64 226.99 140.018 226.648 140.294 226.192C140.582 225.736 140.726 225.184 140.726 224.536C140.726 223.888 140.582 223.336 140.294 222.88C140.018 222.424 139.64 222.076 139.16 221.836C138.692 221.584 138.164 221.458 137.576 221.458C136.988 221.458 136.454 221.578 135.974 221.818C135.494 222.058 135.104 222.406 134.804 222.862C134.516 223.318 134.372 223.876 134.372 224.536C134.372 225.184 134.516 225.736 134.804 226.192C135.092 226.648 135.476 226.99 135.956 227.218C136.448 227.446 136.988 227.56 137.576 227.56ZM143.058 220.036H149.394V221.674H143.058V220.036ZM145.218 217.624H147.234V229H145.218V217.624ZM155.582 226.264V224.518H162.53V226.264H155.582ZM152.882 229L157.976 217.336H160.172L165.302 229H163.088L158.624 218.47H159.524L155.078 229H152.882ZM169.668 227.578H168.966L172.062 220.036H174.24L170.28 229H168.372L164.466 220.036H166.662L169.668 227.578ZM178.607 229.198C177.791 229.198 177.041 229 176.357 228.604C175.685 228.208 175.145 227.662 174.737 226.966C174.341 226.258 174.143 225.448 174.143 224.536C174.143 223.6 174.347 222.784 174.755 222.088C175.163 221.38 175.715 220.828 176.411 220.432C177.107 220.036 177.887 219.838 178.751 219.838C179.711 219.838 180.473 220.048 181.037 220.468C181.601 220.888 182.003 221.452 182.243 222.16C182.483 222.868 182.603 223.66 182.603 224.536C182.603 225.028 182.531 225.55 182.387 226.102C182.243 226.642 182.015 227.146 181.703 227.614C181.403 228.082 180.995 228.466 180.479 228.766C179.975 229.054 179.351 229.198 178.607 229.198ZM179.219 227.542C179.891 227.542 180.461 227.416 180.929 227.164C181.409 226.9 181.769 226.54 182.009 226.084C182.261 225.628 182.387 225.112 182.387 224.536C182.387 223.9 182.261 223.36 182.009 222.916C181.757 222.46 181.397 222.112 180.929 221.872C180.461 221.62 179.891 221.494 179.219 221.494C178.259 221.494 177.515 221.776 176.987 222.34C176.459 222.904 176.195 223.636 176.195 224.536C176.195 225.124 176.321 225.646 176.573 226.102C176.837 226.558 177.197 226.912 177.653 227.164C178.109 227.416 178.631 227.542 179.219 227.542ZM182.387 220.036H184.403V229H182.531C182.531 229 182.519 228.886 182.495 228.658C182.471 228.43 182.447 228.154 182.423 227.83C182.399 227.494 182.387 227.176 182.387 226.876V220.036ZM188.219 216.238V218.164H185.825V216.238H188.219ZM186.005 220.036H188.021V229H186.005V220.036ZM189.874 216.436H191.872V229H189.874V216.436ZM197.576 229.198C196.76 229.198 196.01 229 195.326 228.604C194.654 228.208 194.114 227.662 193.706 226.966C193.31 226.258 193.112 225.448 193.112 224.536C193.112 223.6 193.316 222.784 193.724 222.088C194.132 221.38 194.684 220.828 195.38 220.432C196.076 220.036 196.856 219.838 197.72 219.838C198.68 219.838 199.442 220.048 200.006 220.468C200.57 220.888 200.972 221.452 201.212 222.16C201.452 222.868 201.572 223.66 201.572 224.536C201.572 225.028 201.5 225.55 201.356 226.102C201.212 226.642 200.984 227.146 200.672 227.614C200.372 228.082 199.964 228.466 199.448 228.766C198.944 229.054 198.32 229.198 197.576 229.198ZM198.188 227.542C198.86 227.542 199.43 227.416 199.898 227.164C200.378 226.9 200.738 226.54 200.978 226.084C201.23 225.628 201.356 225.112 201.356 224.536C201.356 223.9 201.23 223.36 200.978 222.916C200.726 222.46 200.366 222.112 199.898 221.872C199.43 221.62 198.86 221.494 198.188 221.494C197.228 221.494 196.484 221.776 195.956 222.34C195.428 222.904 195.164 223.636 195.164 224.536C195.164 225.124 195.29 225.646 195.542 226.102C195.806 226.558 196.166 226.912 196.622 227.164C197.078 227.416 197.6 227.542 198.188 227.542ZM201.356 220.036H203.372V229H201.5C201.5 229 201.488 228.886 201.464 228.658C201.44 228.43 201.416 228.154 201.392 227.83C201.368 227.494 201.356 227.176 201.356 226.876V220.036ZM210.774 229.198C210.03 229.198 209.4 229.054 208.884 228.766C208.38 228.466 207.972 228.082 207.66 227.614C207.36 227.146 207.138 226.642 206.994 226.102C206.862 225.55 206.796 225.028 206.796 224.536C206.796 223.876 206.862 223.264 206.994 222.7C207.126 222.136 207.342 221.644 207.642 221.224C207.954 220.792 208.362 220.456 208.866 220.216C209.382 219.964 210.018 219.838 210.774 219.838C211.638 219.838 212.4 220.036 213.06 220.432C213.732 220.828 214.26 221.38 214.644 222.088C215.04 222.784 215.238 223.6 215.238 224.536C215.238 225.448 215.04 226.258 214.644 226.966C214.248 227.662 213.714 228.208 213.042 228.604C212.37 229 211.614 229.198 210.774 229.198ZM210.162 227.542C210.774 227.542 211.302 227.416 211.746 227.164C212.202 226.912 212.556 226.558 212.808 226.102C213.06 225.646 213.186 225.124 213.186 224.536C213.186 223.636 212.922 222.904 212.394 222.34C211.866 221.764 211.122 221.476 210.162 221.476C209.502 221.476 208.932 221.602 208.452 221.854C207.984 222.106 207.624 222.46 207.372 222.916C207.132 223.36 207.012 223.9 207.012 224.536C207.012 225.112 207.132 225.628 207.372 226.084C207.624 226.54 207.984 226.9 208.452 227.164C208.92 227.416 209.49 227.542 210.162 227.542ZM207.012 216.436V226.876C207.012 227.2 206.994 227.566 206.958 227.974C206.922 228.382 206.886 228.724 206.85 229H204.996V216.436H207.012ZM216.454 216.436H218.452V229H216.454V216.436ZM227.648 226.048H229.574C229.478 226.66 229.238 227.206 228.854 227.686C228.482 228.154 227.972 228.526 227.324 228.802C226.676 229.066 225.902 229.198 225.002 229.198C223.982 229.198 223.07 229.012 222.266 228.64C221.462 228.256 220.832 227.716 220.376 227.02C219.92 226.324 219.692 225.496 219.692 224.536C219.692 223.588 219.914 222.76 220.358 222.052C220.802 221.344 221.414 220.798 222.194 220.414C222.986 220.03 223.898 219.838 224.93 219.838C225.998 219.838 226.886 220.03 227.594 220.414C228.314 220.786 228.848 221.35 229.196 222.106C229.544 222.85 229.688 223.792 229.628 224.932H221.726C221.786 225.436 221.948 225.892 222.212 226.3C222.488 226.696 222.86 227.008 223.328 227.236C223.796 227.452 224.342 227.56 224.966 227.56C225.662 227.56 226.244 227.422 226.712 227.146C227.192 226.87 227.504 226.504 227.648 226.048ZM224.876 221.458C224.06 221.458 223.388 221.662 222.86 222.07C222.332 222.466 221.99 222.976 221.834 223.6H227.612C227.564 222.928 227.294 222.406 226.802 222.034C226.31 221.65 225.668 221.458 224.876 221.458ZM244.936 217.336L240.184 225.202V229H238.132V225.202L233.38 217.336H235.738L239.752 224.212H238.636L242.596 217.336H244.936ZM251.486 226.048H253.412C253.316 226.66 253.076 227.206 252.692 227.686C252.32 228.154 251.81 228.526 251.162 228.802C250.514 229.066 249.74 229.198 248.84 229.198C247.82 229.198 246.908 229.012 246.104 228.64C245.3 228.256 244.67 227.716 244.214 227.02C243.758 226.324 243.53 225.496 243.53 224.536C243.53 223.588 243.752 222.76 244.196 222.052C244.64 221.344 245.252 220.798 246.032 220.414C246.824 220.03 247.736 219.838 248.768 219.838C249.836 219.838 250.724 220.03 251.432 220.414C252.152 220.786 252.686 221.35 253.034 222.106C253.382 222.85 253.526 223.792 253.466 224.932H245.564C245.624 225.436 245.786 225.892 246.05 226.3C246.326 226.696 246.698 227.008 247.166 227.236C247.634 227.452 248.18 227.56 248.804 227.56C249.5 227.56 250.082 227.422 250.55 227.146C251.03 226.87 251.342 226.504 251.486 226.048ZM248.714 221.458C247.898 221.458 247.226 221.662 246.698 222.07C246.17 222.466 245.828 222.976 245.672 223.6H251.45C251.402 222.928 251.132 222.406 250.64 222.034C250.148 221.65 249.506 221.458 248.714 221.458ZM253.757 220.036H260.093V221.674H253.757V220.036ZM255.917 217.624H257.933V229H255.917V217.624Z" fill="white"></path><defs><linearGradient id="paint0_linear_16_5" x1="326.4" y1="1.29268e-05" x2="-63.6095" y2="214.16" gradientUnits="userSpaceOnUse"><stop stop-color="#275EFF"></stop><stop offset="1" stop-color="#A913FF"></stop></linearGradient><clipPath id="clip0_16_5"><rect width="100" height="100" fill="white" transform="translate(110 95)"></rect></clipPath></defs></svg>
679
+ ';
680
+
681
+ if(empty($image_url)){
682
+ $img_thumb = $img_placeholder;
683
+ }
684
+ else{
685
+ $img_thumb = '<img
686
+ src="'.esc_url($image_url).'"
687
+ alt="'.esc_attr($name).'">';
688
+ }
689
+
690
+ $created_by = $item['created_by'];
691
+
692
+ $creator_img_url = $item['creator_img_url'];
693
+
694
+ $current_price = $item['current_price'];
695
+ $usd_price = (float) $current_price * (float) $item['usd_price'];
696
+
697
+ if(!empty($item['last_sale'] && $item['last_sale'] > 0) ){
698
+ $last_sale = $item['last_sale'];
699
+ }
700
+
701
+ $last_usd_price = (float) $last_sale * (float) $item['usd_price'];
702
+
703
+ // Checked and assigned prefix text value
704
+ if(!empty($params['prefix_nftcreator']) && $params['prefix_nftcreator'] != 'false' && $params['prefix_nftcreator'] != 'true'){
705
+ $prefix_creator = $params['prefix_nftcreator'];
706
+ }
707
+
708
+ if(!empty($params['prefix_nftprice']) && $params['prefix_nftprice'] != 'false' && $params['prefix_nftprice'] != 'true'){
709
+ $prefix_current_price = $params['prefix_nftprice'];
710
+ }
711
+ if(!empty($params['prefix_nftlastsale']) && $params['prefix_nftlastsale'] != 'false' && $params['prefix_nftlastsale'] != 'true'){
712
+ $prefix_last_sale = $params['prefix_nftlastsale'];
713
+ }
714
+ if(!empty($params['label_nftbutton']) && $params['label_nftbutton'] != 'false' && $params['label_nftbutton'] != 'true'){
715
+ $label_nftbutton = $params['label_nftbutton'];
716
+ }
717
+
718
+
719
+ if(!empty($params['label_nftrank']) && $params['label_nftrank'] != 'false' && $params['label_nftrank'] != 'true'){
720
+ $label_nftrank = $params['label_nftrank'];
721
+ }
722
+
723
+ if(!empty($params['label_nftdetails']) && $params['label_nftdetails'] != 'false' && $params['label_nftdetails'] != 'true'){
724
+ $label_nftdetails = $params['label_nftdetails'];
725
+ }
726
+
727
+
728
+ $detail_icon = '<svg width="36px" height="36px" viewBox="0 0 36 36" version="1.1" preserveAspectRatio="xMidYMid meet" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
729
+ <title>details-line</title>
730
+ <path d="M32,6H4A2,2,0,0,0,2,8V28a2,2,0,0,0,2,2H32a2,2,0,0,0,2-2V8A2,2,0,0,0,32,6Zm0,22H4V8H32Z" class="clr-i-outline clr-i-outline-path-1"></path><path d="M9,14H27a1,1,0,0,0,0-2H9a1,1,0,0,0,0,2Z" class="clr-i-outline clr-i-outline-path-2"></path><path d="M9,18H27a1,1,0,0,0,0-2H9a1,1,0,0,0,0,2Z" class="clr-i-outline clr-i-outline-path-3"></path><path d="M9,22H19a1,1,0,0,0,0-2H9a1,1,0,0,0,0,2Z" class="clr-i-outline clr-i-outline-path-4"></path>
731
+ <rect x="0" y="0" width="36" height="36" fill-opacity="0"/>
732
+ </svg>';
733
+
734
+
735
+ $toggleID = 'toggle-'.rand(655, 54654656546);
736
+
737
+ if(($params['nftdetails'] == 'yes' || $params['nftdetails'] == 'true') && !empty($params['nftdetails'])){
738
+ $toggle_item = '<div class="ep-container">
739
+ <div class="ep-accordion">
740
+
741
+ <div class="ep-option">
742
+ <input type="checkbox" id="'.esc_attr( $toggleID ).'" class="ep-toggle" />
743
+ <label class="ep-title" for="'.esc_attr( $toggleID ).'" '.$this->createStye('detialTitleColor', 'detialTitleFZ', '').'>'.$detail_icon. esc_html($label_nftdetails).'</label>
744
+ <div class="ep-content">
745
+ <div class="ep-asset-details" '.$this->createStye('detailTextColor', 'detailTextFZ', '').'>
746
+ <div class="ep-asset-detail-item">Contract Address
747
+ <span>
748
+ <a class="sc-1f719d57-0 fKAlPV"
749
+ href="'.esc_url('https://etherscan.io/address/'.$item['address']).'" rel="nofollow noopener"
750
+ target="_blank" '.$this->createStye('detailTextLinkColor', '', '').'>'.substr($item['address'], 0, 6).'...'.substr($item['address'], -4).'</a>
751
+ </span>
752
+ </div>
753
+ <div class="ep-asset-detail-item">Token ID
754
+ <span>'.esc_html($item['token_id']).'</span>
755
+ </div>
756
+ <div class="ep-asset-detail-item">Token Standard
757
+ <span>'.esc_html($item['schema_name']).'</span>
758
+ </div>
759
+ </div>
760
+ </div>
761
+ </div>
762
+
763
+ </div>
764
+ </div>';
765
+ }
766
+
767
+ if($item['verified'] == 'verified'){
768
+ $is_verified = '<sub class="verified-icon"><svg aria-label="verified-icon" class="sc-9c65691d-0 ghqJwW" fill="#2081e2" viewBox="0 0 30 30"><path d="M13.474 2.80108C14.2729 1.85822 15.7271 1.85822 16.526 2.80108L17.4886 3.9373C17.9785 4.51548 18.753 4.76715 19.4892 4.58733L20.9358 4.23394C22.1363 3.94069 23.3128 4.79547 23.4049 6.0278L23.5158 7.51286C23.5723 8.26854 24.051 8.92742 24.7522 9.21463L26.1303 9.77906C27.2739 10.2474 27.7233 11.6305 27.0734 12.6816L26.2903 13.9482C25.8918 14.5928 25.8918 15.4072 26.2903 16.0518L27.0734 17.3184C27.7233 18.3695 27.2739 19.7526 26.1303 20.2209L24.7522 20.7854C24.051 21.0726 23.5723 21.7315 23.5158 22.4871L23.4049 23.9722C23.3128 25.2045 22.1363 26.0593 20.9358 25.7661L19.4892 25.4127C18.753 25.2328 17.9785 25.4845 17.4886 26.0627L16.526 27.1989C15.7271 28.1418 14.2729 28.1418 13.474 27.1989L12.5114 26.0627C12.0215 25.4845 11.247 25.2328 10.5108 25.4127L9.06418 25.7661C7.86371 26.0593 6.6872 25.2045 6.59513 23.9722L6.48419 22.4871C6.42773 21.7315 5.94903 21.0726 5.24777 20.7854L3.86969 20.2209C2.72612 19.7526 2.27673 18.3695 2.9266 17.3184L3.70973 16.0518C4.10824 15.4072 4.10824 14.5928 3.70973 13.9482L2.9266 12.6816C2.27673 11.6305 2.72612 10.2474 3.86969 9.77906L5.24777 9.21463C5.94903 8.92742 6.42773 8.26854 6.48419 7.51286L6.59513 6.0278C6.6872 4.79547 7.86371 3.94069 9.06418 4.23394L10.5108 4.58733C11.247 4.76715 12.0215 4.51548 12.5114 3.9373L13.474 2.80108Z" class="sc-9c65691d-1 jiZrqV"></path><path d="M13.5 17.625L10.875 15L10 15.875L13.5 19.375L21 11.875L20.125 11L13.5 17.625Z" fill="white" stroke="white"></path></svg></sub>';
769
+ }
770
+
771
+
772
+ if((!empty($item['rank']) && ($params['nftrank'] == 'yes') || (!empty($item['rank']) && $params['nftrank'] == 'true')) && !empty($params['nftrank'])){
773
+ $emp_class = empty($label_nftrank)? ' ep-empty-label':'';
774
+ $rank = '<div class="ep-nft-rank-wraper'.esc_attr( $emp_class ).'" '.$this->createStye('rankLabelColor', 'rankLabelFZ', '').'>'.esc_html($label_nftrank).' <span class="ep-nft-rank" target="_blank" '.$this->createStye('rankBtnColor', 'rankBtnFZ', 'rankBtnBorderColor').'>#'.esc_html($item['rank']).'</span></div>';
775
+ }
776
+
777
+
778
+ if(($params['collectionname'] == 'yes' || $params['collectionname'] == 'true') && !empty($params['collectionname'])){
779
+ $collectionname = '<a class="CollectionLink--link" target="_blank" href="'.esc_url('https://opensea.io/collection/'.$item['collection_slug']).'" '.$this->createStye('collectionNameColor', 'collectionNameFZ', '').'><span
780
+ class="CollectionLink--name">'.esc_html($item['collectionname']).$is_verified.'</span></a>';
781
+ }
782
+
783
+ if(!empty($current_price) && (($current_price > 0) && (($params['nftprice'] == 'yes') || ($params['nftprice'] == 'true')))){
784
+ $current_price_template = '
785
+ <div class="ep_nft_price ep_current_price">
786
+ <span class="eb_nft_label" '.$this->createStye('priceLabelColor', 'priceLabelFontsize', '').'>'.esc_html($prefix_current_price).'</span>
787
+ <span class="eb_nft_price" '.$this->createStye('priceColor', 'priceFontsize', '').'>'. esc_html(round($current_price, 4)).' ETH <sub class="ep-usd-price" '.$this->createStye('priceUSDColor', 'priceUSDFontsize', '').'>$'.round($usd_price, 2).'</sub></span>
788
+ </div>
789
+ ';
790
+ }
791
+
792
+ if(!empty($last_sale) && (($last_sale > 0) && (($params['nftlastsale'] == 'yes') || ($params['nftlastsale'] == 'true')))){
793
+ $last_sale_price_template = '
794
+ <div class="ep_nft_price ep_nft_last_sale" >
795
+ <span class="eb_nft_label" '.$this->createStye('lastSaleLabelColor', 'lastSaleLabelFontsize', '').'>'.esc_html($prefix_last_sale).'</span>
796
+ <span class="eb_nft_price" '.$this->createStye('lastSaleColor', 'lastSaleFontsize', '').'>'. esc_html(round($last_sale, 4)).' ETH <sub class="ep-usd-price" '.$this->createStye('lastSaleUSDColor', 'lastSaleUSDFontsize', '').'>$'.round($last_usd_price, 2).'</sub></span>
797
+ </div>
798
+ ';
799
+ }
800
+
801
+ if(($params['nftimage'] == 'yes') || ($params['nftimage'] == 'true')):
802
+ $thumbnail = '<div class="ep_nft_thumbnail">'.$img_thumb.'</div>';
803
+ endif;
804
+
805
+ if((($params['nftcreator'] == 'yes') || ($params['nftcreator'] == 'true')) && !empty($created_by)):
806
+ $creator = '<div class="ep_nft_owner_wrapper">
807
+ <div class="ep_nft_creator"><img
808
+ src="'.esc_url($creator_img_url).'"
809
+ alt="'.esc_attr($created_by).'"><span '.$this->createStye('creatorColor', 'creatorFontsize', '').'>'.esc_html($prefix_creator).' <a target="_blank"
810
+ href="'.esc_url($item['creator_url']).'" '.$this->createStye('creatorLinkColor', 'creatorLinkFontsize', '').'>'.esc_html($created_by).'</a></span>
811
+ </div>
812
+ </div>';
813
+ endif;
814
+
815
+ if(($params['nfttitle'] == 'yes') || ($params['nfttitle'] == 'true')):
816
+ $title = ' <h3 class="ep_nft_title" '.$this->createStye('titleColor', 'titleFontsize', '').'>'.esc_html($name).'</h3>';
817
+ endif;
818
+
819
+ $detailsbtn = '';
820
+
821
+ if(($params['nftbutton'] == 'yes') || ($params['nftbutton'] == 'true')):
822
+ $detailsbtn = '<a class="ep-details-btn" target="_blank" href="'.esc_url($item['permalink']).'" '.$this->createStye('buttonTextColor', 'buttonFontSize', 'buttonBackgroundColor').'>'.esc_html($label_nftbutton).'</a>';
823
+ endif;
824
+
825
+ if(!empty($detailsbtn) || !empty($rank)):
826
+ $nftbutton = '<div class="ep_nft_button"> '.$detailsbtn.' </div>';
827
+ endif;
828
+
829
+ $itemBGColor = $this->createStye('', '', 'itemBGColor');
830
+
831
+ $template = '
832
+ <div class="ep_nft_item" '.$itemBGColor.'>
833
+ '.$thumbnail.'
834
+ <div class="ep_nft_content">
835
+ '.$collectionname .'
836
+ '.$title.'
837
+ <div class="ep_nft_content_body">
838
+ '.$creator.'
839
+ '.$rank.'
840
+ <div class="ep_nft_price_wrapper">
841
+ '.$current_price_template.'
842
+ '.$last_sale_price_template.'
843
+ </div>
844
+ </div>
845
+ '.$nftbutton.'
846
+ '.$toggle_item.'
847
+ </div>
848
+ </div>
849
+ ';
850
+
851
+ if(!(strpos($item['permalink'], '/ethereum/') > 0)){
852
+ return '<h4 style="text-align: center">Currently, this blockchain is not supported.</h4>';
853
+ }
854
+
855
  return $template;
856
+
857
  }
858
 
859
  /** inline {@inheritdoc} */
EmbedPress/Providers/Youtube.php CHANGED
@@ -48,7 +48,7 @@ class Youtube extends ProviderAdapter implements ProviderInterface {
48
 
49
  /** inline {@inheritdoc} */
50
  public function validateUrl(Url $url) {
51
- return (bool) (preg_match('~\/channel\/|\/c\/|\/user\/|(?:https?:\/\/)?(?:www\.)?(?:youtube.com\/)(\w+)[^?\/]*$~i', (string) $url));
52
  }
53
 
54
  /** inline {@inheritdoc} */
@@ -78,6 +78,15 @@ class Youtube extends ProviderAdapter implements ProviderInterface {
78
  ];
79
  }
80
  }
 
 
 
 
 
 
 
 
 
81
  return [
82
  "type" => isset($matches[1]) ? $matches[1] : '',
83
  "id" => isset($matches[2]) ? $matches[2] : '',
@@ -130,11 +139,11 @@ class Youtube extends ProviderAdapter implements ProviderInterface {
130
  * @param array $params Parameters for the query string
131
  * @return string
132
  */
133
-
134
  protected function constructUrl($endpoint, array $params = array())
135
  {
136
  $endpoint = self::$channel_endpoint . $endpoint;
137
-
138
  return $endpoint . ((strpos($endpoint, '?') === false) ? '?' : '&') . http_build_query(array_filter($params));
139
  }
140
 
@@ -163,7 +172,7 @@ class Youtube extends ProviderAdapter implements ProviderInterface {
163
  $transient_key = 'ep_embed_youtube_channel_playlist_id_' . md5($channel_url);
164
  $jsonResult = get_transient($transient_key);
165
 
166
- if(!empty($jsonResult)){
167
  return $jsonResult;
168
  }
169
 
@@ -186,7 +195,7 @@ class Youtube extends ProviderAdapter implements ProviderInterface {
186
  return $result;
187
  }
188
  $jsonResult = json_decode($apiResult['body']);
189
-
190
 
191
  if (isset($jsonResult->error)) {
192
  $result['error'] = true;
@@ -400,7 +409,7 @@ class Youtube extends ProviderAdapter implements ProviderInterface {
400
  <div class="item" style="height: 0"></div>
401
  </div>
402
 
403
-
404
  <?php if ($totalPages > 1) : ?>
405
  <div class="ep-youtube__content__pagination <?php echo (empty($prevPageToken) && empty($nextPageToken)) ? ' hide ' : ''; ?>">
406
  <div
@@ -412,7 +421,7 @@ class Youtube extends ProviderAdapter implements ProviderInterface {
412
  <span><?php _e("Prev", "embedpress"); ?></span>
413
  </div>
414
  <div class="is_desktop_device ep-page-numbers <?php echo $totalPages > 1 ? '' : 'hide'; ?>">
415
- <?php
416
 
417
  $numOfPages = $totalPages;
418
  $renderedEllipses = false;
@@ -427,13 +436,13 @@ class Youtube extends ProviderAdapter implements ProviderInterface {
427
  $is_current = $i == (int)$currentPage? "active__current_page" : "";
428
 
429
  echo wp_kses_post("<span class='page-number $is_current' data-page='$i'>$i</span>");
430
-
431
  }
432
 
433
  //render current page number
434
  else if($i == (int)$currentPage) {
435
  //render link
436
- echo wp_kses_post('<span class="page-number active__current_page" data-page="'.$i.'">'.$i.'</span>');
437
  //reset ellipses
438
  $renderedEllipses = false;
439
  }
@@ -441,7 +450,7 @@ class Youtube extends ProviderAdapter implements ProviderInterface {
441
  //last page number
442
  else if ($i >= $numOfPages - 1) {
443
  //render link
444
- echo wp_kses_post('<span class="page-number" data-page="'.$i.'">'.$i.'</span>');
445
  }
446
 
447
  //make sure you only do this once per ellipses group
@@ -457,7 +466,7 @@ class Youtube extends ProviderAdapter implements ProviderInterface {
457
  </div>
458
 
459
  <div class="is_mobile_device ep-page-numbers <?php echo $totalPages > 1 ? '' : 'hide'; ?>">
460
- <?php
461
 
462
  $numOfPages = $totalPages;
463
  $renderedEllipses = false;
@@ -470,7 +479,7 @@ class Youtube extends ProviderAdapter implements ProviderInterface {
470
  //render current page number
471
  if($i == (int)$currentPage) {
472
  //render link
473
- echo wp_kses_post('<span class="page-number-mobile" data-page="'.$i.'">'.$i.'</span>');
474
  //reset ellipses
475
  $renderedEllipses = false;
476
  }
@@ -478,13 +487,13 @@ class Youtube extends ProviderAdapter implements ProviderInterface {
478
  //last page number
479
  else if ($i >= $numOfPages ) {
480
  //render link
481
- echo wp_kses_post('...<span class="page-number-mobile" data-page="'.$i.'">'.$i.'</span>');
482
  }
483
  }
484
  ?>
485
 
486
  </div>
487
-
488
 
489
  <div
490
  class="ep-next " <?php echo empty($nextPageToken) ? ' style="display:none" ' : ''; ?>
@@ -585,13 +594,13 @@ class Youtube extends ProviderAdapter implements ProviderInterface {
585
  // public static $num = 0;
586
 
587
 
588
-
589
  public static $x = 0;
590
 
591
  public static function styles($params, $url){
592
-
593
  $uniqid = '.ose-youtube.ose-uid-'.md5($url);
594
-
595
  ob_start();
596
  ?>
597
  <style>
@@ -761,7 +770,7 @@ class Youtube extends ProviderAdapter implements ProviderInterface {
761
  .is_mobile_device{
762
  display: none!important;
763
  }
764
-
765
 
766
  .is_mobile_devic.ep-page-numbers {
767
  gap: 5px;
@@ -789,7 +798,7 @@ class Youtube extends ProviderAdapter implements ProviderInterface {
789
  $attributes_data = $params;
790
 
791
  $is_pagination = 'flex';
792
-
793
  $gap = '30';
794
  $columns = '';
795
 
@@ -802,30 +811,26 @@ class Youtube extends ProviderAdapter implements ProviderInterface {
802
  if(isset($attributes_data['columns'])){
803
  $columns = $attributes_data['columns'];
804
  }
805
-
806
 
807
 
808
  if(!empty($columns) && (int) $columns > 0){
809
  $repeatCol = 'repeat(auto-fit, minmax('.esc_html('calc('.(100 / (int) $columns).'% - '.$gap.'px)').', 1fr))';
810
  }
811
  else{
812
- $repeatCol = 'repeat(auto-fit, minmax(250px, 1fr))';
813
  }
814
 
815
  ?>
816
  <?php echo esc_attr($uniqid); ?> .ep-youtube__content__block .youtube__content__body .content__wrap {
817
  gap: <?php echo esc_html($gap); ?>px !important;
818
  margin-top: <?php echo esc_html($gap); ?>px !important;
 
819
  }
820
  <?php echo esc_attr($uniqid); ?> .ep-youtube__content__block .ep-youtube__content__pagination {
821
  display: <?php echo esc_html($is_pagination); ?>!important;
822
  }
823
- <?php echo esc_attr($uniqid); ?> .ep-youtube__content__block .youtube__content__body .content__wrap {
824
- grid-template-columns: <?php echo $repeatCol; ?>;
825
- gap: <?php echo $gap.'px'; ?>;
826
- }
827
 
828
- <?php
829
  if($is_pagination){
830
  echo esc_attr($uniqid) ?> {
831
  height: 100%!important;
48
 
49
  /** inline {@inheritdoc} */
50
  public function validateUrl(Url $url) {
51
+ return (bool) (preg_match('~\/channel\/|\/c\/|\/user\/|\/@\w+|(?:https?:\/\/)?(?:www\.)?(?:youtube.com\/)(\w+)[^?\/]*$~i', (string) $url));
52
  }
53
 
54
  /** inline {@inheritdoc} */
78
  ];
79
  }
80
  }
81
+ if(empty($matches[1])){
82
+ preg_match('~\/(@)(\w+)~i', (string) $url, $matches);
83
+ if(!empty($matches[1])){
84
+ return [
85
+ "type" => 'user',
86
+ "id" => $matches[2],
87
+ ];
88
+ }
89
+ }
90
  return [
91
  "type" => isset($matches[1]) ? $matches[1] : '',
92
  "id" => isset($matches[2]) ? $matches[2] : '',
139
  * @param array $params Parameters for the query string
140
  * @return string
141
  */
142
+
143
  protected function constructUrl($endpoint, array $params = array())
144
  {
145
  $endpoint = self::$channel_endpoint . $endpoint;
146
+
147
  return $endpoint . ((strpos($endpoint, '?') === false) ? '?' : '&') . http_build_query(array_filter($params));
148
  }
149
 
172
  $transient_key = 'ep_embed_youtube_channel_playlist_id_' . md5($channel_url);
173
  $jsonResult = get_transient($transient_key);
174
 
175
+ if(!empty($jsonResult)){
176
  return $jsonResult;
177
  }
178
 
195
  return $result;
196
  }
197
  $jsonResult = json_decode($apiResult['body']);
198
+
199
 
200
  if (isset($jsonResult->error)) {
201
  $result['error'] = true;
409
  <div class="item" style="height: 0"></div>
410
  </div>
411
 
412
+
413
  <?php if ($totalPages > 1) : ?>
414
  <div class="ep-youtube__content__pagination <?php echo (empty($prevPageToken) && empty($nextPageToken)) ? ' hide ' : ''; ?>">
415
  <div
421
  <span><?php _e("Prev", "embedpress"); ?></span>
422
  </div>
423
  <div class="is_desktop_device ep-page-numbers <?php echo $totalPages > 1 ? '' : 'hide'; ?>">
424
+ <?php
425
 
426
  $numOfPages = $totalPages;
427
  $renderedEllipses = false;
436
  $is_current = $i == (int)$currentPage? "active__current_page" : "";
437
 
438
  echo wp_kses_post("<span class='page-number $is_current' data-page='$i'>$i</span>");
439
+
440
  }
441
 
442
  //render current page number
443
  else if($i == (int)$currentPage) {
444
  //render link
445
+ echo wp_kses_post('<span class="page-number active__current_page" data-page="'.$i.'">'.$i.'</span>');
446
  //reset ellipses
447
  $renderedEllipses = false;
448
  }
450
  //last page number
451
  else if ($i >= $numOfPages - 1) {
452
  //render link
453
+ echo wp_kses_post('<span class="page-number" data-page="'.$i.'">'.$i.'</span>');
454
  }
455
 
456
  //make sure you only do this once per ellipses group
466
  </div>
467
 
468
  <div class="is_mobile_device ep-page-numbers <?php echo $totalPages > 1 ? '' : 'hide'; ?>">
469
+ <?php
470
 
471
  $numOfPages = $totalPages;
472
  $renderedEllipses = false;
479
  //render current page number
480
  if($i == (int)$currentPage) {
481
  //render link
482
+ echo wp_kses_post('<span class="page-number-mobile" data-page="'.$i.'">'.$i.'</span>');
483
  //reset ellipses
484
  $renderedEllipses = false;
485
  }
487
  //last page number
488
  else if ($i >= $numOfPages ) {
489
  //render link
490
+ echo wp_kses_post('...<span class="page-number-mobile" data-page="'.$i.'">'.$i.'</span>');
491
  }
492
  }
493
  ?>
494
 
495
  </div>
496
+
497
 
498
  <div
499
  class="ep-next " <?php echo empty($nextPageToken) ? ' style="display:none" ' : ''; ?>
594
  // public static $num = 0;
595
 
596
 
597
+
598
  public static $x = 0;
599
 
600
  public static function styles($params, $url){
601
+
602
  $uniqid = '.ose-youtube.ose-uid-'.md5($url);
603
+
604
  ob_start();
605
  ?>
606
  <style>
770
  .is_mobile_device{
771
  display: none!important;
772
  }
773
+
774
 
775
  .is_mobile_devic.ep-page-numbers {
776
  gap: 5px;
798
  $attributes_data = $params;
799
 
800
  $is_pagination = 'flex';
801
+
802
  $gap = '30';
803
  $columns = '';
804
 
811
  if(isset($attributes_data['columns'])){
812
  $columns = $attributes_data['columns'];
813
  }
 
814
 
815
 
816
  if(!empty($columns) && (int) $columns > 0){
817
  $repeatCol = 'repeat(auto-fit, minmax('.esc_html('calc('.(100 / (int) $columns).'% - '.$gap.'px)').', 1fr))';
818
  }
819
  else{
820
+ $repeatCol = 'repeat(auto-fit, minmax(calc(250px - '.$gap.'px), 1fr))';
821
  }
822
 
823
  ?>
824
  <?php echo esc_attr($uniqid); ?> .ep-youtube__content__block .youtube__content__body .content__wrap {
825
  gap: <?php echo esc_html($gap); ?>px !important;
826
  margin-top: <?php echo esc_html($gap); ?>px !important;
827
+ grid-template-columns: <?php echo $repeatCol; ?>;
828
  }
829
  <?php echo esc_attr($uniqid); ?> .ep-youtube__content__block .ep-youtube__content__pagination {
830
  display: <?php echo esc_html($is_pagination); ?>!important;
831
  }
 
 
 
 
832
 
833
+ <?php
834
  if($is_pagination){
835
  echo esc_attr($uniqid) ?> {
836
  height: 100%!important;
EmbedPress/Shortcode.php CHANGED
@@ -30,7 +30,7 @@ class Shortcode
30
  *
31
  * @var WP_oEmbed $oEmbedInstance
32
  */
33
-
34
 
35
  public static $y = 0;
36
 
@@ -77,7 +77,7 @@ class Shortcode
77
  add_shortcode('embed_oembed_html', ['\\EmbedPress\\Shortcode', 'do_shortcode']);
78
  add_shortcode('embedpress', ['\\EmbedPress\\Shortcode', 'do_shortcode']);
79
  add_shortcode('embedpress_pdf', ['\\EmbedPress\\Shortcode', 'do_shortcode_pdf']);
80
-
81
  }
82
 
83
  /**
@@ -535,7 +535,13 @@ KAMAL;
535
 
536
  $attrName = str_replace($attrNameDefaultPrefix, "", $attrName);
537
 
538
- if (!strlen($attrValue)) {
 
 
 
 
 
 
539
  if ($attrName[0] === "!") {
540
  $attrValue = "false";
541
  $attrName = substr($attrName, 1);
@@ -885,15 +891,42 @@ KAMAL;
885
  return $embed;
886
  }
887
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
888
  public static function do_shortcode_pdf($attributes = [], $subject = null)
889
  {
890
  $plgSettings = Core::getSettings();
891
 
 
892
  $default = [
893
  'width' => $plgSettings->enableEmbedResizeWidth,
894
  'height' => $plgSettings->enableEmbedResizeHeight,
895
  'powered_by' => 'no',
 
 
 
 
 
 
 
 
 
896
  ];
 
897
  $attributes = wp_parse_args($attributes, $default);
898
 
899
  $url = preg_replace(
@@ -911,7 +944,7 @@ KAMAL;
911
  <?php if ($url != '') {
912
  if (self::is_pdf($url) && !self::is_external_url($url)) {
913
  $renderer = Helper::get_pdf_renderer();
914
- $src = $renderer . ((strpos($renderer, '?') == false) ? '?' : '&') . 'file=' . $url;
915
  ?>
916
  <iframe style="<?php echo esc_attr($dimension); ?>; max-width:100%; display: inline-block" data-emsrc="<?php echo esc_attr($url); ?>" data-emid="<?php echo esc_attr($id); ?>" class="embedpress-embed-document-pdf <?php echo esc_attr($id); ?>" src="<?php echo esc_attr($src); ?>" frameborder="0"></iframe>
917
  <?php
30
  *
31
  * @var WP_oEmbed $oEmbedInstance
32
  */
33
+
34
 
35
  public static $y = 0;
36
 
77
  add_shortcode('embed_oembed_html', ['\\EmbedPress\\Shortcode', 'do_shortcode']);
78
  add_shortcode('embedpress', ['\\EmbedPress\\Shortcode', 'do_shortcode']);
79
  add_shortcode('embedpress_pdf', ['\\EmbedPress\\Shortcode', 'do_shortcode_pdf']);
80
+
81
  }
82
 
83
  /**
535
 
536
  $attrName = str_replace($attrNameDefaultPrefix, "", $attrName);
537
 
538
+ if(is_bool($attrValue)){
539
+ if($attrValue)
540
+ $attrValue = "true";
541
+ else
542
+ $attrValue = "false";
543
+ }
544
+ else if (!strlen($attrValue)) {
545
  if ($attrName[0] === "!") {
546
  $attrValue = "false";
547
  $attrName = substr($attrName, 1);
891
  return $embed;
892
  }
893
 
894
+ public static function getParamData($attributes){
895
+
896
+ $urlParamData = array(
897
+ 'themeMode' => isset($attributes['theme_mode']) ? $attributes['theme_mode'] : 'default',
898
+ 'toolbar' => isset($attributes['toolbar']) ? $attributes['toolbar'] : 'true',
899
+ 'position' => isset($attributes['toolbar_position']) ? $attributes['toolbar_position'] : 'top',
900
+ 'presentation' => isset($attributes['presentation']) ? $attributes['presentation'] : 'true',
901
+ 'download' => isset($attributes['download']) ? $attributes['download'] : 'true',
902
+ 'copy_text' => isset($attributes['copy_text']) ? $attributes['copy_text'] : 'true',
903
+ 'doc_rotation' => isset($attributes['doc_rotation']) ? $attributes['doc_rotation'] : 'true',
904
+ 'doc_details' => isset($attributes['doc_details']) ? $attributes['doc_details'] : 'true',
905
+ );
906
+
907
+ return "#". http_build_query($urlParamData);
908
+ }
909
+
910
  public static function do_shortcode_pdf($attributes = [], $subject = null)
911
  {
912
  $plgSettings = Core::getSettings();
913
 
914
+
915
  $default = [
916
  'width' => $plgSettings->enableEmbedResizeWidth,
917
  'height' => $plgSettings->enableEmbedResizeHeight,
918
  'powered_by' => 'no',
919
+ // 'themeMode' => 'default',
920
+ // 'toolbar' => true,
921
+ // 'presentation' => true,
922
+ // 'toolbar_position' => 'top',
923
+ // 'download' => true,
924
+ // 'open' => true,
925
+ // 'copy_text' => true,
926
+ // 'doc_details' => true,
927
+ // 'doc_rotation' => true,
928
  ];
929
+
930
  $attributes = wp_parse_args($attributes, $default);
931
 
932
  $url = preg_replace(
944
  <?php if ($url != '') {
945
  if (self::is_pdf($url) && !self::is_external_url($url)) {
946
  $renderer = Helper::get_pdf_renderer();
947
+ $src = $renderer . ((strpos($renderer, '?') == false) ? '?' : '&') . 'file=' . $url.self::getParamData($attributes);
948
  ?>
949
  <iframe style="<?php echo esc_attr($dimension); ?>; max-width:100%; display: inline-block" data-emsrc="<?php echo esc_attr($url); ?>" data-emid="<?php echo esc_attr($id); ?>" class="embedpress-embed-document-pdf <?php echo esc_attr($id); ?>" src="<?php echo esc_attr($src); ?>" frameborder="0"></iframe>
950
  <?php
Gutenberg/dist/blocks.build.js CHANGED
@@ -1 +1 @@
1
- !function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=8)}([function(e,t,n){"use strict";n.d(t,"e",function(){return a}),n.d(t,"j",function(){return s}),n.d(t,"i",function(){return c}),n.d(t,"g",function(){return p}),n.d(t,"f",function(){return u}),n.d(t,"h",function(){return m}),n.d(t,"k",function(){return d}),n.d(t,"l",function(){return f}),n.d(t,"m",function(){return h}),n.d(t,"b",function(){return b}),n.d(t,"d",function(){return w}),n.d(t,"c",function(){return y}),n.d(t,"a",function(){return g});var r=wp.components,o=r.G,l=r.Path,i=(r.Polygon,r.SVG),a=wp.element.createElement(i,{xmlns:"http://www.w3.org/1999/xlink",viewBox:"0 0 48 48"}," ",wp.element.createElement(o,null,wp.element.createElement(l,{style:{fill:"#2196F3"},d:"M 37 45 L 11 45 C 9.34375 45 8 43.65625 8 42 L 8 6 C 8 4.34375 9.34375 3 11 3 L 30 3 L 40 13 L 40 42 C 40 43.65625 38.65625 45 37 45 Z "}),wp.element.createElement(l,{style:{fill:"#BBDEFB"},d:"M 40 13 L 30 13 L 30 3 Z "}),wp.element.createElement(l,{style:{fill:"#1565C0"},d:"M 30 13 L 40 23 L 40 13 Z "}),wp.element.createElement(l,{style:{fill:"#E3F2FD"},d:"M 15 23 L 33 23 L 33 25 L 15 25 Z "}),wp.element.createElement(l,{style:{fill:"#E3F2FD"},d:"M 15 27 L 33 27 L 33 29 L 15 29 Z "}),wp.element.createElement(l,{style:{fill:"#E3F2FD"},d:"M 15 31 L 33 31 L 33 33 L 15 33 Z "}),wp.element.createElement(l,{style:{fill:"#E3F2FD"},d:"M 15 35 L 25 35 L 25 37 L 15 37 Z "}))),s=wp.element.createElement(i,{xmlns:"http://www.w3.org/1999/xlink",enableBackground:"new 0 0 24 24",id:"Layer_2",version:"1.1",viewBox:"0 0 24 24"},wp.element.createElement(o,null,wp.element.createElement(l,{d:"M21,6l-6-6H5C3.8954306,0,3,0.8954305,3,2v20c0,1.1045704,0.8954306,2,2,2h14c1.1045704,0,2-0.8954296,2-2 V6z",style:{fill:"#FFC720"}}),wp.element.createElement(l,{d:"M17,6c-0.5444336,0-1.0367432-0.2190552-1.3973999-0.5719604L21,10.8254395V6H17z",style:{fill:"url(#SVGID_1_)"}}),wp.element.createElement(l,{d:"M19,23.75H5c-1.1045532,0-2-0.8954468-2-2V22c0,1.1045532,0.8954468,2,2,2h14c1.1045532,0,2-0.8954468,2-2 v-0.25C21,22.8545532,20.1045532,23.75,19,23.75z",style:{opacity:"0.1"}}),wp.element.createElement(l,{d:"M15,0v4c0,1.1045694,0.8954306,2,2,2h4L15,0z",style:{fill:"#FFE083"}}),wp.element.createElement(l,{d:"M17,5.75c-1.1045532,0-2-0.8954468-2-2V4c0,1.1045532,0.8954468,2,2,2h4l-0.25-0.25H17z",style:{opacity:"0.1"}}),wp.element.createElement(l,{d:"M15,0H5C3.8954468,0,3,0.8953857,3,2v0.25c0-1.1046143,0.8954468-2,2-2h10",style:{fill:"#FFFFFF",opacity:"0.2"}}),wp.element.createElement(l,{d:"M15.5,9h-7C7.6728516,9,7,9.6728516,7,10.5v6C7,17.3271484,7.6728516,18,8.5,18h7 c0.8271484,0,1.5-0.6728516,1.5-1.5v-6C17,9.6728516,16.3271484,9,15.5,9z M8,15.5V11h8v4.5H8z",style:{fill:"#FFFFFF"}}),wp.element.createElement(l,{d:"M21,6l-6-6H5C3.8954306,0,3,0.8954305,3,2v20c0,1.1045704,0.8954306,2,2,2h14 c1.1045704,0,2-0.8954296,2-2V6z",style:{fill:"url(#SVGID_2_)"}}))),c=wp.element.createElement(i,{xmlns:"http://www.w3.org/1999/xlink",viewBox:"0 0 48 48",version:"1.1"},wp.element.createElement(o,null,wp.element.createElement(l,{style:{fill:"#43A047"},d:"M 37 45 L 11 45 C 9.34375 45 8 43.65625 8 42 L 8 6 C 8 4.34375 9.34375 3 11 3 L 30 3 L 40 13 L 40 42 C 40 43.65625 38.65625 45 37 45 Z "}),wp.element.createElement(l,{style:{fill:"#C8E6C9"},d:"M 40 13 L 30 13 L 30 3 Z "}),wp.element.createElement(l,{style:{fill:"#2E7D32"},d:"M 30 13 L 40 23 L 40 13 Z "}),wp.element.createElement(l,{style:{fill:"#E8F5E9"},d:"M 31 23 L 15 23 L 15 37 L 33 37 L 33 23 Z M 17 25 L 21 25 L 21 27 L 17 27 Z M 17 29 L 21 29 L 21 31 L 17 31 Z M 17 33 L 21 33 L 21 35 L 17 35 Z M 31 35 L 23 35 L 23 33 L 31 33 Z M 31 31 L 23 31 L 23 29 L 31 29 Z M 31 27 L 23 27 L 23 25 L 31 25 Z "}))),p=wp.element.createElement(i,{xmlns:"http://www.w3.org/1999/xlink",viewBox:"0 0 48 48",version:"1.1"}," ",wp.element.createElement(o,null,wp.element.createElement(l,{style:{fill:"#7850C1"},d:"M 37 45 L 11 45 C 9.34375 45 8 43.65625 8 42 L 8 6 C 8 4.34375 9.34375 3 11 3 L 30 3 L 40 13 L 40 42 C 40 43.65625 38.65625 45 37 45 Z "}),wp.element.createElement(l,{style:{fill:"#C2ABE1"},d:"M 40 13 L 30 13 L 30 3 Z "}),wp.element.createElement(l,{style:{fill:"#2E7D32"},d:"M 30 13 L 40 23 L 40 13 Z "}),wp.element.createElement(l,{style:{fill:"#E8F5E9"},d:"M 19 23 L 33 23 L 33 25 L 19 25 Z "}),wp.element.createElement(l,{style:{fill:"#E8F5E9"},d:"M 19 28 L 33 28 L 33 30 L 19 30 Z "}),wp.element.createElement(l,{style:{fill:"#E8F5E9"},d:"M 19 33 L 33 33 L 33 35 L 19 35 Z "}),wp.element.createElement(l,{style:{fill:"#E8F5E9"},d:"M 15 23 L 17 23 L 17 25 L 15 25 Z "}),wp.element.createElement(l,{style:{fill:"#E8F5E9"},d:"M 15 28 L 17 28 L 17 30 L 15 30 Z "}),wp.element.createElement(l,{style:{fill:"#E8F5E9"},d:"M 15 33 L 17 33 L 17 35 L 15 35 Z "}))),u=wp.element.createElement(i,{xmlns:"http://www.w3.org/1999/xlink",viewBox:"0 0 48 48",version:"1.1"}," ",wp.element.createElement(o,null,wp.element.createElement(l,{style:{fill:"#DE5245"},d:"M37,45H11c-1.7,0-3-1.3-3-3V6c0-1.7,1.3-3,3-3h19l10,10v29C40,43.7,38.7,45,37,45z"}),wp.element.createElement(l,{style:{fill:"#EEA6A0"},d:"M40,13H30V3L40,13z"}),wp.element.createElement(l,{style:{fill:"#B3433A"},d:"M30,13l10,10V13H30z"}),wp.element.createElement(l,{style:{fill:"#FFFFFF"},d:"M20.5,32c-3,0-5.5-2.5-5.5-5.5c0-3,2.5-5.5,5.5-5.5s5.5,2.5,5.5,5.5C26,29.5,23.5,32,20.5,32z M20.5,23c-1.9,0-3.5,1.6-3.5,3.5s1.6,3.5,3.5,3.5s3.5-1.6,3.5-3.5S22.4,23,20.5,23z"}),wp.element.createElement(l,{style:{fill:"#FFFFFF"},d:"M27.6,29c-0.6,1.8-1.9,3.3-3.6,4.1V38h9v-9H27.6z"}))),m=wp.element.createElement(i,{xmlns:"http://www.w3.org/1999/xlink",viewBox:"0 0 48 48",version:"1.1"}," ",wp.element.createElement(o,null,wp.element.createElement(l,{style:{fill:"#1C9957"},d:"M 42 39 L 42 9 C 42 7.34375 40.65625 6 39 6 L 9 6 C 7.34375 6 6 7.34375 6 9 L 6 39 C 6 40.65625 7.34375 42 9 42 L 39 42 C 40.65625 42 42 40.65625 42 39 Z "}),wp.element.createElement(l,{style:{fill:"#3E7BF1"},d:"M 9 42 L 39 42 C 40.65625 42 24 26 24 26 C 24 26 7.34375 42 9 42 Z "}),wp.element.createElement(l,{style:{fill:"#CBCCC9"},d:"M 42 39 L 42 9 C 42 7.34375 26 24 26 24 C 26 24 42 40.65625 42 39 Z "}),wp.element.createElement(l,{style:{fill:"#EFEFEF"},d:"M 39 42 C 40.65625 42 42 40.65625 42 39 L 42 38.753906 L 26.246094 23 L 23 26.246094 L 38.753906 42 Z "}),wp.element.createElement(l,{style:{fill:"#FFD73D"},d:"M 42 9 C 42 7.34375 40.65625 6 39 6 L 38.753906 6 L 6 38.753906 L 6 39 C 6 40.65625 7.34375 42 9 42 L 9.246094 42 L 42 9.246094 Z "}),wp.element.createElement(l,{style:{fill:"#D73F35"},d:"M 36 2 C 30.476563 2 26 6.476563 26 12 C 26 18.8125 33.664063 21.296875 35.332031 31.851563 C 35.441406 32.53125 35.449219 33 36 33 C 36.550781 33 36.558594 32.53125 36.667969 31.851563 C 38.335938 21.296875 46 18.8125 46 12 C 46 6.476563 41.523438 2 36 2 Z "}),wp.element.createElement(l,{style:{fill:"#752622"},d:"M 39.5 12 C 39.5 13.933594 37.933594 15.5 36 15.5 C 34.066406 15.5 32.5 13.933594 32.5 12 C 32.5 10.066406 34.066406 8.5 36 8.5 C 37.933594 8.5 39.5 10.066406 39.5 12 Z "}),wp.element.createElement(l,{style:{fill:"#FFFFFF"},d:"M 14.492188 12.53125 L 14.492188 14.632813 L 17.488281 14.632813 C 17.09375 15.90625 16.03125 16.816406 14.492188 16.816406 C 12.660156 16.816406 11.175781 15.332031 11.175781 13.5 C 11.175781 11.664063 12.660156 10.179688 14.492188 10.179688 C 15.316406 10.179688 16.070313 10.484375 16.648438 10.980469 L 18.195313 9.433594 C 17.21875 8.542969 15.921875 8 14.492188 8 C 11.453125 8 8.992188 10.464844 8.992188 13.5 C 8.992188 16.535156 11.453125 19 14.492188 19 C 19.304688 19 20.128906 14.683594 19.675781 12.539063 Z "}))),d=wp.element.createElement(i,{xmlns:"http://www.w3.org/1999/xlink",viewBox:"0 0 48 48",version:"1.1"}," ",wp.element.createElement(o,null,wp.element.createElement(l,{style:{fill:"#FFFFFF"},d:"M 12 32 L 12 8 L 39 8 L 39 26 L 33 32 L 24 32 L 18 38 L 18 32 Z "}),wp.element.createElement(l,{style:{fill:"#8E24AA"},d:"M 9 5 L 6 12.121094 L 6 38 L 15 38 L 15 43 L 20 43 L 25 38 L 32 38 L 42 28 L 42 5 Z M 38 26 L 33 31 L 24 31 L 19 36 L 19 31 L 13 31 L 13 9 L 38 9 Z "}),wp.element.createElement(l,{style:{fill:"#8E24AA"},d:"M 32 25 L 27 25 L 27 15 L 32 15 Z "}),wp.element.createElement(l,{style:{fill:"#8E24AA"},d:"M 24 25 L 19 25 L 19 15 L 24 15 Z "}))),f=wp.element.createElement(i,{xmlns:"http://www.w3.org/1999/xlink",viewBox:"0 0 769 598",version:"1.1"}," ",wp.element.createElement(o,null,wp.element.createElement(l,{style:{fill:"#148ee0"},d:"M766.89,229.17c0,0 -17.78,35.38 -106.5,91.3c-37.82,23.79 -116.36,49.1 -217.33,58.86c-54.52,5.29 -154.9,0.99 -197.96,0.99c-43.29,0 -63.13,9.12 -101.95,52.84c-143.15,161.36 -143.15,161.36 -143.15,161.36c0,0 49.57,0.24 87.01,0.24c37.43,0 271.55,13.59 375.43,-14.98c337.36,-92.72 304.46,-350.62 304.46,-350.62z"}),wp.element.createElement(l,{style:{fill:"#54bbff"},d:"M757.84,126.66c16.23,-98.97 -39.68,-126.16 -39.68,-126.16c0,0 2.36,80.57 -145.7,97.65c-131.42,15.16 -572.46,3.74 -572.46,3.74c0,0 0,0 141.74,162.54c38.39,44.06 58.76,49.17 101.92,52.22c43.16,2.89 138.42,1.86 202.99,-3.05c70.58,-5.41 171.17,-28.43 239.19,-81.11c34.88,-26.98 65.21,-64.48 72,-105.83z"}))),h=wp.element.createElement(i,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",role:"img","aria-hidden":"true",focusable:"false"},wp.element.createElement(l,{d:"M21.8 8s-.195-1.377-.795-1.984c-.76-.797-1.613-.8-2.004-.847-2.798-.203-6.996-.203-6.996-.203h-.01s-4.197 0-6.996.202c-.39.046-1.242.05-2.003.846C2.395 6.623 2.2 8 2.2 8S2 9.62 2 11.24v1.517c0 1.618.2 3.237.2 3.237s.195 1.378.795 1.985c.76.797 1.76.77 2.205.855 1.6.153 6.8.2 6.8.2s4.203-.005 7-.208c.392-.047 1.244-.05 2.005-.847.6-.607.795-1.985.795-1.985s.2-1.618.2-3.237v-1.517C22 9.62 21.8 8 21.8 8zM9.935 14.595v-5.62l5.403 2.82-5.403 2.8z"})),b=(wp.element.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 56 23"},wp.element.createElement("g",null,wp.element.createElement("g",null,wp.element.createElement("path",{style:{fill:"#DA2B28"},className:"st0",d:"M55.4,3.7c-0.2-0.9-0.6-1.6-1.3-2.2c-0.7-0.6-1.4-0.9-2.3-1c-2.7-0.3-6.8-0.4-12.3-0.4 c-5.5,0-9.6,0.1-12.3,0.4c-0.9,0.1-1.6,0.5-2.3,1c-0.7,0.6-1.1,1.3-1.3,2.2c-0.4,1.7-0.6,4.3-0.6,7.8c0,3.5,0.2,6.1,0.6,7.8 c0.2,0.9,0.6,1.6,1.3,2.2c0.7,0.6,1.4,0.9,2.3,1c2.7,0.3,6.8,0.5,12.3,0.5c5.5,0,9.6-0.2,12.3-0.5c0.9-0.1,1.6-0.4,2.3-1 c0.7-0.6,1.1-1.3,1.3-2.2c0.4-1.7,0.6-4.3,0.6-7.8C56,8,55.8,5.4,55.4,3.7L55.4,3.7z M32.5,6h-2.4v12.6h-2.2V6h-2.3V3.9h6.9V6z M38.5,18.6h-2v-1.2c-0.8,0.9-1.6,1.4-2.3,1.4c-0.7,0-1.1-0.3-1.3-0.8c-0.1-0.4-0.2-0.9-0.2-1.6V7.6h2v8.1c0,0.5,0,0.7,0,0.8 c0,0.3,0.2,0.5,0.5,0.5c0.4,0,0.8-0.3,1.3-0.9V7.6h2V18.6z M46.1,15.3c0,1.1-0.1,1.8-0.2,2.2c-0.3,0.8-0.8,1.2-1.6,1.2 c-0.7,0-1.4-0.4-2.1-1.2v1.1h-2V3.9h2v4.8c0.6-0.8,1.3-1.2,2.1-1.2c0.8,0,1.3,0.4,1.6,1.2c0.1,0.4,0.2,1.1,0.2,2.2V15.3z M53.5,13.5h-4v1.9c0,1,0.3,1.5,1,1.5c0.5,0,0.8-0.3,0.9-0.8c0-0.1,0-0.6,0-1.4h2v0.3c0,0.7,0,1.2,0,1.3c0,0.4-0.2,0.8-0.5,1.2 c-0.5,0.8-1.3,1.2-2.4,1.2c-1,0-1.8-0.4-2.4-1.1c-0.4-0.5-0.6-1.4-0.6-2.6v-3.8c0-1.2,0.2-2,0.6-2.6c0.6-0.8,1.4-1.1,2.4-1.1 c1,0,1.8,0.4,2.3,1.1c0.4,0.5,0.6,1.4,0.6,2.6V13.5z M53.5,13.5"}),wp.element.createElement("path",{className:"st0",d:"M43.2,9.3c-0.3,0-0.7,0.2-1,0.5v6.7c0.3,0.3,0.7,0.5,1,0.5c0.6,0,0.9-0.5,0.9-1.5v-4.7 C44.1,9.8,43.8,9.3,43.2,9.3L43.2,9.3z M43.2,9.3"}),wp.element.createElement("path",{className:"st0",d:"M50.6,9.3c-0.7,0-1,0.5-1,1.5v1h2v-1C51.6,9.8,51.2,9.3,50.6,9.3L50.6,9.3z M50.6,9.3"})),wp.element.createElement("g",null,wp.element.createElement("path",{d:"M2.8,12.8v6h2.2v-6L7.7,4H5.5L4,9.8L2.4,4H0.1c0.4,1.2,0.9,2.6,1.4,4.1C2.2,10.2,2.6,11.7,2.8,12.8L2.8,12.8z M2.8,12.8"}),wp.element.createElement("path",{d:"M10.7,19c1,0,1.8-0.4,2.3-1.1c0.4-0.5,0.6-1.4,0.6-2.6v-3.9c0-1.2-0.2-2-0.6-2.6c-0.5-0.8-1.3-1.1-2.3-1.1 c-1,0-1.8,0.4-2.3,1.1C8,9.3,7.8,10.2,7.8,11.4v3.9c0,1.2,0.2,2.1,0.6,2.6C8.9,18.6,9.7,19,10.7,19L10.7,19z M9.8,11 c0-1,0.3-1.5,1-1.5c0.6,0,1,0.5,1,1.5v4.7c0,1-0.3,1.6-1,1.6c-0.6,0-1-0.5-1-1.6V11z M9.8,11"}),wp.element.createElement("path",{d:"M16.8,19c0.7,0,1.5-0.5,2.3-1.4v1.2h2V7.8h-2v8.4c-0.4,0.6-0.9,1-1.3,1c-0.3,0-0.4-0.2-0.5-0.5c0,0,0-0.3,0-0.8V7.8h-2 v8.7c0,0.8,0.1,1.3,0.2,1.7C15.7,18.7,16.1,19,16.8,19L16.8,19z M16.8,19"})))),wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 276 340"},wp.element.createElement("path",{d:"M196.7.6H24.3C11.1.6.4 11.3.4 24.6v292.9c0 12.3 10 22.2 22.2 22.2H252c13.3 0 23.9-10.7 23.9-23.9V80.9L196.7.6z",fill:"#e94848"}),wp.element.createElement("path",{d:"M196.7 57c0 13.3 10.7 23.9 23.9 23.9H276L196.7.6V57z",fill:"#f19191"}),wp.element.createElement("linearGradient",{id:"A",gradientUnits:"userSpaceOnUse",x1:"44.744",y1:"77.111",x2:"116.568",y2:"77.111"},wp.element.createElement("stop",{offset:"0",stopColor:"#fff"}),wp.element.createElement("stop",{offset:"1",stopColor:"#fff0f0"})),wp.element.createElement("path",{d:"M113 84.5H48.3c-1.9 0-3.5-1.6-3.5-3.5v-7.7c0-1.9 1.6-3.5 3.5-3.5H113c1.9 0 3.5 1.6 3.5 3.5V81c.1 1.9-1.5 3.5-3.5 3.5z",fill:"url(#A)"}),wp.element.createElement("linearGradient",{id:"B",gradientUnits:"userSpaceOnUse",x1:"44.744",y1:"136.016",x2:"233.927",y2:"136.016"},wp.element.createElement("stop",{offset:"0",stopColor:"#fff"}),wp.element.createElement("stop",{offset:"1",stopColor:"#fff0f0"})),wp.element.createElement("use",{href:"#H",opacity:".8",fill:"url(#B)"}),wp.element.createElement("linearGradient",{id:"C",gradientUnits:"userSpaceOnUse",x1:"44.744",y1:"135.993",x2:"233.927",y2:"135.993"},wp.element.createElement("stop",{offset:"0",stopColor:"#fff"}),wp.element.createElement("stop",{offset:"1",stopColor:"#fff0f0"})),wp.element.createElement("use",{href:"#H",y:"33.6",opacity:".7",fill:"url(#C)"}),wp.element.createElement("linearGradient",{id:"D",gradientUnits:"userSpaceOnUse",x1:"44.744",y1:"135.969",x2:"233.927",y2:"135.969"},wp.element.createElement("stop",{offset:"0",stopColor:"#fff"}),wp.element.createElement("stop",{offset:"1",stopColor:"#fff0f0"})),wp.element.createElement("use",{href:"#H",y:"67.2",opacity:".6",fill:"url(#D)"}),wp.element.createElement("linearGradient",{id:"E",gradientUnits:"userSpaceOnUse",x1:"44.744",y1:"136.045",x2:"233.927",y2:"136.045"},wp.element.createElement("stop",{offset:"0",stopColor:"#fff"}),wp.element.createElement("stop",{offset:"1",stopColor:"#fff0f0"})),wp.element.createElement("use",{href:"#H",y:"100.7",opacity:".4",fill:"url(#E)"}),wp.element.createElement("linearGradient",{id:"F",gradientUnits:"userSpaceOnUse",x1:"44.744",y1:"270.322",x2:"174.778",y2:"270.322"},wp.element.createElement("stop",{offset:"0",stopColor:"#fff"}),wp.element.createElement("stop",{offset:"1",stopColor:"#fff0f0"})),wp.element.createElement("path",{d:"M171.9 277.7H47.6c-1.6 0-2.9-1.3-2.9-2.9v-9c0-1.6 1.3-2.9 2.9-2.9h124.3c1.6 0 2.9 1.3 2.9 2.9v9c0 1.6-1.3 2.9-2.9 2.9z",opacity:".3",fill:"url(#F)"}),wp.element.createElement("defs",null,wp.element.createElement("path",{id:"H",d:"M231 143.4H47.6c-1.6 0-2.9-1.3-2.9-2.9v-9c0-1.6 1.3-2.9 2.9-2.9H231c1.6 0 2.9 1.3 2.9 2.9v9c0 1.6-1.3 2.9-2.9 2.9z"})))),w=wp.element.createElement("svg",{width:"33",height:"20",version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 270 270",role:"img",focusable:"false"},wp.element.createElement("g",null,wp.element.createElement("polygon",{className:"st0",fill:"#9595C1",points:"0,0 0,52 15,52 15,15 52,15 52,0 \t"}),wp.element.createElement("polygon",{className:"st0",fill:"#9595C1",points:"255,218 255,255 218,255 218,270 270,270 270,218 \t"}),wp.element.createElement("path",{fill:"#5B4E96",d:"M260.7,68.1c-10.4-18.6-29.3-31.2-50.6-33.6c-12.4-1.4-25,0.6-36.3,6c-1.3,0.6-2.6,1.3-3.9,2 C154.5,51,143,65.3,138.3,81.7l0,0.1l-36.4,103.8c-3.1,9.4-9.1,17-17.1,21.4c-0.7,0.4-1.4,0.7-2.1,1.1c-6.1,2.9-12.8,4-19.5,3.2 c-11.5-1.3-21.6-8.1-27.2-18.1c-4.6-8.3-5.7-18-3.1-27.2c2.6-9.2,8.7-16.9,17.1-21.5c0.7-0.4,1.4-0.8,2.1-1.1 c6.1-2.9,12.7-4,19.6-3.2c0.3,0,0.5,0.1,0.8,0.1L64.9,162c-0.5,1.5,0.3,3.1,1.8,3.6l19.4,6.3c1.5,0.5,3-0.3,3.5-1.7l16.7-47.4 c0.4-1.2,0.3-2.5-0.3-3.6c-0.6-1.1-1.6-2-2.8-2.4l-17.6-5.1c-0.4-0.1-0.8-0.2-1.2-0.3l-1.6-0.5l0,0.1c-2.5-0.6-5-1.1-7.5-1.3 c-12.5-1.4-25.1,0.6-36.4,6c-1.3,0.6-2.6,1.3-3.9,2c-15.6,8.7-27,22.9-31.9,40.1c-4.9,17.1-2.8,35.1,5.8,50.5 c10.4,18.6,29.3,31.2,50.6,33.6c12.4,1.4,25-0.6,36.3-6c1.3-0.6,2.6-1.3,3.9-2c15.3-8.5,26.8-22.8,31.6-39.2l0-0.1L167.8,91 l0.1-0.2l0-0.1c4.1-10.5,9.3-17,17-21.3c0.7-0.4,1.4-0.7,2.1-1.1c6.1-2.9,12.8-4,19.5-3.2c11.5,1.3,21.6,8.1,27.2,18.1 c9.6,17.2,3.3,39.1-14,48.7c-0.7,0.4-1.4,0.7-2.1,1.1c-6.1,2.9-12.8,4-19.7,3.2c-2-0.2-4.1-0.6-6.1-1.2l-0.2-0.1l-11.3-3.4 c-1.2-0.4-2.5,0.3-2.9,1.5l-8.8,24.8c-0.5,1.3,0.3,2.7,1.6,3.1l13.9,4c3.4,0.9,6.8,1.6,10.3,2c12.4,1.4,25-0.6,36.3-6l0.1,0 c1.3-0.6,2.6-1.3,3.9-2C266.8,140.8,278.5,100.1,260.7,68.1z"}))),y=wp.element.createElement("svg",{version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 512 512"},wp.element.createElement("path",{fill:"#E2E5E7",d:"M128,0c-17.6,0-32,14.4-32,32v448c0,17.6,14.4,32,32,32h320c17.6,0,32-14.4,32-32V128L352,0H128z"}),wp.element.createElement("path",{fill:"#B0B7BD",d:"M384,128h96L352,0v96C352,113.6,366.4,128,384,128z"}),wp.element.createElement("polygon",{fill:"#CAD1D8",points:"480,224 384,128 480,128 "}),wp.element.createElement("path",{fill:"#F15642",d:"M416,416c0,8.8-7.2,16-16,16H48c-8.8,0-16-7.2-16-16V256c0-8.8,7.2-16,16-16h352c8.8,0,16,7.2,16,16 V416z"}),wp.element.createElement("g",null,wp.element.createElement("path",{fill:"#FFFFFF",d:"M101.744,303.152c0-4.224,3.328-8.832,8.688-8.832h29.552c16.64,0,31.616,11.136,31.616,32.48 c0,20.224-14.976,31.488-31.616,31.488h-21.36v16.896c0,5.632-3.584,8.816-8.192,8.816c-4.224,0-8.688-3.184-8.688-8.816V303.152z M118.624,310.432v31.872h21.36c8.576,0,15.36-7.568,15.36-15.504c0-8.944-6.784-16.368-15.36-16.368H118.624z"}),wp.element.createElement("path",{fill:"#FFFFFF",d:"M196.656,384c-4.224,0-8.832-2.304-8.832-7.92v-72.672c0-4.592,4.608-7.936,8.832-7.936h29.296 c58.464,0,57.184,88.528,1.152,88.528H196.656z M204.72,311.088V368.4h21.232c34.544,0,36.08-57.312,0-57.312H204.72z"}),wp.element.createElement("path",{fill:"#FFFFFF",d:"M303.872,312.112v20.336h32.624c4.608,0,9.216,4.608,9.216,9.072c0,4.224-4.608,7.68-9.216,7.68 h-32.624v26.864c0,4.48-3.184,7.92-7.664,7.92c-5.632,0-9.072-3.44-9.072-7.92v-72.672c0-4.592,3.456-7.936,9.072-7.936h44.912 c5.632,0,8.96,3.344,8.96,7.936c0,4.096-3.328,8.704-8.96,8.704h-37.248V312.112z"})),wp.element.createElement("path",{fill:"#CAD1D8",d:"M400,432H96v16h304c8.8,0,16-7.2,16-16v-16C416,424.8,408.8,432,400,432z"})),g=wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"186 38 76 76"},wp.element.createElement("path",{fill:"#fff",d:"M244 56h-40v40h40V56z"}),wp.element.createElement("path",{fill:"#EA4335",d:"M244 114l18-18h-18v18z"}),wp.element.createElement("path",{fill:"#FBBC04",d:"M262 56h-18v40h18V56z"}),wp.element.createElement("path",{fill:"#34A853",d:"M244 96h-40v18h40V96z"}),wp.element.createElement("path",{fill:"#188038",d:"M186 96v12c0 3.315 2.685 6 6 6h12V96h-18z"}),wp.element.createElement("path",{fill:"#1967D2",d:"M262 56V44c0-3.315-2.685-6-6-6h-12v18h18z"}),wp.element.createElement("path",{fill:"#4285F4",d:"M244 38h-52c-3.315 0 -6 2.685-6 6v52h18V56h40V38z"}),wp.element.createElement("path",{fill:"#4285F4",d:"M212.205 87.03c-1.495-1.01-2.53-2.485-3.095-4.435l3.47-1.43c.315 1.2.865 2.13 1.65 2.79.78.66 1.73.985 2.84.985 1.135 0 2.11-.345 2.925-1.035s1.225-1.57 1.225-2.635c0-1.09-.43-1.98-1.29-2.67-.86-.69-1.94-1.035-3.23-1.035h-2.005V74.13h1.8c1.11 0 2.045-.3 2.805-.9.76-.6 1.14-1.42 1.14-2.465 0 -.93-.34-1.67-1.02-2.225-.68-.555-1.54-.835-2.585-.835-1.02 0 -1.83.27-2.43.815a4.784 4.784 0 0 0 -1.31 2.005l-3.435-1.43c.455-1.29 1.29-2.43 2.515-3.415 1.225-.985 2.79-1.48 4.69-1.48 1.405 0 2.67.27 3.79.815 1.12.545 2 1.3 2.635 2.26.635.965.95 2.045.95 3.245 0 1.225-.295 2.26-.885 3.11-.59.85-1.315 1.5-2.175 1.955v.205a6.605 6.605 0 0 1 2.79 2.175c.725.975 1.09 2.14 1.09 3.5 0 1.36-.345 2.575-1.035 3.64s-1.645 1.905-2.855 2.515c-1.215.61-2.58.92-4.095.92-1.755.005-3.375-.5-4.87-1.51zM233.52 69.81l-3.81 2.755-1.905-2.89 6.835-4.93h2.62V88h-3.74V69.81z"}))},function(e,t,n){"use strict";var __=wp.i18n.__,r=wp.components.Spinner,o=function(){return wp.element.createElement("div",{className:"wp-block-embed is-loading text-center"},wp.element.createElement(r,null),wp.element.createElement("p",null,__("Embedding\u2026")))};t.a=o},function(e,t,n){"use strict";var __=wp.i18n.__,r=wp.element.Fragment,o=wp.components,l=o.Button,i=o.Toolbar,a=wp.blockEditor.BlockControls,s=function(e){var t=e.showEditButton,n=e.switchBackToURLInput;return wp.element.createElement(r,null,wp.element.createElement(a,null,wp.element.createElement(i,null,t&&wp.element.createElement(l,{className:"components-toolbar__control",label:__("Edit URL"),icon:"edit",onClick:n}))))};t.a=s},function(e,t,n){"use strict";var r=n(13),o=n.n(r),l=wp.i18n,__=l.__,_x=l._x,i=wp.components,a=i.Button,s=i.Placeholder,c=i.ExternalLink,p=wp.blockEditor.BlockIcon,u=function(e){var t=e.icon,n=e.label,r=e.value,l=e.onSubmit,i=e.onChange,u=e.cannotEmbed,m=e.docLink,d=e.DocTitle,f=o()("wp-block-embed",{});return wp.element.createElement("div",{className:"ep__components-placeholder"},wp.element.createElement(s,{icon:wp.element.createElement(p,{icon:t,showColors:!0}),label:n,className:f},wp.element.createElement("form",{onSubmit:l},wp.element.createElement("input",{type:"url",value:r||"",className:"components-placeholder__input","aria-label":n,placeholder:__("Enter URL to embed here\u2026"),onChange:i}),wp.element.createElement(a,{isSmall:!0,type:"submit"},_x("Embed","button label")),u&&wp.element.createElement("p",{className:"components-placeholder__error"},__("Sorry, we could not embed that content."),wp.element.createElement("br",null))),m&&wp.element.createElement("div",{className:"components-placeholder__learn-more"},wp.element.createElement(c,{href:m},d))))};t.a=u},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=n(6),a=n.n(i),s=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},c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),p=wp.element.Component,u=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.myRef=React.createRef(),n}return l(t,e),c(t,[{key:"componentDidMount",value:function(){a.a.findDOMNode(this.myRef.current).addEventListener("load",this.props.onLoad)}},{key:"render",value:function(){return wp.element.createElement("iframe",s({ref:this.myRef},this.props))}}]),t}(p);t.a=u},function(e,t,n){"use strict";function r(e){var t=embedpressObj.document_cta,n="",r="";if(embedpressObj.embedpress_pro&&t&&t.logo_url){var l=t.cta_url?t.cta_url:null,i=t.logo_xpos?t.logo_xpos+"%":"10%",a=t.logo_ypos?t.logo_ypos+"%":"10%",s=t.logo_opacity?t.logo_opacity/100:"10%",c=".ep-doc-"+e.id;return n="\n "+c+"{\n text-align: left;\n position: relative;\n }\n "+c+" .watermark {\n \t\tdisplay:inline-block;\n border: 0;\n position: absolute;\n bottom: "+a+";\n right: "+i+";\n max-width: 150px;\n max-height: 75px;\n opacity: "+s+";\n z-index: 5;\n -o-transition: opacity 0.5s ease-in-out;\n -moz-transition: opacity 0.5s ease-in-out;\n -webkit-transition: opacity 0.5s ease-in-out;\n transition: opacity 0.5s ease-in-out;\n }\n "+c+" .watermark:hover {\n\t\t\t\t\t opacity: 1;\n\t\t\t\t }\n\t\t",l&&""!==l&&(r+="<a href="+l+">"),r+='<img class="watermark" alt="" src="'+t.logo_url+'"/>',l&&""!==l&&(r+="</a>"),wp.element.createElement(o,null,wp.element.createElement("style",{dangerouslySetInnerHTML:{__html:n}}),wp.element.createElement("div",{dangerouslySetInnerHTML:{__html:r}}))}return""}var o=wp.element.Fragment;t.a=r},function(e,t){e.exports=ReactDOM},function(e,t){var n={utf8:{stringToBytes:function(e){return n.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(n.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t},bytesToString:function(e){for(var t=[],n=0;n<e.length;n++)t.push(String.fromCharCode(e[n]));return t.join("")}}};e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n(9),n(14),n(18),n(22),n(26),n(30),n(34),n(38),n(42),n(46),n(50),n(67),n(73);!function(){var e=wp.element.createElement("svg",{width:"33",height:"20",version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 270 270"},wp.element.createElement("g",null,wp.element.createElement("polygon",{className:"st0",fill:"#9595C1",points:"0,0 0,52 15,52 15,15 52,15 52,0 \t"}),wp.element.createElement("polygon",{className:"st0",fill:"#9595C1",points:"255,218 255,255 218,255 218,270 270,270 270,218 \t"}),wp.element.createElement("path",{fill:"#5B4E96",d:"M260.7,68.1c-10.4-18.6-29.3-31.2-50.6-33.6c-12.4-1.4-25,0.6-36.3,6c-1.3,0.6-2.6,1.3-3.9,2 C154.5,51,143,65.3,138.3,81.7l0,0.1l-36.4,103.8c-3.1,9.4-9.1,17-17.1,21.4c-0.7,0.4-1.4,0.7-2.1,1.1c-6.1,2.9-12.8,4-19.5,3.2 c-11.5-1.3-21.6-8.1-27.2-18.1c-4.6-8.3-5.7-18-3.1-27.2c2.6-9.2,8.7-16.9,17.1-21.5c0.7-0.4,1.4-0.8,2.1-1.1 c6.1-2.9,12.7-4,19.6-3.2c0.3,0,0.5,0.1,0.8,0.1L64.9,162c-0.5,1.5,0.3,3.1,1.8,3.6l19.4,6.3c1.5,0.5,3-0.3,3.5-1.7l16.7-47.4 c0.4-1.2,0.3-2.5-0.3-3.6c-0.6-1.1-1.6-2-2.8-2.4l-17.6-5.1c-0.4-0.1-0.8-0.2-1.2-0.3l-1.6-0.5l0,0.1c-2.5-0.6-5-1.1-7.5-1.3 c-12.5-1.4-25.1,0.6-36.4,6c-1.3,0.6-2.6,1.3-3.9,2c-15.6,8.7-27,22.9-31.9,40.1c-4.9,17.1-2.8,35.1,5.8,50.5 c10.4,18.6,29.3,31.2,50.6,33.6c12.4,1.4,25-0.6,36.3-6c1.3-0.6,2.6-1.3,3.9-2c15.3-8.5,26.8-22.8,31.6-39.2l0-0.1L167.8,91 l0.1-0.2l0-0.1c4.1-10.5,9.3-17,17-21.3c0.7-0.4,1.4-0.7,2.1-1.1c6.1-2.9,12.8-4,19.5-3.2c11.5,1.3,21.6,8.1,27.2,18.1 c9.6,17.2,3.3,39.1-14,48.7c-0.7,0.4-1.4,0.7-2.1,1.1c-6.1,2.9-12.8,4-19.7,3.2c-2-0.2-4.1-0.6-6.1-1.2l-0.2-0.1l-11.3-3.4 c-1.2-0.4-2.5,0.3-2.9,1.5l-8.8,24.8c-0.5,1.3,0.3,2.7,1.6,3.1l13.9,4c3.4,0.9,6.8,1.6,10.3,2c12.4,1.4,25-0.6,36.3-6l0.1,0 c1.3-0.6,2.6-1.3,3.9-2C266.8,140.8,278.5,100.1,260.7,68.1z"})));wp.blocks.updateCategory("embedpress",{icon:e})}()},function(e,t,n){"use strict";var r=n(10),o=(n.n(r),n(11)),l=(n.n(o),n(12)),i=n(0),__=wp.i18n.__,a=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks["google-docs-block"]&&a("embedpress/google-docs-block",{title:__("Google Docs"),icon:i.e,category:"embedpress",keywords:[__("embedpress"),__("google"),__("docs")],supports:{align:["wide","full","right","left"],default:""},attributes:{url:{type:"string",default:""},iframeSrc:{type:"string",default:""}},edit:l.a,save:function(e){var t=e.attributes.iframeSrc;if(t)return wp.element.createElement("figure",{className:"ose-google-docs-document"},wp.element.createElement("iframe",{src:t,frameBorder:"0",width:"600",height:"450",allowFullScreen:"true",mozallowfullscreen:"true",webkitallowfullscreen:"true"}))},deprecated:[{attributes:{align:{type:"string",enum:["left","center","right","wide","full"]}},save:function(e){var t=e.attributes.iframeSrc;if(t)return wp.element.createElement("div",{className:"ose-google-docs-document"},wp.element.createElement("iframe",{src:t,frameBorder:"0",width:"600",height:"450",allowFullScreen:"true",mozallowfullscreen:"true",webkitallowfullscreen:"true"}))}}]})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=n(2),a=n(1),s=n(3),c=n(4),p=n(0),u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),__=wp.i18n.__,m=wp.element.Component,d=function(e){function t(){r(this,t);var e=o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.switchBackToURLInput=e.switchBackToURLInput.bind(e),e.setUrl=e.setUrl.bind(e),e.updateAlignment=e.updateAlignment.bind(e),e.onLoad=e.onLoad.bind(e),e.hideOverlay=e.hideOverlay.bind(e),e.state={editingURL:!1,url:e.props.attributes.url,fetching:!0,cannotEmbed:!1,interactive:!1},e}return l(t,e),u(t,[{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"onLoad",value:function(){this.setState({fetching:!1})}},{key:"decodeHTMLEntities",value:function(e){return e&&"string"===typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,""),e=e.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,"")),e}},{key:"updateAlignment",value:function(e){var t=this.props.setAttributes,n=-1!==["wide","full"].indexOf(e)?{width:void 0,height:void 0}:{};t(Object.assign({},n,{align:e}))}},{key:"setUrl",value:function(e){e&&e.preventDefault();var t=this.state.url,n=this.props.setAttributes;if(n({url:t}),t&&t.match(/^http[s]?:\/\/((?:www\.)?docs\.google\.com(?:.*)?(?:document|presentation|spreadsheets|forms|drawings)\/[a-z0-9\/\?=_\-\.\,&%\$#\@\!\+]*)/i)){var r=this.decodeHTMLEntities(t),o=/google\.com(?:.+)?(document|presentation|spreadsheets|forms|drawings)/i,l=o.exec(r),i=l[1];i&&"document"===i?(r.match(/([?&])embedded=true/i)||(r.indexOf("?")>-1?r+="&embedded=true":r+="?embedded=true"),this.setState({editingURL:!1,cannotEmbed:!1}),n({iframeSrc:r})):this.setState({cannotEmbed:!0,editingURL:!0})}else this.setState({cannotEmbed:!0,editingURL:!0})}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"render",value:function(){var e=this,t=this.state,n=t.url,r=t.editingURL,o=t.fetching,l=t.cannotEmbed,u=t.interactive,m=this.props.attributes.iframeSrc,d=__("Google Docs URL");return!m||r?wp.element.createElement("div",null,wp.element.createElement(s.a,{label:d,onSubmit:this.setUrl,value:n,cannotEmbed:l,onChange:function(t){return e.setState({url:t.target.value})},icon:p.e,DocTitle:__("Learn more about Google doc embed"),docLink:"https://embedpress.com/docs/embed-google-docs-wordpress/"})):wp.element.createElement("div",null,o?wp.element.createElement(a.a,null):null,wp.element.createElement(c.a,{src:m,onMouseUp:this.hideOverlay,onLoad:this.onLoad,style:{display:o?"none":""},frameBorder:"0",width:"600",height:"450"}),!u&&wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}),wp.element.createElement(i.a,{showEditButton:m&&!l,switchBackToURLInput:this.switchBackToURLInput}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(m);t.a=d},function(e,t,n){var r,o;!function(){"use strict";function n(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r)){if(r.length){var i=n.apply(null,r);i&&e.push(i)}}else if("object"===o){if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]")){e.push(r.toString());continue}for(var a in r)l.call(r,a)&&r[a]&&e.push(a)}}}return e.join(" ")}var l={}.hasOwnProperty;"undefined"!==typeof e&&e.exports?(n.default=n,e.exports=n):(r=[],void 0!==(o=function(){return n}.apply(t,r))&&(e.exports=o))}()},function(e,t,n){"use strict";var r=n(15),o=(n.n(r),n(16)),l=(n.n(o),n(17)),i=n(0),__=wp.i18n.__,a=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks["google-slides-block"]&&a("embedpress/google-slides-block",{title:__("Google Slides"),icon:i.j,category:"embedpress",keywords:[__("embedpress"),__("google"),__("slides")],supports:{align:["wide","full","right","left"],default:""},attributes:{url:{type:"string",default:""},iframeSrc:{type:"string",default:""}},edit:l.a,save:function(e){var t=e.attributes.iframeSrc;return wp.element.createElement("figure",{className:"ose-google-docs-presentation"},wp.element.createElement("iframe",{src:t,frameborder:"0",width:"600",height:"450",allowfullscreen:"true",mozallowfullscreen:"true",webkitallowfullscreen:"true"}))}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=n(2),a=n(1),s=n(3),c=n(4),p=n(0),u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),__=wp.i18n.__,m=wp.element,d=m.Component,f=m.Fragment,h=function(e){function t(){r(this,t);var e=o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.switchBackToURLInput=e.switchBackToURLInput.bind(e),e.setUrl=e.setUrl.bind(e),e.onLoad=e.onLoad.bind(e),e.hideOverlay=e.hideOverlay.bind(e),e.state={editingURL:!1,url:e.props.attributes.url,fetching:!0,cannotEmbed:!1,interactive:!1},e}return l(t,e),u(t,[{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"onLoad",value:function(){this.setState({fetching:!1})}},{key:"decodeHTMLEntities",value:function(e){return e&&"string"===typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,""),e=e.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,"")),e}},{key:"setUrl",value:function(e){e&&e.preventDefault();var t=this.state.url,n=this.props.setAttributes;if(n({url:t}),t&&t.match(/^http[s]?:\/\/((?:www\.)?docs\.google\.com(?:.*)?(?:document|presentation|spreadsheets|forms|drawings)\/[a-z0-9\/\?=_\-\.\,&%\$#\@\!\+]*)/i)){var r=this.decodeHTMLEntities(t),o=/google\.com(?:.+)?(document|presentation|spreadsheets|forms|drawings)/i,l=o.exec(r),i=l[1];i&&"presentation"==i?(r.match(/pub\?/i)&&(r=r.replace("/pub?","/embed?")),this.setState({editingURL:!1,cannotEmbed:!1}),n({iframeSrc:r})):this.setState({cannotEmbed:!0,editingURL:!0})}else this.setState({cannotEmbed:!0,editingURL:!0})}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"render",value:function(){var e=this,t=this.state,n=t.url,r=t.editingURL,o=t.fetching,l=t.cannotEmbed,u=t.interactive,m=this.props.attributes.iframeSrc,d=__("Google Slides URL");return!m||r?wp.element.createElement(s.a,{label:d,onSubmit:this.setUrl,value:n,cannotEmbed:l,onChange:function(t){return e.setState({url:t.target.value})},icon:p.j,DocTitle:__("Learn more about Google slides embed"),docLink:"https://embedpress.com/docs/embed-google-slides-wordpress/"}):wp.element.createElement(f,null,o?wp.element.createElement(a.a,null):null,wp.element.createElement(c.a,{src:m,onFocus:this.hideOverlay,onLoad:this.onLoad,style:{display:o?"none":""},frameborder:"0",width:"600",height:"450"}),!u&&wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}),wp.element.createElement(i.a,{showEditButton:m&&!l,switchBackToURLInput:this.switchBackToURLInput}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(d);t.a=h},function(e,t,n){"use strict";var r=n(19),o=(n.n(r),n(20)),l=(n.n(o),n(21)),i=n(0),__=wp.i18n.__,a=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks["google-sheets-block"]&&a("embedpress/google-sheets-block",{title:__("Google Sheets"),icon:i.i,category:"embedpress",keywords:[__("embedpress"),__("google"),__("sheets")],supports:{align:["wide","full","right","left"],default:""},attributes:{url:{type:"string",default:""},iframeSrc:{type:"string",default:""}},edit:l.a,save:function(e){var t=e.attributes.iframeSrc;return wp.element.createElement("figure",{className:"ose-google-docs-spreadsheets"},wp.element.createElement("iframe",{src:t,frameborder:"0",width:"600",height:"450",allowfullscreen:"true",mozallowfullscreen:"true",webkitallowfullscreen:"true"}))},deprecated:[{attributes:{align:{type:"string",enum:["left","center","right","wide","full"]}},save:function(e){var t=e.attributes.iframeSrc;if(t)return wp.element.createElement("div",{className:"ose-google-docs-spreadsheets"},wp.element.createElement("iframe",{src:t,frameBorder:"0",width:"600",height:"450",allowFullScreen:"true",mozallowfullscreen:"true",webkitallowfullscreen:"true"}))}}]})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=n(2),a=n(1),s=n(3),c=n(4),p=n(0),u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),__=wp.i18n.__,m=wp.element,d=m.Component,f=m.Fragment,h=function(e){function t(){r(this,t);var e=o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.switchBackToURLInput=e.switchBackToURLInput.bind(e),e.setUrl=e.setUrl.bind(e),e.onLoad=e.onLoad.bind(e),e.hideOverlay=e.hideOverlay.bind(e),e.state={editingURL:!1,url:e.props.attributes.url,fetching:!0,cannotEmbed:!1,interactive:!1},e}return l(t,e),u(t,[{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"onLoad",value:function(){this.setState({fetching:!1})}},{key:"decodeHTMLEntities",value:function(e){return e&&"string"===typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,""),e=e.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,"")),e}},{key:"setUrl",value:function(e){e&&e.preventDefault();var t=this.state.url,n=this.props.setAttributes;if(n({url:t}),t&&t.match(/^http[s]?:\/\/((?:www\.)?docs\.google\.com(?:.*)?(?:document|presentation|spreadsheets|forms|drawings)\/[a-z0-9\/\?=_\-\.\,&%\$#\@\!\+]*)/i)){var r=this.decodeHTMLEntities(t),o=/google\.com(?:.+)?(document|presentation|spreadsheets|forms|drawings)/i,l=o.exec(r),i=l[1];if(i&&"spreadsheets"==i){if(r.indexOf("?")>-1){var a=r.split("?");if(a=a[1],a=a.split("&"),console.log(a),a.length>0){var s=!1,c=!1;a.map(function(e){e.indexOf("widget=")?c=!0:e.indexOf("headers=")&&(s=!0)}),c||(r+="&widget=true"),s||(r+="&headers=false")}}else r+="?widget=true&headers=false";this.setState({editingURL:!1,cannotEmbed:!1}),n({iframeSrc:r})}else this.setState({cannotEmbed:!0,editingURL:!0})}else this.setState({cannotEmbed:!0,editingURL:!0})}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"render",value:function(){var e=this,t=this.state,n=t.url,r=t.editingURL,o=t.fetching,l=t.cannotEmbed,u=t.interactive,m=this.props.attributes.iframeSrc,d=__("Google Sheets URL");return!m||r?wp.element.createElement(s.a,{label:d,onSubmit:this.setUrl,value:n,cannotEmbed:l,onChange:function(t){return e.setState({url:t.target.value})},icon:p.i,DocTitle:__("Learn more about Google sheet embed"),docLink:"https://embedpress.com/docs/embed-google-sheets-wordpress/"}):wp.element.createElement(f,null,o?wp.element.createElement(a.a,null):null,wp.element.createElement(c.a,{src:m,onFocus:this.hideOverlay,onLoad:this.onLoad,style:{display:o?"none":""},frameborder:"0",width:"600",height:"450"}),!u&&wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}),wp.element.createElement(i.a,{showEditButton:m&&!l,switchBackToURLInput:this.switchBackToURLInput}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(d);t.a=h},function(e,t,n){"use strict";var r=n(23),o=(n.n(r),n(24)),l=(n.n(o),n(25)),i=n(0),__=wp.i18n.__,a=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks["google-forms-block"]&&a("embedpress/google-forms-block",{title:__("Google Forms"),icon:i.g,category:"embedpress",keywords:[__("embedpress"),__("google"),__("forms")],supports:{align:["wide","full","right","left"],default:""},attributes:{url:{type:"string",default:""},iframeSrc:{type:"string",default:""}},edit:l.a,save:function(e){var t=e.attributes.iframeSrc;return wp.element.createElement("figure",{className:"ose-google-docs-forms"},wp.element.createElement("iframe",{src:t,frameborder:"0",width:"600",height:"450",allowfullscreen:"true",mozallowfullscreen:"true",webkitallowfullscreen:"true"}))}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=n(2),a=n(1),s=n(3),c=n(4),p=n(0),u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),__=wp.i18n.__,m=wp.element,d=m.Component,f=m.Fragment,h=(wp.components.Disabled,function(e){function t(){r(this,t);var e=o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.switchBackToURLInput=e.switchBackToURLInput.bind(e),e.setUrl=e.setUrl.bind(e),e.onLoad=e.onLoad.bind(e),e.state={editingURL:!1,url:e.props.attributes.url,fetching:!0,cannotEmbed:!1,interactive:!1},e}return l(t,e),u(t,[{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"onLoad",value:function(){this.setState({fetching:!1})}},{key:"decodeHTMLEntities",value:function(e){return e&&"string"===typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,""),e=e.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,"")),e}},{key:"setUrl",value:function(e){e&&e.preventDefault();var t=this.state.url,n=this.props.setAttributes;if(n({url:t}),t&&t.match(/^http[s]?:\/\/((?:www\.)?docs\.google\.com(?:.*)?(?:document|presentation|spreadsheets|forms|drawings)\/[a-z0-9\/\?=_\-\.\,&%\$#\@\!\+]*)/i)){var r=this.decodeHTMLEntities(t),o=/google\.com(?:.+)?(document|presentation|spreadsheets|forms|drawings)/i,l=o.exec(r),i=l[1];i&&"forms"==i?(this.setState({editingURL:!1,cannotEmbed:!1}),n({iframeSrc:r})):this.setState({cannotEmbed:!0,editingURL:!0})}else this.setState({cannotEmbed:!0,editingURL:!0})}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"render",value:function(){var e=this,t=this.state,n=t.url,r=t.editingURL,o=t.fetching,l=t.cannotEmbed,u=t.interactive,m=this.props.attributes.iframeSrc,d=__("Google Forms URL");return!m||r?wp.element.createElement(s.a,{label:d,onSubmit:this.setUrl,value:n,cannotEmbed:l,onChange:function(t){return e.setState({url:t.target.value})},icon:p.g,DocTitle:__("Learn more about Google forms embed"),docLink:"https://embedpress.com/docs/embed-google-forms-wordpress/"}):wp.element.createElement(f,null,o?wp.element.createElement(a.a,null):null,wp.element.createElement(c.a,{src:m,onFocus:this.hideOverlay,onLoad:this.onLoad,style:{display:o?"none":""},frameborder:"0",width:"600",height:"450"}),!u&&wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}),wp.element.createElement(i.a,{showEditButton:m&&!l,switchBackToURLInput:this.switchBackToURLInput}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(d));t.a=h},function(e,t,n){"use strict";var r=n(27),o=(n.n(r),n(28)),l=(n.n(o),n(29)),i=n(0),__=wp.i18n.__,a=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks["google-drawings-block"]&&a("embedpress/google-drawings-block",{title:__("Google Drawings"),icon:i.f,category:"embedpress",keywords:[__("embedpress"),__("google"),__("drawings")],supports:{align:["wide","full","right","left"],default:""},attributes:{url:{type:"string",default:""},iframeSrc:{type:"string",default:""}},edit:l.a,save:function(e){var t=e.attributes.iframeSrc;return wp.element.createElement("figure",{className:"ose-google-docs-drawings"},wp.element.createElement("img",{src:t,width:"960",height:"720"}))}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=n(2),a=n(1),s=n(3),c=n(0),p=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),__=wp.i18n.__,u=wp.element,m=u.Component,d=u.Fragment,f=function(e){function t(){r(this,t);var e=o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.switchBackToURLInput=e.switchBackToURLInput.bind(e),e.setUrl=e.setUrl.bind(e),e.onLoad=e.onLoad.bind(e),e.state={editingURL:!1,url:e.props.attributes.url,fetching:!0,cannotEmbed:!1},e}return l(t,e),p(t,[{key:"onLoad",value:function(){this.setState({fetching:!1})}},{key:"decodeHTMLEntities",value:function(e){return e&&"string"===typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,""),e=e.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,"")),e}},{key:"setUrl",value:function(e){e&&e.preventDefault();var t=this.state.url,n=this.props.setAttributes;if(n({url:t}),t&&t.match(/^http[s]?:\/\/((?:www\.)?docs\.google\.com(?:.*)?(?:document|presentation|spreadsheets|forms|drawings)\/[a-z0-9\/\?=_\-\.\,&%\$#\@\!\+]*)/i)){var r=this.decodeHTMLEntities(t),o=/google\.com(?:.+)?(document|presentation|spreadsheets|forms|drawings)/i,l=o.exec(r),i=l[1];i&&"drawings"==i?(this.setState({editingURL:!1,cannotEmbed:!1}),n({iframeSrc:r})):this.setState({cannotEmbed:!0,editingURL:!0})}else this.setState({cannotEmbed:!0,editingURL:!0})}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"render",value:function(){var e=this,t=this.state,n=t.url,r=t.editingURL,o=t.fetching,l=t.cannotEmbed,p=this.props.attributes.iframeSrc,u=__("Google Drawings URL (Get your link from File -> Publish to the web -> Link)");return!p||r?wp.element.createElement(s.a,{label:u,onSubmit:this.setUrl,value:n,cannotEmbed:l,onChange:function(t){return e.setState({url:t.target.value})},icon:c.f,DocTitle:__("Learn more about Google drawing embed"),docLink:"https://embedpress.com/docs/embed-google-drawings-wordpress/"}):wp.element.createElement(d,null,o?wp.element.createElement(a.a,null):null,wp.element.createElement("img",{src:p,onLoad:this.onLoad,style:{display:o?"none":""},width:"960",height:"720"}),wp.element.createElement(i.a,{showEditButton:p&&!l,switchBackToURLInput:this.switchBackToURLInput}))}}]),t}(m);t.a=f},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(31),l=(n.n(o),n(32)),i=(n.n(l),n(33)),a=n(0),__=wp.i18n.__,s=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks["google-maps-block"]&&s("embedpress/google-maps-block",{title:__("Google Maps"),icon:a.h,category:"embedpress",keywords:[__("embedpress"),__("google"),__("maps")],supports:{align:["wide","full","right","left"],default:""},attributes:{url:{type:"string",default:""},iframeSrc:{type:"string",default:""}},edit:i.a,save:function(e){var t=e.attributes.iframeSrc;return wp.element.createElement("figure",{className:"ose-google-maps"},wp.element.createElement("iframe",r({src:t,frameborder:"0",width:"600",height:"450"},"frameborder","0")))}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=n(2),a=n(1),s=n(3),c=n(4),p=n(0),u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),__=wp.i18n.__,m=wp.element,d=m.Component,f=m.Fragment,h=function(e){function t(){r(this,t);var e=o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.switchBackToURLInput=e.switchBackToURLInput.bind(e),e.setUrl=e.setUrl.bind(e),e.onLoad=e.onLoad.bind(e),e.state={editingURL:!1,url:e.props.attributes.url,fetching:!0,cannotEmbed:!1,interactive:!1},e}return l(t,e),u(t,[{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"onLoad",value:function(){this.setState({fetching:!1})}},{key:"decodeHTMLEntities",value:function(e){return e&&"string"===typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,""),e=e.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,"")),e}},{key:"setUrl",value:function(e){e&&e.preventDefault();var t=this.state.url,n=this.props.setAttributes;if(n({url:t}),t&&t.match(/^http[s]?:\/\/(?:(?:(?:www\.|maps\.)?(?:google\.com?))|(?:goo\.gl))(?:\.[a-z]{2})?\/(?:maps\/)?(?:place\/)?(?:[a-z0-9\/%+\-_]*)?([a-z0-9\/%,+\-_=!:@\.&*\$#?\']*)/i)){var r=this.decodeHTMLEntities(t);if(t.match("~(maps/embed|output=embed)~i"));else{var o=/@(-?[0-9\.]+,-?[0-9\.]+).+,([0-9\.]+[a-z])/i,l=o.exec(r);l&&l.length>1&&l[1]&&l[2]?r="https://maps.google.com/maps?hl=en&ie=UTF8&ll="+l[1]+"&spn="+l[1]+"&t=m&z="+Math.round(parseInt(l[2]))+"&output=embed":this.setState({cannotEmbed:!0,editingURL:!0})}this.setState({editingURL:!1,cannotEmbed:!1}),n({iframeSrc:r})}else this.setState({cannotEmbed:!0,editingURL:!0})}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"render",value:function(){var e=this,t=this.state,n=t.url,r=t.editingURL,o=t.fetching,l=t.cannotEmbed,u=t.interactive,m=this.props.attributes.iframeSrc,d=__("Google Maps URL");return!m||r?wp.element.createElement(s.a,{label:d,onSubmit:this.setUrl,value:n,cannotEmbed:l,onChange:function(t){return e.setState({url:t.target.value})},icon:p.h,DocTitle:__("Learn more about Google map embed"),docLink:"https://embedpress.com/docs/embed-google-maps-wordpress/"}):wp.element.createElement(f,null,o?wp.element.createElement(a.a,null):null,wp.element.createElement(c.a,{src:m,onFocus:this.hideOverlay,onLoad:this.onLoad,style:{display:o?"none":""},frameborder:"0",width:"600",height:"450"}),!u&&wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}),wp.element.createElement(i.a,{showEditButton:m&&!l,switchBackToURLInput:this.switchBackToURLInput}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(d);t.a=h},function(e,t,n){"use strict";var r=n(35),o=(n.n(r),n(36)),l=(n.n(o),n(37)),i=n(0),a=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},__=wp.i18n.__,s=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks["twitch-block"]&&s("embedpress/twitch-block",{title:__("Twitch"),icon:i.k,category:"embedpress",keywords:[__("embedpress"),__("twitch")],supports:{align:["wide","full","right","left"],default:""},attributes:{url:{type:"string",default:""},iframeSrc:{type:"string",default:""},attrs:{type:"string",default:""}},edit:l.a,save:function(e){var t=e.attributes,n=t.iframeSrc,r=t.attrs,o=n+"&parent="+embedpressObj.twitch_host;return wp.element.createElement("figure",{className:"ose-twitch-presentation"},wp.element.createElement("iframe",a({src:o},r,{frameborder:"0",width:"600",height:"450"})))}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=n(2),a=n(1),s=n(3),c=n(4),p=n(0),u=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},m=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),__=wp.i18n.__,d=wp.element,f=d.Component,h=d.Fragment,b=function(e){function t(){r(this,t);var e=o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.switchBackToURLInput=e.switchBackToURLInput.bind(e),e.setUrl=e.setUrl.bind(e),e.onLoad=e.onLoad.bind(e),e.hideOverlay=e.hideOverlay.bind(e),e.state={editingURL:!1,url:e.props.attributes.url,fetching:!0,cannotEmbed:!1,interactive:!1},e}return l(t,e),m(t,[{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"onLoad",value:function(){this.setState({fetching:!1})}},{key:"decodeHTMLEntities",value:function(e){return e&&"string"===typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,""),e=e.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,"")),e}},{key:"setUrl",value:function(e){e&&e.preventDefault();var t=this.state.url,n=this.props.setAttributes;n({url:t});var r=/http[s]?:\/\/(?:www\.|clips\.)twitch\.tv\/([0-9a-zA-Z\-\_]+)\/?(chat\/?$|[0-9a-z\-\_]*)?/;if(t&&t.match(r)){var o=this.decodeHTMLEntities(t),l=r.exec(o),i=l[1];console.log(i);var a,s="channel";switch(t.indexOf("clips.twitch.tv")>-1?s="clip":t.indexOf("/videos/")>-1?s="video":t.indexOf("#/chat$#")>-1&&(s="chat"),console.log(s),s){case"channel":o="https://player.twitch.tv/?channel="+i,a={scrolling:"no",frameborder:"0",allowfullscreen:"true"};break;case"clip":o="https://clips.twitch.tv/embed?clip="+i+"&autoplay=false",a={scrolling:"no",frameborder:"0",allowfullscreen:"true"};break;case"video":i=l[2],o="https://player.twitch.tv/?video="+i,a={scrolling:"no",frameborder:"0",allowfullscreen:"true"};break;case"chat":o="http://www.twitch.tv/embed/"+i+"/chat",a={scrolling:"yes",frameborder:"0",allowfullscreen:"true",id:"'"+i+"'"}}this.setState({editingURL:!1,cannotEmbed:!1}),n({iframeSrc:o,attrs:a})}else this.setState({cannotEmbed:!0,editingURL:!0})}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"render",value:function(){var e=this,t=this.state,n=t.url,r=t.editingURL,o=t.fetching,l=t.cannotEmbed,m=t.interactive,d=this.props.attributes,f=d.iframeSrc,b=d.attrs,w=__("Twitch URL");if(!f||r)return wp.element.createElement(s.a,{label:w,onSubmit:this.setUrl,value:n,cannotEmbed:l,onChange:function(t){return e.setState({url:t.target.value})},icon:p.k,DocTitle:__("Learn more about twitch embed"),docLink:"https://embedpress.com/docs/embed-twitch-streams-chat/"});var y=f+"&parent="+embedpressObj.twitch_host;return wp.element.createElement(h,null,o?wp.element.createElement(a.a,null):null,wp.element.createElement(c.a,u({src:y},b,{onLoad:this.onLoad,style:{display:o?"none":""},onFocus:this.hideOverlay,width:"600",height:"450"})),!m&&wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}),wp.element.createElement(i.a,{showEditButton:f&&!l,switchBackToURLInput:this.switchBackToURLInput}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(f);t.a=b},function(e,t,n){"use strict";var r=n(39),o=(n.n(r),n(40)),l=(n.n(o),n(41)),i=n(0),__=wp.i18n.__,a=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks["wistia-block"]&&a("embedpress/wistia-block",{title:__("Wistia"),icon:i.l,category:"embedpress",keywords:[__("embedpress"),__("wistia")],supports:{align:["wide","full","right","left"],default:""},edit:l.a,save:function(e){return null},deprecated:[{attributes:{url:{type:"string",default:""},iframeSrc:{type:"string",default:""}},edit:l.a,save:function(e){var t=e.attributes.iframeSrc;return wp.element.createElement("div",{class:"ose-wistia"},wp.element.createElement("iframe",{src:t,allowtransparency:"true",frameborder:"0",class:"wistia_embed",name:"wistia_embed",width:"600",height:"330"}))}}]})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=n(2),a=n(1),s=n(3),c=n(4),p=n(0),u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),__=wp.i18n.__,m=wp.element,d=m.Component,f=m.Fragment,h=function(e){function t(){r(this,t);var e=o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.switchBackToURLInput=e.switchBackToURLInput.bind(e),e.setUrl=e.setUrl.bind(e),e.onLoad=e.onLoad.bind(e),e.hideOverlay=e.hideOverlay.bind(e),e.state={editingURL:!1,url:e.props.attributes.url,fetching:!0,cannotEmbed:!1,interactive:!1,mediaId:null},e.setUrl(),e}return l(t,e),u(t,[{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"componentDidMount",value:function(){if(this.props.attributes.url){var e=this.props.attributes.url.match(/medias\/(.*)/),t=e[1];this.setState(Object.assign({},this.state,{mediaId:t}))}}},{key:"onLoad",value:function(){if(this.setState({fetching:!1}),embedpressObj.wisita_options){var e=Object.assign({},this.state);setTimeout(function(){var e=document.createElement("script");e.src="https://fast.wistia.com/assets/external/E-v1.js",e.charset="ISO-8859-1",document.body.appendChild(e)},100),setTimeout(function(){var t=document.createElement("script");t.type="text/javascript",t.innerHTML="window.pp_embed_wistia_labels = "+embedpressObj.wistia_labels,document.body.appendChild(t),t=document.createElement("script"),t.type="text/javascript",t.innerHTML='wistiaEmbed = Wistia.embed( "'+e.mediaId+'", '+embedpressObj.wisita_options+" );",document.body.appendChild(t)},400)}}},{key:"decodeHTMLEntities",value:function(e){return e&&"string"===typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,""),e=e.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,"")),e}},{key:"setUrl",value:function(e){e&&e.preventDefault();var t=this.state.url,n=this.props.setAttributes;if(n({url:t}),t&&(t.match(/^http[s]?:\/\/(?:www\.)?wistia\.com\/medias/i)||t.match(/^http[s]?:\/\/(?:www\.)?fast\/.wistia\.com\/embed\/medias/i.jsonp))){var r=t.match(/medias\/(.*)/),o=r[1],l="//fast.wistia.net/embed/iframe/"+o;this.setState({editingURL:!1,cannotEmbed:!1,mediaId:o}),n({iframeSrc:l})}else this.setState({cannotEmbed:!0,editingURL:!0})}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"render",value:function(){var e=this,t=this.state,n=t.url,r=t.editingURL,o=t.fetching,l=t.cannotEmbed,u=t.interactive,m=this.props.attributes.iframeSrc,d=__("Wistia URL");return!m||r?wp.element.createElement(s.a,{label:d,onSubmit:this.setUrl,value:n,cannotEmbed:l,onChange:function(t){return e.setState({url:t.target.value})},icon:p.l,DocTitle:__("Learn more about Wistia embed"),docLink:"https://embedpress.com/docs/embed-wistia-videos-wordpress/"}):wp.element.createElement(f,null,o?wp.element.createElement(a.a,null):null,wp.element.createElement("div",{className:"ose-wistia",id:"wistia_"+this.state.mediaId},wp.element.createElement(c.a,{src:m,onFocus:this.hideOverlay,onLoad:this.onLoad,style:{display:o?"none":""},frameborder:"0",width:"600",height:"330"})),!u&&wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}),wp.element.createElement(i.a,{showEditButton:m&&!l,switchBackToURLInput:this.switchBackToURLInput}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(d);t.a=h},function(e,t,n){"use strict";var r=n(43),o=(n.n(r),n(44)),l=(n.n(o),n(45)),i=n(0),__=wp.i18n.__,a=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks["youtube-block"]&&a("embedpress/youtube-block",{title:__("YouTube"),icon:i.m,category:"embedpress",keywords:[__("embedpress"),__("youtube")],supports:{align:["wide","full","right","left"],default:""},edit:l.a,save:function(){return null}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=n(2),a=n(1),s=n(3),c=n(4),p=n(0),u=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},m=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),__=wp.i18n.__,d=wp.element,f=d.Component,h=d.Fragment,b=function(e){function t(){r(this,t);var e=o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.switchBackToURLInput=e.switchBackToURLInput.bind(e),e.setUrl=e.setUrl.bind(e),e.onLoad=e.onLoad.bind(e),e.hideOverlay=e.hideOverlay.bind(e),e.state={editingURL:!1,url:e.props.attributes.url,fetching:!0,cannotEmbed:!1,interactive:!1},e}return l(t,e),m(t,[{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"componentWillMount",value:function(){this.state.url&&this.setUrl()}},{key:"onLoad",value:function(){this.setState({fetching:!1})}},{key:"decodeHTMLEntities",value:function(e){return e&&"string"===typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,""),e=e.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,"")),e}},{key:"setUrl",value:function(e){e&&e.preventDefault();var t=this.state.url,n=this.props.setAttributes;n({url:t});var r=t.match(/^(?:https?:\/\/)?(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})(?:\S+)?$/);if(t&&r){var o=r[1],l="https://www.youtube.com/embed/"+o,i=new URL(l);if("undefined"!==typeof embedpressProObj)for(var a in embedpressProObj.youtubeParams)i.searchParams.set(a,embedpressProObj.youtubeParams[a]);this.setState({editingURL:!1,cannotEmbed:!1}),n({iframeSrc:i.href,mediaId:o})}else this.setState({cannotEmbed:!0,editingURL:!0})}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"render",value:function(){var e=this,t=this.state,n=t.url,r=t.editingURL,o=t.fetching,l=t.cannotEmbed,m=t.interactive,d=this.props.attributes,f=d.iframeSrc,b=d.attrs,w=__("YouTube URL");return!f||r?wp.element.createElement(s.a,{label:w,onSubmit:this.setUrl,value:n,cannotEmbed:l,onChange:function(t){return e.setState({url:t.target.value})},icon:p.m,DocTitle:__("Learn More About YouTube Embed"),docLink:"https://embedpress.com/docs/embed-youtube-wordpress/"}):wp.element.createElement(h,null,o?wp.element.createElement(a.a,null):null,wp.element.createElement(c.a,u({src:f},b,{onLoad:this.onLoad,style:{display:o?"none":""},width:"640",onFocus:this.hideOverlay,height:"450"})),!m&&wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}),wp.element.createElement(i.a,{showEditButton:f&&!l,switchBackToURLInput:this.switchBackToURLInput}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(f);t.a=b},function(e,t,n){"use strict";var r=n(47),o=(n.n(r),n(48)),l=(n.n(o),n(49)),i=n(0),a=n(5),__=wp.i18n.__,s=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks.document&&s("embedpress/document",{title:__("Document"),icon:i.b,category:"embedpress",keywords:[__("embedpress"),__("pdf"),__("doc"),__("ppt")],supports:{align:["wide","full","right","left"],default:""},attributes:{id:{type:"string"},href:{type:"string"},powered_by:{type:"boolean",default:!0},width:{type:"number",default:600},height:{type:"number",default:600},fileName:{type:"string"},mime:{type:"string"}},edit:l.a,save:function(e){var t=e.attributes,n=t.href,r=t.mime,o=t.id,l=t.width,i=t.height,s=t.powered_by,c="//view.officeapps.live.com/op/embed.aspx?src="+n;return wp.element.createElement("div",{className:"embedpress-document-embed ep-doc-"+o,style:{height:i,width:l}},"application/pdf"===r&&wp.element.createElement("div",{style:{height:i,width:l},className:"embedpress-embed-document-pdf "+o,"data-emid":o,"data-emsrc":n}),"application/pdf"!==r&&wp.element.createElement("iframe",{style:{height:i,width:l},src:c,mozallowfullscreen:"true",webkitallowfullscreen:"true"}),s&&wp.element.createElement("p",{className:"embedpress-el-powered"},"Powered By EmbedPress"),embedpressObj.embedpress_pro&&wp.element.createElement(a.a,{id:o}))}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=n(4),a=n(5),s=n(1),c=n(0),p=function(){function e(e,t){var n=[],_n=!0,r=!1,o=void 0;try{for(var l,i=e[Symbol.iterator]();!(_n=(l=i.next()).done)&&(n.push(l.value),!t||n.length!==t);_n=!0);}catch(e){r=!0,o=e}finally{try{!_n&&i.return&&i.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),__=wp.i18n.__,m=wp.blob,d=m.getBlobByURL,f=m.isBlobURL,h=m.revokeBlobURL,b=wp.blockEditor,w=b.BlockIcon,y=b.MediaPlaceholder,g=b.InspectorControls,v=wp.element,E=v.Component,_=v.Fragment,L=wp.components,k=L.RangeControl,C=L.PanelBody,S=L.ExternalLink,x=L.ToggleControl,O=["application/pdf","application/msword","application/vnd.ms-powerpoint","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.openxmlformats-officedocument.presentationml.presentation"],T=function(e){function t(){r(this,t);var e=o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.onSelectFile=e.onSelectFile.bind(e),e.onUploadError=e.onUploadError.bind(e),e.onLoad=e.onLoad.bind(e),e.hideOverlay=e.hideOverlay.bind(e),e.state={hasError:!1,fetching:!1,interactive:!1,loadPdf:!0},e}return l(t,e),u(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.attributes,r=t.mediaUpload,o=t.noticeOperations,l=n.href;if(f(l)){r({filesList:[d(l)],onFileChange:function(t){var n=p(t,1),r=n[0];return e.onSelectFile(r)},onError:function(t){e.setState({hasError:!0}),o.createErrorNotice(t)}}),h(l)}this.props.attributes.href&&"application/pdf"===this.props.attributes.mime&&this.state.loadPdf&&(this.setState({loadPdf:!1}),PDFObject.embed(this.props.attributes.href,"."+this.props.attributes.id))}},{key:"componentDidUpdate",value:function(e){e.isSelected&&!this.props.isSelected&&this.setState({showCopyConfirmation:!1})}},{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"onLoad",value:function(){this.setState({fetching:!1})}},{key:"onSelectFile",value:function(e){e&&e.url&&(this.setState({hasError:!1}),this.props.setAttributes({href:e.url,fileName:e.title,id:"embedpress-pdf-"+Date.now(),mime:e.mime}),embedpressObj.embedpress_pro&&this.props.setAttributes({powered_by:!1}),"application/pdf"===e.mime&&(this.setState({loadPdf:!1}),PDFObject.embed(e.url,"."+this.props.attributes.id)))}},{key:"onUploadError",value:function(e){var t=this.props.noticeOperations;t.removeAllNotices(),t.createErrorNotice(e)}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.noticeUI,r=e.setAttributes,o=t.href,l=t.mime,p=t.id,u=t.width,m=t.height,d=t.powered_by,f=this.state,h=f.hasError,b=f.interactive,v=f.fetching,E=f.loadPdf;if(!o||h)return wp.element.createElement("div",{className:"embedpress-document-editmode"},wp.element.createElement(y,{icon:wp.element.createElement(w,{icon:c.b}),labels:{title:__("Document"),instructions:__("Upload a file or pick one from your media library for embed.")},onSelect:this.onSelectFile,notices:n,allowedTypes:O,onError:this.onUploadError},wp.element.createElement("div",{style:{width:"100%"},className:"components-placeholder__learn-more embedpress-doc-link"},wp.element.createElement(S,{href:"https://embedpress.com/docs/embed-document/"},"Learn more about Embedded document "))));var L="//view.officeapps.live.com/op/embed.aspx?src="+o;return wp.element.createElement(_,null,v&&"application/pdf"!==l?wp.element.createElement(s.a,null):null,wp.element.createElement("div",{className:"embedpress-document-embed ep-doc-"+p,style:{height:m,width:u}},"application/pdf"===l&&wp.element.createElement("div",{style:{height:m,width:u},className:"embedpress-embed-document-pdf "+p,"data-emid":p,"data-emsrc":o}),"application/pdf"!==l&&wp.element.createElement(i.a,{onMouseUponMouseUp:this.hideOverlay,style:{height:m,width:u,display:v||!E?"none":""},onLoad:this.onLoad,src:L}),!b&&wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}),d&&wp.element.createElement("p",{className:"embedpress-el-powered"},"Powered By EmbedPress"),!v&&wp.element.createElement(a.a,{id:p})),wp.element.createElement(g,{key:"inspector"},wp.element.createElement(C,{title:__("Embed Size","embedpress")},wp.element.createElement(k,{label:__("Width","embedpress"),value:u||720,onChange:function(e){return r({width:e})},max:1e3,min:1}),wp.element.createElement(k,{label:__("Height","embedpress"),value:m,onChange:function(e){return r({height:e})},max:1e3,min:1}),wp.element.createElement(x,{label:__("Powered By"),onChange:function(e){return r({powered_by:e})},checked:d}))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(E);t.a=T},function(e,t,n){"use strict";var r=n(51),o=(n.n(r),n(52)),l=(n.n(o),n(53)),i=n(0),__=wp.i18n.__,a=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks.embedpress&&a("embedpress/embedpress",{title:__("EmbedPress"),icon:i.d,category:"embedpress",keywords:["embedpress","embed","google","youtube","docs"],supports:{align:["right","left","center"],default:"center",lightBlockWrapper:!0},attributes:{url:{type:"string",default:""},embedHTML:{type:"string",default:""},height:{type:"string",default:"450"},width:{type:"string",default:"600"},editingURL:{type:"boolean",default:0},fetching:{type:"boolean",default:!1},cannotEmbed:{type:"boolean",default:!1},interactive:{type:"boolean",default:!1},align:{type:"string",default:"center"},ispagination:{type:"boolean",default:!0},pagesize:{type:"number",default:6},columns:{type:"string",default:"2"},gapbetweenvideos:{type:"number",default:30},limit:{type:"number",default:9},orderby:{type:"string",default:"desc"},gapbetweenitem:{type:"number",default:30},layout:{type:"string",default:"ep-grid"},preset:{type:"string",default:"ep-preset-1"},nftperrow:{type:"number",default:3},nftimage:{type:"boolean",default:!0},nfttitle:{type:"boolean",default:!0},nftcreator:{type:"boolean",default:!0},prefix_nftcreator:{type:"string",default:"Created By"},nftprice:{type:"boolean",default:!0},prefix_nftprice:{type:"string",default:"Price"},nftlastsale:{type:"boolean",default:!0},prefix_nftlastsale:{type:"string",default:"Last Sale"},nftbutton:{type:"boolean",default:!0},label_nftbutton:{type:"string",default:"See Details"},alignment:{type:"string",default:"ep-item-center"},itemBGColor:{type:"string"},titleColor:{type:"string"},titleFontsize:{type:"number"},creatorColor:{type:"string"},creatorFontsize:{type:"number"},creatorLinkColor:{type:"string"},creatorLinkFontsize:{type:"number"},priceColor:{type:"string"},priceFontsize:{type:"number"},lastSaleColor:{type:"string"},lastSaleFontsize:{type:"number"},buttonTextColor:{type:"string"},buttonBackgroundColor:{type:"string"},buttonTextFontsize:{type:"number"}},edit:l.a,save:function(){return null}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){function r(o,l){try{var i=t[o](l),a=i.value}catch(e){return void n(e)}if(!i.done)return Promise.resolve(a).then(function(e){r("next",e)},function(e){r("throw",e)});e(a)}return r("next")})}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function l(e){function t(){w({editingURL:!0})}function n(e){var t=this;if(e&&e.preventDefault(),v){w({fetching:!0});(function(){var e=r(a.a.mark(function e(n){var r,o,l,i,s;return a.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r="",o="",se&&(l={pagesize:O||6,gapbetweenvideos:10,ispagination:x||!1,columns:T||"3"},r="&"+new URLSearchParams(l).toString()),ce&&(i={limit:j||20,orderby:M||"desc",layout:B||"ep-grid",preset:F||"ep-preset-1",nftperrow:P||"3",gapbetweenitem:R||30,nftimage:z||!1,nftcreator:D||!1,prefix_nftcreator:N||"",nfttitle:I||!1,nftprice:A||!1,prefix_nftprice:H||"",nftlastsale:V||!1,prefix_nftlastsale:G||"",nftbutton:Z||!1,label_nftbutton:W||"",itemBGColor:q||"",titleColor:Y||"",titleFontsize:$||"",creatorColor:J||"",creatorFontsize:K||"",creatorLinkColor:Q||"",creatorLinkFontsize:X||"",priceColor:ee||"",priceFontsize:te||"",lastSaleColor:ne||"",lastSaleFontsize:re||"",buttonTextColor:oe||"",buttonBackgroundColor:le||"",buttonFontSize:ie||""},o="&"+new URLSearchParams(i).toString()),s=n.split("#"),s=encodeURIComponent(s[0]),e.next=8,fetch(embedpressObj.site_url+"/wp-json/embedpress/v1/oembed/embedpress?url="+s+"&width="+S+"&height="+C+r+o).then(function(e){return e.json()});case 8:return e.abrupt("return",e.sent);case 9:case"end":return e.stop()}},e,t)}));return function(_x){return e.apply(this,arguments)}})()(v).then(function(e){w({fetching:!1}),w(e.data&&404===e.data.status||!e.embed?{cannotEmbed:!0,editingURL:!0}:{embedHTML:e.embed,cannotEmbed:!1,editingURL:!1})})}else w({cannotEmbed:!0,fetching:!1,editingURL:!0})}var l=e.clientId,i=e.attributes,m=e.className,w=e.setAttributes,v=i.url,E=i.editingURL,_=i.fetching,L=i.cannotEmbed,k=(i.interactive,i.embedHTML),C=i.height,S=i.width,x=i.ispagination,O=i.pagesize,T=i.columns,U=i.gapbetweenvideos,j=i.limit,B=i.layout,F=i.preset,M=i.orderby,P=i.nftperrow,R=i.gapbetweenitem,z=i.nftimage,D=i.nftcreator,N=i.prefix_nftcreator,I=i.nfttitle,A=i.nftprice,H=i.prefix_nftprice,V=i.nftlastsale,G=i.prefix_nftlastsale,Z=i.nftbutton,W=i.label_nftbutton,q=(i.alignment,i.itemBGColor),Y=i.titleColor,$=i.titleFontsize,J=i.creatorColor,K=i.creatorFontsize,Q=i.creatorLinkColor,X=i.creatorLinkFontsize,ee=i.priceColor,te=i.priceFontsize,ne=i.lastSaleColor,re=i.lastSaleFontsize,oe=i.buttonTextColor,le=i.buttonBackgroundColor,ie=i.buttonFontSize,ae=b?b():[],se=v.match(/\/channel\/|\/c\/|\/user\/|(?:https?:\/\/)?(?:www\.)?(?:youtube.com\/)(\w+)[^?\/]*$/i),ce=v.match(/\/collection\/|(?:https?:\/\/)?(?:www\.)?(?:opensea.com\/)(\w+)[^?\/]*$/i);g(function(){if(k&&!E&&!_){var e=k.matchAll(/<script.*?src=["'](.*?)["'].*?><\/script>/g);e=[].concat(o(e));var t=!0,n=!1,r=void 0;try{for(var l,i=e[Symbol.iterator]();!(t=(l=i.next()).done);t=!0){var a=l.value;if(a&&"undefined"!=typeof a[1]){var s=a[1],c=d()(s);if(document.getElementById(c))continue;var p=document.createElement("script");p.type="text/javascript",p.setAttribute("id",c),p.setAttribute("src",s),document.body.appendChild(p)}}}catch(e){n=!0,r=e}finally{try{!t&&i.return&&i.return()}finally{if(n)throw r}}}},[k]),g(function(){var e=setTimeout(function(){(k&&!E||_)&&n()},300);return function(){return clearTimeout(e)}},[O,j,B,F,M,z,I,A,H,V,G,P,Z,W,D,N,q,Y,$,J,K,Q,X,ee,te,ne,re,oe,le,ie]);var pe="repeat(auto-fit, minmax(250px, 1fr))";return T>0&&(pe="repeat(auto-fit, minmax(calc("+100/T+"% - "+U+"px), 1fr))"),wp.element.createElement(y,null,wp.element.createElement(f.a,{attributes:i,setAttributes:w,isYTChannel:se,isOpensea:ce}),(!k||!!E)&&!_&&wp.element.createElement("div",ae,wp.element.createElement(p.a,{label:__("EmbedPress - Embed anything from 150+ sites"),onSubmit:n,value:v,cannotEmbed:L,onChange:function(e){return w({url:e.target.value})},icon:h.d,DocTitle:__("Learn more about EmbedPress"),docLink:"https://embedpress.com/docs/"})),(!ce||!!E||0===E)&&_&&wp.element.createElement("div",{className:m},wp.element.createElement(c.a,null)," "),k&&!E&&(!_||ce)&&wp.element.createElement("figure",ae,wp.element.createElement(u.a,{style:{display:_&&!ce?"none":""},dangerouslySetInnerHTML:{__html:k}}),_&&wp.element.createElement("div",{style:{filter:"grayscale(1))",backgroundColor:"#fffafa",opacity:"0.7"},className:"block-library-embed__interactive-overlay",onMouseUp:w({interactive:!0})}),!ce&&wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:w({interactive:!0})}),wp.element.createElement(s.a,{showEditButton:k&&!L,switchBackToURLInput:t})),se&&wp.element.createElement("style",{style:{display:"none"}},"\n\t\t\t\t\t\t\t#block-"+l+" .ep-youtube__content__block .youtube__content__body .content__wrap{\n\t\t\t\t\t\t\t\tgap: "+U+"px!important;\n\t\t\t\t\t\t\t\tmargin-top: "+U+"px!important;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t#block-"+l+" .ose-youtube{\n\t\t\t\t\t\t\t\twidth: "+S+"px!important;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t#block-"+l+" .ose-youtube .ep-first-video iframe{\n\t\t\t\t\t\t\t\tmax-height: "+C+"px!important;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t#block-"+l+" .ose-youtube > iframe{\n\t\t\t\t\t\t\t\theight: "+C+"px!important;\n\t\t\t\t\t\t\t\twidth: "+S+"px!important;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t#block-"+l+" .ep-youtube__content__block .youtube__content__body .content__wrap {\n\t\t\t\t\t\t\t\tgrid-template-columns: "+pe+";\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t#block-"+l+" .ep-youtube__content__block .ep-youtube__content__pagination{\n\t\t\t\t\t\t\t\tdisplay: flex!important;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t"+(!x&&"#block-"+l+" .ep-youtube__content__block .ep-youtube__content__pagination{\n\t\t\t\t\t\t\t\t\tdisplay: none!important;\n\t\t\t\t\t\t\t\t}")+"\n\n\t\t\t\t\t\t\t"),!se&&!ce&&wp.element.createElement("style",{style:{display:"none"}},"\n\t\t\t\t\t\t\t#block-"+l+" .ose-embedpress-responsive{\n\t\t\t\t\t\t\t\twidth: "+S+"px!important;\n\t\t\t\t\t\t\t\theight: "+C+"px!important\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t#block-"+l+" iframe{\n\t\t\t\t\t\t\t\twidth: "+S+"px!important;\n\t\t\t\t\t\t\t\theight: "+C+"px!important\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t#block-"+l+" .ose-youtube > iframe{\n\t\t\t\t\t\t\t\theight: "+C+"px!important;\n\t\t\t\t\t\t\t\twidth: "+S+"px!important;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t#block-"+l+" .ose-youtube{\n\t\t\t\t\t\t\t\theight: "+C+"px!important;\n\t\t\t\t\t\t\t\twidth: "+S+"px!important;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t"),ce&&wp.element.createElement("style",{style:{display:"none"}},"\n\t\t\t\t\t\t\t#block-"+l+"{\n\t\t\t\t\t\t\t\twidth: 900px;\n\t\t\t\t\t\t\t\tmax-width: 100%!important;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t"))}t.a=l;var i=n(54),a=n.n(i),s=n(2),c=n(1),p=n(3),u=n(57),m=n(58),d=n.n(m),f=n(61),h=n(0),__=(n(65),wp.i18n.__),b=wp.blockEditor.useBlockProps,w=wp.element,y=w.Fragment,g=w.useEffect},function(e,t,n){e.exports=n(55)},function(e,t,n){var r=function(){return this}()||Function("return this")(),o=r.regeneratorRuntime&&Object.getOwnPropertyNames(r).indexOf("regeneratorRuntime")>=0,l=o&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,e.exports=n(56),o)r.regeneratorRuntime=l;else try{delete r.regeneratorRuntime}catch(e){r.regeneratorRuntime=void 0}},function(e,t){!function(t){"use strict";function n(e,t,n,r){var l=t&&t.prototype instanceof o?t:o,i=Object.create(l.prototype),a=new d(r||[]);return i._invoke=c(e,n,a),i}function r(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function o(){}function l(){}function i(){}function a(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function s(e){function t(n,o,l,i){var a=r(e[n],e,o);if("throw"!==a.type){var s=a.arg,c=s.value;return c&&"object"===typeof c&&y.call(c,"__await")?Promise.resolve(c.__await).then(function(e){t("next",e,l,i)},function(e){t("throw",e,l,i)}):Promise.resolve(c).then(function(e){s.value=e,l(s)},i)}i(a.arg)}function n(e,n){function r(){return new Promise(function(r,o){t(e,n,r,o)})}return o=o?o.then(r,r):r()}var o;this._invoke=n}function c(e,t,n){var o=C;return function(l,i){if(o===x)throw new Error("Generator is already running");if(o===O){if("throw"===l)throw i;return h()}for(n.method=l,n.arg=i;;){var a=n.delegate;if(a){var s=p(a,n);if(s){if(s===T)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===C)throw o=O,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=x;var c=r(e,t,n);if("normal"===c.type){if(o=n.done?O:S,c.arg===T)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=O,n.method="throw",n.arg=c.arg)}}}function p(e,t){var n=e.iterator[t.method];if(n===b){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=b,p(e,t),"throw"===t.method))return T;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return T}var o=r(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,T;var l=o.arg;return l?l.done?(t[e.resultName]=l.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=b),t.delegate=null,T):l:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,T)}function u(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 m(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function d(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(u,this),this.reset(!0)}function f(e){if(e){var t=e[v];if(t)return t.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(y.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=b,t.done=!0,t};return r.next=r}}return{next:h}}function h(){return{value:b,done:!0}}var b,w=Object.prototype,y=w.hasOwnProperty,g="function"===typeof Symbol?Symbol:{},v=g.iterator||"@@iterator",E=g.asyncIterator||"@@asyncIterator",_=g.toStringTag||"@@toStringTag",L="object"===typeof e,k=t.regeneratorRuntime;if(k)return void(L&&(e.exports=k));k=t.regeneratorRuntime=L?e.exports:{},k.wrap=n;var C="suspendedStart",S="suspendedYield",x="executing",O="completed",T={},U={};U[v]=function(){return this};var j=Object.getPrototypeOf,B=j&&j(j(f([])));B&&B!==w&&y.call(B,v)&&(U=B);var F=i.prototype=o.prototype=Object.create(U);l.prototype=F.constructor=i,i.constructor=l,i[_]=l.displayName="GeneratorFunction",k.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===l||"GeneratorFunction"===(t.displayName||t.name))},k.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,i):(e.__proto__=i,_ in e||(e[_]="GeneratorFunction")),e.prototype=Object.create(F),e},k.awrap=function(e){return{__await:e}},a(s.prototype),s.prototype[E]=function(){return this},k.AsyncIterator=s,k.async=function(e,t,r,o){var l=new s(n(e,t,r,o));return k.isGeneratorFunction(t)?l:l.next().then(function(e){return e.done?e.value:l.next()})},a(F),F[_]="Generator",F[v]=function(){return this},F.toString=function(){return"[object Generator]"},k.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},k.values=f,d.prototype={constructor:d,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=b,this.done=!1,this.delegate=null,this.method="next",this.arg=b,this.tryEntries.forEach(m),!e)for(var t in this)"t"===t.charAt(0)&&y.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=b)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){function t(t,r){return l.type="throw",l.arg=e,n.next=t,r&&(n.method="next",n.arg=b),!!r}if(this.done)throw e;for(var n=this,r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],l=o.completion;if("root"===o.tryLoc)return t("end");if(o.tryLoc<=this.prev){var i=y.call(o,"catchLoc"),a=y.call(o,"finallyLoc");if(i&&a){if(this.prev<o.catchLoc)return t(o.catchLoc,!0);if(this.prev<o.finallyLoc)return t(o.finallyLoc)}else if(i){if(this.prev<o.catchLoc)return t(o.catchLoc,!0)}else{if(!a)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return t(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&y.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 l=o?o.completion:{};return l.type=e,l.arg=t,o?(this.method="next",this.next=o.finallyLoc,T):this.complete(l)},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),T},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),m(n),T}},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 o=r.arg;m(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:f(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=b),T}}}(function(){return this}()||Function("return this")())},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=n(6),a=n.n(i),s=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},c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),p=wp.element.Component,u=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.myRef=React.createRef(),n}return l(t,e),c(t,[{key:"componentDidMount",value:function(){a.a.findDOMNode(this.myRef.current).addEventListener("load",this.props.onLoad)}},{key:"render",value:function(){return wp.element.createElement("div",s({ref:this.myRef},this.props))}}]),t}(p);t.a=u},function(e,t,n){!function(){var t=n(59),r=n(7).utf8,o=n(60),l=n(7).bin,i=function(e,n){e.constructor==String?e=n&&"binary"===n.encoding?l.stringToBytes(e):r.stringToBytes(e):o(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||e.constructor===Uint8Array||(e=e.toString());for(var a=t.bytesToWords(e),s=8*e.length,c=1732584193,p=-271733879,u=-1732584194,m=271733878,d=0;d<a.length;d++)a[d]=16711935&(a[d]<<8|a[d]>>>24)|4278255360&(a[d]<<24|a[d]>>>8);a[s>>>5]|=128<<s%32,a[14+(s+64>>>9<<4)]=s;for(var f=i._ff,h=i._gg,b=i._hh,w=i._ii,d=0;d<a.length;d+=16){var y=c,g=p,v=u,E=m;c=f(c,p,u,m,a[d+0],7,-680876936),m=f(m,c,p,u,a[d+1],12,-389564586),u=f(u,m,c,p,a[d+2],17,606105819),p=f(p,u,m,c,a[d+3],22,-1044525330),c=f(c,p,u,m,a[d+4],7,-176418897),m=f(m,c,p,u,a[d+5],12,1200080426),u=f(u,m,c,p,a[d+6],17,-1473231341),p=f(p,u,m,c,a[d+7],22,-45705983),c=f(c,p,u,m,a[d+8],7,1770035416),m=f(m,c,p,u,a[d+9],12,-1958414417),u=f(u,m,c,p,a[d+10],17,-42063),p=f(p,u,m,c,a[d+11],22,-1990404162),c=f(c,p,u,m,a[d+12],7,1804603682),m=f(m,c,p,u,a[d+13],12,-40341101),u=f(u,m,c,p,a[d+14],17,-1502002290),p=f(p,u,m,c,a[d+15],22,1236535329),c=h(c,p,u,m,a[d+1],5,-165796510),m=h(m,c,p,u,a[d+6],9,-1069501632),u=h(u,m,c,p,a[d+11],14,643717713),p=h(p,u,m,c,a[d+0],20,-373897302),c=h(c,p,u,m,a[d+5],5,-701558691),m=h(m,c,p,u,a[d+10],9,38016083),u=h(u,m,c,p,a[d+15],14,-660478335),p=h(p,u,m,c,a[d+4],20,-405537848),c=h(c,p,u,m,a[d+9],5,568446438),m=h(m,c,p,u,a[d+14],9,-1019803690),u=h(u,m,c,p,a[d+3],14,-187363961),p=h(p,u,m,c,a[d+8],20,1163531501),c=h(c,p,u,m,a[d+13],5,-1444681467),m=h(m,c,p,u,a[d+2],9,-51403784),u=h(u,m,c,p,a[d+7],14,1735328473),p=h(p,u,m,c,a[d+12],20,-1926607734),c=b(c,p,u,m,a[d+5],4,-378558),m=b(m,c,p,u,a[d+8],11,-2022574463),u=b(u,m,c,p,a[d+11],16,1839030562),p=b(p,u,m,c,a[d+14],23,-35309556),c=b(c,p,u,m,a[d+1],4,-1530992060),m=b(m,c,p,u,a[d+4],11,1272893353),u=b(u,m,c,p,a[d+7],16,-155497632),p=b(p,u,m,c,a[d+10],23,-1094730640),c=b(c,p,u,m,a[d+13],4,681279174),m=b(m,c,p,u,a[d+0],11,-358537222),u=b(u,m,c,p,a[d+3],16,-722521979),p=b(p,u,m,c,a[d+6],23,76029189),c=b(c,p,u,m,a[d+9],4,-640364487),m=b(m,c,p,u,a[d+12],11,-421815835),u=b(u,m,c,p,a[d+15],16,530742520),p=b(p,u,m,c,a[d+2],23,-995338651),c=w(c,p,u,m,a[d+0],6,-198630844),m=w(m,c,p,u,a[d+7],10,1126891415),u=w(u,m,c,p,a[d+14],15,-1416354905),p=w(p,u,m,c,a[d+5],21,-57434055),c=w(c,p,u,m,a[d+12],6,1700485571),m=w(m,c,p,u,a[d+3],10,-1894986606),u=w(u,m,c,p,a[d+10],15,-1051523),p=w(p,u,m,c,a[d+1],21,-2054922799),c=w(c,p,u,m,a[d+8],6,1873313359),m=w(m,c,p,u,a[d+15],10,-30611744),u=w(u,m,c,p,a[d+6],15,-1560198380),p=w(p,u,m,c,a[d+13],21,1309151649),c=w(c,p,u,m,a[d+4],6,-145523070),m=w(m,c,p,u,a[d+11],10,-1120210379),u=w(u,m,c,p,a[d+2],15,718787259),p=w(p,u,m,c,a[d+9],21,-343485551),c=c+y>>>0,p=p+g>>>0,u=u+v>>>0,m=m+E>>>0}return t.endian([c,p,u,m])};i._ff=function(e,t,n,r,o,l,i){var a=e+(t&n|~t&r)+(o>>>0)+i;return(a<<l|a>>>32-l)+t},i._gg=function(e,t,n,r,o,l,i){var a=e+(t&r|n&~r)+(o>>>0)+i;return(a<<l|a>>>32-l)+t},i._hh=function(e,t,n,r,o,l,i){var a=e+(t^n^r)+(o>>>0)+i;return(a<<l|a>>>32-l)+t},i._ii=function(e,t,n,r,o,l,i){var a=e+(n^(t|~r))+(o>>>0)+i;return(a<<l|a>>>32-l)+t},i._blocksize=16,i._digestsize=16,e.exports=function(e,n){if(void 0===e||null===e)throw new Error("Illegal argument "+e);var r=t.wordsToBytes(i(e,n));return n&&n.asBytes?r:n&&n.asString?l.bytesToString(r):t.bytesToHex(r)}}()},function(e,t){!function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&n.rotl(e,8)|4278255360&n.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=n.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,r=0;n<e.length;n++,r+=8)t[r>>>5]|=e[n]<<24-r%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n<e.length;n++)t.push((e[n]>>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(parseInt(e.substr(n,2),16));return t},bytesToBase64:function(e){for(var n=[],r=0;r<e.length;r+=3)for(var o=e[r]<<16|e[r+1]<<8|e[r+2],l=0;l<4;l++)8*r+6*l<=8*e.length?n.push(t.charAt(o>>>6*(3-l)&63)):n.push("=");return n.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var n=[],r=0,o=0;r<e.length;o=++r%4)0!=o&&n.push((t.indexOf(e.charAt(r-1))&Math.pow(2,-2*o+8)-1)<<2*o|t.indexOf(e.charAt(r))>>>6-2*o);return n}};e.exports=n}()},function(e,t){function n(e){return!!e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function r(e){return"function"===typeof e.readFloatLE&&"function"===typeof e.slice&&n(e.slice(0,0))}e.exports=function(e){return null!=e&&(n(e)||r(e)||!!e._isBuffer)}},function(e,t,n){"use strict";function r(e){var t=e.attributes,n=e.setAttributes,r=e.isYTChannel,i=e.isOpensea,p=t.width,u=t.height,m=t.editingURL,d=t.embedHTML;return!m&&d&&wp.element.createElement(c,null,!i&&wp.element.createElement(s,{title:__("Embeded Options")},wp.element.createElement("div",null,wp.element.createElement("p",null,__("You can adjust the width and height of embedded content.")),wp.element.createElement(a,{label:__("Width"),value:p,onChange:function(e){return n({width:e})}}),wp.element.createElement(a,{label:__("Height"),value:u,onChange:function(e){return n({height:e})}})),r&&wp.element.createElement(o.a,{attributes:t,setAttributes:n})),i&&wp.element.createElement(l.a,{attributes:t,setAttributes:n}))}t.a=r;var o=n(62),l=n(63),__=wp.i18n.__,i=wp.components,a=i.TextControl,s=i.PanelBody,c=wp.blockEditor.InspectorControls},function(e,t,n){"use strict";function r(e){var t=e.attributes,n=e.setAttributes,r=t.ispagination,o=t.pagesize,c=t.columns,p=t.gapbetweenvideos;return wp.element.createElement("div",null,wp.element.createElement(l,{label:__("Video Per Page"),value:o,onChange:function(e){return n({pagesize:e})},type:"number",max:50}),wp.element.createElement("p",null,"Specify the number of videos you wish to show on each page."),wp.element.createElement(i,{label:__("Column"),value:c,options:[{label:"Auto",value:"auto"},{label:"2",value:"2"},{label:"3",value:"3"},{label:"4",value:"4"},{label:"6",value:"6"}],onChange:function(e){return n({columns:e})},__nextHasNoMarginBottom:!0}),wp.element.createElement(a,{label:__("Gap Between Videos"),value:p,onChange:function(e){return n({gapbetweenvideos:e})},min:1,max:100}),wp.element.createElement("p",null,"Specify the gap between youtube videos."),wp.element.createElement(s,{label:__("Pagination"),checked:r,onChange:function(e){return n({ispagination:e})}}))}t.a=r;var __=wp.i18n.__,o=wp.components,l=o.TextControl,i=o.SelectControl,a=o.RangeControl,s=o.ToggleControl},function(e,t,n){"use strict";function r(e){var t=e.attributes,n=e.setAttributes,r=t.limit,l=t.orderby,f=t.layout,h=t.preset,b=t.nftperrow,w=t.nftimage,y=t.nftcreator,g=t.prefix_nftcreator,v=t.nfttitle,E=t.nftprice,_=t.prefix_nftprice,L=t.nftlastsale,k=t.prefix_nftlastsale,C=t.nftbutton,S=t.label_nftbutton,x=(t.alignment,t.itemBGColor),O=t.titleColor,T=t.titleFontsize,U=t.creatorColor,j=t.creatorFontsize,B=t.creatorLinkColor,F=t.creatorLinkFontsize,M=t.priceColor,P=t.priceFontsize,R=t.lastSaleColor,z=t.lastSaleFontsize,D=t.buttonTextColor,N=t.buttonBackgroundColor,I=t.buttonFontSize,A=embedpressObj.is_pro_plugin_active,H=function(e,t){t||(document.querySelector(".pro__alert__wrap").style.display="block")};document.querySelector(".pro__alert__wrap")||(document.querySelector("body").append(function(e){var t=document.createElement("div");return t.innerHTML='\n\t\t<div class="pro__alert__wrap" style="display: none;">\n\t\t\t<div class="pro__alert__card">\n\t\t\t\t<img src="../wp-content/plugins/embedpress/EmbedPress/Ends/Back/Settings/assets/img/alert.svg" alt=""/>\n\t\t\t\t\t<h2>Opps...</h2>\n\t\t\t\t\t<p>You need to upgrade to the <a href="https://wpdeveloper.com/in/upgrade-embedpress" target="_blank">Premium</a> Version to use this feature</p>\n\t\t\t\t\t<a href="#" class="button radius-10">Close</a>\n\t\t\t</div>\n\t\t</div>\n\t\t',t}()),function(){document.querySelector(".pro__alert__wrap")&&document.querySelector(".pro__alert__wrap .pro__alert__card .button").addEventListener("click",function(e){document.querySelector(".pro__alert__wrap").style.display="none"})}());var V=[{name:__("Small"),slug:"small",size:16},{name:__("Medium"),slug:"medium",size:18},{name:__("Big"),slug:"big",size:26}],G=[{name:"",color:"red"},{name:"",color:"green"},{name:"",color:"blue"},{name:"",color:"yellow"},{name:"",color:"orange"}];return wp.element.createElement("div",null,wp.element.createElement(p,{title:__("Opensea Options"),initialOpen:!0},wp.element.createElement("div",null,wp.element.createElement(a,{label:__("Limit","embedpress"),value:r,onChange:function(e){return n({limit:e})},min:1,max:100}),wp.element.createElement(i,{label:__("Order By","embedpress"),value:l,options:[{label:"Oldest",value:"asc"},{label:"Newest",value:"desc"}],onChange:function(e){return n({orderby:e})},__nextHasNoMarginBottom:!0}),wp.element.createElement(i,{label:__("Layout","embedpress"),value:f,options:[{label:"Grid",value:"ep-grid"},{label:"List",value:"ep-list"}],onChange:function(e){return n({layout:e})}}),"ep-grid"==f&&wp.element.createElement(i,{label:__("Preset","embedpress"),value:h,options:[{label:"Preset 1",value:"ep-preset-1"},{label:"Preset 2",value:"ep-preset-2"}],onChange:function(e){return n({preset:e})}}),wp.element.createElement(a,{label:__("Item Per Row","embedpress"),value:b||3,onChange:function(e){return n({nftperrow:e})},min:1,max:6}),wp.element.createElement(s,{label:__("Thumbnail","embedpress"),checked:w,onChange:function(e){return n({nftimage:e})}}),wp.element.createElement(s,{label:__("Title","embedpress"),checked:v,onChange:function(e){return n({nfttitle:e})}}),wp.element.createElement(s,{label:__("Creator","embedpress"),checked:y,onChange:function(e){return n({nftcreator:e})}}),y&&wp.element.createElement("div",{className:A?"pro-control-active":"pro-control opensea-control",onClick:function(e){H(0,A)}},wp.element.createElement(c,{label:__("Creator Prefix","embedpress"),value:g,onChange:function(e){return n({prefix_nftcreator:e})}}),!A&&wp.element.createElement("span",{className:"isPro"},__("pro","embedpress"))),wp.element.createElement(s,{label:__("Show Price","embedpress"),checked:E,onChange:function(e){return n({nftprice:e})}}),E&&wp.element.createElement("div",{className:A?"pro-control-active":"pro-control opensea-control",onClick:function(e){H(0,A)}},wp.element.createElement(c,{label:__("Price Prefix","embedpress"),value:_,onChange:function(e){return n({prefix_nftprice:e})}}),!A&&wp.element.createElement("span",{className:"isPro"},__("pro","embedpress"))),wp.element.createElement(s,{label:__("Last Sale","embedpress"),checked:L,onChange:function(e){return n({nftlastsale:e})}}),L&&wp.element.createElement("div",{className:A?"pro-control-active":"pro-control opensea-control",onClick:function(e){H(0,A)}},wp.element.createElement(c,{label:__("Last Sale Prefix","embedpress"),value:k,onChange:function(e){return n({prefix_nftlastsale:e})}}),!A&&wp.element.createElement("span",{className:"isPro"},__("pro","embedpress"))),wp.element.createElement(s,{label:__("Show Button","embedpress"),checked:C,onChange:function(e){return n({nftbutton:e})}}),C&&wp.element.createElement("div",{className:A?"pro-control-active":"pro-control opensea-control",onClick:function(e){H(0,A)}},wp.element.createElement(c,{label:__("Button Label","embedpress"),value:S,onChange:function(e){return n({label_nftbutton:e})}}),!A&&wp.element.createElement("span",{className:"isPro"},__("pro","embedpress"))))),wp.element.createElement(p,{title:__("Color and Typography"),initialOpen:!1},wp.element.createElement("p",null,__("You can adjust the color and typography of embedded content.")),wp.element.createElement(d,null,wp.element.createElement(p,{title:__("NFT Item"),initialOpen:!1},wp.element.createElement(o.a,{headerText:"Background Color"}),wp.element.createElement(u,{label:__("Background Color"),colors:G,value:x,onChange:function(e){return n({itemBGColor:e})}})),wp.element.createElement(p,{title:__("Title"),initialOpen:!1},wp.element.createElement(o.a,{headerText:"Color"}),wp.element.createElement(u,{label:__("Color"),colors:G,value:O,onChange:function(e){return n({titleColor:e})}}),wp.element.createElement(o.a,{headerText:"FontSize"}),wp.element.createElement(m,{__nextHasNoMarginBottom:!0,fontSizes:V,value:T,fallbackFontSize:16,onChange:function(e){return n({titleFontsize:e})}})),wp.element.createElement(p,{title:__("Creator"),initialOpen:!1},wp.element.createElement(o.a,{headerText:"Color"}),wp.element.createElement(u,{label:__("Color"),colors:G,value:U,onChange:function(e){return n({creatorColor:e})}}),wp.element.createElement(o.a,{headerText:"FontSize"}),wp.element.createElement(m,{__nextHasNoMarginBottom:!0,fontSizes:V,value:j,fallbackFontSize:16,onChange:function(e){return n({creatorFontsize:e})}}),wp.element.createElement(o.a,{headerText:"Link Color"}),wp.element.createElement(u,{label:__("Color"),colors:G,value:B,onChange:function(e){return n({creatorLinkColor:e})}}),wp.element.createElement(o.a,{headerText:"Link FontSize"}),wp.element.createElement(m,{__nextHasNoMarginBottom:!0,fontSizes:V,value:F,fallbackFontSize:16,onChange:function(e){return n({creatorLinkFontsize:e})}})),wp.element.createElement(p,{title:__("Current Price"),initialOpen:!1},wp.element.createElement(o.a,{headerText:"Color"}),wp.element.createElement(u,{label:__("Color"),colors:G,value:M,onChange:function(e){return n({priceColor:e})}}),wp.element.createElement(o.a,{headerText:"FontSize"}),wp.element.createElement(m,{__nextHasNoMarginBottom:!0,fontSizes:V,value:P,fallbackFontSize:16,onChange:function(e){return n({priceFontsize:e})}})),wp.element.createElement(p,{title:__("Last Sale Price"),initialOpen:!1},wp.element.createElement(o.a,{headerText:"Color"}),wp.element.createElement(u,{label:__("Color"),colors:G,value:R,onChange:function(e){return n({lastSaleColor:e})}}),wp.element.createElement(o.a,{headerText:"FontSize"}),wp.element.createElement(m,{__nextHasNoMarginBottom:!0,fontSizes:V,value:z,fallbackFontSize:16,onChange:function(e){return n({lastSaleFontsize:e})}})),wp.element.createElement(p,{title:__("Button"),initialOpen:!1},wp.element.createElement(o.a,{headerText:"Color"}),wp.element.createElement(u,{label:__("Color"),colors:G,value:D,onChange:function(e){return n({buttonTextColor:e})}}),wp.element.createElement(o.a,{headerText:"Background Color"}),wp.element.createElement(u,{label:__("Color"),colors:G,value:N,onChange:function(e){return n({buttonBackgroundColor:e})}}),wp.element.createElement(o.a,{headerText:"FontSize"}),wp.element.createElement(m,{__nextHasNoMarginBottom:!0,fontSizes:V,value:I,fallbackFontSize:16,onChange:function(e){return n({buttonFontSize:e})}})))))}t.a=r;var o=n(64),__=wp.i18n.__,l=wp.components,i=l.SelectControl,a=l.RangeControl,s=l.ToggleControl,c=l.TextControl,p=l.PanelBody,u=l.ColorPalette,m=l.FontSizePicker,d=wp.blockEditor.InspectorControls},function(e,t,n){"use strict";function r(e){var t=e.headerText;return wp.element.createElement("h4",null,t)}t.a=r},function(e,t,n){"use strict";n(66),wp.i18n.__},function(e,t,n){"use strict";function r(){return wp.element.createElement("div",{class:"ep_nft_item"},wp.element.createElement("svg",{id:"ejvt20hDbyT1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 345",shapeRendering:"geometricPrecision",textRendering:"geometricPrecision"},wp.element.createElement("defs",null,wp.element.createElement("linearGradient",{id:"ejvt20hDbyT9-fill",x1:-.245,y1:.501,x2:.5,y2:.5,spreadMethod:"reflect",gradientUnits:"objectBoundingBox"},wp.element.createElement("stop",{id:"ejvt20hDbyT9-fill-0",offset:"0%",stopColor:"rgba(213,224,249,0)"}),wp.element.createElement("stop",{id:"ejvt20hDbyT9-fill-1",offset:"100%",stopColor:"rgba(213,224,249,0.52)"})),wp.element.createElement("linearGradient",{id:"ejvt20hDbyT10-fill",x1:-.245,y1:.501,x2:.5,y2:.5,spreadMethod:"reflect",gradientUnits:"objectBoundingBox"},wp.element.createElement("stop",{id:"ejvt20hDbyT10-fill-0",offset:"0%",stopColor:"rgba(213,224,249,0)"}),wp.element.createElement("stop",{id:"ejvt20hDbyT10-fill-1",offset:"100%",stopColor:"rgba(213,224,249,0.52)"})),wp.element.createElement("linearGradient",{id:"ejvt20hDbyT11-fill",x1:-.245,y1:.501,x2:.5,y2:.5,spreadMethod:"reflect",gradientUnits:"objectBoundingBox"},wp.element.createElement("stop",{id:"ejvt20hDbyT11-fill-0",offset:"0%",stopColor:"rgba(213,224,249,0)"}),wp.element.createElement("stop",{id:"ejvt20hDbyT11-fill-1",offset:"100%",stopColor:"rgba(213,224,249,0.52)"}))),wp.element.createElement("rect",{width:320,height:189,rx:3,ry:3,fill:"#e8efff"}),wp.element.createElement("rect",{width:320,height:20,rx:3,ry:3,transform:"translate(0 219)",fill:"#e8efff"}),wp.element.createElement("rect",{width:271,height:20,rx:3,ry:3,transform:"translate(0 249)",fill:"#e8efff"}),wp.element.createElement("rect",{width:130,height:46,rx:3,ry:3,transform:"translate(0 299)",fill:"#e8efff"}),wp.element.createElement("rect",{width:80,height:12,rx:3,ry:3,transform:"translate(25 316)",fill:"#ced9f0"}),wp.element.createElement("g",{mask:"url(#ejvt20hDbyT12)"},wp.element.createElement("rect",{id:"ejvt20hDbyT9",width:79.455,height:58.345,rx:0,ry:0,transform:"matrix(2.7339 .00871 -.00413 1.29575 -195.005 288.679)",fill:"url(#ejvt20hDbyT9-fill)",strokeWidth:0}),wp.element.createElement("rect",{id:"ejvt20hDbyT10",width:79.455,height:57.876,rx:0,ry:0,transform:"matrix(2.7339 .00871 -.00413 1.29575 -194.736 204.238)",fill:"url(#ejvt20hDbyT10-fill)",strokeWidth:0}),wp.element.createElement("rect",{id:"ejvt20hDbyT11",width:79.455,height:164.549,rx:0,ry:0,transform:"matrix(2.7339 .00871 -.00413 1.29574 -194.029 -17.716)",fill:"url(#ejvt20hDbyT11-fill)",strokeWidth:0}),wp.element.createElement("mask",{id:"ejvt20hDbyT12",maskType:"luminance"},wp.element.createElement("rect",{width:320,height:189,rx:3,ry:3,fill:"#e8efff"}),wp.element.createElement("rect",{width:320,height:20,rx:3,ry:3,transform:"translate(0 219)",fill:"#e8efff"}),wp.element.createElement("rect",{width:271,height:20,rx:3,ry:3,transform:"translate(0 249)",fill:"#e8efff"}),wp.element.createElement("rect",{width:130,height:46,rx:3,ry:3,transform:"translate(0 299)",fill:"#e8efff"}),wp.element.createElement("rect",{width:80,height:12,rx:3,ry:3,transform:"translate(25 316)",fill:"#ced9f0"}))),wp.element.createElement("script",null)))}t.a=r},function(e,t,n){"use strict";var r=n(68),o=(n.n(r),n(69)),l=(n.n(o),n(70)),i=n(0),__=wp.i18n.__,a=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks["embedpress-pdf"]&&a("embedpress/embedpress-pdf",{title:__("EmbedPress PDF"),icon:i.c,category:"embedpress",keywords:[__("embedpress"),__("pdf"),__("doc"),__("document")],supports:{align:["left","center","right"],default:""},attributes:{id:{type:"string"},href:{type:"string"},powered_by:{type:"boolean",default:!0},presentation:{type:"boolean",default:!0},themeMode:{type:"string",default:"dafult"},position:{type:"string",default:"top"},download:{type:"boolean",default:!0},open:{type:"boolean",default:!1},copy_text:{type:"boolean",default:!0},toolbar:{type:"boolean",default:!0},doc_details:{type:"boolean",default:!0},doc_rotation:{type:"boolean",default:!0},width:{type:"number",default:600},height:{type:"number",default:450},fileName:{type:"string"},mime:{type:"string"}},edit:l.a,save:function(e){return null}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=n(4),a=n(5),s=n(1),c=n(71),p=(n.n(c),n(72)),u=(n.n(p),n(0)),m=function(){function e(e,t){var n=[],_n=!0,r=!1,o=void 0;try{for(var l,i=e[Symbol.iterator]();!(_n=(l=i.next()).done)&&(n.push(l.value),!t||n.length!==t);_n=!0);}catch(e){r=!0,o=e}finally{try{!_n&&i.return&&i.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),d=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),__=wp.i18n.__,f=wp.blob,h=f.getBlobByURL,b=f.isBlobURL,w=f.revokeBlobURL,y=wp.blockEditor,g=y.BlockIcon,v=y.MediaPlaceholder,E=y.InspectorControls,_=wp.element,L=_.Component,k=_.Fragment,C=wp.components,S=C.RangeControl,x=C.PanelBody,O=C.ExternalLink,T=C.ToggleControl,U=C.SelectControl,j=["application/pdf"],B=function(e){function t(){r(this,t);var e=o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.onSelectFile=e.onSelectFile.bind(e),e.onUploadError=e.onUploadError.bind(e),e.onLoad=e.onLoad.bind(e),e.hideOverlay=e.hideOverlay.bind(e),e.iframeManupulate=e.iframeManupulate.bind(e),e.setThemeMode=e.setThemeMode.bind(e),e.isPro=e.isPro.bind(e),e.addProAlert=e.addProAlert.bind(e),e.state={hasError:!1,fetching:!1,interactive:!1,loadPdf:!0},e}return l(t,e),d(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.attributes,r=t.mediaUpload,o=t.noticeOperations,l=n.href;if(b(l)){r({filesList:[h(l)],onFileChange:function(t){var n=m(t,1),r=n[0];return e.onSelectFile(r)},onError:function(t){e.setState({hasError:!0}),o.createErrorNotice(t)}}),w(l)}this.props.attributes.href&&"application/pdf"===this.props.attributes.mime&&this.state.loadPdf&&this.setState({loadPdf:!1})}},{key:"componentDidUpdate",value:function(e){e.isSelected&&!this.props.isSelected&&this.setState({showCopyConfirmation:!1})}},{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"onLoad",value:function(){this.setState({fetching:!1})}},{key:"onSelectFile",value:function(e){e&&e.url&&(this.setState({hasError:!1}),this.props.setAttributes({href:e.url,fileName:e.title,id:"embedpress-pdf-"+Date.now(),mime:e.mime}),void 0!==embedpressObj.branding&&void 0!==embedpressObj.branding.powered_by&&this.props.setAttributes({powered_by:embedpressObj.branding.powered_by}),"application/pdf"===e.mime&&this.setState({loadPdf:!1}))}},{key:"onUploadError",value:function(e){var t=this.props.noticeOperations;t.removeAllNotices(),t.createErrorNotice(e)}},{key:"isDisplay",value:function(e){return e=e?"block":"none"}},{key:"iframeManupulate",value:function(e,t,n,r,o,l,i,a,s,c,p){var u=this,m=setInterval(function(){var d="",f=document.querySelector(e).contentWindow.document,h=f.getElementsByTagName("head")[0],b=f.createElement("style");b.setAttribute("id","EBiframeStyleID"),!1===i&&(n=!1,o=!0,l=!1,a=!0,s=!1,c=!1,p=!1),i=u.isDisplay(i),n=u.isDisplay(n),o=u.isDisplay(o),l=u.isDisplay(l),a=u.isDisplay(a),"block"===a&&(a="all"),c=u.isDisplay(c),p=u.isDisplay(p),"top"===r?(r="top:0;bottom:auto;",d=""):(r="bottom:0;top:auto;",d="\n\t\t\t\t.findbar, .secondaryToolbar {\n\t\t\t\t\ttop: auto;bottom: 32px;\n\t\t\t\t}\n\t\t\t\t.doorHangerRight:after{\n\t\t\t\t\ttransform: rotate(180deg);\n\t\t\t\t\tbottom: -16px;\n\t\t\t\t}\n\t\t\t\t .doorHangerRight:before {\n\t\t\t\t\ttransform: rotate(180deg);\n\t\t\t\t\tbottom: -18px;\n\t\t\t\t}\n\n\t\t\t\t.findbar.doorHanger:before {\n\t\t\t\t\tbottom: -18px;\n\t\t\t\t\ttransform: rotate(180deg);\n\t\t\t\t}\n\t\t\t\t.findbar.doorHanger:after {\n\t\t\t\t\tbottom: -16px;\n\t\t\t\t\ttransform: rotate(180deg);\n\t\t\t\t}\n\t\t\t"),b.textContent="\n\t\t\t.toolbar{\n\t\t\t\tdisplay: "+i+"!important;\n\t\t\t\tposition: absolute;\n\t\t\t\t"+r+"\n\n\t\t\t}\n\n\t\t\t#secondaryToolbar{\n\t\t\t\tdisplay: "+i+";\n\t\t\t}\n\t\t\t#secondaryPresentationMode, #toolbarViewerRight #presentationMode{\n\t\t\t\tdisplay: "+n+"!important;\n\t\t\t}\n\t\t\t#secondaryOpenFile, #toolbarViewerRight #openFile{\n\t\t\t\tdisplay: "+l+"!important;\n\t\t\t}\n\t\t\t#secondaryDownload, #secondaryPrint, #toolbarViewerRight #print, #toolbarViewerRight #download{\n\t\t\t\tdisplay: "+o+"!important;\n\t\t\t}\n\t\t\t#pageRotateCw{\n\t\t\t\tdisplay: "+p+"!important;\n\t\t\t}\n\t\t\t#pageRotateCcw{\n\t\t\t\tdisplay: "+p+"!important;\n\t\t\t}\n\t\t\t#documentProperties{\n\t\t\t\tdisplay: "+c+"!important;\n\t\t\t}\n\t\t\t.textLayer{\n\t\t\t\tuser-select: "+a+"!important;\n\t\t\t}\n\n\t\t\t"+d+"\n\n\t\t",u.setThemeMode(e,t),h&&(f.getElementById("EBiframeStyleID")&&f.getElementById("EBiframeStyleID").remove(),h.appendChild(b),clearInterval(m))},100)}},{key:"setThemeMode",value:function(e,t){var n=document.querySelector(e).contentWindow.document,r=n.getElementsByTagName("html")[0];r&&r.setAttribute("ep-data-theme",t)}},{key:"addProAlert",value:function(e,t){t||(document.querySelector(".pro__alert__wrap").style.display="block")}},{key:"removeAlert",value:function(){document.querySelector(".pro__alert__wrap")&&document.querySelector(".pro__alert__wrap .pro__alert__card .button").addEventListener("click",function(e){document.querySelector(".pro__alert__wrap").style.display="none"})}},{key:"isPro",value:function(e){var t=document.createElement("div");return t.innerHTML='\n\t\t<div class="pro__alert__wrap" style="display: none;">\n\t\t\t<div class="pro__alert__card">\n\t\t\t\t<img src="../wp-content/plugins/embedpress/EmbedPress/Ends/Back/Settings/assets/img/alert.svg" alt=""/>\n\t\t\t\t\t<h2>Opps...</h2>\n\t\t\t\t\t<p>You need to upgrade to the <a href="https://wpdeveloper.com/in/upgrade-embedpress" target="_blank">Premium</a> Version to use this feature</p>\n\t\t\t\t\t<a href="#" class="button radius-10">Close</a>\n\t\t\t</div>\n\t\t</div>\n\t\t',t}},{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=t.noticeUI,o=t.setAttributes,l=t.clientId,c=n.href,m=n.mime,d=n.id,f=n.width,h=n.height,b=n.powered_by,w=n.themeMode,y=n.presentation,_=n.position,L=n.download,C=n.open,B=n.toolbar,F=n.copy_text,M=n.toolbar_position,P=n.doc_details,R=n.doc_rotation,z=this.state,D=z.hasError,N=z.interactive,I=z.fetching,A=z.loadPdf,H=embedpressObj.is_pro_plugin_active;if(H||(o({download:!0}),o({copy_text:!0})),document.querySelector(".pro__alert__wrap")||(document.querySelector("body").append(this.isPro("none")),this.removeAlert()),!c||D)return wp.element.createElement("div",{className:"embedpress-document-editmode"},wp.element.createElement(v,{icon:wp.element.createElement(g,{icon:u.c}),labels:{title:__("EmbedPress PDF"),instructions:__("Upload a PDF file or pick one from your media library for embed.")},onSelect:this.onSelectFile,notices:r,allowedTypes:j,onError:this.onUploadError},wp.element.createElement("div",{style:{width:"100%"},className:"components-placeholder__learn-more embedpress-doc-link"},wp.element.createElement(O,{href:"https://embedpress.com/docs/embed-document/"},"Learn more about Embedded document "))));var V="//view.officeapps.live.com/op/embed.aspx?src="+c,G=embedpressObj.pdf_renderer+"?file="+c;return this.iframeManupulate("."+d,w,y,_,L,C,B,F,M,P,R),wp.element.createElement(k,null,I&&"application/pdf"!==m?wp.element.createElement(s.a,null):null,wp.element.createElement("div",{className:"embedpress-document-embed ep-doc-"+d,style:{width:f,maxWidth:"100%"},id:"ep-doc-"+this.props.clientId},"application/pdf"===m&&wp.element.createElement("iframe",{powered_by:b,style:{height:h,width:f},className:"embedpress-embed-document-pdf "+d,"data-emid":d,"data-emsrc":c,src:G}),"application/pdf"!==m&&wp.element.createElement(i.a,{onMouseUponMouseUp:this.hideOverlay,style:{height:h,width:f,display:I||!A?"none":""},onLoad:this.onLoad,src:V}),!N&&wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}),b&&wp.element.createElement("p",{className:"embedpress-el-powered"},"Powered By EmbedPress"),!I&&wp.element.createElement(a.a,{id:d})),wp.element.createElement(E,{key:"inspector"},wp.element.createElement(x,{title:__("Embed Size(px)","embedpress")},wp.element.createElement(S,{label:__("Width","embedpress"),value:f,onChange:function(e){return o({width:e})},max:1e3,min:1}),wp.element.createElement(S,{label:__("Height","embedpress"),value:h,onChange:function(e){return o({height:e})},max:1e3,min:1})),wp.element.createElement(x,{title:__("PDF Control Settings","embedpress"),initialOpen:!1},wp.element.createElement(U,{label:"Theme",value:w,options:[{label:"System Default",value:"dafult"},{label:"Dark",value:"dark"},{label:"Light",value:"light"}],onChange:function(e){return o({themeMode:e})},__nextHasNoMarginBottom:!0}),wp.element.createElement("div",{className:H?"pro-control-active":"pro-control",onClick:function(t){e.addProAlert(t,H)}},wp.element.createElement(T,{label:__("Toolbar","embedpress"),description:__("Show or Hide toolbar. Note: If you disable toolbar access then every toolbar options will be disabled","embedpress"),onChange:function(e){return o({toolbar:e})},checked:B,style:{marginTop:"30px"}}),!H&&wp.element.createElement("span",{className:"isPro"},__("pro","embedpress"))),B&&wp.element.createElement(k,null,wp.element.createElement(p.__experimentalToggleGroupControl,{label:"Toolbar Position",value:_,onChange:function(e){return o({position:e})}},wp.element.createElement(p.__experimentalToggleGroupControlOption,{value:"top",label:"Top"}),wp.element.createElement(p.__experimentalToggleGroupControlOption,{value:"bottom",label:"Bottom"})),wp.element.createElement(T,{label:__("Presentation Mode","embedpress"),onChange:function(e){return o({presentation:e})},checked:y}),wp.element.createElement("div",{className:H?"pro-control-active":"pro-control",onClick:function(t){e.addProAlert(t,H)}},wp.element.createElement(T,{label:__("Print/Download","embedpress"),onChange:function(e){return o({download:e})},checked:L}),!H&&wp.element.createElement("span",{className:"isPro"},__("pro","embedpress"))),wp.element.createElement("div",{className:H?"pro-control-active":"pro-control",onClick:function(t){e.addProAlert(t,H)}},wp.element.createElement(T,{label:__("Copy Text","embedpress"),onChange:function(e){return o({copy_text:e})},checked:F,className:"disabled"}),!H&&wp.element.createElement("span",{className:"isPro"},__("pro","embedpress"))),wp.element.createElement(T,{label:__("Rotation","embedpress"),onChange:function(e){return o({doc_rotation:e})},checked:R}),wp.element.createElement(T,{label:__("Properties","embedpress"),onChange:function(e){return o({doc_details:e})},checked:P}),wp.element.createElement(T,{label:__("Powered By","embedpress"),onChange:function(e){return o({powered_by:e})},checked:b})))),wp.element.createElement("style",{style:{display:"none"}},"\n\t\t\t\t\t\t\t#block-"+l+" {\n\t\t\t\t\t\t\t\twidth:-webkit-fill-available;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t.embedpress-el-powered{\n\t\t\t\t\t\t\t\tmax-width: "+f+"\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t.alignright .embedpress-document-embed{\n\t\t\t\t\t\t\t\tfloat: right!important;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t.alignleft .embedpress-document-embed{\n\t\t\t\t\t\t\t\tfloat: left;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t"))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(L);t.a=B},function(e,t){e.exports=wp.apiFetch},function(e,t){e.exports=wp.components},function(e,t,n){"use strict";var r=n(74),o=(n.n(r),n(75)),l=(n.n(o),n(76)),i=n(0),__=wp.i18n.__,a=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks["embedpress-calendar"]&&a("embedpress/embedpress-calendar",{title:__("Google Calendar"),icon:i.a,category:"embedpress",keywords:["embedpress","embed","calendar","calender","google","cal","events","task","birthday"],supports:{align:["left","center","right"],default:"center",lightBlockWrapper:!0},attributes:{id:{type:"string"},powered_by:{type:"boolean",default:!0},is_public:{type:"boolean",default:!0},width:{type:"string",default:600},height:{type:"string",default:600},url:{type:"string",default:""},embedHTML:{type:"string",default:""}},edit:l.a,save:function(e){return null}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e){function t(){d({editingURL:!0,is_public:!0})}function n(e){e&&e.preventDefault(),w?(d({fetching:!0}),setTimeout(function(){d({fetching:!1,cannotEmbed:!1,editingURL:!1,embedHTML:"ready"})},500)):d({cannotEmbed:!0,fetching:!1,editingURL:!0})}var r=e.attributes,c=e.className,d=e.setAttributes,w=r.url,y=r.editingURL,g=r.fetching,v=r.cannotEmbed,E=r.embedHTML,_=r.height,L=r.width,k=r.powered_by,C=r.is_public,S=r.align,x=h?h({className:"align"+S,style:{width:L+"px",height:_+"px"}}):[];return wp.element.createElement(b,null,wp.element.createElement(f,null,wp.element.createElement(u,{title:__("Customize Embedded Calendar","embedpress")},wp.element.createElement("p",null,__("You can adjust the width and height of embedded content.","embedpress")),wp.element.createElement(p,{label:__("Width","embedpress"),value:L,onChange:function(e){return d({width:e})}}),wp.element.createElement(p,{label:__("Height","embedpress"),value:_,onChange:function(e){return d({height:e})}})),wp.element.createElement(u,{title:__("Calendar Type and other options","embedpress")},wp.element.createElement("p",null,__("You can show public calendar without any API key","embedpress")),wp.element.createElement(m,{label:__("Powered By","embedpress"),onChange:function(e){return d({powered_by:e})},checked:k}),wp.element.createElement(m,{label:__("Embedding Public Calendar","embedpress"),onChange:function(e){return d({is_public:e})},checked:C}))),(!E||y)&&!g&&C&&wp.element.createElement("div",x,wp.element.createElement(l.a,{label:__("Public Calendar Link"),onSubmit:n,value:w,cannotEmbed:v,onChange:function(e){return d({url:e.target.value})},icon:i.a,DocTitle:__("Learn more about EmbedPress Calendar"),docLink:"https://embedpress.com/docs/"})),g?wp.element.createElement("div",{className:c},wp.element.createElement(o.a,null)," "):null,E&&C&&!y&&!g&&wp.element.createElement("figure",x,C&&wp.element.createElement("iframe",{style:{display:g?"none":""},src:w,width:L,height:_}),k&&wp.element.createElement("p",{className:"embedpress-el-powered"},"Powered By EmbedPress"),wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:d({interactive:!0})}),wp.element.createElement(a.a,{showEditButton:E&&!v,switchBackToURLInput:t})),!C&&wp.element.createElement("figure",s({className:"testing"},x),wp.element.createElement("p",null,"Private Calendar will show in the frontend only.",wp.element.createElement("br",null),wp.element.createElement("strong",null,"Note: Private calendar needs EmbedPress Pro.")),k&&wp.element.createElement("p",{className:"embedpress-el-powered"},"Powered By EmbedPress"),wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:d({interactive:!0})}),wp.element.createElement(a.a,{showEditButton:E&&!v,switchBackToURLInput:t})))}t.a=r;var o=n(1),l=n(3),i=n(0),a=n(2),s=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},c=wp.components,p=c.TextControl,u=c.PanelBody,m=c.ToggleControl,d=wp.blockEditor,f=d.InspectorControls,h=d.useBlockProps,b=wp.element.Fragment,__=wp.i18n.__}]);
1
+ !function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=12)}([function(e,t,n){"use strict";n.d(t,"e",function(){return i}),n.d(t,"j",function(){return c}),n.d(t,"i",function(){return s}),n.d(t,"g",function(){return u}),n.d(t,"f",function(){return p}),n.d(t,"h",function(){return m}),n.d(t,"k",function(){return d}),n.d(t,"l",function(){return f}),n.d(t,"m",function(){return b}),n.d(t,"b",function(){return h}),n.d(t,"d",function(){return w}),n.d(t,"c",function(){return y}),n.d(t,"a",function(){return g});var r=wp.components,o=r.G,l=r.Path,a=(r.Polygon,r.SVG),i=wp.element.createElement(a,{xmlns:"http://www.w3.org/1999/xlink",viewBox:"0 0 48 48"}," ",wp.element.createElement(o,null,wp.element.createElement(l,{style:{fill:"#2196F3"},d:"M 37 45 L 11 45 C 9.34375 45 8 43.65625 8 42 L 8 6 C 8 4.34375 9.34375 3 11 3 L 30 3 L 40 13 L 40 42 C 40 43.65625 38.65625 45 37 45 Z "}),wp.element.createElement(l,{style:{fill:"#BBDEFB"},d:"M 40 13 L 30 13 L 30 3 Z "}),wp.element.createElement(l,{style:{fill:"#1565C0"},d:"M 30 13 L 40 23 L 40 13 Z "}),wp.element.createElement(l,{style:{fill:"#E3F2FD"},d:"M 15 23 L 33 23 L 33 25 L 15 25 Z "}),wp.element.createElement(l,{style:{fill:"#E3F2FD"},d:"M 15 27 L 33 27 L 33 29 L 15 29 Z "}),wp.element.createElement(l,{style:{fill:"#E3F2FD"},d:"M 15 31 L 33 31 L 33 33 L 15 33 Z "}),wp.element.createElement(l,{style:{fill:"#E3F2FD"},d:"M 15 35 L 25 35 L 25 37 L 15 37 Z "}))),c=wp.element.createElement(a,{xmlns:"http://www.w3.org/1999/xlink",enableBackground:"new 0 0 24 24",id:"Layer_2",version:"1.1",viewBox:"0 0 24 24"},wp.element.createElement(o,null,wp.element.createElement(l,{d:"M21,6l-6-6H5C3.8954306,0,3,0.8954305,3,2v20c0,1.1045704,0.8954306,2,2,2h14c1.1045704,0,2-0.8954296,2-2 V6z",style:{fill:"#FFC720"}}),wp.element.createElement(l,{d:"M17,6c-0.5444336,0-1.0367432-0.2190552-1.3973999-0.5719604L21,10.8254395V6H17z",style:{fill:"url(#SVGID_1_)"}}),wp.element.createElement(l,{d:"M19,23.75H5c-1.1045532,0-2-0.8954468-2-2V22c0,1.1045532,0.8954468,2,2,2h14c1.1045532,0,2-0.8954468,2-2 v-0.25C21,22.8545532,20.1045532,23.75,19,23.75z",style:{opacity:"0.1"}}),wp.element.createElement(l,{d:"M15,0v4c0,1.1045694,0.8954306,2,2,2h4L15,0z",style:{fill:"#FFE083"}}),wp.element.createElement(l,{d:"M17,5.75c-1.1045532,0-2-0.8954468-2-2V4c0,1.1045532,0.8954468,2,2,2h4l-0.25-0.25H17z",style:{opacity:"0.1"}}),wp.element.createElement(l,{d:"M15,0H5C3.8954468,0,3,0.8953857,3,2v0.25c0-1.1046143,0.8954468-2,2-2h10",style:{fill:"#FFFFFF",opacity:"0.2"}}),wp.element.createElement(l,{d:"M15.5,9h-7C7.6728516,9,7,9.6728516,7,10.5v6C7,17.3271484,7.6728516,18,8.5,18h7 c0.8271484,0,1.5-0.6728516,1.5-1.5v-6C17,9.6728516,16.3271484,9,15.5,9z M8,15.5V11h8v4.5H8z",style:{fill:"#FFFFFF"}}),wp.element.createElement(l,{d:"M21,6l-6-6H5C3.8954306,0,3,0.8954305,3,2v20c0,1.1045704,0.8954306,2,2,2h14 c1.1045704,0,2-0.8954296,2-2V6z",style:{fill:"url(#SVGID_2_)"}}))),s=wp.element.createElement(a,{xmlns:"http://www.w3.org/1999/xlink",viewBox:"0 0 48 48",version:"1.1"},wp.element.createElement(o,null,wp.element.createElement(l,{style:{fill:"#43A047"},d:"M 37 45 L 11 45 C 9.34375 45 8 43.65625 8 42 L 8 6 C 8 4.34375 9.34375 3 11 3 L 30 3 L 40 13 L 40 42 C 40 43.65625 38.65625 45 37 45 Z "}),wp.element.createElement(l,{style:{fill:"#C8E6C9"},d:"M 40 13 L 30 13 L 30 3 Z "}),wp.element.createElement(l,{style:{fill:"#2E7D32"},d:"M 30 13 L 40 23 L 40 13 Z "}),wp.element.createElement(l,{style:{fill:"#E8F5E9"},d:"M 31 23 L 15 23 L 15 37 L 33 37 L 33 23 Z M 17 25 L 21 25 L 21 27 L 17 27 Z M 17 29 L 21 29 L 21 31 L 17 31 Z M 17 33 L 21 33 L 21 35 L 17 35 Z M 31 35 L 23 35 L 23 33 L 31 33 Z M 31 31 L 23 31 L 23 29 L 31 29 Z M 31 27 L 23 27 L 23 25 L 31 25 Z "}))),u=wp.element.createElement(a,{xmlns:"http://www.w3.org/1999/xlink",viewBox:"0 0 48 48",version:"1.1"}," ",wp.element.createElement(o,null,wp.element.createElement(l,{style:{fill:"#7850C1"},d:"M 37 45 L 11 45 C 9.34375 45 8 43.65625 8 42 L 8 6 C 8 4.34375 9.34375 3 11 3 L 30 3 L 40 13 L 40 42 C 40 43.65625 38.65625 45 37 45 Z "}),wp.element.createElement(l,{style:{fill:"#C2ABE1"},d:"M 40 13 L 30 13 L 30 3 Z "}),wp.element.createElement(l,{style:{fill:"#2E7D32"},d:"M 30 13 L 40 23 L 40 13 Z "}),wp.element.createElement(l,{style:{fill:"#E8F5E9"},d:"M 19 23 L 33 23 L 33 25 L 19 25 Z "}),wp.element.createElement(l,{style:{fill:"#E8F5E9"},d:"M 19 28 L 33 28 L 33 30 L 19 30 Z "}),wp.element.createElement(l,{style:{fill:"#E8F5E9"},d:"M 19 33 L 33 33 L 33 35 L 19 35 Z "}),wp.element.createElement(l,{style:{fill:"#E8F5E9"},d:"M 15 23 L 17 23 L 17 25 L 15 25 Z "}),wp.element.createElement(l,{style:{fill:"#E8F5E9"},d:"M 15 28 L 17 28 L 17 30 L 15 30 Z "}),wp.element.createElement(l,{style:{fill:"#E8F5E9"},d:"M 15 33 L 17 33 L 17 35 L 15 35 Z "}))),p=wp.element.createElement(a,{xmlns:"http://www.w3.org/1999/xlink",viewBox:"0 0 48 48",version:"1.1"}," ",wp.element.createElement(o,null,wp.element.createElement(l,{style:{fill:"#DE5245"},d:"M37,45H11c-1.7,0-3-1.3-3-3V6c0-1.7,1.3-3,3-3h19l10,10v29C40,43.7,38.7,45,37,45z"}),wp.element.createElement(l,{style:{fill:"#EEA6A0"},d:"M40,13H30V3L40,13z"}),wp.element.createElement(l,{style:{fill:"#B3433A"},d:"M30,13l10,10V13H30z"}),wp.element.createElement(l,{style:{fill:"#FFFFFF"},d:"M20.5,32c-3,0-5.5-2.5-5.5-5.5c0-3,2.5-5.5,5.5-5.5s5.5,2.5,5.5,5.5C26,29.5,23.5,32,20.5,32z M20.5,23c-1.9,0-3.5,1.6-3.5,3.5s1.6,3.5,3.5,3.5s3.5-1.6,3.5-3.5S22.4,23,20.5,23z"}),wp.element.createElement(l,{style:{fill:"#FFFFFF"},d:"M27.6,29c-0.6,1.8-1.9,3.3-3.6,4.1V38h9v-9H27.6z"}))),m=wp.element.createElement(a,{xmlns:"http://www.w3.org/1999/xlink",viewBox:"0 0 48 48",version:"1.1"}," ",wp.element.createElement(o,null,wp.element.createElement(l,{style:{fill:"#1C9957"},d:"M 42 39 L 42 9 C 42 7.34375 40.65625 6 39 6 L 9 6 C 7.34375 6 6 7.34375 6 9 L 6 39 C 6 40.65625 7.34375 42 9 42 L 39 42 C 40.65625 42 42 40.65625 42 39 Z "}),wp.element.createElement(l,{style:{fill:"#3E7BF1"},d:"M 9 42 L 39 42 C 40.65625 42 24 26 24 26 C 24 26 7.34375 42 9 42 Z "}),wp.element.createElement(l,{style:{fill:"#CBCCC9"},d:"M 42 39 L 42 9 C 42 7.34375 26 24 26 24 C 26 24 42 40.65625 42 39 Z "}),wp.element.createElement(l,{style:{fill:"#EFEFEF"},d:"M 39 42 C 40.65625 42 42 40.65625 42 39 L 42 38.753906 L 26.246094 23 L 23 26.246094 L 38.753906 42 Z "}),wp.element.createElement(l,{style:{fill:"#FFD73D"},d:"M 42 9 C 42 7.34375 40.65625 6 39 6 L 38.753906 6 L 6 38.753906 L 6 39 C 6 40.65625 7.34375 42 9 42 L 9.246094 42 L 42 9.246094 Z "}),wp.element.createElement(l,{style:{fill:"#D73F35"},d:"M 36 2 C 30.476563 2 26 6.476563 26 12 C 26 18.8125 33.664063 21.296875 35.332031 31.851563 C 35.441406 32.53125 35.449219 33 36 33 C 36.550781 33 36.558594 32.53125 36.667969 31.851563 C 38.335938 21.296875 46 18.8125 46 12 C 46 6.476563 41.523438 2 36 2 Z "}),wp.element.createElement(l,{style:{fill:"#752622"},d:"M 39.5 12 C 39.5 13.933594 37.933594 15.5 36 15.5 C 34.066406 15.5 32.5 13.933594 32.5 12 C 32.5 10.066406 34.066406 8.5 36 8.5 C 37.933594 8.5 39.5 10.066406 39.5 12 Z "}),wp.element.createElement(l,{style:{fill:"#FFFFFF"},d:"M 14.492188 12.53125 L 14.492188 14.632813 L 17.488281 14.632813 C 17.09375 15.90625 16.03125 16.816406 14.492188 16.816406 C 12.660156 16.816406 11.175781 15.332031 11.175781 13.5 C 11.175781 11.664063 12.660156 10.179688 14.492188 10.179688 C 15.316406 10.179688 16.070313 10.484375 16.648438 10.980469 L 18.195313 9.433594 C 17.21875 8.542969 15.921875 8 14.492188 8 C 11.453125 8 8.992188 10.464844 8.992188 13.5 C 8.992188 16.535156 11.453125 19 14.492188 19 C 19.304688 19 20.128906 14.683594 19.675781 12.539063 Z "}))),d=wp.element.createElement(a,{xmlns:"http://www.w3.org/1999/xlink",viewBox:"0 0 48 48",version:"1.1"}," ",wp.element.createElement(o,null,wp.element.createElement(l,{style:{fill:"#FFFFFF"},d:"M 12 32 L 12 8 L 39 8 L 39 26 L 33 32 L 24 32 L 18 38 L 18 32 Z "}),wp.element.createElement(l,{style:{fill:"#8E24AA"},d:"M 9 5 L 6 12.121094 L 6 38 L 15 38 L 15 43 L 20 43 L 25 38 L 32 38 L 42 28 L 42 5 Z M 38 26 L 33 31 L 24 31 L 19 36 L 19 31 L 13 31 L 13 9 L 38 9 Z "}),wp.element.createElement(l,{style:{fill:"#8E24AA"},d:"M 32 25 L 27 25 L 27 15 L 32 15 Z "}),wp.element.createElement(l,{style:{fill:"#8E24AA"},d:"M 24 25 L 19 25 L 19 15 L 24 15 Z "}))),f=wp.element.createElement(a,{xmlns:"http://www.w3.org/1999/xlink",viewBox:"0 0 769 598",version:"1.1"}," ",wp.element.createElement(o,null,wp.element.createElement(l,{style:{fill:"#148ee0"},d:"M766.89,229.17c0,0 -17.78,35.38 -106.5,91.3c-37.82,23.79 -116.36,49.1 -217.33,58.86c-54.52,5.29 -154.9,0.99 -197.96,0.99c-43.29,0 -63.13,9.12 -101.95,52.84c-143.15,161.36 -143.15,161.36 -143.15,161.36c0,0 49.57,0.24 87.01,0.24c37.43,0 271.55,13.59 375.43,-14.98c337.36,-92.72 304.46,-350.62 304.46,-350.62z"}),wp.element.createElement(l,{style:{fill:"#54bbff"},d:"M757.84,126.66c16.23,-98.97 -39.68,-126.16 -39.68,-126.16c0,0 2.36,80.57 -145.7,97.65c-131.42,15.16 -572.46,3.74 -572.46,3.74c0,0 0,0 141.74,162.54c38.39,44.06 58.76,49.17 101.92,52.22c43.16,2.89 138.42,1.86 202.99,-3.05c70.58,-5.41 171.17,-28.43 239.19,-81.11c34.88,-26.98 65.21,-64.48 72,-105.83z"}))),b=wp.element.createElement(a,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",role:"img","aria-hidden":"true",focusable:"false"},wp.element.createElement(l,{d:"M21.8 8s-.195-1.377-.795-1.984c-.76-.797-1.613-.8-2.004-.847-2.798-.203-6.996-.203-6.996-.203h-.01s-4.197 0-6.996.202c-.39.046-1.242.05-2.003.846C2.395 6.623 2.2 8 2.2 8S2 9.62 2 11.24v1.517c0 1.618.2 3.237.2 3.237s.195 1.378.795 1.985c.76.797 1.76.77 2.205.855 1.6.153 6.8.2 6.8.2s4.203-.005 7-.208c.392-.047 1.244-.05 2.005-.847.6-.607.795-1.985.795-1.985s.2-1.618.2-3.237v-1.517C22 9.62 21.8 8 21.8 8zM9.935 14.595v-5.62l5.403 2.82-5.403 2.8z"})),h=(wp.element.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 56 23"},wp.element.createElement("g",null,wp.element.createElement("g",null,wp.element.createElement("path",{style:{fill:"#DA2B28"},className:"st0",d:"M55.4,3.7c-0.2-0.9-0.6-1.6-1.3-2.2c-0.7-0.6-1.4-0.9-2.3-1c-2.7-0.3-6.8-0.4-12.3-0.4 c-5.5,0-9.6,0.1-12.3,0.4c-0.9,0.1-1.6,0.5-2.3,1c-0.7,0.6-1.1,1.3-1.3,2.2c-0.4,1.7-0.6,4.3-0.6,7.8c0,3.5,0.2,6.1,0.6,7.8 c0.2,0.9,0.6,1.6,1.3,2.2c0.7,0.6,1.4,0.9,2.3,1c2.7,0.3,6.8,0.5,12.3,0.5c5.5,0,9.6-0.2,12.3-0.5c0.9-0.1,1.6-0.4,2.3-1 c0.7-0.6,1.1-1.3,1.3-2.2c0.4-1.7,0.6-4.3,0.6-7.8C56,8,55.8,5.4,55.4,3.7L55.4,3.7z M32.5,6h-2.4v12.6h-2.2V6h-2.3V3.9h6.9V6z M38.5,18.6h-2v-1.2c-0.8,0.9-1.6,1.4-2.3,1.4c-0.7,0-1.1-0.3-1.3-0.8c-0.1-0.4-0.2-0.9-0.2-1.6V7.6h2v8.1c0,0.5,0,0.7,0,0.8 c0,0.3,0.2,0.5,0.5,0.5c0.4,0,0.8-0.3,1.3-0.9V7.6h2V18.6z M46.1,15.3c0,1.1-0.1,1.8-0.2,2.2c-0.3,0.8-0.8,1.2-1.6,1.2 c-0.7,0-1.4-0.4-2.1-1.2v1.1h-2V3.9h2v4.8c0.6-0.8,1.3-1.2,2.1-1.2c0.8,0,1.3,0.4,1.6,1.2c0.1,0.4,0.2,1.1,0.2,2.2V15.3z M53.5,13.5h-4v1.9c0,1,0.3,1.5,1,1.5c0.5,0,0.8-0.3,0.9-0.8c0-0.1,0-0.6,0-1.4h2v0.3c0,0.7,0,1.2,0,1.3c0,0.4-0.2,0.8-0.5,1.2 c-0.5,0.8-1.3,1.2-2.4,1.2c-1,0-1.8-0.4-2.4-1.1c-0.4-0.5-0.6-1.4-0.6-2.6v-3.8c0-1.2,0.2-2,0.6-2.6c0.6-0.8,1.4-1.1,2.4-1.1 c1,0,1.8,0.4,2.3,1.1c0.4,0.5,0.6,1.4,0.6,2.6V13.5z M53.5,13.5"}),wp.element.createElement("path",{className:"st0",d:"M43.2,9.3c-0.3,0-0.7,0.2-1,0.5v6.7c0.3,0.3,0.7,0.5,1,0.5c0.6,0,0.9-0.5,0.9-1.5v-4.7 C44.1,9.8,43.8,9.3,43.2,9.3L43.2,9.3z M43.2,9.3"}),wp.element.createElement("path",{className:"st0",d:"M50.6,9.3c-0.7,0-1,0.5-1,1.5v1h2v-1C51.6,9.8,51.2,9.3,50.6,9.3L50.6,9.3z M50.6,9.3"})),wp.element.createElement("g",null,wp.element.createElement("path",{d:"M2.8,12.8v6h2.2v-6L7.7,4H5.5L4,9.8L2.4,4H0.1c0.4,1.2,0.9,2.6,1.4,4.1C2.2,10.2,2.6,11.7,2.8,12.8L2.8,12.8z M2.8,12.8"}),wp.element.createElement("path",{d:"M10.7,19c1,0,1.8-0.4,2.3-1.1c0.4-0.5,0.6-1.4,0.6-2.6v-3.9c0-1.2-0.2-2-0.6-2.6c-0.5-0.8-1.3-1.1-2.3-1.1 c-1,0-1.8,0.4-2.3,1.1C8,9.3,7.8,10.2,7.8,11.4v3.9c0,1.2,0.2,2.1,0.6,2.6C8.9,18.6,9.7,19,10.7,19L10.7,19z M9.8,11 c0-1,0.3-1.5,1-1.5c0.6,0,1,0.5,1,1.5v4.7c0,1-0.3,1.6-1,1.6c-0.6,0-1-0.5-1-1.6V11z M9.8,11"}),wp.element.createElement("path",{d:"M16.8,19c0.7,0,1.5-0.5,2.3-1.4v1.2h2V7.8h-2v8.4c-0.4,0.6-0.9,1-1.3,1c-0.3,0-0.4-0.2-0.5-0.5c0,0,0-0.3,0-0.8V7.8h-2 v8.7c0,0.8,0.1,1.3,0.2,1.7C15.7,18.7,16.1,19,16.8,19L16.8,19z M16.8,19"})))),wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 276 340"},wp.element.createElement("path",{d:"M196.7.6H24.3C11.1.6.4 11.3.4 24.6v292.9c0 12.3 10 22.2 22.2 22.2H252c13.3 0 23.9-10.7 23.9-23.9V80.9L196.7.6z",fill:"#e94848"}),wp.element.createElement("path",{d:"M196.7 57c0 13.3 10.7 23.9 23.9 23.9H276L196.7.6V57z",fill:"#f19191"}),wp.element.createElement("linearGradient",{id:"A",gradientUnits:"userSpaceOnUse",x1:"44.744",y1:"77.111",x2:"116.568",y2:"77.111"},wp.element.createElement("stop",{offset:"0",stopColor:"#fff"}),wp.element.createElement("stop",{offset:"1",stopColor:"#fff0f0"})),wp.element.createElement("path",{d:"M113 84.5H48.3c-1.9 0-3.5-1.6-3.5-3.5v-7.7c0-1.9 1.6-3.5 3.5-3.5H113c1.9 0 3.5 1.6 3.5 3.5V81c.1 1.9-1.5 3.5-3.5 3.5z",fill:"url(#A)"}),wp.element.createElement("linearGradient",{id:"B",gradientUnits:"userSpaceOnUse",x1:"44.744",y1:"136.016",x2:"233.927",y2:"136.016"},wp.element.createElement("stop",{offset:"0",stopColor:"#fff"}),wp.element.createElement("stop",{offset:"1",stopColor:"#fff0f0"})),wp.element.createElement("use",{href:"#H",opacity:".8",fill:"url(#B)"}),wp.element.createElement("linearGradient",{id:"C",gradientUnits:"userSpaceOnUse",x1:"44.744",y1:"135.993",x2:"233.927",y2:"135.993"},wp.element.createElement("stop",{offset:"0",stopColor:"#fff"}),wp.element.createElement("stop",{offset:"1",stopColor:"#fff0f0"})),wp.element.createElement("use",{href:"#H",y:"33.6",opacity:".7",fill:"url(#C)"}),wp.element.createElement("linearGradient",{id:"D",gradientUnits:"userSpaceOnUse",x1:"44.744",y1:"135.969",x2:"233.927",y2:"135.969"},wp.element.createElement("stop",{offset:"0",stopColor:"#fff"}),wp.element.createElement("stop",{offset:"1",stopColor:"#fff0f0"})),wp.element.createElement("use",{href:"#H",y:"67.2",opacity:".6",fill:"url(#D)"}),wp.element.createElement("linearGradient",{id:"E",gradientUnits:"userSpaceOnUse",x1:"44.744",y1:"136.045",x2:"233.927",y2:"136.045"},wp.element.createElement("stop",{offset:"0",stopColor:"#fff"}),wp.element.createElement("stop",{offset:"1",stopColor:"#fff0f0"})),wp.element.createElement("use",{href:"#H",y:"100.7",opacity:".4",fill:"url(#E)"}),wp.element.createElement("linearGradient",{id:"F",gradientUnits:"userSpaceOnUse",x1:"44.744",y1:"270.322",x2:"174.778",y2:"270.322"},wp.element.createElement("stop",{offset:"0",stopColor:"#fff"}),wp.element.createElement("stop",{offset:"1",stopColor:"#fff0f0"})),wp.element.createElement("path",{d:"M171.9 277.7H47.6c-1.6 0-2.9-1.3-2.9-2.9v-9c0-1.6 1.3-2.9 2.9-2.9h124.3c1.6 0 2.9 1.3 2.9 2.9v9c0 1.6-1.3 2.9-2.9 2.9z",opacity:".3",fill:"url(#F)"}),wp.element.createElement("defs",null,wp.element.createElement("path",{id:"H",d:"M231 143.4H47.6c-1.6 0-2.9-1.3-2.9-2.9v-9c0-1.6 1.3-2.9 2.9-2.9H231c1.6 0 2.9 1.3 2.9 2.9v9c0 1.6-1.3 2.9-2.9 2.9z"})))),w=wp.element.createElement("svg",{width:"33",height:"20",version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 270 270",role:"img",focusable:"false"},wp.element.createElement("g",null,wp.element.createElement("polygon",{className:"st0",fill:"#9595C1",points:"0,0 0,52 15,52 15,15 52,15 52,0 \t"}),wp.element.createElement("polygon",{className:"st0",fill:"#9595C1",points:"255,218 255,255 218,255 218,270 270,270 270,218 \t"}),wp.element.createElement("path",{fill:"#5B4E96",d:"M260.7,68.1c-10.4-18.6-29.3-31.2-50.6-33.6c-12.4-1.4-25,0.6-36.3,6c-1.3,0.6-2.6,1.3-3.9,2 C154.5,51,143,65.3,138.3,81.7l0,0.1l-36.4,103.8c-3.1,9.4-9.1,17-17.1,21.4c-0.7,0.4-1.4,0.7-2.1,1.1c-6.1,2.9-12.8,4-19.5,3.2 c-11.5-1.3-21.6-8.1-27.2-18.1c-4.6-8.3-5.7-18-3.1-27.2c2.6-9.2,8.7-16.9,17.1-21.5c0.7-0.4,1.4-0.8,2.1-1.1 c6.1-2.9,12.7-4,19.6-3.2c0.3,0,0.5,0.1,0.8,0.1L64.9,162c-0.5,1.5,0.3,3.1,1.8,3.6l19.4,6.3c1.5,0.5,3-0.3,3.5-1.7l16.7-47.4 c0.4-1.2,0.3-2.5-0.3-3.6c-0.6-1.1-1.6-2-2.8-2.4l-17.6-5.1c-0.4-0.1-0.8-0.2-1.2-0.3l-1.6-0.5l0,0.1c-2.5-0.6-5-1.1-7.5-1.3 c-12.5-1.4-25.1,0.6-36.4,6c-1.3,0.6-2.6,1.3-3.9,2c-15.6,8.7-27,22.9-31.9,40.1c-4.9,17.1-2.8,35.1,5.8,50.5 c10.4,18.6,29.3,31.2,50.6,33.6c12.4,1.4,25-0.6,36.3-6c1.3-0.6,2.6-1.3,3.9-2c15.3-8.5,26.8-22.8,31.6-39.2l0-0.1L167.8,91 l0.1-0.2l0-0.1c4.1-10.5,9.3-17,17-21.3c0.7-0.4,1.4-0.7,2.1-1.1c6.1-2.9,12.8-4,19.5-3.2c11.5,1.3,21.6,8.1,27.2,18.1 c9.6,17.2,3.3,39.1-14,48.7c-0.7,0.4-1.4,0.7-2.1,1.1c-6.1,2.9-12.8,4-19.7,3.2c-2-0.2-4.1-0.6-6.1-1.2l-0.2-0.1l-11.3-3.4 c-1.2-0.4-2.5,0.3-2.9,1.5l-8.8,24.8c-0.5,1.3,0.3,2.7,1.6,3.1l13.9,4c3.4,0.9,6.8,1.6,10.3,2c12.4,1.4,25-0.6,36.3-6l0.1,0 c1.3-0.6,2.6-1.3,3.9-2C266.8,140.8,278.5,100.1,260.7,68.1z"}))),y=wp.element.createElement("svg",{version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 512 512"},wp.element.createElement("path",{fill:"#E2E5E7",d:"M128,0c-17.6,0-32,14.4-32,32v448c0,17.6,14.4,32,32,32h320c17.6,0,32-14.4,32-32V128L352,0H128z"}),wp.element.createElement("path",{fill:"#B0B7BD",d:"M384,128h96L352,0v96C352,113.6,366.4,128,384,128z"}),wp.element.createElement("polygon",{fill:"#CAD1D8",points:"480,224 384,128 480,128 "}),wp.element.createElement("path",{fill:"#F15642",d:"M416,416c0,8.8-7.2,16-16,16H48c-8.8,0-16-7.2-16-16V256c0-8.8,7.2-16,16-16h352c8.8,0,16,7.2,16,16 V416z"}),wp.element.createElement("g",null,wp.element.createElement("path",{fill:"#FFFFFF",d:"M101.744,303.152c0-4.224,3.328-8.832,8.688-8.832h29.552c16.64,0,31.616,11.136,31.616,32.48 c0,20.224-14.976,31.488-31.616,31.488h-21.36v16.896c0,5.632-3.584,8.816-8.192,8.816c-4.224,0-8.688-3.184-8.688-8.816V303.152z M118.624,310.432v31.872h21.36c8.576,0,15.36-7.568,15.36-15.504c0-8.944-6.784-16.368-15.36-16.368H118.624z"}),wp.element.createElement("path",{fill:"#FFFFFF",d:"M196.656,384c-4.224,0-8.832-2.304-8.832-7.92v-72.672c0-4.592,4.608-7.936,8.832-7.936h29.296 c58.464,0,57.184,88.528,1.152,88.528H196.656z M204.72,311.088V368.4h21.232c34.544,0,36.08-57.312,0-57.312H204.72z"}),wp.element.createElement("path",{fill:"#FFFFFF",d:"M303.872,312.112v20.336h32.624c4.608,0,9.216,4.608,9.216,9.072c0,4.224-4.608,7.68-9.216,7.68 h-32.624v26.864c0,4.48-3.184,7.92-7.664,7.92c-5.632,0-9.072-3.44-9.072-7.92v-72.672c0-4.592,3.456-7.936,9.072-7.936h44.912 c5.632,0,8.96,3.344,8.96,7.936c0,4.096-3.328,8.704-8.96,8.704h-37.248V312.112z"})),wp.element.createElement("path",{fill:"#CAD1D8",d:"M400,432H96v16h304c8.8,0,16-7.2,16-16v-16C416,424.8,408.8,432,400,432z"})),g=wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"186 38 76 76"},wp.element.createElement("path",{fill:"#fff",d:"M244 56h-40v40h40V56z"}),wp.element.createElement("path",{fill:"#EA4335",d:"M244 114l18-18h-18v18z"}),wp.element.createElement("path",{fill:"#FBBC04",d:"M262 56h-18v40h18V56z"}),wp.element.createElement("path",{fill:"#34A853",d:"M244 96h-40v18h40V96z"}),wp.element.createElement("path",{fill:"#188038",d:"M186 96v12c0 3.315 2.685 6 6 6h12V96h-18z"}),wp.element.createElement("path",{fill:"#1967D2",d:"M262 56V44c0-3.315-2.685-6-6-6h-12v18h18z"}),wp.element.createElement("path",{fill:"#4285F4",d:"M244 38h-52c-3.315 0 -6 2.685-6 6v52h18V56h40V38z"}),wp.element.createElement("path",{fill:"#4285F4",d:"M212.205 87.03c-1.495-1.01-2.53-2.485-3.095-4.435l3.47-1.43c.315 1.2.865 2.13 1.65 2.79.78.66 1.73.985 2.84.985 1.135 0 2.11-.345 2.925-1.035s1.225-1.57 1.225-2.635c0-1.09-.43-1.98-1.29-2.67-.86-.69-1.94-1.035-3.23-1.035h-2.005V74.13h1.8c1.11 0 2.045-.3 2.805-.9.76-.6 1.14-1.42 1.14-2.465 0 -.93-.34-1.67-1.02-2.225-.68-.555-1.54-.835-2.585-.835-1.02 0 -1.83.27-2.43.815a4.784 4.784 0 0 0 -1.31 2.005l-3.435-1.43c.455-1.29 1.29-2.43 2.515-3.415 1.225-.985 2.79-1.48 4.69-1.48 1.405 0 2.67.27 3.79.815 1.12.545 2 1.3 2.635 2.26.635.965.95 2.045.95 3.245 0 1.225-.295 2.26-.885 3.11-.59.85-1.315 1.5-2.175 1.955v.205a6.605 6.605 0 0 1 2.79 2.175c.725.975 1.09 2.14 1.09 3.5 0 1.36-.345 2.575-1.035 3.64s-1.645 1.905-2.855 2.515c-1.215.61-2.58.92-4.095.92-1.755.005-3.375-.5-4.87-1.51zM233.52 69.81l-3.81 2.755-1.905-2.89 6.835-4.93h2.62V88h-3.74V69.81z"}))},function(e,t,n){"use strict";var __=wp.i18n.__,r=wp.components.Spinner,o=function(){return wp.element.createElement("div",{className:"wp-block-embed is-loading text-center"},wp.element.createElement(r,null),wp.element.createElement("p",null,__("Embedding\u2026")))};t.a=o},function(e,t,n){"use strict";var __=wp.i18n.__,r=wp.element.Fragment,o=wp.components,l=o.Button,a=o.Toolbar,i=wp.blockEditor.BlockControls,c=function(e){var t=e.showEditButton,n=e.switchBackToURLInput;return wp.element.createElement(r,null,wp.element.createElement(i,null,wp.element.createElement(a,null,t&&wp.element.createElement(l,{className:"components-toolbar__control",label:__("Edit URL"),icon:"edit",onClick:n}))))};t.a=c},function(e,t,n){"use strict";var r=n(17),o=n.n(r),l=wp.i18n,__=l.__,_x=l._x,a=wp.components,i=a.Button,c=a.Placeholder,s=a.ExternalLink,u=wp.blockEditor.BlockIcon,p=function(e){var t=e.icon,n=e.label,r=e.value,l=e.onSubmit,a=e.onChange,p=e.cannotEmbed,m=e.docLink,d=e.DocTitle,f=o()("wp-block-embed",{});return wp.element.createElement("div",{className:"ep__components-placeholder"},wp.element.createElement(c,{icon:wp.element.createElement(u,{icon:t,showColors:!0}),label:n,className:f},wp.element.createElement("form",{onSubmit:l},wp.element.createElement("input",{type:"url",value:r||"",className:"components-placeholder__input","aria-label":n,placeholder:__("Enter URL to embed here\u2026"),onChange:a}),wp.element.createElement(i,{isSmall:!0,type:"submit"},_x("Embed","button label")),p&&wp.element.createElement("p",{className:"components-placeholder__error"},__("Sorry, we could not embed that content."),wp.element.createElement("br",null))),m&&wp.element.createElement("div",{className:"components-placeholder__learn-more"},wp.element.createElement(s,{href:m},d))))};t.a=p},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(8),i=n.n(a),c=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},s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=wp.element.Component,p=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.myRef=React.createRef(),n}return l(t,e),s(t,[{key:"componentDidMount",value:function(){i.a.findDOMNode(this.myRef.current).addEventListener("load",this.props.onLoad)}},{key:"render",value:function(){return wp.element.createElement("iframe",c({ref:this.myRef},this.props))}}]),t}(u);t.a=p},function(e,t,n){"use strict";function r(e){var t=e.attributes,n=e.setAttributes,r=t.ispagination,o=t.pagesize,l=t.columns,a=t.gapbetweenvideos;return wp.element.createElement("div",null,wp.element.createElement(d,{label:__("Video Per Page"),value:o,onChange:function(e){return n({pagesize:e})},min:1,max:50}),wp.element.createElement("p",null,"Specify the number of videos you wish to show on each page."),wp.element.createElement(m,{label:__("Column"),value:l,options:[{label:"Auto",value:"auto"},{label:"2",value:"2"},{label:"3",value:"3"},{label:"4",value:"4"},{label:"6",value:"6"}],onChange:function(e){return n({columns:e})},__nextHasNoMarginBottom:!0}),wp.element.createElement(d,{label:__("Gap Between Videos"),value:a,onChange:function(e){return n({gapbetweenvideos:e})},min:1,max:100}),wp.element.createElement("p",null,"Specify the gap between youtube videos."),wp.element.createElement(f,{label:__("Pagination"),checked:r,onChange:function(e){return n({ispagination:e})}}))}n.d(t,"b",function(){return b}),n.d(t,"c",function(){return w}),n.d(t,"d",function(){return y}),t.a=r;var o=n(10),l=function(){function e(e,t){var n=[],_n=!0,r=!1,o=void 0;try{for(var l,a=e[Symbol.iterator]();!(_n=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);_n=!0);}catch(e){r=!0,o=e}finally{try{!_n&&a.return&&a.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=wp.isShallowEqual.isShallowEqualObjects,i=wp.element,c=i.useState,s=i.useEffect,__=wp.i18n.__,u=wp.hooks.addFilter,p=wp.components,m=(p.TextControl,p.SelectControl),d=p.RangeControl,f=p.ToggleControl,b=function(){u("embedpress_block_rest_param","embedpress",h,10)},h=function(e,t){if(!t.url||!w(t.url))return e;var n={pagesize:6};return Object(o.a)(e,t,n)},w=function(e){return e.match(/\/channel\/|\/c\/|\/user\/|\/@|(?:https?:\/\/)?(?:www\.)?(?:youtube.com\/)(\w+)[^?\/]*$/i)},y=function(e){var t={pagesize:null},n=Object(o.a)({},e,t),r=c(n),i=l(r,2),u=i[0],p=i[1];return s(function(){var n=Object(o.a)(u,e,t);a(u||{},n)||p(n)},[e]),u}},function(e,t,n){"use strict";function r(e){var t=e.attributes,n=e.setAttributes,r=e.isOpensea,o=e.isOpenseaSingle,a=t.limit,i=t.orderby,c=t.layout,s=t.preset,u=t.nftperrow,p=t.gapbetweenitem,m=t.collectionname,d=t.nftimage,_=t.nftcreator,L=t.prefix_nftcreator,k=t.nfttitle,C=t.nftprice,S=t.prefix_nftprice,O=t.nftlastsale,x=t.prefix_nftlastsale,T=t.nftbutton,F=t.nftrank,U=t.label_nftrank,B=t.nftdetails,j=t.label_nftdetails,P=t.label_nftbutton,M=(t.alignment,t.itemBGColor),z=t.collectionNameColor,R=t.collectionNameFZ,N=t.titleColor,D=t.titleFontsize,I=t.creatorColor,H=t.creatorFontsize,A=t.creatorLinkColor,Z=t.creatorLinkFontsize,G=t.priceLabelColor,V=t.priceLabelFontsize,q=t.priceColor,W=t.priceFontsize,Y=t.priceUSDColor,$=t.priceUSDFontsize,J=t.lastSaleLabelColor,K=t.lastSaleLabelFontsize,Q=t.lastSaleColor,X=t.lastSaleFontsize,ee=t.lastSaleUSDColor,te=t.lastSaleUSDFontsize,ne=t.buttonTextColor,re=t.buttonBackgroundColor,oe=t.buttonFontSize,le=t.rankBtnColor,ae=t.rankBtnFZ,ie=t.rankBtnBorderColor,ce=t.rankLabelColor,se=t.rankLabelFZ,ue=t.detialTitleColor,pe=t.detialTitleFZ,me=t.detailTextColor,de=t.detailTextLinkColor,fe=t.detailTextFZ,be=embedpressObj.is_pro_plugin_active,he=function(e,t){t||(document.querySelector(".pro__alert__wrap").style.display="block")};document.querySelector(".pro__alert__wrap")||(document.querySelector("body").append(function(e){var t=document.createElement("div");return t.innerHTML='\n\t\t<div class="pro__alert__wrap" style="display: none;">\n\t\t\t<div class="pro__alert__card">\n\t\t\t\t<img src="../wp-content/plugins/embedpress/EmbedPress/Ends/Back/Settings/assets/img/alert.svg" alt=""/>\n\t\t\t\t\t<h2>Opps...</h2>\n\t\t\t\t\t<p>You need to upgrade to the <a href="https://wpdeveloper.com/in/upgrade-embedpress" target="_blank">Premium</a> Version to use this feature</p>\n\t\t\t\t\t<a href="#" class="button radius-10">Close</a>\n\t\t\t</div>\n\t\t</div>\n\t\t',t}()),function(){document.querySelector(".pro__alert__wrap")&&document.querySelector(".pro__alert__wrap .pro__alert__card .button").addEventListener("click",function(e){document.querySelector(".pro__alert__wrap").style.display="none"})}());var we=[{name:__("Small"),slug:"small",size:16},{name:__("Medium"),slug:"medium",size:18},{name:__("Large"),slug:"big",size:26}],ye=[{name:"",color:"red"},{name:"",color:"green"},{name:"",color:"blue"},{name:"",color:"yellow"},{name:"",color:"orange"}];return wp.element.createElement("div",null,wp.element.createElement(y,{title:__("Opensea Options"),initialOpen:!0,className:"ep-opensea-options"},wp.element.createElement("div",null,r&&wp.element.createElement("div",null,wp.element.createElement(b,{label:__("Limit","embedpress"),value:a,onChange:function(e){return n({limit:e})},min:1,max:100}),wp.element.createElement(f,{label:__("Order By","embedpress"),value:i,options:[{label:"Oldest",value:"asc"},{label:"Newest",value:"desc"}],onChange:function(e){return n({orderby:e})},__nextHasNoMarginBottom:!0}),wp.element.createElement(f,{label:__("Layout","embedpress"),value:c,options:[{label:"List",value:"ep-list"},{label:"Grid",value:"ep-grid"}],onChange:function(e){return n({layout:e})}}),"ep-grid"==c&&wp.element.createElement(f,{label:__("Preset","embedpress"),value:s,options:[{label:"Preset 1",value:"ep-preset-1"},{label:"Preset 2",value:"ep-preset-2"}],onChange:function(e){return n({preset:e})}}),wp.element.createElement(b,{label:__("Item Per Row","embedpress"),value:u||3,onChange:function(e){return n({nftperrow:e})},min:1,max:6})),r&&wp.element.createElement(b,{label:__("Gap Between Item","embedpress"),value:p,onChange:function(e){return n({gapbetweenitem:e})},min:1,max:100}),o&&wp.element.createElement(h,{label:__("Collection Name","embedpress"),checked:m,onChange:function(e){return n({collectionname:e})}}),wp.element.createElement(h,{label:__("Thumbnail","embedpress"),checked:d,onChange:function(e){return n({nftimage:e})}}),wp.element.createElement(h,{label:__("Title","embedpress"),checked:k,onChange:function(e){return n({nfttitle:e})}}),wp.element.createElement(h,{label:__("Creator","embedpress"),checked:_,onChange:function(e){return n({nftcreator:e})}}),_&&wp.element.createElement("div",{className:be?"pro-control-active":"pro-control opensea-control",onClick:function(e){he(0,be)}},wp.element.createElement(w,{label:__("Creator Prefix","embedpress"),value:L,onChange:function(e){return n({prefix_nftcreator:e})}}),!be&&wp.element.createElement("span",{className:"isPro"},__("pro","embedpress"))),wp.element.createElement(h,{label:__("Show Price","embedpress"),checked:C,onChange:function(e){return n({nftprice:e})}}),C&&wp.element.createElement("div",{className:be?"pro-control-active":"pro-control opensea-control",onClick:function(e){he(0,be)}},wp.element.createElement(w,{label:__("Price Prefix","embedpress"),value:S,onChange:function(e){return n({prefix_nftprice:e})}}),!be&&wp.element.createElement("span",{className:"isPro"},__("pro","embedpress"))),wp.element.createElement(h,{label:__("Last Sale","embedpress"),checked:O,onChange:function(e){return n({nftlastsale:e})}}),O&&wp.element.createElement("div",{className:be?"pro-control-active":"pro-control opensea-control",onClick:function(e){he(0,be)}},wp.element.createElement(w,{label:__("Last Sale Prefix","embedpress"),value:x,onChange:function(e){return n({prefix_nftlastsale:e})}}),!be&&wp.element.createElement("span",{className:"isPro"},__("pro","embedpress"))),wp.element.createElement(h,{label:__("Show Button","embedpress"),checked:T,onChange:function(e){return n({nftbutton:e})}}),T&&wp.element.createElement("div",{className:be?"pro-control-active":"pro-control opensea-control",onClick:function(e){he(0,be)}},wp.element.createElement(w,{label:__("Button Label","embedpress"),value:P,onChange:function(e){return n({label_nftbutton:e})}}),!be&&wp.element.createElement("span",{className:"isPro"},__("pro","embedpress"))),o&&wp.element.createElement("frameElement",null,wp.element.createElement(h,{label:__("Rank","embedpress"),checked:F,onChange:function(e){return n({nftrank:e})}}),F&&wp.element.createElement("div",{className:be?"pro-control-active":"pro-control opensea-control",onClick:function(e){he(0,be)}},wp.element.createElement(w,{label:__("Rank Label","embedpress"),value:U,onChange:function(e){return n({label_nftrank:e})}}),!be&&wp.element.createElement("span",{className:"isPro"},__("pro","embedpress"))),wp.element.createElement(h,{label:__("Details","embedpress"),checked:B,onChange:function(e){return n({nftdetails:e})}}),B&&wp.element.createElement("div",{className:be?"pro-control-active":"pro-control opensea-control",onClick:function(e){he(0,be)}},wp.element.createElement(w,{label:__("Details Label","embedpress"),value:j,onChange:function(e){return n({label_nftdetails:e})}}),!be&&wp.element.createElement("span",{className:"isPro"},__("pro","embedpress")))))),wp.element.createElement(y,{title:__("Color and Typography"),initialOpen:!1,className:"ep-colors-typography"},wp.element.createElement("p",null,__("You can adjust the color and typography of embedded content.")),wp.element.createElement(E,null,wp.element.createElement(y,{title:__("Item"),initialOpen:!1},wp.element.createElement(l.a,{headerText:"Background Color"}),wp.element.createElement(g,{label:__("Background Color"),colors:ye,value:M,onChange:function(e){return n({itemBGColor:e})}})),wp.element.createElement(y,{title:__("Collection Name"),initialOpen:!1},wp.element.createElement(l.a,{headerText:"Color"}),wp.element.createElement(g,{label:__("Color"),colors:ye,value:z,onChange:function(e){return n({collectionNameColor:e})}}),wp.element.createElement(l.a,{headerText:"Font Size"}),wp.element.createElement(v,{__nextHasNoMarginBottom:!0,fontSizes:we,value:R,fallbackFontSize:16,onChange:function(e){return n({collectionNameFZ:e})}})),wp.element.createElement(y,{title:__("Title"),initialOpen:!1},wp.element.createElement(l.a,{headerText:"Color"}),wp.element.createElement(g,{label:__("Color"),colors:ye,value:N,onChange:function(e){return n({titleColor:e})}}),wp.element.createElement(l.a,{headerText:"Font Size"}),wp.element.createElement(v,{__nextHasNoMarginBottom:!0,fontSizes:we,value:D,fallbackFontSize:16,onChange:function(e){return n({titleFontsize:e})}})),wp.element.createElement(y,{title:__("Creator"),initialOpen:!1},wp.element.createElement(l.a,{headerText:"Color"}),wp.element.createElement(g,{label:__("Color"),colors:ye,value:I,onChange:function(e){return n({creatorColor:e})}}),wp.element.createElement(l.a,{headerText:"Font Size"}),wp.element.createElement(v,{__nextHasNoMarginBottom:!0,fontSizes:we,value:H,fallbackFontSize:16,onChange:function(e){return n({creatorFontsize:e})}}),wp.element.createElement(l.a,{headerText:"Link Color"}),wp.element.createElement(g,{label:__("Color"),colors:ye,value:A,onChange:function(e){return n({creatorLinkColor:e})}}),wp.element.createElement(l.a,{headerText:"Link Font Size"}),wp.element.createElement(v,{__nextHasNoMarginBottom:!0,fontSizes:we,value:Z,fallbackFontSize:16,onChange:function(e){return n({creatorLinkFontsize:e})}})),wp.element.createElement(y,{title:__("Current Price"),initialOpen:!1},o&&wp.element.createElement("frameElement",null,wp.element.createElement(l.a,{headerText:"Label Color"}),wp.element.createElement(g,{label:__("Color"),colors:ye,value:G,onChange:function(e){return n({priceLabelColor:e})}}),wp.element.createElement(l.a,{headerText:"Label Font Size"}),wp.element.createElement(v,{__nextHasNoMarginBottom:!0,fontSizes:we,value:V,fallbackFontSize:16,onChange:function(e){return n({priceLabelFontsize:e})}})),wp.element.createElement(l.a,{headerText:"ETH Price Color"}),wp.element.createElement(g,{label:__("Color"),colors:ye,value:q,onChange:function(e){return n({priceColor:e})}}),wp.element.createElement(l.a,{headerText:"ETH Font Size"}),wp.element.createElement(v,{__nextHasNoMarginBottom:!0,fontSizes:we,value:W,fallbackFontSize:16,onChange:function(e){return n({priceFontsize:e})}}),o&&wp.element.createElement("frameElement",null,wp.element.createElement(l.a,{headerText:"USD Price Color"}),wp.element.createElement(g,{label:__("Color"),colors:ye,value:Y,onChange:function(e){return n({priceUSDColor:e})}}),wp.element.createElement(l.a,{headerText:"USD Font Size"}),wp.element.createElement(v,{__nextHasNoMarginBottom:!0,fontSizes:we,value:$,fallbackFontSize:16,onChange:function(e){return n({priceUSDFontsize:e})}}))),wp.element.createElement(y,{title:__("Last Sale Price"),initialOpen:!1},o&&wp.element.createElement("frameElement",null,wp.element.createElement(l.a,{headerText:"Label Color"}),wp.element.createElement(g,{label:__("Color"),colors:ye,value:J,onChange:function(e){return n({lastSaleLabelColor:e})}}),wp.element.createElement(l.a,{headerText:"Label Font Size"}),wp.element.createElement(v,{__nextHasNoMarginBottom:!0,fontSizes:we,value:K,fallbackFontSize:16,onChange:function(e){return n({lastSaleLabelFontsize:e})}})),wp.element.createElement(l.a,{headerText:"ETH Color"}),wp.element.createElement(g,{label:__("Color"),colors:ye,value:Q,onChange:function(e){return n({lastSaleColor:e})}}),wp.element.createElement(l.a,{headerText:"ETH Font Size"}),wp.element.createElement(v,{__nextHasNoMarginBottom:!0,fontSizes:we,value:X,fallbackFontSize:16,onChange:function(e){return n({lastSaleFontsize:e})}}),o&&wp.element.createElement("frameElement",null,wp.element.createElement(l.a,{headerText:"USD Price Color"}),wp.element.createElement(g,{label:__("Color"),colors:ye,value:ee,onChange:function(e){return n({lastSaleUSDColor:e})}}),wp.element.createElement(l.a,{headerText:"USD Font Size"}),wp.element.createElement(v,{__nextHasNoMarginBottom:!0,fontSizes:we,value:te,fallbackFontSize:16,onChange:function(e){return n({lastSaleUSDFontsize:e})}}))),wp.element.createElement(y,{title:__("Button"),initialOpen:!1},wp.element.createElement(l.a,{headerText:"Color"}),wp.element.createElement(g,{label:__("Color"),colors:ye,value:ne,onChange:function(e){return n({buttonTextColor:e})}}),wp.element.createElement(l.a,{headerText:"Background Color"}),wp.element.createElement(g,{label:__("Color"),colors:ye,value:re,onChange:function(e){return n({buttonBackgroundColor:e})}}),wp.element.createElement(l.a,{headerText:"Font Size"}),wp.element.createElement(v,{__nextHasNoMarginBottom:!0,fontSizes:we,value:oe,fallbackFontSize:16,onChange:function(e){return n({buttonFontSize:e})}})),o&&wp.element.createElement(y,{title:__("Rank"),initialOpen:!1},wp.element.createElement(l.a,{headerText:"Label Color"}),wp.element.createElement(g,{label:__("Label Color"),colors:ye,value:ce,onChange:function(e){return n({rankLabelColor:e})}}),wp.element.createElement(l.a,{headerText:"Label Font Size"}),wp.element.createElement(v,{__nextHasNoMarginBottom:!0,fontSizes:we,value:se,fallbackFontSize:16,onChange:function(e){return n({rankLabelFZ:e})}}),wp.element.createElement(l.a,{headerText:"Color"}),wp.element.createElement(g,{label:__("Title Color"),colors:ye,value:le,onChange:function(e){return n({rankBtnColor:e})}}),wp.element.createElement(l.a,{headerText:"Font Size"}),wp.element.createElement(v,{__nextHasNoMarginBottom:!0,fontSizes:we,value:ae,fallbackFontSize:16,onChange:function(e){return n({rankBtnFZ:e})}}),wp.element.createElement(l.a,{headerText:"Border Color"}),wp.element.createElement(g,{label:__("Color"),colors:ye,value:ie,onChange:function(e){return n({rankBtnBorderColor:e})}})),o&&wp.element.createElement(y,{title:__("Details"),initialOpen:!1},wp.element.createElement(l.a,{headerText:"Title Color"}),wp.element.createElement(g,{label:__("Title Color"),colors:ye,value:ue,onChange:function(e){return n({detialTitleColor:e})}}),wp.element.createElement(l.a,{headerText:"Title Font Size"}),wp.element.createElement(v,{__nextHasNoMarginBottom:!0,fontSizes:we,value:pe,fallbackFontSize:16,onChange:function(e){return n({detialTitleFZ:e})}}),wp.element.createElement(l.a,{headerText:"Content Color"}),wp.element.createElement(g,{label:__("Color"),colors:ye,value:me,onChange:function(e){return n({detailTextColor:e})}}),wp.element.createElement(l.a,{headerText:"Link Color"}),wp.element.createElement(g,{label:__("Color"),colors:ye,value:de,onChange:function(e){return n({detailTextLinkColor:e})}}),wp.element.createElement(l.a,{headerText:"Content Font Size"}),wp.element.createElement(v,{__nextHasNoMarginBottom:!0,fontSizes:we,value:fe,fallbackFontSize:16,onChange:function(e){return n({detailTextFZ:e})}})))))}n.d(t,"b",function(){return _}),n.d(t,"c",function(){return k}),n.d(t,"d",function(){return C}),n.d(t,"e",function(){return S}),t.a=r;var o=n(11),l=(n.n(o),n(66)),a=n(10),i=function(){function e(e,t){var n=[],_n=!0,r=!1,o=void 0;try{for(var l,a=e[Symbol.iterator]();!(_n=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);_n=!0);}catch(e){r=!0,o=e}finally{try{!_n&&a.return&&a.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),c=wp.isShallowEqual.isShallowEqualObjects,s=wp.element,u=s.useState,p=s.useEffect,__=wp.i18n.__,m=wp.hooks.addFilter,d=wp.components,f=d.SelectControl,b=d.RangeControl,h=d.ToggleControl,w=d.TextControl,y=d.PanelBody,g=d.ColorPalette,v=d.FontSizePicker,E=wp.blockEditor.InspectorControls,_=function(){m("embedpress_block_rest_param","embedpress",L,10)},L=function(e,t){if(!t.url||!k(t.url)&&!C(t.url))return e;var n={limit:20,orderby:"desc",layout:C?"ep-list":"ep-grid",preset:"ep-preset-1",nftperrow:"3",gapbetweenitem:30,collectionname:!1,nftrank:!1,label_nftrank:"",nftdetails:!1,label_nftdetails:"",nftimage:!1,nftcreator:!1,prefix_nftcreator:"",nfttitle:!1,nftprice:!1,prefix_nftprice:"",nftlastsale:!1,prefix_nftlastsale:"",nftbutton:!1,label_nftbutton:"",itemBGColor:"",collectionNameColor:"",collectionNameFZ:"",titleColor:"",titleFontsize:"",creatorColor:"",creatorFontsize:"",creatorLinkColor:"",creatorLinkFontsize:"",priceLabelColor:"",priceLabelFontsize:"",priceColor:"",priceFontsize:"",priceUSDColor:"",priceUSDFontsize:"",lastSaleLabelColor:"",lastSaleLabelFontsize:"",lastSaleColor:"",lastSaleFontsize:"",lastSaleUSDColor:"",lastSaleUSDFontsize:"",buttonTextColor:"",buttonBackgroundColor:"",buttonFontSize:"",rankBtnColor:"",rankBtnFZ:"",rankBtnBorderColor:"",rankLabelColor:"",rankLabelFZ:"",detialTitleColor:"",detialTitleFZ:"",detailTextColor:"",detailTextLinkColor:"",detailTextFZ:""};return Object(a.a)(e,t,n)},k=function(e){return e.match(/\/collection\/|(?:https?:\/\/)?(?:www\.)?(?:opensea.com\/)(\w+)[^?\/]*$/i)},C=function(e){return e.match(/\/assets\/|(?:https?:\/\/)?(?:www\.)?(?:opensea.io\/)(\w+)[^?\/]*$/i)},S=function(e){var t={limit:null,layout:null,preset:null,orderby:null,collectionname:null,nftimage:null,nfttitle:null,nftprice:null,prefix_nftprice:null,nftlastsale:null,prefix_nftlastsale:null,nftperrow:null,gapbetweenitem:null,nftbutton:null,nftrank:null,label_nftrank:null,nftdetails:null,label_nftdetails:null,label_nftbutton:null,nftcreator:null,prefix_nftcreator:null,itemBGColor:null,collectionNameColor:null,collectionNameFZ:null,titleColor:null,titleFontsize:null,creatorColor:null,creatorFontsize:null,creatorLinkColor:null,creatorLinkFontsize:null,priceLabelColor:null,priceLabelFontsize:null,priceColor:null,priceFontsize:null,priceUSDColor:null,priceUSDFontsize:null,lastSaleLabelColor:null,lastSaleLabelFontsize:null,lastSaleColor:null,lastSaleFontsize:null,lastSaleUSDColor:null,lastSaleUSDFontsize:null,buttonTextColor:null,buttonBackgroundColor:null,buttonFontSize:null,rankBtnColor:null,rankBtnFZ:null,rankBtnBorderColor:null,rankLabelColor:null,rankLabelFZ:null,detialTitleColor:null,detialTitleFZ:null,detailTextColor:null,detailTextLinkColor:null,detailTextFZ:null},n=Object(a.a)({},e,t),r=u(n),o=i(r,2),l=o[0],s=o[1];return p(function(){var n=Object(a.a)(l,e,t);c(l||{},n)||s(n)},[e]),l}},function(e,t,n){"use strict";function r(e){var t=embedpressObj.document_cta,n="",r="";if(embedpressObj.embedpress_pro&&t&&t.logo_url){var l=t.cta_url?t.cta_url:null,a=t.logo_xpos?t.logo_xpos+"%":"10%",i=t.logo_ypos?t.logo_ypos+"%":"10%",c=t.logo_opacity?t.logo_opacity/100:"10%",s=".ep-doc-"+e.id;return n="\n "+s+"{\n text-align: left;\n position: relative;\n }\n "+s+" .watermark {\n \t\tdisplay:inline-block;\n border: 0;\n position: absolute;\n bottom: "+i+";\n right: "+a+";\n max-width: 150px;\n max-height: 75px;\n opacity: "+c+";\n z-index: 5;\n -o-transition: opacity 0.5s ease-in-out;\n -moz-transition: opacity 0.5s ease-in-out;\n -webkit-transition: opacity 0.5s ease-in-out;\n transition: opacity 0.5s ease-in-out;\n }\n "+s+" .watermark:hover {\n\t\t\t\t\t opacity: 1;\n\t\t\t\t }\n\t\t",l&&""!==l&&(r+="<a href="+l+">"),r+='<img class="watermark" alt="" src="'+t.logo_url+'"/>',l&&""!==l&&(r+="</a>"),wp.element.createElement(o,null,wp.element.createElement("style",{dangerouslySetInnerHTML:{__html:n}}),wp.element.createElement("div",{dangerouslySetInnerHTML:{__html:r}}))}return""}var o=wp.element.Fragment;t.a=r},function(e,t){e.exports=ReactDOM},function(e,t){var n={utf8:{stringToBytes:function(e){return n.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(n.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t},bytesToString:function(e){for(var t=[],n=0;n<e.length;n++)t.push(String.fromCharCode(e[n]));return t.join("")}}};e.exports=n},function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=wp.element,o=(r.useState,r.useEffect,function(e,t){var n={};return Object.keys(e).forEach(function(r){n[r]=r in t?t[r]:e[r]}),n}),l=function(e,t,n){var r=o(n,t);return Object.assign({},e,r)}},function(e,t){e.exports=React},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n(13),n(18),n(22),n(26),n(30),n(34),n(38),n(42),n(46),n(50),n(54),n(68),n(74);!function(){var e=wp.element.createElement("svg",{width:"33",height:"20",version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 270 270"},wp.element.createElement("g",null,wp.element.createElement("polygon",{className:"st0",fill:"#9595C1",points:"0,0 0,52 15,52 15,15 52,15 52,0 \t"}),wp.element.createElement("polygon",{className:"st0",fill:"#9595C1",points:"255,218 255,255 218,255 218,270 270,270 270,218 \t"}),wp.element.createElement("path",{fill:"#5B4E96",d:"M260.7,68.1c-10.4-18.6-29.3-31.2-50.6-33.6c-12.4-1.4-25,0.6-36.3,6c-1.3,0.6-2.6,1.3-3.9,2 C154.5,51,143,65.3,138.3,81.7l0,0.1l-36.4,103.8c-3.1,9.4-9.1,17-17.1,21.4c-0.7,0.4-1.4,0.7-2.1,1.1c-6.1,2.9-12.8,4-19.5,3.2 c-11.5-1.3-21.6-8.1-27.2-18.1c-4.6-8.3-5.7-18-3.1-27.2c2.6-9.2,8.7-16.9,17.1-21.5c0.7-0.4,1.4-0.8,2.1-1.1 c6.1-2.9,12.7-4,19.6-3.2c0.3,0,0.5,0.1,0.8,0.1L64.9,162c-0.5,1.5,0.3,3.1,1.8,3.6l19.4,6.3c1.5,0.5,3-0.3,3.5-1.7l16.7-47.4 c0.4-1.2,0.3-2.5-0.3-3.6c-0.6-1.1-1.6-2-2.8-2.4l-17.6-5.1c-0.4-0.1-0.8-0.2-1.2-0.3l-1.6-0.5l0,0.1c-2.5-0.6-5-1.1-7.5-1.3 c-12.5-1.4-25.1,0.6-36.4,6c-1.3,0.6-2.6,1.3-3.9,2c-15.6,8.7-27,22.9-31.9,40.1c-4.9,17.1-2.8,35.1,5.8,50.5 c10.4,18.6,29.3,31.2,50.6,33.6c12.4,1.4,25-0.6,36.3-6c1.3-0.6,2.6-1.3,3.9-2c15.3-8.5,26.8-22.8,31.6-39.2l0-0.1L167.8,91 l0.1-0.2l0-0.1c4.1-10.5,9.3-17,17-21.3c0.7-0.4,1.4-0.7,2.1-1.1c6.1-2.9,12.8-4,19.5-3.2c11.5,1.3,21.6,8.1,27.2,18.1 c9.6,17.2,3.3,39.1-14,48.7c-0.7,0.4-1.4,0.7-2.1,1.1c-6.1,2.9-12.8,4-19.7,3.2c-2-0.2-4.1-0.6-6.1-1.2l-0.2-0.1l-11.3-3.4 c-1.2-0.4-2.5,0.3-2.9,1.5l-8.8,24.8c-0.5,1.3,0.3,2.7,1.6,3.1l13.9,4c3.4,0.9,6.8,1.6,10.3,2c12.4,1.4,25-0.6,36.3-6l0.1,0 c1.3-0.6,2.6-1.3,3.9-2C266.8,140.8,278.5,100.1,260.7,68.1z"})));wp.blocks.updateCategory("embedpress",{icon:e})}()},function(e,t,n){"use strict";var r=n(14),o=(n.n(r),n(15)),l=(n.n(o),n(16)),a=n(0),__=wp.i18n.__,i=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks["google-docs-block"]&&i("embedpress/google-docs-block",{title:__("Google Docs"),icon:a.e,category:"embedpress",keywords:[__("embedpress"),__("google"),__("docs")],supports:{align:["wide","full","right","left"],default:""},attributes:{url:{type:"string",default:""},iframeSrc:{type:"string",default:""}},edit:l.a,save:function(e){var t=e.attributes.iframeSrc;if(t)return wp.element.createElement("figure",{className:"ose-google-docs-document"},wp.element.createElement("iframe",{src:t,frameBorder:"0",width:"600",height:"450",allowFullScreen:"true",mozallowfullscreen:"true",webkitallowfullscreen:"true"}))},deprecated:[{attributes:{align:{type:"string",enum:["left","center","right","wide","full"]}},save:function(e){var t=e.attributes.iframeSrc;if(t)return wp.element.createElement("div",{className:"ose-google-docs-document"},wp.element.createElement("iframe",{src:t,frameBorder:"0",width:"600",height:"450",allowFullScreen:"true",mozallowfullscreen:"true",webkitallowfullscreen:"true"}))}}]})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(2),i=n(1),c=n(3),s=n(4),u=n(0),p=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),__=wp.i18n.__,m=wp.element.Component,d=function(e){function t(){r(this,t);var e=o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.switchBackToURLInput=e.switchBackToURLInput.bind(e),e.setUrl=e.setUrl.bind(e),e.updateAlignment=e.updateAlignment.bind(e),e.onLoad=e.onLoad.bind(e),e.hideOverlay=e.hideOverlay.bind(e),e.state={editingURL:!1,url:e.props.attributes.url,fetching:!0,cannotEmbed:!1,interactive:!1},e}return l(t,e),p(t,[{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"onLoad",value:function(){this.setState({fetching:!1})}},{key:"decodeHTMLEntities",value:function(e){return e&&"string"===typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,""),e=e.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,"")),e}},{key:"updateAlignment",value:function(e){var t=this.props.setAttributes,n=-1!==["wide","full"].indexOf(e)?{width:void 0,height:void 0}:{};t(Object.assign({},n,{align:e}))}},{key:"setUrl",value:function(e){e&&e.preventDefault();var t=this.state.url,n=this.props.setAttributes;if(n({url:t}),t&&t.match(/^http[s]?:\/\/((?:www\.)?docs\.google\.com(?:.*)?(?:document|presentation|spreadsheets|forms|drawings)\/[a-z0-9\/\?=_\-\.\,&%\$#\@\!\+]*)/i)){var r=this.decodeHTMLEntities(t),o=/google\.com(?:.+)?(document|presentation|spreadsheets|forms|drawings)/i,l=o.exec(r),a=l[1];a&&"document"===a?(r.match(/([?&])embedded=true/i)||(r.indexOf("?")>-1?r+="&embedded=true":r+="?embedded=true"),this.setState({editingURL:!1,cannotEmbed:!1}),n({iframeSrc:r})):this.setState({cannotEmbed:!0,editingURL:!0})}else this.setState({cannotEmbed:!0,editingURL:!0})}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"render",value:function(){var e=this,t=this.state,n=t.url,r=t.editingURL,o=t.fetching,l=t.cannotEmbed,p=t.interactive,m=this.props.attributes.iframeSrc,d=__("Google Docs URL");return!m||r?wp.element.createElement("div",null,wp.element.createElement(c.a,{label:d,onSubmit:this.setUrl,value:n,cannotEmbed:l,onChange:function(t){return e.setState({url:t.target.value})},icon:u.e,DocTitle:__("Learn more about Google doc embed"),docLink:"https://embedpress.com/docs/embed-google-docs-wordpress/"})):wp.element.createElement("div",null,o?wp.element.createElement(i.a,null):null,wp.element.createElement(s.a,{src:m,onMouseUp:this.hideOverlay,onLoad:this.onLoad,style:{display:o?"none":""},frameBorder:"0",width:"600",height:"450"}),!p&&wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}),wp.element.createElement(a.a,{showEditButton:m&&!l,switchBackToURLInput:this.switchBackToURLInput}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(m);t.a=d},function(e,t,n){var r,o;!function(){"use strict";function n(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r)){if(r.length){var a=n.apply(null,r);a&&e.push(a)}}else if("object"===o){if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]")){e.push(r.toString());continue}for(var i in r)l.call(r,i)&&r[i]&&e.push(i)}}}return e.join(" ")}var l={}.hasOwnProperty;"undefined"!==typeof e&&e.exports?(n.default=n,e.exports=n):(r=[],void 0!==(o=function(){return n}.apply(t,r))&&(e.exports=o))}()},function(e,t,n){"use strict";var r=n(19),o=(n.n(r),n(20)),l=(n.n(o),n(21)),a=n(0),__=wp.i18n.__,i=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks["google-slides-block"]&&i("embedpress/google-slides-block",{title:__("Google Slides"),icon:a.j,category:"embedpress",keywords:[__("embedpress"),__("google"),__("slides")],supports:{align:["wide","full","right","left"],default:""},attributes:{url:{type:"string",default:""},iframeSrc:{type:"string",default:""}},edit:l.a,save:function(e){var t=e.attributes.iframeSrc;return wp.element.createElement("figure",{className:"ose-google-docs-presentation"},wp.element.createElement("iframe",{src:t,frameborder:"0",width:"600",height:"450",allowfullscreen:"true",mozallowfullscreen:"true",webkitallowfullscreen:"true"}))}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(2),i=n(1),c=n(3),s=n(4),u=n(0),p=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),__=wp.i18n.__,m=wp.element,d=m.Component,f=m.Fragment,b=function(e){function t(){r(this,t);var e=o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.switchBackToURLInput=e.switchBackToURLInput.bind(e),e.setUrl=e.setUrl.bind(e),e.onLoad=e.onLoad.bind(e),e.hideOverlay=e.hideOverlay.bind(e),e.state={editingURL:!1,url:e.props.attributes.url,fetching:!0,cannotEmbed:!1,interactive:!1},e}return l(t,e),p(t,[{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"onLoad",value:function(){this.setState({fetching:!1})}},{key:"decodeHTMLEntities",value:function(e){return e&&"string"===typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,""),e=e.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,"")),e}},{key:"setUrl",value:function(e){e&&e.preventDefault();var t=this.state.url,n=this.props.setAttributes;if(n({url:t}),t&&t.match(/^http[s]?:\/\/((?:www\.)?docs\.google\.com(?:.*)?(?:document|presentation|spreadsheets|forms|drawings)\/[a-z0-9\/\?=_\-\.\,&%\$#\@\!\+]*)/i)){var r=this.decodeHTMLEntities(t),o=/google\.com(?:.+)?(document|presentation|spreadsheets|forms|drawings)/i,l=o.exec(r),a=l[1];a&&"presentation"==a?(r.match(/pub\?/i)&&(r=r.replace("/pub?","/embed?")),this.setState({editingURL:!1,cannotEmbed:!1}),n({iframeSrc:r})):this.setState({cannotEmbed:!0,editingURL:!0})}else this.setState({cannotEmbed:!0,editingURL:!0})}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"render",value:function(){var e=this,t=this.state,n=t.url,r=t.editingURL,o=t.fetching,l=t.cannotEmbed,p=t.interactive,m=this.props.attributes.iframeSrc,d=__("Google Slides URL");return!m||r?wp.element.createElement(c.a,{label:d,onSubmit:this.setUrl,value:n,cannotEmbed:l,onChange:function(t){return e.setState({url:t.target.value})},icon:u.j,DocTitle:__("Learn more about Google slides embed"),docLink:"https://embedpress.com/docs/embed-google-slides-wordpress/"}):wp.element.createElement(f,null,o?wp.element.createElement(i.a,null):null,wp.element.createElement(s.a,{src:m,onFocus:this.hideOverlay,onLoad:this.onLoad,style:{display:o?"none":""},frameborder:"0",width:"600",height:"450"}),!p&&wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}),wp.element.createElement(a.a,{showEditButton:m&&!l,switchBackToURLInput:this.switchBackToURLInput}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(d);t.a=b},function(e,t,n){"use strict";var r=n(23),o=(n.n(r),n(24)),l=(n.n(o),n(25)),a=n(0),__=wp.i18n.__,i=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks["google-sheets-block"]&&i("embedpress/google-sheets-block",{title:__("Google Sheets"),icon:a.i,category:"embedpress",keywords:[__("embedpress"),__("google"),__("sheets")],supports:{align:["wide","full","right","left"],default:""},attributes:{url:{type:"string",default:""},iframeSrc:{type:"string",default:""}},edit:l.a,save:function(e){var t=e.attributes.iframeSrc;return wp.element.createElement("figure",{className:"ose-google-docs-spreadsheets"},wp.element.createElement("iframe",{src:t,frameborder:"0",width:"600",height:"450",allowfullscreen:"true",mozallowfullscreen:"true",webkitallowfullscreen:"true"}))},deprecated:[{attributes:{align:{type:"string",enum:["left","center","right","wide","full"]}},save:function(e){var t=e.attributes.iframeSrc;if(t)return wp.element.createElement("div",{className:"ose-google-docs-spreadsheets"},wp.element.createElement("iframe",{src:t,frameBorder:"0",width:"600",height:"450",allowFullScreen:"true",mozallowfullscreen:"true",webkitallowfullscreen:"true"}))}}]})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(2),i=n(1),c=n(3),s=n(4),u=n(0),p=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),__=wp.i18n.__,m=wp.element,d=m.Component,f=m.Fragment,b=function(e){function t(){r(this,t);var e=o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.switchBackToURLInput=e.switchBackToURLInput.bind(e),e.setUrl=e.setUrl.bind(e),e.onLoad=e.onLoad.bind(e),e.hideOverlay=e.hideOverlay.bind(e),e.state={editingURL:!1,url:e.props.attributes.url,fetching:!0,cannotEmbed:!1,interactive:!1},e}return l(t,e),p(t,[{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"onLoad",value:function(){this.setState({fetching:!1})}},{key:"decodeHTMLEntities",value:function(e){return e&&"string"===typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,""),e=e.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,"")),e}},{key:"setUrl",value:function(e){e&&e.preventDefault();var t=this.state.url,n=this.props.setAttributes;if(n({url:t}),t&&t.match(/^http[s]?:\/\/((?:www\.)?docs\.google\.com(?:.*)?(?:document|presentation|spreadsheets|forms|drawings)\/[a-z0-9\/\?=_\-\.\,&%\$#\@\!\+]*)/i)){var r=this.decodeHTMLEntities(t),o=/google\.com(?:.+)?(document|presentation|spreadsheets|forms|drawings)/i,l=o.exec(r),a=l[1];if(a&&"spreadsheets"==a){if(r.indexOf("?")>-1){var i=r.split("?");if(i=i[1],i=i.split("&"),console.log(i),i.length>0){var c=!1,s=!1;i.map(function(e){e.indexOf("widget=")?s=!0:e.indexOf("headers=")&&(c=!0)}),s||(r+="&widget=true"),c||(r+="&headers=false")}}else r+="?widget=true&headers=false";this.setState({editingURL:!1,cannotEmbed:!1}),n({iframeSrc:r})}else this.setState({cannotEmbed:!0,editingURL:!0})}else this.setState({cannotEmbed:!0,editingURL:!0})}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"render",value:function(){var e=this,t=this.state,n=t.url,r=t.editingURL,o=t.fetching,l=t.cannotEmbed,p=t.interactive,m=this.props.attributes.iframeSrc,d=__("Google Sheets URL");return!m||r?wp.element.createElement(c.a,{label:d,onSubmit:this.setUrl,value:n,cannotEmbed:l,onChange:function(t){return e.setState({url:t.target.value})},icon:u.i,DocTitle:__("Learn more about Google sheet embed"),docLink:"https://embedpress.com/docs/embed-google-sheets-wordpress/"}):wp.element.createElement(f,null,o?wp.element.createElement(i.a,null):null,wp.element.createElement(s.a,{src:m,onFocus:this.hideOverlay,onLoad:this.onLoad,style:{display:o?"none":""},frameborder:"0",width:"600",height:"450"}),!p&&wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}),wp.element.createElement(a.a,{showEditButton:m&&!l,switchBackToURLInput:this.switchBackToURLInput}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(d);t.a=b},function(e,t,n){"use strict";var r=n(27),o=(n.n(r),n(28)),l=(n.n(o),n(29)),a=n(0),__=wp.i18n.__,i=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks["google-forms-block"]&&i("embedpress/google-forms-block",{title:__("Google Forms"),icon:a.g,category:"embedpress",keywords:[__("embedpress"),__("google"),__("forms")],supports:{align:["wide","full","right","left"],default:""},attributes:{url:{type:"string",default:""},iframeSrc:{type:"string",default:""}},edit:l.a,save:function(e){var t=e.attributes.iframeSrc;return wp.element.createElement("figure",{className:"ose-google-docs-forms"},wp.element.createElement("iframe",{src:t,frameborder:"0",width:"600",height:"450",allowfullscreen:"true",mozallowfullscreen:"true",webkitallowfullscreen:"true"}))}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(2),i=n(1),c=n(3),s=n(4),u=n(0),p=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),__=wp.i18n.__,m=wp.element,d=m.Component,f=m.Fragment,b=(wp.components.Disabled,function(e){function t(){r(this,t);var e=o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.switchBackToURLInput=e.switchBackToURLInput.bind(e),e.setUrl=e.setUrl.bind(e),e.onLoad=e.onLoad.bind(e),e.state={editingURL:!1,url:e.props.attributes.url,fetching:!0,cannotEmbed:!1,interactive:!1},e}return l(t,e),p(t,[{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"onLoad",value:function(){this.setState({fetching:!1})}},{key:"decodeHTMLEntities",value:function(e){return e&&"string"===typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,""),e=e.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,"")),e}},{key:"setUrl",value:function(e){e&&e.preventDefault();var t=this.state.url,n=this.props.setAttributes;if(n({url:t}),t&&t.match(/^http[s]?:\/\/((?:www\.)?docs\.google\.com(?:.*)?(?:document|presentation|spreadsheets|forms|drawings)\/[a-z0-9\/\?=_\-\.\,&%\$#\@\!\+]*)/i)){var r=this.decodeHTMLEntities(t),o=/google\.com(?:.+)?(document|presentation|spreadsheets|forms|drawings)/i,l=o.exec(r),a=l[1];a&&"forms"==a?(this.setState({editingURL:!1,cannotEmbed:!1}),n({iframeSrc:r})):this.setState({cannotEmbed:!0,editingURL:!0})}else this.setState({cannotEmbed:!0,editingURL:!0})}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"render",value:function(){var e=this,t=this.state,n=t.url,r=t.editingURL,o=t.fetching,l=t.cannotEmbed,p=t.interactive,m=this.props.attributes.iframeSrc,d=__("Google Forms URL");return!m||r?wp.element.createElement(c.a,{label:d,onSubmit:this.setUrl,value:n,cannotEmbed:l,onChange:function(t){return e.setState({url:t.target.value})},icon:u.g,DocTitle:__("Learn more about Google forms embed"),docLink:"https://embedpress.com/docs/embed-google-forms-wordpress/"}):wp.element.createElement(f,null,o?wp.element.createElement(i.a,null):null,wp.element.createElement(s.a,{src:m,onFocus:this.hideOverlay,onLoad:this.onLoad,style:{display:o?"none":""},frameborder:"0",width:"600",height:"450"}),!p&&wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}),wp.element.createElement(a.a,{showEditButton:m&&!l,switchBackToURLInput:this.switchBackToURLInput}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(d));t.a=b},function(e,t,n){"use strict";var r=n(31),o=(n.n(r),n(32)),l=(n.n(o),n(33)),a=n(0),__=wp.i18n.__,i=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks["google-drawings-block"]&&i("embedpress/google-drawings-block",{title:__("Google Drawings"),icon:a.f,category:"embedpress",keywords:[__("embedpress"),__("google"),__("drawings")],supports:{align:["wide","full","right","left"],default:""},attributes:{url:{type:"string",default:""},iframeSrc:{type:"string",default:""}},edit:l.a,save:function(e){var t=e.attributes.iframeSrc;return wp.element.createElement("figure",{className:"ose-google-docs-drawings"},wp.element.createElement("img",{src:t,width:"960",height:"720"}))}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(2),i=n(1),c=n(3),s=n(0),u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),__=wp.i18n.__,p=wp.element,m=p.Component,d=p.Fragment,f=function(e){function t(){r(this,t);var e=o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.switchBackToURLInput=e.switchBackToURLInput.bind(e),e.setUrl=e.setUrl.bind(e),e.onLoad=e.onLoad.bind(e),e.state={editingURL:!1,url:e.props.attributes.url,fetching:!0,cannotEmbed:!1},e}return l(t,e),u(t,[{key:"onLoad",value:function(){this.setState({fetching:!1})}},{key:"decodeHTMLEntities",value:function(e){return e&&"string"===typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,""),e=e.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,"")),e}},{key:"setUrl",value:function(e){e&&e.preventDefault();var t=this.state.url,n=this.props.setAttributes;if(n({url:t}),t&&t.match(/^http[s]?:\/\/((?:www\.)?docs\.google\.com(?:.*)?(?:document|presentation|spreadsheets|forms|drawings)\/[a-z0-9\/\?=_\-\.\,&%\$#\@\!\+]*)/i)){var r=this.decodeHTMLEntities(t),o=/google\.com(?:.+)?(document|presentation|spreadsheets|forms|drawings)/i,l=o.exec(r),a=l[1];a&&"drawings"==a?(this.setState({editingURL:!1,cannotEmbed:!1}),n({iframeSrc:r})):this.setState({cannotEmbed:!0,editingURL:!0})}else this.setState({cannotEmbed:!0,editingURL:!0})}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"render",value:function(){var e=this,t=this.state,n=t.url,r=t.editingURL,o=t.fetching,l=t.cannotEmbed,u=this.props.attributes.iframeSrc,p=__("Google Drawings URL (Get your link from File -> Publish to the web -> Link)");return!u||r?wp.element.createElement(c.a,{label:p,onSubmit:this.setUrl,value:n,cannotEmbed:l,onChange:function(t){return e.setState({url:t.target.value})},icon:s.f,DocTitle:__("Learn more about Google drawing embed"),docLink:"https://embedpress.com/docs/embed-google-drawings-wordpress/"}):wp.element.createElement(d,null,o?wp.element.createElement(i.a,null):null,wp.element.createElement("img",{src:u,onLoad:this.onLoad,style:{display:o?"none":""},width:"960",height:"720"}),wp.element.createElement(a.a,{showEditButton:u&&!l,switchBackToURLInput:this.switchBackToURLInput}))}}]),t}(m);t.a=f},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(35),l=(n.n(o),n(36)),a=(n.n(l),n(37)),i=n(0),__=wp.i18n.__,c=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks["google-maps-block"]&&c("embedpress/google-maps-block",{title:__("Google Maps"),icon:i.h,category:"embedpress",keywords:[__("embedpress"),__("google"),__("maps")],supports:{align:["wide","full","right","left"],default:""},attributes:{url:{type:"string",default:""},iframeSrc:{type:"string",default:""}},edit:a.a,save:function(e){var t=e.attributes.iframeSrc;return wp.element.createElement("figure",{className:"ose-google-maps"},wp.element.createElement("iframe",r({src:t,frameborder:"0",width:"600",height:"450"},"frameborder","0")))}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(2),i=n(1),c=n(3),s=n(4),u=n(0),p=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),__=wp.i18n.__,m=wp.element,d=m.Component,f=m.Fragment,b=function(e){function t(){r(this,t);var e=o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.switchBackToURLInput=e.switchBackToURLInput.bind(e),e.setUrl=e.setUrl.bind(e),e.onLoad=e.onLoad.bind(e),e.state={editingURL:!1,url:e.props.attributes.url,fetching:!0,cannotEmbed:!1,interactive:!1},e}return l(t,e),p(t,[{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"onLoad",value:function(){this.setState({fetching:!1})}},{key:"decodeHTMLEntities",value:function(e){return e&&"string"===typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,""),e=e.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,"")),e}},{key:"setUrl",value:function(e){e&&e.preventDefault();var t=this.state.url,n=this.props.setAttributes;if(n({url:t}),t&&t.match(/^http[s]?:\/\/(?:(?:(?:www\.|maps\.)?(?:google\.com?))|(?:goo\.gl))(?:\.[a-z]{2})?\/(?:maps\/)?(?:place\/)?(?:[a-z0-9\/%+\-_]*)?([a-z0-9\/%,+\-_=!:@\.&*\$#?\']*)/i)){var r=this.decodeHTMLEntities(t);if(t.match("~(maps/embed|output=embed)~i"));else{var o=/@(-?[0-9\.]+,-?[0-9\.]+).+,([0-9\.]+[a-z])/i,l=o.exec(r);l&&l.length>1&&l[1]&&l[2]?r="https://maps.google.com/maps?hl=en&ie=UTF8&ll="+l[1]+"&spn="+l[1]+"&t=m&z="+Math.round(parseInt(l[2]))+"&output=embed":this.setState({cannotEmbed:!0,editingURL:!0})}this.setState({editingURL:!1,cannotEmbed:!1}),n({iframeSrc:r})}else this.setState({cannotEmbed:!0,editingURL:!0})}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"render",value:function(){var e=this,t=this.state,n=t.url,r=t.editingURL,o=t.fetching,l=t.cannotEmbed,p=t.interactive,m=this.props.attributes.iframeSrc,d=__("Google Maps URL");return!m||r?wp.element.createElement(c.a,{label:d,onSubmit:this.setUrl,value:n,cannotEmbed:l,onChange:function(t){return e.setState({url:t.target.value})},icon:u.h,DocTitle:__("Learn more about Google map embed"),docLink:"https://embedpress.com/docs/embed-google-maps-wordpress/"}):wp.element.createElement(f,null,o?wp.element.createElement(i.a,null):null,wp.element.createElement(s.a,{src:m,onFocus:this.hideOverlay,onLoad:this.onLoad,style:{display:o?"none":""},frameborder:"0",width:"600",height:"450"}),!p&&wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}),wp.element.createElement(a.a,{showEditButton:m&&!l,switchBackToURLInput:this.switchBackToURLInput}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(d);t.a=b},function(e,t,n){"use strict";var r=n(39),o=(n.n(r),n(40)),l=(n.n(o),n(41)),a=n(0),i=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},__=wp.i18n.__,c=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks["twitch-block"]&&c("embedpress/twitch-block",{title:__("Twitch"),icon:a.k,category:"embedpress",keywords:[__("embedpress"),__("twitch")],supports:{align:["wide","full","right","left"],default:""},attributes:{url:{type:"string",default:""},iframeSrc:{type:"string",default:""},attrs:{type:"string",default:""}},edit:l.a,save:function(e){var t=e.attributes,n=t.iframeSrc,r=t.attrs,o=n+"&parent="+embedpressObj.twitch_host;return wp.element.createElement("figure",{className:"ose-twitch-presentation"},wp.element.createElement("iframe",i({src:o},r,{frameborder:"0",width:"600",height:"450"})))}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(2),i=n(1),c=n(3),s=n(4),u=n(0),p=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},m=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),__=wp.i18n.__,d=wp.element,f=d.Component,b=d.Fragment,h=function(e){function t(){r(this,t);var e=o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.switchBackToURLInput=e.switchBackToURLInput.bind(e),e.setUrl=e.setUrl.bind(e),e.onLoad=e.onLoad.bind(e),e.hideOverlay=e.hideOverlay.bind(e),e.state={editingURL:!1,url:e.props.attributes.url,fetching:!0,cannotEmbed:!1,interactive:!1},e}return l(t,e),m(t,[{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"onLoad",value:function(){this.setState({fetching:!1})}},{key:"decodeHTMLEntities",value:function(e){return e&&"string"===typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,""),e=e.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,"")),e}},{key:"setUrl",value:function(e){e&&e.preventDefault();var t=this.state.url,n=this.props.setAttributes;n({url:t});var r=/http[s]?:\/\/(?:www\.|clips\.)twitch\.tv\/([0-9a-zA-Z\-\_]+)\/?(chat\/?$|[0-9a-z\-\_]*)?/;if(t&&t.match(r)){var o=this.decodeHTMLEntities(t),l=r.exec(o),a=l[1];console.log(a);var i,c="channel";switch(t.indexOf("clips.twitch.tv")>-1?c="clip":t.indexOf("/videos/")>-1?c="video":t.indexOf("#/chat$#")>-1&&(c="chat"),console.log(c),c){case"channel":o="https://player.twitch.tv/?channel="+a,i={scrolling:"no",frameborder:"0",allowfullscreen:"true"};break;case"clip":o="https://clips.twitch.tv/embed?clip="+a+"&autoplay=false",i={scrolling:"no",frameborder:"0",allowfullscreen:"true"};break;case"video":a=l[2],o="https://player.twitch.tv/?video="+a,i={scrolling:"no",frameborder:"0",allowfullscreen:"true"};break;case"chat":o="http://www.twitch.tv/embed/"+a+"/chat",i={scrolling:"yes",frameborder:"0",allowfullscreen:"true",id:"'"+a+"'"}}this.setState({editingURL:!1,cannotEmbed:!1}),n({iframeSrc:o,attrs:i})}else this.setState({cannotEmbed:!0,editingURL:!0})}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"render",value:function(){var e=this,t=this.state,n=t.url,r=t.editingURL,o=t.fetching,l=t.cannotEmbed,m=t.interactive,d=this.props.attributes,f=d.iframeSrc,h=d.attrs,w=__("Twitch URL");if(!f||r)return wp.element.createElement(c.a,{label:w,onSubmit:this.setUrl,value:n,cannotEmbed:l,onChange:function(t){return e.setState({url:t.target.value})},icon:u.k,DocTitle:__("Learn more about twitch embed"),docLink:"https://embedpress.com/docs/embed-twitch-streams-chat/"});var y=f+"&parent="+embedpressObj.twitch_host;return wp.element.createElement(b,null,o?wp.element.createElement(i.a,null):null,wp.element.createElement(s.a,p({src:y},h,{onLoad:this.onLoad,style:{display:o?"none":""},onFocus:this.hideOverlay,width:"600",height:"450"})),!m&&wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}),wp.element.createElement(a.a,{showEditButton:f&&!l,switchBackToURLInput:this.switchBackToURLInput}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(f);t.a=h},function(e,t,n){"use strict";var r=n(43),o=(n.n(r),n(44)),l=(n.n(o),n(45)),a=n(0),__=wp.i18n.__,i=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks["wistia-block"]&&i("embedpress/wistia-block",{title:__("Wistia"),icon:a.l,category:"embedpress",keywords:[__("embedpress"),__("wistia")],supports:{align:["wide","full","right","left"],default:""},edit:l.a,save:function(e){return null},deprecated:[{attributes:{url:{type:"string",default:""},iframeSrc:{type:"string",default:""}},edit:l.a,save:function(e){var t=e.attributes.iframeSrc;return wp.element.createElement("div",{class:"ose-wistia"},wp.element.createElement("iframe",{src:t,allowtransparency:"true",frameborder:"0",class:"wistia_embed",name:"wistia_embed",width:"600",height:"330"}))}}]})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(2),i=n(1),c=n(3),s=n(4),u=n(0),p=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),__=wp.i18n.__,m=wp.element,d=m.Component,f=m.Fragment,b=function(e){function t(){r(this,t);var e=o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.switchBackToURLInput=e.switchBackToURLInput.bind(e),e.setUrl=e.setUrl.bind(e),e.onLoad=e.onLoad.bind(e),e.hideOverlay=e.hideOverlay.bind(e),e.state={editingURL:!1,url:e.props.attributes.url,fetching:!0,cannotEmbed:!1,interactive:!1,mediaId:null},e.setUrl(),e}return l(t,e),p(t,[{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"componentDidMount",value:function(){if(this.props.attributes.url){var e=this.props.attributes.url.match(/medias\/(.*)/),t=e[1];this.setState(Object.assign({},this.state,{mediaId:t}))}}},{key:"onLoad",value:function(){if(this.setState({fetching:!1}),embedpressObj.wisita_options){var e=Object.assign({},this.state);setTimeout(function(){var e=document.createElement("script");e.src="https://fast.wistia.com/assets/external/E-v1.js",e.charset="ISO-8859-1",document.body.appendChild(e)},100),setTimeout(function(){var t=document.createElement("script");t.type="text/javascript",t.innerHTML="window.pp_embed_wistia_labels = "+embedpressObj.wistia_labels,document.body.appendChild(t),t=document.createElement("script"),t.type="text/javascript",t.innerHTML='wistiaEmbed = Wistia.embed( "'+e.mediaId+'", '+embedpressObj.wisita_options+" );",document.body.appendChild(t)},400)}}},{key:"decodeHTMLEntities",value:function(e){return e&&"string"===typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,""),e=e.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,"")),e}},{key:"setUrl",value:function(e){e&&e.preventDefault();var t=this.state.url,n=this.props.setAttributes;if(n({url:t}),t&&(t.match(/^http[s]?:\/\/(?:www\.)?wistia\.com\/medias/i)||t.match(/^http[s]?:\/\/(?:www\.)?fast\/.wistia\.com\/embed\/medias/i.jsonp))){var r=t.match(/medias\/(.*)/),o=r[1],l="//fast.wistia.net/embed/iframe/"+o;this.setState({editingURL:!1,cannotEmbed:!1,mediaId:o}),n({iframeSrc:l})}else this.setState({cannotEmbed:!0,editingURL:!0})}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"render",value:function(){var e=this,t=this.state,n=t.url,r=t.editingURL,o=t.fetching,l=t.cannotEmbed,p=t.interactive,m=this.props.attributes.iframeSrc,d=__("Wistia URL");return!m||r?wp.element.createElement(c.a,{label:d,onSubmit:this.setUrl,value:n,cannotEmbed:l,onChange:function(t){return e.setState({url:t.target.value})},icon:u.l,DocTitle:__("Learn more about Wistia embed"),docLink:"https://embedpress.com/docs/embed-wistia-videos-wordpress/"}):wp.element.createElement(f,null,o?wp.element.createElement(i.a,null):null,wp.element.createElement("div",{className:"ose-wistia",id:"wistia_"+this.state.mediaId},wp.element.createElement(s.a,{src:m,onFocus:this.hideOverlay,onLoad:this.onLoad,style:{display:o?"none":""},frameborder:"0",width:"600",height:"330"})),!p&&wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}),wp.element.createElement(a.a,{showEditButton:m&&!l,switchBackToURLInput:this.switchBackToURLInput}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(d);t.a=b},function(e,t,n){"use strict";var r=n(47),o=(n.n(r),n(48)),l=(n.n(o),n(49)),a=n(0),__=wp.i18n.__,i=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks["youtube-block"]&&i("embedpress/youtube-block",{title:__("YouTube"),icon:a.m,category:"embedpress",keywords:[__("embedpress"),__("youtube")],supports:{align:["wide","full","right","left"],default:""},edit:l.a,save:function(){return null}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(2),i=n(1),c=n(3),s=n(4),u=n(0),p=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},m=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),__=wp.i18n.__,d=wp.element,f=d.Component,b=d.Fragment,h=function(e){function t(){r(this,t);var e=o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.switchBackToURLInput=e.switchBackToURLInput.bind(e),e.setUrl=e.setUrl.bind(e),e.onLoad=e.onLoad.bind(e),e.hideOverlay=e.hideOverlay.bind(e),e.state={editingURL:!1,url:e.props.attributes.url,fetching:!0,cannotEmbed:!1,interactive:!1},e}return l(t,e),m(t,[{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"componentWillMount",value:function(){this.state.url&&this.setUrl()}},{key:"onLoad",value:function(){this.setState({fetching:!1})}},{key:"decodeHTMLEntities",value:function(e){return e&&"string"===typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,""),e=e.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,"")),e}},{key:"setUrl",value:function(e){e&&e.preventDefault();var t=this.state.url,n=this.props.setAttributes;n({url:t});var r=t.match(/^(?:https?:\/\/)?(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})(?:\S+)?$/);if(t&&r){var o=r[1],l="https://www.youtube.com/embed/"+o,a=new URL(l);if("undefined"!==typeof embedpressProObj)for(var i in embedpressProObj.youtubeParams)a.searchParams.set(i,embedpressProObj.youtubeParams[i]);this.setState({editingURL:!1,cannotEmbed:!1}),n({iframeSrc:a.href,mediaId:o})}else this.setState({cannotEmbed:!0,editingURL:!0})}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"render",value:function(){var e=this,t=this.state,n=t.url,r=t.editingURL,o=t.fetching,l=t.cannotEmbed,m=t.interactive,d=this.props.attributes,f=d.iframeSrc,h=d.attrs,w=__("YouTube URL");return!f||r?wp.element.createElement(c.a,{label:w,onSubmit:this.setUrl,value:n,cannotEmbed:l,onChange:function(t){return e.setState({url:t.target.value})},icon:u.m,DocTitle:__("Learn More About YouTube Embed"),docLink:"https://embedpress.com/docs/embed-youtube-wordpress/"}):wp.element.createElement(b,null,o?wp.element.createElement(i.a,null):null,wp.element.createElement(s.a,p({src:f},h,{onLoad:this.onLoad,style:{display:o?"none":""},width:"640",onFocus:this.hideOverlay,height:"450"})),!m&&wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}),wp.element.createElement(a.a,{showEditButton:f&&!l,switchBackToURLInput:this.switchBackToURLInput}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(f);t.a=h},function(e,t,n){"use strict";var r=n(51),o=(n.n(r),n(52)),l=(n.n(o),n(53)),a=n(0),i=n(7),__=wp.i18n.__,c=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks.document&&c("embedpress/document",{title:__("Document"),icon:a.b,category:"embedpress",keywords:[__("embedpress"),__("pdf"),__("doc"),__("ppt")],supports:{align:["wide","full","right","left"],default:""},attributes:{id:{type:"string"},href:{type:"string"},powered_by:{type:"boolean",default:!0},width:{type:"number",default:600},height:{type:"number",default:600},fileName:{type:"string"},mime:{type:"string"}},edit:l.a,save:function(e){var t=e.attributes,n=t.href,r=t.mime,o=t.id,l=t.width,a=t.height,c=t.powered_by,s="//view.officeapps.live.com/op/embed.aspx?src="+n;return wp.element.createElement("div",{className:"embedpress-document-embed ep-doc-"+o,style:{height:a,width:l}},"application/pdf"===r&&wp.element.createElement("div",{style:{height:a,width:l},className:"embedpress-embed-document-pdf "+o,"data-emid":o,"data-emsrc":n}),"application/pdf"!==r&&wp.element.createElement("iframe",{style:{height:a,width:l},src:s,mozallowfullscreen:"true",webkitallowfullscreen:"true"}),c&&wp.element.createElement("p",{className:"embedpress-el-powered"},"Powered By EmbedPress"),embedpressObj.embedpress_pro&&wp.element.createElement(i.a,{id:o}))}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(4),i=n(7),c=n(1),s=n(0),u=function(){function e(e,t){var n=[],_n=!0,r=!1,o=void 0;try{for(var l,a=e[Symbol.iterator]();!(_n=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);_n=!0);}catch(e){r=!0,o=e}finally{try{!_n&&a.return&&a.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),p=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),__=wp.i18n.__,m=wp.blob,d=m.getBlobByURL,f=m.isBlobURL,b=m.revokeBlobURL,h=wp.blockEditor,w=h.BlockIcon,y=h.MediaPlaceholder,g=h.InspectorControls,v=wp.element,E=v.Component,_=v.Fragment,L=wp.components,k=L.RangeControl,C=L.PanelBody,S=L.ExternalLink,O=L.ToggleControl,x=["application/pdf","application/msword","application/vnd.ms-powerpoint","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.openxmlformats-officedocument.presentationml.presentation"],T=function(e){function t(){r(this,t);var e=o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.onSelectFile=e.onSelectFile.bind(e),e.onUploadError=e.onUploadError.bind(e),e.onLoad=e.onLoad.bind(e),e.hideOverlay=e.hideOverlay.bind(e),e.state={hasError:!1,fetching:!1,interactive:!1,loadPdf:!0},e}return l(t,e),p(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.attributes,r=t.mediaUpload,o=t.noticeOperations,l=n.href;if(f(l)){r({filesList:[d(l)],onFileChange:function(t){var n=u(t,1),r=n[0];return e.onSelectFile(r)},onError:function(t){e.setState({hasError:!0}),o.createErrorNotice(t)}}),b(l)}this.props.attributes.href&&"application/pdf"===this.props.attributes.mime&&this.state.loadPdf&&(this.setState({loadPdf:!1}),PDFObject.embed(this.props.attributes.href,"."+this.props.attributes.id))}},{key:"componentDidUpdate",value:function(e){e.isSelected&&!this.props.isSelected&&this.setState({showCopyConfirmation:!1})}},{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"onLoad",value:function(){this.setState({fetching:!1})}},{key:"onSelectFile",value:function(e){e&&e.url&&(this.setState({hasError:!1}),this.props.setAttributes({href:e.url,fileName:e.title,id:"embedpress-pdf-"+Date.now(),mime:e.mime}),embedpressObj.embedpress_pro&&this.props.setAttributes({powered_by:!1}),"application/pdf"===e.mime&&(this.setState({loadPdf:!1}),PDFObject.embed(e.url,"."+this.props.attributes.id)))}},{key:"onUploadError",value:function(e){var t=this.props.noticeOperations;t.removeAllNotices(),t.createErrorNotice(e)}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.noticeUI,r=e.setAttributes,o=t.href,l=t.mime,u=t.id,p=t.width,m=t.height,d=t.powered_by,f=this.state,b=f.hasError,h=f.interactive,v=f.fetching,E=f.loadPdf;if(!o||b)return wp.element.createElement("div",{className:"embedpress-document-editmode"},wp.element.createElement(y,{icon:wp.element.createElement(w,{icon:s.b}),labels:{title:__("Document"),instructions:__("Upload a file or pick one from your media library for embed.")},onSelect:this.onSelectFile,notices:n,allowedTypes:x,onError:this.onUploadError},wp.element.createElement("div",{style:{width:"100%"},className:"components-placeholder__learn-more embedpress-doc-link"},wp.element.createElement(S,{href:"https://embedpress.com/docs/embed-document/"},"Learn more about Embedded document "))));var L="//view.officeapps.live.com/op/embed.aspx?src="+o;return wp.element.createElement(_,null,v&&"application/pdf"!==l?wp.element.createElement(c.a,null):null,wp.element.createElement("div",{className:"embedpress-document-embed ep-doc-"+u,style:{height:m,width:p}},"application/pdf"===l&&wp.element.createElement("div",{style:{height:m,width:p},className:"embedpress-embed-document-pdf "+u,"data-emid":u,"data-emsrc":o}),"application/pdf"!==l&&wp.element.createElement(a.a,{onMouseUponMouseUp:this.hideOverlay,style:{height:m,width:p,display:v||!E?"none":""},onLoad:this.onLoad,src:L}),!h&&wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}),d&&wp.element.createElement("p",{className:"embedpress-el-powered"},"Powered By EmbedPress"),!v&&wp.element.createElement(i.a,{id:u})),wp.element.createElement(g,{key:"inspector"},wp.element.createElement(C,{title:__("Embed Size","embedpress")},wp.element.createElement(k,{label:__("Width","embedpress"),value:p||720,onChange:function(e){return r({width:e})},max:1e3,min:1}),wp.element.createElement(k,{label:__("Height","embedpress"),value:m,onChange:function(e){return r({height:e})},max:1e3,min:1}),wp.element.createElement(O,{label:__("Powered By"),onChange:function(e){return r({powered_by:e})},checked:d}))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(E);t.a=T},function(e,t,n){"use strict";var r=n(55),o=(n.n(r),n(56)),l=(n.n(o),n(57)),a=n(0),i=n(6),c=n(5),__=wp.i18n.__,s=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks.embedpress&&(s("embedpress/embedpress",{title:__("EmbedPress"),icon:a.d,category:"embedpress",keywords:["embedpress","embed","google","youtube","docs"],supports:{align:["right","left","center"],default:"center",lightBlockWrapper:!0},attributes:{url:{type:"string",default:""},embedHTML:{type:"string",default:""},height:{type:"string",default:"450"},width:{type:"string",default:"600"},editingURL:{type:"boolean",default:0},fetching:{type:"boolean",default:!1},cannotEmbed:{type:"boolean",default:!1},interactive:{type:"boolean",default:!1},align:{type:"string",default:"center"},ispagination:{type:"boolean",default:!0},pagesize:{type:"number",default:6},columns:{type:"string",default:"3"},gapbetweenvideos:{type:"number",default:30},limit:{type:"number",default:9},orderby:{type:"string",default:"desc"},gapbetweenitem:{type:"number",default:30},layout:{type:"string",default:"ep-grid"},preset:{type:"string",default:"ep-preset-1"},nftperrow:{type:"number",default:3},collectionname:{type:"boolean",default:!0},nftimage:{type:"boolean",default:!0},nfttitle:{type:"boolean",default:!0},nftcreator:{type:"boolean",default:!0},prefix_nftcreator:{type:"string",default:"Created By"},nftprice:{type:"boolean",default:!0},prefix_nftprice:{type:"string",default:"Current Price"},nftlastsale:{type:"boolean",default:!0},prefix_nftlastsale:{type:"string",default:"Last Sale"},nftbutton:{type:"boolean",default:!0},nftrank:{type:"boolean",default:!0},label_nftrank:{type:"string",default:"Rank"},nftdetails:{type:"boolean",default:!0},label_nftdetails:{type:"string",default:"Details"},label_nftbutton:{type:"string",default:"See Details"},alignment:{type:"string",default:"ep-item-center"},itemBGColor:{type:"string"},collectionNameColor:{type:"string"},collectionNameFZ:{type:"number"},titleColor:{type:"string"},titleFontsize:{type:"number"},creatorColor:{type:"string"},creatorFontsize:{type:"number"},creatorLinkColor:{type:"string"},creatorLinkFontsize:{type:"number"},priceLabelColor:{type:"string"},priceLabelFontsize:{type:"number"},priceColor:{type:"string"},priceFontsize:{type:"number"},priceUSDColor:{type:"string"},priceUSDFontsize:{type:"number"},lastSaleLabelColor:{type:"string"},lastSaleLabelFontsize:{type:"number"},lastSaleColor:{type:"string"},lastSaleFontsize:{type:"number"},lastSaleUSDColor:{type:"string"},lastSaleUSDFontsize:{type:"number"},buttonTextColor:{type:"string"},buttonBackgroundColor:{type:"string"},buttonTextFontsize:{type:"number"},rankBtnColor:{type:"string"},rankBtnBorderColor:{type:"string"},rankBtnFZ:{type:"number"},rankLabelColor:{type:"string"},rankLabelFZ:{type:"number"},detialTitleColor:{type:"string"},detialTitleFZ:{type:"number"},detailTextColor:{type:"string"},detailTextLinkColor:{type:"string"},detailTextFZ:{type:"number"}},edit:l.a,save:function(){return null}}),Object(i.b)(),Object(c.b)())},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){function r(o,l){try{var a=t[o](l),i=a.value}catch(e){return void n(e)}if(!a.done)return Promise.resolve(i).then(function(e){r("next",e)},function(e){r("throw",e)});e(i)}return r("next")})}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function l(e){function t(){S({editingURL:!0})}function n(){var e=U.matchAll(/<script.*?src=["'](.*?)["'].*?><\/script>/g);e=[].concat(o(e));var t=!0,n=!1,r=void 0;try{for(var l,a=e[Symbol.iterator]();!(t=(l=a.next()).done);t=!0){var i=l.value;if(i&&"undefined"!=typeof i[1]){var c=i[1],s=d()(c),u=document.getElementById(s);u&&u.remove();var p=document.createElement("script");p.type="text/javascript",p.setAttribute("id",s),p.setAttribute("src",c),document.body.appendChild(p)}}}catch(e){n=!0,r=e}finally{try{!t&&a.return&&a.return()}finally{if(n)throw r}}}function l(e){var t=this;if(e&&e.preventDefault(),O){S({fetching:!0});(function(){var e=r(i.a.mark(function e(n){var r,o,l;return i.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r={url:n,width:j,height:B},r=v("embedpress_block_rest_param",r,m),o=embedpressObj.site_url+"/wp-json/embedpress/v1/oembed/embedpress",l={url:o,method:"POST",data:r},e.next=6,E(l).then(function(e){return e}).catch(function(e){return console.error(e)});case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}},e,t)}));return function(_x){return e.apply(this,arguments)}})()(O).then(function(e){S({fetching:!1}),e.data&&404===e.data.status||!e.embed?S({cannotEmbed:!0,editingURL:!0}):(S({embedHTML:e.embed,cannotEmbed:!1,editingURL:!1}),n())})}else S({cannotEmbed:!0,fetching:!1,editingURL:!0})}var a=e.clientId,m=e.attributes,L=e.className,S=e.setAttributes,O=m.url,x=m.editingURL,T=m.fetching,F=m.cannotEmbed,U=(m.interactive,m.embedHTML),B=m.height,j=m.width,P=_?_():[],M=Object(y.c)(O),z=Object(w.c)(O),R=Object(w.d)(O),N=Object(w.e)(m),D=Object(y.d)(m);return C(function(){!U||x||T||n()},[U]),C(function(){var e=setTimeout(function(){(U&&!x||T)&&l()},1500);return function(){clearTimeout(e)}},[N,D]),wp.element.createElement(k,null,wp.element.createElement(f.a,{attributes:m,setAttributes:S,isYTChannel:M,isOpensea:z,isOpenseaSingle:R}),(!U||!!x)&&!T&&wp.element.createElement("div",P,wp.element.createElement(u.a,{label:__("EmbedPress - Embed anything from 150+ sites"),onSubmit:l,value:O,cannotEmbed:F,onChange:function(e){return S({url:e.target.value})},icon:h.d,DocTitle:__("Learn more about EmbedPress"),docLink:"https://embedpress.com/docs/"})),(!z||!!x||0===x)&&(!R||!!x||0===x)&&T&&wp.element.createElement("div",{className:L},wp.element.createElement(s.a,null)," "),U&&!x&&(!T||z||R)&&wp.element.createElement("figure",P,wp.element.createElement(p.a,{style:{display:!T||z||R?z||R?"block":"inline-block":"none",position:"relative"},dangerouslySetInnerHTML:{__html:U}}),T&&wp.element.createElement("div",{style:{filter:"grayscale(1))",backgroundColor:"#fffafa",opacity:"0.7"},className:"block-library-embed__interactive-overlay",onMouseUp:S({interactive:!0})}),!z&&!R&&wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:S({interactive:!0})}),wp.element.createElement(c.a,{showEditButton:U&&!F,switchBackToURLInput:t})),wp.element.createElement(b.a,g({url:O,clientId:a},m)))}t.a=l;var a=n(58),i=n.n(a),c=n(2),s=n(1),u=n(3),p=n(61),m=n(62),d=n.n(m),f=n(65),b=n(67),h=n(0),w=n(6),y=n(5),g=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},v=wp.hooks.applyFilters,E=wp.apiFetch,__=wp.i18n.__,_=wp.blockEditor.useBlockProps,L=wp.element,k=L.Fragment,C=L.useEffect},function(e,t,n){e.exports=n(59)},function(e,t,n){var r=function(){return this}()||Function("return this")(),o=r.regeneratorRuntime&&Object.getOwnPropertyNames(r).indexOf("regeneratorRuntime")>=0,l=o&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,e.exports=n(60),o)r.regeneratorRuntime=l;else try{delete r.regeneratorRuntime}catch(e){r.regeneratorRuntime=void 0}},function(e,t){!function(t){"use strict";function n(e,t,n,r){var l=t&&t.prototype instanceof o?t:o,a=Object.create(l.prototype),i=new d(r||[]);return a._invoke=s(e,n,i),a}function r(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function o(){}function l(){}function a(){}function i(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function c(e){function t(n,o,l,a){var i=r(e[n],e,o);if("throw"!==i.type){var c=i.arg,s=c.value;return s&&"object"===typeof s&&y.call(s,"__await")?Promise.resolve(s.__await).then(function(e){t("next",e,l,a)},function(e){t("throw",e,l,a)}):Promise.resolve(s).then(function(e){c.value=e,l(c)},a)}a(i.arg)}function n(e,n){function r(){return new Promise(function(r,o){t(e,n,r,o)})}return o=o?o.then(r,r):r()}var o;this._invoke=n}function s(e,t,n){var o=C;return function(l,a){if(o===O)throw new Error("Generator is already running");if(o===x){if("throw"===l)throw a;return b()}for(n.method=l,n.arg=a;;){var i=n.delegate;if(i){var c=u(i,n);if(c){if(c===T)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===C)throw o=x,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=O;var s=r(e,t,n);if("normal"===s.type){if(o=n.done?x:S,s.arg===T)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=x,n.method="throw",n.arg=s.arg)}}}function u(e,t){var n=e.iterator[t.method];if(n===h){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=h,u(e,t),"throw"===t.method))return T;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return T}var o=r(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,T;var l=o.arg;return l?l.done?(t[e.resultName]=l.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=h),t.delegate=null,T):l:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,T)}function p(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 m(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function d(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(p,this),this.reset(!0)}function f(e){if(e){var t=e[v];if(t)return t.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(y.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=h,t.done=!0,t};return r.next=r}}return{next:b}}function b(){return{value:h,done:!0}}var h,w=Object.prototype,y=w.hasOwnProperty,g="function"===typeof Symbol?Symbol:{},v=g.iterator||"@@iterator",E=g.asyncIterator||"@@asyncIterator",_=g.toStringTag||"@@toStringTag",L="object"===typeof e,k=t.regeneratorRuntime;if(k)return void(L&&(e.exports=k));k=t.regeneratorRuntime=L?e.exports:{},k.wrap=n;var C="suspendedStart",S="suspendedYield",O="executing",x="completed",T={},F={};F[v]=function(){return this};var U=Object.getPrototypeOf,B=U&&U(U(f([])));B&&B!==w&&y.call(B,v)&&(F=B);var j=a.prototype=o.prototype=Object.create(F);l.prototype=j.constructor=a,a.constructor=l,a[_]=l.displayName="GeneratorFunction",k.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===l||"GeneratorFunction"===(t.displayName||t.name))},k.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,a):(e.__proto__=a,_ in e||(e[_]="GeneratorFunction")),e.prototype=Object.create(j),e},k.awrap=function(e){return{__await:e}},i(c.prototype),c.prototype[E]=function(){return this},k.AsyncIterator=c,k.async=function(e,t,r,o){var l=new c(n(e,t,r,o));return k.isGeneratorFunction(t)?l:l.next().then(function(e){return e.done?e.value:l.next()})},i(j),j[_]="Generator",j[v]=function(){return this},j.toString=function(){return"[object Generator]"},k.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},k.values=f,d.prototype={constructor:d,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=h,this.done=!1,this.delegate=null,this.method="next",this.arg=h,this.tryEntries.forEach(m),!e)for(var t in this)"t"===t.charAt(0)&&y.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=h)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){function t(t,r){return l.type="throw",l.arg=e,n.next=t,r&&(n.method="next",n.arg=h),!!r}if(this.done)throw e;for(var n=this,r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],l=o.completion;if("root"===o.tryLoc)return t("end");if(o.tryLoc<=this.prev){var a=y.call(o,"catchLoc"),i=y.call(o,"finallyLoc");if(a&&i){if(this.prev<o.catchLoc)return t(o.catchLoc,!0);if(this.prev<o.finallyLoc)return t(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return t(o.catchLoc,!0)}else{if(!i)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return t(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&y.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 l=o?o.completion:{};return l.type=e,l.arg=t,o?(this.method="next",this.next=o.finallyLoc,T):this.complete(l)},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),T},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),m(n),T}},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 o=r.arg;m(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:f(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=h),T}}}(function(){return this}()||Function("return this")())},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(8),i=n.n(a),c=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},s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=wp.element.Component,p=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.myRef=React.createRef(),n}return l(t,e),s(t,[{key:"componentDidMount",value:function(){i.a.findDOMNode(this.myRef.current).addEventListener("load",this.props.onLoad)}},{key:"render",value:function(){return wp.element.createElement("div",c({ref:this.myRef},this.props))}}]),t}(u);t.a=p},function(e,t,n){!function(){var t=n(63),r=n(9).utf8,o=n(64),l=n(9).bin,a=function(e,n){e.constructor==String?e=n&&"binary"===n.encoding?l.stringToBytes(e):r.stringToBytes(e):o(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||e.constructor===Uint8Array||(e=e.toString());for(var i=t.bytesToWords(e),c=8*e.length,s=1732584193,u=-271733879,p=-1732584194,m=271733878,d=0;d<i.length;d++)i[d]=16711935&(i[d]<<8|i[d]>>>24)|4278255360&(i[d]<<24|i[d]>>>8);i[c>>>5]|=128<<c%32,i[14+(c+64>>>9<<4)]=c;for(var f=a._ff,b=a._gg,h=a._hh,w=a._ii,d=0;d<i.length;d+=16){var y=s,g=u,v=p,E=m;s=f(s,u,p,m,i[d+0],7,-680876936),m=f(m,s,u,p,i[d+1],12,-389564586),p=f(p,m,s,u,i[d+2],17,606105819),u=f(u,p,m,s,i[d+3],22,-1044525330),s=f(s,u,p,m,i[d+4],7,-176418897),m=f(m,s,u,p,i[d+5],12,1200080426),p=f(p,m,s,u,i[d+6],17,-1473231341),u=f(u,p,m,s,i[d+7],22,-45705983),s=f(s,u,p,m,i[d+8],7,1770035416),m=f(m,s,u,p,i[d+9],12,-1958414417),p=f(p,m,s,u,i[d+10],17,-42063),u=f(u,p,m,s,i[d+11],22,-1990404162),s=f(s,u,p,m,i[d+12],7,1804603682),m=f(m,s,u,p,i[d+13],12,-40341101),p=f(p,m,s,u,i[d+14],17,-1502002290),u=f(u,p,m,s,i[d+15],22,1236535329),s=b(s,u,p,m,i[d+1],5,-165796510),m=b(m,s,u,p,i[d+6],9,-1069501632),p=b(p,m,s,u,i[d+11],14,643717713),u=b(u,p,m,s,i[d+0],20,-373897302),s=b(s,u,p,m,i[d+5],5,-701558691),m=b(m,s,u,p,i[d+10],9,38016083),p=b(p,m,s,u,i[d+15],14,-660478335),u=b(u,p,m,s,i[d+4],20,-405537848),s=b(s,u,p,m,i[d+9],5,568446438),m=b(m,s,u,p,i[d+14],9,-1019803690),p=b(p,m,s,u,i[d+3],14,-187363961),u=b(u,p,m,s,i[d+8],20,1163531501),s=b(s,u,p,m,i[d+13],5,-1444681467),m=b(m,s,u,p,i[d+2],9,-51403784),p=b(p,m,s,u,i[d+7],14,1735328473),u=b(u,p,m,s,i[d+12],20,-1926607734),s=h(s,u,p,m,i[d+5],4,-378558),m=h(m,s,u,p,i[d+8],11,-2022574463),p=h(p,m,s,u,i[d+11],16,1839030562),u=h(u,p,m,s,i[d+14],23,-35309556),s=h(s,u,p,m,i[d+1],4,-1530992060),m=h(m,s,u,p,i[d+4],11,1272893353),p=h(p,m,s,u,i[d+7],16,-155497632),u=h(u,p,m,s,i[d+10],23,-1094730640),s=h(s,u,p,m,i[d+13],4,681279174),m=h(m,s,u,p,i[d+0],11,-358537222),p=h(p,m,s,u,i[d+3],16,-722521979),u=h(u,p,m,s,i[d+6],23,76029189),s=h(s,u,p,m,i[d+9],4,-640364487),m=h(m,s,u,p,i[d+12],11,-421815835),p=h(p,m,s,u,i[d+15],16,530742520),u=h(u,p,m,s,i[d+2],23,-995338651),s=w(s,u,p,m,i[d+0],6,-198630844),m=w(m,s,u,p,i[d+7],10,1126891415),p=w(p,m,s,u,i[d+14],15,-1416354905),u=w(u,p,m,s,i[d+5],21,-57434055),s=w(s,u,p,m,i[d+12],6,1700485571),m=w(m,s,u,p,i[d+3],10,-1894986606),p=w(p,m,s,u,i[d+10],15,-1051523),u=w(u,p,m,s,i[d+1],21,-2054922799),s=w(s,u,p,m,i[d+8],6,1873313359),m=w(m,s,u,p,i[d+15],10,-30611744),p=w(p,m,s,u,i[d+6],15,-1560198380),u=w(u,p,m,s,i[d+13],21,1309151649),s=w(s,u,p,m,i[d+4],6,-145523070),m=w(m,s,u,p,i[d+11],10,-1120210379),p=w(p,m,s,u,i[d+2],15,718787259),u=w(u,p,m,s,i[d+9],21,-343485551),s=s+y>>>0,u=u+g>>>0,p=p+v>>>0,m=m+E>>>0}return t.endian([s,u,p,m])};a._ff=function(e,t,n,r,o,l,a){var i=e+(t&n|~t&r)+(o>>>0)+a;return(i<<l|i>>>32-l)+t},a._gg=function(e,t,n,r,o,l,a){var i=e+(t&r|n&~r)+(o>>>0)+a;return(i<<l|i>>>32-l)+t},a._hh=function(e,t,n,r,o,l,a){var i=e+(t^n^r)+(o>>>0)+a;return(i<<l|i>>>32-l)+t},a._ii=function(e,t,n,r,o,l,a){var i=e+(n^(t|~r))+(o>>>0)+a;return(i<<l|i>>>32-l)+t},a._blocksize=16,a._digestsize=16,e.exports=function(e,n){if(void 0===e||null===e)throw new Error("Illegal argument "+e);var r=t.wordsToBytes(a(e,n));return n&&n.asBytes?r:n&&n.asString?l.bytesToString(r):t.bytesToHex(r)}}()},function(e,t){!function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&n.rotl(e,8)|4278255360&n.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=n.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,r=0;n<e.length;n++,r+=8)t[r>>>5]|=e[n]<<24-r%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n<e.length;n++)t.push((e[n]>>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(parseInt(e.substr(n,2),16));return t},bytesToBase64:function(e){for(var n=[],r=0;r<e.length;r+=3)for(var o=e[r]<<16|e[r+1]<<8|e[r+2],l=0;l<4;l++)8*r+6*l<=8*e.length?n.push(t.charAt(o>>>6*(3-l)&63)):n.push("=");return n.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var n=[],r=0,o=0;r<e.length;o=++r%4)0!=o&&n.push((t.indexOf(e.charAt(r-1))&Math.pow(2,-2*o+8)-1)<<2*o|t.indexOf(e.charAt(r))>>>6-2*o);return n}};e.exports=n}()},function(e,t){function n(e){return!!e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function r(e){return"function"===typeof e.readFloatLE&&"function"===typeof e.slice&&n(e.slice(0,0))}e.exports=function(e){return null!=e&&(n(e)||r(e)||!!e._isBuffer)}},function(e,t,n){"use strict";function r(e){var t=e.attributes,n=e.setAttributes,r=e.isYTChannel,a=e.isOpensea,u=e.isOpenseaSingle,p=t.width,m=t.height,d=t.editingURL,f=t.embedHTML;return!d&&f&&wp.element.createElement(s,null,!a&&!u&&wp.element.createElement(c,{title:__("Embeded Options")},wp.element.createElement("div",null,wp.element.createElement("p",null,__("You can adjust the width and height of embedded content.")),wp.element.createElement(i,{label:__("Width"),value:p,onChange:function(e){return n({width:e})}}),wp.element.createElement(i,{label:__("Height"),value:m,onChange:function(e){return n({height:e})}})),r&&wp.element.createElement(o.a,{attributes:t,setAttributes:n})),(a||u)&&wp.element.createElement(l.a,{attributes:t,setAttributes:n,isOpensea:a,isOpenseaSingle:u}))}t.a=r;var o=n(5),l=n(6),__=wp.i18n.__,a=wp.components,i=a.TextControl,c=a.PanelBody,s=wp.blockEditor.InspectorControls},function(e,t,n){"use strict";function r(e){var t=e.headerText;return wp.element.createElement("h4",{className:"ep-control-header"},t)}t.a=r},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var o=n(11),l=(n.n(o),n(6)),a=n(5),i=function(e){var t=e.url,n=e.clientId,o=e.width,i=e.height,c=e.ispagination,s=e.gapbetweenvideos,u=e.columns,p=(r(e,["url","clientId","width","height","ispagination","gapbetweenvideos","columns"]),t.match(/\/medias\/|(?:https?:\/\/)?(?:www\.)?(?:wistia.com\/)(\w+)[^?\/]*$/i)),m="repeat(auto-fit, minmax(250px, 1fr))";u>0&&(m="repeat(auto-fit, minmax(calc("+100/u+"% - "+s+"px), 1fr))");var d="";return!c&&(d="#block-"+n+" .ep-youtube__content__block .ep-youtube__content__pagination{\n display: none!important;\n }"),wp.element.createElement(React.Fragment,null,Object(a.c)(t)&&wp.element.createElement("style",{style:{display:"none"}},"\n #block-"+n+" .ep-youtube__content__block .youtube__content__body .content__wrap{\n gap: "+s+"px!important;\n margin-top: "+s+"px!important;\n }\n\n #block-"+n+" .ose-youtube{\n width: "+o+"px!important;\n }\n #block-"+n+" .ose-youtube .ep-first-video iframe{\n max-height: "+i+"px!important;\n }\n\n #block-"+n+" .ose-youtube > iframe{\n height: "+i+"px!important;\n width: "+o+"px!important;\n }\n\n #block-"+n+" .ep-youtube__content__block .youtube__content__body .content__wrap {\n grid-template-columns: "+m+";\n }\n\n #block-"+n+" .ep-youtube__content__block .ep-youtube__content__pagination{\n display: flex!important;\n }\n\n "+d+"\n "),!Object(a.c)(t)&&!Object(l.c)(t)&&!Object(l.d)(t)&&wp.element.createElement("style",{style:{display:"none"}},"\n #block-"+n+" .ose-embedpress-responsive{\n width: "+o+"px!important;\n height: "+i+"px!important\n }\n #block-"+n+" iframe{\n width: "+o+"px!important;\n height: "+i+"px!important\n }\n #block-"+n+" .ose-youtube > iframe{\n height: "+i+"px!important;\n width: "+o+"px!important;\n }\n #block-"+n+" .ose-youtube{\n height: "+i+"px!important;\n width: "+o+"px!important;\n }\n "),Object(l.c)(t)&&wp.element.createElement("style",{style:{display:"none"}},"\n #block-"+n+"{\n width: 900px;\n max-width: 100%!important;\n }\n \n #block-"+n+" ose-opensea {\n width: 100%!important;\n height: 100%!important;\n }\n "),p&&wp.element.createElement("style",{style:{display:"none"}},"\n\t\t\t\t\t\t\t\t#block-"+n+" .ose-wistia{\n\t\t\t\t\t\t\t\t\twidth: "+o+"px!important;\n\t\t\t\t\t\t\t\t\theight: "+i+"px!important;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t.wistia_embed{\n\t\t\t\t\t\t\t\t\twidth: 100%!important;\n\t\t\t\t\t\t\t\t\theight: 100%!important;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t"))};t.a=i},function(e,t,n){"use strict";var r=n(69),o=(n.n(r),n(70)),l=(n.n(o),n(71)),a=n(0),__=wp.i18n.__,i=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks["embedpress-pdf"]&&i("embedpress/embedpress-pdf",{title:__("EmbedPress PDF"),icon:a.c,category:"embedpress",keywords:[__("embedpress"),__("pdf"),__("doc"),__("document")],supports:{align:["left","center","right"],default:""},attributes:{id:{type:"string"},href:{type:"string"},powered_by:{type:"boolean",default:!0},presentation:{type:"boolean",default:!0},themeMode:{type:"string",default:"dafult"},position:{type:"string",default:"top"},download:{type:"boolean",default:!0},open:{type:"boolean",default:!1},copy_text:{type:"boolean",default:!0},toolbar:{type:"boolean",default:!0},doc_details:{type:"boolean",default:!0},doc_rotation:{type:"boolean",default:!0},width:{type:"number",default:600},height:{type:"number",default:450},fileName:{type:"string"},mime:{type:"string"}},edit:l.a,save:function(e){return null}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(4),i=n(7),c=n(1),s=n(72),u=(n.n(s),n(73)),p=(n.n(u),n(0)),m=function(){function e(e,t){var n=[],_n=!0,r=!1,o=void 0;try{for(var l,a=e[Symbol.iterator]();!(_n=(l=a.next()).done)&&(n.push(l.value),!t||n.length!==t);_n=!0);}catch(e){r=!0,o=e}finally{try{!_n&&a.return&&a.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),d=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),__=wp.i18n.__,f=wp.blob,b=f.getBlobByURL,h=f.isBlobURL,w=f.revokeBlobURL,y=wp.blockEditor,g=y.BlockIcon,v=y.MediaPlaceholder,E=y.InspectorControls,_=wp.element,L=_.Component,k=_.Fragment,C=wp.components,S=C.RangeControl,O=C.PanelBody,x=C.ExternalLink,T=C.ToggleControl,F=C.SelectControl,U=(wp.element.useEffect,["application/pdf"]),B=function(e){function t(){r(this,t);var e=o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.onSelectFile=e.onSelectFile.bind(e),e.onUploadError=e.onUploadError.bind(e),e.onLoad=e.onLoad.bind(e),e.hideOverlay=e.hideOverlay.bind(e),e.isPro=e.isPro.bind(e),e.addProAlert=e.addProAlert.bind(e),e.state={hasError:!1,fetching:!1,interactive:!1,loadPdf:!0},e}return l(t,e),d(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.attributes,r=t.mediaUpload,o=t.noticeOperations,l=n.href;if(h(l)){r({filesList:[b(l)],onFileChange:function(t){var n=m(t,1),r=n[0];return e.onSelectFile(r)},onError:function(t){e.setState({hasError:!0}),o.createErrorNotice(t)}}),w(l)}this.props.attributes.href&&"application/pdf"===this.props.attributes.mime&&this.state.loadPdf&&this.setState({loadPdf:!1})}},{key:"componentDidUpdate",value:function(e){e.isSelected&&!this.props.isSelected&&this.setState({showCopyConfirmation:!1})}},{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"onLoad",value:function(){this.setState({fetching:!1})}},{key:"onSelectFile",value:function(e){e&&e.url&&(this.setState({hasError:!1}),this.props.setAttributes({href:e.url,fileName:e.title,id:"embedpress-pdf-"+Date.now(),mime:e.mime}),void 0!==embedpressObj.branding&&void 0!==embedpressObj.branding.powered_by&&this.props.setAttributes({powered_by:embedpressObj.branding.powered_by}),"application/pdf"===e.mime&&this.setState({loadPdf:!1}))}},{key:"onUploadError",value:function(e){var t=this.props.noticeOperations;t.removeAllNotices(),t.createErrorNotice(e)}},{key:"addProAlert",value:function(e,t){t||(document.querySelector(".pro__alert__wrap").style.display="block")}},{key:"removeAlert",value:function(){document.querySelector(".pro__alert__wrap")&&document.querySelector(".pro__alert__wrap .pro__alert__card .button").addEventListener("click",function(e){document.querySelector(".pro__alert__wrap").style.display="none"})}},{key:"isPro",value:function(e){var t=document.createElement("div");return t.innerHTML='\n\t\t<div class="pro__alert__wrap" style="display: none;">\n\t\t\t<div class="pro__alert__card">\n\t\t\t\t<img src="../wp-content/plugins/embedpress/EmbedPress/Ends/Back/Settings/assets/img/alert.svg" alt=""/>\n\t\t\t\t\t<h2>Opps...</h2>\n\t\t\t\t\t<p>You need to upgrade to the <a href="https://wpdeveloper.com/in/upgrade-embedpress" target="_blank">Premium</a> Version to use this feature</p>\n\t\t\t\t\t<a href="#" class="button radius-10">Close</a>\n\t\t\t</div>\n\t\t</div>\n\t\t',t}},{key:"render",value:function(){function e(e){var t="",n={themeMode:y||"default",presentation:_||!1,position:L||"top",download:C||!1,toolbar:B||!1,copy_text:j||!1,toolbar_position:P||"top",doc_details:M||!1,doc_rotation:z||!1};t=new URLSearchParams(n).toString();var r=e.split("#");return(r=encodeURIComponent(r[0]))+"#"+t}var t=this,n=this.props,r=n.attributes,o=n.noticeUI,l=n.setAttributes,s=n.clientId,m=r.href,d=r.mime,f=r.id,b=r.width,h=r.height,w=r.powered_by,y=r.themeMode,_=r.presentation,L=r.position,C=r.download,B=(r.open,r.toolbar),j=r.copy_text,P=r.toolbar_position,M=r.doc_details,z=r.doc_rotation,R=this.state,N=R.hasError,D=R.interactive,I=R.fetching,H=R.loadPdf,A=embedpressObj.is_pro_plugin_active;if(A||(l({download:!0}),l({copy_text:!0})),document.querySelector(".pro__alert__wrap")||(document.querySelector("body").append(this.isPro("none")),this.removeAlert()),!m||N)return wp.element.createElement("div",{className:"embedpress-document-editmode"},wp.element.createElement(v,{icon:wp.element.createElement(g,{icon:p.c}),labels:{title:__("EmbedPress PDF"),instructions:__("Upload a PDF file or pick one from your media library for embed.")},onSelect:this.onSelectFile,notices:o,allowedTypes:U,onError:this.onUploadError},wp.element.createElement("div",{style:{width:"100%"},className:"components-placeholder__learn-more embedpress-doc-link"},wp.element.createElement(x,{href:"https://embedpress.com/docs/embed-document/"},"Learn more about Embedded document "))));var Z="//view.officeapps.live.com/op/embed.aspx?src="+e(m),G=embedpressObj.pdf_renderer+"?file="+e(m);return wp.element.createElement(k,null,I&&"application/pdf"!==d?wp.element.createElement(c.a,null):null,wp.element.createElement("div",{className:"embedpress-document-embed ep-doc-"+f,style:{width:b,maxWidth:"100%"},id:"ep-doc-"+this.props.clientId},"application/pdf"===d&&wp.element.createElement("iframe",{powered_by:w,style:{height:h,width:b},className:"embedpress-embed-document-pdf "+f,"data-emid":f,"data-emsrc":m,src:G}),"application/pdf"!==d&&wp.element.createElement(a.a,{onMouseUponMouseUp:this.hideOverlay,style:{height:h,width:b,display:I||!H?"none":""},onLoad:this.onLoad,src:Z}),!D&&wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}),w&&wp.element.createElement("p",{className:"embedpress-el-powered"},"Powered By EmbedPress"),!I&&wp.element.createElement(i.a,{id:f})),wp.element.createElement(E,{key:"inspector"},wp.element.createElement(O,{title:__("Embed Size(px)","embedpress")},wp.element.createElement(S,{label:__("Width","embedpress"),value:b,onChange:function(e){return l({width:e})},max:1e3,min:1}),wp.element.createElement(S,{label:__("Height","embedpress"),value:h,onChange:function(e){return l({height:e})},max:1e3,min:1})),wp.element.createElement(O,{title:__("PDF Control Settings","embedpress"),initialOpen:!1},wp.element.createElement(F,{label:"Theme",value:y,options:[{label:"System Default",value:"dafult"},{label:"Dark",value:"dark"},{label:"Light",value:"light"}],onChange:function(e){return l({themeMode:e})},__nextHasNoMarginBottom:!0}),wp.element.createElement("div",{className:A?"pro-control-active":"pro-control",onClick:function(e){t.addProAlert(e,A)}},wp.element.createElement(T,{label:__("Toolbar","embedpress"),description:__("Show or Hide toolbar. Note: If you disable toolbar access then every toolbar options will be disabled","embedpress"),onChange:function(e){return l({toolbar:e})},checked:B,style:{marginTop:"30px"}}),!A&&wp.element.createElement("span",{className:"isPro"},__("pro","embedpress"))),B&&wp.element.createElement(k,null,wp.element.createElement(u.__experimentalToggleGroupControl,{label:"Toolbar Position",value:L,onChange:function(e){return l({position:e})}},wp.element.createElement(u.__experimentalToggleGroupControlOption,{value:"top",label:"Top"}),wp.element.createElement(u.__experimentalToggleGroupControlOption,{value:"bottom",label:"Bottom"})),wp.element.createElement(T,{label:__("Presentation Mode","embedpress"),onChange:function(e){return l({presentation:e})},checked:_}),wp.element.createElement("div",{className:A?"pro-control-active":"pro-control",onClick:function(e){t.addProAlert(e,A)}},wp.element.createElement(T,{label:__("Print/Download","embedpress"),onChange:function(e){return l({download:e})},checked:C}),!A&&wp.element.createElement("span",{className:"isPro"},__("pro","embedpress"))),wp.element.createElement("div",{className:A?"pro-control-active":"pro-control",onClick:function(e){t.addProAlert(e,A)}},wp.element.createElement(T,{label:__("Copy Text","embedpress"),onChange:function(e){return l({copy_text:e})},checked:j,className:"disabled"}),!A&&wp.element.createElement("span",{className:"isPro"},__("pro","embedpress"))),wp.element.createElement(T,{label:__("Rotation","embedpress"),onChange:function(e){return l({doc_rotation:e})},checked:z}),wp.element.createElement(T,{label:__("Properties","embedpress"),onChange:function(e){return l({doc_details:e})},checked:M}),wp.element.createElement(T,{label:__("Powered By","embedpress"),onChange:function(e){return l({powered_by:e})},checked:w})))),wp.element.createElement("style",{style:{display:"none"}},"\n\t\t\t\t\t\t\t#block-"+s+" {\n\t\t\t\t\t\t\t\twidth:-webkit-fill-available;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t.embedpress-el-powered{\n\t\t\t\t\t\t\t\tmax-width: "+b+"\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t.alignright .embedpress-document-embed{\n\t\t\t\t\t\t\t\tfloat: right!important;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t.alignleft .embedpress-document-embed{\n\t\t\t\t\t\t\t\tfloat: left;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t"))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(L);t.a=B},function(e,t){e.exports=wp.apiFetch},function(e,t){e.exports=wp.components},function(e,t,n){"use strict";var r=n(75),o=(n.n(r),n(76)),l=(n.n(o),n(77)),a=n(0),__=wp.i18n.__,i=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks["embedpress-calendar"]&&i("embedpress/embedpress-calendar",{title:__("Google Calendar"),icon:a.a,category:"embedpress",keywords:["embedpress","embed","calendar","calender","google","cal","events","task","birthday"],supports:{align:["left","center","right"],default:"center",lightBlockWrapper:!0},attributes:{id:{type:"string"},powered_by:{type:"boolean",default:!0},is_public:{type:"boolean",default:!0},width:{type:"string",default:600},height:{type:"string",default:600},url:{type:"string",default:""},embedHTML:{type:"string",default:""}},edit:l.a,save:function(e){return null}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e){function t(){d({editingURL:!0,is_public:!0})}function n(e){e&&e.preventDefault(),w?(d({fetching:!0}),setTimeout(function(){d({fetching:!1,cannotEmbed:!1,editingURL:!1,embedHTML:"ready"})},500)):d({cannotEmbed:!0,fetching:!1,editingURL:!0})}var r=e.attributes,s=e.className,d=e.setAttributes,w=r.url,y=r.editingURL,g=r.fetching,v=r.cannotEmbed,E=r.embedHTML,_=r.height,L=r.width,k=r.powered_by,C=r.is_public,S=r.align,O=b?b({className:"align"+S,style:{width:L+"px",height:_+"px"}}):[];return wp.element.createElement(h,null,wp.element.createElement(f,null,wp.element.createElement(p,{title:__("Customize Embedded Calendar","embedpress")},wp.element.createElement("p",null,__("You can adjust the width and height of embedded content.","embedpress")),wp.element.createElement(u,{label:__("Width","embedpress"),value:L,onChange:function(e){return d({width:e})}}),wp.element.createElement(u,{label:__("Height","embedpress"),value:_,onChange:function(e){return d({height:e})}})),wp.element.createElement(p,{title:__("Calendar Type and other options","embedpress")},wp.element.createElement("p",null,__("You can show public calendar without any API key","embedpress")),wp.element.createElement(m,{label:__("Powered By","embedpress"),onChange:function(e){return d({powered_by:e})},checked:k}),wp.element.createElement(m,{label:__("Embedding Public Calendar","embedpress"),onChange:function(e){return d({is_public:e})},checked:C}))),(!E||y)&&!g&&C&&wp.element.createElement("div",O,wp.element.createElement(l.a,{label:__("Public Calendar Link"),onSubmit:n,value:w,cannotEmbed:v,onChange:function(e){return d({url:e.target.value})},icon:a.a,DocTitle:__("Learn more about EmbedPress Calendar"),docLink:"https://embedpress.com/docs/"})),g?wp.element.createElement("div",{className:s},wp.element.createElement(o.a,null)," "):null,E&&C&&!y&&!g&&wp.element.createElement("figure",O,C&&wp.element.createElement("iframe",{style:{display:g?"none":""},src:w,width:L,height:_}),k&&wp.element.createElement("p",{className:"embedpress-el-powered"},"Powered By EmbedPress"),wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:d({interactive:!0})}),wp.element.createElement(i.a,{showEditButton:E&&!v,switchBackToURLInput:t})),!C&&wp.element.createElement("figure",c({className:"testing"},O),wp.element.createElement("p",null,"Private Calendar will show in the frontend only.",wp.element.createElement("br",null),wp.element.createElement("strong",null,"Note: Private calendar needs EmbedPress Pro.")),k&&wp.element.createElement("p",{className:"embedpress-el-powered"},"Powered By EmbedPress"),wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:d({interactive:!0})}),wp.element.createElement(i.a,{showEditButton:E&&!v,switchBackToURLInput:t})))}t.a=r;var o=n(1),l=n(3),a=n(0),i=n(2),c=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},s=wp.components,u=s.TextControl,p=s.PanelBody,m=s.ToggleControl,d=wp.blockEditor,f=d.InspectorControls,b=d.useBlockProps,h=wp.element.Fragment,__=wp.i18n.__}]);
Gutenberg/dist/blocks.editor.build.css CHANGED
@@ -1,4 +1,4 @@
1
  .embedpress-document-editmode .components-placeholder__instructions:after{content:"\ASupported File Type: PDF, DOC, PPT, XLS etc ";white-space:pre}
2
- .wp-block-embedpress-embedpress iframe{max-width:100%}.ose-the-new-york-times iframe{min-height:500px;max-height:100%}.block-editor-block-list__layout .wp-block figure,.block-editor-block-list__layout .wp-block iframe{margin:0}@media screen and (max-width: 782px){.block-editor-block-list__layout .wp-block figure,.block-editor-block-list__layout .wp-block iframe{height:250px}}.wp-block-embedpress-embedpress .components-placeholder.wp-block-embed{min-width:550px}.editor-styles-wrapper .block-editor-block-list__layout.is-root-container>.wp-block-embedpress-embedpress{max-width:1200px !important}.wp-block-embedpress-embedpress{max-width:100% !important}.embedpress-event .link{color:#0098ab}.embedpress-event .visibility--a11yHide{border:0;clip:rect(0 0 0 0);position:absolute;overflow:hidden;margin:-1px;padding:0;width:1px;height:1px}.embedpress-event .text--small{font-size:14px;margin:0}.embedpress-event .flex{display:-ms-flexbox;display:flex;-webkit-box-sizing:border-box;box-sizing:border-box}.embedpress-event .flex--wrap{-ms-flex-wrap:wrap;flex-wrap:wrap}.embedpress-event .flex--row{-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.embedpress-event .flex-item{-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;flex-grow:1;width:auto;min-width:0;-webkit-box-sizing:border-box;box-sizing:border-box}.embedpress-event .flex-item--shrink{-ms-flex-preferred-size:auto;flex-basis:auto;-ms-flex-positive:0;flex-grow:0;-ms-flex-negative:0;flex-shrink:0;width:auto}.embedpress-event .flex--row>.flex-item:first-child{padding-left:0}.embedpress-event .text--bold{font-weight:700}.embedpress-event h1,.embedpress-event h2,.embedpress-event h3,.embedpress-event h4,.embedpress-event h5,.embedpress-event h6{font-size:inherit}.embedpress-event .ep-event--title{font-size:32px;font-weight:700}.embedpress-event .ep-event--date{color:#757575;font-weight:400;font-size:16px}.embedpress-event .ep-event--host{margin-top:20px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-bottom:20px}.ep-event--host .avatar-print{border-radius:50%;height:50px;width:50px}.embedpress-event img.avatar--person{background-image:none !important;background-repeat:no-repeat;background-position:50%;background-size:cover;border-radius:50%;-webkit-box-sizing:border-box;box-sizing:border-box;vertical-align:middle}.event-info-hosts-text{padding-left:20px;font-size:16px;font-weight:400}.embedpress-event .event-description{margin-top:20px}.text--sectionTitle{font-size:20px;line-height:28px}.ep-event--attendees{margin-top:50px}.ep-event--attendees>.flex{margin-bottom:20px}.ep-event--attendees .gridList{list-style:none;margin:0 -16px 0 0;padding:0}.ep-event--attendees .gridList-item{width:auto}.ep-event--attendees .gridList--autoHeight--has4>.gridList-item{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.ep-event--attendees .groupMember-name{line-height:1.2 !important}.ep-event--attendees .avatar--person{margin-bottom:15px;display:inline-block;border-radius:50%}.ep-event--attendees img.avatar-print{border-radius:50%}.ep-event--attendees .groupMember-role{font-size:12px;color:#757575;padding-top:2px;margin:0}.ep-event--attendees .groupMember{min-height:100%;min-width:128px;padding-left:8px;padding-right:8px}.embedpress-event .align--center{text-align:center}.embedpress-event .card{background:#fff;background-clip:padding-box;background-size:cover;border:1px solid rgba(46,62,72,0.12);border-radius:8px;-webkit-box-sizing:border-box;box-sizing:border-box;display:block;min-height:100%;padding:16px 16px 18px;position:relative;white-space:normal}.embedpress-event .card--hasHoverShadow{-webkit-transition:-webkit-box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),-webkit-transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);transition:-webkit-box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),-webkit-transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);-o-transition:box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);transition:box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);transition:box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),-webkit-box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),-webkit-transform 0.25s cubic-bezier(0.4, 0, 0.2, 1)}.embedpress-event .ep-event-group-link{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center;background:#ffffff;border-radius:8px;padding:20px;margin-bottom:20px;border:1px solid rgba(46,62,72,0.12)}.embedpress-event .ep-event-group--name{padding-left:20px;font-size:14px;line-height:1.45;margin:0;width:70%;word-break:break-word}.embedpress-event .ep-event-group--image{-o-object-fit:cover;object-fit:cover;width:56px;height:56px;border-radius:4px}.embedpress-event .ep-event-time-location{background:#ffffff;border-radius:8px;padding:16px 20px 0 20px;border:1px solid rgba(46,62,72,0.12)}.embedpress-event .ep-event-time-location .ep-event-datetime,.embedpress-event .ep-event-time-location .ep-event-location{padding-bottom:20px}.embedpress-event .ep-event-location .wrap--singleLine--truncate,.embedpress-event .ep-event-time-location .ep-event-datetime{font-size:15px;line-height:1.5;color:#2e3e48;font-style:normal;margin:0}.embedpress-event .ep-event-location address{font-style:normal;margin:0}.embedpress-event .ep-event-location .venueDisplay-venue-address{font-style:normal;color:#757575;margin:0}.embedpress-event .ep-event-location p{line-height:20px}.ep-event--attendees .gridList-item{-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;font-size:1rem;margin:0;vertical-align:top;width:50%}.gridList-itemInner{-webkit-box-sizing:border-box;box-sizing:border-box;height:100%;padding:0 16px 16px 0}@media only screen and (min-width: 530px){.ep-event--attendees .gridList--autoHeight--has4>.gridList-item{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}}@media only screen and (min-width: 640px){.embedpress-event .card{padding:18px 18px 20px}.ep-event--attendees .gridList--autoHeight--has4>.gridList-item{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}}.editor-block-list__block[data-align=right]>.editor-block-list__block-edit{float:right}.wp-block[data-align=left],.wp-block[data-align=right]{height:auto !important}@media only screen and (min-width: 482px){.editor-styles-wrapper .wp-block[data-align=right]>*,.editor-styles-wrapper .wp-block[data-align=left]>*{max-width:100% !important}}.editor-styles-wrapper .wp-block[data-align=center]{text-align:center}.editor-styles-wrapper .wp-block[data-align=center]>*{display:inline-block}.editor-styles-wrapper .wp-block::after,.clear::after{content:'';display:block;clear:both;min-height:1px}.alignleft{display:inline;float:left;margin-right:1.5em}.alignright{display:inline;float:right;margin-left:1.5em}.aligncenter{clear:both;display:block;margin-left:auto;margin-right:auto}
3
  .embedpress-document-editmode .components-placeholder__instructions:after{content:"\ASupported File Type: PDF, DOC, PPT, XLS etc ";white-space:pre}.wp-block-embedpress-embedpress-pdf+*{clear:both}.embedpress-document-editmode .components-placeholder__instructions:after{display:none !important}
4
  .wp-block-embedpress-embedpress iframe,.wp-block-embedpress-calendar iframe{max-width:100%}.block-editor-block-list__layout .wp-block figure,.block-editor-block-list__layout .wp-block iframe{margin:0}@media screen and (max-width: 782px){.block-editor-block-list__layout .wp-block figure,.block-editor-block-list__layout .wp-block iframe{height:250px}}.editor-block-list__block[data-align=right]>.editor-block-list__block-edit{float:right}.wp-block[data-align=left],.wp-block[data-align=right]{height:auto !important}@media only screen and (min-width: 482px){.editor-styles-wrapper .wp-block[data-align=right]>*,.editor-styles-wrapper .wp-block[data-align=left]>*{max-width:100% !important}}.editor-styles-wrapper .wp-block[data-align=center]{text-align:center}.editor-styles-wrapper .wp-block[data-align=center]>*{display:inline-block}.editor-styles-wrapper .wp-block::after,.clear::after{content:'';display:block;clear:both;min-height:1px}.alignleft{display:inline;float:left;margin-right:1.5em}.alignright{display:inline;float:right;margin-left:1.5em}.aligncenter{clear:both;display:block;margin-left:auto;margin-right:auto}
1
  .embedpress-document-editmode .components-placeholder__instructions:after{content:"\ASupported File Type: PDF, DOC, PPT, XLS etc ";white-space:pre}
2
+ .wp-block-embedpress-embedpress iframe{max-width:100%}.ose-the-new-york-times iframe{min-height:500px;max-height:100%}.block-editor-block-list__layout .wp-block figure,.block-editor-block-list__layout .wp-block iframe{margin:0}@media screen and (max-width: 782px){.block-editor-block-list__layout .wp-block figure,.block-editor-block-list__layout .wp-block iframe{height:250px}}.wp-block-embedpress-embedpress .components-placeholder.wp-block-embed{min-width:550px}.editor-styles-wrapper .block-editor-block-list__layout.is-root-container>.wp-block-embedpress-embedpress{max-width:1200px !important}.wp-block-embedpress-embedpress{max-width:100% !important}.wp-block-embedpress-embedpress .components-placeholder.wp-block-embed{max-width:100% !important}.embedpress-event .link{color:#0098ab}.embedpress-event .visibility--a11yHide{border:0;clip:rect(0 0 0 0);position:absolute;overflow:hidden;margin:-1px;padding:0;width:1px;height:1px}.embedpress-event .text--small{font-size:14px;margin:0}.embedpress-event .flex{display:-ms-flexbox;display:flex;-webkit-box-sizing:border-box;box-sizing:border-box}.embedpress-event .flex--wrap{-ms-flex-wrap:wrap;flex-wrap:wrap}.embedpress-event .flex--row{-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.embedpress-event .flex-item{-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;flex-grow:1;width:auto;min-width:0;-webkit-box-sizing:border-box;box-sizing:border-box}.embedpress-event .flex-item--shrink{-ms-flex-preferred-size:auto;flex-basis:auto;-ms-flex-positive:0;flex-grow:0;-ms-flex-negative:0;flex-shrink:0;width:auto}.embedpress-event .flex--row>.flex-item:first-child{padding-left:0}.embedpress-event .text--bold{font-weight:700}.embedpress-event h1,.embedpress-event h2,.embedpress-event h3,.embedpress-event h4,.embedpress-event h5,.embedpress-event h6{font-size:inherit}.embedpress-event .ep-event--title{font-size:32px;font-weight:700}.embedpress-event .ep-event--date{color:#757575;font-weight:400;font-size:16px}.embedpress-event .ep-event--host{margin-top:20px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-bottom:20px}.ep-event--host .avatar-print{border-radius:50%;height:50px;width:50px}.embedpress-event img.avatar--person{background-image:none !important;background-repeat:no-repeat;background-position:50%;background-size:cover;border-radius:50%;-webkit-box-sizing:border-box;box-sizing:border-box;vertical-align:middle}.event-info-hosts-text{padding-left:20px;font-size:16px;font-weight:400}.embedpress-event .event-description{margin-top:20px}.text--sectionTitle{font-size:20px;line-height:28px}.ep-event--attendees{margin-top:50px}.ep-event--attendees>.flex{margin-bottom:20px}.ep-event--attendees .gridList{list-style:none;margin:0 -16px 0 0;padding:0}.ep-event--attendees .gridList-item{width:auto}.ep-event--attendees .gridList--autoHeight--has4>.gridList-item{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.ep-event--attendees .groupMember-name{line-height:1.2 !important}.ep-event--attendees .avatar--person{margin-bottom:15px;display:inline-block;border-radius:50%}.ep-event--attendees img.avatar-print{border-radius:50%}.ep-event--attendees .groupMember-role{font-size:12px;color:#757575;padding-top:2px;margin:0}.ep-event--attendees .groupMember{min-height:100%;min-width:128px;padding-left:8px;padding-right:8px}.embedpress-event .align--center{text-align:center}.embedpress-event .card{background:#fff;background-clip:padding-box;background-size:cover;border:1px solid rgba(46,62,72,0.12);border-radius:8px;-webkit-box-sizing:border-box;box-sizing:border-box;display:block;min-height:100%;padding:16px 16px 18px;position:relative;white-space:normal}.embedpress-event .card--hasHoverShadow{-webkit-transition:-webkit-box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),-webkit-transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);transition:-webkit-box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),-webkit-transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);-o-transition:box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);transition:box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);transition:box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),-webkit-box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),-webkit-transform 0.25s cubic-bezier(0.4, 0, 0.2, 1)}.embedpress-event .ep-event-group-link{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center;background:#ffffff;border-radius:8px;padding:20px;margin-bottom:20px;border:1px solid rgba(46,62,72,0.12)}.embedpress-event .ep-event-group--name{padding-left:20px;font-size:14px;line-height:1.45;margin:0;width:70%;word-break:break-word}.embedpress-event .ep-event-group--image{-o-object-fit:cover;object-fit:cover;width:56px;height:56px;border-radius:4px}.embedpress-event .ep-event-time-location{background:#ffffff;border-radius:8px;padding:16px 20px 0 20px;border:1px solid rgba(46,62,72,0.12)}.embedpress-event .ep-event-time-location .ep-event-datetime,.embedpress-event .ep-event-time-location .ep-event-location{padding-bottom:20px}.embedpress-event .ep-event-location .wrap--singleLine--truncate,.embedpress-event .ep-event-time-location .ep-event-datetime{font-size:15px;line-height:1.5;color:#2e3e48;font-style:normal;margin:0}.embedpress-event .ep-event-location address{font-style:normal;margin:0}.embedpress-event .ep-event-location .venueDisplay-venue-address{font-style:normal;color:#757575;margin:0}.embedpress-event .ep-event-location p{line-height:20px}.ep-event--attendees .gridList-item{-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;font-size:1rem;margin:0;vertical-align:top;width:50%}.gridList-itemInner{-webkit-box-sizing:border-box;box-sizing:border-box;height:100%;padding:0 16px 16px 0}@media only screen and (min-width: 530px){.ep-event--attendees .gridList--autoHeight--has4>.gridList-item{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}}@media only screen and (min-width: 640px){.embedpress-event .card{padding:18px 18px 20px}.ep-event--attendees .gridList--autoHeight--has4>.gridList-item{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}}.editor-block-list__block[data-align=right]>.editor-block-list__block-edit{float:right}.wp-block[data-align=left],.wp-block[data-align=right]{height:auto !important}@media only screen and (min-width: 482px){.editor-styles-wrapper .wp-block[data-align=right]>*,.editor-styles-wrapper .wp-block[data-align=left]>*{max-width:100% !important}}.editor-styles-wrapper .wp-block[data-align=center]{text-align:center}.editor-styles-wrapper .wp-block[data-align=center]>*{display:inline-block}.editor-styles-wrapper .wp-block::after,.clear::after{content:'';display:block;clear:both;min-height:1px}.alignleft{display:inline;float:left;margin-right:1.5em}.alignright{display:inline;float:right;margin-left:1.5em}.aligncenter{clear:both;display:block;margin-left:auto;margin-right:auto}
3
  .embedpress-document-editmode .components-placeholder__instructions:after{content:"\ASupported File Type: PDF, DOC, PPT, XLS etc ";white-space:pre}.wp-block-embedpress-embedpress-pdf+*{clear:both}.embedpress-document-editmode .components-placeholder__instructions:after{display:none !important}
4
  .wp-block-embedpress-embedpress iframe,.wp-block-embedpress-calendar iframe{max-width:100%}.block-editor-block-list__layout .wp-block figure,.block-editor-block-list__layout .wp-block iframe{margin:0}@media screen and (max-width: 782px){.block-editor-block-list__layout .wp-block figure,.block-editor-block-list__layout .wp-block iframe{height:250px}}.editor-block-list__block[data-align=right]>.editor-block-list__block-edit{float:right}.wp-block[data-align=left],.wp-block[data-align=right]{height:auto !important}@media only screen and (min-width: 482px){.editor-styles-wrapper .wp-block[data-align=right]>*,.editor-styles-wrapper .wp-block[data-align=left]>*{max-width:100% !important}}.editor-styles-wrapper .wp-block[data-align=center]{text-align:center}.editor-styles-wrapper .wp-block[data-align=center]>*{display:inline-block}.editor-styles-wrapper .wp-block::after,.clear::after{content:'';display:block;clear:both;min-height:1px}.alignleft{display:inline;float:left;margin-right:1.5em}.alignright{display:inline;float:right;margin-left:1.5em}.aligncenter{clear:both;display:block;margin-left:auto;margin-right:auto}
Gutenberg/dist/blocks.style.build.css CHANGED
@@ -1,4 +1,4 @@
1
  .pdfobject-container{height:600px;width:600px;margin:0 auto}.embedpress-el-powered{text-align:center;margin-top:0 !important;font-size:16px !important;font-weight:700}.embedpress-embed-document iframe,[data-type="embedpress/document"] iframe{margin:0 auto;display:block}.embedpress-embed-document-pdf{width:100%}.embedpress-document-editmode .components-form-file-upload{display:none !important}.components-toggle-control .components-base-control__field .components-form-toggle{margin-right:6px}.opensea-control.pro-control span.isPro{right:6px;bottom:5px;-webkit-transform:scale(0.9);-ms-transform:scale(0.9);transform:scale(0.9)}.pro-control.opensea-control input{border-color:#cfc2c2;color:#cfc2c2;border-radius:5px}.pro-control .components-base-control{pointer-events:none}button.components-flex.components-color-palette__custom-color{height:20px}.components-color-palette__custom-color-value{display:none !important}.components-circular-option-picker .components-circular-option-picker__swatches{-ms-flex-pack:distribute;justify-content:space-around}
2
- .embedpress-gutenberg-wrapper{margin:30px auto}.embedpress-gutenberg-wrapper iframe{max-width:100%}.embedpress-gutenberg-wrapper.alignright{max-width:100%}.ose-the-new-york-times iframe{min-height:500px;max-height:100%}body.page .flexia-wrapper>.content-area{padding:0 !important}.flexia-wrapper.flexia-container>.content-area{margin:0 !important}.flexia-wrapper.flexia-container>.content-area .embedpress-gutenberg-wrapper{margin:0 auto}@media only screen and (min-width: 482px){.entry-content>.embedpress-gutenberg-wrapper.alignright,.entry-content>.embedpress-gutenberg-wrapper.alignleft,.embedpress-gutenberg-wrapper.alignright,.embedpress-gutenberg-wrapper.alignleft{max-width:100%}}.clear::after{content:'';display:block;clear:both;min-height:1px}.embedpress-gutenberg-wrapper .alignleft,.embedpress-gutenberg-wrapper .alignright,.embedpress-gutenberg-wrapper .aligncenter{float:none;display:block}.embedpress-gutenberg-wrapper .alignright{text-align:right}.embedpress-gutenberg-wrapper .alignleft{text-align:left}.embedpress-gutenberg-wrapper .aligncenter{clear:both;display:block;float:none;margin-right:auto;margin-left:auto;text-align:center}.embedpress-gutenberg-wrapper .ose-embedpress-responsive{display:inline-block}.embedpress-gutenberg-wrapper{max-width:100% !important}.ep-first-video{position:relative;height:0;padding-bottom:56.25%}.ep-first-video iframe{position:absolute;top:0;left:0;width:100%;height:100%}.components-base-control__label{font-weight:600}.components-input-control__label{font-weight:600}.components-base-control__field,.components-input-control__label{font-weight:600}label.components-truncate.components-text.components-input-control__label.em5sgkm4.ecfd-bd--d-eecc-1iznhho.em57xhy0{font-weight:600 !important}.text-center{text-align:center !important}.wp-block-embed.is-loading{-ms-flex-align:center;align-items:center}.css-vwt1e3{margin:0px 11px 0px !important}.toolbar{display:none}.ep-youtube__content__pagination .ep-prev,.ep-youtube__content__pagination .ep-next{user-select:none;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.ep__components-placeholder,.wp-block-embedpress-embedpress,.block-editor-block-list__block{clear:both !important}.wp-block-embed.is-loading p{margin:0 !important}.ose-opensea{height:100% !important;width:100% !important;min-width:900px}.alignleft .ose-opensea,.alignright .ose-opensea,.aligncenter .ose-opensea{min-width:900px;max-width:900px !important}.aligncenter .ose-opensea{margin:0 auto;display:block !important}.wp-block[data-align=right]{float:right}.wp-block[data-align=left]{float:left}.ep_nft_content_wrap.ep_nft__wrapper{display:grid}.ep_nft_content_wrap.ep_nft__wrapper,.ep_nft_content_wrap.ep_nft_list{grid-template-columns:repeat(auto-fit, minmax(250px, 1fr));grid-column-gap:15px;grid-row-gap:15px}.ep_nft_content_wrap .ep_nft_item{padding-top:15px;padding-right:15px;padding-left:15px;padding-bottom:15px;background-color:#ffffff;border-radius:10px;-webkit-transition:background 0.5s, border 0.5s, border-radius 0.5s, -webkit-box-shadow 0.5s;transition:background 0.5s, border 0.5s, border-radius 0.5s, -webkit-box-shadow 0.5s;-o-transition:background 0.5s, border 0.5s, border-radius 0.5s, box-shadow 0.5s;transition:background 0.5s, border 0.5s, border-radius 0.5s, box-shadow 0.5s;transition:background 0.5s, border 0.5s, border-radius 0.5s, box-shadow 0.5s, -webkit-box-shadow 0.5s;-webkit-box-shadow:0 4px 15px rgba(0,0,0,0.09);box-shadow:0 4px 15px rgba(0,0,0,0.09);overflow:hidden;padding:15px;position:relative;-webkit-transition:.3s ease-in-out;-o-transition:.3s ease-in-out;transition:.3s ease-in-out}.ep_nft_content_wrap.ep_nft__wrapper.nft_items.ep-grid .ep_nft_item{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.ep_nft_content_wrap.ep_nft_list .ep_nft_item{-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:start;align-items:flex-start}.ep_nft_content_wrap.ep_nft__wrapper.preset-3 .ep_nft_item .ep_nft_content{background-color:#edecf6e6}.ep_nft_content_wrap .ep_nft_thumbnail{margin-top:0px;margin-right:0px;margin-left:0px;margin-bottom:15px;border-radius:5px}.ep_nft_content_wrap .ep_nft_thumbnail img{height:340px;border-radius:10px;width:100%;-o-object-fit:cover;object-fit:cover}.ep_nft_content .ep_nft_title{color:#333333;font-size:16px;margin-top:0px;margin-right:0px;margin-left:0px;margin-bottom:15px;font-weight:600}.ep_nft_content{text-align:left}.ep_nft_content .ep_nft_price{color:#333333;font-size:14px;margin-top:0px;margin-right:0px;margin-left:0px;margin-bottom:0px;display:-ms-flexbox;display:flex;font-weight:600}.ep_nft_content .ep_nft_price:first-child{margin-bottom:10px}span.eb_nft_currency{max-width:28px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}span.eb_nft_currency svg{width:100%;height:auto}.ep_nft_content .ep_nft_price_wrapper{min-height:20px}.ep_nft_content .ep_nft_creator{color:#333333;font-size:14px;margin-top:0px;margin-right:0px;margin-left:0px;margin-bottom:20px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:5px}.ep_nft_content .ep_nft_creator a{color:#3080E2;font-size:14px;text-decoration:none;word-break:break-all}.ep_nft_content .ep_nft_creator img{height:30px;width:30px;border-radius:50%}.ep_nft_content .ep_nft_button button{margin-top:0px;margin-right:0px;margin-left:0px;margin-bottom:0px}.ep_nft_content .ep_nft_button button a{background-color:#3080E2;color:#ffffff;font-size:14px;padding-top:15px;padding-right:20px;padding-left:20px;padding-bottom:15px;-webkit-transition:border 0.5s, border-radius 0.5s, -webkit-box-shadow 0.5s;transition:border 0.5s, border-radius 0.5s, -webkit-box-shadow 0.5s;-o-transition:border 0.5s, border-radius 0.5s, box-shadow 0.5s;transition:border 0.5s, border-radius 0.5s, box-shadow 0.5s;transition:border 0.5s, border-radius 0.5s, box-shadow 0.5s, -webkit-box-shadow 0.5s}.ep_nft_content .ep_nft_button button:hover a{background-color:#2e8eee;color:#ffffff}.ep-nft-gallery-wrapper .ep_nft_content_wrap.ep_nft__wrapper.ep-preset-1 .ep_nft_item:hover .ep_nft_button{opacity:1;-webkit-transform:translate(0);-ms-transform:translate(0);transform:translate(0);visibility:visible}.ep-nft-gallery-wrapper.ep-nft-gallery-r1a5mbx .ep_nft_button:hover a{background-color:#2e8eee;color:#ffffff}.ep-nft-gallery-wrapper .ep_nft_content_wrap.ep_nft__wrapper.ep-preset-1 .ep_nft_item:hover .ep_nft_button{opacity:1;-webkit-transform:translate(0);-ms-transform:translate(0);transform:translate(0);visibility:visible}.ep-nft-gallery-wrapper .ep_nft_content_wrap.ep_nft__wrapper.ep-preset-1 .ep_nft_item .ep_nft_button{bottom:0;left:0;opacity:0;position:absolute;-webkit-transform:translateY(30px);-ms-transform:translateY(30px);transform:translateY(30px);visibility:hidden;width:100%;-webkit-transition:0.3s;-o-transition:0.3s;transition:0.3s}.ep-nft-gallery-wrapper.ep-nft-gallery-r1a5mbx .ep_nft_button{margin-top:auto}.ep-nft-gallery-wrapper.ep-nft-gallery-r1a5mbx .ep_nft_button a{background-color:#3080E2;color:#ffffff;font-size:14px;padding:10px 20px;-webkit-transition:border 0.5s, border-radius 0.5s, -webkit-box-shadow 0.5s;transition:border 0.5s, border-radius 0.5s, -webkit-box-shadow 0.5s;-o-transition:border 0.5s, border-radius 0.5s, box-shadow 0.5s;transition:border 0.5s, border-radius 0.5s, box-shadow 0.5s;transition:border 0.5s, border-radius 0.5s, box-shadow 0.5s, -webkit-box-shadow 0.5s;display:block;text-align:center;font-weight:500;text-decoration:none}.ep_nft_content_wrap.ep_nft__wrapper.nft_items.ep-list .ep_nft_item{display:-ms-flexbox;display:flex;gap:15px;-ms-flex-align:center;align-items:center;border-radius:10px}.ep_nft_content_wrap.ep_nft__wrapper.nft_items.ep-list .ep_nft_item .ep_nft_thumbnail{width:55%}.ep_nft_content_wrap.ep_nft__wrapper.nft_items.ep-list .ep_nft_item .ep_nft_content{width:calc( 45% - 15px)}.ep_nft_content_wrap.ep_nft__wrapper.nft_items.ep-list .ep_nft_item .ep_nft_content .ep_nft_price.ep_nft_last_sale{margin-bottom:15px}.ep_nft_content_wrap.ep_nft__wrapper.nft_items .ep_nft_item .ep_nft_thumbnail svg{border-radius:10px}.ep_nft_content_wrap.ep_nft__wrapper.nft_items.ep-list .ep_nft_item .ep_nft_thumbnail img{height:260px}.ep_nft_content_wrap.ep_nft__wrapper.nft_items.ep-list .ep_nft_item .ep_nft_button a{border-radius:10px}.ep_nft_content_wrap.ep_nft__wrapper.nft_items .ep_nft_item .ep_nft_button a{border-radius:10px}.ep-nft-gallery-wrapper .ep_nft_content_wrap.ep_nft__wrapper.ep-preset-1 .ep_nft_item .ep_nft_button a{border-radius:0}.ep_nft_content_wrap.ep_nft__wrapper.nft_items.ep-grid.ep-preset-2 .ep_nft_content .ep_nft_price:last-child{margin-bottom:15px}.ose-opensea{min-width:100% !important;max-width:100% !important}@media all and (max-width: 1024px){.ep_nft_content_wrap.ep_nft__wrapper,.ep_nft_content_wrap.ep_nft_list{grid-template-columns:repeat(3, 1fr) !important}}@media all and (max-width: 991px){.ose-opensea{min-width:auto !important;max-width:100% !important}.ep_nft_content_wrap.ep_nft__wrapper,.ep_nft_content_wrap.ep_nft_list{grid-template-columns:repeat(2, 1fr) !important}}@media all and (max-width: 767px){.ep_nft_content_wrap.ep_nft__wrapper,.ep_nft_content_wrap.ep_nft_list{grid-template-columns:repeat(1, 1fr) !important}}
3
  .pdfobject-container{height:600px;width:600px;margin:0 auto}.embedpress-el-powered{text-align:center;margin-top:10px !important;font-size:16px !important;font-weight:700}.embedpress-embed-document iframe,[data-type="embedpress/document"] iframe{margin:0 auto;display:block}.embedpress-embed-document{max-width:100%}.embedpress-document-editmode .components-form-file-upload{display:none !important}.wp-block-embedpress-embedpress-pdf+*{clear:both}.pro-control{position:relative}span.isPro{position:absolute;z-index:1;background:#5B4E96;border-radius:20px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:40px;height:18px;font-size:10px;right:5px;color:#fff;font-weight:400;text-transform:uppercase;bottom:5px}.pro-control:after{content:'';width:100%;height:100%;background:transparent;position:absolute;z-index:12;top:0;bottom:0}.theme-astra span.isPro{right:10px;bottom:5px}.pro-control:hover::after{cursor:pointer}.pro__alert__wrap{position:fixed;top:0;left:0;height:100%;width:100%;background:rgba(0,0,0,0.3);z-index:1;display:none}.pro__alert__wrap .pro__alert__card{width:calc(100% - 30px);max-width:500px;margin:7% auto 0;background:#fff;border-radius:20px;padding:30px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;text-align:center}.pro__alert__wrap .pro__alert__card h2{font-size:32px;font-weight:450;color:#131F4D;margin-bottom:15px}.pro__alert__wrap .pro__alert__card p{font-size:14px;font-weight:400;color:#7C8DB5;margin-top:10px}.pro__alert__wrap .pro__alert__card .button{-ms-flex-item-align:end;align-self:flex-end;margin-top:20px;padding:6px 30px;border-radius:10px}.pro__alert__wrap .pro__alert__card p a{text-decoration:underline;font-weight:700;color:#131F4D}.template__wrapper .button:hover{background:#5B4E96 !important;color:#fff !important;border-color:#5B4E96 !important}.pro__alert__wrap .pro__alert__card img{height:100px;margin-bottom:20px}.pro-control .components-toggle-control__label{color:#bbacac}.pro-control .components-form-toggle .components-form-toggle__track{border:1px solid #b89d9d}.pro-control .components-form-toggle .components-form-toggle__thumb{background-color:#b89d9d;border:5px solid #b89d9d}.block-editor-block-inspector .components-base-control{margin-top:15px}.pro-control-active{margin-bottom:24px}.ep-alignleft{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:flex-start;text-align:center}.ep-alignright{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:end;align-items:flex-end;text-align:center}.ep-aligncenter{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;text-align:center}.embedpress-document-embed.embedpress-pdf{width:100%}.embedpress-inner-iframe{display:inline-block;text-align:center}.ep__components-placeholder,.wp-block-embedpress-embedpress,.block-editor-block-list__block{clear:both !important}
4
  .embedpress-calendar-gutenberg{margin:30px auto}.embedpress-calendar-gutenberg iframe{max-width:100%}.embedpress-calendar-gutenberg.alignright{max-width:100%}body.page .flexia-wrapper>.content-area{padding:0 !important}.flexia-wrapper.flexia-container>.content-area{margin:0 !important}.flexia-wrapper.flexia-container>.content-area .embedpress-calendar-gutenberg{margin:0 auto}@media only screen and (min-width: 482px){.entry-content>.embedpress-calendar-gutenberg.alignright,.entry-content>.embedpress-calendar-gutenberg.alignleft,.embedpress-calendar-gutenberg.alignright,.embedpress-calendar-gutenberg.alignleft{max-width:100%}}.clear::after{content:'';display:block;clear:both;min-height:1px}
1
  .pdfobject-container{height:600px;width:600px;margin:0 auto}.embedpress-el-powered{text-align:center;margin-top:0 !important;font-size:16px !important;font-weight:700}.embedpress-embed-document iframe,[data-type="embedpress/document"] iframe{margin:0 auto;display:block}.embedpress-embed-document-pdf{width:100%}.embedpress-document-editmode .components-form-file-upload{display:none !important}.components-toggle-control .components-base-control__field .components-form-toggle{margin-right:6px}.opensea-control.pro-control span.isPro{right:6px;bottom:5px;-webkit-transform:scale(0.9);-ms-transform:scale(0.9);transform:scale(0.9)}.pro-control.opensea-control input{border-color:#cfc2c2;color:#cfc2c2;border-radius:5px}.pro-control .components-base-control{pointer-events:none}button.components-flex.components-color-palette__custom-color{height:20px}.components-color-palette__custom-color-value{display:none !important}.components-circular-option-picker .components-circular-option-picker__swatches{-ms-flex-pack:distribute;justify-content:space-around}
2
+ .embedpress-gutenberg-wrapper{margin:30px auto}.embedpress-gutenberg-wrapper iframe{max-width:100%}.embedpress-gutenberg-wrapper.alignright{max-width:100%}.ose-the-new-york-times iframe{min-height:500px;max-height:100%}body.page .flexia-wrapper>.content-area{padding:0 !important}.flexia-wrapper.flexia-container>.content-area{margin:0 !important}.flexia-wrapper.flexia-container>.content-area .embedpress-gutenberg-wrapper{margin:0 auto}@media only screen and (min-width: 482px){.entry-content>.embedpress-gutenberg-wrapper.alignright,.entry-content>.embedpress-gutenberg-wrapper.alignleft,.embedpress-gutenberg-wrapper.alignright,.embedpress-gutenberg-wrapper.alignleft{max-width:100%}}.clear::after{content:'';display:block;clear:both;min-height:1px}.embedpress-gutenberg-wrapper .alignleft,.embedpress-gutenberg-wrapper .alignright,.embedpress-gutenberg-wrapper .aligncenter{float:none;display:block}.embedpress-gutenberg-wrapper .alignright{text-align:right}.embedpress-gutenberg-wrapper .alignleft{text-align:left}.embedpress-gutenberg-wrapper .aligncenter{clear:both;display:block;float:none;margin-right:auto;margin-left:auto;text-align:center}.embedpress-gutenberg-wrapper .ose-embedpress-responsive{display:inline-block}.embedpress-gutenberg-wrapper{max-width:100% !important}.ep-first-video{position:relative;height:0;padding-bottom:56.25%}.ep-first-video iframe{position:absolute;top:0;left:0;width:100%;height:100%}.components-base-control__label{font-weight:600}.components-input-control__label{font-weight:600}.components-base-control__field,.components-input-control__label{font-weight:600}label.components-truncate.components-text.components-input-control__label.em5sgkm4.ecfd-bd--d-eecc-1iznhho.em57xhy0{font-weight:600 !important}.text-center{text-align:center !important}.wp-block-embed.is-loading{-ms-flex-align:center;align-items:center}.css-vwt1e3{margin:0px 11px 0px !important}.toolbar{display:none}.ep-youtube__content__pagination .ep-prev,.ep-youtube__content__pagination .ep-next{user-select:none;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.ep__components-placeholder,.wp-block-embedpress-embedpress,.block-editor-block-list__block{clear:both !important}.wp-block-embed.is-loading p{margin:0 !important}.ose-opensea{height:100% !important;width:100% !important;min-width:900px}.alignleft .ose-opensea,.alignright .ose-opensea,.aligncenter .ose-opensea{min-width:900px;max-width:900px !important}.aligncenter .ose-opensea{margin:0 auto;display:block !important}.wp-block[data-align=right]{float:right}.wp-block[data-align=left]{float:left}.ep_nft_content_wrap.ep_nft__wrapper{display:grid}.ep_nft_content_wrap.ep_nft__wrapper,.ep_nft_content_wrap.ep_nft_list{grid-template-columns:repeat(auto-fit, minmax(250px, 1fr));grid-column-gap:15px;grid-row-gap:15px}.ep_nft_content_wrap .ep_nft_item{padding-top:15px;padding-right:15px;padding-left:15px;padding-bottom:15px;background-color:#ffffff;border-radius:10px;-webkit-transition:background 0.5s, border 0.5s, border-radius 0.5s, -webkit-box-shadow 0.5s;transition:background 0.5s, border 0.5s, border-radius 0.5s, -webkit-box-shadow 0.5s;-o-transition:background 0.5s, border 0.5s, border-radius 0.5s, box-shadow 0.5s;transition:background 0.5s, border 0.5s, border-radius 0.5s, box-shadow 0.5s;transition:background 0.5s, border 0.5s, border-radius 0.5s, box-shadow 0.5s, -webkit-box-shadow 0.5s;-webkit-box-shadow:0 4px 15px rgba(0,0,0,0.09);box-shadow:0 4px 15px rgba(0,0,0,0.09);overflow:hidden;padding:15px;position:relative;-webkit-transition:.3s ease-in-out;-o-transition:.3s ease-in-out;transition:.3s ease-in-out}.ep_nft_content_wrap.ep_nft__wrapper.nft_items.ep-grid .ep_nft_item{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.ep_nft_content_wrap.ep_nft_list .ep_nft_item{-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:start;align-items:flex-start}.ep_nft_content_wrap.ep_nft__wrapper.preset-3 .ep_nft_item .ep_nft_content{background-color:#edecf6e6}.ep_nft_content_wrap .ep_nft_thumbnail{margin-top:0px;margin-right:0px;margin-left:0px;margin-bottom:15px;border-radius:5px}.ep_nft_content_wrap .ep_nft_thumbnail img{height:340px;border-radius:10px;width:100%;-o-object-fit:cover;object-fit:cover}.ep_nft_content .ep_nft_title{color:#333333;font-size:16px;margin-top:0px;margin-right:0px;margin-left:0px;margin-bottom:15px;font-weight:600}.ep_nft_content{text-align:left}.ep_nft_content .ep_nft_price{color:#333333;font-size:14px;margin-top:0px;margin-right:0px;margin-left:0px;margin-bottom:0px;display:-ms-flexbox;display:flex;font-weight:600}.ep_nft_content .ep_nft_price:first-child{margin-bottom:10px}span.eb_nft_currency{max-width:28px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}span.eb_nft_currency svg{width:100%;height:auto}.ep_nft_content .ep_nft_price_wrapper{min-height:20px}.ep_nft_content .ep_nft_creator{color:#333333;font-size:14px;margin-top:0px;margin-right:0px;margin-left:0px;margin-bottom:20px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:5px}.ep_nft_content .ep_nft_creator a{color:#3080E2;font-size:14px;text-decoration:none;word-break:break-all}.ep_nft_content .ep_nft_creator img{height:30px;width:30px;border-radius:50%}.ep_nft_content .ep_nft_button button{margin-top:0px;margin-right:0px;margin-left:0px;margin-bottom:0px}.ep_nft_content .ep_nft_button button a{background-color:#3080E2;color:#ffffff;font-size:14px;padding-top:15px;padding-right:20px;padding-left:20px;padding-bottom:15px;-webkit-transition:border 0.5s, border-radius 0.5s, -webkit-box-shadow 0.5s;transition:border 0.5s, border-radius 0.5s, -webkit-box-shadow 0.5s;-o-transition:border 0.5s, border-radius 0.5s, box-shadow 0.5s;transition:border 0.5s, border-radius 0.5s, box-shadow 0.5s;transition:border 0.5s, border-radius 0.5s, box-shadow 0.5s, -webkit-box-shadow 0.5s}.ep_nft_content .ep_nft_button button:hover a{background-color:#2e8eee;color:#ffffff}.ep-nft-gallery-wrapper .ep_nft_content_wrap.ep_nft__wrapper.ep-preset-1 .ep_nft_item:hover .ep_nft_button{opacity:1;-webkit-transform:translate(0);-ms-transform:translate(0);transform:translate(0);visibility:visible}.ep-nft-gallery-wrapper.ep-nft-gallery-r1a5mbx .ep_nft_button a.ep-details-btn:hover{background-color:#2e8eee;color:#ffffff}.ep-nft-gallery-wrapper .ep_nft_content_wrap.ep_nft__wrapper.ep-preset-1 .ep_nft_item:hover .ep_nft_button{opacity:1;-webkit-transform:translate(0);-ms-transform:translate(0);transform:translate(0);visibility:visible}.ep-nft-gallery-wrapper .ep_nft_content_wrap.ep_nft__wrapper.ep-preset-1 .ep_nft_item .ep_nft_button{bottom:0;left:0;opacity:0;position:absolute;-webkit-transform:translateY(30px);-ms-transform:translateY(30px);transform:translateY(30px);visibility:hidden;width:100%;-webkit-transition:0.3s;-o-transition:0.3s;transition:0.3s}.ep-nft-gallery-wrapper.ep-nft-gallery-r1a5mbx .ep_nft_button{margin-top:auto}.ep-nft-gallery-wrapper.ep-nft-gallery-r1a5mbx .ep_nft_button a{background-color:#3080E2;color:#ffffff;font-size:14px;padding:10px 20px;-webkit-transition:border 0.5s, border-radius 0.5s, -webkit-box-shadow 0.5s;transition:border 0.5s, border-radius 0.5s, -webkit-box-shadow 0.5s;-o-transition:border 0.5s, border-radius 0.5s, box-shadow 0.5s;transition:border 0.5s, border-radius 0.5s, box-shadow 0.5s;transition:border 0.5s, border-radius 0.5s, box-shadow 0.5s, -webkit-box-shadow 0.5s;display:block;text-align:center;font-weight:500;text-decoration:none}.ep_nft_content_wrap.ep_nft__wrapper.nft_items.ep-list .ep_nft_item{display:-ms-flexbox;display:flex;gap:15px;-ms-flex-align:center;align-items:center;border-radius:10px}.ep_nft_content_wrap.ep_nft__wrapper.nft_items.ep-list .ep_nft_item .ep_nft_thumbnail{width:55%}.ep_nft_content_wrap.ep_nft__wrapper.nft_items.ep-list .ep_nft_item .ep_nft_content{width:calc( 45% - 15px)}.ep_nft_content_wrap.ep_nft__wrapper.nft_items.ep-list .ep_nft_item .ep_nft_content .ep_nft_price.ep_nft_last_sale{margin-bottom:15px}.ep_nft_content_wrap.ep_nft__wrapper.nft_items .ep_nft_item .ep_nft_thumbnail svg{border-radius:10px}.ep_nft_content_wrap.ep_nft__wrapper.nft_items.ep-list .ep_nft_item .ep_nft_thumbnail img{height:260px}.ep_nft_content_wrap.ep_nft__wrapper.nft_items.ep-list .ep_nft_item .ep_nft_button a{border-radius:10px}.ep_nft_content_wrap.ep_nft__wrapper.nft_items .ep_nft_item .ep_nft_button a{border-radius:10px}.ep-nft-gallery-wrapper .ep_nft_content_wrap.ep_nft__wrapper.ep-preset-1 .ep_nft_item .ep_nft_button a{border-radius:0}.ep_nft_content_wrap.ep_nft__wrapper.nft_items.ep-grid.ep-preset-2 .ep_nft_content .ep_nft_price:last-child{margin-bottom:15px}.ose-opensea{min-width:100% !important;max-width:100% !important}@media all and (max-width: 1024px){.ep_nft_content_wrap.ep_nft__wrapper,.ep_nft_content_wrap.ep_nft_list{grid-template-columns:repeat(3, 1fr) !important}}@media all and (max-width: 991px){.ose-opensea{min-width:auto !important;max-width:100% !important}.ep_nft_content_wrap.ep_nft__wrapper,.ep_nft_content_wrap.ep_nft_list{grid-template-columns:repeat(2, 1fr) !important}}@media all and (max-width: 767px){.ep_nft_content_wrap.ep_nft__wrapper,.ep_nft_content_wrap.ep_nft_list{grid-template-columns:repeat(1, 1fr) !important}}.ep-nft-single-item-wraper.ep_nft_content_wrap .ep_nft_item{-webkit-box-shadow:none;box-shadow:none}.ep-nft-single-item-wraper.ep_nft_content_wrap.ep_nft__wrapper.nft_items.ep-list .ep_nft_item .ep_nft_content{width:calc(55% - 15px)}.ep-nft-single-item-wraper.ep_nft_content_wrap.ep_nft__wrapper.nft_items.ep-list .ep_nft_item .ep_nft_thumbnail{width:45%;height:100%}.ep-nft-single-item-wraper.ep_nft_content_wrap.ep_nft__wrapper.nft_items.ep-list .ep_nft_item .ep_nft_thumbnail img{height:100%}.ep-nft-single-item-wraper span.eb_nft_label{color:#333}.ep-nft-single-item-wraper .ep_nft_content .ep_nft_price{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin-right:45px}.ep-nft-single-item-wraper span.eb_nft_price{font-size:30px}.ep-nft-single-item-wraper .ep_nft_content .ep_nft_creator img{height:15px;width:15px;border-radius:50%}.ep-nft-single-item-wraper .ep-usd-price{bottom:0;font-size:12px}.ep-nft-single-item-wraper span.eb_nft_label{font-size:15px}.ep-nft-single-item-wraper .ep_nft_content .ep_nft_title{margin-bottom:10px;font-size:24px}.ep-nft-single-item-wraper .CollectionLink--name svg{width:20px;height:20px;margin-left:5px}.ep-nft-single-item-wraper a.CollectionLink--link{font-size:15px;font-weight:500;text-decoration:none;margin-bottom:15px;display:block;color:#3080E2}.ep-nft-single-item-wraper sub.verified-icon{bottom:-5px;left:4px}.ep-nft-single-item-wraper .ep-accordion{border:1px solid #ddd;border-radius:10px;margin-top:15px;display:block}.ep-nft-single-item-wraper .ep-toggle{display:none}.ep-nft-single-item-wraper .ep-option{position:relative}.ep-nft-single-item-wraper .ep-content{padding:1em;border-top:1px solid #ddd}.ep-nft-single-item-wraper .ep-content{-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-transition:all 0.2s;-o-transition:all 0.2s;transition:all 0.2s}.ep-nft-single-item-wraper .ep-title{-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-transition:all 0.2s;-o-transition:all 0.2s;transition:all 0.2s;padding:1em;display:-ms-flexbox;display:flex;color:#333;font-weight:bold;cursor:pointer;border-radius:10px 10px 0 0;-ms-flex-align:center;align-items:center}.ep-nft-single-item-wraper label.ep-title svg{width:20px;height:20px;margin-right:6px}.ep-nft-single-item-wraper .ep-asset-detail-item{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;font-weight:500;line-height:1.8em}.ep-nft-single-item-wraper .ep-content{display:block}.ep-nft-single-item-wraper .ep-content p{margin:0;padding:0.5em 1em 1em;font-size:0.9em;line-height:1.5}.ep-nft-single-item-wraper .ep-toggle:checked+.ep-title+.ep-content{display:none;background:transparent}.ep-nft-single-item-wraper .ep_nft_content .ep_nft_price_wrapper{display:-ms-flexbox;display:flex}.ep-nft-single-item-wraper .ep-toggle+.ep-title:after{content:"";display:inline-block;position:absolute;width:12px;height:12px;background:transparent;text-indent:-9999px;border-top:2px solid #bfbfbf;border-left:2px solid #bfbfbf;-webkit-transition:all 250ms ease-in-out;-o-transition:all 250ms ease-in-out;transition:all 250ms ease-in-out;text-decoration:none;color:transparent;right:15px;top:50%;-webkit-transform:rotate(45deg) translate(-20%, -5%);-ms-transform:rotate(45deg) translate(-20%, -5%);transform:rotate(45deg) translate(-20%, -5%)}.ep-nft-single-item-wraper .ep-toggle:checked+.ep-title:before{content:"";display:inline-block;position:absolute;width:12px;height:12px;background:transparent;text-indent:-9999px;border-top:2px solid #bfbfbf;border-left:2px solid #bfbfbf;-webkit-transition:all 250ms ease-in-out;-o-transition:all 250ms ease-in-out;transition:all 250ms ease-in-out;text-decoration:none;color:transparent;right:15px;top:50%;-webkit-transform:rotate(225deg) translate(80%, 20%);-ms-transform:rotate(225deg) translate(80%, 20%);transform:rotate(225deg) translate(80%, 20%)}.ep-nft-single-item-wraper .ep-toggle:checked+.ep-title:after{display:none}.ep-nft-single-item-wraper.ep_nft_content_wrap.ep_nft__wrapper.nft_items .ep_nft_item .ep_nft_button span.ep-nft-rank{pointer-events:none}.ep-nft-single-item-wraper.ep_nft_content_wrap.ep_nft__wrapper.nft_items.ep-nft-single-item-wraper.ep-grid .ep_nft_content{margin-bottom:20px}@media screen and (max-width: 1024px){.ep-nft-single-item-wraper.ep_nft_content_wrap.ep_nft__wrapper,.ep-nft-single-item-wraper.ep_nft_content_wrap.ep_nft_list{grid-template-columns:repeat(1, 1fr) !important}}@media screen and (max-width: 991px){.ep-nft-single-item-wraper.ep_nft_content_wrap.ep_nft__wrapper,.ep-nft-single-item-wraper.ep_nft_content_wrap.ep_nft_list{grid-template-columns:repeat(1, 1fr) !important}.ep-nft-single-item-wraper.ep_nft_content_wrap.ep_nft__wrapper.nft_items.ep-list .ep_nft_item{-ms-flex-align:unset;align-items:unset;-ms-flex-direction:column;flex-direction:column}.ep-nft-single-item-wraper.ep_nft_content_wrap.ep_nft__wrapper.nft_items.ep-list .ep_nft_item .ep_nft_thumbnail{width:100%}.ep-nft-single-item-wraper.ep_nft_content_wrap.ep_nft__wrapper.nft_items.ep-list .ep_nft_item .ep_nft_content{width:100%}}@media screen and (max-width: 537px){.ep-nft-single-item-wraper sub.ep-usd-price{margin-bottom:15px;display:block}}.components-panel__body .ep-control-header{border-top:1px solid #fbf0f0;padding-top:16px;width:calc(100% + 32px);margin-left:-16px;padding-left:16px}
3
  .pdfobject-container{height:600px;width:600px;margin:0 auto}.embedpress-el-powered{text-align:center;margin-top:10px !important;font-size:16px !important;font-weight:700}.embedpress-embed-document iframe,[data-type="embedpress/document"] iframe{margin:0 auto;display:block}.embedpress-embed-document{max-width:100%}.embedpress-document-editmode .components-form-file-upload{display:none !important}.wp-block-embedpress-embedpress-pdf+*{clear:both}.pro-control{position:relative}span.isPro{position:absolute;z-index:1;background:#5B4E96;border-radius:20px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:40px;height:18px;font-size:10px;right:5px;color:#fff;font-weight:400;text-transform:uppercase;bottom:5px}.pro-control:after{content:'';width:100%;height:100%;background:transparent;position:absolute;z-index:12;top:0;bottom:0}.theme-astra span.isPro{right:10px;bottom:5px}.pro-control:hover::after{cursor:pointer}.pro__alert__wrap{position:fixed;top:0;left:0;height:100%;width:100%;background:rgba(0,0,0,0.3);z-index:1;display:none}.pro__alert__wrap .pro__alert__card{width:calc(100% - 30px);max-width:500px;margin:7% auto 0;background:#fff;border-radius:20px;padding:30px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;text-align:center}.pro__alert__wrap .pro__alert__card h2{font-size:32px;font-weight:450;color:#131F4D;margin-bottom:15px}.pro__alert__wrap .pro__alert__card p{font-size:14px;font-weight:400;color:#7C8DB5;margin-top:10px}.pro__alert__wrap .pro__alert__card .button{-ms-flex-item-align:end;align-self:flex-end;margin-top:20px;padding:6px 30px;border-radius:10px}.pro__alert__wrap .pro__alert__card p a{text-decoration:underline;font-weight:700;color:#131F4D}.template__wrapper .button:hover{background:#5B4E96 !important;color:#fff !important;border-color:#5B4E96 !important}.pro__alert__wrap .pro__alert__card img{height:100px;margin-bottom:20px}.pro-control .components-toggle-control__label{color:#bbacac}.pro-control .components-form-toggle .components-form-toggle__track{border:1px solid #b89d9d}.pro-control .components-form-toggle .components-form-toggle__thumb{background-color:#b89d9d;border:5px solid #b89d9d}.block-editor-block-inspector .components-base-control{margin-top:15px}.pro-control-active{margin-bottom:24px}.ep-alignleft{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:flex-start;text-align:center}.ep-alignright{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:end;align-items:flex-end;text-align:center}.ep-aligncenter{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;text-align:center}.embedpress-document-embed.embedpress-pdf{width:100%}.embedpress-inner-iframe{display:inline-block;text-align:center}.ep__components-placeholder,.wp-block-embedpress-embedpress,.block-editor-block-list__block{clear:both !important}
4
  .embedpress-calendar-gutenberg{margin:30px auto}.embedpress-calendar-gutenberg iframe{max-width:100%}.embedpress-calendar-gutenberg.alignright{max-width:100%}body.page .flexia-wrapper>.content-area{padding:0 !important}.flexia-wrapper.flexia-container>.content-area{margin:0 !important}.flexia-wrapper.flexia-container>.content-area .embedpress-calendar-gutenberg{margin:0 auto}@media only screen and (min-width: 482px){.entry-content>.embedpress-calendar-gutenberg.alignright,.entry-content>.embedpress-calendar-gutenberg.alignleft,.embedpress-calendar-gutenberg.alignright,.embedpress-calendar-gutenberg.alignleft{max-width:100%}}.clear::after{content:'';display:block;clear:both;min-height:1px}
Gutenberg/plugin.php CHANGED
@@ -60,8 +60,8 @@ function embedpress_blocks_cgb_editor_assets()
60
 
61
  wp_enqueue_script(
62
  'embedpress_blocks-cgb-block-js', // Handle.
63
- EMBEDPRESS_GUTENBERG_DIR_URL . '/dist/blocks.build.js', // Block.build.js: We register the block here. Built with Webpack.
64
- array('wp-blocks', 'wp-i18n', 'wp-element', 'wp-editor', 'wp-components', 'embedpress-pdfobject'), // Dependencies, defined above.
65
  filemtime(EMBEDPRESS_GUTENBERG_DIR_PATH . 'dist/blocks.build.js'), // Version: File modification time.
66
  true // Enqueue the script in the footer.
67
  );
@@ -229,6 +229,22 @@ function embedpress_gutenberg_register_all_block()
229
 
230
  add_action('init', 'embedpress_gutenberg_register_all_block');
231
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
232
  function embedpress_pdf_render_block($attributes)
233
  {
234
 
@@ -245,7 +261,8 @@ function embedpress_pdf_render_block($attributes)
245
  $powered_by = $attributes['powered_by'];
246
  }
247
 
248
- $src = $renderer . ((strpos($renderer, '?') == false) ? '?' : '&') . 'file=' . $attributes['href'];
 
249
  $hash = md5($id);
250
  $aligns = [
251
  'left' => 'ep-alignleft',
@@ -271,7 +288,7 @@ function embedpress_pdf_render_block($attributes)
271
  </div>
272
 
273
  </div>
274
- <?php ep_pdf_block_frontend_style($attributes, 'pdf');
275
 
276
  return ob_get_clean();
277
  }
@@ -324,153 +341,3 @@ function embedpress_pdf_render_block($attributes)
324
  <?php
325
  return ob_get_clean();
326
  }
327
-
328
-
329
- /**
330
- * FrontEnd Style for PDF Block
331
- */
332
- function ep_pdf_block_frontend_style($attributes, $embed)
333
- {
334
- if ($embed === 'pdf') : ?>
335
- <script>
336
- {
337
- let x = 0;
338
-
339
- const setThemeMode = (frm, themeMode) => {
340
- const htmlEL = frm.getElementsByTagName("html")[0];
341
- if(htmlEL){
342
- htmlEL.setAttribute('ep-data-theme', themeMode);
343
- }
344
- }
345
-
346
- const setEmbedInterval = setInterval(() => {
347
- x++;
348
- if (document.querySelector('<?php echo esc_html('.' . $attributes['id']); ?>')) {
349
- const isDisplay = (selectorName) => {
350
- if (!selectorName) {
351
- selectorName = 'none';
352
- } else {
353
- selectorName = 'block';
354
- }
355
-
356
- return selectorName;
357
- }
358
-
359
- const frm = document.querySelector('<?php echo esc_html('.' . $attributes['id']); ?>').contentWindow.document;
360
- const otherhead = frm.getElementsByTagName("head")[0];
361
- const style = frm.createElement("style");
362
- style.setAttribute('id', 'EBiframeStyleID');
363
-
364
- let themeMode = '<?php echo esc_html(!empty($attributes['themeMode']) ? $attributes['themeMode'] : 'default'); ?>';
365
- let toolbar = <?php echo esc_html($attributes['toolbar'] ? $attributes['toolbar'] : 0); ?>;
366
- let presentation = <?php echo esc_html($attributes['presentation'] ? $attributes['presentation'] : 0); ?>;
367
- let download = <?php echo esc_html($attributes['download'] ? $attributes['download'] : 0); ?>;
368
- let open = <?php echo esc_html($attributes['open'] ? $attributes['open'] : 0); ?>;
369
- let copy_text = <?php echo esc_html($attributes['copy_text'] ? $attributes['copy_text'] : 0); ?>;
370
- let doc_details = <?php echo esc_html($attributes['doc_details'] ? $attributes['doc_details'] : 0); ?>;
371
- let doc_rotation = <?php echo esc_html($attributes['doc_rotation'] ? $attributes['doc_rotation'] : 0); ?>;
372
- let toolbar_position = '<?php echo esc_html($attributes['position'] ? $attributes['position'] : 0); ?>';
373
-
374
- toolbar = isDisplay(toolbar);
375
- presentation = isDisplay(presentation);
376
- download = isDisplay(download);
377
- open = isDisplay(open);
378
- copy_text = isDisplay(copy_text);
379
-
380
-
381
- <?php if(!defined('EMBEDPRESS_PRO_PLUGIN_FILE')): ?>
382
- download = 'block';
383
- copy_text = 'block';
384
- <?php endif; ?>
385
-
386
- if (copy_text === 'block') {
387
- copy_text = 'all';
388
- }
389
-
390
- doc_details = isDisplay(doc_details);
391
- doc_rotation = isDisplay(doc_rotation);
392
-
393
- if (toolbar_position == 'top') {
394
- toolbar_position = 'top:0;bottom:auto;';
395
- settingsPos = '';
396
- } else {
397
- toolbar_position = 'bottom:0;top:auto;'
398
- settingsPos = `
399
- .findbar, .secondaryToolbar {
400
- top: auto;bottom: 32px;
401
- }
402
- .doorHangerRight:after{
403
- transform: rotate(180deg);
404
- bottom: -16px;
405
- }
406
- .doorHangerRight:before {
407
- transform: rotate(180deg);
408
- bottom: -18px;
409
- }
410
-
411
- .findbar.doorHanger:before {
412
- bottom: -18px;
413
- transform: rotate(180deg);
414
- }
415
- .findbar.doorHanger:after {
416
- bottom: -16px;
417
- transform: rotate(180deg);
418
- }
419
- `;
420
- }
421
- style.textContent = `
422
- .toolbar{
423
- display: ${toolbar}!important;
424
- position: absolute;
425
- ${toolbar_position}
426
-
427
- }
428
- #secondaryToolbar{
429
- display: ${toolbar};
430
- }
431
- #secondaryPresentationMode, #toolbarViewerRight #presentationMode{
432
- display: ${presentation}!important;
433
- }
434
- #secondaryOpenFile, #toolbarViewerRight #openFile{
435
- display: none!important;
436
- }
437
- #secondaryDownload, #secondaryPrint, #toolbarViewerRight #print, #toolbarViewerRight #download{
438
- display: ${download}!important;
439
- }
440
-
441
- #pageRotateCw{
442
- display: ${doc_rotation}!important;
443
- }
444
- #pageRotateCcw{
445
- display: ${doc_rotation}!important;
446
- }
447
- #documentProperties{
448
- display: ${doc_details}!important;
449
- }
450
- .textLayer{
451
- user-select: ${copy_text}!important;
452
- }
453
- ${settingsPos}
454
- `;
455
- if(frm){
456
- setThemeMode(frm, themeMode);
457
- }
458
- if (otherhead) {
459
- if(frm.getElementById("EBiframeStyleID")){
460
- frm.getElementById("EBiframeStyleID").remove();
461
- }
462
- otherhead.appendChild(style);
463
- clearInterval(setEmbedInterval);
464
- }
465
- }
466
- if (x > 50) {
467
- clearInterval(setEmbedInterval);
468
- }
469
- }, 100);
470
- }
471
-
472
-
473
- </script>
474
- <?php
475
- endif;
476
- }
60
 
61
  wp_enqueue_script(
62
  'embedpress_blocks-cgb-block-js', // Handle.
63
+ EMBEDPRESS_GUTENBERG_DIR_URL . 'dist/blocks.build.js', // Block.build.js: We register the block here. Built with Webpack.
64
+ array('wp-blocks', 'wp-i18n', 'wp-element', 'wp-api-fetch', 'wp-is-shallow-equal', 'wp-editor', 'wp-components', 'embedpress-pdfobject'), // Dependencies, defined above.
65
  filemtime(EMBEDPRESS_GUTENBERG_DIR_PATH . 'dist/blocks.build.js'), // Version: File modification time.
66
  true // Enqueue the script in the footer.
67
  );
229
 
230
  add_action('init', 'embedpress_gutenberg_register_all_block');
231
 
232
+ function getParamData($attributes){
233
+
234
+ $urlParamData = array(
235
+ 'themeMode' => !empty($attributes['themeMode']) ? $attributes['themeMode'] : 'default',
236
+ 'toolbar' => !empty($attributes['toolbar']) ? 'true' : 'false',
237
+ 'position' => $attributes['position'],
238
+ 'presentation' => !empty($attributes['presentation']) ? 'true' : 'false',
239
+ 'download' => !empty($attributes['download']) ? 'true' : 'false',
240
+ 'copy_text' => !empty($attributes['copy_text']) ? 'true' : 'false',
241
+ 'doc_rotation' => !empty($attributes['doc_rotation']) ? 'true' : 'false',
242
+ 'doc_details' => !empty($attributes['doc_details']) ? 'true' : 'false',
243
+ );
244
+
245
+ return "#". http_build_query($urlParamData);
246
+ }
247
+
248
  function embedpress_pdf_render_block($attributes)
249
  {
250
 
261
  $powered_by = $attributes['powered_by'];
262
  }
263
 
264
+ $src = $renderer . ((strpos($renderer, '?') == false) ? '?' : '&') . 'file=' . $attributes['href'].getParamData($attributes);
265
+
266
  $hash = md5($id);
267
  $aligns = [
268
  'left' => 'ep-alignleft',
288
  </div>
289
 
290
  </div>
291
+ <?php
292
 
293
  return ob_get_clean();
294
  }
341
  <?php
342
  return ob_get_clean();
343
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/css/embedpress.css CHANGED
@@ -534,6 +534,7 @@
534
  position: relative;
535
  transition: .3s ease-in-out;
536
  }
 
537
  .ep_nft_content_wrap.ep_nft__wrapper.nft_items.ep-grid .ep_nft_item {
538
  display: flex;
539
  flex-direction: column;
@@ -627,7 +628,7 @@ span.eb_nft_currency svg {
627
  font-size: 14px;
628
  text-decoration: none;
629
  word-break: break-all;
630
- text-decoration: none!important;
631
  }
632
 
633
  .ep_nft_content .ep_nft_creator img {
@@ -666,7 +667,7 @@ span.eb_nft_currency svg {
666
  }
667
 
668
 
669
- .ep-nft-gallery-wrapper.ep-nft-gallery-r1a5mbx .ep_nft_button:hover a {
670
  background-color: rgb(46, 142, 238);
671
  color: #ffffff;
672
  }
@@ -687,9 +688,14 @@ span.eb_nft_currency svg {
687
  width: 100%;
688
  transition: 0.3s;
689
  }
690
- .ep-nft-gallery-wrapper.ep-nft-gallery-r1a5mbx .ep_nft_button{
 
691
  margin-top: auto;
 
 
 
692
  }
 
693
  .ep-nft-gallery-wrapper.ep-nft-gallery-r1a5mbx .ep_nft_button a {
694
  background-color: #3080E2;
695
  color: #ffffff;
@@ -699,7 +705,11 @@ span.eb_nft_currency svg {
699
  display: block;
700
  text-align: center;
701
  font-weight: 500;
702
- text-decoration: none!important;
 
 
 
 
703
  }
704
 
705
  /* mimmikcssStart */
@@ -713,11 +723,13 @@ span.eb_nft_currency svg {
713
  align-items: center;
714
  border-radius: 10px;
715
  }
 
716
  .ep_nft_content_wrap.ep_nft__wrapper.nft_items.ep-list .ep_nft_item .ep_nft_thumbnail {
717
  width: 55%;
718
  }
 
719
  .ep_nft_content_wrap.ep_nft__wrapper.nft_items.ep-list .ep_nft_item .ep_nft_content {
720
- width: calc( 45% - 15px );
721
  }
722
 
723
  .ep_nft_content_wrap.ep_nft__wrapper.nft_items.ep-list .ep_nft_item .ep_nft_content .ep_nft_price.ep_nft_last_sale {
@@ -731,14 +743,23 @@ span.eb_nft_currency svg {
731
  .ep_nft_content_wrap.ep_nft__wrapper.nft_items.ep-list .ep_nft_item .ep_nft_thumbnail img {
732
  height: 260px;
733
  }
734
- .ep_nft_content_wrap.ep_nft__wrapper.nft_items.ep-list .ep_nft_item .ep_nft_button a{
 
735
  border-radius: 10px;
 
 
 
 
736
  }
737
-
738
- .ep_nft_content_wrap.ep_nft__wrapper.nft_items.ep-grid.ep-preset-2 .ep_nft_content .ep_nft_price:last-child{
739
- margin-bottom: 15px;
740
  }
741
 
 
 
 
 
 
742
 
743
  /* mimmikcssEnd */
744
 
@@ -750,10 +771,12 @@ span.eb_nft_currency svg {
750
  grid-template-columns: repeat(3, 1fr) !important;
751
  }
752
 
753
- .alignleft .ose-opensea, .alignright .ose-opensea, .aligncenter .ose-opensea {
754
- max-width: 100%!important;
 
 
755
  }
756
-
757
  /* tabcssEnd */
758
 
759
  }
@@ -762,11 +785,11 @@ span.eb_nft_currency svg {
762
 
763
  /* tabcssStart */
764
  .ose-opensea {
765
- min-width: 100%!important;
766
- max-width: 100%!important;
767
  }
768
 
769
-
770
 
771
  .ep_nft_content_wrap.ep_nft__wrapper,
772
  .ep_nft_content_wrap.ep_nft_list {
@@ -787,4 +810,258 @@ span.eb_nft_currency svg {
787
 
788
  /* mobcssEnd */
789
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
790
  }
534
  position: relative;
535
  transition: .3s ease-in-out;
536
  }
537
+
538
  .ep_nft_content_wrap.ep_nft__wrapper.nft_items.ep-grid .ep_nft_item {
539
  display: flex;
540
  flex-direction: column;
628
  font-size: 14px;
629
  text-decoration: none;
630
  word-break: break-all;
631
+ text-decoration: none;
632
  }
633
 
634
  .ep_nft_content .ep_nft_creator img {
667
  }
668
 
669
 
670
+ .ep-nft-gallery-wrapper.ep-nft-gallery-r1a5mbx .ep_nft_button a.ep-details-btn:hover {
671
  background-color: rgb(46, 142, 238);
672
  color: #ffffff;
673
  }
688
  width: 100%;
689
  transition: 0.3s;
690
  }
691
+
692
+ .ep-nft-gallery-wrapper.ep-nft-gallery-r1a5mbx .ep-nft-single-item-wraper .ep_nft_button {
693
  margin-top: auto;
694
+ display: flex;
695
+ justify-content: space-between;
696
+ gap: 15px;
697
  }
698
+
699
  .ep-nft-gallery-wrapper.ep-nft-gallery-r1a5mbx .ep_nft_button a {
700
  background-color: #3080E2;
701
  color: #ffffff;
705
  display: block;
706
  text-align: center;
707
  font-weight: 500;
708
+ text-decoration: none;
709
+ }
710
+ .ep-nft-gallery-wrapper.ep-nft-gallery-r1a5mbx .ep_nft_button span.ep-nft-rank{
711
+ color: #a88484;
712
+ border-color: #a88484;
713
  }
714
 
715
  /* mimmikcssStart */
723
  align-items: center;
724
  border-radius: 10px;
725
  }
726
+
727
  .ep_nft_content_wrap.ep_nft__wrapper.nft_items.ep-list .ep_nft_item .ep_nft_thumbnail {
728
  width: 55%;
729
  }
730
+
731
  .ep_nft_content_wrap.ep_nft__wrapper.nft_items.ep-list .ep_nft_item .ep_nft_content {
732
+ width: calc(45% - 15px);
733
  }
734
 
735
  .ep_nft_content_wrap.ep_nft__wrapper.nft_items.ep-list .ep_nft_item .ep_nft_content .ep_nft_price.ep_nft_last_sale {
743
  .ep_nft_content_wrap.ep_nft__wrapper.nft_items.ep-list .ep_nft_item .ep_nft_thumbnail img {
744
  height: 260px;
745
  }
746
+
747
+ .ep-nft-single-item-wraper.ep_nft_content_wrap.ep_nft__wrapper.nft_items.ep-list .ep_nft_item .ep_nft_button a {
748
  border-radius: 10px;
749
+ width: 100%;
750
+ display: flex;
751
+ align-items: center;
752
+ justify-content: center;
753
  }
754
+ .ep_nft_content_wrap.ep_nft__wrapper.nft_items.ep-grid.ep-preset-2 .ep_nft_content .ep_nft_price:last-child {
755
+ margin-bottom: 15px;
 
756
  }
757
 
758
+ .alignleft .ose-opensea,
759
+ .alignright .ose-opensea,
760
+ .aligncenter .ose-opensea {
761
+ max-width: 100% !important;
762
+ }
763
 
764
  /* mimmikcssEnd */
765
 
771
  grid-template-columns: repeat(3, 1fr) !important;
772
  }
773
 
774
+ .alignleft .ose-opensea,
775
+ .alignright .ose-opensea,
776
+ .aligncenter .ose-opensea {
777
+ max-width: 100% !important;
778
  }
779
+
780
  /* tabcssEnd */
781
 
782
  }
785
 
786
  /* tabcssStart */
787
  .ose-opensea {
788
+ min-width: 100% !important;
789
+ max-width: 100% !important;
790
  }
791
 
792
+
793
 
794
  .ep_nft_content_wrap.ep_nft__wrapper,
795
  .ep_nft_content_wrap.ep_nft_list {
810
 
811
  /* mobcssEnd */
812
 
813
+ }
814
+
815
+
816
+ /* NFT Single item CSS */
817
+ .ep-nft-single-item-wraper.ep_nft_content_wrap .ep_nft_item {
818
+ box-shadow: none;
819
+ }
820
+
821
+ .ep-nft-rank-wraper {
822
+ margin-bottom: 16px;
823
+ font-weight: 600;
824
+ color: #333;
825
+ font-size: 16px;
826
+ }
827
+
828
+ .ep-nft-rank-wraper.ep-empty-label span{
829
+ margin-left: 0px;
830
+ }
831
+ span.ep-nft-rank {
832
+ padding: 2px 8px;
833
+ border-radius: 7px;
834
+ margin-left: 10px;
835
+ display: inline-block;
836
+ font-size: 14px;
837
+ font-weight: 600;
838
+ background: transparent!important;
839
+ border: 1px solid #ddd;
840
+ color: #333;
841
+ }
842
+
843
+ .ep-nft-single-item-wraper.ep_nft_content_wrap.ep_nft__wrapper.nft_items.ep-list .ep_nft_item .ep_nft_content {
844
+ width: calc(55% - 15px);
845
+ }
846
+
847
+ .ep-nft-single-item-wraper.ep_nft_content_wrap.ep_nft__wrapper.nft_items.ep-list .ep_nft_item .ep_nft_thumbnail {
848
+ width: 45%;
849
+ height: 100%;
850
+ }
851
+
852
+ .ep-nft-single-item-wraper.ep_nft_content_wrap.ep_nft__wrapper.nft_items.ep-list .ep_nft_item .ep_nft_thumbnail img {
853
+ height: 100%;
854
+ }
855
+
856
+ .ep-nft-single-item-wraper span.eb_nft_label {
857
+ color: #333;
858
+ /* margin-bottom: -10px; */
859
+ }
860
+
861
+ .ep-nft-single-item-wraper .ep_nft_content .ep_nft_price {
862
+ display: flex;
863
+ flex-direction: column;
864
+ margin-right: 45px;
865
+ }
866
+
867
+ .ep-nft-single-item-wraper span.eb_nft_price {
868
+ font-size: 30px;
869
+ line-height: normal;
870
+ }
871
+
872
+ .ep-nft-single-item-wraper .ep_nft_content .ep_nft_creator img {
873
+ height: 15px;
874
+ width: 15px;
875
+ border-radius: 50%;
876
+ }
877
+
878
+ .ep-nft-single-item-wraper .ep-usd-price {
879
+ bottom: 0;
880
+ font-size: 12px;
881
+ }
882
+
883
+ .ep-nft-single-item-wraper span.eb_nft_label {
884
+ /* margin-bottom: -14px; */
885
+ font-size: 15px;
886
+ }
887
+
888
+ .ep-nft-single-item-wraper .ep_nft_content .ep_nft_title {
889
+ margin-bottom: 10px;
890
+ font-size: 24px;
891
+ }
892
+
893
+ .ep-nft-single-item-wraper .CollectionLink--name svg {
894
+ width: 20px;
895
+ height: 20px;
896
+ margin-left: 5px;
897
+ }
898
+
899
+ .ep-nft-single-item-wraper a.CollectionLink--link {
900
+ font-size: 15px;
901
+ font-weight: 500;
902
+ text-decoration: none;
903
+ margin-bottom: 15px;
904
+ display: block;
905
+ color: #3080E2;
906
+ }
907
+
908
+ .ep-nft-single-item-wraper sub.verified-icon {
909
+ bottom: -5px;
910
+ left: 4px;
911
+ }
912
+
913
+ /* toggle */
914
+ .ep-nft-single-item-wraper .ep-accordion {
915
+ border: 1px solid #ddd;
916
+ border-radius: 10px;
917
+ margin-top: 15px;
918
+ display: block;
919
+ }
920
+
921
+ .ep-nft-single-item-wraper .ep-toggle {
922
+ display: none;
923
+ }
924
+
925
+ .ep-nft-single-item-wraper .ep-option {
926
+ position: relative;
927
+ }
928
+
929
+ .ep-nft-single-item-wraper .ep-content {
930
+ padding: 1em;
931
+ border-top: 1px solid #ddd;
932
+ }
933
+
934
+ .ep-nft-single-item-wraper .ep-content {
935
+ -webkit-backface-visibility: hidden;
936
+ backface-visibility: hidden;
937
+ transform: translateZ(0);
938
+ transition: all 0.2s;
939
+ }
940
+
941
+ .ep-nft-single-item-wraper .ep-title {
942
+ -webkit-backface-visibility: hidden;
943
+ backface-visibility: hidden;
944
+ transform: translateZ(0);
945
+ transition: all 0.2s;
946
+ padding: 1em;
947
+ display: flex;
948
+ color: #333;
949
+ font-weight: bold;
950
+ cursor: pointer;
951
+ border-radius: 10px 10px 0 0;
952
+ align-items: center;
953
+ }
954
+
955
+ .ep-nft-single-item-wraper label.ep-title svg {
956
+ width: 20px;
957
+ height: 20px;
958
+ margin-right: 6px;
959
+ }
960
+
961
+ .ep-nft-single-item-wraper .ep-asset-detail-item {
962
+ display: flex;
963
+ justify-content: space-between;
964
+ font-weight: 500;
965
+ }
966
+
967
+
968
+ .ep-nft-single-item-wraper .ep-content {
969
+ display: block;
970
+ }
971
+
972
+ .ep-nft-single-item-wraper .ep-content p {
973
+ margin: 0;
974
+ padding: 0.5em 1em 1em;
975
+ font-size: 0.9em;
976
+ line-height: 1.5;
977
+ }
978
+
979
+ .ep-nft-single-item-wraper .ep-toggle:checked+.ep-title+.ep-content {
980
+ display: none;
981
+ background: transparent;
982
+ }
983
+
984
+
985
+
986
+ .ep-nft-single-item-wraper .ep_nft_content .ep_nft_price_wrapper {
987
+ display: flex;
988
+ }
989
+
990
+ .ep-nft-single-item-wraper .ep-toggle+.ep-title:after {
991
+ content: "";
992
+ display: inline-block;
993
+ position: absolute;
994
+ width: 12px;
995
+ height: 12px;
996
+ background: transparent;
997
+ text-indent: -9999px;
998
+ border-top: 2px solid #bfbfbf;
999
+ border-left: 2px solid #bfbfbf;
1000
+ transition: all 250ms ease-in-out;
1001
+ text-decoration: none;
1002
+ color: transparent;
1003
+ right: 15px;
1004
+ top: 50%;
1005
+ transform: rotate(45deg) translate(-20%, -5%);
1006
+ }
1007
+ .ep-nft-single-item-wraper .ep-toggle:checked+.ep-title:before {
1008
+ content: "";
1009
+ display: inline-block;
1010
+ position: absolute;
1011
+ width: 12px;
1012
+ height: 12px;
1013
+ background: transparent;
1014
+ text-indent: -9999px;
1015
+ border-top: 2px solid #bfbfbf;
1016
+ border-left: 2px solid #bfbfbf;
1017
+ transition: all 250ms ease-in-out;
1018
+ text-decoration: none;
1019
+ color: transparent;
1020
+ right: 15px;
1021
+ top: 50%;
1022
+ transform: rotate(225deg) translate(80%, 20%);
1023
+ }
1024
+ .ep-nft-single-item-wraper .ep-toggle:checked+.ep-title:after {
1025
+ display: none;
1026
+ }
1027
+
1028
+ .ep-nft-single-item-wraper.ep_nft_content_wrap.ep_nft__wrapper.nft_items .ep_nft_item .ep_nft_button span.ep-nft-rank{
1029
+ pointer-events: none;
1030
+ }
1031
+
1032
+ .ep-nft-single-item-wraper.ep_nft_content_wrap.ep_nft__wrapper.nft_items.ep-nft-single-item-wraper.ep-grid .ep_nft_content {
1033
+ margin-bottom: 20px;
1034
+ }
1035
+
1036
+ @media screen and (max-width: 1024px) {
1037
+
1038
+ .ep-nft-single-item-wraper.ep_nft_content_wrap.ep_nft__wrapper, .ep-nft-single-item-wraper.ep_nft_content_wrap.ep_nft_list {
1039
+ grid-template-columns: repeat(1, 1fr) !important;
1040
+ }
1041
+
1042
+ }
1043
+ @media screen and (max-width: 991px) {
1044
+
1045
+ .ep-nft-single-item-wraper.ep_nft_content_wrap.ep_nft__wrapper, .ep-nft-single-item-wraper.ep_nft_content_wrap.ep_nft_list {
1046
+ grid-template-columns: repeat(1, 1fr) !important;
1047
+ }
1048
+
1049
+ .ep-nft-single-item-wraper.ep_nft_content_wrap.ep_nft__wrapper.nft_items.ep-list .ep_nft_item {
1050
+ align-items: unset;
1051
+ flex-direction: column;
1052
+ }
1053
+
1054
+ .ep-nft-single-item-wraper.ep_nft_content_wrap.ep_nft__wrapper.nft_items.ep-list .ep_nft_item .ep_nft_thumbnail {
1055
+ width: 100%;
1056
+ }
1057
+
1058
+ .ep-nft-single-item-wraper.ep_nft_content_wrap.ep_nft__wrapper.nft_items.ep-list .ep_nft_item .ep_nft_content {
1059
+ width: 100%;
1060
+ }
1061
+ }
1062
+ @media screen and (max-width: 537px) {
1063
+ .ep-nft-single-item-wraper sub.ep-usd-price {
1064
+ margin-bottom: 15px;
1065
+ display: block;
1066
+ }
1067
  }
assets/js/preview.js CHANGED
@@ -662,7 +662,7 @@
662
  '}' +
663
  '</style>' +
664
  '</head>' +
665
- '<body id="wpview-iframe-sandbox" class="' + editorInstance.getBody().className + '" style="display: inline-block;">' +
666
  $content.html() +
667
  '</body>' +
668
  '</html>'
662
  '}' +
663
  '</style>' +
664
  '</head>' +
665
+ '<body id="wpview-iframe-sandbox" class="' + editorInstance.getBody().className + '" style="display: inline-block; width: 100%;" >' +
666
  $content.html() +
667
  '</body>' +
668
  '</html>'
assets/pdf/web/ep-scripts.js ADDED
@@ -0,0 +1,157 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use strict";
2
+
3
+ //Create theme mode function
4
+ const setThemeMode = (themeMode) => {
5
+ const htmlEL = document.getElementsByTagName("html")[0];
6
+ if (htmlEL) {
7
+ htmlEL.setAttribute('ep-data-theme', themeMode);
8
+ }
9
+ }
10
+
11
+ const getParamObj = (hash) => {
12
+ let paramsObj = {};
13
+
14
+ if (location.hash) {
15
+ let hashParams = new URLSearchParams(hash.substring(1));
16
+
17
+ paramsObj = {
18
+ themeMode: hashParams.get('themeMode'),
19
+ presentation: hashParams.get('presentation'),
20
+ copy_text: hashParams.get('copy_text'),
21
+ position: hashParams.get('position'),
22
+ download: hashParams.get('download'),
23
+ toolbar: hashParams.get('toolbar'),
24
+ doc_details: hashParams.get('doc_details'),
25
+ doc_rotation: hashParams.get('doc_rotation')
26
+ }
27
+ }
28
+
29
+ return paramsObj;
30
+ }
31
+
32
+ const isDisplay = (selectorName) => {
33
+ if (selectorName == 'false' || selectorName == false) {
34
+ selectorName = 'none';
35
+ }
36
+ else {
37
+ selectorName = 'block';
38
+ }
39
+ return selectorName;
40
+ }
41
+
42
+
43
+ const pdfIframeStyle = (data) => {
44
+ let settingsPos = '';
45
+
46
+ if (data.toolbar === false || data.toolbar == 'false') {
47
+ data.presentation = false; data.download = true; data.copy_text = true; data.doc_details = false; data.doc_rotation = false;
48
+ }
49
+
50
+ let position = 'top';
51
+ let toolbar = isDisplay(data.toolbar);
52
+ let presentation = isDisplay(data.presentation);
53
+ let download = isDisplay(data.download);
54
+ let copy_text = isDisplay(data.copy_text);
55
+
56
+ if (copy_text === 'block' || copy_text == 'true' || copy_text == true) {
57
+ copy_text = 'all';
58
+ }
59
+
60
+ let doc_details = isDisplay(data.doc_details);
61
+ let doc_rotation = isDisplay(data.doc_rotation);
62
+
63
+ // console.log(position, toolbar, presentation, download, copy_text, doc_details, doc_rotation);
64
+
65
+ const otherhead = document.getElementsByTagName("head")[0];
66
+
67
+ // console.log(document.getElementsByTagName("head")[0]);
68
+
69
+ const style = document.createElement("style");
70
+ style.setAttribute('id', 'EBiframeStyleID');
71
+
72
+ if (data.position === 'top') {
73
+ position = 'top:0;bottom:auto;'
74
+ settingsPos = '';
75
+ }
76
+ else {
77
+ position = 'bottom:0;top:auto;'
78
+ settingsPos = `
79
+ .findbar, .secondaryToolbar {
80
+ top: auto;bottom: 32px;
81
+ }
82
+ .doorHangerRight:after{
83
+ transform: rotate(180deg);
84
+ bottom: -16px;
85
+ }
86
+ .doorHangerRight:before {
87
+ transform: rotate(180deg);
88
+ bottom: -18px;
89
+ }
90
+
91
+ .findbar.doorHanger:before {
92
+ bottom: -18px;
93
+ transform: rotate(180deg);
94
+ }
95
+ .findbar.doorHanger:after {
96
+ bottom: -16px;
97
+ transform: rotate(180deg);
98
+ }
99
+ `;
100
+ }
101
+
102
+ style.textContent = `
103
+ .toolbar{
104
+ display: ${toolbar}!important;
105
+ position: absolute;
106
+ ${position}
107
+ }
108
+ #secondaryToolbar{
109
+ display: ${toolbar};
110
+ }
111
+ #secondaryPresentationMode, #toolbarViewerRight #presentationMode{
112
+ display: ${presentation}!important;
113
+ }
114
+ #secondaryOpenFile, #toolbarViewerRight #openFile{
115
+ display: none!important;
116
+ }
117
+ #secondaryDownload, #secondaryPrint, #toolbarViewerRight #print, #toolbarViewerRight #download{
118
+ display: ${download}!important;
119
+ }
120
+ #pageRotateCw{
121
+ display: ${doc_rotation}!important;
122
+ }
123
+ #pageRotateCcw{
124
+ display: ${doc_rotation}!important;
125
+ }
126
+ #documentProperties{
127
+ display: ${doc_details}!important;
128
+ }
129
+ .textLayer{
130
+ user-select: ${copy_text}!important;
131
+ }
132
+ ${settingsPos}
133
+ `;
134
+
135
+ if (otherhead) {
136
+ if (document.getElementById("EBiframeStyleID")) {
137
+ document.getElementById("EBiframeStyleID").remove();
138
+ }
139
+ otherhead.appendChild(style);
140
+ }
141
+ }
142
+
143
+ const manupulatePDFIframe = (e) => {
144
+ let hashNewUrl = new URL(e.newURL);
145
+ let data = getParamObj(hashNewUrl.hash);
146
+ pdfIframeStyle(data);
147
+ setThemeMode(data.themeMode);
148
+ }
149
+
150
+ window.addEventListener('hashchange', (e) => {
151
+ manupulatePDFIframe(e);
152
+ }, false);
153
+
154
+
155
+ let data = getParamObj(location.hash);
156
+ pdfIframeStyle(data);
157
+ setThemeMode(data.themeMode);
assets/pdf/web/viewer.css CHANGED
@@ -13,7 +13,7 @@
13
  * limitations under the License.
14
  */
15
 
16
- /* Modified version */
17
 
18
  .textLayer {
19
  position: absolute;
@@ -77,8 +77,8 @@
77
  z-index: -1;
78
  cursor: default;
79
  -webkit-user-select: none;
80
- -moz-user-select: none;
81
- user-select: none;
82
  }
83
 
84
  .textLayer .endOfContent.active {
@@ -91,8 +91,8 @@
91
  text-align: initial;
92
  }
93
 
94
- .annotationLayer .linkAnnotation > a,
95
- .annotationLayer .buttonWidgetAnnotation.pushButton > a {
96
  position: absolute;
97
  font-size: 1em;
98
  top: 0;
@@ -101,8 +101,8 @@
101
  height: 100%;
102
  }
103
 
104
- .annotationLayer .linkAnnotation > a:hover,
105
- .annotationLayer .buttonWidgetAnnotation.pushButton > a:hover {
106
  opacity: 0.2;
107
  background: rgba(255, 255, 0, 1);
108
  box-shadow: 0 2px 10px rgba(255, 255, 0, 1);
@@ -219,8 +219,8 @@
219
  .annotationLayer .buttonWidgetAnnotation.checkBox input,
220
  .annotationLayer .buttonWidgetAnnotation.radioButton input {
221
  -webkit-appearance: none;
222
- -moz-appearance: none;
223
- appearance: none;
224
  padding: 0;
225
  }
226
 
@@ -245,7 +245,7 @@
245
  word-wrap: break-word;
246
  }
247
 
248
- .annotationLayer .popup > * {
249
  font-size: 9px;
250
  }
251
 
@@ -394,14 +394,14 @@
394
  resize: none;
395
  }
396
 
397
- .xfaLabel > input[type="radio"] {
398
  /* Use this trick to make the checkbox invisible but
399
  but still focusable. */
400
  position: absolute;
401
  left: -99999px;
402
  }
403
 
404
- .xfaLabel > input[type="radio"]:focus + .xfaCheckboxMark {
405
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
406
  }
407
 
@@ -422,7 +422,7 @@
422
  align-items: center;
423
  }
424
 
425
- .xfaCheckbox:checked + .xfaCheckboxMark::after {
426
  content: attr(mark);
427
  }
428
 
@@ -466,20 +466,20 @@
466
 
467
  .xfaLr,
468
  .xfaRl,
469
- .xfaTb > div {
470
  flex: 1 1 auto;
471
  }
472
 
473
- .xfaTb > div {
474
  justify-content: left;
475
  }
476
 
477
- .xfaLr > div {
478
  display: inline;
479
  float: left;
480
  }
481
 
482
- .xfaRl > div {
483
  display: inline;
484
  float: right;
485
  }
@@ -497,12 +497,12 @@
497
  align-items: center;
498
  }
499
 
500
- .xfaLrTb > div {
501
  display: inline;
502
  float: left;
503
  }
504
 
505
- .xfaRlTb > div {
506
  display: inline;
507
  float: right;
508
  }
@@ -518,7 +518,7 @@
518
  flex: 1 1 auto;
519
  }
520
 
521
- .xfaTable .xfaRow > div {
522
  flex: 1 1 auto;
523
  }
524
 
@@ -528,7 +528,7 @@
528
  flex: 1;
529
  }
530
 
531
- .xfaTable .xfaRlRow > div {
532
  flex: 1;
533
  }
534
 
@@ -566,7 +566,7 @@
566
  border: var(--page-border);
567
  background-clip: content-box;
568
  -o-border-image: url(images/shadow.png) 9 9 repeat;
569
- border-image: url(images/shadow.png) 9 9 repeat;
570
  background-color: rgba(255, 255, 255, 1);
571
  }
572
 
@@ -758,6 +758,7 @@
758
  --secondaryToolbarButton-spreadEven-icon: url(images/secondaryToolbarButton-spreadEven.svg);
759
  --secondaryToolbarButton-documentProperties-icon: url(images/secondaryToolbarButton-documentProperties.svg);
760
  }
 
761
  /* define for system dark */
762
  @media (prefers-color-scheme: dark) {
763
  :root {
@@ -891,50 +892,51 @@
891
  --secondaryToolbarButton-spreadEven-icon: url(images/secondaryToolbarButton-spreadEven.svg);
892
  --secondaryToolbarButton-documentProperties-icon: url(images/secondaryToolbarButton-documentProperties.svg);
893
  }
894
- [ep-data-theme="dark"] {
895
- --main-color: rgba(249, 249, 250, 1);
896
- --body-bg-color: rgba(42, 42, 46, 1);
897
- --errorWrapper-bg-color: rgba(169, 14, 14, 1);
898
- --progressBar-color: rgba(0, 96, 223, 1);
899
- --progressBar-indeterminate-bg-color: rgba(40, 40, 43, 1);
900
- --progressBar-indeterminate-blend-color: rgba(20, 68, 133, 1);
901
- --scrollbar-color: rgba(121, 121, 123, 1);
902
- --scrollbar-bg-color: rgba(35, 35, 39, 1);
903
- --toolbar-icon-bg-color: rgba(255, 255, 255, 1);
904
- --toolbar-icon-hover-bg-color: rgba(255, 255, 255, 1);
905
-
906
- --sidebar-narrow-bg-color: rgba(42, 42, 46, 0.9);
907
- --sidebar-toolbar-bg-color: rgba(50, 50, 52, 1);
908
- --toolbar-bg-color: rgba(56, 56, 61, 1);
909
- --toolbar-border-color: rgba(12, 12, 13, 1);
910
- --button-hover-color: rgba(102, 102, 103, 1);
911
- --toggled-btn-color: rgba(255, 255, 255, 1);
912
- --toggled-btn-bg-color: rgba(0, 0, 0, 0.3);
913
- --toggled-hover-active-btn-color: rgba(0, 0, 0, 0.4);
914
- --dropdown-btn-bg-color: rgba(74, 74, 79, 1);
915
- --separator-color: rgba(0, 0, 0, 0.3);
916
- --field-color: rgba(250, 250, 250, 1);
917
- --field-bg-color: rgba(64, 64, 68, 1);
918
- --field-border-color: rgba(115, 115, 115, 1);
919
- --findbar-nextprevious-btn-bg-color: rgba(89, 89, 89, 1);
920
- --treeitem-color: rgba(255, 255, 255, 0.8);
921
- --treeitem-hover-color: rgba(255, 255, 255, 0.9);
922
- --treeitem-selected-color: rgba(255, 255, 255, 0.9);
923
- --treeitem-selected-bg-color: rgba(255, 255, 255, 0.25);
924
- --sidebaritem-bg-color: rgba(255, 255, 255, 0.15);
925
- --doorhanger-bg-color: rgba(74, 74, 79, 1);
926
- --doorhanger-border-color: rgba(39, 39, 43, 1);
927
- --doorhanger-hover-color: rgba(249, 249, 250, 1);
928
- --doorhanger-hover-bg-color: rgba(93, 94, 98, 1);
929
- --doorhanger-separator-color: rgba(92, 92, 97, 1);
930
- --overlay-button-bg-color: rgba(92, 92, 97, 1);
931
- --overlay-button-hover-bg-color: rgba(115, 115, 115, 1);
932
 
933
- /* This image is used in <input> elements, which unfortunately means that
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
934
  * the `mask-image` approach used with all of the other images doesn't work
935
  * here; hence why we still have two versions of this particular image. */
936
- --loading-icon: url(images/loading-dark.svg);
937
- }
938
 
939
  @media screen and (forced-colors: active) {
940
  :root {
@@ -956,6 +958,10 @@
956
  }
957
  }
958
 
 
 
 
 
959
  * {
960
  padding: 0;
961
  margin: 0;
@@ -986,14 +992,15 @@ select {
986
  .hidden {
987
  display: none !important;
988
  }
 
989
  [hidden] {
990
  display: none !important;
991
  }
992
 
993
  .pdfViewer.enablePermissions .textLayer span {
994
  -webkit-user-select: none !important;
995
- -moz-user-select: none !important;
996
- user-select: none !important;
997
  cursor: not-allowed;
998
  }
999
 
@@ -1006,7 +1013,7 @@ select {
1006
  overflow: hidden;
1007
  cursor: none;
1008
  -webkit-user-select: none;
1009
- user-select: none;
1010
  }
1011
 
1012
  #viewerContainer.pdfPresentationMode:fullscreen {
@@ -1018,8 +1025,8 @@ select {
1018
  overflow: hidden;
1019
  cursor: none;
1020
  -webkit-user-select: none;
1021
- -moz-user-select: none;
1022
- user-select: none;
1023
  }
1024
 
1025
  .pdfPresentationMode:-webkit-full-screen a:not(.internalLink) {
@@ -1038,7 +1045,7 @@ select {
1038
  cursor: none;
1039
  }
1040
 
1041
- .pdfPresentationMode.pdfPresentationModeControls > *,
1042
  .pdfPresentationMode.pdfPresentationModeControls .textLayer span {
1043
  cursor: default;
1044
  }
@@ -1060,11 +1067,13 @@ select {
1060
  transition-duration: var(--sidebar-transition-duration);
1061
  transition-timing-function: var(--sidebar-transition-timing-function);
1062
  }
 
1063
  html[dir="ltr"] #sidebarContainer {
1064
  transition-property: left;
1065
  left: calc(0px - var(--sidebar-width));
1066
  border-right: var(--doorhanger-border-color-whcm);
1067
  }
 
1068
  html[dir="rtl"] #sidebarContainer {
1069
  transition-property: right;
1070
  right: calc(0px - var(--sidebar-width));
@@ -1076,17 +1085,19 @@ html[dir="rtl"] #sidebarContainer {
1076
  transition-duration: 0s;
1077
  /* Prevent e.g. the thumbnails being selected when the sidebar is resized. */
1078
  -webkit-user-select: none;
1079
- -moz-user-select: none;
1080
- user-select: none;
1081
  }
1082
 
1083
  #outerContainer.sidebarMoving #sidebarContainer,
1084
  #outerContainer.sidebarOpen #sidebarContainer {
1085
  visibility: visible;
1086
  }
 
1087
  html[dir="ltr"] #outerContainer.sidebarOpen #sidebarContainer {
1088
  left: 0;
1089
  }
 
1090
  html[dir="rtl"] #outerContainer.sidebarOpen #sidebarContainer {
1091
  right: 0;
1092
  }
@@ -1109,10 +1120,12 @@ html[dir="rtl"] #outerContainer.sidebarOpen #sidebarContainer {
1109
  width: 100%;
1110
  background-color: rgba(0, 0, 0, 0.1);
1111
  }
 
1112
  html[dir="ltr"] #sidebarContent {
1113
  left: 0;
1114
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.25);
1115
  }
 
1116
  html[dir="rtl"] #sidebarContent {
1117
  right: 0;
1118
  box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.25);
@@ -1128,6 +1141,7 @@ html[dir="rtl"] #sidebarContent {
1128
  left: 0;
1129
  outline: none;
1130
  }
 
1131
  #viewerContainer:not(.pdfPresentationMode) {
1132
  transition-duration: var(--sidebar-transition-duration);
1133
  transition-timing-function: var(--sidebar-transition-timing-function);
@@ -1138,15 +1152,12 @@ html[dir="rtl"] #sidebarContent {
1138
  transition-duration: 0s;
1139
  }
1140
 
1141
- html[dir="ltr"]
1142
- #outerContainer.sidebarOpen
1143
- #viewerContainer:not(.pdfPresentationMode) {
1144
  transition-property: left;
1145
  left: var(--sidebar-width);
1146
  }
1147
- html[dir="rtl"]
1148
- #outerContainer.sidebarOpen
1149
- #viewerContainer:not(.pdfPresentationMode) {
1150
  transition-property: right;
1151
  right: var(--sidebar-width);
1152
  }
@@ -1168,10 +1179,12 @@ html[dir="rtl"]
1168
  height: 32px;
1169
  background-color: var(--sidebar-toolbar-bg-color);
1170
  }
 
1171
  html[dir="ltr"] #toolbarSidebar {
1172
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.25), 0 1px 0 rgba(0, 0, 0, 0.15),
1173
  0 0 1px rgba(0, 0, 0, 0.1);
1174
  }
 
1175
  html[dir="rtl"] #toolbarSidebar {
1176
  box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.25), 0 1px 0 rgba(0, 0, 0, 0.15),
1177
  0 0 1px rgba(0, 0, 0, 0.1);
@@ -1180,6 +1193,7 @@ html[dir="rtl"] #toolbarSidebar {
1180
  html[dir="ltr"] #toolbarSidebar .toolbarButton {
1181
  margin-right: 2px !important;
1182
  }
 
1183
  html[dir="rtl"] #toolbarSidebar .toolbarButton {
1184
  margin-left: 2px !important;
1185
  }
@@ -1187,6 +1201,7 @@ html[dir="rtl"] #toolbarSidebar .toolbarButton {
1187
  html[dir="ltr"] #toolbarSidebarRight .toolbarButton {
1188
  margin-right: 3px !important;
1189
  }
 
1190
  html[dir="rtl"] #toolbarSidebarRight .toolbarButton {
1191
  margin-left: 3px !important;
1192
  }
@@ -1199,9 +1214,11 @@ html[dir="rtl"] #toolbarSidebarRight .toolbarButton {
1199
  z-index: 200;
1200
  cursor: ew-resize;
1201
  }
 
1202
  html[dir="ltr"] #sidebarResizer {
1203
  right: -6px;
1204
  }
 
1205
  html[dir="rtl"] #sidebarResizer {
1206
  left: -6px;
1207
  }
@@ -1228,11 +1245,13 @@ html[dir="rtl"] #sidebarResizer {
1228
  transition-duration: var(--sidebar-transition-duration);
1229
  transition-timing-function: var(--sidebar-transition-timing-function);
1230
  }
 
1231
  html[dir="ltr"] #loadingBar {
1232
  transition-property: left;
1233
  left: 0;
1234
  right: var(--loadingBar-end-offset);
1235
  }
 
1236
  html[dir="rtl"] #loadingBar {
1237
  transition-property: right;
1238
  left: var(--loadingBar-end-offset);
@@ -1242,6 +1261,7 @@ html[dir="rtl"] #loadingBar {
1242
  html[dir="ltr"] #outerContainer.sidebarOpen #loadingBar {
1243
  left: var(--sidebar-width);
1244
  }
 
1245
  html[dir="rtl"] #outerContainer.sidebarOpen #loadingBar {
1246
  right: var(--sidebar-width);
1247
  }
@@ -1266,6 +1286,7 @@ html[dir="rtl"] #outerContainer.sidebarOpen #loadingBar {
1266
  0% {
1267
  left: -142px;
1268
  }
 
1269
  100% {
1270
  left: 0;
1271
  }
@@ -1275,6 +1296,7 @@ html[dir="rtl"] #outerContainer.sidebarOpen #loadingBar {
1275
  0% {
1276
  left: -142px;
1277
  }
 
1278
  100% {
1279
  left: 0;
1280
  }
@@ -1291,17 +1313,15 @@ html[dir="rtl"] #outerContainer.sidebarOpen #loadingBar {
1291
  left: 0;
1292
  height: 100%;
1293
  width: calc(100% + 150px);
1294
- background: repeating-linear-gradient(
1295
- 135deg,
1296
- var(--progressBar-indeterminate-blend-color) 0,
1297
- var(--progressBar-indeterminate-bg-color) 5px,
1298
- var(--progressBar-indeterminate-bg-color) 45px,
1299
- var(--progressBar-color) 55px,
1300
- var(--progressBar-color) 95px,
1301
- var(--progressBar-indeterminate-blend-color) 100px
1302
- );
1303
  -webkit-animation: progressIndeterminate 1s linear infinite;
1304
- animation: progressIndeterminate 1s linear infinite;
1305
  }
1306
 
1307
  .findbar,
@@ -1324,18 +1344,23 @@ html[dir="rtl"] #outerContainer.sidebarOpen #loadingBar {
1324
  min-width: 300px;
1325
  background-color: var(--toolbar-bg-color);
1326
  }
1327
- .findbar > div {
 
1328
  height: 32px;
1329
  }
1330
- .findbar.wrapContainers > div {
 
1331
  clear: both;
1332
  }
1333
- .findbar.wrapContainers > div#findbarMessageContainer {
 
1334
  height: auto;
1335
  }
 
1336
  html[dir="ltr"] .findbar {
1337
  left: 64px;
1338
  }
 
1339
  html[dir="rtl"] .findbar {
1340
  right: 64px;
1341
  }
@@ -1343,16 +1368,18 @@ html[dir="rtl"] .findbar {
1343
  .findbar .splitToolbarButton {
1344
  margin-top: 3px;
1345
  }
 
1346
  html[dir="ltr"] .findbar .splitToolbarButton {
1347
  margin-left: 0;
1348
  margin-right: 5px;
1349
  }
 
1350
  html[dir="rtl"] .findbar .splitToolbarButton {
1351
  margin-left: 5px;
1352
  margin-right: 0;
1353
  }
1354
 
1355
- .findbar .splitToolbarButton > .toolbarButton {
1356
  background-color: var(--findbar-nextprevious-btn-bg-color);
1357
  border-radius: 0;
1358
  height: 26px;
@@ -1360,19 +1387,21 @@ html[dir="rtl"] .findbar .splitToolbarButton {
1360
  border-bottom: 1px solid var(--field-border-color);
1361
  }
1362
 
1363
- .findbar .splitToolbarButton > .toolbarButton::before {
1364
  top: 5px;
1365
  }
1366
 
1367
- .findbar .splitToolbarButton > .findNext {
1368
  width: 29px;
1369
  }
1370
- html[dir="ltr"] .findbar .splitToolbarButton > .findNext {
 
1371
  border-bottom-right-radius: 2px;
1372
  border-top-right-radius: 2px;
1373
  border-right: 1px solid var(--field-border-color);
1374
  }
1375
- html[dir="rtl"] .findbar .splitToolbarButton > .findNext {
 
1376
  border-bottom-left-radius: 2px;
1377
  border-top-left-radius: 2px;
1378
  border-left: 1px solid var(--field-border-color);
@@ -1384,12 +1413,12 @@ html[dir="rtl"] .findbar .splitToolbarButton > .findNext {
1384
 
1385
  .findbar label {
1386
  -webkit-user-select: none;
1387
- -moz-user-select: none;
1388
- user-select: none;
1389
  }
1390
 
1391
  .findbar label:hover,
1392
- .findbar input:focus + label {
1393
  color: var(--toggled-btn-color);
1394
  background-color: var(--button-hover-color);
1395
  }
@@ -1398,12 +1427,13 @@ html[dir="ltr"] #findInput {
1398
  border-top-right-radius: 0;
1399
  border-bottom-right-radius: 0;
1400
  }
 
1401
  html[dir="rtl"] #findInput {
1402
  border-top-left-radius: 0;
1403
  border-bottom-left-radius: 0;
1404
  }
1405
 
1406
- .findbar .toolbarField[type="checkbox"]:checked + .toolbarLabel {
1407
  background-color: var(--toggled-btn-bg-color) !important;
1408
  color: var(--toggled-btn-color);
1409
  }
@@ -1411,20 +1441,25 @@ html[dir="rtl"] #findInput {
1411
  #findInput {
1412
  width: 200px;
1413
  }
 
1414
  #findInput::-moz-placeholder {
1415
  font-style: normal;
1416
  }
 
1417
  #findInput::placeholder {
1418
  font-style: normal;
1419
  }
 
1420
  #findInput[data-status="pending"] {
1421
  background-image: var(--loading-icon);
1422
  background-repeat: no-repeat;
1423
  background-position: 98%;
1424
  }
 
1425
  html[dir="rtl"] #findInput[data-status="pending"] {
1426
  background-position: 3px;
1427
  }
 
1428
  #findInput[data-status="notFound"] {
1429
  background-color: rgba(255, 102, 102, 1);
1430
  }
@@ -1435,9 +1470,11 @@ html[dir="rtl"] #findInput[data-status="pending"] {
1435
  z-index: 30000;
1436
  background-color: var(--doorhanger-bg-color);
1437
  }
 
1438
  html[dir="ltr"] .secondaryToolbar {
1439
  right: 4px;
1440
  }
 
1441
  html[dir="rtl"] .secondaryToolbar {
1442
  left: 4px;
1443
  }
@@ -1450,8 +1487,8 @@ html[dir="rtl"] .secondaryToolbar {
1450
  margin-bottom: -4px;
1451
  }
1452
 
1453
- #secondaryToolbarButtonContainer.hiddenScrollModeButtons > .scrollModeButtons,
1454
- #secondaryToolbarButtonContainer.hiddenSpreadModeButtons > .spreadModeButtons {
1455
  display: none !important;
1456
  }
1457
 
@@ -1462,6 +1499,7 @@ html[dir="rtl"] .secondaryToolbar {
1462
  0 0 0 1px var(--doorhanger-border-color);
1463
  border: var(--doorhanger-border-color-whcm);
1464
  }
 
1465
  .doorHanger:after,
1466
  .doorHanger:before,
1467
  .doorHangerRight:after,
@@ -1475,16 +1513,20 @@ html[dir="rtl"] .secondaryToolbar {
1475
  pointer-events: none;
1476
  opacity: var(--doorhanger-triangle-opacity-whcm);
1477
  }
 
1478
  .doorHanger:after,
1479
  .doorHangerRight:after {
1480
  border-width: 8px;
1481
  }
 
1482
  .doorHanger:after {
1483
  border-bottom-color: var(--toolbar-bg-color);
1484
  }
 
1485
  .doorHangerRight:after {
1486
  border-bottom-color: var(--doorhanger-bg-color);
1487
  }
 
1488
  .doorHanger:before,
1489
  .doorHangerRight:before {
1490
  border-bottom-color: var(--doorhanger-border-color);
@@ -1526,6 +1568,7 @@ html[dir="ltr"] .doorHangerRight:before {
1526
  #findMsg {
1527
  color: rgba(251, 0, 0, 1);
1528
  }
 
1529
  #findMsg:empty {
1530
  display: none;
1531
  }
@@ -1542,24 +1585,27 @@ html[dir="ltr"] #toolbarSidebarLeft,
1542
  html[dir="rtl"] #toolbarSidebarRight {
1543
  float: left;
1544
  }
 
1545
  html[dir="ltr"] #toolbarViewerRight,
1546
  html[dir="rtl"] #toolbarViewerLeft,
1547
  html[dir="ltr"] #toolbarSidebarRight,
1548
  html[dir="rtl"] #toolbarSidebarLeft {
1549
  float: right;
1550
  }
1551
- html[dir="ltr"] #toolbarViewerLeft > *,
1552
- html[dir="ltr"] #toolbarViewerMiddle > *,
1553
- html[dir="ltr"] #toolbarViewerRight > *,
 
1554
  html[dir="ltr"] #toolbarSidebarLeft *,
1555
  html[dir="ltr"] #toolbarSidebarRight *,
1556
  html[dir="ltr"] .findbar * {
1557
  position: relative;
1558
  float: left;
1559
  }
1560
- html[dir="rtl"] #toolbarViewerLeft > *,
1561
- html[dir="rtl"] #toolbarViewerMiddle > *,
1562
- html[dir="rtl"] #toolbarViewerRight > *,
 
1563
  html[dir="rtl"] #toolbarSidebarLeft *,
1564
  html[dir="rtl"] #toolbarSidebarRight *,
1565
  html[dir="rtl"] .findbar * {
@@ -1571,10 +1617,12 @@ html[dir="rtl"] .findbar * {
1571
  margin: 2px 2px 0;
1572
  display: inline-block;
1573
  }
1574
- html[dir="ltr"] .splitToolbarButton > .toolbarButton {
 
1575
  float: left;
1576
  }
1577
- html[dir="rtl"] .splitToolbarButton > .toolbarButton {
 
1578
  float: right;
1579
  }
1580
 
@@ -1592,12 +1640,12 @@ html[dir="rtl"] .splitToolbarButton > .toolbarButton {
1592
  background-color: var(--overlay-button-hover-bg-color);
1593
  }
1594
 
1595
- .overlayButton:hover > span,
1596
- .overlayButton:focus > span {
1597
  color: var(--overlay-button-hover-color);
1598
  }
1599
 
1600
- .toolbarButton > span {
1601
  display: inline-block;
1602
  width: 0;
1603
  height: 0;
@@ -1614,25 +1662,29 @@ html[dir="rtl"] .splitToolbarButton > .toolbarButton {
1614
  margin: 0;
1615
  }
1616
 
1617
- .splitToolbarButton > .toolbarButton:hover,
1618
- .splitToolbarButton > .toolbarButton:focus,
1619
  .dropdownToolbarButton:hover,
1620
  .toolbarButton.textButton:hover,
1621
  .toolbarButton.textButton:focus {
1622
  background-color: var(--button-hover-color);
1623
  z-index: 199;
1624
  }
1625
- .splitToolbarButton > .toolbarButton {
 
1626
  position: relative;
1627
  }
1628
- html[dir="ltr"] .splitToolbarButton > .toolbarButton:first-child,
1629
- html[dir="rtl"] .splitToolbarButton > .toolbarButton:last-child {
 
1630
  margin: 0;
1631
  }
1632
- html[dir="ltr"] .splitToolbarButton > .toolbarButton:last-child,
1633
- html[dir="rtl"] .splitToolbarButton > .toolbarButton:first-child {
 
1634
  margin: 0;
1635
  }
 
1636
  .splitToolbarButtonSeparator {
1637
  padding: 10px 0;
1638
  width: 1px;
@@ -1651,6 +1703,7 @@ html[dir="rtl"] .splitToolbarButton > .toolbarButton:first-child {
1651
  html[dir="ltr"] .splitToolbarButtonSeparator {
1652
  float: left;
1653
  }
 
1654
  html[dir="rtl"] .splitToolbarButtonSeparator {
1655
  float: right;
1656
  }
@@ -1668,25 +1721,27 @@ html[dir="rtl"] .splitToolbarButtonSeparator {
1668
  font-size: 12px;
1669
  line-height: 14px;
1670
  -webkit-user-select: none;
1671
- -moz-user-select: none;
1672
- user-select: none;
1673
  cursor: default;
1674
  box-sizing: border-box;
1675
  }
1676
 
1677
- html[dir="ltr"] #toolbarViewerLeft > .toolbarButton:first-child,
1678
- html[dir="rtl"] #toolbarViewerRight > .toolbarButton:last-child {
1679
  margin-left: 2px;
1680
  }
1681
 
1682
- html[dir="ltr"] #toolbarViewerRight > .toolbarButton:last-child,
1683
- html[dir="rtl"] #toolbarViewerLeft > .toolbarButton:first-child {
1684
  margin-right: 2px;
1685
  }
 
1686
  .toolbarButton:hover,
1687
  .toolbarButton:focus {
1688
  background-color: var(--button-hover-color);
1689
  }
 
1690
  .secondaryToolbarButton:hover,
1691
  .secondaryToolbarButton:focus {
1692
  background-color: var(--doorhanger-hover-bg-color);
@@ -1694,7 +1749,7 @@ html[dir="rtl"] #toolbarViewerLeft > .toolbarButton:first-child {
1694
  }
1695
 
1696
  .toolbarButton.toggled,
1697
- .splitToolbarButton.toggled > .toolbarButton.toggled,
1698
  .secondaryToolbarButton.toggled {
1699
  background-color: var(--toggled-btn-bg-color);
1700
  color: var(--toggled-btn-color);
@@ -1709,7 +1764,7 @@ html[dir="rtl"] #toolbarViewerLeft > .toolbarButton:first-child {
1709
  }
1710
 
1711
  .toolbarButton.toggled:hover:active,
1712
- .splitToolbarButton.toggled > .toolbarButton.toggled:hover:active,
1713
  .secondaryToolbarButton.toggled:hover:active {
1714
  background-color: var(--toggled-hover-active-btn-color);
1715
  }
@@ -1721,6 +1776,7 @@ html[dir="rtl"] #toolbarViewerLeft > .toolbarButton:first-child {
1721
  background-color: var(--dropdown-btn-bg-color);
1722
  margin-top: 2px !important;
1723
  }
 
1724
  .dropdownToolbarButton::after {
1725
  top: 6px;
1726
  pointer-events: none;
@@ -1728,14 +1784,16 @@ html[dir="rtl"] #toolbarViewerLeft > .toolbarButton:first-child {
1728
  -webkit-mask-image: var(--toolbarButton-menuArrow-icon);
1729
  mask-image: var(--toolbarButton-menuArrow-icon);
1730
  }
 
1731
  html[dir="ltr"] .dropdownToolbarButton::after {
1732
  right: 7px;
1733
  }
 
1734
  html[dir="rtl"] .dropdownToolbarButton::after {
1735
  left: 7px;
1736
  }
1737
 
1738
- .dropdownToolbarButton > select {
1739
  width: 162px;
1740
  height: 28px;
1741
  font-size: 12px;
@@ -1745,19 +1803,22 @@ html[dir="rtl"] .dropdownToolbarButton::after {
1745
  border: none;
1746
  background-color: var(--dropdown-btn-bg-color);
1747
  }
1748
- html[dir="ltr"] .dropdownToolbarButton > select {
 
1749
  padding-left: 4px;
1750
  }
1751
- html[dir="rtl"] .dropdownToolbarButton > select {
 
1752
  padding-right: 4px;
1753
  }
1754
- .dropdownToolbarButton > select:hover,
1755
- .dropdownToolbarButton > select:focus {
 
1756
  background-color: var(--button-hover-color);
1757
  color: var(--toggled-btn-color);
1758
  }
1759
 
1760
- .dropdownToolbarButton > select > option {
1761
  background: var(--doorhanger-bg-color);
1762
  color: var(--main-color);
1763
  }
@@ -1816,9 +1877,11 @@ html[dir="rtl"] .dropdownToolbarButton > select {
1816
  opacity: var(--doorhanger-icon-opacity);
1817
  top: 5px;
1818
  }
 
1819
  html[dir="ltr"] .secondaryToolbarButton::before {
1820
  left: 12px;
1821
  }
 
1822
  html[dir="rtl"] .secondaryToolbarButton::before {
1823
  right: 12px;
1824
  }
@@ -1827,6 +1890,7 @@ html[dir="rtl"] .secondaryToolbarButton::before {
1827
  -webkit-mask-image: var(--toolbarButton-sidebarToggle-icon);
1828
  mask-image: var(--toolbarButton-sidebarToggle-icon);
1829
  }
 
1830
  html[dir="rtl"] .toolbarButton#sidebarToggle::before {
1831
  transform: scaleX(-1);
1832
  }
@@ -1835,6 +1899,7 @@ html[dir="rtl"] .toolbarButton#sidebarToggle::before {
1835
  -webkit-mask-image: var(--toolbarButton-secondaryToolbarToggle-icon);
1836
  mask-image: var(--toolbarButton-secondaryToolbarToggle-icon);
1837
  }
 
1838
  html[dir="rtl"] .toolbarButton#secondaryToolbarToggle::before {
1839
  transform: scaleX(-1);
1840
  }
@@ -1918,6 +1983,7 @@ html[dir="rtl"] .toolbarButton#secondaryToolbarToggle::before {
1918
  -webkit-mask-image: var(--toolbarButton-viewOutline-icon);
1919
  mask-image: var(--toolbarButton-viewOutline-icon);
1920
  }
 
1921
  html[dir="rtl"] #viewOutline.toolbarButton::before {
1922
  transform: scaleX(-1);
1923
  }
@@ -1936,6 +2002,7 @@ html[dir="rtl"] #viewOutline.toolbarButton::before {
1936
  -webkit-mask-image: var(--toolbarButton-currentOutlineItem-icon);
1937
  mask-image: var(--toolbarButton-currentOutlineItem-icon);
1938
  }
 
1939
  html[dir="rtl"] #currentOutlineItem.toolbarButton::before {
1940
  transform: scaleX(-1);
1941
  }
@@ -1956,9 +2023,11 @@ html[dir="rtl"] #currentOutlineItem.toolbarButton::before {
1956
  width: 9px;
1957
  border-radius: 50%;
1958
  }
 
1959
  html[dir="ltr"] .toolbarButton.pdfSidebarNotification::after {
1960
  left: 17px;
1961
  }
 
1962
  html[dir="rtl"] .toolbarButton.pdfSidebarNotification::after {
1963
  right: 17px;
1964
  }
@@ -1975,19 +2044,22 @@ html[dir="rtl"] .toolbarButton.pdfSidebarNotification::after {
1975
  border-radius: 0;
1976
  box-sizing: border-box;
1977
  }
 
1978
  html[dir="ltr"] .secondaryToolbarButton {
1979
  padding-left: 36px;
1980
  text-align: left;
1981
  }
 
1982
  html[dir="rtl"] .secondaryToolbarButton {
1983
  padding-right: 36px;
1984
  text-align: right;
1985
  }
1986
 
1987
- html[dir="ltr"] .secondaryToolbarButton > span {
1988
  padding-right: 4px;
1989
  }
1990
- html[dir="rtl"] .secondaryToolbarButton > span {
 
1991
  padding-left: 4px;
1992
  }
1993
 
@@ -2063,9 +2135,11 @@ html[dir="rtl"] .secondaryToolbarButton > span {
2063
  width: 1px;
2064
  background-color: var(--separator-color);
2065
  }
 
2066
  html[dir="ltr"] .verticalToolbarSeparator {
2067
  margin-left: 2px;
2068
  }
 
2069
  html[dir="rtl"] .verticalToolbarSeparator {
2070
  margin-right: 2px;
2071
  }
@@ -2109,7 +2183,8 @@ html[dir="rtl"] .toolbarField[type="checkbox"] {
2109
  }
2110
 
2111
  .toolbarField.pageNumber {
2112
- -moz-appearance: textfield; /* hides the spinner in moz */
 
2113
  min-width: 16px;
2114
  text-align: right;
2115
  width: 40px;
@@ -2141,14 +2216,15 @@ html[dir="rtl"] .toolbarField[type="checkbox"] {
2141
  line-height: 14px;
2142
  text-align: left;
2143
  -webkit-user-select: none;
2144
- -moz-user-select: none;
2145
- user-select: none;
2146
  cursor: default;
2147
  }
2148
 
2149
  html[dir="ltr"] #numPages.toolbarLabel {
2150
  padding-left: 3px;
2151
  }
 
2152
  html[dir="rtl"] #numPages.toolbarLabel {
2153
  padding-right: 3px;
2154
  }
@@ -2163,26 +2239,28 @@ html[dir="rtl"] #numPages.toolbarLabel {
2163
  -webkit-overflow-scrolling: touch;
2164
  }
2165
 
2166
- #thumbnailView > a:active,
2167
- #thumbnailView > a:focus {
2168
  outline: 0;
2169
  }
2170
 
2171
  .thumbnail {
2172
  margin: 0 10px 5px;
2173
  }
 
2174
  html[dir="ltr"] .thumbnail {
2175
  float: left;
2176
  }
 
2177
  html[dir="rtl"] .thumbnail {
2178
  float: right;
2179
  }
2180
 
2181
- #thumbnailView > a:last-of-type > .thumbnail {
2182
  margin-bottom: 10px;
2183
  }
2184
 
2185
- #thumbnailView > a:last-of-type > .thumbnail:not([data-loaded]) {
2186
  margin-bottom: 9px;
2187
  }
2188
 
@@ -2205,23 +2283,23 @@ html[dir="rtl"] .thumbnail {
2205
  padding: 7px;
2206
  }
2207
 
2208
- a:focus > .thumbnail > .thumbnailSelectionRing > .thumbnailImage,
2209
- .thumbnail:hover > .thumbnailSelectionRing > .thumbnailImage {
2210
  opacity: 0.9;
2211
  }
2212
 
2213
- a:focus > .thumbnail > .thumbnailSelectionRing,
2214
- .thumbnail:hover > .thumbnailSelectionRing {
2215
  background-color: var(--sidebaritem-bg-color);
2216
  background-clip: padding-box;
2217
  color: rgba(255, 255, 255, 0.9);
2218
  }
2219
 
2220
- .thumbnail.selected > .thumbnailSelectionRing > .thumbnailImage {
2221
  opacity: 1;
2222
  }
2223
 
2224
- .thumbnail.selected > .thumbnailSelectionRing {
2225
  background-color: var(--sidebaritem-bg-color);
2226
  background-clip: padding-box;
2227
  color: rgba(255, 255, 255, 1);
@@ -2238,21 +2316,21 @@ a:focus > .thumbnail > .thumbnailSelectionRing,
2238
  overflow: auto;
2239
  -webkit-overflow-scrolling: touch;
2240
  -webkit-user-select: none;
2241
- -moz-user-select: none;
2242
- user-select: none;
2243
  }
2244
 
2245
- html[dir="ltr"] .treeWithDeepNesting > .treeItem,
2246
- html[dir="ltr"] .treeItem > .treeItems {
2247
  margin-left: 20px;
2248
  }
2249
 
2250
- html[dir="rtl"] .treeWithDeepNesting > .treeItem,
2251
- html[dir="rtl"] .treeItem > .treeItems {
2252
  margin-right: 20px;
2253
  }
2254
 
2255
- .treeItem > a {
2256
  text-decoration: none;
2257
  display: inline-block;
2258
  min-width: 95%;
@@ -2265,25 +2343,29 @@ html[dir="rtl"] .treeItem > .treeItems {
2265
  font-size: 13px;
2266
  line-height: 15px;
2267
  -webkit-user-select: none;
2268
- -moz-user-select: none;
2269
- user-select: none;
2270
  white-space: normal;
2271
  cursor: pointer;
2272
  }
2273
- html[dir="ltr"] .treeItem > a {
 
2274
  padding: 2px 0 5px 4px;
2275
  }
2276
- html[dir="rtl"] .treeItem > a {
 
2277
  padding: 2px 4px 5px 0;
2278
  }
2279
 
2280
- #layersView .treeItem > a > * {
2281
  cursor: pointer;
2282
  }
2283
- html[dir="ltr"] #layersView .treeItem > a > label {
 
2284
  padding-left: 4px;
2285
  }
2286
- html[dir="rtl"] #layersView .treesItem > a > label {
 
2287
  padding-right: 4px;
2288
  }
2289
 
@@ -2293,42 +2375,50 @@ html[dir="rtl"] #layersView .treesItem > a > label {
2293
  width: 0;
2294
  color: rgba(255, 255, 255, 0.5);
2295
  }
 
2296
  .treeItemToggler::before {
2297
  -webkit-mask-image: var(--treeitem-expanded-icon);
2298
  mask-image: var(--treeitem-expanded-icon);
2299
  }
 
2300
  .treeItemToggler.treeItemsHidden::before {
2301
  -webkit-mask-image: var(--treeitem-collapsed-icon);
2302
  mask-image: var(--treeitem-collapsed-icon);
2303
  }
 
2304
  html[dir="rtl"] .treeItemToggler.treeItemsHidden::before {
2305
  transform: scaleX(-1);
2306
  }
2307
- .treeItemToggler.treeItemsHidden ~ .treeItems {
 
2308
  display: none;
2309
  }
 
2310
  html[dir="ltr"] .treeItemToggler {
2311
  float: left;
2312
  }
 
2313
  html[dir="rtl"] .treeItemToggler {
2314
  float: right;
2315
  }
 
2316
  html[dir="ltr"] .treeItemToggler::before {
2317
  right: 4px;
2318
  }
 
2319
  html[dir="rtl"] .treeItemToggler::before {
2320
  left: 4px;
2321
  }
2322
 
2323
- .treeItem.selected > a {
2324
  background-color: var(--treeitem-selected-bg-color);
2325
  color: var(--treeitem-selected-color);
2326
  }
2327
 
2328
  .treeItemToggler:hover,
2329
- .treeItemToggler:hover + a,
2330
- .treeItemToggler:hover ~ .treeItems,
2331
- .treeItem > a:hover {
2332
  background-color: var(--sidebaritem-bg-color);
2333
  background-clip: padding-box;
2334
  border-radius: 2px;
@@ -2341,6 +2431,7 @@ html[dir="rtl"] .treeItemToggler::before {
2341
  ::-moz-selection {
2342
  background: rgba(0, 0, 255, 0.3);
2343
  }
 
2344
  ::selection {
2345
  background: rgba(0, 0, 255, 0.3);
2346
  }
@@ -2389,18 +2480,19 @@ html[dir="rtl"] .treeItemToggler::before {
2389
  background-color: rgba(0, 0, 0, 0.2);
2390
  z-index: 40000;
2391
  }
2392
- #overlayContainer > * {
 
2393
  overflow: auto;
2394
  -webkit-overflow-scrolling: touch;
2395
  }
2396
 
2397
- #overlayContainer > .container {
2398
  display: table-cell;
2399
  vertical-align: middle;
2400
  text-align: center;
2401
  }
2402
 
2403
- #overlayContainer > .container > .dialog {
2404
  display: inline-block;
2405
  padding: 15px;
2406
  border-spacing: 4px;
@@ -2413,11 +2505,11 @@ html[dir="rtl"] .treeItemToggler::before {
2413
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
2414
  }
2415
 
2416
- .dialog > .row {
2417
  display: table-row;
2418
  }
2419
 
2420
- .dialog > .row > * {
2421
  display: table-cell;
2422
  }
2423
 
@@ -2442,33 +2534,40 @@ html[dir="rtl"] .treeItemToggler::before {
2442
  color: rgba(255, 255, 255, 1);
2443
  }
2444
 
2445
- #passwordOverlay > .dialog {
2446
  text-align: center;
2447
  }
 
2448
  #passwordOverlay .toolbarField {
2449
  width: 200px;
2450
  }
2451
 
2452
- #documentPropertiesOverlay > .dialog {
2453
  text-align: left;
2454
  }
2455
- #documentPropertiesOverlay .row > * {
 
2456
  min-width: 100px;
2457
  }
2458
- html[dir="ltr"] #documentPropertiesOverlay .row > * {
 
2459
  text-align: left;
2460
  }
2461
- html[dir="rtl"] #documentPropertiesOverlay .row > * {
 
2462
  text-align: right;
2463
  }
2464
- #documentPropertiesOverlay .row > span {
 
2465
  width: 125px;
2466
  word-wrap: break-word;
2467
  }
2468
- #documentPropertiesOverlay .row > p {
 
2469
  max-width: 225px;
2470
  word-wrap: break-word;
2471
  }
 
2472
  #documentPropertiesOverlay .buttonRow {
2473
  margin-top: 10px;
2474
  }
@@ -2498,11 +2597,13 @@ html[dir="rtl"] #documentPropertiesOverlay .row > * {
2498
  padding: 0;
2499
  width: 300px;
2500
  }
 
2501
  #PDFBug .controls {
2502
  background: rgba(238, 238, 238, 1);
2503
  border-bottom: 1px solid rgba(102, 102, 102, 1);
2504
  padding: 3px;
2505
  }
 
2506
  #PDFBug .panels {
2507
  bottom: 0;
2508
  left: 0;
@@ -2512,27 +2613,34 @@ html[dir="rtl"] #documentPropertiesOverlay .row > * {
2512
  right: 0;
2513
  top: 27px;
2514
  }
2515
- #PDFBug .panels > div {
 
2516
  padding: 5px;
2517
  }
 
2518
  #PDFBug button.active {
2519
  font-weight: bold;
2520
  }
 
2521
  .debuggerShowText {
2522
  background: none repeat scroll 0 0 rgba(255, 255, 0, 1);
2523
  color: rgba(0, 0, 255, 1);
2524
  }
 
2525
  .debuggerHideText:hover {
2526
  background: none repeat scroll 0 0 rgba(255, 255, 0, 1);
2527
  }
 
2528
  #PDFBug .stats {
2529
  font-family: courier;
2530
  font-size: 10px;
2531
  white-space: pre;
2532
  }
 
2533
  #PDFBug .stats .title {
2534
  font-weight: bold;
2535
  }
 
2536
  #PDFBug table {
2537
  font-size: 10px;
2538
  }
@@ -2571,10 +2679,11 @@ html[dir="rtl"] #documentPropertiesOverlay .row > * {
2571
  cursor: -webkit-grab !important;
2572
  cursor: grab !important;
2573
  }
2574
- .grab-to-pan-grab
2575
- *:not(input):not(textarea):not(button):not(select):not(:link) {
2576
  cursor: inherit !important;
2577
  }
 
2578
  .grab-to-pan-grab:active,
2579
  .grab-to-pan-grabbing {
2580
  cursor: url("images/grabbing.cur"), move !important;
@@ -2588,7 +2697,8 @@ html[dir="rtl"] #documentPropertiesOverlay .row > * {
2588
  right: 0;
2589
  bottom: 0;
2590
  overflow: hidden;
2591
- z-index: 50000; /* should be higher than anything else in PDF.js! */
 
2592
  }
2593
 
2594
  @page {
@@ -2600,6 +2710,7 @@ html[dir="rtl"] #documentPropertiesOverlay .row > * {
2600
  }
2601
 
2602
  @media print {
 
2603
  /* General rules for printing. */
2604
  body {
2605
  background: rgba(0, 0, 0, 0) none;
@@ -2614,6 +2725,7 @@ html[dir="rtl"] #documentPropertiesOverlay .row > * {
2614
  .textLayer {
2615
  display: none;
2616
  }
 
2617
  #viewerContainer {
2618
  overflow: visible;
2619
  }
@@ -2648,14 +2760,17 @@ html[dir="rtl"] #documentPropertiesOverlay .row > * {
2648
  body[data-pdfjsprinting] #outerContainer {
2649
  display: none;
2650
  }
 
2651
  body[data-pdfjsprinting] #printContainer {
2652
  display: block;
2653
  }
 
2654
  #printContainer {
2655
  height: 100%;
2656
  }
 
2657
  /* wrapper around (scaled) print canvas elements */
2658
- #printContainer > div {
2659
  page-break-after: always;
2660
  page-break-inside: avoid;
2661
 
@@ -2668,6 +2783,7 @@ html[dir="rtl"] #documentPropertiesOverlay .row > * {
2668
  justify-content: center;
2669
  align-items: center;
2670
  }
 
2671
  #printContainer canvas,
2672
  #printContainer img {
2673
  /* The intrinsic canvas / image size will make sure that we fit the page. */
@@ -2703,6 +2819,7 @@ html[dir="rtl"] #documentPropertiesOverlay .row > * {
2703
  html[dir="ltr"] #outerContainer.sidebarOpen #viewerContainer {
2704
  left: 0 !important;
2705
  }
 
2706
  html[dir="rtl"] #outerContainer.sidebarOpen #viewerContainer {
2707
  right: 0 !important;
2708
  }
@@ -2711,6 +2828,7 @@ html[dir="rtl"] #documentPropertiesOverlay .row > * {
2711
  #outerContainer .hiddenMediumView {
2712
  display: inherit;
2713
  }
 
2714
  #outerContainer .visibleLargeView,
2715
  #outerContainer .visibleMediumView {
2716
  display: none;
@@ -2721,6 +2839,7 @@ html[dir="rtl"] #documentPropertiesOverlay .row > * {
2721
  #outerContainer .hiddenLargeView {
2722
  display: none;
2723
  }
 
2724
  #outerContainer .visibleLargeView {
2725
  display: inherit;
2726
  }
@@ -2730,25 +2849,31 @@ html[dir="rtl"] #documentPropertiesOverlay .row > * {
2730
  #outerContainer .hiddenMediumView {
2731
  display: none;
2732
  }
 
2733
  #outerContainer .visibleMediumView {
2734
  display: none;
2735
  }
2736
  }
2737
 
2738
  @media all and (max-width: 640px) {
 
2739
  .hiddenSmallView,
2740
  .hiddenSmallView * {
2741
  display: none;
2742
  }
 
2743
  .visibleSmallView {
2744
  display: none;
2745
  }
 
2746
  .toolbarButtonSpacer {
2747
  width: 0;
2748
  }
 
2749
  html[dir="ltr"] .findbar {
2750
  left: 34px;
2751
  }
 
2752
  html[dir="rtl"] .findbar {
2753
  right: 34px;
2754
  }
@@ -2758,4 +2883,4 @@ html[dir="rtl"] #documentPropertiesOverlay .row > * {
2758
  #scaleSelectContainer {
2759
  display: none;
2760
  }
2761
- }
13
  * limitations under the License.
14
  */
15
 
16
+ /* Modified version */
17
 
18
  .textLayer {
19
  position: absolute;
77
  z-index: -1;
78
  cursor: default;
79
  -webkit-user-select: none;
80
+ -moz-user-select: none;
81
+ user-select: none;
82
  }
83
 
84
  .textLayer .endOfContent.active {
91
  text-align: initial;
92
  }
93
 
94
+ .annotationLayer .linkAnnotation>a,
95
+ .annotationLayer .buttonWidgetAnnotation.pushButton>a {
96
  position: absolute;
97
  font-size: 1em;
98
  top: 0;
101
  height: 100%;
102
  }
103
 
104
+ .annotationLayer .linkAnnotation>a:hover,
105
+ .annotationLayer .buttonWidgetAnnotation.pushButton>a:hover {
106
  opacity: 0.2;
107
  background: rgba(255, 255, 0, 1);
108
  box-shadow: 0 2px 10px rgba(255, 255, 0, 1);
219
  .annotationLayer .buttonWidgetAnnotation.checkBox input,
220
  .annotationLayer .buttonWidgetAnnotation.radioButton input {
221
  -webkit-appearance: none;
222
+ -moz-appearance: none;
223
+ appearance: none;
224
  padding: 0;
225
  }
226
 
245
  word-wrap: break-word;
246
  }
247
 
248
+ .annotationLayer .popup>* {
249
  font-size: 9px;
250
  }
251
 
394
  resize: none;
395
  }
396
 
397
+ .xfaLabel>input[type="radio"] {
398
  /* Use this trick to make the checkbox invisible but
399
  but still focusable. */
400
  position: absolute;
401
  left: -99999px;
402
  }
403
 
404
+ .xfaLabel>input[type="radio"]:focus+.xfaCheckboxMark {
405
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
406
  }
407
 
422
  align-items: center;
423
  }
424
 
425
+ .xfaCheckbox:checked+.xfaCheckboxMark::after {
426
  content: attr(mark);
427
  }
428
 
466
 
467
  .xfaLr,
468
  .xfaRl,
469
+ .xfaTb>div {
470
  flex: 1 1 auto;
471
  }
472
 
473
+ .xfaTb>div {
474
  justify-content: left;
475
  }
476
 
477
+ .xfaLr>div {
478
  display: inline;
479
  float: left;
480
  }
481
 
482
+ .xfaRl>div {
483
  display: inline;
484
  float: right;
485
  }
497
  align-items: center;
498
  }
499
 
500
+ .xfaLrTb>div {
501
  display: inline;
502
  float: left;
503
  }
504
 
505
+ .xfaRlTb>div {
506
  display: inline;
507
  float: right;
508
  }
518
  flex: 1 1 auto;
519
  }
520
 
521
+ .xfaTable .xfaRow>div {
522
  flex: 1 1 auto;
523
  }
524
 
528
  flex: 1;
529
  }
530
 
531
+ .xfaTable .xfaRlRow>div {
532
  flex: 1;
533
  }
534
 
566
  border: var(--page-border);
567
  background-clip: content-box;
568
  -o-border-image: url(images/shadow.png) 9 9 repeat;
569
+ border-image: url(images/shadow.png) 9 9 repeat;
570
  background-color: rgba(255, 255, 255, 1);
571
  }
572
 
758
  --secondaryToolbarButton-spreadEven-icon: url(images/secondaryToolbarButton-spreadEven.svg);
759
  --secondaryToolbarButton-documentProperties-icon: url(images/secondaryToolbarButton-documentProperties.svg);
760
  }
761
+
762
  /* define for system dark */
763
  @media (prefers-color-scheme: dark) {
764
  :root {
892
  --secondaryToolbarButton-spreadEven-icon: url(images/secondaryToolbarButton-spreadEven.svg);
893
  --secondaryToolbarButton-documentProperties-icon: url(images/secondaryToolbarButton-documentProperties.svg);
894
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
895
 
896
+ [ep-data-theme="dark"] {
897
+ --main-color: rgba(249, 249, 250, 1);
898
+ --body-bg-color: rgba(42, 42, 46, 1);
899
+ --errorWrapper-bg-color: rgba(169, 14, 14, 1);
900
+ --progressBar-color: rgba(0, 96, 223, 1);
901
+ --progressBar-indeterminate-bg-color: rgba(40, 40, 43, 1);
902
+ --progressBar-indeterminate-blend-color: rgba(20, 68, 133, 1);
903
+ --scrollbar-color: rgba(121, 121, 123, 1);
904
+ --scrollbar-bg-color: rgba(35, 35, 39, 1);
905
+ --toolbar-icon-bg-color: rgba(255, 255, 255, 1);
906
+ --toolbar-icon-hover-bg-color: rgba(255, 255, 255, 1);
907
+
908
+ --sidebar-narrow-bg-color: rgba(42, 42, 46, 0.9);
909
+ --sidebar-toolbar-bg-color: rgba(50, 50, 52, 1);
910
+ --toolbar-bg-color: rgba(56, 56, 61, 1);
911
+ --toolbar-border-color: rgba(12, 12, 13, 1);
912
+ --button-hover-color: rgba(102, 102, 103, 1);
913
+ --toggled-btn-color: rgba(255, 255, 255, 1);
914
+ --toggled-btn-bg-color: rgba(0, 0, 0, 0.3);
915
+ --toggled-hover-active-btn-color: rgba(0, 0, 0, 0.4);
916
+ --dropdown-btn-bg-color: rgba(74, 74, 79, 1);
917
+ --separator-color: rgba(0, 0, 0, 0.3);
918
+ --field-color: rgba(250, 250, 250, 1);
919
+ --field-bg-color: rgba(64, 64, 68, 1);
920
+ --field-border-color: rgba(115, 115, 115, 1);
921
+ --findbar-nextprevious-btn-bg-color: rgba(89, 89, 89, 1);
922
+ --treeitem-color: rgba(255, 255, 255, 0.8);
923
+ --treeitem-hover-color: rgba(255, 255, 255, 0.9);
924
+ --treeitem-selected-color: rgba(255, 255, 255, 0.9);
925
+ --treeitem-selected-bg-color: rgba(255, 255, 255, 0.25);
926
+ --sidebaritem-bg-color: rgba(255, 255, 255, 0.15);
927
+ --doorhanger-bg-color: rgba(74, 74, 79, 1);
928
+ --doorhanger-border-color: rgba(39, 39, 43, 1);
929
+ --doorhanger-hover-color: rgba(249, 249, 250, 1);
930
+ --doorhanger-hover-bg-color: rgba(93, 94, 98, 1);
931
+ --doorhanger-separator-color: rgba(92, 92, 97, 1);
932
+ --overlay-button-bg-color: rgba(92, 92, 97, 1);
933
+ --overlay-button-hover-bg-color: rgba(115, 115, 115, 1);
934
+
935
+ /* This image is used in <input> elements, which unfortunately means that
936
  * the `mask-image` approach used with all of the other images doesn't work
937
  * here; hence why we still have two versions of this particular image. */
938
+ --loading-icon: url(images/loading-dark.svg);
939
+ }
940
 
941
  @media screen and (forced-colors: active) {
942
  :root {
958
  }
959
  }
960
 
961
+ #viewBookmark {
962
+ display: none !important;
963
+ }
964
+
965
  * {
966
  padding: 0;
967
  margin: 0;
992
  .hidden {
993
  display: none !important;
994
  }
995
+
996
  [hidden] {
997
  display: none !important;
998
  }
999
 
1000
  .pdfViewer.enablePermissions .textLayer span {
1001
  -webkit-user-select: none !important;
1002
+ -moz-user-select: none !important;
1003
+ user-select: none !important;
1004
  cursor: not-allowed;
1005
  }
1006
 
1013
  overflow: hidden;
1014
  cursor: none;
1015
  -webkit-user-select: none;
1016
+ user-select: none;
1017
  }
1018
 
1019
  #viewerContainer.pdfPresentationMode:fullscreen {
1025
  overflow: hidden;
1026
  cursor: none;
1027
  -webkit-user-select: none;
1028
+ -moz-user-select: none;
1029
+ user-select: none;
1030
  }
1031
 
1032
  .pdfPresentationMode:-webkit-full-screen a:not(.internalLink) {
1045
  cursor: none;
1046
  }
1047
 
1048
+ .pdfPresentationMode.pdfPresentationModeControls>*,
1049
  .pdfPresentationMode.pdfPresentationModeControls .textLayer span {
1050
  cursor: default;
1051
  }
1067
  transition-duration: var(--sidebar-transition-duration);
1068
  transition-timing-function: var(--sidebar-transition-timing-function);
1069
  }
1070
+
1071
  html[dir="ltr"] #sidebarContainer {
1072
  transition-property: left;
1073
  left: calc(0px - var(--sidebar-width));
1074
  border-right: var(--doorhanger-border-color-whcm);
1075
  }
1076
+
1077
  html[dir="rtl"] #sidebarContainer {
1078
  transition-property: right;
1079
  right: calc(0px - var(--sidebar-width));
1085
  transition-duration: 0s;
1086
  /* Prevent e.g. the thumbnails being selected when the sidebar is resized. */
1087
  -webkit-user-select: none;
1088
+ -moz-user-select: none;
1089
+ user-select: none;
1090
  }
1091
 
1092
  #outerContainer.sidebarMoving #sidebarContainer,
1093
  #outerContainer.sidebarOpen #sidebarContainer {
1094
  visibility: visible;
1095
  }
1096
+
1097
  html[dir="ltr"] #outerContainer.sidebarOpen #sidebarContainer {
1098
  left: 0;
1099
  }
1100
+
1101
  html[dir="rtl"] #outerContainer.sidebarOpen #sidebarContainer {
1102
  right: 0;
1103
  }
1120
  width: 100%;
1121
  background-color: rgba(0, 0, 0, 0.1);
1122
  }
1123
+
1124
  html[dir="ltr"] #sidebarContent {
1125
  left: 0;
1126
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.25);
1127
  }
1128
+
1129
  html[dir="rtl"] #sidebarContent {
1130
  right: 0;
1131
  box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.25);
1141
  left: 0;
1142
  outline: none;
1143
  }
1144
+
1145
  #viewerContainer:not(.pdfPresentationMode) {
1146
  transition-duration: var(--sidebar-transition-duration);
1147
  transition-timing-function: var(--sidebar-transition-timing-function);
1152
  transition-duration: 0s;
1153
  }
1154
 
1155
+ html[dir="ltr"] #outerContainer.sidebarOpen #viewerContainer:not(.pdfPresentationMode) {
 
 
1156
  transition-property: left;
1157
  left: var(--sidebar-width);
1158
  }
1159
+
1160
+ html[dir="rtl"] #outerContainer.sidebarOpen #viewerContainer:not(.pdfPresentationMode) {
 
1161
  transition-property: right;
1162
  right: var(--sidebar-width);
1163
  }
1179
  height: 32px;
1180
  background-color: var(--sidebar-toolbar-bg-color);
1181
  }
1182
+
1183
  html[dir="ltr"] #toolbarSidebar {
1184
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.25), 0 1px 0 rgba(0, 0, 0, 0.15),
1185
  0 0 1px rgba(0, 0, 0, 0.1);
1186
  }
1187
+
1188
  html[dir="rtl"] #toolbarSidebar {
1189
  box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.25), 0 1px 0 rgba(0, 0, 0, 0.15),
1190
  0 0 1px rgba(0, 0, 0, 0.1);
1193
  html[dir="ltr"] #toolbarSidebar .toolbarButton {
1194
  margin-right: 2px !important;
1195
  }
1196
+
1197
  html[dir="rtl"] #toolbarSidebar .toolbarButton {
1198
  margin-left: 2px !important;
1199
  }
1201
  html[dir="ltr"] #toolbarSidebarRight .toolbarButton {
1202
  margin-right: 3px !important;
1203
  }
1204
+
1205
  html[dir="rtl"] #toolbarSidebarRight .toolbarButton {
1206
  margin-left: 3px !important;
1207
  }
1214
  z-index: 200;
1215
  cursor: ew-resize;
1216
  }
1217
+
1218
  html[dir="ltr"] #sidebarResizer {
1219
  right: -6px;
1220
  }
1221
+
1222
  html[dir="rtl"] #sidebarResizer {
1223
  left: -6px;
1224
  }
1245
  transition-duration: var(--sidebar-transition-duration);
1246
  transition-timing-function: var(--sidebar-transition-timing-function);
1247
  }
1248
+
1249
  html[dir="ltr"] #loadingBar {
1250
  transition-property: left;
1251
  left: 0;
1252
  right: var(--loadingBar-end-offset);
1253
  }
1254
+
1255
  html[dir="rtl"] #loadingBar {
1256
  transition-property: right;
1257
  left: var(--loadingBar-end-offset);
1261
  html[dir="ltr"] #outerContainer.sidebarOpen #loadingBar {
1262
  left: var(--sidebar-width);
1263
  }
1264
+
1265
  html[dir="rtl"] #outerContainer.sidebarOpen #loadingBar {
1266
  right: var(--sidebar-width);
1267
  }
1286
  0% {
1287
  left: -142px;
1288
  }
1289
+
1290
  100% {
1291
  left: 0;
1292
  }
1296
  0% {
1297
  left: -142px;
1298
  }
1299
+
1300
  100% {
1301
  left: 0;
1302
  }
1313
  left: 0;
1314
  height: 100%;
1315
  width: calc(100% + 150px);
1316
+ background: repeating-linear-gradient(135deg,
1317
+ var(--progressBar-indeterminate-blend-color) 0,
1318
+ var(--progressBar-indeterminate-bg-color) 5px,
1319
+ var(--progressBar-indeterminate-bg-color) 45px,
1320
+ var(--progressBar-color) 55px,
1321
+ var(--progressBar-color) 95px,
1322
+ var(--progressBar-indeterminate-blend-color) 100px);
 
 
1323
  -webkit-animation: progressIndeterminate 1s linear infinite;
1324
+ animation: progressIndeterminate 1s linear infinite;
1325
  }
1326
 
1327
  .findbar,
1344
  min-width: 300px;
1345
  background-color: var(--toolbar-bg-color);
1346
  }
1347
+
1348
+ .findbar>div {
1349
  height: 32px;
1350
  }
1351
+
1352
+ .findbar.wrapContainers>div {
1353
  clear: both;
1354
  }
1355
+
1356
+ .findbar.wrapContainers>div#findbarMessageContainer {
1357
  height: auto;
1358
  }
1359
+
1360
  html[dir="ltr"] .findbar {
1361
  left: 64px;
1362
  }
1363
+
1364
  html[dir="rtl"] .findbar {
1365
  right: 64px;
1366
  }
1368
  .findbar .splitToolbarButton {
1369
  margin-top: 3px;
1370
  }
1371
+
1372
  html[dir="ltr"] .findbar .splitToolbarButton {
1373
  margin-left: 0;
1374
  margin-right: 5px;
1375
  }
1376
+
1377
  html[dir="rtl"] .findbar .splitToolbarButton {
1378
  margin-left: 5px;
1379
  margin-right: 0;
1380
  }
1381
 
1382
+ .findbar .splitToolbarButton>.toolbarButton {
1383
  background-color: var(--findbar-nextprevious-btn-bg-color);
1384
  border-radius: 0;
1385
  height: 26px;
1387
  border-bottom: 1px solid var(--field-border-color);
1388
  }
1389
 
1390
+ .findbar .splitToolbarButton>.toolbarButton::before {
1391
  top: 5px;
1392
  }
1393
 
1394
+ .findbar .splitToolbarButton>.findNext {
1395
  width: 29px;
1396
  }
1397
+
1398
+ html[dir="ltr"] .findbar .splitToolbarButton>.findNext {
1399
  border-bottom-right-radius: 2px;
1400
  border-top-right-radius: 2px;
1401
  border-right: 1px solid var(--field-border-color);
1402
  }
1403
+
1404
+ html[dir="rtl"] .findbar .splitToolbarButton>.findNext {
1405
  border-bottom-left-radius: 2px;
1406
  border-top-left-radius: 2px;
1407
  border-left: 1px solid var(--field-border-color);
1413
 
1414
  .findbar label {
1415
  -webkit-user-select: none;
1416
+ -moz-user-select: none;
1417
+ user-select: none;
1418
  }
1419
 
1420
  .findbar label:hover,
1421
+ .findbar input:focus+label {
1422
  color: var(--toggled-btn-color);
1423
  background-color: var(--button-hover-color);
1424
  }
1427
  border-top-right-radius: 0;
1428
  border-bottom-right-radius: 0;
1429
  }
1430
+
1431
  html[dir="rtl"] #findInput {
1432
  border-top-left-radius: 0;
1433
  border-bottom-left-radius: 0;
1434
  }
1435
 
1436
+ .findbar .toolbarField[type="checkbox"]:checked+.toolbarLabel {
1437
  background-color: var(--toggled-btn-bg-color) !important;
1438
  color: var(--toggled-btn-color);
1439
  }
1441
  #findInput {
1442
  width: 200px;
1443
  }
1444
+
1445
  #findInput::-moz-placeholder {
1446
  font-style: normal;
1447
  }
1448
+
1449
  #findInput::placeholder {
1450
  font-style: normal;
1451
  }
1452
+
1453
  #findInput[data-status="pending"] {
1454
  background-image: var(--loading-icon);
1455
  background-repeat: no-repeat;
1456
  background-position: 98%;
1457
  }
1458
+
1459
  html[dir="rtl"] #findInput[data-status="pending"] {
1460
  background-position: 3px;
1461
  }
1462
+
1463
  #findInput[data-status="notFound"] {
1464
  background-color: rgba(255, 102, 102, 1);
1465
  }
1470
  z-index: 30000;
1471
  background-color: var(--doorhanger-bg-color);
1472
  }
1473
+
1474
  html[dir="ltr"] .secondaryToolbar {
1475
  right: 4px;
1476
  }
1477
+
1478
  html[dir="rtl"] .secondaryToolbar {
1479
  left: 4px;
1480
  }
1487
  margin-bottom: -4px;
1488
  }
1489
 
1490
+ #secondaryToolbarButtonContainer.hiddenScrollModeButtons>.scrollModeButtons,
1491
+ #secondaryToolbarButtonContainer.hiddenSpreadModeButtons>.spreadModeButtons {
1492
  display: none !important;
1493
  }
1494
 
1499
  0 0 0 1px var(--doorhanger-border-color);
1500
  border: var(--doorhanger-border-color-whcm);
1501
  }
1502
+
1503
  .doorHanger:after,
1504
  .doorHanger:before,
1505
  .doorHangerRight:after,
1513
  pointer-events: none;
1514
  opacity: var(--doorhanger-triangle-opacity-whcm);
1515
  }
1516
+
1517
  .doorHanger:after,
1518
  .doorHangerRight:after {
1519
  border-width: 8px;
1520
  }
1521
+
1522
  .doorHanger:after {
1523
  border-bottom-color: var(--toolbar-bg-color);
1524
  }
1525
+
1526
  .doorHangerRight:after {
1527
  border-bottom-color: var(--doorhanger-bg-color);
1528
  }
1529
+
1530
  .doorHanger:before,
1531
  .doorHangerRight:before {
1532
  border-bottom-color: var(--doorhanger-border-color);
1568
  #findMsg {
1569
  color: rgba(251, 0, 0, 1);
1570
  }
1571
+
1572
  #findMsg:empty {
1573
  display: none;
1574
  }
1585
  html[dir="rtl"] #toolbarSidebarRight {
1586
  float: left;
1587
  }
1588
+
1589
  html[dir="ltr"] #toolbarViewerRight,
1590
  html[dir="rtl"] #toolbarViewerLeft,
1591
  html[dir="ltr"] #toolbarSidebarRight,
1592
  html[dir="rtl"] #toolbarSidebarLeft {
1593
  float: right;
1594
  }
1595
+
1596
+ html[dir="ltr"] #toolbarViewerLeft>*,
1597
+ html[dir="ltr"] #toolbarViewerMiddle>*,
1598
+ html[dir="ltr"] #toolbarViewerRight>*,
1599
  html[dir="ltr"] #toolbarSidebarLeft *,
1600
  html[dir="ltr"] #toolbarSidebarRight *,
1601
  html[dir="ltr"] .findbar * {
1602
  position: relative;
1603
  float: left;
1604
  }
1605
+
1606
+ html[dir="rtl"] #toolbarViewerLeft>*,
1607
+ html[dir="rtl"] #toolbarViewerMiddle>*,
1608
+ html[dir="rtl"] #toolbarViewerRight>*,
1609
  html[dir="rtl"] #toolbarSidebarLeft *,
1610
  html[dir="rtl"] #toolbarSidebarRight *,
1611
  html[dir="rtl"] .findbar * {
1617
  margin: 2px 2px 0;
1618
  display: inline-block;
1619
  }
1620
+
1621
+ html[dir="ltr"] .splitToolbarButton>.toolbarButton {
1622
  float: left;
1623
  }
1624
+
1625
+ html[dir="rtl"] .splitToolbarButton>.toolbarButton {
1626
  float: right;
1627
  }
1628
 
1640
  background-color: var(--overlay-button-hover-bg-color);
1641
  }
1642
 
1643
+ .overlayButton:hover>span,
1644
+ .overlayButton:focus>span {
1645
  color: var(--overlay-button-hover-color);
1646
  }
1647
 
1648
+ .toolbarButton>span {
1649
  display: inline-block;
1650
  width: 0;
1651
  height: 0;
1662
  margin: 0;
1663
  }
1664
 
1665
+ .splitToolbarButton>.toolbarButton:hover,
1666
+ .splitToolbarButton>.toolbarButton:focus,
1667
  .dropdownToolbarButton:hover,
1668
  .toolbarButton.textButton:hover,
1669
  .toolbarButton.textButton:focus {
1670
  background-color: var(--button-hover-color);
1671
  z-index: 199;
1672
  }
1673
+
1674
+ .splitToolbarButton>.toolbarButton {
1675
  position: relative;
1676
  }
1677
+
1678
+ html[dir="ltr"] .splitToolbarButton>.toolbarButton:first-child,
1679
+ html[dir="rtl"] .splitToolbarButton>.toolbarButton:last-child {
1680
  margin: 0;
1681
  }
1682
+
1683
+ html[dir="ltr"] .splitToolbarButton>.toolbarButton:last-child,
1684
+ html[dir="rtl"] .splitToolbarButton>.toolbarButton:first-child {
1685
  margin: 0;
1686
  }
1687
+
1688
  .splitToolbarButtonSeparator {
1689
  padding: 10px 0;
1690
  width: 1px;
1703
  html[dir="ltr"] .splitToolbarButtonSeparator {
1704
  float: left;
1705
  }
1706
+
1707
  html[dir="rtl"] .splitToolbarButtonSeparator {
1708
  float: right;
1709
  }
1721
  font-size: 12px;
1722
  line-height: 14px;
1723
  -webkit-user-select: none;
1724
+ -moz-user-select: none;
1725
+ user-select: none;
1726
  cursor: default;
1727
  box-sizing: border-box;
1728
  }
1729
 
1730
+ html[dir="ltr"] #toolbarViewerLeft>.toolbarButton:first-child,
1731
+ html[dir="rtl"] #toolbarViewerRight>.toolbarButton:last-child {
1732
  margin-left: 2px;
1733
  }
1734
 
1735
+ html[dir="ltr"] #toolbarViewerRight>.toolbarButton:last-child,
1736
+ html[dir="rtl"] #toolbarViewerLeft>.toolbarButton:first-child {
1737
  margin-right: 2px;
1738
  }
1739
+
1740
  .toolbarButton:hover,
1741
  .toolbarButton:focus {
1742
  background-color: var(--button-hover-color);
1743
  }
1744
+
1745
  .secondaryToolbarButton:hover,
1746
  .secondaryToolbarButton:focus {
1747
  background-color: var(--doorhanger-hover-bg-color);
1749
  }
1750
 
1751
  .toolbarButton.toggled,
1752
+ .splitToolbarButton.toggled>.toolbarButton.toggled,
1753
  .secondaryToolbarButton.toggled {
1754
  background-color: var(--toggled-btn-bg-color);
1755
  color: var(--toggled-btn-color);
1764
  }
1765
 
1766
  .toolbarButton.toggled:hover:active,
1767
+ .splitToolbarButton.toggled>.toolbarButton.toggled:hover:active,
1768
  .secondaryToolbarButton.toggled:hover:active {
1769
  background-color: var(--toggled-hover-active-btn-color);
1770
  }
1776
  background-color: var(--dropdown-btn-bg-color);
1777
  margin-top: 2px !important;
1778
  }
1779
+
1780
  .dropdownToolbarButton::after {
1781
  top: 6px;
1782
  pointer-events: none;
1784
  -webkit-mask-image: var(--toolbarButton-menuArrow-icon);
1785
  mask-image: var(--toolbarButton-menuArrow-icon);
1786
  }
1787
+
1788
  html[dir="ltr"] .dropdownToolbarButton::after {
1789
  right: 7px;
1790
  }
1791
+
1792
  html[dir="rtl"] .dropdownToolbarButton::after {
1793
  left: 7px;
1794
  }
1795
 
1796
+ .dropdownToolbarButton>select {
1797
  width: 162px;
1798
  height: 28px;
1799
  font-size: 12px;
1803
  border: none;
1804
  background-color: var(--dropdown-btn-bg-color);
1805
  }
1806
+
1807
+ html[dir="ltr"] .dropdownToolbarButton>select {
1808
  padding-left: 4px;
1809
  }
1810
+
1811
+ html[dir="rtl"] .dropdownToolbarButton>select {
1812
  padding-right: 4px;
1813
  }
1814
+
1815
+ .dropdownToolbarButton>select:hover,
1816
+ .dropdownToolbarButton>select:focus {
1817
  background-color: var(--button-hover-color);
1818
  color: var(--toggled-btn-color);
1819
  }
1820
 
1821
+ .dropdownToolbarButton>select>option {
1822
  background: var(--doorhanger-bg-color);
1823
  color: var(--main-color);
1824
  }
1877
  opacity: var(--doorhanger-icon-opacity);
1878
  top: 5px;
1879
  }
1880
+
1881
  html[dir="ltr"] .secondaryToolbarButton::before {
1882
  left: 12px;
1883
  }
1884
+
1885
  html[dir="rtl"] .secondaryToolbarButton::before {
1886
  right: 12px;
1887
  }
1890
  -webkit-mask-image: var(--toolbarButton-sidebarToggle-icon);
1891
  mask-image: var(--toolbarButton-sidebarToggle-icon);
1892
  }
1893
+
1894
  html[dir="rtl"] .toolbarButton#sidebarToggle::before {
1895
  transform: scaleX(-1);
1896
  }
1899
  -webkit-mask-image: var(--toolbarButton-secondaryToolbarToggle-icon);
1900
  mask-image: var(--toolbarButton-secondaryToolbarToggle-icon);
1901
  }
1902
+
1903
  html[dir="rtl"] .toolbarButton#secondaryToolbarToggle::before {
1904
  transform: scaleX(-1);
1905
  }
1983
  -webkit-mask-image: var(--toolbarButton-viewOutline-icon);
1984
  mask-image: var(--toolbarButton-viewOutline-icon);
1985
  }
1986
+
1987
  html[dir="rtl"] #viewOutline.toolbarButton::before {
1988
  transform: scaleX(-1);
1989
  }
2002
  -webkit-mask-image: var(--toolbarButton-currentOutlineItem-icon);
2003
  mask-image: var(--toolbarButton-currentOutlineItem-icon);
2004
  }
2005
+
2006
  html[dir="rtl"] #currentOutlineItem.toolbarButton::before {
2007
  transform: scaleX(-1);
2008
  }
2023
  width: 9px;
2024
  border-radius: 50%;
2025
  }
2026
+
2027
  html[dir="ltr"] .toolbarButton.pdfSidebarNotification::after {
2028
  left: 17px;
2029
  }
2030
+
2031
  html[dir="rtl"] .toolbarButton.pdfSidebarNotification::after {
2032
  right: 17px;
2033
  }
2044
  border-radius: 0;
2045
  box-sizing: border-box;
2046
  }
2047
+
2048
  html[dir="ltr"] .secondaryToolbarButton {
2049
  padding-left: 36px;
2050
  text-align: left;
2051
  }
2052
+
2053
  html[dir="rtl"] .secondaryToolbarButton {
2054
  padding-right: 36px;
2055
  text-align: right;
2056
  }
2057
 
2058
+ html[dir="ltr"] .secondaryToolbarButton>span {
2059
  padding-right: 4px;
2060
  }
2061
+
2062
+ html[dir="rtl"] .secondaryToolbarButton>span {
2063
  padding-left: 4px;
2064
  }
2065
 
2135
  width: 1px;
2136
  background-color: var(--separator-color);
2137
  }
2138
+
2139
  html[dir="ltr"] .verticalToolbarSeparator {
2140
  margin-left: 2px;
2141
  }
2142
+
2143
  html[dir="rtl"] .verticalToolbarSeparator {
2144
  margin-right: 2px;
2145
  }
2183
  }
2184
 
2185
  .toolbarField.pageNumber {
2186
+ -moz-appearance: textfield;
2187
+ /* hides the spinner in moz */
2188
  min-width: 16px;
2189
  text-align: right;
2190
  width: 40px;
2216
  line-height: 14px;
2217
  text-align: left;
2218
  -webkit-user-select: none;
2219
+ -moz-user-select: none;
2220
+ user-select: none;
2221
  cursor: default;
2222
  }
2223
 
2224
  html[dir="ltr"] #numPages.toolbarLabel {
2225
  padding-left: 3px;
2226
  }
2227
+
2228
  html[dir="rtl"] #numPages.toolbarLabel {
2229
  padding-right: 3px;
2230
  }
2239
  -webkit-overflow-scrolling: touch;
2240
  }
2241
 
2242
+ #thumbnailView>a:active,
2243
+ #thumbnailView>a:focus {
2244
  outline: 0;
2245
  }
2246
 
2247
  .thumbnail {
2248
  margin: 0 10px 5px;
2249
  }
2250
+
2251
  html[dir="ltr"] .thumbnail {
2252
  float: left;
2253
  }
2254
+
2255
  html[dir="rtl"] .thumbnail {
2256
  float: right;
2257
  }
2258
 
2259
+ #thumbnailView>a:last-of-type>.thumbnail {
2260
  margin-bottom: 10px;
2261
  }
2262
 
2263
+ #thumbnailView>a:last-of-type>.thumbnail:not([data-loaded]) {
2264
  margin-bottom: 9px;
2265
  }
2266
 
2283
  padding: 7px;
2284
  }
2285
 
2286
+ a:focus>.thumbnail>.thumbnailSelectionRing>.thumbnailImage,
2287
+ .thumbnail:hover>.thumbnailSelectionRing>.thumbnailImage {
2288
  opacity: 0.9;
2289
  }
2290
 
2291
+ a:focus>.thumbnail>.thumbnailSelectionRing,
2292
+ .thumbnail:hover>.thumbnailSelectionRing {
2293
  background-color: var(--sidebaritem-bg-color);
2294
  background-clip: padding-box;
2295
  color: rgba(255, 255, 255, 0.9);
2296
  }
2297
 
2298
+ .thumbnail.selected>.thumbnailSelectionRing>.thumbnailImage {
2299
  opacity: 1;
2300
  }
2301
 
2302
+ .thumbnail.selected>.thumbnailSelectionRing {
2303
  background-color: var(--sidebaritem-bg-color);
2304
  background-clip: padding-box;
2305
  color: rgba(255, 255, 255, 1);
2316
  overflow: auto;
2317
  -webkit-overflow-scrolling: touch;
2318
  -webkit-user-select: none;
2319
+ -moz-user-select: none;
2320
+ user-select: none;
2321
  }
2322
 
2323
+ html[dir="ltr"] .treeWithDeepNesting>.treeItem,
2324
+ html[dir="ltr"] .treeItem>.treeItems {
2325
  margin-left: 20px;
2326
  }
2327
 
2328
+ html[dir="rtl"] .treeWithDeepNesting>.treeItem,
2329
+ html[dir="rtl"] .treeItem>.treeItems {
2330
  margin-right: 20px;
2331
  }
2332
 
2333
+ .treeItem>a {
2334
  text-decoration: none;
2335
  display: inline-block;
2336
  min-width: 95%;
2343
  font-size: 13px;
2344
  line-height: 15px;
2345
  -webkit-user-select: none;
2346
+ -moz-user-select: none;
2347
+ user-select: none;
2348
  white-space: normal;
2349
  cursor: pointer;
2350
  }
2351
+
2352
+ html[dir="ltr"] .treeItem>a {
2353
  padding: 2px 0 5px 4px;
2354
  }
2355
+
2356
+ html[dir="rtl"] .treeItem>a {
2357
  padding: 2px 4px 5px 0;
2358
  }
2359
 
2360
+ #layersView .treeItem>a>* {
2361
  cursor: pointer;
2362
  }
2363
+
2364
+ html[dir="ltr"] #layersView .treeItem>a>label {
2365
  padding-left: 4px;
2366
  }
2367
+
2368
+ html[dir="rtl"] #layersView .treesItem>a>label {
2369
  padding-right: 4px;
2370
  }
2371
 
2375
  width: 0;
2376
  color: rgba(255, 255, 255, 0.5);
2377
  }
2378
+
2379
  .treeItemToggler::before {
2380
  -webkit-mask-image: var(--treeitem-expanded-icon);
2381
  mask-image: var(--treeitem-expanded-icon);
2382
  }
2383
+
2384
  .treeItemToggler.treeItemsHidden::before {
2385
  -webkit-mask-image: var(--treeitem-collapsed-icon);
2386
  mask-image: var(--treeitem-collapsed-icon);
2387
  }
2388
+
2389
  html[dir="rtl"] .treeItemToggler.treeItemsHidden::before {
2390
  transform: scaleX(-1);
2391
  }
2392
+
2393
+ .treeItemToggler.treeItemsHidden~.treeItems {
2394
  display: none;
2395
  }
2396
+
2397
  html[dir="ltr"] .treeItemToggler {
2398
  float: left;
2399
  }
2400
+
2401
  html[dir="rtl"] .treeItemToggler {
2402
  float: right;
2403
  }
2404
+
2405
  html[dir="ltr"] .treeItemToggler::before {
2406
  right: 4px;
2407
  }
2408
+
2409
  html[dir="rtl"] .treeItemToggler::before {
2410
  left: 4px;
2411
  }
2412
 
2413
+ .treeItem.selected>a {
2414
  background-color: var(--treeitem-selected-bg-color);
2415
  color: var(--treeitem-selected-color);
2416
  }
2417
 
2418
  .treeItemToggler:hover,
2419
+ .treeItemToggler:hover+a,
2420
+ .treeItemToggler:hover~.treeItems,
2421
+ .treeItem>a:hover {
2422
  background-color: var(--sidebaritem-bg-color);
2423
  background-clip: padding-box;
2424
  border-radius: 2px;
2431
  ::-moz-selection {
2432
  background: rgba(0, 0, 255, 0.3);
2433
  }
2434
+
2435
  ::selection {
2436
  background: rgba(0, 0, 255, 0.3);
2437
  }
2480
  background-color: rgba(0, 0, 0, 0.2);
2481
  z-index: 40000;
2482
  }
2483
+
2484
+ #overlayContainer>* {
2485
  overflow: auto;
2486
  -webkit-overflow-scrolling: touch;
2487
  }
2488
 
2489
+ #overlayContainer>.container {
2490
  display: table-cell;
2491
  vertical-align: middle;
2492
  text-align: center;
2493
  }
2494
 
2495
+ #overlayContainer>.container>.dialog {
2496
  display: inline-block;
2497
  padding: 15px;
2498
  border-spacing: 4px;
2505
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
2506
  }
2507
 
2508
+ .dialog>.row {
2509
  display: table-row;
2510
  }
2511
 
2512
+ .dialog>.row>* {
2513
  display: table-cell;
2514
  }
2515
 
2534
  color: rgba(255, 255, 255, 1);
2535
  }
2536
 
2537
+ #passwordOverlay>.dialog {
2538
  text-align: center;
2539
  }
2540
+
2541
  #passwordOverlay .toolbarField {
2542
  width: 200px;
2543
  }
2544
 
2545
+ #documentPropertiesOverlay>.dialog {
2546
  text-align: left;
2547
  }
2548
+
2549
+ #documentPropertiesOverlay .row>* {
2550
  min-width: 100px;
2551
  }
2552
+
2553
+ html[dir="ltr"] #documentPropertiesOverlay .row>* {
2554
  text-align: left;
2555
  }
2556
+
2557
+ html[dir="rtl"] #documentPropertiesOverlay .row>* {
2558
  text-align: right;
2559
  }
2560
+
2561
+ #documentPropertiesOverlay .row>span {
2562
  width: 125px;
2563
  word-wrap: break-word;
2564
  }
2565
+
2566
+ #documentPropertiesOverlay .row>p {
2567
  max-width: 225px;
2568
  word-wrap: break-word;
2569
  }
2570
+
2571
  #documentPropertiesOverlay .buttonRow {
2572
  margin-top: 10px;
2573
  }
2597
  padding: 0;
2598
  width: 300px;
2599
  }
2600
+
2601
  #PDFBug .controls {
2602
  background: rgba(238, 238, 238, 1);
2603
  border-bottom: 1px solid rgba(102, 102, 102, 1);
2604
  padding: 3px;
2605
  }
2606
+
2607
  #PDFBug .panels {
2608
  bottom: 0;
2609
  left: 0;
2613
  right: 0;
2614
  top: 27px;
2615
  }
2616
+
2617
+ #PDFBug .panels>div {
2618
  padding: 5px;
2619
  }
2620
+
2621
  #PDFBug button.active {
2622
  font-weight: bold;
2623
  }
2624
+
2625
  .debuggerShowText {
2626
  background: none repeat scroll 0 0 rgba(255, 255, 0, 1);
2627
  color: rgba(0, 0, 255, 1);
2628
  }
2629
+
2630
  .debuggerHideText:hover {
2631
  background: none repeat scroll 0 0 rgba(255, 255, 0, 1);
2632
  }
2633
+
2634
  #PDFBug .stats {
2635
  font-family: courier;
2636
  font-size: 10px;
2637
  white-space: pre;
2638
  }
2639
+
2640
  #PDFBug .stats .title {
2641
  font-weight: bold;
2642
  }
2643
+
2644
  #PDFBug table {
2645
  font-size: 10px;
2646
  }
2679
  cursor: -webkit-grab !important;
2680
  cursor: grab !important;
2681
  }
2682
+
2683
+ .grab-to-pan-grab *:not(input):not(textarea):not(button):not(select):not(:link) {
2684
  cursor: inherit !important;
2685
  }
2686
+
2687
  .grab-to-pan-grab:active,
2688
  .grab-to-pan-grabbing {
2689
  cursor: url("images/grabbing.cur"), move !important;
2697
  right: 0;
2698
  bottom: 0;
2699
  overflow: hidden;
2700
+ z-index: 50000;
2701
+ /* should be higher than anything else in PDF.js! */
2702
  }
2703
 
2704
  @page {
2710
  }
2711
 
2712
  @media print {
2713
+
2714
  /* General rules for printing. */
2715
  body {
2716
  background: rgba(0, 0, 0, 0) none;
2725
  .textLayer {
2726
  display: none;
2727
  }
2728
+
2729
  #viewerContainer {
2730
  overflow: visible;
2731
  }
2760
  body[data-pdfjsprinting] #outerContainer {
2761
  display: none;
2762
  }
2763
+
2764
  body[data-pdfjsprinting] #printContainer {
2765
  display: block;
2766
  }
2767
+
2768
  #printContainer {
2769
  height: 100%;
2770
  }
2771
+
2772
  /* wrapper around (scaled) print canvas elements */
2773
+ #printContainer>div {
2774
  page-break-after: always;
2775
  page-break-inside: avoid;
2776
 
2783
  justify-content: center;
2784
  align-items: center;
2785
  }
2786
+
2787
  #printContainer canvas,
2788
  #printContainer img {
2789
  /* The intrinsic canvas / image size will make sure that we fit the page. */
2819
  html[dir="ltr"] #outerContainer.sidebarOpen #viewerContainer {
2820
  left: 0 !important;
2821
  }
2822
+
2823
  html[dir="rtl"] #outerContainer.sidebarOpen #viewerContainer {
2824
  right: 0 !important;
2825
  }
2828
  #outerContainer .hiddenMediumView {
2829
  display: inherit;
2830
  }
2831
+
2832
  #outerContainer .visibleLargeView,
2833
  #outerContainer .visibleMediumView {
2834
  display: none;
2839
  #outerContainer .hiddenLargeView {
2840
  display: none;
2841
  }
2842
+
2843
  #outerContainer .visibleLargeView {
2844
  display: inherit;
2845
  }
2849
  #outerContainer .hiddenMediumView {
2850
  display: none;
2851
  }
2852
+
2853
  #outerContainer .visibleMediumView {
2854
  display: none;
2855
  }
2856
  }
2857
 
2858
  @media all and (max-width: 640px) {
2859
+
2860
  .hiddenSmallView,
2861
  .hiddenSmallView * {
2862
  display: none;
2863
  }
2864
+
2865
  .visibleSmallView {
2866
  display: none;
2867
  }
2868
+
2869
  .toolbarButtonSpacer {
2870
  width: 0;
2871
  }
2872
+
2873
  html[dir="ltr"] .findbar {
2874
  left: 34px;
2875
  }
2876
+
2877
  html[dir="rtl"] .findbar {
2878
  right: 34px;
2879
  }
2883
  #scaleSelectContainer {
2884
  display: none;
2885
  }
2886
+ }
assets/pdf/web/viewer.html CHANGED
@@ -42,6 +42,7 @@ See https://github.com/adobe-type-tools/cmap-resources
42
 
43
 
44
  <script src="viewer.js"></script>
 
45
 
46
  </head>
47
 
42
 
43
 
44
  <script src="viewer.js"></script>
45
+ <script src="ep-scripts.js"></script>
46
 
47
  </head>
48
 
embedpress.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: EmbedPress lets you embed videos, images, posts, audio, maps and upload PDF, DOC, PPT & all other types of content into your WordPress site with one-click and showcase it beautifully for the visitors. 150+ sources supported.
6
  * Author: WPDeveloper
7
  * Author URI: https://wpdeveloper.com
8
- * Version: 3.6.2
9
  * Text Domain: embedpress
10
  * Domain Path: /languages
11
  *
5
  * Description: EmbedPress lets you embed videos, images, posts, audio, maps and upload PDF, DOC, PPT & all other types of content into your WordPress site with one-click and showcase it beautifully for the visitors. 150+ sources supported.
6
  * Author: WPDeveloper
7
  * Author URI: https://wpdeveloper.com
8
+ * Version: 3.6.3
9
  * Text Domain: embedpress
10
  * Domain Path: /languages
11
  *
includes.php CHANGED
@@ -22,7 +22,7 @@ if ( ! defined('EMBEDPRESS_PLG_NAME')) {
22
  }
23
 
24
  if ( ! defined('EMBEDPRESS_VERSION')) {
25
- define('EMBEDPRESS_VERSION', "3.6.2");
26
  /**
27
  * @deprecated 2.2.0
28
  */
22
  }
23
 
24
  if ( ! defined('EMBEDPRESS_VERSION')) {
25
+ define('EMBEDPRESS_VERSION', "3.6.3");
26
  /**
27
  * @deprecated 2.2.0
28
  */
readme.txt CHANGED
@@ -6,7 +6,7 @@ Tags: embed, embed youtube, gutenberg embed, pdf, doc, docs, ppt, elementor embe
6
  Requires at least: 4.6
7
  Tested up to: 6.1
8
  Requires PHP: 5.6
9
- Stable tag: 3.6.2
10
  License: GPLv3 or later
11
  License URI: https://opensource.org/licenses/GPL-3.0
12
 
@@ -382,6 +382,13 @@ Not at all. You can set up everything your team needs without any coding knowled
382
  The format is based on [Keep a Changelog](http://keepachangelog.com/)
383
  and this project adheres to [Semantic Versioning](http://semver.org/).
384
 
 
 
 
 
 
 
 
385
  = [3.6.2] - 2022-11-22 =
386
  * Fixed: Height-width controller issues in Elementor.
387
  * Fixed: Google map marker isn’t showing in the correct place.
6
  Requires at least: 4.6
7
  Tested up to: 6.1
8
  Requires PHP: 5.6
9
+ Stable tag: 3.6.3
10
  License: GPLv3 or later
11
  License URI: https://opensource.org/licenses/GPL-3.0
12
 
382
  The format is based on [Keep a Changelog](http://keepachangelog.com/)
383
  and this project adheres to [Semantic Versioning](http://semver.org/).
384
 
385
+ = [3.6.3] - 2022-12-14 =
386
+ * Added: OpenSea single asset with advanced controls.
387
+ * Fixed: Print & Download button wasnt showing with Shortcode.
388
+ * Fixed: PDF control wasnt working while embeding PDF from multiple sources.
389
+ * Fixed: Instagram embidding in Classic Editor.
390
+ * Few minor bug fixes and improvements.
391
+
392
  = [3.6.2] - 2022-11-22 =
393
  * Fixed: Height-width controller issues in Elementor.
394
  * Fixed: Google map marker isn’t showing in the correct place.