From 6a6fe2b41d85cf370e393f88d98082a59e32349b Mon Sep 17 00:00:00 2001 From: WP Git Updater Bot Date: Thu, 1 Apr 2021 13:39:14 +0000 Subject: [PATCH] chore(plugins): Update ultimate-addons-for-gutenberg from 1.19.0 to 1.22.1 --- .../admin/assets/admin-menu-settings.js | 14 +- .../admin/assets/images/uag-white-logo.svg | 19 + .../admin/assets/images/uagb-10.png | Bin 0 -> 12609 bytes .../admin/uagb-general.php | 36 + .../assets/css/blocks/columns.css | 2 +- .../assets/css/blocks/forms.css | 1 + .../assets/css/blocks/post.css | 2 +- .../assets/css/blocks/price-list.css | 2 +- .../assets/css/blocks/table-of-contents.css | 2 +- .../assets/css/blocks/tabs-child.css | 1 + .../assets/css/blocks/tabs.css | 1 + .../assets/css/blocks/timeline.css | 2 +- .../assets/js/faq.js | 10 +- .../assets/js/forms.js | 213 + .../assets/js/imagesloaded.min.js | 14 +- .../assets/js/inline-notice.js | 2 +- .../assets/js/isotope.min.js | 10 + .../assets/js/js_cookie.js | 8 + .../assets/js/post.js | 14 +- .../assets/js/table-of-contents.js | 92 +- .../assets/js/tabs.js | 25 + .../assets/js/uagb-bodymovin.min.js | 15 + .../assets/js/uagb-lottie.js | 46 + .../classes/class-uagb-admin-helper.php | 5 + .../classes/class-uagb-block-helper.php | 767 +- .../classes/class-uagb-block-js.php | 95 +- .../classes/class-uagb-config.php | 518 +- .../classes/class-uagb-helper.php | 94 +- .../classes/class-uagb-init-blocks.php | 221 + .../classes/class-uagb-loader.php | 9 +- .../dist/blocks.build.js | 210514 ++++++++------- .../dist/blocks.commoneditorstyle.build.css | 15 +- .../dist/blocks.editor.build.css | 18 +- .../dist/blocks.style.build.css | 14 +- .../dist/blocks.style.css | 31 +- .../dist/blocks.style.rtl.css | 1 + .../cf7-styler/class-uagb-cf7-styler.php | 15 + .../dist/blocks/forms/class-uagb-forms.php | 179 + .../blocks/gf-styler/class-uagb-gf-styler.php | 16 + .../dist/blocks/lottie/class-uagb-lottie.php | 166 + .../class-uagb-post-timeline.php | 25 +- .../dist/blocks/post/class-uagb-post.php | 172 +- .../class-uagb-table-of-content.php | 436 + .../class-uagb-taxonomy-list.php | 27 +- .../dist/blocks/uagb-controls/block-icons.js | 122 +- .../ultimate-addons-for-gutenberg.pot | 7000 +- .../ast-block-templates.php | 30 + ...ass-ast-block-templates-image-importer.php | 270 + ...st-block-templates-sync-library-wp-cli.php | 78 + ...class-ast-block-templates-sync-library.php | 578 + .../classes/class-ast-block-templates.php | 581 + .../ast-block-templates/classes/functions.php | 67 + .../dist/fonts/ast-block-templates.eot | Bin 0 -> 2516 bytes .../dist/fonts/ast-block-templates.svg | 16 + .../dist/fonts/ast-block-templates.ttf | Bin 0 -> 2352 bytes .../dist/fonts/ast-block-templates.woff | Bin 0 -> 2428 bytes .../lib/ast-block-templates/dist/index.html | 1 + .../ast-block-templates-block-requests.json | 1 + .../json/ast-block-templates-blocks-1.json | 1 + .../ast-block-templates-site-requests.json | 1 + .../json/ast-block-templates-sites-1.json | 1 + .../lib/ast-block-templates/dist/logo.svg | 47 + .../lib/ast-block-templates/dist/main.js | 9 + .../ast-block-templates/dist/placeholder.png | Bin 0 -> 51960 bytes .../dist/placeholder_200_200.png | Bin 0 -> 2842 bytes .../dist/starter-template-logo.svg | 36 + .../lib/ast-block-templates/dist/style.css | 51 + .../lib/ast-block-templates/version.json | 3 + .../lib/class-uagb-ast-block-templates.php | 118 + .../lib/gutenberg-templates/dist/main.js | 9 + .../ultimate-addons-for-gutenberg/readme.txt | 67 +- .../ultimate-addons-for-gutenberg.php | 2 +- .../wpml-config.xml | 5 + 73 files changed, 131745 insertions(+), 91218 deletions(-) create mode 100644 plugins/ultimate-addons-for-gutenberg/admin/assets/images/uag-white-logo.svg create mode 100644 plugins/ultimate-addons-for-gutenberg/admin/assets/images/uagb-10.png create mode 100644 plugins/ultimate-addons-for-gutenberg/assets/css/blocks/forms.css create mode 100644 plugins/ultimate-addons-for-gutenberg/assets/css/blocks/tabs-child.css create mode 100644 plugins/ultimate-addons-for-gutenberg/assets/css/blocks/tabs.css create mode 100644 plugins/ultimate-addons-for-gutenberg/assets/js/forms.js create mode 100644 plugins/ultimate-addons-for-gutenberg/assets/js/tabs.js create mode 100644 plugins/ultimate-addons-for-gutenberg/assets/js/uagb-bodymovin.min.js create mode 100644 plugins/ultimate-addons-for-gutenberg/assets/js/uagb-lottie.js create mode 100644 plugins/ultimate-addons-for-gutenberg/dist/blocks.style.rtl.css create mode 100644 plugins/ultimate-addons-for-gutenberg/dist/blocks/forms/class-uagb-forms.php create mode 100644 plugins/ultimate-addons-for-gutenberg/dist/blocks/lottie/class-uagb-lottie.php create mode 100644 plugins/ultimate-addons-for-gutenberg/dist/blocks/table-of-content/class-uagb-table-of-content.php create mode 100644 plugins/ultimate-addons-for-gutenberg/lib/ast-block-templates/ast-block-templates.php create mode 100644 plugins/ultimate-addons-for-gutenberg/lib/ast-block-templates/classes/class-ast-block-templates-image-importer.php create mode 100644 plugins/ultimate-addons-for-gutenberg/lib/ast-block-templates/classes/class-ast-block-templates-sync-library-wp-cli.php create mode 100644 plugins/ultimate-addons-for-gutenberg/lib/ast-block-templates/classes/class-ast-block-templates-sync-library.php create mode 100644 plugins/ultimate-addons-for-gutenberg/lib/ast-block-templates/classes/class-ast-block-templates.php create mode 100644 plugins/ultimate-addons-for-gutenberg/lib/ast-block-templates/classes/functions.php create mode 100644 plugins/ultimate-addons-for-gutenberg/lib/ast-block-templates/dist/fonts/ast-block-templates.eot create mode 100644 plugins/ultimate-addons-for-gutenberg/lib/ast-block-templates/dist/fonts/ast-block-templates.svg create mode 100644 plugins/ultimate-addons-for-gutenberg/lib/ast-block-templates/dist/fonts/ast-block-templates.ttf create mode 100644 plugins/ultimate-addons-for-gutenberg/lib/ast-block-templates/dist/fonts/ast-block-templates.woff create mode 100644 plugins/ultimate-addons-for-gutenberg/lib/ast-block-templates/dist/index.html create mode 100644 plugins/ultimate-addons-for-gutenberg/lib/ast-block-templates/dist/json/ast-block-templates-block-requests.json create mode 100644 plugins/ultimate-addons-for-gutenberg/lib/ast-block-templates/dist/json/ast-block-templates-blocks-1.json create mode 100644 plugins/ultimate-addons-for-gutenberg/lib/ast-block-templates/dist/json/ast-block-templates-site-requests.json create mode 100644 plugins/ultimate-addons-for-gutenberg/lib/ast-block-templates/dist/json/ast-block-templates-sites-1.json create mode 100644 plugins/ultimate-addons-for-gutenberg/lib/ast-block-templates/dist/logo.svg create mode 100644 plugins/ultimate-addons-for-gutenberg/lib/ast-block-templates/dist/main.js create mode 100644 plugins/ultimate-addons-for-gutenberg/lib/ast-block-templates/dist/placeholder.png create mode 100644 plugins/ultimate-addons-for-gutenberg/lib/ast-block-templates/dist/placeholder_200_200.png create mode 100644 plugins/ultimate-addons-for-gutenberg/lib/ast-block-templates/dist/starter-template-logo.svg create mode 100644 plugins/ultimate-addons-for-gutenberg/lib/ast-block-templates/dist/style.css create mode 100644 plugins/ultimate-addons-for-gutenberg/lib/ast-block-templates/version.json create mode 100644 plugins/ultimate-addons-for-gutenberg/lib/class-uagb-ast-block-templates.php create mode 100644 plugins/ultimate-addons-for-gutenberg/lib/gutenberg-templates/dist/main.js diff --git a/plugins/ultimate-addons-for-gutenberg/admin/assets/admin-menu-settings.js b/plugins/ultimate-addons-for-gutenberg/admin/assets/admin-menu-settings.js index 863b4896..26a23448 100644 --- a/plugins/ultimate-addons-for-gutenberg/admin/assets/admin-menu-settings.js +++ b/plugins/ultimate-addons-for-gutenberg/admin/assets/admin-menu-settings.js @@ -85,16 +85,16 @@ */ UAGBAjaxQueue.run() - $( document ).delegate( ".uagb-activate-widget", "click", UAGBAdmin._activate_widget ) - $( document ).delegate( ".uagb-deactivate-widget", "click", UAGBAdmin._deactivate_widget ) + $( document ).on( "click",".uagb-activate-widget", UAGBAdmin._activate_widget ) + $( document ).on( "click",".uagb-deactivate-widget", UAGBAdmin._deactivate_widget ) - $( document ).delegate( ".uagb-activate-all", "click", UAGBAdmin._bulk_activate_widgets ) - $( document ).delegate( ".uagb-deactivate-all", "click", UAGBAdmin._bulk_deactivate_widgets ) + $( document ).on( "click",".uagb-activate-all", UAGBAdmin._bulk_activate_widgets ) + $( document ).on( "click",".uagb-deactivate-all", UAGBAdmin._bulk_deactivate_widgets ) - $( document ).delegate( ".uag-install-theme", "click", UAGBAdmin._installNow ) - $( document ).delegate( ".uag-activate-theme", "click", UAGBAdmin._activateTheme) + $( document ).on( "click",".uag-install-theme", UAGBAdmin._installNow ) + $( document ).on( "click",".uag-activate-theme", UAGBAdmin._activateTheme) - $( document ).delegate( ".uag-file-generation", "click", UAGBAdmin._fileGeneration ) + $( document ).on( "click",".uag-file-generation", UAGBAdmin._fileGeneration ) }, diff --git a/plugins/ultimate-addons-for-gutenberg/admin/assets/images/uag-white-logo.svg b/plugins/ultimate-addons-for-gutenberg/admin/assets/images/uag-white-logo.svg new file mode 100644 index 00000000..bff43e7d --- /dev/null +++ b/plugins/ultimate-addons-for-gutenberg/admin/assets/images/uag-white-logo.svg @@ -0,0 +1,19 @@ + + + + + + + + + + + diff --git a/plugins/ultimate-addons-for-gutenberg/admin/assets/images/uagb-10.png b/plugins/ultimate-addons-for-gutenberg/admin/assets/images/uagb-10.png new file mode 100644 index 0000000000000000000000000000000000000000..982593b506a51aa96e6c4e80beacd24d6ed9a4b3 GIT binary patch literal 12609 zcmaL7byyYu6F*7{lIIZ8a5$tWA}w7@NFP!{P+FwBL2?0!11Qq6fRuCz2#AP;gokdV zTcjHlSXej!78Z6G zA@1$WmBh{2?Z87@T~E=^q})}hN-Mf$vdx|y+MmDX7W#h< z^o`e6c3Vd@qLgFAcpPOoJ^2u(519>a5BUedw`T>OK>7QDw->q!iSpe3X7@k6GDd5> zs8fvn4n%*Gi*1bwuk^Mm_~04vA>~V5MeEGY_QcZm&CSj6_msKXh?8%Xr{5}8Dhp0K zB9FS$_IkdZuPx54UXAWw%&%XsY~QT!+^p{0Z0_D%T;5z<-RvD*AD!Op?B8te-5ea> ztR7$O9^5Q$-Yjh1j4zyHW>5R4PBEjK9c_!4Uw_MrdwLg6#+J^Twoa#4uDW;6r&i7v zS5BsOwzo!x2euLOt7?L$x%3^P)4 z1f*PK9>09T{z{0$gpbvbm*u~Q=JX|{^41N!9y*%3B`7t2Yrp53GC~h&@UfWhz&Rhu zn(2B5m+W2sxxPN>j=Q?PzP{YNo;b|DzWgxdk&cDMr}Y$&)AO0ynT<7}d^+~nCCc>? zS!e@Ymo*m~yOoFBw-1hhqDughlif&kGN3A1T~-!%^Plt#-n-!I(vsHkf@blJzcT~A zO3OCgA9C~yHM7cFA4ghVG7u7)nbIYL#OvdtZC5OKc%nhgj~_*><6P>?eR)iuDvKA1 zn4$L7d_`0K-So}^GmRuX5I6WKj9CHAh5YMqY$BbZHX&_H6NJZ)=UT@LY-wdn`krT8 z<#pY?R)#6SmUa-TlI`fVAS(9&Jbn^aUOQk)S?n|eANUIf`N!wd>W(>+@335%Pwv6- z5ERQm^k(u({)jRxL?wifRAz`p4hzZsOaTi?D2s;;BCz0yP%HozLWl#qz43Ov*%NGy zH$7dLB-)=9BqTifLh>IC-v5aHU#kB&|Hu0OKfMpO4$8`YA^1N6WdDy;y#Jdwgb>nN zVvSam#lr;IO_!5n|39Ms(+B%jMRum%2jDRq51^IfK}+sPKDJ>g^)lORg9Et81tQm7 zmE~ABx2v#FZAib79*=_*`4P+vK6q;s4iG~4zZLNQKSmLe+|PMh{0a_fAsU#+=OZ3S z-hFFFfj-cSy2;08e=YKgjm`NyLf6Xzt0Xf?3tLNB7 z($-BhdFW#(S`B3le5zskFmQ(vbu~L(D+b$GN+@w&$)FAqVjm0X#zzfHXS57|Vjis; z)OTs!zf}+e){_AB3tVO1)YLwYZyjL)7cPrQ!%x}_Tz$nqLu_zBLG!!K0kT1Khhn#LJe2>R_z z@ay4f)7)`{h#Rut&E@t8k&0Hb%apx+3>GG&e89_R^mV4~c>hU2`2dlGpEGYzlnb&f z*_k-RPJ0V5n67bT;B7f@Qs%e59|UXp-Wkedg703MfAg_{2SKj_;J?1}V8;&sbzrf< zl7`P5=#tQev5z%j^VW;qGLaSfz)&e+^Vc$LxK`wAVs+%8(iN|X+w8+h|70x83#7pN z{Z1x#fexv0lUE{INeZ>PgOweLp9qy8Y(>41hP?~}`Fwg`5@zu7m~taH$+T-sU3a!V z#O^WtrIhe~Nk-|#p@D9d!MQW>b;eMwa4XR?b4Td1 z*(RiNeT28ClrMx&Gl&DVD~1!l2~hMLxP_BqiOgTGuu%=LvX%YDI_^h#POX-FIzTb% zfGG>s!#*}f&jRygK#BXh#V@h5w7(%cm5eGw&W`tHrC4nOCEQr3e6TuaAP$rwxzU43 z66Dg%``zD?*mWQd3hl7cpL+0USfj7ha`C72^yVLm%sPmu_5X041&b zCuZ1CH;iL&2W}GoC%;yHnDs?rxm5sLFZZjHkIa;?i0JhnZ`LL0deY)H(u3@l1`P5L z*GsccYT&TCH|rzO>uSfjNrM#;Z&i4(Q1giMZNP)MBl>vl2_iI6Ie%@`Ttjh+YcYgS zo*uQG$zWc63nML~Y1FQ=c&xG94`e-(2F$41Js z*I_fzz~qVRGj8A4r>v?=(9y<5Ve&@5FJs0qe;$r6@hx!N2htdMo@fq=Sp*42+KSOe zW1$^%jWgxK7lp8Z(pVc9dPkiE-rsDEQaBaYn9 zIU8}_^*9y#)c!3 zlv3nCk-@dSDdw}YxAQ-KSJ3^Bh@%crQ4p#qRCGUyB!|z$HC;8M*5cm!O}#fEXG0S5 z1RzxDydFbmzD$^Z8n!TxQ&~NJHJ~27K3DKk0gsj85$N#Xs{brjChitoeF1$-_Vk>L z1a#eXp+n(LRfyda_+(_>vpX=k+E}|}65!wri~i`sX_o{E0}hIW-LKx{wvpBqk@FxX>_KPzrk`!XSK!_bJm(bzRR$I5vA;qoRf;+T%GV1t# zPs`QbE)*n?k#}!nQWK_shXp(reTW zH7xzL5=84|GE2)MVv4@h)C}VREi}|NEOUY}49))jl7RE^v6r(}yy;zH6ea7_eJp5> z*dDj<;9}TIp4-?t$+tywWJp@j)89&x1mJM!w&cbEq&{}Lv+J1nf1OZF*%x``OS3PqYAPkN}dfrl<3wUtf1pN0AYKhE?3P1e8E|ZW&quN_7|JELeC0qm zXnlSatzWJ#I}&7}w;HT$S&{XDWb-&n;v7-EB2I+?tE2hOnI^~nIbPL!4f(}uI;ok; zwxxPN1+9v;)z#G{tn$0O^f`VLv%>VjY39?@#PXLREY@cci8 z=D~DO)MEX~f^5p#3}dw%kEZ7|RPprLk*mdQsRF!iK+D_0&e{H}CE#;7DS%VauOVHxTOd zXYm4N7%r}!J0~IYL|Az8U1mRL93f>#T=g0ys`yN@c$#MEknhTMVu|CufV<2P`=_vb z{w6*wEd7=y6;!0d_Yg$frxI1v`RjqoF+U~bYptE!CiRMUSdk0}{3Od)(eLfmUkl4p zU25x96{t=#@uY9#q26S*ge#z#;Jfc9&CTt|CxAFW!bGF)0m&$c0A zuq<7mfrbU{xe_)C=7_@p2pLBGW-m?JYhS?`3pNDRUzTcqTzkhJv*(ph*V8QqkV|J=s z7Xt1rSdWNlnrYO}75QqM-jBks@Z5)s4dvtQC$Jl`r5X#$%X!Dg9cE4*@nB6;NrcmlbP~su;lD^2qR(v7$sFYor^Q;^{%MBkPoF!Y2lZq&b%5 z7wx$31THKBMlGt4_DQV;(;KYB*!20Th8vz$9W87;GoGQ21^rQ2P`A5Z(_yDzpS%>) zx}4+ZJi^^|i>xcmq=rBao{4QWHi%Pdq8rIBKGNMM{B$R5J+(v0w|mq!NCyu@%KcEc zqc(~2HYq=_oI$xbXv8ZA>(Ce0>>bb}Vu;{%@}(0wifYw?c0=M`oHD@`#9ceqgM$(b zF<7Xm2SQz5txHDRsz~~_t2+^{IAaA^uy&kLW%M=0xv$Mm!J~o_u*TP!F$i5Otb5sBI-6(ZsS;M99(kyJR$B3RZ^8k#e#1 z6Td^(9K4!B7K5l^p2X;FQt9%_rx?3JFcDpHaZbXp4|s?-%R)GyA0vh^gX;MvBU-q? zl}iYpVPD<@V%XQwE29-OYs3L@6xsdhtI$+&I2 z_hhNCp!e&EwI}R-Tj89O`P?vIj00~w{QZz!UoXA!GnZenwXKvos}FIZ$1o!Y60v$> zv-!69hQC-6OQuWSZ;KwzTolm?X&!F=~By5Q6a6pdqF9JjFXFt z3rfnaF6Af!0%c|8hQ4HJzB_Nb>0@+o6o_lg!$F%YaE4Q8$W4cXW;WN1Gmjk$6jwg% zm7bw>iYH6>{6z9eN857-%OuFZ9l>+p{kuejemDsiP9M|jB!(g?+$-kUu;4K)3E`#% z3gSqA+-VdOuWT2ygkOpOm9r`pdtcmn6*?X+qQOQ%u4r9Gpy?c0N^c2A5FxmF zmq{Pu0Lr%E<1$?n`Rh85!QM<0dofbpKBD>;qIAGXOEHv_Eby8rgqsj>_@B$nj(Vmr61O5e`Z|&kX^1czCUU7*t|y;28h=?%Z=<^AJoEpKkD1zgoNvUA)y`f}BJ!NxA z;GLG$fxA1vJYX3N_b?=T0he zzlnwxX`)MLESzR?(F9$bT&ddEIz_wp0dWUc|9yn`@*G*u}X>jQJBa(815Y-_B}n|4KVCJUvmms^`{8kXkz{Mb<@*d?eL^W~<0QJ=4{ik|j5+KR|t>%a^L5ty!$!omd2IfdeRFqOIEkZU=C3Z z&v-z86{C_aglH()6ay$pkhR}}BVj9PTGQ`sQ|09V4H?y+vMCe@@j8KzVrq#>pL*%( z-)5{zZTD&%OcYjGApP2%l9`w|9z%=-@Znh>zCV;l57bNV$c2Xoz#H;k*+$JNTRR@A z-3)uY;b#Lu2AJG%uaw3F9P*O4i{LIKT=~mBgeMRO##3w^; zIwG`zYCe^b;UB)`^nPPht*6EA1s3q~2l1T4y>Xbvm+d8!mUEgbHv5qsjFq$vY(w#* z(e&Hn&Y-g20cGq{;;z}oc;I)!zl#s~0FNJLej-aO=!5!|Bb)X;*DysZry;Ga*R_LO zHKC>9MP-zmMQ~XvB^MgoEel|~{Tz*y&%>-99tycvr6DK8bDPVsQC6`v$`*ie&w0|7 z%3(c>ZbPeIR!?vj7?4Xb{zsT{@{dz!6@=Zc^5Y5qRX|v=a|9ZYHO3^ITCq{=#t3SX2+|588LR5{JN50~_JHlEx zkc-6*SaX%`A$LgJQ@s29>&%|Vd!^keSmWv~WWi>;!1SLl!iSL~s%0WuAw>^jYXqw| z79!V&`Z|BD&KWgF*WsdVv$`oUq0mQ*JTcmLJx$DwJUGxlwjPBPPv!ihE-xLf{kZPo z-}3r$9h$iqkI$F(BjPSFxOL5>M{16IXp8Cjx=&id`nOhJ8-vfgad#eP73{QY+FCmU z)Ni?y>+i7baE%f$prpN2V{CeKw0H-!&EiC*d_V_@O7;ekrlIeH(Is=BPRyO3{Imsi zE7>$qr*xd>mRU;SnUf@T%O|(KwEo50lvJ#6PsMJ(sS`Q6-mPTGn;(MslZzdZO%-fz zWJ;uWfxwBRPZ0+qp?gk}`1{|>4|Jffc+f8zTP0hYAp5N#TRilX1C`5#($hOAMI6*r zW|Ko0{7738h`qAsz8ReyPTc;P{A}6Dk8v|rkQu^NRzTA^vg&L`(m9F?QXmzXG27eQ zHUen@2cPPi8%%W6fr{S>UTPT;GW`99j* zJyaJ;`lFh#4)=BNANdN;?ZJqV&{2oWeWoms*@JPo?fFRW$Dk|O;+kXU6#)wG;VC6L zgJGk}fl7%=+)yys*(u3BXB8RrXePe)Ga*LqBiM~+keWHb{`XUz8gs?+r5vd>0{(8s zDf&XpLh);S?b2Hq1~m?=3-|gL=TLi6U-XjD5I)jA)0xmbcfFH5G^;_LX-EubV#1fm zqGRRH+M}^K4HDTcJNv9zfXgERBfSIB%)D6_vN4@YOW5z>?)v&b$`6J~r$K~*=T&wt zmVQHbaN&ZmKp$nHXk-~d5+_r`eSDq*kBhQTK#y)jV41?(%J(-D-CsyLg> ztkK%oyx1Y11^*<{qB&^zH%Tc{l zjyd?7Ne?AOtSeR^pnJBuyRND!C_A9J&X1|=!X7_$hm8#Bp=!+61yw$il8Ji6&2<-@ z&D5XcG%&dIe)3dRZ%=aLOBwW@Lc{7I@VX_mNRGGTQ*C-;VA6EgS<;U=HUd<_?zjvU zDc~bMJtG9m`t!q2mnEJ89T%$>&9=4^(apLp0&FQiGV}+c!C5gjM|s|^zXW~<)x3bz zT%p!zlok_M`#~fb660--FQ5AIL~i!%C^3b;6C`VnxMe8CfG*j!hOfy{G7&8agloWo zIC4kot(~9_z~^(c>B#`iptpK*Fsv5d1Km@x_o;;Mu%JSfgc4RC6Cg7wvw-6Ow;A35 zKA;UqSl6nj5$QmrSJTAYp}}x@vB#iG>ZBW1MB9{NxL-XGVE$loDg~-oGyHxAeC3^J zS4g?`8(0Q13|iKgtwNX83o+xRyb8)sC7^%=g#BYsB$664B^FCaE`LrowHAGMN9{Fg zymUwOZ{HCTSubj!798<_2!?n*s#`n?D+`h|RQ6JV}sMwkl|K{FGWN*M~9Iy&nJ@2B$3`d(7x-g3A zAX%Y~zX+Zk%yfnLy^8u;IlyBvvb*V`rx460t7sEni&_8X+ELRD8~v~|?uZSwyey@> z3s+2`+B+|;OX&uFNM-qaX1XmcdBQZ#_v2e4kMZweV%Ea;L|*ty{Gi@Seiegu{19Vv z@~|td^e~4}5{eHs?#U|~3q8i~8VV*dWJu*;j`#JGYQ^4S?94LE4D=MQW<96x(f;u( zJy{d@I?Q}Mc?T+pVp5FVPeK0_F1_w95-*|5;5su1W=02JHgPdZa00w`#GUVyPp<%1j zVY&+Xtlg&oq(ROMO+7})8_oJjXUoD9xRPg#m(B{8W4l%3j)zMV;>WlFN@Wi&nT9NG zD_}ZQgPaI6@|d+6>b*~y#fh8}U&;q;iZd0hyncIO!-vuJrC3O5DEZk#_+W+dk)BUh zg)2SUD86siyql=TEJRZ zcmTE12g|E;z{`nmy z3nBgI!j+tZzd7Vif=7EN zUW>dv!%U|el{rN?kn?W(Jv$y z^8rdaek5;=H08Em_>@+@Kyw8{nx-3aPGv-fp;GPF;3?SmxUKT*NJI+v0HRlSP09lw z73N)}UJ0IavwT-&mRb4o5}s@1$iJV$%?DV?2(r5Y3?2$oW|Non)88t{grEZ3IgpV> zis)eSpAJNW1PG2tC(DZ9b?cF}vs@i9b{lCVNagTGs+H}}Q+(vV;d|$Yc}hUm-)Nf} zM^S)}fEEKiRbobgF{+GAPw$~Jbw{s-Edai>lp$Y6)&n|L@4#N3s3LD>|530T+RS&VC zIH~jH1l#wa&+EJVUch-RDSu6n`EK14dG>1xyBwYm*v3nddjsQ0r62iHWn506Kv>MW zSWm?DkE%;9N*qawN zhldYpm(%TWSu+m#*x}Ek@4@}Y2bu^m*H~=Eqe+Z+0S`&y*W58RHMf5;!AzL&nYvp` zEVMXzjEPh|?iTmsGWi8fTlT2DzhXn;Zx^yMN=dSQwXa%(xei=aQc%EuIYwzq_^*>lzoxKqtqIq5)^xKj3t4Jc_EymVt?WwtdME33X>@gA? zep;&!)a2q60jHUwdj!NN&%bhoV5r&3+Klnx4mc*(sGA6Gi{kK<@a(oSP9JiVGkD?O zs!wmD_ka`z2{gqo$z6c8R|z3GxH?gCZv%*6aW zWMoJ;F>OVYMK+onjs;v4ZITI<6bsDwHV^H~)O+GVZG zIJ1n8Wq%NFo!82ij)|T8C*r%Yr8Y>bIDI%b5vhRf->JQ$pZk$iuC7TO2BwT;YQU8a zb8dX5`P){`YP45tzO3QQ%cfYtXNic>I_zpfn|v;*+5LLt0BMrGr4k25d&CypPMsR$ zy*Zn|xjafGK`!}!7PtO*VASXSW}XxiT zw@4cLF7FkM+%jEc?afqr1#afxlV~#ki`P4aoX?!w@FLgW^~OPuIRp-Du#s+(aM!f* zacapNQYGx0Xi`tSPZtHb`(}7s`torCu#o{~Rb#FMb9*5V))d zz2x*dql>dPdX;4Ki`Ce8W0EtG$g!IMY7+tmYloTtX;VGZNjX|C zuV+h7+9yZ#gH};|}`NLJJp|?J6 zt~6oGM}WL64$dHmL;!Cbzpq-`2(lvO(u$;jg12T2I^Ee(kZX0IT5ND`3nARe0m!I` zNH-{ZL`bA41a+=S`M*G0B2>|G$H8AugVhs*v$-o;Et#L!UOEU@qPg3hqROISOln?~ zo{@wrfSp_f{sLal@pr)%p!t<5wyx3?XLH5WR4ZrW5A%TQB0d46TZ-9P@HJ%53>n;Y z>G9ddJa<&6b)$L&K_Xe`_M(trbVAu~5%J&tSNC6djfuFF=p)8d+4(nL10zEZ^{L~4 z#ot(HN~SQ0LH@O%vszq~Q9Vc5>I=u6&UaeKmN;D>*WJ`pk|BIiR_7Bnx-#IKMMT)~X=azVd>u?veQ4 zl3(HC+a!cTx#6)~P+4Pm?5-|C-bybgx~WKg@vMea>Jl=gv9%rp_oZ}ftkd~s-1@fy_1ny^ILDO6 zFwtfxJyu#@ikxf;iYJRzNB+a0MfU8d2=KH~cSv6TFlo+o)`sfwY!z>oW_v+rQyUBu zhBgP{1+cxP)h+_%`Mx%nI)aPUafn=m+b2M`ex;ch=}7Tl4Bzu-5U^~uOoNIk_LcZ4 z=DE}{pS9zgIQe-*10bSS)K8?)m`t|OZNIY?%KDDhP2##{7iKL$u1>65PS+k7*|#HFTUc1l*@eu>Lbj^0pvWr><9N~V>)Mm!H)UCN1eK@mt%pT z-AW@ry(@fS`U{^s>12fm}MLFMQd7Q{IDD8=#B0YtnAyMT1I7}k=ze2$)SwHX^GK%;O0C2*50 zE0lA|O(;|B8Q;ilERFUDrLz- zHAay;cw#Ol3j_&89NGO3@tdJ^uX$FU$u4|S-TQ<9wI%HQABIdjnH@jF~PUZ38(WcQj2k4k1hQ~GP+L{gznKncd`U% z#E4W6e|9U)BmI_+DS~~%9*>Sq$)yA?-R(BlNwIXx{PF<$x?RA`ikSMuSu&;&ADVjj zQzg$C9+>D?JntYHfV2;|qb*H5(J5P1A~K;44;e$EdI(&I@44Ew1Vj zSPn#VWA22~obu3MBGq_{+hAqhG-y-Rlzz7?-+r-c^NNWX)2EE zA=vw6KLJ+{A1{PNhV{Bez{7v3@h~Zq_wo8of?gZ^5h@q0jwNHy68(LS^J@!~XX9sp z6OyMptv@LntvG|;lCxC{_WC1uhCwHf@NVVbhRV))gJSSkRT>5Jzp7;r!|u61nuMtw z+Y+Y*W4SB~!h=3hzYJ%vOfdIB^bVO^8%oF?+KnpzZq&pL90-z5-V5X{$xt~bIAn&@ zQzIeKq1X#kfgG(5J^hoD3u)sHk?<9=N@0j>(%n4M7isT5XgMfO5*|J4)fDX~oP>FB zUb#@HD3hl3(0;NRKyzsI|A>##Qx7ngJ`Vwc;kPl%~dsQO41)~Ua*0aZy0#cAQ3 z)YUG_XdMx;m(Co13lS<6E-bg@h)kv+F^R99ounA8_A5`3B0c3=H!WR%Hik5kw~9ky zzln1OAC)b;H;!|=?cL2I{t+nh>!XAL!$pOiyoBWGtssVG7qLpp6vhW9fvJ<9Rc19S zFl(T|R`fg@MgDn^eZlgU)pZ?nqtEu~x7UtJi;9m@2iM#u$9tZUun73iQe&RE92lty zjQT!xtSnAzO>o%X{msQv&p97?sqyvv-+eLar1S|#d-olQ`%z&))WrZl#Mmou;J#nGFKfrw&a!Zw|@~7m|1>*zVZ39X3NoSvr?}`C2!Y;Yr zf)D?mq|UflREDJt|OKCExhDC zA0+d5b&16M)p8^^_(gIhv!63!{wZrZBg3~Z=f5i22v|2xdR$p#jwI*+orFWF8}fs~ zx<9Zu?V8DMZ8oIqPO3?kT$7Yr=Qugz6-FXxGjVAa1A}Xbd+QgLcO&WP7?x!fhGeFb zJ*LMI`Nb`+OFswModo2h<649C$uP6c-n;*(uV|6b^w1Jl+qj;$3NQ2 zFnc*lNH=41{-oZrVn0NO#_BwkUH+v_v@#vHCIj({h#u>(&&Q9D`&PfBG zxRW^8aW~W3XbM$xX>>%dA5XyWnUgrBui_-=o~z2QZ0_f6v+SKl5YJyfnXdpO$|C;*vx z#;$SoU)H}2Gx4|D%`$J@RGO*&bAPl81g@V-pDn+7s1`D_qHd{`y}Go1QLS~Gqu@TkMROP*QulJNC z-;ex!$h#Okb2dKvt0QE6EkiV@RVaT2jUMOEM*X6(oAi2R(zPtc#=2))e z;1BTFg$D2bGlzYK{GafAo}!5O_05lLO);AU$u`N8*M(On2-Eia9 zOQ^^D_*bU%9se;ozqYk}LAkXhdb8Kx$MD)CE&cE_w?<1>N@7D#d&a=$eu7f%lNzbt zr=bMzr==VIQ)fM5BO)SV((2bl08{E`?j7>W#l9o+;qH)2+)YMIfpZ~EWiI~WdjH=P z!>fN$&bHSdva+5}1PJ2A*5rcmusE}GFPoRQ#Y8VJ_x88W%1SdY`##KzH&0GA<5aXK zBAX=rHWuH$dFl7k{pGzkAF}5%JHfBll@WxUx227LND>xEO^^)VPO_@yom{PKXCH?T zT_h=HJ=8y7`e)9K7nND`Li#{!mMdw6>k38cT%V#3Z=`?p?%*HJm{%#Xbh#~}#9?s6 zz9>h0yjjy>M}wao8!h{U!fm-my-D=8XXfFB1Ipj`e% G=>G)}EV0}G literal 0 HcmV?d00001 diff --git a/plugins/ultimate-addons-for-gutenberg/admin/uagb-general.php b/plugins/ultimate-addons-for-gutenberg/admin/uagb-general.php index cf9a2cb9..cf2b0c8e 100644 --- a/plugins/ultimate-addons-for-gutenberg/admin/uagb-general.php +++ b/plugins/ultimate-addons-for-gutenberg/admin/uagb-general.php @@ -23,6 +23,17 @@ $uagb_support_link_text = apply_filters( 'uagb_support_link_text', __( 'Submit a Ticket ยป', 'ultimate-addons-for-gutenberg' ) ); $has_read_write_perms = UAGB_Helper::has_read_write_permissions(); + +array_multisort( + array_map( + function( $element ) { + return $element['title']; + }, + $blocks + ), + SORT_ASC, + $blocks +); ?>
@@ -84,8 +95,33 @@ 'social-share-child', 'buttons-child', 'faq-child', + 'forms-name', + 'forms-email', + 'forms-hidden', + 'forms-phone', + 'forms-textarea', + 'forms-url', + 'forms-select', + 'forms-radio', + 'forms-checkbox', + 'forms-upload', + 'forms-toggle', + 'forms-date', + 'forms-accept', + 'post-title', + 'post-image', + 'post-button', + 'post-excerpt', + 'post-meta', + 'restaurant-menu-child', + 'content-timeline-child', + 'tabs-child', ); + if ( array_key_exists( 'extension', $info ) && $info['extension'] ) { + continue; + } + if ( in_array( $addon, $child_blocks, true ) ) { continue; } diff --git a/plugins/ultimate-addons-for-gutenberg/assets/css/blocks/columns.css b/plugins/ultimate-addons-for-gutenberg/assets/css/blocks/columns.css index 87b07cc1..0d9cb60e 100644 --- a/plugins/ultimate-addons-for-gutenberg/assets/css/blocks/columns.css +++ b/plugins/ultimate-addons-for-gutenberg/assets/css/blocks/columns.css @@ -1 +1 @@ -.uagb-columns__wrap{position:relative}.uagb-columns__wrap .uagb-columns__inner-wrap{margin-left:auto;margin-right:auto;position:relative;z-index:2}.uagb-columns__wrap .uagb-columns__overlay{height:100%;width:100%;top:0;left:0;position:absolute}.uagb-columns__wrap .uagb-columns__video-wrap{height:100%;width:100%;top:0;left:0;position:absolute;overflow:hidden;z-index:0;-webkit-transition:opacity 1s;-o-transition:opacity 1s;transition:opacity 1s}.uagb-columns__wrap .uagb-columns__video-wrap video{max-width:100%;width:100%;height:100%;margin:0;line-height:1;border:none;display:inline-block;vertical-align:baseline;-o-object-fit:cover;object-fit:cover;background-size:cover}.uagb-columns__wrap .uagb-column__wrap{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.uagb-columns__wrap .uagb-columns__shape{overflow:hidden;position:absolute;left:0;width:100%;line-height:0;direction:ltr;z-index:1}.uagb-columns__wrap .uagb-columns__shape-top{top:-3px}.uagb-columns__wrap .uagb-columns__shape-bottom{bottom:-3px}.uagb-columns__wrap .uagb-columns__shape[data-negative="false"].uagb-columns__shape-bottom{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.uagb-columns__wrap .uagb-columns__shape[data-negative="true"].uagb-columns__shape-top{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.uagb-columns__wrap .uagb-columns__shape.uagb-columns__shape-flip svg{transform:translateX(-50%) rotateY(180deg)}.uagb-columns__wrap .uagb-columns__shape svg{display:block;width:-webkit-calc(100% + 1.3px);width:calc(100% + 1.3px);position:relative;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%)}.uagb-columns__wrap .uagb-columns__shape .uagb-columns__shape-fill{fill:#333;-webkit-transform-origin:center;-ms-transform-origin:center;transform-origin:center;-webkit-transform:rotateY(0deg);transform:rotateY(0deg)}.uagb-columns__wrap .uagb-columns__shape.uagb-columns__shape-above-content{z-index:9;pointer-events:none}.uagb-columns__valign-center .uagb-column__wrap,.uagb-columns__valign-middle .uagb-column__wrap{-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.uagb-columns__valign-top .uagb-column__wrap{-webkit-box-align:flex-start;-webkit-align-items:flex-start;-ms-flex-align:flex-start;align-items:flex-start}.uagb-columns__valign-bottom .uagb-column__wrap{-webkit-box-align:flex-end;-webkit-align-items:flex-end;-ms-flex-align:flex-end;align-items:flex-end}.uagb-columns__inner-wrap{display:flex;flex-wrap:nowrap}.uagb-columns__columns-1>.uagb-column__wrap{width:100%}.uagb-columns__columns-2>.uagb-column__wrap{width:50%}.uagb-columns__columns-3>.uagb-column__wrap{width:33.33%}.uagb-columns__columns-4>.uagb-column__wrap{width:25%}.uagb-columns__columns-5>.uagb-column__wrap{width:20%}.uagb-columns__columns-6>.uagb-column__wrap{width:16.66%}.uagb-columns__gap-nogap>.wp-block[data-type="uagb/column"] .uagb-column__inner-wrap{padding:0}.uagb-columns__gap-default>.wp-block[data-type="uagb/column"] .uagb-column__inner-wrap{padding:10px}.uagb-columns__gap-narrow>.wp-block[data-type="uagb/column"] .uagb-column__inner-wrap{padding:5px}.uagb-columns__gap-extended>.wp-block[data-type="uagb/column"] .uagb-column__inner-wrap{padding:15px}.uagb-columns__gap-wide>.wp-block[data-type="uagb/column"] .uagb-column__inner-wrap{padding:20px}.uagb-columns__gap-wider>.wp-block[data-type="uagb/column"] .uagb-column__inner-wrap{padding:30px}@media (max-width: 976px){.uagb-columns__stack-tablet>.uagb-columns__columns-1>.uagb-column__wrap,.uagb-columns__stack-tablet>.uagb-columns__columns-2>.uagb-column__wrap,.uagb-columns__stack-tablet>.uagb-columns__columns-3>.uagb-column__wrap,.uagb-columns__stack-tablet>.uagb-columns__columns-4>.uagb-column__wrap,.uagb-columns__stack-tablet>.uagb-columns__columns-5>.uagb-column__wrap,.uagb-columns__stack-tablet>.uagb-columns__columns-6>.uagb-column__wrap{width:100% !important}.uagb-columns__stack-tablet>.uagb-columns__inner-wrap{display:block}.uagb-columns__reverse-tablet .uagb-columns__inner-wrap{display:flex;flex-direction:column-reverse}}@media (max-width: 767px){.uagb-columns__stack-mobile>.uagb-columns__columns-1>.uagb-column__wrap,.uagb-columns__stack-mobile>.uagb-columns__columns-2>.uagb-column__wrap,.uagb-columns__stack-mobile>.uagb-columns__columns-3>.uagb-column__wrap,.uagb-columns__stack-mobile>.uagb-columns__columns-4>.uagb-column__wrap,.uagb-columns__stack-mobile>.uagb-columns__columns-5>.uagb-column__wrap,.uagb-columns__stack-mobile>.uagb-columns__columns-6>.uagb-column__wrap{width:100% !important}.uagb-columns__stack-mobile>.uagb-columns__inner-wrap{display:block}.uagb-columns__reverse-mobile .uagb-columns__inner-wrap{display:flex;flex-direction:column-reverse}}@media (min-width: 768px) and (max-width: 1024px){.wp-block-uagb-columns.uagb-columns__wrap.uagb-columns__background-image{background-attachment:scroll}}@media (max-width: 449px){.uagb-columns__wrap .uagb-column__wrap.uagb-column__background-image{background-attachment:scroll !important}} +.uagb-columns__wrap{position:relative}.uagb-columns__wrap .uagb-columns__inner-wrap{margin-left:auto;margin-right:auto;position:relative;z-index:2}.uagb-columns__wrap .uagb-columns__overlay{height:100%;width:100%;top:0;left:0;position:absolute}.uagb-columns__wrap .uagb-columns__video-wrap{height:100%;width:100%;top:0;left:0;position:absolute;overflow:hidden;z-index:0;-webkit-transition:opacity 1s;-o-transition:opacity 1s;transition:opacity 1s}.uagb-columns__wrap .uagb-columns__video-wrap video{max-width:100%;width:100%;height:100%;margin:0;line-height:1;border:none;display:inline-block;vertical-align:baseline;-o-object-fit:cover;object-fit:cover;background-size:cover}.uagb-columns__wrap .uagb-column__wrap{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.uagb-columns__wrap .uagb-columns__shape{overflow:hidden;position:absolute;left:0;width:100%;line-height:0;direction:ltr;z-index:1}.uagb-columns__wrap .uagb-columns__shape-top{top:-3px}.uagb-columns__wrap .uagb-columns__shape-bottom{bottom:-3px}.uagb-columns__wrap .uagb-columns__shape[data-negative="false"].uagb-columns__shape-bottom{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.uagb-columns__wrap .uagb-columns__shape[data-negative="true"].uagb-columns__shape-top{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.uagb-columns__wrap .uagb-columns__shape.uagb-columns__shape-flip svg{transform:translateX(-50%) rotateY(180deg)}.uagb-columns__wrap .uagb-columns__shape svg{display:block;width:-webkit-calc(100% + 1.3px);width:calc(100% + 1.3px);position:relative;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%)}.uagb-columns__wrap .uagb-columns__shape .uagb-columns__shape-fill{fill:#333;-webkit-transform-origin:center;-ms-transform-origin:center;transform-origin:center;-webkit-transform:rotateY(0deg);transform:rotateY(0deg)}.uagb-columns__wrap .uagb-columns__shape.uagb-columns__shape-above-content{z-index:9;pointer-events:none}.uagb-columns__valign-center .uagb-column__wrap,.uagb-columns__valign-middle .uagb-column__wrap{-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.uagb-columns__valign-top .uagb-column__wrap{-webkit-box-align:flex-start;-webkit-align-items:flex-start;-ms-flex-align:flex-start;align-items:flex-start}.uagb-columns__valign-bottom .uagb-column__wrap{-webkit-box-align:flex-end;-webkit-align-items:flex-end;-ms-flex-align:flex-end;align-items:flex-end}.uagb-columns__inner-wrap{display:flex;flex-wrap:nowrap}.uagb-columns__columns-1>.uagb-column__wrap{width:100%}.uagb-columns__columns-2>.uagb-column__wrap{width:50%}.uagb-columns__columns-3>.uagb-column__wrap{width:33.33%}.uagb-columns__columns-4>.uagb-column__wrap{width:25%}.uagb-columns__columns-5>.uagb-column__wrap{width:20%}.uagb-columns__columns-6>.uagb-column__wrap{width:16.66%}.uagb-columns__gap-nogap>.wp-block[data-type="uagb/column"] .uagb-column__inner-wrap{padding:0}.uagb-columns__gap-default>.wp-block[data-type="uagb/column"] .uagb-column__inner-wrap{padding:10px}.uagb-columns__gap-narrow>.wp-block[data-type="uagb/column"] .uagb-column__inner-wrap{padding:5px}.uagb-columns__gap-extended>.wp-block[data-type="uagb/column"] .uagb-column__inner-wrap{padding:15px}.uagb-columns__gap-wide>.wp-block[data-type="uagb/column"] .uagb-column__inner-wrap{padding:20px}.uagb-columns__gap-wider>.wp-block[data-type="uagb/column"] .uagb-column__inner-wrap{padding:30px}@media (min-width: 768px) and (max-width: 1024px){.uagb-columns__stack-tablet>.uagb-columns__columns-1>.uagb-column__wrap,.uagb-columns__stack-tablet>.uagb-columns__columns-2>.uagb-column__wrap,.uagb-columns__stack-tablet>.uagb-columns__columns-3>.uagb-column__wrap,.uagb-columns__stack-tablet>.uagb-columns__columns-4>.uagb-column__wrap,.uagb-columns__stack-tablet>.uagb-columns__columns-5>.uagb-column__wrap,.uagb-columns__stack-tablet>.uagb-columns__columns-6>.uagb-column__wrap{width:100% !important}.uagb-columns__stack-tablet>.uagb-columns__inner-wrap{display:block}.uagb-columns__stack-tablet.uagb-columns__reverse-tablet .uagb-columns__inner-wrap{display:flex;flex-direction:column-reverse}.uagb-columns__reverse-tablet .uagb-columns__inner-wrap{display:flex;flex-direction:row-reverse}}@media (max-width: 767px){.uagb-columns__stack-mobile>.uagb-columns__columns-1>.uagb-column__wrap,.uagb-columns__stack-mobile>.uagb-columns__columns-2>.uagb-column__wrap,.uagb-columns__stack-mobile>.uagb-columns__columns-3>.uagb-column__wrap,.uagb-columns__stack-mobile>.uagb-columns__columns-4>.uagb-column__wrap,.uagb-columns__stack-mobile>.uagb-columns__columns-5>.uagb-column__wrap,.uagb-columns__stack-mobile>.uagb-columns__columns-6>.uagb-column__wrap{width:100% !important}.uagb-columns__stack-mobile>.uagb-columns__inner-wrap{display:block}.uagb-columns__stack-mobile.uagb-columns__reverse-mobile .uagb-columns__inner-wrap{display:flex;flex-direction:column-reverse}.uagb-columns__reverse-mobile .uagb-columns__inner-wrap{display:flex;flex-direction:row-reverse}}@media (min-width: 768px) and (max-width: 1024px){.wp-block-uagb-columns.uagb-columns__wrap.uagb-columns__background-image{background-attachment:scroll}}@media (max-width: 449px){.uagb-columns__wrap .uagb-column__wrap.uagb-column__background-image{background-attachment:scroll !important}} diff --git a/plugins/ultimate-addons-for-gutenberg/assets/css/blocks/forms.css b/plugins/ultimate-addons-for-gutenberg/assets/css/blocks/forms.css new file mode 100644 index 00000000..2b96ada4 --- /dev/null +++ b/plugins/ultimate-addons-for-gutenberg/assets/css/blocks/forms.css @@ -0,0 +1 @@ +.uagb-forms__outer-wrap .uagb-forms-main-form input:not([type=checkbox]):not([type=radio]):not([type=file]),.uagb-forms__outer-wrap .uagb-forms-main-form textarea,.uagb-forms__outer-wrap .uagb-forms-main-form select{width:100%}.uagb-forms__outer-wrap .uagb-forms-main-form .uagb-form-phone-country{width:23%;margin-right:5px}.uagb-forms__outer-wrap .uagb-forms-main-form input.uagb-forms-phone-input.uagb-forms-input{width:75% !important}.uagb-forms__outer-wrap .uagb-forms-main-form .required:after{content:" *";color:#ff0000}.uagb-forms__outer-wrap .uagb-forms-main-form .uagb-forms-form-hidden-data{display:none}.uagb-forms__outer-wrap .uagb-forms-submit-message-hide{display:none}.uagb-forms__outer-wrap .uagb-forms-success-message{padding:20px 20px}.uagb-forms__outer-wrap .uagb-forms-failed-message{padding:20px 20px}.uagb-forms__outer-wrap span.components-spinner{float:none}.uagb-forms__outer-wrap .uag-col-2-wrap{display:grid;grid-template-columns:1fr 1fr;column-gap:15px}.uagb-forms__outer-wrap .uag-col-3-wrap{display:grid;grid-template-columns:1fr 1fr 1fr;column-gap:15px}.uagb-forms__outer-wrap .uag-col-4-wrap{display:grid;grid-template-columns:1fr 1fr 1fr 1fr;column-gap:15px}.uagb-forms-radio-wrap input[type=radio]:checked+label:before{content:" ";line-height:1.2;box-shadow:inset 0px 0px 0px 4px #fafafa}.uagb-forms-radio-wrap input[type=radio]+label:before{box-sizing:content-box;content:'';border-radius:100%;display:inline-block;vertical-align:middle;margin-right:10px;margin-bottom:5px;text-align:center;line-height:1.2}select:after,select:before{padding:10px}.uagb-forms-radio-wrap input[type=radio],.uagb-forms-checkbox-wrap input[type=checkbox],.uagb-forms-accept-wrap input[type=checkbox]{display:none}.uagb-forms-checkbox-wrap input[type=checkbox]:checked+label:before,.uagb-forms-accept-wrap input[type=checkbox]:checked+label:before{content:"\2714";line-height:1.2}.uagb-forms-checkbox-wrap input[type=checkbox]+label:before,.uagb-forms-accept-wrap input[type=checkbox]+label:before{box-sizing:content-box;display:inline-block;vertical-align:middle;margin-right:10px;margin-bottom:5px;text-align:center;line-height:1.2;content:" "}.uagb-forms__small-btn .uagb-forms-main-submit-button{padding:5px 10px}.uagb-forms__medium-btn .uagb-forms-main-submit-button{padding:12px 24px}.uagb-forms__large-btn .uagb-forms-main-submit-button{padding:20px 30px}.uagb-forms__extralarge-btn .uagb-forms-main-submit-button{padding:30px 65px}.uagb-forms__full-btn .uagb-forms-main-submit-button{padding:10px 15px;width:100%}.uagb-forms__outer-wrap .uagb-switch{position:relative;display:inline-block;width:50px;height:25px}.uagb-forms__outer-wrap .uagb-switch input{opacity:0;width:0;height:0}.uagb-forms__outer-wrap .uagb-slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;-webkit-transition:.4s;background-color:#ffffff;transition:.4s}.uagb-forms__outer-wrap .uagb-slider:before{position:absolute;content:"";height:20px;width:20px;left:4px;top:3px;bottom:3px;background-color:#000000;-webkit-transition:.4s;transition:.4s}.uagb-forms__outer-wrap .uagb-switch input:checked+.uagb-slider:before{background-color:#ffffff;-webkit-transform:translateX(22px);-ms-transform:translateX(22px);transform:translateX(22px)}.uagb-forms__outer-wrap .uagb-slider.round{border-radius:34px}.uagb-forms__outer-wrap .uagb-slider.round:before{border-radius:50%} diff --git a/plugins/ultimate-addons-for-gutenberg/assets/css/blocks/post.css b/plugins/ultimate-addons-for-gutenberg/assets/css/blocks/post.css index 971be0b6..fd84b3bd 100644 --- a/plugins/ultimate-addons-for-gutenberg/assets/css/blocks/post.css +++ b/plugins/ultimate-addons-for-gutenberg/assets/css/blocks/post.css @@ -1 +1 @@ -.uagb-post-grid{margin:0;position:relative}.uagb-post-grid .uagb-post__load-more-wrap{width:100%}.uagb-post-grid .uagb-post__load-more-wrap .uagb-post-pagination-button{cursor:pointer}.uagb-post-grid .uagb-post__load-more-wrap a{color:inherit}.uagb-post-grid .is-grid article{float:left;display:inline-block}.uagb-post-grid .uagb-post__items{display:flex;-ms-flex-wrap:wrap;-webkit-flex-wrap:wrap;flex-wrap:wrap}.uagb-post-grid .is-grid.uagb-post__equal-height .uagb-post__inner-wrap{height:100%}.uagb-post-grid .is-masonry .uagb-post__inner-wrap{height:auto}.uagb-post-grid .uagb-post__inner-wrap>p{display:none}.uagb-post-grid .uagb-post__author span,.uagb-post-grid .uagb-post__comment span,.uagb-post-grid .uagb-post__taxonomy span,.uagb-post-grid .uagb-post__date span{font-size:inherit;line-height:inherit;width:inherit;height:inherit;margin-right:4px}.uagb-post-grid .uagb-post__columns-8 article{width:12.5%}.uagb-post-grid .uagb-post__columns-7 article{width:14.28%}.uagb-post-grid .uagb-post__columns-6 article{width:16.66%}.uagb-post-grid .uagb-post__columns-5 article{width:20%}.uagb-post-grid .uagb-post__columns-4 article{width:25%}.uagb-post-grid .uagb-post__columns-3 article{width:33.2%}.uagb-post-grid .uagb-post__columns-2 article{width:50%}.uagb-post-grid .uagb-post__columns-1 article{width:100%}@media only screen and (max-width: 600px){.uagb-post-grid div[class*="columns"].is-grid{grid-template-columns:1fr}}.uagb-post-grid .uagb-post__image img{display:block;width:100%}.uagb-post-grid .uagb-post__text{text-align:left;box-sizing:border-box}.uagb-post-grid .uagb-post__title{margin-top:0;margin-bottom:15px;word-break:break-word}.uagb-post-grid .uagb-post__title a{color:inherit;box-shadow:none;transition:.3s ease;text-decoration:none}.uagb-post-grid .uagb-post__title a:hover{text-decoration:none}.uagb-post-grid .uagb-post__title a:focus{text-decoration:none}.uagb-post-grid .uagb-post__title a:active{text-decoration:none}.uagb-post-grid .uagb-post-grid-byline{text-transform:uppercase;font-size:11px;letter-spacing:1px;margin-bottom:15px}.uagb-post-grid .uagb-post__text .uagb-post-grid-byline>*{margin-right:10px}.uagb-post-grid .uagb-post-grid-byline a,.uagb-post-grid .uagb-post-grid-byline a:focus,.uagb-post-grid .uagb-post-grid-byline a:active{color:inherit;font-size:inherit}.uagb-post-grid .uagb-post__title a,.uagb-post-grid .uagb-post__title a:focus,.uagb-post-grid .uagb-post__title a:active{color:inherit;font-size:inherit}.uagb-post-grid .uagb-post__author,.uagb-post-grid .uagb-post__date{display:inline-block;word-break:break-all}.uagb-post-grid .uagb-post__author:not(:last-child):after,.uagb-post-grid .uagb-post__date:not(:last-child):after{content:"\B7";vertical-align:middle;margin:0 5px;line-height:1}.uagb-post-grid .uagb-post__comment,.uagb-post-grid .uagb-post__taxonomy{display:inline-block}.uagb-post-grid .uagb-post__author a{box-shadow:none}.uagb-post-grid .uagb-post__author a:hover{color:inherit;box-shadow:0 -1px 0 inset}.uagb-post-grid .uagb-post__excerpt{margin-bottom:25px;word-break:break-word}.uagb-post-grid .uagb-post__text p{margin:0 0 15px 0}.uagb-post-grid .uagb-post__text p:last-of-type{margin-bottom:0}.uagb-post-grid .uagb-post__cta{border:none;display:inline-block}.uagb-post-grid .uagb-post__link{display:inline-block;box-shadow:none;transition:.3s ease;font-weight:bold;color:inherit;text-decoration:none;padding:5px 10px}.uagb-post-grid .uagb-post__excerpt div+p{margin-top:15px}.uagb-post-grid .uagb-post__excerpt p{color:inherit}.uagb-post-grid .uagb-post__link-complete-box{position:absolute;top:0;left:0;width:100%;height:100%;z-index:11}.uagb-post__image-position-background .uagb-post__text{opacity:1;position:relative;z-index:10;overflow:hidden;width:100%}.uagb-post__image-position-background .uagb-post__inner-wrap{position:relative;width:100%}.uagb-post__image-position-background .uagb-post__image img{position:absolute;width:auto;height:auto;min-width:100%;max-width:none;left:50%;top:50%;transform:translate(-50%, -50%);min-height:100%}.uagb-post__image-position-background .uagb-post__image{background-size:cover;background-repeat:no-repeat;background-position:center;overflow:hidden;text-align:center;position:relative}.uagb-post__image-position-background .uagb-post__image{position:absolute;left:0;top:0;width:100%;height:100%;z-index:2}.uagb-post__image-position-background .uagb-post__image::before{content:'';position:absolute;left:0;top:0;width:100%;height:100%;z-index:1;background-color:rgba(255,255,255,0.5)}.uagb-post-grid[data-equal-height="yes"] .uagb-post__inner-wrap{display:inline-block;height:100%}.uagb-post__arrow-outside.uagb-post-grid .slick-prev{left:-45px;z-index:1}[dir="rtl"] .uagb-post__arrow-outside.uagb-post-grid .slick-prev{left:auto;right:-45px}.uagb-post__arrow-outside.uagb-post-grid .slick-next{right:-45px}[dir="rtl"] .uagb-post__arrow-outside.uagb-post-grid .slick-next{left:-45px;right:auto}.uagb-post__arrow-inside.uagb-post-grid .slick-prev{left:25px;z-index:1}[dir="rtl"] .uagb-post__arrow-inside.uagb-post-grid .slick-prev{left:auto;right:25px}.uagb-post__arrow-inside.uagb-post-grid .slick-next{right:25px}[dir="rtl"] .uagb-post__arrow-inside.uagb-post-grid .slick-next{left:25px;right:auto}.uagb-post-grid .is-grid article,.uagb-post-grid .is-masonry article,.uagb-post-grid .is-carousel article{box-sizing:border-box}@media (max-width: 976px){.uagb-post__arrow-outside.uagb-post-grid .slick-prev{left:15px;z-index:1}[dir="rtl"] .uagb-post__arrow-outside.uagb-post-grid .slick-prev{left:auto;right:15px}.uagb-post__arrow-outside.uagb-post-grid .slick-next{right:15px}[dir="rtl"] .uagb-post__arrow-outside.uagb-post-grid .slick-next{left:15px;right:auto}.uagb-post-grid .uagb-post__columns-tablet-1 article{width:100%}.uagb-post-grid .uagb-post__columns-tablet-2 article{width:50%}.uagb-post-grid .uagb-post__columns-tablet-3 article{width:33.2%}.uagb-post-grid .uagb-post__columns-tablet-4 article{width:25%}.uagb-post-grid .uagb-post__columns-tablet-5 article{width:20%}.uagb-post-grid .uagb-post__columns-tablet-6 article{width:16.66%}.uagb-post-grid .uagb-post__columns-tablet-7 article{width:14.28%}.uagb-post-grid .uagb-post__columns-tablet-8 article{width:12.5%}}@media (max-width: 767px){.uagb-post-grid .uagb-post__columns-mobile-1 article{width:100%}.uagb-post-grid .uagb-post__columns-mobile-2 article{width:50%}.uagb-post-grid .uagb-post__columns-mobile-3 article{width:33.2%}.uagb-post-grid .uagb-post__columns-mobile-4 article{width:25%}.uagb-post-grid .uagb-post__columns-mobile-5 article{width:20%}.uagb-post-grid .uagb-post__columns-mobile-6 article{width:16.66%}.uagb-post-grid .uagb-post__columns-tablet-7 article{width:14.28%}.uagb-post-grid .uagb-post__columns-tablet-8 article{width:12.5%}}.entry .entry-content .uagb-post-grid a{text-decoration:none}.uagb-post-pagination-wrap a.page-numbers,.uagb-post-pagination-wrap span.page-numbers.current{padding:5px 10px;margin:0;display:inline-block}.uagb-post-grid .uagb-post-inf-loader{margin:0 auto;min-height:58px;line-height:58px;width:160px;text-align:center}.uagb-post-grid .uagb-post-inf-loader div{width:18px;height:18px;background-color:#0085ba;-webkit-border-radius:100%;border-radius:100%;display:inline-block;-webkit-animation:sk-bouncedelay 1.4s infinite ease-in-out both;animation:sk-bouncedelay 1.4s infinite ease-in-out both}.uagb-post-grid .uagb-post-inf-loader .uagb-post-loader-1{-webkit-animation-delay:-0.32s;animation-delay:-0.32s}.uagb-post-grid .uagb-post-inf-loader .uagb-post-loader-2{-webkit-animation-delay:-0.16s;animation-delay:-0.16s}@-webkit-keyframes sk-bouncedelay{0%,80%,100%{-webkit-transform:scale(0);transform:scale(0)}40%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes sk-bouncedelay{0%,80%,100%{-webkit-transform:scale(0);transform:scale(0)}40%{-webkit-transform:scale(1);transform:scale(1)}} +.uagb-post-grid{margin:0;position:relative}.uagb-post-grid .uagb-post__load-more-wrap{width:100%}.uagb-post-grid .uagb-post__load-more-wrap .uagb-post-pagination-button{cursor:pointer}.uagb-post-grid .uagb-post__load-more-wrap a{color:inherit}.uagb-post-grid .is-grid article{float:left;display:inline-block}.uagb-post-grid .uagb-post__items{display:flex;-ms-flex-wrap:wrap;-webkit-flex-wrap:wrap;flex-wrap:wrap}.uagb-post-grid .is-grid.uagb-post__equal-height .uagb-post__inner-wrap{height:100%}.uagb-post-grid .is-masonry .uagb-post__inner-wrap{height:auto}.uagb-post-grid .uagb-post__inner-wrap>p{display:none}.uagb-post-grid .uagb-post__author span,.uagb-post-grid .uagb-post__comment span,.uagb-post-grid .uagb-post__taxonomy span,.uagb-post-grid .uagb-post__date span{font-size:inherit;line-height:inherit;width:inherit;height:inherit;margin-right:4px}.uagb-post-grid .uagb-post__columns-8 article{width:12.5%}.uagb-post-grid .uagb-post__columns-7 article{width:14.28%}.uagb-post-grid .uagb-post__columns-6 article{width:16.66%}.uagb-post-grid .uagb-post__columns-5 article{width:20%}.uagb-post-grid .uagb-post__columns-4 article{width:25%}.uagb-post-grid .uagb-post__columns-3 article{width:33.2%}.uagb-post-grid .uagb-post__columns-2 article{width:50%}.uagb-post-grid .uagb-post__columns-1 article{width:100%}@media only screen and (max-width: 600px){.uagb-post-grid div[class*="columns"].is-grid{grid-template-columns:1fr}}.uagb-post-grid .uagb-post__image img{display:block;width:100%}.uagb-post-grid .uagb-post__image{margin-bottom:15px}.uagb-post-grid .uagb-post__title{margin-top:0;margin-bottom:15px;word-break:break-word}.uagb-post-grid .uagb-post__title a{color:inherit;box-shadow:none;transition:.3s ease;text-decoration:none}.uagb-post-grid .uagb-post__title a:hover{text-decoration:none}.uagb-post-grid .uagb-post__title a:focus{text-decoration:none}.uagb-post-grid .uagb-post__title a:active{text-decoration:none}.uagb-post-grid .uagb-post-grid-byline{text-transform:uppercase;font-size:11px;letter-spacing:1px;margin-bottom:15px}.uagb-post-grid .uagb-post-grid-byline>*{margin-right:10px}.uagb-post-grid .uagb-post-grid-byline a,.uagb-post-grid .uagb-post-grid-byline a:focus,.uagb-post-grid .uagb-post-grid-byline a:active{color:inherit;font-size:inherit}.uagb-post-grid .uagb-post__title a,.uagb-post-grid .uagb-post__title a:focus,.uagb-post-grid .uagb-post__title a:active{color:inherit;font-size:inherit}.uagb-post-grid .uagb-post__author,.uagb-post-grid .uagb-post__date{display:inline-block;word-break:break-all}.uagb-post-grid .uagb-post__author:not(:last-child):after,.uagb-post-grid .uagb-post__date:not(:last-child):after{content:"\B7";vertical-align:middle;margin:0 5px;line-height:1}.uagb-post-grid .uagb-post__comment,.uagb-post-grid .uagb-post__taxonomy{display:inline-block}.uagb-post-grid .uagb-post__author a{box-shadow:none}.uagb-post-grid .uagb-post__author a:hover{color:inherit;box-shadow:0 -1px 0 inset}.uagb-post-grid .uagb-post__excerpt{margin-bottom:25px;word-break:break-word}.uagb-post-grid .uagb-post__inner-wrap p{margin:0 0 15px 0}.uagb-post-grid .uagb-post__inner-wrap p:last-of-type{margin-bottom:0}.uagb-post-grid .uagb-post__cta{border:none;display:inline-block}.uagb-post-grid .uagb-post__link{display:inline-block;box-shadow:none;transition:.3s ease;font-weight:bold;color:inherit;text-decoration:none;padding:5px 10px}.uagb-post-grid .uagb-post__excerpt div+p{margin-top:15px}.uagb-post-grid .uagb-post__excerpt p{color:inherit}.uagb-post-grid .uagb-post__link-complete-box{position:absolute;top:0;left:0;width:100%;height:100%;z-index:11}.uagb-post__image-position-background .uagb-post__text{opacity:1;position:relative;z-index:10;overflow:hidden;width:100%}.uagb-post__image-position-background .uagb-post__inner-wrap{position:relative;width:100%}.uagb-post__image-position-background .uagb-post__image img{position:absolute;width:auto;height:auto;min-width:100%;max-width:none;left:50%;top:50%;transform:translate(-50%, -50%);min-height:100%}.uagb-post__image-position-background .uagb-post__image{background-size:cover;background-repeat:no-repeat;background-position:center;overflow:hidden;text-align:center;position:relative}.uagb-post__image-position-background .uagb-post__image{position:absolute;left:0;top:0;width:100%;height:100%;z-index:2}.uagb-post__image-position-background .uagb-post__image::before{content:'';position:absolute;left:0;top:0;width:100%;height:100%;z-index:1;background-color:rgba(255,255,255,0.5)}.uagb-post-grid[data-equal-height="yes"] .uagb-post__inner-wrap{display:inline-block;height:100%}.uagb-post__arrow-outside.uagb-post-grid .slick-prev{left:-45px;z-index:1}[dir="rtl"] .uagb-post__arrow-outside.uagb-post-grid .slick-prev{left:auto;right:-45px}.uagb-post__arrow-outside.uagb-post-grid .slick-next{right:-45px}[dir="rtl"] .uagb-post__arrow-outside.uagb-post-grid .slick-next{left:-45px;right:auto}.uagb-post__arrow-inside.uagb-post-grid .slick-prev{left:25px;z-index:1}[dir="rtl"] .uagb-post__arrow-inside.uagb-post-grid .slick-prev{left:auto;right:25px}.uagb-post__arrow-inside.uagb-post-grid .slick-next{right:25px}[dir="rtl"] .uagb-post__arrow-inside.uagb-post-grid .slick-next{left:25px;right:auto}.uagb-post-grid .is-grid article,.uagb-post-grid .is-masonry article,.uagb-post-grid .is-carousel article{box-sizing:border-box}@media (max-width: 976px){.uagb-post__arrow-outside.uagb-post-grid .slick-prev{left:15px;z-index:1}[dir="rtl"] .uagb-post__arrow-outside.uagb-post-grid .slick-prev{left:auto;right:15px}.uagb-post__arrow-outside.uagb-post-grid .slick-next{right:15px}[dir="rtl"] .uagb-post__arrow-outside.uagb-post-grid .slick-next{left:15px;right:auto}.uagb-post-grid .uagb-post__columns-tablet-1 article{width:100%}.uagb-post-grid .uagb-post__columns-tablet-2 article{width:50%}.uagb-post-grid .uagb-post__columns-tablet-3 article{width:33.2%}.uagb-post-grid .uagb-post__columns-tablet-4 article{width:25%}.uagb-post-grid .uagb-post__columns-tablet-5 article{width:20%}.uagb-post-grid .uagb-post__columns-tablet-6 article{width:16.66%}.uagb-post-grid .uagb-post__columns-tablet-7 article{width:14.28%}.uagb-post-grid .uagb-post__columns-tablet-8 article{width:12.5%}}@media (max-width: 767px){.uagb-post-grid .uagb-post__columns-mobile-1 article{width:100%}.uagb-post-grid .uagb-post__columns-mobile-2 article{width:50%}.uagb-post-grid .uagb-post__columns-mobile-3 article{width:33.2%}.uagb-post-grid .uagb-post__columns-mobile-4 article{width:25%}.uagb-post-grid .uagb-post__columns-mobile-5 article{width:20%}.uagb-post-grid .uagb-post__columns-mobile-6 article{width:16.66%}.uagb-post-grid .uagb-post__columns-tablet-7 article{width:14.28%}.uagb-post-grid .uagb-post__columns-tablet-8 article{width:12.5%}}.entry .entry-content .uagb-post-grid a{text-decoration:none}.uagb-post-pagination-wrap a.page-numbers,.uagb-post-pagination-wrap span.page-numbers.current{padding:5px 10px;margin:0;display:inline-block}.uagb-post-grid .uagb-post-inf-loader{margin:0 auto;min-height:58px;line-height:58px;width:160px;text-align:center}.uagb-post-grid .uagb-post-inf-loader div{width:18px;height:18px;background-color:#0085ba;-webkit-border-radius:100%;border-radius:100%;display:inline-block;-webkit-animation:sk-bouncedelay 1.4s infinite ease-in-out both;animation:sk-bouncedelay 1.4s infinite ease-in-out both}.uagb-post-grid .uagb-post-inf-loader .uagb-post-loader-1{-webkit-animation-delay:-0.32s;animation-delay:-0.32s}.uagb-post-grid .uagb-post-inf-loader .uagb-post-loader-2{-webkit-animation-delay:-0.16s;animation-delay:-0.16s}@-webkit-keyframes sk-bouncedelay{0%,80%,100%{-webkit-transform:scale(0);transform:scale(0)}40%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes sk-bouncedelay{0%,80%,100%{-webkit-transform:scale(0);transform:scale(0)}40%{-webkit-transform:scale(1);transform:scale(1)}} diff --git a/plugins/ultimate-addons-for-gutenberg/assets/css/blocks/price-list.css b/plugins/ultimate-addons-for-gutenberg/assets/css/blocks/price-list.css index 36ab5645..49be0d36 100644 --- a/plugins/ultimate-addons-for-gutenberg/assets/css/blocks/price-list.css +++ b/plugins/ultimate-addons-for-gutenberg/assets/css/blocks/price-list.css @@ -1 +1 @@ -.uagb-rest_menu__wrap{position:relative;padding-left:5px;padding-right:5px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.uagb-rest_menu__wrap,.uagb-rest_menu__wrap *{-webkit-transition:all 0.2s;-o-transition:all 0.2s;transition:all 0.2s}.uagb-rm__image img,.slick-slide .uagb-rm__image img{display:inline-block;box-sizing:content-box}.uagb-rm__title,.uagb-rm__price{display:inline-block}.uagb-rm__desc{margin-bottom:15px;font-style:italic}.uagb-rm__content{overflow:hidden;text-align:left;word-break:break-word;padding:15px;border-radius:inherit;position:relative;padding:5px}.uagb-rm__image-position-left .uagb-rm__content,.uagb-rm__image-position-right .uagb-rm__content{display:-ms-flexbox;-js-display:flex;display:flex}.uagb-rm-details{display:table;width:100%}.uagb-rm__title-wrap,.uagb-rm__price-wrap{display:table-cell}.uagb-rm__title-wrap,.uagb-rm__image-position-left.uagb-rm__align-center .uagb-rm__price-wrap,.uagb-rm__image-position-right.uagb-rm__align-center .uagb-rm__price-wrap{width:85%}.uagb-rm__price-wrap,.uagb-rm__image-position-left.uagb-rm__align-center .uagb-rm__price-wrap,.uagb-rm__image-position-right.uagb-rm__align-center .uagb-rm__price-wrap{width:15%}.uagb-rm__title,.uagb-rm__price{display:block}.uagb-rm__align-center .uagb-rm-details,.uagb-rm__align-center .uagb-rm__title-wrap,.uagb-rm__align-center .uagb-rm__price-wrap{display:block;width:100%}.uagb-rm__image-aligned-middle .uagb-rm__image-content{-ms-flex-item-align:center;align-self:center}.uagb-rm__image{overflow:hidden}.uagb-rm__title{margin-bottom:5px;font-size:20px}.uagb-rm__price{font-style:italic;text-align:right}.uagb-rm__image-position-center.uagb-rm__align-center .uagb-rm-details,.uagb-rm__image-position-center.uagb-rm__align-center .uagb-rm__title-wrap,.uagb-rm__image-position-center.uagb-rm__align-center .uagb-rm__price-wrap{display:block;width:100%;text-align:center}.uagb-rm__align-center .uagb-rm__price{text-align:center}.uagb-rm__align-right .uagb-rm-details{display:flex;width:100%;flex-direction:row-reverse}.uagb-rm__align-right .uagb-rm__price{text-align:left}.uagb-rm__align-left .uagb-rm__price{text-align:right}.uagb-rm__image-position-left.uagb-rm__align-left .uagb-rm__price,.uagb-rm__image-position-left.uagb-rm__align-right .uagb-rm__price,.uagb-rm__image-position-left.uagb-rm__align-center .uagb-rm__price{text-align:right}.uagb-rm__image-position-left.uagb-rm__align-left .uagb-rm-details,.uagb-rm__image-position-left.uagb-rm__align-right .uagb-rm-details,.uagb-rm__image-position-left.uagb-rm__align-center .uagb-rm-details{display:flex;flex-direction:unset;text-align:left}.uagb-rm__image-position-left.uagb-rm__align-left .uagb-rm__title-wrap,.uagb-rm__image-position-left.uagb-rm__align-right .uagb-rm__title-wrap,.uagb-rm__image-position-left.uagb-rm__align-center .uagb-rm__title-wrap,.uagb-rm__image-position-left.uagb-rm__align-left .uagb-rm__image-content,.uagb-rm__image-position-left.uagb-rm__align-right .uagb-rm__image-content,.uagb-rm__image-position-left.uagb-rm__align-center .uagb-rm__image-content{text-align:left}.uagb-rm__image-position-right.uagb-rm__align-left .uagb-rm-details,.uagb-rm__image-position-right.uagb-rm__align-right .uagb-rm-details,.uagb-rm__image-position-right.uagb-rm__align-center .uagb-rm-details{display:flex;flex-direction:row-reverse;text-align:right}.uagb-rm__image-position-right.uagb-rm__align-left .uagb-rm__price,.uagb-rm__image-position-right.uagb-rm__align-right .uagb-rm__price,.uagb-rm__image-position-right.uagb-rm__align-center .uagb-rm__price{text-align:left}.uagb-rm__image-position-right.uagb-rm__align-left .uagb-rm__title-wrap,.uagb-rm__image-position-right.uagb-rm__align-right .uagb-rm__title-wrap,.uagb-rm__image-position-right.uagb-rm__align-center .uagb-rm__title-wrap,.uagb-rm__image-position-right.uagb-rm__align-left .uagb-rm__image-content,.uagb-rm__image-position-right.uagb-rm__align-right .uagb-rm__image-content,.uagb-rm__image-position-right.uagb-rm__align-center .uagb-rm__image-content{text-align:right}.uagb-rest_menu__outer-wrap{position:relative}.uagb-rm__overlay{height:100%;width:100%;top:0;left:0;position:absolute;background:transparent}.uagb-tm-parent{padding:30px}.uagb-rm__text-wrap{position:relative;display:block;width:100%}.uagb-rest_menu__wrap{position:relative}.uagb-rest_menu__outer-wrap:after{content:"";display:block;clear:both}.uagb-rm__separator-parent{line-height:0em;margin-left:0;margin-right:0;margin-bottom:10px;-js-display:flex;display:-webkit-flex;display:-moz-flexbox;display:flex}.uagb-rm__separator{width:100%;border-top-width:1px;border-top-color:#b2b4b5;border-top-style:inherit}.uagb-rm__image-position-left .uagb-rm__image{margin-right:10px}.uagb-rm__image-position-right .uagb-rm__image{margin-left:10px}@media (max-width: 976px){.uagb-rm__image-position-left.uagb-rm-stacked-tablet .uagb-rm__content,.uagb-rm__image-position-right.uagb-rm-stacked-tablet .uagb-rm__content{display:block;-js-display:block;display:block}.uagb-rm__image-position-right.uagb-rm-stacked-tablet.uagb-rm-reverse-order-tablet .uagb-rm__content{display:-webkit-box;display:-ms-flexbox;-js-display:flex;display:-webkit-flex;display:-moz-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;-webkit-flex-direction:column-reverse;-moz-box-orient:vertical;-moz-box-direction:reverse;flex-direction:column-reverse}.uagb-rm__image-position-right.uagb-rm-stacked-tablet.uagb-rm__image-aligned-middle .uagb-rm__image-content{align-self:flex-end}.uagb-rm__image-position-left.uagb-rm-stacked-tablet.uagb-rm__image-aligned-middle .uagb-rm__image-content{align-self:flex-start}}@media (max-width: 767px){.uagb-rm__image-position-left.uagb-rm-stacked-mobile .uagb-rm__content,.uagb-rm__image-position-right.uagb-rm-stacked-mobile .uagb-rm__content{display:block;-js-display:block;display:block}.uagb-rm__image-position-right.uagb-rm-stacked-mobile.uagb-rm-reverse-order-mobile .uagb-rm__content{display:-webkit-box;display:-ms-flexbox;-js-display:flex;display:-webkit-flex;display:-moz-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;-webkit-flex-direction:column-reverse;-moz-box-orient:vertical;-moz-box-direction:reverse;flex-direction:column-reverse}.uagb-rest_menu__wrap.uagb-rm__mobile-column-3{width:33%;float:left;padding-left:10px;padding-right:10px}.uagb-rest_menu__wrap.uagb-rm__mobile-column-2{width:50%;float:left;padding-left:10px;padding-right:10px}.uagb-rest_menu__wrap.uagb-rm__mobile-column-1{width:100%;float:left;padding-left:10px;padding-right:10px}.uagb-rm__image-position-right.uagb-rm-stacked-mobile.uagb-rm__image-aligned-middle .uagb-rm__image-content{align-self:flex-end}.uagb-rm__image-position-left.uagb-rm-stacked-mobile.uagb-rm__image-aligned-middle .uagb-rm__image-content{align-self:flex-start}}.uagb-rest_menu__wrap.uagb-rm__desk-column-3{display:block;width:33%;float:left;width:calc(100% / 3);padding-left:10px;padding-right:10px}.uagb-rest_menu__wrap.uagb-rm__desk-column-2{display:block;width:49%;float:left;padding-left:10px;padding-right:10px}.uagb-rest_menu__wrap.uagb-rm__desk-column-1{display:block;width:100%;float:left;padding-left:10px;padding-right:10px}@media (max-width: 976px){.uagb-rm__tablet-column-3.uagb-rest_menu__wrap{width:33%;float:left;padding-left:10px;padding-right:10px}.uagb-rm__tablet-column-2.uagb-rest_menu__wrap{width:50%;float:left;padding-left:10px;padding-right:10px}.uagb-rm__tablet-column-1.uagb-rest_menu__wrap{width:100%;float:left;padding-left:10px;padding-right:10px}} +.uagb-rest_menu__wrap{position:relative;padding-left:5px;padding-right:5px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.uagb-rest_menu__wrap,.uagb-rest_menu__wrap *{-webkit-transition:all 0.2s;-o-transition:all 0.2s;transition:all 0.2s}.uagb-rm__image img,.slick-slide .uagb-rm__image img{display:inline-block;box-sizing:content-box}.uagb-rm__title,.uagb-rm__price{display:inline-block}.uagb-rm__desc{margin-bottom:15px;font-style:italic}.uagb-rm__content{overflow:hidden;text-align:left;word-break:break-word;padding:15px;border-radius:inherit;position:relative;padding:5px}.uagb-rm__image-position-left .uagb-rm__content,.uagb-rm__image-position-right .uagb-rm__content{display:-ms-flexbox;-js-display:flex;display:flex}.uagb-rm-details{display:table;width:100%}.uagb-rm__title-wrap,.uagb-rm__price-wrap{display:table-cell}.uagb-rm__title-wrap,.uagb-rm__image-position-left.uagb-rm__align-center .uagb-rm__price-wrap,.uagb-rm__image-position-right.uagb-rm__align-center .uagb-rm__price-wrap{width:85%}.uagb-rm__price-wrap,.uagb-rm__image-position-left.uagb-rm__align-center .uagb-rm__price-wrap,.uagb-rm__image-position-right.uagb-rm__align-center .uagb-rm__price-wrap{width:15%}.uagb-rm__title,.uagb-rm__price{display:block}.uagb-rm__align-center .uagb-rm-details,.uagb-rm__align-center .uagb-rm__title-wrap,.uagb-rm__align-center .uagb-rm__price-wrap{display:block;width:100%}.uagb-rm__image-aligned-middle .uagb-rm__image-content{-ms-flex-item-align:center;align-self:center}.uagb-rm__image{overflow:hidden}.uagb-rm__title{margin-bottom:5px;font-size:20px}.uagb-rm__price{font-style:italic;text-align:right}.uagb-rm__image-position-center.uagb-rm__align-center .uagb-rm-details,.uagb-rm__image-position-center.uagb-rm__align-center .uagb-rm__title-wrap,.uagb-rm__image-position-center.uagb-rm__align-center .uagb-rm__price-wrap{display:block;width:100%;text-align:center}.uagb-rm__align-center .uagb-rm__price{text-align:center}.uagb-rm__align-right .uagb-rm-details{display:flex;width:100%;flex-direction:row-reverse}.uagb-rm__align-right .uagb-rm__price{text-align:left}.uagb-rm__align-left .uagb-rm__price{text-align:right}.uagb-rm__image-position-left.uagb-rm__align-left .uagb-rm__price,.uagb-rm__image-position-left.uagb-rm__align-right .uagb-rm__price,.uagb-rm__image-position-left.uagb-rm__align-center .uagb-rm__price{text-align:right}.uagb-rm__image-position-left.uagb-rm__align-left .uagb-rm-details,.uagb-rm__image-position-left.uagb-rm__align-right .uagb-rm-details,.uagb-rm__image-position-left.uagb-rm__align-center .uagb-rm-details{display:flex;flex-direction:unset;text-align:left}.uagb-rm__image-position-left.uagb-rm__align-left .uagb-rm__title-wrap,.uagb-rm__image-position-left.uagb-rm__align-right .uagb-rm__title-wrap,.uagb-rm__image-position-left.uagb-rm__align-center .uagb-rm__title-wrap,.uagb-rm__image-position-left.uagb-rm__align-left .uagb-rm__image-content,.uagb-rm__image-position-left.uagb-rm__align-right .uagb-rm__image-content,.uagb-rm__image-position-left.uagb-rm__align-center .uagb-rm__image-content{text-align:left}.uagb-rm__image-position-right.uagb-rm__align-left .uagb-rm-details,.uagb-rm__image-position-right.uagb-rm__align-right .uagb-rm-details,.uagb-rm__image-position-right.uagb-rm__align-center .uagb-rm-details{display:flex;flex-direction:row-reverse;text-align:right}.uagb-rm__image-position-right.uagb-rm__align-left .uagb-rm__price,.uagb-rm__image-position-right.uagb-rm__align-right .uagb-rm__price,.uagb-rm__image-position-right.uagb-rm__align-center .uagb-rm__price{text-align:left}.uagb-rm__image-position-right.uagb-rm__align-left .uagb-rm__title-wrap,.uagb-rm__image-position-right.uagb-rm__align-right .uagb-rm__title-wrap,.uagb-rm__image-position-right.uagb-rm__align-center .uagb-rm__title-wrap,.uagb-rm__image-position-right.uagb-rm__align-left .uagb-rm__image-content,.uagb-rm__image-position-right.uagb-rm__align-right .uagb-rm__image-content,.uagb-rm__image-position-right.uagb-rm__align-center .uagb-rm__image-content{text-align:right}.uagb-rest_menu__outer-wrap{position:relative}.uagb-rm__overlay{height:100%;width:100%;top:0;left:0;position:absolute;background:transparent}.uagb-tm-parent{padding:30px}.uagb-rm__text-wrap{position:relative;display:block;width:100%}.uagb-rest_menu__wrap{position:relative}.uagb-rest_menu__outer-wrap:after{content:"";display:block;clear:both}.uagb-rest_menu__wrap.uagb-rm__desk-column-3{display:block;width:33%;float:left;width:calc(100% / 3);padding-left:10px;padding-right:10px}.uagb-rest_menu__wrap.uagb-rm__desk-column-2{display:block;width:49%;float:left;padding-left:10px;padding-right:10px}.uagb-rest_menu__wrap.uagb-rm__desk-column-1{display:block;width:100%;float:left;padding-left:10px;padding-right:10px}.uagb-rm__separator-parent{line-height:0em;margin-left:0;margin-right:0;margin-bottom:10px;-js-display:flex;display:-webkit-flex;display:-moz-flexbox;display:flex}.uagb-rm__separator{width:100%;border-top-width:1px;border-top-color:#b2b4b5;border-top-style:inherit}.uagb-rm__image-position-left .uagb-rm__image{margin-right:10px}.uagb-rm__image-position-right .uagb-rm__image{margin-left:10px}@media (max-width: 976px){.uagb-rm__image-position-left.uagb-rm-stacked-tablet .uagb-rm__content,.uagb-rm__image-position-right.uagb-rm-stacked-tablet .uagb-rm__content{display:block;-js-display:block;display:block}.uagb-rm__image-position-right.uagb-rm-stacked-tablet.uagb-rm-reverse-order-tablet .uagb-rm__content{display:-webkit-box;display:-ms-flexbox;-js-display:flex;display:-webkit-flex;display:-moz-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;-webkit-flex-direction:column-reverse;-moz-box-orient:vertical;-moz-box-direction:reverse;flex-direction:column-reverse}.uagb-rm__image-position-right.uagb-rm-stacked-tablet.uagb-rm__image-aligned-middle .uagb-rm__image-content{align-self:flex-end}.uagb-rm__image-position-left.uagb-rm-stacked-tablet.uagb-rm__image-aligned-middle .uagb-rm__image-content{align-self:flex-start}.uagb-rm__tablet-column-3.uagb-rest_menu__wrap{width:33%;float:left;padding-left:10px;padding-right:10px}.uagb-rm__tablet-column-2.uagb-rest_menu__wrap{width:50%;float:left;padding-left:10px;padding-right:10px}.uagb-rm__tablet-column-1.uagb-rest_menu__wrap{width:100%;float:left;padding-left:10px;padding-right:10px}}@media (max-width: 767px){.uagb-rm__image-position-left.uagb-rm-stacked-mobile .uagb-rm__content,.uagb-rm__image-position-right.uagb-rm-stacked-mobile .uagb-rm__content{display:block;-js-display:block;display:block}.uagb-rm__image-position-right.uagb-rm-stacked-mobile.uagb-rm-reverse-order-mobile .uagb-rm__content{display:-webkit-box;display:-ms-flexbox;-js-display:flex;display:-webkit-flex;display:-moz-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;-webkit-flex-direction:column-reverse;-moz-box-orient:vertical;-moz-box-direction:reverse;flex-direction:column-reverse}.uagb-rest_menu__wrap.uagb-rm__mobile-column-3{width:33%;float:left;padding-left:10px;padding-right:10px}.uagb-rest_menu__wrap.uagb-rm__mobile-column-2{width:50%;float:left;padding-left:10px;padding-right:10px}.uagb-rest_menu__wrap.uagb-rm__mobile-column-1{width:100%;float:left;padding-left:10px;padding-right:10px}.uagb-rm__image-position-right.uagb-rm-stacked-mobile.uagb-rm__image-aligned-middle .uagb-rm__image-content{align-self:flex-end}.uagb-rm__image-position-left.uagb-rm-stacked-mobile.uagb-rm__image-aligned-middle .uagb-rm__image-content{align-self:flex-start}} diff --git a/plugins/ultimate-addons-for-gutenberg/assets/css/blocks/table-of-contents.css b/plugins/ultimate-addons-for-gutenberg/assets/css/blocks/table-of-contents.css index c6f7a5bb..e6c3fa32 100644 --- a/plugins/ultimate-addons-for-gutenberg/assets/css/blocks/table-of-contents.css +++ b/plugins/ultimate-addons-for-gutenberg/assets/css/blocks/table-of-contents.css @@ -1 +1 @@ -.wp-block-uagb-table-of-contents .uagb-toc__wrap{display:inline-block}.wp-block-uagb-table-of-contents ul.uagb-toc__list{margin-left:1.2em;padding-left:0px;margin-bottom:0}.wp-block-uagb-table-of-contents ul.uagb-toc__list li{margin:0}.wp-block-uagb-table-of-contents .uagb-toc__list-wrap ul li a{color:inherit;line-height:inherit;font-size:inherit}.wp-block-uagb-table-of-contents.uagb-toc__align-left{text-align:left}.wp-block-uagb-table-of-contents.uagb-toc__align-center{text-align:center}.wp-block-uagb-table-of-contents.uagb-toc__align-right{text-align:right}.wp-block-uagb-table-of-contents ul li:empty{display:none}.wp-block-uagb-table-of-contents .uagb-toc__title-wrap{display:flex;align-items:center}.wp-block-uagb-table-of-contents .uagb-toc__is-collapsible.uagb-toc__title-wrap{cursor:pointer}.wp-block-uagb-table-of-contents .uag-toc__collapsible-wrap svg{width:20px;height:20px}.wp-block-uagb-table-of-contents .uag-toc__collapsible-wrap{margin-left:10px;display:flex;cursor:pointer}.wp-block-uagb-table-of-contents.uagb-toc__collapse .uagb-toc__list-wrap{display:none}.uagb-toc__list .uagb-toc__list{list-style-type:circle}.uagb-toc__scroll-top.dashicons{display:none;position:fixed;bottom:50px;right:50px;padding:10px;background:#ccd0d4;cursor:pointer}.uagb-toc__scroll-top.uagb-toc__show-scroll{display:inline-table} +.wp-block-uagb-table-of-contents .uagb-toc__wrap{display:inline-block}.wp-block-uagb-table-of-contents ul.uagb-toc__list{margin-left:2.2em;padding-left:0px;margin-bottom:0}.wp-block-uagb-table-of-contents ul.uagb-toc__list li{margin:0}.wp-block-uagb-table-of-contents.uagb-toc__align-left{text-align:left}.wp-block-uagb-table-of-contents.uagb-toc__align-center{text-align:center}.wp-block-uagb-table-of-contents.uagb-toc__align-right{text-align:right}.wp-block-uagb-table-of-contents ul li:empty{display:none}.wp-block-uagb-table-of-contents .uagb-toc__title-wrap{display:flex;align-items:center}.wp-block-uagb-table-of-contents .uagb-toc__is-collapsible.uagb-toc__title-wrap{cursor:pointer}.wp-block-uagb-table-of-contents .uag-toc__collapsible-wrap svg{width:20px;height:20px}.wp-block-uagb-table-of-contents .uag-toc__collapsible-wrap{margin-left:10px;display:flex;cursor:pointer}.wp-block-uagb-table-of-contents.uagb-toc__collapse .uagb-toc__list-wrap{display:none}.uagb-toc__list ul{list-style-type:circle}.uagb-toc__scroll-top.dashicons{display:none;position:fixed;bottom:50px;right:50px;padding:10px;background:#ccd0d4;cursor:pointer}.uagb-toc__scroll-top.uagb-toc__show-scroll{display:inline-table} diff --git a/plugins/ultimate-addons-for-gutenberg/assets/css/blocks/tabs-child.css b/plugins/ultimate-addons-for-gutenberg/assets/css/blocks/tabs-child.css new file mode 100644 index 00000000..b34c0e30 --- /dev/null +++ b/plugins/ultimate-addons-for-gutenberg/assets/css/blocks/tabs-child.css @@ -0,0 +1 @@ +.uagb-tabs__body{cursor:pointer;padding:10px 15px;display:none} diff --git a/plugins/ultimate-addons-for-gutenberg/assets/css/blocks/tabs.css b/plugins/ultimate-addons-for-gutenberg/assets/css/blocks/tabs.css new file mode 100644 index 00000000..f21089b6 --- /dev/null +++ b/plugins/ultimate-addons-for-gutenberg/assets/css/blocks/tabs.css @@ -0,0 +1 @@ +.uagb-tabs__wrap{display:flex;margin:15px}.uagb-tabs__wrap ul.uagb-tabs__panel{list-style-type:none;display:inherit}.uagb-tabs__wrap ul.uagb-tabs__panel li.uagb-tab{float:left;position:relative}.uagb-tabs__wrap ul.uagb-tabs__panel .uagb-tabs__icon-position-left{display:inline-flex}.uagb-tabs__wrap ul.uagb-tabs__panel .uagb-tabs__icon-position-left .uagb-tabs__icon{margin-top:3px}.uagb-tabs__wrap ul.uagb-tabs__panel .uagb-tabs__icon-position-top{display:block}.uagb-tabs__wrap ul.uagb-tabs__panel .uagb-tabs__icon-position-top .uagb-tabs__icon{display:block;text-align:center}.uagb-tabs__wrap ul.uagb-tabs__panel .uagb-tabs__icon-position-bottom{display:block}.uagb-tabs__wrap ul.uagb-tabs__panel .uagb-tabs__icon-position-bottom .uagb-tabs__icon{display:block;text-align:center}.uagb-tabs__wrap ul.uagb-tabs__panel .uagb-tabs__icon-position-right{display:inline-flex}.uagb-tabs__wrap ul.uagb-tabs__panel .uagb-tabs__icon-position-right .uagb-tabs__icon{margin-top:3px}.uagb-tabs__wrap .uagb-tabs__body-wrap{position:relative;max-width:100%;padding:10px}.uagb-tabs__wrap.uagb-tabs__hstyle1-desktop{flex-direction:column}.uagb-tabs__wrap.uagb-tabs__hstyle1-desktop ul.uagb-tabs__panel{margin:0px;padding:0px}.uagb-tabs__wrap.uagb-tabs__hstyle1-desktop .uagb-tab{border-style:solid;margin:10px 10px 10px 0px;padding:6px 12px;border-radius:4px}.uagb-tabs__wrap.uagb-tabs__hstyle1-desktop p{margin:0px}.uagb-tabs__wrap.uagb-tabs__hstyle1-desktop .uagb-tabs__body-wrap{border-style:solid}.uagb-tabs__wrap.uagb-tabs__hstyle2-desktop{flex-direction:column}.uagb-tabs__wrap.uagb-tabs__hstyle2-desktop ul.uagb-tabs__panel{margin:0px;padding:0px;border-bottom:1px solid #b3b6b9}.uagb-tabs__wrap.uagb-tabs__hstyle2-desktop .uagb-tab{margin:10px 10px -1px 0px;padding:6px 12px;border-top-left-radius:4px;border-top-right-radius:4px}.uagb-tabs__wrap.uagb-tabs__hstyle2-desktop p{margin:0px}.uagb-tabs__wrap.uagb-tabs__hstyle2-desktop .uagb-tabs__active{border-bottom-style:solid}.uagb-tabs__wrap.uagb-tabs__hstyle2-desktop .uagb-tabs__body-wrap{border:none}.uagb-tabs__wrap.uagb-tabs__hstyle3-desktop{flex-direction:column}.uagb-tabs__wrap.uagb-tabs__hstyle3-desktop ul.uagb-tabs__panel{margin:0px;padding:0px}.uagb-tabs__wrap.uagb-tabs__hstyle3-desktop .uagb-tab{border-top-right-radius:7px;border-top-left-radius:7px;border-top-style:solid;border-left-style:solid;border-right-style:solid;margin:10px 10px 0px 0px;padding:6px 12px}.uagb-tabs__wrap.uagb-tabs__hstyle3-desktop .uagb-tab p{margin:0px}.uagb-tabs__wrap.uagb-tabs__hstyle3-desktop .uagb-tabs__body-wrap{border-style:solid}.uagb-tabs__wrap.uagb-tabs__hstyle4-desktop{flex-direction:column}.uagb-tabs__wrap.uagb-tabs__hstyle4-desktop ul.uagb-tabs__panel{margin:0px;padding:0px}.uagb-tabs__wrap.uagb-tabs__hstyle4-desktop .uagb-tab{border-radius:30px;border-style:solid;margin:10px 10px 10px 0px;padding:6px 12px}.uagb-tabs__wrap.uagb-tabs__hstyle4-desktop .uagb-tab p{margin:0px}.uagb-tabs__wrap.uagb-tabs__hstyle4-desktop .uagb-tabs__body-wrap{border-style:solid}.uagb-tabs__wrap.uagb-tabs__hstyle5-desktop{flex-direction:column;border-style:solid}.uagb-tabs__wrap.uagb-tabs__hstyle5-desktop ul.uagb-tabs__panel{justify-content:space-between;margin:0px;padding:0px}.uagb-tabs__wrap.uagb-tabs__hstyle5-desktop .uagb-tab{padding:6px 12px;margin:10px 10px 10px 10px;text-align:center;width:100%}.uagb-tabs__wrap.uagb-tabs__hstyle5-desktop .uagb-tab p{margin:0px}.uagb-tabs__wrap.uagb-tabs__hstyle5-desktop .uagb-tab.uagb-tabs__active{border-bottom-style:solid}.uagb-tabs__wrap.uagb-tabs__vstyle6-desktop ul.uagb-tabs__panel{margin:0px;padding:0px;display:flex;flex-direction:column;flex-grow:1;min-width:25%;max-width:25%}.uagb-tabs__wrap.uagb-tabs__vstyle6-desktop ul.uagb-tabs__panel .uagb-tab{border-style:solid;margin:0px 10px 10px 0px;padding:6px 12px;border-radius:4px}.uagb-tabs__wrap.uagb-tabs__vstyle6-desktop ul.uagb-tabs__panel .uagb-tab p{margin:0px}.uagb-tabs__wrap.uagb-tabs__vstyle6-desktop .uagb-tabs__body-wrap{border-style:solid;flex-grow:3;max-width:75%}.uagb-tabs__wrap.uagb-tabs__vstyle7-desktop{flex-direction:row}.uagb-tabs__wrap.uagb-tabs__vstyle7-desktop ul.uagb-tabs__panel{display:flex;flex-direction:column;flex-grow:1;min-width:25%;max-width:25%;margin:0px;padding:0px;border-bottom-style:solid}.uagb-tabs__wrap.uagb-tabs__vstyle7-desktop ul.uagb-tabs__panel .uagb-tab{margin:10px 10px 0px 0px;padding:6px 12px}.uagb-tabs__wrap.uagb-tabs__vstyle7-desktop ul.uagb-tabs__panel .uagb-tab p{margin:0px}.uagb-tabs__wrap.uagb-tabs__vstyle7-desktop ul.uagb-tabs__panel .uagb-tabs__active{border-bottom-style:solid}.uagb-tabs__wrap.uagb-tabs__vstyle7-desktop .uagb-tabs__body-wrap{border:none;flex-grow:3;max-width:75%}.uagb-tabs__wrap.uagb-tabs__vstyle8-desktop{flex-direction:row;display:flex}.uagb-tabs__wrap.uagb-tabs__vstyle8-desktop ul.uagb-tabs__panel{margin:0px;padding:0px;display:grid;flex-grow:1;min-width:25%;max-width:25%}.uagb-tabs__wrap.uagb-tabs__vstyle8-desktop ul.uagb-tabs__panel .uagb-tab{border-top-style:solid;border-left-style:solid;border-bottom-style:none;padding:6px 12px;border-top-left-radius:4px}.uagb-tabs__wrap.uagb-tabs__vstyle8-desktop ul.uagb-tabs__panel .uagb-tab p{margin:0px}.uagb-tabs__wrap.uagb-tabs__vstyle8-desktop ul.uagb-tabs__panel .uagb-tab:last-child{border-bottom-style:solid}.uagb-tabs__wrap.uagb-tabs__vstyle8-desktop .uagb-tabs__body-wrap{border-style:solid;flex-grow:3;max-width:75%}.uagb-tabs__wrap.uagb-tabs__vstyle9-desktop{flex-direction:row;display:flex}.uagb-tabs__wrap.uagb-tabs__vstyle9-desktop ul.uagb-tabs__panel{margin:0px;padding:0px;display:grid;flex-grow:1;min-width:25%;max-width:25%}.uagb-tabs__wrap.uagb-tabs__vstyle9-desktop ul.uagb-tabs__panel .uagb-tab{border-radius:30px;border-style:solid;margin:0px 10px 10px 0px;padding:6px 12px 6px 12px}.uagb-tabs__wrap.uagb-tabs__vstyle9-desktop ul.uagb-tabs__panel .uagb-tab p{margin:0px}.uagb-tabs__wrap.uagb-tabs__vstyle9-desktop .uagb-tabs__body-wrap{border-style:solid;flex-grow:3;max-width:75%}.uagb-tabs__wrap.uagb-tabs__vstyle10-desktop{border-style:solid}.uagb-tabs__wrap.uagb-tabs__vstyle10-desktop ul.uagb-tabs__panel{display:grid;flex-grow:1;min-width:25%;max-width:25%;margin:0px;padding:0px}.uagb-tabs__wrap.uagb-tabs__vstyle10-desktop ul.uagb-tabs__panel .uagb-tab{padding:6px 12px;margin:10px 10px 10px 10px;text-align:center}.uagb-tabs__wrap.uagb-tabs__vstyle10-desktop ul.uagb-tabs__panel .uagb-tab p{margin:0px}.uagb-tabs__wrap.uagb-tabs__vstyle10-desktop ul.uagb-tabs__panel .uagb-tab.uagb-tabs__active{border-right-style:solid}.uagb-tabs__wrap.uagb-tabs__vstyle10-desktop .uagb-tabs__body-wrap{flex-grow:3;max-width:75%}@media (max-width: 1023px){.uagb-tabs__wrap.uagb-tabs__hstyle1-tablet{flex-direction:column}.uagb-tabs__wrap.uagb-tabs__hstyle1-tablet ul.uagb-tabs__panel{margin:0px;padding:0px}.uagb-tabs__wrap.uagb-tabs__hstyle1-tablet .uagb-tab{border-style:solid;margin:10px 10px 10px 0px;padding:6px 12px;border-radius:4px}.uagb-tabs__wrap.uagb-tabs__hstyle1-tablet p{margin:0px}.uagb-tabs__wrap.uagb-tabs__hstyle1-tablet .uagb-tabs__body-wrap{border-style:solid}.uagb-tabs__wrap.uagb-tabs__hstyle2-tablet{flex-direction:column}.uagb-tabs__wrap.uagb-tabs__hstyle2-tablet ul.uagb-tabs__panel{margin:0px;padding:0px;border-bottom-style:solid}.uagb-tabs__wrap.uagb-tabs__hstyle2-tablet .uagb-tab{margin:10px 10px -1px 0px;padding:6px 12px;border-top-left-radius:4px;border-top-right-radius:4px}.uagb-tabs__wrap.uagb-tabs__hstyle2-tablet p{margin:0px}.uagb-tabs__wrap.uagb-tabs__hstyle2-tablet .uagb-tabs__active{border-bottom-style:solid}.uagb-tabs__wrap.uagb-tabs__hstyle2-tablet .uagb-tabs__body-wrap{border:none}.uagb-tabs__wrap.uagb-tabs__hstyle3-tablet{flex-direction:column}.uagb-tabs__wrap.uagb-tabs__hstyle3-tablet ul.uagb-tabs__panel{margin:0px;padding:0px}.uagb-tabs__wrap.uagb-tabs__hstyle3-tablet .uagb-tab{border-top-right-radius:7px;border-top-left-radius:7px;border-top-style:solid;border-left-style:solid;border-right-style:solid;margin:10px 10px 0px 0px;padding:6px 12px}.uagb-tabs__wrap.uagb-tabs__hstyle3-tablet .uagb-tab p{margin:0px}.uagb-tabs__wrap.uagb-tabs__hstyle3-tablet .uagb-tabs__body-wrap{border-style:solid}.uagb-tabs__wrap.uagb-tabs__hstyle4-tablet{flex-direction:column}.uagb-tabs__wrap.uagb-tabs__hstyle4-tablet ul.uagb-tabs__panel{margin:0px;padding:0px}.uagb-tabs__wrap.uagb-tabs__hstyle4-tablet .uagb-tab{border-radius:30px;border-style:solid;margin:10px 10px 10px 0px;padding:6px 12px 6px 12px}.uagb-tabs__wrap.uagb-tabs__hstyle4-tablet .uagb-tab p{margin:0px}.uagb-tabs__wrap.uagb-tabs__hstyle4-tablet .uagb-tabs__body-wrap{border-style:solid}.uagb-tabs__wrap.uagb-tabs__hstyle5-tablet{flex-direction:column;border-style:solid}.uagb-tabs__wrap.uagb-tabs__hstyle5-tablet ul.uagb-tabs__panel{justify-content:space-between;margin:0px;padding:0px}.uagb-tabs__wrap.uagb-tabs__hstyle5-tablet .uagb-tab{padding:6px 12px;margin:10px 10px 10px 10px;width:100%;text-align:center}.uagb-tabs__wrap.uagb-tabs__hstyle5-tablet .uagb-tab p{margin:0px}.uagb-tabs__wrap.uagb-tabs__hstyle5-tablet .uagb-tab.uagb-tabs__active{border-bottom:1px solid}.uagb-tabs__wrap.uagb-tabs__vstyle6-tablet ul.uagb-tabs__panel{margin:0px;padding:0px;display:flex;flex-direction:column;flex-grow:1;min-width:25%;max-width:25%}.uagb-tabs__wrap.uagb-tabs__vstyle6-tablet ul.uagb-tabs__panel .uagb-tab{border-style:solid;margin:0px 10px 10px 0px;padding:6px 12px;border-radius:4px}.uagb-tabs__wrap.uagb-tabs__vstyle6-tablet ul.uagb-tabs__panel .uagb-tab p{margin:0px}.uagb-tabs__wrap.uagb-tabs__vstyle6-tablet .uagb-tabs__body-wrap{border-style:solid;flex-grow:3;max-width:75%}.uagb-tabs__wrap.uagb-tabs__vstyle7-tablet{flex-direction:row}.uagb-tabs__wrap.uagb-tabs__vstyle7-tablet ul.uagb-tabs__panel{display:flex;flex-direction:column;flex-grow:1;min-width:25%;max-width:25%;margin:0px;padding:0px;border-bottom-style:solid}.uagb-tabs__wrap.uagb-tabs__vstyle7-tablet ul.uagb-tabs__panel .uagb-tab{margin:10px 10px 0px 0px;padding:6px 12px}.uagb-tabs__wrap.uagb-tabs__vstyle7-tablet ul.uagb-tabs__panel .uagb-tab p{margin:0px}.uagb-tabs__wrap.uagb-tabs__vstyle7-tablet ul.uagb-tabs__panel .uagb-tabs__active{border-bottom-style:solid}.uagb-tabs__wrap.uagb-tabs__vstyle7-tablet .uagb-tabs__body-wrap{border:none;flex-grow:3;max-width:75%}.uagb-tabs__wrap.uagb-tabs__vstyle8-tablet{flex-direction:row;display:flex}.uagb-tabs__wrap.uagb-tabs__vstyle8-tablet ul.uagb-tabs__panel{margin:0px;padding:0px;display:grid;flex-grow:1;min-width:25%;max-width:25%}.uagb-tabs__wrap.uagb-tabs__vstyle8-tablet ul.uagb-tabs__panel .uagb-tab{border-top-style:solid;border-left-style:solid;border-bottom-style:none;padding:6px 12px;border-top-left-radius:4px}.uagb-tabs__wrap.uagb-tabs__vstyle8-tablet ul.uagb-tabs__panel .uagb-tab p{margin:0px}.uagb-tabs__wrap.uagb-tabs__vstyle8-tablet ul.uagb-tabs__panel .uagb-tab:last-child{border-bottom-style:solid}.uagb-tabs__wrap.uagb-tabs__vstyle8-tablet .uagb-tabs__body-wrap{border-style:solid;flex-grow:3;max-width:75%}.uagb-tabs__wrap.uagb-tabs__vstyle9-tablet{flex-direction:row;display:flex}.uagb-tabs__wrap.uagb-tabs__vstyle9-tablet ul.uagb-tabs__panel{margin:0px;padding:0px;display:grid;flex-grow:1;min-width:25%;max-width:25%}.uagb-tabs__wrap.uagb-tabs__vstyle9-tablet ul.uagb-tabs__panel .uagb-tab{border-radius:30px;border-style:solid;margin:0px 10px 10px 0px;padding:6px 12px 6px 12px}.uagb-tabs__wrap.uagb-tabs__vstyle9-tablet ul.uagb-tabs__panel .uagb-tab p{margin:0px}.uagb-tabs__wrap.uagb-tabs__vstyle9-tablet .uagb-tabs__body-wrap{border-style:solid;flex-grow:3;max-width:75%}.uagb-tabs__wrap.uagb-tabs__vstyle10-tablet{border-style:solid;flex-direction:row}.uagb-tabs__wrap.uagb-tabs__vstyle10-tablet ul.uagb-tabs__panel{display:grid;flex-grow:1;min-width:25%;max-width:25%;margin:0px;padding:0px}.uagb-tabs__wrap.uagb-tabs__vstyle10-tablet ul.uagb-tabs__panel .uagb-tab{padding:6px 12px;margin:10px 10px 10px 10px;text-align:center}.uagb-tabs__wrap.uagb-tabs__vstyle10-tablet ul.uagb-tabs__panel .uagb-tab p{margin:0px}.uagb-tabs__wrap.uagb-tabs__vstyle10-tablet ul.uagb-tabs__panel .uagb-tab.uagb-tabs__active{border-right-style:solid}.uagb-tabs__wrap.uagb-tabs__vstyle10-tablet .uagb-tabs__body-wrap{flex-grow:3;max-width:75%}}@media (max-width: 767px){.uagb-tabs__wrap.uagb-tabs__hstyle1-mobile{flex-direction:column}.uagb-tabs__wrap.uagb-tabs__hstyle1-mobile ul.uagb-tabs__panel{margin:0px;padding:0px}.uagb-tabs__wrap.uagb-tabs__hstyle1-mobile .uagb-tab{border-style:solid;margin:10px 10px 10px 0px;padding:6px 12px;border-radius:4px}.uagb-tabs__wrap.uagb-tabs__hstyle1-mobile p{margin:0px}.uagb-tabs__wrap.uagb-tabs__hstyle1-mobile .uagb-tabs__body-wrap{border-style:solid}.uagb-tabs__wrap.uagb-tabs__hstyle2-mobile{flex-direction:column}.uagb-tabs__wrap.uagb-tabs__hstyle2-mobile ul.uagb-tabs__panel{margin:0px;padding:0px;border-bottom:1px solid #b3b6b9}.uagb-tabs__wrap.uagb-tabs__hstyle2-mobile .uagb-tab{margin:10px 10px -1px 0px;padding:6px 12px;border-top-left-radius:4px;border-top-right-radius:4px}.uagb-tabs__wrap.uagb-tabs__hstyle2-mobile p{margin:0px}.uagb-tabs__wrap.uagb-tabs__hstyle2-mobile .uagb-tabs__active{border-bottom-style:solid}.uagb-tabs__wrap.uagb-tabs__hstyle2-mobile .uagb-tabs__body-wrap{border:none}.uagb-tabs__wrap.uagb-tabs__hstyle3-mobile{flex-direction:column}.uagb-tabs__wrap.uagb-tabs__hstyle3-mobile ul.uagb-tabs__panel{margin:0px;padding:0px}.uagb-tabs__wrap.uagb-tabs__hstyle3-mobile .uagb-tab{border-top-right-radius:7px;border-top-left-radius:7px;border-top-style:solid;border-left-style:solid;border-right-style:solid;margin:10px 10px 0px 0px;padding:6px 12px}.uagb-tabs__wrap.uagb-tabs__hstyle3-mobile .uagb-tab p{margin:0px}.uagb-tabs__wrap.uagb-tabs__hstyle3-mobile .uagb-tabs__body-wrap{border-style:solid}.uagb-tabs__wrap.uagb-tabs__hstyle4-mobile{flex-direction:column}.uagb-tabs__wrap.uagb-tabs__hstyle4-mobile ul.uagb-tabs__panel{margin:0px;padding:0px}.uagb-tabs__wrap.uagb-tabs__hstyle4-mobile .uagb-tab{border-radius:30px;border-style:solid;margin:10px 10px 10px 0px;padding:6px 12px 6px 12px}.uagb-tabs__wrap.uagb-tabs__hstyle4-mobile .uagb-tab p{margin:0px}.uagb-tabs__wrap.uagb-tabs__hstyle4-mobile .uagb-tabs__body-wrap{border-style:solid}.uagb-tabs__wrap.uagb-tabs__hstyle5-mobile{flex-direction:column;border-style:solid}.uagb-tabs__wrap.uagb-tabs__hstyle5-mobile ul.uagb-tabs__panel{justify-content:space-between;margin:0px;padding:0px}.uagb-tabs__wrap.uagb-tabs__hstyle5-mobile .uagb-tab{padding:6px 12px;margin:10px 10px 10px 10px;text-align:center;width:100%}.uagb-tabs__wrap.uagb-tabs__hstyle5-mobile .uagb-tab p{margin:0px}.uagb-tabs__wrap.uagb-tabs__hstyle5-mobile .uagb-tab.uagb-tabs__active{border-bottom-style:solid}.uagb-tabs__wrap.uagb-tabs__vstyle6-mobile ul.uagb-tabs__panel{margin:0px;padding:0px;display:flex;flex-direction:column;flex-grow:1;min-width:25%;max-width:25%}.uagb-tabs__wrap.uagb-tabs__vstyle6-mobile ul.uagb-tabs__panel .uagb-tab{border-style:solid;margin:0px 10px 10px 0px;padding:6px 12px;border-radius:4px}.uagb-tabs__wrap.uagb-tabs__vstyle6-mobile ul.uagb-tabs__panel .uagb-tab p{margin:0px}.uagb-tabs__wrap.uagb-tabs__vstyle6-mobile .uagb-tabs__body-wrap{border-style:solid;flex-grow:3;max-width:75%}.uagb-tabs__wrap.uagb-tabs__vstyle7-mobile{flex-direction:row}.uagb-tabs__wrap.uagb-tabs__vstyle7-mobile ul.uagb-tabs__panel{display:flex;flex-direction:column;flex-grow:1;min-width:25%;max-width:25%;margin:0px;padding:0px;border-bottom-style:solid}.uagb-tabs__wrap.uagb-tabs__vstyle7-mobile ul.uagb-tabs__panel .uagb-tab{margin:10px 10px 0px 0px;padding:6px 12px}.uagb-tabs__wrap.uagb-tabs__vstyle7-mobile ul.uagb-tabs__panel .uagb-tab p{margin:0px}.uagb-tabs__wrap.uagb-tabs__vstyle7-mobile ul.uagb-tabs__panel .uagb-tabs__active{border-bottom-style:solid}.uagb-tabs__wrap.uagb-tabs__vstyle7-mobile .uagb-tabs__body-wrap{border:none;flex-grow:3;max-width:75%}.uagb-tabs__wrap.uagb-tabs__vstyle8-mobile{flex-direction:row;display:flex}.uagb-tabs__wrap.uagb-tabs__vstyle8-mobile ul.uagb-tabs__panel{margin:0px;padding:0px;display:grid;flex-grow:1;min-width:25%;max-width:25%}.uagb-tabs__wrap.uagb-tabs__vstyle8-mobile ul.uagb-tabs__panel .uagb-tab{border-top-style:solid;border-left-style:solid;border-bottom-style:none;padding:6px 12px;border-top-left-radius:4px}.uagb-tabs__wrap.uagb-tabs__vstyle8-mobile ul.uagb-tabs__panel .uagb-tab p{margin:0px}.uagb-tabs__wrap.uagb-tabs__vstyle8-mobile ul.uagb-tabs__panel .uagb-tab:last-child{border-bottom-style:solid}.uagb-tabs__wrap.uagb-tabs__vstyle8-mobile .uagb-tabs__body-wrap{border-style:solid;flex-grow:3;max-width:75%}.uagb-tabs__wrap.uagb-tabs__vstyle9-mobile{flex-direction:row;display:flex}.uagb-tabs__wrap.uagb-tabs__vstyle9-mobile ul.uagb-tabs__panel{margin:0px;padding:0px;display:grid;flex-grow:1;min-width:25%;max-width:25%}.uagb-tabs__wrap.uagb-tabs__vstyle9-mobile ul.uagb-tabs__panel .uagb-tab{border-radius:30px;border-style:solid;margin:0px 10px 10px 0px;padding:6px 12px 6px 12px}.uagb-tabs__wrap.uagb-tabs__vstyle9-mobile ul.uagb-tabs__panel .uagb-tab p{margin:0px}.uagb-tabs__wrap.uagb-tabs__vstyle9-mobile .uagb-tabs__body-wrap{border-style:solid;flex-grow:3;max-width:75%}.uagb-tabs__wrap.uagb-tabs__vstyle10-mobile{border-style:solid}.uagb-tabs__wrap.uagb-tabs__vstyle10-mobile ul.uagb-tabs__panel{display:grid;flex-grow:1;min-width:25%;max-width:25%;margin:0px;padding:0px}.uagb-tabs__wrap.uagb-tabs__vstyle10-mobile ul.uagb-tabs__panel .uagb-tab{padding:6px 12px;margin:10px 10px 10px 10px;text-align:center}.uagb-tabs__wrap.uagb-tabs__vstyle10-mobile ul.uagb-tabs__panel .uagb-tab p{margin:0px}.uagb-tabs__wrap.uagb-tabs__vstyle10-mobile ul.uagb-tabs__panel .uagb-tab.uagb-tabs__active{border-right-style:solid}.uagb-tabs__wrap.uagb-tabs__vstyle10-mobile .uagb-tabs__body-wrap{flex-grow:3;max-width:75%}.uagb-tabs__wrap.uagb-tabs__stack1-mobile{display:grid}.uagb-tabs__wrap.uagb-tabs__stack1-mobile ul.uagb-tabs__panel{margin:0px;padding:0px;display:flex;flex-direction:column;max-width:100%;flex-grow:unset}.uagb-tabs__wrap.uagb-tabs__stack1-mobile ul.uagb-tabs__panel .uagb-tab{border-style:solid;margin:0px 0px 10px 0px;padding:6px 12px}.uagb-tabs__wrap.uagb-tabs__stack1-mobile ul.uagb-tabs__panel .uagb-tab p{margin:0px}.uagb-tabs__wrap.uagb-tabs__stack1-mobile .uagb-tabs__body-wrap{border-style:solid;max-width:100%}.uagb-tabs__wrap.uagb-tabs__stack2-mobile{display:grid}.uagb-tabs__wrap.uagb-tabs__stack2-mobile ul.uagb-tabs__panel{display:flex;flex-direction:column;max-width:100%;flex-grow:unset;width:100%;margin:0px;padding:0px;border-bottom-style:solid}.uagb-tabs__wrap.uagb-tabs__stack2-mobile ul.uagb-tabs__panel .uagb-tab{margin:0px 0px 10px 0px;padding:6px 12px}.uagb-tabs__wrap.uagb-tabs__stack2-mobile ul.uagb-tabs__panel .uagb-tab p{margin:0px}.uagb-tabs__wrap.uagb-tabs__stack2-mobile ul.uagb-tabs__panel .uagb-tabs__active{border-bottom-style:solid}.uagb-tabs__wrap.uagb-tabs__stack2-mobile .uagb-tabs__body-wrap{max-width:100%}.uagb-tabs__wrap.uagb-tabs__stack3-mobile{display:grid}.uagb-tabs__wrap.uagb-tabs__stack3-mobile ul.uagb-tabs__panel{margin:0px;padding:0px;display:flex;flex-direction:column;max-width:100%;flex-grow:unset;width:100%}.uagb-tabs__wrap.uagb-tabs__stack3-mobile ul.uagb-tabs__panel .uagb-tab{border-radius:30px;border-style:solid;margin:0px 0px 10px 0px;padding:6px 12px 6px 12px}.uagb-tabs__wrap.uagb-tabs__stack3-mobile ul.uagb-tabs__panel .uagb-tab p{margin:0px}.uagb-tabs__wrap.uagb-tabs__stack3-mobile .uagb-tabs__body-wrap{border-style:solid;max-width:100%}.uagb-tabs__wrap.uagb-tabs__stack4-mobile{display:grid;border-style:solid;margin:auto}.uagb-tabs__wrap.uagb-tabs__stack4-mobile ul.uagb-tabs__panel{display:flex;flex-direction:column;max-width:100%;flex-grow:unset;width:100%;margin:0px;padding:0px}.uagb-tabs__wrap.uagb-tabs__stack4-mobile ul.uagb-tabs__panel .uagb-tab{padding:6px 12px;margin:0px 0px 10px 0px;text-align:center}.uagb-tabs__wrap.uagb-tabs__stack4-mobile ul.uagb-tabs__panel .uagb-tab p{margin:0px}.uagb-tabs__wrap.uagb-tabs__stack4-mobile ul.uagb-tabs__panel .uagb-tab.uagb-tabs__active{border-right-style:solid}.uagb-tabs__wrap.uagb-tabs__stack4-mobile .uagb-tabs__body-wrap{max-width:100%}} diff --git a/plugins/ultimate-addons-for-gutenberg/assets/css/blocks/timeline.css b/plugins/ultimate-addons-for-gutenberg/assets/css/blocks/timeline.css index e0ab7893..51fd8abc 100644 --- a/plugins/ultimate-addons-for-gutenberg/assets/css/blocks/timeline.css +++ b/plugins/ultimate-addons-for-gutenberg/assets/css/blocks/timeline.css @@ -1 +1 @@ -.uagb-timeline__widget{position:relative;display:flex;align-items:flex-start;font-size:inherit;color:inherit;margin-bottom:inherit}.uagb-timeline__widget a{text-decoration:none;color:inherit;font-size:inherit;margin-bottom:inherit}.uagb-timeline__image a{display:block;position:relative;max-width:100%}.uagb-timeline__image img{display:inline-block;box-sizing:content-box}.uagb-timeline__author{text-transform:uppercase}.uagb-timeline__main{position:relative}.uagb-content{word-break:break-word}a.uagb-timeline__link{padding:5px 10px;display:inline-block}.uagb-timeline__headingh1,.uagb-timeline__headingh2,.uagb-timeline__headingh3,.uagb-timeline__headingh4,.uagb-timeline__headingh5,.uagb-timeline__headingh6{margin-bottom:0px}.uagb-timeline__inner-date-new p,.uagb-timeline__date-inner .uagb-timeline__inner-date-new p{margin-bottom:0px}.uagb-timeline__line{background-color:#eeeeee}.uagb-timeline__line__inner{background-color:#5cb85c;width:100%}.uagb-timeline__main .uagb-timeline__icon-new{line-height:1em;display:inline-block;vertical-align:middle;font-style:normal}.uagb-timeline__center-block .uagb-timeline__date-hide{display:none}.uagb-timeline__field:not(:last-child){margin-bottom:20px}.uagb-timeline__center-block .uagb-timeline__widget.uagb-timeline__right,.uagb-timeline__right-block .uagb-timeline__widget{flex-direction:row-reverse}.uagb-timeline__left-block .uagb-timeline__day-left .uagb-timeline__events-inner-new,.uagb-timeline__left-block .uagb-timeline__day-right .uagb-timeline__events-inner-new{text-align:left}.uagb-timeline__right-block .uagb-timeline__center-block .uagb-timeline__date-new{display:block}.uagb-timeline__right-block .uagb-timeline__day-left .uagb-timeline__events-inner-new,.uagb-timeline__right-block .uagb-timeline__day-right .uagb-timeline__events-inner-new{text-align:inherit}.uagb-timeline__right-block .uagb-timeline__line{right:16px;left:auto}.uagb-timeline__right-block .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__right-block .uagb-timeline__left .uagb-timeline__arrow:after{top:0}.uagb-timeline__right-block .uagb-timeline__right .uagb-timeline__arrow,.uagb-timeline__right-block .uagb-timeline__left .uagb-timeline__arrow{top:0;right:0;width:10px;height:40px;position:absolute}.uagb-timeline__right-block .uagb-timeline__right .uagb-timeline__arrow{right:-12px}.uagb-timeline__right-block .uagb-timeline__left .uagb-timeline__arrow{right:-10px}.uagb-timeline__right-block .uagb-timeline__marker,.uagb-timeline__right-block .uagb-timeline__day-new{max-width:100%;position:relative}.uagb-timeline__right-block .uagb-timeline__day-new{margin-right:14px}.uagb-timeline__right-block .uagb-timeline__marker{flex-shrink:0;flex-grow:0}.uagb-timeline__right-block .uagb-timeline__day-new{flex-grow:1}.uagb-timeline__left-block .uagb-timeline__marker,.uagb-timeline__left-block .uagb-timeline__day-new{max-width:100%;position:relative}.uagb-timeline__left-block .uagb-timeline__line{left:20px;right:auto}.uagb-timeline__left-block .uagb-timeline__day-new{margin-left:14px;flex-grow:1;order:1}.uagb-timeline__left-block .uagb-timeline__marker{order:0;flex-shrink:0;flex-grow:0}.uagb-timeline__left-block .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__left-block .uagb-timeline__left .uagb-timeline__arrow:after{top:0}.uagb-timeline__left-block .uagb-timeline__right .uagb-timeline__arrow,.uagb-timeline__left-block .uagb-timeline__left .uagb-timeline__arrow{top:0;width:10px;height:40px;position:absolute}.uagb-timeline__left-block .uagb-timeline__right .uagb-timeline__arrow{left:-10px}.uagb-timeline__left-block .uagb-timeline__left .uagb-timeline__arrow{left:-12px}.uagb-timeline__left-block .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__left-block .uagb-timeline__left .uagb-timeline__arrow:after,.uagb-timeline__right-block .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__right-block .uagb-timeline__left .uagb-timeline__arrow:after{top:50%;transform:translateY(-50%)}.uagb-timeline__marker{background-color:#eeeeee;border-radius:999px;position:relative;display:flex;align-items:center;justify-content:center;z-index:1;transition:all .2s ease-in-out}.uagb-timeline__main .uagb-timeline__days .uagb-timeline__field-wrap:hover .uagb-timeline__marker{transition:all .2s ease-in-out}.uagb-timeline__center-block .uagb-timeline__marker{order:1;flex-shrink:0;flex-grow:0}.uagb-timeline__center-block .uagb-timeline__day-new,.uagb-timeline__center-block .uagb-timeline__date-new{flex-grow:1;flex-basis:50%;max-width:100%;position:relative}.uagb-timeline__center-block .uagb-timeline__right .uagb-timeline__day-new{order:2;padding-left:0;padding-right:12px}.uagb-timeline__center-block .uagb-timeline__left .uagb-timeline__day-new{order:2;padding-right:0;padding-left:12px}.uagb-timeline__events-inner-new{padding:40px}.uagb-timeline__center-block .uagb-timeline__left .uagb-timeline__date-new{display:flex;justify-content:flex-end}.uagb-timeline__center-block .uagb-timeline__right .uagb-timeline__date-new{display:flex;justify-content:flex-start}.uagb-timeline__left-block .uagb-timeline__date-new{margin-right:10px}.uagb-timeline__right-block .uagb-timeline__date-new{margin-left:10px}.uagb-timeline__right-block .uagb-timeline__date-new{display:flex;align-items:center}.uagb-timeline__center-block .uagb-timeline__right .uagb-timeline__arrow{right:0px;top:0;width:10px;height:40px;position:absolute}.uagb-timeline__center-block .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block .uagb-timeline__left .uagb-timeline__arrow:after{top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.uagb-timeline__center-block .uagb-timeline__left .uagb-timeline__arrow{left:0px;top:0;width:10px;height:40px;position:absolute}.uagb-timeline__arrow-center .uagb-timeline__widget{align-items:center}.uagb-timeline__arrow-bottom .uagb-timeline__widget{align-items:flex-end}.uagb-timeline__arrow-center .uagb-timeline__left .uagb-timeline__arrow,.uagb-timeline__arrow-center .uagb-timeline__right .uagb-timeline__arrow{top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.uagb-timeline__arrow-bottom .uagb-timeline__left .uagb-timeline__arrow,.uagb-timeline__arrow-bottom .uagb-timeline__right .uagb-timeline__arrow{top:100%;transform:translateY(-100%)}.uagb-timeline__day-right .uagb-timeline__events-inner{text-align:right}.uagb-timeline__day-left .uagb-timeline__events-inner{text-align:left}.uagb-timeline__arrow-top .uagb-timeline__date-new .uagb-timeline__date-new,.uagb-timeline__arrow-bottom .uagb-timeline__date-new .uagb-timeline__date-new{padding-top:8px;padding-bottom:8px}.uagb-timeline__events-inner-new,.uagb-timeline__arrow{transition:background .2s ease-in-out}.uagb-timeline__arrow:after{transition:border-color .2s ease-in-out}.uagb-timeline__date-new{transition:color .2s ease-in-out}.uagb-timeline__widget.uagb-timeline__left.hide-events .uagb-timeline__events-inner-new,.uagb-timeline__widget.uagb-timeline__left.hide-events .uagb-timeline__date-new{visibility:hidden}.uagb-timeline__widget.uagb-timeline__right.hide-events .uagb-timeline__events-inner-new,.uagb-timeline__widget.uagb-timeline__right.hide-events .uagb-timeline__date-new{visibility:hidden}.uagb-timeline__main .uagb-timeline__year{display:flex;position:relative}.uagb-timeline__main .uagb-timeline__year span{display:inline-block;padding-bottom:6px}.uagb-timeline__day-left .uagb-timeline__arrow:after{content:'';left:0px;position:absolute;display:inline;width:0;height:0;border-top:12px solid transparent;border-bottom:12px solid transparent}.uagb-timeline__right .uagb-timeline__day-left .uagb-timeline__arrow:after{right:0}.uagb-timeline__day-right .uagb-timeline__arrow:after{content:'';right:0px;position:absolute;display:inline;width:0;height:0;border-top:12px solid transparent;border-bottom:12px solid transparent}.uagb-timeline__icon{width:100px;height:100px;-webkit-border-radius:50%;border-radius:50%;text-align:center;line-height:100px;vertical-align:middle;position:relative;z-index:1}.uagb-timeline__main .uagb-timeline__date .uagb-timeline__inner-date-new{white-space:nowrap;margin:0px}.uagb-timeline__main .uagb-timeline__line{position:absolute;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%)}.uagb-timeline__right-block .uagb-timeline__main .uagb-timeline__line{position:absolute;-webkit-transform:translateX(50%);-ms-transform:translateX(50%);transform:translateX(50%)}.uagb-timeline__center-block .uagb-timeline__line{left:50%;right:auto}.uagb-timeline__main .in-view i.uagb-timeline__in-view-icon{-webkit-transition:background 0.25s ease-out 0.25s, width 0.25s ease-in-out, height 0.25s ease-in-out, color 0.25s ease-in-out, font-size 0.25s ease-in-out;-webkit-transition:background 0.25s ease-out 0.25s, width 0.25s ease-in-out, height 0.25s ease-in-out, color 0.25s ease-in-out, font-size 0.25s ease-out;transition:background 0.25s ease-out 0.25s, width 0.25s ease-in-out, height 0.25s ease-in-out, color 0.25s ease-in-out, font-size 0.25s ease-out}.uagb-timeline__left-block .uagb-timeline__days{text-align:left}.uagb-timeline__left-block .uagb-timeline__day-right .uagb-timeline__arrow:after{content:'';position:absolute;display:inline;width:0;height:0;border-top:12px solid transparent;border-bottom:12px solid transparent}.uagb-timeline__center-block .uagb-timeline__days{text-align:center}.uagb-timeline__center-block .uagb-timeline__day-right .uagb-timeline__arrow:after{content:'';right:0px;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);position:absolute;display:inline;width:0;height:0;border-top:12px solid transparent;border-bottom:12px solid transparent}.uagb-timeline__right .uagb-timeline__days{text-align:right}.uagb-timeline__outer-wrap span.dashicons-admin-users.dashicons{display:inline;vertical-align:baseline;margin-right:4px}@media screen and (max-width: 1023px){.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__line{position:absolute;-webkit-transform:translateX(50%);-ms-transform:translateX(50%);transform:translateX(50%)}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__date-hide{display:block}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-left .uagb-timeline__events-inner-new,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-right .uagb-timeline__events-inner-new{text-align:left}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__line{right:20px;left:auto}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__marker,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-new{max-width:100%;position:relative}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__line{left:20px;right:auto}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-new{margin-left:16px}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__marker{-webkit-box-ordinal-group:1;-webkit-order:0;-moz-box-ordinal-group:1;-ms-flex-order:0;order:0;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;-webkit-box-flex:0;-webkit-flex-grow:0;-moz-box-flex:0;-ms-flex-positive:0;flex-grow:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-new{-webkit-box-flex:1;-webkit-flex-grow:1;-moz-box-flex:1;-ms-flex-positive:1;flex-grow:1;-webkit-box-ordinal-group:2;-webkit-order:1;-moz-box-ordinal-group:2;-ms-flex-order:1;order:1}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__left .uagb-timeline__arrow:after{top:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__right .uagb-timeline__arrow,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__left .uagb-timeline__arrow{width:10px;height:40px;position:absolute}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__right .uagb-timeline__arrow{left:-10px}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__left .uagb-timeline__arrow{left:-12px}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__left .uagb-timeline__arrow:after{top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__days{text-align:left}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-right .uagb-timeline__arrow:after{content:'';position:absolute;display:inline;width:0;height:0;border-top:12px solid transparent;border-bottom:12px solid transparent}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__widget.uagb-timeline__right{-webkit-box-orient:unset;-webkit-box-direction:unset;-webkit-flex-direction:unset;-moz-box-orient:unset;-moz-box-direction:unset;-ms-flex-direction:unset;flex-direction:unset}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__date-new{display:none}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-new,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__date-new{-webkit-box-flex:unset;-webkit-flex-grow:unset;-moz-box-flex:unset;-ms-flex-positive:unset;flex-grow:unset;-webkit-flex-basis:unset;-ms-flex-preferred-size:unset;flex-basis:unset;max-width:100%;width:100%;position:relative}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__right .uagb-timeline__day-new{-webkit-box-ordinal-group:unset;-webkit-order:unset;-moz-box-ordinal-group:unset;-ms-flex-order:unset;order:unset;padding-left:0;padding-right:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__left .uagb-timeline__day-new{-webkit-box-ordinal-group:unset;-webkit-order:unset;-moz-box-ordinal-group:unset;-ms-flex-order:unset;order:unset;padding-right:0;padding-left:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__left .uagb-timeline__date-new{display:none}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__right .uagb-timeline__date-new{display:none}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__widget{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-webkit-flex-direction:row-reverse;-moz-box-orient:horizontal;-moz-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__day-left .uagb-timeline__events-inner-new,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__day-right .uagb-timeline__events-inner-new{text-align:right}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__line{right:16px;left:auto}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__arrow:after{top:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__arrow,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__arrow{left:auto;right:0;width:10px;height:40px;position:absolute}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__arrow{right:-12px}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__arrow{right:-10px}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__marker,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__day-new{max-width:100%;position:relative}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__day-new{margin-right:16px}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__marker{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;-webkit-box-flex:0;-webkit-flex-grow:0;-moz-box-flex:0;-ms-flex-positive:0;flex-grow:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__day-new{-webkit-box-flex:1;-webkit-flex-grow:1;-moz-box-flex:1;-ms-flex-positive:1;flex-grow:1}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__arrow:after{top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__days{text-align:right}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__day-new,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__date-new{-webkit-box-flex:unset;-webkit-flex-grow:unset;-moz-box-flex:unset;-ms-flex-positive:unset;flex-grow:unset;-webkit-flex-basis:unset;-ms-flex-preferred-size:unset;flex-basis:unset;max-width:100%;position:relative}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__day-new{-webkit-box-ordinal-group:unset;-webkit-order:unset;-moz-box-ordinal-group:unset;-ms-flex-order:unset;order:unset;padding-left:0;padding-right:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__day-new{-webkit-box-ordinal-group:unset;-webkit-order:unset;-moz-box-ordinal-group:unset;-ms-flex-order:unset;order:unset;padding-right:0;padding-left:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__date-new{display:none}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__date-new{display:none}}@media screen and (max-width: 767px){.uagb-timeline-responsive-none .uagb-timeline__events-inner-new{padding:15px}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__date-hide{display:block}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-left .uagb-timeline__events-inner-new,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-right .uagb-timeline__events-inner-new{text-align:left}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__line{right:20px;left:auto}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__marker,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-new{max-width:100%;position:relative}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__line{left:20px;right:auto}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-new{margin-left:16px}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__marker{-webkit-box-ordinal-group:1;-webkit-order:0;-moz-box-ordinal-group:1;-ms-flex-order:0;order:0;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;-webkit-box-flex:0;-webkit-flex-grow:0;-moz-box-flex:0;-ms-flex-positive:0;flex-grow:0}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-new{-webkit-box-flex:1;-webkit-flex-grow:1;-moz-box-flex:1;-ms-flex-positive:1;flex-grow:1;-webkit-box-ordinal-group:2;-webkit-order:1;-moz-box-ordinal-group:2;-ms-flex-order:1;order:1}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__left .uagb-timeline__arrow:after{top:0}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__right .uagb-timeline__arrow,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__left .uagb-timeline__arrow{width:10px;height:40px;position:absolute}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__right .uagb-timeline__arrow{left:-10px}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__left .uagb-timeline__arrow{left:-12px}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__left .uagb-timeline__arrow:after{top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.uagb-timeline__day-left .uagb-timeline__events-inner-new{text-align:left}.uagb-timeline__left-block .uagb-timeline__date-new{margin-right:10px}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__days{text-align:left}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-right .uagb-timeline__arrow:after{content:'';position:absolute;display:inline;width:0;height:0;border-top:12px solid transparent;border-bottom:12px solid transparent}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__widget.uagb-timeline__right{-webkit-box-orient:unset;-webkit-box-direction:unset;-webkit-flex-direction:unset;-moz-box-orient:unset;-moz-box-direction:unset;-ms-flex-direction:unset;flex-direction:unset}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__date-new{display:none}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-new,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__date-new{-webkit-box-flex:unset;-webkit-flex-grow:unset;-moz-box-flex:unset;-ms-flex-positive:unset;flex-grow:unset;-webkit-flex-basis:unset;-ms-flex-preferred-size:unset;flex-basis:unset;max-width:100%;position:relative}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__right .uagb-timeline__day-new{-webkit-box-ordinal-group:unset;-webkit-order:unset;-moz-box-ordinal-group:unset;-ms-flex-order:unset;order:unset;padding-left:0;padding-right:0}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__left .uagb-timeline__day-new{-webkit-box-ordinal-group:unset;-webkit-order:unset;-moz-box-ordinal-group:unset;-ms-flex-order:unset;order:unset;padding-right:0;padding-left:0}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__left .uagb-timeline__date-new{display:none}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__right .uagb-timeline__date-new{display:none}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__widget{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-webkit-flex-direction:row-reverse;-moz-box-orient:horizontal;-moz-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__day-left .uagb-timeline__events-inner-new,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__day-right .uagb-timeline__events-inner-new{text-align:right}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__line{right:16px;left:auto}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__arrow:after{top:0}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__arrow,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__arrow{left:auto;right:0;width:10px;height:40px;position:absolute}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__arrow{right:-12px}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__arrow{right:-10px}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__marker,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__day-new{max-width:100%;position:relative}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__day-new{margin-right:16px}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__marker{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;-webkit-box-flex:0;-webkit-flex-grow:0;-moz-box-flex:0;-ms-flex-positive:0;flex-grow:0}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__day-new{-webkit-box-flex:1;-webkit-flex-grow:1;-moz-box-flex:1;-ms-flex-positive:1;flex-grow:1}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__arrow:after{top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__line{position:absolute;-webkit-transform:translateX(50%);-ms-transform:translateX(50%);transform:translateX(50%)}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__days{text-align:right}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__day-new,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__date-new{-webkit-box-flex:unset;-webkit-flex-grow:unset;-moz-box-flex:unset;-ms-flex-positive:unset;flex-grow:unset;-webkit-flex-basis:unset;-ms-flex-preferred-size:unset;flex-basis:unset;max-width:100%;position:relative}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__day-new{-webkit-box-ordinal-group:unset;-webkit-order:unset;-moz-box-ordinal-group:unset;-ms-flex-order:unset;order:unset;padding-left:0;padding-right:0}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__day-new{-webkit-box-ordinal-group:unset;-webkit-order:unset;-moz-box-ordinal-group:unset;-ms-flex-order:unset;order:unset;padding-right:0;padding-left:0}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__date-new{display:none}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__date-new{display:none}}.uagb-timeline__line__inner{background-color:#61ce70;width:100%}.uagb-timeline__center-block .uagb-timeline__day-right .uagb-timeline__arrow:after{border-left:13px solid #eeeeee}.uagb-timeline__right-block .uagb-timeline__day-right .uagb-timeline__arrow:after{border-left:13px solid #eeeeee}.uagb-timeline__right-block .uagb-timeline__day-left .uagb-timeline__arrow:after{border-left:13px solid #eeeeee}.rtl .uagb-timeline__center-block .uagb-timeline__day-right .uagb-timeline__arrow:after{border-right:13px solid #eeeeee;border-left:none}.rtl .uagb-timeline__right-block .uagb-timeline__day-right .uagb-timeline__arrow:after{border-right:13px solid #eeeeee;border-left:none}.rtl .uagb-timeline__right-block .uagb-timeline__day-left .uagb-timeline__arrow:after{border-right:13px solid #eeeeee;border-left:none}.uagb-timeline__left-block .uagb-timeline__day-right .uagb-timeline__arrow:after{border-right:13px solid #eeeeee}.uagb-timeline__center-block .uagb-timeline__day-left .uagb-timeline__arrow:after{border-right:13px solid #eeeeee}.uagb-timeline__left-block .uagb-timeline__day-left .uagb-timeline__arrow:after{border-right:13px solid #eeeeee}.rtl .uagb-timeline__left-block .uagb-timeline__day-right .uagb-timeline__arrow:after{border-left:13px solid #eeeeee;border-right:none}.rtl .uagb-timeline__center-block .uagb-timeline__day-left .uagb-timeline__arrow:after{border-left:13px solid #eeeeee;border-right:none}.rtl .uagb-timeline__left-block .uagb-timeline__day-left .uagb-timeline__arrow:after{border-left:13px solid #eeeeee;border-right:none}.uagb-timeline__day-right .uagb-timeline__events-inner-new{border-radius:4px 4px 4px 4px}.uagb-timeline__day-left .uagb-timeline__events-inner-new{border-radius:4px 4px 4px 4px}.uagb-timeline__line{width:3px}.uagb-timeline__main .uagb-timeline__icon-new{font-size:16px}.uagb-timeline__marker{min-height:3em;min-width:3em;line-height:3em}.uagb-timeline__arrow{height:3em}.uagb-timeline__left-block .uagb-timeline__line{left:calc(3em / 2)}.uagb-timeline__right-block .uagb-timeline__line{right:calc(3em / 2)}.rtl .uagb-timeline__left-block .uagb-timeline__line{right:calc(3em / 2);left:auto}.rtl .uagb-timeline__right-block .uagb-timeline__line{left:calc(3em / 2);right:auto}.uagb-timeline-desc-content p{font-size:inherit}.uagb-timeline__main p:empty{display:none}@media (max-width: 976px){.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__line{position:absolute;-webkit-transform:translateX(50%);-ms-transform:translateX(50%);transform:translateX(50%)}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__line{position:absolute;-webkit-transform:translateX(50%);-ms-transform:translateX(50%);transform:translateX(50%)}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__date-hide{display:block}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-left .uagb-timeline__events-inner-new,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-right .uagb-timeline__events-inner-new{text-align:left}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__line{right:20px;left:auto}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__marker,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-new{max-width:100%;position:relative}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__line{left:20px;right:auto}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-new{margin-left:16px}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__marker{-ms-flex-order:0;order:0;-ms-flex-negative:0;flex-shrink:0;-ms-flex-positive:0;flex-grow:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-new{-ms-flex-positive:1;flex-grow:1;-ms-flex-order:1;order:1}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__left .uagb-timeline__arrow:after{top:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__right .uagb-timeline__arrow,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__left .uagb-timeline__arrow{width:10px;height:40px;position:absolute}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__right .uagb-timeline__arrow{left:-10px}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__left .uagb-timeline__arrow{left:-12px}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__left .uagb-timeline__arrow:after{top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__days{text-align:left}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-right .uagb-timeline__arrow:after{content:'';position:absolute;display:inline;width:0;height:0;border-top:12px solid transparent;border-bottom:12px solid transparent}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__widget.uagb-timeline__right{-ms-flex-direction:unset;flex-direction:unset}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__date-new{display:none}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-new,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__date-new{-ms-flex-positive:unset;flex-grow:unset;-ms-flex-preferred-size:unset;flex-basis:unset;max-width:100%;width:100%;position:relative}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__right .uagb-timeline__day-new{-ms-flex-order:unset;order:unset;padding-left:0;padding-right:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__left .uagb-timeline__day-new{-ms-flex-order:unset;order:unset;padding-right:0;padding-left:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__left .uagb-timeline__date-new{display:none}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__right .uagb-timeline__date-new{display:none}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__widget{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__day-left .uagb-timeline__events-inner-new,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__day-right .uagb-timeline__events-inner-new{text-align:right}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__line{right:16px;left:auto}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__arrow:after{top:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__arrow,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__arrow{left:auto;right:0;width:10px;height:40px;position:absolute}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__arrow{right:-12px}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__arrow{right:-10px}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__marker,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__day-new{max-width:100%;position:relative}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__day-new{margin-right:16px}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__marker{-ms-flex-negative:0;flex-shrink:0;-ms-flex-positive:0;flex-grow:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__day-new{-ms-flex-positive:1;flex-grow:1}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__arrow:after{top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__days{text-align:right}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__day-new,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__date-new{-ms-flex-positive:unset;flex-grow:unset;-ms-flex-preferred-size:unset;flex-basis:unset;max-width:100%;position:relative}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__day-new{-ms-flex-order:unset;order:unset;padding-left:0;padding-right:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__day-new{-ms-flex-order:unset;order:unset;padding-right:0;padding-left:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__date-new,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__date-new{display:none}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-left .uagb-timeline__arrow:after{border-right:13px solid #eeeeee;border-left:none}.uagb-timeline__responsive-tablet.uagb-timeline__center-block .uagb-timeline__author,.uagb-timeline__responsive-tablet.uagb-timeline__center-block .uagb-timeline__link_parent,.uagb-timeline__responsive-tablet.uagb-timeline__center-block .uagb-timeline__image a,.uagb-timeline__responsive-tablet.uagb-timeline__center-block .uagb-timeline__heading,.uagb-timeline__responsive-tablet.uagb-timeline__center-block .uagb-timeline-desc-content,.uagb-timeline__responsive-tablet.uagb-timeline__center-block .uagb-timeline__date-inner{text-align:left}.uagb-timeline__responsive-tablet.uagb-timeline__center-block .uagb-timeline__date-hide.uagb-timeline__date-inner{text-align:left}}@media (max-width: 767px){.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-left .uagb-timeline__arrow:after,.rtl .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__day-right .uagb-timeline__arrow:after,.rtl .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__day-left .uagb-timeline__arrow:after{border-right:13px solid #eeeeee;border-left:none}.rtl .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-right .uagb-timeline__arrow:after,.rtl .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-left .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__day-right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__day-left .uagb-timeline__arrow:after{border-left:13px solid #eeeeee;border-right:none}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__line,.rtl .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__line{left:calc(3em / 2);right:auto}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__line,.rtl .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__line{right:calc(3em / 2);left:auto}.uagb-timeline__responsive-mobile.uagb-timeline__center-block .uagb-timeline__author,.uagb-timeline__responsive-mobile.uagb-timeline__center-block .uagb-timeline__link_parent,.uagb-timeline__responsive-mobile.uagb-timeline__center-block .uagb-timeline__image a,.uagb-timeline__responsive-mobile.uagb-timeline__center-block .uagb-timeline__heading,.uagb-timeline__responsive-mobile.uagb-timeline__center-block .uagb-timeline-desc-content,.uagb-timeline__responsive-mobile.uagb-timeline__center-block .uagb-timeline__date-inner{text-align:left}.uagb-timeline__responsive-mobile.uagb-timeline__center-block .uagb-timeline__date-hide.uagb-timeline__date-inner{text-align:left}} +.uagb-timeline__widget{position:relative;display:flex;align-items:flex-start;font-size:inherit;color:inherit;margin-bottom:inherit}.uagb-timeline__widget a{text-decoration:none;color:inherit;font-size:inherit;margin-bottom:inherit}.uagb-timeline__image a{display:block;position:relative;max-width:100%}.uagb-timeline__image img{display:inline-block;box-sizing:content-box}.uagb-timeline__author{text-transform:uppercase}.uagb-timeline__main{position:relative}.uagb-content{word-break:break-word}a.uagb-timeline__link{padding:5px 10px;display:inline-block}.uagb-timeline__headingh1,.uagb-timeline__headingh2,.uagb-timeline__headingh3,.uagb-timeline__headingh4,.uagb-timeline__headingh5,.uagb-timeline__headingh6{margin-bottom:0px}.uagb-timeline__inner-date-new p,.uagb-timeline__date-inner .uagb-timeline__inner-date-new p{margin-bottom:0px}.uagb-timeline__line{background-color:#eeeeee}.uagb-timeline__line__inner{background-color:#5cb85c;width:100%}.uagb-timeline__main .uagb-timeline__icon-new{line-height:1em;display:inline-block;vertical-align:middle;font-style:normal}.uagb-timeline__center-block .uagb-timeline__date-hide{display:none}.uagb-timeline__field:not(:last-child){margin-bottom:20px}.uagb-timeline__field{margin-bottom:20px}.uagb-timeline__center-block .uagb-timeline__widget.uagb-timeline__right,.uagb-timeline__right-block .uagb-timeline__widget{flex-direction:row-reverse}.uagb-timeline__left-block .uagb-timeline__day-left .uagb-timeline__events-inner-new,.uagb-timeline__left-block .uagb-timeline__day-right .uagb-timeline__events-inner-new{text-align:left}.uagb-timeline__right-block .uagb-timeline__center-block .uagb-timeline__date-new{display:block}.uagb-timeline__right-block .uagb-timeline__day-left .uagb-timeline__events-inner-new,.uagb-timeline__right-block .uagb-timeline__day-right .uagb-timeline__events-inner-new{text-align:inherit}.uagb-timeline__right-block .uagb-timeline__line{right:16px;left:auto}.uagb-timeline__right-block .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__right-block .uagb-timeline__left .uagb-timeline__arrow:after{top:0}.uagb-timeline__right-block .uagb-timeline__right .uagb-timeline__arrow,.uagb-timeline__right-block .uagb-timeline__left .uagb-timeline__arrow{top:0;right:0;width:10px;height:40px;position:absolute}.uagb-timeline__right-block .uagb-timeline__right .uagb-timeline__arrow{right:-12px}.uagb-timeline__right-block .uagb-timeline__left .uagb-timeline__arrow{right:-10px}.uagb-timeline__right-block .uagb-timeline__marker,.uagb-timeline__right-block .uagb-timeline__day-new{max-width:100%;position:relative}.uagb-timeline__right-block .uagb-timeline__day-new{margin-right:14px}.uagb-timeline__right-block .uagb-timeline__marker{flex-shrink:0;flex-grow:0}.uagb-timeline__right-block .uagb-timeline__day-new{flex-grow:1}.uagb-timeline__left-block .uagb-timeline__marker,.uagb-timeline__left-block .uagb-timeline__day-new{max-width:100%;position:relative}.uagb-timeline__left-block .uagb-timeline__line{left:20px;right:auto}.uagb-timeline__left-block .uagb-timeline__day-new{margin-left:14px;flex-grow:1;order:1}.uagb-timeline__left-block .uagb-timeline__marker{order:0;flex-shrink:0;flex-grow:0}.uagb-timeline__left-block .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__left-block .uagb-timeline__left .uagb-timeline__arrow:after{top:0}.uagb-timeline__left-block .uagb-timeline__right .uagb-timeline__arrow,.uagb-timeline__left-block .uagb-timeline__left .uagb-timeline__arrow{top:0;width:10px;height:40px;position:absolute}.uagb-timeline__left-block .uagb-timeline__right .uagb-timeline__arrow{left:-10px}.uagb-timeline__left-block .uagb-timeline__left .uagb-timeline__arrow{left:-12px}.uagb-timeline__left-block .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__left-block .uagb-timeline__left .uagb-timeline__arrow:after,.uagb-timeline__right-block .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__right-block .uagb-timeline__left .uagb-timeline__arrow:after{top:50%;transform:translateY(-50%)}.uagb-timeline__marker{background-color:#eeeeee;border-radius:999px;position:relative;display:flex;align-items:center;justify-content:center;z-index:1;transition:all .2s ease-in-out}.uagb-timeline__main .uagb-timeline__days .uagb-timeline__field-wrap:hover .uagb-timeline__marker{transition:all .2s ease-in-out}.uagb-timeline__center-block .uagb-timeline__marker{order:1;flex-shrink:0;flex-grow:0}.uagb-timeline__center-block .uagb-timeline__day-new,.uagb-timeline__center-block .uagb-timeline__date-new{flex-grow:1;flex-basis:50%;max-width:100%;position:relative}.uagb-timeline__center-block .uagb-timeline__right .uagb-timeline__day-new{order:2;padding-left:0;padding-right:12px}.uagb-timeline__center-block .uagb-timeline__left .uagb-timeline__day-new{order:2;padding-right:0;padding-left:12px}.uagb-timeline__events-inner-new{padding:40px}.uagb-timeline__center-block .uagb-timeline__left .uagb-timeline__date-new{display:flex;justify-content:flex-end}.uagb-timeline__center-block .uagb-timeline__right .uagb-timeline__date-new{display:flex;justify-content:flex-start}.uagb-timeline__left-block .uagb-timeline__date-new{margin-right:10px}.uagb-timeline__right-block .uagb-timeline__date-new{margin-left:10px}.uagb-timeline__right-block .uagb-timeline__date-new{display:flex;align-items:center}.uagb-timeline__center-block .uagb-timeline__right .uagb-timeline__arrow{right:0px;top:0;width:10px;height:40px;position:absolute}.uagb-timeline__center-block .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block .uagb-timeline__left .uagb-timeline__arrow:after{top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.uagb-timeline__center-block .uagb-timeline__left .uagb-timeline__arrow{left:0px;top:0;width:10px;height:40px;position:absolute}.uagb-timeline__arrow-center .uagb-timeline__widget{align-items:center}.uagb-timeline__arrow-bottom .uagb-timeline__widget{align-items:flex-end}.uagb-timeline__arrow-center .uagb-timeline__left .uagb-timeline__arrow,.uagb-timeline__arrow-center .uagb-timeline__right .uagb-timeline__arrow{top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.uagb-timeline__arrow-bottom .uagb-timeline__left .uagb-timeline__arrow,.uagb-timeline__arrow-bottom .uagb-timeline__right .uagb-timeline__arrow{top:100%;transform:translateY(-100%)}.uagb-timeline__day-right .uagb-timeline__events-inner{text-align:right}.uagb-timeline__day-left .uagb-timeline__events-inner{text-align:left}.uagb-timeline__arrow-top .uagb-timeline__date-new .uagb-timeline__date-new,.uagb-timeline__arrow-bottom .uagb-timeline__date-new .uagb-timeline__date-new{padding-top:8px;padding-bottom:8px}.uagb-timeline__events-inner-new,.uagb-timeline__arrow{transition:background .2s ease-in-out}.uagb-timeline__arrow:after{transition:border-color .2s ease-in-out}.uagb-timeline__date-new{transition:color .2s ease-in-out}.uagb-timeline__widget.uagb-timeline__left.hide-events .uagb-timeline__events-inner-new,.uagb-timeline__widget.uagb-timeline__left.hide-events .uagb-timeline__date-new{visibility:hidden}.uagb-timeline__widget.uagb-timeline__right.hide-events .uagb-timeline__events-inner-new,.uagb-timeline__widget.uagb-timeline__right.hide-events .uagb-timeline__date-new{visibility:hidden}.uagb-timeline__main .uagb-timeline__year{display:flex;position:relative}.uagb-timeline__main .uagb-timeline__year span{display:inline-block;padding-bottom:6px}.uagb-timeline__day-left .uagb-timeline__arrow:after{content:'';left:0px;position:absolute;display:inline;width:0;height:0;border-top:12px solid transparent;border-bottom:12px solid transparent}.uagb-timeline__right .uagb-timeline__day-left .uagb-timeline__arrow:after{right:0}.uagb-timeline__day-right .uagb-timeline__arrow:after{content:'';right:0px;position:absolute;display:inline;width:0;height:0;border-top:12px solid transparent;border-bottom:12px solid transparent}.uagb-timeline__icon{width:100px;height:100px;-webkit-border-radius:50%;border-radius:50%;text-align:center;line-height:100px;vertical-align:middle;position:relative;z-index:1}.uagb-timeline__main .uagb-timeline__date .uagb-timeline__inner-date-new{white-space:nowrap;margin:0px}.uagb-timeline__main .uagb-timeline__line{position:absolute;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%)}.uagb-timeline__right-block .uagb-timeline__main .uagb-timeline__line{position:absolute;-webkit-transform:translateX(50%);-ms-transform:translateX(50%);transform:translateX(50%)}.uagb-timeline__center-block .uagb-timeline__line{left:50%;right:auto}.uagb-timeline__main .in-view i.uagb-timeline__in-view-icon{-webkit-transition:background 0.25s ease-out 0.25s, width 0.25s ease-in-out, height 0.25s ease-in-out, color 0.25s ease-in-out, font-size 0.25s ease-in-out;-webkit-transition:background 0.25s ease-out 0.25s, width 0.25s ease-in-out, height 0.25s ease-in-out, color 0.25s ease-in-out, font-size 0.25s ease-out;transition:background 0.25s ease-out 0.25s, width 0.25s ease-in-out, height 0.25s ease-in-out, color 0.25s ease-in-out, font-size 0.25s ease-out}.uagb-timeline__left-block .uagb-timeline__days{text-align:left}.uagb-timeline__left-block .uagb-timeline__day-right .uagb-timeline__arrow:after{content:'';position:absolute;display:inline;width:0;height:0;border-top:12px solid transparent;border-bottom:12px solid transparent}.uagb-timeline__center-block .uagb-timeline__days{text-align:center}.uagb-timeline__center-block .uagb-timeline__day-right .uagb-timeline__arrow:after{content:'';right:0px;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);position:absolute;display:inline;width:0;height:0;border-top:12px solid transparent;border-bottom:12px solid transparent}.uagb-timeline__right .uagb-timeline__days{text-align:right}.uagb-timeline__outer-wrap span.dashicons-admin-users.dashicons{display:inline;vertical-align:baseline;margin-right:4px}@media screen and (max-width: 1023px){.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__line{position:absolute;-webkit-transform:translateX(50%);-ms-transform:translateX(50%);transform:translateX(50%)}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__date-hide{display:block}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-left .uagb-timeline__events-inner-new,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-right .uagb-timeline__events-inner-new{text-align:left}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__line{right:20px;left:auto}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__marker,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-new{max-width:100%;position:relative}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__line{left:20px;right:auto}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-new{margin-left:16px}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__marker{-webkit-box-ordinal-group:1;-webkit-order:0;-moz-box-ordinal-group:1;-ms-flex-order:0;order:0;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;-webkit-box-flex:0;-webkit-flex-grow:0;-moz-box-flex:0;-ms-flex-positive:0;flex-grow:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-new{-webkit-box-flex:1;-webkit-flex-grow:1;-moz-box-flex:1;-ms-flex-positive:1;flex-grow:1;-webkit-box-ordinal-group:2;-webkit-order:1;-moz-box-ordinal-group:2;-ms-flex-order:1;order:1}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__left .uagb-timeline__arrow:after{top:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__right .uagb-timeline__arrow,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__left .uagb-timeline__arrow{width:10px;height:40px;position:absolute}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__right .uagb-timeline__arrow{left:-10px}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__left .uagb-timeline__arrow{left:-12px}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__left .uagb-timeline__arrow:after{top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__days{text-align:left}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-right .uagb-timeline__arrow:after{content:'';position:absolute;display:inline;width:0;height:0;border-top:12px solid transparent;border-bottom:12px solid transparent}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__widget.uagb-timeline__right{-webkit-box-orient:unset;-webkit-box-direction:unset;-webkit-flex-direction:unset;-moz-box-orient:unset;-moz-box-direction:unset;-ms-flex-direction:unset;flex-direction:unset}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__date-new{display:none}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-new,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__date-new{-webkit-box-flex:unset;-webkit-flex-grow:unset;-moz-box-flex:unset;-ms-flex-positive:unset;flex-grow:unset;-webkit-flex-basis:unset;-ms-flex-preferred-size:unset;flex-basis:unset;max-width:100%;width:100%;position:relative}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__right .uagb-timeline__day-new{-webkit-box-ordinal-group:unset;-webkit-order:unset;-moz-box-ordinal-group:unset;-ms-flex-order:unset;order:unset;padding-left:0;padding-right:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__left .uagb-timeline__day-new{-webkit-box-ordinal-group:unset;-webkit-order:unset;-moz-box-ordinal-group:unset;-ms-flex-order:unset;order:unset;padding-right:0;padding-left:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__left .uagb-timeline__date-new{display:none}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__right .uagb-timeline__date-new{display:none}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__widget{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-webkit-flex-direction:row-reverse;-moz-box-orient:horizontal;-moz-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__day-left .uagb-timeline__events-inner-new,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__day-right .uagb-timeline__events-inner-new{text-align:right}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__line{right:16px;left:auto}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__arrow:after{top:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__arrow,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__arrow{left:auto;right:0;width:10px;height:40px;position:absolute}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__arrow{right:-12px}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__arrow{right:-10px}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__marker,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__day-new{max-width:100%;position:relative}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__day-new{margin-right:16px}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__marker{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;-webkit-box-flex:0;-webkit-flex-grow:0;-moz-box-flex:0;-ms-flex-positive:0;flex-grow:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__day-new{-webkit-box-flex:1;-webkit-flex-grow:1;-moz-box-flex:1;-ms-flex-positive:1;flex-grow:1}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__arrow:after{top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__days{text-align:right}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__day-new,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__date-new{-webkit-box-flex:unset;-webkit-flex-grow:unset;-moz-box-flex:unset;-ms-flex-positive:unset;flex-grow:unset;-webkit-flex-basis:unset;-ms-flex-preferred-size:unset;flex-basis:unset;max-width:100%;position:relative}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__day-new{-webkit-box-ordinal-group:unset;-webkit-order:unset;-moz-box-ordinal-group:unset;-ms-flex-order:unset;order:unset;padding-left:0;padding-right:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__day-new{-webkit-box-ordinal-group:unset;-webkit-order:unset;-moz-box-ordinal-group:unset;-ms-flex-order:unset;order:unset;padding-right:0;padding-left:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__date-new{display:none}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__date-new{display:none}}@media screen and (max-width: 767px){.uagb-timeline-responsive-none .uagb-timeline__events-inner-new{padding:15px}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__date-hide{display:block}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-left .uagb-timeline__events-inner-new,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-right .uagb-timeline__events-inner-new{text-align:left}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__line{right:20px;left:auto}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__marker,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-new{max-width:100%;position:relative}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__line{left:20px;right:auto}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-new{margin-left:16px}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__marker{-webkit-box-ordinal-group:1;-webkit-order:0;-moz-box-ordinal-group:1;-ms-flex-order:0;order:0;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;-webkit-box-flex:0;-webkit-flex-grow:0;-moz-box-flex:0;-ms-flex-positive:0;flex-grow:0}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-new{-webkit-box-flex:1;-webkit-flex-grow:1;-moz-box-flex:1;-ms-flex-positive:1;flex-grow:1;-webkit-box-ordinal-group:2;-webkit-order:1;-moz-box-ordinal-group:2;-ms-flex-order:1;order:1}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__left .uagb-timeline__arrow:after{top:0}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__right .uagb-timeline__arrow,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__left .uagb-timeline__arrow{width:10px;height:40px;position:absolute}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__right .uagb-timeline__arrow{left:-10px}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__left .uagb-timeline__arrow{left:-12px}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__left .uagb-timeline__arrow:after{top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.uagb-timeline__day-left .uagb-timeline__events-inner-new{text-align:left}.uagb-timeline__left-block .uagb-timeline__date-new{margin-right:10px}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__days{text-align:left}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-right .uagb-timeline__arrow:after{content:'';position:absolute;display:inline;width:0;height:0;border-top:12px solid transparent;border-bottom:12px solid transparent}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__widget.uagb-timeline__right{-webkit-box-orient:unset;-webkit-box-direction:unset;-webkit-flex-direction:unset;-moz-box-orient:unset;-moz-box-direction:unset;-ms-flex-direction:unset;flex-direction:unset}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__date-new{display:none}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-new,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__date-new{-webkit-box-flex:unset;-webkit-flex-grow:unset;-moz-box-flex:unset;-ms-flex-positive:unset;flex-grow:unset;-webkit-flex-basis:unset;-ms-flex-preferred-size:unset;flex-basis:unset;max-width:100%;position:relative}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__right .uagb-timeline__day-new{-webkit-box-ordinal-group:unset;-webkit-order:unset;-moz-box-ordinal-group:unset;-ms-flex-order:unset;order:unset;padding-left:0;padding-right:0}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__left .uagb-timeline__day-new{-webkit-box-ordinal-group:unset;-webkit-order:unset;-moz-box-ordinal-group:unset;-ms-flex-order:unset;order:unset;padding-right:0;padding-left:0}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__left .uagb-timeline__date-new{display:none}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__right .uagb-timeline__date-new{display:none}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__widget{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-webkit-flex-direction:row-reverse;-moz-box-orient:horizontal;-moz-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__day-left .uagb-timeline__events-inner-new,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__day-right .uagb-timeline__events-inner-new{text-align:right}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__line{right:16px;left:auto}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__arrow:after{top:0}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__arrow,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__arrow{left:auto;right:0;width:10px;height:40px;position:absolute}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__arrow{right:-12px}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__arrow{right:-10px}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__marker,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__day-new{max-width:100%;position:relative}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__day-new{margin-right:16px}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__marker{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;-webkit-box-flex:0;-webkit-flex-grow:0;-moz-box-flex:0;-ms-flex-positive:0;flex-grow:0}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__day-new{-webkit-box-flex:1;-webkit-flex-grow:1;-moz-box-flex:1;-ms-flex-positive:1;flex-grow:1}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__arrow:after{top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__line{position:absolute;-webkit-transform:translateX(50%);-ms-transform:translateX(50%);transform:translateX(50%)}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__days{text-align:right}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__day-new,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__date-new{-webkit-box-flex:unset;-webkit-flex-grow:unset;-moz-box-flex:unset;-ms-flex-positive:unset;flex-grow:unset;-webkit-flex-basis:unset;-ms-flex-preferred-size:unset;flex-basis:unset;max-width:100%;position:relative}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__day-new{-webkit-box-ordinal-group:unset;-webkit-order:unset;-moz-box-ordinal-group:unset;-ms-flex-order:unset;order:unset;padding-left:0;padding-right:0}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__day-new{-webkit-box-ordinal-group:unset;-webkit-order:unset;-moz-box-ordinal-group:unset;-ms-flex-order:unset;order:unset;padding-right:0;padding-left:0}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__date-new{display:none}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__date-new{display:none}}.uagb-timeline__line__inner{background-color:#61ce70;width:100%}.uagb-timeline__center-block .uagb-timeline__day-right .uagb-timeline__arrow:after{border-left:13px solid #eeeeee}.uagb-timeline__right-block .uagb-timeline__day-right .uagb-timeline__arrow:after{border-left:13px solid #eeeeee}.uagb-timeline__right-block .uagb-timeline__day-left .uagb-timeline__arrow:after{border-left:13px solid #eeeeee}.rtl .uagb-timeline__center-block .uagb-timeline__day-right .uagb-timeline__arrow:after{border-right:13px solid #eeeeee;border-left:none}.rtl .uagb-timeline__right-block .uagb-timeline__day-right .uagb-timeline__arrow:after{border-right:13px solid #eeeeee;border-left:none}.rtl .uagb-timeline__right-block .uagb-timeline__day-left .uagb-timeline__arrow:after{border-right:13px solid #eeeeee;border-left:none}.uagb-timeline__left-block .uagb-timeline__day-right .uagb-timeline__arrow:after{border-right:13px solid #eeeeee}.uagb-timeline__center-block .uagb-timeline__day-left .uagb-timeline__arrow:after{border-right:13px solid #eeeeee}.uagb-timeline__left-block .uagb-timeline__day-left .uagb-timeline__arrow:after{border-right:13px solid #eeeeee}.rtl .uagb-timeline__left-block .uagb-timeline__day-right .uagb-timeline__arrow:after{border-left:13px solid #eeeeee;border-right:none}.rtl .uagb-timeline__center-block .uagb-timeline__day-left .uagb-timeline__arrow:after{border-left:13px solid #eeeeee;border-right:none}.rtl .uagb-timeline__left-block .uagb-timeline__day-left .uagb-timeline__arrow:after{border-left:13px solid #eeeeee;border-right:none}.uagb-timeline__day-right .uagb-timeline__events-inner-new{border-radius:4px 4px 4px 4px}.uagb-timeline__day-left .uagb-timeline__events-inner-new{border-radius:4px 4px 4px 4px}.uagb-timeline__line{width:3px}.uagb-timeline__main .uagb-timeline__icon-new{font-size:16px}.uagb-timeline__marker{min-height:3em;min-width:3em;line-height:3em}.uagb-timeline__arrow{height:3em}.uagb-timeline__left-block .uagb-timeline__line{left:calc(3em / 2)}.uagb-timeline__right-block .uagb-timeline__line{right:calc(3em / 2)}.rtl .uagb-timeline__left-block .uagb-timeline__line{right:calc(3em / 2);left:auto}.rtl .uagb-timeline__right-block .uagb-timeline__line{left:calc(3em / 2);right:auto}.uagb-timeline-desc-content p{font-size:inherit}.uagb-timeline__main p:empty{display:none}@media (max-width: 976px){.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__line{position:absolute;-webkit-transform:translateX(50%);-ms-transform:translateX(50%);transform:translateX(50%)}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__line{position:absolute;-webkit-transform:translateX(50%);-ms-transform:translateX(50%);transform:translateX(50%)}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__date-hide{display:block}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-left .uagb-timeline__events-inner-new,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-right .uagb-timeline__events-inner-new{text-align:left}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__line{right:20px;left:auto}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__marker,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-new{max-width:100%;position:relative}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__line{left:20px;right:auto}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-new{margin-left:16px}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__marker{-ms-flex-order:0;order:0;-ms-flex-negative:0;flex-shrink:0;-ms-flex-positive:0;flex-grow:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-new{-ms-flex-positive:1;flex-grow:1;-ms-flex-order:1;order:1}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__left .uagb-timeline__arrow:after{top:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__right .uagb-timeline__arrow,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__left .uagb-timeline__arrow{width:10px;height:40px;position:absolute}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__right .uagb-timeline__arrow{left:-10px}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__left .uagb-timeline__arrow{left:-12px}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__left .uagb-timeline__arrow:after{top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__days{text-align:left}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-right .uagb-timeline__arrow:after{content:'';position:absolute;display:inline;width:0;height:0;border-top:12px solid transparent;border-bottom:12px solid transparent}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__widget.uagb-timeline__right{-ms-flex-direction:unset;flex-direction:unset}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__date-new{display:none}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-new,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__date-new{-ms-flex-positive:unset;flex-grow:unset;-ms-flex-preferred-size:unset;flex-basis:unset;max-width:100%;width:100%;position:relative}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__right .uagb-timeline__day-new{-ms-flex-order:unset;order:unset;padding-left:0;padding-right:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__left .uagb-timeline__day-new{-ms-flex-order:unset;order:unset;padding-right:0;padding-left:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__left .uagb-timeline__date-new{display:none}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__right .uagb-timeline__date-new{display:none}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__widget{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__day-left .uagb-timeline__events-inner-new,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__day-right .uagb-timeline__events-inner-new{text-align:right}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__line{right:16px;left:auto}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__arrow:after{top:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__arrow,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__arrow{left:auto;right:0;width:10px;height:40px;position:absolute}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__arrow{right:-12px}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__arrow{right:-10px}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__marker,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__day-new{max-width:100%;position:relative}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__day-new{margin-right:16px}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__marker{-ms-flex-negative:0;flex-shrink:0;-ms-flex-positive:0;flex-grow:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__day-new{-ms-flex-positive:1;flex-grow:1}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__arrow:after{top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__days{text-align:right}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__day-new,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__date-new{-ms-flex-positive:unset;flex-grow:unset;-ms-flex-preferred-size:unset;flex-basis:unset;max-width:100%;position:relative}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__day-new{-ms-flex-order:unset;order:unset;padding-left:0;padding-right:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__day-new{-ms-flex-order:unset;order:unset;padding-right:0;padding-left:0}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__left .uagb-timeline__date-new,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-res-right .uagb-timeline__right .uagb-timeline__date-new{display:none}.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-left .uagb-timeline__arrow:after{border-right:13px solid #eeeeee;border-left:none}.uagb-timeline__responsive-tablet.uagb-timeline__center-block .uagb-timeline__author,.uagb-timeline__responsive-tablet.uagb-timeline__center-block .uagb-timeline__link_parent,.uagb-timeline__responsive-tablet.uagb-timeline__center-block .uagb-timeline__image a,.uagb-timeline__responsive-tablet.uagb-timeline__center-block .uagb-timeline__heading,.uagb-timeline__responsive-tablet.uagb-timeline__center-block .uagb-timeline-desc-content,.uagb-timeline__responsive-tablet.uagb-timeline__center-block .uagb-timeline__date-inner{text-align:left}.uagb-timeline__responsive-tablet.uagb-timeline__center-block .uagb-timeline__date-hide.uagb-timeline__date-inner{text-align:left}}@media (max-width: 767px){.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-left .uagb-timeline__arrow:after,.rtl .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__day-right .uagb-timeline__arrow:after,.rtl .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__day-left .uagb-timeline__arrow:after{border-right:13px solid #eeeeee;border-left:none}.rtl .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-right .uagb-timeline__arrow:after,.rtl .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-left .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__day-right .uagb-timeline__arrow:after,.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__day-left .uagb-timeline__arrow:after{border-left:13px solid #eeeeee;border-right:none}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__line,.rtl .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__line{left:calc(3em / 2);right:auto}.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-res-right .uagb-timeline__line,.rtl .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__line{right:calc(3em / 2);left:auto}.uagb-timeline__responsive-mobile.uagb-timeline__center-block .uagb-timeline__author,.uagb-timeline__responsive-mobile.uagb-timeline__center-block .uagb-timeline__link_parent,.uagb-timeline__responsive-mobile.uagb-timeline__center-block .uagb-timeline__image a,.uagb-timeline__responsive-mobile.uagb-timeline__center-block .uagb-timeline__heading,.uagb-timeline__responsive-mobile.uagb-timeline__center-block .uagb-timeline-desc-content,.uagb-timeline__responsive-mobile.uagb-timeline__center-block .uagb-timeline__date-inner{text-align:left}.uagb-timeline__responsive-mobile.uagb-timeline__center-block .uagb-timeline__date-hide.uagb-timeline__date-inner{text-align:left}}.wp-block-uagb-content-timeline .uagb-timeline__left-block .uagb-timeline__date-new{display:none}.wp-block-uagb-content-timeline .uagb-timeline__right-block .uagb-timeline__date-new{display:none} diff --git a/plugins/ultimate-addons-for-gutenberg/assets/js/faq.js b/plugins/ultimate-addons-for-gutenberg/assets/js/faq.js index ea892c76..9c70f61a 100644 --- a/plugins/ultimate-addons-for-gutenberg/assets/js/faq.js +++ b/plugins/ultimate-addons-for-gutenberg/assets/js/faq.js @@ -70,12 +70,14 @@ function setupFAQ() { var expandFirstelements = document.getElementsByClassName( 'uagb-faq-expand-first-true' ); var inactiveOtherelements = document.getElementsByClassName( 'uagb-faq-inactive-other-false' ); - if ( pattern.test( hashval ) ) { + if ( ( ((document.getElementById( hashval ) !== undefined) && (document.getElementById( hashval ) !== null) && (document.getElementById( hashval ) !== "")) && pattern.test( hashval ) )) { var elementToOpen = document.getElementById( hashval ); - elementToOpen.getElementsByClassName( 'uagb-faq-item' )[0].classList.add( 'uagb-faq-item-active' ); - elementToOpen.getElementsByClassName( 'uagb-faq-item' )[0].setAttribute( 'aria-expanded', true ); - slideDown( elementToOpen.getElementsByClassName( 'uagb-faq-content' )[0], 500 ); + if( elementToOpen.getElementsByClassName( 'uagb-faq-item' )[0] !== undefined ){ + elementToOpen.getElementsByClassName( 'uagb-faq-item' )[0].classList.add( 'uagb-faq-item-active' ); + elementToOpen.getElementsByClassName( 'uagb-faq-item' )[0].setAttribute( 'aria-expanded', true ); + slideDown( elementToOpen.getElementsByClassName( 'uagb-faq-content' )[0], 500 ); + } } else { for ( var item = 0; item < expandFirstelements.length; item++ ) { diff --git a/plugins/ultimate-addons-for-gutenberg/assets/js/forms.js b/plugins/ultimate-addons-for-gutenberg/assets/js/forms.js new file mode 100644 index 00000000..80235655 --- /dev/null +++ b/plugins/ultimate-addons-for-gutenberg/assets/js/forms.js @@ -0,0 +1,213 @@ + +( function( $ ) { + + UAGBForms = { + + init: function( attr, id ) { + + $scope = $( id ); + $form = $scope.find( '.uagb-forms-main-form' ); + + $submitButtonWrap = $form.find( '.uagb-forms-main-submit-button-wrap' ); + $submitButton = $form.find( '.uagb-forms-main-submit-button' ); + + $phoneinput = $form.find( '.uagb-forms-phone-input' ); + $phoneinput.on( 'keypress', function( e ) { + + var charCode = (e.which) ? e.which : e.keyCode + if(charCode == 45){ + return true + } + if (charCode > 31 && (charCode < 48 || charCode > 57 )){ + return false; + } + return true; + } ); + + var toggleinput = $form.find( '.uagb-forms-toggle-input' ); + + toggleinput.on('change', function(e) { + if(this.checked) { + $(this).val($(this).attr("data-truestate")); + }else { + $(this).val($(this).attr("data-falsestate")); + } + }); + + //validation for checkbox if required. + var requiredCheckboxes = $('.uagb-forms-checkbox-wrap :checkbox[required]'); + requiredCheckboxes.on('change', function(e) { + var checkboxGroup = requiredCheckboxes.filter('[name="' + $(this).attr('name') + '"]'); + var isChecked = checkboxGroup.is(':checked'); + checkboxGroup.each(function() { + this.setCustomValidity(''); //remove all custom validity messages + }); + checkboxGroup.prop('required', !isChecked); + }); + requiredCheckboxes.trigger('change'); + + //append recaptcha js when enabled. + if(attr['reCaptchaEnable'] == true && attr['reCaptchaType'] == "v2" && attr['reCaptchaSiteKeyV2'] ){ + + $('head').append(' '); + + }else if(attr['reCaptchaEnable'] == true && attr['reCaptchaType'] == "v3" && attr['reCaptchaSiteKeyV3'] ){ + if(attr['hidereCaptchaBatch']){ + if(document.getElementsByClassName("grecaptcha-badge")[0] === undefined){ + return + } + var badge = document.getElementsByClassName("grecaptcha-badge")[0]; + badge.style.visibility = 'hidden'; + } + var api = document.createElement("script"); + api.type = "text/javascript"; + api.src = "https://www.google.com/recaptcha/api.js?render="+attr['reCaptchaSiteKeyV3']; + $('head').append(api); + } + + + //Ready Classes. + var formscope = document.getElementsByClassName('uagb-block-' + attr['block_id']); + var formWrapper = formscope[0].children; + var sibling = formWrapper[0].children; + + for (let index = 0; index < sibling.length; index++) { + + if( sibling[index].classList.contains("uag-col-2") && sibling[index+1].classList.contains("uag-col-2") ){ + let div = document.createElement('div'); + div.className = 'uag-col-2-wrap uag-col-wrap-' + index; + sibling[index+1].after(div) + let wrapper_div = formscope[0].getElementsByClassName('uag-col-wrap-' + index) + wrapper_div[0].appendChild(sibling[index]) + wrapper_div[0].appendChild(sibling[index]) + } + + if( (sibling[index].classList.contains("uag-col-3")) && (sibling[index+1].classList.contains("uag-col-3") && (sibling[index+2].classList.contains("uag-col-3"))) ){ + let div = document.createElement('div'); + div.className = 'uag-col-3-wrap uag-col-wrap-' + index; + sibling[index+2].after(div) + let wrapper_div = formscope[0].getElementsByClassName('uag-col-wrap-' + index) + wrapper_div[0].appendChild(sibling[index]) + wrapper_div[0].appendChild(sibling[index]) + wrapper_div[0].appendChild(sibling[index]) + + } + + if( (sibling[index].classList.contains("uag-col-4")) && (sibling[index+1].classList.contains("uag-col-4") && (sibling[index+2].classList.contains("uag-col-4")) && (sibling[index+3].classList.contains("uag-col-4"))) ){ + let div = document.createElement('div'); + div.className = 'uag-col-4-wrap uag-col-wrap-' + index; + sibling[index+3].after(div) + let wrapper_div = formscope[0].getElementsByClassName('uag-col-wrap-' + index) + wrapper_div[0].appendChild(sibling[index]) + wrapper_div[0].appendChild(sibling[index]) + wrapper_div[0].appendChild(sibling[index]) + wrapper_div[0].appendChild(sibling[index]) + + } + } + + + $form.on( 'submit', function( e ) { + UAGBForms._formSubmit( e, $( this ), attr ) + } ); + }, + + _formSubmit: function ( e, $form, attr ) { + + e.preventDefault(); + var uagab_captcha_keys,captcha_response; + if(attr['reCaptchaEnable'] == true && attr['reCaptchaType'] == "v2" && attr['reCaptchaSiteKeyV2'] ){ + + captcha_response = $form[0].getElementsByClassName("uagb-forms-recaptcha")[0].value; + if (!captcha_response) { + $('.uagb-form-reacaptcha-error-'+attr['block_id']).html('

'+attr['captchaMessage']+'

'); + return false; + } else { + $('.uagb-form-reacaptcha-error-'+attr['block_id']).html(''); + uagab_captcha_keys = { 'secret':attr['reCaptchaSecretKeyV2'],'sitekey':attr['reCaptchaSiteKeyV2'] } + } + } + + if(attr['reCaptchaEnable'] == true && attr['reCaptchaType'] == "v3" && attr['reCaptchaSiteKeyV3'] ){ + grecaptcha.ready(function() { + grecaptcha.execute(attr['reCaptchaSiteKeyV3'], {action: 'submit'}).then(function(token) { + document.getElementById('g-recaptcha-response').value = token; + }); + }); + + captcha_response = $form[0].getElementsByClassName("uagb-forms-recaptcha")[0].value; + if (!captcha_response) { + $('.uagb-form-reacaptcha-error-'+attr['block_id']).html('

'+attr['captchaMessage']+'

'); + return false; + } else { + $('.uagb-form-reacaptcha-error-'+attr['block_id']).html(''); + uagab_captcha_keys = { 'secret':attr['reCaptchaSecretKeyV3'],'sitekey':attr['reCaptchaSiteKeyV3'] } + } + } + var originalSerialized = $($form).serializeArray(); + var postData = {}; + for (var i = 0; i < originalSerialized.length; i++) { + let inputname = originalSerialized[i].name; + if (originalSerialized[i]['name'].endsWith('[]')) { //For checkbox element + var name = originalSerialized[i]['name']; + name = name.substring(0, name.length - 2); + if (!(name in postData)) { + postData[name] = []; + } + postData[name].push(originalSerialized[i]['value']); + } else if(originalSerialized[i]['value'].startsWith('+')){ //For phone element. + + var name = originalSerialized[i]['name']; + name = name.substring(0, name.length - 2); + if (!(name in postData)) { + postData[name] = []; + } + postData[$("#"+name).html()].push(originalSerialized[i]['value']); + } else { + postData[$("#"+inputname).html()] = originalSerialized[i]['value']; + } + } + + var after_submit_data = { "to": attr['afterSubmitToEmail'], "cc": attr['afterSubmitCcEmail'], "bcc": attr['afterSubmitBccEmail'], "subject": attr['afterSubmitEmailSubject']}; + + //add spiner to form button to show processing. + $( '' ).appendTo( $form.find(".uagb-forms-main-submit-button-wrap") ); + + $.ajax({ + type: 'POST', + url: uagb_forms_data.ajax_url, + data: { + action: 'uagb_process_forms', + nonce : uagb_forms_data.uagb_forms_ajax_nonce, + form_data:postData, + sendAfterSubmitEmail : attr['sendAfterSubmitEmail'], + after_submit_data:after_submit_data, + uagab_captcha_keys : uagab_captcha_keys, + captcha_response : captcha_response, + }, + + success: function( response ) { + + if( 200 === response.data ) { + if ( 'message' === attr['confirmationType'] ) { + $('[name="uagb-form-'+attr['block_id']+'"]').hide(); + $('.uagb-forms-success-message-'+attr['block_id']).removeClass('uagb-forms-submit-message-hide').addClass('uagb-forms-success-message') + } + + if ( 'url' === attr['confirmationType'] ) { + window.location.replace(attr.confirmationUrl); + } + + }else if( 400 === response.data ){ + if ( 'message' === attr['confirmationType'] ) { + $('[name="uagb-form-'+attr['block_id']+'"]').hide(); + $('.uagb-forms-failed-message-'+attr['block_id']).removeClass('uagb-forms-submit-message-hide').addClass('uagb-forms-failed-message') + } + } + + } + }); + + }, + } +} )( jQuery ); \ No newline at end of file diff --git a/plugins/ultimate-addons-for-gutenberg/assets/js/imagesloaded.min.js b/plugins/ultimate-addons-for-gutenberg/assets/js/imagesloaded.min.js index 652e7c42..8805c130 100644 --- a/plugins/ultimate-addons-for-gutenberg/assets/js/imagesloaded.min.js +++ b/plugins/ultimate-addons-for-gutenberg/assets/js/imagesloaded.min.js @@ -1 +1,13 @@ -!function(global,factory){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",factory):"object"==typeof module&&module.exports?module.exports=factory():global.EvEmitter=factory()}(this,function(){function EvEmitter(){}var proto=EvEmitter.prototype;return proto.on=function(eventName,listener){if(eventName&&listener){var events=this._events=this._events||{},listeners=events[eventName]=events[eventName]||[];return listeners.indexOf(listener)==-1&&listeners.push(listener),this}},proto.once=function(eventName,listener){if(eventName&&listener){this.on(eventName,listener);var onceEvents=this._onceEvents=this._onceEvents||{},onceListeners=onceEvents[eventName]=onceEvents[eventName]||[];return onceListeners[listener]=!0,this}},proto.off=function(eventName,listener){var listeners=this._events&&this._events[eventName];if(listeners&&listeners.length){var index=listeners.indexOf(listener);return index!=-1&&listeners.splice(index,1),this}},proto.emitEvent=function(eventName,args){var listeners=this._events&&this._events[eventName];if(listeners&&listeners.length){var i=0,listener=listeners[i];args=args||[];for(var onceListeners=this._onceEvents&&this._onceEvents[eventName];listener;){var isOnce=onceListeners&&onceListeners[listener];isOnce&&(this.off(eventName,listener),delete onceListeners[listener]),listener.apply(this,args),i+=isOnce?0:1,listener=listeners[i]}return this}},EvEmitter}),function(window,factory){"use strict";"function"==typeof define&&define.amd?define(["ev-emitter/ev-emitter"],function(EvEmitter){return factory(window,EvEmitter)}):"object"==typeof module&&module.exports?module.exports=factory(window,require("ev-emitter")):window.imagesLoaded=factory(window,window.EvEmitter)}(window,function(window,EvEmitter){function extend(a,b){for(var prop in b)a[prop]=b[prop];return a}function makeArray(obj){var ary=[];if(Array.isArray(obj))ary=obj;else if("number"==typeof obj.length)for(var i=0;i
  • " + titleText + "
  • "; - let element_text = parseTocSlug(element.text); - all_header.each( function (){ + } + }); - let header = $( this ); - let header_text = parseTocSlug(header.text()); + $(".uagb_table-of-contents-placeholder").remove(); - if ( element_text.localeCompare(header_text) === 0 ) { - header.before(''); - } - }); - }); + $(`.uagb-block-${blockId} .uagb-toc__list-wrap`).prepend(headerTable); + + } else{ + + headerTable += attr.emptyHeadingTeaxt; + + $(`.uagb-block-${blockId} .uagb-toc__list-wrap`).remove(); + + $(".uagb_table-of-contents-placeholder").prepend(headerTable); + } scroll_to_top = attr.scrollToTop @@ -169,5 +220,4 @@ UAGBTableOfContents.init() }) - } )( jQuery ) diff --git a/plugins/ultimate-addons-for-gutenberg/assets/js/tabs.js b/plugins/ultimate-addons-for-gutenberg/assets/js/tabs.js new file mode 100644 index 00000000..18e3f944 --- /dev/null +++ b/plugins/ultimate-addons-for-gutenberg/assets/js/tabs.js @@ -0,0 +1,25 @@ + +(function ($) { + $ = jQuery; + jQuery('.uagb-tabs__wrap').each(function () { + + var activeTab = jQuery(this).data('tab-active'); + var tabs = jQuery(this).find('.uagb-tab'); + var bodyContainers = jQuery(this).find('.uagb-tabs__body-container'); + + tabs.on( 'click', function ( event ) { + event.preventDefault(); + var currentTabActive = jQuery( event.target ).closest( '.uagb-tab' ); + var href = currentTabActive.find( 'a' ).attr( 'href' ); + + tabs.removeClass( 'uagb-tabs__active' ); + currentTabActive.addClass( 'uagb-tabs__active' ); + bodyContainers.find( '.uagb-tabs__body' ).hide(); + bodyContainers.find( '.uagb-tabs__body[aria-labelledby="' + href.replace( /^#/, "" ) + '"]' ).show(); + } ); + + tabs.eq( activeTab ).trigger( 'click' ); // Default + + }); + +})( jQuery ) \ No newline at end of file diff --git a/plugins/ultimate-addons-for-gutenberg/assets/js/uagb-bodymovin.min.js b/plugins/ultimate-addons-for-gutenberg/assets/js/uagb-bodymovin.min.js new file mode 100644 index 00000000..546c2ea6 --- /dev/null +++ b/plugins/ultimate-addons-for-gutenberg/assets/js/uagb-bodymovin.min.js @@ -0,0 +1,15 @@ +(typeof navigator !== "undefined") && (function(root, factory) { + if (typeof define === "function" && define.amd) { + define(function() { + return factory(root); + }); + } else if (typeof module === "object" && module.exports) { + module.exports = factory(root); + } else { + root.lottie = factory(root); + root.bodymovin = root.lottie; + } +}((window || {}), function(window) { + "use strict";var svgNS="http://www.w3.org/2000/svg",locationHref="",initialDefaultFrame=-999999,subframeEnabled=!0,expressionsPlugin,isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),cachedColors={},bm_rounder=Math.round,bm_rnd,bm_pow=Math.pow,bm_sqrt=Math.sqrt,bm_abs=Math.abs,bm_floor=Math.floor,bm_max=Math.max,bm_min=Math.min,blitter=10,BMMath={};function ProjectInterface(){return{}}!function(){var t,e=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],r=e.length;for(t=0;t>>=1;return(t+r)/e};return n.int32=function(){return 0|a.g(4)},n.quick=function(){return a.g(4)/4294967296},n.double=n,E(x(a.S),o),(e.pass||r||function(t,e,r,i){return i&&(i.S&&b(i,a),t.state=function(){return b(a,{})}),r?(h[c]=t,e):t})(n,s,"global"in e?e.global:this==h,e.state)},E(h.random(),o)}([],BMMath);var BezierFactory=function(){var t={getBezierEasing:function(t,e,r,i,s){var a=s||("bez_"+t+"_"+e+"_"+r+"_"+i).replace(/\./g,"p");if(o[a])return o[a];var n=new h([t,e,r,i]);return o[a]=n}},o={};var l=11,p=1/(l-1),e="function"==typeof Float32Array;function i(t,e){return 1-3*e+3*t}function s(t,e){return 3*e-6*t}function a(t){return 3*t}function m(t,e,r){return((i(e,r)*t+s(e,r))*t+a(e))*t}function f(t,e,r){return 3*i(e,r)*t*t+2*s(e,r)*t+a(e)}function h(t){this._p=t,this._mSampleValues=e?new Float32Array(l):new Array(l),this._precomputed=!1,this.get=this.get.bind(this)}return h.prototype={get:function(t){var e=this._p[0],r=this._p[1],i=this._p[2],s=this._p[3];return this._precomputed||this._precompute(),e===r&&i===s?t:0===t?0:1===t?1:m(this._getTForX(t),r,s)},_precompute:function(){var t=this._p[0],e=this._p[1],r=this._p[2],i=this._p[3];this._precomputed=!0,t===e&&r===i||this._calcSampleValues()},_calcSampleValues:function(){for(var t=this._p[0],e=this._p[2],r=0;rn?-1:1,l=!0;l;)if(i[a]<=n&&i[a+1]>n?(o=(n-i[a])/(i[a+1]-i[a]),l=!1):a+=h,a<0||s-1<=a){if(a===s-1)return r[a];l=!1}return r[a]+(r[a+1]-r[a])*o}var D=createTypedArray("float32",8);return{getSegmentsLength:function(t){var e,r=segments_length_pool.newElement(),i=t.c,s=t.v,a=t.o,n=t.i,o=t._length,h=r.lengths,l=0;for(e=0;er[0]||!(r[0]>t[0])&&(t[1]>r[1]||!(r[1]>t[1])&&(t[2]>r[2]||!(r[2]>t[2])&&void 0))}var h,r=function(){var i=[4,4,14];function s(t){var e,r,i,s=t.length;for(e=0;e=a.t-i){s.h&&(s=a),f=0;break}if(a.t-i>t){f=c;break}c=r&&r<=t||this._caching.lastFrame=t&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var i=this.interpolateValue(t,this._caching);this.pv=i}return this._caching.lastFrame=t,this.pv}function d(t){var e;if("unidimensional"===this.propType)e=t*this.mult,1e-5=this.p.keyframes[this.p.keyframes.length-1].t?(e=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/i,0),this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/i,0)):(e=this.p.pv,this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/i,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){e=[],r=[];var s=this.px,a=this.py;s._caching.lastFrame+s.offsetTime<=s.keyframes[0].t?(e[0]=s.getValueAtTime((s.keyframes[0].t+.01)/i,0),e[1]=a.getValueAtTime((a.keyframes[0].t+.01)/i,0),r[0]=s.getValueAtTime(s.keyframes[0].t/i,0),r[1]=a.getValueAtTime(a.keyframes[0].t/i,0)):s._caching.lastFrame+s.offsetTime>=s.keyframes[s.keyframes.length-1].t?(e[0]=s.getValueAtTime(s.keyframes[s.keyframes.length-1].t/i,0),e[1]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/i,0),r[0]=s.getValueAtTime((s.keyframes[s.keyframes.length-1].t-.01)/i,0),r[1]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/i,0)):(e=[s.pv,a.pv],r[0]=s.getValueAtTime((s._caching.lastFrame+s.offsetTime-.01)/i,s.offsetTime),r[1]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/i,a.offsetTime))}else e=r=n;this.v.rotate(-Math.atan2(e[1]-r[1],e[0]-r[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}},precalculateMatrix:function(){if(!this.a.k&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}if(this.r){if(this.r.effectsSequence.length)return;this.pre.rotate(-this.r.v),this.appliedTransformations=4}else this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}},autoOrient:function(){}},extendPrototype([DynamicPropertyContainer],i),i.prototype.addDynamicProperty=function(t){this._addDynamicProperty(t),this.elem.addDynamicProperty(t),this._isDirty=!0},i.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(t,e,r){return new i(t,e,r)}}}();function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(t,e){this.c=t,this.setLength(e);for(var r=0;r=this._maxLength&&this.doubleArrayLength(),r){case"v":a=this.v;break;case"i":a=this.i;break;case"o":a=this.o}(!a[i]||a[i]&&!s)&&(a[i]=point_pool.newElement()),a[i][0]=t,a[i][1]=e},ShapePath.prototype.setTripleAt=function(t,e,r,i,s,a,n,o){this.setXYAt(t,e,"v",n,o),this.setXYAt(r,i,"o",n,o),this.setXYAt(s,a,"i",n,o)},ShapePath.prototype.reverse=function(){var t=new ShapePath;t.setPathData(this.c,this._length);var e=this.v,r=this.o,i=this.i,s=0;this.c&&(t.setTripleAt(e[0][0],e[0][1],i[0][0],i[0][1],r[0][0],r[0][1],0,!1),s=1);var a,n=this._length-1,o=this._length;for(a=s;a=c[c.length-1].t-this.offsetTime)i=c[c.length-1].s?c[c.length-1].s[0]:c[c.length-2].e[0],a=!0;else{for(var d,u,y=f,g=c.length-1,v=!0;v&&(d=c[y],!((u=c[y+1]).t-this.offsetTime>t));)y=u.t-this.offsetTime)p=1;else if(ti+r);else p=o.s*s<=i?0:(o.s*s-i)/r,m=o.e*s>=i+r?1:(o.e*s-i)/r,h.push([p,m])}return h.length||h.push([0,0]),h},TrimModifier.prototype.releasePathsData=function(t){var e,r=t.length;for(e=0;ee.e){r.c=!1;break}e.s<=d&&e.e>=d+n.addedLength?(this.addSegment(f[i].v[s-1],f[i].o[s-1],f[i].i[s],f[i].v[s],r,o,y),y=!1):(l=bez.getNewSegment(f[i].v[s-1],f[i].v[s],f[i].o[s-1],f[i].i[s],(e.s-d)/n.addedLength,(e.e-d)/n.addedLength,h[s-1]),this.addSegmentFromArray(l,r,o,y),y=!1,r.c=!1),d+=n.addedLength,o+=1}if(f[i].c&&h.length){if(n=h[s-1],d<=e.e){var g=h[s-1].addedLength;e.s<=d&&e.e>=d+g?(this.addSegment(f[i].v[s-1],f[i].o[s-1],f[i].i[0],f[i].v[0],r,o,y),y=!1):(l=bez.getNewSegment(f[i].v[s-1],f[i].v[0],f[i].o[s-1],f[i].i[0],(e.s-d)/g,(e.e-d)/g,h[s-1]),this.addSegmentFromArray(l,r,o,y),y=!1,r.c=!1)}else r.c=!1;d+=n.addedLength,o+=1}if(r._length&&(r.setXYAt(r.v[p][0],r.v[p][1],"i",p),r.setXYAt(r.v[r._length-1][0],r.v[r._length-1][1],"o",r._length-1)),d>e.e)break;i=d.length&&(m=0,d=u[f+=1]?u[f].points:E.v.c?u[f=m=0].points:(l-=h.partialLength,null)),d&&(c=h,y=(h=d[m]).partialLength));L=T[s].an/2-T[s].add,_.translate(-L,0,0)}else L=T[s].an/2-T[s].add,_.translate(-L,0,0),_.translate(-x[0]*T[s].an/200,-x[1]*V/100,0);for(T[s].l/2,w=0;we));)r+=1;return this.keysIndex!==r&&(this.keysIndex=r),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(t){for(var e,r=FontManager.getCombinedCharacterCodes(),i=[],s=0,a=t.length;sthis.minimumFontSize&&D=u(o)&&(n=c(0,d(t-o<0?d(h,1)-(o-t):h-t,1))),a(n));return n*this.a.v},getValue:function(t){this.iterateDynamicProperties(),this._mdf=t||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,t&&2===this.data.r&&(this.e.v=this._currentTextLength);var e=2===this.data.r?1:100/this.data.totalChars,r=this.o.v/e,i=this.s.v/e+r,s=this.e.v/e+r;if(st-this.layers[e].st&&this.buildItem(e),this.completeLayers=!!this.elements[e]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 13:return this.createCamera(t)}return this.createNull(t)},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.buildAllItems=function(){var t,e=this.layers.length;for(t=0;t=t)return this.threeDElements[e].perspectiveElem;e+=1}},HybridRenderer.prototype.createThreeDContainer=function(t,e){var r=createTag("div");styleDiv(r);var i=createTag("div");styleDiv(i),"3d"===e&&(r.style.width=this.globalData.compSize.w+"px",r.style.height=this.globalData.compSize.h+"px",r.style.transformOrigin=r.style.mozTransformOrigin=r.style.webkitTransformOrigin="50% 50%",i.style.transform=i.style.webkitTransform="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)"),r.appendChild(i);var s={container:i,perspectiveElem:r,startPos:t,endPos:t,type:e};return this.threeDElements.push(s),s},HybridRenderer.prototype.build3dContainers=function(){var t,e,r=this.layers.length,i="";for(t=0;tt?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var t,e=this.renderableComponents.length;for(t=0;t=t.x+t.width&&this.currentBBox.height+this.currentBBox.y>=t.y+t.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var t=this.tempBoundingBox,e=999999;if(t.x=e,t.xMax=-e,t.y=e,t.yMax=-e,this.calculateBoundingBox(this.itemsData,t),t.width=t.xMaxthis.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var e,r,i=this.animationData.layers,s=i.length,a=t.layers,n=a.length;for(r=0;rthis.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame()},AnimationItem.prototype.renderFrame=function(){if(!1!==this.isLoaded)try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},AnimationItem.prototype.play=function(t){t&&this.name!=t||!0===this.isPaused&&(this.isPaused=!1,this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(t){t&&this.name!=t||!1===this.isPaused&&(this.isPaused=!0,this._idle=!0,this.trigger("_idle"))},AnimationItem.prototype.togglePause=function(t){t&&this.name!=t||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(t){t&&this.name!=t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.goToAndStop=function(t,e,r){r&&this.name!=r||(e?this.setCurrentRawFrameValue(t):this.setCurrentRawFrameValue(t*this.frameModifier),this.pause())},AnimationItem.prototype.goToAndPlay=function(t,e,r){this.goToAndStop(t,e,r),this.play()},AnimationItem.prototype.advanceTime=function(t){if(!0!==this.isPaused&&!1!==this.isLoaded){var e=this.currentRawFrame+t*this.frameModifier,r=!1;e>=this.totalFrames-1&&0=this.totalFrames?(this.playCount+=1,this.checkSegments(e%this.totalFrames)||(this.setCurrentRawFrameValue(e%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(e):this.checkSegments(e>this.totalFrames?e%this.totalFrames:0)||(r=!0,e=this.totalFrames-1):e<0?this.checkSegments(e%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(r=!0,e=0):(this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(e),r&&(this.setCurrentRawFrameValue(e),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(t,e){this.playCount=0,t[1]t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.timeCompleted=this.totalFrames=t[1]-t[0],this.firstFrame=t[0],this.setCurrentRawFrameValue(.001+e)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(t,e){var r=-1;this.isPaused&&(this.currentRawFrame+this.firstFramee&&(r=e-t)),this.firstFrame=t,this.timeCompleted=this.totalFrames=e-t,-1!==r&&this.goToAndStop(r,!0)},AnimationItem.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),"object"==typeof t[0]){var r,i=t.length;for(r=0;rdata.k[e].t&&tdata.k[e+1].t-t?(r=e+2,data.k[e+1].t):(r=e+1,data.k[e].t);break}}-1===r&&(r=e+1,i=data.k[e].t)}else i=r=0;var a={};return a.index=r,a.time=i/elem.comp.globalData.frameRate,a}function key(t){var e,r,i;if(!data.k.length||"number"==typeof data.k[0])throw new Error("The property has no keyframe at index "+t);t-=1,e={time:data.k[t].t/elem.comp.globalData.frameRate,value:[]};var s=data.k[t].hasOwnProperty("s")?data.k[t].s:data.k[t-1].e;for(i=s.length,r=0;rl.length-1)&&(e=l.length-1),i=p-(s=l[l.length-1-e].t)),"pingpong"===t){if(Math.floor((h-s)/i)%2!=0)return this.getValueAtTime((i-(h-s)%i+s)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var m=this.getValueAtTime(s/this.comp.globalData.frameRate,0),f=this.getValueAtTime(p/this.comp.globalData.frameRate,0),c=this.getValueAtTime(((h-s)%i+s)/this.comp.globalData.frameRate,0),d=Math.floor((h-s)/i);if(this.pv.length){for(n=(o=new Array(m.length)).length,a=0;al.length-1)&&(e=l.length-1),i=(s=l[e].t)-p),"pingpong"===t){if(Math.floor((p-h)/i)%2==0)return this.getValueAtTime(((p-h)%i+p)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var m=this.getValueAtTime(p/this.comp.globalData.frameRate,0),f=this.getValueAtTime(s/this.comp.globalData.frameRate,0),c=this.getValueAtTime((i-(p-h)%i+p)/this.comp.globalData.frameRate,0),d=Math.floor((p-h)/i)+1;if(this.pv.length){for(n=(o=new Array(m.length)).length,a=0;an){var p=o,m=r.c&&o===h-1?0:o+1,f=(n-l)/a[o].addedLength;i=bez.getPointInSegment(r.v[p],r.v[m],r.o[p],r.i[m],f,a[o]);break}l+=a[o].addedLength,o+=1}return i||(i=r.c?[r.v[0][0],r.v[0][1]]:[r.v[r._length-1][0],r.v[r._length-1][1]]),i},vectorOnPath:function(t,e,r){t=1==t?this.v.c?0:.999:t;var i=this.pointOnPath(t,e),s=this.pointOnPath(t+.001,e),a=s[0]-i[0],n=s[1]-i[1],o=Math.sqrt(Math.pow(a,2)+Math.pow(n,2));return 0===o?[0,0]:"tangent"===r?[a/o,n/o]:[-n/o,a/o]},tangentOnPath:function(t,e){return this.vectorOnPath(t,e,"tangent")},normalOnPath:function(t,e){return this.vectorOnPath(t,e,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([r],t),extendPrototype([r],e),e.prototype.getValueAtTime=function(t){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shape_pool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),t*=this.elem.globalData.frameRate,(t-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime array( + ' .uagb_review_block .uagb-rating-title' => array( 'color' => $attr['titleColor'], ), - ' .uagb-rating-desc' => array( + ' .uagb_review_block .uagb-rating-desc' => array( 'color' => $attr['descColor'], ), - ' .uagb-rating-author' => array( + ' .uagb_review_block .uagb-rating-author' => array( 'color' => $attr['authorColor'], ), - ' .uagb_review_entry' => array( + ' .uagb_review_entry' => array( 'color' => $attr['contentColor'], ), - ' .uagb_review_block' => array( + ' .uagb_review_block' => array( 'padding-left' => UAGB_Helper::get_css_value( $attr['contentHrPadding'], 'px' ), 'padding-right' => UAGB_Helper::get_css_value( $attr['contentHrPadding'], 'px' ), 'padding-top' => UAGB_Helper::get_css_value( $attr['contentVrPadding'], 'px' ), 'padding-bottom' => UAGB_Helper::get_css_value( $attr['contentVrPadding'], 'px' ), 'text-align' => $attr['overallAlignment'], ), - ' .uagb_review_summary' => array( + ' .uagb_review_summary' => array( 'color' => $attr['summaryColor'], ), ' .uagb_review_entry .star, .uagb_review_average_stars .star' => array( @@ -114,12 +114,14 @@ public static function get_inline_notice_css( $attr, $id ) { $selectors = array( ' .uagb-notice-title' => array( - 'color' => $attr['titleColor'], 'padding-left' => UAGB_Helper::get_css_value( $lPadding, 'px' ), 'padding-right' => UAGB_Helper::get_css_value( $rPadding, 'px' ), 'padding-top' => UAGB_Helper::get_css_value( $attr['titleVrPadding'], 'px' ), 'padding-bottom' => UAGB_Helper::get_css_value( $attr['titleVrPadding'], 'px' ), ), + '.uagb-inline_notice__outer-wrap .uagb-notice-title' => array( + 'color' => $attr['titleColor'], + ), ' .uagb-notice-text' => array( 'color' => $attr['textColor'], 'padding-left' => UAGB_Helper::get_css_value( $attr['contentHrPadding'], 'px' ), @@ -185,7 +187,6 @@ public static function get_how_to_css( $attr, $id ) { ' .uagb-how-to-main-wrap' => array( 'text-align' => $attr['overallAlignment'], ), - ' .uagb-how-to-main-wrap p.uagb-howto-desc-text' => array( 'margin-bottom' => UAGB_Helper::get_css_value( $attr['row_gap'], 'px' ), ), @@ -226,11 +227,11 @@ public static function get_how_to_css( $attr, $id ) { 'margin-left' => UAGB_Helper::get_css_value( $attr['costSpace'], 'px' ), ), - ' .uagb-how-to-main-wrap .uagb-howto-heading-text' => array( + ' ' . $attr['headingTag'] . '.uagb-howto-heading-text' => array( 'color' => $attr['headingColor'], ), - ' .uagb-howto-desc-text' => array( + ' p.uagb-howto-desc-text' => array( 'color' => $attr['subHeadingColor'], ), @@ -836,7 +837,7 @@ public static function get_adv_heading_css( $attr, $id ) { $t_selectors = array(); $selectors = array( - ' .uagb-heading-text' => array( + '.wp-block-uagb-advanced-heading .uagb-heading-text' => array( 'text-align' => $attr['headingAlign'], 'color' => $attr['headingColor'], 'margin-bottom' => UAGB_Helper::get_css_value( $attr['headSpace'], 'px' ), @@ -844,7 +845,7 @@ public static function get_adv_heading_css( $attr, $id ) { ' .uagb-separator-wrap' => array( 'text-align' => $attr['headingAlign'], ), - ' .uagb-desc-text' => array( + '.wp-block-uagb-advanced-heading .uagb-desc-text' => array( 'text-align' => $attr['headingAlign'], 'color' => $attr['subHeadingColor'], ), @@ -1166,25 +1167,25 @@ public static function get_info_box_css( $attr, $id ) { $icon_size = UAGB_Helper::get_css_value( $attr['iconSize'], 'px' ); $selectors = array( - ' .uagb-ifb-icon' => array( + ' .uagb-ifb-icon' => array( 'height' => $icon_size, 'width' => $icon_size, 'line-height' => $icon_size, ), - ' .uagb-ifb-icon > span' => array( + ' .uagb-ifb-icon > span' => array( 'font-size' => $icon_size, 'height' => $icon_size, 'width' => $icon_size, 'line-height' => $icon_size, 'color' => $attr['iconColor'], ), - ' .uagb-ifb-icon svg' => array( + ' .uagb-ifb-icon svg' => array( 'fill' => $attr['iconColor'], ), - ' .uagb-ifb-icon:hover > span' => array( + ' .uagb-ifb-icon:hover > span' => array( 'color' => $attr['iconHover'], ), - ' .uagb-ifb-icon:hover svg' => array( + ' .uagb-ifb-icon:hover svg' => array( 'fill' => $attr['iconHover'], ), @@ -1202,38 +1203,36 @@ public static function get_info_box_css( $attr, $id ) { 'border-radius' => UAGB_Helper::get_css_value( $attr['iconimgBorderRadius'], 'px' ), ), // Prefix Style. - ' .uagb-ifb-title-prefix' => array( + ' .uagb-ifb-title-prefix' => array( 'color' => $attr['prefixColor'], 'margin-bottom' => UAGB_Helper::get_css_value( $attr['prefixSpace'], 'px' ), ), // Title Style. - ' .uagb-ifb-title a' => array( - 'color' => $attr['headingColor'], - ), - ' .uagb-ifb-title' => array( + + ' .uagb-ifb-title-wrap .uagb-ifb-title' => array( 'color' => $attr['headingColor'], 'margin-bottom' => $attr['headSpace'] . 'px', ), // Description Style. - ' .uagb-ifb-desc' => array( + ' .uagb-ifb-text-wrap .uagb-ifb-desc' => array( 'color' => $attr['subHeadingColor'], 'margin-bottom' => UAGB_Helper::get_css_value( $attr['subHeadSpace'], 'px' ), ), // Seperator. - ' .uagb-ifb-separator' => array( + ' .uagb-ifb-separator' => array( 'width' => UAGB_Helper::get_css_value( $attr['seperatorWidth'], $attr['separatorWidthType'] ), 'border-top-width' => UAGB_Helper::get_css_value( $attr['seperatorThickness'], 'px' ), 'border-top-color' => $attr['seperatorColor'], 'border-top-style' => $attr['seperatorStyle'], ), - ' .uagb-ifb-separator-parent' => array( + ' .uagb-ifb-separator-parent' => array( 'margin-bottom' => UAGB_Helper::get_css_value( $attr['seperatorSpace'], 'px' ), ), // CTA icon space. - ' .uagb-ifb-align-icon-after' => array( + ' .uagb-ifb-align-icon-after' => array( 'margin-left' => UAGB_Helper::get_css_value( $attr['ctaIconSpace'], 'px' ), ), - ' .uagb-ifb-align-icon-before' => array( + ' .uagb-ifb-align-icon-before' => array( 'margin-right' => UAGB_Helper::get_css_value( $attr['ctaIconSpace'], 'px' ), ), ); @@ -2365,7 +2364,7 @@ public static function get_icon_list_child_selectors( $attr, $id, $childMigrate } /** - * Get Content Timeline Block CSS + * Get Content Timeline Parent Block CSS * * @since 0.0.1 * @param array $attr The block attributes. @@ -2382,67 +2381,168 @@ public static function get_content_timeline_css( $attr, $id ) { $t_selectors = array(); $m_selectors = array(); + $connector_size = UAGB_Helper::get_css_value( $attr['connectorBgsize'], 'px' ); + $selectors = array( - ' .uagb-timeline__heading' => array( - 'text-align' => $attr['align'], - 'color' => $attr['headingColor'], - 'font-size' => UAGB_Helper::get_css_value( $attr['headFontSize'], $attr['headFontSizeType'] ), - 'font-family' => $attr['headFontFamily'], - 'font-weight' => $attr['headFontWeight'], - 'line-height' => UAGB_Helper::get_css_value( $attr['headLineHeight'], $attr['headLineHeightType'] ), + ' .uagb-timeline-content .uagb-timeline__heading' => array( + 'text-align' => $attr['align'], + 'color' => $attr['headingColor'], ), - ' .uagb-timeline__heading-text' => array( + ' .uagb-timeline__heading-text' => array( 'margin-bottom' => UAGB_Helper::get_css_value( $attr['headSpace'], 'px' ), ), ' .uagb-timeline__main .uagb-timeline__marker.uagb-timeline__in-view-icon .uagb-timeline__icon-new' => array( 'color' => $attr['iconFocus'], ), - ); - - $desktop_selectors = self::get_timeline_selectors( $attr ); - $selectors = array_merge( $selectors, $desktop_selectors ); - - $tablet_selectors = self::get_timeline_tablet_selectors( $attr ); - $t_selectors = array( + ' .uagb-timeline__heading-text' => array( + 'margin-bottom' => UAGB_Helper::get_css_value( $attr['headSpace'], 'px' ), + ), + ' .uagb-timeline-content .uagb-timeline-desc-content' => array( + 'text-align' => $attr['align'], + 'color' => $attr['subHeadingColor'], + ), + ' .uagb-timeline__events-new' => array( + 'text-align' => $attr['align'], + ), + ' .uagb-timeline__day-right .uagb-timeline__arrow:after' => array( + 'border-left-color' => $attr['backgroundColor'], + ), + ' .uagb-timeline__day-right .uagb-timeline__arrow:after' => array( + 'border-right-color' => $attr['backgroundColor'], + ), + ' .uagb-timeline__day-right .uagb-timeline__arrow:after' => array( + 'border-left-color' => $attr['backgroundColor'], + ), + ' .uagb-timeline__day-right .uagb-timeline__arrow:after' => array( + 'border-right-color' => $attr['backgroundColor'], + ), + ' .uagb-timeline__center-block .uagb-timeline__day-right .uagb-timeline__arrow:after' => array( + 'border-left-color' => $attr['backgroundColor'], + ), + ' .uagb-timeline__right-block .uagb-timeline__day-right .uagb-timeline__arrow:after' => array( + 'border-left-color' => $attr['backgroundColor'], + ), + ' .uagb-timeline__right-block .uagb-timeline__day-left .uagb-timeline__arrow:after' => array( + 'border-left-color' => $attr['backgroundColor'], + ), + ' .uagb-timeline__center-block .uagb-timeline__day-left .uagb-timeline__arrow:after' => array( + 'border-right-color' => $attr['backgroundColor'], + ), + ' .uagb-timeline__left-block .uagb-timeline__day-left .uagb-timeline__arrow:after' => array( + 'border-right-color' => $attr['backgroundColor'], + ), + ' .uagb-timeline__line__inner' => array( + 'background-color' => $attr['separatorFillColor'], + ), + ' .uagb-timeline__line' => array( + 'background-color' => $attr['separatorColor'], + 'width' => UAGB_Helper::get_css_value( $attr['separatorwidth'], 'px' ), + ), + ' .uagb-timeline__right-block .uagb-timeline__line' => array( + 'right' => 'calc( ' . $attr['connectorBgsize'] . 'px / 2 )', + ), + ' .uagb-timeline__left-block .uagb-timeline__line' => array( + 'left' => 'calc( ' . $attr['connectorBgsize'] . 'px / 2 )', + ), + ' .uagb-timeline__center-block .uagb-timeline__line' => array( + 'right' => 'calc( ' . $attr['connectorBgsize'] . 'px / 2 )', + ), + ' .uagb-timeline__marker' => array( + 'background-color' => $attr['separatorBg'], + 'min-height' => $connector_size, + 'min-width' => $connector_size, + 'line-height' => $connector_size, + 'border' => $attr['borderwidth'] . 'px solid' . $attr['separatorBorder'], + ), + ' .uagb-timeline__left-block .uagb-timeline__left .uagb-timeline__arrow' => array( + 'height' => $connector_size, + ), + ' .uagb-timeline__right-block .uagb-timeline__right .uagb-timeline__arrow' => array( + 'height' => $connector_size, + ), + ' .uagb-timeline__center-block .uagb-timeline__left .uagb-timeline__arrow' => array( + 'height' => $connector_size, + ), + ' .uagb-timeline__center-block .uagb-timeline__right .uagb-timeline__arrow' => array( + 'height' => $connector_size, + ), + ' .uagb-timeline__center-block .uagb-timeline__marker' => array( + 'margin-left' => UAGB_Helper::get_css_value( $attr['horizontalSpace'], 'px' ), + 'margin-right' => UAGB_Helper::get_css_value( $attr['horizontalSpace'], 'px' ), + ), + ' .uagb-timeline__field' => array( + 'margin-bottom' => UAGB_Helper::get_css_value( $attr['verticalSpace'], 'px' ), + ), ' .uagb-timeline__date-hide.uagb-timeline__date-inner' => array( - 'font-size' => UAGB_Helper::get_css_value( $attr['dateFontsizeTablet'], $attr['dateFontsizeType'] ), - 'line-height' => UAGB_Helper::get_css_value( $attr['dateLineHeightTablet'], $attr['dateLineHeightType'] ), + 'margin-bottom' => UAGB_Helper::get_css_value( $attr['dateBottomspace'], 'px' ), + 'color' => $attr['dateColor'], + 'text-align' => $attr['align'], + ), + ' .uagb-timeline__right-block .uagb-timeline__day-new.uagb-timeline__day-left' => array( + 'margin-right' => UAGB_Helper::get_css_value( $attr['horizontalSpace'], 'px' ), ), - ' .uagb-timeline__date-new' => array( - 'font-size' => UAGB_Helper::get_css_value( $attr['dateFontsizeTablet'], $attr['dateFontsizeType'] ), - 'line-height' => UAGB_Helper::get_css_value( $attr['dateLineHeightTablet'], $attr['dateLineHeightType'] ), + ' .uagb-timeline__left-block .uagb-timeline__day-new.uagb-timeline__day-left' => array( + 'margin-left' => UAGB_Helper::get_css_value( $attr['horizontalSpace'], 'px' ), + ), + ' .uagb-timeline__left-block .uagb-timeline__day-new.uagb-timeline__day-right' => array( + 'margin-left' => UAGB_Helper::get_css_value( $attr['horizontalSpace'], 'px' ), + ), + ' .uagb-timeline__right-block .uagb-timeline__day-new.uagb-timeline__day-right' => array( + 'margin-right' => UAGB_Helper::get_css_value( $attr['horizontalSpace'], 'px' ), + ), + ' .uagb-timeline__date-new' => array( + 'color' => $attr['dateColor'], + 'font-size' => UAGB_Helper::get_css_value( $attr['dateFontsize'], $attr['dateFontsizeType'] ), + ), + ' .uagb-timeline__right-block .uagb-timeline__date-hide.uagb-timeline__date-inner' => array( + 'font-size' => UAGB_Helper::get_css_value( $attr['dateFontsize'], $attr['dateFontsizeType'] ), + ), + ' .uagb-timeline__left-block .uagb-timeline__date-hide.uagb-timeline__date-inner' => array( + 'font-size' => UAGB_Helper::get_css_value( $attr['dateFontsize'], $attr['dateFontsizeType'] ), + ), + ' .uagb-timeline__events-inner-new' => array( + 'background-color' => $attr['backgroundColor'], + 'border-radius' => UAGB_Helper::get_css_value( $attr['borderRadius'], 'px' ), + 'padding' => UAGB_Helper::get_css_value( $attr['bgPadding'], 'px' ), + ), + ' .uagb-timeline__main .uagb-timeline__icon-new' => array( + 'color' => $attr['iconColor'], + 'width' => UAGB_Helper::get_css_value( $attr['iconSize'], 'px' ), + ), + ' .uagb-timeline__main .uagb-timeline__marker.uagb-timeline__in-view-icon .uagb-timeline__icon-new svg' => array( + 'fill' => $attr['iconFocus'], ), - ' .uagb-timeline__heading' => array( - 'font-size' => UAGB_Helper::get_css_value( $attr['headFontSizeTablet'], $attr['headFontSizeType'] ), - 'line-height' => UAGB_Helper::get_css_value( $attr['headLineHeightTablet'], $attr['headLineHeightType'] ), + ' .uagb-timeline__main .uagb-timeline__marker.uagb-timeline__in-view-icon .uagb-timeline__icon-new' => array( + 'color' => $attr['iconFocus'], + ), + ' .uagb-timeline__main .uagb-timeline__marker.uagb-timeline__in-view-icon' => array( + 'background' => $attr['iconBgFocus'], + 'border-color' => $attr['borderFocus'], ), - ' .uagb-timeline-desc-content' => array( - 'font-size' => UAGB_Helper::get_css_value( $attr['subHeadFontSizeTablet'], $attr['subHeadFontSizeType'] ), - 'line-height' => UAGB_Helper::get_css_value( $attr['subHeadLineHeightTablet'], $attr['subHeadLineHeightType'] ), + ' .uagb-timeline__main .uagb-timeline__icon-new svg' => array( + 'fill' => $attr['iconColor'], ), ); - $t_selectors = array_merge( $t_selectors, $tablet_selectors ); - $mobile_selectors = self::get_timeline_mobile_selectors( $attr ); - $m_selectors = array( - ' .uagb-timeline__date-hide.uagb-timeline__date-inner' => array( - 'font-size' => UAGB_Helper::get_css_value( $attr['dateFontsizeMobile'], $attr['dateFontsizeType'] ), - 'line-height' => UAGB_Helper::get_css_value( $attr['dateLineHeightMobile'], $attr['dateLineHeightType'] ), + $m_selectors = array( + ' .uagb-timeline__center-block .uagb-timeline__day-right .uagb-timeline__arrow:after' => array( + 'border-right-color' => $attr['backgroundColor'], ), - ' .uagb-timeline__date-new' => array( - 'font-size' => UAGB_Helper::get_css_value( $attr['dateFontsizeMobile'], $attr['dateFontsizeType'] ), - 'line-height' => UAGB_Helper::get_css_value( $attr['dateLineHeightMobile'], $attr['dateLineHeightType'] ), + ' .uagb-timeline__center-block .uagb-timeline__marker' => array( + 'margin-left' => 0, + 'margin-right' => 0, ), - ' .uagb-timeline__heading' => array( - 'font-size' => UAGB_Helper::get_css_value( $attr['headFontSizeMobile'], $attr['headFontSizeType'] ), - 'line-height' => UAGB_Helper::get_css_value( $attr['headLineHeightMobile'], $attr['headLineHeightType'] ), + ); + + $t_selectors = array( + ' .uagb-timeline__center-block .uagb-timeline__day-right .uagb-timeline__arrow:after' => array( + 'border-right-color' => $attr['backgroundColor'], ), - ' .uagb-timeline-desc-content' => array( - 'font-size' => UAGB_Helper::get_css_value( $attr['subHeadFontSizeMobile'], $attr['subHeadFontSizeType'] ), - 'line-height' => UAGB_Helper::get_css_value( $attr['subHeadLineHeightMobile'], $attr['subHeadLineHeightType'] ), + ' .uagb-timeline__center-block .uagb-timeline__marker' => array( + 'margin-left' => 0, + 'margin-right' => 0, ), ); - $m_selectors = array_merge( $m_selectors, $mobile_selectors ); $combined_selectors = array( 'desktop' => $selectors, @@ -2451,8 +2551,10 @@ public static function get_content_timeline_css( $attr, $id ) { ); $base_selector = ( $attr['classMigrate'] ) ? '.uagb-block-' : '#uagb-ctm-'; + $combined_selectors = UAGB_Helper::get_typography_css( $attr, 'head', ' .uagb-timeline__heading', $combined_selectors ); $combined_selectors = UAGB_Helper::get_typography_css( $attr, 'date', ' .uagb-timeline__date-new', $combined_selectors ); - + $combined_selectors = UAGB_Helper::get_typography_css( $attr, 'date', ' .uagb-timeline__date-hide.uagb-timeline__date-inner', $combined_selectors ); + $combined_selectors = UAGB_Helper::get_typography_css( $attr, 'subHead', ' p.uagb-timeline-desc-content', $combined_selectors ); return UAGB_Helper::generate_all_css( $combined_selectors, $base_selector . $id ); } @@ -2498,7 +2600,7 @@ public static function get_post_timeline_css( $attr, $id ) { 'color' => $attr['ctaColor'], 'background-color' => $attr['ctaBackground'], ), - ' .uagb-timeline__heading a' => array( + ' .uagb-timeline-content .uagb-timeline__heading a' => array( 'text-align' => $attr['align'], 'color' => $attr['headingColor'], ), @@ -2566,7 +2668,7 @@ public static function get_post_timeline_css( $attr, $id ) { $combined_selectors = UAGB_Helper::get_typography_css( $attr, 'date', ' .uagb-timeline__date-hide.uagb-timeline__date-inner', $combined_selectors ); $combined_selectors = UAGB_Helper::get_typography_css( $attr, 'date', ' .uagb-timeline__date-new', $combined_selectors ); - $combined_selectors = UAGB_Helper::get_typography_css( $attr, 'subHead', ' .uagb-timeline-desc-content', $combined_selectors ); + $combined_selectors = UAGB_Helper::get_typography_css( $attr, 'subHead', ' p.uagb-timeline-desc-content', $combined_selectors ); $combined_selectors = UAGB_Helper::get_typography_css( $attr, 'author', ' .uagb-timeline__author-link', $combined_selectors ); $combined_selectors = UAGB_Helper::get_typography_css( $attr, 'cta', ' .uagb-timeline__link', $combined_selectors ); $combined_selectors = UAGB_Helper::get_typography_css( $attr, 'head', ' .uagb-timeline__heading a', $combined_selectors ); @@ -2599,7 +2701,7 @@ public static function get_restaurant_menu_css( $attr, $id ) { } $selectors = array( - ' .uagb-rest_menu__wrap' => array( + ' .uagb-rest_menu__wrap' => array( 'padding-left' => UAGB_Helper::get_css_value( ( $attr['columnGap'] / 2 ), 'px' ), 'padding-right' => UAGB_Helper::get_css_value( ( $attr['columnGap'] / 2 ), 'px' ), 'margin-bottom' => UAGB_Helper::get_css_value( $attr['rowGap'], 'px' ), @@ -2610,28 +2712,28 @@ public static function get_restaurant_menu_css( $attr, $id ) { 'padding-top' => UAGB_Helper::get_css_value( $attr['imgVrPadding'], 'px' ), 'padding-bottom' => UAGB_Helper::get_css_value( $attr['imgVrPadding'], 'px' ), ), - ' .uagb-rm__image img' => array( + ' .uagb-rm__image img' => array( 'width' => UAGB_Helper::get_css_value( $attr['imageWidth'], 'px' ), 'max-width' => UAGB_Helper::get_css_value( $attr['imageWidth'], 'px' ), ), - ' .uagb-rm__separator-parent' => array( + ' .uagb-rm__separator-parent' => array( 'justify-content' => $align, ), - ' .uagb-rm__content' => array( + ' .uagb-rm__content' => array( 'text-align' => $attr['headingAlign'], 'padding-left' => UAGB_Helper::get_css_value( $attr['contentHrPadding'], 'px' ), 'padding-right' => UAGB_Helper::get_css_value( $attr['contentHrPadding'], 'px' ), 'padding-top' => UAGB_Helper::get_css_value( $attr['contentVrPadding'], 'px' ), 'padding-bottom' => UAGB_Helper::get_css_value( $attr['contentVrPadding'], 'px' ), ), - ' .uagb-rm__title' => array( + ' .uagb-rm-details .uagb-rm__title' => array( 'color' => $attr['titleColor'], 'margin-bottom' => UAGB_Helper::get_css_value( $attr['titleSpace'], 'px' ), ), - ' .uagb-rm__price' => array( + ' .uagb-rm__price' => array( 'color' => $attr['priceColor'], ), - ' .uagb-rm__desc' => array( + ' .uagb-rm__desc' => array( 'color' => $attr['descColor'], 'margin-bottom' => UAGB_Helper::get_css_value( $attr['descSpace'], 'px' ), ), @@ -2946,37 +3048,48 @@ public static function get_post_masonry_css( $attr, $id ) { */ public static function get_post_selectors( $attr ) { $selectors = array( - ' .uagb-post__items' => array( + ' .uagb-post__items' => array( 'margin-right' => UAGB_Helper::get_css_value( ( -$attr['rowGap'] / 2 ), 'px' ), 'margin-left' => UAGB_Helper::get_css_value( ( -$attr['rowGap'] / 2 ), 'px' ), ), - ' .uagb-post__items article' => array( + ' .uagb-post__items article' => array( 'padding-right' => UAGB_Helper::get_css_value( ( $attr['rowGap'] / 2 ), 'px' ), 'padding-left' => UAGB_Helper::get_css_value( ( $attr['rowGap'] / 2 ), 'px' ), 'margin-bottom' => UAGB_Helper::get_css_value( ( $attr['columnGap'] ), 'px' ), ), - ' .uagb-post__inner-wrap' => array( + ' .uagb-post__inner-wrap' => array( 'background' => $attr['bgColor'], - ), - ' .uagb-post__text' => array( 'padding' => UAGB_Helper::get_css_value( ( $attr['contentPadding'] ), 'px' ), 'text-align' => $attr['align'], ), - ' .uagb-post__text .uagb-post__title' => array( + + ' .uagb-post__cta' => array( + 'margin-bottom' => UAGB_Helper::get_css_value( $attr['ctaBottomSpace'], 'px' ), + ), + ' .uagb-post__image' => array( + 'margin-bottom' => UAGB_Helper::get_css_value( $attr['imageBottomSpace'], 'px' ), + ), + ' .uagb-post__title' => array( 'margin-bottom' => UAGB_Helper::get_css_value( $attr['titleBottomSpace'], 'px' ), ), - ' .uagb-post__text .uagb-post-grid-byline' => array( + ' .uagb-post-grid-byline' => array( 'margin-bottom' => UAGB_Helper::get_css_value( $attr['metaBottomSpace'], 'px' ), ), - ' .uagb-post__text .uagb-post__excerpt' => array( + ' .uagb-post__excerpt' => array( 'margin-bottom' => UAGB_Helper::get_css_value( $attr['excerptBottomSpace'], 'px' ), ), - ' .uagb-post__image:before' => array( + ' .uagb-post__image:before' => array( 'background-color' => $attr['bgOverlayColor'], 'opacity' => ( $attr['overlayOpacity'] / 100 ), ), ); - + if ( 'background' !== $attr['imgPosition'] ) { + $selectors[' .uagb-post__inner-wrap > .uagb-post__image:first-child'] = array( + 'margin-top' => UAGB_Helper::get_css_value( ( -$attr['contentPadding'] ), 'px' ), + 'margin-left' => UAGB_Helper::get_css_value( ( -$attr['contentPadding'] ), 'px' ), + 'margin-right' => UAGB_Helper::get_css_value( ( -$attr['contentPadding'] ), 'px' ), + ); + } if ( ! $attr['inheritFromTheme'] ) { $selectors[' .uagb-post__text .uagb-post__title']['color'] = $attr['titleColor']; $selectors[' .uagb-post__text .uagb-post__title a'] = array( @@ -3025,7 +3138,7 @@ public static function get_post_selectors( $attr ) { public static function get_post_mobile_selectors( $attr ) { return array( - ' .uagb-post__text' => array( + ' .uagb-post__inner-wrap' => array( 'padding' => ( $attr['contentPaddingMobile'] ) . 'px', ), ); @@ -3042,7 +3155,148 @@ public static function get_post_tablet_selectors( $attr ) { return array(); } + /** + * Get Tabs CSS + * + * @since 1.21.0 + * @param array $attr The block attributes. + * @param string $id The selector ID. + * @return array The Widget List. + */ + public static function get_tabs_css( $attr, $id ) { + $defaults = UAGB_Helper::$block_list['uagb/tabs']['attributes']; + + $attr = array_merge( $defaults, (array) $attr ); + + $selectors = array( + ' .uagb-tabs__panel .uagb-tab ' => array( + 'background' => $attr['headerBgColor'], + 'text-align' => $attr['titleAlign'], + 'padding-top' => UAGB_Helper::get_css_value( $attr['tabTitleVertPadding'], 'px' ), + 'padding-bottom' => UAGB_Helper::get_css_value( $attr['tabTitleVertPadding'], 'px' ), + 'padding-left' => UAGB_Helper::get_css_value( $attr['tabTitleHrPadding'], 'px' ), + 'padding-right' => UAGB_Helper::get_css_value( $attr['tabTitleHrPadding'], 'px' ), + 'margin-top' => UAGB_Helper::get_css_value( $attr['tabTitleTopMargin'], 'px' ), + 'margin-left' => UAGB_Helper::get_css_value( $attr['tabTitleLeftMargin'], 'px' ), + 'margin-right' => UAGB_Helper::get_css_value( $attr['tabTitleRightMargin'], 'px' ), + 'margin-bottom' => UAGB_Helper::get_css_value( $attr['tabTitleBottomMargin'], 'px' ), + 'border-color' => $attr['borderColor'], + 'border-width' => UAGB_Helper::get_css_value( $attr['borderWidth'], 'px' ), + ), + ' .uagb-tabs__panel .uagb-tab span' => array( + 'color' => $attr['headerTextColor'], + ), + ' .uagb-tabs__panel .uagb-tab.uagb-tabs__active' => array( + 'background' => $attr['activeTabBgColor'], + ), + + ' .uagb-tabs__panel .uagb-tab.uagb-tabs__active span' => array( + 'color' => $attr['activeTabTextColor'], + ), + ' .uagb-tabs__panel .uagb-tab.uagb-tabs__active .uagb-tabs__icon svg' => array( + 'fill' => $attr['activeiconColor'], + ), + + ' .uagb-tabs__body-wrap ' => array( + 'background' => $attr['bodyBgColor'], + 'padding-top' => UAGB_Helper::get_css_value( $attr['tabBodyVertPadding'], 'px' ), + 'padding-bottom' => UAGB_Helper::get_css_value( $attr['tabBodyVertPadding'], 'px' ), + 'padding-left' => UAGB_Helper::get_css_value( $attr['tabBodyHrPadding'], 'px' ), + 'padding-right' => UAGB_Helper::get_css_value( $attr['tabBodyHrPadding'], 'px' ), + 'margin-top' => UAGB_Helper::get_css_value( $attr['tabBodyTopMargin'], 'px' ), + 'margin-left' => UAGB_Helper::get_css_value( $attr['tabBodyLeftMargin'], 'px' ), + 'margin-right' => UAGB_Helper::get_css_value( $attr['tabBodyRightMargin'], 'px' ), + 'margin-bottom' => UAGB_Helper::get_css_value( $attr['tabBodyBottomMargin'], 'px' ), + 'border-color' => $attr['borderColor'], + 'border-width' => UAGB_Helper::get_css_value( $attr['borderWidth'], 'px' ), + ), + + ' .uagb-tabs__body-wrap p ' => array( + 'color' => $attr['bodyTextColor'], + ), + ' .uagb-tabs__icon svg' => array( + 'height' => UAGB_Helper::get_css_value( $attr['iconSize'], 'px' ), + 'width' => UAGB_Helper::get_css_value( $attr['iconSize'], 'px' ), + 'fill' => $attr['iconColor'], + ), + ' .uagb-tabs__icon-position-left > .uagb-tabs__icon' => array( + 'margin-right' => UAGB_Helper::get_css_value( $attr['iconSpacing'], 'px' ), + ), + ' .uagb-tabs__icon-position-right > .uagb-tabs__icon' => array( + 'margin-left' => UAGB_Helper::get_css_value( $attr['iconSpacing'], 'px' ), + ), + ' .uagb-tabs__icon-position-bottom > .uagb-tabs__icon' => array( + 'margin-top' => UAGB_Helper::get_css_value( $attr['iconSpacing'], 'px' ), + ), + ' .uagb-tabs__icon-position-top > .uagb-tabs__icon' => array( + 'margin-bottom' => UAGB_Helper::get_css_value( $attr['iconSpacing'], 'px' ), + ), + ); + $m_selectors = array(); + $t_selectors = array(); + + // Desktop. + if ( 'hstyle5' === $attr['tabsStyleD'] ) { + $selectors['.uagb-tabs__wrap.uagb-tabs__hstyle5-desktop'] = array( + 'background' => $attr['bodyBgColor'], + 'border-color' => $attr['borderColor'], + 'border-width' => UAGB_Helper::get_css_value( $attr['borderWidth'], 'px' ), + ); + } + if ( 'vstyle10' === $attr['tabsStyleD'] ) { + $selectors['.uagb-tabs__wrap.uagb-tabs__vstyle10-desktop'] = array( + 'background' => $attr['bodyBgColor'], + 'border-color' => $attr['borderColor'], + 'border-width' => UAGB_Helper::get_css_value( $attr['borderWidth'], 'px' ), + ); + } + // Mobile. + if ( 'hstyle5' === $attr['tabsStyleM'] ) { + $m_selectors['.uagb-tabs__wrap.uagb-tabs__hstyle5-mobile '] = array( + 'background' => $attr['bodyBgColor'], + 'border-color' => $attr['borderColor'], + 'border-width' => UAGB_Helper::get_css_value( $attr['borderWidth'], 'px' ), + ); + } + if ( 'vstyle10' === $attr['tabsStyleM'] ) { + $m_selectors['.uagb-tabs__wrap.uagb-tabs__vstyle10-mobile '] = array( + 'background' => $attr['bodyBgColor'], + 'border-color' => $attr['borderColor'], + 'border-width' => UAGB_Helper::get_css_value( $attr['borderWidth'], 'px' ), + ); + } + if ( 'stack4' === $attr['tabsStyleM'] ) { + $m_selectors['.uagb-tabs__wrap.uagb-tabs__stack4-mobile'] = array( + 'background' => $attr['bodyBgColor'], + 'border-color' => $attr['borderColor'], + 'border-width' => UAGB_Helper::get_css_value( $attr['borderWidth'], 'px' ), + ); + } + // Tablet. + if ( 'hstyle5' === $attr['tabsStyleT'] ) { + $t_selectors['.uagb-tabs__wrap.uagb-tabs__hstyle5-tablet '] = array( + 'background' => $attr['bodyBgColor'], + 'border-color' => $attr['borderColor'], + 'border-width' => UAGB_Helper::get_css_value( $attr['borderWidth'], 'px' ), + ); + } + if ( 'vstyle10' === $attr['tabsStyleT'] ) { + $t_selectors['.uagb-tabs__wrap.uagb-tabs__vstyle10-tablet'] = array( + 'background' => $attr['bodyBgColor'], + 'border-color' => $attr['borderColor'], + 'border-width' => UAGB_Helper::get_css_value( $attr['borderWidth'], 'px' ), + ); + } + $combined_selectors = array( + 'desktop' => $selectors, + 'mobile' => $m_selectors, + 'tablet' => $t_selectors, + ); + $combined_selectors = UAGB_Helper::get_typography_css( $attr, 'title', ' .uagb-tabs__panel .uagb-tab span', $combined_selectors ); + + return UAGB_Helper::generate_all_css( $combined_selectors, '.uagb-block-' . $id ); + } /** * Get Blockquote CSS * @@ -3269,26 +3523,23 @@ public static function get_timeline_selectors( $attr ) { ' .uagb-timeline__heading-text' => array( 'margin-bottom' => UAGB_Helper::get_css_value( $attr['headSpace'], 'px' ), ), - ' .uagb-timeline-desc-content' => array( + ' p.uagb-timeline-desc-content' => array( 'text-align' => $attr['align'], 'color' => $attr['subHeadingColor'], ), ' .uagb-timeline__events-new' => array( 'text-align' => $attr['align'], ), - ' .uagb-timeline__date-inner' => array( - 'text-align' => $attr['align'], - ), - ' .uagb-timeline__center-block .uagb-timeline__day-right .uagb-timeline__arrow:after' => array( + ' .uagb-timeline__day-right .uagb-timeline__arrow:after' => array( 'border-left-color' => $attr['backgroundColor'], ), - ' .uagb-timeline__right-block .uagb-timeline__day-right .uagb-timeline__arrow:after' => array( + ' .uagb-timeline__day-right .uagb-timeline__arrow:after' => array( 'border-left-color' => $attr['backgroundColor'], ), - ' .uagb-timeline__center-block .uagb-timeline__day-left .uagb-timeline__arrow:after' => array( + ' .uagb-timeline__day-left .uagb-timeline__arrow:after' => array( 'border-right-color' => $attr['backgroundColor'], ), - ' .uagb-timeline__left-block .uagb-timeline__day-left .uagb-timeline__arrow:after' => array( + ' .uagb-timeline__day-left .uagb-timeline__arrow:after' => array( 'border-right-color' => $attr['backgroundColor'], ), ' .uagb-timeline__line__inner' => array( @@ -3790,6 +4041,23 @@ public static function get_gf_styler_css( $attr, $id ) { 'margin-bottom' => UAGB_Helper::get_css_value( $attr['fieldSpacing'], 'px' ), 'text-align' => $attr['align'], ), + ' input[type=button]' => array( + 'color' => $attr['buttonTextColor'], + 'background-color' => $attr['buttonBgColor'], + 'border-color' => $attr['buttonBorderColor'], + 'border-style' => $attr['buttonBorderStyle'], + 'border-width' => UAGB_Helper::get_css_value( $attr['buttonBorderWidth'], 'px' ), + 'border-radius' => UAGB_Helper::get_css_value( $attr['buttonBorderRadius'], $attr['buttonBorderRadiusType'] ), + 'padding-left' => UAGB_Helper::get_css_value( $attr['buttonHrPadding'], 'px' ), + 'padding-right' => UAGB_Helper::get_css_value( $attr['buttonHrPadding'], 'px' ), + 'padding-top' => UAGB_Helper::get_css_value( $attr['buttonVrPadding'], 'px' ), + 'padding-bottom' => UAGB_Helper::get_css_value( $attr['buttonVrPadding'], 'px' ), + ), + ' input[type=button]:hover' => array( + 'color' => $attr['buttonTextHoverColor'], + 'background-color' => $attr['buttonBgHoverColor'], + 'border-color' => $attr['buttonBorderHoverColor'], + ), ' select' => array( 'background-color' => $attr['fieldBgColor'], 'border-style' => $attr['fieldBorderStyle'], @@ -4153,7 +4421,7 @@ public static function get_gf_styler_css( $attr, $id ) { $combined_selectors = UAGB_Helper::get_typography_css( $attr, 'successMsg', ' .gform_confirmation_message', $combined_selectors ); $combined_selectors = UAGB_Helper::get_typography_css( $attr, 'msg', ' .gform_wrapper div.validation_error', $combined_selectors ); $combined_selectors = UAGB_Helper::get_typography_css( $attr, 'msg', ' .wpgf-response-output', $combined_selectors ); - $combined_selectors = UAGB_Helper::get_typography_css( $attr, 'button', ' input.gform_button', $combined_selectors ); + $combined_selectors = UAGB_Helper::get_typography_css( $attr, 'button', ' input.gform_button, input.gform_previous_button, input.gform_next_button', $combined_selectors ); $combined_selectors = UAGB_Helper::get_typography_css( $attr, 'label', ' form .gfield_checkbox label.gfield_label', $combined_selectors ); $combined_selectors = UAGB_Helper::get_typography_css( $attr, 'label', ' form .gfield_radio label.gfield_label', $combined_selectors ); $combined_selectors = UAGB_Helper::get_typography_css( $attr, 'label', ' form label.gfield_label', $combined_selectors ); @@ -4317,20 +4585,20 @@ public static function get_table_of_contents_css( $attr, $id ) { $alignment = ( 'left' === $attr['headingAlignment'] ) ? 'flex-start' : ( ( 'right' === $attr['headingAlignment'] ) ? 'flex-end' : 'center' ); $selectors = array( - ' .uagb-toc__list-wrap ul li a:hover' => array( + ' .uagb-toc__list-wrap li a:hover' => array( 'color' => $attr['linkHoverColor'], ), - ' .uagb-toc__list-wrap ul li a' => array( + ' .uagb-toc__list-wrap li a' => array( 'color' => $attr['linkColor'], ), - ' .uagb-toc__title-wrap' => array( + ' .uagb-toc__title-wrap' => array( 'justify-content' => $alignment, 'margin-bottom' => UAGB_Helper::get_css_value( $attr['headingBottom'], 'px' ), ), - ' .uagb-toc__title' => array( + ' .uagb-toc__title' => array( 'color' => $attr['headingColor'], ), - ' .uagb-toc__wrap' => array( + ' .uagb-toc__wrap' => array( 'border-style' => $attr['borderStyle'], 'border-width' => UAGB_Helper::get_css_value( $attr['borderWidth'], 'px' ), 'border-color' => $attr['borderColor'], @@ -4341,7 +4609,7 @@ public static function get_table_of_contents_css( $attr, $id ) { 'padding-bottom' => UAGB_Helper::get_css_value( $attr['vPaddingDesktop'], $attr['paddingTypeDesktop'] ), 'background' => $attr['backgroundColor'], ), - ' .uagb-toc__list-wrap' => array( + ' .uagb-toc__list-wrap' => array( 'column-count' => $attr['tColumnsDesktop'], 'overflow' => 'hidden', ), @@ -4351,6 +4619,9 @@ public static function get_table_of_contents_css( $attr, $id ) { ' .uagb-toc__list-wrap > ul.uagb-toc__list li' => array( 'color' => $attr['bulletColor'], ), + ' .uagb-toc__list-wrap > li' => array( + 'color' => $attr['bulletColor'], + ), ' .uagb-toc__list-wrap ul.uagb-toc__list:first-child' => array( 'margin-left' => UAGB_Helper::get_css_value( $attr['hMarginDesktop'], $attr['marginTypeDesktop'] ), 'margin-right' => UAGB_Helper::get_css_value( $attr['hMarginDesktop'], $attr['marginTypeDesktop'] ), @@ -4360,7 +4631,7 @@ public static function get_table_of_contents_css( $attr, $id ) { ' .uagb-toc__list-wrap ul.uagb-toc__list:last-child > li:last-child' => array( 'padding-bottom' => 0, ), - ' .uag-toc__collapsible-wrap svg' => array( + ' .uag-toc__collapsible-wrap svg' => array( 'width' => UAGB_Helper::get_css_value( $attr['iconSize'], 'px' ), 'height' => UAGB_Helper::get_css_value( $attr['iconSize'], 'px' ), 'fill' => $attr['iconColor'], @@ -4950,5 +5221,287 @@ public static function get_taxonomy_list_css( $attr, $id ) { return UAGB_Helper::generate_all_css( $combined_selectors, '.uagb-block-' . $id ); } + + /** + * Get Forms Block Parent CSS + * + * @since 1.22.0 + * @param array $attr The block attributes. + * @param string $id The selector ID. + * @return array The Widget List. + */ + public static function get_forms_css( $attr, $id ) { + + $defaults = UAGB_Helper::$block_list['uagb/forms']['attributes']; + + $attr = array_merge( $defaults, (array) $attr ); + $selectors = array(); + $m_selectors = array(); + $t_selectors = array(); + $selectors = array( + ' form.uagb-forms-main-form, form.uagb-forms-main-form .uagb-forms-input, form.uagb-forms-main-form textarea' => array( + 'text-align' => $attr['overallAlignment'], + ), + ' .uagb-forms-main-form .uagb-forms-field-set' => array( + 'margin-bottom' => UAGB_Helper::get_css_value( $attr['fieldGap'], 'px' ), + ), + ' .uagb-forms-main-form .uagb-forms-input-label' => array( + 'color' => $attr['labelColor'], + 'font-size' => UAGB_Helper::get_css_value( $attr['labelFontSize'], $attr['labelFontSizeType'] ), + ), + ' .uagb-forms-success-message' => array( + 'border' => UAGB_Helper::get_css_value( $attr['successMessageBorderWidth'], 'px' ) . ' ' . $attr['successMessageBorderStyle'] . ' ' . $attr['successMessageBorderColor'], + 'background-color' => $attr['successMessageBGColor'], + 'color' => $attr['successMessageTextColor'], + ), + ' .uagb-forms-failed-message' => array( + 'border' => UAGB_Helper::get_css_value( $attr['failedMessageBorderWidth'], 'px' ) . ' ' . $attr['failedMessageBorderStyle'] . ' ' . $attr['failedMessageBorderColor'], + 'background-color' => $attr['failedMessageBGColor'], + 'color' => $attr['failedMessageTextColor'], + ), + ' .uagb-forms-main-form .uagb-forms-main-submit-button-wrap' => array( + 'text-align' => $attr['buttonAlign'], + + ), + ' .uagb-forms-main-form .uagb-forms-input:focus' => array( + 'outline' => ' none !important', + 'border-color' => $attr['inputactiveColor'], + ), + ' .uagb-forms-main-form .uagb-forms-main-submit-button' => array( + 'font-size' => UAGB_Helper::get_css_value( $attr['submitTextFontSize'], $attr['submitTextFontSizeType'] ), + 'color' => $attr['submitColor'], + 'background-color' => $attr['submitBgColor'], + 'border' => UAGB_Helper::get_css_value( $attr['submitborderWidth'], 'px' ) . ' ' . $attr['submitborderStyle'] . ' ' . $attr['submitborderColor'], + 'border-radius' => UAGB_Helper::get_css_value( $attr['submitborderRadius'], 'px' ), + 'padding' => UAGB_Helper::get_css_value( $attr['vPaddingSubmit'], 'px' ) . ' ' . UAGB_Helper::get_css_value( $attr['hPaddingSubmit'], 'px' ), + ), + ' .uagb-forms-main-form .uagb-forms-main-submit-button:hover' => array( + 'color' => $attr['submitColorHover'], + 'background-color' => $attr['submitBgColorHover'], + 'border-color' => $attr['submitborderHoverColor'], + ), + + ); + + // Checkbox Field css. + $selectors[' .uagb-forms-checkbox-wrap input[type=checkbox]:checked + label:before'] = array( + 'color' => $attr['inputColor'], + 'font-size' => 'calc(' . $attr['toggleSize'] . 'px / 1.2)', + ); + $selectors[' .uagb-forms-checkbox-wrap input[type=checkbox] + label:before'] = array( + 'background-color' => $attr['bgColor'], + 'width' => UAGB_Helper::get_css_value( $attr['toggleSize'], 'px' ), + 'height' => UAGB_Helper::get_css_value( $attr['toggleSize'], 'px' ), + ); + $selectors[' .uagb-forms-checkbox-wrap > label'] = array( + 'color' => $attr['inputColor'], + ); + + // Radio Button Field css. + $selectors[' .uagb-forms-radio-wrap input[type=radio]:checked + label:before'] = array( + 'background-color' => $attr['inputColor'], + 'font-size' => 'calc(' . $attr['toggleSize'] . 'px / 1.2)', + ); + $selectors[' .uagb-forms-radio-wrap input[type=radio] + label:before'] = array( + 'background-color' => $attr['bgColor'], + 'width' => UAGB_Helper::get_css_value( $attr['toggleSize'], 'px' ), + 'height' => UAGB_Helper::get_css_value( $attr['toggleSize'], 'px' ), + ); + $selectors[' .uagb-forms-radio-wrap > label'] = array( + 'color' => $attr['inputColor'], + ); + + // Toggle Field css. + $selectors[' .uagb-slider'] = array( + 'background-color' => $attr['bgColor'], + ); + $selectors[' .uagb-forms-main-form .uagb-switch'] = array( + 'width' => UAGB_Helper::get_css_value( '50' + $attr['toggleWidthSize'] + $attr['inputborderWidth'], 'px' ), + 'height' => UAGB_Helper::get_css_value( '25' + $attr['toggleHeightSize'] + $attr['inputborderWidth'], 'px' ), + ); + $selectors[' .uagb-forms-main-form .uagb-slider:before'] = array( + 'width' => UAGB_Helper::get_css_value( '20' + $attr['toggleWidthSize'] - $attr['inputborderWidth'] / 2, 'px' ), + 'height' => UAGB_Helper::get_css_value( '20' + $attr['toggleHeightSize'] - $attr['inputborderWidth'], 'px' ), + ); + $selectors[' .uagb-switch input:checked + .uagb-slider'] = array( + 'background-color' => $attr['toggleActiveColor'], + ); + $selectors[' .uagb-switch input:focus + .uagb-slider'] = array( + 'box-shadow' => '0 0 1px' . $attr['toggleActiveColor'], + ); + + // Accept Field css. + $selectors[' .uagb-forms-accept-wrap input[type=checkbox]:checked + label:before'] = array( + 'color' => $attr['inputColor'], + 'font-size' => 'calc(' . $attr['toggleSize'] . 'px / 1.2)', + ); + $selectors[' .uagb-forms-accept-wrap input[type=checkbox] + label:before'] = array( + 'background-color' => $attr['bgColor'], + 'width' => UAGB_Helper::get_css_value( $attr['toggleSize'], 'px' ), + 'height' => UAGB_Helper::get_css_value( $attr['toggleSize'], 'px' ), + ); + $selectors[' .uagb-forms-accept-wrap > label'] = array( + 'color' => $attr['inputColor'], + ); + + if ( 'boxed' === $attr['formStyle'] ) { + $selectors[' .uagb-forms-main-form .uagb-forms-checkbox-wrap input[type=checkbox] + label:before'] = array( + 'border' => UAGB_Helper::get_css_value( $attr['inputborderWidth'], 'px' ) . ' ' . $attr['inputborderStyle'] . ' ' . $attr['inputborderColor'], + 'border-radius' => UAGB_Helper::get_css_value( $attr['inputborderRadius'], 'px' ), + ); + $selectors[' .uagb-forms-main-form .uagb-forms-checkbox-wrap > input'] = array( + 'color' => $attr['inputColor'], + ); + $selectors[' .uagb-forms-main-form .uagb-forms-radio-wrap input[type=radio] + label:before'] = array( + 'border' => UAGB_Helper::get_css_value( $attr['inputborderWidth'], 'px' ) . ' ' . $attr['inputborderStyle'] . ' ' . $attr['inputborderColor'], + ); + $selectors[' .uagb-forms-main-form .uagb-forms-radio-wrap > input'] = array( + 'color' => $attr['inputColor'], + ); + $selectors[' .uagb-forms-main-form .uagb-slider'] = array( + 'border' => UAGB_Helper::get_css_value( $attr['inputborderWidth'], 'px' ) . ' ' . $attr['inputborderStyle'] . ' ' . $attr['inputborderColor'], + ); + $selectors[' .uagb-forms-main-form .uagb-forms-accept-wrap input[type=checkbox] + label:before'] = array( + 'border' => UAGB_Helper::get_css_value( $attr['inputborderWidth'], 'px' ) . ' ' . $attr['inputborderStyle'] . ' ' . $attr['inputborderColor'], + 'border-radius' => UAGB_Helper::get_css_value( $attr['inputborderRadius'], 'px' ), + ); + $selectors[' .uagb-forms-main-form .uagb-forms-accept-wrap > input'] = array( + 'color' => $attr['inputColor'], + ); + + $selectors[' .uagb-forms-main-form .uagb-forms-input'] = array( + 'background-color' => $attr['bgColor'], + 'border' => UAGB_Helper::get_css_value( $attr['inputborderWidth'], 'px' ) . ' ' . $attr['inputborderStyle'] . ' ' . $attr['inputborderColor'], + 'border-radius' => UAGB_Helper::get_css_value( $attr['inputborderRadius'], 'px' ), + 'color' => $attr['inputColor'], + 'padding' => UAGB_Helper::get_css_value( $attr['vPaddingField'], 'px' ) . ' ' . UAGB_Helper::get_css_value( $attr['hPaddingField'], 'px' ), + + ); + $selectors[' .uagb-forms-main-form .uagb-forms-input.uagb-form-phone-country'] = array( + 'padding' => UAGB_Helper::get_css_value( $attr['vPaddingField'] - 1, 'px' ) . ' ' . UAGB_Helper::get_css_value( $attr['hPaddingField'], 'px' ), + ); + + $selectors[' .uagb-forms-input:hover'] = array( + 'border-color' => $attr['inputborderHoverColor'], + ); + $selectors[' .uagb-forms-input::placeholder'] = array( + 'color' => $attr['inputplaceholderColor'], + ); + } + + if ( 'underlined' === $attr['formStyle'] ) { + $selectors[' .uagb-forms-main-form .uagb-forms-accept-wrap input[type=checkbox] + label:before'] = array( + 'border-bottom' => UAGB_Helper::get_css_value( $attr['inputborderWidth'], 'px' ) . ' ' . $attr['inputborderStyle'] . ' ' . $attr['inputborderColor'], + ); + $selectors[' .uagb-forms-main-form .uagb-forms-checkbox-wrap input[type=checkbox] + label:before'] = array( + 'border-bottom' => UAGB_Helper::get_css_value( $attr['inputborderWidth'], 'px' ) . ' ' . $attr['inputborderStyle'] . ' ' . $attr['inputborderColor'], + ); + $selectors[' .uagb-forms-main-form .uagb-slider'] = array( + 'border-bottom' => UAGB_Helper::get_css_value( $attr['inputborderWidth'], 'px' ) . ' ' . $attr['inputborderStyle'] . ' ' . $attr['inputborderColor'], + ); + $selectors[' .uagb-forms-main-form .uagb-forms-radio-wrap input[type=radio] + label:before'] = array( + 'border-bottom' => UAGB_Helper::get_css_value( $attr['inputborderWidth'], 'px' ) . ' ' . $attr['inputborderStyle'] . ' ' . $attr['inputborderColor'], + ); + $selectors[' .uagb-forms-main-form .uagb-forms-input'] = array( + 'border' => 0, + 'outline' => 0, + 'border-radius' => 0, + 'background' => 'transparent', + 'border-bottom' => UAGB_Helper::get_css_value( $attr['inputborderWidth'], 'px' ) . ' ' . $attr['inputborderStyle'] . ' ' . $attr['inputborderColor'], + 'color' => $attr['inputColor'], + 'padding' => UAGB_Helper::get_css_value( $attr['vPaddingField'], 'px' ) . ' ' . UAGB_Helper::get_css_value( $attr['hPaddingField'], 'px' ), + + ); + $selectors[' .uagb-forms-main-form .uagb-forms-input.uagb-form-phone-country'] = array( + 'padding' => UAGB_Helper::get_css_value( $attr['vPaddingField'] - 1, 'px' ) . ' ' . UAGB_Helper::get_css_value( $attr['hPaddingField'], 'px' ), + ); + + $selectors[' .uagb-forms-input:hover'] = array( + 'border-color' => $attr['inputborderHoverColor'], + ); + $selectors[' .uagb-forms-input::placeholder'] = array( + 'color' => $attr['inputplaceholderColor'], + ); + } + + $combined_selectors = array( + 'desktop' => $selectors, + 'tablet' => $t_selectors, + 'mobile' => $m_selectors, + ); + + $combined_selectors = UAGB_Helper::get_typography_css( $attr, 'submitText', ' .uagb-forms-main-form .uagb-forms-main-submit-button', $combined_selectors ); + + $combined_selectors = UAGB_Helper::get_typography_css( $attr, 'label', ' .uagb-forms-main-form .uagb-forms-input-label', $combined_selectors ); + + $combined_selectors = UAGB_Helper::get_typography_css( $attr, 'input', ' .uagb-forms-main-form .uagb-forms-input::placeholder', $combined_selectors ); + + $combined_selectors = UAGB_Helper::get_typography_css( $attr, 'input', ' .uagb-forms-main-form .uagb-forms-input', $combined_selectors ); + + return UAGB_Helper::generate_all_css( $combined_selectors, '.uagb-block-' . $id ); + } + + /** + * Get Lottie CSS. + * + * @since 1.20.0 + * @param array $attr The block attributes. + * @param string $id The selector ID. + */ + public static function get_lottie_css( $attr, $id ) { + + $defaults = UAGB_Helper::$block_list['uagb/lottie']['attributes']; + $attr = array_merge( $defaults, $attr ); + + $selectors = array(); + $t_selectors = array(); + $m_selectors = array(); + + $selectors = array( + '.uagb-lottie__outer-wrap' => array( + 'width' => UAGB_Helper::get_css_value( $attr['width'], 'px' ), + 'height' => UAGB_Helper::get_css_value( $attr['height'], 'px' ), + 'overflow' => 'hidden', + 'margin' => '0px auto', + 'outline' => 'none', + 'background-color' => $attr['backgroundColor'], + ), + ); + $selectors['.uagb-lottie__outer-wrap:hover'] = array( + 'background' => $attr['backgroundHColor'], + ); + + $t_selectors = array( + '.uagb-lottie__outer-wrap' => array( + 'width' => UAGB_Helper::get_css_value( $attr['widthTablet'], 'px' ), + 'height' => UAGB_Helper::get_css_value( $attr['heightTablet'], 'px' ), + ), + ); + + $m_selectors = array( + '.uagb-lottie__outer-wrap' => array( + 'width' => UAGB_Helper::get_css_value( $attr['widthMob'], 'px' ), + 'height' => UAGB_Helper::get_css_value( $attr['heightMob'], 'px' ), + ), + ); + + $combined_selectors = array( + 'desktop' => $selectors, + 'tablet' => $t_selectors, + 'mobile' => $m_selectors, + ); + + return UAGB_Helper::generate_all_css( $combined_selectors, '.uagb-block-' . $id ); + } + + /** + * Get Condition block CSS. + * + * @since 1.22.0 + */ + public static function get_condition_block_css() { + + return '@media (min-width: 1025px){.entry-content .uag-hide-desktop.uagb-google-map__wrap,.entry-content .uag-hide-desktop{display:none}}@media (min-width: 768px) and (max-width: 1024px){.entry-content .uag-hide-tab.uagb-google-map__wrap,.entry-content .uag-hide-tab{display:none}}@media (max-width: 767px){.entry-content .uag-hide-mob.uagb-google-map__wrap,.entry-content .uag-hide-mob{display:none}}'; + } } } diff --git a/plugins/ultimate-addons-for-gutenberg/classes/class-uagb-block-js.php b/plugins/ultimate-addons-for-gutenberg/classes/class-uagb-block-js.php index a952b708..7bb4ada1 100644 --- a/plugins/ultimate-addons-for-gutenberg/classes/class-uagb-block-js.php +++ b/plugins/ultimate-addons-for-gutenberg/classes/class-uagb-block-js.php @@ -44,7 +44,7 @@ public static function get_testimonial_js( $attr, $id ) { 'speed' => $attr['transitionSpeed'], 'arrows' => $arrows, 'dots' => $dots, - 'rtl' => false, + 'rtl' => is_rtl(), 'prevArrow' => '', 'nextArrow' => '', 'responsive' => array( @@ -210,6 +210,70 @@ public static function get_inline_notice_js( $attr, $id ) { $attr['block_id'], + 'reCaptchaEnable' => $attr['reCaptchaEnable'], + 'reCaptchaType' => $attr['reCaptchaType'], + 'reCaptchaSiteKeyV2' => $attr['reCaptchaSiteKeyV2'], + 'reCaptchaSecretKeyV2' => $attr['reCaptchaSecretKeyV2'], + 'reCaptchaSiteKeyV3' => $attr['reCaptchaSiteKeyV3'], + 'reCaptchaSecretKeyV3' => $attr['reCaptchaSecretKeyV3'], + 'afterSubmitToEmail' => $attr['afterSubmitToEmail'], + 'afterSubmitCcEmail' => $attr['afterSubmitCcEmail'], + 'afterSubmitBccEmail' => $attr['afterSubmitBccEmail'], + 'afterSubmitEmailSubject' => $attr['afterSubmitEmailSubject'], + 'sendAfterSubmitEmail' => $attr['sendAfterSubmitEmail'], + 'confirmationType' => $attr['confirmationType'], + 'hidereCaptchaBatch' => $attr['hidereCaptchaBatch'], + 'captchaMessage' => $attr['captchaMessage'], + 'confirmationUrl' => $attr['confirmationUrl'], + ); + ob_start(); + ?> + jQuery( document ).ready(function() { + UAGBForms.init( , '' ); + }); + + jQuery( document ).ready(function() { + UAGBLottie._run( , '' ); + }); + array( + 'uagb/advanced-heading' => array( 'slug' => '', 'title' => __( 'Advanced Heading', 'ultimate-addons-for-gutenberg' ), 'description' => __( 'This block lets you add a combination of a heading and a sub-heading with a separator in between.', 'ultimate-addons-for-gutenberg' ), 'default' => true, + 'extension' => false, 'attributes' => array( 'classMigrate' => false, 'headingAlign' => 'center', @@ -84,11 +85,12 @@ public static function get_block_attributes() { 'separatorSpace' => 15, ), ), - 'uagb/columns' => array( + 'uagb/columns' => array( 'slug' => '', 'title' => __( 'Advanced Columns', 'ultimate-addons-for-gutenberg' ), 'description' => __( 'This block gives you advanced options to insert a number of columns within a single row.', 'ultimate-addons-for-gutenberg' ), 'default' => true, + 'extension' => false, 'attributes' => array( 'classMigrate' => false, 'block_id' => '', @@ -171,12 +173,13 @@ public static function get_block_attributes() { 'gradientValue' => '', ), ), - 'uagb/column' => array( + 'uagb/column' => array( 'slug' => '', 'title' => __( 'Column', 'ultimate-addons-for-gutenberg' ), 'description' => __( 'This block is an immediate child of Advanced Columns.', 'ultimate-addons-for-gutenberg' ), 'default' => true, 'is_child' => true, + 'extension' => false, 'attributes' => array( 'classMigrate' => false, 'block_id' => '', @@ -246,11 +249,12 @@ public static function get_block_attributes() { ), ), - 'uagb/blockquote' => array( + 'uagb/blockquote' => array( 'slug' => '', 'title' => __( 'Blockquote', 'ultimate-addons-for-gutenberg' ), 'description' => __( 'This block allows you to display your Blockquote.', 'ultimate-addons-for-gutenberg' ), 'default' => true, + 'extension' => false, 'attributes' => array( 'classMigrate' => false, 'block_id ' => '', @@ -341,11 +345,12 @@ public static function get_block_attributes() { 'quotePaddingMobile' => '', ), ), - 'uagb/call-to-action' => array( + 'uagb/call-to-action' => array( 'slug' => '', 'title' => __( 'Call To Action', 'ultimate-addons-for-gutenberg' ), 'description' => __( 'This block allows you to place an CTA along with a heading and description within a single block.', 'ultimate-addons-for-gutenberg' ), 'default' => true, + 'extension' => false, 'attributes' => array( 'classMigrate' => false, 'inheritFromTheme' => false, @@ -413,12 +418,13 @@ public static function get_block_attributes() { 'ctaLinkHoverColor' => '', ), ), - 'uagb/cf7-styler' => array( + 'uagb/cf7-styler' => array( 'slug' => '', 'title' => __( 'Contact Form 7 Styler', 'ultimate-addons-for-gutenberg' ), 'description' => __( 'This block allows you to add and style your Contact Form 7 forms right in the Gutenberg editor.', 'ultimate-addons-for-gutenberg' ), 'is_active' => class_exists( 'WPCF7_ContactForm' ), 'default' => true, + 'extension' => false, 'attributes' => array( 'block_id' => '', 'align' => 'left', @@ -549,11 +555,12 @@ public static function get_block_attributes() { 'buttonBorderRadiusType' => 'px', ), ), - 'uagb/content-timeline' => array( + 'uagb/content-timeline' => array( 'slug' => '', 'title' => __( 'Content Timeline', 'ultimate-addons-for-gutenberg' ), 'description' => __( 'The Timeline block lets you create beautiful timelines on your website.', 'ultimate-addons-for-gutenberg' ), 'default' => true, + 'extension' => false, 'js_assets' => array( 'uagb-timeline-js' ), 'attributes' => array( 'classMigrate' => false, @@ -621,11 +628,38 @@ public static function get_block_attributes() { 'stack' => 'tablet', ), ), - 'uagb/faq' => array( + 'uagb/content-timeline-child' => array( + 'slug' => '', + 'title' => __( 'Content Timeline Child', 'ultimate-addons-for-gutenberg' ), + 'description' => __( 'The Timeline block lets you create beautiful timelines on your website.', 'ultimate-addons-for-gutenberg' ), + 'default' => true, + 'is_child' => true, + 'attributes' => array( + 'align' => 'center', + 'headingColor' => '', + 'subHeadingColor' => '', + 'backgroundColor' => '#eee', + 'borderFocus' => '#5cb85c', + 'timelinAlignment' => 'center', + 'arrowlinAlignment' => 'center', + 'headSpace' => 5, + 'separatorwidth' => 3, + 'borderwidth' => 0, + 'connectorBgsize' => 35, + 'dateBottomspace' => 5, + 'borderRadius' => 2, + 'bgPadding' => 20, + 'iconSize' => 12, + 'iconFocus' => '#fff', + 'stack' => 'tablet', + ), + ), + 'uagb/faq' => array( 'slug' => '', 'title' => __( 'FAQ - Schema', 'ultimate-addons-for-gutenberg' ), 'description' => __( 'This block helps you add FAQ or Accordion with automatically adding FAQ Schema to your page.', 'ultimate-addons-for-gutenberg' ), 'default' => true, + 'extension' => false, 'js_assets' => array( 'uagb-faq-js' ), 'attributes' => array( 'block_id' => '', @@ -715,12 +749,13 @@ public static function get_block_attributes() { 'questionBottomPaddingMobile' => 10, ), ), - 'uagb/faq-child' => array( + 'uagb/faq-child' => array( 'slug' => '', 'title' => __( 'FAQ - Schema Child', 'ultimate-addons-for-gutenberg' ), 'description' => __( 'This block helps you add single FAQ.', 'ultimate-addons-for-gutenberg' ), 'default' => true, 'is_child' => true, + 'extension' => false, 'attributes' => array( 'block_id' => '', 'question' => '', @@ -730,11 +765,12 @@ public static function get_block_attributes() { 'layout' => 'accordion', ), ), - 'uagb/gf-styler' => array( + 'uagb/gf-styler' => array( 'slug' => '', 'title' => __( 'Gravity Form Styler', 'ultimate-addons-for-gutenberg' ), 'description' => __( 'This block allows you to add and style your Gravity Forms right in the Gutenberg editor.', 'ultimate-addons-for-gutenberg' ), 'default' => true, + 'extension' => false, 'is_active' => class_exists( 'GFForms' ), 'attributes' => array( 'block_id' => '', @@ -883,22 +919,24 @@ public static function get_block_attributes() { 'successMsgLoadGoogleFonts' => false, ), ), - 'uagb/google-map' => array( + 'uagb/google-map' => array( 'slug' => '', 'title' => __( 'Google Map', 'ultimate-addons-for-gutenberg' ), 'description' => __( 'This block allows you to place a Google Map Location.', 'ultimate-addons-for-gutenberg' ), 'default' => true, + 'extension' => false, 'attributes' => array( 'block_id' => '', 'height' => '300', 'language' => 'en', ), ), - 'uagb/how-to' => array( + 'uagb/how-to' => array( 'slug' => '', 'title' => __( 'How-to Schema', 'ultimate-addons-for-gutenberg' ), 'description' => __( 'This block allows you to design attractive How-to pages or articles with automatically adding How-to Schema to your page.', 'ultimate-addons-for-gutenberg' ), 'default' => true, + 'extension' => false, 'attributes' => array( 'block_id' => '', 'overallAlignment' => 'left', @@ -967,11 +1005,12 @@ public static function get_block_attributes() { 'schema' => '', ), ), - 'uagb/icon-list' => array( + 'uagb/icon-list' => array( 'slug' => '', 'title' => __( 'Icon List', 'ultimate-addons-for-gutenberg' ), 'description' => __( 'This block allows you to place an image or icon in a list format.', 'ultimate-addons-for-gutenberg' ), 'default' => true, + 'extension' => false, 'attributes' => array( 'classMigrate' => false, 'childMigrate' => false, @@ -1020,12 +1059,13 @@ public static function get_block_attributes() { 'stack' => 'none', ), ), - 'uagb/icon-list-child' => array( + 'uagb/icon-list-child' => array( 'slug' => '', 'title' => __( 'Icon', 'ultimate-addons-for-gutenberg' ), 'description' => __( 'This block allows you to place an image or icon in a list format.', 'ultimate-addons-for-gutenberg' ), 'default' => true, 'is_child' => true, + 'extension' => false, 'attributes' => array( 'image_icon' => 'icon', 'icon' => 'fab fa-facebook', @@ -1042,11 +1082,12 @@ public static function get_block_attributes() { 'target' => false, ), ), - 'uagb/info-box' => array( + 'uagb/info-box' => array( 'slug' => '', 'title' => __( 'Info Box', 'ultimate-addons-for-gutenberg' ), 'description' => __( 'This block allows you to place an image or icon along with a heading and description within a single block.', 'ultimate-addons-for-gutenberg' ), 'default' => true, + 'extension' => false, 'attributes' => array( 'classMigrate' => false, 'inheritFromTheme' => false, @@ -1139,11 +1180,12 @@ public static function get_block_attributes() { 'ctaIconSpace' => '5', ), ), - 'uagb/inline-notice' => array( + 'uagb/inline-notice' => array( 'slug' => '', 'title' => __( 'Inline Notice', 'ultimate-addons-for-gutenberg' ), 'description' => __( 'This block helps you add an inline notice.', 'ultimate-addons-for-gutenberg' ), 'default' => true, + 'extension' => false, 'js_assets' => array( 'uagb-inline-notice-js', 'uagb-cookie-lib' ), 'attributes' => array( 'block_id' => '', @@ -1192,11 +1234,12 @@ public static function get_block_attributes() { ), ), - 'uagb/marketing-button' => array( + 'uagb/marketing-button' => array( 'slug' => '', 'title' => __( 'Marketing Button', 'ultimate-addons-for-gutenberg' ), 'description' => __( 'This block allows you to place a Marketing Button with small description.', 'ultimate-addons-for-gutenberg' ), 'default' => true, + 'extension' => false, 'attributes' => array( 'classMigrate' => false, 'block_id' => '', @@ -1267,11 +1310,12 @@ public static function get_block_attributes() { 'iconFontSizeMobile' => 20, ), ), - 'uagb/buttons' => array( + 'uagb/buttons' => array( 'slug' => '', 'title' => __( 'Multi Buttons', 'ultimate-addons-for-gutenberg' ), 'description' => __( 'This block allows you to add multiple buttons with a single block.', 'ultimate-addons-for-gutenberg' ), 'default' => true, + 'extension' => false, 'attributes' => array( 'classMigrate' => false, 'childMigrate' => false, @@ -1287,11 +1331,12 @@ public static function get_block_attributes() { 'fontSubset' => '', ), ), - 'uagb/buttons-child' => array( + 'uagb/buttons-child' => array( 'slug' => '', 'title' => __( 'Button', 'ultimate-addons-for-gutenberg' ), 'description' => __( 'This block allows you to style button.', 'ultimate-addons-for-gutenberg' ), 'default' => true, + 'extension' => false, 'attributes' => array( 'inheritFromTheme' => false, 'block_id' => '', @@ -1323,14 +1368,16 @@ public static function get_block_attributes() { 'iconSpace' => 8, ), ), - 'uagb/post-carousel' => array( + 'uagb/post-carousel' => array( 'slug' => '', 'title' => __( 'Post Carousel', 'ultimate-addons-for-gutenberg' ), 'description' => __( 'This block fetches the blog posts you may have on your website and displays them in a carousel layout.', 'ultimate-addons-for-gutenberg' ), 'default' => true, + 'extension' => false, 'js_assets' => array( 'uagb-slick-js', 'uagb-post-js', 'uagb-imagesloaded' ), 'css_assets' => array( 'uagb-slick-css' ), 'attributes' => array( + 'post_type' => 'carousel', 'inheritFromTheme' => false, 'align' => 'left', 'rowGap' => '20', @@ -1396,6 +1443,8 @@ public static function get_block_attributes() { 'contentPaddingMobile' => '', 'btnVPadding' => '5', 'btnHPadding' => '10', + 'ctaBottomSpace' => '0', + 'imageBottomSpace' => '15', 'titleBottomSpace' => '15', 'metaBottomSpace' => '15', 'excerptBottomSpace' => '25', @@ -1412,14 +1461,24 @@ public static function get_block_attributes() { 'borderColor' => '', 'borderHColor' => '', 'borderRadius' => '0', + 'imgPosition' => 'top', + 'layoutConfig' => array( + array( 'uagb/post-image' ), + array( 'uagb/post-title' ), + array( 'uagb/post-meta' ), + array( 'uagb/post-excerpt' ), + array( 'uagb/post-button' ), + ), ), ), - 'uagb/post-grid' => array( + 'uagb/post-grid' => array( 'slug' => '', 'title' => __( 'Post Grid', 'ultimate-addons-for-gutenberg' ), 'description' => __( 'This block fetches the blog posts you may have on your website and displays them in a grid layout.', 'ultimate-addons-for-gutenberg' ), 'default' => true, + 'extension' => false, 'attributes' => array( + 'post_type' => 'grid', 'inheritFromTheme' => false, 'align' => 'left', 'rowGap' => '20', @@ -1485,6 +1544,8 @@ public static function get_block_attributes() { 'contentPaddingMobile' => '', 'btnVPadding' => '5', 'btnHPadding' => '10', + 'ctaBottomSpace' => '0', + 'imageBottomSpace' => '15', 'titleBottomSpace' => '15', 'metaBottomSpace' => '15', 'excerptBottomSpace' => '25', @@ -1512,15 +1573,25 @@ public static function get_block_attributes() { 'paginationAlignment' => 'left', 'paginationNextText' => 'ยซ Previous', 'paginationPrevText' => 'Next ยป', + 'imgPosition' => 'top', + 'layoutConfig' => array( + array( 'uagb/post-image' ), + array( 'uagb/post-title' ), + array( 'uagb/post-meta' ), + array( 'uagb/post-excerpt' ), + array( 'uagb/post-button' ), + ), ), ), - 'uagb/post-masonry' => array( + 'uagb/post-masonry' => array( 'slug' => '', 'title' => __( 'Post Masonry', 'ultimate-addons-for-gutenberg' ), 'description' => __( 'This block fetches the blog posts you may have on your website and displays them in a masonry layout.', 'ultimate-addons-for-gutenberg' ), 'default' => true, + 'extension' => false, 'js_assets' => array( 'uagb-masonry', 'uagb-imagesloaded', 'uagb-post-js' ), 'attributes' => array( + 'post_type' => 'masonry', 'postType' => 'post', 'inheritFromTheme' => false, 'align' => 'left', @@ -1587,6 +1658,8 @@ public static function get_block_attributes() { 'contentPaddingMobile' => '', 'btnVPadding' => '5', 'btnHPadding' => '10', + 'ctaBottomSpace' => '0', + 'imageBottomSpace' => '15', 'titleBottomSpace' => '15', 'metaBottomSpace' => '15', 'excerptBottomSpace' => '25', @@ -1620,13 +1693,58 @@ public static function get_block_attributes() { 'hpaginationButtonPaddingMobile' => 12, 'hpaginationButtonPaddingTablet' => 12, 'hpaginationButtonPaddingDesktop' => 12, + 'imgPosition' => 'top', + 'layoutConfig' => array( + array( 'uagb/post-image' ), + array( 'uagb/post-title' ), + array( 'uagb/post-meta' ), + array( 'uagb/post-excerpt' ), + array( 'uagb/post-button' ), + ), + ), ), - 'uagb/post-timeline' => array( + 'uagb/post-title' => array( + 'slug' => '', + 'title' => __( 'Post Title', 'ultimate-addons-for-gutenberg' ), + 'description' => __( 'This block fetches the blog title.', 'ultimate-addons-for-gutenberg' ), + 'default' => true, + 'is_child' => true, + ), + 'uagb/post-button' => array( + 'slug' => '', + 'title' => __( 'Post Button', 'ultimate-addons-for-gutenberg' ), + 'description' => __( 'This block display\'s a call to action button which links to the blogs page.', 'ultimate-addons-for-gutenberg' ), + 'default' => true, + 'is_child' => true, + ), + 'uagb/post-excerpt' => array( + 'slug' => '', + 'title' => __( 'Post Excerpt', 'ultimate-addons-for-gutenberg' ), + 'description' => __( 'This block fetches short description about a post.', 'ultimate-addons-for-gutenberg' ), + 'default' => true, + 'is_child' => true, + ), + 'uagb/post-meta' => array( + 'slug' => '', + 'title' => __( 'Post Meta', 'ultimate-addons-for-gutenberg' ), + 'description' => __( 'This block fetches post comments, author, publish date and categories data.', 'ultimate-addons-for-gutenberg' ), + 'default' => true, + 'is_child' => true, + ), + 'uagb/post-image' => array( + 'slug' => '', + 'title' => __( 'Post Image', 'ultimate-addons-for-gutenberg' ), + 'description' => __( 'This block fetches posts feature image.', 'ultimate-addons-for-gutenberg' ), + 'default' => true, + 'is_child' => true, + ), + 'uagb/post-timeline' => array( 'slug' => '', 'title' => __( 'Post Timeline', 'ultimate-addons-for-gutenberg' ), 'description' => __( 'The Timeline block lets you create beautiful timelines of Posts on your website.', 'ultimate-addons-for-gutenberg' ), 'default' => true, + 'extension' => false, 'js_assets' => array( 'uagb-timeline-js' ), 'attributes' => array( 'align' => 'center', @@ -1723,11 +1841,12 @@ public static function get_block_attributes() { 'ctaBackground' => '#333', ), ), - 'uagb/restaurant-menu' => array( + 'uagb/restaurant-menu' => array( 'slug' => '', 'title' => __( 'Price List', 'ultimate-addons-for-gutenberg' ), 'description' => __( 'This block allows you to add attractive Price List.', 'ultimate-addons-for-gutenberg' ), 'default' => true, + 'extension' => false, 'attributes' => array( 'classMigrate' => false, 'block_id' => '', @@ -1796,11 +1915,12 @@ public static function get_block_attributes() { 'seperatorColor' => '#b2b4b5', ), ), - 'uagb/review' => array( + 'uagb/review' => array( 'slug' => '', 'title' => __( 'Review Schema', 'ultimate-addons-for-gutenberg' ), 'description' => __( 'This block helps you to add a review for various items with schema support.', 'ultimate-addons-for-gutenberg' ), 'default' => true, + 'extension' => false, 'attributes' => array( 'block_id' => '', 'enableSchema' => '', @@ -1890,11 +2010,13 @@ public static function get_block_attributes() { 'starOutlineColor' => '', ), ), - 'uagb/restaurant-menu-child' => array( + 'uagb/restaurant-menu-child' => array( 'slug' => '', 'title' => __( 'Price List-Child', 'ultimate-addons-for-gutenberg' ), 'description' => __( 'This block allows you to add attractive Price List.', 'ultimate-addons-for-gutenberg' ), 'default' => true, + 'is_child' => true, + 'extension' => false, 'attributes' => array( 'classMigrate' => false, 'childMigrate' => false, @@ -1919,11 +2041,12 @@ public static function get_block_attributes() { ), ), - 'uagb/section' => array( + 'uagb/section' => array( 'slug' => '', 'title' => __( 'Section', 'ultimate-addons-for-gutenberg' ), 'description' => __( 'This block is an outer wrap section that allows you to add other blocks within it.', 'ultimate-addons-for-gutenberg' ), 'default' => true, + 'extension' => false, 'attributes' => array( 'classMigrate' => false, 'topPadding' => '20', @@ -2001,11 +2124,12 @@ public static function get_block_attributes() { 'gradientValue' => '', ), ), - 'uagb/social-share' => array( + 'uagb/social-share' => array( 'slug' => '', 'title' => __( 'Social Share', 'ultimate-addons-for-gutenberg' ), 'description' => __( 'This block allows you to let users share your content across various social networking sites.', 'ultimate-addons-for-gutenberg' ), 'default' => true, + 'extension' => false, 'attributes' => array( 'classMigrate' => false, 'childMigrate' => false, @@ -2037,12 +2161,13 @@ public static function get_block_attributes() { 'stack' => 'none', ), ), - 'uagb/social-share-child' => array( + 'uagb/social-share-child' => array( 'slug' => '', 'title' => __( 'Social Share Child', 'ultimate-addons-for-gutenberg' ), 'description' => __( 'This block allows you to place an image or icon in a list format.', 'ultimate-addons-for-gutenberg' ), 'default' => true, 'is_child' => true, + 'extension' => false, 'attributes' => array( 'type' => 'facebook', 'image_icon' => 'icon', @@ -2054,16 +2179,90 @@ public static function get_block_attributes() { 'icon_bg_hover_color' => '', ), ), - 'uagb/table-of-contents' => array( + 'uagb/tabs' => array( + 'slug' => '', + 'title' => __( 'Tabs', 'ultimate-addons-for-gutenberg' ), + 'description' => __( 'This block allows you to display your content in tabs layout.', 'ultimate-addons-for-gutenberg' ), + 'default' => true, + 'extension' => false, + 'js_assets' => array( 'uagb-tabs-js' ), + 'attributes' => array( + 'tabHeaders' => array( 'Tab 1', 'Tab 2', 'Tab 3' ), + 'tabActive' => 0, + 'tabActiveFrontend' => 0, + 'tabsStyleD' => 'hstyle1', + 'tabsStyleT' => 'vstyle6', + 'tabsStyleM' => 'vstyle6', + 'headerBgColor' => '', + 'headerTextColor' => '#007cba', + 'bodyBgColor' => '', + 'bodyTextColor' => '', + 'borderWidth' => 1, + 'borderColor' => '#e0e0e0', + 'borderRadius' => '', + 'activeTabBgColor' => '#007cba', + 'activeTabTextColor' => '#fff', + 'activeiconColor' => '#fff', + 'tabTitleLeftMargin' => '', + 'tabTitleRightMargin' => '', + 'tabTitleTopMargin' => '', + 'tabTitleBottomMargin' => '', + 'tabBodyLeftMargin' => '', + 'tabBodyRightMargin' => '', + 'tabBodyTopMargin' => '', + 'tabBodyBottomMargin' => '', + 'tabBodyVertPadding' => '', + 'tabBodyHrPadding' => '', + 'tabTitleVertPadding' => '', + 'tabTitleHrPadding' => '', + 'titleFontSize' => '', + 'titleFontSizeType' => 'px', + 'titleFontSizeTablet' => '', + 'titleFontSizeMobile' => '', + 'titleFontFamily' => 'Default', + 'titleFontWeight' => '', + 'titleFontSubset' => '', + 'titleLineHeightType' => 'em', + 'titleLineHeight' => '', + 'titleLineHeightTablet' => '', + 'titleLineHeightMobile' => '', + 'titleLoadGoogleFonts' => false, + 'titleAlign' => 'center', + 'showIcon' => false, + 'icon' => '', + 'iconColor' => '', + 'iconSize' => 12, + 'iconPosition' => 'left', + 'iconSpacing' => 10, + ), + ), + 'uagb/tabs-child' => array( + 'slug' => '', + 'title' => __( 'Tabs child', 'ultimate-addons-for-gutenberg' ), + 'description' => __( 'This block allows you to display your content in tabs layout.', 'ultimate-addons-for-gutenberg' ), + 'default' => true, + 'extension' => false, + 'is_child' => true, + 'attributes' => array( + 'block_id' => '', + 'id' => 0, // Unique Tab Body ID. + 'header' => '', + 'tabActive' => 0, + 'tabHeaders' => '', + ), + ), + 'uagb/table-of-contents' => array( 'slug' => '', 'title' => __( 'Table of Contents', 'ultimate-addons-for-gutenberg' ), 'description' => __( 'This block allows you to place a Table of Contents for Pages/Posts.', 'ultimate-addons-for-gutenberg' ), 'default' => true, + 'extension' => false, 'js_assets' => array( 'uagb-table-of-contents' ), 'attributes' => array( 'classMigrate' => false, 'block_id' => '', - 'heading' => 'Table Of Contents', + 'heading' => __( 'Table Of Contents', 'ultimate-addons-for-gutenberg' ), + 'emptyHeadingTeaxt' => __( 'Add a header to begin generating the table of contents', 'ultimate-addons-for-gutenberg' ), 'disableBullets' => false, 'smoothScroll' => true, 'smoothScrollOffset' => 30, @@ -2083,6 +2282,7 @@ public static function get_block_attributes() { 'tColumnsDesktop' => 1, 'tColumnsTablet' => 1, 'tColumnsMobile' => 1, + 'mappingHeaders' => array_fill_keys( array( 0, 1, 2, 3, 4, 5 ), true ), 'widthTypeDesktop' => '%', 'widthTypeTablet' => '%', 'widthTypeMobile' => '%', @@ -2153,11 +2353,12 @@ public static function get_block_attributes() { 'headingAlignment' => 'left', ), ), - 'uagb/team' => array( + 'uagb/team' => array( 'slug' => '', 'title' => __( 'Team', 'ultimate-addons-for-gutenberg' ), 'description' => __( 'This block allows you to display your team. Add their picture, name, what they do and links to their social profiles.', 'ultimate-addons-for-gutenberg' ), 'default' => true, + 'extension' => false, 'attributes' => array( 'classMigrate' => false, 'block_id' => '', @@ -2225,11 +2426,12 @@ public static function get_block_attributes() { 'headingTag' => 'h3', ), ), - 'uagb/testimonial' => array( + 'uagb/testimonial' => array( 'slug' => '', 'title' => __( 'Testimonial', 'ultimate-addons-for-gutenberg' ), 'description' => __( 'This block helps your display some amazing client feedback within your website.', 'ultimate-addons-for-gutenberg' ), 'default' => true, + 'extension' => false, 'js_assets' => array( 'uagb-slick-js' ), 'css_assets' => array( 'uagb-slick-css' ), 'attributes' => array( @@ -2310,11 +2512,12 @@ public static function get_block_attributes() { 'test_item_count' => 3, ), ), - 'uagb/wp-search' => array( + 'uagb/wp-search' => array( 'slug' => '', 'title' => __( 'WP - Search', 'ultimate-addons-for-gutenberg' ), 'description' => __( 'This block helps you add a Search field.', 'ultimate-addons-for-gutenberg' ), 'default' => true, + 'extension' => false, 'attributes' => array( 'block_id' => '', 'layout' => 'input-button', @@ -2378,7 +2581,7 @@ public static function get_block_attributes() { 'inputSizeType' => '%', ), ), - 'uagb/taxonomy-list' => array( + 'uagb/taxonomy-list' => array( 'slug' => '', 'title' => __( 'Taxonomy List', 'ultimate-addons-for-gutenberg' ), 'description' => __( 'This block helps you to display content categorization for various post types', 'ultimate-addons-for-gutenberg' ), @@ -2468,6 +2671,233 @@ public static function get_block_attributes() { 'listDisplayStyle' => 'list', ), ), + 'uagb/forms' => array( + 'slug' => '', + 'title' => __( 'Forms', 'ultimate-addons-for-gutenberg' ), + 'description' => __( 'This block allow you to create interactive contact form, newsletter, suggestion, etc easily.', 'ultimate-addons-for-gutenberg' ), + 'default' => true, + 'js_assets' => array( 'uagb-forms-js' ), + 'attributes' => array( + 'block_id' => '', + 'submitButtonText' => __( 'Submit', 'ultimate-addons-for-gutenberg' ), + 'formLabel' => __( 'UAG Form', 'ultimate-addons-for-gutenberg' ), + 'buttonAlign' => 'left', + 'confirmationType' => 'message', + 'confirmationMessage' => __( 'The form has been submitted Successfully!', 'ultimate-addons-for-gutenberg' ), + 'confirmationUrl' => '', + 'buttonSize' => 'medium', + 'submitColor' => '#ffffff', + 'submitColorHover' => '#000000', + 'submitBgColor' => '#000000', + 'submitBgColorHover' => '#ffffff', + 'submitborderStyle' => '', + 'toggleSize' => 15, + 'toggleActiveColor' => '#000000', + 'toggleWidthSize' => 0, + 'toggleHeightSize' => 0, + 'submitborderWidth' => 0, + 'submitborderRadius' => 3, + 'submitborderColor' => '', + 'submitborderHoverColor' => '', + 'vPaddingSubmit' => '', + 'hPaddingSubmit' => '', + 'submitTextloadGoogleFonts' => false, + 'sendAfterSubmitEmail' => true, + 'afterSubmitToEmail' => '', + 'afterSubmitBccEmail' => '', + 'afterSubmitCcEmail' => '', + 'afterSubmitEmailSubject' => '', + 'submitTextFontFamily' => 'Default', + 'submitTextFontWeight' => '', + 'submitTextFontSubset' => '', + 'submitTextFontSize' => 15, + 'submitTextFontSizeType' => 'px', + 'submitTextFontSizeTablet' => 15, + 'submitTextFontSizeMobile' => 15, + 'submitTextLineHeight' => '', + 'submitTextLineHeightType' => 'em', + 'submitTextLineHeightTablet' => '', + 'submitTextLineHeightMobile' => '', + 'labelloadGoogleFonts' => false, + 'labelFontFamily' => 'Default', + 'labelFontWeight' => '', + 'labelFontSubset' => '', + 'labelFontSize' => 15, + 'labelFontSizeType' => 'px', + 'labelFontSizeTablet' => 15, + 'labelFontSizeMobile' => 15, + 'labelLineHeight' => '', + 'labelLineHeightType' => 'em', + 'labelLineHeightTablet' => '', + 'labelLineHeightMobile' => '', + 'inputloadGoogleFonts' => false, + 'inputFontFamily' => 'Default', + 'inputFontWeight' => '', + 'inputFontSubset' => '', + 'inputFontSize' => '', + 'inputFontSizeType' => 'px', + 'inputFontSizeTablet' => '', + 'inputFontSizeMobile' => '', + 'inputLineHeight' => '', + 'inputLineHeightType' => 'em', + 'inputLineHeightTablet' => '', + 'inputLineHeightMobile' => '', + 'labelColor' => '#000000', + 'inputColor' => '#000000', + 'bgColor' => '', + 'inputplaceholderColor' => '#abb8c3', + 'inputactiveColor' => '#000000', + 'inputborderStyle' => 'solid', + 'inputborderWidth' => 1, + 'inputborderRadius' => 3, + 'inputborderColor' => '#BDBDBD', + 'inputborderHoverColor' => '', + 'vPaddingField' => 10, + 'hPaddingField' => 10, + 'fieldGap' => 20, + 'formStyle' => 'boxed', + 'overallAlignment' => 'left', + 'successMessageTextColor' => '#000000', + 'successMessageBGColor' => '#00800030', + 'successMessageBorderColor' => 'green', + 'successMessageBorderStyle' => 'solid', + 'successMessageBorderWidth' => 2, + 'failedMessage' => __( 'There has been some error while submitting the form. Please verify all form fields again.', 'ultimate-addons-for-gutenberg' ), + 'failedMessageTextColor' => '#000000', + 'failedMessageBorderColor' => 'red', + 'failedMessageBGColor' => '#f5f5f', + 'failedMessageBorderStyle' => 'solid', + 'failedMessageBorderWidth' => 2, + 'reCaptchaEnable' => false, + 'reCaptchaType' => 'v2', + 'reCaptchaSiteKeyV2' => '', + 'reCaptchaSecretKeyV2' => '', + 'reCaptchaSiteKeyV3' => '', + 'reCaptchaSecretKeyV3' => '', + 'hidereCaptchaBatch' => false, + 'captchaMessage' => __( 'Please fill up the above captcha.', 'ultimate-addons-for-gutenberg' ), + ), + ), + 'uagb/forms-name' => array( + 'slug' => '', + 'title' => __( 'Name', 'ultimate-addons-for-gutenberg' ), + 'description' => __( 'This block helps to add Name field.', 'ultimate-addons-for-gutenberg' ), + 'default' => true, + 'attributes' => array(), + ), + 'uagb/forms-email' => array( + 'slug' => '', + 'title' => __( 'Email', 'ultimate-addons-for-gutenberg' ), + 'description' => __( 'This block helps to add Email field.', 'ultimate-addons-for-gutenberg' ), + 'default' => true, + 'attributes' => array(), + ), + 'uagb/forms-hidden' => array( + 'slug' => '', + 'title' => __( 'Hidden', 'ultimate-addons-for-gutenberg' ), + 'description' => __( 'This block helps to add Hidden field.', 'ultimate-addons-for-gutenberg' ), + 'default' => true, + 'attributes' => array( + 'block_id' => '', + 'hidden_field_name' => __( 'Hidden Field Name', 'ultimate-addons-for-gutenberg' ), + 'hidden_field_value' => '', + + ), + ), + 'uagb/forms-phone' => array( + 'slug' => '', + 'title' => __( 'Phone', 'ultimate-addons-for-gutenberg' ), + 'description' => __( 'This block helps to add Phone field.', 'ultimate-addons-for-gutenberg' ), + 'default' => true, + 'attributes' => array(), + ), + 'uagb/forms-textarea' => array( + 'slug' => '', + 'title' => __( 'Textarea', 'ultimate-addons-for-gutenberg' ), + 'description' => __( 'This block helps to add Textarea field.', 'ultimate-addons-for-gutenberg' ), + 'default' => true, + 'attributes' => array( + 'block_id' => '', + 'textareaName' => __( 'Message', 'ultimate-addons-for-gutenberg' ), + 'rows' => '4', + ), + ), + 'uagb/forms-checkbox' => array( + 'slug' => '', + 'title' => __( 'Checkbox', 'ultimate-addons-for-gutenberg' ), + 'description' => __( 'This block helps to add Checkbox field.', 'ultimate-addons-for-gutenberg' ), + 'default' => true, + 'attributes' => array(), + ), + 'uagb/forms-radio' => array( + 'slug' => '', + 'title' => __( 'Radio', 'ultimate-addons-for-gutenberg' ), + 'description' => __( 'This block helps to add Radio field.', 'ultimate-addons-for-gutenberg' ), + 'default' => true, + 'attributes' => array(), + ), + 'uagb/forms-url' => array( + 'slug' => '', + 'title' => __( 'URL', 'ultimate-addons-for-gutenberg' ), + 'description' => __( 'This block helps to add URL field.', 'ultimate-addons-for-gutenberg' ), + 'default' => true, + 'attributes' => array( + 'block_id' => '', + 'name' => __( 'URL', 'ultimate-addons-for-gutenberg' ), + ), + ), + 'uagb/forms-select' => array( + 'slug' => '', + 'title' => __( 'Select', 'ultimate-addons-for-gutenberg' ), + 'description' => __( 'This block helps to add Select field.', 'ultimate-addons-for-gutenberg' ), + 'default' => true, + 'attributes' => array(), + ), + 'uagb/forms-toggle' => array( + 'slug' => '', + 'title' => __( 'Toggle', 'ultimate-addons-for-gutenberg' ), + 'description' => __( 'This block helps to add Toggle field.', 'ultimate-addons-for-gutenberg' ), + 'default' => true, + 'attributes' => array(), + ), + 'uagb/forms-date' => array( + 'slug' => '', + 'title' => __( 'Datepicker', 'ultimate-addons-for-gutenberg' ), + 'description' => __( 'This block helps to add Datepicker field.', 'ultimate-addons-for-gutenberg' ), + 'default' => true, + 'attributes' => array(), + ), + 'uagb/forms-accept' => array( + 'slug' => '', + 'title' => __( 'Accept', 'ultimate-addons-for-gutenberg' ), + 'description' => __( 'This block helps to add Accept field.', 'ultimate-addons-for-gutenberg' ), + 'default' => true, + 'attributes' => array(), + ), + 'uagb/lottie' => array( + 'slug' => '', + 'title' => __( 'Lottie', 'ultimate-addons-for-gutenberg' ), + 'description' => __( 'This block helps you add Lottie animation and customize it as required.', 'ultimate-addons-for-gutenberg' ), + 'default' => true, + 'js_assets' => array( 'uagb-lottie-js', 'uagb-bodymovin-min' ), + 'attributes' => array( + 'block_id' => '', + 'jsonLottie' => '', + 'lottieURl' => '', + 'height' => '', + 'heightTablet' => '', + 'heightMob' => '', + 'width' => '', + 'widthTablet' => '', + 'widthMob' => '', + 'backgroundColor' => '', + 'backgroundHColor' => '', + 'loop' => true, + 'speed' => 1, + 'reverse' => false, + 'playOn' => 'none', + ), + ), ); } return self::$block_attributes; @@ -2527,6 +2957,24 @@ public static function get_block_assets() { 'dep' => array( 'jquery', 'uagb-cookie-lib' ), 'skipEditor' => true, ), + 'uagb-tabs-js' => array( + 'src' => UAGB_URL . 'assets/js/tabs.js', + 'dep' => array( 'jquery' ), + ), + 'uagb-forms-js' => array( + 'src' => UAGB_URL . 'assets/js/forms.js', + 'dep' => array( 'jquery' ), + ), + 'uagb-bodymovin-min' => array( + 'src' => UAGB_URL . 'assets/js/uagb-bodymovin.min.js', + 'dep' => array(), + 'skipEditor' => true, + ), + 'uagb-lottie-js' => array( + 'src' => UAGB_URL . 'assets/js/uagb-lottie.js', + 'dep' => array( 'jquery', 'uagb-bodymovin-min' ), + 'skipEditor' => true, + ), ); } return self::$block_assets; diff --git a/plugins/ultimate-addons-for-gutenberg/classes/class-uagb-helper.php b/plugins/ultimate-addons-for-gutenberg/classes/class-uagb-helper.php index 23f17a67..63f19ee9 100644 --- a/plugins/ultimate-addons-for-gutenberg/classes/class-uagb-helper.php +++ b/plugins/ultimate-addons-for-gutenberg/classes/class-uagb-helper.php @@ -95,7 +95,7 @@ final class UAGB_Helper { * @since 1.13.4 * @var stylesheet */ - public static $stylesheet; + public static $stylesheet = ''; /** * Script @@ -103,7 +103,7 @@ final class UAGB_Helper { * @since 1.13.4 * @var script */ - public static $script; + public static $script = ''; /** * Store Json variable @@ -128,6 +128,13 @@ final class UAGB_Helper { */ public static $gfonts = array(); + /** + * Table of Contents Present on a Page. + * + * @var bool + */ + public static $table_of_contents_flag = false; + /** * Initiator * @@ -164,6 +171,8 @@ public function __construct() { add_action( 'wp_head', array( $this, 'print_stylesheet' ), 80 ); add_action( 'wp_footer', array( $this, 'print_script' ), 1000 ); add_filter( 'redirect_canonical', array( $this, 'override_canonical' ), 1, 2 ); + add_filter( 'the_content', array( $this, 'add_table_of_contents_wrapper' ) ); + } /** @@ -263,6 +272,14 @@ public function print_script() { */ public function print_stylesheet() { + $conditional_block_css = UAGB_Block_Helper::get_condition_block_css(); + + ob_start(); + ?> + + - - + $t_obj ) { $related_tax[] = array( - 'id' => $t_obj->term_id, - 'name' => $t_obj->name, + 'id' => $t_obj->term_id, + 'name' => $t_obj->name, + 'child' => get_term_children( $t_obj->term_id, $tax_slug ), ); } - $return_array[ $post_type ]['terms'][ $tax_slug ] = $related_tax; } } $return_array[ $post_type ]['taxonomy'] = $data; + } return apply_filters( 'uagb_post_loop_taxonomies', $return_array ); @@ -1809,6 +1862,23 @@ public static function generate_all_css( $combined_selectors, $id ) { 'mobile' => self::generate_css( $combined_selectors['mobile'], $id ), ); } + + /** + * Add Wrapper to all the Blocks for fetching the Table of Contents Headings. + * + * @param string $content Post Content. + * + * @since 1.22.1 + */ + public function add_table_of_contents_wrapper( $content ) { + + if ( true === self::$table_of_contents_flag ) { + + return '
    ' . $content . '
    '; + } + + return $content; + } } /** diff --git a/plugins/ultimate-addons-for-gutenberg/classes/class-uagb-init-blocks.php b/plugins/ultimate-addons-for-gutenberg/classes/class-uagb-init-blocks.php index 344301b1..c30c54d0 100644 --- a/plugins/ultimate-addons-for-gutenberg/classes/class-uagb-init-blocks.php +++ b/plugins/ultimate-addons-for-gutenberg/classes/class-uagb-init-blocks.php @@ -54,6 +54,176 @@ public function __construct() { add_action( 'wp_ajax_uagb_cf7_shortcode', array( $this, 'cf7_shortcode' ) ); add_action( 'wp_ajax_nopriv_uagb_cf7_shortcode', array( $this, 'cf7_shortcode' ) ); + + if ( ! is_admin() ) { + add_action( 'render_block', array( $this, 'render_block' ), 5, 2 ); + } + } + /** + * Render block. + * + * @param mixed $block_content The block content. + * @param array $block The block data. + * @since 1.21.0 + * @return mixed Returns the new block content. + */ + public function render_block( $block_content, $block ) { + + $block_attributes = $block['attrs']; + + if ( isset( $block_attributes['UAGDisplayConditions'] ) && array_key_exists( 'UAGDisplayConditions', $block_attributes ) ) { + + switch ( $block_attributes['UAGDisplayConditions'] ) { + + case 'userstate': + $block_content = $this->user_state_visibility( $block_attributes, $block_content ); + break; + + case 'userRole': + $block_content = $this->user_role_visibility( $block_attributes, $block_content ); + break; + + case 'browser': + $block_content = $this->browser_visibility( $block_attributes, $block_content ); + break; + + case 'os': + $block_content = $this->os_visibility( $block_attributes, $block_content ); + break; + + default: + // code... + break; + } + } + return $block_content; + } + /** + * User State Visibility. + * + * @param array $block_attributes The block data. + * @param mixed $block_content The block content. + * + * @since 1.21.0 + * @return mixed Returns the new block content. + */ + public function user_role_visibility( $block_attributes, $block_content ) { + + $user = wp_get_current_user(); + + if ( isset( $block_attributes['UAGUserRole'] ) && array_key_exists( 'UAGUserRole', $block_attributes ) ) { + + $value = $block_attributes['UAGUserRole']; + + if ( is_user_logged_in() && in_array( $value, $user->roles, true ) ) { + return ''; + } + } + return $block_content; + } + /** + * User State Visibility. + * + * @param array $block_attributes The block data. + * @param mixed $block_content The block content. + * @since 1.21.0 + * @return mixed Returns the new block content. + */ + public function os_visibility( $block_attributes, $block_content ) { + + if ( ! array_key_exists( 'UAGSystem', $block_attributes ) ) { + return $block_content; + } + + $value = $block_attributes['UAGSystem']; + + $os = array( + 'iphone' => '(iPhone)', + 'android' => '(Android)', + 'windows' => 'Win16|(Windows 95)|(Win95)|(Windows_95)|(Windows 98)|(Win98)|(Windows NT 5.0)|(Windows 2000)|(Windows NT 5.1)|(Windows XP)|(Windows NT 5.2)|(Windows NT 6.0)|(Windows Vista)|(Windows NT 6.1)|(Windows 7)|(Windows NT 4.0)|(WinNT4.0)|(WinNT)|(Windows NT)|Windows ME', + 'open_bsd' => 'OpenBSD', + 'sun_os' => 'SunOS', + 'linux' => '(Linux)|(X11)', + 'mac_os' => '(Mac_PowerPC)|(Macintosh)', + ); + + if ( preg_match( '@' . $os[ $value ] . '@', $_SERVER['HTTP_USER_AGENT'] ) ) { + return ''; + } + + return $block_content; + } + /** + * User State Visibility. + * + * @param array $block_attributes The block data. + * @param mixed $block_content The block content. + * + * @since 1.21.0 + * @return mixed Returns the new block content. + */ + public function browser_visibility( $block_attributes, $block_content ) { + + if ( ! array_key_exists( 'UAGBrowser', $block_attributes ) ) { + return $block_content; + } + + $browsers = array( + 'ie' => array( + 'MSIE', + 'Trident', + ), + 'firefox' => 'Firefox', + 'chrome' => 'Chrome', + 'opera_mini' => 'Opera Mini', + 'opera' => 'Opera', + 'safari' => 'Safari', + ); + + $value = $block_attributes['UAGBrowser']; + + $show = false; + + if ( 'ie' === $value ) { + if ( false !== strpos( $_SERVER['HTTP_USER_AGENT'], $browsers[ $value ][0] ) || false !== strpos( $_SERVER['HTTP_USER_AGENT'], $browsers[ $value ][1] ) ) { + $show = true; + } + } else { + if ( false !== strpos( $_SERVER['HTTP_USER_AGENT'], $browsers[ $value ] ) ) { + $show = true; + + // Additional check for Chrome that returns Safari. + if ( 'safari' === $value || 'firefox' === $value ) { + if ( false !== strpos( $_SERVER['HTTP_USER_AGENT'], 'Chrome' ) ) { + $show = false; + } + } + } + } + + return ( $show ) ? '' : $block_content; + } + /** + * User State Visibility. + * + * @param array $block_attributes The block data. + * @param mixed $block_content The block content. + * + * @since 1.21.0 + * @return mixed Returns the new block content. + */ + public function user_state_visibility( $block_attributes, $block_content ) { + + if ( isset( $block_attributes['UAGLoggedIn'] ) && $block_attributes['UAGLoggedIn'] && is_user_logged_in() ) { + return ''; + } + + if ( isset( $block_attributes['UAGLoggedOut'] ) && $block_attributes['UAGLoggedOut'] && ! is_user_logged_in() ) { + return ''; + } + + return $block_content; + } /** @@ -155,6 +325,15 @@ public function block_assets() { UAGB_VER ); + if ( is_rtl() ) { + wp_enqueue_style( + 'uagb-style-rtl', // Handle. + UAGB_URL . 'dist/blocks.style.rtl.css', // RTL style CSS. + array(), + UAGB_VER + ); + } + $blocks = UAGB_Config::get_block_attributes(); $disabled_blocks = UAGB_Admin_Helper::get_admin_settings_option( '_uagb_blocks', array() ); $block_assets = UAGB_Config::get_block_assets(); @@ -221,6 +400,16 @@ public function block_assets() { ) ); + $uagb_forms_ajax_nonce = wp_create_nonce( 'uagb_forms_ajax_nonce' ); + wp_localize_script( + 'uagb-forms-js', + 'uagb_forms_data', + array( + 'ajax_url' => admin_url( 'admin-ajax.php' ), + 'uagb_forms_ajax_nonce' => $uagb_forms_ajax_nonce, + ) + ); + } // End function editor_assets(). /** @@ -240,6 +429,8 @@ public function editor_assets() { true // Enqueue the script in the footer. ); + wp_set_script_translations( 'uagb-block-editor-js', 'ultimate-addons-for-gutenberg' ); + // Styles. wp_enqueue_style( 'uagb-block-editor-css', // Handle. @@ -307,10 +498,40 @@ public function editor_assets() { 'taxonomy_list' => UAGB_Helper::get_taxonomy_list(), 'uagb_ajax_nonce' => $uagb_ajax_nonce, 'uagb_home_url' => home_url(), + 'user_role' => $this->get_user_role(), + 'uagb_url' => UAGB_URL, + 'uagb_mime_type' => UAGB_Helper::get_mime_type(), + 'uagb_site_url' => UAGB_URI, ) ); } // End function editor_assets(). + /** + * Get the User Roles + * + * @since 1.21.0 + */ + public function get_user_role() { + global $wp_roles; + + $field_options = array(); + + $role_lists = $wp_roles->get_names(); + + $field_options[0] = array( + 'value' => '', + 'label' => __( 'None', 'ultimate-addons-for-gutenberg' ), + ); + + foreach ( $role_lists as $key => $role_list ) { + $field_options[] = array( + 'value' => $key, + 'label' => $role_list, + ); + } + + return $field_options; + } /** * Function to integrate CF7 Forms. diff --git a/plugins/ultimate-addons-for-gutenberg/classes/class-uagb-loader.php b/plugins/ultimate-addons-for-gutenberg/classes/class-uagb-loader.php index 9f55087a..f64b5845 100644 --- a/plugins/ultimate-addons-for-gutenberg/classes/class-uagb-loader.php +++ b/plugins/ultimate-addons-for-gutenberg/classes/class-uagb-loader.php @@ -69,9 +69,9 @@ public function loader() { require_once UAGB_DIR . 'classes/class-uagb-helper.php'; require_once UAGB_DIR . 'classes/class-uagb-update.php'; require_once UAGB_DIR . 'admin/bsf-analytics/class-bsf-analytics.php'; + require_once UAGB_DIR . 'lib/class-uagb-ast-block-templates.php'; if ( 'twentyseventeen' === get_template() ) { - require_once UAGB_DIR . 'classes/class-uagb-twenty-seventeen-compatibility.php'; } } @@ -85,10 +85,12 @@ public function define_constants() { define( 'UAGB_BASE', plugin_basename( UAGB_FILE ) ); define( 'UAGB_DIR', plugin_dir_path( UAGB_FILE ) ); define( 'UAGB_URL', plugins_url( '/', UAGB_FILE ) ); - define( 'UAGB_VER', '1.19.0' ); + define( 'UAGB_VER', '1.22.1' ); define( 'UAGB_MODULES_DIR', UAGB_DIR . 'modules/' ); define( 'UAGB_MODULES_URL', UAGB_URL . 'modules/' ); define( 'UAGB_SLUG', 'uag' ); + define( 'UAGB_URI', trailingslashit( 'https://ultimategutenberg.com/' ) ); + if ( ! defined( 'UAGB_TABLET_BREAKPOINT' ) ) { define( 'UAGB_TABLET_BREAKPOINT', '976' ); } @@ -115,6 +117,9 @@ public function load_plugin() { require_once UAGB_DIR . 'dist/blocks/cf7-styler/class-uagb-cf7-styler.php'; require_once UAGB_DIR . 'dist/blocks/gf-styler/class-uagb-gf-styler.php'; require_once UAGB_DIR . 'dist/blocks/taxonomy-list/class-uagb-taxonomy-list.php'; + require_once UAGB_DIR . 'dist/blocks/table-of-content/class-uagb-table-of-content.php'; + require_once UAGB_DIR . 'dist/blocks/forms/class-uagb-forms.php'; + require_once UAGB_DIR . 'dist/blocks/lottie/class-uagb-lottie.php'; } diff --git a/plugins/ultimate-addons-for-gutenberg/dist/blocks.build.js b/plugins/ultimate-addons-for-gutenberg/dist/blocks.build.js index 540d0944..b82bffd6 100644 --- a/plugins/ultimate-addons-for-gutenberg/dist/blocks.build.js +++ b/plugins/ultimate-addons-for-gutenberg/dist/blocks.build.js @@ -60,7 +60,7 @@ /******/ __webpack_require__.p = ""; /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 187); +/******/ return __webpack_require__(__webpack_require__.s = 253); /******/ }) /************************************************************************/ /******/ ([ @@ -68,7 +68,7 @@ /*!******************************************!*\ !*** ./node_modules/classnames/index.js ***! \******************************************/ -/*! no static exports found */ +/*! dynamic exports provided */ /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { @@ -117,9 +117,9 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! module.exports = classNames; } else if (true) { // register as 'classnames', consistent with npm package name - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = function () { + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () { return classNames; - }.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), + }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); } else { window.classNames = classNames; @@ -153,6 +153,7 @@ var UAGB_Block_Icons = { "post_carousel": el("svg", { width: 20, height: 20 }, el("path", { fill: "#4a00e0", d: "M7.554 12.936h4.893v-5.871h-4.893v5.871zM8.888 8.399h2.224v3.202h-2.224v-3.202z" }), el("path", { fill: "#4a00e0", d: "M13.913 8.868l1.132 1.132-1.132 1.132 0.944 0.944 2.076-2.076-2.076-2.076-0.943 0.943z" }), el("path", { fill: "#4a00e0", d: "M5.144 7.924l-2.076 2.076 2.076 2.076 0.943-0.944-1.132-1.132 1.132-1.132-0.944-0.943z" }), el("path", { fill: "#4a00e0", d: "M19.31 0h-18.619c-0.381 0-0.691 0.309-0.691 0.691v18.619c0 0.382 0.309 0.691 0.691 0.691h18.619c0.382 0 0.691-0.309 0.691-0.691v-18.619c0-0.381-0.309-0.691-0.69-0.691v0zM1.32 18.62v-17.301h17.3v17.3h-17.3z" })), "post_masonry": el("svg", { width: 20, height: 20 }, el("path", { fill: "#4a00e0", d: "M19.31 0h-18.619c-0.381 0-0.691 0.309-0.691 0.691v18.619c0 0.382 0.309 0.691 0.691 0.691h18.619c0.382 0 0.691-0.309 0.691-0.691v-18.619c0-0.381-0.309-0.691-0.69-0.691v0zM18.62 6.206h-4.825v-4.825h4.825v4.825zM18.62 12.413h-4.825v-4.825h4.825v4.825zM7.588 5.788h4.825v8.825h-4.825v-8.825zM12.413 1.381v3.025h-4.825v-3.025h4.825zM6.206 1.381v11.025h-4.825v-11.025h4.825zM1.381 13.794h4.825v4.826h-4.825v-4.826zM7.588 18.62v-2.826h4.825v2.826h-4.825zM13.794 18.62v-4.826h4.825v4.826h-4.825z" })), "post_grid": el("svg", { width: 20, height: 20 }, el("path", { fill: "#4a00e0", d: "M19.31 0h-18.619c-0.381 0-0.691 0.309-0.691 0.691v18.619c0 0.382 0.309 0.691 0.691 0.691h18.619c0.382 0 0.691-0.309 0.691-0.691v-18.619c0-0.381-0.309-0.691-0.69-0.691v0zM18.62 6.206h-4.825v-4.825h4.825v4.825zM18.62 12.413h-4.825v-4.825h4.825v4.825zM1.381 7.588h4.825v4.825h-4.825v-4.825zM7.588 7.588h4.825v4.825h-4.825v-4.825zM12.413 1.381v4.825h-4.825v-4.825h4.825zM6.206 1.381v4.825h-4.825v-4.825h4.825zM1.381 13.794h4.825v4.826h-4.825v-4.826zM7.588 18.62v-4.826h4.825v4.826h-4.825zM13.794 18.62v-4.826h4.825v4.826h-4.825z" })), + "post_title": el("svg", { width: 20, height: 20 }, el("path", { fill: "#4a00e0", d: "M19.31 0h-18.619c-0.381 0-0.691 0.309-0.691 0.691v18.619c0 0.382 0.309 0.691 0.691 0.691h18.619c0.382 0 0.691-0.309 0.691-0.691v-18.619c0-0.381-0.309-0.691-0.69-0.691v0zM18.62 6.206h-4.825v-4.825h4.825v4.825zM18.62 12.413h-4.825v-4.825h4.825v4.825zM1.381 7.588h4.825v4.825h-4.825v-4.825zM7.588 7.588h4.825v4.825h-4.825v-4.825zM12.413 1.381v4.825h-4.825v-4.825h4.825zM6.206 1.381v4.825h-4.825v-4.825h4.825zM1.381 13.794h4.825v4.826h-4.825v-4.826zM7.588 18.62v-4.826h4.825v4.826h-4.825zM13.794 18.62v-4.826h4.825v4.826h-4.825z" })), "testimonial": el("svg", { width: 20, height: 20 }, el("path", { fill: "#4a00e0", d: "M9.996 0c-5.516 0-9.996 4.479-9.996 9.997 0 5.523 4.48 10.003 9.996 10.003 5.524 0 10.004-4.48 10.004-10.003 0-5.518-4.48-9.997-10.004-9.997v0zM9.996 18.749c-4.821 0-8.745-3.926-8.745-8.752 0-4.822 3.923-8.746 8.745-8.746 4.829 0 8.753 3.924 8.753 8.746 0 4.826-3.924 8.752-8.753 8.752v0z" }), el("path", { fill: "#4a00e0", d: "M8.007 6.732l-0.292-0.201-0.006-0.012-0.019-0.006-0.214-0.098 0.006 0.012c-0.201-0.079-0.416-0.14-0.641-0.14-1.018 0-1.843 0.854-1.843 1.91s0.825 1.917 1.843 1.917c0.323 0 0.622-0.098 0.891-0.25-0.091 1.019-0.605 2.514-2.491 4.034-0.267 0.212-0.317 0.604-0.109 0.879 0.121 0.159 0.3 0.243 0.476 0.243 0.134 0 0.263-0.041 0.372-0.134 2.319-1.866 2.894-3.784 2.971-5.070 0.134-1.636-0.365-2.502-0.817-2.948l-0.128-0.134z" }), el("path", { fill: "#4a00e0", d: "M14.068 6.732l-0.293-0.201-0.008-0.012-0.017-0.006-0.214-0.098 0.006 0.012c-0.202-0.079-0.415-0.14-0.641-0.14-1.019 0-1.843 0.854-1.843 1.91s0.824 1.917 1.843 1.917c0.324 0 0.623-0.098 0.891-0.25-0.092 1.019-0.604 2.514-2.496 4.034-0.262 0.212-0.311 0.604-0.104 0.879 0.116 0.159 0.299 0.243 0.476 0.243 0.134 0 0.263-0.041 0.372-0.134 2.319-1.866 2.893-3.784 2.972-5.070 0.134-1.636-0.366-2.502-0.818-2.948l-0.128-0.134z" })), "cf7_styler": el("svg", { width: 20, height: 20 }, el("path", { fill: "#4a00e0", d: "M0 2.969v14.063h20v-14.063h-20zM18.828 15.859h-17.656v-11.719h17.656v11.719z" }), el("path", { fill: "#4a00e0", d: "M11.758 13.516h5.898v1.172h-5.898v-1.172z" }), el("path", { fill: "#4a00e0", d: "M11.758 11.172h5.898v1.172h-5.898v-1.172z" }), el("path", { fill: "#4a00e0", d: "M11.758 8.828h5.898v1.172h-5.898v-1.172z" }), el("path", { fill: "#4a00e0", d: "M11.758 6.484h3.555v1.172h-3.555v-1.172z" }), el("path", { fill: "#4a00e0", d: "M16.484 6.484h1.172v1.172h-1.172v-1.172z" }), el("path", { fill: "#4a00e0", d: "M8.386 10.468c0.629-0.538 1.028-1.336 1.028-2.226 0-1.615-1.314-2.93-2.93-2.93s-2.93 1.314-2.93 2.93c0 0.89 0.4 1.688 1.028 2.226-1.307 0.687-2.2 2.057-2.2 3.633v0.586h8.203v-0.586c0-1.576-0.893-2.947-2.2-3.633zM6.484 6.484c0.969 0 1.758 0.789 1.758 1.758s-0.789 1.758-1.758 1.758-1.758-0.789-1.758-1.758 0.789-1.758 1.758-1.758zM3.614 13.516c0.272-1.336 1.456-2.344 2.871-2.344s2.599 1.008 2.871 2.344h-5.742z" })), "gf_styler": el("svg", { width: 20, height: 20, viewBox: "0 0 100 100" }, el("path", { fill: "#4a00e0", d: "M20.509,26.661H38.2c1.783,0,3.229-1.447,3.229-3.226c0-1.784-1.447-3.227-3.229-3.227H20.509 c-1.783,0-3.229,1.443-3.229,3.227C17.28,25.214,18.726,26.661,20.509,26.661L20.509,26.661z M20.509,26.661" }), el("path", { fill: "#4a00e0", d: "M20.509,38.465h41.285c1.78,0,3.229-1.442,3.229-3.223c0-1.783-1.449-3.227-3.229-3.227H20.509 c-1.783,0-3.229,1.444-3.229,3.227C17.28,37.022,18.726,38.465,20.509,38.465L20.509,38.465z M20.509,38.465" }), el("path", { fill: "#4a00e0", d: "M38.2,49.727H20.509c-1.783,0-3.229,1.443-3.229,3.227c0,1.78,1.446,3.224,3.229,3.224H38.2 c1.783,0,3.229-1.443,3.229-3.224C41.429,51.17,39.982,49.727,38.2,49.727L38.2,49.727z M38.2,49.727" }), el("path", { fill: "#4a00e0", d: "M92.334,14.48c-1.304-0.447-2.744-0.014-3.593,1.071l-6.021,7.754V5.723c0-1.778-1.446-3.223-3.23-3.223H8.71 c-1.783,0-3.226,1.445-3.226,3.223v88.552c0,1.78,1.443,3.226,3.226,3.226h70.78c1.784,0,3.23-1.445,3.23-3.226V51.129 l11.088-13.875c0.456-0.57,0.707-1.279,0.707-2.012V17.531C94.516,16.153,93.637,14.928,92.334,14.48L92.334,14.48z M76.267,91.045 h-64.33V8.951h64.33v22.653L47.452,68.679c-1.096,1.409-0.835,3.432,0.568,4.527c0.59,0.457,1.286,0.677,1.975,0.677 c0.962,0,1.915-0.424,2.547-1.241l3.619-4.657h11.534c0.979,0,1.906-0.446,2.518-1.214l6.054-7.572V91.045z M88.062,34.11 L66.144,61.53H61.18l26.882-34.591V34.11z M88.062,34.11" })), @@ -162,6 +163,7 @@ var UAGB_Block_Icons = { "icon_list": el("svg", { width: 20, height: 20 }, el("path", { fill: "#4a00e0", d: "M15.625 0h-11.25c-2.416 0-4.375 1.959-4.375 4.375v11.25c0 2.416 1.959 4.375 4.375 4.375h11.25c2.416 0 4.375-1.959 4.375-4.375v-11.25c0-2.416-1.959-4.375-4.375-4.375zM18.75 15.625c0 1.726-1.399 3.125-3.125 3.125h-11.25c-1.726 0-3.125-1.399-3.125-3.125v-11.25c0-1.726 1.399-3.125 3.125-3.125h11.25c1.726 0 3.125 1.399 3.125 3.125v11.25z" }), el("path", { fill: "#4a00e0", d: "M6.25 4.375h-1.25c-0.345 0-0.625 0.28-0.625 0.625v1.25c0 0.345 0.28 0.625 0.625 0.625h1.25c0.345 0 0.625-0.28 0.625-0.625v-1.25c0-0.345-0.28-0.625-0.625-0.625z" }), el("path", { fill: "#4a00e0", d: "M6.25 8.75h-1.25c-0.345 0-0.625 0.28-0.625 0.625v1.25c0 0.345 0.28 0.625 0.625 0.625h1.25c0.345 0 0.625-0.28 0.625-0.625v-1.25c0-0.345-0.28-0.625-0.625-0.625z" }), el("path", { fill: "#4a00e0", d: "M6.25 13.125h-1.25c-0.345 0-0.625 0.28-0.625 0.625v1.25c0 0.345 0.28 0.625 0.625 0.625h1.25c0.345 0 0.625-0.28 0.625-0.625v-1.25c0-0.345-0.28-0.625-0.625-0.625z" }), el("path", { fill: "#4a00e0", d: "M8.125 5h7.5v1.25h-7.5v-1.25z" }), el("path", { fill: "#4a00e0", d: "M8.125 9.375h7.5v1.25h-7.5v-1.25z" }), el("path", { fill: "#4a00e0", d: "M8.125 13.75h7.5v1.25h-7.5v-1.25z" })), "icon_list_child": el("svg", { width: 20, height: 20 }, el("path", { fill: "#4a00e0", d: "M18.069 4.961c0 0.444-0.36 0.805-0.805 0.805h-10.792c-0.446 0-0.807-0.361-0.807-0.805s0.36-0.806 0.807-0.806h10.792c0.445 0.001 0.805 0.362 0.805 0.806z" }), el("path", { fill: "#4a00e0", d: "M18.069 10.017c0 0.445-0.36 0.805-0.805 0.805h-10.792c-0.446 0-0.807-0.359-0.807-0.805s0.36-0.806 0.807-0.806h10.792c0.445 0 0.805 0.36 0.805 0.806z" }), el("path", { fill: "#4a00e0", d: "M18.069 15.071c0 0.444-0.36 0.805-0.805 0.805h-10.792c-0.446 0-0.807-0.36-0.807-0.805s0.36-0.805 0.807-0.805h10.792c0.445 0.001 0.805 0.361 0.805 0.805z" }), el("path", { fill: "#4a00e0", d: "M4.093 15.009c0 0.597-0.484 1.081-1.081 1.081s-1.081-0.484-1.081-1.081c0-0.597 0.484-1.081 1.081-1.081s1.081 0.484 1.081 1.081z" }), el("path", { fill: "#4a00e0", d: "M4.093 10.017c0 0.597-0.484 1.081-1.081 1.081s-1.081-0.484-1.081-1.081c0-0.597 0.484-1.081 1.081-1.081s1.081 0.484 1.081 1.081z" }), el("path", { fill: "#4a00e0", d: "M4.093 5.024c0 0.597-0.484 1.081-1.081 1.081s-1.081-0.484-1.081-1.081c0-0.597 0.484-1.081 1.081-1.081s1.081 0.484 1.081 1.081z" })), "team": el("svg", { width: 20, height: 20 }, el("path", { fill: "#4a00e0", d: "M20 14.124c0-1.17-0.35-2.3-1.013-3.268-0.477-0.696-1.091-1.274-1.803-1.703 0.838-0.794 1.362-1.915 1.362-3.158 0-2.399-1.952-4.351-4.351-4.351-1.423 0-2.755 0.704-3.565 1.859-0.206-0.030-0.416-0.046-0.63-0.046s-0.424 0.016-0.63 0.046c-0.81-1.155-2.142-1.859-3.565-1.859-2.399 0-4.351 1.952-4.351 4.351 0 1.242 0.524 2.364 1.362 3.158-0.712 0.429-1.326 1.008-1.803 1.703-0.663 0.968-1.014 2.098-1.014 3.268v2.42h4.195v1.813h11.611v-1.813h4.194v-2.42h-0zM14.195 2.717c1.807 0 3.277 1.47 3.277 3.278s-1.47 3.277-3.277 3.277c-0.032 0-0.065-0-0.097-0.001 0.002-0.007 0.005-0.014 0.007-0.021 0.056-0.159 0.102-0.322 0.14-0.488 0.003-0.012 0.006-0.024 0.008-0.035 0.010-0.045 0.018-0.090 0.027-0.136 0.004-0.021 0.008-0.043 0.012-0.064 0.007-0.041 0.013-0.081 0.018-0.122 0.004-0.029 0.008-0.057 0.011-0.085 0.004-0.036 0.009-0.072 0.012-0.109s0.006-0.074 0.008-0.111c0.002-0.029 0.004-0.059 0.006-0.088 0.003-0.063 0.004-0.127 0.005-0.19 0-0.004 0-0.009 0-0.014 0-0.002-0-0.005-0-0.007 0-0.065-0.002-0.129-0.005-0.193-0.001-0.019-0.002-0.037-0.003-0.056-0.003-0.054-0.007-0.109-0.012-0.163-0.001-0.012-0.002-0.024-0.004-0.037-0.162-1.568-1.153-2.911-2.582-3.531 0.616-0.692 1.507-1.103 2.45-1.103v0zM8.866 4.732c0.010-0.004 0.021-0.008 0.031-0.011 0.033-0.012 0.066-0.023 0.099-0.033 0.025-0.008 0.050-0.016 0.075-0.023 0.018-0.005 0.037-0.011 0.055-0.016 0.033-0.009 0.066-0.018 0.1-0.026 0.248-0.060 0.507-0.093 0.773-0.093s0.525 0.033 0.773 0.094c0.033 0.008 0.066 0.017 0.099 0.026 0.019 0.005 0.038 0.010 0.056 0.016 0.025 0.007 0.050 0.015 0.075 0.023 0.033 0.011 0.066 0.022 0.1 0.034 0.010 0.004 0.020 0.007 0.030 0.011 1.096 0.405 1.918 1.381 2.104 2.565 0.002 0.009 0.003 0.019 0.004 0.028 0.006 0.040 0.011 0.080 0.015 0.121 0.002 0.015 0.003 0.030 0.005 0.045 0.004 0.037 0.006 0.074 0.009 0.112 0.001 0.016 0.002 0.032 0.003 0.048 0.002 0.048 0.003 0.096 0.004 0.144 0 0.004 0 0.008 0 0.012 0 0.002-0 0.004-0 0.006 0 0.047-0.002 0.093-0.003 0.139-0.001 0.015-0.001 0.029-0.002 0.044-0.002 0.045-0.006 0.089-0.010 0.133-0.002 0.017-0.004 0.034-0.006 0.051-0.003 0.029-0.007 0.057-0.011 0.085-0.003 0.022-0.006 0.044-0.010 0.066-0.005 0.033-0.011 0.066-0.018 0.1-0.006 0.029-0.012 0.059-0.019 0.088-0.004 0.018-0.008 0.035-0.012 0.053-0.010 0.044-0.022 0.087-0.034 0.13-0.005 0.017-0.010 0.034-0.014 0.051-0.008 0.025-0.016 0.049-0.024 0.074-0.006 0.020-0.013 0.039-0.020 0.058-0.007 0.022-0.015 0.044-0.023 0.066-0.014 0.037-0.029 0.074-0.044 0.111-0.007 0.016-0.014 0.032-0.021 0.049-0.013 0.031-0.027 0.061-0.041 0.091l-0.005 0.011c-0.005 0.011-0.010 0.021-0.015 0.032-0.016 0.032-0.032 0.064-0.049 0.096-0.007 0.012-0.013 0.025-0.020 0.037-0 0.001-0.001 0.002-0.001 0.002-0.019 0.034-0.038 0.067-0.058 0.1-0.008 0.013-0.016 0.026-0.024 0.039-0.021 0.035-0.044 0.070-0.066 0.103-0.014 0.021-0.029 0.042-0.043 0.063-0.013 0.018-0.025 0.035-0.038 0.052-0.017 0.023-0.033 0.045-0.050 0.067-0.012 0.015-0.023 0.030-0.035 0.045-0.018 0.022-0.036 0.045-0.055 0.067-0.012 0.014-0.023 0.027-0.035 0.041-0.020 0.022-0.039 0.044-0.059 0.066-0.012 0.013-0.024 0.025-0.036 0.038-0.032 0.034-0.065 0.067-0.099 0.1-0.020 0.019-0.040 0.039-0.061 0.058-0.014 0.013-0.029 0.026-0.043 0.038-0.024 0.021-0.047 0.041-0.071 0.062-0.012 0.011-0.025 0.021-0.037 0.031-0.029 0.024-0.059 0.047-0.089 0.070-0.008 0.006-0.016 0.012-0.025 0.019-0.545 0.405-1.221 0.646-1.951 0.646s-1.406-0.24-1.951-0.646c-0.008-0.006-0.016-0.012-0.024-0.018-0.030-0.023-0.060-0.046-0.089-0.070-0.012-0.010-0.025-0.020-0.037-0.030-0.024-0.021-0.048-0.041-0.072-0.062-0.014-0.013-0.029-0.025-0.043-0.038-0.021-0.019-0.041-0.038-0.061-0.058-0.034-0.033-0.067-0.066-0.1-0.101-0.012-0.012-0.024-0.025-0.036-0.037-0.020-0.022-0.039-0.044-0.058-0.066-0.012-0.013-0.024-0.027-0.035-0.040-0.019-0.022-0.037-0.045-0.055-0.067-0.012-0.015-0.024-0.030-0.035-0.045-0.017-0.022-0.034-0.044-0.050-0.067-0.013-0.017-0.025-0.035-0.037-0.053-0.015-0.021-0.029-0.041-0.044-0.062-0.023-0.034-0.045-0.069-0.066-0.104-0.008-0.013-0.016-0.026-0.023-0.039-0.020-0.034-0.040-0.067-0.058-0.102-0.007-0.013-0.013-0.025-0.020-0.038-0.017-0.032-0.034-0.064-0.050-0.096-0.006-0.012-0.011-0.023-0.017-0.035-0.001-0.002-0.002-0.003-0.003-0.005-0.015-0.031-0.029-0.063-0.043-0.095-0.007-0.015-0.013-0.030-0.020-0.046-0.015-0.038-0.030-0.075-0.045-0.113-0.008-0.021-0.015-0.041-0.022-0.062s-0.015-0.043-0.022-0.064c-0.008-0.023-0.015-0.046-0.022-0.069-0.010-0.035-0.020-0.070-0.030-0.105-0.007-0.025-0.013-0.049-0.019-0.074-0.005-0.020-0.009-0.039-0.014-0.059-0.005-0.024-0.011-0.048-0.016-0.073-0.007-0.038-0.014-0.076-0.020-0.114-0.003-0.020-0.006-0.041-0.009-0.062-0.004-0.030-0.008-0.061-0.012-0.092-0.002-0.015-0.004-0.030-0.005-0.046-0.004-0.046-0.008-0.091-0.010-0.137-0.001-0.013-0.001-0.026-0.002-0.039-0.002-0.049-0.004-0.098-0.004-0.148 0-0.053 0.002-0.105 0.004-0.158 0-0.014 0.002-0.028 0.003-0.042 0.002-0.039 0.005-0.079 0.009-0.118 0.001-0.014 0.003-0.027 0.004-0.041 0.005-0.042 0.010-0.084 0.016-0.126 0.001-0.008 0.002-0.016 0.004-0.024 0.186-1.185 1.008-2.161 2.105-2.566v0zM2.528 5.995c0-1.807 1.47-3.278 3.277-3.278 0.943 0 1.834 0.411 2.45 1.103-1.43 0.621-2.421 1.964-2.582 3.533-0.001 0.011-0.002 0.021-0.003 0.032-0.005 0.056-0.009 0.112-0.013 0.168-0.001 0.017-0.002 0.034-0.003 0.052-0.003 0.067-0.005 0.135-0.005 0.202s0.002 0.137 0.005 0.205c0.001 0.027 0.003 0.055 0.005 0.082 0.003 0.039 0.005 0.079 0.009 0.118 0.003 0.035 0.007 0.070 0.011 0.104 0.004 0.030 0.007 0.060 0.012 0.090 0.005 0.040 0.011 0.079 0.018 0.118 0.004 0.023 0.008 0.046 0.013 0.070 0.008 0.044 0.016 0.088 0.025 0.131 0.003 0.014 0.007 0.028 0.010 0.043 0.036 0.161 0.082 0.319 0.136 0.473 0.003 0.010 0.007 0.020 0.010 0.030-0.032 0.001-0.065 0.001-0.097 0.001-1.807-0-3.277-1.47-3.277-3.277v0zM5.095 12.841c-0.012 0.019-0.023 0.038-0.035 0.056-0.025 0.040-0.049 0.079-0.072 0.12-0.013 0.022-0.026 0.045-0.039 0.067-0.021 0.037-0.042 0.075-0.062 0.112-0.013 0.024-0.025 0.047-0.038 0.071-0.019 0.037-0.039 0.075-0.057 0.113-0.012 0.024-0.024 0.048-0.035 0.071-0.019 0.040-0.037 0.080-0.055 0.12-0.010 0.022-0.020 0.044-0.030 0.065-0.021 0.048-0.041 0.097-0.060 0.145-0.006 0.014-0.012 0.028-0.018 0.043-0.025 0.063-0.048 0.127-0.071 0.191-0.005 0.015-0.010 0.029-0.015 0.044-0.017 0.049-0.034 0.098-0.049 0.148-0.007 0.023-0.014 0.046-0.021 0.069-0.013 0.042-0.025 0.084-0.037 0.127-0.007 0.025-0.014 0.051-0.020 0.076-0.010 0.041-0.021 0.082-0.030 0.122-0.006 0.026-0.012 0.052-0.018 0.078-0.009 0.041-0.018 0.083-0.026 0.125-0.005 0.025-0.010 0.050-0.015 0.075-0.008 0.046-0.016 0.091-0.023 0.137-0.003 0.021-0.007 0.043-0.011 0.064-0.010 0.067-0.019 0.134-0.027 0.202 0 0.001-0 0.002-0 0.002-0.007 0.062-0.013 0.123-0.018 0.185h-3.139v-1.346c0-1.839 1.057-3.491 2.714-4.276 0.604 0.317 1.29 0.498 2.017 0.498 0.211 0 0.422-0.015 0.631-0.046 0.033 0.047 0.066 0.093 0.1 0.138 0.012 0.015 0.024 0.030 0.036 0.045 0.034 0.043 0.068 0.086 0.104 0.128 0.014 0.017 0.029 0.034 0.044 0.051 0.033 0.038 0.067 0.076 0.102 0.113 0.018 0.020 0.036 0.039 0.055 0.058 0.031 0.032 0.064 0.065 0.096 0.096 0.012 0.012 0.024 0.024 0.036 0.036-0.047 0.028-0.093 0.057-0.139 0.087-0.008 0.005-0.015 0.010-0.022 0.015-0.046 0.030-0.091 0.060-0.136 0.091-0.016 0.011-0.031 0.021-0.046 0.032-0.040 0.028-0.079 0.057-0.119 0.086-0.012 0.009-0.025 0.018-0.037 0.028-0.050 0.038-0.099 0.076-0.148 0.116-0.011 0.008-0.021 0.017-0.032 0.026-0.039 0.032-0.077 0.064-0.115 0.097-0.015 0.013-0.029 0.025-0.044 0.038-0.038 0.034-0.075 0.067-0.113 0.102-0.010 0.009-0.020 0.018-0.029 0.027-0.046 0.043-0.091 0.087-0.135 0.131-0.012 0.012-0.023 0.023-0.034 0.035-0.034 0.035-0.067 0.070-0.1 0.105-0.013 0.014-0.026 0.028-0.039 0.043-0.037 0.041-0.074 0.081-0.11 0.123-0.006 0.006-0.012 0.013-0.017 0.019-0.041 0.048-0.081 0.097-0.121 0.146-0.011 0.014-0.022 0.028-0.033 0.042-0.029 0.038-0.059 0.076-0.088 0.115-0.011 0.015-0.023 0.030-0.034 0.045-0.038 0.052-0.075 0.104-0.111 0.157-0.039 0.057-0.076 0.114-0.113 0.172v0zM5.268 17.283v-1.346c0-0.060 0.001-0.119 0.003-0.178 0.001-0.020 0.002-0.039 0.003-0.058 0.002-0.039 0.004-0.079 0.007-0.118 0.002-0.024 0.004-0.048 0.007-0.071 0.003-0.035 0.006-0.070 0.010-0.104 0.003-0.025 0.007-0.050 0.010-0.076 0.004-0.033 0.008-0.065 0.013-0.098 0.004-0.026 0.009-0.052 0.013-0.078 0.005-0.031 0.010-0.063 0.016-0.094 0.005-0.027 0.011-0.053 0.016-0.079 0.006-0.030 0.012-0.061 0.019-0.091 0.006-0.027 0.013-0.053 0.019-0.079 0.007-0.030 0.014-0.059 0.022-0.089 0.007-0.027 0.015-0.053 0.023-0.080 0.008-0.029 0.016-0.058 0.025-0.086 0.008-0.027 0.017-0.053 0.026-0.079 0.009-0.028 0.018-0.056 0.028-0.084 0.009-0.026 0.019-0.053 0.029-0.079 0.010-0.028 0.020-0.055 0.030-0.082s0.021-0.052 0.031-0.078c0.011-0.027 0.022-0.054 0.033-0.081s0.023-0.051 0.034-0.077c0.012-0.026 0.024-0.053 0.036-0.079s0.025-0.051 0.037-0.076c0.013-0.026 0.025-0.051 0.039-0.077s0.026-0.050 0.040-0.075c0.014-0.025 0.027-0.050 0.041-0.075s0.028-0.049 0.043-0.073c0.014-0.025 0.029-0.049 0.044-0.074s0.030-0.048 0.046-0.072c0.015-0.024 0.031-0.048 0.046-0.072s0.032-0.047 0.048-0.071c0.016-0.024 0.032-0.047 0.049-0.070s0.034-0.046 0.051-0.069c0.017-0.023 0.034-0.046 0.051-0.068s0.036-0.045 0.054-0.067c0.018-0.022 0.036-0.044 0.054-0.066s0.037-0.044 0.056-0.065 0.038-0.043 0.056-0.064 0.039-0.042 0.058-0.063c0.019-0.021 0.039-0.042 0.058-0.062s0.040-0.041 0.061-0.061c0.020-0.020 0.041-0.040 0.061-0.060s0.041-0.039 0.063-0.059c0.021-0.020 0.042-0.039 0.063-0.058s0.043-0.038 0.065-0.057c0.022-0.019 0.044-0.038 0.066-0.056s0.045-0.036 0.067-0.054c0.023-0.018 0.045-0.036 0.068-0.054s0.046-0.035 0.069-0.052c0.023-0.017 0.047-0.035 0.071-0.052s0.047-0.033 0.071-0.050c0.024-0.016 0.049-0.033 0.073-0.049s0.048-0.031 0.072-0.047c0.025-0.016 0.050-0.032 0.075-0.047s0.049-0.029 0.074-0.044c0.026-0.015 0.052-0.030 0.078-0.045 0.025-0.014 0.050-0.028 0.075-0.041 0.027-0.014 0.054-0.028 0.080-0.042 0.025-0.013 0.051-0.026 0.077-0.039 0.020-0.010 0.041-0.020 0.061-0.029 0.603 0.317 1.289 0.498 2.017 0.498s1.414-0.18 2.017-0.498c0.021 0.010 0.041 0.019 0.061 0.029 0.026 0.013 0.052 0.026 0.078 0.039s0.053 0.028 0.079 0.042c0.026 0.014 0.051 0.028 0.077 0.042s0.052 0.029 0.077 0.044c0.025 0.015 0.050 0.030 0.075 0.045s0.050 0.031 0.075 0.047c0.025 0.015 0.049 0.031 0.073 0.047s0.048 0.032 0.072 0.049c0.024 0.017 0.048 0.033 0.071 0.050s0.047 0.034 0.070 0.051c0.023 0.017 0.047 0.035 0.069 0.053s0.046 0.035 0.068 0.053c0.022 0.018 0.045 0.036 0.067 0.055s0.044 0.037 0.066 0.055c0.022 0.019 0.043 0.038 0.065 0.057s0.042 0.039 0.063 0.058c0.021 0.020 0.042 0.039 0.063 0.059s0.041 0.040 0.061 0.060c0.020 0.021 0.041 0.041 0.061 0.062s0.039 0.041 0.058 0.062c0.020 0.021 0.039 0.043 0.058 0.064s0.038 0.043 0.056 0.064c0.019 0.022 0.038 0.043 0.056 0.066s0.036 0.043 0.054 0.065c0.018 0.022 0.036 0.045 0.054 0.068s0.034 0.045 0.051 0.067c0.017 0.023 0.034 0.046 0.051 0.070s0.032 0.046 0.049 0.070c0.016 0.023 0.033 0.047 0.048 0.071s0.031 0.047 0.046 0.071c0.015 0.024 0.031 0.048 0.046 0.072s0.029 0.049 0.044 0.073c0.014 0.024 0.029 0.049 0.043 0.074s0.027 0.050 0.041 0.075c0.013 0.025 0.027 0.050 0.040 0.075s0.026 0.051 0.038 0.077c0.013 0.025 0.025 0.050 0.037 0.076s0.024 0.052 0.036 0.079c0.012 0.026 0.023 0.051 0.034 0.077s0.022 0.054 0.033 0.080c0.011 0.026 0.021 0.052 0.032 0.079s0.020 0.055 0.030 0.082c0.010 0.026 0.020 0.052 0.029 0.079 0.010 0.028 0.019 0.056 0.028 0.084 0.009 0.027 0.017 0.053 0.026 0.079 0.009 0.029 0.017 0.058 0.025 0.087 0.008 0.026 0.015 0.053 0.022 0.079 0.008 0.029 0.015 0.059 0.022 0.089 0.006 0.027 0.013 0.053 0.019 0.079 0.007 0.030 0.013 0.061 0.019 0.091 0.005 0.026 0.011 0.053 0.016 0.079 0.006 0.031 0.011 0.062 0.016 0.094 0.004 0.026 0.009 0.052 0.013 0.079 0.005 0.032 0.009 0.065 0.013 0.097 0.003 0.025 0.007 0.051 0.010 0.076 0.004 0.034 0.007 0.069 0.010 0.104 0.002 0.024 0.005 0.047 0.007 0.071 0.003 0.040 0.005 0.079 0.006 0.119 0.001 0.019 0.003 0.039 0.003 0.058 0.002 0.059 0.003 0.119 0.003 0.178v1.346h-9.463zM15.787 15.47c-0.010-0.13-0.026-0.261-0.045-0.39-0.003-0.021-0.007-0.041-0.010-0.061-0.008-0.047-0.015-0.094-0.024-0.14-0.005-0.024-0.010-0.049-0.014-0.074-0.008-0.042-0.017-0.085-0.027-0.127-0.006-0.025-0.012-0.051-0.018-0.076-0.010-0.041-0.020-0.083-0.031-0.124-0.007-0.025-0.013-0.050-0.020-0.075-0.012-0.043-0.024-0.086-0.037-0.128-0.007-0.023-0.013-0.045-0.020-0.067-0.016-0.050-0.033-0.101-0.050-0.151-0.005-0.014-0.009-0.028-0.014-0.042-0.023-0.064-0.047-0.128-0.072-0.191-0.005-0.013-0.011-0.027-0.017-0.041-0.020-0.049-0.040-0.098-0.061-0.147-0.009-0.021-0.019-0.043-0.029-0.064-0.018-0.041-0.037-0.081-0.056-0.121-0.011-0.024-0.023-0.047-0.034-0.070-0.019-0.038-0.038-0.076-0.058-0.114-0.012-0.023-0.025-0.047-0.038-0.071-0.021-0.038-0.041-0.075-0.063-0.113-0.013-0.022-0.025-0.045-0.038-0.067-0.023-0.040-0.048-0.080-0.073-0.12-0.012-0.019-0.022-0.038-0.034-0.056-0.037-0.058-0.074-0.115-0.113-0.172-0.037-0.053-0.074-0.105-0.111-0.157-0.011-0.015-0.022-0.029-0.033-0.045-0.029-0.039-0.058-0.077-0.088-0.115-0.011-0.014-0.021-0.028-0.032-0.041-0.040-0.049-0.080-0.098-0.121-0.146-0.005-0.006-0.011-0.012-0.016-0.018-0.036-0.042-0.073-0.084-0.111-0.125-0.013-0.014-0.026-0.028-0.039-0.042-0.033-0.036-0.067-0.071-0.101-0.105-0.011-0.012-0.022-0.023-0.034-0.034-0.044-0.044-0.089-0.088-0.135-0.131-0.010-0.009-0.019-0.018-0.029-0.027-0.037-0.035-0.075-0.069-0.113-0.102-0.015-0.013-0.029-0.025-0.044-0.038-0.038-0.033-0.076-0.065-0.115-0.097-0.011-0.009-0.021-0.018-0.032-0.026-0.048-0.039-0.098-0.078-0.148-0.116-0.012-0.009-0.025-0.018-0.037-0.028-0.039-0.029-0.079-0.057-0.119-0.085-0.015-0.011-0.031-0.022-0.047-0.033-0.044-0.031-0.089-0.061-0.134-0.090-0.008-0.005-0.016-0.011-0.024-0.016-0.046-0.029-0.092-0.058-0.138-0.086 0.012-0.012 0.023-0.024 0.035-0.035 0.033-0.032 0.066-0.065 0.098-0.098 0.018-0.019 0.036-0.037 0.054-0.056 0.035-0.038 0.070-0.076 0.103-0.115 0.014-0.017 0.029-0.033 0.043-0.050 0.036-0.043 0.071-0.086 0.105-0.13 0.011-0.014 0.023-0.029 0.034-0.043 0.034-0.046 0.068-0.092 0.101-0.138 0.21 0.031 0.421 0.046 0.631 0.046 0.728 0 1.414-0.18 2.017-0.498 1.657 0.785 2.714 2.436 2.714 4.276v1.346h-3.139z" })), + "tabs": el("svg", { width: 20, height: 20, viewBox: "0 0 128 128" }, el("path", { fill: "#4a00e0", d: "M116.2,25.4V20c0-8.3-6.7-15-15-15H15C6.7,5,0,11.7,0,20v88c0,8.3,6.7,15,15,15h98c8.3,0,15-6.7,15-15V40C128,32.8,123,26.8,116.2,25.4z M106.2,20v5H83.8v-5c0-1.8-0.3-3.4-0.9-5h18.4C104,15,106.2,17.2,106.2,20z M68.8,15c2.8,0,5,2.2,5,5v5H51v-5c0-1.8-0.3-3.4-0.9-5H68.8z M118,108c0,2.8-2.2,5-5,5H15c-2.8,0-5-2.2-5-5V20c0-2.8,2.2-5,5-5h21c2.8,0,5,2.2,5,5v15h72c2.8,0,5,2.2,5,5V108z" })), "social_share": el("svg", { width: 20, height: 20 }, el("path", { fill: "#4a00e0", d: "M12.724 17.582c-2.53 1.063-5.462 0.552-7.49-1.313 1.713-1.814 0.438-4.835-2.084-4.835-1.582 0-2.868 1.287-2.868 2.868 0 1.946 1.91 3.335 3.763 2.724 2.433 2.44 6.086 3.134 9.21 1.82 0.349-0.146 0.513-0.549 0.366-0.897s-0.548-0.513-0.897-0.367v0zM1.652 14.302c0-0.825 0.672-1.497 1.498-1.497 0.825 0 1.497 0.672 1.497 1.497s-0.672 1.497-1.497 1.497c-0.826 0-1.498-0.672-1.498-1.497z" }), el("path", { fill: "#4a00e0", d: "M2.506 9.096c0.357 0.13 0.749-0.055 0.878-0.409 0.683-1.876 2.162-3.392 4.006-4.131 0.453 0.99 1.452 1.68 2.609 1.68 1.582 0 2.868-1.286 2.868-2.868 0-1.581-1.286-2.868-2.868-2.868-1.52 0-2.767 1.188-2.861 2.685-2.346 0.851-4.195 2.705-5.042 5.033-0.129 0.355 0.054 0.749 0.41 0.878zM10 1.871c0.826 0 1.498 0.671 1.498 1.497s-0.672 1.498-1.498 1.498-1.497-0.672-1.497-1.498 0.671-1.497 1.497-1.497z" }), el("path", { fill: "#4a00e0", d: "M18.368 11.871c0.024-0.136 0.039-0.573 0.039-0.779 0-2.375-1.013-4.651-2.777-6.244-0.281-0.253-0.715-0.231-0.968 0.050s-0.231 0.714 0.049 0.968c1.546 1.395 2.421 3.432 2.316 5.575-1.666-0.103-3.045 1.226-3.045 2.861 0 1.581 1.286 2.868 2.867 2.868s2.868-1.287 2.868-2.868c0.001-1.024-0.539-1.924-1.349-2.431zM16.85 15.799c-0.825 0-1.497-0.672-1.497-1.497s0.672-1.497 1.497-1.497c0.826 0 1.497 0.672 1.497 1.497s-0.671 1.497-1.497 1.497z" })), "social_share_child": el("svg", { width: 20, height: 20 }, el("path", { fill: "#4a00e0", d: "M13.717 11.663c-0.79 0-1.498 0.36-1.968 0.926l-3.055-1.734c0.096-0.268 0.148-0.554 0.148-0.854s-0.052-0.586-0.148-0.854l3.055-1.735c0.47 0.565 1.178 0.927 1.968 0.927 1.41 0 2.557-1.147 2.557-2.559 0-1.41-1.146-2.558-2.557-2.558s-2.558 1.147-2.558 2.558c0 0.3 0.053 0.588 0.147 0.854l-3.055 1.736c-0.468-0.566-1.177-0.927-1.967-0.927-1.411 0-2.558 1.147-2.558 2.558s1.147 2.558 2.558 2.558c0.79 0 1.499-0.359 1.967-0.926l3.055 1.734c-0.095 0.268-0.147 0.556-0.147 0.855 0 1.409 1.147 2.557 2.558 2.557s2.557-1.147 2.557-2.557c-0.001-1.411-1.147-2.559-2.557-2.559zM13.717 4.116c0.917 0 1.663 0.746 1.663 1.663s-0.746 1.663-1.663 1.663c-0.916 0-1.662-0.745-1.662-1.663 0-0.917 0.746-1.663 1.662-1.663zM6.285 11.663c-0.917 0-1.663-0.746-1.663-1.663 0-0.916 0.746-1.662 1.663-1.662s1.663 0.746 1.663 1.662c-0.001 0.917-0.747 1.663-1.663 1.663zM13.717 15.884c-0.916 0-1.662-0.746-1.662-1.662 0-0.918 0.746-1.664 1.662-1.664s1.663 0.746 1.663 1.664c0 0.916-0.746 1.662-1.663 1.662z" })), "restaurant_menu": el("svg", { width: 20, height: 20 }, el("path", { fill: "#4a00e0", d: "M0 2.136v15.729h20v-15.729h-20zM18.828 7.038h-8.242v-3.73h8.242v3.73zM1.172 3.307h8.242v13.385h-8.242v-13.385zM10.586 16.693v-8.483h8.242v8.483h-8.242z" }), el("path", { fill: "#4a00e0", d: "M2.742 4.661v4.492c0 1.188 0.826 2.185 1.934 2.45v2.563h-0.898v1.172h2.969v-1.172h-0.898v-2.563c1.108-0.265 1.934-1.263 1.934-2.45v-4.492h-5.039zM6.61 9.154c0 0.743-0.605 1.348-1.348 1.348s-1.348-0.604-1.348-1.348v-3.32h2.695v3.32z" }), el("path", { fill: "#4a00e0", d: "M13.050 4.661h3.275v1.172h-3.275v-1.172z" }), el("path", { fill: "#4a00e0", d: "M12.109 9.414h5.156v1.172h-5.156v-1.172z" }), el("path", { fill: "#4a00e0", d: "M12.109 11.79h5.156v1.172h-5.156v-1.172z" }), el("path", { fill: "#4a00e0", d: "M12.109 14.167h5.156v1.172h-5.156v-1.172z" })), @@ -188,11 +190,28 @@ var UAGB_Block_Icons = { "marketing_button": el("svg", { width: 20, height: 20 }, el("path", { fill: "#4a00e0", d: "M12.997 2.99c-0.050-0.153-0.158-0.28-0.302-0.353s-0.31-0.086-0.463-0.036l-2.54 0.825c-0.319 0.104-0.493 0.446-0.39 0.765l0.127 0.391-6.461 4.746-2.549 0.828c-0.153 0.050-0.28 0.158-0.353 0.302s-0.086 0.31-0.036 0.463l1.548 4.765c0.083 0.257 0.321 0.42 0.577 0.42 0.062 0 0.125-0.010 0.188-0.030l2.548-0.828 1.309 0.007c0.263 1.241 1.367 2.176 2.686 2.176 1.308 0 2.405-0.92 2.679-2.148l1.343 0.007 0.127 0.391c0.050 0.153 0.158 0.28 0.302 0.353 0.086 0.044 0.181 0.066 0.276 0.066 0.063 0 0.127-0.010 0.188-0.030l2.54-0.825c0.319-0.104 0.493-0.446 0.39-0.765l-3.733-11.489zM2.545 14.732l-1.173-3.61 1.487-0.483 1.173 3.61-1.486 0.483zM8.886 16.215c-0.64 0-1.189-0.396-1.418-0.955l2.83 0.015c-0.232 0.552-0.777 0.94-1.412 0.94zM5.239 14.034l-1.277-3.93 5.862-4.306 2.689 8.275-7.274-0.038zM14.002 14.727l-0.075-0.229c-0-0-0-0.001-0-0.001l-3.283-10.104 1.385-0.45 3.358 10.335-1.385 0.45z" }), el("path", { fill: "#4a00e0", d: "M15.041 5.941c0.088 0.045 0.182 0.066 0.275 0.066 0.221 0 0.434-0.121 0.541-0.332l1.090-2.138c0.152-0.299 0.034-0.664-0.265-0.817s-0.664-0.034-0.817 0.265l-1.090 2.138c-0.152 0.299-0.034 0.664 0.265 0.817z" }), el("path", { fill: "#4a00e0", d: "M19.604 11.714l-2.138-1.089c-0.299-0.152-0.664-0.033-0.817 0.265s-0.033 0.664 0.265 0.817l2.138 1.089c0.088 0.045 0.182 0.066 0.275 0.066 0.221 0 0.434-0.121 0.541-0.332 0.152-0.299 0.033-0.664-0.265-0.817z" }), el("path", { fill: "#4a00e0", d: "M16.533 8.193c0.083 0.257 0.321 0.42 0.577 0.42 0.062 0 0.125-0.010 0.188-0.030l2.282-0.742c0.319-0.104 0.493-0.446 0.39-0.765s-0.446-0.493-0.765-0.39l-2.282 0.742c-0.319 0.104-0.493 0.446-0.39 0.765z" })), "table_of_contents": el("svg", { width: 20, height: 20 }, el("path", { fill: "#4a00e0", d: "M0 0h1.25v20h-1.25v-20zM18.75 0h1.25v20h-1.25v-20zM1.25 1.25v-1.25h17.5v1.25h-17.5zM1.25 20v-1.25h17.5v1.25h-17.5zM1.25 4.063v-1.25h17.5v1.25h-17.5zM13.75 1.25h1.25v1.563h-1.25v-1.563zM4.375 5c-0.938 0-1.875 0.938-1.875 1.875s0.938 1.875 1.875 1.875c0.938 0 1.875-0.938 1.875-1.875s-0.938-1.875-1.875-1.875zM4.375 5.938c0.625 0 0.938 0.313 0.938 0.938s-0.313 0.938-0.938 0.938c-0.625 0-0.938-0.313-0.938-0.938s0.313-0.938 0.938-0.938zM7.813 7.5h9.688v-1.25h-9.688v1.25zM4.375 9.688c-0.938 0-1.875 0.625-1.875 1.875 0 0.938 0.938 1.875 1.875 1.875s1.875-0.938 1.875-1.875c0-1.25-0.938-1.875-1.875-1.875zM4.375 10.313c0.625 0 0.938 0.625 0.938 1.25 0 0.313-0.313 0.938-0.938 0.938s-0.938-0.625-0.938-0.938c0-0.625 0.313-1.25 0.938-1.25zM7.813 12.188h9.688v-1.25h-9.688v1.25zM4.375 14.063c0.938 0 1.875 0.938 1.875 1.875s-0.938 1.875-1.875 1.875c-0.938 0-1.875-0.938-1.875-1.875s0.938-1.875 1.875-1.875zM4.375 15c-0.625 0-0.938 0.313-0.938 0.938s0.313 0.938 0.938 0.938c0.625 0 0.938-0.313 0.938-0.938s-0.313-0.938-0.938-0.938zM7.813 16.563h9.688v-1.25h-9.688v1.25z" })), "faq": el("svg", { width: 20, height: 20 }, el("path", { fill: "#4a00e0", d: "M10.95 14.645c0 0.524-0.425 0.949-0.949 0.949s-0.949-0.425-0.949-0.949c0-0.524 0.425-0.949 0.949-0.949s0.949 0.425 0.949 0.949z" }), el("path", { fill: "#4a00e0", d: "M10.001 0.292c-5.366 0-9.709 4.342-9.709 9.708s4.342 9.708 9.709 9.708c5.365 0 9.707-4.342 9.707-9.708 0-5.365-4.342-9.708-9.707-9.708zM10.001 18.643c-4.777 0-8.644-3.864-8.644-8.643 0-4.776 3.865-8.643 8.644-8.643 4.777 0 8.642 3.865 8.642 8.643s-3.865 8.643-8.642 8.643z" }), el("path", { fill: "#4a00e0", d: "M10.001 5.165c-1.674 0-3.034 1.361-3.034 3.033 0 0.42 0.339 0.76 0.758 0.76s0.759-0.34 0.759-0.76c0-0.836 0.68-1.516 1.518-1.516 0.835 0 1.516 0.68 1.516 1.516s-0.681 1.519-1.516 1.519c-0.421 0-0.759 0.339-0.759 0.757v1.897c0 0.417 0.338 0.757 0.759 0.757 0.418 0 0.758-0.34 0.758-0.757v-1.234c1.308-0.337 2.275-1.527 2.275-2.938-0.001-1.673-1.363-3.034-3.034-3.034z" })), + "forms": el("svg", { width: 20, height: 20, viewBox: "-35 37 128 128" }, el("path", { fill: "#4a00e0", d: "M61,37h-80c-8.8,0-16,7.2-16,16v96c0,8.8,7.2,16,16,16h44v-8h-44c-4.4,0-8-3.6-8-8V53c0-4.4,3.6-8,8-8h80c4.4,0,8,3.6,8,8v47l8-8V53C77,44.2,69.8,37,61,37z" }), el("path", { fill: "#4a00e0", d: "M90.7,109l-5.7-5.7c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1,0.8-5.7,2.3l-34.3,34.3c-1.6,1.6-6.3,7.6-6.3,9.7L29,165l17.7-4c0,0,8.1-4.8,9.7-6.3l34.3-34.3C93.8,117.2,93.8,112.1,90.7,109z M53.5,151.8c-0.5,0.4-2,1.5-3.9,2.7l-10.4-10.4c1.1-1.5,2.2-2.9,3-3.6L68,114.7L79.3,126L53.5,151.8z" }), el("path", { fill: "#4a00e0", d: "M53,69h-64v-8h64V69z" }), el("path", { fill: "#4a00e0", d: "M53,85h-64v-8h64V85z" }), el("path", { fill: "#4a00e0", d: "M53,101h-64v-8h64V101z" }), el("path", { fill: "#4a00e0", d: "M21,117h-32v-8h32V117z" })), "how_to": el("svg", { width: 20, height: 20, viewBox: "0 0 32 32" }, el("path", { fill: "#4a00e0", d: "M29.539 1.258l-27.674 9.042c-0.782 0.256-0.894 1.318-0.182 1.733l10.458 6.082c0.33 0.189 0.742 0.166 1.048-0.059l2.939-2.182-2.182 2.939c-0.229 0.306-0.251 0.72-0.059 1.048l6.082 10.458c0.413 0.71 1.477 0.598 1.733-0.184l9.040-27.672c0.243-0.742-0.461-1.445-1.202-1.203v0zM20.549 27.518l-4.696-8.075 5.661-7.622c0.282-0.381 0.243-0.909-0.091-1.243-0.336-0.334-0.864-0.373-1.245-0.091l-7.622 5.662-8.074-4.696 23.862-7.798-7.795 23.864zM11.229 22.122l-6.336 6.338c-0.373 0.37-0.978 0.37-1.349 0-0.373-0.374-0.373-0.978 0-1.35l6.334-6.336c0.373-0.374 0.978-0.374 1.35 0 0.371 0.371 0.371 0.976 0 1.349zM2.858 22.362c-0.371-0.371-0.371-0.978 0-1.349l2.501-2.501c0.373-0.374 0.976-0.374 1.349 0 0.373 0.371 0.373 0.974 0 1.349l-2.501 2.501c-0.373 0.373-0.976 0.373-1.349 0zM13.49 25.293c0.371 0.373 0.371 0.978 0 1.35l-2.501 2.501c-0.186 0.184-0.43 0.278-0.675 0.278-0.842 0-1.277-1.027-0.674-1.63l2.501-2.501c0.37-0.371 0.976-0.371 1.349 0.002v0z" })), "inline_notice": el("svg", { width: 20, height: 20, viewBox: "0 0 32 32" }, el("path", { fill: "#4a00e0", d: "M30.69 25.701l-13.094-21.389c-0.35-0.571-0.96-0.912-1.63-0.912h-0.002c-0.67 0-1.28 0.344-1.629 0.915l-13.026 21.389c-0.352 0.578-0.374 1.28-0.064 1.882 0.304 0.59 0.878 0.966 1.534 1.013 0.045 0.003 0.090 0.005 0.134 0.005h26.168c0.045 0 0.093-0.002 0.134-0.005 0.658-0.045 1.232-0.422 1.538-1.013 0.312-0.606 0.288-1.307-0.064-1.885zM3.458 26.403l12.507-20.541 12.576 20.541h-25.083z" }), el("path", { fill: "#4a00e0", d: "M15.966 11.242c-0.533 0-0.965 0.432-0.965 0.965v8.037c0 0.531 0.432 0.966 0.965 0.966s0.965-0.432 0.965-0.966v-8.037c0-0.533-0.432-0.965-0.965-0.965z" }), el("path", { fill: "#4a00e0", d: "M16.946 23.702c0 0.532-0.431 0.963-0.963 0.963s-0.963-0.431-0.963-0.963c0-0.532 0.431-0.963 0.963-0.963s0.963 0.431 0.963 0.963z" })), "wp_search": el("svg", { width: 20, height: 20, viewBox: "0 0 32 32" }, el("path", { fill: "#4a00e0", d: "M20.433 1.068c-5.789 0-10.499 4.71-10.499 10.5 0 2.58 0.936 4.945 2.486 6.775l-1.187 1.187-0.618-0.618c-0.342-0.342-0.896-0.342-1.238 0l-7.542 7.54c-1.024 1.024-1.024 2.689 0 3.713s2.689 1.023 3.712 0l7.541-7.541c0.341-0.342 0.341-0.895 0-1.237l-0.619-0.62 1.187-1.187c1.83 1.55 4.196 2.486 6.776 2.486 5.791 0 10.499-4.71 10.499-10.499s-4.708-10.499-10.499-10.499zM4.311 28.927c-0.341 0.34-0.897 0.34-1.238 0s-0.341-0.896 0-1.238l4.447-4.447 1.238 1.238-4.447 4.447zM9.996 23.242l-1.238-1.238 1.238-1.238 1.238 1.238-1.238 1.238zM20.433 20.317c-4.824 0-8.749-3.924-8.749-8.749s3.925-8.75 8.749-8.75c4.826 0 8.749 3.925 8.749 8.75s-3.924 8.749-8.749 8.749z" })), "taxonomy_list": el("svg", { width: 20, height: 20, viewBox: "0 0 38 32" }, el("path", { fill: "#4a00e0", d: "M14 24.68h-2.4c-0.24-0.96-0.72-1.84-1.4-2.52l1.28-2c0.44-0.68 0.24-1.6-0.44-2.040s-1.6-0.24-2.040 0.44l-1.28 2c-0.56-0.2-1.2-0.28-1.8-0.28-3.24 0-5.88 2.64-5.88 5.88s2.68 5.84 5.92 5.84c2.72 0 5.040-1.88 5.68-4.4h2.4c0.8 0 1.48-0.64 1.48-1.48-0.040-0.8-0.68-1.44-1.52-1.44zM5.96 29.080c-1.6 0-2.92-1.32-2.92-2.92s1.32-2.92 2.92-2.92 2.92 1.32 2.92 2.92c0 1.6-1.32 2.92-2.92 2.92z" }), el("path", { fill: "#4a00e0", d: "M31.76 20.24c-0.64 0-1.24 0.12-1.8 0.28l-1.28-2c-0.44-0.68-1.36-0.88-2.040-0.44s-0.88 1.36-0.44 2.040l1.28 2c-0.64 0.72-1.16 1.56-1.4 2.52h-2.4c-0.8 0-1.48 0.64-1.48 1.48 0 0.8 0.64 1.48 1.48 1.48h2.4c0.64 2.52 2.96 4.4 5.68 4.4 3.24 0 5.88-2.64 5.88-5.88s-2.64-5.88-5.88-5.88zM31.76 29.080c-1.6 0-2.92-1.32-2.92-2.92s1.32-2.92 2.92-2.92c1.6 0 2.92 1.32 2.92 2.92 0.040 1.6-1.28 2.92-2.92 2.92z" }), el("path", { fill: "#4a00e0", d: "M24 13.92c0.68-0.44 0.88-1.36 0.44-2.040l-1.28-2c0.96-1.040 1.56-2.44 1.56-4 0-3.24-2.64-5.88-5.84-5.88s-5.88 2.64-5.88 5.88c0 1.56 0.6 2.96 1.56 4l-1.28 2c-0.44 0.68-0.24 1.6 0.44 2.040s1.6 0.24 2.040-0.44l1.28-2c0.56 0.2 1.2 0.28 1.8 0.28s1.24-0.12 1.8-0.28l1.28 2c0.48 0.68 1.4 0.88 2.080 0.44zM18.88 8.8c-1.6 0-2.92-1.32-2.92-2.92s1.32-2.92 2.92-2.92 2.92 1.32 2.92 2.92c0 1.6-1.32 2.92-2.92 2.92z" })), - "review": el("svg", { width: 20, height: 20, viewBox: "0 0 29 29" }, el("path", { fill: "#4a00e0", d: "M20.48 16.187l0.4-0.4-0.533-0.053-0.107-0.027-0.053-0.080-0.24-0.507v1.493l0.080 0.053 0.507 0.267-0.080-0.56-0.027-0.107 0.053-0.080zM21.2 15.787l-0.56 0.56 0.133 0.773c0 0.027 0 0.053 0 0.080s-0.027 0.027-0.053 0.027c-0.027 0-0.027 0-0.053-0.027l-0.693-0.373-0.693 0.373c-0.027 0-0.053 0.027-0.053 0.027-0.027 0-0.053 0-0.053-0.027s-0.027-0.053 0-0.080l0.133-0.773-0.56-0.56c-0.027-0.027-0.053-0.053-0.027-0.080 0-0.027 0.027-0.053 0.080-0.053l0.773-0.107 0.347-0.72c0.027-0.053 0.053-0.053 0.080-0.053s0.053 0.027 0.080 0.053l0.347 0.72 0.773 0.107c0.053 0 0.080 0.027 0.080 0.053-0.027 0-0.053 0.053-0.080 0.080z" }), el("path", { fill: "#4a00e0", d: "M8.16 16.187l0.4-0.4-0.56-0.053-0.107-0.027-0.053-0.080-0.24-0.507v1.493l0.080 0.053 0.507 0.267-0.080-0.56-0.027-0.107 0.080-0.080zM8.853 15.787l-0.56 0.56 0.133 0.773c0 0.027 0 0.053 0 0.080s-0.027 0.027-0.053 0.027c-0.027 0-0.027 0-0.053-0.027l-0.693-0.373-0.693 0.373c-0.027 0-0.053 0.027-0.053 0.027-0.027 0-0.053 0-0.053-0.027s-0.027-0.053 0-0.080l0.133-0.773-0.56-0.56c-0.027-0.027-0.053-0.053-0.027-0.080s0.027-0.053 0.080-0.053l0.773-0.107 0.347-0.72c0.027-0.053 0.053-0.053 0.080-0.053s0.053 0.027 0.080 0.053l0.347 0.72 0.773 0.107c0.053 0 0.080 0.027 0.080 0.053s-0.027 0.053-0.080 0.080z" }), el("path", { fill: "#4a00e0", d: "M7.147 16.267l-0.027 0.107-0.080 0.56 0.507-0.267 0.080-0.053v-1.493l-0.24 0.507-0.053 0.080-0.133 0.027-0.533 0.080 0.4 0.4 0.080 0.053zM6.32 15.68c0-0.027 0.027-0.053 0.080-0.053l0.773-0.107 0.347-0.72c0.027-0.053 0.053-0.053 0.080-0.053s0.053 0.027 0.080 0.053l0.347 0.72 0.773 0.107c0.053 0 0.080 0.027 0.080 0.053s0 0.053-0.027 0.080l-0.56 0.56 0.133 0.773c0 0.027 0 0.053 0 0.080s-0.027 0.027-0.053 0.027c-0.027 0-0.027 0-0.053-0.027l-0.693-0.373-0.693 0.373c-0.027 0-0.053 0.027-0.053 0.027-0.027 0-0.053 0-0.053-0.027s-0.027-0.053 0-0.080l0.133-0.773-0.56-0.56c-0.080 0-0.080-0.053-0.080-0.080z" }), el("path", { fill: "#4a00e0", d: "M11.333 16.187l0.4-0.4-0.533-0.053-0.107-0.027-0.053-0.080-0.24-0.507v1.493l0.080 0.053 0.507 0.267-0.080-0.56-0.053-0.107 0.080-0.080zM12.053 15.787l-0.587 0.533 0.133 0.773c0 0.027 0 0.053 0 0.080s-0.027 0.027-0.053 0.027c-0.027 0-0.027 0-0.053-0.027l-0.693-0.373-0.693 0.373c-0.027 0-0.053 0.027-0.053 0.027-0.027 0-0.053 0-0.053-0.027s-0.027-0.053 0-0.080l0.133-0.773-0.56-0.56c-0.027-0.027-0.053-0.053-0.027-0.080s0.027-0.053 0.080-0.053l0.773-0.107 0.347-0.72c0.027-0.053 0.053-0.053 0.080-0.053s0.053 0.027 0.080 0.053l0.347 0.72 0.773 0.107c0.053 0 0.080 0.027 0.080 0.053-0.027 0.027-0.027 0.080-0.053 0.107z" }), el("path", { fill: "#4a00e0", d: "M10.32 16.267l-0.027 0.107-0.080 0.56 0.507-0.267 0.080-0.053v-1.493l-0.24 0.507-0.053 0.080-0.107 0.027-0.56 0.080 0.4 0.4 0.080 0.053zM9.493 15.68c0-0.027 0.027-0.053 0.080-0.053l0.773-0.107 0.347-0.72c0.027-0.053 0.053-0.053 0.080-0.053s0.053 0.027 0.080 0.053l0.347 0.72 0.773 0.107c0.053 0 0.080 0.027 0.080 0.053s0 0.053-0.027 0.080l-0.56 0.56 0.133 0.773c0 0.027 0 0.053 0 0.080s-0.027 0.027-0.053 0.027c-0.027 0-0.027 0-0.053-0.027l-0.693-0.373-0.693 0.373c-0.027 0-0.053 0.027-0.053 0.027-0.027 0-0.053 0-0.053-0.027s-0.027-0.053 0-0.080l0.133-0.773-0.56-0.56c-0.080 0-0.080-0.053-0.080-0.080z" }), el("path", { fill: "#4a00e0", d: "M14.4 16.187l0.4-0.4-0.56-0.053-0.107-0.027-0.053-0.080-0.24-0.507v1.493l0.080 0.053 0.507 0.267-0.080-0.56-0.027-0.107 0.080-0.080zM15.093 15.787l-0.56 0.56 0.133 0.773c0 0.027 0 0.053 0 0.080s-0.027 0.027-0.053 0.027c-0.027 0-0.027 0-0.053-0.027l-0.693-0.373-0.693 0.373c-0.027 0-0.053 0.027-0.053 0.027-0.027 0-0.053 0-0.053-0.027s-0.027-0.053 0-0.080l0.133-0.773-0.56-0.56c-0.027-0.027-0.053-0.053-0.027-0.080 0-0.027 0.027-0.053 0.080-0.053l0.773-0.107 0.347-0.72c0.027-0.053 0.053-0.053 0.080-0.053s0.053 0.027 0.080 0.053l0.347 0.72 0.773 0.107c0.053 0 0.080 0.027 0.080 0.053s-0.053 0.053-0.080 0.080z" }), el("path", { fill: "#4a00e0", d: "M13.36 16.267l-0.027 0.107-0.080 0.56 0.507-0.267 0.080-0.053v-1.493l-0.24 0.48-0.053 0.080-0.107 0.053-0.56 0.080 0.4 0.4 0.080 0.053zM12.56 15.68c0-0.027 0.027-0.053 0.080-0.053l0.773-0.107 0.347-0.72c0.027-0.053 0.053-0.053 0.080-0.053s0.053 0.027 0.080 0.053l0.347 0.72 0.773 0.107c0.053 0 0.080 0.027 0.080 0.053s0 0.053-0.027 0.080l-0.56 0.56 0.133 0.773c0 0.027 0 0.053 0 0.080s-0.027 0.027-0.053 0.027c-0.027 0-0.027 0-0.053-0.027l-0.693-0.373-0.693 0.373c-0.027 0-0.053 0.027-0.053 0.027-0.027 0-0.053 0-0.053-0.027s-0.027-0.053 0-0.080l0.133-0.773-0.56-0.56c-0.080 0-0.107-0.053-0.080-0.080z" }), el("path", { fill: "#4a00e0", d: "M17.493 16.187l0.4-0.4-0.56-0.053-0.107-0.027-0.053-0.080-0.24-0.507v1.493l0.080 0.053 0.507 0.267-0.080-0.56-0.027-0.107 0.080-0.080zM18.187 15.787l-0.56 0.56 0.133 0.773c0 0.027 0 0.053 0 0.080s-0.027 0.027-0.053 0.027c-0.027 0-0.027 0-0.053-0.027l-0.693-0.373-0.693 0.373c-0.027 0-0.053 0.027-0.053 0.027-0.027 0-0.053 0-0.053-0.027s-0.027-0.053 0-0.080l0.133-0.773-0.56-0.56c-0.027-0.027-0.053-0.053-0.027-0.080s0.027-0.053 0.080-0.053l0.773-0.107 0.347-0.72c0.027-0.053 0.053-0.053 0.080-0.053s0.053 0.027 0.080 0.053l0.347 0.72 0.773 0.107c0.053 0 0.080 0.027 0.080 0.053-0.027 0-0.027 0.053-0.080 0.080z" }), el("path", { fill: "#4a00e0", d: "M16.48 16.267l-0.027 0.107-0.080 0.56 0.507-0.267 0.080-0.053v-1.493l-0.24 0.507-0.053 0.080-0.133 0.027-0.533 0.080 0.4 0.4 0.080 0.053zM15.653 15.68c0-0.027 0.027-0.053 0.080-0.053l0.773-0.107 0.347-0.72c0.027-0.053 0.053-0.053 0.080-0.053s0.053 0.027 0.080 0.053l0.347 0.72 0.773 0.107c0.053 0 0.080 0.027 0.080 0.053s0 0.053-0.027 0.080l-0.56 0.56 0.133 0.773c0 0.027 0 0.053 0 0.080s-0.027 0.027-0.053 0.027c-0.027 0-0.027 0-0.053-0.027l-0.693-0.373-0.693 0.373c-0.027 0-0.053 0.027-0.053 0.027-0.027 0-0.053 0-0.053-0.027s-0.027-0.053 0-0.080l0.133-0.773-0.56-0.56c-0.080 0-0.080-0.053-0.080-0.080z" }), el("path", { fill: "none", stroke: "#4a00e0", linejoin: "miter", linecap: "butt", miterlimit: "10", width: "1.3333", d: "M18.8 25.733h-15.147v-21.867h25.227v14.293" }), el("path", { fill: "none", stroke: "#4a00e0", linejoin: "miter", linecap: "butt", miterlimit: "10", width: "1.3333", d: "M3.653 8.907h25.227" }), el("path", { fill: "none", stroke: "#4a00e0", linejoin: "miter", linecap: "butt", miterlimit: "10", width: "1.3333", d: "M6.187 6.4h1.68" }), el("path", { fill: "none", stroke: "#4a00e0", linejoin: "miter", linecap: "butt", miterlimit: "10", width: "1.3333", d: "M9.547 6.4h1.68" }), el("path", { fill: "#4a00e0", d: "M23.147 26.373c-2.613-0.133-4.613-2.347-4.48-4.96s2.347-4.613 4.933-4.48c2.613 0.133 4.613 2.347 4.48 4.933-0.107 2.613-2.32 4.613-4.933 4.507zM23.547 17.867c-2.080-0.107-3.867 1.52-3.947 3.6-0.107 2.080 1.493 3.867 3.6 3.947s3.867-1.52 3.947-3.6-1.52-3.84-3.6-3.947z" }), el("path", { fill: "#4a00e0", d: "M30.080 29.547c-0.133 0-0.24-0.053-0.32-0.16l-3.6-3.947c-0.187-0.187-0.16-0.507 0.027-0.667 0.187-0.187 0.507-0.16 0.667 0.027l3.6 3.947c0.187 0.187 0.16 0.48-0.027 0.667 0 0 0 0 0 0-0.107 0.080-0.213 0.133-0.347 0.133z" }), el("path", { fill: "#4a00e0", d: "M23.947 11.573h-17.040c-0.373 0-0.667 0.293-0.667 0.667s0.293 0.667 0.667 0.667h17.040c0.373 0 0.667-0.293 0.667-0.667s-0.293-0.667-0.667-0.667z" })) + "review": el("svg", { width: 20, height: 20, viewBox: "0 0 29 29" }, el("path", { fill: "#4a00e0", d: "M20.48 16.187l0.4-0.4-0.533-0.053-0.107-0.027-0.053-0.080-0.24-0.507v1.493l0.080 0.053 0.507 0.267-0.080-0.56-0.027-0.107 0.053-0.080zM21.2 15.787l-0.56 0.56 0.133 0.773c0 0.027 0 0.053 0 0.080s-0.027 0.027-0.053 0.027c-0.027 0-0.027 0-0.053-0.027l-0.693-0.373-0.693 0.373c-0.027 0-0.053 0.027-0.053 0.027-0.027 0-0.053 0-0.053-0.027s-0.027-0.053 0-0.080l0.133-0.773-0.56-0.56c-0.027-0.027-0.053-0.053-0.027-0.080 0-0.027 0.027-0.053 0.080-0.053l0.773-0.107 0.347-0.72c0.027-0.053 0.053-0.053 0.080-0.053s0.053 0.027 0.080 0.053l0.347 0.72 0.773 0.107c0.053 0 0.080 0.027 0.080 0.053-0.027 0-0.053 0.053-0.080 0.080z" }), el("path", { fill: "#4a00e0", d: "M8.16 16.187l0.4-0.4-0.56-0.053-0.107-0.027-0.053-0.080-0.24-0.507v1.493l0.080 0.053 0.507 0.267-0.080-0.56-0.027-0.107 0.080-0.080zM8.853 15.787l-0.56 0.56 0.133 0.773c0 0.027 0 0.053 0 0.080s-0.027 0.027-0.053 0.027c-0.027 0-0.027 0-0.053-0.027l-0.693-0.373-0.693 0.373c-0.027 0-0.053 0.027-0.053 0.027-0.027 0-0.053 0-0.053-0.027s-0.027-0.053 0-0.080l0.133-0.773-0.56-0.56c-0.027-0.027-0.053-0.053-0.027-0.080s0.027-0.053 0.080-0.053l0.773-0.107 0.347-0.72c0.027-0.053 0.053-0.053 0.080-0.053s0.053 0.027 0.080 0.053l0.347 0.72 0.773 0.107c0.053 0 0.080 0.027 0.080 0.053s-0.027 0.053-0.080 0.080z" }), el("path", { fill: "#4a00e0", d: "M7.147 16.267l-0.027 0.107-0.080 0.56 0.507-0.267 0.080-0.053v-1.493l-0.24 0.507-0.053 0.080-0.133 0.027-0.533 0.080 0.4 0.4 0.080 0.053zM6.32 15.68c0-0.027 0.027-0.053 0.080-0.053l0.773-0.107 0.347-0.72c0.027-0.053 0.053-0.053 0.080-0.053s0.053 0.027 0.080 0.053l0.347 0.72 0.773 0.107c0.053 0 0.080 0.027 0.080 0.053s0 0.053-0.027 0.080l-0.56 0.56 0.133 0.773c0 0.027 0 0.053 0 0.080s-0.027 0.027-0.053 0.027c-0.027 0-0.027 0-0.053-0.027l-0.693-0.373-0.693 0.373c-0.027 0-0.053 0.027-0.053 0.027-0.027 0-0.053 0-0.053-0.027s-0.027-0.053 0-0.080l0.133-0.773-0.56-0.56c-0.080 0-0.080-0.053-0.080-0.080z" }), el("path", { fill: "#4a00e0", d: "M11.333 16.187l0.4-0.4-0.533-0.053-0.107-0.027-0.053-0.080-0.24-0.507v1.493l0.080 0.053 0.507 0.267-0.080-0.56-0.053-0.107 0.080-0.080zM12.053 15.787l-0.587 0.533 0.133 0.773c0 0.027 0 0.053 0 0.080s-0.027 0.027-0.053 0.027c-0.027 0-0.027 0-0.053-0.027l-0.693-0.373-0.693 0.373c-0.027 0-0.053 0.027-0.053 0.027-0.027 0-0.053 0-0.053-0.027s-0.027-0.053 0-0.080l0.133-0.773-0.56-0.56c-0.027-0.027-0.053-0.053-0.027-0.080s0.027-0.053 0.080-0.053l0.773-0.107 0.347-0.72c0.027-0.053 0.053-0.053 0.080-0.053s0.053 0.027 0.080 0.053l0.347 0.72 0.773 0.107c0.053 0 0.080 0.027 0.080 0.053-0.027 0.027-0.027 0.080-0.053 0.107z" }), el("path", { fill: "#4a00e0", d: "M10.32 16.267l-0.027 0.107-0.080 0.56 0.507-0.267 0.080-0.053v-1.493l-0.24 0.507-0.053 0.080-0.107 0.027-0.56 0.080 0.4 0.4 0.080 0.053zM9.493 15.68c0-0.027 0.027-0.053 0.080-0.053l0.773-0.107 0.347-0.72c0.027-0.053 0.053-0.053 0.080-0.053s0.053 0.027 0.080 0.053l0.347 0.72 0.773 0.107c0.053 0 0.080 0.027 0.080 0.053s0 0.053-0.027 0.080l-0.56 0.56 0.133 0.773c0 0.027 0 0.053 0 0.080s-0.027 0.027-0.053 0.027c-0.027 0-0.027 0-0.053-0.027l-0.693-0.373-0.693 0.373c-0.027 0-0.053 0.027-0.053 0.027-0.027 0-0.053 0-0.053-0.027s-0.027-0.053 0-0.080l0.133-0.773-0.56-0.56c-0.080 0-0.080-0.053-0.080-0.080z" }), el("path", { fill: "#4a00e0", d: "M14.4 16.187l0.4-0.4-0.56-0.053-0.107-0.027-0.053-0.080-0.24-0.507v1.493l0.080 0.053 0.507 0.267-0.080-0.56-0.027-0.107 0.080-0.080zM15.093 15.787l-0.56 0.56 0.133 0.773c0 0.027 0 0.053 0 0.080s-0.027 0.027-0.053 0.027c-0.027 0-0.027 0-0.053-0.027l-0.693-0.373-0.693 0.373c-0.027 0-0.053 0.027-0.053 0.027-0.027 0-0.053 0-0.053-0.027s-0.027-0.053 0-0.080l0.133-0.773-0.56-0.56c-0.027-0.027-0.053-0.053-0.027-0.080 0-0.027 0.027-0.053 0.080-0.053l0.773-0.107 0.347-0.72c0.027-0.053 0.053-0.053 0.080-0.053s0.053 0.027 0.080 0.053l0.347 0.72 0.773 0.107c0.053 0 0.080 0.027 0.080 0.053s-0.053 0.053-0.080 0.080z" }), el("path", { fill: "#4a00e0", d: "M13.36 16.267l-0.027 0.107-0.080 0.56 0.507-0.267 0.080-0.053v-1.493l-0.24 0.48-0.053 0.080-0.107 0.053-0.56 0.080 0.4 0.4 0.080 0.053zM12.56 15.68c0-0.027 0.027-0.053 0.080-0.053l0.773-0.107 0.347-0.72c0.027-0.053 0.053-0.053 0.080-0.053s0.053 0.027 0.080 0.053l0.347 0.72 0.773 0.107c0.053 0 0.080 0.027 0.080 0.053s0 0.053-0.027 0.080l-0.56 0.56 0.133 0.773c0 0.027 0 0.053 0 0.080s-0.027 0.027-0.053 0.027c-0.027 0-0.027 0-0.053-0.027l-0.693-0.373-0.693 0.373c-0.027 0-0.053 0.027-0.053 0.027-0.027 0-0.053 0-0.053-0.027s-0.027-0.053 0-0.080l0.133-0.773-0.56-0.56c-0.080 0-0.107-0.053-0.080-0.080z" }), el("path", { fill: "#4a00e0", d: "M17.493 16.187l0.4-0.4-0.56-0.053-0.107-0.027-0.053-0.080-0.24-0.507v1.493l0.080 0.053 0.507 0.267-0.080-0.56-0.027-0.107 0.080-0.080zM18.187 15.787l-0.56 0.56 0.133 0.773c0 0.027 0 0.053 0 0.080s-0.027 0.027-0.053 0.027c-0.027 0-0.027 0-0.053-0.027l-0.693-0.373-0.693 0.373c-0.027 0-0.053 0.027-0.053 0.027-0.027 0-0.053 0-0.053-0.027s-0.027-0.053 0-0.080l0.133-0.773-0.56-0.56c-0.027-0.027-0.053-0.053-0.027-0.080s0.027-0.053 0.080-0.053l0.773-0.107 0.347-0.72c0.027-0.053 0.053-0.053 0.080-0.053s0.053 0.027 0.080 0.053l0.347 0.72 0.773 0.107c0.053 0 0.080 0.027 0.080 0.053-0.027 0-0.027 0.053-0.080 0.080z" }), el("path", { fill: "#4a00e0", d: "M16.48 16.267l-0.027 0.107-0.080 0.56 0.507-0.267 0.080-0.053v-1.493l-0.24 0.507-0.053 0.080-0.133 0.027-0.533 0.080 0.4 0.4 0.080 0.053zM15.653 15.68c0-0.027 0.027-0.053 0.080-0.053l0.773-0.107 0.347-0.72c0.027-0.053 0.053-0.053 0.080-0.053s0.053 0.027 0.080 0.053l0.347 0.72 0.773 0.107c0.053 0 0.080 0.027 0.080 0.053s0 0.053-0.027 0.080l-0.56 0.56 0.133 0.773c0 0.027 0 0.053 0 0.080s-0.027 0.027-0.053 0.027c-0.027 0-0.027 0-0.053-0.027l-0.693-0.373-0.693 0.373c-0.027 0-0.053 0.027-0.053 0.027-0.027 0-0.053 0-0.053-0.027s-0.027-0.053 0-0.080l0.133-0.773-0.56-0.56c-0.080 0-0.080-0.053-0.080-0.080z" }), el("path", { fill: "none", stroke: "#4a00e0", linejoin: "miter", linecap: "butt", miterlimit: "10", width: "1.3333", d: "M18.8 25.733h-15.147v-21.867h25.227v14.293" }), el("path", { fill: "none", stroke: "#4a00e0", linejoin: "miter", linecap: "butt", miterlimit: "10", width: "1.3333", d: "M3.653 8.907h25.227" }), el("path", { fill: "none", stroke: "#4a00e0", linejoin: "miter", linecap: "butt", miterlimit: "10", width: "1.3333", d: "M6.187 6.4h1.68" }), el("path", { fill: "none", stroke: "#4a00e0", linejoin: "miter", linecap: "butt", miterlimit: "10", width: "1.3333", d: "M9.547 6.4h1.68" }), el("path", { fill: "#4a00e0", d: "M23.147 26.373c-2.613-0.133-4.613-2.347-4.48-4.96s2.347-4.613 4.933-4.48c2.613 0.133 4.613 2.347 4.48 4.933-0.107 2.613-2.32 4.613-4.933 4.507zM23.547 17.867c-2.080-0.107-3.867 1.52-3.947 3.6-0.107 2.080 1.493 3.867 3.6 3.947s3.867-1.52 3.947-3.6-1.52-3.84-3.6-3.947z" }), el("path", { fill: "#4a00e0", d: "M30.080 29.547c-0.133 0-0.24-0.053-0.32-0.16l-3.6-3.947c-0.187-0.187-0.16-0.507 0.027-0.667 0.187-0.187 0.507-0.16 0.667 0.027l3.6 3.947c0.187 0.187 0.16 0.48-0.027 0.667 0 0 0 0 0 0-0.107 0.080-0.213 0.133-0.347 0.133z" }), el("path", { fill: "#4a00e0", d: "M23.947 11.573h-17.040c-0.373 0-0.667 0.293-0.667 0.667s0.293 0.667 0.667 0.667h17.040c0.373 0 0.667-0.293 0.667-0.667s-0.293-0.667-0.667-0.667z" })), + "lottie": el("svg", { width: 20, height: 20, role: "img", viewBox: "0 0 120 120" }, el("rect", { x: "8.1", y: "11.8", fill: "none", stroke: "#4a00e0", strokeWidth: "10", miterlimit: "10", width: "102.9", height: "99.9" }), el("ellipse", { transform: "matrix(0.9666 -0.2562 0.2562 0.9666 -22.8642 11.8718)", fill: "none", stroke: "#4a00e0", strokeWidth: "10", miterlimit: "10", cx: "34.1", cy: "93.7", rx: "0.1", ry: "0" }), el("ellipse", { transform: "matrix(-0.9666 0.2562 -0.2562 -0.9666 174.7596 36.9626)", fill: "none", stroke: "#4a00e0", strokeWidth: "10", miterlimit: "10", cx: "85", cy: "29.9", rx: "0.1", ry: "0" }), el("path", { fill: "none", stroke: "#4a00e0", strokeWidth: "10", miterlimit: "10", d: "M84.4,29.7c0,0-18-4.9-23.4,32.2S34.1,93.7,34.1,93.7" })), + "accept": el("svg", { width: 20, height: 20, role: "img", viewBox: "0 0 1000 1000" }, el("path", { fill: "#4a00e0", d: "M424,127H41.5C-0.6,127-35,161.4-35,203.5v459c0,42.1,34.4,76.5,76.5,76.5h210.4v-38.3H41.5c-21,0-38.3-17.2-38.3-38.3v-459c0-21,17.2-38.3,38.3-38.3H424c21,0,38.3,17.2,38.3,38.3v224.7l38.3-38.3V203.5C500.5,161.4,466.1,127,424,127z" }), el("path", { fill: "#4a00e0", d: "M385.8,280h-306v-38.3h306V280z" }), el("path", { fill: "#4a00e0", d: "M385.8,356.5h-306v-38.3h306V356.5z" }), el("path", { fill: "#4a00e0", d: "M224,431.8H79.8v-38.3H224V431.8z" }), el("path", { fill: "#4a00e0", d: "M464.9,525.8c-7.4-7.4-19.4-7.4-26.7,0l-80.2,80.2l-40.1-40.1c-7.4-7.4-19.4-7.4-26.7,0c-7.4,7.4-7.4,19.4,0,26.7l53.5,53.5c7.4,7.4,19.4,7.4,26.7,0l93.6-93.6C472.4,545.2,472.4,533.2,464.9,525.8z" }), el("path", { fill: "#4a00e0", d: "M783.3,41.9H207.2C143.8,41.9,92,93.8,92,157.1v691.3c0,63.4,51.8,115.2,115.2,115.2h316.9v-57.7H207.2c-31.6,0-57.7-25.9-57.7-57.7V157.1c0-31.6,25.9-57.7,57.7-57.7h576.1c31.6,0,57.7,25.9,57.7,57.7v338.4l57.7-57.7V157.2C898.4,93.8,846.6,41.9,783.3,41.9z" }), el("path", { fill: "#4a00e0", d: "M725.7,272.4H264.8v-57.7h460.9V272.4z" }), el("path", { fill: "#4a00e0", d: "M725.7,387.7H264.8V330h460.9V387.7z" }), el("path", { fill: "#4a00e0", d: "M482,501H264.8v-57.7H482V501z" }), el("path", { fill: "#4a00e0", d: "M707.5,941.1c-124.1,0-225.2-101-225.2-225.2s101-225,225.2-225s225.2,101,225.2,225.2S831.6,941.1,707.5,941.1z M707.5,531.5c-101.7,0-184.6,82.8-184.6,184.6s82.8,184.6,184.6,184.6S892.1,817.9,892.1,716S809.2,531.5,707.5,531.5z" }), el("path", { fill: "#4a00e0", d: "M844.9,642.6c-11.1-11.1-29.2-11.1-40.2,0L683.8,763.4l-60.3-60.3c-11.1-11.1-29.2-11.1-40.2,0c-11.1,11.1-11.1,29.2,0,40.2l80.6,80.6c11.1,11.1,29.2,11.1,40.2,0l140.9-141C856.1,671.8,856.1,653.7,844.9,642.6z" })), + "checkbox": el("svg", { width: 20, height: 20, role: "img", viewBox: "0 0 1000 1000" }, el("path", { fill: "#4a00e0", d: "M833.3,44H166.5C97.4,44,41.5,100,41.5,169.1V836c0,69.2,56,125.1,125.1,125.1h666.9c69.2,0,125.1-56,125.1-125.1V169.1C958.4,100,902.5,44,833.3,44z M875.1,835.8c0,23-18.7,41.7-41.7,41.7H166.5c-23,0-41.7-18.7-41.7-41.7V169.1c0-23,18.7-41.7,41.7-41.7h666.9c23,0,41.7,18.7,41.7,41.7v666.8H875.1z" }), el("path", { fill: "#4a00e0", d: "M691.5,369.9c-16.3-16.3-42.6-16.3-58.9,0L455.8,546.7l-88.4-88.4c-16.3-16.3-42.6-16.3-58.9,0c-16.3,16.3-16.3,42.6,0,58.9l117.9,117.9c16.3,16.3,42.6,16.3,58.9,0l206.3-206.3C707.9,412.5,707.9,386,691.5,369.9z" })), + "datepicker": el("svg", { width: 20, height: 20, role: "img", viewBox: "0 0 1000 1000" }, el("path", { fill: "#4a00e0", d: "M882.2,127.7H758V70.4c0-15.8-12.9-28.7-28.7-28.7s-28.7,12.9-28.7,28.7v57.3H528.4V70.4c0-15.8-12.9-28.7-28.7-28.7c-15.8,0-28.7,12.9-28.7,28.7v57.3H298.8V70.4c0-15.8-12.9-28.7-28.7-28.7s-28.7,12.9-28.7,28.7v57.3H117.6c-42.2,0-76.5,34.3-76.5,76.5v678.7c0,42.2,34.3,76.5,76.5,76.5h764.7c42.2,0,76.5-34.3,76.5-76.5V204.2C958.8,161.9,924.6,127.7,882.2,127.7z M901.5,882.6c0,10.6-8.6,19.1-19.1,19.1H117.6c-10.6,0-19.1-8.6-19.1-19.1V204c0-10.6,8.6-19.1,19.1-19.1h124.3v57.3c0,15.8,12.9,28.7,28.7,28.7s28.7-12.9,28.7-28.7V185h172.2v57.3c0,15.8,12.9,28.7,28.7,28.7c15.8,0,28.7-12.9,28.7-28.7V185h172.2v57.3c0,15.8,12.9,28.7,28.7,28.7s28.7-12.9,28.7-28.7V185h124.3c10.6,0,19.1,8.6,19.1,19.1v678.7L901.5,882.6L901.5,882.6z" }), el("path", { fill: "#4a00e0", d: "M882.4,963.8H117.6c-44.7,0-81-36.3-81-81V204.2c0-44.7,36.3-81,81-81h119.2V70.4c0-18.3,14.9-33.2,33.2-33.2s33.2,14.9,33.2,33.2v52.8h163.1V70.4c0-18.3,14.9-33.2,33.2-33.2c18.3,0,33.2,14.9,33.2,33.2v52.8H696V70.4c0-18.3,14.9-33.2,33.2-33.2c18.3,0,33.2,14.9,33.2,33.2v52.8h119.7c44.7,0,81.1,36.3,81.1,81v678.7C963.3,927.5,927,963.8,882.4,963.8z M117.6,132.2c-39.7,0-72,32.3-72,72v678.7c0,39.7,32.3,72,72,72h764.7c39.7,0,72-32.3,72-72V204.2c0-39.7-32.3-72-72.1-72H753.5V70.4c0-13.4-10.8-24.2-24.2-24.2S705.1,57,705.1,70.4v61.8H523.9V70.4c0-13.4-10.8-24.2-24.2-24.2S475.5,57,475.5,70.4v61.8H294.3V70.4c0-13.4-10.8-24.2-24.2-24.2S245.9,57,245.9,70.4v61.8L117.6,132.2L117.6,132.2z M882.5,906.2H117.6c-13,0-23.6-10.6-23.6-23.6V204c0-13,10.6-23.6,23.6-23.6h128.8v61.8c0,13.4,10.8,24.2,24.2,24.2s24.2-10.8,24.2-24.2v-61.8H476v61.8c0,13.4,10.8,24.2,24.2,24.2c13.4,0,24.2-10.8,24.2-24.2v-61.8h181.2v61.8c0,13.4,10.8,24.2,24.2,24.2s24.2-10.8,24.2-24.2v-61.8h128.8c13,0,23.6,10.6,23.6,23.6v683.2h-0.8C903.5,898,893.9,906.2,882.5,906.2z M117.6,189.5c-8,0-14.5,6.6-14.5,14.5v678.6c0,8,6.6,14.5,14.5,14.5h764.8c8,0,14.5-6.6,14.5-14.5h0.3V204c0-8-6.6-14.5-14.5-14.5H763v52.8c0,18.3-14.9,33.2-33.2,33.2s-33.2-14.9-33.2-33.2v-52.8H533.4v52.8c0,18.3-14.9,33.2-33.2,33.2S467,260.6,467,242.3v-52.8H303.8v52.8c0,18.3-14.9,33.2-33.2,33.2s-33.2-14.9-33.2-33.2v-52.8L117.6,189.5L117.6,189.5z" })), + "email": el("svg", { width: 20, height: 20, role: "img", viewBox: "0 0 32 32" }, el("path", { fill: "#4a00e0", d: "M30.534 25.334h-29.149v-20.192h29.158v20.189h-0.010zM3.626 23.088h24.669v-15.699h-24.669v15.699z" }), el("path", { fill: "#4a00e0", d: "M15.962 17.76l-14.128-10.595 1.35-1.802 12.778 9.594 12.781-9.594 1.35 1.802z" })), + "hidden": el("svg", { width: 20, height: 20, role: "img", viewBox: "0 0 32 32" }, el("path", { fill: "#4a00e0", d: "M7.29 21.67l1.488-1.498c-1.818-1.421-3.446-3.072-4.854-4.909 1.45-1.907 6.384-7.782 12.074-7.782 1.504 0.016 2.986 0.374 4.336 1.040l1.542-1.552c-1.798-1.002-3.818-1.542-5.878-1.574-7.843 0-13.971 8.893-14.227 9.28l-0.349 0.589 0.397 0.582c1.542 2.189 3.382 4.15 5.472 5.824z" }), el("path", { fill: "#4a00e0", d: "M30.227 14.682c-1.482-2.070-3.235-3.933-5.206-5.539l-1.488 1.488c1.69 1.363 3.213 2.918 4.544 4.634-1.45 1.907-6.39 7.782-12.077 7.782-1.366-0.022-2.717-0.333-3.958-0.906l-1.574 1.574c1.706 0.899 3.6 1.382 5.533 1.418 7.843 0 13.971-8.893 14.227-9.28l0.355-0.582-0.355-0.589z" }), el("path", { fill: "#4a00e0", d: "M5.571 22.72l17.891-17.891c0.41-0.41 1.069-0.41 1.472 0v0c0.41 0.41 0.41 1.069 0 1.472l-17.888 17.891c-0.41 0.41-1.069 0.41-1.472 0v0c-0.413-0.403-0.413-1.069-0.003-1.472z" }), el("path", { fill: "#4a00e0", d: "M19.264 11.232l-7.296 7.293c1.728 2.298 4.989 2.768 7.293 1.040s2.768-4.989 1.040-7.293c-0.298-0.39-0.646-0.746-1.037-1.040v0z" }), el("path", { fill: "#4a00e0", d: "M12.406 19.027l8.285-6.138c-1.366-2.531-4.525-3.475-7.059-2.102s-3.475 4.525-2.102 7.059c0.234 0.429 0.531 0.826 0.877 1.181v0z" })), + "name": el("svg", { width: 20, height: 20, role: "img", viewBox: "0 0 1000 1000" }, el("path", { fill: "#4a00e0", d: "M962.4,154.4v512.4H897V154.4H962.4z" }), el("path", { fill: "#4a00e0", d: "M962.4,209.2H38.6v-65.4h923.8V209.2z" }), el("path", { fill: "#4a00e0", d: "M962.4,716.3H38.6v-65.4h923.8V716.3z" }), el("path", { fill: "#4a00e0", d: "M103.8,154.5v512.3H38.6V154.5H103.8z" }), el("path", { fill: "#4a00e0", d: "M287.1,292.3v277.1h-65.4V292.3H287.1z" }), el("path", { fill: "#4a00e0", d: "M369.9,307H135.9v-65.4h233.9V307z" }), el("path", { fill: "#4a00e0", d: "M369.9,617.8H135.9v-65.4h233.9V617.8z" })), + "phone": el("svg", { width: 20, height: 20, role: "img", viewBox: "0 0 1000 1000" }, el("path", { fill: "#4a00e0", d: "M713.3,960.4c-35.6-0.2-71.1-4.8-105.8-13.3C488,918.3,365.1,845.2,261.3,741.3s-177-227-205.8-346.2c-30.3-125.6-8.8-232.9,60.8-302.4l19.8-19.8c37.5-37.5,98.3-37.5,135.9,0L386.1,187c37.5,37.5,37.5,98.3,0,135.9l-67.5,67.5c32.4,56.8,76.2,113.6,128.2,165.4c52,51.8,108.8,95.9,165.4,128.2l67.5-67.5c37.5-37.5,98.3-37.5,135.9,0l0,0l114.1,114.1c37.5,37.5,37.5,98.3,0,135.9l-19.8,19.6C861,935.1,793.1,960.4,713.3,960.4z M204.3,112.8c-7.4,0-14.5,2.9-19.6,8.2l-19.8,19.8c-52,52-67.3,136.6-42.9,238c25.9,107.3,92.6,219,187.7,314s206.8,161.8,314,187.7c101.4,24.4,185.8,9.3,238-42.9l19.8-19.8c10.9-10.9,10.9-28.4,0-39.1L767.4,664.7c-10.9-10.9-28.4-10.9-39.1,0L643,750.1c-10.5,10.5-26.7,13-39.8,6.3c-70.1-36.2-140.6-89-204.3-152.4S282.6,469.8,246.4,399.8c-6.9-13.1-4.4-29.3,6.1-39.8l85.4-85.4c10.9-10.9,10.9-28.4,0-39.1L223.9,121C218.6,115.9,211.5,112.8,204.3,112.8z" }), el("path", { fill: "#4a00e0", d: "M749.9,549.6c-18.9,0-34.1-15.2-34.1-34.1l0,0c-0.2-124.8-101.4-226-226.2-226.2c-18.9,0-34.1-15.2-34.1-34.1s15.2-34.1,34.1-34.1l0,0c162.4,0,294.4,132.1,294.4,294.4C784,534.4,768.7,549.6,749.9,549.6L749.9,549.6z" }), el("path", { fill: "#4a00e0", d: "M894.3,549.6c-18.9,0-34.1-15.2-34.1-34.1l0,0c0-204.3-166.4-370.4-370.4-370.4c-18.9,0-34.1-15.2-34.1-34.1s15.2-34.1,34.1-34.1l0,0c242,0,438.9,196.8,438.9,438.9C928.4,534.4,913.2,549.6,894.3,549.6L894.3,549.6z" })), + "radio": el("svg", { width: 20, height: 20, role: "img", viewBox: "0 0 32 32" }, el("path", { fill: "#4a00e0", d: "M7.446 4.931c-1.651 0-2.95 1.299-2.95 2.95s1.299 2.95 2.95 2.95 2.95-1.299 2.95-2.95-1.299-2.95-2.95-2.95v0zM7.446 1.981c-3.245 0-5.901 2.656-5.901 5.901s2.656 5.901 5.901 5.901 5.901-2.656 5.901-5.901-2.656-5.901-5.901-5.901v0zM7.446 12.605c-2.595 0-4.723-2.122-4.723-4.723s2.125-4.72 4.723-4.72 4.723 2.122 4.723 4.723-2.128 4.72-4.723 4.72v0z" }), el("path", { fill: "#4a00e0", d: "M12.832 21.418c0 2.974-2.411 5.386-5.386 5.386s-5.386-2.411-5.386-5.386c0-2.974 2.411-5.386 5.386-5.386s5.386 2.411 5.386 5.386z" }), el("path", { fill: "#4a00e0", d: "M7.446 27.462c-3.334 0-6.045-2.71-6.045-6.045s2.71-6.045 6.045-6.045 6.045 2.71 6.045 6.045-2.71 6.045-6.045 6.045zM7.446 16.694c-2.605 0-4.723 2.118-4.723 4.723s2.118 4.723 4.723 4.723 4.723-2.118 4.723-4.723-2.118-4.723-4.723-4.723z" }), el("path", { fill: "#4a00e0", d: "M14.694 5.37h15.933v1.229h-15.933v-1.229z" }), el("path", { fill: "#4a00e0", d: "M14.694 9.053h9.664v1.229h-9.664v-1.229z" }), el("path", { fill: "#4a00e0", d: "M14.694 19.347h15.933v1.229h-15.933v-1.229z" }), el("path", { fill: "#4a00e0", d: "M14.694 22.8h9.664v1.229h-9.664v-1.229z" })), + "select": el("svg", { width: 20, height: 20, role: "img", viewBox: "0 0 1000 1000" }, el("path", { fill: "#4a00e0", d: "M775.8,509.4c-13.1,0-25.5,3.1-36.5,8.6c-11.4-32-41.9-55-77.8-55c-22.2,0-42.3,8.7-57.1,23.1c-14.9-14.2-34.9-23.1-57.1-23.1c-11.2,0-21.8,2.3-31.6,6.3V323.4c0-45.4-37-82.5-82.5-82.5s-82.5,37-82.5,82.5v174v19.2v42.6c-37.2,1.9-92.3,14.2-92.3,91.9c0,58.2,69.5,185.2,140.5,201.3C445,916.2,520,957.7,604.4,957.7c142.4,0,253.9-106.9,253.9-243.6c0-14-11.4-25.5-25.5-25.5c-14,0-25.5,11.4-25.5,25.5c0,108-89.1,192.7-203,192.7c-70.4,0-132.5-36-168.8-90.7c-0.3-0.7-0.9-1.4-1.2-2.1c-20.6-31.8-32.9-69.5-32.9-110.3v-187v-19.2v-174c0-17.5,14.2-31.6,31.6-31.6s31.6,14.2,31.6,31.6v221.9v84.7v4c0,14,11.4,25.5,25.5,25.5c14,0,25.5-11.4,25.5-25.5v-4v-84.7c0-17.5,14.2-31.6,31.6-31.6s31.6,14.2,31.6,31.5v0.2v88.8c0,1.4,0.2,2.3,0.3,3c1.6,12.6,12.1,22.4,25.2,22.4c13.1,0,23.9-10,25.2-22.9c0.2-0.5,0.2-1,0.2-1.7c0-0.3,0-0.5,0-0.9v-88.8v-0.2c0.2-17.3,14.2-31.5,31.6-31.5s31.8,14.2,31.8,31.6v45.8c0,0.2,0,0.5,0,0.7v42.5c0,1.4,0.2,2.6,0.3,3.5c1.7,12.4,12.2,21.8,25.2,21.8c13.1,0,23.6-9.8,25.2-22.5c0.2-0.7,0.2-1.4,0.2-2.1c0-0.2,0-0.5,0-0.7v-42.8c0.2-17.3,14.3-31.3,31.6-31.3c17.5,0,31.8,14.2,31.8,31.6V613c0,14,11.4,25.5,25.5,25.5c14,0,25.5-11.4,25.5-25.5v-21.1C858.4,546.4,821.4,509.4,775.8,509.4z M309.3,651.4c0-25.7,4.2-38.1,41.4-40.9v93.7c0,18,1.9,35.6,5.4,52.6C331.1,723.1,309.3,679.2,309.3,651.4z" }), el("path", { fill: "#4a00e0", d: "M528.7,385.5c-9.6,10.1-9.3,26.2,1,36c4.9,4.7,11.2,7,17.5,7c6.8,0,13.5-2.6,18.5-7.9c28.7-30.2,45.8-69.9,48.4-111.5c3-47.5-12.8-93.1-44.2-128.8s-75-56.8-122.5-59.8c-97.9-5.9-182.4,68.8-188.5,166.7c-3,47.5,12.9,93.1,44.4,128.8c9.3,10.5,25.3,11.5,35.8,2.3s11.5-25.3,2.3-35.8c-22.5-25.5-33.7-58.2-31.6-92.1c4.2-69.9,64.7-123.4,134.5-119.2c33.9,2.1,65,17.3,87.4,42.6c22.5,25.5,33.7,58,31.6,92.1C561.6,335.7,549.2,364,528.7,385.5z" }), el("path", { fill: "#4a00e0", d: "M625.9,426.9c12.4,6.6,27.8,1.9,34.4-10.7c16.8-31.8,26.6-66.4,28.8-102.7C697.7,174.2,591.3,54,452,45.4c-67.4-4.2-132.5,18.3-183.1,63.1s-80.7,106.6-84.9,174c-5.6,90.7,38.3,177.7,114.3,227.5c4.4,2.8,9.1,4.2,14,4.2c8.2,0,16.4-4,21.3-11.5c7.7-11.7,4.4-27.6-7.3-35.1c-60.8-39.7-95.8-109.4-91.4-181.7c3.3-53.8,27.4-103.3,67.8-139.1S395,93.1,448.9,96.5c111.3,6.8,196.2,102.9,189.4,214.1c-1.7,29.2-9.6,56.8-23.1,82.1C608.7,404.9,613.5,420.4,625.9,426.9z" })), + "textarea": el("svg", { width: 20, height: 20, role: "img", viewBox: "0 0 32 32" }, el("path", { fill: "#4a00e0", d: "M11.136 21.28h-1.216v-18.24h1.216v-1.824h-4.864v1.824h1.216v18.24h-1.216v1.824h4.864z" }), el("path", { fill: "#4a00e0", d: "M11.763 4.864v2.432h16.397v20.672h-24.32v-20.672h1.786v-2.432h-4.218v25.536h29.184v-25.536z" })), + "toggle": el("svg", { width: 20, height: 20, role: "img", viewBox: "0 0 1000 1000" }, el("path", { fill: "#4a00e0", d: "M661,830.7H343.8c-168.5,0-305.6-137.1-305.6-305.6c0-168.5,137.1-305.6,305.6-305.6H661c168.5,0,305.6,137.1,305.6,305.6C966.6,693.6,829.5,830.7,661,830.7z M343.8,275.5c-137.6,0-249.6,112-249.6,249.6c0,137.6,112,249.6,249.6,249.6H661c137.6,0,249.6-112,249.6-249.6c0-137.6-112-249.6-249.6-249.6H343.8z" }), el("path", { fill: "#4a00e0", d: "M660.8,672c-81,0-146.9-65.9-146.9-146.9c0-81,65.9-146.9,146.9-146.9s146.9,65.9,146.9,146.9C807.7,606.1,741.8,672,660.8,672z M660.8,434.2c-50.1,0-90.9,40.8-90.9,90.9s40.8,90.9,90.9,90.9s90.9-40.8,90.9-90.9S711,434.2,660.8,434.2z" })), + "url": el("svg", { width: 20, height: 20, role: "img", viewBox: "0 0 1000 1000" }, el("path", { fill: "#4a00e0", d: "M681.2,311.5c-15-15-37.7-15-52.8,0L312.3,627.7c-15,15-15,37.7,0,52.8c15,15,37.7,15,52.8,0l316.2-316.2C696.2,349.2,696.2,326.6,681.2,311.5z" }), el("path", { fill: "#4a00e0", d: "M338.6,699.5c-11.8,0-23.1-4.8-31.9-13.6c-8.7-8.7-13.6-20.1-13.6-31.9s4.8-23.1,13.6-31.9L622.9,306c8.7-8.7,20.1-13.6,31.9-13.6c11.8,0,23.1,4.8,31.9,13.6s13.6,20.1,13.6,31.9c0,11.8-4.8,23.1-13.6,31.9L370.5,685.9C361.8,694.7,350.5,699.5,338.6,699.5z M654.8,308c-7.7,0-15.1,3.2-20.9,9L317.8,633.2c-12.1,12.1-12.1,29.7,0,41.8c5.8,5.8,13.2,9,20.9,9c7.7,0,15.1-3.2,20.9-9l316.2-316.2c12.1-12.1,12.1-29.7,0-41.8C669.9,311.2,662.5,308,654.8,308z" }), el("path", { fill: "#4a00e0", d: "M365,891l131.7-131.7c52.8-52.8,67.8-131.7,41.4-199.5l-63.9,63.9c0,30.1-7.6,60.2-33.8,86.6L308.8,842c-45.1,45.1-116.6,45.1-158.1,0c-45.1-45.1-45.1-116.6,0-158.1l131.7-131.7c22.7-22.7,56.5-33.8,86.6-33.8l63.9-63.9c-67.8-26.4-146.7-15-199.5,41.4L101.6,627.7c-71.5,71.5-71.5,191.9,0,263.4C173.2,966.3,293.5,966.3,365,891z" }), el("path", { fill: "#4a00e0", d: "M233.3,955.2c-52.5,0-101.2-20.9-137.3-58.8c-74.3-74.4-74.3-200,0.1-274.3l131.6-131.6c34.6-37,82.1-57.3,133.9-57.3c25.1,0,50.1,4.7,74,14.1l11.1,4.3l-74.6,74.6H369c-30.6,0-61.6,12.1-81.1,31.5L156,689.6c-19.6,18-30.7,42.8-31.3,69.7c-0.6,28.3,10.9,56.4,31.6,77.1l0.2,0.2c18.5,20.2,44.1,31.3,71.9,31.3c28,0,54.6-11.2,74.9-31.6L435,704.8c21.5-21.7,31.5-47.4,31.5-81.1v-3.2l74.6-74.6l4.3,11.1c28,72,11.1,153.6-43.2,207.8L370.6,896.5C334.5,934.4,285.8,955.2,233.3,955.2z M361.6,448.8c-47.4,0-91,18.6-122.6,52.5l-0.2,0.2L107.1,633.2c-68.4,68.4-68.4,184,0,252.4l0.1,0.1c33.1,34.8,77.9,54,126.1,54s93-19.2,126.1-54l0.1-0.1l131.7-131.7c47-47,63.6-116.5,43.7-179.8L482,627c-0.7,36-12.5,65-36,88.8L314.3,847.5c-23.3,23.3-53.8,36.1-85.9,36.1c-32.2,0-61.7-12.9-83.3-36.2c-23.6-23.6-36.7-55.8-36-88.3c0.7-31.2,13.5-59.9,36.2-80.8l131.6-131.6c21.9-21.9,54.9-35.2,88.8-36l52.9-52.9C400,451.8,380.9,448.8,361.6,448.8z" }), el("path", { fill: "#4a00e0", d: "M549.5,285.1l131.7-131.7c45.1-45.1,116.6-45.1,158.1,0c41.4,45.1,45.1,116.6,0,158.1L707.6,443.2C684.9,465.9,651.1,477,621,477l-63.9,63.9c67.8,26.4,146.7,11.3,199.5-41.4l131.7-131.7c71.5-71.5,71.5-191.9,0-263.4s-191.9-71.5-263.4,0l-128,128c-52.8,52.8-67.8,131.7-41.4,199.5l63.9-63.9C515.5,337.9,526.8,307.8,549.5,285.1z" }), el("path", { fill: "#4a00e0", d: "M625.1,561.4c-24.4,0-48.2-4.5-70.8-13.3l-11.1-4.3l74.6-74.6h3.2c30.6,0,61.6-12.1,81.1-31.5L834,305.8c19.8-18.1,30.4-43.6,29.9-71.8c-0.4-27.3-11.5-54.7-30.4-75.3c-18.5-20.2-44.1-31.3-71.9-31.3c-28,0-54.6,11.2-74.9,31.6L555,290.6c-21.3,21.3-31.4,49.1-27.9,76.4l0.5,3.8l-75,75l-4.3-11.1c-28-72-11.1-153.6,43.2-207.8l128-128C655.5,62.8,704.2,43,756.6,43s101.1,19.9,137.2,55.9c74.4,74.4,74.4,200,0,274.4L762.1,505C725.7,541.3,677.1,561.4,625.1,561.4zM571.3,537.6c17.3,5.4,35.4,8.2,53.7,8.2c47.8,0,92.6-18.4,126.1-51.9l131.7-131.7c68.4-68.4,68.4-184,0-252.4c-33.1-33.1-77.9-51.4-126.2-51.4c-48.3,0-93.1,18.2-126.2,51.4l-128,128c-47,47-63.6,116.5-43.7,179.8l52.5-52.5c-2.8-30.8,9-61.8,32.7-85.5l131.7-131.7c23.3-23.3,53.8-36.1,85.9-36.1c32.2,0,61.8,12.9,83.4,36.4c21.4,23.3,34,54.5,34.5,85.6c0.5,32.6-11.8,62.2-34.9,83.4L713.1,448.7c-21.9,21.9-54.9,35.2-88.8,36L571.3,537.6z" })), + "form1": el("svg", { width: 20, height: 20, role: "img", viewBox: "0 0 58 58" }, el("path", { fill: "#4a00e0", d: "M41.5,2.1H7.8C4,2.1,1,5.2,1,8.9v40.5c0,3.7,3,6.8,6.8,6.8h18.6v-3.4H7.8c-1.9,0-3.4-1.5-3.4-3.4V8.9c0-1.9,1.5-3.4,3.4-3.4h33.8c1.9,0,3.4,1.5,3.4,3.4v19.8l3.4-3.4V8.9C48.3,5.2,45.2,2.1,41.5,2.1z" }), el("path", { fill: "#4a00e0", d: "M38.1,15.6h-27v-3.4h27V15.6z" }), el("path", { fill: "#4a00e0", d: "M38.1,23h-27v-3.4h27V23z" }), el("path", { d: "M35.2,29.6H13.5v-2.7h21.7V29.6z" }), el("path", { d: "M35.2,35.4H13.5v-2.7h21.7V35.4z" }), el("path", { d: "M35.2,27.8v6.3h-2.7v-6.3H35.2z" }), el("path", { d: "M16.2,27.9v6.3h-2.7v-6.3H16.2z" }), el("path", { d: "M43.4,31.9c-0.7,0.4-1.2,1-1.4,1.8c-0.9-0.3-1.9-0.1-2.7,0.3c-0.7,0.4-1.2,1-1.4,1.8c-0.9-0.3-1.9-0.1-2.7,0.3c-0.4,0.4-0.8,0.7-1.1,1.3L31,34c-1.1-1.3-3-1.5-4.4-0.7c-0.8,0.6-1.4,1.4-1.5,2.4c-0.1,1,0.1,2,0.8,2.8l4,4.5c-0.7,0.3-1.2,0.6-1.8,1.2c-0.4,0.5-0.9,1.2-1,1.9c0,0.3,0.1,0.6,0.3,0.9l5.8,6.5c4.3,4.8,11.6,5.5,16.5,1.6c0.2-0.1,0.3-0.2,0.4-0.4c0.1-0.1,0.3-0.2,0.3-0.3c5-4.7,5.2-12.9,0.4-18.3l-3-3.4C46.7,31.4,44.8,31.1,43.4,31.9z M49.1,37.5c4,4.5,3.8,11.2-0.3,15.2c-0.3,0.2-0.4,0.4-0.7,0.6c-3.8,3.1-9.9,2.4-13.3-1.4l-5.3-6c0-0.2,0.1-0.2,0.2-0.3c0.3-0.3,0.7-0.5,1.3-0.6c0.5,0,0.9,0.2,1.2,0.6l4.1,4.6c0.4,0.5,1.1,0.5,1.6,0.1s0.5-1.1,0.1-1.6l-4.1-4.6l-1.1-1.3l-5.2-5.9c-0.2-0.3-0.4-0.6-0.3-1c0-0.3,0.3-0.5,0.5-0.8c0.4-0.2,1.1-0.1,1.5,0.3l5.2,5.8l1.5,1.7c0.4,0.5,1.1,0.5,1.6,0.1c0.5-0.4,0.5-1.1,0.1-1.6l-1.5-1.7c-0.2-0.3-0.4-0.6-0.3-1c0-0.3,0.2-0.6,0.5-0.8c0.5-0.3,1.1-0.1,1.5,0.3l0.7,0.8l0.7,0.8c0.4,0.5,1.1,0.5,1.6,0.1c0.5-0.4,0.5-1.1,0.1-1.6l-0.7-0.8c-0.2-0.3-0.4-0.6-0.3-1c0-0.3,0.2-0.6,0.5-0.8c0.5-0.3,1.1-0.1,1.5,0.3l0.7,0.8l0.7,0.8c0.4,0.5,1.1,0.5,1.6,0.1c0.5-0.4,0.5-1.1,0.1-1.6l-0.7-0.8c-0.2-0.3-0.4-0.6-0.3-1c0-0.3,0.2-0.6,0.5-0.8l0,0c0.5-0.3,1.1-0.1,1.5,0.3L49.1,37.5L49.1,37.5z" })), + "form2": el("svg", { width: 20, height: 20, role: "img", viewBox: "0 0 58 58" }, el("path", { fill: "#4a00e0", d: "M44.4,5.6H10.9c-4.1,0-7.4,3.3-7.4,7.4v33.5c0,4.1,3.3,7.4,7.4,7.4h15.4l3.7-1.9l-3.7-1.9H10.9c-2.1,0-3.7-1.7-3.7-3.7V13.1c0-2.1,1.7-3.7,3.7-3.7h33.5c2.1,0,3.7,1.7,3.7,3.7v30l0.1-0.1c0.4-2.3,1.7-4.4,3.6-5.7V13.1C51.9,9,48.5,5.6,44.4,5.6z" }), el("path", { fill: "#4a00e0", d: "M14.7,19.6h26.1v-3.7H14.7V19.6z" }), el("path", { fill: "#4a00e0", d: "M14.7,27h26.1v-3.7H14.7V27z" }), el("path", { d: "M14.7,34.5h26.1v-3.7H14.7V34.5z" }), el("path", { d: "M56.2,45l0-3.7c0-1-0.4-2-1.1-2.6c-0.7-0.7-1.6-1.1-2.6-1.1l-22.6,0.2c-1,0-4.6,0.5-5.3,1.1l-7.1,4.6l7.2,4.4c0,0,4.2,1,5.3,1l22.6-0.2C54.5,48.7,56.2,47,56.2,45z M29.9,47.1c-0.3,0-1.2-0.2-2.2-0.4l-0.1-6.8c0.8-0.1,1.7-0.2,2.2-0.2l17-0.2l0.1,7.4L29.9,47.1z" })), + "form3": el("svg", { width: 20, height: 20, role: "img", viewBox: "0 0 58 58" }, el("path", { fill: "#4a00e0", d: "M41.5,46.1h-27v-3.4h27V46.1z" }), el("path", { fill: "#4a00e0", d: "M20.7,26.3l10.1,10.1l21.2-21.2L41.8,5.1L20.7,26.3z M44.2,12.8c0.7,0.7,0.7,1.8,0,2.5L32,27.6c-0.3,0.4-0.8,0.5-1.3,0.5c-0.5,0-0.9-0.2-1.3-0.5c-0.7-0.7-0.7-1.8,0-2.5l12.3-12.3C42.4,12.1,43.5,12.1,44.2,12.8z" }), el("path", { fill: "#4a00e0", d: "M56,5.8l-4.8-4.8c-1.4-1.4-3.9-1.4-5.3,0l-1.6,1.6l10.1,10.1l1.5-1.5C57.4,9.7,57.4,7.3,56,5.8z" }), el("path", { d: "M46.9,56.3H4.6c-1,0-1.8-0.8-1.8-1.8V9.7c0-1,0.8-1.8,1.8-1.8H33c1,0,1.8,0.8,1.8,1.8c0,1-0.8,1.8-1.8,1.8H6.5v41.1h40.4c1.4,0,2.6-1.2,2.6-2.6V26.9c0-1,0.8-1.8,1.8-1.8c1,0,1.8,0.8,1.8,1.8V50C53.2,53.5,50.4,56.3,46.9,56.3z" })) }; /* harmony default export */ __webpack_exports__["a"] = (UAGB_Block_Icons); @@ -209,7 +228,7 @@ var UAGB_Block_Icons = { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__UAGBIcon__ = __webpack_require__(/*! ./UAGBIcon */ 9); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__UAGBIcon___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__UAGBIcon__); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__parseIcon__ = __webpack_require__(/*! ./parseIcon */ 417); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__parseIcon__ = __webpack_require__(/*! ./parseIcon */ 526); /** * Set inline CSS class. * @param {object} props - The block object. @@ -221,7 +240,7 @@ var UAGB_Block_Icons = { function renderSVG(svg) { - svg = __WEBPACK_IMPORTED_MODULE_1__parseIcon__["a" /* default */](svg); + svg = Object(__WEBPACK_IMPORTED_MODULE_1__parseIcon__["a" /* default */])(svg); var fontAwesome = __WEBPACK_IMPORTED_MODULE_0__UAGBIcon___default.a[svg]; @@ -243,10 +262,128 @@ function renderSVG(svg) { /***/ }), /* 3 */ +/*!******************************************************!*\ + !*** ./dist/blocks/uagb-controls/generateCSSUnit.js ***! + \******************************************************/ +/*! exports provided: default */ +/*! exports used: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +function generateCSSUnit(value, unit) { + + var css = ""; + + if (typeof value != "undefined") { + css += value + unit; + } + + return css; +} + +/* harmony default export */ __webpack_exports__["a"] = (generateCSSUnit); + +/***/ }), +/* 4 */ +/*!**************************************************!*\ + !*** ./dist/blocks/uagb-controls/generateCSS.js ***! + \**************************************************/ +/*! exports provided: default */ +/*! exports used: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +function generateCSS(selectors, id) { + var isResponsive = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false; + var responsiveType = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : ""; + + + var styling_css = ""; + var breakpoint = ""; + var gen_styling_css = ""; + var res_styling_css = ""; + + if (responsiveType == "tablet") { + breakpoint = uagb_blocks_info.tablet_breakpoint; + } else if (responsiveType == "mobile") { + breakpoint = uagb_blocks_info.mobile_breakpoint; + } + + for (var i in selectors) { + + var sel = selectors[i]; + var css = ""; + + for (var j in sel) { + + var checkString = true; + + if (typeof sel[j] === "string" && sel[j].length === 0) { + checkString = false; + } + + if ('font-family' === j && typeof sel[j] != "undefined" && 'Default' === sel[j]) { + continue; + } + + if (typeof sel[j] != "undefined" && checkString) { + if ('font-family' === j) { + css += j + ": " + "'" + sel[j] + "'" + ";"; + } else { + css += j + ": " + sel[j] + ";"; + } + } + } + + if (css.length !== 0) { + gen_styling_css += id; + gen_styling_css += i + "{"; + gen_styling_css += css; + gen_styling_css += "}"; + } + } + + if (isResponsive && typeof gen_styling_css !== "undefined" && gen_styling_css.length !== 0) { + res_styling_css += "@media only screen and (max-width: " + breakpoint + "px) {"; + res_styling_css += gen_styling_css; + res_styling_css += "}"; + } + + if (isResponsive) { + return res_styling_css; + } else { + return gen_styling_css; + } +} + +/* harmony default export */ __webpack_exports__["a"] = (generateCSS); + +/***/ }), +/* 5 */ +/*!*************************************!*\ + !*** ./node_modules/react/index.js ***! + \*************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +/* WEBPACK VAR INJECTION */(function(process) { + +if (process.env.NODE_ENV === 'production') { + module.exports = __webpack_require__(/*! ./cjs/react.production.min.js */ 341); +} else { + module.exports = __webpack_require__(/*! ./cjs/react.development.js */ 342); +} + +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(/*! ./../process/browser.js */ 6))) + +/***/ }), +/* 6 */ /*!*****************************************!*\ !*** ./node_modules/process/browser.js ***! \*****************************************/ -/*! no static exports found */ +/*! dynamic exports provided */ /*! all exports used */ /***/ (function(module, exports) { @@ -436,124 +573,6 @@ process.chdir = function (dir) { process.umask = function() { return 0; }; -/***/ }), -/* 4 */ -/*!******************************************************!*\ - !*** ./dist/blocks/uagb-controls/generateCSSUnit.js ***! - \******************************************************/ -/*! exports provided: default */ -/*! exports used: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -function generateCSSUnit(value, unit) { - - var css = ""; - - if (typeof value != "undefined") { - css += value + unit; - } - - return css; -} - -/* harmony default export */ __webpack_exports__["a"] = (generateCSSUnit); - -/***/ }), -/* 5 */ -/*!**************************************************!*\ - !*** ./dist/blocks/uagb-controls/generateCSS.js ***! - \**************************************************/ -/*! exports provided: default */ -/*! exports used: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -function generateCSS(selectors, id) { - var isResponsive = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false; - var responsiveType = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : ""; - - - var styling_css = ""; - var breakpoint = ""; - var gen_styling_css = ""; - var res_styling_css = ""; - - if (responsiveType == "tablet") { - breakpoint = uagb_blocks_info.tablet_breakpoint; - } else if (responsiveType == "mobile") { - breakpoint = uagb_blocks_info.mobile_breakpoint; - } - - for (var i in selectors) { - - var sel = selectors[i]; - var css = ""; - - for (var j in sel) { - - var checkString = true; - - if (typeof sel[j] === "string" && sel[j].length === 0) { - checkString = false; - } - - if ('font-family' === j && typeof sel[j] != "undefined" && 'Default' === sel[j]) { - continue; - } - - if (typeof sel[j] != "undefined" && checkString) { - if ('font-family' === j) { - css += j + ": " + "'" + sel[j] + "'" + ";"; - } else { - css += j + ": " + sel[j] + ";"; - } - } - } - - if (css.length !== 0) { - gen_styling_css += id; - gen_styling_css += i + "{"; - gen_styling_css += css; - gen_styling_css += "}"; - } - } - - if (isResponsive && typeof gen_styling_css !== "undefined" && gen_styling_css.length !== 0) { - res_styling_css += "@media only screen and (max-width: " + breakpoint + "px) {"; - res_styling_css += gen_styling_css; - res_styling_css += "}"; - } - - if (isResponsive) { - return res_styling_css; - } else { - return gen_styling_css; - } -} - -/* harmony default export */ __webpack_exports__["a"] = (generateCSS); - -/***/ }), -/* 6 */ -/*!*************************************!*\ - !*** ./node_modules/react/index.js ***! - \*************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -/* WEBPACK VAR INJECTION */(function(process) { - -if (process.env.NODE_ENV === 'production') { - module.exports = __webpack_require__(/*! ./cjs/react.production.min.js */ 260); -} else { - module.exports = __webpack_require__(/*! ./cjs/react.development.js */ 261); -} - -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(/*! ./../process/browser.js */ 3))) - /***/ }), /* 7 */ /*!********************************************!*\ @@ -564,10 +583,10 @@ if (process.env.NODE_ENV === 'production') { /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__font_typography__ = __webpack_require__(/*! ./font-typography */ 191); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__range_typography__ = __webpack_require__(/*! ./range-typography */ 281); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__inline_styles__ = __webpack_require__(/*! ./inline-styles */ 282); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__editor_scss__ = __webpack_require__(/*! ./editor.scss */ 283); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__font_typography__ = __webpack_require__(/*! ./font-typography */ 258); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__range_typography__ = __webpack_require__(/*! ./range-typography */ 376); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__inline_styles__ = __webpack_require__(/*! ./inline-styles */ 377); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__editor_scss__ = __webpack_require__(/*! ./editor.scss */ 378); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__editor_scss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3__editor_scss__); /* unused harmony reexport TypographyStyles */ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; @@ -628,11 +647,11 @@ var TypographyControl = function (_Component) { value: function onAdvancedControlClick() { var control = true; - var label = __("Hide Advanced"); + var label = __("Hide Advanced", 'ultimate-addons-for-gutenberg'); if (this.state !== null && this.state.showAdvancedControls === true) { control = false; - label = __("Advanced"); + label = __("Advanced", 'ultimate-addons-for-gutenberg'); } this.setState({ @@ -700,9 +719,9 @@ var TypographyControl = function (_Component) { sizeTabletLabel: this.props.lineHeightTablet.label, size: this.props.lineHeight, sizeLabel: this.props.lineHeight.label, - sizeMobileText: __("Line Height"), - sizeTabletText: __("Line Height"), - sizeText: __("Line Height"), + sizeMobileText: __("Line Height", 'ultimate-addons-for-gutenberg'), + sizeTabletText: __("Line Height", 'ultimate-addons-for-gutenberg'), + sizeText: __("Line Height", 'ultimate-addons-for-gutenberg'), steps: 0.1 }, this.props)); } @@ -717,9 +736,9 @@ var TypographyControl = function (_Component) { sizeTabletLabel: this.props.fontSizeTablet.label, size: this.props.fontSize, sizeLabel: this.props.fontSize.label, - sizeMobileText: !this.props.fontSizeLabel ? __("Font Size") : this.props.fontSizeLabel, - sizeTabletText: !this.props.fontSizeLabel ? __("Font Size") : this.props.fontSizeLabel, - sizeText: !this.props.fontSizeLabel ? __("Font Size") : this.props.fontSizeLabel, + sizeMobileText: !this.props.fontSizeLabel ? __("Font Size", 'ultimate-addons-for-gutenberg') : this.props.fontSizeLabel, + sizeTabletText: !this.props.fontSizeLabel ? __("Font Size", 'ultimate-addons-for-gutenberg') : this.props.fontSizeLabel, + sizeText: !this.props.fontSizeLabel ? __("Font Size", 'ultimate-addons-for-gutenberg') : this.props.fontSizeLabel, steps: 0.1 }, this.props)); } @@ -811,7 +830,7 @@ var TypographyControl = function (_Component) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_prop_types__ = __webpack_require__(/*! prop-types */ 15); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_prop_types__); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_webfontloader__ = __webpack_require__(/*! webfontloader */ 284); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_webfontloader__ = __webpack_require__(/*! webfontloader */ 379); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_webfontloader___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_webfontloader__); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; @@ -931,7 +950,7 @@ WebfontLoader.defaultProps = { /*!*************************************************!*\ !*** ./dist/blocks/uagb-controls/UAGBIcon.json ***! \*************************************************/ -/*! no static exports found */ +/*! dynamic exports provided */ /*! exports used: default */ /***/ (function(module, exports) { @@ -939,16 +958,45 @@ module.exports = {"500px":{"changes":["4.4","5.0.0"],"ligatures":[],"search":{"t /***/ }), /* 10 */ +/*!****************************************************************************************!*\ + !*** ./node_modules/@fonticonpicker/react-fonticonpicker/dist/fonticonpicker.react.js ***! + \****************************************************************************************/ +/*! dynamic exports provided */ +/*! exports used: default */ +/***/ (function(module, exports, __webpack_require__) { + +/*! + * + * React FontIconPicker + * + * React Component to show a picker element to pick font-icons & svg + * + * @author Swashata Ghosh + * @version 1.2.0 + * @link https://github.com/fontIconPicker/react-fonticonpicker + * @license MIT + * + * Copyright (c) 2018 Swashata Ghosh + * + * This software is released under the MIT License. + * https://opensource.org/licenses/MIT + * + */ +!function(e,t){ true?module.exports=t(__webpack_require__(/*! prop-types */ 15),__webpack_require__(/*! react */ 5),__webpack_require__(/*! classnames */ 0),__webpack_require__(/*! react-dom */ 33),__webpack_require__(/*! react-transition-group */ 516)):"function"==typeof define&&define.amd?define(["prop-types","react","classnames","react-dom","react-transition-group"],t):"object"==typeof exports?exports.FontIconPicker=t(require("prop-types"),require("react"),require("classnames"),require("react-dom"),require("react-transition-group")):e.FontIconPicker=t(e.PropTypes,e.React,e.classNames,e.ReactDOM,e.ReactTransitionGroup)}(window,function(e,t,r,n,a){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},r.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=15)}([function(t,r){t.exports=e},function(e,r){e.exports=t},function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t1&&void 0!==arguments[1]?arguments[1]:null;if(Array.isArray(e))return o(e);if(null!==t)return void 0!==e[t]?o(e[t]):[];var r=[],n=function(e){for(var t=1;tr)return!1;if(n===r)return e===t;e:for(var a=0,o=0;aa-20){var m=y.left+r.props.btnRef.current.offsetWidth-(e+d.left);m+d.left<0&&(m=10-d.left),h.style.left="".concat(m,"px")}t+s-o>l&&y.top-t>0&&("self"===r.state.appendRoot?h.style.top="-".concat(t-g,"px"):h.style.top="".concat(y.top+g-t,"px"))}}),r.state={},r.debouncedSyncPortalPosition=(0,i.debounce)(r.syncPortalPosition,250),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");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)}(t,n.default.PureComponent),f(t,null,[{key:"getDerivedStateFromProps",value:function(e){var r=t.calculateAppendAndClass(e.appendRoot);return{appendRoot:r.appendRoot,portalClasses:r.portalClasses}}},{key:"calculateAppendAndClass",value:function(e){var t="self",r=(0,l.default)({"rfipdropdown--portal":!1!==e});return!1!==e&&(t=document.querySelector(e)),{portalClasses:r,appendRoot:t}}}]),f(t,[{key:"componentDidMount",value:function(){window.addEventListener("resize",this.debouncedSyncPortalPosition),window.addEventListener("scroll",this.debouncedSyncPortalPosition),this.syncPortalPosition()}},{key:"componentDidUpdate",value:function(){this.syncPortalPosition()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.debouncedSyncPortalPosition),window.removeEventListener("scroll",this.debouncedSyncPortalPosition)}},{key:"positionPortal",value:function(){var e=this.props.domRef.current.style.display;this.props.domRef.current.style.display="none";var t=this.props.btnRef.current,r=(0,i.getOffset)(t),n=(0,i.getOffset)(this.state.appendRoot),a=t.offsetHeight;this.props.domRef.current.style.left="".concat(r.left-n.left,"px"),this.props.domRef.current.style.top="".concat(r.top+a,"px"),this.props.domRef.current.style.display=e}},{key:"resetPortalPosition",value:function(){var e=this.props.domRef.current;"self"===this.state.appendRoot?e.style.top="":this.positionPortal()}},{key:"render",value:function(){var e=(0,l.default)(this.props.className,this.state.portalClasses),t=n.default.createElement("div",{className:e,ref:this.props.domRef},this.props.children);return"self"===this.state.appendRoot?t:(0,a.createPortal)(t,this.state.appendRoot)}}]),t}();Object.defineProperty(p,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:{appendRoot:o.default.oneOfType([o.default.bool,o.default.string]),children:o.default.node.isRequired,domRef:o.default.object.isRequired,btnRef:o.default.object.isRequired,className:o.default.string.isRequired}}),Object.defineProperty(p,"defaultProps",{configurable:!0,enumerable:!0,writable:!0,value:{appendRoot:!1}});var h=p;t.default=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(r(1)),a=i(r(0)),o=i(r(3)),l=r(2);function i(e){return e&&e.__esModule?e:{default:e}}function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t1&&void 0!==arguments[1]?arguments[1]:null,a=r.props.currentPage,o=r.state.totalPage;null!==n?"next"===n?a+=1:a-=1:a=parseInt(e.target.value,10)-1,a<0&&(a=0),a>o-1&&(a=o-1),t=a+1,null===n&&Number.isNaN(a)&&(a=0,t=""),r.setState({viewPage:t}),r.props.handleChangePage(a)}}),Object.defineProperty(d(r),"handlePageKeyBoard",{configurable:!0,enumerable:!0,writable:!0,value:function(e,t){13!==e.keyCode&&32!==e.keyCode||r.handleChangePage({},t)}}),Object.defineProperty(d(r),"handleChangeValue",{configurable:!0,enumerable:!0,writable:!0,value:function(e){r.props.handleChangeValue(e)}}),Object.defineProperty(d(r),"handleValueKeyboard",{configurable:!0,enumerable:!0,writable:!0,value:function(e,t){13!==e.keyCode&&32!==e.keyCode||r.handleChangeValue(t)}}),r.state={viewPage:r.props.currentPage+1},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");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)}(t,n.default.PureComponent),f(t,null,[{key:"getDerivedStateFromProps",value:function(e,r){var n=t.getCategoryFilteredState(e.currentCategory,e.categories,e.icons),a=t.getCategoryFilteredState(e.currentCategory,e.categories,null===e.search?e.icons:e.search),o=t.getActiveIcons(n,a,e.currentSearch),l=o.activeIcons,i=o.activeTitles,u=e.currentPage,c=e.iconsPerPage,s={iconView:t.getCurrentViewIcons(l,c,u),titleView:t.getCurrentViewIcons(i,c,u),totalPage:Math.ceil(l.length/c)};return""!==r.viewPage&&(s.viewPage=e.currentPage+1),s}},{key:"getActiveIcons",value:function(e,t,r){var n=c(e),a=c(t);if(""===r||null===r)return{activeIcons:n,activeTitles:a};var o=[],i=[];return n.forEach(function(e,n){(0,l.fuzzySearch)(r,t[n])&&(o.push(e),i.push(t[n]))}),{activeIcons:o,activeTitles:i}}},{key:"getCategoryFilteredState",value:function(e,t,r){var n=null,a=(0,l.getSourceType)(r);if(Array.isArray(t)){if("object"!==a)throw new l.InvalidSourceException(a,"object")}else if("array"!==a)throw new l.InvalidSourceException(a,"array");return 0!==e&&Array.isArray(t)&&(n=t[e]||null),(0,l.flattenPossiblyCategorizedSource)(r,n)}},{key:"getCurrentViewIcons",value:function(e,t,r){var n=r*t,a=(r+1)*t;return e.slice(n,a)}}]),f(t,[{key:"renderPager",value:function(){var e=this;if(this.state.totalPage<1)return null;var t=this.props.currentPage>0?n.default.createElement("span",{className:"rfipicons__left",role:"button",tabIndex:0,onKeyDown:function(t){return e.handlePageKeyBoard(t,"prev")},onClick:function(t){return e.handleChangePage(t,"prev")}},n.default.createElement("span",{role:"presentation",className:"rfipicons__label","aria-label":"Left"},n.default.createElement("i",{className:"fipicon-angle-left"}))):null,r=this.props.currentPage0?this.state.iconView.map(function(t,r){var a=(0,o.default)("rfipicons__icon",{"rfipicons__icon--selected":e.props.value===t||Array.isArray(e.props.value)&&e.props.value.includes(t)});return n.default.createElement("span",{className:a,key:t,title:e.state.titleView[r]},n.default.createElement("span",{className:"rfipicons__ibox",tabIndex:0,role:"button",onClick:function(){return e.handleChangeValue(t)},onKeyDown:function(r){return e.handleValueKeyboard(r,t)}},e.props.renderIcon(t)))}):n.default.createElement("span",{className:"rfipicons__icon--error"},n.default.createElement("span",{className:"rfipicons__ibox--error"},this.props.noIconPlaceholder))}},{key:"render",value:function(){return n.default.createElement("div",{className:"rfipicons"},this.renderPager(),n.default.createElement("div",{className:"rfipicons__selector"},this.renderIconView()))}}]),t}();Object.defineProperty(p,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:{categories:a.default.arrayOf(a.default.string),currentCategory:a.default.number,isMulti:a.default.bool.isRequired,icons:a.default.oneOfType([a.default.arrayOf(a.default.string),a.default.arrayOf(a.default.number),a.default.objectOf(a.default.oneOfType([a.default.arrayOf(a.default.number),a.default.arrayOf(a.default.string)]))]).isRequired,search:a.default.oneOfType([a.default.objectOf(a.default.arrayOf(a.default.string)),a.default.arrayOf(a.default.string)]),value:a.default.oneOfType([a.default.number,a.default.string,a.default.arrayOf(a.default.oneOfType([a.default.number,a.default.string]))]).isRequired,currentSearch:a.default.string.isRequired,handleChangeValue:a.default.func.isRequired,currentPage:a.default.number.isRequired,iconsPerPage:a.default.number.isRequired,handleChangePage:a.default.func.isRequired,renderIcon:a.default.func.isRequired,noIconPlaceholder:a.default.string.isRequired}}),Object.defineProperty(p,"defaultProps",{configurable:!0,enumerable:!0,writable:!0,value:{categories:null,currentCategory:null,search:null}});var h=p;t.default=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(1)),a=o(r(0));function o(e){return e&&e.__esModule?e:{default:e}}var l=function(e){return n.default.createElement("div",{className:"rfipsearch"},n.default.createElement("input",{type:"text",className:"rfipsearch__input",value:e.value,onChange:e.handleSearch,placeholder:e.placeholder}))};l.propTypes={handleSearch:a.default.func.isRequired,value:a.default.string.isRequired,placeholder:a.default.string.isRequired};var i=l;t.default=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(1)),a=o(r(0));function o(e){return e&&e.__esModule?e:{default:e}}function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var r=0;r1&&void 0!==arguments[1])||arguments[1],a={isOpen:e};return a.elemClass=t.getDerivedClassName("rfip",r.props.theme,r.props.isMulti,e),a.btnClass=t.getDerivedClassName("rfipbtn",r.props.theme,r.props.isMulti,e),a.ddClass=t.getDerivedClassName("rfipdropdown",r.props.theme,r.props.isMulti,e),n&&r.setState(a),a}}),Object.defineProperty(g(r),"handleChangeValue",{configurable:!0,enumerable:!0,writable:!0,value:function(e){var t;r.props.isMulti?(t=p(r.state.value)).includes(e)?(t=t.filter(function(t){return t!==e})).length||(t=m):t.push(e):t=e===r.state.value?v:e,r.setState({value:t,isOpen:!r.props.closeOnSelect}),r.props.onChange(t)}}),Object.defineProperty(g(r),"handleDeleteValue",{configurable:!0,enumerable:!0,writable:!0,value:function(e){var n;n=r.props.isMulti?r.state.value.filter(function(t){return t!==e}):t.getDerivedValue(n,r.props.isMulti),r.setState({value:n}),r.props.onChange(n)}}),Object.defineProperty(g(r),"handleChangePage",{configurable:!0,enumerable:!0,writable:!0,value:function(e){r.setState({currentPage:e})}}),Object.defineProperty(g(r),"handleChangeCategory",{configurable:!0,enumerable:!0,writable:!0,value:function(e){r.setState({currentCategory:e,currentPage:0})}}),Object.defineProperty(g(r),"handleChangeSearch",{configurable:!0,enumerable:!0,writable:!0,value:function(e){r.setState({currentSearch:e,currentPage:0})}}),Object.defineProperty(g(r),"resetPortalStyle",{configurable:!0,enumerable:!0,writable:!0,value:function(e){["maxHeight","paddingTop","paddingBottom"].forEach(function(t){e.style[t]=null})}}),Object.defineProperty(g(r),"handlePortalEnter",{configurable:!0,enumerable:!0,writable:!0,value:function(e){var t=e.childNodes[0];r.resetPortalStyle(t);var n=getComputedStyle(t);r.fipPortalComputedStyle={height:n.height,paddingTop:n.paddingTop,paddingBottom:n.paddingBottom},["maxHeight","paddingTop","paddingBottom"].forEach(function(e){t.style[e]="0px"})}}),Object.defineProperty(g(r),"handlePortalEntering",{configurable:!0,enumerable:!0,writable:!0,value:function(e){var t=e.childNodes[0];t.style.maxHeight=r.fipPortalComputedStyle.height,t.style.paddingTop=r.fipPortalComputedStyle.paddingTop,t.style.paddingBottom=r.fipPortalComputedStyle.paddingBottom}}),Object.defineProperty(g(r),"handlePortalEntered",{configurable:!0,enumerable:!0,writable:!0,value:function(e){var t=e.childNodes[0];r.resetPortalStyle(t),r.props.showSearch&&void 0===window.orientation&&-1===navigator.userAgent.indexOf("IEMobile")&&t.querySelector(".rfipsearch__input").focus()}}),Object.defineProperty(g(r),"handlePortalExit",{configurable:!0,enumerable:!0,writable:!0,value:function(e){var t=e.childNodes[0];r.resetPortalStyle(t);var n=getComputedStyle(t).height;t.style.maxHeight=n}}),Object.defineProperty(g(r),"handlePortalExiting",{configurable:!0,enumerable:!0,writable:!0,value:function(e){var t=e.childNodes[0];t.style.maxHeight="0px",t.style.paddingTop="0px",t.style.paddingBottom="0px"}}),Object.defineProperty(g(r),"renderIcon",{configurable:!0,enumerable:!0,writable:!0,value:function(e){if("function"==typeof r.props.renderFunc)return r.props.renderFunc(e);if("class"===r.props.renderUsing)return n.default.createElement("i",{className:e});var t=h({},r.props.renderUsing,r.props.convertHex?(0,s.convertToHex)(e):e);return n.default.createElement("i",t)}}),r.fipButtonRef=n.default.createRef(),r.fipDropDownRef=n.default.createRef(),r.state={currentCategory:0,currentPage:0,isOpen:!1,currentSearch:""},r.fipPortalComputedStyle=null,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");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)}(t,n.default.PureComponent),b(t,null,[{key:"getDerivedStateFromProps",value:function(e,r){var n={};return n.elemClass=t.getDerivedClassName("rfip",e.theme,e.isMulti,r.isOpen),n.btnClass=t.getDerivedClassName("rfipbtn",e.theme,e.isMulti,r.isOpen),n.ddClass=t.getDerivedClassName("rfipdropdown",e.theme,e.isMulti,r.isOpen),n.value=t.getDerivedValue(e.value,e.isMulti),e.showCategory||(n.currentCategory=0,n.currentPage=0),e.showSearch||(n.currentSearch="",n.currentPage=0),n}},{key:"getDerivedClassName",value:function(e,t,r,n){return(0,o.default)(e,"".concat(e,"--").concat(t),h({},"".concat(e,"--multi"),r),"".concat(e,"--").concat(n?"open":"close"))}},{key:"getDerivedValue",value:function(e,t){var r=e;return t?r=Array.isArray(e)?p(e):m:"number"!=typeof e&&"string"!=typeof e&&(r=v),r}}]),b(t,[{key:"componentDidMount",value:function(){var e=this;["click"].forEach(function(t){document.addEventListener(t,e.handleOuterClick,!1)}),document.addEventListener("keydown",this.handleEscapeKeyboard,!1),this.props.onChange(this.state.value)}},{key:"componentWillUnmount",value:function(){var e=this;["click"].forEach(function(t){document.removeEventListener(t,e.handleOuterClick,!1)}),document.removeEventListener("keydown",this.handleEscapeKeyboard,!1)}},{key:"render",value:function(){var e={currentCategory:this.state.currentCategory,currentPage:this.state.currentPage,currentSearch:this.state.currentSearch,value:this.state.value,isMulti:this.props.isMulti,icons:this.props.icons,search:this.props.search,showCategory:this.props.showCategory,showSearch:this.props.showSearch,iconsPerPage:this.props.iconsPerPage,allCatPlaceholder:this.props.allCatPlaceholder,searchPlaceholder:this.props.searchPlaceholder,noIconPlaceholder:this.props.noIconPlaceholder,renderIcon:this.renderIcon,handleChangeValue:this.handleChangeValue,handleChangeCategory:this.handleChangeCategory,handleChangePage:this.handleChangePage,handleChangeSearch:this.handleChangeSearch};return n.default.createElement("div",{className:this.state.elemClass,ref:this.fipRef},n.default.createElement(i.default,{className:this.state.btnClass,isOpen:this.state.isOpen,onClick:this.handleToggle,domRef:this.fipButtonRef,isMulti:this.props.isMulti,value:this.state.value,renderIcon:this.renderIcon,handleDeleteValue:this.handleDeleteValue,noSelectedPlaceholder:this.props.noSelectedPlaceholder}),n.default.createElement(l.CSSTransition,{classNames:"fipappear",timeout:300,in:this.state.isOpen,unmountOnExit:!0,onEnter:this.handlePortalEnter,onEntering:this.handlePortalEntering,onEntered:this.handlePortalEntered,onExit:this.handlePortalExit,onExiting:this.handlePortalExiting},n.default.createElement(c.default,{appendRoot:this.props.appendTo,domRef:this.fipDropDownRef,btnRef:this.fipButtonRef,className:this.state.ddClass},n.default.createElement(u.default,e))))}}]),t}();Object.defineProperty(P,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:{icons:a.default.oneOfType([a.default.arrayOf(a.default.string),a.default.arrayOf(a.default.number),a.default.objectOf(a.default.oneOfType([a.default.arrayOf(a.default.number),a.default.arrayOf(a.default.string)]))]).isRequired,search:a.default.oneOfType([a.default.objectOf(a.default.arrayOf(a.default.string)),a.default.arrayOf(a.default.string)]),iconsPerPage:a.default.number,theme:a.default.string,onChange:a.default.func.isRequired,showCategory:a.default.bool,showSearch:a.default.bool,value:a.default.oneOfType([a.default.arrayOf(a.default.string),a.default.arrayOf(a.default.number),a.default.number,a.default.string]),isMulti:a.default.bool,renderUsing:a.default.string,convertHex:a.default.bool,renderFunc:a.default.func,appendTo:a.default.oneOfType([a.default.bool,a.default.string]),allCatPlaceholder:a.default.string,searchPlaceholder:a.default.string,noIconPlaceholder:a.default.string,noSelectedPlaceholder:a.default.string,closeOnSelect:a.default.bool}}),Object.defineProperty(P,"defaultProps",{configurable:!0,enumerable:!0,writable:!0,value:{search:null,iconsPerPage:20,theme:"default",showCategory:!0,showSearch:!0,value:null,isMulti:!1,renderUsing:"class",convertHex:!0,renderFunc:null,appendTo:!1,allCatPlaceholder:"Show from all",searchPlaceholder:"Search Icons",noIconPlaceholder:"No icons found",noSelectedPlaceholder:"Select icon",closeOnSelect:!1}}),Object.defineProperty(P,"displayName",{configurable:!0,enumerable:!0,writable:!0,value:"FontIconPicker"});var O=P;t.default=O},function(e,t,r){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=((n=r(14))&&n.__esModule?n:{default:n}).default;t.default=a}]).default}); +//# sourceMappingURL=fonticonpicker.react.js.map + +/***/ }), +/* 11 */ /*!**************************************!*\ !*** ./node_modules/lodash/times.js ***! \**************************************/ -/*! no static exports found */ +/*! dynamic exports provided */ /*! exports used: default */ /***/ (function(module, exports, __webpack_require__) { -var baseTimes = __webpack_require__(/*! ./_baseTimes */ 122), - castFunction = __webpack_require__(/*! ./_castFunction */ 399), - toInteger = __webpack_require__(/*! ./toInteger */ 73); +var baseTimes = __webpack_require__(/*! ./_baseTimes */ 158), + castFunction = __webpack_require__(/*! ./_castFunction */ 506), + toInteger = __webpack_require__(/*! ./toInteger */ 94); /** Used as references for various `Number` constants. */ var MAX_SAFE_INTEGER = 9007199254740991; @@ -999,45 +1047,16 @@ function times(n, iteratee) { module.exports = times; -/***/ }), -/* 11 */ -/*!****************************************************************************************!*\ - !*** ./node_modules/@fonticonpicker/react-fonticonpicker/dist/fonticonpicker.react.js ***! - \****************************************************************************************/ -/*! no static exports found */ -/*! exports used: default */ -/***/ (function(module, exports, __webpack_require__) { - -/*! - * - * React FontIconPicker - * - * React Component to show a picker element to pick font-icons & svg - * - * @author Swashata Ghosh - * @version 1.2.0 - * @link https://github.com/fontIconPicker/react-fonticonpicker - * @license MIT - * - * Copyright (c) 2018 Swashata Ghosh - * - * This software is released under the MIT License. - * https://opensource.org/licenses/MIT - * - */ -!function(e,t){ true?module.exports=t(__webpack_require__(/*! prop-types */ 15),__webpack_require__(/*! react */ 6),__webpack_require__(/*! classnames */ 0),__webpack_require__(/*! react-dom */ 18),__webpack_require__(/*! react-transition-group */ 409)):"function"==typeof define&&define.amd?define(["prop-types","react","classnames","react-dom","react-transition-group"],t):"object"==typeof exports?exports.FontIconPicker=t(require("prop-types"),require("react"),require("classnames"),require("react-dom"),require("react-transition-group")):e.FontIconPicker=t(e.PropTypes,e.React,e.classNames,e.ReactDOM,e.ReactTransitionGroup)}(window,function(e,t,r,n,a){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},r.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=15)}([function(t,r){t.exports=e},function(e,r){e.exports=t},function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t1&&void 0!==arguments[1]?arguments[1]:null;if(Array.isArray(e))return o(e);if(null!==t)return void 0!==e[t]?o(e[t]):[];var r=[],n=function(e){for(var t=1;tr)return!1;if(n===r)return e===t;e:for(var a=0,o=0;aa-20){var m=y.left+r.props.btnRef.current.offsetWidth-(e+d.left);m+d.left<0&&(m=10-d.left),h.style.left="".concat(m,"px")}t+s-o>l&&y.top-t>0&&("self"===r.state.appendRoot?h.style.top="-".concat(t-g,"px"):h.style.top="".concat(y.top+g-t,"px"))}}),r.state={},r.debouncedSyncPortalPosition=(0,i.debounce)(r.syncPortalPosition,250),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");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)}(t,n.default.PureComponent),f(t,null,[{key:"getDerivedStateFromProps",value:function(e){var r=t.calculateAppendAndClass(e.appendRoot);return{appendRoot:r.appendRoot,portalClasses:r.portalClasses}}},{key:"calculateAppendAndClass",value:function(e){var t="self",r=(0,l.default)({"rfipdropdown--portal":!1!==e});return!1!==e&&(t=document.querySelector(e)),{portalClasses:r,appendRoot:t}}}]),f(t,[{key:"componentDidMount",value:function(){window.addEventListener("resize",this.debouncedSyncPortalPosition),window.addEventListener("scroll",this.debouncedSyncPortalPosition),this.syncPortalPosition()}},{key:"componentDidUpdate",value:function(){this.syncPortalPosition()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.debouncedSyncPortalPosition),window.removeEventListener("scroll",this.debouncedSyncPortalPosition)}},{key:"positionPortal",value:function(){var e=this.props.domRef.current.style.display;this.props.domRef.current.style.display="none";var t=this.props.btnRef.current,r=(0,i.getOffset)(t),n=(0,i.getOffset)(this.state.appendRoot),a=t.offsetHeight;this.props.domRef.current.style.left="".concat(r.left-n.left,"px"),this.props.domRef.current.style.top="".concat(r.top+a,"px"),this.props.domRef.current.style.display=e}},{key:"resetPortalPosition",value:function(){var e=this.props.domRef.current;"self"===this.state.appendRoot?e.style.top="":this.positionPortal()}},{key:"render",value:function(){var e=(0,l.default)(this.props.className,this.state.portalClasses),t=n.default.createElement("div",{className:e,ref:this.props.domRef},this.props.children);return"self"===this.state.appendRoot?t:(0,a.createPortal)(t,this.state.appendRoot)}}]),t}();Object.defineProperty(p,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:{appendRoot:o.default.oneOfType([o.default.bool,o.default.string]),children:o.default.node.isRequired,domRef:o.default.object.isRequired,btnRef:o.default.object.isRequired,className:o.default.string.isRequired}}),Object.defineProperty(p,"defaultProps",{configurable:!0,enumerable:!0,writable:!0,value:{appendRoot:!1}});var h=p;t.default=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(r(1)),a=i(r(0)),o=i(r(3)),l=r(2);function i(e){return e&&e.__esModule?e:{default:e}}function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t1&&void 0!==arguments[1]?arguments[1]:null,a=r.props.currentPage,o=r.state.totalPage;null!==n?"next"===n?a+=1:a-=1:a=parseInt(e.target.value,10)-1,a<0&&(a=0),a>o-1&&(a=o-1),t=a+1,null===n&&Number.isNaN(a)&&(a=0,t=""),r.setState({viewPage:t}),r.props.handleChangePage(a)}}),Object.defineProperty(d(r),"handlePageKeyBoard",{configurable:!0,enumerable:!0,writable:!0,value:function(e,t){13!==e.keyCode&&32!==e.keyCode||r.handleChangePage({},t)}}),Object.defineProperty(d(r),"handleChangeValue",{configurable:!0,enumerable:!0,writable:!0,value:function(e){r.props.handleChangeValue(e)}}),Object.defineProperty(d(r),"handleValueKeyboard",{configurable:!0,enumerable:!0,writable:!0,value:function(e,t){13!==e.keyCode&&32!==e.keyCode||r.handleChangeValue(t)}}),r.state={viewPage:r.props.currentPage+1},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");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)}(t,n.default.PureComponent),f(t,null,[{key:"getDerivedStateFromProps",value:function(e,r){var n=t.getCategoryFilteredState(e.currentCategory,e.categories,e.icons),a=t.getCategoryFilteredState(e.currentCategory,e.categories,null===e.search?e.icons:e.search),o=t.getActiveIcons(n,a,e.currentSearch),l=o.activeIcons,i=o.activeTitles,u=e.currentPage,c=e.iconsPerPage,s={iconView:t.getCurrentViewIcons(l,c,u),titleView:t.getCurrentViewIcons(i,c,u),totalPage:Math.ceil(l.length/c)};return""!==r.viewPage&&(s.viewPage=e.currentPage+1),s}},{key:"getActiveIcons",value:function(e,t,r){var n=c(e),a=c(t);if(""===r||null===r)return{activeIcons:n,activeTitles:a};var o=[],i=[];return n.forEach(function(e,n){(0,l.fuzzySearch)(r,t[n])&&(o.push(e),i.push(t[n]))}),{activeIcons:o,activeTitles:i}}},{key:"getCategoryFilteredState",value:function(e,t,r){var n=null,a=(0,l.getSourceType)(r);if(Array.isArray(t)){if("object"!==a)throw new l.InvalidSourceException(a,"object")}else if("array"!==a)throw new l.InvalidSourceException(a,"array");return 0!==e&&Array.isArray(t)&&(n=t[e]||null),(0,l.flattenPossiblyCategorizedSource)(r,n)}},{key:"getCurrentViewIcons",value:function(e,t,r){var n=r*t,a=(r+1)*t;return e.slice(n,a)}}]),f(t,[{key:"renderPager",value:function(){var e=this;if(this.state.totalPage<1)return null;var t=this.props.currentPage>0?n.default.createElement("span",{className:"rfipicons__left",role:"button",tabIndex:0,onKeyDown:function(t){return e.handlePageKeyBoard(t,"prev")},onClick:function(t){return e.handleChangePage(t,"prev")}},n.default.createElement("span",{role:"presentation",className:"rfipicons__label","aria-label":"Left"},n.default.createElement("i",{className:"fipicon-angle-left"}))):null,r=this.props.currentPage0?this.state.iconView.map(function(t,r){var a=(0,o.default)("rfipicons__icon",{"rfipicons__icon--selected":e.props.value===t||Array.isArray(e.props.value)&&e.props.value.includes(t)});return n.default.createElement("span",{className:a,key:t,title:e.state.titleView[r]},n.default.createElement("span",{className:"rfipicons__ibox",tabIndex:0,role:"button",onClick:function(){return e.handleChangeValue(t)},onKeyDown:function(r){return e.handleValueKeyboard(r,t)}},e.props.renderIcon(t)))}):n.default.createElement("span",{className:"rfipicons__icon--error"},n.default.createElement("span",{className:"rfipicons__ibox--error"},this.props.noIconPlaceholder))}},{key:"render",value:function(){return n.default.createElement("div",{className:"rfipicons"},this.renderPager(),n.default.createElement("div",{className:"rfipicons__selector"},this.renderIconView()))}}]),t}();Object.defineProperty(p,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:{categories:a.default.arrayOf(a.default.string),currentCategory:a.default.number,isMulti:a.default.bool.isRequired,icons:a.default.oneOfType([a.default.arrayOf(a.default.string),a.default.arrayOf(a.default.number),a.default.objectOf(a.default.oneOfType([a.default.arrayOf(a.default.number),a.default.arrayOf(a.default.string)]))]).isRequired,search:a.default.oneOfType([a.default.objectOf(a.default.arrayOf(a.default.string)),a.default.arrayOf(a.default.string)]),value:a.default.oneOfType([a.default.number,a.default.string,a.default.arrayOf(a.default.oneOfType([a.default.number,a.default.string]))]).isRequired,currentSearch:a.default.string.isRequired,handleChangeValue:a.default.func.isRequired,currentPage:a.default.number.isRequired,iconsPerPage:a.default.number.isRequired,handleChangePage:a.default.func.isRequired,renderIcon:a.default.func.isRequired,noIconPlaceholder:a.default.string.isRequired}}),Object.defineProperty(p,"defaultProps",{configurable:!0,enumerable:!0,writable:!0,value:{categories:null,currentCategory:null,search:null}});var h=p;t.default=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(1)),a=o(r(0));function o(e){return e&&e.__esModule?e:{default:e}}var l=function(e){return n.default.createElement("div",{className:"rfipsearch"},n.default.createElement("input",{type:"text",className:"rfipsearch__input",value:e.value,onChange:e.handleSearch,placeholder:e.placeholder}))};l.propTypes={handleSearch:a.default.func.isRequired,value:a.default.string.isRequired,placeholder:a.default.string.isRequired};var i=l;t.default=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(1)),a=o(r(0));function o(e){return e&&e.__esModule?e:{default:e}}function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var r=0;r1&&void 0!==arguments[1])||arguments[1],a={isOpen:e};return a.elemClass=t.getDerivedClassName("rfip",r.props.theme,r.props.isMulti,e),a.btnClass=t.getDerivedClassName("rfipbtn",r.props.theme,r.props.isMulti,e),a.ddClass=t.getDerivedClassName("rfipdropdown",r.props.theme,r.props.isMulti,e),n&&r.setState(a),a}}),Object.defineProperty(g(r),"handleChangeValue",{configurable:!0,enumerable:!0,writable:!0,value:function(e){var t;r.props.isMulti?(t=p(r.state.value)).includes(e)?(t=t.filter(function(t){return t!==e})).length||(t=m):t.push(e):t=e===r.state.value?v:e,r.setState({value:t,isOpen:!r.props.closeOnSelect}),r.props.onChange(t)}}),Object.defineProperty(g(r),"handleDeleteValue",{configurable:!0,enumerable:!0,writable:!0,value:function(e){var n;n=r.props.isMulti?r.state.value.filter(function(t){return t!==e}):t.getDerivedValue(n,r.props.isMulti),r.setState({value:n}),r.props.onChange(n)}}),Object.defineProperty(g(r),"handleChangePage",{configurable:!0,enumerable:!0,writable:!0,value:function(e){r.setState({currentPage:e})}}),Object.defineProperty(g(r),"handleChangeCategory",{configurable:!0,enumerable:!0,writable:!0,value:function(e){r.setState({currentCategory:e,currentPage:0})}}),Object.defineProperty(g(r),"handleChangeSearch",{configurable:!0,enumerable:!0,writable:!0,value:function(e){r.setState({currentSearch:e,currentPage:0})}}),Object.defineProperty(g(r),"resetPortalStyle",{configurable:!0,enumerable:!0,writable:!0,value:function(e){["maxHeight","paddingTop","paddingBottom"].forEach(function(t){e.style[t]=null})}}),Object.defineProperty(g(r),"handlePortalEnter",{configurable:!0,enumerable:!0,writable:!0,value:function(e){var t=e.childNodes[0];r.resetPortalStyle(t);var n=getComputedStyle(t);r.fipPortalComputedStyle={height:n.height,paddingTop:n.paddingTop,paddingBottom:n.paddingBottom},["maxHeight","paddingTop","paddingBottom"].forEach(function(e){t.style[e]="0px"})}}),Object.defineProperty(g(r),"handlePortalEntering",{configurable:!0,enumerable:!0,writable:!0,value:function(e){var t=e.childNodes[0];t.style.maxHeight=r.fipPortalComputedStyle.height,t.style.paddingTop=r.fipPortalComputedStyle.paddingTop,t.style.paddingBottom=r.fipPortalComputedStyle.paddingBottom}}),Object.defineProperty(g(r),"handlePortalEntered",{configurable:!0,enumerable:!0,writable:!0,value:function(e){var t=e.childNodes[0];r.resetPortalStyle(t),r.props.showSearch&&void 0===window.orientation&&-1===navigator.userAgent.indexOf("IEMobile")&&t.querySelector(".rfipsearch__input").focus()}}),Object.defineProperty(g(r),"handlePortalExit",{configurable:!0,enumerable:!0,writable:!0,value:function(e){var t=e.childNodes[0];r.resetPortalStyle(t);var n=getComputedStyle(t).height;t.style.maxHeight=n}}),Object.defineProperty(g(r),"handlePortalExiting",{configurable:!0,enumerable:!0,writable:!0,value:function(e){var t=e.childNodes[0];t.style.maxHeight="0px",t.style.paddingTop="0px",t.style.paddingBottom="0px"}}),Object.defineProperty(g(r),"renderIcon",{configurable:!0,enumerable:!0,writable:!0,value:function(e){if("function"==typeof r.props.renderFunc)return r.props.renderFunc(e);if("class"===r.props.renderUsing)return n.default.createElement("i",{className:e});var t=h({},r.props.renderUsing,r.props.convertHex?(0,s.convertToHex)(e):e);return n.default.createElement("i",t)}}),r.fipButtonRef=n.default.createRef(),r.fipDropDownRef=n.default.createRef(),r.state={currentCategory:0,currentPage:0,isOpen:!1,currentSearch:""},r.fipPortalComputedStyle=null,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");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)}(t,n.default.PureComponent),b(t,null,[{key:"getDerivedStateFromProps",value:function(e,r){var n={};return n.elemClass=t.getDerivedClassName("rfip",e.theme,e.isMulti,r.isOpen),n.btnClass=t.getDerivedClassName("rfipbtn",e.theme,e.isMulti,r.isOpen),n.ddClass=t.getDerivedClassName("rfipdropdown",e.theme,e.isMulti,r.isOpen),n.value=t.getDerivedValue(e.value,e.isMulti),e.showCategory||(n.currentCategory=0,n.currentPage=0),e.showSearch||(n.currentSearch="",n.currentPage=0),n}},{key:"getDerivedClassName",value:function(e,t,r,n){return(0,o.default)(e,"".concat(e,"--").concat(t),h({},"".concat(e,"--multi"),r),"".concat(e,"--").concat(n?"open":"close"))}},{key:"getDerivedValue",value:function(e,t){var r=e;return t?r=Array.isArray(e)?p(e):m:"number"!=typeof e&&"string"!=typeof e&&(r=v),r}}]),b(t,[{key:"componentDidMount",value:function(){var e=this;["click"].forEach(function(t){document.addEventListener(t,e.handleOuterClick,!1)}),document.addEventListener("keydown",this.handleEscapeKeyboard,!1),this.props.onChange(this.state.value)}},{key:"componentWillUnmount",value:function(){var e=this;["click"].forEach(function(t){document.removeEventListener(t,e.handleOuterClick,!1)}),document.removeEventListener("keydown",this.handleEscapeKeyboard,!1)}},{key:"render",value:function(){var e={currentCategory:this.state.currentCategory,currentPage:this.state.currentPage,currentSearch:this.state.currentSearch,value:this.state.value,isMulti:this.props.isMulti,icons:this.props.icons,search:this.props.search,showCategory:this.props.showCategory,showSearch:this.props.showSearch,iconsPerPage:this.props.iconsPerPage,allCatPlaceholder:this.props.allCatPlaceholder,searchPlaceholder:this.props.searchPlaceholder,noIconPlaceholder:this.props.noIconPlaceholder,renderIcon:this.renderIcon,handleChangeValue:this.handleChangeValue,handleChangeCategory:this.handleChangeCategory,handleChangePage:this.handleChangePage,handleChangeSearch:this.handleChangeSearch};return n.default.createElement("div",{className:this.state.elemClass,ref:this.fipRef},n.default.createElement(i.default,{className:this.state.btnClass,isOpen:this.state.isOpen,onClick:this.handleToggle,domRef:this.fipButtonRef,isMulti:this.props.isMulti,value:this.state.value,renderIcon:this.renderIcon,handleDeleteValue:this.handleDeleteValue,noSelectedPlaceholder:this.props.noSelectedPlaceholder}),n.default.createElement(l.CSSTransition,{classNames:"fipappear",timeout:300,in:this.state.isOpen,unmountOnExit:!0,onEnter:this.handlePortalEnter,onEntering:this.handlePortalEntering,onEntered:this.handlePortalEntered,onExit:this.handlePortalExit,onExiting:this.handlePortalExiting},n.default.createElement(c.default,{appendRoot:this.props.appendTo,domRef:this.fipDropDownRef,btnRef:this.fipButtonRef,className:this.state.ddClass},n.default.createElement(u.default,e))))}}]),t}();Object.defineProperty(P,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:{icons:a.default.oneOfType([a.default.arrayOf(a.default.string),a.default.arrayOf(a.default.number),a.default.objectOf(a.default.oneOfType([a.default.arrayOf(a.default.number),a.default.arrayOf(a.default.string)]))]).isRequired,search:a.default.oneOfType([a.default.objectOf(a.default.arrayOf(a.default.string)),a.default.arrayOf(a.default.string)]),iconsPerPage:a.default.number,theme:a.default.string,onChange:a.default.func.isRequired,showCategory:a.default.bool,showSearch:a.default.bool,value:a.default.oneOfType([a.default.arrayOf(a.default.string),a.default.arrayOf(a.default.number),a.default.number,a.default.string]),isMulti:a.default.bool,renderUsing:a.default.string,convertHex:a.default.bool,renderFunc:a.default.func,appendTo:a.default.oneOfType([a.default.bool,a.default.string]),allCatPlaceholder:a.default.string,searchPlaceholder:a.default.string,noIconPlaceholder:a.default.string,noSelectedPlaceholder:a.default.string,closeOnSelect:a.default.bool}}),Object.defineProperty(P,"defaultProps",{configurable:!0,enumerable:!0,writable:!0,value:{search:null,iconsPerPage:20,theme:"default",showCategory:!0,showSearch:!0,value:null,isMulti:!1,renderUsing:"class",convertHex:!0,renderFunc:null,appendTo:!1,allCatPlaceholder:"Show from all",searchPlaceholder:"Search Icons",noIconPlaceholder:"No icons found",noSelectedPlaceholder:"Select icon",closeOnSelect:!1}}),Object.defineProperty(P,"displayName",{configurable:!0,enumerable:!0,writable:!0,value:"FontIconPicker"});var O=P;t.default=O},function(e,t,r){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=((n=r(14))&&n.__esModule?n:{default:n}).default;t.default=a}]).default}); -//# sourceMappingURL=fonticonpicker.react.js.map - /***/ }), /* 12 */ /*!**************************************!*\ !*** ./node_modules/lodash/_root.js ***! \**************************************/ -/*! no static exports found */ +/*! dynamic exports provided */ /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { -var freeGlobal = __webpack_require__(/*! ./_freeGlobal */ 113); +var freeGlobal = __webpack_require__(/*! ./_freeGlobal */ 149); /** Detect free variable `self`. */ var freeSelf = typeof self == 'object' && self && self.Object === Object && self; @@ -1053,7 +1072,7 @@ module.exports = root; /*!*****************************************!*\ !*** ./node_modules/lodash/isObject.js ***! \*****************************************/ -/*! no static exports found */ +/*! dynamic exports provided */ /*! all exports used */ /***/ (function(module, exports) { @@ -1095,7 +1114,7 @@ module.exports = isObject; /*!****************************************!*\ !*** ./node_modules/lodash/isArray.js ***! \****************************************/ -/*! no static exports found */ +/*! dynamic exports provided */ /*! all exports used */ /***/ (function(module, exports) { @@ -1132,7 +1151,7 @@ module.exports = isArray; /*!******************************************!*\ !*** ./node_modules/prop-types/index.js ***! \******************************************/ -/*! no static exports found */ +/*! dynamic exports provided */ /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { @@ -1144,32 +1163,32 @@ module.exports = isArray; */ if (process.env.NODE_ENV !== 'production') { - var ReactIs = __webpack_require__(/*! react-is */ 136); + var ReactIs = __webpack_require__(/*! react-is */ 179); // By explicitly using `prop-types` you are opting into new development behavior. // http://fb.me/prop-types-in-prod var throwOnDirectAccess = true; - module.exports = __webpack_require__(/*! ./factoryWithTypeCheckers */ 278)(ReactIs.isElement, throwOnDirectAccess); + module.exports = __webpack_require__(/*! ./factoryWithTypeCheckers */ 364)(ReactIs.isElement, throwOnDirectAccess); } else { // By explicitly using `prop-types` you are opting into new production behavior. // http://fb.me/prop-types-in-prod - module.exports = __webpack_require__(/*! ./factoryWithThrowingShims */ 279)(); + module.exports = __webpack_require__(/*! ./factoryWithThrowingShims */ 365)(); } -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(/*! ./../process/browser.js */ 3))) +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(/*! ./../process/browser.js */ 6))) /***/ }), /* 16 */ /*!************************************!*\ !*** ./node_modules/lodash/map.js ***! \************************************/ -/*! no static exports found */ +/*! dynamic exports provided */ /*! exports used: default */ /***/ (function(module, exports, __webpack_require__) { -var arrayMap = __webpack_require__(/*! ./_arrayMap */ 34), - baseIteratee = __webpack_require__(/*! ./_baseIteratee */ 111), - baseMap = __webpack_require__(/*! ./_baseMap */ 252), +var arrayMap = __webpack_require__(/*! ./_arrayMap */ 45), + baseIteratee = __webpack_require__(/*! ./_baseIteratee */ 147), + baseMap = __webpack_require__(/*! ./_baseMap */ 319), isArray = __webpack_require__(/*! ./isArray */ 14); /** @@ -1224,10 +1243,23 @@ module.exports = map; /***/ }), /* 17 */ +/*!*******************************************************!*\ + !*** ./node_modules/core-js/library/modules/_core.js ***! + \*******************************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports) { + +var core = module.exports = { version: '2.5.6' }; +if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef + + +/***/ }), +/* 18 */ /*!*********************************************!*\ !*** ./node_modules/lodash/isObjectLike.js ***! \*********************************************/ -/*! no static exports found */ +/*! dynamic exports provided */ /*! all exports used */ /***/ (function(module, exports) { @@ -1262,140 +1294,64 @@ function isObjectLike(value) { module.exports = isObjectLike; -/***/ }), -/* 18 */ -/*!*****************************************!*\ - !*** ./node_modules/react-dom/index.js ***! - \*****************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -/* WEBPACK VAR INJECTION */(function(process) { - -function checkDCE() { - /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */ - if ( - typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' || - typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function' - ) { - return; - } - if (process.env.NODE_ENV !== 'production') { - // This branch is unreachable because this function is only called - // in production, but the condition is true only in development. - // Therefore if the branch is still here, dead code elimination wasn't - // properly applied. - // Don't change the message. React DevTools relies on it. Also make sure - // this message doesn't occur elsewhere in this function, or it will cause - // a false positive. - throw new Error('^_^'); - } - try { - // Verify that the code above has been dead code eliminated (DCE'd). - __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE); - } catch (err) { - // DevTools shouldn't crash React, no matter what. - // We should still report in case we break this code. - console.error(err); - } -} - -if (process.env.NODE_ENV === 'production') { - // DCE check should happen before ReactDOM bundle executes so that - // DevTools can report bad minification during injection. - checkDCE(); - module.exports = __webpack_require__(/*! ./cjs/react-dom.production.min.js */ 269); -} else { - module.exports = __webpack_require__(/*! ./cjs/react-dom.development.js */ 272); -} - -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(/*! ./../process/browser.js */ 3))) - /***/ }), /* 19 */ -/*!*******************************************!*\ - !*** ./node_modules/lodash/_getNative.js ***! - \*******************************************/ -/*! no static exports found */ -/*! all exports used */ +/*!**************************************!*\ + !*** ./node_modules/memize/index.js ***! + \**************************************/ +/*! dynamic exports provided */ +/*! exports used: default */ /***/ (function(module, exports, __webpack_require__) { -var baseIsNative = __webpack_require__(/*! ./_baseIsNative */ 204), - getValue = __webpack_require__(/*! ./_getValue */ 209); +/* WEBPACK VAR INJECTION */(function(process) {/** + * Memize options object. + * + * @typedef MemizeOptions + * + * @property {number} [maxSize] Maximum size of the cache. + */ /** - * Gets the native function at `key` of `object`. + * Internal cache entry. * - * @private - * @param {Object} object The object to query. - * @param {string} key The key of the method to get. - * @returns {*} Returns the function if it's native, else `undefined`. + * @typedef MemizeCacheNode + * + * @property {?MemizeCacheNode|undefined} [prev] Previous node. + * @property {?MemizeCacheNode|undefined} [next] Next node. + * @property {Array<*>} args Function arguments for cache + * entry. + * @property {*} val Function result. */ -function getNative(object, key) { - var value = getValue(object, key); - return baseIsNative(value) ? value : undefined; -} - -module.exports = getNative; - - -/***/ }), -/* 20 */ -/*!********************************************!*\ - !*** ./node_modules/lodash/_baseGetTag.js ***! - \********************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { - -var Symbol = __webpack_require__(/*! ./_Symbol */ 22), - getRawTag = __webpack_require__(/*! ./_getRawTag */ 205), - objectToString = __webpack_require__(/*! ./_objectToString */ 206); - -/** `Object#toString` result references. */ -var nullTag = '[object Null]', - undefinedTag = '[object Undefined]'; - -/** Built-in value references. */ -var symToStringTag = Symbol ? Symbol.toStringTag : undefined; /** - * The base implementation of `getTag` without fallbacks for buggy environments. + * Properties of the enhanced function for controlling cache. * - * @private - * @param {*} value The value to query. - * @returns {string} Returns the `toStringTag`. + * @typedef MemizeMemoizedFunction + * + * @property {()=>void} clear Clear the cache. */ -function baseGetTag(value) { - if (value == null) { - return value === undefined ? undefinedTag : nullTag; - } - return (symToStringTag && symToStringTag in Object(value)) - ? getRawTag(value) - : objectToString(value); -} - -module.exports = baseGetTag; +/** + * Accepts a function to be memoized, and returns a new memoized function, with + * optional options. + * + * @template {Function} F + * + * @param {F} fn Function to memoize. + * @param {MemizeOptions} [options] Options object. + * + * @return {F & MemizeMemoizedFunction} Memoized function. + */ +function memize( fn, options ) { + var size = 0; -/***/ }), -/* 21 */ -/*!**************************************!*\ - !*** ./node_modules/memize/index.js ***! - \**************************************/ -/*! no static exports found */ -/*! exports used: default */ -/***/ (function(module, exports, __webpack_require__) { + /** @type {?MemizeCacheNode|undefined} */ + var head; -/* WEBPACK VAR INJECTION */(function(process) {module.exports = function memize( fn, options ) { - var size = 0, - maxSize, head, tail; + /** @type {?MemizeCacheNode|undefined} */ + var tail; - if ( options && options.maxSize ) { - maxSize = options.maxSize; - } + options = options || {}; function memoized( /* ...args */ ) { var node = head, @@ -1435,14 +1391,14 @@ module.exports = baseGetTag; // Adjust siblings to point to each other. If node was tail, // this also handles new tail's empty `next` assignment. - node.prev.next = node.next; + /** @type {MemizeCacheNode} */ ( node.prev ).next = node.next; if ( node.next ) { node.next.prev = node.prev; } node.next = head; node.prev = null; - head.prev = node; + /** @type {MemizeCacheNode} */ ( head ).prev = node; head = node; } @@ -1462,7 +1418,7 @@ module.exports = baseGetTag; args: args, // Generate the result from original function - val: fn.apply( null, args ) + val: fn.apply( null, args ), }; // Don't need to check whether node is already head, since it would @@ -1478,9 +1434,9 @@ module.exports = baseGetTag; } // Trim tail if we're reached max size and are pending cache insertion - if ( size === maxSize ) { - tail = tail.prev; - tail.next = null; + if ( size === /** @type {MemizeOptions} */ ( options ).maxSize ) { + tail = /** @type {MemizeCacheNode} */ ( tail ).prev; + /** @type {MemizeCacheNode} */ ( tail ).next = null; } else { size++; } @@ -1504,17 +1460,239 @@ module.exports = baseGetTag; }; } + // Ignore reason: There's not a clear solution to create an intersection of + // the function with additional properties, where the goal is to retain the + // function signature of the incoming argument and add control properties + // on the return value. + + // @ts-ignore return memoized; -}; +} + +module.exports = memize; + +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(/*! ./../process/browser.js */ 6))) + +/***/ }), +/* 20 */ +/*!*********************************************************!*\ + !*** ./node_modules/core-js/library/modules/_global.js ***! + \*********************************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports) { + +// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 +var global = module.exports = typeof window != 'undefined' && window.Math == Math + ? window : typeof self != 'undefined' && self.Math == Math ? self + // eslint-disable-next-line no-new-func + : Function('return this')(); +if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef + + +/***/ }), +/* 21 */ +/*!*******************************************!*\ + !*** ./node_modules/lodash/_getNative.js ***! + \*******************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { + +var baseIsNative = __webpack_require__(/*! ./_baseIsNative */ 271), + getValue = __webpack_require__(/*! ./_getValue */ 276); + +/** + * Gets the native function at `key` of `object`. + * + * @private + * @param {Object} object The object to query. + * @param {string} key The key of the method to get. + * @returns {*} Returns the function if it's native, else `undefined`. + */ +function getNative(object, key) { + var value = getValue(object, key); + return baseIsNative(value) ? value : undefined; +} + +module.exports = getNative; -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(/*! ./../process/browser.js */ 3))) /***/ }), /* 22 */ +/*!********************************************!*\ + !*** ./node_modules/lodash/_baseGetTag.js ***! + \********************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { + +var Symbol = __webpack_require__(/*! ./_Symbol */ 27), + getRawTag = __webpack_require__(/*! ./_getRawTag */ 272), + objectToString = __webpack_require__(/*! ./_objectToString */ 273); + +/** `Object#toString` result references. */ +var nullTag = '[object Null]', + undefinedTag = '[object Undefined]'; + +/** Built-in value references. */ +var symToStringTag = Symbol ? Symbol.toStringTag : undefined; + +/** + * The base implementation of `getTag` without fallbacks for buggy environments. + * + * @private + * @param {*} value The value to query. + * @returns {string} Returns the `toStringTag`. + */ +function baseGetTag(value) { + if (value == null) { + return value === undefined ? undefinedTag : nullTag; + } + return (symToStringTag && symToStringTag in Object(value)) + ? getRawTag(value) + : objectToString(value); +} + +module.exports = baseGetTag; + + +/***/ }), +/* 23 */ +/*!*********************************************************!*\ + !*** ./node_modules/core-js/library/modules/_export.js ***! + \*********************************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { + +var global = __webpack_require__(/*! ./_global */ 20); +var core = __webpack_require__(/*! ./_core */ 17); +var ctx = __webpack_require__(/*! ./_ctx */ 241); +var hide = __webpack_require__(/*! ./_hide */ 36); +var has = __webpack_require__(/*! ./_has */ 26); +var PROTOTYPE = 'prototype'; + +var $export = function (type, name, source) { + var IS_FORCED = type & $export.F; + var IS_GLOBAL = type & $export.G; + var IS_STATIC = type & $export.S; + var IS_PROTO = type & $export.P; + var IS_BIND = type & $export.B; + var IS_WRAP = type & $export.W; + var exports = IS_GLOBAL ? core : core[name] || (core[name] = {}); + var expProto = exports[PROTOTYPE]; + var target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE]; + var key, own, out; + if (IS_GLOBAL) source = name; + for (key in source) { + // contains in native + own = !IS_FORCED && target && target[key] !== undefined; + if (own && has(exports, key)) continue; + // export native or passed + out = own ? target[key] : source[key]; + // prevent global pollution for namespaces + exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key] + // bind timers to global for call from export context + : IS_BIND && own ? ctx(out, global) + // wrap global constructors for prevent change them in library + : IS_WRAP && target[key] == out ? (function (C) { + var F = function (a, b, c) { + if (this instanceof C) { + switch (arguments.length) { + case 0: return new C(); + case 1: return new C(a); + case 2: return new C(a, b); + } return new C(a, b, c); + } return C.apply(this, arguments); + }; + F[PROTOTYPE] = C[PROTOTYPE]; + return F; + // make static versions for prototype methods + })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out; + // export proto methods to core.%CONSTRUCTOR%.methods.%NAME% + if (IS_PROTO) { + (exports.virtual || (exports.virtual = {}))[key] = out; + // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME% + if (type & $export.R && expProto && !expProto[key]) hide(expProto, key, out); + } + } +}; +// type bitmap +$export.F = 1; // forced +$export.G = 2; // global +$export.S = 4; // static +$export.P = 8; // proto +$export.B = 16; // bind +$export.W = 32; // wrap +$export.U = 64; // safe +$export.R = 128; // real proto method for `library` +module.exports = $export; + + +/***/ }), +/* 24 */ +/*!************************************************************!*\ + !*** ./node_modules/core-js/library/modules/_object-dp.js ***! + \************************************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { + +var anObject = __webpack_require__(/*! ./_an-object */ 44); +var IE8_DOM_DEFINE = __webpack_require__(/*! ./_ie8-dom-define */ 242); +var toPrimitive = __webpack_require__(/*! ./_to-primitive */ 133); +var dP = Object.defineProperty; + +exports.f = __webpack_require__(/*! ./_descriptors */ 25) ? Object.defineProperty : function defineProperty(O, P, Attributes) { + anObject(O); + P = toPrimitive(P, true); + anObject(Attributes); + if (IE8_DOM_DEFINE) try { + return dP(O, P, Attributes); + } catch (e) { /* empty */ } + if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!'); + if ('value' in Attributes) O[P] = Attributes.value; + return O; +}; + + +/***/ }), +/* 25 */ +/*!**************************************************************!*\ + !*** ./node_modules/core-js/library/modules/_descriptors.js ***! + \**************************************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { + +// Thank's IE8 for his funny defineProperty +module.exports = !__webpack_require__(/*! ./_fails */ 38)(function () { + return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7; +}); + + +/***/ }), +/* 26 */ +/*!******************************************************!*\ + !*** ./node_modules/core-js/library/modules/_has.js ***! + \******************************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports) { + +var hasOwnProperty = {}.hasOwnProperty; +module.exports = function (it, key) { + return hasOwnProperty.call(it, key); +}; + + +/***/ }), +/* 27 */ /*!****************************************!*\ !*** ./node_modules/lodash/_Symbol.js ***! \****************************************/ -/*! no static exports found */ +/*! dynamic exports provided */ /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { @@ -1527,17 +1705,17 @@ module.exports = Symbol; /***/ }), -/* 23 */ +/* 28 */ /*!*************************************!*\ !*** ./node_modules/lodash/keys.js ***! \*************************************/ -/*! no static exports found */ +/*! dynamic exports provided */ /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { -var arrayLikeKeys = __webpack_require__(/*! ./_arrayLikeKeys */ 121), - baseKeys = __webpack_require__(/*! ./_baseKeys */ 236), - isArrayLike = __webpack_require__(/*! ./isArrayLike */ 24); +var arrayLikeKeys = __webpack_require__(/*! ./_arrayLikeKeys */ 157), + baseKeys = __webpack_require__(/*! ./_baseKeys */ 303), + isArrayLike = __webpack_require__(/*! ./isArrayLike */ 29); /** * Creates an array of the own enumerable property names of `object`. @@ -1575,16 +1753,16 @@ module.exports = keys; /***/ }), -/* 24 */ +/* 29 */ /*!********************************************!*\ !*** ./node_modules/lodash/isArrayLike.js ***! \********************************************/ -/*! no static exports found */ +/*! dynamic exports provided */ /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { -var isFunction = __webpack_require__(/*! ./isFunction */ 112), - isLength = __webpack_require__(/*! ./isLength */ 61); +var isFunction = __webpack_require__(/*! ./isFunction */ 148), + isLength = __webpack_require__(/*! ./isLength */ 83); /** * Checks if `value` is array-like. A value is considered array-like if it's @@ -1619,18 +1797,18 @@ module.exports = isArrayLike; /***/ }), -/* 25 */ +/* 30 */ /*!******************************************!*\ !*** ./node_modules/lodash/_castPath.js ***! \******************************************/ -/*! no static exports found */ +/*! dynamic exports provided */ /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { var isArray = __webpack_require__(/*! ./isArray */ 14), - isKey = __webpack_require__(/*! ./_isKey */ 62), - stringToPath = __webpack_require__(/*! ./_stringToPath */ 244), - toString = __webpack_require__(/*! ./toString */ 128); + isKey = __webpack_require__(/*! ./_isKey */ 84), + stringToPath = __webpack_require__(/*! ./_stringToPath */ 311), + toString = __webpack_require__(/*! ./toString */ 164); /** * Casts `value` to a path array if it's not one. @@ -1651,15 +1829,15 @@ module.exports = castPath; /***/ }), -/* 26 */ +/* 31 */ /*!***************************************!*\ !*** ./node_modules/lodash/_toKey.js ***! \***************************************/ -/*! no static exports found */ +/*! dynamic exports provided */ /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { -var isSymbol = __webpack_require__(/*! ./isSymbol */ 46); +var isSymbol = __webpack_require__(/*! ./isSymbol */ 57); /** Used as references for various `Number` constants. */ var INFINITY = 1 / 0; @@ -1683,11 +1861,11 @@ module.exports = toKey; /***/ }), -/* 27 */ +/* 32 */ /*!*********************************************!*\ !*** ./node_modules/object-assign/index.js ***! \*********************************************/ -/*! no static exports found */ +/*! dynamic exports provided */ /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { @@ -1785,16 +1963,273 @@ module.exports = shouldUseNative() ? Object.assign : function (target, source) { /***/ }), -/* 28 */ +/* 33 */ +/*!*****************************************!*\ + !*** ./node_modules/react-dom/index.js ***! + \*****************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +/* WEBPACK VAR INJECTION */(function(process) { + +function checkDCE() { + /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */ + if ( + typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' || + typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function' + ) { + return; + } + if (process.env.NODE_ENV !== 'production') { + // This branch is unreachable because this function is only called + // in production, but the condition is true only in development. + // Therefore if the branch is still here, dead code elimination wasn't + // properly applied. + // Don't change the message. React DevTools relies on it. Also make sure + // this message doesn't occur elsewhere in this function, or it will cause + // a false positive. + throw new Error('^_^'); + } + try { + // Verify that the code above has been dead code eliminated (DCE'd). + __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE); + } catch (err) { + // DevTools shouldn't crash React, no matter what. + // We should still report in case we break this code. + console.error(err); + } +} + +if (process.env.NODE_ENV === 'production') { + // DCE check should happen before ReactDOM bundle executes so that + // DevTools can report bad minification during injection. + checkDCE(); + module.exports = __webpack_require__(/*! ./cjs/react-dom.production.min.js */ 352); +} else { + module.exports = __webpack_require__(/*! ./cjs/react-dom.development.js */ 355); +} + +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(/*! ./../process/browser.js */ 6))) + +/***/ }), +/* 34 */ +/*!*************************************!*\ + !*** ./src/blocks/post/function.js ***! + \*************************************/ +/*! exports provided: useInnerBlockLayoutContext, InnerBlockLayoutContextProvider, DEFAULT_POST_LIST_LAYOUT, renderPostLayout, registeredBlockComponents, registerBlockComponent, getBlockMap, getRegisteredBlockComponents, getPostLayoutConfig */ +/*! exports used: DEFAULT_POST_LIST_LAYOUT, InnerBlockLayoutContextProvider, getBlockMap, getPostLayoutConfig, renderPostLayout */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* unused harmony export useInnerBlockLayoutContext */ +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return InnerBlockLayoutContextProvider; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return DEFAULT_POST_LIST_LAYOUT; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return renderPostLayout; }); +/* unused harmony export registeredBlockComponents */ +/* unused harmony export registerBlockComponent */ +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return getBlockMap; }); +/* unused harmony export getRegisteredBlockComponents */ +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return getPostLayoutConfig; }); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__post_title_edit__ = __webpack_require__(/*! ./post-title/edit */ 184); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__post_meta_edit__ = __webpack_require__(/*! ./post-meta/edit */ 185); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__post_image_edit__ = __webpack_require__(/*! ./post-image/edit */ 186); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__post_excerpt_edit__ = __webpack_require__(/*! ./post-excerpt/edit */ 187); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__post_button_edit__ = __webpack_require__(/*! ./post-button/edit */ 189); +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; + +var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + +var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }(); + +/** + * External dependencies + */ + + + + + +var _wp$element = wp.element, + createContext = _wp$element.createContext, + useContext = _wp$element.useContext, + Suspense = _wp$element.Suspense; + +var InnerBlockLayoutContext = createContext({ + parentName: '', + parentClassName: '', + isLoading: false +}); + +var useInnerBlockLayoutContext = function useInnerBlockLayoutContext() { + return useContext(InnerBlockLayoutContext); +}; + +var InnerBlockLayoutContextProvider = function InnerBlockLayoutContextProvider(_ref) { + var _ref$parentName = _ref.parentName, + parentName = _ref$parentName === undefined ? '' : _ref$parentName, + _ref$parentClassName = _ref.parentClassName, + parentClassName = _ref$parentClassName === undefined ? '' : _ref$parentClassName, + children = _ref.children; + + var contextValue = { + parentName: parentName, + parentClassName: parentClassName + }; + return wp.element.createElement( + InnerBlockLayoutContext.Provider, + { value: contextValue }, + children + ); +}; + +var DEFAULT_POST_LIST_LAYOUT = [['uagb/post-image'], ['uagb/post-title'], ['uagb/post-meta'], ['uagb/post-excerpt'], ['uagb/post-button']]; +var renderPostLayout = function renderPostLayout(blockName, post, layoutConfig, attributes, categoriesList) { + if (!layoutConfig) { + return; + } + + var blockMap = getBlockMap(blockName); + + return layoutConfig.map(function (_ref2, index) { + var _ref3 = _slicedToArray(_ref2, 2), + name = _ref3[0], + _ref3$ = _ref3[1], + props = _ref3$ === undefined ? {} : _ref3$; + + var children = []; + + if (!!props.children && props.children.length > 0) { + children = renderPostLayout(blockName, post, props.children, attributes, categoriesList); + } + + var LayoutComponent = blockMap[name]; + if (!LayoutComponent) { + return null; + } + + return wp.element.createElement( + Suspense, + { + fallback: wp.element.createElement('div', { className: 'wc-block-placeholder' }) + }, + wp.element.createElement(LayoutComponent, _extends({}, props, { + post: post, + attributes: attributes, + categoriesList: categoriesList + })) + ); + }); +}; +var registeredBlockComponents = {}; + + + +function registerBlockComponent(options) { + if (!options.context) { + options.context = 'any'; + } + assertOption(options, 'context', 'string'); + assertOption(options, 'blockName', 'string'); + assertBlockComponent(options, 'component'); + + var context = options.context, + blockName = options.blockName, + component = options.component; + + + if (!registeredBlockComponents[context]) { + registeredBlockComponents[context] = {}; + } + + registeredBlockComponents[context][blockName] = component; +} + +var assertBlockComponent = function assertBlockComponent(options, optionName) { + if (options[optionName]) { + if (typeof options[optionName] === 'function') { + return; + } + if (options[optionName].$$typeof && options[optionName].$$typeof === Symbol.for('react.lazy')) { + return; + } + } + throw new Error('Incorrect value for the ' + optionName + ' argument when registering a block component. Component must be a valid React Element or Lazy callback.'); +}; + +var assertOption = function assertOption(options, optionName, expectedType) { + var actualType = _typeof(options[optionName]); + if (actualType !== expectedType) { + throw new Error('Incorrect value for the ' + optionName + ' argument when registering a block component. It was a ' + actualType + ', but must be a ' + expectedType + '.'); + } +}; + +registerBlockComponent({ + blockName: 'uagb/post-title', + component: __WEBPACK_IMPORTED_MODULE_0__post_title_edit__["a" /* PostTitle */] +}); + +registerBlockComponent({ + blockName: 'uagb/post-image', + component: __WEBPACK_IMPORTED_MODULE_2__post_image_edit__["a" /* PostImage */] +}); + +registerBlockComponent({ + blockName: 'uagb/post-meta', + component: __WEBPACK_IMPORTED_MODULE_1__post_meta_edit__["a" /* PostMeta */] +}); + +registerBlockComponent({ + blockName: 'uagb/post-excerpt', + component: __WEBPACK_IMPORTED_MODULE_3__post_excerpt_edit__["a" /* PostExcerpt */] +}); + +registerBlockComponent({ + blockName: 'uagb/post-button', + component: __WEBPACK_IMPORTED_MODULE_4__post_button_edit__["a" /* PostButton */] +}); + +var getBlockMap = function getBlockMap(blockName) { + return getRegisteredBlockComponents(blockName); +}; + +function getRegisteredBlockComponents(context) { + + var parentInnerBlocks = _typeof(registeredBlockComponents[context]) === 'object' && Object.keys(registeredBlockComponents[context]).length > 0 ? registeredBlockComponents[context] : {}; + + return _extends({}, parentInnerBlocks, registeredBlockComponents.any); +} + +/** + * Converts innerblocks to a list of layout configs. + * + * @param {Object[]} innerBlocks Inner block components. + */ +var getPostLayoutConfig = function getPostLayoutConfig(innerBlocks) { + if (!innerBlocks || innerBlocks.length === 0) { + return []; + } + + return innerBlocks.map(function (block) { + return [block.name, _extends({}, block.attributes, { + post: undefined, + children: block.innerBlocks.length > 0 ? getPostLayoutConfig(block.innerBlocks) : [] + })]; + }); +}; + +/***/ }), +/* 35 */ /*!********************************************!*\ !*** ./node_modules/lodash/_copyObject.js ***! \********************************************/ -/*! no static exports found */ +/*! dynamic exports provided */ /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { -var assignValue = __webpack_require__(/*! ./_assignValue */ 48), - baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ 142); +var assignValue = __webpack_require__(/*! ./_assignValue */ 64), + baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ 190); /** * Copies properties of `source` to `object`. @@ -1836,7 +2271,97 @@ module.exports = copyObject; /***/ }), -/* 29 */ +/* 36 */ +/*!*******************************************************!*\ + !*** ./node_modules/core-js/library/modules/_hide.js ***! + \*******************************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { + +var dP = __webpack_require__(/*! ./_object-dp */ 24); +var createDesc = __webpack_require__(/*! ./_property-desc */ 69); +module.exports = __webpack_require__(/*! ./_descriptors */ 25) ? function (object, key, value) { + return dP.f(object, key, createDesc(1, value)); +} : function (object, key, value) { + object[key] = value; + return object; +}; + + +/***/ }), +/* 37 */ +/*!************************************************************!*\ + !*** ./node_modules/core-js/library/modules/_is-object.js ***! + \************************************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports) { + +module.exports = function (it) { + return typeof it === 'object' ? it !== null : typeof it === 'function'; +}; + + +/***/ }), +/* 38 */ +/*!********************************************************!*\ + !*** ./node_modules/core-js/library/modules/_fails.js ***! + \********************************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports) { + +module.exports = function (exec) { + try { + return !!exec(); + } catch (e) { + return true; + } +}; + + +/***/ }), +/* 39 */ +/*!*************************************************************!*\ + !*** ./node_modules/core-js/library/modules/_to-iobject.js ***! + \*************************************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { + +// to indexed object, toObject with fallback for non-array-like ES3 strings +var IObject = __webpack_require__(/*! ./_iobject */ 245); +var defined = __webpack_require__(/*! ./_defined */ 134); +module.exports = function (it) { + return IObject(defined(it)); +}; + + +/***/ }), +/* 40 */ +/*!******************************************************!*\ + !*** ./node_modules/core-js/library/modules/_wks.js ***! + \******************************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { + +var store = __webpack_require__(/*! ./_shared */ 137)('wks'); +var uid = __webpack_require__(/*! ./_uid */ 72); +var Symbol = __webpack_require__(/*! ./_global */ 20).Symbol; +var USE_SYMBOL = typeof Symbol == 'function'; + +var $exports = module.exports = function (name) { + return store[name] || (store[name] = + USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name)); +}; + +$exports.store = store; + + +/***/ }), +/* 41 */ /*!***********************************************************!*\ !*** ./node_modules/@emotion/css/dist/css.browser.esm.js ***! \***********************************************************/ @@ -1845,7 +2370,7 @@ module.exports = copyObject; /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__emotion_serialize__ = __webpack_require__(/*! @emotion/serialize */ 134); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__emotion_serialize__ = __webpack_require__(/*! @emotion/serialize */ 89); function css() { @@ -1853,1825 +2378,911 @@ function css() { args[_key] = arguments[_key]; } - return __WEBPACK_IMPORTED_MODULE_0__emotion_serialize__["a" /* serializeStyles */](args); + return Object(__WEBPACK_IMPORTED_MODULE_0__emotion_serialize__["a" /* serializeStyles */])(args); } /* harmony default export */ __webpack_exports__["a"] = (css); /***/ }), -/* 30 */ -/*!**********************************************!*\ - !*** ./src/blocks/timeline/inline-styles.js ***! - \**********************************************/ -/*! exports provided: default */ -/*! exports used: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { +/* 42 */ +/*!****************************************************************!*\ + !*** ./node_modules/react-slick/lib/utils/innerSliderUtils.js ***! + \****************************************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { "use strict"; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSS__ = __webpack_require__(/*! ../../../dist/blocks/uagb-controls/generateCSS */ 5); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__ = __webpack_require__(/*! ../../../dist/blocks/uagb-controls/generateCSSUnit */ 4); -/** - * Returns Dynamic Generated CSS - */ +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.clamp = clamp; +exports.canUseDOM = exports.slidesOnLeft = exports.slidesOnRight = exports.siblingDirection = exports.getTotalSlides = exports.getPostClones = exports.getPreClones = exports.getTrackLeft = exports.getTrackAnimateCSS = exports.getTrackCSS = exports.checkSpecKeys = exports.getSlideCount = exports.checkNavigable = exports.getNavigableIndexes = exports.swipeEnd = exports.swipeMove = exports.swipeStart = exports.keyHandler = exports.changeSlide = exports.slideHandler = exports.initializedState = exports.extractObject = exports.canGoNext = exports.getSwipeDirection = exports.getHeight = exports.getWidth = exports.lazySlidesOnRight = exports.lazySlidesOnLeft = exports.lazyEndIndex = exports.lazyStartIndex = exports.getRequiredLazySlides = exports.getOnDemandLazySlides = void 0; +var _react = _interopRequireDefault(__webpack_require__(/*! react */ 5)); -function contentTimelineStyle(props) { - var _props$attributes = props.attributes, - dateBottomspace = _props$attributes.dateBottomspace, - backgroundColor = _props$attributes.backgroundColor, - separatorColor = _props$attributes.separatorColor, - separatorFillColor = _props$attributes.separatorFillColor, - separatorBg = _props$attributes.separatorBg, - separatorBorder = _props$attributes.separatorBorder, - borderFocus = _props$attributes.borderFocus, - verticalSpace = _props$attributes.verticalSpace, - horizontalSpace = _props$attributes.horizontalSpace, - separatorwidth = _props$attributes.separatorwidth, - borderwidth = _props$attributes.borderwidth, - connectorBgsize = _props$attributes.connectorBgsize, - borderRadius = _props$attributes.borderRadius, - bgPadding = _props$attributes.bgPadding, - width = _props$attributes.width, - readMoreText = _props$attributes.readMoreText, - icon = _props$attributes.icon, - iconColor = _props$attributes.iconColor, - dateFontsizeType = _props$attributes.dateFontsizeType, - dateFontsize = _props$attributes.dateFontsize, - dateFontsizeTablet = _props$attributes.dateFontsizeTablet, - dateFontsizeMobile = _props$attributes.dateFontsizeMobile, - dateFontFamily = _props$attributes.dateFontFamily, - dateFontWeight = _props$attributes.dateFontWeight, - dateFontSubset = _props$attributes.dateFontSubset, - dateLineHeightType = _props$attributes.dateLineHeightType, - dateLineHeight = _props$attributes.dateLineHeight, - dateLineHeightTablet = _props$attributes.dateLineHeightTablet, - dateLineHeightMobile = _props$attributes.dateLineHeightMobile, - dateLoadGoogleFonts = _props$attributes.dateLoadGoogleFonts, - dateColor = _props$attributes.dateColor, - iconSize = _props$attributes.iconSize, - iconFocus = _props$attributes.iconFocus, - iconBgFocus = _props$attributes.iconBgFocus, - block_id = _props$attributes.block_id, - headFontSizeType = _props$attributes.headFontSizeType, - headFontSize = _props$attributes.headFontSize, - headFontSizeTablet = _props$attributes.headFontSizeTablet, - headFontSizeMobile = _props$attributes.headFontSizeMobile, - headFontFamily = _props$attributes.headFontFamily, - headFontWeight = _props$attributes.headFontWeight, - headFontSubset = _props$attributes.headFontSubset, - headLineHeightType = _props$attributes.headLineHeightType, - headLineHeight = _props$attributes.headLineHeight, - headLineHeightTablet = _props$attributes.headLineHeightTablet, - headLineHeightMobile = _props$attributes.headLineHeightMobile, - headLoadGoogleFonts = _props$attributes.headLoadGoogleFonts, - align = _props$attributes.align, - headingColor = _props$attributes.headingColor, - headSpace = _props$attributes.headSpace, - subHeadFontSizeType = _props$attributes.subHeadFontSizeType, - subHeadFontSize = _props$attributes.subHeadFontSize, - subHeadFontSizeTablet = _props$attributes.subHeadFontSizeTablet, - subHeadFontSizeMobile = _props$attributes.subHeadFontSizeMobile, - subHeadFontFamily = _props$attributes.subHeadFontFamily, - subHeadFontWeight = _props$attributes.subHeadFontWeight, - subHeadFontSubset = _props$attributes.subHeadFontSubset, - subHeadLineHeightType = _props$attributes.subHeadLineHeightType, - subHeadLineHeight = _props$attributes.subHeadLineHeight, - subHeadLineHeightTablet = _props$attributes.subHeadLineHeightTablet, - subHeadLineHeightMobile = _props$attributes.subHeadLineHeightMobile, - subHeadLoadGoogleFonts = _props$attributes.subHeadLoadGoogleFonts, - subHeadingColor = _props$attributes.subHeadingColor, - authorSpace = _props$attributes.authorSpace, - authorColor = _props$attributes.authorColor, - authorFontSizeType = _props$attributes.authorFontSizeType, - authorFontSize = _props$attributes.authorFontSize, - authorFontSizeTablet = _props$attributes.authorFontSizeTablet, - authorFontSizeMobile = _props$attributes.authorFontSizeMobile, - authorFontFamily = _props$attributes.authorFontFamily, - authorFontWeight = _props$attributes.authorFontWeight, - authorFontSubset = _props$attributes.authorFontSubset, - authorLineHeightType = _props$attributes.authorLineHeightType, - authorLineHeight = _props$attributes.authorLineHeight, - authorLineHeightTablet = _props$attributes.authorLineHeightTablet, - authorLineHeightMobile = _props$attributes.authorLineHeightMobile, - authorLoadGoogleFonts = _props$attributes.authorLoadGoogleFonts, - ctaColor = _props$attributes.ctaColor, - ctaFontSizeType = _props$attributes.ctaFontSizeType, - ctaFontSize = _props$attributes.ctaFontSize, - ctaFontSizeTablet = _props$attributes.ctaFontSizeTablet, - ctaFontSizeMobile = _props$attributes.ctaFontSizeMobile, - ctaFontFamily = _props$attributes.ctaFontFamily, - ctaFontWeight = _props$attributes.ctaFontWeight, - ctaFontSubset = _props$attributes.ctaFontSubset, - ctaLineHeightType = _props$attributes.ctaLineHeightType, - ctaLineHeight = _props$attributes.ctaLineHeight, - ctaLineHeightTablet = _props$attributes.ctaLineHeightTablet, - ctaLineHeightMobile = _props$attributes.ctaLineHeightMobile, - ctaLoadGoogleFonts = _props$attributes.ctaLoadGoogleFonts, - ctaBackground = _props$attributes.ctaBackground; +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } +function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } - var resp_selectors = "left"; +function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } - var selectors = { - " .uagb-timeline__heading": { - "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](headFontSize, headFontSizeType), - "font-family": headFontFamily, - "font-weight": headFontWeight, - "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](headLineHeight, headLineHeightType), - "text-align": align, - "color": headingColor - }, - " .uagb-timeline__heading a": { - "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](headFontSize, headFontSizeType), - "font-family": headFontFamily, - "font-weight": headFontWeight, - "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](headLineHeight, headLineHeightType), - "text-align": align, - "color": headingColor - }, - " .uagb-timeline__heading-text": { - "margin-bottom": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](headSpace, "px") - }, - " .uagb-timeline-desc-content": { - "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](subHeadFontSize, subHeadFontSizeType), - "font-family": subHeadFontFamily, - "font-weight": subHeadFontWeight, - "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](subHeadLineHeight, subHeadLineHeightType), - "text-align": align, - "color": subHeadingColor - }, - " .uagb-timeline__events-new": { - "text-align": align - }, - " .uagb-timeline__date-inner": { - "text-align": align - }, - " .uagb-timeline__center-block .uagb-timeline__day-right .uagb-timeline__arrow:after": { - "border-left-color": backgroundColor - }, - " .uagb-timeline__right-block .uagb-timeline__day-right .uagb-timeline__arrow:after": { - "border-left-color": backgroundColor - }, - " .uagb-timeline__center-block .uagb-timeline__day-left .uagb-timeline__arrow:after": { - "border-right-color": backgroundColor - }, - " .uagb-timeline__left-block .uagb-timeline__day-left .uagb-timeline__arrow:after": { - "border-right-color": backgroundColor - }, - " .uagb-timeline__line__inner": { - "background-color": separatorFillColor - }, - " .uagb-timeline__line": { - "background-color": separatorColor, - "width": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](separatorwidth, "px") - }, - " .uagb-timeline__right-block .uagb-timeline__line": { - "right": "calc( " + connectorBgsize + "px / 2 )" - }, - " .uagb-timeline__left-block .uagb-timeline__line": { - "left": "calc( " + connectorBgsize + "px / 2 )" - }, - " .uagb-timeline__center-block .uagb-timeline__line": { - "right": "calc( " + connectorBgsize + "px / 2 )" - }, - " .uagb-timeline__marker": { - "background-color": separatorBg, - "min-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](connectorBgsize, "px"), - "min-width": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](connectorBgsize, "px"), - "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](connectorBgsize, "px"), - "border": borderwidth + "px solid" + separatorBorder - }, - " .uagb-timeline__left-block .uagb-timeline__left .uagb-timeline__arrow": { - "height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](connectorBgsize, "px") - }, - " .uagb-timeline__right-block .uagb-timeline__right .uagb-timeline__arrow": { - "height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](connectorBgsize, "px") - }, - " .uagb-timeline__center-block .uagb-timeline__left .uagb-timeline__arrow": { - "height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](connectorBgsize, "px") - }, - " .uagb-timeline__center-block .uagb-timeline__right .uagb-timeline__arrow": { - "height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](connectorBgsize, "px") - }, - " .uagb-timeline__center-block .uagb-timeline__marker": { - "margin-left": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](horizontalSpace, "px"), - "margin-right": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](horizontalSpace, "px") - }, - " .uagb-timeline__field:not(:last-child)": { - "margin-bottom": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](verticalSpace, "px") - }, - " .uagb-timeline__date-hide.uagb-timeline__date-inner": { - "margin-bottom": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](dateBottomspace, "px"), - "color": dateColor, - "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](dateFontsize, dateFontsizeType), - "font-family": dateFontFamily, - "font-weight": dateFontWeight, - "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](dateLineHeight, dateLineHeightType), - "text-align": align - }, - " .uagb-timeline__left-block .uagb-timeline__day-new.uagb-timeline__day-left": { - "margin-left": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](horizontalSpace, "px") - }, - " .uagb-timeline__right-block .uagb-timeline__day-new.uagb-timeline__day-right": { - "margin-right": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](horizontalSpace, "px") - }, - " .uagb-timeline__date-new": { - "color": dateColor, - "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](dateFontsize, dateFontsizeType), - "font-family": dateFontFamily, - "font-weight": dateFontWeight, - "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](dateLineHeight, dateLineHeightType) - }, - " .uagb-timeline__events-inner-new": { - "background-color": backgroundColor, - "border-radius": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](borderRadius, "px"), - "padding": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](bgPadding, "px") - }, - " .uagb-timeline__main .uagb-timeline__icon-new": { - "color": iconColor, - "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](iconSize, "px"), - "width": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](iconSize, "px") - }, - " .uagb-timeline__main .uagb-timeline__marker.uagb-timeline__in-view-icon": { - "background": iconBgFocus, - "border-color": borderFocus - }, - " .uagb-timeline__main .uagb-timeline__marker.uagb-timeline__in-view-icon .uagb-timeline__icon-new": { - "color": iconFocus - }, - " .uagb-timeline__main .uagb-timeline__icon-new svg": { - "fill": iconColor - }, - " .uagb-timeline__main .uagb-timeline__marker.uagb-timeline__in-view-icon .uagb-timeline__icon-new svg": { - "fill": iconFocus - }, +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - //Author and CTA - " .uagb-timeline__author": { - "margin-bottom": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](authorSpace, "px"), - "text-align": align - }, - " .uagb-timeline__author .dashicons-admin-users": { - "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](authorFontSize, authorFontSizeType), - "font-weight": authorFontWeight, - "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](authorLineHeight, authorLineHeightType), - "color": authorColor - }, - " .uagb-timeline__author-link": { - "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](authorFontSize, authorFontSizeType), - "font-family": authorFontFamily, - "font-weight": authorFontWeight, - "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](authorLineHeight, authorLineHeightType), - "color": authorColor - }, +function clamp(number, lowerBound, upperBound) { + return Math.max(lowerBound, Math.min(number, upperBound)); +} - " .uagb-timeline__link_parent": { - "text-align": align - }, - " .uagb-timeline__link": { - "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaFontSize, ctaFontSizeType), - "font-family": ctaFontFamily, - "font-weight": ctaFontWeight, - "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaLineHeight, ctaLineHeightType), - "color": ctaColor, - "background-color": ctaBackground - } +var getOnDemandLazySlides = function getOnDemandLazySlides(spec) { + var onDemandSlides = []; + var startIndex = lazyStartIndex(spec); + var endIndex = lazyEndIndex(spec); - /* Generate Responsive CSS for timeline */ - };var tablet_selectors = { - " .uagb-timeline__date-hide.uagb-timeline__date-inner": { - "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](dateFontsizeTablet, dateFontsizeType), - "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](dateLineHeightTablet, dateLineHeightType) - }, - " .uagb-timeline__date-new": { - "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](dateFontsizeTablet, dateFontsizeType), - "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](dateLineHeightTablet, dateLineHeightType) - }, - " .uagb-timeline__heading": { - "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](headFontSizeTablet, headFontSizeType), - "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](headLineHeightTablet, headLineHeightType) - }, - " .uagb-timeline__heading a": { - "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](headFontSizeTablet, headFontSizeType), - "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](headLineHeightTablet, headLineHeightType) - }, - " .uagb-timeline-desc-content": { - "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](subHeadFontSizeTablet, subHeadFontSizeType), - "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](subHeadLineHeightTablet, subHeadLineHeightType) - }, - " .uagb-timeline__center-block .uagb-timeline__marker": { - "margin-left": 0, - "margin-right": 0 - }, - " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__heading": { - "text-align": resp_selectors - }, - " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-desc-content": { - "text-align": resp_selectors - }, - " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__events-new": { - "text-align": resp_selectors - }, - " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__date-inner": { - "text-align": resp_selectors - }, - " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__date-hide.uagb-timeline__date-inner": { - "text-align": resp_selectors - }, - " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-right .uagb-timeline__arrow:after": { - "border-right-color": backgroundColor - }, - " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__line": { - "left": "calc( " + connectorBgsize + "px / 2 )" - }, - " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__author": { - "text-align": resp_selectors - }, - " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__link_parent": { - "text-align": resp_selectors - }, - " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__image a": { - "text-align": resp_selectors - }, + for (var slideIndex = startIndex; slideIndex < endIndex; slideIndex++) { + if (spec.lazyLoadedList.indexOf(slideIndex) < 0) { + onDemandSlides.push(slideIndex); + } + } - // CTA AUTHOR. - " .uagb-timeline__author .dashicons-admin-users": { - "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](authorFontSizeTablet, authorFontSizeType), - "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](authorLineHeightTablet, authorLineHeightType) - }, - " .uagb-timeline__author-link": { - "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](authorFontSizeTablet, authorFontSizeType), - "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](authorLineHeightTablet, authorLineHeightType) - }, - " .uagb-timeline__link": { - "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaFontSizeTablet, ctaFontSizeType), - "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaLineHeightTablet, ctaLineHeightType) - } - }; + return onDemandSlides; +}; // return list of slides that need to be present - var mobile_selectors = { - " .uagb-timeline__date-hide.uagb-timeline__date-inner": { - "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](dateFontsizeMobile, dateFontsizeType), - "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](dateLineHeightMobile, dateLineHeightType) - }, - " .uagb-timeline__date-new": { - "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](dateFontsizeMobile, dateFontsizeType), - "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](dateLineHeightMobile, dateLineHeightType) - }, - " .uagb-timeline__heading": { - "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](headFontSizeMobile, headFontSizeType), - "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](headLineHeightMobile, headLineHeightType) - }, - " .uagb-timeline__heading a": { - "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](headFontSizeMobile, headFontSizeType), - "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](headLineHeightMobile, headLineHeightType) - }, - " .uagb-timeline-desc-content": { - "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](subHeadFontSizeMobile, subHeadFontSizeType), - "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](subHeadLineHeightMobile, subHeadLineHeightType) - }, - " .uagb-timeline__center-block .uagb-timeline__marker": { - "margin-left": 0, - "margin-right": 0 - }, - " .uagb-timeline__center-block .uagb-timeline__day-new.uagb-timeline__day-left": { - "margin-left": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](horizontalSpace, "px") - }, - " .uagb-timeline__center-block .uagb-timeline__day-new.uagb-timeline__day-right": { - "margin-left": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](horizontalSpace, "px") - }, - " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__heading": { - "text-align": resp_selectors - }, - " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-desc-content": { - "text-align": resp_selectors - }, - " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__events-new": { - "text-align": resp_selectors - }, - " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__date-inner": { - "text-align": resp_selectors - }, - " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__date-hide.uagb-timeline__date-inner": { - "text-align": resp_selectors - }, - " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-right .uagb-timeline__arrow:after": { - "border-right-color": backgroundColor - }, - " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__line": { - "left": "calc( " + connectorBgsize + "px / 2 )" - }, - " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__author": { - "text-align": resp_selectors - }, - " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__link_parent": { - "text-align": resp_selectors - }, - " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__image a": { - "text-align": resp_selectors - }, - // CTA AUthor - " .uagb-timeline__author .dashicons-admin-users": { - "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](authorFontSizeMobile, authorFontSizeType), - "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](authorLineHeightMobile, authorLineHeightType) - }, - " .uagb-timeline__author-link": { - "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](authorFontSizeMobile, authorFontSizeType), - "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](authorLineHeightMobile, authorLineHeightType) - }, - " .uagb-timeline__link": { - "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaFontSizeMobile, ctaFontSizeType), - "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaLineHeightMobile, ctaLineHeightType) - } - }; +exports.getOnDemandLazySlides = getOnDemandLazySlides; - var styling_css = ""; - var id = ".block-editor-page #wpwrap .uagb-block-" + props.clientId; +var getRequiredLazySlides = function getRequiredLazySlides(spec) { + var requiredSlides = []; + var startIndex = lazyStartIndex(spec); + var endIndex = lazyEndIndex(spec); - styling_css = __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSS__["a" /* default */](selectors, id); + for (var slideIndex = startIndex; slideIndex < endIndex; slideIndex++) { + requiredSlides.push(slideIndex); + } - styling_css += __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSS__["a" /* default */](tablet_selectors, id, true, "tablet"); + return requiredSlides; +}; // startIndex that needs to be present - styling_css += __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSS__["a" /* default */](mobile_selectors, id, true, "mobile"); - return styling_css; -} +exports.getRequiredLazySlides = getRequiredLazySlides; -/* harmony default export */ __webpack_exports__["a"] = (contentTimelineStyle); +var lazyStartIndex = function lazyStartIndex(spec) { + return spec.currentSlide - lazySlidesOnLeft(spec); +}; -/***/ }), -/* 31 */ -/*!****************************************!*\ - !*** ./src/blocks/timeline/classes.js ***! - \****************************************/ -/*! exports provided: default */ -/*! exports used: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { +exports.lazyStartIndex = lazyStartIndex; -"use strict"; -/** - * Returns Dynamic Generated Classes - */ +var lazyEndIndex = function lazyEndIndex(spec) { + return spec.currentSlide + lazySlidesOnRight(spec); +}; -function ContentTmClasses(attributes) { +exports.lazyEndIndex = lazyEndIndex; - /* Arrow position */ - var arrow_align_class = "uagb-timeline__arrow-top" + " "; - if (attributes.arrowlinAlignment == "center") { - arrow_align_class = "uagb-timeline__arrow-center" + " "; - } else if (attributes.arrowlinAlignment == "bottom") { - arrow_align_class = "uagb-timeline__arrow-bottom" + " "; - } +var lazySlidesOnLeft = function lazySlidesOnLeft(spec) { + return spec.centerMode ? Math.floor(spec.slidesToShow / 2) + (parseInt(spec.centerPadding) > 0 ? 1 : 0) : 0; +}; - /* Alignmnet */ - var align_class = "uagb-timeline__center-block " + " "; - if (attributes.timelinAlignment == "left") { - align_class = "uagb-timeline__left-block" + " "; - } else if (attributes.timelinAlignment == "right") { - align_class = "uagb-timeline__right-block" + " "; - } - align_class += arrow_align_class + ""; - align_class += "uagb-timeline__responsive-" + attributes.stack + " uagb-timeline"; +exports.lazySlidesOnLeft = lazySlidesOnLeft; - return [align_class]; -} +var lazySlidesOnRight = function lazySlidesOnRight(spec) { + return spec.centerMode ? Math.floor((spec.slidesToShow - 1) / 2) + 1 + (parseInt(spec.centerPadding) > 0 ? 1 : 0) : spec.slidesToShow; +}; // get width of an element -/* harmony default export */ __webpack_exports__["a"] = (ContentTmClasses); -/***/ }), -/* 32 */ -/*!**********************************************!*\ - !*** ./src/blocks/timeline/align-classes.js ***! - \**********************************************/ -/*! exports provided: default */ -/*! exports used: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { +exports.lazySlidesOnRight = lazySlidesOnRight; -"use strict"; -/** - * Function name: AlignClass - * @param array attributes settign array of attributes. - * @param int index_val index values. - */ -function AlignClass(attributes, index_val) { +var getWidth = function getWidth(elem) { + return elem && elem.offsetWidth || 0; +}; - var align_class = ""; - if ("left" == attributes.timelinAlignment) { - align_class = "uagb-timeline__widget uagb-timeline__left"; - } else if ("right" == attributes.timelinAlignment) { - align_class = "uagb-timeline__widget uagb-timeline__right"; - } else if ("center" == attributes.timelinAlignment) { - if (index_val % 2 == "0") { - align_class = "uagb-timeline__widget uagb-timeline__right"; - } else { - align_class = "uagb-timeline__widget uagb-timeline__left"; - } - } +exports.getWidth = getWidth; - return [align_class]; -} +var getHeight = function getHeight(elem) { + return elem && elem.offsetHeight || 0; +}; -/* harmony default export */ __webpack_exports__["a"] = (AlignClass); +exports.getHeight = getHeight; -/***/ }), -/* 33 */ -/*!**************************************************!*\ - !*** ./src/blocks/timeline/day-align-classes.js ***! - \**************************************************/ -/*! exports provided: default */ -/*! exports used: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { +var getSwipeDirection = function getSwipeDirection(touchObject) { + var verticalSwiping = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; + var xDist, yDist, r, swipeAngle; + xDist = touchObject.startX - touchObject.curX; + yDist = touchObject.startY - touchObject.curY; + r = Math.atan2(yDist, xDist); + swipeAngle = Math.round(r * 180 / Math.PI); -"use strict"; -/** - * Returns Dynamic Generated Classes - */ + if (swipeAngle < 0) { + swipeAngle = 360 - Math.abs(swipeAngle); + } -function DayAlignClass(attributes, index_val) { + if (swipeAngle <= 45 && swipeAngle >= 0 || swipeAngle <= 360 && swipeAngle >= 315) { + return "left"; + } - var day_align_class = ""; + if (swipeAngle >= 135 && swipeAngle <= 225) { + return "right"; + } - if ("left" == attributes.timelinAlignment) { - day_align_class = "uagb-timeline__day-new uagb-timeline__day-left"; - } else if ("right" == attributes.timelinAlignment) { - day_align_class = "uagb-timeline__day-new uagb-timeline__day-right"; - } else if ("center" == attributes.timelinAlignment) { - if (index_val % 2 == "0") { - day_align_class = "uagb-timeline__day-new uagb-timeline__day-right"; - } else { - day_align_class = "uagb-timeline__day-new uagb-timeline__day-left"; - } - } + if (verticalSwiping === true) { + if (swipeAngle >= 35 && swipeAngle <= 135) { + return "up"; + } else { + return "down"; + } + } - return [day_align_class]; -} + return "vertical"; +}; // whether or not we can go next -/* harmony default export */ __webpack_exports__["a"] = (DayAlignClass); -/***/ }), -/* 34 */ -/*!******************************************!*\ - !*** ./node_modules/lodash/_arrayMap.js ***! - \******************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports) { +exports.getSwipeDirection = getSwipeDirection; -/** - * A specialized version of `_.map` for arrays without support for iteratee - * shorthands. - * - * @private - * @param {Array} [array] The array to iterate over. - * @param {Function} iteratee The function invoked per iteration. - * @returns {Array} Returns the new mapped array. - */ -function arrayMap(array, iteratee) { - var index = -1, - length = array == null ? 0 : array.length, - result = Array(length); +var canGoNext = function canGoNext(spec) { + var canGo = true; - while (++index < length) { - result[index] = iteratee(array[index], index, array); + if (!spec.infinite) { + if (spec.centerMode && spec.currentSlide >= spec.slideCount - 1) { + canGo = false; + } else if (spec.slideCount <= spec.slidesToShow || spec.currentSlide >= spec.slideCount - spec.slidesToShow) { + canGo = false; + } } - return result; -} -module.exports = arrayMap; + return canGo; +}; // given an object and a list of keys, return new object with given keys -/***/ }), -/* 35 */ -/*!*******************************************!*\ - !*** ./node_modules/lodash/_ListCache.js ***! - \*******************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { +exports.canGoNext = canGoNext; -var listCacheClear = __webpack_require__(/*! ./_listCacheClear */ 194), - listCacheDelete = __webpack_require__(/*! ./_listCacheDelete */ 195), - listCacheGet = __webpack_require__(/*! ./_listCacheGet */ 196), - listCacheHas = __webpack_require__(/*! ./_listCacheHas */ 197), - listCacheSet = __webpack_require__(/*! ./_listCacheSet */ 198); +var extractObject = function extractObject(spec, keys) { + var newObject = {}; + keys.forEach(function (key) { + return newObject[key] = spec[key]; + }); + return newObject; +}; // get initialized state -/** - * Creates an list cache object. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ -function ListCache(entries) { - var index = -1, - length = entries == null ? 0 : entries.length; - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } -} +exports.extractObject = extractObject; -// Add methods to `ListCache`. -ListCache.prototype.clear = listCacheClear; -ListCache.prototype['delete'] = listCacheDelete; -ListCache.prototype.get = listCacheGet; -ListCache.prototype.has = listCacheHas; -ListCache.prototype.set = listCacheSet; +var initializedState = function initializedState(spec) { + // spec also contains listRef, trackRef + var slideCount = _react["default"].Children.count(spec.children); -module.exports = ListCache; + var listNode = spec.listRef; + var listWidth = Math.ceil(getWidth(listNode)); + var trackNode = spec.trackRef && spec.trackRef.node; + var trackWidth = Math.ceil(getWidth(trackNode)); + var slideWidth; + if (!spec.vertical) { + var centerPaddingAdj = spec.centerMode && parseInt(spec.centerPadding) * 2; -/***/ }), -/* 36 */ -/*!**********************************************!*\ - !*** ./node_modules/lodash/_assocIndexOf.js ***! - \**********************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { + if (typeof spec.centerPadding === "string" && spec.centerPadding.slice(-1) === "%") { + centerPaddingAdj *= listWidth / 100; + } -var eq = __webpack_require__(/*! ./eq */ 37); + slideWidth = Math.ceil((listWidth - centerPaddingAdj) / spec.slidesToShow); + } else { + slideWidth = listWidth; + } -/** - * Gets the index at which the `key` is found in `array` of key-value pairs. - * - * @private - * @param {Array} array The array to inspect. - * @param {*} key The key to search for. - * @returns {number} Returns the index of the matched value, else `-1`. - */ -function assocIndexOf(array, key) { - var length = array.length; - while (length--) { - if (eq(array[length][0], key)) { - return length; - } + var slideHeight = listNode && getHeight(listNode.querySelector('[data-index="0"]')); + var listHeight = slideHeight * spec.slidesToShow; + var currentSlide = spec.currentSlide === undefined ? spec.initialSlide : spec.currentSlide; + + if (spec.rtl && spec.currentSlide === undefined) { + currentSlide = slideCount - 1 - spec.initialSlide; } - return -1; -} -module.exports = assocIndexOf; + var lazyLoadedList = spec.lazyLoadedList || []; + var slidesToLoad = getOnDemandLazySlides(_objectSpread({}, spec, { + currentSlide: currentSlide, + lazyLoadedList: lazyLoadedList + })); + lazyLoadedList.concat(slidesToLoad); + var state = { + slideCount: slideCount, + slideWidth: slideWidth, + listWidth: listWidth, + trackWidth: trackWidth, + currentSlide: currentSlide, + slideHeight: slideHeight, + listHeight: listHeight, + lazyLoadedList: lazyLoadedList + }; + if (spec.autoplaying === null && spec.autoplay) { + state["autoplaying"] = "playing"; + } -/***/ }), -/* 37 */ -/*!***********************************!*\ - !*** ./node_modules/lodash/eq.js ***! - \***********************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports) { + return state; +}; -/** - * Performs a - * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) - * comparison between two values to determine if they are equivalent. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to compare. - * @param {*} other The other value to compare. - * @returns {boolean} Returns `true` if the values are equivalent, else `false`. - * @example - * - * var object = { 'a': 1 }; - * var other = { 'a': 1 }; - * - * _.eq(object, object); - * // => true - * - * _.eq(object, other); - * // => false - * - * _.eq('a', 'a'); - * // => true - * - * _.eq('a', Object('a')); - * // => false - * - * _.eq(NaN, NaN); - * // => true - */ -function eq(value, other) { - return value === other || (value !== value && other !== other); -} +exports.initializedState = initializedState; -module.exports = eq; +var slideHandler = function slideHandler(spec) { + var waitForAnimate = spec.waitForAnimate, + animating = spec.animating, + fade = spec.fade, + infinite = spec.infinite, + index = spec.index, + slideCount = spec.slideCount, + lazyLoadedList = spec.lazyLoadedList, + lazyLoad = spec.lazyLoad, + currentSlide = spec.currentSlide, + centerMode = spec.centerMode, + slidesToScroll = spec.slidesToScroll, + slidesToShow = spec.slidesToShow, + useCSS = spec.useCSS; + if (waitForAnimate && animating) return {}; + var animationSlide = index, + finalSlide, + animationLeft, + finalLeft; + var state = {}, + nextState = {}; + var targetSlide = infinite ? index : clamp(index, 0, slideCount - 1); + if (fade) { + if (!infinite && (index < 0 || index >= slideCount)) return {}; -/***/ }), -/* 38 */ -/*!**********************************************!*\ - !*** ./node_modules/lodash/_nativeCreate.js ***! - \**********************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { + if (index < 0) { + animationSlide = index + slideCount; + } else if (index >= slideCount) { + animationSlide = index - slideCount; + } -var getNative = __webpack_require__(/*! ./_getNative */ 19); + if (lazyLoad && lazyLoadedList.indexOf(animationSlide) < 0) { + lazyLoadedList.push(animationSlide); + } -/* Built-in method references that are verified to be native. */ -var nativeCreate = getNative(Object, 'create'); + state = { + animating: true, + currentSlide: animationSlide, + lazyLoadedList: lazyLoadedList + }; + nextState = { + animating: false + }; + } else { + finalSlide = animationSlide; -module.exports = nativeCreate; + if (animationSlide < 0) { + finalSlide = animationSlide + slideCount; + if (!infinite) finalSlide = 0;else if (slideCount % slidesToScroll !== 0) finalSlide = slideCount - slideCount % slidesToScroll; + } else if (!canGoNext(spec) && animationSlide > currentSlide) { + animationSlide = finalSlide = currentSlide; + } else if (centerMode && animationSlide >= slideCount) { + animationSlide = infinite ? slideCount : slideCount - 1; + finalSlide = infinite ? 0 : slideCount - 1; + } else if (animationSlide >= slideCount) { + finalSlide = animationSlide - slideCount; + if (!infinite) finalSlide = slideCount - slidesToShow;else if (slideCount % slidesToScroll !== 0) finalSlide = 0; + } + if (!infinite && animationSlide + slidesToShow >= slideCount) { + finalSlide = slideCount - slidesToShow; + } -/***/ }), -/* 39 */ -/*!********************************************!*\ - !*** ./node_modules/lodash/_getMapData.js ***! - \********************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { + animationLeft = getTrackLeft(_objectSpread({}, spec, { + slideIndex: animationSlide + })); + finalLeft = getTrackLeft(_objectSpread({}, spec, { + slideIndex: finalSlide + })); -var isKeyable = __webpack_require__(/*! ./_isKeyable */ 218); + if (!infinite) { + if (animationLeft === finalLeft) animationSlide = finalSlide; + animationLeft = finalLeft; + } -/** - * Gets the data for `map`. - * - * @private - * @param {Object} map The map to query. - * @param {string} key The reference key. - * @returns {*} Returns the map data. - */ -function getMapData(map, key) { - var data = map.__data__; - return isKeyable(key) - ? data[typeof key == 'string' ? 'string' : 'hash'] - : data.map; -} + lazyLoad && lazyLoadedList.concat(getOnDemandLazySlides(_objectSpread({}, spec, { + currentSlide: animationSlide + }))); -module.exports = getMapData; + if (!useCSS) { + state = { + currentSlide: finalSlide, + trackStyle: getTrackCSS(_objectSpread({}, spec, { + left: finalLeft + })), + lazyLoadedList: lazyLoadedList, + targetSlide: targetSlide + }; + } else { + state = { + animating: true, + currentSlide: finalSlide, + trackStyle: getTrackAnimateCSS(_objectSpread({}, spec, { + left: animationLeft + })), + lazyLoadedList: lazyLoadedList, + targetSlide: targetSlide + }; + nextState = { + animating: false, + currentSlide: finalSlide, + trackStyle: getTrackCSS(_objectSpread({}, spec, { + left: finalLeft + })), + swipeLeft: null, + targetSlide: targetSlide + }; + } + } + return { + state: state, + nextState: nextState + }; +}; -/***/ }), -/* 40 */ -/*!*****************************************!*\ - !*** ./node_modules/lodash/_isIndex.js ***! - \*****************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports) { +exports.slideHandler = slideHandler; -/** Used as references for various `Number` constants. */ -var MAX_SAFE_INTEGER = 9007199254740991; +var changeSlide = function changeSlide(spec, options) { + var indexOffset, previousInt, slideOffset, unevenOffset, targetSlide; + var slidesToScroll = spec.slidesToScroll, + slidesToShow = spec.slidesToShow, + slideCount = spec.slideCount, + currentSlide = spec.currentSlide, + previousTargetSlide = spec.targetSlide, + lazyLoad = spec.lazyLoad, + infinite = spec.infinite; + unevenOffset = slideCount % slidesToScroll !== 0; + indexOffset = unevenOffset ? 0 : (slideCount - currentSlide) % slidesToScroll; -/** Used to detect unsigned integer values. */ -var reIsUint = /^(?:0|[1-9]\d*)$/; + if (options.message === "previous") { + slideOffset = indexOffset === 0 ? slidesToScroll : slidesToShow - indexOffset; + targetSlide = currentSlide - slideOffset; -/** - * Checks if `value` is a valid array-like index. - * - * @private - * @param {*} value The value to check. - * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index. - * @returns {boolean} Returns `true` if `value` is a valid index, else `false`. - */ -function isIndex(value, length) { - var type = typeof value; - length = length == null ? MAX_SAFE_INTEGER : length; + if (lazyLoad && !infinite) { + previousInt = currentSlide - slideOffset; + targetSlide = previousInt === -1 ? slideCount - 1 : previousInt; + } - return !!length && - (type == 'number' || - (type != 'symbol' && reIsUint.test(value))) && - (value > -1 && value % 1 == 0 && value < length); -} + if (!infinite) { + targetSlide = previousTargetSlide - slidesToScroll; + } + } else if (options.message === "next") { + slideOffset = indexOffset === 0 ? slidesToScroll : indexOffset; + targetSlide = currentSlide + slideOffset; -module.exports = isIndex; + if (lazyLoad && !infinite) { + targetSlide = (currentSlide + slidesToScroll) % slideCount + indexOffset; + } + + if (!infinite) { + targetSlide = previousTargetSlide + slidesToScroll; + } + } else if (options.message === "dots") { + // Click on dots + targetSlide = options.index * options.slidesToScroll; + } else if (options.message === "children") { + // Click on the slides + targetSlide = options.index; + if (infinite) { + var direction = siblingDirection(_objectSpread({}, spec, { + targetSlide: targetSlide + })); -/***/ }), -/* 41 */ -/*!*******************************************!*\ - !*** ./node_modules/lodash/_baseUnary.js ***! - \*******************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports) { + if (targetSlide > options.currentSlide && direction === "left") { + targetSlide = targetSlide - slideCount; + } else if (targetSlide < options.currentSlide && direction === "right") { + targetSlide = targetSlide + slideCount; + } + } + } else if (options.message === "index") { + targetSlide = Number(options.index); + } -/** - * The base implementation of `_.unary` without support for storing metadata. - * - * @private - * @param {Function} func The function to cap arguments for. - * @returns {Function} Returns the new capped function. - */ -function baseUnary(func) { - return function(value) { - return func(value); - }; -} + return targetSlide; +}; -module.exports = baseUnary; +exports.changeSlide = changeSlide; +var keyHandler = function keyHandler(e, accessibility, rtl) { + if (e.target.tagName.match("TEXTAREA|INPUT|SELECT") || !accessibility) return ""; + if (e.keyCode === 37) return rtl ? "next" : "previous"; + if (e.keyCode === 39) return rtl ? "previous" : "next"; + return ""; +}; -/***/ }), -/* 42 */ -/*!******************************************!*\ - !*** ./node_modules/lodash/_nodeUtil.js ***! - \******************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { +exports.keyHandler = keyHandler; -/* WEBPACK VAR INJECTION */(function(module) {var freeGlobal = __webpack_require__(/*! ./_freeGlobal */ 113); +var swipeStart = function swipeStart(e, swipe, draggable) { + e.target.tagName === "IMG" && e.preventDefault(); + if (!swipe || !draggable && e.type.indexOf("mouse") !== -1) return ""; + return { + dragging: true, + touchObject: { + startX: e.touches ? e.touches[0].pageX : e.clientX, + startY: e.touches ? e.touches[0].pageY : e.clientY, + curX: e.touches ? e.touches[0].pageX : e.clientX, + curY: e.touches ? e.touches[0].pageY : e.clientY + } + }; +}; -/** Detect free variable `exports`. */ -var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports; +exports.swipeStart = swipeStart; -/** Detect free variable `module`. */ -var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module; +var swipeMove = function swipeMove(e, spec) { + // spec also contains, trackRef and slideIndex + var scrolling = spec.scrolling, + animating = spec.animating, + vertical = spec.vertical, + swipeToSlide = spec.swipeToSlide, + verticalSwiping = spec.verticalSwiping, + rtl = spec.rtl, + currentSlide = spec.currentSlide, + edgeFriction = spec.edgeFriction, + edgeDragged = spec.edgeDragged, + onEdge = spec.onEdge, + swiped = spec.swiped, + swiping = spec.swiping, + slideCount = spec.slideCount, + slidesToScroll = spec.slidesToScroll, + infinite = spec.infinite, + touchObject = spec.touchObject, + swipeEvent = spec.swipeEvent, + listHeight = spec.listHeight, + listWidth = spec.listWidth; + if (scrolling) return; + if (animating) return e.preventDefault(); + if (vertical && swipeToSlide && verticalSwiping) e.preventDefault(); + var swipeLeft, + state = {}; + var curLeft = getTrackLeft(spec); + touchObject.curX = e.touches ? e.touches[0].pageX : e.clientX; + touchObject.curY = e.touches ? e.touches[0].pageY : e.clientY; + touchObject.swipeLength = Math.round(Math.sqrt(Math.pow(touchObject.curX - touchObject.startX, 2))); + var verticalSwipeLength = Math.round(Math.sqrt(Math.pow(touchObject.curY - touchObject.startY, 2))); -/** Detect the popular CommonJS extension `module.exports`. */ -var moduleExports = freeModule && freeModule.exports === freeExports; + if (!verticalSwiping && !swiping && verticalSwipeLength > 10) { + return { + scrolling: true + }; + } -/** Detect free variable `process` from Node.js. */ -var freeProcess = moduleExports && freeGlobal.process; + if (verticalSwiping) touchObject.swipeLength = verticalSwipeLength; + var positionOffset = (!rtl ? 1 : -1) * (touchObject.curX > touchObject.startX ? 1 : -1); + if (verticalSwiping) positionOffset = touchObject.curY > touchObject.startY ? 1 : -1; + var dotCount = Math.ceil(slideCount / slidesToScroll); + var swipeDirection = getSwipeDirection(spec.touchObject, verticalSwiping); + var touchSwipeLength = touchObject.swipeLength; -/** Used to access faster Node.js helpers. */ -var nodeUtil = (function() { - try { - // Use `util.types` for Node.js 10+. - var types = freeModule && freeModule.require && freeModule.require('util').types; + if (!infinite) { + if (currentSlide === 0 && swipeDirection === "right" || currentSlide + 1 >= dotCount && swipeDirection === "left" || !canGoNext(spec) && swipeDirection === "left") { + touchSwipeLength = touchObject.swipeLength * edgeFriction; - if (types) { - return types; + if (edgeDragged === false && onEdge) { + onEdge(swipeDirection); + state["edgeDragged"] = true; + } } + } - // Legacy `process.binding('util')` for Node.js < 10. - return freeProcess && freeProcess.binding && freeProcess.binding('util'); - } catch (e) {} -}()); + if (!swiped && swipeEvent) { + swipeEvent(swipeDirection); + state["swiped"] = true; + } -module.exports = nodeUtil; + if (!vertical) { + if (!rtl) { + swipeLeft = curLeft + touchSwipeLength * positionOffset; + } else { + swipeLeft = curLeft - touchSwipeLength * positionOffset; + } + } else { + swipeLeft = curLeft + touchSwipeLength * (listHeight / listWidth) * positionOffset; + } -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(/*! ./../webpack/buildin/module.js */ 60)(module))) + if (verticalSwiping) { + swipeLeft = curLeft + touchSwipeLength * positionOffset; + } -/***/ }), -/* 43 */ -/*!*********************************************!*\ - !*** ./node_modules/lodash/_isPrototype.js ***! - \*********************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports) { + state = _objectSpread({}, state, { + touchObject: touchObject, + swipeLeft: swipeLeft, + trackStyle: getTrackCSS(_objectSpread({}, spec, { + left: swipeLeft + })) + }); -/** Used for built-in method references. */ -var objectProto = Object.prototype; + if (Math.abs(touchObject.curX - touchObject.startX) < Math.abs(touchObject.curY - touchObject.startY) * 0.8) { + return state; + } -/** - * Checks if `value` is likely a prototype object. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a prototype, else `false`. - */ -function isPrototype(value) { - var Ctor = value && value.constructor, - proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto; + if (touchObject.swipeLength > 10) { + state["swiping"] = true; + e.preventDefault(); + } - return value === proto; -} + return state; +}; -module.exports = isPrototype; +exports.swipeMove = swipeMove; +var swipeEnd = function swipeEnd(e, spec) { + var dragging = spec.dragging, + swipe = spec.swipe, + touchObject = spec.touchObject, + listWidth = spec.listWidth, + touchThreshold = spec.touchThreshold, + verticalSwiping = spec.verticalSwiping, + listHeight = spec.listHeight, + swipeToSlide = spec.swipeToSlide, + scrolling = spec.scrolling, + onSwipe = spec.onSwipe, + targetSlide = spec.targetSlide, + currentSlide = spec.currentSlide, + infinite = spec.infinite; -/***/ }), -/* 44 */ -/*!****************************************!*\ - !*** ./node_modules/lodash/_getTag.js ***! - \****************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { + if (!dragging) { + if (swipe) e.preventDefault(); + return {}; + } -var DataView = __webpack_require__(/*! ./_DataView */ 238), - Map = __webpack_require__(/*! ./_Map */ 53), - Promise = __webpack_require__(/*! ./_Promise */ 239), - Set = __webpack_require__(/*! ./_Set */ 240), - WeakMap = __webpack_require__(/*! ./_WeakMap */ 241), - baseGetTag = __webpack_require__(/*! ./_baseGetTag */ 20), - toSource = __webpack_require__(/*! ./_toSource */ 114); + var minSwipe = verticalSwiping ? listHeight / touchThreshold : listWidth / touchThreshold; + var swipeDirection = getSwipeDirection(touchObject, verticalSwiping); // reset the state of touch related state variables. -/** `Object#toString` result references. */ -var mapTag = '[object Map]', - objectTag = '[object Object]', - promiseTag = '[object Promise]', - setTag = '[object Set]', - weakMapTag = '[object WeakMap]'; + var state = { + dragging: false, + edgeDragged: false, + scrolling: false, + swiping: false, + swiped: false, + swipeLeft: null, + touchObject: {} + }; -var dataViewTag = '[object DataView]'; + if (scrolling) { + return state; + } -/** Used to detect maps, sets, and weakmaps. */ -var dataViewCtorString = toSource(DataView), - mapCtorString = toSource(Map), - promiseCtorString = toSource(Promise), - setCtorString = toSource(Set), - weakMapCtorString = toSource(WeakMap); + if (!touchObject.swipeLength) { + return state; + } -/** - * Gets the `toStringTag` of `value`. - * - * @private - * @param {*} value The value to query. - * @returns {string} Returns the `toStringTag`. - */ -var getTag = baseGetTag; + if (touchObject.swipeLength > minSwipe) { + e.preventDefault(); -// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6. -if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) || - (Map && getTag(new Map) != mapTag) || - (Promise && getTag(Promise.resolve()) != promiseTag) || - (Set && getTag(new Set) != setTag) || - (WeakMap && getTag(new WeakMap) != weakMapTag)) { - getTag = function(value) { - var result = baseGetTag(value), - Ctor = result == objectTag ? value.constructor : undefined, - ctorString = Ctor ? toSource(Ctor) : ''; + if (onSwipe) { + onSwipe(swipeDirection); + } - if (ctorString) { - switch (ctorString) { - case dataViewCtorString: return dataViewTag; - case mapCtorString: return mapTag; - case promiseCtorString: return promiseTag; - case setCtorString: return setTag; - case weakMapCtorString: return weakMapTag; - } - } - return result; - }; -} + var slideCount, newSlide; + var activeSlide = infinite ? currentSlide : targetSlide; -module.exports = getTag; + switch (swipeDirection) { + case "left": + case "up": + newSlide = activeSlide + getSlideCount(spec); + slideCount = swipeToSlide ? checkNavigable(spec, newSlide) : newSlide; + state["currentDirection"] = 0; + break; + + case "right": + case "down": + newSlide = activeSlide - getSlideCount(spec); + slideCount = swipeToSlide ? checkNavigable(spec, newSlide) : newSlide; + state["currentDirection"] = 1; + break; + default: + slideCount = activeSlide; + } -/***/ }), -/* 45 */ -/*!*****************************************!*\ - !*** ./node_modules/lodash/_baseGet.js ***! - \*****************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { + state["triggerSlideHandler"] = slideCount; + } else { + // Adjust the track back to it's original position. + var currentLeft = getTrackLeft(spec); + state["trackStyle"] = getTrackAnimateCSS(_objectSpread({}, spec, { + left: currentLeft + })); + } -var castPath = __webpack_require__(/*! ./_castPath */ 25), - toKey = __webpack_require__(/*! ./_toKey */ 26); + return state; +}; -/** - * The base implementation of `_.get` without support for default values. - * - * @private - * @param {Object} object The object to query. - * @param {Array|string} path The path of the property to get. - * @returns {*} Returns the resolved value. - */ -function baseGet(object, path) { - path = castPath(path, object); +exports.swipeEnd = swipeEnd; - var index = 0, - length = path.length; +var getNavigableIndexes = function getNavigableIndexes(spec) { + var max = spec.infinite ? spec.slideCount * 2 : spec.slideCount; + var breakpoint = spec.infinite ? spec.slidesToShow * -1 : 0; + var counter = spec.infinite ? spec.slidesToShow * -1 : 0; + var indexes = []; - while (object != null && index < length) { - object = object[toKey(path[index++])]; + while (breakpoint < max) { + indexes.push(breakpoint); + breakpoint = counter + spec.slidesToScroll; + counter += Math.min(spec.slidesToScroll, spec.slidesToShow); } - return (index && index == length) ? object : undefined; -} -module.exports = baseGet; + return indexes; +}; +exports.getNavigableIndexes = getNavigableIndexes; -/***/ }), -/* 46 */ -/*!*****************************************!*\ - !*** ./node_modules/lodash/isSymbol.js ***! - \*****************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { +var checkNavigable = function checkNavigable(spec, index) { + var navigables = getNavigableIndexes(spec); + var prevNavigable = 0; -var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ 20), - isObjectLike = __webpack_require__(/*! ./isObjectLike */ 17); + if (index > navigables[navigables.length - 1]) { + index = navigables[navigables.length - 1]; + } else { + for (var n in navigables) { + if (index < navigables[n]) { + index = prevNavigable; + break; + } -/** `Object#toString` result references. */ -var symbolTag = '[object Symbol]'; + prevNavigable = navigables[n]; + } + } -/** - * Checks if `value` is classified as a `Symbol` primitive or object. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a symbol, else `false`. - * @example - * - * _.isSymbol(Symbol.iterator); - * // => true - * - * _.isSymbol('abc'); - * // => false - */ -function isSymbol(value) { - return typeof value == 'symbol' || - (isObjectLike(value) && baseGetTag(value) == symbolTag); -} + return index; +}; -module.exports = isSymbol; +exports.checkNavigable = checkNavigable; +var getSlideCount = function getSlideCount(spec) { + var centerOffset = spec.centerMode ? spec.slideWidth * Math.floor(spec.slidesToShow / 2) : 0; -/***/ }), -/* 47 */ -/*!*****************************************!*\ - !*** ./node_modules/lodash/identity.js ***! - \*****************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports) { + if (spec.swipeToSlide) { + var swipedSlide; + var slickList = spec.listRef; + var slides = slickList.querySelectorAll(".slick-slide"); + Array.from(slides).every(function (slide) { + if (!spec.vertical) { + if (slide.offsetLeft - centerOffset + getWidth(slide) / 2 > spec.swipeLeft * -1) { + swipedSlide = slide; + return false; + } + } else { + if (slide.offsetTop + getHeight(slide) / 2 > spec.swipeLeft * -1) { + swipedSlide = slide; + return false; + } + } -/** - * This method returns the first argument it receives. - * - * @static - * @since 0.1.0 - * @memberOf _ - * @category Util - * @param {*} value Any value. - * @returns {*} Returns `value`. - * @example - * - * var object = { 'a': 1 }; - * - * console.log(_.identity(object) === object); - * // => true - */ -function identity(value) { - return value; -} + return true; + }); -module.exports = identity; + if (!swipedSlide) { + return 0; + } + var currentIndex = spec.rtl === true ? spec.slideCount - spec.currentSlide : spec.currentSlide; + var slidesTraversed = Math.abs(swipedSlide.dataset.index - currentIndex) || 1; + return slidesTraversed; + } else { + return spec.slidesToScroll; + } +}; -/***/ }), -/* 48 */ -/*!*********************************************!*\ - !*** ./node_modules/lodash/_assignValue.js ***! - \*********************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { +exports.getSlideCount = getSlideCount; -var baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ 142), - eq = __webpack_require__(/*! ./eq */ 37); +var checkSpecKeys = function checkSpecKeys(spec, keysArray) { + return keysArray.reduce(function (value, key) { + return value && spec.hasOwnProperty(key); + }, true) ? null : console.error("Keys Missing:", spec); +}; -/** Used for built-in method references. */ -var objectProto = Object.prototype; +exports.checkSpecKeys = checkSpecKeys; -/** Used to check objects for own properties. */ -var hasOwnProperty = objectProto.hasOwnProperty; +var getTrackCSS = function getTrackCSS(spec) { + checkSpecKeys(spec, ["left", "variableWidth", "slideCount", "slidesToShow", "slideWidth"]); + var trackWidth, trackHeight; + var trackChildren = spec.slideCount + 2 * spec.slidesToShow; -/** - * Assigns `value` to `key` of `object` if the existing value is not equivalent - * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) - * for equality comparisons. - * - * @private - * @param {Object} object The object to modify. - * @param {string} key The key of the property to assign. - * @param {*} value The value to assign. - */ -function assignValue(object, key, value) { - var objValue = object[key]; - if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) || - (value === undefined && !(key in object))) { - baseAssignValue(object, key, value); + if (!spec.vertical) { + trackWidth = getTotalSlides(spec) * spec.slideWidth; + } else { + trackHeight = trackChildren * spec.slideHeight; } -} -module.exports = assignValue; + var style = { + opacity: 1, + transition: "", + WebkitTransition: "" + }; + if (spec.useTransform) { + var WebkitTransform = !spec.vertical ? "translate3d(" + spec.left + "px, 0px, 0px)" : "translate3d(0px, " + spec.left + "px, 0px)"; + var transform = !spec.vertical ? "translate3d(" + spec.left + "px, 0px, 0px)" : "translate3d(0px, " + spec.left + "px, 0px)"; + var msTransform = !spec.vertical ? "translateX(" + spec.left + "px)" : "translateY(" + spec.left + "px)"; + style = _objectSpread({}, style, { + WebkitTransform: WebkitTransform, + transform: transform, + msTransform: msTransform + }); + } else { + if (spec.vertical) { + style["top"] = spec.left; + } else { + style["left"] = spec.left; + } + } -/***/ }), -/* 49 */ -/*!****************************************************************!*\ - !*** ./node_modules/react-slick/lib/utils/innerSliderUtils.js ***! - \****************************************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { + if (spec.fade) style = { + opacity: 1 + }; + if (trackWidth) style.width = trackWidth; + if (trackHeight) style.height = trackHeight; // Fallback for IE8 -"use strict"; + if (window && !window.addEventListener && window.attachEvent) { + if (!spec.vertical) { + style.marginLeft = spec.left + "px"; + } else { + style.marginTop = spec.left + "px"; + } + } + return style; +}; -exports.__esModule = true; -exports.canUseDOM = exports.slidesOnLeft = exports.slidesOnRight = exports.siblingDirection = exports.getTotalSlides = exports.getPostClones = exports.getPreClones = exports.getTrackLeft = exports.getTrackAnimateCSS = exports.getTrackCSS = exports.checkSpecKeys = exports.getSlideCount = exports.checkNavigable = exports.getNavigableIndexes = exports.swipeEnd = exports.swipeMove = exports.swipeStart = exports.keyHandler = exports.changeSlide = exports.slideHandler = exports.initializedState = exports.extractObject = exports.canGoNext = exports.getSwipeDirection = exports.getHeight = exports.getWidth = exports.lazySlidesOnRight = exports.lazySlidesOnLeft = exports.lazyEndIndex = exports.lazyStartIndex = exports.getRequiredLazySlides = exports.getOnDemandLazySlides = undefined; +exports.getTrackCSS = getTrackCSS; -var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; +var getTrackAnimateCSS = function getTrackAnimateCSS(spec) { + checkSpecKeys(spec, ["left", "variableWidth", "slideCount", "slidesToShow", "slideWidth", "speed", "cssEase"]); + var style = getTrackCSS(spec); // useCSS is true by default so it can be undefined -var _react = __webpack_require__(/*! react */ 6); + if (spec.useTransform) { + style.WebkitTransition = "-webkit-transform " + spec.speed + "ms " + spec.cssEase; + style.transition = "transform " + spec.speed + "ms " + spec.cssEase; + } else { + if (spec.vertical) { + style.transition = "top " + spec.speed + "ms " + spec.cssEase; + } else { + style.transition = "left " + spec.speed + "ms " + spec.cssEase; + } + } -var _react2 = _interopRequireDefault(_react); + return style; +}; -var _reactDom = __webpack_require__(/*! react-dom */ 18); +exports.getTrackAnimateCSS = getTrackAnimateCSS; -var _reactDom2 = _interopRequireDefault(_reactDom); +var getTrackLeft = function getTrackLeft(spec) { + if (spec.unslick) { + return 0; + } -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + checkSpecKeys(spec, ["slideIndex", "trackRef", "infinite", "centerMode", "slideCount", "slidesToShow", "slidesToScroll", "slideWidth", "listWidth", "variableWidth", "slideHeight"]); + var slideIndex = spec.slideIndex, + trackRef = spec.trackRef, + infinite = spec.infinite, + centerMode = spec.centerMode, + slideCount = spec.slideCount, + slidesToShow = spec.slidesToShow, + slidesToScroll = spec.slidesToScroll, + slideWidth = spec.slideWidth, + listWidth = spec.listWidth, + variableWidth = spec.variableWidth, + slideHeight = spec.slideHeight, + fade = spec.fade, + vertical = spec.vertical; + var slideOffset = 0; + var targetLeft; + var targetSlide; + var verticalOffset = 0; -var getOnDemandLazySlides = exports.getOnDemandLazySlides = function getOnDemandLazySlides(spec) { - var onDemandSlides = []; - var startIndex = lazyStartIndex(spec); - var endIndex = lazyEndIndex(spec); - for (var slideIndex = startIndex; slideIndex < endIndex; slideIndex++) { - if (spec.lazyLoadedList.indexOf(slideIndex) < 0) { - onDemandSlides.push(slideIndex); - } + if (fade || spec.slideCount === 1) { + return 0; } - return onDemandSlides; -}; -// return list of slides that need to be present -var getRequiredLazySlides = exports.getRequiredLazySlides = function getRequiredLazySlides(spec) { - var requiredSlides = []; - var startIndex = lazyStartIndex(spec); - var endIndex = lazyEndIndex(spec); - for (var slideIndex = startIndex; slideIndex < endIndex; slideIndex++) { - requiredSlides.push(slideIndex); - } - return requiredSlides; -}; + var slidesToOffset = 0; -// startIndex that needs to be present -var lazyStartIndex = exports.lazyStartIndex = function lazyStartIndex(spec) { - return spec.currentSlide - lazySlidesOnLeft(spec); -}; -var lazyEndIndex = exports.lazyEndIndex = function lazyEndIndex(spec) { - return spec.currentSlide + lazySlidesOnRight(spec); -}; -var lazySlidesOnLeft = exports.lazySlidesOnLeft = function lazySlidesOnLeft(spec) { - return spec.centerMode ? Math.floor(spec.slidesToShow / 2) + (parseInt(spec.centerPadding) > 0 ? 1 : 0) : 0; -}; -var lazySlidesOnRight = exports.lazySlidesOnRight = function lazySlidesOnRight(spec) { - return spec.centerMode ? Math.floor((spec.slidesToShow - 1) / 2) + 1 + (parseInt(spec.centerPadding) > 0 ? 1 : 0) : spec.slidesToShow; -}; + if (infinite) { + slidesToOffset = -getPreClones(spec); // bring active slide to the beginning of visual area + // if next scroll doesn't have enough children, just reach till the end of original slides instead of shifting slidesToScroll children -// get width of an element -var getWidth = exports.getWidth = function getWidth(elem) { - return elem && elem.offsetWidth || 0; -}; -var getHeight = exports.getHeight = function getHeight(elem) { - return elem && elem.offsetHeight || 0; -}; -var getSwipeDirection = exports.getSwipeDirection = function getSwipeDirection(touchObject) { - var verticalSwiping = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; + if (slideCount % slidesToScroll !== 0 && slideIndex + slidesToScroll > slideCount) { + slidesToOffset = -(slideIndex > slideCount ? slidesToShow - (slideIndex - slideCount) : slideCount % slidesToScroll); + } // shift current slide to center of the frame - var xDist, yDist, r, swipeAngle; - xDist = touchObject.startX - touchObject.curX; - yDist = touchObject.startY - touchObject.curY; - r = Math.atan2(yDist, xDist); - swipeAngle = Math.round(r * 180 / Math.PI); - if (swipeAngle < 0) { - swipeAngle = 360 - Math.abs(swipeAngle); - } - if (swipeAngle <= 45 && swipeAngle >= 0 || swipeAngle <= 360 && swipeAngle >= 315) { - return "left"; - } - if (swipeAngle >= 135 && swipeAngle <= 225) { - return "right"; - } - if (verticalSwiping === true) { - if (swipeAngle >= 35 && swipeAngle <= 135) { - return "up"; - } else { - return "down"; + + if (centerMode) { + slidesToOffset += parseInt(slidesToShow / 2); + } + } else { + if (slideCount % slidesToScroll !== 0 && slideIndex + slidesToScroll > slideCount) { + slidesToOffset = slidesToShow - slideCount % slidesToScroll; + } + + if (centerMode) { + slidesToOffset = parseInt(slidesToShow / 2); } } - return "vertical"; -}; + slideOffset = slidesToOffset * slideWidth; + verticalOffset = slidesToOffset * slideHeight; -// whether or not we can go next -var canGoNext = exports.canGoNext = function canGoNext(spec) { - var canGo = true; - if (!spec.infinite) { - if (spec.centerMode && spec.currentSlide >= spec.slideCount - 1) { - canGo = false; - } else if (spec.slideCount <= spec.slidesToShow || spec.currentSlide >= spec.slideCount - spec.slidesToShow) { - canGo = false; + if (!vertical) { + targetLeft = slideIndex * slideWidth * -1 + slideOffset; + } else { + targetLeft = slideIndex * slideHeight * -1 + verticalOffset; + } + + if (variableWidth === true) { + var targetSlideIndex; + var trackElem = trackRef && trackRef.node; + targetSlideIndex = slideIndex + getPreClones(spec); + targetSlide = trackElem && trackElem.childNodes[targetSlideIndex]; + targetLeft = targetSlide ? targetSlide.offsetLeft * -1 : 0; + + if (centerMode === true) { + targetSlideIndex = infinite ? slideIndex + getPreClones(spec) : slideIndex; + targetSlide = trackElem && trackElem.children[targetSlideIndex]; + targetLeft = 0; + + for (var slide = 0; slide < targetSlideIndex; slide++) { + targetLeft -= trackElem && trackElem.children[slide] && trackElem.children[slide].offsetWidth; + } + + targetLeft -= parseInt(spec.centerPadding); + targetLeft += targetSlide && (listWidth - targetSlide.offsetWidth) / 2; } } - return canGo; -}; -// given an object and a list of keys, return new object with given keys -var extractObject = exports.extractObject = function extractObject(spec, keys) { - var newObject = {}; - keys.forEach(function (key) { - return newObject[key] = spec[key]; - }); - return newObject; + return targetLeft; }; -// get initialized state -var initializedState = exports.initializedState = function initializedState(spec) { - // spec also contains listRef, trackRef - var slideCount = _react2.default.Children.count(spec.children); - var listWidth = Math.ceil(getWidth(_reactDom2.default.findDOMNode(spec.listRef))); - var trackWidth = Math.ceil(getWidth(_reactDom2.default.findDOMNode(spec.trackRef))); - var slideWidth = void 0; - if (!spec.vertical) { - var centerPaddingAdj = spec.centerMode && parseInt(spec.centerPadding) * 2; - if (typeof spec.centerPadding === "string" && spec.centerPadding.slice(-1) === "%") { - centerPaddingAdj *= listWidth / 100; - } - slideWidth = Math.ceil((listWidth - centerPaddingAdj) / spec.slidesToShow); - } else { - slideWidth = listWidth; +exports.getTrackLeft = getTrackLeft; + +var getPreClones = function getPreClones(spec) { + if (spec.unslick || !spec.infinite) { + return 0; } - var slideHeight = _reactDom2.default.findDOMNode(spec.listRef) && getHeight(_reactDom2.default.findDOMNode(spec.listRef).querySelector('[data-index="0"]')); - var listHeight = slideHeight * spec.slidesToShow; - var currentSlide = spec.currentSlide === undefined ? spec.initialSlide : spec.currentSlide; - if (spec.rtl && spec.currentSlide === undefined) { - currentSlide = slideCount - 1 - spec.initialSlide; + + if (spec.variableWidth) { + return spec.slideCount; } - var lazyLoadedList = spec.lazyLoadedList || []; - var slidesToLoad = getOnDemandLazySlides({ currentSlide: currentSlide, lazyLoadedList: lazyLoadedList }, spec); - lazyLoadedList.concat(slidesToLoad); - var state = { - slideCount: slideCount, - slideWidth: slideWidth, - listWidth: listWidth, - trackWidth: trackWidth, - currentSlide: currentSlide, - slideHeight: slideHeight, - listHeight: listHeight, - lazyLoadedList: lazyLoadedList - }; + return spec.slidesToShow + (spec.centerMode ? 1 : 0); +}; - if (spec.autoplaying === null && spec.autoplay) { - state["autoplaying"] = "playing"; +exports.getPreClones = getPreClones; + +var getPostClones = function getPostClones(spec) { + if (spec.unslick || !spec.infinite) { + return 0; } - return state; + return spec.slideCount; }; -var slideHandler = exports.slideHandler = function slideHandler(spec) { - var waitForAnimate = spec.waitForAnimate, - animating = spec.animating, - fade = spec.fade, - infinite = spec.infinite, - index = spec.index, - slideCount = spec.slideCount, - lazyLoadedList = spec.lazyLoadedList, - lazyLoad = spec.lazyLoad, - currentSlide = spec.currentSlide, - centerMode = spec.centerMode, - slidesToScroll = spec.slidesToScroll, - slidesToShow = spec.slidesToShow, - useCSS = spec.useCSS; +exports.getPostClones = getPostClones; - if (waitForAnimate && animating) return {}; - var animationSlide = index, - finalSlide = void 0, - animationLeft = void 0, - finalLeft = void 0; - var state = {}, - nextState = {}; - if (fade) { - if (!infinite && (index < 0 || index >= slideCount)) return {}; - if (index < 0) { - animationSlide = index + slideCount; - } else if (index >= slideCount) { - animationSlide = index - slideCount; - } - if (lazyLoad && lazyLoadedList.indexOf(animationSlide) < 0) { - lazyLoadedList.push(animationSlide); +var getTotalSlides = function getTotalSlides(spec) { + return spec.slideCount === 1 ? 1 : getPreClones(spec) + spec.slideCount + getPostClones(spec); +}; + +exports.getTotalSlides = getTotalSlides; + +var siblingDirection = function siblingDirection(spec) { + if (spec.targetSlide > spec.currentSlide) { + if (spec.targetSlide > spec.currentSlide + slidesOnRight(spec)) { + return "left"; } - state = { - animating: true, - currentSlide: animationSlide, - lazyLoadedList: lazyLoadedList - }; - nextState = { animating: false }; + + return "right"; } else { - finalSlide = animationSlide; - if (animationSlide < 0) { - finalSlide = animationSlide + slideCount; - if (!infinite) finalSlide = 0;else if (slideCount % slidesToScroll !== 0) finalSlide = slideCount - slideCount % slidesToScroll; - } else if (!canGoNext(spec) && animationSlide > currentSlide) { - animationSlide = finalSlide = currentSlide; - } else if (centerMode && animationSlide >= slideCount) { - animationSlide = infinite ? slideCount : slideCount - 1; - finalSlide = infinite ? 0 : slideCount - 1; - } else if (animationSlide >= slideCount) { - finalSlide = animationSlide - slideCount; - if (!infinite) finalSlide = slideCount - slidesToShow;else if (slideCount % slidesToScroll !== 0) finalSlide = 0; - } - animationLeft = getTrackLeft(_extends({}, spec, { slideIndex: animationSlide })); - finalLeft = getTrackLeft(_extends({}, spec, { slideIndex: finalSlide })); - if (!infinite) { - if (animationLeft === finalLeft) animationSlide = finalSlide; - animationLeft = finalLeft; - } - lazyLoad && lazyLoadedList.concat(getOnDemandLazySlides(_extends({}, spec, { currentSlide: animationSlide }))); - if (!useCSS) { - state = { - currentSlide: finalSlide, - trackStyle: getTrackCSS(_extends({}, spec, { left: finalLeft })), - lazyLoadedList: lazyLoadedList - }; - } else { - state = { - animating: true, - currentSlide: finalSlide, - trackStyle: getTrackAnimateCSS(_extends({}, spec, { left: animationLeft })), - lazyLoadedList: lazyLoadedList - }; - nextState = { - animating: false, - currentSlide: finalSlide, - trackStyle: getTrackCSS(_extends({}, spec, { left: finalLeft })), - swipeLeft: null - }; + if (spec.targetSlide < spec.currentSlide - slidesOnLeft(spec)) { + return "right"; } + + return "left"; } - return { state: state, nextState: nextState }; }; -var changeSlide = exports.changeSlide = function changeSlide(spec, options) { - var indexOffset, previousInt, slideOffset, unevenOffset, targetSlide; - var slidesToScroll = spec.slidesToScroll, - slidesToShow = spec.slidesToShow, - slideCount = spec.slideCount, - currentSlide = spec.currentSlide, - lazyLoad = spec.lazyLoad, - infinite = spec.infinite; - - unevenOffset = slideCount % slidesToScroll !== 0; - indexOffset = unevenOffset ? 0 : (slideCount - currentSlide) % slidesToScroll; +exports.siblingDirection = siblingDirection; - if (options.message === "previous") { - slideOffset = indexOffset === 0 ? slidesToScroll : slidesToShow - indexOffset; - targetSlide = currentSlide - slideOffset; - if (lazyLoad && !infinite) { - previousInt = currentSlide - slideOffset; - targetSlide = previousInt === -1 ? slideCount - 1 : previousInt; - } - } else if (options.message === "next") { - slideOffset = indexOffset === 0 ? slidesToScroll : indexOffset; - targetSlide = currentSlide + slideOffset; - if (lazyLoad && !infinite) { - targetSlide = (currentSlide + slidesToScroll) % slideCount + indexOffset; - } - } else if (options.message === "dots") { - // Click on dots - targetSlide = options.index * options.slidesToScroll; - if (targetSlide === options.currentSlide) { - return null; - } - } else if (options.message === "children") { - // Click on the slides - targetSlide = options.index; - if (targetSlide === options.currentSlide) { - return null; - } - if (infinite) { - var direction = siblingDirection(_extends({}, spec, { targetSlide: targetSlide })); - if (targetSlide > options.currentSlide && direction === "left") { - targetSlide = targetSlide - slideCount; - } else if (targetSlide < options.currentSlide && direction === "right") { - targetSlide = targetSlide + slideCount; - } - } - } else if (options.message === "index") { - targetSlide = Number(options.index); - if (targetSlide === options.currentSlide) { - return null; - } - } - return targetSlide; -}; -var keyHandler = exports.keyHandler = function keyHandler(e, accessibility, rtl) { - if (e.target.tagName.match("TEXTAREA|INPUT|SELECT") || !accessibility) return ""; - if (e.keyCode === 37) return rtl ? "next" : "previous"; - if (e.keyCode === 39) return rtl ? "previous" : "next"; - return ""; -}; - -var swipeStart = exports.swipeStart = function swipeStart(e, swipe, draggable) { - e.target.tagName === "IMG" && e.preventDefault(); - if (!swipe || !draggable && e.type.indexOf("mouse") !== -1) return ""; - return { - dragging: true, - touchObject: { - startX: e.touches ? e.touches[0].pageX : e.clientX, - startY: e.touches ? e.touches[0].pageY : e.clientY, - curX: e.touches ? e.touches[0].pageX : e.clientX, - curY: e.touches ? e.touches[0].pageY : e.clientY - } - }; -}; -var swipeMove = exports.swipeMove = function swipeMove(e, spec) { - // spec also contains, trackRef and slideIndex - var scrolling = spec.scrolling, - animating = spec.animating, - vertical = spec.vertical, - swipeToSlide = spec.swipeToSlide, - verticalSwiping = spec.verticalSwiping, - rtl = spec.rtl, - currentSlide = spec.currentSlide, - edgeFriction = spec.edgeFriction, - edgeDragged = spec.edgeDragged, - onEdge = spec.onEdge, - swiped = spec.swiped, - swiping = spec.swiping, - slideCount = spec.slideCount, - slidesToScroll = spec.slidesToScroll, - infinite = spec.infinite, - touchObject = spec.touchObject, - swipeEvent = spec.swipeEvent, - listHeight = spec.listHeight, - listWidth = spec.listWidth; - - if (scrolling) return; - if (animating) return e.preventDefault(); - if (vertical && swipeToSlide && verticalSwiping) e.preventDefault(); - var swipeLeft = void 0, - state = {}; - var curLeft = getTrackLeft(spec); - touchObject.curX = e.touches ? e.touches[0].pageX : e.clientX; - touchObject.curY = e.touches ? e.touches[0].pageY : e.clientY; - touchObject.swipeLength = Math.round(Math.sqrt(Math.pow(touchObject.curX - touchObject.startX, 2))); - var verticalSwipeLength = Math.round(Math.sqrt(Math.pow(touchObject.curY - touchObject.startY, 2))); - if (!verticalSwiping && !swiping && verticalSwipeLength > 10) { - return { scrolling: true }; - } - if (verticalSwiping) touchObject.swipeLength = verticalSwipeLength; - var positionOffset = (!rtl ? 1 : -1) * (touchObject.curX > touchObject.startX ? 1 : -1); - if (verticalSwiping) positionOffset = touchObject.curY > touchObject.startY ? 1 : -1; - - var dotCount = Math.ceil(slideCount / slidesToScroll); - var swipeDirection = getSwipeDirection(spec.touchObject, verticalSwiping); - var touchSwipeLength = touchObject.swipeLength; - if (!infinite) { - if (currentSlide === 0 && swipeDirection === "right" || currentSlide + 1 >= dotCount && swipeDirection === "left" || !canGoNext(spec) && swipeDirection === "left") { - touchSwipeLength = touchObject.swipeLength * edgeFriction; - if (edgeDragged === false && onEdge) { - onEdge(swipeDirection); - state["edgeDragged"] = true; - } - } - } - if (!swiped && swipeEvent) { - swipeEvent(swipeDirection); - state["swiped"] = true; - } - if (!vertical) { - if (!rtl) { - swipeLeft = curLeft + touchSwipeLength * positionOffset; - } else { - swipeLeft = curLeft - touchSwipeLength * positionOffset; - } - } else { - swipeLeft = curLeft + touchSwipeLength * (listHeight / listWidth) * positionOffset; - } - if (verticalSwiping) { - swipeLeft = curLeft + touchSwipeLength * positionOffset; - } - state = _extends({}, state, { - touchObject: touchObject, - swipeLeft: swipeLeft, - trackStyle: getTrackCSS(_extends({}, spec, { left: swipeLeft })) - }); - if (Math.abs(touchObject.curX - touchObject.startX) < Math.abs(touchObject.curY - touchObject.startY) * 0.8) { - return state; - } - if (touchObject.swipeLength > 10) { - state["swiping"] = true; - e.preventDefault(); - } - return state; -}; -var swipeEnd = exports.swipeEnd = function swipeEnd(e, spec) { - var dragging = spec.dragging, - swipe = spec.swipe, - touchObject = spec.touchObject, - listWidth = spec.listWidth, - touchThreshold = spec.touchThreshold, - verticalSwiping = spec.verticalSwiping, - listHeight = spec.listHeight, - currentSlide = spec.currentSlide, - swipeToSlide = spec.swipeToSlide, - scrolling = spec.scrolling, - onSwipe = spec.onSwipe; - - if (!dragging) { - if (swipe) e.preventDefault(); - return {}; - } - var minSwipe = verticalSwiping ? listHeight / touchThreshold : listWidth / touchThreshold; - var swipeDirection = getSwipeDirection(touchObject, verticalSwiping); - // reset the state of touch related state variables. - var state = { - dragging: false, - edgeDragged: false, - scrolling: false, - swiping: false, - swiped: false, - swipeLeft: null, - touchObject: {} - }; - if (scrolling) { - return state; - } - if (!touchObject.swipeLength) { - return state; - } - if (touchObject.swipeLength > minSwipe) { - e.preventDefault(); - if (onSwipe) { - onSwipe(swipeDirection); - } - var slideCount = void 0, - newSlide = void 0; - switch (swipeDirection) { - case "left": - case "up": - newSlide = currentSlide + getSlideCount(spec); - slideCount = swipeToSlide ? checkNavigable(spec, newSlide) : newSlide; - state["currentDirection"] = 0; - break; - case "right": - case "down": - newSlide = currentSlide - getSlideCount(spec); - slideCount = swipeToSlide ? checkNavigable(spec, newSlide) : newSlide; - state["currentDirection"] = 1; - break; - default: - slideCount = currentSlide; - } - state["triggerSlideHandler"] = slideCount; - } else { - // Adjust the track back to it's original position. - var currentLeft = getTrackLeft(spec); - state["trackStyle"] = getTrackAnimateCSS(_extends({}, spec, { left: currentLeft })); - } - return state; -}; -var getNavigableIndexes = exports.getNavigableIndexes = function getNavigableIndexes(spec) { - var max = spec.infinite ? spec.slideCount * 2 : spec.slideCount; - var breakpoint = spec.infinite ? spec.slidesToShow * -1 : 0; - var counter = spec.infinite ? spec.slidesToShow * -1 : 0; - var indexes = []; - while (breakpoint < max) { - indexes.push(breakpoint); - breakpoint = counter + spec.slidesToScroll; - counter += Math.min(spec.slidesToScroll, spec.slidesToShow); - } - return indexes; -}; -var checkNavigable = exports.checkNavigable = function checkNavigable(spec, index) { - var navigables = getNavigableIndexes(spec); - var prevNavigable = 0; - if (index > navigables[navigables.length - 1]) { - index = navigables[navigables.length - 1]; - } else { - for (var n in navigables) { - if (index < navigables[n]) { - index = prevNavigable; - break; - } - prevNavigable = navigables[n]; - } - } - return index; -}; -var getSlideCount = exports.getSlideCount = function getSlideCount(spec) { - var centerOffset = spec.centerMode ? spec.slideWidth * Math.floor(spec.slidesToShow / 2) : 0; - if (spec.swipeToSlide) { - var swipedSlide = void 0; - var slickList = _reactDom2.default.findDOMNode(spec.listRef); - var slides = slickList.querySelectorAll(".slick-slide"); - Array.from(slides).every(function (slide) { - if (!spec.vertical) { - if (slide.offsetLeft - centerOffset + getWidth(slide) / 2 > spec.swipeLeft * -1) { - swipedSlide = slide; - return false; - } - } else { - if (slide.offsetTop + getHeight(slide) / 2 > spec.swipeLeft * -1) { - swipedSlide = slide; - return false; - } - } - - return true; - }); - - if (!swipedSlide) { - return 0; - } - var currentIndex = spec.rtl === true ? spec.slideCount - spec.currentSlide : spec.currentSlide; - var slidesTraversed = Math.abs(swipedSlide.dataset.index - currentIndex) || 1; - return slidesTraversed; - } else { - return spec.slidesToScroll; - } -}; - -var checkSpecKeys = exports.checkSpecKeys = function checkSpecKeys(spec, keysArray) { - return keysArray.reduce(function (value, key) { - return value && spec.hasOwnProperty(key); - }, true) ? null : console.error("Keys Missing:", spec); -}; - -var getTrackCSS = exports.getTrackCSS = function getTrackCSS(spec) { - checkSpecKeys(spec, ["left", "variableWidth", "slideCount", "slidesToShow", "slideWidth"]); - var trackWidth = void 0, - trackHeight = void 0; - var trackChildren = spec.slideCount + 2 * spec.slidesToShow; - if (!spec.vertical) { - trackWidth = getTotalSlides(spec) * spec.slideWidth; - } else { - trackHeight = trackChildren * spec.slideHeight; - } - var style = { - opacity: 1, - transition: "", - WebkitTransition: "" - }; - if (spec.useTransform) { - var WebkitTransform = !spec.vertical ? "translate3d(" + spec.left + "px, 0px, 0px)" : "translate3d(0px, " + spec.left + "px, 0px)"; - var transform = !spec.vertical ? "translate3d(" + spec.left + "px, 0px, 0px)" : "translate3d(0px, " + spec.left + "px, 0px)"; - var msTransform = !spec.vertical ? "translateX(" + spec.left + "px)" : "translateY(" + spec.left + "px)"; - style = _extends({}, style, { - WebkitTransform: WebkitTransform, - transform: transform, - msTransform: msTransform - }); - } else { - if (spec.vertical) { - style["top"] = spec.left; - } else { - style["left"] = spec.left; - } - } - if (spec.fade) style = { opacity: 1 }; - if (trackWidth) style.width = trackWidth; - if (trackHeight) style.height = trackHeight; - - // Fallback for IE8 - if (window && !window.addEventListener && window.attachEvent) { - if (!spec.vertical) { - style.marginLeft = spec.left + "px"; - } else { - style.marginTop = spec.left + "px"; - } - } - - return style; -}; -var getTrackAnimateCSS = exports.getTrackAnimateCSS = function getTrackAnimateCSS(spec) { - checkSpecKeys(spec, ["left", "variableWidth", "slideCount", "slidesToShow", "slideWidth", "speed", "cssEase"]); - var style = getTrackCSS(spec); - // useCSS is true by default so it can be undefined - if (spec.useTransform) { - style.WebkitTransition = "-webkit-transform " + spec.speed + "ms " + spec.cssEase; - style.transition = "transform " + spec.speed + "ms " + spec.cssEase; - } else { - if (spec.vertical) { - style.transition = "top " + spec.speed + "ms " + spec.cssEase; - } else { - style.transition = "left " + spec.speed + "ms " + spec.cssEase; - } - } - return style; -}; -var getTrackLeft = exports.getTrackLeft = function getTrackLeft(spec) { - if (spec.unslick) { - return 0; - } - - checkSpecKeys(spec, ["slideIndex", "trackRef", "infinite", "centerMode", "slideCount", "slidesToShow", "slidesToScroll", "slideWidth", "listWidth", "variableWidth", "slideHeight"]); - - var slideIndex = spec.slideIndex, - trackRef = spec.trackRef, - infinite = spec.infinite, - centerMode = spec.centerMode, - slideCount = spec.slideCount, - slidesToShow = spec.slidesToShow, - slidesToScroll = spec.slidesToScroll, - slideWidth = spec.slideWidth, - listWidth = spec.listWidth, - variableWidth = spec.variableWidth, - slideHeight = spec.slideHeight, - fade = spec.fade, - vertical = spec.vertical; - - - var slideOffset = 0; - var targetLeft; - var targetSlide; - var verticalOffset = 0; - - if (fade || spec.slideCount === 1) { - return 0; - } - - var slidesToOffset = 0; - if (infinite) { - slidesToOffset = -getPreClones(spec); // bring active slide to the beginning of visual area - // if next scroll doesn't have enough children, just reach till the end of original slides instead of shifting slidesToScroll children - if (slideCount % slidesToScroll !== 0 && slideIndex + slidesToScroll > slideCount) { - slidesToOffset = -(slideIndex > slideCount ? slidesToShow - (slideIndex - slideCount) : slideCount % slidesToScroll); - } - // shift current slide to center of the frame - if (centerMode) { - slidesToOffset += parseInt(slidesToShow / 2); - } - } else { - if (slideCount % slidesToScroll !== 0 && slideIndex + slidesToScroll > slideCount) { - slidesToOffset = slidesToShow - slideCount % slidesToScroll; - } - if (centerMode) { - slidesToOffset = parseInt(slidesToShow / 2); - } - } - slideOffset = slidesToOffset * slideWidth; - verticalOffset = slidesToOffset * slideHeight; - - if (!vertical) { - targetLeft = slideIndex * slideWidth * -1 + slideOffset; - } else { - targetLeft = slideIndex * slideHeight * -1 + verticalOffset; - } - - if (variableWidth === true) { - var targetSlideIndex; - var trackElem = _reactDom2.default.findDOMNode(trackRef); - targetSlideIndex = slideIndex + getPreClones(spec); - targetSlide = trackElem && trackElem.childNodes[targetSlideIndex]; - targetLeft = targetSlide ? targetSlide.offsetLeft * -1 : 0; - if (centerMode === true) { - targetSlideIndex = infinite ? slideIndex + getPreClones(spec) : slideIndex; - targetSlide = trackElem && trackElem.children[targetSlideIndex]; - targetLeft = 0; - for (var slide = 0; slide < targetSlideIndex; slide++) { - targetLeft -= trackElem && trackElem.children[slide] && trackElem.children[slide].offsetWidth; - } - targetLeft -= parseInt(spec.centerPadding); - targetLeft += targetSlide && (listWidth - targetSlide.offsetWidth) / 2; - } - } - - return targetLeft; -}; - -var getPreClones = exports.getPreClones = function getPreClones(spec) { - if (spec.unslick || !spec.infinite) { - return 0; - } - if (spec.variableWidth) { - return spec.slideCount; - } - return spec.slidesToShow + (spec.centerMode ? 1 : 0); -}; - -var getPostClones = exports.getPostClones = function getPostClones(spec) { - if (spec.unslick || !spec.infinite) { - return 0; - } - return spec.slideCount; -}; - -var getTotalSlides = exports.getTotalSlides = function getTotalSlides(spec) { - return spec.slideCount === 1 ? 1 : getPreClones(spec) + spec.slideCount + getPostClones(spec); -}; -var siblingDirection = exports.siblingDirection = function siblingDirection(spec) { - if (spec.targetSlide > spec.currentSlide) { - if (spec.targetSlide > spec.currentSlide + slidesOnRight(spec)) { - return "left"; - } - return "right"; - } else { - if (spec.targetSlide < spec.currentSlide - slidesOnLeft(spec)) { - return "right"; - } - return "left"; - } -}; - -var slidesOnRight = exports.slidesOnRight = function slidesOnRight(_ref) { +var slidesOnRight = function slidesOnRight(_ref) { var slidesToShow = _ref.slidesToShow, centerMode = _ref.centerMode, rtl = _ref.rtl, @@ -3684,13 +3295,17 @@ var slidesOnRight = exports.slidesOnRight = function slidesOnRight(_ref) { if (rtl && slidesToShow % 2 === 0) right += 1; return right; } + if (rtl) { return 0; } + return slidesToShow - 1; }; -var slidesOnLeft = exports.slidesOnLeft = function slidesOnLeft(_ref2) { +exports.slidesOnRight = slidesOnRight; + +var slidesOnLeft = function slidesOnLeft(_ref2) { var slidesToShow = _ref2.slidesToShow, centerMode = _ref2.centerMode, rtl = _ref2.rtl, @@ -3703,4016 +3318,4460 @@ var slidesOnLeft = exports.slidesOnLeft = function slidesOnLeft(_ref2) { if (!rtl && slidesToShow % 2 === 0) left += 1; return left; } + if (rtl) { return slidesToShow - 1; } + return 0; }; -var canUseDOM = exports.canUseDOM = function canUseDOM() { +exports.slidesOnLeft = slidesOnLeft; + +var canUseDOM = function canUseDOM() { return !!(typeof window !== "undefined" && window.document && window.document.createElement); }; +exports.canUseDOM = canUseDOM; + /***/ }), -/* 50 */ -/*!********************************************!*\ - !*** ./src/components/box-shadow/index.js ***! - \********************************************/ +/* 43 */ +/*!******************************************************************************************************!*\ + !*** ./node_modules/react-transition-group/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js ***! + \******************************************************************************************************/ /*! exports provided: default */ /*! exports used: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } +/* harmony export (immutable) */ __webpack_exports__["a"] = _inheritsLoose; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__setPrototypeOf_js__ = __webpack_require__(/*! ./setPrototypeOf.js */ 518); -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } +function _inheritsLoose(subClass, superClass) { + subClass.prototype = Object.create(superClass.prototype); + subClass.prototype.constructor = subClass; + Object(__WEBPACK_IMPORTED_MODULE_0__setPrototypeOf_js__["a" /* default */])(subClass, superClass); +} -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } +/***/ }), +/* 44 */ +/*!************************************************************!*\ + !*** ./node_modules/core-js/library/modules/_an-object.js ***! + \************************************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { -/** - * Box-Shadow reusable component. - * - */ -var __ = wp.i18n.__; -var ColorPalette = wp.blockEditor.ColorPalette; -var _wp$components = wp.components, - Button = _wp$components.Button, - SelectControl = _wp$components.SelectControl, - RangeControl = _wp$components.RangeControl, - Dashicon = _wp$components.Dashicon; +var isObject = __webpack_require__(/*! ./_is-object */ 37); +module.exports = function (it) { + if (!isObject(it)) throw TypeError(it + ' is not an object!'); + return it; +}; -// Extend component -var _wp$element = wp.element, - Component = _wp$element.Component, - Fragment = _wp$element.Fragment; +/***/ }), +/* 45 */ +/*!******************************************!*\ + !*** ./node_modules/lodash/_arrayMap.js ***! + \******************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports) { -var BoxShadowControl = function (_Component) { - _inherits(BoxShadowControl, _Component); +/** + * A specialized version of `_.map` for arrays without support for iteratee + * shorthands. + * + * @private + * @param {Array} [array] The array to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Array} Returns the new mapped array. + */ +function arrayMap(array, iteratee) { + var index = -1, + length = array == null ? 0 : array.length, + result = Array(length); - function BoxShadowControl() { - _classCallCheck(this, BoxShadowControl); + while (++index < length) { + result[index] = iteratee(array[index], index, array); + } + return result; +} - var _this = _possibleConstructorReturn(this, (BoxShadowControl.__proto__ || Object.getPrototypeOf(BoxShadowControl)).apply(this, arguments)); +module.exports = arrayMap; - _this.onAdvancedControlClick = _this.onAdvancedControlClick.bind(_this); - _this.onAdvancedControlReset = _this.onAdvancedControlReset.bind(_this); - return _this; - } - _createClass(BoxShadowControl, [{ - key: "onAdvancedControlClick", - value: function onAdvancedControlClick() { +/***/ }), +/* 46 */ +/*!*******************************************!*\ + !*** ./node_modules/lodash/_ListCache.js ***! + \*******************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { - var control = true; - var label = __("Hide Advanced"); +var listCacheClear = __webpack_require__(/*! ./_listCacheClear */ 261), + listCacheDelete = __webpack_require__(/*! ./_listCacheDelete */ 262), + listCacheGet = __webpack_require__(/*! ./_listCacheGet */ 263), + listCacheHas = __webpack_require__(/*! ./_listCacheHas */ 264), + listCacheSet = __webpack_require__(/*! ./_listCacheSet */ 265); - if (this.state !== null && this.state.showAdvancedControls === true) { - control = false; - label = __("Advanced"); - } +/** + * Creates an list cache object. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */ +function ListCache(entries) { + var index = -1, + length = entries == null ? 0 : entries.length; - this.setState({ - showAdvancedControls: control, - showAdvancedControlsLabel: label - }); - } - }, { - key: "onAdvancedControlReset", - value: function onAdvancedControlReset() { - var setAttributes = this.props.setAttributes; - - - setAttributes({ boxShadowColor: "" }); - setAttributes({ boxShadowHOffset: "" }); - setAttributes({ boxShadowVOffset: "" }); - setAttributes({ boxShadowBlur: "" }); - setAttributes({ boxShadowSpread: "" }); - setAttributes({ boxShadowPosition: "" }); - } - }, { - key: "render", - value: function render() { - var _props = this.props, - setAttributes = _props.setAttributes, - boxShadowColor = _props.boxShadowColor, - boxShadowHOffset = _props.boxShadowHOffset, - boxShadowVOffset = _props.boxShadowVOffset, - boxShadowBlur = _props.boxShadowBlur, - boxShadowSpread = _props.boxShadowSpread, - boxShadowPosition = _props.boxShadowPosition; - - - var advancedControls; - var boxShadowAdvancedControls; - var resetBoxShadowAdvancedControls; - if (this.state !== null && true === this.state.showAdvancedControls) { - advancedControls = wp.element.createElement( - "div", - { className: "uagb-box-shadow-advanced" }, - wp.element.createElement( - Fragment, - null, - wp.element.createElement( - "p", - { className: "uagb-setting-label" }, - boxShadowColor.label, - wp.element.createElement( - "span", - { className: "components-base-control__label" }, - wp.element.createElement("span", { className: "component-color-indicator", style: { backgroundColor: boxShadowColor.value } }) - ) - ), - wp.element.createElement(ColorPalette, { - value: boxShadowColor.value, - onChange: function onChange(colorValue) { - return setAttributes({ boxShadowColor: colorValue }); - }, - allowReset: true - }) - ), - wp.element.createElement( - Fragment, - null, - wp.element.createElement( - "h2", - null, - boxShadowHOffset.label - ), - wp.element.createElement(RangeControl, { - value: boxShadowHOffset.value, - onChange: function onChange(value) { - return setAttributes({ boxShadowHOffset: value }); - }, - min: -100, - max: 100, - allowReset: true - }) - ), - wp.element.createElement( - Fragment, - null, - wp.element.createElement( - "h2", - null, - boxShadowVOffset.label - ), - wp.element.createElement(RangeControl, { - value: boxShadowVOffset.value, - onChange: function onChange(value) { - return setAttributes({ boxShadowVOffset: value }); - }, - min: -100, - max: 100, - allowReset: true - }) - ), - wp.element.createElement( - Fragment, - null, - wp.element.createElement( - "h2", - null, - boxShadowBlur.label - ), - wp.element.createElement(RangeControl, { - value: boxShadowBlur.value, - onChange: function onChange(value) { - return setAttributes({ boxShadowBlur: value }); - }, - min: 0, - max: 100, - allowReset: true - }) - ), - wp.element.createElement( - Fragment, - null, - wp.element.createElement( - "h2", - null, - boxShadowSpread.label - ), - wp.element.createElement(RangeControl, { - value: boxShadowSpread.value, - onChange: function onChange(value) { - return setAttributes({ boxShadowSpread: value }); - }, - min: 0, - max: 100, - allowReset: true - }) - ), - wp.element.createElement( - Fragment, - null, - wp.element.createElement(SelectControl, { - label: boxShadowPosition.label, - value: boxShadowPosition.value, - onChange: function onChange(value) { - return setAttributes({ boxShadowPosition: value }); - }, - options: [{ value: "inset", label: __("Inset") }, { value: "outset", label: __("Outset") }] - }) - ) - ); - } - resetBoxShadowAdvancedControls = wp.element.createElement( - Button, - { - className: "uagb-size-btn uagb-typography-reset-btn", - isSmall: true, - "aria-pressed": this.state !== null, - onClick: this.onAdvancedControlReset - }, - wp.element.createElement(Dashicon, { icon: "image-rotate" }) - ); - - boxShadowAdvancedControls = wp.element.createElement( - Button, - { - className: "uagb-size-btn uagb-typography-control-btn", - isSmall: true, - "aria-pressed": this.state !== null, - onClick: this.onAdvancedControlClick - }, - wp.element.createElement(Dashicon, { icon: "admin-tools" }) - ); + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } +} - return wp.element.createElement( - "div", - { className: "uag-typography-option-actions" }, - wp.element.createElement( - "span", - null, - this.props.label - ), - boxShadowAdvancedControls, - resetBoxShadowAdvancedControls, - advancedControls - ); - } - }]); +// Add methods to `ListCache`. +ListCache.prototype.clear = listCacheClear; +ListCache.prototype['delete'] = listCacheDelete; +ListCache.prototype.get = listCacheGet; +ListCache.prototype.has = listCacheHas; +ListCache.prototype.set = listCacheSet; - return BoxShadowControl; -}(Component); +module.exports = ListCache; -/* harmony default export */ __webpack_exports__["a"] = (BoxShadowControl); /***/ }), -/* 51 */ -/*!******************************************!*\ - !*** ./src/blocks/price-list/classes.js ***! - \******************************************/ -/*! exports provided: default */ -/*! exports used: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/** -* Returns Dynamic Generated Classes -*/ - -function PositionClasses(attributes) { - - var iconimgStyle_class = ""; - var imge_cnt = 0; - var image = attributes.image; - - if (typeof attributes.rest_menu_item_arr !== "undefined") { - attributes.rest_menu_item_arr.map(function (item, thisIndex) { - var image_arr = item.image; - if (image_arr && typeof image_arr !== "undefined") { - imge_cnt++; - } - }); - } - - if (typeof image !== "undefined" && image !== null && image !== "") { - imge_cnt++; - } - - if (imge_cnt > 0) { - iconimgStyle_class += "uagb-rm__image-position-" + attributes.imagePosition + " "; - } - - iconimgStyle_class += " uagb-rm__align-" + attributes.headingAlign + " "; - - if ("left" == attributes.imagePosition || "right" == attributes.imagePosition) { - iconimgStyle_class += "uagb-rm__image-aligned-" + attributes.imageAlignment + " "; - if (attributes.stack !== "none") { - iconimgStyle_class += "uagb-rm-stacked-" + attributes.stack + " "; - if (attributes.imagePosition === "right") { - iconimgStyle_class += "uagb-rm-reverse-order-" + attributes.stack + " "; - } - } - } +/* 47 */ +/*!**********************************************!*\ + !*** ./node_modules/lodash/_assocIndexOf.js ***! + \**********************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { - iconimgStyle_class += "uagb-rm__desk-column-" + attributes.columns + " "; - iconimgStyle_class += "uagb-rm__tablet-column-" + attributes.tcolumns + " "; - iconimgStyle_class += "uagb-rm__mobile-column-" + attributes.mcolumns + " "; +var eq = __webpack_require__(/*! ./eq */ 48); - return [iconimgStyle_class]; +/** + * Gets the index at which the `key` is found in `array` of key-value pairs. + * + * @private + * @param {Array} array The array to inspect. + * @param {*} key The key to search for. + * @returns {number} Returns the index of the matched value, else `-1`. + */ +function assocIndexOf(array, key) { + var length = array.length; + while (length--) { + if (eq(array[length][0], key)) { + return length; + } + } + return -1; } -/* harmony default export */ __webpack_exports__["a"] = (PositionClasses); +module.exports = assocIndexOf; + /***/ }), -/* 52 */ -/*!***************************************!*\ - !*** ./node_modules/lodash/_Stack.js ***! - \***************************************/ -/*! no static exports found */ +/* 48 */ +/*!***********************************!*\ + !*** ./node_modules/lodash/eq.js ***! + \***********************************/ +/*! dynamic exports provided */ /*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { - -var ListCache = __webpack_require__(/*! ./_ListCache */ 35), - stackClear = __webpack_require__(/*! ./_stackClear */ 199), - stackDelete = __webpack_require__(/*! ./_stackDelete */ 200), - stackGet = __webpack_require__(/*! ./_stackGet */ 201), - stackHas = __webpack_require__(/*! ./_stackHas */ 202), - stackSet = __webpack_require__(/*! ./_stackSet */ 203); +/***/ (function(module, exports) { /** - * Creates a stack cache object to store key-value pairs. + * Performs a + * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) + * comparison between two values to determine if they are equivalent. * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to compare. + * @param {*} other The other value to compare. + * @returns {boolean} Returns `true` if the values are equivalent, else `false`. + * @example + * + * var object = { 'a': 1 }; + * var other = { 'a': 1 }; + * + * _.eq(object, object); + * // => true + * + * _.eq(object, other); + * // => false + * + * _.eq('a', 'a'); + * // => true + * + * _.eq('a', Object('a')); + * // => false + * + * _.eq(NaN, NaN); + * // => true */ -function Stack(entries) { - var data = this.__data__ = new ListCache(entries); - this.size = data.size; +function eq(value, other) { + return value === other || (value !== value && other !== other); } -// Add methods to `Stack`. -Stack.prototype.clear = stackClear; -Stack.prototype['delete'] = stackDelete; -Stack.prototype.get = stackGet; -Stack.prototype.has = stackHas; -Stack.prototype.set = stackSet; - -module.exports = Stack; +module.exports = eq; /***/ }), -/* 53 */ -/*!*************************************!*\ - !*** ./node_modules/lodash/_Map.js ***! - \*************************************/ -/*! no static exports found */ +/* 49 */ +/*!**********************************************!*\ + !*** ./node_modules/lodash/_nativeCreate.js ***! + \**********************************************/ +/*! dynamic exports provided */ /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { -var getNative = __webpack_require__(/*! ./_getNative */ 19), - root = __webpack_require__(/*! ./_root */ 12); +var getNative = __webpack_require__(/*! ./_getNative */ 21); /* Built-in method references that are verified to be native. */ -var Map = getNative(root, 'Map'); - -module.exports = Map; - - -/***/ }), -/* 54 */ -/*!***********************************!*\ - !*** (webpack)/buildin/global.js ***! - \***********************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports) { +var nativeCreate = getNative(Object, 'create'); -var g; - -// This works in non-strict mode -g = (function() { - return this; -})(); - -try { - // This works if eval is allowed (see CSP) - g = g || Function("return this")() || (1,eval)("this"); -} catch(e) { - // This works if the window reference is available - if(typeof window === "object") - g = window; -} - -// g can still be undefined, but nothing to do about it... -// We return undefined, instead of nothing here, so it's -// easier to handle this case. if(!global) { ...} - -module.exports = g; +module.exports = nativeCreate; /***/ }), -/* 55 */ -/*!******************************************!*\ - !*** ./node_modules/lodash/_MapCache.js ***! - \******************************************/ -/*! no static exports found */ +/* 50 */ +/*!********************************************!*\ + !*** ./node_modules/lodash/_getMapData.js ***! + \********************************************/ +/*! dynamic exports provided */ /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { -var mapCacheClear = __webpack_require__(/*! ./_mapCacheClear */ 210), - mapCacheDelete = __webpack_require__(/*! ./_mapCacheDelete */ 217), - mapCacheGet = __webpack_require__(/*! ./_mapCacheGet */ 219), - mapCacheHas = __webpack_require__(/*! ./_mapCacheHas */ 220), - mapCacheSet = __webpack_require__(/*! ./_mapCacheSet */ 221); +var isKeyable = __webpack_require__(/*! ./_isKeyable */ 285); /** - * Creates a map cache object to store key-value pairs. + * Gets the data for `map`. * * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. + * @param {Object} map The map to query. + * @param {string} key The reference key. + * @returns {*} Returns the map data. */ -function MapCache(entries) { - var index = -1, - length = entries == null ? 0 : entries.length; - - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } +function getMapData(map, key) { + var data = map.__data__; + return isKeyable(key) + ? data[typeof key == 'string' ? 'string' : 'hash'] + : data.map; } -// Add methods to `MapCache`. -MapCache.prototype.clear = mapCacheClear; -MapCache.prototype['delete'] = mapCacheDelete; -MapCache.prototype.get = mapCacheGet; -MapCache.prototype.has = mapCacheHas; -MapCache.prototype.set = mapCacheSet; - -module.exports = MapCache; +module.exports = getMapData; /***/ }), -/* 56 */ -/*!*******************************************!*\ - !*** ./node_modules/lodash/_arrayPush.js ***! - \*******************************************/ -/*! no static exports found */ +/* 51 */ +/*!*****************************************!*\ + !*** ./node_modules/lodash/_isIndex.js ***! + \*****************************************/ +/*! dynamic exports provided */ /*! all exports used */ /***/ (function(module, exports) { +/** Used as references for various `Number` constants. */ +var MAX_SAFE_INTEGER = 9007199254740991; + +/** Used to detect unsigned integer values. */ +var reIsUint = /^(?:0|[1-9]\d*)$/; + /** - * Appends the elements of `values` to `array`. + * Checks if `value` is a valid array-like index. * * @private - * @param {Array} array The array to modify. - * @param {Array} values The values to append. - * @returns {Array} Returns `array`. + * @param {*} value The value to check. + * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index. + * @returns {boolean} Returns `true` if `value` is a valid index, else `false`. */ -function arrayPush(array, values) { - var index = -1, - length = values.length, - offset = array.length; +function isIndex(value, length) { + var type = typeof value; + length = length == null ? MAX_SAFE_INTEGER : length; - while (++index < length) { - array[offset + index] = values[index]; - } - return array; + return !!length && + (type == 'number' || + (type != 'symbol' && reIsUint.test(value))) && + (value > -1 && value % 1 == 0 && value < length); } -module.exports = arrayPush; +module.exports = isIndex; /***/ }), -/* 57 */ -/*!********************************************!*\ - !*** ./node_modules/lodash/_getSymbols.js ***! - \********************************************/ -/*! no static exports found */ +/* 52 */ +/*!*******************************************!*\ + !*** ./node_modules/lodash/_baseUnary.js ***! + \*******************************************/ +/*! dynamic exports provided */ /*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { - -var arrayFilter = __webpack_require__(/*! ./_arrayFilter */ 232), - stubArray = __webpack_require__(/*! ./stubArray */ 120); - -/** Used for built-in method references. */ -var objectProto = Object.prototype; - -/** Built-in value references. */ -var propertyIsEnumerable = objectProto.propertyIsEnumerable; - -/* Built-in method references for those with the same name as other `lodash` methods. */ -var nativeGetSymbols = Object.getOwnPropertySymbols; +/***/ (function(module, exports) { /** - * Creates an array of the own enumerable symbols of `object`. + * The base implementation of `_.unary` without support for storing metadata. * * @private - * @param {Object} object The object to query. - * @returns {Array} Returns the array of symbols. + * @param {Function} func The function to cap arguments for. + * @returns {Function} Returns the new capped function. */ -var getSymbols = !nativeGetSymbols ? stubArray : function(object) { - if (object == null) { - return []; - } - object = Object(object); - return arrayFilter(nativeGetSymbols(object), function(symbol) { - return propertyIsEnumerable.call(object, symbol); - }); -}; +function baseUnary(func) { + return function(value) { + return func(value); + }; +} -module.exports = getSymbols; +module.exports = baseUnary; /***/ }), -/* 58 */ -/*!********************************************!*\ - !*** ./node_modules/lodash/isArguments.js ***! - \********************************************/ -/*! no static exports found */ +/* 53 */ +/*!******************************************!*\ + !*** ./node_modules/lodash/_nodeUtil.js ***! + \******************************************/ +/*! dynamic exports provided */ /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { -var baseIsArguments = __webpack_require__(/*! ./_baseIsArguments */ 233), - isObjectLike = __webpack_require__(/*! ./isObjectLike */ 17); +/* WEBPACK VAR INJECTION */(function(module) {var freeGlobal = __webpack_require__(/*! ./_freeGlobal */ 149); -/** Used for built-in method references. */ -var objectProto = Object.prototype; +/** Detect free variable `exports`. */ +var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports; -/** Used to check objects for own properties. */ -var hasOwnProperty = objectProto.hasOwnProperty; +/** Detect free variable `module`. */ +var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module; -/** Built-in value references. */ -var propertyIsEnumerable = objectProto.propertyIsEnumerable; +/** Detect the popular CommonJS extension `module.exports`. */ +var moduleExports = freeModule && freeModule.exports === freeExports; -/** - * Checks if `value` is likely an `arguments` object. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is an `arguments` object, - * else `false`. - * @example - * - * _.isArguments(function() { return arguments; }()); - * // => true +/** Detect free variable `process` from Node.js. */ +var freeProcess = moduleExports && freeGlobal.process; + +/** Used to access faster Node.js helpers. */ +var nodeUtil = (function() { + try { + // Use `util.types` for Node.js 10+. + var types = freeModule && freeModule.require && freeModule.require('util').types; + + if (types) { + return types; + } + + // Legacy `process.binding('util')` for Node.js < 10. + return freeProcess && freeProcess.binding && freeProcess.binding('util'); + } catch (e) {} +}()); + +module.exports = nodeUtil; + +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(/*! ./../webpack/buildin/module.js */ 82)(module))) + +/***/ }), +/* 54 */ +/*!*********************************************!*\ + !*** ./node_modules/lodash/_isPrototype.js ***! + \*********************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports) { + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** + * Checks if `value` is likely a prototype object. * - * _.isArguments([1, 2, 3]); - * // => false + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a prototype, else `false`. */ -var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) { - return isObjectLike(value) && hasOwnProperty.call(value, 'callee') && - !propertyIsEnumerable.call(value, 'callee'); -}; +function isPrototype(value) { + var Ctor = value && value.constructor, + proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto; -module.exports = isArguments; + return value === proto; +} + +module.exports = isPrototype; /***/ }), -/* 59 */ -/*!*****************************************!*\ - !*** ./node_modules/lodash/isBuffer.js ***! - \*****************************************/ -/*! no static exports found */ +/* 55 */ +/*!****************************************!*\ + !*** ./node_modules/lodash/_getTag.js ***! + \****************************************/ +/*! dynamic exports provided */ /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { -/* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__(/*! ./_root */ 12), - stubFalse = __webpack_require__(/*! ./stubFalse */ 234); - -/** Detect free variable `exports`. */ -var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports; - -/** Detect free variable `module`. */ -var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module; +var DataView = __webpack_require__(/*! ./_DataView */ 305), + Map = __webpack_require__(/*! ./_Map */ 75), + Promise = __webpack_require__(/*! ./_Promise */ 306), + Set = __webpack_require__(/*! ./_Set */ 307), + WeakMap = __webpack_require__(/*! ./_WeakMap */ 308), + baseGetTag = __webpack_require__(/*! ./_baseGetTag */ 22), + toSource = __webpack_require__(/*! ./_toSource */ 150); -/** Detect the popular CommonJS extension `module.exports`. */ -var moduleExports = freeModule && freeModule.exports === freeExports; +/** `Object#toString` result references. */ +var mapTag = '[object Map]', + objectTag = '[object Object]', + promiseTag = '[object Promise]', + setTag = '[object Set]', + weakMapTag = '[object WeakMap]'; -/** Built-in value references. */ -var Buffer = moduleExports ? root.Buffer : undefined; +var dataViewTag = '[object DataView]'; -/* Built-in method references for those with the same name as other `lodash` methods. */ -var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined; +/** Used to detect maps, sets, and weakmaps. */ +var dataViewCtorString = toSource(DataView), + mapCtorString = toSource(Map), + promiseCtorString = toSource(Promise), + setCtorString = toSource(Set), + weakMapCtorString = toSource(WeakMap); /** - * Checks if `value` is a buffer. - * - * @static - * @memberOf _ - * @since 4.3.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a buffer, else `false`. - * @example - * - * _.isBuffer(new Buffer(2)); - * // => true + * Gets the `toStringTag` of `value`. * - * _.isBuffer(new Uint8Array(2)); - * // => false + * @private + * @param {*} value The value to query. + * @returns {string} Returns the `toStringTag`. */ -var isBuffer = nativeIsBuffer || stubFalse; +var getTag = baseGetTag; -module.exports = isBuffer; +// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6. +if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) || + (Map && getTag(new Map) != mapTag) || + (Promise && getTag(Promise.resolve()) != promiseTag) || + (Set && getTag(new Set) != setTag) || + (WeakMap && getTag(new WeakMap) != weakMapTag)) { + getTag = function(value) { + var result = baseGetTag(value), + Ctor = result == objectTag ? value.constructor : undefined, + ctorString = Ctor ? toSource(Ctor) : ''; + + if (ctorString) { + switch (ctorString) { + case dataViewCtorString: return dataViewTag; + case mapCtorString: return mapTag; + case promiseCtorString: return promiseTag; + case setCtorString: return setTag; + case weakMapCtorString: return weakMapTag; + } + } + return result; + }; +} + +module.exports = getTag; -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(/*! ./../webpack/buildin/module.js */ 60)(module))) /***/ }), -/* 60 */ -/*!***********************************!*\ - !*** (webpack)/buildin/module.js ***! - \***********************************/ -/*! no static exports found */ +/* 56 */ +/*!*****************************************!*\ + !*** ./node_modules/lodash/_baseGet.js ***! + \*****************************************/ +/*! dynamic exports provided */ /*! all exports used */ -/***/ (function(module, exports) { +/***/ (function(module, exports, __webpack_require__) { -module.exports = function(module) { - if(!module.webpackPolyfill) { - module.deprecate = function() {}; - module.paths = []; - // module.parent = undefined by default - if(!module.children) module.children = []; - Object.defineProperty(module, "loaded", { - enumerable: true, - get: function() { - return module.l; - } - }); - Object.defineProperty(module, "id", { - enumerable: true, - get: function() { - return module.i; - } - }); - module.webpackPolyfill = 1; - } - return module; -}; +var castPath = __webpack_require__(/*! ./_castPath */ 30), + toKey = __webpack_require__(/*! ./_toKey */ 31); + +/** + * The base implementation of `_.get` without support for default values. + * + * @private + * @param {Object} object The object to query. + * @param {Array|string} path The path of the property to get. + * @returns {*} Returns the resolved value. + */ +function baseGet(object, path) { + path = castPath(path, object); + + var index = 0, + length = path.length; + + while (object != null && index < length) { + object = object[toKey(path[index++])]; + } + return (index && index == length) ? object : undefined; +} + +module.exports = baseGet; /***/ }), -/* 61 */ +/* 57 */ /*!*****************************************!*\ - !*** ./node_modules/lodash/isLength.js ***! + !*** ./node_modules/lodash/isSymbol.js ***! \*****************************************/ -/*! no static exports found */ +/*! dynamic exports provided */ /*! all exports used */ -/***/ (function(module, exports) { +/***/ (function(module, exports, __webpack_require__) { -/** Used as references for various `Number` constants. */ -var MAX_SAFE_INTEGER = 9007199254740991; +var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ 22), + isObjectLike = __webpack_require__(/*! ./isObjectLike */ 18); + +/** `Object#toString` result references. */ +var symbolTag = '[object Symbol]'; /** - * Checks if `value` is a valid array-like length. - * - * **Note:** This method is loosely based on - * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength). + * Checks if `value` is classified as a `Symbol` primitive or object. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a valid length, else `false`. + * @returns {boolean} Returns `true` if `value` is a symbol, else `false`. * @example * - * _.isLength(3); + * _.isSymbol(Symbol.iterator); * // => true * - * _.isLength(Number.MIN_VALUE); - * // => false - * - * _.isLength(Infinity); - * // => false - * - * _.isLength('3'); + * _.isSymbol('abc'); * // => false */ -function isLength(value) { - return typeof value == 'number' && - value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER; +function isSymbol(value) { + return typeof value == 'symbol' || + (isObjectLike(value) && baseGetTag(value) == symbolTag); } -module.exports = isLength; +module.exports = isSymbol; /***/ }), -/* 62 */ -/*!***************************************!*\ - !*** ./node_modules/lodash/_isKey.js ***! - \***************************************/ -/*! no static exports found */ +/* 58 */ +/*!*****************************************!*\ + !*** ./node_modules/lodash/identity.js ***! + \*****************************************/ +/*! dynamic exports provided */ /*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { - -var isArray = __webpack_require__(/*! ./isArray */ 14), - isSymbol = __webpack_require__(/*! ./isSymbol */ 46); - -/** Used to match property names within property paths. */ -var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, - reIsPlainProp = /^\w*$/; +/***/ (function(module, exports) { /** - * Checks if `value` is a property name and not a property path. + * This method returns the first argument it receives. * - * @private - * @param {*} value The value to check. - * @param {Object} [object] The object to query keys on. - * @returns {boolean} Returns `true` if `value` is a property name, else `false`. + * @static + * @since 0.1.0 + * @memberOf _ + * @category Util + * @param {*} value Any value. + * @returns {*} Returns `value`. + * @example + * + * var object = { 'a': 1 }; + * + * console.log(_.identity(object) === object); + * // => true */ -function isKey(value, object) { - if (isArray(value)) { - return false; - } - var type = typeof value; - if (type == 'number' || type == 'symbol' || type == 'boolean' || - value == null || isSymbol(value)) { - return true; - } - return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || - (object != null && value in Object(object)); +function identity(value) { + return value; } -module.exports = isKey; +module.exports = identity; /***/ }), -/* 63 */ -/*!***************************************************!*\ - !*** ./node_modules/prop-types/checkPropTypes.js ***! - \***************************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { +/* 59 */ +/*!*********************************************************************************************!*\ + !*** ./node_modules/react-select/node_modules/@babel/runtime/helpers/esm/classCallCheck.js ***! + \*********************************************************************************************/ +/*! exports provided: default */ +/*! exports used: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -/* WEBPACK VAR INJECTION */(function(process) {/** - * Copyright (c) 2013-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ +/* harmony export (immutable) */ __webpack_exports__["a"] = _classCallCheck; +function _classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) { + throw new TypeError("Cannot call a class as a function"); + } +} +/***/ }), +/* 60 */ +/*!******************************************************************************************!*\ + !*** ./node_modules/react-select/node_modules/@babel/runtime/helpers/esm/createClass.js ***! + \******************************************************************************************/ +/*! exports provided: default */ +/*! exports used: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { +"use strict"; +/* harmony export (immutable) */ __webpack_exports__["a"] = _createClass; +function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + if ("value" in descriptor) descriptor.writable = true; + Object.defineProperty(target, descriptor.key, descriptor); + } +} -var printWarning = function() {}; +function _createClass(Constructor, protoProps, staticProps) { + if (protoProps) _defineProperties(Constructor.prototype, protoProps); + if (staticProps) _defineProperties(Constructor, staticProps); + return Constructor; +} -if (process.env.NODE_ENV !== 'production') { - var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ 64); - var loggedTypeFailures = {}; - var has = Function.call.bind(Object.prototype.hasOwnProperty); +/***/ }), +/* 61 */ +/*!***************************************************************************************!*\ + !*** ./node_modules/react-select/node_modules/@babel/runtime/helpers/esm/inherits.js ***! + \***************************************************************************************/ +/*! exports provided: default */ +/*! exports used: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { - printWarning = function(text) { - var message = 'Warning: ' + text; - if (typeof console !== 'undefined') { - console.error(message); +"use strict"; +/* harmony export (immutable) */ __webpack_exports__["a"] = _inherits; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__setPrototypeOf_js__ = __webpack_require__(/*! ./setPrototypeOf.js */ 340); + +function _inherits(subClass, superClass) { + if (typeof superClass !== "function" && superClass !== null) { + throw new TypeError("Super expression must either be null or a function"); + } + + subClass.prototype = Object.create(superClass && superClass.prototype, { + constructor: { + value: subClass, + writable: true, + configurable: true } - try { - // --- Welcome to debugging React --- - // This error was thrown as a convenience so that you can use this stack - // to find the callsite that caused this warning to fire. - throw new Error(message); - } catch (x) {} - }; + }); + if (superClass) Object(__WEBPACK_IMPORTED_MODULE_0__setPrototypeOf_js__["a" /* default */])(subClass, superClass); } -/** - * Assert that the values match with the type specs. - * Error messages are memorized and will only be shown once. - * - * @param {object} typeSpecs Map of name to a ReactPropType - * @param {object} values Runtime values that need to be type-checked - * @param {string} location e.g. "prop", "context", "child context" - * @param {string} componentName Name of the component for error messages. - * @param {?Function} getStack Returns the component stack. - * @private - */ -function checkPropTypes(typeSpecs, values, location, componentName, getStack) { - if (process.env.NODE_ENV !== 'production') { - for (var typeSpecName in typeSpecs) { - if (has(typeSpecs, typeSpecName)) { - var error; - // Prop type validation may throw. In case they do, we don't want to - // fail the render phase where it didn't fail before. So we log it. - // After these have been cleaned up, we'll let them throw. - try { - // This is intentionally an invariant that gets caught. It's the same - // behavior as without this statement except with a better message. - if (typeof typeSpecs[typeSpecName] !== 'function') { - var err = Error( - (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + - 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' - ); - err.name = 'Invariant Violation'; - throw err; - } - error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret); - } catch (ex) { - error = ex; - } - if (error && !(error instanceof Error)) { - printWarning( - (componentName || 'React class') + ': type specification of ' + - location + ' `' + typeSpecName + '` is invalid; the type checker ' + - 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' + - 'You may have forgotten to pass an argument to the type checker ' + - 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + - 'shape all require an argument).' - ); - } - if (error instanceof Error && !(error.message in loggedTypeFailures)) { - // Only monitor this failure once because there tends to be a lot of the - // same error. - loggedTypeFailures[error.message] = true; +/***/ }), +/* 62 */ +/*!********************************************************************************************************!*\ + !*** ./node_modules/react-select/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js ***! + \********************************************************************************************************/ +/*! exports provided: default */ +/*! exports used: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { - var stack = getStack ? getStack() : ''; +"use strict"; +/* harmony export (immutable) */ __webpack_exports__["a"] = _possibleConstructorReturn; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_typeof__ = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 169); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_typeof___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_typeof__); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__assertThisInitialized_js__ = __webpack_require__(/*! ./assertThisInitialized.js */ 170); - printWarning( - 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '') - ); - } - } - } - } -} -/** - * Resets warning cache when testing. - * - * @private - */ -checkPropTypes.resetWarningCache = function() { - if (process.env.NODE_ENV !== 'production') { - loggedTypeFailures = {}; +function _possibleConstructorReturn(self, call) { + if (call && (__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_typeof___default()(call) === "object" || typeof call === "function")) { + return call; } + + return Object(__WEBPACK_IMPORTED_MODULE_1__assertThisInitialized_js__["a" /* default */])(self); } -module.exports = checkPropTypes; +/***/ }), +/* 63 */ +/*!*********************************************************************************************!*\ + !*** ./node_modules/react-select/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js ***! + \*********************************************************************************************/ +/*! exports provided: default */ +/*! exports used: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(/*! ./../process/browser.js */ 3))) +"use strict"; +/* harmony export (immutable) */ __webpack_exports__["a"] = _getPrototypeOf; +function _getPrototypeOf(o) { + _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { + return o.__proto__ || Object.getPrototypeOf(o); + }; + return _getPrototypeOf(o); +} /***/ }), /* 64 */ -/*!*************************************************************!*\ - !*** ./node_modules/prop-types/lib/ReactPropTypesSecret.js ***! - \*************************************************************/ -/*! no static exports found */ +/*!*********************************************!*\ + !*** ./node_modules/lodash/_assignValue.js ***! + \*********************************************/ +/*! dynamic exports provided */ /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { -"use strict"; -/** - * Copyright (c) 2013-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ +var baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ 190), + eq = __webpack_require__(/*! ./eq */ 48); +/** Used for built-in method references. */ +var objectProto = Object.prototype; +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; -var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; +/** + * Assigns `value` to `key` of `object` if the existing value is not equivalent + * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) + * for equality comparisons. + * + * @private + * @param {Object} object The object to modify. + * @param {string} key The key of the property to assign. + * @param {*} value The value to assign. + */ +function assignValue(object, key, value) { + var objValue = object[key]; + if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) || + (value === undefined && !(key in object))) { + baseAssignValue(object, key, value); + } +} -module.exports = ReactPropTypesSecret; +module.exports = assignValue; /***/ }), /* 65 */ -/*!*************************************************************!*\ - !*** ./node_modules/@emotion/core/dist/core.browser.esm.js ***! - \*************************************************************/ -/*! exports provided: css, CacheProvider, ClassNames, Global, ThemeContext, jsx, keyframes, withEmotionCache */ -/*! exports used: CacheProvider, ClassNames, jsx, keyframes */ +/*!********************************************!*\ + !*** ./src/components/box-shadow/index.js ***! + \********************************************/ +/*! exports provided: default */ +/*! exports used: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -/* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return CacheProvider; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return ClassNames; }); -/* unused harmony export Global */ -/* unused harmony export ThemeContext */ -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return jsx; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return keyframes; }); -/* unused harmony export withEmotionCache */ -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_inheritsLoose__ = __webpack_require__(/*! @babel/runtime/helpers/inheritsLoose */ 262); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_inheritsLoose___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_inheritsLoose__); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(/*! react */ 6); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__emotion_cache__ = __webpack_require__(/*! @emotion/cache */ 132); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__emotion_utils__ = __webpack_require__(/*! @emotion/utils */ 265); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__emotion_serialize__ = __webpack_require__(/*! @emotion/serialize */ 134); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__emotion_sheet__ = __webpack_require__(/*! @emotion/sheet */ 133); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__emotion_css__ = __webpack_require__(/*! @emotion/css */ 29); -/* unused harmony reexport css */ +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } +/** + * Box-Shadow reusable component. + * + */ +var __ = wp.i18n.__; +var ColorPalette = wp.blockEditor.ColorPalette; +var _wp$components = wp.components, + Button = _wp$components.Button, + SelectControl = _wp$components.SelectControl, + RangeControl = _wp$components.RangeControl, + Dashicon = _wp$components.Dashicon; +// Extend component +var _wp$element = wp.element, + Component = _wp$element.Component, + Fragment = _wp$element.Fragment; +var BoxShadowControl = function (_Component) { + _inherits(BoxShadowControl, _Component); + function BoxShadowControl() { + _classCallCheck(this, BoxShadowControl); -var EmotionCacheContext = __WEBPACK_IMPORTED_MODULE_1_react__["createContext"]( // we're doing this to avoid preconstruct's dead code elimination in this one case -// because this module is primarily intended for the browser and node -// but it's also required in react native and similar environments sometimes -// and we could have a special build just for that -// but this is much easier and the native packages -// might use a different theme context in the future anyway -typeof HTMLElement !== 'undefined' ? __WEBPACK_IMPORTED_MODULE_2__emotion_cache__["a" /* default */]() : null); -var ThemeContext = __WEBPACK_IMPORTED_MODULE_1_react__["createContext"]({}); -var CacheProvider = EmotionCacheContext.Provider; + var _this = _possibleConstructorReturn(this, (BoxShadowControl.__proto__ || Object.getPrototypeOf(BoxShadowControl)).apply(this, arguments)); -var withEmotionCache = function withEmotionCache(func) { - var render = function render(props, ref) { - return __WEBPACK_IMPORTED_MODULE_1_react__["createElement"](EmotionCacheContext.Consumer, null, function (cache) { - return func(props, cache, ref); - }); - }; // $FlowFixMe + _this.onAdvancedControlClick = _this.onAdvancedControlClick.bind(_this); + _this.onAdvancedControlReset = _this.onAdvancedControlReset.bind(_this); + return _this; + } + _createClass(BoxShadowControl, [{ + key: "onAdvancedControlClick", + value: function onAdvancedControlClick() { - return __WEBPACK_IMPORTED_MODULE_1_react__["forwardRef"](render); -}; + var control = true; + var label = __("Hide Advanced", 'ultimate-addons-for-gutenberg'); -// thus we only need to replace what is a valid character for JS, but not for CSS + if (this.state !== null && this.state.showAdvancedControls === true) { + control = false; + label = __("Advanced", 'ultimate-addons-for-gutenberg'); + } -var sanitizeIdentifier = function sanitizeIdentifier(identifier) { - return identifier.replace(/\$/g, '-'); -}; + this.setState({ + showAdvancedControls: control, + showAdvancedControlsLabel: label + }); + } + }, { + key: "onAdvancedControlReset", + value: function onAdvancedControlReset() { + var setAttributes = this.props.setAttributes; -var typePropName = '__EMOTION_TYPE_PLEASE_DO_NOT_USE__'; -var labelPropName = '__EMOTION_LABEL_PLEASE_DO_NOT_USE__'; -var hasOwnProperty = Object.prototype.hasOwnProperty; -var render = function render(cache, props, theme, ref) { - var cssProp = theme === null ? props.css : props.css(theme); // so that using `css` from `emotion` and passing the result to the css prop works - // not passing the registered cache to serializeStyles because it would - // make certain babel optimisations not possible + setAttributes({ boxShadowColor: "" }); + setAttributes({ boxShadowHOffset: "" }); + setAttributes({ boxShadowVOffset: "" }); + setAttributes({ boxShadowBlur: "" }); + setAttributes({ boxShadowSpread: "" }); + setAttributes({ boxShadowPosition: "" }); + } + }, { + key: "render", + value: function render() { + var _props = this.props, + setAttributes = _props.setAttributes, + boxShadowColor = _props.boxShadowColor, + boxShadowHOffset = _props.boxShadowHOffset, + boxShadowVOffset = _props.boxShadowVOffset, + boxShadowBlur = _props.boxShadowBlur, + boxShadowSpread = _props.boxShadowSpread, + boxShadowPosition = _props.boxShadowPosition; - if (typeof cssProp === 'string' && cache.registered[cssProp] !== undefined) { - cssProp = cache.registered[cssProp]; - } - var type = props[typePropName]; - var registeredStyles = [cssProp]; - var className = ''; + var advancedControls; + var boxShadowAdvancedControls; + var resetBoxShadowAdvancedControls; + if (this.state !== null && true === this.state.showAdvancedControls) { + advancedControls = wp.element.createElement( + "div", + { className: "uagb-box-shadow-advanced" }, + wp.element.createElement( + Fragment, + null, + wp.element.createElement( + "p", + { className: "uagb-setting-label" }, + boxShadowColor.label, + wp.element.createElement( + "span", + { className: "components-base-control__label" }, + wp.element.createElement("span", { className: "component-color-indicator", style: { backgroundColor: boxShadowColor.value } }) + ) + ), + wp.element.createElement(ColorPalette, { + value: boxShadowColor.value, + onChange: function onChange(colorValue) { + return setAttributes({ boxShadowColor: colorValue }); + }, + allowReset: true + }) + ), + wp.element.createElement( + Fragment, + null, + wp.element.createElement( + "h2", + null, + boxShadowHOffset.label + ), + wp.element.createElement(RangeControl, { + value: boxShadowHOffset.value, + onChange: function onChange(value) { + return setAttributes({ boxShadowHOffset: value }); + }, + min: -100, + max: 100, + allowReset: true + }) + ), + wp.element.createElement( + Fragment, + null, + wp.element.createElement( + "h2", + null, + boxShadowVOffset.label + ), + wp.element.createElement(RangeControl, { + value: boxShadowVOffset.value, + onChange: function onChange(value) { + return setAttributes({ boxShadowVOffset: value }); + }, + min: -100, + max: 100, + allowReset: true + }) + ), + wp.element.createElement( + Fragment, + null, + wp.element.createElement( + "h2", + null, + boxShadowBlur.label + ), + wp.element.createElement(RangeControl, { + value: boxShadowBlur.value, + onChange: function onChange(value) { + return setAttributes({ boxShadowBlur: value }); + }, + min: 0, + max: 100, + allowReset: true + }) + ), + wp.element.createElement( + Fragment, + null, + wp.element.createElement( + "h2", + null, + boxShadowSpread.label + ), + wp.element.createElement(RangeControl, { + value: boxShadowSpread.value, + onChange: function onChange(value) { + return setAttributes({ boxShadowSpread: value }); + }, + min: 0, + max: 100, + allowReset: true + }) + ), + wp.element.createElement( + Fragment, + null, + wp.element.createElement(SelectControl, { + label: boxShadowPosition.label, + value: boxShadowPosition.value, + onChange: function onChange(value) { + return setAttributes({ boxShadowPosition: value }); + }, + options: [{ value: "inset", label: __("Inset", 'ultimate-addons-for-gutenberg') }, { value: "outset", label: __("Outset", 'ultimate-addons-for-gutenberg') }] + }) + ) + ); + } + resetBoxShadowAdvancedControls = wp.element.createElement( + Button, + { + className: "uagb-size-btn uagb-typography-reset-btn", + isSmall: true, + "aria-pressed": this.state !== null, + onClick: this.onAdvancedControlReset + }, + wp.element.createElement(Dashicon, { icon: "image-rotate" }) + ); - if (typeof props.className === 'string') { - className = __WEBPACK_IMPORTED_MODULE_3__emotion_utils__["a" /* getRegisteredStyles */](cache.registered, registeredStyles, props.className); - } else if (props.className != null) { - className = props.className + " "; - } + boxShadowAdvancedControls = wp.element.createElement( + Button, + { + className: "uagb-size-btn uagb-typography-control-btn", + isSmall: true, + "aria-pressed": this.state !== null, + onClick: this.onAdvancedControlClick + }, + wp.element.createElement(Dashicon, { icon: "admin-tools" }) + ); + + return wp.element.createElement( + "div", + { className: "uag-typography-option-actions" }, + wp.element.createElement( + "span", + null, + this.props.label + ), + boxShadowAdvancedControls, + resetBoxShadowAdvancedControls, + advancedControls + ); + } + }]); - var serialized = __WEBPACK_IMPORTED_MODULE_4__emotion_serialize__["a" /* serializeStyles */](registeredStyles); + return BoxShadowControl; +}(Component); - if (process.env.NODE_ENV !== 'production' && serialized.name.indexOf('-') === -1) { - var labelFromStack = props[labelPropName]; +/* harmony default export */ __webpack_exports__["a"] = (BoxShadowControl); - if (labelFromStack) { - serialized = __WEBPACK_IMPORTED_MODULE_4__emotion_serialize__["a" /* serializeStyles */]([serialized, 'label:' + labelFromStack + ';']); - } - } +/***/ }), +/* 66 */ +/*!*********************************************************************************************************************!*\ + !*** ./node_modules/react-transition-group/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js ***! + \*********************************************************************************************************************/ +/*! exports provided: default */ +/*! exports used: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { - var rules = __WEBPACK_IMPORTED_MODULE_3__emotion_utils__["b" /* insertStyles */](cache, serialized, typeof type === 'string'); - className += cache.key + "-" + serialized.name; - var newProps = {}; +"use strict"; +/* harmony export (immutable) */ __webpack_exports__["a"] = _objectWithoutPropertiesLoose; +function _objectWithoutPropertiesLoose(source, excluded) { + if (source == null) return {}; + var target = {}; + var sourceKeys = Object.keys(source); + var key, i; - for (var key in props) { - if (hasOwnProperty.call(props, key) && key !== 'css' && key !== typePropName && (process.env.NODE_ENV === 'production' || key !== labelPropName)) { - newProps[key] = props[key]; - } + for (i = 0; i < sourceKeys.length; i++) { + key = sourceKeys[i]; + if (excluded.indexOf(key) >= 0) continue; + target[key] = source[key]; } - newProps.ref = ref; - newProps.className = className; - var ele = __WEBPACK_IMPORTED_MODULE_1_react__["createElement"](type, newProps); + return target; +} - return ele; -}; +/***/ }), +/* 67 */ +/*!******************************************!*\ + !*** ./src/blocks/price-list/classes.js ***! + \******************************************/ +/*! exports provided: default */ +/*! exports used: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { -var Emotion = -/* #__PURE__ */ -withEmotionCache(function (props, cache, ref) { - // use Context.read for the theme when it's stable - if (typeof props.css === 'function') { - return __WEBPACK_IMPORTED_MODULE_1_react__["createElement"](ThemeContext.Consumer, null, function (theme) { - return render(cache, props, theme, ref); - }); - } +"use strict"; +/** +* Returns Dynamic Generated Classes +*/ - return render(cache, props, null, ref); -}); +function PositionClasses(attributes) { -if (process.env.NODE_ENV !== 'production') { - Emotion.displayName = 'EmotionCssPropInternal'; -} // $FlowFixMe + var iconimgStyle_class = ""; + var imge_cnt = 0; + var image = attributes.image; + + if (typeof attributes.rest_menu_item_arr !== "undefined") { + attributes.rest_menu_item_arr.map(function (item, thisIndex) { + var image_arr = item.image; + if (image_arr && typeof image_arr !== "undefined") { + imge_cnt++; + } + }); + } + if (typeof image !== "undefined" && image !== null && image !== "") { + imge_cnt++; + } -var jsx = function jsx(type, props) { - var args = arguments; + if (imge_cnt > 0) { + iconimgStyle_class += "uagb-rm__image-position-" + attributes.imagePosition + " "; + } - if (props == null || !hasOwnProperty.call(props, 'css')) { - // $FlowFixMe - return __WEBPACK_IMPORTED_MODULE_1_react__["createElement"].apply(undefined, args); - } + iconimgStyle_class += " uagb-rm__align-" + attributes.headingAlign + " "; - if (process.env.NODE_ENV !== 'production' && typeof props.css === 'string' && // check if there is a css declaration - props.css.indexOf(':') !== -1) { - throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/css' like this: css`" + props.css + "`"); - } + if ("left" == attributes.imagePosition || "right" == attributes.imagePosition) { + iconimgStyle_class += "uagb-rm__image-aligned-" + attributes.imageAlignment + " "; + if (attributes.stack !== "none") { + iconimgStyle_class += "uagb-rm-stacked-" + attributes.stack + " "; + if (attributes.imagePosition === "right") { + iconimgStyle_class += "uagb-rm-reverse-order-" + attributes.stack + " "; + } + } + } - var argsLength = args.length; - var createElementArgArray = new Array(argsLength); - createElementArgArray[0] = Emotion; - var newProps = {}; + iconimgStyle_class += "uagb-rm__desk-column-" + attributes.columns + " "; + iconimgStyle_class += "uagb-rm__tablet-column-" + attributes.tcolumns + " "; + iconimgStyle_class += "uagb-rm__mobile-column-" + attributes.mcolumns + " "; - for (var key in props) { - if (hasOwnProperty.call(props, key)) { - newProps[key] = props[key]; - } - } + return [iconimgStyle_class]; +} - newProps[typePropName] = type; +/* harmony default export */ __webpack_exports__["a"] = (PositionClasses); - if (process.env.NODE_ENV !== 'production') { - var error = new Error(); +/***/ }), +/* 68 */ +/*!****************************************!*\ + !*** ./src/blocks/timeline/classes.js ***! + \****************************************/ +/*! exports provided: default */ +/*! exports used: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { - if (error.stack) { - // chrome - var match = error.stack.match(/at (?:Object\.|)jsx.*\n\s+at ([A-Z][A-Za-z$]+) /); +"use strict"; +/** + * Returns Dynamic Generated Classes + */ - if (!match) { - // safari and firefox - match = error.stack.match(/.*\n([A-Z][A-Za-z$]+)@/); - } +function ContentTmClasses(attributes) { - if (match) { - newProps[labelPropName] = sanitizeIdentifier(match[1]); - } - } - } + /* Arrow position */ + var arrow_align_class = "uagb-timeline__arrow-top" + " "; + if (attributes.arrowlinAlignment == "center") { + arrow_align_class = "uagb-timeline__arrow-center" + " "; + } else if (attributes.arrowlinAlignment == "bottom") { + arrow_align_class = "uagb-timeline__arrow-bottom" + " "; + } - createElementArgArray[1] = newProps; + /* Alignmnet */ + var align_class = "uagb-timeline__center-block " + " "; + if (attributes.timelinAlignment == "left") { + align_class = "uagb-timeline__left-block" + " "; + } else if (attributes.timelinAlignment == "right") { + align_class = "uagb-timeline__right-block" + " "; + } + align_class += arrow_align_class + ""; + align_class += "uagb-timeline__responsive-" + attributes.stack + " uagb-timeline"; - for (var i = 2; i < argsLength; i++) { - createElementArgArray[i] = args[i]; - } // $FlowFixMe + return [align_class]; +} +/* harmony default export */ __webpack_exports__["a"] = (ContentTmClasses); - return __WEBPACK_IMPORTED_MODULE_1_react__["createElement"].apply(null, createElementArgArray); +/***/ }), +/* 69 */ +/*!****************************************************************!*\ + !*** ./node_modules/core-js/library/modules/_property-desc.js ***! + \****************************************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports) { + +module.exports = function (bitmap, value) { + return { + enumerable: !(bitmap & 1), + configurable: !(bitmap & 2), + writable: !(bitmap & 4), + value: value + }; }; -var warnedAboutCssPropForGlobal = false; -var Global = -/* #__PURE__ */ -withEmotionCache(function (props, cache) { - if (process.env.NODE_ENV !== 'production' && !warnedAboutCssPropForGlobal && ( // check for className as well since the user is - // probably using the custom createElement which - // means it will be turned into a className prop - // $FlowFixMe I don't really want to add it to the type since it shouldn't be used - props.className || props.css)) { - console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"); - warnedAboutCssPropForGlobal = true; - } - var styles = props.styles; +/***/ }), +/* 70 */ +/*!**************************************************************!*\ + !*** ./node_modules/core-js/library/modules/_object-keys.js ***! + \**************************************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { - if (typeof styles === 'function') { - return __WEBPACK_IMPORTED_MODULE_1_react__["createElement"](ThemeContext.Consumer, null, function (theme) { - var serialized = __WEBPACK_IMPORTED_MODULE_4__emotion_serialize__["a" /* serializeStyles */]([styles(theme)]); - return __WEBPACK_IMPORTED_MODULE_1_react__["createElement"](InnerGlobal, { - serialized: serialized, - cache: cache - }); - }); - } +// 19.1.2.14 / 15.2.3.14 Object.keys(O) +var $keys = __webpack_require__(/*! ./_object-keys-internal */ 244); +var enumBugKeys = __webpack_require__(/*! ./_enum-bug-keys */ 138); - var serialized = __WEBPACK_IMPORTED_MODULE_4__emotion_serialize__["a" /* serializeStyles */]([styles]); - return __WEBPACK_IMPORTED_MODULE_1_react__["createElement"](InnerGlobal, { - serialized: serialized, - cache: cache - }); -}); +module.exports = Object.keys || function keys(O) { + return $keys(O, enumBugKeys); +}; -// maintain place over rerenders. -// initial render from browser, insertBefore context.sheet.tags[0] or if a style hasn't been inserted there yet, appendChild -// initial client-side render from SSR, use place of hydrating tag -var InnerGlobal = -/*#__PURE__*/ -function (_React$Component) { - __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_inheritsLoose___default.a(InnerGlobal, _React$Component); - function InnerGlobal(props, context, updater) { - return _React$Component.call(this, props, context, updater) || this; - } +/***/ }), +/* 71 */ +/*!**********************************************************!*\ + !*** ./node_modules/core-js/library/modules/_library.js ***! + \**********************************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports) { - var _proto = InnerGlobal.prototype; +module.exports = true; - _proto.componentDidMount = function componentDidMount() { - this.sheet = new __WEBPACK_IMPORTED_MODULE_5__emotion_sheet__["a" /* StyleSheet */]({ - key: this.props.cache.key + "-global", - nonce: this.props.cache.sheet.nonce, - container: this.props.cache.sheet.container - }); // $FlowFixMe - var node = document.querySelector("style[data-emotion-" + this.props.cache.key + "=\"" + this.props.serialized.name + "\"]"); +/***/ }), +/* 72 */ +/*!******************************************************!*\ + !*** ./node_modules/core-js/library/modules/_uid.js ***! + \******************************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports) { - if (node !== null) { - this.sheet.tags.push(node); - } +var id = 0; +var px = Math.random(); +module.exports = function (key) { + return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36)); +}; - if (this.props.cache.sheet.tags.length) { - this.sheet.before = this.props.cache.sheet.tags[0]; - } - this.insertStyles(); - }; +/***/ }), +/* 73 */ +/*!*************************************************************!*\ + !*** ./node_modules/core-js/library/modules/_object-pie.js ***! + \*************************************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports) { - _proto.componentDidUpdate = function componentDidUpdate(prevProps) { - if (prevProps.serialized.name !== this.props.serialized.name) { - this.insertStyles(); - } - }; +exports.f = {}.propertyIsEnumerable; - _proto.insertStyles = function insertStyles$1() { - if (this.props.serialized.next !== undefined) { - // insert keyframes - __WEBPACK_IMPORTED_MODULE_3__emotion_utils__["b" /* insertStyles */](this.props.cache, this.props.serialized.next, true); - } - if (this.sheet.tags.length) { - // if this doesn't exist then it will be null so the style element will be appended - var element = this.sheet.tags[this.sheet.tags.length - 1].nextElementSibling; - this.sheet.before = element; - this.sheet.flush(); - } +/***/ }), +/* 74 */ +/*!***************************************!*\ + !*** ./node_modules/lodash/_Stack.js ***! + \***************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { - this.props.cache.insert("", this.props.serialized, this.sheet, false); - }; +var ListCache = __webpack_require__(/*! ./_ListCache */ 46), + stackClear = __webpack_require__(/*! ./_stackClear */ 266), + stackDelete = __webpack_require__(/*! ./_stackDelete */ 267), + stackGet = __webpack_require__(/*! ./_stackGet */ 268), + stackHas = __webpack_require__(/*! ./_stackHas */ 269), + stackSet = __webpack_require__(/*! ./_stackSet */ 270); - _proto.componentWillUnmount = function componentWillUnmount() { - this.sheet.flush(); - }; +/** + * Creates a stack cache object to store key-value pairs. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */ +function Stack(entries) { + var data = this.__data__ = new ListCache(entries); + this.size = data.size; +} - _proto.render = function render() { +// Add methods to `Stack`. +Stack.prototype.clear = stackClear; +Stack.prototype['delete'] = stackDelete; +Stack.prototype.get = stackGet; +Stack.prototype.has = stackHas; +Stack.prototype.set = stackSet; - return null; - }; +module.exports = Stack; - return InnerGlobal; -}(__WEBPACK_IMPORTED_MODULE_1_react__["Component"]); -var keyframes = function keyframes() { - var insertable = __WEBPACK_IMPORTED_MODULE_6__emotion_css__["a" /* default */].apply(void 0, arguments); - var name = "animation-" + insertable.name; // $FlowFixMe +/***/ }), +/* 75 */ +/*!*************************************!*\ + !*** ./node_modules/lodash/_Map.js ***! + \*************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { - return { - name: name, - styles: "@keyframes " + name + "{" + insertable.styles + "}", - anim: 1, - toString: function toString() { - return "_EMO_" + this.name + "_" + this.styles + "_EMO_"; - } - }; -}; +var getNative = __webpack_require__(/*! ./_getNative */ 21), + root = __webpack_require__(/*! ./_root */ 12); -var classnames = function classnames(args) { - var len = args.length; - var i = 0; - var cls = ''; +/* Built-in method references that are verified to be native. */ +var Map = getNative(root, 'Map'); - for (; i < len; i++) { - var arg = args[i]; - if (arg == null) continue; - var toAdd = void 0; +module.exports = Map; - switch (typeof arg) { - case 'boolean': - break; - case 'object': - { - if (Array.isArray(arg)) { - toAdd = classnames(arg); - } else { - toAdd = ''; - - for (var k in arg) { - if (arg[k] && k) { - toAdd && (toAdd += ' '); - toAdd += k; - } - } - } +/***/ }), +/* 76 */ +/*!***********************************!*\ + !*** (webpack)/buildin/global.js ***! + \***********************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports) { - break; - } +var g; + +// This works in non-strict mode +g = (function() { + return this; +})(); + +try { + // This works if eval is allowed (see CSP) + g = g || Function("return this")() || (1,eval)("this"); +} catch(e) { + // This works if the window reference is available + if(typeof window === "object") + g = window; +} + +// g can still be undefined, but nothing to do about it... +// We return undefined, instead of nothing here, so it's +// easier to handle this case. if(!global) { ...} + +module.exports = g; - default: - { - toAdd = arg; - } - } - if (toAdd) { - cls && (cls += ' '); - cls += toAdd; - } - } +/***/ }), +/* 77 */ +/*!******************************************!*\ + !*** ./node_modules/lodash/_MapCache.js ***! + \******************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { - return cls; -}; +var mapCacheClear = __webpack_require__(/*! ./_mapCacheClear */ 277), + mapCacheDelete = __webpack_require__(/*! ./_mapCacheDelete */ 284), + mapCacheGet = __webpack_require__(/*! ./_mapCacheGet */ 286), + mapCacheHas = __webpack_require__(/*! ./_mapCacheHas */ 287), + mapCacheSet = __webpack_require__(/*! ./_mapCacheSet */ 288); -function merge(registered, css, className) { - var registeredStyles = []; - var rawClassName = __WEBPACK_IMPORTED_MODULE_3__emotion_utils__["a" /* getRegisteredStyles */](registered, registeredStyles, className); +/** + * Creates a map cache object to store key-value pairs. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */ +function MapCache(entries) { + var index = -1, + length = entries == null ? 0 : entries.length; - if (registeredStyles.length < 2) { - return className; + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); } - - return rawClassName + css(registeredStyles); } -var ClassNames = withEmotionCache(function (props, context) { - return __WEBPACK_IMPORTED_MODULE_1_react__["createElement"](ThemeContext.Consumer, null, function (theme) { - var hasRendered = false; - - var css = function css() { - if (hasRendered && process.env.NODE_ENV !== 'production') { - throw new Error('css can only be used during render'); - } +// Add methods to `MapCache`. +MapCache.prototype.clear = mapCacheClear; +MapCache.prototype['delete'] = mapCacheDelete; +MapCache.prototype.get = mapCacheGet; +MapCache.prototype.has = mapCacheHas; +MapCache.prototype.set = mapCacheSet; - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } +module.exports = MapCache; - var serialized = __WEBPACK_IMPORTED_MODULE_4__emotion_serialize__["a" /* serializeStyles */](args, context.registered); - { - __WEBPACK_IMPORTED_MODULE_3__emotion_utils__["b" /* insertStyles */](context, serialized, false); - } +/***/ }), +/* 78 */ +/*!*******************************************!*\ + !*** ./node_modules/lodash/_arrayPush.js ***! + \*******************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports) { - return context.key + "-" + serialized.name; - }; +/** + * Appends the elements of `values` to `array`. + * + * @private + * @param {Array} array The array to modify. + * @param {Array} values The values to append. + * @returns {Array} Returns `array`. + */ +function arrayPush(array, values) { + var index = -1, + length = values.length, + offset = array.length; - var cx = function cx() { - if (hasRendered && process.env.NODE_ENV !== 'production') { - throw new Error('cx can only be used during render'); - } + while (++index < length) { + array[offset + index] = values[index]; + } + return array; +} - for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { - args[_key2] = arguments[_key2]; - } +module.exports = arrayPush; - return merge(context.registered, css, classnames(args)); - }; - var content = { - css: css, - cx: cx, - theme: theme - }; - var ele = props.children(content); - hasRendered = true; +/***/ }), +/* 79 */ +/*!********************************************!*\ + !*** ./node_modules/lodash/_getSymbols.js ***! + \********************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { - return ele; - }); -}); +var arrayFilter = __webpack_require__(/*! ./_arrayFilter */ 299), + stubArray = __webpack_require__(/*! ./stubArray */ 156); +/** Used for built-in method references. */ +var objectProto = Object.prototype; +/** Built-in value references. */ +var propertyIsEnumerable = objectProto.propertyIsEnumerable; -/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(/*! ./../../../process/browser.js */ 3))) +/* Built-in method references for those with the same name as other `lodash` methods. */ +var nativeGetSymbols = Object.getOwnPropertySymbols; -/***/ }), -/* 66 */ -/*!**********************************************************************!*\ - !*** ./node_modules/react-select/dist/utils-06b0d5a4.browser.esm.js ***! - \**********************************************************************/ -/*! exports provided: a, b, c, d, e, f, g, h, i, j, k, n, s */ -/*! exports used: a, b, c, d, e, f, g, h, i, j, n, s */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { +/** + * Creates an array of the own enumerable symbols of `object`. + * + * @private + * @param {Object} object The object to query. + * @returns {Array} Returns the array of symbols. + */ +var getSymbols = !nativeGetSymbols ? stubArray : function(object) { + if (object == null) { + return []; + } + object = Object(object); + return arrayFilter(nativeGetSymbols(object), function(symbol) { + return propertyIsEnumerable.call(object, symbol); + }); +}; -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getScrollParent; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return getScrollTop; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return animatedScrollTo; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return isMobileDevice; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return cleanValue; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return scrollIntoView; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return getBoundingClientObj; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return classNames; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return isTouchCapable; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return isDocumentElement; }); -/* unused harmony export k */ -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return noop; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return scrollTo; }); -// ============================== -// NO OP -// ============================== -var noop = function noop() {}; -// Class Name Prefixer -// ============================== +module.exports = getSymbols; -/** - String representation of component state for styling with class names. - Expects an array of strings OR a string/object pair: - - className(['comp', 'comp-arg', 'comp-arg-2']) - @returns 'react-select__comp react-select__comp-arg react-select__comp-arg-2' - - className('comp', { some: true, state: false }) - @returns 'react-select__comp react-select__comp--some' -*/ +/***/ }), +/* 80 */ +/*!********************************************!*\ + !*** ./node_modules/lodash/isArguments.js ***! + \********************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { -function applyPrefixToName(prefix, name) { - if (!name) { - return prefix; - } else if (name[0] === '-') { - return prefix + name; - } else { - return prefix + '__' + name; - } -} +var baseIsArguments = __webpack_require__(/*! ./_baseIsArguments */ 300), + isObjectLike = __webpack_require__(/*! ./isObjectLike */ 18); -function classNames(prefix, state, className) { - var arr = [className]; +/** Used for built-in method references. */ +var objectProto = Object.prototype; - if (state && prefix) { - for (var key in state) { - if (state.hasOwnProperty(key) && state[key]) { - arr.push("" + applyPrefixToName(prefix, key)); - } - } - } +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; - return arr.filter(function (i) { - return i; - }).map(function (i) { - return String(i).trim(); - }).join(' '); -} // ============================== -// Clean Value -// ============================== +/** Built-in value references. */ +var propertyIsEnumerable = objectProto.propertyIsEnumerable; -var cleanValue = function cleanValue(value) { - if (Array.isArray(value)) return value.filter(Boolean); - if (typeof value === 'object' && value !== null) return [value]; - return []; -}; // ============================== -// Handle Input Change -// ============================== +/** + * Checks if `value` is likely an `arguments` object. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an `arguments` object, + * else `false`. + * @example + * + * _.isArguments(function() { return arguments; }()); + * // => true + * + * _.isArguments([1, 2, 3]); + * // => false + */ +var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) { + return isObjectLike(value) && hasOwnProperty.call(value, 'callee') && + !propertyIsEnumerable.call(value, 'callee'); +}; -function handleInputChange(inputValue, actionMeta, onInputChange) { - if (onInputChange) { - var newValue = onInputChange(inputValue, actionMeta); - if (typeof newValue === 'string') return newValue; - } +module.exports = isArguments; - return inputValue; -} // ============================== -// Scroll Helpers -// ============================== -function isDocumentElement(el) { - return [document.documentElement, document.body, window].indexOf(el) > -1; -} // Normalized Scroll Top -// ------------------------------ +/***/ }), +/* 81 */ +/*!*****************************************!*\ + !*** ./node_modules/lodash/isBuffer.js ***! + \*****************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { -function getScrollTop(el) { - if (isDocumentElement(el)) { - return window.pageYOffset; - } +/* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__(/*! ./_root */ 12), + stubFalse = __webpack_require__(/*! ./stubFalse */ 301); - return el.scrollTop; -} -function scrollTo(el, top) { - // with a scroll distance, we perform scroll on the element - if (isDocumentElement(el)) { - window.scrollTo(0, top); - return; - } +/** Detect free variable `exports`. */ +var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports; - el.scrollTop = top; -} // Get Scroll Parent -// ------------------------------ +/** Detect free variable `module`. */ +var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module; -function getScrollParent(element) { - var style = getComputedStyle(element); - var excludeStaticParent = style.position === 'absolute'; - var overflowRx = /(auto|scroll)/; - var docEl = document.documentElement; // suck it, flow... +/** Detect the popular CommonJS extension `module.exports`. */ +var moduleExports = freeModule && freeModule.exports === freeExports; - if (style.position === 'fixed') return docEl; +/** Built-in value references. */ +var Buffer = moduleExports ? root.Buffer : undefined; - for (var parent = element; parent = parent.parentElement;) { - style = getComputedStyle(parent); +/* Built-in method references for those with the same name as other `lodash` methods. */ +var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined; - if (excludeStaticParent && style.position === 'static') { - continue; - } +/** + * Checks if `value` is a buffer. + * + * @static + * @memberOf _ + * @since 4.3.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a buffer, else `false`. + * @example + * + * _.isBuffer(new Buffer(2)); + * // => true + * + * _.isBuffer(new Uint8Array(2)); + * // => false + */ +var isBuffer = nativeIsBuffer || stubFalse; - if (overflowRx.test(style.overflow + style.overflowY + style.overflowX)) { - return parent; - } - } +module.exports = isBuffer; - return docEl; -} // Animated Scroll To -// ------------------------------ +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(/*! ./../webpack/buildin/module.js */ 82)(module))) -/** - @param t: time (elapsed) - @param b: initial value - @param c: amount of change - @param d: duration -*/ +/***/ }), +/* 82 */ +/*!***********************************!*\ + !*** (webpack)/buildin/module.js ***! + \***********************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports) { -function easeOutCubic(t, b, c, d) { - return c * ((t = t / d - 1) * t * t + 1) + b; -} +module.exports = function(module) { + if(!module.webpackPolyfill) { + module.deprecate = function() {}; + module.paths = []; + // module.parent = undefined by default + if(!module.children) module.children = []; + Object.defineProperty(module, "loaded", { + enumerable: true, + get: function() { + return module.l; + } + }); + Object.defineProperty(module, "id", { + enumerable: true, + get: function() { + return module.i; + } + }); + module.webpackPolyfill = 1; + } + return module; +}; -function animatedScrollTo(element, to, duration, callback) { - if (duration === void 0) { - duration = 200; - } - if (callback === void 0) { - callback = noop; - } +/***/ }), +/* 83 */ +/*!*****************************************!*\ + !*** ./node_modules/lodash/isLength.js ***! + \*****************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports) { - var start = getScrollTop(element); - var change = to - start; - var increment = 10; - var currentTime = 0; +/** Used as references for various `Number` constants. */ +var MAX_SAFE_INTEGER = 9007199254740991; - function animateScroll() { - currentTime += increment; - var val = easeOutCubic(currentTime, start, change, duration); - scrollTo(element, val); +/** + * Checks if `value` is a valid array-like length. + * + * **Note:** This method is loosely based on + * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a valid length, else `false`. + * @example + * + * _.isLength(3); + * // => true + * + * _.isLength(Number.MIN_VALUE); + * // => false + * + * _.isLength(Infinity); + * // => false + * + * _.isLength('3'); + * // => false + */ +function isLength(value) { + return typeof value == 'number' && + value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER; +} - if (currentTime < duration) { - window.requestAnimationFrame(animateScroll); - } else { - callback(element); - } - } +module.exports = isLength; - animateScroll(); -} // Scroll Into View -// ------------------------------ -function scrollIntoView(menuEl, focusedEl) { - var menuRect = menuEl.getBoundingClientRect(); - var focusedRect = focusedEl.getBoundingClientRect(); - var overScroll = focusedEl.offsetHeight / 3; +/***/ }), +/* 84 */ +/*!***************************************!*\ + !*** ./node_modules/lodash/_isKey.js ***! + \***************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { - if (focusedRect.bottom + overScroll > menuRect.bottom) { - scrollTo(menuEl, Math.min(focusedEl.offsetTop + focusedEl.clientHeight - menuEl.offsetHeight + overScroll, menuEl.scrollHeight)); - } else if (focusedRect.top - overScroll < menuRect.top) { - scrollTo(menuEl, Math.max(focusedEl.offsetTop - overScroll, 0)); - } -} // ============================== -// Get bounding client object -// ============================== -// cannot get keys using array notation with DOMRect +var isArray = __webpack_require__(/*! ./isArray */ 14), + isSymbol = __webpack_require__(/*! ./isSymbol */ 57); -function getBoundingClientObj(element) { - var rect = element.getBoundingClientRect(); - return { - bottom: rect.bottom, - height: rect.height, - left: rect.left, - right: rect.right, - top: rect.top, - width: rect.width - }; -} -// Touch Capability Detector -// ============================== +/** Used to match property names within property paths. */ +var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, + reIsPlainProp = /^\w*$/; -function isTouchCapable() { - try { - document.createEvent('TouchEvent'); - return true; - } catch (e) { +/** + * Checks if `value` is a property name and not a property path. + * + * @private + * @param {*} value The value to check. + * @param {Object} [object] The object to query keys on. + * @returns {boolean} Returns `true` if `value` is a property name, else `false`. + */ +function isKey(value, object) { + if (isArray(value)) { return false; } -} // ============================== -// Mobile Device Detector -// ============================== - -function isMobileDevice() { - try { - return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent); - } catch (e) { - return false; + var type = typeof value; + if (type == 'number' || type == 'symbol' || type == 'boolean' || + value == null || isSymbol(value)) { + return true; } + return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || + (object != null && value in Object(object)); } - +module.exports = isKey; /***/ }), -/* 67 */ -/*!*****************************************************!*\ - !*** ./src/blocks/post/components/FeaturedImage.js ***! - \*****************************************************/ -/*! exports provided: default */ -/*! exports used: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { +/* 85 */ +/*!***************************************************!*\ + !*** ./node_modules/prop-types/checkPropTypes.js ***! + \***************************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { "use strict"; -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); +/* WEBPACK VAR INJECTION */(function(process) {/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } +var printWarning = function() {}; -var decodeEntities = wp.htmlEntities.decodeEntities; -var __ = wp.i18n.__; +if (process.env.NODE_ENV !== 'production') { + var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ 86); + var loggedTypeFailures = {}; + var has = Function.call.bind(Object.prototype.hasOwnProperty); -var FeaturedImage = function (_React$Component) { - _inherits(FeaturedImage, _React$Component); + printWarning = function(text) { + var message = 'Warning: ' + text; + if (typeof console !== 'undefined') { + console.error(message); + } + try { + // --- Welcome to debugging React --- + // This error was thrown as a convenience so that you can use this stack + // to find the callsite that caused this warning to fire. + throw new Error(message); + } catch (x) {} + }; +} - function FeaturedImage() { - _classCallCheck(this, FeaturedImage); +/** + * Assert that the values match with the type specs. + * Error messages are memorized and will only be shown once. + * + * @param {object} typeSpecs Map of name to a ReactPropType + * @param {object} values Runtime values that need to be type-checked + * @param {string} location e.g. "prop", "context", "child context" + * @param {string} componentName Name of the component for error messages. + * @param {?Function} getStack Returns the component stack. + * @private + */ +function checkPropTypes(typeSpecs, values, location, componentName, getStack) { + if (process.env.NODE_ENV !== 'production') { + for (var typeSpecName in typeSpecs) { + if (has(typeSpecs, typeSpecName)) { + var error; + // Prop type validation may throw. In case they do, we don't want to + // fail the render phase where it didn't fail before. So we log it. + // After these have been cleaned up, we'll let them throw. + try { + // This is intentionally an invariant that gets caught. It's the same + // behavior as without this statement except with a better message. + if (typeof typeSpecs[typeSpecName] !== 'function') { + var err = Error( + (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + ); + err.name = 'Invariant Violation'; + throw err; + } + error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret); + } catch (ex) { + error = ex; + } + if (error && !(error instanceof Error)) { + printWarning( + (componentName || 'React class') + ': type specification of ' + + location + ' `' + typeSpecName + '` is invalid; the type checker ' + + 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' + + 'You may have forgotten to pass an argument to the type checker ' + + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + + 'shape all require an argument).' + ); + } + if (error instanceof Error && !(error.message in loggedTypeFailures)) { + // Only monitor this failure once because there tends to be a lot of the + // same error. + loggedTypeFailures[error.message] = true; - return _possibleConstructorReturn(this, (FeaturedImage.__proto__ || Object.getPrototypeOf(FeaturedImage)).apply(this, arguments)); - } + var stack = getStack ? getStack() : ''; - _createClass(FeaturedImage, [{ - key: "render", - value: function render() { - var _props = this.props, - post = _props.post, - attributes = _props.attributes; + printWarning( + 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '') + ); + } + } + } + } +} +/** + * Resets warning cache when testing. + * + * @private + */ +checkPropTypes.resetWarningCache = function() { + if (process.env.NODE_ENV !== 'production') { + loggedTypeFailures = {}; + } +} - var target = attributes.newTab ? "_blank" : "_self"; +module.exports = checkPropTypes; - if (attributes.displayPostImage && undefined !== post.uagb_featured_image_src && attributes.imgSize && post.uagb_featured_image_src[attributes.imgSize]) { - var src = post.uagb_featured_image_src[attributes.imgSize]; +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(/*! ./../process/browser.js */ 6))) - return wp.element.createElement( - "div", - { className: "uagb-post__image" }, - wp.element.createElement( - "a", - { href: post.link, target: target, rel: "noopener noreferrer" }, - wp.element.createElement("img", { - src: src[0], - alt: decodeEntities(post.title.rendered.trim()) || __("(Untitled)") - }) - ) - ); - } else { +/***/ }), +/* 86 */ +/*!*************************************************************!*\ + !*** ./node_modules/prop-types/lib/ReactPropTypesSecret.js ***! + \*************************************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { - return null; - } - } - }]); +"use strict"; +/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ - return FeaturedImage; -}(React.Component); -/* harmony default export */ __webpack_exports__["a"] = (FeaturedImage); + +var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; + +module.exports = ReactPropTypesSecret; + /***/ }), -/* 68 */ -/*!*********************************************!*\ - !*** ./src/blocks/post/components/Title.js ***! - \*********************************************/ -/*! exports provided: default */ -/*! exports used: default */ +/* 87 */ +/*!*************************************************************!*\ + !*** ./node_modules/@emotion/core/dist/core.browser.esm.js ***! + \*************************************************************/ +/*! exports provided: CacheProvider, ThemeContext, withEmotionCache, css, ClassNames, Global, createElement, jsx, keyframes */ +/*! exports used: CacheProvider, ClassNames, jsx, keyframes */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } +/* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return ClassNames; }); +/* unused harmony export Global */ +/* unused harmony export createElement */ +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return jsx; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return keyframes; }); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_inheritsLoose__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inheritsLoose */ 343); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(/*! react */ 5); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__emotion_cache__ = __webpack_require__(/*! @emotion/cache */ 88); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__emotion_element_57a3a7a3_browser_esm_js__ = __webpack_require__(/*! ./emotion-element-57a3a7a3.browser.esm.js */ 173); +/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_3__emotion_element_57a3a7a3_browser_esm_js__["a"]; }); +/* unused harmony reexport ThemeContext */ +/* unused harmony reexport withEmotionCache */ +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__emotion_utils__ = __webpack_require__(/*! @emotion/utils */ 174); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__emotion_serialize__ = __webpack_require__(/*! @emotion/serialize */ 89); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__emotion_sheet__ = __webpack_require__(/*! @emotion/sheet */ 172); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__emotion_css__ = __webpack_require__(/*! @emotion/css */ 41); +/* unused harmony reexport css */ -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } -var decodeEntities = wp.htmlEntities.decodeEntities; -var __ = wp.i18n.__; -var Title = function (_React$Component) { - _inherits(Title, _React$Component); - function Title() { - _classCallCheck(this, Title); - return _possibleConstructorReturn(this, (Title.__proto__ || Object.getPrototypeOf(Title)).apply(this, arguments)); - } - _createClass(Title, [{ - key: "render", - value: function render() { - var _props = this.props, - post = _props.post, - attributes = _props.attributes; - var Tag = attributes.titleTag; - var target = attributes.newTab ? "_blank" : "_self"; - if (undefined == post.title) { - return null; - } +var jsx = function jsx(type, props) { + var args = arguments; - if (attributes.displayPostTitle) { + if (props == null || !__WEBPACK_IMPORTED_MODULE_3__emotion_element_57a3a7a3_browser_esm_js__["e" /* h */].call(props, 'css')) { + // $FlowFixMe + return __WEBPACK_IMPORTED_MODULE_1_react__["createElement"].apply(undefined, args); + } - return wp.element.createElement( - Tag, - { className: "uagb-post__title" }, - wp.element.createElement( - "a", - { href: post.link, target: target, rel: "noopener noreferrer" }, - decodeEntities(post.title.rendered.trim()) || __("(Untitled)") - ) - ); - } else { - return null; - } - } - }]); + var argsLength = args.length; + var createElementArgArray = new Array(argsLength); + createElementArgArray[0] = __WEBPACK_IMPORTED_MODULE_3__emotion_element_57a3a7a3_browser_esm_js__["b" /* E */]; + createElementArgArray[1] = Object(__WEBPACK_IMPORTED_MODULE_3__emotion_element_57a3a7a3_browser_esm_js__["d" /* c */])(type, props); - return Title; -}(React.Component); + for (var i = 2; i < argsLength; i++) { + createElementArgArray[i] = args[i]; + } // $FlowFixMe -/* harmony default export */ __webpack_exports__["a"] = (Title); -/***/ }), -/* 69 */ -/*!********************************************!*\ - !*** ./src/blocks/post/components/Meta.js ***! - \********************************************/ -/*! exports provided: default */ -/*! exports used: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { + return __WEBPACK_IMPORTED_MODULE_1_react__["createElement"].apply(null, createElementArgArray); +}; -"use strict"; -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); +var warnedAboutCssPropForGlobal = false; +var Global = /* #__PURE__ */Object(__WEBPACK_IMPORTED_MODULE_3__emotion_element_57a3a7a3_browser_esm_js__["f" /* w */])(function (props, cache) { + if (process.env.NODE_ENV !== 'production' && !warnedAboutCssPropForGlobal && ( // check for className as well since the user is + // probably using the custom createElement which + // means it will be turned into a className prop + // $FlowFixMe I don't really want to add it to the type since it shouldn't be used + props.className || props.css)) { + console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"); + warnedAboutCssPropForGlobal = true; + } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + var styles = props.styles; -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + if (typeof styles === 'function') { + return /*#__PURE__*/Object(__WEBPACK_IMPORTED_MODULE_1_react__["createElement"])(__WEBPACK_IMPORTED_MODULE_3__emotion_element_57a3a7a3_browser_esm_js__["c" /* T */].Consumer, null, function (theme) { + var serialized = Object(__WEBPACK_IMPORTED_MODULE_5__emotion_serialize__["a" /* serializeStyles */])([styles(theme)]); + return /*#__PURE__*/Object(__WEBPACK_IMPORTED_MODULE_1_react__["createElement"])(InnerGlobal, { + serialized: serialized, + cache: cache + }); + }); + } -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + var serialized = Object(__WEBPACK_IMPORTED_MODULE_5__emotion_serialize__["a" /* serializeStyles */])([styles]); + return /*#__PURE__*/Object(__WEBPACK_IMPORTED_MODULE_1_react__["createElement"])(InnerGlobal, { + serialized: serialized, + cache: cache + }); +}); -var _wp$date = wp.date, - dateI18n = _wp$date.dateI18n, - format = _wp$date.format, - __experimentalGetSettings = _wp$date.__experimentalGetSettings; +// maintain place over rerenders. +// initial render from browser, insertBefore context.sheet.tags[0] or if a style hasn't been inserted there yet, appendChild +// initial client-side render from SSR, use place of hydrating tag +var InnerGlobal = /*#__PURE__*/function (_React$Component) { + Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_inheritsLoose__["a" /* default */])(InnerGlobal, _React$Component); -var Meta = function (_React$Component) { - _inherits(Meta, _React$Component); + function InnerGlobal(props, context, updater) { + return _React$Component.call(this, props, context, updater) || this; + } - function Meta() { - _classCallCheck(this, Meta); + var _proto = InnerGlobal.prototype; - return _possibleConstructorReturn(this, (Meta.__proto__ || Object.getPrototypeOf(Meta)).apply(this, arguments)); - } + _proto.componentDidMount = function componentDidMount() { + this.sheet = new __WEBPACK_IMPORTED_MODULE_6__emotion_sheet__["a" /* StyleSheet */]({ + key: this.props.cache.key + "-global", + nonce: this.props.cache.sheet.nonce, + container: this.props.cache.sheet.container + }); // $FlowFixMe - _createClass(Meta, [{ - key: 'render', - value: function render() { - var _props = this.props, - post = _props.post, - attributes = _props.attributes, - categoriesList = _props.categoriesList; + var node = document.querySelector("style[data-emotion-" + this.props.cache.key + "=\"" + this.props.serialized.name + "\"]"); + if (node !== null) { + this.sheet.tags.push(node); + } - var dateFormat = __experimentalGetSettings().formats.date; + if (this.props.cache.sheet.tags.length) { + this.sheet.before = this.props.cache.sheet.tags[0]; + } - var categoryObject = ''; + this.insertStyles(); + }; - this.props.categoriesList.map(function (item, thisIndex) { - if (post.categories && item.id == post.categories[0]) { - categoryObject = item; - } - }); + _proto.componentDidUpdate = function componentDidUpdate(prevProps) { + if (prevProps.serialized.name !== this.props.serialized.name) { + this.insertStyles(); + } + }; - return wp.element.createElement( - 'div', - { className: 'uagb-post-grid-byline' }, - attributes.displayPostAuthor && undefined !== post.uagb_author_info && wp.element.createElement( - 'span', - { className: 'uagb-post__author' }, - wp.element.createElement('span', { className: 'dashicons-admin-users dashicons' }), - wp.element.createElement( - 'a', - { target: '_blank', href: post.uagb_author_info.author_link, rel: 'noopener noreferrer' }, - post.uagb_author_info.display_name - ) - ), - attributes.displayPostDate && post.date_gmt && wp.element.createElement( - 'time', - { dateTime: format("c", post.date_gmt), className: 'uagb-post__date' }, - wp.element.createElement('span', { className: 'dashicons-calendar dashicons' }), - dateI18n(dateFormat, post.date_gmt) - ), - attributes.displayPostComment && undefined !== post.uagb_comment_info && wp.element.createElement( - 'span', - { className: 'uagb-post__comment' }, - wp.element.createElement('span', { className: 'dashicons-admin-comments dashicons' }), - post.uagb_comment_info - ), - attributes.displayPostTaxonomy && '' !== categoryObject && wp.element.createElement( - 'span', - { className: 'uagb-post__taxonomy' }, - wp.element.createElement('span', { className: 'dashicons-tag dashicons' }), - categoryObject.name - ) - ); - } - }]); + _proto.insertStyles = function insertStyles$1() { + if (this.props.serialized.next !== undefined) { + // insert keyframes + Object(__WEBPACK_IMPORTED_MODULE_4__emotion_utils__["b" /* insertStyles */])(this.props.cache, this.props.serialized.next, true); + } - return Meta; -}(React.Component); + if (this.sheet.tags.length) { + // if this doesn't exist then it will be null so the style element will be appended + var element = this.sheet.tags[this.sheet.tags.length - 1].nextElementSibling; + this.sheet.before = element; + this.sheet.flush(); + } -/* harmony default export */ __webpack_exports__["a"] = (Meta); + this.props.cache.insert("", this.props.serialized, this.sheet, false); + }; -/***/ }), -/* 70 */ -/*!***********************************************!*\ - !*** ./src/blocks/post/components/Excerpt.js ***! - \***********************************************/ -/*! exports provided: default */ -/*! exports used: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { + _proto.componentWillUnmount = function componentWillUnmount() { + this.sheet.flush(); + }; -"use strict"; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash_truncate__ = __webpack_require__(/*! lodash/truncate */ 292); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash_truncate___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash_truncate__); -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + _proto.render = function render() { -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + return null; + }; -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + return InnerGlobal; +}(__WEBPACK_IMPORTED_MODULE_1_react__["Component"]); -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } +var keyframes = function keyframes() { + var insertable = __WEBPACK_IMPORTED_MODULE_7__emotion_css__["a" /* default */].apply(void 0, arguments); + var name = "animation-" + insertable.name; // $FlowFixMe + return { + name: name, + styles: "@keyframes " + name + "{" + insertable.styles + "}", + anim: 1, + toString: function toString() { + return "_EMO_" + this.name + "_" + this.styles + "_EMO_"; + } + }; +}; +var classnames = function classnames(args) { + var len = args.length; + var i = 0; + var cls = ''; -var Excerpt = function (_React$Component) { - _inherits(Excerpt, _React$Component); + for (; i < len; i++) { + var arg = args[i]; + if (arg == null) continue; + var toAdd = void 0; - function Excerpt() { - _classCallCheck(this, Excerpt); + switch (typeof arg) { + case 'boolean': + break; - return _possibleConstructorReturn(this, (Excerpt.__proto__ || Object.getPrototypeOf(Excerpt)).apply(this, arguments)); - } + case 'object': + { + if (Array.isArray(arg)) { + toAdd = classnames(arg); + } else { + toAdd = ''; - _createClass(Excerpt, [{ - key: "render", - value: function render() { - var _props = this.props, - post = _props.post, - attributes = _props.attributes; + for (var k in arg) { + if (arg[k] && k) { + toAdd && (toAdd += ' '); + toAdd += k; + } + } + } + break; + } - if (post.uagb_excerpt == undefined) { - return null; - } + default: + { + toAdd = arg; + } + } - var words = post.uagb_excerpt.split(" "); + if (toAdd) { + cls && (cls += ' '); + cls += toAdd; + } + } - var excerpt = post.uagb_excerpt; + return cls; +}; - var exLen = attributes.excerptLength ? attributes.excerptLength : 25; +function merge(registered, css, className) { + var registeredStyles = []; + var rawClassName = Object(__WEBPACK_IMPORTED_MODULE_4__emotion_utils__["a" /* getRegisteredStyles */])(registered, registeredStyles, className); - if (exLen >= words.length) { - excerpt = post.uagb_excerpt; - } else { - var truncated = words.slice(0, exLen); - excerpt = truncated.join(" "); - excerpt += " ..."; - } + if (registeredStyles.length < 2) { + return className; + } - if (attributes.displayPostExcerpt && attributes.displayPostContentRadio == "excerpt") { + return rawClassName + css(registeredStyles); +} - return wp.element.createElement( - "div", - { className: "uagb-post__excerpt" }, - wp.element.createElement("div", { dangerouslySetInnerHTML: { __html: excerpt } }) - ); - } else if (attributes.displayPostExcerpt && attributes.displayPostContentRadio == "full_post") { +var ClassNames = Object(__WEBPACK_IMPORTED_MODULE_3__emotion_element_57a3a7a3_browser_esm_js__["f" /* w */])(function (props, context) { + return /*#__PURE__*/Object(__WEBPACK_IMPORTED_MODULE_1_react__["createElement"])(__WEBPACK_IMPORTED_MODULE_3__emotion_element_57a3a7a3_browser_esm_js__["c" /* T */].Consumer, null, function (theme) { + var hasRendered = false; - return wp.element.createElement( - "div", - { className: "uagb-post__excerpt uagb-full_post" }, - wp.element.createElement("div", { dangerouslySetInnerHTML: { __html: post.content.raw.trim() } }) - ); - } else { - return null; - } - } - }]); + var css = function css() { + if (hasRendered && process.env.NODE_ENV !== 'production') { + throw new Error('css can only be used during render'); + } - return Excerpt; -}(React.Component); + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } -/* harmony default export */ __webpack_exports__["a"] = (Excerpt); + var serialized = Object(__WEBPACK_IMPORTED_MODULE_5__emotion_serialize__["a" /* serializeStyles */])(args, context.registered); -/***/ }), -/* 71 */ -/*!*******************************************!*\ - !*** ./node_modules/lodash/_baseSlice.js ***! - \*******************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports) { + { + Object(__WEBPACK_IMPORTED_MODULE_4__emotion_utils__["b" /* insertStyles */])(context, serialized, false); + } -/** - * The base implementation of `_.slice` without an iteratee call guard. - * - * @private - * @param {Array} array The array to slice. - * @param {number} [start=0] The start position. - * @param {number} [end=array.length] The end position. - * @returns {Array} Returns the slice of `array`. - */ -function baseSlice(array, start, end) { - var index = -1, - length = array.length; + return context.key + "-" + serialized.name; + }; - if (start < 0) { - start = -start > length ? 0 : (length + start); - } - end = end > length ? length : end; - if (end < 0) { - end += length; - } - length = start > end ? 0 : ((end - start) >>> 0); - start >>>= 0; + var cx = function cx() { + if (hasRendered && process.env.NODE_ENV !== 'production') { + throw new Error('cx can only be used during render'); + } - var result = Array(length); - while (++index < length) { - result[index] = array[index + start]; - } - return result; -} + for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { + args[_key2] = arguments[_key2]; + } -module.exports = baseSlice; + return merge(context.registered, css, classnames(args)); + }; + var content = { + css: css, + cx: cx, + theme: theme + }; + var ele = props.children(content); + hasRendered = true; -/***/ }), -/* 72 */ -/*!********************************************!*\ - !*** ./node_modules/lodash/_hasUnicode.js ***! - \********************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports) { + return ele; + }); +}); -/** Used to compose unicode character classes. */ -var rsAstralRange = '\\ud800-\\udfff', - rsComboMarksRange = '\\u0300-\\u036f', - reComboHalfMarksRange = '\\ufe20-\\ufe2f', - rsComboSymbolsRange = '\\u20d0-\\u20ff', - rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange, - rsVarRange = '\\ufe0e\\ufe0f'; -/** Used to compose unicode capture groups. */ -var rsZWJ = '\\u200d'; -/** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */ -var reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + ']'); +/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(/*! ./../../../process/browser.js */ 6))) -/** - * Checks if `string` contains Unicode symbols. - * - * @private - * @param {string} string The string to inspect. - * @returns {boolean} Returns `true` if a symbol is found, else `false`. - */ -function hasUnicode(string) { - return reHasUnicode.test(string); -} +/***/ }), +/* 88 */ +/*!***************************************************************!*\ + !*** ./node_modules/@emotion/cache/dist/cache.browser.esm.js ***! + \***************************************************************/ +/*! exports provided: default */ +/*! exports used: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { -module.exports = hasUnicode; +"use strict"; +/* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__emotion_sheet__ = __webpack_require__(/*! @emotion/sheet */ 172); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__emotion_stylis__ = __webpack_require__(/*! @emotion/stylis */ 345); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__emotion_weak_memoize__ = __webpack_require__(/*! @emotion/weak-memoize */ 346); -/***/ }), -/* 73 */ -/*!******************************************!*\ - !*** ./node_modules/lodash/toInteger.js ***! - \******************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { -var toFinite = __webpack_require__(/*! ./toFinite */ 302); -/** - * Converts `value` to an integer. - * - * **Note:** This method is loosely based on - * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger). - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to convert. - * @returns {number} Returns the converted integer. - * @example - * - * _.toInteger(3.2); - * // => 3 - * - * _.toInteger(Number.MIN_VALUE); - * // => 0 - * - * _.toInteger(Infinity); - * // => 1.7976931348623157e+308 - * - * _.toInteger('3.2'); - * // => 3 - */ -function toInteger(value) { - var result = toFinite(value), - remainder = result % 1; +// https://github.com/thysultan/stylis.js/tree/master/plugins/rule-sheet +// inlined to avoid umd wrapper and peerDep warnings/installing stylis +// since we use stylis after closure compiler +var delimiter = '/*|*/'; +var needle = delimiter + '}'; - return result === result ? (remainder ? result - remainder : result) : 0; +function toSheet(block) { + if (block) { + Sheet.current.insert(block + '}'); + } } -module.exports = toInteger; +var Sheet = { + current: null +}; +var ruleSheet = function ruleSheet(context, content, selectors, parents, line, column, length, ns, depth, at) { + switch (context) { + // property + case 1: + { + switch (content.charCodeAt(0)) { + case 64: + { + // @import + Sheet.current.insert(content + ';'); + return ''; + } + // charcode for l + case 108: + { + // charcode for b + // this ignores label + if (content.charCodeAt(2) === 98) { + return ''; + } + } + } -/***/ }), -/* 74 */ -/*!**********************************************!*\ - !*** ./src/blocks/post/components/Button.js ***! - \**********************************************/ -/*! exports provided: default */ -/*! exports used: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { + break; + } + // selector -"use strict"; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_classnames__ = __webpack_require__(/*! classnames */ 0); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_classnames__); -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + case 2: + { + if (ns === 0) return content + delimiter; + break; + } + // at-rule -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + case 3: + { + switch (ns) { + // @font-face, @page + case 102: + case 112: + { + Sheet.current.insert(selectors[0] + content); + return ''; + } -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + default: + { + return content + (at === 0 ? delimiter : ''); + } + } + } -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + case -2: + { + content.split(needle).forEach(toSheet); + } + } +}; -var __ = wp.i18n.__; +var createCache = function createCache(options) { + if (options === undefined) options = {}; + var key = options.key || 'css'; + var stylisOptions; + if (options.prefix !== undefined) { + stylisOptions = { + prefix: options.prefix + }; + } + var stylis = new __WEBPACK_IMPORTED_MODULE_1__emotion_stylis__["a" /* default */](stylisOptions); -var Button = function (_React$Component) { - _inherits(Button, _React$Component); + if (process.env.NODE_ENV !== 'production') { + // $FlowFixMe + if (/[^a-z-]/.test(key)) { + throw new Error("Emotion key must only contain lower case alphabetical characters and - but \"" + key + "\" was passed"); + } + } - function Button() { - _classCallCheck(this, Button); + var inserted = {}; // $FlowFixMe - return _possibleConstructorReturn(this, (Button.__proto__ || Object.getPrototypeOf(Button)).apply(this, arguments)); - } + var container; - _createClass(Button, [{ - key: "render", - value: function render() { - var _props = this.props, - post = _props.post, - attributes = _props.attributes; + { + container = options.container || document.head; + var nodes = document.querySelectorAll("style[data-emotion-" + key + "]"); + Array.prototype.forEach.call(nodes, function (node) { + var attrib = node.getAttribute("data-emotion-" + key); // $FlowFixMe + attrib.split(' ').forEach(function (id) { + inserted[id] = true; + }); - if (attributes.displayPostContentRadio == "full_post") { - return null; - } + if (node.parentNode !== container) { + container.appendChild(node); + } + }); + } - var target = attributes.newTab ? "_blank" : "_self"; + var _insert; - if (attributes.displayPostLink) { + { + stylis.use(options.stylisPlugins)(ruleSheet); - var cta_text = attributes.ctaText ? attributes.ctaText : __("Read More"); + _insert = function insert(selector, serialized, sheet, shouldCache) { + var name = serialized.name; + Sheet.current = sheet; - return wp.element.createElement( - "div", - { className: __WEBPACK_IMPORTED_MODULE_0_classnames___default.a('uagb-post__cta', attributes.inheritFromTheme ? 'wp-block-button' : null) }, - wp.element.createElement( - "a", - { - className: __WEBPACK_IMPORTED_MODULE_0_classnames___default.a(!attributes.inheritFromTheme ? 'uagb-post__link ' : null, 'uagb-text-link', attributes.inheritFromTheme ? 'wp-block-button__link' : null), - href: post.link, - target: target, - rel: "noopener noreferrer" }, - cta_text - ) - ); - } else { - return null; - } - } - }]); + if (process.env.NODE_ENV !== 'production' && serialized.map !== undefined) { + var map = serialized.map; + Sheet.current = { + insert: function insert(rule) { + sheet.insert(rule + map); + } + }; + } - return Button; -}(React.Component); + stylis(selector, serialized.styles); -/* harmony default export */ __webpack_exports__["a"] = (Button); + if (shouldCache) { + cache.inserted[name] = true; + } + }; + } -/***/ }), -/* 75 */ -/*!************************************!*\ - !*** ./src/blocks/post/styling.js ***! - \************************************/ -/*! exports provided: default */ -/*! exports used: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { + if (process.env.NODE_ENV !== 'production') { + // https://esbench.com/bench/5bf7371a4cd7e6009ef61d0a + var commentStart = /\/\*/g; + var commentEnd = /\*\//g; + stylis.use(function (context, content) { + switch (context) { + case -1: + { + while (commentStart.test(content)) { + commentEnd.lastIndex = commentStart.lastIndex; -"use strict"; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSS__ = __webpack_require__(/*! ../../../dist/blocks/uagb-controls/generateCSS */ 5); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__ = __webpack_require__(/*! ../../../dist/blocks/uagb-controls/generateCSSUnit */ 4); -/** - * Set inline styles. - * @param {object} props - The block object. - * @return {object} The inline background type CSS. - */ + if (commentEnd.test(content)) { + commentStart.lastIndex = commentEnd.lastIndex; + continue; + } + throw new Error('Your styles have an unterminated comment ("/*" without corresponding "*/").'); + } + commentStart.lastIndex = 0; + break; + } + } + }); + stylis.use(function (context, content, selectors) { + switch (context) { + case -1: + { + var flag = 'emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason'; + var unsafePseudoClasses = content.match(/(:first|:nth|:nth-last)-child/g); + if (unsafePseudoClasses && cache.compat !== true) { + unsafePseudoClasses.forEach(function (unsafePseudoClass) { + var ignoreRegExp = new RegExp(unsafePseudoClass + ".*\\/\\* " + flag + " \\*\\/"); + var ignore = ignoreRegExp.test(content); -function styling(props) { - var _props$attributes = props.attributes, - align = _props$attributes.align, - rowGap = _props$attributes.rowGap, - columnGap = _props$attributes.columnGap, - bgColor = _props$attributes.bgColor, - contentPadding = _props$attributes.contentPadding, - contentPaddingMobile = _props$attributes.contentPaddingMobile, - titleColor = _props$attributes.titleColor, - titleFontSize = _props$attributes.titleFontSize, - titleFontSizeType = _props$attributes.titleFontSizeType, - titleFontSizeMobile = _props$attributes.titleFontSizeMobile, - titleFontSizeTablet = _props$attributes.titleFontSizeTablet, - titleFontFamily = _props$attributes.titleFontFamily, - titleFontWeight = _props$attributes.titleFontWeight, - titleLineHeightType = _props$attributes.titleLineHeightType, - titleLineHeight = _props$attributes.titleLineHeight, - titleLineHeightTablet = _props$attributes.titleLineHeightTablet, - titleLineHeightMobile = _props$attributes.titleLineHeightMobile, - metaFontSize = _props$attributes.metaFontSize, - metaFontSizeType = _props$attributes.metaFontSizeType, - metaFontSizeMobile = _props$attributes.metaFontSizeMobile, - metaFontSizeTablet = _props$attributes.metaFontSizeTablet, - metaFontFamily = _props$attributes.metaFontFamily, - metaFontWeight = _props$attributes.metaFontWeight, - metaLineHeightType = _props$attributes.metaLineHeightType, - metaLineHeight = _props$attributes.metaLineHeight, - metaLineHeightTablet = _props$attributes.metaLineHeightTablet, - metaLineHeightMobile = _props$attributes.metaLineHeightMobile, - excerptFontSize = _props$attributes.excerptFontSize, - excerptFontSizeType = _props$attributes.excerptFontSizeType, - excerptFontSizeTablet = _props$attributes.excerptFontSizeTablet, - excerptFontSizeMobile = _props$attributes.excerptFontSizeMobile, - excerptFontFamily = _props$attributes.excerptFontFamily, - excerptFontWeight = _props$attributes.excerptFontWeight, - excerptLineHeightType = _props$attributes.excerptLineHeightType, - excerptLineHeight = _props$attributes.excerptLineHeight, - excerptLineHeightTablet = _props$attributes.excerptLineHeightTablet, - excerptLineHeightMobile = _props$attributes.excerptLineHeightMobile, - ctaFontSize = _props$attributes.ctaFontSize, - ctaFontSizeType = _props$attributes.ctaFontSizeType, - ctaFontSizeTablet = _props$attributes.ctaFontSizeTablet, - ctaFontSizeMobile = _props$attributes.ctaFontSizeMobile, - ctaFontFamily = _props$attributes.ctaFontFamily, - ctaFontWeight = _props$attributes.ctaFontWeight, - ctaLineHeightType = _props$attributes.ctaLineHeightType, - ctaLineHeight = _props$attributes.ctaLineHeight, - ctaLineHeightTablet = _props$attributes.ctaLineHeightTablet, - ctaLineHeightMobile = _props$attributes.ctaLineHeightMobile, - metaColor = _props$attributes.metaColor, - excerptColor = _props$attributes.excerptColor, - ctaColor = _props$attributes.ctaColor, - ctaBgColor = _props$attributes.ctaBgColor, - ctaHColor = _props$attributes.ctaHColor, - ctaBgHColor = _props$attributes.ctaBgHColor, - titleBottomSpace = _props$attributes.titleBottomSpace, - metaBottomSpace = _props$attributes.metaBottomSpace, - excerptBottomSpace = _props$attributes.excerptBottomSpace, - overlayOpacity = _props$attributes.overlayOpacity, - bgOverlayColor = _props$attributes.bgOverlayColor, - borderWidth = _props$attributes.borderWidth, - borderStyle = _props$attributes.borderStyle, - borderColor = _props$attributes.borderColor, - borderHColor = _props$attributes.borderHColor, - borderRadius = _props$attributes.borderRadius, - btnVPadding = _props$attributes.btnVPadding, - btnHPadding = _props$attributes.btnHPadding, - linkBox = _props$attributes.linkBox, - arrowColor = _props$attributes.arrowColor, - arrowSize = _props$attributes.arrowSize, - paginationBgActiveColor = _props$attributes.paginationBgActiveColor, - paginationActiveColor = _props$attributes.paginationActiveColor, - paginationBgColor = _props$attributes.paginationBgColor, - paginationColor = _props$attributes.paginationColor, - paginationLayout = _props$attributes.paginationLayout, - paginationBorderSize = _props$attributes.paginationBorderSize, - paginationBorderRadius = _props$attributes.paginationBorderRadius, - paginationBorderColor = _props$attributes.paginationBorderColor, - paginationBorderActiveColor = _props$attributes.paginationBorderActiveColor, - paginationSpacing = _props$attributes.paginationSpacing, - paginationAlignment = _props$attributes.paginationAlignment, - inheritFromTheme = _props$attributes.inheritFromTheme, - postPagination = _props$attributes.postPagination, - paginationMarkup = _props$attributes.paginationMarkup, - paginationType = _props$attributes.paginationType, - paginationEventType = _props$attributes.paginationEventType, - paginationAlign = _props$attributes.paginationAlign, - paginationTextColor = _props$attributes.paginationTextColor, - paginationMasonryBgColor = _props$attributes.paginationMasonryBgColor, - paginationMasonryBorderStyle = _props$attributes.paginationMasonryBorderStyle, - paginationMasonryBorderWidth = _props$attributes.paginationMasonryBorderWidth, - paginationMasonryBorderRadius = _props$attributes.paginationMasonryBorderRadius, - paginationMasonryBorderColor = _props$attributes.paginationMasonryBorderColor, - paginationTextHoverColor = _props$attributes.paginationTextHoverColor, - paginationBgHoverColor = _props$attributes.paginationBgHoverColor, - paginationFontSize = _props$attributes.paginationFontSize, - loaderColor = _props$attributes.loaderColor, - loaderSize = _props$attributes.loaderSize, - paginationButtonPaddingType = _props$attributes.paginationButtonPaddingType, - vpaginationButtonPaddingMobile = _props$attributes.vpaginationButtonPaddingMobile, - vpaginationButtonPaddingTablet = _props$attributes.vpaginationButtonPaddingTablet, - vpaginationButtonPaddingDesktop = _props$attributes.vpaginationButtonPaddingDesktop, - hpaginationButtonPaddingMobile = _props$attributes.hpaginationButtonPaddingMobile, - hpaginationButtonPaddingTablet = _props$attributes.hpaginationButtonPaddingTablet, - hpaginationButtonPaddingDesktop = _props$attributes.hpaginationButtonPaddingDesktop; + if (unsafePseudoClass && !ignore) { + console.error("The pseudo class \"" + unsafePseudoClass + "\" is potentially unsafe when doing server-side rendering. Try changing it to \"" + unsafePseudoClass.split('-child')[0] + "-of-type\"."); + } + }); + } + break; + } + } + }); + } - var mobile_selectors = {}; - var tablet_selectors = {}; + var cache = { + key: key, + sheet: new __WEBPACK_IMPORTED_MODULE_0__emotion_sheet__["a" /* StyleSheet */]({ + key: key, + container: container, + nonce: options.nonce, + speedy: options.speedy + }), + nonce: options.nonce, + inserted: inserted, + registered: {}, + insert: _insert + }; + return cache; +}; - var selectors = { - " .uagb-post__items": { - "margin-right": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](-rowGap / 2, "px"), - "margin-left": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](-rowGap / 2, "px") - }, - " .uagb-post__items article": { - "padding-right": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](rowGap / 2, "px"), - "padding-left": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](rowGap / 2, "px"), - "margin-bottom": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](columnGap, "px") - }, - " .uagb-post__inner-wrap": { - "background": bgColor - }, - " .uagb-post__text": { - "padding": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](contentPadding, "px"), - "text-align": align - }, - " .uagb-post__text .uagb-post__title": { - "margin-bottom": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](titleBottomSpace, "px") - }, - " .uagb-post__text .uagb-post-grid-byline": { - "margin-bottom": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](metaBottomSpace, "px") - }, - " .uagb-post__text .uagb-post__excerpt": { - "margin-bottom": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](excerptBottomSpace, "px") - }, - " .uagb-post__image:before": { - "background-color": bgOverlayColor, - "opacity": overlayOpacity / 100 - }, - " .uagb-post-pagination-wrap": { - "margin-top": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](paginationSpacing, "px"), - "text-align": paginationAlignment - } - }; +/* harmony default export */ __webpack_exports__["a"] = (createCache); - if (!inheritFromTheme) { - selectors[" .uagb-post__text .uagb-post__title"] = { - "color": titleColor, - "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](titleFontSize, titleFontSizeType), - "font-family": titleFontFamily, - "font-weight": titleFontWeight, - "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](titleLineHeight, titleLineHeightType) - }; - selectors[" .uagb-post__text .uagb-post__title a"] = { - "color": titleColor, - "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](titleFontSize, titleFontSizeType), - "font-family": titleFontFamily, - "font-weight": titleFontWeight, - "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](titleLineHeight, titleLineHeightType) - }; - selectors[" .uagb-post__text .uagb-post-grid-byline"] = { - "color": metaColor, - "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](metaFontSize, metaFontSizeType), - "font-family": metaFontFamily, - "font-weight": metaFontWeight, - "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](metaLineHeight, metaLineHeightType) - }; - selectors[" .uagb-post__text .uagb-post-grid-byline .uagb-post__author"] = { - "color": metaColor, - "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](metaFontSize, metaFontSizeType), - "font-family": metaFontFamily, - "font-weight": metaFontWeight, - "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](metaLineHeight, metaLineHeightType) - }; - selectors[" .uagb-post__text .uagb-post-grid-byline .uagb-post__author a"] = { - "color": metaColor, - "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](metaFontSize, metaFontSizeType), - "font-family": metaFontFamily, - "font-weight": metaFontWeight, - "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](metaLineHeight, metaLineHeightType) - }; - selectors[" .uagb-post__text .uagb-post__excerpt"] = { - "color": excerptColor, - "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](excerptFontSize, excerptFontSizeType), - "font-family": excerptFontFamily, - "font-weight": excerptFontWeight, - "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](excerptLineHeight, excerptLineHeightType) - }; - selectors[" .uagb-post__text .uagb-post__cta"] = { - "color": ctaColor, - "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaFontSize, ctaFontSizeType), - "font-family": ctaFontFamily, - "font-weight": ctaFontWeight, - "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaLineHeight, ctaLineHeightType), - "background": ctaBgColor, - "border-width": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](borderWidth, "px"), - "border-radius": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](borderRadius, "px"), - "border-color": borderColor, - "border-style": borderStyle - }; - selectors[" .uagb-post__text .uagb-post__cta a"] = { - "color": ctaColor, - "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaFontSize, ctaFontSizeType), - "padding": btnVPadding + "px " + btnHPadding + "px" - }; - selectors[" .uagb-post__text .uagb-post__cta:hover"] = { - "color": ctaHColor, - "background": ctaBgHColor, - "border-color": borderHColor - }; - selectors[" .uagb-post__text .uagb-post__cta:hover a"] = { - "color": ctaHColor - }; - } +/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(/*! ./../../../process/browser.js */ 6))) - if (true === postPagination && 'empty' === paginationMarkup) { - if ('filled' == paginationLayout) { - selectors[" .uagb-post-pagination-wrap a"] = { +/***/ }), +/* 89 */ +/*!***********************************************************************!*\ + !*** ./node_modules/@emotion/serialize/dist/serialize.browser.esm.js ***! + \***********************************************************************/ +/*! exports provided: serializeStyles */ +/*! exports used: serializeStyles */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { - "background-color": paginationBgColor, - "color": paginationColor - }; - if ('undefined' == typeof paginationBgActiveColor && 'undefined' == typeof paginationActiveColor) { +"use strict"; +/* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return serializeStyles; }); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__emotion_hash__ = __webpack_require__(/*! @emotion/hash */ 349); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__emotion_unitless__ = __webpack_require__(/*! @emotion/unitless */ 350); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__emotion_memoize__ = __webpack_require__(/*! @emotion/memoize */ 351); - selectors[" .uagb-post-pagination-wrap .page-numbers.current"] = { - "background-color": paginationBgColor, - "color": paginationColor - }; - } - if ('undefined' == typeof paginationBgActiveColor && 'undefined' != typeof paginationActiveColor) { - selectors[" .uagb-post-pagination-wrap .page-numbers.current"] = { - "background-color": paginationBgColor, - "color": paginationActiveColor - }; - } - if ('undefined' != typeof paginationBgActiveColor && 'undefined' == typeof paginationActiveColor) { +var ILLEGAL_ESCAPE_SEQUENCE_ERROR = "You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences"; +var UNDEFINED_AS_OBJECT_KEY_ERROR = "You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key)."; +var hyphenateRegex = /[A-Z]|^ms/g; +var animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g; - selectors[" .uagb-post-pagination-wrap .page-numbers.current"] = { +var isCustomProperty = function isCustomProperty(property) { + return property.charCodeAt(1) === 45; +}; - "background-color": paginationBgActiveColor, - "color": paginationColor - }; - } - if ('undefined' != typeof paginationBgActiveColor && 'undefined' != typeof paginationActiveColor) { +var isProcessableValue = function isProcessableValue(value) { + return value != null && typeof value !== 'boolean'; +}; - selectors[" .uagb-post-pagination-wrap .page-numbers.current"] = { +var processStyleName = Object(__WEBPACK_IMPORTED_MODULE_2__emotion_memoize__["a" /* default */])(function (styleName) { + return isCustomProperty(styleName) ? styleName : styleName.replace(hyphenateRegex, '-$&').toLowerCase(); +}); - "background-color": paginationBgActiveColor, - "color": paginationActiveColor - }; - } - } - if ('border' == paginationLayout) { - selectors[" .uagb-post-pagination-wrap a"] = { - "border-style": "solid", - "border-width": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](paginationBorderSize, "px"), - "border-color": paginationBorderColor, - "border-radius": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](paginationBorderRadius, "px"), - "color": paginationColor, - "background-color": "transparent" - }; - if ('undefined' != typeof paginationBorderActiveColor && 'undefined' != typeof paginationActiveColor) { - selectors[" .uagb-post-pagination-wrap .page-numbers.current"] = { - "border-style": "solid", - "border-width": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](paginationBorderSize, "px"), - "border-color": paginationBorderActiveColor, - "border-radius": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](paginationBorderRadius, "px"), - "color": paginationActiveColor, - "background-color": "transparent" - }; - } - if ('undefined' == typeof paginationBorderActiveColor && 'undefined' != typeof paginationActiveColor) { - selectors[" .uagb-post-pagination-wrap .page-numbers.current"] = { - "border-style": "solid", - "border-width": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](paginationBorderSize, "px"), - "border-color": paginationBorderColor, - "border-radius": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](paginationBorderRadius, "px"), - "color": paginationActiveColor, - "background-color": "transparent" - }; - } - if ('undefined' != typeof paginationBorderActiveColor && 'undefined' == typeof paginationActiveColor) { - selectors[" .uagb-post-pagination-wrap .page-numbers.current"] = { - "border-style": "solid", - "border-width": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](paginationBorderSize, "px"), - "border-color": paginationBorderActiveColor, - "border-radius": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](paginationBorderRadius, "px"), - "color": paginationColor, - "background-color": "transparent" - }; - } - if ('undefined' == typeof paginationBorderActiveColor && 'undefined' == typeof paginationActiveColor) { - selectors[" .uagb-post-pagination-wrap .page-numbers.current"] = { - "border-style": "solid", - "border-width": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](paginationBorderSize, "px"), - "border-color": paginationBorderColor, - "border-radius": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](paginationBorderRadius, "px"), - "color": paginationColor, - "background-color": "transparent" - }; - } - } - } - - if (linkBox) { - selectors[" .uagb-post__inner-wrap"]["cursor"] = "pointer"; - } +var processStyleValue = function processStyleValue(key, value) { + switch (key) { + case 'animation': + case 'animationName': + { + if (typeof value === 'string') { + return value.replace(animationRegex, function (match, p1, p2) { + cursor = { + name: p1, + styles: p2, + next: cursor + }; + return p1; + }); + } + } + } - selectors[" .slick-arrow svg"] = { - "fill": arrowColor, - "height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](arrowSize, "px"), - "width": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](arrowSize, "px") - }; + if (__WEBPACK_IMPORTED_MODULE_1__emotion_unitless__["a" /* default */][key] !== 1 && !isCustomProperty(key) && typeof value === 'number' && value !== 0) { + return value + 'px'; + } - if (!inheritFromTheme) { + return value; +}; - mobile_selectors = { - " .uagb-post__text .uagb-post__title": { - "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](titleFontSizeMobile, titleFontSizeType), - "line-height": titleLineHeightMobile + titleLineHeightType - }, - " .uagb-post__text .uagb-post__title a": { - "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](titleFontSizeMobile, titleFontSizeType), - "line-height": titleLineHeightMobile + titleLineHeightType - }, - " .uagb-post__text .uagb-post-grid-byline": { - "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](metaFontSizeMobile, metaFontSizeType), - "line-height": metaLineHeightMobile + metaLineHeightType - }, - " .uagb-post__text .uagb-post-grid-byline .uagb-post__author": { - "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](metaFontSizeMobile, metaFontSizeType), - "line-height": metaLineHeightMobile + metaLineHeightType - }, - " .uagb-post__text .uagb-post-grid-byline .uagb-post__author a": { - "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](metaFontSizeMobile, metaFontSizeType), - "line-height": metaLineHeightMobile + metaLineHeightType - }, - " .uagb-post__text .uagb-post__excerpt": { - "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](excerptFontSizeMobile, excerptFontSizeType), - "line-height": excerptLineHeightMobile + excerptLineHeightType - }, - " .uagb-post__text .uagb-post__cta": { - "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaFontSizeMobile, ctaFontSizeType), - "line-height": ctaLineHeightMobile + ctaLineHeightType - }, - " .uagb-post__text .uagb-post__cta a": { - "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaFontSizeMobile, ctaFontSizeType), - "line-height": ctaLineHeightMobile + ctaLineHeightType - } - }; +if (process.env.NODE_ENV !== 'production') { + var contentValuePattern = /(attr|calc|counters?|url)\(/; + var contentValues = ['normal', 'none', 'counter', 'open-quote', 'close-quote', 'no-open-quote', 'no-close-quote', 'initial', 'inherit', 'unset']; + var oldProcessStyleValue = processStyleValue; + var msPattern = /^-ms-/; + var hyphenPattern = /-(.)/g; + var hyphenatedCache = {}; - tablet_selectors = { - " .uagb-post__text .uagb-post__title": { - "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](titleFontSizeTablet, titleFontSizeType), - "line-height": titleLineHeightTablet + titleLineHeightType - }, - " .uagb-post__text .uagb-post__title a": { - "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](titleFontSizeTablet, titleFontSizeType), - "line-height": titleLineHeightTablet + titleLineHeightType - }, - " .uagb-post__text .uagb-post-grid-byline": { - "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](metaFontSizeTablet, metaFontSizeType), - "line-height": metaLineHeightTablet + metaLineHeightType - }, - " .uagb-post__text .uagb-post-grid-byline .uagb-post__author": { - "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](metaFontSizeTablet, metaFontSizeType), - "line-height": metaLineHeightTablet + metaLineHeightType - }, - " .uagb-post__text .uagb-post-grid-byline .uagb-post__author a": { - "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](metaFontSizeTablet, metaFontSizeType), - "line-height": metaLineHeightTablet + metaLineHeightType - }, - " .uagb-post__text .uagb-post__excerpt": { - "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](excerptFontSizeTablet, excerptFontSizeType), - "line-height": excerptLineHeightTablet + excerptLineHeightType - }, - " .uagb-post__text .uagb-post__cta": { - "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaFontSizeTablet, ctaFontSizeType), - "line-height": ctaLineHeightTablet + ctaLineHeightType - }, - " .uagb-post__text .uagb-post__cta a": { - "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaFontSizeTablet, ctaFontSizeType), - "line-height": ctaLineHeightTablet + ctaLineHeightType - } - }; - } + processStyleValue = function processStyleValue(key, value) { + if (key === 'content') { + if (typeof value !== 'string' || contentValues.indexOf(value) === -1 && !contentValuePattern.test(value) && (value.charAt(0) !== value.charAt(value.length - 1) || value.charAt(0) !== '"' && value.charAt(0) !== "'")) { + console.error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"" + value + "\"'`"); + } + } - if ('infinite' === paginationType) { + var processed = oldProcessStyleValue(key, value); - if ('button' === paginationEventType) { - selectors[' .uagb-post__load-more-wrap'] = { - 'text-align': paginationAlign - }; - selectors[' .uagb-post__load-more-wrap .uagb-post-pagination-button'] = { + if (processed !== '' && !isCustomProperty(key) && key.indexOf('-') !== -1 && hyphenatedCache[key] === undefined) { + hyphenatedCache[key] = true; + console.error("Using kebab-case for css properties in objects is not supported. Did you mean " + key.replace(msPattern, 'ms-').replace(hyphenPattern, function (str, _char) { + return _char.toUpperCase(); + }) + "?"); + } - 'color': paginationTextColor, - "background-color": paginationMasonryBgColor, - "border-style": paginationMasonryBorderStyle, - "border-width": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](paginationMasonryBorderWidth, 'px'), - "border-radius": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](paginationMasonryBorderRadius, 'px'), - "border-color": paginationMasonryBorderColor, - "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](paginationFontSize, 'px'), - "padding-top": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](vpaginationButtonPaddingDesktop, paginationButtonPaddingType), - "padding-bottom": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](vpaginationButtonPaddingDesktop, paginationButtonPaddingType), - "padding-right": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](hpaginationButtonPaddingDesktop, paginationButtonPaddingType), - "padding-left": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](hpaginationButtonPaddingDesktop, paginationButtonPaddingType) + return processed; + }; +} - }; - selectors[' .uagb-post__load-more-wrap .uagb-post-pagination-button:hover'] = { - 'color': paginationTextHoverColor, - "background-color": paginationBgHoverColor - }; - mobile_selectors[' .uagb-post__load-more-wrap .uagb-post-pagination-button'] = { - "padding-top": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](vpaginationButtonPaddingMobile, paginationButtonPaddingType), - "padding-bottom": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](vpaginationButtonPaddingMobile, paginationButtonPaddingType), - "padding-right": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](hpaginationButtonPaddingMobile, paginationButtonPaddingType), - "padding-left": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](hpaginationButtonPaddingMobile, paginationButtonPaddingType) - }; - tablet_selectors[' .uagb-post__load-more-wrap .uagb-post-pagination-button'] = { - "padding-top": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](vpaginationButtonPaddingTablet, paginationButtonPaddingType), - "padding-bottom": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](vpaginationButtonPaddingTablet, paginationButtonPaddingType), - "padding-right": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](hpaginationButtonPaddingTablet, paginationButtonPaddingType), - "padding-left": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](hpaginationButtonPaddingTablet, paginationButtonPaddingType) - }; - } - if ('scroll' === paginationEventType) { - selectors['.uagb-post-grid .uagb-post-inf-loader div'] = { - "width": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](loaderSize, "px"), - "height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](loaderSize, "px"), - "background-color": loaderColor - }; - } - } +var shouldWarnAboutInterpolatingClassNameFromCss = true; - mobile_selectors[" .uagb-post__text"] = { - "padding": contentPaddingMobile + "px" - }; +function handleInterpolation(mergedProps, registered, interpolation, couldBeSelectorInterpolation) { + if (interpolation == null) { + return ''; + } - var styling_css = ""; + if (interpolation.__emotion_styles !== undefined) { + if (process.env.NODE_ENV !== 'production' && interpolation.toString() === 'NO_COMPONENT_SELECTOR') { + throw new Error('Component selectors can only be used in conjunction with babel-plugin-emotion.'); + } - styling_css = __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSS__["a" /* default */](selectors, ".uagb-block-" + props.clientId.substr(0, 8)); + return interpolation; + } - styling_css += __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSS__["a" /* default */](tablet_selectors, ".uagb-block-" + props.clientId.substr(0, 8), true, "tablet"); + switch (typeof interpolation) { + case 'boolean': + { + return ''; + } - styling_css += __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSS__["a" /* default */](mobile_selectors, ".uagb-block-" + props.clientId.substr(0, 8), true, "mobile"); + case 'object': + { + if (interpolation.anim === 1) { + cursor = { + name: interpolation.name, + styles: interpolation.styles, + next: cursor + }; + return interpolation.name; + } - return styling_css; -} + if (interpolation.styles !== undefined) { + var next = interpolation.next; -/* harmony default export */ __webpack_exports__["a"] = (styling); + if (next !== undefined) { + // not the most efficient thing ever but this is a pretty rare case + // and there will be very few iterations of this generally + while (next !== undefined) { + cursor = { + name: next.name, + styles: next.styles, + next: cursor + }; + next = next.next; + } + } -/***/ }), -/* 76 */ -/*!************************************!*\ - !*** ./src/blocks/post/style.scss ***! - \************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { + var styles = interpolation.styles + ";"; -// removed by extract-text-webpack-plugin + if (process.env.NODE_ENV !== 'production' && interpolation.map !== undefined) { + styles += interpolation.map; + } -/***/ }), -/* 77 */ -/*!*************************************!*\ - !*** ./src/blocks/post/editor.scss ***! - \*************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { + return styles; + } -// removed by extract-text-webpack-plugin + return createStringFromObject(mergedProps, registered, interpolation); + } -/***/ }), -/* 78 */ -/*!***********************************************!*\ - !*** ./node_modules/ev-emitter/ev-emitter.js ***! - \***********************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { + case 'function': + { + if (mergedProps !== undefined) { + var previousCursor = cursor; + var result = interpolation(mergedProps); + cursor = previousCursor; + return handleInterpolation(mergedProps, registered, result, couldBeSelectorInterpolation); + } else if (process.env.NODE_ENV !== 'production') { + console.error('Functions that are interpolated in css calls will be stringified.\n' + 'If you want to have a css call based on props, create a function that returns a css call like this\n' + 'let dynamicStyle = (props) => css`color: ${props.color}`\n' + 'It can be called directly with props or interpolated in a styled call like this\n' + "let SomeComponent = styled('div')`${dynamicStyle}`"); + } -var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;/** - * EvEmitter v1.1.0 - * Lil' event emitter - * MIT License - */ + break; + } -/* jshint unused: true, undef: true, strict: true */ + case 'string': + if (process.env.NODE_ENV !== 'production') { + var matched = []; + var replaced = interpolation.replace(animationRegex, function (match, p1, p2) { + var fakeVarName = "animation" + matched.length; + matched.push("const " + fakeVarName + " = keyframes`" + p2.replace(/^@keyframes animation-\w+/, '') + "`"); + return "${" + fakeVarName + "}"; + }); -( function( global, factory ) { - // universal module definition - /* jshint strict: false */ /* globals define, module, window */ - if ( true ) { - // AMD - RequireJS - !(__WEBPACK_AMD_DEFINE_FACTORY__ = (factory), - __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? - (__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) : - __WEBPACK_AMD_DEFINE_FACTORY__), - __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if ( typeof module == 'object' && module.exports ) { - // CommonJS - Browserify, Webpack - module.exports = factory(); - } else { - // Browser globals - global.EvEmitter = factory(); - } + if (matched.length) { + console.error('`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\n' + 'Instead of doing this:\n\n' + [].concat(matched, ["`" + replaced + "`"]).join('\n') + '\n\nYou should wrap it with `css` like this:\n\n' + ("css`" + replaced + "`")); + } + } -}( typeof window != 'undefined' ? window : this, function() { + break; + } // finalize string values (regular strings and functions interpolated into css calls) -"use strict"; -function EvEmitter() {} + if (registered == null) { + return interpolation; + } -var proto = EvEmitter.prototype; + var cached = registered[interpolation]; -proto.on = function( eventName, listener ) { - if ( !eventName || !listener ) { - return; - } - // set events hash - var events = this._events = this._events || {}; - // set listeners array - var listeners = events[ eventName ] = events[ eventName ] || []; - // only add once - if ( listeners.indexOf( listener ) == -1 ) { - listeners.push( listener ); + if (process.env.NODE_ENV !== 'production' && couldBeSelectorInterpolation && shouldWarnAboutInterpolatingClassNameFromCss && cached !== undefined) { + console.error('Interpolating a className from css`` is not recommended and will cause problems with composition.\n' + 'Interpolating a className from css`` will be completely unsupported in a future major version of Emotion'); + shouldWarnAboutInterpolatingClassNameFromCss = false; } - return this; -}; + return cached !== undefined && !couldBeSelectorInterpolation ? cached : interpolation; +} -proto.once = function( eventName, listener ) { - if ( !eventName || !listener ) { - return; - } - // add event - this.on( eventName, listener ); - // set once flag - // set onceEvents hash - var onceEvents = this._onceEvents = this._onceEvents || {}; - // set onceListeners object - var onceListeners = onceEvents[ eventName ] = onceEvents[ eventName ] || {}; - // set flag - onceListeners[ listener ] = true; +function createStringFromObject(mergedProps, registered, obj) { + var string = ''; - return this; -}; + if (Array.isArray(obj)) { + for (var i = 0; i < obj.length; i++) { + string += handleInterpolation(mergedProps, registered, obj[i], false); + } + } else { + for (var _key in obj) { + var value = obj[_key]; -proto.off = function( eventName, listener ) { - var listeners = this._events && this._events[ eventName ]; - if ( !listeners || !listeners.length ) { - return; - } - var index = listeners.indexOf( listener ); - if ( index != -1 ) { - listeners.splice( index, 1 ); - } + if (typeof value !== 'object') { + if (registered != null && registered[value] !== undefined) { + string += _key + "{" + registered[value] + "}"; + } else if (isProcessableValue(value)) { + string += processStyleName(_key) + ":" + processStyleValue(_key, value) + ";"; + } + } else { + if (_key === 'NO_COMPONENT_SELECTOR' && process.env.NODE_ENV !== 'production') { + throw new Error('Component selectors can only be used in conjunction with babel-plugin-emotion.'); + } - return this; -}; + if (Array.isArray(value) && typeof value[0] === 'string' && (registered == null || registered[value[0]] === undefined)) { + for (var _i = 0; _i < value.length; _i++) { + if (isProcessableValue(value[_i])) { + string += processStyleName(_key) + ":" + processStyleValue(_key, value[_i]) + ";"; + } + } + } else { + var interpolated = handleInterpolation(mergedProps, registered, value, false); -proto.emitEvent = function( eventName, args ) { - var listeners = this._events && this._events[ eventName ]; - if ( !listeners || !listeners.length ) { - return; - } - // copy over to avoid interference if .off() in listener - listeners = listeners.slice(0); - args = args || []; - // once stuff - var onceListeners = this._onceEvents && this._onceEvents[ eventName ]; + switch (_key) { + case 'animation': + case 'animationName': + { + string += processStyleName(_key) + ":" + interpolated + ";"; + break; + } - for ( var i=0; i < listeners.length; i++ ) { - var listener = listeners[i] - var isOnce = onceListeners && onceListeners[ listener ]; - if ( isOnce ) { - // remove listener - // remove before trigger to prevent recursion - this.off( eventName, listener ); - // unset once flag - delete onceListeners[ listener ]; + default: + { + if (process.env.NODE_ENV !== 'production' && _key === 'undefined') { + console.error(UNDEFINED_AS_OBJECT_KEY_ERROR); + } + + string += _key + "{" + interpolated + "}"; + } + } + } + } } - // trigger listener - listener.apply( this, args ); } - return this; -}; + return string; +} -proto.allOff = function() { - delete this._events; - delete this._onceEvents; -}; +var labelPattern = /label:\s*([^\s;\n{]+)\s*;/g; +var sourceMapPattern; -return EvEmitter; +if (process.env.NODE_ENV !== 'production') { + sourceMapPattern = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//; +} // this is the cursor for keyframes +// keyframes are stored on the SerializedStyles object as a linked list -})); +var cursor; +var serializeStyles = function serializeStyles(args, registered, mergedProps) { + if (args.length === 1 && typeof args[0] === 'object' && args[0] !== null && args[0].styles !== undefined) { + return args[0]; + } -/***/ }), -/* 79 */ -/*!*******************************************!*\ - !*** ./node_modules/get-size/get-size.js ***! - \*******************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { + var stringMode = true; + var styles = ''; + cursor = undefined; + var strings = args[0]; -var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! - * getSize v2.0.3 - * measure size of elements - * MIT license - */ + if (strings == null || strings.raw === undefined) { + stringMode = false; + styles += handleInterpolation(mergedProps, registered, strings, false); + } else { + if (process.env.NODE_ENV !== 'production' && strings[0] === undefined) { + console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR); + } -/* jshint browser: true, strict: true, undef: true, unused: true */ -/* globals console: false */ + styles += strings[0]; + } // we start at 1 since we've already handled the first arg -( function( window, factory ) { - /* jshint strict: false */ /* globals define, module */ - if ( true ) { - // AMD - !(__WEBPACK_AMD_DEFINE_FACTORY__ = (factory), - __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? - (__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) : - __WEBPACK_AMD_DEFINE_FACTORY__), - __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else if ( typeof module == 'object' && module.exports ) { - // CommonJS - module.exports = factory(); - } else { - // browser global - window.getSize = factory(); - } -})( window, function factory() { -'use strict'; + for (var i = 1; i < args.length; i++) { + styles += handleInterpolation(mergedProps, registered, args[i], styles.charCodeAt(styles.length - 1) === 46); -// -------------------------- helpers -------------------------- // + if (stringMode) { + if (process.env.NODE_ENV !== 'production' && strings[i] === undefined) { + console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR); + } -// get a number from a string, not a percentage -function getStyleSize( value ) { - var num = parseFloat( value ); - // not a percent like '100%', and a number - var isValid = value.indexOf('%') == -1 && !isNaN( num ); - return isValid && num; -} + styles += strings[i]; + } + } -function noop() {} + var sourceMap; -var logError = typeof console == 'undefined' ? noop : - function( message ) { - console.error( message ); - }; + if (process.env.NODE_ENV !== 'production') { + styles = styles.replace(sourceMapPattern, function (match) { + sourceMap = match; + return ''; + }); + } // using a global regex with .exec is stateful so lastIndex has to be reset each time -// -------------------------- measurements -------------------------- // -var measurements = [ - 'paddingLeft', - 'paddingRight', - 'paddingTop', - 'paddingBottom', - 'marginLeft', - 'marginRight', - 'marginTop', - 'marginBottom', - 'borderLeftWidth', - 'borderRightWidth', - 'borderTopWidth', - 'borderBottomWidth' -]; + labelPattern.lastIndex = 0; + var identifierName = ''; + var match; // https://esbench.com/bench/5b809c2cf2949800a0f61fb5 -var measurementsLength = measurements.length; + while ((match = labelPattern.exec(styles)) !== null) { + identifierName += '-' + // $FlowFixMe we know it's not null + match[1]; + } -function getZeroSize() { - var size = { - width: 0, - height: 0, - innerWidth: 0, - innerHeight: 0, - outerWidth: 0, - outerHeight: 0 - }; - for ( var i=0; i < measurementsLength; i++ ) { - var measurement = measurements[i]; - size[ measurement ] = 0; - } - return size; -} + var name = Object(__WEBPACK_IMPORTED_MODULE_0__emotion_hash__["a" /* default */])(styles) + identifierName; -// -------------------------- getStyle -------------------------- // - -/** - * getStyle, get style of element, check for Firefox bug - * https://bugzilla.mozilla.org/show_bug.cgi?id=548397 - */ -function getStyle( elem ) { - var style = getComputedStyle( elem ); - if ( !style ) { - logError( 'Style returned ' + style + - '. Are you running this code in a hidden iframe on Firefox? ' + - 'See https://bit.ly/getsizebug1' ); + if (process.env.NODE_ENV !== 'production') { + // $FlowFixMe SerializedStyles type doesn't have toString property (and we don't want to add it) + return { + name: name, + styles: styles, + map: sourceMap, + next: cursor, + toString: function toString() { + return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; + } + }; } - return style; -} - -// -------------------------- setup -------------------------- // - -var isSetup = false; -var isBoxSizeOuter; + return { + name: name, + styles: styles, + next: cursor + }; +}; -/** - * setup - * check isBoxSizerOuter - * do on first getSize() rather than on page load for Firefox bug - */ -function setup() { - // setup once - if ( isSetup ) { - return; - } - isSetup = true; - // -------------------------- box sizing -------------------------- // - /** - * Chrome & Safari measure the outer-width on style.width on border-box elems - * IE11 & Firefox<29 measures the inner-width - */ - var div = document.createElement('div'); - div.style.width = '200px'; - div.style.padding = '1px 2px 3px 4px'; - div.style.borderStyle = 'solid'; - div.style.borderWidth = '1px 2px 3px 4px'; - div.style.boxSizing = 'border-box'; +/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(/*! ./../../../process/browser.js */ 6))) - var body = document.body || document.documentElement; - body.appendChild( div ); - var style = getStyle( div ); - // round value for browser zoom. desandro/masonry#928 - isBoxSizeOuter = Math.round( getStyleSize( style.width ) ) == 200; - getSize.isBoxSizeOuter = isBoxSizeOuter; +/***/ }), +/* 90 */ +/*!******************************************************************************************************!*\ + !*** ./node_modules/react-select/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js ***! + \******************************************************************************************************/ +/*! exports provided: default */ +/*! exports used: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { - body.removeChild( div ); -} +"use strict"; +/* harmony export (immutable) */ __webpack_exports__["a"] = _objectWithoutProperties; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__objectWithoutPropertiesLoose_js__ = __webpack_require__(/*! ./objectWithoutPropertiesLoose.js */ 359); -// -------------------------- getSize -------------------------- // +function _objectWithoutProperties(source, excluded) { + if (source == null) return {}; + var target = Object(__WEBPACK_IMPORTED_MODULE_0__objectWithoutPropertiesLoose_js__["a" /* default */])(source, excluded); + var key, i; -function getSize( elem ) { - setup(); + if (Object.getOwnPropertySymbols) { + var sourceSymbolKeys = Object.getOwnPropertySymbols(source); - // use querySeletor if elem is string - if ( typeof elem == 'string' ) { - elem = document.querySelector( elem ); + for (i = 0; i < sourceSymbolKeys.length; i++) { + key = sourceSymbolKeys[i]; + if (excluded.indexOf(key) >= 0) continue; + if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; + target[key] = source[key]; + } } - // do not proceed on non-objects - if ( !elem || typeof elem != 'object' || !elem.nodeType ) { - return; - } + return target; +} - var style = getStyle( elem ); +/***/ }), +/* 91 */ +/*!**************************************************************************************!*\ + !*** ./node_modules/react-select/node_modules/@babel/runtime/helpers/esm/extends.js ***! + \**************************************************************************************/ +/*! exports provided: default */ +/*! exports used: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { - // if hidden, everything is 0 - if ( style.display == 'none' ) { - return getZeroSize(); - } +"use strict"; +/* harmony export (immutable) */ __webpack_exports__["a"] = _extends; +function _extends() { + _extends = Object.assign || function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; - var size = {}; - size.width = elem.offsetWidth; - size.height = elem.offsetHeight; + for (var key in source) { + if (Object.prototype.hasOwnProperty.call(source, key)) { + target[key] = source[key]; + } + } + } - var isBorderBox = size.isBorderBox = style.boxSizing == 'border-box'; + return target; + }; - // get all measurements - for ( var i=0; i < measurementsLength; i++ ) { - var measurement = measurements[i]; - var value = style[ measurement ]; - var num = parseFloat( value ); - // any 'auto', 'medium' value will be 0 - size[ measurement ] = !isNaN( num ) ? num : 0; - } + return _extends.apply(this, arguments); +} - var paddingWidth = size.paddingLeft + size.paddingRight; - var paddingHeight = size.paddingTop + size.paddingBottom; - var marginWidth = size.marginLeft + size.marginRight; - var marginHeight = size.marginTop + size.marginBottom; - var borderWidth = size.borderLeftWidth + size.borderRightWidth; - var borderHeight = size.borderTopWidth + size.borderBottomWidth; +/***/ }), +/* 92 */ +/*!*******************************************!*\ + !*** ./node_modules/lodash/_baseSlice.js ***! + \*******************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports) { - var isBorderBoxSizeOuter = isBorderBox && isBoxSizeOuter; +/** + * The base implementation of `_.slice` without an iteratee call guard. + * + * @private + * @param {Array} array The array to slice. + * @param {number} [start=0] The start position. + * @param {number} [end=array.length] The end position. + * @returns {Array} Returns the slice of `array`. + */ +function baseSlice(array, start, end) { + var index = -1, + length = array.length; - // overwrite width and height if we can get it from style - var styleWidth = getStyleSize( style.width ); - if ( styleWidth !== false ) { - size.width = styleWidth + - // add padding and border unless it's already including it - ( isBorderBoxSizeOuter ? 0 : paddingWidth + borderWidth ); + if (start < 0) { + start = -start > length ? 0 : (length + start); } - - var styleHeight = getStyleSize( style.height ); - if ( styleHeight !== false ) { - size.height = styleHeight + - // add padding and border unless it's already including it - ( isBorderBoxSizeOuter ? 0 : paddingHeight + borderHeight ); + end = end > length ? length : end; + if (end < 0) { + end += length; } + length = start > end ? 0 : ((end - start) >>> 0); + start >>>= 0; - size.innerWidth = size.width - ( paddingWidth + borderWidth ); - size.innerHeight = size.height - ( paddingHeight + borderHeight ); - - size.outerWidth = size.width + marginWidth; - size.outerHeight = size.height + marginHeight; - - return size; + var result = Array(length); + while (++index < length) { + result[index] = array[index + start]; + } + return result; } -return getSize; - -}); +module.exports = baseSlice; /***/ }), -/* 80 */ -/*!**********************************************!*\ - !*** ./node_modules/lodash/_getPrototype.js ***! - \**********************************************/ -/*! no static exports found */ +/* 93 */ +/*!********************************************!*\ + !*** ./node_modules/lodash/_hasUnicode.js ***! + \********************************************/ +/*! dynamic exports provided */ /*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { - -var overArg = __webpack_require__(/*! ./_overArg */ 124); - -/** Built-in value references. */ -var getPrototype = overArg(Object.getPrototypeOf, Object); - -module.exports = getPrototype; +/***/ (function(module, exports) { +/** Used to compose unicode character classes. */ +var rsAstralRange = '\\ud800-\\udfff', + rsComboMarksRange = '\\u0300-\\u036f', + reComboHalfMarksRange = '\\ufe20-\\ufe2f', + rsComboSymbolsRange = '\\u20d0-\\u20ff', + rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange, + rsVarRange = '\\ufe0e\\ufe0f'; -/***/ }), -/* 81 */ -/*!**********************************************!*\ - !*** ./node_modules/lodash/_getAllKeysIn.js ***! - \**********************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { +/** Used to compose unicode capture groups. */ +var rsZWJ = '\\u200d'; -var baseGetAllKeys = __webpack_require__(/*! ./_baseGetAllKeys */ 119), - getSymbolsIn = __webpack_require__(/*! ./_getSymbolsIn */ 149), - keysIn = __webpack_require__(/*! ./keysIn */ 148); +/** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */ +var reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + ']'); /** - * Creates an array of own and inherited enumerable property names and - * symbols of `object`. + * Checks if `string` contains Unicode symbols. * * @private - * @param {Object} object The object to query. - * @returns {Array} Returns the array of property names and symbols. + * @param {string} string The string to inspect. + * @returns {boolean} Returns `true` if a symbol is found, else `false`. */ -function getAllKeysIn(object) { - return baseGetAllKeys(object, keysIn, getSymbolsIn); +function hasUnicode(string) { + return reHasUnicode.test(string); } -module.exports = getAllKeysIn; +module.exports = hasUnicode; /***/ }), -/* 82 */ -/*!**************************************************!*\ - !*** ./node_modules/lodash/_cloneArrayBuffer.js ***! - \**************************************************/ -/*! no static exports found */ +/* 94 */ +/*!******************************************!*\ + !*** ./node_modules/lodash/toInteger.js ***! + \******************************************/ +/*! dynamic exports provided */ /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { -var Uint8Array = __webpack_require__(/*! ./_Uint8Array */ 117); +var toFinite = __webpack_require__(/*! ./toFinite */ 396); /** - * Creates a clone of `arrayBuffer`. + * Converts `value` to an integer. * - * @private - * @param {ArrayBuffer} arrayBuffer The array buffer to clone. - * @returns {ArrayBuffer} Returns the cloned array buffer. + * **Note:** This method is loosely based on + * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to convert. + * @returns {number} Returns the converted integer. + * @example + * + * _.toInteger(3.2); + * // => 3 + * + * _.toInteger(Number.MIN_VALUE); + * // => 0 + * + * _.toInteger(Infinity); + * // => 1.7976931348623157e+308 + * + * _.toInteger('3.2'); + * // => 3 */ -function cloneArrayBuffer(arrayBuffer) { - var result = new arrayBuffer.constructor(arrayBuffer.byteLength); - new Uint8Array(result).set(new Uint8Array(arrayBuffer)); - return result; +function toInteger(value) { + var result = toFinite(value), + remainder = result % 1; + + return result === result ? (remainder ? result - remainder : result) : 0; } -module.exports = cloneArrayBuffer; +module.exports = toInteger; /***/ }), -/* 83 */ -/*!***************************************************!*\ - !*** ./src/components/gradient-settings/index.js ***! - \***************************************************/ +/* 95 */ +/*!************************************!*\ + !*** ./src/blocks/post/styling.js ***! + \************************************/ /*! exports provided: default */ /*! exports used: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_hexToRgba__ = __webpack_require__(/*! ../../../dist/blocks/uagb-controls/hexToRgba */ 84); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSS__ = __webpack_require__(/*! ../../../dist/blocks/uagb-controls/generateCSS */ 4); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__ = __webpack_require__(/*! ../../../dist/blocks/uagb-controls/generateCSSUnit */ 3); +/** + * Set inline styles. + * @param {object} props - The block object. + * @return {object} The inline background type CSS. + */ -var __ = wp.i18n.__; -var __experimentalPanelColorGradientSettings = wp.blockEditor.__experimentalPanelColorGradientSettings; -function GradientSettings(_ref) { - var attributes = _ref.attributes, - setAttributes = _ref.setAttributes; - var gradientValue = attributes.gradientValue, - gradientAngle = attributes.gradientAngle, - gradientColor1 = attributes.gradientColor1, - gradientColor2 = attributes.gradientColor2, - gradientLocation1 = attributes.gradientLocation1, - gradientLocation2 = attributes.gradientLocation2, - gradientPosition = attributes.gradientPosition, - gradientType = attributes.gradientType; - //set the gradient value to settings if new gradientvalue is not set +function styling(props) { + var _props$attributes = props.attributes, + align = _props$attributes.align, + rowGap = _props$attributes.rowGap, + columnGap = _props$attributes.columnGap, + bgColor = _props$attributes.bgColor, + contentPadding = _props$attributes.contentPadding, + contentPaddingMobile = _props$attributes.contentPaddingMobile, + titleColor = _props$attributes.titleColor, + titleFontSize = _props$attributes.titleFontSize, + titleFontSizeType = _props$attributes.titleFontSizeType, + titleFontSizeMobile = _props$attributes.titleFontSizeMobile, + titleFontSizeTablet = _props$attributes.titleFontSizeTablet, + titleFontFamily = _props$attributes.titleFontFamily, + titleFontWeight = _props$attributes.titleFontWeight, + titleLineHeightType = _props$attributes.titleLineHeightType, + titleLineHeight = _props$attributes.titleLineHeight, + titleLineHeightTablet = _props$attributes.titleLineHeightTablet, + titleLineHeightMobile = _props$attributes.titleLineHeightMobile, + metaFontSize = _props$attributes.metaFontSize, + metaFontSizeType = _props$attributes.metaFontSizeType, + metaFontSizeMobile = _props$attributes.metaFontSizeMobile, + metaFontSizeTablet = _props$attributes.metaFontSizeTablet, + metaFontFamily = _props$attributes.metaFontFamily, + metaFontWeight = _props$attributes.metaFontWeight, + metaLineHeightType = _props$attributes.metaLineHeightType, + metaLineHeight = _props$attributes.metaLineHeight, + metaLineHeightTablet = _props$attributes.metaLineHeightTablet, + metaLineHeightMobile = _props$attributes.metaLineHeightMobile, + excerptFontSize = _props$attributes.excerptFontSize, + excerptFontSizeType = _props$attributes.excerptFontSizeType, + excerptFontSizeTablet = _props$attributes.excerptFontSizeTablet, + excerptFontSizeMobile = _props$attributes.excerptFontSizeMobile, + excerptFontFamily = _props$attributes.excerptFontFamily, + excerptFontWeight = _props$attributes.excerptFontWeight, + excerptLineHeightType = _props$attributes.excerptLineHeightType, + excerptLineHeight = _props$attributes.excerptLineHeight, + excerptLineHeightTablet = _props$attributes.excerptLineHeightTablet, + excerptLineHeightMobile = _props$attributes.excerptLineHeightMobile, + ctaFontSize = _props$attributes.ctaFontSize, + ctaFontSizeType = _props$attributes.ctaFontSizeType, + ctaFontSizeTablet = _props$attributes.ctaFontSizeTablet, + ctaFontSizeMobile = _props$attributes.ctaFontSizeMobile, + ctaFontFamily = _props$attributes.ctaFontFamily, + ctaFontWeight = _props$attributes.ctaFontWeight, + ctaLineHeightType = _props$attributes.ctaLineHeightType, + ctaLineHeight = _props$attributes.ctaLineHeight, + ctaLineHeightTablet = _props$attributes.ctaLineHeightTablet, + ctaLineHeightMobile = _props$attributes.ctaLineHeightMobile, + metaColor = _props$attributes.metaColor, + excerptColor = _props$attributes.excerptColor, + ctaColor = _props$attributes.ctaColor, + ctaBgColor = _props$attributes.ctaBgColor, + ctaHColor = _props$attributes.ctaHColor, + ctaBgHColor = _props$attributes.ctaBgHColor, + titleBottomSpace = _props$attributes.titleBottomSpace, + ctaBottomSpace = _props$attributes.ctaBottomSpace, + imageBottomSpace = _props$attributes.imageBottomSpace, + metaBottomSpace = _props$attributes.metaBottomSpace, + excerptBottomSpace = _props$attributes.excerptBottomSpace, + overlayOpacity = _props$attributes.overlayOpacity, + bgOverlayColor = _props$attributes.bgOverlayColor, + borderWidth = _props$attributes.borderWidth, + borderStyle = _props$attributes.borderStyle, + borderColor = _props$attributes.borderColor, + borderHColor = _props$attributes.borderHColor, + borderRadius = _props$attributes.borderRadius, + btnVPadding = _props$attributes.btnVPadding, + btnHPadding = _props$attributes.btnHPadding, + linkBox = _props$attributes.linkBox, + arrowColor = _props$attributes.arrowColor, + arrowSize = _props$attributes.arrowSize, + paginationBgActiveColor = _props$attributes.paginationBgActiveColor, + paginationActiveColor = _props$attributes.paginationActiveColor, + paginationBgColor = _props$attributes.paginationBgColor, + paginationColor = _props$attributes.paginationColor, + paginationLayout = _props$attributes.paginationLayout, + paginationBorderSize = _props$attributes.paginationBorderSize, + paginationBorderRadius = _props$attributes.paginationBorderRadius, + paginationBorderColor = _props$attributes.paginationBorderColor, + paginationBorderActiveColor = _props$attributes.paginationBorderActiveColor, + paginationSpacing = _props$attributes.paginationSpacing, + paginationAlignment = _props$attributes.paginationAlignment, + inheritFromTheme = _props$attributes.inheritFromTheme, + postPagination = _props$attributes.postPagination, + paginationMarkup = _props$attributes.paginationMarkup, + paginationType = _props$attributes.paginationType, + paginationEventType = _props$attributes.paginationEventType, + paginationAlign = _props$attributes.paginationAlign, + paginationTextColor = _props$attributes.paginationTextColor, + paginationMasonryBgColor = _props$attributes.paginationMasonryBgColor, + paginationMasonryBorderStyle = _props$attributes.paginationMasonryBorderStyle, + paginationMasonryBorderWidth = _props$attributes.paginationMasonryBorderWidth, + paginationMasonryBorderRadius = _props$attributes.paginationMasonryBorderRadius, + paginationMasonryBorderColor = _props$attributes.paginationMasonryBorderColor, + paginationTextHoverColor = _props$attributes.paginationTextHoverColor, + paginationBgHoverColor = _props$attributes.paginationBgHoverColor, + paginationFontSize = _props$attributes.paginationFontSize, + loaderColor = _props$attributes.loaderColor, + loaderSize = _props$attributes.loaderSize, + paginationButtonPaddingType = _props$attributes.paginationButtonPaddingType, + vpaginationButtonPaddingMobile = _props$attributes.vpaginationButtonPaddingMobile, + vpaginationButtonPaddingTablet = _props$attributes.vpaginationButtonPaddingTablet, + vpaginationButtonPaddingDesktop = _props$attributes.vpaginationButtonPaddingDesktop, + hpaginationButtonPaddingMobile = _props$attributes.hpaginationButtonPaddingMobile, + hpaginationButtonPaddingTablet = _props$attributes.hpaginationButtonPaddingTablet, + hpaginationButtonPaddingDesktop = _props$attributes.hpaginationButtonPaddingDesktop, + imgPosition = _props$attributes.imgPosition; - if ("" === gradientValue) { - var rgb_gradientColor1 = __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_hexToRgba__["a" /* default */](gradientColor1); - var rgb_gradientColor2 = __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_hexToRgba__["a" /* default */](gradientColor2); - if ("linear" === gradientType) { - var value = "linear-gradient(" + gradientAngle + "deg," + rgb_gradientColor1 + " " + gradientLocation1 + "%, " + rgb_gradientColor2 + " " + gradientLocation2 + "%)"; - setAttributes({ gradientValue: value }); - } else { - var value = "radial-gradient(at " + gradientPosition + ", " + rgb_gradientColor1 + " " + gradientLocation1 + "%, " + rgb_gradientColor2 + " " + gradientLocation2 + "%)"; - setAttributes({ gradientValue: value }); - } - } + var mobile_selectors = {}; + var tablet_selectors = {}; - var onGradientChange = function onGradientChange(value) { - setAttributes({ gradientValue: value }); - setAttributes({ gradientAngle: "", gradientColor1: "", gradientColor2: "", gradientLocation1: "", gradientLocation2: "" }); + var selectors = { + " .uagb-post__items": { + "margin-right": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(-rowGap / 2, "px"), + "margin-left": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(-rowGap / 2, "px") + }, + " .uagb-post__items article": { + "padding-right": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(rowGap / 2, "px"), + "padding-left": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(rowGap / 2, "px"), + "margin-bottom": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(columnGap, "px") + }, + " .uagb-post__inner-wrap": { + "background": bgColor, + "padding": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(contentPadding, "px"), + "text-align": align + }, + " .uagb-post__inner-wrap .uagb-post__cta": { + "margin-bottom": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaBottomSpace, "px") + }, + " .uagb-post__inner-wrap .uagb-post__image": { + "margin-bottom": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(imageBottomSpace, "px") + }, + " .uagb-post__inner-wrap .uagb-post__title": { + "margin-bottom": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(titleBottomSpace, "px") + }, + " .uagb-post__inner-wrap .uagb-post-grid-byline": { + "margin-bottom": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(metaBottomSpace, "px") + }, + " .uagb-post__inner-wrap .uagb-post__excerpt": { + "margin-bottom": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(excerptBottomSpace, "px") + }, + " .uagb-post__image:before": { + "background-color": bgOverlayColor, + "opacity": overlayOpacity / 100 + }, + " .uagb-post-pagination-wrap": { + "margin-top": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(paginationSpacing, "px"), + "text-align": paginationAlignment + } }; + if (imgPosition !== 'background') { + selectors[" .uagb-post__inner-wrap > .uagb-post__image:first-child"] = { + "margin-top": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(-contentPadding, "px"), + "margin-left": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(-contentPadding, "px"), + "margin-right": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(-contentPadding, "px") + }; + } + if (!inheritFromTheme) { + selectors[" .uagb-post__title"] = { + "color": titleColor, + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(titleFontSize, titleFontSizeType), + "font-family": titleFontFamily, + "font-weight": titleFontWeight, + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(titleLineHeight, titleLineHeightType) + }; + selectors[" .uagb-post__title a"] = { + "color": titleColor, + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(titleFontSize, titleFontSizeType), + "font-family": titleFontFamily, + "font-weight": titleFontWeight, + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(titleLineHeight, titleLineHeightType) + }; + selectors[" .uagb-post-grid-byline"] = { + "color": metaColor, + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(metaFontSize, metaFontSizeType), + "font-family": metaFontFamily, + "font-weight": metaFontWeight, + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(metaLineHeight, metaLineHeightType) + }; + selectors[" .uagb-post-grid-byline .uagb-post__author"] = { + "color": metaColor, + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(metaFontSize, metaFontSizeType), + "font-family": metaFontFamily, + "font-weight": metaFontWeight, + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(metaLineHeight, metaLineHeightType) + }; + selectors[" .uagb-post-grid-byline .uagb-post__author a"] = { + "color": metaColor, + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(metaFontSize, metaFontSizeType), + "font-family": metaFontFamily, + "font-weight": metaFontWeight, + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(metaLineHeight, metaLineHeightType) + }; + selectors[" .uagb-post__excerpt"] = { + "color": excerptColor, + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(excerptFontSize, excerptFontSizeType), + "font-family": excerptFontFamily, + "font-weight": excerptFontWeight, + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(excerptLineHeight, excerptLineHeightType) + }; + selectors[" .uagb-post__cta"] = { + "color": ctaColor, + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSize, ctaFontSizeType), + "font-family": ctaFontFamily, + "font-weight": ctaFontWeight, + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaLineHeight, ctaLineHeightType), + "background": ctaBgColor, + "border-width": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(borderWidth, "px"), + "border-radius": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(borderRadius, "px"), + "border-color": borderColor, + "border-style": borderStyle + }; + selectors[" .uagb-post__cta a"] = { + "color": ctaColor, + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSize, ctaFontSizeType), + "padding": btnVPadding + "px " + btnHPadding + "px" + }; + selectors[" .uagb-post__cta:hover"] = { + "color": ctaHColor, + "background": ctaBgHColor, + "border-color": borderHColor + }; + selectors[" .uagb-post__cta:hover a"] = { + "color": ctaHColor + }; + } - return wp.element.createElement(__experimentalPanelColorGradientSettings, { - title: __("Color Settings"), - initialOpen: true, - settings: [{ - label: __("Overlay Color"), - gradientValue: gradientValue, - onGradientChange: onGradientChange - }] - }); -} + if (true === postPagination) { + if ('filled' == paginationLayout) { + selectors[" .uagb-post-pagination-wrap a"] = { -/* harmony default export */ __webpack_exports__["a"] = (GradientSettings); + "background-color": paginationBgColor, + "color": paginationColor + }; + if ('undefined' == typeof paginationBgActiveColor && 'undefined' == typeof paginationActiveColor) { -/***/ }), -/* 84 */ -/*!************************************************!*\ - !*** ./dist/blocks/uagb-controls/hexToRgba.js ***! - \************************************************/ -/*! exports provided: default */ -/*! exports used: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { + selectors[" .uagb-post-pagination-wrap .page-numbers.current"] = { -"use strict"; -/** - * Get HEX color and return RGBA. Default return RGB color. - * @param {string} color - The color string. - * @return {boolean} opacity The inline CSS class. - */ - -function hexToRgba(color, opacity) { - - if (undefined == color) { - return ""; - } - - if (undefined == opacity || "" == opacity) { - opacity = 100; - } - - color = color.replace("#", ""); + "background-color": paginationBgColor, + "color": paginationColor + }; + } + if ('undefined' == typeof paginationBgActiveColor && 'undefined' != typeof paginationActiveColor) { - opacity = typeof opacity != "undefined" ? opacity / 100 : 1; + selectors[" .uagb-post-pagination-wrap .page-numbers.current"] = { - // Expand shorthand form (e.g. "03F") to full form (e.g. "0033FF") - var shorthandRegex = /^#?([a-f\d])([a-f\d])([a-f\d])$/i; - color = color.replace(shorthandRegex, function (m, r, g, b) { - return r + r + g + g + b + b; - }); + "background-color": paginationBgColor, + "color": paginationActiveColor + }; + } + if ('undefined' != typeof paginationBgActiveColor && 'undefined' == typeof paginationActiveColor) { - var result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(color); + selectors[" .uagb-post-pagination-wrap .page-numbers.current"] = { - var parsed_color = result ? { - r: parseInt(result[1], 16), - g: parseInt(result[2], 16), - b: parseInt(result[3], 16) - } : null; + "background-color": paginationBgActiveColor, + "color": paginationColor + }; + } + if ('undefined' != typeof paginationBgActiveColor && 'undefined' != typeof paginationActiveColor) { - return "rgba(" + parsed_color.r + "," + parsed_color.g + "," + parsed_color.b + "," + opacity + ")"; -} + selectors[" .uagb-post-pagination-wrap .page-numbers.current"] = { -/* harmony default export */ __webpack_exports__["a"] = (hexToRgba); + "background-color": paginationBgActiveColor, + "color": paginationActiveColor + }; + } + } + if ('border' == paginationLayout) { + selectors[" .uagb-post-pagination-wrap a"] = { + "border-style": "solid", + "border-width": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(paginationBorderSize, "px"), + "border-color": paginationBorderColor, + "border-radius": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(paginationBorderRadius, "px"), + "color": paginationColor, + "background-color": "transparent" + }; + if ('undefined' != typeof paginationBorderActiveColor && 'undefined' != typeof paginationActiveColor) { + selectors[" .uagb-post-pagination-wrap .page-numbers.current"] = { + "border-style": "solid", + "border-width": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(paginationBorderSize, "px"), + "border-color": paginationBorderActiveColor, + "border-radius": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(paginationBorderRadius, "px"), + "color": paginationActiveColor, + "background-color": "transparent" + }; + } + if ('undefined' == typeof paginationBorderActiveColor && 'undefined' != typeof paginationActiveColor) { + selectors[" .uagb-post-pagination-wrap .page-numbers.current"] = { + "border-style": "solid", + "border-width": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(paginationBorderSize, "px"), + "border-color": paginationBorderColor, + "border-radius": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(paginationBorderRadius, "px"), + "color": paginationActiveColor, + "background-color": "transparent" + }; + } + if ('undefined' != typeof paginationBorderActiveColor && 'undefined' == typeof paginationActiveColor) { + selectors[" .uagb-post-pagination-wrap .page-numbers.current"] = { + "border-style": "solid", + "border-width": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(paginationBorderSize, "px"), + "border-color": paginationBorderActiveColor, + "border-radius": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(paginationBorderRadius, "px"), + "color": paginationColor, + "background-color": "transparent" + }; + } + if ('undefined' == typeof paginationBorderActiveColor && 'undefined' == typeof paginationActiveColor) { + selectors[" .uagb-post-pagination-wrap .page-numbers.current"] = { + "border-style": "solid", + "border-width": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(paginationBorderSize, "px"), + "border-color": paginationBorderColor, + "border-radius": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(paginationBorderRadius, "px"), + "color": paginationColor, + "background-color": "transparent" + }; + } + } + } -/***/ }), -/* 85 */ -/*!**************************************************!*\ - !*** ./src/blocks/info-box/components/Prefix.js ***! - \**************************************************/ -/*! exports provided: default */ -/*! exports used: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { + if (linkBox) { + selectors[" .uagb-post__inner-wrap"]["cursor"] = "pointer"; + } -"use strict"; -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + selectors[" .slick-arrow svg"] = { + "fill": arrowColor, + "height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(arrowSize, "px"), + "width": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(arrowSize, "px") + }; -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + if (!inheritFromTheme) { -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + mobile_selectors = { + " .uagb-post__title": { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(titleFontSizeMobile, titleFontSizeType), + "line-height": titleLineHeightMobile + titleLineHeightType + }, + " .uagb-post__title a": { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(titleFontSizeMobile, titleFontSizeType), + "line-height": titleLineHeightMobile + titleLineHeightType + }, + " .uagb-post-grid-byline": { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(metaFontSizeMobile, metaFontSizeType), + "line-height": metaLineHeightMobile + metaLineHeightType + }, + " .uagb-post-grid-byline .uagb-post__author": { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(metaFontSizeMobile, metaFontSizeType), + "line-height": metaLineHeightMobile + metaLineHeightType + }, + " .uagb-post-grid-byline .uagb-post__author a": { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(metaFontSizeMobile, metaFontSizeType), + "line-height": metaLineHeightMobile + metaLineHeightType + }, + " .uagb-post__excerpt": { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(excerptFontSizeMobile, excerptFontSizeType), + "line-height": excerptLineHeightMobile + excerptLineHeightType + }, + " .uagb-post__cta": { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSizeMobile, ctaFontSizeType), + "line-height": ctaLineHeightMobile + ctaLineHeightType + }, + " .uagb-post__cta a": { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSizeMobile, ctaFontSizeType), + "line-height": ctaLineHeightMobile + ctaLineHeightType + } + }; -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + tablet_selectors = { + " .uagb-post__title": { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(titleFontSizeTablet, titleFontSizeType), + "line-height": titleLineHeightTablet + titleLineHeightType + }, + " .uagb-post__title a": { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(titleFontSizeTablet, titleFontSizeType), + "line-height": titleLineHeightTablet + titleLineHeightType + }, + " .uagb-post-grid-byline": { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(metaFontSizeTablet, metaFontSizeType), + "line-height": metaLineHeightTablet + metaLineHeightType + }, + " .uagb-post-grid-byline .uagb-post__author": { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(metaFontSizeTablet, metaFontSizeType), + "line-height": metaLineHeightTablet + metaLineHeightType + }, + " .uagb-post-grid-byline .uagb-post__author a": { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(metaFontSizeTablet, metaFontSizeType), + "line-height": metaLineHeightTablet + metaLineHeightType + }, + " .uagb-post__excerpt": { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(excerptFontSizeTablet, excerptFontSizeType), + "line-height": excerptLineHeightTablet + excerptLineHeightType + }, + " .uagb-post__cta": { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSizeTablet, ctaFontSizeType), + "line-height": ctaLineHeightTablet + ctaLineHeightType + }, + " .uagb-post__cta a": { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSizeTablet, ctaFontSizeType), + "line-height": ctaLineHeightTablet + ctaLineHeightType + } + }; + } -var RichText = wp.blockEditor.RichText; -var __ = wp.i18n.__; -var createBlock = wp.blocks.createBlock; + if ('infinite' === paginationType) { -var Prefix = function (_React$Component) { - _inherits(Prefix, _React$Component); + if ('button' === paginationEventType) { + selectors[' .uagb-post__load-more-wrap'] = { + 'text-align': paginationAlign + }; + selectors[' .uagb-post__load-more-wrap .uagb-post-pagination-button'] = { - function Prefix() { - _classCallCheck(this, Prefix); + 'color': paginationTextColor, + "background-color": paginationMasonryBgColor, + "border-style": paginationMasonryBorderStyle, + "border-width": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(paginationMasonryBorderWidth, 'px'), + "border-radius": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(paginationMasonryBorderRadius, 'px'), + "border-color": paginationMasonryBorderColor, + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(paginationFontSize, 'px'), + "padding-top": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(vpaginationButtonPaddingDesktop, paginationButtonPaddingType), + "padding-bottom": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(vpaginationButtonPaddingDesktop, paginationButtonPaddingType), + "padding-right": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(hpaginationButtonPaddingDesktop, paginationButtonPaddingType), + "padding-left": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(hpaginationButtonPaddingDesktop, paginationButtonPaddingType) - return _possibleConstructorReturn(this, (Prefix.__proto__ || Object.getPrototypeOf(Prefix)).apply(this, arguments)); + }; + selectors[' .uagb-post__load-more-wrap .uagb-post-pagination-button:hover'] = { + 'color': paginationTextHoverColor, + "background-color": paginationBgHoverColor + }; + mobile_selectors[' .uagb-post__load-more-wrap .uagb-post-pagination-button'] = { + "padding-top": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(vpaginationButtonPaddingMobile, paginationButtonPaddingType), + "padding-bottom": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(vpaginationButtonPaddingMobile, paginationButtonPaddingType), + "padding-right": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(hpaginationButtonPaddingMobile, paginationButtonPaddingType), + "padding-left": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(hpaginationButtonPaddingMobile, paginationButtonPaddingType) + }; + tablet_selectors[' .uagb-post__load-more-wrap .uagb-post-pagination-button'] = { + "padding-top": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(vpaginationButtonPaddingTablet, paginationButtonPaddingType), + "padding-bottom": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(vpaginationButtonPaddingTablet, paginationButtonPaddingType), + "padding-right": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(hpaginationButtonPaddingTablet, paginationButtonPaddingType), + "padding-left": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(hpaginationButtonPaddingTablet, paginationButtonPaddingType) + }; + } + if ('scroll' === paginationEventType) { + selectors['.uagb-post-grid .uagb-post-inf-loader div'] = { + "width": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(loaderSize, "px"), + "height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(loaderSize, "px"), + "background-color": loaderColor + }; + } } - _createClass(Prefix, [{ - key: "render", - value: function render() { + mobile_selectors[" .uagb-post__inner-wrap"] = { + "padding": contentPaddingMobile + "px" + }; + mobile_selectors[".uagb-post__inner-wrap > .uagb-post__image:first-child"] = { + "margin-top": -contentPadding + "px", + "margin-left": -contentPadding + "px", + "margin-right": -contentPadding + "px" + }; + var styling_css = ""; - //const { attributes, setAttributes } = this.props; + styling_css = Object(__WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSS__["a" /* default */])(selectors, ".uagb-block-" + props.clientId.substr(0, 8)); - var _props = this.props, - attributes = _props.attributes, - setAttributes = _props.setAttributes, - props = _props.props; + styling_css += Object(__WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSS__["a" /* default */])(tablet_selectors, ".uagb-block-" + props.clientId.substr(0, 8), true, "tablet"); + styling_css += Object(__WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSS__["a" /* default */])(mobile_selectors, ".uagb-block-" + props.clientId.substr(0, 8), true, "mobile"); - if (setAttributes !== "not_set") { - return wp.element.createElement(RichText, { - tagName: "div", - value: attributes.prefixTitle, - placeholder: __("Write a Prefix"), - className: "uagb-ifb-title-prefix", - multiline: false, - onChange: function onChange(value) { - setAttributes({ prefixTitle: value }); - }, - onMerge: props.mergeBlocks, - unstableOnSplit: props.insertBlocksAfter ? function (before, after) { - for (var _len = arguments.length, blocks = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { - blocks[_key - 2] = arguments[_key]; - } + return styling_css; +} - setAttributes({ content: before }); - props.insertBlocksAfter([].concat(blocks, [createBlock("core/paragraph", { content: after })])); - } : undefined, - onRemove: function onRemove() { - return props.onReplace([]); - } - }); - } else { - return wp.element.createElement(RichText.Content, { - tagName: "span", - value: attributes.prefixTitle, - className: "uagb-ifb-title-prefix" - }); - } - } - }]); +/* harmony default export */ __webpack_exports__["a"] = (styling); - return Prefix; -}(React.Component); +/***/ }), +/* 96 */ +/*!************************************!*\ + !*** ./src/blocks/post/style.scss ***! + \************************************/ +/*! dynamic exports provided */ +/***/ (function(module, exports) { -/* harmony default export */ __webpack_exports__["a"] = (Prefix); +// removed by extract-text-webpack-plugin /***/ }), -/* 86 */ -/*!*************************************************!*\ - !*** ./src/blocks/info-box/components/Title.js ***! - \*************************************************/ -/*! exports provided: default */ -/*! exports used: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { +/* 97 */ +/*!*************************************!*\ + !*** ./src/blocks/post/editor.scss ***! + \*************************************/ +/*! dynamic exports provided */ +/***/ (function(module, exports) { -"use strict"; -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); +// removed by extract-text-webpack-plugin -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } +/***/ }), +/* 98 */ +/*!***********************************************!*\ + !*** ./node_modules/ev-emitter/ev-emitter.js ***! + \***********************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } +var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;/** + * EvEmitter v1.1.0 + * Lil' event emitter + * MIT License + */ -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } +/* jshint unused: true, undef: true, strict: true */ -var RichText = wp.blockEditor.RichText; -var createBlock = wp.blocks.createBlock; -var __ = wp.i18n.__; +( function( global, factory ) { + // universal module definition + /* jshint strict: false */ /* globals define, module, window */ + if ( true ) { + // AMD - RequireJS + !(__WEBPACK_AMD_DEFINE_FACTORY__ = (factory), + __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? + (__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) : + __WEBPACK_AMD_DEFINE_FACTORY__), + __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); + } else if ( typeof module == 'object' && module.exports ) { + // CommonJS - Browserify, Webpack + module.exports = factory(); + } else { + // Browser globals + global.EvEmitter = factory(); + } -var Title = function (_React$Component) { - _inherits(Title, _React$Component); +}( typeof window != 'undefined' ? window : this, function() { - function Title() { - _classCallCheck(this, Title); +"use strict"; - return _possibleConstructorReturn(this, (Title.__proto__ || Object.getPrototypeOf(Title)).apply(this, arguments)); - } +function EvEmitter() {} - _createClass(Title, [{ - key: "render", - value: function render() { +var proto = EvEmitter.prototype; - //const { attributes, setAttributes , props } = this.props; - var _props = this.props, - attributes = _props.attributes, - setAttributes = _props.setAttributes, - props = _props.props; +proto.on = function( eventName, listener ) { + if ( !eventName || !listener ) { + return; + } + // set events hash + var events = this._events = this._events || {}; + // set listeners array + var listeners = events[ eventName ] = events[ eventName ] || []; + // only add once + if ( listeners.indexOf( listener ) == -1 ) { + listeners.push( listener ); + } + return this; +}; - if (setAttributes !== "not_set") { - return wp.element.createElement(RichText, { - tagName: attributes.headingTag, - placeholder: __("Write a Heading"), - value: attributes.infoBoxTitle, - className: "uagb-ifb-title", - onChange: function onChange(value) { - return setAttributes({ infoBoxTitle: value }); - }, - multiline: false, - onMerge: props.mergeBlocks, - unstableOnSplit: props.insertBlocksAfter ? function (before, after) { - for (var _len = arguments.length, blocks = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { - blocks[_key - 2] = arguments[_key]; - } +proto.once = function( eventName, listener ) { + if ( !eventName || !listener ) { + return; + } + // add event + this.on( eventName, listener ); + // set once flag + // set onceEvents hash + var onceEvents = this._onceEvents = this._onceEvents || {}; + // set onceListeners object + var onceListeners = onceEvents[ eventName ] = onceEvents[ eventName ] || {}; + // set flag + onceListeners[ listener ] = true; - setAttributes({ content: before }); - props.insertBlocksAfter([].concat(blocks, [createBlock("core/paragraph", { content: after })])); - } : undefined, - onRemove: function onRemove() { - return props.onReplace([]); - } - }); - } else { - return wp.element.createElement(RichText.Content, { - tagName: attributes.headingTag, - value: attributes.infoBoxTitle, - className: "uagb-ifb-title" - }); - } - } - }]); + return this; +}; - return Title; -}(React.Component); +proto.off = function( eventName, listener ) { + var listeners = this._events && this._events[ eventName ]; + if ( !listeners || !listeners.length ) { + return; + } + var index = listeners.indexOf( listener ); + if ( index != -1 ) { + listeners.splice( index, 1 ); + } -/* harmony default export */ __webpack_exports__["a"] = (Title); + return this; +}; -/***/ }), -/* 87 */ -/*!************************************************!*\ - !*** ./src/blocks/info-box/components/Icon.js ***! - \************************************************/ -/*! exports provided: default */ -/*! exports used: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { +proto.emitEvent = function( eventName, args ) { + var listeners = this._events && this._events[ eventName ]; + if ( !listeners || !listeners.length ) { + return; + } + // copy over to avoid interference if .off() in listener + listeners = listeners.slice(0); + args = args || []; + // once stuff + var onceListeners = this._onceEvents && this._onceEvents[ eventName ]; -"use strict"; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_renderIcon__ = __webpack_require__(/*! ../../../../dist/blocks/uagb-controls/renderIcon */ 2); -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + for ( var i=0; i < listeners.length; i++ ) { + var listener = listeners[i] + var isOnce = onceListeners && onceListeners[ listener ]; + if ( isOnce ) { + // remove listener + // remove before trigger to prevent recursion + this.off( eventName, listener ); + // unset once flag + delete onceListeners[ listener ]; + } + // trigger listener + listener.apply( this, args ); + } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + return this; +}; -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } +proto.allOff = function() { + delete this._events; + delete this._onceEvents; +}; -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } +return EvEmitter; +})); -var RichText = wp.blockEditor.RichText; -var __ = wp.i18n.__; +/***/ }), +/* 99 */ +/*!*******************************************!*\ + !*** ./node_modules/get-size/get-size.js ***! + \*******************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { -var Icon = function (_React$Component) { - _inherits(Icon, _React$Component); +var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! + * getSize v2.0.3 + * measure size of elements + * MIT license + */ - function Icon() { - _classCallCheck(this, Icon); +/* jshint browser: true, strict: true, undef: true, unused: true */ +/* globals console: false */ - return _possibleConstructorReturn(this, (Icon.__proto__ || Object.getPrototypeOf(Icon)).apply(this, arguments)); - } +( function( window, factory ) { + /* jshint strict: false */ /* globals define, module */ + if ( true ) { + // AMD + !(__WEBPACK_AMD_DEFINE_FACTORY__ = (factory), + __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? + (__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) : + __WEBPACK_AMD_DEFINE_FACTORY__), + __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); + } else if ( typeof module == 'object' && module.exports ) { + // CommonJS + module.exports = factory(); + } else { + // browser global + window.getSize = factory(); + } - _createClass(Icon, [{ - key: "render", - value: function render() { - var attributes = this.props.attributes; +})( window, function factory() { +'use strict'; +// -------------------------- helpers -------------------------- // - return wp.element.createElement( - "div", - { className: "uagb-ifb-image-icon-content uagb-ifb-imgicon-wrap" }, - wp.element.createElement( - "div", - { className: "uagb-ifb-icon-wrap" }, - wp.element.createElement( - "span", - { className: "uagb-ifb-icon" }, - __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_renderIcon__["a" /* default */](attributes.icon) - ) - ) - ); - } - }]); +// get a number from a string, not a percentage +function getStyleSize( value ) { + var num = parseFloat( value ); + // not a percent like '100%', and a number + var isValid = value.indexOf('%') == -1 && !isNaN( num ); + return isValid && num; +} - return Icon; -}(React.Component); +function noop() {} -/* harmony default export */ __webpack_exports__["a"] = (Icon); +var logError = typeof console == 'undefined' ? noop : + function( message ) { + console.error( message ); + }; -/***/ }), -/* 88 */ -/*!*******************************************************!*\ - !*** ./src/blocks/info-box/components/InfoBoxDesc.js ***! - \*******************************************************/ -/*! exports provided: default */ -/*! exports used: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { +// -------------------------- measurements -------------------------- // -"use strict"; -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); +var measurements = [ + 'paddingLeft', + 'paddingRight', + 'paddingTop', + 'paddingBottom', + 'marginLeft', + 'marginRight', + 'marginTop', + 'marginBottom', + 'borderLeftWidth', + 'borderRightWidth', + 'borderTopWidth', + 'borderBottomWidth' +]; -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } +var measurementsLength = measurements.length; -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } +function getZeroSize() { + var size = { + width: 0, + height: 0, + innerWidth: 0, + innerHeight: 0, + outerWidth: 0, + outerHeight: 0 + }; + for ( var i=0; i < measurementsLength; i++ ) { + var measurement = measurements[i]; + size[ measurement ] = 0; + } + return size; +} -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } +// -------------------------- getStyle -------------------------- // -var RichText = wp.blockEditor.RichText; -var __ = wp.i18n.__; -var createBlock = wp.blocks.createBlock; +/** + * getStyle, get style of element, check for Firefox bug + * https://bugzilla.mozilla.org/show_bug.cgi?id=548397 + */ +function getStyle( elem ) { + var style = getComputedStyle( elem ); + if ( !style ) { + logError( 'Style returned ' + style + + '. Are you running this code in a hidden iframe on Firefox? ' + + 'See https://bit.ly/getsizebug1' ); + } + return style; +} -var InfoBoxDesc = function (_React$Component) { - _inherits(InfoBoxDesc, _React$Component); +// -------------------------- setup -------------------------- // - function InfoBoxDesc() { - _classCallCheck(this, InfoBoxDesc); +var isSetup = false; - return _possibleConstructorReturn(this, (InfoBoxDesc.__proto__ || Object.getPrototypeOf(InfoBoxDesc)).apply(this, arguments)); - } +var isBoxSizeOuter; - _createClass(InfoBoxDesc, [{ - key: "render", - value: function render() { +/** + * setup + * check isBoxSizerOuter + * do on first getSize() rather than on page load for Firefox bug + */ +function setup() { + // setup once + if ( isSetup ) { + return; + } + isSetup = true; - //const { attributes, setAttributes } = this.props; - var _props = this.props, - attributes = _props.attributes, - setAttributes = _props.setAttributes, - props = _props.props; + // -------------------------- box sizing -------------------------- // + /** + * Chrome & Safari measure the outer-width on style.width on border-box elems + * IE11 & Firefox<29 measures the inner-width + */ + var div = document.createElement('div'); + div.style.width = '200px'; + div.style.padding = '1px 2px 3px 4px'; + div.style.borderStyle = 'solid'; + div.style.borderWidth = '1px 2px 3px 4px'; + div.style.boxSizing = 'border-box'; - if (setAttributes !== "not_set") { - return wp.element.createElement(RichText, { - tagName: "p", - value: attributes.headingDesc, - placeholder: __("Write a Description"), - className: "uagb-ifb-desc", - onChange: function onChange(value) { - return setAttributes({ headingDesc: value }); - }, - onMerge: props.mergeBlocks, - unstableOnSplit: props.insertBlocksAfter ? function (before, after) { - for (var _len = arguments.length, blocks = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { - blocks[_key - 2] = arguments[_key]; - } + var body = document.body || document.documentElement; + body.appendChild( div ); + var style = getStyle( div ); + // round value for browser zoom. desandro/masonry#928 + isBoxSizeOuter = Math.round( getStyleSize( style.width ) ) == 200; + getSize.isBoxSizeOuter = isBoxSizeOuter; - setAttributes({ content: before }); - props.insertBlocksAfter([].concat(blocks, [createBlock("core/paragraph", { content: after })])); - } : undefined, - onRemove: function onRemove() { - return props.onReplace([]); - } - }); - } else { - return wp.element.createElement(RichText.Content, { - tagName: "p", - value: attributes.headingDesc, - className: "uagb-ifb-desc" - }); - } - } - }]); + body.removeChild( div ); +} - return InfoBoxDesc; -}(React.Component); +// -------------------------- getSize -------------------------- // -/* harmony default export */ __webpack_exports__["a"] = (InfoBoxDesc); +function getSize( elem ) { + setup(); -/***/ }), -/* 89 */ -/*!****************************************!*\ - !*** ./src/blocks/info-box/classes.js ***! - \****************************************/ -/*! exports provided: default */ -/*! exports used: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { + // use querySeletor if elem is string + if ( typeof elem == 'string' ) { + elem = document.querySelector( elem ); + } -"use strict"; -/** - * Returns Dynamic Generated Classes - */ + // do not proceed on non-objects + if ( !elem || typeof elem != 'object' || !elem.nodeType ) { + return; + } -function InfoBoxPositionClasses(attributes) { + var style = getStyle( elem ); - var sourceClass = "uagb-infobox-has-image"; - if (attributes.source_type == "icon") { - sourceClass = "uagb-infobox-has-icon"; - } + // if hidden, everything is 0 + if ( style.display == 'none' ) { + return getZeroSize(); + } - var iconimgStyle_class = ""; + var size = {}; + size.width = elem.offsetWidth; + size.height = elem.offsetHeight; - iconimgStyle_class += "uagb-infobox" + " "; - iconimgStyle_class += sourceClass + " "; - iconimgStyle_class += "uagb-infobox-icon-" + attributes.iconimgPosition + " "; + var isBorderBox = size.isBorderBox = style.boxSizing == 'border-box'; - if (attributes.iconimgPosition === "left" || attributes.iconimgPosition === "left-title") { - iconimgStyle_class += "uagb-infobox-left" + " "; - } + // get all measurements + for ( var i=0; i < measurementsLength; i++ ) { + var measurement = measurements[i]; + var value = style[ measurement ]; + var num = parseFloat( value ); + // any 'auto', 'medium' value will be 0 + size[ measurement ] = !isNaN( num ) ? num : 0; + } - if (attributes.iconimgPosition === "right" || attributes.iconimgPosition === "right-title") { - iconimgStyle_class += "uagb-infobox-right" + " "; - } + var paddingWidth = size.paddingLeft + size.paddingRight; + var paddingHeight = size.paddingTop + size.paddingBottom; + var marginWidth = size.marginLeft + size.marginRight; + var marginHeight = size.marginTop + size.marginBottom; + var borderWidth = size.borderLeftWidth + size.borderRightWidth; + var borderHeight = size.borderTopWidth + size.borderBottomWidth; - if ((attributes.iconimgPosition === "left" || attributes.iconimgPosition === "right") && attributes.stack !== "none") { - iconimgStyle_class += "uagb-infobox-stacked-" + attributes.stack + " "; - if (attributes.iconimgPosition === "right") { - iconimgStyle_class += "uagb-infobox-reverse-order-" + attributes.stack + " "; - } - } + var isBorderBoxSizeOuter = isBorderBox && isBoxSizeOuter; - if (attributes.iconimgPosition !== "above-title" || attributes.iconimgPosition !== "below-title") { - iconimgStyle_class += "uagb-infobox-image-valign-" + attributes.sourceAlign + " "; - } + // overwrite width and height if we can get it from style + var styleWidth = getStyleSize( style.width ); + if ( styleWidth !== false ) { + size.width = styleWidth + + // add padding and border unless it's already including it + ( isBorderBoxSizeOuter ? 0 : paddingWidth + borderWidth ); + } - if (attributes.enableBorder) { - iconimgStyle_class += "uagb-infobox-enable-border" + " "; - } + var styleHeight = getStyleSize( style.height ); + if ( styleHeight !== false ) { + size.height = styleHeight + + // add padding and border unless it's already including it + ( isBorderBoxSizeOuter ? 0 : paddingHeight + borderHeight ); + } - iconimgStyle_class += "uagb-infobox-enable-border-radius" + " "; + size.innerWidth = size.width - ( paddingWidth + borderWidth ); + size.innerHeight = size.height - ( paddingHeight + borderHeight ); - return [iconimgStyle_class]; + size.outerWidth = size.width + marginWidth; + size.outerHeight = size.height + marginHeight; + + return size; } -/* harmony default export */ __webpack_exports__["a"] = (InfoBoxPositionClasses); +return getSize; + +}); + /***/ }), -/* 90 */ -/*!************************************************************!*\ - !*** ./src/blocks/info-box/components/InfoBoxSeparator.js ***! - \************************************************************/ -/*! exports provided: default */ -/*! exports used: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { +/* 100 */ +/*!**********************************************!*\ + !*** ./node_modules/lodash/_getPrototype.js ***! + \**********************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { -"use strict"; -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); +var overArg = __webpack_require__(/*! ./_overArg */ 160); -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } +/** Built-in value references. */ +var getPrototype = overArg(Object.getPrototypeOf, Object); -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } +module.exports = getPrototype; -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } -var InfoBoxSeparator = function (_React$Component) { - _inherits(InfoBoxSeparator, _React$Component); +/***/ }), +/* 101 */ +/*!**********************************************!*\ + !*** ./node_modules/lodash/_getAllKeysIn.js ***! + \**********************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { - function InfoBoxSeparator() { - _classCallCheck(this, InfoBoxSeparator); +var baseGetAllKeys = __webpack_require__(/*! ./_baseGetAllKeys */ 155), + getSymbolsIn = __webpack_require__(/*! ./_getSymbolsIn */ 197), + keysIn = __webpack_require__(/*! ./keysIn */ 196); - return _possibleConstructorReturn(this, (InfoBoxSeparator.__proto__ || Object.getPrototypeOf(InfoBoxSeparator)).apply(this, arguments)); - } +/** + * Creates an array of own and inherited enumerable property names and + * symbols of `object`. + * + * @private + * @param {Object} object The object to query. + * @returns {Array} Returns the array of property names and symbols. + */ +function getAllKeysIn(object) { + return baseGetAllKeys(object, keysIn, getSymbolsIn); +} - _createClass(InfoBoxSeparator, [{ - key: "render", - value: function render() { - var attributes = this.props.attributes; +module.exports = getAllKeysIn; - return wp.element.createElement( - "div", - { className: "uagb-ifb-separator-parent" }, - wp.element.createElement("div", { className: "uagb-ifb-separator" }) - ); - } - }]); +/***/ }), +/* 102 */ +/*!**************************************************!*\ + !*** ./node_modules/lodash/_cloneArrayBuffer.js ***! + \**************************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { - return InfoBoxSeparator; -}(React.Component); +var Uint8Array = __webpack_require__(/*! ./_Uint8Array */ 153); + +/** + * Creates a clone of `arrayBuffer`. + * + * @private + * @param {ArrayBuffer} arrayBuffer The array buffer to clone. + * @returns {ArrayBuffer} Returns the cloned array buffer. + */ +function cloneArrayBuffer(arrayBuffer) { + var result = new arrayBuffer.constructor(arrayBuffer.byteLength); + new Uint8Array(result).set(new Uint8Array(arrayBuffer)); + return result; +} + +module.exports = cloneArrayBuffer; -/* harmony default export */ __webpack_exports__["a"] = (InfoBoxSeparator); /***/ }), -/* 91 */ -/*!********************************************************!*\ - !*** ./src/blocks/info-box/components/CallToAction.js ***! - \********************************************************/ +/* 103 */ +/*!***************************************************!*\ + !*** ./src/components/gradient-settings/index.js ***! + \***************************************************/ /*! exports provided: default */ /*! exports used: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_classnames__ = __webpack_require__(/*! classnames */ 0); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_classnames__); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_renderIcon__ = __webpack_require__(/*! ../../../../dist/blocks/uagb-controls/renderIcon */ 2); -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_hexToRgba__ = __webpack_require__(/*! ../../../dist/blocks/uagb-controls/hexToRgba */ 104); -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } +var __ = wp.i18n.__; +var __experimentalPanelColorGradientSettings = wp.blockEditor.__experimentalPanelColorGradientSettings; -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } +function GradientSettings(_ref) { + var attributes = _ref.attributes, + setAttributes = _ref.setAttributes; + var gradientValue = attributes.gradientValue, + gradientAngle = attributes.gradientAngle, + gradientColor1 = attributes.gradientColor1, + gradientColor2 = attributes.gradientColor2, + gradientLocation1 = attributes.gradientLocation1, + gradientLocation2 = attributes.gradientLocation2, + gradientPosition = attributes.gradientPosition, + gradientType = attributes.gradientType; -var __ = wp.i18n.__; + //set the gradient value to settings if new gradientvalue is not set + if ("" === gradientValue) { + var rgb_gradientColor1 = Object(__WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_hexToRgba__["a" /* default */])(gradientColor1); + var rgb_gradientColor2 = Object(__WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_hexToRgba__["a" /* default */])(gradientColor2); + if ("linear" === gradientType) { + var value = "linear-gradient(" + gradientAngle + "deg," + rgb_gradientColor1 + " " + gradientLocation1 + "%, " + rgb_gradientColor2 + " " + gradientLocation2 + "%)"; + setAttributes({ gradientValue: value }); + } else { + var value = "radial-gradient(at " + gradientPosition + ", " + rgb_gradientColor1 + " " + gradientLocation1 + "%, " + rgb_gradientColor2 + " " + gradientLocation2 + "%)"; + setAttributes({ gradientValue: value }); + } + } + var onGradientChange = function onGradientChange(value) { + setAttributes({ gradientValue: value }); + setAttributes({ gradientAngle: "", gradientColor1: "", gradientColor2: "", gradientLocation1: "", gradientLocation2: "" }); + }; + return wp.element.createElement(__experimentalPanelColorGradientSettings, { + title: __("Color Settings", 'ultimate-addons-for-gutenberg'), + initialOpen: true, + settings: [{ + label: __("Overlay Color", 'ultimate-addons-for-gutenberg'), + gradientValue: gradientValue, + onGradientChange: onGradientChange + }] + }); +} -var InfoBoxCta = function (_React$Component) { - _inherits(InfoBoxCta, _React$Component); +/* harmony default export */ __webpack_exports__["a"] = (GradientSettings); - function InfoBoxCta() { - _classCallCheck(this, InfoBoxCta); +/***/ }), +/* 104 */ +/*!************************************************!*\ + !*** ./dist/blocks/uagb-controls/hexToRgba.js ***! + \************************************************/ +/*! exports provided: default */ +/*! exports used: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { - return _possibleConstructorReturn(this, (InfoBoxCta.__proto__ || Object.getPrototypeOf(InfoBoxCta)).apply(this, arguments)); - } +"use strict"; +/** + * Get HEX color and return RGBA. Default return RGB color. + * @param {string} color - The color string. + * @return {boolean} opacity The inline CSS class. + */ - _createClass(InfoBoxCta, [{ - key: "render", - value: function render() { - var _props = this.props, - attributes = _props.attributes, - _props$setAttributes = _props.setAttributes, - setAttributes = _props$setAttributes === undefined ? "not_set" : _props$setAttributes; +function hexToRgba(color, opacity) { + if (undefined == color) { + return ""; + } - var ctaBtnClass = "uagb-infobox-cta-link uagb-ifb-cta-button"; + if (undefined == opacity || "" == opacity) { + opacity = 100; + } - if (attributes.inheritFromTheme) { - ctaBtnClass = "wp-block-button__link"; - } + color = color.replace("#", ""); - var target = "_self"; - var rel = "noopener noreferrer"; - if (attributes.ctaTarget) { - target = "_blank"; - } + opacity = typeof opacity != "undefined" ? opacity / 100 : 1; - var cta_icon_output = ""; - if (attributes.ctaIcon !== "") { - cta_icon_output = wp.element.createElement( - "span", - { className: __WEBPACK_IMPORTED_MODULE_0_classnames___default.a("uagb-ifb-" + attributes.ctaType + "-icon", "uagb-ifb-align-icon-" + attributes.ctaIconPosition) }, - __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_renderIcon__["a" /* default */](attributes.ctaIcon) - ); - } + // Expand shorthand form (e.g. "03F") to full form (e.g. "0033FF") + var shorthandRegex = /^#?([a-f\d])([a-f\d])([a-f\d])$/i; + color = color.replace(shorthandRegex, function (m, r, g, b) { + return r + r + g + g + b + b; + }); - if (setAttributes !== "not_set") { + var result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(color); - return wp.element.createElement( - "div", - { className: "uagb-ifb-cta uagb-infobox-cta-link-style" }, - attributes.ctaType === "text" && wp.element.createElement( - "a", - { target: target, className: "uagb-infobox-cta-link", rel: rel }, - attributes.ctaIconPosition === "before" && cta_icon_output, - wp.element.createElement( - "span", - { className: "uagb-inline-editing" }, - attributes.ctaText - ), - attributes.ctaIconPosition === "after" && cta_icon_output - ), - attributes.ctaType === "button" && wp.element.createElement( - "div", - { className: __WEBPACK_IMPORTED_MODULE_0_classnames___default.a("uagb-ifb-button-wrapper", attributes.inheritFromTheme ? "wp-block-button" : null) }, - wp.element.createElement( - "a", - { className: ctaBtnClass, target: target, rel: rel }, - cta_icon_output, - wp.element.createElement( - "span", - { className: "uagb-ifb-cta-content-wrapper" }, - wp.element.createElement( - "span", - { className: "uagb-inline-editing " }, - attributes.ctaText - ) - ) - ) - ) - ); - } else { - return wp.element.createElement( - "div", - { className: "uagb-ifb-cta uagb-infobox-cta-link-style" }, - attributes.ctaType === "text" && wp.element.createElement( - "a", - { href: attributes.ctaLink, target: target, className: "uagb-infobox-cta-link", rel: rel }, - attributes.ctaIconPosition === "before" && cta_icon_output, - wp.element.createElement( - "span", - { className: "uagb-inline-editing" }, - attributes.ctaText - ), - attributes.ctaIconPosition === "after" && cta_icon_output - ), - attributes.ctaType === "button" && wp.element.createElement( - "div", - { className: __WEBPACK_IMPORTED_MODULE_0_classnames___default.a("uagb-ifb-button-wrapper", attributes.inheritFromTheme ? "wp-block-button" : null) }, - wp.element.createElement( - "a", - { href: attributes.ctaLink, className: ctaBtnClass, target: target, rel: rel }, - cta_icon_output, - wp.element.createElement( - "span", - { className: "uagb-ifb-cta-content-wrapper" }, - wp.element.createElement( - "span", - { className: "uagb-inline-editing " }, - attributes.ctaText - ) - ) - ) - ) - ); - } - } - }]); + var parsed_color = result ? { + r: parseInt(result[1], 16), + g: parseInt(result[2], 16), + b: parseInt(result[3], 16) + } : null; - return InfoBoxCta; -}(React.Component); + return "rgba(" + parsed_color.r + "," + parsed_color.g + "," + parsed_color.b + "," + opacity + ")"; +} -/* harmony default export */ __webpack_exports__["a"] = (InfoBoxCta); +/* harmony default export */ __webpack_exports__["a"] = (hexToRgba); /***/ }), -/* 92 */ -/*!*********************************************************!*\ - !*** ./src/blocks/testimonial/components/AuthorName.js ***! - \*********************************************************/ -/*! exports provided: default */ -/*! exports used: default */ +/* 105 */ +/*!***************************************************************!*\ + !*** ./node_modules/react-transition-group/esm/Transition.js ***! + \***************************************************************/ +/*! exports provided: UNMOUNTED, EXITED, ENTERING, ENTERED, EXITING, default */ +/*! exports used: ENTERED, ENTERING, EXITING, default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); +/* WEBPACK VAR INJECTION */(function(process) {/* unused harmony export UNMOUNTED */ +/* unused harmony export EXITED */ +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return ENTERING; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ENTERED; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return EXITING; }); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ 66); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_inheritsLoose__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inheritsLoose */ 43); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_prop_types__ = __webpack_require__(/*! prop-types */ 15); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_prop_types__); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react__ = __webpack_require__(/*! react */ 5); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_react__); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react_dom__ = __webpack_require__(/*! react-dom */ 33); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_react_dom__); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__config__ = __webpack_require__(/*! ./config */ 205); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__utils_PropTypes__ = __webpack_require__(/*! ./utils/PropTypes */ 206); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__TransitionGroupContext__ = __webpack_require__(/*! ./TransitionGroupContext */ 106); -function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } -var RichText = wp.blockEditor.RichText; -var __ = wp.i18n.__; -var createBlock = wp.blocks.createBlock; -var AuthorName = function (_React$Component) { - _inherits(AuthorName, _React$Component); - function AuthorName() { - _classCallCheck(this, AuthorName); - return _possibleConstructorReturn(this, (AuthorName.__proto__ || Object.getPrototypeOf(AuthorName)).apply(this, arguments)); - } +var UNMOUNTED = 'unmounted'; +var EXITED = 'exited'; +var ENTERING = 'entering'; +var ENTERED = 'entered'; +var EXITING = 'exiting'; +/** + * The Transition component lets you describe a transition from one component + * state to another _over time_ with a simple declarative API. Most commonly + * it's used to animate the mounting and unmounting of a component, but can also + * be used to describe in-place transition states as well. + * + * --- + * + * **Note**: `Transition` is a platform-agnostic base component. If you're using + * transitions in CSS, you'll probably want to use + * [`CSSTransition`](https://reactcommunity.org/react-transition-group/css-transition) + * instead. It inherits all the features of `Transition`, but contains + * additional features necessary to play nice with CSS transitions (hence the + * name of the component). + * + * --- + * + * By default the `Transition` component does not alter the behavior of the + * component it renders, it only tracks "enter" and "exit" states for the + * components. It's up to you to give meaning and effect to those states. For + * example we can add styles to a component when it enters or exits: + * + * ```jsx + * import { Transition } from 'react-transition-group'; + * + * const duration = 300; + * + * const defaultStyle = { + * transition: `opacity ${duration}ms ease-in-out`, + * opacity: 0, + * } + * + * const transitionStyles = { + * entering: { opacity: 1 }, + * entered: { opacity: 1 }, + * exiting: { opacity: 0 }, + * exited: { opacity: 0 }, + * }; + * + * const Fade = ({ in: inProp }) => ( + * + * {state => ( + *
    + * I'm a fade Transition! + *
    + * )} + *
    + * ); + * ``` + * + * There are 4 main states a Transition can be in: + * - `'entering'` + * - `'entered'` + * - `'exiting'` + * - `'exited'` + * + * Transition state is toggled via the `in` prop. When `true` the component + * begins the "Enter" stage. During this stage, the component will shift from + * its current transition state, to `'entering'` for the duration of the + * transition and then to the `'entered'` stage once it's complete. Let's take + * the following example (we'll use the + * [useState](https://reactjs.org/docs/hooks-reference.html#usestate) hook): + * + * ```jsx + * function App() { + * const [inProp, setInProp] = useState(false); + * return ( + *
    + * + * {state => ( + * // ... + * )} + * + * + *
    + * ); + * } + * ``` + * + * When the button is clicked the component will shift to the `'entering'` state + * and stay there for 500ms (the value of `timeout`) before it finally switches + * to `'entered'`. + * + * When `in` is `false` the same thing happens except the state moves from + * `'exiting'` to `'exited'`. + */ - _createClass(AuthorName, [{ - key: "render", - value: function render() { - var _props = this.props, - attributes = _props.attributes, - setAttributes = _props.setAttributes, - props = _props.props, - index_value = _props.index_value; +var Transition = /*#__PURE__*/function (_React$Component) { + Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_inheritsLoose__["a" /* default */])(Transition, _React$Component); + function Transition(props, context) { + var _this; - var test_arr = attributes.test_block[index_value]; - var author_name = ""; - if (test_arr && typeof test_arr !== "undefined") { - author_name = test_arr["name"]; - } + _this = _React$Component.call(this, props, context) || this; + var parentGroup = context; // In the context of a TransitionGroup all enters are really appears - var data_copy = [].concat(_toConsumableArray(attributes.test_block)); + var appear = parentGroup && !parentGroup.isMounting ? props.enter : props.appear; + var initialStatus; + _this.appearStatus = null; - if (setAttributes !== "not_set") { - return wp.element.createElement(RichText, { - tagName: "div", - value: author_name, - placeholder: __("Author Name"), - className: "uagb-tm__author-name", - onChange: function onChange(value) { - var new_content = { "description": data_copy[index_value]["description"], "name": value, "company": data_copy[index_value]["company"], "image": data_copy[index_value]["image"] }; - data_copy[index_value] = new_content; - setAttributes({ "test_block": data_copy }); - }, - onMerge: props.mergeBlocks, - unstableOnSplit: props.insertBlocksAfter ? function (before, after) { - for (var _len = arguments.length, blocks = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { - blocks[_key - 2] = arguments[_key]; - } + if (props.in) { + if (appear) { + initialStatus = EXITED; + _this.appearStatus = ENTERING; + } else { + initialStatus = ENTERED; + } + } else { + if (props.unmountOnExit || props.mountOnEnter) { + initialStatus = UNMOUNTED; + } else { + initialStatus = EXITED; + } + } - setAttributes({ content: before }); - props.insertBlocksAfter([].concat(blocks, [createBlock("core/paragraph", { content: after })])); - } : undefined, - onRemove: function onRemove() { - return props.onReplace([]); - } - }); - } else { - return wp.element.createElement(RichText.Content, { - tagName: "span", - value: author_name, - className: "uagb-tm__author-name" - }); - } - } - }]); + _this.state = { + status: initialStatus + }; + _this.nextCallback = null; + return _this; + } - return AuthorName; -}(React.Component); + Transition.getDerivedStateFromProps = function getDerivedStateFromProps(_ref, prevState) { + var nextIn = _ref.in; -/* harmony default export */ __webpack_exports__["a"] = (AuthorName); + if (nextIn && prevState.status === UNMOUNTED) { + return { + status: EXITED + }; + } -/***/ }), -/* 93 */ -/*!******************************************************!*\ - !*** ./src/blocks/testimonial/components/Company.js ***! - \******************************************************/ -/*! exports provided: default */ -/*! exports used: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { + return null; + } // getSnapshotBeforeUpdate(prevProps) { + // let nextStatus = null + // if (prevProps !== this.props) { + // const { status } = this.state + // if (this.props.in) { + // if (status !== ENTERING && status !== ENTERED) { + // nextStatus = ENTERING + // } + // } else { + // if (status === ENTERING || status === ENTERED) { + // nextStatus = EXITING + // } + // } + // } + // return { nextStatus } + // } + ; -"use strict"; -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + var _proto = Transition.prototype; -function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } + _proto.componentDidMount = function componentDidMount() { + this.updateStatus(true, this.appearStatus); + }; -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + _proto.componentDidUpdate = function componentDidUpdate(prevProps) { + var nextStatus = null; -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + if (prevProps !== this.props) { + var status = this.state.status; -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + if (this.props.in) { + if (status !== ENTERING && status !== ENTERED) { + nextStatus = ENTERING; + } + } else { + if (status === ENTERING || status === ENTERED) { + nextStatus = EXITING; + } + } + } -var RichText = wp.blockEditor.RichText; -var createBlock = wp.blocks.createBlock; -var __ = wp.i18n.__; + this.updateStatus(false, nextStatus); + }; -var Company = function (_React$Component) { - _inherits(Company, _React$Component); + _proto.componentWillUnmount = function componentWillUnmount() { + this.cancelNextCallback(); + }; - function Company() { - _classCallCheck(this, Company); + _proto.getTimeouts = function getTimeouts() { + var timeout = this.props.timeout; + var exit, enter, appear; + exit = enter = appear = timeout; - return _possibleConstructorReturn(this, (Company.__proto__ || Object.getPrototypeOf(Company)).apply(this, arguments)); - } + if (timeout != null && typeof timeout !== 'number') { + exit = timeout.exit; + enter = timeout.enter; // TODO: remove fallback for next major - _createClass(Company, [{ - key: "render", - value: function render() { - var _props = this.props, - attributes = _props.attributes, - setAttributes = _props.setAttributes, - props = _props.props, - index_value = _props.index_value; + appear = timeout.appear !== undefined ? timeout.appear : enter; + } + return { + exit: exit, + enter: enter, + appear: appear + }; + }; - var test_arr = attributes.test_block[index_value]; - var company = ""; - if (test_arr && typeof test_arr !== "undefined") { - company = test_arr["company"]; - } + _proto.updateStatus = function updateStatus(mounting, nextStatus) { + if (mounting === void 0) { + mounting = false; + } - var data_copy = [].concat(_toConsumableArray(attributes.test_block)); + if (nextStatus !== null) { + // nextStatus will always be ENTERING or EXITING. + this.cancelNextCallback(); - if (setAttributes !== "not_set") { - return wp.element.createElement(RichText, { - tagName: "div", - value: company, - className: "uagb-tm__company", - onChange: function onChange(value) { - var new_content = { "description": data_copy[index_value]["description"], "name": data_copy[index_value]["name"], "company": value, "image": data_copy[index_value]["image"] }; - data_copy[index_value] = new_content; - setAttributes({ "test_block": data_copy }); - }, - multiline: false, - placeholder: __("Company Name"), - onMerge: props.mergeBlocks, - unstableOnSplit: props.insertBlocksAfter ? function (before, after) { - for (var _len = arguments.length, blocks = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { - blocks[_key - 2] = arguments[_key]; - } + if (nextStatus === ENTERING) { + this.performEnter(mounting); + } else { + this.performExit(); + } + } else if (this.props.unmountOnExit && this.state.status === EXITED) { + this.setState({ + status: UNMOUNTED + }); + } + }; - setAttributes({ content: before }); - props.insertBlocksAfter([].concat(blocks, [createBlock("core/paragraph", { content: after })])); - } : undefined, - onRemove: function onRemove() { - return props.onReplace([]); - } - }); - } else { - return wp.element.createElement(RichText.Content, { - tagName: "span", - value: company, - className: "uagb-tm__company" - }); - } - } - }]); + _proto.performEnter = function performEnter(mounting) { + var _this2 = this; - return Company; -}(React.Component); + var enter = this.props.enter; + var appearing = this.context ? this.context.isMounting : mounting; -/* harmony default export */ __webpack_exports__["a"] = (Company); + var _ref2 = this.props.nodeRef ? [appearing] : [__WEBPACK_IMPORTED_MODULE_4_react_dom___default.a.findDOMNode(this), appearing], + maybeNode = _ref2[0], + maybeAppearing = _ref2[1]; -/***/ }), -/* 94 */ -/*!**********************************************************!*\ - !*** ./src/blocks/testimonial/components/Description.js ***! - \**********************************************************/ -/*! exports provided: default */ -/*! exports used: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { + var timeouts = this.getTimeouts(); + var enterTimeout = appearing ? timeouts.appear : timeouts.enter; // no enter animation skip right to ENTERED + // if we are mounting and running this it means appear _must_ be set -"use strict"; -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + if (!mounting && !enter || __WEBPACK_IMPORTED_MODULE_5__config__["a" /* default */].disabled) { + this.safeSetState({ + status: ENTERED + }, function () { + _this2.props.onEntered(maybeNode); + }); + return; + } -function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } + this.props.onEnter(maybeNode, maybeAppearing); + this.safeSetState({ + status: ENTERING + }, function () { + _this2.props.onEntering(maybeNode, maybeAppearing); -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + _this2.onTransitionEnd(enterTimeout, function () { + _this2.safeSetState({ + status: ENTERED + }, function () { + _this2.props.onEntered(maybeNode, maybeAppearing); + }); + }); + }); + }; -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + _proto.performExit = function performExit() { + var _this3 = this; -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + var exit = this.props.exit; + var timeouts = this.getTimeouts(); + var maybeNode = this.props.nodeRef ? undefined : __WEBPACK_IMPORTED_MODULE_4_react_dom___default.a.findDOMNode(this); // no exit animation skip right to EXITED -var RichText = wp.blockEditor.RichText; -var __ = wp.i18n.__; -var createBlock = wp.blocks.createBlock; + if (!exit || __WEBPACK_IMPORTED_MODULE_5__config__["a" /* default */].disabled) { + this.safeSetState({ + status: EXITED + }, function () { + _this3.props.onExited(maybeNode); + }); + return; + } -var Description = function (_React$Component) { - _inherits(Description, _React$Component); + this.props.onExit(maybeNode); + this.safeSetState({ + status: EXITING + }, function () { + _this3.props.onExiting(maybeNode); - function Description() { - _classCallCheck(this, Description); + _this3.onTransitionEnd(timeouts.exit, function () { + _this3.safeSetState({ + status: EXITED + }, function () { + _this3.props.onExited(maybeNode); + }); + }); + }); + }; - return _possibleConstructorReturn(this, (Description.__proto__ || Object.getPrototypeOf(Description)).apply(this, arguments)); - } + _proto.cancelNextCallback = function cancelNextCallback() { + if (this.nextCallback !== null) { + this.nextCallback.cancel(); + this.nextCallback = null; + } + }; - _createClass(Description, [{ - key: "render", - value: function render() { - var _props = this.props, - attributes = _props.attributes, - setAttributes = _props.setAttributes, - props = _props.props, - index_value = _props.index_value; + _proto.safeSetState = function safeSetState(nextState, callback) { + // This shouldn't be necessary, but there are weird race conditions with + // setState callbacks and unmounting in testing, so always make sure that + // we can cancel any pending setState callbacks after we unmount. + callback = this.setNextCallback(callback); + this.setState(nextState, callback); + }; + _proto.setNextCallback = function setNextCallback(callback) { + var _this4 = this; - var test_arr = attributes.test_block[index_value]; - var description = ""; - if (test_arr && typeof test_arr !== "undefined") { - description = test_arr["description"]; - } + var active = true; - var data_copy = [].concat(_toConsumableArray(attributes.test_block)); + this.nextCallback = function (event) { + if (active) { + active = false; + _this4.nextCallback = null; + callback(event); + } + }; - if (setAttributes !== "not_set") { - return wp.element.createElement(RichText, { - tagName: "div", - value: description, - placeholder: __("Write Description"), - className: "uagb-tm__desc", - onChange: function onChange(value) { + this.nextCallback.cancel = function () { + active = false; + }; - var new_content = { "description": value, "name": data_copy[index_value]["name"], "company": data_copy[index_value]["company"], "image": data_copy[index_value]["image"] }; - data_copy[index_value] = new_content; - setAttributes({ "test_block": data_copy }); - }, - onMerge: props.mergeBlocks, - unstableOnSplit: props.insertBlocksAfter ? function (before, after) { - for (var _len = arguments.length, blocks = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { - blocks[_key - 2] = arguments[_key]; - } + return this.nextCallback; + }; - setAttributes({ content: before }); - props.insertBlocksAfter([].concat(blocks, [createBlock("core/paragraph", { content: after })])); - } : undefined, - onRemove: function onRemove() { - return props.onReplace([]); - } - }); - } else { - return wp.element.createElement(RichText.Content, { - tagName: "div", - value: description, - className: "uagb-tm__desc" - }); - } - } - }]); + _proto.onTransitionEnd = function onTransitionEnd(timeout, handler) { + this.setNextCallback(handler); + var node = this.props.nodeRef ? this.props.nodeRef.current : __WEBPACK_IMPORTED_MODULE_4_react_dom___default.a.findDOMNode(this); + var doesNotHaveTimeoutOrListener = timeout == null && !this.props.addEndListener; - return Description; -}(React.Component); + if (!node || doesNotHaveTimeoutOrListener) { + setTimeout(this.nextCallback, 0); + return; + } -/* harmony default export */ __webpack_exports__["a"] = (Description); + if (this.props.addEndListener) { + var _ref3 = this.props.nodeRef ? [this.nextCallback] : [node, this.nextCallback], + maybeNode = _ref3[0], + maybeNextCallback = _ref3[1]; -/***/ }), -/* 95 */ -/*!*******************************************!*\ - !*** ./src/blocks/testimonial/classes.js ***! - \*******************************************/ -/*! exports provided: default */ -/*! exports used: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { + this.props.addEndListener(maybeNode, maybeNextCallback); + } -"use strict"; -/** - * Returns Dynamic Generated CSS - */ + if (timeout != null) { + setTimeout(this.nextCallback, timeout); + } + }; -function PositionClasses(attributes) { + _proto.render = function render() { + var status = this.state.status; - var iconimgStyle_class = ""; - iconimgStyle_class += " uagb-tm__imgicon-style-" + attributes.iconimgStyle + " "; - iconimgStyle_class += "uagb-tm__image-position-" + attributes.imagePosition + " "; + if (status === UNMOUNTED) { + return null; + } - if (attributes.imagePosition == "left" || attributes.imagePosition == "right") { - iconimgStyle_class += "uagb-tm__image-aligned-" + attributes.imageAlignment + " "; - if (attributes.stack !== "none") { - iconimgStyle_class += "uagb-tm-stacked-" + attributes.stack + " "; - if (attributes.imagePosition === "right") { - iconimgStyle_class += "uagb-tm-reverse-order-" + attributes.stack + " "; - } - } - } + var _this$props = this.props, + children = _this$props.children, + _in = _this$props.in, + _mountOnEnter = _this$props.mountOnEnter, + _unmountOnExit = _this$props.unmountOnExit, + _appear = _this$props.appear, + _enter = _this$props.enter, + _exit = _this$props.exit, + _timeout = _this$props.timeout, + _addEndListener = _this$props.addEndListener, + _onEnter = _this$props.onEnter, + _onEntering = _this$props.onEntering, + _onEntered = _this$props.onEntered, + _onExit = _this$props.onExit, + _onExiting = _this$props.onExiting, + _onExited = _this$props.onExited, + _nodeRef = _this$props.nodeRef, + childProps = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__["a" /* default */])(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]); + + return ( + /*#__PURE__*/ + // allows for nested Transitions + __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7__TransitionGroupContext__["a" /* default */].Provider, { + value: null + }, typeof children === 'function' ? children(status, childProps) : __WEBPACK_IMPORTED_MODULE_3_react___default.a.cloneElement(__WEBPACK_IMPORTED_MODULE_3_react___default.a.Children.only(children), childProps)) + ); + }; - iconimgStyle_class += "uagb-tm__bg-type-" + attributes.backgroundType + " "; + return Transition; +}(__WEBPACK_IMPORTED_MODULE_3_react___default.a.Component); - return [iconimgStyle_class]; -} +Transition.contextType = __WEBPACK_IMPORTED_MODULE_7__TransitionGroupContext__["a" /* default */]; +Transition.propTypes = process.env.NODE_ENV !== "production" ? { + /** + * A React reference to DOM element that need to transition: + * https://stackoverflow.com/a/51127130/4671932 + * + * - When `nodeRef` prop is used, `node` is not passed to callback functions + * (e.g. `onEnter`) because user already has direct access to the node. + * - When changing `key` prop of `Transition` in a `TransitionGroup` a new + * `nodeRef` need to be provided to `Transition` with changed `key` prop + * (see + * [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)). + */ + nodeRef: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.shape({ + current: typeof Element === 'undefined' ? __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.any : __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.instanceOf(Element) + }), -/* harmony default export */ __webpack_exports__["a"] = (PositionClasses); + /** + * A `function` child can be used instead of a React element. This function is + * called with the current transition status (`'entering'`, `'entered'`, + * `'exiting'`, `'exited'`), which can be used to apply context + * specific props to a component. + * + * ```jsx + * + * {state => ( + * + * )} + * + * ``` + */ + children: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func.isRequired, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.element.isRequired]).isRequired, -/***/ }), -/* 96 */ -/*!******************************************!*\ - !*** ./src/blocks/social-share/links.js ***! - \******************************************/ -/*! exports provided: default */ -/*! exports used: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { + /** + * Show the component; triggers the enter or exit states + */ + in: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool, -"use strict"; -var links = { - facebook: "https://www.facebook.com/sharer.php?u=", - twitter: "https://twitter.com/share?url=", - google: "https://plus.google.com/share?url=", - pinterest: "https://pinterest.com/pin/create/link/?url=", - linkedin: "https://www.linkedin.com/shareArticle?url=", - digg: "http://digg.com/submit?url=", - blogger: "https://www.blogger.com/blog_this.pyra?t&u=", - reddit: "https://reddit.com/submit?url=", - stumbleupon: "https://www.stumbleupon.com/submit?url=", - tumblr: "https://www.tumblr.com/widgets/share/tool?canonicalUrl=", - myspace: "https://myspace.com/post?u=", - email: "mailto:?body=" -}; + /** + * By default the child component is mounted immediately along with + * the parent `Transition` component. If you want to "lazy mount" the component on the + * first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay + * mounted, even on "exited", unless you also specify `unmountOnExit`. + */ + mountOnEnter: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool, -/* harmony default export */ __webpack_exports__["a"] = (links); + /** + * By default the child component stays mounted after it reaches the `'exited'` state. + * Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting. + */ + unmountOnExit: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool, -/***/ }), -/* 97 */ -/*!*********************************************************!*\ - !*** ./src/blocks/price-list-child/components/Title.js ***! - \*********************************************************/ -/*! exports provided: default */ -/*! exports used: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { + /** + * By default the child component does not perform the enter transition when + * it first mounts, regardless of the value of `in`. If you want this + * behavior, set both `appear` and `in` to `true`. + * + * > **Note**: there are no special appear states like `appearing`/`appeared`, this prop + * > only adds an additional enter transition. However, in the + * > `` component that first enter transition does result in + * > additional `.appear-*` classes, that way you can choose to style it + * > differently. + */ + appear: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool, -"use strict"; -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + /** + * Enable or disable enter transitions. + */ + enter: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool, -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + /** + * Enable or disable exit transitions. + */ + exit: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool, -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + /** + * The duration of the transition, in milliseconds. + * Required unless `addEndListener` is provided. + * + * You may specify a single timeout for all transitions: + * + * ```jsx + * timeout={500} + * ``` + * + * or individually: + * + * ```jsx + * timeout={{ + * appear: 500, + * enter: 300, + * exit: 500, + * }} + * ``` + * + * - `appear` defaults to the value of `enter` + * - `enter` defaults to `0` + * - `exit` defaults to `0` + * + * @type {number | { enter?: number, exit?: number, appear?: number }} + */ + timeout: function timeout(props) { + var pt = __WEBPACK_IMPORTED_MODULE_6__utils_PropTypes__["b" /* timeoutsShape */]; + if (!props.addEndListener) pt = pt.isRequired; -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + args[_key - 1] = arguments[_key]; + } -var RichText = wp.blockEditor.RichText; -var __ = wp.i18n.__; + return pt.apply(void 0, [props].concat(args)); + }, -var Title = function (_React$Component) { - _inherits(Title, _React$Component); + /** + * Add a custom transition end trigger. Called with the transitioning + * DOM node and a `done` callback. Allows for more fine grained transition end + * logic. Timeouts are still used as a fallback if provided. + * + * **Note**: when `nodeRef` prop is passed, `node` is not passed. + * + * ```jsx + * addEndListener={(node, done) => { + * // use the css transitionend event to mark the finish of a transition + * node.addEventListener('transitionend', done, false); + * }} + * ``` + */ + addEndListener: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func, - function Title() { - _classCallCheck(this, Title); + /** + * Callback fired before the "entering" status is applied. An extra parameter + * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount + * + * **Note**: when `nodeRef` prop is passed, `node` is not passed. + * + * @type Function(node: HtmlElement, isAppearing: bool) -> void + */ + onEnter: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func, - return _possibleConstructorReturn(this, (Title.__proto__ || Object.getPrototypeOf(Title)).apply(this, arguments)); - } + /** + * Callback fired after the "entering" status is applied. An extra parameter + * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount + * + * **Note**: when `nodeRef` prop is passed, `node` is not passed. + * + * @type Function(node: HtmlElement, isAppearing: bool) + */ + onEntering: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func, - _createClass(Title, [{ - key: "render", - value: function render() { - var _props = this.props, - attributes = _props.attributes, - setAttributes = _props.setAttributes, - index_value = _props.index_value; + /** + * Callback fired after the "entered" status is applied. An extra parameter + * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount + * + * **Note**: when `nodeRef` prop is passed, `node` is not passed. + * + * @type Function(node: HtmlElement, isAppearing: bool) -> void + */ + onEntered: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func, - var author_title = ""; + /** + * Callback fired before the "exiting" status is applied. + * + * **Note**: when `nodeRef` prop is passed, `node` is not passed. + * + * @type Function(node: HtmlElement) -> void + */ + onExit: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func, - if (typeof index_value !== "undefined") { - var test_arr = attributes.rest_menu_item_arr[index_value]; - if (test_arr) { - if (typeof test_arr !== "undefined") { - author_title = test_arr["title"]; - } - } - } else { - author_title = attributes.title; - } + /** + * Callback fired after the "exiting" status is applied. + * + * **Note**: when `nodeRef` prop is passed, `node` is not passed. + * + * @type Function(node: HtmlElement) -> void + */ + onExiting: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func, - if (setAttributes !== "not_set") { + /** + * Callback fired after the "exited" status is applied. + * + * **Note**: when `nodeRef` prop is passed, `node` is not passed + * + * @type Function(node: HtmlElement) -> void + */ + onExited: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func +} : {}; // Name the function so it is clearer in the documentation - return wp.element.createElement(RichText, { - tagName: attributes.headingTag, - value: author_title, - placeholder: __("Write a Title"), - className: "uagb-rm__title", - onChange: function onChange(value) { - setAttributes({ "title": value }); - } - }); - } else { - return wp.element.createElement(RichText.Content, { - tagName: attributes.headingTag, - value: author_title, - className: "uagb-rm__title" - }); - } - } - }]); +function noop() {} - return Title; -}(React.Component); +Transition.defaultProps = { + in: false, + mountOnEnter: false, + unmountOnExit: false, + appear: false, + enter: true, + exit: true, + onEnter: noop, + onEntering: noop, + onEntered: noop, + onExit: noop, + onExiting: noop, + onExited: noop +}; +Transition.UNMOUNTED = UNMOUNTED; +Transition.EXITED = EXITED; +Transition.ENTERING = ENTERING; +Transition.ENTERED = ENTERED; +Transition.EXITING = EXITING; +/* harmony default export */ __webpack_exports__["d"] = (Transition); +/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(/*! ./../../process/browser.js */ 6))) -/* harmony default export */ __webpack_exports__["a"] = (Title); +/***/ }), +/* 106 */ +/*!***************************************************************************!*\ + !*** ./node_modules/react-transition-group/esm/TransitionGroupContext.js ***! + \***************************************************************************/ +/*! exports provided: default */ +/*! exports used: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(/*! react */ 5); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__); + +/* harmony default export */ __webpack_exports__["a"] = (__WEBPACK_IMPORTED_MODULE_0_react___default.a.createContext(null)); /***/ }), -/* 98 */ -/*!*********************************************************!*\ - !*** ./src/blocks/price-list-child/components/Price.js ***! - \*********************************************************/ +/* 107 */ +/*!**************************************************!*\ + !*** ./src/blocks/info-box/components/Prefix.js ***! + \**************************************************/ /*! exports provided: default */ /*! exports used: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -7728,67 +7787,72 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function" var RichText = wp.blockEditor.RichText; var __ = wp.i18n.__; +var createBlock = wp.blocks.createBlock; -var Price = function (_React$Component) { - _inherits(Price, _React$Component); +var Prefix = function (_React$Component) { + _inherits(Prefix, _React$Component); - function Price() { - _classCallCheck(this, Price); + function Prefix() { + _classCallCheck(this, Prefix); - return _possibleConstructorReturn(this, (Price.__proto__ || Object.getPrototypeOf(Price)).apply(this, arguments)); + return _possibleConstructorReturn(this, (Prefix.__proto__ || Object.getPrototypeOf(Prefix)).apply(this, arguments)); } - _createClass(Price, [{ + _createClass(Prefix, [{ key: "render", value: function render() { + + //const { attributes, setAttributes } = this.props; + var _props = this.props, attributes = _props.attributes, setAttributes = _props.setAttributes, - index_value = _props.index_value; - + props = _props.props; - var price = ""; - if (typeof index_value !== "undefined") { - var rest_arr = attributes.rest_menu_item_arr[index_value]; - if (rest_arr) { - if (typeof rest_arr !== "undefined") { - price = rest_arr["price"]; - } - } - } else { - price = attributes.price; - } if (setAttributes !== "not_set") { return wp.element.createElement(RichText, { tagName: "div", - value: price, - className: "uagb-rm__price", - placeholder: __("Price"), + value: attributes.prefixTitle, + placeholder: __("Write a Prefix"), + className: "uagb-ifb-title-prefix", + multiline: false, onChange: function onChange(value) { - setAttributes({ "price": value }); + setAttributes({ prefixTitle: value }); + }, + onMerge: props.mergeBlocks, + onSplit: props.insertBlocksAfter ? function (before, after) { + for (var _len = arguments.length, blocks = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { + blocks[_key - 2] = arguments[_key]; + } + + setAttributes({ content: before }); + props.insertBlocksAfter([].concat(blocks, [createBlock("core/paragraph", { content: after })])); + } : undefined, + onRemove: function onRemove() { + return props.onReplace([]); } }); } else { return wp.element.createElement(RichText.Content, { tagName: "span", - value: price, - className: "uagb-rm__price" + value: attributes.prefixTitle, + className: "uagb-ifb-title-prefix" }); } } }]); - return Price; + return Prefix; }(React.Component); -/* harmony default export */ __webpack_exports__["a"] = (Price); +/* harmony default export */ __webpack_exports__["a"] = (Prefix); /***/ }), -/* 99 */ -/*!***************************************************************!*\ - !*** ./src/blocks/price-list-child/components/Description.js ***! - \***************************************************************/ +/* 108 */ +/*!*************************************************!*\ + !*** ./src/blocks/info-box/components/Title.js ***! + \*************************************************/ /*! exports provided: default */ /*! exports used: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -7803,73 +7867,78 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var RichText = wp.blockEditor.RichText; +var createBlock = wp.blocks.createBlock; var __ = wp.i18n.__; -var Description = function (_React$Component) { - _inherits(Description, _React$Component); +var Title = function (_React$Component) { + _inherits(Title, _React$Component); - function Description() { - _classCallCheck(this, Description); + function Title() { + _classCallCheck(this, Title); - return _possibleConstructorReturn(this, (Description.__proto__ || Object.getPrototypeOf(Description)).apply(this, arguments)); + return _possibleConstructorReturn(this, (Title.__proto__ || Object.getPrototypeOf(Title)).apply(this, arguments)); } - _createClass(Description, [{ + _createClass(Title, [{ key: "render", value: function render() { + + //const { attributes, setAttributes , props } = this.props; var _props = this.props, attributes = _props.attributes, setAttributes = _props.setAttributes, - index_value = _props.index_value; - + props = _props.props; - var description = ""; - if (typeof index_value !== "undefined") { - var rest_arr = attributes.rest_menu_item_arr[index_value]; - if (rest_arr) { - if (typeof rest_arr !== "undefined") { - description = rest_arr["description"]; - } - } - } else { - description = attributes.description; - } if (setAttributes !== "not_set") { return wp.element.createElement(RichText, { - tagName: "div", - value: description, - placeholder: __("Write a Description"), - className: "uagb-rm__desc", + tagName: attributes.headingTag, + placeholder: __("Write a Heading"), + value: attributes.infoBoxTitle, + className: "uagb-ifb-title", onChange: function onChange(value) { - setAttributes({ "description": value }); + return setAttributes({ infoBoxTitle: value }); + }, + multiline: false, + onMerge: props.mergeBlocks, + onSplit: props.insertBlocksAfter ? function (before, after) { + for (var _len = arguments.length, blocks = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { + blocks[_key - 2] = arguments[_key]; + } + + setAttributes({ content: before }); + props.insertBlocksAfter([].concat(blocks, [createBlock("core/paragraph", { content: after })])); + } : undefined, + onRemove: function onRemove() { + return props.onReplace([]); } }); } else { return wp.element.createElement(RichText.Content, { - tagName: "div", - value: description, - className: "uagb-rm__desc" + tagName: attributes.headingTag, + value: attributes.infoBoxTitle, + className: "uagb-ifb-title" }); } } }]); - return Description; + return Title; }(React.Component); -/* harmony default export */ __webpack_exports__["a"] = (Description); +/* harmony default export */ __webpack_exports__["a"] = (Title); /***/ }), -/* 100 */ -/*!*****************************************************************!*\ - !*** ./src/blocks/price-list-child/components/RestMenuImage.js ***! - \*****************************************************************/ +/* 109 */ +/*!************************************************!*\ + !*** ./src/blocks/info-box/components/Icon.js ***! + \************************************************/ /*! exports provided: default */ /*! exports used: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_renderIcon__ = __webpack_require__(/*! ../../../../dist/blocks/uagb-controls/renderIcon */ 2); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } @@ -7878,89 +7947,51 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } -var RestMenuImage = function (_React$Component) { - _inherits(RestMenuImage, _React$Component); - - function RestMenuImage() { - _classCallCheck(this, RestMenuImage); - return _possibleConstructorReturn(this, (RestMenuImage.__proto__ || Object.getPrototypeOf(RestMenuImage)).apply(this, arguments)); - } - _createClass(RestMenuImage, [{ - key: "render", - value: function render() { - var _props = this.props, - attributes = _props.attributes, - index_value = _props.index_value; +var RichText = wp.blockEditor.RichText; +var __ = wp.i18n.__; - var url_check = ""; - var image_arr = ""; +var Icon = function (_React$Component) { + _inherits(Icon, _React$Component); - if (typeof index_value !== "undefined") { - var image_array = attributes.rest_menu_item_arr[index_value]; - if (typeof image_array !== "undefined") { - image_arr = image_array['image']; - } - } else { - if (attributes.image !== "") { - image_arr = attributes.image; - } - } + function Icon() { + _classCallCheck(this, Icon); - if (image_arr && typeof image_arr !== "undefined") { - var image = ''; - if (typeof image_arr !== "undefined") { - image = image_arr; - } else { - image = attributes.image; - } - var url = ""; + return _possibleConstructorReturn(this, (Icon.__proto__ || Object.getPrototypeOf(Icon)).apply(this, arguments)); + } - if (typeof image !== "undefined" && image !== null && image !== "") { - url_check = image.url; - } + _createClass(Icon, [{ + key: "render", + value: function render() { + var attributes = this.props.attributes; - if (url_check !== "") { - var size = image.sizes; - var imageSize = attributes.imageSize; - if (typeof size !== "undefined" && typeof size[imageSize] !== "undefined") { - url = size[imageSize].url; - } else { - url = url_check; - } - return wp.element.createElement( - "div", - { className: "uagb-rm__image-content" }, - wp.element.createElement( - "div", - { className: "uagb-rm__image" }, - wp.element.createElement("img", { - className: "", - src: url, - alt: image.alt - }) - ) - ); - } else { - return null; - } - } else { - return null; - } + return wp.element.createElement( + "div", + { className: "uagb-ifb-image-icon-content uagb-ifb-imgicon-wrap" }, + wp.element.createElement( + "div", + { className: "uagb-ifb-icon-wrap" }, + wp.element.createElement( + "span", + { className: "uagb-ifb-icon" }, + Object(__WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_renderIcon__["a" /* default */])(attributes.icon) + ) + ) + ); } }]); - return RestMenuImage; + return Icon; }(React.Component); -/* harmony default export */ __webpack_exports__["a"] = (RestMenuImage); +/* harmony default export */ __webpack_exports__["a"] = (Icon); /***/ }), -/* 101 */ +/* 110 */ /*!*******************************************************!*\ - !*** ./src/blocks/call-to-action/components/Title.js ***! + !*** ./src/blocks/info-box/components/InfoBoxDesc.js ***! \*******************************************************/ /*! exports provided: default */ /*! exports used: default */ @@ -7976,21 +8007,23 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var RichText = wp.blockEditor.RichText; -var createBlock = wp.blocks.createBlock; var __ = wp.i18n.__; +var createBlock = wp.blocks.createBlock; -var Title = function (_React$Component) { - _inherits(Title, _React$Component); +var InfoBoxDesc = function (_React$Component) { + _inherits(InfoBoxDesc, _React$Component); - function Title() { - _classCallCheck(this, Title); + function InfoBoxDesc() { + _classCallCheck(this, InfoBoxDesc); - return _possibleConstructorReturn(this, (Title.__proto__ || Object.getPrototypeOf(Title)).apply(this, arguments)); + return _possibleConstructorReturn(this, (InfoBoxDesc.__proto__ || Object.getPrototypeOf(InfoBoxDesc)).apply(this, arguments)); } - _createClass(Title, [{ + _createClass(InfoBoxDesc, [{ key: "render", value: function render() { + + //const { attributes, setAttributes } = this.props; var _props = this.props, attributes = _props.attributes, setAttributes = _props.setAttributes, @@ -7999,16 +8032,15 @@ var Title = function (_React$Component) { if (setAttributes !== "not_set") { return wp.element.createElement(RichText, { - tagName: attributes.titleTag, - placeholder: __("Write a Heading"), - value: attributes.ctaTitle, - className: "uagb-cta__title", + tagName: "p", + value: attributes.headingDesc, + placeholder: __("Write a Description"), + className: "uagb-ifb-desc", onChange: function onChange(value) { - return setAttributes({ ctaTitle: value }); + return setAttributes({ headingDesc: value }); }, - multiline: false, onMerge: props.mergeBlocks, - unstableOnSplit: props.insertBlocksAfter ? function (before, after) { + onSplit: props.insertBlocksAfter ? function (before, after) { for (var _len = arguments.length, blocks = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { blocks[_key - 2] = arguments[_key]; } @@ -8022,143 +8054,127 @@ var Title = function (_React$Component) { }); } else { return wp.element.createElement(RichText.Content, { - tagName: attributes.titleTag, - value: attributes.ctaTitle, - className: "uagb-cta__title" + tagName: "p", + value: attributes.headingDesc, + className: "uagb-ifb-desc" }); } } }]); - return Title; + return InfoBoxDesc; }(React.Component); -/* harmony default export */ __webpack_exports__["a"] = (Title); +/* harmony default export */ __webpack_exports__["a"] = (InfoBoxDesc); /***/ }), -/* 102 */ -/*!*************************************************************!*\ - !*** ./src/blocks/call-to-action/components/Description.js ***! - \*************************************************************/ +/* 111 */ +/*!****************************************!*\ + !*** ./src/blocks/info-box/classes.js ***! + \****************************************/ /*! exports provided: default */ /*! exports used: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } +/** + * Returns Dynamic Generated Classes + */ -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } +function InfoBoxPositionClasses(attributes) { -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + var sourceClass = "uagb-infobox-has-image"; + if (attributes.source_type == "icon") { + sourceClass = "uagb-infobox-has-icon"; + } -var RichText = wp.blockEditor.RichText; -var __ = wp.i18n.__; -var createBlock = wp.blocks.createBlock; + var iconimgStyle_class = ""; -var Description = function (_React$Component) { - _inherits(Description, _React$Component); + iconimgStyle_class += "uagb-infobox" + " "; + iconimgStyle_class += sourceClass + " "; + iconimgStyle_class += "uagb-infobox-icon-" + attributes.iconimgPosition + " "; - function Description() { - _classCallCheck(this, Description); + if (attributes.iconimgPosition === "left" || attributes.iconimgPosition === "left-title") { + iconimgStyle_class += "uagb-infobox-left" + " "; + } - return _possibleConstructorReturn(this, (Description.__proto__ || Object.getPrototypeOf(Description)).apply(this, arguments)); + if (attributes.iconimgPosition === "right" || attributes.iconimgPosition === "right-title") { + iconimgStyle_class += "uagb-infobox-right" + " "; } - _createClass(Description, [{ - key: "render", - value: function render() { - var _props = this.props, - attributes = _props.attributes, - setAttributes = _props.setAttributes, - props = _props.props; + if ((attributes.iconimgPosition === "left" || attributes.iconimgPosition === "right") && attributes.stack !== "none") { + iconimgStyle_class += "uagb-infobox-stacked-" + attributes.stack + " "; + if (attributes.iconimgPosition === "right") { + iconimgStyle_class += "uagb-infobox-reverse-order-" + attributes.stack + " "; + } + } + if (attributes.iconimgPosition !== "above-title" || attributes.iconimgPosition !== "below-title") { + iconimgStyle_class += "uagb-infobox-image-valign-" + attributes.sourceAlign + " "; + } - if (setAttributes !== "not_set") { - return wp.element.createElement(RichText, { - tagName: "p", - value: attributes.description, - placeholder: __("Write a Description"), - className: "uagb-cta__desc", - onChange: function onChange(value) { - return setAttributes({ description: value }); - }, - onMerge: props.mergeBlocks, - unstableOnSplit: props.insertBlocksAfter ? function (before, after) { - for (var _len = arguments.length, blocks = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { - blocks[_key - 2] = arguments[_key]; - } + if (attributes.enableBorder) { + iconimgStyle_class += "uagb-infobox-enable-border" + " "; + } - setAttributes({ content: before }); - props.insertBlocksAfter([].concat(blocks, [createBlock("core/paragraph", { content: after })])); - } : undefined, - onRemove: function onRemove() { - return props.onReplace([]); - } - }); - } else { - return wp.element.createElement(RichText.Content, { - tagName: "p", - value: attributes.description, - className: "uagb-cta__desc" - }); - } - } - }]); + iconimgStyle_class += "uagb-infobox-enable-border-radius" + " "; - return Description; -}(React.Component); + return [iconimgStyle_class]; +} -/* harmony default export */ __webpack_exports__["a"] = (Description); +/* harmony default export */ __webpack_exports__["a"] = (InfoBoxPositionClasses); /***/ }), -/* 103 */ -/*!**********************************************!*\ - !*** ./src/blocks/call-to-action/classes.js ***! - \**********************************************/ +/* 112 */ +/*!************************************************************!*\ + !*** ./src/blocks/info-box/components/InfoBoxSeparator.js ***! + \************************************************************/ /*! exports provided: default */ /*! exports used: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -/** - * Returns Dynamic Generated Classes - */ +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); -function CtaPositionClasses(attributes) { +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - var iconimgStyle_class = ""; +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - iconimgStyle_class += "uagb-cta__block" + " "; - iconimgStyle_class += "uagb-cta__icon-position-" + attributes.ctaPosition + " "; +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - if (attributes.ctaPosition === "right") { - iconimgStyle_class += "uagb-cta__content-right" + " "; - } +var InfoBoxSeparator = function (_React$Component) { + _inherits(InfoBoxSeparator, _React$Component); - if (attributes.ctaPosition === "right" && attributes.stack !== "none") { - iconimgStyle_class += "uagb-cta__content-stacked-" + attributes.stack + " "; - } + function InfoBoxSeparator() { + _classCallCheck(this, InfoBoxSeparator); - if (attributes.ctaPosition !== "below-title") { - iconimgStyle_class += "uagb-cta__button-valign-" + attributes.buttonAlign + " "; + return _possibleConstructorReturn(this, (InfoBoxSeparator.__proto__ || Object.getPrototypeOf(InfoBoxSeparator)).apply(this, arguments)); } - if (attributes.ctaType !== "text" && attributes.ctaType !== "button") { - iconimgStyle_class += "uagb-cta__button-type-none" + " "; - } + _createClass(InfoBoxSeparator, [{ + key: "render", + value: function render() { + var attributes = this.props.attributes; - return [iconimgStyle_class]; -} -/* harmony default export */ __webpack_exports__["a"] = (CtaPositionClasses); + return wp.element.createElement( + "div", + { className: "uagb-ifb-separator-parent" }, + wp.element.createElement("div", { className: "uagb-ifb-separator" }) + ); + } + }]); + + return InfoBoxSeparator; +}(React.Component); + +/* harmony default export */ __webpack_exports__["a"] = (InfoBoxSeparator); /***/ }), -/* 104 */ -/*!*****************************************************!*\ - !*** ./src/blocks/call-to-action/components/CTA.js ***! - \*****************************************************/ +/* 113 */ +/*!********************************************************!*\ + !*** ./src/blocks/info-box/components/CallToAction.js ***! + \********************************************************/ /*! exports provided: default */ /*! exports used: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -8181,24 +8197,29 @@ var __ = wp.i18n.__; -var CTA = function (_React$Component) { - _inherits(CTA, _React$Component); +var InfoBoxCta = function (_React$Component) { + _inherits(InfoBoxCta, _React$Component); - function CTA() { - _classCallCheck(this, CTA); + function InfoBoxCta() { + _classCallCheck(this, InfoBoxCta); - return _possibleConstructorReturn(this, (CTA.__proto__ || Object.getPrototypeOf(CTA)).apply(this, arguments)); + return _possibleConstructorReturn(this, (InfoBoxCta.__proto__ || Object.getPrototypeOf(InfoBoxCta)).apply(this, arguments)); } - _createClass(CTA, [{ + _createClass(InfoBoxCta, [{ key: "render", value: function render() { var _props = this.props, attributes = _props.attributes, - setAttributes = _props.setAttributes; + _props$setAttributes = _props.setAttributes, + setAttributes = _props$setAttributes === undefined ? "not_set" : _props$setAttributes; - var ctaBtnClass = "uagb-cta__block-link uagb-cta__button-link-wrapper uagb-cta-typeof-" + attributes.ctaType; + var ctaBtnClass = "uagb-infobox-cta-link uagb-ifb-cta-button"; + + if (attributes.inheritFromTheme) { + ctaBtnClass = "wp-block-button__link"; + } var target = "_self"; var rel = "noopener noreferrer"; @@ -8210,165 +8231,184 @@ var CTA = function (_React$Component) { if (attributes.ctaIcon !== "") { cta_icon_output = wp.element.createElement( "span", - { className: __WEBPACK_IMPORTED_MODULE_0_classnames___default.a("uagb-cta-" + attributes.ctaType + "-icon", "uagb-cta__align-button-" + attributes.ctaIconPosition, "uagb-cta-with-svg") }, - __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_renderIcon__["a" /* default */](attributes.ctaIcon) + { className: __WEBPACK_IMPORTED_MODULE_0_classnames___default()("uagb-ifb-" + attributes.ctaType + "-icon", "uagb-ifb-align-icon-" + attributes.ctaIconPosition) }, + Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_renderIcon__["a" /* default */])(attributes.ctaIcon) ); } - var link = "/"; - if (setAttributes == "not_set") { - link = attributes.ctaLink; - } - return wp.element.createElement( - "div", - { className: "uagb-cta__link-wrapper uagb-cta__block-link-style" }, - (attributes.ctaType === "button" || attributes.ctaType === "text") && wp.element.createElement( + if (setAttributes !== "not_set") { + + return wp.element.createElement( "div", - { className: __WEBPACK_IMPORTED_MODULE_0_classnames___default.a("uagb-cta__button-wrapper", attributes.inheritFromTheme && attributes.ctaType === "button" ? 'wp-block-button' : null) }, - wp.element.createElement( + { className: "uagb-ifb-cta uagb-infobox-cta-link-style" }, + attributes.ctaType === "text" && wp.element.createElement( "a", - { - href: link, - className: __WEBPACK_IMPORTED_MODULE_0_classnames___default.a('uagb-cta__button-link-wrapper', !attributes.inheritFromTheme ? 'uagb-cta__block-link' : null, !attributes.inheritFromTheme ? "uagb-cta-typeof-" + attributes.ctaType : null, attributes.inheritFromTheme && attributes.ctaType === "button" ? 'wp-block-button__link' : null), - target: target, - rel: rel - }, + { target: target, className: "uagb-infobox-cta-link", rel: rel }, attributes.ctaIconPosition === "before" && cta_icon_output, wp.element.createElement( "span", - { className: "uagb-cta__link-content-inner" }, + { className: "uagb-inline-editing" }, + attributes.ctaText + ), + attributes.ctaIconPosition === "after" && cta_icon_output + ), + attributes.ctaType === "button" && wp.element.createElement( + "div", + { className: __WEBPACK_IMPORTED_MODULE_0_classnames___default()("uagb-ifb-button-wrapper", attributes.inheritFromTheme ? "wp-block-button" : null) }, + wp.element.createElement( + "a", + { className: ctaBtnClass, target: target, rel: rel }, + cta_icon_output, wp.element.createElement( "span", - null, - attributes.ctaText + { className: "uagb-ifb-cta-content-wrapper" }, + wp.element.createElement( + "span", + { className: "uagb-inline-editing " }, + attributes.ctaText + ) ) + ) + ) + ); + } else { + return wp.element.createElement( + "div", + { className: "uagb-ifb-cta uagb-infobox-cta-link-style" }, + attributes.ctaType === "text" && wp.element.createElement( + "a", + { href: attributes.ctaLink, target: target, className: "uagb-infobox-cta-link", rel: rel }, + attributes.ctaIconPosition === "before" && cta_icon_output, + wp.element.createElement( + "span", + { className: "uagb-inline-editing" }, + attributes.ctaText ), attributes.ctaIconPosition === "after" && cta_icon_output + ), + attributes.ctaType === "button" && wp.element.createElement( + "div", + { className: __WEBPACK_IMPORTED_MODULE_0_classnames___default()("uagb-ifb-button-wrapper", attributes.inheritFromTheme ? "wp-block-button" : null) }, + wp.element.createElement( + "a", + { href: attributes.ctaLink, className: ctaBtnClass, target: target, rel: rel }, + cta_icon_output, + wp.element.createElement( + "span", + { className: "uagb-ifb-cta-content-wrapper" }, + wp.element.createElement( + "span", + { className: "uagb-inline-editing " }, + attributes.ctaText + ) + ) + ) ) - ) - ); + ); + } } }]); - return CTA; + return InfoBoxCta; }(React.Component); -/* harmony default export */ __webpack_exports__["a"] = (CTA); - -/***/ }), -/* 105 */ -/*!**************************************!*\ - !*** ./src/blocks/columns/shapes.js ***! - \**************************************/ -/*! exports provided: default */ -/*! exports used: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -var el = wp.element.createElement; - -var shapes = { - "triangle": el("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 1000 100", preserveAspectRatio: "none" }, el("path", { className: "uagb-columns__shape-fill", d: "M500,98.9L0,6.1V0h1000v6.1L500,98.9z" })), - "wave_brush": el("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 283.5 27.8", preserveAspectRatio: "none" }, el("path", { className: "uagb-columns__shape-fill", d: "M283.5,9.7c0,0-7.3,4.3-14,4.6c-6.8,0.3-12.6,0-20.9-1.5c-11.3-2-33.1-10.1-44.7-5.7 s-12.1,4.6-18,7.4c-6.6,3.2-20,9.6-36.6,9.3C131.6,23.5,99.5,7.2,86.3,8c-1.4,0.1-6.6,0.8-10.5,2c-3.8,1.2-9.4,3.8-17,4.7 c-3.2,0.4-8.3,1.1-14.2,0.9c-1.5-0.1-6.3-0.4-12-1.6c-5.7-1.2-11-3.1-15.8-3.7C6.5,9.2,0,10.8,0,10.8V0h283.5V9.7z M260.8,11.3 c-0.7-1-2-0.4-4.3-0.4c-2.3,0-6.1-1.2-5.8-1.1c0.3,0.1,3.1,1.5,6,1.9C259.7,12.2,261.4,12.3,260.8,11.3z M242.4,8.6 c0,0-2.4-0.2-5.6-0.9c-3.2-0.8-10.3-2.8-15.1-3.5c-8.2-1.1-15.8,0-15.1,0.1c0.8,0.1,9.6-0.6,17.6,1.1c3.3,0.7,9.3,2.2,12.4,2.7 C239.9,8.7,242.4,8.6,242.4,8.6z M185.2,8.5c1.7-0.7-13.3,4.7-18.5,6.1c-2.1,0.6-6.2,1.6-10,2c-3.9,0.4-8.9,0.4-8.8,0.5 c0,0.2,5.8,0.8,11.2,0c5.4-0.8,5.2-1.1,7.6-1.6C170.5,14.7,183.5,9.2,185.2,8.5z M199.1,6.9c0.2,0-0.8-0.4-4.8,1.1 c-4,1.5-6.7,3.5-6.9,3.7c-0.2,0.1,3.5-1.8,6.6-3C197,7.5,199,6.9,199.1,6.9z M283,6c-0.1,0.1-1.9,1.1-4.8,2.5s-6.9,2.8-6.7,2.7 c0.2,0,3.5-0.6,7.4-2.5C282.8,6.8,283.1,5.9,283,6z M31.3,11.6c0.1-0.2-1.9-0.2-4.5-1.2s-5.4-1.6-7.8-2C15,7.6,7.3,8.5,7.7,8.6 C8,8.7,15.9,8.3,20.2,9.3c2.2,0.5,2.4,0.5,5.7,1.6S31.2,11.9,31.3,11.6z M73,9.2c0.4-0.1,3.5-1.6,8.4-2.6c4.9-1.1,8.9-0.5,8.9-0.8 c0-0.3-1-0.9-6.2-0.3S72.6,9.3,73,9.2z M71.6,6.7C71.8,6.8,75,5.4,77.3,5c2.3-0.3,1.9-0.5,1.9-0.6c0-0.1-1.1-0.2-2.7,0.2 C74.8,5.1,71.4,6.6,71.6,6.7z M93.6,4.4c0.1,0.2,3.5,0.8,5.6,1.8c2.1,1,1.8,0.6,1.9,0.5c0.1-0.1-0.8-0.8-2.4-1.3 C97.1,4.8,93.5,4.2,93.6,4.4z M65.4,11.1c-0.1,0.3,0.3,0.5,1.9-0.2s2.6-1.3,2.2-1.2s-0.9,0.4-2.5,0.8C65.3,10.9,65.5,10.8,65.4,11.1 z M34.5,12.4c-0.2,0,2.1,0.8,3.3,0.9c1.2,0.1,2,0.1,2-0.2c0-0.3-0.1-0.5-1.6-0.4C36.6,12.8,34.7,12.4,34.5,12.4z M152.2,21.1 c-0.1,0.1-2.4-0.3-7.5-0.3c-5,0-13.6-2.4-17.2-3.5c-3.6-1.1,10,3.9,16.5,4.1C150.5,21.6,152.3,21,152.2,21.1z" }), el("path", { className: "uagb-columns__shape-fill", d: "M269.6,18c-0.1-0.1-4.6,0.3-7.2,0c-7.3-0.7-17-3.2-16.6-2.9c0.4,0.3,13.7,3.1,17,3.3 C267.7,18.8,269.7,18,269.6,18z" }), el("path", { className: "uagb-columns__shape-fill", d: "M227.4,9.8c-0.2-0.1-4.5-1-9.5-1.2c-5-0.2-12.7,0.6-12.3,0.5c0.3-0.1,5.9-1.8,13.3-1.2 S227.6,9.9,227.4,9.8z" }), el("path", { className: "uagb-columns__shape-fill", d: "M204.5,13.4c-0.1-0.1,2-1,3.2-1.1c1.2-0.1,2,0,2,0.3c0,0.3-0.1,0.5-1.6,0.4 C206.4,12.9,204.6,13.5,204.5,13.4z" }), el("path", { className: "uagb-columns__shape-fill", d: "M201,10.6c0-0.1-4.4,1.2-6.3,2.2c-1.9,0.9-6.2,3.1-6.1,3.1c0.1,0.1,4.2-1.6,6.3-2.6 S201,10.7,201,10.6z" }), el("path", { className: "uagb-columns__shape-fill", d: "M154.5,26.7c-0.1-0.1-4.6,0.3-7.2,0c-7.3-0.7-17-3.2-16.6-2.9c0.4,0.3,13.7,3.1,17,3.3 C152.6,27.5,154.6,26.8,154.5,26.7z" }), el("path", { className: "uagb-columns__shape-fill", d: "M41.9,19.3c0,0,1.2-0.3,2.9-0.1c1.7,0.2,5.8,0.9,8.2,0.7c4.2-0.4,7.4-2.7,7-2.6 c-0.4,0-4.3,2.2-8.6,1.9c-1.8-0.1-5.1-0.5-6.7-0.4S41.9,19.3,41.9,19.3z" }), el("path", { className: "uagb-columns__shape-fill", d: "M75.5,12.6c0.2,0.1,2-0.8,4.3-1.1c2.3-0.2,2.1-0.3,2.1-0.5c0-0.1-1.8-0.4-3.4,0 C76.9,11.5,75.3,12.5,75.5,12.6z" }), el("path", { className: "uagb-columns__shape-fill", d: "M15.6,13.2c0-0.1,4.3,0,6.7,0.5c2.4,0.5,5,1.9,5,2c0,0.1-2.7-0.8-5.1-1.4 C19.9,13.7,15.7,13.3,15.6,13.2z" })), - "tilt": el("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 1000 100", preserveAspectRatio: "none" }, el("path", { className: "uagb-columns__shape-fill", d: "M0,6V0h1000v100L0,6z" })), - "mountains": el("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 1000 100", preserveAspectRatio: "none" }, el("path", { className: "uagb-columns__shape-fill", opacity: "0.33", d: "M473,67.3c-203.9,88.3-263.1-34-320.3,0C66,119.1,0,59.7,0,59.7V0h1000v59.7 c0,0-62.1,26.1-94.9,29.3c-32.8,3.3-62.8-12.3-75.8-22.1C806,49.6,745.3,8.7,694.9,4.7S492.4,59,473,67.3z" }), el("path", { className: "uagb-columns__shape-fill", opacity: "0.66", d: "M734,67.3c-45.5,0-77.2-23.2-129.1-39.1c-28.6-8.7-150.3-10.1-254,39.1 s-91.7-34.4-149.2,0C115.7,118.3,0,39.8,0,39.8V0h1000v36.5c0,0-28.2-18.5-92.1-18.5C810.2,18.1,775.7,67.3,734,67.3z" }), el("path", { className: "uagb-columns__shape-fill", d: "M766.1,28.9c-200-57.5-266,65.5-395.1,19.5C242,1.8,242,5.4,184.8,20.6C128,35.8,132.3,44.9,89.9,52.5C28.6,63.7,0,0,0,0 h1000c0,0-9.9,40.9-83.6,48.1S829.6,47,766.1,28.9z" })), - "waves": el("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 1000 100", preserveAspectRatio: "none" }, el("path", { className: "uagb-columns__shape-fill", d: "M421.9,6.5c22.6-2.5,51.5,0.4,75.5,5.3c23.6,4.9,70.9,23.5,100.5,35.7c75.8,32.2,133.7,44.5,192.6,49.7 c23.6,2.1,48.7,3.5,103.4-2.5c54.7-6,106.2-25.6,106.2-25.6V0H0v30.3c0,0,72,32.6,158.4,30.5c39.2-0.7,92.8-6.7,134-22.4 c21.2-8.1,52.2-18.2,79.7-24.2C399.3,7.9,411.6,7.5,421.9,6.5z" })), - "wave_pattern": el("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 1047.1 3.7", preserveAspectRatio: "xMidYMin slice" }, el("path", { className: "uagb-columns__shape-fill", d: "M1047.1,0C557,0,8.9,0,0,0v1.6c0,0,0.6-1.5,2.7-0.3C3.9,2,6.1,4.1,8.3,3.5c0.9-0.2,1.5-1.9,1.5-1.9 s0.6-1.5,2.7-0.3C13.8,2,16,4.1,18.2,3.5c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3C23.6,2,25.9,4.1,28,3.5c0.9-0.2,1.5-1.9,1.5-1.9 c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2 c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3C63,2,65.3,4.1,67.4,3.5 C68.3,3.3,69,1.6,69,1.6s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3 C82.7,2,85,4.1,87.1,3.5c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3C92.6,2,94.8,4.1,97,3.5c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3 c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9 c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2 c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3 c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9 c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2 c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3 c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9 c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2 c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3 c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9 s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2 c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3 c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9 s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2 c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3 c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9 s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2 c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3 c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9 s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2 c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3 c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9 s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2 c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3 c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9 s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2 c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3 c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9 c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2 c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3 c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9 c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2 c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3 c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9 c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2 c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3 c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9 s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2 c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3 c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9 s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2 c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3 c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9 s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2 c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3 c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9 s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2 c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3 c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9 s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2 c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3 c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9 s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2 c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3 c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9 c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2 c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3 c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.6-0.4V0z M2.5,1.2C2.5,1.2,2.5,1.2,2.5,1.2C2.5,1.2,2.5,1.2,2.5,1.2z M2.7,1.4c0.1,0,0.1,0.1,0.1,0.1C2.8,1.4,2.8,1.4,2.7,1.4z" })), - "drops": el("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 283.5 27.8", preserveAspectRatio: "xMidYMax slice" }, el("path", { className: "uagb-columns__shape-fill", d: "M0 0v1.4c.6.7 1.1 1.4 1.4 2 2 3.8 2.2 6.6 1.8 10.8-.3 3.3-2.4 9.4 0 12.3 1.7 2 3.7 1.4 4.6-.9 1.4-3.8-.7-8.2-.6-12 .1-3.7 3.2-5.5 6.9-4.9 4 .6 4.8 4 4.9 7.4.1 1.8-1.1 7 0 8.5.6.8 1.6 1.2 2.4.5 1.4-1.1.1-5.4.1-6.9.1-3.7.3-8.6 4.1-10.5 5-2.5 6.2 1.6 5.4 5.6-.4 1.7-1 9.2 2.9 6.3 1.5-1.1.7-3.5.5-4.9-.4-2.4-.4-4.3 1-6.5.9-1.4 2.4-3.1 4.2-3 2.4.1 2.7 2.2 4 3.7 1.5 1.8 1.8 2.2 3 .1 1.1-1.9 1.2-2.8 3.6-3.3 1.3-.3 4.8-1.4 5.9-.5 1.5 1.1.6 2.8.4 4.3-.2 1.1-.6 4 1.8 3.4 1.7-.4-.3-4.1.6-5.6 1.3-2.2 5.8-1.4 7 .5 1.3 2.1.5 5.8.1 8.1s-1.2 5-.6 7.4c1.3 5.1 4.4.9 4.3-2.4-.1-4.4-2-8.8-.5-13 .9-2.4 4.6-6.6 7.7-4.5 2.7 1.8.5 7.8.2 10.3-.2 1.7-.8 4.6.2 6.2.9 1.4 2 1.5 2.6-.3.5-1.5-.9-4.5-1-6.1-.2-1.7-.4-3.7.2-5.4 1.8-5.6 3.5 2.4 6.3.6 1.4-.9 4.3-9.4 6.1-3.1.6 2.2-1.3 7.8.7 8.9 4.2 2.3 1.5-7.1 2.2-8 3.1-4 4.7 3.8 6.1 4.1 3.1.7 2.8-7.9 8.1-4.5 1.7 1.1 2.9 3.3 3.2 5.2.4 2.2-1 4.5-.6 6.6 1 4.3 4.4 1.5 4.4-1.7 0-2.7-3-8.3 1.4-9.1 4.4-.9 7.3 3.5 7.8 6.9.3 2-1.5 10.9 1.3 11.3 4.1.6-3.2-15.7 4.8-15.8 4.7-.1 2.8 4.1 3.9 6.6 1 2.4 2.1 1 2.3-.8.3-1.9-.9-3.2 1.3-4.3 5.9-2.9 5.9 5.4 5.5 8.5-.3 2-1.7 8.4 2 8.1 6.9-.5-2.8-16.9 4.8-18.7 4.7-1.2 6.1 3.6 6.3 7.1.1 1.7-1.2 8.1.6 9.1 3.5 2 1.9-7 2-8.4.2-4 1.2-9.6 6.4-9.8 4.7-.2 3.2 4.6 2.7 7.5-.4 2.2 1.3 8.6 3.8 4.4 1.1-1.9-.3-4.1-.3-6 0-1.7.4-3.2 1.3-4.6 1-1.6 2.9-3.5 5.1-2.9 2.5.6 2.3 4.1 4.1 4.9 1.9.8 1.6-.9 2.3-2.1 1.2-2.1 2.1-2.1 4.4-2.4 1.4-.2 3.6-1.5 4.9-.5 2.3 1.7-.7 4.4.1 6.5.6 1.5 2.1 1.7 2.8.3.7-1.4-1.1-3.4-.3-4.8 1.4-2.5 6.2-1.2 7.2 1 2.3 4.8-3.3 12-.2 16.3 3 4.1 3.9-2.8 3.8-4.8-.4-4.3-2.1-8.9 0-13.1 1.3-2.5 5.9-5.7 7.9-2.4 2 3.2-1.3 9.8-.8 13.4.5 4.4 3.5 3.3 2.7-.8-.4-1.9-2.4-10 .6-11.1 3.7-1.4 2.8 7.2 6.5.4 2.2-4.1 4.9-3.1 5.2 1.2.1 1.5-.6 3.1-.4 4.6.2 1.9 1.8 3.7 3.3 1.3 1-1.6-2.6-10.4 2.9-7.3 2.6 1.5 1.6 6.5 4.8 2.7 1.3-1.5 1.7-3.6 4-3.7 2.2-.1 4 2.3 4.8 4.1 1.3 2.9-1.5 8.4.9 10.3 4.2 3.3 3-5.5 2.7-6.9-.6-3.9 1-7.2 5.5-5 4.1 2.1 4.3 7.7 4.1 11.6 0 .8-.6 9.5 2.5 5.2 1.2-1.7-.1-7.7.1-9.6.3-2.9 1.2-5.5 4.3-6.2 4.5-1 7.7 1.5 7.4 5.8-.2 3.5-1.8 7.7-.5 11.1 1 2.7 3.6 2.8 5 .2 1.6-3.1 0-8.3-.4-11.6-.4-4.2-.2-7 1.8-10.8 0 0-.1.1-.1.2-.2.4-.3.7-.4.8v.1c-.1.2-.1.2 0 0v-.1l.4-.8c0-.1.1-.1.1-.2.2-.4.5-.8.8-1.2V0H0zM282.7 3.4z" })), - "clouds": el("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 283.5 27.8", preserveAspectRatio: "xMidYMax slice" }, el("path", { className: "uagb-columns__shape-fill", d: "M0 0v6.7c1.9-.8 4.7-1.4 8.5-1 9.5 1.1 11.1 6 11.1 6s2.1-.7 4.3-.2c2.1.5 2.8 2.6 2.8 2.6s.2-.5 1.4-.7c1.2-.2 1.7.2 1.7.2s0-2.1 1.9-2.8c1.9-.7 3.6.7 3.6.7s.7-2.9 3.1-4.1 4.7 0 4.7 0 1.2-.5 2.4 0 1.7 1.4 1.7 1.4h1.4c.7 0 1.2.7 1.2.7s.8-1.8 4-2.2c3.5-.4 5.3 2.4 6.2 4.4.4-.4 1-.7 1.8-.9 2.8-.7 4 .7 4 .7s1.7-5 11.1-6c9.5-1.1 12.3 3.9 12.3 3.9s1.2-4.8 5.7-5.7c4.5-.9 6.8 1.8 6.8 1.8s.6-.6 1.5-.9c.9-.2 1.9-.2 1.9-.2s5.2-6.4 12.6-3.3c7.3 3.1 4.7 9 4.7 9s1.9-.9 4 0 2.8 2.4 2.8 2.4 1.9-1.2 4.5-1.2 4.3 1.2 4.3 1.2.2-1 1.4-1.7 2.1-.7 2.1-.7-.5-3.1 2.1-5.5 5.7-1.4 5.7-1.4 1.5-2.3 4.2-1.1c2.7 1.2 1.7 5.2 1.7 5.2s.3-.1 1.3.5c.5.4.8.8.9 1.1.5-1.4 2.4-5.8 8.4-4 7.1 2.1 3.5 8.9 3.5 8.9s.8-.4 2 0 1.1 1.1 1.1 1.1 1.1-1.1 2.3-1.1 2.1.5 2.1.5 1.9-3.6 6.2-1.2 1.9 6.4 1.9 6.4 2.6-2.4 7.4 0c3.4 1.7 3.9 4.9 3.9 4.9s3.3-6.9 10.4-7.9 11.5 2.6 11.5 2.6.8 0 1.2.2c.4.2.9.9.9.9s4.4-3.1 8.3.2c1.9 1.7 1.5 5 1.5 5s.3-1.1 1.6-1.4c1.3-.3 2.3.2 2.3.2s-.1-1.2.5-1.9 1.9-.9 1.9-.9-4.7-9.3 4.4-13.4c5.6-2.5 9.2.9 9.2.9s5-6.2 15.9-6.2 16.1 8.1 16.1 8.1.7-.2 1.6-.4V0H0z" })), - "zigzag": el("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 1800 5.8", preserveAspectRatio: "none" }, el("path", { className: "uagb-columns__shape-fill", d: "M5.4.4l5.4 5.3L16.5.4l5.4 5.3L27.5.4 33 5.7 38.6.4l5.5 5.4h.1L49.9.4l5.4 5.3L60.9.4l5.5 5.3L72 .4l5.5 5.3L83.1.4l5.4 5.3L94.1.4l5.5 5.4h.2l5.6-5.4 5.5 5.3 5.6-5.3 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.4h.2l5.6-5.4 5.4 5.3L161 .4l5.4 5.3L172 .4l5.5 5.3 5.6-5.3 5.4 5.3 5.7-5.3 5.4 5.4h.2l5.6-5.4 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.4 5.3 5.6-5.3 5.5 5.4h.2l5.6-5.4 5.5 5.3L261 .4l5.4 5.3L272 .4l5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.4h.1l5.7-5.4 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.4 5.3 5.7-5.3 5.4 5.4h.2l5.6-5.4 5.5 5.3L361 .4l5.5 5.3 5.6-5.3 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.4h.1l5.7-5.4 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.4h.1l5.6-5.4 5.5 5.3L461 .4l5.5 5.3 5.6-5.3 5.4 5.3 5.7-5.3 5.4 5.3 5.6-5.3 5.5 5.4h.2l5.6-5.4 5.5 5.3 5.6-5.3 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.4h.1L550 .4l5.4 5.3L561 .4l5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.4 5.3 5.6-5.3 5.5 5.4h.2l5.6-5.4 5.5 5.3 5.6-5.3 5.4 5.3 5.7-5.3 5.4 5.3 5.6-5.3 5.5 5.4h.2L650 .4l5.5 5.3 5.6-5.3 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.4 5.4h.2l5.6-5.4 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.4 5.3 5.6-5.3 5.5 5.4h.2L750 .4l5.5 5.3 5.6-5.3 5.4 5.3 5.7-5.3 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.4h.1l5.7-5.4 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.4 5.4h.2L850 .4l5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.4h.2l5.6-5.4 5.4 5.3 5.7-5.3 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.4h.1l5.7-5.4 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.4 5.3 5.6-5.3 5.5 5.4h.2l5.6-5.4 5.5 5.3 5.6-5.3 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.4h.2l5.6-5.4 5.4 5.3 5.7-5.3 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.4 5.4h.2l5.6-5.4 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.4 5.3 5.6-5.3 5.5 5.4h.2l5.6-5.4 5.5 5.3 5.6-5.3 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.4h.1l5.7-5.4 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.4 5.4h.2l5.6-5.4 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.4h.2l5.6-5.4 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.4h.1l5.7-5.4 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.4 5.3 5.6-5.3 5.5 5.4h.2l5.6-5.4 5.5 5.3 5.6-5.3 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.4h.2l5.6-5.4 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.4 5.3 5.7-5.3 5.4 5.4h.2l5.6-5.4 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.4 5.3 5.6-5.3 5.5 5.4h.2l5.6-5.4 5.5 5.3 5.6-5.3 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.4h.1l5.6-5.4 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.4 5.3 5.7-5.3 5.4 5.4h.2l5.6-5.4 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.4h.1l5.7-5.4 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.4h.1l5.6-5.4 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.4 5.3 5.7-5.3 5.4 5.3 5.6-5.3 5.5 5.4V0H-.2v5.8z" })), - "pyramids": el("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 1000 100", preserveAspectRatio: "none" }, el("path", { className: "uagb-columns__shape-fill", d: "M761.9,44.1L643.1,27.2L333.8,98L0,3.8V0l1000,0v3.9" })), - "triangle_asymmetrical": el("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 1000 100", preserveAspectRatio: "none" }, el("path", { className: "uagb-columns__shape-fill", d: "M738,99l262-93V0H0v5.6L738,99z" })), - "tilt_opacity": el("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 2600 131.1", preserveAspectRatio: "none" }, el("path", { className: "uagb-columns__shape-fill", d: "M0 0L2600 0 2600 69.1 0 0z" }), el("path", { className: "uagb-columns__shape-fill", opacity: "0.5", d: "M0 0L2600 0 2600 69.1 0 69.1z" }), el("path", { className: "uagb-columns__shape-fill", opacity: "0.25", d: "M2600 0L0 0 0 130.1 2600 69.1z" })), - "fan_opacity": el("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 283.5 19.6", preserveAspectRatio: "none" }, el("path", { className: "uagb-columns__shape-fill", opacity: "0.33", d: "M0 0L0 18.8 141.8 4.1 283.5 18.8 283.5 0z" }), el("path", { className: "uagb-columns__shape-fill", opacity: "0.33", d: "M0 0L0 12.6 141.8 4 283.5 12.6 283.5 0z" }), el("path", { className: "uagb-columns__shape-fill", opacity: "0.33", d: "M0 0L0 6.4 141.8 4 283.5 6.4 283.5 0z" }), el("path", { className: "uagb-columns__shape-fill", d: "M0 0L0 1.2 141.8 4 283.5 1.2 283.5 0z" })), - "curve": el("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 1000 100", preserveAspectRatio: "none" }, el("path", { className: "uagb-columns__shape-fill", d: "M1000,4.3V0H0v4.3C0.9,23.1,126.7,99.2,500,100S1000,22.7,1000,4.3z" })), - "curve_asymmetrical": el("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 1000 100", preserveAspectRatio: "none" }, el("path", { className: "uagb-columns__shape-fill", d: "M0,0c0,0,0,6,0,6.7c0,18,240.2,93.6,615.2,92.6C989.8,98.5,1000,25,1000,6.7c0-0.7,0-6.7,0-6.7H0z" })), - "arrow": el("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 700 10", preserveAspectRatio: "none" }, el("path", { className: "uagb-columns__shape-fill", d: "M350,10L340,0h20L350,10z" })), - "arrow_split": el("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 1000 20", preserveAspectRatio: "none" }, el("path", { className: "uagb-columns__shape-fill", d: "M0,0v3c0,0,393.8,0,483.4,0c9.2,0,16.6,7.4,16.6,16.6c0-9.1,7.4-16.6,16.6-16.6C606.2,3,1000,3,1000,3V0H0z" })), - "book": el("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 1000 100", preserveAspectRatio: "none" }, el("path", { className: "uagb-columns__shape-fill", d: "M194,99c186.7,0.7,305-78.3,306-97.2c1,18.9,119.3,97.9,306,97.2c114.3-0.3,194,0.3,194,0.3s0-91.7,0-100c0,0,0,0,0-0 L0,0v99.3C0,99.3,79.7,98.7,194,99z" })) -}; - -/* harmony default export */ __webpack_exports__["a"] = (shapes); +/* harmony default export */ __webpack_exports__["a"] = (InfoBoxCta); /***/ }), -/* 106 */ -/*!************************************************************!*\ - !*** ./src/blocks/blockquote/components/TweetButtonCTA.js ***! - \************************************************************/ +/* 114 */ +/*!*********************************************************!*\ + !*** ./src/blocks/testimonial/components/AuthorName.js ***! + \*********************************************************/ /*! exports provided: default */ /*! exports used: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_block_icons__ = __webpack_require__(/*! ../../../../dist/blocks/uagb-controls/block-icons */ 1); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); +function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } -var Fragment = wp.element.Fragment; - - +var RichText = wp.blockEditor.RichText; +var __ = wp.i18n.__; +var createBlock = wp.blocks.createBlock; -var TweetButtonCTA = function (_React$Component) { - _inherits(TweetButtonCTA, _React$Component); +var AuthorName = function (_React$Component) { + _inherits(AuthorName, _React$Component); - function TweetButtonCTA() { - _classCallCheck(this, TweetButtonCTA); + function AuthorName() { + _classCallCheck(this, AuthorName); - return _possibleConstructorReturn(this, (TweetButtonCTA.__proto__ || Object.getPrototypeOf(TweetButtonCTA)).apply(this, arguments)); + return _possibleConstructorReturn(this, (AuthorName.__proto__ || Object.getPrototypeOf(AuthorName)).apply(this, arguments)); } - _createClass(TweetButtonCTA, [{ + _createClass(AuthorName, [{ key: "render", value: function render() { - var attributes = this.props.attributes; + var _props = this.props, + attributes = _props.attributes, + setAttributes = _props.setAttributes, + props = _props.props, + index_value = _props.index_value; - return wp.element.createElement( - "a", - { href: "/", className: "uagb-blockquote__tweet-button", target: "_blank", rel: "noopener noreferrer" }, - attributes.iconView === "icon_text" && wp.element.createElement( - Fragment, - null, - __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_block_icons__["a" /* default */].quote_tweet_icon, - wp.element.createElement( - "span", - { className: "uagb-blockquote__tweet-label" }, - attributes.iconLabel - ) - ), - attributes.iconView === "icon" && wp.element.createElement( - Fragment, - null, - __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_block_icons__["a" /* default */].quote_tweet_icon - ), - attributes.iconView === "text" && wp.element.createElement( - Fragment, - null, - wp.element.createElement( - "span", - { className: "uagb-blockquote__tweet-label" }, - attributes.iconLabel - ) - ) - ); + var test_arr = attributes.test_block[index_value]; + var author_name = ""; + if (test_arr && typeof test_arr !== "undefined") { + author_name = test_arr["name"]; + } + + var data_copy = [].concat(_toConsumableArray(attributes.test_block)); + + if (setAttributes !== "not_set") { + return wp.element.createElement(RichText, { + tagName: "div", + value: author_name, + placeholder: __("Author Name", 'ultimate-addons-for-gutenberg'), + className: "uagb-tm__author-name", + onChange: function onChange(value) { + var new_content = { "description": data_copy[index_value]["description"], "name": value, "company": data_copy[index_value]["company"], "image": data_copy[index_value]["image"] }; + data_copy[index_value] = new_content; + setAttributes({ "test_block": data_copy }); + }, + onMerge: props.mergeBlocks, + onSplit: props.insertBlocksAfter ? function (before, after) { + for (var _len = arguments.length, blocks = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { + blocks[_key - 2] = arguments[_key]; + } + + setAttributes({ content: before }); + props.insertBlocksAfter([].concat(blocks, [createBlock("core/paragraph", { content: after })])); + } : undefined, + onRemove: function onRemove() { + return props.onReplace([]); + } + }); + } else { + return wp.element.createElement(RichText.Content, { + tagName: "span", + value: author_name, + className: "uagb-tm__author-name" + }); + } } }]); - return TweetButtonCTA; + return AuthorName; }(React.Component); -/* harmony default export */ __webpack_exports__["a"] = (TweetButtonCTA); +/* harmony default export */ __webpack_exports__["a"] = (AuthorName); /***/ }), -/* 107 */ -/*!*********************************************************!*\ - !*** ./src/blocks/blockquote/components/Description.js ***! - \*********************************************************/ +/* 115 */ +/*!******************************************************!*\ + !*** ./src/blocks/testimonial/components/Company.js ***! + \******************************************************/ /*! exports provided: default */ /*! exports used: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -8376,6 +8416,8 @@ var TweetButtonCTA = function (_React$Component) { "use strict"; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); +function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } @@ -8383,38 +8425,50 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var RichText = wp.blockEditor.RichText; -var __ = wp.i18n.__; var createBlock = wp.blocks.createBlock; +var __ = wp.i18n.__; -var Description = function (_React$Component) { - _inherits(Description, _React$Component); +var Company = function (_React$Component) { + _inherits(Company, _React$Component); - function Description() { - _classCallCheck(this, Description); + function Company() { + _classCallCheck(this, Company); - return _possibleConstructorReturn(this, (Description.__proto__ || Object.getPrototypeOf(Description)).apply(this, arguments)); + return _possibleConstructorReturn(this, (Company.__proto__ || Object.getPrototypeOf(Company)).apply(this, arguments)); } - _createClass(Description, [{ + _createClass(Company, [{ key: "render", value: function render() { var _props = this.props, attributes = _props.attributes, setAttributes = _props.setAttributes, - props = _props.props; + props = _props.props, + index_value = _props.index_value; + + var test_arr = attributes.test_block[index_value]; + var company = ""; + if (test_arr && typeof test_arr !== "undefined") { + company = test_arr["company"]; + } + + var data_copy = [].concat(_toConsumableArray(attributes.test_block)); if (setAttributes !== "not_set") { return wp.element.createElement(RichText, { tagName: "div", - value: attributes.descriptionText, - placeholder: __("Write a Quote"), - className: "uagb-blockquote__content", + value: company, + className: "uagb-tm__company", onChange: function onChange(value) { - return setAttributes({ descriptionText: value }); + var new_content = { "description": data_copy[index_value]["description"], "name": data_copy[index_value]["name"], "company": value, "image": data_copy[index_value]["image"] }; + data_copy[index_value] = new_content; + setAttributes({ "test_block": data_copy }); }, + multiline: false, + placeholder: __("Company Name", 'ultimate-addons-for-gutenberg'), onMerge: props.mergeBlocks, - unstableOnSplit: props.insertBlocksAfter ? function (before, after) { + onSplit: props.insertBlocksAfter ? function (before, after) { for (var _len = arguments.length, blocks = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { blocks[_key - 2] = arguments[_key]; } @@ -8428,24 +8482,24 @@ var Description = function (_React$Component) { }); } else { return wp.element.createElement(RichText.Content, { - tagName: "div", - value: attributes.descriptionText, - className: "uagb-blockquote__content" + tagName: "span", + value: company, + className: "uagb-tm__company" }); } } }]); - return Description; + return Company; }(React.Component); -/* harmony default export */ __webpack_exports__["a"] = (Description); +/* harmony default export */ __webpack_exports__["a"] = (Company); /***/ }), -/* 108 */ -/*!********************************************************!*\ - !*** ./src/blocks/blockquote/components/AuthorText.js ***! - \********************************************************/ +/* 116 */ +/*!**********************************************************!*\ + !*** ./src/blocks/testimonial/components/Description.js ***! + \**********************************************************/ /*! exports provided: default */ /*! exports used: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -8453,6 +8507,8 @@ var Description = function (_React$Component) { "use strict"; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); +function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } @@ -8463,35 +8519,47 @@ var RichText = wp.blockEditor.RichText; var __ = wp.i18n.__; var createBlock = wp.blocks.createBlock; -var AuthorText = function (_React$Component) { - _inherits(AuthorText, _React$Component); +var Description = function (_React$Component) { + _inherits(Description, _React$Component); - function AuthorText() { - _classCallCheck(this, AuthorText); + function Description() { + _classCallCheck(this, Description); - return _possibleConstructorReturn(this, (AuthorText.__proto__ || Object.getPrototypeOf(AuthorText)).apply(this, arguments)); + return _possibleConstructorReturn(this, (Description.__proto__ || Object.getPrototypeOf(Description)).apply(this, arguments)); } - _createClass(AuthorText, [{ + _createClass(Description, [{ key: "render", value: function render() { var _props = this.props, attributes = _props.attributes, setAttributes = _props.setAttributes, - props = _props.props; + props = _props.props, + index_value = _props.index_value; + + + var test_arr = attributes.test_block[index_value]; + var description = ""; + if (test_arr && typeof test_arr !== "undefined") { + description = test_arr["description"]; + } + var data_copy = [].concat(_toConsumableArray(attributes.test_block)); if (setAttributes !== "not_set") { return wp.element.createElement(RichText, { tagName: "div", - value: attributes.author, - placeholder: __("Author"), - className: "uagb-blockquote__author", + value: description, + placeholder: __("Write Description", 'ultimate-addons-for-gutenberg'), + className: "uagb-tm__desc", onChange: function onChange(value) { - return setAttributes({ author: value }); + + var new_content = { "description": value, "name": data_copy[index_value]["name"], "company": data_copy[index_value]["company"], "image": data_copy[index_value]["image"] }; + data_copy[index_value] = new_content; + setAttributes({ "test_block": data_copy }); }, onMerge: props.mergeBlocks, - unstableOnSplit: props.insertBlocksAfter ? function (before, after) { + onSplit: props.insertBlocksAfter ? function (before, after) { for (var _len = arguments.length, blocks = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { blocks[_key - 2] = arguments[_key]; } @@ -8505,10560 +8573,10302 @@ var AuthorText = function (_React$Component) { }); } else { return wp.element.createElement(RichText.Content, { - tagName: "cite", - value: attributes.author, - className: "uagb-blockquote__author" + tagName: "div", + value: description, + className: "uagb-tm__desc" }); } } }]); - return AuthorText; + return Description; }(React.Component); -/* harmony default export */ __webpack_exports__["a"] = (AuthorText); +/* harmony default export */ __webpack_exports__["a"] = (Description); /***/ }), -/* 109 */ -/*!*********************************************************!*\ - !*** ./src/blocks/blockquote/components/AuthorImage.js ***! - \*********************************************************/ +/* 117 */ +/*!*******************************************!*\ + !*** ./src/blocks/testimonial/classes.js ***! + \*******************************************/ /*! exports provided: default */ /*! exports used: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - +/** + * Returns Dynamic Generated CSS + */ + +function PositionClasses(attributes) { + + var iconimgStyle_class = ""; + iconimgStyle_class += " uagb-tm__imgicon-style-" + attributes.iconimgStyle + " "; + iconimgStyle_class += "uagb-tm__image-position-" + attributes.imagePosition + " "; + + if (attributes.imagePosition == "left" || attributes.imagePosition == "right") { + iconimgStyle_class += "uagb-tm__image-aligned-" + attributes.imageAlignment + " "; + if (attributes.stack !== "none") { + iconimgStyle_class += "uagb-tm-stacked-" + attributes.stack + " "; + if (attributes.imagePosition === "right") { + iconimgStyle_class += "uagb-tm-reverse-order-" + attributes.stack + " "; + } + } + } + + iconimgStyle_class += "uagb-tm__bg-type-" + attributes.backgroundType + " "; + + return [iconimgStyle_class]; +} + +/* harmony default export */ __webpack_exports__["a"] = (PositionClasses); + +/***/ }), +/* 118 */ +/*!******************************************!*\ + !*** ./src/blocks/social-share/links.js ***! + \******************************************/ +/*! exports provided: default */ +/*! exports used: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +var links = { + facebook: "https://www.facebook.com/sharer.php?u=", + twitter: "https://twitter.com/share?url=", + google: "https://plus.google.com/share?url=", + pinterest: "https://pinterest.com/pin/create/link/?url=", + linkedin: "https://www.linkedin.com/shareArticle?url=", + digg: "http://digg.com/submit?url=", + blogger: "https://www.blogger.com/blog_this.pyra?t&u=", + reddit: "https://reddit.com/submit?url=", + stumbleupon: "https://www.stumbleupon.com/submit?url=", + tumblr: "https://www.tumblr.com/widgets/share/tool?canonicalUrl=", + myspace: "https://myspace.com/post?u=", + email: "mailto:?body=" +}; + +/* harmony default export */ __webpack_exports__["a"] = (links); + +/***/ }), +/* 119 */ +/*!*********************************************************!*\ + !*** ./src/blocks/price-list-child/components/Title.js ***! + \*********************************************************/ +/*! exports provided: default */ +/*! exports used: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } -var AuthorImage = function (_React$Component) { - _inherits(AuthorImage, _React$Component); +var RichText = wp.blockEditor.RichText; +var __ = wp.i18n.__; - function AuthorImage() { - _classCallCheck(this, AuthorImage); +var Title = function (_React$Component) { + _inherits(Title, _React$Component); - return _possibleConstructorReturn(this, (AuthorImage.__proto__ || Object.getPrototypeOf(AuthorImage)).apply(this, arguments)); + function Title() { + _classCallCheck(this, Title); + + return _possibleConstructorReturn(this, (Title.__proto__ || Object.getPrototypeOf(Title)).apply(this, arguments)); } - _createClass(AuthorImage, [{ + _createClass(Title, [{ key: "render", value: function render() { - var attributes = this.props.attributes; + var _props = this.props, + attributes = _props.attributes, + setAttributes = _props.setAttributes, + index_value = _props.index_value; + var author_title = ""; - var url_chk = ""; - if (typeof attributes.authorImage !== "undefined" && attributes.authorImage !== null && attributes.authorImage !== "") { - url_chk = attributes.authorImage.url; + if (typeof index_value !== "undefined") { + var test_arr = attributes.rest_menu_item_arr[index_value]; + if (test_arr) { + if (typeof test_arr !== "undefined") { + author_title = test_arr["title"]; + } + } + } else { + author_title = attributes.title; } - var url = ""; - if (url_chk !== "") { - var size = attributes.authorImage.sizes; - var authorImageSize = attributes.authorImageSize; - - if (typeof size !== "undefined" && typeof size[authorImageSize] !== "undefined") { - url = size[authorImageSize].url; - } else { - url = url_chk; - } + if (setAttributes !== "not_set") { - return wp.element.createElement( - "div", - { className: "uagb-blockquote__author-image" }, - wp.element.createElement("img", { - className: "", - src: url, - alt: attributes.authorImage.alt - }) - ); + return wp.element.createElement(RichText, { + tagName: attributes.headingTag, + value: author_title, + placeholder: __("Write a Title"), + className: "uagb-rm__title", + onChange: function onChange(value) { + setAttributes({ "title": value }); + } + }); } else { - return null; + return wp.element.createElement(RichText.Content, { + tagName: attributes.headingTag, + value: author_title, + className: "uagb-rm__title" + }); } } }]); - return AuthorImage; + return Title; }(React.Component); -/* harmony default export */ __webpack_exports__["a"] = (AuthorImage); +/* harmony default export */ __webpack_exports__["a"] = (Title); /***/ }), -/* 110 */ -/*!***************************************************!*\ - !*** ./src/blocks/advanced-heading/attributes.js ***! - \***************************************************/ +/* 120 */ +/*!*********************************************************!*\ + !*** ./src/blocks/price-list-child/components/Price.js ***! + \*********************************************************/ /*! exports provided: default */ /*! exports used: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -var attributes = { - block_id: { - type: "string" - }, - classMigrate: { - type: "boolean", - default: false - }, - headingTitle: { - source: "html", - selector: "h1,h2,h3,h4,h5,h6" - }, - headingId: { - type: "string" - }, - headingDesc: { - source: "html", - selector: "p", - default: "" - }, - headingAlign: { - type: "string", - default: "center" - }, - headingColor: { - type: "string" - }, - subHeadingColor: { - type: "string" - }, - separatorColor: { - type: "string" - }, - headingTag: { - type: "string", - default: "h2" - }, - level: { - type: "number", - default: 2 - }, - seperatorStyle: { - type: "string", - default: "solid" - }, - separatorHeight: { - type: "number" - }, - separatorWidth: { - type: "number" - }, - separatorWidthType: { - type: "string", - default: "%" - }, - headSpace: { - type: "number", - default: 15 - }, - headFontFamily: { - type: "string", - default: "Default" - }, - headFontWeight: { - type: "string" - }, - headFontSubset: { - type: "string" - }, - headFontSizeType: { - type: "string", - default: "px" - }, - headLineHeightType: { - type: "string", - default: "em" - }, - headFontSize: { - type: "number" - }, - headFontSizeTablet: { - type: "number" - }, - headFontSizeMobile: { - type: "number" - }, - headLineHeight: { - type: "number" - }, - headLineHeightTablet: { - type: "number" - }, - headLineHeightMobile: { - type: "number" - }, - subHeadFontFamily: { - type: "string", - default: "" - }, - subHeadFontWeight: { - type: "string" - }, - subHeadFontSubset: { - type: "string" - }, - subHeadFontSize: { - type: "number" - }, - subHeadFontSizeType: { - type: "string", - default: "px" - }, - subHeadFontSizeTablet: { - type: "number" - }, - subHeadFontSizeMobile: { - type: "number" - }, - subHeadLineHeight: { - type: "number" - }, - subHeadLineHeightType: { - type: "string", - default: "em" - }, - subHeadLineHeightTablet: { - type: "number" - }, - subHeadLineHeightMobile: { - type: "number" - }, - separatorSpace: { - type: "number", - default: 15 - }, - headLoadGoogleFonts: { - type: "boolean", - default: false - }, - subHeadLoadGoogleFonts: { - type: "boolean", - default: false - } -}; +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); -/* harmony default export */ __webpack_exports__["a"] = (attributes); +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -/***/ }), -/* 111 */ -/*!**********************************************!*\ - !*** ./node_modules/lodash/_baseIteratee.js ***! - \**********************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } -var baseMatches = __webpack_require__(/*! ./_baseMatches */ 192), - baseMatchesProperty = __webpack_require__(/*! ./_baseMatchesProperty */ 243), - identity = __webpack_require__(/*! ./identity */ 47), - isArray = __webpack_require__(/*! ./isArray */ 14), - property = __webpack_require__(/*! ./property */ 250); +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } -/** - * The base implementation of `_.iteratee`. - * - * @private - * @param {*} [value=_.identity] The value to convert to an iteratee. - * @returns {Function} Returns the iteratee. - */ -function baseIteratee(value) { - // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9. - // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details. - if (typeof value == 'function') { - return value; - } - if (value == null) { - return identity; - } - if (typeof value == 'object') { - return isArray(value) - ? baseMatchesProperty(value[0], value[1]) - : baseMatches(value); - } - return property(value); -} +var RichText = wp.blockEditor.RichText; +var __ = wp.i18n.__; -module.exports = baseIteratee; +var Price = function (_React$Component) { + _inherits(Price, _React$Component); + function Price() { + _classCallCheck(this, Price); -/***/ }), -/* 112 */ -/*!*******************************************!*\ - !*** ./node_modules/lodash/isFunction.js ***! - \*******************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { + return _possibleConstructorReturn(this, (Price.__proto__ || Object.getPrototypeOf(Price)).apply(this, arguments)); + } -var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ 20), - isObject = __webpack_require__(/*! ./isObject */ 13); + _createClass(Price, [{ + key: "render", + value: function render() { + var _props = this.props, + attributes = _props.attributes, + setAttributes = _props.setAttributes, + index_value = _props.index_value; -/** `Object#toString` result references. */ -var asyncTag = '[object AsyncFunction]', - funcTag = '[object Function]', - genTag = '[object GeneratorFunction]', - proxyTag = '[object Proxy]'; -/** - * Checks if `value` is classified as a `Function` object. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a function, else `false`. - * @example - * - * _.isFunction(_); - * // => true - * - * _.isFunction(/abc/); - * // => false - */ -function isFunction(value) { - if (!isObject(value)) { - return false; - } - // The use of `Object#toString` avoids issues with the `typeof` operator - // in Safari 9 which returns 'object' for typed arrays and other constructors. - var tag = baseGetTag(value); - return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag; -} + var price = ""; + if (typeof index_value !== "undefined") { + var rest_arr = attributes.rest_menu_item_arr[index_value]; + if (rest_arr) { + if (typeof rest_arr !== "undefined") { + price = rest_arr["price"]; + } + } + } else { + price = attributes.price; + } -module.exports = isFunction; + if (setAttributes !== "not_set") { + return wp.element.createElement(RichText, { + tagName: "div", + value: price, + className: "uagb-rm__price", + placeholder: __("Price"), + onChange: function onChange(value) { + setAttributes({ "price": value }); + } + }); + } else { + return wp.element.createElement(RichText.Content, { + tagName: "span", + value: price, + className: "uagb-rm__price" + }); + } + } + }]); + return Price; +}(React.Component); + +/* harmony default export */ __webpack_exports__["a"] = (Price); /***/ }), -/* 113 */ -/*!********************************************!*\ - !*** ./node_modules/lodash/_freeGlobal.js ***! - \********************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { +/* 121 */ +/*!***************************************************************!*\ + !*** ./src/blocks/price-list-child/components/Description.js ***! + \***************************************************************/ +/*! exports provided: default */ +/*! exports used: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { -/* WEBPACK VAR INJECTION */(function(global) {/** Detect free variable `global` from Node.js. */ -var freeGlobal = typeof global == 'object' && global && global.Object === Object && global; +"use strict"; +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); -module.exports = freeGlobal; +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(/*! ./../webpack/buildin/global.js */ 54))) +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } -/***/ }), -/* 114 */ -/*!******************************************!*\ - !*** ./node_modules/lodash/_toSource.js ***! - \******************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports) { +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } -/** Used for built-in method references. */ -var funcProto = Function.prototype; +var RichText = wp.blockEditor.RichText; +var __ = wp.i18n.__; -/** Used to resolve the decompiled source of functions. */ -var funcToString = funcProto.toString; +var Description = function (_React$Component) { + _inherits(Description, _React$Component); -/** - * Converts `func` to its source code. - * - * @private - * @param {Function} func The function to convert. - * @returns {string} Returns the source code. - */ -function toSource(func) { - if (func != null) { - try { - return funcToString.call(func); - } catch (e) {} - try { - return (func + ''); - } catch (e) {} - } - return ''; -} + function Description() { + _classCallCheck(this, Description); -module.exports = toSource; + return _possibleConstructorReturn(this, (Description.__proto__ || Object.getPrototypeOf(Description)).apply(this, arguments)); + } + _createClass(Description, [{ + key: "render", + value: function render() { + var _props = this.props, + attributes = _props.attributes, + setAttributes = _props.setAttributes, + index_value = _props.index_value; -/***/ }), -/* 115 */ -/*!*********************************************!*\ - !*** ./node_modules/lodash/_baseIsEqual.js ***! - \*********************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { -var baseIsEqualDeep = __webpack_require__(/*! ./_baseIsEqualDeep */ 222), - isObjectLike = __webpack_require__(/*! ./isObjectLike */ 17); + var description = ""; + if (typeof index_value !== "undefined") { + var rest_arr = attributes.rest_menu_item_arr[index_value]; + if (rest_arr) { + if (typeof rest_arr !== "undefined") { + description = rest_arr["description"]; + } + } + } else { + description = attributes.description; + } -/** - * The base implementation of `_.isEqual` which supports partial comparisons - * and tracks traversed objects. - * - * @private - * @param {*} value The value to compare. - * @param {*} other The other value to compare. - * @param {boolean} bitmask The bitmask flags. - * 1 - Unordered comparison - * 2 - Partial comparison - * @param {Function} [customizer] The function to customize comparisons. - * @param {Object} [stack] Tracks traversed `value` and `other` objects. - * @returns {boolean} Returns `true` if the values are equivalent, else `false`. - */ -function baseIsEqual(value, other, bitmask, customizer, stack) { - if (value === other) { - return true; - } - if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) { - return value !== value && other !== other; - } - return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack); -} + if (setAttributes !== "not_set") { + return wp.element.createElement(RichText, { + tagName: "div", + value: description, + placeholder: __("Write a Description"), + className: "uagb-rm__desc", + onChange: function onChange(value) { + setAttributes({ "description": value }); + } + }); + } else { + return wp.element.createElement(RichText.Content, { + tagName: "div", + value: description, + className: "uagb-rm__desc" + }); + } + } + }]); -module.exports = baseIsEqual; + return Description; +}(React.Component); +/* harmony default export */ __webpack_exports__["a"] = (Description); /***/ }), -/* 116 */ -/*!*********************************************!*\ - !*** ./node_modules/lodash/_equalArrays.js ***! - \*********************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { - -var SetCache = __webpack_require__(/*! ./_SetCache */ 223), - arraySome = __webpack_require__(/*! ./_arraySome */ 226), - cacheHas = __webpack_require__(/*! ./_cacheHas */ 227); +/* 122 */ +/*!*****************************************************************!*\ + !*** ./src/blocks/price-list-child/components/RestMenuImage.js ***! + \*****************************************************************/ +/*! exports provided: default */ +/*! exports used: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { -/** Used to compose bitmasks for value comparisons. */ -var COMPARE_PARTIAL_FLAG = 1, - COMPARE_UNORDERED_FLAG = 2; +"use strict"; +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); -/** - * A specialized version of `baseIsEqualDeep` for arrays with support for - * partial deep comparisons. - * - * @private - * @param {Array} array The array to compare. - * @param {Array} other The other array to compare. - * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details. - * @param {Function} customizer The function to customize comparisons. - * @param {Function} equalFunc The function to determine equivalents of values. - * @param {Object} stack Tracks traversed `array` and `other` objects. - * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`. - */ -function equalArrays(array, other, bitmask, customizer, equalFunc, stack) { - var isPartial = bitmask & COMPARE_PARTIAL_FLAG, - arrLength = array.length, - othLength = other.length; +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - if (arrLength != othLength && !(isPartial && othLength > arrLength)) { - return false; - } - // Assume cyclic values are equal. - var stacked = stack.get(array); - if (stacked && stack.get(other)) { - return stacked == other; - } - var index = -1, - result = true, - seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined; +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - stack.set(array, other); - stack.set(other, array); +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - // Ignore non-index properties. - while (++index < arrLength) { - var arrValue = array[index], - othValue = other[index]; +var RestMenuImage = function (_React$Component) { + _inherits(RestMenuImage, _React$Component); - if (customizer) { - var compared = isPartial - ? customizer(othValue, arrValue, index, other, array, stack) - : customizer(arrValue, othValue, index, array, other, stack); - } - if (compared !== undefined) { - if (compared) { - continue; - } - result = false; - break; - } - // Recursively compare arrays (susceptible to call stack limits). - if (seen) { - if (!arraySome(other, function(othValue, othIndex) { - if (!cacheHas(seen, othIndex) && - (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) { - return seen.push(othIndex); - } - })) { - result = false; - break; - } - } else if (!( - arrValue === othValue || - equalFunc(arrValue, othValue, bitmask, customizer, stack) - )) { - result = false; - break; - } - } - stack['delete'](array); - stack['delete'](other); - return result; -} + function RestMenuImage() { + _classCallCheck(this, RestMenuImage); -module.exports = equalArrays; + return _possibleConstructorReturn(this, (RestMenuImage.__proto__ || Object.getPrototypeOf(RestMenuImage)).apply(this, arguments)); + } + _createClass(RestMenuImage, [{ + key: "render", + value: function render() { + var _props = this.props, + attributes = _props.attributes, + index_value = _props.index_value; -/***/ }), -/* 117 */ -/*!********************************************!*\ - !*** ./node_modules/lodash/_Uint8Array.js ***! - \********************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { + var url_check = ""; + var image_arr = ""; -var root = __webpack_require__(/*! ./_root */ 12); + if (typeof index_value !== "undefined") { + var image_array = attributes.rest_menu_item_arr[index_value]; + if (typeof image_array !== "undefined") { + image_arr = image_array['image']; + } + } else { + if (attributes.image !== "") { + image_arr = attributes.image; + } + } -/** Built-in value references. */ -var Uint8Array = root.Uint8Array; + if (image_arr && typeof image_arr !== "undefined") { + var image = ''; + if (typeof image_arr !== "undefined") { + image = image_arr; + } else { + image = attributes.image; + } + var url = ""; -module.exports = Uint8Array; + if (typeof image !== "undefined" && image !== null && image !== "") { + url_check = image.url; + } + if (url_check !== "") { + var size = image.sizes; + var imageSize = attributes.imageSize; + if (typeof size !== "undefined" && typeof size[imageSize] !== "undefined") { + url = size[imageSize].url; + } else { + url = url_check; + } -/***/ }), -/* 118 */ -/*!********************************************!*\ - !*** ./node_modules/lodash/_getAllKeys.js ***! - \********************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { + return wp.element.createElement( + "div", + { className: "uagb-rm__image-content" }, + wp.element.createElement( + "div", + { className: "uagb-rm__image" }, + wp.element.createElement("img", { + className: "", + src: url, + alt: image.alt + }) + ) + ); + } else { + return null; + } + } else { + return null; + } + } + }]); -var baseGetAllKeys = __webpack_require__(/*! ./_baseGetAllKeys */ 119), - getSymbols = __webpack_require__(/*! ./_getSymbols */ 57), - keys = __webpack_require__(/*! ./keys */ 23); + return RestMenuImage; +}(React.Component); -/** - * Creates an array of own enumerable property names and symbols of `object`. - * - * @private - * @param {Object} object The object to query. - * @returns {Array} Returns the array of property names and symbols. - */ -function getAllKeys(object) { - return baseGetAllKeys(object, keys, getSymbols); -} +/* harmony default export */ __webpack_exports__["a"] = (RestMenuImage); -module.exports = getAllKeys; +/***/ }), +/* 123 */ +/*!****************************************!*\ + !*** ./src/blocks/timeline/style.scss ***! + \****************************************/ +/*! dynamic exports provided */ +/***/ (function(module, exports) { +// removed by extract-text-webpack-plugin /***/ }), -/* 119 */ -/*!************************************************!*\ - !*** ./node_modules/lodash/_baseGetAllKeys.js ***! - \************************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { +/* 124 */ +/*!*******************************************************!*\ + !*** ./src/blocks/call-to-action/components/Title.js ***! + \*******************************************************/ +/*! exports provided: default */ +/*! exports used: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { -var arrayPush = __webpack_require__(/*! ./_arrayPush */ 56), - isArray = __webpack_require__(/*! ./isArray */ 14); +"use strict"; +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); -/** - * The base implementation of `getAllKeys` and `getAllKeysIn` which uses - * `keysFunc` and `symbolsFunc` to get the enumerable property names and - * symbols of `object`. - * - * @private - * @param {Object} object The object to query. - * @param {Function} keysFunc The function to get the keys of `object`. - * @param {Function} symbolsFunc The function to get the symbols of `object`. - * @returns {Array} Returns the array of property names and symbols. - */ -function baseGetAllKeys(object, keysFunc, symbolsFunc) { - var result = keysFunc(object); - return isArray(object) ? result : arrayPush(result, symbolsFunc(object)); -} +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -module.exports = baseGetAllKeys; +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } -/***/ }), -/* 120 */ -/*!******************************************!*\ - !*** ./node_modules/lodash/stubArray.js ***! - \******************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports) { +var RichText = wp.blockEditor.RichText; +var createBlock = wp.blocks.createBlock; +var __ = wp.i18n.__; -/** - * This method returns a new empty array. - * - * @static - * @memberOf _ - * @since 4.13.0 - * @category Util - * @returns {Array} Returns the new empty array. - * @example - * - * var arrays = _.times(2, _.stubArray); - * - * console.log(arrays); - * // => [[], []] - * - * console.log(arrays[0] === arrays[1]); - * // => false - */ -function stubArray() { - return []; -} +var Title = function (_React$Component) { + _inherits(Title, _React$Component); -module.exports = stubArray; + function Title() { + _classCallCheck(this, Title); + return _possibleConstructorReturn(this, (Title.__proto__ || Object.getPrototypeOf(Title)).apply(this, arguments)); + } -/***/ }), -/* 121 */ -/*!***********************************************!*\ - !*** ./node_modules/lodash/_arrayLikeKeys.js ***! - \***********************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { + _createClass(Title, [{ + key: "render", + value: function render() { + var _props = this.props, + attributes = _props.attributes, + setAttributes = _props.setAttributes, + props = _props.props; -var baseTimes = __webpack_require__(/*! ./_baseTimes */ 122), - isArguments = __webpack_require__(/*! ./isArguments */ 58), - isArray = __webpack_require__(/*! ./isArray */ 14), - isBuffer = __webpack_require__(/*! ./isBuffer */ 59), - isIndex = __webpack_require__(/*! ./_isIndex */ 40), - isTypedArray = __webpack_require__(/*! ./isTypedArray */ 123); -/** Used for built-in method references. */ -var objectProto = Object.prototype; + if (setAttributes !== "not_set") { + return wp.element.createElement(RichText, { + tagName: attributes.titleTag, + placeholder: __("Write a Heading"), + value: attributes.ctaTitle, + className: "uagb-cta__title", + onChange: function onChange(value) { + return setAttributes({ ctaTitle: value }); + }, + multiline: false, + onMerge: props.mergeBlocks, + onSplit: props.insertBlocksAfter ? function (before, after) { + for (var _len = arguments.length, blocks = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { + blocks[_key - 2] = arguments[_key]; + } -/** Used to check objects for own properties. */ -var hasOwnProperty = objectProto.hasOwnProperty; + setAttributes({ content: before }); + props.insertBlocksAfter([].concat(blocks, [createBlock("core/paragraph", { content: after })])); + } : undefined, + onRemove: function onRemove() { + return props.onReplace([]); + } + }); + } else { + return wp.element.createElement(RichText.Content, { + tagName: attributes.titleTag, + value: attributes.ctaTitle, + className: "uagb-cta__title" + }); + } + } + }]); -/** - * Creates an array of the enumerable property names of the array-like `value`. - * - * @private - * @param {*} value The value to query. - * @param {boolean} inherited Specify returning inherited property names. - * @returns {Array} Returns the array of property names. - */ -function arrayLikeKeys(value, inherited) { - var isArr = isArray(value), - isArg = !isArr && isArguments(value), - isBuff = !isArr && !isArg && isBuffer(value), - isType = !isArr && !isArg && !isBuff && isTypedArray(value), - skipIndexes = isArr || isArg || isBuff || isType, - result = skipIndexes ? baseTimes(value.length, String) : [], - length = result.length; + return Title; +}(React.Component); - for (var key in value) { - if ((inherited || hasOwnProperty.call(value, key)) && - !(skipIndexes && ( - // Safari 9 has enumerable `arguments.length` in strict mode. - key == 'length' || - // Node.js 0.10 has enumerable non-index properties on buffers. - (isBuff && (key == 'offset' || key == 'parent')) || - // PhantomJS 2 has enumerable non-index properties on typed arrays. - (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) || - // Skip index properties. - isIndex(key, length) - ))) { - result.push(key); - } - } - return result; -} +/* harmony default export */ __webpack_exports__["a"] = (Title); -module.exports = arrayLikeKeys; +/***/ }), +/* 125 */ +/*!*************************************************************!*\ + !*** ./src/blocks/call-to-action/components/Description.js ***! + \*************************************************************/ +/*! exports provided: default */ +/*! exports used: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { +"use strict"; +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); -/***/ }), -/* 122 */ -/*!*******************************************!*\ - !*** ./node_modules/lodash/_baseTimes.js ***! - \*******************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports) { +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -/** - * The base implementation of `_.times` without support for iteratee shorthands - * or max array length checks. - * - * @private - * @param {number} n The number of times to invoke `iteratee`. - * @param {Function} iteratee The function invoked per iteration. - * @returns {Array} Returns the array of results. - */ -function baseTimes(n, iteratee) { - var index = -1, - result = Array(n); +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - while (++index < n) { - result[index] = iteratee(index); - } - return result; -} +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } -module.exports = baseTimes; +var RichText = wp.blockEditor.RichText; +var __ = wp.i18n.__; +var createBlock = wp.blocks.createBlock; +var Description = function (_React$Component) { + _inherits(Description, _React$Component); -/***/ }), -/* 123 */ -/*!*********************************************!*\ - !*** ./node_modules/lodash/isTypedArray.js ***! - \*********************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { + function Description() { + _classCallCheck(this, Description); -var baseIsTypedArray = __webpack_require__(/*! ./_baseIsTypedArray */ 235), - baseUnary = __webpack_require__(/*! ./_baseUnary */ 41), - nodeUtil = __webpack_require__(/*! ./_nodeUtil */ 42); + return _possibleConstructorReturn(this, (Description.__proto__ || Object.getPrototypeOf(Description)).apply(this, arguments)); + } -/* Node.js helper references. */ -var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray; + _createClass(Description, [{ + key: "render", + value: function render() { + var _props = this.props, + attributes = _props.attributes, + setAttributes = _props.setAttributes, + props = _props.props; -/** - * Checks if `value` is classified as a typed array. - * - * @static - * @memberOf _ - * @since 3.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a typed array, else `false`. - * @example - * - * _.isTypedArray(new Uint8Array); - * // => true - * - * _.isTypedArray([]); - * // => false - */ -var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray; -module.exports = isTypedArray; + if (setAttributes !== "not_set") { + return wp.element.createElement(RichText, { + tagName: "p", + value: attributes.description, + placeholder: __("Write a Description"), + className: "uagb-cta__desc", + onChange: function onChange(value) { + return setAttributes({ description: value }); + }, + onMerge: props.mergeBlocks, + onSplit: props.insertBlocksAfter ? function (before, after) { + for (var _len = arguments.length, blocks = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { + blocks[_key - 2] = arguments[_key]; + } + setAttributes({ content: before }); + props.insertBlocksAfter([].concat(blocks, [createBlock("core/paragraph", { content: after })])); + } : undefined, + onRemove: function onRemove() { + return props.onReplace([]); + } + }); + } else { + return wp.element.createElement(RichText.Content, { + tagName: "p", + value: attributes.description, + className: "uagb-cta__desc" + }); + } + } + }]); -/***/ }), -/* 124 */ -/*!*****************************************!*\ - !*** ./node_modules/lodash/_overArg.js ***! - \*****************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports) { + return Description; +}(React.Component); -/** - * Creates a unary function that invokes `func` with its argument transformed. - * - * @private - * @param {Function} func The function to wrap. - * @param {Function} transform The argument transform. - * @returns {Function} Returns the new function. - */ -function overArg(func, transform) { - return function(arg) { - return func(transform(arg)); - }; -} +/* harmony default export */ __webpack_exports__["a"] = (Description); -module.exports = overArg; +/***/ }), +/* 126 */ +/*!**********************************************!*\ + !*** ./src/blocks/call-to-action/classes.js ***! + \**********************************************/ +/*! exports provided: default */ +/*! exports used: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { +"use strict"; +/** + * Returns Dynamic Generated Classes + */ -/***/ }), -/* 125 */ -/*!****************************************************!*\ - !*** ./node_modules/lodash/_isStrictComparable.js ***! - \****************************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { +function CtaPositionClasses(attributes) { -var isObject = __webpack_require__(/*! ./isObject */ 13); + var iconimgStyle_class = ""; -/** - * Checks if `value` is suitable for strict equality comparisons, i.e. `===`. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` if suitable for strict - * equality comparisons, else `false`. - */ -function isStrictComparable(value) { - return value === value && !isObject(value); -} + iconimgStyle_class += "uagb-cta__block" + " "; + iconimgStyle_class += "uagb-cta__icon-position-" + attributes.ctaPosition + " "; -module.exports = isStrictComparable; + if (attributes.ctaPosition === "right") { + iconimgStyle_class += "uagb-cta__content-right" + " "; + } + if (attributes.ctaPosition === "right" && attributes.stack !== "none") { + iconimgStyle_class += "uagb-cta__content-stacked-" + attributes.stack + " "; + } -/***/ }), -/* 126 */ -/*!*********************************************************!*\ - !*** ./node_modules/lodash/_matchesStrictComparable.js ***! - \*********************************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports) { + if (attributes.ctaPosition !== "below-title") { + iconimgStyle_class += "uagb-cta__button-valign-" + attributes.buttonAlign + " "; + } -/** - * A specialized version of `matchesProperty` for source values suitable - * for strict equality comparisons, i.e. `===`. - * - * @private - * @param {string} key The key of the property to get. - * @param {*} srcValue The value to match. - * @returns {Function} Returns the new spec function. - */ -function matchesStrictComparable(key, srcValue) { - return function(object) { - if (object == null) { - return false; - } - return object[key] === srcValue && - (srcValue !== undefined || (key in Object(object))); - }; -} + if (attributes.ctaType !== "text" && attributes.ctaType !== "button") { + iconimgStyle_class += "uagb-cta__button-type-none" + " "; + } -module.exports = matchesStrictComparable; + return [iconimgStyle_class]; +} +/* harmony default export */ __webpack_exports__["a"] = (CtaPositionClasses); /***/ }), /* 127 */ -/*!************************************!*\ - !*** ./node_modules/lodash/get.js ***! - \************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { +/*!*****************************************************!*\ + !*** ./src/blocks/call-to-action/components/CTA.js ***! + \*****************************************************/ +/*! exports provided: default */ +/*! exports used: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { -var baseGet = __webpack_require__(/*! ./_baseGet */ 45); +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_classnames__ = __webpack_require__(/*! classnames */ 0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_classnames__); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_renderIcon__ = __webpack_require__(/*! ../../../../dist/blocks/uagb-controls/renderIcon */ 2); +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); -/** - * Gets the value at `path` of `object`. If the resolved value is - * `undefined`, the `defaultValue` is returned in its place. - * - * @static - * @memberOf _ - * @since 3.7.0 - * @category Object - * @param {Object} object The object to query. - * @param {Array|string} path The path of the property to get. - * @param {*} [defaultValue] The value returned for `undefined` resolved values. - * @returns {*} Returns the resolved value. - * @example - * - * var object = { 'a': [{ 'b': { 'c': 3 } }] }; - * - * _.get(object, 'a[0].b.c'); - * // => 3 - * - * _.get(object, ['a', '0', 'b', 'c']); - * // => 3 - * - * _.get(object, 'a.b.c', 'default'); - * // => 'default' - */ -function get(object, path, defaultValue) { - var result = object == null ? undefined : baseGet(object, path); - return result === undefined ? defaultValue : result; -} +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -module.exports = get; +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } -/***/ }), -/* 128 */ -/*!*****************************************!*\ - !*** ./node_modules/lodash/toString.js ***! - \*****************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { +var __ = wp.i18n.__; -var baseToString = __webpack_require__(/*! ./_baseToString */ 129); -/** - * Converts `value` to a string. An empty string is returned for `null` - * and `undefined` values. The sign of `-0` is preserved. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to convert. - * @returns {string} Returns the converted string. - * @example - * - * _.toString(null); - * // => '' - * - * _.toString(-0); - * // => '-0' - * - * _.toString([1, 2, 3]); - * // => '1,2,3' - */ -function toString(value) { - return value == null ? '' : baseToString(value); -} -module.exports = toString; -/***/ }), -/* 129 */ -/*!**********************************************!*\ - !*** ./node_modules/lodash/_baseToString.js ***! - \**********************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { +var CTA = function (_React$Component) { + _inherits(CTA, _React$Component); -var Symbol = __webpack_require__(/*! ./_Symbol */ 22), - arrayMap = __webpack_require__(/*! ./_arrayMap */ 34), - isArray = __webpack_require__(/*! ./isArray */ 14), - isSymbol = __webpack_require__(/*! ./isSymbol */ 46); + function CTA() { + _classCallCheck(this, CTA); -/** Used as references for various `Number` constants. */ -var INFINITY = 1 / 0; + return _possibleConstructorReturn(this, (CTA.__proto__ || Object.getPrototypeOf(CTA)).apply(this, arguments)); + } -/** Used to convert symbols to primitives and strings. */ -var symbolProto = Symbol ? Symbol.prototype : undefined, - symbolToString = symbolProto ? symbolProto.toString : undefined; + _createClass(CTA, [{ + key: "render", + value: function render() { + var _props = this.props, + attributes = _props.attributes, + setAttributes = _props.setAttributes; -/** - * The base implementation of `_.toString` which doesn't convert nullish - * values to empty strings. - * - * @private - * @param {*} value The value to process. - * @returns {string} Returns the string. - */ -function baseToString(value) { - // Exit early for strings to avoid a performance hit in some environments. - if (typeof value == 'string') { - return value; - } - if (isArray(value)) { - // Recursively convert values (susceptible to call stack limits). - return arrayMap(value, baseToString) + ''; - } - if (isSymbol(value)) { - return symbolToString ? symbolToString.call(value) : ''; - } - var result = (value + ''); - return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; -} -module.exports = baseToString; + var ctaBtnClass = "uagb-cta__block-link uagb-cta__button-link-wrapper uagb-cta-typeof-" + attributes.ctaType; + var target = "_self"; + var rel = "noopener noreferrer"; + if (attributes.ctaTarget) { + target = "_blank"; + } -/***/ }), -/* 130 */ -/*!**********************************************!*\ - !*** ./node_modules/lodash/_baseProperty.js ***! - \**********************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports) { + var cta_icon_output = ""; + if (attributes.ctaIcon !== "") { + cta_icon_output = wp.element.createElement( + "span", + { className: __WEBPACK_IMPORTED_MODULE_0_classnames___default()("uagb-cta-" + attributes.ctaType + "-icon", "uagb-cta__align-button-" + attributes.ctaIconPosition, "uagb-cta-with-svg") }, + Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_renderIcon__["a" /* default */])(attributes.ctaIcon) + ); + } -/** - * The base implementation of `_.property` without support for deep paths. - * - * @private - * @param {string} key The key of the property to get. - * @returns {Function} Returns the new accessor function. - */ -function baseProperty(key) { - return function(object) { - return object == null ? undefined : object[key]; - }; -} + var link = "/"; + if (setAttributes == "not_set") { + link = attributes.ctaLink; + } + return wp.element.createElement( + "div", + { className: "uagb-cta__link-wrapper uagb-cta__block-link-style" }, + (attributes.ctaType === "button" || attributes.ctaType === "text") && wp.element.createElement( + "div", + { className: __WEBPACK_IMPORTED_MODULE_0_classnames___default()("uagb-cta__button-wrapper", attributes.inheritFromTheme && attributes.ctaType === "button" ? 'wp-block-button' : null) }, + wp.element.createElement( + "a", + { + href: link, + className: __WEBPACK_IMPORTED_MODULE_0_classnames___default()('uagb-cta__button-link-wrapper', !attributes.inheritFromTheme ? 'uagb-cta__block-link' : null, !attributes.inheritFromTheme ? "uagb-cta-typeof-" + attributes.ctaType : null, attributes.inheritFromTheme && attributes.ctaType === "button" ? 'wp-block-button__link' : null), + target: target, + rel: rel + }, + attributes.ctaIconPosition === "before" && cta_icon_output, + wp.element.createElement( + "span", + { className: "uagb-cta__link-content-inner" }, + wp.element.createElement( + "span", + null, + attributes.ctaText + ) + ), + attributes.ctaIconPosition === "after" && cta_icon_output + ) + ) + ); + } + }]); -module.exports = baseProperty; + return CTA; +}(React.Component); +/* harmony default export */ __webpack_exports__["a"] = (CTA); /***/ }), -/* 131 */ -/*!************************************************************************************!*\ - !*** ./node_modules/react-select/node_modules/memoize-one/dist/memoize-one.esm.js ***! - \************************************************************************************/ +/* 128 */ +/*!**************************************!*\ + !*** ./src/blocks/columns/shapes.js ***! + \**************************************/ /*! exports provided: default */ /*! exports used: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -function areInputsEqual(newInputs, lastInputs) { - if (newInputs.length !== lastInputs.length) { - return false; - } - for (var i = 0; i < newInputs.length; i++) { - if (newInputs[i] !== lastInputs[i]) { - return false; - } - } - return true; -} - -function memoizeOne(resultFn, isEqual) { - if (isEqual === void 0) { isEqual = areInputsEqual; } - var lastThis; - var lastArgs = []; - var lastResult; - var calledOnce = false; - function memoized() { - var newArgs = []; - for (var _i = 0; _i < arguments.length; _i++) { - newArgs[_i] = arguments[_i]; - } - if (calledOnce && lastThis === this && isEqual(newArgs, lastArgs)) { - return lastResult; - } - lastResult = resultFn.apply(this, newArgs); - calledOnce = true; - lastThis = this; - lastArgs = newArgs; - return lastResult; - } - return memoized; -} +var el = wp.element.createElement; -/* harmony default export */ __webpack_exports__["a"] = (memoizeOne); +var shapes = { + "triangle": el("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 1000 100", preserveAspectRatio: "none" }, el("path", { className: "uagb-columns__shape-fill", d: "M500,98.9L0,6.1V0h1000v6.1L500,98.9z" })), + "wave_brush": el("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 283.5 27.8", preserveAspectRatio: "none" }, el("path", { className: "uagb-columns__shape-fill", d: "M283.5,9.7c0,0-7.3,4.3-14,4.6c-6.8,0.3-12.6,0-20.9-1.5c-11.3-2-33.1-10.1-44.7-5.7 s-12.1,4.6-18,7.4c-6.6,3.2-20,9.6-36.6,9.3C131.6,23.5,99.5,7.2,86.3,8c-1.4,0.1-6.6,0.8-10.5,2c-3.8,1.2-9.4,3.8-17,4.7 c-3.2,0.4-8.3,1.1-14.2,0.9c-1.5-0.1-6.3-0.4-12-1.6c-5.7-1.2-11-3.1-15.8-3.7C6.5,9.2,0,10.8,0,10.8V0h283.5V9.7z M260.8,11.3 c-0.7-1-2-0.4-4.3-0.4c-2.3,0-6.1-1.2-5.8-1.1c0.3,0.1,3.1,1.5,6,1.9C259.7,12.2,261.4,12.3,260.8,11.3z M242.4,8.6 c0,0-2.4-0.2-5.6-0.9c-3.2-0.8-10.3-2.8-15.1-3.5c-8.2-1.1-15.8,0-15.1,0.1c0.8,0.1,9.6-0.6,17.6,1.1c3.3,0.7,9.3,2.2,12.4,2.7 C239.9,8.7,242.4,8.6,242.4,8.6z M185.2,8.5c1.7-0.7-13.3,4.7-18.5,6.1c-2.1,0.6-6.2,1.6-10,2c-3.9,0.4-8.9,0.4-8.8,0.5 c0,0.2,5.8,0.8,11.2,0c5.4-0.8,5.2-1.1,7.6-1.6C170.5,14.7,183.5,9.2,185.2,8.5z M199.1,6.9c0.2,0-0.8-0.4-4.8,1.1 c-4,1.5-6.7,3.5-6.9,3.7c-0.2,0.1,3.5-1.8,6.6-3C197,7.5,199,6.9,199.1,6.9z M283,6c-0.1,0.1-1.9,1.1-4.8,2.5s-6.9,2.8-6.7,2.7 c0.2,0,3.5-0.6,7.4-2.5C282.8,6.8,283.1,5.9,283,6z M31.3,11.6c0.1-0.2-1.9-0.2-4.5-1.2s-5.4-1.6-7.8-2C15,7.6,7.3,8.5,7.7,8.6 C8,8.7,15.9,8.3,20.2,9.3c2.2,0.5,2.4,0.5,5.7,1.6S31.2,11.9,31.3,11.6z M73,9.2c0.4-0.1,3.5-1.6,8.4-2.6c4.9-1.1,8.9-0.5,8.9-0.8 c0-0.3-1-0.9-6.2-0.3S72.6,9.3,73,9.2z M71.6,6.7C71.8,6.8,75,5.4,77.3,5c2.3-0.3,1.9-0.5,1.9-0.6c0-0.1-1.1-0.2-2.7,0.2 C74.8,5.1,71.4,6.6,71.6,6.7z M93.6,4.4c0.1,0.2,3.5,0.8,5.6,1.8c2.1,1,1.8,0.6,1.9,0.5c0.1-0.1-0.8-0.8-2.4-1.3 C97.1,4.8,93.5,4.2,93.6,4.4z M65.4,11.1c-0.1,0.3,0.3,0.5,1.9-0.2s2.6-1.3,2.2-1.2s-0.9,0.4-2.5,0.8C65.3,10.9,65.5,10.8,65.4,11.1 z M34.5,12.4c-0.2,0,2.1,0.8,3.3,0.9c1.2,0.1,2,0.1,2-0.2c0-0.3-0.1-0.5-1.6-0.4C36.6,12.8,34.7,12.4,34.5,12.4z M152.2,21.1 c-0.1,0.1-2.4-0.3-7.5-0.3c-5,0-13.6-2.4-17.2-3.5c-3.6-1.1,10,3.9,16.5,4.1C150.5,21.6,152.3,21,152.2,21.1z" }), el("path", { className: "uagb-columns__shape-fill", d: "M269.6,18c-0.1-0.1-4.6,0.3-7.2,0c-7.3-0.7-17-3.2-16.6-2.9c0.4,0.3,13.7,3.1,17,3.3 C267.7,18.8,269.7,18,269.6,18z" }), el("path", { className: "uagb-columns__shape-fill", d: "M227.4,9.8c-0.2-0.1-4.5-1-9.5-1.2c-5-0.2-12.7,0.6-12.3,0.5c0.3-0.1,5.9-1.8,13.3-1.2 S227.6,9.9,227.4,9.8z" }), el("path", { className: "uagb-columns__shape-fill", d: "M204.5,13.4c-0.1-0.1,2-1,3.2-1.1c1.2-0.1,2,0,2,0.3c0,0.3-0.1,0.5-1.6,0.4 C206.4,12.9,204.6,13.5,204.5,13.4z" }), el("path", { className: "uagb-columns__shape-fill", d: "M201,10.6c0-0.1-4.4,1.2-6.3,2.2c-1.9,0.9-6.2,3.1-6.1,3.1c0.1,0.1,4.2-1.6,6.3-2.6 S201,10.7,201,10.6z" }), el("path", { className: "uagb-columns__shape-fill", d: "M154.5,26.7c-0.1-0.1-4.6,0.3-7.2,0c-7.3-0.7-17-3.2-16.6-2.9c0.4,0.3,13.7,3.1,17,3.3 C152.6,27.5,154.6,26.8,154.5,26.7z" }), el("path", { className: "uagb-columns__shape-fill", d: "M41.9,19.3c0,0,1.2-0.3,2.9-0.1c1.7,0.2,5.8,0.9,8.2,0.7c4.2-0.4,7.4-2.7,7-2.6 c-0.4,0-4.3,2.2-8.6,1.9c-1.8-0.1-5.1-0.5-6.7-0.4S41.9,19.3,41.9,19.3z" }), el("path", { className: "uagb-columns__shape-fill", d: "M75.5,12.6c0.2,0.1,2-0.8,4.3-1.1c2.3-0.2,2.1-0.3,2.1-0.5c0-0.1-1.8-0.4-3.4,0 C76.9,11.5,75.3,12.5,75.5,12.6z" }), el("path", { className: "uagb-columns__shape-fill", d: "M15.6,13.2c0-0.1,4.3,0,6.7,0.5c2.4,0.5,5,1.9,5,2c0,0.1-2.7-0.8-5.1-1.4 C19.9,13.7,15.7,13.3,15.6,13.2z" })), + "tilt": el("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 1000 100", preserveAspectRatio: "none" }, el("path", { className: "uagb-columns__shape-fill", d: "M0,6V0h1000v100L0,6z" })), + "mountains": el("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 1000 100", preserveAspectRatio: "none" }, el("path", { className: "uagb-columns__shape-fill", opacity: "0.33", d: "M473,67.3c-203.9,88.3-263.1-34-320.3,0C66,119.1,0,59.7,0,59.7V0h1000v59.7 c0,0-62.1,26.1-94.9,29.3c-32.8,3.3-62.8-12.3-75.8-22.1C806,49.6,745.3,8.7,694.9,4.7S492.4,59,473,67.3z" }), el("path", { className: "uagb-columns__shape-fill", opacity: "0.66", d: "M734,67.3c-45.5,0-77.2-23.2-129.1-39.1c-28.6-8.7-150.3-10.1-254,39.1 s-91.7-34.4-149.2,0C115.7,118.3,0,39.8,0,39.8V0h1000v36.5c0,0-28.2-18.5-92.1-18.5C810.2,18.1,775.7,67.3,734,67.3z" }), el("path", { className: "uagb-columns__shape-fill", d: "M766.1,28.9c-200-57.5-266,65.5-395.1,19.5C242,1.8,242,5.4,184.8,20.6C128,35.8,132.3,44.9,89.9,52.5C28.6,63.7,0,0,0,0 h1000c0,0-9.9,40.9-83.6,48.1S829.6,47,766.1,28.9z" })), + "waves": el("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 1000 100", preserveAspectRatio: "none" }, el("path", { className: "uagb-columns__shape-fill", d: "M421.9,6.5c22.6-2.5,51.5,0.4,75.5,5.3c23.6,4.9,70.9,23.5,100.5,35.7c75.8,32.2,133.7,44.5,192.6,49.7 c23.6,2.1,48.7,3.5,103.4-2.5c54.7-6,106.2-25.6,106.2-25.6V0H0v30.3c0,0,72,32.6,158.4,30.5c39.2-0.7,92.8-6.7,134-22.4 c21.2-8.1,52.2-18.2,79.7-24.2C399.3,7.9,411.6,7.5,421.9,6.5z" })), + "wave_pattern": el("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 1047.1 3.7", preserveAspectRatio: "xMidYMin slice" }, el("path", { className: "uagb-columns__shape-fill", d: "M1047.1,0C557,0,8.9,0,0,0v1.6c0,0,0.6-1.5,2.7-0.3C3.9,2,6.1,4.1,8.3,3.5c0.9-0.2,1.5-1.9,1.5-1.9 s0.6-1.5,2.7-0.3C13.8,2,16,4.1,18.2,3.5c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3C23.6,2,25.9,4.1,28,3.5c0.9-0.2,1.5-1.9,1.5-1.9 c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2 c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3C63,2,65.3,4.1,67.4,3.5 C68.3,3.3,69,1.6,69,1.6s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3 C82.7,2,85,4.1,87.1,3.5c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3C92.6,2,94.8,4.1,97,3.5c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3 c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9 c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2 c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3 c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9 c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2 c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3 c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9 c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2 c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3 c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9 s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2 c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3 c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9 s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2 c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3 c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9 s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2 c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3 c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9 s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2 c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3 c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9 s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2 c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3 c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9 s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2 c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3 c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9 c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2 c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3 c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9 c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2 c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3 c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9 c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2 c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3 c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9 s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2 c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3 c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9 s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2 c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3 c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9 s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2 c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3 c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9 s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2 c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3 c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9 s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2 c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3 c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9 s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2 c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3 c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9 c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9c0,0,0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2 c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.7-0.3 c1.2,0.7,3.5,2.8,5.6,2.2c0.9-0.2,1.5-1.9,1.5-1.9s0.6-1.5,2.6-0.4V0z M2.5,1.2C2.5,1.2,2.5,1.2,2.5,1.2C2.5,1.2,2.5,1.2,2.5,1.2z M2.7,1.4c0.1,0,0.1,0.1,0.1,0.1C2.8,1.4,2.8,1.4,2.7,1.4z" })), + "drops": el("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 283.5 27.8", preserveAspectRatio: "xMidYMax slice" }, el("path", { className: "uagb-columns__shape-fill", d: "M0 0v1.4c.6.7 1.1 1.4 1.4 2 2 3.8 2.2 6.6 1.8 10.8-.3 3.3-2.4 9.4 0 12.3 1.7 2 3.7 1.4 4.6-.9 1.4-3.8-.7-8.2-.6-12 .1-3.7 3.2-5.5 6.9-4.9 4 .6 4.8 4 4.9 7.4.1 1.8-1.1 7 0 8.5.6.8 1.6 1.2 2.4.5 1.4-1.1.1-5.4.1-6.9.1-3.7.3-8.6 4.1-10.5 5-2.5 6.2 1.6 5.4 5.6-.4 1.7-1 9.2 2.9 6.3 1.5-1.1.7-3.5.5-4.9-.4-2.4-.4-4.3 1-6.5.9-1.4 2.4-3.1 4.2-3 2.4.1 2.7 2.2 4 3.7 1.5 1.8 1.8 2.2 3 .1 1.1-1.9 1.2-2.8 3.6-3.3 1.3-.3 4.8-1.4 5.9-.5 1.5 1.1.6 2.8.4 4.3-.2 1.1-.6 4 1.8 3.4 1.7-.4-.3-4.1.6-5.6 1.3-2.2 5.8-1.4 7 .5 1.3 2.1.5 5.8.1 8.1s-1.2 5-.6 7.4c1.3 5.1 4.4.9 4.3-2.4-.1-4.4-2-8.8-.5-13 .9-2.4 4.6-6.6 7.7-4.5 2.7 1.8.5 7.8.2 10.3-.2 1.7-.8 4.6.2 6.2.9 1.4 2 1.5 2.6-.3.5-1.5-.9-4.5-1-6.1-.2-1.7-.4-3.7.2-5.4 1.8-5.6 3.5 2.4 6.3.6 1.4-.9 4.3-9.4 6.1-3.1.6 2.2-1.3 7.8.7 8.9 4.2 2.3 1.5-7.1 2.2-8 3.1-4 4.7 3.8 6.1 4.1 3.1.7 2.8-7.9 8.1-4.5 1.7 1.1 2.9 3.3 3.2 5.2.4 2.2-1 4.5-.6 6.6 1 4.3 4.4 1.5 4.4-1.7 0-2.7-3-8.3 1.4-9.1 4.4-.9 7.3 3.5 7.8 6.9.3 2-1.5 10.9 1.3 11.3 4.1.6-3.2-15.7 4.8-15.8 4.7-.1 2.8 4.1 3.9 6.6 1 2.4 2.1 1 2.3-.8.3-1.9-.9-3.2 1.3-4.3 5.9-2.9 5.9 5.4 5.5 8.5-.3 2-1.7 8.4 2 8.1 6.9-.5-2.8-16.9 4.8-18.7 4.7-1.2 6.1 3.6 6.3 7.1.1 1.7-1.2 8.1.6 9.1 3.5 2 1.9-7 2-8.4.2-4 1.2-9.6 6.4-9.8 4.7-.2 3.2 4.6 2.7 7.5-.4 2.2 1.3 8.6 3.8 4.4 1.1-1.9-.3-4.1-.3-6 0-1.7.4-3.2 1.3-4.6 1-1.6 2.9-3.5 5.1-2.9 2.5.6 2.3 4.1 4.1 4.9 1.9.8 1.6-.9 2.3-2.1 1.2-2.1 2.1-2.1 4.4-2.4 1.4-.2 3.6-1.5 4.9-.5 2.3 1.7-.7 4.4.1 6.5.6 1.5 2.1 1.7 2.8.3.7-1.4-1.1-3.4-.3-4.8 1.4-2.5 6.2-1.2 7.2 1 2.3 4.8-3.3 12-.2 16.3 3 4.1 3.9-2.8 3.8-4.8-.4-4.3-2.1-8.9 0-13.1 1.3-2.5 5.9-5.7 7.9-2.4 2 3.2-1.3 9.8-.8 13.4.5 4.4 3.5 3.3 2.7-.8-.4-1.9-2.4-10 .6-11.1 3.7-1.4 2.8 7.2 6.5.4 2.2-4.1 4.9-3.1 5.2 1.2.1 1.5-.6 3.1-.4 4.6.2 1.9 1.8 3.7 3.3 1.3 1-1.6-2.6-10.4 2.9-7.3 2.6 1.5 1.6 6.5 4.8 2.7 1.3-1.5 1.7-3.6 4-3.7 2.2-.1 4 2.3 4.8 4.1 1.3 2.9-1.5 8.4.9 10.3 4.2 3.3 3-5.5 2.7-6.9-.6-3.9 1-7.2 5.5-5 4.1 2.1 4.3 7.7 4.1 11.6 0 .8-.6 9.5 2.5 5.2 1.2-1.7-.1-7.7.1-9.6.3-2.9 1.2-5.5 4.3-6.2 4.5-1 7.7 1.5 7.4 5.8-.2 3.5-1.8 7.7-.5 11.1 1 2.7 3.6 2.8 5 .2 1.6-3.1 0-8.3-.4-11.6-.4-4.2-.2-7 1.8-10.8 0 0-.1.1-.1.2-.2.4-.3.7-.4.8v.1c-.1.2-.1.2 0 0v-.1l.4-.8c0-.1.1-.1.1-.2.2-.4.5-.8.8-1.2V0H0zM282.7 3.4z" })), + "clouds": el("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 283.5 27.8", preserveAspectRatio: "xMidYMax slice" }, el("path", { className: "uagb-columns__shape-fill", d: "M0 0v6.7c1.9-.8 4.7-1.4 8.5-1 9.5 1.1 11.1 6 11.1 6s2.1-.7 4.3-.2c2.1.5 2.8 2.6 2.8 2.6s.2-.5 1.4-.7c1.2-.2 1.7.2 1.7.2s0-2.1 1.9-2.8c1.9-.7 3.6.7 3.6.7s.7-2.9 3.1-4.1 4.7 0 4.7 0 1.2-.5 2.4 0 1.7 1.4 1.7 1.4h1.4c.7 0 1.2.7 1.2.7s.8-1.8 4-2.2c3.5-.4 5.3 2.4 6.2 4.4.4-.4 1-.7 1.8-.9 2.8-.7 4 .7 4 .7s1.7-5 11.1-6c9.5-1.1 12.3 3.9 12.3 3.9s1.2-4.8 5.7-5.7c4.5-.9 6.8 1.8 6.8 1.8s.6-.6 1.5-.9c.9-.2 1.9-.2 1.9-.2s5.2-6.4 12.6-3.3c7.3 3.1 4.7 9 4.7 9s1.9-.9 4 0 2.8 2.4 2.8 2.4 1.9-1.2 4.5-1.2 4.3 1.2 4.3 1.2.2-1 1.4-1.7 2.1-.7 2.1-.7-.5-3.1 2.1-5.5 5.7-1.4 5.7-1.4 1.5-2.3 4.2-1.1c2.7 1.2 1.7 5.2 1.7 5.2s.3-.1 1.3.5c.5.4.8.8.9 1.1.5-1.4 2.4-5.8 8.4-4 7.1 2.1 3.5 8.9 3.5 8.9s.8-.4 2 0 1.1 1.1 1.1 1.1 1.1-1.1 2.3-1.1 2.1.5 2.1.5 1.9-3.6 6.2-1.2 1.9 6.4 1.9 6.4 2.6-2.4 7.4 0c3.4 1.7 3.9 4.9 3.9 4.9s3.3-6.9 10.4-7.9 11.5 2.6 11.5 2.6.8 0 1.2.2c.4.2.9.9.9.9s4.4-3.1 8.3.2c1.9 1.7 1.5 5 1.5 5s.3-1.1 1.6-1.4c1.3-.3 2.3.2 2.3.2s-.1-1.2.5-1.9 1.9-.9 1.9-.9-4.7-9.3 4.4-13.4c5.6-2.5 9.2.9 9.2.9s5-6.2 15.9-6.2 16.1 8.1 16.1 8.1.7-.2 1.6-.4V0H0z" })), + "zigzag": el("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 1800 5.8", preserveAspectRatio: "none" }, el("path", { className: "uagb-columns__shape-fill", d: "M5.4.4l5.4 5.3L16.5.4l5.4 5.3L27.5.4 33 5.7 38.6.4l5.5 5.4h.1L49.9.4l5.4 5.3L60.9.4l5.5 5.3L72 .4l5.5 5.3L83.1.4l5.4 5.3L94.1.4l5.5 5.4h.2l5.6-5.4 5.5 5.3 5.6-5.3 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.4h.2l5.6-5.4 5.4 5.3L161 .4l5.4 5.3L172 .4l5.5 5.3 5.6-5.3 5.4 5.3 5.7-5.3 5.4 5.4h.2l5.6-5.4 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.4 5.3 5.6-5.3 5.5 5.4h.2l5.6-5.4 5.5 5.3L261 .4l5.4 5.3L272 .4l5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.4h.1l5.7-5.4 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.4 5.3 5.7-5.3 5.4 5.4h.2l5.6-5.4 5.5 5.3L361 .4l5.5 5.3 5.6-5.3 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.4h.1l5.7-5.4 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.4h.1l5.6-5.4 5.5 5.3L461 .4l5.5 5.3 5.6-5.3 5.4 5.3 5.7-5.3 5.4 5.3 5.6-5.3 5.5 5.4h.2l5.6-5.4 5.5 5.3 5.6-5.3 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.4h.1L550 .4l5.4 5.3L561 .4l5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.4 5.3 5.6-5.3 5.5 5.4h.2l5.6-5.4 5.5 5.3 5.6-5.3 5.4 5.3 5.7-5.3 5.4 5.3 5.6-5.3 5.5 5.4h.2L650 .4l5.5 5.3 5.6-5.3 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.4 5.4h.2l5.6-5.4 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.4 5.3 5.6-5.3 5.5 5.4h.2L750 .4l5.5 5.3 5.6-5.3 5.4 5.3 5.7-5.3 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.4h.1l5.7-5.4 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.4 5.4h.2L850 .4l5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.4h.2l5.6-5.4 5.4 5.3 5.7-5.3 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.4h.1l5.7-5.4 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.4 5.3 5.6-5.3 5.5 5.4h.2l5.6-5.4 5.5 5.3 5.6-5.3 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.4h.2l5.6-5.4 5.4 5.3 5.7-5.3 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.4 5.4h.2l5.6-5.4 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.4 5.3 5.6-5.3 5.5 5.4h.2l5.6-5.4 5.5 5.3 5.6-5.3 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.4h.1l5.7-5.4 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.4 5.4h.2l5.6-5.4 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.4h.2l5.6-5.4 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.4h.1l5.7-5.4 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.4 5.3 5.6-5.3 5.5 5.4h.2l5.6-5.4 5.5 5.3 5.6-5.3 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.4h.2l5.6-5.4 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.4 5.3 5.7-5.3 5.4 5.4h.2l5.6-5.4 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.4 5.3 5.6-5.3 5.5 5.4h.2l5.6-5.4 5.5 5.3 5.6-5.3 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.4h.1l5.6-5.4 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.4 5.3 5.7-5.3 5.4 5.4h.2l5.6-5.4 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.4h.1l5.7-5.4 5.4 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.5 5.4h.1l5.6-5.4 5.5 5.3 5.6-5.3 5.5 5.3 5.6-5.3 5.4 5.3 5.7-5.3 5.4 5.3 5.6-5.3 5.5 5.4V0H-.2v5.8z" })), + "pyramids": el("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 1000 100", preserveAspectRatio: "none" }, el("path", { className: "uagb-columns__shape-fill", d: "M761.9,44.1L643.1,27.2L333.8,98L0,3.8V0l1000,0v3.9" })), + "triangle_asymmetrical": el("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 1000 100", preserveAspectRatio: "none" }, el("path", { className: "uagb-columns__shape-fill", d: "M738,99l262-93V0H0v5.6L738,99z" })), + "tilt_opacity": el("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 2600 131.1", preserveAspectRatio: "none" }, el("path", { className: "uagb-columns__shape-fill", d: "M0 0L2600 0 2600 69.1 0 0z" }), el("path", { className: "uagb-columns__shape-fill", opacity: "0.5", d: "M0 0L2600 0 2600 69.1 0 69.1z" }), el("path", { className: "uagb-columns__shape-fill", opacity: "0.25", d: "M2600 0L0 0 0 130.1 2600 69.1z" })), + "fan_opacity": el("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 283.5 19.6", preserveAspectRatio: "none" }, el("path", { className: "uagb-columns__shape-fill", opacity: "0.33", d: "M0 0L0 18.8 141.8 4.1 283.5 18.8 283.5 0z" }), el("path", { className: "uagb-columns__shape-fill", opacity: "0.33", d: "M0 0L0 12.6 141.8 4 283.5 12.6 283.5 0z" }), el("path", { className: "uagb-columns__shape-fill", opacity: "0.33", d: "M0 0L0 6.4 141.8 4 283.5 6.4 283.5 0z" }), el("path", { className: "uagb-columns__shape-fill", d: "M0 0L0 1.2 141.8 4 283.5 1.2 283.5 0z" })), + "curve": el("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 1000 100", preserveAspectRatio: "none" }, el("path", { className: "uagb-columns__shape-fill", d: "M1000,4.3V0H0v4.3C0.9,23.1,126.7,99.2,500,100S1000,22.7,1000,4.3z" })), + "curve_asymmetrical": el("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 1000 100", preserveAspectRatio: "none" }, el("path", { className: "uagb-columns__shape-fill", d: "M0,0c0,0,0,6,0,6.7c0,18,240.2,93.6,615.2,92.6C989.8,98.5,1000,25,1000,6.7c0-0.7,0-6.7,0-6.7H0z" })), + "arrow": el("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 700 10", preserveAspectRatio: "none" }, el("path", { className: "uagb-columns__shape-fill", d: "M350,10L340,0h20L350,10z" })), + "arrow_split": el("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 1000 20", preserveAspectRatio: "none" }, el("path", { className: "uagb-columns__shape-fill", d: "M0,0v3c0,0,393.8,0,483.4,0c9.2,0,16.6,7.4,16.6,16.6c0-9.1,7.4-16.6,16.6-16.6C606.2,3,1000,3,1000,3V0H0z" })), + "book": el("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 1000 100", preserveAspectRatio: "none" }, el("path", { className: "uagb-columns__shape-fill", d: "M194,99c186.7,0.7,305-78.3,306-97.2c1,18.9,119.3,97.9,306,97.2c114.3-0.3,194,0.3,194,0.3s0-91.7,0-100c0,0,0,0,0-0 L0,0v99.3C0,99.3,79.7,98.7,194,99z" })) +}; +/* harmony default export */ __webpack_exports__["a"] = (shapes); /***/ }), -/* 132 */ -/*!***************************************************************!*\ - !*** ./node_modules/@emotion/cache/dist/cache.browser.esm.js ***! - \***************************************************************/ +/* 129 */ +/*!************************************************************!*\ + !*** ./src/blocks/blockquote/components/TweetButtonCTA.js ***! + \************************************************************/ /*! exports provided: default */ /*! exports used: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -/* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__emotion_sheet__ = __webpack_require__(/*! @emotion/sheet */ 133); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__emotion_stylis__ = __webpack_require__(/*! @emotion/stylis */ 263); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__emotion_weak_memoize__ = __webpack_require__(/*! @emotion/weak-memoize */ 264); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_block_icons__ = __webpack_require__(/*! ../../../../dist/blocks/uagb-controls/block-icons */ 1); +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } -// https://github.com/thysultan/stylis.js/tree/master/plugins/rule-sheet -// inlined to avoid umd wrapper and peerDep warnings/installing stylis -// since we use stylis after closure compiler -var delimiter = '/*|*/'; -var needle = delimiter + '}'; +var Fragment = wp.element.Fragment; -function toSheet(block) { - if (block) { - Sheet.current.insert(block + '}'); - } -} -var Sheet = { - current: null -}; -var ruleSheet = function ruleSheet(context, content, selectors, parents, line, column, length, ns, depth, at) { - switch (context) { - // property - case 1: - { - switch (content.charCodeAt(0)) { - case 64: - { - // @import - Sheet.current.insert(content + ';'); - return ''; - } - // charcode for l - case 108: - { - // charcode for b - // this ignores label - if (content.charCodeAt(2) === 98) { - return ''; - } - } - } +var TweetButtonCTA = function (_React$Component) { + _inherits(TweetButtonCTA, _React$Component); - break; - } - // selector + function TweetButtonCTA() { + _classCallCheck(this, TweetButtonCTA); - case 2: - { - if (ns === 0) return content + delimiter; - break; - } - // at-rule + return _possibleConstructorReturn(this, (TweetButtonCTA.__proto__ || Object.getPrototypeOf(TweetButtonCTA)).apply(this, arguments)); + } - case 3: - { - switch (ns) { - // @font-face, @page - case 102: - case 112: - { - Sheet.current.insert(selectors[0] + content); - return ''; - } + _createClass(TweetButtonCTA, [{ + key: "render", + value: function render() { + var attributes = this.props.attributes; - default: - { - return content + (at === 0 ? delimiter : ''); - } - } - } - case -2: - { - content.split(needle).forEach(toSheet); - } - } -}; + return wp.element.createElement( + "a", + { href: "/", className: "uagb-blockquote__tweet-button", target: "_blank", rel: "noopener noreferrer" }, + attributes.iconView === "icon_text" && wp.element.createElement( + Fragment, + null, + __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_block_icons__["a" /* default */].quote_tweet_icon, + wp.element.createElement( + "span", + { className: "uagb-blockquote__tweet-label" }, + attributes.iconLabel + ) + ), + attributes.iconView === "icon" && wp.element.createElement( + Fragment, + null, + __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_block_icons__["a" /* default */].quote_tweet_icon + ), + attributes.iconView === "text" && wp.element.createElement( + Fragment, + null, + wp.element.createElement( + "span", + { className: "uagb-blockquote__tweet-label" }, + attributes.iconLabel + ) + ) + ); + } + }]); -var createCache = function createCache(options) { - if (options === undefined) options = {}; - var key = options.key || 'css'; - var stylisOptions; + return TweetButtonCTA; +}(React.Component); - if (options.prefix !== undefined) { - stylisOptions = { - prefix: options.prefix - }; - } +/* harmony default export */ __webpack_exports__["a"] = (TweetButtonCTA); - var stylis = new __WEBPACK_IMPORTED_MODULE_1__emotion_stylis__["a" /* default */](stylisOptions); +/***/ }), +/* 130 */ +/*!*********************************************************!*\ + !*** ./src/blocks/blockquote/components/Description.js ***! + \*********************************************************/ +/*! exports provided: default */ +/*! exports used: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { - if (process.env.NODE_ENV !== 'production') { - // $FlowFixMe - if (/[^a-z-]/.test(key)) { - throw new Error("Emotion key must only contain lower case alphabetical characters and - but \"" + key + "\" was passed"); - } - } +"use strict"; +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - var inserted = {}; // $FlowFixMe +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - var container; +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - { - container = options.container || document.head; - var nodes = document.querySelectorAll("style[data-emotion-" + key + "]"); - Array.prototype.forEach.call(nodes, function (node) { - var attrib = node.getAttribute("data-emotion-" + key); // $FlowFixMe +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - attrib.split(' ').forEach(function (id) { - inserted[id] = true; - }); +var RichText = wp.blockEditor.RichText; +var __ = wp.i18n.__; +var createBlock = wp.blocks.createBlock; - if (node.parentNode !== container) { - container.appendChild(node); - } - }); - } +var Description = function (_React$Component) { + _inherits(Description, _React$Component); - var _insert; + function Description() { + _classCallCheck(this, Description); - { - stylis.use(options.stylisPlugins)(ruleSheet); + return _possibleConstructorReturn(this, (Description.__proto__ || Object.getPrototypeOf(Description)).apply(this, arguments)); + } - _insert = function insert(selector, serialized, sheet, shouldCache) { - var name = serialized.name; - Sheet.current = sheet; + _createClass(Description, [{ + key: "render", + value: function render() { + var _props = this.props, + attributes = _props.attributes, + setAttributes = _props.setAttributes, + props = _props.props; - if (process.env.NODE_ENV !== 'production' && serialized.map !== undefined) { - var map = serialized.map; - Sheet.current = { - insert: function insert(rule) { - sheet.insert(rule + map); - } - }; - } - stylis(selector, serialized.styles); + if (setAttributes !== "not_set") { + return wp.element.createElement(RichText, { + tagName: "div", + value: attributes.descriptionText, + placeholder: __("Write a Quote", 'ultimate-addons-for-gutenberg'), + className: "uagb-blockquote__content", + onChange: function onChange(value) { + return setAttributes({ descriptionText: value }); + }, + onMerge: props.mergeBlocks, + onSplit: props.insertBlocksAfter ? function (before, after) { + for (var _len = arguments.length, blocks = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { + blocks[_key - 2] = arguments[_key]; + } - if (shouldCache) { - cache.inserted[name] = true; - } - }; - } + setAttributes({ content: before }); + props.insertBlocksAfter([].concat(blocks, [createBlock("core/paragraph", { content: after })])); + } : undefined, + onRemove: function onRemove() { + return props.onReplace([]); + } + }); + } else { + return wp.element.createElement(RichText.Content, { + tagName: "div", + value: attributes.descriptionText, + className: "uagb-blockquote__content" + }); + } + } + }]); - if (process.env.NODE_ENV !== 'production') { - // https://esbench.com/bench/5bf7371a4cd7e6009ef61d0a - var commentStart = /\/\*/g; - var commentEnd = /\*\//g; - stylis.use(function (context, content) { - switch (context) { - case -1: - { - while (commentStart.test(content)) { - commentEnd.lastIndex = commentStart.lastIndex; + return Description; +}(React.Component); - if (commentEnd.test(content)) { - commentStart.lastIndex = commentEnd.lastIndex; - continue; - } +/* harmony default export */ __webpack_exports__["a"] = (Description); - throw new Error('Your styles have an unterminated comment ("/*" without corresponding "*/").'); - } +/***/ }), +/* 131 */ +/*!********************************************************!*\ + !*** ./src/blocks/blockquote/components/AuthorText.js ***! + \********************************************************/ +/*! exports provided: default */ +/*! exports used: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { - commentStart.lastIndex = 0; - break; - } - } - }); - stylis.use(function (context, content, selectors) { - switch (context) { - case -1: - { - var flag = 'emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason'; - var unsafePseudoClasses = content.match(/(:first|:nth|:nth-last)-child/g); +"use strict"; +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - if (unsafePseudoClasses && cache.compat !== true) { - unsafePseudoClasses.forEach(function (unsafePseudoClass) { - var ignoreRegExp = new RegExp(unsafePseudoClass + ".*\\/\\* " + flag + " \\*\\/"); - var ignore = ignoreRegExp.test(content); +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - if (unsafePseudoClass && !ignore) { - console.error("The pseudo class \"" + unsafePseudoClass + "\" is potentially unsafe when doing server-side rendering. Try changing it to \"" + unsafePseudoClass.split('-child')[0] + "-of-type\"."); - } - }); - } +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - break; - } - } - }); - } +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - var cache = { - key: key, - sheet: new __WEBPACK_IMPORTED_MODULE_0__emotion_sheet__["a" /* StyleSheet */]({ - key: key, - container: container, - nonce: options.nonce, - speedy: options.speedy - }), - nonce: options.nonce, - inserted: inserted, - registered: {}, - insert: _insert - }; - return cache; -}; +var RichText = wp.blockEditor.RichText; +var __ = wp.i18n.__; +var createBlock = wp.blocks.createBlock; -/* harmony default export */ __webpack_exports__["a"] = (createCache); +var AuthorText = function (_React$Component) { + _inherits(AuthorText, _React$Component); + + function AuthorText() { + _classCallCheck(this, AuthorText); + + return _possibleConstructorReturn(this, (AuthorText.__proto__ || Object.getPrototypeOf(AuthorText)).apply(this, arguments)); + } + + _createClass(AuthorText, [{ + key: "render", + value: function render() { + var _props = this.props, + attributes = _props.attributes, + setAttributes = _props.setAttributes, + props = _props.props; + + + if (setAttributes !== "not_set") { + return wp.element.createElement(RichText, { + tagName: "div", + value: attributes.author, + placeholder: __("Author", 'ultimate-addons-for-gutenberg'), + className: "uagb-blockquote__author", + onChange: function onChange(value) { + return setAttributes({ author: value }); + }, + onMerge: props.mergeBlocks, + onSplit: props.insertBlocksAfter ? function (before, after) { + for (var _len = arguments.length, blocks = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { + blocks[_key - 2] = arguments[_key]; + } + + setAttributes({ content: before }); + props.insertBlocksAfter([].concat(blocks, [createBlock("core/paragraph", { content: after })])); + } : undefined, + onRemove: function onRemove() { + return props.onReplace([]); + } + }); + } else { + return wp.element.createElement(RichText.Content, { + tagName: "cite", + value: attributes.author, + className: "uagb-blockquote__author" + }); + } + } + }]); + + return AuthorText; +}(React.Component); -/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(/*! ./../../../process/browser.js */ 3))) +/* harmony default export */ __webpack_exports__["a"] = (AuthorText); /***/ }), -/* 133 */ -/*!***************************************************************!*\ - !*** ./node_modules/@emotion/sheet/dist/sheet.browser.esm.js ***! - \***************************************************************/ -/*! exports provided: StyleSheet */ -/*! exports used: StyleSheet */ +/* 132 */ +/*!*********************************************************!*\ + !*** ./src/blocks/blockquote/components/AuthorImage.js ***! + \*********************************************************/ +/*! exports provided: default */ +/*! exports used: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -/* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return StyleSheet; }); -/* +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); -Based off glamor's StyleSheet, thanks Sunil โค๏ธ +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -high performance StyleSheet for css-in-js systems +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } -- uses multiple style tags behind the scenes for millions of rules -- uses `insertRule` for appending in production for *much* faster performance +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } -// usage +var AuthorImage = function (_React$Component) { + _inherits(AuthorImage, _React$Component); -import { StyleSheet } from '@emotion/sheet' + function AuthorImage() { + _classCallCheck(this, AuthorImage); -let styleSheet = new StyleSheet({ key: '', container: document.head }) + return _possibleConstructorReturn(this, (AuthorImage.__proto__ || Object.getPrototypeOf(AuthorImage)).apply(this, arguments)); + } -styleSheet.insert('#box { border: 1px solid red; }') -- appends a css rule into the stylesheet + _createClass(AuthorImage, [{ + key: "render", + value: function render() { + var attributes = this.props.attributes; -styleSheet.flush() -- empties the stylesheet of all its contents -*/ -// $FlowFixMe -function sheetForTag(tag) { - if (tag.sheet) { - // $FlowFixMe - return tag.sheet; - } // this weirdness brought to you by firefox + var url_chk = ""; + if (typeof attributes.authorImage !== "undefined" && attributes.authorImage !== null && attributes.authorImage !== "") { + url_chk = attributes.authorImage.url; + } - /* istanbul ignore next */ + var url = ""; + if (url_chk !== "") { + var size = attributes.authorImage.sizes; + var authorImageSize = attributes.authorImageSize; + if (typeof size !== "undefined" && typeof size[authorImageSize] !== "undefined") { + url = size[authorImageSize].url; + } else { + url = url_chk; + } - for (var i = 0; i < document.styleSheets.length; i++) { - if (document.styleSheets[i].ownerNode === tag) { - // $FlowFixMe - return document.styleSheets[i]; - } - } -} + return wp.element.createElement( + "div", + { className: "uagb-blockquote__author-image" }, + wp.element.createElement("img", { + className: "", + src: url, + alt: attributes.authorImage.alt + }) + ); + } else { + return null; + } + } + }]); -function createStyleElement(options) { - var tag = document.createElement('style'); - tag.setAttribute('data-emotion', options.key); + return AuthorImage; +}(React.Component); - if (options.nonce !== undefined) { - tag.setAttribute('nonce', options.nonce); - } +/* harmony default export */ __webpack_exports__["a"] = (AuthorImage); - tag.appendChild(document.createTextNode('')); - return tag; -} +/***/ }), +/* 133 */ +/*!***************************************************************!*\ + !*** ./node_modules/core-js/library/modules/_to-primitive.js ***! + \***************************************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { -var StyleSheet = -/*#__PURE__*/ -function () { - function StyleSheet(options) { - this.isSpeedy = options.speedy === undefined ? process.env.NODE_ENV === 'production' : options.speedy; - this.tags = []; - this.ctr = 0; - this.nonce = options.nonce; // key is the value of the data-emotion attribute, it's used to identify different sheets +// 7.1.1 ToPrimitive(input [, PreferredType]) +var isObject = __webpack_require__(/*! ./_is-object */ 37); +// instead of the ES6 spec version, we didn't implement @@toPrimitive case +// and the second argument - flag - preferred type is a string +module.exports = function (it, S) { + if (!isObject(it)) return it; + var fn, val; + if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; + if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val; + if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; + throw TypeError("Can't convert object to primitive value"); +}; - this.key = options.key; - this.container = options.container; - this.before = null; - } - var _proto = StyleSheet.prototype; +/***/ }), +/* 134 */ +/*!**********************************************************!*\ + !*** ./node_modules/core-js/library/modules/_defined.js ***! + \**********************************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports) { - _proto.insert = function insert(rule) { - // the max length is how many rules we have per style tag, it's 65000 in speedy mode - // it's 1 in dev because we insert source maps that map a single rule to a location - // and you can only have one source map per style tag - if (this.ctr % (this.isSpeedy ? 65000 : 1) === 0) { - var _tag = createStyleElement(this); +// 7.2.1 RequireObjectCoercible(argument) +module.exports = function (it) { + if (it == undefined) throw TypeError("Can't call method on " + it); + return it; +}; - var before; - if (this.tags.length === 0) { - before = this.before; - } else { - before = this.tags[this.tags.length - 1].nextSibling; - } +/***/ }), +/* 135 */ +/*!*************************************************************!*\ + !*** ./node_modules/core-js/library/modules/_to-integer.js ***! + \*************************************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports) { - this.container.insertBefore(_tag, before); - this.tags.push(_tag); - } +// 7.1.4 ToInteger +var ceil = Math.ceil; +var floor = Math.floor; +module.exports = function (it) { + return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it); +}; - var tag = this.tags[this.tags.length - 1]; - if (this.isSpeedy) { - var sheet = sheetForTag(tag); +/***/ }), +/* 136 */ +/*!*************************************************************!*\ + !*** ./node_modules/core-js/library/modules/_shared-key.js ***! + \*************************************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { - try { - // this is a really hot path - // we check the second character first because having "i" - // as the second character will happen less often than - // having "@" as the first character - var isImportRule = rule.charCodeAt(1) === 105 && rule.charCodeAt(0) === 64; // this is the ultrafast version, works across browsers - // the big drawback is that the css won't be editable in devtools +var shared = __webpack_require__(/*! ./_shared */ 137)('keys'); +var uid = __webpack_require__(/*! ./_uid */ 72); +module.exports = function (key) { + return shared[key] || (shared[key] = uid(key)); +}; - sheet.insertRule(rule, // we need to insert @import rules before anything else - // otherwise there will be an error - // technically this means that the @import rules will - // _usually_(not always since there could be multiple style tags) - // be the first ones in prod and generally later in dev - // this shouldn't really matter in the real world though - // @import is generally only used for font faces from google fonts and etc. - // so while this could be technically correct then it would be slower and larger - // for a tiny bit of correctness that won't matter in the real world - isImportRule ? 0 : sheet.cssRules.length); - } catch (e) { - if (process.env.NODE_ENV !== 'production') { - console.warn("There was a problem inserting the following rule: \"" + rule + "\"", e); - } - } - } else { - tag.appendChild(document.createTextNode(rule)); - } - this.ctr++; - }; +/***/ }), +/* 137 */ +/*!*********************************************************!*\ + !*** ./node_modules/core-js/library/modules/_shared.js ***! + \*********************************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { - _proto.flush = function flush() { - // $FlowFixMe - this.tags.forEach(function (tag) { - return tag.parentNode.removeChild(tag); - }); - this.tags = []; - this.ctr = 0; - }; +var core = __webpack_require__(/*! ./_core */ 17); +var global = __webpack_require__(/*! ./_global */ 20); +var SHARED = '__core-js_shared__'; +var store = global[SHARED] || (global[SHARED] = {}); + +(module.exports = function (key, value) { + return store[key] || (store[key] = value !== undefined ? value : {}); +})('versions', []).push({ + version: core.version, + mode: __webpack_require__(/*! ./_library */ 71) ? 'pure' : 'global', + copyright: 'ยฉ 2018 Denis Pushkarev (zloirock.ru)' +}); - return StyleSheet; -}(); +/***/ }), +/* 138 */ +/*!****************************************************************!*\ + !*** ./node_modules/core-js/library/modules/_enum-bug-keys.js ***! + \****************************************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports) { +// IE 8- don't enum bug keys +module.exports = ( + 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf' +).split(','); -/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(/*! ./../../../process/browser.js */ 3))) /***/ }), -/* 134 */ -/*!***********************************************************************!*\ - !*** ./node_modules/@emotion/serialize/dist/serialize.browser.esm.js ***! - \***********************************************************************/ -/*! exports provided: serializeStyles */ -/*! exports used: serializeStyles */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { +/* 139 */ +/*!**************************************************************!*\ + !*** ./node_modules/core-js/library/modules/_object-gops.js ***! + \**************************************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports) { -"use strict"; -/* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return serializeStyles; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__emotion_hash__ = __webpack_require__(/*! @emotion/hash */ 266); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__emotion_unitless__ = __webpack_require__(/*! @emotion/unitless */ 267); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__emotion_memoize__ = __webpack_require__(/*! @emotion/memoize */ 268); +exports.f = Object.getOwnPropertySymbols; +/***/ }), +/* 140 */ +/*!************************************************************!*\ + !*** ./node_modules/core-js/library/modules/_to-object.js ***! + \************************************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { +// 7.1.13 ToObject(argument) +var defined = __webpack_require__(/*! ./_defined */ 134); +module.exports = function (it) { + return Object(defined(it)); +}; -var ILLEGAL_ESCAPE_SEQUENCE_ERROR = "You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences"; -var UNDEFINED_AS_OBJECT_KEY_ERROR = "You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key)."; -var hyphenateRegex = /[A-Z]|^ms/g; -var animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g; -var isCustomProperty = function isCustomProperty(property) { - return property.charCodeAt(1) === 45; -}; +/***/ }), +/* 141 */ +/*!************************************************************!*\ + !*** ./node_modules/core-js/library/modules/_iterators.js ***! + \************************************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports) { -var isProcessableValue = function isProcessableValue(value) { - return value != null && typeof value !== 'boolean'; -}; +module.exports = {}; -var processStyleName = __WEBPACK_IMPORTED_MODULE_2__emotion_memoize__["a" /* default */](function (styleName) { - return isCustomProperty(styleName) ? styleName : styleName.replace(hyphenateRegex, '-$&').toLowerCase(); -}); -var processStyleValue = function processStyleValue(key, value) { - switch (key) { - case 'animation': - case 'animationName': - { - if (typeof value === 'string') { - return value.replace(animationRegex, function (match, p1, p2) { - cursor = { - name: p1, - styles: p2, - next: cursor - }; - return p1; - }); - } - } - } +/***/ }), +/* 142 */ +/*!****************************************************************!*\ + !*** ./node_modules/core-js/library/modules/_object-create.js ***! + \****************************************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { - if (__WEBPACK_IMPORTED_MODULE_1__emotion_unitless__["a" /* default */][key] !== 1 && !isCustomProperty(key) && typeof value === 'number' && value !== 0) { - return value + 'px'; - } +// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) +var anObject = __webpack_require__(/*! ./_an-object */ 44); +var dPs = __webpack_require__(/*! ./_object-dps */ 844); +var enumBugKeys = __webpack_require__(/*! ./_enum-bug-keys */ 138); +var IE_PROTO = __webpack_require__(/*! ./_shared-key */ 136)('IE_PROTO'); +var Empty = function () { /* empty */ }; +var PROTOTYPE = 'prototype'; + +// Create object with fake `null` prototype: use iframe Object with cleared prototype +var createDict = function () { + // Thrash, waste and sodomy: IE GC bug + var iframe = __webpack_require__(/*! ./_dom-create */ 243)('iframe'); + var i = enumBugKeys.length; + var lt = '<'; + var gt = '>'; + var iframeDocument; + iframe.style.display = 'none'; + __webpack_require__(/*! ./_html */ 845).appendChild(iframe); + iframe.src = 'javascript:'; // eslint-disable-line no-script-url + // createDict = iframe.contentWindow.Object; + // html.removeChild(iframe); + iframeDocument = iframe.contentWindow.document; + iframeDocument.open(); + iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt); + iframeDocument.close(); + createDict = iframeDocument.F; + while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]]; + return createDict(); +}; - return value; +module.exports = Object.create || function create(O, Properties) { + var result; + if (O !== null) { + Empty[PROTOTYPE] = anObject(O); + result = new Empty(); + Empty[PROTOTYPE] = null; + // add "__proto__" for Object.getPrototypeOf polyfill + result[IE_PROTO] = O; + } else result = createDict(); + return Properties === undefined ? result : dPs(result, Properties); }; -if (process.env.NODE_ENV !== 'production') { - var contentValuePattern = /(attr|calc|counters?|url)\(/; - var contentValues = ['normal', 'none', 'counter', 'open-quote', 'close-quote', 'no-open-quote', 'no-close-quote', 'initial', 'inherit', 'unset']; - var oldProcessStyleValue = processStyleValue; - var msPattern = /^-ms-/; - var hyphenPattern = /-(.)/g; - var hyphenatedCache = {}; - processStyleValue = function processStyleValue(key, value) { - if (key === 'content') { - if (typeof value !== 'string' || contentValues.indexOf(value) === -1 && !contentValuePattern.test(value) && (value.charAt(0) !== value.charAt(value.length - 1) || value.charAt(0) !== '"' && value.charAt(0) !== "'")) { - console.error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"" + value + "\"'`"); - } - } +/***/ }), +/* 143 */ +/*!********************************************************************!*\ + !*** ./node_modules/core-js/library/modules/_set-to-string-tag.js ***! + \********************************************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { - var processed = oldProcessStyleValue(key, value); +var def = __webpack_require__(/*! ./_object-dp */ 24).f; +var has = __webpack_require__(/*! ./_has */ 26); +var TAG = __webpack_require__(/*! ./_wks */ 40)('toStringTag'); - if (processed !== '' && !isCustomProperty(key) && key.indexOf('-') !== -1 && hyphenatedCache[key] === undefined) { - hyphenatedCache[key] = true; - console.error("Using kebab-case for css properties in objects is not supported. Did you mean " + key.replace(msPattern, 'ms-').replace(hyphenPattern, function (str, _char) { - return _char.toUpperCase(); - }) + "?"); - } +module.exports = function (it, tag, stat) { + if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag }); +}; - return processed; - }; -} -var shouldWarnAboutInterpolatingClassNameFromCss = true; +/***/ }), +/* 144 */ +/*!**********************************************************!*\ + !*** ./node_modules/core-js/library/modules/_wks-ext.js ***! + \**********************************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { -function handleInterpolation(mergedProps, registered, interpolation, couldBeSelectorInterpolation) { - if (interpolation == null) { - return ''; - } +exports.f = __webpack_require__(/*! ./_wks */ 40); - if (interpolation.__emotion_styles !== undefined) { - if (process.env.NODE_ENV !== 'production' && interpolation.toString() === 'NO_COMPONENT_SELECTOR') { - throw new Error('Component selectors can only be used in conjunction with babel-plugin-emotion.'); - } - return interpolation; - } - - switch (typeof interpolation) { - case 'boolean': - { - return ''; - } - - case 'object': - { - if (interpolation.anim === 1) { - cursor = { - name: interpolation.name, - styles: interpolation.styles, - next: cursor - }; - return interpolation.name; - } - - if (interpolation.styles !== undefined) { - var next = interpolation.next; - - if (next !== undefined) { - // not the most efficient thing ever but this is a pretty rare case - // and there will be very few iterations of this generally - while (next !== undefined) { - cursor = { - name: next.name, - styles: next.styles, - next: cursor - }; - next = next.next; - } - } - - var styles = interpolation.styles + ";"; - - if (process.env.NODE_ENV !== 'production' && interpolation.map !== undefined) { - styles += interpolation.map; - } - - return styles; - } +/***/ }), +/* 145 */ +/*!*************************************************************!*\ + !*** ./node_modules/core-js/library/modules/_wks-define.js ***! + \*************************************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { - return createStringFromObject(mergedProps, registered, interpolation); - } +var global = __webpack_require__(/*! ./_global */ 20); +var core = __webpack_require__(/*! ./_core */ 17); +var LIBRARY = __webpack_require__(/*! ./_library */ 71); +var wksExt = __webpack_require__(/*! ./_wks-ext */ 144); +var defineProperty = __webpack_require__(/*! ./_object-dp */ 24).f; +module.exports = function (name) { + var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {}); + if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) }); +}; - case 'function': - { - if (mergedProps !== undefined) { - var previousCursor = cursor; - var result = interpolation(mergedProps); - cursor = previousCursor; - return handleInterpolation(mergedProps, registered, result, couldBeSelectorInterpolation); - } else if (process.env.NODE_ENV !== 'production') { - console.error('Functions that are interpolated in css calls will be stringified.\n' + 'If you want to have a css call based on props, create a function that returns a css call like this\n' + 'let dynamicStyle = (props) => css`color: ${props.color}`\n' + 'It can be called directly with props or interpolated in a styled call like this\n' + "let SomeComponent = styled('div')`${dynamicStyle}`"); - } - break; - } +/***/ }), +/* 146 */ +/*!***************************************************!*\ + !*** ./src/blocks/advanced-heading/attributes.js ***! + \***************************************************/ +/*! exports provided: default */ +/*! exports used: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { - case 'string': - if (process.env.NODE_ENV !== 'production') { - var matched = []; - var replaced = interpolation.replace(animationRegex, function (match, p1, p2) { - var fakeVarName = "animation" + matched.length; - matched.push("const " + fakeVarName + " = keyframes`" + p2.replace(/^@keyframes animation-\w+/, '') + "`"); - return "${" + fakeVarName + "}"; - }); +"use strict"; +var attributes = { + block_id: { + type: "string" + }, + classMigrate: { + type: "boolean", + default: false + }, + headingTitle: { + source: "html", + selector: "h1,h2,h3,h4,h5,h6" + }, + headingId: { + type: "string" + }, + headingDesc: { + source: "html", + selector: "p", + default: "" + }, + headingAlign: { + type: "string", + default: "center" + }, + headingColor: { + type: "string" + }, + subHeadingColor: { + type: "string" + }, + separatorColor: { + type: "string" + }, + headingTag: { + type: "string", + default: "h2" + }, + level: { + type: "number", + default: 2 + }, + seperatorStyle: { + type: "string", + default: "solid" + }, + separatorHeight: { + type: "number" + }, + separatorWidth: { + type: "number" + }, + separatorWidthType: { + type: "string", + default: "%" + }, + headSpace: { + type: "number", + default: 15 + }, + headFontFamily: { + type: "string", + default: "Default" + }, + headFontWeight: { + type: "string" + }, + headFontSubset: { + type: "string" + }, + headFontSizeType: { + type: "string", + default: "px" + }, + headLineHeightType: { + type: "string", + default: "em" + }, + headFontSize: { + type: "number" + }, + headFontSizeTablet: { + type: "number" + }, + headFontSizeMobile: { + type: "number" + }, + headLineHeight: { + type: "number" + }, + headLineHeightTablet: { + type: "number" + }, + headLineHeightMobile: { + type: "number" + }, + subHeadFontFamily: { + type: "string", + default: "" + }, + subHeadFontWeight: { + type: "string" + }, + subHeadFontSubset: { + type: "string" + }, + subHeadFontSize: { + type: "number" + }, + subHeadFontSizeType: { + type: "string", + default: "px" + }, + subHeadFontSizeTablet: { + type: "number" + }, + subHeadFontSizeMobile: { + type: "number" + }, + subHeadLineHeight: { + type: "number" + }, + subHeadLineHeightType: { + type: "string", + default: "em" + }, + subHeadLineHeightTablet: { + type: "number" + }, + subHeadLineHeightMobile: { + type: "number" + }, + separatorSpace: { + type: "number", + default: 15 + }, + headLoadGoogleFonts: { + type: "boolean", + default: false + }, + subHeadLoadGoogleFonts: { + type: "boolean", + default: false + } +}; - if (matched.length) { - console.error('`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\n' + 'Instead of doing this:\n\n' + [].concat(matched, ["`" + replaced + "`"]).join('\n') + '\n\nYou should wrap it with `css` like this:\n\n' + ("css`" + replaced + "`")); - } - } +/* harmony default export */ __webpack_exports__["a"] = (attributes); - break; - } // finalize string values (regular strings and functions interpolated into css calls) +/***/ }), +/* 147 */ +/*!**********************************************!*\ + !*** ./node_modules/lodash/_baseIteratee.js ***! + \**********************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { +var baseMatches = __webpack_require__(/*! ./_baseMatches */ 259), + baseMatchesProperty = __webpack_require__(/*! ./_baseMatchesProperty */ 310), + identity = __webpack_require__(/*! ./identity */ 58), + isArray = __webpack_require__(/*! ./isArray */ 14), + property = __webpack_require__(/*! ./property */ 317); - if (registered == null) { - return interpolation; +/** + * The base implementation of `_.iteratee`. + * + * @private + * @param {*} [value=_.identity] The value to convert to an iteratee. + * @returns {Function} Returns the iteratee. + */ +function baseIteratee(value) { + // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9. + // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details. + if (typeof value == 'function') { + return value; } - - var cached = registered[interpolation]; - - if (process.env.NODE_ENV !== 'production' && couldBeSelectorInterpolation && shouldWarnAboutInterpolatingClassNameFromCss && cached !== undefined) { - console.error('Interpolating a className from css`` is not recommended and will cause problems with composition.\n' + 'Interpolating a className from css`` will be completely unsupported in a future major version of Emotion'); - shouldWarnAboutInterpolatingClassNameFromCss = false; + if (value == null) { + return identity; } - - return cached !== undefined && !couldBeSelectorInterpolation ? cached : interpolation; + if (typeof value == 'object') { + return isArray(value) + ? baseMatchesProperty(value[0], value[1]) + : baseMatches(value); + } + return property(value); } -function createStringFromObject(mergedProps, registered, obj) { - var string = ''; - - if (Array.isArray(obj)) { - for (var i = 0; i < obj.length; i++) { - string += handleInterpolation(mergedProps, registered, obj[i], false); - } - } else { - for (var _key in obj) { - var value = obj[_key]; +module.exports = baseIteratee; - if (typeof value !== 'object') { - if (registered != null && registered[value] !== undefined) { - string += _key + "{" + registered[value] + "}"; - } else if (isProcessableValue(value)) { - string += processStyleName(_key) + ":" + processStyleValue(_key, value) + ";"; - } - } else { - if (_key === 'NO_COMPONENT_SELECTOR' && process.env.NODE_ENV !== 'production') { - throw new Error('Component selectors can only be used in conjunction with babel-plugin-emotion.'); - } - if (Array.isArray(value) && typeof value[0] === 'string' && (registered == null || registered[value[0]] === undefined)) { - for (var _i = 0; _i < value.length; _i++) { - if (isProcessableValue(value[_i])) { - string += processStyleName(_key) + ":" + processStyleValue(_key, value[_i]) + ";"; - } - } - } else { - var interpolated = handleInterpolation(mergedProps, registered, value, false); +/***/ }), +/* 148 */ +/*!*******************************************!*\ + !*** ./node_modules/lodash/isFunction.js ***! + \*******************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { - switch (_key) { - case 'animation': - case 'animationName': - { - string += processStyleName(_key) + ":" + interpolated + ";"; - break; - } +var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ 22), + isObject = __webpack_require__(/*! ./isObject */ 13); - default: - { - if (process.env.NODE_ENV !== 'production' && _key === 'undefined') { - console.error(UNDEFINED_AS_OBJECT_KEY_ERROR); - } +/** `Object#toString` result references. */ +var asyncTag = '[object AsyncFunction]', + funcTag = '[object Function]', + genTag = '[object GeneratorFunction]', + proxyTag = '[object Proxy]'; - string += _key + "{" + interpolated + "}"; - } - } - } - } - } +/** + * Checks if `value` is classified as a `Function` object. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a function, else `false`. + * @example + * + * _.isFunction(_); + * // => true + * + * _.isFunction(/abc/); + * // => false + */ +function isFunction(value) { + if (!isObject(value)) { + return false; } - - return string; + // The use of `Object#toString` avoids issues with the `typeof` operator + // in Safari 9 which returns 'object' for typed arrays and other constructors. + var tag = baseGetTag(value); + return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag; } -var labelPattern = /label:\s*([^\s;\n{]+)\s*;/g; -var sourceMapPattern; - -if (process.env.NODE_ENV !== 'production') { - sourceMapPattern = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//; -} // this is the cursor for keyframes -// keyframes are stored on the SerializedStyles object as a linked list +module.exports = isFunction; -var cursor; -var serializeStyles = function serializeStyles(args, registered, mergedProps) { - if (args.length === 1 && typeof args[0] === 'object' && args[0] !== null && args[0].styles !== undefined) { - return args[0]; - } +/***/ }), +/* 149 */ +/*!********************************************!*\ + !*** ./node_modules/lodash/_freeGlobal.js ***! + \********************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { - var stringMode = true; - var styles = ''; - cursor = undefined; - var strings = args[0]; +/* WEBPACK VAR INJECTION */(function(global) {/** Detect free variable `global` from Node.js. */ +var freeGlobal = typeof global == 'object' && global && global.Object === Object && global; - if (strings == null || strings.raw === undefined) { - stringMode = false; - styles += handleInterpolation(mergedProps, registered, strings, false); - } else { - if (process.env.NODE_ENV !== 'production' && strings[0] === undefined) { - console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR); - } +module.exports = freeGlobal; - styles += strings[0]; - } // we start at 1 since we've already handled the first arg +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(/*! ./../webpack/buildin/global.js */ 76))) +/***/ }), +/* 150 */ +/*!******************************************!*\ + !*** ./node_modules/lodash/_toSource.js ***! + \******************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports) { - for (var i = 1; i < args.length; i++) { - styles += handleInterpolation(mergedProps, registered, args[i], styles.charCodeAt(styles.length - 1) === 46); +/** Used for built-in method references. */ +var funcProto = Function.prototype; - if (stringMode) { - if (process.env.NODE_ENV !== 'production' && strings[i] === undefined) { - console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR); - } +/** Used to resolve the decompiled source of functions. */ +var funcToString = funcProto.toString; - styles += strings[i]; - } +/** + * Converts `func` to its source code. + * + * @private + * @param {Function} func The function to convert. + * @returns {string} Returns the source code. + */ +function toSource(func) { + if (func != null) { + try { + return funcToString.call(func); + } catch (e) {} + try { + return (func + ''); + } catch (e) {} } + return ''; +} - var sourceMap; +module.exports = toSource; - if (process.env.NODE_ENV !== 'production') { - styles = styles.replace(sourceMapPattern, function (match) { - sourceMap = match; - return ''; - }); - } // using a global regex with .exec is stateful so lastIndex has to be reset each time +/***/ }), +/* 151 */ +/*!*********************************************!*\ + !*** ./node_modules/lodash/_baseIsEqual.js ***! + \*********************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { - labelPattern.lastIndex = 0; - var identifierName = ''; - var match; // https://esbench.com/bench/5b809c2cf2949800a0f61fb5 +var baseIsEqualDeep = __webpack_require__(/*! ./_baseIsEqualDeep */ 289), + isObjectLike = __webpack_require__(/*! ./isObjectLike */ 18); - while ((match = labelPattern.exec(styles)) !== null) { - identifierName += '-' + // $FlowFixMe we know it's not null - match[1]; +/** + * The base implementation of `_.isEqual` which supports partial comparisons + * and tracks traversed objects. + * + * @private + * @param {*} value The value to compare. + * @param {*} other The other value to compare. + * @param {boolean} bitmask The bitmask flags. + * 1 - Unordered comparison + * 2 - Partial comparison + * @param {Function} [customizer] The function to customize comparisons. + * @param {Object} [stack] Tracks traversed `value` and `other` objects. + * @returns {boolean} Returns `true` if the values are equivalent, else `false`. + */ +function baseIsEqual(value, other, bitmask, customizer, stack) { + if (value === other) { + return true; } - - var name = __WEBPACK_IMPORTED_MODULE_0__emotion_hash__["a" /* default */](styles) + identifierName; - - if (process.env.NODE_ENV !== 'production') { - // $FlowFixMe SerializedStyles type doesn't have toString property (and we don't want to add it) - return { - name: name, - styles: styles, - map: sourceMap, - next: cursor, - toString: function toString() { - return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; - } - }; + if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) { + return value !== value && other !== other; } + return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack); +} - return { - name: name, - styles: styles, - next: cursor - }; -}; - - +module.exports = baseIsEqual; -/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(/*! ./../../../process/browser.js */ 3))) /***/ }), -/* 135 */ -/*!****************************************************************!*\ - !*** ./node_modules/react-dom/node_modules/scheduler/index.js ***! - \****************************************************************/ -/*! no static exports found */ +/* 152 */ +/*!*********************************************!*\ + !*** ./node_modules/lodash/_equalArrays.js ***! + \*********************************************/ +/*! dynamic exports provided */ /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { -"use strict"; -/* WEBPACK VAR INJECTION */(function(process) { - -if (process.env.NODE_ENV === 'production') { - module.exports = __webpack_require__(/*! ./cjs/scheduler.production.min.js */ 270); -} else { - module.exports = __webpack_require__(/*! ./cjs/scheduler.development.js */ 271); -} +var SetCache = __webpack_require__(/*! ./_SetCache */ 290), + arraySome = __webpack_require__(/*! ./_arraySome */ 293), + cacheHas = __webpack_require__(/*! ./_cacheHas */ 294); -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(/*! ./../../../process/browser.js */ 3))) +/** Used to compose bitmasks for value comparisons. */ +var COMPARE_PARTIAL_FLAG = 1, + COMPARE_UNORDERED_FLAG = 2; -/***/ }), -/* 136 */ -/*!****************************************!*\ - !*** ./node_modules/react-is/index.js ***! - \****************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { +/** + * A specialized version of `baseIsEqualDeep` for arrays with support for + * partial deep comparisons. + * + * @private + * @param {Array} array The array to compare. + * @param {Array} other The other array to compare. + * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details. + * @param {Function} customizer The function to customize comparisons. + * @param {Function} equalFunc The function to determine equivalents of values. + * @param {Object} stack Tracks traversed `array` and `other` objects. + * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`. + */ +function equalArrays(array, other, bitmask, customizer, equalFunc, stack) { + var isPartial = bitmask & COMPARE_PARTIAL_FLAG, + arrLength = array.length, + othLength = other.length; -"use strict"; -/* WEBPACK VAR INJECTION */(function(process) { + if (arrLength != othLength && !(isPartial && othLength > arrLength)) { + return false; + } + // Assume cyclic values are equal. + var stacked = stack.get(array); + if (stacked && stack.get(other)) { + return stacked == other; + } + var index = -1, + result = true, + seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined; -if (process.env.NODE_ENV === 'production') { - module.exports = __webpack_require__(/*! ./cjs/react-is.production.min.js */ 276); -} else { - module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ 277); + stack.set(array, other); + stack.set(other, array); + + // Ignore non-index properties. + while (++index < arrLength) { + var arrValue = array[index], + othValue = other[index]; + + if (customizer) { + var compared = isPartial + ? customizer(othValue, arrValue, index, other, array, stack) + : customizer(arrValue, othValue, index, array, other, stack); + } + if (compared !== undefined) { + if (compared) { + continue; + } + result = false; + break; + } + // Recursively compare arrays (susceptible to call stack limits). + if (seen) { + if (!arraySome(other, function(othValue, othIndex) { + if (!cacheHas(seen, othIndex) && + (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) { + return seen.push(othIndex); + } + })) { + result = false; + break; + } + } else if (!( + arrValue === othValue || + equalFunc(arrValue, othValue, bitmask, customizer, stack) + )) { + result = false; + break; + } + } + stack['delete'](array); + stack['delete'](other); + return result; } -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(/*! ./../process/browser.js */ 3))) +module.exports = equalArrays; -/***/ }), -/* 137 */ -/*!**********************************************************************!*\ - !*** ./node_modules/react-select/dist/index-4322c0ed.browser.esm.js ***! - \**********************************************************************/ -/*! exports provided: M, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y */ -/*! exports used: M, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { -"use strict"; -/* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return MenuPlacer; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return containerCSS; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return css; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return clearIndicatorCSS; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return dropdownIndicatorCSS; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return groupHeadingCSS; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return indicatorSeparatorCSS; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return groupCSS; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return inputCSS; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return indicatorsContainerCSS; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return loadingMessageCSS; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return menuListCSS; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return loadingIndicatorCSS; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return menuCSS; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return menuPortalCSS; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return multiValueCSS; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return multiValueLabelCSS; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return multiValueRemoveCSS; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return noOptionsMessageCSS; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return optionCSS; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return placeholderCSS; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "v", function() { return css$1; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "w", function() { return valueContainerCSS; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "x", function() { return defaultComponents; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return exportedEqual; }); -/* unused harmony export y */ -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(/*! react */ 6); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__emotion_core__ = __webpack_require__(/*! @emotion/core */ 65); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_dom__ = __webpack_require__(/*! react-dom */ 18); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react_dom__); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types__ = __webpack_require__(/*! prop-types */ 15); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_prop_types__); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__utils_06b0d5a4_browser_esm_js__ = __webpack_require__(/*! ./utils-06b0d5a4.browser.esm.js */ 66); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__emotion_css__ = __webpack_require__(/*! @emotion/css */ 29); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react_input_autosize__ = __webpack_require__(/*! react-input-autosize */ 138); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react_input_autosize___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react_input_autosize__); +/***/ }), +/* 153 */ +/*!********************************************!*\ + !*** ./node_modules/lodash/_Uint8Array.js ***! + \********************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { +var root = __webpack_require__(/*! ./_root */ 12); +/** Built-in value references. */ +var Uint8Array = root.Uint8Array; +module.exports = Uint8Array; +/***/ }), +/* 154 */ +/*!********************************************!*\ + !*** ./node_modules/lodash/_getAllKeys.js ***! + \********************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { +var baseGetAllKeys = __webpack_require__(/*! ./_baseGetAllKeys */ 155), + getSymbols = __webpack_require__(/*! ./_getSymbols */ 79), + keys = __webpack_require__(/*! ./keys */ 28); +/** + * Creates an array of own enumerable property names and symbols of `object`. + * + * @private + * @param {Object} object The object to query. + * @returns {Array} Returns the array of property names and symbols. + */ +function getAllKeys(object) { + return baseGetAllKeys(object, keys, getSymbols); +} -function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } +module.exports = getAllKeys; -function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; } -function getMenuPlacement(_ref) { - var maxHeight = _ref.maxHeight, - menuEl = _ref.menuEl, - minHeight = _ref.minHeight, - placement = _ref.placement, - shouldScroll = _ref.shouldScroll, - isFixedPosition = _ref.isFixedPosition, - theme = _ref.theme; - var spacing = theme.spacing; - var scrollParent = __WEBPACK_IMPORTED_MODULE_4__utils_06b0d5a4_browser_esm_js__["a"](menuEl); - var defaultState = { - placement: 'bottom', - maxHeight: maxHeight - }; // something went wrong, return default state - if (!menuEl || !menuEl.offsetParent) return defaultState; // we can't trust `scrollParent.scrollHeight` --> it may increase when - // the menu is rendered +/***/ }), +/* 155 */ +/*!************************************************!*\ + !*** ./node_modules/lodash/_baseGetAllKeys.js ***! + \************************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { - var _scrollParent$getBoun = scrollParent.getBoundingClientRect(), - scrollHeight = _scrollParent$getBoun.height; +var arrayPush = __webpack_require__(/*! ./_arrayPush */ 78), + isArray = __webpack_require__(/*! ./isArray */ 14); - var _menuEl$getBoundingCl = menuEl.getBoundingClientRect(), - menuBottom = _menuEl$getBoundingCl.bottom, - menuHeight = _menuEl$getBoundingCl.height, - menuTop = _menuEl$getBoundingCl.top; +/** + * The base implementation of `getAllKeys` and `getAllKeysIn` which uses + * `keysFunc` and `symbolsFunc` to get the enumerable property names and + * symbols of `object`. + * + * @private + * @param {Object} object The object to query. + * @param {Function} keysFunc The function to get the keys of `object`. + * @param {Function} symbolsFunc The function to get the symbols of `object`. + * @returns {Array} Returns the array of property names and symbols. + */ +function baseGetAllKeys(object, keysFunc, symbolsFunc) { + var result = keysFunc(object); + return isArray(object) ? result : arrayPush(result, symbolsFunc(object)); +} - var _menuEl$offsetParent$ = menuEl.offsetParent.getBoundingClientRect(), - containerTop = _menuEl$offsetParent$.top; +module.exports = baseGetAllKeys; - var viewHeight = window.innerHeight; - var scrollTop = __WEBPACK_IMPORTED_MODULE_4__utils_06b0d5a4_browser_esm_js__["b"](scrollParent); - var marginBottom = parseInt(getComputedStyle(menuEl).marginBottom, 10); - var marginTop = parseInt(getComputedStyle(menuEl).marginTop, 10); - var viewSpaceAbove = containerTop - marginTop; - var viewSpaceBelow = viewHeight - menuTop; - var scrollSpaceAbove = viewSpaceAbove + scrollTop; - var scrollSpaceBelow = scrollHeight - scrollTop - menuTop; - var scrollDown = menuBottom - viewHeight + scrollTop + marginBottom; - var scrollUp = scrollTop + menuTop - marginTop; - var scrollDuration = 160; - switch (placement) { - case 'auto': - case 'bottom': - // 1: the menu will fit, do nothing - if (viewSpaceBelow >= menuHeight) { - return { - placement: 'bottom', - maxHeight: maxHeight - }; - } // 2: the menu will fit, if scrolled +/***/ }), +/* 156 */ +/*!******************************************!*\ + !*** ./node_modules/lodash/stubArray.js ***! + \******************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports) { +/** + * This method returns a new empty array. + * + * @static + * @memberOf _ + * @since 4.13.0 + * @category Util + * @returns {Array} Returns the new empty array. + * @example + * + * var arrays = _.times(2, _.stubArray); + * + * console.log(arrays); + * // => [[], []] + * + * console.log(arrays[0] === arrays[1]); + * // => false + */ +function stubArray() { + return []; +} - if (scrollSpaceBelow >= menuHeight && !isFixedPosition) { - if (shouldScroll) { - __WEBPACK_IMPORTED_MODULE_4__utils_06b0d5a4_browser_esm_js__["c"](scrollParent, scrollDown, scrollDuration); - } +module.exports = stubArray; - return { - placement: 'bottom', - maxHeight: maxHeight - }; - } // 3: the menu will fit, if constrained +/***/ }), +/* 157 */ +/*!***********************************************!*\ + !*** ./node_modules/lodash/_arrayLikeKeys.js ***! + \***********************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { - if (!isFixedPosition && scrollSpaceBelow >= minHeight || isFixedPosition && viewSpaceBelow >= minHeight) { - if (shouldScroll) { - __WEBPACK_IMPORTED_MODULE_4__utils_06b0d5a4_browser_esm_js__["c"](scrollParent, scrollDown, scrollDuration); - } // we want to provide as much of the menu as possible to the user, - // so give them whatever is available below rather than the minHeight. +var baseTimes = __webpack_require__(/*! ./_baseTimes */ 158), + isArguments = __webpack_require__(/*! ./isArguments */ 80), + isArray = __webpack_require__(/*! ./isArray */ 14), + isBuffer = __webpack_require__(/*! ./isBuffer */ 81), + isIndex = __webpack_require__(/*! ./_isIndex */ 51), + isTypedArray = __webpack_require__(/*! ./isTypedArray */ 159); +/** Used for built-in method references. */ +var objectProto = Object.prototype; - var constrainedHeight = isFixedPosition ? viewSpaceBelow - marginBottom : scrollSpaceBelow - marginBottom; - return { - placement: 'bottom', - maxHeight: constrainedHeight - }; - } // 4. Forked beviour when there isn't enough space below - // AUTO: flip the menu, render above +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; +/** + * Creates an array of the enumerable property names of the array-like `value`. + * + * @private + * @param {*} value The value to query. + * @param {boolean} inherited Specify returning inherited property names. + * @returns {Array} Returns the array of property names. + */ +function arrayLikeKeys(value, inherited) { + var isArr = isArray(value), + isArg = !isArr && isArguments(value), + isBuff = !isArr && !isArg && isBuffer(value), + isType = !isArr && !isArg && !isBuff && isTypedArray(value), + skipIndexes = isArr || isArg || isBuff || isType, + result = skipIndexes ? baseTimes(value.length, String) : [], + length = result.length; - if (placement === 'auto' || isFixedPosition) { - // may need to be constrained after flipping - var _constrainedHeight = maxHeight; - var spaceAbove = isFixedPosition ? viewSpaceAbove : scrollSpaceAbove; + for (var key in value) { + if ((inherited || hasOwnProperty.call(value, key)) && + !(skipIndexes && ( + // Safari 9 has enumerable `arguments.length` in strict mode. + key == 'length' || + // Node.js 0.10 has enumerable non-index properties on buffers. + (isBuff && (key == 'offset' || key == 'parent')) || + // PhantomJS 2 has enumerable non-index properties on typed arrays. + (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) || + // Skip index properties. + isIndex(key, length) + ))) { + result.push(key); + } + } + return result; +} - if (spaceAbove >= minHeight) { - _constrainedHeight = Math.min(spaceAbove - marginBottom - spacing.controlHeight, maxHeight); - } +module.exports = arrayLikeKeys; - return { - placement: 'top', - maxHeight: _constrainedHeight - }; - } // BOTTOM: allow browser to increase scrollable area and immediately set scroll +/***/ }), +/* 158 */ +/*!*******************************************!*\ + !*** ./node_modules/lodash/_baseTimes.js ***! + \*******************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports) { - if (placement === 'bottom') { - __WEBPACK_IMPORTED_MODULE_4__utils_06b0d5a4_browser_esm_js__["l" /* s */](scrollParent, scrollDown); - return { - placement: 'bottom', - maxHeight: maxHeight - }; - } +/** + * The base implementation of `_.times` without support for iteratee shorthands + * or max array length checks. + * + * @private + * @param {number} n The number of times to invoke `iteratee`. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Array} Returns the array of results. + */ +function baseTimes(n, iteratee) { + var index = -1, + result = Array(n); - break; + while (++index < n) { + result[index] = iteratee(index); + } + return result; +} - case 'top': - // 1: the menu will fit, do nothing - if (viewSpaceAbove >= menuHeight) { - return { - placement: 'top', - maxHeight: maxHeight - }; - } // 2: the menu will fit, if scrolled +module.exports = baseTimes; - if (scrollSpaceAbove >= menuHeight && !isFixedPosition) { - if (shouldScroll) { - __WEBPACK_IMPORTED_MODULE_4__utils_06b0d5a4_browser_esm_js__["c"](scrollParent, scrollUp, scrollDuration); - } +/***/ }), +/* 159 */ +/*!*********************************************!*\ + !*** ./node_modules/lodash/isTypedArray.js ***! + \*********************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { - return { - placement: 'top', - maxHeight: maxHeight - }; - } // 3: the menu will fit, if constrained +var baseIsTypedArray = __webpack_require__(/*! ./_baseIsTypedArray */ 302), + baseUnary = __webpack_require__(/*! ./_baseUnary */ 52), + nodeUtil = __webpack_require__(/*! ./_nodeUtil */ 53); +/* Node.js helper references. */ +var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray; - if (!isFixedPosition && scrollSpaceAbove >= minHeight || isFixedPosition && viewSpaceAbove >= minHeight) { - var _constrainedHeight2 = maxHeight; // we want to provide as much of the menu as possible to the user, - // so give them whatever is available below rather than the minHeight. +/** + * Checks if `value` is classified as a typed array. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a typed array, else `false`. + * @example + * + * _.isTypedArray(new Uint8Array); + * // => true + * + * _.isTypedArray([]); + * // => false + */ +var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray; - if (!isFixedPosition && scrollSpaceAbove >= minHeight || isFixedPosition && viewSpaceAbove >= minHeight) { - _constrainedHeight2 = isFixedPosition ? viewSpaceAbove - marginTop : scrollSpaceAbove - marginTop; - } +module.exports = isTypedArray; - if (shouldScroll) { - __WEBPACK_IMPORTED_MODULE_4__utils_06b0d5a4_browser_esm_js__["c"](scrollParent, scrollUp, scrollDuration); - } - return { - placement: 'top', - maxHeight: _constrainedHeight2 - }; - } // 4. not enough space, the browser WILL NOT increase scrollable area when - // absolutely positioned element rendered above the viewport (only below). - // Flip the menu, render below +/***/ }), +/* 160 */ +/*!*****************************************!*\ + !*** ./node_modules/lodash/_overArg.js ***! + \*****************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports) { +/** + * Creates a unary function that invokes `func` with its argument transformed. + * + * @private + * @param {Function} func The function to wrap. + * @param {Function} transform The argument transform. + * @returns {Function} Returns the new function. + */ +function overArg(func, transform) { + return function(arg) { + return func(transform(arg)); + }; +} - return { - placement: 'bottom', - maxHeight: maxHeight - }; +module.exports = overArg; - default: - throw new Error("Invalid placement provided \"" + placement + "\"."); - } // fulfil contract with flow: implicit return value of undefined +/***/ }), +/* 161 */ +/*!****************************************************!*\ + !*** ./node_modules/lodash/_isStrictComparable.js ***! + \****************************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { - return defaultState; -} // Menu Component -// ------------------------------ +var isObject = __webpack_require__(/*! ./isObject */ 13); -function alignToControl(placement) { - var placementToCSSProp = { - bottom: 'top', - top: 'bottom' - }; - return placement ? placementToCSSProp[placement] : 'bottom'; +/** + * Checks if `value` is suitable for strict equality comparisons, i.e. `===`. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` if suitable for strict + * equality comparisons, else `false`. + */ +function isStrictComparable(value) { + return value === value && !isObject(value); } -var coercePlacement = function coercePlacement(p) { - return p === 'auto' ? 'bottom' : p; -}; +module.exports = isStrictComparable; -var menuCSS = function menuCSS(_ref2) { - var _ref3; - var placement = _ref2.placement, - _ref2$theme = _ref2.theme, - borderRadius = _ref2$theme.borderRadius, - spacing = _ref2$theme.spacing, - colors = _ref2$theme.colors; - return _ref3 = { - label: 'menu' - }, _ref3[alignToControl(placement)] = '100%', _ref3.backgroundColor = colors.neutral0, _ref3.borderRadius = borderRadius, _ref3.boxShadow = '0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)', _ref3.marginBottom = spacing.menuGutter, _ref3.marginTop = spacing.menuGutter, _ref3.position = 'absolute', _ref3.width = '100%', _ref3.zIndex = 1, _ref3; -}; // NOTE: internal only +/***/ }), +/* 162 */ +/*!*********************************************************!*\ + !*** ./node_modules/lodash/_matchesStrictComparable.js ***! + \*********************************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports) { -var MenuPlacer = -/*#__PURE__*/ -function (_Component) { - _inheritsLoose(MenuPlacer, _Component); +/** + * A specialized version of `matchesProperty` for source values suitable + * for strict equality comparisons, i.e. `===`. + * + * @private + * @param {string} key The key of the property to get. + * @param {*} srcValue The value to match. + * @returns {Function} Returns the new spec function. + */ +function matchesStrictComparable(key, srcValue) { + return function(object) { + if (object == null) { + return false; + } + return object[key] === srcValue && + (srcValue !== undefined || (key in Object(object))); + }; +} - function MenuPlacer() { - var _this; +module.exports = matchesStrictComparable; - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - _this = _Component.call.apply(_Component, [this].concat(args)) || this; - _this.state = { - maxHeight: _this.props.maxMenuHeight, - placement: null - }; +/***/ }), +/* 163 */ +/*!************************************!*\ + !*** ./node_modules/lodash/get.js ***! + \************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { - _this.getPlacement = function (ref) { - var _this$props = _this.props, - minMenuHeight = _this$props.minMenuHeight, - maxMenuHeight = _this$props.maxMenuHeight, - menuPlacement = _this$props.menuPlacement, - menuPosition = _this$props.menuPosition, - menuShouldScrollIntoView = _this$props.menuShouldScrollIntoView, - theme = _this$props.theme; - var getPortalPlacement = _this.context.getPortalPlacement; - if (!ref) return; // DO NOT scroll if position is fixed +var baseGet = __webpack_require__(/*! ./_baseGet */ 56); - var isFixedPosition = menuPosition === 'fixed'; - var shouldScroll = menuShouldScrollIntoView && !isFixedPosition; - var state = getMenuPlacement({ - maxHeight: maxMenuHeight, - menuEl: ref, - minHeight: minMenuHeight, - placement: menuPlacement, - shouldScroll: shouldScroll, - isFixedPosition: isFixedPosition, - theme: theme - }); - if (getPortalPlacement) getPortalPlacement(state); +/** + * Gets the value at `path` of `object`. If the resolved value is + * `undefined`, the `defaultValue` is returned in its place. + * + * @static + * @memberOf _ + * @since 3.7.0 + * @category Object + * @param {Object} object The object to query. + * @param {Array|string} path The path of the property to get. + * @param {*} [defaultValue] The value returned for `undefined` resolved values. + * @returns {*} Returns the resolved value. + * @example + * + * var object = { 'a': [{ 'b': { 'c': 3 } }] }; + * + * _.get(object, 'a[0].b.c'); + * // => 3 + * + * _.get(object, ['a', '0', 'b', 'c']); + * // => 3 + * + * _.get(object, 'a.b.c', 'default'); + * // => 'default' + */ +function get(object, path, defaultValue) { + var result = object == null ? undefined : baseGet(object, path); + return result === undefined ? defaultValue : result; +} - _this.setState(state); - }; +module.exports = get; - _this.getUpdatedProps = function () { - var menuPlacement = _this.props.menuPlacement; - var placement = _this.state.placement || coercePlacement(menuPlacement); - return _extends({}, _this.props, { - placement: placement, - maxHeight: _this.state.maxHeight - }); - }; - return _this; - } +/***/ }), +/* 164 */ +/*!*****************************************!*\ + !*** ./node_modules/lodash/toString.js ***! + \*****************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { - var _proto = MenuPlacer.prototype; +var baseToString = __webpack_require__(/*! ./_baseToString */ 165); - _proto.render = function render() { - var children = this.props.children; - return children({ - ref: this.getPlacement, - placerProps: this.getUpdatedProps() - }); - }; +/** + * Converts `value` to a string. An empty string is returned for `null` + * and `undefined` values. The sign of `-0` is preserved. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to convert. + * @returns {string} Returns the converted string. + * @example + * + * _.toString(null); + * // => '' + * + * _.toString(-0); + * // => '-0' + * + * _.toString([1, 2, 3]); + * // => '1,2,3' + */ +function toString(value) { + return value == null ? '' : baseToString(value); +} - return MenuPlacer; -}(__WEBPACK_IMPORTED_MODULE_0_react__["Component"]); -MenuPlacer.contextTypes = { - getPortalPlacement: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func -}; +module.exports = toString; -var Menu = function Menu(props) { - var children = props.children, - className = props.className, - cx = props.cx, - getStyles = props.getStyles, - innerRef = props.innerRef, - innerProps = props.innerProps; - return __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */]("div", _extends({ - css: getStyles('menu', props), - className: cx({ - menu: true - }, className) - }, innerProps, { - ref: innerRef - }), children); -}; -// Menu List -// ============================== -var menuListCSS = function menuListCSS(_ref4) { - var maxHeight = _ref4.maxHeight, - baseUnit = _ref4.theme.spacing.baseUnit; - return { - maxHeight: maxHeight, - overflowY: 'auto', - paddingBottom: baseUnit, - paddingTop: baseUnit, - position: 'relative', - // required for offset[Height, Top] > keyboard scroll - WebkitOverflowScrolling: 'touch' - }; -}; -var MenuList = function MenuList(props) { - var children = props.children, - className = props.className, - cx = props.cx, - getStyles = props.getStyles, - isMulti = props.isMulti, - innerRef = props.innerRef; - return __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */]("div", { - css: getStyles('menuList', props), - className: cx({ - 'menu-list': true, - 'menu-list--is-multi': isMulti - }, className), - ref: innerRef - }, children); -}; // ============================== -// Menu Notices -// ============================== +/***/ }), +/* 165 */ +/*!**********************************************!*\ + !*** ./node_modules/lodash/_baseToString.js ***! + \**********************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { -var noticeCSS = function noticeCSS(_ref5) { - var _ref5$theme = _ref5.theme, - baseUnit = _ref5$theme.spacing.baseUnit, - colors = _ref5$theme.colors; - return { - color: colors.neutral40, - padding: baseUnit * 2 + "px " + baseUnit * 3 + "px", - textAlign: 'center' - }; -}; +var Symbol = __webpack_require__(/*! ./_Symbol */ 27), + arrayMap = __webpack_require__(/*! ./_arrayMap */ 45), + isArray = __webpack_require__(/*! ./isArray */ 14), + isSymbol = __webpack_require__(/*! ./isSymbol */ 57); -var noOptionsMessageCSS = noticeCSS; -var loadingMessageCSS = noticeCSS; -var NoOptionsMessage = function NoOptionsMessage(props) { - var children = props.children, - className = props.className, - cx = props.cx, - getStyles = props.getStyles, - innerProps = props.innerProps; - return __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */]("div", _extends({ - css: getStyles('noOptionsMessage', props), - className: cx({ - 'menu-notice': true, - 'menu-notice--no-options': true - }, className) - }, innerProps), children); -}; -NoOptionsMessage.defaultProps = { - children: 'No options' -}; -var LoadingMessage = function LoadingMessage(props) { - var children = props.children, - className = props.className, - cx = props.cx, - getStyles = props.getStyles, - innerProps = props.innerProps; - return __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */]("div", _extends({ - css: getStyles('loadingMessage', props), - className: cx({ - 'menu-notice': true, - 'menu-notice--loading': true - }, className) - }, innerProps), children); -}; -LoadingMessage.defaultProps = { - children: 'Loading...' -}; // ============================== -// Menu Portal -// ============================== +/** Used as references for various `Number` constants. */ +var INFINITY = 1 / 0; -var menuPortalCSS = function menuPortalCSS(_ref6) { - var rect = _ref6.rect, - offset = _ref6.offset, - position = _ref6.position; - return { - left: rect.left, - position: position, - top: offset, - width: rect.width, - zIndex: 1 - }; -}; -var MenuPortal = -/*#__PURE__*/ -function (_Component2) { - _inheritsLoose(MenuPortal, _Component2); +/** Used to convert symbols to primitives and strings. */ +var symbolProto = Symbol ? Symbol.prototype : undefined, + symbolToString = symbolProto ? symbolProto.toString : undefined; - function MenuPortal() { - var _this2; +/** + * The base implementation of `_.toString` which doesn't convert nullish + * values to empty strings. + * + * @private + * @param {*} value The value to process. + * @returns {string} Returns the string. + */ +function baseToString(value) { + // Exit early for strings to avoid a performance hit in some environments. + if (typeof value == 'string') { + return value; + } + if (isArray(value)) { + // Recursively convert values (susceptible to call stack limits). + return arrayMap(value, baseToString) + ''; + } + if (isSymbol(value)) { + return symbolToString ? symbolToString.call(value) : ''; + } + var result = (value + ''); + return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; +} - for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { - args[_key2] = arguments[_key2]; - } +module.exports = baseToString; - _this2 = _Component2.call.apply(_Component2, [this].concat(args)) || this; - _this2.state = { - placement: null - }; - _this2.getPortalPlacement = function (_ref7) { - var placement = _ref7.placement; - var initialPlacement = coercePlacement(_this2.props.menuPlacement); // avoid re-renders if the placement has not changed +/***/ }), +/* 166 */ +/*!**********************************************!*\ + !*** ./node_modules/lodash/_baseProperty.js ***! + \**********************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports) { - if (placement !== initialPlacement) { - _this2.setState({ - placement: placement - }); - } - }; +/** + * The base implementation of `_.property` without support for deep paths. + * + * @private + * @param {string} key The key of the property to get. + * @returns {Function} Returns the new accessor function. + */ +function baseProperty(key) { + return function(object) { + return object == null ? undefined : object[key]; + }; +} - return _this2; - } +module.exports = baseProperty; - var _proto2 = MenuPortal.prototype; - _proto2.getChildContext = function getChildContext() { - return { - getPortalPlacement: this.getPortalPlacement - }; - } // callback for occassions where the menu must "flip" - ; +/***/ }), +/* 167 */ +/*!*****************************************************************************************************!*\ + !*** ./node_modules/react-select/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***! + \*****************************************************************************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { - _proto2.render = function render() { - var _this$props2 = this.props, - appendTo = _this$props2.appendTo, - children = _this$props2.children, - controlElement = _this$props2.controlElement, - menuPlacement = _this$props2.menuPlacement, - position = _this$props2.menuPosition, - getStyles = _this$props2.getStyles; - var isFixed = position === 'fixed'; // bail early if required elements aren't present - - if (!appendTo && !isFixed || !controlElement) { - return null; - } +var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ 168); - var placement = this.state.placement || coercePlacement(menuPlacement); - var rect = __WEBPACK_IMPORTED_MODULE_4__utils_06b0d5a4_browser_esm_js__["g"](controlElement); - var scrollDistance = isFixed ? 0 : window.pageYOffset; - var offset = rect[placement] + scrollDistance; - var state = { - offset: offset, - position: position, - rect: rect - }; // same wrapper element whether fixed or portalled - - var menuWrapper = __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */]("div", { - css: getStyles('menuPortal', state) - }, children); - return appendTo ? __WEBPACK_IMPORTED_MODULE_2_react_dom__["createPortal"](menuWrapper, appendTo) : menuWrapper; - }; +function _unsupportedIterableToArray(o, minLen) { + if (!o) return; + if (typeof o === "string") return arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + if (n === "Object" && o.constructor) n = o.constructor.name; + if (n === "Map" || n === "Set") return Array.from(o); + if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen); +} - return MenuPortal; -}(__WEBPACK_IMPORTED_MODULE_0_react__["Component"]); -MenuPortal.childContextTypes = { - getPortalPlacement: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func -}; +module.exports = _unsupportedIterableToArray; +module.exports["default"] = module.exports, module.exports.__esModule = true; -var isArray = Array.isArray; -var keyList = Object.keys; -var hasProp = Object.prototype.hasOwnProperty; +/***/ }), +/* 168 */ +/*!*******************************************************************************************!*\ + !*** ./node_modules/react-select/node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***! + \*******************************************************************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports) { -function equal(a, b) { - // fast-deep-equal index.js 2.0.1 - if (a === b) return true; +function _arrayLikeToArray(arr, len) { + if (len == null || len > arr.length) len = arr.length; - if (a && b && typeof a == 'object' && typeof b == 'object') { - var arrA = isArray(a), - arrB = isArray(b), - i, - length, - key; + for (var i = 0, arr2 = new Array(len); i < len; i++) { + arr2[i] = arr[i]; + } - if (arrA && arrB) { - length = a.length; - if (length != b.length) return false; + return arr2; +} - for (i = length; i-- !== 0;) { - if (!equal(a[i], b[i])) return false; - } +module.exports = _arrayLikeToArray; +module.exports["default"] = module.exports, module.exports.__esModule = true; - return true; - } +/***/ }), +/* 169 */ +/*!*********************************************************************************!*\ + !*** ./node_modules/react-select/node_modules/@babel/runtime/helpers/typeof.js ***! + \*********************************************************************************/ +/*! dynamic exports provided */ +/*! exports used: default */ +/***/ (function(module, exports) { - if (arrA != arrB) return false; - var dateA = a instanceof Date, - dateB = b instanceof Date; - if (dateA != dateB) return false; - if (dateA && dateB) return a.getTime() == b.getTime(); - var regexpA = a instanceof RegExp, - regexpB = b instanceof RegExp; - if (regexpA != regexpB) return false; - if (regexpA && regexpB) return a.toString() == b.toString(); - var keys = keyList(a); - length = keys.length; +function _typeof(obj) { + "@babel/helpers - typeof"; - if (length !== keyList(b).length) { - return false; - } + if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { + module.exports = _typeof = function _typeof(obj) { + return typeof obj; + }; - for (i = length; i-- !== 0;) { - if (!hasProp.call(b, keys[i])) return false; - } // end fast-deep-equal - // Custom handling for React + module.exports["default"] = module.exports, module.exports.__esModule = true; + } else { + module.exports = _typeof = function _typeof(obj) { + return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; + }; + module.exports["default"] = module.exports, module.exports.__esModule = true; + } - for (i = length; i-- !== 0;) { - key = keys[i]; + return _typeof(obj); +} - if (key === '_owner' && a.$$typeof) { - // React-specific: avoid traversing React elements' _owner. - // _owner contains circular references - // and is not needed when comparing the actual elements (and not their owners) - // .$$typeof and ._store on just reasonable markers of a react element - continue; - } else { - // all other properties should be traversed as usual - if (!equal(a[key], b[key])) return false; - } - } // fast-deep-equal index.js 2.0.1 +module.exports = _typeof; +module.exports["default"] = module.exports, module.exports.__esModule = true; +/***/ }), +/* 170 */ +/*!****************************************************************************************************!*\ + !*** ./node_modules/react-select/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js ***! + \****************************************************************************************************/ +/*! exports provided: default */ +/*! exports used: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { - return true; +"use strict"; +/* harmony export (immutable) */ __webpack_exports__["a"] = _assertThisInitialized; +function _assertThisInitialized(self) { + if (self === void 0) { + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } - return a !== a && b !== b; -} // end fast-deep-equal - + return self; +} -function exportedEqual(a, b) { - try { - return equal(a, b); - } catch (error) { - if (error.message && error.message.match(/stack|recursion/i)) { - // warn on circular references, don't crash - // browsers give this different errors name and messages: - // chrome/safari: "RangeError", "Maximum call stack size exceeded" - // firefox: "InternalError", too much recursion" - // edge: "Error", "Out of stack space" - console.warn('Warning: react-fast-compare does not handle circular references.', error.name, error.message); - return false; - } // some other error. we should definitely know about these +/***/ }), +/* 171 */ +/*!************************************************************************************!*\ + !*** ./node_modules/react-select/node_modules/memoize-one/dist/memoize-one.esm.js ***! + \************************************************************************************/ +/*! exports provided: default */ +/*! exports used: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { +"use strict"; +function areInputsEqual(newInputs, lastInputs) { + if (newInputs.length !== lastInputs.length) { + return false; + } + for (var i = 0; i < newInputs.length; i++) { + if (newInputs[i] !== lastInputs[i]) { + return false; + } + } + return true; +} - throw error; - } +function memoizeOne(resultFn, isEqual) { + if (isEqual === void 0) { isEqual = areInputsEqual; } + var lastThis; + var lastArgs = []; + var lastResult; + var calledOnce = false; + function memoized() { + var newArgs = []; + for (var _i = 0; _i < arguments.length; _i++) { + newArgs[_i] = arguments[_i]; + } + if (calledOnce && lastThis === this && isEqual(newArgs, lastArgs)) { + return lastResult; + } + lastResult = resultFn.apply(this, newArgs); + calledOnce = true; + lastThis = this; + lastArgs = newArgs; + return lastResult; + } + return memoized; } -function _extends$1() { _extends$1 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1.apply(this, arguments); } -var containerCSS = function containerCSS(_ref) { - var isDisabled = _ref.isDisabled, - isRtl = _ref.isRtl; - return { - label: 'container', - direction: isRtl ? 'rtl' : null, - pointerEvents: isDisabled ? 'none' : null, - // cancel mouse events when disabled - position: 'relative' - }; -}; -var SelectContainer = function SelectContainer(props) { - var children = props.children, - className = props.className, - cx = props.cx, - getStyles = props.getStyles, - innerProps = props.innerProps, - isDisabled = props.isDisabled, - isRtl = props.isRtl; - return __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */]("div", _extends$1({ - css: getStyles('container', props), - className: cx({ - '--is-disabled': isDisabled, - '--is-rtl': isRtl - }, className) - }, innerProps), children); -}; // ============================== -// Value Container -// ============================== +/* harmony default export */ __webpack_exports__["a"] = (memoizeOne); -var valueContainerCSS = function valueContainerCSS(_ref2) { - var spacing = _ref2.theme.spacing; - return { - alignItems: 'center', - display: 'flex', - flex: 1, - flexWrap: 'wrap', - padding: spacing.baseUnit / 2 + "px " + spacing.baseUnit * 2 + "px", - WebkitOverflowScrolling: 'touch', - position: 'relative', - overflow: 'hidden' - }; -}; -var ValueContainer = function ValueContainer(props) { - var children = props.children, - className = props.className, - cx = props.cx, - isMulti = props.isMulti, - getStyles = props.getStyles, - hasValue = props.hasValue; - return __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */]("div", { - css: getStyles('valueContainer', props), - className: cx({ - 'value-container': true, - 'value-container--is-multi': isMulti, - 'value-container--has-value': hasValue - }, className) - }, children); -}; // ============================== -// Indicator Container -// ============================== -var indicatorsContainerCSS = function indicatorsContainerCSS() { - return { - alignItems: 'center', - alignSelf: 'stretch', - display: 'flex', - flexShrink: 0 - }; -}; -var IndicatorsContainer = function IndicatorsContainer(props) { - var children = props.children, - className = props.className, - cx = props.cx, - getStyles = props.getStyles; - return __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */]("div", { - css: getStyles('indicatorsContainer', props), - className: cx({ - indicators: true - }, className) - }, children); -}; +/***/ }), +/* 172 */ +/*!***************************************************************!*\ + !*** ./node_modules/@emotion/sheet/dist/sheet.browser.esm.js ***! + \***************************************************************/ +/*! exports provided: StyleSheet */ +/*! exports used: StyleSheet */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { -function _templateObject() { - var data = _taggedTemplateLiteralLoose(["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"]); +"use strict"; +/* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return StyleSheet; }); +/* - _templateObject = function _templateObject() { - return data; - }; +Based off glamor's StyleSheet, thanks Sunil โค๏ธ - return data; -} +high performance StyleSheet for css-in-js systems -function _taggedTemplateLiteralLoose(strings, raw) { if (!raw) { raw = strings.slice(0); } strings.raw = raw; return strings; } +- uses multiple style tags behind the scenes for millions of rules +- uses `insertRule` for appending in production for *much* faster performance -function _extends$2() { _extends$2 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$2.apply(this, arguments); } +// usage -function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } +import { StyleSheet } from '@emotion/sheet' -var _ref2 = process.env.NODE_ENV === "production" ? { - name: "19bqh2r", - styles: "display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;" -} : { - name: "19bqh2r", - styles: "display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;", - map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBa0JJIiwiZmlsZSI6ImluZGljYXRvcnMuanMiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBAZmxvd1xuLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyB0eXBlIE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL2NvcmUnO1xuXG5pbXBvcnQgdHlwZSB7IENvbW1vblByb3BzLCBUaGVtZSB9IGZyb20gJy4uL3R5cGVzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHsgc2l6ZSwgLi4ucHJvcHMgfTogeyBzaXplOiBudW1iZXIgfSkgPT4gKFxuICA8c3ZnXG4gICAgaGVpZ2h0PXtzaXplfVxuICAgIHdpZHRoPXtzaXplfVxuICAgIHZpZXdCb3g9XCIwIDAgMjAgMjBcIlxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgZm9jdXNhYmxlPVwiZmFsc2VcIlxuICAgIGNzcz17e1xuICAgICAgZGlzcGxheTogJ2lubGluZS1ibG9jaycsXG4gICAgICBmaWxsOiAnY3VycmVudENvbG9yJyxcbiAgICAgIGxpbmVIZWlnaHQ6IDEsXG4gICAgICBzdHJva2U6ICdjdXJyZW50Q29sb3InLFxuICAgICAgc3Ryb2tlV2lkdGg6IDAsXG4gICAgfX1cbiAgICB7Li4ucHJvcHN9XG4gIC8+XG4pO1xuXG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBhbnkpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTE0LjM0OCAxNC44NDljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDBsLTIuNjUxLTMuMDMwLTIuNjUxIDMuMDI5Yy0wLjQ2OSAwLjQ2OS0xLjIyOSAwLjQ2OS0xLjY5NyAwLTAuNDY5LTAuNDY5LTAuNDY5LTEuMjI5IDAtMS42OTdsMi43NTgtMy4xNS0yLjc1OS0zLjE1MmMtMC40NjktMC40NjktMC40NjktMS4yMjggMC0xLjY5N3MxLjIyOC0wLjQ2OSAxLjY5NyAwbDIuNjUyIDMuMDMxIDIuNjUxLTMuMDMxYzAuNDY5LTAuNDY5IDEuMjI4LTAuNDY5IDEuNjk3IDBzMC40NjkgMS4yMjkgMCAxLjY5N2wtMi43NTggMy4xNTIgMi43NTggMy4xNWMwLjQ2OSAwLjQ2OSAwLjQ2OSAxLjIyOSAwIDEuNjk4elwiIC8+XG4gIDwvU3ZnPlxuKTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogYW55KSA9PiAoXG4gIDxTdmcgc2l6ZT17MjB9IHsuLi5wcm9wc30+XG4gICAgPHBhdGggZD1cIk00LjUxNiA3LjU0OGMwLjQzNi0wLjQ0NiAxLjA0My0wLjQ4MSAxLjU3NiAwbDMuOTA4IDMuNzQ3IDMuOTA4LTMuNzQ3YzAuNTMzLTAuNDgxIDEuMTQxLTAuNDQ2IDEuNTc0IDAgMC40MzYgMC40NDUgMC40MDggMS4xOTcgMCAxLjYxNS0wLjQwNiAwLjQxOC00LjY5NSA0LjUwMi00LjY5NSA0LjUwMi0wLjIxNyAwLjIyMy0wLjUwMiAwLjMzNS0wLjc4NyAwLjMzNXMtMC41Ny0wLjExMi0wLjc4OS0wLjMzNWMwIDAtNC4yODctNC4wODQtNC42OTUtNC41MDJzLTAuNDM2LTEuMTcgMC0xLjYxNXpcIiAvPlxuICA8L1N2Zz5cbik7XG5cbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuLy8gRHJvcGRvd24gJiBDbGVhciBCdXR0b25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuZXhwb3J0IHR5cGUgSW5kaWNhdG9yUHJvcHMgPSBDb21tb25Qcm9wcyAmIHtcbiAgLyoqIFRoZSBjaGlsZHJlbiB0byBiZSByZW5kZXJlZCBpbnNpZGUgdGhlIGluZGljYXRvci4gKi9cbiAgY2hpbGRyZW46IE5vZGUsXG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogYW55LFxuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuLFxuICAvKiogV2hldGhlciB0aGUgdGV4dCBpcyByaWdodCB0byBsZWZ0ICovXG4gIGlzUnRsOiBib29sZWFuLFxufTtcblxuY29uc3QgYmFzZUNTUyA9ICh7XG4gIGlzRm9jdXNlZCxcbiAgdGhlbWU6IHtcbiAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgY29sb3JzLFxuICB9LFxufTogSW5kaWNhdG9yUHJvcHMpID0+ICh7XG4gIGxhYmVsOiAnaW5kaWNhdG9yQ29udGFpbmVyJyxcbiAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcblxuICAnOmhvdmVyJzoge1xuICAgIGNvbG9yOiBpc0ZvY3VzZWQgPyBjb2xvcnMubmV1dHJhbDgwIDogY29sb3JzLm5ldXRyYWw0MCxcbiAgfSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gKHByb3BzOiBJbmRpY2F0b3JQcm9wcykgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBjbGFzc05hbWUsIGN4LCBnZXRTdHlsZXMsIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgY3NzPXtnZXRTdHlsZXMoJ2Ryb3Bkb3duSW5kaWNhdG9yJywgcHJvcHMpfVxuICAgICAgY2xhc3NOYW1lPXtjeChcbiAgICAgICAge1xuICAgICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgICAnZHJvcGRvd24taW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfSxcbiAgICAgICAgY2xhc3NOYW1lXG4gICAgICApfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gKHByb3BzOiBJbmRpY2F0b3JQcm9wcykgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBjbGFzc05hbWUsIGN4LCBnZXRTdHlsZXMsIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgY3NzPXtnZXRTdHlsZXMoJ2NsZWFySW5kaWNhdG9yJywgcHJvcHMpfVxuICAgICAgY2xhc3NOYW1lPXtjeChcbiAgICAgICAge1xuICAgICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgICAnY2xlYXItaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfSxcbiAgICAgICAgY2xhc3NOYW1lXG4gICAgICApfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG50eXBlIFNlcGFyYXRvclN0YXRlID0geyBpc0Rpc2FibGVkOiBib29sZWFuIH07XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSAoe1xuICBpc0Rpc2FibGVkLFxuICB0aGVtZToge1xuICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICBjb2xvcnMsXG4gIH0sXG59OiBDb21tb25Qcm9wcyAmIFNlcGFyYXRvclN0YXRlKSA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvclNlcGFyYXRvcicsXG4gIGFsaWduU2VsZjogJ3N0cmV0Y2gnLFxuICBiYWNrZ3JvdW5kQ29sb3I6IGlzRGlzYWJsZWQgPyBjb2xvcnMubmV1dHJhbDEwIDogY29sb3JzLm5ldXRyYWwyMCxcbiAgbWFyZ2luQm90dG9tOiBiYXNlVW5pdCAqIDIsXG4gIG1hcmdpblRvcDogYmFzZVVuaXQgKiAyLFxuICB3aWR0aDogMSxcbn0pO1xuXG5leHBvcnQgY29uc3QgSW5kaWNhdG9yU2VwYXJhdG9yID0gKHByb3BzOiBJbmRpY2F0b3JQcm9wcykgPT4ge1xuICBjb25zdCB7IGNsYXNzTmFtZSwgY3gsIGdldFN0eWxlcywgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgY3NzPXtnZXRTdHlsZXMoJ2luZGljYXRvclNlcGFyYXRvcicsIHByb3BzKX1cbiAgICAgIGNsYXNzTmFtZT17Y3goeyAnaW5kaWNhdG9yLXNlcGFyYXRvcic6IHRydWUgfSwgY2xhc3NOYW1lKX1cbiAgICAvPlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBMb2FkaW5nXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgbG9hZGluZ0RvdEFuaW1hdGlvbnMgPSBrZXlmcmFtZXNgXG4gIDAlLCA4MCUsIDEwMCUgeyBvcGFjaXR5OiAwOyB9XG4gIDQwJSB7IG9wYWNpdHk6IDE7IH1cbmA7XG5cbmV4cG9ydCBjb25zdCBsb2FkaW5nSW5kaWNhdG9yQ1NTID0gKHtcbiAgaXNGb2N1c2VkLFxuICBzaXplLFxuICB0aGVtZToge1xuICAgIGNvbG9ycyxcbiAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gIH0sXG59OiB7XG4gIGlzRm9jdXNlZDogYm9vbGVhbixcbiAgc2l6ZTogbnVtYmVyLFxuICB0aGVtZTogVGhlbWUsXG59KSA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgcGFkZGluZzogYmFzZVVuaXQgKiAyLFxuICB0cmFuc2l0aW9uOiAnY29sb3IgMTUwbXMnLFxuICBhbGlnblNlbGY6ICdjZW50ZXInLFxuICBmb250U2l6ZTogc2l6ZSxcbiAgbGluZUhlaWdodDogMSxcbiAgbWFyZ2luUmlnaHQ6IHNpemUsXG4gIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gIHZlcnRpY2FsQWxpZ246ICdtaWRkbGUnLFxufSk7XG5cbnR5cGUgRG90UHJvcHMgPSB7IGRlbGF5OiBudW1iZXIsIG9mZnNldDogYm9vbGVhbiB9O1xuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogRG90UHJvcHMpID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGFuaW1hdGlvbjogYCR7bG9hZGluZ0RvdEFuaW1hdGlvbnN9IDFzIGVhc2UtaW4tb3V0ICR7ZGVsYXl9bXMgaW5maW5pdGU7YCxcbiAgICAgIGJhY2tncm91bmRDb2xvcjogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBib3JkZXJSYWRpdXM6ICcxZW0nLFxuICAgICAgZGlzcGxheTogJ2lubGluZS1ibG9jaycsXG4gICAgICBtYXJnaW5MZWZ0OiBvZmZzZXQgPyAnMWVtJyA6IG51bGwsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCB0eXBlIExvYWRpbmdJY29uUHJvcHMgPSB7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogYW55LFxuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuLFxuICAvKiogV2hldGhlciB0aGUgdGV4dCBpcyByaWdodCB0byBsZWZ0ICovXG4gIGlzUnRsOiBib29sZWFuLFxufSAmIENvbW1vblByb3BzICYge1xuICAgIC8qKiBTZXQgc2l6ZSBvZiB0aGUgY29udGFpbmVyLiAqL1xuICAgIHNpemU6IG51bWJlcixcbiAgfTtcbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gKHByb3BzOiBMb2FkaW5nSWNvblByb3BzKSA9PiB7XG4gIGNvbnN0IHsgY2xhc3NOYW1lLCBjeCwgZ2V0U3R5bGVzLCBpbm5lclByb3BzLCBpc1J0bCB9ID0gcHJvcHM7XG5cbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICAgIGNzcz17Z2V0U3R5bGVzKCdsb2FkaW5nSW5kaWNhdG9yJywgcHJvcHMpfVxuICAgICAgY2xhc3NOYW1lPXtjeChcbiAgICAgICAge1xuICAgICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgICAnbG9hZGluZy1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgICB9LFxuICAgICAgICBjbGFzc05hbWVcbiAgICAgICl9XG4gICAgPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezB9IG9mZnNldD17aXNSdGx9IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MTYwfSBvZmZzZXQgLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXszMjB9IG9mZnNldD17IWlzUnRsfSAvPlxuICAgIDwvZGl2PlxuICApO1xufTtcbkxvYWRpbmdJbmRpY2F0b3IuZGVmYXVsdFByb3BzID0geyBzaXplOiA0IH07XG4iXX0= */" -}; +let styleSheet = new StyleSheet({ key: '', container: document.head }) -// ============================== -// Dropdown & Clear Icons -// ============================== -var Svg = function Svg(_ref) { - var size = _ref.size, - props = _objectWithoutPropertiesLoose(_ref, ["size"]); +styleSheet.insert('#box { border: 1px solid red; }') +- appends a css rule into the stylesheet - return __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */]("svg", _extends$2({ - height: size, - width: size, - viewBox: "0 0 20 20", - "aria-hidden": "true", - focusable: "false", - css: _ref2 - }, props)); -}; +styleSheet.flush() +- empties the stylesheet of all its contents -var CrossIcon = function CrossIcon(props) { - return __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */](Svg, _extends$2({ - size: 20 - }, props), __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */]("path", { - d: "M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z" - })); -}; -var DownChevron = function DownChevron(props) { - return __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */](Svg, _extends$2({ - size: 20 - }, props), __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */]("path", { - d: "M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z" - })); -}; // ============================== -// Dropdown & Clear Buttons -// ============================== +*/ +// $FlowFixMe +function sheetForTag(tag) { + if (tag.sheet) { + // $FlowFixMe + return tag.sheet; + } // this weirdness brought to you by firefox -var baseCSS = function baseCSS(_ref3) { - var isFocused = _ref3.isFocused, - _ref3$theme = _ref3.theme, - baseUnit = _ref3$theme.spacing.baseUnit, - colors = _ref3$theme.colors; - return { - label: 'indicatorContainer', - color: isFocused ? colors.neutral60 : colors.neutral20, - display: 'flex', - padding: baseUnit * 2, - transition: 'color 150ms', - ':hover': { - color: isFocused ? colors.neutral80 : colors.neutral40 + /* istanbul ignore next */ + + + for (var i = 0; i < document.styleSheets.length; i++) { + if (document.styleSheets[i].ownerNode === tag) { + // $FlowFixMe + return document.styleSheets[i]; } - }; -}; + } +} -var dropdownIndicatorCSS = baseCSS; -var DropdownIndicator = function DropdownIndicator(props) { - var children = props.children, - className = props.className, - cx = props.cx, - getStyles = props.getStyles, - innerProps = props.innerProps; - return __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */]("div", _extends$2({}, innerProps, { - css: getStyles('dropdownIndicator', props), - className: cx({ - indicator: true, - 'dropdown-indicator': true - }, className) - }), children || __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */](DownChevron, null)); -}; -var clearIndicatorCSS = baseCSS; -var ClearIndicator = function ClearIndicator(props) { - var children = props.children, - className = props.className, - cx = props.cx, - getStyles = props.getStyles, - innerProps = props.innerProps; - return __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */]("div", _extends$2({}, innerProps, { - css: getStyles('clearIndicator', props), - className: cx({ - indicator: true, - 'clear-indicator': true - }, className) - }), children || __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */](CrossIcon, null)); -}; // ============================== -// Separator -// ============================== +function createStyleElement(options) { + var tag = document.createElement('style'); + tag.setAttribute('data-emotion', options.key); -var indicatorSeparatorCSS = function indicatorSeparatorCSS(_ref4) { - var isDisabled = _ref4.isDisabled, - _ref4$theme = _ref4.theme, - baseUnit = _ref4$theme.spacing.baseUnit, - colors = _ref4$theme.colors; - return { - label: 'indicatorSeparator', - alignSelf: 'stretch', - backgroundColor: isDisabled ? colors.neutral10 : colors.neutral20, - marginBottom: baseUnit * 2, - marginTop: baseUnit * 2, - width: 1 - }; -}; -var IndicatorSeparator = function IndicatorSeparator(props) { - var className = props.className, - cx = props.cx, - getStyles = props.getStyles, - innerProps = props.innerProps; - return __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */]("span", _extends$2({}, innerProps, { - css: getStyles('indicatorSeparator', props), - className: cx({ - 'indicator-separator': true - }, className) - })); -}; // ============================== -// Loading -// ============================== + if (options.nonce !== undefined) { + tag.setAttribute('nonce', options.nonce); + } -var loadingDotAnimations = __WEBPACK_IMPORTED_MODULE_1__emotion_core__["d" /* keyframes */](_templateObject()); -var loadingIndicatorCSS = function loadingIndicatorCSS(_ref5) { - var isFocused = _ref5.isFocused, - size = _ref5.size, - _ref5$theme = _ref5.theme, - colors = _ref5$theme.colors, - baseUnit = _ref5$theme.spacing.baseUnit; - return { - label: 'loadingIndicator', - color: isFocused ? colors.neutral60 : colors.neutral20, - display: 'flex', - padding: baseUnit * 2, - transition: 'color 150ms', - alignSelf: 'center', - fontSize: size, - lineHeight: 1, - marginRight: size, - textAlign: 'center', - verticalAlign: 'middle' - }; -}; + tag.appendChild(document.createTextNode('')); + return tag; +} -var LoadingDot = function LoadingDot(_ref6) { - var delay = _ref6.delay, - offset = _ref6.offset; - return __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */]("span", { - css: - /*#__PURE__*/ - __WEBPACK_IMPORTED_MODULE_5__emotion_css__["a" /* default */]({ - animation: loadingDotAnimations + " 1s ease-in-out " + delay + "ms infinite;", - backgroundColor: 'currentColor', - borderRadius: '1em', - display: 'inline-block', - marginLeft: offset ? '1em' : null, - height: '1em', - verticalAlign: 'top', - width: '1em' - }, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBc0xJIiwiZmlsZSI6ImluZGljYXRvcnMuanMiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBAZmxvd1xuLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyB0eXBlIE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL2NvcmUnO1xuXG5pbXBvcnQgdHlwZSB7IENvbW1vblByb3BzLCBUaGVtZSB9IGZyb20gJy4uL3R5cGVzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHsgc2l6ZSwgLi4ucHJvcHMgfTogeyBzaXplOiBudW1iZXIgfSkgPT4gKFxuICA8c3ZnXG4gICAgaGVpZ2h0PXtzaXplfVxuICAgIHdpZHRoPXtzaXplfVxuICAgIHZpZXdCb3g9XCIwIDAgMjAgMjBcIlxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgZm9jdXNhYmxlPVwiZmFsc2VcIlxuICAgIGNzcz17e1xuICAgICAgZGlzcGxheTogJ2lubGluZS1ibG9jaycsXG4gICAgICBmaWxsOiAnY3VycmVudENvbG9yJyxcbiAgICAgIGxpbmVIZWlnaHQ6IDEsXG4gICAgICBzdHJva2U6ICdjdXJyZW50Q29sb3InLFxuICAgICAgc3Ryb2tlV2lkdGg6IDAsXG4gICAgfX1cbiAgICB7Li4ucHJvcHN9XG4gIC8+XG4pO1xuXG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBhbnkpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTE0LjM0OCAxNC44NDljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDBsLTIuNjUxLTMuMDMwLTIuNjUxIDMuMDI5Yy0wLjQ2OSAwLjQ2OS0xLjIyOSAwLjQ2OS0xLjY5NyAwLTAuNDY5LTAuNDY5LTAuNDY5LTEuMjI5IDAtMS42OTdsMi43NTgtMy4xNS0yLjc1OS0zLjE1MmMtMC40NjktMC40NjktMC40NjktMS4yMjggMC0xLjY5N3MxLjIyOC0wLjQ2OSAxLjY5NyAwbDIuNjUyIDMuMDMxIDIuNjUxLTMuMDMxYzAuNDY5LTAuNDY5IDEuMjI4LTAuNDY5IDEuNjk3IDBzMC40NjkgMS4yMjkgMCAxLjY5N2wtMi43NTggMy4xNTIgMi43NTggMy4xNWMwLjQ2OSAwLjQ2OSAwLjQ2OSAxLjIyOSAwIDEuNjk4elwiIC8+XG4gIDwvU3ZnPlxuKTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogYW55KSA9PiAoXG4gIDxTdmcgc2l6ZT17MjB9IHsuLi5wcm9wc30+XG4gICAgPHBhdGggZD1cIk00LjUxNiA3LjU0OGMwLjQzNi0wLjQ0NiAxLjA0My0wLjQ4MSAxLjU3NiAwbDMuOTA4IDMuNzQ3IDMuOTA4LTMuNzQ3YzAuNTMzLTAuNDgxIDEuMTQxLTAuNDQ2IDEuNTc0IDAgMC40MzYgMC40NDUgMC40MDggMS4xOTcgMCAxLjYxNS0wLjQwNiAwLjQxOC00LjY5NSA0LjUwMi00LjY5NSA0LjUwMi0wLjIxNyAwLjIyMy0wLjUwMiAwLjMzNS0wLjc4NyAwLjMzNXMtMC41Ny0wLjExMi0wLjc4OS0wLjMzNWMwIDAtNC4yODctNC4wODQtNC42OTUtNC41MDJzLTAuNDM2LTEuMTcgMC0xLjYxNXpcIiAvPlxuICA8L1N2Zz5cbik7XG5cbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuLy8gRHJvcGRvd24gJiBDbGVhciBCdXR0b25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuZXhwb3J0IHR5cGUgSW5kaWNhdG9yUHJvcHMgPSBDb21tb25Qcm9wcyAmIHtcbiAgLyoqIFRoZSBjaGlsZHJlbiB0byBiZSByZW5kZXJlZCBpbnNpZGUgdGhlIGluZGljYXRvci4gKi9cbiAgY2hpbGRyZW46IE5vZGUsXG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogYW55LFxuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuLFxuICAvKiogV2hldGhlciB0aGUgdGV4dCBpcyByaWdodCB0byBsZWZ0ICovXG4gIGlzUnRsOiBib29sZWFuLFxufTtcblxuY29uc3QgYmFzZUNTUyA9ICh7XG4gIGlzRm9jdXNlZCxcbiAgdGhlbWU6IHtcbiAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgY29sb3JzLFxuICB9LFxufTogSW5kaWNhdG9yUHJvcHMpID0+ICh7XG4gIGxhYmVsOiAnaW5kaWNhdG9yQ29udGFpbmVyJyxcbiAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcblxuICAnOmhvdmVyJzoge1xuICAgIGNvbG9yOiBpc0ZvY3VzZWQgPyBjb2xvcnMubmV1dHJhbDgwIDogY29sb3JzLm5ldXRyYWw0MCxcbiAgfSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gKHByb3BzOiBJbmRpY2F0b3JQcm9wcykgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBjbGFzc05hbWUsIGN4LCBnZXRTdHlsZXMsIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgY3NzPXtnZXRTdHlsZXMoJ2Ryb3Bkb3duSW5kaWNhdG9yJywgcHJvcHMpfVxuICAgICAgY2xhc3NOYW1lPXtjeChcbiAgICAgICAge1xuICAgICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgICAnZHJvcGRvd24taW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfSxcbiAgICAgICAgY2xhc3NOYW1lXG4gICAgICApfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gKHByb3BzOiBJbmRpY2F0b3JQcm9wcykgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBjbGFzc05hbWUsIGN4LCBnZXRTdHlsZXMsIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgY3NzPXtnZXRTdHlsZXMoJ2NsZWFySW5kaWNhdG9yJywgcHJvcHMpfVxuICAgICAgY2xhc3NOYW1lPXtjeChcbiAgICAgICAge1xuICAgICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgICAnY2xlYXItaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfSxcbiAgICAgICAgY2xhc3NOYW1lXG4gICAgICApfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG50eXBlIFNlcGFyYXRvclN0YXRlID0geyBpc0Rpc2FibGVkOiBib29sZWFuIH07XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSAoe1xuICBpc0Rpc2FibGVkLFxuICB0aGVtZToge1xuICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICBjb2xvcnMsXG4gIH0sXG59OiBDb21tb25Qcm9wcyAmIFNlcGFyYXRvclN0YXRlKSA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvclNlcGFyYXRvcicsXG4gIGFsaWduU2VsZjogJ3N0cmV0Y2gnLFxuICBiYWNrZ3JvdW5kQ29sb3I6IGlzRGlzYWJsZWQgPyBjb2xvcnMubmV1dHJhbDEwIDogY29sb3JzLm5ldXRyYWwyMCxcbiAgbWFyZ2luQm90dG9tOiBiYXNlVW5pdCAqIDIsXG4gIG1hcmdpblRvcDogYmFzZVVuaXQgKiAyLFxuICB3aWR0aDogMSxcbn0pO1xuXG5leHBvcnQgY29uc3QgSW5kaWNhdG9yU2VwYXJhdG9yID0gKHByb3BzOiBJbmRpY2F0b3JQcm9wcykgPT4ge1xuICBjb25zdCB7IGNsYXNzTmFtZSwgY3gsIGdldFN0eWxlcywgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgY3NzPXtnZXRTdHlsZXMoJ2luZGljYXRvclNlcGFyYXRvcicsIHByb3BzKX1cbiAgICAgIGNsYXNzTmFtZT17Y3goeyAnaW5kaWNhdG9yLXNlcGFyYXRvcic6IHRydWUgfSwgY2xhc3NOYW1lKX1cbiAgICAvPlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBMb2FkaW5nXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgbG9hZGluZ0RvdEFuaW1hdGlvbnMgPSBrZXlmcmFtZXNgXG4gIDAlLCA4MCUsIDEwMCUgeyBvcGFjaXR5OiAwOyB9XG4gIDQwJSB7IG9wYWNpdHk6IDE7IH1cbmA7XG5cbmV4cG9ydCBjb25zdCBsb2FkaW5nSW5kaWNhdG9yQ1NTID0gKHtcbiAgaXNGb2N1c2VkLFxuICBzaXplLFxuICB0aGVtZToge1xuICAgIGNvbG9ycyxcbiAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gIH0sXG59OiB7XG4gIGlzRm9jdXNlZDogYm9vbGVhbixcbiAgc2l6ZTogbnVtYmVyLFxuICB0aGVtZTogVGhlbWUsXG59KSA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgcGFkZGluZzogYmFzZVVuaXQgKiAyLFxuICB0cmFuc2l0aW9uOiAnY29sb3IgMTUwbXMnLFxuICBhbGlnblNlbGY6ICdjZW50ZXInLFxuICBmb250U2l6ZTogc2l6ZSxcbiAgbGluZUhlaWdodDogMSxcbiAgbWFyZ2luUmlnaHQ6IHNpemUsXG4gIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gIHZlcnRpY2FsQWxpZ246ICdtaWRkbGUnLFxufSk7XG5cbnR5cGUgRG90UHJvcHMgPSB7IGRlbGF5OiBudW1iZXIsIG9mZnNldDogYm9vbGVhbiB9O1xuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogRG90UHJvcHMpID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGFuaW1hdGlvbjogYCR7bG9hZGluZ0RvdEFuaW1hdGlvbnN9IDFzIGVhc2UtaW4tb3V0ICR7ZGVsYXl9bXMgaW5maW5pdGU7YCxcbiAgICAgIGJhY2tncm91bmRDb2xvcjogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBib3JkZXJSYWRpdXM6ICcxZW0nLFxuICAgICAgZGlzcGxheTogJ2lubGluZS1ibG9jaycsXG4gICAgICBtYXJnaW5MZWZ0OiBvZmZzZXQgPyAnMWVtJyA6IG51bGwsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCB0eXBlIExvYWRpbmdJY29uUHJvcHMgPSB7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogYW55LFxuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuLFxuICAvKiogV2hldGhlciB0aGUgdGV4dCBpcyByaWdodCB0byBsZWZ0ICovXG4gIGlzUnRsOiBib29sZWFuLFxufSAmIENvbW1vblByb3BzICYge1xuICAgIC8qKiBTZXQgc2l6ZSBvZiB0aGUgY29udGFpbmVyLiAqL1xuICAgIHNpemU6IG51bWJlcixcbiAgfTtcbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gKHByb3BzOiBMb2FkaW5nSWNvblByb3BzKSA9PiB7XG4gIGNvbnN0IHsgY2xhc3NOYW1lLCBjeCwgZ2V0U3R5bGVzLCBpbm5lclByb3BzLCBpc1J0bCB9ID0gcHJvcHM7XG5cbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICAgIGNzcz17Z2V0U3R5bGVzKCdsb2FkaW5nSW5kaWNhdG9yJywgcHJvcHMpfVxuICAgICAgY2xhc3NOYW1lPXtjeChcbiAgICAgICAge1xuICAgICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgICAnbG9hZGluZy1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgICB9LFxuICAgICAgICBjbGFzc05hbWVcbiAgICAgICl9XG4gICAgPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezB9IG9mZnNldD17aXNSdGx9IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MTYwfSBvZmZzZXQgLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXszMjB9IG9mZnNldD17IWlzUnRsfSAvPlxuICAgIDwvZGl2PlxuICApO1xufTtcbkxvYWRpbmdJbmRpY2F0b3IuZGVmYXVsdFByb3BzID0geyBzaXplOiA0IH07XG4iXX0= */") - }); -}; +var StyleSheet = +/*#__PURE__*/ +function () { + function StyleSheet(options) { + this.isSpeedy = options.speedy === undefined ? process.env.NODE_ENV === 'production' : options.speedy; + this.tags = []; + this.ctr = 0; + this.nonce = options.nonce; // key is the value of the data-emotion attribute, it's used to identify different sheets -var LoadingIndicator = function LoadingIndicator(props) { - var className = props.className, - cx = props.cx, - getStyles = props.getStyles, - innerProps = props.innerProps, - isRtl = props.isRtl; - return __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */]("div", _extends$2({}, innerProps, { - css: getStyles('loadingIndicator', props), - className: cx({ - indicator: true, - 'loading-indicator': true - }, className) - }), __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */](LoadingDot, { - delay: 0, - offset: isRtl - }), __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */](LoadingDot, { - delay: 160, - offset: true - }), __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */](LoadingDot, { - delay: 320, - offset: !isRtl - })); -}; -LoadingIndicator.defaultProps = { - size: 4 -}; + this.key = options.key; + this.container = options.container; + this.before = null; + } -function _extends$3() { _extends$3 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$3.apply(this, arguments); } -var css = function css(_ref) { - var isDisabled = _ref.isDisabled, - isFocused = _ref.isFocused, - _ref$theme = _ref.theme, - colors = _ref$theme.colors, - borderRadius = _ref$theme.borderRadius, - spacing = _ref$theme.spacing; - return { - label: 'control', - alignItems: 'center', - backgroundColor: isDisabled ? colors.neutral5 : colors.neutral0, - borderColor: isDisabled ? colors.neutral10 : isFocused ? colors.primary : colors.neutral20, - borderRadius: borderRadius, - borderStyle: 'solid', - borderWidth: 1, - boxShadow: isFocused ? "0 0 0 1px " + colors.primary : null, - cursor: 'default', - display: 'flex', - flexWrap: 'wrap', - justifyContent: 'space-between', - minHeight: spacing.controlHeight, - outline: '0 !important', - position: 'relative', - transition: 'all 100ms', - '&:hover': { - borderColor: isFocused ? colors.primary : colors.neutral30 - } - }; -}; + var _proto = StyleSheet.prototype; -var Control = function Control(props) { - var children = props.children, - cx = props.cx, - getStyles = props.getStyles, - className = props.className, - isDisabled = props.isDisabled, - isFocused = props.isFocused, - innerRef = props.innerRef, - innerProps = props.innerProps, - menuIsOpen = props.menuIsOpen; - return __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */]("div", _extends$3({ - ref: innerRef, - css: getStyles('control', props), - className: cx({ - control: true, - 'control--is-disabled': isDisabled, - 'control--is-focused': isFocused, - 'control--menu-is-open': menuIsOpen - }, className) - }, innerProps), children); -}; + _proto.insert = function insert(rule) { + // the max length is how many rules we have per style tag, it's 65000 in speedy mode + // it's 1 in dev because we insert source maps that map a single rule to a location + // and you can only have one source map per style tag + if (this.ctr % (this.isSpeedy ? 65000 : 1) === 0) { + var _tag = createStyleElement(this); -function _objectWithoutPropertiesLoose$1(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } + var before; -function _extends$4() { _extends$4 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$4.apply(this, arguments); } -var groupCSS = function groupCSS(_ref) { - var spacing = _ref.theme.spacing; - return { - paddingBottom: spacing.baseUnit * 2, - paddingTop: spacing.baseUnit * 2 - }; -}; + if (this.tags.length === 0) { + before = this.before; + } else { + before = this.tags[this.tags.length - 1].nextSibling; + } -var Group = function Group(props) { - var children = props.children, - className = props.className, - cx = props.cx, - getStyles = props.getStyles, - Heading = props.Heading, - headingProps = props.headingProps, - label = props.label, - theme = props.theme, - selectProps = props.selectProps; - return __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */]("div", { - css: getStyles('group', props), - className: cx({ - group: true - }, className) - }, __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */](Heading, _extends$4({}, headingProps, { - selectProps: selectProps, - theme: theme, - getStyles: getStyles, - cx: cx - }), label), __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */]("div", null, children)); -}; + this.container.insertBefore(_tag, before); + this.tags.push(_tag); + } -var groupHeadingCSS = function groupHeadingCSS(_ref2) { - var spacing = _ref2.theme.spacing; - return { - label: 'group', - color: '#999', - cursor: 'default', - display: 'block', - fontSize: '75%', - fontWeight: '500', - marginBottom: '0.25em', - paddingLeft: spacing.baseUnit * 3, - paddingRight: spacing.baseUnit * 3, - textTransform: 'uppercase' - }; -}; -var GroupHeading = function GroupHeading(props) { - var className = props.className, - cx = props.cx, - getStyles = props.getStyles, - theme = props.theme, - selectProps = props.selectProps, - cleanProps = _objectWithoutPropertiesLoose$1(props, ["className", "cx", "getStyles", "theme", "selectProps"]); + var tag = this.tags[this.tags.length - 1]; - return __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */]("div", _extends$4({ - css: getStyles('groupHeading', _extends$4({ - theme: theme - }, cleanProps)), - className: cx({ - 'group-heading': true - }, className) - }, cleanProps)); -}; + if (this.isSpeedy) { + var sheet = sheetForTag(tag); + + try { + // this is a really hot path + // we check the second character first because having "i" + // as the second character will happen less often than + // having "@" as the first character + var isImportRule = rule.charCodeAt(1) === 105 && rule.charCodeAt(0) === 64; // this is the ultrafast version, works across browsers + // the big drawback is that the css won't be editable in devtools -function _extends$5() { _extends$5 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$5.apply(this, arguments); } + sheet.insertRule(rule, // we need to insert @import rules before anything else + // otherwise there will be an error + // technically this means that the @import rules will + // _usually_(not always since there could be multiple style tags) + // be the first ones in prod and generally later in dev + // this shouldn't really matter in the real world though + // @import is generally only used for font faces from google fonts and etc. + // so while this could be technically correct then it would be slower and larger + // for a tiny bit of correctness that won't matter in the real world + isImportRule ? 0 : sheet.cssRules.length); + } catch (e) { + if (process.env.NODE_ENV !== 'production') { + console.warn("There was a problem inserting the following rule: \"" + rule + "\"", e); + } + } + } else { + tag.appendChild(document.createTextNode(rule)); + } -function _objectWithoutPropertiesLoose$2(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } -var inputCSS = function inputCSS(_ref) { - var isDisabled = _ref.isDisabled, - _ref$theme = _ref.theme, - spacing = _ref$theme.spacing, - colors = _ref$theme.colors; - return { - margin: spacing.baseUnit / 2, - paddingBottom: spacing.baseUnit / 2, - paddingTop: spacing.baseUnit / 2, - visibility: isDisabled ? 'hidden' : 'visible', - color: colors.neutral80 + this.ctr++; }; -}; -var inputStyle = function inputStyle(isHidden) { - return { - label: 'input', - background: 0, - border: 0, - fontSize: 'inherit', - opacity: isHidden ? 0 : 1, - outline: 0, - padding: 0, - color: 'inherit' + _proto.flush = function flush() { + // $FlowFixMe + this.tags.forEach(function (tag) { + return tag.parentNode.removeChild(tag); + }); + this.tags = []; + this.ctr = 0; }; -}; -var Input = function Input(_ref2) { - var className = _ref2.className, - cx = _ref2.cx, - getStyles = _ref2.getStyles, - innerRef = _ref2.innerRef, - isHidden = _ref2.isHidden, - isDisabled = _ref2.isDisabled, - theme = _ref2.theme, - selectProps = _ref2.selectProps, - props = _objectWithoutPropertiesLoose$2(_ref2, ["className", "cx", "getStyles", "innerRef", "isHidden", "isDisabled", "theme", "selectProps"]); + return StyleSheet; +}(); - return __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */]("div", { - css: getStyles('input', _extends$5({ - theme: theme - }, props)) - }, __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */](__WEBPACK_IMPORTED_MODULE_6_react_input_autosize___default.a, _extends$5({ - className: cx({ - input: true - }, className), - inputRef: innerRef, - inputStyle: inputStyle(isHidden), - disabled: isDisabled - }, props))); -}; -function _extends$6() { _extends$6 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$6.apply(this, arguments); } -var multiValueCSS = function multiValueCSS(_ref) { - var _ref$theme = _ref.theme, - spacing = _ref$theme.spacing, - borderRadius = _ref$theme.borderRadius, - colors = _ref$theme.colors; - return { - label: 'multiValue', - backgroundColor: colors.neutral10, - borderRadius: borderRadius / 2, - display: 'flex', - margin: spacing.baseUnit / 2, - minWidth: 0 // resolves flex/text-overflow bug - }; +/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(/*! ./../../../process/browser.js */ 6))) + +/***/ }), +/* 173 */ +/*!*********************************************************************************!*\ + !*** ./node_modules/@emotion/core/dist/emotion-element-57a3a7a3.browser.esm.js ***! + \*********************************************************************************/ +/*! exports provided: C, E, T, c, h, w */ +/*! exports used: C, E, T, c, h, w */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return CacheProvider; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return Emotion; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return ThemeContext; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return createEmotionProps; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return hasOwnProperty; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return withEmotionCache; }); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_inheritsLoose__ = __webpack_require__(/*! @babel/runtime/helpers/inheritsLoose */ 347); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_inheritsLoose___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_inheritsLoose__); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(/*! react */ 5); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__emotion_cache__ = __webpack_require__(/*! @emotion/cache */ 88); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__emotion_utils__ = __webpack_require__(/*! @emotion/utils */ 174); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__emotion_serialize__ = __webpack_require__(/*! @emotion/serialize */ 89); + + + + + + +var hasOwnProperty = Object.prototype.hasOwnProperty; + +var EmotionCacheContext = /*#__PURE__*/Object(__WEBPACK_IMPORTED_MODULE_1_react__["createContext"])( // we're doing this to avoid preconstruct's dead code elimination in this one case +// because this module is primarily intended for the browser and node +// but it's also required in react native and similar environments sometimes +// and we could have a special build just for that +// but this is much easier and the native packages +// might use a different theme context in the future anyway +typeof HTMLElement !== 'undefined' ? Object(__WEBPACK_IMPORTED_MODULE_2__emotion_cache__["a" /* default */])() : null); +var ThemeContext = /*#__PURE__*/Object(__WEBPACK_IMPORTED_MODULE_1_react__["createContext"])({}); +var CacheProvider = EmotionCacheContext.Provider; + +var withEmotionCache = function withEmotionCache(func) { + var render = function render(props, ref) { + return /*#__PURE__*/Object(__WEBPACK_IMPORTED_MODULE_1_react__["createElement"])(EmotionCacheContext.Consumer, null, function (cache) { + return func(props, cache, ref); + }); + }; // $FlowFixMe + + + return /*#__PURE__*/Object(__WEBPACK_IMPORTED_MODULE_1_react__["forwardRef"])(render); }; -var multiValueLabelCSS = function multiValueLabelCSS(_ref2) { - var _ref2$theme = _ref2.theme, - borderRadius = _ref2$theme.borderRadius, - colors = _ref2$theme.colors, - cropWithEllipsis = _ref2.cropWithEllipsis; - return { - borderRadius: borderRadius / 2, - color: colors.neutral80, - fontSize: '85%', - overflow: 'hidden', - padding: 3, - paddingLeft: 6, - textOverflow: cropWithEllipsis ? 'ellipsis' : null, - whiteSpace: 'nowrap' - }; + +// thus we only need to replace what is a valid character for JS, but not for CSS + +var sanitizeIdentifier = function sanitizeIdentifier(identifier) { + return identifier.replace(/\$/g, '-'); }; -var multiValueRemoveCSS = function multiValueRemoveCSS(_ref3) { - var _ref3$theme = _ref3.theme, - spacing = _ref3$theme.spacing, - borderRadius = _ref3$theme.borderRadius, - colors = _ref3$theme.colors, - isFocused = _ref3.isFocused; - return { - alignItems: 'center', - borderRadius: borderRadius / 2, - backgroundColor: isFocused && colors.dangerLight, - display: 'flex', - paddingLeft: spacing.baseUnit, - paddingRight: spacing.baseUnit, - ':hover': { - backgroundColor: colors.dangerLight, - color: colors.danger + +var typePropName = '__EMOTION_TYPE_PLEASE_DO_NOT_USE__'; +var labelPropName = '__EMOTION_LABEL_PLEASE_DO_NOT_USE__'; +var createEmotionProps = function createEmotionProps(type, props) { + if (process.env.NODE_ENV !== 'production' && typeof props.css === 'string' && // check if there is a css declaration + props.css.indexOf(':') !== -1) { + throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/css' like this: css`" + props.css + "`"); + } + + var newProps = {}; + + for (var key in props) { + if (hasOwnProperty.call(props, key)) { + newProps[key] = props[key]; } - }; -}; -var MultiValueGeneric = function MultiValueGeneric(_ref4) { - var children = _ref4.children, - innerProps = _ref4.innerProps; - return __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */]("div", innerProps, children); -}; -var MultiValueContainer = MultiValueGeneric; -var MultiValueLabel = MultiValueGeneric; -function MultiValueRemove(_ref5) { - var children = _ref5.children, - innerProps = _ref5.innerProps; - return __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */]("div", innerProps, children || __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */](CrossIcon, { - size: 14 - })); -} + } -var MultiValue = function MultiValue(props) { - var children = props.children, - className = props.className, - components = props.components, - cx = props.cx, - data = props.data, - getStyles = props.getStyles, - innerProps = props.innerProps, - isDisabled = props.isDisabled, - removeProps = props.removeProps, - selectProps = props.selectProps; - var Container = components.Container, - Label = components.Label, - Remove = components.Remove; - return __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */](__WEBPACK_IMPORTED_MODULE_1__emotion_core__["b" /* ClassNames */], null, function (_ref6) { - var css = _ref6.css, - emotionCx = _ref6.cx; - return __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */](Container, { - data: data, - innerProps: _extends$6({}, innerProps, { - className: emotionCx(css(getStyles('multiValue', props)), cx({ - 'multi-value': true, - 'multi-value--is-disabled': isDisabled - }, className)) - }), - selectProps: selectProps - }, __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */](Label, { - data: data, - innerProps: { - className: emotionCx(css(getStyles('multiValueLabel', props)), cx({ - 'multi-value__label': true - }, className)) - }, - selectProps: selectProps - }, children), __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */](Remove, { - data: data, - innerProps: _extends$6({ - className: emotionCx(css(getStyles('multiValueRemove', props)), cx({ - 'multi-value__remove': true - }, className)) - }, removeProps), - selectProps: selectProps - })); - }); -}; + newProps[typePropName] = type; // TODO: check if this still works with all of those different JSX functions -MultiValue.defaultProps = { - cropWithEllipsis: true -}; + if (process.env.NODE_ENV !== 'production') { + var error = new Error(); -function _extends$7() { _extends$7 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$7.apply(this, arguments); } -var optionCSS = function optionCSS(_ref) { - var isDisabled = _ref.isDisabled, - isFocused = _ref.isFocused, - isSelected = _ref.isSelected, - _ref$theme = _ref.theme, - spacing = _ref$theme.spacing, - colors = _ref$theme.colors; - return { - label: 'option', - backgroundColor: isSelected ? colors.primary : isFocused ? colors.primary25 : 'transparent', - color: isDisabled ? colors.neutral20 : isSelected ? colors.neutral0 : 'inherit', - cursor: 'default', - display: 'block', - fontSize: 'inherit', - padding: spacing.baseUnit * 2 + "px " + spacing.baseUnit * 3 + "px", - width: '100%', - userSelect: 'none', - WebkitTapHighlightColor: 'rgba(0, 0, 0, 0)', - // provide some affordance on touch devices - ':active': { - backgroundColor: !isDisabled && (isSelected ? colors.primary : colors.primary50) + if (error.stack) { + // chrome + var match = error.stack.match(/at (?:Object\.|Module\.|)(?:jsx|createEmotionProps).*\n\s+at (?:Object\.|)([A-Z][A-Za-z$]+) /); + + if (!match) { + // safari and firefox + match = error.stack.match(/.*\n([A-Z][A-Za-z$]+)@/); + } + + if (match) { + newProps[labelPropName] = sanitizeIdentifier(match[1]); + } } - }; -}; + } -var Option = function Option(props) { - var children = props.children, - className = props.className, - cx = props.cx, - getStyles = props.getStyles, - isDisabled = props.isDisabled, - isFocused = props.isFocused, - isSelected = props.isSelected, - innerRef = props.innerRef, - innerProps = props.innerProps; - return __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */]("div", _extends$7({ - css: getStyles('option', props), - className: cx({ - option: true, - 'option--is-disabled': isDisabled, - 'option--is-focused': isFocused, - 'option--is-selected': isSelected - }, className), - ref: innerRef - }, innerProps), children); + return newProps; }; -function _extends$8() { _extends$8 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$8.apply(this, arguments); } -var placeholderCSS = function placeholderCSS(_ref) { - var _ref$theme = _ref.theme, - spacing = _ref$theme.spacing, - colors = _ref$theme.colors; - return { - label: 'placeholder', - color: colors.neutral50, - marginLeft: spacing.baseUnit / 2, - marginRight: spacing.baseUnit / 2, - position: 'absolute', - top: '50%', - transform: 'translateY(-50%)' - }; -}; +var render = function render(cache, props, theme, ref) { + var cssProp = theme === null ? props.css : props.css(theme); // so that using `css` from `emotion` and passing the result to the css prop works + // not passing the registered cache to serializeStyles because it would + // make certain babel optimisations not possible -var Placeholder = function Placeholder(props) { - var children = props.children, - className = props.className, - cx = props.cx, - getStyles = props.getStyles, - innerProps = props.innerProps; - return __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */]("div", _extends$8({ - css: getStyles('placeholder', props), - className: cx({ - placeholder: true - }, className) - }, innerProps), children); -}; + if (typeof cssProp === 'string' && cache.registered[cssProp] !== undefined) { + cssProp = cache.registered[cssProp]; + } -function _extends$9() { _extends$9 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$9.apply(this, arguments); } -var css$1 = function css(_ref) { - var isDisabled = _ref.isDisabled, - _ref$theme = _ref.theme, - spacing = _ref$theme.spacing, - colors = _ref$theme.colors; - return { - label: 'singleValue', - color: isDisabled ? colors.neutral40 : colors.neutral80, - marginLeft: spacing.baseUnit / 2, - marginRight: spacing.baseUnit / 2, - maxWidth: "calc(100% - " + spacing.baseUnit * 2 + "px)", - overflow: 'hidden', - position: 'absolute', - textOverflow: 'ellipsis', - whiteSpace: 'nowrap', - top: '50%', - transform: 'translateY(-50%)' - }; -}; + var type = props[typePropName]; + var registeredStyles = [cssProp]; + var className = ''; -var SingleValue = function SingleValue(props) { - var children = props.children, - className = props.className, - cx = props.cx, - getStyles = props.getStyles, - isDisabled = props.isDisabled, - innerProps = props.innerProps; - return __WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */]("div", _extends$9({ - css: getStyles('singleValue', props), - className: cx({ - 'single-value': true, - 'single-value--is-disabled': isDisabled - }, className) - }, innerProps), children); -}; + if (typeof props.className === 'string') { + className = Object(__WEBPACK_IMPORTED_MODULE_3__emotion_utils__["a" /* getRegisteredStyles */])(cache.registered, registeredStyles, props.className); + } else if (props.className != null) { + className = props.className + " "; + } -function _extends$a() { _extends$a = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$a.apply(this, arguments); } -var components = { - ClearIndicator: ClearIndicator, - Control: Control, - DropdownIndicator: DropdownIndicator, - DownChevron: DownChevron, - CrossIcon: CrossIcon, - Group: Group, - GroupHeading: GroupHeading, - IndicatorsContainer: IndicatorsContainer, - IndicatorSeparator: IndicatorSeparator, - Input: Input, - LoadingIndicator: LoadingIndicator, - Menu: Menu, - MenuList: MenuList, - MenuPortal: MenuPortal, - LoadingMessage: LoadingMessage, - NoOptionsMessage: NoOptionsMessage, - MultiValue: MultiValue, - MultiValueContainer: MultiValueContainer, - MultiValueLabel: MultiValueLabel, - MultiValueRemove: MultiValueRemove, - Option: Option, - Placeholder: Placeholder, - SelectContainer: SelectContainer, - SingleValue: SingleValue, - ValueContainer: ValueContainer -}; -var defaultComponents = function defaultComponents(props) { - return _extends$a({}, components, props.components); -}; + var serialized = Object(__WEBPACK_IMPORTED_MODULE_4__emotion_serialize__["a" /* serializeStyles */])(registeredStyles); + if (process.env.NODE_ENV !== 'production' && serialized.name.indexOf('-') === -1) { + var labelFromStack = props[labelPropName]; + if (labelFromStack) { + serialized = Object(__WEBPACK_IMPORTED_MODULE_4__emotion_serialize__["a" /* serializeStyles */])([serialized, 'label:' + labelFromStack + ';']); + } + } -/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(/*! ./../../process/browser.js */ 3))) + var rules = Object(__WEBPACK_IMPORTED_MODULE_3__emotion_utils__["b" /* insertStyles */])(cache, serialized, typeof type === 'string'); + className += cache.key + "-" + serialized.name; + var newProps = {}; -/***/ }), -/* 138 */ -/*!****************************************************************!*\ - !*** ./node_modules/react-input-autosize/lib/AutosizeInput.js ***! - \****************************************************************/ -/*! no static exports found */ -/*! exports used: default */ -/***/ (function(module, exports, __webpack_require__) { + for (var key in props) { + if (hasOwnProperty.call(props, key) && key !== 'css' && key !== typePropName && (process.env.NODE_ENV === 'production' || key !== labelPropName)) { + newProps[key] = props[key]; + } + } -"use strict"; + newProps.ref = ref; + newProps.className = className; + var ele = /*#__PURE__*/Object(__WEBPACK_IMPORTED_MODULE_1_react__["createElement"])(type, newProps); + return ele; +}; // eslint-disable-next-line no-undef -Object.defineProperty(exports, "__esModule", { - value: true -}); -var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; +var Emotion = /* #__PURE__ */withEmotionCache(function (props, cache, ref) { + if (typeof props.css === 'function') { + return /*#__PURE__*/Object(__WEBPACK_IMPORTED_MODULE_1_react__["createElement"])(ThemeContext.Consumer, null, function (theme) { + return render(cache, props, theme, ref); + }); + } -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + return render(cache, props, null, ref); +}); -var _react = __webpack_require__(/*! react */ 6); +if (process.env.NODE_ENV !== 'production') { + Emotion.displayName = 'EmotionCssPropInternal'; +} -var _react2 = _interopRequireDefault(_react); -var _propTypes = __webpack_require__(/*! prop-types */ 15); -var _propTypes2 = _interopRequireDefault(_propTypes); +/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(/*! ./../../../process/browser.js */ 6))) -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } +/***/ }), +/* 174 */ +/*!***************************************************************!*\ + !*** ./node_modules/@emotion/utils/dist/utils.browser.esm.js ***! + \***************************************************************/ +/*! exports provided: getRegisteredStyles, insertStyles */ +/*! exports used: getRegisteredStyles, insertStyles */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { -function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getRegisteredStyles; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return insertStyles; }); +var isBrowser = "object" !== 'undefined'; +function getRegisteredStyles(registered, registeredStyles, classNames) { + var rawClassName = ''; + classNames.split(' ').forEach(function (className) { + if (registered[className] !== undefined) { + registeredStyles.push(registered[className]); + } else { + rawClassName += className + " "; + } + }); + return rawClassName; +} +var insertStyles = function insertStyles(cache, serialized, isStringTag) { + var className = cache.key + "-" + serialized.name; -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + if ( // we only need to add the styles to the registered cache if the + // class name could be used further down + // the tree but if it's a string tag, we know it won't + // so we don't have to add it to registered cache. + // this improves memory usage since we can avoid storing the whole style string + (isStringTag === false || // we need to always store it if we're in compat mode and + // in node since emotion-server relies on whether a style is in + // the registered cache to know whether a style is global or not + // also, note that this check will be dead code eliminated in the browser + isBrowser === false && cache.compat !== undefined) && cache.registered[className] === undefined) { + cache.registered[className] = serialized.styles; + } -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + if (cache.inserted[serialized.name] === undefined) { + var current = serialized; -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + do { + var maybeStyles = cache.insert("." + className, current, cache.sheet, true); -var sizerStyle = { - position: 'absolute', - top: 0, - left: 0, - visibility: 'hidden', - height: 0, - overflow: 'scroll', - whiteSpace: 'pre' + current = current.next; + } while (current !== undefined); + } }; -var INPUT_PROPS_BLACKLIST = ['extraWidth', 'injectStyles', 'inputClassName', 'inputRef', 'inputStyle', 'minWidth', 'onAutosize', 'placeholderIsMinWidth']; -var cleanInputProps = function cleanInputProps(inputProps) { - INPUT_PROPS_BLACKLIST.forEach(function (field) { - return delete inputProps[field]; - }); - return inputProps; -}; -var copyStyles = function copyStyles(styles, node) { - node.style.fontSize = styles.fontSize; - node.style.fontFamily = styles.fontFamily; - node.style.fontWeight = styles.fontWeight; - node.style.fontStyle = styles.fontStyle; - node.style.letterSpacing = styles.letterSpacing; - node.style.textTransform = styles.textTransform; -}; -var isIE = typeof window !== 'undefined' && window.navigator ? /MSIE |Trident\/|Edge\//.test(window.navigator.userAgent) : false; +/***/ }), +/* 175 */ +/*!*****************************************!*\ + !*** ./node_modules/scheduler/index.js ***! + \*****************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { -var generateId = function generateId() { - // we only need an auto-generated ID for stylesheet injection, which is only - // used for IE. so if the browser is not IE, this should return undefined. - return isIE ? '_' + Math.random().toString(36).substr(2, 12) : undefined; -}; +"use strict"; +/* WEBPACK VAR INJECTION */(function(process) { -var AutosizeInput = function (_Component) { - _inherits(AutosizeInput, _Component); +if (process.env.NODE_ENV === 'production') { + module.exports = __webpack_require__(/*! ./cjs/scheduler.production.min.js */ 353); +} else { + module.exports = __webpack_require__(/*! ./cjs/scheduler.development.js */ 354); +} - function AutosizeInput(props) { - _classCallCheck(this, AutosizeInput); +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(/*! ./../process/browser.js */ 6))) - var _this = _possibleConstructorReturn(this, (AutosizeInput.__proto__ || Object.getPrototypeOf(AutosizeInput)).call(this, props)); +/***/ }), +/* 176 */ +/*!**********************************************************************!*\ + !*** ./node_modules/react-select/dist/index-75b02bac.browser.esm.js ***! + \**********************************************************************/ +/*! exports provided: A, B, C, D, E, F, G, M, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z */ +/*! exports used: A, B, C, D, E, M, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { - _this.inputRef = function (el) { - _this.input = el; - if (typeof _this.props.inputRef === 'function') { - _this.props.inputRef(el); - } - }; +"use strict"; +/* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return isDocumentElement; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return exportedEqual; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return cleanValue; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return scrollIntoView; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return noop; }); +/* unused harmony export F */ +/* unused harmony export G */ +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return MenuPlacer; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return containerCSS; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return css; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return clearIndicatorCSS; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return dropdownIndicatorCSS; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return groupHeadingCSS; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return indicatorSeparatorCSS; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return groupCSS; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return inputCSS; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return indicatorsContainerCSS; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return loadingMessageCSS; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return menuListCSS; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return loadingIndicatorCSS; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return menuCSS; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return menuPortalCSS; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return multiValueCSS; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "v", function() { return multiValueLabelCSS; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "w", function() { return multiValueRemoveCSS; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "x", function() { return noOptionsMessageCSS; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return optionCSS; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "z", function() { return placeholderCSS; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "A", function() { return css$1; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "B", function() { return valueContainerCSS; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "C", function() { return isTouchCapable; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "D", function() { return isMobileDevice; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "E", function() { return defaultComponents; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return classNames; }); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutProperties */ 90); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ 91); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_defineProperty__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ 177); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_classCallCheck__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ 59); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_createClass__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createClass */ 60); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_inherits__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inherits */ 61); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_possibleConstructorReturn__ = __webpack_require__(/*! @babel/runtime/helpers/esm/possibleConstructorReturn */ 62); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_getPrototypeOf__ = __webpack_require__(/*! @babel/runtime/helpers/esm/getPrototypeOf */ 63); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_react__ = __webpack_require__(/*! react */ 5); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_react__); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__emotion_core__ = __webpack_require__(/*! @emotion/core */ 87); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_react_dom__ = __webpack_require__(/*! react-dom */ 33); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10_react_dom__); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__babel_runtime_helpers_esm_typeof__ = __webpack_require__(/*! @babel/runtime/helpers/esm/typeof */ 360); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__emotion_css__ = __webpack_require__(/*! @emotion/css */ 41); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__babel_runtime_helpers_esm_taggedTemplateLiteral__ = __webpack_require__(/*! @babel/runtime/helpers/esm/taggedTemplateLiteral */ 361); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14_react_input_autosize__ = __webpack_require__(/*! react-input-autosize */ 178); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14_react_input_autosize___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_14_react_input_autosize__); - _this.placeHolderSizerRef = function (el) { - _this.placeHolderSizer = el; - }; - _this.sizerRef = function (el) { - _this.sizer = el; - }; - _this.state = { - inputWidth: props.minWidth, - inputId: props.id || generateId() - }; - return _this; - } - _createClass(AutosizeInput, [{ - key: 'componentDidMount', - value: function componentDidMount() { - this.mounted = true; - this.copyInputStyles(); - this.updateInputWidth(); - } - }, { - key: 'UNSAFE_componentWillReceiveProps', - value: function UNSAFE_componentWillReceiveProps(nextProps) { - var id = nextProps.id; - if (id !== this.props.id) { - this.setState({ inputId: id || generateId() }); - } - } - }, { - key: 'componentDidUpdate', - value: function componentDidUpdate(prevProps, prevState) { - if (prevState.inputWidth !== this.state.inputWidth) { - if (typeof this.props.onAutosize === 'function') { - this.props.onAutosize(this.state.inputWidth); - } - } - this.updateInputWidth(); - } - }, { - key: 'componentWillUnmount', - value: function componentWillUnmount() { - this.mounted = false; - } - }, { - key: 'copyInputStyles', - value: function copyInputStyles() { - if (!this.mounted || !window.getComputedStyle) { - return; - } - var inputStyles = this.input && window.getComputedStyle(this.input); - if (!inputStyles) { - return; - } - copyStyles(inputStyles, this.sizer); - if (this.placeHolderSizer) { - copyStyles(inputStyles, this.placeHolderSizer); - } - } - }, { - key: 'updateInputWidth', - value: function updateInputWidth() { - if (!this.mounted || !this.sizer || typeof this.sizer.scrollWidth === 'undefined') { - return; - } - var newInputWidth = void 0; - if (this.props.placeholder && (!this.props.value || this.props.value && this.props.placeholderIsMinWidth)) { - newInputWidth = Math.max(this.sizer.scrollWidth, this.placeHolderSizer.scrollWidth) + 2; - } else { - newInputWidth = this.sizer.scrollWidth + 2; - } - // add extraWidth to the detected width. for number types, this defaults to 16 to allow for the stepper UI - var extraWidth = this.props.type === 'number' && this.props.extraWidth === undefined ? 16 : parseInt(this.props.extraWidth) || 0; - newInputWidth += extraWidth; - if (newInputWidth < this.props.minWidth) { - newInputWidth = this.props.minWidth; - } - if (newInputWidth !== this.state.inputWidth) { - this.setState({ - inputWidth: newInputWidth - }); - } - } - }, { - key: 'getInput', - value: function getInput() { - return this.input; - } - }, { - key: 'focus', - value: function focus() { - this.input.focus(); - } - }, { - key: 'blur', - value: function blur() { - this.input.blur(); - } - }, { - key: 'select', - value: function select() { - this.input.select(); - } - }, { - key: 'renderStyles', - value: function renderStyles() { - // this method injects styles to hide IE's clear indicator, which messes - // with input size detection. the stylesheet is only injected when the - // browser is IE, and can also be disabled by the `injectStyles` prop. - var injectStyles = this.props.injectStyles; - return isIE && injectStyles ? _react2.default.createElement('style', { dangerouslySetInnerHTML: { - __html: 'input#' + this.state.inputId + '::-ms-clear {display: none;}' - } }) : null; - } - }, { - key: 'render', - value: function render() { - var sizerValue = [this.props.defaultValue, this.props.value, ''].reduce(function (previousValue, currentValue) { - if (previousValue !== null && previousValue !== undefined) { - return previousValue; - } - return currentValue; - }); - var wrapperStyle = _extends({}, this.props.style); - if (!wrapperStyle.display) wrapperStyle.display = 'inline-block'; - var inputStyle = _extends({ - boxSizing: 'content-box', - width: this.state.inputWidth + 'px' - }, this.props.inputStyle); - var inputProps = _objectWithoutProperties(this.props, []); - cleanInputProps(inputProps); - inputProps.className = this.props.inputClassName; - inputProps.id = this.state.inputId; - inputProps.style = inputStyle; - return _react2.default.createElement( - 'div', - { className: this.props.className, style: wrapperStyle }, - this.renderStyles(), - _react2.default.createElement('input', _extends({}, inputProps, { ref: this.inputRef })), - _react2.default.createElement( - 'div', - { ref: this.sizerRef, style: sizerStyle }, - sizerValue - ), - this.props.placeholder ? _react2.default.createElement( - 'div', - { ref: this.placeHolderSizerRef, style: sizerStyle }, - this.props.placeholder - ) : null - ); - } - }]); - return AutosizeInput; -}(_react.Component); -AutosizeInput.propTypes = { - className: _propTypes2.default.string, // className for the outer element - defaultValue: _propTypes2.default.any, // default field value - extraWidth: _propTypes2.default.oneOfType([// additional width for input element - _propTypes2.default.number, _propTypes2.default.string]), - id: _propTypes2.default.string, // id to use for the input, can be set for consistent snapshots - injectStyles: _propTypes2.default.bool, // inject the custom stylesheet to hide clear UI, defaults to true - inputClassName: _propTypes2.default.string, // className for the input element - inputRef: _propTypes2.default.func, // ref callback for the input element - inputStyle: _propTypes2.default.object, // css styles for the input element - minWidth: _propTypes2.default.oneOfType([// minimum width for input element - _propTypes2.default.number, _propTypes2.default.string]), - onAutosize: _propTypes2.default.func, // onAutosize handler: function(newWidth) {} - onChange: _propTypes2.default.func, // onChange handler: function(event) {} - placeholder: _propTypes2.default.string, // placeholder text - placeholderIsMinWidth: _propTypes2.default.bool, // don't collapse size to less than the placeholder - style: _propTypes2.default.object, // css styles for the outer element - value: _propTypes2.default.any // field value -}; -AutosizeInput.defaultProps = { - minWidth: 1, - injectStyles: true -}; -exports.default = AutosizeInput; -/***/ }), -/* 139 */ -/*!***********************************************************************!*\ - !*** ./node_modules/react-select/dist/Select-9fdb8cd0.browser.esm.js ***! - \***********************************************************************/ -/*! exports provided: S, a, c, d, m */ -/*! exports used: S */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { -"use strict"; -/* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Select; }); -/* unused harmony export a */ -/* unused harmony export c */ -/* unused harmony export d */ -/* unused harmony export m */ -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(/*! react */ 6); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_memoize_one__ = __webpack_require__(/*! memoize-one */ 131); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__emotion_core__ = __webpack_require__(/*! @emotion/core */ 65); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react_dom__ = __webpack_require__(/*! react-dom */ 18); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_react_dom__); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__utils_06b0d5a4_browser_esm_js__ = __webpack_require__(/*! ./utils-06b0d5a4.browser.esm.js */ 66); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__ = __webpack_require__(/*! ./index-4322c0ed.browser.esm.js */ 137); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__emotion_css__ = __webpack_require__(/*! @emotion/css */ 29); +// ============================== +// NO OP +// ============================== +var noop = function noop() {}; +// Class Name Prefixer +// ============================== +/** + String representation of component state for styling with class names. + Expects an array of strings OR a string/object pair: + - className(['comp', 'comp-arg', 'comp-arg-2']) + @returns 'react-select__comp react-select__comp-arg react-select__comp-arg-2' + - className('comp', { some: true, state: false }) + @returns 'react-select__comp react-select__comp--some' +*/ +function applyPrefixToName(prefix, name) { + if (!name) { + return prefix; + } else if (name[0] === '-') { + return prefix + name; + } else { + return prefix + '__' + name; + } +} +function classNames(prefix, state, className) { + var arr = [className]; + if (state && prefix) { + for (var key in state) { + if (state.hasOwnProperty(key) && state[key]) { + arr.push("".concat(applyPrefixToName(prefix, key))); + } + } + } + return arr.filter(function (i) { + return i; + }).map(function (i) { + return String(i).trim(); + }).join(' '); +} // ============================== +// Clean Value +// ============================== +var cleanValue = function cleanValue(value) { + if (Array.isArray(value)) return value.filter(Boolean); + if (Object(__WEBPACK_IMPORTED_MODULE_11__babel_runtime_helpers_esm_typeof__["a" /* default */])(value) === 'object' && value !== null) return [value]; + return []; +}; // ============================== +// Handle Input Change +// ============================== -var diacritics = [{ - base: 'A', - letters: /[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g -}, { - base: 'AA', - letters: /[\uA732]/g -}, { - base: 'AE', - letters: /[\u00C6\u01FC\u01E2]/g -}, { - base: 'AO', - letters: /[\uA734]/g -}, { - base: 'AU', - letters: /[\uA736]/g -}, { - base: 'AV', - letters: /[\uA738\uA73A]/g -}, { - base: 'AY', - letters: /[\uA73C]/g -}, { - base: 'B', - letters: /[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g -}, { - base: 'C', - letters: /[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g -}, { - base: 'D', - letters: /[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g -}, { - base: 'DZ', - letters: /[\u01F1\u01C4]/g -}, { - base: 'Dz', - letters: /[\u01F2\u01C5]/g -}, { - base: 'E', - letters: /[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g -}, { - base: 'F', - letters: /[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g -}, { - base: 'G', - letters: /[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g -}, { - base: 'H', - letters: /[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g -}, { - base: 'I', - letters: /[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g -}, { - base: 'J', - letters: /[\u004A\u24BF\uFF2A\u0134\u0248]/g -}, { - base: 'K', - letters: /[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g -}, { - base: 'L', - letters: /[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g -}, { - base: 'LJ', - letters: /[\u01C7]/g -}, { - base: 'Lj', - letters: /[\u01C8]/g -}, { - base: 'M', - letters: /[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g -}, { - base: 'N', - letters: /[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g -}, { - base: 'NJ', - letters: /[\u01CA]/g -}, { - base: 'Nj', - letters: /[\u01CB]/g -}, { - base: 'O', - letters: /[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g -}, { - base: 'OI', - letters: /[\u01A2]/g -}, { - base: 'OO', - letters: /[\uA74E]/g -}, { - base: 'OU', - letters: /[\u0222]/g -}, { - base: 'P', - letters: /[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g -}, { - base: 'Q', - letters: /[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g -}, { - base: 'R', - letters: /[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g -}, { - base: 'S', - letters: /[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g -}, { - base: 'T', - letters: /[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g -}, { - base: 'TZ', - letters: /[\uA728]/g -}, { - base: 'U', - letters: /[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g -}, { - base: 'V', - letters: /[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g -}, { - base: 'VY', - letters: /[\uA760]/g -}, { - base: 'W', - letters: /[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g -}, { - base: 'X', - letters: /[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g -}, { - base: 'Y', - letters: /[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g -}, { - base: 'Z', - letters: /[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g -}, { - base: 'a', - letters: /[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g -}, { - base: 'aa', - letters: /[\uA733]/g -}, { - base: 'ae', - letters: /[\u00E6\u01FD\u01E3]/g -}, { - base: 'ao', - letters: /[\uA735]/g -}, { - base: 'au', - letters: /[\uA737]/g -}, { - base: 'av', - letters: /[\uA739\uA73B]/g -}, { - base: 'ay', - letters: /[\uA73D]/g -}, { - base: 'b', - letters: /[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g -}, { - base: 'c', - letters: /[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g -}, { - base: 'd', - letters: /[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g -}, { - base: 'dz', - letters: /[\u01F3\u01C6]/g -}, { - base: 'e', - letters: /[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g -}, { - base: 'f', - letters: /[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g -}, { - base: 'g', - letters: /[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g -}, { - base: 'h', - letters: /[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g -}, { - base: 'hv', - letters: /[\u0195]/g -}, { - base: 'i', - letters: /[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g -}, { - base: 'j', - letters: /[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g -}, { - base: 'k', - letters: /[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g -}, { - base: 'l', - letters: /[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g -}, { - base: 'lj', - letters: /[\u01C9]/g -}, { - base: 'm', - letters: /[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g -}, { - base: 'n', - letters: /[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g -}, { - base: 'nj', - letters: /[\u01CC]/g -}, { - base: 'o', - letters: /[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g -}, { - base: 'oi', - letters: /[\u01A3]/g -}, { - base: 'ou', - letters: /[\u0223]/g -}, { - base: 'oo', - letters: /[\uA74F]/g -}, { - base: 'p', - letters: /[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g -}, { - base: 'q', - letters: /[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g -}, { - base: 'r', - letters: /[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g -}, { - base: 's', - letters: /[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g -}, { - base: 't', - letters: /[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g -}, { - base: 'tz', - letters: /[\uA729]/g -}, { - base: 'u', - letters: /[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g -}, { - base: 'v', - letters: /[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g -}, { - base: 'vy', - letters: /[\uA761]/g -}, { - base: 'w', - letters: /[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g -}, { - base: 'x', - letters: /[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g -}, { - base: 'y', - letters: /[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g -}, { - base: 'z', - letters: /[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g -}]; -var stripDiacritics = function stripDiacritics(str) { - for (var i = 0; i < diacritics.length; i++) { - str = str.replace(diacritics[i].letters, diacritics[i].base); +function handleInputChange(inputValue, actionMeta, onInputChange) { + if (onInputChange) { + var newValue = onInputChange(inputValue, actionMeta); + if (typeof newValue === 'string') return newValue; } - return str; -}; - -function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - -var trimString = function trimString(str) { - return str.replace(/^\s+|\s+$/g, ''); -}; + return inputValue; +} // ============================== +// Scroll Helpers +// ============================== -var defaultStringify = function defaultStringify(option) { - return option.label + " " + option.value; -}; +function isDocumentElement(el) { + return [document.documentElement, document.body, window].indexOf(el) > -1; +} // Normalized Scroll Top +// ------------------------------ -var createFilter = function createFilter(config) { - return function (option, rawInput) { - var _ignoreCase$ignoreAcc = _extends({ - ignoreCase: true, - ignoreAccents: true, - stringify: defaultStringify, - trim: true, - matchFrom: 'any' - }, config), - ignoreCase = _ignoreCase$ignoreAcc.ignoreCase, - ignoreAccents = _ignoreCase$ignoreAcc.ignoreAccents, - stringify = _ignoreCase$ignoreAcc.stringify, - trim = _ignoreCase$ignoreAcc.trim, - matchFrom = _ignoreCase$ignoreAcc.matchFrom; +function getScrollTop(el) { + if (isDocumentElement(el)) { + return window.pageYOffset; + } - var input = trim ? trimString(rawInput) : rawInput; - var candidate = trim ? trimString(stringify(option)) : stringify(option); + return el.scrollTop; +} +function scrollTo(el, top) { + // with a scroll distance, we perform scroll on the element + if (isDocumentElement(el)) { + window.scrollTo(0, top); + return; + } - if (ignoreCase) { - input = input.toLowerCase(); - candidate = candidate.toLowerCase(); - } + el.scrollTop = top; +} // Get Scroll Parent +// ------------------------------ - if (ignoreAccents) { - input = stripDiacritics(input); - candidate = stripDiacritics(candidate); - } +function getScrollParent(element) { + var style = getComputedStyle(element); + var excludeStaticParent = style.position === 'absolute'; + var overflowRx = /(auto|scroll)/; + var docEl = document.documentElement; // suck it, flow... - return matchFrom === 'start' ? candidate.substr(0, input.length) === input : candidate.indexOf(input) > -1; - }; -}; + if (style.position === 'fixed') return docEl; -function _extends$1() { _extends$1 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1.apply(this, arguments); } + for (var parent = element; parent = parent.parentElement;) { + style = getComputedStyle(parent); -var _ref = process.env.NODE_ENV === "production" ? { - name: "1laao21-a11yText", - styles: "label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;" -} : { - name: "1laao21-a11yText", - styles: "label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;", - map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVFNIiwiZmlsZSI6IkExMXlUZXh0LmpzIiwic291cmNlc0NvbnRlbnQiOlsiLy8gQGZsb3dcbi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgdHlwZSBFbGVtZW50Q29uZmlnIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vY29yZSc7XG5cbi8vIEFzc2lzdGl2ZSB0ZXh0IHRvIGRlc2NyaWJlIHZpc3VhbCBlbGVtZW50cy4gSGlkZGVuIGZvciBzaWdodGVkIHVzZXJzLlxuY29uc3QgQTExeVRleHQgPSAocHJvcHM6IEVsZW1lbnRDb25maWc8J3NwYW4nPikgPT4gKFxuICAgIDxzcGFuXG4gICAgICBjc3M9e3tcbiAgICAgICAgbGFiZWw6ICdhMTF5VGV4dCcsXG4gICAgICAgIHpJbmRleDogOTk5OSxcbiAgICAgICAgYm9yZGVyOiAwLFxuICAgICAgICBjbGlwOiAncmVjdCgxcHgsIDFweCwgMXB4LCAxcHgpJyxcbiAgICAgICAgaGVpZ2h0OiAxLFxuICAgICAgICB3aWR0aDogMSxcbiAgICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICAgIG92ZXJmbG93OiAnaGlkZGVuJyxcbiAgICAgICAgcGFkZGluZzogMCxcbiAgICAgICAgd2hpdGVTcGFjZTogJ25vd3JhcCcsXG4gICAgICB9fVxuICAgICAgey4uLnByb3BzfVxuICAgIC8+XG4pO1xuXG5leHBvcnQgZGVmYXVsdCBBMTF5VGV4dDtcbiJdfQ== */" -}; + if (excludeStaticParent && style.position === 'static') { + continue; + } -var A11yText = function A11yText(props) { - return __WEBPACK_IMPORTED_MODULE_2__emotion_core__["c" /* jsx */]("span", _extends$1({ - css: _ref - }, props)); -}; + if (overflowRx.test(style.overflow + style.overflowY + style.overflowX)) { + return parent; + } + } -function _extends$2() { _extends$2 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$2.apply(this, arguments); } + return docEl; +} // Animated Scroll To +// ------------------------------ -function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } -function DummyInput(_ref) { - var inProp = _ref.in, - out = _ref.out, - onExited = _ref.onExited, - appear = _ref.appear, - enter = _ref.enter, - exit = _ref.exit, - innerRef = _ref.innerRef, - emotion = _ref.emotion, - props = _objectWithoutPropertiesLoose(_ref, ["in", "out", "onExited", "appear", "enter", "exit", "innerRef", "emotion"]); +/** + @param t: time (elapsed) + @param b: initial value + @param c: amount of change + @param d: duration +*/ - return __WEBPACK_IMPORTED_MODULE_2__emotion_core__["c" /* jsx */]("input", _extends$2({ - ref: innerRef - }, props, { - css: - /*#__PURE__*/ - __WEBPACK_IMPORTED_MODULE_6__emotion_css__["a" /* default */]({ - label: 'dummyInput', - // get rid of any default styles - background: 0, - border: 0, - fontSize: 'inherit', - outline: 0, - padding: 0, - // important! without `width` browsers won't allow focus - width: 1, - // remove cursor on desktop - color: 'transparent', - // remove cursor on mobile whilst maintaining "scroll into view" behaviour - left: -100, - opacity: 0, - position: 'relative', - transform: 'scale(0)' - }, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBbUJNIiwiZmlsZSI6IkR1bW15SW5wdXQuanMiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBAZmxvd1xuLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9jb3JlJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gRHVtbXlJbnB1dCh7XG4gIGluOiBpblByb3AsXG4gIG91dCxcbiAgb25FeGl0ZWQsXG4gIGFwcGVhcixcbiAgZW50ZXIsXG4gIGV4aXQsXG4gIGlubmVyUmVmLFxuICBlbW90aW9uLFxuICAuLi5wcm9wc1xufTogYW55KSB7XG4gIHJldHVybiAoXG4gICAgPGlucHV0XG4gICAgICByZWY9e2lubmVyUmVmfVxuICAgICAgey4uLnByb3BzfVxuICAgICAgY3NzPXt7XG4gICAgICAgIGxhYmVsOiAnZHVtbXlJbnB1dCcsXG4gICAgICAgIC8vIGdldCByaWQgb2YgYW55IGRlZmF1bHQgc3R5bGVzXG4gICAgICAgIGJhY2tncm91bmQ6IDAsXG4gICAgICAgIGJvcmRlcjogMCxcbiAgICAgICAgZm9udFNpemU6ICdpbmhlcml0JyxcbiAgICAgICAgb3V0bGluZTogMCxcbiAgICAgICAgcGFkZGluZzogMCxcbiAgICAgICAgLy8gaW1wb3J0YW50ISB3aXRob3V0IGB3aWR0aGAgYnJvd3NlcnMgd29uJ3QgYWxsb3cgZm9jdXNcbiAgICAgICAgd2lkdGg6IDEsXG5cbiAgICAgICAgLy8gcmVtb3ZlIGN1cnNvciBvbiBkZXNrdG9wXG4gICAgICAgIGNvbG9yOiAndHJhbnNwYXJlbnQnLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gbW9iaWxlIHdoaWxzdCBtYWludGFpbmluZyBcInNjcm9sbCBpbnRvIHZpZXdcIiBiZWhhdmlvdXJcbiAgICAgICAgbGVmdDogLTEwMCxcbiAgICAgICAgb3BhY2l0eTogMCxcbiAgICAgICAgcG9zaXRpb246ICdyZWxhdGl2ZScsXG4gICAgICAgIHRyYW5zZm9ybTogJ3NjYWxlKDApJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */") - })); +function easeOutCubic(t, b, c, d) { + return c * ((t = t / d - 1) * t * t + 1) + b; } -function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; } +function animatedScrollTo(element, to) { + var duration = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 200; + var callback = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : noop; + var start = getScrollTop(element); + var change = to - start; + var increment = 10; + var currentTime = 0; -var NodeResolver = -/*#__PURE__*/ -function (_Component) { - _inheritsLoose(NodeResolver, _Component); + function animateScroll() { + currentTime += increment; + var val = easeOutCubic(currentTime, start, change, duration); + scrollTo(element, val); - function NodeResolver() { - return _Component.apply(this, arguments) || this; + if (currentTime < duration) { + window.requestAnimationFrame(animateScroll); + } else { + callback(element); + } } - var _proto = NodeResolver.prototype; + animateScroll(); +} // Scroll Into View +// ------------------------------ - _proto.componentDidMount = function componentDidMount() { - this.props.innerRef(__WEBPACK_IMPORTED_MODULE_3_react_dom__["findDOMNode"](this)); - }; +function scrollIntoView(menuEl, focusedEl) { + var menuRect = menuEl.getBoundingClientRect(); + var focusedRect = focusedEl.getBoundingClientRect(); + var overScroll = focusedEl.offsetHeight / 3; - _proto.componentWillUnmount = function componentWillUnmount() { - this.props.innerRef(null); - }; + if (focusedRect.bottom + overScroll > menuRect.bottom) { + scrollTo(menuEl, Math.min(focusedEl.offsetTop + focusedEl.clientHeight - menuEl.offsetHeight + overScroll, menuEl.scrollHeight)); + } else if (focusedRect.top - overScroll < menuRect.top) { + scrollTo(menuEl, Math.max(focusedEl.offsetTop - overScroll, 0)); + } +} // ============================== +// Get bounding client object +// ============================== +// cannot get keys using array notation with DOMRect - _proto.render = function render() { - return this.props.children; +function getBoundingClientObj(element) { + var rect = element.getBoundingClientRect(); + return { + bottom: rect.bottom, + height: rect.height, + left: rect.left, + right: rect.right, + top: rect.top, + width: rect.width }; - - return NodeResolver; -}(__WEBPACK_IMPORTED_MODULE_0_react__["Component"]); - -var STYLE_KEYS = ['boxSizing', 'height', 'overflow', 'paddingRight', 'position']; -var LOCK_STYLES = { - boxSizing: 'border-box', - // account for possible declaration `width: 100%;` on body - overflow: 'hidden', - position: 'relative', - height: '100%' -}; - -function preventTouchMove(e) { - e.preventDefault(); -} -function allowTouchMove(e) { - e.stopPropagation(); } -function preventInertiaScroll() { - var top = this.scrollTop; - var totalScroll = this.scrollHeight; - var currentScroll = top + this.offsetHeight; +// Touch Capability Detector +// ============================== - if (top === 0) { - this.scrollTop = 1; - } else if (currentScroll === totalScroll) { - this.scrollTop = top - 1; +function isTouchCapable() { + try { + document.createEvent('TouchEvent'); + return true; + } catch (e) { + return false; } -} // `ontouchstart` check works on most browsers -// `maxTouchPoints` works on IE10/11 and Surface +} // ============================== +// Mobile Device Detector +// ============================== -function isTouchDevice() { - return 'ontouchstart' in window || navigator.maxTouchPoints; +function isMobileDevice() { + try { + return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent); + } catch (e) { + return false; + } } -function _inheritsLoose$1(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; } -var canUseDOM = !!( window.document && window.document.createElement); -var activeScrollLocks = 0; +function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } -var ScrollLock = -/*#__PURE__*/ -function (_Component) { - _inheritsLoose$1(ScrollLock, _Component); +function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } - function ScrollLock() { - var _this; +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_getPrototypeOf__["a" /* default */])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_getPrototypeOf__["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_possibleConstructorReturn__["a" /* default */])(this, result); }; } - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } +function getMenuPlacement(_ref) { + var maxHeight = _ref.maxHeight, + menuEl = _ref.menuEl, + minHeight = _ref.minHeight, + placement = _ref.placement, + shouldScroll = _ref.shouldScroll, + isFixedPosition = _ref.isFixedPosition, + theme = _ref.theme; + var spacing = theme.spacing; + var scrollParent = getScrollParent(menuEl); + var defaultState = { + placement: 'bottom', + maxHeight: maxHeight + }; // something went wrong, return default state - _this = _Component.call.apply(_Component, [this].concat(args)) || this; - _this.originalStyles = {}; - _this.listenerOptions = { - capture: false, - passive: false - }; - return _this; - } + if (!menuEl || !menuEl.offsetParent) return defaultState; // we can't trust `scrollParent.scrollHeight` --> it may increase when + // the menu is rendered - var _proto = ScrollLock.prototype; + var _scrollParent$getBoun = scrollParent.getBoundingClientRect(), + scrollHeight = _scrollParent$getBoun.height; - _proto.componentDidMount = function componentDidMount() { - var _this2 = this; + var _menuEl$getBoundingCl = menuEl.getBoundingClientRect(), + menuBottom = _menuEl$getBoundingCl.bottom, + menuHeight = _menuEl$getBoundingCl.height, + menuTop = _menuEl$getBoundingCl.top; - if (!canUseDOM) return; - var _this$props = this.props, - accountForScrollbars = _this$props.accountForScrollbars, - touchScrollTarget = _this$props.touchScrollTarget; - var target = document.body; - var targetStyle = target && target.style; - - if (accountForScrollbars) { - // store any styles already applied to the body - STYLE_KEYS.forEach(function (key) { - var val = targetStyle && targetStyle[key]; - _this2.originalStyles[key] = val; - }); - } // apply the lock styles and padding if this is the first scroll lock + var _menuEl$offsetParent$ = menuEl.offsetParent.getBoundingClientRect(), + containerTop = _menuEl$offsetParent$.top; + + var viewHeight = window.innerHeight; + var scrollTop = getScrollTop(scrollParent); + var marginBottom = parseInt(getComputedStyle(menuEl).marginBottom, 10); + var marginTop = parseInt(getComputedStyle(menuEl).marginTop, 10); + var viewSpaceAbove = containerTop - marginTop; + var viewSpaceBelow = viewHeight - menuTop; + var scrollSpaceAbove = viewSpaceAbove + scrollTop; + var scrollSpaceBelow = scrollHeight - scrollTop - menuTop; + var scrollDown = menuBottom - viewHeight + scrollTop + marginBottom; + var scrollUp = scrollTop + menuTop - marginTop; + var scrollDuration = 160; + switch (placement) { + case 'auto': + case 'bottom': + // 1: the menu will fit, do nothing + if (viewSpaceBelow >= menuHeight) { + return { + placement: 'bottom', + maxHeight: maxHeight + }; + } // 2: the menu will fit, if scrolled - if (accountForScrollbars && activeScrollLocks < 1) { - var currentPadding = parseInt(this.originalStyles.paddingRight, 10) || 0; - var clientWidth = document.body ? document.body.clientWidth : 0; - var adjustedPadding = window.innerWidth - clientWidth + currentPadding || 0; - Object.keys(LOCK_STYLES).forEach(function (key) { - var val = LOCK_STYLES[key]; - if (targetStyle) { - targetStyle[key] = val; + if (scrollSpaceBelow >= menuHeight && !isFixedPosition) { + if (shouldScroll) { + animatedScrollTo(scrollParent, scrollDown, scrollDuration); } - }); - - if (targetStyle) { - targetStyle.paddingRight = adjustedPadding + "px"; - } - } // account for touch devices + return { + placement: 'bottom', + maxHeight: maxHeight + }; + } // 3: the menu will fit, if constrained + + + if (!isFixedPosition && scrollSpaceBelow >= minHeight || isFixedPosition && viewSpaceBelow >= minHeight) { + if (shouldScroll) { + animatedScrollTo(scrollParent, scrollDown, scrollDuration); + } // we want to provide as much of the menu as possible to the user, + // so give them whatever is available below rather than the minHeight. + + + var constrainedHeight = isFixedPosition ? viewSpaceBelow - marginBottom : scrollSpaceBelow - marginBottom; + return { + placement: 'bottom', + maxHeight: constrainedHeight + }; + } // 4. Forked beviour when there isn't enough space below + // AUTO: flip the menu, render above + + + if (placement === 'auto' || isFixedPosition) { + // may need to be constrained after flipping + var _constrainedHeight = maxHeight; + var spaceAbove = isFixedPosition ? viewSpaceAbove : scrollSpaceAbove; + + if (spaceAbove >= minHeight) { + _constrainedHeight = Math.min(spaceAbove - marginBottom - spacing.controlHeight, maxHeight); + } + + return { + placement: 'top', + maxHeight: _constrainedHeight + }; + } // BOTTOM: allow browser to increase scrollable area and immediately set scroll - if (target && isTouchDevice()) { - // Mobile Safari ignores { overflow: hidden } declaration on the body. - target.addEventListener('touchmove', preventTouchMove, this.listenerOptions); // Allow scroll on provided target - if (touchScrollTarget) { - touchScrollTarget.addEventListener('touchstart', preventInertiaScroll, this.listenerOptions); - touchScrollTarget.addEventListener('touchmove', allowTouchMove, this.listenerOptions); + if (placement === 'bottom') { + scrollTo(scrollParent, scrollDown); + return { + placement: 'bottom', + maxHeight: maxHeight + }; } - } // increment active scroll locks + break; - activeScrollLocks += 1; - }; + case 'top': + // 1: the menu will fit, do nothing + if (viewSpaceAbove >= menuHeight) { + return { + placement: 'top', + maxHeight: maxHeight + }; + } // 2: the menu will fit, if scrolled - _proto.componentWillUnmount = function componentWillUnmount() { - var _this3 = this; - if (!canUseDOM) return; - var _this$props2 = this.props, - accountForScrollbars = _this$props2.accountForScrollbars, - touchScrollTarget = _this$props2.touchScrollTarget; - var target = document.body; - var targetStyle = target && target.style; // safely decrement active scroll locks + if (scrollSpaceAbove >= menuHeight && !isFixedPosition) { + if (shouldScroll) { + animatedScrollTo(scrollParent, scrollUp, scrollDuration); + } - activeScrollLocks = Math.max(activeScrollLocks - 1, 0); // reapply original body styles, if any + return { + placement: 'top', + maxHeight: maxHeight + }; + } // 3: the menu will fit, if constrained - if (accountForScrollbars && activeScrollLocks < 1) { - STYLE_KEYS.forEach(function (key) { - var val = _this3.originalStyles[key]; - if (targetStyle) { - targetStyle[key] = val; + if (!isFixedPosition && scrollSpaceAbove >= minHeight || isFixedPosition && viewSpaceAbove >= minHeight) { + var _constrainedHeight2 = maxHeight; // we want to provide as much of the menu as possible to the user, + // so give them whatever is available below rather than the minHeight. + + if (!isFixedPosition && scrollSpaceAbove >= minHeight || isFixedPosition && viewSpaceAbove >= minHeight) { + _constrainedHeight2 = isFixedPosition ? viewSpaceAbove - marginTop : scrollSpaceAbove - marginTop; } - }); - } // remove touch listeners + if (shouldScroll) { + animatedScrollTo(scrollParent, scrollUp, scrollDuration); + } - if (target && isTouchDevice()) { - target.removeEventListener('touchmove', preventTouchMove, this.listenerOptions); + return { + placement: 'top', + maxHeight: _constrainedHeight2 + }; + } // 4. not enough space, the browser WILL NOT increase scrollable area when + // absolutely positioned element rendered above the viewport (only below). + // Flip the menu, render below - if (touchScrollTarget) { - touchScrollTarget.removeEventListener('touchstart', preventInertiaScroll, this.listenerOptions); - touchScrollTarget.removeEventListener('touchmove', allowTouchMove, this.listenerOptions); - } - } - }; - _proto.render = function render() { - return null; - }; + return { + placement: 'bottom', + maxHeight: maxHeight + }; - return ScrollLock; -}(__WEBPACK_IMPORTED_MODULE_0_react__["Component"]); + default: + throw new Error("Invalid placement provided \"".concat(placement, "\".")); + } // fulfil contract with flow: implicit return value of undefined -ScrollLock.defaultProps = { - accountForScrollbars: true + + return defaultState; +} // Menu Component +// ------------------------------ + +function alignToControl(placement) { + var placementToCSSProp = { + bottom: 'top', + top: 'bottom' + }; + return placement ? placementToCSSProp[placement] : 'bottom'; +} + +var coercePlacement = function coercePlacement(p) { + return p === 'auto' ? 'bottom' : p; }; -function _inheritsLoose$2(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; } +var menuCSS = function menuCSS(_ref2) { + var _ref3; -var _ref$1 = process.env.NODE_ENV === "production" ? { - name: "1dsbpcp", - styles: "position:fixed;left:0;bottom:0;right:0;top:0;" -} : { - name: "1dsbpcp", - styles: "position:fixed;left:0;bottom:0;right:0;top:0;", - map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbEJsb2NrLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQTZEVSIsImZpbGUiOiJTY3JvbGxCbG9jay5qcyIsInNvdXJjZXNDb250ZW50IjpbIi8vIEBmbG93XG4vKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IFB1cmVDb21wb25lbnQsIHR5cGUgRWxlbWVudCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL2NvcmUnO1xuaW1wb3J0IE5vZGVSZXNvbHZlciBmcm9tICcuL05vZGVSZXNvbHZlcic7XG5pbXBvcnQgU2Nyb2xsTG9jayBmcm9tICcuL1Njcm9sbExvY2svaW5kZXgnO1xuXG50eXBlIFByb3BzID0ge1xuICBjaGlsZHJlbjogRWxlbWVudDwqPixcbiAgaXNFbmFibGVkOiBib29sZWFuLFxufTtcbnR5cGUgU3RhdGUgPSB7XG4gIHRvdWNoU2Nyb2xsVGFyZ2V0OiBIVE1MRWxlbWVudCB8IG51bGwsXG59O1xuXG4vLyBOT1RFOlxuLy8gV2Ugc2hvdWxkbid0IG5lZWQgdGhpcyBhZnRlciB1cGRhdGluZyB0byBSZWFjdCB2MTYuMy4wLCB3aGljaCBpbnRyb2R1Y2VzOlxuLy8gLSBjcmVhdGVSZWYoKSBodHRwczovL3JlYWN0anMub3JnL2RvY3MvcmVhY3QtYXBpLmh0bWwjcmVhY3RjcmVhdGVyZWZcbi8vIC0gZm9yd2FyZFJlZigpIGh0dHBzOi8vcmVhY3Rqcy5vcmcvZG9jcy9yZWFjdC1hcGkuaHRtbCNyZWFjdGZvcndhcmRyZWZcblxuZXhwb3J0IGRlZmF1bHQgY2xhc3MgU2Nyb2xsQmxvY2sgZXh0ZW5kcyBQdXJlQ29tcG9uZW50PFByb3BzLCBTdGF0ZT4ge1xuICBzdGF0ZSA9IHsgdG91Y2hTY3JvbGxUYXJnZXQ6IG51bGwgfTtcblxuICAvLyBtdXN0IGJlIGluIHN0YXRlIHRvIHRyaWdnZXIgYSByZS1yZW5kZXIsIG9ubHkgcnVucyBvbmNlIHBlciBpbnN0YW5jZVxuICBnZXRTY3JvbGxUYXJnZXQgPSAocmVmOiBIVE1MRWxlbWVudCkgPT4ge1xuICAgIGlmIChyZWYgPT09IHRoaXMuc3RhdGUudG91Y2hTY3JvbGxUYXJnZXQpIHJldHVybjtcbiAgICB0aGlzLnNldFN0YXRlKHsgdG91Y2hTY3JvbGxUYXJnZXQ6IHJlZiB9KTtcbiAgfTtcblxuICAvLyB0aGlzIHdpbGwgY2xvc2UgdGhlIG1lbnUgd2hlbiBhIHVzZXIgY2xpY2tzIG91dHNpZGVcbiAgYmx1clNlbGVjdElucHV0ID0gKCkgPT4ge1xuICAgIGlmIChkb2N1bWVudC5hY3RpdmVFbGVtZW50KSB7XG4gICAgICBkb2N1bWVudC5hY3RpdmVFbGVtZW50LmJsdXIoKTtcbiAgICB9XG4gIH07XG5cbiAgcmVuZGVyKCkge1xuICAgIGNvbnN0IHsgY2hpbGRyZW4sIGlzRW5hYmxlZCB9ID0gdGhpcy5wcm9wcztcbiAgICBjb25zdCB7IHRvdWNoU2Nyb2xsVGFyZ2V0IH0gPSB0aGlzLnN0YXRlO1xuXG4gICAgLy8gYmFpbCBlYXJseSBpZiBub3QgZW5hYmxlZFxuICAgIGlmICghaXNFbmFibGVkKSByZXR1cm4gY2hpbGRyZW47XG5cbiAgICAvKlxuICAgICAqIERpdlxuICAgICAqIC0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLVxuICAgICAqIGJsb2NrcyBzY3JvbGxpbmcgb24gbm9uLWJvZHkgZWxlbWVudHMgYmVoaW5kIHRoZSBtZW51XG5cbiAgICAgKiBOb2RlUmVzb2x2ZXJcbiAgICAgKiAtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS1cbiAgICAgKiB3ZSBuZWVkIGEgcmVmZXJlbmNlIHRvIHRoZSBzY3JvbGxhYmxlIGVsZW1lbnQgdG8gXCJ1bmxvY2tcIiBzY3JvbGwgb25cbiAgICAgKiBtb2JpbGUgZGV2aWNlc1xuXG4gICAgICogU2Nyb2xsTG9ja1xuICAgICAqIC0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLVxuICAgICAqIGFjdHVhbGx5IGRvZXMgdGhlIHNjcm9sbCBsb2NraW5nXG4gICAgICovXG4gICAgcmV0dXJuIChcbiAgICAgIDxkaXY+XG4gICAgICAgIDxkaXZcbiAgICAgICAgICBvbkNsaWNrPXt0aGlzLmJsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgICA8Tm9kZVJlc29sdmVyIGlubmVyUmVmPXt0aGlzLmdldFNjcm9sbFRhcmdldH0+e2NoaWxkcmVufTwvTm9kZVJlc29sdmVyPlxuICAgICAgICB7dG91Y2hTY3JvbGxUYXJnZXQgPyAoXG4gICAgICAgICAgPFNjcm9sbExvY2sgdG91Y2hTY3JvbGxUYXJnZXQ9e3RvdWNoU2Nyb2xsVGFyZ2V0fSAvPlxuICAgICAgICApIDogbnVsbH1cbiAgICAgIDwvZGl2PlxuICAgICk7XG4gIH1cbn1cbiJdfQ== */" + var placement = _ref2.placement, + _ref2$theme = _ref2.theme, + borderRadius = _ref2$theme.borderRadius, + spacing = _ref2$theme.spacing, + colors = _ref2$theme.colors; + return _ref3 = { + label: 'menu' + }, Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(_ref3, alignToControl(placement), '100%'), Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(_ref3, "backgroundColor", colors.neutral0), Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(_ref3, "borderRadius", borderRadius), Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(_ref3, "boxShadow", '0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)'), Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(_ref3, "marginBottom", spacing.menuGutter), Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(_ref3, "marginTop", spacing.menuGutter), Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(_ref3, "position", 'absolute'), Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(_ref3, "width", '100%'), Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(_ref3, "zIndex", 1), _ref3; }; +var PortalPlacementContext = /*#__PURE__*/Object(__WEBPACK_IMPORTED_MODULE_8_react__["createContext"])({ + getPortalPlacement: null +}); // NOTE: internal only -// NOTE: -// We shouldn't need this after updating to React v16.3.0, which introduces: -// - createRef() https://reactjs.org/docs/react-api.html#reactcreateref -// - forwardRef() https://reactjs.org/docs/react-api.html#reactforwardref -var ScrollBlock = -/*#__PURE__*/ -function (_PureComponent) { - _inheritsLoose$2(ScrollBlock, _PureComponent); +var MenuPlacer = /*#__PURE__*/function (_Component) { + Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_inherits__["a" /* default */])(MenuPlacer, _Component); - function ScrollBlock() { + var _super = _createSuper(MenuPlacer); + + function MenuPlacer() { var _this; + Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_classCallCheck__["a" /* default */])(this, MenuPlacer); + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { args[_key] = arguments[_key]; } - _this = _PureComponent.call.apply(_PureComponent, [this].concat(args)) || this; + _this = _super.call.apply(_super, [this].concat(args)); _this.state = { - touchScrollTarget: null + maxHeight: _this.props.maxMenuHeight, + placement: null }; - _this.getScrollTarget = function (ref) { - if (ref === _this.state.touchScrollTarget) return; + _this.getPlacement = function (ref) { + var _this$props = _this.props, + minMenuHeight = _this$props.minMenuHeight, + maxMenuHeight = _this$props.maxMenuHeight, + menuPlacement = _this$props.menuPlacement, + menuPosition = _this$props.menuPosition, + menuShouldScrollIntoView = _this$props.menuShouldScrollIntoView, + theme = _this$props.theme; + if (!ref) return; // DO NOT scroll if position is fixed - _this.setState({ - touchScrollTarget: ref + var isFixedPosition = menuPosition === 'fixed'; + var shouldScroll = menuShouldScrollIntoView && !isFixedPosition; + var state = getMenuPlacement({ + maxHeight: maxMenuHeight, + menuEl: ref, + minHeight: minMenuHeight, + placement: menuPlacement, + shouldScroll: shouldScroll, + isFixedPosition: isFixedPosition, + theme: theme }); + var getPortalPlacement = _this.context.getPortalPlacement; + if (getPortalPlacement) getPortalPlacement(state); + + _this.setState(state); }; - _this.blurSelectInput = function () { - if (document.activeElement) { - document.activeElement.blur(); - } + _this.getUpdatedProps = function () { + var menuPlacement = _this.props.menuPlacement; + var placement = _this.state.placement || coercePlacement(menuPlacement); + return _objectSpread(_objectSpread({}, _this.props), {}, { + placement: placement, + maxHeight: _this.state.maxHeight + }); }; return _this; } - var _proto = ScrollBlock.prototype; + Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_createClass__["a" /* default */])(MenuPlacer, [{ + key: "render", + value: function render() { + var children = this.props.children; + return children({ + ref: this.getPlacement, + placerProps: this.getUpdatedProps() + }); + } + }]); - _proto.render = function render() { - var _this$props = this.props, - children = _this$props.children, - isEnabled = _this$props.isEnabled; - var touchScrollTarget = this.state.touchScrollTarget; // bail early if not enabled + return MenuPlacer; +}(__WEBPACK_IMPORTED_MODULE_8_react__["Component"]); +MenuPlacer.contextType = PortalPlacementContext; - if (!isEnabled) return children; - /* - * Div - * ------------------------------ - * blocks scrolling on non-body elements behind the menu - * NodeResolver - * ------------------------------ - * we need a reference to the scrollable element to "unlock" scroll on - * mobile devices - * ScrollLock - * ------------------------------ - * actually does the scroll locking - */ +var Menu = function Menu(props) { + var children = props.children, + className = props.className, + cx = props.cx, + getStyles = props.getStyles, + innerRef = props.innerRef, + innerProps = props.innerProps; + return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({ + css: getStyles('menu', props), + className: cx({ + menu: true + }, className) + }, innerProps, { + ref: innerRef + }), children); +}; +// Menu List +// ============================== + +var menuListCSS = function menuListCSS(_ref4) { + var maxHeight = _ref4.maxHeight, + baseUnit = _ref4.theme.spacing.baseUnit; + return { + maxHeight: maxHeight, + overflowY: 'auto', + paddingBottom: baseUnit, + paddingTop: baseUnit, + position: 'relative', + // required for offset[Height, Top] > keyboard scroll + WebkitOverflowScrolling: 'touch' + }; +}; +var MenuList = function MenuList(props) { + var children = props.children, + className = props.className, + cx = props.cx, + getStyles = props.getStyles, + isMulti = props.isMulti, + innerRef = props.innerRef, + innerProps = props.innerProps; + return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({ + css: getStyles('menuList', props), + className: cx({ + 'menu-list': true, + 'menu-list--is-multi': isMulti + }, className), + ref: innerRef + }, innerProps), children); +}; // ============================== +// Menu Notices +// ============================== - return __WEBPACK_IMPORTED_MODULE_2__emotion_core__["c" /* jsx */]("div", null, __WEBPACK_IMPORTED_MODULE_2__emotion_core__["c" /* jsx */]("div", { - onClick: this.blurSelectInput, - css: _ref$1 - }), __WEBPACK_IMPORTED_MODULE_2__emotion_core__["c" /* jsx */](NodeResolver, { - innerRef: this.getScrollTarget - }, children), touchScrollTarget ? __WEBPACK_IMPORTED_MODULE_2__emotion_core__["c" /* jsx */](ScrollLock, { - touchScrollTarget: touchScrollTarget - }) : null); +var noticeCSS = function noticeCSS(_ref5) { + var _ref5$theme = _ref5.theme, + baseUnit = _ref5$theme.spacing.baseUnit, + colors = _ref5$theme.colors; + return { + color: colors.neutral40, + padding: "".concat(baseUnit * 2, "px ").concat(baseUnit * 3, "px"), + textAlign: 'center' }; +}; - return ScrollBlock; -}(__WEBPACK_IMPORTED_MODULE_0_react__["PureComponent"]); +var noOptionsMessageCSS = noticeCSS; +var loadingMessageCSS = noticeCSS; +var NoOptionsMessage = function NoOptionsMessage(props) { + var children = props.children, + className = props.className, + cx = props.cx, + getStyles = props.getStyles, + innerProps = props.innerProps; + return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({ + css: getStyles('noOptionsMessage', props), + className: cx({ + 'menu-notice': true, + 'menu-notice--no-options': true + }, className) + }, innerProps), children); +}; +NoOptionsMessage.defaultProps = { + children: 'No options' +}; +var LoadingMessage = function LoadingMessage(props) { + var children = props.children, + className = props.className, + cx = props.cx, + getStyles = props.getStyles, + innerProps = props.innerProps; + return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({ + css: getStyles('loadingMessage', props), + className: cx({ + 'menu-notice': true, + 'menu-notice--loading': true + }, className) + }, innerProps), children); +}; +LoadingMessage.defaultProps = { + children: 'Loading...' +}; // ============================== +// Menu Portal +// ============================== -function _objectWithoutPropertiesLoose$1(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } +var menuPortalCSS = function menuPortalCSS(_ref6) { + var rect = _ref6.rect, + offset = _ref6.offset, + position = _ref6.position; + return { + left: rect.left, + position: position, + top: offset, + width: rect.width, + zIndex: 1 + }; +}; +var MenuPortal = /*#__PURE__*/function (_Component2) { + Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_inherits__["a" /* default */])(MenuPortal, _Component2); -function _inheritsLoose$3(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; } + var _super2 = _createSuper(MenuPortal); -var ScrollCaptor = -/*#__PURE__*/ -function (_Component) { - _inheritsLoose$3(ScrollCaptor, _Component); + function MenuPortal() { + var _this2; - function ScrollCaptor() { - var _this; + Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_classCallCheck__["a" /* default */])(this, MenuPortal); - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; + for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { + args[_key2] = arguments[_key2]; } - _this = _Component.call.apply(_Component, [this].concat(args)) || this; - _this.isBottom = false; - _this.isTop = false; - _this.scrollTarget = void 0; - _this.touchStart = void 0; - - _this.cancelScroll = function (event) { - event.preventDefault(); - event.stopPropagation(); + _this2 = _super2.call.apply(_super2, [this].concat(args)); + _this2.state = { + placement: null }; - _this.handleEventDelta = function (event, delta) { - var _this$props = _this.props, - onBottomArrive = _this$props.onBottomArrive, - onBottomLeave = _this$props.onBottomLeave, - onTopArrive = _this$props.onTopArrive, - onTopLeave = _this$props.onTopLeave; - var _this$scrollTarget = _this.scrollTarget, - scrollTop = _this$scrollTarget.scrollTop, - scrollHeight = _this$scrollTarget.scrollHeight, - clientHeight = _this$scrollTarget.clientHeight; - var target = _this.scrollTarget; - var isDeltaPositive = delta > 0; - var availableScroll = scrollHeight - clientHeight - scrollTop; - var shouldCancelScroll = false; // reset bottom/top flags - - if (availableScroll > delta && _this.isBottom) { - if (onBottomLeave) onBottomLeave(event); - _this.isBottom = false; - } - - if (isDeltaPositive && _this.isTop) { - if (onTopLeave) onTopLeave(event); - _this.isTop = false; - } // bottom limit - - - if (isDeltaPositive && delta > availableScroll) { - if (onBottomArrive && !_this.isBottom) { - onBottomArrive(event); - } - - target.scrollTop = scrollHeight; - shouldCancelScroll = true; - _this.isBottom = true; // top limit - } else if (!isDeltaPositive && -delta > scrollTop) { - if (onTopArrive && !_this.isTop) { - onTopArrive(event); - } - - target.scrollTop = 0; - shouldCancelScroll = true; - _this.isTop = true; - } // cancel scroll - + _this2.getPortalPlacement = function (_ref7) { + var placement = _ref7.placement; + var initialPlacement = coercePlacement(_this2.props.menuPlacement); // avoid re-renders if the placement has not changed - if (shouldCancelScroll) { - _this.cancelScroll(event); + if (placement !== initialPlacement) { + _this2.setState({ + placement: placement + }); } }; - _this.onWheel = function (event) { - _this.handleEventDelta(event, event.deltaY); - }; - - _this.onTouchStart = function (event) { - // set touch start so we can calculate touchmove delta - _this.touchStart = event.changedTouches[0].clientY; - }; - - _this.onTouchMove = function (event) { - var deltaY = _this.touchStart - event.changedTouches[0].clientY; + return _this2; + } - _this.handleEventDelta(event, deltaY); - }; + Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_createClass__["a" /* default */])(MenuPortal, [{ + key: "render", + value: function render() { + var _this$props2 = this.props, + appendTo = _this$props2.appendTo, + children = _this$props2.children, + controlElement = _this$props2.controlElement, + menuPlacement = _this$props2.menuPlacement, + position = _this$props2.menuPosition, + getStyles = _this$props2.getStyles; + var isFixed = position === 'fixed'; // bail early if required elements aren't present + + if (!appendTo && !isFixed || !controlElement) { + return null; + } - _this.getScrollTarget = function (ref) { - _this.scrollTarget = ref; - }; + var placement = this.state.placement || coercePlacement(menuPlacement); + var rect = getBoundingClientObj(controlElement); + var scrollDistance = isFixed ? 0 : window.pageYOffset; + var offset = rect[placement] + scrollDistance; + var state = { + offset: offset, + position: position, + rect: rect + }; // same wrapper element whether fixed or portalled - return _this; - } + var menuWrapper = Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", { + css: getStyles('menuPortal', state) + }, children); + return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])(PortalPlacementContext.Provider, { + value: { + getPortalPlacement: this.getPortalPlacement + } + }, appendTo ? /*#__PURE__*/Object(__WEBPACK_IMPORTED_MODULE_10_react_dom__["createPortal"])(menuWrapper, appendTo) : menuWrapper); + } + }]); - var _proto = ScrollCaptor.prototype; + return MenuPortal; +}(__WEBPACK_IMPORTED_MODULE_8_react__["Component"]); - _proto.componentDidMount = function componentDidMount() { - this.startListening(this.scrollTarget); - }; +var isArray = Array.isArray; +var keyList = Object.keys; +var hasProp = Object.prototype.hasOwnProperty; - _proto.componentWillUnmount = function componentWillUnmount() { - this.stopListening(this.scrollTarget); - }; +function equal(a, b) { + // fast-deep-equal index.js 2.0.1 + if (a === b) return true; - _proto.startListening = function startListening(el) { - // bail early if no element is available to attach to - if (!el) return; // all the if statements are to appease Flow ๐Ÿ˜ข + if (a && b && Object(__WEBPACK_IMPORTED_MODULE_11__babel_runtime_helpers_esm_typeof__["a" /* default */])(a) == 'object' && Object(__WEBPACK_IMPORTED_MODULE_11__babel_runtime_helpers_esm_typeof__["a" /* default */])(b) == 'object') { + var arrA = isArray(a), + arrB = isArray(b), + i, + length, + key; - if (typeof el.addEventListener === 'function') { - el.addEventListener('wheel', this.onWheel, false); - } + if (arrA && arrB) { + length = a.length; + if (length != b.length) return false; - if (typeof el.addEventListener === 'function') { - el.addEventListener('touchstart', this.onTouchStart, false); - } + for (i = length; i-- !== 0;) { + if (!equal(a[i], b[i])) return false; + } - if (typeof el.addEventListener === 'function') { - el.addEventListener('touchmove', this.onTouchMove, false); + return true; } - }; - _proto.stopListening = function stopListening(el) { - // all the if statements are to appease Flow ๐Ÿ˜ข - if (typeof el.removeEventListener === 'function') { - el.removeEventListener('wheel', this.onWheel, false); - } + if (arrA != arrB) return false; + var dateA = a instanceof Date, + dateB = b instanceof Date; + if (dateA != dateB) return false; + if (dateA && dateB) return a.getTime() == b.getTime(); + var regexpA = a instanceof RegExp, + regexpB = b instanceof RegExp; + if (regexpA != regexpB) return false; + if (regexpA && regexpB) return a.toString() == b.toString(); + var keys = keyList(a); + length = keys.length; - if (typeof el.removeEventListener === 'function') { - el.removeEventListener('touchstart', this.onTouchStart, false); + if (length !== keyList(b).length) { + return false; } - if (typeof el.removeEventListener === 'function') { - el.removeEventListener('touchmove', this.onTouchMove, false); - } - }; + for (i = length; i-- !== 0;) { + if (!hasProp.call(b, keys[i])) return false; + } // end fast-deep-equal + // Custom handling for React - _proto.render = function render() { - return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(NodeResolver, { - innerRef: this.getScrollTarget - }, this.props.children); - }; - return ScrollCaptor; -}(__WEBPACK_IMPORTED_MODULE_0_react__["Component"]); + for (i = length; i-- !== 0;) { + key = keys[i]; -function ScrollCaptorSwitch(_ref) { - var _ref$isEnabled = _ref.isEnabled, - isEnabled = _ref$isEnabled === void 0 ? true : _ref$isEnabled, - props = _objectWithoutPropertiesLoose$1(_ref, ["isEnabled"]); + if (key === '_owner' && a.$$typeof) { + // React-specific: avoid traversing React elements' _owner. + // _owner contains circular references + // and is not needed when comparing the actual elements (and not their owners) + // .$$typeof and ._store on just reasonable markers of a react element + continue; + } else { + // all other properties should be traversed as usual + if (!equal(a[key], b[key])) return false; + } + } // fast-deep-equal index.js 2.0.1 - return isEnabled ? __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(ScrollCaptor, props) : props.children; -} -var instructionsAriaMessage = function instructionsAriaMessage(event, context) { - if (context === void 0) { - context = {}; + return true; } - var _context = context, - isSearchable = _context.isSearchable, - isMulti = _context.isMulti, - label = _context.label, - isDisabled = _context.isDisabled; - - switch (event) { - case 'menu': - return "Use Up and Down to choose options" + (isDisabled ? '' : ', press Enter to select the currently focused option') + ", press Escape to exit the menu, press Tab to select the option and exit the menu."; + return a !== a && b !== b; +} // end fast-deep-equal - case 'input': - return (label ? label : 'Select') + " is focused " + (isSearchable ? ',type to refine list' : '') + ", press Down to open the menu, " + (isMulti ? ' press left to focus selected values' : ''); - case 'value': - return 'Use left and right to toggle between focused values, press Backspace to remove the currently focused value'; - } -}; -var valueEventAriaMessage = function valueEventAriaMessage(event, context) { - var value = context.value, - isDisabled = context.isDisabled; - if (!value) return; +function exportedEqual(a, b) { + try { + return equal(a, b); + } catch (error) { + if (error.message && error.message.match(/stack|recursion/i)) { + // warn on circular references, don't crash + // browsers give this different errors name and messages: + // chrome/safari: "RangeError", "Maximum call stack size exceeded" + // firefox: "InternalError", too much recursion" + // edge: "Error", "Out of stack space" + console.warn('Warning: react-fast-compare does not handle circular references.', error.name, error.message); + return false; + } // some other error. we should definitely know about these - switch (event) { - case 'deselect-option': - case 'pop-value': - case 'remove-value': - return "option " + value + ", deselected."; - case 'select-option': - return isDisabled ? "option " + value + " is disabled. Select another option." : "option " + value + ", selected."; + throw error; } -}; -var valueFocusAriaMessage = function valueFocusAriaMessage(_ref) { - var focusedValue = _ref.focusedValue, - getOptionLabel = _ref.getOptionLabel, - selectValue = _ref.selectValue; - return "value " + getOptionLabel(focusedValue) + " focused, " + (selectValue.indexOf(focusedValue) + 1) + " of " + selectValue.length + "."; -}; -var optionFocusAriaMessage = function optionFocusAriaMessage(_ref2) { - var focusedOption = _ref2.focusedOption, - getOptionLabel = _ref2.getOptionLabel, - options = _ref2.options; - return "option " + getOptionLabel(focusedOption) + " focused" + (focusedOption.isDisabled ? ' disabled' : '') + ", " + (options.indexOf(focusedOption) + 1) + " of " + options.length + "."; -}; -var resultsAriaMessage = function resultsAriaMessage(_ref3) { - var inputValue = _ref3.inputValue, - screenReaderMessage = _ref3.screenReaderMessage; - return "" + screenReaderMessage + (inputValue ? ' for search term ' + inputValue : '') + "."; -}; +} -var formatGroupLabel = function formatGroupLabel(group) { - return group.label; -}; -var getOptionLabel = function getOptionLabel(option) { - return option.label; -}; -var getOptionValue = function getOptionValue(option) { - return option.value; -}; -var isOptionDisabled = function isOptionDisabled(option) { - return !!option.isDisabled; +var containerCSS = function containerCSS(_ref) { + var isDisabled = _ref.isDisabled, + isRtl = _ref.isRtl; + return { + label: 'container', + direction: isRtl ? 'rtl' : null, + pointerEvents: isDisabled ? 'none' : null, + // cancel mouse events when disabled + position: 'relative' + }; }; +var SelectContainer = function SelectContainer(props) { + var children = props.children, + className = props.className, + cx = props.cx, + getStyles = props.getStyles, + innerProps = props.innerProps, + isDisabled = props.isDisabled, + isRtl = props.isRtl; + return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({ + css: getStyles('container', props), + className: cx({ + '--is-disabled': isDisabled, + '--is-rtl': isRtl + }, className) + }, innerProps), children); +}; // ============================== +// Value Container +// ============================== -function _extends$3() { _extends$3 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$3.apply(this, arguments); } -var defaultStyles = { - clearIndicator: __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["d" /* c */], - container: __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["b" /* a */], - control: __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["c" /* b */], - dropdownIndicator: __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["e" /* d */], - group: __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["h" /* g */], - groupHeading: __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["f" /* e */], - indicatorsContainer: __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["j" /* i */], - indicatorSeparator: __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["g" /* f */], - input: __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["i" /* h */], - loadingIndicator: __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["m" /* l */], - loadingMessage: __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["k" /* j */], - menu: __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["n" /* m */], - menuList: __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["l" /* k */], - menuPortal: __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["o" /* n */], - multiValue: __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["p" /* o */], - multiValueLabel: __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["q" /* p */], - multiValueRemove: __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["r" /* q */], - noOptionsMessage: __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["s" /* r */], - option: __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["t" /* s */], - placeholder: __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["u" /* t */], - singleValue: __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["v" /* u */], - valueContainer: __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["w" /* v */] -}; // Merge Utility -// Allows consumers to extend a base Select with additional styles +var valueContainerCSS = function valueContainerCSS(_ref2) { + var spacing = _ref2.theme.spacing; + return { + alignItems: 'center', + display: 'flex', + flex: 1, + flexWrap: 'wrap', + padding: "".concat(spacing.baseUnit / 2, "px ").concat(spacing.baseUnit * 2, "px"), + WebkitOverflowScrolling: 'touch', + position: 'relative', + overflow: 'hidden' + }; +}; +var ValueContainer = function ValueContainer(props) { + var children = props.children, + className = props.className, + cx = props.cx, + isMulti = props.isMulti, + getStyles = props.getStyles, + hasValue = props.hasValue; + return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", { + css: getStyles('valueContainer', props), + className: cx({ + 'value-container': true, + 'value-container--is-multi': isMulti, + 'value-container--has-value': hasValue + }, className) + }, children); +}; // ============================== +// Indicator Container +// ============================== -function mergeStyles(source, target) { - if (target === void 0) { - target = {}; - } +var indicatorsContainerCSS = function indicatorsContainerCSS() { + return { + alignItems: 'center', + alignSelf: 'stretch', + display: 'flex', + flexShrink: 0 + }; +}; +var IndicatorsContainer = function IndicatorsContainer(props) { + var children = props.children, + className = props.className, + cx = props.cx, + getStyles = props.getStyles; + return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", { + css: getStyles('indicatorsContainer', props), + className: cx({ + indicators: true + }, className) + }, children); +}; - // initialize with source styles - var styles = _extends$3({}, source); // massage in target styles +function _templateObject() { + var data = Object(__WEBPACK_IMPORTED_MODULE_13__babel_runtime_helpers_esm_taggedTemplateLiteral__["a" /* default */])(["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"]); + _templateObject = function _templateObject() { + return data; + }; - Object.keys(target).forEach(function (key) { - if (source[key]) { - styles[key] = function (rsCss, props) { - return target[key](source[key](rsCss, props), props); - }; - } else { - styles[key] = target[key]; - } - }); - return styles; + return data; } -var colors = { - primary: '#2684FF', - primary75: '#4C9AFF', - primary50: '#B2D4FF', - primary25: '#DEEBFF', - danger: '#DE350B', - dangerLight: '#FFBDAD', - neutral0: 'hsl(0, 0%, 100%)', - neutral5: 'hsl(0, 0%, 95%)', - neutral10: 'hsl(0, 0%, 90%)', - neutral20: 'hsl(0, 0%, 80%)', - neutral30: 'hsl(0, 0%, 70%)', - neutral40: 'hsl(0, 0%, 60%)', - neutral50: 'hsl(0, 0%, 50%)', - neutral60: 'hsl(0, 0%, 40%)', - neutral70: 'hsl(0, 0%, 30%)', - neutral80: 'hsl(0, 0%, 20%)', - neutral90: 'hsl(0, 0%, 10%)' -}; -var borderRadius = 4; // Used to calculate consistent margin/padding on elements +function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } -var baseUnit = 4; // The minimum height of the control +var _ref2 = process.env.NODE_ENV === "production" ? { + name: "19bqh2r", + styles: "display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;" +} : { + name: "19bqh2r", + styles: "display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;", + map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBa0JJIiwiZmlsZSI6ImluZGljYXRvcnMuanMiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBAZmxvd1xuLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyB0eXBlIE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL2NvcmUnO1xuXG5pbXBvcnQgdHlwZSB7IENvbW1vblByb3BzLCBUaGVtZSB9IGZyb20gJy4uL3R5cGVzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHsgc2l6ZSwgLi4ucHJvcHMgfTogeyBzaXplOiBudW1iZXIgfSkgPT4gKFxuICA8c3ZnXG4gICAgaGVpZ2h0PXtzaXplfVxuICAgIHdpZHRoPXtzaXplfVxuICAgIHZpZXdCb3g9XCIwIDAgMjAgMjBcIlxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgZm9jdXNhYmxlPVwiZmFsc2VcIlxuICAgIGNzcz17e1xuICAgICAgZGlzcGxheTogJ2lubGluZS1ibG9jaycsXG4gICAgICBmaWxsOiAnY3VycmVudENvbG9yJyxcbiAgICAgIGxpbmVIZWlnaHQ6IDEsXG4gICAgICBzdHJva2U6ICdjdXJyZW50Q29sb3InLFxuICAgICAgc3Ryb2tlV2lkdGg6IDAsXG4gICAgfX1cbiAgICB7Li4ucHJvcHN9XG4gIC8+XG4pO1xuXG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBhbnkpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTE0LjM0OCAxNC44NDljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDBsLTIuNjUxLTMuMDMwLTIuNjUxIDMuMDI5Yy0wLjQ2OSAwLjQ2OS0xLjIyOSAwLjQ2OS0xLjY5NyAwLTAuNDY5LTAuNDY5LTAuNDY5LTEuMjI5IDAtMS42OTdsMi43NTgtMy4xNS0yLjc1OS0zLjE1MmMtMC40NjktMC40NjktMC40NjktMS4yMjggMC0xLjY5N3MxLjIyOC0wLjQ2OSAxLjY5NyAwbDIuNjUyIDMuMDMxIDIuNjUxLTMuMDMxYzAuNDY5LTAuNDY5IDEuMjI4LTAuNDY5IDEuNjk3IDBzMC40NjkgMS4yMjkgMCAxLjY5N2wtMi43NTggMy4xNTIgMi43NTggMy4xNWMwLjQ2OSAwLjQ2OSAwLjQ2OSAxLjIyOSAwIDEuNjk4elwiIC8+XG4gIDwvU3ZnPlxuKTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogYW55KSA9PiAoXG4gIDxTdmcgc2l6ZT17MjB9IHsuLi5wcm9wc30+XG4gICAgPHBhdGggZD1cIk00LjUxNiA3LjU0OGMwLjQzNi0wLjQ0NiAxLjA0My0wLjQ4MSAxLjU3NiAwbDMuOTA4IDMuNzQ3IDMuOTA4LTMuNzQ3YzAuNTMzLTAuNDgxIDEuMTQxLTAuNDQ2IDEuNTc0IDAgMC40MzYgMC40NDUgMC40MDggMS4xOTcgMCAxLjYxNS0wLjQwNiAwLjQxOC00LjY5NSA0LjUwMi00LjY5NSA0LjUwMi0wLjIxNyAwLjIyMy0wLjUwMiAwLjMzNS0wLjc4NyAwLjMzNXMtMC41Ny0wLjExMi0wLjc4OS0wLjMzNWMwIDAtNC4yODctNC4wODQtNC42OTUtNC41MDJzLTAuNDM2LTEuMTcgMC0xLjYxNXpcIiAvPlxuICA8L1N2Zz5cbik7XG5cbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuLy8gRHJvcGRvd24gJiBDbGVhciBCdXR0b25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuZXhwb3J0IHR5cGUgSW5kaWNhdG9yUHJvcHMgPSBDb21tb25Qcm9wcyAmIHtcbiAgLyoqIFRoZSBjaGlsZHJlbiB0byBiZSByZW5kZXJlZCBpbnNpZGUgdGhlIGluZGljYXRvci4gKi9cbiAgY2hpbGRyZW46IE5vZGUsXG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogYW55LFxuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuLFxuICAvKiogV2hldGhlciB0aGUgdGV4dCBpcyByaWdodCB0byBsZWZ0ICovXG4gIGlzUnRsOiBib29sZWFuLFxufTtcblxuY29uc3QgYmFzZUNTUyA9ICh7XG4gIGlzRm9jdXNlZCxcbiAgdGhlbWU6IHtcbiAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgY29sb3JzLFxuICB9LFxufTogSW5kaWNhdG9yUHJvcHMpID0+ICh7XG4gIGxhYmVsOiAnaW5kaWNhdG9yQ29udGFpbmVyJyxcbiAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcblxuICAnOmhvdmVyJzoge1xuICAgIGNvbG9yOiBpc0ZvY3VzZWQgPyBjb2xvcnMubmV1dHJhbDgwIDogY29sb3JzLm5ldXRyYWw0MCxcbiAgfSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gKHByb3BzOiBJbmRpY2F0b3JQcm9wcykgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBjbGFzc05hbWUsIGN4LCBnZXRTdHlsZXMsIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgY3NzPXtnZXRTdHlsZXMoJ2Ryb3Bkb3duSW5kaWNhdG9yJywgcHJvcHMpfVxuICAgICAgY2xhc3NOYW1lPXtjeChcbiAgICAgICAge1xuICAgICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgICAnZHJvcGRvd24taW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfSxcbiAgICAgICAgY2xhc3NOYW1lXG4gICAgICApfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gKHByb3BzOiBJbmRpY2F0b3JQcm9wcykgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBjbGFzc05hbWUsIGN4LCBnZXRTdHlsZXMsIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgY3NzPXtnZXRTdHlsZXMoJ2NsZWFySW5kaWNhdG9yJywgcHJvcHMpfVxuICAgICAgY2xhc3NOYW1lPXtjeChcbiAgICAgICAge1xuICAgICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgICAnY2xlYXItaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfSxcbiAgICAgICAgY2xhc3NOYW1lXG4gICAgICApfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG50eXBlIFNlcGFyYXRvclN0YXRlID0geyBpc0Rpc2FibGVkOiBib29sZWFuIH07XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSAoe1xuICBpc0Rpc2FibGVkLFxuICB0aGVtZToge1xuICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICBjb2xvcnMsXG4gIH0sXG59OiBDb21tb25Qcm9wcyAmIFNlcGFyYXRvclN0YXRlKSA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvclNlcGFyYXRvcicsXG4gIGFsaWduU2VsZjogJ3N0cmV0Y2gnLFxuICBiYWNrZ3JvdW5kQ29sb3I6IGlzRGlzYWJsZWQgPyBjb2xvcnMubmV1dHJhbDEwIDogY29sb3JzLm5ldXRyYWwyMCxcbiAgbWFyZ2luQm90dG9tOiBiYXNlVW5pdCAqIDIsXG4gIG1hcmdpblRvcDogYmFzZVVuaXQgKiAyLFxuICB3aWR0aDogMSxcbn0pO1xuXG5leHBvcnQgY29uc3QgSW5kaWNhdG9yU2VwYXJhdG9yID0gKHByb3BzOiBJbmRpY2F0b3JQcm9wcykgPT4ge1xuICBjb25zdCB7IGNsYXNzTmFtZSwgY3gsIGdldFN0eWxlcywgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgY3NzPXtnZXRTdHlsZXMoJ2luZGljYXRvclNlcGFyYXRvcicsIHByb3BzKX1cbiAgICAgIGNsYXNzTmFtZT17Y3goeyAnaW5kaWNhdG9yLXNlcGFyYXRvcic6IHRydWUgfSwgY2xhc3NOYW1lKX1cbiAgICAvPlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBMb2FkaW5nXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgbG9hZGluZ0RvdEFuaW1hdGlvbnMgPSBrZXlmcmFtZXNgXG4gIDAlLCA4MCUsIDEwMCUgeyBvcGFjaXR5OiAwOyB9XG4gIDQwJSB7IG9wYWNpdHk6IDE7IH1cbmA7XG5cbmV4cG9ydCBjb25zdCBsb2FkaW5nSW5kaWNhdG9yQ1NTID0gKHtcbiAgaXNGb2N1c2VkLFxuICBzaXplLFxuICB0aGVtZToge1xuICAgIGNvbG9ycyxcbiAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gIH0sXG59OiB7XG4gIGlzRm9jdXNlZDogYm9vbGVhbixcbiAgc2l6ZTogbnVtYmVyLFxuICB0aGVtZTogVGhlbWUsXG59KSA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgcGFkZGluZzogYmFzZVVuaXQgKiAyLFxuICB0cmFuc2l0aW9uOiAnY29sb3IgMTUwbXMnLFxuICBhbGlnblNlbGY6ICdjZW50ZXInLFxuICBmb250U2l6ZTogc2l6ZSxcbiAgbGluZUhlaWdodDogMSxcbiAgbWFyZ2luUmlnaHQ6IHNpemUsXG4gIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gIHZlcnRpY2FsQWxpZ246ICdtaWRkbGUnLFxufSk7XG5cbnR5cGUgRG90UHJvcHMgPSB7IGRlbGF5OiBudW1iZXIsIG9mZnNldDogYm9vbGVhbiB9O1xuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogRG90UHJvcHMpID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGFuaW1hdGlvbjogYCR7bG9hZGluZ0RvdEFuaW1hdGlvbnN9IDFzIGVhc2UtaW4tb3V0ICR7ZGVsYXl9bXMgaW5maW5pdGU7YCxcbiAgICAgIGJhY2tncm91bmRDb2xvcjogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBib3JkZXJSYWRpdXM6ICcxZW0nLFxuICAgICAgZGlzcGxheTogJ2lubGluZS1ibG9jaycsXG4gICAgICBtYXJnaW5MZWZ0OiBvZmZzZXQgPyAnMWVtJyA6IG51bGwsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCB0eXBlIExvYWRpbmdJY29uUHJvcHMgPSB7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogYW55LFxuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuLFxuICAvKiogV2hldGhlciB0aGUgdGV4dCBpcyByaWdodCB0byBsZWZ0ICovXG4gIGlzUnRsOiBib29sZWFuLFxufSAmIENvbW1vblByb3BzICYge1xuICAgIC8qKiBTZXQgc2l6ZSBvZiB0aGUgY29udGFpbmVyLiAqL1xuICAgIHNpemU6IG51bWJlcixcbiAgfTtcbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gKHByb3BzOiBMb2FkaW5nSWNvblByb3BzKSA9PiB7XG4gIGNvbnN0IHsgY2xhc3NOYW1lLCBjeCwgZ2V0U3R5bGVzLCBpbm5lclByb3BzLCBpc1J0bCB9ID0gcHJvcHM7XG5cbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICAgIGNzcz17Z2V0U3R5bGVzKCdsb2FkaW5nSW5kaWNhdG9yJywgcHJvcHMpfVxuICAgICAgY2xhc3NOYW1lPXtjeChcbiAgICAgICAge1xuICAgICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgICAnbG9hZGluZy1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgICB9LFxuICAgICAgICBjbGFzc05hbWVcbiAgICAgICl9XG4gICAgPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezB9IG9mZnNldD17aXNSdGx9IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MTYwfSBvZmZzZXQgLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXszMjB9IG9mZnNldD17IWlzUnRsfSAvPlxuICAgIDwvZGl2PlxuICApO1xufTtcbkxvYWRpbmdJbmRpY2F0b3IuZGVmYXVsdFByb3BzID0geyBzaXplOiA0IH07XG4iXX0= */", + toString: _EMOTION_STRINGIFIED_CSS_ERROR__ +}; -var controlHeight = 38; // The amount of space between the control and menu */ +// ============================== +// Dropdown & Clear Icons +// ============================== +var Svg = function Svg(_ref) { + var size = _ref.size, + props = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(_ref, ["size"]); -var menuGutter = baseUnit * 2; -var spacing = { - baseUnit: baseUnit, - controlHeight: controlHeight, - menuGutter: menuGutter + return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("svg", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({ + height: size, + width: size, + viewBox: "0 0 20 20", + "aria-hidden": "true", + focusable: "false", + css: _ref2 + }, props)); }; -var defaultTheme = { - borderRadius: borderRadius, - colors: colors, - spacing: spacing + +var CrossIcon = function CrossIcon(props) { + return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])(Svg, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({ + size: 20 + }, props), Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("path", { + d: "M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z" + })); }; +var DownChevron = function DownChevron(props) { + return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])(Svg, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({ + size: 20 + }, props), Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("path", { + d: "M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z" + })); +}; // ============================== +// Dropdown & Clear Buttons +// ============================== -function _objectWithoutPropertiesLoose$2(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } +var baseCSS = function baseCSS(_ref3) { + var isFocused = _ref3.isFocused, + _ref3$theme = _ref3.theme, + baseUnit = _ref3$theme.spacing.baseUnit, + colors = _ref3$theme.colors; + return { + label: 'indicatorContainer', + color: isFocused ? colors.neutral60 : colors.neutral20, + display: 'flex', + padding: baseUnit * 2, + transition: 'color 150ms', + ':hover': { + color: isFocused ? colors.neutral80 : colors.neutral40 + } + }; +}; -function _extends$4() { _extends$4 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$4.apply(this, arguments); } +var dropdownIndicatorCSS = baseCSS; +var DropdownIndicator = function DropdownIndicator(props) { + var children = props.children, + className = props.className, + cx = props.cx, + getStyles = props.getStyles, + innerProps = props.innerProps; + return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, innerProps, { + css: getStyles('dropdownIndicator', props), + className: cx({ + indicator: true, + 'dropdown-indicator': true + }, className) + }), children || Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])(DownChevron, null)); +}; +var clearIndicatorCSS = baseCSS; +var ClearIndicator = function ClearIndicator(props) { + var children = props.children, + className = props.className, + cx = props.cx, + getStyles = props.getStyles, + innerProps = props.innerProps; + return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, innerProps, { + css: getStyles('clearIndicator', props), + className: cx({ + indicator: true, + 'clear-indicator': true + }, className) + }), children || Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])(CrossIcon, null)); +}; // ============================== +// Separator +// ============================== -function _inheritsLoose$4(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; } +var indicatorSeparatorCSS = function indicatorSeparatorCSS(_ref4) { + var isDisabled = _ref4.isDisabled, + _ref4$theme = _ref4.theme, + baseUnit = _ref4$theme.spacing.baseUnit, + colors = _ref4$theme.colors; + return { + label: 'indicatorSeparator', + alignSelf: 'stretch', + backgroundColor: isDisabled ? colors.neutral10 : colors.neutral20, + marginBottom: baseUnit * 2, + marginTop: baseUnit * 2, + width: 1 + }; +}; +var IndicatorSeparator = function IndicatorSeparator(props) { + var className = props.className, + cx = props.cx, + getStyles = props.getStyles, + innerProps = props.innerProps; + return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("span", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, innerProps, { + css: getStyles('indicatorSeparator', props), + className: cx({ + 'indicator-separator': true + }, className) + })); +}; // ============================== +// Loading +// ============================== -function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } -var defaultProps = { - backspaceRemovesValue: true, - blurInputOnSelect: __WEBPACK_IMPORTED_MODULE_4__utils_06b0d5a4_browser_esm_js__["i"](), - captureMenuScroll: !__WEBPACK_IMPORTED_MODULE_4__utils_06b0d5a4_browser_esm_js__["i"](), - closeMenuOnSelect: true, - closeMenuOnScroll: false, - components: {}, - controlShouldRenderValue: true, - escapeClearsValue: false, - filterOption: createFilter(), - formatGroupLabel: formatGroupLabel, - getOptionLabel: getOptionLabel, - getOptionValue: getOptionValue, - isDisabled: false, - isLoading: false, - isMulti: false, - isRtl: false, - isSearchable: true, - isOptionDisabled: isOptionDisabled, - loadingMessage: function loadingMessage() { - return 'Loading...'; - }, - maxMenuHeight: 300, - minMenuHeight: 140, - menuIsOpen: false, - menuPlacement: 'bottom', - menuPosition: 'absolute', - menuShouldBlockScroll: false, - menuShouldScrollIntoView: !__WEBPACK_IMPORTED_MODULE_4__utils_06b0d5a4_browser_esm_js__["d"](), - noOptionsMessage: function noOptionsMessage() { - return 'No options'; - }, - openMenuOnFocus: false, - openMenuOnClick: true, - options: [], - pageSize: 5, - placeholder: 'Select...', - screenReaderStatus: function screenReaderStatus(_ref) { - var count = _ref.count; - return count + " result" + (count !== 1 ? 's' : '') + " available"; - }, - styles: {}, - tabIndex: '0', - tabSelectsValue: true +var loadingDotAnimations = Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["d" /* keyframes */])(_templateObject()); +var loadingIndicatorCSS = function loadingIndicatorCSS(_ref5) { + var isFocused = _ref5.isFocused, + size = _ref5.size, + _ref5$theme = _ref5.theme, + colors = _ref5$theme.colors, + baseUnit = _ref5$theme.spacing.baseUnit; + return { + label: 'loadingIndicator', + color: isFocused ? colors.neutral60 : colors.neutral20, + display: 'flex', + padding: baseUnit * 2, + transition: 'color 150ms', + alignSelf: 'center', + fontSize: size, + lineHeight: 1, + marginRight: size, + textAlign: 'center', + verticalAlign: 'middle' + }; }; -var instanceId = 1; -var Select = -/*#__PURE__*/ -function (_Component) { - _inheritsLoose$4(Select, _Component); +var LoadingDot = function LoadingDot(_ref6) { + var delay = _ref6.delay, + offset = _ref6.offset; + return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("span", { + css: /*#__PURE__*/Object(__WEBPACK_IMPORTED_MODULE_12__emotion_css__["a" /* default */])({ + animation: "".concat(loadingDotAnimations, " 1s ease-in-out ").concat(delay, "ms infinite;"), + backgroundColor: 'currentColor', + borderRadius: '1em', + display: 'inline-block', + marginLeft: offset ? '1em' : null, + height: '1em', + verticalAlign: 'top', + width: '1em' + }, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBc0xJIiwiZmlsZSI6ImluZGljYXRvcnMuanMiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBAZmxvd1xuLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyB0eXBlIE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL2NvcmUnO1xuXG5pbXBvcnQgdHlwZSB7IENvbW1vblByb3BzLCBUaGVtZSB9IGZyb20gJy4uL3R5cGVzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHsgc2l6ZSwgLi4ucHJvcHMgfTogeyBzaXplOiBudW1iZXIgfSkgPT4gKFxuICA8c3ZnXG4gICAgaGVpZ2h0PXtzaXplfVxuICAgIHdpZHRoPXtzaXplfVxuICAgIHZpZXdCb3g9XCIwIDAgMjAgMjBcIlxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgZm9jdXNhYmxlPVwiZmFsc2VcIlxuICAgIGNzcz17e1xuICAgICAgZGlzcGxheTogJ2lubGluZS1ibG9jaycsXG4gICAgICBmaWxsOiAnY3VycmVudENvbG9yJyxcbiAgICAgIGxpbmVIZWlnaHQ6IDEsXG4gICAgICBzdHJva2U6ICdjdXJyZW50Q29sb3InLFxuICAgICAgc3Ryb2tlV2lkdGg6IDAsXG4gICAgfX1cbiAgICB7Li4ucHJvcHN9XG4gIC8+XG4pO1xuXG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBhbnkpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTE0LjM0OCAxNC44NDljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDBsLTIuNjUxLTMuMDMwLTIuNjUxIDMuMDI5Yy0wLjQ2OSAwLjQ2OS0xLjIyOSAwLjQ2OS0xLjY5NyAwLTAuNDY5LTAuNDY5LTAuNDY5LTEuMjI5IDAtMS42OTdsMi43NTgtMy4xNS0yLjc1OS0zLjE1MmMtMC40NjktMC40NjktMC40NjktMS4yMjggMC0xLjY5N3MxLjIyOC0wLjQ2OSAxLjY5NyAwbDIuNjUyIDMuMDMxIDIuNjUxLTMuMDMxYzAuNDY5LTAuNDY5IDEuMjI4LTAuNDY5IDEuNjk3IDBzMC40NjkgMS4yMjkgMCAxLjY5N2wtMi43NTggMy4xNTIgMi43NTggMy4xNWMwLjQ2OSAwLjQ2OSAwLjQ2OSAxLjIyOSAwIDEuNjk4elwiIC8+XG4gIDwvU3ZnPlxuKTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogYW55KSA9PiAoXG4gIDxTdmcgc2l6ZT17MjB9IHsuLi5wcm9wc30+XG4gICAgPHBhdGggZD1cIk00LjUxNiA3LjU0OGMwLjQzNi0wLjQ0NiAxLjA0My0wLjQ4MSAxLjU3NiAwbDMuOTA4IDMuNzQ3IDMuOTA4LTMuNzQ3YzAuNTMzLTAuNDgxIDEuMTQxLTAuNDQ2IDEuNTc0IDAgMC40MzYgMC40NDUgMC40MDggMS4xOTcgMCAxLjYxNS0wLjQwNiAwLjQxOC00LjY5NSA0LjUwMi00LjY5NSA0LjUwMi0wLjIxNyAwLjIyMy0wLjUwMiAwLjMzNS0wLjc4NyAwLjMzNXMtMC41Ny0wLjExMi0wLjc4OS0wLjMzNWMwIDAtNC4yODctNC4wODQtNC42OTUtNC41MDJzLTAuNDM2LTEuMTcgMC0xLjYxNXpcIiAvPlxuICA8L1N2Zz5cbik7XG5cbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuLy8gRHJvcGRvd24gJiBDbGVhciBCdXR0b25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuZXhwb3J0IHR5cGUgSW5kaWNhdG9yUHJvcHMgPSBDb21tb25Qcm9wcyAmIHtcbiAgLyoqIFRoZSBjaGlsZHJlbiB0byBiZSByZW5kZXJlZCBpbnNpZGUgdGhlIGluZGljYXRvci4gKi9cbiAgY2hpbGRyZW46IE5vZGUsXG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogYW55LFxuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuLFxuICAvKiogV2hldGhlciB0aGUgdGV4dCBpcyByaWdodCB0byBsZWZ0ICovXG4gIGlzUnRsOiBib29sZWFuLFxufTtcblxuY29uc3QgYmFzZUNTUyA9ICh7XG4gIGlzRm9jdXNlZCxcbiAgdGhlbWU6IHtcbiAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgY29sb3JzLFxuICB9LFxufTogSW5kaWNhdG9yUHJvcHMpID0+ICh7XG4gIGxhYmVsOiAnaW5kaWNhdG9yQ29udGFpbmVyJyxcbiAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcblxuICAnOmhvdmVyJzoge1xuICAgIGNvbG9yOiBpc0ZvY3VzZWQgPyBjb2xvcnMubmV1dHJhbDgwIDogY29sb3JzLm5ldXRyYWw0MCxcbiAgfSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gKHByb3BzOiBJbmRpY2F0b3JQcm9wcykgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBjbGFzc05hbWUsIGN4LCBnZXRTdHlsZXMsIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgY3NzPXtnZXRTdHlsZXMoJ2Ryb3Bkb3duSW5kaWNhdG9yJywgcHJvcHMpfVxuICAgICAgY2xhc3NOYW1lPXtjeChcbiAgICAgICAge1xuICAgICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgICAnZHJvcGRvd24taW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfSxcbiAgICAgICAgY2xhc3NOYW1lXG4gICAgICApfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gKHByb3BzOiBJbmRpY2F0b3JQcm9wcykgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBjbGFzc05hbWUsIGN4LCBnZXRTdHlsZXMsIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgY3NzPXtnZXRTdHlsZXMoJ2NsZWFySW5kaWNhdG9yJywgcHJvcHMpfVxuICAgICAgY2xhc3NOYW1lPXtjeChcbiAgICAgICAge1xuICAgICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgICAnY2xlYXItaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfSxcbiAgICAgICAgY2xhc3NOYW1lXG4gICAgICApfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG50eXBlIFNlcGFyYXRvclN0YXRlID0geyBpc0Rpc2FibGVkOiBib29sZWFuIH07XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSAoe1xuICBpc0Rpc2FibGVkLFxuICB0aGVtZToge1xuICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICBjb2xvcnMsXG4gIH0sXG59OiBDb21tb25Qcm9wcyAmIFNlcGFyYXRvclN0YXRlKSA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvclNlcGFyYXRvcicsXG4gIGFsaWduU2VsZjogJ3N0cmV0Y2gnLFxuICBiYWNrZ3JvdW5kQ29sb3I6IGlzRGlzYWJsZWQgPyBjb2xvcnMubmV1dHJhbDEwIDogY29sb3JzLm5ldXRyYWwyMCxcbiAgbWFyZ2luQm90dG9tOiBiYXNlVW5pdCAqIDIsXG4gIG1hcmdpblRvcDogYmFzZVVuaXQgKiAyLFxuICB3aWR0aDogMSxcbn0pO1xuXG5leHBvcnQgY29uc3QgSW5kaWNhdG9yU2VwYXJhdG9yID0gKHByb3BzOiBJbmRpY2F0b3JQcm9wcykgPT4ge1xuICBjb25zdCB7IGNsYXNzTmFtZSwgY3gsIGdldFN0eWxlcywgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgY3NzPXtnZXRTdHlsZXMoJ2luZGljYXRvclNlcGFyYXRvcicsIHByb3BzKX1cbiAgICAgIGNsYXNzTmFtZT17Y3goeyAnaW5kaWNhdG9yLXNlcGFyYXRvcic6IHRydWUgfSwgY2xhc3NOYW1lKX1cbiAgICAvPlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBMb2FkaW5nXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgbG9hZGluZ0RvdEFuaW1hdGlvbnMgPSBrZXlmcmFtZXNgXG4gIDAlLCA4MCUsIDEwMCUgeyBvcGFjaXR5OiAwOyB9XG4gIDQwJSB7IG9wYWNpdHk6IDE7IH1cbmA7XG5cbmV4cG9ydCBjb25zdCBsb2FkaW5nSW5kaWNhdG9yQ1NTID0gKHtcbiAgaXNGb2N1c2VkLFxuICBzaXplLFxuICB0aGVtZToge1xuICAgIGNvbG9ycyxcbiAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gIH0sXG59OiB7XG4gIGlzRm9jdXNlZDogYm9vbGVhbixcbiAgc2l6ZTogbnVtYmVyLFxuICB0aGVtZTogVGhlbWUsXG59KSA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgcGFkZGluZzogYmFzZVVuaXQgKiAyLFxuICB0cmFuc2l0aW9uOiAnY29sb3IgMTUwbXMnLFxuICBhbGlnblNlbGY6ICdjZW50ZXInLFxuICBmb250U2l6ZTogc2l6ZSxcbiAgbGluZUhlaWdodDogMSxcbiAgbWFyZ2luUmlnaHQ6IHNpemUsXG4gIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gIHZlcnRpY2FsQWxpZ246ICdtaWRkbGUnLFxufSk7XG5cbnR5cGUgRG90UHJvcHMgPSB7IGRlbGF5OiBudW1iZXIsIG9mZnNldDogYm9vbGVhbiB9O1xuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogRG90UHJvcHMpID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGFuaW1hdGlvbjogYCR7bG9hZGluZ0RvdEFuaW1hdGlvbnN9IDFzIGVhc2UtaW4tb3V0ICR7ZGVsYXl9bXMgaW5maW5pdGU7YCxcbiAgICAgIGJhY2tncm91bmRDb2xvcjogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBib3JkZXJSYWRpdXM6ICcxZW0nLFxuICAgICAgZGlzcGxheTogJ2lubGluZS1ibG9jaycsXG4gICAgICBtYXJnaW5MZWZ0OiBvZmZzZXQgPyAnMWVtJyA6IG51bGwsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCB0eXBlIExvYWRpbmdJY29uUHJvcHMgPSB7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogYW55LFxuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuLFxuICAvKiogV2hldGhlciB0aGUgdGV4dCBpcyByaWdodCB0byBsZWZ0ICovXG4gIGlzUnRsOiBib29sZWFuLFxufSAmIENvbW1vblByb3BzICYge1xuICAgIC8qKiBTZXQgc2l6ZSBvZiB0aGUgY29udGFpbmVyLiAqL1xuICAgIHNpemU6IG51bWJlcixcbiAgfTtcbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gKHByb3BzOiBMb2FkaW5nSWNvblByb3BzKSA9PiB7XG4gIGNvbnN0IHsgY2xhc3NOYW1lLCBjeCwgZ2V0U3R5bGVzLCBpbm5lclByb3BzLCBpc1J0bCB9ID0gcHJvcHM7XG5cbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICAgIGNzcz17Z2V0U3R5bGVzKCdsb2FkaW5nSW5kaWNhdG9yJywgcHJvcHMpfVxuICAgICAgY2xhc3NOYW1lPXtjeChcbiAgICAgICAge1xuICAgICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgICAnbG9hZGluZy1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgICB9LFxuICAgICAgICBjbGFzc05hbWVcbiAgICAgICl9XG4gICAgPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezB9IG9mZnNldD17aXNSdGx9IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MTYwfSBvZmZzZXQgLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXszMjB9IG9mZnNldD17IWlzUnRsfSAvPlxuICAgIDwvZGl2PlxuICApO1xufTtcbkxvYWRpbmdJbmRpY2F0b3IuZGVmYXVsdFByb3BzID0geyBzaXplOiA0IH07XG4iXX0= */") + }); +}; - // Misc. Instance Properties - // ------------------------------ - // TODO - // Refs - // ------------------------------ - // Lifecycle - // ------------------------------ - function Select(_props) { - var _this; +var LoadingIndicator = function LoadingIndicator(props) { + var className = props.className, + cx = props.cx, + getStyles = props.getStyles, + innerProps = props.innerProps, + isRtl = props.isRtl; + return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, innerProps, { + css: getStyles('loadingIndicator', props), + className: cx({ + indicator: true, + 'loading-indicator': true + }, className) + }), Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])(LoadingDot, { + delay: 0, + offset: isRtl + }), Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])(LoadingDot, { + delay: 160, + offset: true + }), Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])(LoadingDot, { + delay: 320, + offset: !isRtl + })); +}; +LoadingIndicator.defaultProps = { + size: 4 +}; - _this = _Component.call(this, _props) || this; - _this.state = { - ariaLiveSelection: '', - ariaLiveContext: '', - focusedOption: null, - focusedValue: null, - inputIsHidden: false, - isFocused: false, - menuOptions: { - render: [], - focusable: [] - }, - selectValue: [] - }; - _this.blockOptionHover = false; - _this.isComposing = false; - _this.clearFocusValueOnUpdate = false; - _this.commonProps = void 0; - _this.components = void 0; - _this.hasGroups = false; - _this.initialTouchX = 0; - _this.initialTouchY = 0; - _this.inputIsHiddenAfterUpdate = void 0; - _this.instancePrefix = ''; - _this.openAfterFocus = false; - _this.scrollToFocusedOptionOnUpdate = false; - _this.userIsDragging = void 0; - _this.controlRef = null; +var css = function css(_ref) { + var isDisabled = _ref.isDisabled, + isFocused = _ref.isFocused, + _ref$theme = _ref.theme, + colors = _ref$theme.colors, + borderRadius = _ref$theme.borderRadius, + spacing = _ref$theme.spacing; + return { + label: 'control', + alignItems: 'center', + backgroundColor: isDisabled ? colors.neutral5 : colors.neutral0, + borderColor: isDisabled ? colors.neutral10 : isFocused ? colors.primary : colors.neutral20, + borderRadius: borderRadius, + borderStyle: 'solid', + borderWidth: 1, + boxShadow: isFocused ? "0 0 0 1px ".concat(colors.primary) : null, + cursor: 'default', + display: 'flex', + flexWrap: 'wrap', + justifyContent: 'space-between', + minHeight: spacing.controlHeight, + outline: '0 !important', + position: 'relative', + transition: 'all 100ms', + '&:hover': { + borderColor: isFocused ? colors.primary : colors.neutral30 + } + }; +}; - _this.getControlRef = function (ref) { - _this.controlRef = ref; - }; +var Control = function Control(props) { + var children = props.children, + cx = props.cx, + getStyles = props.getStyles, + className = props.className, + isDisabled = props.isDisabled, + isFocused = props.isFocused, + innerRef = props.innerRef, + innerProps = props.innerProps, + menuIsOpen = props.menuIsOpen; + return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({ + ref: innerRef, + css: getStyles('control', props), + className: cx({ + control: true, + 'control--is-disabled': isDisabled, + 'control--is-focused': isFocused, + 'control--menu-is-open': menuIsOpen + }, className) + }, innerProps), children); +}; - _this.focusedOptionRef = null; +function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } - _this.getFocusedOptionRef = function (ref) { - _this.focusedOptionRef = ref; - }; +function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$1(Object(source), true).forEach(function (key) { Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } +var groupCSS = function groupCSS(_ref) { + var spacing = _ref.theme.spacing; + return { + paddingBottom: spacing.baseUnit * 2, + paddingTop: spacing.baseUnit * 2 + }; +}; - _this.menuListRef = null; +var Group = function Group(props) { + var children = props.children, + className = props.className, + cx = props.cx, + getStyles = props.getStyles, + Heading = props.Heading, + headingProps = props.headingProps, + label = props.label, + theme = props.theme, + selectProps = props.selectProps; + return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", { + css: getStyles('group', props), + className: cx({ + group: true + }, className) + }, Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])(Heading, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, headingProps, { + selectProps: selectProps, + theme: theme, + getStyles: getStyles, + cx: cx + }), label), Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", null, children)); +}; - _this.getMenuListRef = function (ref) { - _this.menuListRef = ref; - }; +var groupHeadingCSS = function groupHeadingCSS(_ref2) { + var spacing = _ref2.theme.spacing; + return { + label: 'group', + color: '#999', + cursor: 'default', + display: 'block', + fontSize: '75%', + fontWeight: '500', + marginBottom: '0.25em', + paddingLeft: spacing.baseUnit * 3, + paddingRight: spacing.baseUnit * 3, + textTransform: 'uppercase' + }; +}; +var GroupHeading = function GroupHeading(props) { + var className = props.className, + cx = props.cx, + getStyles = props.getStyles, + theme = props.theme, + selectProps = props.selectProps, + cleanProps = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(props, ["className", "cx", "getStyles", "theme", "selectProps"]); - _this.inputRef = null; + return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({ + css: getStyles('groupHeading', _objectSpread$1({ + theme: theme + }, cleanProps)), + className: cx({ + 'group-heading': true + }, className) + }, cleanProps)); +}; - _this.getInputRef = function (ref) { - _this.inputRef = ref; - }; +function ownKeys$2(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } - _this.cacheComponents = function (components) { - _this.components = __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["x" /* w */]({ - components: components - }); - }; +function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$2(Object(source), true).forEach(function (key) { Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$2(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } +var inputCSS = function inputCSS(_ref) { + var isDisabled = _ref.isDisabled, + _ref$theme = _ref.theme, + spacing = _ref$theme.spacing, + colors = _ref$theme.colors; + return { + margin: spacing.baseUnit / 2, + paddingBottom: spacing.baseUnit / 2, + paddingTop: spacing.baseUnit / 2, + visibility: isDisabled ? 'hidden' : 'visible', + color: colors.neutral80 + }; +}; - _this.focus = _this.focusInput; - _this.blur = _this.blurInput; +var inputStyle = function inputStyle(isHidden) { + return { + label: 'input', + background: 0, + border: 0, + fontSize: 'inherit', + opacity: isHidden ? 0 : 1, + outline: 0, + padding: 0, + color: 'inherit' + }; +}; - _this.onChange = function (newValue, actionMeta) { - var _this$props = _this.props, - onChange = _this$props.onChange, - name = _this$props.name; - onChange(newValue, _extends$4({}, actionMeta, { - name: name - })); - }; +var Input = function Input(_ref2) { + var className = _ref2.className, + cx = _ref2.cx, + getStyles = _ref2.getStyles, + innerRef = _ref2.innerRef, + isHidden = _ref2.isHidden, + isDisabled = _ref2.isDisabled, + theme = _ref2.theme, + selectProps = _ref2.selectProps, + props = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(_ref2, ["className", "cx", "getStyles", "innerRef", "isHidden", "isDisabled", "theme", "selectProps"]); - _this.setValue = function (newValue, action, option) { - if (action === void 0) { - action = 'set-value'; - } + return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", { + css: getStyles('input', _objectSpread$2({ + theme: theme + }, props)) + }, Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])(__WEBPACK_IMPORTED_MODULE_14_react_input_autosize___default.a, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({ + className: cx({ + input: true + }, className), + inputRef: innerRef, + inputStyle: inputStyle(isHidden), + disabled: isDisabled + }, props))); +}; - var _this$props2 = _this.props, - closeMenuOnSelect = _this$props2.closeMenuOnSelect, - isMulti = _this$props2.isMulti; +function ownKeys$3(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } - _this.onInputChange('', { - action: 'set-value' - }); +function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$3(Object(source), true).forEach(function (key) { Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$3(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } +var multiValueCSS = function multiValueCSS(_ref) { + var _ref$theme = _ref.theme, + spacing = _ref$theme.spacing, + borderRadius = _ref$theme.borderRadius, + colors = _ref$theme.colors; + return { + label: 'multiValue', + backgroundColor: colors.neutral10, + borderRadius: borderRadius / 2, + display: 'flex', + margin: spacing.baseUnit / 2, + minWidth: 0 // resolves flex/text-overflow bug - if (closeMenuOnSelect) { - _this.inputIsHiddenAfterUpdate = !isMulti; + }; +}; +var multiValueLabelCSS = function multiValueLabelCSS(_ref2) { + var _ref2$theme = _ref2.theme, + borderRadius = _ref2$theme.borderRadius, + colors = _ref2$theme.colors, + cropWithEllipsis = _ref2.cropWithEllipsis; + return { + borderRadius: borderRadius / 2, + color: colors.neutral80, + fontSize: '85%', + overflow: 'hidden', + padding: 3, + paddingLeft: 6, + textOverflow: cropWithEllipsis ? 'ellipsis' : null, + whiteSpace: 'nowrap' + }; +}; +var multiValueRemoveCSS = function multiValueRemoveCSS(_ref3) { + var _ref3$theme = _ref3.theme, + spacing = _ref3$theme.spacing, + borderRadius = _ref3$theme.borderRadius, + colors = _ref3$theme.colors, + isFocused = _ref3.isFocused; + return { + alignItems: 'center', + borderRadius: borderRadius / 2, + backgroundColor: isFocused && colors.dangerLight, + display: 'flex', + paddingLeft: spacing.baseUnit, + paddingRight: spacing.baseUnit, + ':hover': { + backgroundColor: colors.dangerLight, + color: colors.danger + } + }; +}; +var MultiValueGeneric = function MultiValueGeneric(_ref4) { + var children = _ref4.children, + innerProps = _ref4.innerProps; + return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", innerProps, children); +}; +var MultiValueContainer = MultiValueGeneric; +var MultiValueLabel = MultiValueGeneric; +function MultiValueRemove(_ref5) { + var children = _ref5.children, + innerProps = _ref5.innerProps; + return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", innerProps, children || Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])(CrossIcon, { + size: 14 + })); +} - _this.onMenuClose(); - } // when the select value should change, we should reset focusedValue +var MultiValue = function MultiValue(props) { + var children = props.children, + className = props.className, + components = props.components, + cx = props.cx, + data = props.data, + getStyles = props.getStyles, + innerProps = props.innerProps, + isDisabled = props.isDisabled, + removeProps = props.removeProps, + selectProps = props.selectProps; + var Container = components.Container, + Label = components.Label, + Remove = components.Remove; + return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["b" /* ClassNames */], null, function (_ref6) { + var css = _ref6.css, + emotionCx = _ref6.cx; + return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])(Container, { + data: data, + innerProps: _objectSpread$3(_objectSpread$3({}, innerProps), {}, { + className: emotionCx(css(getStyles('multiValue', props)), cx({ + 'multi-value': true, + 'multi-value--is-disabled': isDisabled + }, className)) + }), + selectProps: selectProps + }, Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])(Label, { + data: data, + innerProps: { + className: emotionCx(css(getStyles('multiValueLabel', props)), cx({ + 'multi-value__label': true + }, className)) + }, + selectProps: selectProps + }, children), Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])(Remove, { + data: data, + innerProps: _objectSpread$3({ + className: emotionCx(css(getStyles('multiValueRemove', props)), cx({ + 'multi-value__remove': true + }, className)) + }, removeProps), + selectProps: selectProps + })); + }); +}; +MultiValue.defaultProps = { + cropWithEllipsis: true +}; - _this.clearFocusValueOnUpdate = true; +var optionCSS = function optionCSS(_ref) { + var isDisabled = _ref.isDisabled, + isFocused = _ref.isFocused, + isSelected = _ref.isSelected, + _ref$theme = _ref.theme, + spacing = _ref$theme.spacing, + colors = _ref$theme.colors; + return { + label: 'option', + backgroundColor: isSelected ? colors.primary : isFocused ? colors.primary25 : 'transparent', + color: isDisabled ? colors.neutral20 : isSelected ? colors.neutral0 : 'inherit', + cursor: 'default', + display: 'block', + fontSize: 'inherit', + padding: "".concat(spacing.baseUnit * 2, "px ").concat(spacing.baseUnit * 3, "px"), + width: '100%', + userSelect: 'none', + WebkitTapHighlightColor: 'rgba(0, 0, 0, 0)', + // provide some affordance on touch devices + ':active': { + backgroundColor: !isDisabled && (isSelected ? colors.primary : colors.primary50) + } + }; +}; - _this.onChange(newValue, { - action: action, - option: option - }); - }; +var Option = function Option(props) { + var children = props.children, + className = props.className, + cx = props.cx, + getStyles = props.getStyles, + isDisabled = props.isDisabled, + isFocused = props.isFocused, + isSelected = props.isSelected, + innerRef = props.innerRef, + innerProps = props.innerProps; + return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({ + css: getStyles('option', props), + className: cx({ + option: true, + 'option--is-disabled': isDisabled, + 'option--is-focused': isFocused, + 'option--is-selected': isSelected + }, className), + ref: innerRef + }, innerProps), children); +}; - _this.selectOption = function (newValue) { - var _this$props3 = _this.props, - blurInputOnSelect = _this$props3.blurInputOnSelect, - isMulti = _this$props3.isMulti; - var selectValue = _this.state.selectValue; +var placeholderCSS = function placeholderCSS(_ref) { + var _ref$theme = _ref.theme, + spacing = _ref$theme.spacing, + colors = _ref$theme.colors; + return { + label: 'placeholder', + color: colors.neutral50, + marginLeft: spacing.baseUnit / 2, + marginRight: spacing.baseUnit / 2, + position: 'absolute', + top: '50%', + transform: 'translateY(-50%)' + }; +}; - if (isMulti) { - if (_this.isOptionSelected(newValue, selectValue)) { - var candidate = _this.getOptionValue(newValue); +var Placeholder = function Placeholder(props) { + var children = props.children, + className = props.className, + cx = props.cx, + getStyles = props.getStyles, + innerProps = props.innerProps; + return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({ + css: getStyles('placeholder', props), + className: cx({ + placeholder: true + }, className) + }, innerProps), children); +}; - _this.setValue(selectValue.filter(function (i) { - return _this.getOptionValue(i) !== candidate; - }), 'deselect-option', newValue); +var css$1 = function css(_ref) { + var isDisabled = _ref.isDisabled, + _ref$theme = _ref.theme, + spacing = _ref$theme.spacing, + colors = _ref$theme.colors; + return { + label: 'singleValue', + color: isDisabled ? colors.neutral40 : colors.neutral80, + marginLeft: spacing.baseUnit / 2, + marginRight: spacing.baseUnit / 2, + maxWidth: "calc(100% - ".concat(spacing.baseUnit * 2, "px)"), + overflow: 'hidden', + position: 'absolute', + textOverflow: 'ellipsis', + whiteSpace: 'nowrap', + top: '50%', + transform: 'translateY(-50%)' + }; +}; - _this.announceAriaLiveSelection({ - event: 'deselect-option', - context: { - value: _this.getOptionLabel(newValue) - } - }); - } else { - if (!_this.isOptionDisabled(newValue, selectValue)) { - _this.setValue([].concat(selectValue, [newValue]), 'select-option', newValue); +var SingleValue = function SingleValue(props) { + var children = props.children, + className = props.className, + cx = props.cx, + getStyles = props.getStyles, + isDisabled = props.isDisabled, + innerProps = props.innerProps; + return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({ + css: getStyles('singleValue', props), + className: cx({ + 'single-value': true, + 'single-value--is-disabled': isDisabled + }, className) + }, innerProps), children); +}; - _this.announceAriaLiveSelection({ - event: 'select-option', - context: { - value: _this.getOptionLabel(newValue) - } - }); - } else { - // announce that option is disabled - _this.announceAriaLiveSelection({ - event: 'select-option', - context: { - value: _this.getOptionLabel(newValue), - isDisabled: true - } - }); - } - } - } else { - if (!_this.isOptionDisabled(newValue, selectValue)) { - _this.setValue(newValue, 'select-option'); +function ownKeys$4(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } - _this.announceAriaLiveSelection({ - event: 'select-option', - context: { - value: _this.getOptionLabel(newValue) - } - }); - } else { - // announce that option is disabled - _this.announceAriaLiveSelection({ - event: 'select-option', - context: { - value: _this.getOptionLabel(newValue), - isDisabled: true - } - }); - } - } +function _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$4(Object(source), true).forEach(function (key) { Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$4(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } +var components = { + ClearIndicator: ClearIndicator, + Control: Control, + DropdownIndicator: DropdownIndicator, + DownChevron: DownChevron, + CrossIcon: CrossIcon, + Group: Group, + GroupHeading: GroupHeading, + IndicatorsContainer: IndicatorsContainer, + IndicatorSeparator: IndicatorSeparator, + Input: Input, + LoadingIndicator: LoadingIndicator, + Menu: Menu, + MenuList: MenuList, + MenuPortal: MenuPortal, + LoadingMessage: LoadingMessage, + NoOptionsMessage: NoOptionsMessage, + MultiValue: MultiValue, + MultiValueContainer: MultiValueContainer, + MultiValueLabel: MultiValueLabel, + MultiValueRemove: MultiValueRemove, + Option: Option, + Placeholder: Placeholder, + SelectContainer: SelectContainer, + SingleValue: SingleValue, + ValueContainer: ValueContainer +}; +var defaultComponents = function defaultComponents(props) { + return _objectSpread$4(_objectSpread$4({}, components), props.components); +}; - if (blurInputOnSelect) { - _this.blurInput(); - } - }; - _this.removeValue = function (removedValue) { - var selectValue = _this.state.selectValue; - var candidate = _this.getOptionValue(removedValue); +/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(/*! ./../../process/browser.js */ 6))) - var newValue = selectValue.filter(function (i) { - return _this.getOptionValue(i) !== candidate; - }); +/***/ }), +/* 177 */ +/*!*********************************************************************************************!*\ + !*** ./node_modules/react-select/node_modules/@babel/runtime/helpers/esm/defineProperty.js ***! + \*********************************************************************************************/ +/*! exports provided: default */ +/*! exports used: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { - _this.onChange(newValue.length ? newValue : null, { - action: 'remove-value', - removedValue: removedValue - }); +"use strict"; +/* harmony export (immutable) */ __webpack_exports__["a"] = _defineProperty; +function _defineProperty(obj, key, value) { + if (key in obj) { + Object.defineProperty(obj, key, { + value: value, + enumerable: true, + configurable: true, + writable: true + }); + } else { + obj[key] = value; + } - _this.announceAriaLiveSelection({ - event: 'remove-value', - context: { - value: removedValue ? _this.getOptionLabel(removedValue) : '' - } - }); + return obj; +} - _this.focusInput(); - }; +/***/ }), +/* 178 */ +/*!****************************************************************!*\ + !*** ./node_modules/react-input-autosize/lib/AutosizeInput.js ***! + \****************************************************************/ +/*! dynamic exports provided */ +/*! exports used: default */ +/***/ (function(module, exports, __webpack_require__) { - _this.clearValue = function () { - var isMulti = _this.props.isMulti; +"use strict"; - _this.onChange(isMulti ? [] : null, { - action: 'clear' - }); - }; - _this.popValue = function () { - var selectValue = _this.state.selectValue; - var lastSelectedValue = selectValue[selectValue.length - 1]; - var newValue = selectValue.slice(0, selectValue.length - 1); +Object.defineProperty(exports, "__esModule", { + value: true +}); - _this.announceAriaLiveSelection({ - event: 'pop-value', - context: { - value: lastSelectedValue ? _this.getOptionLabel(lastSelectedValue) : '' - } - }); +var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - _this.onChange(newValue.length ? newValue : null, { - action: 'pop-value', - removedValue: lastSelectedValue - }); - }; +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - _this.getOptionLabel = function (data) { - return _this.props.getOptionLabel(data); - }; +var _react = __webpack_require__(/*! react */ 5); - _this.getOptionValue = function (data) { - return _this.props.getOptionValue(data); - }; +var _react2 = _interopRequireDefault(_react); - _this.getStyles = function (key, props) { - var base = defaultStyles[key](props); - base.boxSizing = 'border-box'; - var custom = _this.props.styles[key]; - return custom ? custom(base, props) : base; - }; +var _propTypes = __webpack_require__(/*! prop-types */ 15); - _this.getElementId = function (element) { - return _this.instancePrefix + "-" + element; - }; +var _propTypes2 = _interopRequireDefault(_propTypes); - _this.getActiveDescendentId = function () { - var menuIsOpen = _this.props.menuIsOpen; - var _this$state = _this.state, - menuOptions = _this$state.menuOptions, - focusedOption = _this$state.focusedOption; - if (!focusedOption || !menuIsOpen) return undefined; - var index = menuOptions.focusable.indexOf(focusedOption); - var option = menuOptions.render[index]; - return option && option.key; - }; +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - _this.announceAriaLiveSelection = function (_ref2) { - var event = _ref2.event, - context = _ref2.context; +function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } - _this.setState({ - ariaLiveSelection: valueEventAriaMessage(event, context) - }); - }; +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - _this.announceAriaLiveContext = function (_ref3) { - var event = _ref3.event, - context = _ref3.context; +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - _this.setState({ - ariaLiveContext: instructionsAriaMessage(event, _extends$4({}, context, { - label: _this.props['aria-label'] - })) - }); - }; +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - _this.onMenuMouseDown = function (event) { - if (event.button !== 0) { - return; - } +var sizerStyle = { + position: 'absolute', + top: 0, + left: 0, + visibility: 'hidden', + height: 0, + overflow: 'scroll', + whiteSpace: 'pre' +}; - event.stopPropagation(); - event.preventDefault(); +var INPUT_PROPS_BLACKLIST = ['extraWidth', 'injectStyles', 'inputClassName', 'inputRef', 'inputStyle', 'minWidth', 'onAutosize', 'placeholderIsMinWidth']; - _this.focusInput(); - }; +var cleanInputProps = function cleanInputProps(inputProps) { + INPUT_PROPS_BLACKLIST.forEach(function (field) { + return delete inputProps[field]; + }); + return inputProps; +}; - _this.onMenuMouseMove = function (event) { - _this.blockOptionHover = false; - }; +var copyStyles = function copyStyles(styles, node) { + node.style.fontSize = styles.fontSize; + node.style.fontFamily = styles.fontFamily; + node.style.fontWeight = styles.fontWeight; + node.style.fontStyle = styles.fontStyle; + node.style.letterSpacing = styles.letterSpacing; + node.style.textTransform = styles.textTransform; +}; - _this.onControlMouseDown = function (event) { - var openMenuOnClick = _this.props.openMenuOnClick; +var isIE = typeof window !== 'undefined' && window.navigator ? /MSIE |Trident\/|Edge\//.test(window.navigator.userAgent) : false; - if (!_this.state.isFocused) { - if (openMenuOnClick) { - _this.openAfterFocus = true; - } +var generateId = function generateId() { + // we only need an auto-generated ID for stylesheet injection, which is only + // used for IE. so if the browser is not IE, this should return undefined. + return isIE ? '_' + Math.random().toString(36).substr(2, 12) : undefined; +}; - _this.focusInput(); - } else if (!_this.props.menuIsOpen) { - if (openMenuOnClick) { - _this.openMenu('first'); - } - } else { - if ( // $FlowFixMe - event.target.tagName !== 'INPUT' && event.target.tagName !== 'TEXTAREA') { - _this.onMenuClose(); - } - } +var AutosizeInput = function (_Component) { + _inherits(AutosizeInput, _Component); - if ( // $FlowFixMe - event.target.tagName !== 'INPUT' && event.target.tagName !== 'TEXTAREA') { - event.preventDefault(); - } - }; - - _this.onDropdownIndicatorMouseDown = function (event) { - // ignore mouse events that weren't triggered by the primary button - if (event && event.type === 'mousedown' && event.button !== 0) { - return; - } + _createClass(AutosizeInput, null, [{ + key: 'getDerivedStateFromProps', + value: function getDerivedStateFromProps(props, state) { + var id = props.id; - if (_this.props.isDisabled) return; - var _this$props4 = _this.props, - isMulti = _this$props4.isMulti, - menuIsOpen = _this$props4.menuIsOpen; + return id !== state.prevId ? { inputId: id || generateId(), prevId: id } : null; + } + }]); - _this.focusInput(); + function AutosizeInput(props) { + _classCallCheck(this, AutosizeInput); - if (menuIsOpen) { - _this.inputIsHiddenAfterUpdate = !isMulti; + var _this = _possibleConstructorReturn(this, (AutosizeInput.__proto__ || Object.getPrototypeOf(AutosizeInput)).call(this, props)); - _this.onMenuClose(); - } else { - _this.openMenu('first'); - } + _this.inputRef = function (el) { + _this.input = el; + if (typeof _this.props.inputRef === 'function') { + _this.props.inputRef(el); + } + }; - event.preventDefault(); - event.stopPropagation(); - }; + _this.placeHolderSizerRef = function (el) { + _this.placeHolderSizer = el; + }; - _this.onClearIndicatorMouseDown = function (event) { - // ignore mouse events that weren't triggered by the primary button - if (event && event.type === 'mousedown' && event.button !== 0) { - return; - } + _this.sizerRef = function (el) { + _this.sizer = el; + }; - _this.clearValue(); + _this.state = { + inputWidth: props.minWidth, + inputId: props.id || generateId(), + prevId: props.id + }; + return _this; + } - event.stopPropagation(); - _this.openAfterFocus = false; + _createClass(AutosizeInput, [{ + key: 'componentDidMount', + value: function componentDidMount() { + this.mounted = true; + this.copyInputStyles(); + this.updateInputWidth(); + } + }, { + key: 'componentDidUpdate', + value: function componentDidUpdate(prevProps, prevState) { + if (prevState.inputWidth !== this.state.inputWidth) { + if (typeof this.props.onAutosize === 'function') { + this.props.onAutosize(this.state.inputWidth); + } + } + this.updateInputWidth(); + } + }, { + key: 'componentWillUnmount', + value: function componentWillUnmount() { + this.mounted = false; + } + }, { + key: 'copyInputStyles', + value: function copyInputStyles() { + if (!this.mounted || !window.getComputedStyle) { + return; + } + var inputStyles = this.input && window.getComputedStyle(this.input); + if (!inputStyles) { + return; + } + copyStyles(inputStyles, this.sizer); + if (this.placeHolderSizer) { + copyStyles(inputStyles, this.placeHolderSizer); + } + } + }, { + key: 'updateInputWidth', + value: function updateInputWidth() { + if (!this.mounted || !this.sizer || typeof this.sizer.scrollWidth === 'undefined') { + return; + } + var newInputWidth = void 0; + if (this.props.placeholder && (!this.props.value || this.props.value && this.props.placeholderIsMinWidth)) { + newInputWidth = Math.max(this.sizer.scrollWidth, this.placeHolderSizer.scrollWidth) + 2; + } else { + newInputWidth = this.sizer.scrollWidth + 2; + } + // add extraWidth to the detected width. for number types, this defaults to 16 to allow for the stepper UI + var extraWidth = this.props.type === 'number' && this.props.extraWidth === undefined ? 16 : parseInt(this.props.extraWidth) || 0; + newInputWidth += extraWidth; + if (newInputWidth < this.props.minWidth) { + newInputWidth = this.props.minWidth; + } + if (newInputWidth !== this.state.inputWidth) { + this.setState({ + inputWidth: newInputWidth + }); + } + } + }, { + key: 'getInput', + value: function getInput() { + return this.input; + } + }, { + key: 'focus', + value: function focus() { + this.input.focus(); + } + }, { + key: 'blur', + value: function blur() { + this.input.blur(); + } + }, { + key: 'select', + value: function select() { + this.input.select(); + } + }, { + key: 'renderStyles', + value: function renderStyles() { + // this method injects styles to hide IE's clear indicator, which messes + // with input size detection. the stylesheet is only injected when the + // browser is IE, and can also be disabled by the `injectStyles` prop. + var injectStyles = this.props.injectStyles; - if (event.type === 'touchend') { - _this.focusInput(); - } else { - setTimeout(function () { - return _this.focusInput(); - }); - } - }; + return isIE && injectStyles ? _react2.default.createElement('style', { dangerouslySetInnerHTML: { + __html: 'input#' + this.state.inputId + '::-ms-clear {display: none;}' + } }) : null; + } + }, { + key: 'render', + value: function render() { + var sizerValue = [this.props.defaultValue, this.props.value, ''].reduce(function (previousValue, currentValue) { + if (previousValue !== null && previousValue !== undefined) { + return previousValue; + } + return currentValue; + }); - _this.onScroll = function (event) { - if (typeof _this.props.closeMenuOnScroll === 'boolean') { - if (event.target instanceof HTMLElement && __WEBPACK_IMPORTED_MODULE_4__utils_06b0d5a4_browser_esm_js__["j"](event.target)) { - _this.props.onMenuClose(); - } - } else if (typeof _this.props.closeMenuOnScroll === 'function') { - if (_this.props.closeMenuOnScroll(event)) { - _this.props.onMenuClose(); - } - } - }; + var wrapperStyle = _extends({}, this.props.style); + if (!wrapperStyle.display) wrapperStyle.display = 'inline-block'; - _this.onCompositionStart = function () { - _this.isComposing = true; - }; + var inputStyle = _extends({ + boxSizing: 'content-box', + width: this.state.inputWidth + 'px' + }, this.props.inputStyle); - _this.onCompositionEnd = function () { - _this.isComposing = false; - }; + var inputProps = _objectWithoutProperties(this.props, []); - _this.onTouchStart = function (_ref4) { - var touches = _ref4.touches; - var touch = touches.item(0); + cleanInputProps(inputProps); + inputProps.className = this.props.inputClassName; + inputProps.id = this.state.inputId; + inputProps.style = inputStyle; - if (!touch) { - return; - } + return _react2.default.createElement( + 'div', + { className: this.props.className, style: wrapperStyle }, + this.renderStyles(), + _react2.default.createElement('input', _extends({}, inputProps, { ref: this.inputRef })), + _react2.default.createElement( + 'div', + { ref: this.sizerRef, style: sizerStyle }, + sizerValue + ), + this.props.placeholder ? _react2.default.createElement( + 'div', + { ref: this.placeHolderSizerRef, style: sizerStyle }, + this.props.placeholder + ) : null + ); + } + }]); - _this.initialTouchX = touch.clientX; - _this.initialTouchY = touch.clientY; - _this.userIsDragging = false; - }; + return AutosizeInput; +}(_react.Component); - _this.onTouchMove = function (_ref5) { - var touches = _ref5.touches; - var touch = touches.item(0); +AutosizeInput.propTypes = { + className: _propTypes2.default.string, // className for the outer element + defaultValue: _propTypes2.default.any, // default field value + extraWidth: _propTypes2.default.oneOfType([// additional width for input element + _propTypes2.default.number, _propTypes2.default.string]), + id: _propTypes2.default.string, // id to use for the input, can be set for consistent snapshots + injectStyles: _propTypes2.default.bool, // inject the custom stylesheet to hide clear UI, defaults to true + inputClassName: _propTypes2.default.string, // className for the input element + inputRef: _propTypes2.default.func, // ref callback for the input element + inputStyle: _propTypes2.default.object, // css styles for the input element + minWidth: _propTypes2.default.oneOfType([// minimum width for input element + _propTypes2.default.number, _propTypes2.default.string]), + onAutosize: _propTypes2.default.func, // onAutosize handler: function(newWidth) {} + onChange: _propTypes2.default.func, // onChange handler: function(event) {} + placeholder: _propTypes2.default.string, // placeholder text + placeholderIsMinWidth: _propTypes2.default.bool, // don't collapse size to less than the placeholder + style: _propTypes2.default.object, // css styles for the outer element + value: _propTypes2.default.any // field value +}; +AutosizeInput.defaultProps = { + minWidth: 1, + injectStyles: true +}; - if (!touch) { - return; - } +exports.default = AutosizeInput; - var deltaX = Math.abs(touch.clientX - _this.initialTouchX); - var deltaY = Math.abs(touch.clientY - _this.initialTouchY); - var moveThreshold = 5; - _this.userIsDragging = deltaX > moveThreshold || deltaY > moveThreshold; - }; +/***/ }), +/* 179 */ +/*!****************************************!*\ + !*** ./node_modules/react-is/index.js ***! + \****************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { - _this.onTouchEnd = function (event) { - if (_this.userIsDragging) return; // close the menu if the user taps outside - // we're checking on event.target here instead of event.currentTarget, because we want to assert information - // on events on child elements, not the document (which we've attached this handler to). +"use strict"; +/* WEBPACK VAR INJECTION */(function(process) { - if (_this.controlRef && !_this.controlRef.contains(event.target) && _this.menuListRef && !_this.menuListRef.contains(event.target)) { - _this.blurInput(); - } // reset move vars +if (process.env.NODE_ENV === 'production') { + module.exports = __webpack_require__(/*! ./cjs/react-is.production.min.js */ 362); +} else { + module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ 363); +} +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(/*! ./../process/browser.js */ 6))) - _this.initialTouchX = 0; - _this.initialTouchY = 0; - }; +/***/ }), +/* 180 */ +/*!***********************************************************************!*\ + !*** ./node_modules/react-select/dist/Select-e1cf49ae.browser.esm.js ***! + \***********************************************************************/ +/*! exports provided: S, a, c, d, m */ +/*! exports used: S */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { - _this.onControlTouchEnd = function (event) { - if (_this.userIsDragging) return; +"use strict"; +/* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Select; }); +/* unused harmony export a */ +/* unused harmony export c */ +/* unused harmony export d */ +/* unused harmony export m */ +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutProperties */ 90); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ 91); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_slicedToArray__ = __webpack_require__(/*! @babel/runtime/helpers/esm/slicedToArray */ 366); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_toConsumableArray__ = __webpack_require__(/*! @babel/runtime/helpers/esm/toConsumableArray */ 370); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_defineProperty__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ 177); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_classCallCheck__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ 59); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_createClass__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createClass */ 60); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_assertThisInitialized__ = __webpack_require__(/*! @babel/runtime/helpers/esm/assertThisInitialized */ 170); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_inherits__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inherits */ 61); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_possibleConstructorReturn__ = __webpack_require__(/*! @babel/runtime/helpers/esm/possibleConstructorReturn */ 62); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_getPrototypeOf__ = __webpack_require__(/*! @babel/runtime/helpers/esm/getPrototypeOf */ 63); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_react__ = __webpack_require__(/*! react */ 5); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_11_react__); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12_memoize_one__ = __webpack_require__(/*! memoize-one */ 171); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__emotion_core__ = __webpack_require__(/*! @emotion/core */ 87); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14_react_dom__ = __webpack_require__(/*! react-dom */ 33); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_14_react_dom__); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__index_75b02bac_browser_esm_js__ = __webpack_require__(/*! ./index-75b02bac.browser.esm.js */ 176); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_16__emotion_css__ = __webpack_require__(/*! @emotion/css */ 41); - _this.onControlMouseDown(event); - }; - _this.onClearIndicatorTouchEnd = function (event) { - if (_this.userIsDragging) return; - _this.onClearIndicatorMouseDown(event); - }; - _this.onDropdownIndicatorTouchEnd = function (event) { - if (_this.userIsDragging) return; - _this.onDropdownIndicatorMouseDown(event); - }; - _this.handleInputChange = function (event) { - var inputValue = event.currentTarget.value; - _this.inputIsHiddenAfterUpdate = false; - _this.onInputChange(inputValue, { - action: 'input-change' - }); - _this.onMenuOpen(); - }; - _this.onInputFocus = function (event) { - var _this$props5 = _this.props, - isSearchable = _this$props5.isSearchable, - isMulti = _this$props5.isMulti; - if (_this.props.onFocus) { - _this.props.onFocus(event); - } - _this.inputIsHiddenAfterUpdate = false; - _this.announceAriaLiveContext({ - event: 'input', - context: { - isSearchable: isSearchable, - isMulti: isMulti - } - }); - _this.setState({ - isFocused: true - }); - if (_this.openAfterFocus || _this.props.openMenuOnFocus) { - _this.openMenu('first'); - } - _this.openAfterFocus = false; - }; - _this.onInputBlur = function (event) { - if (_this.menuListRef && _this.menuListRef.contains(document.activeElement)) { - _this.inputRef.focus(); - return; - } - if (_this.props.onBlur) { - _this.props.onBlur(event); - } +var diacritics = [{ + base: 'A', + letters: "A\u24B6\uFF21\xC0\xC1\xC2\u1EA6\u1EA4\u1EAA\u1EA8\xC3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\xC4\u01DE\u1EA2\xC5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F" +}, { + base: 'AA', + letters: "\uA732" +}, { + base: 'AE', + letters: "\xC6\u01FC\u01E2" +}, { + base: 'AO', + letters: "\uA734" +}, { + base: 'AU', + letters: "\uA736" +}, { + base: 'AV', + letters: "\uA738\uA73A" +}, { + base: 'AY', + letters: "\uA73C" +}, { + base: 'B', + letters: "B\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181" +}, { + base: 'C', + letters: "C\u24B8\uFF23\u0106\u0108\u010A\u010C\xC7\u1E08\u0187\u023B\uA73E" +}, { + base: 'D', + letters: "D\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779" +}, { + base: 'DZ', + letters: "\u01F1\u01C4" +}, { + base: 'Dz', + letters: "\u01F2\u01C5" +}, { + base: 'E', + letters: "E\u24BA\uFF25\xC8\xC9\xCA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\xCB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E" +}, { + base: 'F', + letters: "F\u24BB\uFF26\u1E1E\u0191\uA77B" +}, { + base: 'G', + letters: "G\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E" +}, { + base: 'H', + letters: "H\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D" +}, { + base: 'I', + letters: "I\u24BE\uFF29\xCC\xCD\xCE\u0128\u012A\u012C\u0130\xCF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197" +}, { + base: 'J', + letters: "J\u24BF\uFF2A\u0134\u0248" +}, { + base: 'K', + letters: "K\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2" +}, { + base: 'L', + letters: "L\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780" +}, { + base: 'LJ', + letters: "\u01C7" +}, { + base: 'Lj', + letters: "\u01C8" +}, { + base: 'M', + letters: "M\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C" +}, { + base: 'N', + letters: "N\u24C3\uFF2E\u01F8\u0143\xD1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4" +}, { + base: 'NJ', + letters: "\u01CA" +}, { + base: 'Nj', + letters: "\u01CB" +}, { + base: 'O', + letters: "O\u24C4\uFF2F\xD2\xD3\xD4\u1ED2\u1ED0\u1ED6\u1ED4\xD5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\xD6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\xD8\u01FE\u0186\u019F\uA74A\uA74C" +}, { + base: 'OI', + letters: "\u01A2" +}, { + base: 'OO', + letters: "\uA74E" +}, { + base: 'OU', + letters: "\u0222" +}, { + base: 'P', + letters: "P\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754" +}, { + base: 'Q', + letters: "Q\u24C6\uFF31\uA756\uA758\u024A" +}, { + base: 'R', + letters: "R\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782" +}, { + base: 'S', + letters: "S\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784" +}, { + base: 'T', + letters: "T\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786" +}, { + base: 'TZ', + letters: "\uA728" +}, { + base: 'U', + letters: "U\u24CA\uFF35\xD9\xDA\xDB\u0168\u1E78\u016A\u1E7A\u016C\xDC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244" +}, { + base: 'V', + letters: "V\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245" +}, { + base: 'VY', + letters: "\uA760" +}, { + base: 'W', + letters: "W\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72" +}, { + base: 'X', + letters: "X\u24CD\uFF38\u1E8A\u1E8C" +}, { + base: 'Y', + letters: "Y\u24CE\uFF39\u1EF2\xDD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE" +}, { + base: 'Z', + letters: "Z\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762" +}, { + base: 'a', + letters: "a\u24D0\uFF41\u1E9A\xE0\xE1\xE2\u1EA7\u1EA5\u1EAB\u1EA9\xE3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\xE4\u01DF\u1EA3\xE5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250" +}, { + base: 'aa', + letters: "\uA733" +}, { + base: 'ae', + letters: "\xE6\u01FD\u01E3" +}, { + base: 'ao', + letters: "\uA735" +}, { + base: 'au', + letters: "\uA737" +}, { + base: 'av', + letters: "\uA739\uA73B" +}, { + base: 'ay', + letters: "\uA73D" +}, { + base: 'b', + letters: "b\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253" +}, { + base: 'c', + letters: "c\u24D2\uFF43\u0107\u0109\u010B\u010D\xE7\u1E09\u0188\u023C\uA73F\u2184" +}, { + base: 'd', + letters: "d\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A" +}, { + base: 'dz', + letters: "\u01F3\u01C6" +}, { + base: 'e', + letters: "e\u24D4\uFF45\xE8\xE9\xEA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\xEB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD" +}, { + base: 'f', + letters: "f\u24D5\uFF46\u1E1F\u0192\uA77C" +}, { + base: 'g', + letters: "g\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F" +}, { + base: 'h', + letters: "h\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265" +}, { + base: 'hv', + letters: "\u0195" +}, { + base: 'i', + letters: "i\u24D8\uFF49\xEC\xED\xEE\u0129\u012B\u012D\xEF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131" +}, { + base: 'j', + letters: "j\u24D9\uFF4A\u0135\u01F0\u0249" +}, { + base: 'k', + letters: "k\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3" +}, { + base: 'l', + letters: "l\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747" +}, { + base: 'lj', + letters: "\u01C9" +}, { + base: 'm', + letters: "m\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F" +}, { + base: 'n', + letters: "n\u24DD\uFF4E\u01F9\u0144\xF1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5" +}, { + base: 'nj', + letters: "\u01CC" +}, { + base: 'o', + letters: "o\u24DE\uFF4F\xF2\xF3\xF4\u1ED3\u1ED1\u1ED7\u1ED5\xF5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\xF6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\xF8\u01FF\u0254\uA74B\uA74D\u0275" +}, { + base: 'oi', + letters: "\u01A3" +}, { + base: 'ou', + letters: "\u0223" +}, { + base: 'oo', + letters: "\uA74F" +}, { + base: 'p', + letters: "p\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755" +}, { + base: 'q', + letters: "q\u24E0\uFF51\u024B\uA757\uA759" +}, { + base: 'r', + letters: "r\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783" +}, { + base: 's', + letters: "s\u24E2\uFF53\xDF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B" +}, { + base: 't', + letters: "t\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787" +}, { + base: 'tz', + letters: "\uA729" +}, { + base: 'u', + letters: "u\u24E4\uFF55\xF9\xFA\xFB\u0169\u1E79\u016B\u1E7B\u016D\xFC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289" +}, { + base: 'v', + letters: "v\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C" +}, { + base: 'vy', + letters: "\uA761" +}, { + base: 'w', + letters: "w\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73" +}, { + base: 'x', + letters: "x\u24E7\uFF58\u1E8B\u1E8D" +}, { + base: 'y', + letters: "y\u24E8\uFF59\u1EF3\xFD\u0177\u1EF9\u0233\u1E8F\xFF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF" +}, { + base: 'z', + letters: "z\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763" +}]; +var anyDiacritic = new RegExp('[' + diacritics.map(function (d) { + return d.letters; +}).join('') + ']', 'g'); +var diacriticToBase = {}; - _this.onInputChange('', { - action: 'input-blur' - }); +for (var i = 0; i < diacritics.length; i++) { + var diacritic = diacritics[i]; - _this.onMenuClose(); + for (var j = 0; j < diacritic.letters.length; j++) { + diacriticToBase[diacritic.letters[j]] = diacritic.base; + } +} - _this.setState({ - focusedValue: null, - isFocused: false - }); - }; - - _this.onOptionHover = function (focusedOption) { - if (_this.blockOptionHover || _this.state.focusedOption === focusedOption) { - return; - } +var stripDiacritics = function stripDiacritics(str) { + return str.replace(anyDiacritic, function (match) { + return diacriticToBase[match]; + }); +}; - _this.setState({ - focusedOption: focusedOption - }); - }; +function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } - _this.shouldHideSelectedOptions = function () { - var _this$props6 = _this.props, - hideSelectedOptions = _this$props6.hideSelectedOptions, - isMulti = _this$props6.isMulti; - if (hideSelectedOptions === undefined) return isMulti; - return hideSelectedOptions; - }; +function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } - _this.onKeyDown = function (event) { - var _this$props7 = _this.props, - isMulti = _this$props7.isMulti, - backspaceRemovesValue = _this$props7.backspaceRemovesValue, - escapeClearsValue = _this$props7.escapeClearsValue, - inputValue = _this$props7.inputValue, - isClearable = _this$props7.isClearable, - isDisabled = _this$props7.isDisabled, - menuIsOpen = _this$props7.menuIsOpen, - onKeyDown = _this$props7.onKeyDown, - tabSelectsValue = _this$props7.tabSelectsValue, - openMenuOnFocus = _this$props7.openMenuOnFocus; - var _this$state2 = _this.state, - focusedOption = _this$state2.focusedOption, - focusedValue = _this$state2.focusedValue, - selectValue = _this$state2.selectValue; - if (isDisabled) return; +var trimString = function trimString(str) { + return str.replace(/^\s+|\s+$/g, ''); +}; - if (typeof onKeyDown === 'function') { - onKeyDown(event); +var defaultStringify = function defaultStringify(option) { + return "".concat(option.label, " ").concat(option.value); +}; - if (event.defaultPrevented) { - return; - } - } // Block option hover events when the user has just pressed a key +var createFilter = function createFilter(config) { + return function (option, rawInput) { + var _ignoreCase$ignoreAcc = _objectSpread({ + ignoreCase: true, + ignoreAccents: true, + stringify: defaultStringify, + trim: true, + matchFrom: 'any' + }, config), + ignoreCase = _ignoreCase$ignoreAcc.ignoreCase, + ignoreAccents = _ignoreCase$ignoreAcc.ignoreAccents, + stringify = _ignoreCase$ignoreAcc.stringify, + trim = _ignoreCase$ignoreAcc.trim, + matchFrom = _ignoreCase$ignoreAcc.matchFrom; + var input = trim ? trimString(rawInput) : rawInput; + var candidate = trim ? trimString(stringify(option)) : stringify(option); - _this.blockOptionHover = true; + if (ignoreCase) { + input = input.toLowerCase(); + candidate = candidate.toLowerCase(); + } - switch (event.key) { - case 'ArrowLeft': - if (!isMulti || inputValue) return; + if (ignoreAccents) { + input = stripDiacritics(input); + candidate = stripDiacritics(candidate); + } - _this.focusValue('previous'); + return matchFrom === 'start' ? candidate.substr(0, input.length) === input : candidate.indexOf(input) > -1; + }; +}; - break; +function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } - case 'ArrowRight': - if (!isMulti || inputValue) return; +var _ref = process.env.NODE_ENV === "production" ? { + name: "1laao21-a11yText", + styles: "label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;" +} : { + name: "1laao21-a11yText", + styles: "label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;", + map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVFJIiwiZmlsZSI6IkExMXlUZXh0LmpzIiwic291cmNlc0NvbnRlbnQiOlsiLy8gQGZsb3dcbi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgdHlwZSBFbGVtZW50Q29uZmlnIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vY29yZSc7XG5cbi8vIEFzc2lzdGl2ZSB0ZXh0IHRvIGRlc2NyaWJlIHZpc3VhbCBlbGVtZW50cy4gSGlkZGVuIGZvciBzaWdodGVkIHVzZXJzLlxuY29uc3QgQTExeVRleHQgPSAocHJvcHM6IEVsZW1lbnRDb25maWc8J3NwYW4nPikgPT4gKFxuICA8c3BhblxuICAgIGNzcz17e1xuICAgICAgbGFiZWw6ICdhMTF5VGV4dCcsXG4gICAgICB6SW5kZXg6IDk5OTksXG4gICAgICBib3JkZXI6IDAsXG4gICAgICBjbGlwOiAncmVjdCgxcHgsIDFweCwgMXB4LCAxcHgpJyxcbiAgICAgIGhlaWdodDogMSxcbiAgICAgIHdpZHRoOiAxLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBvdmVyZmxvdzogJ2hpZGRlbicsXG4gICAgICBwYWRkaW5nOiAwLFxuICAgICAgd2hpdGVTcGFjZTogJ25vd3JhcCcsXG4gICAgfX1cbiAgICB7Li4ucHJvcHN9XG4gIC8+XG4pO1xuXG5leHBvcnQgZGVmYXVsdCBBMTF5VGV4dDtcbiJdfQ== */", + toString: _EMOTION_STRINGIFIED_CSS_ERROR__ +}; - _this.focusValue('next'); +var A11yText = function A11yText(props) { + return Object(__WEBPACK_IMPORTED_MODULE_13__emotion_core__["c" /* jsx */])("span", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({ + css: _ref + }, props)); +}; - break; +function DummyInput(_ref) { + var inProp = _ref.in, + out = _ref.out, + onExited = _ref.onExited, + appear = _ref.appear, + enter = _ref.enter, + exit = _ref.exit, + innerRef = _ref.innerRef, + emotion = _ref.emotion, + props = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(_ref, ["in", "out", "onExited", "appear", "enter", "exit", "innerRef", "emotion"]); - case 'Delete': - case 'Backspace': - if (inputValue) return; + return Object(__WEBPACK_IMPORTED_MODULE_13__emotion_core__["c" /* jsx */])("input", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({ + ref: innerRef + }, props, { + css: /*#__PURE__*/Object(__WEBPACK_IMPORTED_MODULE_16__emotion_css__["a" /* default */])({ + label: 'dummyInput', + // get rid of any default styles + background: 0, + border: 0, + fontSize: 'inherit', + outline: 0, + padding: 0, + // important! without `width` browsers won't allow focus + width: 1, + // remove cursor on desktop + color: 'transparent', + // remove cursor on mobile whilst maintaining "scroll into view" behaviour + left: -100, + opacity: 0, + position: 'relative', + transform: 'scale(0)' + }, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBbUJNIiwiZmlsZSI6IkR1bW15SW5wdXQuanMiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBAZmxvd1xuLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9jb3JlJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gRHVtbXlJbnB1dCh7XG4gIGluOiBpblByb3AsXG4gIG91dCxcbiAgb25FeGl0ZWQsXG4gIGFwcGVhcixcbiAgZW50ZXIsXG4gIGV4aXQsXG4gIGlubmVyUmVmLFxuICBlbW90aW9uLFxuICAuLi5wcm9wc1xufTogYW55KSB7XG4gIHJldHVybiAoXG4gICAgPGlucHV0XG4gICAgICByZWY9e2lubmVyUmVmfVxuICAgICAgey4uLnByb3BzfVxuICAgICAgY3NzPXt7XG4gICAgICAgIGxhYmVsOiAnZHVtbXlJbnB1dCcsXG4gICAgICAgIC8vIGdldCByaWQgb2YgYW55IGRlZmF1bHQgc3R5bGVzXG4gICAgICAgIGJhY2tncm91bmQ6IDAsXG4gICAgICAgIGJvcmRlcjogMCxcbiAgICAgICAgZm9udFNpemU6ICdpbmhlcml0JyxcbiAgICAgICAgb3V0bGluZTogMCxcbiAgICAgICAgcGFkZGluZzogMCxcbiAgICAgICAgLy8gaW1wb3J0YW50ISB3aXRob3V0IGB3aWR0aGAgYnJvd3NlcnMgd29uJ3QgYWxsb3cgZm9jdXNcbiAgICAgICAgd2lkdGg6IDEsXG5cbiAgICAgICAgLy8gcmVtb3ZlIGN1cnNvciBvbiBkZXNrdG9wXG4gICAgICAgIGNvbG9yOiAndHJhbnNwYXJlbnQnLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gbW9iaWxlIHdoaWxzdCBtYWludGFpbmluZyBcInNjcm9sbCBpbnRvIHZpZXdcIiBiZWhhdmlvdXJcbiAgICAgICAgbGVmdDogLTEwMCxcbiAgICAgICAgb3BhY2l0eTogMCxcbiAgICAgICAgcG9zaXRpb246ICdyZWxhdGl2ZScsXG4gICAgICAgIHRyYW5zZm9ybTogJ3NjYWxlKDApJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */") + })); +} - if (focusedValue) { - _this.removeValue(focusedValue); - } else { - if (!backspaceRemovesValue) return; +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_getPrototypeOf__["a" /* default */])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_getPrototypeOf__["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_possibleConstructorReturn__["a" /* default */])(this, result); }; } - if (isMulti) { - _this.popValue(); - } else if (isClearable) { - _this.clearValue(); - } - } +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } - break; +var NodeResolver = /*#__PURE__*/function (_Component) { + Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_inherits__["a" /* default */])(NodeResolver, _Component); - case 'Tab': - if (_this.isComposing) return; + var _super = _createSuper(NodeResolver); - if (event.shiftKey || !menuIsOpen || !tabSelectsValue || !focusedOption || // don't capture the event if the menu opens on focus and the focused - // option is already selected; it breaks the flow of navigation - openMenuOnFocus && _this.isOptionSelected(focusedOption, selectValue)) { - return; - } + function NodeResolver() { + Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_classCallCheck__["a" /* default */])(this, NodeResolver); - _this.selectOption(focusedOption); + return _super.apply(this, arguments); + } - break; + Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_createClass__["a" /* default */])(NodeResolver, [{ + key: "componentDidMount", + value: function componentDidMount() { + this.props.innerRef(Object(__WEBPACK_IMPORTED_MODULE_14_react_dom__["findDOMNode"])(this)); + } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + this.props.innerRef(null); + } + }, { + key: "render", + value: function render() { + return this.props.children; + } + }]); - case 'Enter': - if (event.keyCode === 229) { - // ignore the keydown event from an Input Method Editor(IME) - // ref. https://www.w3.org/TR/uievents/#determine-keydown-keyup-keyCode - break; - } + return NodeResolver; +}(__WEBPACK_IMPORTED_MODULE_11_react__["Component"]); - if (menuIsOpen) { - if (!focusedOption) return; - if (_this.isComposing) return; +var STYLE_KEYS = ['boxSizing', 'height', 'overflow', 'paddingRight', 'position']; +var LOCK_STYLES = { + boxSizing: 'border-box', + // account for possible declaration `width: 100%;` on body + overflow: 'hidden', + position: 'relative', + height: '100%' +}; - _this.selectOption(focusedOption); +function preventTouchMove(e) { + e.preventDefault(); +} +function allowTouchMove(e) { + e.stopPropagation(); +} +function preventInertiaScroll() { + var top = this.scrollTop; + var totalScroll = this.scrollHeight; + var currentScroll = top + this.offsetHeight; - break; - } + if (top === 0) { + this.scrollTop = 1; + } else if (currentScroll === totalScroll) { + this.scrollTop = top - 1; + } +} // `ontouchstart` check works on most browsers +// `maxTouchPoints` works on IE10/11 and Surface - return; +function isTouchDevice() { + return 'ontouchstart' in window || navigator.maxTouchPoints; +} - case 'Escape': - if (menuIsOpen) { - _this.inputIsHiddenAfterUpdate = false; +function _createSuper$1(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$1(); return function _createSuperInternal() { var Super = Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_getPrototypeOf__["a" /* default */])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_getPrototypeOf__["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_possibleConstructorReturn__["a" /* default */])(this, result); }; } - _this.onInputChange('', { - action: 'menu-close' - }); +function _isNativeReflectConstruct$1() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } +var canUseDOM = !!( window.document && window.document.createElement); +var activeScrollLocks = 0; - _this.onMenuClose(); - } else if (isClearable && escapeClearsValue) { - _this.clearValue(); - } +var ScrollLock = /*#__PURE__*/function (_Component) { + Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_inherits__["a" /* default */])(ScrollLock, _Component); - break; + var _super = _createSuper$1(ScrollLock); - case ' ': - // space - if (inputValue) { - return; - } + function ScrollLock() { + var _this; - if (!menuIsOpen) { - _this.openMenu('first'); + Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_classCallCheck__["a" /* default */])(this, ScrollLock); - break; - } + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } - if (!focusedOption) return; + _this = _super.call.apply(_super, [this].concat(args)); + _this.originalStyles = {}; + _this.listenerOptions = { + capture: false, + passive: false + }; + return _this; + } - _this.selectOption(focusedOption); + Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_createClass__["a" /* default */])(ScrollLock, [{ + key: "componentDidMount", + value: function componentDidMount() { + var _this2 = this; - break; + if (!canUseDOM) return; + var _this$props = this.props, + accountForScrollbars = _this$props.accountForScrollbars, + touchScrollTarget = _this$props.touchScrollTarget; + var target = document.body; + var targetStyle = target && target.style; + + if (accountForScrollbars) { + // store any styles already applied to the body + STYLE_KEYS.forEach(function (key) { + var val = targetStyle && targetStyle[key]; + _this2.originalStyles[key] = val; + }); + } // apply the lock styles and padding if this is the first scroll lock - case 'ArrowUp': - if (menuIsOpen) { - _this.focusOption('up'); - } else { - _this.openMenu('last'); - } - break; + if (accountForScrollbars && activeScrollLocks < 1) { + var currentPadding = parseInt(this.originalStyles.paddingRight, 10) || 0; + var clientWidth = document.body ? document.body.clientWidth : 0; + var adjustedPadding = window.innerWidth - clientWidth + currentPadding || 0; + Object.keys(LOCK_STYLES).forEach(function (key) { + var val = LOCK_STYLES[key]; - case 'ArrowDown': - if (menuIsOpen) { - _this.focusOption('down'); - } else { - _this.openMenu('first'); + if (targetStyle) { + targetStyle[key] = val; } + }); - break; - - case 'PageUp': - if (!menuIsOpen) return; + if (targetStyle) { + targetStyle.paddingRight = "".concat(adjustedPadding, "px"); + } + } // account for touch devices - _this.focusOption('pageup'); - break; + if (target && isTouchDevice()) { + // Mobile Safari ignores { overflow: hidden } declaration on the body. + target.addEventListener('touchmove', preventTouchMove, this.listenerOptions); // Allow scroll on provided target - case 'PageDown': - if (!menuIsOpen) return; + if (touchScrollTarget) { + touchScrollTarget.addEventListener('touchstart', preventInertiaScroll, this.listenerOptions); + touchScrollTarget.addEventListener('touchmove', allowTouchMove, this.listenerOptions); + } + } // increment active scroll locks - _this.focusOption('pagedown'); - break; + activeScrollLocks += 1; + } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + var _this3 = this; - case 'Home': - if (!menuIsOpen) return; + if (!canUseDOM) return; + var _this$props2 = this.props, + accountForScrollbars = _this$props2.accountForScrollbars, + touchScrollTarget = _this$props2.touchScrollTarget; + var target = document.body; + var targetStyle = target && target.style; // safely decrement active scroll locks - _this.focusOption('first'); + activeScrollLocks = Math.max(activeScrollLocks - 1, 0); // reapply original body styles, if any - break; + if (accountForScrollbars && activeScrollLocks < 1) { + STYLE_KEYS.forEach(function (key) { + var val = _this3.originalStyles[key]; - case 'End': - if (!menuIsOpen) return; + if (targetStyle) { + targetStyle[key] = val; + } + }); + } // remove touch listeners - _this.focusOption('last'); - break; + if (target && isTouchDevice()) { + target.removeEventListener('touchmove', preventTouchMove, this.listenerOptions); - default: - return; + if (touchScrollTarget) { + touchScrollTarget.removeEventListener('touchstart', preventInertiaScroll, this.listenerOptions); + touchScrollTarget.removeEventListener('touchmove', allowTouchMove, this.listenerOptions); + } } + } + }, { + key: "render", + value: function render() { + return null; + } + }]); - event.preventDefault(); - }; + return ScrollLock; +}(__WEBPACK_IMPORTED_MODULE_11_react__["Component"]); - _this.buildMenuOptions = function (props, selectValue) { - var _props$inputValue = props.inputValue, - inputValue = _props$inputValue === void 0 ? '' : _props$inputValue, - options = props.options; +ScrollLock.defaultProps = { + accountForScrollbars: true +}; - var toOption = function toOption(option, id) { - var isDisabled = _this.isOptionDisabled(option, selectValue); +function _EMOTION_STRINGIFIED_CSS_ERROR__$1() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } - var isSelected = _this.isOptionSelected(option, selectValue); +function _createSuper$2(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$2(); return function _createSuperInternal() { var Super = Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_getPrototypeOf__["a" /* default */])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_getPrototypeOf__["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_possibleConstructorReturn__["a" /* default */])(this, result); }; } - var label = _this.getOptionLabel(option); +function _isNativeReflectConstruct$2() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } - var value = _this.getOptionValue(option); +var _ref$1 = process.env.NODE_ENV === "production" ? { + name: "1dsbpcp", + styles: "position:fixed;left:0;bottom:0;right:0;top:0;" +} : { + name: "1dsbpcp", + styles: "position:fixed;left:0;bottom:0;right:0;top:0;", + map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbEJsb2NrLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQTZEVSIsImZpbGUiOiJTY3JvbGxCbG9jay5qcyIsInNvdXJjZXNDb250ZW50IjpbIi8vIEBmbG93XG4vKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IFB1cmVDb21wb25lbnQsIHR5cGUgRWxlbWVudCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL2NvcmUnO1xuaW1wb3J0IE5vZGVSZXNvbHZlciBmcm9tICcuL05vZGVSZXNvbHZlcic7XG5pbXBvcnQgU2Nyb2xsTG9jayBmcm9tICcuL1Njcm9sbExvY2svaW5kZXgnO1xuXG50eXBlIFByb3BzID0ge1xuICBjaGlsZHJlbjogRWxlbWVudDwqPixcbiAgaXNFbmFibGVkOiBib29sZWFuLFxufTtcbnR5cGUgU3RhdGUgPSB7XG4gIHRvdWNoU2Nyb2xsVGFyZ2V0OiBIVE1MRWxlbWVudCB8IG51bGwsXG59O1xuXG4vLyBOT1RFOlxuLy8gV2Ugc2hvdWxkbid0IG5lZWQgdGhpcyBhZnRlciB1cGRhdGluZyB0byBSZWFjdCB2MTYuMy4wLCB3aGljaCBpbnRyb2R1Y2VzOlxuLy8gLSBjcmVhdGVSZWYoKSBodHRwczovL3JlYWN0anMub3JnL2RvY3MvcmVhY3QtYXBpLmh0bWwjcmVhY3RjcmVhdGVyZWZcbi8vIC0gZm9yd2FyZFJlZigpIGh0dHBzOi8vcmVhY3Rqcy5vcmcvZG9jcy9yZWFjdC1hcGkuaHRtbCNyZWFjdGZvcndhcmRyZWZcblxuZXhwb3J0IGRlZmF1bHQgY2xhc3MgU2Nyb2xsQmxvY2sgZXh0ZW5kcyBQdXJlQ29tcG9uZW50PFByb3BzLCBTdGF0ZT4ge1xuICBzdGF0ZSA9IHsgdG91Y2hTY3JvbGxUYXJnZXQ6IG51bGwgfTtcblxuICAvLyBtdXN0IGJlIGluIHN0YXRlIHRvIHRyaWdnZXIgYSByZS1yZW5kZXIsIG9ubHkgcnVucyBvbmNlIHBlciBpbnN0YW5jZVxuICBnZXRTY3JvbGxUYXJnZXQgPSAocmVmOiBIVE1MRWxlbWVudCkgPT4ge1xuICAgIGlmIChyZWYgPT09IHRoaXMuc3RhdGUudG91Y2hTY3JvbGxUYXJnZXQpIHJldHVybjtcbiAgICB0aGlzLnNldFN0YXRlKHsgdG91Y2hTY3JvbGxUYXJnZXQ6IHJlZiB9KTtcbiAgfTtcblxuICAvLyB0aGlzIHdpbGwgY2xvc2UgdGhlIG1lbnUgd2hlbiBhIHVzZXIgY2xpY2tzIG91dHNpZGVcbiAgYmx1clNlbGVjdElucHV0ID0gKCkgPT4ge1xuICAgIGlmIChkb2N1bWVudC5hY3RpdmVFbGVtZW50KSB7XG4gICAgICBkb2N1bWVudC5hY3RpdmVFbGVtZW50LmJsdXIoKTtcbiAgICB9XG4gIH07XG5cbiAgcmVuZGVyKCkge1xuICAgIGNvbnN0IHsgY2hpbGRyZW4sIGlzRW5hYmxlZCB9ID0gdGhpcy5wcm9wcztcbiAgICBjb25zdCB7IHRvdWNoU2Nyb2xsVGFyZ2V0IH0gPSB0aGlzLnN0YXRlO1xuXG4gICAgLy8gYmFpbCBlYXJseSBpZiBub3QgZW5hYmxlZFxuICAgIGlmICghaXNFbmFibGVkKSByZXR1cm4gY2hpbGRyZW47XG5cbiAgICAvKlxuICAgICAqIERpdlxuICAgICAqIC0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLVxuICAgICAqIGJsb2NrcyBzY3JvbGxpbmcgb24gbm9uLWJvZHkgZWxlbWVudHMgYmVoaW5kIHRoZSBtZW51XG5cbiAgICAgKiBOb2RlUmVzb2x2ZXJcbiAgICAgKiAtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS1cbiAgICAgKiB3ZSBuZWVkIGEgcmVmZXJlbmNlIHRvIHRoZSBzY3JvbGxhYmxlIGVsZW1lbnQgdG8gXCJ1bmxvY2tcIiBzY3JvbGwgb25cbiAgICAgKiBtb2JpbGUgZGV2aWNlc1xuXG4gICAgICogU2Nyb2xsTG9ja1xuICAgICAqIC0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLVxuICAgICAqIGFjdHVhbGx5IGRvZXMgdGhlIHNjcm9sbCBsb2NraW5nXG4gICAgICovXG4gICAgcmV0dXJuIChcbiAgICAgIDxkaXY+XG4gICAgICAgIDxkaXZcbiAgICAgICAgICBvbkNsaWNrPXt0aGlzLmJsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgICA8Tm9kZVJlc29sdmVyIGlubmVyUmVmPXt0aGlzLmdldFNjcm9sbFRhcmdldH0+e2NoaWxkcmVufTwvTm9kZVJlc29sdmVyPlxuICAgICAgICB7dG91Y2hTY3JvbGxUYXJnZXQgPyAoXG4gICAgICAgICAgPFNjcm9sbExvY2sgdG91Y2hTY3JvbGxUYXJnZXQ9e3RvdWNoU2Nyb2xsVGFyZ2V0fSAvPlxuICAgICAgICApIDogbnVsbH1cbiAgICAgIDwvZGl2PlxuICAgICk7XG4gIH1cbn1cbiJdfQ== */", + toString: _EMOTION_STRINGIFIED_CSS_ERROR__$1 +}; - if (_this.shouldHideSelectedOptions() && isSelected || !_this.filterOption({ - label: label, - value: value, - data: option - }, inputValue)) { - return; - } +// NOTE: +// We shouldn't need this after updating to React v16.3.0, which introduces: +// - createRef() https://reactjs.org/docs/react-api.html#reactcreateref +// - forwardRef() https://reactjs.org/docs/react-api.html#reactforwardref +var ScrollBlock = /*#__PURE__*/function (_PureComponent) { + Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_inherits__["a" /* default */])(ScrollBlock, _PureComponent); - var onHover = isDisabled ? undefined : function () { - return _this.onOptionHover(option); - }; - var onSelect = isDisabled ? undefined : function () { - return _this.selectOption(option); - }; - var optionId = _this.getElementId('option') + "-" + id; - return { - innerProps: { - id: optionId, - onClick: onSelect, - onMouseMove: onHover, - onMouseOver: onHover, - tabIndex: -1 - }, - data: option, - isDisabled: isDisabled, - isSelected: isSelected, - key: optionId, - label: label, - type: 'option', - value: value - }; - }; + var _super = _createSuper$2(ScrollBlock); - return options.reduce(function (acc, item, itemIndex) { - if (item.options) { - // TODO needs a tidier implementation - if (!_this.hasGroups) _this.hasGroups = true; - var items = item.options; - var children = items.map(function (child, i) { - var option = toOption(child, itemIndex + "-" + i); - if (option) acc.focusable.push(child); - return option; - }).filter(Boolean); + function ScrollBlock() { + var _this; - if (children.length) { - var groupId = _this.getElementId('group') + "-" + itemIndex; - acc.render.push({ - type: 'group', - key: groupId, - data: item, - options: children - }); - } - } else { - var option = toOption(item, "" + itemIndex); + Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_classCallCheck__["a" /* default */])(this, ScrollBlock); - if (option) { - acc.render.push(option); - acc.focusable.push(item); - } - } + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } - return acc; - }, { - render: [], - focusable: [] - }); + _this = _super.call.apply(_super, [this].concat(args)); + _this.state = { + touchScrollTarget: null }; - var _value = _props.value; - _this.cacheComponents = __WEBPACK_IMPORTED_MODULE_1_memoize_one__["a" /* default */](_this.cacheComponents, __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["y" /* x */]).bind(_assertThisInitialized(_assertThisInitialized(_this))); - - _this.cacheComponents(_props.components); - - _this.instancePrefix = 'react-select-' + (_this.props.instanceId || ++instanceId); - - var _selectValue = __WEBPACK_IMPORTED_MODULE_4__utils_06b0d5a4_browser_esm_js__["e"](_value); + _this.getScrollTarget = function (ref) { + if (ref === _this.state.touchScrollTarget) return; - _this.buildMenuOptions = __WEBPACK_IMPORTED_MODULE_1_memoize_one__["a" /* default */](_this.buildMenuOptions, function (newArgs, lastArgs) { - var _ref6 = newArgs, - newProps = _ref6[0], - newSelectValue = _ref6[1]; - var _ref7 = lastArgs, - lastProps = _ref7[0], - lastSelectValue = _ref7[1]; - return __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["y" /* x */](newSelectValue, lastSelectValue) && __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["y" /* x */](newProps.inputValue, lastProps.inputValue) && __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["y" /* x */](newProps.options, lastProps.options); - }).bind(_assertThisInitialized(_assertThisInitialized(_this))); + _this.setState({ + touchScrollTarget: ref + }); + }; - var _menuOptions = _props.menuIsOpen ? _this.buildMenuOptions(_props, _selectValue) : { - render: [], - focusable: [] + _this.blurSelectInput = function () { + if (document.activeElement) { + document.activeElement.blur(); + } }; - _this.state.menuOptions = _menuOptions; - _this.state.selectValue = _selectValue; return _this; } - var _proto = Select.prototype; - - _proto.componentDidMount = function componentDidMount() { - this.startListeningComposition(); - this.startListeningToTouch(); + Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_createClass__["a" /* default */])(ScrollBlock, [{ + key: "render", + value: function render() { + var _this$props = this.props, + children = _this$props.children, + isEnabled = _this$props.isEnabled; + var touchScrollTarget = this.state.touchScrollTarget; // bail early if not enabled - if (this.props.closeMenuOnScroll && document && document.addEventListener) { - // Listen to all scroll events, and filter them out inside of 'onScroll' - document.addEventListener('scroll', this.onScroll, true); - } + if (!isEnabled) return children; + /* + * Div + * ------------------------------ + * blocks scrolling on non-body elements behind the menu + * NodeResolver + * ------------------------------ + * we need a reference to the scrollable element to "unlock" scroll on + * mobile devices + * ScrollLock + * ------------------------------ + * actually does the scroll locking + */ - if (this.props.autoFocus) { - this.focusInput(); + return Object(__WEBPACK_IMPORTED_MODULE_13__emotion_core__["c" /* jsx */])("div", null, Object(__WEBPACK_IMPORTED_MODULE_13__emotion_core__["c" /* jsx */])("div", { + onClick: this.blurSelectInput, + css: _ref$1 + }), Object(__WEBPACK_IMPORTED_MODULE_13__emotion_core__["c" /* jsx */])(NodeResolver, { + innerRef: this.getScrollTarget + }, children), touchScrollTarget ? Object(__WEBPACK_IMPORTED_MODULE_13__emotion_core__["c" /* jsx */])(ScrollLock, { + touchScrollTarget: touchScrollTarget + }) : null); } - }; - - _proto.UNSAFE_componentWillReceiveProps = function UNSAFE_componentWillReceiveProps(nextProps) { - var _this$props8 = this.props, - options = _this$props8.options, - value = _this$props8.value, - menuIsOpen = _this$props8.menuIsOpen, - inputValue = _this$props8.inputValue; // re-cache custom components + }]); - this.cacheComponents(nextProps.components); // rebuild the menu options + return ScrollBlock; +}(__WEBPACK_IMPORTED_MODULE_11_react__["PureComponent"]); - if (nextProps.value !== value || nextProps.options !== options || nextProps.menuIsOpen !== menuIsOpen || nextProps.inputValue !== inputValue) { - var selectValue = __WEBPACK_IMPORTED_MODULE_4__utils_06b0d5a4_browser_esm_js__["e"](nextProps.value); - var menuOptions = nextProps.menuIsOpen ? this.buildMenuOptions(nextProps, selectValue) : { - render: [], - focusable: [] - }; - var focusedValue = this.getNextFocusedValue(selectValue); - var focusedOption = this.getNextFocusedOption(menuOptions.focusable); - this.setState({ - menuOptions: menuOptions, - selectValue: selectValue, - focusedOption: focusedOption, - focusedValue: focusedValue - }); - } // some updates should toggle the state of the input visibility +function _createSuper$3(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$3(); return function _createSuperInternal() { var Super = Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_getPrototypeOf__["a" /* default */])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_getPrototypeOf__["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_possibleConstructorReturn__["a" /* default */])(this, result); }; } +function _isNativeReflectConstruct$3() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } - if (this.inputIsHiddenAfterUpdate != null) { - this.setState({ - inputIsHidden: this.inputIsHiddenAfterUpdate - }); - delete this.inputIsHiddenAfterUpdate; - } - }; +var ScrollCaptor = /*#__PURE__*/function (_Component) { + Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_inherits__["a" /* default */])(ScrollCaptor, _Component); - _proto.componentDidUpdate = function componentDidUpdate(prevProps) { - var _this$props9 = this.props, - isDisabled = _this$props9.isDisabled, - menuIsOpen = _this$props9.menuIsOpen; - var isFocused = this.state.isFocused; + var _super = _createSuper$3(ScrollCaptor); - if ( // ensure focus is restored correctly when the control becomes enabled - isFocused && !isDisabled && prevProps.isDisabled || // ensure focus is on the Input when the menu opens - isFocused && menuIsOpen && !prevProps.menuIsOpen) { - this.focusInput(); - } // scroll the focused option into view if necessary + function ScrollCaptor() { + var _this; + Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_classCallCheck__["a" /* default */])(this, ScrollCaptor); - if (this.menuListRef && this.focusedOptionRef && this.scrollToFocusedOptionOnUpdate) { - __WEBPACK_IMPORTED_MODULE_4__utils_06b0d5a4_browser_esm_js__["f"](this.menuListRef, this.focusedOptionRef); - this.scrollToFocusedOptionOnUpdate = false; + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; } - }; - _proto.componentWillUnmount = function componentWillUnmount() { - this.stopListeningComposition(); - this.stopListeningToTouch(); - document.removeEventListener('scroll', this.onScroll, true); - }; + _this = _super.call.apply(_super, [this].concat(args)); + _this.isBottom = false; + _this.isTop = false; + _this.scrollTarget = void 0; + _this.touchStart = void 0; - // ============================== - // Consumer Handlers - // ============================== - _proto.onMenuOpen = function onMenuOpen() { - this.props.onMenuOpen(); - }; + _this.cancelScroll = function (event) { + event.preventDefault(); + event.stopPropagation(); + }; + + _this.handleEventDelta = function (event, delta) { + var _this$props = _this.props, + onBottomArrive = _this$props.onBottomArrive, + onBottomLeave = _this$props.onBottomLeave, + onTopArrive = _this$props.onTopArrive, + onTopLeave = _this$props.onTopLeave; + var _this$scrollTarget = _this.scrollTarget, + scrollTop = _this$scrollTarget.scrollTop, + scrollHeight = _this$scrollTarget.scrollHeight, + clientHeight = _this$scrollTarget.clientHeight; + var target = _this.scrollTarget; + var isDeltaPositive = delta > 0; + var availableScroll = scrollHeight - clientHeight - scrollTop; + var shouldCancelScroll = false; // reset bottom/top flags - _proto.onMenuClose = function onMenuClose() { - var _this$props10 = this.props, - isSearchable = _this$props10.isSearchable, - isMulti = _this$props10.isMulti; - this.announceAriaLiveContext({ - event: 'input', - context: { - isSearchable: isSearchable, - isMulti: isMulti + if (availableScroll > delta && _this.isBottom) { + if (onBottomLeave) onBottomLeave(event); + _this.isBottom = false; } - }); - this.onInputChange('', { - action: 'menu-close' - }); - this.props.onMenuClose(); - }; - _proto.onInputChange = function onInputChange(newValue, actionMeta) { - this.props.onInputChange(newValue, actionMeta); - } // ============================== - // Methods - // ============================== - ; + if (isDeltaPositive && _this.isTop) { + if (onTopLeave) onTopLeave(event); + _this.isTop = false; + } // bottom limit - _proto.focusInput = function focusInput() { - if (!this.inputRef) return; - this.inputRef.focus(); - }; - _proto.blurInput = function blurInput() { - if (!this.inputRef) return; - this.inputRef.blur(); - } // aliased for consumers - ; + if (isDeltaPositive && delta > availableScroll) { + if (onBottomArrive && !_this.isBottom) { + onBottomArrive(event); + } - _proto.openMenu = function openMenu(focusOption) { - var _this2 = this; + target.scrollTop = scrollHeight; + shouldCancelScroll = true; + _this.isBottom = true; // top limit + } else if (!isDeltaPositive && -delta > scrollTop) { + if (onTopArrive && !_this.isTop) { + onTopArrive(event); + } - var _this$state3 = this.state, - selectValue = _this$state3.selectValue, - isFocused = _this$state3.isFocused; - var menuOptions = this.buildMenuOptions(this.props, selectValue); - var isMulti = this.props.isMulti; - var openAtIndex = focusOption === 'first' ? 0 : menuOptions.focusable.length - 1; + target.scrollTop = 0; + shouldCancelScroll = true; + _this.isTop = true; + } // cancel scroll - if (!isMulti) { - var selectedIndex = menuOptions.focusable.indexOf(selectValue[0]); - if (selectedIndex > -1) { - openAtIndex = selectedIndex; + if (shouldCancelScroll) { + _this.cancelScroll(event); } - } // only scroll if the menu isn't already open + }; + + _this.onWheel = function (event) { + _this.handleEventDelta(event, event.deltaY); + }; + _this.onTouchStart = function (event) { + // set touch start so we can calculate touchmove delta + _this.touchStart = event.changedTouches[0].clientY; + }; - this.scrollToFocusedOptionOnUpdate = !(isFocused && this.menuListRef); - this.inputIsHiddenAfterUpdate = false; - this.setState({ - menuOptions: menuOptions, - focusedValue: null, - focusedOption: menuOptions.focusable[openAtIndex] - }, function () { - _this2.onMenuOpen(); + _this.onTouchMove = function (event) { + var deltaY = _this.touchStart - event.changedTouches[0].clientY; - _this2.announceAriaLiveContext({ - event: 'menu' - }); - }); - }; + _this.handleEventDelta(event, deltaY); + }; - _proto.focusValue = function focusValue(direction) { - var _this$props11 = this.props, - isMulti = _this$props11.isMulti, - isSearchable = _this$props11.isSearchable; - var _this$state4 = this.state, - selectValue = _this$state4.selectValue, - focusedValue = _this$state4.focusedValue; // Only multiselects support value focusing + _this.getScrollTarget = function (ref) { + _this.scrollTarget = ref; + }; - if (!isMulti) return; - this.setState({ - focusedOption: null - }); - var focusedIndex = selectValue.indexOf(focusedValue); + return _this; + } - if (!focusedValue) { - focusedIndex = -1; - this.announceAriaLiveContext({ - event: 'value' - }); + Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_createClass__["a" /* default */])(ScrollCaptor, [{ + key: "componentDidMount", + value: function componentDidMount() { + this.startListening(this.scrollTarget); } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + this.stopListening(this.scrollTarget); + } + }, { + key: "startListening", + value: function startListening(el) { + // bail early if no element is available to attach to + if (!el) return; // all the if statements are to appease Flow ๐Ÿ˜ข - var lastIndex = selectValue.length - 1; - var nextFocus = -1; - if (!selectValue.length) return; - - switch (direction) { - case 'previous': - if (focusedIndex === 0) { - // don't cycle from the start to the end - nextFocus = 0; - } else if (focusedIndex === -1) { - // if nothing is focused, focus the last value first - nextFocus = lastIndex; - } else { - nextFocus = focusedIndex - 1; - } + if (typeof el.addEventListener === 'function') { + el.addEventListener('wheel', this.onWheel, false); + } - break; + if (typeof el.addEventListener === 'function') { + el.addEventListener('touchstart', this.onTouchStart, false); + } - case 'next': - if (focusedIndex > -1 && focusedIndex < lastIndex) { - nextFocus = focusedIndex + 1; - } - - break; + if (typeof el.addEventListener === 'function') { + el.addEventListener('touchmove', this.onTouchMove, false); + } } + }, { + key: "stopListening", + value: function stopListening(el) { + if (!el) return; // all the if statements are to appease Flow ๐Ÿ˜ข - if (nextFocus === -1) { - this.announceAriaLiveContext({ - event: 'input', - context: { - isSearchable: isSearchable, - isMulti: isMulti - } - }); - } + if (typeof el.removeEventListener === 'function') { + el.removeEventListener('wheel', this.onWheel, false); + } - this.setState({ - inputIsHidden: nextFocus !== -1, - focusedValue: selectValue[nextFocus] - }); - }; + if (typeof el.removeEventListener === 'function') { + el.removeEventListener('touchstart', this.onTouchStart, false); + } - _proto.focusOption = function focusOption(direction) { - if (direction === void 0) { - direction = 'first'; + if (typeof el.removeEventListener === 'function') { + el.removeEventListener('touchmove', this.onTouchMove, false); + } } + }, { + key: "render", + value: function render() { + return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(NodeResolver, { + innerRef: this.getScrollTarget + }, this.props.children); + } + }]); - var pageSize = this.props.pageSize; - var _this$state5 = this.state, - focusedOption = _this$state5.focusedOption, - menuOptions = _this$state5.menuOptions; - var options = menuOptions.focusable; - if (!options.length) return; - var nextFocus = 0; // handles 'first' + return ScrollCaptor; +}(__WEBPACK_IMPORTED_MODULE_11_react__["Component"]); - var focusedIndex = options.indexOf(focusedOption); +function ScrollCaptorSwitch(_ref) { + var _ref$isEnabled = _ref.isEnabled, + isEnabled = _ref$isEnabled === void 0 ? true : _ref$isEnabled, + props = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(_ref, ["isEnabled"]); - if (!focusedOption) { - focusedIndex = -1; - this.announceAriaLiveContext({ - event: 'menu' - }); - } + return isEnabled ? /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(ScrollCaptor, props) : props.children; +} - if (direction === 'up') { - nextFocus = focusedIndex > 0 ? focusedIndex - 1 : options.length - 1; - } else if (direction === 'down') { - nextFocus = (focusedIndex + 1) % options.length; - } else if (direction === 'pageup') { - nextFocus = focusedIndex - pageSize; - if (nextFocus < 0) nextFocus = 0; - } else if (direction === 'pagedown') { - nextFocus = focusedIndex + pageSize; - if (nextFocus > options.length - 1) nextFocus = options.length - 1; - } else if (direction === 'last') { - nextFocus = options.length - 1; - } +var instructionsAriaMessage = function instructionsAriaMessage(event) { + var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var isSearchable = context.isSearchable, + isMulti = context.isMulti, + label = context.label, + isDisabled = context.isDisabled, + tabSelectsValue = context.tabSelectsValue; - this.scrollToFocusedOptionOnUpdate = true; - this.setState({ - focusedOption: options[nextFocus], - focusedValue: null - }); - this.announceAriaLiveContext({ - event: 'menu', - context: { - isDisabled: isOptionDisabled(options[nextFocus]) - } - }); - }; + switch (event) { + case 'menu': + return "Use Up and Down to choose options".concat(isDisabled ? '' : ', press Enter to select the currently focused option', ", press Escape to exit the menu").concat(tabSelectsValue ? ', press Tab to select the option and exit the menu' : '', "."); - // ============================== - // Getters - // ============================== - _proto.getTheme = function getTheme() { - // Use the default theme if there are no customizations. - if (!this.props.theme) { - return defaultTheme; - } // If the theme prop is a function, assume the function - // knows how to merge the passed-in default theme with - // its own modifications. + case 'input': + return "".concat(label ? label : 'Select', " is focused ").concat(isSearchable ? ',type to refine list' : '', ", press Down to open the menu, ").concat(isMulti ? ' press left to focus selected values' : ''); + case 'value': + return 'Use left and right to toggle between focused values, press Backspace to remove the currently focused value'; + } +}; +var valueEventAriaMessage = function valueEventAriaMessage(event, context) { + var value = context.value, + isDisabled = context.isDisabled; + if (!value) return; - if (typeof this.props.theme === 'function') { - return this.props.theme(defaultTheme); - } // Otherwise, if a plain theme object was passed in, - // overlay it with the default theme. + switch (event) { + case 'deselect-option': + case 'pop-value': + case 'remove-value': + return "option ".concat(value, ", deselected."); + case 'select-option': + return isDisabled ? "option ".concat(value, " is disabled. Select another option.") : "option ".concat(value, ", selected."); + } +}; +var valueFocusAriaMessage = function valueFocusAriaMessage(_ref) { + var focusedValue = _ref.focusedValue, + getOptionLabel = _ref.getOptionLabel, + selectValue = _ref.selectValue; + return "value ".concat(getOptionLabel(focusedValue), " focused, ").concat(selectValue.indexOf(focusedValue) + 1, " of ").concat(selectValue.length, "."); +}; +var optionFocusAriaMessage = function optionFocusAriaMessage(_ref2) { + var focusedOption = _ref2.focusedOption, + getOptionLabel = _ref2.getOptionLabel, + options = _ref2.options; + return "option ".concat(getOptionLabel(focusedOption), " focused").concat(focusedOption.isDisabled ? ' disabled' : '', ", ").concat(options.indexOf(focusedOption) + 1, " of ").concat(options.length, "."); +}; +var resultsAriaMessage = function resultsAriaMessage(_ref3) { + var inputValue = _ref3.inputValue, + screenReaderMessage = _ref3.screenReaderMessage; + return "".concat(screenReaderMessage).concat(inputValue ? ' for search term ' + inputValue : '', "."); +}; - return _extends$4({}, defaultTheme, this.props.theme); - }; +var formatGroupLabel = function formatGroupLabel(group) { + return group.label; +}; +var getOptionLabel = function getOptionLabel(option) { + return option.label; +}; +var getOptionValue = function getOptionValue(option) { + return option.value; +}; +var isOptionDisabled = function isOptionDisabled(option) { + return !!option.isDisabled; +}; - _proto.getCommonProps = function getCommonProps() { - var clearValue = this.clearValue, - getStyles = this.getStyles, - setValue = this.setValue, - selectOption = this.selectOption, - props = this.props; - var classNamePrefix = props.classNamePrefix, - isMulti = props.isMulti, - isRtl = props.isRtl, - options = props.options; - var selectValue = this.state.selectValue; - var hasValue = this.hasValue(); - - var getValue = function getValue() { - return selectValue; - }; +function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } - var cx = __WEBPACK_IMPORTED_MODULE_4__utils_06b0d5a4_browser_esm_js__["h"].bind(null, classNamePrefix); - return { - cx: cx, - clearValue: clearValue, - getStyles: getStyles, - getValue: getValue, - hasValue: hasValue, - isMulti: isMulti, - isRtl: isRtl, - options: options, - selectOption: selectOption, - setValue: setValue, - selectProps: props, - theme: this.getTheme() - }; - }; +function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$1(Object(source), true).forEach(function (key) { Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } +var defaultStyles = { + clearIndicator: __WEBPACK_IMPORTED_MODULE_15__index_75b02bac_browser_esm_js__["i" /* c */], + container: __WEBPACK_IMPORTED_MODULE_15__index_75b02bac_browser_esm_js__["g" /* a */], + control: __WEBPACK_IMPORTED_MODULE_15__index_75b02bac_browser_esm_js__["h" /* b */], + dropdownIndicator: __WEBPACK_IMPORTED_MODULE_15__index_75b02bac_browser_esm_js__["j" /* d */], + group: __WEBPACK_IMPORTED_MODULE_15__index_75b02bac_browser_esm_js__["m" /* g */], + groupHeading: __WEBPACK_IMPORTED_MODULE_15__index_75b02bac_browser_esm_js__["k" /* e */], + indicatorsContainer: __WEBPACK_IMPORTED_MODULE_15__index_75b02bac_browser_esm_js__["o" /* i */], + indicatorSeparator: __WEBPACK_IMPORTED_MODULE_15__index_75b02bac_browser_esm_js__["l" /* f */], + input: __WEBPACK_IMPORTED_MODULE_15__index_75b02bac_browser_esm_js__["n" /* h */], + loadingIndicator: __WEBPACK_IMPORTED_MODULE_15__index_75b02bac_browser_esm_js__["r" /* l */], + loadingMessage: __WEBPACK_IMPORTED_MODULE_15__index_75b02bac_browser_esm_js__["p" /* j */], + menu: __WEBPACK_IMPORTED_MODULE_15__index_75b02bac_browser_esm_js__["s" /* m */], + menuList: __WEBPACK_IMPORTED_MODULE_15__index_75b02bac_browser_esm_js__["q" /* k */], + menuPortal: __WEBPACK_IMPORTED_MODULE_15__index_75b02bac_browser_esm_js__["t" /* n */], + multiValue: __WEBPACK_IMPORTED_MODULE_15__index_75b02bac_browser_esm_js__["u" /* o */], + multiValueLabel: __WEBPACK_IMPORTED_MODULE_15__index_75b02bac_browser_esm_js__["v" /* p */], + multiValueRemove: __WEBPACK_IMPORTED_MODULE_15__index_75b02bac_browser_esm_js__["w" /* q */], + noOptionsMessage: __WEBPACK_IMPORTED_MODULE_15__index_75b02bac_browser_esm_js__["x" /* r */], + option: __WEBPACK_IMPORTED_MODULE_15__index_75b02bac_browser_esm_js__["y" /* s */], + placeholder: __WEBPACK_IMPORTED_MODULE_15__index_75b02bac_browser_esm_js__["z" /* t */], + singleValue: __WEBPACK_IMPORTED_MODULE_15__index_75b02bac_browser_esm_js__["A" /* u */], + valueContainer: __WEBPACK_IMPORTED_MODULE_15__index_75b02bac_browser_esm_js__["B" /* v */] +}; // Merge Utility +// Allows consumers to extend a base Select with additional styles - _proto.getNextFocusedValue = function getNextFocusedValue(nextSelectValue) { - if (this.clearFocusValueOnUpdate) { - this.clearFocusValueOnUpdate = false; - return null; - } +function mergeStyles(source) { + var target = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - var _this$state6 = this.state, - focusedValue = _this$state6.focusedValue, - lastSelectValue = _this$state6.selectValue; - var lastFocusedIndex = lastSelectValue.indexOf(focusedValue); + // initialize with source styles + var styles = _objectSpread$1({}, source); // massage in target styles - if (lastFocusedIndex > -1) { - var nextFocusedIndex = nextSelectValue.indexOf(focusedValue); - if (nextFocusedIndex > -1) { - // the focused value is still in the selectValue, return it - return focusedValue; - } else if (lastFocusedIndex < nextSelectValue.length) { - // the focusedValue is not present in the next selectValue array by - // reference, so return the new value at the same index - return nextSelectValue[lastFocusedIndex]; - } + Object.keys(target).forEach(function (key) { + if (source[key]) { + styles[key] = function (rsCss, props) { + return target[key](source[key](rsCss, props), props); + }; + } else { + styles[key] = target[key]; } + }); + return styles; +} - return null; - }; - - _proto.getNextFocusedOption = function getNextFocusedOption(options) { - var lastFocusedOption = this.state.focusedOption; - return lastFocusedOption && options.indexOf(lastFocusedOption) > -1 ? lastFocusedOption : options[0]; - }; +var colors = { + primary: '#2684FF', + primary75: '#4C9AFF', + primary50: '#B2D4FF', + primary25: '#DEEBFF', + danger: '#DE350B', + dangerLight: '#FFBDAD', + neutral0: 'hsl(0, 0%, 100%)', + neutral5: 'hsl(0, 0%, 95%)', + neutral10: 'hsl(0, 0%, 90%)', + neutral20: 'hsl(0, 0%, 80%)', + neutral30: 'hsl(0, 0%, 70%)', + neutral40: 'hsl(0, 0%, 60%)', + neutral50: 'hsl(0, 0%, 50%)', + neutral60: 'hsl(0, 0%, 40%)', + neutral70: 'hsl(0, 0%, 30%)', + neutral80: 'hsl(0, 0%, 20%)', + neutral90: 'hsl(0, 0%, 10%)' +}; +var borderRadius = 4; // Used to calculate consistent margin/padding on elements - _proto.hasValue = function hasValue() { - var selectValue = this.state.selectValue; - return selectValue.length > 0; - }; +var baseUnit = 4; // The minimum height of the control - _proto.hasOptions = function hasOptions() { - return !!this.state.menuOptions.render.length; - }; +var controlHeight = 38; // The amount of space between the control and menu */ - _proto.countOptions = function countOptions() { - return this.state.menuOptions.focusable.length; - }; +var menuGutter = baseUnit * 2; +var spacing = { + baseUnit: baseUnit, + controlHeight: controlHeight, + menuGutter: menuGutter +}; +var defaultTheme = { + borderRadius: borderRadius, + colors: colors, + spacing: spacing +}; - _proto.isClearable = function isClearable() { - var _this$props12 = this.props, - isClearable = _this$props12.isClearable, - isMulti = _this$props12.isMulti; // single select, by default, IS NOT clearable - // multi select, by default, IS clearable +function ownKeys$2(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } - if (isClearable === undefined) return isMulti; - return isClearable; - }; +function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$2(Object(source), true).forEach(function (key) { Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$2(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } - _proto.isOptionDisabled = function isOptionDisabled(option, selectValue) { - return typeof this.props.isOptionDisabled === 'function' ? this.props.isOptionDisabled(option, selectValue) : false; - }; +function _createSuper$4(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$4(); return function _createSuperInternal() { var Super = Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_getPrototypeOf__["a" /* default */])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_getPrototypeOf__["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_possibleConstructorReturn__["a" /* default */])(this, result); }; } - _proto.isOptionSelected = function isOptionSelected(option, selectValue) { - var _this3 = this; +function _isNativeReflectConstruct$4() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } +var defaultProps = { + backspaceRemovesValue: true, + blurInputOnSelect: Object(__WEBPACK_IMPORTED_MODULE_15__index_75b02bac_browser_esm_js__["C" /* w */])(), + captureMenuScroll: !Object(__WEBPACK_IMPORTED_MODULE_15__index_75b02bac_browser_esm_js__["C" /* w */])(), + closeMenuOnSelect: true, + closeMenuOnScroll: false, + components: {}, + controlShouldRenderValue: true, + escapeClearsValue: false, + filterOption: createFilter(), + formatGroupLabel: formatGroupLabel, + getOptionLabel: getOptionLabel, + getOptionValue: getOptionValue, + isDisabled: false, + isLoading: false, + isMulti: false, + isRtl: false, + isSearchable: true, + isOptionDisabled: isOptionDisabled, + loadingMessage: function loadingMessage() { + return 'Loading...'; + }, + maxMenuHeight: 300, + minMenuHeight: 140, + menuIsOpen: false, + menuPlacement: 'bottom', + menuPosition: 'absolute', + menuShouldBlockScroll: false, + menuShouldScrollIntoView: !Object(__WEBPACK_IMPORTED_MODULE_15__index_75b02bac_browser_esm_js__["D" /* x */])(), + noOptionsMessage: function noOptionsMessage() { + return 'No options'; + }, + openMenuOnFocus: false, + openMenuOnClick: true, + options: [], + pageSize: 5, + placeholder: 'Select...', + screenReaderStatus: function screenReaderStatus(_ref) { + var count = _ref.count; + return "".concat(count, " result").concat(count !== 1 ? 's' : '', " available"); + }, + styles: {}, + tabIndex: '0', + tabSelectsValue: true +}; +var instanceId = 1; - if (selectValue.indexOf(option) > -1) return true; +var Select = /*#__PURE__*/function (_Component) { + Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_inherits__["a" /* default */])(Select, _Component); - if (typeof this.props.isOptionSelected === 'function') { - return this.props.isOptionSelected(option, selectValue); - } + var _super = _createSuper$4(Select); - var candidate = this.getOptionValue(option); - return selectValue.some(function (i) { - return _this3.getOptionValue(i) === candidate; - }); - }; + // Misc. Instance Properties + // ------------------------------ + // TODO + // Refs + // ------------------------------ + // Lifecycle + // ------------------------------ + function Select(_props) { + var _this; - _proto.filterOption = function filterOption(option, inputValue) { - return this.props.filterOption ? this.props.filterOption(option, inputValue) : true; - }; + Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_classCallCheck__["a" /* default */])(this, Select); - _proto.formatOptionLabel = function formatOptionLabel(data, context) { - if (typeof this.props.formatOptionLabel === 'function') { - var inputValue = this.props.inputValue; - var selectValue = this.state.selectValue; - return this.props.formatOptionLabel(data, { - context: context, - inputValue: inputValue, - selectValue: selectValue - }); - } else { - return this.getOptionLabel(data); - } - }; + _this = _super.call(this, _props); + _this.state = { + ariaLiveSelection: '', + ariaLiveContext: '', + focusedOption: null, + focusedValue: null, + inputIsHidden: false, + isFocused: false, + menuOptions: { + render: [], + focusable: [] + }, + selectValue: [] + }; + _this.blockOptionHover = false; + _this.isComposing = false; + _this.clearFocusValueOnUpdate = false; + _this.commonProps = void 0; + _this.components = void 0; + _this.hasGroups = false; + _this.initialTouchX = 0; + _this.initialTouchY = 0; + _this.inputIsHiddenAfterUpdate = void 0; + _this.instancePrefix = ''; + _this.openAfterFocus = false; + _this.scrollToFocusedOptionOnUpdate = false; + _this.userIsDragging = void 0; + _this.controlRef = null; - _proto.formatGroupLabel = function formatGroupLabel(data) { - return this.props.formatGroupLabel(data); - } // ============================== - // Mouse Handlers - // ============================== - ; + _this.getControlRef = function (ref) { + _this.controlRef = ref; + }; - // ============================== - // Composition Handlers - // ============================== - _proto.startListeningComposition = function startListeningComposition() { - if (document && document.addEventListener) { - document.addEventListener('compositionstart', this.onCompositionStart, false); - document.addEventListener('compositionend', this.onCompositionEnd, false); - } - }; + _this.focusedOptionRef = null; - _proto.stopListeningComposition = function stopListeningComposition() { - if (document && document.removeEventListener) { - document.removeEventListener('compositionstart', this.onCompositionStart); - document.removeEventListener('compositionend', this.onCompositionEnd); - } - }; + _this.getFocusedOptionRef = function (ref) { + _this.focusedOptionRef = ref; + }; - // ============================== - // Touch Handlers - // ============================== - _proto.startListeningToTouch = function startListeningToTouch() { - if (document && document.addEventListener) { - document.addEventListener('touchstart', this.onTouchStart, false); - document.addEventListener('touchmove', this.onTouchMove, false); - document.addEventListener('touchend', this.onTouchEnd, false); - } - }; + _this.menuListRef = null; - _proto.stopListeningToTouch = function stopListeningToTouch() { - if (document && document.removeEventListener) { - document.removeEventListener('touchstart', this.onTouchStart); - document.removeEventListener('touchmove', this.onTouchMove); - document.removeEventListener('touchend', this.onTouchEnd); - } - }; + _this.getMenuListRef = function (ref) { + _this.menuListRef = ref; + }; - // ============================== - // Renderers - // ============================== - _proto.constructAriaLiveMessage = function constructAriaLiveMessage() { - var _this$state7 = this.state, - ariaLiveContext = _this$state7.ariaLiveContext, - selectValue = _this$state7.selectValue, - focusedValue = _this$state7.focusedValue, - focusedOption = _this$state7.focusedOption; - var _this$props13 = this.props, - options = _this$props13.options, - menuIsOpen = _this$props13.menuIsOpen, - inputValue = _this$props13.inputValue, - screenReaderStatus = _this$props13.screenReaderStatus; // An aria live message representing the currently focused value in the select. - - var focusedValueMsg = focusedValue ? valueFocusAriaMessage({ - focusedValue: focusedValue, - getOptionLabel: this.getOptionLabel, - selectValue: selectValue - }) : ''; // An aria live message representing the currently focused option in the select. - - var focusedOptionMsg = focusedOption && menuIsOpen ? optionFocusAriaMessage({ - focusedOption: focusedOption, - getOptionLabel: this.getOptionLabel, - options: options - }) : ''; // An aria live message representing the set of focusable results and current searchterm/inputvalue. - - var resultsMsg = resultsAriaMessage({ - inputValue: inputValue, - screenReaderMessage: screenReaderStatus({ - count: this.countOptions() - }) - }); - return focusedValueMsg + " " + focusedOptionMsg + " " + resultsMsg + " " + ariaLiveContext; - }; + _this.inputRef = null; - _proto.renderInput = function renderInput() { - var _this$props14 = this.props, - isDisabled = _this$props14.isDisabled, - isSearchable = _this$props14.isSearchable, - inputId = _this$props14.inputId, - inputValue = _this$props14.inputValue, - tabIndex = _this$props14.tabIndex; - var Input = this.components.Input; - var inputIsHidden = this.state.inputIsHidden; - var id = inputId || this.getElementId('input'); // aria attributes makes the JSX "noisy", separated for clarity - - var ariaAttributes = { - 'aria-autocomplete': 'list', - 'aria-label': this.props['aria-label'], - 'aria-labelledby': this.props['aria-labelledby'] + _this.getInputRef = function (ref) { + _this.inputRef = ref; }; - if (!isSearchable) { - // use a dummy input to maintain focus/blur functionality - return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(DummyInput, _extends$4({ - id: id, - innerRef: this.getInputRef, - onBlur: this.onInputBlur, - onChange: __WEBPACK_IMPORTED_MODULE_4__utils_06b0d5a4_browser_esm_js__["k" /* n */], - onFocus: this.onInputFocus, - readOnly: true, - disabled: isDisabled, - tabIndex: tabIndex, - value: "" - }, ariaAttributes)); - } + _this.cacheComponents = function (components) { + _this.components = Object(__WEBPACK_IMPORTED_MODULE_15__index_75b02bac_browser_esm_js__["E" /* y */])({ + components: components + }); + }; - var _this$commonProps = this.commonProps, - cx = _this$commonProps.cx, - theme = _this$commonProps.theme, - selectProps = _this$commonProps.selectProps; - return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Input, _extends$4({ - autoCapitalize: "none", - autoComplete: "off", - autoCorrect: "off", - cx: cx, - getStyles: this.getStyles, - id: id, - innerRef: this.getInputRef, - isDisabled: isDisabled, - isHidden: inputIsHidden, - onBlur: this.onInputBlur, - onChange: this.handleInputChange, - onFocus: this.onInputFocus, - selectProps: selectProps, - spellCheck: "false", - tabIndex: tabIndex, - theme: theme, - type: "text", - value: inputValue - }, ariaAttributes)); - }; + _this.focus = _this.focusInput; + _this.blur = _this.blurInput; - _proto.renderPlaceholderOrValue = function renderPlaceholderOrValue() { - var _this4 = this; + _this.onChange = function (newValue, actionMeta) { + var _this$props = _this.props, + onChange = _this$props.onChange, + name = _this$props.name; + onChange(newValue, _objectSpread$2(_objectSpread$2({}, actionMeta), {}, { + name: name + })); + }; - var _this$components = this.components, - MultiValue = _this$components.MultiValue, - MultiValueContainer = _this$components.MultiValueContainer, - MultiValueLabel = _this$components.MultiValueLabel, - MultiValueRemove = _this$components.MultiValueRemove, - SingleValue = _this$components.SingleValue, - Placeholder = _this$components.Placeholder; - var commonProps = this.commonProps; - var _this$props15 = this.props, - controlShouldRenderValue = _this$props15.controlShouldRenderValue, - isDisabled = _this$props15.isDisabled, - isMulti = _this$props15.isMulti, - inputValue = _this$props15.inputValue, - placeholder = _this$props15.placeholder; - var _this$state8 = this.state, - selectValue = _this$state8.selectValue, - focusedValue = _this$state8.focusedValue, - isFocused = _this$state8.isFocused; - - if (!this.hasValue() || !controlShouldRenderValue) { - return inputValue ? null : __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Placeholder, _extends$4({}, commonProps, { - key: "placeholder", - isDisabled: isDisabled, - isFocused: isFocused - }), placeholder); - } + _this.setValue = function (newValue) { + var action = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'set-value'; + var option = arguments.length > 2 ? arguments[2] : undefined; + var _this$props2 = _this.props, + closeMenuOnSelect = _this$props2.closeMenuOnSelect, + isMulti = _this$props2.isMulti; - if (isMulti) { - var selectValues = selectValue.map(function (opt, index) { - var isOptionFocused = opt === focusedValue; - return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(MultiValue, _extends$4({}, commonProps, { - components: { - Container: MultiValueContainer, - Label: MultiValueLabel, - Remove: MultiValueRemove - }, - isFocused: isOptionFocused, - isDisabled: isDisabled, - key: _this4.getOptionValue(opt), - index: index, - removeProps: { - onClick: function onClick() { - return _this4.removeValue(opt); - }, - onTouchEnd: function onTouchEnd() { - return _this4.removeValue(opt); - }, - onMouseDown: function onMouseDown(e) { - e.preventDefault(); - e.stopPropagation(); - } - }, - data: opt - }), _this4.formatOptionLabel(opt, 'value')); + _this.onInputChange('', { + action: 'set-value' }); - return selectValues; - } - if (inputValue) { - return null; - } + if (closeMenuOnSelect) { + _this.inputIsHiddenAfterUpdate = !isMulti; - var singleValue = selectValue[0]; - return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(SingleValue, _extends$4({}, commonProps, { - data: singleValue, - isDisabled: isDisabled - }), this.formatOptionLabel(singleValue, 'value')); - }; + _this.onMenuClose(); + } // when the select value should change, we should reset focusedValue - _proto.renderClearIndicator = function renderClearIndicator() { - var ClearIndicator = this.components.ClearIndicator; - var commonProps = this.commonProps; - var _this$props16 = this.props, - isDisabled = _this$props16.isDisabled, - isLoading = _this$props16.isLoading; - var isFocused = this.state.isFocused; - if (!this.isClearable() || !ClearIndicator || isDisabled || !this.hasValue() || isLoading) { - return null; - } + _this.clearFocusValueOnUpdate = true; - var innerProps = { - onMouseDown: this.onClearIndicatorMouseDown, - onTouchEnd: this.onClearIndicatorTouchEnd, - 'aria-hidden': 'true' + _this.onChange(newValue, { + action: action, + option: option + }); }; - return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(ClearIndicator, _extends$4({}, commonProps, { - innerProps: innerProps, - isFocused: isFocused - })); - }; - _proto.renderLoadingIndicator = function renderLoadingIndicator() { - var LoadingIndicator = this.components.LoadingIndicator; - var commonProps = this.commonProps; - var _this$props17 = this.props, - isDisabled = _this$props17.isDisabled, - isLoading = _this$props17.isLoading; - var isFocused = this.state.isFocused; - if (!LoadingIndicator || !isLoading) return null; - var innerProps = { - 'aria-hidden': 'true' - }; - return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(LoadingIndicator, _extends$4({}, commonProps, { - innerProps: innerProps, - isDisabled: isDisabled, - isFocused: isFocused - })); - }; + _this.selectOption = function (newValue) { + var _this$props3 = _this.props, + blurInputOnSelect = _this$props3.blurInputOnSelect, + isMulti = _this$props3.isMulti; + var selectValue = _this.state.selectValue; - _proto.renderIndicatorSeparator = function renderIndicatorSeparator() { - var _this$components2 = this.components, - DropdownIndicator = _this$components2.DropdownIndicator, - IndicatorSeparator = _this$components2.IndicatorSeparator; // separator doesn't make sense without the dropdown indicator - - if (!DropdownIndicator || !IndicatorSeparator) return null; - var commonProps = this.commonProps; - var isDisabled = this.props.isDisabled; - var isFocused = this.state.isFocused; - return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(IndicatorSeparator, _extends$4({}, commonProps, { - isDisabled: isDisabled, - isFocused: isFocused - })); - }; + if (isMulti) { + if (_this.isOptionSelected(newValue, selectValue)) { + var candidate = _this.getOptionValue(newValue); - _proto.renderDropdownIndicator = function renderDropdownIndicator() { - var DropdownIndicator = this.components.DropdownIndicator; - if (!DropdownIndicator) return null; - var commonProps = this.commonProps; - var isDisabled = this.props.isDisabled; - var isFocused = this.state.isFocused; - var innerProps = { - onMouseDown: this.onDropdownIndicatorMouseDown, - onTouchEnd: this.onDropdownIndicatorTouchEnd, - 'aria-hidden': 'true' - }; - return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(DropdownIndicator, _extends$4({}, commonProps, { - innerProps: innerProps, - isDisabled: isDisabled, - isFocused: isFocused - })); - }; + _this.setValue(selectValue.filter(function (i) { + return _this.getOptionValue(i) !== candidate; + }), 'deselect-option', newValue); - _proto.renderMenu = function renderMenu() { - var _this5 = this; - - var _this$components3 = this.components, - Group = _this$components3.Group, - GroupHeading = _this$components3.GroupHeading, - Menu = _this$components3.Menu, - MenuList = _this$components3.MenuList, - MenuPortal = _this$components3.MenuPortal, - LoadingMessage = _this$components3.LoadingMessage, - NoOptionsMessage = _this$components3.NoOptionsMessage, - Option = _this$components3.Option; - var commonProps = this.commonProps; - var _this$state9 = this.state, - focusedOption = _this$state9.focusedOption, - menuOptions = _this$state9.menuOptions; - var _this$props18 = this.props, - captureMenuScroll = _this$props18.captureMenuScroll, - inputValue = _this$props18.inputValue, - isLoading = _this$props18.isLoading, - loadingMessage = _this$props18.loadingMessage, - minMenuHeight = _this$props18.minMenuHeight, - maxMenuHeight = _this$props18.maxMenuHeight, - menuIsOpen = _this$props18.menuIsOpen, - menuPlacement = _this$props18.menuPlacement, - menuPosition = _this$props18.menuPosition, - menuPortalTarget = _this$props18.menuPortalTarget, - menuShouldBlockScroll = _this$props18.menuShouldBlockScroll, - menuShouldScrollIntoView = _this$props18.menuShouldScrollIntoView, - noOptionsMessage = _this$props18.noOptionsMessage, - onMenuScrollToTop = _this$props18.onMenuScrollToTop, - onMenuScrollToBottom = _this$props18.onMenuScrollToBottom; - if (!menuIsOpen) return null; // TODO: Internal Option Type here - - var render = function render(props) { - // for performance, the menu options in state aren't changed when the - // focused option changes so we calculate additional props based on that - var isFocused = focusedOption === props.data; - props.innerRef = isFocused ? _this5.getFocusedOptionRef : undefined; - return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Option, _extends$4({}, commonProps, props, { - isFocused: isFocused - }), _this5.formatOptionLabel(props.data, 'menu')); + _this.announceAriaLiveSelection({ + event: 'deselect-option', + context: { + value: _this.getOptionLabel(newValue) + } + }); + } else { + if (!_this.isOptionDisabled(newValue, selectValue)) { + _this.setValue([].concat(Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_toConsumableArray__["a" /* default */])(selectValue), [newValue]), 'select-option', newValue); + + _this.announceAriaLiveSelection({ + event: 'select-option', + context: { + value: _this.getOptionLabel(newValue) + } + }); + } else { + // announce that option is disabled + _this.announceAriaLiveSelection({ + event: 'select-option', + context: { + value: _this.getOptionLabel(newValue), + isDisabled: true + } + }); + } + } + } else { + if (!_this.isOptionDisabled(newValue, selectValue)) { + _this.setValue(newValue, 'select-option'); + + _this.announceAriaLiveSelection({ + event: 'select-option', + context: { + value: _this.getOptionLabel(newValue) + } + }); + } else { + // announce that option is disabled + _this.announceAriaLiveSelection({ + event: 'select-option', + context: { + value: _this.getOptionLabel(newValue), + isDisabled: true + } + }); + } + } + + if (blurInputOnSelect) { + _this.blurInput(); + } }; - var menuUI; + _this.removeValue = function (removedValue) { + var selectValue = _this.state.selectValue; - if (this.hasOptions()) { - menuUI = menuOptions.render.map(function (item) { - if (item.type === 'group') { - var type = item.type, - group = _objectWithoutPropertiesLoose$2(item, ["type"]); + var candidate = _this.getOptionValue(removedValue); - var headingId = item.key + "-heading"; - return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Group, _extends$4({}, commonProps, group, { - Heading: GroupHeading, - headingProps: { - id: headingId - }, - label: _this5.formatGroupLabel(item.data) - }), item.options.map(function (option) { - return render(option); - })); - } else if (item.type === 'option') { - return render(item); - } - }); - } else if (isLoading) { - var message = loadingMessage({ - inputValue: inputValue + var newValue = selectValue.filter(function (i) { + return _this.getOptionValue(i) !== candidate; }); - if (message === null) return null; - menuUI = __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(LoadingMessage, commonProps, message); - } else { - var _message = noOptionsMessage({ - inputValue: inputValue + + _this.onChange(newValue.length ? newValue : null, { + action: 'remove-value', + removedValue: removedValue }); - if (_message === null) return null; - menuUI = __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(NoOptionsMessage, commonProps, _message); - } + _this.announceAriaLiveSelection({ + event: 'remove-value', + context: { + value: removedValue ? _this.getOptionLabel(removedValue) : '' + } + }); - var menuPlacementProps = { - minMenuHeight: minMenuHeight, - maxMenuHeight: maxMenuHeight, - menuPlacement: menuPlacement, - menuPosition: menuPosition, - menuShouldScrollIntoView: menuShouldScrollIntoView + _this.focusInput(); }; - var menuElement = __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["a" /* M */], _extends$4({}, commonProps, menuPlacementProps), function (_ref8) { - var ref = _ref8.ref, - _ref8$placerProps = _ref8.placerProps, - placement = _ref8$placerProps.placement, - maxHeight = _ref8$placerProps.maxHeight; - return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Menu, _extends$4({}, commonProps, menuPlacementProps, { - innerRef: ref, - innerProps: { - onMouseDown: _this5.onMenuMouseDown, - onMouseMove: _this5.onMenuMouseMove - }, - isLoading: isLoading, - placement: placement - }), __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(ScrollCaptorSwitch, { - isEnabled: captureMenuScroll, - onTopArrive: onMenuScrollToTop, - onBottomArrive: onMenuScrollToBottom - }, __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(ScrollBlock, { - isEnabled: menuShouldBlockScroll - }, __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(MenuList, _extends$4({}, commonProps, { - innerRef: _this5.getMenuListRef, - isLoading: isLoading, - maxHeight: maxHeight - }), menuUI)))); - }); // positioning behaviour is almost identical for portalled and fixed, - // so we use the same component. the actual portalling logic is forked - // within the component based on `menuPosition` - - return menuPortalTarget || menuPosition === 'fixed' ? __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(MenuPortal, _extends$4({}, commonProps, { - appendTo: menuPortalTarget, - controlElement: this.controlRef, - menuPlacement: menuPlacement, - menuPosition: menuPosition - }), menuElement) : menuElement; - }; - - _proto.renderFormField = function renderFormField() { - var _this6 = this; - - var _this$props19 = this.props, - delimiter = _this$props19.delimiter, - isDisabled = _this$props19.isDisabled, - isMulti = _this$props19.isMulti, - name = _this$props19.name; - var selectValue = this.state.selectValue; - if (!name || isDisabled) return; - - if (isMulti) { - if (delimiter) { - var value = selectValue.map(function (opt) { - return _this6.getOptionValue(opt); - }).join(delimiter); - return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("input", { - name: name, - type: "hidden", - value: value - }); - } else { - var input = selectValue.length > 0 ? selectValue.map(function (opt, i) { - return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("input", { - key: "i-" + i, - name: name, - type: "hidden", - value: _this6.getOptionValue(opt) - }); - }) : __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("input", { - name: name, - type: "hidden" - }); - return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("div", null, input); - } - } else { - var _value2 = selectValue[0] ? this.getOptionValue(selectValue[0]) : ''; - return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("input", { - name: name, - type: "hidden", - value: _value2 + _this.clearValue = function () { + _this.onChange(null, { + action: 'clear' }); - } - }; + }; - _proto.renderLiveRegion = function renderLiveRegion() { - if (!this.state.isFocused) return null; - return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(A11yText, { - "aria-live": "polite" - }, __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("p", { - id: "aria-selection-event" - }, "\xA0", this.state.ariaLiveSelection), __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("p", { - id: "aria-context" - }, "\xA0", this.constructAriaLiveMessage())); - }; + _this.popValue = function () { + var selectValue = _this.state.selectValue; + var lastSelectedValue = selectValue[selectValue.length - 1]; + var newValue = selectValue.slice(0, selectValue.length - 1); - _proto.render = function render() { - var _this$components4 = this.components, - Control = _this$components4.Control, - IndicatorsContainer = _this$components4.IndicatorsContainer, - SelectContainer = _this$components4.SelectContainer, - ValueContainer = _this$components4.ValueContainer; - var _this$props20 = this.props, - className = _this$props20.className, - id = _this$props20.id, - isDisabled = _this$props20.isDisabled, - menuIsOpen = _this$props20.menuIsOpen; - var isFocused = this.state.isFocused; - var commonProps = this.commonProps = this.getCommonProps(); - return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(SelectContainer, _extends$4({}, commonProps, { - className: className, - innerProps: { - id: id, - onKeyDown: this.onKeyDown - }, - isDisabled: isDisabled, - isFocused: isFocused - }), this.renderLiveRegion(), __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Control, _extends$4({}, commonProps, { - innerRef: this.getControlRef, - innerProps: { - onMouseDown: this.onControlMouseDown, - onTouchEnd: this.onControlTouchEnd - }, - isDisabled: isDisabled, - isFocused: isFocused, - menuIsOpen: menuIsOpen - }), __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(ValueContainer, _extends$4({}, commonProps, { - isDisabled: isDisabled - }), this.renderPlaceholderOrValue(), this.renderInput()), __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(IndicatorsContainer, _extends$4({}, commonProps, { - isDisabled: isDisabled - }), this.renderClearIndicator(), this.renderLoadingIndicator(), this.renderIndicatorSeparator(), this.renderDropdownIndicator())), this.renderMenu(), this.renderFormField()); - }; + _this.announceAriaLiveSelection({ + event: 'pop-value', + context: { + value: lastSelectedValue ? _this.getOptionLabel(lastSelectedValue) : '' + } + }); - return Select; -}(__WEBPACK_IMPORTED_MODULE_0_react__["Component"]); + _this.onChange(newValue.length ? newValue : null, { + action: 'pop-value', + removedValue: lastSelectedValue + }); + }; -Select.defaultProps = defaultProps; + _this.getValue = function () { + return _this.state.selectValue; + }; + _this.cx = function () { + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + return __WEBPACK_IMPORTED_MODULE_15__index_75b02bac_browser_esm_js__["F" /* z */].apply(void 0, [_this.props.classNamePrefix].concat(args)); + }; -/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(/*! ./../../process/browser.js */ 3))) + _this.getOptionLabel = function (data) { + return _this.props.getOptionLabel(data); + }; -/***/ }), -/* 140 */ -/*!************************************************!*\ - !*** ./src/blocks/advanced-heading/style.scss ***! - \************************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { + _this.getOptionValue = function (data) { + return _this.props.getOptionValue(data); + }; -// removed by extract-text-webpack-plugin + _this.getStyles = function (key, props) { + var base = defaultStyles[key](props); + base.boxSizing = 'border-box'; + var custom = _this.props.styles[key]; + return custom ? custom(base, props) : base; + }; -/***/ }), -/* 141 */ -/*!*****************************************!*\ - !*** ./node_modules/lodash/toNumber.js ***! - \*****************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { + _this.getElementId = function (element) { + return "".concat(_this.instancePrefix, "-").concat(element); + }; -var isObject = __webpack_require__(/*! ./isObject */ 13), - isSymbol = __webpack_require__(/*! ./isSymbol */ 46); + _this.getActiveDescendentId = function () { + var menuIsOpen = _this.props.menuIsOpen; + var _this$state = _this.state, + menuOptions = _this$state.menuOptions, + focusedOption = _this$state.focusedOption; + if (!focusedOption || !menuIsOpen) return undefined; + var index = menuOptions.focusable.indexOf(focusedOption); + var option = menuOptions.render[index]; + return option && option.key; + }; -/** Used as references for various `Number` constants. */ -var NAN = 0 / 0; + _this.announceAriaLiveSelection = function (_ref2) { + var event = _ref2.event, + context = _ref2.context; -/** Used to match leading and trailing whitespace. */ -var reTrim = /^\s+|\s+$/g; + _this.setState({ + ariaLiveSelection: valueEventAriaMessage(event, context) + }); + }; -/** Used to detect bad signed hexadecimal string values. */ -var reIsBadHex = /^[-+]0x[0-9a-f]+$/i; + _this.announceAriaLiveContext = function (_ref3) { + var event = _ref3.event, + context = _ref3.context; -/** Used to detect binary string values. */ -var reIsBinary = /^0b[01]+$/i; + _this.setState({ + ariaLiveContext: instructionsAriaMessage(event, _objectSpread$2(_objectSpread$2({}, context), {}, { + label: _this.props['aria-label'] + })) + }); + }; -/** Used to detect octal string values. */ -var reIsOctal = /^0o[0-7]+$/i; + _this.onMenuMouseDown = function (event) { + if (event.button !== 0) { + return; + } -/** Built-in method references without a dependency on `root`. */ -var freeParseInt = parseInt; + event.stopPropagation(); + event.preventDefault(); -/** - * Converts `value` to a number. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to process. - * @returns {number} Returns the number. - * @example - * - * _.toNumber(3.2); - * // => 3.2 - * - * _.toNumber(Number.MIN_VALUE); - * // => 5e-324 - * - * _.toNumber(Infinity); - * // => Infinity - * - * _.toNumber('3.2'); - * // => 3.2 - */ -function toNumber(value) { - if (typeof value == 'number') { - return value; - } - if (isSymbol(value)) { - return NAN; - } - if (isObject(value)) { - var other = typeof value.valueOf == 'function' ? value.valueOf() : value; - value = isObject(other) ? (other + '') : other; - } - if (typeof value != 'string') { - return value === 0 ? value : +value; - } - value = value.replace(reTrim, ''); - var isBinary = reIsBinary.test(value); - return (isBinary || reIsOctal.test(value)) - ? freeParseInt(value.slice(2), isBinary ? 2 : 8) - : (reIsBadHex.test(value) ? NAN : +value); -} + _this.focusInput(); + }; -module.exports = toNumber; + _this.onMenuMouseMove = function (event) { + _this.blockOptionHover = false; + }; + _this.onControlMouseDown = function (event) { + var openMenuOnClick = _this.props.openMenuOnClick; -/***/ }), -/* 142 */ -/*!*************************************************!*\ - !*** ./node_modules/lodash/_baseAssignValue.js ***! - \*************************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { + if (!_this.state.isFocused) { + if (openMenuOnClick) { + _this.openAfterFocus = true; + } -var defineProperty = __webpack_require__(/*! ./_defineProperty */ 143); + _this.focusInput(); + } else if (!_this.props.menuIsOpen) { + if (openMenuOnClick) { + _this.openMenu('first'); + } + } else { + if ( // $FlowFixMe + event.target.tagName !== 'INPUT' && event.target.tagName !== 'TEXTAREA') { + _this.onMenuClose(); + } + } -/** - * The base implementation of `assignValue` and `assignMergeValue` without - * value checks. - * - * @private - * @param {Object} object The object to modify. - * @param {string} key The key of the property to assign. - * @param {*} value The value to assign. - */ -function baseAssignValue(object, key, value) { - if (key == '__proto__' && defineProperty) { - defineProperty(object, key, { - 'configurable': true, - 'enumerable': true, - 'value': value, - 'writable': true - }); - } else { - object[key] = value; - } -} + if ( // $FlowFixMe + event.target.tagName !== 'INPUT' && event.target.tagName !== 'TEXTAREA') { + event.preventDefault(); + } + }; -module.exports = baseAssignValue; + _this.onDropdownIndicatorMouseDown = function (event) { + // ignore mouse events that weren't triggered by the primary button + if (event && event.type === 'mousedown' && event.button !== 0) { + return; + } + if (_this.props.isDisabled) return; + var _this$props4 = _this.props, + isMulti = _this$props4.isMulti, + menuIsOpen = _this$props4.menuIsOpen; -/***/ }), -/* 143 */ -/*!************************************************!*\ - !*** ./node_modules/lodash/_defineProperty.js ***! - \************************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { + _this.focusInput(); -var getNative = __webpack_require__(/*! ./_getNative */ 19); + if (menuIsOpen) { + _this.inputIsHiddenAfterUpdate = !isMulti; -var defineProperty = (function() { - try { - var func = getNative(Object, 'defineProperty'); - func({}, '', {}); - return func; - } catch (e) {} -}()); + _this.onMenuClose(); + } else { + _this.openMenu('first'); + } -module.exports = defineProperty; + event.preventDefault(); + event.stopPropagation(); + }; + _this.onClearIndicatorMouseDown = function (event) { + // ignore mouse events that weren't triggered by the primary button + if (event && event.type === 'mousedown' && event.button !== 0) { + return; + } -/***/ }), -/* 144 */ -/*!******************************************!*\ - !*** ./node_modules/lodash/_overRest.js ***! - \******************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { + _this.clearValue(); -var apply = __webpack_require__(/*! ./_apply */ 316); + event.stopPropagation(); + _this.openAfterFocus = false; -/* Built-in method references for those with the same name as other `lodash` methods. */ -var nativeMax = Math.max; + if (event.type === 'touchend') { + _this.focusInput(); + } else { + setTimeout(function () { + return _this.focusInput(); + }); + } + }; -/** - * A specialized version of `baseRest` which transforms the rest array. - * - * @private - * @param {Function} func The function to apply a rest parameter to. - * @param {number} [start=func.length-1] The start position of the rest parameter. - * @param {Function} transform The rest array transform. - * @returns {Function} Returns the new function. - */ -function overRest(func, start, transform) { - start = nativeMax(start === undefined ? (func.length - 1) : start, 0); - return function() { - var args = arguments, - index = -1, - length = nativeMax(args.length - start, 0), - array = Array(length); + _this.onScroll = function (event) { + if (typeof _this.props.closeMenuOnScroll === 'boolean') { + if (event.target instanceof HTMLElement && Object(__WEBPACK_IMPORTED_MODULE_15__index_75b02bac_browser_esm_js__["a" /* A */])(event.target)) { + _this.props.onMenuClose(); + } + } else if (typeof _this.props.closeMenuOnScroll === 'function') { + if (_this.props.closeMenuOnScroll(event)) { + _this.props.onMenuClose(); + } + } + }; - while (++index < length) { - array[index] = args[start + index]; - } - index = -1; - var otherArgs = Array(start + 1); - while (++index < start) { - otherArgs[index] = args[index]; - } - otherArgs[start] = transform(array); - return apply(func, this, otherArgs); - }; -} + _this.onCompositionStart = function () { + _this.isComposing = true; + }; -module.exports = overRest; + _this.onCompositionEnd = function () { + _this.isComposing = false; + }; + _this.onTouchStart = function (_ref4) { + var touches = _ref4.touches; + var touch = touches && touches.item(0); -/***/ }), -/* 145 */ -/*!*********************************************!*\ - !*** ./node_modules/lodash/_setToString.js ***! - \*********************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { + if (!touch) { + return; + } -var baseSetToString = __webpack_require__(/*! ./_baseSetToString */ 317), - shortOut = __webpack_require__(/*! ./_shortOut */ 319); + _this.initialTouchX = touch.clientX; + _this.initialTouchY = touch.clientY; + _this.userIsDragging = false; + }; -/** - * Sets the `toString` method of `func` to return `string`. - * - * @private - * @param {Function} func The function to modify. - * @param {Function} string The `toString` result. - * @returns {Function} Returns `func`. - */ -var setToString = shortOut(baseSetToString); + _this.onTouchMove = function (_ref5) { + var touches = _ref5.touches; + var touch = touches && touches.item(0); -module.exports = setToString; + if (!touch) { + return; + } + var deltaX = Math.abs(touch.clientX - _this.initialTouchX); + var deltaY = Math.abs(touch.clientY - _this.initialTouchY); + var moveThreshold = 5; + _this.userIsDragging = deltaX > moveThreshold || deltaY > moveThreshold; + }; -/***/ }), -/* 146 */ -/*!**********************************************************************!*\ - !*** ./node_modules/element-resize-detector/src/collection-utils.js ***! - \**********************************************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { + _this.onTouchEnd = function (event) { + if (_this.userIsDragging) return; // close the menu if the user taps outside + // we're checking on event.target here instead of event.currentTarget, because we want to assert information + // on events on child elements, not the document (which we've attached this handler to). -"use strict"; + if (_this.controlRef && !_this.controlRef.contains(event.target) && _this.menuListRef && !_this.menuListRef.contains(event.target)) { + _this.blurInput(); + } // reset move vars -var utils = module.exports = {}; + _this.initialTouchX = 0; + _this.initialTouchY = 0; + }; -/** - * Loops through the collection and calls the callback for each element. if the callback returns truthy, the loop is broken and returns the same value. - * @public - * @param {*} collection The collection to loop through. Needs to have a length property set and have indices set from 0 to length - 1. - * @param {function} callback The callback to be called for each element. The element will be given as a parameter to the callback. If this callback returns truthy, the loop is broken and the same value is returned. - * @returns {*} The value that a callback has returned (if truthy). Otherwise nothing. - */ -utils.forEach = function(collection, callback) { - for(var i = 0; i < collection.length; i++) { - var result = callback(collection[i]); - if(result) { - return result; - } - } -}; + _this.onControlTouchEnd = function (event) { + if (_this.userIsDragging) return; + _this.onControlMouseDown(event); + }; -/***/ }), -/* 147 */ -/*!**********************************************************************!*\ - !*** ./node_modules/element-resize-detector/src/browser-detector.js ***! - \**********************************************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { + _this.onClearIndicatorTouchEnd = function (event) { + if (_this.userIsDragging) return; -"use strict"; + _this.onClearIndicatorMouseDown(event); + }; + _this.onDropdownIndicatorTouchEnd = function (event) { + if (_this.userIsDragging) return; -var detector = module.exports = {}; + _this.onDropdownIndicatorMouseDown(event); + }; -detector.isIE = function(version) { - function isAnyIeVersion() { - var agent = navigator.userAgent.toLowerCase(); - return agent.indexOf("msie") !== -1 || agent.indexOf("trident") !== -1 || agent.indexOf(" edge/") !== -1; - } + _this.handleInputChange = function (event) { + var inputValue = event.currentTarget.value; + _this.inputIsHiddenAfterUpdate = false; - if(!isAnyIeVersion()) { - return false; - } + _this.onInputChange(inputValue, { + action: 'input-change' + }); - if(!version) { - return true; - } + if (!_this.props.menuIsOpen) { + _this.onMenuOpen(); + } + }; - //Shamelessly stolen from https://gist.github.com/padolsey/527683 - var ieVersion = (function(){ - var undef, - v = 3, - div = document.createElement("div"), - all = div.getElementsByTagName("i"); + _this.onInputFocus = function (event) { + var _this$props5 = _this.props, + isSearchable = _this$props5.isSearchable, + isMulti = _this$props5.isMulti; - do { - div.innerHTML = ""; - } - while (all[0]); + if (_this.props.onFocus) { + _this.props.onFocus(event); + } - return v > 4 ? v : undef; - }()); + _this.inputIsHiddenAfterUpdate = false; - return version === ieVersion; -}; + _this.announceAriaLiveContext({ + event: 'input', + context: { + isSearchable: isSearchable, + isMulti: isMulti + } + }); -detector.isLegacyOpera = function() { - return !!window.opera; -}; + _this.setState({ + isFocused: true + }); + if (_this.openAfterFocus || _this.props.openMenuOnFocus) { + _this.openMenu('first'); + } -/***/ }), -/* 148 */ -/*!***************************************!*\ - !*** ./node_modules/lodash/keysIn.js ***! - \***************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { + _this.openAfterFocus = false; + }; -var arrayLikeKeys = __webpack_require__(/*! ./_arrayLikeKeys */ 121), - baseKeysIn = __webpack_require__(/*! ./_baseKeysIn */ 339), - isArrayLike = __webpack_require__(/*! ./isArrayLike */ 24); + _this.onInputBlur = function (event) { + if (_this.menuListRef && _this.menuListRef.contains(document.activeElement)) { + _this.inputRef.focus(); -/** - * Creates an array of the own and inherited enumerable property names of `object`. - * - * **Note:** Non-object values are coerced to objects. - * - * @static - * @memberOf _ - * @since 3.0.0 - * @category Object - * @param {Object} object The object to query. - * @returns {Array} Returns the array of property names. - * @example - * - * function Foo() { - * this.a = 1; - * this.b = 2; - * } - * - * Foo.prototype.c = 3; - * - * _.keysIn(new Foo); - * // => ['a', 'b', 'c'] (iteration order is not guaranteed) - */ -function keysIn(object) { - return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object); -} + return; + } -module.exports = keysIn; + if (_this.props.onBlur) { + _this.props.onBlur(event); + } + _this.onInputChange('', { + action: 'input-blur' + }); -/***/ }), -/* 149 */ -/*!**********************************************!*\ - !*** ./node_modules/lodash/_getSymbolsIn.js ***! - \**********************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { + _this.onMenuClose(); -var arrayPush = __webpack_require__(/*! ./_arrayPush */ 56), - getPrototype = __webpack_require__(/*! ./_getPrototype */ 80), - getSymbols = __webpack_require__(/*! ./_getSymbols */ 57), - stubArray = __webpack_require__(/*! ./stubArray */ 120); + _this.setState({ + focusedValue: null, + isFocused: false + }); + }; -/* Built-in method references for those with the same name as other `lodash` methods. */ -var nativeGetSymbols = Object.getOwnPropertySymbols; + _this.onOptionHover = function (focusedOption) { + if (_this.blockOptionHover || _this.state.focusedOption === focusedOption) { + return; + } -/** - * Creates an array of the own and inherited enumerable symbols of `object`. - * - * @private - * @param {Object} object The object to query. - * @returns {Array} Returns the array of symbols. - */ -var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) { - var result = []; - while (object) { - arrayPush(result, getSymbols(object)); - object = getPrototype(object); - } - return result; -}; + _this.setState({ + focusedOption: focusedOption + }); + }; -module.exports = getSymbolsIn; + _this.shouldHideSelectedOptions = function () { + var _this$props6 = _this.props, + hideSelectedOptions = _this$props6.hideSelectedOptions, + isMulti = _this$props6.isMulti; + if (hideSelectedOptions === undefined) return isMulti; + return hideSelectedOptions; + }; + _this.onKeyDown = function (event) { + var _this$props7 = _this.props, + isMulti = _this$props7.isMulti, + backspaceRemovesValue = _this$props7.backspaceRemovesValue, + escapeClearsValue = _this$props7.escapeClearsValue, + inputValue = _this$props7.inputValue, + isClearable = _this$props7.isClearable, + isDisabled = _this$props7.isDisabled, + menuIsOpen = _this$props7.menuIsOpen, + onKeyDown = _this$props7.onKeyDown, + tabSelectsValue = _this$props7.tabSelectsValue, + openMenuOnFocus = _this$props7.openMenuOnFocus; + var _this$state2 = _this.state, + focusedOption = _this$state2.focusedOption, + focusedValue = _this$state2.focusedValue, + selectValue = _this$state2.selectValue; + if (isDisabled) return; -/***/ }), -/* 150 */ -/*!***********************************************!*\ - !*** ./node_modules/react-slick/lib/index.js ***! - \***********************************************/ -/*! no static exports found */ -/*! exports used: default */ -/***/ (function(module, exports, __webpack_require__) { + if (typeof onKeyDown === 'function') { + onKeyDown(event); -"use strict"; + if (event.defaultPrevented) { + return; + } + } // Block option hover events when the user has just pressed a key -exports.__esModule = true; + _this.blockOptionHover = true; -var _slider = __webpack_require__(/*! ./slider */ 375); + switch (event.key) { + case 'ArrowLeft': + if (!isMulti || inputValue) return; -var _slider2 = _interopRequireDefault(_slider); + _this.focusValue('previous'); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + break; -exports.default = _slider2.default; + case 'ArrowRight': + if (!isMulti || inputValue) return; -/***/ }), -/* 151 */ -/*!*********************************************!*\ - !*** ./node_modules/enquire.js/src/Util.js ***! - \*********************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports) { + _this.focusValue('next'); -/** - * Helper function for iterating over a collection - * - * @param collection - * @param fn - */ -function each(collection, fn) { - var i = 0, - length = collection.length, - cont; + break; - for(i; i < length; i++) { - cont = fn(collection[i], i); - if(cont === false) { - break; //allow early exit - } - } -} + case 'Delete': + case 'Backspace': + if (inputValue) return; -/** - * Helper function for determining whether target object is an array - * - * @param target the object under test - * @return {Boolean} true if array, false otherwise - */ -function isArray(target) { - return Object.prototype.toString.apply(target) === '[object Array]'; -} + if (focusedValue) { + _this.removeValue(focusedValue); + } else { + if (!backspaceRemovesValue) return; -/** - * Helper function for determining whether target object is a function - * - * @param target the object under test - * @return {Boolean} true if function, false otherwise - */ -function isFunction(target) { - return typeof target === 'function'; -} + if (isMulti) { + _this.popValue(); + } else if (isClearable) { + _this.clearValue(); + } + } -module.exports = { - isFunction : isFunction, - isArray : isArray, - each : each -}; + break; + case 'Tab': + if (_this.isComposing) return; -/***/ }), -/* 152 */ -/*!******************************************!*\ - !*** ./src/blocks/section/attributes.js ***! - \******************************************/ -/*! exports provided: default */ -/*! exports used: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { + if (event.shiftKey || !menuIsOpen || !tabSelectsValue || !focusedOption || // don't capture the event if the menu opens on focus and the focused + // option is already selected; it breaks the flow of navigation + openMenuOnFocus && _this.isOptionSelected(focusedOption, selectValue)) { + return; + } -"use strict"; -/** - * BLOCK: UAGB Section Attributes - */ -var attributes = { - classMigrate: { - type: "boolean", - default: false - }, - align: { - type: "string", - default: "center" - }, - block_id: { - type: "string" - }, - mobilePaddingType: { - type: "string", - default: 'px' - }, - tabletPaddingType: { - type: "string", - default: 'px' - }, - desktopPaddingType: { - type: "string", - default: 'px' - }, - topPadding: { - type: "number", - default: 20 - }, - bottomPadding: { - type: "number", - default: 20 - }, - leftPadding: { - type: "number", - default: 20 - }, - rightPadding: { - type: "number", - default: 20 - }, - mobileMarginType: { - type: "string", - default: 'px' - }, - tabletMarginType: { - type: "string", - default: 'px' - }, - desktopMarginType: { - type: "string", - default: 'px' - }, - topMargin: { - type: "number", - default: 0 - }, - bottomMargin: { - type: "number", - default: 0 - }, - leftMargin: { - type: "number", - default: 0 - }, - rightMargin: { - type: "number", - default: 0 - }, + _this.selectOption(focusedOption); - topPaddingTablet: { - type: "number", - default: "" - }, - bottomPaddingTablet: { - type: "number", - default: "" - }, - leftPaddingTablet: { - type: "number", - default: "" - }, - rightPaddingTablet: { - type: "number", - default: "" - }, - topMarginTablet: { - type: "number", - default: "" - }, - bottomMarginTablet: { - type: "number", - default: "" - }, - leftMarginTablet: { - type: "number", - default: "" - }, - rightMarginTablet: { - type: "number", - default: "" - }, + break; - topPaddingMobile: { - type: "number", - default: "" - }, - bottomPaddingMobile: { - type: "number", - default: "" - }, - leftPaddingMobile: { - type: "number", - default: "" - }, - rightPaddingMobile: { - type: "number", - default: "" - }, - topMarginMobile: { - type: "number", - default: "" - }, - bottomMarginMobile: { - type: "number", - default: "" - }, - leftMarginMobile: { - type: "number", - default: "" - }, - rightMarginMobile: { - type: "number", - default: "" - }, - contentWidth: { - type: "string", - default: "boxed" - }, - width: { - type: "number", - default: 900 - }, - innerWidth: { - type: "number", - default: 1140 - }, - innerWidthType: { - type: "string", - default: "px" - }, - themeWidth: { - type: "boolean", - default: false - }, - tag: { - type: "string", - default: "section" - }, - backgroundType: { - type: "string" - }, - backgroundImage: { - type: "object" - }, - backgroundPosition: { - type: "string", - default: "center-center" - }, - backgroundSize: { - type: "string", - default: "cover" - }, - backgroundRepeat: { - type: "string", - default: "no-repeat" - }, - backgroundAttachment: { - type: "string", - default: "scroll" - }, - backgroundVideo: { - type: "object" - }, - backgroundColor: { - type: "string" - }, - gradientColor1: { - type: "string" - }, - gradientColor2: { - type: "string" - }, - gradientType: { - type: "string", - default: "linear" - }, - gradientLocation1: { - type: "number", - default: 0 - }, - gradientLocation2: { - type: "number", - default: 100 - }, - gradientAngle: { - type: "number", - default: 0 - }, - gradientPosition: { - type: "string", - default: "center center" - }, - backgroundOpacity: { - type: "number" - }, - backgroundVideoOpacity: { - type: "number", - default: 50 - }, - backgroundVideoColor: { - type: "string" - }, - backgroundImageColor: { - type: "string" - }, - borderStyle: { - type: "string", - default: "none" - }, - borderWidth: { - type: "number", - default: 1 - }, - borderRadius: { - type: "number" - }, - borderColor: { - type: "string" - }, - overlayType: { - type: "string", - default: "color" - }, - gradientOverlayColor1: { - type: "string" - }, - gradientOverlayColor2: { - type: "string" - }, - gradientOverlayType: { - type: "string", - default: "linear" - }, - gradientOverlayLocation1: { - type: "number", - default: 0 - }, - gradientOverlayLocation2: { - type: "number", - default: 100 - }, - gradientOverlayAngle: { - type: "number", - default: 0 - }, - gradientOverlayPosition: { - type: "string", - default: "center center" - }, - boxShadowColor: { - type: "string" - }, - boxShadowHOffset: { - type: "number", - default: 0 - }, - boxShadowVOffset: { - type: "number", - default: 0 - }, - boxShadowBlur: { - type: "number" - }, - boxShadowSpread: { - type: "number" - }, - boxShadowPosition: { - type: "string", - default: "outset" - }, - gradientValue: { - type: "string", - default: "" - } -}; + case 'Enter': + if (event.keyCode === 229) { + // ignore the keydown event from an Input Method Editor(IME) + // ref. https://www.w3.org/TR/uievents/#determine-keydown-keyup-keyCode + break; + } -/* harmony default export */ __webpack_exports__["a"] = (attributes); + if (menuIsOpen) { + if (!focusedOption) return; + if (_this.isComposing) return; -/***/ }), -/* 153 */ -/*!*********************************************!*\ - !*** ./src/blocks/section/inline-styles.js ***! - \*********************************************/ -/*! exports provided: default */ -/*! exports used: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { + _this.selectOption(focusedOption); -"use strict"; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSSUnit__ = __webpack_require__(/*! ../../../dist/blocks/uagb-controls/generateCSSUnit */ 4); -/** - * Returns Dynamic Generated CSS - */ + break; + } + return; -function inlineStyles(props, isEditor) { - var _props$attributes = props.attributes, - align = _props$attributes.align, - contentWidth = _props$attributes.contentWidth, - leftPadding = _props$attributes.leftPadding, - rightPadding = _props$attributes.rightPadding, - topPadding = _props$attributes.topPadding, - bottomPadding = _props$attributes.bottomPadding, - leftMargin = _props$attributes.leftMargin, - rightMargin = _props$attributes.rightMargin, - topMargin = _props$attributes.topMargin, - bottomMargin = _props$attributes.bottomMargin, - width = _props$attributes.width, - backgroundPosition = _props$attributes.backgroundPosition, - backgroundSize = _props$attributes.backgroundSize, - backgroundAttachment = _props$attributes.backgroundAttachment, - backgroundImage = _props$attributes.backgroundImage, - backgroundColor = _props$attributes.backgroundColor, - backgroundOpacity = _props$attributes.backgroundOpacity, - backgroundRepeat = _props$attributes.backgroundRepeat, - backgroundType = _props$attributes.backgroundType, - gradientColor1 = _props$attributes.gradientColor1, - gradientColor2 = _props$attributes.gradientColor2, - gradientLocation1 = _props$attributes.gradientLocation1, - gradientLocation2 = _props$attributes.gradientLocation2, - gradientType = _props$attributes.gradientType, - gradientAngle = _props$attributes.gradientAngle, - borderStyle = _props$attributes.borderStyle, - borderWidth = _props$attributes.borderWidth, - borderRadius = _props$attributes.borderRadius, - borderColor = _props$attributes.borderColor, - desktopMarginType = _props$attributes.desktopMarginType, - desktopPaddingType = _props$attributes.desktopPaddingType; + case 'Escape': + if (menuIsOpen) { + _this.inputIsHiddenAfterUpdate = false; + _this.onInputChange('', { + action: 'menu-close' + }); - var style = { - "padding-top": __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](topPadding, desktopPaddingType), - "padding-bottom": __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](bottomPadding, desktopPaddingType), - "padding-left": __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](leftPadding, desktopPaddingType), - "padding-right": __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](rightPadding, desktopPaddingType), - "border-radius": __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](borderRadius, "px") - }; + _this.onMenuClose(); + } else if (isClearable && escapeClearsValue) { + _this.clearValue(); + } - if ("right" == align) { - style["margin-left"] = "auto"; - style["margin-top"] = __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](topMargin, desktopMarginType); - style["margin-bottom"] = __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](bottomMargin, desktopMarginType); - style["margin-right"] = __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](rightMargin, desktopMarginType); - } else if ("left" == align) { - style["margin-right"] = "auto"; - style["margin-top"] = __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](topMargin, desktopMarginType); - style["margin-bottom"] = __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](bottomMargin, desktopMarginType); - style["margin-left"] = __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](leftMargin, desktopMarginType); - } else if ("center" == align) { - style["margin-right"] = "auto"; - style["margin-left"] = "auto"; - style["margin-top"] = __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](topMargin, desktopMarginType); - style["margin-bottom"] = __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](bottomMargin, desktopMarginType); - } else { - style["margin-top"] = __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](topMargin, desktopMarginType); - style["margin-bottom"] = __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](bottomMargin, desktopMarginType); - } + break; - if (borderStyle != "none") { - style["border-style"] = borderStyle; - style["border-width"] = __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](borderWidth, "px"); - style["border-color"] = borderColor; - } + case ' ': + // space + if (inputValue) { + return; + } - var position = backgroundPosition.replace("-", " "); + if (!menuIsOpen) { + _this.openMenu('first'); - var section_width = "100%"; + break; + } - if ("boxed" == contentWidth) { - if ("" != width) { - section_width = width + "px"; - } - } + if (!focusedOption) return; - style["max-width"] = section_width; + _this.selectOption(focusedOption); - if ("image" === backgroundType) { + break; - style["background-image"] = backgroundImage ? "url(" + backgroundImage.url + ")" : null; - style["background-position"] = position; - style["background-attachment"] = backgroundAttachment; - style["background-repeat"] = backgroundRepeat; - style["background-size"] = backgroundSize; - } + case 'ArrowUp': + if (menuIsOpen) { + _this.focusOption('up'); + } else { + _this.openMenu('last'); + } - return style; -} + break; -/* harmony default export */ __webpack_exports__["a"] = (inlineStyles); + case 'ArrowDown': + if (menuIsOpen) { + _this.focusOption('down'); + } else { + _this.openMenu('first'); + } -/***/ }), -/* 154 */ -/*!******************************************!*\ - !*** ./src/blocks/buttons/attributes.js ***! - \******************************************/ -/*! exports provided: default */ -/*! exports used: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { + break; -"use strict"; -var ITEM_COUNT = 2; + case 'PageUp': + if (!menuIsOpen) return; -var buttons = []; + _this.focusOption('pageup'); -for (var i = 1; i <= ITEM_COUNT; i++) { - var label = "#Click Here"; - var link = "#"; - buttons.push({ - "label": label, - "link": link, - "target": "_self", - "size": "", - "vPadding": 10, - "hPadding": 14, - "borderWidth": 1, - "borderRadius": 2, - "borderStyle": "solid", - "borderColor": "#333", - "borderHColor": "#333", - "color": "#333", - "background": "", - "hColor": "#333", - "hBackground": "", - "sizeType": "px", - "sizeMobile": "", - "sizeTablet": "", - "lineHeight": "", - "lineHeightType": "em", - "lineHeightMobile": "", - "lineHeightTablet": "" - }); -} - -var attributes = { - block_id: { - type: "string" - }, - btn_count: { - type: "number", - default: ITEM_COUNT - }, - buttons: { - type: "array", - default: buttons - }, - classMigrate: { - type: "boolean", - default: false - }, - childMigrate: { - type: "boolean", - default: false - }, - align: { - type: "string", - default: "center" - }, - gap: { - type: "number", - default: 10 - }, - stack: { - type: "string", - default: "none" - }, - loadGoogleFonts: { - type: "boolean", - default: false - }, - fontFamily: { - type: "string", - default: "Default" - }, - fontWeight: { - type: "string" - }, - fontSubset: { - type: "string" - } -}; - -/* harmony default export */ __webpack_exports__["a"] = (attributes); - -/***/ }), -/* 155 */ -/*!************************************************!*\ - !*** ./src/blocks/buttons-child/attributes.js ***! - \************************************************/ -/*! exports provided: default */ -/*! exports used: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/** - * BLOCK: Buttons Child - Attributes - */ + break; -var attributes = { - inheritFromTheme: { - type: "boolean", - default: false - }, - block_id: { - type: "string" - }, - align: { - type: "string", - default: "center" - }, - gap: { - type: "number", - default: 10 - }, - stack: { - type: "string", - default: "none" - }, - loadGoogleFonts: { - type: "boolean", - default: false - }, - fontFamily: { - type: "string", - default: "Default" - }, - fontWeight: { - type: "string" - }, - fontSubset: { - type: "string" - }, - label: { - type: "html", - default: '#Click Here' - }, - link: { - type: "string", - default: "" - }, - target: { - type: "string", - default: "_self" - }, - size: { - type: "number" - }, - vPadding: { - type: "number", - default: 10 - }, - hPadding: { - type: "number", - default: 14 - }, - borderWidth: { - type: "number", - default: 1 - }, - borderRadius: { - type: "number", - default: 2 - }, - borderStyle: { - type: "string", - default: "solid" - }, - borderColor: { - type: "string", - default: "#333" - }, - borderHColor: { - type: "string", - default: "#333" - }, - color: { - type: "string", - default: "#333" - }, - background: { - type: "string", - default: "" - }, - hColor: { - type: "string", - default: "#333" - }, - hBackground: { - type: "string", - default: "" - }, - sizeType: { - type: "string", - default: "px" - }, - sizeMobile: { - type: "number", - default: "" - }, - sizeTablet: { - type: "number", - default: "" - }, - lineHeight: { - type: "number", - default: "" - }, - lineHeightType: { - type: "string", - default: "em" - }, - lineHeightMobile: { - type: "number", - default: "" - }, - lineHeightTablet: { - type: "number", - default: "" - }, - opensInNewTab: { - type: "boolean" - }, - icon: { - type: "string", - default: "" - }, - iconPosition: { - type: "string", - default: "after" - }, - iconSpace: { - type: "number", - default: 8 - } -}; + case 'PageDown': + if (!menuIsOpen) return; -/* harmony default export */ __webpack_exports__["a"] = (attributes); + _this.focusOption('pagedown'); -/***/ }), -/* 156 */ -/*!***********************************************************!*\ - !*** ./node_modules/react-transition-group/Transition.js ***! - \***********************************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { + break; -"use strict"; -/* WEBPACK VAR INJECTION */(function(process) { + case 'Home': + if (!menuIsOpen) return; -exports.__esModule = true; -exports.default = exports.EXITING = exports.ENTERED = exports.ENTERING = exports.EXITED = exports.UNMOUNTED = void 0; + _this.focusOption('first'); -var PropTypes = _interopRequireWildcard(__webpack_require__(/*! prop-types */ 15)); + break; -var _react = _interopRequireDefault(__webpack_require__(/*! react */ 6)); + case 'End': + if (!menuIsOpen) return; -var _reactDom = _interopRequireDefault(__webpack_require__(/*! react-dom */ 18)); + _this.focusOption('last'); -var _reactLifecyclesCompat = __webpack_require__(/*! react-lifecycles-compat */ 157); + break; -var _PropTypes = __webpack_require__(/*! ./utils/PropTypes */ 158); + default: + return; + } -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + event.preventDefault(); + }; -function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } + _this.buildMenuOptions = function (props, selectValue) { + var _props$inputValue = props.inputValue, + inputValue = _props$inputValue === void 0 ? '' : _props$inputValue, + options = props.options; -function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } + var toOption = function toOption(option, id) { + var isDisabled = _this.isOptionDisabled(option, selectValue); -function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; } + var isSelected = _this.isOptionSelected(option, selectValue); -var UNMOUNTED = 'unmounted'; -exports.UNMOUNTED = UNMOUNTED; -var EXITED = 'exited'; -exports.EXITED = EXITED; -var ENTERING = 'entering'; -exports.ENTERING = ENTERING; -var ENTERED = 'entered'; -exports.ENTERED = ENTERED; -var EXITING = 'exiting'; -/** - * The Transition component lets you describe a transition from one component - * state to another _over time_ with a simple declarative API. Most commonly - * it's used to animate the mounting and unmounting of a component, but can also - * be used to describe in-place transition states as well. - * - * --- - * - * **Note**: `Transition` is a platform-agnostic base component. If you're using - * transitions in CSS, you'll probably want to use - * [`CSSTransition`](https://reactcommunity.org/react-transition-group/css-transition) - * instead. It inherits all the features of `Transition`, but contains - * additional features necessary to play nice with CSS transitions (hence the - * name of the component). - * - * --- - * - * By default the `Transition` component does not alter the behavior of the - * component it renders, it only tracks "enter" and "exit" states for the - * components. It's up to you to give meaning and effect to those states. For - * example we can add styles to a component when it enters or exits: - * - * ```jsx - * import { Transition } from 'react-transition-group'; - * - * const duration = 300; - * - * const defaultStyle = { - * transition: `opacity ${duration}ms ease-in-out`, - * opacity: 0, - * } - * - * const transitionStyles = { - * entering: { opacity: 0 }, - * entered: { opacity: 1 }, - * }; - * - * const Fade = ({ in: inProp }) => ( - * - * {state => ( - *
    - * I'm a fade Transition! - *
    - * )} - *
    - * ); - * ``` - * - * There are 4 main states a Transition can be in: - * - `'entering'` - * - `'entered'` - * - `'exiting'` - * - `'exited'` - * - * Transition state is toggled via the `in` prop. When `true` the component - * begins the "Enter" stage. During this stage, the component will shift from - * its current transition state, to `'entering'` for the duration of the - * transition and then to the `'entered'` stage once it's complete. Let's take - * the following example (we'll use the - * [useState](https://reactjs.org/docs/hooks-reference.html#usestate) hook): - * - * ```jsx - * function App() { - * const [inProp, setInProp] = useState(false); - * return ( - *
    - * - * {state => ( - * // ... - * )} - * - * - *
    - * ); - * } - * ``` - * - * When the button is clicked the component will shift to the `'entering'` state - * and stay there for 500ms (the value of `timeout`) before it finally switches - * to `'entered'`. - * - * When `in` is `false` the same thing happens except the state moves from - * `'exiting'` to `'exited'`. - */ + var label = _this.getOptionLabel(option); -exports.EXITING = EXITING; + var value = _this.getOptionValue(option); -var Transition = -/*#__PURE__*/ -function (_React$Component) { - _inheritsLoose(Transition, _React$Component); + if (_this.shouldHideSelectedOptions() && isSelected || !_this.filterOption({ + label: label, + value: value, + data: option + }, inputValue)) { + return; + } - function Transition(props, context) { - var _this; + var onHover = isDisabled ? undefined : function () { + return _this.onOptionHover(option); + }; + var onSelect = isDisabled ? undefined : function () { + return _this.selectOption(option); + }; + var optionId = "".concat(_this.getElementId('option'), "-").concat(id); + return { + innerProps: { + id: optionId, + onClick: onSelect, + onMouseMove: onHover, + onMouseOver: onHover, + tabIndex: -1 + }, + data: option, + isDisabled: isDisabled, + isSelected: isSelected, + key: optionId, + label: label, + type: 'option', + value: value + }; + }; - _this = _React$Component.call(this, props, context) || this; - var parentGroup = context.transitionGroup; // In the context of a TransitionGroup all enters are really appears + return options.reduce(function (acc, item, itemIndex) { + if (item.options) { + // TODO needs a tidier implementation + if (!_this.hasGroups) _this.hasGroups = true; + var items = item.options; + var children = items.map(function (child, i) { + var option = toOption(child, "".concat(itemIndex, "-").concat(i)); + if (option) acc.focusable.push(child); + return option; + }).filter(Boolean); - var appear = parentGroup && !parentGroup.isMounting ? props.enter : props.appear; - var initialStatus; - _this.appearStatus = null; + if (children.length) { + var groupId = "".concat(_this.getElementId('group'), "-").concat(itemIndex); + acc.render.push({ + type: 'group', + key: groupId, + data: item, + options: children + }); + } + } else { + var option = toOption(item, "".concat(itemIndex)); - if (props.in) { - if (appear) { - initialStatus = EXITED; - _this.appearStatus = ENTERING; - } else { - initialStatus = ENTERED; - } - } else { - if (props.unmountOnExit || props.mountOnEnter) { - initialStatus = UNMOUNTED; - } else { - initialStatus = EXITED; - } - } + if (option) { + acc.render.push(option); + acc.focusable.push(item); + } + } - _this.state = { - status: initialStatus + return acc; + }, { + render: [], + focusable: [] + }); }; - _this.nextCallback = null; - return _this; - } - var _proto = Transition.prototype; + var _value = _props.value; + _this.cacheComponents = Object(__WEBPACK_IMPORTED_MODULE_12_memoize_one__["a" /* default */])(_this.cacheComponents, __WEBPACK_IMPORTED_MODULE_15__index_75b02bac_browser_esm_js__["b" /* B */]).bind(Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_assertThisInitialized__["a" /* default */])(_this)); - _proto.getChildContext = function getChildContext() { - return { - transitionGroup: null // allows for nested Transitions + _this.cacheComponents(_props.components); - }; - }; + _this.instancePrefix = 'react-select-' + (_this.props.instanceId || ++instanceId); - Transition.getDerivedStateFromProps = function getDerivedStateFromProps(_ref, prevState) { - var nextIn = _ref.in; + var _selectValue = Object(__WEBPACK_IMPORTED_MODULE_15__index_75b02bac_browser_esm_js__["c" /* C */])(_value); - if (nextIn && prevState.status === UNMOUNTED) { - return { - status: EXITED - }; - } + _this.buildMenuOptions = Object(__WEBPACK_IMPORTED_MODULE_12_memoize_one__["a" /* default */])(_this.buildMenuOptions, function (newArgs, lastArgs) { + var _ref6 = newArgs, + _ref7 = Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_slicedToArray__["a" /* default */])(_ref6, 2), + newProps = _ref7[0], + newSelectValue = _ref7[1]; - return null; - }; // getSnapshotBeforeUpdate(prevProps) { - // let nextStatus = null - // if (prevProps !== this.props) { - // const { status } = this.state - // if (this.props.in) { - // if (status !== ENTERING && status !== ENTERED) { - // nextStatus = ENTERING - // } - // } else { - // if (status === ENTERING || status === ENTERED) { - // nextStatus = EXITING - // } - // } - // } - // return { nextStatus } - // } + var _ref8 = lastArgs, + _ref9 = Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_slicedToArray__["a" /* default */])(_ref8, 2), + lastProps = _ref9[0], + lastSelectValue = _ref9[1]; + return newSelectValue === lastSelectValue && newProps.inputValue === lastProps.inputValue && newProps.options === lastProps.options; + }).bind(Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_assertThisInitialized__["a" /* default */])(_this)); - _proto.componentDidMount = function componentDidMount() { - this.updateStatus(true, this.appearStatus); - }; + var _menuOptions = _props.menuIsOpen ? _this.buildMenuOptions(_props, _selectValue) : { + render: [], + focusable: [] + }; - _proto.componentDidUpdate = function componentDidUpdate(prevProps) { - var nextStatus = null; + _this.state.menuOptions = _menuOptions; + _this.state.selectValue = _selectValue; + return _this; + } - if (prevProps !== this.props) { - var status = this.state.status; + Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_createClass__["a" /* default */])(Select, [{ + key: "componentDidMount", + value: function componentDidMount() { + this.startListeningComposition(); + this.startListeningToTouch(); - if (this.props.in) { - if (status !== ENTERING && status !== ENTERED) { - nextStatus = ENTERING; - } - } else { - if (status === ENTERING || status === ENTERED) { - nextStatus = EXITING; - } + if (this.props.closeMenuOnScroll && document && document.addEventListener) { + // Listen to all scroll events, and filter them out inside of 'onScroll' + document.addEventListener('scroll', this.onScroll, true); + } + + if (this.props.autoFocus) { + this.focusInput(); } } + }, { + key: "UNSAFE_componentWillReceiveProps", + value: function UNSAFE_componentWillReceiveProps(nextProps) { + var _this$props8 = this.props, + options = _this$props8.options, + value = _this$props8.value, + menuIsOpen = _this$props8.menuIsOpen, + inputValue = _this$props8.inputValue; // re-cache custom components - this.updateStatus(false, nextStatus); - }; + this.cacheComponents(nextProps.components); // rebuild the menu options - _proto.componentWillUnmount = function componentWillUnmount() { - this.cancelNextCallback(); - }; + if (nextProps.value !== value || nextProps.options !== options || nextProps.menuIsOpen !== menuIsOpen || nextProps.inputValue !== inputValue) { + var selectValue = Object(__WEBPACK_IMPORTED_MODULE_15__index_75b02bac_browser_esm_js__["c" /* C */])(nextProps.value); + var menuOptions = nextProps.menuIsOpen ? this.buildMenuOptions(nextProps, selectValue) : { + render: [], + focusable: [] + }; + var focusedValue = this.getNextFocusedValue(selectValue); + var focusedOption = this.getNextFocusedOption(menuOptions.focusable); + this.setState({ + menuOptions: menuOptions, + selectValue: selectValue, + focusedOption: focusedOption, + focusedValue: focusedValue + }); + } // some updates should toggle the state of the input visibility - _proto.getTimeouts = function getTimeouts() { - var timeout = this.props.timeout; - var exit, enter, appear; - exit = enter = appear = timeout; - if (timeout != null && typeof timeout !== 'number') { - exit = timeout.exit; - enter = timeout.enter; // TODO: remove fallback for next major - - appear = timeout.appear !== undefined ? timeout.appear : enter; - } + if (this.inputIsHiddenAfterUpdate != null) { + this.setState({ + inputIsHidden: this.inputIsHiddenAfterUpdate + }); + delete this.inputIsHiddenAfterUpdate; + } + } + }, { + key: "componentDidUpdate", + value: function componentDidUpdate(prevProps) { + var _this$props9 = this.props, + isDisabled = _this$props9.isDisabled, + menuIsOpen = _this$props9.menuIsOpen; + var isFocused = this.state.isFocused; + + if ( // ensure focus is restored correctly when the control becomes enabled + isFocused && !isDisabled && prevProps.isDisabled || // ensure focus is on the Input when the menu opens + isFocused && menuIsOpen && !prevProps.menuIsOpen) { + this.focusInput(); + } + + if (isFocused && isDisabled && !prevProps.isDisabled) { + // ensure select state gets blurred in case Select is programatically disabled while focused + this.setState({ + isFocused: false + }, this.onMenuClose); + } // scroll the focused option into view if necessary + + + if (this.menuListRef && this.focusedOptionRef && this.scrollToFocusedOptionOnUpdate) { + Object(__WEBPACK_IMPORTED_MODULE_15__index_75b02bac_browser_esm_js__["d" /* D */])(this.menuListRef, this.focusedOptionRef); + this.scrollToFocusedOptionOnUpdate = false; + } + } + }, { + key: "componentWillUnmount", + value: function componentWillUnmount() { + this.stopListeningComposition(); + this.stopListeningToTouch(); + document.removeEventListener('scroll', this.onScroll, true); + } + }, { + key: "onMenuOpen", + // ============================== + // Consumer Handlers + // ============================== + value: function onMenuOpen() { + this.props.onMenuOpen(); + } + }, { + key: "onMenuClose", + value: function onMenuClose() { + var _this$props10 = this.props, + isSearchable = _this$props10.isSearchable, + isMulti = _this$props10.isMulti; + this.announceAriaLiveContext({ + event: 'input', + context: { + isSearchable: isSearchable, + isMulti: isMulti + } + }); + this.onInputChange('', { + action: 'menu-close' + }); + this.props.onMenuClose(); + } + }, { + key: "onInputChange", + value: function onInputChange(newValue, actionMeta) { + this.props.onInputChange(newValue, actionMeta); + } // ============================== + // Methods + // ============================== + + }, { + key: "focusInput", + value: function focusInput() { + if (!this.inputRef) return; + this.inputRef.focus(); + } + }, { + key: "blurInput", + value: function blurInput() { + if (!this.inputRef) return; + this.inputRef.blur(); + } // aliased for consumers + + }, { + key: "openMenu", + value: function openMenu(focusOption) { + var _this2 = this; - return { - exit: exit, - enter: enter, - appear: appear - }; - }; + var _this$state3 = this.state, + selectValue = _this$state3.selectValue, + isFocused = _this$state3.isFocused; + var menuOptions = this.buildMenuOptions(this.props, selectValue); + var _this$props11 = this.props, + isMulti = _this$props11.isMulti, + tabSelectsValue = _this$props11.tabSelectsValue; + var openAtIndex = focusOption === 'first' ? 0 : menuOptions.focusable.length - 1; - _proto.updateStatus = function updateStatus(mounting, nextStatus) { - if (mounting === void 0) { - mounting = false; - } + if (!isMulti) { + var selectedIndex = menuOptions.focusable.indexOf(selectValue[0]); - if (nextStatus !== null) { - // nextStatus will always be ENTERING or EXITING. - this.cancelNextCallback(); + if (selectedIndex > -1) { + openAtIndex = selectedIndex; + } + } // only scroll if the menu isn't already open - var node = _reactDom.default.findDOMNode(this); - if (nextStatus === ENTERING) { - this.performEnter(node, mounting); - } else { - this.performExit(node); - } - } else if (this.props.unmountOnExit && this.state.status === EXITED) { + this.scrollToFocusedOptionOnUpdate = !(isFocused && this.menuListRef); + this.inputIsHiddenAfterUpdate = false; this.setState({ - status: UNMOUNTED + menuOptions: menuOptions, + focusedValue: null, + focusedOption: menuOptions.focusable[openAtIndex] + }, function () { + _this2.onMenuOpen(); + + _this2.announceAriaLiveContext({ + event: 'menu', + context: { + tabSelectsValue: tabSelectsValue + } + }); }); } - }; + }, { + key: "focusValue", + value: function focusValue(direction) { + var _this$props12 = this.props, + isMulti = _this$props12.isMulti, + isSearchable = _this$props12.isSearchable; + var _this$state4 = this.state, + selectValue = _this$state4.selectValue, + focusedValue = _this$state4.focusedValue; // Only multiselects support value focusing + + if (!isMulti) return; + this.setState({ + focusedOption: null + }); + var focusedIndex = selectValue.indexOf(focusedValue); - _proto.performEnter = function performEnter(node, mounting) { - var _this2 = this; + if (!focusedValue) { + focusedIndex = -1; + this.announceAriaLiveContext({ + event: 'value' + }); + } - var enter = this.props.enter; - var appearing = this.context.transitionGroup ? this.context.transitionGroup.isMounting : mounting; - var timeouts = this.getTimeouts(); - var enterTimeout = appearing ? timeouts.appear : timeouts.enter; // no enter animation skip right to ENTERED - // if we are mounting and running this it means appear _must_ be set + var lastIndex = selectValue.length - 1; + var nextFocus = -1; + if (!selectValue.length) return; - if (!mounting && !enter) { - this.safeSetState({ - status: ENTERED - }, function () { - _this2.props.onEntered(node); - }); - return; - } + switch (direction) { + case 'previous': + if (focusedIndex === 0) { + // don't cycle from the start to the end + nextFocus = 0; + } else if (focusedIndex === -1) { + // if nothing is focused, focus the last value first + nextFocus = lastIndex; + } else { + nextFocus = focusedIndex - 1; + } - this.props.onEnter(node, appearing); - this.safeSetState({ - status: ENTERING - }, function () { - _this2.props.onEntering(node, appearing); + break; - _this2.onTransitionEnd(node, enterTimeout, function () { - _this2.safeSetState({ - status: ENTERED - }, function () { - _this2.props.onEntered(node, appearing); - }); - }); - }); - }; + case 'next': + if (focusedIndex > -1 && focusedIndex < lastIndex) { + nextFocus = focusedIndex + 1; + } - _proto.performExit = function performExit(node) { - var _this3 = this; + break; + } - var exit = this.props.exit; - var timeouts = this.getTimeouts(); // no exit animation skip right to EXITED + if (nextFocus === -1) { + this.announceAriaLiveContext({ + event: 'input', + context: { + isSearchable: isSearchable, + isMulti: isMulti + } + }); + } - if (!exit) { - this.safeSetState({ - status: EXITED - }, function () { - _this3.props.onExited(node); + this.setState({ + inputIsHidden: nextFocus !== -1, + focusedValue: selectValue[nextFocus] }); - return; } + }, { + key: "focusOption", + value: function focusOption() { + var direction = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'first'; + var _this$props13 = this.props, + pageSize = _this$props13.pageSize, + tabSelectsValue = _this$props13.tabSelectsValue; + var _this$state5 = this.state, + focusedOption = _this$state5.focusedOption, + menuOptions = _this$state5.menuOptions; + var options = menuOptions.focusable; + if (!options.length) return; + var nextFocus = 0; // handles 'first' + + var focusedIndex = options.indexOf(focusedOption); + + if (!focusedOption) { + focusedIndex = -1; + this.announceAriaLiveContext({ + event: 'menu', + context: { + tabSelectsValue: tabSelectsValue + } + }); + } - this.props.onExit(node); - this.safeSetState({ - status: EXITING - }, function () { - _this3.props.onExiting(node); + if (direction === 'up') { + nextFocus = focusedIndex > 0 ? focusedIndex - 1 : options.length - 1; + } else if (direction === 'down') { + nextFocus = (focusedIndex + 1) % options.length; + } else if (direction === 'pageup') { + nextFocus = focusedIndex - pageSize; + if (nextFocus < 0) nextFocus = 0; + } else if (direction === 'pagedown') { + nextFocus = focusedIndex + pageSize; + if (nextFocus > options.length - 1) nextFocus = options.length - 1; + } else if (direction === 'last') { + nextFocus = options.length - 1; + } - _this3.onTransitionEnd(node, timeouts.exit, function () { - _this3.safeSetState({ - status: EXITED - }, function () { - _this3.props.onExited(node); - }); + this.scrollToFocusedOptionOnUpdate = true; + this.setState({ + focusedOption: options[nextFocus], + focusedValue: null + }); + this.announceAriaLiveContext({ + event: 'menu', + context: { + isDisabled: isOptionDisabled(options[nextFocus]), + tabSelectsValue: tabSelectsValue + } }); - }); - }; - - _proto.cancelNextCallback = function cancelNextCallback() { - if (this.nextCallback !== null) { - this.nextCallback.cancel(); - this.nextCallback = null; } - }; - - _proto.safeSetState = function safeSetState(nextState, callback) { - // This shouldn't be necessary, but there are weird race conditions with - // setState callbacks and unmounting in testing, so always make sure that - // we can cancel any pending setState callbacks after we unmount. - callback = this.setNextCallback(callback); - this.setState(nextState, callback); - }; - - _proto.setNextCallback = function setNextCallback(callback) { - var _this4 = this; - - var active = true; - - this.nextCallback = function (event) { - if (active) { - active = false; - _this4.nextCallback = null; - callback(event); + }, { + key: "getTheme", + // ============================== + // Getters + // ============================== + value: function getTheme() { + // Use the default theme if there are no customizations. + if (!this.props.theme) { + return defaultTheme; + } // If the theme prop is a function, assume the function + // knows how to merge the passed-in default theme with + // its own modifications. + + + if (typeof this.props.theme === 'function') { + return this.props.theme(defaultTheme); + } // Otherwise, if a plain theme object was passed in, + // overlay it with the default theme. + + + return _objectSpread$2(_objectSpread$2({}, defaultTheme), this.props.theme); + } + }, { + key: "getCommonProps", + value: function getCommonProps() { + var clearValue = this.clearValue, + cx = this.cx, + getStyles = this.getStyles, + getValue = this.getValue, + setValue = this.setValue, + selectOption = this.selectOption, + props = this.props; + var isMulti = props.isMulti, + isRtl = props.isRtl, + options = props.options; + var hasValue = this.hasValue(); + return { + cx: cx, + clearValue: clearValue, + getStyles: getStyles, + getValue: getValue, + hasValue: hasValue, + isMulti: isMulti, + isRtl: isRtl, + options: options, + selectOption: selectOption, + setValue: setValue, + selectProps: props, + theme: this.getTheme() + }; + } + }, { + key: "getNextFocusedValue", + value: function getNextFocusedValue(nextSelectValue) { + if (this.clearFocusValueOnUpdate) { + this.clearFocusValueOnUpdate = false; + return null; } - }; - this.nextCallback.cancel = function () { - active = false; - }; + var _this$state6 = this.state, + focusedValue = _this$state6.focusedValue, + lastSelectValue = _this$state6.selectValue; + var lastFocusedIndex = lastSelectValue.indexOf(focusedValue); - return this.nextCallback; - }; + if (lastFocusedIndex > -1) { + var nextFocusedIndex = nextSelectValue.indexOf(focusedValue); - _proto.onTransitionEnd = function onTransitionEnd(node, timeout, handler) { - this.setNextCallback(handler); - var doesNotHaveTimeoutOrListener = timeout == null && !this.props.addEndListener; + if (nextFocusedIndex > -1) { + // the focused value is still in the selectValue, return it + return focusedValue; + } else if (lastFocusedIndex < nextSelectValue.length) { + // the focusedValue is not present in the next selectValue array by + // reference, so return the new value at the same index + return nextSelectValue[lastFocusedIndex]; + } + } - if (!node || doesNotHaveTimeoutOrListener) { - setTimeout(this.nextCallback, 0); - return; + return null; } - - if (this.props.addEndListener) { - this.props.addEndListener(node, this.nextCallback); + }, { + key: "getNextFocusedOption", + value: function getNextFocusedOption(options) { + var lastFocusedOption = this.state.focusedOption; + return lastFocusedOption && options.indexOf(lastFocusedOption) > -1 ? lastFocusedOption : options[0]; } - - if (timeout != null) { - setTimeout(this.nextCallback, timeout); + }, { + key: "hasValue", + value: function hasValue() { + var selectValue = this.state.selectValue; + return selectValue.length > 0; } - }; - - _proto.render = function render() { - var status = this.state.status; - - if (status === UNMOUNTED) { - return null; + }, { + key: "hasOptions", + value: function hasOptions() { + return !!this.state.menuOptions.render.length; } - - var _this$props = this.props, - children = _this$props.children, - childProps = _objectWithoutPropertiesLoose(_this$props, ["children"]); // filter props for Transtition - - - delete childProps.in; - delete childProps.mountOnEnter; - delete childProps.unmountOnExit; - delete childProps.appear; - delete childProps.enter; - delete childProps.exit; - delete childProps.timeout; - delete childProps.addEndListener; - delete childProps.onEnter; - delete childProps.onEntering; - delete childProps.onEntered; - delete childProps.onExit; - delete childProps.onExiting; - delete childProps.onExited; - - if (typeof children === 'function') { - return children(status, childProps); + }, { + key: "countOptions", + value: function countOptions() { + return this.state.menuOptions.focusable.length; } + }, { + key: "isClearable", + value: function isClearable() { + var _this$props14 = this.props, + isClearable = _this$props14.isClearable, + isMulti = _this$props14.isMulti; // single select, by default, IS NOT clearable + // multi select, by default, IS clearable - var child = _react.default.Children.only(children); + if (isClearable === undefined) return isMulti; + return isClearable; + } + }, { + key: "isOptionDisabled", + value: function isOptionDisabled(option, selectValue) { + return typeof this.props.isOptionDisabled === 'function' ? this.props.isOptionDisabled(option, selectValue) : false; + } + }, { + key: "isOptionSelected", + value: function isOptionSelected(option, selectValue) { + var _this3 = this; - return _react.default.cloneElement(child, childProps); - }; + if (selectValue.indexOf(option) > -1) return true; - return Transition; -}(_react.default.Component); + if (typeof this.props.isOptionSelected === 'function') { + return this.props.isOptionSelected(option, selectValue); + } -Transition.contextTypes = { - transitionGroup: PropTypes.object -}; -Transition.childContextTypes = { - transitionGroup: function transitionGroup() {} -}; -Transition.propTypes = process.env.NODE_ENV !== "production" ? { - /** - * A `function` child can be used instead of a React element. This function is - * called with the current transition status (`'entering'`, `'entered'`, - * `'exiting'`, `'exited'`, `'unmounted'`), which can be used to apply context - * specific props to a component. - * - * ```jsx - * - * {state => ( - * - * )} - * - * ``` - */ - children: PropTypes.oneOfType([PropTypes.func.isRequired, PropTypes.element.isRequired]).isRequired, + var candidate = this.getOptionValue(option); + return selectValue.some(function (i) { + return _this3.getOptionValue(i) === candidate; + }); + } + }, { + key: "filterOption", + value: function filterOption(option, inputValue) { + return this.props.filterOption ? this.props.filterOption(option, inputValue) : true; + } + }, { + key: "formatOptionLabel", + value: function formatOptionLabel(data, context) { + if (typeof this.props.formatOptionLabel === 'function') { + var inputValue = this.props.inputValue; + var selectValue = this.state.selectValue; + return this.props.formatOptionLabel(data, { + context: context, + inputValue: inputValue, + selectValue: selectValue + }); + } else { + return this.getOptionLabel(data); + } + } + }, { + key: "formatGroupLabel", + value: function formatGroupLabel(data) { + return this.props.formatGroupLabel(data); + } // ============================== + // Mouse Handlers + // ============================== + + }, { + key: "startListeningComposition", + // ============================== + // Composition Handlers + // ============================== + value: function startListeningComposition() { + if (document && document.addEventListener) { + document.addEventListener('compositionstart', this.onCompositionStart, false); + document.addEventListener('compositionend', this.onCompositionEnd, false); + } + } + }, { + key: "stopListeningComposition", + value: function stopListeningComposition() { + if (document && document.removeEventListener) { + document.removeEventListener('compositionstart', this.onCompositionStart); + document.removeEventListener('compositionend', this.onCompositionEnd); + } + } + }, { + key: "startListeningToTouch", + // ============================== + // Touch Handlers + // ============================== + value: function startListeningToTouch() { + if (document && document.addEventListener) { + document.addEventListener('touchstart', this.onTouchStart, false); + document.addEventListener('touchmove', this.onTouchMove, false); + document.addEventListener('touchend', this.onTouchEnd, false); + } + } + }, { + key: "stopListeningToTouch", + value: function stopListeningToTouch() { + if (document && document.removeEventListener) { + document.removeEventListener('touchstart', this.onTouchStart); + document.removeEventListener('touchmove', this.onTouchMove); + document.removeEventListener('touchend', this.onTouchEnd); + } + } + }, { + key: "constructAriaLiveMessage", + // ============================== + // Renderers + // ============================== + value: function constructAriaLiveMessage() { + var _this$state7 = this.state, + ariaLiveContext = _this$state7.ariaLiveContext, + selectValue = _this$state7.selectValue, + focusedValue = _this$state7.focusedValue, + focusedOption = _this$state7.focusedOption; + var _this$props15 = this.props, + options = _this$props15.options, + menuIsOpen = _this$props15.menuIsOpen, + inputValue = _this$props15.inputValue, + screenReaderStatus = _this$props15.screenReaderStatus; // An aria live message representing the currently focused value in the select. + + var focusedValueMsg = focusedValue ? valueFocusAriaMessage({ + focusedValue: focusedValue, + getOptionLabel: this.getOptionLabel, + selectValue: selectValue + }) : ''; // An aria live message representing the currently focused option in the select. - /** - * Show the component; triggers the enter or exit states - */ - in: PropTypes.bool, + var focusedOptionMsg = focusedOption && menuIsOpen ? optionFocusAriaMessage({ + focusedOption: focusedOption, + getOptionLabel: this.getOptionLabel, + options: options + }) : ''; // An aria live message representing the set of focusable results and current searchterm/inputvalue. - /** - * By default the child component is mounted immediately along with - * the parent `Transition` component. If you want to "lazy mount" the component on the - * first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay - * mounted, even on "exited", unless you also specify `unmountOnExit`. - */ - mountOnEnter: PropTypes.bool, + var resultsMsg = resultsAriaMessage({ + inputValue: inputValue, + screenReaderMessage: screenReaderStatus({ + count: this.countOptions() + }) + }); + return "".concat(focusedValueMsg, " ").concat(focusedOptionMsg, " ").concat(resultsMsg, " ").concat(ariaLiveContext); + } + }, { + key: "renderInput", + value: function renderInput() { + var _this$props16 = this.props, + isDisabled = _this$props16.isDisabled, + isSearchable = _this$props16.isSearchable, + inputId = _this$props16.inputId, + inputValue = _this$props16.inputValue, + tabIndex = _this$props16.tabIndex, + form = _this$props16.form; + var Input = this.components.Input; + var inputIsHidden = this.state.inputIsHidden; + var id = inputId || this.getElementId('input'); // aria attributes makes the JSX "noisy", separated for clarity + + var ariaAttributes = { + 'aria-autocomplete': 'list', + 'aria-label': this.props['aria-label'], + 'aria-labelledby': this.props['aria-labelledby'] + }; - /** - * By default the child component stays mounted after it reaches the `'exited'` state. - * Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting. - */ - unmountOnExit: PropTypes.bool, + if (!isSearchable) { + // use a dummy input to maintain focus/blur functionality + return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(DummyInput, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({ + id: id, + innerRef: this.getInputRef, + onBlur: this.onInputBlur, + onChange: __WEBPACK_IMPORTED_MODULE_15__index_75b02bac_browser_esm_js__["e" /* E */], + onFocus: this.onInputFocus, + readOnly: true, + disabled: isDisabled, + tabIndex: tabIndex, + form: form, + value: "" + }, ariaAttributes)); + } + + var _this$commonProps = this.commonProps, + cx = _this$commonProps.cx, + theme = _this$commonProps.theme, + selectProps = _this$commonProps.selectProps; + return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(Input, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({ + autoCapitalize: "none", + autoComplete: "off", + autoCorrect: "off", + cx: cx, + getStyles: this.getStyles, + id: id, + innerRef: this.getInputRef, + isDisabled: isDisabled, + isHidden: inputIsHidden, + onBlur: this.onInputBlur, + onChange: this.handleInputChange, + onFocus: this.onInputFocus, + selectProps: selectProps, + spellCheck: "false", + tabIndex: tabIndex, + form: form, + theme: theme, + type: "text", + value: inputValue + }, ariaAttributes)); + } + }, { + key: "renderPlaceholderOrValue", + value: function renderPlaceholderOrValue() { + var _this4 = this; + + var _this$components = this.components, + MultiValue = _this$components.MultiValue, + MultiValueContainer = _this$components.MultiValueContainer, + MultiValueLabel = _this$components.MultiValueLabel, + MultiValueRemove = _this$components.MultiValueRemove, + SingleValue = _this$components.SingleValue, + Placeholder = _this$components.Placeholder; + var commonProps = this.commonProps; + var _this$props17 = this.props, + controlShouldRenderValue = _this$props17.controlShouldRenderValue, + isDisabled = _this$props17.isDisabled, + isMulti = _this$props17.isMulti, + inputValue = _this$props17.inputValue, + placeholder = _this$props17.placeholder; + var _this$state8 = this.state, + selectValue = _this$state8.selectValue, + focusedValue = _this$state8.focusedValue, + isFocused = _this$state8.isFocused; + + if (!this.hasValue() || !controlShouldRenderValue) { + return inputValue ? null : /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(Placeholder, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, commonProps, { + key: "placeholder", + isDisabled: isDisabled, + isFocused: isFocused + }), placeholder); + } - /** - * Normally a component is not transitioned if it is shown when the `` component mounts. - * If you want to transition on the first mount set `appear` to `true`, and the - * component will transition in as soon as the `` mounts. - * - * > Note: there are no specific "appear" states. `appear` only adds an additional `enter` transition. - */ - appear: PropTypes.bool, + if (isMulti) { + var selectValues = selectValue.map(function (opt, index) { + var isOptionFocused = opt === focusedValue; + return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(MultiValue, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, commonProps, { + components: { + Container: MultiValueContainer, + Label: MultiValueLabel, + Remove: MultiValueRemove + }, + isFocused: isOptionFocused, + isDisabled: isDisabled, + key: "".concat(_this4.getOptionValue(opt)).concat(index), + index: index, + removeProps: { + onClick: function onClick() { + return _this4.removeValue(opt); + }, + onTouchEnd: function onTouchEnd() { + return _this4.removeValue(opt); + }, + onMouseDown: function onMouseDown(e) { + e.preventDefault(); + e.stopPropagation(); + } + }, + data: opt + }), _this4.formatOptionLabel(opt, 'value')); + }); + return selectValues; + } - /** - * Enable or disable enter transitions. - */ - enter: PropTypes.bool, + if (inputValue) { + return null; + } - /** - * Enable or disable exit transitions. - */ - exit: PropTypes.bool, + var singleValue = selectValue[0]; + return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(SingleValue, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, commonProps, { + data: singleValue, + isDisabled: isDisabled + }), this.formatOptionLabel(singleValue, 'value')); + } + }, { + key: "renderClearIndicator", + value: function renderClearIndicator() { + var ClearIndicator = this.components.ClearIndicator; + var commonProps = this.commonProps; + var _this$props18 = this.props, + isDisabled = _this$props18.isDisabled, + isLoading = _this$props18.isLoading; + var isFocused = this.state.isFocused; - /** - * The duration of the transition, in milliseconds. - * Required unless `addEndListener` is provided. - * - * You may specify a single timeout for all transitions: - * - * ```jsx - * timeout={500} - * ``` - * - * or individually: - * - * ```jsx - * timeout={{ - * appear: 500, - * enter: 300, - * exit: 500, - * }} - * ``` - * - * - `appear` defaults to the value of `enter` - * - `enter` defaults to `0` - * - `exit` defaults to `0` - * - * @type {number | { enter?: number, exit?: number, appear?: number }} - */ - timeout: function timeout(props) { - var pt = _PropTypes.timeoutsShape; - if (!props.addEndListener) pt = pt.isRequired; + if (!this.isClearable() || !ClearIndicator || isDisabled || !this.hasValue() || isLoading) { + return null; + } - for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { - args[_key - 1] = arguments[_key]; + var innerProps = { + onMouseDown: this.onClearIndicatorMouseDown, + onTouchEnd: this.onClearIndicatorTouchEnd, + 'aria-hidden': 'true' + }; + return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(ClearIndicator, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, commonProps, { + innerProps: innerProps, + isFocused: isFocused + })); + } + }, { + key: "renderLoadingIndicator", + value: function renderLoadingIndicator() { + var LoadingIndicator = this.components.LoadingIndicator; + var commonProps = this.commonProps; + var _this$props19 = this.props, + isDisabled = _this$props19.isDisabled, + isLoading = _this$props19.isLoading; + var isFocused = this.state.isFocused; + if (!LoadingIndicator || !isLoading) return null; + var innerProps = { + 'aria-hidden': 'true' + }; + return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(LoadingIndicator, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, commonProps, { + innerProps: innerProps, + isDisabled: isDisabled, + isFocused: isFocused + })); + } + }, { + key: "renderIndicatorSeparator", + value: function renderIndicatorSeparator() { + var _this$components2 = this.components, + DropdownIndicator = _this$components2.DropdownIndicator, + IndicatorSeparator = _this$components2.IndicatorSeparator; // separator doesn't make sense without the dropdown indicator + + if (!DropdownIndicator || !IndicatorSeparator) return null; + var commonProps = this.commonProps; + var isDisabled = this.props.isDisabled; + var isFocused = this.state.isFocused; + return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(IndicatorSeparator, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, commonProps, { + isDisabled: isDisabled, + isFocused: isFocused + })); + } + }, { + key: "renderDropdownIndicator", + value: function renderDropdownIndicator() { + var DropdownIndicator = this.components.DropdownIndicator; + if (!DropdownIndicator) return null; + var commonProps = this.commonProps; + var isDisabled = this.props.isDisabled; + var isFocused = this.state.isFocused; + var innerProps = { + onMouseDown: this.onDropdownIndicatorMouseDown, + onTouchEnd: this.onDropdownIndicatorTouchEnd, + 'aria-hidden': 'true' + }; + return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(DropdownIndicator, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, commonProps, { + innerProps: innerProps, + isDisabled: isDisabled, + isFocused: isFocused + })); } + }, { + key: "renderMenu", + value: function renderMenu() { + var _this5 = this; + + var _this$components3 = this.components, + Group = _this$components3.Group, + GroupHeading = _this$components3.GroupHeading, + Menu = _this$components3.Menu, + MenuList = _this$components3.MenuList, + MenuPortal = _this$components3.MenuPortal, + LoadingMessage = _this$components3.LoadingMessage, + NoOptionsMessage = _this$components3.NoOptionsMessage, + Option = _this$components3.Option; + var commonProps = this.commonProps; + var _this$state9 = this.state, + focusedOption = _this$state9.focusedOption, + menuOptions = _this$state9.menuOptions; + var _this$props20 = this.props, + captureMenuScroll = _this$props20.captureMenuScroll, + inputValue = _this$props20.inputValue, + isLoading = _this$props20.isLoading, + loadingMessage = _this$props20.loadingMessage, + minMenuHeight = _this$props20.minMenuHeight, + maxMenuHeight = _this$props20.maxMenuHeight, + menuIsOpen = _this$props20.menuIsOpen, + menuPlacement = _this$props20.menuPlacement, + menuPosition = _this$props20.menuPosition, + menuPortalTarget = _this$props20.menuPortalTarget, + menuShouldBlockScroll = _this$props20.menuShouldBlockScroll, + menuShouldScrollIntoView = _this$props20.menuShouldScrollIntoView, + noOptionsMessage = _this$props20.noOptionsMessage, + onMenuScrollToTop = _this$props20.onMenuScrollToTop, + onMenuScrollToBottom = _this$props20.onMenuScrollToBottom; + if (!menuIsOpen) return null; // TODO: Internal Option Type here + + var render = function render(props) { + // for performance, the menu options in state aren't changed when the + // focused option changes so we calculate additional props based on that + var isFocused = focusedOption === props.data; + props.innerRef = isFocused ? _this5.getFocusedOptionRef : undefined; + return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(Option, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, commonProps, props, { + isFocused: isFocused + }), _this5.formatOptionLabel(props.data, 'menu')); + }; - return pt.apply(void 0, [props].concat(args)); - }, + var menuUI; + + if (this.hasOptions()) { + menuUI = menuOptions.render.map(function (item) { + if (item.type === 'group') { + var type = item.type, + group = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(item, ["type"]); + + var headingId = "".concat(item.key, "-heading"); + return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(Group, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, commonProps, group, { + Heading: GroupHeading, + headingProps: { + id: headingId, + data: item.data + }, + label: _this5.formatGroupLabel(item.data) + }), item.options.map(function (option) { + return render(option); + })); + } else if (item.type === 'option') { + return render(item); + } + }); + } else if (isLoading) { + var message = loadingMessage({ + inputValue: inputValue + }); + if (message === null) return null; + menuUI = /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(LoadingMessage, commonProps, message); + } else { + var _message = noOptionsMessage({ + inputValue: inputValue + }); - /** - * Add a custom transition end trigger. Called with the transitioning - * DOM node and a `done` callback. Allows for more fine grained transition end - * logic. **Note:** Timeouts are still used as a fallback if provided. - * - * ```jsx - * addEndListener={(node, done) => { - * // use the css transitionend event to mark the finish of a transition - * node.addEventListener('transitionend', done, false); - * }} - * ``` - */ - addEndListener: PropTypes.func, + if (_message === null) return null; + menuUI = /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(NoOptionsMessage, commonProps, _message); + } - /** - * Callback fired before the "entering" status is applied. An extra parameter - * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount - * - * @type Function(node: HtmlElement, isAppearing: bool) -> void - */ - onEnter: PropTypes.func, + var menuPlacementProps = { + minMenuHeight: minMenuHeight, + maxMenuHeight: maxMenuHeight, + menuPlacement: menuPlacement, + menuPosition: menuPosition, + menuShouldScrollIntoView: menuShouldScrollIntoView + }; + var menuElement = /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_15__index_75b02bac_browser_esm_js__["f" /* M */], Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, commonProps, menuPlacementProps), function (_ref10) { + var ref = _ref10.ref, + _ref10$placerProps = _ref10.placerProps, + placement = _ref10$placerProps.placement, + maxHeight = _ref10$placerProps.maxHeight; + return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(Menu, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, commonProps, menuPlacementProps, { + innerRef: ref, + innerProps: { + onMouseDown: _this5.onMenuMouseDown, + onMouseMove: _this5.onMenuMouseMove + }, + isLoading: isLoading, + placement: placement + }), /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(ScrollCaptorSwitch, { + isEnabled: captureMenuScroll, + onTopArrive: onMenuScrollToTop, + onBottomArrive: onMenuScrollToBottom + }, /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(ScrollBlock, { + isEnabled: menuShouldBlockScroll + }, /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(MenuList, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, commonProps, { + innerRef: _this5.getMenuListRef, + isLoading: isLoading, + maxHeight: maxHeight + }), menuUI)))); + }); // positioning behaviour is almost identical for portalled and fixed, + // so we use the same component. the actual portalling logic is forked + // within the component based on `menuPosition` + + return menuPortalTarget || menuPosition === 'fixed' ? /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(MenuPortal, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, commonProps, { + appendTo: menuPortalTarget, + controlElement: this.controlRef, + menuPlacement: menuPlacement, + menuPosition: menuPosition + }), menuElement) : menuElement; + } + }, { + key: "renderFormField", + value: function renderFormField() { + var _this6 = this; + + var _this$props21 = this.props, + delimiter = _this$props21.delimiter, + isDisabled = _this$props21.isDisabled, + isMulti = _this$props21.isMulti, + name = _this$props21.name; + var selectValue = this.state.selectValue; + if (!name || isDisabled) return; - /** - * Callback fired after the "entering" status is applied. An extra parameter - * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount - * - * @type Function(node: HtmlElement, isAppearing: bool) - */ - onEntering: PropTypes.func, + if (isMulti) { + if (delimiter) { + var value = selectValue.map(function (opt) { + return _this6.getOptionValue(opt); + }).join(delimiter); + return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement("input", { + name: name, + type: "hidden", + value: value + }); + } else { + var input = selectValue.length > 0 ? selectValue.map(function (opt, i) { + return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement("input", { + key: "i-".concat(i), + name: name, + type: "hidden", + value: _this6.getOptionValue(opt) + }); + }) : /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement("input", { + name: name, + type: "hidden" + }); + return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement("div", null, input); + } + } else { + var _value2 = selectValue[0] ? this.getOptionValue(selectValue[0]) : ''; - /** - * Callback fired after the "entered" status is applied. An extra parameter - * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount - * - * @type Function(node: HtmlElement, isAppearing: bool) -> void - */ - onEntered: PropTypes.func, + return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement("input", { + name: name, + type: "hidden", + value: _value2 + }); + } + } + }, { + key: "renderLiveRegion", + value: function renderLiveRegion() { + if (!this.state.isFocused) return null; + return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(A11yText, { + "aria-live": "polite" + }, /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement("span", { + id: "aria-selection-event" + }, "\xA0", this.state.ariaLiveSelection), /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement("span", { + id: "aria-context" + }, "\xA0", this.constructAriaLiveMessage())); + } + }, { + key: "render", + value: function render() { + var _this$components4 = this.components, + Control = _this$components4.Control, + IndicatorsContainer = _this$components4.IndicatorsContainer, + SelectContainer = _this$components4.SelectContainer, + ValueContainer = _this$components4.ValueContainer; + var _this$props22 = this.props, + className = _this$props22.className, + id = _this$props22.id, + isDisabled = _this$props22.isDisabled, + menuIsOpen = _this$props22.menuIsOpen; + var isFocused = this.state.isFocused; + var commonProps = this.commonProps = this.getCommonProps(); + return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(SelectContainer, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, commonProps, { + className: className, + innerProps: { + id: id, + onKeyDown: this.onKeyDown + }, + isDisabled: isDisabled, + isFocused: isFocused + }), this.renderLiveRegion(), /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(Control, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, commonProps, { + innerRef: this.getControlRef, + innerProps: { + onMouseDown: this.onControlMouseDown, + onTouchEnd: this.onControlTouchEnd + }, + isDisabled: isDisabled, + isFocused: isFocused, + menuIsOpen: menuIsOpen + }), /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(ValueContainer, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, commonProps, { + isDisabled: isDisabled + }), this.renderPlaceholderOrValue(), this.renderInput()), /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(IndicatorsContainer, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, commonProps, { + isDisabled: isDisabled + }), this.renderClearIndicator(), this.renderLoadingIndicator(), this.renderIndicatorSeparator(), this.renderDropdownIndicator())), this.renderMenu(), this.renderFormField()); + } + }]); - /** - * Callback fired before the "exiting" status is applied. - * - * @type Function(node: HtmlElement) -> void - */ - onExit: PropTypes.func, + return Select; +}(__WEBPACK_IMPORTED_MODULE_11_react__["Component"]); - /** - * Callback fired after the "exiting" status is applied. - * - * @type Function(node: HtmlElement) -> void - */ - onExiting: PropTypes.func, +Select.defaultProps = defaultProps; - /** - * Callback fired after the "exited" status is applied. - * - * @type Function(node: HtmlElement) -> void - */ - onExited: PropTypes.func // Name the function so it is clearer in the documentation -} : {}; -function noop() {} +/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(/*! ./../../process/browser.js */ 6))) -Transition.defaultProps = { - in: false, - mountOnEnter: false, - unmountOnExit: false, - appear: false, - enter: true, - exit: true, - onEnter: noop, - onEntering: noop, - onEntered: noop, - onExit: noop, - onExiting: noop, - onExited: noop -}; -Transition.UNMOUNTED = 0; -Transition.EXITED = 1; -Transition.ENTERING = 2; -Transition.ENTERED = 3; -Transition.EXITING = 4; +/***/ }), +/* 181 */ +/*!*********************************************************************************************************!*\ + !*** ./node_modules/react-select/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js ***! + \*********************************************************************************************************/ +/*! exports provided: default */ +/*! exports used: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { -var _default = (0, _reactLifecyclesCompat.polyfill)(Transition); +"use strict"; +/* harmony export (immutable) */ __webpack_exports__["a"] = _unsupportedIterableToArray; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__arrayLikeToArray_js__ = __webpack_require__(/*! ./arrayLikeToArray.js */ 182); -exports.default = _default; -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(/*! ./../process/browser.js */ 3))) +function _unsupportedIterableToArray(o, minLen) { + if (!o) return; + if (typeof o === "string") return Object(__WEBPACK_IMPORTED_MODULE_0__arrayLikeToArray_js__["a" /* default */])(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + if (n === "Object" && o.constructor) n = o.constructor.name; + if (n === "Map" || n === "Set") return Array.from(o); + if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Object(__WEBPACK_IMPORTED_MODULE_0__arrayLikeToArray_js__["a" /* default */])(o, minLen); +} /***/ }), -/* 157 */ -/*!****************************************************************************!*\ - !*** ./node_modules/react-lifecycles-compat/react-lifecycles-compat.es.js ***! - \****************************************************************************/ -/*! exports provided: polyfill */ -/*! all exports used */ +/* 182 */ +/*!***********************************************************************************************!*\ + !*** ./node_modules/react-select/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js ***! + \***********************************************************************************************/ +/*! exports provided: default */ +/*! exports used: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "polyfill", function() { return polyfill; }); -/** - * Copyright (c) 2013-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ +/* harmony export (immutable) */ __webpack_exports__["a"] = _arrayLikeToArray; +function _arrayLikeToArray(arr, len) { + if (len == null || len > arr.length) len = arr.length; -function componentWillMount() { - // Call this.constructor.gDSFP to support sub-classes. - var state = this.constructor.getDerivedStateFromProps(this.props, this.state); - if (state !== null && state !== undefined) { - this.setState(state); + for (var i = 0, arr2 = new Array(len); i < len; i++) { + arr2[i] = arr[i]; } -} -function componentWillReceiveProps(nextProps) { - // Call this.constructor.gDSFP to support sub-classes. - // Use the setState() updater to ensure state isn't stale in certain edge cases. - function updater(prevState) { - var state = this.constructor.getDerivedStateFromProps(nextProps, prevState); - return state !== null && state !== undefined ? state : null; - } - // Binding "this" is important for shallow renderer support. - this.setState(updater.bind(this)); + return arr2; } -function componentWillUpdate(nextProps, nextState) { - try { - var prevProps = this.props; - var prevState = this.state; - this.props = nextProps; - this.state = nextState; - this.__reactInternalSnapshotFlag = true; - this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate( - prevProps, - prevState - ); - } finally { - this.props = prevProps; - this.state = prevState; - } -} +/***/ }), +/* 183 */ +/*!************************************************!*\ + !*** ./src/blocks/advanced-heading/style.scss ***! + \************************************************/ +/*! dynamic exports provided */ +/***/ (function(module, exports) { -// React may warn about cWM/cWRP/cWU methods being deprecated. -// Add a flag to suppress these warnings for this special case. -componentWillMount.__suppressDeprecationWarning = true; -componentWillReceiveProps.__suppressDeprecationWarning = true; -componentWillUpdate.__suppressDeprecationWarning = true; +// removed by extract-text-webpack-plugin -function polyfill(Component) { - var prototype = Component.prototype; +/***/ }), +/* 184 */ +/*!********************************************!*\ + !*** ./src/blocks/post/post-title/edit.js ***! + \********************************************/ +/*! exports provided: PostTitle */ +/*! exports used: PostTitle */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { - if (!prototype || !prototype.isReactComponent) { - throw new Error('Can only polyfill class components'); - } +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return PostTitle; }); +var decodeEntities = wp.htmlEntities.decodeEntities; +var __ = wp.i18n.__; - if ( - typeof Component.getDerivedStateFromProps !== 'function' && - typeof prototype.getSnapshotBeforeUpdate !== 'function' - ) { - return Component; - } - - // If new component APIs are defined, "unsafe" lifecycles won't be called. - // Error if any of these lifecycles are present, - // Because they would work differently between older and newer (16.3+) versions of React. - var foundWillMountName = null; - var foundWillReceivePropsName = null; - var foundWillUpdateName = null; - if (typeof prototype.componentWillMount === 'function') { - foundWillMountName = 'componentWillMount'; - } else if (typeof prototype.UNSAFE_componentWillMount === 'function') { - foundWillMountName = 'UNSAFE_componentWillMount'; - } - if (typeof prototype.componentWillReceiveProps === 'function') { - foundWillReceivePropsName = 'componentWillReceiveProps'; - } else if (typeof prototype.UNSAFE_componentWillReceiveProps === 'function') { - foundWillReceivePropsName = 'UNSAFE_componentWillReceiveProps'; - } - if (typeof prototype.componentWillUpdate === 'function') { - foundWillUpdateName = 'componentWillUpdate'; - } else if (typeof prototype.UNSAFE_componentWillUpdate === 'function') { - foundWillUpdateName = 'UNSAFE_componentWillUpdate'; - } - if ( - foundWillMountName !== null || - foundWillReceivePropsName !== null || - foundWillUpdateName !== null - ) { - var componentName = Component.displayName || Component.name; - var newApiName = - typeof Component.getDerivedStateFromProps === 'function' - ? 'getDerivedStateFromProps()' - : 'getSnapshotBeforeUpdate()'; - - throw Error( - 'Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n' + - componentName + - ' uses ' + - newApiName + - ' but also contains the following legacy lifecycles:' + - (foundWillMountName !== null ? '\n ' + foundWillMountName : '') + - (foundWillReceivePropsName !== null - ? '\n ' + foundWillReceivePropsName - : '') + - (foundWillUpdateName !== null ? '\n ' + foundWillUpdateName : '') + - '\n\nThe above lifecycles should be removed. Learn more about this warning here:\n' + - 'https://fb.me/react-async-component-lifecycle-hooks' - ); - } - // React <= 16.2 does not support static getDerivedStateFromProps. - // As a workaround, use cWM and cWRP to invoke the new static lifecycle. - // Newer versions of React will ignore these lifecycles if gDSFP exists. - if (typeof Component.getDerivedStateFromProps === 'function') { - prototype.componentWillMount = componentWillMount; - prototype.componentWillReceiveProps = componentWillReceiveProps; - } +var PostTitle = function PostTitle(props) { + var attributes = props.attributes, + post = props.post; - // React <= 16.2 does not support getSnapshotBeforeUpdate. - // As a workaround, use cWU to invoke the new lifecycle. - // Newer versions of React will ignore that lifecycle if gSBU exists. - if (typeof prototype.getSnapshotBeforeUpdate === 'function') { - if (typeof prototype.componentDidUpdate !== 'function') { - throw new Error( - 'Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype' - ); - } - prototype.componentWillUpdate = componentWillUpdate; - - var componentDidUpdate = prototype.componentDidUpdate; - - prototype.componentDidUpdate = function componentDidUpdatePolyfill( - prevProps, - prevState, - maybeSnapshot - ) { - // 16.3+ will not execute our will-update method; - // It will pass a snapshot value to did-update though. - // Older versions will require our polyfilled will-update value. - // We need to handle both cases, but can't just check for the presence of "maybeSnapshot", - // Because for <= 15.x versions this might be a "prevContext" object. - // We also can't just check "__reactInternalSnapshot", - // Because get-snapshot might return a falsy value. - // So check for the explicit __reactInternalSnapshotFlag flag to determine behavior. - var snapshot = this.__reactInternalSnapshotFlag - ? this.__reactInternalSnapshot - : maybeSnapshot; - - componentDidUpdate.call(this, prevProps, prevState, snapshot); - }; - } + var Tag = attributes.titleTag; - return Component; -} + var target = attributes.newTab ? "_blank" : "_self"; + if (undefined == post.title) { + return null; + } + if (attributes.displayPostTitle) { + return wp.element.createElement( + "div", + { className: "uagb-post__text" }, + wp.element.createElement( + Tag, + { className: "uagb-post__title" }, + wp.element.createElement( + "a", + { href: post.link, target: target, rel: "noopener noreferrer" }, + decodeEntities(post.title.rendered.trim()) || __("(Untitled)") + ) + ) + ); + } else { + return null; + } +}; /***/ }), -/* 158 */ -/*!****************************************************************!*\ - !*** ./node_modules/react-transition-group/utils/PropTypes.js ***! - \****************************************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { +/* 185 */ +/*!*******************************************!*\ + !*** ./src/blocks/post/post-meta/edit.js ***! + \*******************************************/ +/*! exports provided: PostMeta */ +/*! exports used: PostMeta */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -/* WEBPACK VAR INJECTION */(function(process) { +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return PostMeta; }); +var _wp$date = wp.date, + dateI18n = _wp$date.dateI18n, + format = _wp$date.format, + __experimentalGetSettings = _wp$date.__experimentalGetSettings; -exports.__esModule = true; -exports.classNamesShape = exports.timeoutsShape = void 0; -var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ 15)); +var PostMeta = function PostMeta(props) { + var post = props.post, + attributes = props.attributes, + categoriesList = props.categoriesList; -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } -var timeoutsShape = process.env.NODE_ENV !== 'production' ? _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.shape({ - enter: _propTypes.default.number, - exit: _propTypes.default.number, - appear: _propTypes.default.number -}).isRequired]) : null; -exports.timeoutsShape = timeoutsShape; -var classNamesShape = process.env.NODE_ENV !== 'production' ? _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.shape({ - enter: _propTypes.default.string, - exit: _propTypes.default.string, - active: _propTypes.default.string -}), _propTypes.default.shape({ - enter: _propTypes.default.string, - enterDone: _propTypes.default.string, - enterActive: _propTypes.default.string, - exit: _propTypes.default.string, - exitDone: _propTypes.default.string, - exitActive: _propTypes.default.string -})]) : null; -exports.classNamesShape = classNamesShape; -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(/*! ./../../process/browser.js */ 3))) + var dateFormat = __experimentalGetSettings().formats.date; -/***/ }), -/* 159 */ -/*!****************************************************************!*\ - !*** ./node_modules/react-transition-group/TransitionGroup.js ***! - \****************************************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { + var list = categoriesList; + var cat = post.categories; + var categoriesName = []; -"use strict"; -/* WEBPACK VAR INJECTION */(function(process) { + if (list !== undefined && cat !== undefined) { + for (var j = 0; j < list.length; j++) { + for (var i = 0; i < cat.length; i++) { + if (list[j].id === cat[i]) { + categoriesName.push(list[j].name); + } + } + } + } -exports.__esModule = true; -exports.default = void 0; + return wp.element.createElement( + 'div', + { className: ' uagb-post__text ' }, + wp.element.createElement( + 'div', + { className: 'uagb-post-grid-byline' }, + attributes.displayPostAuthor && undefined !== post.uagb_author_info && wp.element.createElement( + 'span', + { className: 'uagb-post__author' }, + wp.element.createElement('span', { className: 'dashicons-admin-users dashicons' }), + wp.element.createElement( + 'a', + { target: '_blank', href: post.uagb_author_info.author_link, rel: 'noopener noreferrer' }, + post.uagb_author_info.display_name + ) + ), + attributes.displayPostDate && post.date_gmt && wp.element.createElement( + 'time', + { dateTime: format("c", post.date_gmt), className: 'uagb-post__date' }, + wp.element.createElement('span', { className: 'dashicons-calendar dashicons' }), + dateI18n(dateFormat, post.date_gmt) + ), + attributes.displayPostComment && undefined !== post.uagb_comment_info && wp.element.createElement( + 'span', + { className: 'uagb-post__comment' }, + wp.element.createElement('span', { className: 'dashicons-admin-comments dashicons' }), + post.uagb_comment_info + ), + attributes.displayPostTaxonomy && wp.element.createElement( + 'span', + { className: 'uagb-post__taxonomy' }, + wp.element.createElement('span', { className: 'dashicons-tag dashicons' }), + categoriesName.join(", ") + ) + ) + ); +}; -var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ 15)); +/***/ }), +/* 186 */ +/*!********************************************!*\ + !*** ./src/blocks/post/post-image/edit.js ***! + \********************************************/ +/*! exports provided: PostImage */ +/*! exports used: PostImage */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { -var _react = _interopRequireDefault(__webpack_require__(/*! react */ 6)); +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return PostImage; }); +var decodeEntities = wp.htmlEntities.decodeEntities; +var __ = wp.i18n.__; -var _reactLifecyclesCompat = __webpack_require__(/*! react-lifecycles-compat */ 157); -var _ChildMapping = __webpack_require__(/*! ./utils/ChildMapping */ 416); +var PostImage = function PostImage(props) { + var post = props.post, + attributes = props.attributes; -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } -function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } + var target = attributes.newTab ? "_blank" : "_self"; -function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } + if (attributes.displayPostImage && undefined !== post.uagb_featured_image_src && attributes.imgSize && post.uagb_featured_image_src[attributes.imgSize]) { + var src = post.uagb_featured_image_src[attributes.imgSize]; -function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; } + return wp.element.createElement( + "div", + { className: "uagb-post__image" }, + wp.element.createElement( + "a", + { href: post.link, target: target, rel: "noopener noreferrer" }, + wp.element.createElement("img", { + src: src[0], + alt: decodeEntities(post.title.rendered.trim()) || __("(Untitled)") + }) + ) + ); + } else { -function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + return null; + } +}; -var values = Object.values || function (obj) { - return Object.keys(obj).map(function (k) { - return obj[k]; - }); +/***/ }), +/* 187 */ +/*!**********************************************!*\ + !*** ./src/blocks/post/post-excerpt/edit.js ***! + \**********************************************/ +/*! exports provided: PostExcerpt */ +/*! exports used: PostExcerpt */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return PostExcerpt; }); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash_truncate__ = __webpack_require__(/*! lodash/truncate */ 386); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash_truncate___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash_truncate__); + + +var PostExcerpt = function PostExcerpt(props) { + var post = props.post, + attributes = props.attributes; + + + if (post.uagb_excerpt == undefined) { + return null; + } + + var words = post.uagb_excerpt.split(" "); + + var excerpt = post.uagb_excerpt; + + var exLen = attributes.excerptLength ? attributes.excerptLength : 25; + + if (exLen >= words.length) { + excerpt = post.uagb_excerpt; + } else { + var truncated = words.slice(0, exLen); + excerpt = truncated.join(" "); + excerpt += " ..."; + } + + if (attributes.displayPostExcerpt && attributes.displayPostContentRadio == "excerpt") { + + return wp.element.createElement( + "div", + { className: "uagb-post__text" }, + wp.element.createElement( + "div", + { className: "uagb-post__excerpt" }, + wp.element.createElement("div", { dangerouslySetInnerHTML: { __html: excerpt } }) + ) + ); + } else if (attributes.displayPostExcerpt && attributes.displayPostContentRadio == "full_post") { + + return wp.element.createElement( + "div", + { className: "uagb-post__text" }, + wp.element.createElement( + "div", + { className: "uagb-post__excerpt uagb-full_post" }, + wp.element.createElement("div", { dangerouslySetInnerHTML: { __html: post.content.raw.trim() } }) + ) + ); + } else { + return null; + } }; -var defaultProps = { - component: 'div', - childFactory: function childFactory(child) { - return child; +/***/ }), +/* 188 */ +/*!*****************************************!*\ + !*** ./node_modules/lodash/toNumber.js ***! + \*****************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { + +var isObject = __webpack_require__(/*! ./isObject */ 13), + isSymbol = __webpack_require__(/*! ./isSymbol */ 57); + +/** Used as references for various `Number` constants. */ +var NAN = 0 / 0; + +/** Used to match leading and trailing whitespace. */ +var reTrim = /^\s+|\s+$/g; + +/** Used to detect bad signed hexadecimal string values. */ +var reIsBadHex = /^[-+]0x[0-9a-f]+$/i; + +/** Used to detect binary string values. */ +var reIsBinary = /^0b[01]+$/i; + +/** Used to detect octal string values. */ +var reIsOctal = /^0o[0-7]+$/i; + +/** Built-in method references without a dependency on `root`. */ +var freeParseInt = parseInt; + +/** + * Converts `value` to a number. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to process. + * @returns {number} Returns the number. + * @example + * + * _.toNumber(3.2); + * // => 3.2 + * + * _.toNumber(Number.MIN_VALUE); + * // => 5e-324 + * + * _.toNumber(Infinity); + * // => Infinity + * + * _.toNumber('3.2'); + * // => 3.2 + */ +function toNumber(value) { + if (typeof value == 'number') { + return value; } - /** - * The `` component manages a set of transition components - * (`` and ``) in a list. Like with the transition - * components, `` is a state machine for managing the mounting - * and unmounting of components over time. - * - * Consider the example below. As items are removed or added to the TodoList the - * `in` prop is toggled automatically by the ``. - * - * Note that `` does not define any animation behavior! - * Exactly _how_ a list item animates is up to the individual transition - * component. This means you can mix and match animations across different list - * items. - */ + if (isSymbol(value)) { + return NAN; + } + if (isObject(value)) { + var other = typeof value.valueOf == 'function' ? value.valueOf() : value; + value = isObject(other) ? (other + '') : other; + } + if (typeof value != 'string') { + return value === 0 ? value : +value; + } + value = value.replace(reTrim, ''); + var isBinary = reIsBinary.test(value); + return (isBinary || reIsOctal.test(value)) + ? freeParseInt(value.slice(2), isBinary ? 2 : 8) + : (reIsBadHex.test(value) ? NAN : +value); +} -}; +module.exports = toNumber; -var TransitionGroup = -/*#__PURE__*/ -function (_React$Component) { - _inheritsLoose(TransitionGroup, _React$Component); - function TransitionGroup(props, context) { - var _this; +/***/ }), +/* 189 */ +/*!*********************************************!*\ + !*** ./src/blocks/post/post-button/edit.js ***! + \*********************************************/ +/*! exports provided: PostButton */ +/*! exports used: PostButton */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { - _this = _React$Component.call(this, props, context) || this; +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return PostButton; }); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_classnames__ = __webpack_require__(/*! classnames */ 0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_classnames__); +var __ = wp.i18n.__; - var handleExited = _this.handleExited.bind(_assertThisInitialized(_assertThisInitialized(_this))); // Initial children should all be entering, dependent on appear - _this.state = { - handleExited: handleExited, - firstRender: true - }; - return _this; +var PostButton = function PostButton(props) { + var attributes = props.attributes, + post = props.post; + + + if (attributes.displayPostContentRadio == "full_post") { + return null; + } + + var target = attributes.newTab ? "_blank" : "_self"; + + if (attributes.displayPostLink) { + + var cta_text = attributes.ctaText ? attributes.ctaText : __("Read More"); + + return wp.element.createElement( + "div", + { className: "uagb-post__text" }, + wp.element.createElement( + "div", + { className: __WEBPACK_IMPORTED_MODULE_0_classnames___default()('uagb-post__cta', attributes.inheritFromTheme ? 'wp-block-button' : null) }, + wp.element.createElement( + "a", + { + className: __WEBPACK_IMPORTED_MODULE_0_classnames___default()(!attributes.inheritFromTheme ? 'uagb-post__link ' : null, 'uagb-text-link', attributes.inheritFromTheme ? 'wp-block-button__link' : null), + href: post.link, + target: target, + rel: "noopener noreferrer" }, + cta_text + ) + ) + ); + } else { + return null; + } +}; + +/***/ }), +/* 190 */ +/*!*************************************************!*\ + !*** ./node_modules/lodash/_baseAssignValue.js ***! + \*************************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { + +var defineProperty = __webpack_require__(/*! ./_defineProperty */ 191); + +/** + * The base implementation of `assignValue` and `assignMergeValue` without + * value checks. + * + * @private + * @param {Object} object The object to modify. + * @param {string} key The key of the property to assign. + * @param {*} value The value to assign. + */ +function baseAssignValue(object, key, value) { + if (key == '__proto__' && defineProperty) { + defineProperty(object, key, { + 'configurable': true, + 'enumerable': true, + 'value': value, + 'writable': true + }); + } else { + object[key] = value; } +} - var _proto = TransitionGroup.prototype; +module.exports = baseAssignValue; - _proto.getChildContext = function getChildContext() { - return { - transitionGroup: { - isMounting: !this.appeared - } - }; - }; - _proto.componentDidMount = function componentDidMount() { - this.appeared = true; - this.mounted = true; - }; +/***/ }), +/* 191 */ +/*!************************************************!*\ + !*** ./node_modules/lodash/_defineProperty.js ***! + \************************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { - _proto.componentWillUnmount = function componentWillUnmount() { - this.mounted = false; - }; +var getNative = __webpack_require__(/*! ./_getNative */ 21); - TransitionGroup.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, _ref) { - var prevChildMapping = _ref.children, - handleExited = _ref.handleExited, - firstRender = _ref.firstRender; - return { - children: firstRender ? (0, _ChildMapping.getInitialChildMapping)(nextProps, handleExited) : (0, _ChildMapping.getNextChildMapping)(nextProps, prevChildMapping, handleExited), - firstRender: false - }; - }; +var defineProperty = (function() { + try { + var func = getNative(Object, 'defineProperty'); + func({}, '', {}); + return func; + } catch (e) {} +}()); - _proto.handleExited = function handleExited(child, node) { - var currentChildMapping = (0, _ChildMapping.getChildMapping)(this.props.children); - if (child.key in currentChildMapping) return; +module.exports = defineProperty; - if (child.props.onExited) { - child.props.onExited(node); - } - if (this.mounted) { - this.setState(function (state) { - var children = _extends({}, state.children); +/***/ }), +/* 192 */ +/*!******************************************!*\ + !*** ./node_modules/lodash/_overRest.js ***! + \******************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { - delete children[child.key]; - return { - children: children - }; - }); +var apply = __webpack_require__(/*! ./_apply */ 410); + +/* Built-in method references for those with the same name as other `lodash` methods. */ +var nativeMax = Math.max; + +/** + * A specialized version of `baseRest` which transforms the rest array. + * + * @private + * @param {Function} func The function to apply a rest parameter to. + * @param {number} [start=func.length-1] The start position of the rest parameter. + * @param {Function} transform The rest array transform. + * @returns {Function} Returns the new function. + */ +function overRest(func, start, transform) { + start = nativeMax(start === undefined ? (func.length - 1) : start, 0); + return function() { + var args = arguments, + index = -1, + length = nativeMax(args.length - start, 0), + array = Array(length); + + while (++index < length) { + array[index] = args[start + index]; + } + index = -1; + var otherArgs = Array(start + 1); + while (++index < start) { + otherArgs[index] = args[index]; } + otherArgs[start] = transform(array); + return apply(func, this, otherArgs); }; +} - _proto.render = function render() { - var _this$props = this.props, - Component = _this$props.component, - childFactory = _this$props.childFactory, - props = _objectWithoutPropertiesLoose(_this$props, ["component", "childFactory"]); +module.exports = overRest; - var children = values(this.state.children).map(childFactory); - delete props.appear; - delete props.enter; - delete props.exit; - if (Component === null) { - return children; - } +/***/ }), +/* 193 */ +/*!*********************************************!*\ + !*** ./node_modules/lodash/_setToString.js ***! + \*********************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { - return _react.default.createElement(Component, props, children); - }; +var baseSetToString = __webpack_require__(/*! ./_baseSetToString */ 411), + shortOut = __webpack_require__(/*! ./_shortOut */ 413); - return TransitionGroup; -}(_react.default.Component); +/** + * Sets the `toString` method of `func` to return `string`. + * + * @private + * @param {Function} func The function to modify. + * @param {Function} string The `toString` result. + * @returns {Function} Returns `func`. + */ +var setToString = shortOut(baseSetToString); -TransitionGroup.childContextTypes = { - transitionGroup: _propTypes.default.object.isRequired -}; -TransitionGroup.propTypes = process.env.NODE_ENV !== "production" ? { - /** - * `` renders a `
    ` by default. You can change this - * behavior by providing a `component` prop. - * If you use React v16+ and would like to avoid a wrapping `
    ` element - * you can pass in `component={null}`. This is useful if the wrapping div - * borks your css styles. - */ - component: _propTypes.default.any, +module.exports = setToString; - /** - * A set of `` components, that are toggled `in` and out as they - * leave. the `` will inject specific transition props, so - * remember to spread them through if you are wrapping the `` as - * with our `` example. - * - * While this component is meant for multiple `Transition` or `CSSTransition` - * children, sometimes you may want to have a single transition child with - * content that you want to be transitioned out and in when you change it - * (e.g. routes, images etc.) In that case you can change the `key` prop of - * the transition child as you change its content, this will cause - * `TransitionGroup` to transition the child out and back in. - */ - children: _propTypes.default.node, - /** - * A convenience prop that enables or disables appear animations - * for all children. Note that specifying this will override any defaults set - * on individual children Transitions. - */ - appear: _propTypes.default.bool, +/***/ }), +/* 194 */ +/*!**********************************************************************!*\ + !*** ./node_modules/element-resize-detector/src/collection-utils.js ***! + \**********************************************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { - /** - * A convenience prop that enables or disables enter animations - * for all children. Note that specifying this will override any defaults set - * on individual children Transitions. - */ - enter: _propTypes.default.bool, +"use strict"; - /** - * A convenience prop that enables or disables exit animations - * for all children. Note that specifying this will override any defaults set - * on individual children Transitions. - */ - exit: _propTypes.default.bool, - /** - * You may need to apply reactive updates to a child as it is exiting. - * This is generally done by using `cloneElement` however in the case of an exiting - * child the element has already been removed and not accessible to the consumer. - * - * If you do need to update a child as it leaves you can provide a `childFactory` - * to wrap every child, even the ones that are leaving. - * - * @type Function(child: ReactElement) -> ReactElement - */ - childFactory: _propTypes.default.func -} : {}; -TransitionGroup.defaultProps = defaultProps; +var utils = module.exports = {}; -var _default = (0, _reactLifecyclesCompat.polyfill)(TransitionGroup); +/** + * Loops through the collection and calls the callback for each element. if the callback returns truthy, the loop is broken and returns the same value. + * @public + * @param {*} collection The collection to loop through. Needs to have a length property set and have indices set from 0 to length - 1. + * @param {function} callback The callback to be called for each element. The element will be given as a parameter to the callback. If this callback returns truthy, the loop is broken and the same value is returned. + * @returns {*} The value that a callback has returned (if truthy). Otherwise nothing. + */ +utils.forEach = function(collection, callback) { + for(var i = 0; i < collection.length; i++) { + var result = callback(collection[i]); + if(result) { + return result; + } + } +}; -exports.default = _default; -module.exports = exports["default"]; -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(/*! ./../process/browser.js */ 3))) /***/ }), -/* 160 */ -/*!**********************************************!*\ - !*** ./src/blocks/info-box/inline-styles.js ***! - \**********************************************/ -/*! exports provided: default */ -/*! exports used: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { +/* 195 */ +/*!**********************************************************************!*\ + !*** ./node_modules/element-resize-detector/src/browser-detector.js ***! + \**********************************************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { "use strict"; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSS__ = __webpack_require__(/*! ../../../dist/blocks/uagb-controls/generateCSS */ 5); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__ = __webpack_require__(/*! ../../../dist/blocks/uagb-controls/generateCSSUnit */ 4); -/** - * Returns Dynamic Generated CSS - */ +var detector = module.exports = {}; +detector.isIE = function(version) { + function isAnyIeVersion() { + var agent = navigator.userAgent.toLowerCase(); + return agent.indexOf("msie") !== -1 || agent.indexOf("trident") !== -1 || agent.indexOf(" edge/") !== -1; + } -function InfoBoxStyle(props) { - var _props$attributes = props.attributes, - classMigrate = _props$attributes.classMigrate, - headingAlign = _props$attributes.headingAlign, - headingColor = _props$attributes.headingColor, - subHeadingColor = _props$attributes.subHeadingColor, - prefixColor = _props$attributes.prefixColor, - prefixFontSize = _props$attributes.prefixFontSize, - prefixFontSizeType = _props$attributes.prefixFontSizeType, - prefixFontSizeTablet = _props$attributes.prefixFontSizeTablet, - prefixFontSizeMobile = _props$attributes.prefixFontSizeMobile, - prefixFontFamily = _props$attributes.prefixFontFamily, - prefixFontWeight = _props$attributes.prefixFontWeight, - prefixLineHeightType = _props$attributes.prefixLineHeightType, - prefixLineHeight = _props$attributes.prefixLineHeight, - prefixLineHeightTablet = _props$attributes.prefixLineHeightTablet, - prefixLineHeightMobile = _props$attributes.prefixLineHeightMobile, - headFontSize = _props$attributes.headFontSize, - headFontSizeType = _props$attributes.headFontSizeType, - headFontSizeTablet = _props$attributes.headFontSizeTablet, - headFontSizeMobile = _props$attributes.headFontSizeMobile, - headFontFamily = _props$attributes.headFontFamily, - headFontWeight = _props$attributes.headFontWeight, - headLineHeightType = _props$attributes.headLineHeightType, - headLineHeight = _props$attributes.headLineHeight, - headLineHeightTablet = _props$attributes.headLineHeightTablet, - headLineHeightMobile = _props$attributes.headLineHeightMobile, - subHeadFontSize = _props$attributes.subHeadFontSize, - subHeadFontSizeType = _props$attributes.subHeadFontSizeType, - subHeadFontSizeTablet = _props$attributes.subHeadFontSizeTablet, - subHeadFontSizeMobile = _props$attributes.subHeadFontSizeMobile, - subHeadFontFamily = _props$attributes.subHeadFontFamily, - subHeadFontWeight = _props$attributes.subHeadFontWeight, - subHeadLineHeightType = _props$attributes.subHeadLineHeightType, - subHeadLineHeight = _props$attributes.subHeadLineHeight, - subHeadLineHeightTablet = _props$attributes.subHeadLineHeightTablet, - subHeadLineHeightMobile = _props$attributes.subHeadLineHeightMobile, - separatorWidthType = _props$attributes.separatorWidthType, - headSpace = _props$attributes.headSpace, - subHeadSpace = _props$attributes.subHeadSpace, - iconColor = _props$attributes.iconColor, - iconSize = _props$attributes.iconSize, - iconimgPosition = _props$attributes.iconimgPosition, - iconHover = _props$attributes.iconHover, - iconimgBorderRadius = _props$attributes.iconimgBorderRadius, - seperatorStyle = _props$attributes.seperatorStyle, - seperatorWidth = _props$attributes.seperatorWidth, - seperatorColor = _props$attributes.seperatorColor, - seperatorThickness = _props$attributes.seperatorThickness, - seperatorSpace = _props$attributes.seperatorSpace, - ctaLinkColor = _props$attributes.ctaLinkColor, - ctaFontSize = _props$attributes.ctaFontSize, - ctaFontSizeType = _props$attributes.ctaFontSizeType, - ctaFontSizeMobile = _props$attributes.ctaFontSizeMobile, - ctaFontSizeTablet = _props$attributes.ctaFontSizeTablet, - ctaFontFamily = _props$attributes.ctaFontFamily, - ctaFontWeight = _props$attributes.ctaFontWeight, - ctaBtnLinkColor = _props$attributes.ctaBtnLinkColor, - ctaBgColor = _props$attributes.ctaBgColor, - ctaBtnVertPadding = _props$attributes.ctaBtnVertPadding, - ctaBtnHrPadding = _props$attributes.ctaBtnHrPadding, - ctaBorderStyle = _props$attributes.ctaBorderStyle, - ctaBorderColor = _props$attributes.ctaBorderColor, - ctaBorderWidth = _props$attributes.ctaBorderWidth, - ctaBorderRadius = _props$attributes.ctaBorderRadius, - prefixSpace = _props$attributes.prefixSpace, - iconLeftMargin = _props$attributes.iconLeftMargin, - iconRightMargin = _props$attributes.iconRightMargin, - iconTopMargin = _props$attributes.iconTopMargin, - iconBottomMargin = _props$attributes.iconBottomMargin, - imageWidth = _props$attributes.imageWidth, - imageWidthType = _props$attributes.imageWidthType, - ctaLinkHoverColor = _props$attributes.ctaLinkHoverColor, - ctaBgHoverColor = _props$attributes.ctaBgHoverColor, - ctaBorderhoverColor = _props$attributes.ctaBorderhoverColor, - ctaIconSpace = _props$attributes.ctaIconSpace; + if(!isAnyIeVersion()) { + return false; + } + if(!version) { + return true; + } - var selectors = { - // Icon css - " .uagb-ifb-icon": { - "height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](iconSize, "px"), - "width": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](iconSize, "px"), - "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](iconSize, "px") - }, - " .uagb-ifb-icon > span": { - "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](iconSize, "px"), - "height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](iconSize, "px"), - "color": iconColor, - "fill": iconColor, - "width": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](iconSize, "px"), - "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](iconSize, "px") - }, - " .uagb-ifb-icon > svg": { - "fill": iconColor - }, - " .uagb-ifb-icon:hover > span": { - "color": iconHover - }, - " .uagb-ifb-icon:hover > svg": { - "fill": iconHover - }, - " .uagb-infobox_cta-type-all:hover .uagb-ifb-icon svg": { - "fill": iconHover - }, - " .uagb-infobox__content-wrap .uagb-ifb-imgicon-wrap": { - "margin-left": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](iconLeftMargin, "px"), - "margin-right": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](iconRightMargin, "px"), - "margin-top": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](iconTopMargin, "px"), - "margin-bottom": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](iconBottomMargin, "px") - }, - " .uagb-infobox .uagb-ifb-image-content img": { - "border-radius": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](iconimgBorderRadius, "px") - }, - // CTA style - " .uagb-infobox-cta-link": { - "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaFontSize, ctaFontSizeType), - "font-family": ctaFontFamily, - "font-weight": ctaFontWeight, - "color": ctaLinkColor - }, - " .uagb-infobox-cta-link:hover": { - "color": ctaLinkHoverColor - }, - " .uagb-infobox-cta-link .uagb-ifb-text-icon": { - "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaFontSize, ctaFontSizeType), - "height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaFontSize, ctaFontSizeType), - "width": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaFontSize, ctaFontSizeType), - "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaFontSize, ctaFontSizeType) - }, - " .uagb-infobox-cta-link .uagb-ifb-button-icon": { - "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaFontSize, ctaFontSizeType), - "height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaFontSize, ctaFontSizeType), - "width": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaFontSize, ctaFontSizeType), - "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaFontSize, ctaFontSizeType) - }, - " .uagb-infobox-cta-link svg": { - "fill": ctaLinkColor - }, - " .uagb-infobox-cta-link:hover svg": { - "fill": ctaLinkHoverColor - }, - " .uagb-ifb-button-wrapper .uagb-infobox-cta-link": { - "color": ctaBtnLinkColor, - "background-color": ctaBgColor, - "border-style": ctaBorderStyle, - "border-color": ctaBorderColor, - "border-radius": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaBorderRadius, "px"), - "border-width": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaBorderWidth, "px"), - "padding-top": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaBtnVertPadding, "px"), - "padding-bottom": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaBtnVertPadding, "px"), - "padding-left": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaBtnHrPadding, "px"), - "padding-right": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaBtnHrPadding, "px") - }, - " .uagb-ifb-button-wrapper:hover .uagb-infobox-cta-link": { - "color": ctaLinkHoverColor, - "background-color": ctaBgHoverColor, - "border-color": ctaBorderhoverColor - }, - " .uagb-ifb-button-wrapper .uagb-infobox-cta-link svg": { - "fill": ctaBtnLinkColor - }, - " .uagb-ifb-button-wrapper .uagb-infobox-cta-link:hover svg": { - "fill": ctaLinkHoverColor - }, - // Prefix Style - " .block-editor-rich-text__editable.uagb-ifb-title-prefix": { - "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](prefixFontSize, prefixFontSizeType), - "font-family": prefixFontFamily, - "font-weight": prefixFontWeight, - "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](prefixLineHeight, prefixLineHeightType), - "color": prefixColor, - "margin-bottom": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](prefixSpace, "px") - }, - // Title Style - " .block-editor-rich-text__editable.uagb-ifb-title a": { - "color": headingColor - }, - " .block-editor-rich-text__editable.uagb-ifb-title": { - "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](headFontSize, headFontSizeType), - "font-family": headFontFamily, - "font-weight": headFontWeight, - "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](headLineHeight, headLineHeightType), - "color": headingColor, - "margin-bottom": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](headSpace, "px") - }, - // Description Style - " .block-editor-rich-text__editable.uagb-ifb-desc": { - "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](subHeadFontSize, subHeadFontSizeType), - "font-family": subHeadFontFamily, - "font-weight": subHeadFontWeight, - "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](subHeadLineHeight, subHeadLineHeightType), - "color": subHeadingColor, - "margin-bottom": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](subHeadSpace, "px") - }, - // Seperator - " .uagb-ifb-separator": { - "width": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](seperatorWidth, separatorWidthType), - "border-top-width": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](seperatorThickness, "px"), - "border-top-color": seperatorColor, - "border-top-style": seperatorStyle - }, - " .uagb-ifb-separator-parent": { - "margin-bottom": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](seperatorSpace, "px") - }, - " .uagb-ifb-content": { - "padding": typeof blockPadding != "undefined" ? blockPadding + "px" : "inherit" - }, - " .uagb-ifb-align-icon-after": { - "margin-left": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaIconSpace, "px") - }, - " .uagb-ifb-align-icon-before": { - "margin-right": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaIconSpace, "px") - } - }; + //Shamelessly stolen from https://gist.github.com/padolsey/527683 + var ieVersion = (function(){ + var undef, + v = 3, + div = document.createElement("div"), + all = div.getElementsByTagName("i"); - if (imageWidthType) { - // Image - selectors[" .uagb-ifb-image-content img"] = { - "width": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](imageWidth, "px"), - "max-width": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](imageWidth, "px") - }; - } + do { + div.innerHTML = ""; + } + while (all[0]); - if (iconimgPosition == "above-title" || iconimgPosition == "below-title") { - selectors[" .uagb-infobox__content-wrap"] = { - "text-align": headingAlign - }; - } + return v > 4 ? v : undef; + }()); - var tablet_selectors = { - " .block-editor-rich-text__editable.uagb-ifb-desc": { - "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](subHeadFontSizeTablet, subHeadFontSizeType), - "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](subHeadLineHeightTablet, subHeadLineHeightType) - }, - " .block-editor-rich-text__editable.uagb-ifb-title": { - "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](headFontSizeTablet, headFontSizeType), - "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](headLineHeightTablet, headLineHeightType) - }, - " .block-editor-rich-text__editable.uagb-ifb-title-prefix": { - "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](prefixFontSizeTablet, prefixFontSizeType), - "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](prefixLineHeightTablet, prefixLineHeightType) - }, - " .uagb-infobox-cta-link": { - "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaFontSizeTablet, ctaFontSizeType) - }, - " .uagb-infobox-cta-link .uagb-ifb-text-icon": { - "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaFontSizeTablet, ctaFontSizeType), - "height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaFontSizeTablet, ctaFontSizeType), - "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaFontSizeTablet, ctaFontSizeType), - "width": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaFontSizeTablet, ctaFontSizeType) - }, - " .uagb-infobox-cta-link .uagb-ifb-button-icon": { - "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaFontSizeTablet, ctaFontSizeType), - "height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaFontSizeTablet, ctaFontSizeType), - "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaFontSizeTablet, ctaFontSizeType), - "width": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaFontSizeTablet, ctaFontSizeType) - } - }; + return version === ieVersion; +}; - var mobile_selectors = { - " .block-editor-rich-text__editable.uagb-ifb-desc": { - "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](subHeadFontSizeMobile, subHeadFontSizeType), - "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](subHeadLineHeightMobile, subHeadLineHeightType) - }, - " .block-editor-rich-text__editable.uagb-ifb-title": { - "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](headFontSizeMobile, headFontSizeType), - "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](headLineHeightMobile, headLineHeightType) - }, - " .block-editor-rich-text__editable.uagb-ifb-title-prefix": { - "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](prefixFontSizeMobile, prefixFontSizeType), - "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](prefixLineHeightMobile, prefixLineHeightType) - }, - " .uagb-infobox-cta-link": { - "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaFontSizeMobile, ctaFontSizeType) - }, - " .uagb-infobox-cta-link .uagb-ifb-text-icon": { - "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaFontSizeMobile, ctaFontSizeType), - "height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaFontSizeMobile, ctaFontSizeType), - "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaFontSizeMobile, ctaFontSizeType), - "width": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaFontSizeMobile, ctaFontSizeType) - }, - " .uagb-infobox-cta-link .uagb-ifb-button-icon": { - "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaFontSizeMobile, ctaFontSizeType), - "height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaFontSizeMobile, ctaFontSizeType), - "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaFontSizeMobile, ctaFontSizeType), - "width": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](ctaFontSizeMobile, ctaFontSizeType) - } - }; +detector.isLegacyOpera = function() { + return !!window.opera; +}; - var id = ".block-editor-page #wpwrap .uagb-block-" + props.clientId.substr(0, 8); - var styling_css = __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSS__["a" /* default */](selectors, id); - styling_css += __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSS__["a" /* default */](tablet_selectors, id, true, "tablet"); +/***/ }), +/* 196 */ +/*!***************************************!*\ + !*** ./node_modules/lodash/keysIn.js ***! + \***************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { + +var arrayLikeKeys = __webpack_require__(/*! ./_arrayLikeKeys */ 157), + baseKeysIn = __webpack_require__(/*! ./_baseKeysIn */ 433), + isArrayLike = __webpack_require__(/*! ./isArrayLike */ 29); - styling_css += __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSS__["a" /* default */](mobile_selectors, id, true, "mobile"); - return styling_css; +/** + * Creates an array of the own and inherited enumerable property names of `object`. + * + * **Note:** Non-object values are coerced to objects. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Object + * @param {Object} object The object to query. + * @returns {Array} Returns the array of property names. + * @example + * + * function Foo() { + * this.a = 1; + * this.b = 2; + * } + * + * Foo.prototype.c = 3; + * + * _.keysIn(new Foo); + * // => ['a', 'b', 'c'] (iteration order is not guaranteed) + */ +function keysIn(object) { + return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object); } -/* harmony default export */ __webpack_exports__["a"] = (InfoBoxStyle); +module.exports = keysIn; + /***/ }), -/* 161 */ -/*!*****************************************************!*\ - !*** ./src/blocks/info-box/components/IconImage.js ***! - \*****************************************************/ -/*! exports provided: default */ -/*! exports used: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { +/* 197 */ +/*!**********************************************!*\ + !*** ./node_modules/lodash/_getSymbolsIn.js ***! + \**********************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { -"use strict"; -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); +var arrayPush = __webpack_require__(/*! ./_arrayPush */ 78), + getPrototype = __webpack_require__(/*! ./_getPrototype */ 100), + getSymbols = __webpack_require__(/*! ./_getSymbols */ 79), + stubArray = __webpack_require__(/*! ./stubArray */ 156); -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } +/* Built-in method references for those with the same name as other `lodash` methods. */ +var nativeGetSymbols = Object.getOwnPropertySymbols; -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } +/** + * Creates an array of the own and inherited enumerable symbols of `object`. + * + * @private + * @param {Object} object The object to query. + * @returns {Array} Returns the array of symbols. + */ +var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) { + var result = []; + while (object) { + arrayPush(result, getSymbols(object)); + object = getPrototype(object); + } + return result; +}; -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } +module.exports = getSymbolsIn; -var RichText = wp.blockEditor.RichText; -var __ = wp.i18n.__; -var InfoBoxIconImage = function (_React$Component) { - _inherits(InfoBoxIconImage, _React$Component); +/***/ }), +/* 198 */ +/*!***********************************************!*\ + !*** ./node_modules/react-slick/lib/index.js ***! + \***********************************************/ +/*! dynamic exports provided */ +/*! exports used: default */ +/***/ (function(module, exports, __webpack_require__) { - function InfoBoxIconImage() { - _classCallCheck(this, InfoBoxIconImage); +"use strict"; - return _possibleConstructorReturn(this, (InfoBoxIconImage.__proto__ || Object.getPrototypeOf(InfoBoxIconImage)).apply(this, arguments)); - } - _createClass(InfoBoxIconImage, [{ - key: "render", - value: function render() { - var attributes = this.props.attributes; +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _slider = _interopRequireDefault(__webpack_require__(/*! ./slider */ 465)); - var url_chk = ""; - if (typeof attributes.iconImage !== "undefined" && attributes.iconImage !== null && attributes.iconImage !== "") { - url_chk = attributes.iconImage.url; - } +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } - var url = ""; - if (url_chk !== "") { - var size = attributes.iconImage.sizes; - var imageSize = attributes.imageSize; +var _default = _slider["default"]; +exports["default"] = _default; - if (typeof size !== "undefined" && typeof size[imageSize] !== "undefined") { - url = size[imageSize].url; - } else { - url = url_chk; - } +/***/ }), +/* 199 */ +/*!*********************************************!*\ + !*** ./node_modules/enquire.js/src/Util.js ***! + \*********************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports) { - return wp.element.createElement( - "div", - { className: "uagb-ifb-image-icon-content uagb-ifb-imgicon-wrap" }, - wp.element.createElement( - "div", - { className: "uagb-ifb-image" }, - wp.element.createElement( - "div", - { className: "uagb-ifb-image-content" }, - wp.element.createElement("img", { - className: "uagb-ifb-img-src", - src: url, - alt: attributes.iconImage.alt - }) - ) - ) - ); - } else { - return null; - } - } - }]); +/** + * Helper function for iterating over a collection + * + * @param collection + * @param fn + */ +function each(collection, fn) { + var i = 0, + length = collection.length, + cont; - return InfoBoxIconImage; -}(React.Component); + for(i; i < length; i++) { + cont = fn(collection[i], i); + if(cont === false) { + break; //allow early exit + } + } +} + +/** + * Helper function for determining whether target object is an array + * + * @param target the object under test + * @return {Boolean} true if array, false otherwise + */ +function isArray(target) { + return Object.prototype.toString.apply(target) === '[object Array]'; +} + +/** + * Helper function for determining whether target object is a function + * + * @param target the object under test + * @return {Boolean} true if function, false otherwise + */ +function isFunction(target) { + return typeof target === 'function'; +} + +module.exports = { + isFunction : isFunction, + isArray : isArray, + each : each +}; -/* harmony default export */ __webpack_exports__["a"] = (InfoBoxIconImage); /***/ }), -/* 162 */ -/*!*******************************************!*\ - !*** ./src/blocks/info-box/attributes.js ***! - \*******************************************/ +/* 200 */ +/*!******************************************!*\ + !*** ./src/blocks/section/attributes.js ***! + \******************************************/ /*! exports provided: default */ /*! exports used: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /** - * BLOCK: Info Box - Attributes + * BLOCK: UAGB Section Attributes */ - var attributes = { - inheritFromTheme: { - type: "boolean", - default: false - }, - prefixTitle: { - source: "html", - selector: "span.uagb-ifb-title-prefix", - default: "Prefix" - }, classMigrate: { type: "boolean", default: false }, - infoBoxTitle: { - source: "html", - selector: "h1,h2,h3,h4,h5,h6", - default: "Info Box" - }, - headingDesc: { - source: "html", - selector: "p", - default: "Click here to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo." - }, - headingAlign: { + align: { type: "string", default: "center" }, - headingColor: { - type: "string" - }, - subHeadingColor: { + block_id: { type: "string" }, - prefixColor: { - type: "string" + mobilePaddingType: { + type: "string", + default: 'px' }, - icon: { + tabletPaddingType: { type: "string", - default: "fa fa-star" + default: 'px' }, - iconimgPosition: { + desktopPaddingType: { type: "string", - default: "above-title" + default: 'px' }, - iconSize: { + topPadding: { type: "number", - default: 40 + default: 20 }, - iconHover: { - type: "string", - default: "" + bottomPadding: { + type: "number", + default: 20 }, - iconBgHover: { - type: "string", - default: "" + leftPadding: { + type: "number", + default: 20 }, - iconColor: { - type: "string", - default: "#333" + rightPadding: { + type: "number", + default: 20 }, - prefixTag: { + mobileMarginType: { type: "string", - default: "h3" - }, - prefixFontSize: { - type: "number" + default: 'px' }, - prefixFontSizeType: { + tabletMarginType: { type: "string", - default: "px" - }, - prefixFontSizeTablet: { - type: "number" - }, - prefixFontSizeMobile: { - type: "number" + default: 'px' }, - prefixFontFamily: { + desktopMarginType: { type: "string", - default: "Default" + default: 'px' }, - prefixFontWeight: { - type: "string" + topMargin: { + type: "number", + default: 0 }, - prefixFontSubset: { - type: "string" + bottomMargin: { + type: "number", + default: 0 }, - prefixLineHeightType: { - type: "string", - default: "em" + leftMargin: { + type: "number", + default: 0 }, - prefixLineHeight: { - type: "number" + rightMargin: { + type: "number", + default: 0 }, - prefixLineHeightTablet: { - type: "number" + + topPaddingTablet: { + type: "number", + default: "" }, - prefixLineHeightMobile: { - type: "number" + bottomPaddingTablet: { + type: "number", + default: "" }, - prefixLoadGoogleFonts: { - type: "boolean", - default: false + leftPaddingTablet: { + type: "number", + default: "" }, - headingTag: { - type: "string", - default: "h3" + rightPaddingTablet: { + type: "number", + default: "" }, - headFontSize: { - type: "number" + topMarginTablet: { + type: "number", + default: "" }, - headFontSizeType: { - type: "string", - default: "px" + bottomMarginTablet: { + type: "number", + default: "" }, - headFontSizeTablet: { - type: "number" + leftMarginTablet: { + type: "number", + default: "" }, - headFontSizeMobile: { - type: "number" + rightMarginTablet: { + type: "number", + default: "" }, - headFontFamily: { - type: "string", - default: "Default" + + topPaddingMobile: { + type: "number", + default: "" }, - headFontWeight: { - type: "string" + bottomPaddingMobile: { + type: "number", + default: "" }, - headFontSubset: { - type: "string" + leftPaddingMobile: { + type: "number", + default: "" }, - headLineHeightType: { - type: "string", - default: "em" + rightPaddingMobile: { + type: "number", + default: "" }, - headLineHeight: { - type: "number" - }, - headLineHeightTablet: { - type: "number" - }, - headLineHeightMobile: { - type: "number" - }, - headLoadGoogleFonts: { - type: "boolean", - default: false - }, - subHeadFontSize: { - type: "number" - }, - subHeadFontSizeType: { - type: "string", - default: "px" - }, - subHeadFontSizeTablet: { - type: "number" - }, - subHeadFontSizeMobile: { - type: "number" - }, - subHeadFontFamily: { - type: "string", - default: "Default" - }, - subHeadFontWeight: { - type: "string" - }, - subHeadFontSubset: { - type: "string" - }, - subHeadLineHeightType: { - type: "string", - default: "em" - }, - subHeadLineHeight: { - type: "number" - }, - subHeadLineHeightTablet: { - type: "number" - }, - subHeadLineHeightMobile: { - type: "number" - }, - subHeadLoadGoogleFonts: { - type: "boolean", - default: false - }, - headSpace: { + topMarginMobile: { type: "number", - default: 10 + default: "" }, - subHeadSpace: { + bottomMarginMobile: { type: "number", - default: 10 + default: "" }, - seperatorSpace: { + leftMarginMobile: { type: "number", - default: 10 + default: "" }, - iconimgBorderRadius: { + rightMarginMobile: { type: "number", - default: 0 + default: "" }, - source_type: { + contentWidth: { type: "string", - default: "icon" + default: "boxed" }, - block_id: { - type: "string", - default: "not_set" + width: { + type: "number", + default: 900 }, - sourceAlign: { + innerWidth: { + type: "number", + default: 1140 + }, + innerWidthType: { type: "string", - default: "top" + default: "px" }, - ctaTarget: { + themeWidth: { type: "boolean", default: false }, - ctaIcon: { + tag: { type: "string", - default: "" + default: "section" }, - ctaIconPosition: { - type: "string", - default: "after" + backgroundType: { + type: "string" }, - ctaIconSpace: { - type: "number", - default: 5 + backgroundImage: { + type: "object" }, - seperatorPosition: { + backgroundPosition: { type: "string", - default: "after_title" + default: "center-center" }, - seperatorStyle: { + backgroundSize: { type: "string", - default: "solid" + default: "cover" }, - seperatorColor: { + backgroundRepeat: { type: "string", - default: "#333" - }, - seperatorWidth: { - type: "number", - default: 30 + default: "no-repeat" }, - separatorWidthType: { + backgroundAttachment: { type: "string", - default: "%" + default: "scroll" }, - seperatorThickness: { - type: "number", - default: 2 + backgroundVideo: { + type: "object" }, - ctaType: { - type: "string", - default: "none" + backgroundColor: { + type: "string" }, - ctaText: { - type: "html", - default: "Read More" + gradientColor1: { + type: "string" }, - ctaLink: { - type: "string", - default: "#" + gradientColor2: { + type: "string" }, - ctaLinkColor: { + gradientType: { type: "string", - default: "#333" + default: "linear" }, - ctaFontSize: { - type: "number" + gradientLocation1: { + type: "number", + default: 0 }, - ctaFontSizeType: { - type: "string", - default: "px" + gradientLocation2: { + type: "number", + default: 100 }, - ctaFontSizeMobile: { - type: "number" + gradientAngle: { + type: "number", + default: 0 }, - ctaFontSizeTablet: { + gradientPosition: { + type: "string", + default: "center center" + }, + backgroundOpacity: { type: "number" }, - ctaFontFamily: { - type: "string", - default: "Default" + backgroundVideoOpacity: { + type: "number", + default: 50 }, - ctaFontWeight: { + backgroundVideoColor: { type: "string" }, - ctaFontSubset: { + backgroundImageColor: { type: "string" }, - ctaLoadGoogleFonts: { - type: "boolean", - default: false - }, - ctaBtnLinkColor: { + borderStyle: { type: "string", - default: "#333" + default: "none" }, - ctaLinkHoverColor: { - type: "string", - default: "" + borderWidth: { + type: "number", + default: 1 }, - ctaBgColor: { - type: "string", - default: "transparent" + borderRadius: { + type: "number" }, - ctaBgHoverColor: { - type: "string", - default: "transparent" + borderColor: { + type: "string" }, - ctaBorderColor: { + overlayType: { type: "string", - default: "#333" + default: "color" }, - ctaBorderhoverColor: { - type: "string", - default: "" + gradientOverlayColor1: { + type: "string" }, - ctaBorderStyle: { - type: "string", - default: "solid" + gradientOverlayColor2: { + type: "string" }, - ctaBtnVertPadding: { - type: "number", - default: 10 + gradientOverlayType: { + type: "string", + default: "linear" }, - ctaBtnHrPadding: { + gradientOverlayLocation1: { type: "number", - default: 14 + default: 0 }, - ctaBorderWidth: { + gradientOverlayLocation2: { type: "number", - default: 1 + default: 100 }, - ctaBorderRadius: { + gradientOverlayAngle: { type: "number", default: 0 }, - prefixSpace: { - type: "number", - default: 5 + gradientOverlayPosition: { + type: "string", + default: "center center" }, - iconLeftMargin: { - type: "number", - default: 10 + boxShadowColor: { + type: "string" }, - iconRightMargin: { + boxShadowHOffset: { type: "number", - default: 10 + default: 0 }, - iconTopMargin: { + boxShadowVOffset: { type: "number", - default: 5 + default: 0 }, - iconBottomMargin: { - type: "number", - default: 5 + boxShadowBlur: { + type: "number" }, - iconImage: { - type: "object", - default: { - "url": "", - "alt": "InfoBox placeholder img" - } + boxShadowSpread: { + type: "number" }, - imageSize: { + boxShadowPosition: { type: "string", - default: "thumbnail" - }, - imageWidth: { - type: "number", - default: 120 - }, - imageWidthType: { - type: "boolean", - default: true + default: "outset" }, - stack: { + gradientValue: { type: "string", - default: "tablet" - }, - showPrefix: { - type: "boolean", - default: true - }, - showTitle: { - type: "boolean", - default: true - }, - showDesc: { - type: "boolean", - default: true + default: "" } }; /* harmony default export */ __webpack_exports__["a"] = (attributes); /***/ }), -/* 163 */ -/*!****************************************************!*\ - !*** ./src/blocks/testimonial/components/Image.js ***! - \****************************************************/ +/* 201 */ +/*!*********************************************!*\ + !*** ./src/blocks/section/inline-styles.js ***! + \*********************************************/ /*! exports provided: default */ /*! exports used: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSSUnit__ = __webpack_require__(/*! ../../../dist/blocks/uagb-controls/generateCSSUnit */ 3); +/** + * Returns Dynamic Generated CSS + */ -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } -var RichText = wp.blockEditor.RichText; -var __ = wp.i18n.__; +function inlineStyles(props, isEditor) { + var _props$attributes = props.attributes, + align = _props$attributes.align, + contentWidth = _props$attributes.contentWidth, + leftPadding = _props$attributes.leftPadding, + rightPadding = _props$attributes.rightPadding, + topPadding = _props$attributes.topPadding, + bottomPadding = _props$attributes.bottomPadding, + leftMargin = _props$attributes.leftMargin, + rightMargin = _props$attributes.rightMargin, + topMargin = _props$attributes.topMargin, + bottomMargin = _props$attributes.bottomMargin, + width = _props$attributes.width, + backgroundPosition = _props$attributes.backgroundPosition, + backgroundSize = _props$attributes.backgroundSize, + backgroundAttachment = _props$attributes.backgroundAttachment, + backgroundImage = _props$attributes.backgroundImage, + backgroundColor = _props$attributes.backgroundColor, + backgroundOpacity = _props$attributes.backgroundOpacity, + backgroundRepeat = _props$attributes.backgroundRepeat, + backgroundType = _props$attributes.backgroundType, + gradientColor1 = _props$attributes.gradientColor1, + gradientColor2 = _props$attributes.gradientColor2, + gradientLocation1 = _props$attributes.gradientLocation1, + gradientLocation2 = _props$attributes.gradientLocation2, + gradientType = _props$attributes.gradientType, + gradientAngle = _props$attributes.gradientAngle, + borderStyle = _props$attributes.borderStyle, + borderWidth = _props$attributes.borderWidth, + borderRadius = _props$attributes.borderRadius, + borderColor = _props$attributes.borderColor, + desktopMarginType = _props$attributes.desktopMarginType, + desktopPaddingType = _props$attributes.desktopPaddingType; -var TestimonialImage = function (_React$Component) { - _inherits(TestimonialImage, _React$Component); - function TestimonialImage() { - _classCallCheck(this, TestimonialImage); + var style = { + "padding-top": Object(__WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(topPadding, desktopPaddingType), + "padding-bottom": Object(__WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(bottomPadding, desktopPaddingType), + "padding-left": Object(__WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(leftPadding, desktopPaddingType), + "padding-right": Object(__WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(rightPadding, desktopPaddingType), + "border-radius": Object(__WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(borderRadius, "px") + }; - return _possibleConstructorReturn(this, (TestimonialImage.__proto__ || Object.getPrototypeOf(TestimonialImage)).apply(this, arguments)); + if ("right" == align) { + style["margin-left"] = "auto"; + style["margin-top"] = Object(__WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(topMargin, desktopMarginType); + style["margin-bottom"] = Object(__WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(bottomMargin, desktopMarginType); + style["margin-right"] = Object(__WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(rightMargin, desktopMarginType); + } else if ("left" == align) { + style["margin-right"] = "auto"; + style["margin-top"] = Object(__WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(topMargin, desktopMarginType); + style["margin-bottom"] = Object(__WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(bottomMargin, desktopMarginType); + style["margin-left"] = Object(__WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(leftMargin, desktopMarginType); + } else if ("center" == align) { + style["margin-right"] = "auto"; + style["margin-left"] = "auto"; + style["margin-top"] = Object(__WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(topMargin, desktopMarginType); + style["margin-bottom"] = Object(__WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(bottomMargin, desktopMarginType); + } else { + style["margin-top"] = Object(__WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(topMargin, desktopMarginType); + style["margin-bottom"] = Object(__WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(bottomMargin, desktopMarginType); } - _createClass(TestimonialImage, [{ - key: "render", - value: function render() { - var _props = this.props, - attributes = _props.attributes, - index_value = _props.index_value; + if (borderStyle != "none") { + style["border-style"] = borderStyle; + style["border-width"] = Object(__WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(borderWidth, "px"); + style["border-color"] = borderColor; + } - var url_check = ""; + var position = backgroundPosition.replace("-", " "); - var image_arr = attributes.test_block[index_value]; + var section_width = "100%"; - if (image_arr && typeof image_arr !== "undefined") { - var image = image_arr["image"]; - var url = ""; + if ("boxed" == contentWidth) { + if ("" != width) { + section_width = width + "px"; + } + } - if (typeof image !== "undefined" && image !== null && image !== "") { - url_check = image.url; - } + style["max-width"] = section_width; - if (url_check !== "") { - var size = image.sizes; - var imageSize = attributes.imageSize; - if (typeof size !== "undefined" && typeof size[imageSize] !== "undefined") { - url = size[imageSize].url; - } else { - url = url_check; - } + if ("image" === backgroundType) { - return wp.element.createElement( - "div", - { className: "uagb-tm__image-content", key: "tm_img-wrap-" + index_value }, - wp.element.createElement( - "div", - { className: "uagb-tm__image", key: "tm_img-" + index_value }, - wp.element.createElement("img", { - className: "uagb-tm-img-src", - src: url, - alt: image.alt - }) - ) - ); - } else { - return null; - } - } else { - return null; - } - } - }]); + style["background-image"] = backgroundImage ? "url(" + backgroundImage.url + ")" : null; + style["background-position"] = position; + style["background-attachment"] = backgroundAttachment; + style["background-repeat"] = backgroundRepeat; + style["background-size"] = backgroundSize; + } - return TestimonialImage; -}(React.Component); + return style; +} -/* harmony default export */ __webpack_exports__["a"] = (TestimonialImage); +/* harmony default export */ __webpack_exports__["a"] = (inlineStyles); /***/ }), -/* 164 */ -/*!**********************************************!*\ - !*** ./src/blocks/testimonial/attributes.js ***! - \**********************************************/ +/* 202 */ +/*!******************************************!*\ + !*** ./src/blocks/buttons/attributes.js ***! + \******************************************/ /*! exports provided: default */ /*! exports used: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -var _attributes; - -function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - -/** - * BLOCK: Testimonial - Attributes - */ - -var ITEM_COUNT = 3; +var ITEM_COUNT = 2; -var testimonial_block = []; +var buttons = []; for (var i = 1; i <= ITEM_COUNT; i++) { - var desc_text = "I have been working with these guys since years now! With lots of hard work and timely communication they made sure they delivered the best to me. Highly recommended!"; - var author_text = "John Doe "; - var company_text = "Company" + i; - testimonial_block.push({ - "description": desc_text, - "name": author_text, - "company": company_text, - "image": "" + var label = "#Click Here"; + var link = "#"; + buttons.push({ + "label": label, + "link": link, + "target": "_self", + "size": "", + "vPadding": 10, + "hPadding": 14, + "borderWidth": 1, + "borderRadius": 2, + "borderStyle": "solid", + "borderColor": "#333", + "borderHColor": "#333", + "color": "#333", + "background": "", + "hColor": "#333", + "hBackground": "", + "sizeType": "px", + "sizeMobile": "", + "sizeTablet": "", + "lineHeight": "", + "lineHeightType": "em", + "lineHeightMobile": "", + "lineHeightTablet": "" }); } -var attributes = (_attributes = { - test_item_count: { +var attributes = { + block_id: { + type: "string" + }, + btn_count: { type: "number", default: ITEM_COUNT }, + buttons: { + type: "array", + default: buttons + }, classMigrate: { type: "boolean", default: false }, - test_block: { - type: "array", - default: testimonial_block + childMigrate: { + type: "boolean", + default: false }, - headingAlign: { + align: { type: "string", default: "center" }, - descColor: { - type: "string", - default: "#333" + gap: { + type: "number", + default: 10 }, - companyColor: { + stack: { type: "string", - default: "#888888" + default: "none" }, - authorColor: { - type: "string", - default: "#333" - }, - iconimgStyle: { - type: "string", - default: "circle" - }, - imagePosition: { - type: "string", - default: "bottom" - }, - imageAlignment: { - type: "string", - default: "top" - }, - - nameFontSizeType: { - type: "string", - default: "px" - }, - nameFontSize: { - type: "number" - }, - nameFontSizeTablet: { - type: "number" - }, - nameFontSizeMobile: { - type: "number" + loadGoogleFonts: { + type: "boolean", + default: false }, - nameFontFamily: { + fontFamily: { type: "string", default: "Default" }, - nameFontWeight: { + fontWeight: { type: "string" }, - nameFontSubset: { + fontSubset: { type: "string" - }, - nameLineHeightType: { - type: "string", - default: "em" - }, - nameLineHeight: { - type: "number" - }, - nameLineHeightTablet: { - type: "number" - }, - nameLineHeightMobile: { - type: "number" - }, - nameLoadGoogleFonts: { + } +}; + +/* harmony default export */ __webpack_exports__["a"] = (attributes); + +/***/ }), +/* 203 */ +/*!************************************************!*\ + !*** ./src/blocks/buttons-child/attributes.js ***! + \************************************************/ +/*! exports provided: default */ +/*! exports used: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/** + * BLOCK: Buttons Child - Attributes + */ + +var attributes = { + inheritFromTheme: { type: "boolean", default: false }, - - companyFontSizeType: { - type: "string", - default: "px" - }, - companyFontSize: { - type: "number" - }, - companyFontSizeTablet: { - type: "number" - }, - companyFontSizeMobile: { - type: "number" - }, - companyFontFamily: { - type: "string", - default: "Default" - }, - companyFontWeight: { - type: "string" - }, - companyFontSubset: { + block_id: { type: "string" }, - companyLineHeightType: { + align: { type: "string", - default: "em" - }, - companyLineHeight: { - type: "number" + default: "center" }, - companyLineHeightTablet: { - type: "number" + gap: { + type: "number", + default: 10 }, - companyLineHeightMobile: { - type: "number" + stack: { + type: "string", + default: "none" }, - companyLoadGoogleFonts: { + loadGoogleFonts: { type: "boolean", default: false }, - - descFontSizeType: { - type: "string", - default: "px" - }, - descFontSize: { - type: "number" - }, - descFontSizeTablet: { - type: "number" - }, - descFontSizeMobile: { - type: "number" - }, - descFontFamily: { + fontFamily: { type: "string", default: "Default" }, - descFontWeight: { + fontWeight: { type: "string" }, - descFontSubset: { + fontSubset: { type: "string" }, - descLineHeightType: { - type: "string", - default: "em" - }, - descLineHeight: { - type: "number" - }, - descLineHeightTablet: { - type: "number" - }, - descLineHeightMobile: { - type: "number" - }, - descLoadGoogleFonts: { - type: "boolean", - default: false - }, - - nameSpace: { - type: "number", - default: 5 + label: { + type: "html", + default: '#Click Here' }, - descSpace: { - type: "number", - default: 15 + link: { + type: "string", + default: "" }, - block_id: { + target: { type: "string", - default: "not_set" + default: "_self" }, - authorSpace: { - type: "number", - default: 5 + size: { + type: "number" }, - imgVrPadding: { + vPadding: { type: "number", default: 10 }, - imgHrPadding: { + hPadding: { type: "number", - default: 10 + default: 14 }, - imgTopPadding: { + borderWidth: { type: "number", - default: 10 + default: 1 }, - imgBottomPadding: { + borderRadius: { type: "number", - default: 10 - }, - iconImage: { - type: "object", - default: { - "url": "", - "alt": "InfoBox placeholder img" - } + default: 2 }, - imageSize: { + borderStyle: { type: "string", - default: "thumbnail" - }, - imageWidth: { - type: "number", - default: 60 - }, - columns: { - type: "number", - default: 1 - }, - tcolumns: { - type: "number", - default: 1 + default: "solid" }, - mcolumns: { - type: "number", - default: 1 + borderColor: { + type: "string", + default: "#333" }, - pauseOnHover: { - type: "boolean", - default: true + borderHColor: { + type: "string", + default: "#333" }, - infiniteLoop: { - type: "boolean", - default: true + color: { + type: "string", + default: "#333" }, - transitionSpeed: { - type: "number", - default: 500 + background: { + type: "string", + default: "" }, - autoplay: { - type: "boolean", - default: true + hColor: { + type: "string", + default: "#333" }, - autoplaySpeed: { - type: "number", - default: 2000 + hBackground: { + type: "string", + default: "" }, - arrowDots: { + sizeType: { type: "string", - default: "arrows_dots" + default: "px" }, - arrowSize: { + sizeMobile: { type: "number", - default: 20 + default: "" }, - arrowBorderSize: { + sizeTablet: { type: "number", - default: 1 + default: "" }, - arrowBorderRadius: { + lineHeight: { type: "number", - default: 0 + default: "" }, - arrowColor: { + lineHeightType: { type: "string", - default: "#aaaaaa" - }, - rowGap: { - type: "number", - default: 10 + default: "em" }, - columnGap: { + lineHeightMobile: { type: "number", - default: 10 + default: "" }, - contentPadding: { + lineHeightTablet: { type: "number", - default: 5 - }, - backgroundType: { - type: "string" - }, - backgroundImage: { - type: "object" - }, - backgroundPosition: { - type: "string", - default: "center-center" + default: "" }, - backgroundSize: { - type: "string", - default: "cover" + opensInNewTab: { + type: "boolean" }, - backgroundRepeat: { + icon: { type: "string", - default: "no-repeat" - }, - backgroundColor: { - type: "string" - }, - backgroundImageColor: { - type: "string" + default: "" }, - borderStyle: { + iconPosition: { type: "string", - default: "none" - }, - borderWidth: { - type: "number", - default: "1" - }, - borderRadius: { - type: "number" - }, - borderColor: { - type: "string" + default: "after" }, - backgroundOpacity: { + iconSpace: { type: "number", - default: 50 + default: 8 } -}, _defineProperty(_attributes, "arrowColor", { - type: "string", - default: "#333" -}), _defineProperty(_attributes, "stack", { - type: "string", - default: "tablet" -}), _attributes); +}; /* harmony default export */ __webpack_exports__["a"] = (attributes); /***/ }), -/* 165 */ -/*!***************************************!*\ - !*** ./src/blocks/team/attributes.js ***! - \***************************************/ +/* 204 */ +/*!************************************************************************************************!*\ + !*** ./node_modules/react-transition-group/node_modules/@babel/runtime/helpers/esm/extends.js ***! + \************************************************************************************************/ /*! exports provided: default */ /*! exports used: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -/** - * BLOCK: UAGB Team Block Attributes +/* harmony export (immutable) */ __webpack_exports__["a"] = _extends; +function _extends() { + _extends = Object.assign || function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + + for (var key in source) { + if (Object.prototype.hasOwnProperty.call(source, key)) { + target[key] = source[key]; + } + } + } + + return target; + }; + + return _extends.apply(this, arguments); +} + +/***/ }), +/* 205 */ +/*!***********************************************************!*\ + !*** ./node_modules/react-transition-group/esm/config.js ***! + \***********************************************************/ +/*! exports provided: default */ +/*! exports used: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony default export */ __webpack_exports__["a"] = ({ + disabled: false +}); + +/***/ }), +/* 206 */ +/*!********************************************************************!*\ + !*** ./node_modules/react-transition-group/esm/utils/PropTypes.js ***! + \********************************************************************/ +/*! exports provided: timeoutsShape, classNamesShape */ +/*! exports used: classNamesShape, timeoutsShape */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return timeoutsShape; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return classNamesShape; }); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_prop_types__ = __webpack_require__(/*! prop-types */ 15); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_prop_types__); + +var timeoutsShape = process.env.NODE_ENV !== 'production' ? __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.shape({ + enter: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.number, + exit: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.number, + appear: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.number +}).isRequired]) : null; +var classNamesShape = process.env.NODE_ENV !== 'production' ? __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.shape({ + enter: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string, + exit: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string, + active: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string +}), __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.shape({ + enter: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string, + enterDone: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string, + enterActive: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string, + exit: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string, + exitDone: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string, + exitActive: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string +})]) : null; +/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(/*! ./../../../process/browser.js */ 6))) + +/***/ }), +/* 207 */ +/*!********************************************************************!*\ + !*** ./node_modules/react-transition-group/esm/TransitionGroup.js ***! + \********************************************************************/ +/*! exports provided: default */ +/*! exports used: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ 66); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ 204); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_assertThisInitialized__ = __webpack_require__(/*! @babel/runtime/helpers/esm/assertThisInitialized */ 523); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_inheritsLoose__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inheritsLoose */ 43); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_prop_types__ = __webpack_require__(/*! prop-types */ 15); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_prop_types__); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react__ = __webpack_require__(/*! react */ 5); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_react__); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__TransitionGroupContext__ = __webpack_require__(/*! ./TransitionGroupContext */ 106); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__utils_ChildMapping__ = __webpack_require__(/*! ./utils/ChildMapping */ 524); + + + + + + + + + +var values = Object.values || function (obj) { + return Object.keys(obj).map(function (k) { + return obj[k]; + }); +}; + +var defaultProps = { + component: 'div', + childFactory: function childFactory(child) { + return child; + } +}; +/** + * The `` component manages a set of transition components + * (`` and ``) in a list. Like with the transition + * components, `` is a state machine for managing the mounting + * and unmounting of components over time. + * + * Consider the example below. As items are removed or added to the TodoList the + * `in` prop is toggled automatically by the ``. + * + * Note that `` does not define any animation behavior! + * Exactly _how_ a list item animates is up to the individual transition + * component. This means you can mix and match animations across different list + * items. */ -var attributes = { - block_id: { - type: "string" - }, - classMigrate: { - type: "boolean", - default: false - }, - align: { - type: "string", - default: "center" - }, - tag: { - type: "string", - default: "h3" - }, - title: { - selector: "h1,h2,h3,h4,h5,h6", - default: "John Doe" - }, - prefix: { - selector: "div.uagb-team__prefix", - default: "Designation" - }, - description_text: { - selector: "p", - default: "Click here to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo." - }, - titleColor: { - type: "string" - }, - prefixColor: { - type: "string", - default: "#888888" - }, - descColor: { - type: "string" - }, - socialColor: { - type: "string", - default: "#333" - }, - socialHoverColor: { - type: "string" - }, - titleFontFamily: { - type: "string", - default: "Default" - }, - titleFontWeight: { - type: "string" - }, - titleFontSubset: { - type: "string" - }, - titleFontSizeType: { - type: "string", - default: "px" - }, - titleLineHeightType: { - type: "string", - default: "em" - }, - titleFontSize: { - type: "number" - }, - titleFontSizeTablet: { - type: "number" - }, - titleFontSizeMobile: { - type: "number" - }, - titleLineHeight: { - type: "number" - }, - titleLineHeightTablet: { - type: "number" - }, - titleLineHeightMobile: { - type: "number" - }, - prefixFontFamily: { - type: "string", - default: "Default" - }, - prefixFontWeight: { - type: "string" - }, - prefixFontSubset: { - type: "string" - }, - prefixFontSizeType: { - type: "string", - default: "px" - }, - prefixLineHeightType: { - type: "string", - default: "em" - }, - prefixFontSize: { - type: "number", - default: 15 - }, - prefixFontSizeTablet: { - type: "number" - }, - prefixFontSizeMobile: { - type: "number" - }, - prefixLineHeight: { - type: "number" - }, - prefixLineHeightTablet: { - type: "number" - }, - prefixLineHeightMobile: { - type: "number" - }, - descFontFamily: { - type: "string", - default: "Default" - }, - descFontWeight: { - type: "string" - }, - descFontSubset: { - type: "string" - }, - descFontSizeType: { - type: "string", - default: "px" - }, - descLineHeightType: { - type: "string", - default: "em" - }, - descFontSize: { - type: "number" - }, - descFontSizeTablet: { - type: "number" - }, - descFontSizeMobile: { - type: "number" - }, - descLineHeight: { - type: "number" - }, - descLineHeightTablet: { - type: "number" - }, - descLineHeightMobile: { - type: "number" - }, - socialFontSize: { - type: "number", - default: 20 - }, - socialFontSizeType: { - type: "string", - default: "px" - }, - socialFontSizeMobile: { - type: "number" - }, - socialFontSizeTablet: { - type: "number" - }, - image: { - type: "object" - }, - imgStyle: { - type: "string", - default: "normal" - }, - imgPosition: { - type: "string", - default: "above" - }, - imgAlign: { - type: "string", - default: "top" - }, - imgSize: { - type: "string", - default: "thumbnail" - }, - imgWidth: { - type: "number", - default: 120 - }, - titleSpace: { - type: "number" - }, - prefixSpace: { - type: "number" - }, - descSpace: { - type: "number", - default: 10 - }, - imgLeftMargin: { - type: "number", - default: 20 - }, - imgRightMargin: { - type: "number", - default: 20 - }, - imgTopMargin: { - type: "number", - default: 15 - }, - imgBottomMargin: { - type: "number", - default: 15 - }, - socialEnable: { - type: "boolean", - default: true - }, - socialSpace: { - type: "number", - default: 20 - }, - socialTarget: { - type: "boolean", - default: false - }, - twitterIcon: { - type: "string", - default: "fab fa-twitter" - }, - fbIcon: { - type: "string", - default: "fab fa-facebook" - }, - linkedinIcon: { - type: "string", - default: "fab fa-linkedin" - }, - pinIcon: { - type: "string", - default: "fab fa-pinterest" - }, - twitterLink: { - type: "string", - default: "#" - }, - fbLink: { - type: "string", - default: "#" - }, - linkedinLink: { - type: "string", - default: "#" - }, - pinLink: { - type: "string", - default: "#" - }, - stack: { - type: "string", - default: "tablet" - }, - titleLoadGoogleFonts: { - type: "boolean", - default: false - }, - prefixLoadGoogleFonts: { - type: "boolean", - default: false - }, - descLoadGoogleFonts: { - type: "boolean", - default: false - } -}; +var TransitionGroup = /*#__PURE__*/function (_React$Component) { + Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_inheritsLoose__["a" /* default */])(TransitionGroup, _React$Component); -/* harmony default export */ __webpack_exports__["a"] = (attributes); + function TransitionGroup(props, context) { + var _this; -/***/ }), -/* 166 */ -/*!***********************************************!*\ - !*** ./src/blocks/social-share/attributes.js ***! - \***********************************************/ -/*! exports provided: default */ -/*! exports used: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { + _this = _React$Component.call(this, props, context) || this; -"use strict"; -/** - * BLOCK: UAGB Social Share Attributes - */ + var handleExited = _this.handleExited.bind(Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_assertThisInitialized__["a" /* default */])(_this)); // Initial children should all be entering, dependent on appear -var ITEM_COUNT = 1; -var socials = []; + _this.state = { + contextValue: { + isMounting: true + }, + handleExited: handleExited, + firstRender: true + }; + return _this; + } -for (var i = 1; i <= ITEM_COUNT; i++) { - socials.push({ - "type": "facebook", - "image_icon": "icon", - "icon": "fab fa-facebook", - "image": "", - "icon_color": "#3a3a3a", - "icon_hover_color": "", - "icon_bg_color": "", - "icon_bg_hover_color": "" - }); -} + var _proto = TransitionGroup.prototype; -var attributes = { - classMigrate: { - type: "boolean", - default: false - }, - childMigrate: { - type: "boolean", - default: false - }, - block_id: { - type: "string" - }, - current_url: { - type: "string" - }, - align: { - type: "string", - default: "center" - }, - social_count: { - type: "number", - default: ITEM_COUNT - }, - socials: { - type: "array", - default: socials - }, - gap: { - type: "number", - default: 10 - }, - size: { - type: "number", - default: 40 - }, - sizeType: { - type: "string", - default: "px" - }, - sizeMobile: { - type: "number" - }, - sizeTablet: { - type: "number" - }, - bgSize: { - type: "number", - default: 0 - }, - bgSizeType: { - type: "string", - default: "px" - }, - bgSizeMobile: { - type: "number" - }, - bgSizeTablet: { - type: "number" - }, - borderRadius: { - type: "number", - default: 0 - }, - social_layout: { - type: "string", - default: "horizontal" - }, - stack: { - type: "string", - default: "none" - } -}; + _proto.componentDidMount = function componentDidMount() { + this.mounted = true; + this.setState({ + contextValue: { + isMounting: false + } + }); + }; -/* harmony default export */ __webpack_exports__["a"] = (attributes); + _proto.componentWillUnmount = function componentWillUnmount() { + this.mounted = false; + }; -/***/ }), -/* 167 */ -/*!*****************************************************!*\ - !*** ./src/blocks/social-share-child/attributes.js ***! - \*****************************************************/ -/*! exports provided: default */ -/*! exports used: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { + TransitionGroup.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, _ref) { + var prevChildMapping = _ref.children, + handleExited = _ref.handleExited, + firstRender = _ref.firstRender; + return { + children: firstRender ? Object(__WEBPACK_IMPORTED_MODULE_7__utils_ChildMapping__["b" /* getInitialChildMapping */])(nextProps, handleExited) : Object(__WEBPACK_IMPORTED_MODULE_7__utils_ChildMapping__["c" /* getNextChildMapping */])(nextProps, prevChildMapping, handleExited), + firstRender: false + }; + } // node is `undefined` when user provided `nodeRef` prop + ; -"use strict"; -/** - * BLOCK: Social Share Child - Attributes - */ + _proto.handleExited = function handleExited(child, node) { + var currentChildMapping = Object(__WEBPACK_IMPORTED_MODULE_7__utils_ChildMapping__["a" /* getChildMapping */])(this.props.children); + if (child.key in currentChildMapping) return; -var attributes = { - block_id: { - type: "string" - }, - type: { - type: "string", - default: "facebook" - }, - image_icon: { - type: "string", - default: "icon" - }, - current_url: { - type: "string" - }, - icon: { - type: "string", - default: "fab fa-facebook" - }, - image: { - type: "object" - }, - icon_color: { - type: "string", - default: "#3a3a3a" - }, - icon_hover_color: { - type: "string" - }, - icon_bg_color: { - type: "string" - }, - icon_bg_hover_color: { - type: "string" - } -}; + if (child.props.onExited) { + child.props.onExited(node); + } -/* harmony default export */ __webpack_exports__["a"] = (attributes); + if (this.mounted) { + this.setState(function (state) { + var children = Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, state.children); -/***/ }), -/* 168 */ -/*!************************************************!*\ - !*** ./src/blocks/social-share-child/links.js ***! - \************************************************/ -/*! exports provided: default */ -/*! exports used: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { + delete children[child.key]; + return { + children: children + }; + }); + } + }; -"use strict"; -var links = { - facebook: "https://www.facebook.com/sharer.php?u=", - twitter: "https://twitter.com/share?url=", - google: "https://plus.google.com/share?url=", - linkedin: "https://www.linkedin.com/shareArticle?url=", - digg: "http://digg.com/submit?url=", - blogger: "https://www.blogger.com/blog_this.pyra?t&u=", - reddit: "https://reddit.com/submit?url=", - stumbleupon: "https://www.stumbleupon.com/submit?url=", - tumblr: "https://www.tumblr.com/widgets/share/tool?canonicalUrl=", - myspace: "https://myspace.com/post?u=", - email: "mailto:?body=", - pinterest: "https://pinterest.com/pin/create/link/?url=", - vk: 'https://vkontakte.ru/share.php?url=', - odnoklassniki: 'https://connect.ok.ru/offer?url=', - pocket: 'https://getpocket.com/edit?url=', - whatsapp: 'https://api.whatsapp.com/send?text=', // whatsapp://send?text=*{title}*\n{text}\n{url}',//https://api.whatsapp.com/send?text=textToshare - xing: 'https://www.xing.com/app/user?op=share&url=', - telegram: 'https://telegram.me/share/url?url=', - skype: 'https://web.skype.com/share?url=', - buffer: 'https://buffer.com/add?url=' -}; + _proto.render = function render() { + var _this$props = this.props, + Component = _this$props.component, + childFactory = _this$props.childFactory, + props = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__["a" /* default */])(_this$props, ["component", "childFactory"]); -/* harmony default export */ __webpack_exports__["a"] = (links); + var contextValue = this.state.contextValue; + var children = values(this.state.children).map(childFactory); + delete props.appear; + delete props.enter; + delete props.exit; + + if (Component === null) { + return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_6__TransitionGroupContext__["a" /* default */].Provider, { + value: contextValue + }, children); + } + + return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_6__TransitionGroupContext__["a" /* default */].Provider, { + value: contextValue + }, /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(Component, props, children)); + }; + + return TransitionGroup; +}(__WEBPACK_IMPORTED_MODULE_5_react___default.a.Component); + +TransitionGroup.propTypes = process.env.NODE_ENV !== "production" ? { + /** + * `` renders a `
    ` by default. You can change this + * behavior by providing a `component` prop. + * If you use React v16+ and would like to avoid a wrapping `
    ` element + * you can pass in `component={null}`. This is useful if the wrapping div + * borks your css styles. + */ + component: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.any, + + /** + * A set of `` components, that are toggled `in` and out as they + * leave. the `` will inject specific transition props, so + * remember to spread them through if you are wrapping the `` as + * with our `` example. + * + * While this component is meant for multiple `Transition` or `CSSTransition` + * children, sometimes you may want to have a single transition child with + * content that you want to be transitioned out and in when you change it + * (e.g. routes, images etc.) In that case you can change the `key` prop of + * the transition child as you change its content, this will cause + * `TransitionGroup` to transition the child out and back in. + */ + children: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.node, + + /** + * A convenience prop that enables or disables appear animations + * for all children. Note that specifying this will override any defaults set + * on individual children Transitions. + */ + appear: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool, + + /** + * A convenience prop that enables or disables enter animations + * for all children. Note that specifying this will override any defaults set + * on individual children Transitions. + */ + enter: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool, + + /** + * A convenience prop that enables or disables exit animations + * for all children. Note that specifying this will override any defaults set + * on individual children Transitions. + */ + exit: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool, + + /** + * You may need to apply reactive updates to a child as it is exiting. + * This is generally done by using `cloneElement` however in the case of an exiting + * child the element has already been removed and not accessible to the consumer. + * + * If you do need to update a child as it leaves you can provide a `childFactory` + * to wrap every child, even the ones that are leaving. + * + * @type Function(child: ReactElement) -> ReactElement + */ + childFactory: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func +} : {}; +TransitionGroup.defaultProps = defaultProps; +/* harmony default export */ __webpack_exports__["a"] = (TransitionGroup); +/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(/*! ./../../process/browser.js */ 6))) /***/ }), -/* 169 */ -/*!********************************************!*\ - !*** ./src/blocks/icon-list/attributes.js ***! - \********************************************/ +/* 208 */ +/*!**********************************************!*\ + !*** ./src/blocks/info-box/inline-styles.js ***! + \**********************************************/ /*! exports provided: default */ /*! exports used: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSS__ = __webpack_require__(/*! ../../../dist/blocks/uagb-controls/generateCSS */ 4); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__ = __webpack_require__(/*! ../../../dist/blocks/uagb-controls/generateCSSUnit */ 3); /** - * BLOCK: Icon List - Attributes + * Returns Dynamic Generated CSS */ -var ITEM_COUNT = 1; -var icons = []; -for (var i = 1; i <= ITEM_COUNT; i++) { - icons.push({ - "label": "#Label", - "image_icon": "icon", - "icon": "fab fa-arrow-circle-right", - "image": "", - "icon_color": "#3a3a3a", - "label_color": "", - "icon_hover_color": "", - "label_hover_color": "", - "icon_bg_color": "", - "icon_bg_hover_color": "", - "icon_border_color": "", - "icon_border_hover_color": "", - "link": "#", - "target": false, - "disableLink": true, - "hideLabel": false - }); -} -var attributes = { - block_id: { - type: "string" - }, - classMigrate: { - type: "boolean", - default: false - }, - childMigrate: { - type: "boolean", - default: false - }, - align: { - type: "string", - default: "left" - }, - icon_count: { - type: "number", - default: ITEM_COUNT +function InfoBoxStyle(props) { + var _props$attributes = props.attributes, + classMigrate = _props$attributes.classMigrate, + headingAlign = _props$attributes.headingAlign, + headingColor = _props$attributes.headingColor, + subHeadingColor = _props$attributes.subHeadingColor, + prefixColor = _props$attributes.prefixColor, + prefixFontSize = _props$attributes.prefixFontSize, + prefixFontSizeType = _props$attributes.prefixFontSizeType, + prefixFontSizeTablet = _props$attributes.prefixFontSizeTablet, + prefixFontSizeMobile = _props$attributes.prefixFontSizeMobile, + prefixFontFamily = _props$attributes.prefixFontFamily, + prefixFontWeight = _props$attributes.prefixFontWeight, + prefixLineHeightType = _props$attributes.prefixLineHeightType, + prefixLineHeight = _props$attributes.prefixLineHeight, + prefixLineHeightTablet = _props$attributes.prefixLineHeightTablet, + prefixLineHeightMobile = _props$attributes.prefixLineHeightMobile, + headFontSize = _props$attributes.headFontSize, + headFontSizeType = _props$attributes.headFontSizeType, + headFontSizeTablet = _props$attributes.headFontSizeTablet, + headFontSizeMobile = _props$attributes.headFontSizeMobile, + headFontFamily = _props$attributes.headFontFamily, + headFontWeight = _props$attributes.headFontWeight, + headLineHeightType = _props$attributes.headLineHeightType, + headLineHeight = _props$attributes.headLineHeight, + headLineHeightTablet = _props$attributes.headLineHeightTablet, + headLineHeightMobile = _props$attributes.headLineHeightMobile, + subHeadFontSize = _props$attributes.subHeadFontSize, + subHeadFontSizeType = _props$attributes.subHeadFontSizeType, + subHeadFontSizeTablet = _props$attributes.subHeadFontSizeTablet, + subHeadFontSizeMobile = _props$attributes.subHeadFontSizeMobile, + subHeadFontFamily = _props$attributes.subHeadFontFamily, + subHeadFontWeight = _props$attributes.subHeadFontWeight, + subHeadLineHeightType = _props$attributes.subHeadLineHeightType, + subHeadLineHeight = _props$attributes.subHeadLineHeight, + subHeadLineHeightTablet = _props$attributes.subHeadLineHeightTablet, + subHeadLineHeightMobile = _props$attributes.subHeadLineHeightMobile, + separatorWidthType = _props$attributes.separatorWidthType, + headSpace = _props$attributes.headSpace, + subHeadSpace = _props$attributes.subHeadSpace, + iconColor = _props$attributes.iconColor, + iconSize = _props$attributes.iconSize, + iconimgPosition = _props$attributes.iconimgPosition, + iconHover = _props$attributes.iconHover, + iconimgBorderRadius = _props$attributes.iconimgBorderRadius, + seperatorStyle = _props$attributes.seperatorStyle, + seperatorWidth = _props$attributes.seperatorWidth, + seperatorColor = _props$attributes.seperatorColor, + seperatorThickness = _props$attributes.seperatorThickness, + seperatorSpace = _props$attributes.seperatorSpace, + ctaLinkColor = _props$attributes.ctaLinkColor, + ctaFontSize = _props$attributes.ctaFontSize, + ctaFontSizeType = _props$attributes.ctaFontSizeType, + ctaFontSizeMobile = _props$attributes.ctaFontSizeMobile, + ctaFontSizeTablet = _props$attributes.ctaFontSizeTablet, + ctaFontFamily = _props$attributes.ctaFontFamily, + ctaFontWeight = _props$attributes.ctaFontWeight, + ctaBtnLinkColor = _props$attributes.ctaBtnLinkColor, + ctaBgColor = _props$attributes.ctaBgColor, + ctaBtnVertPadding = _props$attributes.ctaBtnVertPadding, + ctaBtnHrPadding = _props$attributes.ctaBtnHrPadding, + ctaBorderStyle = _props$attributes.ctaBorderStyle, + ctaBorderColor = _props$attributes.ctaBorderColor, + ctaBorderWidth = _props$attributes.ctaBorderWidth, + ctaBorderRadius = _props$attributes.ctaBorderRadius, + prefixSpace = _props$attributes.prefixSpace, + iconLeftMargin = _props$attributes.iconLeftMargin, + iconRightMargin = _props$attributes.iconRightMargin, + iconTopMargin = _props$attributes.iconTopMargin, + iconBottomMargin = _props$attributes.iconBottomMargin, + imageWidth = _props$attributes.imageWidth, + imageWidthType = _props$attributes.imageWidthType, + ctaLinkHoverColor = _props$attributes.ctaLinkHoverColor, + ctaBgHoverColor = _props$attributes.ctaBgHoverColor, + ctaBorderhoverColor = _props$attributes.ctaBorderhoverColor, + ctaIconSpace = _props$attributes.ctaIconSpace; + + + var selectors = { + // Icon css + " .uagb-ifb-icon": { + "height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(iconSize, "px"), + "width": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(iconSize, "px"), + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(iconSize, "px") + }, + " .uagb-ifb-icon > span": { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(iconSize, "px"), + "height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(iconSize, "px"), + "color": iconColor, + "fill": iconColor, + "width": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(iconSize, "px"), + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(iconSize, "px") + }, + " .uagb-ifb-icon > svg": { + "fill": iconColor + }, + " .uagb-ifb-icon:hover > span": { + "color": iconHover + }, + " .uagb-ifb-icon:hover > svg": { + "fill": iconHover + }, + " .uagb-infobox_cta-type-all:hover .uagb-ifb-icon svg": { + "fill": iconHover + }, + " .uagb-infobox__content-wrap .uagb-ifb-imgicon-wrap": { + "margin-left": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(iconLeftMargin, "px"), + "margin-right": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(iconRightMargin, "px"), + "margin-top": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(iconTopMargin, "px"), + "margin-bottom": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(iconBottomMargin, "px") + }, + " .uagb-infobox .uagb-ifb-image-content img": { + "border-radius": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(iconimgBorderRadius, "px") + }, + // CTA style + " .uagb-infobox-cta-link": { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSize, ctaFontSizeType), + "font-family": ctaFontFamily, + "font-weight": ctaFontWeight, + "color": ctaLinkColor + }, + " .uagb-infobox-cta-link:hover": { + "color": ctaLinkHoverColor + }, + " .uagb-infobox-cta-link .uagb-ifb-text-icon": { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSize, ctaFontSizeType), + "height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSize, ctaFontSizeType), + "width": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSize, ctaFontSizeType), + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSize, ctaFontSizeType) + }, + " .uagb-infobox-cta-link .uagb-ifb-button-icon": { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSize, ctaFontSizeType), + "height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSize, ctaFontSizeType), + "width": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSize, ctaFontSizeType), + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSize, ctaFontSizeType) + }, + " .uagb-infobox-cta-link svg": { + "fill": ctaLinkColor + }, + " .uagb-infobox-cta-link:hover svg": { + "fill": ctaLinkHoverColor + }, + " .uagb-ifb-button-wrapper .uagb-infobox-cta-link": { + "color": ctaBtnLinkColor, + "background-color": ctaBgColor, + "border-style": ctaBorderStyle, + "border-color": ctaBorderColor, + "border-radius": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaBorderRadius, "px"), + "border-width": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaBorderWidth, "px"), + "padding-top": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaBtnVertPadding, "px"), + "padding-bottom": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaBtnVertPadding, "px"), + "padding-left": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaBtnHrPadding, "px"), + "padding-right": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaBtnHrPadding, "px") + }, + " .uagb-ifb-button-wrapper:hover .uagb-infobox-cta-link": { + "color": ctaLinkHoverColor, + "background-color": ctaBgHoverColor, + "border-color": ctaBorderhoverColor + }, + " .uagb-ifb-button-wrapper .uagb-infobox-cta-link svg": { + "fill": ctaBtnLinkColor + }, + " .uagb-ifb-button-wrapper .uagb-infobox-cta-link:hover svg": { + "fill": ctaLinkHoverColor + }, + // Prefix Style + " .block-editor-rich-text__editable.uagb-ifb-title-prefix": { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(prefixFontSize, prefixFontSizeType), + "font-family": prefixFontFamily, + "font-weight": prefixFontWeight, + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(prefixLineHeight, prefixLineHeightType), + "color": prefixColor, + "margin-bottom": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(prefixSpace, "px") + }, + // Title Style + " .block-editor-rich-text__editable.uagb-ifb-title a": { + "color": headingColor + }, + " .block-editor-rich-text__editable.uagb-ifb-title": { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headFontSize, headFontSizeType), + "font-family": headFontFamily, + "font-weight": headFontWeight, + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headLineHeight, headLineHeightType), + "color": headingColor, + "margin-bottom": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headSpace, "px") + }, + // Description Style + " .block-editor-rich-text__editable.uagb-ifb-desc": { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(subHeadFontSize, subHeadFontSizeType), + "font-family": subHeadFontFamily, + "font-weight": subHeadFontWeight, + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(subHeadLineHeight, subHeadLineHeightType), + "color": subHeadingColor, + "margin-bottom": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(subHeadSpace, "px") + }, + // Seperator + " .uagb-ifb-separator": { + "width": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(seperatorWidth, separatorWidthType), + "border-top-width": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(seperatorThickness, "px"), + "border-top-color": seperatorColor, + "border-top-style": seperatorStyle + }, + " .uagb-ifb-separator-parent": { + "margin-bottom": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(seperatorSpace, "px") + }, + " .uagb-ifb-content": { + "padding": typeof blockPadding != "undefined" ? blockPadding + "px" : "inherit" + }, + " .uagb-ifb-align-icon-after": { + "margin-left": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaIconSpace, "px") + }, + " .uagb-ifb-align-icon-before": { + "margin-right": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaIconSpace, "px") + } + }; + + if (imageWidthType) { + // Image + selectors[" .uagb-ifb-image-content img"] = { + "width": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(imageWidth, "px"), + "max-width": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(imageWidth, "px") + }; + } + + if (iconimgPosition == "above-title" || iconimgPosition == "below-title") { + selectors[" .uagb-infobox__content-wrap"] = { + "text-align": headingAlign + }; + } + + var tablet_selectors = { + " .block-editor-rich-text__editable.uagb-ifb-desc": { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(subHeadFontSizeTablet, subHeadFontSizeType), + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(subHeadLineHeightTablet, subHeadLineHeightType) + }, + " .block-editor-rich-text__editable.uagb-ifb-title": { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headFontSizeTablet, headFontSizeType), + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headLineHeightTablet, headLineHeightType) + }, + " .block-editor-rich-text__editable.uagb-ifb-title-prefix": { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(prefixFontSizeTablet, prefixFontSizeType), + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(prefixLineHeightTablet, prefixLineHeightType) + }, + " .uagb-infobox-cta-link": { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSizeTablet, ctaFontSizeType) + }, + " .uagb-infobox-cta-link .uagb-ifb-text-icon": { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSizeTablet, ctaFontSizeType), + "height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSizeTablet, ctaFontSizeType), + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSizeTablet, ctaFontSizeType), + "width": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSizeTablet, ctaFontSizeType) + }, + " .uagb-infobox-cta-link .uagb-ifb-button-icon": { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSizeTablet, ctaFontSizeType), + "height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSizeTablet, ctaFontSizeType), + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSizeTablet, ctaFontSizeType), + "width": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSizeTablet, ctaFontSizeType) + } + }; + + var mobile_selectors = { + " .block-editor-rich-text__editable.uagb-ifb-desc": { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(subHeadFontSizeMobile, subHeadFontSizeType), + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(subHeadLineHeightMobile, subHeadLineHeightType) + }, + " .block-editor-rich-text__editable.uagb-ifb-title": { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headFontSizeMobile, headFontSizeType), + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headLineHeightMobile, headLineHeightType) + }, + " .block-editor-rich-text__editable.uagb-ifb-title-prefix": { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(prefixFontSizeMobile, prefixFontSizeType), + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(prefixLineHeightMobile, prefixLineHeightType) + }, + " .uagb-infobox-cta-link": { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSizeMobile, ctaFontSizeType) + }, + " .uagb-infobox-cta-link .uagb-ifb-text-icon": { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSizeMobile, ctaFontSizeType), + "height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSizeMobile, ctaFontSizeType), + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSizeMobile, ctaFontSizeType), + "width": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSizeMobile, ctaFontSizeType) + }, + " .uagb-infobox-cta-link .uagb-ifb-button-icon": { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSizeMobile, ctaFontSizeType), + "height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSizeMobile, ctaFontSizeType), + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSizeMobile, ctaFontSizeType), + "width": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSizeMobile, ctaFontSizeType) + } + }; + + var id = ".block-editor-page #wpwrap .uagb-block-" + props.clientId.substr(0, 8); + var styling_css = Object(__WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSS__["a" /* default */])(selectors, id); + + styling_css += Object(__WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSS__["a" /* default */])(tablet_selectors, id, true, "tablet"); + + styling_css += Object(__WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSS__["a" /* default */])(mobile_selectors, id, true, "mobile"); + return styling_css; +} + +/* harmony default export */ __webpack_exports__["a"] = (InfoBoxStyle); + +/***/ }), +/* 209 */ +/*!*****************************************************!*\ + !*** ./src/blocks/info-box/components/IconImage.js ***! + \*****************************************************/ +/*! exports provided: default */ +/*! exports used: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + +var RichText = wp.blockEditor.RichText; +var __ = wp.i18n.__; + +var InfoBoxIconImage = function (_React$Component) { + _inherits(InfoBoxIconImage, _React$Component); + + function InfoBoxIconImage() { + _classCallCheck(this, InfoBoxIconImage); + + return _possibleConstructorReturn(this, (InfoBoxIconImage.__proto__ || Object.getPrototypeOf(InfoBoxIconImage)).apply(this, arguments)); + } + + _createClass(InfoBoxIconImage, [{ + key: "render", + value: function render() { + var attributes = this.props.attributes; + + + var url_chk = ""; + if (typeof attributes.iconImage !== "undefined" && attributes.iconImage !== null && attributes.iconImage !== "") { + url_chk = attributes.iconImage.url; + } + + var url = ""; + if (url_chk !== "") { + var size = attributes.iconImage.sizes; + var imageSize = attributes.imageSize; + + if (typeof size !== "undefined" && typeof size[imageSize] !== "undefined") { + url = size[imageSize].url; + } else { + url = url_chk; + } + + return wp.element.createElement( + "div", + { className: "uagb-ifb-image-icon-content uagb-ifb-imgicon-wrap" }, + wp.element.createElement( + "div", + { className: "uagb-ifb-image" }, + wp.element.createElement( + "div", + { className: "uagb-ifb-image-content" }, + wp.element.createElement("img", { + className: "uagb-ifb-img-src", + src: url, + alt: attributes.iconImage.alt + }) + ) + ) + ); + } else { + return null; + } + } + }]); + + return InfoBoxIconImage; +}(React.Component); + +/* harmony default export */ __webpack_exports__["a"] = (InfoBoxIconImage); + +/***/ }), +/* 210 */ +/*!*******************************************!*\ + !*** ./src/blocks/info-box/attributes.js ***! + \*******************************************/ +/*! exports provided: default */ +/*! exports used: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/** + * BLOCK: Info Box - Attributes + */ + +var attributes = { + inheritFromTheme: { + type: "boolean", + default: false }, - icons: { - type: "array", - default: icons + prefixTitle: { + source: "html", + selector: "span.uagb-ifb-title-prefix", + default: "Prefix" }, - gap: { - type: "number", - default: 10 + classMigrate: { + type: "boolean", + default: false }, - inner_gap: { - type: "number", - default: 15 + infoBoxTitle: { + source: "html", + selector: "h1,h2,h3,h4,h5,h6", + default: "Info Box" }, - iconPosition: { + headingDesc: { + source: "html", + selector: "p", + default: "Click here to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo." + }, + headingAlign: { type: "string", - default: "middle" + default: "center" }, - size: { - type: "number", - default: 16 + headingColor: { + type: "string" }, - sizeType: { - type: "string", - default: "px" + subHeadingColor: { + type: "string" }, - sizeMobile: { - type: "number" + prefixColor: { + type: "string" }, - sizeTablet: { - type: "number" + icon: { + type: "string", + default: "fa fa-star" }, - bgSize: { - type: "number", - default: 0 + iconimgPosition: { + type: "string", + default: "above-title" }, - border: { + iconSize: { type: "number", - default: 0 + default: 40 }, - borderRadius: { - type: "number", - default: 0 + iconHover: { + type: "string", + default: "" }, - hideLabel: { - type: "boolean", - default: false + iconBgHover: { + type: "string", + default: "" }, - fontSize: { + iconColor: { + type: "string", + default: "#333" + }, + prefixTag: { + type: "string", + default: "h3" + }, + prefixFontSize: { type: "number" }, - fontSizeType: { + prefixFontSizeType: { type: "string", default: "px" }, - fontSizeMobile: { + prefixFontSizeTablet: { type: "number" }, - fontSizeTablet: { + prefixFontSizeMobile: { type: "number" }, - fontFamily: { + prefixFontFamily: { type: "string", default: "Default" }, - fontWeight: { + prefixFontWeight: { type: "string" }, - fontSubset: { + prefixFontSubset: { type: "string" }, - lineHeightType: { + prefixLineHeightType: { type: "string", default: "em" }, - lineHeight: { + prefixLineHeight: { type: "number" }, - lineHeightTablet: { + prefixLineHeightTablet: { type: "number" }, - lineHeightMobile: { + prefixLineHeightMobile: { type: "number" }, - loadGoogleFonts: { + prefixLoadGoogleFonts: { type: "boolean", default: false }, - icon_layout: { - type: "string", - default: "vertical" - }, - stack: { + headingTag: { type: "string", - default: "none" - } -}; - -/* harmony default export */ __webpack_exports__["a"] = (attributes); - -/***/ }), -/* 170 */ -/*!**************************************************!*\ - !*** ./src/blocks/icon-list-child/attributes.js ***! - \**************************************************/ -/*! exports provided: default */ -/*! exports used: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/** - * BLOCK: Icon List Child - Attributes - */ - -var attributes = { - block_id: { - type: "string" + default: "h3" }, - label: { - type: 'html', - selector: ".uagb-icon-list__label", - default: "#Label" + headFontSize: { + type: "number" }, - image_icon: { + headFontSizeType: { type: "string", - default: "icon" - }, - hideLabel: { - type: "boolean", - default: false + default: "px" }, - icon: { - type: "string", - default: "fab fa-arrow-circle-right" + headFontSizeTablet: { + type: "number" }, - image: { - type: "object" + headFontSizeMobile: { + type: "number" }, - icon_color: { + headFontFamily: { type: "string", - default: "#3a3a3a" + default: "Default" }, - label_color: { + headFontWeight: { type: "string" }, - icon_hover_color: { + headFontSubset: { type: "string" }, - label_hover_color: { - type: "string" + headLineHeightType: { + type: "string", + default: "em" }, - icon_bg_color: { - type: "string" + headLineHeight: { + type: "number" }, - icon_bg_hover_color: { - type: "string" + headLineHeightTablet: { + type: "number" }, - icon_border_color: { - type: "string" + headLineHeightMobile: { + type: "number" }, - icon_border_hover_color: { - type: "string" + headLoadGoogleFonts: { + type: "boolean", + default: false }, - link: { - type: "string", - default: "#" + subHeadFontSize: { + type: "number" }, - target: { - type: "boolean", - default: false + subHeadFontSizeType: { + type: "string", + default: "px" }, - disableLink: { - type: "boolean", - default: true - } -}; - -/* harmony default export */ __webpack_exports__["a"] = (attributes); - -/***/ }), -/* 171 */ -/*!*********************************************!*\ - !*** ./src/blocks/price-list/attributes.js ***! - \*********************************************/ -/*! exports provided: default */ -/*! exports used: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/** - * BLOCK: Price List - Attributes - */ -var __ = wp.i18n.__; - -var ITEM_COUNT = 4; - -var rest_menu_block = []; - -for (var i = 1; i <= ITEM_COUNT; i++) { - var desc_text = __("Lorem ipsum dolor sit amet, consectetur adipiscing elit."); - var title_text = __("Menu Item " + i); - var price_text = __("$9"); - rest_menu_block.push({ - "description": desc_text, - "title": title_text, - "price": price_text, - "image": "" - }); -} - -var attributes = { - classMigrate: { - type: "boolean", - default: false + subHeadFontSizeTablet: { + type: "number" }, - childMigrate: { - type: "boolean", - default: false + subHeadFontSizeMobile: { + type: "number" }, - menu_item_count: { - type: "number", - default: ITEM_COUNT + subHeadFontFamily: { + type: "string", + default: "Default" }, - rest_menu_item_arr: { - type: "array", - default: rest_menu_block + subHeadFontWeight: { + type: "string" }, - headingAlign: { + subHeadFontSubset: { + type: "string" + }, + subHeadLineHeightType: { type: "string", - default: "left" + default: "em" }, - priceSpace: { + subHeadLineHeight: { + type: "number" + }, + subHeadLineHeightTablet: { + type: "number" + }, + subHeadLineHeightMobile: { + type: "number" + }, + subHeadLoadGoogleFonts: { + type: "boolean", + default: false + }, + headSpace: { type: "number", - default: 5 + default: 10 }, - descSpace: { + subHeadSpace: { type: "number", - default: 15 + default: 10 }, - titleSpace: { + seperatorSpace: { type: "number", default: 10 }, + iconimgBorderRadius: { + type: "number", + default: 0 + }, + source_type: { + type: "string", + default: "icon" + }, block_id: { type: "string", default: "not_set" }, - imgVrPadding: { - type: "number", - default: 0 + sourceAlign: { + type: "string", + default: "top" }, - imgHrPadding: { - type: "number", - default: 0 + ctaTarget: { + type: "boolean", + default: false }, - imgTopPadding: { + ctaIcon: { + type: "string", + default: "" + }, + ctaIconPosition: { + type: "string", + default: "after" + }, + ctaIconSpace: { type: "number", - default: 0 + default: 5 }, - imgBottomPadding: { + seperatorPosition: { + type: "string", + default: "after_title" + }, + seperatorStyle: { + type: "string", + default: "solid" + }, + seperatorColor: { + type: "string", + default: "#333" + }, + seperatorWidth: { type: "number", - default: 0 + default: 30 }, - columns: { + separatorWidthType: { + type: "string", + default: "%" + }, + seperatorThickness: { type: "number", default: 2 }, - tcolumns: { + ctaType: { + type: "string", + default: "none" + }, + ctaText: { + type: "html", + default: "Read More" + }, + ctaLink: { + type: "string", + default: "#" + }, + ctaLinkColor: { + type: "string", + default: "#333" + }, + ctaFontSize: { + type: "number" + }, + ctaFontSizeType: { + type: "string", + default: "px" + }, + ctaFontSizeMobile: { + type: "number" + }, + ctaFontSizeTablet: { + type: "number" + }, + ctaFontFamily: { + type: "string", + default: "Default" + }, + ctaFontWeight: { + type: "string" + }, + ctaFontSubset: { + type: "string" + }, + ctaLoadGoogleFonts: { + type: "boolean", + default: false + }, + ctaBtnLinkColor: { + type: "string", + default: "#333" + }, + ctaLinkHoverColor: { + type: "string", + default: "" + }, + ctaBgColor: { + type: "string", + default: "transparent" + }, + ctaBgHoverColor: { + type: "string", + default: "transparent" + }, + ctaBorderColor: { + type: "string", + default: "#333" + }, + ctaBorderhoverColor: { + type: "string", + default: "" + }, + ctaBorderStyle: { + type: "string", + default: "solid" + }, + ctaBtnVertPadding: { type: "number", - default: 2 + default: 10 }, - mcolumns: { + ctaBtnHrPadding: { + type: "number", + default: 14 + }, + ctaBorderWidth: { type: "number", default: 1 }, - rowGap: { + ctaBorderRadius: { + type: "number", + default: 0 + }, + prefixSpace: { + type: "number", + default: 5 + }, + iconLeftMargin: { type: "number", default: 10 }, - columnGap: { + iconRightMargin: { type: "number", default: 10 }, - contentVrPadding: { + iconTopMargin: { type: "number", default: 5 }, - contentHrPadding: { + iconBottomMargin: { type: "number", default: 5 }, - + iconImage: { + type: "object", + default: { + "url": "", + "alt": "InfoBox placeholder img" + } + }, + imageSize: { + type: "string", + default: "thumbnail" + }, + imageWidth: { + type: "number", + default: 120 + }, + imageWidthType: { + type: "boolean", + default: true + }, stack: { type: "string", default: "tablet" }, - seperatorStyle: { - type: "string", - default: "dashed" + showPrefix: { + type: "boolean", + default: true }, - seperatorWidth: { - type: "number", - default: "100" + showTitle: { + type: "boolean", + default: true }, - seperatorThickness: { + showDesc: { + type: "boolean", + default: true + } +}; + +/* harmony default export */ __webpack_exports__["a"] = (attributes); + +/***/ }), +/* 211 */ +/*!****************************************************!*\ + !*** ./src/blocks/testimonial/components/Image.js ***! + \****************************************************/ +/*! exports provided: default */ +/*! exports used: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + +var RichText = wp.blockEditor.RichText; +var __ = wp.i18n.__; + +var TestimonialImage = function (_React$Component) { + _inherits(TestimonialImage, _React$Component); + + function TestimonialImage() { + _classCallCheck(this, TestimonialImage); + + return _possibleConstructorReturn(this, (TestimonialImage.__proto__ || Object.getPrototypeOf(TestimonialImage)).apply(this, arguments)); + } + + _createClass(TestimonialImage, [{ + key: "render", + value: function render() { + var _props = this.props, + attributes = _props.attributes, + index_value = _props.index_value; + + var url_check = ""; + + var image_arr = attributes.test_block[index_value]; + + if (image_arr && typeof image_arr !== "undefined") { + var image = image_arr["image"]; + var url = ""; + + if (typeof image !== "undefined" && image !== null && image !== "") { + url_check = image.url; + } + + if (url_check !== "") { + var size = image.sizes; + var imageSize = attributes.imageSize; + if (typeof size !== "undefined" && typeof size[imageSize] !== "undefined") { + url = size[imageSize].url; + } else { + url = url_check; + } + + return wp.element.createElement( + "div", + { className: "uagb-tm__image-content", key: "tm_img-wrap-" + index_value }, + wp.element.createElement( + "div", + { className: "uagb-tm__image", key: "tm_img-" + index_value }, + wp.element.createElement("img", { + className: "uagb-tm-img-src", + src: url, + alt: image.alt + }) + ) + ); + } else { + return null; + } + } else { + return null; + } + } + }]); + + return TestimonialImage; +}(React.Component); + +/* harmony default export */ __webpack_exports__["a"] = (TestimonialImage); + +/***/ }), +/* 212 */ +/*!**********************************************!*\ + !*** ./src/blocks/testimonial/attributes.js ***! + \**********************************************/ +/*! exports provided: default */ +/*! exports used: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +var _attributes; + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** + * BLOCK: Testimonial - Attributes + */ + +var ITEM_COUNT = 3; + +var testimonial_block = []; + +for (var i = 1; i <= ITEM_COUNT; i++) { + var desc_text = "I have been working with these guys since years now! With lots of hard work and timely communication they made sure they delivered the best to me. Highly recommended!"; + var author_text = "John Doe "; + var company_text = "Company" + i; + testimonial_block.push({ + "description": desc_text, + "name": author_text, + "company": company_text, + "image": "" + }); +} + +var attributes = (_attributes = { + test_item_count: { type: "number", - default: "1" + default: ITEM_COUNT }, - seperatorColor: { + classMigrate: { + type: "boolean", + default: false + }, + test_block: { + type: "array", + default: testimonial_block + }, + headingAlign: { type: "string", - default: "#b2b4b5" + default: "center" }, descColor: { type: "string", default: "#333" }, - priceColor: { + companyColor: { type: "string", default: "#888888" }, - titleColor: { + authorColor: { type: "string", default: "#333" }, - titleFontSizeType: { + iconimgStyle: { + type: "string", + default: "circle" + }, + imagePosition: { + type: "string", + default: "bottom" + }, + imageAlignment: { + type: "string", + default: "top" + }, + + nameFontSizeType: { type: "string", default: "px" }, - titleFontSize: { + nameFontSize: { type: "number" }, - titleFontSizeTablet: { + nameFontSizeTablet: { type: "number" }, - titleFontSizeMobile: { + nameFontSizeMobile: { type: "number" }, - titleFontFamily: { + nameFontFamily: { type: "string", default: "Default" }, - titleFontWeight: { + nameFontWeight: { type: "string" }, - titleFontSubset: { + nameFontSubset: { type: "string" }, - titleLineHeightType: { + nameLineHeightType: { type: "string", default: "em" }, - titleLineHeight: { + nameLineHeight: { type: "number" }, - titleLineHeightTablet: { + nameLineHeightTablet: { type: "number" }, - titleLineHeightMobile: { + nameLineHeightMobile: { type: "number" }, - titleLoadGoogleFonts: { + nameLoadGoogleFonts: { type: "boolean", default: false }, - priceFontSizeType: { + companyFontSizeType: { type: "string", default: "px" }, - priceFontSize: { + companyFontSize: { type: "number" }, - priceFontSizeTablet: { + companyFontSizeTablet: { type: "number" }, - priceFontSizeMobile: { + companyFontSizeMobile: { type: "number" }, - priceFontFamily: { + companyFontFamily: { type: "string", default: "Default" }, - priceFontWeight: { + companyFontWeight: { type: "string" }, - priceFontSubset: { + companyFontSubset: { type: "string" }, - priceLineHeightType: { + companyLineHeightType: { type: "string", default: "em" }, - priceLineHeight: { + companyLineHeight: { type: "number" }, - priceLineHeightTablet: { + companyLineHeightTablet: { type: "number" }, - priceLineHeightMobile: { + companyLineHeightMobile: { type: "number" }, - priceLoadGoogleFonts: { + companyLoadGoogleFonts: { type: "boolean", default: false }, @@ -19103,303 +18913,163 @@ var attributes = { type: "boolean", default: false }, - headingTag: { - type: "string", - default: "h4" - }, - imagePosition: { - type: "string", - default: "top" + + nameSpace: { + type: "number", + default: 5 }, - imageAlignment: { - type: "string", - default: "top" + descSpace: { + type: "number", + default: 15 }, - imageSize: { + block_id: { type: "string", - default: "medium" + default: "not_set" + }, + authorSpace: { + type: "number", + default: 5 + }, + imgVrPadding: { + type: "number", + default: 10 + }, + imgHrPadding: { + type: "number", + default: 10 + }, + imgTopPadding: { + type: "number", + default: 10 + }, + imgBottomPadding: { + type: "number", + default: 10 + }, + iconImage: { + type: "object", + default: { + "url": "", + "alt": "InfoBox placeholder img" + } + }, + imageSize: { + type: "string", + default: "thumbnail" }, imageWidth: { type: "number", - default: "" - } -}; - -/* harmony default export */ __webpack_exports__["a"] = (attributes); - -/***/ }), -/* 172 */ -/*!****************************************!*\ - !*** ./src/blocks/timeline/style.scss ***! - \****************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -// removed by extract-text-webpack-plugin - -/***/ }), -/* 173 */ -/*!************************************************************!*\ - !*** ./src/blocks/timeline/content-timeline/attributes.js ***! - \************************************************************/ -/*! exports provided: default */ -/*! exports used: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -var _attributes; - -function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - -/** - * BLOCK: UAGB Timeline Attributes - */ - -var __ = wp.i18n.__; - - -var item = []; -var date_arr = []; - -for (var i = 1; i <= 5; i++) { - - item.push({ - "time_heading": __("Timeline Heading ") + i, - "time_desc": __("This is Timeline description, you can change me anytime click here ") - }); - - var j = i - 1; - var today = new Date("1/1/2019"); - var dd = today.getDate(); - var mm = today.getMonth() + 1; //January is 0! - var yyyy = today.getFullYear() - j; - - if (dd < 10) { - dd = "0" + dd; - } - - if (mm < 10) { - mm = "0" + mm; - } - - today = mm + "/" + dd + "/" + yyyy; - var p = { "title": today }; - - date_arr.push({ - "title": today - }); -} - -var attributes = (_attributes = { - tm_content: { - type: "array", - default: item + default: 60 }, - classMigrate: { + columns: { + type: "number", + default: 1 + }, + tcolumns: { + type: "number", + default: 1 + }, + mcolumns: { + type: "number", + default: 1 + }, + pauseOnHover: { type: "boolean", - default: false + default: true }, - dateFormat: { + infiniteLoop: { + type: "boolean", + default: true + }, + transitionSpeed: { + type: "number", + default: 500 + }, + autoplay: { + type: "boolean", + default: true + }, + autoplaySpeed: { + type: "number", + default: 2000 + }, + arrowDots: { type: "string", - default: "F j, Y" + default: "arrows_dots" }, - align: { + arrowSize: { + type: "number", + default: 20 + }, + arrowBorderSize: { + type: "number", + default: 1 + }, + arrowBorderRadius: { + type: "number", + default: 0 + }, + arrowColor: { type: "string", - default: "center" + default: "#aaaaaa" }, - headingColor: { - type: "string" + rowGap: { + type: "number", + default: 10 }, - subHeadingColor: { + columnGap: { + type: "number", + default: 10 + }, + contentPadding: { + type: "number", + default: 5 + }, + backgroundType: { type: "string" }, - separatorBg: { - type: "string", - default: "#eee" + backgroundImage: { + type: "object" }, - backgroundColor: { + backgroundPosition: { type: "string", - default: "#eee" + default: "center-center" }, - separatorColor: { + backgroundSize: { type: "string", - default: "#eee" + default: "cover" }, - separatorFillColor: { + backgroundRepeat: { type: "string", - default: "#61ce70" + default: "no-repeat" }, - separatorBorder: { - type: "string", - default: "#eee" + backgroundColor: { + type: "string" }, - borderFocus: { - type: "string", - default: "#5cb85c" + backgroundImageColor: { + type: "string" }, - headingTag: { + borderStyle: { type: "string", - default: "h4" - }, - horizontalSpace: { - type: "number", - default: 10 + default: "none" }, - verticalSpace: { + borderWidth: { type: "number", - default: 15 + default: "1" }, - headFontSize: { + borderRadius: { type: "number" }, - headFontSizeType: { - type: "string", - default: "px" + borderColor: { + type: "string" + }, + backgroundOpacity: { + type: "number", + default: 50 } -}, _defineProperty(_attributes, "headFontSize", { - type: "number" -}), _defineProperty(_attributes, "headFontSizeTablet", { - type: "number" -}), _defineProperty(_attributes, "headFontSizeMobile", { - type: "number" -}), _defineProperty(_attributes, "headFontFamily", { - type: "string", - default: "Default" -}), _defineProperty(_attributes, "headFontWeight", { - type: "string" -}), _defineProperty(_attributes, "headFontSubset", { - type: "string" -}), _defineProperty(_attributes, "headLineHeightType", { - type: "string", - default: "em" -}), _defineProperty(_attributes, "headLineHeight", { - type: "number" -}), _defineProperty(_attributes, "headLineHeightTablet", { - type: "number" -}), _defineProperty(_attributes, "headLineHeightMobile", { - type: "number" -}), _defineProperty(_attributes, "headLoadGoogleFonts", { - type: "boolean", - default: false -}), _defineProperty(_attributes, "timelinAlignment", { - type: "string", - default: "center" -}), _defineProperty(_attributes, "arrowlinAlignment", { - type: "string", - default: "center" -}), _defineProperty(_attributes, "subHeadFontSizeType", { - type: "string", - default: "px" -}), _defineProperty(_attributes, "subHeadFontSize", { - type: "number" -}), _defineProperty(_attributes, "subHeadFontSizeTablet", { - type: "number" -}), _defineProperty(_attributes, "subHeadFontSizeMobile", { - type: "number" -}), _defineProperty(_attributes, "subHeadFontFamily", { - type: "string", - default: "Default" -}), _defineProperty(_attributes, "subHeadFontWeight", { - type: "string" -}), _defineProperty(_attributes, "subHeadFontSubset", { - type: "string" -}), _defineProperty(_attributes, "subHeadLineHeightType", { - type: "string", - default: "em" -}), _defineProperty(_attributes, "subHeadLineHeight", { - type: "number" -}), _defineProperty(_attributes, "subHeadLineHeightTablet", { - type: "number" -}), _defineProperty(_attributes, "subHeadLineHeightMobile", { - type: "number" -}), _defineProperty(_attributes, "subHeadLoadGoogleFonts", { - type: "boolean", - default: false -}), _defineProperty(_attributes, "headSpace", { - type: "number", - default: 5 -}), _defineProperty(_attributes, "separatorwidth", { - type: "number", - default: 3 -}), _defineProperty(_attributes, "borderwidth", { - type: "number", - default: 0 -}), _defineProperty(_attributes, "iconColor", { - type: "string", - default: "#333" -}), _defineProperty(_attributes, "iconFocus", { - type: "string", - default: "#fff" -}), _defineProperty(_attributes, "iconBgFocus", { - type: "string", - default: "#61ce70" -}), _defineProperty(_attributes, "dateColor", { +}, _defineProperty(_attributes, "arrowColor", { type: "string", default: "#333" -}), _defineProperty(_attributes, "dateFontsizeType", { - type: "string", - default: "px" -}), _defineProperty(_attributes, "dateFontsize", { - type: "number" -}), _defineProperty(_attributes, "dateFontsizeTablet", { - type: "number" -}), _defineProperty(_attributes, "dateFontsizeMobile", { - type: "number" -}), _defineProperty(_attributes, "dateFontFamily", { - type: "string", - default: "Default" -}), _defineProperty(_attributes, "dateFontWeight", { - type: "string" -}), _defineProperty(_attributes, "dateFontSubset", { - type: "string" -}), _defineProperty(_attributes, "dateLineHeightType", { - type: "string", - default: "em" -}), _defineProperty(_attributes, "dateLineHeight", { - type: "number" -}), _defineProperty(_attributes, "dateLineHeightTablet", { - type: "number" -}), _defineProperty(_attributes, "dateLineHeightMobile", { - type: "number" -}), _defineProperty(_attributes, "dateLoadGoogleFonts", { - type: "boolean", - default: false -}), _defineProperty(_attributes, "connectorBgsize", { - type: "number", - default: 35 -}), _defineProperty(_attributes, "subHeadSpace", { - type: "number", - default: 5 -}), _defineProperty(_attributes, "dateBottomspace", { - type: "number", - default: 5 -}), _defineProperty(_attributes, "block_id", { - type: "string", - default: "0" -}), _defineProperty(_attributes, "timelineItem", { - type: "number", - default: 5 -}), _defineProperty(_attributes, "tm_client_id", { - type: "string", - default: "not_set" -}), _defineProperty(_attributes, "borderRadius", { - type: "number", - default: 2 -}), _defineProperty(_attributes, "bgPadding", { - type: "number", - default: 20 -}), _defineProperty(_attributes, "iconSize", { - type: "number", - default: 12 -}), _defineProperty(_attributes, "icon", { - type: "string", - default: "fab fa fa-calendar-alt" -}), _defineProperty(_attributes, "t_date", { - type: "array", - default: date_arr -}), _defineProperty(_attributes, "displayPostDate", { - type: "boolean", - default: true }), _defineProperty(_attributes, "stack", { type: "string", default: "tablet" @@ -19408,68 +19078,63 @@ var attributes = (_attributes = { /* harmony default export */ __webpack_exports__["a"] = (attributes); /***/ }), -/* 174 */ -/*!*************************************************!*\ - !*** ./src/blocks/call-to-action/attributes.js ***! - \*************************************************/ +/* 213 */ +/*!***************************************!*\ + !*** ./src/blocks/team/attributes.js ***! + \***************************************/ /*! exports provided: default */ /*! exports used: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /** - * BLOCK: Call To Action - Attributes + * BLOCK: UAGB Team Block Attributes */ var attributes = { - inheritFromTheme: { + block_id: { + type: "string" + }, + classMigrate: { type: "boolean", default: false }, - ctaTitle: { - source: "html", + align: { + type: "string", + default: "center" + }, + tag: { + type: "string", + default: "h3" + }, + title: { selector: "h1,h2,h3,h4,h5,h6", - default: "Call To Action" + default: "John Doe" }, - classMigrate: { - type: "boolean", - default: false + prefix: { + selector: "div.uagb-team__prefix", + default: "Designation" }, - description: { - source: "html", + description_text: { selector: "p", default: "Click here to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo." }, - textAlign: { - type: "string", - default: "left" - }, titleColor: { type: "string" }, - descColor: { - type: "string" - }, - ctaPosition: { - type: "string", - default: "right" - }, - titleTag: { + prefixColor: { type: "string", - default: "h3" + default: "#888888" }, - titleFontSize: { - type: "number" + descColor: { + type: "string" }, - titleFontSizeType: { + socialColor: { type: "string", - default: "px" - }, - titleFontSizeMobile: { - type: "number" + default: "#333" }, - titleFontSizeTablet: { - type: "number" + socialHoverColor: { + type: "string" }, titleFontFamily: { type: "string", @@ -19481,10 +19146,23 @@ var attributes = { titleFontSubset: { type: "string" }, + titleFontSizeType: { + type: "string", + default: "px" + }, titleLineHeightType: { type: "string", default: "em" }, + titleFontSize: { + type: "number" + }, + titleFontSizeTablet: { + type: "number" + }, + titleFontSizeMobile: { + type: "number" + }, titleLineHeight: { type: "number" }, @@ -19494,21 +19172,41 @@ var attributes = { titleLineHeightMobile: { type: "number" }, - titleLoadGoogleFonts: { - type: "boolean", - default: false + prefixFontFamily: { + type: "string", + default: "Default" }, - descFontSize: { - type: "number" + prefixFontWeight: { + type: "string" }, - descFontSizeType: { + prefixFontSubset: { + type: "string" + }, + prefixFontSizeType: { type: "string", default: "px" }, - descFontSizeMobile: { + prefixLineHeightType: { + type: "string", + default: "em" + }, + prefixFontSize: { + type: "number", + default: 15 + }, + prefixFontSizeTablet: { type: "number" }, - descFontSizeTablet: { + prefixFontSizeMobile: { + type: "number" + }, + prefixLineHeight: { + type: "number" + }, + prefixLineHeightTablet: { + type: "number" + }, + prefixLineHeightMobile: { type: "number" }, descFontFamily: { @@ -19521,10 +19219,23 @@ var attributes = { descFontSubset: { type: "string" }, + descFontSizeType: { + type: "string", + default: "px" + }, descLineHeightType: { type: "string", default: "em" }, + descFontSize: { + type: "number" + }, + descFontSizeTablet: { + type: "number" + }, + descFontSizeMobile: { + type: "number" + }, descLineHeight: { type: "number" }, @@ -19534,2534 +19245,3050 @@ var attributes = { descLineHeightMobile: { type: "number" }, - descLoadGoogleFonts: { - type: "boolean", - default: false - }, - titleSpace: { - type: "number", - default: 10 - }, - descSpace: { + socialFontSize: { type: "number", - default: 10 + default: 20 }, - block_id: { + socialFontSizeType: { type: "string", - default: "not_set" + default: "px" }, - buttonAlign: { - type: "string", - default: "middle" + socialFontSizeMobile: { + type: "number" }, - ctaTarget: { - type: "boolean", - default: false + socialFontSizeTablet: { + type: "number" }, - ctaIcon: { + image: { + type: "object" + }, + imgStyle: { type: "string", - default: "" + default: "normal" }, - ctaIconPosition: { + imgPosition: { type: "string", - default: "after" + default: "above" }, - ctaIconSpace: { - type: "number", - default: 5 + imgAlign: { + type: "string", + default: "top" }, - ctaType: { + imgSize: { type: "string", - default: "button" + default: "thumbnail" }, - ctaText: { - type: "html", - default: "Read More" + imgWidth: { + type: "number", + default: 120 }, - ctaLink: { - type: "string", - default: "#" + titleSpace: { + type: "number" }, - ctaFontSize: { + prefixSpace: { type: "number" }, - ctaFontSizeType: { - type: "string", - default: "px" + descSpace: { + type: "number", + default: 10 }, - ctaFontSizeMobile: { - type: "number" + imgLeftMargin: { + type: "number", + default: 20 }, - ctaFontSizeTablet: { - type: "number" + imgRightMargin: { + type: "number", + default: 20 }, - ctaFontFamily: { - type: "string", - default: "Default" + imgTopMargin: { + type: "number", + default: 15 }, - ctaFontWeight: { - type: "string" + imgBottomMargin: { + type: "number", + default: 15 }, - ctaFontSubset: { - type: "string" + socialEnable: { + type: "boolean", + default: true }, - ctaLoadGoogleFonts: { + socialSpace: { + type: "number", + default: 20 + }, + socialTarget: { type: "boolean", default: false }, - contentWidth: { - type: "number", - default: "70" + twitterIcon: { + type: "string", + default: "fab fa-twitter" }, - ctaBtnLinkColor: { + fbIcon: { type: "string", - default: "#333" + default: "fab fa-facebook" }, - ctaLinkHoverColor: { + linkedinIcon: { type: "string", - default: "" + default: "fab fa-linkedin" }, - ctaBgColor: { + pinIcon: { type: "string", - default: "transparent" + default: "fab fa-pinterest" }, - ctaBgHoverColor: { + twitterLink: { type: "string", - default: "transparent" + default: "#" }, - ctaBorderColor: { + fbLink: { type: "string", - default: "#333" + default: "#" }, - ctaBorderhoverColor: { + linkedinLink: { type: "string", - default: "" + default: "#" }, - ctaBorderStyle: { + pinLink: { type: "string", - default: "solid" + default: "#" }, - ctaBtnVertPadding: { - type: "number", - default: 10 + stack: { + type: "string", + default: "tablet" }, - ctaBtnHrPadding: { - type: "number", - default: 14 + titleLoadGoogleFonts: { + type: "boolean", + default: false }, - ctaBorderWidth: { - type: "number", - default: 1 - }, - ctaBorderRadius: { - type: "number", - default: 0 - }, - stack: { - type: "string", - default: "tablet" - }, - ctaLeftSpace: { - type: "number", - default: 5 + prefixLoadGoogleFonts: { + type: "boolean", + default: false }, - ctaRightSpace: { - type: "number", - default: 5 + descLoadGoogleFonts: { + type: "boolean", + default: false } }; /* harmony default export */ __webpack_exports__["a"] = (attributes); /***/ }), -/* 175 */ -/*!*****************************************!*\ - !*** ./src/blocks/column/attributes.js ***! - \*****************************************/ +/* 214 */ +/*!***********************************************!*\ + !*** ./src/blocks/social-share/attributes.js ***! + \***********************************************/ /*! exports provided: default */ /*! exports used: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; +/** + * BLOCK: UAGB Social Share Attributes + */ + +var ITEM_COUNT = 1; + +var socials = []; + +for (var i = 1; i <= ITEM_COUNT; i++) { + socials.push({ + "type": "facebook", + "image_icon": "icon", + "icon": "fab fa-facebook", + "image": "", + "icon_color": "#3a3a3a", + "icon_hover_color": "", + "icon_bg_color": "", + "icon_bg_hover_color": "" + }); +} + var attributes = { - block_id: { - type: "string" - }, classMigrate: { type: "boolean", default: false }, - align: { - type: "string", - default: "center" + childMigrate: { + type: "boolean", + default: false }, - alignTablet: { - type: "string", - default: "" + block_id: { + type: "string" }, - alignMobile: { + current_url: { + type: "string" + }, + align: { type: "string", - default: "" + default: "center" }, - topPadding: { + social_count: { type: "number", - default: "" + default: ITEM_COUNT }, - bottomPadding: { - type: "number", - default: "" + socials: { + type: "array", + default: socials }, - leftPadding: { + gap: { type: "number", - default: "" + default: 10 }, - rightPadding: { + size: { type: "number", - default: "" + default: 40 }, - topMargin: { - type: "number", - default: "" + sizeType: { + type: "string", + default: "px" }, - bottomMargin: { - type: "number", - default: "" + sizeMobile: { + type: "number" }, - leftMargin: { - type: "number", - default: "" + sizeTablet: { + type: "number" }, - rightMargin: { + bgSize: { type: "number", - default: "" + default: 0 }, - topPaddingTablet: { - type: "number", - default: "" + bgSizeType: { + type: "string", + default: "px" }, - bottomPaddingTablet: { - type: "number", - default: "" + bgSizeMobile: { + type: "number" }, - leftPaddingTablet: { - type: "number", - default: "" + bgSizeTablet: { + type: "number" }, - rightPaddingTablet: { + borderRadius: { type: "number", - default: "" + default: 0 }, - topMarginTablet: { - type: "number", - default: "" + social_layout: { + type: "string", + default: "horizontal" }, - bottomMarginTablet: { - type: "number", - default: "" + stack: { + type: "string", + default: "none" + } +}; + +/* harmony default export */ __webpack_exports__["a"] = (attributes); + +/***/ }), +/* 215 */ +/*!*****************************************************!*\ + !*** ./src/blocks/social-share-child/attributes.js ***! + \*****************************************************/ +/*! exports provided: default */ +/*! exports used: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/** + * BLOCK: Social Share Child - Attributes + */ + +var attributes = { + block_id: { + type: "string" }, - leftMarginTablet: { - type: "number", - default: "" + type: { + type: "string", + default: "facebook" }, - rightMarginTablet: { - type: "number", - default: "" + image_icon: { + type: "string", + default: "icon" }, - - topPaddingMobile: { - type: "number", - default: "" + current_url: { + type: "string" }, - bottomPaddingMobile: { - type: "number", - default: "" + icon: { + type: "string", + default: "fab fa-facebook" }, - leftPaddingMobile: { - type: "number", - default: "" + image: { + type: "object" }, - rightPaddingMobile: { - type: "number", - default: "" + icon_color: { + type: "string", + default: "#3a3a3a" }, - topMarginMobile: { - type: "number", - default: "" + icon_hover_color: { + type: "string" }, - bottomMarginMobile: { - type: "number", - default: "" + icon_bg_color: { + type: "string" }, - leftMarginMobile: { - type: "number", - default: "" + icon_bg_hover_color: { + type: "string" + } +}; + +/* harmony default export */ __webpack_exports__["a"] = (attributes); + +/***/ }), +/* 216 */ +/*!************************************************!*\ + !*** ./src/blocks/social-share-child/links.js ***! + \************************************************/ +/*! exports provided: default */ +/*! exports used: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +var links = { + facebook: "https://www.facebook.com/sharer.php?u=", + twitter: "https://twitter.com/share?url=", + google: "https://plus.google.com/share?url=", + linkedin: "https://www.linkedin.com/shareArticle?url=", + digg: "http://digg.com/submit?url=", + blogger: "https://www.blogger.com/blog_this.pyra?t&u=", + reddit: "https://reddit.com/submit?url=", + stumbleupon: "https://www.stumbleupon.com/submit?url=", + tumblr: "https://www.tumblr.com/widgets/share/tool?canonicalUrl=", + myspace: "https://myspace.com/post?u=", + email: "mailto:?body=", + pinterest: "https://pinterest.com/pin/create/link/?url=", + vk: 'https://vkontakte.ru/share.php?url=', + odnoklassniki: 'https://connect.ok.ru/offer?url=', + pocket: 'https://getpocket.com/edit?url=', + whatsapp: 'https://api.whatsapp.com/send?text=', // whatsapp://send?text=*{title}*\n{text}\n{url}',//https://api.whatsapp.com/send?text=textToshare + xing: 'https://www.xing.com/app/user?op=share&url=', + telegram: 'https://telegram.me/share/url?url=', + skype: 'https://web.skype.com/share?url=', + buffer: 'https://buffer.com/add?url=' +}; + +/* harmony default export */ __webpack_exports__["a"] = (links); + +/***/ }), +/* 217 */ +/*!********************************************!*\ + !*** ./src/blocks/icon-list/attributes.js ***! + \********************************************/ +/*! exports provided: default */ +/*! exports used: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/** + * BLOCK: Icon List - Attributes + */ + +var ITEM_COUNT = 1; + +var icons = []; + +for (var i = 1; i <= ITEM_COUNT; i++) { + icons.push({ + "label": "#Label", + "image_icon": "icon", + "icon": "fab fa-arrow-circle-right", + "image": "", + "icon_color": "#3a3a3a", + "label_color": "", + "icon_hover_color": "", + "label_hover_color": "", + "icon_bg_color": "", + "icon_bg_hover_color": "", + "icon_border_color": "", + "icon_border_hover_color": "", + "link": "#", + "target": false, + "disableLink": true, + "hideLabel": false + }); +} + +var attributes = { + block_id: { + type: "string" }, - rightMarginMobile: { - type: "number", - default: "" + classMigrate: { + type: "boolean", + default: false }, - colWidth: { - type: "number", - default: "" + childMigrate: { + type: "boolean", + default: false }, - colWidthTablet: { - type: "number", - default: "" + align: { + type: "string", + default: "left" }, - colWidthMobile: { + icon_count: { type: "number", - default: "" + default: ITEM_COUNT }, - backgroundType: { - type: "string" + icons: { + type: "array", + default: icons }, - backgroundImage: { - type: "object" + gap: { + type: "number", + default: 10 }, - backgroundPosition: { - type: "string", - default: "center-center" + inner_gap: { + type: "number", + default: 15 }, - backgroundSize: { + iconPosition: { type: "string", - default: "cover" + default: "middle" }, - backgroundRepeat: { - type: "string", - default: "no-repeat" + size: { + type: "number", + default: 16 }, - backgroundAttachment: { + sizeType: { type: "string", - default: "scroll" - }, - backgroundColor: { - type: "string" - }, - gradientColor1: { - type: "string" + default: "px" }, - gradientColor2: { - type: "string" + sizeMobile: { + type: "number" }, - gradientType: { - type: "string", - default: "linear" + sizeTablet: { + type: "number" }, - gradientLocation1: { + bgSize: { type: "number", default: 0 }, - gradientLocation2: { + border: { type: "number", - default: 100 + default: 0 }, - gradientAngle: { + borderRadius: { type: "number", default: 0 }, - backgroundOpacity: { - type: "number" + hideLabel: { + type: "boolean", + default: false }, - backgroundImageColor: { - type: "string" + fontSize: { + type: "number" }, - borderStyle: { + fontSizeType: { type: "string", - default: "none" - }, - borderWidth: { - type: "number", - default: 1 + default: "px" }, - borderRadius: { + fontSizeMobile: { type: "number" }, - borderColor: { - type: "string" + fontSizeTablet: { + type: "number" }, - overlayType: { + fontFamily: { type: "string", - default: "color" + default: "Default" }, - gradientOverlayColor1: { + fontWeight: { type: "string" }, - gradientOverlayColor2: { + fontSubset: { type: "string" }, - gradientOverlayType: { - type: "string", - default: "linear" - }, - gradientOverlayLocation1: { - type: "number", - default: 0 - }, - gradientOverlayLocation2: { - type: "number", - default: 100 - }, - gradientOverlayAngle: { - type: "number", - default: 0 - }, - mobileMarginType: { + lineHeightType: { type: "string", - default: 'px' + default: "em" }, - tabletMarginType: { - type: "string", - default: 'px' + lineHeight: { + type: "number" }, - desktopMarginType: { - type: "string", - default: 'px' + lineHeightTablet: { + type: "number" }, - mobilePaddingType: { - type: "string", - default: 'px' + lineHeightMobile: { + type: "number" }, - tabletPaddingType: { - type: "string", - default: 'px' + loadGoogleFonts: { + type: "boolean", + default: false }, - desktopPaddingType: { + icon_layout: { type: "string", - default: 'px' + default: "vertical" }, - gradientValue: { + stack: { type: "string", - default: "" + default: "none" } }; /* harmony default export */ __webpack_exports__["a"] = (attributes); /***/ }), -/* 176 */ -/*!******************************************!*\ - !*** ./src/blocks/columns/attributes.js ***! - \******************************************/ +/* 218 */ +/*!**************************************************!*\ + !*** ./src/blocks/icon-list-child/attributes.js ***! + \**************************************************/ /*! exports provided: default */ /*! exports used: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /** - * BLOCK: Columns - Attributes + * BLOCK: Icon List Child - Attributes */ var attributes = { block_id: { type: "string" }, - classMigrate: { + label: { + type: 'html', + selector: ".uagb-icon-list__label", + default: "#Label" + }, + image_icon: { + type: "string", + default: "icon" + }, + hideLabel: { type: "boolean", default: false }, - columns: { - type: "number", - default: 2 + icon: { + type: "string", + default: "fab fa-arrow-circle-right" }, - align: { - type: "string" + image: { + type: "object" }, - vAlign: { + icon_color: { + type: "string", + default: "#3a3a3a" + }, + label_color: { type: "string" }, - stack: { - type: "string", - default: "mobile" + icon_hover_color: { + type: "string" }, - columnGap: { - type: "string", - default: "10" + label_hover_color: { + type: "string" }, - topPadding: { - type: "number", - default: 20 + icon_bg_color: { + type: "string" }, - bottomPadding: { - type: "number", - default: 20 + icon_bg_hover_color: { + type: "string" }, - leftPadding: { - type: "number", - default: 20 + icon_border_color: { + type: "string" }, - rightPadding: { + icon_border_hover_color: { + type: "string" + }, + link: { + type: "string", + default: "#" + }, + target: { + type: "boolean", + default: false + }, + disableLink: { + type: "boolean", + default: true + } +}; + +/* harmony default export */ __webpack_exports__["a"] = (attributes); + +/***/ }), +/* 219 */ +/*!*********************************************!*\ + !*** ./src/blocks/price-list/attributes.js ***! + \*********************************************/ +/*! exports provided: default */ +/*! exports used: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/** + * BLOCK: Price List - Attributes + */ +var __ = wp.i18n.__; + +var ITEM_COUNT = 4; + +var rest_menu_block = []; + +for (var i = 1; i <= ITEM_COUNT; i++) { + var desc_text = __("Lorem ipsum dolor sit amet, consectetur adipiscing elit."); + var title_text = __("Menu Item " + i); + var price_text = __("$9"); + rest_menu_block.push({ + "description": desc_text, + "title": title_text, + "price": price_text, + "image": "" + }); +} + +var attributes = { + classMigrate: { + type: "boolean", + default: false + }, + childMigrate: { + type: "boolean", + default: false + }, + menu_item_count: { type: "number", - default: 20 + default: ITEM_COUNT }, - topPaddingTablet: { - type: "number" + rest_menu_item_arr: { + type: "array", + default: rest_menu_block }, - bottomPaddingTablet: { - type: "number" + headingAlign: { + type: "string", + default: "left" }, - leftPaddingTablet: { - type: "number" + priceSpace: { + type: "number", + default: 5 }, - rightPaddingTablet: { - type: "number" + descSpace: { + type: "number", + default: 15 }, - topPaddingMobile: { - type: "number" + titleSpace: { + type: "number", + default: 10 }, - bottomPaddingMobile: { - type: "number" + block_id: { + type: "string", + default: "not_set" }, - leftPaddingMobile: { - type: "number" + imgVrPadding: { + type: "number", + default: 0 }, - rightPaddingMobile: { - type: "number" + imgHrPadding: { + type: "number", + default: 0 }, - topMargin: { + imgTopPadding: { type: "number", default: 0 }, - bottomMargin: { + imgBottomPadding: { type: "number", default: 0 }, - topMarginMobile: { - type: "number" + columns: { + type: "number", + default: 2 }, - bottomMarginMobile: { - type: "number" + tcolumns: { + type: "number", + default: 2 }, - topMarginTablet: { - type: "number" + mcolumns: { + type: "number", + default: 1 }, - bottomMarginTablet: { - type: "number" + rowGap: { + type: "number", + default: 10 }, - contentWidth: { - type: "string", - default: "theme" + columnGap: { + type: "number", + default: 10 }, - width: { + contentVrPadding: { type: "number", - default: 900 + default: 5 }, - widthType: { + contentHrPadding: { + type: "number", + default: 5 + }, + + stack: { type: "string", - default: "px" + default: "tablet" }, - tag: { + seperatorStyle: { type: "string", - default: "section" + default: "dashed" }, - backgroundType: { - type: "string" + seperatorWidth: { + type: "number", + default: "100" }, - backgroundImage: { - type: "object" + seperatorThickness: { + type: "number", + default: "1" }, - backgroundPosition: { + seperatorColor: { type: "string", - default: "center-center" + default: "#b2b4b5" }, - backgroundSize: { + descColor: { type: "string", - default: "cover" + default: "#333" }, - backgroundRepeat: { + priceColor: { type: "string", - default: "no-repeat" + default: "#888888" }, - backgroundAttachment: { + titleColor: { type: "string", - default: "scroll" + default: "#333" }, - backgroundVideo: { - type: "object" + titleFontSizeType: { + type: "string", + default: "px" }, - backgroundColor: { - type: "string" + titleFontSize: { + type: "number" }, - gradientColor1: { - type: "string" + titleFontSizeTablet: { + type: "number" }, - gradientColor2: { - type: "string" + titleFontSizeMobile: { + type: "number" }, - gradientType: { + titleFontFamily: { type: "string", - default: "linear" - }, - gradientLocation1: { - type: "number", - default: 0 + default: "Default" }, - gradientLocation2: { - type: "number", - default: 100 + titleFontWeight: { + type: "string" }, - gradientAngle: { - type: "number", - default: 0 + titleFontSubset: { + type: "string" }, - gradientPosition: { + titleLineHeightType: { type: "string", - default: "center center" + default: "em" }, - backgroundOpacity: { + titleLineHeight: { type: "number" }, - backgroundVideoOpacity: { - type: "number", - default: 50 + titleLineHeightTablet: { + type: "number" }, - backgroundVideoColor: { - type: "string" + titleLineHeightMobile: { + type: "number" }, - backgroundImageColor: { - type: "string" + titleLoadGoogleFonts: { + type: "boolean", + default: false }, - borderStyle: { + + priceFontSizeType: { type: "string", - default: "none" + default: "px" }, - borderWidth: { - type: "number", - default: 1 + priceFontSize: { + type: "number" }, - borderRadius: { + priceFontSizeTablet: { type: "number" }, - borderColor: { - type: "string" + priceFontSizeMobile: { + type: "number" }, - bottomType: { + priceFontFamily: { type: "string", - default: "none" + default: "Default" }, - bottomColor: { + priceFontWeight: { type: "string" }, - bottomHeight: { - type: "number" + priceFontSubset: { + type: "string" }, - bottomHeightTablet: { - type: "number" + priceLineHeightType: { + type: "string", + default: "em" }, - bottomHeightMobile: { + priceLineHeight: { type: "number" }, - bottomWidth: { + priceLineHeightTablet: { type: "number" }, - topType: { - type: "string", - default: "none" + priceLineHeightMobile: { + type: "number" }, - topColor: { - type: "string" + priceLoadGoogleFonts: { + type: "boolean", + default: false }, - topHeight: { - type: "number" + + descFontSizeType: { + type: "string", + default: "px" }, - topHeightTablet: { + descFontSize: { type: "number" }, - topHeightMobile: { + descFontSizeTablet: { type: "number" }, - topWidth: { + descFontSizeMobile: { type: "number" }, - topFlip: { - type: "boolean", - default: false + descFontFamily: { + type: "string", + default: "Default" }, - bottomFlip: { - type: "boolean", - default: false + descFontWeight: { + type: "string" }, - reverseTablet: { - type: "boolean", - default: false + descFontSubset: { + type: "string" }, - reverseMobile: { - type: "boolean", - default: false + descLineHeightType: { + type: "string", + default: "em" }, - topDividerOpacity: { - type: "number", - default: 100 + descLineHeight: { + type: "number" }, - bottomDividerOpacity: { - type: "number", - default: 100 + descLineHeightTablet: { + type: "number" }, - topContentAboveShape: { - type: "boolean", - default: false + descLineHeightMobile: { + type: "number" }, - bottomContentAboveShape: { + descLoadGoogleFonts: { type: "boolean", default: false }, - mobileMarginType: { - type: "string", - default: 'px' - }, - tabletMarginType: { - type: "string", - default: 'px' - }, - desktopMarginType: { + headingTag: { type: "string", - default: 'px' + default: "h4" }, - mobilePaddingType: { + imagePosition: { type: "string", - default: 'px' + default: "top" }, - tabletPaddingType: { + imageAlignment: { type: "string", - default: 'px' + default: "top" }, - desktopPaddingType: { + imageSize: { type: "string", - default: 'px' - }, - boxShadowColor: { - type: "string" - }, - boxShadowHOffset: { - type: "number", - default: 0 + default: "medium" }, - boxShadowVOffset: { + imageWidth: { type: "number", - default: 0 - }, - boxShadowBlur: { - type: "number" - }, - boxShadowSpread: { - type: "number" - }, - boxShadowPosition: { - type: "string", - default: "outset" - }, - gradientValue: { - type: "string", default: "" } - }; /* harmony default export */ __webpack_exports__["a"] = (attributes); /***/ }), -/* 177 */ -/*!*************************************!*\ - !*** ./src/blocks/columns/icons.js ***! - \*************************************/ +/* 220 */ +/*!************************************************************!*\ + !*** ./src/blocks/timeline/content-timeline/attributes.js ***! + \************************************************************/ /*! exports provided: default */ /*! exports used: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /** - * WordPress dependencies + * BLOCK: UAGB Timeline Attributes */ -var _wp$components = wp.components, - Path = _wp$components.Path, - SVG = _wp$components.SVG, - G = _wp$components.G; -/** - * Custom icons - */ +var __ = wp.i18n.__; -var rowIcons = {}; -rowIcons.colOne = wp.element.createElement( - SVG, - { className: "dashicon", height: "26", viewBox: "0 0 50 26", width: "50", xmlns: "http://www.w3.org/2000/svg" }, - wp.element.createElement(Path, { d: "m48.0833333 0h-46.16666663c-1.05416667 0-1.91666667.9-1.91666667 2v22c0 1.1.8625 2 1.91666667 2h46.16666663c1.0541667 0 1.9166667-.9 1.9166667-2v-22c0-1.1-.8625-2-1.9166667-2zm0 24h-46.16666663v-22h46.16666663z" }) -); +var ITEM_COUNT = 5; -rowIcons.layout5050 = wp.element.createElement( - SVG, - { className: "dashicon", height: "26", viewBox: "0 0 50 26", width: "50", xmlns: "http://www.w3.org/2000/svg" }, - wp.element.createElement( - G, - { fillRule: "evenodd" }, - wp.element.createElement(Path, { d: "m48.0833333 0h-46.16666663c-1.05416667 0-1.91666667.9-1.91666667 2v22c0 1.1.8625 2 1.91666667 2h46.16666663c1.0541667 0 1.9166667-.9 1.9166667-2v-22c0-1.1-.8625-2-1.9166667-2zm0 24h-46.16666663v-22h46.16666663z", fillRule: "nonzero" }), - wp.element.createElement(Path, { d: "m24 2h2v22h-2z" }) - ) -); +var item = []; +var date_arr = []; -rowIcons.layout502525 = wp.element.createElement( - SVG, - { className: "dashicon", height: "26", viewBox: "0 0 50 26", width: "50", xmlns: "http://www.w3.org/2000/svg" }, - wp.element.createElement( - G, - { fillRule: "evenodd" }, - wp.element.createElement(Path, { d: "m48.0833333 0h-46.16666663c-1.05416667 0-1.91666667.9-1.91666667 2v22c0 1.1.8625 2 1.91666667 2h46.16666663c1.0541667 0 1.9166667-.9 1.9166667-2v-22c0-1.1-.8625-2-1.9166667-2zm0 24h-46.16666663v-22h46.16666663z", fillRule: "nonzero" }), - wp.element.createElement(Path, { d: "m36 2h2v22h-2z" }), - wp.element.createElement(Path, { d: "m24 2h2v22h-2z" }) - ) -); +for (var i = 1; i <= ITEM_COUNT; i++) { -rowIcons.layout25252525 = wp.element.createElement( - SVG, - { className: "dashicon", height: "26", viewBox: "0 0 50 26", width: "50", xmlns: "http://www.w3.org/2000/svg" }, - wp.element.createElement( - G, - { fillRule: "evenodd" }, - wp.element.createElement(Path, { d: "m48.0833333 0h-46.16666663c-1.05416667 0-1.91666667.9-1.91666667 2v22c0 1.1.8625 2 1.91666667 2h46.16666663c1.0541667 0 1.9166667-.9 1.9166667-2v-22c0-1.1-.8625-2-1.9166667-2zm0 24h-46.16666663v-22h46.16666663z", fillRule: "nonzero" }), - wp.element.createElement(Path, { d: "m12 2h2v22h-2z" }), - wp.element.createElement(Path, { d: "m24 2h2v22h-2z" }), - wp.element.createElement(Path, { d: "m36 2h2v22h-2z" }) - ) -); + item.push({ + "time_heading": __("Timeline Heading ", 'ultimate-addons-for-gutenberg') + i, + "time_desc": __("This is Timeline description, you can change me anytime click here ", 'ultimate-addons-for-gutenberg') + }); -rowIcons.layout3366 = wp.element.createElement( - SVG, - { width: "48", height: "48", viewBox: "0 0 48 48", xmlns: "http://www.w3.org/2000/svg" }, - wp.element.createElement(Path, { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H20V34H39ZM18 34H9V14H18V34Z" - }) -); + var j = i - 1; + var today = new Date("1/1/2019"); + var dd = today.getDate(); + var mm = today.getMonth() + 1; //January is 0! + var yyyy = today.getFullYear() - j; -rowIcons.layout6633 = wp.element.createElement( - SVG, - { - width: "48", - height: "48", - viewBox: "0 0 48 48", - xmlns: "http://www.w3.org/2000/svg" - }, - wp.element.createElement(Path, { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H30V34H39ZM28 34H9V14H28V34Z" - }) -); + if (dd < 10) { + dd = "0" + dd; + } -rowIcons.layout333333 = wp.element.createElement( - SVG, - { - width: "48", - height: "48", - viewBox: "0 0 48 48", - xmlns: "http://www.w3.org/2000/svg" - }, - wp.element.createElement(Path, { - fillRule: "evenodd", - d: "M41 14a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2V14zM28.5 34h-9V14h9v20zm2 0V14H39v20h-8.5zm-13 0H9V14h8.5v20z" - }) -); + if (mm < 10) { + mm = "0" + mm; + } -rowIcons.layout255025 = wp.element.createElement( - SVG, - { - width: "48", - height: "48", - viewBox: "0 0 48 48", - xmlns: "http://www.w3.org/2000/svg" - }, - wp.element.createElement(Path, { - fillRule: "evenodd", - d: "M41 14a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2V14zM31 34H17V14h14v20zm2 0V14h6v20h-6zm-18 0H9V14h6v20z" - }) -); + today = mm + "/" + dd + "/" + yyyy; + var p = { "title": today }; -/* harmony default export */ __webpack_exports__["a"] = (rowIcons); - -/***/ }), -/* 178 */ -/*!*********************************************!*\ - !*** ./src/blocks/blockquote/attributes.js ***! - \*********************************************/ -/*! exports provided: default */ -/*! exports used: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/** - * BLOCK: UAGB Quote Block Attributes - */ + date_arr.push({ + "title": today + }); +} var attributes = { - block_id: { + content_class: { type: "string" }, + tm_content: { + type: "array", + default: item + }, classMigrate: { type: "boolean", default: false }, - skinStyle: { + childMigrate: { + type: "boolean", + default: false + }, + dateFormat: { type: "string", - default: "border" + default: "F j, Y" }, align: { type: "string", - default: "left" + default: "center" }, - descriptionText: { - selector: "div.uagb-blockquote__content", - default: "Click here to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo." + headingColor: { + type: "string" }, - descColor: { + subHeadingColor: { type: "string" }, - descFontSize: { + separatorBg: { + type: "string", + default: "#eee" + }, + backgroundColor: { + type: "string", + default: "#eee" + }, + separatorColor: { + type: "string", + default: "#eee" + }, + separatorFillColor: { + type: "string", + default: "#61ce70" + }, + separatorBorder: { + type: "string", + default: "#eee" + }, + borderFocus: { + type: "string", + default: "#5cb85c" + }, + headingTag: { + type: "string", + default: "h4" + }, + horizontalSpace: { + type: "number", + default: 10 + }, + verticalSpace: { + type: "number", + default: 15 + }, + headFontSize: { type: "number" }, - descFontSizeType: { + headFontSizeType: { type: "string", default: "px" }, - descFontSizeTablet: { + headFontSizeTablet: { type: "number" }, - descFontSizeMobile: { + headFontSizeMobile: { type: "number" }, - descFontFamily: { + headFontFamily: { type: "string", default: "Default" }, - descFontWeight: { + headFontWeight: { type: "string" }, - descFontSubset: { + headFontSubset: { type: "string" }, - descLineHeightType: { + headLineHeightType: { type: "string", default: "em" }, - descLineHeight: { + headLineHeight: { type: "number" }, - descLineHeightTablet: { + headLineHeightTablet: { type: "number" }, - descLineHeightMobile: { + headLineHeightMobile: { type: "number" }, - descLoadGoogleFonts: { + headLoadGoogleFonts: { type: "boolean", default: false }, - descSpace: { - type: "number", - default: 20 - }, - author: { - selector: ".uagb-blockquote__author", - default: "Author" - }, - authorColor: { + timelinAlignment: { type: "string", - default: "#888888" + default: "center" }, - authorFontSize: { - type: "number" + arrowlinAlignment: { + type: "string", + default: "center" }, - authorFontSizeType: { + subHeadFontSizeType: { type: "string", default: "px" }, - authorFontSizeTablet: { + subHeadFontSize: { type: "number" }, - authorFontSizeMobile: { + subHeadFontSizeTablet: { type: "number" }, - authorFontFamily: { + subHeadFontSizeMobile: { + type: "number" + }, + subHeadFontFamily: { type: "string", default: "Default" }, - authorFontWeight: { + subHeadFontWeight: { type: "string" }, - authorFontSubset: { + subHeadFontSubset: { type: "string" }, - authorLineHeightType: { + subHeadLineHeightType: { type: "string", default: "em" }, - authorLineHeight: { + subHeadLineHeight: { type: "number" }, - authorLineHeightTablet: { + subHeadLineHeightTablet: { type: "number" }, - authorLineHeightMobile: { + subHeadLineHeightMobile: { type: "number" }, - authorLoadGoogleFonts: { + subHeadLoadGoogleFonts: { type: "boolean", default: false }, - authorSpace: { + headSpace: { type: "number", - default: 10 - }, - authorImage: { - type: "object", - default: { - "url": "", - "alt": "Author Image" - } - }, - authorImageSize: { - type: "string", - default: "thumbnail" + default: 5 }, - authorImageWidth: { + separatorwidth: { type: "number", - default: 40 + default: 3 }, - authorImgBorderRadius: { + borderwidth: { type: "number", - default: 100 - }, - authorImgPosition: { - type: "string", - default: "left" - }, - stack: { - type: "string", - default: "none" - }, - enableTweet: { - type: "boolean", - default: true - }, - iconView: { - type: "string", - default: "icon_text" - }, - iconSkin: { - type: "string", - default: "classic" - }, - iconLabel: { - type: "string", - default: "Tweet" - }, - iconShareVia: { - type: "string", - default: "" - }, - iconTargetUrl: { - type: "string", - default: "current" - }, - customUrl: { - type: "string" + default: 0 }, - tweetLinkColor: { + iconColor: { type: "string", - default: "#1DA1F2" + default: "#333" }, - tweetBtnColor: { + iconFocus: { type: "string", default: "#fff" }, - tweetBtnBgColor: { + iconBgFocus: { type: "string", - default: "#1DA1F2" - }, - tweetBtnHoverColor: { - type: "string" + default: "#61ce70" }, - tweetBtnBgHoverColor: { + dateColor: { type: "string", - default: "#1DA1F2" - }, - tweetBtnFontSize: { - type: "number", - default: 15 + default: "#333" }, - tweetBtnFontSizeType: { + dateFontsizeType: { type: "string", default: "px" }, - tweetBtnFontSizeTablet: { + dateFontsize: { type: "number" }, - tweetBtnFontSizeMobile: { + dateFontsizeTablet: { type: "number" }, - tweetBtnFontFamily: { + dateFontsizeMobile: { + type: "number" + }, + dateFontFamily: { type: "string", default: "Default" }, - tweetBtnFontWeight: { + dateFontWeight: { type: "string" }, - tweetBtnFontSubset: { + dateFontSubset: { type: "string" }, - tweetBtnLineHeightType: { + dateLineHeightType: { type: "string", default: "em" }, - tweetBtnLineHeight: { + dateLineHeight: { type: "number" }, - tweetBtnLineHeightTablet: { + dateLineHeightTablet: { type: "number" }, - tweetBtnLineHeightMobile: { + dateLineHeightMobile: { type: "number" }, - tweetBtnLoadGoogleFonts: { + dateLoadGoogleFonts: { type: "boolean", default: false }, - tweetBtnHrPadding: { + connectorBgsize: { type: "number", - default: 10 + default: 35 }, - tweetBtnVrPadding: { + subHeadSpace: { type: "number", - default: 10 + default: 5 }, - tweetIconSpacing: { + dateBottomspace: { type: "number", - default: 10 - }, - borderColor: { - type: "string", - default: "#abb8c3" + default: 5 }, - borderStyle: { + block_id: { type: "string", - default: "solid" - }, - borderWidth: { - type: "number", - default: 4 + default: "0" }, - borderGap: { + timelineItem: { type: "number", - default: 15 - }, - verticalPadding: { - type: "number" - }, - quoteStyle: { - type: "string", - default: "style_2" + default: ITEM_COUNT }, - quoteColor: { + tm_client_id: { type: "string", - default: "#abb8c3" + default: "not_set" }, - quoteSize: { + borderRadius: { type: "number", - default: 25 - }, - quoteSizeType: { - type: "string", - default: "px" - }, - quoteSizeTablet: { - type: "number" - }, - quoteSizeMobile: { - type: "number" + default: 2 }, - quotePadding: { + bgPadding: { type: "number", - default: 10 - }, - quotePaddingType: { - type: "string", - default: "px" - }, - quotePaddingTablet: { - type: "number" - }, - quotePaddingMobile: { - type: "number" + default: 20 }, - quoteBorderRadius: { + iconSize: { type: "number", - default: 100 + default: 12 }, - quoteBgColor: { + icon: { type: "string", - default: "#333" - }, - quoteTopMargin: { - type: "number" - }, - quoteBottomMargin: { - type: "number" + default: "fab fa fa-calendar-alt" }, - quoteLeftMargin: { - type: "number" - }, - quoteRightMargin: { - type: "number", - default: 20 - }, - quoteHoverColor: { - type: "string" + t_date: { + type: "array", + default: date_arr }, - quoteBgHoverColor: { - type: "string" + displayPostDate: { + type: "boolean", + default: true }, - borderHoverColor: { - type: "string" + stack: { + type: "string", + default: "tablet" } }; /* harmony default export */ __webpack_exports__["a"] = (attributes); /***/ }), -/* 179 */ -/*!***************************************************!*\ - !*** ./src/blocks/marketing-button/attributes.js ***! - \***************************************************/ +/* 221 */ +/*!**********************************************!*\ + !*** ./src/blocks/timeline/inline-styles.js ***! + \**********************************************/ /*! exports provided: default */ /*! exports used: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -var __ = wp.i18n.__; - - -var attributes = { - block_id: { - type: "string" - }, - classMigrate: { - type: "boolean", - default: false - }, - align: { - type: "string", - default: "center" - }, - textAlign: { - type: "string", - default: "center" - }, - link: { - type: "string", - default: "#" - }, - linkTarget: { - type: "boolean", - default: false - }, - titleSpace: { - type: "number", - default: 0 - }, - - // Border - borderStyle: { - type: "string", - default: "solid" - }, - borderWidth: { - type: "number", - default: 1 - }, - borderRadius: { - type: "number" - }, - borderColor: { - type: "string", - default: "#333" - }, - borderHoverColor: { - type: "string" - }, - - // Background - vPadding: { - type: "number", - default: 8 - }, - hPadding: { - type: "number", - default: 20 - }, - vPaddingTablet: { - type: "number" - }, - hPaddingTablet: { - type: "number" - }, - vPaddingMobile: { - type: "number" - }, - hPaddingMobile: { - type: "number" - }, - paddingType: { - type: "string", - default: "px" - }, - backgroundType: { - type: "string", - default: "color" - }, - backgroundColor: { - type: "string", - default: "#eeeeee" - }, - backgroundHoverColor: { - type: "string" - }, - gradientColor1: { - type: "string" - }, - gradientColor2: { - type: "string" - }, - gradientType: { - type: "string", - default: "linear" - }, - gradientLocation1: { - type: "number", - default: 0 - }, - gradientLocation2: { - type: "number", - default: 100 - }, - gradientAngle: { - type: "number", - default: 0 - }, - backgroundOpacity: { - type: "number" - }, - backgroundHoverOpacity: { - type: "number" - }, +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSS__ = __webpack_require__(/*! ../../../dist/blocks/uagb-controls/generateCSS */ 4); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__ = __webpack_require__(/*! ../../../dist/blocks/uagb-controls/generateCSSUnit */ 3); +/** + * Returns Dynamic Generated CSS + */ - //Colors - titleColor: { - type: "string", - default: "#333" - }, - titleHoverColor: { - type: "string" - }, - iconColor: { - type: "string", - default: "#333" - }, - iconHoverColor: { - type: "string" - }, - prefixColor: { - type: "string", - default: "#333" - }, - prefixHoverColor: { - type: "string" - }, - // Label and Sub Label - heading: { - source: "html", - selector: "h1,h2,h3,h4,h5,h6,p,span", - default: "Subscribe Now" - }, - prefix: { - source: "html", - selector: "p", - default: "Get access to Premium Features for FREE for a year!" - }, - // Icon attributes - icon: { - type: "string", - default: "external-link-alt" - }, - iconPosition: { - type: "string", - default: "before" - }, - iconSpace: { - type: "number", - default: 10 - }, - // Typography - // Title Font Family - titleLoadGoogleFonts: { - type: "boolean", - default: false - }, - titleFontFamily: { - type: "string", - default: "Default" - }, - titleFontWeight: { - type: "string" - }, - titleFontSubset: { - type: "string" - }, - // Title Font Size - titleFontSize: { - type: "number", - default: 20 - }, - titleFontSizeType: { - type: "string", - default: "px" - }, - titleFontSizeTablet: { - type: "number", - default: 20 - }, - titleFontSizeMobile: { - type: "number", - default: 20 - }, - // Title Line Height - titleLineHeightType: { - type: "string", - default: "em" - }, - titleLineHeight: { - type: "number" - }, - titleLineHeightTablet: { - type: "number" - }, - titleLineHeightMobile: { - type: "number" - }, - titleTag: { - type: "string", - default: "h6" - }, - // Prefix Font Family - prefixLoadGoogleFonts: { - type: "boolean", - default: false - }, - prefixFontFamily: { - type: "string", - default: "Default" - }, - prefixFontWeight: { - type: "string" - }, - prefixFontSubset: { - type: "string" - }, - // Prefix Font Size - prefixFontSize: { - type: "number", - default: 14 - }, - prefixFontSizeType: { - type: "string", - default: "px" - }, - prefixFontSizeTablet: { - type: "number", - default: 14 - }, - prefixFontSizeMobile: { - type: "number", - default: 14 - }, - // Prefix Line Height - prefixLineHeightType: { - type: "string", - default: "em" - }, - prefixLineHeight: { - type: "number" - }, - prefixLineHeightTablet: { - type: "number" - }, - prefixLineHeightMobile: { - type: "number" - }, - // Icon Font Size - iconFontSize: { - type: "number", - default: 20 - }, - iconFontSizeType: { - type: "string", - default: "px" - }, - iconFontSizeTablet: { - type: "number", - default: 20 - }, - iconFontSizeMobile: { - type: "number", - default: 20 +function contentTimelineStyle(props) { + var _props$attributes = props.attributes, + dateBottomspace = _props$attributes.dateBottomspace, + backgroundColor = _props$attributes.backgroundColor, + separatorColor = _props$attributes.separatorColor, + separatorFillColor = _props$attributes.separatorFillColor, + separatorBg = _props$attributes.separatorBg, + separatorBorder = _props$attributes.separatorBorder, + borderFocus = _props$attributes.borderFocus, + verticalSpace = _props$attributes.verticalSpace, + horizontalSpace = _props$attributes.horizontalSpace, + separatorwidth = _props$attributes.separatorwidth, + borderwidth = _props$attributes.borderwidth, + connectorBgsize = _props$attributes.connectorBgsize, + borderRadius = _props$attributes.borderRadius, + bgPadding = _props$attributes.bgPadding, + width = _props$attributes.width, + readMoreText = _props$attributes.readMoreText, + icon = _props$attributes.icon, + iconColor = _props$attributes.iconColor, + dateFontsizeType = _props$attributes.dateFontsizeType, + dateFontsize = _props$attributes.dateFontsize, + dateFontsizeTablet = _props$attributes.dateFontsizeTablet, + dateFontsizeMobile = _props$attributes.dateFontsizeMobile, + dateFontFamily = _props$attributes.dateFontFamily, + dateFontWeight = _props$attributes.dateFontWeight, + dateFontSubset = _props$attributes.dateFontSubset, + dateLineHeightType = _props$attributes.dateLineHeightType, + dateLineHeight = _props$attributes.dateLineHeight, + dateLineHeightTablet = _props$attributes.dateLineHeightTablet, + dateLineHeightMobile = _props$attributes.dateLineHeightMobile, + dateLoadGoogleFonts = _props$attributes.dateLoadGoogleFonts, + dateColor = _props$attributes.dateColor, + iconSize = _props$attributes.iconSize, + iconFocus = _props$attributes.iconFocus, + iconBgFocus = _props$attributes.iconBgFocus, + block_id = _props$attributes.block_id, + headFontSizeType = _props$attributes.headFontSizeType, + headFontSize = _props$attributes.headFontSize, + headFontSizeTablet = _props$attributes.headFontSizeTablet, + headFontSizeMobile = _props$attributes.headFontSizeMobile, + headFontFamily = _props$attributes.headFontFamily, + headFontWeight = _props$attributes.headFontWeight, + headFontSubset = _props$attributes.headFontSubset, + headLineHeightType = _props$attributes.headLineHeightType, + headLineHeight = _props$attributes.headLineHeight, + headLineHeightTablet = _props$attributes.headLineHeightTablet, + headLineHeightMobile = _props$attributes.headLineHeightMobile, + headLoadGoogleFonts = _props$attributes.headLoadGoogleFonts, + align = _props$attributes.align, + headingColor = _props$attributes.headingColor, + headSpace = _props$attributes.headSpace, + subHeadFontSizeType = _props$attributes.subHeadFontSizeType, + subHeadFontSize = _props$attributes.subHeadFontSize, + subHeadFontSizeTablet = _props$attributes.subHeadFontSizeTablet, + subHeadFontSizeMobile = _props$attributes.subHeadFontSizeMobile, + subHeadFontFamily = _props$attributes.subHeadFontFamily, + subHeadFontWeight = _props$attributes.subHeadFontWeight, + subHeadFontSubset = _props$attributes.subHeadFontSubset, + subHeadLineHeightType = _props$attributes.subHeadLineHeightType, + subHeadLineHeight = _props$attributes.subHeadLineHeight, + subHeadLineHeightTablet = _props$attributes.subHeadLineHeightTablet, + subHeadLineHeightMobile = _props$attributes.subHeadLineHeightMobile, + subHeadLoadGoogleFonts = _props$attributes.subHeadLoadGoogleFonts, + subHeadingColor = _props$attributes.subHeadingColor, + authorSpace = _props$attributes.authorSpace, + authorColor = _props$attributes.authorColor, + authorFontSizeType = _props$attributes.authorFontSizeType, + authorFontSize = _props$attributes.authorFontSize, + authorFontSizeTablet = _props$attributes.authorFontSizeTablet, + authorFontSizeMobile = _props$attributes.authorFontSizeMobile, + authorFontFamily = _props$attributes.authorFontFamily, + authorFontWeight = _props$attributes.authorFontWeight, + authorFontSubset = _props$attributes.authorFontSubset, + authorLineHeightType = _props$attributes.authorLineHeightType, + authorLineHeight = _props$attributes.authorLineHeight, + authorLineHeightTablet = _props$attributes.authorLineHeightTablet, + authorLineHeightMobile = _props$attributes.authorLineHeightMobile, + authorLoadGoogleFonts = _props$attributes.authorLoadGoogleFonts, + ctaColor = _props$attributes.ctaColor, + ctaFontSizeType = _props$attributes.ctaFontSizeType, + ctaFontSize = _props$attributes.ctaFontSize, + ctaFontSizeTablet = _props$attributes.ctaFontSizeTablet, + ctaFontSizeMobile = _props$attributes.ctaFontSizeMobile, + ctaFontFamily = _props$attributes.ctaFontFamily, + ctaFontWeight = _props$attributes.ctaFontWeight, + ctaFontSubset = _props$attributes.ctaFontSubset, + ctaLineHeightType = _props$attributes.ctaLineHeightType, + ctaLineHeight = _props$attributes.ctaLineHeight, + ctaLineHeightTablet = _props$attributes.ctaLineHeightTablet, + ctaLineHeightMobile = _props$attributes.ctaLineHeightMobile, + ctaLoadGoogleFonts = _props$attributes.ctaLoadGoogleFonts, + ctaBackground = _props$attributes.ctaBackground; + + + var resp_selectors = "left"; + + var selectors = { + " .uagb-timeline__heading": { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headFontSize, headFontSizeType), + "font-family": headFontFamily, + "font-weight": headFontWeight, + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headLineHeight, headLineHeightType), + "text-align": align, + "color": headingColor + }, + " .uagb-timeline__heading a": { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headFontSize, headFontSizeType), + "font-family": headFontFamily, + "font-weight": headFontWeight, + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headLineHeight, headLineHeightType), + "text-align": align, + "color": headingColor + }, + " .uagb-timeline__heading-text": { + "margin-bottom": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headSpace, "px") + }, + " .uagb-timeline-desc-content": { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(subHeadFontSize, subHeadFontSizeType), + "font-family": subHeadFontFamily, + "font-weight": subHeadFontWeight, + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(subHeadLineHeight, subHeadLineHeightType), + "text-align": align, + "color": subHeadingColor + }, + " .uagb-timeline__events-new": { + "text-align": align + }, + " .uagb-timeline__date-inner": { + "text-align": align + }, + " .uagb-timeline__center-block .uagb-timeline__day-right .uagb-timeline__arrow:after": { + "border-left-color": backgroundColor + }, + " .uagb-timeline__right-block .uagb-timeline__day-right .uagb-timeline__arrow:after": { + "border-left-color": backgroundColor + }, + " .uagb-timeline__center-block .uagb-timeline__day-left .uagb-timeline__arrow:after": { + "border-right-color": backgroundColor + }, + " .uagb-timeline__left-block .uagb-timeline__day-left .uagb-timeline__arrow:after": { + "border-right-color": backgroundColor + }, + " .uagb-timeline__line__inner": { + "background-color": separatorFillColor + }, + " .uagb-timeline__line": { + "background-color": separatorColor, + "width": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(separatorwidth, "px") + }, + " .uagb-timeline__right-block .uagb-timeline__line": { + "right": "calc( " + connectorBgsize + "px / 2 )" + }, + " .uagb-timeline__left-block .uagb-timeline__line": { + "left": "calc( " + connectorBgsize + "px / 2 )" + }, + " .uagb-timeline__center-block .uagb-timeline__line": { + "right": "calc( " + connectorBgsize + "px / 2 )" + }, + " .uagb-timeline__marker": { + "background-color": separatorBg, + "min-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(connectorBgsize, "px"), + "min-width": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(connectorBgsize, "px"), + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(connectorBgsize, "px"), + "border": borderwidth + "px solid" + separatorBorder + }, + " .uagb-timeline__left-block .uagb-timeline__left .uagb-timeline__arrow": { + "height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(connectorBgsize, "px") + }, + " .uagb-timeline__right-block .uagb-timeline__right .uagb-timeline__arrow": { + "height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(connectorBgsize, "px") + }, + " .uagb-timeline__center-block .uagb-timeline__left .uagb-timeline__arrow": { + "height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(connectorBgsize, "px") + }, + " .uagb-timeline__center-block .uagb-timeline__right .uagb-timeline__arrow": { + "height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(connectorBgsize, "px") + }, + " .uagb-timeline__center-block .uagb-timeline__marker": { + "margin-left": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(horizontalSpace, "px"), + "margin-right": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(horizontalSpace, "px") + }, + " .uagb-timeline__field:not(:last-child)": { + "margin-bottom": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(verticalSpace, "px") + }, + " .uagb-timeline__date-hide.uagb-timeline__date-inner": { + "margin-bottom": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(dateBottomspace, "px"), + "color": dateColor, + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(dateFontsize, dateFontsizeType), + "font-family": dateFontFamily, + "font-weight": dateFontWeight, + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(dateLineHeight, dateLineHeightType), + "text-align": align + }, + " .uagb-timeline__left-block .uagb-timeline__day-new.uagb-timeline__day-left": { + "margin-left": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(horizontalSpace, "px") + }, + " .uagb-timeline__right-block .uagb-timeline__day-new.uagb-timeline__day-right": { + "margin-right": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(horizontalSpace, "px") + }, + " .uagb-timeline__date-new": { + "color": dateColor, + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(dateFontsize, dateFontsizeType), + "font-family": dateFontFamily, + "font-weight": dateFontWeight, + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(dateLineHeight, dateLineHeightType) + }, + " .uagb-timeline__events-inner-new": { + "background-color": backgroundColor, + "border-radius": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(borderRadius, "px"), + "padding": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(bgPadding, "px") + }, + " .uagb-timeline__main .uagb-timeline__icon-new": { + "color": iconColor, + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(iconSize, "px"), + "width": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(iconSize, "px") + }, + " .uagb-timeline__main .uagb-timeline__marker.uagb-timeline__in-view-icon": { + "background": iconBgFocus, + "border-color": borderFocus + }, + " .uagb-timeline__main .uagb-timeline__marker.uagb-timeline__in-view-icon .uagb-timeline__icon-new": { + "color": iconFocus + }, + " .uagb-timeline__main .uagb-timeline__icon-new svg": { + "fill": iconColor + }, + " .uagb-timeline__main .uagb-timeline__marker.uagb-timeline__in-view-icon .uagb-timeline__icon-new svg": { + "fill": iconFocus + }, + + //Author and CTA + " .uagb-timeline__author": { + "margin-bottom": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(authorSpace, "px"), + "text-align": align + }, + " .uagb-timeline__author .dashicons-admin-users": { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(authorFontSize, authorFontSizeType), + "font-weight": authorFontWeight, + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(authorLineHeight, authorLineHeightType), + "color": authorColor + }, + " .uagb-timeline__author-link": { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(authorFontSize, authorFontSizeType), + "font-family": authorFontFamily, + "font-weight": authorFontWeight, + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(authorLineHeight, authorLineHeightType), + "color": authorColor + }, + + " .uagb-timeline__link_parent": { + "text-align": align + }, + " .uagb-timeline__link": { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSize, ctaFontSizeType), + "font-family": ctaFontFamily, + "font-weight": ctaFontWeight, + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaLineHeight, ctaLineHeightType), + "color": ctaColor, + "background-color": ctaBackground + } + + /* Generate Responsive CSS for timeline */ + };var tablet_selectors = { + " .uagb-timeline__date-hide.uagb-timeline__date-inner": { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(dateFontsizeTablet, dateFontsizeType), + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(dateLineHeightTablet, dateLineHeightType) + }, + " .uagb-timeline__date-new": { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(dateFontsizeTablet, dateFontsizeType), + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(dateLineHeightTablet, dateLineHeightType) + }, + " .uagb-timeline__heading": { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headFontSizeTablet, headFontSizeType), + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headLineHeightTablet, headLineHeightType) + }, + " .uagb-timeline__heading a": { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headFontSizeTablet, headFontSizeType), + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headLineHeightTablet, headLineHeightType) + }, + " .uagb-timeline-desc-content": { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(subHeadFontSizeTablet, subHeadFontSizeType), + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(subHeadLineHeightTablet, subHeadLineHeightType) + }, + " .uagb-timeline__center-block .uagb-timeline__marker": { + "margin-left": 0, + "margin-right": 0 + }, + " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__heading": { + "text-align": resp_selectors + }, + " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-desc-content": { + "text-align": resp_selectors + }, + " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__events-new": { + "text-align": resp_selectors + }, + " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__date-inner": { + "text-align": resp_selectors + }, + " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__date-hide.uagb-timeline__date-inner": { + "text-align": resp_selectors + }, + " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-right .uagb-timeline__arrow:after": { + "border-right-color": backgroundColor + }, + " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__line": { + "left": "calc( " + connectorBgsize + "px / 2 )" + }, + " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__author": { + "text-align": resp_selectors + }, + " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__link_parent": { + "text-align": resp_selectors + }, + " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__image a": { + "text-align": resp_selectors + }, + + // CTA AUTHOR. + " .uagb-timeline__author .dashicons-admin-users": { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(authorFontSizeTablet, authorFontSizeType), + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(authorLineHeightTablet, authorLineHeightType) + }, + " .uagb-timeline__author-link": { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(authorFontSizeTablet, authorFontSizeType), + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(authorLineHeightTablet, authorLineHeightType) + }, + " .uagb-timeline__link": { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSizeTablet, ctaFontSizeType), + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaLineHeightTablet, ctaLineHeightType) + } + }; + + var mobile_selectors = { + " .uagb-timeline__date-hide.uagb-timeline__date-inner": { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(dateFontsizeMobile, dateFontsizeType), + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(dateLineHeightMobile, dateLineHeightType) + }, + " .uagb-timeline__date-new": { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(dateFontsizeMobile, dateFontsizeType), + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(dateLineHeightMobile, dateLineHeightType) + }, + " .uagb-timeline__heading": { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headFontSizeMobile, headFontSizeType), + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headLineHeightMobile, headLineHeightType) + }, + " .uagb-timeline__heading a": { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headFontSizeMobile, headFontSizeType), + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headLineHeightMobile, headLineHeightType) + }, + " .uagb-timeline-desc-content": { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(subHeadFontSizeMobile, subHeadFontSizeType), + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(subHeadLineHeightMobile, subHeadLineHeightType) + }, + " .uagb-timeline__center-block .uagb-timeline__marker": { + "margin-left": 0, + "margin-right": 0 + }, + " .uagb-timeline__center-block .uagb-timeline__day-new.uagb-timeline__day-left": { + "margin-left": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(horizontalSpace, "px") + }, + " .uagb-timeline__center-block .uagb-timeline__day-new.uagb-timeline__day-right": { + "margin-left": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(horizontalSpace, "px") + }, + " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__heading": { + "text-align": resp_selectors + }, + " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-desc-content": { + "text-align": resp_selectors + }, + " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__events-new": { + "text-align": resp_selectors + }, + " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__date-inner": { + "text-align": resp_selectors + }, + " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__date-hide.uagb-timeline__date-inner": { + "text-align": resp_selectors + }, + " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-right .uagb-timeline__arrow:after": { + "border-right-color": backgroundColor + }, + " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__line": { + "left": "calc( " + connectorBgsize + "px / 2 )" + }, + " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__author": { + "text-align": resp_selectors + }, + " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__link_parent": { + "text-align": resp_selectors + }, + " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__image a": { + "text-align": resp_selectors + }, + + // CTA AUthor + " .uagb-timeline__author .dashicons-admin-users": { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(authorFontSizeMobile, authorFontSizeType), + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(authorLineHeightMobile, authorLineHeightType) + }, + " .uagb-timeline__author-link": { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(authorFontSizeMobile, authorFontSizeType), + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(authorLineHeightMobile, authorLineHeightType) + }, + " .uagb-timeline__link": { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSizeMobile, ctaFontSizeType), + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaLineHeightMobile, ctaLineHeightType) + } + }; + + var styling_css = ""; + var id = ".block-editor-page #wpwrap .uagb-block-" + props.clientId; + + styling_css = Object(__WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSS__["a" /* default */])(selectors, id); + + styling_css += Object(__WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSS__["a" /* default */])(tablet_selectors, id, true, "tablet"); + + styling_css += Object(__WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSS__["a" /* default */])(mobile_selectors, id, true, "mobile"); + + return styling_css; +} + +/* harmony default export */ __webpack_exports__["a"] = (contentTimelineStyle); + +/***/ }), +/* 222 */ +/*!**********************************************!*\ + !*** ./src/blocks/timeline/align-classes.js ***! + \**********************************************/ +/*! exports provided: default */ +/*! exports used: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/** + * Function name: AlignClass + * @param array attributes settign array of attributes. + * @param int index_val index values. + */ +function AlignClass(attributes, index_val) { + + var align_class = ""; + if ("left" == attributes.timelinAlignment) { + align_class = "uagb-timeline__widget uagb-timeline__left"; + } else if ("right" == attributes.timelinAlignment) { + align_class = "uagb-timeline__widget uagb-timeline__right"; + } else if ("center" == attributes.timelinAlignment) { + if (index_val % 2 == "0") { + align_class = "uagb-timeline__widget uagb-timeline__right"; + } else { + align_class = "uagb-timeline__widget uagb-timeline__left"; + } } -}; -/* harmony default export */ __webpack_exports__["a"] = (attributes); + return [align_class]; +} + +/* harmony default export */ __webpack_exports__["a"] = (AlignClass); /***/ }), -/* 180 */ -/*!****************************************************!*\ - !*** ./src/blocks/table-of-contents/attributes.js ***! - \****************************************************/ +/* 223 */ +/*!**************************************************!*\ + !*** ./src/blocks/timeline/day-align-classes.js ***! + \**************************************************/ /*! exports provided: default */ /*! exports used: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -var __ = wp.i18n.__; +/** + * Returns Dynamic Generated Classes + */ +function DayAlignClass(attributes, index_val) { -var attributes = { - block_id: { - type: "string", - default: "not_set" - }, - classMigrate: { - type: "boolean", - default: false - }, - disableBullets: { - type: "boolean", - default: false - }, - makeCollapsible: { - type: "boolean", - default: false - }, - initialCollapse: { - type: "boolean", - default: false - }, - icon: { - type: "string", - default: "fa-angle-down" - }, - iconSize: { - type: "number" - }, - iconColor: { - type: "string" - }, - bulletColor: { + var day_align_class = ""; + + if ("left" == attributes.timelinAlignment) { + day_align_class = "uagb-timeline__day-new uagb-timeline__day-left"; + } else if ("right" == attributes.timelinAlignment) { + day_align_class = "uagb-timeline__day-new uagb-timeline__day-right"; + } else if ("center" == attributes.timelinAlignment) { + if (index_val % 2 == "0") { + day_align_class = "uagb-timeline__day-new uagb-timeline__day-right"; + } else { + day_align_class = "uagb-timeline__day-new uagb-timeline__day-left"; + } + } + + return [day_align_class]; +} + +/* harmony default export */ __webpack_exports__["a"] = (DayAlignClass); + +/***/ }), +/* 224 */ +/*!*********************************************************!*\ + !*** ./src/blocks/timeline/content-timeline/styling.js ***! + \*********************************************************/ +/*! exports provided: default */ +/*! exports used: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSS__ = __webpack_require__(/*! ../../../../dist/blocks/uagb-controls/generateCSS */ 4); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__ = __webpack_require__(/*! ../../../../dist/blocks/uagb-controls/generateCSSUnit */ 3); +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** + * Returns Dynamic Generated CSS + */ + + + + +function contentTimelineStyle(props) { + var _selectors; + + var _props$attributes = props.attributes, + dateBottomspace = _props$attributes.dateBottomspace, + backgroundColor = _props$attributes.backgroundColor, + separatorColor = _props$attributes.separatorColor, + separatorFillColor = _props$attributes.separatorFillColor, + separatorBg = _props$attributes.separatorBg, + separatorBorder = _props$attributes.separatorBorder, + borderFocus = _props$attributes.borderFocus, + verticalSpace = _props$attributes.verticalSpace, + horizontalSpace = _props$attributes.horizontalSpace, + separatorwidth = _props$attributes.separatorwidth, + borderwidth = _props$attributes.borderwidth, + connectorBgsize = _props$attributes.connectorBgsize, + borderRadius = _props$attributes.borderRadius, + bgPadding = _props$attributes.bgPadding, + iconColor = _props$attributes.iconColor, + dateFontsizeType = _props$attributes.dateFontsizeType, + dateFontsize = _props$attributes.dateFontsize, + dateFontsizeTablet = _props$attributes.dateFontsizeTablet, + dateFontsizeMobile = _props$attributes.dateFontsizeMobile, + dateFontFamily = _props$attributes.dateFontFamily, + dateFontWeight = _props$attributes.dateFontWeight, + dateLineHeightType = _props$attributes.dateLineHeightType, + dateLineHeight = _props$attributes.dateLineHeight, + dateLineHeightTablet = _props$attributes.dateLineHeightTablet, + dateLineHeightMobile = _props$attributes.dateLineHeightMobile, + dateColor = _props$attributes.dateColor, + iconSize = _props$attributes.iconSize, + iconFocus = _props$attributes.iconFocus, + iconBgFocus = _props$attributes.iconBgFocus, + block_id = _props$attributes.block_id, + headFontSizeType = _props$attributes.headFontSizeType, + headFontSize = _props$attributes.headFontSize, + headFontSizeTablet = _props$attributes.headFontSizeTablet, + headFontSizeMobile = _props$attributes.headFontSizeMobile, + headFontFamily = _props$attributes.headFontFamily, + headFontWeight = _props$attributes.headFontWeight, + headLineHeightType = _props$attributes.headLineHeightType, + headLineHeight = _props$attributes.headLineHeight, + headLineHeightTablet = _props$attributes.headLineHeightTablet, + headLineHeightMobile = _props$attributes.headLineHeightMobile, + align = _props$attributes.align, + headingColor = _props$attributes.headingColor, + headSpace = _props$attributes.headSpace, + subHeadFontSizeType = _props$attributes.subHeadFontSizeType, + subHeadFontSize = _props$attributes.subHeadFontSize, + subHeadFontSizeTablet = _props$attributes.subHeadFontSizeTablet, + subHeadFontSizeMobile = _props$attributes.subHeadFontSizeMobile, + subHeadFontFamily = _props$attributes.subHeadFontFamily, + subHeadFontWeight = _props$attributes.subHeadFontWeight, + subHeadLineHeightType = _props$attributes.subHeadLineHeightType, + subHeadLineHeight = _props$attributes.subHeadLineHeight, + subHeadLineHeightTablet = _props$attributes.subHeadLineHeightTablet, + subHeadLineHeightMobile = _props$attributes.subHeadLineHeightMobile, + subHeadingColor = _props$attributes.subHeadingColor, + authorSpace = _props$attributes.authorSpace, + authorColor = _props$attributes.authorColor, + authorFontSizeType = _props$attributes.authorFontSizeType, + authorFontSize = _props$attributes.authorFontSize, + authorFontSizeTablet = _props$attributes.authorFontSizeTablet, + authorFontSizeMobile = _props$attributes.authorFontSizeMobile, + authorFontFamily = _props$attributes.authorFontFamily, + authorFontWeight = _props$attributes.authorFontWeight, + authorLineHeightType = _props$attributes.authorLineHeightType, + authorLineHeight = _props$attributes.authorLineHeight, + authorLineHeightTablet = _props$attributes.authorLineHeightTablet, + authorLineHeightMobile = _props$attributes.authorLineHeightMobile, + ctaColor = _props$attributes.ctaColor, + ctaFontSizeType = _props$attributes.ctaFontSizeType, + ctaFontSize = _props$attributes.ctaFontSize, + ctaFontSizeTablet = _props$attributes.ctaFontSizeTablet, + ctaFontSizeMobile = _props$attributes.ctaFontSizeMobile, + ctaFontFamily = _props$attributes.ctaFontFamily, + ctaFontWeight = _props$attributes.ctaFontWeight, + ctaLineHeightType = _props$attributes.ctaLineHeightType, + ctaLineHeight = _props$attributes.ctaLineHeight, + ctaLineHeightTablet = _props$attributes.ctaLineHeightTablet, + ctaLineHeightMobile = _props$attributes.ctaLineHeightMobile, + ctaBackground = _props$attributes.ctaBackground; + + + var resp_selectors = "left"; + + var selectors = (_selectors = { + " .uagb-timeline__heading.rich-text": { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headFontSize, headFontSizeType), + "font-family": headFontFamily, + "font-weight": headFontWeight, + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headLineHeight, headLineHeightType), + "text-align": align, + "color": headingColor + }, + " .uagb-timeline__heading a": { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headFontSize, headFontSizeType), + "font-family": headFontFamily, + "font-weight": headFontWeight, + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headLineHeight, headLineHeightType), + "text-align": align, + "color": headingColor + }, + " .uagb-timeline__heading-text": { + "margin-bottom": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headSpace, "px") + }, + " p.uagb-timeline-desc-content": { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(subHeadFontSize, subHeadFontSizeType), + "font-family": subHeadFontFamily, + "font-weight": subHeadFontWeight, + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(subHeadLineHeight, subHeadLineHeightType), + "text-align": align, + "color": subHeadingColor + }, + " .uagb-timeline__events-new": { + "text-align": align + }, + " .uagb-timeline__date-inner": { + "text-align": align + }, + ' .uagb-timeline__day-right .uagb-timeline__arrow:after': { + 'border-left-color': backgroundColor + } + }, _defineProperty(_selectors, " .uagb-timeline__day-right .uagb-timeline__arrow:after", { + 'border-right-color': backgroundColor + }), _defineProperty(_selectors, " .uagb-timeline__day-right .uagb-timeline__arrow:after", { + 'border-left-color': backgroundColor + }), _defineProperty(_selectors, " .uagb-timeline__day-right .uagb-timeline__arrow:after", { + 'border-right-color': backgroundColor + }), _defineProperty(_selectors, ' .uagb-timeline__center-block .uagb-timeline__day-right .uagb-timeline__arrow:after', { + 'border-left-color': backgroundColor + }), _defineProperty(_selectors, ' .uagb-timeline__right-block .uagb-timeline__day-right .uagb-timeline__arrow:after', { + 'border-left-color': backgroundColor + }), _defineProperty(_selectors, ' .uagb-timeline__right-block .uagb-timeline__day-left .uagb-timeline__arrow:after', { + 'border-left-color': backgroundColor + }), _defineProperty(_selectors, ' .uagb-timeline__center-block .uagb-timeline__day-left .uagb-timeline__arrow:after', { + 'border-right-color': backgroundColor + }), _defineProperty(_selectors, ' .uagb-timeline__left-block .uagb-timeline__day-left .uagb-timeline__arrow:after', { + 'border-right-color': backgroundColor + }), _defineProperty(_selectors, " .uagb-timeline__line__inner", { + "background-color": separatorFillColor + }), _defineProperty(_selectors, " .uagb-timeline__line", { + "background-color": separatorColor, + "width": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(separatorwidth, "px") + }), _defineProperty(_selectors, " .uagb-timeline__right-block .uagb-timeline__line", { + "right": "calc( " + connectorBgsize + "px / 2 )" + }), _defineProperty(_selectors, " .uagb-timeline__left-block .uagb-timeline__line", { + "left": "calc( " + connectorBgsize + "px / 2 )" + }), _defineProperty(_selectors, " .uagb-timeline__center-block .uagb-timeline__line", { + "right": "calc( " + connectorBgsize + "px / 2 )" + }), _defineProperty(_selectors, " .uagb-timeline__marker", { + "background-color": separatorBg, + "min-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(connectorBgsize, "px"), + "min-width": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(connectorBgsize, "px"), + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(connectorBgsize, "px"), + "border": borderwidth + "px solid" + separatorBorder + }), _defineProperty(_selectors, " .uagb-timeline__left-block .uagb-timeline__left .uagb-timeline__arrow", { + "height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(connectorBgsize, "px") + }), _defineProperty(_selectors, " .uagb-timeline__right-block .uagb-timeline__right .uagb-timeline__arrow", { + "height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(connectorBgsize, "px") + }), _defineProperty(_selectors, " .uagb-timeline__center-block .uagb-timeline__left .uagb-timeline__arrow", { + "height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(connectorBgsize, "px") + }), _defineProperty(_selectors, " .uagb-timeline__center-block .uagb-timeline__right .uagb-timeline__arrow", { + "height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(connectorBgsize, "px") + }), _defineProperty(_selectors, " .uagb-timeline__center-block .uagb-timeline__marker", { + "margin-left": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(horizontalSpace, "px"), + "margin-right": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(horizontalSpace, "px") + }), _defineProperty(_selectors, " .uagb-timeline__field", { + "margin-bottom": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(verticalSpace, "px") + }), _defineProperty(_selectors, " .uagb-timeline__date-hide.uagb-timeline__date-inner", { + "margin-bottom": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(dateBottomspace, "px"), + "color": dateColor, + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(dateFontsize, dateFontsizeType), + "font-family": dateFontFamily, + "font-weight": dateFontWeight, + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(dateLineHeight, dateLineHeightType), + "text-align": align + }), _defineProperty(_selectors, " .uagb-timeline__right-block .uagb-timeline__day-new.uagb-timeline__day-left", { + "margin-right": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(horizontalSpace, "px") + }), _defineProperty(_selectors, " .uagb-timeline__left-block .uagb-timeline__day-new.uagb-timeline__day-left", { + "margin-left": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(horizontalSpace, "px") + }), _defineProperty(_selectors, " .uagb-timeline__left-block .uagb-timeline__day-new.uagb-timeline__day-right", { + "margin-left": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(horizontalSpace, "px") + }), _defineProperty(_selectors, " .uagb-timeline__right-block .uagb-timeline__day-new.uagb-timeline__day-right", { + "margin-right": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(horizontalSpace, "px") + }), _defineProperty(_selectors, " .uagb-timeline__date-new", { + "color": dateColor, + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(dateFontsize, dateFontsizeType), + "font-family": dateFontFamily, + "font-weight": dateFontWeight, + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(dateLineHeight, dateLineHeightType) + }), _defineProperty(_selectors, " .uagb-timeline__events-inner-new", { + "background-color": backgroundColor, + "border-radius": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(borderRadius, "px"), + "padding": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(bgPadding, "px") + }), _defineProperty(_selectors, " .uagb-timeline__icon-new", { + "color": iconColor, + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(iconSize, "px"), + "width": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(iconSize, "px") + }), _defineProperty(_selectors, " .uagb-timeline__icon-new svg", { + "fill": iconColor, + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(iconSize, "px"), + "width": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(iconSize, "px") + }), _defineProperty(_selectors, " .uagb-timeline__marker.uagb-timeline__in-view-icon", { + "background": iconBgFocus, + "border-color": borderFocus + }), _defineProperty(_selectors, " .uagb-timeline__marker.uagb-timeline__in-view-icon .uagb-timeline__icon-new", { + "color": iconFocus + }), _defineProperty(_selectors, " .uagb-timeline__marker.uagb-timeline__in-view-icon .uagb-timeline__icon-new svg", { + "fill": iconColor + }), _defineProperty(_selectors, " .uagb-timeline__marker.uagb-timeline__in-view-icon .uagb-timeline__icon-new svg", { + "fill": iconFocus + }), _defineProperty(_selectors, " .uagb-timeline__author", { + "margin-bottom": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(authorSpace, "px"), + "text-align": align + }), _defineProperty(_selectors, " .uagb-timeline__author .dashicons-admin-users", { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(authorFontSize, authorFontSizeType), + "font-weight": authorFontWeight, + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(authorLineHeight, authorLineHeightType), + "color": authorColor + }), _defineProperty(_selectors, " .uagb-timeline__author-link", { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(authorFontSize, authorFontSizeType), + "font-family": authorFontFamily, + "font-weight": authorFontWeight, + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(authorLineHeight, authorLineHeightType), + "color": authorColor + }), _defineProperty(_selectors, " .uagb-timeline__link_parent", { + "text-align": align + }), _defineProperty(_selectors, " .uagb-timeline__link", { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSize, ctaFontSizeType), + "font-family": ctaFontFamily, + "font-weight": ctaFontWeight, + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaLineHeight, ctaLineHeightType), + "color": ctaColor, + "background-color": ctaBackground + }), _selectors); + + /* Generate Responsive CSS for timeline */ + var tablet_selectors = { + " .uagb-timeline__date-hide.uagb-timeline__date-inner": { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(dateFontsizeTablet, dateFontsizeType), + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(dateLineHeightTablet, dateLineHeightType) + }, + " .uagb-timeline__date-new": { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(dateFontsizeTablet, dateFontsizeType), + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(dateLineHeightTablet, dateLineHeightType) + }, + " .uagb-timeline__heading": { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headFontSizeTablet, headFontSizeType), + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headLineHeightTablet, headLineHeightType) + }, + " .uagb-timeline__heading a": { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headFontSizeTablet, headFontSizeType), + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headLineHeightTablet, headLineHeightType) + }, + " p.uagb-timeline-desc-content": { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(subHeadFontSizeTablet, subHeadFontSizeType), + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(subHeadLineHeightTablet, subHeadLineHeightType) + }, + " .uagb-timeline__center-block .uagb-timeline__marker": { + "margin-left": 0, + "margin-right": 0 + }, + " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__heading": { + "text-align": resp_selectors + }, + " .uagb-timeline__center-block.uagb-timeline__responsive-tablet p.uagb-timeline-desc-content": { + "text-align": resp_selectors + }, + " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__events-new": { + "text-align": resp_selectors + }, + " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__date-inner": { + "text-align": resp_selectors + }, + " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__date-hide.uagb-timeline__date-inner": { + "text-align": resp_selectors + }, + " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-right .uagb-timeline__arrow:after": { + "border-right-color": backgroundColor + }, + " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__line": { + "left": "calc( " + connectorBgsize + "px / 2 )" + }, + " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__author": { + "text-align": resp_selectors + }, + " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__link_parent": { + "text-align": resp_selectors + }, + " .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__image a": { + "text-align": resp_selectors + }, + + // CTA AUTHOR. + " .uagb-timeline__author .dashicons-admin-users": { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(authorFontSizeTablet, authorFontSizeType), + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(authorLineHeightTablet, authorLineHeightType) + }, + " .uagb-timeline__author-link": { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(authorFontSizeTablet, authorFontSizeType), + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(authorLineHeightTablet, authorLineHeightType) + }, + " .uagb-timeline__link": { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSizeTablet, ctaFontSizeType), + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaLineHeightTablet, ctaLineHeightType) + } + }; + + var mobile_selectors = { + " .uagb-timeline__date-hide.uagb-timeline__date-inner": { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(dateFontsizeMobile, dateFontsizeType), + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(dateLineHeightMobile, dateLineHeightType) + }, + " .uagb-timeline__date-new": { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(dateFontsizeMobile, dateFontsizeType), + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(dateLineHeightMobile, dateLineHeightType) + }, + " .uagb-timeline__heading": { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headFontSizeMobile, headFontSizeType), + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headLineHeightMobile, headLineHeightType) + }, + " .uagb-timeline__heading a": { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headFontSizeMobile, headFontSizeType), + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headLineHeightMobile, headLineHeightType) + }, + " p.uagb-timeline-desc-content": { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(subHeadFontSizeMobile, subHeadFontSizeType), + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(subHeadLineHeightMobile, subHeadLineHeightType) + }, + " .uagb-timeline__center-block .uagb-timeline__marker": { + "margin-left": 0, + "margin-right": 0 + }, + " .uagb-timeline__center-block .uagb-timeline__day-new.uagb-timeline__day-left": { + "margin-left": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(horizontalSpace, "px") + }, + " .uagb-timeline__center-block .uagb-timeline__day-new.uagb-timeline__day-right": { + "margin-left": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(horizontalSpace, "px") + }, + " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__heading": { + "text-align": resp_selectors + }, + " .uagb-timeline__center-block.uagb-timeline__responsive-mobile p.uagb-timeline-desc-content": { + "text-align": resp_selectors + }, + " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__events-new": { + "text-align": resp_selectors + }, + " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__date-inner": { + "text-align": resp_selectors + }, + " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__date-hide.uagb-timeline__date-inner": { + "text-align": resp_selectors + }, + " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-right .uagb-timeline__arrow:after": { + "border-right-color": backgroundColor + }, + " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__line": { + "left": "calc( " + connectorBgsize + "px / 2 )" + }, + " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__author": { + "text-align": resp_selectors + }, + " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__link_parent": { + "text-align": resp_selectors + }, + " .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__image a": { + "text-align": resp_selectors + }, + + // CTA AUthor + " .uagb-timeline__author .dashicons-admin-users": { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(authorFontSizeMobile, authorFontSizeType), + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(authorLineHeightMobile, authorLineHeightType) + }, + " .uagb-timeline__author-link": { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(authorFontSizeMobile, authorFontSizeType), + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(authorLineHeightMobile, authorLineHeightType) + }, + " .uagb-timeline__link": { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaFontSizeMobile, ctaFontSizeType), + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(ctaLineHeightMobile, ctaLineHeightType) + } + }; + + var styling_css = ""; + var id = ".uagb-block-" + props.clientId; + + styling_css = Object(__WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSS__["a" /* default */])(selectors, id); + + styling_css += Object(__WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSS__["a" /* default */])(tablet_selectors, id, true, "tablet"); + + styling_css += Object(__WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSS__["a" /* default */])(mobile_selectors, id, true, "mobile"); + + return styling_css; +} + +/* harmony default export */ __webpack_exports__["a"] = (contentTimelineStyle); + +/***/ }), +/* 225 */ +/*!******************************************************************!*\ + !*** ./src/blocks/timeline/content-timeline-child/attributes.js ***! + \******************************************************************/ +/*! exports provided: default */ +/*! exports used: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/** + * BLOCK: UAGB Timeline Child Attributes + */ + +var __ = wp.i18n.__; + + +var attributes = { + content_class: { type: "string" }, - smoothScroll: { - type: "boolean", - default: true - }, - smoothScrollDelay: { - type: "number", - default: 800 - }, - smoothScrollOffset: { - type: "number", - default: 30 - }, - scrollToTop: { - type: "boolean", - default: false - }, - scrollToTopColor: { + dayalign_class: { type: "string" }, - scrollToTopBgColor: { - type: "string" + time_heading: { + type: "string", + default: __("Timeline Heading ", 'ultimate-addons-for-gutenberg') }, - mappingHeaders: { - type: 'array', - default: Array(6).fill(true) + time_desc: { + type: "string", + default: __("This is Timeline description, you can change me anytime click here ", 'ultimate-addons-for-gutenberg') }, - headerLinks: { - type: 'html', - default: '' + dateFormat: { + type: "string", + default: "F j, Y" }, align: { type: "string", - default: "left" - }, - heading: { - source: "html", - selector: ".uagb-toc__title", - default: "Table Of Contents" + default: "center" }, - customWidth: { - type: "boolean", - default: false + headingTag: { + type: "string", + default: "h4" }, - widthTypeDesktop: { + timelinAlignment: { type: "string", - default: "%" + default: "center" }, - widthTypeTablet: { + arrowlinAlignment: { type: "string", - default: "%" + default: "center" }, - widthTypeMobile: { + block_id: { type: "string", - default: "%" + default: "0" }, - widthDesktop: { + timelineItem: { type: "number", - default: 100 - }, - widthTablet: { - type: "number" + default: 5 }, - widthMobile: { - type: "number" + tm_client_id: { + type: "string", + default: "not_set" }, - tColumnsDesktop: { + iconSize: { type: "number", - default: 1 + default: 12 }, - tColumnsTablet: { - type: "number", - default: 1 + icon: { + type: "string", + default: "fab fa fa-calendar-alt" }, - tColumnsMobile: { - type: "number", - default: 1 + t_date: { + type: "string", + default: '1/1/2019' }, - - // Color - backgroundColor: { + displayPostDate: { + type: "boolean" + }, + stack: { type: "string", - default: "#eee" + default: "tablet" + } +}; + +/* harmony default export */ __webpack_exports__["a"] = (attributes); + +/***/ }), +/* 226 */ +/*!*************************************************!*\ + !*** ./src/blocks/call-to-action/attributes.js ***! + \*************************************************/ +/*! exports provided: default */ +/*! exports used: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/** + * BLOCK: Call To Action - Attributes + */ + +var attributes = { + inheritFromTheme: { + type: "boolean", + default: false }, - linkColor: { + ctaTitle: { + source: "html", + selector: "h1,h2,h3,h4,h5,h6", + default: "Call To Action" + }, + classMigrate: { + type: "boolean", + default: false + }, + description: { + source: "html", + selector: "p", + default: "Click here to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo." + }, + textAlign: { type: "string", - default: "#333" + default: "left" }, - linkHoverColor: { + titleColor: { type: "string" }, - headingColor: { + descColor: { type: "string" }, - - // Padding - vPaddingDesktop: { - type: "number", - default: 30 + ctaPosition: { + type: "string", + default: "right" }, - hPaddingDesktop: { - type: "number", - default: 30 + titleTag: { + type: "string", + default: "h3" }, - vPaddingTablet: { + titleFontSize: { type: "number" }, - hPaddingTablet: { - type: "number" + titleFontSizeType: { + type: "string", + default: "px" }, - vPaddingMobile: { + titleFontSizeMobile: { type: "number" }, - hPaddingMobile: { + titleFontSizeTablet: { type: "number" }, - // Margin - vMarginDesktop: { - type: "number" + titleFontFamily: { + type: "string", + default: "Default" }, - hMarginDesktop: { - type: "number" + titleFontWeight: { + type: "string" }, - vMarginTablet: { - type: "number" + titleFontSubset: { + type: "string" }, - hMarginTablet: { + titleLineHeightType: { + type: "string", + default: "em" + }, + titleLineHeight: { type: "number" }, - vMarginMobile: { + titleLineHeightTablet: { type: "number" }, - hMarginMobile: { + titleLineHeightMobile: { type: "number" }, - marginTypeDesktop: { - type: "string", - default: "px" + titleLoadGoogleFonts: { + type: "boolean", + default: false }, - marginTypeTablet: { - type: "string", - default: "px" + descFontSize: { + type: "number" }, - marginTypeMobile: { + descFontSizeType: { type: "string", default: "px" }, - headingBottom: { + descFontSizeMobile: { type: "number" }, - paddingTypeDesktop: { - type: "string", - default: "px" + descFontSizeTablet: { + type: "number" }, - paddingTypeTablet: { + descFontFamily: { type: "string", - default: "px" + default: "Default" }, - paddingTypeMobile: { + descFontWeight: { + type: "string" + }, + descFontSubset: { + type: "string" + }, + descLineHeightType: { type: "string", - default: "px" + default: "em" }, - - // Content Padding - contentPaddingDesktop: { + descLineHeight: { type: "number" }, - contentPaddingTablet: { + descLineHeightTablet: { type: "number" }, - contentPaddingMobile: { + descLineHeightMobile: { type: "number" }, - contentPaddingTypeDesktop: { - type: "string", - default: "px" + descLoadGoogleFonts: { + type: "boolean", + default: false }, - contentPaddingTypeTablet: { - type: "string", - default: "px" + titleSpace: { + type: "number", + default: 10 }, - contentPaddingTypeMobile: { + descSpace: { + type: "number", + default: 10 + }, + block_id: { type: "string", - default: "px" + default: "not_set" }, - - // Border - borderStyle: { + buttonAlign: { type: "string", - default: "solid" + default: "middle" }, - borderWidth: { - type: "number", - default: 1 + ctaTarget: { + type: "boolean", + default: false }, - borderRadius: { - type: "number" + ctaIcon: { + type: "string", + default: "" }, - borderColor: { + ctaIconPosition: { type: "string", - default: "#333" + default: "after" }, - - // Typography - // Link Font Family - loadGoogleFonts: { - type: "boolean", - default: false + ctaIconSpace: { + type: "number", + default: 5 }, - fontFamily: { + ctaType: { type: "string", - default: "Default" + default: "button" }, - fontWeight: { - type: "string" + ctaText: { + type: "html", + default: "Read More" }, - fontSubset: { - type: "string" + ctaLink: { + type: "string", + default: "#" }, - // Link Font Size - fontSize: { + ctaFontSize: { type: "number" }, - fontSizeType: { + ctaFontSizeType: { type: "string", default: "px" }, - fontSizeTablet: { + ctaFontSizeMobile: { type: "number" }, - fontSizeMobile: { + ctaFontSizeTablet: { type: "number" }, - // Link Line Height - lineHeightType: { + ctaFontFamily: { type: "string", - default: "em" - }, - lineHeight: { - type: "number" + default: "Default" }, - lineHeightTablet: { - type: "number" + ctaFontWeight: { + type: "string" }, - lineHeightMobile: { - type: "number" + ctaFontSubset: { + type: "string" }, - - // Link Font Family - headingLoadGoogleFonts: { + ctaLoadGoogleFonts: { type: "boolean", default: false }, - headingFontFamily: { - type: "string", - default: "Default" + contentWidth: { + type: "number", + default: "70" }, - headingFontWeight: { + ctaBtnLinkColor: { type: "string", - default: "500" + default: "#333" }, - headingFontSubset: { - type: "string" + ctaLinkHoverColor: { + type: "string", + default: "" }, - // Link Font Size - headingFontSize: { - type: "number", - default: 20 + ctaBgColor: { + type: "string", + default: "transparent" }, - headingFontSizeType: { + ctaBgHoverColor: { type: "string", - default: "px" + default: "transparent" }, - headingFontSizeTablet: { - type: "number" + ctaBorderColor: { + type: "string", + default: "#333" }, - headingFontSizeMobile: { - type: "number" + ctaBorderhoverColor: { + type: "string", + default: "" }, - // Link Line Height - headingLineHeightType: { + ctaBorderStyle: { type: "string", - default: "em" + default: "solid" }, - headingLineHeight: { - type: "number" + ctaBtnVertPadding: { + type: "number", + default: 10 }, - headingLineHeightTablet: { - type: "number" + ctaBtnHrPadding: { + type: "number", + default: 14 }, - headingLineHeightMobile: { - type: "number" + ctaBorderWidth: { + type: "number", + default: 1 }, - headingAlignment: { + ctaBorderRadius: { + type: "number", + default: 0 + }, + stack: { type: "string", - default: "left" + default: "tablet" + }, + ctaLeftSpace: { + type: "number", + default: 5 + }, + ctaRightSpace: { + type: "number", + default: 5 } }; /* harmony default export */ __webpack_exports__["a"] = (attributes); /***/ }), -/* 181 */ -/*!*********************************************!*\ - !*** ./src/blocks/table-of-contents/toc.js ***! - \*********************************************/ -/*! exports provided: default */ -/*! exports used: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - -var __ = wp.i18n.__; - -var TableOfContents = function (_React$Component) { - _inherits(TableOfContents, _React$Component); - - function TableOfContents() { - _classCallCheck(this, TableOfContents); - - return _possibleConstructorReturn(this, (TableOfContents.__proto__ || Object.getPrototypeOf(TableOfContents)).apply(this, arguments)); - } - - _createClass(TableOfContents, [{ - key: 'render', - value: function render() { - var _props = this.props, - mappingHeaders = _props.mappingHeaders, - headers = _props.headers; - - - var makeHeaderArray = function makeHeaderArray(origHeaders) { - var arrays = []; - - origHeaders.filter(function (header) { - return mappingHeaders[header.tag - 1]; - }).forEach(function (header) { - var last = arrays.length - 1; - if (arrays.length === 0 || arrays[last][0].tag < header.tag) { - arrays.push([header]); - } else if (arrays[last][0].tag === header.tag) { - arrays[last].push(header); - } else { - while (arrays[last][0].tag > header.tag) { - if (arrays.length > 1) { - arrays[arrays.length - 2].push(arrays.pop()); - last = arrays.length - 1; - } else break; - } - if (arrays[last][0].tag === header.tag) { - arrays[last].push(header); - } - } - }); - - while (arrays.length > 1 && arrays[arrays.length - 1][0].tag > arrays[arrays.length - 2][0].tag) { - arrays[arrays.length - 2].push(arrays.pop()); - } - - return arrays[0]; - }; - - var filterArray = function filterArray(origHeaders) { - var arrays = []; - headers.forEach(function (heading, key) { - if (mappingHeaders[heading.tag - 1]) { - arrays.push(heading); - } - }); - return makeHeaderArray(arrays); - }; - - var counter = 0; - var ul_counter = 0; - - var parseList = function parseList(list) { - var items = []; - list.forEach(function (item) { - - if (Array.isArray(item)) { - items.push(parseList(item)); - } else { - - items.push(wp.element.createElement( - 'li', - { key: counter }, - wp.element.createElement('a', { - href: '#' + item.link, - dangerouslySetInnerHTML: { - __html: item.text - } - }) - )); - counter++; - } - }); - ul_counter++; - return wp.element.createElement( - 'ul', - { key: counter + '-' + ul_counter, className: 'uagb-toc__list' }, - items - ); - }; - - if (mappingHeaders != 'undefined' && headers && headers.length > 0 && headers.filter(function (header) { - return mappingHeaders[header.tag - 1]; - }).length > 0) { - return wp.element.createElement( - 'div', - { className: 'uagb-toc__list-wrap' }, - parseList(filterArray(headers)) - ); - } else { - return wp.element.createElement( - 'p', - { className: 'uagb_table-of-contents-placeholder' }, - __('Add a header to begin generating the table of contents') - ); - } - } - }]); - - return TableOfContents; -}(React.Component); - -/* harmony default export */ __webpack_exports__["a"] = (TableOfContents); - -/***/ }), -/* 182 */ -/*!*************************************************!*\ - !*** ./node_modules/striptags/src/striptags.js ***! - \*************************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -var __WEBPACK_AMD_DEFINE_RESULT__; - -(function (global) { - - // minimal symbol polyfill for IE11 and others - if (typeof Symbol !== 'function') { - var Symbol = function(name) { - return name; - } - - Symbol.nonNative = true; - } - - const STATE_PLAINTEXT = Symbol('plaintext'); - const STATE_HTML = Symbol('html'); - const STATE_COMMENT = Symbol('comment'); - - const ALLOWED_TAGS_REGEX = /<(\w*)>/g; - const NORMALIZE_TAG_REGEX = /<\/?([^\s\/>]+)/; - - function striptags(html, allowable_tags, tag_replacement) { - html = html || ''; - allowable_tags = allowable_tags || []; - tag_replacement = tag_replacement || ''; - - let context = init_context(allowable_tags, tag_replacement); - - return striptags_internal(html, context); - } - - function init_striptags_stream(allowable_tags, tag_replacement) { - allowable_tags = allowable_tags || []; - tag_replacement = tag_replacement || ''; - - let context = init_context(allowable_tags, tag_replacement); - - return function striptags_stream(html) { - return striptags_internal(html || '', context); - }; - } - - striptags.init_streaming_mode = init_striptags_stream; - - function init_context(allowable_tags, tag_replacement) { - allowable_tags = parse_allowable_tags(allowable_tags); - - return { - allowable_tags : allowable_tags, - tag_replacement: tag_replacement, - - state : STATE_PLAINTEXT, - tag_buffer : '', - depth : 0, - in_quote_char : '' - }; - } - - function striptags_internal(html, context) { - let allowable_tags = context.allowable_tags; - let tag_replacement = context.tag_replacement; - - let state = context.state; - let tag_buffer = context.tag_buffer; - let depth = context.depth; - let in_quote_char = context.in_quote_char; - let output = ''; - - for (let idx = 0, length = html.length; idx < length; idx++) { - let char = html[idx]; - - if (state === STATE_PLAINTEXT) { - switch (char) { - case '<': - state = STATE_HTML; - tag_buffer += char; - break; - - default: - output += char; - break; - } - } - - else if (state === STATE_HTML) { - switch (char) { - case '<': - // ignore '<' if inside a quote - if (in_quote_char) { - break; - } - - // we're seeing a nested '<' - depth++; - break; - - case '>': - // ignore '>' if inside a quote - if (in_quote_char) { - break; - } - - // something like this is happening: '<<>>' - if (depth) { - depth--; - - break; - } - - // this is closing the tag in tag_buffer - in_quote_char = ''; - state = STATE_PLAINTEXT; - tag_buffer += '>'; - - if (allowable_tags.has(normalize_tag(tag_buffer))) { - output += tag_buffer; - } else { - output += tag_replacement; - } - - tag_buffer = ''; - break; - - case '"': - case '\'': - // catch both single and double quotes - - if (char === in_quote_char) { - in_quote_char = ''; - } else { - in_quote_char = in_quote_char || char; - } - - tag_buffer += char; - break; - - case '-': - if (tag_buffer === '': - if (tag_buffer.slice(-2) == '--') { - // close the comment - state = STATE_PLAINTEXT; - } - - tag_buffer = ''; - break; - - default: - tag_buffer += char; - break; - } - } - } - - // save the context for future iterations - context.state = state; - context.tag_buffer = tag_buffer; - context.depth = depth; - context.in_quote_char = in_quote_char; - - return output; - } - - function parse_allowable_tags(allowable_tags) { - let tag_set = new Set(); - - if (typeof allowable_tags === 'string') { - let match; - - while ((match = ALLOWED_TAGS_REGEX.exec(allowable_tags))) { - tag_set.add(match[1]); - } - } - - else if (!Symbol.nonNative && - typeof allowable_tags[Symbol.iterator] === 'function') { - - tag_set = new Set(allowable_tags); - } - - else if (typeof allowable_tags.forEach === 'function') { - // IE11 compatible - allowable_tags.forEach(tag_set.add, tag_set); - } - - return tag_set; - } - - function normalize_tag(tag_buffer) { - let match = NORMALIZE_TAG_REGEX.exec(tag_buffer); - - return match ? match[1].toLowerCase() : null; - } - - if (true) { - // AMD - !(__WEBPACK_AMD_DEFINE_RESULT__ = function module_factory() { return striptags; }.call(exports, __webpack_require__, exports, module), - __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } - - else if (typeof module === 'object' && module.exports) { - // Node - module.exports = striptags; - } - - else { - // Browser - global.striptags = striptags; - } -}(this)); - - -/***/ }), -/* 183 */ +/* 227 */ /*!*****************************************!*\ - !*** ./src/blocks/how-to/attributes.js ***! + !*** ./src/blocks/column/attributes.js ***! \*****************************************/ /*! exports provided: default */ /*! exports used: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -/** - * BLOCK: UAGB How-To Schema Attributes - */ - -var __ = wp.i18n.__; - - -var tools = []; - -var materials = []; - -tools.push({ - "add_required_tools": __("- A Computer.") -}); - -materials.push({ - "add_required_materials": __("- A WordPress Website.") -}); - var attributes = { block_id: { type: "string" }, - overallAlignment: { + classMigrate: { + type: "boolean", + default: false + }, + align: { type: "string", - default: "left" + default: "center" }, - toolsTitle: { - type: "html", - default: __("Required Tools:") + alignTablet: { + type: "string", + default: "" }, - materialTitle: { - type: "html", - default: __("Things Needed?") + alignMobile: { + type: "string", + default: "" }, - stepsTitle: { - type: "html", - default: __("Steps to configure the How-to Schema:") + topPadding: { + type: "number", + default: "" }, - tools_count: { + bottomPadding: { type: "number", - default: 1 + default: "" }, - material_count: { + leftPadding: { type: "number", - default: 1 + default: "" }, - tools: { - type: "array", - default: tools + rightPadding: { + type: "number", + default: "" }, - materials: { - type: "array", - default: materials + topMargin: { + type: "number", + default: "" }, - showTotaltime: { - type: "boolean", - default: true + bottomMargin: { + type: "number", + default: "" }, - showEstcost: { - type: "boolean", - default: true + leftMargin: { + type: "number", + default: "" }, - showTools: { - type: "boolean", - default: true + rightMargin: { + type: "number", + default: "" }, - showMaterials: { - type: "boolean", - default: true + topPaddingTablet: { + type: "number", + default: "" }, - mainimage: { - type: "object", - default: { - "url": "" - } + bottomPaddingTablet: { + type: "number", + default: "" }, - estCost: { - type: "html", - default: __("Total Cost:") + leftPaddingTablet: { + type: "number", + default: "" }, - timeNeeded: { - type: "html", - default: __("Total Time Needed :") + rightPaddingTablet: { + type: "number", + default: "" }, - timeIn: { - type: "html", - default: __(" Minutes") + topMarginTablet: { + type: "number", + default: "" }, - imgSize: { - type: "string", - default: "thumbnail" + bottomMarginTablet: { + type: "number", + default: "" }, - timeSpace: { + leftMarginTablet: { type: "number", - default: 5 + default: "" }, - costSpace: { + rightMarginTablet: { type: "number", - default: 5 + default: "" }, - time: { - type: "string", - default: "30" + + topPaddingMobile: { + type: "number", + default: "" }, - cost: { - type: "string", - default: "65" + bottomPaddingMobile: { + type: "number", + default: "" }, - headingTitle: { - source: "html", - selector: "h1,h2,h3,h4,h5,h6", - default: __("How To Configure How-To Schema In Ultimate Addons For Gutenberg?") + leftPaddingMobile: { + type: "number", + default: "" }, - currencyType: { - type: "html", - default: " USD" + rightPaddingMobile: { + type: "number", + default: "" }, - headingDesc: { - source: "html", - selector: "p", - default: __("So to get started, you will just need to drag-n-drop the How-to Schema block in the Gutenberg editor. The How-to Schema block can be used on pages that contain a How-to in their title and describe steps to achieve certain requirements.") + topMarginMobile: { + type: "number", + default: "" }, - headingAlign: { + bottomMarginMobile: { + type: "number", + default: "" + }, + leftMarginMobile: { + type: "number", + default: "" + }, + rightMarginMobile: { + type: "number", + default: "" + }, + colWidth: { + type: "number", + default: "" + }, + colWidthTablet: { + type: "number", + default: "" + }, + colWidthMobile: { + type: "number", + default: "" + }, + backgroundType: { + type: "string" + }, + backgroundImage: { + type: "object" + }, + backgroundPosition: { type: "string", - default: "left" + default: "center-center" }, - descriptionAlign: { + backgroundSize: { type: "string", - default: "left" + default: "cover" }, - headingColor: { + backgroundRepeat: { + type: "string", + default: "no-repeat" + }, + backgroundAttachment: { + type: "string", + default: "scroll" + }, + backgroundColor: { type: "string" }, - showEstcostcolor: { + gradientColor1: { type: "string" }, - showTotaltimecolor: { + gradientColor2: { + type: "string" + }, + gradientType: { type: "string", - default: "" + default: "linear" }, - subHeadingColor: { + gradientLocation1: { + type: "number", + default: 0 + }, + gradientLocation2: { + type: "number", + default: 100 + }, + gradientAngle: { + type: "number", + default: 0 + }, + backgroundOpacity: { + type: "number" + }, + backgroundImageColor: { + type: "string" + }, + borderStyle: { type: "string", - default: "" + default: "none" }, - headingTag: { + borderWidth: { + type: "number", + default: 1 + }, + borderRadius: { + type: "number" + }, + borderColor: { + type: "string" + }, + overlayType: { type: "string", - default: "h3" + default: "color" }, - headSpace: { + gradientOverlayColor1: { + type: "string" + }, + gradientOverlayColor2: { + type: "string" + }, + gradientOverlayType: { + type: "string", + default: "linear" + }, + gradientOverlayLocation1: { type: "number", - default: 15 + default: 0 }, - headFontFamily: { + gradientOverlayLocation2: { + type: "number", + default: 100 + }, + gradientOverlayAngle: { + type: "number", + default: 0 + }, + mobileMarginType: { type: "string", - default: "Default" + default: 'px' }, - headFontWeight: { + tabletMarginType: { + type: "string", + default: 'px' + }, + desktopMarginType: { + type: "string", + default: 'px' + }, + mobilePaddingType: { + type: "string", + default: 'px' + }, + tabletPaddingType: { + type: "string", + default: 'px' + }, + desktopPaddingType: { + type: "string", + default: 'px' + }, + gradientValue: { + type: "string", + default: "" + } +}; + +/* harmony default export */ __webpack_exports__["a"] = (attributes); + +/***/ }), +/* 228 */ +/*!******************************************!*\ + !*** ./src/blocks/columns/attributes.js ***! + \******************************************/ +/*! exports provided: default */ +/*! exports used: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/** + * BLOCK: Columns - Attributes + */ + +var attributes = { + block_id: { type: "string" }, - headFontSubset: { + classMigrate: { + type: "boolean", + default: false + }, + columns: { + type: "number", + default: 2 + }, + align: { type: "string" }, - headFontSizeType: { + vAlign: { + type: "string" + }, + stack: { type: "string", - default: "px" + default: "mobile" }, - headLineHeightType: { + columnGap: { type: "string", - default: "em" + default: "10" }, - headFontSize: { + topPadding: { + type: "number", + default: 20 + }, + bottomPadding: { + type: "number", + default: 20 + }, + leftPadding: { + type: "number", + default: 20 + }, + rightPadding: { + type: "number", + default: 20 + }, + topPaddingTablet: { type: "number" }, - headFontSizeTablet: { + bottomPaddingTablet: { type: "number" }, - headFontSizeMobile: { + leftPaddingTablet: { type: "number" }, - headLineHeight: { + rightPaddingTablet: { type: "number" }, - headLineHeightTablet: { + topPaddingMobile: { type: "number" }, - headLineHeightMobile: { + bottomPaddingMobile: { type: "number" }, - subHeadFontFamily: { + leftPaddingMobile: { + type: "number" + }, + rightPaddingMobile: { + type: "number" + }, + topMargin: { + type: "number", + default: 0 + }, + bottomMargin: { + type: "number", + default: 0 + }, + topMarginMobile: { + type: "number" + }, + bottomMarginMobile: { + type: "number" + }, + topMarginTablet: { + type: "number" + }, + bottomMarginTablet: { + type: "number" + }, + contentWidth: { type: "string", - default: "Default" + default: "theme" }, - subHeadFontWeight: { + width: { + type: "number", + default: 900 + }, + widthType: { + type: "string", + default: "px" + }, + tag: { + type: "string", + default: "section" + }, + backgroundType: { type: "string" }, - subHeadFontSubset: { + backgroundImage: { + type: "object" + }, + backgroundPosition: { + type: "string", + default: "center-center" + }, + backgroundSize: { + type: "string", + default: "cover" + }, + backgroundRepeat: { + type: "string", + default: "no-repeat" + }, + backgroundAttachment: { + type: "string", + default: "scroll" + }, + backgroundVideo: { + type: "object" + }, + backgroundColor: { type: "string" }, - subHeadFontSize: { - type: "number" + gradientColor1: { + type: "string" }, - subHeadFontSizeType: { + gradientColor2: { + type: "string" + }, + gradientType: { type: "string", - default: "px" + default: "linear" }, - subHeadFontSizeTablet: { - type: "number" + gradientLocation1: { + type: "number", + default: 0 }, - subHeadFontSizeMobile: { - type: "number" + gradientLocation2: { + type: "number", + default: 100 }, - subHeadLineHeight: { - type: "number" + gradientAngle: { + type: "number", + default: 0 }, - subHeadLineHeightType: { + gradientPosition: { type: "string", - default: "em" + default: "center center" }, - subHeadLineHeightTablet: { + backgroundOpacity: { type: "number" }, - subHeadLineHeightMobile: { - type: "number" + backgroundVideoOpacity: { + type: "number", + default: 50 }, - separatorSpace: { + backgroundVideoColor: { + type: "string" + }, + backgroundImageColor: { + type: "string" + }, + borderStyle: { + type: "string", + default: "none" + }, + borderWidth: { type: "number", - default: 15 + default: 1 }, - headLoadGoogleFonts: { - type: "boolean", - default: false + borderRadius: { + type: "number" }, - subHeadLoadGoogleFonts: { - type: "boolean", - default: false + borderColor: { + type: "string" }, - priceFontSizeType: { + bottomType: { type: "string", - default: "px" + default: "none" }, - priceFontSize: { + bottomColor: { + type: "string" + }, + bottomHeight: { type: "number" }, - priceFontSizeTablet: { + bottomHeightTablet: { type: "number" }, - priceFontSizeMobile: { + bottomHeightMobile: { type: "number" }, - priceFontFamily: { - type: "string", - default: "Default" + bottomWidth: { + type: "number" }, - priceFontWeight: { - type: "string" + topType: { + type: "string", + default: "none" }, - priceFontSubset: { + topColor: { type: "string" }, - priceLineHeightType: { - type: "string", - default: "em" + topHeight: { + type: "number" }, - priceLineHeight: { + topHeightTablet: { type: "number" }, - priceLineHeightTablet: { + topHeightMobile: { type: "number" }, - priceLineHeightMobile: { + topWidth: { type: "number" }, - priceLoadGoogleFonts: { + topFlip: { type: "boolean", default: false }, - row_gap: { + bottomFlip: { + type: "boolean", + default: false + }, + reverseTablet: { + type: "boolean", + default: false + }, + reverseMobile: { + type: "boolean", + default: false + }, + topDividerOpacity: { type: "number", - default: 20 + default: 100 }, - step_gap: { - type: "number" + bottomDividerOpacity: { + type: "number", + default: 100 }, - schema: { - type: "html", - default: "" + topContentAboveShape: { + type: "boolean", + default: false }, - timeInMins: { - type: "number" - + bottomContentAboveShape: { + type: "boolean", + default: false }, - timeInHours: { - type: "number" + mobileMarginType: { + type: "string", + default: 'px' }, - timeInDays: { - type: "number" + tabletMarginType: { + type: "string", + default: 'px' }, - timeInMonths: { + desktopMarginType: { + type: "string", + default: 'px' + }, + mobilePaddingType: { + type: "string", + default: 'px' + }, + tabletPaddingType: { + type: "string", + default: 'px' + }, + desktopPaddingType: { + type: "string", + default: 'px' + }, + boxShadowColor: { + type: "string" + }, + boxShadowHOffset: { + type: "number", + default: 0 + }, + boxShadowVOffset: { + type: "number", + default: 0 + }, + boxShadowBlur: { type: "number" }, - timeInYears: { + boxShadowSpread: { type: "number" + }, + boxShadowPosition: { + type: "string", + default: "outset" + }, + gradientValue: { + type: "string", + default: "" } }; @@ -22069,3924 +22296,7408 @@ var attributes = { /* harmony default export */ __webpack_exports__["a"] = (attributes); /***/ }), -/* 184 */ -/*!**************************************!*\ - !*** ./src/blocks/how-to/style.scss ***! - \**************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -// removed by extract-text-webpack-plugin - -/***/ }), -/* 185 */ -/*!********************************************!*\ - !*** ./src/blocks/faq-child/attributes.js ***! - \********************************************/ +/* 229 */ +/*!*************************************!*\ + !*** ./src/blocks/columns/icons.js ***! + \*************************************/ /*! exports provided: default */ /*! exports used: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -var __ = wp.i18n.__; +/** + * WordPress dependencies + */ +var _wp$components = wp.components, + Path = _wp$components.Path, + SVG = _wp$components.SVG, + G = _wp$components.G; +/** + * Custom icons + */ -var attributes = { - block_id: { - type: "string" - }, - question: { - type: "html", - default: __("What is FAQ?") - }, - answer: { - type: "html", - default: __("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.") - }, - icon: { - type: "html", - default: "fas fa-plus" +var rowIcons = {}; + +rowIcons.colOne = wp.element.createElement( + SVG, + { className: "dashicon", height: "26", viewBox: "0 0 50 26", width: "50", xmlns: "http://www.w3.org/2000/svg" }, + wp.element.createElement(Path, { d: "m48.0833333 0h-46.16666663c-1.05416667 0-1.91666667.9-1.91666667 2v22c0 1.1.8625 2 1.91666667 2h46.16666663c1.0541667 0 1.9166667-.9 1.9166667-2v-22c0-1.1-.8625-2-1.9166667-2zm0 24h-46.16666663v-22h46.16666663z" }) +); + +rowIcons.layout5050 = wp.element.createElement( + SVG, + { className: "dashicon", height: "26", viewBox: "0 0 50 26", width: "50", xmlns: "http://www.w3.org/2000/svg" }, + wp.element.createElement( + G, + { fillRule: "evenodd" }, + wp.element.createElement(Path, { d: "m48.0833333 0h-46.16666663c-1.05416667 0-1.91666667.9-1.91666667 2v22c0 1.1.8625 2 1.91666667 2h46.16666663c1.0541667 0 1.9166667-.9 1.9166667-2v-22c0-1.1-.8625-2-1.9166667-2zm0 24h-46.16666663v-22h46.16666663z", fillRule: "nonzero" }), + wp.element.createElement(Path, { d: "m24 2h2v22h-2z" }) + ) +); + +rowIcons.layout502525 = wp.element.createElement( + SVG, + { className: "dashicon", height: "26", viewBox: "0 0 50 26", width: "50", xmlns: "http://www.w3.org/2000/svg" }, + wp.element.createElement( + G, + { fillRule: "evenodd" }, + wp.element.createElement(Path, { d: "m48.0833333 0h-46.16666663c-1.05416667 0-1.91666667.9-1.91666667 2v22c0 1.1.8625 2 1.91666667 2h46.16666663c1.0541667 0 1.9166667-.9 1.9166667-2v-22c0-1.1-.8625-2-1.9166667-2zm0 24h-46.16666663v-22h46.16666663z", fillRule: "nonzero" }), + wp.element.createElement(Path, { d: "m36 2h2v22h-2z" }), + wp.element.createElement(Path, { d: "m24 2h2v22h-2z" }) + ) +); + +rowIcons.layout25252525 = wp.element.createElement( + SVG, + { className: "dashicon", height: "26", viewBox: "0 0 50 26", width: "50", xmlns: "http://www.w3.org/2000/svg" }, + wp.element.createElement( + G, + { fillRule: "evenodd" }, + wp.element.createElement(Path, { d: "m48.0833333 0h-46.16666663c-1.05416667 0-1.91666667.9-1.91666667 2v22c0 1.1.8625 2 1.91666667 2h46.16666663c1.0541667 0 1.9166667-.9 1.9166667-2v-22c0-1.1-.8625-2-1.9166667-2zm0 24h-46.16666663v-22h46.16666663z", fillRule: "nonzero" }), + wp.element.createElement(Path, { d: "m12 2h2v22h-2z" }), + wp.element.createElement(Path, { d: "m24 2h2v22h-2z" }), + wp.element.createElement(Path, { d: "m36 2h2v22h-2z" }) + ) +); + +rowIcons.layout3366 = wp.element.createElement( + SVG, + { width: "48", height: "48", viewBox: "0 0 48 48", xmlns: "http://www.w3.org/2000/svg" }, + wp.element.createElement(Path, { + fillRule: "evenodd", + clipRule: "evenodd", + d: "M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H20V34H39ZM18 34H9V14H18V34Z" + }) +); + +rowIcons.layout6633 = wp.element.createElement( + SVG, + { + width: "48", + height: "48", + viewBox: "0 0 48 48", + xmlns: "http://www.w3.org/2000/svg" }, - iconActive: { - type: "html", - default: "fas fa-minus" + wp.element.createElement(Path, { + fillRule: "evenodd", + clipRule: "evenodd", + d: "M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H30V34H39ZM28 34H9V14H28V34Z" + }) +); + +rowIcons.layout333333 = wp.element.createElement( + SVG, + { + width: "48", + height: "48", + viewBox: "0 0 48 48", + xmlns: "http://www.w3.org/2000/svg" }, - layout: { - type: "string", - default: "accordion" + wp.element.createElement(Path, { + fillRule: "evenodd", + d: "M41 14a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2V14zM28.5 34h-9V14h9v20zm2 0V14H39v20h-8.5zm-13 0H9V14h8.5v20z" + }) +); + +rowIcons.layout255025 = wp.element.createElement( + SVG, + { + width: "48", + height: "48", + viewBox: "0 0 48 48", + xmlns: "http://www.w3.org/2000/svg" }, - headingTag: { - type: "html", - selector: "span,p,h1,h2,h3,h4,h5,h6", - default: "span" - } -}; + wp.element.createElement(Path, { + fillRule: "evenodd", + d: "M41 14a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2V14zM31 34H17V14h14v20zm2 0V14h6v20h-6zm-18 0H9V14h6v20z" + }) +); -/* harmony default export */ __webpack_exports__["a"] = (attributes); +/* harmony default export */ __webpack_exports__["a"] = (rowIcons); /***/ }), -/* 186 */ -/*!*****************************************!*\ - !*** ./src/blocks/review/components.js ***! - \*****************************************/ -/*! exports provided: Stars, ReviewBody */ -/*! exports used: ReviewBody, Stars */ +/* 230 */ +/*!*********************************************!*\ + !*** ./src/blocks/blockquote/attributes.js ***! + \*********************************************/ +/*! exports provided: default */ +/*! exports used: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return Stars; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ReviewBody; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(/*! react */ 6); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__); -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } +/** + * BLOCK: UAGB Quote Block Attributes + */ -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } +var attributes = { + block_id: { + type: "string" + }, + classMigrate: { + type: "boolean", + default: false + }, + skinStyle: { + type: "string", + default: "border" + }, + align: { + type: "string", + default: "left" + }, + descriptionText: { + selector: "div.uagb-blockquote__content", + default: "Click here to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo." + }, + descColor: { + type: "string" + }, + descFontSize: { + type: "number" + }, + descFontSizeType: { + type: "string", + default: "px" + }, + descFontSizeTablet: { + type: "number" + }, + descFontSizeMobile: { + type: "number" + }, + descFontFamily: { + type: "string", + default: "Default" + }, + descFontWeight: { + type: "string" + }, + descFontSubset: { + type: "string" + }, + descLineHeightType: { + type: "string", + default: "em" + }, + descLineHeight: { + type: "number" + }, + descLineHeightTablet: { + type: "number" + }, + descLineHeightMobile: { + type: "number" + }, + descLoadGoogleFonts: { + type: "boolean", + default: false + }, + descSpace: { + type: "number", + default: 20 + }, + author: { + selector: ".uagb-blockquote__author", + default: "Author" + }, + authorColor: { + type: "string", + default: "#888888" + }, + authorFontSize: { + type: "number" + }, + authorFontSizeType: { + type: "string", + default: "px" + }, + authorFontSizeTablet: { + type: "number" + }, + authorFontSizeMobile: { + type: "number" + }, + authorFontFamily: { + type: "string", + default: "Default" + }, + authorFontWeight: { + type: "string" + }, + authorFontSubset: { + type: "string" + }, + authorLineHeightType: { + type: "string", + default: "em" + }, + authorLineHeight: { + type: "number" + }, + authorLineHeightTablet: { + type: "number" + }, + authorLineHeightMobile: { + type: "number" + }, + authorLoadGoogleFonts: { + type: "boolean", + default: false + }, + authorSpace: { + type: "number", + default: 10 + }, + authorImage: { + type: "object", + default: { + "url": "", + "alt": "Author Image" + } + }, + authorImageSize: { + type: "string", + default: "thumbnail" + }, + authorImageWidth: { + type: "number", + default: 40 + }, + authorImgBorderRadius: { + type: "number", + default: 100 + }, + authorImgPosition: { + type: "string", + default: "left" + }, + stack: { + type: "string", + default: "none" + }, + enableTweet: { + type: "boolean", + default: true + }, + iconView: { + type: "string", + default: "icon_text" + }, + iconSkin: { + type: "string", + default: "classic" + }, + iconLabel: { + type: "string", + default: "Tweet" + }, + iconShareVia: { + type: "string", + default: "" + }, + iconTargetUrl: { + type: "string", + default: "current" + }, + customUrl: { + type: "string" + }, + tweetLinkColor: { + type: "string", + default: "#1DA1F2" + }, + tweetBtnColor: { + type: "string", + default: "#fff" + }, + tweetBtnBgColor: { + type: "string", + default: "#1DA1F2" + }, + tweetBtnHoverColor: { + type: "string" + }, + tweetBtnBgHoverColor: { + type: "string", + default: "#1DA1F2" + }, + tweetBtnFontSize: { + type: "number", + default: 15 + }, + tweetBtnFontSizeType: { + type: "string", + default: "px" + }, + tweetBtnFontSizeTablet: { + type: "number" + }, + tweetBtnFontSizeMobile: { + type: "number" + }, + tweetBtnFontFamily: { + type: "string", + default: "Default" + }, + tweetBtnFontWeight: { + type: "string" + }, + tweetBtnFontSubset: { + type: "string" + }, + tweetBtnLineHeightType: { + type: "string", + default: "em" + }, + tweetBtnLineHeight: { + type: "number" + }, + tweetBtnLineHeightTablet: { + type: "number" + }, + tweetBtnLineHeightMobile: { + type: "number" + }, + tweetBtnLoadGoogleFonts: { + type: "boolean", + default: false + }, + tweetBtnHrPadding: { + type: "number", + default: 10 + }, + tweetBtnVrPadding: { + type: "number", + default: 10 + }, + tweetIconSpacing: { + type: "number", + default: 10 + }, + borderColor: { + type: "string", + default: "#abb8c3" + }, + borderStyle: { + type: "string", + default: "solid" + }, + borderWidth: { + type: "number", + default: 4 + }, + borderGap: { + type: "number", + default: 15 + }, + verticalPadding: { + type: "number" + }, + quoteStyle: { + type: "string", + default: "style_2" + }, + quoteColor: { + type: "string", + default: "#abb8c3" + }, + quoteSize: { + type: "number", + default: 25 + }, + quoteSizeType: { + type: "string", + default: "px" + }, + quoteSizeTablet: { + type: "number" + }, + quoteSizeMobile: { + type: "number" + }, + quotePadding: { + type: "number", + default: 10 + }, + quotePaddingType: { + type: "string", + default: "px" + }, + quotePaddingTablet: { + type: "number" + }, + quotePaddingMobile: { + type: "number" + }, + quoteBorderRadius: { + type: "number", + default: 100 + }, + quoteBgColor: { + type: "string", + default: "#333" + }, + quoteTopMargin: { + type: "number" + }, + quoteBottomMargin: { + type: "number" + }, + quoteLeftMargin: { + type: "number" + }, + quoteRightMargin: { + type: "number", + default: 20 + }, + quoteHoverColor: { + type: "string" + }, + quoteBgHoverColor: { + type: "string" + }, + borderHoverColor: { + type: "string" + } +}; -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } +/* harmony default export */ __webpack_exports__["a"] = (attributes); -var _ref = wp.blockEditor || wp.editor, - RichText = _ref.RichText; +/***/ }), +/* 231 */ +/*!***************************************************!*\ + !*** ./src/blocks/marketing-button/attributes.js ***! + \***************************************************/ +/*! exports provided: default */ +/*! exports used: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { +"use strict"; var __ = wp.i18n.__; +var attributes = { + block_id: { + type: "string" + }, + classMigrate: { + type: "boolean", + default: false + }, + align: { + type: "string", + default: "center" + }, + textAlign: { + type: "string", + default: "center" + }, + link: { + type: "string", + default: "#" + }, + linkTarget: { + type: "boolean", + default: false + }, + titleSpace: { + type: "number", + default: 0 + }, -var Stars = function (_Component) { - _inherits(Stars, _Component); - - function Stars(props) { - _classCallCheck(this, Stars); - - var _this = _possibleConstructorReturn(this, (Stars.__proto__ || Object.getPrototypeOf(Stars)).call(this, props)); - - _this.state = { - displayValue: _this.props.value, - displayColor: _this.props.activeStarColor - }; - _this.mouseHover = _this.mouseHover.bind(_this); - _this.mouseLeave = _this.mouseLeave.bind(_this); - _this.mouseClick = _this.mouseClick.bind(_this); - return _this; - } - - _createClass(Stars, [{ - key: "mouseHover", - value: function mouseHover(i) { - this.setState({ - displayValue: i + (this.props.value - i === 1 ? 0.5 : 1), - displayColor: this.props.selectedStarColor - }); - } - }, { - key: "mouseLeave", - value: function mouseLeave() { - this.setState({ - displayValue: this.props.value, - displayColor: this.props.activeStarColor - }); - } - }, { - key: "mouseClick", - value: function mouseClick(i) { - var _props = this.props, - setValue = _props.setValue, - value = _props.value; - - setValue(value === i + 1 ? i + 0.5 : i + 1); - this.setState({ - displayValue: value === i + 1 ? i + 0.5 : i + 1 - }); - } - }, { - key: "componentWillReceiveProps", - value: function componentWillReceiveProps(newProps) { - var value = newProps.value, - activeStarColor = newProps.activeStarColor; - - if (this.props.onHover || this.state.displayValue !== value) { - this.setState({ - displayValue: value, - displayColor: activeStarColor - }); - } else { - this.setState({ displayColor: activeStarColor }); - } - } - }, { - key: "render", - value: function render() { - var _this2 = this; - - var displayValue = this.state.displayValue; - var _props2 = this.props, - limit = _props2.limit, - id = _props2.id, - className = _props2.className, - inactiveStarColor = _props2.inactiveStarColor, - onHover = _props2.onHover, - _onClick = _props2.onClick, - style = _props2.style, - starOutlineColor = _props2.starOutlineColor; - - return wp.element.createElement( - "div", - { - className: className, - style: Object.assign({ - display: "flex", - flexDirection: "flex-row" - }, style) - }, - [].concat(_toConsumableArray(Array(limit).keys())).map(function (i) { - return wp.element.createElement( - "svg", - { - xmlns: "http://www.w3.org/2000/svg", - key: i, - height: "20", - width: "20", - viewBox: "0 0 150 150", - onMouseOver: function onMouseOver() { - return onHover || _this2.mouseHover(i); - }, - onMouseOut: function onMouseOut() { - return _this2.mouseLeave(); - }, - onClick: function onClick() { - return _onClick || _this2.mouseClick(i); - } - }, - wp.element.createElement( - "defs", - null, - wp.element.createElement( - "mask", - { id: "uagb_review_star_filter-" + id + "-" + i }, - wp.element.createElement("rect", { - height: "150", - width: (displayValue - i > 0 ? displayValue - i < 1 ? displayValue - i : 1 : 0) * 150, - y: "0", - x: "0", - fill: "#fff" - }) - ) - ), - wp.element.createElement("path", { - fill: inactiveStarColor, - strokeWidth: "2.5", - d: "m0.75,56.89914l56.02207,0l17.31126,-56.14914l17.31126,56.14914l56.02206,0l-45.32273,34.70168l17.31215,56.14914l-45.32274,-34.70262l-45.32274,34.70262l17.31215,-56.14914l-45.32274,-34.70168z", - stroke: starOutlineColor - }), - wp.element.createElement("path", { - className: "star", - id: "star" + i, - mask: "url(#uagb_review_star_filter-" + id + "-" + i + ")", - fill: _this2.state.displayColor, - strokeWidth: "2.5", - d: "m0.75,56.89914l56.02207,0l17.31126,-56.14914l17.31126,56.14914l56.02206,0l-45.32273,34.70168l17.31215,56.14914l-45.32274,-34.70262l-45.32274,34.70262l17.31215,-56.14914l-45.32274,-34.70168z", - stroke: starOutlineColor - }) - ); - }) - ); - } - }]); + // Border + borderStyle: { + type: "string", + default: "solid" + }, + borderWidth: { + type: "number", + default: 1 + }, + borderRadius: { + type: "number" + }, + borderColor: { + type: "string", + default: "#333" + }, + borderHoverColor: { + type: "string" + }, - return Stars; -}(__WEBPACK_IMPORTED_MODULE_0_react__["Component"]); + // Background + vPadding: { + type: "number", + default: 8 + }, + hPadding: { + type: "number", + default: 20 + }, + vPaddingTablet: { + type: "number" + }, + hPaddingTablet: { + type: "number" + }, + vPaddingMobile: { + type: "number" + }, + hPaddingMobile: { + type: "number" + }, + paddingType: { + type: "string", + default: "px" + }, + backgroundType: { + type: "string", + default: "color" + }, + backgroundColor: { + type: "string", + default: "#eeeeee" + }, + backgroundHoverColor: { + type: "string" + }, + gradientColor1: { + type: "string" + }, + gradientColor2: { + type: "string" + }, + gradientType: { + type: "string", + default: "linear" + }, + gradientLocation1: { + type: "number", + default: 0 + }, + gradientLocation2: { + type: "number", + default: 100 + }, + gradientAngle: { + type: "number", + default: 0 + }, + backgroundOpacity: { + type: "number" + }, + backgroundHoverOpacity: { + type: "number" + }, -var ReviewBody = function (_Component2) { - _inherits(ReviewBody, _Component2); + //Colors + titleColor: { + type: "string", + default: "#333" + }, + titleHoverColor: { + type: "string" + }, + iconColor: { + type: "string", + default: "#333" + }, + iconHoverColor: { + type: "string" + }, + prefixColor: { + type: "string", + default: "#333" + }, + prefixHoverColor: { + type: "string" + }, - function ReviewBody(props) { - _classCallCheck(this, ReviewBody); + // Label and Sub Label + heading: { + source: "html", + selector: "h1,h2,h3,h4,h5,h6,p,span", + default: "Subscribe Now" + }, + prefix: { + source: "html", + selector: "p", + default: "Get access to Premium Features for FREE for a year!" + }, - var _this3 = _possibleConstructorReturn(this, (ReviewBody.__proto__ || Object.getPrototypeOf(ReviewBody)).call(this, props)); + // Icon attributes + icon: { + type: "string", + default: "external-link-alt" + }, + iconPosition: { + type: "string", + default: "before" + }, + iconSpace: { + type: "number", + default: 10 + }, - _this3.state = { - average: _this3.props.items.map(function (i) { - return i.value; - }).reduce(function (total, v) { - return total + v; - }) / _this3.props.items.length - }; - return _this3; + // Typography + // Title Font Family + titleLoadGoogleFonts: { + type: "boolean", + default: false + }, + titleFontFamily: { + type: "string", + default: "Default" + }, + titleFontWeight: { + type: "string" + }, + titleFontSubset: { + type: "string" + }, + // Title Font Size + titleFontSize: { + type: "number", + default: 20 + }, + titleFontSizeType: { + type: "string", + default: "px" + }, + titleFontSizeTablet: { + type: "number", + default: 20 + }, + titleFontSizeMobile: { + type: "number", + default: 20 + }, + // Title Line Height + titleLineHeightType: { + type: "string", + default: "em" + }, + titleLineHeight: { + type: "number" + }, + titleLineHeightTablet: { + type: "number" + }, + titleLineHeightMobile: { + type: "number" + }, + titleTag: { + type: "string", + default: "h6" + }, + // Prefix Font Family + prefixLoadGoogleFonts: { + type: "boolean", + default: false + }, + prefixFontFamily: { + type: "string", + default: "Default" + }, + prefixFontWeight: { + type: "string" + }, + prefixFontSubset: { + type: "string" + }, + // Prefix Font Size + prefixFontSize: { + type: "number", + default: 14 + }, + prefixFontSizeType: { + type: "string", + default: "px" + }, + prefixFontSizeTablet: { + type: "number", + default: 14 + }, + prefixFontSizeMobile: { + type: "number", + default: 14 + }, + // Prefix Line Height + prefixLineHeightType: { + type: "string", + default: "em" + }, + prefixLineHeight: { + type: "number" + }, + prefixLineHeightTablet: { + type: "number" + }, + prefixLineHeightMobile: { + type: "number" + }, + // Icon Font Size + iconFontSize: { + type: "number", + default: 20 + }, + iconFontSizeType: { + type: "string", + default: "px" + }, + iconFontSizeTablet: { + type: "number", + default: 20 + }, + iconFontSizeMobile: { + type: "number", + default: 20 } +}; - _createClass(ReviewBody, [{ - key: "render", - value: function render() { - var _this4 = this; - - var _props3 = this.props, - ID = _props3.ID, - items = _props3.items, - summaryTitle = _props3.summaryTitle, - summaryDescription = _props3.summaryDescription, - starCount = _props3.starCount, - setItems = _props3.setItems, - setSummaryDescription = _props3.setSummaryDescription, - setSummaryTitle = _props3.setSummaryTitle, - setTitle = _props3.setTitle, - setDescription = _props3.setDescription, - setAuthorName = _props3.setAuthorName, - inactiveStarColor = _props3.inactiveStarColor, - activeStarColor = _props3.activeStarColor, - selectedStarColor = _props3.selectedStarColor, - starOutlineColor = _props3.starOutlineColor, - ctaTarget = _props3.ctaTarget, - ctaLink = _props3.ctaLink, - setActiveStarIndex = _props3.setActiveStarIndex, - rTitle = _props3.rTitle, - rContent = _props3.rContent, - rAuthor = _props3.rAuthor, - headingTag = _props3.headingTag, - image_icon_html = _props3.image_icon_html, - showfeature = _props3.showfeature, - imageEnabled = _props3.imageEnabled, - descriptionEnabled = _props3.descriptionEnabled, - showauthor = _props3.showauthor; - var average = this.state.average; - +/* harmony default export */ __webpack_exports__["a"] = (attributes); - var newAverage = items.map(function (i) { - return i.value; - }).reduce(function (total, v) { - return total + v; - }) / items.length; +/***/ }), +/* 232 */ +/*!****************************************************!*\ + !*** ./src/blocks/table-of-contents/attributes.js ***! + \****************************************************/ +/*! exports provided: default */ +/*! exports used: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { - if (average !== newAverage) { - this.setState({ average: newAverage }); - } +"use strict"; +var __ = wp.i18n.__; - var target = "_self"; - var rel = "noopener noreferrer"; - if (ctaTarget) { - target = "_blank"; - } - - return wp.element.createElement( - "div", - { className: "uagb_review_block" }, - wp.element.createElement( - "a", - { - href: ctaLink, - className: "uagb-rating-link-wrapper", - target: target, - rel: rel - }, - wp.element.createElement(RichText, { - tagName: headingTag, - placeholder: __('Title of the review', 'ultimate-addons-for-gutenberg'), - keepPlaceholderOnFocus: true, - value: rTitle, - className: "uagb-rating-title", - onChange: function onChange(text) { - return setTitle(text); - } - }) - ), - descriptionEnabled === true && wp.element.createElement(RichText, { - tagName: "p", - placeholder: __('Review Description', 'ultimate-addons-for-gutenberg'), - keepPlaceholderOnFocus: true, - value: rContent, - className: "uagb-rating-desc", - onChange: function onChange(text) { - return setDescription(text); - } - }), - showauthor === true && wp.element.createElement(RichText, { - tagName: "p", - placeholder: __('Review Author', 'ultimate-addons-for-gutenberg'), - keepPlaceholderOnFocus: true, - value: rAuthor, - className: "uagb-rating-author", - onChange: function onChange(text) { - return setAuthorName(text); - } - }), - imageEnabled === true && wp.element.createElement( - "div", - { className: "uagb-rating__source-wrap" }, - image_icon_html - ), - items.map(function (j, i) { - return showfeature === true && wp.element.createElement( - "div", - { className: "uagb_review_entry" }, - wp.element.createElement(RichText, { - style: { marginRight: "auto" }, - key: i, - placeholder: __("Edit feature"), - value: j.label, - onChange: function onChange(text) { - return setItems([].concat(_toConsumableArray(items.slice(0, i)), [{ label: text, value: j.value }], _toConsumableArray(items.slice(i + 1)))); - } - }), - wp.element.createElement( - "div", - { - key: i, - style: { - marginLeft: "auto", - minWidth: items.length > 1 ? 120 : 100 - } - }, - items.length > 1 && wp.element.createElement("div", { - className: "dashicons dashicons-trash", - onClick: function onClick() { - var newItems = items.slice(0, i).concat(items.slice(i + 1, items.length)); - setItems(newItems); - _this4.setState({ - average: newItems.map(function (i) { - return i.value; - }).reduce(function (total, v) { - return total + v; - }) / newItems.length - }); - } - }), - wp.element.createElement(Stars, { - id: ID + "-" + i, - key: i, - value: j.value, - limit: starCount, - setValue: function setValue(newValue) { - var newArray = [].concat(_toConsumableArray(items.slice(0, i)), [{ label: j.label, value: newValue }], _toConsumableArray(items.slice(i + 1))); - setItems(newArray); - setActiveStarIndex(i); - _this4.setState({ - average: newArray.map(function (i) { - return i.value; - }).reduce(function (total, v) { - return total + v; - }) / newArray.length - }); - }, - inactiveStarColor: inactiveStarColor, - activeStarColor: activeStarColor, - selectedStarColor: selectedStarColor, - starOutlineColor: starOutlineColor - }) - ) - ); - }), - showfeature === true && wp.element.createElement("div", { - title: __("Insert new review entry"), - onClick: function onClick() { - setItems([].concat(_toConsumableArray(items), [{ label: "", value: 0 }])); - _this4.setState({ - average: average / (items.length + 1) - }); - }, - className: "uagb_review_add_entry dashicons dashicons-plus-alt" - }), - wp.element.createElement( - "div", - { className: "uagb_review_summary" }, - wp.element.createElement(RichText, { - className: "uagb_review_summary_title", - placeholder: __("Title of the summary goes here"), - tagName: "p", - onChange: function onChange(text) { - return setSummaryTitle(text); - }, - value: summaryTitle - }), - wp.element.createElement( - "div", - { className: "uagb_review_overall_value" }, - wp.element.createElement(RichText, { - placeholder: __("Summary of the review goes here"), - onChange: function onChange(text) { - return setSummaryDescription(text); - }, - value: summaryDescription - }), - wp.element.createElement( - "div", - { className: "uagb_review_average" }, - wp.element.createElement( - "span", - { className: "uagb_review_rating" }, - Math.round(average * 10) / 10 - ), - wp.element.createElement(Stars, { - id: ID + "-average", - className: "uagb_review_average_stars", - onHover: function onHover() { - return null; - }, - onClick: function onClick() { - return null; - }, - value: average, - limit: starCount, - inactiveStarColor: inactiveStarColor, - activeStarColor: activeStarColor, - selectedStarColor: selectedStarColor, - starOutlineColor: starOutlineColor - }) - ) - ) - ) - ); - } - }]); - - return ReviewBody; -}(__WEBPACK_IMPORTED_MODULE_0_react__["Component"]); - -/***/ }), -/* 187 */ -/*!***********************!*\ - !*** ./src/blocks.js ***! - \***********************/ -/*! exports provided: */ -/*! all exports used */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__blocks_advanced_heading_block_js__ = __webpack_require__(/*! ./blocks/advanced-heading/block.js */ 188); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__blocks_post_block_js__ = __webpack_require__(/*! ./blocks/post/block.js */ 288); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__blocks_section_block_js__ = __webpack_require__(/*! ./blocks/section/block.js */ 390); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__blocks_buttons_block_js__ = __webpack_require__(/*! ./blocks/buttons/block.js */ 397); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__blocks_buttons_child_block_js__ = __webpack_require__(/*! ./blocks/buttons-child/block.js */ 405); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__blocks_info_box_block_js__ = __webpack_require__(/*! ./blocks/info-box/block.js */ 420); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__blocks_testimonial_block_js__ = __webpack_require__(/*! ./blocks/testimonial/block.js */ 429); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__blocks_team_block_js__ = __webpack_require__(/*! ./blocks/team/block.js */ 437); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__blocks_social_share_block_js__ = __webpack_require__(/*! ./blocks/social-share/block.js */ 444); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__blocks_social_share_child_block_js__ = __webpack_require__(/*! ./blocks/social-share-child/block.js */ 452); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__blocks_google_map_block_js__ = __webpack_require__(/*! ./blocks/google-map/block.js */ 459); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__blocks_icon_list_block_js__ = __webpack_require__(/*! ./blocks/icon-list/block.js */ 461); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__blocks_icon_list_child_block_js__ = __webpack_require__(/*! ./blocks/icon-list-child/block.js */ 469); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__blocks_price_list_block_js__ = __webpack_require__(/*! ./blocks/price-list/block.js */ 476); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__blocks_price_list_child_block_js__ = __webpack_require__(/*! ./blocks/price-list-child/block.js */ 483); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__blocks_timeline_block_js__ = __webpack_require__(/*! ./blocks/timeline/block.js */ 488); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_16__blocks_call_to_action_block_js__ = __webpack_require__(/*! ./blocks/call-to-action/block.js */ 507); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_17__blocks_column_block_js__ = __webpack_require__(/*! ./blocks/column/block.js */ 515); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_18__blocks_columns_block_js__ = __webpack_require__(/*! ./blocks/columns/block.js */ 523); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_19__blocks_cf7_styler_block_js__ = __webpack_require__(/*! ./blocks/cf7-styler/block.js */ 542); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_20__blocks_gf_styler_block_js__ = __webpack_require__(/*! ./blocks/gf-styler/block.js */ 547); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_21__blocks_blockquote_block_js__ = __webpack_require__(/*! ./blocks/blockquote/block.js */ 552); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_22__blocks_marketing_button_block_js__ = __webpack_require__(/*! ./blocks/marketing-button/block.js */ 560); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_23__blocks_table_of_contents_block_js__ = __webpack_require__(/*! ./blocks/table-of-contents/block.js */ 567); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_24__blocks_how_to_block_js__ = __webpack_require__(/*! ./blocks/how-to/block.js */ 576); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_25__blocks_faq_block_js__ = __webpack_require__(/*! ./blocks/faq/block.js */ 583); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_26__blocks_faq_child_block_js__ = __webpack_require__(/*! ./blocks/faq-child/block.js */ 590); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_27__blocks_inline_notice_block_js__ = __webpack_require__(/*! ./blocks/inline-notice/block.js */ 596); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_28__blocks_wp_search_block_js__ = __webpack_require__(/*! ./blocks/wp-search/block.js */ 603); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_29__blocks_review_block_js__ = __webpack_require__(/*! ./blocks/review/block.js */ 610); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_30__blocks_taxonomy_list_block_js__ = __webpack_require__(/*! ./blocks/taxonomy-list/block.js */ 618); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_31__dist_blocks_uagb_controls_block_icons__ = __webpack_require__(/*! ../dist/blocks/uagb-controls/block-icons */ 1); -/** - * Gutenberg Blocks - * - * All blocks related JavaScript files should be imported here. - * You can create a new block folder in this dir and include code - * for that block here as well. - * - * All blocks should be included here since this is the file that - * Webpack is compiling as the input file. - */ +var attributes = { + block_id: { + type: "string", + default: "not_set" + }, + classMigrate: { + type: "boolean", + default: false + }, + disableBullets: { + type: "boolean", + default: false + }, + makeCollapsible: { + type: "boolean", + default: false + }, + initialCollapse: { + type: "boolean", + default: false + }, + icon: { + type: "string", + default: "fa-angle-down" + }, + iconSize: { + type: "number" + }, + iconColor: { + type: "string" + }, + bulletColor: { + type: "string" + }, + smoothScroll: { + type: "boolean", + default: true + }, + smoothScrollDelay: { + type: "number", + default: 800 + }, + smoothScrollOffset: { + type: "number", + default: 30 + }, + scrollToTop: { + type: "boolean", + default: false + }, + scrollToTopColor: { + type: "string" + }, + scrollToTopBgColor: { + type: "string" + }, + mappingHeaders: { + type: 'array', + default: Array(6).fill(true) + }, + align: { + type: "string", + default: "left" + }, + headerLinks: { + type: 'html', + default: '' + }, + heading: { + type: "string", + selector: ".uagb-toc__title", + default: __("Table Of Contents", 'ultimate-addons-for-gutenberg') + }, + customWidth: { + type: "boolean", + default: false + }, + widthTypeDesktop: { + type: "string", + default: "%" + }, + widthTypeTablet: { + type: "string", + default: "%" + }, + widthTypeMobile: { + type: "string", + default: "%" + }, + widthDesktop: { + type: "number", + default: 100 + }, + widthTablet: { + type: "number" + }, + widthMobile: { + type: "number" + }, + tColumnsDesktop: { + type: "number", + default: 1 + }, + tColumnsTablet: { + type: "number", + default: 1 + }, + tColumnsMobile: { + type: "number", + default: 1 + }, + // Color + backgroundColor: { + type: "string", + default: "#eee" + }, + linkColor: { + type: "string", + default: "#333" + }, + linkHoverColor: { + type: "string" + }, + headingColor: { + type: "string" + }, + // Padding + vPaddingDesktop: { + type: "number", + default: 30 + }, + hPaddingDesktop: { + type: "number", + default: 30 + }, + vPaddingTablet: { + type: "number" + }, + hPaddingTablet: { + type: "number" + }, + vPaddingMobile: { + type: "number" + }, + hPaddingMobile: { + type: "number" + }, + // Margin + vMarginDesktop: { + type: "number" + }, + hMarginDesktop: { + type: "number" + }, + vMarginTablet: { + type: "number" + }, + hMarginTablet: { + type: "number" + }, + vMarginMobile: { + type: "number" + }, + hMarginMobile: { + type: "number" + }, + marginTypeDesktop: { + type: "string", + default: "px" + }, + marginTypeTablet: { + type: "string", + default: "px" + }, + marginTypeMobile: { + type: "string", + default: "px" + }, + headingBottom: { + type: "number" + }, + paddingTypeDesktop: { + type: "string", + default: "px" + }, + paddingTypeTablet: { + type: "string", + default: "px" + }, + paddingTypeMobile: { + type: "string", + default: "px" + }, + // Content Padding + contentPaddingDesktop: { + type: "number" + }, + contentPaddingTablet: { + type: "number" + }, + contentPaddingMobile: { + type: "number" + }, + contentPaddingTypeDesktop: { + type: "string", + default: "px" + }, + contentPaddingTypeTablet: { + type: "string", + default: "px" + }, + contentPaddingTypeMobile: { + type: "string", + default: "px" + }, + // Border + borderStyle: { + type: "string", + default: "solid" + }, + borderWidth: { + type: "number", + default: 1 + }, + borderRadius: { + type: "number" + }, + borderColor: { + type: "string", + default: "#333" + }, + // Typography + // Link Font Family + loadGoogleFonts: { + type: "boolean", + default: false + }, + fontFamily: { + type: "string", + default: "Default" + }, + fontWeight: { + type: "string" + }, + fontSubset: { + type: "string" + }, + // Link Font Size + fontSize: { + type: "number" + }, + fontSizeType: { + type: "string", + default: "px" + }, + fontSizeTablet: { + type: "number" + }, + fontSizeMobile: { + type: "number" + }, + // Link Line Height + lineHeightType: { + type: "string", + default: "em" + }, + lineHeight: { + type: "number" + }, + lineHeightTablet: { + type: "number" + }, + lineHeightMobile: { + type: "number" + }, + // Link Font Family + headingLoadGoogleFonts: { + type: "boolean", + default: false + }, + headingFontFamily: { + type: "string", + default: "Default" + }, + headingFontWeight: { + type: "string", + default: "500" + }, + headingFontSubset: { + type: "string" + }, + // Link Font Size + headingFontSize: { + type: "number", + default: 20 + }, + headingFontSizeType: { + type: "string", + default: "px" + }, + headingFontSizeTablet: { + type: "number" + }, + headingFontSizeMobile: { + type: "number" + }, + // Link Line Height + headingLineHeightType: { + type: "string", + default: "em" + }, + headingLineHeight: { + type: "number" + }, + headingLineHeightTablet: { + type: "number" + }, + headingLineHeightMobile: { + type: "number" + }, + headingAlignment: { + type: "string", + default: "left" + }, + emptyHeadingTeaxt: { + type: "string", + default: __('Add a header to begin generating the table of contents', 'ultimate-addons-for-gutenberg') + } +}; +/* harmony default export */ __webpack_exports__["a"] = (attributes); +/***/ }), +/* 233 */ +/*!*********************************************!*\ + !*** ./src/blocks/table-of-contents/toc.js ***! + \*********************************************/ +/*! exports provided: default */ +/*! exports used: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { +"use strict"; +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } +var __ = wp.i18n.__; +var TableOfContents = function (_React$Component) { + _inherits(TableOfContents, _React$Component); + function TableOfContents() { + _classCallCheck(this, TableOfContents); + return _possibleConstructorReturn(this, (TableOfContents.__proto__ || Object.getPrototypeOf(TableOfContents)).apply(this, arguments)); + } + _createClass(TableOfContents, [{ + key: 'render', + value: function render() { + var _props = this.props, + mappingHeaders = _props.mappingHeaders, + headers = _props.headers; + var makeHeaderArray = function makeHeaderArray(origHeaders) { + var arrays = []; + origHeaders.filter(function (header) { + return mappingHeaders[header.tag - 1]; + }).forEach(function (header) { + var last = arrays.length - 1; + if (arrays.length === 0 || arrays[last][0].tag < header.tag) { + arrays.push([header]); + } else if (arrays[last][0].tag === header.tag) { + arrays[last].push(header); + } else { + while (arrays[last][0].tag > header.tag) { + if (arrays.length > 1) { + arrays[arrays.length - 2].push(arrays.pop()); + last = arrays.length - 1; + } else break; + } + if (arrays[last][0].tag === header.tag) { + arrays[last].push(header); + } + } + }); + while (arrays.length > 1 && arrays[arrays.length - 1][0].tag > arrays[arrays.length - 2][0].tag) { + arrays[arrays.length - 2].push(arrays.pop()); + } + return arrays[0]; + }; + var filterArray = function filterArray(origHeaders) { + var arrays = []; + headers.forEach(function (heading, key) { + if (mappingHeaders[heading.tag - 1]) { + arrays.push(heading); + } + }); + return makeHeaderArray(arrays); + }; + var counter = 0; + var ul_counter = 0; + var parseList = function parseList(list) { + var items = []; + if (list !== 'undefined' && list && list.length > 0) { + list.forEach(function (item) { + if (Array.isArray(item)) { + items.push(parseList(item)); + } else { + items.push(wp.element.createElement( + 'li', + { key: counter }, + wp.element.createElement('a', { + href: '#' + item.link, + dangerouslySetInnerHTML: { + __html: item.text + } + }) + )); + counter++; + } + }); + ul_counter++; + return wp.element.createElement( + 'ul', + { key: counter + '-' + ul_counter, className: 'uagb-toc__list' }, + items + ); + } + }; + if (mappingHeaders != 'undefined' && headers && headers.length > 0 && headers.filter(function (header) { + return mappingHeaders[header.tag - 1]; + }).length > 0) { + return wp.element.createElement( + 'div', + { className: 'uagb-toc__list-wrap' }, + parseList(filterArray(headers)) + ); + } else { + return wp.element.createElement( + 'p', + { className: 'uagb_table-of-contents-placeholder' }, + __('Add a header to begin generating the table of contents') + ); + } + } + }]); + return TableOfContents; +}(React.Component); +/* harmony default export */ __webpack_exports__["a"] = (TableOfContents); +/***/ }), +/* 234 */ +/*!*************************************************!*\ + !*** ./node_modules/striptags/src/striptags.js ***! + \*************************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { -var updateCategory = wp.blocks.updateCategory; +"use strict"; +var __WEBPACK_AMD_DEFINE_RESULT__; +(function (global) { -updateCategory("uagb", { - icon: __WEBPACK_IMPORTED_MODULE_31__dist_blocks_uagb_controls_block_icons__["a" /* default */].logo -}); + // minimal symbol polyfill for IE11 and others + if (typeof Symbol !== 'function') { + var Symbol = function(name) { + return name; + } -/***/ }), -/* 188 */ -/*!**********************************************!*\ - !*** ./src/blocks/advanced-heading/block.js ***! - \**********************************************/ -/*! exports provided: */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { + Symbol.nonNative = true; + } -"use strict"; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_block_icons__ = __webpack_require__(/*! ../../../dist/blocks/uagb-controls/block-icons */ 1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__attributes__ = __webpack_require__(/*! ./attributes */ 110); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__edit__ = __webpack_require__(/*! ./edit */ 189); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__save__ = __webpack_require__(/*! ./save */ 285); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__deprecated__ = __webpack_require__(/*! ./deprecated */ 286); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__transform__ = __webpack_require__(/*! ./transform */ 287); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__style_scss__ = __webpack_require__(/*! ./style.scss */ 140); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__style_scss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6__style_scss__); -/** - * BLOCK: Advanced Heading - */ + const STATE_PLAINTEXT = Symbol('plaintext'); + const STATE_HTML = Symbol('html'); + const STATE_COMMENT = Symbol('comment'); + const ALLOWED_TAGS_REGEX = /<(\w*)>/g; + const NORMALIZE_TAG_REGEX = /<\/?([^\s\/>]+)/; + function striptags(html, allowable_tags, tag_replacement) { + html = html || ''; + allowable_tags = allowable_tags || []; + tag_replacement = tag_replacement || ''; + let context = init_context(allowable_tags, tag_replacement); + return striptags_internal(html, context); + } + function init_striptags_stream(allowable_tags, tag_replacement) { + allowable_tags = allowable_tags || []; + tag_replacement = tag_replacement || ''; + let context = init_context(allowable_tags, tag_replacement); + return function striptags_stream(html) { + return striptags_internal(html || '', context); + }; + } + striptags.init_streaming_mode = init_striptags_stream; -var __ = wp.i18n.__; -var registerBlockType = wp.blocks.registerBlockType; + function init_context(allowable_tags, tag_replacement) { + allowable_tags = parse_allowable_tags(allowable_tags); + return { + allowable_tags : allowable_tags, + tag_replacement: tag_replacement, -registerBlockType("uagb/advanced-heading", { + state : STATE_PLAINTEXT, + tag_buffer : '', + depth : 0, + in_quote_char : '' + }; + } - title: uagb_blocks_info.blocks["uagb/advanced-heading"]["title"], - description: uagb_blocks_info.blocks["uagb/advanced-heading"]["description"], - icon: __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_block_icons__["a" /* default */].advanced_heading, - keywords: [__("advanced heading"), __("uag"), __("heading")], - supports: { - anchor: true - }, - example: { - attributes: { - headingTitle: __('Write a Heading'), - headingDesc: __('Write a Description') - } - }, - category: uagb_blocks_info.category, - attributes: __WEBPACK_IMPORTED_MODULE_1__attributes__["a" /* default */], - transform: __WEBPACK_IMPORTED_MODULE_5__transform__["a" /* default */], - edit: __WEBPACK_IMPORTED_MODULE_2__edit__["a" /* default */], - save: __WEBPACK_IMPORTED_MODULE_3__save__["a" /* default */], - deprecated: __WEBPACK_IMPORTED_MODULE_4__deprecated__["a" /* default */] -}); + function striptags_internal(html, context) { + let allowable_tags = context.allowable_tags; + let tag_replacement = context.tag_replacement; -/***/ }), -/* 189 */ -/*!*********************************************!*\ - !*** ./src/blocks/advanced-heading/edit.js ***! - \*********************************************/ -/*! exports provided: default */ -/*! exports used: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { + let state = context.state; + let tag_buffer = context.tag_buffer; + let depth = context.depth; + let in_quote_char = context.in_quote_char; + let output = ''; -"use strict"; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_classnames__ = __webpack_require__(/*! classnames */ 0); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_classnames__); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__styling__ = __webpack_require__(/*! ./styling */ 190); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__components_typography__ = __webpack_require__(/*! ../../components/typography */ 7); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__components_typography_fontloader__ = __webpack_require__(/*! ../../components/typography/fontloader */ 8); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__style_scss__ = __webpack_require__(/*! ./style.scss */ 140); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__style_scss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4__style_scss__); -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + for (let idx = 0, length = html.length; idx < length; idx++) { + let char = html[idx]; -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + if (state === STATE_PLAINTEXT) { + switch (char) { + case '<': + state = STATE_HTML; + tag_buffer += char; + break; -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } + default: + output += char; + break; + } + } -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } + else if (state === STATE_HTML) { + switch (char) { + case '<': + // ignore '<' if inside a quote + if (in_quote_char) { + break; + } -/** - * BLOCK: Advanced Heading - */ + // we're seeing a nested '<' + depth++; + break; -// Import block dependencies and components. + case '>': + // ignore '>' if inside a quote + if (in_quote_char) { + break; + } + // something like this is happening: '<<>>' + if (depth) { + depth--; + break; + } -// Import all of our Text Options requirements. + // this is closing the tag in tag_buffer + in_quote_char = ''; + state = STATE_PLAINTEXT; + tag_buffer += '>'; + if (allowable_tags.has(normalize_tag(tag_buffer))) { + output += tag_buffer; + } else { + output += tag_replacement; + } -// Import Web font loader for google fonts. + tag_buffer = ''; + break; + case '"': + case '\'': + // catch both single and double quotes -// Import CSS. + if (char === in_quote_char) { + in_quote_char = ''; + } else { + in_quote_char = in_quote_char || char; + } + tag_buffer += char; + break; -var __ = wp.i18n.__; -var createBlock = wp.blocks.createBlock; -var _wp$blockEditor = wp.blockEditor, - AlignmentToolbar = _wp$blockEditor.AlignmentToolbar, - BlockControls = _wp$blockEditor.BlockControls, - InspectorControls = _wp$blockEditor.InspectorControls, - RichText = _wp$blockEditor.RichText, - ColorPalette = _wp$blockEditor.ColorPalette; -var _wp$components = wp.components, - PanelBody = _wp$components.PanelBody, - SelectControl = _wp$components.SelectControl, - RangeControl = _wp$components.RangeControl, - ButtonGroup = _wp$components.ButtonGroup, - Button = _wp$components.Button; -var withSelect = wp.data.withSelect; -var _wp$element = wp.element, - Component = _wp$element.Component, - Fragment = _wp$element.Fragment; + case '-': + if (tag_buffer === '': + if (tag_buffer.slice(-2) == '--') { + // close the comment + state = STATE_PLAINTEXT; + } - // Assigning block_id in the attribute. - this.props.setAttributes({ classMigrate: true }); + tag_buffer = ''; + break; - var level_val = parseInt(this.props.attributes.headingTag.replace('h', '')); - this.props.setAttributes({ level: level_val }); + default: + tag_buffer += char; + break; + } + } + } - // Pushing Style tag for this block css. - var $style = document.createElement("style"); - $style.setAttribute("id", "uagb-adv-heading-style-" + this.props.clientId.substr(0, 8)); - document.head.appendChild($style); - } - }, { - key: "componentDidUpdate", - value: function componentDidUpdate(prevProps, prevState) { - var element = document.getElementById("uagb-adv-heading-style-" + this.props.clientId.substr(0, 8)); + // save the context for future iterations + context.state = state; + context.tag_buffer = tag_buffer; + context.depth = depth; + context.in_quote_char = in_quote_char; - if (null !== element && undefined !== element) { - element.innerHTML = __WEBPACK_IMPORTED_MODULE_1__styling__["a" /* default */](this.props); - } - } + return output; + } - /* - * Heading Tag Change - */ + function parse_allowable_tags(allowable_tags) { + let tag_set = new Set(); - }, { - key: "onTagChange", - value: function onTagChange(value) { - var setAttributes = this.props.setAttributes; + if (typeof allowable_tags === 'string') { + let match; + while ((match = ALLOWED_TAGS_REGEX.exec(allowable_tags))) { + tag_set.add(match[1]); + } + } - var level_val = parseInt(value.replace('h', '')); + else if (!Symbol.nonNative && + typeof allowable_tags[Symbol.iterator] === 'function') { - setAttributes({ level: level_val }); - setAttributes({ headingTag: value }); - } - }, { - key: "splitBlock", - value: function splitBlock(before, after) { - var _props = this.props, - attributes = _props.attributes, - insertBlocksAfter = _props.insertBlocksAfter, - setAttributes = _props.setAttributes, - onReplace = _props.onReplace; + tag_set = new Set(allowable_tags); + } - for (var _len = arguments.length, blocks = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { - blocks[_key - 2] = arguments[_key]; - } + else if (typeof allowable_tags.forEach === 'function') { + // IE11 compatible + allowable_tags.forEach(tag_set.add, tag_set); + } - if (after) { - // Append "After" content as a new paragraph block to the end of - // any other blocks being inserted after the current paragraph. - blocks.push(createBlock("core/paragraph", { content: after })); - } + return tag_set; + } - if (blocks.length && insertBlocksAfter) { - insertBlocksAfter(blocks); - } + function normalize_tag(tag_buffer) { + let match = NORMALIZE_TAG_REGEX.exec(tag_buffer); - var content = attributes.content; + return match ? match[1].toLowerCase() : null; + } - if (!before) { - // If before content is omitted, treat as intent to delete block. - onReplace([]); - } else if (content !== before) { - // Only update content if it has in-fact changed. In case that user - // has created a new paragraph at end of an existing one, the value - // of before will be strictly equal to the current content. - setAttributes({ content: before }); - } - } - }, { - key: "render", - value: function render() { - var _this2 = this; + if (true) { + // AMD + !(__WEBPACK_AMD_DEFINE_RESULT__ = (function module_factory() { return striptags; }).call(exports, __webpack_require__, exports, module), + __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); + } - // Setup the attributes - var _props2 = this.props, - className = _props2.className, - attributes = _props2.attributes, - setAttributes = _props2.setAttributes, - insertBlocksAfter = _props2.insertBlocksAfter, - mergeBlocks = _props2.mergeBlocks, - onReplace = _props2.onReplace, - _props2$attributes = _props2.attributes, - headingTitle = _props2$attributes.headingTitle, - headingDesc = _props2$attributes.headingDesc, - headingAlign = _props2$attributes.headingAlign, - headingColor = _props2$attributes.headingColor, - subHeadingColor = _props2$attributes.subHeadingColor, - separatorColor = _props2$attributes.separatorColor, - headingTag = _props2$attributes.headingTag, - headFontFamily = _props2$attributes.headFontFamily, - headFontWeight = _props2$attributes.headFontWeight, - headFontSubset = _props2$attributes.headFontSubset, - headFontSizeType = _props2$attributes.headFontSizeType, - headFontSize = _props2$attributes.headFontSize, - headFontSizeMobile = _props2$attributes.headFontSizeMobile, - headFontSizeTablet = _props2$attributes.headFontSizeTablet, - headLineHeightType = _props2$attributes.headLineHeightType, - headLineHeight = _props2$attributes.headLineHeight, - headLineHeightMobile = _props2$attributes.headLineHeightMobile, - headLineHeightTablet = _props2$attributes.headLineHeightTablet, - subHeadFontFamily = _props2$attributes.subHeadFontFamily, - subHeadFontWeight = _props2$attributes.subHeadFontWeight, - subHeadFontSubset = _props2$attributes.subHeadFontSubset, - subHeadFontSize = _props2$attributes.subHeadFontSize, - subHeadFontSizeType = _props2$attributes.subHeadFontSizeType, - subHeadFontSizeMobile = _props2$attributes.subHeadFontSizeMobile, - subHeadFontSizeTablet = _props2$attributes.subHeadFontSizeTablet, - subHeadLineHeight = _props2$attributes.subHeadLineHeight, - subHeadLineHeightType = _props2$attributes.subHeadLineHeightType, - subHeadLineHeightMobile = _props2$attributes.subHeadLineHeightMobile, - subHeadLineHeightTablet = _props2$attributes.subHeadLineHeightTablet, - separatorWidth = _props2$attributes.separatorWidth, - separatorWidthType = _props2$attributes.separatorWidthType, - seperatorStyle = _props2$attributes.seperatorStyle, - separatorHeight = _props2$attributes.separatorHeight, - headSpace = _props2$attributes.headSpace, - separatorSpace = _props2$attributes.separatorSpace, - headLoadGoogleFonts = _props2$attributes.headLoadGoogleFonts, - subHeadLoadGoogleFonts = _props2$attributes.subHeadLoadGoogleFonts; + else if (typeof module === 'object' && module.exports) { + // Node + module.exports = striptags; + } + else { + // Browser + global.striptags = striptags; + } +}(this)); - var loadHeadingGoogleFonts = void 0; - var loadSubHeadingGoogleFonts = void 0; - if (headLoadGoogleFonts == true) { +/***/ }), +/* 235 */ +/*!*****************************************!*\ + !*** ./src/blocks/how-to/attributes.js ***! + \*****************************************/ +/*! exports provided: default */ +/*! exports used: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { - var hconfig = { - google: { - families: [headFontFamily + (headFontWeight ? ':' + headFontWeight : '')] - } - }; +"use strict"; +/** + * BLOCK: UAGB How-To Schema Attributes + */ - loadHeadingGoogleFonts = wp.element.createElement(__WEBPACK_IMPORTED_MODULE_3__components_typography_fontloader__["a" /* default */], { config: hconfig }); - } +var __ = wp.i18n.__; - if (subHeadLoadGoogleFonts == true) { - var sconfig = { - google: { - families: [subHeadFontFamily + (subHeadFontWeight ? ':' + subHeadFontWeight : '')] - } - }; +var tools = []; - loadSubHeadingGoogleFonts = wp.element.createElement(__WEBPACK_IMPORTED_MODULE_3__components_typography_fontloader__["a" /* default */], { config: sconfig }); - } +var materials = []; - return wp.element.createElement( - Fragment, - null, - wp.element.createElement( - BlockControls, - { key: "controls" }, - wp.element.createElement(AlignmentToolbar, { - value: headingAlign, - onChange: function onChange(value) { - return setAttributes({ headingAlign: value }); - } - }) - ), - wp.element.createElement( - InspectorControls, - null, - wp.element.createElement( - PanelBody, - { title: __("Advanced Heading") }, - wp.element.createElement( - "h2", - null, - __("Heading") - ), - wp.element.createElement(SelectControl, { - label: __("Heading Tag"), - value: headingTag, - onChange: function onChange(value) { - _this2.onTagChange(value); - }, - options: [{ value: "h1", label: __("H1") }, { value: "h2", label: __("H2") }, { value: "h3", label: __("H3") }, { value: "h4", label: __("H4") }, { value: "h5", label: __("H5") }, { value: "h6", label: __("H6") }] - }), - wp.element.createElement(__WEBPACK_IMPORTED_MODULE_2__components_typography__["a" /* default */], { - label: __("Typography"), - attributes: attributes, - setAttributes: setAttributes, - loadGoogleFonts: { value: headLoadGoogleFonts, label: 'headLoadGoogleFonts' }, - fontFamily: { value: headFontFamily, label: 'headFontFamily' }, - fontWeight: { value: headFontWeight, label: 'headFontWeight' }, - fontSubset: { value: headFontSubset, label: 'headFontSubset' }, - fontSizeType: { value: headFontSizeType, label: 'headFontSizeType' }, - fontSize: { value: headFontSize, label: 'headFontSize' }, - fontSizeMobile: { value: headFontSizeMobile, label: 'headFontSizeMobile' }, - fontSizeTablet: { value: headFontSizeTablet, label: 'headFontSizeTablet' }, - lineHeightType: { value: headLineHeightType, label: 'headLineHeightType' }, - lineHeight: { value: headLineHeight, label: 'headLineHeight' }, - lineHeightMobile: { value: headLineHeightMobile, label: 'headLineHeightMobile' }, - lineHeightTablet: { value: headLineHeightTablet, label: 'headLineHeightTablet' } - }), - wp.element.createElement( - "p", - { className: "uagb-setting-label" }, - __("Heading Color"), - wp.element.createElement( - "span", - { className: "components-base-control__label" }, - wp.element.createElement("span", { className: "component-color-indicator", style: { backgroundColor: headingColor } }) - ) - ), - wp.element.createElement(ColorPalette, { - value: headingColor, - onChange: function onChange(value) { - return setAttributes({ headingColor: value }); - }, - allowReset: true - }), - wp.element.createElement("hr", { className: "uagb-editor__separator" }), - wp.element.createElement( - "h2", - null, - __("Sub-Heading") - ), - wp.element.createElement(__WEBPACK_IMPORTED_MODULE_2__components_typography__["a" /* default */], { - label: __("Typography"), - attributes: attributes, - setAttributes: setAttributes, - loadGoogleFonts: { value: subHeadLoadGoogleFonts, label: 'subHeadLoadGoogleFonts' }, - fontFamily: { value: subHeadFontFamily, label: 'subHeadFontFamily' }, - fontWeight: { value: subHeadFontWeight, label: 'subHeadFontWeight' }, - fontSubset: { value: subHeadFontSubset, label: 'subHeadFontSubset' }, - fontSizeType: { value: subHeadFontSizeType, label: 'subHeadFontSizeType' }, - fontSize: { value: subHeadFontSize, label: 'subHeadFontSize' }, - fontSizeMobile: { value: subHeadFontSizeMobile, label: 'subHeadFontSizeMobile' }, - fontSizeTablet: { value: subHeadFontSizeTablet, label: 'subHeadFontSizeTablet' }, - lineHeightType: { value: subHeadLineHeightType, label: 'subHeadLineHeightType' }, - lineHeight: { value: subHeadLineHeight, label: 'subHeadLineHeight' }, - lineHeightMobile: { value: subHeadLineHeightMobile, label: 'subHeadLineHeightMobile' }, - lineHeightTablet: { value: subHeadLineHeightTablet, label: 'subHeadLineHeightTablet' } - }), - wp.element.createElement( - "p", - { className: "uagb-setting-label" }, - __("Sub Heading Color"), - wp.element.createElement( - "span", - { className: "components-base-control__label" }, - wp.element.createElement("span", { className: "component-color-indicator", style: { backgroundColor: subHeadingColor } }) - ) - ), - wp.element.createElement(ColorPalette, { - value: subHeadingColor, - onChange: function onChange(value) { - return setAttributes({ subHeadingColor: value }); - }, - allowReset: true - }) - ), - wp.element.createElement( - PanelBody, - { title: __("Separator"), initialOpen: false }, - wp.element.createElement(SelectControl, { - label: __("Style"), - value: seperatorStyle, - onChange: function onChange(value) { - return setAttributes({ seperatorStyle: value }); - }, - options: [{ value: "none", label: __("None") }, { value: "solid", label: __("Solid") }, { value: "double", label: __("Double") }, { value: "dashed", label: __("Dashed") }, { value: "dotted", label: __("Dotted") }] - }), - seperatorStyle !== "none" && wp.element.createElement( - Fragment, - null, - wp.element.createElement(RangeControl, { - label: __("Thickness (px)"), - value: separatorHeight, - onChange: function onChange(value) { - return setAttributes({ separatorHeight: value }); - }, - min: 0, - max: 20, - beforeIcon: "", - allowReset: true, - initialPosition: 3 - }), - wp.element.createElement( - ButtonGroup, - { className: "uagb-size-type-field", "aria-label": __("Size Type") }, - wp.element.createElement( - Button, - { key: "px", className: "uagb-size-btn", isSmall: true, isPrimary: separatorWidthType === "px", "aria-pressed": separatorWidthType === "px", onClick: function onClick() { - return setAttributes({ separatorWidthType: "px" }); - } }, - "px" - ), - wp.element.createElement( - Button, - { key: "%", className: "uagb-size-btn", isSmall: true, isPrimary: separatorWidthType === "%", "aria-pressed": separatorWidthType === "%", onClick: function onClick() { - return setAttributes({ separatorWidthType: "%" }); - } }, - "%" - ) - ), - wp.element.createElement(RangeControl, { - label: __("Width"), - value: separatorWidth, - onChange: function onChange(value) { - return setAttributes({ separatorWidth: value }); - }, - min: 0, - max: "%" == separatorWidthType ? 100 : 500, - beforeIcon: "", - allowReset: true, - initialPosition: 20 - }), - seperatorStyle !== "none" && wp.element.createElement( - Fragment, - null, - wp.element.createElement( - "p", - { className: "uagb-setting-label" }, - __("Separator Color"), - wp.element.createElement( - "span", - { className: "components-base-control__label" }, - wp.element.createElement("span", { className: "component-color-indicator", style: { backgroundColor: separatorColor } }) - ) - ), - wp.element.createElement(ColorPalette, { - value: separatorColor, - onChange: function onChange(colorValue) { - return setAttributes({ separatorColor: colorValue }); - }, - allowReset: true - }) - ) - ) - ), - wp.element.createElement( - PanelBody, - { title: __("Spacing"), initialOpen: false }, - wp.element.createElement(RangeControl, { - label: __("Heading Bottom Spacing (px)"), - value: headSpace, - onChange: function onChange(value) { - return setAttributes({ headSpace: value }); - }, - min: 0, - max: 500, - beforeIcon: "", - allowReset: true, - initialPosition: 0 - }), - seperatorStyle !== "none" && wp.element.createElement(RangeControl, { - label: __("Separator Bottom Spacing (px)"), - value: separatorSpace, - onChange: function onChange(value) { - return setAttributes({ separatorSpace: value }); - }, - min: 0, - max: 500, - beforeIcon: "", - allowReset: true, - initialPosition: 0 - }) - ) - ), - wp.element.createElement( - "div", - { - className: __WEBPACK_IMPORTED_MODULE_0_classnames___default.a(className, "uagb-block-" + this.props.clientId.substr(0, 8)) - }, - wp.element.createElement(RichText, { - tagName: headingTag, - placeholder: __("Write a Heading"), - value: headingTitle, - className: "uagb-heading-text", - multiline: false, - onChange: function onChange(value) { - setAttributes({ headingTitle: value }); - }, - onMerge: mergeBlocks, - unstableOnSplit: insertBlocksAfter ? function (before, after) { - for (var _len2 = arguments.length, blocks = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) { - blocks[_key2 - 2] = arguments[_key2]; - } +tools.push({ + "add_required_tools": __("- A Computer.", 'ultimate-addons-for-gutenberg') +}); - setAttributes({ content: before }); - insertBlocksAfter([].concat(blocks, [createBlock("core/paragraph", { content: after })])); - } : undefined, - onRemove: function onRemove() { - return onReplace([]); - } - }), - seperatorStyle !== "none" && wp.element.createElement( - "div", - { className: "uagb-separator-wrap" }, - wp.element.createElement("div", { className: "uagb-separator" }) - ), - wp.element.createElement(RichText, { - tagName: "p", - placeholder: __("Write a Description"), - value: headingDesc, - className: "uagb-desc-text", - onChange: function onChange(value) { - return setAttributes({ headingDesc: value }); - }, - onMerge: mergeBlocks, - unstableOnSplit: this.splitBlock, - onRemove: function onRemove() { - return onReplace([]); - } - }) - ), - loadHeadingGoogleFonts, - loadSubHeadingGoogleFonts - ); +materials.push({ + "add_required_materials": __("- A WordPress Website.", 'ultimate-addons-for-gutenberg') +}); + +var attributes = { + block_id: { + type: "string" + }, + overallAlignment: { + type: "string", + default: "left" + }, + toolsTitle: { + type: "html", + default: __("Required Tools:", 'ultimate-addons-for-gutenberg') + }, + materialTitle: { + type: "html", + default: __("Things Needed?", 'ultimate-addons-for-gutenberg') + }, + stepsTitle: { + type: "html", + default: __("Steps to configure the How-to Schema:", 'ultimate-addons-for-gutenberg') + }, + tools_count: { + type: "number", + default: 1 + }, + material_count: { + type: "number", + default: 1 + }, + tools: { + type: "array", + default: tools + }, + materials: { + type: "array", + default: materials + }, + showTotaltime: { + type: "boolean", + default: true + }, + showEstcost: { + type: "boolean", + default: true + }, + showTools: { + type: "boolean", + default: true + }, + showMaterials: { + type: "boolean", + default: true + }, + mainimage: { + type: "object", + default: { + "url": "" } - }]); + }, + estCost: { + type: "html", + default: __("Total Cost:", 'ultimate-addons-for-gutenberg') + }, + timeNeeded: { + type: "html", + default: __("Total Time Needed :", 'ultimate-addons-for-gutenberg') + }, + timeIn: { + type: "html", + default: __(" Minutes", 'ultimate-addons-for-gutenberg') + }, + imgSize: { + type: "string", + default: "thumbnail" + }, + timeSpace: { + type: "number", + default: 5 + }, + costSpace: { + type: "number", + default: 5 + }, + time: { + type: "string", + default: "30" + }, + cost: { + type: "string", + default: "65" + }, + headingTitle: { + source: "html", + selector: "h1,h2,h3,h4,h5,h6", + default: __("How To Configure How-To Schema In Ultimate Addons For Gutenberg?", 'ultimate-addons-for-gutenberg') + }, + currencyType: { + type: "html", + default: " USD" + }, + headingDesc: { + source: "html", + selector: "p", + default: __("So to get started, you will just need to drag-n-drop the How-to Schema block in the Gutenberg editor. The How-to Schema block can be used on pages that contain a How-to in their title and describe steps to achieve certain requirements.", 'ultimate-addons-for-gutenberg') + }, + headingAlign: { + type: "string", + default: "left" + }, + descriptionAlign: { + type: "string", + default: "left" + }, + headingColor: { + type: "string" + }, + showEstcostcolor: { + type: "string" + }, + showTotaltimecolor: { + type: "string", + default: "" + }, + subHeadingColor: { + type: "string", + default: "" + }, + headingTag: { + type: "string", + default: "h3" + }, + headSpace: { + type: "number", + default: 15 + }, + headFontFamily: { + type: "string", + default: "Default" + }, + headFontWeight: { + type: "string" + }, + headFontSubset: { + type: "string" + }, + headFontSizeType: { + type: "string", + default: "px" + }, + headLineHeightType: { + type: "string", + default: "em" + }, + headFontSize: { + type: "number" + }, + headFontSizeTablet: { + type: "number" + }, + headFontSizeMobile: { + type: "number" + }, + headLineHeight: { + type: "number" + }, + headLineHeightTablet: { + type: "number" + }, + headLineHeightMobile: { + type: "number" + }, + subHeadFontFamily: { + type: "string", + default: "Default" + }, + subHeadFontWeight: { + type: "string" + }, + subHeadFontSubset: { + type: "string" + }, + subHeadFontSize: { + type: "number" + }, + subHeadFontSizeType: { + type: "string", + default: "px" + }, + subHeadFontSizeTablet: { + type: "number" + }, + subHeadFontSizeMobile: { + type: "number" + }, + subHeadLineHeight: { + type: "number" + }, + subHeadLineHeightType: { + type: "string", + default: "em" + }, + subHeadLineHeightTablet: { + type: "number" + }, + subHeadLineHeightMobile: { + type: "number" + }, + separatorSpace: { + type: "number", + default: 15 + }, + headLoadGoogleFonts: { + type: "boolean", + default: false + }, + subHeadLoadGoogleFonts: { + type: "boolean", + default: false + }, + priceFontSizeType: { + type: "string", + default: "px" + }, + priceFontSize: { + type: "number" + }, + priceFontSizeTablet: { + type: "number" + }, + priceFontSizeMobile: { + type: "number" + }, + priceFontFamily: { + type: "string", + default: "Default" + }, + priceFontWeight: { + type: "string" + }, + priceFontSubset: { + type: "string" + }, + priceLineHeightType: { + type: "string", + default: "em" + }, + priceLineHeight: { + type: "number" + }, + priceLineHeightTablet: { + type: "number" + }, + priceLineHeightMobile: { + type: "number" + }, + priceLoadGoogleFonts: { + type: "boolean", + default: false + }, + row_gap: { + type: "number", + default: 20 + }, + step_gap: { + type: "number" + }, + schema: { + type: "html", + default: "" + }, + timeInMins: { + type: "number" - return UAGBAdvancedHeading; -}(Component); + }, + timeInHours: { + type: "number" + }, + timeInDays: { + type: "number" + }, + timeInMonths: { + type: "number" + }, + timeInYears: { + type: "number" + } -/* harmony default export */ __webpack_exports__["a"] = (withSelect(function (select, props) { - var attributes = props.attributes; +}; - return { - anchor: attributes.headingId - }; -})(UAGBAdvancedHeading)); +/* harmony default export */ __webpack_exports__["a"] = (attributes); /***/ }), -/* 190 */ -/*!************************************************!*\ - !*** ./src/blocks/advanced-heading/styling.js ***! - \************************************************/ +/* 236 */ +/*!**************************************!*\ + !*** ./src/blocks/how-to/style.scss ***! + \**************************************/ +/*! dynamic exports provided */ +/***/ (function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ }), +/* 237 */ +/*!**************************************!*\ + !*** ./src/blocks/faq/attributes.js ***! + \**************************************/ /*! exports provided: default */ /*! exports used: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSS__ = __webpack_require__(/*! ../../../dist/blocks/uagb-controls/generateCSS */ 5); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__ = __webpack_require__(/*! ../../../dist/blocks/uagb-controls/generateCSSUnit */ 4); -/** - * Returns Dynamic Generated CSS - */ - - - - -function styling(props) { - var _props$attributes = props.attributes, - classMigrate = _props$attributes.classMigrate, - headingAlign = _props$attributes.headingAlign, - headingTag = _props$attributes.headingTag, - headingColor = _props$attributes.headingColor, - headSpace = _props$attributes.headSpace, - seperatorStyle = _props$attributes.seperatorStyle, - separatorHeight = _props$attributes.separatorHeight, - separatorWidth = _props$attributes.separatorWidth, - separatorWidthType = _props$attributes.separatorWidthType, - separatorColor = _props$attributes.separatorColor, - separatorSpace = _props$attributes.separatorSpace, - subHeadingColor = _props$attributes.subHeadingColor, - headFontFamily = _props$attributes.headFontFamily, - headFontWeight = _props$attributes.headFontWeight, - headFontSize = _props$attributes.headFontSize, - headFontSizeType = _props$attributes.headFontSizeType, - headFontSizeMobile = _props$attributes.headFontSizeMobile, - headFontSizeTablet = _props$attributes.headFontSizeTablet, - headLineHeight = _props$attributes.headLineHeight, - headLineHeightType = _props$attributes.headLineHeightType, - headLineHeightMobile = _props$attributes.headLineHeightMobile, - headLineHeightTablet = _props$attributes.headLineHeightTablet, - subHeadFontFamily = _props$attributes.subHeadFontFamily, - subHeadFontWeight = _props$attributes.subHeadFontWeight, - subHeadFontSize = _props$attributes.subHeadFontSize, - subHeadFontSizeType = _props$attributes.subHeadFontSizeType, - subHeadFontSizeMobile = _props$attributes.subHeadFontSizeMobile, - subHeadFontSizeTablet = _props$attributes.subHeadFontSizeTablet, - subHeadLineHeight = _props$attributes.subHeadLineHeight, - subHeadLineHeightType = _props$attributes.subHeadLineHeightType, - subHeadLineHeightMobile = _props$attributes.subHeadLineHeightMobile, - subHeadLineHeightTablet = _props$attributes.subHeadLineHeightTablet; - - - var tablet_selectors = {}; - var mobile_selectors = {}; - - var selectors = { - " .uagb-separator-wrap": { - "text-align": headingAlign - }, - " .block-editor-rich-text__editable.uagb-desc-text": { - "text-align": headingAlign, - "font-family": subHeadFontFamily, - "font-weight": subHeadFontWeight, - "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](subHeadFontSize, subHeadFontSizeType), - "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](subHeadLineHeight, subHeadLineHeightType), - "color": subHeadingColor - } - }; - - selectors[" " + headingTag + ".block-editor-rich-text__editable.uagb-heading-text"] = { - "text-align": headingAlign, - "font-family": headFontFamily, - "font-weight": headFontWeight, - "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](headFontSize, headFontSizeType), - "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](headLineHeight, headLineHeightType), - "color": headingColor, - "margin-bottom": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](headSpace, "px") - }; - - if (seperatorStyle !== "none") { - selectors[" .uagb-separator"] = { - "border-top-style": seperatorStyle, - "border-top-width": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](separatorHeight, "px"), - "width": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](separatorWidth, separatorWidthType), - "border-color": separatorColor, - "margin-bottom": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](separatorSpace, "px") - }; +var attributes = { + block_id: { + type: "string" + }, + layout: { + type: "string", + default: "accordion" + }, + inactiveOtherItems: { + type: "boolean", + default: true + }, + expandFirstItem: { + type: "boolean", + default: false + }, + enableSchemaSupport: { + type: "boolean", + default: false + }, + align: { + type: "string", + default: "left" + }, + enableSeparator: { + type: "boolean", + default: false + }, + rowsGap: { + type: "number", + default: 10 + }, + columnsGap: { + type: "number", + default: 10 + }, + boxBgColor: { + type: "string", + default: "#FFFFFF" + }, + boxPaddingTypeMobile: { + type: "string", + default: "px" + }, + boxPaddingTypeTablet: { + type: "string", + default: "px" + }, + boxPaddingTypeDesktop: { + type: "string", + default: "px" + }, + vBoxPaddingMobile: { + type: "number", + default: 10 + }, + hBoxPaddingMobile: { + type: "number", + default: 10 + }, + vBoxPaddingTablet: { + type: "number", + default: 10 + }, + hBoxPaddingTablet: { + type: "number", + default: 10 + }, + vBoxPaddingDesktop: { + type: "number", + default: 10 + }, + hBoxPaddingDesktop: { + type: "number", + default: 10 + }, + borderStyle: { + type: "string", + default: "solid" + }, + borderWidth: { + type: "number", + default: 1 + }, + borderRadius: { + type: "number", + default: 2 + }, + borderColor: { + type: "string", + default: "#D2D2D2" + }, + questionTextColor: { + type: "string", + default: "#313131" + }, + questionTextActiveColor: { + type: "string", + default: "#656565" + }, + questionPaddingTypeDesktop: { + type: "string", + default: "px" + }, + vquestionPaddingMobile: { + type: "number", + default: 10 + }, + vquestionPaddingTablet: { + type: "number", + default: 10 + }, + vquestionPaddingDesktop: { + type: "number", + default: 10 + }, + hquestionPaddingMobile: { + type: "number", + default: 10 + }, + hquestionPaddingTablet: { + type: "number", + default: 10 + }, + hquestionPaddingDesktop: { + type: "number", + default: 10 + }, + answerTextColor: { + type: "string", + default: "#313131" + }, + answerPaddingTypeDesktop: { + type: "string", + default: "px" + }, + vanswerPaddingMobile: { + type: "number", + default: 10 + }, + vanswerPaddingTablet: { + type: "number", + default: 10 + }, + vanswerPaddingDesktop: { + type: "number", + default: 10 + }, + hanswerPaddingMobile: { + type: "number", + default: 10 + }, + hanswerPaddingTablet: { + type: "number", + default: 10 + }, + hanswerPaddingDesktop: { + type: "number", + default: 10 + }, + iconColor: { + type: "string" + }, + iconActiveColor: { + type: "string" + }, + gapBtwIconQUestion: { + type: "number", + default: 10 + }, + questionloadGoogleFonts: { + type: "boolean", + default: false + }, + answerloadGoogleFonts: { + type: "boolean", + default: false + }, + questionFontFamily: { + type: "string", + default: "Default" + }, + questionFontWeight: { + type: "string" + }, + questionFontSubset: { + type: "string" + }, + questionFontSize: { + type: "number" + }, + questionFontSizeType: { + type: "string", + default: "px" + }, + questionFontSizeTablet: { + type: "number" + }, + questionFontSizeMobile: { + type: "number" + }, + questionLineHeight: { + type: "number" + }, + questionLineHeightType: { + type: "string", + default: "em" + }, + questionLineHeightTablet: { + type: "number" + }, + questionLineHeightMobile: { + type: "number" + }, + answerFontFamily: { + type: "string", + default: "Default" + }, + answerFontWeight: { + type: "string" + }, + answerFontSubset: { + type: "string" + }, + answerFontSize: { + type: "number" + }, + answerFontSizeType: { + type: "string", + default: "px" + }, + answerFontSizeTablet: { + type: "number" + }, + answerFontSizeMobile: { + type: "number" + }, + answerLineHeight: { + type: "number" + }, + answerLineHeightType: { + type: "string", + default: "em" + }, + answerLineHeightTablet: { + type: "number" + }, + answerLineHeightMobile: { + type: "number" + }, + icon: { + type: "string", + default: "fas fa-plus" + }, + iconActive: { + type: "string", + default: "fas fa-minus" + }, + iconAlign: { + type: "string", + default: "row" + }, + iconSize: { + type: "number", + default: 12 + }, + iconSizeTablet: { + type: "number", + default: 12 + }, + iconSizeMobile: { + type: "number", + default: 12 + }, + iconSizeType: { + type: "string", + default: "px" + }, + columns: { + type: "number", + default: 2 + }, + tcolumns: { + type: "number", + default: 2 + }, + mcolumns: { + type: "number", + default: 1 + }, + schema: { + type: "string", + default: "" + }, + enableToggle: { + type: "boolean", + default: true + }, + equalHeight: { + type: "boolean", + default: true + }, + questionLeftPaddingTablet: { + type: "number", + default: 10 + }, + questionBottomPaddingTablet: { + type: "number", + default: 10 + }, + questionLeftPaddingDesktop: { + type: "number", + default: 10 + }, + questionBottomPaddingDesktop: { + type: "number", + default: 10 + }, + questionLeftPaddingMobile: { + type: "number", + default: 10 + }, + questionBottomPaddingMobile: { + type: "number", + default: 10 + }, + headingTag: { + type: "html", + selector: "span,p,h1,h2,h3,h4,h5,h6", + default: "span" } - - tablet_selectors[" " + headingTag + ".block-editor-rich-text__editable.uagb-heading-text"] = { - "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](headFontSizeTablet, headFontSizeType), - "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](headLineHeightTablet, headLineHeightType) - }; - tablet_selectors[" .block-editor-rich-text__editable.uagb-desc-text"] = { - "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](subHeadFontSizeTablet, subHeadFontSizeType), - "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](subHeadLineHeightTablet, subHeadLineHeightType) - }; - - mobile_selectors[" " + headingTag + ".block-editor-rich-text__editable.uagb-heading-text"] = { - "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](headFontSizeMobile, headFontSizeType), - "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](headLineHeightMobile, headLineHeightType) - }; - mobile_selectors[" .block-editor-rich-text__editable.uagb-desc-text"] = { - "font-size": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](subHeadFontSizeMobile, subHeadFontSizeType), - "line-height": __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */](subHeadLineHeightMobile, subHeadLineHeightType) - }; - - var base_selector = ".block-editor-page #wpwrap .uagb-block-" + props.clientId.substr(0, 8); - - var styling_css = __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSS__["a" /* default */](selectors, base_selector); - - styling_css += __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSS__["a" /* default */](tablet_selectors, base_selector, true, "tablet"); - - styling_css += __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSS__["a" /* default */](mobile_selectors, base_selector, true, "mobile"); - - return styling_css; -} - -/* harmony default export */ __webpack_exports__["a"] = (styling); +}; +/* harmony default export */ __webpack_exports__["a"] = (attributes); /***/ }), -/* 191 */ -/*!******************************************************!*\ - !*** ./src/components/typography/font-typography.js ***! - \******************************************************/ +/* 238 */ +/*!********************************************!*\ + !*** ./src/blocks/faq-child/attributes.js ***! + \********************************************/ /*! exports provided: default */ /*! exports used: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash_map__ = __webpack_require__(/*! lodash/map */ 16); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash_map___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash_map__); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__fonts__ = __webpack_require__(/*! ./fonts */ 258); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_select__ = __webpack_require__(/*! react-select */ 259); -var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; - -function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - -/** - * WordPress dependencies - */ var __ = wp.i18n.__; -var SelectControl = wp.components.SelectControl; -// Extend component -var _wp$element = wp.element, - Component = _wp$element.Component, - Fragment = _wp$element.Fragment; +var attributes = { + block_id: { + type: "string" + }, + question: { + type: "html", + default: __("What is FAQ?", 'ultimate-addons-for-gutenberg') + }, + answer: { + type: "html", + default: __("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.", 'ultimate-addons-for-gutenberg') + }, + icon: { + type: "html", + default: "fas fa-plus" + }, + iconActive: { + type: "html", + default: "fas fa-minus" + }, + layout: { + type: "string", + default: "accordion" + }, + headingTag: { + type: "html", + selector: "span,p,h1,h2,h3,h4,h5,h6", + default: "span" + } +}; -/** - * Internal dependencies - */ +/* harmony default export */ __webpack_exports__["a"] = (attributes); +/***/ }), +/* 239 */ +/*!*****************************************!*\ + !*** ./src/blocks/review/components.js ***! + \*****************************************/ +/*! exports provided: Stars, ReviewBody */ +/*! exports used: ReviewBody, Stars */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return Stars; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ReviewBody; }); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(/*! react */ 5); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__); +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); +function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function FontFamilyControl(props) { +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - var fonts = [{ value: "", label: __("Default"), weight: ["100", "200", "300", "400", "500", "600", "700", "800", "900"], google: false }, { value: "Arial", label: "Arial", weight: ["100", "200", "300", "400", "500", "600", "700", "800", "900"], google: false }, { value: "Helvetica", label: "Helvetica", weight: ["100", "200", "300", "400", "500", "600", "700", "800", "900"], google: false }, { value: "Times New Roman", label: "Times New Roman", weight: ["100", "200", "300", "400", "500", "600", "700", "800", "900"], google: false }, { value: "Georgia", label: "Georgia", weight: ["100", "200", "300", "400", "500", "600", "700", "800", "900"], google: false }]; +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - var fontWeight = ""; - var fontSubset = ""; +var _ref = wp.blockEditor || wp.editor, + RichText = _ref.RichText; - //Push Google Fonts into stytem fonts object - Object.keys(__WEBPACK_IMPORTED_MODULE_1__fonts__["a" /* default */]).map(function (k, v) { - fonts.push({ value: k, label: k, weight: __WEBPACK_IMPORTED_MODULE_1__fonts__["a" /* default */][k].weight }); +var __ = wp.i18n.__; - if (k === props.fontFamily.value) { - fontWeight = __WEBPACK_IMPORTED_MODULE_1__fonts__["a" /* default */][k].weight; - fontSubset = __WEBPACK_IMPORTED_MODULE_1__fonts__["a" /* default */][k].subset; - } - }); - // check if the font is a system font and then apply the font weight accordingly. - if (fontWeight === "") { - fontWeight = fonts[0].weight; - } - var fontWeightObj = []; +var Stars = function (_Component) { + _inherits(Stars, _Component); - fontWeight.forEach(function (item) { - fontWeightObj.push({ value: item, label: item }); - }); + function Stars(props) { + _classCallCheck(this, Stars); - var fontSubsetObj = []; + var _this = _possibleConstructorReturn(this, (Stars.__proto__ || Object.getPrototypeOf(Stars)).call(this, props)); - if ((typeof fontSubset === "undefined" ? "undefined" : _typeof(fontSubset)) == "object") { - fontSubset.forEach(function (item) { - fontSubsetObj.push({ value: item, label: item }); - }); + _this.state = { + displayValue: _this.props.value, + displayColor: _this.props.activeStarColor + }; + _this.mouseHover = _this.mouseHover.bind(_this); + _this.mouseLeave = _this.mouseLeave.bind(_this); + _this.mouseClick = _this.mouseClick.bind(_this); + return _this; } - var onFontfamilyChange = function onFontfamilyChange(value) { - var loadGoogleFonts = props.loadGoogleFonts, - fontFamily = props.fontFamily, - fontWeight = props.fontWeight, - fontSubset = props.fontSubset; + _createClass(Stars, [{ + key: "mouseHover", + value: function mouseHover(i) { + this.setState({ + displayValue: i + (this.props.value - i === 1 ? 0.5 : 1), + displayColor: this.props.selectedStarColor + }); + } + }, { + key: "mouseLeave", + value: function mouseLeave() { + this.setState({ + displayValue: this.props.value, + displayColor: this.props.activeStarColor + }); + } + }, { + key: "mouseClick", + value: function mouseClick(i) { + var _props = this.props, + setValue = _props.setValue, + value = _props.value; - props.setAttributes(_defineProperty({}, fontFamily.label, value.label)); - onLoadGoogleFonts(loadGoogleFonts, value.label); - onFontChange(fontWeight, fontSubset, value.label); - }; + setValue(value === i + 1 ? i + 0.5 : i + 1); + this.setState({ + displayValue: value === i + 1 ? i + 0.5 : i + 1 + }); + } + }, { + key: "componentWillReceiveProps", + value: function componentWillReceiveProps(newProps) { + var value = newProps.value, + activeStarColor = newProps.activeStarColor; - var onFontChange = function onFontChange(fontWeight, fontSubset, fontFamily) { + if (this.props.onHover || this.state.displayValue !== value) { + this.setState({ + displayValue: value, + displayColor: activeStarColor + }); + } else { + this.setState({ displayColor: activeStarColor }); + } + } + }, { + key: "render", + value: function render() { + var _this2 = this; - var font_flag = void 0; - var new_value = void 0; + var displayValue = this.state.displayValue; + var _props2 = this.props, + limit = _props2.limit, + id = _props2.id, + className = _props2.className, + inactiveStarColor = _props2.inactiveStarColor, + onHover = _props2.onHover, + _onClick = _props2.onClick, + style = _props2.style, + starOutlineColor = _props2.starOutlineColor; - if (_typeof(__WEBPACK_IMPORTED_MODULE_1__fonts__["a" /* default */][fontFamily]) == "object") { + return wp.element.createElement( + "div", + { + className: className, + style: Object.assign({ + display: "flex", + flexDirection: "flex-row" + }, style) + }, + [].concat(_toConsumableArray(Array(limit).keys())).map(function (i) { + return wp.element.createElement( + "svg", + { + xmlns: "http://www.w3.org/2000/svg", + key: i, + height: "20", + width: "20", + viewBox: "0 0 150 150", + onMouseOver: function onMouseOver() { + return onHover || _this2.mouseHover(i); + }, + onMouseOut: function onMouseOut() { + return _this2.mouseLeave(); + }, + onClick: function onClick() { + return _onClick || _this2.mouseClick(i); + } + }, + wp.element.createElement( + "defs", + null, + wp.element.createElement( + "mask", + { id: "uagb_review_star_filter-" + id + "-" + i }, + wp.element.createElement("rect", { + height: "150", + width: (displayValue - i > 0 ? displayValue - i < 1 ? displayValue - i : 1 : 0) * 150, + y: "0", + x: "0", + fill: "#fff" + }) + ) + ), + wp.element.createElement("path", { + fill: inactiveStarColor, + strokeWidth: "2.5", + d: "m0.75,56.89914l56.02207,0l17.31126,-56.14914l17.31126,56.14914l56.02206,0l-45.32273,34.70168l17.31215,56.14914l-45.32274,-34.70262l-45.32274,34.70262l17.31215,-56.14914l-45.32274,-34.70168z", + stroke: starOutlineColor + }), + wp.element.createElement("path", { + className: "star", + id: "star" + i, + mask: "url(#uagb_review_star_filter-" + id + "-" + i + ")", + fill: _this2.state.displayColor, + strokeWidth: "2.5", + d: "m0.75,56.89914l56.02207,0l17.31126,-56.14914l17.31126,56.14914l56.02206,0l-45.32273,34.70168l17.31215,56.14914l-45.32274,-34.70262l-45.32274,34.70262l17.31215,-56.14914l-45.32274,-34.70168z", + stroke: starOutlineColor + }) + ); + }) + ); + } + }]); - var gfontsObj = __WEBPACK_IMPORTED_MODULE_1__fonts__["a" /* default */][fontFamily].weight; - var gfontSubsetObj = __WEBPACK_IMPORTED_MODULE_1__fonts__["a" /* default */][fontFamily].subset; + return Stars; +}(__WEBPACK_IMPORTED_MODULE_0_react__["Component"]); - if ((typeof gfontsObj === "undefined" ? "undefined" : _typeof(gfontsObj)) == "object") { +var ReviewBody = function (_Component2) { + _inherits(ReviewBody, _Component2); - gfontsObj.forEach(function (item) { + function ReviewBody(props) { + _classCallCheck(this, ReviewBody); - if (fontWeight.value == item) { - font_flag = false; - } else { - new_value = item; - font_flag = true; - props.setAttributes(_defineProperty({}, props.fontWeight.label, new_value)); - return; - } - }); + var _this3 = _possibleConstructorReturn(this, (ReviewBody.__proto__ || Object.getPrototypeOf(ReviewBody)).call(this, props)); - gfontSubsetObj.forEach(function (item) { + _this3.state = { + average: _this3.props.items.map(function (i) { + return i.value; + }).reduce(function (total, v) { + return total + v; + }) / _this3.props.items.length + }; + return _this3; + } - if (fontSubset.value == item) { - font_flag = false; - } else { - new_value = item; - font_flag = true; - props.setAttributes(_defineProperty({}, props.fontSubset.label, new_value)); - return; - } - }); - } - } - }; + _createClass(ReviewBody, [{ + key: "render", + value: function render() { + var _this4 = this; - var onLoadGoogleFonts = function onLoadGoogleFonts(loadGoogleFonts, fontFamily) { + var _props3 = this.props, + ID = _props3.ID, + items = _props3.items, + summaryTitle = _props3.summaryTitle, + summaryDescription = _props3.summaryDescription, + starCount = _props3.starCount, + setItems = _props3.setItems, + setSummaryDescription = _props3.setSummaryDescription, + setSummaryTitle = _props3.setSummaryTitle, + setTitle = _props3.setTitle, + setDescription = _props3.setDescription, + setAuthorName = _props3.setAuthorName, + inactiveStarColor = _props3.inactiveStarColor, + activeStarColor = _props3.activeStarColor, + selectedStarColor = _props3.selectedStarColor, + starOutlineColor = _props3.starOutlineColor, + ctaTarget = _props3.ctaTarget, + ctaLink = _props3.ctaLink, + setActiveStarIndex = _props3.setActiveStarIndex, + rTitle = _props3.rTitle, + rContent = _props3.rContent, + rAuthor = _props3.rAuthor, + headingTag = _props3.headingTag, + image_icon_html = _props3.image_icon_html, + showfeature = _props3.showfeature, + imageEnabled = _props3.imageEnabled, + descriptionEnabled = _props3.descriptionEnabled, + showauthor = _props3.showauthor; + var average = this.state.average; - var value = void 0; - if (fontFamily != "" && _typeof(__WEBPACK_IMPORTED_MODULE_1__fonts__["a" /* default */][fontFamily]) != "object") { - value = false; - } else { - value = true; + var newAverage = items.map(function (i) { + return i.value; + }).reduce(function (total, v) { + return total + v; + }) / items.length; + + if (average !== newAverage) { + this.setState({ average: newAverage }); + } + + var target = "_self"; + var rel = "noopener noreferrer"; + if (ctaTarget) { + target = "_blank"; + } + + return wp.element.createElement( + "div", + { className: "uagb_review_block" }, + wp.element.createElement( + "a", + { + href: ctaLink, + className: "uagb-rating-link-wrapper", + target: target, + rel: rel + }, + wp.element.createElement(RichText, { + tagName: headingTag, + placeholder: __('Title of the review', 'ultimate-addons-for-gutenberg'), + keepPlaceholderOnFocus: true, + value: rTitle, + className: "uagb-rating-title", + onChange: function onChange(text) { + return setTitle(text); + } + }) + ), + descriptionEnabled === true && wp.element.createElement(RichText, { + tagName: "p", + placeholder: __('Review Description', 'ultimate-addons-for-gutenberg'), + keepPlaceholderOnFocus: true, + value: rContent, + className: "uagb-rating-desc", + onChange: function onChange(text) { + return setDescription(text); + } + }), + showauthor === true && wp.element.createElement(RichText, { + tagName: "p", + placeholder: __('Review Author', 'ultimate-addons-for-gutenberg'), + keepPlaceholderOnFocus: true, + value: rAuthor, + className: "uagb-rating-author", + onChange: function onChange(text) { + return setAuthorName(text); + } + }), + imageEnabled === true && wp.element.createElement( + "div", + { className: "uagb-rating__source-wrap" }, + image_icon_html + ), + items.map(function (j, i) { + return showfeature === true && wp.element.createElement( + "div", + { className: "uagb_review_entry" }, + wp.element.createElement(RichText, { + style: { marginRight: "auto" }, + key: i, + placeholder: __("Edit feature"), + value: j.label, + onChange: function onChange(text) { + return setItems([].concat(_toConsumableArray(items.slice(0, i)), [{ label: text, value: j.value }], _toConsumableArray(items.slice(i + 1)))); + } + }), + wp.element.createElement( + "div", + { + key: i, + style: { + marginLeft: "auto", + minWidth: items.length > 1 ? 120 : 100 + } + }, + items.length > 1 && wp.element.createElement("div", { + className: "dashicons dashicons-trash", + onClick: function onClick() { + var newItems = items.slice(0, i).concat(items.slice(i + 1, items.length)); + setItems(newItems); + _this4.setState({ + average: newItems.map(function (i) { + return i.value; + }).reduce(function (total, v) { + return total + v; + }) / newItems.length + }); + } + }), + wp.element.createElement(Stars, { + id: ID + "-" + i, + key: i, + value: j.value, + limit: starCount, + setValue: function setValue(newValue) { + var newArray = [].concat(_toConsumableArray(items.slice(0, i)), [{ label: j.label, value: newValue }], _toConsumableArray(items.slice(i + 1))); + setItems(newArray); + setActiveStarIndex(i); + _this4.setState({ + average: newArray.map(function (i) { + return i.value; + }).reduce(function (total, v) { + return total + v; + }) / newArray.length + }); + }, + inactiveStarColor: inactiveStarColor, + activeStarColor: activeStarColor, + selectedStarColor: selectedStarColor, + starOutlineColor: starOutlineColor + }) + ) + ); + }), + showfeature === true && wp.element.createElement("div", { + title: __("Insert new review entry"), + onClick: function onClick() { + setItems([].concat(_toConsumableArray(items), [{ label: "", value: 0 }])); + _this4.setState({ + average: average / (items.length + 1) + }); + }, + className: "uagb_review_add_entry dashicons dashicons-plus-alt" + }), + wp.element.createElement( + "div", + { className: "uagb_review_summary" }, + wp.element.createElement(RichText, { + className: "uagb_review_summary_title", + placeholder: __("Title of the summary goes here", 'ultimate-addons-for-gutenberg'), + tagName: "p", + onChange: function onChange(text) { + return setSummaryTitle(text); + }, + value: summaryTitle + }), + wp.element.createElement( + "div", + { className: "uagb_review_overall_value" }, + wp.element.createElement(RichText, { + placeholder: __("Summary of the review goes here", 'ultimate-addons-for-gutenberg'), + onChange: function onChange(text) { + return setSummaryDescription(text); + }, + value: summaryDescription + }), + wp.element.createElement( + "div", + { className: "uagb_review_average" }, + wp.element.createElement( + "span", + { className: "uagb_review_rating" }, + Math.round(average * 10) / 10 + ), + wp.element.createElement(Stars, { + id: ID + "-average", + className: "uagb_review_average_stars", + onHover: function onHover() { + return null; + }, + onClick: function onClick() { + return null; + }, + value: average, + limit: starCount, + inactiveStarColor: inactiveStarColor, + activeStarColor: activeStarColor, + selectedStarColor: selectedStarColor, + starOutlineColor: starOutlineColor + }) + ) + ) + ) + ); } + }]); - props.setAttributes(_defineProperty({}, loadGoogleFonts.label, value)); - }; + return ReviewBody; +}(__WEBPACK_IMPORTED_MODULE_0_react__["Component"]); - return wp.element.createElement( - "div", - { className: "uag-typography-font-family-options" }, - wp.element.createElement( - "label", - { className: "uag-typography-font-family-label" }, - __("Font Family") - ), - wp.element.createElement(__WEBPACK_IMPORTED_MODULE_2_react_select__["a" /* default */], { - options: fonts, - value: { value: props.fontFamily.value, label: props.fontFamily.value, weight: fontWeightObj }, - isMulti: false, - maxMenuHeight: 300, - onChange: onFontfamilyChange, - className: "react-select-container", - classNamePrefix: "react-select" - }), - wp.element.createElement(SelectControl, { - label: __("Font Weight"), - value: props.fontWeight.value, - onChange: function onChange(value) { - return props.setAttributes(_defineProperty({}, props.fontWeight.label, value)); - }, - options: fontWeightObj - }), - wp.element.createElement(SelectControl, { - label: __("Font Subset"), - value: props.fontSubset.value, - onChange: function onChange(value) { - return props.setAttributes(_defineProperty({}, props.fontSubset.label, value)); - }, - options: fontSubsetObj - }) - ); -} +/***/ }), +/* 240 */ +/*!***************************************************************!*\ + !*** ./src/blocks/forms/child-blocks/phone/country-option.js ***! + \***************************************************************/ +/*! exports provided: default */ +/*! exports used: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { -/* harmony default export */ __webpack_exports__["a"] = (FontFamilyControl); +"use strict"; +var countryOptions = [wp.element.createElement( + "option", + { "data-countryCode": "GB", value: "+44" }, + "UK (+44)" +), wp.element.createElement( + "option", + { "data-countryCode": "US", value: "+1" }, + "USA (+1)" +), wp.element.createElement( + "option", + { "data-countryCode": "DZ", value: "+213" }, + "Algeria (+213)" +), wp.element.createElement( + "option", + { "data-countryCode": "AD", value: "+376" }, + "Andorra (+376)" +), wp.element.createElement( + "option", + { "data-countryCode": "AO", value: "+244" }, + "Angola (+244)" +), wp.element.createElement( + "option", + { "data-countryCode": "AI", value: "+1264" }, + "Anguilla (+1264)" +), wp.element.createElement( + "option", + { "data-countryCode": "AG", value: "+1268" }, + "Antigua & Barbuda (+1268)" +), wp.element.createElement( + "option", + { "data-countryCode": "AR", value: "+54" }, + "Argentina (+54)" +), wp.element.createElement( + "option", + { "data-countryCode": "AM", value: "+374" }, + "Armenia (+374)" +), wp.element.createElement( + "option", + { "data-countryCode": "AW", value: "+297" }, + "Aruba (+297)" +), wp.element.createElement( + "option", + { "data-countryCode": "AU", value: "+61" }, + "Australia (+61)" +), wp.element.createElement( + "option", + { "data-countryCode": "AT", value: "+43" }, + "Austria (+43)" +), wp.element.createElement( + "option", + { "data-countryCode": "AZ", value: "+994" }, + "Azerbaijan (+994)" +), wp.element.createElement( + "option", + { "data-countryCode": "BS", value: "+1242" }, + "Bahamas (+1242)" +), wp.element.createElement( + "option", + { "data-countryCode": "BH", value: "+973" }, + "Bahrain (+973)" +), wp.element.createElement( + "option", + { "data-countryCode": "BD", value: "+880" }, + "Bangladesh (+880)" +), wp.element.createElement( + "option", + { "data-countryCode": "BB", value: "+1246" }, + "Barbados (+1246)" +), wp.element.createElement( + "option", + { "data-countryCode": "BY", value: "+375" }, + "Belarus (+375)" +), wp.element.createElement( + "option", + { "data-countryCode": "BE", value: "+32" }, + "Belgium (+32)" +), wp.element.createElement( + "option", + { "data-countryCode": "BZ", value: "+501" }, + "Belize (+501)" +), wp.element.createElement( + "option", + { "data-countryCode": "BJ", value: "+229" }, + "Benin (+229)" +), wp.element.createElement( + "option", + { "data-countryCode": "BM", value: "+1441" }, + "Bermuda (+1441)" +), wp.element.createElement( + "option", + { "data-countryCode": "BT", value: "+975" }, + "Bhutan (+975)" +), wp.element.createElement( + "option", + { "data-countryCode": "BO", value: "+591" }, + "Bolivia (+591)" +), wp.element.createElement( + "option", + { "data-countryCode": "BA", value: "+387" }, + "Bosnia Herzegovina (+387)" +), wp.element.createElement( + "option", + { "data-countryCode": "BW", value: "+267" }, + "Botswana (+267)" +), wp.element.createElement( + "option", + { "data-countryCode": "BR", value: "+55" }, + "Brazil (+55)" +), wp.element.createElement( + "option", + { "data-countryCode": "BN", value: "+673" }, + "Brunei (+673)" +), wp.element.createElement( + "option", + { "data-countryCode": "BG", value: "+359" }, + "Bulgaria (+359)" +), wp.element.createElement( + "option", + { "data-countryCode": "BF", value: "+226" }, + "Burkina Faso (+226)" +), wp.element.createElement( + "option", + { "data-countryCode": "BI", value: "+257" }, + "Burundi (+257)" +), wp.element.createElement( + "option", + { "data-countryCode": "KH", value: "+855" }, + "Cambodia (+855)" +), wp.element.createElement( + "option", + { "data-countryCode": "CM", value: "+237" }, + "Cameroon (+237)" +), wp.element.createElement( + "option", + { "data-countryCode": "CA", value: "+1" }, + "Canada (+1)" +), wp.element.createElement( + "option", + { "data-countryCode": "CV", value: "+238" }, + "Cape Verde Islands (+238)" +), wp.element.createElement( + "option", + { "data-countryCode": "KY", value: "+1345" }, + "Cayman Islands (+1345)" +), wp.element.createElement( + "option", + { "data-countryCode": "CF", value: "+236" }, + "Central African Republic (+236)" +), wp.element.createElement( + "option", + { "data-countryCode": "CL", value: "+56" }, + "Chile (+56)" +), wp.element.createElement( + "option", + { "data-countryCode": "CN", value: "+86" }, + "China (+86)" +), wp.element.createElement( + "option", + { "data-countryCode": "CO", value: "+57" }, + "Colombia (+57)" +), wp.element.createElement( + "option", + { "data-countryCode": "KM", value: "+269" }, + "Comoros (+269)" +), wp.element.createElement( + "option", + { "data-countryCode": "CG", value: "+242" }, + "Congo (+242)" +), wp.element.createElement( + "option", + { "data-countryCode": "CK", value: "+682" }, + "Cook Islands (+682)" +), wp.element.createElement( + "option", + { "data-countryCode": "CR", value: "+506" }, + "Costa Rica (+506)" +), wp.element.createElement( + "option", + { "data-countryCode": "HR", value: "+385" }, + "Croatia (+385)" +), wp.element.createElement( + "option", + { "data-countryCode": "CU", value: "+53" }, + "Cuba (+53)" +), wp.element.createElement( + "option", + { "data-countryCode": "CY", value: "+90392" }, + "Cyprus North (+90392)" +), wp.element.createElement( + "option", + { "data-countryCode": "CY", value: "+357" }, + "Cyprus South (+357)" +), wp.element.createElement( + "option", + { "data-countryCode": "CZ", value: "+42" }, + "Czech Republic (+42)" +), wp.element.createElement( + "option", + { "data-countryCode": "DK", value: "+45" }, + "Denmark (+45)" +), wp.element.createElement( + "option", + { "data-countryCode": "DJ", value: "+253" }, + "Djibouti (+253)" +), wp.element.createElement( + "option", + { "data-countryCode": "DM", value: "+1809" }, + "Dominica (+1809)" +), wp.element.createElement( + "option", + { "data-countryCode": "DO", value: "+1809" }, + "Dominican Republic (+1809)" +), wp.element.createElement( + "option", + { "data-countryCode": "EC", value: "+593" }, + "Ecuador (+593)" +), wp.element.createElement( + "option", + { "data-countryCode": "EG", value: "+20" }, + "Egypt (+20)" +), wp.element.createElement( + "option", + { "data-countryCode": "SV", value: "+503" }, + "El Salvador (+503)" +), wp.element.createElement( + "option", + { "data-countryCode": "GQ", value: "+240" }, + "Equatorial Guinea (+240)" +), wp.element.createElement( + "option", + { "data-countryCode": "ER", value: "+291" }, + "Eritrea (+291)" +), wp.element.createElement( + "option", + { "data-countryCode": "EE", value: "+372" }, + "Estonia (+372)" +), wp.element.createElement( + "option", + { "data-countryCode": "ET", value: "+251" }, + "Ethiopia (+251)" +), wp.element.createElement( + "option", + { "data-countryCode": "FK", value: "+500" }, + "Falkland Islands (+500)" +), wp.element.createElement( + "option", + { "data-countryCode": "FO", value: "+298" }, + "Faroe Islands (+298)" +), wp.element.createElement( + "option", + { "data-countryCode": "FJ", value: "+679" }, + "Fiji (+679)" +), wp.element.createElement( + "option", + { "data-countryCode": "FI", value: "+358" }, + "Finland (+358)" +), wp.element.createElement( + "option", + { "data-countryCode": "FR", value: "+33" }, + "France (+33)" +), wp.element.createElement( + "option", + { "data-countryCode": "GF", value: "+594" }, + "French Guiana (+594)" +), wp.element.createElement( + "option", + { "data-countryCode": "PF", value: "+689" }, + "French Polynesia (+689)" +), wp.element.createElement( + "option", + { "data-countryCode": "GA", value: "+241" }, + "Gabon (+241)" +), wp.element.createElement( + "option", + { "data-countryCode": "GM", value: "+220" }, + "Gambia (+220)" +), wp.element.createElement( + "option", + { "data-countryCode": "GE", value: "+7880" }, + "Georgia (+7880)" +), wp.element.createElement( + "option", + { "data-countryCode": "DE", value: "+49" }, + "Germany (+49)" +), wp.element.createElement( + "option", + { "data-countryCode": "GH", value: "+233" }, + "Ghana (+233)" +), wp.element.createElement( + "option", + { "data-countryCode": "GI", value: "+350" }, + "Gibraltar (+350)" +), wp.element.createElement( + "option", + { "data-countryCode": "GR", value: "+30" }, + "Greece (+30)" +), wp.element.createElement( + "option", + { "data-countryCode": "GL", value: "+299" }, + "Greenland (+299)" +), wp.element.createElement( + "option", + { "data-countryCode": "GD", value: "+1473" }, + "Grenada (+1473)" +), wp.element.createElement( + "option", + { "data-countryCode": "GP", value: "+590" }, + "Guadeloupe (+590)" +), wp.element.createElement( + "option", + { "data-countryCode": "GU", value: "+671" }, + "Guam (+671)" +), wp.element.createElement( + "option", + { "data-countryCode": "GT", value: "+502" }, + "Guatemala (+502)" +), wp.element.createElement( + "option", + { "data-countryCode": "GN", value: "+224" }, + "Guinea (+224)" +), wp.element.createElement( + "option", + { "data-countryCode": "GW", value: "+245" }, + "Guinea - Bissau (+245)" +), wp.element.createElement( + "option", + { "data-countryCode": "GY", value: "+592" }, + "Guyana (+592)" +), wp.element.createElement( + "option", + { "data-countryCode": "HT", value: "+509" }, + "Haiti (+509)" +), wp.element.createElement( + "option", + { "data-countryCode": "HN", value: "+504" }, + "Honduras (+504)" +), wp.element.createElement( + "option", + { "data-countryCode": "HK", value: "+852" }, + "Hong Kong (+852)" +), wp.element.createElement( + "option", + { "data-countryCode": "HU", value: "+36" }, + "Hungary (+36)" +), wp.element.createElement( + "option", + { "data-countryCode": "IS", value: "+354" }, + "Iceland (+354)" +), wp.element.createElement( + "option", + { "data-countryCode": "IN", value: "+91" }, + "India (+91)" +), wp.element.createElement( + "option", + { "data-countryCode": "ID", value: "+62" }, + "Indonesia (+62)" +), wp.element.createElement( + "option", + { "data-countryCode": "IR", value: "+98" }, + "Iran (+98)" +), wp.element.createElement( + "option", + { "data-countryCode": "IQ", value: "+964" }, + "Iraq (+964)" +), wp.element.createElement( + "option", + { "data-countryCode": "IE", value: "+353" }, + "Ireland (+353)" +), wp.element.createElement( + "option", + { "data-countryCode": "IL", value: "+972" }, + "Israel (+972)" +), wp.element.createElement( + "option", + { "data-countryCode": "IT", value: "+39" }, + "Italy (+39)" +), wp.element.createElement( + "option", + { "data-countryCode": "JM", value: "+1876" }, + "Jamaica (+1876)" +), wp.element.createElement( + "option", + { "data-countryCode": "JP", value: "+81" }, + "Japan (+81)" +), wp.element.createElement( + "option", + { "data-countryCode": "JO", value: "+962" }, + "Jordan (+962)" +), wp.element.createElement( + "option", + { "data-countryCode": "KZ", value: "+7" }, + "Kazakhstan (+7)" +), wp.element.createElement( + "option", + { "data-countryCode": "KE", value: "+254" }, + "Kenya (+254)" +), wp.element.createElement( + "option", + { "data-countryCode": "KI", value: "+686" }, + "Kiribati (+686)" +), wp.element.createElement( + "option", + { "data-countryCode": "KP", value: "+850" }, + "Korea North (+850)" +), wp.element.createElement( + "option", + { "data-countryCode": "KR", value: "+82" }, + "Korea South (+82)" +), wp.element.createElement( + "option", + { "data-countryCode": "KW", value: "+965" }, + "Kuwait (+965)" +), wp.element.createElement( + "option", + { "data-countryCode": "KG", value: "+996" }, + "Kyrgyzstan (+996)" +), wp.element.createElement( + "option", + { "data-countryCode": "LA", value: "+856" }, + "Laos (+856)" +), wp.element.createElement( + "option", + { "data-countryCode": "LV", value: "+371" }, + "Latvia (+371)" +), wp.element.createElement( + "option", + { "data-countryCode": "LB", value: "+961" }, + "Lebanon (+961)" +), wp.element.createElement( + "option", + { "data-countryCode": "LS", value: "+266" }, + "Lesotho (+266)" +), wp.element.createElement( + "option", + { "data-countryCode": "LR", value: "+231" }, + "Liberia (+231)" +), wp.element.createElement( + "option", + { "data-countryCode": "LY", value: "+218" }, + "Libya (+218)" +), wp.element.createElement( + "option", + { "data-countryCode": "LI", value: "+417" }, + "Liechtenstein (+417)" +), wp.element.createElement( + "option", + { "data-countryCode": "LT", value: "+370" }, + "Lithuania (+370)" +), wp.element.createElement( + "option", + { "data-countryCode": "LU", value: "+352" }, + "Luxembourg (+352)" +), wp.element.createElement( + "option", + { "data-countryCode": "MO", value: "+853" }, + "Macao (+853)" +), wp.element.createElement( + "option", + { "data-countryCode": "MK", value: "+389" }, + "Macedonia (+389)" +), wp.element.createElement( + "option", + { "data-countryCode": "MG", value: "+261" }, + "Madagascar (+261)" +), wp.element.createElement( + "option", + { "data-countryCode": "MW", value: "+265" }, + "Malawi (+265)" +), wp.element.createElement( + "option", + { "data-countryCode": "MY", value: "+60" }, + "Malaysia (+60)" +), wp.element.createElement( + "option", + { "data-countryCode": "MV", value: "+960" }, + "Maldives (+960)" +), wp.element.createElement( + "option", + { "data-countryCode": "ML", value: "+223" }, + "Mali (+223)" +), wp.element.createElement( + "option", + { "data-countryCode": "MT", value: "+356" }, + "Malta (+356)" +), wp.element.createElement( + "option", + { "data-countryCode": "MH", value: "+692" }, + "Marshall Islands (+692)" +), wp.element.createElement( + "option", + { "data-countryCode": "MQ", value: "+596" }, + "Martinique (+596)" +), wp.element.createElement( + "option", + { "data-countryCode": "MR", value: "+222" }, + "Mauritania (+222)" +), wp.element.createElement( + "option", + { "data-countryCode": "YT", value: "+269" }, + "Mayotte (+269)" +), wp.element.createElement( + "option", + { "data-countryCode": "MX", value: "+52" }, + "Mexico (+52)" +), wp.element.createElement( + "option", + { "data-countryCode": "FM", value: "+691" }, + "Micronesia (+691)" +), wp.element.createElement( + "option", + { "data-countryCode": "MD", value: "+373" }, + "Moldova (+373)" +), wp.element.createElement( + "option", + { "data-countryCode": "MC", value: "+377" }, + "Monaco (+377)" +), wp.element.createElement( + "option", + { "data-countryCode": "MN", value: "+976" }, + "Mongolia (+976)" +), wp.element.createElement( + "option", + { "data-countryCode": "MS", value: "+1664" }, + "Montserrat (+1664)" +), wp.element.createElement( + "option", + { "data-countryCode": "MA", value: "+212" }, + "Morocco (+212)" +), wp.element.createElement( + "option", + { "data-countryCode": "MZ", value: "+258" }, + "Mozambique (+258)" +), wp.element.createElement( + "option", + { "data-countryCode": "MN", value: "+95" }, + "Myanmar (+95)" +), wp.element.createElement( + "option", + { "data-countryCode": "NA", value: "+264" }, + "Namibia (+264)" +), wp.element.createElement( + "option", + { "data-countryCode": "NR", value: "+674" }, + "Nauru (+674)" +), wp.element.createElement( + "option", + { "data-countryCode": "NP", value: "+977" }, + "Nepal (+977)" +), wp.element.createElement( + "option", + { "data-countryCode": "NL", value: "+31" }, + "Netherlands (+31)" +), wp.element.createElement( + "option", + { "data-countryCode": "NC", value: "+687" }, + "New Caledonia (+687)" +), wp.element.createElement( + "option", + { "data-countryCode": "NZ", value: "+64" }, + "New Zealand (+64)" +), wp.element.createElement( + "option", + { "data-countryCode": "NI", value: "+505" }, + "Nicaragua (+505)" +), wp.element.createElement( + "option", + { "data-countryCode": "NE", value: "+227" }, + "Niger (+227)" +), wp.element.createElement( + "option", + { "data-countryCode": "NG", value: "+234" }, + "Nigeria (+234)" +), wp.element.createElement( + "option", + { "data-countryCode": "NU", value: "+683" }, + "Niue (+683)" +), wp.element.createElement( + "option", + { "data-countryCode": "NF", value: "+672" }, + "Norfolk Islands (+672)" +), wp.element.createElement( + "option", + { "data-countryCode": "NP", value: "+670" }, + "Northern Marianas (+670)" +), wp.element.createElement( + "option", + { "data-countryCode": "NO", value: "+47" }, + "Norway (+47)" +), wp.element.createElement( + "option", + { "data-countryCode": "OM", value: "+968" }, + "Oman (+968)" +), wp.element.createElement( + "option", + { "data-countryCode": "PW", value: "+680" }, + "Palau (+680)" +), wp.element.createElement( + "option", + { "data-countryCode": "PA", value: "+507" }, + "Panama (+507)" +), wp.element.createElement( + "option", + { "data-countryCode": "PG", value: "+675" }, + "Papua New Guinea (+675)" +), wp.element.createElement( + "option", + { "data-countryCode": "PY", value: "+595" }, + "Paraguay (+595)" +), wp.element.createElement( + "option", + { "data-countryCode": "PE", value: "+51" }, + "Peru (+51)" +), wp.element.createElement( + "option", + { "data-countryCode": "PH", value: "+63" }, + "Philippines (+63)" +), wp.element.createElement( + "option", + { "data-countryCode": "PL", value: "+48" }, + "Poland (+48)" +), wp.element.createElement( + "option", + { "data-countryCode": "PT", value: "+351" }, + "Portugal (+351)" +), wp.element.createElement( + "option", + { "data-countryCode": "PR", value: "+1787" }, + "Puerto Rico (+1787)" +), wp.element.createElement( + "option", + { "data-countryCode": "QA", value: "+974" }, + "Qatar (+974)" +), wp.element.createElement( + "option", + { "data-countryCode": "RE", value: "+262" }, + "Reunion (+262)" +), wp.element.createElement( + "option", + { "data-countryCode": "RO", value: "+40" }, + "Romania (+40)" +), wp.element.createElement( + "option", + { "data-countryCode": "RU", value: "+7" }, + "Russia (+7)" +), wp.element.createElement( + "option", + { "data-countryCode": "RW", value: "+250" }, + "Rwanda (+250)" +), wp.element.createElement( + "option", + { "data-countryCode": "SM", value: "+378" }, + "San Marino (+378)" +), wp.element.createElement( + "option", + { "data-countryCode": "ST", value: "+239" }, + "Sao Tome & Principe (+239)" +), wp.element.createElement( + "option", + { "data-countryCode": "SA", value: "+966" }, + "Saudi Arabia (+966)" +), wp.element.createElement( + "option", + { "data-countryCode": "SN", value: "+221" }, + "Senegal (+221)" +), wp.element.createElement( + "option", + { "data-countryCode": "CS", value: "+381" }, + "Serbia (+381)" +), wp.element.createElement( + "option", + { "data-countryCode": "SC", value: "+248" }, + "Seychelles (+248)" +), wp.element.createElement( + "option", + { "data-countryCode": "SL", value: "+232" }, + "Sierra Leone (+232)" +), wp.element.createElement( + "option", + { "data-countryCode": "SG", value: "+65" }, + "Singapore (+65)" +), wp.element.createElement( + "option", + { "data-countryCode": "SK", value: "+421" }, + "Slovak Republic (+421)" +), wp.element.createElement( + "option", + { "data-countryCode": "SI", value: "+386" }, + "Slovenia (+386)" +), wp.element.createElement( + "option", + { "data-countryCode": "SB", value: "+677" }, + "Solomon Islands (+677)" +), wp.element.createElement( + "option", + { "data-countryCode": "SO", value: "+252" }, + "Somalia (+252)" +), wp.element.createElement( + "option", + { "data-countryCode": "ZA", value: "+27" }, + "South Africa (+27)" +), wp.element.createElement( + "option", + { "data-countryCode": "ES", value: "+34" }, + "Spain (+34)" +), wp.element.createElement( + "option", + { "data-countryCode": "LK", value: "+94" }, + "Sri Lanka (+94)" +), wp.element.createElement( + "option", + { "data-countryCode": "SH", value: "+290" }, + "St. Helena (+290)" +), wp.element.createElement( + "option", + { "data-countryCode": "KN", value: "+1869" }, + "St. Kitts (+1869)" +), wp.element.createElement( + "option", + { "data-countryCode": "SC", value: "+1758" }, + "St. Lucia (+1758)" +), wp.element.createElement( + "option", + { "data-countryCode": "SD", value: "+249" }, + "Sudan (+249)" +), wp.element.createElement( + "option", + { "data-countryCode": "SR", value: "+597" }, + "Suriname (+597)" +), wp.element.createElement( + "option", + { "data-countryCode": "SZ", value: "+268" }, + "Swaziland (+268)" +), wp.element.createElement( + "option", + { "data-countryCode": "SE", value: "+46" }, + "Sweden (+46)" +), wp.element.createElement( + "option", + { "data-countryCode": "CH", value: "+41" }, + "Switzerland (+41)" +), wp.element.createElement( + "option", + { "data-countryCode": "SI", value: "+963" }, + "Syria (+963)" +), wp.element.createElement( + "option", + { "data-countryCode": "TW", value: "+886" }, + "Taiwan (+886)" +), wp.element.createElement( + "option", + { "data-countryCode": "TJ", value: "+7" }, + "Tajikstan (+7)" +), wp.element.createElement( + "option", + { "data-countryCode": "TH", value: "+66" }, + "Thailand (+66)" +), wp.element.createElement( + "option", + { "data-countryCode": "TG", value: "+228" }, + "Togo (+228)" +), wp.element.createElement( + "option", + { "data-countryCode": "TO", value: "+676" }, + "Tonga (+676)" +), wp.element.createElement( + "option", + { "data-countryCode": "TT", value: "+1868" }, + "Trinidad & Tobago (+1868)" +), wp.element.createElement( + "option", + { "data-countryCode": "TN", value: "+216" }, + "Tunisia (+216)" +), wp.element.createElement( + "option", + { "data-countryCode": "TR", value: "+90" }, + "Turkey (+90)" +), wp.element.createElement( + "option", + { "data-countryCode": "TM", value: "+7" }, + "Turkmenistan (+7)" +), wp.element.createElement( + "option", + { "data-countryCode": "TM", value: "+993" }, + "Turkmenistan (+993)" +), wp.element.createElement( + "option", + { "data-countryCode": "TC", value: "+1649" }, + "Turks & Caicos Islands (+1649)" +), wp.element.createElement( + "option", + { "data-countryCode": "TV", value: "+688" }, + "Tuvalu (+688)" +), wp.element.createElement( + "option", + { "data-countryCode": "UG", value: "+256" }, + "Uganda (+256)" +), wp.element.createElement( + "option", + { "data-countryCode": "UA", value: "+380" }, + "Ukraine (+380)" +), wp.element.createElement( + "option", + { "data-countryCode": "AE", value: "+971" }, + "United Arab Emirates (+971)" +), wp.element.createElement( + "option", + { "data-countryCode": "UY", value: "+598" }, + "Uruguay (+598)" +), wp.element.createElement( + "option", + { "data-countryCode": "UZ", value: "+7" }, + "Uzbekistan (+7)" +), wp.element.createElement( + "option", + { "data-countryCode": "VU", value: "+678" }, + "Vanuatu (+678)" +), wp.element.createElement( + "option", + { "data-countryCode": "VA", value: "+379" }, + "Vatican City (+379)" +), wp.element.createElement( + "option", + { "data-countryCode": "VE", value: "+58" }, + "Venezuela (+58)" +), wp.element.createElement( + "option", + { "data-countryCode": "VN", value: "+84" }, + "Vietnam (+84)" +), wp.element.createElement( + "option", + { "data-countryCode": "VG", value: "+84" }, + "Virgin Islands - British (+1284)" +), wp.element.createElement( + "option", + { "data-countryCode": "VI", value: "+84" }, + "Virgin Islands - US (+1340)" +), wp.element.createElement( + "option", + { "data-countryCode": "WF", value: "+681" }, + "Wallis & Futuna (+681)" +), wp.element.createElement( + "option", + { "data-countryCode": "YE", value: "+969" }, + "Yemen (North)(+969)" +), wp.element.createElement( + "option", + { "data-countryCode": "YE", value: "+967" }, + "Yemen (South)(+967)" +), wp.element.createElement( + "option", + { "data-countryCode": "ZM", value: "+260" }, + "Zambia (+260)" +), wp.element.createElement( + "option", + { "data-countryCode": "ZW", value: "+263" }, + "Zimbabwe (+263)" +)]; + +/* harmony default export */ __webpack_exports__["a"] = (countryOptions); /***/ }), -/* 192 */ -/*!*********************************************!*\ - !*** ./node_modules/lodash/_baseMatches.js ***! - \*********************************************/ -/*! no static exports found */ +/* 241 */ +/*!******************************************************!*\ + !*** ./node_modules/core-js/library/modules/_ctx.js ***! + \******************************************************/ +/*! dynamic exports provided */ /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { -var baseIsMatch = __webpack_require__(/*! ./_baseIsMatch */ 193), - getMatchData = __webpack_require__(/*! ./_getMatchData */ 242), - matchesStrictComparable = __webpack_require__(/*! ./_matchesStrictComparable */ 126); - -/** - * The base implementation of `_.matches` which doesn't clone `source`. - * - * @private - * @param {Object} source The object of property values to match. - * @returns {Function} Returns the new spec function. - */ -function baseMatches(source) { - var matchData = getMatchData(source); - if (matchData.length == 1 && matchData[0][2]) { - return matchesStrictComparable(matchData[0][0], matchData[0][1]); +// optional / simple context binding +var aFunction = __webpack_require__(/*! ./_a-function */ 824); +module.exports = function (fn, that, length) { + aFunction(fn); + if (that === undefined) return fn; + switch (length) { + case 1: return function (a) { + return fn.call(that, a); + }; + case 2: return function (a, b) { + return fn.call(that, a, b); + }; + case 3: return function (a, b, c) { + return fn.call(that, a, b, c); + }; } - return function(object) { - return object === source || baseIsMatch(object, source, matchData); + return function (/* ...args */) { + return fn.apply(that, arguments); }; -} - -module.exports = baseMatches; +}; /***/ }), -/* 193 */ -/*!*********************************************!*\ - !*** ./node_modules/lodash/_baseIsMatch.js ***! - \*********************************************/ -/*! no static exports found */ +/* 242 */ +/*!*****************************************************************!*\ + !*** ./node_modules/core-js/library/modules/_ie8-dom-define.js ***! + \*****************************************************************/ +/*! dynamic exports provided */ /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { -var Stack = __webpack_require__(/*! ./_Stack */ 52), - baseIsEqual = __webpack_require__(/*! ./_baseIsEqual */ 115); +module.exports = !__webpack_require__(/*! ./_descriptors */ 25) && !__webpack_require__(/*! ./_fails */ 38)(function () { + return Object.defineProperty(__webpack_require__(/*! ./_dom-create */ 243)('div'), 'a', { get: function () { return 7; } }).a != 7; +}); -/** Used to compose bitmasks for value comparisons. */ -var COMPARE_PARTIAL_FLAG = 1, - COMPARE_UNORDERED_FLAG = 2; -/** - * The base implementation of `_.isMatch` without support for iteratee shorthands. - * - * @private - * @param {Object} object The object to inspect. - * @param {Object} source The object of property values to match. - * @param {Array} matchData The property names, values, and compare flags to match. - * @param {Function} [customizer] The function to customize comparisons. - * @returns {boolean} Returns `true` if `object` is a match, else `false`. - */ -function baseIsMatch(object, source, matchData, customizer) { - var index = matchData.length, - length = index, - noCustomizer = !customizer; +/***/ }), +/* 243 */ +/*!*************************************************************!*\ + !*** ./node_modules/core-js/library/modules/_dom-create.js ***! + \*************************************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { - if (object == null) { - return !length; - } - object = Object(object); - while (index--) { - var data = matchData[index]; - if ((noCustomizer && data[2]) - ? data[1] !== object[data[0]] - : !(data[0] in object) - ) { - return false; - } - } - while (++index < length) { - data = matchData[index]; - var key = data[0], - objValue = object[key], - srcValue = data[1]; - - if (noCustomizer && data[2]) { - if (objValue === undefined && !(key in object)) { - return false; - } - } else { - var stack = new Stack; - if (customizer) { - var result = customizer(objValue, srcValue, key, object, source, stack); - } - if (!(result === undefined - ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack) - : result - )) { - return false; - } - } - } - return true; -} - -module.exports = baseIsMatch; +var isObject = __webpack_require__(/*! ./_is-object */ 37); +var document = __webpack_require__(/*! ./_global */ 20).document; +// typeof document.createElement is 'object' in old IE +var is = isObject(document) && isObject(document.createElement); +module.exports = function (it) { + return is ? document.createElement(it) : {}; +}; /***/ }), -/* 194 */ -/*!************************************************!*\ - !*** ./node_modules/lodash/_listCacheClear.js ***! - \************************************************/ -/*! no static exports found */ +/* 244 */ +/*!***********************************************************************!*\ + !*** ./node_modules/core-js/library/modules/_object-keys-internal.js ***! + \***********************************************************************/ +/*! dynamic exports provided */ /*! all exports used */ -/***/ (function(module, exports) { +/***/ (function(module, exports, __webpack_require__) { -/** - * Removes all key-value entries from the list cache. - * - * @private - * @name clear - * @memberOf ListCache - */ -function listCacheClear() { - this.__data__ = []; - this.size = 0; -} +var has = __webpack_require__(/*! ./_has */ 26); +var toIObject = __webpack_require__(/*! ./_to-iobject */ 39); +var arrayIndexOf = __webpack_require__(/*! ./_array-includes */ 826)(false); +var IE_PROTO = __webpack_require__(/*! ./_shared-key */ 136)('IE_PROTO'); -module.exports = listCacheClear; +module.exports = function (object, names) { + var O = toIObject(object); + var i = 0; + var result = []; + var key; + for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key); + // Don't enum bug & hidden keys + while (names.length > i) if (has(O, key = names[i++])) { + ~arrayIndexOf(result, key) || result.push(key); + } + return result; +}; /***/ }), -/* 195 */ -/*!*************************************************!*\ - !*** ./node_modules/lodash/_listCacheDelete.js ***! - \*************************************************/ -/*! no static exports found */ +/* 245 */ +/*!**********************************************************!*\ + !*** ./node_modules/core-js/library/modules/_iobject.js ***! + \**********************************************************/ +/*! dynamic exports provided */ /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { -var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ 36); +// fallback for non-array-like ES3 and non-enumerable old V8 strings +var cof = __webpack_require__(/*! ./_cof */ 246); +// eslint-disable-next-line no-prototype-builtins +module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) { + return cof(it) == 'String' ? it.split('') : Object(it); +}; -/** Used for built-in method references. */ -var arrayProto = Array.prototype; -/** Built-in value references. */ -var splice = arrayProto.splice; +/***/ }), +/* 246 */ +/*!******************************************************!*\ + !*** ./node_modules/core-js/library/modules/_cof.js ***! + \******************************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports) { -/** - * Removes `key` and its value from the list cache. - * - * @private - * @name delete - * @memberOf ListCache - * @param {string} key The key of the value to remove. - * @returns {boolean} Returns `true` if the entry was removed, else `false`. - */ -function listCacheDelete(key) { - var data = this.__data__, - index = assocIndexOf(data, key); +var toString = {}.toString; - if (index < 0) { - return false; - } - var lastIndex = data.length - 1; - if (index == lastIndex) { - data.pop(); - } else { - splice.call(data, index, 1); - } - --this.size; - return true; -} +module.exports = function (it) { + return toString.call(it).slice(8, -1); +}; -module.exports = listCacheDelete; + +/***/ }), +/* 247 */ +/*!*************************************************************!*\ + !*** ./node_modules/core-js/library/modules/_object-gpo.js ***! + \*************************************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { + +// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O) +var has = __webpack_require__(/*! ./_has */ 26); +var toObject = __webpack_require__(/*! ./_to-object */ 140); +var IE_PROTO = __webpack_require__(/*! ./_shared-key */ 136)('IE_PROTO'); +var ObjectProto = Object.prototype; + +module.exports = Object.getPrototypeOf || function (O) { + O = toObject(O); + if (has(O, IE_PROTO)) return O[IE_PROTO]; + if (typeof O.constructor == 'function' && O instanceof O.constructor) { + return O.constructor.prototype; + } return O instanceof Object ? ObjectProto : null; +}; /***/ }), -/* 196 */ -/*!**********************************************!*\ - !*** ./node_modules/lodash/_listCacheGet.js ***! - \**********************************************/ -/*! no static exports found */ +/* 248 */ +/*!******************************************************!*\ + !*** ./node_modules/babel-runtime/helpers/typeof.js ***! + \******************************************************/ +/*! dynamic exports provided */ /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { -var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ 36); +"use strict"; -/** - * Gets the list cache value for `key`. - * - * @private - * @name get - * @memberOf ListCache - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ -function listCacheGet(key) { - var data = this.__data__, - index = assocIndexOf(data, key); - return index < 0 ? undefined : data[index][1]; -} +exports.__esModule = true; -module.exports = listCacheGet; +var _iterator = __webpack_require__(/*! ../core-js/symbol/iterator */ 839); +var _iterator2 = _interopRequireDefault(_iterator); -/***/ }), -/* 197 */ -/*!**********************************************!*\ - !*** ./node_modules/lodash/_listCacheHas.js ***! - \**********************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { +var _symbol = __webpack_require__(/*! ../core-js/symbol */ 850); -var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ 36); +var _symbol2 = _interopRequireDefault(_symbol); -/** - * Checks if a list cache value for `key` exists. - * - * @private - * @name has - * @memberOf ListCache - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ -function listCacheHas(key) { - return assocIndexOf(this.__data__, key) > -1; -} +var _typeof = typeof _symbol2.default === "function" && typeof _iterator2.default === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj; }; -module.exports = listCacheHas; +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } +exports.default = typeof _symbol2.default === "function" && _typeof(_iterator2.default) === "symbol" ? function (obj) { + return typeof obj === "undefined" ? "undefined" : _typeof(obj); +} : function (obj) { + return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof(obj); +}; /***/ }), -/* 198 */ -/*!**********************************************!*\ - !*** ./node_modules/lodash/_listCacheSet.js ***! - \**********************************************/ -/*! no static exports found */ +/* 249 */ +/*!**************************************************************!*\ + !*** ./node_modules/core-js/library/modules/_iter-define.js ***! + \**************************************************************/ +/*! dynamic exports provided */ /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { -var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ 36); - -/** - * Sets the list cache `key` to `value`. - * - * @private - * @name set - * @memberOf ListCache - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the list cache instance. - */ -function listCacheSet(key, value) { - var data = this.__data__, - index = assocIndexOf(data, key); +"use strict"; - if (index < 0) { - ++this.size; - data.push([key, value]); - } else { - data[index][1] = value; +var LIBRARY = __webpack_require__(/*! ./_library */ 71); +var $export = __webpack_require__(/*! ./_export */ 23); +var redefine = __webpack_require__(/*! ./_redefine */ 250); +var hide = __webpack_require__(/*! ./_hide */ 36); +var Iterators = __webpack_require__(/*! ./_iterators */ 141); +var $iterCreate = __webpack_require__(/*! ./_iter-create */ 843); +var setToStringTag = __webpack_require__(/*! ./_set-to-string-tag */ 143); +var getPrototypeOf = __webpack_require__(/*! ./_object-gpo */ 247); +var ITERATOR = __webpack_require__(/*! ./_wks */ 40)('iterator'); +var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next` +var FF_ITERATOR = '@@iterator'; +var KEYS = 'keys'; +var VALUES = 'values'; + +var returnThis = function () { return this; }; + +module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) { + $iterCreate(Constructor, NAME, next); + var getMethod = function (kind) { + if (!BUGGY && kind in proto) return proto[kind]; + switch (kind) { + case KEYS: return function keys() { return new Constructor(this, kind); }; + case VALUES: return function values() { return new Constructor(this, kind); }; + } return function entries() { return new Constructor(this, kind); }; + }; + var TAG = NAME + ' Iterator'; + var DEF_VALUES = DEFAULT == VALUES; + var VALUES_BUG = false; + var proto = Base.prototype; + var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT]; + var $default = $native || getMethod(DEFAULT); + var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined; + var $anyNative = NAME == 'Array' ? proto.entries || $native : $native; + var methods, key, IteratorPrototype; + // Fix native + if ($anyNative) { + IteratorPrototype = getPrototypeOf($anyNative.call(new Base())); + if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) { + // Set @@toStringTag to native iterators + setToStringTag(IteratorPrototype, TAG, true); + // fix for some old engines + if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis); + } + } + // fix Array#{values, @@iterator}.name in V8 / FF + if (DEF_VALUES && $native && $native.name !== VALUES) { + VALUES_BUG = true; + $default = function values() { return $native.call(this); }; + } + // Define iterator + if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) { + hide(proto, ITERATOR, $default); + } + // Plug for library + Iterators[NAME] = $default; + Iterators[TAG] = returnThis; + if (DEFAULT) { + methods = { + values: DEF_VALUES ? $default : getMethod(VALUES), + keys: IS_SET ? $default : getMethod(KEYS), + entries: $entries + }; + if (FORCED) for (key in methods) { + if (!(key in proto)) redefine(proto, key, methods[key]); + } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods); } - return this; -} - -module.exports = listCacheSet; + return methods; +}; /***/ }), -/* 199 */ -/*!********************************************!*\ - !*** ./node_modules/lodash/_stackClear.js ***! - \********************************************/ -/*! no static exports found */ +/* 250 */ +/*!***********************************************************!*\ + !*** ./node_modules/core-js/library/modules/_redefine.js ***! + \***********************************************************/ +/*! dynamic exports provided */ /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { -var ListCache = __webpack_require__(/*! ./_ListCache */ 35); - -/** - * Removes all key-value entries from the stack. - * - * @private - * @name clear - * @memberOf Stack - */ -function stackClear() { - this.__data__ = new ListCache; - this.size = 0; -} - -module.exports = stackClear; +module.exports = __webpack_require__(/*! ./_hide */ 36); /***/ }), -/* 200 */ -/*!*********************************************!*\ - !*** ./node_modules/lodash/_stackDelete.js ***! - \*********************************************/ -/*! no static exports found */ +/* 251 */ +/*!**************************************************************!*\ + !*** ./node_modules/core-js/library/modules/_object-gopn.js ***! + \**************************************************************/ +/*! dynamic exports provided */ /*! all exports used */ -/***/ (function(module, exports) { - -/** - * Removes `key` and its value from the stack. - * - * @private - * @name delete - * @memberOf Stack - * @param {string} key The key of the value to remove. - * @returns {boolean} Returns `true` if the entry was removed, else `false`. - */ -function stackDelete(key) { - var data = this.__data__, - result = data['delete'](key); +/***/ (function(module, exports, __webpack_require__) { - this.size = data.size; - return result; -} +// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O) +var $keys = __webpack_require__(/*! ./_object-keys-internal */ 244); +var hiddenKeys = __webpack_require__(/*! ./_enum-bug-keys */ 138).concat('length', 'prototype'); -module.exports = stackDelete; +exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { + return $keys(O, hiddenKeys); +}; /***/ }), -/* 201 */ -/*!******************************************!*\ - !*** ./node_modules/lodash/_stackGet.js ***! - \******************************************/ -/*! no static exports found */ +/* 252 */ +/*!**************************************************************!*\ + !*** ./node_modules/core-js/library/modules/_object-gopd.js ***! + \**************************************************************/ +/*! dynamic exports provided */ /*! all exports used */ -/***/ (function(module, exports) { - -/** - * Gets the stack value for `key`. - * - * @private - * @name get - * @memberOf Stack - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ -function stackGet(key) { - return this.__data__.get(key); -} +/***/ (function(module, exports, __webpack_require__) { -module.exports = stackGet; +var pIE = __webpack_require__(/*! ./_object-pie */ 73); +var createDesc = __webpack_require__(/*! ./_property-desc */ 69); +var toIObject = __webpack_require__(/*! ./_to-iobject */ 39); +var toPrimitive = __webpack_require__(/*! ./_to-primitive */ 133); +var has = __webpack_require__(/*! ./_has */ 26); +var IE8_DOM_DEFINE = __webpack_require__(/*! ./_ie8-dom-define */ 242); +var gOPD = Object.getOwnPropertyDescriptor; + +exports.f = __webpack_require__(/*! ./_descriptors */ 25) ? gOPD : function getOwnPropertyDescriptor(O, P) { + O = toIObject(O); + P = toPrimitive(P, true); + if (IE8_DOM_DEFINE) try { + return gOPD(O, P); + } catch (e) { /* empty */ } + if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]); +}; /***/ }), -/* 202 */ -/*!******************************************!*\ - !*** ./node_modules/lodash/_stackHas.js ***! - \******************************************/ -/*! no static exports found */ +/* 253 */ +/*!***********************!*\ + !*** ./src/blocks.js ***! + \***********************/ +/*! no exports provided */ /*! all exports used */ -/***/ (function(module, exports) { +/***/ (function(module, __webpack_exports__, __webpack_require__) { -/** - * Checks if a stack value for `key` exists. - * - * @private - * @name has - * @memberOf Stack - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. +"use strict"; +Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__blocks_extensions_attributes_js__ = __webpack_require__(/*! ./blocks/extensions/attributes.js */ 254); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__blocks_extensions_attributes_js___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__blocks_extensions_attributes_js__); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__blocks_advanced_heading_block_js__ = __webpack_require__(/*! ./blocks/advanced-heading/block.js */ 255); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__blocks_post_block_js__ = __webpack_require__(/*! ./blocks/post/block.js */ 382); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__blocks_section_block_js__ = __webpack_require__(/*! ./blocks/section/block.js */ 497); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__blocks_buttons_block_js__ = __webpack_require__(/*! ./blocks/buttons/block.js */ 504); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__blocks_buttons_child_block_js__ = __webpack_require__(/*! ./blocks/buttons-child/block.js */ 512); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__blocks_info_box_block_js__ = __webpack_require__(/*! ./blocks/info-box/block.js */ 529); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__blocks_testimonial_block_js__ = __webpack_require__(/*! ./blocks/testimonial/block.js */ 538); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__blocks_team_block_js__ = __webpack_require__(/*! ./blocks/team/block.js */ 546); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__blocks_social_share_block_js__ = __webpack_require__(/*! ./blocks/social-share/block.js */ 553); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__blocks_social_share_child_block_js__ = __webpack_require__(/*! ./blocks/social-share-child/block.js */ 561); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__blocks_google_map_block_js__ = __webpack_require__(/*! ./blocks/google-map/block.js */ 568); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__blocks_icon_list_block_js__ = __webpack_require__(/*! ./blocks/icon-list/block.js */ 570); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__blocks_icon_list_child_block_js__ = __webpack_require__(/*! ./blocks/icon-list-child/block.js */ 577); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__blocks_price_list_block_js__ = __webpack_require__(/*! ./blocks/price-list/block.js */ 584); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__blocks_price_list_child_block_js__ = __webpack_require__(/*! ./blocks/price-list-child/block.js */ 591); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_16__blocks_timeline_block_js__ = __webpack_require__(/*! ./blocks/timeline/block.js */ 596); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_17__blocks_call_to_action_block_js__ = __webpack_require__(/*! ./blocks/call-to-action/block.js */ 621); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_18__blocks_column_block_js__ = __webpack_require__(/*! ./blocks/column/block.js */ 629); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_19__blocks_columns_block_js__ = __webpack_require__(/*! ./blocks/columns/block.js */ 637); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_20__blocks_cf7_styler_block_js__ = __webpack_require__(/*! ./blocks/cf7-styler/block.js */ 656); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_21__blocks_gf_styler_block_js__ = __webpack_require__(/*! ./blocks/gf-styler/block.js */ 661); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_22__blocks_blockquote_block_js__ = __webpack_require__(/*! ./blocks/blockquote/block.js */ 666); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_23__blocks_marketing_button_block_js__ = __webpack_require__(/*! ./blocks/marketing-button/block.js */ 674); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_24__blocks_table_of_contents_block_js__ = __webpack_require__(/*! ./blocks/table-of-contents/block.js */ 681); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_25__blocks_how_to_block_js__ = __webpack_require__(/*! ./blocks/how-to/block.js */ 689); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_26__blocks_faq_block_js__ = __webpack_require__(/*! ./blocks/faq/block.js */ 696); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_27__blocks_faq_child_block_js__ = __webpack_require__(/*! ./blocks/faq-child/block.js */ 703); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_28__blocks_inline_notice_block_js__ = __webpack_require__(/*! ./blocks/inline-notice/block.js */ 709); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_29__blocks_wp_search_block_js__ = __webpack_require__(/*! ./blocks/wp-search/block.js */ 716); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_30__blocks_review_block_js__ = __webpack_require__(/*! ./blocks/review/block.js */ 723); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_31__blocks_taxonomy_list_block_js__ = __webpack_require__(/*! ./blocks/taxonomy-list/block.js */ 731); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_32__blocks_forms_block_js__ = __webpack_require__(/*! ./blocks/forms/block.js */ 736); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_33__blocks_forms_child_blocks_name_block_js__ = __webpack_require__(/*! ./blocks/forms/child-blocks/name/block.js */ 744); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_34__blocks_forms_child_blocks_email_block_js__ = __webpack_require__(/*! ./blocks/forms/child-blocks/email/block.js */ 749); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_35__blocks_forms_child_blocks_hidden_block_js__ = __webpack_require__(/*! ./blocks/forms/child-blocks/hidden/block.js */ 754); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_36__blocks_forms_child_blocks_phone_block_js__ = __webpack_require__(/*! ./blocks/forms/child-blocks/phone/block.js */ 758); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_37__blocks_forms_child_blocks_textarea_block_js__ = __webpack_require__(/*! ./blocks/forms/child-blocks/textarea/block.js */ 763); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_38__blocks_forms_child_blocks_checkbox_block_js__ = __webpack_require__(/*! ./blocks/forms/child-blocks/checkbox/block.js */ 767); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_39__blocks_forms_child_blocks_radio_block_js__ = __webpack_require__(/*! ./blocks/forms/child-blocks/radio/block.js */ 772); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_40__blocks_forms_child_blocks_url_block_js__ = __webpack_require__(/*! ./blocks/forms/child-blocks/url/block.js */ 777); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_41__blocks_forms_child_blocks_select_block_js__ = __webpack_require__(/*! ./blocks/forms/child-blocks/select/block.js */ 781); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_42__blocks_forms_child_blocks_toggle_block_js__ = __webpack_require__(/*! ./blocks/forms/child-blocks/toggle/block.js */ 786); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_43__blocks_forms_child_blocks_date_block_js__ = __webpack_require__(/*! ./blocks/forms/child-blocks/date/block.js */ 791); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_44__blocks_forms_child_blocks_accept_block_js__ = __webpack_require__(/*! ./blocks/forms/child-blocks/accept/block.js */ 796); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_45__blocks_extensions_block_js__ = __webpack_require__(/*! ./blocks/extensions/block.js */ 801); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_46__blocks_tabs_block_js__ = __webpack_require__(/*! ./blocks/tabs/block.js */ 803); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_47__blocks_tabs_child_block_js__ = __webpack_require__(/*! ./blocks/tabs-child/block.js */ 810); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_48__blocks_lottie_block_js__ = __webpack_require__(/*! ./blocks/lottie/block.js */ 815); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_49__dist_blocks_uagb_controls_block_icons__ = __webpack_require__(/*! ../dist/blocks/uagb-controls/block-icons */ 1); +/** + * Gutenberg Blocks + * + * All blocks related JavaScript files should be imported here. + * You can create a new block folder in this dir and include code + * for that block here as well. + * + * All blocks should be included here since this is the file that + * Webpack is compiling as the input file. */ -function stackHas(key) { - return this.__data__.has(key); -} -module.exports = stackHas; -/***/ }), -/* 203 */ -/*!******************************************!*\ - !*** ./node_modules/lodash/_stackSet.js ***! - \******************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { -var ListCache = __webpack_require__(/*! ./_ListCache */ 35), - Map = __webpack_require__(/*! ./_Map */ 53), - MapCache = __webpack_require__(/*! ./_MapCache */ 55); -/** Used as the size to enable large array optimizations. */ -var LARGE_ARRAY_SIZE = 200; -/** - * Sets the stack `key` to `value`. - * - * @private - * @name set - * @memberOf Stack - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the stack cache instance. - */ -function stackSet(key, value) { - var data = this.__data__; - if (data instanceof ListCache) { - var pairs = data.__data__; - if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) { - pairs.push([key, value]); - this.size = ++data.size; - return this; - } - data = this.__data__ = new MapCache(pairs); - } - data.set(key, value); - this.size = data.size; - return this; -} -module.exports = stackSet; -/***/ }), -/* 204 */ -/*!**********************************************!*\ - !*** ./node_modules/lodash/_baseIsNative.js ***! - \**********************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { -var isFunction = __webpack_require__(/*! ./isFunction */ 112), - isMasked = __webpack_require__(/*! ./_isMasked */ 207), - isObject = __webpack_require__(/*! ./isObject */ 13), - toSource = __webpack_require__(/*! ./_toSource */ 114); -/** - * Used to match `RegExp` - * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns). - */ -var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; -/** Used to detect host constructors (Safari). */ -var reIsHostCtor = /^\[object .+?Constructor\]$/; -/** Used for built-in method references. */ -var funcProto = Function.prototype, - objectProto = Object.prototype; -/** Used to resolve the decompiled source of functions. */ -var funcToString = funcProto.toString; -/** Used to check objects for own properties. */ -var hasOwnProperty = objectProto.hasOwnProperty; -/** Used to detect if a method is native. */ -var reIsNative = RegExp('^' + - funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&') - .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$' -); -/** - * The base implementation of `_.isNative` without bad shim checks. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a native function, - * else `false`. - */ -function baseIsNative(value) { - if (!isObject(value) || isMasked(value)) { - return false; - } - var pattern = isFunction(value) ? reIsNative : reIsHostCtor; - return pattern.test(toSource(value)); -} -module.exports = baseIsNative; -/***/ }), -/* 205 */ -/*!*******************************************!*\ - !*** ./node_modules/lodash/_getRawTag.js ***! - \*******************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { -var Symbol = __webpack_require__(/*! ./_Symbol */ 22); -/** Used for built-in method references. */ -var objectProto = Object.prototype; -/** Used to check objects for own properties. */ -var hasOwnProperty = objectProto.hasOwnProperty; -/** - * Used to resolve the - * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) - * of values. - */ -var nativeObjectToString = objectProto.toString; -/** Built-in value references. */ -var symToStringTag = Symbol ? Symbol.toStringTag : undefined; -/** - * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values. - * - * @private - * @param {*} value The value to query. - * @returns {string} Returns the raw `toStringTag`. - */ -function getRawTag(value) { - var isOwn = hasOwnProperty.call(value, symToStringTag), - tag = value[symToStringTag]; - try { - value[symToStringTag] = undefined; - var unmasked = true; - } catch (e) {} - var result = nativeObjectToString.call(value); - if (unmasked) { - if (isOwn) { - value[symToStringTag] = tag; - } else { - delete value[symToStringTag]; - } - } - return result; -} -module.exports = getRawTag; -/***/ }), -/* 206 */ -/*!************************************************!*\ - !*** ./node_modules/lodash/_objectToString.js ***! - \************************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports) { -/** Used for built-in method references. */ -var objectProto = Object.prototype; -/** - * Used to resolve the - * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) - * of values. - */ -var nativeObjectToString = objectProto.toString; -/** - * Converts `value` to a string using `Object.prototype.toString`. - * - * @private - * @param {*} value The value to convert. - * @returns {string} Returns the converted string. - */ -function objectToString(value) { - return nativeObjectToString.call(value); -} -module.exports = objectToString; -/***/ }), -/* 207 */ -/*!******************************************!*\ - !*** ./node_modules/lodash/_isMasked.js ***! - \******************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { -var coreJsData = __webpack_require__(/*! ./_coreJsData */ 208); -/** Used to detect methods masquerading as native. */ -var maskSrcKey = (function() { - var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ''); - return uid ? ('Symbol(src)_1.' + uid) : ''; -}()); -/** - * Checks if `func` has its source masked. - * - * @private - * @param {Function} func The function to check. - * @returns {boolean} Returns `true` if `func` is masked, else `false`. - */ -function isMasked(func) { - return !!maskSrcKey && (maskSrcKey in func); -} -module.exports = isMasked; -/***/ }), -/* 208 */ -/*!********************************************!*\ - !*** ./node_modules/lodash/_coreJsData.js ***! - \********************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { -var root = __webpack_require__(/*! ./_root */ 12); -/** Used to detect overreaching core-js shims. */ -var coreJsData = root['__core-js_shared__']; -module.exports = coreJsData; -/***/ }), -/* 209 */ -/*!******************************************!*\ - !*** ./node_modules/lodash/_getValue.js ***! - \******************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports) { -/** - * Gets the value at `key` of `object`. - * - * @private - * @param {Object} [object] The object to query. - * @param {string} key The key of the property to get. - * @returns {*} Returns the property value. - */ -function getValue(object, key) { - return object == null ? undefined : object[key]; -} -module.exports = getValue; -/***/ }), -/* 210 */ -/*!***********************************************!*\ - !*** ./node_modules/lodash/_mapCacheClear.js ***! - \***********************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { +var updateCategory = wp.blocks.updateCategory; -var Hash = __webpack_require__(/*! ./_Hash */ 211), - ListCache = __webpack_require__(/*! ./_ListCache */ 35), - Map = __webpack_require__(/*! ./_Map */ 53); - -/** - * Removes all key-value entries from the map. - * - * @private - * @name clear - * @memberOf MapCache - */ -function mapCacheClear() { - this.size = 0; - this.__data__ = { - 'hash': new Hash, - 'map': new (Map || ListCache), - 'string': new Hash - }; -} - -module.exports = mapCacheClear; +updateCategory("uagb", { + icon: __WEBPACK_IMPORTED_MODULE_49__dist_blocks_uagb_controls_block_icons__["a" /* default */].logo +}); /***/ }), -/* 211 */ -/*!**************************************!*\ - !*** ./node_modules/lodash/_Hash.js ***! - \**************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { +/* 254 */ +/*!*********************************************!*\ + !*** ./src/blocks/extensions/attributes.js ***! + \*********************************************/ +/*! dynamic exports provided */ +/***/ (function(module, exports) { -var hashClear = __webpack_require__(/*! ./_hashClear */ 212), - hashDelete = __webpack_require__(/*! ./_hashDelete */ 213), - hashGet = __webpack_require__(/*! ./_hashGet */ 214), - hashHas = __webpack_require__(/*! ./_hashHas */ 215), - hashSet = __webpack_require__(/*! ./_hashSet */ 216); +function addAttributes(settings) { + var excludeBlock = ['wpforms/form-selector']; -/** - * Creates a hash object. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ -function Hash(entries) { - var index = -1, - length = entries == null ? 0 : entries.length; + if (!excludeBlock.includes(settings.name)) { - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } + if (settings.attributes) { + settings.attributes = Object.assign(settings.attributes, { + UAGUserRole: { + type: "string" + }, + UAGBrowser: { + type: "string" + }, + UAGSystem: { + type: "string" + }, + UAGDisplayConditions: { + type: "string" + }, + UAGHideDesktop: { + type: "boolean", + default: false + }, + UAGHideMob: { + type: "boolean", + default: false + }, + UAGHideTab: { + type: "boolean", + default: false + }, + UAGLoggedIn: { + type: "boolean", + default: false + }, + UAGLoggedOut: { + type: "boolean", + default: false + } + }); + } + } + return settings; } -// Add methods to `Hash`. -Hash.prototype.clear = hashClear; -Hash.prototype['delete'] = hashDelete; -Hash.prototype.get = hashGet; -Hash.prototype.has = hashHas; -Hash.prototype.set = hashSet; - -module.exports = Hash; - +wp.hooks.addFilter('blocks.registerBlockType', 'uagb/advanced-control-block', addAttributes); /***/ }), -/* 212 */ -/*!*******************************************!*\ - !*** ./node_modules/lodash/_hashClear.js ***! - \*******************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { - -var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ 38); +/* 255 */ +/*!**********************************************!*\ + !*** ./src/blocks/advanced-heading/block.js ***! + \**********************************************/ +/*! no exports provided */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { -/** - * Removes all key-value entries from the hash. - * - * @private - * @name clear - * @memberOf Hash +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_block_icons__ = __webpack_require__(/*! ../../../dist/blocks/uagb-controls/block-icons */ 1); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__attributes__ = __webpack_require__(/*! ./attributes */ 146); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__edit__ = __webpack_require__(/*! ./edit */ 256); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__save__ = __webpack_require__(/*! ./save */ 380); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__deprecated__ = __webpack_require__(/*! ./deprecated */ 381); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__style_scss__ = __webpack_require__(/*! ./style.scss */ 183); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__style_scss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5__style_scss__); +/** + * BLOCK: Advanced Heading */ -function hashClear() { - this.__data__ = nativeCreate ? nativeCreate(null) : {}; - this.size = 0; -} - -module.exports = hashClear; - - -/***/ }), -/* 213 */ -/*!********************************************!*\ - !*** ./node_modules/lodash/_hashDelete.js ***! - \********************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports) { -/** - * Removes `key` and its value from the hash. - * - * @private - * @name delete - * @memberOf Hash - * @param {Object} hash The hash to modify. - * @param {string} key The key of the value to remove. - * @returns {boolean} Returns `true` if the entry was removed, else `false`. - */ -function hashDelete(key) { - var result = this.has(key) && delete this.__data__[key]; - this.size -= result ? 1 : 0; - return result; -} -module.exports = hashDelete; -/***/ }), -/* 214 */ -/*!*****************************************!*\ - !*** ./node_modules/lodash/_hashGet.js ***! - \*****************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { -var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ 38); -/** Used to stand-in for `undefined` hash values. */ -var HASH_UNDEFINED = '__lodash_hash_undefined__'; -/** Used for built-in method references. */ -var objectProto = Object.prototype; -/** Used to check objects for own properties. */ -var hasOwnProperty = objectProto.hasOwnProperty; +var __ = wp.i18n.__; +var _wp$blocks = wp.blocks, + registerBlockType = _wp$blocks.registerBlockType, + createBlock = _wp$blocks.createBlock; -/** - * Gets the hash value for `key`. - * - * @private - * @name get - * @memberOf Hash - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ -function hashGet(key) { - var data = this.__data__; - if (nativeCreate) { - var result = data[key]; - return result === HASH_UNDEFINED ? undefined : result; - } - return hasOwnProperty.call(data, key) ? data[key] : undefined; -} -module.exports = hashGet; +registerBlockType("uagb/advanced-heading", { + title: uagb_blocks_info.blocks["uagb/advanced-heading"]["title"], + description: uagb_blocks_info.blocks["uagb/advanced-heading"]["description"], + icon: __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_block_icons__["a" /* default */].advanced_heading, + keywords: [__("advanced heading", 'ultimate-addons-for-gutenberg'), __("uag", 'ultimate-addons-for-gutenberg'), __("heading", 'ultimate-addons-for-gutenberg')], + supports: { + anchor: true + }, + example: { + attributes: { + headingTitle: __('Write a Heading', 'ultimate-addons-for-gutenberg'), + headingDesc: __('Write a Description', 'ultimate-addons-for-gutenberg') + } + }, + category: uagb_blocks_info.category, + attributes: __WEBPACK_IMPORTED_MODULE_1__attributes__["a" /* default */], + edit: __WEBPACK_IMPORTED_MODULE_2__edit__["a" /* default */], + save: __WEBPACK_IMPORTED_MODULE_3__save__["a" /* default */], + deprecated: __WEBPACK_IMPORTED_MODULE_4__deprecated__["a" /* default */], + transforms: { + from: [{ + type: 'block', + blocks: ['core/heading'], + transform: function transform(attributes) { + return createBlock('uagb/advanced-heading', { + headingTitle: attributes.content, + headingAlign: attributes.align, + className: 'uagb-heading-text' + }); + } + }, { + type: 'block', + blocks: ['core/quote'], + transform: function transform(attributes) { + return createBlock('uagb/advanced-heading', { + headingTitle: attributes.value, + headingDesc: attributes.citation, + className: 'uagb-heading-text' + }); + } + }], + to: [{ + type: 'block', + blocks: ['core/heading'], + transform: function transform(attributes) { + return createBlock('core/heading', { + content: attributes.headingTitle, + align: attributes.headingAlign, + className: 'uagb-heading-text' + }); + } + }, { + type: 'block', + blocks: ['core/quote'], + transform: function transform(attributes) { + return createBlock('core/quote', { + value: "

    " + attributes.headingTitle + "

    ", + citation: attributes.headingDesc, + className: 'uagb-heading-text' + }); + } + }] + } +}); /***/ }), -/* 215 */ -/*!*****************************************!*\ - !*** ./node_modules/lodash/_hashHas.js ***! - \*****************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { +/* 256 */ +/*!*********************************************!*\ + !*** ./src/blocks/advanced-heading/edit.js ***! + \*********************************************/ +/*! exports provided: default */ +/*! exports used: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { -var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ 38); +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_classnames__ = __webpack_require__(/*! classnames */ 0); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_classnames__); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__styling__ = __webpack_require__(/*! ./styling */ 257); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__components_typography__ = __webpack_require__(/*! ../../components/typography */ 7); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__components_typography_fontloader__ = __webpack_require__(/*! ../../components/typography/fontloader */ 8); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__style_scss__ = __webpack_require__(/*! ./style.scss */ 183); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__style_scss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4__style_scss__); +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); -/** Used for built-in method references. */ -var objectProto = Object.prototype; +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -/** Used to check objects for own properties. */ -var hasOwnProperty = objectProto.hasOwnProperty; +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } -/** - * Checks if a hash value for `key` exists. - * - * @private - * @name has - * @memberOf Hash - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ -function hashHas(key) { - var data = this.__data__; - return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key); -} +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } -module.exports = hashHas; +/** + * BLOCK: Advanced Heading + */ +// Import block dependencies and components. -/***/ }), -/* 216 */ -/*!*****************************************!*\ - !*** ./node_modules/lodash/_hashSet.js ***! - \*****************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { -var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ 38); -/** Used to stand-in for `undefined` hash values. */ -var HASH_UNDEFINED = '__lodash_hash_undefined__'; +// Import all of our Text Options requirements. -/** - * Sets the hash `key` to `value`. - * - * @private - * @name set - * @memberOf Hash - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the hash instance. - */ -function hashSet(key, value) { - var data = this.__data__; - this.size += this.has(key) ? 0 : 1; - data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value; - return this; -} -module.exports = hashSet; +// Import Web font loader for google fonts. -/***/ }), -/* 217 */ -/*!************************************************!*\ - !*** ./node_modules/lodash/_mapCacheDelete.js ***! - \************************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { +// Import CSS. -var getMapData = __webpack_require__(/*! ./_getMapData */ 39); -/** - * Removes `key` and its value from the map. - * - * @private - * @name delete - * @memberOf MapCache - * @param {string} key The key of the value to remove. - * @returns {boolean} Returns `true` if the entry was removed, else `false`. - */ -function mapCacheDelete(key) { - var result = getMapData(this, key)['delete'](key); - this.size -= result ? 1 : 0; - return result; -} +var __ = wp.i18n.__; +var createBlock = wp.blocks.createBlock; +var _wp$blockEditor = wp.blockEditor, + AlignmentToolbar = _wp$blockEditor.AlignmentToolbar, + BlockControls = _wp$blockEditor.BlockControls, + InspectorControls = _wp$blockEditor.InspectorControls, + RichText = _wp$blockEditor.RichText, + ColorPalette = _wp$blockEditor.ColorPalette; +var _wp$components = wp.components, + PanelBody = _wp$components.PanelBody, + SelectControl = _wp$components.SelectControl, + RangeControl = _wp$components.RangeControl, + ButtonGroup = _wp$components.ButtonGroup, + Button = _wp$components.Button; +var withSelect = wp.data.withSelect; +var _wp$element = wp.element, + Component = _wp$element.Component, + Fragment = _wp$element.Fragment; -module.exports = mapCacheDelete; +var UAGBAdvancedHeading = function (_Component) { + _inherits(UAGBAdvancedHeading, _Component); + function UAGBAdvancedHeading() { + _classCallCheck(this, UAGBAdvancedHeading); -/***/ }), -/* 218 */ -/*!*******************************************!*\ - !*** ./node_modules/lodash/_isKeyable.js ***! - \*******************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports) { + var _this = _possibleConstructorReturn(this, (UAGBAdvancedHeading.__proto__ || Object.getPrototypeOf(UAGBAdvancedHeading)).apply(this, arguments)); -/** - * Checks if `value` is suitable for use as unique object key. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is suitable, else `false`. - */ -function isKeyable(value) { - var type = typeof value; - return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean') - ? (value !== '__proto__') - : (value === null); -} + _this.splitBlock = _this.splitBlock.bind(_this); + return _this; + } -module.exports = isKeyable; + _createClass(UAGBAdvancedHeading, [{ + key: "componentDidMount", + value: function componentDidMount() { + // Assigning block_id in the attribute. + this.props.setAttributes({ block_id: this.props.clientId.substr(0, 8) }); -/***/ }), -/* 219 */ -/*!*********************************************!*\ - !*** ./node_modules/lodash/_mapCacheGet.js ***! - \*********************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { + // Assigning block_id in the attribute. + this.props.setAttributes({ classMigrate: true }); -var getMapData = __webpack_require__(/*! ./_getMapData */ 39); + var level_val = parseInt(this.props.attributes.headingTag.replace('h', '')); + this.props.setAttributes({ level: level_val }); -/** - * Gets the map value for `key`. - * - * @private - * @name get - * @memberOf MapCache - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ -function mapCacheGet(key) { - return getMapData(this, key).get(key); -} + // Pushing Style tag for this block css. + var $style = document.createElement("style"); + $style.setAttribute("id", "uagb-adv-heading-style-" + this.props.clientId.substr(0, 8)); + document.head.appendChild($style); + } + }, { + key: "componentDidUpdate", + value: function componentDidUpdate(prevProps, prevState) { + var element = document.getElementById("uagb-adv-heading-style-" + this.props.clientId.substr(0, 8)); -module.exports = mapCacheGet; + if (null !== element && undefined !== element) { + element.innerHTML = Object(__WEBPACK_IMPORTED_MODULE_1__styling__["a" /* default */])(this.props); + } + } + /* + * Heading Tag Change + */ -/***/ }), -/* 220 */ -/*!*********************************************!*\ - !*** ./node_modules/lodash/_mapCacheHas.js ***! - \*********************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { + }, { + key: "onTagChange", + value: function onTagChange(value) { + var setAttributes = this.props.setAttributes; -var getMapData = __webpack_require__(/*! ./_getMapData */ 39); -/** - * Checks if a map value for `key` exists. - * - * @private - * @name has - * @memberOf MapCache - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ -function mapCacheHas(key) { - return getMapData(this, key).has(key); -} + var level_val = parseInt(value.replace('h', '')); -module.exports = mapCacheHas; + setAttributes({ level: level_val }); + setAttributes({ headingTag: value }); + } + }, { + key: "splitBlock", + value: function splitBlock(before, after) { + var _props = this.props, + attributes = _props.attributes, + insertBlocksAfter = _props.insertBlocksAfter, + setAttributes = _props.setAttributes, + onReplace = _props.onReplace; + for (var _len = arguments.length, blocks = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { + blocks[_key - 2] = arguments[_key]; + } -/***/ }), -/* 221 */ -/*!*********************************************!*\ - !*** ./node_modules/lodash/_mapCacheSet.js ***! - \*********************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { + if (after) { + // Append "After" content as a new paragraph block to the end of + // any other blocks being inserted after the current paragraph. + blocks.push(createBlock("core/paragraph", { content: after })); + } -var getMapData = __webpack_require__(/*! ./_getMapData */ 39); + if (blocks.length && insertBlocksAfter) { + insertBlocksAfter(blocks); + } -/** - * Sets the map `key` to `value`. - * - * @private - * @name set - * @memberOf MapCache - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the map cache instance. - */ -function mapCacheSet(key, value) { - var data = getMapData(this, key), - size = data.size; + var content = attributes.content; - data.set(key, value); - this.size += data.size == size ? 0 : 1; - return this; -} + if (!before) { + // If before content is omitted, treat as intent to delete block. + onReplace([]); + } else if (content !== before) { + // Only update content if it has in-fact changed. In case that user + // has created a new paragraph at end of an existing one, the value + // of before will be strictly equal to the current content. + setAttributes({ content: before }); + } + } + }, { + key: "render", + value: function render() { + var _this2 = this; -module.exports = mapCacheSet; + // Setup the attributes + var _props2 = this.props, + className = _props2.className, + attributes = _props2.attributes, + setAttributes = _props2.setAttributes, + insertBlocksAfter = _props2.insertBlocksAfter, + mergeBlocks = _props2.mergeBlocks, + onReplace = _props2.onReplace, + _props2$attributes = _props2.attributes, + headingTitle = _props2$attributes.headingTitle, + headingDesc = _props2$attributes.headingDesc, + headingAlign = _props2$attributes.headingAlign, + headingColor = _props2$attributes.headingColor, + subHeadingColor = _props2$attributes.subHeadingColor, + separatorColor = _props2$attributes.separatorColor, + headingTag = _props2$attributes.headingTag, + headFontFamily = _props2$attributes.headFontFamily, + headFontWeight = _props2$attributes.headFontWeight, + headFontSubset = _props2$attributes.headFontSubset, + headFontSizeType = _props2$attributes.headFontSizeType, + headFontSize = _props2$attributes.headFontSize, + headFontSizeMobile = _props2$attributes.headFontSizeMobile, + headFontSizeTablet = _props2$attributes.headFontSizeTablet, + headLineHeightType = _props2$attributes.headLineHeightType, + headLineHeight = _props2$attributes.headLineHeight, + headLineHeightMobile = _props2$attributes.headLineHeightMobile, + headLineHeightTablet = _props2$attributes.headLineHeightTablet, + subHeadFontFamily = _props2$attributes.subHeadFontFamily, + subHeadFontWeight = _props2$attributes.subHeadFontWeight, + subHeadFontSubset = _props2$attributes.subHeadFontSubset, + subHeadFontSize = _props2$attributes.subHeadFontSize, + subHeadFontSizeType = _props2$attributes.subHeadFontSizeType, + subHeadFontSizeMobile = _props2$attributes.subHeadFontSizeMobile, + subHeadFontSizeTablet = _props2$attributes.subHeadFontSizeTablet, + subHeadLineHeight = _props2$attributes.subHeadLineHeight, + subHeadLineHeightType = _props2$attributes.subHeadLineHeightType, + subHeadLineHeightMobile = _props2$attributes.subHeadLineHeightMobile, + subHeadLineHeightTablet = _props2$attributes.subHeadLineHeightTablet, + separatorWidth = _props2$attributes.separatorWidth, + separatorWidthType = _props2$attributes.separatorWidthType, + seperatorStyle = _props2$attributes.seperatorStyle, + separatorHeight = _props2$attributes.separatorHeight, + headSpace = _props2$attributes.headSpace, + separatorSpace = _props2$attributes.separatorSpace, + headLoadGoogleFonts = _props2$attributes.headLoadGoogleFonts, + subHeadLoadGoogleFonts = _props2$attributes.subHeadLoadGoogleFonts; -/***/ }), -/* 222 */ -/*!*************************************************!*\ - !*** ./node_modules/lodash/_baseIsEqualDeep.js ***! - \*************************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { + var loadHeadingGoogleFonts = void 0; + var loadSubHeadingGoogleFonts = void 0; -var Stack = __webpack_require__(/*! ./_Stack */ 52), - equalArrays = __webpack_require__(/*! ./_equalArrays */ 116), - equalByTag = __webpack_require__(/*! ./_equalByTag */ 228), - equalObjects = __webpack_require__(/*! ./_equalObjects */ 231), - getTag = __webpack_require__(/*! ./_getTag */ 44), - isArray = __webpack_require__(/*! ./isArray */ 14), - isBuffer = __webpack_require__(/*! ./isBuffer */ 59), - isTypedArray = __webpack_require__(/*! ./isTypedArray */ 123); + if (headLoadGoogleFonts == true) { -/** Used to compose bitmasks for value comparisons. */ -var COMPARE_PARTIAL_FLAG = 1; - -/** `Object#toString` result references. */ -var argsTag = '[object Arguments]', - arrayTag = '[object Array]', - objectTag = '[object Object]'; - -/** Used for built-in method references. */ -var objectProto = Object.prototype; + var hconfig = { + google: { + families: [headFontFamily + (headFontWeight ? ':' + headFontWeight : '')] + } + }; -/** Used to check objects for own properties. */ -var hasOwnProperty = objectProto.hasOwnProperty; + loadHeadingGoogleFonts = wp.element.createElement(__WEBPACK_IMPORTED_MODULE_3__components_typography_fontloader__["a" /* default */], { config: hconfig }); + } -/** - * A specialized version of `baseIsEqual` for arrays and objects which performs - * deep comparisons and tracks traversed objects enabling objects with circular - * references to be compared. - * - * @private - * @param {Object} object The object to compare. - * @param {Object} other The other object to compare. - * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details. - * @param {Function} customizer The function to customize comparisons. - * @param {Function} equalFunc The function to determine equivalents of values. - * @param {Object} [stack] Tracks traversed `object` and `other` objects. - * @returns {boolean} Returns `true` if the objects are equivalent, else `false`. - */ -function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) { - var objIsArr = isArray(object), - othIsArr = isArray(other), - objTag = objIsArr ? arrayTag : getTag(object), - othTag = othIsArr ? arrayTag : getTag(other); + if (subHeadLoadGoogleFonts == true) { - objTag = objTag == argsTag ? objectTag : objTag; - othTag = othTag == argsTag ? objectTag : othTag; + var sconfig = { + google: { + families: [subHeadFontFamily + (subHeadFontWeight ? ':' + subHeadFontWeight : '')] + } + }; - var objIsObj = objTag == objectTag, - othIsObj = othTag == objectTag, - isSameTag = objTag == othTag; + loadSubHeadingGoogleFonts = wp.element.createElement(__WEBPACK_IMPORTED_MODULE_3__components_typography_fontloader__["a" /* default */], { config: sconfig }); + } - if (isSameTag && isBuffer(object)) { - if (!isBuffer(other)) { - return false; - } - objIsArr = true; - objIsObj = false; - } - if (isSameTag && !objIsObj) { - stack || (stack = new Stack); - return (objIsArr || isTypedArray(object)) - ? equalArrays(object, other, bitmask, customizer, equalFunc, stack) - : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack); - } - if (!(bitmask & COMPARE_PARTIAL_FLAG)) { - var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'), - othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__'); + return wp.element.createElement( + Fragment, + null, + wp.element.createElement( + BlockControls, + { key: "controls" }, + wp.element.createElement(AlignmentToolbar, { + value: headingAlign, + onChange: function onChange(value) { + return setAttributes({ headingAlign: value }); + } + }) + ), + wp.element.createElement( + InspectorControls, + null, + wp.element.createElement( + PanelBody, + { title: __("Advanced Heading", 'ultimate-addons-for-gutenberg') }, + wp.element.createElement( + "h2", + null, + __("Heading", 'ultimate-addons-for-gutenberg') + ), + wp.element.createElement(SelectControl, { + label: __("Heading Tag", 'ultimate-addons-for-gutenberg'), + value: headingTag, + onChange: function onChange(value) { + _this2.onTagChange(value); + }, + options: [{ value: "h1", label: __("H1", 'ultimate-addons-for-gutenberg') }, { value: "h2", label: __("H2", 'ultimate-addons-for-gutenberg') }, { value: "h3", label: __("H3", 'ultimate-addons-for-gutenberg') }, { value: "h4", label: __("H4", 'ultimate-addons-for-gutenberg') }, { value: "h5", label: __("H5", 'ultimate-addons-for-gutenberg') }, { value: "h6", label: __("H6", 'ultimate-addons-for-gutenberg') }] + }), + wp.element.createElement(__WEBPACK_IMPORTED_MODULE_2__components_typography__["a" /* default */], { + label: __("Typography", 'ultimate-addons-for-gutenberg'), + attributes: attributes, + setAttributes: setAttributes, + loadGoogleFonts: { value: headLoadGoogleFonts, label: 'headLoadGoogleFonts' }, + fontFamily: { value: headFontFamily, label: 'headFontFamily' }, + fontWeight: { value: headFontWeight, label: 'headFontWeight' }, + fontSubset: { value: headFontSubset, label: 'headFontSubset' }, + fontSizeType: { value: headFontSizeType, label: 'headFontSizeType' }, + fontSize: { value: headFontSize, label: 'headFontSize' }, + fontSizeMobile: { value: headFontSizeMobile, label: 'headFontSizeMobile' }, + fontSizeTablet: { value: headFontSizeTablet, label: 'headFontSizeTablet' }, + lineHeightType: { value: headLineHeightType, label: 'headLineHeightType' }, + lineHeight: { value: headLineHeight, label: 'headLineHeight' }, + lineHeightMobile: { value: headLineHeightMobile, label: 'headLineHeightMobile' }, + lineHeightTablet: { value: headLineHeightTablet, label: 'headLineHeightTablet' } + }), + wp.element.createElement( + "p", + { className: "uagb-setting-label" }, + __("Heading Color", 'ultimate-addons-for-gutenberg'), + wp.element.createElement( + "span", + { className: "components-base-control__label" }, + wp.element.createElement("span", { className: "component-color-indicator", style: { backgroundColor: headingColor } }) + ) + ), + wp.element.createElement(ColorPalette, { + value: headingColor, + onChange: function onChange(value) { + return setAttributes({ headingColor: value }); + }, + allowReset: true + }), + wp.element.createElement("hr", { className: "uagb-editor__separator" }), + wp.element.createElement( + "h2", + null, + __("Sub-Heading", 'ultimate-addons-for-gutenberg') + ), + wp.element.createElement(__WEBPACK_IMPORTED_MODULE_2__components_typography__["a" /* default */], { + label: __("Typography", 'ultimate-addons-for-gutenberg'), + attributes: attributes, + setAttributes: setAttributes, + loadGoogleFonts: { value: subHeadLoadGoogleFonts, label: 'subHeadLoadGoogleFonts' }, + fontFamily: { value: subHeadFontFamily, label: 'subHeadFontFamily' }, + fontWeight: { value: subHeadFontWeight, label: 'subHeadFontWeight' }, + fontSubset: { value: subHeadFontSubset, label: 'subHeadFontSubset' }, + fontSizeType: { value: subHeadFontSizeType, label: 'subHeadFontSizeType' }, + fontSize: { value: subHeadFontSize, label: 'subHeadFontSize' }, + fontSizeMobile: { value: subHeadFontSizeMobile, label: 'subHeadFontSizeMobile' }, + fontSizeTablet: { value: subHeadFontSizeTablet, label: 'subHeadFontSizeTablet' }, + lineHeightType: { value: subHeadLineHeightType, label: 'subHeadLineHeightType' }, + lineHeight: { value: subHeadLineHeight, label: 'subHeadLineHeight' }, + lineHeightMobile: { value: subHeadLineHeightMobile, label: 'subHeadLineHeightMobile' }, + lineHeightTablet: { value: subHeadLineHeightTablet, label: 'subHeadLineHeightTablet' } + }), + wp.element.createElement( + "p", + { className: "uagb-setting-label" }, + __("Sub Heading Color", 'ultimate-addons-for-gutenberg'), + wp.element.createElement( + "span", + { className: "components-base-control__label" }, + wp.element.createElement("span", { className: "component-color-indicator", style: { backgroundColor: subHeadingColor } }) + ) + ), + wp.element.createElement(ColorPalette, { + value: subHeadingColor, + onChange: function onChange(value) { + return setAttributes({ subHeadingColor: value }); + }, + allowReset: true + }) + ), + wp.element.createElement( + PanelBody, + { title: __("Separator", 'ultimate-addons-for-gutenberg'), initialOpen: false }, + wp.element.createElement(SelectControl, { + label: __("Style", 'ultimate-addons-for-gutenberg'), + value: seperatorStyle, + onChange: function onChange(value) { + return setAttributes({ seperatorStyle: value }); + }, + options: [{ value: "none", label: __("None", 'ultimate-addons-for-gutenberg') }, { value: "solid", label: __("Solid", 'ultimate-addons-for-gutenberg') }, { value: "double", label: __("Double", 'ultimate-addons-for-gutenberg') }, { value: "dashed", label: __("Dashed", 'ultimate-addons-for-gutenberg') }, { value: "dotted", label: __("Dotted", 'ultimate-addons-for-gutenberg') }] + }), + seperatorStyle !== "none" && wp.element.createElement( + Fragment, + null, + wp.element.createElement(RangeControl, { + label: __("Thickness (px)", 'ultimate-addons-for-gutenberg'), + value: separatorHeight, + onChange: function onChange(value) { + return setAttributes({ separatorHeight: value }); + }, + min: 0, + max: 20, + beforeIcon: "", + allowReset: true, + initialPosition: 3 + }), + wp.element.createElement( + ButtonGroup, + { className: "uagb-size-type-field", "aria-label": __("Size Type", 'ultimate-addons-for-gutenberg') }, + wp.element.createElement( + Button, + { key: "px", className: "uagb-size-btn", isSmall: true, isPrimary: separatorWidthType === "px", "aria-pressed": separatorWidthType === "px", onClick: function onClick() { + return setAttributes({ separatorWidthType: "px" }); + } }, + "px" + ), + wp.element.createElement( + Button, + { key: "%", className: "uagb-size-btn", isSmall: true, isPrimary: separatorWidthType === "%", "aria-pressed": separatorWidthType === "%", onClick: function onClick() { + return setAttributes({ separatorWidthType: "%" }); + } }, + "%" + ) + ), + wp.element.createElement(RangeControl, { + label: __("Width", 'ultimate-addons-for-gutenberg'), + value: separatorWidth, + onChange: function onChange(value) { + return setAttributes({ separatorWidth: value }); + }, + min: 0, + max: "%" == separatorWidthType ? 100 : 500, + beforeIcon: "", + allowReset: true, + initialPosition: 20 + }), + seperatorStyle !== "none" && wp.element.createElement( + Fragment, + null, + wp.element.createElement( + "p", + { className: "uagb-setting-label" }, + __("Separator Color", 'ultimate-addons-for-gutenberg'), + wp.element.createElement( + "span", + { className: "components-base-control__label" }, + wp.element.createElement("span", { className: "component-color-indicator", style: { backgroundColor: separatorColor } }) + ) + ), + wp.element.createElement(ColorPalette, { + value: separatorColor, + onChange: function onChange(colorValue) { + return setAttributes({ separatorColor: colorValue }); + }, + allowReset: true + }) + ) + ) + ), + wp.element.createElement( + PanelBody, + { title: __("Spacing", 'ultimate-addons-for-gutenberg'), initialOpen: false }, + wp.element.createElement(RangeControl, { + label: __("Heading Bottom Spacing (px)", 'ultimate-addons-for-gutenberg'), + value: headSpace, + onChange: function onChange(value) { + return setAttributes({ headSpace: value }); + }, + min: 0, + max: 500, + beforeIcon: "", + allowReset: true, + initialPosition: 0 + }), + seperatorStyle !== "none" && wp.element.createElement(RangeControl, { + label: __("Separator Bottom Spacing (px)", 'ultimate-addons-for-gutenberg'), + value: separatorSpace, + onChange: function onChange(value) { + return setAttributes({ separatorSpace: value }); + }, + min: 0, + max: 500, + beforeIcon: "", + allowReset: true, + initialPosition: 0 + }) + ) + ), + wp.element.createElement( + "div", + { + className: __WEBPACK_IMPORTED_MODULE_0_classnames___default()(className, "uagb-block-" + this.props.clientId.substr(0, 8)) + }, + wp.element.createElement(RichText, { + tagName: headingTag, + placeholder: __("Write a Heading", 'ultimate-addons-for-gutenberg'), + value: headingTitle, + className: "uagb-heading-text", + multiline: false, + onChange: function onChange(value) { + setAttributes({ headingTitle: value }); + }, + onMerge: mergeBlocks, + onSplit: insertBlocksAfter ? function (before, after) { + for (var _len2 = arguments.length, blocks = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) { + blocks[_key2 - 2] = arguments[_key2]; + } - if (objIsWrapped || othIsWrapped) { - var objUnwrapped = objIsWrapped ? object.value() : object, - othUnwrapped = othIsWrapped ? other.value() : other; + setAttributes({ content: before }); + insertBlocksAfter([].concat(blocks, [createBlock("core/paragraph", { content: after })])); + } : undefined, + onRemove: function onRemove() { + return onReplace([]); + } + }), + seperatorStyle !== "none" && wp.element.createElement( + "div", + { className: "uagb-separator-wrap" }, + wp.element.createElement("div", { className: "uagb-separator" }) + ), + wp.element.createElement(RichText, { + tagName: "p", + placeholder: __("Write a Description", 'ultimate-addons-for-gutenberg'), + value: headingDesc, + className: "uagb-desc-text", + onChange: function onChange(value) { + return setAttributes({ headingDesc: value }); + }, + onMerge: mergeBlocks, + onSplit: this.splitBlock, + onRemove: function onRemove() { + return onReplace([]); + } + }) + ), + loadHeadingGoogleFonts, + loadSubHeadingGoogleFonts + ); + } + }]); - stack || (stack = new Stack); - return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack); - } - } - if (!isSameTag) { - return false; - } - stack || (stack = new Stack); - return equalObjects(object, other, bitmask, customizer, equalFunc, stack); -} + return UAGBAdvancedHeading; +}(Component); -module.exports = baseIsEqualDeep; +/* harmony default export */ __webpack_exports__["a"] = (withSelect(function (select, props) { + var attributes = props.attributes; + return { + anchor: attributes.headingId + }; +})(UAGBAdvancedHeading)); /***/ }), -/* 223 */ -/*!******************************************!*\ - !*** ./node_modules/lodash/_SetCache.js ***! - \******************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { - -var MapCache = __webpack_require__(/*! ./_MapCache */ 55), - setCacheAdd = __webpack_require__(/*! ./_setCacheAdd */ 224), - setCacheHas = __webpack_require__(/*! ./_setCacheHas */ 225); +/* 257 */ +/*!************************************************!*\ + !*** ./src/blocks/advanced-heading/styling.js ***! + \************************************************/ +/*! exports provided: default */ +/*! exports used: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { -/** - * - * Creates an array cache object to store unique values. - * - * @private - * @constructor - * @param {Array} [values] The values to cache. +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSS__ = __webpack_require__(/*! ../../../dist/blocks/uagb-controls/generateCSS */ 4); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__ = __webpack_require__(/*! ../../../dist/blocks/uagb-controls/generateCSSUnit */ 3); +/** + * Returns Dynamic Generated CSS */ -function SetCache(values) { - var index = -1, - length = values == null ? 0 : values.length; - this.__data__ = new MapCache; - while (++index < length) { - this.add(values[index]); - } -} -// Add methods to `SetCache`. -SetCache.prototype.add = SetCache.prototype.push = setCacheAdd; -SetCache.prototype.has = setCacheHas; -module.exports = SetCache; +function styling(props) { + var _props$attributes = props.attributes, + classMigrate = _props$attributes.classMigrate, + headingAlign = _props$attributes.headingAlign, + headingTag = _props$attributes.headingTag, + headingColor = _props$attributes.headingColor, + headSpace = _props$attributes.headSpace, + seperatorStyle = _props$attributes.seperatorStyle, + separatorHeight = _props$attributes.separatorHeight, + separatorWidth = _props$attributes.separatorWidth, + separatorWidthType = _props$attributes.separatorWidthType, + separatorColor = _props$attributes.separatorColor, + separatorSpace = _props$attributes.separatorSpace, + subHeadingColor = _props$attributes.subHeadingColor, + headFontFamily = _props$attributes.headFontFamily, + headFontWeight = _props$attributes.headFontWeight, + headFontSize = _props$attributes.headFontSize, + headFontSizeType = _props$attributes.headFontSizeType, + headFontSizeMobile = _props$attributes.headFontSizeMobile, + headFontSizeTablet = _props$attributes.headFontSizeTablet, + headLineHeight = _props$attributes.headLineHeight, + headLineHeightType = _props$attributes.headLineHeightType, + headLineHeightMobile = _props$attributes.headLineHeightMobile, + headLineHeightTablet = _props$attributes.headLineHeightTablet, + subHeadFontFamily = _props$attributes.subHeadFontFamily, + subHeadFontWeight = _props$attributes.subHeadFontWeight, + subHeadFontSize = _props$attributes.subHeadFontSize, + subHeadFontSizeType = _props$attributes.subHeadFontSizeType, + subHeadFontSizeMobile = _props$attributes.subHeadFontSizeMobile, + subHeadFontSizeTablet = _props$attributes.subHeadFontSizeTablet, + subHeadLineHeight = _props$attributes.subHeadLineHeight, + subHeadLineHeightType = _props$attributes.subHeadLineHeightType, + subHeadLineHeightMobile = _props$attributes.subHeadLineHeightMobile, + subHeadLineHeightTablet = _props$attributes.subHeadLineHeightTablet; -/***/ }), -/* 224 */ -/*!*********************************************!*\ - !*** ./node_modules/lodash/_setCacheAdd.js ***! - \*********************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports) { -/** Used to stand-in for `undefined` hash values. */ -var HASH_UNDEFINED = '__lodash_hash_undefined__'; + var tablet_selectors = {}; + var mobile_selectors = {}; -/** - * Adds `value` to the array cache. - * - * @private - * @name add - * @memberOf SetCache - * @alias push - * @param {*} value The value to cache. - * @returns {Object} Returns the cache instance. - */ -function setCacheAdd(value) { - this.__data__.set(value, HASH_UNDEFINED); - return this; -} + var selectors = { + " .uagb-separator-wrap": { + "text-align": headingAlign + }, + " .block-editor-rich-text__editable.uagb-desc-text": { + "text-align": headingAlign, + "font-family": subHeadFontFamily, + "font-weight": subHeadFontWeight, + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(subHeadFontSize, subHeadFontSizeType), + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(subHeadLineHeight, subHeadLineHeightType), + "color": subHeadingColor + } + }; -module.exports = setCacheAdd; + selectors[" " + headingTag + ".block-editor-rich-text__editable.uagb-heading-text"] = { + "text-align": headingAlign, + "font-family": headFontFamily, + "font-weight": headFontWeight, + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headFontSize, headFontSizeType), + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headLineHeight, headLineHeightType), + "color": headingColor, + "margin-bottom": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headSpace, "px") + }; + if (seperatorStyle !== "none") { + selectors[" .uagb-separator"] = { + "border-top-style": seperatorStyle, + "border-top-width": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(separatorHeight, "px"), + "width": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(separatorWidth, separatorWidthType), + "border-color": separatorColor, + "margin-bottom": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(separatorSpace, "px") + }; + } -/***/ }), -/* 225 */ -/*!*********************************************!*\ - !*** ./node_modules/lodash/_setCacheHas.js ***! - \*********************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports) { + tablet_selectors[" " + headingTag + ".block-editor-rich-text__editable.uagb-heading-text"] = { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headFontSizeTablet, headFontSizeType), + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headLineHeightTablet, headLineHeightType) + }; + tablet_selectors[" .block-editor-rich-text__editable.uagb-desc-text"] = { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(subHeadFontSizeTablet, subHeadFontSizeType), + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(subHeadLineHeightTablet, subHeadLineHeightType) + }; -/** - * Checks if `value` is in the array cache. - * - * @private - * @name has - * @memberOf SetCache - * @param {*} value The value to search for. - * @returns {number} Returns `true` if `value` is found, else `false`. - */ -function setCacheHas(value) { - return this.__data__.has(value); -} + mobile_selectors[" " + headingTag + ".block-editor-rich-text__editable.uagb-heading-text"] = { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headFontSizeMobile, headFontSizeType), + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(headLineHeightMobile, headLineHeightType) + }; + mobile_selectors[" .block-editor-rich-text__editable.uagb-desc-text"] = { + "font-size": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(subHeadFontSizeMobile, subHeadFontSizeType), + "line-height": Object(__WEBPACK_IMPORTED_MODULE_1__dist_blocks_uagb_controls_generateCSSUnit__["a" /* default */])(subHeadLineHeightMobile, subHeadLineHeightType) + }; -module.exports = setCacheHas; + var base_selector = ".block-editor-page #wpwrap .uagb-block-" + props.clientId.substr(0, 8); + var styling_css = Object(__WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSS__["a" /* default */])(selectors, base_selector); -/***/ }), -/* 226 */ -/*!*******************************************!*\ - !*** ./node_modules/lodash/_arraySome.js ***! - \*******************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports) { + styling_css += Object(__WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSS__["a" /* default */])(tablet_selectors, base_selector, true, "tablet"); -/** - * A specialized version of `_.some` for arrays without support for iteratee - * shorthands. - * - * @private - * @param {Array} [array] The array to iterate over. - * @param {Function} predicate The function invoked per iteration. - * @returns {boolean} Returns `true` if any element passes the predicate check, - * else `false`. - */ -function arraySome(array, predicate) { - var index = -1, - length = array == null ? 0 : array.length; + styling_css += Object(__WEBPACK_IMPORTED_MODULE_0__dist_blocks_uagb_controls_generateCSS__["a" /* default */])(mobile_selectors, base_selector, true, "mobile"); - while (++index < length) { - if (predicate(array[index], index, array)) { - return true; - } - } - return false; + return styling_css; } -module.exports = arraySome; - +/* harmony default export */ __webpack_exports__["a"] = (styling); /***/ }), -/* 227 */ -/*!******************************************!*\ - !*** ./node_modules/lodash/_cacheHas.js ***! - \******************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports) { +/* 258 */ +/*!******************************************************!*\ + !*** ./src/components/typography/font-typography.js ***! + \******************************************************/ +/*! exports provided: default */ +/*! exports used: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { -/** - * Checks if a `cache` value for `key` exists. - * - * @private - * @param {Object} cache The cache to query. - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash_map__ = __webpack_require__(/*! lodash/map */ 16); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash_map___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash_map__); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__fonts__ = __webpack_require__(/*! ./fonts */ 325); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_select__ = __webpack_require__(/*! react-select */ 326); +var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +/** + * WordPress dependencies */ -function cacheHas(cache, key) { - return cache.has(key); -} +var __ = wp.i18n.__; +var SelectControl = wp.components.SelectControl; -module.exports = cacheHas; +// Extend component +var _wp$element = wp.element, + Component = _wp$element.Component, + Fragment = _wp$element.Fragment; -/***/ }), -/* 228 */ -/*!********************************************!*\ - !*** ./node_modules/lodash/_equalByTag.js ***! - \********************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { +/** + * Internal dependencies + */ -var Symbol = __webpack_require__(/*! ./_Symbol */ 22), - Uint8Array = __webpack_require__(/*! ./_Uint8Array */ 117), - eq = __webpack_require__(/*! ./eq */ 37), - equalArrays = __webpack_require__(/*! ./_equalArrays */ 116), - mapToArray = __webpack_require__(/*! ./_mapToArray */ 229), - setToArray = __webpack_require__(/*! ./_setToArray */ 230); -/** Used to compose bitmasks for value comparisons. */ -var COMPARE_PARTIAL_FLAG = 1, - COMPARE_UNORDERED_FLAG = 2; -/** `Object#toString` result references. */ -var boolTag = '[object Boolean]', - dateTag = '[object Date]', - errorTag = '[object Error]', - mapTag = '[object Map]', - numberTag = '[object Number]', - regexpTag = '[object RegExp]', - setTag = '[object Set]', - stringTag = '[object String]', - symbolTag = '[object Symbol]'; -var arrayBufferTag = '[object ArrayBuffer]', - dataViewTag = '[object DataView]'; -/** Used to convert symbols to primitives and strings. */ -var symbolProto = Symbol ? Symbol.prototype : undefined, - symbolValueOf = symbolProto ? symbolProto.valueOf : undefined; +function FontFamilyControl(props) { -/** - * A specialized version of `baseIsEqualDeep` for comparing objects of - * the same `toStringTag`. - * - * **Note:** This function only supports comparing values with tags of - * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`. - * - * @private - * @param {Object} object The object to compare. - * @param {Object} other The other object to compare. - * @param {string} tag The `toStringTag` of the objects to compare. - * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details. - * @param {Function} customizer The function to customize comparisons. - * @param {Function} equalFunc The function to determine equivalents of values. - * @param {Object} stack Tracks traversed `object` and `other` objects. - * @returns {boolean} Returns `true` if the objects are equivalent, else `false`. - */ -function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) { - switch (tag) { - case dataViewTag: - if ((object.byteLength != other.byteLength) || - (object.byteOffset != other.byteOffset)) { - return false; - } - object = object.buffer; - other = other.buffer; + var fonts = [{ value: "", label: __("Default", 'ultimate-addons-for-gutenberg'), weight: ["100", "200", "300", "400", "500", "600", "700", "800", "900"], google: false }, { value: "Arial", label: "Arial", weight: ["100", "200", "300", "400", "500", "600", "700", "800", "900"], google: false }, { value: "Helvetica", label: "Helvetica", weight: ["100", "200", "300", "400", "500", "600", "700", "800", "900"], google: false }, { value: "Times New Roman", label: "Times New Roman", weight: ["100", "200", "300", "400", "500", "600", "700", "800", "900"], google: false }, { value: "Georgia", label: "Georgia", weight: ["100", "200", "300", "400", "500", "600", "700", "800", "900"], google: false }]; - case arrayBufferTag: - if ((object.byteLength != other.byteLength) || - !equalFunc(new Uint8Array(object), new Uint8Array(other))) { - return false; - } - return true; + var fontWeight = ""; + var fontSubset = ""; - case boolTag: - case dateTag: - case numberTag: - // Coerce booleans to `1` or `0` and dates to milliseconds. - // Invalid dates are coerced to `NaN`. - return eq(+object, +other); + //Push Google Fonts into stytem fonts object + Object.keys(__WEBPACK_IMPORTED_MODULE_1__fonts__["a" /* default */]).map(function (k, v) { + fonts.push({ value: k, label: k, weight: __WEBPACK_IMPORTED_MODULE_1__fonts__["a" /* default */][k].weight }); - case errorTag: - return object.name == other.name && object.message == other.message; + if (k === props.fontFamily.value) { + fontWeight = __WEBPACK_IMPORTED_MODULE_1__fonts__["a" /* default */][k].weight; + fontSubset = __WEBPACK_IMPORTED_MODULE_1__fonts__["a" /* default */][k].subset; + } + }); - case regexpTag: - case stringTag: - // Coerce regexes to strings and treat strings, primitives and objects, - // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring - // for more details. - return object == (other + ''); + // check if the font is a system font and then apply the font weight accordingly. + if (fontWeight === "") { + fontWeight = fonts[0].weight; + } - case mapTag: - var convert = mapToArray; + var fontWeightObj = []; - case setTag: - var isPartial = bitmask & COMPARE_PARTIAL_FLAG; - convert || (convert = setToArray); + fontWeight.forEach(function (item) { + fontWeightObj.push({ value: item, label: item }); + }); - if (object.size != other.size && !isPartial) { - return false; - } - // Assume cyclic values are equal. - var stacked = stack.get(object); - if (stacked) { - return stacked == other; - } - bitmask |= COMPARE_UNORDERED_FLAG; + var fontSubsetObj = []; - // Recursively compare objects (susceptible to call stack limits). - stack.set(object, other); - var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack); - stack['delete'](object); - return result; + if ((typeof fontSubset === "undefined" ? "undefined" : _typeof(fontSubset)) == "object") { + fontSubset.forEach(function (item) { + fontSubsetObj.push({ value: item, label: item }); + }); + } - case symbolTag: - if (symbolValueOf) { - return symbolValueOf.call(object) == symbolValueOf.call(other); - } - } - return false; -} + var onFontfamilyChange = function onFontfamilyChange(value) { + var loadGoogleFonts = props.loadGoogleFonts, + fontFamily = props.fontFamily, + fontWeight = props.fontWeight, + fontSubset = props.fontSubset; -module.exports = equalByTag; + props.setAttributes(_defineProperty({}, fontFamily.label, value.label)); + onLoadGoogleFonts(loadGoogleFonts, value.label); + onFontChange(fontWeight, fontSubset, value.label); + }; + var onFontChange = function onFontChange(fontWeight, fontSubset, fontFamily) { -/***/ }), -/* 229 */ -/*!********************************************!*\ - !*** ./node_modules/lodash/_mapToArray.js ***! - \********************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports) { + var font_flag = void 0; + var new_value = void 0; -/** - * Converts `map` to its key-value pairs. - * - * @private - * @param {Object} map The map to convert. - * @returns {Array} Returns the key-value pairs. - */ -function mapToArray(map) { - var index = -1, - result = Array(map.size); + if (_typeof(__WEBPACK_IMPORTED_MODULE_1__fonts__["a" /* default */][fontFamily]) == "object") { - map.forEach(function(value, key) { - result[++index] = [key, value]; - }); - return result; -} + var gfontsObj = __WEBPACK_IMPORTED_MODULE_1__fonts__["a" /* default */][fontFamily].weight; + var gfontSubsetObj = __WEBPACK_IMPORTED_MODULE_1__fonts__["a" /* default */][fontFamily].subset; -module.exports = mapToArray; + if ((typeof gfontsObj === "undefined" ? "undefined" : _typeof(gfontsObj)) == "object") { + + gfontsObj.forEach(function (item) { + + if (fontWeight.value == item) { + font_flag = false; + } else { + new_value = item; + font_flag = true; + props.setAttributes(_defineProperty({}, props.fontWeight.label, new_value)); + return; + } + }); + + gfontSubsetObj.forEach(function (item) { + + if (fontSubset.value == item) { + font_flag = false; + } else { + new_value = item; + font_flag = true; + props.setAttributes(_defineProperty({}, props.fontSubset.label, new_value)); + return; + } + }); + } + } + }; + + var onLoadGoogleFonts = function onLoadGoogleFonts(loadGoogleFonts, fontFamily) { + + var value = void 0; + + if (fontFamily != "" && _typeof(__WEBPACK_IMPORTED_MODULE_1__fonts__["a" /* default */][fontFamily]) != "object") { + value = false; + } else { + value = true; + } + + props.setAttributes(_defineProperty({}, loadGoogleFonts.label, value)); + }; + + return wp.element.createElement( + "div", + { className: "uag-typography-font-family-options" }, + wp.element.createElement( + "label", + { className: "uag-typography-font-family-label" }, + __("Font Family", 'ultimate-addons-for-gutenberg') + ), + wp.element.createElement(__WEBPACK_IMPORTED_MODULE_2_react_select__["a" /* default */], { + options: fonts, + value: { value: props.fontFamily.value, label: props.fontFamily.value, weight: fontWeightObj }, + isMulti: false, + maxMenuHeight: 300, + onChange: onFontfamilyChange, + className: "react-select-container", + classNamePrefix: "react-select" + }), + wp.element.createElement(SelectControl, { + label: __("Font Weight", 'ultimate-addons-for-gutenberg'), + value: props.fontWeight.value, + onChange: function onChange(value) { + return props.setAttributes(_defineProperty({}, props.fontWeight.label, value)); + }, + options: fontWeightObj + }), + wp.element.createElement(SelectControl, { + label: __("Font Subset", 'ultimate-addons-for-gutenberg'), + value: props.fontSubset.value, + onChange: function onChange(value) { + return props.setAttributes(_defineProperty({}, props.fontSubset.label, value)); + }, + options: fontSubsetObj + }) + ); +} +/* harmony default export */ __webpack_exports__["a"] = (FontFamilyControl); /***/ }), -/* 230 */ -/*!********************************************!*\ - !*** ./node_modules/lodash/_setToArray.js ***! - \********************************************/ -/*! no static exports found */ +/* 259 */ +/*!*********************************************!*\ + !*** ./node_modules/lodash/_baseMatches.js ***! + \*********************************************/ +/*! dynamic exports provided */ /*! all exports used */ -/***/ (function(module, exports) { +/***/ (function(module, exports, __webpack_require__) { + +var baseIsMatch = __webpack_require__(/*! ./_baseIsMatch */ 260), + getMatchData = __webpack_require__(/*! ./_getMatchData */ 309), + matchesStrictComparable = __webpack_require__(/*! ./_matchesStrictComparable */ 162); /** - * Converts `set` to an array of its values. + * The base implementation of `_.matches` which doesn't clone `source`. * * @private - * @param {Object} set The set to convert. - * @returns {Array} Returns the values. + * @param {Object} source The object of property values to match. + * @returns {Function} Returns the new spec function. */ -function setToArray(set) { - var index = -1, - result = Array(set.size); - - set.forEach(function(value) { - result[++index] = value; - }); - return result; +function baseMatches(source) { + var matchData = getMatchData(source); + if (matchData.length == 1 && matchData[0][2]) { + return matchesStrictComparable(matchData[0][0], matchData[0][1]); + } + return function(object) { + return object === source || baseIsMatch(object, source, matchData); + }; } -module.exports = setToArray; +module.exports = baseMatches; /***/ }), -/* 231 */ -/*!**********************************************!*\ - !*** ./node_modules/lodash/_equalObjects.js ***! - \**********************************************/ -/*! no static exports found */ +/* 260 */ +/*!*********************************************!*\ + !*** ./node_modules/lodash/_baseIsMatch.js ***! + \*********************************************/ +/*! dynamic exports provided */ /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { -var getAllKeys = __webpack_require__(/*! ./_getAllKeys */ 118); +var Stack = __webpack_require__(/*! ./_Stack */ 74), + baseIsEqual = __webpack_require__(/*! ./_baseIsEqual */ 151); /** Used to compose bitmasks for value comparisons. */ -var COMPARE_PARTIAL_FLAG = 1; - -/** Used for built-in method references. */ -var objectProto = Object.prototype; - -/** Used to check objects for own properties. */ -var hasOwnProperty = objectProto.hasOwnProperty; +var COMPARE_PARTIAL_FLAG = 1, + COMPARE_UNORDERED_FLAG = 2; /** - * A specialized version of `baseIsEqualDeep` for objects with support for - * partial deep comparisons. + * The base implementation of `_.isMatch` without support for iteratee shorthands. * * @private - * @param {Object} object The object to compare. - * @param {Object} other The other object to compare. - * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details. - * @param {Function} customizer The function to customize comparisons. - * @param {Function} equalFunc The function to determine equivalents of values. - * @param {Object} stack Tracks traversed `object` and `other` objects. - * @returns {boolean} Returns `true` if the objects are equivalent, else `false`. + * @param {Object} object The object to inspect. + * @param {Object} source The object of property values to match. + * @param {Array} matchData The property names, values, and compare flags to match. + * @param {Function} [customizer] The function to customize comparisons. + * @returns {boolean} Returns `true` if `object` is a match, else `false`. */ -function equalObjects(object, other, bitmask, customizer, equalFunc, stack) { - var isPartial = bitmask & COMPARE_PARTIAL_FLAG, - objProps = getAllKeys(object), - objLength = objProps.length, - othProps = getAllKeys(other), - othLength = othProps.length; +function baseIsMatch(object, source, matchData, customizer) { + var index = matchData.length, + length = index, + noCustomizer = !customizer; - if (objLength != othLength && !isPartial) { - return false; + if (object == null) { + return !length; } - var index = objLength; + object = Object(object); while (index--) { - var key = objProps[index]; - if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) { + var data = matchData[index]; + if ((noCustomizer && data[2]) + ? data[1] !== object[data[0]] + : !(data[0] in object) + ) { return false; } } - // Assume cyclic values are equal. - var stacked = stack.get(object); - if (stacked && stack.get(other)) { - return stacked == other; - } - var result = true; - stack.set(object, other); - stack.set(other, object); - - var skipCtor = isPartial; - while (++index < objLength) { - key = objProps[index]; - var objValue = object[key], - othValue = other[key]; - - if (customizer) { - var compared = isPartial - ? customizer(othValue, objValue, key, other, object, stack) - : customizer(objValue, othValue, key, object, other, stack); - } - // Recursively compare objects (susceptible to call stack limits). - if (!(compared === undefined - ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack)) - : compared - )) { - result = false; - break; - } - skipCtor || (skipCtor = key == 'constructor'); - } - if (result && !skipCtor) { - var objCtor = object.constructor, - othCtor = other.constructor; + while (++index < length) { + data = matchData[index]; + var key = data[0], + objValue = object[key], + srcValue = data[1]; - // Non `Object` object instances with different constructors are not equal. - if (objCtor != othCtor && - ('constructor' in object && 'constructor' in other) && - !(typeof objCtor == 'function' && objCtor instanceof objCtor && - typeof othCtor == 'function' && othCtor instanceof othCtor)) { - result = false; + if (noCustomizer && data[2]) { + if (objValue === undefined && !(key in object)) { + return false; + } + } else { + var stack = new Stack; + if (customizer) { + var result = customizer(objValue, srcValue, key, object, source, stack); + } + if (!(result === undefined + ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack) + : result + )) { + return false; + } } } - stack['delete'](object); - stack['delete'](other); - return result; + return true; } -module.exports = equalObjects; +module.exports = baseIsMatch; /***/ }), -/* 232 */ -/*!*********************************************!*\ - !*** ./node_modules/lodash/_arrayFilter.js ***! - \*********************************************/ -/*! no static exports found */ +/* 261 */ +/*!************************************************!*\ + !*** ./node_modules/lodash/_listCacheClear.js ***! + \************************************************/ +/*! dynamic exports provided */ /*! all exports used */ /***/ (function(module, exports) { /** - * A specialized version of `_.filter` for arrays without support for - * iteratee shorthands. + * Removes all key-value entries from the list cache. * * @private - * @param {Array} [array] The array to iterate over. - * @param {Function} predicate The function invoked per iteration. - * @returns {Array} Returns the new filtered array. + * @name clear + * @memberOf ListCache */ -function arrayFilter(array, predicate) { - var index = -1, - length = array == null ? 0 : array.length, - resIndex = 0, - result = []; - - while (++index < length) { - var value = array[index]; - if (predicate(value, index, array)) { - result[resIndex++] = value; - } - } - return result; +function listCacheClear() { + this.__data__ = []; + this.size = 0; } -module.exports = arrayFilter; +module.exports = listCacheClear; /***/ }), -/* 233 */ +/* 262 */ /*!*************************************************!*\ - !*** ./node_modules/lodash/_baseIsArguments.js ***! + !*** ./node_modules/lodash/_listCacheDelete.js ***! \*************************************************/ -/*! no static exports found */ +/*! dynamic exports provided */ /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { -var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ 20), - isObjectLike = __webpack_require__(/*! ./isObjectLike */ 17); +var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ 47); -/** `Object#toString` result references. */ -var argsTag = '[object Arguments]'; +/** Used for built-in method references. */ +var arrayProto = Array.prototype; + +/** Built-in value references. */ +var splice = arrayProto.splice; /** - * The base implementation of `_.isArguments`. + * Removes `key` and its value from the list cache. * * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is an `arguments` object, + * @name delete + * @memberOf ListCache + * @param {string} key The key of the value to remove. + * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ -function baseIsArguments(value) { - return isObjectLike(value) && baseGetTag(value) == argsTag; +function listCacheDelete(key) { + var data = this.__data__, + index = assocIndexOf(data, key); + + if (index < 0) { + return false; + } + var lastIndex = data.length - 1; + if (index == lastIndex) { + data.pop(); + } else { + splice.call(data, index, 1); + } + --this.size; + return true; } -module.exports = baseIsArguments; +module.exports = listCacheDelete; /***/ }), -/* 234 */ -/*!******************************************!*\ - !*** ./node_modules/lodash/stubFalse.js ***! - \******************************************/ -/*! no static exports found */ +/* 263 */ +/*!**********************************************!*\ + !*** ./node_modules/lodash/_listCacheGet.js ***! + \**********************************************/ +/*! dynamic exports provided */ /*! all exports used */ -/***/ (function(module, exports) { +/***/ (function(module, exports, __webpack_require__) { + +var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ 47); /** - * This method returns `false`. - * - * @static - * @memberOf _ - * @since 4.13.0 - * @category Util - * @returns {boolean} Returns `false`. - * @example + * Gets the list cache value for `key`. * - * _.times(2, _.stubFalse); - * // => [false, false] + * @private + * @name get + * @memberOf ListCache + * @param {string} key The key of the value to get. + * @returns {*} Returns the entry value. */ -function stubFalse() { - return false; +function listCacheGet(key) { + var data = this.__data__, + index = assocIndexOf(data, key); + + return index < 0 ? undefined : data[index][1]; } -module.exports = stubFalse; +module.exports = listCacheGet; /***/ }), -/* 235 */ -/*!**************************************************!*\ - !*** ./node_modules/lodash/_baseIsTypedArray.js ***! - \**************************************************/ -/*! no static exports found */ +/* 264 */ +/*!**********************************************!*\ + !*** ./node_modules/lodash/_listCacheHas.js ***! + \**********************************************/ +/*! dynamic exports provided */ /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { -var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ 20), - isLength = __webpack_require__(/*! ./isLength */ 61), - isObjectLike = __webpack_require__(/*! ./isObjectLike */ 17); - -/** `Object#toString` result references. */ -var argsTag = '[object Arguments]', - arrayTag = '[object Array]', - boolTag = '[object Boolean]', - dateTag = '[object Date]', - errorTag = '[object Error]', - funcTag = '[object Function]', - mapTag = '[object Map]', - numberTag = '[object Number]', - objectTag = '[object Object]', - regexpTag = '[object RegExp]', - setTag = '[object Set]', - stringTag = '[object String]', - weakMapTag = '[object WeakMap]'; - -var arrayBufferTag = '[object ArrayBuffer]', - dataViewTag = '[object DataView]', - float32Tag = '[object Float32Array]', - float64Tag = '[object Float64Array]', - int8Tag = '[object Int8Array]', - int16Tag = '[object Int16Array]', - int32Tag = '[object Int32Array]', - uint8Tag = '[object Uint8Array]', - uint8ClampedTag = '[object Uint8ClampedArray]', - uint16Tag = '[object Uint16Array]', - uint32Tag = '[object Uint32Array]'; - -/** Used to identify `toStringTag` values of typed arrays. */ -var typedArrayTags = {}; -typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = -typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = -typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = -typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = -typedArrayTags[uint32Tag] = true; -typedArrayTags[argsTag] = typedArrayTags[arrayTag] = -typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = -typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = -typedArrayTags[errorTag] = typedArrayTags[funcTag] = -typedArrayTags[mapTag] = typedArrayTags[numberTag] = -typedArrayTags[objectTag] = typedArrayTags[regexpTag] = -typedArrayTags[setTag] = typedArrayTags[stringTag] = -typedArrayTags[weakMapTag] = false; +var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ 47); /** - * The base implementation of `_.isTypedArray` without Node.js optimizations. + * Checks if a list cache value for `key` exists. * * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a typed array, else `false`. + * @name has + * @memberOf ListCache + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. */ -function baseIsTypedArray(value) { - return isObjectLike(value) && - isLength(value.length) && !!typedArrayTags[baseGetTag(value)]; +function listCacheHas(key) { + return assocIndexOf(this.__data__, key) > -1; } -module.exports = baseIsTypedArray; +module.exports = listCacheHas; /***/ }), -/* 236 */ -/*!******************************************!*\ - !*** ./node_modules/lodash/_baseKeys.js ***! - \******************************************/ -/*! no static exports found */ +/* 265 */ +/*!**********************************************!*\ + !*** ./node_modules/lodash/_listCacheSet.js ***! + \**********************************************/ +/*! dynamic exports provided */ /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { -var isPrototype = __webpack_require__(/*! ./_isPrototype */ 43), - nativeKeys = __webpack_require__(/*! ./_nativeKeys */ 237); - -/** Used for built-in method references. */ -var objectProto = Object.prototype; - -/** Used to check objects for own properties. */ -var hasOwnProperty = objectProto.hasOwnProperty; +var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ 47); /** - * The base implementation of `_.keys` which doesn't treat sparse arrays as dense. + * Sets the list cache `key` to `value`. * * @private - * @param {Object} object The object to query. - * @returns {Array} Returns the array of property names. + * @name set + * @memberOf ListCache + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the list cache instance. */ -function baseKeys(object) { - if (!isPrototype(object)) { - return nativeKeys(object); - } - var result = []; - for (var key in Object(object)) { - if (hasOwnProperty.call(object, key) && key != 'constructor') { - result.push(key); - } +function listCacheSet(key, value) { + var data = this.__data__, + index = assocIndexOf(data, key); + + if (index < 0) { + ++this.size; + data.push([key, value]); + } else { + data[index][1] = value; } - return result; + return this; } -module.exports = baseKeys; +module.exports = listCacheSet; /***/ }), -/* 237 */ +/* 266 */ /*!********************************************!*\ - !*** ./node_modules/lodash/_nativeKeys.js ***! + !*** ./node_modules/lodash/_stackClear.js ***! \********************************************/ -/*! no static exports found */ +/*! dynamic exports provided */ /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { -var overArg = __webpack_require__(/*! ./_overArg */ 124); +var ListCache = __webpack_require__(/*! ./_ListCache */ 46); -/* Built-in method references for those with the same name as other `lodash` methods. */ -var nativeKeys = overArg(Object.keys, Object); +/** + * Removes all key-value entries from the stack. + * + * @private + * @name clear + * @memberOf Stack + */ +function stackClear() { + this.__data__ = new ListCache; + this.size = 0; +} -module.exports = nativeKeys; +module.exports = stackClear; /***/ }), -/* 238 */ -/*!******************************************!*\ - !*** ./node_modules/lodash/_DataView.js ***! - \******************************************/ -/*! no static exports found */ +/* 267 */ +/*!*********************************************!*\ + !*** ./node_modules/lodash/_stackDelete.js ***! + \*********************************************/ +/*! dynamic exports provided */ /*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { +/***/ (function(module, exports) { -var getNative = __webpack_require__(/*! ./_getNative */ 19), - root = __webpack_require__(/*! ./_root */ 12); +/** + * Removes `key` and its value from the stack. + * + * @private + * @name delete + * @memberOf Stack + * @param {string} key The key of the value to remove. + * @returns {boolean} Returns `true` if the entry was removed, else `false`. + */ +function stackDelete(key) { + var data = this.__data__, + result = data['delete'](key); -/* Built-in method references that are verified to be native. */ -var DataView = getNative(root, 'DataView'); + this.size = data.size; + return result; +} -module.exports = DataView; +module.exports = stackDelete; /***/ }), -/* 239 */ -/*!*****************************************!*\ - !*** ./node_modules/lodash/_Promise.js ***! - \*****************************************/ -/*! no static exports found */ +/* 268 */ +/*!******************************************!*\ + !*** ./node_modules/lodash/_stackGet.js ***! + \******************************************/ +/*! dynamic exports provided */ /*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { - -var getNative = __webpack_require__(/*! ./_getNative */ 19), - root = __webpack_require__(/*! ./_root */ 12); +/***/ (function(module, exports) { -/* Built-in method references that are verified to be native. */ -var Promise = getNative(root, 'Promise'); +/** + * Gets the stack value for `key`. + * + * @private + * @name get + * @memberOf Stack + * @param {string} key The key of the value to get. + * @returns {*} Returns the entry value. + */ +function stackGet(key) { + return this.__data__.get(key); +} -module.exports = Promise; +module.exports = stackGet; /***/ }), -/* 240 */ -/*!*************************************!*\ - !*** ./node_modules/lodash/_Set.js ***! - \*************************************/ -/*! no static exports found */ +/* 269 */ +/*!******************************************!*\ + !*** ./node_modules/lodash/_stackHas.js ***! + \******************************************/ +/*! dynamic exports provided */ /*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { - -var getNative = __webpack_require__(/*! ./_getNative */ 19), - root = __webpack_require__(/*! ./_root */ 12); +/***/ (function(module, exports) { -/* Built-in method references that are verified to be native. */ -var Set = getNative(root, 'Set'); +/** + * Checks if a stack value for `key` exists. + * + * @private + * @name has + * @memberOf Stack + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ +function stackHas(key) { + return this.__data__.has(key); +} -module.exports = Set; +module.exports = stackHas; /***/ }), -/* 241 */ -/*!*****************************************!*\ - !*** ./node_modules/lodash/_WeakMap.js ***! - \*****************************************/ -/*! no static exports found */ +/* 270 */ +/*!******************************************!*\ + !*** ./node_modules/lodash/_stackSet.js ***! + \******************************************/ +/*! dynamic exports provided */ /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { -var getNative = __webpack_require__(/*! ./_getNative */ 19), - root = __webpack_require__(/*! ./_root */ 12); +var ListCache = __webpack_require__(/*! ./_ListCache */ 46), + Map = __webpack_require__(/*! ./_Map */ 75), + MapCache = __webpack_require__(/*! ./_MapCache */ 77); -/* Built-in method references that are verified to be native. */ -var WeakMap = getNative(root, 'WeakMap'); +/** Used as the size to enable large array optimizations. */ +var LARGE_ARRAY_SIZE = 200; -module.exports = WeakMap; +/** + * Sets the stack `key` to `value`. + * + * @private + * @name set + * @memberOf Stack + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the stack cache instance. + */ +function stackSet(key, value) { + var data = this.__data__; + if (data instanceof ListCache) { + var pairs = data.__data__; + if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) { + pairs.push([key, value]); + this.size = ++data.size; + return this; + } + data = this.__data__ = new MapCache(pairs); + } + data.set(key, value); + this.size = data.size; + return this; +} + +module.exports = stackSet; /***/ }), -/* 242 */ +/* 271 */ /*!**********************************************!*\ - !*** ./node_modules/lodash/_getMatchData.js ***! + !*** ./node_modules/lodash/_baseIsNative.js ***! \**********************************************/ -/*! no static exports found */ +/*! dynamic exports provided */ /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { -var isStrictComparable = __webpack_require__(/*! ./_isStrictComparable */ 125), - keys = __webpack_require__(/*! ./keys */ 23); +var isFunction = __webpack_require__(/*! ./isFunction */ 148), + isMasked = __webpack_require__(/*! ./_isMasked */ 274), + isObject = __webpack_require__(/*! ./isObject */ 13), + toSource = __webpack_require__(/*! ./_toSource */ 150); /** - * Gets the property names, values, and compare flags of `object`. - * - * @private - * @param {Object} object The object to query. - * @returns {Array} Returns the match data of `object`. + * Used to match `RegExp` + * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns). */ -function getMatchData(object) { - var result = keys(object), - length = result.length; +var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; - while (length--) { - var key = result[length], - value = object[key]; +/** Used to detect host constructors (Safari). */ +var reIsHostCtor = /^\[object .+?Constructor\]$/; - result[length] = [key, value, isStrictComparable(value)]; +/** Used for built-in method references. */ +var funcProto = Function.prototype, + objectProto = Object.prototype; + +/** Used to resolve the decompiled source of functions. */ +var funcToString = funcProto.toString; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** Used to detect if a method is native. */ +var reIsNative = RegExp('^' + + funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&') + .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$' +); + +/** + * The base implementation of `_.isNative` without bad shim checks. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a native function, + * else `false`. + */ +function baseIsNative(value) { + if (!isObject(value) || isMasked(value)) { + return false; } - return result; + var pattern = isFunction(value) ? reIsNative : reIsHostCtor; + return pattern.test(toSource(value)); } -module.exports = getMatchData; +module.exports = baseIsNative; /***/ }), -/* 243 */ -/*!*****************************************************!*\ - !*** ./node_modules/lodash/_baseMatchesProperty.js ***! - \*****************************************************/ -/*! no static exports found */ +/* 272 */ +/*!*******************************************!*\ + !*** ./node_modules/lodash/_getRawTag.js ***! + \*******************************************/ +/*! dynamic exports provided */ /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { -var baseIsEqual = __webpack_require__(/*! ./_baseIsEqual */ 115), - get = __webpack_require__(/*! ./get */ 127), - hasIn = __webpack_require__(/*! ./hasIn */ 247), - isKey = __webpack_require__(/*! ./_isKey */ 62), - isStrictComparable = __webpack_require__(/*! ./_isStrictComparable */ 125), - matchesStrictComparable = __webpack_require__(/*! ./_matchesStrictComparable */ 126), - toKey = __webpack_require__(/*! ./_toKey */ 26); +var Symbol = __webpack_require__(/*! ./_Symbol */ 27); -/** Used to compose bitmasks for value comparisons. */ -var COMPARE_PARTIAL_FLAG = 1, - COMPARE_UNORDERED_FLAG = 2; +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; /** - * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`. + * Used to resolve the + * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) + * of values. + */ +var nativeObjectToString = objectProto.toString; + +/** Built-in value references. */ +var symToStringTag = Symbol ? Symbol.toStringTag : undefined; + +/** + * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values. * * @private - * @param {string} path The path of the property to get. - * @param {*} srcValue The value to match. - * @returns {Function} Returns the new spec function. + * @param {*} value The value to query. + * @returns {string} Returns the raw `toStringTag`. */ -function baseMatchesProperty(path, srcValue) { - if (isKey(path) && isStrictComparable(srcValue)) { - return matchesStrictComparable(toKey(path), srcValue); +function getRawTag(value) { + var isOwn = hasOwnProperty.call(value, symToStringTag), + tag = value[symToStringTag]; + + try { + value[symToStringTag] = undefined; + var unmasked = true; + } catch (e) {} + + var result = nativeObjectToString.call(value); + if (unmasked) { + if (isOwn) { + value[symToStringTag] = tag; + } else { + delete value[symToStringTag]; + } } - return function(object) { - var objValue = get(object, path); - return (objValue === undefined && objValue === srcValue) - ? hasIn(object, path) - : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG); - }; + return result; } -module.exports = baseMatchesProperty; +module.exports = getRawTag; /***/ }), -/* 244 */ -/*!**********************************************!*\ - !*** ./node_modules/lodash/_stringToPath.js ***! - \**********************************************/ -/*! no static exports found */ +/* 273 */ +/*!************************************************!*\ + !*** ./node_modules/lodash/_objectToString.js ***! + \************************************************/ +/*! dynamic exports provided */ /*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { - -var memoizeCapped = __webpack_require__(/*! ./_memoizeCapped */ 245); +/***/ (function(module, exports) { -/** Used to match property names within property paths. */ -var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g; +/** Used for built-in method references. */ +var objectProto = Object.prototype; -/** Used to match backslashes in property paths. */ -var reEscapeChar = /\\(\\)?/g; +/** + * Used to resolve the + * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) + * of values. + */ +var nativeObjectToString = objectProto.toString; /** - * Converts `string` to a property path array. + * Converts `value` to a string using `Object.prototype.toString`. * * @private - * @param {string} string The string to convert. - * @returns {Array} Returns the property path array. + * @param {*} value The value to convert. + * @returns {string} Returns the converted string. */ -var stringToPath = memoizeCapped(function(string) { - var result = []; - if (string.charCodeAt(0) === 46 /* . */) { - result.push(''); - } - string.replace(rePropName, function(match, number, quote, subString) { - result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match)); - }); - return result; -}); +function objectToString(value) { + return nativeObjectToString.call(value); +} -module.exports = stringToPath; +module.exports = objectToString; /***/ }), -/* 245 */ -/*!***********************************************!*\ - !*** ./node_modules/lodash/_memoizeCapped.js ***! - \***********************************************/ -/*! no static exports found */ +/* 274 */ +/*!******************************************!*\ + !*** ./node_modules/lodash/_isMasked.js ***! + \******************************************/ +/*! dynamic exports provided */ /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { -var memoize = __webpack_require__(/*! ./memoize */ 246); +var coreJsData = __webpack_require__(/*! ./_coreJsData */ 275); -/** Used as the maximum memoize cache size. */ -var MAX_MEMOIZE_SIZE = 500; +/** Used to detect methods masquerading as native. */ +var maskSrcKey = (function() { + var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ''); + return uid ? ('Symbol(src)_1.' + uid) : ''; +}()); /** - * A specialized version of `_.memoize` which clears the memoized function's - * cache when it exceeds `MAX_MEMOIZE_SIZE`. + * Checks if `func` has its source masked. * * @private - * @param {Function} func The function to have its output memoized. - * @returns {Function} Returns the new memoized function. + * @param {Function} func The function to check. + * @returns {boolean} Returns `true` if `func` is masked, else `false`. */ -function memoizeCapped(func) { - var result = memoize(func, function(key) { - if (cache.size === MAX_MEMOIZE_SIZE) { - cache.clear(); - } - return key; - }); - - var cache = result.cache; - return result; +function isMasked(func) { + return !!maskSrcKey && (maskSrcKey in func); } -module.exports = memoizeCapped; +module.exports = isMasked; /***/ }), -/* 246 */ -/*!****************************************!*\ - !*** ./node_modules/lodash/memoize.js ***! - \****************************************/ -/*! no static exports found */ +/* 275 */ +/*!********************************************!*\ + !*** ./node_modules/lodash/_coreJsData.js ***! + \********************************************/ +/*! dynamic exports provided */ /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { -var MapCache = __webpack_require__(/*! ./_MapCache */ 55); +var root = __webpack_require__(/*! ./_root */ 12); -/** Error message constants. */ -var FUNC_ERROR_TEXT = 'Expected a function'; +/** Used to detect overreaching core-js shims. */ +var coreJsData = root['__core-js_shared__']; + +module.exports = coreJsData; + + +/***/ }), +/* 276 */ +/*!******************************************!*\ + !*** ./node_modules/lodash/_getValue.js ***! + \******************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports) { /** - * Creates a function that memoizes the result of `func`. If `resolver` is - * provided, it determines the cache key for storing the result based on the - * arguments provided to the memoized function. By default, the first argument - * provided to the memoized function is used as the map cache key. The `func` - * is invoked with the `this` binding of the memoized function. + * Gets the value at `key` of `object`. * - * **Note:** The cache is exposed as the `cache` property on the memoized - * function. Its creation may be customized by replacing the `_.memoize.Cache` - * constructor with one whose instances implement the - * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object) - * method interface of `clear`, `delete`, `get`, `has`, and `set`. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Function - * @param {Function} func The function to have its output memoized. - * @param {Function} [resolver] The function to resolve the cache key. - * @returns {Function} Returns the new memoized function. - * @example - * - * var object = { 'a': 1, 'b': 2 }; - * var other = { 'c': 3, 'd': 4 }; - * - * var values = _.memoize(_.values); - * values(object); - * // => [1, 2] - * - * values(other); - * // => [3, 4] - * - * object.a = 2; - * values(object); - * // => [1, 2] - * - * // Modify the result cache. - * values.cache.set(object, ['a', 'b']); - * values(object); - * // => ['a', 'b'] - * - * // Replace `_.memoize.Cache`. - * _.memoize.Cache = WeakMap; + * @private + * @param {Object} [object] The object to query. + * @param {string} key The key of the property to get. + * @returns {*} Returns the property value. */ -function memoize(func, resolver) { - if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) { - throw new TypeError(FUNC_ERROR_TEXT); - } - var memoized = function() { - var args = arguments, - key = resolver ? resolver.apply(this, args) : args[0], - cache = memoized.cache; +function getValue(object, key) { + return object == null ? undefined : object[key]; +} - if (cache.has(key)) { - return cache.get(key); - } - var result = func.apply(this, args); - memoized.cache = cache.set(key, result) || cache; - return result; +module.exports = getValue; + + +/***/ }), +/* 277 */ +/*!***********************************************!*\ + !*** ./node_modules/lodash/_mapCacheClear.js ***! + \***********************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { + +var Hash = __webpack_require__(/*! ./_Hash */ 278), + ListCache = __webpack_require__(/*! ./_ListCache */ 46), + Map = __webpack_require__(/*! ./_Map */ 75); + +/** + * Removes all key-value entries from the map. + * + * @private + * @name clear + * @memberOf MapCache + */ +function mapCacheClear() { + this.size = 0; + this.__data__ = { + 'hash': new Hash, + 'map': new (Map || ListCache), + 'string': new Hash }; - memoized.cache = new (memoize.Cache || MapCache); - return memoized; } -// Expose `MapCache`. -memoize.Cache = MapCache; - -module.exports = memoize; +module.exports = mapCacheClear; /***/ }), -/* 247 */ +/* 278 */ /*!**************************************!*\ - !*** ./node_modules/lodash/hasIn.js ***! + !*** ./node_modules/lodash/_Hash.js ***! \**************************************/ -/*! no static exports found */ +/*! dynamic exports provided */ /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { -var baseHasIn = __webpack_require__(/*! ./_baseHasIn */ 248), - hasPath = __webpack_require__(/*! ./_hasPath */ 249); +var hashClear = __webpack_require__(/*! ./_hashClear */ 279), + hashDelete = __webpack_require__(/*! ./_hashDelete */ 280), + hashGet = __webpack_require__(/*! ./_hashGet */ 281), + hashHas = __webpack_require__(/*! ./_hashHas */ 282), + hashSet = __webpack_require__(/*! ./_hashSet */ 283); /** - * Checks if `path` is a direct or inherited property of `object`. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Object - * @param {Object} object The object to query. - * @param {Array|string} path The path to check. - * @returns {boolean} Returns `true` if `path` exists, else `false`. - * @example - * - * var object = _.create({ 'a': _.create({ 'b': 2 }) }); - * - * _.hasIn(object, 'a'); - * // => true - * - * _.hasIn(object, 'a.b'); - * // => true - * - * _.hasIn(object, ['a', 'b']); - * // => true + * Creates a hash object. * - * _.hasIn(object, 'b'); - * // => false + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. */ -function hasIn(object, path) { - return object != null && hasPath(object, path, baseHasIn); +function Hash(entries) { + var index = -1, + length = entries == null ? 0 : entries.length; + + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } } -module.exports = hasIn; +// Add methods to `Hash`. +Hash.prototype.clear = hashClear; +Hash.prototype['delete'] = hashDelete; +Hash.prototype.get = hashGet; +Hash.prototype.has = hashHas; +Hash.prototype.set = hashSet; + +module.exports = Hash; /***/ }), -/* 248 */ +/* 279 */ /*!*******************************************!*\ - !*** ./node_modules/lodash/_baseHasIn.js ***! + !*** ./node_modules/lodash/_hashClear.js ***! \*******************************************/ -/*! no static exports found */ +/*! dynamic exports provided */ /*! all exports used */ -/***/ (function(module, exports) { +/***/ (function(module, exports, __webpack_require__) { + +var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ 49); /** - * The base implementation of `_.hasIn` without support for deep paths. + * Removes all key-value entries from the hash. * * @private - * @param {Object} [object] The object to query. - * @param {Array|string} key The key to check. - * @returns {boolean} Returns `true` if `key` exists, else `false`. + * @name clear + * @memberOf Hash */ -function baseHasIn(object, key) { - return object != null && key in Object(object); +function hashClear() { + this.__data__ = nativeCreate ? nativeCreate(null) : {}; + this.size = 0; } -module.exports = baseHasIn; +module.exports = hashClear; /***/ }), -/* 249 */ -/*!*****************************************!*\ - !*** ./node_modules/lodash/_hasPath.js ***! - \*****************************************/ -/*! no static exports found */ +/* 280 */ +/*!********************************************!*\ + !*** ./node_modules/lodash/_hashDelete.js ***! + \********************************************/ +/*! dynamic exports provided */ /*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { - -var castPath = __webpack_require__(/*! ./_castPath */ 25), - isArguments = __webpack_require__(/*! ./isArguments */ 58), - isArray = __webpack_require__(/*! ./isArray */ 14), - isIndex = __webpack_require__(/*! ./_isIndex */ 40), - isLength = __webpack_require__(/*! ./isLength */ 61), - toKey = __webpack_require__(/*! ./_toKey */ 26); +/***/ (function(module, exports) { /** - * Checks if `path` exists on `object`. + * Removes `key` and its value from the hash. * * @private - * @param {Object} object The object to query. - * @param {Array|string} path The path to check. - * @param {Function} hasFunc The function to check properties. - * @returns {boolean} Returns `true` if `path` exists, else `false`. + * @name delete + * @memberOf Hash + * @param {Object} hash The hash to modify. + * @param {string} key The key of the value to remove. + * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ -function hasPath(object, path, hasFunc) { - path = castPath(path, object); - - var index = -1, - length = path.length, - result = false; - - while (++index < length) { - var key = toKey(path[index]); - if (!(result = object != null && hasFunc(object, key))) { - break; - } - object = object[key]; - } - if (result || ++index != length) { - return result; - } - length = object == null ? 0 : object.length; - return !!length && isLength(length) && isIndex(key, length) && - (isArray(object) || isArguments(object)); +function hashDelete(key) { + var result = this.has(key) && delete this.__data__[key]; + this.size -= result ? 1 : 0; + return result; } -module.exports = hasPath; +module.exports = hashDelete; /***/ }), -/* 250 */ +/* 281 */ /*!*****************************************!*\ - !*** ./node_modules/lodash/property.js ***! + !*** ./node_modules/lodash/_hashGet.js ***! \*****************************************/ -/*! no static exports found */ +/*! dynamic exports provided */ /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { -var baseProperty = __webpack_require__(/*! ./_baseProperty */ 130), - basePropertyDeep = __webpack_require__(/*! ./_basePropertyDeep */ 251), - isKey = __webpack_require__(/*! ./_isKey */ 62), - toKey = __webpack_require__(/*! ./_toKey */ 26); +var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ 49); + +/** Used to stand-in for `undefined` hash values. */ +var HASH_UNDEFINED = '__lodash_hash_undefined__'; + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; /** - * Creates a function that returns the value at `path` of a given object. - * - * @static - * @memberOf _ - * @since 2.4.0 - * @category Util - * @param {Array|string} path The path of the property to get. - * @returns {Function} Returns the new accessor function. - * @example - * - * var objects = [ - * { 'a': { 'b': 2 } }, - * { 'a': { 'b': 1 } } - * ]; - * - * _.map(objects, _.property('a.b')); - * // => [2, 1] + * Gets the hash value for `key`. * - * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b'); - * // => [1, 2] + * @private + * @name get + * @memberOf Hash + * @param {string} key The key of the value to get. + * @returns {*} Returns the entry value. */ -function property(path) { - return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path); +function hashGet(key) { + var data = this.__data__; + if (nativeCreate) { + var result = data[key]; + return result === HASH_UNDEFINED ? undefined : result; + } + return hasOwnProperty.call(data, key) ? data[key] : undefined; } -module.exports = property; +module.exports = hashGet; /***/ }), -/* 251 */ -/*!**************************************************!*\ - !*** ./node_modules/lodash/_basePropertyDeep.js ***! - \**************************************************/ -/*! no static exports found */ +/* 282 */ +/*!*****************************************!*\ + !*** ./node_modules/lodash/_hashHas.js ***! + \*****************************************/ +/*! dynamic exports provided */ /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { -var baseGet = __webpack_require__(/*! ./_baseGet */ 45); +var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ 49); + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; /** - * A specialized version of `baseProperty` which supports deep paths. + * Checks if a hash value for `key` exists. * * @private - * @param {Array|string} path The path of the property to get. - * @returns {Function} Returns the new accessor function. + * @name has + * @memberOf Hash + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. */ -function basePropertyDeep(path) { - return function(object) { - return baseGet(object, path); - }; +function hashHas(key) { + var data = this.__data__; + return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key); } -module.exports = basePropertyDeep; +module.exports = hashHas; /***/ }), -/* 252 */ +/* 283 */ /*!*****************************************!*\ - !*** ./node_modules/lodash/_baseMap.js ***! + !*** ./node_modules/lodash/_hashSet.js ***! \*****************************************/ -/*! no static exports found */ +/*! dynamic exports provided */ /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { -var baseEach = __webpack_require__(/*! ./_baseEach */ 253), - isArrayLike = __webpack_require__(/*! ./isArrayLike */ 24); +var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ 49); + +/** Used to stand-in for `undefined` hash values. */ +var HASH_UNDEFINED = '__lodash_hash_undefined__'; /** - * The base implementation of `_.map` without support for iteratee shorthands. + * Sets the hash `key` to `value`. * * @private - * @param {Array|Object} collection The collection to iterate over. - * @param {Function} iteratee The function invoked per iteration. - * @returns {Array} Returns the new mapped array. + * @name set + * @memberOf Hash + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the hash instance. */ -function baseMap(collection, iteratee) { - var index = -1, - result = isArrayLike(collection) ? Array(collection.length) : []; - - baseEach(collection, function(value, key, collection) { - result[++index] = iteratee(value, key, collection); - }); - return result; +function hashSet(key, value) { + var data = this.__data__; + this.size += this.has(key) ? 0 : 1; + data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value; + return this; } -module.exports = baseMap; +module.exports = hashSet; /***/ }), -/* 253 */ -/*!******************************************!*\ - !*** ./node_modules/lodash/_baseEach.js ***! - \******************************************/ -/*! no static exports found */ +/* 284 */ +/*!************************************************!*\ + !*** ./node_modules/lodash/_mapCacheDelete.js ***! + \************************************************/ +/*! dynamic exports provided */ /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { -var baseForOwn = __webpack_require__(/*! ./_baseForOwn */ 254), - createBaseEach = __webpack_require__(/*! ./_createBaseEach */ 257); +var getMapData = __webpack_require__(/*! ./_getMapData */ 50); /** - * The base implementation of `_.forEach` without support for iteratee shorthands. + * Removes `key` and its value from the map. * * @private - * @param {Array|Object} collection The collection to iterate over. - * @param {Function} iteratee The function invoked per iteration. - * @returns {Array|Object} Returns `collection`. + * @name delete + * @memberOf MapCache + * @param {string} key The key of the value to remove. + * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ -var baseEach = createBaseEach(baseForOwn); +function mapCacheDelete(key) { + var result = getMapData(this, key)['delete'](key); + this.size -= result ? 1 : 0; + return result; +} -module.exports = baseEach; +module.exports = mapCacheDelete; /***/ }), -/* 254 */ -/*!********************************************!*\ - !*** ./node_modules/lodash/_baseForOwn.js ***! - \********************************************/ -/*! no static exports found */ +/* 285 */ +/*!*******************************************!*\ + !*** ./node_modules/lodash/_isKeyable.js ***! + \*******************************************/ +/*! dynamic exports provided */ /*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { - -var baseFor = __webpack_require__(/*! ./_baseFor */ 255), - keys = __webpack_require__(/*! ./keys */ 23); +/***/ (function(module, exports) { /** - * The base implementation of `_.forOwn` without support for iteratee shorthands. + * Checks if `value` is suitable for use as unique object key. * * @private - * @param {Object} object The object to iterate over. - * @param {Function} iteratee The function invoked per iteration. - * @returns {Object} Returns `object`. + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is suitable, else `false`. */ -function baseForOwn(object, iteratee) { - return object && baseFor(object, iteratee, keys); +function isKeyable(value) { + var type = typeof value; + return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean') + ? (value !== '__proto__') + : (value === null); } -module.exports = baseForOwn; +module.exports = isKeyable; /***/ }), -/* 255 */ -/*!*****************************************!*\ - !*** ./node_modules/lodash/_baseFor.js ***! - \*****************************************/ -/*! no static exports found */ +/* 286 */ +/*!*********************************************!*\ + !*** ./node_modules/lodash/_mapCacheGet.js ***! + \*********************************************/ +/*! dynamic exports provided */ /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { -var createBaseFor = __webpack_require__(/*! ./_createBaseFor */ 256); +var getMapData = __webpack_require__(/*! ./_getMapData */ 50); /** - * The base implementation of `baseForOwn` which iterates over `object` - * properties returned by `keysFunc` and invokes `iteratee` for each property. - * Iteratee functions may exit iteration early by explicitly returning `false`. + * Gets the map value for `key`. * * @private - * @param {Object} object The object to iterate over. - * @param {Function} iteratee The function invoked per iteration. - * @param {Function} keysFunc The function to get the keys of `object`. - * @returns {Object} Returns `object`. + * @name get + * @memberOf MapCache + * @param {string} key The key of the value to get. + * @returns {*} Returns the entry value. */ -var baseFor = createBaseFor(); +function mapCacheGet(key) { + return getMapData(this, key).get(key); +} -module.exports = baseFor; +module.exports = mapCacheGet; /***/ }), -/* 256 */ -/*!***********************************************!*\ - !*** ./node_modules/lodash/_createBaseFor.js ***! - \***********************************************/ -/*! no static exports found */ +/* 287 */ +/*!*********************************************!*\ + !*** ./node_modules/lodash/_mapCacheHas.js ***! + \*********************************************/ +/*! dynamic exports provided */ /*! all exports used */ -/***/ (function(module, exports) { +/***/ (function(module, exports, __webpack_require__) { + +var getMapData = __webpack_require__(/*! ./_getMapData */ 50); /** - * Creates a base function for methods like `_.forIn` and `_.forOwn`. + * Checks if a map value for `key` exists. * * @private - * @param {boolean} [fromRight] Specify iterating from right to left. - * @returns {Function} Returns the new base function. + * @name has + * @memberOf MapCache + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. */ -function createBaseFor(fromRight) { - return function(object, iteratee, keysFunc) { - var index = -1, - iterable = Object(object), - props = keysFunc(object), - length = props.length; - - while (length--) { - var key = props[fromRight ? length : ++index]; - if (iteratee(iterable[key], key, iterable) === false) { - break; - } - } - return object; - }; +function mapCacheHas(key) { + return getMapData(this, key).has(key); } -module.exports = createBaseFor; +module.exports = mapCacheHas; /***/ }), -/* 257 */ -/*!************************************************!*\ - !*** ./node_modules/lodash/_createBaseEach.js ***! - \************************************************/ -/*! no static exports found */ +/* 288 */ +/*!*********************************************!*\ + !*** ./node_modules/lodash/_mapCacheSet.js ***! + \*********************************************/ +/*! dynamic exports provided */ /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { -var isArrayLike = __webpack_require__(/*! ./isArrayLike */ 24); +var getMapData = __webpack_require__(/*! ./_getMapData */ 50); /** - * Creates a `baseEach` or `baseEachRight` function. + * Sets the map `key` to `value`. * * @private - * @param {Function} eachFunc The function to iterate over a collection. - * @param {boolean} [fromRight] Specify iterating from right to left. - * @returns {Function} Returns the new base function. + * @name set + * @memberOf MapCache + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the map cache instance. */ -function createBaseEach(eachFunc, fromRight) { - return function(collection, iteratee) { - if (collection == null) { - return collection; - } - if (!isArrayLike(collection)) { - return eachFunc(collection, iteratee); - } - var length = collection.length, - index = fromRight ? length : -1, - iterable = Object(collection); +function mapCacheSet(key, value) { + var data = getMapData(this, key), + size = data.size; - while ((fromRight ? index-- : ++index < length)) { - if (iteratee(iterable[index], index, iterable) === false) { - break; - } - } - return collection; - }; + data.set(key, value); + this.size += data.size == size ? 0 : 1; + return this; } -module.exports = createBaseEach; +module.exports = mapCacheSet; /***/ }), -/* 258 */ -/*!********************************************!*\ - !*** ./src/components/typography/fonts.js ***! - \********************************************/ -/*! exports provided: default */ -/*! exports used: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { +/* 289 */ +/*!*************************************************!*\ + !*** ./node_modules/lodash/_baseIsEqualDeep.js ***! + \*************************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { -"use strict"; -/** - * Google Fonts for the FontFamily component. - */ +var Stack = __webpack_require__(/*! ./_Stack */ 74), + equalArrays = __webpack_require__(/*! ./_equalArrays */ 152), + equalByTag = __webpack_require__(/*! ./_equalByTag */ 295), + equalObjects = __webpack_require__(/*! ./_equalObjects */ 298), + getTag = __webpack_require__(/*! ./_getTag */ 55), + isArray = __webpack_require__(/*! ./isArray */ 14), + isBuffer = __webpack_require__(/*! ./isBuffer */ 81), + isTypedArray = __webpack_require__(/*! ./isTypedArray */ 159); -var fonts = {}; -fonts["ABeeZee"] = { "v": ["regular", "italic"], "subset": ["latin"], "weight": ["400"], "i": ["normal", "italic"] }; -fonts["Abel"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] }; -fonts["Abhaya Libre"] = { "v": ["regular", "500", "600", "700", "800"], "subset": ["latin-ext", "sinhala", "latin"], "weight": ["400", "500", "600", "700", "800"], "i": ["normal"] }; -fonts["Abril Fatface"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] }; -fonts["Aclonica"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] }; -fonts["Acme"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] }; -fonts["Actor"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] }; -fonts["Adamina"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] }; -fonts["Advent Pro"] = { "v": ["100", "200", "300", "regular", "500", "600", "700"], "subset": ["latin-ext", "greek", "latin"], "weight": ["100", "200", "300", "400", "500", "600", "700"], "i": ["normal"] }; -fonts["Aguafina Script"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] }; -fonts["Akronim"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] }; -fonts["Aladin"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] }; -fonts["Aldrich"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] }; -fonts["Alef"] = { "v": ["regular", "700"], "subset": ["hebrew", "latin"], "weight": ["400", "700"], "i": ["normal"] }; -fonts["Alegreya"] = { "v": ["regular", "italic", "500", "500italic", "700", "700italic", "800", "800italic", "900", "900italic"], "subset": ["cyrillic", "cyrillic-ext", "greek-ext", "latin-ext", "greek", "vietnamese", "latin"], "weight": ["400", "500", "700", "800", "900"], "i": ["normal", "italic"] }; +/** Used to compose bitmasks for value comparisons. */ +var COMPARE_PARTIAL_FLAG = 1; + +/** `Object#toString` result references. */ +var argsTag = '[object Arguments]', + arrayTag = '[object Array]', + objectTag = '[object Object]'; + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** + * A specialized version of `baseIsEqual` for arrays and objects which performs + * deep comparisons and tracks traversed objects enabling objects with circular + * references to be compared. + * + * @private + * @param {Object} object The object to compare. + * @param {Object} other The other object to compare. + * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details. + * @param {Function} customizer The function to customize comparisons. + * @param {Function} equalFunc The function to determine equivalents of values. + * @param {Object} [stack] Tracks traversed `object` and `other` objects. + * @returns {boolean} Returns `true` if the objects are equivalent, else `false`. + */ +function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) { + var objIsArr = isArray(object), + othIsArr = isArray(other), + objTag = objIsArr ? arrayTag : getTag(object), + othTag = othIsArr ? arrayTag : getTag(other); + + objTag = objTag == argsTag ? objectTag : objTag; + othTag = othTag == argsTag ? objectTag : othTag; + + var objIsObj = objTag == objectTag, + othIsObj = othTag == objectTag, + isSameTag = objTag == othTag; + + if (isSameTag && isBuffer(object)) { + if (!isBuffer(other)) { + return false; + } + objIsArr = true; + objIsObj = false; + } + if (isSameTag && !objIsObj) { + stack || (stack = new Stack); + return (objIsArr || isTypedArray(object)) + ? equalArrays(object, other, bitmask, customizer, equalFunc, stack) + : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack); + } + if (!(bitmask & COMPARE_PARTIAL_FLAG)) { + var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'), + othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__'); + + if (objIsWrapped || othIsWrapped) { + var objUnwrapped = objIsWrapped ? object.value() : object, + othUnwrapped = othIsWrapped ? other.value() : other; + + stack || (stack = new Stack); + return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack); + } + } + if (!isSameTag) { + return false; + } + stack || (stack = new Stack); + return equalObjects(object, other, bitmask, customizer, equalFunc, stack); +} + +module.exports = baseIsEqualDeep; + + +/***/ }), +/* 290 */ +/*!******************************************!*\ + !*** ./node_modules/lodash/_SetCache.js ***! + \******************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { + +var MapCache = __webpack_require__(/*! ./_MapCache */ 77), + setCacheAdd = __webpack_require__(/*! ./_setCacheAdd */ 291), + setCacheHas = __webpack_require__(/*! ./_setCacheHas */ 292); + +/** + * + * Creates an array cache object to store unique values. + * + * @private + * @constructor + * @param {Array} [values] The values to cache. + */ +function SetCache(values) { + var index = -1, + length = values == null ? 0 : values.length; + + this.__data__ = new MapCache; + while (++index < length) { + this.add(values[index]); + } +} + +// Add methods to `SetCache`. +SetCache.prototype.add = SetCache.prototype.push = setCacheAdd; +SetCache.prototype.has = setCacheHas; + +module.exports = SetCache; + + +/***/ }), +/* 291 */ +/*!*********************************************!*\ + !*** ./node_modules/lodash/_setCacheAdd.js ***! + \*********************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports) { + +/** Used to stand-in for `undefined` hash values. */ +var HASH_UNDEFINED = '__lodash_hash_undefined__'; + +/** + * Adds `value` to the array cache. + * + * @private + * @name add + * @memberOf SetCache + * @alias push + * @param {*} value The value to cache. + * @returns {Object} Returns the cache instance. + */ +function setCacheAdd(value) { + this.__data__.set(value, HASH_UNDEFINED); + return this; +} + +module.exports = setCacheAdd; + + +/***/ }), +/* 292 */ +/*!*********************************************!*\ + !*** ./node_modules/lodash/_setCacheHas.js ***! + \*********************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports) { + +/** + * Checks if `value` is in the array cache. + * + * @private + * @name has + * @memberOf SetCache + * @param {*} value The value to search for. + * @returns {number} Returns `true` if `value` is found, else `false`. + */ +function setCacheHas(value) { + return this.__data__.has(value); +} + +module.exports = setCacheHas; + + +/***/ }), +/* 293 */ +/*!*******************************************!*\ + !*** ./node_modules/lodash/_arraySome.js ***! + \*******************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports) { + +/** + * A specialized version of `_.some` for arrays without support for iteratee + * shorthands. + * + * @private + * @param {Array} [array] The array to iterate over. + * @param {Function} predicate The function invoked per iteration. + * @returns {boolean} Returns `true` if any element passes the predicate check, + * else `false`. + */ +function arraySome(array, predicate) { + var index = -1, + length = array == null ? 0 : array.length; + + while (++index < length) { + if (predicate(array[index], index, array)) { + return true; + } + } + return false; +} + +module.exports = arraySome; + + +/***/ }), +/* 294 */ +/*!******************************************!*\ + !*** ./node_modules/lodash/_cacheHas.js ***! + \******************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports) { + +/** + * Checks if a `cache` value for `key` exists. + * + * @private + * @param {Object} cache The cache to query. + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ +function cacheHas(cache, key) { + return cache.has(key); +} + +module.exports = cacheHas; + + +/***/ }), +/* 295 */ +/*!********************************************!*\ + !*** ./node_modules/lodash/_equalByTag.js ***! + \********************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { + +var Symbol = __webpack_require__(/*! ./_Symbol */ 27), + Uint8Array = __webpack_require__(/*! ./_Uint8Array */ 153), + eq = __webpack_require__(/*! ./eq */ 48), + equalArrays = __webpack_require__(/*! ./_equalArrays */ 152), + mapToArray = __webpack_require__(/*! ./_mapToArray */ 296), + setToArray = __webpack_require__(/*! ./_setToArray */ 297); + +/** Used to compose bitmasks for value comparisons. */ +var COMPARE_PARTIAL_FLAG = 1, + COMPARE_UNORDERED_FLAG = 2; + +/** `Object#toString` result references. */ +var boolTag = '[object Boolean]', + dateTag = '[object Date]', + errorTag = '[object Error]', + mapTag = '[object Map]', + numberTag = '[object Number]', + regexpTag = '[object RegExp]', + setTag = '[object Set]', + stringTag = '[object String]', + symbolTag = '[object Symbol]'; + +var arrayBufferTag = '[object ArrayBuffer]', + dataViewTag = '[object DataView]'; + +/** Used to convert symbols to primitives and strings. */ +var symbolProto = Symbol ? Symbol.prototype : undefined, + symbolValueOf = symbolProto ? symbolProto.valueOf : undefined; + +/** + * A specialized version of `baseIsEqualDeep` for comparing objects of + * the same `toStringTag`. + * + * **Note:** This function only supports comparing values with tags of + * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`. + * + * @private + * @param {Object} object The object to compare. + * @param {Object} other The other object to compare. + * @param {string} tag The `toStringTag` of the objects to compare. + * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details. + * @param {Function} customizer The function to customize comparisons. + * @param {Function} equalFunc The function to determine equivalents of values. + * @param {Object} stack Tracks traversed `object` and `other` objects. + * @returns {boolean} Returns `true` if the objects are equivalent, else `false`. + */ +function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) { + switch (tag) { + case dataViewTag: + if ((object.byteLength != other.byteLength) || + (object.byteOffset != other.byteOffset)) { + return false; + } + object = object.buffer; + other = other.buffer; + + case arrayBufferTag: + if ((object.byteLength != other.byteLength) || + !equalFunc(new Uint8Array(object), new Uint8Array(other))) { + return false; + } + return true; + + case boolTag: + case dateTag: + case numberTag: + // Coerce booleans to `1` or `0` and dates to milliseconds. + // Invalid dates are coerced to `NaN`. + return eq(+object, +other); + + case errorTag: + return object.name == other.name && object.message == other.message; + + case regexpTag: + case stringTag: + // Coerce regexes to strings and treat strings, primitives and objects, + // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring + // for more details. + return object == (other + ''); + + case mapTag: + var convert = mapToArray; + + case setTag: + var isPartial = bitmask & COMPARE_PARTIAL_FLAG; + convert || (convert = setToArray); + + if (object.size != other.size && !isPartial) { + return false; + } + // Assume cyclic values are equal. + var stacked = stack.get(object); + if (stacked) { + return stacked == other; + } + bitmask |= COMPARE_UNORDERED_FLAG; + + // Recursively compare objects (susceptible to call stack limits). + stack.set(object, other); + var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack); + stack['delete'](object); + return result; + + case symbolTag: + if (symbolValueOf) { + return symbolValueOf.call(object) == symbolValueOf.call(other); + } + } + return false; +} + +module.exports = equalByTag; + + +/***/ }), +/* 296 */ +/*!********************************************!*\ + !*** ./node_modules/lodash/_mapToArray.js ***! + \********************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports) { + +/** + * Converts `map` to its key-value pairs. + * + * @private + * @param {Object} map The map to convert. + * @returns {Array} Returns the key-value pairs. + */ +function mapToArray(map) { + var index = -1, + result = Array(map.size); + + map.forEach(function(value, key) { + result[++index] = [key, value]; + }); + return result; +} + +module.exports = mapToArray; + + +/***/ }), +/* 297 */ +/*!********************************************!*\ + !*** ./node_modules/lodash/_setToArray.js ***! + \********************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports) { + +/** + * Converts `set` to an array of its values. + * + * @private + * @param {Object} set The set to convert. + * @returns {Array} Returns the values. + */ +function setToArray(set) { + var index = -1, + result = Array(set.size); + + set.forEach(function(value) { + result[++index] = value; + }); + return result; +} + +module.exports = setToArray; + + +/***/ }), +/* 298 */ +/*!**********************************************!*\ + !*** ./node_modules/lodash/_equalObjects.js ***! + \**********************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { + +var getAllKeys = __webpack_require__(/*! ./_getAllKeys */ 154); + +/** Used to compose bitmasks for value comparisons. */ +var COMPARE_PARTIAL_FLAG = 1; + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** + * A specialized version of `baseIsEqualDeep` for objects with support for + * partial deep comparisons. + * + * @private + * @param {Object} object The object to compare. + * @param {Object} other The other object to compare. + * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details. + * @param {Function} customizer The function to customize comparisons. + * @param {Function} equalFunc The function to determine equivalents of values. + * @param {Object} stack Tracks traversed `object` and `other` objects. + * @returns {boolean} Returns `true` if the objects are equivalent, else `false`. + */ +function equalObjects(object, other, bitmask, customizer, equalFunc, stack) { + var isPartial = bitmask & COMPARE_PARTIAL_FLAG, + objProps = getAllKeys(object), + objLength = objProps.length, + othProps = getAllKeys(other), + othLength = othProps.length; + + if (objLength != othLength && !isPartial) { + return false; + } + var index = objLength; + while (index--) { + var key = objProps[index]; + if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) { + return false; + } + } + // Assume cyclic values are equal. + var stacked = stack.get(object); + if (stacked && stack.get(other)) { + return stacked == other; + } + var result = true; + stack.set(object, other); + stack.set(other, object); + + var skipCtor = isPartial; + while (++index < objLength) { + key = objProps[index]; + var objValue = object[key], + othValue = other[key]; + + if (customizer) { + var compared = isPartial + ? customizer(othValue, objValue, key, other, object, stack) + : customizer(objValue, othValue, key, object, other, stack); + } + // Recursively compare objects (susceptible to call stack limits). + if (!(compared === undefined + ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack)) + : compared + )) { + result = false; + break; + } + skipCtor || (skipCtor = key == 'constructor'); + } + if (result && !skipCtor) { + var objCtor = object.constructor, + othCtor = other.constructor; + + // Non `Object` object instances with different constructors are not equal. + if (objCtor != othCtor && + ('constructor' in object && 'constructor' in other) && + !(typeof objCtor == 'function' && objCtor instanceof objCtor && + typeof othCtor == 'function' && othCtor instanceof othCtor)) { + result = false; + } + } + stack['delete'](object); + stack['delete'](other); + return result; +} + +module.exports = equalObjects; + + +/***/ }), +/* 299 */ +/*!*********************************************!*\ + !*** ./node_modules/lodash/_arrayFilter.js ***! + \*********************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports) { + +/** + * A specialized version of `_.filter` for arrays without support for + * iteratee shorthands. + * + * @private + * @param {Array} [array] The array to iterate over. + * @param {Function} predicate The function invoked per iteration. + * @returns {Array} Returns the new filtered array. + */ +function arrayFilter(array, predicate) { + var index = -1, + length = array == null ? 0 : array.length, + resIndex = 0, + result = []; + + while (++index < length) { + var value = array[index]; + if (predicate(value, index, array)) { + result[resIndex++] = value; + } + } + return result; +} + +module.exports = arrayFilter; + + +/***/ }), +/* 300 */ +/*!*************************************************!*\ + !*** ./node_modules/lodash/_baseIsArguments.js ***! + \*************************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { + +var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ 22), + isObjectLike = __webpack_require__(/*! ./isObjectLike */ 18); + +/** `Object#toString` result references. */ +var argsTag = '[object Arguments]'; + +/** + * The base implementation of `_.isArguments`. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an `arguments` object, + */ +function baseIsArguments(value) { + return isObjectLike(value) && baseGetTag(value) == argsTag; +} + +module.exports = baseIsArguments; + + +/***/ }), +/* 301 */ +/*!******************************************!*\ + !*** ./node_modules/lodash/stubFalse.js ***! + \******************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports) { + +/** + * This method returns `false`. + * + * @static + * @memberOf _ + * @since 4.13.0 + * @category Util + * @returns {boolean} Returns `false`. + * @example + * + * _.times(2, _.stubFalse); + * // => [false, false] + */ +function stubFalse() { + return false; +} + +module.exports = stubFalse; + + +/***/ }), +/* 302 */ +/*!**************************************************!*\ + !*** ./node_modules/lodash/_baseIsTypedArray.js ***! + \**************************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { + +var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ 22), + isLength = __webpack_require__(/*! ./isLength */ 83), + isObjectLike = __webpack_require__(/*! ./isObjectLike */ 18); + +/** `Object#toString` result references. */ +var argsTag = '[object Arguments]', + arrayTag = '[object Array]', + boolTag = '[object Boolean]', + dateTag = '[object Date]', + errorTag = '[object Error]', + funcTag = '[object Function]', + mapTag = '[object Map]', + numberTag = '[object Number]', + objectTag = '[object Object]', + regexpTag = '[object RegExp]', + setTag = '[object Set]', + stringTag = '[object String]', + weakMapTag = '[object WeakMap]'; + +var arrayBufferTag = '[object ArrayBuffer]', + dataViewTag = '[object DataView]', + float32Tag = '[object Float32Array]', + float64Tag = '[object Float64Array]', + int8Tag = '[object Int8Array]', + int16Tag = '[object Int16Array]', + int32Tag = '[object Int32Array]', + uint8Tag = '[object Uint8Array]', + uint8ClampedTag = '[object Uint8ClampedArray]', + uint16Tag = '[object Uint16Array]', + uint32Tag = '[object Uint32Array]'; + +/** Used to identify `toStringTag` values of typed arrays. */ +var typedArrayTags = {}; +typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = +typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = +typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = +typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = +typedArrayTags[uint32Tag] = true; +typedArrayTags[argsTag] = typedArrayTags[arrayTag] = +typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = +typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = +typedArrayTags[errorTag] = typedArrayTags[funcTag] = +typedArrayTags[mapTag] = typedArrayTags[numberTag] = +typedArrayTags[objectTag] = typedArrayTags[regexpTag] = +typedArrayTags[setTag] = typedArrayTags[stringTag] = +typedArrayTags[weakMapTag] = false; + +/** + * The base implementation of `_.isTypedArray` without Node.js optimizations. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a typed array, else `false`. + */ +function baseIsTypedArray(value) { + return isObjectLike(value) && + isLength(value.length) && !!typedArrayTags[baseGetTag(value)]; +} + +module.exports = baseIsTypedArray; + + +/***/ }), +/* 303 */ +/*!******************************************!*\ + !*** ./node_modules/lodash/_baseKeys.js ***! + \******************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { + +var isPrototype = __webpack_require__(/*! ./_isPrototype */ 54), + nativeKeys = __webpack_require__(/*! ./_nativeKeys */ 304); + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** + * The base implementation of `_.keys` which doesn't treat sparse arrays as dense. + * + * @private + * @param {Object} object The object to query. + * @returns {Array} Returns the array of property names. + */ +function baseKeys(object) { + if (!isPrototype(object)) { + return nativeKeys(object); + } + var result = []; + for (var key in Object(object)) { + if (hasOwnProperty.call(object, key) && key != 'constructor') { + result.push(key); + } + } + return result; +} + +module.exports = baseKeys; + + +/***/ }), +/* 304 */ +/*!********************************************!*\ + !*** ./node_modules/lodash/_nativeKeys.js ***! + \********************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { + +var overArg = __webpack_require__(/*! ./_overArg */ 160); + +/* Built-in method references for those with the same name as other `lodash` methods. */ +var nativeKeys = overArg(Object.keys, Object); + +module.exports = nativeKeys; + + +/***/ }), +/* 305 */ +/*!******************************************!*\ + !*** ./node_modules/lodash/_DataView.js ***! + \******************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { + +var getNative = __webpack_require__(/*! ./_getNative */ 21), + root = __webpack_require__(/*! ./_root */ 12); + +/* Built-in method references that are verified to be native. */ +var DataView = getNative(root, 'DataView'); + +module.exports = DataView; + + +/***/ }), +/* 306 */ +/*!*****************************************!*\ + !*** ./node_modules/lodash/_Promise.js ***! + \*****************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { + +var getNative = __webpack_require__(/*! ./_getNative */ 21), + root = __webpack_require__(/*! ./_root */ 12); + +/* Built-in method references that are verified to be native. */ +var Promise = getNative(root, 'Promise'); + +module.exports = Promise; + + +/***/ }), +/* 307 */ +/*!*************************************!*\ + !*** ./node_modules/lodash/_Set.js ***! + \*************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { + +var getNative = __webpack_require__(/*! ./_getNative */ 21), + root = __webpack_require__(/*! ./_root */ 12); + +/* Built-in method references that are verified to be native. */ +var Set = getNative(root, 'Set'); + +module.exports = Set; + + +/***/ }), +/* 308 */ +/*!*****************************************!*\ + !*** ./node_modules/lodash/_WeakMap.js ***! + \*****************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { + +var getNative = __webpack_require__(/*! ./_getNative */ 21), + root = __webpack_require__(/*! ./_root */ 12); + +/* Built-in method references that are verified to be native. */ +var WeakMap = getNative(root, 'WeakMap'); + +module.exports = WeakMap; + + +/***/ }), +/* 309 */ +/*!**********************************************!*\ + !*** ./node_modules/lodash/_getMatchData.js ***! + \**********************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { + +var isStrictComparable = __webpack_require__(/*! ./_isStrictComparable */ 161), + keys = __webpack_require__(/*! ./keys */ 28); + +/** + * Gets the property names, values, and compare flags of `object`. + * + * @private + * @param {Object} object The object to query. + * @returns {Array} Returns the match data of `object`. + */ +function getMatchData(object) { + var result = keys(object), + length = result.length; + + while (length--) { + var key = result[length], + value = object[key]; + + result[length] = [key, value, isStrictComparable(value)]; + } + return result; +} + +module.exports = getMatchData; + + +/***/ }), +/* 310 */ +/*!*****************************************************!*\ + !*** ./node_modules/lodash/_baseMatchesProperty.js ***! + \*****************************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { + +var baseIsEqual = __webpack_require__(/*! ./_baseIsEqual */ 151), + get = __webpack_require__(/*! ./get */ 163), + hasIn = __webpack_require__(/*! ./hasIn */ 314), + isKey = __webpack_require__(/*! ./_isKey */ 84), + isStrictComparable = __webpack_require__(/*! ./_isStrictComparable */ 161), + matchesStrictComparable = __webpack_require__(/*! ./_matchesStrictComparable */ 162), + toKey = __webpack_require__(/*! ./_toKey */ 31); + +/** Used to compose bitmasks for value comparisons. */ +var COMPARE_PARTIAL_FLAG = 1, + COMPARE_UNORDERED_FLAG = 2; + +/** + * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`. + * + * @private + * @param {string} path The path of the property to get. + * @param {*} srcValue The value to match. + * @returns {Function} Returns the new spec function. + */ +function baseMatchesProperty(path, srcValue) { + if (isKey(path) && isStrictComparable(srcValue)) { + return matchesStrictComparable(toKey(path), srcValue); + } + return function(object) { + var objValue = get(object, path); + return (objValue === undefined && objValue === srcValue) + ? hasIn(object, path) + : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG); + }; +} + +module.exports = baseMatchesProperty; + + +/***/ }), +/* 311 */ +/*!**********************************************!*\ + !*** ./node_modules/lodash/_stringToPath.js ***! + \**********************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { + +var memoizeCapped = __webpack_require__(/*! ./_memoizeCapped */ 312); + +/** Used to match property names within property paths. */ +var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g; + +/** Used to match backslashes in property paths. */ +var reEscapeChar = /\\(\\)?/g; + +/** + * Converts `string` to a property path array. + * + * @private + * @param {string} string The string to convert. + * @returns {Array} Returns the property path array. + */ +var stringToPath = memoizeCapped(function(string) { + var result = []; + if (string.charCodeAt(0) === 46 /* . */) { + result.push(''); + } + string.replace(rePropName, function(match, number, quote, subString) { + result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match)); + }); + return result; +}); + +module.exports = stringToPath; + + +/***/ }), +/* 312 */ +/*!***********************************************!*\ + !*** ./node_modules/lodash/_memoizeCapped.js ***! + \***********************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { + +var memoize = __webpack_require__(/*! ./memoize */ 313); + +/** Used as the maximum memoize cache size. */ +var MAX_MEMOIZE_SIZE = 500; + +/** + * A specialized version of `_.memoize` which clears the memoized function's + * cache when it exceeds `MAX_MEMOIZE_SIZE`. + * + * @private + * @param {Function} func The function to have its output memoized. + * @returns {Function} Returns the new memoized function. + */ +function memoizeCapped(func) { + var result = memoize(func, function(key) { + if (cache.size === MAX_MEMOIZE_SIZE) { + cache.clear(); + } + return key; + }); + + var cache = result.cache; + return result; +} + +module.exports = memoizeCapped; + + +/***/ }), +/* 313 */ +/*!****************************************!*\ + !*** ./node_modules/lodash/memoize.js ***! + \****************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { + +var MapCache = __webpack_require__(/*! ./_MapCache */ 77); + +/** Error message constants. */ +var FUNC_ERROR_TEXT = 'Expected a function'; + +/** + * Creates a function that memoizes the result of `func`. If `resolver` is + * provided, it determines the cache key for storing the result based on the + * arguments provided to the memoized function. By default, the first argument + * provided to the memoized function is used as the map cache key. The `func` + * is invoked with the `this` binding of the memoized function. + * + * **Note:** The cache is exposed as the `cache` property on the memoized + * function. Its creation may be customized by replacing the `_.memoize.Cache` + * constructor with one whose instances implement the + * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object) + * method interface of `clear`, `delete`, `get`, `has`, and `set`. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Function + * @param {Function} func The function to have its output memoized. + * @param {Function} [resolver] The function to resolve the cache key. + * @returns {Function} Returns the new memoized function. + * @example + * + * var object = { 'a': 1, 'b': 2 }; + * var other = { 'c': 3, 'd': 4 }; + * + * var values = _.memoize(_.values); + * values(object); + * // => [1, 2] + * + * values(other); + * // => [3, 4] + * + * object.a = 2; + * values(object); + * // => [1, 2] + * + * // Modify the result cache. + * values.cache.set(object, ['a', 'b']); + * values(object); + * // => ['a', 'b'] + * + * // Replace `_.memoize.Cache`. + * _.memoize.Cache = WeakMap; + */ +function memoize(func, resolver) { + if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) { + throw new TypeError(FUNC_ERROR_TEXT); + } + var memoized = function() { + var args = arguments, + key = resolver ? resolver.apply(this, args) : args[0], + cache = memoized.cache; + + if (cache.has(key)) { + return cache.get(key); + } + var result = func.apply(this, args); + memoized.cache = cache.set(key, result) || cache; + return result; + }; + memoized.cache = new (memoize.Cache || MapCache); + return memoized; +} + +// Expose `MapCache`. +memoize.Cache = MapCache; + +module.exports = memoize; + + +/***/ }), +/* 314 */ +/*!**************************************!*\ + !*** ./node_modules/lodash/hasIn.js ***! + \**************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { + +var baseHasIn = __webpack_require__(/*! ./_baseHasIn */ 315), + hasPath = __webpack_require__(/*! ./_hasPath */ 316); + +/** + * Checks if `path` is a direct or inherited property of `object`. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Object + * @param {Object} object The object to query. + * @param {Array|string} path The path to check. + * @returns {boolean} Returns `true` if `path` exists, else `false`. + * @example + * + * var object = _.create({ 'a': _.create({ 'b': 2 }) }); + * + * _.hasIn(object, 'a'); + * // => true + * + * _.hasIn(object, 'a.b'); + * // => true + * + * _.hasIn(object, ['a', 'b']); + * // => true + * + * _.hasIn(object, 'b'); + * // => false + */ +function hasIn(object, path) { + return object != null && hasPath(object, path, baseHasIn); +} + +module.exports = hasIn; + + +/***/ }), +/* 315 */ +/*!*******************************************!*\ + !*** ./node_modules/lodash/_baseHasIn.js ***! + \*******************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports) { + +/** + * The base implementation of `_.hasIn` without support for deep paths. + * + * @private + * @param {Object} [object] The object to query. + * @param {Array|string} key The key to check. + * @returns {boolean} Returns `true` if `key` exists, else `false`. + */ +function baseHasIn(object, key) { + return object != null && key in Object(object); +} + +module.exports = baseHasIn; + + +/***/ }), +/* 316 */ +/*!*****************************************!*\ + !*** ./node_modules/lodash/_hasPath.js ***! + \*****************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { + +var castPath = __webpack_require__(/*! ./_castPath */ 30), + isArguments = __webpack_require__(/*! ./isArguments */ 80), + isArray = __webpack_require__(/*! ./isArray */ 14), + isIndex = __webpack_require__(/*! ./_isIndex */ 51), + isLength = __webpack_require__(/*! ./isLength */ 83), + toKey = __webpack_require__(/*! ./_toKey */ 31); + +/** + * Checks if `path` exists on `object`. + * + * @private + * @param {Object} object The object to query. + * @param {Array|string} path The path to check. + * @param {Function} hasFunc The function to check properties. + * @returns {boolean} Returns `true` if `path` exists, else `false`. + */ +function hasPath(object, path, hasFunc) { + path = castPath(path, object); + + var index = -1, + length = path.length, + result = false; + + while (++index < length) { + var key = toKey(path[index]); + if (!(result = object != null && hasFunc(object, key))) { + break; + } + object = object[key]; + } + if (result || ++index != length) { + return result; + } + length = object == null ? 0 : object.length; + return !!length && isLength(length) && isIndex(key, length) && + (isArray(object) || isArguments(object)); +} + +module.exports = hasPath; + + +/***/ }), +/* 317 */ +/*!*****************************************!*\ + !*** ./node_modules/lodash/property.js ***! + \*****************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { + +var baseProperty = __webpack_require__(/*! ./_baseProperty */ 166), + basePropertyDeep = __webpack_require__(/*! ./_basePropertyDeep */ 318), + isKey = __webpack_require__(/*! ./_isKey */ 84), + toKey = __webpack_require__(/*! ./_toKey */ 31); + +/** + * Creates a function that returns the value at `path` of a given object. + * + * @static + * @memberOf _ + * @since 2.4.0 + * @category Util + * @param {Array|string} path The path of the property to get. + * @returns {Function} Returns the new accessor function. + * @example + * + * var objects = [ + * { 'a': { 'b': 2 } }, + * { 'a': { 'b': 1 } } + * ]; + * + * _.map(objects, _.property('a.b')); + * // => [2, 1] + * + * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b'); + * // => [1, 2] + */ +function property(path) { + return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path); +} + +module.exports = property; + + +/***/ }), +/* 318 */ +/*!**************************************************!*\ + !*** ./node_modules/lodash/_basePropertyDeep.js ***! + \**************************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { + +var baseGet = __webpack_require__(/*! ./_baseGet */ 56); + +/** + * A specialized version of `baseProperty` which supports deep paths. + * + * @private + * @param {Array|string} path The path of the property to get. + * @returns {Function} Returns the new accessor function. + */ +function basePropertyDeep(path) { + return function(object) { + return baseGet(object, path); + }; +} + +module.exports = basePropertyDeep; + + +/***/ }), +/* 319 */ +/*!*****************************************!*\ + !*** ./node_modules/lodash/_baseMap.js ***! + \*****************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { + +var baseEach = __webpack_require__(/*! ./_baseEach */ 320), + isArrayLike = __webpack_require__(/*! ./isArrayLike */ 29); + +/** + * The base implementation of `_.map` without support for iteratee shorthands. + * + * @private + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Array} Returns the new mapped array. + */ +function baseMap(collection, iteratee) { + var index = -1, + result = isArrayLike(collection) ? Array(collection.length) : []; + + baseEach(collection, function(value, key, collection) { + result[++index] = iteratee(value, key, collection); + }); + return result; +} + +module.exports = baseMap; + + +/***/ }), +/* 320 */ +/*!******************************************!*\ + !*** ./node_modules/lodash/_baseEach.js ***! + \******************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { + +var baseForOwn = __webpack_require__(/*! ./_baseForOwn */ 321), + createBaseEach = __webpack_require__(/*! ./_createBaseEach */ 324); + +/** + * The base implementation of `_.forEach` without support for iteratee shorthands. + * + * @private + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Array|Object} Returns `collection`. + */ +var baseEach = createBaseEach(baseForOwn); + +module.exports = baseEach; + + +/***/ }), +/* 321 */ +/*!********************************************!*\ + !*** ./node_modules/lodash/_baseForOwn.js ***! + \********************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { + +var baseFor = __webpack_require__(/*! ./_baseFor */ 322), + keys = __webpack_require__(/*! ./keys */ 28); + +/** + * The base implementation of `_.forOwn` without support for iteratee shorthands. + * + * @private + * @param {Object} object The object to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Object} Returns `object`. + */ +function baseForOwn(object, iteratee) { + return object && baseFor(object, iteratee, keys); +} + +module.exports = baseForOwn; + + +/***/ }), +/* 322 */ +/*!*****************************************!*\ + !*** ./node_modules/lodash/_baseFor.js ***! + \*****************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { + +var createBaseFor = __webpack_require__(/*! ./_createBaseFor */ 323); + +/** + * The base implementation of `baseForOwn` which iterates over `object` + * properties returned by `keysFunc` and invokes `iteratee` for each property. + * Iteratee functions may exit iteration early by explicitly returning `false`. + * + * @private + * @param {Object} object The object to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @param {Function} keysFunc The function to get the keys of `object`. + * @returns {Object} Returns `object`. + */ +var baseFor = createBaseFor(); + +module.exports = baseFor; + + +/***/ }), +/* 323 */ +/*!***********************************************!*\ + !*** ./node_modules/lodash/_createBaseFor.js ***! + \***********************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports) { + +/** + * Creates a base function for methods like `_.forIn` and `_.forOwn`. + * + * @private + * @param {boolean} [fromRight] Specify iterating from right to left. + * @returns {Function} Returns the new base function. + */ +function createBaseFor(fromRight) { + return function(object, iteratee, keysFunc) { + var index = -1, + iterable = Object(object), + props = keysFunc(object), + length = props.length; + + while (length--) { + var key = props[fromRight ? length : ++index]; + if (iteratee(iterable[key], key, iterable) === false) { + break; + } + } + return object; + }; +} + +module.exports = createBaseFor; + + +/***/ }), +/* 324 */ +/*!************************************************!*\ + !*** ./node_modules/lodash/_createBaseEach.js ***! + \************************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { + +var isArrayLike = __webpack_require__(/*! ./isArrayLike */ 29); + +/** + * Creates a `baseEach` or `baseEachRight` function. + * + * @private + * @param {Function} eachFunc The function to iterate over a collection. + * @param {boolean} [fromRight] Specify iterating from right to left. + * @returns {Function} Returns the new base function. + */ +function createBaseEach(eachFunc, fromRight) { + return function(collection, iteratee) { + if (collection == null) { + return collection; + } + if (!isArrayLike(collection)) { + return eachFunc(collection, iteratee); + } + var length = collection.length, + index = fromRight ? length : -1, + iterable = Object(collection); + + while ((fromRight ? index-- : ++index < length)) { + if (iteratee(iterable[index], index, iterable) === false) { + break; + } + } + return collection; + }; +} + +module.exports = createBaseEach; + + +/***/ }), +/* 325 */ +/*!********************************************!*\ + !*** ./src/components/typography/fonts.js ***! + \********************************************/ +/*! exports provided: default */ +/*! exports used: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/** + * Google Fonts for the FontFamily component. + */ + +var fonts = {}; +fonts["ABeeZee"] = { "v": ["regular", "italic"], "subset": ["latin"], "weight": ["400"], "i": ["normal", "italic"] }; +fonts["Abel"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] }; +fonts["Abhaya Libre"] = { "v": ["regular", "500", "600", "700", "800"], "subset": ["latin-ext", "sinhala", "latin"], "weight": ["400", "500", "600", "700", "800"], "i": ["normal"] }; +fonts["Abril Fatface"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] }; +fonts["Aclonica"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] }; +fonts["Acme"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] }; +fonts["Actor"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] }; +fonts["Adamina"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] }; +fonts["Advent Pro"] = { "v": ["100", "200", "300", "regular", "500", "600", "700"], "subset": ["latin-ext", "greek", "latin"], "weight": ["100", "200", "300", "400", "500", "600", "700"], "i": ["normal"] }; +fonts["Aguafina Script"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] }; +fonts["Akronim"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] }; +fonts["Aladin"] = { "v": ["regular"], "subset": ["latin-ext", "latin"], "weight": ["400"], "i": ["normal"] }; +fonts["Aldrich"] = { "v": ["regular"], "subset": ["latin"], "weight": ["400"], "i": ["normal"] }; +fonts["Alef"] = { "v": ["regular", "700"], "subset": ["hebrew", "latin"], "weight": ["400", "700"], "i": ["normal"] }; +fonts["Alegreya"] = { "v": ["regular", "italic", "500", "500italic", "700", "700italic", "800", "800italic", "900", "900italic"], "subset": ["cyrillic", "cyrillic-ext", "greek-ext", "latin-ext", "greek", "vietnamese", "latin"], "weight": ["400", "500", "700", "800", "900"], "i": ["normal", "italic"] }; fonts["Alegreya SC"] = { "v": ["regular", "italic", "500", "500italic", "700", "700italic", "800", "800italic", "900", "900italic"], "subset": ["cyrillic", "cyrillic-ext", "greek-ext", "latin-ext", "greek", "vietnamese", "latin"], "weight": ["400", "500", "700", "800", "900"], "i": ["normal", "italic"] }; fonts["Alegreya Sans"] = { "v": ["100", "100italic", "300", "300italic", "regular", "italic", "500", "500italic", "700", "700italic", "800", "800italic", "900", "900italic"], "subset": ["cyrillic", "cyrillic-ext", "greek-ext", "latin-ext", "greek", "vietnamese", "latin"], "weight": ["100", "300", "400", "500", "700", "800", "900"], "i": ["normal", "italic"] }; fonts["Alegreya Sans SC"] = { "v": ["100", "100italic", "300", "300italic", "regular", "italic", "500", "500italic", "700", "700italic", "800", "800italic", "900", "900italic"], "subset": ["cyrillic", "cyrillic-ext", "greek-ext", "latin-ext", "greek", "vietnamese", "latin"], "weight": ["100", "300", "400", "500", "700", "800", "900"], "i": ["normal", "italic"] }; @@ -26863,7 +30574,7 @@ fonts["Zilla Slab Highlight"] = { "v": ["regular", "700"], "subset": ["latin-ext /* harmony default export */ __webpack_exports__["a"] = (fonts); /***/ }), -/* 259 */ +/* 326 */ /*!********************************************************************!*\ !*** ./node_modules/react-select/dist/react-select.browser.esm.js ***! \********************************************************************/ @@ -26873,26 +30584,48 @@ fonts["Zilla Slab Highlight"] = { "v": ["regular", "700"], "subset": ["latin-ext "use strict"; /* unused harmony export NonceProvider */ -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(/*! react */ 6); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_memoize_one__ = __webpack_require__(/*! memoize-one */ 131); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__emotion_core__ = __webpack_require__(/*! @emotion/core */ 65); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react_dom__ = __webpack_require__(/*! react-dom */ 18); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_react_dom__); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_prop_types__ = __webpack_require__(/*! prop-types */ 15); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_prop_types__); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__utils_06b0d5a4_browser_esm_js__ = __webpack_require__(/*! ./utils-06b0d5a4.browser.esm.js */ 66); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__index_4322c0ed_browser_esm_js__ = __webpack_require__(/*! ./index-4322c0ed.browser.esm.js */ 137); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(/*! @babel/runtime/helpers/objectWithoutProperties */ 327); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_objectWithoutProperties__); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_extends__ = __webpack_require__(/*! @babel/runtime/helpers/extends */ 329); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_extends__); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_slicedToArray__ = __webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 330); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_slicedToArray___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_slicedToArray__); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_toConsumableArray__ = __webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ 334); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_toConsumableArray___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_toConsumableArray__); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_defineProperty__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 338); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_defineProperty___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_defineProperty__); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_classCallCheck__ = __webpack_require__(/*! @babel/runtime/helpers/esm/classCallCheck */ 59); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_createClass__ = __webpack_require__(/*! @babel/runtime/helpers/esm/createClass */ 60); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_assertThisInitialized__ = __webpack_require__(/*! @babel/runtime/helpers/assertThisInitialized */ 339); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_assertThisInitialized___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_assertThisInitialized__); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_inherits__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inherits */ 61); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_possibleConstructorReturn__ = __webpack_require__(/*! @babel/runtime/helpers/esm/possibleConstructorReturn */ 62); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_getPrototypeOf__ = __webpack_require__(/*! @babel/runtime/helpers/esm/getPrototypeOf */ 63); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_react__ = __webpack_require__(/*! react */ 5); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_11_react__); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12_memoize_one__ = __webpack_require__(/*! memoize-one */ 171); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__emotion_core__ = __webpack_require__(/*! @emotion/core */ 87); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14_react_dom__ = __webpack_require__(/*! react-dom */ 33); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_14_react_dom__); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__babel_runtime_helpers_typeof__ = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 169); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__babel_runtime_helpers_typeof___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_15__babel_runtime_helpers_typeof__); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_16__index_75b02bac_browser_esm_js__ = __webpack_require__(/*! ./index-75b02bac.browser.esm.js */ 176); /* unused harmony reexport components */ -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__Select_9fdb8cd0_browser_esm_js__ = __webpack_require__(/*! ./Select-9fdb8cd0.browser.esm.js */ 139); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_17__Select_e1cf49ae_browser_esm_js__ = __webpack_require__(/*! ./Select-e1cf49ae.browser.esm.js */ 180); /* unused harmony reexport createFilter */ /* unused harmony reexport defaultTheme */ /* unused harmony reexport mergeStyles */ -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__emotion_css__ = __webpack_require__(/*! @emotion/css */ 29); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_react_input_autosize__ = __webpack_require__(/*! react-input-autosize */ 138); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_react_input_autosize___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_9_react_input_autosize__); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__stateManager_04f734a2_browser_esm_js__ = __webpack_require__(/*! ./stateManager-04f734a2.browser.esm.js */ 280); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__emotion_cache__ = __webpack_require__(/*! @emotion/cache */ 132); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_18__emotion_css__ = __webpack_require__(/*! @emotion/css */ 41); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_19__babel_runtime_helpers_taggedTemplateLiteral__ = __webpack_require__(/*! @babel/runtime/helpers/taggedTemplateLiteral */ 374); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_19__babel_runtime_helpers_taggedTemplateLiteral___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_19__babel_runtime_helpers_taggedTemplateLiteral__); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_20_react_input_autosize__ = __webpack_require__(/*! react-input-autosize */ 178); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_20_react_input_autosize___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_20_react_input_autosize__); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_21__stateManager_2f2b6f5b_browser_esm_js__ = __webpack_require__(/*! ./stateManager-2f2b6f5b.browser.esm.js */ 375); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_22__emotion_cache__ = __webpack_require__(/*! @emotion/cache */ 88); + + + + @@ -26907,57 +30640,390 @@ fonts["Zilla Slab Highlight"] = { "v": ["regular", "700"], "subset": ["latin-ext -function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; } -var NonceProvider = -/*#__PURE__*/ -function (_Component) { - _inheritsLoose(NonceProvider, _Component); + + + + + + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_getPrototypeOf__["a" /* default */])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_getPrototypeOf__["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_possibleConstructorReturn__["a" /* default */])(this, result); }; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } + +var NonceProvider = /*#__PURE__*/function (_Component) { + Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_inherits__["a" /* default */])(NonceProvider, _Component); + + var _super = _createSuper(NonceProvider); function NonceProvider(props) { var _this; - _this = _Component.call(this, props) || this; + Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_classCallCheck__["a" /* default */])(this, NonceProvider); + + _this = _super.call(this, props); _this.createEmotionCache = function (nonce) { - return __WEBPACK_IMPORTED_MODULE_11__emotion_cache__["a" /* default */]({ + return Object(__WEBPACK_IMPORTED_MODULE_22__emotion_cache__["a" /* default */])({ nonce: nonce }); }; - _this.createEmotionCache = __WEBPACK_IMPORTED_MODULE_1_memoize_one__["a" /* default */](_this.createEmotionCache); - return _this; - } + _this.createEmotionCache = Object(__WEBPACK_IMPORTED_MODULE_12_memoize_one__["a" /* default */])(_this.createEmotionCache); + return _this; + } + + Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_createClass__["a" /* default */])(NonceProvider, [{ + key: "render", + value: function render() { + var emotionCache = this.createEmotionCache(this.props.nonce); + return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_13__emotion_core__["a" /* CacheProvider */], { + value: emotionCache + }, this.props.children); + } + }]); + + return NonceProvider; +}(__WEBPACK_IMPORTED_MODULE_11_react__["Component"]); + +var index = Object(__WEBPACK_IMPORTED_MODULE_21__stateManager_2f2b6f5b_browser_esm_js__["a" /* m */])(__WEBPACK_IMPORTED_MODULE_17__Select_e1cf49ae_browser_esm_js__["a" /* S */]); + +/* harmony default export */ __webpack_exports__["a"] = (index); + + + +/***/ }), +/* 327 */ +/*!**************************************************************************************************!*\ + !*** ./node_modules/react-select/node_modules/@babel/runtime/helpers/objectWithoutProperties.js ***! + \**************************************************************************************************/ +/*! dynamic exports provided */ +/***/ (function(module, exports, __webpack_require__) { + +var objectWithoutPropertiesLoose = __webpack_require__(/*! ./objectWithoutPropertiesLoose.js */ 328); + +function _objectWithoutProperties(source, excluded) { + if (source == null) return {}; + var target = objectWithoutPropertiesLoose(source, excluded); + var key, i; + + if (Object.getOwnPropertySymbols) { + var sourceSymbolKeys = Object.getOwnPropertySymbols(source); + + for (i = 0; i < sourceSymbolKeys.length; i++) { + key = sourceSymbolKeys[i]; + if (excluded.indexOf(key) >= 0) continue; + if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; + target[key] = source[key]; + } + } + + return target; +} + +module.exports = _objectWithoutProperties; +module.exports["default"] = module.exports, module.exports.__esModule = true; + +/***/ }), +/* 328 */ +/*!*******************************************************************************************************!*\ + !*** ./node_modules/react-select/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js ***! + \*******************************************************************************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports) { + +function _objectWithoutPropertiesLoose(source, excluded) { + if (source == null) return {}; + var target = {}; + var sourceKeys = Object.keys(source); + var key, i; + + for (i = 0; i < sourceKeys.length; i++) { + key = sourceKeys[i]; + if (excluded.indexOf(key) >= 0) continue; + target[key] = source[key]; + } + + return target; +} + +module.exports = _objectWithoutPropertiesLoose; +module.exports["default"] = module.exports, module.exports.__esModule = true; + +/***/ }), +/* 329 */ +/*!**********************************************************************************!*\ + !*** ./node_modules/react-select/node_modules/@babel/runtime/helpers/extends.js ***! + \**********************************************************************************/ +/*! dynamic exports provided */ +/***/ (function(module, exports) { + +function _extends() { + module.exports = _extends = Object.assign || function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + + for (var key in source) { + if (Object.prototype.hasOwnProperty.call(source, key)) { + target[key] = source[key]; + } + } + } + + return target; + }; + + module.exports["default"] = module.exports, module.exports.__esModule = true; + return _extends.apply(this, arguments); +} + +module.exports = _extends; +module.exports["default"] = module.exports, module.exports.__esModule = true; + +/***/ }), +/* 330 */ +/*!****************************************************************************************!*\ + !*** ./node_modules/react-select/node_modules/@babel/runtime/helpers/slicedToArray.js ***! + \****************************************************************************************/ +/*! dynamic exports provided */ +/***/ (function(module, exports, __webpack_require__) { + +var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ 331); + +var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ 332); + +var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 167); + +var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ 333); + +function _slicedToArray(arr, i) { + return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest(); +} + +module.exports = _slicedToArray; +module.exports["default"] = module.exports, module.exports.__esModule = true; + +/***/ }), +/* 331 */ +/*!*****************************************************************************************!*\ + !*** ./node_modules/react-select/node_modules/@babel/runtime/helpers/arrayWithHoles.js ***! + \*****************************************************************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports) { + +function _arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; +} + +module.exports = _arrayWithHoles; +module.exports["default"] = module.exports, module.exports.__esModule = true; + +/***/ }), +/* 332 */ +/*!***********************************************************************************************!*\ + !*** ./node_modules/react-select/node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***! + \***********************************************************************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports) { + +function _iterableToArrayLimit(arr, i) { + if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; + var _arr = []; + var _n = true; + var _d = false; + var _e = undefined; + + try { + for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { + _arr.push(_s.value); + + if (i && _arr.length === i) break; + } + } catch (err) { + _d = true; + _e = err; + } finally { + try { + if (!_n && _i["return"] != null) _i["return"](); + } finally { + if (_d) throw _e; + } + } + + return _arr; +} + +module.exports = _iterableToArrayLimit; +module.exports["default"] = module.exports, module.exports.__esModule = true; + +/***/ }), +/* 333 */ +/*!******************************************************************************************!*\ + !*** ./node_modules/react-select/node_modules/@babel/runtime/helpers/nonIterableRest.js ***! + \******************************************************************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports) { + +function _nonIterableRest() { + throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); +} + +module.exports = _nonIterableRest; +module.exports["default"] = module.exports, module.exports.__esModule = true; + +/***/ }), +/* 334 */ +/*!********************************************************************************************!*\ + !*** ./node_modules/react-select/node_modules/@babel/runtime/helpers/toConsumableArray.js ***! + \********************************************************************************************/ +/*! dynamic exports provided */ +/***/ (function(module, exports, __webpack_require__) { + +var arrayWithoutHoles = __webpack_require__(/*! ./arrayWithoutHoles.js */ 335); + +var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ 336); + +var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 167); + +var nonIterableSpread = __webpack_require__(/*! ./nonIterableSpread.js */ 337); + +function _toConsumableArray(arr) { + return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread(); +} + +module.exports = _toConsumableArray; +module.exports["default"] = module.exports, module.exports.__esModule = true; + +/***/ }), +/* 335 */ +/*!********************************************************************************************!*\ + !*** ./node_modules/react-select/node_modules/@babel/runtime/helpers/arrayWithoutHoles.js ***! + \********************************************************************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { + +var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ 168); + +function _arrayWithoutHoles(arr) { + if (Array.isArray(arr)) return arrayLikeToArray(arr); +} + +module.exports = _arrayWithoutHoles; +module.exports["default"] = module.exports, module.exports.__esModule = true; + +/***/ }), +/* 336 */ +/*!******************************************************************************************!*\ + !*** ./node_modules/react-select/node_modules/@babel/runtime/helpers/iterableToArray.js ***! + \******************************************************************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports) { + +function _iterableToArray(iter) { + if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); +} + +module.exports = _iterableToArray; +module.exports["default"] = module.exports, module.exports.__esModule = true; + +/***/ }), +/* 337 */ +/*!********************************************************************************************!*\ + !*** ./node_modules/react-select/node_modules/@babel/runtime/helpers/nonIterableSpread.js ***! + \********************************************************************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports) { + +function _nonIterableSpread() { + throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); +} + +module.exports = _nonIterableSpread; +module.exports["default"] = module.exports, module.exports.__esModule = true; + +/***/ }), +/* 338 */ +/*!*****************************************************************************************!*\ + !*** ./node_modules/react-select/node_modules/@babel/runtime/helpers/defineProperty.js ***! + \*****************************************************************************************/ +/*! dynamic exports provided */ +/***/ (function(module, exports) { + +function _defineProperty(obj, key, value) { + if (key in obj) { + Object.defineProperty(obj, key, { + value: value, + enumerable: true, + configurable: true, + writable: true + }); + } else { + obj[key] = value; + } + + return obj; +} + +module.exports = _defineProperty; +module.exports["default"] = module.exports, module.exports.__esModule = true; - var _proto = NonceProvider.prototype; +/***/ }), +/* 339 */ +/*!************************************************************************************************!*\ + !*** ./node_modules/react-select/node_modules/@babel/runtime/helpers/assertThisInitialized.js ***! + \************************************************************************************************/ +/*! dynamic exports provided */ +/***/ (function(module, exports) { - _proto.render = function render() { - var emotionCache = this.createEmotionCache(this.props.nonce); - return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2__emotion_core__["a" /* CacheProvider */], { - value: emotionCache - }, this.props.children); - }; +function _assertThisInitialized(self) { + if (self === void 0) { + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + } - return NonceProvider; -}(__WEBPACK_IMPORTED_MODULE_0_react__["Component"]); + return self; +} -var index = __WEBPACK_IMPORTED_MODULE_10__stateManager_04f734a2_browser_esm_js__["a" /* m */](__WEBPACK_IMPORTED_MODULE_7__Select_9fdb8cd0_browser_esm_js__["a" /* S */]); +module.exports = _assertThisInitialized; +module.exports["default"] = module.exports, module.exports.__esModule = true; -/* harmony default export */ __webpack_exports__["a"] = (index); +/***/ }), +/* 340 */ +/*!*********************************************************************************************!*\ + !*** ./node_modules/react-select/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js ***! + \*********************************************************************************************/ +/*! exports provided: default */ +/*! exports used: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { +"use strict"; +/* harmony export (immutable) */ __webpack_exports__["a"] = _setPrototypeOf; +function _setPrototypeOf(o, p) { + _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { + o.__proto__ = p; + return o; + }; + return _setPrototypeOf(o, p); +} /***/ }), -/* 260 */ +/* 341 */ /*!********************************************************!*\ !*** ./node_modules/react/cjs/react.production.min.js ***! \********************************************************/ -/*! no static exports found */ +/*! dynamic exports provided */ /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -/** @license React v16.12.0 +/** @license React v16.14.0 * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. @@ -26966,35 +31032,35 @@ var index = __WEBPACK_IMPORTED_MODULE_10__stateManager_04f734a2_browser_esm_js__ * LICENSE file in the root directory of this source tree. */ -var h=__webpack_require__(/*! object-assign */ 27),n="function"===typeof Symbol&&Symbol.for,p=n?Symbol.for("react.element"):60103,q=n?Symbol.for("react.portal"):60106,r=n?Symbol.for("react.fragment"):60107,t=n?Symbol.for("react.strict_mode"):60108,u=n?Symbol.for("react.profiler"):60114,v=n?Symbol.for("react.provider"):60109,w=n?Symbol.for("react.context"):60110,x=n?Symbol.for("react.forward_ref"):60112,y=n?Symbol.for("react.suspense"):60113;n&&Symbol.for("react.suspense_list"); -var z=n?Symbol.for("react.memo"):60115,aa=n?Symbol.for("react.lazy"):60116;n&&Symbol.for("react.fundamental");n&&Symbol.for("react.responder");n&&Symbol.for("react.scope");var A="function"===typeof Symbol&&Symbol.iterator; -function B(a){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=1;cP.length&&P.push(a)} -function S(a,b,c,e){var d=typeof a;if("undefined"===d||"boolean"===d)a=null;var g=!1;if(null===a)g=!0;else switch(d){case "string":case "number":g=!0;break;case "object":switch(a.$$typeof){case p:case q:g=!0}}if(g)return c(e,a,""===b?"."+T(a,0):b),1;g=0;b=""===b?".":b+":";if(Array.isArray(a))for(var l=0;lQ.length&&Q.push(a)} +function T(a,b,c,e){var d=typeof a;if("undefined"===d||"boolean"===d)a=null;var g=!1;if(null===a)g=!0;else switch(d){case "string":case "number":g=!0;break;case "object":switch(a.$$typeof){case p:case q:g=!0}}if(g)return c(e,a,""===b?"."+U(a,0):b),1;g=0;b=""===b?".":b+":";if(Array.isArray(a))for(var k=0;k 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { - args[_key - 1] = arguments[_key]; +var BEFORE_SLASH_RE = /^(.*)[\\\/]/; +function describeComponentFrame (name, source, ownerName) { + var sourceInfo = ''; + + if (source) { + var path = source.fileName; + var fileName = path.replace(BEFORE_SLASH_RE, ''); + + { + // In DEV, include code for a common special case: + // prefer "folder/index.js" instead of just "index.js". + if (/^index\./.test(fileName)) { + var match = path.match(BEFORE_SLASH_RE); + + if (match) { + var pathBeforeSlash = match[1]; + + if (pathBeforeSlash) { + var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, ''); + fileName = folderName + '/' + fileName; + } + } + } } - var argIndex = 0; - var message = 'Warning: ' + format.replace(/%s/g, function () { - return args[argIndex++]; - }); + sourceInfo = ' (at ' + fileName + ':' + source.lineNumber + ')'; + } else if (ownerName) { + sourceInfo = ' (created by ' + ownerName + ')'; + } - if (typeof console !== 'undefined') { - console.warn(message); + return '\n in ' + (name || 'Unknown') + sourceInfo; +} + +var Resolved = 1; +function refineResolvedLazyComponent(lazyComponent) { + return lazyComponent._status === Resolved ? lazyComponent._result : null; +} + +function getWrappedName(outerType, innerType, wrapperName) { + var functionName = innerType.displayName || innerType.name || ''; + return outerType.displayName || (functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName); +} + +function getComponentName(type) { + if (type == null) { + // Host root, text node or just invalid type. + return null; + } + + { + if (typeof type.tag === 'number') { + error('Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.'); } + } - try { - // --- Welcome to debugging React --- - // This error was thrown as a convenience so that you can use this stack - // to find the callsite that caused this warning to fire. - throw new Error(message); - } catch (x) {} - }; + if (typeof type === 'function') { + return type.displayName || type.name || null; + } - lowPriorityWarningWithoutStack = function (condition, format) { - if (format === undefined) { - throw new Error('`lowPriorityWarningWithoutStack(condition, format, ...args)` requires a warning ' + 'message argument'); + if (typeof type === 'string') { + return type; + } + + switch (type) { + case REACT_FRAGMENT_TYPE: + return 'Fragment'; + + case REACT_PORTAL_TYPE: + return 'Portal'; + + case REACT_PROFILER_TYPE: + return "Profiler"; + + case REACT_STRICT_MODE_TYPE: + return 'StrictMode'; + + case REACT_SUSPENSE_TYPE: + return 'Suspense'; + + case REACT_SUSPENSE_LIST_TYPE: + return 'SuspenseList'; + } + + if (typeof type === 'object') { + switch (type.$$typeof) { + case REACT_CONTEXT_TYPE: + return 'Context.Consumer'; + + case REACT_PROVIDER_TYPE: + return 'Context.Provider'; + + case REACT_FORWARD_REF_TYPE: + return getWrappedName(type, type.render, 'ForwardRef'); + + case REACT_MEMO_TYPE: + return getComponentName(type.type); + + case REACT_BLOCK_TYPE: + return getComponentName(type.render); + + case REACT_LAZY_TYPE: + { + var thenable = type; + var resolvedThenable = refineResolvedLazyComponent(thenable); + + if (resolvedThenable) { + return getComponentName(resolvedThenable); + } + + break; + } } + } + + return null; +} + +var ReactDebugCurrentFrame = {}; +var currentlyValidatingElement = null; +function setCurrentlyValidatingElement(element) { + { + currentlyValidatingElement = element; + } +} + +{ + // Stack implementation injected by the current renderer. + ReactDebugCurrentFrame.getCurrentStack = null; + + ReactDebugCurrentFrame.getStackAddendum = function () { + var stack = ''; // Add an extra top frame while an element is being validated + + if (currentlyValidatingElement) { + var name = getComponentName(currentlyValidatingElement.type); + var owner = currentlyValidatingElement._owner; + stack += describeComponentFrame(name, currentlyValidatingElement._source, owner && getComponentName(owner.type)); + } // Delegate to the injected renderer-specific implementation - if (!condition) { - for (var _len2 = arguments.length, args = new Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) { - args[_key2 - 2] = arguments[_key2]; - } - printWarning.apply(void 0, [format].concat(args)); + var impl = ReactDebugCurrentFrame.getCurrentStack; + + if (impl) { + stack += impl() || ''; } + + return stack; }; } -var lowPriorityWarningWithoutStack$1 = lowPriorityWarningWithoutStack; - /** - * Similar to invariant but only logs a warning if the condition is not met. - * This can be used to log issues in development environments in critical - * paths. Removing the logging code for production environments will keep the - * same logic and follow the same code paths. + * Used by act() to track whether you're inside an act() scope. */ -var warningWithoutStack = function () {}; +var IsSomeRendererActing = { + current: false +}; + +var ReactSharedInternals = { + ReactCurrentDispatcher: ReactCurrentDispatcher, + ReactCurrentBatchConfig: ReactCurrentBatchConfig, + ReactCurrentOwner: ReactCurrentOwner, + IsSomeRendererActing: IsSomeRendererActing, + // Used by renderers to avoid bundling object-assign twice in UMD bundles: + assign: _assign +}; { - warningWithoutStack = function (condition, format) { - for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { - args[_key - 2] = arguments[_key]; - } + _assign(ReactSharedInternals, { + // These should not be included in production. + ReactDebugCurrentFrame: ReactDebugCurrentFrame, + // Shim for React DOM 16.0.0 which still destructured (but not used) this. + // TODO: remove in React 17.0. + ReactComponentTreeHook: {} + }); +} - if (format === undefined) { - throw new Error('`warningWithoutStack(condition, format, ...args)` requires a warning ' + 'message argument'); - } +// by calls to these methods by a Babel plugin. +// +// In PROD (or in packages without access to React internals), +// they are left as they are instead. - if (args.length > 8) { - // Check before the condition to catch violations early. - throw new Error('warningWithoutStack() currently supports at most 8 arguments.'); +function warn(format) { + { + for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + args[_key - 1] = arguments[_key]; } - if (condition) { - return; + printWarning('warn', format, args); + } +} +function error(format) { + { + for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { + args[_key2 - 1] = arguments[_key2]; } - if (typeof console !== 'undefined') { - var argsWithFormat = args.map(function (item) { - return '' + item; - }); - argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it - // breaks IE9: https://github.com/facebook/react/issues/13610 + printWarning('error', format, args); + } +} + +function printWarning(level, format, args) { + // When changing this logic, you might want to also + // update consoleWithStackDev.www.js as well. + { + var hasExistingStack = args.length > 0 && typeof args[args.length - 1] === 'string' && args[args.length - 1].indexOf('\n in') === 0; + + if (!hasExistingStack) { + var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame; + var stack = ReactDebugCurrentFrame.getStackAddendum(); - Function.prototype.apply.call(console.error, console, argsWithFormat); + if (stack !== '') { + format += '%s'; + args = args.concat([stack]); + } } + var argsWithFormat = args.map(function (item) { + return '' + item; + }); // Careful: RN currently depends on this prefix + + argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it + // breaks IE9: https://github.com/facebook/react/issues/13610 + // eslint-disable-next-line react-internal/no-production-logging + + Function.prototype.apply.call(console[level], console, argsWithFormat); + try { // --- Welcome to debugging React --- // This error was thrown as a convenience so that you can use this stack @@ -27173,11 +31386,9 @@ var warningWithoutStack = function () {}; }); throw new Error(message); } catch (x) {} - }; + } } -var warningWithoutStack$1 = warningWithoutStack; - var didWarnStateUpdateForUnmountedComponent = {}; function warnNoop(publicInstance, callerName) { @@ -27190,7 +31401,8 @@ function warnNoop(publicInstance, callerName) { return; } - warningWithoutStack$1(false, "Can't call %s on a component that is not yet mounted. " + 'This is a no-op, but it might indicate a bug in your application. ' + 'Instead, assign to `this.state` directly or define a `state = {};` ' + 'class property with the desired state in the %s component.', callerName, componentName); + error("Can't call %s on a component that is not yet mounted. " + 'This is a no-op, but it might indicate a bug in your application. ' + 'Instead, assign to `this.state` directly or define a `state = {};` ' + 'class property with the desired state in the %s component.', callerName, componentName); + didWarnStateUpdateForUnmountedComponent[warningKey] = true; } } @@ -27314,7 +31526,7 @@ Component.prototype.isReactComponent = {}; Component.prototype.setState = function (partialState, callback) { if (!(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null)) { { - throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables."); + throw Error( "setState(...): takes an object of state variables to update or a function which returns an object of state variables." ); } } @@ -27355,7 +31567,8 @@ Component.prototype.forceUpdate = function (callback) { var defineDeprecationWarning = function (methodName, info) { Object.defineProperty(Component.prototype, methodName, { get: function () { - lowPriorityWarningWithoutStack$1(false, '%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]); + warn('%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]); + return undefined; } }); @@ -27403,240 +31616,6 @@ function createRef() { return refObject; } -/** - * Keeps track of the current dispatcher. - */ -var ReactCurrentDispatcher = { - /** - * @internal - * @type {ReactComponent} - */ - current: null -}; - -/** - * Keeps track of the current batch's configuration such as how long an update - * should suspend for if it needs to. - */ -var ReactCurrentBatchConfig = { - suspense: null -}; - -/** - * Keeps track of the current owner. - * - * The current owner is the component who should own any components that are - * currently being constructed. - */ -var ReactCurrentOwner = { - /** - * @internal - * @type {ReactComponent} - */ - current: null -}; - -var BEFORE_SLASH_RE = /^(.*)[\\\/]/; -var describeComponentFrame = function (name, source, ownerName) { - var sourceInfo = ''; - - if (source) { - var path = source.fileName; - var fileName = path.replace(BEFORE_SLASH_RE, ''); - - { - // In DEV, include code for a common special case: - // prefer "folder/index.js" instead of just "index.js". - if (/^index\./.test(fileName)) { - var match = path.match(BEFORE_SLASH_RE); - - if (match) { - var pathBeforeSlash = match[1]; - - if (pathBeforeSlash) { - var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, ''); - fileName = folderName + '/' + fileName; - } - } - } - } - - sourceInfo = ' (at ' + fileName + ':' + source.lineNumber + ')'; - } else if (ownerName) { - sourceInfo = ' (created by ' + ownerName + ')'; - } - - return '\n in ' + (name || 'Unknown') + sourceInfo; -}; - -var Resolved = 1; - -function refineResolvedLazyComponent(lazyComponent) { - return lazyComponent._status === Resolved ? lazyComponent._result : null; -} - -function getWrappedName(outerType, innerType, wrapperName) { - var functionName = innerType.displayName || innerType.name || ''; - return outerType.displayName || (functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName); -} - -function getComponentName(type) { - if (type == null) { - // Host root, text node or just invalid type. - return null; - } - - { - if (typeof type.tag === 'number') { - warningWithoutStack$1(false, 'Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.'); - } - } - - if (typeof type === 'function') { - return type.displayName || type.name || null; - } - - if (typeof type === 'string') { - return type; - } - - switch (type) { - case REACT_FRAGMENT_TYPE: - return 'Fragment'; - - case REACT_PORTAL_TYPE: - return 'Portal'; - - case REACT_PROFILER_TYPE: - return "Profiler"; - - case REACT_STRICT_MODE_TYPE: - return 'StrictMode'; - - case REACT_SUSPENSE_TYPE: - return 'Suspense'; - - case REACT_SUSPENSE_LIST_TYPE: - return 'SuspenseList'; - } - - if (typeof type === 'object') { - switch (type.$$typeof) { - case REACT_CONTEXT_TYPE: - return 'Context.Consumer'; - - case REACT_PROVIDER_TYPE: - return 'Context.Provider'; - - case REACT_FORWARD_REF_TYPE: - return getWrappedName(type, type.render, 'ForwardRef'); - - case REACT_MEMO_TYPE: - return getComponentName(type.type); - - case REACT_LAZY_TYPE: - { - var thenable = type; - var resolvedThenable = refineResolvedLazyComponent(thenable); - - if (resolvedThenable) { - return getComponentName(resolvedThenable); - } - - break; - } - } - } - - return null; -} - -var ReactDebugCurrentFrame = {}; -var currentlyValidatingElement = null; -function setCurrentlyValidatingElement(element) { - { - currentlyValidatingElement = element; - } -} - -{ - // Stack implementation injected by the current renderer. - ReactDebugCurrentFrame.getCurrentStack = null; - - ReactDebugCurrentFrame.getStackAddendum = function () { - var stack = ''; // Add an extra top frame while an element is being validated - - if (currentlyValidatingElement) { - var name = getComponentName(currentlyValidatingElement.type); - var owner = currentlyValidatingElement._owner; - stack += describeComponentFrame(name, currentlyValidatingElement._source, owner && getComponentName(owner.type)); - } // Delegate to the injected renderer-specific implementation - - - var impl = ReactDebugCurrentFrame.getCurrentStack; - - if (impl) { - stack += impl() || ''; - } - - return stack; - }; -} - -/** - * Used by act() to track whether you're inside an act() scope. - */ -var IsSomeRendererActing = { - current: false -}; - -var ReactSharedInternals = { - ReactCurrentDispatcher: ReactCurrentDispatcher, - ReactCurrentBatchConfig: ReactCurrentBatchConfig, - ReactCurrentOwner: ReactCurrentOwner, - IsSomeRendererActing: IsSomeRendererActing, - // Used by renderers to avoid bundling object-assign twice in UMD bundles: - assign: _assign -}; - -{ - _assign(ReactSharedInternals, { - // These should not be included in production. - ReactDebugCurrentFrame: ReactDebugCurrentFrame, - // Shim for React DOM 16.0.0 which still destructured (but not used) this. - // TODO: remove in React 17.0. - ReactComponentTreeHook: {} - }); -} - -/** - * Similar to invariant but only logs a warning if the condition is not met. - * This can be used to log issues in development environments in critical - * paths. Removing the logging code for production environments will keep the - * same logic and follow the same code paths. - */ - -var warning = warningWithoutStack$1; - -{ - warning = function (condition, format) { - if (condition) { - return; - } - - var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame; - var stack = ReactDebugCurrentFrame.getStackAddendum(); // eslint-disable-next-line react-internal/warning-and-invariant-args - - for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { - args[_key - 2] = arguments[_key]; - } - - warningWithoutStack$1.apply(void 0, [false, format + '%s'].concat(args, [stack])); - }; -} - -var warning$1 = warning; - var hasOwnProperty = Object.prototype.hasOwnProperty; var RESERVED_PROPS = { key: true, @@ -27644,8 +31623,11 @@ var RESERVED_PROPS = { __self: true, __source: true }; -var specialPropKeyWarningShown; -var specialPropRefWarningShown; +var specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs; + +{ + didWarnAboutStringRefs = {}; +} function hasValidRef(config) { { @@ -27677,9 +31659,12 @@ function hasValidKey(config) { function defineKeyPropWarningGetter(props, displayName) { var warnAboutAccessingKey = function () { - if (!specialPropKeyWarningShown) { - specialPropKeyWarningShown = true; - warningWithoutStack$1(false, '%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName); + { + if (!specialPropKeyWarningShown) { + specialPropKeyWarningShown = true; + + error('%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName); + } } }; @@ -27692,9 +31677,12 @@ function defineKeyPropWarningGetter(props, displayName) { function defineRefPropWarningGetter(props, displayName) { var warnAboutAccessingRef = function () { - if (!specialPropRefWarningShown) { - specialPropRefWarningShown = true; - warningWithoutStack$1(false, '%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName); + { + if (!specialPropRefWarningShown) { + specialPropRefWarningShown = true; + + error('%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName); + } } }; @@ -27704,6 +31692,20 @@ function defineRefPropWarningGetter(props, displayName) { configurable: true }); } + +function warnIfStringRefCannotBeAutoConverted(config) { + { + if (typeof config.ref === 'string' && ReactCurrentOwner.current && config.__self && ReactCurrentOwner.current.stateNode !== config.__self) { + var componentName = getComponentName(ReactCurrentOwner.current.type); + + if (!didWarnAboutStringRefs[componentName]) { + error('Component "%s" contains the string ref "%s". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://fb.me/react-strict-mode-string-ref', getComponentName(ReactCurrentOwner.current.type), config.ref); + + didWarnAboutStringRefs[componentName] = true; + } + } + } +} /** * Factory method to create a new React element. This no longer adheres to * the class pattern, so do not use new to call it. Also, instanceof check @@ -27779,78 +31781,6 @@ var ReactElement = function (type, key, ref, self, source, owner, props) { return element; }; -/** - * https://github.com/reactjs/rfcs/pull/107 - * @param {*} type - * @param {object} props - * @param {string} key - */ - - - -/** - * https://github.com/reactjs/rfcs/pull/107 - * @param {*} type - * @param {object} props - * @param {string} key - */ - -function jsxDEV(type, config, maybeKey, source, self) { - var propName; // Reserved names are extracted - - var props = {}; - var key = null; - var ref = null; // Currently, key can be spread in as a prop. This causes a potential - // issue if key is also explicitly declared (ie.
    - // or
    ). We want to deprecate key spread, - // but as an intermediary step, we will use jsxDEV for everything except - //
    , because we aren't currently able to tell if - // key is explicitly declared to be undefined or not. - - if (maybeKey !== undefined) { - key = '' + maybeKey; - } - - if (hasValidKey(config)) { - key = '' + config.key; - } - - if (hasValidRef(config)) { - ref = config.ref; - } // Remaining properties are added to a new props object - - - for (propName in config) { - if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) { - props[propName] = config[propName]; - } - } // Resolve default props - - - if (type && type.defaultProps) { - var defaultProps = type.defaultProps; - - for (propName in defaultProps) { - if (props[propName] === undefined) { - props[propName] = defaultProps[propName]; - } - } - } - - if (key || ref) { - var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type; - - if (key) { - defineKeyPropWarningGetter(props, displayName); - } - - if (ref) { - defineRefPropWarningGetter(props, displayName); - } - } - - return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props); -} /** * Create and return a new ReactElement of the given type. * See https://reactjs.org/docs/react-api.html#createelement @@ -27868,6 +31798,10 @@ function createElement(type, config, children) { if (config != null) { if (hasValidRef(config)) { ref = config.ref; + + { + warnIfStringRefCannotBeAutoConverted(config); + } } if (hasValidKey(config)) { @@ -27933,12 +31867,6 @@ function createElement(type, config, children) { return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props); } -/** - * Return a function that produces ReactElements of a given type. - * See https://reactjs.org/docs/react-api.html#createfactory - */ - - function cloneAndReplaceKey(oldElement, newKey) { var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props); return newElement; @@ -27951,7 +31879,7 @@ function cloneAndReplaceKey(oldElement, newKey) { function cloneElement(element, config, children) { if (!!(element === null || element === undefined)) { { - throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + element + "."); + throw Error( "React.cloneElement(...): The argument must be a React element, but you passed " + element + "." ); } } @@ -28160,10 +32088,14 @@ function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext) var iteratorFn = getIteratorFn(children); if (typeof iteratorFn === 'function') { + { // Warn about using Maps as children if (iteratorFn === children.entries) { - !didWarnAboutMaps ? warning$1(false, 'Using Maps as children is unsupported and will likely yield ' + 'unexpected results. Convert it to a sequence/iterable of keyed ' + 'ReactElements instead.') : void 0; + if (!didWarnAboutMaps) { + warn('Using Maps as children is deprecated and will be removed in ' + 'a future major release. Consider converting children to ' + 'an array of keyed ReactElements instead.'); + } + didWarnAboutMaps = true; } } @@ -28188,7 +32120,7 @@ function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext) { { - throw Error("Objects are not valid as a React child (found: " + (childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString) + ")." + addendum); + throw Error( "Objects are not valid as a React child (found: " + (childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString) + ")." + addendum ); } } } @@ -28378,7 +32310,7 @@ function toArray(children) { function onlyChild(children) { if (!isValidElement(children)) { { - throw Error("React.Children.only expected to receive a single React element child."); + throw Error( "React.Children.only expected to receive a single React element child." ); } } @@ -28390,7 +32322,9 @@ function createContext(defaultValue, calculateChangedBits) { calculateChangedBits = null; } else { { - !(calculateChangedBits === null || typeof calculateChangedBits === 'function') ? warningWithoutStack$1(false, 'createContext: Expected the optional second argument to be a ' + 'function. Instead received: %s', calculateChangedBits) : void 0; + if (calculateChangedBits !== null && typeof calculateChangedBits !== 'function') { + error('createContext: Expected the optional second argument to be a ' + 'function. Instead received: %s', calculateChangedBits); + } } } @@ -28433,7 +32367,8 @@ function createContext(defaultValue, calculateChangedBits) { get: function () { if (!hasWarnedAboutUsingConsumerProvider) { hasWarnedAboutUsingConsumerProvider = true; - warning$1(false, 'Rendering is not supported and will be removed in ' + 'a future major release. Did you mean to render instead?'); + + error('Rendering is not supported and will be removed in ' + 'a future major release. Did you mean to render instead?'); } return context.Provider; @@ -28470,7 +32405,8 @@ function createContext(defaultValue, calculateChangedBits) { get: function () { if (!hasWarnedAboutUsingNestedContextConsumers) { hasWarnedAboutUsingNestedContextConsumers = true; - warning$1(false, 'Rendering is not supported and will be removed in ' + 'a future major release. Did you mean to render instead?'); + + error('Rendering is not supported and will be removed in ' + 'a future major release. Did you mean to render instead?'); } return context.Consumer; @@ -28509,7 +32445,8 @@ function lazy(ctor) { return defaultProps; }, set: function (newDefaultProps) { - warning$1(false, 'React.lazy(...): It is not supported to assign `defaultProps` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.'); + error('React.lazy(...): It is not supported to assign `defaultProps` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.'); + defaultProps = newDefaultProps; // Match production behavior more closely: Object.defineProperty(lazyType, 'defaultProps', { @@ -28523,7 +32460,8 @@ function lazy(ctor) { return propTypes; }, set: function (newPropTypes) { - warning$1(false, 'React.lazy(...): It is not supported to assign `propTypes` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.'); + error('React.lazy(...): It is not supported to assign `propTypes` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.'); + propTypes = newPropTypes; // Match production behavior more closely: Object.defineProperty(lazyType, 'propTypes', { @@ -28540,16 +32478,19 @@ function lazy(ctor) { function forwardRef(render) { { if (render != null && render.$$typeof === REACT_MEMO_TYPE) { - warningWithoutStack$1(false, 'forwardRef requires a render function but received a `memo` ' + 'component. Instead of forwardRef(memo(...)), use ' + 'memo(forwardRef(...)).'); + error('forwardRef requires a render function but received a `memo` ' + 'component. Instead of forwardRef(memo(...)), use ' + 'memo(forwardRef(...)).'); } else if (typeof render !== 'function') { - warningWithoutStack$1(false, 'forwardRef requires a render function but was given %s.', render === null ? 'null' : typeof render); + error('forwardRef requires a render function but was given %s.', render === null ? 'null' : typeof render); } else { - !( // Do not warn for 0 arguments because it could be due to usage of the 'arguments' object - render.length === 0 || render.length === 2) ? warningWithoutStack$1(false, 'forwardRef render functions accept exactly two parameters: props and ref. %s', render.length === 1 ? 'Did you forget to use the ref parameter?' : 'Any additional parameter will be undefined.') : void 0; + if (render.length !== 0 && render.length !== 2) { + error('forwardRef render functions accept exactly two parameters: props and ref. %s', render.length === 1 ? 'Did you forget to use the ref parameter?' : 'Any additional parameter will be undefined.'); + } } if (render != null) { - !(render.defaultProps == null && render.propTypes == null) ? warningWithoutStack$1(false, 'forwardRef render functions do not support propTypes or defaultProps. ' + 'Did you accidentally pass a React component?') : void 0; + if (render.defaultProps != null || render.propTypes != null) { + error('forwardRef render functions do not support propTypes or defaultProps. ' + 'Did you accidentally pass a React component?'); + } } } @@ -28561,13 +32502,13 @@ function forwardRef(render) { function isValidElementType(type) { return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill. - type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE); + type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE); } function memo(type, compare) { { if (!isValidElementType(type)) { - warningWithoutStack$1(false, 'memo: The first argument must be a component. Instead ' + 'received: %s', type === null ? 'null' : typeof type); + error('memo: The first argument must be a component. Instead ' + 'received: %s', type === null ? 'null' : typeof type); } } @@ -28583,7 +32524,7 @@ function resolveDispatcher() { if (!(dispatcher !== null)) { { - throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem."); + throw Error( "Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem." ); } } @@ -28594,16 +32535,19 @@ function useContext(Context, unstable_observedBits) { var dispatcher = resolveDispatcher(); { - !(unstable_observedBits === undefined) ? warning$1(false, 'useContext() second argument is reserved for future ' + 'use in React. Passing it is not supported. ' + 'You passed: %s.%s', unstable_observedBits, typeof unstable_observedBits === 'number' && Array.isArray(arguments[2]) ? '\n\nDid you call array.map(useContext)? ' + 'Calling Hooks inside a loop is not supported. ' + 'Learn more at https://fb.me/rules-of-hooks' : '') : void 0; // TODO: add a more generic warning for invalid values. + if (unstable_observedBits !== undefined) { + error('useContext() second argument is reserved for future ' + 'use in React. Passing it is not supported. ' + 'You passed: %s.%s', unstable_observedBits, typeof unstable_observedBits === 'number' && Array.isArray(arguments[2]) ? '\n\nDid you call array.map(useContext)? ' + 'Calling Hooks inside a loop is not supported. ' + 'Learn more at https://fb.me/rules-of-hooks' : ''); + } // TODO: add a more generic warning for invalid values. + if (Context._context !== undefined) { var realContext = Context._context; // Don't deduplicate because this legitimately causes bugs // and nobody should be using this in existing code. if (realContext.Consumer === Context) { - warning$1(false, 'Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be ' + 'removed in a future major release. Did you mean to call useContext(Context) instead?'); + error('Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be ' + 'removed in a future major release. Did you mean to call useContext(Context) instead?'); } else if (realContext.Provider === Context) { - warning$1(false, 'Calling useContext(Context.Provider) is not supported. ' + 'Did you mean to call useContext(Context) instead?'); + error('Calling useContext(Context.Provider) is not supported. ' + 'Did you mean to call useContext(Context) instead?'); } } } @@ -28622,25 +32566,25 @@ function useRef(initialValue) { var dispatcher = resolveDispatcher(); return dispatcher.useRef(initialValue); } -function useEffect(create, inputs) { +function useEffect(create, deps) { var dispatcher = resolveDispatcher(); - return dispatcher.useEffect(create, inputs); + return dispatcher.useEffect(create, deps); } -function useLayoutEffect(create, inputs) { +function useLayoutEffect(create, deps) { var dispatcher = resolveDispatcher(); - return dispatcher.useLayoutEffect(create, inputs); + return dispatcher.useLayoutEffect(create, deps); } -function useCallback(callback, inputs) { +function useCallback(callback, deps) { var dispatcher = resolveDispatcher(); - return dispatcher.useCallback(callback, inputs); + return dispatcher.useCallback(callback, deps); } -function useMemo(create, inputs) { +function useMemo(create, deps) { var dispatcher = resolveDispatcher(); - return dispatcher.useMemo(create, inputs); + return dispatcher.useMemo(create, deps); } -function useImperativeHandle(ref, create, inputs) { +function useImperativeHandle(ref, create, deps) { var dispatcher = resolveDispatcher(); - return dispatcher.useImperativeHandle(ref, create, inputs); + return dispatcher.useImperativeHandle(ref, create, deps); } function useDebugValue(value, formatterFn) { { @@ -28648,53 +32592,13 @@ function useDebugValue(value, formatterFn) { return dispatcher.useDebugValue(value, formatterFn); } } -var emptyObject$1 = {}; -function useResponder(responder, listenerProps) { - var dispatcher = resolveDispatcher(); - - { - if (responder == null || responder.$$typeof !== REACT_RESPONDER_TYPE) { - warning$1(false, 'useResponder: invalid first argument. Expected an event responder, but instead got %s', responder); - return; - } - } - - return dispatcher.useResponder(responder, listenerProps || emptyObject$1); -} -function useTransition(config) { - var dispatcher = resolveDispatcher(); - return dispatcher.useTransition(config); -} -function useDeferredValue(value, config) { - var dispatcher = resolveDispatcher(); - return dispatcher.useDeferredValue(value, config); -} -function withSuspenseConfig(scope, config) { - var previousConfig = ReactCurrentBatchConfig.suspense; - ReactCurrentBatchConfig.suspense = config === undefined ? null : config; - - try { - scope(); - } finally { - ReactCurrentBatchConfig.suspense = previousConfig; - } -} - -/** - * ReactElementValidator provides a wrapper around a element factory - * which validates the props passed to the element. This is intended to be - * used only in DEV and could be replaced by a static type checker for languages - * that support it. - */ var propTypesMisspellWarningShown; { propTypesMisspellWarningShown = false; } -var hasOwnProperty$1 = Object.prototype.hasOwnProperty; - function getDeclarationErrorAddendum() { if (ReactCurrentOwner.current) { var name = getComponentName(ReactCurrentOwner.current.type); @@ -28785,7 +32689,7 @@ function validateExplicitKey(element, parentType) { setCurrentlyValidatingElement(element); { - warning$1(false, 'Each child in a list should have a unique "key" prop.' + '%s%s See https://fb.me/react-warning-keys for more information.', currentComponentErrorInfo, childOwner); + error('Each child in a list should have a unique "key" prop.' + '%s%s See https://fb.me/react-warning-keys for more information.', currentComponentErrorInfo, childOwner); } setCurrentlyValidatingElement(null); @@ -28847,36 +32751,39 @@ function validateChildKeys(node, parentType) { function validatePropTypes(element) { - var type = element.type; + { + var type = element.type; - if (type === null || type === undefined || typeof type === 'string') { - return; - } + if (type === null || type === undefined || typeof type === 'string') { + return; + } - var name = getComponentName(type); - var propTypes; + var name = getComponentName(type); + var propTypes; - if (typeof type === 'function') { - propTypes = type.propTypes; - } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here. - // Inner props are checked in the reconciler. - type.$$typeof === REACT_MEMO_TYPE)) { - propTypes = type.propTypes; - } else { - return; - } + if (typeof type === 'function') { + propTypes = type.propTypes; + } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here. + // Inner props are checked in the reconciler. + type.$$typeof === REACT_MEMO_TYPE)) { + propTypes = type.propTypes; + } else { + return; + } - if (propTypes) { - setCurrentlyValidatingElement(element); - checkPropTypes(propTypes, element.props, 'prop', name, ReactDebugCurrentFrame.getStackAddendum); - setCurrentlyValidatingElement(null); - } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) { - propTypesMisspellWarningShown = true; - warningWithoutStack$1(false, 'Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', name || 'Unknown'); - } + if (propTypes) { + setCurrentlyValidatingElement(element); + checkPropTypes(propTypes, element.props, 'prop', name, ReactDebugCurrentFrame.getStackAddendum); + setCurrentlyValidatingElement(null); + } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) { + propTypesMisspellWarningShown = true; + + error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', name || 'Unknown'); + } - if (typeof type.getDefaultProps === 'function') { - !type.getDefaultProps.isReactClassApproved ? warningWithoutStack$1(false, 'getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.') : void 0; + if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) { + error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.'); + } } } /** @@ -28886,115 +32793,26 @@ function validatePropTypes(element) { function validateFragmentProps(fragment) { - setCurrentlyValidatingElement(fragment); - var keys = Object.keys(fragment.props); - - for (var i = 0; i < keys.length; i++) { - var key = keys[i]; - - if (key !== 'children' && key !== 'key') { - warning$1(false, 'Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key); - break; - } - } - - if (fragment.ref !== null) { - warning$1(false, 'Invalid attribute `ref` supplied to `React.Fragment`.'); - } - - setCurrentlyValidatingElement(null); -} - -function jsxWithValidation(type, props, key, isStaticChildren, source, self) { - var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to - // succeed and there will likely be errors in render. - - if (!validType) { - var info = ''; - - if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) { - info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and named imports."; - } - - var sourceInfo = getSourceInfoErrorAddendum(source); - - if (sourceInfo) { - info += sourceInfo; - } else { - info += getDeclarationErrorAddendum(); - } - - var typeString; - - if (type === null) { - typeString = 'null'; - } else if (Array.isArray(type)) { - typeString = 'array'; - } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) { - typeString = "<" + (getComponentName(type.type) || 'Unknown') + " />"; - info = ' Did you accidentally export a JSX literal instead of a component?'; - } else { - typeString = typeof type; - } - - warning$1(false, 'React.jsx: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info); - } - - var element = jsxDEV(type, props, key, source, self); // The result can be nullish if a mock or a custom function is used. - // TODO: Drop this when these are no longer allowed as the type argument. - - if (element == null) { - return element; - } // Skip key warning if the type isn't valid since our key validation logic - // doesn't expect a non-string/function type and can throw confusing errors. - // We don't want exception behavior to differ between dev and prod. - // (Rendering will throw with a helpful message and as soon as the type is - // fixed, the key warnings will appear.) + { + setCurrentlyValidatingElement(fragment); + var keys = Object.keys(fragment.props); + for (var i = 0; i < keys.length; i++) { + var key = keys[i]; - if (validType) { - var children = props.children; + if (key !== 'children' && key !== 'key') { + error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key); - if (children !== undefined) { - if (isStaticChildren) { - if (Array.isArray(children)) { - for (var i = 0; i < children.length; i++) { - validateChildKeys(children[i], type); - } - - if (Object.freeze) { - Object.freeze(children); - } - } else { - warning$1(false, 'React.jsx: Static children should always be an array. ' + 'You are likely explicitly calling React.jsxs or React.jsxDEV. ' + 'Use the Babel transform instead.'); - } - } else { - validateChildKeys(children, type); + break; } } - } - if (hasOwnProperty$1.call(props, 'key')) { - warning$1(false, 'React.jsx: Spreading a key to JSX is a deprecated pattern. ' + 'Explicitly pass a key after spreading props in your JSX call. ' + 'E.g. '); - } + if (fragment.ref !== null) { + error('Invalid attribute `ref` supplied to `React.Fragment`.'); + } - if (type === REACT_FRAGMENT_TYPE) { - validateFragmentProps(element); - } else { - validatePropTypes(element); + setCurrentlyValidatingElement(null); } - - return element; -} // These two functions exist to still get child warnings in dev -// even with the prod transform. This means that jsxDEV is purely -// opt-in behavior for better messages but that we won't stop -// giving you warnings if you use production apis. - -function jsxWithValidationStatic(type, props, key) { - return jsxWithValidation(type, props, key, true); -} -function jsxWithValidationDynamic(type, props, key) { - return jsxWithValidation(type, props, key, false); } function createElementWithValidation(type, props, children) { var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to @@ -29028,7 +32846,9 @@ function createElementWithValidation(type, props, children) { typeString = typeof type; } - warning$1(false, 'React.createElement: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info); + { + error('React.createElement: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info); + } } var element = createElement.apply(this, arguments); // The result can be nullish if a mock or a custom function is used. @@ -29057,15 +32877,24 @@ function createElementWithValidation(type, props, children) { return element; } +var didWarnAboutDeprecatedCreateFactory = false; function createFactoryWithValidation(type) { var validatedFactory = createElementWithValidation.bind(null, type); - validatedFactory.type = type; // Legacy hook: remove it + validatedFactory.type = type; { + if (!didWarnAboutDeprecatedCreateFactory) { + didWarnAboutDeprecatedCreateFactory = true; + + warn('React.createFactory() is deprecated and will be removed in ' + 'a future major release. Consider using JSX ' + 'or use React.createElement() directly instead.'); + } // Legacy hook: remove it + + Object.defineProperty(validatedFactory, 'type', { enumerable: false, get: function () { - lowPriorityWarningWithoutStack$1(false, 'Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.'); + warn('Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.'); + Object.defineProperty(this, 'type', { value: type }); @@ -29087,10 +32916,7 @@ function cloneElementWithValidation(element, props, children) { return newElement; } -var hasBadMapPolyfill; - { - hasBadMapPolyfill = false; try { var frozenObject = Object.freeze({}); @@ -29102,240 +32928,94 @@ var hasBadMapPolyfill; testMap.set(0, 0); testSet.add(0); } catch (e) { - // TODO: Consider warning about bad polyfills - hasBadMapPolyfill = true; } } -function createFundamentalComponent(impl) { - // We use responder as a Map key later on. When we have a bad - // polyfill, then we can't use it as a key as the polyfill tries - // to add a property to the object. - if (true && !hasBadMapPolyfill) { - Object.freeze(impl); - } - - var fundamantalComponent = { - $$typeof: REACT_FUNDAMENTAL_TYPE, - impl: impl - }; - - { - Object.freeze(fundamantalComponent); - } - - return fundamantalComponent; -} - -function createEventResponder(displayName, responderConfig) { - var getInitialState = responderConfig.getInitialState, - onEvent = responderConfig.onEvent, - onMount = responderConfig.onMount, - onUnmount = responderConfig.onUnmount, - onRootEvent = responderConfig.onRootEvent, - rootEventTypes = responderConfig.rootEventTypes, - targetEventTypes = responderConfig.targetEventTypes, - targetPortalPropagation = responderConfig.targetPortalPropagation; - var eventResponder = { - $$typeof: REACT_RESPONDER_TYPE, - displayName: displayName, - getInitialState: getInitialState || null, - onEvent: onEvent || null, - onMount: onMount || null, - onRootEvent: onRootEvent || null, - onUnmount: onUnmount || null, - rootEventTypes: rootEventTypes || null, - targetEventTypes: targetEventTypes || null, - targetPortalPropagation: targetPortalPropagation || false - }; // We use responder as a Map key later on. When we have a bad - // polyfill, then we can't use it as a key as the polyfill tries - // to add a property to the object. - - if (true && !hasBadMapPolyfill) { - Object.freeze(eventResponder); - } - - return eventResponder; -} - -function createScope() { - var scopeComponent = { - $$typeof: REACT_SCOPE_TYPE - }; - - { - Object.freeze(scopeComponent); - } - - return scopeComponent; -} - -// Helps identify side effects in render-phase lifecycle hooks and setState -// reducers by double invoking them in Strict Mode. - - // To preserve the "Pause on caught exceptions" behavior of the debugger, we -// replay the begin phase of a failed component inside invokeGuardedCallback. - - // Warn about deprecated, async-unsafe lifecycles; relates to RFC #6: - - // Gather advanced timing metrics for Profiler subtrees. - - // Trace which interactions trigger each commit. - - // SSR experiments - - - // Only used in www builds. - - // Only used in www builds. - - // Disable javascript: URL strings in href for XSS protection. - - // React Fire: prevent the value and checked attributes from syncing -// with their related DOM properties - - // These APIs will no longer be "unstable" in the upcoming 16.7 release, -// Control this behavior with a flag to support 16.6 minor releases in the meanwhile. - -var exposeConcurrentModeAPIs = false; - // Experimental React Flare event system and event components support. - -var enableFlareAPI = false; // Experimental Host Component support. - -var enableFundamentalAPI = false; // Experimental Scope support. - -var enableScopeAPI = false; // New API for JSX transforms to target - https://github.com/reactjs/rfcs/pull/107 - -var enableJSXTransformAPI = false; // We will enforce mocking scheduler with scheduler/unstable_mock at some point. (v17?) -// Till then, we warn about the missing mock, but still fallback to a legacy mode compatible version - - // For tests, we flush suspense fallbacks in an act scope; -// *except* in some of our own tests, where we test incremental loading states. - - // Add a callback property to suspense to notify which promises are currently -// in the update queue. This allows reporting and tracing of what is causing -// the user to see a loading state. -// Also allows hydration callbacks to fire when a dehydrated boundary gets -// hydrated or deleted. - - // Part of the simplification of React.createElement so we can eventually move -// from React.createElement to React.jsx -// https://github.com/reactjs/rfcs/blob/createlement-rfc/text/0000-create-element-changes.md - - - - - - // Flag to turn event.target and event.currentTarget in ReactNative from a reactTag to a component instance - -var React = { - Children: { - map: mapChildren, - forEach: forEachChildren, - count: countChildren, - toArray: toArray, - only: onlyChild - }, - createRef: createRef, - Component: Component, - PureComponent: PureComponent, - createContext: createContext, - forwardRef: forwardRef, - lazy: lazy, - memo: memo, - useCallback: useCallback, - useContext: useContext, - useEffect: useEffect, - useImperativeHandle: useImperativeHandle, - useDebugValue: useDebugValue, - useLayoutEffect: useLayoutEffect, - useMemo: useMemo, - useReducer: useReducer, - useRef: useRef, - useState: useState, - Fragment: REACT_FRAGMENT_TYPE, - Profiler: REACT_PROFILER_TYPE, - StrictMode: REACT_STRICT_MODE_TYPE, - Suspense: REACT_SUSPENSE_TYPE, - createElement: createElementWithValidation, - cloneElement: cloneElementWithValidation, - createFactory: createFactoryWithValidation, - isValidElement: isValidElement, - version: ReactVersion, - __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: ReactSharedInternals +var createElement$1 = createElementWithValidation ; +var cloneElement$1 = cloneElementWithValidation ; +var createFactory = createFactoryWithValidation ; +var Children = { + map: mapChildren, + forEach: forEachChildren, + count: countChildren, + toArray: toArray, + only: onlyChild }; -if (exposeConcurrentModeAPIs) { - React.useTransition = useTransition; - React.useDeferredValue = useDeferredValue; - React.SuspenseList = REACT_SUSPENSE_LIST_TYPE; - React.unstable_withSuspenseConfig = withSuspenseConfig; -} - -if (enableFlareAPI) { - React.unstable_useResponder = useResponder; - React.unstable_createResponder = createEventResponder; -} - -if (enableFundamentalAPI) { - React.unstable_createFundamental = createFundamentalComponent; -} - -if (enableScopeAPI) { - React.unstable_createScope = createScope; -} // Note: some APIs are added with feature flags. -// Make sure that stable builds for open source -// don't modify the React object to avoid deopts. -// Also let's not expose their names in stable builds. - - -if (enableJSXTransformAPI) { - { - React.jsxDEV = jsxWithValidation; - React.jsx = jsxWithValidationDynamic; - React.jsxs = jsxWithValidationStatic; - } -} - - - -var React$2 = Object.freeze({ - default: React -}); - -var React$3 = ( React$2 && React ) || React$2; - -// TODO: decide on the top-level export form. -// This is hacky but makes it work with both Rollup and Jest. - - -var react = React$3.default || React$3; - -module.exports = react; +exports.Children = Children; +exports.Component = Component; +exports.Fragment = REACT_FRAGMENT_TYPE; +exports.Profiler = REACT_PROFILER_TYPE; +exports.PureComponent = PureComponent; +exports.StrictMode = REACT_STRICT_MODE_TYPE; +exports.Suspense = REACT_SUSPENSE_TYPE; +exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals; +exports.cloneElement = cloneElement$1; +exports.createContext = createContext; +exports.createElement = createElement$1; +exports.createFactory = createFactory; +exports.createRef = createRef; +exports.forwardRef = forwardRef; +exports.isValidElement = isValidElement; +exports.lazy = lazy; +exports.memo = memo; +exports.useCallback = useCallback; +exports.useContext = useContext; +exports.useDebugValue = useDebugValue; +exports.useEffect = useEffect; +exports.useImperativeHandle = useImperativeHandle; +exports.useLayoutEffect = useLayoutEffect; +exports.useMemo = useMemo; +exports.useReducer = useReducer; +exports.useRef = useRef; +exports.useState = useState; +exports.version = ReactVersion; })(); } -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(/*! ./../../process/browser.js */ 3))) +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(/*! ./../../process/browser.js */ 6))) /***/ }), -/* 262 */ -/*!*****************************************************************************************!*\ - !*** ./node_modules/@emotion/core/node_modules/@babel/runtime/helpers/inheritsLoose.js ***! - \*****************************************************************************************/ -/*! no static exports found */ +/* 343 */ +/*!*********************************************************************************************!*\ + !*** ./node_modules/@emotion/core/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js ***! + \*********************************************************************************************/ +/*! exports provided: default */ /*! exports used: default */ -/***/ (function(module, exports) { +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (immutable) */ __webpack_exports__["a"] = _inheritsLoose; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__setPrototypeOf_js__ = __webpack_require__(/*! ./setPrototypeOf.js */ 344); function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; - subClass.__proto__ = superClass; + Object(__WEBPACK_IMPORTED_MODULE_0__setPrototypeOf_js__["a" /* default */])(subClass, superClass); } -module.exports = _inheritsLoose; +/***/ }), +/* 344 */ +/*!**********************************************************************************************!*\ + !*** ./node_modules/@emotion/core/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js ***! + \**********************************************************************************************/ +/*! exports provided: default */ +/*! exports used: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (immutable) */ __webpack_exports__["a"] = _setPrototypeOf; +function _setPrototypeOf(o, p) { + _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { + o.__proto__ = p; + return o; + }; + + return _setPrototypeOf(o, p); +} /***/ }), -/* 263 */ +/* 345 */ /*!*****************************************************************!*\ !*** ./node_modules/@emotion/stylis/dist/stylis.browser.esm.js ***! \*****************************************************************/ @@ -29962,7 +33642,7 @@ function stylis_min (W) { /***/ }), -/* 264 */ +/* 346 */ /*!*****************************************************************************!*\ !*** ./node_modules/@emotion/weak-memoize/dist/weak-memoize.browser.esm.js ***! \*****************************************************************************/ @@ -29989,61 +33669,48 @@ var weakMemoize = function weakMemoize(func) { /***/ }), -/* 265 */ -/*!***************************************************************!*\ - !*** ./node_modules/@emotion/utils/dist/utils.browser.esm.js ***! - \***************************************************************/ -/*! exports provided: getRegisteredStyles, insertStyles */ -/*! exports used: getRegisteredStyles, insertStyles */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getRegisteredStyles; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return insertStyles; }); -var isBrowser = "object" !== 'undefined'; -function getRegisteredStyles(registered, registeredStyles, classNames) { - var rawClassName = ''; - classNames.split(' ').forEach(function (className) { - if (registered[className] !== undefined) { - registeredStyles.push(registered[className]); - } else { - rawClassName += className + " "; - } - }); - return rawClassName; -} -var insertStyles = function insertStyles(cache, serialized, isStringTag) { - var className = cache.key + "-" + serialized.name; +/* 347 */ +/*!*****************************************************************************************!*\ + !*** ./node_modules/@emotion/core/node_modules/@babel/runtime/helpers/inheritsLoose.js ***! + \*****************************************************************************************/ +/*! dynamic exports provided */ +/***/ (function(module, exports, __webpack_require__) { - if ( // we only need to add the styles to the registered cache if the - // class name could be used further down - // the tree but if it's a string tag, we know it won't - // so we don't have to add it to registered cache. - // this improves memory usage since we can avoid storing the whole style string - (isStringTag === false || // we need to always store it if we're in compat mode and - // in node since emotion-server relies on whether a style is in - // the registered cache to know whether a style is global or not - // also, note that this check will be dead code eliminated in the browser - isBrowser === false && cache.compat !== undefined) && cache.registered[className] === undefined) { - cache.registered[className] = serialized.styles; - } +var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ 348); - if (cache.inserted[serialized.name] === undefined) { - var current = serialized; +function _inheritsLoose(subClass, superClass) { + subClass.prototype = Object.create(superClass.prototype); + subClass.prototype.constructor = subClass; + setPrototypeOf(subClass, superClass); +} - do { - var maybeStyles = cache.insert("." + className, current, cache.sheet, true); +module.exports = _inheritsLoose; +module.exports["default"] = module.exports, module.exports.__esModule = true; - current = current.next; - } while (current !== undefined); - } -}; +/***/ }), +/* 348 */ +/*!******************************************************************************************!*\ + !*** ./node_modules/@emotion/core/node_modules/@babel/runtime/helpers/setPrototypeOf.js ***! + \******************************************************************************************/ +/*! dynamic exports provided */ +/*! all exports used */ +/***/ (function(module, exports) { +function _setPrototypeOf(o, p) { + module.exports = _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { + o.__proto__ = p; + return o; + }; + module.exports["default"] = module.exports, module.exports.__esModule = true; + return _setPrototypeOf(o, p); +} +module.exports = _setPrototypeOf; +module.exports["default"] = module.exports, module.exports.__esModule = true; /***/ }), -/* 266 */ +/* 349 */ /*!*************************************************************!*\ !*** ./node_modules/@emotion/hash/dist/hash.browser.esm.js ***! \*************************************************************/ @@ -30110,7 +33777,7 @@ function murmur2(str) { /***/ }), -/* 267 */ +/* 350 */ /*!*********************************************************************!*\ !*** ./node_modules/@emotion/unitless/dist/unitless.browser.esm.js ***! \*********************************************************************/ @@ -30172,7 +33839,7 @@ var unitlessKeys = { /***/ }), -/* 268 */ +/* 351 */ /*!*******************************************************************!*\ !*** ./node_modules/@emotion/memoize/dist/memoize.browser.esm.js ***! \*******************************************************************/ @@ -30193,16 +33860,16 @@ function memoize(fn) { /***/ }), -/* 269 */ +/* 352 */ /*!****************************************************************!*\ !*** ./node_modules/react-dom/cjs/react-dom.production.min.js ***! \****************************************************************/ -/*! no static exports found */ +/*! dynamic exports provided */ /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -/** @license React v16.12.0 +/** @license React v16.14.0 * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. @@ -30214,297 +33881,299 @@ function memoize(fn) { /* Modernizr 3.0.0pre (Custom Build) | MIT */ -var aa=__webpack_require__(/*! react */ 6),n=__webpack_require__(/*! object-assign */ 27),q=__webpack_require__(/*! scheduler */ 135);function u(a){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=1;cb}return!1}function B(a,b,c,d,e,f){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=d;this.attributeNamespace=e;this.mustUseProperty=c;this.propertyName=a;this.type=b;this.sanitizeURL=f}var D={}; -"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){D[a]=new B(a,0,!1,a,null,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){var b=a[0];D[b]=new B(b,1,!1,a[1],null,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(a){D[a]=new B(a,2,!1,a.toLowerCase(),null,!1)}); -["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){D[a]=new B(a,2,!1,a,null,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a){D[a]=new B(a,3,!1,a.toLowerCase(),null,!1)}); -["checked","multiple","muted","selected"].forEach(function(a){D[a]=new B(a,3,!0,a,null,!1)});["capture","download"].forEach(function(a){D[a]=new B(a,4,!1,a,null,!1)});["cols","rows","size","span"].forEach(function(a){D[a]=new B(a,6,!1,a,null,!1)});["rowSpan","start"].forEach(function(a){D[a]=new B(a,5,!1,a.toLowerCase(),null,!1)});var sb=/[\-:]([a-z])/g;function tb(a){return a[1].toUpperCase()} -"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a){var b=a.replace(sb, -tb);D[b]=new B(b,1,!1,a,null,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){var b=a.replace(sb,tb);D[b]=new B(b,1,!1,a,"http://www.w3.org/1999/xlink",!1)});["xml:base","xml:lang","xml:space"].forEach(function(a){var b=a.replace(sb,tb);D[b]=new B(b,1,!1,a,"http://www.w3.org/XML/1998/namespace",!1)});["tabIndex","crossOrigin"].forEach(function(a){D[a]=new B(a,1,!1,a.toLowerCase(),null,!1)}); -D.xlinkHref=new B("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0);["src","href","action","formAction"].forEach(function(a){D[a]=new B(a,1,!1,a.toLowerCase(),null,!0)});function ub(a){switch(typeof a){case "boolean":case "number":case "object":case "string":case "undefined":return a;default:return""}} -function vb(a,b,c,d){var e=D.hasOwnProperty(b)?D[b]:null;var f=null!==e?0===e.type:d?!1:!(2=b.length))throw Error(u(93));b=b[0]}c=b}null==c&&(c="")}a._wrapperState={initialValue:ub(c)}} -function Mb(a,b){var c=ub(b.value),d=ub(b.defaultValue);null!=c&&(c=""+c,c!==a.value&&(a.value=c),null==b.defaultValue&&a.defaultValue!==c&&(a.defaultValue=c));null!=d&&(a.defaultValue=""+d)}function Nb(a){var b=a.textContent;b===a._wrapperState.initialValue&&""!==b&&null!==b&&(a.value=b)}var Ob={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"}; -function Pb(a){switch(a){case "svg":return"http://www.w3.org/2000/svg";case "math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Qb(a,b){return null==a||"http://www.w3.org/1999/xhtml"===a?Pb(b):"http://www.w3.org/2000/svg"===a&&"foreignObject"===b?"http://www.w3.org/1999/xhtml":a} -var Rb,Sb=function(a){return"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(b,c,d,e){MSApp.execUnsafeLocalFunction(function(){return a(b,c,d,e)})}:a}(function(a,b){if(a.namespaceURI!==Ob.svg||"innerHTML"in a)a.innerHTML=b;else{Rb=Rb||document.createElement("div");Rb.innerHTML=""+b.valueOf().toString()+"";for(b=Rb.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;b.firstChild;)a.appendChild(b.firstChild)}}); -function Tb(a,b){if(b){var c=a.firstChild;if(c&&c===a.lastChild&&3===c.nodeType){c.nodeValue=b;return}}a.textContent=b}function Ub(a,b){var c={};c[a.toLowerCase()]=b.toLowerCase();c["Webkit"+a]="webkit"+b;c["Moz"+a]="moz"+b;return c}var Vb={animationend:Ub("Animation","AnimationEnd"),animationiteration:Ub("Animation","AnimationIteration"),animationstart:Ub("Animation","AnimationStart"),transitionend:Ub("Transition","TransitionEnd")},Wb={},Xb={}; -Ya&&(Xb=document.createElement("div").style,"AnimationEvent"in window||(delete Vb.animationend.animation,delete Vb.animationiteration.animation,delete Vb.animationstart.animation),"TransitionEvent"in window||delete Vb.transitionend.transition);function Yb(a){if(Wb[a])return Wb[a];if(!Vb[a])return a;var b=Vb[a],c;for(c in b)if(b.hasOwnProperty(c)&&c in Xb)return Wb[a]=b[c];return a}var Zb=Yb("animationend"),$b=Yb("animationiteration"),ac=Yb("animationstart"),bc=Yb("transitionend"),cc="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "); -function ec(a){var b=a,c=a;if(a.alternate)for(;b.return;)b=b.return;else{a=b;do b=a,0!==(b.effectTag&1026)&&(c=b.return),a=b.return;while(a)}return 3===b.tag?c:null}function fc(a){if(13===a.tag){var b=a.memoizedState;null===b&&(a=a.alternate,null!==a&&(b=a.memoizedState));if(null!==b)return b.dehydrated}return null}function gc(a){if(ec(a)!==a)throw Error(u(188));} -function hc(a){var b=a.alternate;if(!b){b=ec(a);if(null===b)throw Error(u(188));return b!==a?null:a}for(var c=a,d=b;;){var e=c.return;if(null===e)break;var f=e.alternate;if(null===f){d=e.return;if(null!==d){c=d;continue}break}if(e.child===f.child){for(f=e.child;f;){if(f===c)return gc(e),a;if(f===d)return gc(e),b;f=f.sibling}throw Error(u(188));}if(c.return!==d.return)c=e,d=f;else{for(var g=!1,h=e.child;h;){if(h===c){g=!0;c=e;d=f;break}if(h===d){g=!0;d=e;c=f;break}h=h.sibling}if(!g){for(h=f.child;h;){if(h=== -c){g=!0;c=f;d=e;break}if(h===d){g=!0;d=f;c=e;break}h=h.sibling}if(!g)throw Error(u(189));}}if(c.alternate!==d)throw Error(u(190));}if(3!==c.tag)throw Error(u(188));return c.stateNode.current===c?a:b}function ic(a){a=hc(a);if(!a)return null;for(var b=a;;){if(5===b.tag||6===b.tag)return b;if(b.child)b.child.return=b,b=b.child;else{if(b===a)break;for(;!b.sibling;){if(!b.return||b.return===a)return null;b=b.return}b.sibling.return=b.return;b=b.sibling}}return null} -var jc,kc,lc,mc=!1,nc=[],oc=null,pc=null,qc=null,rc=new Map,sc=new Map,tc=[],uc="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),vc="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" "); -function wc(a){var b=xc(a);uc.forEach(function(c){yc(c,a,b)});vc.forEach(function(c){yc(c,a,b)})}function zc(a,b,c,d){return{blockedOn:a,topLevelType:b,eventSystemFlags:c|32,nativeEvent:d}}function Ac(a,b){switch(a){case "focus":case "blur":oc=null;break;case "dragenter":case "dragleave":pc=null;break;case "mouseover":case "mouseout":qc=null;break;case "pointerover":case "pointerout":rc.delete(b.pointerId);break;case "gotpointercapture":case "lostpointercapture":sc.delete(b.pointerId)}} -function Bc(a,b,c,d,e){if(null===a||a.nativeEvent!==e)return a=zc(b,c,d,e),null!==b&&(b=Cc(b),null!==b&&kc(b)),a;a.eventSystemFlags|=d;return a}function Dc(a,b,c,d){switch(b){case "focus":return oc=Bc(oc,a,b,c,d),!0;case "dragenter":return pc=Bc(pc,a,b,c,d),!0;case "mouseover":return qc=Bc(qc,a,b,c,d),!0;case "pointerover":var e=d.pointerId;rc.set(e,Bc(rc.get(e)||null,a,b,c,d));return!0;case "gotpointercapture":return e=d.pointerId,sc.set(e,Bc(sc.get(e)||null,a,b,c,d)),!0}return!1} -function Ec(a){var b=Fc(a.target);if(null!==b){var c=ec(b);if(null!==c)if(b=c.tag,13===b){if(b=fc(c),null!==b){a.blockedOn=b;q.unstable_runWithPriority(a.priority,function(){lc(c)});return}}else if(3===b&&c.stateNode.hydrate){a.blockedOn=3===c.tag?c.stateNode.containerInfo:null;return}}a.blockedOn=null}function Gc(a){if(null!==a.blockedOn)return!1;var b=Hc(a.topLevelType,a.eventSystemFlags,a.nativeEvent);if(null!==b){var c=Cc(b);null!==c&&kc(c);a.blockedOn=b;return!1}return!0} -function Ic(a,b,c){Gc(a)&&c.delete(b)}function Jc(){for(mc=!1;0this.eventPool.length&&this.eventPool.push(a)}function Vc(a){a.eventPool=[];a.getPooled=Wc;a.release=Xc}var Yc=E.extend({animationName:null,elapsedTime:null,pseudoElement:null}),Zc=E.extend({clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),$c=E.extend({view:null,detail:null}),ad=$c.extend({relatedTarget:null}); -function bd(a){var b=a.keyCode;"charCode"in a?(a=a.charCode,0===a&&13===b&&(a=13)):a=b;10===a&&(a=13);return 32<=a||13===a?a:0} -var cd={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},dd={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4", -116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},ed={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function gd(a){var b=this.nativeEvent;return b.getModifierState?b.getModifierState(a):(a=ed[a])?!!b[a]:!1}function hd(){return gd} -var id=$c.extend({key:function(a){if(a.key){var b=cd[a.key]||a.key;if("Unidentified"!==b)return b}return"keypress"===a.type?(a=bd(a),13===a?"Enter":String.fromCharCode(a)):"keydown"===a.type||"keyup"===a.type?dd[a.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:hd,charCode:function(a){return"keypress"===a.type?bd(a):0},keyCode:function(a){return"keydown"===a.type||"keyup"===a.type?a.keyCode:0},which:function(a){return"keypress"=== -a.type?bd(a):"keydown"===a.type||"keyup"===a.type?a.keyCode:0}}),jd=0,kd=0,ld=!1,md=!1,nd=$c.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:hd,button:null,buttons:null,relatedTarget:function(a){return a.relatedTarget||(a.fromElement===a.srcElement?a.toElement:a.fromElement)},movementX:function(a){if("movementX"in a)return a.movementX;var b=jd;jd=a.screenX;return ld?"mousemove"===a.type?a.screenX- -b:0:(ld=!0,0)},movementY:function(a){if("movementY"in a)return a.movementY;var b=kd;kd=a.screenY;return md?"mousemove"===a.type?a.screenY-b:0:(md=!0,0)}}),od=nd.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),pd=nd.extend({dataTransfer:null}),qd=$c.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:hd}),rd=E.extend({propertyName:null, -elapsedTime:null,pseudoElement:null}),sd=nd.extend({deltaX:function(a){return"deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},deltaY:function(a){return"deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.wheelDelta:0},deltaZ:null,deltaMode:null}),td=[["blur","blur",0],["cancel","cancel",0],["click","click",0],["close","close",0],["contextmenu","contextMenu",0],["copy","copy",0],["cut","cut",0],["auxclick","auxClick",0],["dblclick","doubleClick",0],["dragend","dragEnd", -0],["dragstart","dragStart",0],["drop","drop",0],["focus","focus",0],["input","input",0],["invalid","invalid",0],["keydown","keyDown",0],["keypress","keyPress",0],["keyup","keyUp",0],["mousedown","mouseDown",0],["mouseup","mouseUp",0],["paste","paste",0],["pause","pause",0],["play","play",0],["pointercancel","pointerCancel",0],["pointerdown","pointerDown",0],["pointerup","pointerUp",0],["ratechange","rateChange",0],["reset","reset",0],["seeked","seeked",0],["submit","submit",0],["touchcancel","touchCancel", -0],["touchend","touchEnd",0],["touchstart","touchStart",0],["volumechange","volumeChange",0],["drag","drag",1],["dragenter","dragEnter",1],["dragexit","dragExit",1],["dragleave","dragLeave",1],["dragover","dragOver",1],["mousemove","mouseMove",1],["mouseout","mouseOut",1],["mouseover","mouseOver",1],["pointermove","pointerMove",1],["pointerout","pointerOut",1],["pointerover","pointerOver",1],["scroll","scroll",1],["toggle","toggle",1],["touchmove","touchMove",1],["wheel","wheel",1],["abort","abort", -2],[Zb,"animationEnd",2],[$b,"animationIteration",2],[ac,"animationStart",2],["canplay","canPlay",2],["canplaythrough","canPlayThrough",2],["durationchange","durationChange",2],["emptied","emptied",2],["encrypted","encrypted",2],["ended","ended",2],["error","error",2],["gotpointercapture","gotPointerCapture",2],["load","load",2],["loadeddata","loadedData",2],["loadedmetadata","loadedMetadata",2],["loadstart","loadStart",2],["lostpointercapture","lostPointerCapture",2],["playing","playing",2],["progress", -"progress",2],["seeking","seeking",2],["stalled","stalled",2],["suspend","suspend",2],["timeupdate","timeUpdate",2],[bc,"transitionEnd",2],["waiting","waiting",2]],ud={},vd={},wd=0;for(;wd=b)return{node:c,offset:b-a};a=d}a:{for(;c;){if(c.nextSibling){c=c.nextSibling;break a}c=c.parentNode}c=void 0}c=ce(c)}} -function ee(a,b){return a&&b?a===b?!0:a&&3===a.nodeType?!1:b&&3===b.nodeType?ee(a,b.parentNode):"contains"in a?a.contains(b):a.compareDocumentPosition?!!(a.compareDocumentPosition(b)&16):!1:!1}function fe(){for(var a=window,b=be();b instanceof a.HTMLIFrameElement;){try{var c="string"===typeof b.contentWindow.location.href}catch(d){c=!1}if(c)a=b.contentWindow;else break;b=be(a.document)}return b} -function ge(a){var b=a&&a.nodeName&&a.nodeName.toLowerCase();return b&&("input"===b&&("text"===a.type||"search"===a.type||"tel"===a.type||"url"===a.type||"password"===a.type)||"textarea"===b||"true"===a.contentEditable)}var he="$",ie="/$",je="$?",ke="$!",le=null,me=null;function ne(a,b){switch(a){case "button":case "input":case "select":case "textarea":return!!b.autoFocus}return!1} -function oe(a,b){return"textarea"===a||"option"===a||"noscript"===a||"string"===typeof b.children||"number"===typeof b.children||"object"===typeof b.dangerouslySetInnerHTML&&null!==b.dangerouslySetInnerHTML&&null!=b.dangerouslySetInnerHTML.__html}var pe="function"===typeof setTimeout?setTimeout:void 0,qe="function"===typeof clearTimeout?clearTimeout:void 0;function re(a){for(;null!=a;a=a.nextSibling){var b=a.nodeType;if(1===b||3===b)break}return a} -function se(a){a=a.previousSibling;for(var b=0;a;){if(8===a.nodeType){var c=a.data;if(c===he||c===ke||c===je){if(0===b)return a;b--}else c===ie&&b++}a=a.previousSibling}return null}var te=Math.random().toString(36).slice(2),ue="__reactInternalInstance$"+te,ve="__reactEventHandlers$"+te,we="__reactContainere$"+te; -function Fc(a){var b=a[ue];if(b)return b;for(var c=a.parentNode;c;){if(b=c[we]||c[ue]){c=b.alternate;if(null!==b.child||null!==c&&null!==c.child)for(a=se(a);null!==a;){if(c=a[ue])return c;a=se(a)}return b}a=c;c=a.parentNode}return null}function Cc(a){a=a[ue]||a[we];return!a||5!==a.tag&&6!==a.tag&&13!==a.tag&&3!==a.tag?null:a}function xe(a){if(5===a.tag||6===a.tag)return a.stateNode;throw Error(u(33));}function ye(a){return a[ve]||null}var ze=null,Ae=null,Be=null; -function Ce(){if(Be)return Be;var a,b=Ae,c=b.length,d,e="value"in ze?ze.value:ze.textContent,f=e.length;for(a=0;a=He),Ke=String.fromCharCode(32),Le={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart", -captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},Me=!1; -function Ne(a,b){switch(a){case "keyup":return-1!==Fe.indexOf(b.keyCode);case "keydown":return 229!==b.keyCode;case "keypress":case "mousedown":case "blur":return!0;default:return!1}}function Oe(a){a=a.detail;return"object"===typeof a&&"data"in a?a.data:null}var Pe=!1;function Qe(a,b){switch(a){case "compositionend":return Oe(b);case "keypress":if(32!==b.which)return null;Me=!0;return Ke;case "textInput":return a=b.data,a===Ke&&Me?null:a;default:return null}} -function Re(a,b){if(Pe)return"compositionend"===a||!Ge&&Ne(a,b)?(a=Ce(),Be=Ae=ze=null,Pe=!1,a):null;switch(a){case "paste":return null;case "keypress":if(!(b.ctrlKey||b.altKey||b.metaKey)||b.ctrlKey&&b.altKey){if(b.char&&1=document.documentMode,sf={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},tf=null,uf=null,vf=null,wf=!1; -function xf(a,b){var c=b.window===b?b.document:9===b.nodeType?b:b.ownerDocument;if(wf||null==tf||tf!==be(c))return null;c=tf;"selectionStart"in c&&ge(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset});return vf&&qf(vf,c)?null:(vf=c,a=E.getPooled(sf.select,uf,a,b),a.type="select",a.target=tf,Sc(a),a)} -var yf={eventTypes:sf,extractEvents:function(a,b,c,d){var e=d.window===d?d.document:9===d.nodeType?d:d.ownerDocument,f;if(!(f=!e)){a:{e=xc(e);f=ja.onSelect;for(var g=0;gBf||(a.current=Af[Bf],Af[Bf]=null,Bf--)} -function I(a,b){Bf++;Af[Bf]=a.current;a.current=b}var Cf={},J={current:Cf},K={current:!1},Df=Cf;function Ef(a,b){var c=a.type.contextTypes;if(!c)return Cf;var d=a.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===b)return d.__reactInternalMemoizedMaskedChildContext;var e={},f;for(f in c)e[f]=b[f];d&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=b,a.__reactInternalMemoizedMaskedChildContext=e);return e}function L(a){a=a.childContextTypes;return null!==a&&void 0!==a} -function Ff(a){G(K,a);G(J,a)}function Gf(a){G(K,a);G(J,a)}function Hf(a,b,c){if(J.current!==Cf)throw Error(u(168));I(J,b,a);I(K,c,a)}function If(a,b,c){var d=a.stateNode;a=b.childContextTypes;if("function"!==typeof d.getChildContext)return c;d=d.getChildContext();for(var e in d)if(!(e in a))throw Error(u(108,Wa(b)||"Unknown",e));return n({},c,{},d)}function Jf(a){var b=a.stateNode;b=b&&b.__reactInternalMemoizedMergedChildContext||Cf;Df=J.current;I(J,b,a);I(K,K.current,a);return!0} -function Kf(a,b,c){var d=a.stateNode;if(!d)throw Error(u(169));c?(b=If(a,b,Df),d.__reactInternalMemoizedMergedChildContext=b,G(K,a),G(J,a),I(J,b,a)):G(K,a);I(K,c,a)} -var Lf=q.unstable_runWithPriority,Mf=q.unstable_scheduleCallback,Nf=q.unstable_cancelCallback,Of=q.unstable_shouldYield,Pf=q.unstable_requestPaint,Qf=q.unstable_now,Rf=q.unstable_getCurrentPriorityLevel,Sf=q.unstable_ImmediatePriority,Tf=q.unstable_UserBlockingPriority,Uf=q.unstable_NormalPriority,Vf=q.unstable_LowPriority,Wf=q.unstable_IdlePriority,Xf={},Yf=void 0!==Pf?Pf:function(){},Zf=null,$f=null,ag=!1,bg=Qf(),cg=1E4>bg?Qf:function(){return Qf()-bg}; -function dg(){switch(Rf()){case Sf:return 99;case Tf:return 98;case Uf:return 97;case Vf:return 96;case Wf:return 95;default:throw Error(u(332));}}function eg(a){switch(a){case 99:return Sf;case 98:return Tf;case 97:return Uf;case 96:return Vf;case 95:return Wf;default:throw Error(u(332));}}function fg(a,b){a=eg(a);return Lf(a,b)}function gg(a,b,c){a=eg(a);return Mf(a,b,c)}function hg(a){null===Zf?(Zf=[a],$f=Mf(Sf,ig)):Zf.push(a);return Xf}function jg(){if(null!==$f){var a=$f;$f=null;Nf(a)}ig()} -function ig(){if(!ag&&null!==Zf){ag=!0;var a=0;try{var b=Zf;fg(99,function(){for(;a=b&&(wg=!0),a.firstContext=null)}function xg(a,b){if(qg!==a&&!1!==b&&0!==b){if("number"!==typeof b||1073741823===b)qg=a,b=1073741823;b={context:a,observedBits:b,next:null};if(null===pg){if(null===og)throw Error(u(308));pg=b;og.dependencies={expirationTime:0,firstContext:b,responders:null}}else pg=pg.next=b}return a._currentValue}var yg=!1; -function zg(a){return{baseState:a,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Ag(a){return{baseState:a.baseState,firstUpdate:a.firstUpdate,lastUpdate:a.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}} -function Bg(a,b){return{expirationTime:a,suspenseConfig:b,tag:0,payload:null,callback:null,next:null,nextEffect:null}}function Cg(a,b){null===a.lastUpdate?a.firstUpdate=a.lastUpdate=b:(a.lastUpdate.next=b,a.lastUpdate=b)} -function Dg(a,b){var c=a.alternate;if(null===c){var d=a.updateQueue;var e=null;null===d&&(d=a.updateQueue=zg(a.memoizedState))}else d=a.updateQueue,e=c.updateQueue,null===d?null===e?(d=a.updateQueue=zg(a.memoizedState),e=c.updateQueue=zg(c.memoizedState)):d=a.updateQueue=Ag(e):null===e&&(e=c.updateQueue=Ag(d));null===e||d===e?Cg(d,b):null===d.lastUpdate||null===e.lastUpdate?(Cg(d,b),Cg(e,b)):(Cg(d,b),e.lastUpdate=b)} -function Eg(a,b){var c=a.updateQueue;c=null===c?a.updateQueue=zg(a.memoizedState):Fg(a,c);null===c.lastCapturedUpdate?c.firstCapturedUpdate=c.lastCapturedUpdate=b:(c.lastCapturedUpdate.next=b,c.lastCapturedUpdate=b)}function Fg(a,b){var c=a.alternate;null!==c&&b===c.updateQueue&&(b=a.updateQueue=Ag(b));return b} -function Gg(a,b,c,d,e,f){switch(c.tag){case 1:return a=c.payload,"function"===typeof a?a.call(f,d,e):a;case 3:a.effectTag=a.effectTag&-4097|64;case 0:a=c.payload;e="function"===typeof a?a.call(f,d,e):a;if(null===e||void 0===e)break;return n({},d,e);case 2:yg=!0}return d} -function Hg(a,b,c,d,e){yg=!1;b=Fg(a,b);for(var f=b.baseState,g=null,h=0,k=b.firstUpdate,l=f;null!==k;){var m=k.expirationTime;mx?(A=r,r=null):A=r.sibling;var p=y(e,r,h[x],k);if(null===p){null===r&&(r=A);break}a&& -r&&null===p.alternate&&b(e,r);g=f(p,g,x);null===m?l=p:m.sibling=p;m=p;r=A}if(x===h.length)return c(e,r),l;if(null===r){for(;xx?(A=r,r=null):A=r.sibling;var z=y(e,r,p.value,k);if(null===z){null===r&&(r=A);break}a&&r&&null===z.alternate&&b(e,r);g=f(z,g,x);null===m?l=z:m.sibling=z;m=z;r=A}if(p.done)return c(e,r),l;if(null===r){for(;!p.done;x++,p=h.next())p=C(e,p.value,k),null!==p&&(g=f(p,g,x),null===m?l=p:m.sibling=p,m=p);return l}for(r=d(e,r);!p.done;x++,p=h.next())p=H(r,e,x,p.value,k),null!==p&&(a&&null!== -p.alternate&&r.delete(null===p.key?x:p.key),g=f(p,g,x),null===m?l=p:m.sibling=p,m=p);a&&r.forEach(function(a){return b(e,a)});return l}return function(a,d,f,h){var k="object"===typeof f&&null!==f&&f.type===Ia&&null===f.key;k&&(f=f.props.children);var l="object"===typeof f&&null!==f;if(l)switch(f.$$typeof){case Ga:a:{l=f.key;for(k=d;null!==k;){if(k.key===l)if(7===k.tag?f.type===Ia:k.elementType===f.type){c(a,k.sibling);d=e(k,f.type===Ia?f.props.children:f.props,h);d.ref=Yg(a,k,f);d.return=a;a=d;break a}else{c(a, -k);break}else b(a,k);k=k.sibling}f.type===Ia?(d=eh(f.props.children,a.mode,h,f.key),d.return=a,a=d):(h=ch(f.type,f.key,f.props,null,a.mode,h),h.ref=Yg(a,d,f),h.return=a,a=h)}return g(a);case Ha:a:{for(k=f.key;null!==d;){if(d.key===k)if(4===d.tag&&d.stateNode.containerInfo===f.containerInfo&&d.stateNode.implementation===f.implementation){c(a,d.sibling);d=e(d,f.children||[],h);d.return=a;a=d;break a}else{c(a,d);break}else b(a,d);d=d.sibling}d=dh(f,a.mode,h);d.return=a;a=d}return g(a)}if("string"=== -typeof f||"number"===typeof f)return f=""+f,null!==d&&6===d.tag?(c(a,d.sibling),d=e(d,f,h),d.return=a,a=d):(c(a,d),d=bh(f,a.mode,h),d.return=a,a=d),g(a);if(Xg(f))return z(a,d,f,h);if(Ua(f))return ta(a,d,f,h);l&&Zg(a,f);if("undefined"===typeof f&&!k)switch(a.tag){case 1:case 0:throw a=a.type,Error(u(152,a.displayName||a.name||"Component"));}return c(a,d)}}var fh=$g(!0),gh=$g(!1),hh={},ih={current:hh},jh={current:hh},kh={current:hh};function lh(a){if(a===hh)throw Error(u(174));return a} -function mh(a,b){I(kh,b,a);I(jh,a,a);I(ih,hh,a);var c=b.nodeType;switch(c){case 9:case 11:b=(b=b.documentElement)?b.namespaceURI:Qb(null,"");break;default:c=8===c?b.parentNode:b,b=c.namespaceURI||null,c=c.tagName,b=Qb(b,c)}G(ih,a);I(ih,b,a)}function nh(a){G(ih,a);G(jh,a);G(kh,a)}function oh(a){lh(kh.current);var b=lh(ih.current);var c=Qb(b,a.type);b!==c&&(I(jh,a,a),I(ih,c,a))}function ph(a){jh.current===a&&(G(ih,a),G(jh,a))}var M={current:0}; -function qh(a){for(var b=a;null!==b;){if(13===b.tag){var c=b.memoizedState;if(null!==c&&(c=c.dehydrated,null===c||c.data===je||c.data===ke))return b}else if(19===b.tag&&void 0!==b.memoizedProps.revealOrder){if(0!==(b.effectTag&64))return b}else if(null!==b.child){b.child.return=b;b=b.child;continue}if(b===a)break;for(;null===b.sibling;){if(null===b.return||b.return===a)return null;b=b.return}b.sibling.return=b.return;b=b.sibling}return null}function rh(a,b){return{responder:a,props:b}} -var sh=Ea.ReactCurrentDispatcher,N=Ea.ReactCurrentBatchConfig,th=0,uh=null,O=null,vh=null,wh=null,P=null,xh=null,yh=0,zh=null,Ah=0,Bh=!1,Ch=null,Gh=0;function Q(){throw Error(u(321));}function Hh(a,b){if(null===b)return!1;for(var c=0;cyh&&(yh=m,Jg(yh))):(Ig(m,k.suspenseConfig),f=k.eagerReducer===a?k.eagerState:a(f,k.action));g=k;k=k.next}while(null!==k&&k!==d);l||(h=g,e=f);of(f,b.memoizedState)||(wg=!0);b.memoizedState=f;b.baseUpdate=h;b.baseState=e;c.lastRenderedState=f}return[b.memoizedState,c.dispatch]} -function Rh(a){var b=Nh();"function"===typeof a&&(a=a());b.memoizedState=b.baseState=a;a=b.queue={last:null,dispatch:null,lastRenderedReducer:Ph,lastRenderedState:a};a=a.dispatch=Sh.bind(null,uh,a);return[b.memoizedState,a]}function Th(a){return Qh(Ph,a)}function Uh(a,b,c,d){a={tag:a,create:b,destroy:c,deps:d,next:null};null===zh?(zh={lastEffect:null},zh.lastEffect=a.next=a):(b=zh.lastEffect,null===b?zh.lastEffect=a.next=a:(c=b.next,b.next=a,a.next=c,zh.lastEffect=a));return a} -function Vh(a,b,c,d){var e=Nh();Ah|=a;e.memoizedState=Uh(b,c,void 0,void 0===d?null:d)}function Wh(a,b,c,d){var e=Oh();d=void 0===d?null:d;var f=void 0;if(null!==O){var g=O.memoizedState;f=g.destroy;if(null!==d&&Hh(d,g.deps)){Uh(0,c,f,d);return}}Ah|=a;e.memoizedState=Uh(b,c,f,d)}function Xh(a,b){return Vh(516,192,a,b)}function Yh(a,b){return Wh(516,192,a,b)} -function Zh(a,b){if("function"===typeof b)return a=a(),b(a),function(){b(null)};if(null!==b&&void 0!==b)return a=a(),b.current=a,function(){b.current=null}}function $h(){}function ai(a,b){Nh().memoizedState=[a,void 0===b?null:b];return a}function bi(a,b){var c=Oh();b=void 0===b?null:b;var d=c.memoizedState;if(null!==d&&null!==b&&Hh(b,d[1]))return d[0];c.memoizedState=[a,b];return a} -function Sh(a,b,c){if(!(25>Gh))throw Error(u(301));var d=a.alternate;if(a===uh||null!==d&&d===uh)if(Bh=!0,a={expirationTime:th,suspenseConfig:null,action:c,eagerReducer:null,eagerState:null,next:null},null===Ch&&(Ch=new Map),c=Ch.get(b),void 0===c)Ch.set(b,a);else{for(b=c;null!==b.next;)b=b.next;b.next=a}else{var e=Pg(),f=Mg.suspense;e=Qg(e,a,f);f={expirationTime:e,suspenseConfig:f,action:c,eagerReducer:null,eagerState:null,next:null};var g=b.last;if(null===g)f.next=f;else{var h=g.next;null!==h&& -(f.next=h);g.next=f}b.last=f;if(0===a.expirationTime&&(null===d||0===d.expirationTime)&&(d=b.lastRenderedReducer,null!==d))try{var k=b.lastRenderedState,l=d(k,c);f.eagerReducer=d;f.eagerState=l;if(of(l,k))return}catch(m){}finally{}Rg(a,e)}} -var Lh={readContext:xg,useCallback:Q,useContext:Q,useEffect:Q,useImperativeHandle:Q,useLayoutEffect:Q,useMemo:Q,useReducer:Q,useRef:Q,useState:Q,useDebugValue:Q,useResponder:Q,useDeferredValue:Q,useTransition:Q},Jh={readContext:xg,useCallback:ai,useContext:xg,useEffect:Xh,useImperativeHandle:function(a,b,c){c=null!==c&&void 0!==c?c.concat([a]):null;return Vh(4,36,Zh.bind(null,b,a),c)},useLayoutEffect:function(a,b){return Vh(4,36,a,b)},useMemo:function(a,b){var c=Nh();b=void 0===b?null:b;a=a();c.memoizedState= -[a,b];return a},useReducer:function(a,b,c){var d=Nh();b=void 0!==c?c(b):b;d.memoizedState=d.baseState=b;a=d.queue={last:null,dispatch:null,lastRenderedReducer:a,lastRenderedState:b};a=a.dispatch=Sh.bind(null,uh,a);return[d.memoizedState,a]},useRef:function(a){var b=Nh();a={current:a};return b.memoizedState=a},useState:Rh,useDebugValue:$h,useResponder:rh,useDeferredValue:function(a,b){var c=Rh(a),d=c[0],e=c[1];Xh(function(){q.unstable_next(function(){var c=N.suspense;N.suspense=void 0===b?null:b;try{e(a)}finally{N.suspense= -c}})},[a,b]);return d},useTransition:function(a){var b=Rh(!1),c=b[0],d=b[1];return[ai(function(b){d(!0);q.unstable_next(function(){var c=N.suspense;N.suspense=void 0===a?null:a;try{d(!1),b()}finally{N.suspense=c}})},[a,c]),c]}},Kh={readContext:xg,useCallback:bi,useContext:xg,useEffect:Yh,useImperativeHandle:function(a,b,c){c=null!==c&&void 0!==c?c.concat([a]):null;return Wh(4,36,Zh.bind(null,b,a),c)},useLayoutEffect:function(a,b){return Wh(4,36,a,b)},useMemo:function(a,b){var c=Oh();b=void 0===b? -null:b;var d=c.memoizedState;if(null!==d&&null!==b&&Hh(b,d[1]))return d[0];a=a();c.memoizedState=[a,b];return a},useReducer:Qh,useRef:function(){return Oh().memoizedState},useState:Th,useDebugValue:$h,useResponder:rh,useDeferredValue:function(a,b){var c=Th(a),d=c[0],e=c[1];Yh(function(){q.unstable_next(function(){var c=N.suspense;N.suspense=void 0===b?null:b;try{e(a)}finally{N.suspense=c}})},[a,b]);return d},useTransition:function(a){var b=Th(!1),c=b[0],d=b[1];return[bi(function(b){d(!0);q.unstable_next(function(){var c= -N.suspense;N.suspense=void 0===a?null:a;try{d(!1),b()}finally{N.suspense=c}})},[a,c]),c]}},ci=null,di=null,ei=!1;function fi(a,b){var c=gi(5,null,null,0);c.elementType="DELETED";c.type="DELETED";c.stateNode=b;c.return=a;c.effectTag=8;null!==a.lastEffect?(a.lastEffect.nextEffect=c,a.lastEffect=c):a.firstEffect=a.lastEffect=c} -function hi(a,b){switch(a.tag){case 5:var c=a.type;b=1!==b.nodeType||c.toLowerCase()!==b.nodeName.toLowerCase()?null:b;return null!==b?(a.stateNode=b,!0):!1;case 6:return b=""===a.pendingProps||3!==b.nodeType?null:b,null!==b?(a.stateNode=b,!0):!1;case 13:return!1;default:return!1}} -function ii(a){if(ei){var b=di;if(b){var c=b;if(!hi(a,b)){b=re(c.nextSibling);if(!b||!hi(a,b)){a.effectTag=a.effectTag&-1025|2;ei=!1;ci=a;return}fi(ci,c)}ci=a;di=re(b.firstChild)}else a.effectTag=a.effectTag&-1025|2,ei=!1,ci=a}}function ji(a){for(a=a.return;null!==a&&5!==a.tag&&3!==a.tag&&13!==a.tag;)a=a.return;ci=a} -function ki(a){if(a!==ci)return!1;if(!ei)return ji(a),ei=!0,!1;var b=a.type;if(5!==a.tag||"head"!==b&&"body"!==b&&!oe(b,a.memoizedProps))for(b=di;b;)fi(a,b),b=re(b.nextSibling);ji(a);if(13===a.tag){a=a.memoizedState;a=null!==a?a.dehydrated:null;if(!a)throw Error(u(317));a:{a=a.nextSibling;for(b=0;a;){if(8===a.nodeType){var c=a.data;if(c===ie){if(0===b){di=re(a.nextSibling);break a}b--}else c!==he&&c!==ke&&c!==je||b++}a=a.nextSibling}di=null}}else di=ci?re(a.stateNode.nextSibling):null;return!0} -function li(){di=ci=null;ei=!1}var mi=Ea.ReactCurrentOwner,wg=!1;function R(a,b,c,d){b.child=null===a?gh(b,null,c,d):fh(b,a.child,c,d)}function ni(a,b,c,d,e){c=c.render;var f=b.ref;vg(b,e);d=Ih(a,b,c,d,f,e);if(null!==a&&!wg)return b.updateQueue=a.updateQueue,b.effectTag&=-517,a.expirationTime<=e&&(a.expirationTime=0),oi(a,b,e);b.effectTag|=1;R(a,b,d,e);return b.child} -function pi(a,b,c,d,e,f){if(null===a){var g=c.type;if("function"===typeof g&&!qi(g)&&void 0===g.defaultProps&&null===c.compare&&void 0===c.defaultProps)return b.tag=15,b.type=g,ri(a,b,g,d,e,f);a=ch(c.type,null,d,null,b.mode,f);a.ref=b.ref;a.return=b;return b.child=a}g=a.child;if(eb)&&Gj.set(a,b)))}} -function Kj(a,b){a.expirationTimea?b:a} -function Z(a){if(0!==a.lastExpiredTime)a.callbackExpirationTime=1073741823,a.callbackPriority=99,a.callbackNode=hg(Lj.bind(null,a));else{var b=Oj(a),c=a.callbackNode;if(0===b)null!==c&&(a.callbackNode=null,a.callbackExpirationTime=0,a.callbackPriority=90);else{var d=Pg();1073741823===b?d=99:1===b||2===b?d=95:(d=10*(1073741821-b)-10*(1073741821-d),d=0>=d?99:250>=d?98:5250>=d?97:95);if(null!==c){var e=a.callbackPriority;if(a.callbackExpirationTime===b&&e>=d)return;c!==Xf&&Nf(c)}a.callbackExpirationTime= -b;a.callbackPriority=d;b=1073741823===b?hg(Lj.bind(null,a)):gg(d,Qj.bind(null,a),{timeout:10*(1073741821-b)-cg()});a.callbackNode=b}}} -function Qj(a,b){Jj=0;if(b)return b=Pg(),Rj(a,b),Z(a),null;var c=Oj(a);if(0!==c){b=a.callbackNode;if((T&(oj|pj))!==S)throw Error(u(327));Sj();a===U&&c===W||Tj(a,c);if(null!==V){var d=T;T|=oj;var e=Uj(a);do try{Vj();break}catch(h){Wj(a,h)}while(1);rg();T=d;lj.current=e;if(X===rj)throw b=wj,Tj(a,c),Mj(a,c),Z(a),b;if(null===V)switch(e=a.finishedWork=a.current.alternate,a.finishedExpirationTime=c,d=X,U=null,d){case qj:case rj:throw Error(u(345));case sj:Rj(a,2=c){a.lastPingedTime=c;Tj(a,c);break}}f=Oj(a);if(0!==f&&f!==c)break;if(0!==d&&d!==c){a.lastPingedTime=d;break}a.timeoutHandle=pe(Yj.bind(null,a),e);break}Yj(a);break;case uj:Mj(a,c);d=a.lastSuspendedTime;c===d&&(a.nextKnownPendingLevel=Xj(e));if(Bj&&(e=a.lastPingedTime,0===e||e>=c)){a.lastPingedTime=c;Tj(a,c);break}e=Oj(a);if(0!==e&&e!==c)break;if(0!==d&&d!==c){a.lastPingedTime= -d;break}1073741823!==yj?d=10*(1073741821-yj)-cg():1073741823===xj?d=0:(d=10*(1073741821-xj)-5E3,e=cg(),c=10*(1073741821-c)-e,d=e-d,0>d&&(d=0),d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3E3>d?3E3:4320>d?4320:1960*kj(d/1960))-d,c=d?d=0:(e=g.busyDelayMs|0,f=cg()-(10*(1073741821-f)-(g.timeoutMs|0||5E3)),d=f<=e?0:e+d-f);if(10 component higher in the tree to provide a loading indicator or placeholder to display."+Xa(e))}X!==vj&&(X=sj);f=Ni(f,e);k=d;do{switch(k.tag){case 3:g=f;k.effectTag|=4096;k.expirationTime=b;var x=fj(k,g,b);Eg(k,x);break a;case 1:g=f;var A=k.type,p=k.stateNode;if(0===(k.effectTag&64)&&("function"===typeof A.getDerivedStateFromError||null!==p&&"function"===typeof p.componentDidCatch&& -(null===jj||!jj.has(p)))){k.effectTag|=4096;k.expirationTime=b;var t=ij(k,g,b);Eg(k,t);break a}}k=k.return}while(null!==k)}V=ek(V)}catch(v){b=v;continue}break}while(1)}function Uj(){var a=lj.current;lj.current=Lh;return null===a?Lh:a}function Ig(a,b){aAj&&(Aj=a)}function Zj(){for(;null!==V;)V=fk(V)}function Vj(){for(;null!==V&&!Of();)V=fk(V)} -function fk(a){var b=gk(a.alternate,a,W);a.memoizedProps=a.pendingProps;null===b&&(b=ek(a));mj.current=null;return b} -function ek(a){V=a;do{var b=V.alternate;a=V.return;if(0===(V.effectTag&2048)){a:{var c=b;b=V;var d=W;var e=b.pendingProps;switch(b.tag){case 2:break;case 16:break;case 15:case 0:break;case 1:L(b.type)&&Ff(b);break;case 3:nh(b);Gf(b);e=b.stateNode;e.pendingContext&&(e.context=e.pendingContext,e.pendingContext=null);(null===c||null===c.child)&&ki(b)&&Ci(b);Ii(b);break;case 5:ph(b);d=lh(kh.current);var f=b.type;if(null!==c&&null!=b.stateNode)Ji(c,b,f,e,d),c.ref!==b.ref&&(b.effectTag|=128);else if(e){var g= -lh(ih.current);if(ki(b)){e=b;var h=e.stateNode;c=e.type;var k=e.memoizedProps,l=d;h[ue]=e;h[ve]=k;f=void 0;d=h;switch(c){case "iframe":case "object":case "embed":F("load",d);break;case "video":case "audio":for(h=0;h\x3c/script>",h=k.removeChild(k.firstChild)):"string"===typeof k.is?h=h.createElement(l,{is:k.is}):(h=h.createElement(l),"select"===l&&(l=h,k.multiple?l.multiple=!0:k.size&&(l.size=k.size))):h=h.createElementNS(g,l);k=h;k[ue]=c;k[ve]=e;Hi(k,b,!1,!1);b.stateNode=k;l=f;c=e;var m=d,C=Zd(l,c);switch(l){case "iframe":case "object":case "embed":F("load", -k);d=c;break;case "video":case "audio":for(d=0;de.tailExpiration&&1f&&(f=c),k>f&&(f=k),d=d.sibling;e.childExpirationTime=f}if(null!==b)return b;null!==a&&0===(a.effectTag&2048)&&(null===a.firstEffect&&(a.firstEffect=V.firstEffect),null!==V.lastEffect&&(null!==a.lastEffect&&(a.lastEffect.nextEffect= -V.firstEffect),a.lastEffect=V.lastEffect),1a?b:a}function Yj(a){var b=dg();fg(99,ik.bind(null,a,b));return null} -function ik(a,b){do Sj();while(null!==Ej);if((T&(oj|pj))!==S)throw Error(u(327));var c=a.finishedWork,d=a.finishedExpirationTime;if(null===c)return null;a.finishedWork=null;a.finishedExpirationTime=0;if(c===a.current)throw Error(u(177));a.callbackNode=null;a.callbackExpirationTime=0;a.callbackPriority=90;a.nextKnownPendingLevel=0;var e=Xj(c);a.firstPendingTime=e;d<=a.lastSuspendedTime?a.firstSuspendedTime=a.lastSuspendedTime=a.nextKnownPendingLevel=0:d<=a.firstSuspendedTime&&(a.firstSuspendedTime= -d-1);d<=a.lastPingedTime&&(a.lastPingedTime=0);d<=a.lastExpiredTime&&(a.lastExpiredTime=0);a===U&&(V=U=null,W=0);1h&&(l=h,h=g,g=l),l=de(p,g),m=de(p,h),l&&m&&(1!==v.rangeCount||v.anchorNode!==l.node||v.anchorOffset!==l.offset||v.focusNode!==m.node||v.focusOffset!==m.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),v.removeAllRanges(),g>h?(v.addRange(t),v.extend(m.node,m.offset)):(t.setEnd(m.node,m.offset),v.addRange(t))))));t=[];for(v=p;v=v.parentNode;)1===v.nodeType&&t.push({element:v,left:v.scrollLeft,top:v.scrollTop}); -"function"===typeof p.focus&&p.focus();for(p=0;p=c)return yi(a,b,c);I(M,M.current& -1,b);b=oi(a,b,c);return null!==b?b.sibling:null}I(M,M.current&1,b);break;case 19:d=b.childExpirationTime>=c;if(0!==(a.effectTag&64)){if(d)return Bi(a,b,c);b.effectTag|=64}e=b.memoizedState;null!==e&&(e.rendering=null,e.tail=null);I(M,M.current,b);if(!d)return null}return oi(a,b,c)}wg=!1}}else wg=!1;b.expirationTime=0;switch(b.tag){case 2:d=b.type;null!==a&&(a.alternate=null,b.alternate=null,b.effectTag|=2);a=b.pendingProps;e=Ef(b,J.current);vg(b,c);e=Ih(null,b,d,a,e,c);b.effectTag|=1;if("object"=== -typeof e&&null!==e&&"function"===typeof e.render&&void 0===e.$$typeof){b.tag=1;Mh();if(L(d)){var f=!0;Jf(b)}else f=!1;b.memoizedState=null!==e.state&&void 0!==e.state?e.state:null;var g=d.getDerivedStateFromProps;"function"===typeof g&&Og(b,d,g,a);e.updater=Sg;b.stateNode=e;e._reactInternalFiber=b;Wg(b,d,a,c);b=vi(null,b,d,!0,f,c)}else b.tag=0,R(null,b,e,c),b=b.child;return b;case 16:e=b.elementType;null!==a&&(a.alternate=null,b.alternate=null,b.effectTag|=2);a=b.pendingProps;Va(e);if(1!==e._status)throw e._result; -e=e._result;b.type=e;f=b.tag=nk(e);a=mg(e,a);switch(f){case 0:b=si(null,b,e,a,c);break;case 1:b=ui(null,b,e,a,c);break;case 11:b=ni(null,b,e,a,c);break;case 14:b=pi(null,b,e,mg(e.type,a),d,c);break;default:throw Error(u(306,e,""));}return b;case 0:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:mg(d,e),si(a,b,d,e,c);case 1:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:mg(d,e),ui(a,b,d,e,c);case 3:wi(b);d=b.updateQueue;if(null===d)throw Error(u(282));e=b.memoizedState;e=null!==e?e.element: -null;Hg(b,d,b.pendingProps,null,c);d=b.memoizedState.element;if(d===e)li(),b=oi(a,b,c);else{if(e=b.stateNode.hydrate)di=re(b.stateNode.containerInfo.firstChild),ci=b,e=ei=!0;if(e)for(c=gh(b,null,d,c),b.child=c;c;)c.effectTag=c.effectTag&-3|1024,c=c.sibling;else R(a,b,d,c),li();b=b.child}return b;case 5:return oh(b),null===a&&ii(b),d=b.type,e=b.pendingProps,f=null!==a?a.memoizedProps:null,g=e.children,oe(d,e)?g=null:null!==f&&oe(d,f)&&(b.effectTag|=16),ti(a,b),b.mode&4&&1!==c&&e.hidden?(b.expirationTime= -b.childExpirationTime=1,b=null):(R(a,b,g,c),b=b.child),b;case 6:return null===a&&ii(b),null;case 13:return yi(a,b,c);case 4:return mh(b,b.stateNode.containerInfo),d=b.pendingProps,null===a?b.child=fh(b,null,d,c):R(a,b,d,c),b.child;case 11:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:mg(d,e),ni(a,b,d,e,c);case 7:return R(a,b,b.pendingProps,c),b.child;case 8:return R(a,b,b.pendingProps.children,c),b.child;case 12:return R(a,b,b.pendingProps.children,c),b.child;case 10:a:{d=b.type._context; -e=b.pendingProps;g=b.memoizedProps;f=e.value;sg(b,f);if(null!==g){var h=g.value;f=of(h,f)?0:("function"===typeof d._calculateChangedBits?d._calculateChangedBits(h,f):1073741823)|0;if(0===f){if(g.children===e.children&&!K.current){b=oi(a,b,c);break a}}else for(h=b.child,null!==h&&(h.return=b);null!==h;){var k=h.dependencies;if(null!==k){g=h.child;for(var l=k.firstContext;null!==l;){if(l.context===d&&0!==(l.observedBits&f)){1===h.tag&&(l=Bg(c,null),l.tag=2,Dg(h,l));h.expirationTimeb}return!1}function v(a,b,c,d,e,f){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=d;this.attributeNamespace=e;this.mustUseProperty=c;this.propertyName=a;this.type=b;this.sanitizeURL=f}var C={}; +"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){C[a]=new v(a,0,!1,a,null,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){var b=a[0];C[b]=new v(b,1,!1,a[1],null,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(a){C[a]=new v(a,2,!1,a.toLowerCase(),null,!1)}); +["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){C[a]=new v(a,2,!1,a,null,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a){C[a]=new v(a,3,!1,a.toLowerCase(),null,!1)}); +["checked","multiple","muted","selected"].forEach(function(a){C[a]=new v(a,3,!0,a,null,!1)});["capture","download"].forEach(function(a){C[a]=new v(a,4,!1,a,null,!1)});["cols","rows","size","span"].forEach(function(a){C[a]=new v(a,6,!1,a,null,!1)});["rowSpan","start"].forEach(function(a){C[a]=new v(a,5,!1,a.toLowerCase(),null,!1)});var Ua=/[\-:]([a-z])/g;function Va(a){return a[1].toUpperCase()} +"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a){var b=a.replace(Ua, +Va);C[b]=new v(b,1,!1,a,null,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){var b=a.replace(Ua,Va);C[b]=new v(b,1,!1,a,"http://www.w3.org/1999/xlink",!1)});["xml:base","xml:lang","xml:space"].forEach(function(a){var b=a.replace(Ua,Va);C[b]=new v(b,1,!1,a,"http://www.w3.org/XML/1998/namespace",!1)});["tabIndex","crossOrigin"].forEach(function(a){C[a]=new v(a,1,!1,a.toLowerCase(),null,!1)}); +C.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0);["src","href","action","formAction"].forEach(function(a){C[a]=new v(a,1,!1,a.toLowerCase(),null,!0)});var Wa=aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Wa.hasOwnProperty("ReactCurrentDispatcher")||(Wa.ReactCurrentDispatcher={current:null});Wa.hasOwnProperty("ReactCurrentBatchConfig")||(Wa.ReactCurrentBatchConfig={suspense:null}); +function Xa(a,b,c,d){var e=C.hasOwnProperty(b)?C[b]:null;var f=null!==e?0===e.type:d?!1:!(2=c.length))throw Error(u(93));c=c[0]}b=c}null==b&&(b="");c=b}a._wrapperState={initialValue:rb(c)}} +function Kb(a,b){var c=rb(b.value),d=rb(b.defaultValue);null!=c&&(c=""+c,c!==a.value&&(a.value=c),null==b.defaultValue&&a.defaultValue!==c&&(a.defaultValue=c));null!=d&&(a.defaultValue=""+d)}function Lb(a){var b=a.textContent;b===a._wrapperState.initialValue&&""!==b&&null!==b&&(a.value=b)}var Mb={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"}; +function Nb(a){switch(a){case "svg":return"http://www.w3.org/2000/svg";case "math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ob(a,b){return null==a||"http://www.w3.org/1999/xhtml"===a?Nb(b):"http://www.w3.org/2000/svg"===a&&"foreignObject"===b?"http://www.w3.org/1999/xhtml":a} +var Pb,Qb=function(a){return"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(b,c,d,e){MSApp.execUnsafeLocalFunction(function(){return a(b,c,d,e)})}:a}(function(a,b){if(a.namespaceURI!==Mb.svg||"innerHTML"in a)a.innerHTML=b;else{Pb=Pb||document.createElement("div");Pb.innerHTML=""+b.valueOf().toString()+"";for(b=Pb.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;b.firstChild;)a.appendChild(b.firstChild)}}); +function Rb(a,b){if(b){var c=a.firstChild;if(c&&c===a.lastChild&&3===c.nodeType){c.nodeValue=b;return}}a.textContent=b}function Sb(a,b){var c={};c[a.toLowerCase()]=b.toLowerCase();c["Webkit"+a]="webkit"+b;c["Moz"+a]="moz"+b;return c}var Tb={animationend:Sb("Animation","AnimationEnd"),animationiteration:Sb("Animation","AnimationIteration"),animationstart:Sb("Animation","AnimationStart"),transitionend:Sb("Transition","TransitionEnd")},Ub={},Vb={}; +ya&&(Vb=document.createElement("div").style,"AnimationEvent"in window||(delete Tb.animationend.animation,delete Tb.animationiteration.animation,delete Tb.animationstart.animation),"TransitionEvent"in window||delete Tb.transitionend.transition);function Wb(a){if(Ub[a])return Ub[a];if(!Tb[a])return a;var b=Tb[a],c;for(c in b)if(b.hasOwnProperty(c)&&c in Vb)return Ub[a]=b[c];return a} +var Xb=Wb("animationend"),Yb=Wb("animationiteration"),Zb=Wb("animationstart"),$b=Wb("transitionend"),ac="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),bc=new ("function"===typeof WeakMap?WeakMap:Map);function cc(a){var b=bc.get(a);void 0===b&&(b=new Map,bc.set(a,b));return b} +function dc(a){var b=a,c=a;if(a.alternate)for(;b.return;)b=b.return;else{a=b;do b=a,0!==(b.effectTag&1026)&&(c=b.return),a=b.return;while(a)}return 3===b.tag?c:null}function ec(a){if(13===a.tag){var b=a.memoizedState;null===b&&(a=a.alternate,null!==a&&(b=a.memoizedState));if(null!==b)return b.dehydrated}return null}function fc(a){if(dc(a)!==a)throw Error(u(188));} +function gc(a){var b=a.alternate;if(!b){b=dc(a);if(null===b)throw Error(u(188));return b!==a?null:a}for(var c=a,d=b;;){var e=c.return;if(null===e)break;var f=e.alternate;if(null===f){d=e.return;if(null!==d){c=d;continue}break}if(e.child===f.child){for(f=e.child;f;){if(f===c)return fc(e),a;if(f===d)return fc(e),b;f=f.sibling}throw Error(u(188));}if(c.return!==d.return)c=e,d=f;else{for(var g=!1,h=e.child;h;){if(h===c){g=!0;c=e;d=f;break}if(h===d){g=!0;d=e;c=f;break}h=h.sibling}if(!g){for(h=f.child;h;){if(h=== +c){g=!0;c=f;d=e;break}if(h===d){g=!0;d=f;c=e;break}h=h.sibling}if(!g)throw Error(u(189));}}if(c.alternate!==d)throw Error(u(190));}if(3!==c.tag)throw Error(u(188));return c.stateNode.current===c?a:b}function hc(a){a=gc(a);if(!a)return null;for(var b=a;;){if(5===b.tag||6===b.tag)return b;if(b.child)b.child.return=b,b=b.child;else{if(b===a)break;for(;!b.sibling;){if(!b.return||b.return===a)return null;b=b.return}b.sibling.return=b.return;b=b.sibling}}return null} +function ic(a,b){if(null==b)throw Error(u(30));if(null==a)return b;if(Array.isArray(a)){if(Array.isArray(b))return a.push.apply(a,b),a;a.push(b);return a}return Array.isArray(b)?[a].concat(b):[a,b]}function jc(a,b,c){Array.isArray(a)?a.forEach(b,c):a&&b.call(c,a)}var kc=null; +function lc(a){if(a){var b=a._dispatchListeners,c=a._dispatchInstances;if(Array.isArray(b))for(var d=0;dpc.length&&pc.push(a)} +function rc(a,b,c,d){if(pc.length){var e=pc.pop();e.topLevelType=a;e.eventSystemFlags=d;e.nativeEvent=b;e.targetInst=c;return e}return{topLevelType:a,eventSystemFlags:d,nativeEvent:b,targetInst:c,ancestors:[]}} +function sc(a){var b=a.targetInst,c=b;do{if(!c){a.ancestors.push(c);break}var d=c;if(3===d.tag)d=d.stateNode.containerInfo;else{for(;d.return;)d=d.return;d=3!==d.tag?null:d.stateNode.containerInfo}if(!d)break;b=c.tag;5!==b&&6!==b||a.ancestors.push(c);c=tc(d)}while(c);for(c=0;c=b)return{node:c,offset:b-a};a=d}a:{for(;c;){if(c.nextSibling){c=c.nextSibling;break a}c=c.parentNode}c=void 0}c=ud(c)}} +function wd(a,b){return a&&b?a===b?!0:a&&3===a.nodeType?!1:b&&3===b.nodeType?wd(a,b.parentNode):"contains"in a?a.contains(b):a.compareDocumentPosition?!!(a.compareDocumentPosition(b)&16):!1:!1}function xd(){for(var a=window,b=td();b instanceof a.HTMLIFrameElement;){try{var c="string"===typeof b.contentWindow.location.href}catch(d){c=!1}if(c)a=b.contentWindow;else break;b=td(a.document)}return b} +function yd(a){var b=a&&a.nodeName&&a.nodeName.toLowerCase();return b&&("input"===b&&("text"===a.type||"search"===a.type||"tel"===a.type||"url"===a.type||"password"===a.type)||"textarea"===b||"true"===a.contentEditable)}var zd="$",Ad="/$",Bd="$?",Cd="$!",Dd=null,Ed=null;function Fd(a,b){switch(a){case "button":case "input":case "select":case "textarea":return!!b.autoFocus}return!1} +function Gd(a,b){return"textarea"===a||"option"===a||"noscript"===a||"string"===typeof b.children||"number"===typeof b.children||"object"===typeof b.dangerouslySetInnerHTML&&null!==b.dangerouslySetInnerHTML&&null!=b.dangerouslySetInnerHTML.__html}var Hd="function"===typeof setTimeout?setTimeout:void 0,Id="function"===typeof clearTimeout?clearTimeout:void 0;function Jd(a){for(;null!=a;a=a.nextSibling){var b=a.nodeType;if(1===b||3===b)break}return a} +function Kd(a){a=a.previousSibling;for(var b=0;a;){if(8===a.nodeType){var c=a.data;if(c===zd||c===Cd||c===Bd){if(0===b)return a;b--}else c===Ad&&b++}a=a.previousSibling}return null}var Ld=Math.random().toString(36).slice(2),Md="__reactInternalInstance$"+Ld,Nd="__reactEventHandlers$"+Ld,Od="__reactContainere$"+Ld; +function tc(a){var b=a[Md];if(b)return b;for(var c=a.parentNode;c;){if(b=c[Od]||c[Md]){c=b.alternate;if(null!==b.child||null!==c&&null!==c.child)for(a=Kd(a);null!==a;){if(c=a[Md])return c;a=Kd(a)}return b}a=c;c=a.parentNode}return null}function Nc(a){a=a[Md]||a[Od];return!a||5!==a.tag&&6!==a.tag&&13!==a.tag&&3!==a.tag?null:a}function Pd(a){if(5===a.tag||6===a.tag)return a.stateNode;throw Error(u(33));}function Qd(a){return a[Nd]||null} +function Rd(a){do a=a.return;while(a&&5!==a.tag);return a?a:null} +function Sd(a,b){var c=a.stateNode;if(!c)return null;var d=la(c);if(!d)return null;c=d[b];a:switch(b){case "onClick":case "onClickCapture":case "onDoubleClick":case "onDoubleClickCapture":case "onMouseDown":case "onMouseDownCapture":case "onMouseMove":case "onMouseMoveCapture":case "onMouseUp":case "onMouseUpCapture":case "onMouseEnter":(d=!d.disabled)||(a=a.type,d=!("button"===a||"input"===a||"select"===a||"textarea"===a));a=!d;break a;default:a=!1}if(a)return null;if(c&&"function"!==typeof c)throw Error(u(231, +b,typeof c));return c}function Td(a,b,c){if(b=Sd(a,c.dispatchConfig.phasedRegistrationNames[b]))c._dispatchListeners=ic(c._dispatchListeners,b),c._dispatchInstances=ic(c._dispatchInstances,a)}function Ud(a){if(a&&a.dispatchConfig.phasedRegistrationNames){for(var b=a._targetInst,c=[];b;)c.push(b),b=Rd(b);for(b=c.length;0this.eventPool.length&&this.eventPool.push(a)}function de(a){a.eventPool=[];a.getPooled=ee;a.release=fe}var ge=G.extend({data:null}),he=G.extend({data:null}),ie=[9,13,27,32],je=ya&&"CompositionEvent"in window,ke=null;ya&&"documentMode"in document&&(ke=document.documentMode); +var le=ya&&"TextEvent"in window&&!ke,me=ya&&(!je||ke&&8=ke),ne=String.fromCharCode(32),oe={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart", +captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},pe=!1; +function qe(a,b){switch(a){case "keyup":return-1!==ie.indexOf(b.keyCode);case "keydown":return 229!==b.keyCode;case "keypress":case "mousedown":case "blur":return!0;default:return!1}}function re(a){a=a.detail;return"object"===typeof a&&"data"in a?a.data:null}var se=!1;function te(a,b){switch(a){case "compositionend":return re(b);case "keypress":if(32!==b.which)return null;pe=!0;return ne;case "textInput":return a=b.data,a===ne&&pe?null:a;default:return null}} +function ue(a,b){if(se)return"compositionend"===a||!je&&qe(a,b)?(a=ae(),$d=Zd=Yd=null,se=!1,a):null;switch(a){case "paste":return null;case "keypress":if(!(b.ctrlKey||b.altKey||b.metaKey)||b.ctrlKey&&b.altKey){if(b.char&&1=document.documentMode,df={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},ef=null,ff=null,gf=null,hf=!1; +function jf(a,b){var c=b.window===b?b.document:9===b.nodeType?b:b.ownerDocument;if(hf||null==ef||ef!==td(c))return null;c=ef;"selectionStart"in c&&yd(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset});return gf&&bf(gf,c)?null:(gf=c,a=G.getPooled(df.select,ff,a,b),a.type="select",a.target=ef,Xd(a),a)} +var kf={eventTypes:df,extractEvents:function(a,b,c,d,e,f){e=f||(d.window===d?d.document:9===d.nodeType?d:d.ownerDocument);if(!(f=!e)){a:{e=cc(e);f=wa.onSelect;for(var g=0;gzf||(a.current=yf[zf],yf[zf]=null,zf--)} +function I(a,b){zf++;yf[zf]=a.current;a.current=b}var Af={},J={current:Af},K={current:!1},Bf=Af;function Cf(a,b){var c=a.type.contextTypes;if(!c)return Af;var d=a.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===b)return d.__reactInternalMemoizedMaskedChildContext;var e={},f;for(f in c)e[f]=b[f];d&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=b,a.__reactInternalMemoizedMaskedChildContext=e);return e}function L(a){a=a.childContextTypes;return null!==a&&void 0!==a} +function Df(){H(K);H(J)}function Ef(a,b,c){if(J.current!==Af)throw Error(u(168));I(J,b);I(K,c)}function Ff(a,b,c){var d=a.stateNode;a=b.childContextTypes;if("function"!==typeof d.getChildContext)return c;d=d.getChildContext();for(var e in d)if(!(e in a))throw Error(u(108,pb(b)||"Unknown",e));return n({},c,{},d)}function Gf(a){a=(a=a.stateNode)&&a.__reactInternalMemoizedMergedChildContext||Af;Bf=J.current;I(J,a);I(K,K.current);return!0} +function Hf(a,b,c){var d=a.stateNode;if(!d)throw Error(u(169));c?(a=Ff(a,b,Bf),d.__reactInternalMemoizedMergedChildContext=a,H(K),H(J),I(J,a)):H(K);I(K,c)} +var If=r.unstable_runWithPriority,Jf=r.unstable_scheduleCallback,Kf=r.unstable_cancelCallback,Lf=r.unstable_requestPaint,Mf=r.unstable_now,Nf=r.unstable_getCurrentPriorityLevel,Of=r.unstable_ImmediatePriority,Pf=r.unstable_UserBlockingPriority,Qf=r.unstable_NormalPriority,Rf=r.unstable_LowPriority,Sf=r.unstable_IdlePriority,Tf={},Uf=r.unstable_shouldYield,Vf=void 0!==Lf?Lf:function(){},Wf=null,Xf=null,Yf=!1,Zf=Mf(),$f=1E4>Zf?Mf:function(){return Mf()-Zf}; +function ag(){switch(Nf()){case Of:return 99;case Pf:return 98;case Qf:return 97;case Rf:return 96;case Sf:return 95;default:throw Error(u(332));}}function bg(a){switch(a){case 99:return Of;case 98:return Pf;case 97:return Qf;case 96:return Rf;case 95:return Sf;default:throw Error(u(332));}}function cg(a,b){a=bg(a);return If(a,b)}function dg(a,b,c){a=bg(a);return Jf(a,b,c)}function eg(a){null===Wf?(Wf=[a],Xf=Jf(Of,fg)):Wf.push(a);return Tf}function gg(){if(null!==Xf){var a=Xf;Xf=null;Kf(a)}fg()} +function fg(){if(!Yf&&null!==Wf){Yf=!0;var a=0;try{var b=Wf;cg(99,function(){for(;a=b&&(rg=!0),a.firstContext=null)} +function sg(a,b){if(mg!==a&&!1!==b&&0!==b){if("number"!==typeof b||1073741823===b)mg=a,b=1073741823;b={context:a,observedBits:b,next:null};if(null===lg){if(null===kg)throw Error(u(308));lg=b;kg.dependencies={expirationTime:0,firstContext:b,responders:null}}else lg=lg.next=b}return a._currentValue}var tg=!1;function ug(a){a.updateQueue={baseState:a.memoizedState,baseQueue:null,shared:{pending:null},effects:null}} +function vg(a,b){a=a.updateQueue;b.updateQueue===a&&(b.updateQueue={baseState:a.baseState,baseQueue:a.baseQueue,shared:a.shared,effects:a.effects})}function wg(a,b){a={expirationTime:a,suspenseConfig:b,tag:0,payload:null,callback:null,next:null};return a.next=a}function xg(a,b){a=a.updateQueue;if(null!==a){a=a.shared;var c=a.pending;null===c?b.next=b:(b.next=c.next,c.next=b);a.pending=b}} +function yg(a,b){var c=a.alternate;null!==c&&vg(c,a);a=a.updateQueue;c=a.baseQueue;null===c?(a.baseQueue=b.next=b,b.next=b):(b.next=c.next,c.next=b)} +function zg(a,b,c,d){var e=a.updateQueue;tg=!1;var f=e.baseQueue,g=e.shared.pending;if(null!==g){if(null!==f){var h=f.next;f.next=g.next;g.next=h}f=g;e.shared.pending=null;h=a.alternate;null!==h&&(h=h.updateQueue,null!==h&&(h.baseQueue=g))}if(null!==f){h=f.next;var k=e.baseState,l=0,m=null,p=null,x=null;if(null!==h){var z=h;do{g=z.expirationTime;if(gl&&(l=g)}else{null!==x&&(x=x.next={expirationTime:1073741823,suspenseConfig:z.suspenseConfig,tag:z.tag,payload:z.payload,callback:z.callback,next:null});Ag(g,z.suspenseConfig);a:{var D=a,t=z;g=b;ca=c;switch(t.tag){case 1:D=t.payload;if("function"===typeof D){k=D.call(ca,k,g);break a}k=D;break a;case 3:D.effectTag=D.effectTag&-4097|64;case 0:D=t.payload;g="function"===typeof D?D.call(ca,k,g):D;if(null===g||void 0===g)break a;k=n({},k,g);break a;case 2:tg=!0}}null!==z.callback&& +(a.effectTag|=32,g=e.effects,null===g?e.effects=[z]:g.push(z))}z=z.next;if(null===z||z===h)if(g=e.shared.pending,null===g)break;else z=f.next=g.next,g.next=h,e.baseQueue=f=g,e.shared.pending=null}while(1)}null===x?m=k:x.next=p;e.baseState=m;e.baseQueue=x;Bg(l);a.expirationTime=l;a.memoizedState=k}} +function Cg(a,b,c){a=b.effects;b.effects=null;if(null!==a)for(b=0;by?(A=m,m=null):A=m.sibling;var q=x(e,m,h[y],k);if(null===q){null===m&&(m=A);break}a&& +m&&null===q.alternate&&b(e,m);g=f(q,g,y);null===t?l=q:t.sibling=q;t=q;m=A}if(y===h.length)return c(e,m),l;if(null===m){for(;yy?(A=t,t=null):A=t.sibling;var D=x(e,t,q.value,l);if(null===D){null===t&&(t=A);break}a&&t&&null===D.alternate&&b(e,t);g=f(D,g,y);null===m?k=D:m.sibling=D;m=D;t=A}if(q.done)return c(e,t),k;if(null===t){for(;!q.done;y++,q=h.next())q=p(e,q.value,l),null!==q&&(g=f(q,g,y),null===m?k=q:m.sibling=q,m=q);return k}for(t=d(e,t);!q.done;y++,q=h.next())q=z(t,e,y,q.value,l),null!==q&&(a&&null!== +q.alternate&&t.delete(null===q.key?y:q.key),g=f(q,g,y),null===m?k=q:m.sibling=q,m=q);a&&t.forEach(function(a){return b(e,a)});return k}return function(a,d,f,h){var k="object"===typeof f&&null!==f&&f.type===ab&&null===f.key;k&&(f=f.props.children);var l="object"===typeof f&&null!==f;if(l)switch(f.$$typeof){case Za:a:{l=f.key;for(k=d;null!==k;){if(k.key===l){switch(k.tag){case 7:if(f.type===ab){c(a,k.sibling);d=e(k,f.props.children);d.return=a;a=d;break a}break;default:if(k.elementType===f.type){c(a, +k.sibling);d=e(k,f.props);d.ref=Pg(a,k,f);d.return=a;a=d;break a}}c(a,k);break}else b(a,k);k=k.sibling}f.type===ab?(d=Wg(f.props.children,a.mode,h,f.key),d.return=a,a=d):(h=Ug(f.type,f.key,f.props,null,a.mode,h),h.ref=Pg(a,d,f),h.return=a,a=h)}return g(a);case $a:a:{for(k=f.key;null!==d;){if(d.key===k)if(4===d.tag&&d.stateNode.containerInfo===f.containerInfo&&d.stateNode.implementation===f.implementation){c(a,d.sibling);d=e(d,f.children||[]);d.return=a;a=d;break a}else{c(a,d);break}else b(a,d);d= +d.sibling}d=Vg(f,a.mode,h);d.return=a;a=d}return g(a)}if("string"===typeof f||"number"===typeof f)return f=""+f,null!==d&&6===d.tag?(c(a,d.sibling),d=e(d,f),d.return=a,a=d):(c(a,d),d=Tg(f,a.mode,h),d.return=a,a=d),g(a);if(Og(f))return ca(a,d,f,h);if(nb(f))return D(a,d,f,h);l&&Qg(a,f);if("undefined"===typeof f&&!k)switch(a.tag){case 1:case 0:throw a=a.type,Error(u(152,a.displayName||a.name||"Component"));}return c(a,d)}}var Xg=Rg(!0),Yg=Rg(!1),Zg={},$g={current:Zg},ah={current:Zg},bh={current:Zg}; +function ch(a){if(a===Zg)throw Error(u(174));return a}function dh(a,b){I(bh,b);I(ah,a);I($g,Zg);a=b.nodeType;switch(a){case 9:case 11:b=(b=b.documentElement)?b.namespaceURI:Ob(null,"");break;default:a=8===a?b.parentNode:b,b=a.namespaceURI||null,a=a.tagName,b=Ob(b,a)}H($g);I($g,b)}function eh(){H($g);H(ah);H(bh)}function fh(a){ch(bh.current);var b=ch($g.current);var c=Ob(b,a.type);b!==c&&(I(ah,a),I($g,c))}function gh(a){ah.current===a&&(H($g),H(ah))}var M={current:0}; +function hh(a){for(var b=a;null!==b;){if(13===b.tag){var c=b.memoizedState;if(null!==c&&(c=c.dehydrated,null===c||c.data===Bd||c.data===Cd))return b}else if(19===b.tag&&void 0!==b.memoizedProps.revealOrder){if(0!==(b.effectTag&64))return b}else if(null!==b.child){b.child.return=b;b=b.child;continue}if(b===a)break;for(;null===b.sibling;){if(null===b.return||b.return===a)return null;b=b.return}b.sibling.return=b.return;b=b.sibling}return null}function ih(a,b){return{responder:a,props:b}} +var jh=Wa.ReactCurrentDispatcher,kh=Wa.ReactCurrentBatchConfig,lh=0,N=null,O=null,P=null,mh=!1;function Q(){throw Error(u(321));}function nh(a,b){if(null===b)return!1;for(var c=0;cf))throw Error(u(301));f+=1;P=O=null;b.updateQueue=null;jh.current=rh;a=c(d,e)}while(b.expirationTime===lh)}jh.current=sh;b=null!==O&&null!==O.next;lh=0;P=O=N=null;mh=!1;if(b)throw Error(u(300));return a} +function th(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};null===P?N.memoizedState=P=a:P=P.next=a;return P}function uh(){if(null===O){var a=N.alternate;a=null!==a?a.memoizedState:null}else a=O.next;var b=null===P?N.memoizedState:P.next;if(null!==b)P=b,O=a;else{if(null===a)throw Error(u(310));O=a;a={memoizedState:O.memoizedState,baseState:O.baseState,baseQueue:O.baseQueue,queue:O.queue,next:null};null===P?N.memoizedState=P=a:P=P.next=a}return P} +function vh(a,b){return"function"===typeof b?b(a):b} +function wh(a){var b=uh(),c=b.queue;if(null===c)throw Error(u(311));c.lastRenderedReducer=a;var d=O,e=d.baseQueue,f=c.pending;if(null!==f){if(null!==e){var g=e.next;e.next=f.next;f.next=g}d.baseQueue=e=f;c.pending=null}if(null!==e){e=e.next;d=d.baseState;var h=g=f=null,k=e;do{var l=k.expirationTime;if(lN.expirationTime&& +(N.expirationTime=l,Bg(l))}else null!==h&&(h=h.next={expirationTime:1073741823,suspenseConfig:k.suspenseConfig,action:k.action,eagerReducer:k.eagerReducer,eagerState:k.eagerState,next:null}),Ag(l,k.suspenseConfig),d=k.eagerReducer===a?k.eagerState:a(d,k.action);k=k.next}while(null!==k&&k!==e);null===h?f=d:h.next=g;$e(d,b.memoizedState)||(rg=!0);b.memoizedState=d;b.baseState=f;b.baseQueue=h;c.lastRenderedState=d}return[b.memoizedState,c.dispatch]} +function xh(a){var b=uh(),c=b.queue;if(null===c)throw Error(u(311));c.lastRenderedReducer=a;var d=c.dispatch,e=c.pending,f=b.memoizedState;if(null!==e){c.pending=null;var g=e=e.next;do f=a(f,g.action),g=g.next;while(g!==e);$e(f,b.memoizedState)||(rg=!0);b.memoizedState=f;null===b.baseQueue&&(b.baseState=f);c.lastRenderedState=f}return[f,d]} +function yh(a){var b=th();"function"===typeof a&&(a=a());b.memoizedState=b.baseState=a;a=b.queue={pending:null,dispatch:null,lastRenderedReducer:vh,lastRenderedState:a};a=a.dispatch=zh.bind(null,N,a);return[b.memoizedState,a]}function Ah(a,b,c,d){a={tag:a,create:b,destroy:c,deps:d,next:null};b=N.updateQueue;null===b?(b={lastEffect:null},N.updateQueue=b,b.lastEffect=a.next=a):(c=b.lastEffect,null===c?b.lastEffect=a.next=a:(d=c.next,c.next=a,a.next=d,b.lastEffect=a));return a} +function Bh(){return uh().memoizedState}function Ch(a,b,c,d){var e=th();N.effectTag|=a;e.memoizedState=Ah(1|b,c,void 0,void 0===d?null:d)}function Dh(a,b,c,d){var e=uh();d=void 0===d?null:d;var f=void 0;if(null!==O){var g=O.memoizedState;f=g.destroy;if(null!==d&&nh(d,g.deps)){Ah(b,c,f,d);return}}N.effectTag|=a;e.memoizedState=Ah(1|b,c,f,d)}function Eh(a,b){return Ch(516,4,a,b)}function Fh(a,b){return Dh(516,4,a,b)}function Gh(a,b){return Dh(4,2,a,b)} +function Hh(a,b){if("function"===typeof b)return a=a(),b(a),function(){b(null)};if(null!==b&&void 0!==b)return a=a(),b.current=a,function(){b.current=null}}function Ih(a,b,c){c=null!==c&&void 0!==c?c.concat([a]):null;return Dh(4,2,Hh.bind(null,b,a),c)}function Jh(){}function Kh(a,b){th().memoizedState=[a,void 0===b?null:b];return a}function Lh(a,b){var c=uh();b=void 0===b?null:b;var d=c.memoizedState;if(null!==d&&null!==b&&nh(b,d[1]))return d[0];c.memoizedState=[a,b];return a} +function Mh(a,b){var c=uh();b=void 0===b?null:b;var d=c.memoizedState;if(null!==d&&null!==b&&nh(b,d[1]))return d[0];a=a();c.memoizedState=[a,b];return a}function Nh(a,b,c){var d=ag();cg(98>d?98:d,function(){a(!0)});cg(97\x3c/script>",a=a.removeChild(a.firstChild)):"string"===typeof d.is?a=g.createElement(e,{is:d.is}):(a=g.createElement(e),"select"===e&&(g=a,d.multiple?g.multiple=!0:d.size&&(g.size=d.size))):a=g.createElementNS(a,e);a[Md]=b;a[Nd]=d;ni(a,b,!1,!1);b.stateNode=a;g=pd(e,d);switch(e){case "iframe":case "object":case "embed":F("load", +a);h=d;break;case "video":case "audio":for(h=0;hd.tailExpiration&&1b)&&tj.set(a,b)))}} +function xj(a,b){a.expirationTimea?c:a;return 2>=a&&b!==a?0:a} +function Z(a){if(0!==a.lastExpiredTime)a.callbackExpirationTime=1073741823,a.callbackPriority=99,a.callbackNode=eg(yj.bind(null,a));else{var b=zj(a),c=a.callbackNode;if(0===b)null!==c&&(a.callbackNode=null,a.callbackExpirationTime=0,a.callbackPriority=90);else{var d=Gg();1073741823===b?d=99:1===b||2===b?d=95:(d=10*(1073741821-b)-10*(1073741821-d),d=0>=d?99:250>=d?98:5250>=d?97:95);if(null!==c){var e=a.callbackPriority;if(a.callbackExpirationTime===b&&e>=d)return;c!==Tf&&Kf(c)}a.callbackExpirationTime= +b;a.callbackPriority=d;b=1073741823===b?eg(yj.bind(null,a)):dg(d,Bj.bind(null,a),{timeout:10*(1073741821-b)-$f()});a.callbackNode=b}}} +function Bj(a,b){wj=0;if(b)return b=Gg(),Cj(a,b),Z(a),null;var c=zj(a);if(0!==c){b=a.callbackNode;if((W&(fj|gj))!==V)throw Error(u(327));Dj();a===T&&c===U||Ej(a,c);if(null!==X){var d=W;W|=fj;var e=Fj();do try{Gj();break}catch(h){Hj(a,h)}while(1);ng();W=d;cj.current=e;if(S===hj)throw b=kj,Ej(a,c),xi(a,c),Z(a),b;if(null===X)switch(e=a.finishedWork=a.current.alternate,a.finishedExpirationTime=c,d=S,T=null,d){case ti:case hj:throw Error(u(345));case ij:Cj(a,2=c){a.lastPingedTime=c;Ej(a,c);break}}f=zj(a);if(0!==f&&f!==c)break;if(0!==d&&d!==c){a.lastPingedTime=d;break}a.timeoutHandle=Hd(Jj.bind(null,a),e);break}Jj(a);break;case vi:xi(a,c);d=a.lastSuspendedTime;c===d&&(a.nextKnownPendingLevel=Ij(e));if(oj&&(e=a.lastPingedTime,0===e||e>=c)){a.lastPingedTime=c;Ej(a,c);break}e=zj(a);if(0!==e&&e!==c)break;if(0!==d&&d!==c){a.lastPingedTime= +d;break}1073741823!==mj?d=10*(1073741821-mj)-$f():1073741823===lj?d=0:(d=10*(1073741821-lj)-5E3,e=$f(),c=10*(1073741821-c)-e,d=e-d,0>d&&(d=0),d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3E3>d?3E3:4320>d?4320:1960*bj(d/1960))-d,c=d?d=0:(e=g.busyDelayMs|0,f=$f()-(10*(1073741821-f)-(g.timeoutMs|0||5E3)),d=f<=e?0:e+d-f);if(10 component higher in the tree to provide a loading indicator or placeholder to display."+qb(g))}S!== +jj&&(S=ij);h=Ai(h,g);p=f;do{switch(p.tag){case 3:k=h;p.effectTag|=4096;p.expirationTime=b;var B=Xi(p,k,b);yg(p,B);break a;case 1:k=h;var w=p.type,ub=p.stateNode;if(0===(p.effectTag&64)&&("function"===typeof w.getDerivedStateFromError||null!==ub&&"function"===typeof ub.componentDidCatch&&(null===aj||!aj.has(ub)))){p.effectTag|=4096;p.expirationTime=b;var vb=$i(p,k,b);yg(p,vb);break a}}p=p.return}while(null!==p)}X=Pj(X)}catch(Xc){b=Xc;continue}break}while(1)} +function Fj(){var a=cj.current;cj.current=sh;return null===a?sh:a}function Ag(a,b){awi&&(wi=a)}function Kj(){for(;null!==X;)X=Qj(X)}function Gj(){for(;null!==X&&!Uf();)X=Qj(X)}function Qj(a){var b=Rj(a.alternate,a,U);a.memoizedProps=a.pendingProps;null===b&&(b=Pj(a));dj.current=null;return b} +function Pj(a){X=a;do{var b=X.alternate;a=X.return;if(0===(X.effectTag&2048)){b=si(b,X,U);if(1===U||1!==X.childExpirationTime){for(var c=0,d=X.child;null!==d;){var e=d.expirationTime,f=d.childExpirationTime;e>c&&(c=e);f>c&&(c=f);d=d.sibling}X.childExpirationTime=c}if(null!==b)return b;null!==a&&0===(a.effectTag&2048)&&(null===a.firstEffect&&(a.firstEffect=X.firstEffect),null!==X.lastEffect&&(null!==a.lastEffect&&(a.lastEffect.nextEffect=X.firstEffect),a.lastEffect=X.lastEffect),1a?b:a}function Jj(a){var b=ag();cg(99,Sj.bind(null,a,b));return null} +function Sj(a,b){do Dj();while(null!==rj);if((W&(fj|gj))!==V)throw Error(u(327));var c=a.finishedWork,d=a.finishedExpirationTime;if(null===c)return null;a.finishedWork=null;a.finishedExpirationTime=0;if(c===a.current)throw Error(u(177));a.callbackNode=null;a.callbackExpirationTime=0;a.callbackPriority=90;a.nextKnownPendingLevel=0;var e=Ij(c);a.firstPendingTime=e;d<=a.lastSuspendedTime?a.firstSuspendedTime=a.lastSuspendedTime=a.nextKnownPendingLevel=0:d<=a.firstSuspendedTime&&(a.firstSuspendedTime= +d-1);d<=a.lastPingedTime&&(a.lastPingedTime=0);d<=a.lastExpiredTime&&(a.lastExpiredTime=0);a===T&&(X=T=null,U=0);1h&&(l=h,h=g,g=l),l=vd(q,g),m=vd(q,h),l&&m&&(1!==w.rangeCount||w.anchorNode!==l.node||w.anchorOffset!==l.offset||w.focusNode!==m.node||w.focusOffset!==m.offset)&&(B=B.createRange(),B.setStart(l.node,l.offset),w.removeAllRanges(),g>h?(w.addRange(B),w.extend(m.node,m.offset)):(B.setEnd(m.node,m.offset),w.addRange(B))))));B=[];for(w=q;w=w.parentNode;)1===w.nodeType&&B.push({element:w,left:w.scrollLeft, +top:w.scrollTop});"function"===typeof q.focus&&q.focus();for(q=0;q=c)return ji(a,b,c);I(M,M.current&1);b=$h(a,b,c);return null!==b?b.sibling:null}I(M,M.current&1);break;case 19:d=b.childExpirationTime>=c;if(0!==(a.effectTag&64)){if(d)return mi(a,b,c);b.effectTag|=64}e=b.memoizedState;null!==e&&(e.rendering=null,e.tail=null);I(M,M.current);if(!d)return null}return $h(a,b,c)}rg=!1}}else rg=!1;b.expirationTime=0;switch(b.tag){case 2:d=b.type;null!==a&&(a.alternate=null,b.alternate=null,b.effectTag|=2);a=b.pendingProps;e=Cf(b,J.current);qg(b,c);e=oh(null, +b,d,a,e,c);b.effectTag|=1;if("object"===typeof e&&null!==e&&"function"===typeof e.render&&void 0===e.$$typeof){b.tag=1;b.memoizedState=null;b.updateQueue=null;if(L(d)){var f=!0;Gf(b)}else f=!1;b.memoizedState=null!==e.state&&void 0!==e.state?e.state:null;ug(b);var g=d.getDerivedStateFromProps;"function"===typeof g&&Fg(b,d,g,a);e.updater=Jg;b.stateNode=e;e._reactInternalFiber=b;Ng(b,d,a,c);b=gi(null,b,d,!0,f,c)}else b.tag=0,R(null,b,e,c),b=b.child;return b;case 16:a:{e=b.elementType;null!==a&&(a.alternate= +null,b.alternate=null,b.effectTag|=2);a=b.pendingProps;ob(e);if(1!==e._status)throw e._result;e=e._result;b.type=e;f=b.tag=Xj(e);a=ig(e,a);switch(f){case 0:b=di(null,b,e,a,c);break a;case 1:b=fi(null,b,e,a,c);break a;case 11:b=Zh(null,b,e,a,c);break a;case 14:b=ai(null,b,e,ig(e.type,a),d,c);break a}throw Error(u(306,e,""));}return b;case 0:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:ig(d,e),di(a,b,d,e,c);case 1:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:ig(d,e),fi(a,b,d,e,c); +case 3:hi(b);d=b.updateQueue;if(null===a||null===d)throw Error(u(282));d=b.pendingProps;e=b.memoizedState;e=null!==e?e.element:null;vg(a,b);zg(b,d,null,c);d=b.memoizedState.element;if(d===e)Xh(),b=$h(a,b,c);else{if(e=b.stateNode.hydrate)Ph=Jd(b.stateNode.containerInfo.firstChild),Oh=b,e=Qh=!0;if(e)for(c=Yg(b,null,d,c),b.child=c;c;)c.effectTag=c.effectTag&-3|1024,c=c.sibling;else R(a,b,d,c),Xh();b=b.child}return b;case 5:return fh(b),null===a&&Uh(b),d=b.type,e=b.pendingProps,f=null!==a?a.memoizedProps: +null,g=e.children,Gd(d,e)?g=null:null!==f&&Gd(d,f)&&(b.effectTag|=16),ei(a,b),b.mode&4&&1!==c&&e.hidden?(b.expirationTime=b.childExpirationTime=1,b=null):(R(a,b,g,c),b=b.child),b;case 6:return null===a&&Uh(b),null;case 13:return ji(a,b,c);case 4:return dh(b,b.stateNode.containerInfo),d=b.pendingProps,null===a?b.child=Xg(b,null,d,c):R(a,b,d,c),b.child;case 11:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:ig(d,e),Zh(a,b,d,e,c);case 7:return R(a,b,b.pendingProps,c),b.child;case 8:return R(a, +b,b.pendingProps.children,c),b.child;case 12:return R(a,b,b.pendingProps.children,c),b.child;case 10:a:{d=b.type._context;e=b.pendingProps;g=b.memoizedProps;f=e.value;var h=b.type._context;I(jg,h._currentValue);h._currentValue=f;if(null!==g)if(h=g.value,f=$e(h,f)?0:("function"===typeof d._calculateChangedBits?d._calculateChangedBits(h,f):1073741823)|0,0===f){if(g.children===e.children&&!K.current){b=$h(a,b,c);break a}}else for(h=b.child,null!==h&&(h.return=b);null!==h;){var k=h.dependencies;if(null!== +k){g=h.child;for(var l=k.firstContext;null!==l;){if(l.context===d&&0!==(l.observedBits&f)){1===h.tag&&(l=wg(c,null),l.tag=2,xg(h,l));h.expirationTime=b&&a<=b}function Mj(a,b){var c=a.firstSuspendedTime,d=a.lastSuspendedTime;cb||0===c)a.lastSuspendedTime=b;b<=a.lastPingedTime&&(a.lastPingedTime=0);b<=a.lastExpiredTime&&(a.lastExpiredTime=0)} -function Nj(a,b){b>a.firstPendingTime&&(a.firstPendingTime=b);var c=a.firstSuspendedTime;0!==c&&(b>=c?a.firstSuspendedTime=a.lastSuspendedTime=a.nextKnownPendingLevel=0:b>=a.lastSuspendedTime&&(a.lastSuspendedTime=b+1),b>a.nextKnownPendingLevel&&(a.nextKnownPendingLevel=b))}function Rj(a,b){var c=a.lastExpiredTime;if(0===c||c>b)a.lastExpiredTime=b} -function rk(a,b,c,d){var e=b.current,f=Pg(),g=Mg.suspense;f=Qg(f,e,g);a:if(c){c=c._reactInternalFiber;b:{if(ec(c)!==c||1!==c.tag)throw Error(u(170));var h=c;do{switch(h.tag){case 3:h=h.stateNode.context;break b;case 1:if(L(h.type)){h=h.stateNode.__reactInternalMemoizedMergedChildContext;break b}}h=h.return}while(null!==h);throw Error(u(171));}if(1===c.tag){var k=c.type;if(L(k)){c=If(c,k,h);break a}}c=h}else c=Cf;null===b.context?b.context=c:b.pendingContext=c;b=Bg(f,g);b.payload={element:a};d=void 0=== -d?null:d;null!==d&&(b.callback=d);Dg(e,b);Rg(e,f);return f}function sk(a){a=a.current;if(!a.child)return null;switch(a.child.tag){case 5:return a.child.stateNode;default:return a.child.stateNode}}function tk(a,b){a=a.memoizedState;null!==a&&null!==a.dehydrated&&a.retryTime=b&&a<=b}function xi(a,b){var c=a.firstSuspendedTime,d=a.lastSuspendedTime;cb||0===c)a.lastSuspendedTime=b;b<=a.lastPingedTime&&(a.lastPingedTime=0);b<=a.lastExpiredTime&&(a.lastExpiredTime=0)} +function yi(a,b){b>a.firstPendingTime&&(a.firstPendingTime=b);var c=a.firstSuspendedTime;0!==c&&(b>=c?a.firstSuspendedTime=a.lastSuspendedTime=a.nextKnownPendingLevel=0:b>=a.lastSuspendedTime&&(a.lastSuspendedTime=b+1),b>a.nextKnownPendingLevel&&(a.nextKnownPendingLevel=b))}function Cj(a,b){var c=a.lastExpiredTime;if(0===c||c>b)a.lastExpiredTime=b} +function bk(a,b,c,d){var e=b.current,f=Gg(),g=Dg.suspense;f=Hg(f,e,g);a:if(c){c=c._reactInternalFiber;b:{if(dc(c)!==c||1!==c.tag)throw Error(u(170));var h=c;do{switch(h.tag){case 3:h=h.stateNode.context;break b;case 1:if(L(h.type)){h=h.stateNode.__reactInternalMemoizedMergedChildContext;break b}}h=h.return}while(null!==h);throw Error(u(171));}if(1===c.tag){var k=c.type;if(L(k)){c=Ff(c,k,h);break a}}c=h}else c=Af;null===b.context?b.context=c:b.pendingContext=c;b=wg(f,g);b.payload={element:a};d=void 0=== +d?null:d;null!==d&&(b.callback=d);xg(e,b);Ig(e,f);return f}function ck(a){a=a.current;if(!a.child)return null;switch(a.child.tag){case 5:return a.child.stateNode;default:return a.child.stateNode}}function dk(a,b){a=a.memoizedState;null!==a&&null!==a.dehydrated&&a.retryTime=G};l=function(){};exports.unstable_forceFrameRate=function(a){0>a||125>>1,e=a[d];if(void 0!==e&&0K(n,c))void 0!==r&&0>K(r,n)?(a[d]=r,a[v]=c,d=v):(a[d]=n,a[m]=c,d=m);else if(void 0!==r&&0>K(r,c))a[d]=r,a[v]=c,d=v;else break a}}return b}return null}function K(a,b){var c=a.sortIndex-b.sortIndex;return 0!==c?c:a.id-b.id}var N=[],O=[],P=1,Q=null,R=3,S=!1,T=!1,U=!1; function V(a){for(var b=L(O);null!==b;){if(null===b.callback)M(O);else if(b.startTime<=a)M(O),b.sortIndex=b.expirationTime,J(N,b);else break;b=L(O)}}function W(a){U=!1;V(a);if(!T)if(null!==L(N))T=!0,f(X);else{var b=L(O);null!==b&&g(W,b.startTime-a)}} function X(a,b){T=!1;U&&(U=!1,h());S=!0;var c=R;try{V(b);for(Q=L(N);null!==Q&&(!(Q.expirationTime>b)||a&&!k());){var d=Q.callback;if(null!==d){Q.callback=null;R=Q.priorityLevel;var e=d(Q.expirationTime<=b);b=exports.unstable_now();"function"===typeof e?Q.callback=e:Q===L(N)&&M(N);V(b)}else M(N);Q=L(N)}if(null!==Q)var m=!0;else{var n=L(O);null!==n&&g(W,n.startTime-b);m=!1}return m}finally{Q=null,R=c,S=!1}} -function Y(a){switch(a){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1E4;default:return 5E3}}var Z=l;exports.unstable_ImmediatePriority=1;exports.unstable_UserBlockingPriority=2;exports.unstable_NormalPriority=3;exports.unstable_IdlePriority=5;exports.unstable_LowPriority=4;exports.unstable_runWithPriority=function(a,b){switch(a){case 1:case 2:case 3:case 4:case 5:break;default:a=3}var c=R;R=a;try{return b()}finally{R=c}}; -exports.unstable_next=function(a){switch(R){case 1:case 2:case 3:var b=3;break;default:b=R}var c=R;R=b;try{return a()}finally{R=c}}; -exports.unstable_scheduleCallback=function(a,b,c){var d=exports.unstable_now();if("object"===typeof c&&null!==c){var e=c.delay;e="number"===typeof e&&0d?(a.sortIndex=e,J(O,a),null===L(N)&&a===L(O)&&(U?h():U=!0,g(W,e-d))):(a.sortIndex=c,J(N,a),T||S||(T=!0,f(X)));return a};exports.unstable_cancelCallback=function(a){a.callback=null}; -exports.unstable_wrapCallback=function(a){var b=R;return function(){var c=R;R=b;try{return a.apply(this,arguments)}finally{R=c}}};exports.unstable_getCurrentPriorityLevel=function(){return R};exports.unstable_shouldYield=function(){var a=exports.unstable_now();V(a);var b=L(N);return b!==Q&&null!==Q&&null!==b&&null!==b.callback&&b.startTime<=a&&b.expirationTimed?(a.sortIndex=e,J(O,a),null===L(N)&&a===L(O)&&(U?h():U=!0,g(W,e-d))):(a.sortIndex=c,J(N,a),T||S||(T=!0,f(X)));return a}; +exports.unstable_shouldYield=function(){var a=exports.unstable_now();V(a);var b=L(N);return b!==Q&&null!==Q&&null!==b&&null!==b.callback&&b.startTime<=a&&b.expirationTime= deadline) { - // There's no time left. We may want to yield control of the main - // thread, so the browser can perform high priority tasks. The main ones - // are painting and user input. If there's a pending paint or a pending - // input, then we should yield. But if there's neither, then we can - // yield less often while remaining responsive. We'll eventually yield - // regardless, since there could be a pending paint that wasn't - // accompanied by a call to `requestPaint`, or other main thread tasks - // like network events. - if (needsPaint || scheduling.isInputPending()) { - // There is either a pending paint or a pending input. - return true; - } // There's no pending input. Only yield if we've reached the max - // yield interval. - - - return currentTime >= maxYieldInterval; - } else { - // There's still time left in the frame. - return false; - } - }; - - requestPaint = function () { - needsPaint = true; - }; - } else { + { // `isInputPending` is not available. Since we have no way of knowing if // there's pending input, always yield at the end of the frame. shouldYieldToHost = function () { @@ -30718,7 +34346,8 @@ typeof MessageChannel !== 'function') { exports.unstable_forceFrameRate = function (fps) { if (fps < 0 || fps > 125) { - console.error('forceFrameRate takes a positive int between 0 and 125, ' + 'forcing framerates higher than 125 fps is not unsupported'); + // Using console['error'] to evade Babel and ESLint + console['error']('forceFrameRate takes a positive int between 0 and 125, ' + 'forcing framerates higher than 125 fps is not unsupported'); return; } @@ -30759,10 +34388,6 @@ typeof MessageChannel !== 'function') { } else { isMessageLoopRunning = false; } // Yielding to the browser will give it a chance to paint, so we can - // reset this. - - - needsPaint = false; }; var channel = new MessageChannel(); @@ -30821,7 +34446,7 @@ function siftUp(heap, node, i) { var index = i; while (true) { - var parentIndex = Math.floor((index - 1) / 2); + var parentIndex = index - 1 >>> 1; var parent = heap[parentIndex]; if (parent !== undefined && compare(parent, node) > 0) { @@ -30884,18 +34509,18 @@ var IdlePriority = 5; var runIdCounter = 0; var mainThreadIdCounter = 0; var profilingStateSize = 4; -var sharedProfilingBuffer = enableProfiling ? // $FlowFixMe Flow doesn't know about SharedArrayBuffer +var sharedProfilingBuffer = // $FlowFixMe Flow doesn't know about SharedArrayBuffer typeof SharedArrayBuffer === 'function' ? new SharedArrayBuffer(profilingStateSize * Int32Array.BYTES_PER_ELEMENT) : // $FlowFixMe Flow doesn't know about ArrayBuffer typeof ArrayBuffer === 'function' ? new ArrayBuffer(profilingStateSize * Int32Array.BYTES_PER_ELEMENT) : null // Don't crash the init path on IE9 -: null; -var profilingState = enableProfiling && sharedProfilingBuffer !== null ? new Int32Array(sharedProfilingBuffer) : []; // We can't read this but it helps save bytes for null checks +; +var profilingState = sharedProfilingBuffer !== null ? new Int32Array(sharedProfilingBuffer) : []; // We can't read this but it helps save bytes for null checks var PRIORITY = 0; var CURRENT_TASK_ID = 1; var CURRENT_RUN_ID = 2; var QUEUE_SIZE = 3; -if (enableProfiling) { +{ profilingState[PRIORITY] = NoPriority; // This is maintained with a counter, because the size of the priority queue // array might include canceled tasks. @@ -30929,7 +34554,8 @@ function logEvent(entries) { eventLogSize *= 2; if (eventLogSize > MAX_EVENT_LOG_SIZE) { - console.error("Scheduler Profiling: Event log exceeded maximum size. Don't " + 'forget to call `stopLoggingProfilingEvents()`.'); + // Using console['error'] to evade Babel and ESLint + console['error']("Scheduler Profiling: Event log exceeded maximum size. Don't " + 'forget to call `stopLoggingProfilingEvents()`.'); stopLoggingProfilingEvents(); return; } @@ -30959,7 +34585,7 @@ function stopLoggingProfilingEvents() { return buffer; } function markTaskStart(task, ms) { - if (enableProfiling) { + { profilingState[QUEUE_SIZE]++; if (eventLog !== null) { @@ -30971,7 +34597,7 @@ function markTaskStart(task, ms) { } } function markTaskCompleted(task, ms) { - if (enableProfiling) { + { profilingState[PRIORITY] = NoPriority; profilingState[CURRENT_TASK_ID] = 0; profilingState[QUEUE_SIZE]--; @@ -30982,7 +34608,7 @@ function markTaskCompleted(task, ms) { } } function markTaskCanceled(task, ms) { - if (enableProfiling) { + { profilingState[QUEUE_SIZE]--; if (eventLog !== null) { @@ -30991,7 +34617,7 @@ function markTaskCanceled(task, ms) { } } function markTaskErrored(task, ms) { - if (enableProfiling) { + { profilingState[PRIORITY] = NoPriority; profilingState[CURRENT_TASK_ID] = 0; profilingState[QUEUE_SIZE]--; @@ -31002,7 +34628,7 @@ function markTaskErrored(task, ms) { } } function markTaskRun(task, ms) { - if (enableProfiling) { + { runIdCounter++; profilingState[PRIORITY] = task.priorityLevel; profilingState[CURRENT_TASK_ID] = task.id; @@ -31014,7 +34640,7 @@ function markTaskRun(task, ms) { } } function markTaskYield(task, ms) { - if (enableProfiling) { + { profilingState[PRIORITY] = NoPriority; profilingState[CURRENT_TASK_ID] = 0; profilingState[CURRENT_RUN_ID] = 0; @@ -31025,7 +34651,7 @@ function markTaskYield(task, ms) { } } function markSchedulerSuspended(ms) { - if (enableProfiling) { + { mainThreadIdCounter++; if (eventLog !== null) { @@ -31034,7 +34660,7 @@ function markSchedulerSuspended(ms) { } } function markSchedulerUnsuspended(ms) { - if (enableProfiling) { + { if (eventLog !== null) { logEvent([SchedulerResumeEvent, ms * 1000, mainThreadIdCounter]); } @@ -31059,8 +34685,6 @@ var taskQueue = []; var timerQueue = []; // Incrementing id counter. Used to maintain insertion order. var taskIdCounter = 1; // Pausing the scheduler is useful for debugging. - -var isSchedulerPaused = false; var currentTask = null; var currentPriorityLevel = NormalPriority; // This is set while performing work, to prevent re-entrancy. @@ -31082,7 +34706,7 @@ function advanceTimers(currentTime) { timer.sortIndex = timer.expirationTime; push(taskQueue, timer); - if (enableProfiling) { + { markTaskStart(timer, currentTime); timer.isQueued = true; } @@ -31114,7 +34738,7 @@ function handleTimeout(currentTime) { } function flushWork(hasTimeRemaining, initialTime) { - if (enableProfiling) { + { markSchedulerUnsuspended(initialTime); } // We'll need a host callback the next time work is scheduled. @@ -31152,7 +34776,7 @@ function flushWork(hasTimeRemaining, initialTime) { currentPriorityLevel = previousPriorityLevel; isPerformingWork = false; - if (enableProfiling) { + { var _currentTime = exports.unstable_now(); markSchedulerSuspended(_currentTime); @@ -31165,7 +34789,7 @@ function workLoop(hasTimeRemaining, initialTime) { advanceTimers(currentTime); currentTask = peek(taskQueue); - while (currentTask !== null && !(enableSchedulerDebugging && isSchedulerPaused)) { + while (currentTask !== null && !(enableSchedulerDebugging )) { if (currentTask.expirationTime > currentTime && (!hasTimeRemaining || shouldYieldToHost())) { // This currentTask hasn't expired, and we've reached the deadline. break; @@ -31185,7 +34809,7 @@ function workLoop(hasTimeRemaining, initialTime) { currentTask.callback = continuationCallback; markTaskYield(currentTask, currentTime); } else { - if (enableProfiling) { + { markTaskCompleted(currentTask, currentTime); currentTask.isQueued = false; } @@ -31332,7 +34956,7 @@ function unstable_scheduleCallback(priorityLevel, callback, options) { sortIndex: -1 }; - if (enableProfiling) { + { newTask.isQueued = false; } @@ -31357,7 +34981,7 @@ function unstable_scheduleCallback(priorityLevel, callback, options) { newTask.sortIndex = expirationTime; push(taskQueue, newTask); - if (enableProfiling) { + { markTaskStart(newTask, currentTime); newTask.isQueued = true; } // Schedule a host callback, if needed. If we're already performing work, @@ -31374,11 +34998,9 @@ function unstable_scheduleCallback(priorityLevel, callback, options) { } function unstable_pauseExecution() { - isSchedulerPaused = true; } function unstable_continueExecution() { - isSchedulerPaused = false; if (!isHostCallbackScheduled && !isPerformingWork) { isHostCallbackScheduled = true; @@ -31391,7 +35013,7 @@ function unstable_getFirstCallbackNode() { } function unstable_cancelCallback(task) { - if (enableProfiling) { + { if (task.isQueued) { var currentTime = exports.unstable_now(); markTaskCanceled(task, currentTime); @@ -31417,45 +35039,45 @@ function unstable_shouldYield() { } var unstable_requestPaint = requestPaint; -var unstable_Profiling = enableProfiling ? { +var unstable_Profiling = { startLoggingProfilingEvents: startLoggingProfilingEvents, stopLoggingProfilingEvents: stopLoggingProfilingEvents, sharedProfilingBuffer: sharedProfilingBuffer -} : null; +} ; -exports.unstable_ImmediatePriority = ImmediatePriority; -exports.unstable_UserBlockingPriority = UserBlockingPriority; -exports.unstable_NormalPriority = NormalPriority; exports.unstable_IdlePriority = IdlePriority; +exports.unstable_ImmediatePriority = ImmediatePriority; exports.unstable_LowPriority = LowPriority; -exports.unstable_runWithPriority = unstable_runWithPriority; -exports.unstable_next = unstable_next; -exports.unstable_scheduleCallback = unstable_scheduleCallback; +exports.unstable_NormalPriority = NormalPriority; +exports.unstable_Profiling = unstable_Profiling; +exports.unstable_UserBlockingPriority = UserBlockingPriority; exports.unstable_cancelCallback = unstable_cancelCallback; -exports.unstable_wrapCallback = unstable_wrapCallback; -exports.unstable_getCurrentPriorityLevel = unstable_getCurrentPriorityLevel; -exports.unstable_shouldYield = unstable_shouldYield; -exports.unstable_requestPaint = unstable_requestPaint; exports.unstable_continueExecution = unstable_continueExecution; -exports.unstable_pauseExecution = unstable_pauseExecution; +exports.unstable_getCurrentPriorityLevel = unstable_getCurrentPriorityLevel; exports.unstable_getFirstCallbackNode = unstable_getFirstCallbackNode; -exports.unstable_Profiling = unstable_Profiling; +exports.unstable_next = unstable_next; +exports.unstable_pauseExecution = unstable_pauseExecution; +exports.unstable_requestPaint = unstable_requestPaint; +exports.unstable_runWithPriority = unstable_runWithPriority; +exports.unstable_scheduleCallback = unstable_scheduleCallback; +exports.unstable_shouldYield = unstable_shouldYield; +exports.unstable_wrapCallback = unstable_wrapCallback; })(); } -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(/*! ./../../../../process/browser.js */ 3))) +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(/*! ./../../process/browser.js */ 6))) /***/ }), -/* 272 */ +/* 355 */ /*!*************************************************************!*\ !*** ./node_modules/react-dom/cjs/react-dom.development.js ***! \*************************************************************/ -/*! no static exports found */ +/*! dynamic exports provided */ /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -/* WEBPACK VAR INJECTION */(function(process) {/** @license React v16.12.0 +/* WEBPACK VAR INJECTION */(function(process) {/** @license React v16.14.0 * react-dom.development.js * * Copyright (c) Facebook, Inc. and its affiliates. @@ -31472,242 +35094,94 @@ if (process.env.NODE_ENV !== "production") { (function() { 'use strict'; -var React = __webpack_require__(/*! react */ 6); -var _assign = __webpack_require__(/*! object-assign */ 27); -var Scheduler = __webpack_require__(/*! scheduler */ 135); -var checkPropTypes = __webpack_require__(/*! prop-types/checkPropTypes */ 63); -var tracing = __webpack_require__(/*! scheduler/tracing */ 273); - -// Do not require this module directly! Use normal `invariant` calls with -// template literal strings. The messages will be replaced with error codes -// during build. - -/** - * Use invariant() to assert state which your program assumes to be true. - * - * Provide sprintf-style format (only %s is supported) and arguments - * to provide information about what broke and what you were - * expecting. - * - * The invariant message will be stripped in production, but the invariant - * will remain to ensure logic does not differ in production. - */ - -if (!React) { - { - throw Error("ReactDOM was loaded before React. Make sure you load the React package before loading ReactDOM."); - } -} - -/** - * Injectable ordering of event plugins. - */ -var eventPluginOrder = null; -/** - * Injectable mapping from names to event plugin modules. - */ - -var namesToPlugins = {}; -/** - * Recomputes the plugin list using the injected plugins and plugin ordering. - * - * @private - */ - -function recomputePluginOrdering() { - if (!eventPluginOrder) { - // Wait until an `eventPluginOrder` is injected. - return; - } - - for (var pluginName in namesToPlugins) { - var pluginModule = namesToPlugins[pluginName]; - var pluginIndex = eventPluginOrder.indexOf(pluginName); - - if (!(pluginIndex > -1)) { - { - throw Error("EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `" + pluginName + "`."); - } - } - - if (plugins[pluginIndex]) { - continue; - } - - if (!pluginModule.extractEvents) { - { - throw Error("EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `" + pluginName + "` does not."); - } - } - - plugins[pluginIndex] = pluginModule; - var publishedEvents = pluginModule.eventTypes; +var React = __webpack_require__(/*! react */ 5); +var _assign = __webpack_require__(/*! object-assign */ 32); +var Scheduler = __webpack_require__(/*! scheduler */ 175); +var checkPropTypes = __webpack_require__(/*! prop-types/checkPropTypes */ 85); +var tracing = __webpack_require__(/*! scheduler/tracing */ 356); - for (var eventName in publishedEvents) { - if (!publishEventForPlugin(publishedEvents[eventName], pluginModule, eventName)) { - { - throw Error("EventPluginRegistry: Failed to publish event `" + eventName + "` for plugin `" + pluginName + "`."); - } - } - } - } -} -/** - * Publishes an event so that it can be dispatched by the supplied plugin. - * - * @param {object} dispatchConfig Dispatch configuration for the event. - * @param {object} PluginModule Plugin publishing the event. - * @return {boolean} True if the event was successfully published. - * @private - */ - - -function publishEventForPlugin(dispatchConfig, pluginModule, eventName) { - if (!!eventNameDispatchConfigs.hasOwnProperty(eventName)) { - { - throw Error("EventPluginHub: More than one plugin attempted to publish the same event name, `" + eventName + "`."); - } - } - - eventNameDispatchConfigs[eventName] = dispatchConfig; - var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames; - - if (phasedRegistrationNames) { - for (var phaseName in phasedRegistrationNames) { - if (phasedRegistrationNames.hasOwnProperty(phaseName)) { - var phasedRegistrationName = phasedRegistrationNames[phaseName]; - publishRegistrationName(phasedRegistrationName, pluginModule, eventName); - } - } - - return true; - } else if (dispatchConfig.registrationName) { - publishRegistrationName(dispatchConfig.registrationName, pluginModule, eventName); - return true; - } - - return false; -} -/** - * Publishes a registration name that is used to identify dispatched events. - * - * @param {string} registrationName Registration name to add. - * @param {object} PluginModule Plugin publishing the event. - * @private - */ - - -function publishRegistrationName(registrationName, pluginModule, eventName) { - if (!!registrationNameModules[registrationName]) { - { - throw Error("EventPluginHub: More than one plugin attempted to publish the same registration name, `" + registrationName + "`."); - } - } - - registrationNameModules[registrationName] = pluginModule; - registrationNameDependencies[registrationName] = pluginModule.eventTypes[eventName].dependencies; - - { - var lowerCasedName = registrationName.toLowerCase(); - possibleRegistrationNames[lowerCasedName] = registrationName; +var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; // Prevent newer renderers from RTE when used with older react package versions. +// Current owner and dispatcher used to share the same ref, +// but PR #14548 split them out to better support the react-debug-tools package. - if (registrationName === 'onDoubleClick') { - possibleRegistrationNames.ondblclick = registrationName; - } - } +if (!ReactSharedInternals.hasOwnProperty('ReactCurrentDispatcher')) { + ReactSharedInternals.ReactCurrentDispatcher = { + current: null + }; } -/** - * Registers plugins so that they can extract and dispatch events. - * - * @see {EventPluginHub} - */ - -/** - * Ordered list of injected plugins. - */ - - -var plugins = []; -/** - * Mapping from event name to dispatch config - */ -var eventNameDispatchConfigs = {}; -/** - * Mapping from registration name to plugin module - */ - -var registrationNameModules = {}; -/** - * Mapping from registration name to event name - */ - -var registrationNameDependencies = {}; -/** - * Mapping from lowercase registration names to the properly cased version, - * used to warn in the case of missing event handlers. Available - * only in true. - * @type {Object} - */ - -var possibleRegistrationNames = {}; // Trust the developer to only use possibleRegistrationNames in true +if (!ReactSharedInternals.hasOwnProperty('ReactCurrentBatchConfig')) { + ReactSharedInternals.ReactCurrentBatchConfig = { + suspense: null + }; +} -/** - * Injects an ordering of plugins (by plugin name). This allows the ordering - * to be decoupled from injection of the actual plugins so that ordering is - * always deterministic regardless of packaging, on-the-fly injection, etc. - * - * @param {array} InjectedEventPluginOrder - * @internal - * @see {EventPluginHub.injection.injectEventPluginOrder} - */ +// by calls to these methods by a Babel plugin. +// +// In PROD (or in packages without access to React internals), +// they are left as they are instead. -function injectEventPluginOrder(injectedEventPluginOrder) { - if (!!eventPluginOrder) { - { - throw Error("EventPluginRegistry: Cannot inject event plugin ordering more than once. You are likely trying to load more than one copy of React."); +function warn(format) { + { + for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + args[_key - 1] = arguments[_key]; } - } // Clone the ordering so it cannot be dynamically mutated. + printWarning('warn', format, args); + } +} +function error(format) { + { + for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { + args[_key2 - 1] = arguments[_key2]; + } - eventPluginOrder = Array.prototype.slice.call(injectedEventPluginOrder); - recomputePluginOrdering(); + printWarning('error', format, args); + } } -/** - * Injects plugins to be used by `EventPluginHub`. The plugin names must be - * in the ordering injected by `injectEventPluginOrder`. - * - * Plugins can be injected as part of page initialization or on-the-fly. - * - * @param {object} injectedNamesToPlugins Map from names to plugin modules. - * @internal - * @see {EventPluginHub.injection.injectEventPluginsByName} - */ -function injectEventPluginsByName(injectedNamesToPlugins) { - var isOrderingDirty = false; +function printWarning(level, format, args) { + // When changing this logic, you might want to also + // update consoleWithStackDev.www.js as well. + { + var hasExistingStack = args.length > 0 && typeof args[args.length - 1] === 'string' && args[args.length - 1].indexOf('\n in') === 0; - for (var pluginName in injectedNamesToPlugins) { - if (!injectedNamesToPlugins.hasOwnProperty(pluginName)) { - continue; + if (!hasExistingStack) { + var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame; + var stack = ReactDebugCurrentFrame.getStackAddendum(); + + if (stack !== '') { + format += '%s'; + args = args.concat([stack]); + } } - var pluginModule = injectedNamesToPlugins[pluginName]; + var argsWithFormat = args.map(function (item) { + return '' + item; + }); // Careful: RN currently depends on this prefix - if (!namesToPlugins.hasOwnProperty(pluginName) || namesToPlugins[pluginName] !== pluginModule) { - if (!!namesToPlugins[pluginName]) { - { - throw Error("EventPluginRegistry: Cannot inject two different event plugins using the same name, `" + pluginName + "`."); - } - } + argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it + // breaks IE9: https://github.com/facebook/react/issues/13610 + // eslint-disable-next-line react-internal/no-production-logging - namesToPlugins[pluginName] = pluginModule; - isOrderingDirty = true; - } + Function.prototype.apply.call(console[level], console, argsWithFormat); + + try { + // --- Welcome to debugging React --- + // This error was thrown as a convenience so that you can use this stack + // to find the callsite that caused this warning to fire. + var argIndex = 0; + var message = 'Warning: ' + format.replace(/%s/g, function () { + return args[argIndex++]; + }); + throw new Error(message); + } catch (x) {} } +} - if (isOrderingDirty) { - recomputePluginOrdering(); +if (!React) { + { + throw Error( "ReactDOM was loaded before React. Make sure you load the React package before loading ReactDOM." ); } } @@ -31752,7 +35226,7 @@ var invokeGuardedCallbackImpl = function (name, func, context, a, b, c, d, e, f) // So we preemptively throw with a better message instead. if (!(typeof document !== 'undefined')) { { - throw Error("The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous."); + throw Error( "The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous." ); } } @@ -31944,64 +35418,12 @@ function clearCaughtError() { } else { { { - throw Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue."); + throw Error( "clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue." ); } } } } -/** - * Similar to invariant but only logs a warning if the condition is not met. - * This can be used to log issues in development environments in critical - * paths. Removing the logging code for production environments will keep the - * same logic and follow the same code paths. - */ -var warningWithoutStack = function () {}; - -{ - warningWithoutStack = function (condition, format) { - for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { - args[_key - 2] = arguments[_key]; - } - - if (format === undefined) { - throw new Error('`warningWithoutStack(condition, format, ...args)` requires a warning ' + 'message argument'); - } - - if (args.length > 8) { - // Check before the condition to catch violations early. - throw new Error('warningWithoutStack() currently supports at most 8 arguments.'); - } - - if (condition) { - return; - } - - if (typeof console !== 'undefined') { - var argsWithFormat = args.map(function (item) { - return '' + item; - }); - argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it - // breaks IE9: https://github.com/facebook/react/issues/13610 - - Function.prototype.apply.call(console.error, console, argsWithFormat); - } - - try { - // --- Welcome to debugging React --- - // This error was thrown as a convenience so that you can use this stack - // to find the callsite that caused this warning to fire. - var argIndex = 0; - var message = 'Warning: ' + format.replace(/%s/g, function () { - return args[argIndex++]; - }); - throw new Error(message); - } catch (x) {} - }; -} - -var warningWithoutStack$1 = warningWithoutStack; - var getFiberCurrentPropsFromNode = null; var getInstanceFromNode = null; var getNodeFromInstance = null; @@ -32011,7 +35433,9 @@ function setComponentTree(getFiberCurrentPropsFromNodeImpl, getInstanceFromNodeI getNodeFromInstance = getNodeFromInstanceImpl; { - !(getNodeFromInstance && getInstanceFromNode) ? warningWithoutStack$1(false, 'EventPluginUtils.setComponentTree(...): Injected ' + 'module is missing getNodeFromInstance or getInstanceFromNode.') : void 0; + if (!getNodeFromInstance || !getInstanceFromNode) { + error('EventPluginUtils.setComponentTree(...): Injected ' + 'module is missing getNodeFromInstance or getInstanceFromNode.'); + } } } var validateEventDispatches; @@ -32024,7 +35448,10 @@ var validateEventDispatches; var listenersLen = listenersIsArr ? dispatchListeners.length : dispatchListeners ? 1 : 0; var instancesIsArr = Array.isArray(dispatchInstances); var instancesLen = instancesIsArr ? dispatchInstances.length : dispatchInstances ? 1 : 0; - !(instancesIsArr === listenersIsArr && instancesLen === listenersLen) ? warningWithoutStack$1(false, 'EventPluginUtils: Invalid `event`.') : void 0; + + if (instancesIsArr !== listenersIsArr || instancesLen !== listenersLen) { + error('EventPluginUtils: Invalid `event`.'); + } }; } /** @@ -32069,273 +35496,6 @@ function executeDispatchesInOrder(event) { event._dispatchListeners = null; event._dispatchInstances = null; } -/** - * @see executeDispatchesInOrderStopAtTrueImpl - */ - - - -/** - * Execution of a "direct" dispatch - there must be at most one dispatch - * accumulated on the event or it is considered an error. It doesn't really make - * sense for an event with multiple dispatches (bubbled) to keep track of the - * return values at each dispatch execution, but it does tend to make sense when - * dealing with "direct" dispatches. - * - * @return {*} The return value of executing the single dispatch. - */ - - -/** - * @param {SyntheticEvent} event - * @return {boolean} True iff number of dispatches accumulated is greater than 0. - */ - -/** - * Accumulates items that must not be null or undefined into the first one. This - * is used to conserve memory by avoiding array allocations, and thus sacrifices - * API cleanness. Since `current` can be null before being passed in and not - * null after this function, make sure to assign it back to `current`: - * - * `a = accumulateInto(a, b);` - * - * This API should be sparingly used. Try `accumulate` for something cleaner. - * - * @return {*|array<*>} An accumulation of items. - */ - -function accumulateInto(current, next) { - if (!(next != null)) { - { - throw Error("accumulateInto(...): Accumulated items must not be null or undefined."); - } - } - - if (current == null) { - return next; - } // Both are not empty. Warning: Never call x.concat(y) when you are not - // certain that x is an Array (x could be a string with concat method). - - - if (Array.isArray(current)) { - if (Array.isArray(next)) { - current.push.apply(current, next); - return current; - } - - current.push(next); - return current; - } - - if (Array.isArray(next)) { - // A bit too dangerous to mutate `next`. - return [current].concat(next); - } - - return [current, next]; -} - -/** - * @param {array} arr an "accumulation" of items which is either an Array or - * a single item. Useful when paired with the `accumulate` module. This is a - * simple utility that allows us to reason about a collection of items, but - * handling the case when there is exactly one item (and we do not need to - * allocate an array). - * @param {function} cb Callback invoked with each element or a collection. - * @param {?} [scope] Scope used as `this` in a callback. - */ -function forEachAccumulated(arr, cb, scope) { - if (Array.isArray(arr)) { - arr.forEach(cb, scope); - } else if (arr) { - cb.call(scope, arr); - } -} - -/** - * Internal queue of events that have accumulated their dispatches and are - * waiting to have their dispatches executed. - */ - -var eventQueue = null; -/** - * Dispatches an event and releases it back into the pool, unless persistent. - * - * @param {?object} event Synthetic event to be dispatched. - * @private - */ - -var executeDispatchesAndRelease = function (event) { - if (event) { - executeDispatchesInOrder(event); - - if (!event.isPersistent()) { - event.constructor.release(event); - } - } -}; - -var executeDispatchesAndReleaseTopLevel = function (e) { - return executeDispatchesAndRelease(e); -}; - -function runEventsInBatch(events) { - if (events !== null) { - eventQueue = accumulateInto(eventQueue, events); - } // Set `eventQueue` to null before processing it so that we can tell if more - // events get enqueued while processing. - - - var processingEventQueue = eventQueue; - eventQueue = null; - - if (!processingEventQueue) { - return; - } - - forEachAccumulated(processingEventQueue, executeDispatchesAndReleaseTopLevel); - - if (!!eventQueue) { - { - throw Error("processEventQueue(): Additional events were enqueued while processing an event queue. Support for this has not yet been implemented."); - } - } // This would be a good time to rethrow if any of the event handlers threw. - - - rethrowCaughtError(); -} - -function isInteractive(tag) { - return tag === 'button' || tag === 'input' || tag === 'select' || tag === 'textarea'; -} - -function shouldPreventMouseEvent(name, type, props) { - switch (name) { - case 'onClick': - case 'onClickCapture': - case 'onDoubleClick': - case 'onDoubleClickCapture': - case 'onMouseDown': - case 'onMouseDownCapture': - case 'onMouseMove': - case 'onMouseMoveCapture': - case 'onMouseUp': - case 'onMouseUpCapture': - return !!(props.disabled && isInteractive(type)); - - default: - return false; - } -} -/** - * This is a unified interface for event plugins to be installed and configured. - * - * Event plugins can implement the following properties: - * - * `extractEvents` {function(string, DOMEventTarget, string, object): *} - * Required. When a top-level event is fired, this method is expected to - * extract synthetic events that will in turn be queued and dispatched. - * - * `eventTypes` {object} - * Optional, plugins that fire events must publish a mapping of registration - * names that are used to register listeners. Values of this mapping must - * be objects that contain `registrationName` or `phasedRegistrationNames`. - * - * `executeDispatch` {function(object, function, string)} - * Optional, allows plugins to override how an event gets dispatched. By - * default, the listener is simply invoked. - * - * Each plugin that is injected into `EventsPluginHub` is immediately operable. - * - * @public - */ - -/** - * Methods for injecting dependencies. - */ - - -var injection = { - /** - * @param {array} InjectedEventPluginOrder - * @public - */ - injectEventPluginOrder: injectEventPluginOrder, - - /** - * @param {object} injectedNamesToPlugins Map from names to plugin modules. - */ - injectEventPluginsByName: injectEventPluginsByName -}; -/** - * @param {object} inst The instance, which is the source of events. - * @param {string} registrationName Name of listener (e.g. `onClick`). - * @return {?function} The stored callback. - */ - -function getListener(inst, registrationName) { - var listener; // TODO: shouldPreventMouseEvent is DOM-specific and definitely should not - // live here; needs to be moved to a better place soon - - var stateNode = inst.stateNode; - - if (!stateNode) { - // Work in progress (ex: onload events in incremental mode). - return null; - } - - var props = getFiberCurrentPropsFromNode(stateNode); - - if (!props) { - // Work in progress. - return null; - } - - listener = props[registrationName]; - - if (shouldPreventMouseEvent(registrationName, inst.type, props)) { - return null; - } - - if (!(!listener || typeof listener === 'function')) { - { - throw Error("Expected `" + registrationName + "` listener to be a function, instead got a value of `" + typeof listener + "` type."); - } - } - - return listener; -} -/** - * Allows registered plugins an opportunity to extract events from top-level - * native browser events. - * - * @return {*} An accumulation of synthetic events. - * @internal - */ - -function extractPluginEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags) { - var events = null; - - for (var i = 0; i < plugins.length; i++) { - // Not every plugin in the ordering may be loaded at runtime. - var possiblePlugin = plugins[i]; - - if (possiblePlugin) { - var extractedEvents = possiblePlugin.extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags); - - if (extractedEvents) { - events = accumulateInto(events, extractedEvents); - } - } - } - - return events; -} - -function runExtractedPluginEventsInBatch(topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags) { - var events = extractPluginEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags); - runEventsInBatch(events); -} var FunctionComponent = 0; var ClassComponent = 1; @@ -32362,333 +35522,221 @@ var DehydratedFragment = 18; var SuspenseListComponent = 19; var FundamentalComponent = 20; var ScopeComponent = 21; - -var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; // Prevent newer renderers from RTE when used with older react package versions. -// Current owner and dispatcher used to share the same ref, -// but PR #14548 split them out to better support the react-debug-tools package. - -if (!ReactSharedInternals.hasOwnProperty('ReactCurrentDispatcher')) { - ReactSharedInternals.ReactCurrentDispatcher = { - current: null - }; -} - -if (!ReactSharedInternals.hasOwnProperty('ReactCurrentBatchConfig')) { - ReactSharedInternals.ReactCurrentBatchConfig = { - suspense: null - }; -} - -var BEFORE_SLASH_RE = /^(.*)[\\\/]/; -var describeComponentFrame = function (name, source, ownerName) { - var sourceInfo = ''; - - if (source) { - var path = source.fileName; - var fileName = path.replace(BEFORE_SLASH_RE, ''); - - { - // In DEV, include code for a common special case: - // prefer "folder/index.js" instead of just "index.js". - if (/^index\./.test(fileName)) { - var match = path.match(BEFORE_SLASH_RE); - - if (match) { - var pathBeforeSlash = match[1]; - - if (pathBeforeSlash) { - var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, ''); - fileName = folderName + '/' + fileName; - } - } - } - } - - sourceInfo = ' (at ' + fileName + ':' + source.lineNumber + ')'; - } else if (ownerName) { - sourceInfo = ' (created by ' + ownerName + ')'; - } - - return '\n in ' + (name || 'Unknown') + sourceInfo; -}; - -// The Symbol used to tag the ReactElement-like types. If there is no native Symbol -// nor polyfill, then a plain number is used for performance. -var hasSymbol = typeof Symbol === 'function' && Symbol.for; -var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7; -var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca; -var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb; -var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc; -var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2; -var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd; -var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary -// (unstable) APIs that have been removed. Can we remove the symbols? - - -var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf; -var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0; -var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1; -var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8; -var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3; -var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4; -var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5; -var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6; -var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7; -var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator; -var FAUX_ITERATOR_SYMBOL = '@@iterator'; -function getIteratorFn(maybeIterable) { - if (maybeIterable === null || typeof maybeIterable !== 'object') { - return null; - } - - var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]; - - if (typeof maybeIterator === 'function') { - return maybeIterator; - } - - return null; -} +var Block = 22; /** - * Similar to invariant but only logs a warning if the condition is not met. - * This can be used to log issues in development environments in critical - * paths. Removing the logging code for production environments will keep the - * same logic and follow the same code paths. + * Injectable ordering of event plugins. + */ +var eventPluginOrder = null; +/** + * Injectable mapping from names to event plugin modules. */ -var warning = warningWithoutStack$1; - -{ - warning = function (condition, format) { - if (condition) { - return; - } - - var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame; - var stack = ReactDebugCurrentFrame.getStackAddendum(); // eslint-disable-next-line react-internal/warning-and-invariant-args - - for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { - args[_key - 2] = arguments[_key]; - } - - warningWithoutStack$1.apply(void 0, [false, format + '%s'].concat(args, [stack])); - }; -} - -var warning$1 = warning; +var namesToPlugins = {}; +/** + * Recomputes the plugin list using the injected plugins and plugin ordering. + * + * @private + */ -var Uninitialized = -1; -var Pending = 0; -var Resolved = 1; -var Rejected = 2; -function refineResolvedLazyComponent(lazyComponent) { - return lazyComponent._status === Resolved ? lazyComponent._result : null; -} -function initializeLazyComponentType(lazyComponent) { - if (lazyComponent._status === Uninitialized) { - lazyComponent._status = Pending; - var ctor = lazyComponent._ctor; - var thenable = ctor(); - lazyComponent._result = thenable; - thenable.then(function (moduleObject) { - if (lazyComponent._status === Pending) { - var defaultExport = moduleObject.default; +function recomputePluginOrdering() { + if (!eventPluginOrder) { + // Wait until an `eventPluginOrder` is injected. + return; + } - { - if (defaultExport === undefined) { - warning$1(false, 'lazy: Expected the result of a dynamic import() call. ' + 'Instead received: %s\n\nYour code should look like: \n ' + "const MyComponent = lazy(() => import('./MyComponent'))", moduleObject); - } - } + for (var pluginName in namesToPlugins) { + var pluginModule = namesToPlugins[pluginName]; + var pluginIndex = eventPluginOrder.indexOf(pluginName); - lazyComponent._status = Resolved; - lazyComponent._result = defaultExport; - } - }, function (error) { - if (lazyComponent._status === Pending) { - lazyComponent._status = Rejected; - lazyComponent._result = error; + if (!(pluginIndex > -1)) { + { + throw Error( "EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `" + pluginName + "`." ); } - }); - } -} - -function getWrappedName(outerType, innerType, wrapperName) { - var functionName = innerType.displayName || innerType.name || ''; - return outerType.displayName || (functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName); -} + } -function getComponentName(type) { - if (type == null) { - // Host root, text node or just invalid type. - return null; - } + if (plugins[pluginIndex]) { + continue; + } - { - if (typeof type.tag === 'number') { - warningWithoutStack$1(false, 'Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.'); + if (!pluginModule.extractEvents) { + { + throw Error( "EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `" + pluginName + "` does not." ); + } } - } - if (typeof type === 'function') { - return type.displayName || type.name || null; - } + plugins[pluginIndex] = pluginModule; + var publishedEvents = pluginModule.eventTypes; - if (typeof type === 'string') { - return type; + for (var eventName in publishedEvents) { + if (!publishEventForPlugin(publishedEvents[eventName], pluginModule, eventName)) { + { + throw Error( "EventPluginRegistry: Failed to publish event `" + eventName + "` for plugin `" + pluginName + "`." ); + } + } + } } +} +/** + * Publishes an event so that it can be dispatched by the supplied plugin. + * + * @param {object} dispatchConfig Dispatch configuration for the event. + * @param {object} PluginModule Plugin publishing the event. + * @return {boolean} True if the event was successfully published. + * @private + */ - switch (type) { - case REACT_FRAGMENT_TYPE: - return 'Fragment'; - - case REACT_PORTAL_TYPE: - return 'Portal'; - case REACT_PROFILER_TYPE: - return "Profiler"; +function publishEventForPlugin(dispatchConfig, pluginModule, eventName) { + if (!!eventNameDispatchConfigs.hasOwnProperty(eventName)) { + { + throw Error( "EventPluginRegistry: More than one plugin attempted to publish the same event name, `" + eventName + "`." ); + } + } - case REACT_STRICT_MODE_TYPE: - return 'StrictMode'; + eventNameDispatchConfigs[eventName] = dispatchConfig; + var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames; - case REACT_SUSPENSE_TYPE: - return 'Suspense'; + if (phasedRegistrationNames) { + for (var phaseName in phasedRegistrationNames) { + if (phasedRegistrationNames.hasOwnProperty(phaseName)) { + var phasedRegistrationName = phasedRegistrationNames[phaseName]; + publishRegistrationName(phasedRegistrationName, pluginModule, eventName); + } + } - case REACT_SUSPENSE_LIST_TYPE: - return 'SuspenseList'; + return true; + } else if (dispatchConfig.registrationName) { + publishRegistrationName(dispatchConfig.registrationName, pluginModule, eventName); + return true; } - if (typeof type === 'object') { - switch (type.$$typeof) { - case REACT_CONTEXT_TYPE: - return 'Context.Consumer'; - - case REACT_PROVIDER_TYPE: - return 'Context.Provider'; + return false; +} +/** + * Publishes a registration name that is used to identify dispatched events. + * + * @param {string} registrationName Registration name to add. + * @param {object} PluginModule Plugin publishing the event. + * @private + */ - case REACT_FORWARD_REF_TYPE: - return getWrappedName(type, type.render, 'ForwardRef'); - case REACT_MEMO_TYPE: - return getComponentName(type.type); +function publishRegistrationName(registrationName, pluginModule, eventName) { + if (!!registrationNameModules[registrationName]) { + { + throw Error( "EventPluginRegistry: More than one plugin attempted to publish the same registration name, `" + registrationName + "`." ); + } + } - case REACT_LAZY_TYPE: - { - var thenable = type; - var resolvedThenable = refineResolvedLazyComponent(thenable); + registrationNameModules[registrationName] = pluginModule; + registrationNameDependencies[registrationName] = pluginModule.eventTypes[eventName].dependencies; - if (resolvedThenable) { - return getComponentName(resolvedThenable); - } + { + var lowerCasedName = registrationName.toLowerCase(); + possibleRegistrationNames[lowerCasedName] = registrationName; - break; - } + if (registrationName === 'onDoubleClick') { + possibleRegistrationNames.ondblclick = registrationName; } } - - return null; } +/** + * Registers plugins so that they can extract and dispatch events. + */ -var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame; +/** + * Ordered list of injected plugins. + */ -function describeFiber(fiber) { - switch (fiber.tag) { - case HostRoot: - case HostPortal: - case HostText: - case Fragment: - case ContextProvider: - case ContextConsumer: - return ''; - default: - var owner = fiber._debugOwner; - var source = fiber._debugSource; - var name = getComponentName(fiber.type); - var ownerName = null; +var plugins = []; +/** + * Mapping from event name to dispatch config + */ - if (owner) { - ownerName = getComponentName(owner.type); - } +var eventNameDispatchConfigs = {}; +/** + * Mapping from registration name to plugin module + */ - return describeComponentFrame(name, source, ownerName); - } -} +var registrationNameModules = {}; +/** + * Mapping from registration name to event name + */ -function getStackByFiberInDevAndProd(workInProgress) { - var info = ''; - var node = workInProgress; +var registrationNameDependencies = {}; +/** + * Mapping from lowercase registration names to the properly cased version, + * used to warn in the case of missing event handlers. Available + * only in true. + * @type {Object} + */ - do { - info += describeFiber(node); - node = node.return; - } while (node); +var possibleRegistrationNames = {} ; // Trust the developer to only use possibleRegistrationNames in true - return info; -} -var current = null; -var phase = null; -function getCurrentFiberOwnerNameInDevOrNull() { - { - if (current === null) { - return null; +/** + * Injects an ordering of plugins (by plugin name). This allows the ordering + * to be decoupled from injection of the actual plugins so that ordering is + * always deterministic regardless of packaging, on-the-fly injection, etc. + * + * @param {array} InjectedEventPluginOrder + * @internal + */ + +function injectEventPluginOrder(injectedEventPluginOrder) { + if (!!eventPluginOrder) { + { + throw Error( "EventPluginRegistry: Cannot inject event plugin ordering more than once. You are likely trying to load more than one copy of React." ); } + } // Clone the ordering so it cannot be dynamically mutated. - var owner = current._debugOwner; - if (owner !== null && typeof owner !== 'undefined') { - return getComponentName(owner.type); + eventPluginOrder = Array.prototype.slice.call(injectedEventPluginOrder); + recomputePluginOrdering(); +} +/** + * Injects plugins to be used by plugin event system. The plugin names must be + * in the ordering injected by `injectEventPluginOrder`. + * + * Plugins can be injected as part of page initialization or on-the-fly. + * + * @param {object} injectedNamesToPlugins Map from names to plugin modules. + * @internal + */ + +function injectEventPluginsByName(injectedNamesToPlugins) { + var isOrderingDirty = false; + + for (var pluginName in injectedNamesToPlugins) { + if (!injectedNamesToPlugins.hasOwnProperty(pluginName)) { + continue; } - } - return null; -} -function getCurrentFiberStackInDev() { - { - if (current === null) { - return ''; - } // Safe because if current fiber exists, we are reconciling, - // and it is guaranteed to be the work-in-progress version. + var pluginModule = injectedNamesToPlugins[pluginName]; + if (!namesToPlugins.hasOwnProperty(pluginName) || namesToPlugins[pluginName] !== pluginModule) { + if (!!namesToPlugins[pluginName]) { + { + throw Error( "EventPluginRegistry: Cannot inject two different event plugins using the same name, `" + pluginName + "`." ); + } + } - return getStackByFiberInDevAndProd(current); + namesToPlugins[pluginName] = pluginModule; + isOrderingDirty = true; + } } - return ''; -} -function resetCurrentFiber() { - { - ReactDebugCurrentFrame.getCurrentStack = null; - current = null; - phase = null; - } -} -function setCurrentFiber(fiber) { - { - ReactDebugCurrentFrame.getCurrentStack = getCurrentFiberStackInDev; - current = fiber; - phase = null; - } -} -function setCurrentPhase(lifeCyclePhase) { - { - phase = lifeCyclePhase; + if (isOrderingDirty) { + recomputePluginOrdering(); } } var canUseDOM = !!(typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.document.createElement !== 'undefined'); -function endsWith(subject, search) { - var length = subject.length; - return subject.substring(length - search.length, length) === search; -} - var PLUGIN_EVENT_SYSTEM = 1; -var RESPONDER_EVENT_SYSTEM = 1 << 1; -var IS_PASSIVE = 1 << 2; -var IS_ACTIVE = 1 << 3; -var PASSIVE_NOT_SUPPORTED = 1 << 4; var IS_REPLAYED = 1 << 5; +var IS_FIRST_ANCESTOR = 1 << 6; var restoreImpl = null; var restoreTarget = null; @@ -32706,12 +35754,17 @@ function restoreStateOfTarget(target) { if (!(typeof restoreImpl === 'function')) { { - throw Error("setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue."); + throw Error( "setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue." ); } } - var props = getFiberCurrentPropsFromNode(internalInstance.stateNode); - restoreImpl(internalInstance.stateNode, internalInstance.type, props); + var stateNode = internalInstance.stateNode; // Guard against Fiber being unmounted. + + if (stateNode) { + var _props = getFiberCurrentPropsFromNode(stateNode); + + restoreImpl(internalInstance.stateNode, internalInstance.type, _props); + } } function setRestoreImplementation(impl) { @@ -32749,63 +35802,12 @@ function restoreStateIfNeeded() { } } -var enableUserTimingAPI = true; // Helps identify side effects in render-phase lifecycle hooks and setState -// reducers by double invoking them in Strict Mode. - -var debugRenderPhaseSideEffectsForStrictMode = true; // To preserve the "Pause on caught exceptions" behavior of the debugger, we -// replay the begin phase of a failed component inside invokeGuardedCallback. - -var replayFailedUnitOfWorkWithInvokeGuardedCallback = true; // Warn about deprecated, async-unsafe lifecycles; relates to RFC #6: - -var warnAboutDeprecatedLifecycles = true; // Gather advanced timing metrics for Profiler subtrees. - var enableProfilerTimer = true; // Trace which interactions trigger each commit. -var enableSchedulerTracing = true; // SSR experiments - -var enableSuspenseServerRenderer = false; -var enableSelectiveHydration = false; // Only used in www builds. - - // Only used in www builds. - - // Disable javascript: URL strings in href for XSS protection. - -var disableJavaScriptURLs = false; // React Fire: prevent the value and checked attributes from syncing -// with their related DOM properties - -var disableInputAttributeSyncing = false; // These APIs will no longer be "unstable" in the upcoming 16.7 release, -// Control this behavior with a flag to support 16.6 minor releases in the meanwhile. - -var exposeConcurrentModeAPIs = false; -var warnAboutShorthandPropertyCollision = false; // Experimental React Flare event system and event components support. - -var enableFlareAPI = false; // Experimental Host Component support. +var enableDeprecatedFlareAPI = false; // Experimental Host Component support. var enableFundamentalAPI = false; // Experimental Scope support. - -var enableScopeAPI = false; // New API for JSX transforms to target - https://github.com/reactjs/rfcs/pull/107 - - // We will enforce mocking scheduler with scheduler/unstable_mock at some point. (v17?) -// Till then, we warn about the missing mock, but still fallback to a legacy mode compatible version - -var warnAboutUnmockedScheduler = false; // For tests, we flush suspense fallbacks in an act scope; -// *except* in some of our own tests, where we test incremental loading states. - -var flushSuspenseFallbacksInTests = true; // Add a callback property to suspense to notify which promises are currently -// in the update queue. This allows reporting and tracing of what is causing -// the user to see a loading state. -// Also allows hydration callbacks to fire when a dehydrated boundary gets -// hydrated or deleted. - -var enableSuspenseCallback = false; // Part of the simplification of React.createElement so we can eventually move -// from React.createElement to React.jsx -// https://github.com/reactjs/rfcs/blob/createlement-rfc/text/0000-create-element-changes.md - -var warnAboutDefaultPropsOnFunctionComponents = false; var warnAboutStringRefs = false; -var disableLegacyContext = false; -var disableSchedulerTimeoutBasedOnReactExpirationTime = false; -var enableTrustedTypesIntegration = false; // Flag to turn event.target and event.currentTarget in ReactNative from a reactTag to a component instance // the renderer. Such as when we're dispatching events or if third party // libraries need to call batchedUpdates. Eventually, this API will go away when @@ -32817,8 +35819,8 @@ var batchedUpdatesImpl = function (fn, bookkeeping) { return fn(bookkeeping); }; -var discreteUpdatesImpl = function (fn, a, b, c) { - return fn(a, b, c); +var discreteUpdatesImpl = function (fn, a, b, c, d) { + return fn(a, b, c, d); }; var flushDiscreteUpdatesImpl = function () {}; @@ -32875,24 +35877,12 @@ function batchedEventUpdates(fn, a, b) { finishEventHandler(); } } // This is for the React Flare event system - -function executeUserEventHandler(fn, value) { - var previouslyInEventHandler = isInsideEventHandler; - - try { - isInsideEventHandler = true; - var type = typeof value === 'object' && value !== null ? value.type : ''; - invokeGuardedCallbackAndCatchFirstError(type, fn, undefined, value); - } finally { - isInsideEventHandler = previouslyInEventHandler; - } -} -function discreteUpdates(fn, a, b, c) { +function discreteUpdates(fn, a, b, c, d) { var prevIsInsideEventHandler = isInsideEventHandler; isInsideEventHandler = true; try { - return discreteUpdatesImpl(fn, a, b, c); + return discreteUpdatesImpl(fn, a, b, c, d); } finally { isInsideEventHandler = prevIsInsideEventHandler; @@ -32901,7 +35891,6 @@ function discreteUpdates(fn, a, b, c) { } } } -var lastFlushedEventTimeStamp = 0; function flushDiscreteUpdatesIfNeeded(timeStamp) { // event.timeStamp isn't overly reliable due to inconsistencies in // how different browsers have historically provided the time stamp. @@ -32915,8 +35904,7 @@ function flushDiscreteUpdatesIfNeeded(timeStamp) { // such as if an earlier flush removes or adds event listeners that // are fired in the subsequent flush. However, this is the same // behaviour as we had before this change, so the risks are low. - if (!isInsideEventHandler && (!enableFlareAPI || timeStamp === 0 || lastFlushedEventTimeStamp !== timeStamp)) { - lastFlushedEventTimeStamp = timeStamp; + if (!isInsideEventHandler && (!enableDeprecatedFlareAPI )) { flushDiscreteUpdatesImpl(); } } @@ -32931,474 +35919,6 @@ var DiscreteEvent = 0; var UserBlockingEvent = 1; var ContinuousEvent = 2; -// CommonJS interop named imports. - -var UserBlockingPriority = Scheduler.unstable_UserBlockingPriority; -var runWithPriority = Scheduler.unstable_runWithPriority; -var listenToResponderEventTypesImpl; -function setListenToResponderEventTypes(_listenToResponderEventTypesImpl) { - listenToResponderEventTypesImpl = _listenToResponderEventTypesImpl; -} -var rootEventTypesToEventResponderInstances = new Map(); -var DoNotPropagateToNextResponder = 0; -var PropagateToNextResponder = 1; -var currentTimeStamp = 0; -var currentInstance = null; -var currentDocument = null; -var currentPropagationBehavior = DoNotPropagateToNextResponder; -var eventResponderContext = { - dispatchEvent: function (eventValue, eventListener, eventPriority) { - validateResponderContext(); - validateEventValue(eventValue); - - switch (eventPriority) { - case DiscreteEvent: - { - flushDiscreteUpdatesIfNeeded(currentTimeStamp); - discreteUpdates(function () { - return executeUserEventHandler(eventListener, eventValue); - }); - break; - } - - case UserBlockingEvent: - { - runWithPriority(UserBlockingPriority, function () { - return executeUserEventHandler(eventListener, eventValue); - }); - break; - } - - case ContinuousEvent: - { - executeUserEventHandler(eventListener, eventValue); - break; - } - } - }, - isTargetWithinResponder: function (target) { - validateResponderContext(); - - if (target != null) { - var fiber = getClosestInstanceFromNode(target); - var responderFiber = currentInstance.fiber; - - while (fiber !== null) { - if (fiber === responderFiber || fiber.alternate === responderFiber) { - return true; - } - - fiber = fiber.return; - } - } - - return false; - }, - isTargetWithinResponderScope: function (target) { - validateResponderContext(); - var componentInstance = currentInstance; - var responder = componentInstance.responder; - - if (target != null) { - var fiber = getClosestInstanceFromNode(target); - var responderFiber = currentInstance.fiber; - - while (fiber !== null) { - if (fiber === responderFiber || fiber.alternate === responderFiber) { - return true; - } - - if (doesFiberHaveResponder(fiber, responder)) { - return false; - } - - fiber = fiber.return; - } - } - - return false; - }, - isTargetWithinNode: function (childTarget, parentTarget) { - validateResponderContext(); - var childFiber = getClosestInstanceFromNode(childTarget); - var parentFiber = getClosestInstanceFromNode(parentTarget); - - if (childFiber != null && parentFiber != null) { - var parentAlternateFiber = parentFiber.alternate; - var node = childFiber; - - while (node !== null) { - if (node === parentFiber || node === parentAlternateFiber) { - return true; - } - - node = node.return; - } - - return false; - } // Fallback to DOM APIs - - - return parentTarget.contains(childTarget); - }, - addRootEventTypes: function (rootEventTypes) { - validateResponderContext(); - listenToResponderEventTypesImpl(rootEventTypes, currentDocument); - - for (var i = 0; i < rootEventTypes.length; i++) { - var rootEventType = rootEventTypes[i]; - var eventResponderInstance = currentInstance; - registerRootEventType(rootEventType, eventResponderInstance); - } - }, - removeRootEventTypes: function (rootEventTypes) { - validateResponderContext(); - - for (var i = 0; i < rootEventTypes.length; i++) { - var rootEventType = rootEventTypes[i]; - var rootEventResponders = rootEventTypesToEventResponderInstances.get(rootEventType); - var rootEventTypesSet = currentInstance.rootEventTypes; - - if (rootEventTypesSet !== null) { - rootEventTypesSet.delete(rootEventType); - } - - if (rootEventResponders !== undefined) { - rootEventResponders.delete(currentInstance); - } - } - }, - getActiveDocument: getActiveDocument, - objectAssign: _assign, - getTimeStamp: function () { - validateResponderContext(); - return currentTimeStamp; - }, - isTargetWithinHostComponent: function (target, elementType) { - validateResponderContext(); - var fiber = getClosestInstanceFromNode(target); - - while (fiber !== null) { - if (fiber.tag === HostComponent && fiber.type === elementType) { - return true; - } - - fiber = fiber.return; - } - - return false; - }, - continuePropagation: function () { - currentPropagationBehavior = PropagateToNextResponder; - }, - enqueueStateRestore: enqueueStateRestore, - getResponderNode: function () { - validateResponderContext(); - var responderFiber = currentInstance.fiber; - - if (responderFiber.tag === ScopeComponent) { - return null; - } - - return responderFiber.stateNode; - } -}; - -function validateEventValue(eventValue) { - if (typeof eventValue === 'object' && eventValue !== null) { - var target = eventValue.target, - type = eventValue.type, - timeStamp = eventValue.timeStamp; - - if (target == null || type == null || timeStamp == null) { - throw new Error('context.dispatchEvent: "target", "timeStamp", and "type" fields on event object are required.'); - } - - var showWarning = function (name) { - { - warning$1(false, '%s is not available on event objects created from event responder modules (React Flare). ' + 'Try wrapping in a conditional, i.e. `if (event.type !== "press") { event.%s }`', name, name); - } - }; - - eventValue.isDefaultPrevented = function () { - { - showWarning('isDefaultPrevented()'); - } - }; - - eventValue.isPropagationStopped = function () { - { - showWarning('isPropagationStopped()'); - } - }; // $FlowFixMe: we don't need value, Flow thinks we do - - - Object.defineProperty(eventValue, 'nativeEvent', { - get: function () { - { - showWarning('nativeEvent'); - } - } - }); - } -} - -function doesFiberHaveResponder(fiber, responder) { - var tag = fiber.tag; - - if (tag === HostComponent || tag === ScopeComponent) { - var dependencies = fiber.dependencies; - - if (dependencies !== null) { - var respondersMap = dependencies.responders; - - if (respondersMap !== null && respondersMap.has(responder)) { - return true; - } - } - } - - return false; -} - -function getActiveDocument() { - return currentDocument; -} - -function createDOMResponderEvent(topLevelType, nativeEvent, nativeEventTarget, passive, passiveSupported) { - var _ref = nativeEvent, - buttons = _ref.buttons, - pointerType = _ref.pointerType; - var eventPointerType = ''; - - if (pointerType !== undefined) { - eventPointerType = pointerType; - } else if (nativeEvent.key !== undefined) { - eventPointerType = 'keyboard'; - } else if (buttons !== undefined) { - eventPointerType = 'mouse'; - } else if (nativeEvent.changedTouches !== undefined) { - eventPointerType = 'touch'; - } - - return { - nativeEvent: nativeEvent, - passive: passive, - passiveSupported: passiveSupported, - pointerType: eventPointerType, - target: nativeEventTarget, - type: topLevelType - }; -} - -function responderEventTypesContainType(eventTypes, type) { - for (var i = 0, len = eventTypes.length; i < len; i++) { - if (eventTypes[i] === type) { - return true; - } - } - - return false; -} - -function validateResponderTargetEventTypes(eventType, responder) { - var targetEventTypes = responder.targetEventTypes; // Validate the target event type exists on the responder - - if (targetEventTypes !== null) { - return responderEventTypesContainType(targetEventTypes, eventType); - } - - return false; -} - -function traverseAndHandleEventResponderInstances(topLevelType, targetFiber, nativeEvent, nativeEventTarget, eventSystemFlags) { - var isPassiveEvent = (eventSystemFlags & IS_PASSIVE) !== 0; - var isPassiveSupported = (eventSystemFlags & PASSIVE_NOT_SUPPORTED) === 0; - var isPassive = isPassiveEvent || !isPassiveSupported; - var eventType = isPassive ? topLevelType : topLevelType + '_active'; // Trigger event responders in this order: - // - Bubble target responder phase - // - Root responder phase - - var visitedResponders = new Set(); - var responderEvent = createDOMResponderEvent(topLevelType, nativeEvent, nativeEventTarget, isPassiveEvent, isPassiveSupported); - var node = targetFiber; - var insidePortal = false; - - while (node !== null) { - var _node = node, - dependencies = _node.dependencies, - tag = _node.tag; - - if (tag === HostPortal) { - insidePortal = true; - } else if ((tag === HostComponent || tag === ScopeComponent) && dependencies !== null) { - var respondersMap = dependencies.responders; - - if (respondersMap !== null) { - var responderInstances = Array.from(respondersMap.values()); - - for (var i = 0, length = responderInstances.length; i < length; i++) { - var responderInstance = responderInstances[i]; - var props = responderInstance.props, - responder = responderInstance.responder, - state = responderInstance.state; - - if (!visitedResponders.has(responder) && validateResponderTargetEventTypes(eventType, responder) && (!insidePortal || responder.targetPortalPropagation)) { - visitedResponders.add(responder); - var onEvent = responder.onEvent; - - if (onEvent !== null) { - currentInstance = responderInstance; - onEvent(responderEvent, eventResponderContext, props, state); - - if (currentPropagationBehavior === PropagateToNextResponder) { - visitedResponders.delete(responder); - currentPropagationBehavior = DoNotPropagateToNextResponder; - } - } - } - } - } - } - - node = node.return; - } // Root phase - - - var rootEventResponderInstances = rootEventTypesToEventResponderInstances.get(eventType); - - if (rootEventResponderInstances !== undefined) { - var _responderInstances = Array.from(rootEventResponderInstances); - - for (var _i = 0; _i < _responderInstances.length; _i++) { - var _responderInstance = _responderInstances[_i]; - var props = _responderInstance.props, - responder = _responderInstance.responder, - state = _responderInstance.state; - var onRootEvent = responder.onRootEvent; - - if (onRootEvent !== null) { - currentInstance = _responderInstance; - onRootEvent(responderEvent, eventResponderContext, props, state); - } - } - } -} - -function mountEventResponder(responder, responderInstance, props, state) { - var onMount = responder.onMount; - - if (onMount !== null) { - var previousInstance = currentInstance; - currentInstance = responderInstance; - - try { - batchedEventUpdates(function () { - onMount(eventResponderContext, props, state); - }); - } finally { - currentInstance = previousInstance; - } - } -} -function unmountEventResponder(responderInstance) { - var responder = responderInstance.responder; - var onUnmount = responder.onUnmount; - - if (onUnmount !== null) { - var props = responderInstance.props, - state = responderInstance.state; - var previousInstance = currentInstance; - currentInstance = responderInstance; - - try { - batchedEventUpdates(function () { - onUnmount(eventResponderContext, props, state); - }); - } finally { - currentInstance = previousInstance; - } - } - - var rootEventTypesSet = responderInstance.rootEventTypes; - - if (rootEventTypesSet !== null) { - var rootEventTypes = Array.from(rootEventTypesSet); - - for (var i = 0; i < rootEventTypes.length; i++) { - var topLevelEventType = rootEventTypes[i]; - var rootEventResponderInstances = rootEventTypesToEventResponderInstances.get(topLevelEventType); - - if (rootEventResponderInstances !== undefined) { - rootEventResponderInstances.delete(responderInstance); - } - } - } -} - -function validateResponderContext() { - if (!(currentInstance !== null)) { - { - throw Error("An event responder context was used outside of an event cycle."); - } - } -} - -function dispatchEventForResponderEventSystem(topLevelType, targetFiber, nativeEvent, nativeEventTarget, eventSystemFlags) { - if (enableFlareAPI) { - var previousInstance = currentInstance; - var previousTimeStamp = currentTimeStamp; - var previousDocument = currentDocument; - var previousPropagationBehavior = currentPropagationBehavior; - currentPropagationBehavior = DoNotPropagateToNextResponder; // nodeType 9 is DOCUMENT_NODE - - currentDocument = nativeEventTarget.nodeType === 9 ? nativeEventTarget : nativeEventTarget.ownerDocument; // We might want to control timeStamp another way here - - currentTimeStamp = nativeEvent.timeStamp; - - try { - batchedEventUpdates(function () { - traverseAndHandleEventResponderInstances(topLevelType, targetFiber, nativeEvent, nativeEventTarget, eventSystemFlags); - }); - } finally { - currentInstance = previousInstance; - currentTimeStamp = previousTimeStamp; - currentDocument = previousDocument; - currentPropagationBehavior = previousPropagationBehavior; - } - } -} -function addRootEventTypesForResponderInstance(responderInstance, rootEventTypes) { - for (var i = 0; i < rootEventTypes.length; i++) { - var rootEventType = rootEventTypes[i]; - registerRootEventType(rootEventType, responderInstance); - } -} - -function registerRootEventType(rootEventType, eventResponderInstance) { - var rootEventResponderInstances = rootEventTypesToEventResponderInstances.get(rootEventType); - - if (rootEventResponderInstances === undefined) { - rootEventResponderInstances = new Set(); - rootEventTypesToEventResponderInstances.set(rootEventType, rootEventResponderInstances); - } - - var rootEventTypesSet = eventResponderInstance.rootEventTypes; - - if (rootEventTypesSet === null) { - rootEventTypesSet = eventResponderInstance.rootEventTypes = new Set(); - } - - if (!!rootEventTypesSet.has(rootEventType)) { - { - throw Error("addRootEventTypes() found a duplicate root event type of \"" + rootEventType + "\". This might be because the event type exists in the event responder \"rootEventTypes\" array or because of a previous addRootEventTypes() using this root event type."); - } - } - - rootEventTypesSet.add(rootEventType); - rootEventResponderInstances.add(eventResponderInstance); -} - // A reserved attribute. // It is handled by React separately and shouldn't be written to the DOM. var RESERVED = 0; // A simple string attribute. @@ -33431,7 +35951,6 @@ var ATTRIBUTE_NAME_START_CHAR = ":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\ /* eslint-enable max-len */ var ATTRIBUTE_NAME_CHAR = ATTRIBUTE_NAME_START_CHAR + "\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040"; - var ROOT_ATTRIBUTE_NAME = 'data-reactroot'; var VALID_ATTRIBUTE_NAME_REGEX = new RegExp('^[' + ATTRIBUTE_NAME_START_CHAR + '][' + ATTRIBUTE_NAME_CHAR + ']*$'); var hasOwnProperty = Object.prototype.hasOwnProperty; @@ -33454,7 +35973,7 @@ function isAttributeNameSafe(attributeName) { illegalAttributeNameCache[attributeName] = true; { - warning$1(false, 'Invalid attribute name: `%s`', attributeName); + error('Invalid attribute name: `%s`', attributeName); } return false; @@ -33554,10 +36073,12 @@ function PropertyInfoRecord(name, type, mustUseProperty, attributeName, attribut var properties = {}; // These props are reserved by React. They shouldn't be written to the DOM. -['children', 'dangerouslySetInnerHTML', // TODO: This prevents the assignment of defaultValue to regular +var reservedProps = ['children', 'dangerouslySetInnerHTML', // TODO: This prevents the assignment of defaultValue to regular // elements (not just inputs). Now that ReactDOMInput assigns to the // defaultValue property -- do we need this? -'defaultValue', 'defaultChecked', 'innerHTML', 'suppressContentEditableWarning', 'suppressHydrationWarning', 'style'].forEach(function (name) { +'defaultValue', 'defaultChecked', 'innerHTML', 'suppressContentEditableWarning', 'suppressHydrationWarning', 'style']; + +reservedProps.forEach(function (name) { properties[name] = new PropertyInfoRecord(name, RESERVED, false, // mustUseProperty name, // attributeName null, // attributeNamespace @@ -33606,7 +36127,10 @@ var properties = {}; // These props are reserved by React. They shouldn't be wri ['checked', // Note: `option.selected` is not updated if `select.multiple` is // disabled with `removeAttribute`. We have special logic for handling this. -'multiple', 'muted', 'selected'].forEach(function (name) { +'multiple', 'muted', 'selected' // NOTE: if you add a camelCased prop to this list, +// you'll need to set attributeName to name.toLowerCase() +// instead in the assignment below. +].forEach(function (name) { properties[name] = new PropertyInfoRecord(name, BOOLEAN, true, // mustUseProperty name, // attributeName null, // attributeNamespace @@ -33614,14 +36138,20 @@ var properties = {}; // These props are reserved by React. They shouldn't be wri }); // These are HTML attributes that are "overloaded booleans": they behave like // booleans, but can also accept a string value. -['capture', 'download'].forEach(function (name) { +['capture', 'download' // NOTE: if you add a camelCased prop to this list, +// you'll need to set attributeName to name.toLowerCase() +// instead in the assignment below. +].forEach(function (name) { properties[name] = new PropertyInfoRecord(name, OVERLOADED_BOOLEAN, false, // mustUseProperty name, // attributeName null, // attributeNamespace false); }); // These are HTML attributes that must be positive numbers. -['cols', 'rows', 'size', 'span'].forEach(function (name) { +['cols', 'rows', 'size', 'span' // NOTE: if you add a camelCased prop to this list, +// you'll need to set attributeName to name.toLowerCase() +// instead in the assignment below. +].forEach(function (name) { properties[name] = new PropertyInfoRecord(name, POSITIVE_NUMERIC, false, // mustUseProperty name, // attributeName null, // attributeNamespace @@ -33642,23 +36172,32 @@ var capitalize = function (token) { // or boolean value assignment. Regular attributes that just accept strings // and have the same names are omitted, just like in the HTML whitelist. // Some of these attributes can be hard to find. This list was created by -// scrapping the MDN documentation. +// scraping the MDN documentation. -['accent-height', 'alignment-baseline', 'arabic-form', 'baseline-shift', 'cap-height', 'clip-path', 'clip-rule', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'dominant-baseline', 'enable-background', 'fill-opacity', 'fill-rule', 'flood-color', 'flood-opacity', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'glyph-name', 'glyph-orientation-horizontal', 'glyph-orientation-vertical', 'horiz-adv-x', 'horiz-origin-x', 'image-rendering', 'letter-spacing', 'lighting-color', 'marker-end', 'marker-mid', 'marker-start', 'overline-position', 'overline-thickness', 'paint-order', 'panose-1', 'pointer-events', 'rendering-intent', 'shape-rendering', 'stop-color', 'stop-opacity', 'strikethrough-position', 'strikethrough-thickness', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke-width', 'text-anchor', 'text-decoration', 'text-rendering', 'underline-position', 'underline-thickness', 'unicode-bidi', 'unicode-range', 'units-per-em', 'v-alphabetic', 'v-hanging', 'v-ideographic', 'v-mathematical', 'vector-effect', 'vert-adv-y', 'vert-origin-x', 'vert-origin-y', 'word-spacing', 'writing-mode', 'xmlns:xlink', 'x-height'].forEach(function (attributeName) { +['accent-height', 'alignment-baseline', 'arabic-form', 'baseline-shift', 'cap-height', 'clip-path', 'clip-rule', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'dominant-baseline', 'enable-background', 'fill-opacity', 'fill-rule', 'flood-color', 'flood-opacity', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'glyph-name', 'glyph-orientation-horizontal', 'glyph-orientation-vertical', 'horiz-adv-x', 'horiz-origin-x', 'image-rendering', 'letter-spacing', 'lighting-color', 'marker-end', 'marker-mid', 'marker-start', 'overline-position', 'overline-thickness', 'paint-order', 'panose-1', 'pointer-events', 'rendering-intent', 'shape-rendering', 'stop-color', 'stop-opacity', 'strikethrough-position', 'strikethrough-thickness', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke-width', 'text-anchor', 'text-decoration', 'text-rendering', 'underline-position', 'underline-thickness', 'unicode-bidi', 'unicode-range', 'units-per-em', 'v-alphabetic', 'v-hanging', 'v-ideographic', 'v-mathematical', 'vector-effect', 'vert-adv-y', 'vert-origin-x', 'vert-origin-y', 'word-spacing', 'writing-mode', 'xmlns:xlink', 'x-height' // NOTE: if you add a camelCased prop to this list, +// you'll need to set attributeName to name.toLowerCase() +// instead in the assignment below. +].forEach(function (attributeName) { var name = attributeName.replace(CAMELIZE, capitalize); properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty attributeName, null, // attributeNamespace false); }); // String SVG attributes with the xlink namespace. -['xlink:actuate', 'xlink:arcrole', 'xlink:role', 'xlink:show', 'xlink:title', 'xlink:type'].forEach(function (attributeName) { +['xlink:actuate', 'xlink:arcrole', 'xlink:role', 'xlink:show', 'xlink:title', 'xlink:type' // NOTE: if you add a camelCased prop to this list, +// you'll need to set attributeName to name.toLowerCase() +// instead in the assignment below. +].forEach(function (attributeName) { var name = attributeName.replace(CAMELIZE, capitalize); properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty attributeName, 'http://www.w3.org/1999/xlink', false); }); // String SVG attributes with the xml namespace. -['xml:base', 'xml:lang', 'xml:space'].forEach(function (attributeName) { +['xml:base', 'xml:lang', 'xml:space' // NOTE: if you add a camelCased prop to this list, +// you'll need to set attributeName to name.toLowerCase() +// instead in the assignment below. +].forEach(function (attributeName) { var name = attributeName.replace(CAMELIZE, capitalize); properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty attributeName, 'http://www.w3.org/XML/1998/namespace', false); @@ -33676,104 +36215,41 @@ var capitalize = function (token) { var xlinkHref = 'xlinkHref'; properties[xlinkHref] = new PropertyInfoRecord('xlinkHref', STRING, false, // mustUseProperty -'xlink:href', 'http://www.w3.org/1999/xlink', true); -['src', 'href', 'action', 'formAction'].forEach(function (attributeName) { - properties[attributeName] = new PropertyInfoRecord(attributeName, STRING, false, // mustUseProperty - attributeName.toLowerCase(), // attributeName - null, // attributeNamespace - true); -}); - -var ReactDebugCurrentFrame$1 = null; - -{ - ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame; -} // A javascript: URL can contain leading C0 control or \u0020 SPACE, -// and any newline or tab are filtered out as if they're not part of the URL. -// https://url.spec.whatwg.org/#url-parsing -// Tab or newline are defined as \r\n\t: -// https://infra.spec.whatwg.org/#ascii-tab-or-newline -// A C0 control is a code point in the range \u0000 NULL to \u001F -// INFORMATION SEPARATOR ONE, inclusive: -// https://infra.spec.whatwg.org/#c0-control-or-space - -/* eslint-disable max-len */ - - -var isJavaScriptProtocol = /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i; -var didWarn = false; - -function sanitizeURL(url) { - if (disableJavaScriptURLs) { - if (!!isJavaScriptProtocol.test(url)) { - { - throw Error("React has blocked a javascript: URL as a security precaution." + (ReactDebugCurrentFrame$1.getStackAddendum())); - } - } - } else if (true && !didWarn && isJavaScriptProtocol.test(url)) { - didWarn = true; - warning$1(false, 'A future version of React will block javascript: URLs as a security precaution. ' + 'Use event handlers instead if you can. If you need to generate unsafe HTML try ' + 'using dangerouslySetInnerHTML instead. React was passed %s.', JSON.stringify(url)); - } -} - -// Flow does not allow string concatenation of most non-string types. To work -// around this limitation, we use an opaque type that can only be obtained by -// passing the value through getToStringValue first. -function toString(value) { - return '' + value; -} -function getToStringValue(value) { - switch (typeof value) { - case 'boolean': - case 'number': - case 'object': - case 'string': - case 'undefined': - return value; +'xlink:href', 'http://www.w3.org/1999/xlink', true); +['src', 'href', 'action', 'formAction'].forEach(function (attributeName) { + properties[attributeName] = new PropertyInfoRecord(attributeName, STRING, false, // mustUseProperty + attributeName.toLowerCase(), // attributeName + null, // attributeNamespace + true); +}); - default: - // function, symbol are assigned as empty strings - return ''; - } -} -/** Trusted value is a wrapper for "safe" values which can be assigned to DOM execution sinks. */ +var ReactDebugCurrentFrame = null; -/** - * We allow passing objects with toString method as element attributes or in dangerouslySetInnerHTML - * and we do validations that the value is safe. Once we do validation we want to use the validated - * value instead of the object (because object.toString may return something else on next call). - * - * If application uses Trusted Types we don't stringify trusted values, but preserve them as objects. - */ -var toStringOrTrustedType = toString; +{ + ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame; +} // A javascript: URL can contain leading C0 control or \u0020 SPACE, +// and any newline or tab are filtered out as if they're not part of the URL. +// https://url.spec.whatwg.org/#url-parsing +// Tab or newline are defined as \r\n\t: +// https://infra.spec.whatwg.org/#ascii-tab-or-newline +// A C0 control is a code point in the range \u0000 NULL to \u001F +// INFORMATION SEPARATOR ONE, inclusive: +// https://infra.spec.whatwg.org/#c0-control-or-space -if (enableTrustedTypesIntegration && typeof trustedTypes !== 'undefined') { - toStringOrTrustedType = function (value) { - if (typeof value === 'object' && (trustedTypes.isHTML(value) || trustedTypes.isScript(value) || trustedTypes.isScriptURL(value) || - /* TrustedURLs are deprecated and will be removed soon: https://github.com/WICG/trusted-types/pull/204 */ - trustedTypes.isURL && trustedTypes.isURL(value))) { - // Pass Trusted Types through. - return value; - } +/* eslint-disable max-len */ - return toString(value); - }; -} -/** - * Set attribute for a node. The attribute value can be either string or - * Trusted value (if application uses Trusted Types). - */ -function setAttribute(node, attributeName, attributeValue) { - node.setAttribute(attributeName, attributeValue); -} -/** - * Set attribute with namespace for a node. The attribute value can be either string or - * Trusted value (if application uses Trusted Types). - */ +var isJavaScriptProtocol = /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i; +var didWarn = false; -function setAttributeNS(node, attributeNamespace, attributeName, attributeValue) { - node.setAttributeNS(attributeNamespace, attributeName, attributeValue); +function sanitizeURL(url) { + { + if (!didWarn && isJavaScriptProtocol.test(url)) { + didWarn = true; + + error('A future version of React will block javascript: URLs as a security precaution. ' + 'Use event handlers instead if you can. If you need to generate unsafe HTML try ' + 'using dangerouslySetInnerHTML instead. React was passed %s.', JSON.stringify(url)); + } + } } /** @@ -33787,7 +36263,7 @@ function getValueForProperty(node, name, expected, propertyInfo) { var propertyName = propertyInfo.propertyName; return node[propertyName]; } else { - if (!disableJavaScriptURLs && propertyInfo.sanitizeURL) { + if ( propertyInfo.sanitizeURL) { // If we haven't fully disabled javascript: URLs, and if // the hydration is successful of a javascript: URL, we // still want to warn on the client. @@ -33897,7 +36373,7 @@ function setValueForProperty(node, name, value, isCustomComponentTag) { if (value === null) { node.removeAttribute(_attributeName); } else { - setAttribute(node, _attributeName, toStringOrTrustedType(value)); + node.setAttribute(_attributeName, '' + value); } } @@ -33938,7 +36414,9 @@ function setValueForProperty(node, name, value, isCustomComponentTag) { } else { // `setAttribute` with objects becomes only `[object]` in IE8/9, // ('' + value) makes it output the correct toString()-value. - attributeValue = toStringOrTrustedType(value); + { + attributeValue = '' + value; + } if (propertyInfo.sanitizeURL) { sanitizeURL(attributeValue.toString()); @@ -33946,3322 +36424,2783 @@ function setValueForProperty(node, name, value, isCustomComponentTag) { } if (attributeNamespace) { - setAttributeNS(node, attributeNamespace, attributeName, attributeValue); - } else { - setAttribute(node, attributeName, attributeValue); - } - } -} - -var ReactDebugCurrentFrame$2 = null; -var ReactControlledValuePropTypes = { - checkPropTypes: null -}; - -{ - ReactDebugCurrentFrame$2 = ReactSharedInternals.ReactDebugCurrentFrame; - var hasReadOnlyValue = { - button: true, - checkbox: true, - image: true, - hidden: true, - radio: true, - reset: true, - submit: true - }; - var propTypes = { - value: function (props, propName, componentName) { - if (hasReadOnlyValue[props.type] || props.onChange || props.readOnly || props.disabled || props[propName] == null || enableFlareAPI && props.listeners) { - return null; - } - - return new Error('You provided a `value` prop to a form field without an ' + '`onChange` handler. This will render a read-only field. If ' + 'the field should be mutable use `defaultValue`. Otherwise, ' + 'set either `onChange` or `readOnly`.'); - }, - checked: function (props, propName, componentName) { - if (props.onChange || props.readOnly || props.disabled || props[propName] == null || enableFlareAPI && props.listeners) { - return null; - } - - return new Error('You provided a `checked` prop to a form field without an ' + '`onChange` handler. This will render a read-only field. If ' + 'the field should be mutable use `defaultChecked`. Otherwise, ' + 'set either `onChange` or `readOnly`.'); - } - }; - /** - * Provide a linked `value` attribute for controlled forms. You should not use - * this outside of the ReactDOM controlled form components. - */ - - ReactControlledValuePropTypes.checkPropTypes = function (tagName, props) { - checkPropTypes(propTypes, props, 'prop', tagName, ReactDebugCurrentFrame$2.getStackAddendum); - }; -} - -function isCheckable(elem) { - var type = elem.type; - var nodeName = elem.nodeName; - return nodeName && nodeName.toLowerCase() === 'input' && (type === 'checkbox' || type === 'radio'); -} - -function getTracker(node) { - return node._valueTracker; -} - -function detachTracker(node) { - node._valueTracker = null; -} - -function getValueFromNode(node) { - var value = ''; - - if (!node) { - return value; - } - - if (isCheckable(node)) { - value = node.checked ? 'true' : 'false'; - } else { - value = node.value; - } - - return value; -} - -function trackValueOnNode(node) { - var valueField = isCheckable(node) ? 'checked' : 'value'; - var descriptor = Object.getOwnPropertyDescriptor(node.constructor.prototype, valueField); - var currentValue = '' + node[valueField]; // if someone has already defined a value or Safari, then bail - // and don't track value will cause over reporting of changes, - // but it's better then a hard failure - // (needed for certain tests that spyOn input values and Safari) - - if (node.hasOwnProperty(valueField) || typeof descriptor === 'undefined' || typeof descriptor.get !== 'function' || typeof descriptor.set !== 'function') { - return; - } - - var get = descriptor.get, - set = descriptor.set; - Object.defineProperty(node, valueField, { - configurable: true, - get: function () { - return get.call(this); - }, - set: function (value) { - currentValue = '' + value; - set.call(this, value); - } - }); // We could've passed this the first time - // but it triggers a bug in IE11 and Edge 14/15. - // Calling defineProperty() again should be equivalent. - // https://github.com/facebook/react/issues/11768 - - Object.defineProperty(node, valueField, { - enumerable: descriptor.enumerable - }); - var tracker = { - getValue: function () { - return currentValue; - }, - setValue: function (value) { - currentValue = '' + value; - }, - stopTracking: function () { - detachTracker(node); - delete node[valueField]; - } - }; - return tracker; -} - -function track(node) { - if (getTracker(node)) { - return; - } // TODO: Once it's just Fiber we can move this to node._wrapperState - - - node._valueTracker = trackValueOnNode(node); -} -function updateValueIfChanged(node) { - if (!node) { - return false; - } - - var tracker = getTracker(node); // if there is no tracker at this point it's unlikely - // that trying again will succeed - - if (!tracker) { - return true; - } - - var lastValue = tracker.getValue(); - var nextValue = getValueFromNode(node); - - if (nextValue !== lastValue) { - tracker.setValue(nextValue); - return true; - } - - return false; -} - -// TODO: direct imports like some-package/src/* are bad. Fix me. -var didWarnValueDefaultValue = false; -var didWarnCheckedDefaultChecked = false; -var didWarnControlledToUncontrolled = false; -var didWarnUncontrolledToControlled = false; - -function isControlled(props) { - var usesChecked = props.type === 'checkbox' || props.type === 'radio'; - return usesChecked ? props.checked != null : props.value != null; -} -/** - * Implements an host component that allows setting these optional - * props: `checked`, `value`, `defaultChecked`, and `defaultValue`. - * - * If `checked` or `value` are not supplied (or null/undefined), user actions - * that affect the checked state or value will trigger updates to the element. - * - * If they are supplied (and not null/undefined), the rendered element will not - * trigger updates to the element. Instead, the props must change in order for - * the rendered element to be updated. - * - * The rendered element will be initialized as unchecked (or `defaultChecked`) - * with an empty value (or `defaultValue`). - * - * See http://www.w3.org/TR/2012/WD-html5-20121025/the-input-element.html - */ - - -function getHostProps(element, props) { - var node = element; - var checked = props.checked; - - var hostProps = _assign({}, props, { - defaultChecked: undefined, - defaultValue: undefined, - value: undefined, - checked: checked != null ? checked : node._wrapperState.initialChecked - }); - - return hostProps; -} -function initWrapperState(element, props) { - { - ReactControlledValuePropTypes.checkPropTypes('input', props); - - if (props.checked !== undefined && props.defaultChecked !== undefined && !didWarnCheckedDefaultChecked) { - warning$1(false, '%s contains an input of type %s with both checked and defaultChecked props. ' + 'Input elements must be either controlled or uncontrolled ' + '(specify either the checked prop, or the defaultChecked prop, but not ' + 'both). Decide between using a controlled or uncontrolled input ' + 'element and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components', getCurrentFiberOwnerNameInDevOrNull() || 'A component', props.type); - didWarnCheckedDefaultChecked = true; - } - - if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValueDefaultValue) { - warning$1(false, '%s contains an input of type %s with both value and defaultValue props. ' + 'Input elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled input ' + 'element and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components', getCurrentFiberOwnerNameInDevOrNull() || 'A component', props.type); - didWarnValueDefaultValue = true; - } - } - - var node = element; - var defaultValue = props.defaultValue == null ? '' : props.defaultValue; - node._wrapperState = { - initialChecked: props.checked != null ? props.checked : props.defaultChecked, - initialValue: getToStringValue(props.value != null ? props.value : defaultValue), - controlled: isControlled(props) - }; -} -function updateChecked(element, props) { - var node = element; - var checked = props.checked; - - if (checked != null) { - setValueForProperty(node, 'checked', checked, false); - } -} -function updateWrapper(element, props) { - var node = element; - - { - var controlled = isControlled(props); - - if (!node._wrapperState.controlled && controlled && !didWarnUncontrolledToControlled) { - warning$1(false, 'A component is changing an uncontrolled input of type %s to be controlled. ' + 'Input elements should not switch from uncontrolled to controlled (or vice versa). ' + 'Decide between using a controlled or uncontrolled input ' + 'element for the lifetime of the component. More info: https://fb.me/react-controlled-components', props.type); - didWarnUncontrolledToControlled = true; - } - - if (node._wrapperState.controlled && !controlled && !didWarnControlledToUncontrolled) { - warning$1(false, 'A component is changing a controlled input of type %s to be uncontrolled. ' + 'Input elements should not switch from controlled to uncontrolled (or vice versa). ' + 'Decide between using a controlled or uncontrolled input ' + 'element for the lifetime of the component. More info: https://fb.me/react-controlled-components', props.type); - didWarnControlledToUncontrolled = true; - } - } - - updateChecked(element, props); - var value = getToStringValue(props.value); - var type = props.type; - - if (value != null) { - if (type === 'number') { - if (value === 0 && node.value === '' || // We explicitly want to coerce to number here if possible. - // eslint-disable-next-line - node.value != value) { - node.value = toString(value); - } - } else if (node.value !== toString(value)) { - node.value = toString(value); - } - } else if (type === 'submit' || type === 'reset') { - // Submit/reset inputs need the attribute removed completely to avoid - // blank-text buttons. - node.removeAttribute('value'); - return; - } - - if (disableInputAttributeSyncing) { - // When not syncing the value attribute, React only assigns a new value - // whenever the defaultValue React prop has changed. When not present, - // React does nothing - if (props.hasOwnProperty('defaultValue')) { - setDefaultValue(node, props.type, getToStringValue(props.defaultValue)); - } - } else { - // When syncing the value attribute, the value comes from a cascade of - // properties: - // 1. The value React property - // 2. The defaultValue React property - // 3. Otherwise there should be no change - if (props.hasOwnProperty('value')) { - setDefaultValue(node, props.type, value); - } else if (props.hasOwnProperty('defaultValue')) { - setDefaultValue(node, props.type, getToStringValue(props.defaultValue)); - } - } - - if (disableInputAttributeSyncing) { - // When not syncing the checked attribute, the attribute is directly - // controllable from the defaultValue React property. It needs to be - // updated as new props come in. - if (props.defaultChecked == null) { - node.removeAttribute('checked'); - } else { - node.defaultChecked = !!props.defaultChecked; - } - } else { - // When syncing the checked attribute, it only changes when it needs - // to be removed, such as transitioning from a checkbox into a text input - if (props.checked == null && props.defaultChecked != null) { - node.defaultChecked = !!props.defaultChecked; - } - } -} -function postMountWrapper(element, props, isHydrating) { - var node = element; // Do not assign value if it is already set. This prevents user text input - // from being lost during SSR hydration. - - if (props.hasOwnProperty('value') || props.hasOwnProperty('defaultValue')) { - var type = props.type; - var isButton = type === 'submit' || type === 'reset'; // Avoid setting value attribute on submit/reset inputs as it overrides the - // default value provided by the browser. See: #12872 - - if (isButton && (props.value === undefined || props.value === null)) { - return; - } - - var initialValue = toString(node._wrapperState.initialValue); // Do not assign value if it is already set. This prevents user text input - // from being lost during SSR hydration. - - if (!isHydrating) { - if (disableInputAttributeSyncing) { - var value = getToStringValue(props.value); // When not syncing the value attribute, the value property points - // directly to the React prop. Only assign it if it exists. - - if (value != null) { - // Always assign on buttons so that it is possible to assign an - // empty string to clear button text. - // - // Otherwise, do not re-assign the value property if is empty. This - // potentially avoids a DOM write and prevents Firefox (~60.0.1) from - // prematurely marking required inputs as invalid. Equality is compared - // to the current value in case the browser provided value is not an - // empty string. - if (isButton || value !== node.value) { - node.value = toString(value); - } - } - } else { - // When syncing the value attribute, the value property should use - // the wrapperState._initialValue property. This uses: - // - // 1. The value React property when present - // 2. The defaultValue React property when present - // 3. An empty string - if (initialValue !== node.value) { - node.value = initialValue; - } - } - } - - if (disableInputAttributeSyncing) { - // When not syncing the value attribute, assign the value attribute - // directly from the defaultValue React property (when present) - var defaultValue = getToStringValue(props.defaultValue); - - if (defaultValue != null) { - node.defaultValue = toString(defaultValue); - } + node.setAttributeNS(attributeNamespace, attributeName, attributeValue); } else { - // Otherwise, the value attribute is synchronized to the property, - // so we assign defaultValue to the same thing as the value property - // assignment step above. - node.defaultValue = initialValue; - } - } // Normally, we'd just do `node.checked = node.checked` upon initial mount, less this bug - // this is needed to work around a chrome bug where setting defaultChecked - // will sometimes influence the value of checked (even after detachment). - // Reference: https://bugs.chromium.org/p/chromium/issues/detail?id=608416 - // We need to temporarily unset name to avoid disrupting radio button groups. - - - var name = node.name; - - if (name !== '') { - node.name = ''; - } - - if (disableInputAttributeSyncing) { - // When not syncing the checked attribute, the checked property - // never gets assigned. It must be manually set. We don't want - // to do this when hydrating so that existing user input isn't - // modified - if (!isHydrating) { - updateChecked(element, props); - } // Only assign the checked attribute if it is defined. This saves - // a DOM write when controlling the checked attribute isn't needed - // (text inputs, submit/reset) - - - if (props.hasOwnProperty('defaultChecked')) { - node.defaultChecked = !node.defaultChecked; - node.defaultChecked = !!props.defaultChecked; - } - } else { - // When syncing the checked attribute, both the checked property and - // attribute are assigned at the same time using defaultChecked. This uses: - // - // 1. The checked React property when present - // 2. The defaultChecked React property when present - // 3. Otherwise, false - node.defaultChecked = !node.defaultChecked; - node.defaultChecked = !!node._wrapperState.initialChecked; - } - - if (name !== '') { - node.name = name; - } -} -function restoreControlledState$1(element, props) { - var node = element; - updateWrapper(node, props); - updateNamedCousins(node, props); -} - -function updateNamedCousins(rootNode, props) { - var name = props.name; - - if (props.type === 'radio' && name != null) { - var queryRoot = rootNode; - - while (queryRoot.parentNode) { - queryRoot = queryRoot.parentNode; - } // If `rootNode.form` was non-null, then we could try `form.elements`, - // but that sometimes behaves strangely in IE8. We could also try using - // `form.getElementsByName`, but that will only return direct children - // and won't include inputs that use the HTML5 `form=` attribute. Since - // the input might not even be in a form. It might not even be in the - // document. Let's just use the local `querySelectorAll` to ensure we don't - // miss anything. - - - var group = queryRoot.querySelectorAll('input[name=' + JSON.stringify('' + name) + '][type="radio"]'); - - for (var i = 0; i < group.length; i++) { - var otherNode = group[i]; - - if (otherNode === rootNode || otherNode.form !== rootNode.form) { - continue; - } // This will throw if radio buttons rendered by different copies of React - // and the same name are rendered into the same form (same as #1939). - // That's probably okay; we don't support it just as we don't support - // mixing React radio buttons with non-React ones. - - - var otherProps = getFiberCurrentPropsFromNode$1(otherNode); - - if (!otherProps) { - { - throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported."); - } - } // We need update the tracked value on the named cousin since the value - // was changed but the input saw no event or value set - - - updateValueIfChanged(otherNode); // If this is a controlled radio button group, forcing the input that - // was previously checked to update will cause it to be come re-checked - // as appropriate. - - updateWrapper(otherNode, otherProps); - } - } -} // In Chrome, assigning defaultValue to certain input types triggers input validation. -// For number inputs, the display value loses trailing decimal points. For email inputs, -// Chrome raises "The specified value is not a valid email address". -// -// Here we check to see if the defaultValue has actually changed, avoiding these problems -// when the user is inputting text -// -// https://github.com/facebook/react/issues/7253 - - -function setDefaultValue(node, type, value) { - if ( // Focused number inputs synchronize on blur. See ChangeEventPlugin.js - type !== 'number' || node.ownerDocument.activeElement !== node) { - if (value == null) { - node.defaultValue = toString(node._wrapperState.initialValue); - } else if (node.defaultValue !== toString(value)) { - node.defaultValue = toString(value); + node.setAttribute(attributeName, attributeValue); } } } -var didWarnSelectedSetOnOption = false; -var didWarnInvalidChild = false; - -function flattenChildren(children) { - var content = ''; // Flatten children. We'll warn if they are invalid - // during validateProps() which runs for hydration too. - // Note that this would throw on non-element objects. - // Elements are stringified (which is normally irrelevant - // but matters for ). - - React.Children.forEach(children, function (child) { - if (child == null) { - return; - } - - content += child; // Note: we don't warn about invalid children here. - // Instead, this is done separately below so that - // it happens during the hydration codepath too. - }); - return content; -} -/** - * Implements an