����JFIFXX�����    $.' ",#(7),01444'9=82<.342  2!!22222222222222222222222222222222222222222222222222����"��4�� ���,�PG"Z_�4�˷����kjز�Z�,F+��_z�,�© �����zh6�٨�ic�fu���#ډb���_�N�?��wQ���5-�~�I���8����TK<5o�Iv-�����k�_U_�����~b�M��d����Ӝ�U�Hh��?]��E�w��Q���k�{��_}qFW7HTՑ��Y��F�?_�'ϔ��_�Ջt��=||I ��6�έ"�����D���/[�k�9���Y�8ds|\���Ҿp6�Ҵ���]��.����6�z<�v��@]�i%��$j��~�g��J>��no����pM[me�i$[����s�o�ᘨ�˸ nɜG-�ĨU�ycP�3.DB�li�;��hj���x7Z^�N�h������N3u{�:j�x�힞��#M&��jL P@_���� P��&��o8������9�����@Sz6�t7#O�ߋ �s}Yf�T���lmr����Z)'N��k�۞p����w\�Tȯ?�8`�O��i{wﭹW�[�r�� ��Q4F�׊���3m&L�=��h3����z~��#�\�l :�F,j@�� ʱ�wQT����8�"kJO���6�֚l����}���R�>ډK���]��y����&����p�}b��;N�1�m�r$�|��7�>e�@B�TM*-iH��g�D�)� E�m�|�ؘbҗ�a��Ҿ����t4���o���G��*oCN�rP���Q��@z,|?W[0�����:�n,jWiE��W��$~/�hp\��?��{(�0���+�Y8rΟ�+����>S-S����VN;�}�s?.����� w�9��˟<���Mq4�Wv'��{)0�1mB��V����W[�����8�/<� �%���wT^�5���b��)iM� pg�N�&ݝ��VO~�q���u���9� ����!��J27����$O-���! �:�%H��� ـ����y�ΠM=t{!S�� oK8������t<����è:a������[�����ա�H���~��w��Qz`�po�^ ����Q��n� �,uu�C�$ ^���,������8�#��:�6��e�|~���!�3�3.�\0��q��o�4`.|� ����y�Q�`~;�d�ׯ,��O�Zw�������`73�v�܋�<���Ȏ�� ـ4k��5�K�a�u�=9Yd��$>x�A�&�� j0� ���vF��� Y�|�y��� ~�6�@c��1vOp�Ig����4��l�OD���L����� R���c���j�_�uX6��3?nk��Wy�f;^*B� ��@�~a�`��Eu������+���6�L��.ü>��}y���}_�O�6�͐�:�YrG�X��kG�����l^w���~㒶sy��Iu�!� W ��X��N�7BV��O��!X�2����wvG�R�f�T#�����t�/?���%8�^�W�aT��G�cL�M���I��(J����1~�8�?aT ���]����AS�E��(��*E}� 2��#I/�׍qz��^t�̔���b�Yz4x���t�){ OH��+(E��A&�N�������XT��o��"�XC��'���)}�J�z�p� ��~5�}�^����+�6����w��c��Q�|Lp�d�H��}�(�.|����k��c4^�"�����Z?ȕ ��a<�L�!039C� �Eu�C�F�Ew�ç ;�n?�*o���B�8�bʝ���'#Rqf���M}7����]����s2tcS{�\icTx;�\��7K���P���ʇ Z O-��~��c>"��?�������P��E��O�8��@�8��G��Q�g�a�Վ���󁶠�䧘��_%#r�>�1�z�a��eb��qcPѵ��n���#L��� =��׀t� L�7�`��V���A{�C:�g���e@�w1 Xp3�c3�ġ����p��M"'-�@n4���fG��B3�DJ�8[Jo�ߐ���gK)ƛ��$���� ���8�3�����+���� �����6�ʻ���� ���S�kI�*KZlT _`���?��K����QK�d����B`�s}�>���`��*�>��,*@J�d�oF*����弝��O}�k��s��]��y�ߘ��c1G�V���<=�7��7����6�q�PT��tXԀ�!9*4�4Tހ3XΛex�46���Y��D ����� �BdemDa����\�_l,��G�/���֌7���Y�](�xTt^%�GE�����4�}bT���ڹ�����;Y)���B�Q��u��>J/J �⮶.�XԄ��j�ݳ�+E��d ��r�5�_D�1 ��o�� �B�x�΢�#���<��W�����8���R6�@g�M�.��� dr�D��>(otU��@x=��~v���2� ӣ�d�oBd��3�eO�6�㣷�����ݜ6��6Y��Qz`��S��{���\P�~z m5{J/L��1������<�e�ͅPu�b�]�ϔ���'������f�b� Zpw��c`"��i���BD@:)ִ�:�]��hv�E�w���T�l��P���"Ju�}��وV J��G6��. J/�Qgl߭�e�����@�z�Zev2u�)]կ�����7x���s�M�-<ɯ�c��r�v�����@��$�ޮ}lk���a���'����>x��O\�ZFu>�����ck#��&:��`�$�ai�>2Δ����l���oF[h��lE�ܺ�Πk:)���`�� $[6�����9�����kOw�\|���8}������ބ:��񶐕��I�A1/�=�2[�,�!��.}gN#�u����b��� ~��݊��}34q����d�E��Lc��$��"�[q�U�硬g^��%B �z���r�pJ�ru%v\h1Y�ne`ǥ:g���pQM~�^�Xi� ��`S�:V29.�P���V�?B�k�� AEvw%�_�9C�Q����wKekPؠ�\�;Io d�{ ߞo�c1eP����\� `����E=���@K<�Y���eڼ�J���w����{av�F�'�M�@/J��+9p���|]�����Iw &`��8���&M�hg��[�{��Xj��%��Ӓ�$��(����ʹN���<>�I���RY���K2�NPlL�ɀ)��&e����B+ь����( � �JTx���_?EZ� }@ 6�U���뙢ط�z��dWI�n` D����噥�[��uV��"�G&Ú����2g�}&m��?ċ�"����Om#��������� ��{�ON��"S�X��Ne��ysQ���@Fn��Vg���dX�~nj�]J�<�K]:��FW��b�������62�=��5f����JKw��bf�X�55��~J �%^����:�-�QIE��P��v�nZum� z � ~ə ���� ���ة����;�f��\v���g�8�1��f24;�V���ǔ�)����9���1\��c��v�/'Ƞ�w�������$�4�R-��t���� e�6�/�ġ �̕Ecy�J���u�B���<�W�ַ~�w[B1L۲�-JS΂�{���΃������A��20�c#��@ 0!1@AP"#2Q`$3V�%45a6�FRUq��� ����^7ׅ,$n�������+��F�`��2X'��0vM��p�L=������5��8������u�p~���.�`r�����\���O��,ư�0oS ��_�M�����l���4�kv\JSd���x���SW�<��Ae�IX����������$I���w�:S���y���›R��9�Q[���,�5�;�@]�%���u�@ *ro�lbI �� ��+���%m:�͇ZV�����u�̉����θau<�fc�.����{�4Ա� �Q����*�Sm��8\ujqs]{kN���)qO�y�_*dJ�b�7���yQqI&9�ԌK!�M}�R�;������S�T���1���i[U�ɵz�]��U)V�S6���3$K{�ߊ<�(� E]Զ[ǼENg�����'�\?#)Dkf��J���o��v���'�%ƞ�&K�u�!��b�35LX�Ϸ��63$K�a�;�9>,R��W��3�3� d�JeTYE.Mϧ��-�o�j3+y��y^�c�������VO�9NV\nd�1 ��!͕_)a�v;����թ�M�lWR1��)El��P;��yوÏ�u 3�k�5Pr6<�⒲l�!˞*��u־�n�!�l:����UNW ��%��Chx8vL'��X�@��*��)���̮��ˍ��� ���D-M�+J�U�kvK����+�x8��cY������?�Ԡ��~3mo��|�u@[XeY�C�\Kp�x8�oC�C�&����N�~3-H���� ��MX�s�u<`���~"WL��$8ξ��3���a�)|:@�m�\���^�`�@ҷ)�5p+��6���p�%i)P M���ngc�����#0Aruz���RL+xSS?���ʮ}()#�t��mˇ!��0}}y����<�e� �-ή�Ԩ��X������ MF���ԙ~l L.3���}�V뽺�v�����멬��Nl�)�2����^�Iq��a��M��qG��T�����c3#������3U�Ǎ���}��לS�|qa��ڃ�+���-��2�f����/��bz��ڐ�� �ݼ[2�ç����k�X�2�* �Z�d���J�G����M*9W���s{��w���T��x��y,�in�O�v��]���n����P�$�JB@=4�OTI�n��e�22a\����q�d���%�$��(���:���: /*�K[PR�fr\nڙdN���F�n�$�4�[�� U�zƶ����� �mʋ���,�ao�u 3�z� �x��Kn����\[��VFmbE;�_U��&V�Gg�]L�۪&#n%�$ɯ�dG���D�TI=�%+AB�Ru#��b4�1�»x�cs�YzڙJG��f��Il��d�eF'T� iA��T���uC�$����Y��H?����[!G`}���ͪ� �纤Hv\������j�Ex�K���!���OiƸ�Yj�+u-<���'q����uN�*�r\��+�]���<�wOZ.fp�ێ��,-*)V?j-kÊ#�`�r��dV����(�ݽBk�����G�ƛk�QmUڗe��Z���f}|����8�8��a���i��3'J�����~G_�^���d�8w������ R�`(�~�.��u���l�s+g�bv���W���lGc}��u���afE~1�Ue������Z�0�8�=e�� f@/�jqEKQQ�J��oN��J���W5~M>$6�Lt�;$ʳ{���^��6�{����v6���ķܰg�V�cnn �~z�x�«�,2�u�?cE+Ș�H؎�%�Za�)���X>uW�Tz�Nyo����s���FQƤ��$��*�&�LLXL)�1�" L��eO��ɟ�9=���:t��Z���c��Ž���Y?�ӭV�wv�~,Y��r�ۗ�|�y��GaF�����C�����.�+� ���v1���fήJ�����]�S��T��B��n5sW}y�$��~z�'�c ��8 ��� ,! �p��VN�S��N�N�q��y8z˱�A��4��*��'������2n<�s���^ǧ˭P�Jޮɏ�U�G�L�J�*#��<�V��t7�8����TĜ>��i}K%,���)[��z�21z ?�N�i�n1?T�I�R#��m-�����������������1����lA�`��fT5+��ܐ�c�q՝��ʐ��,���3�f2U�եmab��#ŠdQ�y>\��)�SLY����w#��.���ʑ�f��� ,"+�w�~�N�'�c�O�3F�������N<���)j��&��,-� �љ���֊�_�zS���TǦ����w�>��?�������n��U仆�V���e�����0���$�C�d���rP �m�׈e�Xm�Vu� �L��.�bֹ��� �[Դaզ���*��\y�8�Է:�Ez\�0�Kq�C b��̘��cө���Q��=0Y��s�N��S.���3.���O�o:���#���v7�[#߫ ��5�܎�L���Er4���9n��COWlG�^��0k�%<���ZB���aB_���������'=��{i�v�l�$�uC���mƎҝ{�c㱼�y]���W�i ��ߧc��m�H� m�"�"�����;Y�ߝ�Z�Ǔ�����:S#��|}�y�,/k�Ld� TA�(�AI$+I3��;Y*���Z��}|��ӧO��d�v��..#:n��f>�>���ȶI�TX��� 8��y����"d�R�|�)0���=���n4��6ⲑ�+��r<�O�܂~zh�z����7ܓ�HH�Ga롏���nCo�>������a ���~]���R���̲c?�6(�q�;5%� |�uj�~z8R=X��I�V=�|{v�Gj\gc��q����z�؋%M�ߍ����1y��#��@f^���^�>N�����#x#۹��6�Y~�?�dfPO��{��P�4��V��u1E1J �*|���%���JN��`eWu�zk M6���q t[�� ��g�G���v��WIG��u_ft����5�j�"�Y�:T��ɐ���*�;� e5���4����q$C��2d�}���� _S�L#m�Yp��O�.�C�;��c����Hi#֩%+) �Ӎ��ƲV���SYź��g |���tj��3�8���r|���V��1#;.SQ�A[���S������#���`n�+���$��$I �P\[�@�s��(�ED�z���P��])8�G#��0B��[ى��X�II�q<��9�~[Z멜�Z�⊔IWU&A>�P~�#��dp<�?����7���c��'~���5 ��+$���lx@�M�dm��n<=e�dyX��?{�|Aef ,|n3�<~z�ƃ�uۧ�����P��Y,�ӥQ�*g�#먙R�\���;T��i,��[9Qi歉����c>]9�� ��"�c��P�� �Md?٥��If�ت�u��k��/����F��9�c*9��Ǎ:�ØF���z�n*�@|I�ށ9����N3{'��[�'ͬ�Ҳ4��#}��!�V� Fu��,�,mTIk���v C�7v���B�6k�T9��1�*l� '~��ƞF��lU��'�M ����][ΩũJ_�{�i�I�n��$���L�� j��O�dx�����kza۪��#�E��Cl����x˘�o�����V���ɞ�ljr��)�/,�߬h�L��#��^��L�ф�,íMƁe�̩�NB�L�����iL����q�}��(��q��6IçJ$�W�E$��:������=#����(�K�B����zђ <��K(�N�۫K�w��^O{!����)�H���>x�������lx�?>Պ�+�>�W���,Ly!_�D���Ō�l���Q�!�[ �S����J��1��Ɛ�Y}��b,+�Lo�x�ɓ)����=�y�oh�@�꥟/��I��ѭ=��P�y9��� �ۍYӘ�e+�p�Jnϱ?V\SO%�(�t� ���=?MR�[Ș�����d�/ ��n�l��B�7j� ��!�;ӥ�/�[-���A�>�dN�sLj ��,ɪv��=1c�.SQ�O3�U���ƀ�ܽ�E����������̻��9G�ϷD�7(�}��Ävӌ\�y�_0[w ���<΍>����a_��[0+�L��F.�޺��f�>oN�T����q;���y\��bՃ��y�jH�<|q-eɏ�_?_9+P���Hp$�����[ux�K w�Mw��N�ی'$Y2�=��q���KB��P��~������Yul:�[<����F1�2�O���5=d����]Y�sw:���Ϯ���E��j,_Q��X��z`H1,#II ��d�wr��P˂@�ZJV����y$�\y�{}��^~���[:N����ߌ�U�������O��d�����ؾe��${p>G��3c���Ė�lʌ�� ת��[��`ϱ�-W����dg�I��ig2��� ��}s ��ؤ(%#sS@���~���3�X�nRG�~\jc3�v��ӍL��M[JB�T��s3}��j�Nʖ��W����;7��ç?=X�F=-�=����q�ߚ���#���='�c��7���ڑW�I(O+=:uxq�������������e2�zi+�kuG�R��������0�&e�n���iT^J����~\jy���p'dtG��s����O��3����9* �b#Ɋ�� p������[Bws�T�>d4�ۧs���nv�n���U���_�~,�v����ƜJ1��s�� �QIz��)�(lv8M���U=�;����56��G���s#�K���MP�=��LvyGd��}�VwWBF�'�à �?MH�U�g2�� ����!�p�7Q��j��ڴ����=��j�u��� Jn�A s���uM������e��Ɔ�Ҕ�!)'��8Ϣ�ٔ��ޝ(��Vp���צ֖d=�IC�J�Ǡ{q������kԭ�߸���i��@K����u�|�p=..�*+����x�����z[Aqġ#s2a�Ɗ���RR�)*HRsi�~�a &f��M��P����-K�L@��Z��Xy�'x�{}��Zm+���:�)�) IJ�-i�u���� ���ܒH��'�L(7�y�GӜq���� j��� 6ߌg1�g�o���,kر���tY�?W,���p���e���f�OQS��!K�۟cҒA�|ս�j�>��=⬒��˧L[�� �߿2JaB~R��u�:��Q�] �0H~���]�7��Ƽ�I���(}��cq '�ήET���q�?f�ab���ӥvr� �)o��-Q��_'����ᴎo��K������;��V���o��%���~OK ����*��b�f:���-ťIR��`B�5!RB@���ï�� �u �̯e\�_U�_������� g�ES��3�������QT��a����x����U<~�c?�*�#]�MW,[8O�a�x��]�1bC|踤�P��lw5V%�)�{t�<��d��5���0i�XSU��m:��Z�┵�i�"��1�^B�-��P�hJ��&)O��*�D��c�W��vM��)����}���P��ܗ-q����\mmζZ-l@�}��a��E�6��F�@��&Sg@���ݚ�M����� ȹ 4����#p�\H����dYDo�H���"��\��..R�B�H�z_�/5˘����6��KhJR��P�mƶi�m���3�,#c�co��q�a)*Pt����R�m�k�7x�D�E�\Y�閣_X�<���~�)���c[[�BP����6�Yq���S��0����%_����;��Àv�~�| VS؇ ��'O0��F0��\���U�-�d@�����7�SJ*z��3n��y��P����O���������m�~�P�3|Y��ʉr#�C�<�G~�.,! ���bqx���h~0=��!ǫ�jy����l�O,�[B��~��|9��ٱ����Xly�#�i�B��g%�S��������tˋ���e���ې��\[d�t)��.+u�|1 ������#�~Oj����hS�%��i.�~X���I�H�m��0n���c�1uE�q��cF�RF�o���7� �O�ꮧ� ���ۛ{��ʛi5�rw?׌#Qn�TW��~?y$��m\�\o����%W� ?=>S�N@�� �Ʈ���R����N�)�r"C�:��:����� �����#��qb��Y�. �6[��2K����2u�Ǧ�HYR��Q�MV��� �G�$��Q+.>�����nNH��q�^��� ����q��mM��V��D�+�-�#*�U�̒ ���p욳��u:�������IB���m���PV@O���r[b= �� ��1U�E��_Nm�yKbN�O���U�}�the�`�|6֮P>�\2�P�V���I�D�i�P�O;�9�r�mAHG�W�S]��J*�_�G��+kP�2����Ka�Z���H�'K�x�W�MZ%�O�YD�Rc+o��?�q��Ghm��d�S�oh�\�D�|:W������UA�Qc yT�q������~^�H��/��#p�CZ���T�I�1�ӏT����4��"�ČZ�����}��`w�#�*,ʹ�� ��0�i��課�Om�*�da��^gJ݅{���l�e9uF#T�ֲ��̲�ٞC"�q���ߍ ոޑ�o#�XZTp����@ o�8��(jd��xw�]�,f���`~�|,s��^����f�1���t��|��m�򸄭/ctr��5s��7�9Q�4�H1꠲BB@l9@���C�����+�wp�xu�£Yc�9��?`@#�o�mH�s2��)�=��2�.�l����jg�9$�Y�S�%*L������R�Y������7Z���,*=�䷘$�������arm�o�ϰ���UW.|�r�uf����IGw�t����Zwo��~5 ��YյhO+=8fF�)�W�7�L9lM�̘·Y���֘YLf�큹�pRF���99.A �"wz��=E\Z���'a� 2��Ǚ�#;�'}�G���*��l��^"q��+2FQ� hj��kŦ��${���ޮ-�T�٭cf�|�3#~�RJ����t��$b�(R��(����r���dx� >U b�&9,>���%E\� Ά�e�$��'�q't��*�א���ެ�b��-|d���SB�O�O��$�R+�H�)�܎�K��1m`;�J�2�Y~9��O�g8=vqD`K[�F)k�[���1m޼c��n���]s�k�z$@��)!I �x՝"v��9=�ZA=`Ɠi �:�E��)`7��vI��}d�YI�_ �o�:ob���o ���3Q��&D&�2=�� �Ά��;>�h����y.*ⅥS������Ӭ�+q&����j|UƧ����}���J0��WW< ۋS�)jQR�j���Ư��rN)�Gű�4Ѷ(�S)Ǣ�8��i��W52���No˓� ۍ%�5brOn�L�;�n��\G����=�^U�dI���8$�&���h��'���+�(������cȁ߫k�l��S^���cƗjԌE�ꭔ��gF���Ȓ��@���}O���*;e�v�WV���YJ\�]X'5��ղ�k�F��b 6R�o՜m��i N�i����>J����?��lPm�U��}>_Z&�KK��q�r��I�D�Չ~�q�3fL�:S�e>���E���-G���{L�6p�e,8��������QI��h��a�Xa��U�A'���ʂ���s�+טIjP�-��y�8ۈZ?J$��W�P� ��R�s�]��|�l(�ԓ��sƊi��o(��S0��Y� 8�T97.�����WiL��c�~�dxc�E|�2!�X�K�Ƙਫ਼�$((�6�~|d9u+�qd�^3�89��Y�6L�.I�����?���iI�q���9�)O/뚅����O���X��X�V��ZF[�یgQ�L��K1���RҖr@v�#��X�l��F���Нy�S�8�7�kF!A��sM���^rkp�jP�DyS$N���q��nxҍ!U�f�!eh�i�2�m���`�Y�I�9r�6� �TF���C}/�y�^���Η���5d�'��9A-��J��>{�_l+�`��A���[�'��յ�ϛ#w:݅�%��X�}�&�PSt�Q�"�-��\縵�/����$Ɨh�Xb�*�y��BS����;W�ջ_mc�����vt?2}1�;qS�d�d~u:2k5�2�R�~�z+|HE!)�Ǟl��7`��0�<�,�2*���Hl-��x�^����'_TV�gZA�'j� ^�2Ϊ��N7t�����?w�� �x1��f��Iz�C-Ȗ��K�^q�;���-W�DvT�7��8�Z�������� hK�(P:��Q- �8�n�Z���܃e貾�<�1�YT<�,�����"�6{/ �?�͟��|1�:�#g��W�>$����d��J��d�B��=��jf[��%rE^��il:��B���x���Sּ�1հ��,�=��*�7 fcG��#q� �eh?��2�7�����,�!7x��6�n�LC�4x��},Geǝ�tC.��vS �F�43��zz\��;QYC,6����~;RYS/6���|2���5���v��T��i����������mlv��������&� �nRh^ejR�LG�f���? �ۉҬܦƩ��|��Ȱ����>3����!v��i�ʯ�>�v��オ�X3e���_1z�Kȗ\<������!�8���V��]��?b�k41�Re��T�q��mz��TiOʦ�Z��Xq���L������q"+���2ۨ��8}�&N7XU7Ap�d�X��~�׿��&4e�o�F��� �H����O���č�c�� 懴�6���͉��+)��v;j��ݷ�� �UV�� i��� j���Y9GdÒJ1��詞�����V?h��l����l�cGs�ځ�������y�Ac�����\V3�? �� ܙg�>qH�S,�E�W�[�㺨�uch�⍸�O�}���a��>�q�6�n6����N6�q������N ! 1AQaq�0@����"2BRb�#Pr���3C`��Scst���$4D���%Td�� ?���N����a��3��m���C���w��������xA�m�q�m���m������$����4n淿t'��C"w��zU=D�\R+w�p+Y�T�&�պ@��ƃ��3ޯ?�Aﶂ��aŘ���@-�����Q�=���9D��ռ�ѻ@��M�V��P��܅�G5�f�Y<�u=,EC)�<�Fy'�"�&�չ�X~f��l�KԆV��?�� �W�N����=(� �;���{�r����ٌ�Y���h{�١������jW����P���Tc�����X�K�r��}���w�R��%��?���E��m�� �Y�q|����\lEE4���r���}�lsI�Y������f�$�=�d�yO����p�����yBj8jU�o�/�S��?�U��*������ˍ�0������u�q�m [�?f����a�� )Q�>����6#������� ?����0UQ����,IX���(6ڵ[�DI�MNލ�c&���υ�j\��X�R|,4��� j������T�hA�e��^���d���b<����n�� �즇�=!���3�^�`j�h�ȓr��jẕ�c�,ٞX����-����a�ﶔ���#�$��]w�O��Ӫ�1y%��L�Y<�wg#�ǝ�̗`�x�xa�t�w��»1���o7o5��>�m뭛C���Uƃߜ}�C���y1Xνm�F8�jI���]����H���ۺиE@I�i;r�8ӭ����V�F�Շ| ��&?�3|x�B�MuS�Ge�=Ӕ�#BE5G�����Y!z��_e��q�р/W>|-�Ci߇�t�1ޯќd�R3�u��g�=0 5��[?�#͏��q�cf���H��{ ?u�=?�?ǯ���}Z��z���hmΔ�BFTW�����<�q�(v� ��!��z���iW]*�J�V�z��gX֧A�q�&��/w���u�gYӘa���; �i=����g:��?2�dž6�ى�k�4�>�Pxs����}������G�9��3 ���)gG�R<>r h�$��'nc�h�P��Bj��J�ҧH� -��N1���N��?��~��}-q!=��_2hc�M��l�vY%UE�@|�v����M2�.Y[|y�"Eï��K�ZF,�ɯ?,q�?v�M 80jx�"�;�9vk�����+ ֧�� �ȺU��?�%�vcV��mA�6��Qg^M����A}�3�nl� QRN�l8�kkn�'�����(��M�7m9و�q���%ޟ���*h$Zk"��$�9��: �?U8�Sl��,,|ɒ��xH(ѷ����Gn�/Q�4�P��G�%��Ա8�N��!� �&�7�;���eKM7�4��9R/%����l�c>�x;������>��C�:�����t��h?aKX�bhe�ᜋ^�$�Iհ �hr7%F$�E��Fd���t��5���+�(M6�t����Ü�UU|zW�=a�Ts�Tg������dqP�Q����b'�m���1{|Y����X�N��b �P~��F^F:����k6�"�j!�� �I�r�`��1&�-$�Bevk:y���#yw��I0��x��=D�4��tU���P�ZH��ڠ底taP��6����b>�xa����Q�#� WeF��ŮNj�p�J* mQ�N����*I�-*�ȩ�F�g�3 �5��V�ʊ�ɮ�a��5F���O@{���NX��?����H�]3��1�Ri_u��������ѕ�� ����0��� F��~��:60�p�͈�S��qX#a�5>���`�o&+�<2�D����: �������ڝ�$�nP���*)�N�|y�Ej�F�5ټ�e���ihy�Z �>���k�bH�a�v��h�-#���!�Po=@k̆IEN��@��}Ll?j�O������߭�ʞ���Q|A07x���wt!xf���I2?Z��<ץ�T���cU�j��]��陎Ltl �}5�ϓ��$�,��O�mˊ�;�@O��jE��j(�ا,��LX���LO���Ц�90�O �.����a��nA���7������j4 ��W��_ٓ���zW�jcB������y՗+EM�)d���N�g6�y1_x��p�$Lv:��9�"z��p���ʙ$��^��JԼ*�ϭ����o���=x�Lj�6�J��u82�A�H�3$�ٕ@�=Vv�]�'�qEz�;I˼��)��=��ɯ���x �/�W(V���p�����$ �m�������u�����񶤑Oqˎ�T����r��㠚x�sr�GC��byp�G��1ߠ�w e�8�$⿄����/�M{*}��W�]˷.�CK\�ުx���/$�WPw���r� |i���&�}�{�X� �>��$-��l���?-z���g����lΆ���(F���h�vS*���b���߲ڡn,|)mrH[���a�3�ר�[1��3o_�U�3�TC�$��(�=�)0�kgP���� ��u�^=��4 �WYCҸ:��vQ�ר�X�à��tk�m,�t*��^�,�}D*� �"(�I��9R����>`�`��[~Q]�#af��i6l��8���6�:,s�s�N6�j"�A4���IuQ��6E,�GnH��zS�HO�uk�5$�I�4��ؤ�Q9�@��C����wp�BGv[]�u�Ov���0I4���\��y�����Q�Ѹ��~>Z��8�T��a��q�ޣ;z��a���/��S��I:�ܫ_�|������>=Z����8:�S��U�I�J��"IY���8%b8���H��:�QO�6�;7�I�S��J��ҌAά3��>c���E+&jf$eC+�z�;��V����� �r���ʺ������my�e���aQ�f&��6�ND��.:��NT�vm�<- u���ǝ\MvZY�N�NT��-A�>jr!S��n�O 1�3�Ns�%�3D@���`������ܟ 1�^c<���� �a�ɽ�̲�Xë#�w�|y�cW�=�9I*H8�p�^(4���՗�k��arOcW�tO�\�ƍR��8����'�K���I�Q�����?5�>[�}��yU�ײ -h��=��% q�ThG�2�)���"ו3]�!kB��*p�FDl�A���,�eEi�H�f�Ps�����5�H:�Փ~�H�0Dت�D�I����h�F3�������c��2���E��9�H��5�zԑ�ʚ�i�X�=:m�xg�hd(�v����׊�9iS��O��d@0ڽ���:�p�5�h-��t�&���X�q�ӕ,��ie�|���7A�2���O%P��E��htj��Y1��w�Ѓ!����  ���� ࢽ��My�7�\�a�@�ţ�J �4�Ȼ�F�@o�̒?4�wx��)��]�P��~�����u�����5�����7X ��9��^ܩ�U;Iꭆ 5 �������eK2�7(�{|��Y׎ �V��\"���Z�1� Z�����}��(�Ǝ"�1S���_�vE30>���p;� ΝD��%x�W�?W?v����o�^V�i�d��r[��/&>�~`�9Wh��y�;���R��� ;;ɮT��?����r$�g1�K����A��C��c��K��l:�'��3 c�ﳯ*"t8�~l��)���m��+U,z��`(�>yJ�?����h>��]��v��ЍG*�{`��;y]��I�T� ;c��NU�fo¾h���/$���|NS���1�S�"�H��V���T���4��uhǜ�]�v;���5�͠x��'C\�SBpl���h}�N����� A�Bx���%��ޭ�l��/����T��w�ʽ]D�=����K���ž�r㻠l4�S�O?=�k �M:� ��c�C�a�#ha���)�ѐxc�s���gP�iG��{+���x���Q���I= �� z��ԫ+ �8"�k�ñ�j=|����c ��y��CF��/��*9ж�h{ �?4�o� ��k�m�Q�N�x��;�Y��4膚�a�w?�6�>e]�����Q�r�:����g�,i"�����ԩA�*M�<�G��b�if��l^M��5� �Ҩ�{����6J��ZJ�����P�*�����Y���ݛu�_4�9�I8�7���������,^ToR���m4�H��?�N�S�ѕw��/S��甍�@�9H�S�T��t�ƻ���ʒU��*{Xs�@����f�����֒Li�K{H�w^���������Ϥm�tq���s� ���ք��f:��o~s��g�r��ט� �S�ѱC�e]�x���a��) ���(b-$(�j>�7q�B?ӕ�F��hV25r[7 Y� }L�R��}����*sg+��x�r�2�U=�*'WS��ZDW]�WǞ�<��叓���{�$�9Ou4��y�90-�1�'*D`�c�^o?(�9��u���ݐ��'PI&� f�Jݮ�������:wS����jfP1F:X �H�9dԯ���˝[�_54 �}*;@�ܨ�� ð�yn�T���?�ןd�#���4rG�ͨ��H�1�|-#���Mr�S3��G�3�����)�.᧏3v�z֑��r����$G"�`j �1t��x0<Ɔ�Wh6�y�6��,œ�Ga��gA����y��b��)��h�D��ß�_�m��ü �gG;��e�v��ݝ�nQ� ��C����-�*��o���y�a��M��I�>�<���]obD��"�:���G�A��-\%LT�8���c�)��+y76���o�Q�#*{�(F�⽕�y����=���rW�\p���۩�c���A���^e6��K������ʐ�cVf5$�'->���ՉN"���F�"�UQ@�f��Gb~��#�&�M=��8�ט�JNu9��D��[̤�s�o�~������ G��9T�tW^g5y$b��Y'��س�Ǵ�=��U-2 #�MC�t(�i� �lj�@Q 5�̣i�*�O����s�x�K�f��}\��M{E�V�{�υ��Ƈ�����);�H����I��fe�Lȣr�2��>��W�I�Ȃ6������i��k�� �5�YOxȺ����>��Y�f5'��|��H+��98pj�n�.O�y�������jY��~��i�w'������l�;�s�2��Y��:'lg�ꥴ)o#'Sa�a�K��Z� �m��}�`169�n���"���x��I ��*+� }F<��cГ���F�P�������ֹ*�PqX�x۩��,� ��N�� �4<-����%����:��7����W���u�`����� $�?�I��&����o��o��`v�>��P��"��l���4��5'�Z�gE���8���?��[�X�7(��.Q�-��*���ތL@̲����v��.5���[��=�t\+�CNܛ��,g�SQnH����}*F�G16���&:�t��4ُ"A��̣��$�b �|����#rs��a�����T�� ]�<�j��BS�('$�ɻ� �wP;�/�n��?�ݜ��x�F��yUn�~mL*-�������Xf�wd^�a�}��f�,=t�׵i�.2/wpN�Ep8�OР���•��R�FJ� 55TZ��T �ɭ�<��]��/�0�r�@�f��V��V����Nz�G��^���7hZi����k��3�,kN�e|�vg�1{9]_i��X5y7� 8e]�U����'�-2,���e"����]ot�I��Y_��n�(JҼ��1�O ]bXc���Nu�No��pS���Q_���_�?i�~�x h5d'�(qw52] ��'ޤ�q��o1�R!���`ywy�A4u���h<קy���\[~�4�\ X�Wt/� 6�����n�F�a8��f���z �3$�t(���q��q�x��^�XWeN'p<-v�!�{�(>ӽDP7��ո0�y)�e$ٕv�Ih'Q�EA�m*�H��RI��=:��� ���4牢) �%_iN�ݧ�l]� �Nt���G��H�L��� ɱ�g<���1V�,�J~�ٹ�"K��Q�� 9�HS�9�?@��k����r�;we݁�]I�!{ �@�G�[�"��`���J:�n]�{�cA�E����V��ʆ���#��U9�6����j�#Y�m\��q�e4h�B�7��C�������d<�?J����1g:ٳ���=Y���D�p�ц� ׈ǔ��1�]26؜oS�'��9�V�FVu�P�h�9�xc�oq�X��p�o�5��Ա5$�9W�V(�[Ak�aY錎qf;�'�[�|���b�6�Ck��)��#a#a˙��8���=äh�4��2��C��4tm^ �n'c���]GQ$[Wҿ��i���vN�{Fu ��1�gx��1┷���N�m��{j-,��x�� Ūm�ЧS�[�s���Gna���䑴�� x�p 8<������97�Q���ϴ�v�aϚG��Rt�Һ׈�f^\r��WH�JU�7Z���y)�vg=����n��4�_)y��D'y�6�]�c�5̪�\� �PF�k����&�c;��cq�$~T�7j ���nç]�<�g ":�to�t}�159�<�/�8������m�b�K#g'I'.W�����6��I/��>v��\�MN��g���m�A�yQL�4u�Lj�j9��#44�t��l^�}L����n��R��!��t��±]��r��h6ٍ>�yҏ�N��fU�� ���� Fm@�8}�/u��jb9������he:A�y�ծw��GpΧh�5����l}�3p468��)U��d��c����;Us/�֔�YX�1�O2��uq�s��`hwg�r~�{ R��mhN��؎*q 42�*th��>�#���E����#��Hv�O����q�}�����6�e��\�,Wk�#���X��b>��p}�դ��3���T5��†��6��[��@�P�y*n��|'f�֧>�lư΂�̺����SU�'*�q�p�_S�����M�� '��c�6�����m�� ySʨ;M��r���Ƌ�m�Kxo,���Gm�P��A�G�:��i��w�9�}M(�^�V��$ǒ�ѽ�9���|���� �a����J�SQ�a���r�B;����}���ٻ֢�2�%U���c�#�g���N�a�ݕ�'�v�[�OY'��3L�3�;,p�]@�S��{ls��X�'���c�jw�k'a�.��}�}&�� �dP�*�bK=ɍ!����;3n�gΊU�ߴmt�'*{,=SzfD� A��ko~�G�aoq�_mi}#�m�������P�Xhύ����mxǍ�΂���巿zf��Q���c���|kc�����?���W��Y�$���_Lv����l߶��c���`?����l�j�ݲˏ!V��6����U�Ђ(A���4y)H���p�Z_�x��>���e��R��$�/�`^'3qˏ�-&Q�=?��CFVR �D�fV�9��{�8g�������n�h�(P"��6�[�D���< E�����~0<@�`�G�6����Hг�cc�� �c�K.5��D��d�B���`?�XQ��2��ٿyqo&+�1^� DW�0�ꊩ���G�#��Q�nL3��c���������/��x ��1�1[y�x�პCW��C�c�UĨ80�m�e�4.{�m��u���I=��f�����0QRls9���f���������9���~f�����Ǩ��a�"@�8���ȁ�Q����#c�ic������G��$���G���r/$W�(��W���V�"��m�7�[m�A�m����bo��D� j����۳� l���^�k�h׽����� ��#� iXn�v��eT�k�a�^Y�4�BN��ĕ��0 !01@Q"2AaPq3BR������?���@4�Q�����T3,���㺠�W�[=JK�Ϟ���2�r^7��vc�:�9 �E�ߴ�w�S#d���Ix��u��:��Hp��9E!�� V 2;73|F��9Y���*ʬ�F��D����u&���y؟��^EA��A��(ɩ���^��GV:ݜDy�`��Jr29ܾ�㝉��[���E;Fzx��YG��U�e�Y�C���� ����v-tx����I�sם�Ę�q��Eb�+P\ :>�i�C'�;�����k|z�رn�y]�#ǿb��Q��������w�����(�r|ӹs��[�D��2v-%��@;�8<a���[\o[ϧw��I!��*0�krs)�[�J9^��ʜ��p1)� "��/_>��o��<1����A�E�y^�C��`�x1'ܣn�p��s`l���fQ��):�l����b>�Me�jH^?�kl3(�z:���1ŠK&?Q�~�{�ٺ�h�y���/�[��V�|6��}�KbX����mn[-��7�5q�94�������dm���c^���h� X��5��<�eޘ>G���-�}�دB�ޟ� ��|�rt�M��V+�]�c?�-#ڛ��^ǂ}���Lkr���O��u�>�-D�ry� D?:ޞ�U��ǜ�7�V��?瓮�"�#���r��չģVR;�n���/_� ؉v�ݶe5d�b9��/O��009�G���5n�W����JpA�*�r9�>�1��.[t���s�F���nQ� V 77R�]�ɫ8����_0<՜�IF�u(v��4��F�k�3��E)��N:��yڮe��P�`�1}�$WS��J�SQ�N�j�ٺ��޵�#l���ј(�5=��5�lǏmoW�v-�1����v,W�mn��߀$x�<����v�j(����c]��@#��1������Ǔ���o'��u+����;G�#�޸��v-lη��/(`i⣍Pm^���ԯ̾9Z��F��������n��1��� ��]�[��)�'������:�֪�W��FC����� �B9،!?���]��V��A�Վ�M��b�w��G F>_DȬ0¤�#�QR�[V��kz���m�w�"��9ZG�7'[��=�Q����j8R?�zf�\a�=��O�U����*oB�A�|G���2�54 �p��.w7� �� ��&������ξxGHp� B%��$g�����t�Џ򤵍z���HN�u�Я�-�'4��0��;_��3 !01"@AQa2Pq#3BR������?��ʩca��en��^��8���<�u#��m*08r��y�N"�<�Ѳ0��@\�p��� �����Kv�D��J8�Fҽ� �f�Y��-m�ybX�NP����}�!*8t(�OqѢ��Q�wW�K��ZD��Δ^e��!� ��B�K��p~�����e*l}z#9ң�k���q#�Ft�o��S�R����-�w�!�S���Ӥß|M�l޶V��!eˈ�8Y���c�ЮM2��tk���� ������J�fS����Ö*i/2�����n]�k�\���|4yX�8��U�P.���Ы[���l��@"�t�<������5�lF���vU�����W��W��;�b�cД^6[#7@vU�xgZv��F�6��Q,K�v��� �+Ъ��n��Ǣ��Ft���8��0��c�@�!�Zq s�v�t�;#](B��-�nῃ~���3g������5�J�%���O������n�kB�ĺ�.r��+���#�N$?�q�/�s�6��p��a����a��J/��M�8��6�ܰ"�*������ɗud"\w���aT(����[��F��U՛����RT�b���n�*��6���O��SJ�.�ij<�v�MT��R\c��5l�sZB>F��<7�;EA��{��E���Ö��1U/�#��d1�a�n.1ě����0�ʾR�h��|�R��Ao�3�m3 ��%�� ���28Q� ��y��φ���H�To�7�lW>����#i`�q���c����a��� �m,B�-j����݋�'mR1Ήt�>��V��p���s�0IbI�C.���1R�ea�����]H�6����������4B>��o��](��$B���m�����a�!=��?�B� K�Ǿ+�Ծ"�n���K��*��+��[T#�{E�J�S����Q�����s�5�:�U�\wĐ�f�3����܆&�)����I���Ԇw��E T�lrTf6Q|R�h:��[K�� �z��c֧�G�C��%\��_�a�84��HcO�bi��ؖV��7H �)*ģK~Xhչ0��4?�0��� �E<���}3���#���u�?�� ��|g�S�6ꊤ�|�I#Hڛ� �ա��w�X��9��7���Ŀ%�SL��y6č��|�F�a 8���b��$�sק�h���b9RAu7�˨p�Č�_\*w��묦��F ����4D~�f����|(�"m���NK��i�S�>�$d7SlA��/�²����SL��|6N�}���S�˯���g��]6��; �#�.��<���q'Q�1|KQ$�����񛩶"�$r�b:���N8�w@��8$�� �AjfG|~�9F ���Y��ʺ��Bwؒ������M:I岎�G��`s�YV5����6��A �b:�W���G�q%l�����F��H���7�������Fsv7��k�� 403WebShell
403Webshell
Server IP : 213.165.242.4  /  Your IP : 216.73.217.172
Web Server : Apache
System : Linux amsngx344.inmotionhosting.com 4.18.0-553.40.1.lve.el8.x86_64 #1 SMP Wed Feb 12 18:54:57 UTC 2025 x86_64
User : aquafi9 ( 1305)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/aquafi9/public_html/wp-content/plugins/wordpress-seo/js/dist/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/aquafi9/public_html/wp-content/plugins/wordpress-seo/js/dist/externals-components.js
(()=>{var e={4184:(e,s)=>{var t;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],s=0;s<arguments.length;s++){var t=arguments[s];if(t){var i=typeof t;if("string"===i||"number"===i)e.push(t);else if(Array.isArray(t)){if(t.length){var n=o.apply(null,t);n&&e.push(n)}}else if("object"===i){if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]")){e.push(t.toString());continue}for(var a in t)r.call(t,a)&&t[a]&&e.push(a)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(t=function(){return o}.apply(s,[]))||(e.exports=t)}()}},s={};function t(r){var o=s[r];if(void 0!==o)return o.exports;var i=s[r]={exports:{}};return e[r](i,i.exports,t),i.exports}t.n=e=>{var s=e&&e.__esModule?()=>e.default:()=>e;return t.d(s,{a:s}),s},t.d=(e,s)=>{for(var r in s)t.o(s,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:s[r]})},t.o=(e,s)=>Object.prototype.hasOwnProperty.call(e,s),(()=>{"use strict";const e=window.wp.components,s=window.wp.i18n,r=window.yoast.componentsNew,o=window.yoast.helpers,i=window.lodash,n=window.yoast.propTypes;var a=t.n(n);const l=window.wp.element,c=window.yoast.styledComponents;var d=t.n(c);const u=window.ReactJSXRuntime,p=d().div`
	display: flex;
	margin-top: 8px;
`;class h extends l.Component{render(){return(0,u.jsx)(p,{children:(0,u.jsx)(r.Toggle,{id:this.props.id,labelText:(0,s.__)("Mark as cornerstone content","wordpress-seo"),isEnabled:this.props.isEnabled,onSetToggleState:this.props.onToggle,onToggleDisabled:this.props.onToggleDisabled})})}}h.propTypes={id:a().string,isEnabled:a().bool,onToggle:a().func,onToggleDisabled:a().func},h.defaultProps={id:"cornerstone-toggle",isEnabled:!0,onToggle:()=>{},onToggleDisabled:()=>{}};const m=h,g=d()(r.Collapsible)`
	h2 > button {
		padding-left: 24px;
		padding-top: 16px;

		&:hover {
			background-color: #f0f0f0;
		}
	}

	div[class^="collapsible_content"] {
		padding: 24px 0;
		margin: 0 24px;
		border-top: 1px solid rgba(0,0,0,0.2);
	}

`,y=e=>(0,u.jsx)(g,{hasPadding:!0,hasSeparator:!0,...e}),x=({title:e,children:s,prefixIcon:t=null,subTitle:o="",hasBetaBadgeLabel:i=!1,hasNewBadgeLabel:n=!1,buttonId:a=null,renderNewBadgeLabel:c=(()=>{})})=>{const[d,p]=(0,l.useState)(!1),h=(0,l.useCallback)((()=>{p((e=>!e))}),[p]);return(0,u.jsxs)("div",{className:"yoast components-panel__body "+(d?"is-opened":""),children:[(0,u.jsx)("h2",{className:"components-panel__body-title",children:(0,u.jsxs)("button",{onClick:h,className:"components-button components-panel__body-toggle",type:"button",id:a,children:[(0,u.jsx)("span",{className:"yoast-icon-span",style:{fill:`${t&&t.color||""}`},children:t&&(0,u.jsx)(r.SvgIcon,{icon:t.icon,color:t.color,size:t.size})}),!n&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("span",{className:"yoast-title-container",children:[(0,u.jsx)("div",{className:"yoast-title",children:e}),o&&(0,u.jsx)("div",{className:"yoast-subtitle",children:o})]}),i&&(0,u.jsx)(r.BetaBadge,{})]}),n&&(0,u.jsxs)("div",{className:"yst-flex-grow yst-flex yst-items-center yst-gap-2",children:[(0,u.jsxs)("span",{className:"yst-overflow-x-hidden yst-leading-normal",children:[(0,u.jsx)("div",{className:"yoast-title",children:e}),o&&(0,u.jsx)("div",{className:"yoast-subtitle",children:o})]}),c()]}),(0,u.jsx)("span",{className:"yoast-chevron","aria-hidden":"true"})]})}),d&&s]})},w=x;x.propTypes={title:a().string.isRequired,children:a().oneOfType([a().node,a().arrayOf(a().node)]).isRequired,prefixIcon:a().object,subTitle:a().string,hasBetaBadgeLabel:a().bool,hasNewBadgeLabel:a().bool,buttonId:a().string,renderNewBadgeLabel:a().func};const b=(0,o.makeOutboundLink)();function f({isCornerstone:t=!0,onChange:n=i.noop,learnMoreUrl:a,location:l=""}){const c="metabox"===l?y:w;return(0,u.jsxs)(c,{id:(0,o.join)(["yoast-cornerstone-collapsible",l]),title:(0,s.__)("Cornerstone content","wordpress-seo"),children:[(0,u.jsxs)(r.HelpText,{children:[(0,s.__)("Cornerstone content should be the most important and extensive articles on your site.","wordpress-seo")+" ",(0,u.jsx)(b,{href:a,children:(0,s.__)("Learn more about Cornerstone Content.","wordpress-seo")})]}),(0,u.jsx)(m,{id:(0,o.join)(["yoast-cornerstone",l]),isEnabled:t,onToggle:n}),(0,u.jsx)(e.Slot,{name:"YoastAfterCornerstoneToggle"})]})}f.propTypes={isCornerstone:a().bool,onChange:a().func,learnMoreUrl:a().string.isRequired,location:a().string};const v=window.wp.compose,k=window.wp.data,_=window.yoast.externals.contexts,j=window.wp.url,S=window.wp.apiFetch;var C=t.n(S);const R=window.yoast.relatedKeyphraseSuggestions;class E extends l.Component{constructor(e){super(e),this.onModalOpen=this.onModalOpen.bind(this),this.onLinkClick=this.onLinkClick.bind(this),this.listenToMessages=this.listenToMessages.bind(this)}onModalOpen(){const{keyphrase:e,onOpenWithNoKeyphrase:s,onOpen:t,location:r,newRequest:o,countryCode:i}=this.props;e.trim()?(t(r),o(i,e)):s()}onLinkClick(e){if(e.preventDefault(),!this.props.keyphrase.trim())return void this.props.onOpenWithNoKeyphrase();const s=e.target.href,t=["top="+(window.top.outerHeight/2+window.top.screenY-285),"left="+(window.top.outerWidth/2+window.top.screenX-170),"width=340","height=570","resizable=1","scrollbars=1","status=0"];this.popup&&!this.popup.closed||(this.popup=window.open(s,"SEMrush_login",t.join(","))),this.popup&&this.popup.focus(),window.addEventListener("message",this.listenToMessages,!1)}async listenToMessages(e){const{data:s,source:t,origin:r}=e;"https://oauth.semrush.com"===r&&this.popup===t&&("semrush:oauth:success"===s.type&&(this.popup.close(),window.removeEventListener("message",this.listenToMessages,!1),await this.performAuthenticationRequest(s)),"semrush:oauth:denied"===s.type&&(this.popup.close(),window.removeEventListener("message",this.listenToMessages,!1),this.props.onAuthentication(!1)))}async performAuthenticationRequest(e){try{const s=new URL(e.url).searchParams.get("code"),t=await C()({path:"yoast/v1/semrush/authenticate",method:"POST",data:{code:s}});200===t.status?(this.props.onAuthentication(!0),this.onModalOpen(),this.popup.close()):console.error(t.error)}catch(e){console.error(e.message)}}render(){const{keyphrase:t,location:o,whichModalOpen:i,isLoggedIn:n,onClose:a,countryCode:c,learnMoreLink:d}=this.props,p=new URL("https://www.semrush.com/analytics/keywordoverview/");return p.searchParams.append("q",t),p.searchParams.append("db",c),(0,u.jsxs)(l.Fragment,{children:[n&&(0,u.jsx)("div",{className:"yoast",children:(0,u.jsx)(r.NewButton,{variant:"secondary",id:`yoast-get-related-keyphrases-${o}`,onClick:this.onModalOpen,children:(0,s.__)("Get related keyphrases","wordpress-seo")})}),(0,u.jsx)(R.Modal,{isOpen:Boolean(t)&&i===o,onClose:a,insightsLink:p.toString(),learnMoreLink:d,children:(0,u.jsx)(e.Slot,{name:"YoastRelatedKeyphrases"})}),!n&&(0,u.jsx)("div",{className:"yoast",children:(0,u.jsxs)(r.ButtonStyledLink,{variant:"secondary",id:`yoast-get-related-keyphrases-${o}`,href:"https://oauth.semrush.com/oauth2/authorize?ref=1513012826&client_id=yoast&redirect_uri=https%3A%2F%2Foauth.semrush.com%2Foauth2%2Fyoast%2Fsuccess&response_type=code&scope=user.id",onClick:this.onLinkClick,children:[(0,s.__)("Get related keyphrases","wordpress-seo"),(0,u.jsx)("span",{className:"screen-reader-text",children:/* translators: Hidden accessibility text. */
(0,s.__)("(Opens in a new browser tab)","wordpress-seo")})]})})]})}}E.propTypes={keyphrase:a().string,location:a().string,whichModalOpen:a().oneOf(["none","metabox","sidebar"]),isLoggedIn:a().bool,onOpen:a().func.isRequired,onOpenWithNoKeyphrase:a().func.isRequired,onClose:a().func.isRequired,onAuthentication:a().func.isRequired,countryCode:a().string,learnMoreLink:a().string,newRequest:a().func.isRequired},E.defaultProps={keyphrase:"",location:"",whichModalOpen:"none",isLoggedIn:!1,countryCode:"en_US",learnMoreLink:""};const L=E,N=(0,v.compose)([(0,k.withSelect)((e=>{const{getSEMrushModalOpen:s,getSEMrushLoginStatus:t,getSEMrushSelectedCountry:r,getPreference:o,selectLinkParams:i,getFocusKeyphrase:n}=e("yoast-seo/editor");return{whichModalOpen:s(),isLoggedIn:t(),countryCode:r(),isRtl:o("isRtl",!1),learnMoreLink:(0,j.addQueryArgs)("https://yoa.st/3-v",i()),keyphrase:n()}})),(0,k.withDispatch)((e=>{const{setSEMrushNoKeyphraseMessage:s,setSEMrushOpenModal:t,setSEMrushDismissModal:r,setSEMrushLoginStatus:o,setSEMrushNewRequest:i}=e("yoast-seo/editor");return{onOpenWithNoKeyphrase:()=>{s()},onOpen:e=>{t(e)},onClose:()=>{r()},onAuthentication:e=>{o(e)},newRequest:(e,s)=>{i(e,s)}}}))])(L),M=window.yoast.styleGuide,I=(0,o.makeOutboundLink)(d().a`
	display: inline-block;
	position: relative;
	outline: none;
	text-decoration: none;
	border-radius: 100%;
	width: 24px;
	height: 24px;
	margin: -4px 0;
	vertical-align: middle;

	color: ${M.colors.$color_help_text};
	
	&:hover,
	&:focus {
		color: ${M.colors.$color_snippet_focus};	
	}
	
	// Overwrite the default blue active color for links.
	&:active {
		color: ${M.colors.$color_help_text};	
	}

	&::before {
		position: absolute;
		top: 0;
		left: 0;
		padding: 2px;
		content: "\f223";
	}
`),T=M.colors.$color_bad,P=M.colors.$palette_error_background,A=M.colors.$color_grey_text_light,O=M.colors.$palette_error_text,B=d().div`
	display: flex;
	flex-direction: column;
`,F=d().label`
	font-size: var(--yoast-font-size-default);
	font-weight: var(--yoast-font-weight-bold);
	${(0,o.getDirectionalStyle)("margin-right: 4px","margin-left: 4px")};
`,$=d().span`
	margin-bottom: 0.5em;
`,q=d()(r.InputField)`
	flex: 1 !important;
	box-sizing: border-box;
	max-width: 100%;
	margin: 0; // Reset margins inherited from WordPress.

	// Hide native X in Edge and IE11.
	&::-ms-clear {
		display: none;
	}

	&.has-error {
		border-color: ${T} !important;
		background-color: ${P} !important;

		&:focus {
			box-shadow: 0 0 2px ${T} !important;
		}
	}
`,U=d().ul`
	color: ${O};
	list-style-type: disc;
	list-style-position: outside;
	margin: 0;
	margin-left: 1.2em;
`,W=d().li`
	color: ${O};
	margin: 0 0 0.5em 0;
`,H=(0,r.addFocusStyle)(d().button`
		border: 1px solid transparent;
		box-shadow: none;
		background: none;
		flex: 0 0 32px;
		height: 32px;
		max-width: 32px;
		padding: 0;
		cursor: pointer;
	`);H.propTypes={type:a().string,focusColor:a().string,focusBackgroundColor:a().string,focusBorderColor:a().string},H.defaultProps={type:"button",focusColor:M.colors.$color_button_text_hover,focusBackgroundColor:"transparent",focusBorderColor:M.colors.$color_blue};const z=d()(r.SvgIcon)`
	margin-top: 4px;
`,K=d().div`
	display: flex;
	flex-direction: row;
	align-items: center;

	&.has-remove-keyword-button {
		${q} {
			${(0,o.getDirectionalStyle)("padding-right: 40px","padding-left: 40px")};
		}

		${H} {
			${(0,o.getDirectionalStyle)("margin-left: -32px","margin-right: -32px")};
		}
	}
`;class D extends l.Component{constructor(e){super(e),this.handleChange=this.handleChange.bind(this)}handleChange(e){this.props.onChange(e.target.value)}renderLabel(){const{id:e,label:s,helpLink:t}=this.props;return(0,u.jsxs)($,{children:[(0,u.jsx)(F,{htmlFor:e,children:s}),t]})}renderErrorMessages(){const e=[...this.props.errorMessages];return!(0,i.isEmpty)(e)&&(0,u.jsx)(U,{children:e.map(((e,s)=>(0,u.jsx)(W,{children:(0,u.jsx)("span",{role:"alert",children:e})},s)))})}render(){const{id:e,showLabel:s,keyword:t,onRemoveKeyword:r,onBlurKeyword:o,onFocusKeyword:n,hasError:a}=this.props,l=!s,c=r!==i.noop;return(0,u.jsxs)(B,{children:[s&&this.renderLabel(),a&&this.renderErrorMessages(),(0,u.jsxs)(K,{className:c?"has-remove-keyword-button":null,children:[(0,u.jsx)(q,{"aria-label":l?this.props.label:null,type:"text",id:e,className:a?"has-error":null,onChange:this.handleChange,onFocus:n,onBlur:o,value:t,autoComplete:"off"}),c&&(0,u.jsx)(H,{onClick:r,focusBoxShadowColor:"#084A67",children:(0,u.jsx)(z,{size:"18px",icon:"times-circle",color:A})})]})]})}}D.propTypes={id:a().string.isRequired,showLabel:a().bool,keyword:a().string,onChange:a().func.isRequired,onRemoveKeyword:a().func,onBlurKeyword:a().func,onFocusKeyword:a().func,label:a().string.isRequired,helpLink:a().node,hasError:a().bool,errorMessages:a().arrayOf(a().string)},D.defaultProps={showLabel:!0,keyword:"",onRemoveKeyword:i.noop,onBlurKeyword:i.noop,onFocusKeyword:i.noop,helpLink:null,hasError:!1,errorMessages:[]};const G=D,Y=d().div`
	padding: 16px;
	/* Necessary to compensate negative top margin of the collapsible after the keyword input. */
	border-bottom: 1px solid transparent;
`;class V extends l.Component{constructor(e){super(e),this.validate=this.validate.bind(this)}static renderHelpLink(){return(0,u.jsx)(I,{href:wpseoAdminL10n["shortlinks.focus_keyword_info"],className:"dashicons",children:(0,u.jsx)("span",{className:"screen-reader-text",children:/* translators: Hidden accessibility text. */
(0,s.__)("Help on choosing the perfect focus keyphrase","wordpress-seo")})})}validate(){const e=[...this.props.errors];return 0===this.props.keyword.trim().length&&this.props.displayNoKeyphraseMessage&&e.push((0,s.__)("Please enter a focus keyphrase first to get related keyphrases","wordpress-seo")),0===this.props.keyword.trim().length&&this.props.displayNoKeyphrasForTrackingMessage&&e.push((0,s.__)("Please enter a focus keyphrase first to track keyphrase performance","wordpress-seo")),this.props.keyword.includes(",")&&e.push((0,s.__)("Are you trying to use multiple keyphrases? You should add them separately below.","wordpress-seo")),this.props.keyword.length>191&&e.push((0,s.__)("Your keyphrase is too long. It can be a maximum of 191 characters.","wordpress-seo")),e}render(){const t=this.validate();return(0,u.jsx)(_.LocationConsumer,{children:r=>(0,u.jsxs)("div",{style:"sidebar"===r?{borderBottom:"1px solid #f0f0f0"}:{},children:[(0,u.jsxs)(Y,{location:r,children:[(0,u.jsx)(G,{id:`focus-keyword-input-${r}`,onChange:this.props.onFocusKeywordChange,keyword:this.props.keyword,label:(0,s.__)("Focus keyphrase","wordpress-seo"),helpLink:V.renderHelpLink(),onBlurKeyword:this.props.onBlurKeyword,onFocusKeyword:this.props.onFocusKeyword,hasError:t.length>0,errorMessages:t}),this.props.isSEMrushIntegrationActive&&(0,u.jsx)(N,{location:r,keyphrase:this.props.keyword})]}),(0,u.jsx)(e.Slot,{name:`YoastAfterKeywordInput${r.charAt(0).toUpperCase()+r.slice(1)}`})]})})}}V.propTypes={keyword:a().string,onFocusKeywordChange:a().func.isRequired,onFocusKeyword:a().func.isRequired,onBlurKeyword:a().func.isRequired,isSEMrushIntegrationActive:a().bool,displayNoKeyphraseMessage:a().bool,displayNoKeyphrasForTrackingMessage:a().bool,errors:a().arrayOf(a().string)},V.defaultProps={keyword:"",isSEMrushIntegrationActive:!1,displayNoKeyphraseMessage:!1,displayNoKeyphrasForTrackingMessage:!1,errors:[]};const Z=(0,v.compose)([(0,k.withSelect)((e=>{const{getFocusKeyphrase:s,getSEMrushNoKeyphraseMessage:t,hasWincherNoKeyphrase:r,getFocusKeyphraseErrors:o}=e("yoast-seo/editor");return{keyword:s(),displayNoKeyphraseMessage:t(),displayNoKeyphrasForTrackingMessage:r(),errors:o()}})),(0,k.withDispatch)((e=>{const{setFocusKeyword:s,setMarkerPauseStatus:t}=e("yoast-seo/editor");return{onFocusKeywordChange:s,onFocusKeyword:()=>t(!0),onBlurKeyword:()=>t(!1)}}))])(V);function Q(e){return Q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Q(e)}function J(e,s,t){return(s=function(e){var s=function(e,s){if("object"!=Q(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Q(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Q(s)?s:s+""}(s))in e?Object.defineProperty(e,s,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[s]=t,e}const X=window.yoast.analysis;function ee(e,s=""){const t=e.getIdentifier(),r={score:e.score,rating:X.interpreters.scoreToRating(e.score),hasMarks:e.hasMarks(),marker:e.getMarker(),id:t,text:e.text,markerId:s.length>0?`${s}:${t}`:t,hasBetaBadge:e.hasBetaBadge(),hasJumps:e.hasJumps(),hasAIFixes:e.hasAIFixes(),editFieldName:e.editFieldName,editFieldAriaLabel:e.editFieldAriaLabel};return"ok"===r.rating&&(r.rating="OK"),r}function se(e,s){switch(e.rating){case"error":s.errorsResults.push(e);break;case"feedback":s.considerationsResults.push(e);break;case"bad":s.problemsResults.push(e);break;case"OK":s.improvementsResults.push(e);break;case"good":s.goodResults.push(e)}return s}function te(e){switch(e){case"loading":return{icon:"loading-spinner",color:M.colors.$color_green_medium_light};case"not-set":return{icon:"seo-score-none",color:M.colors.$color_score_icon};case"noindex":return{icon:"seo-score-none",color:M.colors.$color_noindex};case"good":return{icon:"seo-score-good",color:M.colors.$color_green_medium};case"ok":return{icon:"seo-score-ok",color:M.colors.$color_ok};default:return{icon:"seo-score-bad",color:M.colors.$color_red}}}function re(e,s=""){let t={errorsResults:[],problemsResults:[],improvementsResults:[],goodResults:[],considerationsResults:[]};if(!e)return t;for(let r=0;r<e.length;r++){const o=e[r];o.text&&(t=se(ee(o,s),t))}return t}function oe({target:e,children:s}){let t=e;return"string"==typeof e&&(t=document.getElementById(e)),t?(0,l.createPortal)(s,t):null}oe.propTypes={target:a().oneOfType([a().string,a().object]).isRequired,children:a().node.isRequired};const ie=({target:e,scoreIndicator:s})=>(0,u.jsx)(oe,{target:e,children:(0,u.jsx)(r.SvgIcon,{...te(s)})});ie.propTypes={target:a().string.isRequired,scoreIndicator:a().string.isRequired};const ne=ie,ae=window.yoast.analysisReport,le=window.yoast.uiLibrary,ce=window.React;var de=t.n(ce);const ue=ce.forwardRef((function(e,s){return ce.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:s},e),ce.createElement("path",{fillRule:"evenodd",d:"M5 9V7a5 5 0 0110 0v2a2 2 0 012 2v5a2 2 0 01-2 2H5a2 2 0 01-2-2v-5a2 2 0 012-2zm8-2v2H7V7a3 3 0 016 0z",clipRule:"evenodd"}))})),pe=window.wp.hooks,he=(e,s)=>{try{return(0,l.createInterpolateElement)(e,s)}catch(s){return console.error("Error in translation for:",e,s),e}};var me,ge;function ye(){return ye=Object.assign?Object.assign.bind():function(e){for(var s=1;s<arguments.length;s++){var t=arguments[s];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},ye.apply(this,arguments)}const xe=e=>ce.createElement("svg",ye({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 425 456.27"},e),me||(me=ce.createElement("path",{d:"M73 405.26a66.79 66.79 0 0 1-6.54-1.7 64.75 64.75 0 0 1-6.28-2.31c-1-.42-2-.89-3-1.37-1.49-.72-3-1.56-4.77-2.56-1.5-.88-2.71-1.64-3.83-2.39-.9-.61-1.8-1.26-2.68-1.92a70.154 70.154 0 0 1-5.08-4.19 69.21 69.21 0 0 1-8.4-9.17c-.92-1.2-1.68-2.25-2.35-3.24a70.747 70.747 0 0 1-3.44-5.64 68.29 68.29 0 0 1-8.29-32.55V142.13a68.26 68.26 0 0 1 8.29-32.55c1-1.92 2.21-3.82 3.44-5.64s2.55-3.58 4-5.27a69.26 69.26 0 0 1 14.49-13.25C50.37 84.19 52.27 83 54.2 82A67.59 67.59 0 0 1 73 75.09a68.75 68.75 0 0 1 13.75-1.39h169.66L263 55.39H86.75A86.84 86.84 0 0 0 0 142.13v196.09A86.84 86.84 0 0 0 86.75 425h11.32v-18.35H86.75A68.75 68.75 0 0 1 73 405.26zM368.55 60.85l-1.41-.53-6.41 17.18 1.41.53a68.06 68.06 0 0 1 8.66 4c1.93 1 3.82 2.2 5.65 3.43A69.19 69.19 0 0 1 391 98.67c1.4 1.68 2.72 3.46 3.95 5.27s2.39 3.72 3.44 5.64a68.29 68.29 0 0 1 8.29 32.55v264.52H233.55l-.44.76c-3.07 5.37-6.26 10.48-9.49 15.19L222 425h203V142.13a87.2 87.2 0 0 0-56.45-81.28z"})),ge||(ge=ce.createElement("path",{stroke:"#000",strokeMiterlimit:10,strokeWidth:3.81,d:"M119.8 408.28v46c28.49-1.12 50.73-10.6 69.61-29.58 19.45-19.55 36.17-50 52.61-96L363.94 1.9H305l-98.25 272.89-48.86-153h-54l71.7 184.18a75.67 75.67 0 0 1 0 55.12c-7.3 18.68-20.25 40.66-55.79 47.19z"}))),we=ce.forwardRef((function(e,s){return ce.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:s},e),ce.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"}))})),be=ce.forwardRef((function(e,s){return ce.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:s},e),ce.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 11V7a4 4 0 118 0m-4 8v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2z"}))})),fe=ce.forwardRef((function(e,s){return ce.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:s},e),ce.createElement("path",{d:"M3 1a1 1 0 000 2h1.22l.305 1.222a.997.997 0 00.01.042l1.358 5.43-.893.892C3.74 11.846 4.632 14 6.414 14H15a1 1 0 000-2H6.414l1-1H14a1 1 0 00.894-.553l3-6A1 1 0 0017 3H6.28l-.31-1.243A1 1 0 005 1H3zM16 16.5a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zM6.5 18a1.5 1.5 0 100-3 1.5 1.5 0 000 3z"}))}));var ve=t(4184),ke=t.n(ve);const _e=({isOpen:e,onClose:t,id:r,upsellLink:o,title:i="",description:n="",benefits:a=[],note:c="",ctbId:d="",modalTitle:p})=>{const{isBlackFriday:h,isWooCommerceActive:m,isProductEntity:g,isWooSEOActive:y}=(0,k.useSelect)((e=>{const s=e("yoast-seo/editor");return{isProductEntity:s.getIsProductEntity(),isWooCommerceActive:s.getIsWooCommerceActive(),isBlackFriday:s.isPromotionActive("black-friday-promotion"),isWooSEOActive:s.getIsWooSeoActive()}}),[]),x=(0,l.useMemo)((()=>m&&g),[m,g]);return(0,u.jsx)(le.Modal,{isOpen:e,onClose:t,id:r,children:(0,u.jsx)(le.Modal.Panel,{className:"yst-max-w-[26.25rem] yst-p-0",hasCloseButton:!1,children:(0,u.jsxs)(le.Modal.Container,{children:[(0,u.jsxs)(le.Modal.Container.Header,{className:"yst-p-6 yst-border-b-slate-200 yst-border-b yst-flex yst-justify-start yst-gap-4 yst-items-center",children:[x?(0,u.jsx)(fe,{className:"yst-text-woo-light yst-w-6 yst-h-6 yst-scale-x-[-1]"}):(0,u.jsx)(xe,{className:"yst-fill-primary-500 yst-w-5 yst-h-5"}),(0,u.jsx)(le.Modal.Title,{as:"h3",className:ke()(x?"yst-text-woo-light":"yst-text-primary-500","yst-text-xl"),children:p}),(0,u.jsx)(le.Modal.CloseButton,{className:"yst-top-2",onClick:t,screenReaderText:(0,s.__)("Close modal","wordpress-seo")})]}),(0,u.jsxs)(le.Modal.Container.Content,{className:"yst-p-0",children:[h&&(0,u.jsx)("div",{className:"yst-flex yst-font-semibold yst-items-center yst-text-lg yst-content-between yst-bg-black yst-text-amber-300 yst-h-9 yst-border-amber-300 yst-border-y yst-border-x-0 yst-border-solid yst-px-6",children:(0,u.jsx)("div",{className:"yst-mx-auto",children:(0,s.__)("BLACK FRIDAY | 30% OFF","wordpress-seo")})}),(0,u.jsxs)("div",{className:"yst-py-6 yst-px-12",children:[(0,u.jsx)(le.Title,{as:"h3",className:"yst-mb-1 yst-leading-5 yst-text-sm yst-font-medium",children:i}),(0,u.jsx)("p",{className:"yst-mb-2",children:n}),Array.isArray(a)&&a.length>0&&(0,u.jsx)("ul",{className:"yst-my-2",children:a.map(((e,s)=>(0,u.jsxs)("li",{className:"yst-flex yst-gap-1 yst-mb-2",children:[(0,u.jsx)(we,{className:"yst-w-5 yst-h-5 yst--ms-1 yst-shrink-0 yst-inline yst-text-green-600"}),(0,u.jsx)("p",{className:"yst-text-slate-600",children:e})]},`${r}-upsell-benefit-${s}`)))}),"function"==typeof a&&a(),(0,u.jsxs)("div",{className:"yst-text-center",children:[(0,u.jsxs)(le.Button,{as:"a",variant:"upsell",className:"yst-my-2 yst-gap-1.5",href:o,target:"_blank","data-action":"load-nfd-ctb","data-ctb-id":d,children:[(0,u.jsx)(be,{className:"yst-w-4 yst-h-4 yst--ms-1 yst-shrink-0"}),(0,s.sprintf)(/* translators: %s expands to 'Yoast SEO Premium' or 'Yoast Woocommerce SEO'. */
(0,s.__)("Explore %s","wordpress-seo"),x&&!y?"Yoast WooCommerce SEO":"Yoast SEO Premium"),(0,u.jsx)("span",{className:"yst-sr-only",children:(0,s.__)("Opens in a new tab","wordpress-seo")})]}),(0,u.jsx)("div",{children:c})]})]})]})]})})})},je=({isOpen:e,closeModal:t,id:r,upsellLink:o})=>{const{locationContext:i}=(0,_.useRootContext)(),n=(0,j.addQueryArgs)(wpseoAdminL10n[o],{context:i}),a=[he((0,s.sprintf)(/* translators: %1$s and %2$s are opening and closing span tags. */
(0,s.__)("%1$sKeyphrase distribution:%2$s See if your keywords are spread evenly so search engines understand your topic","wordpress-seo"),"<span>","</span>"),{span:(0,u.jsx)("span",{className:"yst-font-semibold"})}),he((0,s.sprintf)(/* translators: %1$s and %2$s are opening and closing span tags. */
(0,s.__)("%1$sTitle check:%2$s Instantly spot missing titles and fix them for better click-through rates","wordpress-seo"),"<span>","</span>"),{span:(0,u.jsx)("span",{className:"yst-font-semibold"})}),he((0,s.sprintf)(/* translators: %1$s and %2$s are opening and closing span tags. */
(0,s.__)("%1$sSynonyms:%2$s Include synonyms of your keyphrase for a more natural flow and smarter suggestions","wordpress-seo"),"<span>","</span>"),{span:(0,u.jsx)("span",{className:"yst-font-semibold"})})];return(0,u.jsx)(_e,{isOpen:e,onClose:t,id:r,title:(0,s.__)("Get deeper keyphrase insights and stronger headlines","wordpress-seo"),upsellLink:n,benefits:a,note:(0,s.__)("Upgrade to optimize with precision","wordpress-seo"),ctbId:"f6a84663-465f-4cb5-8ba5-f7a6d72224b2",modalTitle:(0,s.sprintf)(/* translators: %1$s is for Premium SEO analysis. */
(0,s.__)("Unlock %1$s","wordpress-seo"),"Premium SEO analysis")})};je.propTypes={isOpen:a().bool.isRequired,closeModal:a().func.isRequired,id:a().string.isRequired,upsellLink:a().string.isRequired};class Se extends l.Component{constructor(e){super(e);const s=this.props.results;this.state={mappedResults:{}},null!==s&&(this.state={mappedResults:re(s,this.props.keywordKey)}),this.handleMarkButtonClick=this.handleMarkButtonClick.bind(this),this.handleEditButtonClick=this.handleEditButtonClick.bind(this),this.handleResultsChange=this.handleResultsChange.bind(this),this.renderHighlightingUpsell=this.renderHighlightingUpsell.bind(this),this.createMarkButton=this.createMarkButton.bind(this)}componentDidUpdate(e){null!==this.props.results&&this.props.results!==e.results&&this.setState({mappedResults:re(this.props.results,this.props.keywordKey)})}createMarkButton({ariaLabel:e,id:s,className:t,status:o,onClick:i,isPressed:n}){return(0,u.jsxs)(l.Fragment,{children:[(0,u.jsx)(r.IconButtonToggle,{marksButtonStatus:o,className:t,onClick:i,id:s,icon:"eye",pressed:n,ariaLabel:e}),this.props.shouldUpsellHighlighting&&(0,u.jsx)("div",{className:"yst-root",children:(0,u.jsx)(le.Badge,{className:"yst-absolute yst-px-[3px] yst-py-[3px] yst--end-[6.5px] yst--top-[6.5px]",size:"small",variant:"upsell",children:(0,u.jsx)(ue,{className:"yst-w-2.5 yst-h-2.5 yst-shrink-0",role:"img","aria-hidden":!0,focusable:!1})})})]})}deactivateMarker(){this.props.setActiveMarker(null),this.props.setMarkerPauseStatus(!1),this.removeMarkers()}activateMarker(e,s){this.props.setActiveMarker(e),s()}handleMarkButtonClick(e,s){const t=this.props.keywordKey.length>0?`${this.props.keywordKey}:${e}`:e;this.props.activeAIFixesButton&&this.props.setActiveAIFixesButton(null),t===this.props.activeMarker?this.deactivateMarker():this.activateMarker(t,s)}handleResultsChange(e,s,t){const r=this.props.keywordKey.length>0?`${this.props.keywordKey}:${e}`:e;r===this.props.activeMarker&&(t?(0,i.isUndefined)(s)||this.activateMarker(r,s):this.deactivateMarker())}focusOnKeyphraseField(e){const s=this.props.keywordKey,t=""===s?"focus-keyword-input-"+e:"yoast-keyword-input-"+s+"-"+e,r=document.getElementById(t);r.focus(),r.scrollIntoView({behavior:"auto",block:"center",inline:"center"})}focusOnGooglePreviewField(e,s){const t=document.getElementById("yoast-google-preview-"+e+"-"+s);t.focus(),t.scrollIntoView({behavior:"auto",block:"center",inline:"center"})}handleEditButtonClick(e,s){var t;null==s||null===(t=s.currentTarget)||void 0===t||t.blur();const r=this.props.location;"keyphrase"!==e?(["description","title","slug"].includes(e)&&this.handleGooglePreviewFocus(r,e),(0,pe.doAction)("yoast.focus.input",e)):this.focusOnKeyphraseField(r)}handleGooglePreviewFocus(e,s){if("sidebar"===e)document.getElementById("yoast-search-appearance-modal-open-button").click(),setTimeout((()=>this.focusOnGooglePreviewField(s,"modal")),500);else{const t=document.getElementById("yoast-snippet-editor-metabox");t&&"false"===t.getAttribute("aria-expanded")?(t.click(),setTimeout((()=>this.focusOnGooglePreviewField(s,e)),100)):this.focusOnGooglePreviewField(s,e)}}removeMarkers(){window.YoastSEO.analysis.applyMarks(new X.Paper("",{}),[])}renderHighlightingUpsell(e,t){const r=(0,s.__)("Highlight areas of improvement in your text, no more searching for a needle in a haystack, straight to optimizing! Now also in Elementor!","wordpress-seo");return(0,u.jsx)(je,{isOpen:e,closeModal:t,id:"yoast-premium-seo-analysis-highlighting-modal",upsellLink:this.props.highlightingUpsellLink,description:r})}render(){const{mappedResults:e}=this.state,{errorsResults:t,improvementsResults:r,goodResults:o,considerationsResults:i,problemsResults:n}=e,{upsellResults:a,resultCategoryLabels:c}=this.props,d={errors:(0,s.__)("Errors","wordpress-seo"),problems:(0,s.__)("Problems","wordpress-seo"),improvements:(0,s.__)("Improvements","wordpress-seo"),considerations:(0,s.__)("Considerations","wordpress-seo"),goodResults:(0,s.__)("Good results","wordpress-seo")},p=Object.assign(d,c);let h=this.props.marksButtonStatus;return"enabled"===h&&this.props.shortcodesForParsing.length>0&&(h="disabled"),(0,u.jsx)(l.Fragment,{children:(0,u.jsx)(ae.ContentAnalysis,{errorsResults:t,problemsResults:n,upsellResults:a,improvementsResults:r,considerationsResults:i,goodResults:o,activeMarker:this.props.activeMarker,onMarkButtonClick:this.handleMarkButtonClick,onEditButtonClick:this.handleEditButtonClick,marksButtonClassName:this.props.marksButtonClassName,editButtonClassName:this.props.editButtonClassName,marksButtonStatus:h,headingLevel:3,keywordKey:this.props.keywordKey,isPremium:this.props.isPremium,resultCategoryLabels:p,onResultChange:this.handleResultsChange,shouldUpsellHighlighting:this.props.shouldUpsellHighlighting,renderAIOptimizeButton:this.props.renderAIOptimizeButton,renderHighlightingUpsell:this.renderHighlightingUpsell,markButtonFactory:this.createMarkButton})})}}Se.propTypes={results:a().array,upsellResults:a().array,marksButtonClassName:a().string,editButtonClassName:a().string,marksButtonStatus:a().oneOf(["enabled","disabled","hidden"]),setActiveMarker:a().func.isRequired,setMarkerPauseStatus:a().func.isRequired,setActiveAIFixesButton:a().func.isRequired,activeMarker:a().string,activeAIFixesButton:a().string,keywordKey:a().string,location:a().string,isPremium:a().bool,resultCategoryLabels:a().shape({errors:a().string,problems:a().string,improvements:a().string,considerations:a().string,goodResults:a().string}),shortcodesForParsing:a().array,shouldUpsellHighlighting:a().bool,highlightingUpsellLink:a().string,renderAIOptimizeButton:a().func},Se.defaultProps={results:null,upsellResults:[],marksButtonStatus:"enabled",marksButtonClassName:"",editButtonClassName:"",activeMarker:null,activeAIFixesButton:null,keywordKey:"",location:"",isPremium:!1,resultCategoryLabels:{},shortcodesForParsing:[],shouldUpsellHighlighting:!1,highlightingUpsellLink:"",renderAIOptimizeButton:()=>{}};const Ce=Se,Re=(0,v.compose)([(0,k.withSelect)((e=>{const{getActiveMarker:s,getIsPremium:t,getShortcodesForParsing:r,getActiveAIFixesButton:o}=e("yoast-seo/editor");return{activeMarker:s(),isPremium:t(),shortcodesForParsing:r(),activeAIFixesButton:o()}})),(0,k.withDispatch)((e=>{const{setActiveMarker:s,setMarkerPauseStatus:t,setActiveAIFixesButton:r}=e("yoast-seo/editor");return{setActiveMarker:s,setMarkerPauseStatus:t,setActiveAIFixesButton:r}}))])(Ce);function Ee(e){return(0,i.isNil)(e)||(e/=10),function(e){switch(e){case"feedback":return{className:"na",screenReaderText:(0,s.__)("Not available","wordpress-seo"),screenReaderReadabilityText:(0,s.__)("Not available","wordpress-seo"),screenReaderInclusiveLanguageText:(0,s.__)("Not available","wordpress-seo")};case"bad":return{className:"bad",screenReaderText:(0,s.__)("Needs improvement","wordpress-seo"),screenReaderReadabilityText:(0,s.__)("Needs improvement","wordpress-seo"),screenReaderInclusiveLanguageText:(0,s.__)("Needs improvement","wordpress-seo")};case"ok":return{className:"ok",screenReaderText:(0,s.__)("OK SEO score","wordpress-seo"),screenReaderReadabilityText:(0,s.__)("OK","wordpress-seo"),screenReaderInclusiveLanguageText:(0,s.__)("Potentially non-inclusive","wordpress-seo")};case"good":return{className:"good",screenReaderText:(0,s.__)("Good SEO score","wordpress-seo"),screenReaderReadabilityText:(0,s.__)("Good","wordpress-seo"),screenReaderInclusiveLanguageText:(0,s.__)("Good","wordpress-seo")};default:return{className:"loading",screenReaderText:"",screenReaderReadabilityText:"",screenReaderInclusiveLanguageText:""}}}(X.interpreters.scoreToRating(e))}function Le({target:e,children:s}){return(0,u.jsx)(oe,{target:e,children:s})}function Ne(){return(0,i.get)(window,"wpseoScriptData.metabox",{intl:{},isRtl:!1})}Le.propTypes={target:a().string.isRequired,children:a().node.isRequired};const Me="yoast-seo/ai-generator",Ie="yoast-seo/editor",Te="google",Pe="social",Ae="twitter",Oe="title",Be="description",Fe="post",$e="term",qe={post:"title",term:"term_title"},Ue=(0,i.mapValues)(qe,(e=>`%%${e}%%`)),We={mobile:"mobile",desktop:"desktop"},He={idle:"idle",loading:"loading",success:"success",error:"error"},ze="success",Ke="error",De="abort";window.wp.sanitize;const{stripHTMLTags:Ge}=o.strings;let Ye,Ve=!1;const Ze=["_formal","_informal","_ao90"],Qe=e=>{for(const s of Ze)if(e.endsWith(s))return e.slice(0,-s.length);return e},Je="\\–\\-\\(\\)_\\[\\]’‘“”〝〞〟‟„\"'.?!:;,¿¡«»‹›—×+&۔؟،؛。。!‼?⁇⁉⁈‥…・ー、〃〄〆〇〈〉《》「」『』【】〒〓〔〕〖〗〘〙〚〛〜〝〞〟〠〶〼〽{}|~⦅⦆「」、[]・¥$%@&'()*/:;<>\\\<>";Je.split(""),new RegExp("^["+Je+"]+"),new RegExp("["+Je+"]+$");new RegExp("["+Je+"#$%&*+/=@^`{|}~ -¿–-⁊ -₠-⃀]","g");const Xe=e=>{const s={...e};return""!==e.value||["title","excerpt","excerpt_only"].includes(e.name)||(s.value="%%"+e.name+"%%"),s.badge=`<badge>${e.label}</badge>`,s},es=()=>{const e=(0,k.useSelect)((e=>e(Ie).getReplaceVars()),[]),s=(0,l.useMemo)((()=>e.map(Xe)),[e]);return(0,l.useCallback)(((e,{key:t="value",overrides:r={},applyPluggable:o=!0,editType:n=Oe,contentType:a=Fe}={})=>{for(const o of s)e=e.replace(new RegExp("%%"+(0,i.escapeRegExp)(o.name)+"%%","g"),(0,i.get)(r,o.name,o[t]));return a===$e&&(e=e.replace(" Archives","")),o?((e,s=Oe)=>{const t=function(e){const s=(0,i.get)(window,["YoastSEO","app","pluggable"],!1);if(!s||!(0,i.get)(window,["YoastSEO","app","pluggable","loaded"],!1))return function(e){const s=(0,i.get)(window,["YoastSEO","wp","replaceVarsPlugin","replaceVariables"],i.identity);return{url:e.url,title:Ge(s(e.title)),description:Ge(s(e.description)),filteredSEOTitle:e.filteredSEOTitle?Ge(s(e.filteredSEOTitle)):""}}(e);const t=s._applyModifications.bind(s);return{url:e.url,title:Ge(t("data_page_title",e.title)),description:Ge(t("data_meta_desc",e.description)),filteredSEOTitle:e.filteredSEOTitle?Ge(t("data_page_title",e.filteredSEOTitle)):""}}({title:"",description:"",[s]:X.languageProcessing.stripSpaces(e)});return(0,i.get)(t,s,e)})(e,n):e}),[s])},ss={editType:Oe,previewType:Te,postType:"post",contentType:Fe},ts=(0,l.createContext)(ss),rs=(ts.Provider,()=>(0,l.useContext)(ts)),os=()=>(0,l.useContext)(_.LocationContext),is=e=>{const s=(0,l.useRef)(null);return(0,l.useCallback)((t=>{(0,i.attempt)((()=>s.current&&s.current.disconnect())),null!==t&&(s.current=new ResizeObserver((s=>{(0,i.forEach)(s,(s=>e(s)))})),s.current.observe(t))}),[e])},ns=(ce.forwardRef((function(e,s){return ce.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:s},e),ce.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-3a1 1 0 00-.867.5 1 1 0 11-1.731-1A3 3 0 0113 8a3.001 3.001 0 01-2 2.83V11a1 1 0 11-2 0v-1a1 1 0 011-1 1 1 0 100-2zm0 8a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"}))})),window.yoast.aiFrontend,"error"),as="loading",ls="showPlay",cs="askPermission",ds="isPlaying",us=window.yoast.reduxJsToolkit,ps="usageCount",hs="fetchUsageCount",ms=`${hs}/success`,gs={errorCode:null,errorIdentifier:null,errorMessage:null},ys=(0,us.createSlice)({name:ps,initialState:{status:"idle",count:0,limit:10,endpoint:"yoast/v1/ai_generator/get_usage",error:gs},reducers:{addUsageCount:(e,{payload:s=1})=>{e.count+=s},setUsageCount:(e,{payload:s})=>{e.count=s},setUsageCountEndpoint:(e,{payload:s})=>{e.endpoint=s},setUsageCountLimit:(e,{payload:s})=>{e.limit=s}},extraReducers:e=>{e.addCase(`${hs}/request`,(e=>{e.status=as,e.error=gs})),e.addCase(ms,((e,{payload:s})=>{e.status="success",e.count=s.count,e.limit=s.limit,e.error=gs})),e.addCase(`${hs}/${ns}`,((e,{payload:s})=>{e.status="error",e.error={errorCode:502,...s}}))}}),xs=(ys.getInitialState,{selectUsageCountStatus:e=>(0,i.get)(e,[ps,"status"],ys.getInitialState()),selectUsageCount:e=>(0,i.get)(e,[ps,"count"],ys.getInitialState().count),selectUsageCountLimit:e=>(0,i.get)(e,[ps,"limit"],ys.getInitialState().limit),selectUsageCountEndpoint:e=>(0,i.get)(e,[ps,"endpoint"],ys.getInitialState().endpoint),selectUsageCountError:e=>(0,i.get)(e,[ps,"error"],ys.getInitialState().error)});xs.selectUsageCountRemaining=(0,us.createSelector)([xs.selectUsageCount,xs.selectUsageCountLimit],((e,s)=>Math.max(s-e,0))),xs.isUsageCountLimitReached=(0,us.createSelector)([xs.selectUsageCount,xs.selectUsageCountLimit,xs.selectUsageCountError],((e,s,t)=>429===t.errorCode||e>=s)),ys.actions,ys.reducer;ce.forwardRef((function(e,s){return ce.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:s},e),ce.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"}))}));a().string.isRequired;const ws=ce.forwardRef((function(e,s){return ce.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:s},e),ce.createElement("path",{fillRule:"evenodd",d:"M12.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))})),bs=({learnMoreLink:e,thumbnail:t,wistiaEmbedPermission:r,upsellLink:o,upsellLabel:i=(0,s.sprintf)(/* translators: %1$s expands to Yoast SEO Premium. */
(0,s.__)("Unlock with %1$s","wordpress-seo"),"Yoast SEO Premium"),newToText:n="Yoast SEO Premium",ctbId:a="f6a84663-465f-4cb5-8ba5-f7a6d72224b2"})=>{const{onClose:l,initialFocus:c}=(0,le.useModalContext)(),d={a:(0,u.jsx)(Ts,{href:e,className:"yst-inline-flex yst-items-center yst-gap-1 yst-no-underline yst-font-medium",variant:"primary"}),ArrowNarrowRightIcon:(0,u.jsx)(ws,{className:"yst-w-4 yst-h-4 rtl:yst-rotate-180"}),br:(0,u.jsx)("br",{})};return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("div",{className:"yst-px-10 yst-pt-10 yst-introduction-gradient yst-text-center",children:[(0,u.jsxs)("div",{className:"yst-relative yst-w-full",children:[(0,u.jsx)(Fs,{videoId:"vun9z1dpfh",thumbnail:t,wistiaEmbedPermission:r}),(0,u.jsx)(le.Badge,{className:"yst-absolute yst-end-4 yst-text-center yst-justify-center",variant:"info",style:{top:"-8px"},children:(0,s.__)("Beta","wordpress-seo")})]}),(0,u.jsx)("div",{className:"yst-mt-6 yst-text-xs yst-font-medium yst-flex yst-flex-col yst-items-center",children:(0,u.jsxs)("span",{className:"yst-introduction-modal-uppercase yst-flex yst-gap-2 yst-items-center",children:[(0,u.jsx)("span",{className:"yst-logo-icon"}),n]})})]}),(0,u.jsxs)("div",{className:"yst-px-10 yst-pb-4 yst-flex yst-flex-col yst-items-center",children:[(0,u.jsxs)("div",{className:"yst-mt-4 yst-mx-1.5 yst-text-center",children:[(0,u.jsx)("h3",{className:"yst-text-slate-900 yst-text-lg yst-font-medium",children:(0,s.sprintf)(/* translators: %s: Expands to "Yoast AI" */
(0,s.__)("Optimize your SEO content with %s","wordpress-seo"),"Yoast AI")}),(0,u.jsx)("div",{className:"yst-mt-2 yst-text-slate-600 yst-text-sm",children:he((0,s.sprintf)(/* translators: %1$s is a break tag; %2$s and %3$s are anchor tags; %4$s is the arrow icon. */
(0,s.__)("Make content editing a breeze! Optimize your SEO content with quick, actionable suggestions at the click of a button.%1$s%2$sLearn more%3$s%4$s","wordpress-seo"),"<br/>","<a>","<ArrowNarrowRightIcon />","</a>"),d)})]}),(0,u.jsx)("div",{className:"yst-w-full yst-flex yst-mt-6",children:(0,u.jsxs)(le.Button,{as:"a",className:"yst-grow",size:"extra-large",variant:"upsell",href:o,target:"_blank",ref:c,"data-action":"load-nfd-ctb","data-ctb-id":a,children:[(0,u.jsx)(be,{className:"yst--ms-1 yst-me-2 yst-h-5 yst-w-5"}),i,(0,u.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */
(0,s.__)("(Opens in a new browser tab)","wordpress-seo")})]})}),(0,u.jsx)(le.Button,{as:"a",className:"yst-mt-4",variant:"tertiary",onClick:l,children:(0,s.__)("Close","wordpress-seo")})]})]})};bs.propTypes={learnMoreLink:a().string.isRequired,upsellLink:a().string.isRequired,thumbnail:a().shape({src:a().string.isRequired,width:a().string,height:a().string}).isRequired,wistiaEmbedPermission:a().shape({value:a().bool.isRequired,status:a().string.isRequired,set:a().func.isRequired}).isRequired,upsellLabel:a().string,newToText:a().string,ctbId:a().string};const fs=({handleRefreshClick:e,supportLink:t})=>(0,u.jsxs)("div",{className:"yst-flex yst-gap-2",children:[(0,u.jsx)(le.Button,{onClick:e,children:(0,s.__)("Refresh this page","wordpress-seo")}),(0,u.jsx)(le.Button,{variant:"secondary",as:"a",href:t,target:"_blank",rel:"noopener",children:(0,s.__)("Contact support","wordpress-seo")})]});fs.propTypes={handleRefreshClick:a().func.isRequired,supportLink:a().string.isRequired};const vs=({handleRefreshClick:e,supportLink:t})=>(0,u.jsxs)("div",{className:"yst-grid yst-grid-cols-1 yst-gap-y-2",children:[(0,u.jsx)(le.Button,{className:"yst-order-last",onClick:e,children:(0,s.__)("Refresh this page","wordpress-seo")}),(0,u.jsx)(le.Button,{variant:"secondary",as:"a",href:t,target:"_blank",rel:"noopener",children:(0,s.__)("Contact support","wordpress-seo")})]});vs.propTypes={handleRefreshClick:a().func.isRequired,supportLink:a().string.isRequired};const ks=({error:e,children:t=null})=>(0,u.jsxs)("div",{role:"alert",className:"yst-max-w-screen-sm yst-p-8 yst-space-y-4",children:[(0,u.jsx)(le.Title,{children:(0,s.__)("Something went wrong. An unexpected error occurred.","wordpress-seo")}),(0,u.jsx)("p",{children:(0,s.__)("We're very sorry, but it seems like the following error has interrupted our application:","wordpress-seo")}),(0,u.jsx)(le.Alert,{variant:"error",children:(null==e?void 0:e.message)||(0,s.__)("Undefined error message.","wordpress-seo")}),(0,u.jsx)("p",{children:(0,s.__)("Unfortunately, this means that any unsaved changes in this section will be lost. You can try and refresh this page to resolve the problem. If this error still occurs, please get in touch with our support team, and we'll get you all the help you need!","wordpress-seo")}),t]});ks.propTypes={error:a().object.isRequired,children:a().node},ks.VerticalButtons=vs,ks.HorizontalButtons=fs;a().string,a().node.isRequired,a().node.isRequired,a().node,a().oneOf(Object.keys({lg:{grid:"yst-grid lg:yst-grid-cols-3 lg:yst-gap-12",col1:"yst-col-span-1",col2:"lg:yst-mt-0 lg:yst-col-span-2"},xl:{grid:"yst-grid xl:yst-grid-cols-3 xl:yst-gap-12",col1:"yst-col-span-1",col2:"xl:yst-mt-0 xl:yst-col-span-2"},"2xl":{grid:"yst-grid 2xl:yst-grid-cols-3 2xl:yst-gap-12",col1:"yst-col-span-1",col2:"2xl:yst-mt-0 2xl:yst-col-span-2"}}));const _s=window.ReactDOM;var js,Ss,Cs;(Ss=js||(js={})).Pop="POP",Ss.Push="PUSH",Ss.Replace="REPLACE",function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(Cs||(Cs={})),new Set(["lazy","caseSensitive","path","id","index","children"]),Error;const Rs=["post","put","patch","delete"],Es=(new Set(Rs),["get",...Rs]);new Set(Es),new Set([301,302,303,307,308]),new Set([307,308]),Symbol("deferred"),ce.Component,ce.startTransition,new Promise((()=>{})),ce.Component,new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);try{window.__reactRouterVersion="6"}catch(e){}var Ls,Ns,Ms,Is;new Map,ce.startTransition,_s.flushSync,ce.useId,"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement,(Is=Ls||(Ls={})).UseScrollRestoration="useScrollRestoration",Is.UseSubmit="useSubmit",Is.UseSubmitFetcher="useSubmitFetcher",Is.UseFetcher="useFetcher",Is.useViewTransitionState="useViewTransitionState",(Ms=Ns||(Ns={})).UseFetcher="useFetcher",Ms.UseFetchers="useFetchers",Ms.UseScrollRestoration="useScrollRestoration",a().string.isRequired,a().string;const Ts=({href:e,children:t=null,...r})=>(0,u.jsxs)(le.Link,{target:"_blank",rel:"noopener noreferrer",...r,href:e,children:[t,(0,u.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */
(0,s.__)("(Opens in a new browser tab)","wordpress-seo")})]});Ts.propTypes={href:a().string.isRequired,children:a().node};ce.forwardRef((function(e,s){return ce.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:s},e),ce.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17 8l4 4m0 0l-4 4m4-4H3"}))})),(0,s.__)("AI tools included","wordpress-seo"),(0,s.sprintf)(/* translators: %1$s expands to "Yoast SEO academy". */
(0,s.__)("%1$s access","wordpress-seo"),"Yoast SEO academy"),(0,s.__)("24/7 support","wordpress-seo"),(0,s.__)("Generate SEO optimized metadata in seconds with AI","wordpress-seo"),(0,s.__)("Make your articles visible, be seen in Google News","wordpress-seo"),(0,s.__)("Built to get found by search, AI, and real users","wordpress-seo"),(0,s.__)("Easy Local SEO. Show up in Google Maps results","wordpress-seo"),(0,s.__)("Internal links and redirect management, easy","wordpress-seo"),(0,s.__)("Access to friendly help when you need it, day or night","wordpress-seo");ce.forwardRef((function(e,s){return ce.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:s},e),ce.createElement("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"}))}));var Ps;function As(){return As=Object.assign?Object.assign.bind():function(e){for(var s=1;s<arguments.length;s++){var t=arguments[s];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},As.apply(this,arguments)}a().string.isRequired,a().object.isRequired,a().func.isRequired,ce.forwardRef((function(e,s){return ce.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:s},e),ce.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"}))}));const Os=e=>ce.createElement("svg",As({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 12"},e),Ps||(Ps=ce.createElement("path",{fill:"#CD82AB",d:"M10.989 6.74 7.885.98v.002L7.882.98 4.778 6.74 0 3.32l1.126 7.702H14.64l1.126-7.703L10.99 6.74Z"})));a().string.isRequired,a().object,a().func.isRequired,a().bool.isRequired,a().string.isRequired,a().object.isRequired,a().string.isRequired,a().func.isRequired,a().bool.isRequired,ce.forwardRef((function(e,s){return ce.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:s},e),ce.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"}))})),a().bool.isRequired,a().func,a().func,a().string.isRequired,a().string.isRequired,a().string.isRequired,a().string.isRequired;const Bs=window.yoast.reactHelmet,Fs=({videoId:e,thumbnail:t,wistiaEmbedPermission:r,hasPadding:o=!0})=>{const[i,n]=(0,l.useState)(r.value?ds:ls),a=(0,l.useCallback)((()=>n(ds)),[n]),c=(0,l.useCallback)((()=>{r.value?a():n(cs)}),[r.value,a,n]),d=(0,l.useCallback)((()=>n(ls)),[n]),p=(0,l.useCallback)((()=>{r.set(!0),a()}),[r.set,a]);return(0,u.jsxs)(u.Fragment,{children:[r.value&&(0,u.jsx)(Bs.Helmet,{children:(0,u.jsx)("script",{src:"https://fast.wistia.com/assets/external/E-v1.js",async:!0})}),(0,u.jsxs)("div",{className:ke()("yst-relative yst-w-full yst-h-0 yst-pt-[47.25%] yst-overflow-hidden yst-rounded-md yst-drop-shadow-md yst-bg-white",!o&&"yst-pt-[56.25%]"),children:[i===ls&&(0,u.jsx)("button",{type:"button",className:"yst-absolute yst-inset-0 yst-button yst-p-0 yst-border-none yst-bg-white yst-transition-opacity yst-duration-1000 yst-opacity-100",onClick:c,children:(0,u.jsx)("img",{className:"yst-w-full yst-h-auto yst-object-contain",alt:"",loading:"lazy",decoding:"async",...t})}),i===cs&&(0,u.jsxs)("div",{className:"yst-absolute yst-inset-0 yst-flex yst-flex-col yst-items-center yst-justify-center yst-bg-white",children:[(0,u.jsxs)("p",{className:"yst-max-w-xs yst-mx-auto yst-text-center",children:[r.status===as&&(0,u.jsx)(le.Spinner,{}),r.status!==as&&(0,s.sprintf)(/* translators: %1$s expands to Yoast SEO. %2$s expands to Wistia. */
(0,s.__)("To see this video, you need to allow %1$s to load embedded videos from %2$s.","wordpress-seo"),"Yoast SEO","Wistia")]}),(0,u.jsxs)("div",{className:"yst-flex yst-mt-6 yst-gap-x-4",children:[(0,u.jsx)(le.Button,{type:"button",variant:"secondary",onClick:d,disabled:r.status===as,children:(0,s.__)("Deny","wordpress-seo")}),(0,u.jsx)(le.Button,{type:"button",variant:"primary",onClick:p,disabled:r.status===as,children:(0,s.__)("Allow","wordpress-seo")})]})]}),r.value&&i===ds&&(0,u.jsxs)("div",{className:"yst-absolute yst-w-full yst-h-full yst-top-0 yst-right-0",children:[null===e&&(0,u.jsx)(le.Spinner,{className:"yst-h-full yst-mx-auto"}),null!==e&&(0,u.jsx)("div",{className:`wistia_embed wistia_async_${e} videoFoam=true`})]})]})]})};Fs.propTypes={videoId:a().string.isRequired,thumbnail:a().shape({src:a().string.isRequired,width:a().string,height:a().string}).isRequired,wistiaEmbedPermission:a().shape({value:a().bool.isRequired,status:a().string.isRequired,set:a().func.isRequired}).isRequired,hasPadding:a().bool},ce.forwardRef((function(e,s){return ce.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:s},e),ce.createElement("path",{fillRule:"evenodd",d:"M10.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L12.586 11H5a1 1 0 110-2h7.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))})),a().bool.isRequired,a().func.isRequired,a().func,a().string;const $s=({onGiveConsent:e,learnMoreLink:t,privacyPolicyLink:r,termsOfServiceLink:o,imageLink:i})=>{const{onClose:n,initialFocus:a}=(0,le.useModalContext)(),[c,d]=(0,le.useToggleState)(!1),p=(0,l.useMemo)((()=>({src:i,width:"432",height:"244"})),[i]),h=he((0,s.sprintf)(/* translators: %1$s and %2$s are a set of anchor tags and %3$s and %4$s are a set of anchor tags. */
(0,s.__)("I approve the %1$sTerms of Service%2$s & %3$sPrivacy Policy%4$s of the Yoast AI service. This includes consenting to the collection and use of data to improve user experience.","wordpress-seo"),"<a1>","</a1>","<a2>","</a2>"),{a1:(0,u.jsx)(Ts,{href:o}),a2:(0,u.jsx)(Ts,{href:r})}),[m,g]=(0,le.useToggleState)(!1),y=(0,l.useCallback)((async()=>{g(),await e(),g()}),[e]);return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("div",{className:"yst-px-10 yst-pt-10 yst-introduction-gradient yst-text-center",children:(0,u.jsx)("div",{className:"yst-relative yst-w-full",children:(0,u.jsx)("img",{className:"yst-w-full yst-h-auto yst-rounded-md yst-drop-shadow-md",alt:"",loading:"lazy",decoding:"async",...p})})}),(0,u.jsxs)("div",{className:"yst-px-10 yst-pb-4 yst-flex yst-flex-col yst-items-center",children:[(0,u.jsxs)("div",{className:"yst-mt-4 yst-mx-1.5 yst-text-center",children:[(0,u.jsx)("h3",{className:"yst-text-slate-900 yst-text-lg yst-font-medium",children:(0,s.sprintf)(/* translators: %s expands to Yoast AI. */
(0,s.__)("Grant consent for %s","wordpress-seo"),"Yoast AI")}),(0,u.jsx)("div",{className:"yst-mt-2 yst-text-slate-600 yst-text-sm",children:he((0,s.sprintf)(/* translators: %1$s is a break tag; %2$s and %3$s are anchor tag; %4$s is the arrow icon. */
(0,s.__)("Enable AI-powered SEO! Use all Yoast AI features to boost your efficiency. Just give us the green light. %1$s%2$sLearn more%3$s%4$s","wordpress-seo"),"<br/>","<a>","<ArrowNarrowRightIcon />","</a>"),{a:(0,u.jsx)(Ts,{href:t,className:"yst-inline-flex yst-items-center yst-gap-1 yst-no-underline yst-font-medium",variant:"primary"}),ArrowNarrowRightIcon:(0,u.jsx)(ws,{className:"yst-w-4 yst-h-4 rtl:yst-rotate-180"}),br:(0,u.jsx)("br",{})})})]}),(0,u.jsx)("div",{className:"yst-flex yst-w-full yst-mt-6",children:(0,u.jsx)("hr",{className:"yst-w-full yst-text-gray-200"})}),(0,u.jsxs)("div",{className:"yst-flex yst-items-start yst-mt-4",children:[(0,u.jsx)("input",{type:"checkbox",id:"yst-ai-consent-checkbox",name:"yst-ai-consent-checkbox",checked:c,value:c?"true":"false",onChange:d,className:"yst-checkbox__input",ref:a}),(0,u.jsx)("label",{htmlFor:"yst-ai-consent-checkbox",className:"yst-label yst-checkbox__label yst-text-xs yst-font-normal yst-text-slate-500",children:h})]}),(0,u.jsx)("div",{className:"yst-w-full yst-flex yst-mt-4",children:(0,u.jsxs)(le.Button,{as:"button",className:"yst-grow",size:"large",disabled:!c,onClick:y,children:[m&&(0,u.jsx)(le.Spinner,{className:"yst-me-2"}),(0,s.__)("Grant consent","wordpress-seo")]})}),(0,u.jsx)(le.Button,{as:"button",className:"yst-mt-4",variant:"tertiary",onClick:n,children:(0,s.__)("Close","wordpress-seo")})]})]})};$s.propTypes={onGiveConsent:a().func.isRequired,learnMoreLink:a().string.isRequired,privacyPolicyLink:a().string.isRequired,termsOfServiceLink:a().string.isRequired,imageLink:a().string.isRequired};const qs=()=>{const e=(0,k.useSelect)((e=>e(Ie).selectLink("https://yoa.st/ai-common-errors")),[]),t=(0,k.useSelect)((e=>e(Ie).selectAdminLink("?page=wpseo_page_support")),[]);return(0,u.jsxs)(le.Alert,{variant:"error",children:[(0,u.jsx)("span",{className:"yst-block yst-font-medium",children:(0,s.__)("Something went wrong","wordpress-seo")}),(0,u.jsx)("p",{className:"yst-mt-2",children:he((0,s.sprintf)(/* translators: %1$s and %3$s expand to an opening tag. %2$s and %4$s expand to a closing tag. */
(0,s.__)("Please try again later. If this issue persists, you can learn more about possible reasons for this error on our page about %1$scommon AI feature problems and errors%2$s. In case you need further help, please %3$scontact our support team%4$s.","wordpress-seo"),"<a1>","</a1>","<a2>","</a2>"),{a1:(0,u.jsx)(Ts,{variant:"error",href:e}),a2:(0,u.jsx)(Ts,{variant:"error",href:t})})})]})},Us=()=>{const e=(0,k.useSelect)((e=>e(Ie).selectLink("https://yoa.st/ai-common-errors")),[]),t=(0,k.useSelect)((e=>e(Ie).selectAdminLink("?page=wpseo_page_support")),[]);return(0,u.jsxs)(le.Alert,{variant:"error",children:[(0,u.jsx)("span",{className:"yst-block yst-font-medium",children:(0,s.__)("Not enough content","wordpress-seo")}),(0,u.jsx)("p",{className:"yst-mt-2",children:he((0,s.sprintf)(/* translators: %1$s and %3$s expand to an opening tag. %2$s and %4$s expand to a closing tag. */
(0,s.__)("Please add more content to ensure a valuable AI suggestion. Learn more on our page about %1$scommon AI feature problems and errors%2$s. In case you need further help, please %3$scontact our support team%4$s.","wordpress-seo"),"<a1>","</a1>","<a2>","</a2>"),{a1:(0,u.jsx)(Ts,{variant:"error",href:e}),a2:(0,u.jsx)(Ts,{variant:"error",href:t})})})]})},Ws=()=>{const e=(0,k.useSelect)((e=>e(Ie).selectAdminLink("?page=wpseo_page_settings#/site-features#card-wpseo-keyword_analysis_active")),[]),t=(0,l.useCallback)((()=>{window.location.reload()}),[]),{onClose:r}=(0,le.useModalContext)();return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(le.Alert,{variant:"error",children:[(0,u.jsx)("span",{className:"yst-block yst-font-medium",children:(0,s.__)("SEO analysis required","wordpress-seo")}),(0,u.jsx)("p",{className:"yst-mt-2",children:he((0,s.sprintf)(
/**
         * translators:
         * %1$s expands to Yoast SEO.
         * %2$s and %3$s expand to an opening and closing anchor tag, respectively, that links to the settings page.
         * %4$s expands to Yoast AI.
         */
(0,s.__)("%4$s requires the SEO analysis to be enabled. To enable it, please navigate to %2$sSite features%3$s in %1$s, turn on the SEO analysis, and click 'Save changes'. If it's disabled in your WordPress user profile, access your profile and enable it there. Please contact your administrator if you don't have access to these settings.","wordpress-seo"),"Yoast SEO","<a>","</a>","Yoast AI"),{a:(0,u.jsx)(Ts,{variant:"error",href:e})})})]}),(0,u.jsxs)("div",{className:"yst-mt-6 yst-mb-1 yst-flex yst-space-x-3 rtl:yst-space-x-reverse yst-place-content-end",children:[(0,u.jsx)(le.Button,{variant:"secondary",onClick:r,children:(0,s.__)("Close","wordpress-seo")}),(0,u.jsx)(le.Button,{className:"yst-revoke-button",variant:"primary",onClick:t,children:(0,s.__)("Refresh page","wordpress-seo")})]})]})},Hs=()=>{const e=(0,k.useSelect)((e=>e(Ie).selectLink("https://yoa.st/ai-generator-rate-limit-help")),[]);return(0,u.jsxs)(le.Alert,{variant:"error",children:[(0,u.jsx)("span",{className:"yst-block yst-font-medium",children:(0,s.__)("You've reached the Yoast AI rate limit","wordpress-seo")}),(0,u.jsx)("p",{className:"yst-mt-2",children:he((0,s.sprintf)(/* translators: %1$s expands to an opening tag. %2$s expands to a closing tag. */
(0,s.__)("You might have reached your Yoast AI rate limit for a specific time frame or your sparks limit for this month. If you have reached your rate limit, please reduce the frequency of your requests to continue using Yoast AI features. Our %1$shelp article%2$s provides guidance on effectively planning and pacing your requests for an optimized workflow.","wordpress-seo"),"<a>","</a>"),{a:(0,u.jsx)(Ts,{variant:"error",href:e})})})]})},zs=({invalidSubscriptions:e=[]})=>{const{newYoastWooLink:t,activateYoastWooLink:r,newPremiumLink:o,activatePremiumLink:i}=(0,k.useSelect)((e=>{const s=e(Ie);return{newYoastWooLink:s.selectLink("https://yoa.st/ai-generator-new-yoast-woocommerce"),activateYoastWooLink:s.selectLink("https://yoa.st/ai-generator-activate-yoast-woocommerce"),newPremiumLink:s.selectLink("https://yoa.st/ai-generator-new-premium"),activatePremiumLink:s.selectLink("https://yoa.st/ai-generator-activate-premium")}}),[]),{onClose:n}=(0,le.useModalContext)(),a=(0,l.useCallback)((async()=>{try{await C()({path:"yoast/v1/ai_generator/bust_subscription_cache",method:"POST",parse:!1})}catch(e){console.error(e)}window.location.reload()}),[]);let c,d,p;return e.includes("Yoast WooCommerce SEO")?(c="Yoast WooCommerce SEO",d=r,p=t):e.includes("Yoast SEO Premium")&&(c="Yoast SEO Premium",d=i,p=o),(0,u.jsxs)(l.Fragment,{children:[(0,u.jsxs)(le.Alert,{variant:"error",children:[(0,u.jsx)("span",{className:"yst-block yst-font-medium",children:(0,s.__)("Subscription required","wordpress-seo")}),(0,u.jsx)("p",{className:"yst-mt-2",children:he((0,s.sprintf)(
/**
         * translators:
         * %1$s expands to Yoast SEO Premium or Yoast WooCommerce SEO.
         * %2$s expands to MyYoast.
         * %3$s and %4$s expand to an opening and closing anchor tag, respectively, to activate your subscription.
         * %5$s and %6$s expand to an opening and closing anchor tag, respectively, to get a new subscription.
         **/
(0,s.__)("To access this feature, you need an active %1$s subscription. Please %3$sactivate your subscription in %2$s%4$s or %5$sget a new %1$s subscription%6$s. Afterward, refresh this page. It may take up to 30 seconds for the feature to function correctly.","wordpress-seo"),c,"MyYoast","<Activate>","</Activate>","<New>","</New>"),{Activate:(0,u.jsx)(Ts,{variant:"error",href:d}),New:(0,u.jsx)(Ts,{variant:"error",href:p})})})]}),(0,u.jsxs)("div",{className:"yst-mt-6 yst-mb-1 yst-flex yst-space-x-3 rtl:yst-space-x-reverse yst-place-content-end",children:[(0,u.jsx)(le.Button,{variant:"secondary",onClick:n,children:(0,s.__)("Close","wordpress-seo")}),(0,u.jsx)(le.Button,{variant:"primary",onClick:a,children:(0,s.__)("Refresh page","wordpress-seo")})]})]})};zs.propTypes={invalidSubscriptions:a().arrayOf(a().string)};const Ks=()=>{const e=(0,k.useSelect)((e=>e(Ie).selectLink("https://yoa.st/ai-common-errors")),[]),t=(0,k.useSelect)((e=>e(Ie).selectAdminLink("?page=wpseo_page_support")),[]);return(0,u.jsxs)(le.Alert,{variant:"error",children:[(0,u.jsx)("span",{className:"yst-block yst-font-medium",children:(0,s.__)("Connection timeout","wordpress-seo")}),(0,u.jsx)("p",{className:"yst-mt-2",children:he((0,s.sprintf)(/* translators: %1$s and %3$s expand to an opening tag. %2$s and %4$s expand to a closing tag. */
(0,s.__)("It seems that a connection timeout has occurred. Please check your internet connection and try again later. Learn more on our page about %1$scommon AI feature problems and errors%2$s. In case you need further help, please %3$scontact our support team%4$s.","wordpress-seo"),"<a1>","</a1>","<a2>","</a2>"),{a1:(0,u.jsx)(Ts,{variant:"error",href:e}),a2:(0,u.jsx)(Ts,{variant:"error",href:t})})})]})},Ds=()=>{const e=(0,k.useSelect)((e=>e(Ie).selectAdminLink("?page=wpseo_page_support")),[]);return(0,u.jsxs)(le.Alert,{variant:"error",children:[(0,u.jsx)("span",{className:"yst-block yst-font-medium",children:(0,s.__)("Usage policy violation","wordpress-seo")}),(0,u.jsx)("p",{className:"yst-mt-2",children:he((0,s.sprintf)(
/* translators: %1$s, %2$s, %3$s, %4$s are anchor tags.
       * %5$s expands to OpenAI.
       */
(0,s.__)("Due to %5$s's strict ethical guidelines and %1$susage policies%2$s, we cannot generate suggestions for the content on this page. If you intend to use AI, kindly avoid the use of explicit, violent, copyrighted, or sexually explicit content. In case you need further help, please %3$scontact our support team%4$s.","wordpress-seo"),"<a1>","</a1>","<a2>","</a2>","OpenAI"),{a1:(0,u.jsx)(Ts,{variant:"error",href:"https://openai.com/policies/usage-policies"}),a2:(0,u.jsx)(Ts,{variant:"error",href:e})})})]})},Gs=({errorMessage:e=""})=>{const t=(0,k.useSelect)((e=>e(Ie).selectAdminLink("?page=wpseo_page_support")),[]);return(0,u.jsxs)(le.Alert,{variant:"error",children:[(0,u.jsx)("span",{className:"yst-block yst-font-medium",children:(0,s.__)("Something went wrong","wordpress-seo")}),(0,u.jsx)("p",{className:"yst-mt-2",children:(0,s.sprintf)(/* translators: %s is the error response of the request. */
(0,s.__)("The request came back with the following error: '%s'.","wordpress-seo"),e)}),(0,u.jsx)("p",{className:"yst-mt-2",children:he((0,s.sprintf)(/* translators: %1$s expands to an opening tag. %2$s expands to a closing tag. */
(0,s.__)("Please try again later. If the issue persists, please %1$scontact our support team%2$s.","wordpress-seo"),"<a>","</a>"),{a:(0,u.jsx)(Ts,{variant:"error",href:t})})})]})};Gs.propTypes={errorMessage:a().string};const Ys=()=>{const e=(0,k.useSelect)((e=>e(Ie).selectAdminLink("plugins.php")),[]);return(0,u.jsxs)(le.Alert,{variant:"error",children:[(0,u.jsx)("span",{className:"yst-block yst-font-medium",children:(0,s.__)("Something went wrong","wordpress-seo")}),(0,u.jsx)("p",{className:"yst-mt-2",children:he((0,s.sprintf)(/* translators: %1$s expands to Yoast SEO Premium. %2$s expands to an opening link tag. %3$s expands to a closing link tag. */
(0,s.__)("The version of %1$s is outdated. Please upgrade %1$s %2$shere%3$s!","wordpress-seo"),"Yoast SEO Premium","<a>","</a>"),{a:(0,u.jsx)(Ts,{variant:"error",href:e})})})]})},Vs=()=>{const e=(0,k.useSelect)((e=>e(Ie).selectLink("https://yoa.st/ai-common-errors")),[]),t=(0,k.useSelect)((e=>e(Ie).selectAdminLink("?page=wpseo_page_support")),[]);return(0,u.jsxs)(le.Alert,{variant:"error",children:[(0,u.jsx)("span",{className:"yst-block yst-font-medium",children:(0,s.__)("Yoast AI cannot reach your site","wordpress-seo")}),(0,u.jsx)("p",{className:"yst-mt-2",children:he((0,s.sprintf)(/* translators: %1$s and %3$s expand to an opening tag. %2$s and %4$s expand to a closing tag. */
(0,s.__)("To use this feature, your site must be publicly accessible. This applies to both test sites and instances where your REST API is password-protected. Please ensure your site is accessible to the public and try again. Learn more on our page about %1$scommon AI feature problems and errors%2$s. In case you need further help, please %3$scontact our support team%4$s.","wordpress-seo"),"<a1>","</a1>","<a2>","</a2>"),{a1:(0,u.jsx)(Ts,{variant:"error",href:e}),a2:(0,u.jsx)(Ts,{variant:"error",href:t})})})]})},Zs=({errorCode:e,errorIdentifier:s="",errorMessage:t=""})=>{switch(e){case 400:switch(s){case"SITE_UNREACHABLE":return(0,u.jsx)(Vs,{});case"WP_HTTP_REQUEST_ERROR":return(0,u.jsx)(Gs,{errorMessage:t});default:return(0,u.jsx)(qs,{})}case 429:return(0,u.jsx)(Hs,{});default:return(0,u.jsx)(qs,{})}};Zs.propTypes={errorCode:a().number.isRequired,errorIdentifier:a().string,errorMessage:a().string};const Qs=({currentSubscriptions:e,isSeoAnalysisActive:s=!0})=>{const{isPremium:t,usageCountStatus:r,usageCountError:o,isWooProductEntity:i,isWooSeoActive:n}=(0,k.useSelect)((e=>{const s=e(Ie);return{isPremium:s.getIsPremium(),usageCountStatus:e(Me).selectUsageCountStatus(),usageCountError:e(Me).selectUsageCountError(),isWooProductEntity:s.getIsWooProductEntity(),isWooSeoActive:s.getIsWooSeoActive()}}),[]),a=(0,l.useMemo)((()=>!e.wooCommerceSubscription&&i),[e.wooCommerceSubscription]),c=(0,l.useMemo)((()=>{const s=[];return!t&&!i||e.premiumSubscription||s.push("Yoast SEO Premium"),a&&n&&s.push("Yoast WooCommerce SEO"),s}),[t,e.premiumSubscription,a,n,i]);return c.length>0?(0,u.jsx)(zs,{invalidSubscriptions:c}):s?r===He.error?(0,u.jsx)(Zs,{...o}):void 0:(0,u.jsx)(Ws,{})};Qs.propTypes={currentSubscriptions:a().object.isRequired,isSeoAnalysisActive:a().bool};const Js=({onStartGenerating:e})=>{const{termsOfServiceLink:s,privacyPolicyLink:t,learnMoreLink:r,imageLink:o,consentEndpoint:i}=(0,k.useSelect)((e=>({termsOfServiceLink:e(Ie).selectLink("https://yoa.st/ai-generator-terms-of-service"),privacyPolicyLink:e(Ie).selectLink("https://yoa.st/ai-generator-privacy-policy"),learnMoreLink:e(Ie).selectLink("https://yoa.st/ai-generator-learn-more"),imageLink:e(Ie).selectImageLink("ai-consent.png"),consentEndpoint:e(Me).selectAiGeneratorConsentEndpoint()})),[]),{storeAiGeneratorConsent:n}=(0,k.useDispatch)(Me),a=(0,l.useCallback)((async()=>{await n(!0,i),e()}),[n,e,i]);return(0,u.jsx)($s,{termsOfServiceLink:s,privacyPolicyLink:t,learnMoreLink:r,imageLink:o,onGiveConsent:a})};Js.propTypes={onStartGenerating:a().func.isRequired};const Xs=ce.forwardRef((function(e,s){return ce.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:s},e),ce.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"}))})),et=/(?<start><\/badge>|^(?!<badge>))(?<wrap>[\s\S]+?)(?<end><badge>|$)/g,st=({total:e,current:t,onNavigate:r,disabled:o=!1,...i})=>(0,u.jsxs)("div",{className:"yst-flex yst-justify-between yst-gap-x-2 yst-items-start",children:[(0,u.jsx)("p",{className:"yst-text-slate-500 yst-text-xxs yst-mt-1",children:(0,s.__)("Text generated by AI may be offensive or inaccurate.","wordpress-seo")}),e>1&&(0,u.jsx)(le.Pagination,{className:"yst-shrink-0",current:t,total:e,onNavigate:r,disabled:o,variant:"text"
/* translators: Hidden accessibility text. */,screenReaderTextPrevious:(0,s.__)("Previous","wordpress-seo")
/* translators: Hidden accessibility text. */,screenReaderTextNext:(0,s.__)("Next","wordpress-seo"),...i})]}),tt=({height:e})=>{const[t,r]=(0,l.useState)(""),{onClose:o}=(0,le.useModalContext)(),{editType:n,previewType:a,contentType:c}=rs(),d=(()=>{const{editType:e,previewType:t}=rs();let r="SEO";switch(t){case Pe:r="social";break;case Ae:r="X"}switch(e){case Oe:return(0,s.sprintf)(/* translators: %s is the type of title. */
(0,s.__)("Generated %s titles","wordpress-seo"),r);case Be:return t===Te&&(r="meta"),(0,s.sprintf)(/* translators: %s is the type of description. */
(0,s.__)("Generated %s descriptions","wordpress-seo"),r)}})(),p=(()=>{const{editType:e,previewType:t}=rs();let r="SEO";switch(t){case Pe:r="social";break;case Ae:r="X"}switch(e){case Oe:return(0,s.sprintf)(/* translators: %s is the type of title. */
(0,s.__)("Apply %s title","wordpress-seo"),r);case Be:return t===Te&&(r="meta"),(0,s.sprintf)(/* translators: %s is the type of description. */
(0,s.__)("Apply %s description","wordpress-seo"),r)}})(),h=os(),{suggestions:m,fetchSuggestions:g,setSelectedSuggestion:y}=Cr(),x=kr(),{addAppliedSuggestion:w,addUsageCount:b}=(0,k.useDispatch)(Me),{isUsageCountLimitReached:f,isWooProductEntity:v,hasValidPremiumSubscription:_,hasValidWooSubscription:j}=(0,k.useSelect)((e=>{const s=e(Me),t=e(Ie);return{isUsageCountLimitReached:s.isUsageCountLimitReached(),isPremium:t.getIsPremium(),isWooProductEntity:t.getIsWooProductEntity(),isWooSeoActive:t.getIsWooSeoActive(),hasValidPremiumSubscription:s.selectPremiumSubscription(),hasValidWooSubscription:s.selectWooCommerceSubscription()}}),[]),S=(0,l.useMemo)((()=>m.status===He.loading||!(j||!f||!v)||!(_||!f)),[_,f,m.status,v,j]),C=(0,le.usePrevious)(e),R=m.status===He.success?e:C,E=`calc(${0===R?"50%":R/2+"px"} - 40vh)`,[L,N]=(0,l.useState)(!1),M=(0,l.useCallback)((e=>{N(e.target.offsetHeight!==e.target.scrollHeight)}),[N]),I=is(M),T=Er(),P=(()=>{const e=(()=>{const{previewType:e}=rs();return(0,l.useMemo)((()=>{switch(e){case Te:return()=>(0,k.select)(Ie).getSnippetEditorData().description;case Pe:return(0,k.select)(Ie).getFacebookDescriptionOrFallback;case Ae:return(0,k.select)(Ie).getTwitterDescriptionOrFallback;default:return(0,i.constant)("")}}),[e])})();return(0,l.useMemo)(e,[e])})(),A=es(),O=(0,l.useMemo)((()=>n===Oe?{[qe[c]]:m.selected}:{}),[n,c,m.selected]),B=(0,l.useMemo)((()=>A(T,{overrides:O,contentType:c})),[A,T,n,c,m.selected]),F=(0,l.useMemo)((()=>A(T,{overrides:{...O,sep:"",sitename:""},contentType:c})),[A,T,n,c,m.selected]),$=(0,l.useMemo)((()=>n===Be?m.selected:A(P,{editType:Be})),[A,P,n,m.selected]),q=(0,l.useCallback)((e=>A(T,{overrides:{[qe[c]]:e},key:"badge",applyPluggable:!1,contentType:c})),[A,T,c]),{currentPage:U,setCurrentPage:W,isOnLastPage:H,totalPages:z,getItemsOnCurrentPage:K}=(({totalItems:e=0,perPage:s=5})=>{const[t,r]=(0,l.useState)(1),o=(0,l.useMemo)((()=>Math.ceil(e/s)),[e,s]),n=(0,l.useMemo)((()=>t*s),[t,s]),a=(0,l.useMemo)((()=>n-s),[n,s]),c=(0,l.useMemo)((()=>1===t),[t]),d=(0,l.useMemo)((()=>t===o),[t,o]),u=(0,l.useCallback)((()=>{t>1&&r(t-1)}),[t,r]),p=(0,l.useCallback)((()=>{t<o&&r(t+1)}),[t,r,o]),h=(0,l.useCallback)((e=>(0,i.slice)(e,a,n)),[a,n]);return{currentPage:t,setCurrentPage:r,totalPages:o,isOnFirstPage:c,isOnLastPage:d,previousPage:u,nextPage:p,firstOnPage:a,lastOnPage:n,getItemsOnCurrentPage:h}})({totalItems:m.status===He.loading||m.status===He.error?m.entities.length+5:m.entities.length,perPage:5}),D=(0,l.useMemo)((()=>(0,i.map)(K(m.entities),(e=>{let s=e;return n===Oe&&(s=q(e),s=s.replace(et,((e,s,t,r,o,i,{start:n,wrap:a,end:l})=>{const c=a.trim();return 0===c.length?`${n}${a}${l}`:`${n}<span>${c}</span>${l}`})),s=he(s,{badge:(0,u.jsx)(le.Badge,{className:"yst-me-2 last:yst-me-0",variant:"plain",children:" "}),span:(0,u.jsx)("span",{className:"yst-flex yst-items-center yst-me-2 last:yst-me-0"})})),{value:e,label:s}}))),[m.entities,K,n,q]),G=(0,l.useMemo)((()=>m.status!==He.error||m.status===He.error&&!H),[m.status,H]),Y=(0,l.useMemo)((()=>m.status===He.loading&&H),[m.status,H]),V=(0,l.useMemo)((()=>m.status===He.error&&H),[m.status,H]),Z=(0,l.useCallback)((()=>{S||(W(m.status===He.error?z:z+1),g().then((e=>{e===ze&&b()})))}),[g,m.status,z,W,y,f]),Q=(0,l.useCallback)((()=>r("")),[r]),J=_r(),X=(0,l.useCallback)((()=>{const e=n===Oe?T.replace(new RegExp(Ue[c]+"( Archives)?"),m.selected):m.selected;J(e),w({editType:n,previewType:a,suggestion:m.selected}),o()}),[J,n,a,m.selected,T,o,w]);return((e,s=[])=>{const t=(0,l.useRef)(!1);(0,l.useEffect)((()=>{t.current||(t.current=!0,e().finally((()=>{t.current=!1})))}),[e,s])})((()=>""===t?g().then((e=>{r(e),e===ze&&b()})):Promise.resolve()),[t,b,g]),t===Ke||m.status===He.error&&402===m.error.code?(0,u.jsx)("div",{className:"yst-flex yst-flex-col yst-space-y-6 yst-mt-6",children:(0,u.jsx)(nr,{errorCode:m.error.code,errorIdentifier:m.error.errorIdentifier,invalidSubscriptions:m.error.missingLicenses,showActions:!0,onRetry:Q,errorMessage:m.error.message})}):(0,u.jsxs)(l.Fragment,{children:[(0,u.jsxs)(le.Modal.Container.Content,{ref:I,className:"yst-flex yst-flex-col yst-py-6 yst-space-y-2",children:[(0,u.jsx)(x,{title:B,description:$,status:m.status,titleForLength:F,showPreviewSkeleton:""===t,showLengthProgress:!Y}),G&&(Y?(0,u.jsx)(ur,{idSuffix:h,suggestionClassNames:n===Oe?[["yst-h-3 yst-w-9/12"],["yst-h-3 yst-w-7/12"],["yst-h-3 yst-w-10/12"],["yst-h-3 yst-w-11/12"],["yst-h-3 yst-w-8/12"]]:void 0}):(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("div",{className:"yst-flex yst-space-y-4",children:[(0,u.jsx)(le.Label,{as:"span",className:"yst-flex-grow yst-cursor-default yst-mt-auto",children:d}),(0,u.jsxs)(le.Button,{variant:"secondary",size:"small",onClick:m.status===He.loading?i.noop:Z,isLoading:m.status===He.loading,disabled:S,children:[m.status!==He.loading&&(0,u.jsx)(Xs,{className:"yst--ms-1 yst-me-2 yst-h-4 yst-w-4 yst-text-gray-400"}),(0,s.__)("Generate 5 more","wordpress-seo")]})]}),(0,u.jsx)(cr,{idSuffix:h,suggestions:D,selected:m.selected,onChange:y}),(0,u.jsx)(st,{current:U,total:z,onNavigate:W,disabled:m.status===He.loading||V})]})),m.status===He.error&&H&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("div",{className:"yst-mt-8"}),(0,u.jsx)(nr,{errorCode:m.error.code,errorIdentifier:m.error.errorIdentifier,invalidSubscriptions:m.error.missingLicenses,errorMessage:m.error.message}),(0,u.jsx)(st,{current:U,total:z,onNavigate:W,disabled:m.status===He.loading})]})]}),(0,u.jsxs)(le.Modal.Container.Footer,{children:[L&&(0,u.jsx)("div",{className:"yst-absolute yst-inset-x-0 yst--mt-10 yst-me-[calc(2.5rem-1px)] yst-h-10 yst-pointer-events-none yst-bg-gradient-to-t yst-from-slate-50"}),(0,u.jsx)("hr",{className:"yst-mb-6 yst--mx-6"}),(0,u.jsxs)("div",{className:"sm:yst-flex sm:yst-justify-end sm:yst-space-x-2 sm:rtl:yst-space-x-reverse",children:[(0,u.jsx)("div",{className:"yst-hidden sm:yst-inline",children:(0,u.jsx)(le.Button,{variant:"secondary",onClick:o,children:(0,s.__)("Close","wordpress-seo")})}),(0,u.jsx)("div",{className:"yst-block sm:yst-inline",children:(0,u.jsxs)(le.Button,{className:"yst-w-full sm:yst-w-auto",variant:"primary",onClick:X,disabled:""===m.selected||m.status===He.loading||V,children:[(0,u.jsx)(we,{className:"yst--ms-1 yst-me-1 yst-h-4 yst-w-4 yst-text-white"}),p]})}),(0,u.jsx)("div",{className:"yst-mt-3 sm:yst-hidden",children:(0,u.jsx)(le.Button,{variant:"secondary",onClick:o,className:"yst-w-full sm:yst-w-auto",children:(0,s.__)("Close","wordpress-seo")})})]})]}),(0,u.jsxs)(le.Notifications,{className:"yst-mx-[calc(50%-50vw)] yst-transition-all",style:{marginTop:E},position:"bottom-left",children:[m.status!==He.loading&&(0,u.jsx)(vr,{className:"yst-mx-[calc(50%-50vw)] yst-transition-all"}),(m.status===He.success||m.status===He.loading)&&(0,u.jsx)(hr,{})]})]})};tt.propTypes={height:a().number.isRequired};a().func.isRequired;const rt=({title:e,description:t,status:r,titleForLength:o,showPreviewSkeleton:i,showLengthProgress:n})=>{const a=(0,k.useSelect)((e=>e(Ie).getSnippetEditorMode()),[]),[c,d]=(0,l.useState)(a),{editType:p}=rs(),h=os(),m=Rr({editType:p,title:o,description:t});return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("div",{className:"yst-mb-2 lg:yst-flex",children:[(0,u.jsx)(le.Label,{as:"span",className:"yst-flex-grow yst-cursor-default",children:(0,s.__)("Google preview","wordpress-seo")}),(0,u.jsx)(ct,{mode:c,idSuffix:h,onChange:d,disabled:r===He.loading})]}),i?(0,u.jsx)(at,{}):(0,u.jsx)(nt,{mode:c,title:e,description:t}),(0,u.jsxs)("div",{className:"yst-pt-4",children:[(0,u.jsx)(le.Label,{as:"span",className:"yst-flex-grow yst-cursor-default",children:p===Oe?(0,s.__)("SEO title width","wordpress-seo"):(0,s.__)("Meta description length","wordpress-seo")}),(0,u.jsx)(lt,{className:"yst-mt-2",progress:n?m.actual:0,min:0,max:m.max,score:m.score})]})]})};rt.propTypes={title:a().string.isRequired,description:a().string.isRequired,status:a().oneOf(Object.keys(He)).isRequired,titleForLength:a().string.isRequired,showPreviewSkeleton:a().bool.isRequired,showLengthProgress:a().bool.isRequired};const ot=window.yoast.searchMetadataPreviews,it=/mobi/i,nt=({mode:e,title:s,description:t})=>{var r,o;const n=(0,k.useSelect)((e=>e(Ie).getBaseUrlFromSettings()),[]),a=(0,k.useSelect)((e=>e(Ie).getSnippetEditorData().slug||""),[]),c=(0,k.useSelect)((e=>e(Ie).getDateFromSettings()),[]),d=(0,k.useSelect)((e=>e(Ie).getFocusKeyphrase()),[]),p=(0,k.useSelect)((e=>e(Ie).getSnippetEditorPreviewImageUrl()),[]),h=(0,k.useSelect)((e=>e(Ie).getSiteIconUrlFromSettings()),[]),m=(0,k.useSelect)((e=>e(Ie).getShoppingData()),[]),g=(0,k.useSelect)((e=>e(Ie).getSnippetEditorWordsToHighlight()),[]),y=(0,k.useSelect)((e=>e(Ie).getSiteName()),[]),x=(0,k.useSelect)((e=>e(Ie).getContentLocale()),[]),w=(0,l.useMemo)((()=>n+a),[n,a]),b=(0,l.useMemo)((()=>{var e,s;return it.test(null===(e=window)||void 0===e||null===(s=e.navigator)||void 0===s?void 0:s.userAgent)}),[null===(r=window)||void 0===r||null===(o=r.navigator)||void 0===o?void 0:o.userAgent]);return(0,u.jsx)("div",{className:`yst-bg-slate-200 yst--mx-6 ${e}${b?" yst-user-agent__mobile":""}`,children:(0,u.jsx)(ot.SnippetPreview,{title:s,description:t,mode:e,url:w,keyword:d,date:c,faviconSrc:h,mobileImageSrc:p,wordsToHighlight:g,siteName:y,locale:x,shoppingData:m,onMouseUp:i.noop})})};nt.propTypes={mode:a().oneOf(Object.keys(We)).isRequired,title:a().string.isRequired,description:a().string.isRequired};const at=()=>(0,u.jsxs)("div",{className:"yst-max-w-[400px] yst-py-4 yst-px-3 yst-border yst-rounded-lg yst-w-full yst-mx-auto",children:[(0,u.jsxs)("div",{className:"yst-flex yst-gap-x-3",children:[(0,u.jsx)(le.SkeletonLoader,{className:"yst-flex-shrink-0 yst-h-7 yst-w-7 yst-rounded-full"}),(0,u.jsxs)("div",{className:"yst-flex yst-flex-col yst-w-full yst-gap-y-1",children:[(0,u.jsx)(le.SkeletonLoader,{className:"yst-h-3 yst-w-1/3"}),(0,u.jsx)(le.SkeletonLoader,{className:"yst-h-2.5 yst-w-10/12"})]})]}),(0,u.jsx)(le.SkeletonLoader,{className:"yst-h-4 yst-w-full yst-mt-6 yst-mb-4"}),(0,u.jsx)(le.SkeletonLoader,{className:"yst-h-3 yst-w-full"}),(0,u.jsx)(le.SkeletonLoader,{className:"yst-h-3 yst-w-10/12 yst-mt-2.5"})]}),lt=({className:e="",progress:s,max:t,score:r})=>{const o=(0,l.useMemo)((()=>(e=>e>=7?"yst-score-good":e>=5?"yst-score-ok":"yst-score-bad")(r)),[r]);return(0,u.jsx)(le.ProgressBar,{className:ke()("yst-length-progress-bar",o,e),progress:s,min:0,max:t})};lt.propTypes={className:a().string,progress:a().number.isRequired,max:a().number.isRequired,score:a().number.isRequired};const ct=({idSuffix:e,mode:t,onChange:r,disabled:o})=>{const i=(0,l.useCallback)((({target:e})=>e.checked&&r(e.value)),[r]);return(0,u.jsxs)(le.RadioGroup,{id:`yst-ai-mode__${e}`,className:"yst-ai-mode yst-pt-2 lg:yst-pt-0",disabled:o,children:[(0,u.jsx)(le.RadioGroup.Radio,{id:`yst-ai-mode__mobile__${e}`,name:`yst-ai-mode__${e}`,label:(0,s.__)("Mobile result","wordpress-seo"),value:We.mobile,checked:t===We.mobile,onChange:i,disabled:o}),(0,u.jsx)(le.RadioGroup.Radio,{id:`yst-ai-mode__desktop__${e}`,name:`yst-ai-mode__${e}`,label:(0,s.__)("Desktop result","wordpress-seo"),value:We.desktop,checked:t===We.desktop,onChange:i,disabled:o})]})};ct.propTypes={idSuffix:a().string.isRequired,mode:a().oneOf(Object.keys(We)).isRequired,onChange:a().func.isRequired,disabled:a().bool.isRequired};const dt=({title:e,description:t,showPreviewSkeleton:r})=>(0,u.jsxs)("div",{children:[(0,u.jsx)("div",{className:"yst-flex yst-mb-6",children:(0,u.jsx)(le.Label,{as:"span",className:"yst-flex-grow yst-cursor-default",children:(0,s.__)("Social preview","wordpress-seo")})}),r?(0,u.jsx)(or,{}):(0,u.jsx)(rr,{title:e,description:t})]});dt.propTypes={title:a().string.isRequired,description:a().string.isRequired,showPreviewSkeleton:a().bool.isRequired};const ut=d().p`
	color: #606770;
	flex-shrink: 0;
	font-size: 12px;
	line-height: 16px;
	overflow: hidden;
	padding: 0;
	text-overflow: ellipsis;
	text-transform: uppercase;
	white-space: nowrap;
	margin: 0;
	position: ${e=>"landscape"===e.mode?"relative":"static"};
`,pt=e=>{const{siteUrl:s}=e;return(0,u.jsxs)(ce.Fragment,{children:[(0,u.jsx)("span",{className:"screen-reader-text",children:s}),(0,u.jsx)(ut,{"aria-hidden":"true",children:(0,u.jsx)("span",{children:s})})]})};pt.propTypes={siteUrl:a().string.isRequired};const ht=pt,mt=window.yoast.socialMetadataForms,gt=d().img`
	&& {
		max-width: ${e=>e.width}px;
		height: ${e=>e.height}px;
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		max-width: none;
	}
`,yt=d().img`
	&& {
		height: 100%;
		position: absolute;
		width: 100%;
		object-fit: cover;
	}
`,xt=d().div`
	padding-bottom: ${e=>e.aspectRatio}%;
`,wt=({imageProps:e,width:s,height:t,imageMode:r="landscape"})=>"landscape"===r?(0,u.jsx)(xt,{aspectRatio:e.aspectRatio,children:(0,u.jsx)(yt,{src:e.src,alt:e.alt})}):(0,u.jsx)(gt,{src:e.src,alt:e.alt,width:s,height:t,imageProperties:e});function bt(e,s,t){return"landscape"===t?{widthRatio:s.width/e.landscapeWidth,heightRatio:s.height/e.landscapeHeight}:"portrait"===t?{widthRatio:s.width/e.portraitWidth,heightRatio:s.height/e.portraitHeight}:{widthRatio:s.width/e.squareWidth,heightRatio:s.height/e.squareHeight}}function ft(e,s){return s.widthRatio<=s.heightRatio?{width:Math.round(e.width/s.widthRatio),height:Math.round(e.height/s.widthRatio)}:{width:Math.round(e.width/s.heightRatio),height:Math.round(e.height/s.heightRatio)}}async function vt(e,s,t=!1){const r=await function(e){return new Promise(((s,t)=>{const r=new Image;r.onload=()=>{s({width:r.width,height:r.height})},r.onerror=t,r.src=e}))}(e);let o=t?"landscape":"square";"Facebook"===s&&(o=(0,mt.determineFacebookImageMode)(r));const i=function(e){return"Twitter"===e?mt.TWITTER_IMAGE_SIZES:mt.FACEBOOK_IMAGE_SIZES}(s),n=function(e,s,t){return"square"===t&&s.width===s.height?{width:e.squareWidth,height:e.squareHeight}:ft(s,bt(e,s,t))}(i,r,o);return{mode:o,height:n.height,width:n.width}}async function kt(e,s,t=!1){try{return{imageProperties:await vt(e,s,t),status:"loaded"}}catch(e){return{imageProperties:null,status:"errored"}}}wt.propTypes={imageProps:a().shape({src:a().string.isRequired,alt:a().string.isRequired,aspectRatio:a().number.isRequired}).isRequired,width:a().number.isRequired,height:a().number.isRequired,imageMode:a().string};const _t=d().div`
	position: relative;
	${e=>"landscape"===e.mode?`max-width: ${e.dimensions.width}`:`min-width: ${e.dimensions.width}; height: ${e.dimensions.height}`};
	overflow: hidden;
	background-color: ${M.colors.$color_white};
`,jt=d().div`
	box-sizing: border-box;
	max-width: ${mt.FACEBOOK_IMAGE_SIZES.landscapeWidth}px;
	height: ${mt.FACEBOOK_IMAGE_SIZES.landscapeHeight}px;
	background-color: ${M.colors.$color_grey};
	border-style: dashed;
	border-width: 1px;
	// We're not using standard colors to increase contrast for accessibility.
	color: #006DAC;
	// We're not using standard colors to increase contrast for accessibility.
	background-color: #f1f1f1;
	display: flex;
	justify-content: center;
	align-items: center;
	text-decoration: underline;
	font-size: 14px;
	cursor: pointer;
`;class St extends ce.Component{constructor(e){super(e),this.state={imageProperties:null,status:"loading"},this.socialMedium="Facebook",this.handleFacebookImage=this.handleFacebookImage.bind(this),this.setState=this.setState.bind(this)}async handleFacebookImage(){try{const e=await kt(this.props.src,this.socialMedium);this.setState(e),this.props.onImageLoaded(e.imageProperties.mode||"landscape")}catch(e){this.setState(e),this.props.onImageLoaded("landscape")}}componentDidUpdate(e){e.src!==this.props.src&&this.handleFacebookImage()}componentDidMount(){this.handleFacebookImage()}retrieveContainerDimensions(e){switch(e){case"square":return{height:mt.FACEBOOK_IMAGE_SIZES.squareHeight+"px",width:mt.FACEBOOK_IMAGE_SIZES.squareWidth+"px"};case"portrait":return{height:mt.FACEBOOK_IMAGE_SIZES.portraitHeight+"px",width:mt.FACEBOOK_IMAGE_SIZES.portraitWidth+"px"};case"landscape":return{height:mt.FACEBOOK_IMAGE_SIZES.landscapeHeight+"px",width:mt.FACEBOOK_IMAGE_SIZES.landscapeWidth+"px"}}}render(){const{imageProperties:e,status:t}=this.state;if("loading"===t||""===this.props.src||"errored"===t)return(0,u.jsx)(jt,{onClick:this.props.onImageClick,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave,children:(0,s.__)("Select image","wordpress-seo")});const r=this.retrieveContainerDimensions(e.mode);return(0,u.jsx)(_t,{mode:e.mode,dimensions:r,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave,onClick:this.props.onImageClick,children:(0,u.jsx)(wt,{imageProps:{src:this.props.src,alt:this.props.alt,aspectRatio:mt.FACEBOOK_IMAGE_SIZES.aspectRatio},width:e.width,height:e.height,imageMode:e.mode})})}}St.propTypes={src:a().string,alt:a().string,onImageLoaded:a().func,onImageClick:a().func,onMouseEnter:a().func,onMouseLeave:a().func},St.defaultProps={src:"",alt:"",onImageLoaded:i.noop,onImageClick:i.noop,onMouseEnter:i.noop,onMouseLeave:i.noop};const Ct=St,Rt=d().span`
	line-height: ${20}px;
	min-height : ${20}px;
	color: #1d2129;
	font-weight: 600;
	overflow: hidden;
	font-size: 16px;
	margin: 3px 0 0;
	letter-spacing: normal;
	white-space: normal;
	flex-shrink: 0;
	cursor: pointer;
	display: -webkit-box;
	-webkit-line-clamp: ${e=>e.lineCount};
	-webkit-box-orient: vertical;
	overflow: hidden;
`,Et=d().p`
	line-height: ${16}px;
	min-height : ${16}px;
	color: #606770;
	font-size: 14px;
	padding: 0;
	text-overflow: ellipsis;
	margin: 3px 0 0 0;
	display: -webkit-box;
	cursor: pointer;
	-webkit-line-clamp: ${e=>e.lineCount};
	-webkit-box-orient: vertical;
	overflow: hidden;

	@media all and ( max-width: ${e=>e.maxWidth} ) {
		display: none;
	}
`,Lt=e=>{switch(e){case"landscape":return"527px";case"square":case"portrait":return"369px";default:return"476px"}},Nt=d().div`
	box-sizing: border-box;
	display: flex;
	flex-direction: ${e=>"landscape"===e.mode?"column":"row"};
	background-color: #f2f3f5;
	max-width: 527px;
`,Mt=d().div`
	box-sizing: border-box;
	background-color: #f2f3f5;
	margin: 0;
	padding: 10px 12px;
	position: relative;
	border-bottom: ${e=>"landscape"===e.mode?"":"1px solid #dddfe2"};
	border-top: ${e=>"landscape"===e.mode?"":"1px solid #dddfe2"};
	border-right: ${e=>"landscape"===e.mode?"":"1px solid #dddfe2"};
	border: ${e=>"landscape"===e.mode?"1px solid #dddfe2":""};
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	justify-content: ${e=>"landscape"===e.mode?"flex-start":"center"};
	font-size: 12px;
	overflow: hidden;
`;class It extends ce.Component{constructor(e){super(e),this.state={imageMode:null,maxLineCount:0,descriptionLineCount:0},this.facebookTitleRef=de().createRef(),this.onImageLoaded=this.onImageLoaded.bind(this),this.onImageEnter=this.props.onMouseHover.bind(this,"image"),this.onTitleEnter=this.props.onMouseHover.bind(this,"title"),this.onDescriptionEnter=this.props.onMouseHover.bind(this,"description"),this.onLeave=this.props.onMouseHover.bind(this,""),this.onSelectTitle=this.props.onSelect.bind(this,"title"),this.onSelectDescription=this.props.onSelect.bind(this,"description")}onImageLoaded(e){this.setState({imageMode:e})}getTitleLineCount(){return this.facebookTitleRef.current.offsetHeight/20}maybeSetMaxLineCount(){const{imageMode:e,maxLineCount:s}=this.state,t="landscape"===e?2:5;t!==s&&this.setState({maxLineCount:t})}maybeSetDescriptionLineCount(){const{descriptionLineCount:e,maxLineCount:s,imageMode:t}=this.state,r=this.getTitleLineCount();let o=s-r;"portrait"===t&&(o=5===r?0:4),o!==e&&this.setState({descriptionLineCount:o})}componentDidUpdate(){this.maybeSetMaxLineCount(),this.maybeSetDescriptionLineCount()}render(){const{imageMode:e,maxLineCount:s,descriptionLineCount:t}=this.state;return(0,u.jsxs)(Nt,{id:"facebookPreview",mode:e,children:[(0,u.jsx)(Ct,{src:this.props.imageUrl||this.props.imageFallbackUrl,alt:this.props.alt,onImageLoaded:this.onImageLoaded,onImageClick:this.props.onImageClick,onMouseEnter:this.onImageEnter,onMouseLeave:this.onLeave}),(0,u.jsxs)(Mt,{mode:e,children:[(0,u.jsx)(ht,{siteUrl:this.props.siteUrl,mode:e}),(0,u.jsx)(Rt,{ref:this.facebookTitleRef,onMouseEnter:this.onTitleEnter,onMouseLeave:this.onLeave,onClick:this.onSelectTitle,lineCount:s,children:this.props.title}),t>0&&(0,u.jsx)(Et,{maxWidth:Lt(e),onMouseEnter:this.onDescriptionEnter,onMouseLeave:this.onLeave,onClick:this.onSelectDescription,lineCount:t,children:this.props.description})]})]})}}It.propTypes={siteUrl:a().string.isRequired,title:a().string.isRequired,description:a().string,imageUrl:a().string,imageFallbackUrl:a().string,alt:a().string,onSelect:a().func,onImageClick:a().func,onMouseHover:a().func},It.defaultProps={description:"",alt:"",imageUrl:"",imageFallbackUrl:"",onSelect:()=>{},onImageClick:()=>{},onMouseHover:()=>{}};const Tt=It,Pt=d().div`
	text-transform: lowercase;
	color: rgb(83, 100, 113);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin: 0;
	fill: currentcolor;
	display: flex;
	flex-direction: row;
	align-items: flex-end;
`,At=e=>(0,u.jsx)(Pt,{children:(0,u.jsx)("span",{children:e.siteUrl})});At.propTypes={siteUrl:a().string.isRequired};const Ot=At,Bt=(e,s=!0)=>e?`\n\t\t\tmax-width: ${mt.TWITTER_IMAGE_SIZES.landscapeWidth}px;\n\t\t\t${s?"border-bottom: 1px solid #E1E8ED;":""}\n\t\t\tborder-radius: 14px 14px 0 0;\n\t\t\t`:`\n\t\twidth: ${mt.TWITTER_IMAGE_SIZES.squareWidth}px;\n\t\t${s?"border-right: 1px solid #E1E8ED;":""}\n\t\tborder-radius: 14px 0 0 14px;\n\t\t`,Ft=d().div`
	position: relative;
	box-sizing: content-box;
	overflow: hidden;
	background-color: #e1e8ed;
	flex-shrink: 0;
	${e=>Bt(e.isLarge)}
`,$t=d().div`
	display: flex;
	justify-content: center;
	align-items: center;
	box-sizing: border-box;
	max-width: 100%;
	margin: 0;
	padding: 1em;
	text-align: center;
	font-size: 1rem;
	${e=>Bt(e.isLarge,!1)}
`,qt=d()($t)`
	${e=>e.isLarge&&`height: ${mt.TWITTER_IMAGE_SIZES.landscapeHeight}px;`}
	border-top-left-radius: 14px;
	${e=>e.isLarge?"border-top-right-radius":"border-bottom-left-radius"}: 14px;
	border-style: dashed;
	border-width: 1px;
	// We're not using standard colors to increase contrast for accessibility.
	color: #006DAC;
	// We're not using standard colors to increase contrast for accessibility.
	background-color: #f1f1f1;
	text-decoration: underline;
	font-size: 14px;
	cursor: pointer;
`;class Ut extends de().Component{constructor(e){super(e),this.state={status:"loading"},this.socialMedium="Twitter",this.handleTwitterImage=this.handleTwitterImage.bind(this),this.setState=this.setState.bind(this)}async handleTwitterImage(){if(null===this.props.src)return;const e=await kt(this.props.src,this.socialMedium,this.props.isLarge);this.setState(e)}componentDidUpdate(e){e.src!==this.props.src&&this.handleTwitterImage()}componentDidMount(){this.handleTwitterImage()}render(){const{status:e,imageProperties:t}=this.state;return"loading"===e||""===this.props.src||"errored"===e?(0,u.jsx)(qt,{isLarge:this.props.isLarge,onClick:this.props.onImageClick,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave,children:(0,s.__)("Select image","wordpress-seo")}):(0,u.jsx)(Ft,{isLarge:this.props.isLarge,onClick:this.props.onImageClick,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave,children:(0,u.jsx)(wt,{imageProps:{src:this.props.src,alt:this.props.alt,aspectRatio:mt.TWITTER_IMAGE_SIZES.aspectRatio},width:t.width,height:t.height,imageMode:t.mode})})}}Ut.propTypes={isLarge:a().bool.isRequired,src:a().string,alt:a().string,onImageClick:a().func,onMouseEnter:a().func,onMouseLeave:a().func},Ut.defaultProps={src:"",alt:"",onMouseEnter:i.noop,onImageClick:i.noop,onMouseLeave:i.noop};const Wt=d().div`
	display: flex;
	flex-direction: column;
	padding: 12px;
	justify-content: center;
	margin: 0;
	box-sizing: border-box;
	flex: auto;
	min-width: 0px;
	gap:2px;
	> * {
		line-height:20px;
		min-height:20px;
		font-size:15px;
    }
`,Ht=e=>(0,u.jsx)(Wt,{children:e.children});Ht.propTypes={children:a().array.isRequired};const zt=Ht,Kt=d().p`
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin: 0;
	color: rgb(15, 20, 25);
	cursor: pointer;
`,Dt=d().p`
	max-height: 55px;
	overflow: hidden;
	text-overflow: ellipsis;
	margin: 0;
	color: rgb(83, 100, 113);
	display: -webkit-box;
	cursor: pointer;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;

	@media all and ( max-width: ${mt.TWITTER_IMAGE_SIZES.landscapeWidth}px ) {
		display: none;
	}
`,Gt=d().div`
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", sans-serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 20px;
	max-width: 507px;
	border: 1px solid #E1E8ED;
	box-sizing: border-box;
	border-radius: 14px;
	color: #292F33;
	background: #FFFFFF;
	text-overflow: ellipsis;
	display: flex;

	&:hover {
		background: #f5f8fa;
		border: 1px solid rgba(136,153,166,.5);
	}
`,Yt=d()(Gt)`
	flex-direction: column;
	max-height: 370px;
`,Vt=d()(Gt)`
	flex-direction: row;
	height: 125px;
`;class Zt extends ce.Component{constructor(e){super(e),this.onImageEnter=this.props.onMouseHover.bind(this,"image"),this.onTitleEnter=this.props.onMouseHover.bind(this,"title"),this.onDescriptionEnter=this.props.onMouseHover.bind(this,"description"),this.onLeave=this.props.onMouseHover.bind(this,""),this.onSelectTitle=this.props.onSelect.bind(this,"title"),this.onSelectDescription=this.props.onSelect.bind(this,"description")}render(){const{isLarge:e,imageUrl:s,imageFallbackUrl:t,alt:r,title:o,description:i,siteUrl:n}=this.props,a=e?Yt:Vt;return(0,u.jsxs)(a,{id:"twitterPreview",children:[(0,u.jsx)(Ut,{src:s||t,alt:r,isLarge:e,onImageClick:this.props.onImageClick,onMouseEnter:this.onImageEnter,onMouseLeave:this.onLeave}),(0,u.jsxs)(zt,{children:[(0,u.jsx)(Ot,{siteUrl:n}),(0,u.jsx)(Kt,{onMouseEnter:this.onTitleEnter,onMouseLeave:this.onLeave,onClick:this.onSelectTitle,children:o}),(0,u.jsx)(Dt,{onMouseEnter:this.onDescriptionEnter,onMouseLeave:this.onLeave,onClick:this.onSelectDescription,children:i})]})]})}}Zt.propTypes={siteUrl:a().string.isRequired,title:a().string.isRequired,description:a().string,isLarge:a().bool,imageUrl:a().string,imageFallbackUrl:a().string,alt:a().string,onSelect:a().func,onImageClick:a().func,onMouseHover:a().func},Zt.defaultProps={description:"",alt:"",imageUrl:"",imageFallbackUrl:"",onSelect:()=>{},onImageClick:()=>{},onMouseHover:()=>{},isLarge:!0};const Qt=Zt,Jt=window.yoast.replacementVariableEditor;class Xt extends ce.Component{constructor(e){super(e),this.state={activeField:"",hoveredField:""},this.SocialPreview="Social"===e.socialMediumName?Tt:Qt,this.setHoveredField=this.setHoveredField.bind(this),this.setActiveField=this.setActiveField.bind(this),this.setEditorRef=this.setEditorRef.bind(this),this.setEditorFocus=this.setEditorFocus.bind(this)}setHoveredField(e){e!==this.state.hoveredField&&this.setState({hoveredField:e})}setActiveField(e){e!==this.state.activeField&&this.setState({activeField:e},(()=>this.setEditorFocus(e)))}setEditorFocus(e){switch(e){case"title":this.titleEditorRef.focus();break;case"description":this.descriptionEditorRef.focus()}}setEditorRef(e,s){switch(e){case"title":this.titleEditorRef=s;break;case"description":this.descriptionEditorRef=s}}render(){const{onDescriptionChange:e,onTitleChange:s,onSelectImageClick:t,onRemoveImageClick:o,socialMediumName:i,imageWarnings:n,siteUrl:a,description:l,descriptionInputPlaceholder:c,descriptionPreviewFallback:d,imageUrl:p,imageFallbackUrl:h,alt:m,title:g,titleInputPlaceholder:y,titlePreviewFallback:x,replacementVariables:w,recommendedReplacementVariables:b,applyReplacementVariables:f,onReplacementVariableSearchChange:v,isPremium:k,isLarge:_,socialPreviewLabel:j,idSuffix:S,activeMetaTabId:C}=this.props,R=f({title:g||x,description:l||d});return(0,u.jsxs)(de().Fragment,{children:[j&&(0,u.jsx)(r.SimulatedLabel,{children:j}),(0,u.jsx)(this.SocialPreview,{onMouseHover:this.setHoveredField,onSelect:this.setActiveField,onImageClick:t,siteUrl:a,title:R.title,description:R.description,imageUrl:p,imageFallbackUrl:h,alt:m,isLarge:_,activeMetaTabId:C}),(0,u.jsx)(mt.SocialMetadataPreviewForm,{onDescriptionChange:e,socialMediumName:i,title:g,titleInputPlaceholder:y,onRemoveImageClick:o,imageSelected:!!p,imageUrl:p,imageFallbackUrl:h,onTitleChange:s,onSelectImageClick:t,description:l,descriptionInputPlaceholder:c,imageWarnings:n,replacementVariables:w,recommendedReplacementVariables:b,onReplacementVariableSearchChange:v,onMouseHover:this.setHoveredField,hoveredField:this.state.hoveredField,onSelect:this.setActiveField,activeField:this.state.activeField,isPremium:k,setEditorRef:this.setEditorRef,idSuffix:S})]})}}Xt.propTypes={title:a().string.isRequired,onTitleChange:a().func.isRequired,description:a().string.isRequired,onDescriptionChange:a().func.isRequired,imageUrl:a().string.isRequired,imageFallbackUrl:a().string.isRequired,onSelectImageClick:a().func.isRequired,onRemoveImageClick:a().func.isRequired,socialMediumName:a().string.isRequired,alt:a().string,isPremium:a().bool,imageWarnings:a().array,isLarge:a().bool,siteUrl:a().string,descriptionInputPlaceholder:a().string,titleInputPlaceholder:a().string,descriptionPreviewFallback:a().string,titlePreviewFallback:a().string,replacementVariables:Jt.replacementVariablesShape,recommendedReplacementVariables:Jt.recommendedReplacementVariablesShape,applyReplacementVariables:a().func,onReplacementVariableSearchChange:a().func,socialPreviewLabel:a().string,idSuffix:a().string,activeMetaTabId:a().string},Xt.defaultProps={imageWarnings:[],recommendedReplacementVariables:[],replacementVariables:[],isPremium:!1,isLarge:!0,siteUrl:"",descriptionInputPlaceholder:"",titleInputPlaceholder:"",descriptionPreviewFallback:"",titlePreviewFallback:"",alt:"",applyReplacementVariables:e=>e,onReplacementVariableSearchChange:null,socialPreviewLabel:"",idSuffix:"",activeMetaTabId:""};const er={},sr=(e,s,{log:t=console.warn}={})=>{er[e]||(er[e]=!0,t(s))},tr=(e,s=i.noop)=>{const t={};for(const r in e)Object.hasOwn(e,r)&&Object.defineProperty(t,r,{set:t=>{e[r]=t,s("set",r,t)},get:()=>(s("get",r),e[r])});return t};tr({squareWidth:125,squareHeight:125,landscapeWidth:506,landscapeHeight:265,aspectRatio:50.2},((e,s)=>sr(`@yoast/social-metadata-previews/TWITTER_IMAGE_SIZES/${e}/${s}`,`[@yoast/social-metadata-previews] "TWITTER_IMAGE_SIZES.${s}" is deprecated and will be removed in the future, please use this from @yoast/social-metadata-forms instead.`))),tr({squareWidth:158,squareHeight:158,landscapeWidth:527,landscapeHeight:273,portraitWidth:158,portraitHeight:237,aspectRatio:52.2,largeThreshold:{width:446,height:233}},((e,s)=>sr(`@yoast/social-metadata-previews/FACEBOOK_IMAGE_SIZES/${e}/${s}`,`[@yoast/social-metadata-previews] "FACEBOOK_IMAGE_SIZES.${s}" is deprecated and will be removed in the future, please use this from @yoast/social-metadata-forms instead.`)));const rr=({title:e,description:s})=>{const t=(0,k.useSelect)((e=>e(Ie).getSiteUrl()),[]),r=(0,k.useSelect)((e=>e(Ie).getFacebookImageUrl()),[]),o=(0,k.useSelect)((e=>e(Ie).getEditorDataImageFallback()),[]),n=(0,k.useSelect)((e=>e(Ie).getFacebookAltText()),[]);return(0,u.jsx)("div",{className:"yst-bg-slate-200 yst-p-2 yst--mx-6 yst-mx-auto",children:(0,u.jsx)(Tt,{title:e,description:s,siteUrl:t,imageUrl:r,imageFallbackUrl:o,alt:n,onSelect:i.noop,onImageClick:i.noop,onMouseHover:i.noop})})};rr.propTypes={title:a().string.isRequired,description:a().string.isRequired};const or=()=>(0,u.jsxs)("div",{className:"yst-flex yst-flex-col yst-w-[527px] yst-border yst-mx-auto",children:[(0,u.jsx)(le.SkeletonLoader,{className:"yst-h-[273px] yst-w-full yst-rounded-none yst-border yst-border-dashed"}),(0,u.jsxs)("div",{className:"yst-w-full yst-p-4 yst-space-y-1",children:[(0,u.jsx)(le.SkeletonLoader,{className:"yst-h-3 yst-w-1/3"}),(0,u.jsx)(le.SkeletonLoader,{className:"yst-h-5 yst-w-10/12"}),(0,u.jsx)(le.SkeletonLoader,{className:"yst-h-3 yst-w-full"})]})]}),ir=({children:e,onRetry:t})=>{const{onClose:r}=(0,le.useModalContext)();return(0,u.jsxs)(l.Fragment,{children:[e,(0,u.jsxs)("div",{className:"yst-mt-6 yst-mb-1 yst-flex yst-space-x-3 rtl:yst-space-x-reverse yst-place-content-end",children:[(0,u.jsx)(le.Button,{variant:"secondary",onClick:r,children:(0,s.__)("Close","wordpress-seo")}),(0,u.jsx)(le.Button,{variant:"primary",onClick:t,children:(0,s.__)("Try again","wordpress-seo")})]})]})};ir.propTypes={children:a().node.isRequired,onRetry:a().func.isRequired};const nr=({errorCode:e,errorIdentifier:s,invalidSubscriptions:t=[],showActions:r=!1,onRetry:o=i.noop,errorMessage:n=""})=>{switch(e){case 400:switch(s){case"AI_CONTENT_FILTER":return(0,u.jsx)(Ds,{});case"NOT_ENOUGH_CONTENT":return(0,u.jsx)(Us,{});case"SITE_UNREACHABLE":return(0,u.jsx)(Vs,{});case"WP_HTTP_REQUEST_ERROR":return r?(0,u.jsx)(ir,{onRetry:o,children:(0,u.jsx)(Gs,{errorMessage:n})}):(0,u.jsx)(Gs,{errorMessage:n});default:return r?(0,u.jsx)(ir,{onRetry:o,children:(0,u.jsx)(qs,{})}):(0,u.jsx)(qs,{})}case 402:return(0,u.jsx)(zs,{invalidSubscriptions:t});case 408:return r?(0,u.jsx)(ir,{onRetry:o,children:(0,u.jsx)(Ks,{})}):(0,u.jsx)(Ks,{});case 429:return"USAGE_LIMIT_REACHED"===s?(0,u.jsx)(zs,{invalidSubscriptions:t}):(0,u.jsx)(Hs,{});case 410:return(0,u.jsx)(Ys,{});default:return r?(0,u.jsx)(ir,{onRetry:o,children:(0,u.jsx)(qs,{})}):(0,u.jsx)(qs,{})}};nr.propTypes={errorCode:a().number.isRequired,errorIdentifier:a().string.isRequired,invalidSubscriptions:a().array,showActions:a().bool,onRetry:a().func,errorMessage:a().string};const ar=a().shape({value:a().string.isRequired,label:a().node.isRequired}),lr=({id:e,name:s,suggestion:t,isChecked:r,onChange:o})=>{const i=(0,l.useCallback)((()=>o(t.value)),[t,o]);return(0,u.jsxs)("label",{htmlFor:e,className:ke()("yst-flex yst-p-4 yst-items-center yst-border first:yst-rounded-t-md last:yst-rounded-b-md",r&&"yst-z-10 yst-border-primary-500"),children:[(0,u.jsx)("input",{type:"radio",id:e,name:s,className:"yst-radio__input",value:t.value,checked:r,onChange:i}),(0,u.jsx)("div",{className:ke()("yst-label yst-radio__label yst-flex yst-flex-wrap yst-items-center",!r&&"yst-text-slate-600"),children:t.label})]})};lr.propTypes={id:a().string.isRequired,name:a().string.isRequired,suggestion:ar.isRequired,isChecked:a().bool.isRequired,onChange:a().func.isRequired};const cr=({idSuffix:e,suggestions:s,selected:t,onChange:r})=>(0,u.jsx)("div",{children:(0,u.jsx)(le.RadioGroup,{className:"yst-suggestions-radio-group yst-flex yst-flex-col",id:`yst-ai-suggestions-radio-group__${e}`,children:s.map(((s,o)=>(0,u.jsx)(lr,{id:`yst-ai-suggestions-radio-${e}__${o}`,name:`ai-suggestion__${e}`,isChecked:s.value===t,onChange:r,suggestion:s},`yst-ai-suggestions-radio-${e}__${o}`)))})});cr.propTypes={idSuffix:a().string.isRequired,suggestions:a().arrayOf(ar).isRequired,selected:a().string.isRequired,onChange:a().func.isRequired};const dr=[["yst-h-3 yst-w-full","yst-mt-2.5 yst-h-3 yst-w-9/12"],["yst-h-3 yst-w-full","yst-mt-2.5 yst-h-3 yst-w-7/12"],["yst-h-3 yst-w-full","yst-mt-2.5 yst-h-3 yst-w-10/12"],["yst-h-3 yst-w-full","yst-mt-2.5 yst-h-3 yst-w-11/12"],["yst-h-3 yst-w-full","yst-mt-2.5 yst-h-3 yst-w-8/12"]],ur=({suggestionClassNames:e=dr})=>(0,u.jsx)("div",{className:"yst-flex yst-flex-col yst--space-y-[1px]",children:e.map(((e,s)=>(0,u.jsxs)("div",{className:"yst-flex yst-p-4 yst-gap-x-3 yst-items-center yst-border first:yst-rounded-t-md last:yst-rounded-b-md",children:[(0,u.jsx)("input",{type:"radio",disabled:!0,className:"yst-my-0.5"}),(0,u.jsx)("div",{className:"yst-flex yst-flex-col yst-w-full",children:e.map(((e,t)=>(0,u.jsx)(le.SkeletonLoader,{className:e},`yst-ai-suggestion-radio-skeleton-${s}__${t}`)))})]},`yst-ai-suggestion-radio-skeleton__${s}`)))});ur.propTypes={suggestionClassNames:a().arrayOf(a().arrayOf(a().string))};const pr="ai_generator_tip_notification",hr=()=>{const e=(0,k.useSelect)((e=>e(Ie).isAlertDismissed(pr)),[]),t=(0,k.useSelect)((e=>e(Ie).getEditorDataContent()),[]),r=(0,k.useSelect)((e=>e(Ie).getIsWooProductEntity()),[]),[o,,,i]=(0,le.useToggleState)(!1),{editType:n,contentType:a}=rs(),{dismissAlert:c}=(0,k.useDispatch)(Ie),d=(0,l.useCallback)((()=>{c(pr)}),[c]),p=(0,l.useMemo)((()=>n===Be?(0,s.__)("%1$sTip%2$s: Improve the accuracy of your generated AI descriptions by writing more content in your page.","wordpress-seo"):(0,s.__)("%1$sTip%2$s: Improve the accuracy of your generated AI titles by writing more content in your page.","wordpress-seo")
/* translators: %1$s and %2$s expand to opening and closing of a span in order to emphasise the word. */),[n]),h=(0,l.useMemo)((()=>((e,s)=>e||s===$e?150:300)(r,a)),[a,r]);return e||o||t.length>h?null:(0,u.jsxs)(le.Notifications.Notification,{id:"ai-generator-content-tip",variant:"info",dismissScreenReaderLabel:(0,s.__)("Dismiss","wordpress-seo"),children:[he((0,s.sprintf)(p,"<span>","</span>"),{span:(0,u.jsx)("span",{className:"yst-font-medium yst-text-slate-800"})}),(0,u.jsxs)("div",{className:"yst-flex yst-mt-3 yst--ms-3 yst-gap-1",children:[(0,u.jsx)(le.Button,{type:"button",variant:"tertiary",onClick:d,children:(0,s.__)("Don’t show again","wordpress-seo")}),(0,u.jsx)(le.Button,{type:"button",variant:"tertiary",className:"yst-text-slate-800",onClick:i,children:(0,s.__)("Dismiss","wordpress-seo")})]})]})},mr=({title:e,description:t,showPreviewSkeleton:r})=>(0,u.jsxs)("div",{children:[(0,u.jsx)("div",{className:"yst-flex yst-mb-6",children:(0,u.jsx)(le.Label,{as:"span",className:"yst-flex-grow yst-cursor-default",children:(0,s.__)("X preview","wordpress-seo")})}),r?(0,u.jsx)(yr,{}):(0,u.jsx)(gr,{title:e,description:t})]});mr.propTypes={title:a().string.isRequired,description:a().string.isRequired,showPreviewSkeleton:a().bool.isRequired};const gr=({title:e,description:s})=>{const t=(0,k.useSelect)((e=>e(Ie).getSiteUrl()),[]),r=(0,k.useSelect)((e=>e(Ie).getTwitterImageUrl()),[]),o=(0,k.useSelect)((e=>e(Ie).getFacebookImageUrl()),[]),n=(0,k.useSelect)((e=>e(Ie).getEditorDataImageFallback()),[]),a=(0,k.useSelect)((e=>e(Ie).getTwitterImageType()),[]),l=(0,k.useSelect)((e=>e(Ie).getTwitterAltText()),[]);return(0,u.jsx)("div",{className:"yst-bg-slate-200 yst-p-2 yst--mx-6",children:(0,u.jsx)(Qt,{title:e,description:s,siteUrl:t,imageUrl:r,imageFallbackUrl:o||n,isLarge:"summary"!==a,alt:l,onSelect:i.noop,onImageClick:i.noop,onMouseHover:i.noop})})};gr.propTypes={title:a().string.isRequired,description:a().string.isRequired};const yr=()=>(0,u.jsxs)("div",{className:"yst-flex yst-flex-col yst-max-h-[370px] yst-w-[507px] yst-border yst-rounded-t-[14px] yst-overflow-hidden yst-mx-auto",children:[(0,u.jsx)(le.SkeletonLoader,{className:"yst-h-[265px] yst-w-full yst-rounded-none yst-border yst-border-dashed"}),(0,u.jsxs)("div",{className:"yst-w-full yst-p-4 yst-space-y-1",children:[(0,u.jsx)(le.SkeletonLoader,{className:"yst-h-3 yst-w-1/3"}),(0,u.jsx)(le.SkeletonLoader,{className:"yst-h-5 yst-w-10/12"}),(0,u.jsx)(le.SkeletonLoader,{className:"yst-h-3 yst-w-full"})]})]}),xr="yst-mt-1 yst-mb-3",wr="yst-flex yst-justify-end yst--me-8 yst-gap-3 yst--ms-2",br=({onClose:e})=>(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("p",{className:xr,children:(0,s.__)("As long as this is a beta feature, you get unlimited sparks.","wordpress-seo")}),(0,u.jsx)("div",{className:wr,children:(0,u.jsx)(le.Button,{type:"button",variant:"primary",size:"small",onClick:e,children:(0,s.__)("Got it!","wordpress-seo")})})]}),fr=({onClose:e,upsellLink:t,isWooProductEntity:r=!1,ctbId:o="f6a84663-465f-4cb5-8ba5-f7a6d72224b2"})=>{const i=(0,le.useSvgAria)();return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("p",{className:xr,children:(0,s.sprintf)(/* translators: %s expands to Yoast SEO Premium or Yoast WooCommerce SEO. */
(0,s.__)("Keep the momentum going, unlock unlimited sparks with %s!","wordpress-seo"),r?"Yoast WooCommerce SEO":"Yoast SEO Premium")}),(0,u.jsxs)("div",{className:wr,children:[(0,u.jsx)(le.Button,{type:"button",variant:"tertiary",size:"small",onClick:e,children:(0,s.__)("Close","wordpress-seo")}),(0,u.jsxs)(le.Button,{as:"a",size:"small",variant:"upsell",href:t,target:"_blank",rel:"noopener noreferrer","data-action":"load-nfd-ctb","data-ctb-id":o,children:[(0,u.jsx)(be,{className:"yst-w-4 yst-h-4 yst--ms-1 yst-me-2 yst-shrink-0",...i}),(0,s.sprintf)(/* translators: %1$s expands to Yoast SEO Premium or Yoast WooCommerce SEO. */
(0,s.__)("Unlock with %1$s","wordpress-seo"),r?"Yoast WooCommerce SEO":"Yoast SEO Premium"),(0,u.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */
(0,s.__)("(Opens in a new browser tab)","wordpress-seo")})]})]})]})},vr=({className:e=""})=>{const{isUsageCountLimitReached:t,usageCount:r,usageCountLimit:o,premiumUpsellLink:i,wooUpsellLink:n,isWooProductEntity:a,hasValidPremiumSubscription:c,hasValidWooSubscription:d}=(0,k.useSelect)((e=>{const s=e(Me),t=e(Ie);return{isUsageCountLimitReached:s.isUsageCountLimitReached(),usageCount:s.selectUsageCount(),usageCountLimit:s.selectUsageCountLimit(),premiumUpsellLink:t.selectLink("https://yoa.st/ai-toast-out-of-free-sparks"),wooUpsellLink:t.selectLink("https://yoa.st/ai-toast-out-of-free-sparks-woo"),isWooProductEntity:t.getIsWooProductEntity(),hasValidPremiumSubscription:s.selectPremiumSubscription(),hasValidWooSubscription:s.selectWooCommerceSubscription()}}),[]),p=(0,l.useMemo)((()=>c&&!a||a&&d&&c),[c,a,d]),[h,,m,,g]=(0,le.useToggleState)(r===o);(0,l.useEffect)((()=>{m(p&&r===o||!p&&t)}),[r,o,p,t]);const y=(0,l.useMemo)((()=>a?n:i),[a,n,i]),x=(0,l.useMemo)((()=>a&&!d),[a,d]);return h&&(0,u.jsx)(le.Notifications.Notification,{id:"ai-sparks-limit",className:e,variant:"info",dismissScreenReaderLabel:(0,s.__)("Close","wordpress-seo"),title:p?(0,s.sprintf)(/* translators: %s is the number of the sparks. */
(0,s._n)("You've used %s spark this month.","You've used %s sparks this month.",o,"wordpress-seo"),o):(0,s.__)("You're out of free sparks!","wordpress-seo"),size:p?"default":"large",children:p?(0,u.jsx)(br,{onClose:g}):(0,u.jsx)(fr,{onClose:g,upsellLink:y,isWooUpsell:x})})},kr=()=>{const{previewType:e}=rs();switch(e){case Pe:return dt;case Ae:return mr;default:return rt}},_r=()=>{const{editType:e}=rs();switch(e){case Oe:return(()=>{const{previewType:e}=rs(),{updateData:s,setFacebookPreviewTitle:t,setTwitterPreviewTitle:r}=(0,k.useDispatch)(Ie);return(0,l.useMemo)((()=>{switch(e){case Te:return e=>s({title:e});case Pe:return t;case Ae:return r;default:return i.noop}}),[e,s,t,r])})();case Be:return(()=>{const{previewType:e}=rs(),{updateData:s,setFacebookPreviewDescription:t,setTwitterPreviewDescription:r}=(0,k.useDispatch)(Ie);return(0,l.useMemo)((()=>{switch(e){case Te:return e=>s({description:e});case Pe:return t;case Ae:return r;default:return i.noop}}),[e,s,t,r])})();default:return i.noop}},jr=(0,us.createSlice)({name:"suggestions",initialState:{status:He.loading,error:{code:200,message:""},entities:[],selected:""},reducers:{setLoading:e=>{e.status=He.loading},setSuccess:(e,{payload:s})=>{e.status=He.success,e.selected=s[0],e.entities.push(...s)},setError:(e,{payload:s})=>{e.status=He.error,e.error=s},setSelected:(e,{payload:s})=>{e.selected=s}}}),Sr=e=>{switch(e){case Pe:return"Facebook";case Ae:return"Twitter";default:return"Google"}},Cr=()=>{const[e,s]=(0,l.useReducer)(jr.reducer,jr.getInitialState()),{editType:t,previewType:r,postType:o,contentType:n}=rs(),a=(0,k.useSelect)((e=>e(Me).selectPromptContent()),[]),{contentLocale:c,focusKeyphrase:d,isWooCommerceActive:u,isGutenberg:p,isElementor:h}=(0,k.useSelect)((e=>({contentLocale:e(Ie).getContentLocale(),focusKeyphrase:e(Ie).getFocusKeyphrase(),isWooCommerceActive:e(Ie).getIsWooCommerceActive(),isGutenberg:e(Ie).getIsBlockEditor(),isElementor:e(Ie).getIsElementorEditor()})),[]);let m,g=X.languageProcessing.helpers.processExactMatchRequest(d).keyphrase;g.length>191&&(g=g.slice(0,191)),m=h?"elementor":p?"gutenberg":"classic";const y=((e,s,t,r)=>{const o=e===Be?"meta-description":"seo-title";let i=((e,s)=>{if(e)switch(s){case"product":return"product-";case"product_cat":case"product_tag":return"product-taxonomy-"}return""})(s,t);return i&&s||r!==$e||(i="taxonomy-"),`${i}${o}`})(t,u,o,n);return{suggestions:e,fetchSuggestions:(0,l.useCallback)((async(e=!0)=>{s(jr.actions.setLoading());const{status:t,payload:o}=await(async({endpoint:e,data:s})=>{let t;const r=1e3*(0,i.get)(window,"wpseoAiGenerator.requestTimeout",30);try{Ye&&Ye.abort(),Ye=new AbortController,Ve=!1,t=setTimeout((()=>{Ve=!0,Ye.abort()}),r);const o=await C()({path:e,method:"POST",data:s,parse:!1,signal:Ye.signal}),i=await o.json();return{status:ze,payload:i}}catch(e){if(e instanceof DOMException&&"AbortError"===e.name)return Ve?{status:Ke,payload:{message:"timeout",code:408}}:{status:De};const{message:s,missingLicenses:t,errorIdentifier:r}=await(async e=>{try{const s=e.body.getReader(),{value:t}=await s.read(),r=new TextDecoder("utf-8").decode(t);return console.error(r),JSON.parse(r)}catch(e){return{message:"Unknown"}}})(e);return{status:Ke,payload:{message:s,code:e.status||500,missingLicenses:t,errorIdentifier:r}}}finally{clearTimeout(t)}})({endpoint:"yoast/v1/ai_generator/get_suggestions/",canAbort:e,data:{type:y,prompt_content:a,focus_keyphrase:g,platform:Sr(r),language:Qe(c).replace("_","-"),editor:m}});switch(t){case De:break;case Ke:s(jr.actions.setError(o));break;case ze:s(jr.actions.setSuccess(o))}return t}),[s]),setSelectedSuggestion:(0,l.useCallback)((e=>s(jr.actions.setSelected(e))),[s])}},Rr=({editType:e,title:s,description:t})=>{const r=(0,k.useSelect)((e=>e(Ie).getDateFromSettings()),[]),o=(0,k.useSelect)((e=>e(Ie).getContentLocale()),[]),i=(0,k.useSelect)((e=>e(Ie).isCornerstoneContent()),[]),n=(0,k.useSelect)((e=>e(Ie).getIsTerm()),[]);return(0,l.useMemo)((()=>e===Be?(0,ot.getDescriptionProgress)(t,r,i,n,o):(0,ot.getTitleProgress)(s)),[e,s,t,r,i,n,o])},Er=()=>{const{editType:e,previewType:s,contentType:t}=rs(),r=(()=>{const{previewType:e}=rs();return(0,l.useMemo)((()=>{switch(e){case Te:return()=>(0,k.select)(Ie).getSnippetEditorData().title;case Pe:return(0,k.select)(Ie).getFacebookTitleOrFallback;case Ae:return(0,k.select)(Ie).getTwitterTitleOrFallback;default:return(0,i.constant)("")}}),[e])})(),o=(0,k.useSelect)((t=>t(Me).selectAppliedSuggestionFor({editType:e,previewType:s})),[e,s]);return(0,l.useMemo)((()=>{let s=r();return e===Be?s:(o&&(s=s.replace(o,Ue[t])),((e,s)=>e.includes(Ue[s])?e:Ue[s])(s,t))}),[e,r])},Lr=e=>{const{isWooProductEntity:t,isProductPost:r,hasValidWooSubscription:o}=(0,k.useSelect)((e=>{const s=e(Ie),t=e(Me);return{isWooProductEntity:s.getIsWooProductEntity(),isProductPost:s.getIsProduct(),hasValidWooSubscription:t.selectWooCommerceSubscription()}}),[]);return(0,l.useMemo)((()=>{const i={upsellLink:e.premium,upsellLabel:(0,s.sprintf)(/* translators: %1$s expands to Yoast SEO Premium. */
(0,s.__)("Unlock with %1$s","wordpress-seo"),"Yoast SEO Premium"),newToText:"Yoast SEO Premium",ctbId:"f6a84663-465f-4cb5-8ba5-f7a6d72224b2",title:(0,s.__)("Use AI to generate your titles & descriptions!","wordpress-seo")};return t&&(r&&(i.title=(0,s.__)("Generate product titles & descriptions with AI!","wordpress-seo")),o||(i.newToText="Yoast WooCommerce SEO",i.upsellLabel=(0,s.sprintf)(/* translators: %1$s expands to Yoast WooCommerce SEO. */
(0,s.__)("Unlock with %1$s","wordpress-seo"),"Yoast WooCommerce SEO"),i.upsellLink=e.woo,i.ctbId="5b32250e-e6f0-44ae-ad74-3cefc8e427f9")),i}),[t,r,e.premium,e.woo])},Nr=()=>{const{premiumUpsellLink:e,wooUpsellLink:s,learnMoreLink:t,imageLink:r,wistiaEmbedPermissionValue:o,wistiaEmbedPermissionStatus:i}=(0,k.useSelect)((e=>{const s=e(Ie);return{premiumUpsellLink:s.selectLink("https://yoa.st/ai-fix-assessments-upsell"),wooUpsellLink:s.selectLink("https://yoa.st/ai-fix-assessments-upsell-woo-seo"),learnMoreLink:s.selectLink("https://yoa.st/ai-fix-assessments-upsell-learn-more"),imageLink:s.selectImageLink("ai-fix-assessments-thumbnail.png"),wistiaEmbedPermissionValue:s.selectWistiaEmbedPermissionValue(),wistiaEmbedPermissionStatus:s.selectWistiaEmbedPermissionStatus()}}),[]),n=Lr({premium:e,woo:s}),a=(0,l.useMemo)((()=>({src:r,width:"432",height:"244"})),[r]),{setWistiaEmbedPermission:c}=(0,k.useDispatch)(Ie),d=(0,l.useMemo)((()=>({value:o,status:i,set:c})),[o,i,c]);return(0,u.jsx)(bs,{learnMoreLink:t,thumbnail:a,wistiaEmbedPermission:d,...n})},Mr=e=>{let s=[...e];return e.forEach((e=>{e.innerBlocks&&e.innerBlocks.length>0&&(s=[...s,...Mr(e.innerBlocks)])})),s};i.noop,i.noop,i.noop,window.yoast.externals.redux;const Ir=({id:e,isPremium:t=!1})=>{const o=e+"AIFixes",[i,,,n,a]=(0,le.useToggleState)(!1),{activeMarker:c,activeAIButtonId:d,editorType:p,isWooSeoUpsellPost:h}=(0,k.useSelect)((e=>({activeMarker:e("yoast-seo/editor").getActiveMarker(),activeAIButtonId:e("yoast-seo/editor").getActiveAIFixesButton(),editorType:e("yoast-seo/editor").getEditorType(),isWooSeoUpsellPost:e("yoast-seo/editor").getIsWooSeoUpsell()})),[]),m=(()=>{const e=(0,k.useSelect)((e=>e("yoast-seo/editor").getEditorType()),[]);return"blockEditor"===e?(0,k.useSelect)((e=>e("core/edit-post").getEditorMode()),[]):"classicEditor"===e?function(){const e=document.getElementById("wp-content-wrap");return!!e&&e.classList.contains("html-active")}()?"text":"visual":""})(),g=!t||h,{setActiveAIFixesButton:y,setActiveMarker:x,setMarkerPauseStatus:w,setMarkerStatus:b}=(0,k.useDispatch)("yoast-seo/editor"),f=(0,l.useRef)(null),[v,_]=(0,l.useState)(""),j=(0,s.__)("Optimize with AI","wordpress-seo"),S=(0,s.__)("Please switch to the visual editor to optimize with AI.","wordpress-seo"),C=d===o,{isEnabled:R,ariaLabel:E}=(0,k.useSelect)((e=>{if(null!==d&&!C)return{isEnabled:!1,ariaLabel:null};const s=e("yoast-seo/editor").getDisabledAIFixesButtons();if(Object.keys(s).includes(o))return{isEnabled:!1,ariaLabel:s[o]};if("visual"!==m)return{isEnabled:!1,ariaLabel:S};if("blockEditor"===p){const s=Mr(e("core/block-editor").getBlocks()).every((s=>"visual"===e("core/block-editor").getBlockMode(s.clientId)));return{isEnabled:s,ariaLabel:s?j:S}}return{isEnabled:!0,ariaLabel:j}}),[C,d,m]),L=()=>{c&&(x(null),w(!1),window.YoastSEO.analysis.applyMarks(new X.Paper("",{}),[])),o===d?(y(null),b("enabled")):(y(o),b("disabled")),_("")},N=(0,l.useCallback)((()=>{g?n():((0,pe.doAction)("yoast.ai.fixAssessments",o),L())}),[L,n]),M=(0,l.useCallback)((()=>{E&&_("yoast-tooltip yoast-tooltip-multiline "+(R?"yoast-tooltip-w":"yoast-tooltip-nw"))}),[R,E]),I=(0,l.useCallback)((()=>{_("")}),[]);return(0,u.jsxs)(r.IconAIFixesButton,{onClick:N,ariaLabel:E,onPointerEnter:M,onPointerLeave:I,id:o,className:`ai-button ${v}`,pressed:C,disabled:!R,children:[g&&(0,u.jsx)(ue,{className:"yst-fixes-button__lock-icon yst-text-amber-900"}),(0,u.jsx)(r.SparklesIcon,{pressed:C}),i&&(0,u.jsx)(le.Modal,{className:"yst-introduction-modal",isOpen:i,onClose:a,initialFocus:f,children:(0,u.jsx)(le.Modal.Panel,{className:"yst-max-w-lg yst-p-0 yst-rounded-3xl yst-introduction-modal-panel",children:(0,u.jsx)(Nr,{onClose:a,focusElementRef:f})})})]})};Ir.propTypes={id:a().string.isRequired,isPremium:a().bool};const Tr=Ir,Pr=(e,s,t)=>{const r=document.body.classList.contains("elementor-editor-active");return e&&!s&&!r&&!t},Ar=d().span`
	font-size: 1em;
	font-weight: bold;
	margin: 0 0 8px;
	display: block;
`,Or=d().div`
	padding: 16px;
`,Br=d()(I)`
	margin: -8px 0 -4px 4px;
`;class Fr extends l.Component{constructor(...e){super(...e),J(this,"renderAIOptimizeButton",((e,s)=>{const{isElementor:t,isAiFeatureEnabled:r,isTerm:o}=this.props,i=Ne().isPremium;if(!i||r)return Pr(e,t,o)&&(0,u.jsx)(Tr,{id:s,isPremium:i})}))}renderResults(e){return(0,u.jsxs)(l.Fragment,{children:[(0,u.jsxs)(Ar,{children:[(0,s.__)("Analysis results","wordpress-seo"),(0,u.jsx)(Br,{href:wpseoAdminL10n["shortlinks.readability_analysis_info"],className:"dashicons",children:(0,u.jsx)("span",{className:"screen-reader-text",children:/* translators: Hidden accessibility text. */
(0,s.__)("Learn more about the readability analysis","wordpress-seo")})})]}),(0,u.jsx)(Re,{results:this.props.results,upsellResults:e,marksButtonClassName:"yoast-tooltip yoast-tooltip-w",marksButtonStatus:this.props.marksButtonStatus,highlightingUpsellLink:"shortlinks.upsell.sidebar.highlighting_readability_analysis",shouldUpsellHighlighting:this.props.shouldUpsellHighlighting,renderAIOptimizeButton:this.renderAIOptimizeButton})]})}getUpsellResults(e,t){let r=wpseoAdminL10n["shortlinks.upsell.metabox.word_complexity"];return"sidebar"===e&&(r=wpseoAdminL10n["shortlinks.upsell.sidebar.word_complexity"]),r=(0,j.addQueryArgs)(r,{context:t}),function(){const e=X.helpers.getLanguagesWithWordComplexity(),s=window.wpseoScriptData.metabox.contentLocale,t=X.languageProcessing.getLanguage(s);return e.includes(t)}()?[{score:0,rating:"upsell",hasMarks:!1,id:"wordComplexity",text:(0,s.sprintf)(
/* Translators: %1$s is a span tag that adds styling to 'Word complexity', %2$s is a closing span tag.
       %3$s is an anchor tag with a link to yoast.com, %4$s is a closing anchor tag.*/
(0,s.__)("%1$sWord complexity%2$s: Is your vocabulary suited for a larger audience? %3$sYoast SEO Premium will tell you!%4$s","wordpress-seo"),"<span style='text-decoration: underline'>","</span>",`<a href="${r}" data-action="load-nfd-ctb" data-ctb-id="f6a84663-465f-4cb5-8ba5-f7a6d72224b2" target="_blank">`,"</a>"),markerId:"wordComplexity"}]:[]}render(){const e=Ee(this.props.overallScore);return(0,i.isNil)(this.props.overallScore)&&(e.className="loading"),(0,u.jsx)(_.LocationConsumer,{children:t=>(0,u.jsx)(_.RootContext.Consumer,{children:({locationContext:r})=>{let o=[];return this.props.shouldUpsell&&(o=this.getUpsellResults(t,r)),"sidebar"===t?(0,u.jsx)(w,{title:(0,s.__)("Readability analysis","wordpress-seo"),titleScreenReaderText:e.screenReaderReadabilityText,prefixIcon:te(e.className),prefixIconCollapsed:te(e.className),id:`yoast-readability-analysis-collapsible-${t}`,children:this.renderResults(o)}):"metabox"===t?(0,u.jsx)(Le,{target:"wpseo-metabox-readability-root",children:(0,u.jsxs)(Or,{children:[(0,u.jsx)(ne,{target:"wpseo-readability-score-icon",scoreIndicator:e.className}),this.renderResults(o)]})}):void 0}})})}}Fr.propTypes={results:a().array.isRequired,marksButtonStatus:a().string.isRequired,overallScore:a().number,shouldUpsell:a().bool,shouldUpsellHighlighting:a().bool,isAiFeatureEnabled:a().bool,isElementor:a().bool,isTerm:a().bool},Fr.defaultProps={overallScore:null,shouldUpsell:!1,shouldUpsellHighlighting:!1,isAiFeatureEnabled:!1,isElementor:!1,isTerm:!1};const $r=(0,k.withSelect)((e=>{const{getReadabilityResults:s,getMarkButtonStatus:t,getIsElementorEditor:r,getIsAiFeatureEnabled:o,getIsTerm:i}=e("yoast-seo/editor");return{...s(),marksButtonStatus:t(),isElementor:r(),isAiFeatureEnabled:o(),isTerm:i()}}))(Fr);function qr({location:s}){return(0,u.jsx)(e.Slot,{name:`yoast-synonyms-${s}`})}qr.propTypes={location:a().string.isRequired};const Ur=ce.forwardRef((function(e,s){return ce.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:s},e),ce.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"}))})),Wr=ce.forwardRef((function(e,s){return ce.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:s},e),ce.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7 7h.01M7 3h5c.512 0 1.024.195 1.414.586l7 7a2 2 0 010 2.828l-7 7a2 2 0 01-2.828 0l-7-7A1.994 1.994 0 013 12V7a4 4 0 014-4z"}))})),Hr=ce.forwardRef((function(e,s){return ce.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:s},e),ce.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10 6H5a2 2 0 00-2 2v9a2 2 0 002 2h14a2 2 0 002-2V8a2 2 0 00-2-2h-5m-4 0V5a2 2 0 114 0v1m-4 0a2 2 0 104 0m-5 8a2 2 0 100-4 2 2 0 000 4zm0 0c1.306 0 2.417.835 2.83 2M9 14a3.001 3.001 0 00-2.83 2M15 11h3m-3 4h2"}))})),zr="yoast-seo/editor",Kr=({location:e})=>{const t=(0,le.useSvgAria)(),r=[{icon:Ur,text:(0,s.__)("Image alt attributes","wordpress-seo")},{icon:Wr,text:(0,s.__)("Product identifiers","wordpress-seo")},{icon:Hr,text:(0,s.__)("SKUs","wordpress-seo")}],{metaboxUrl:o,sidebarUrl:i,elementorUrl:n,isElementorEditor:a,isWooSEOActive:l}=(0,k.useSelect)((e=>{const{selectLink:s}=e(zr);return{metaboxUrl:s("https://yoa.st/seo-analysis-metabox-woocommerce"),sidebarUrl:s("https://yoa.st/seo-analysis-sidebar-woocommerce"),elementorUrl:s("https://yoa.st/seo-analysis-woocommerce-elementor"),isElementorEditor:e(zr).getIsElementorEditor(),isWooSEOActive:e(zr).getIsWooSeoActive()}}),[]),c={metabox:o,sidebar:i,elementor:n},d=Gr(e,a);return(0,u.jsx)("div",{className:"yst-root",children:(0,u.jsxs)("div",{id:`woo-seo-analysis-upsell-ad-${d}`,className:"yst-border yst-border-woo-light yst-rounded-lg yst-shadow-md yst-p-4 yst-mt-2 yst-border-opacity-30",children:[(0,u.jsxs)(le.Title,{as:"h3",variant:"h3",className:"yst-text-woo-light yst-text-base yst-font-medium yst-mb-2 yst-flex yst-gap-2 yst-capitalize",children:[(0,s.__)("Premium SEO Analysis","wordpress-seo"),(0,u.jsx)(fe,{className:"yst-w-5 yst-scale-x-[-1]",...t})]}),(0,u.jsx)("p",{children:(0,s.__)("Benefit from all premium SEO analyses, plus product-specific checks like:","wordpress-seo")}),(0,u.jsx)("div",{className:"yst-pt-2 yst-mb-1",children:(0,u.jsx)("ul",{className:"yst-font-semibold",children:r.map((e=>(0,u.jsxs)("li",{className:"yst-flex yst-items-center yst-gap-2 yst-mb-1",children:[(0,u.jsx)(e.icon,{className:"yst-w-4 yst-text-slate-400"}),e.text]},e.text)))})}),(0,u.jsxs)(le.Button,{variant:"upsell",as:"a",href:c[d],target:"_blank",rel:"noopener noreferrer",className:"yst-mt-2","data-action":"load-nfd-ctb","data-ctb-id":"f6a84663-465f-4cb5-8ba5-f7a6d72224b2",children:[(0,u.jsx)(be,{className:"yst-w-4 yst-me-1.5",...t}),l?(0,s.__)("Unlock with Premium","wordpress-seo"):(0,s.sprintf)(/* translators: WooCommerce SEO */
(0,s.__)("Get %s","wordpress-seo"),"WooCommerce SEO")]})]})})},Dr="yoast-seo/editor",Gr=(e,s)=>s?"elementor":e,Yr=({location:e})=>{const{metaboxUrl:t,sidebarUrl:r,elementorUrl:o,isElementorEditor:i,isWooCommerceActive:n,isProductEntity:a}=(0,k.useSelect)((e=>{const{selectLink:s}=e(Dr);return{metaboxUrl:s("https://yoa.st/premium-seo-analysis-metabox"),sidebarUrl:s("https://yoa.st/premium-seo-analysis-sidebar"),elementorUrl:s("https://yoa.st/premium-seo-analysis-elementor"),isElementorEditor:e(Dr).getIsElementorEditor(),isWooCommerceActive:e(Dr).getIsWooCommerceActive(),isProductEntity:e(Dr).getIsProductEntity()}}),[]);if(n&&a)return(0,u.jsx)(Kr,{location:e});const l=(0,le.useSvgAria)(),c=Gr(e,i),d={metabox:t,sidebar:r,elementor:o};return(0,u.jsx)("div",{className:"yst-root",children:(0,u.jsxs)("div",{id:`premium-seo-analysis-upsell-ad-${c}`,className:"yst-border yst-border-primary-200 yst-rounded-lg yst-shadow-md yst-p-4 yst-mt-2",children:[(0,u.jsxs)(le.Title,{as:"h3",variant:"h3",className:"yst-text-primary-500 yst-text-base yst-font-medium yst-mb-2 yst-flex yst-gap-2 yst-capitalize",children:[(0,s.__)("Premium SEO Analysis","wordpress-seo"),(0,u.jsx)(Os,{className:"yst-w-4",...l})]}),(0,u.jsx)("p",{children:(0,s.__)("Get deeper keyphrase insights and stronger headlines","wordpress-seo")}),(0,u.jsx)("div",{className:"yst-py-2 yst-ps-6",children:(0,u.jsxs)("ul",{className:"yst-list-disc yst-list-outside marker:yst-mr-0",children:[(0,u.jsx)("li",{className:"yst-mb-2 yst-list-item",children:he((0,s.sprintf)(/* translators: 1: Bold open tag, 2: Bold close tag */
(0,s.__)("%1$sSynonyms & word form recognition:%2$s Write more natural, flowing content.","wordpress-seo"),"<strong>","</strong>"),{strong:(0,u.jsx)("strong",{})})}),(0,u.jsx)("li",{className:"yst-list-item",children:he((0,s.sprintf)(/* translators: 1: Bold open tag, 2: Bold close tag */
(0,s.__)("%1$sExtra SEO assessments:%2$s See additional recommendation to improve your content.","wordpress-seo"),"<strong>","</strong>"),{strong:(0,u.jsx)("strong",{})})})]})}),(0,u.jsxs)(le.Button,{variant:"upsell",as:"a",href:d[c],target:"_blank",rel:"noopener noreferrer",className:"yst-mt-2","data-action":"load-nfd-ctb","data-ctb-id":"f6a84663-465f-4cb5-8ba5-f7a6d72224b2",children:[(0,u.jsx)(be,{className:"yst-w-4 yst-me-1.5",...l}),(0,s.__)("Unlock with Premium","wordpress-seo")]})]})})},Vr=d().span`
	font-size: 1em;
	font-weight: bold;
	margin: 1.5em 0 1em;
	display: block;
`;class Zr extends l.Component{constructor(...e){super(...e),J(this,"renderAIOptimizeButton",((e,s)=>{const{isElementor:t,isAiFeatureEnabled:r,isPremium:o,isTerm:i}=this.props;if(!o||r)return Pr(e,t,i)&&(0,u.jsx)(Tr,{id:s,isPremium:o})}))}renderTabIcon(e,s){return"metabox"!==e?null:(0,u.jsx)(ne,{target:"wpseo-seo-score-icon",scoreIndicator:s})}render(){const e=Ee(this.props.overallScore),{isPremium:t}=this.props;return"loading"!==e.className&&""===this.props.keyword&&(e.className="na",e.screenReaderReadabilityText=(0,s.__)("Enter a focus keyphrase to calculate the SEO score","wordpress-seo")),(0,u.jsx)(_.LocationConsumer,{children:r=>(0,u.jsx)(_.RootContext.Consumer,{children:()=>{const o="metabox"===r?y:w;return(0,u.jsxs)(l.Fragment,{children:[(0,u.jsxs)(o,{title:t?(0,s.__)("Premium SEO analysis","wordpress-seo"):(0,s.__)("SEO analysis","wordpress-seo"),titleScreenReaderText:e.screenReaderReadabilityText,prefixIcon:te(e.className),prefixIconCollapsed:te(e.className),subTitle:this.props.keyword,id:`yoast-seo-analysis-collapsible-${r}`,children:[(0,u.jsx)(qr,{location:r}),this.props.shouldUpsell&&(0,u.jsx)(Yr,{location:r}),(0,u.jsx)(Vr,{children:(0,s.__)("Analysis results","wordpress-seo")}),(0,u.jsx)(Re,{results:this.props.results,marksButtonClassName:"yoast-tooltip yoast-tooltip-w",editButtonClassName:"yoast-tooltip yoast-tooltip-w",marksButtonStatus:this.props.marksButtonStatus,location:r,shouldUpsellHighlighting:this.props.shouldUpsellHighlighting,highlightingUpsellLink:"shortlinks.upsell.sidebar.highlighting_seo_analysis",renderAIOptimizeButton:this.renderAIOptimizeButton})]}),this.renderTabIcon(r,e.className)]})}})})}}Zr.propTypes={results:a().array,marksButtonStatus:a().string,keyword:a().string,shouldUpsell:a().bool,overallScore:a().number,shouldUpsellHighlighting:a().bool,isElementor:a().bool,isAiFeatureEnabled:a().bool,isPremium:a().bool,isTerm:a().bool},Zr.defaultProps={results:[],marksButtonStatus:null,keyword:"",shouldUpsell:!1,overallScore:null,shouldUpsellHighlighting:!1,isElementor:!1,isAiFeatureEnabled:!1,isPremium:!1,isTerm:!1};const Qr=(0,k.withSelect)(((e,s)=>{const{getFocusKeyphrase:t,getMarksButtonStatus:r,getResultsForKeyword:o,getIsElementorEditor:i,getIsPremium:n,getIsAiFeatureEnabled:a,getIsTerm:l}=e("yoast-seo/editor"),c=t();return{...o(c),marksButtonStatus:s.hideMarksButtons?"disabled":r(),keyword:c,isElementor:i(),isPremium:n(),isAiFeatureEnabled:a(),isTerm:l()}}))(Zr);function Jr(){const e=Ne();return(0,i.get)(e,"multilingualPluginActive",!1)}const Xr=d().span`
	font-size: 1em;
	font-weight: bold;
	margin: 0 0 8px;
	display: block;
`,eo=d().div`
	padding: 16px;
`,so=d()(I)`
	margin: -8px 0 -4px 4px;
`,to=d().p`
	min-height: 24px;
	margin: 12px 0 0 0;
	padding: 0;
	display: flex;
	align-items: flex-start;
`,ro=d()(r.SvgIcon)`
	margin: 3px 11px 0 0; // icon 13 + 11 right margin = 24 for the 8px grid.
`,oo=({results:e=[],overallScore:t=null,marksButtonStatus:o,shouldUpsellHighlighting:n=!1})=>{const a=wpseoAdminL10n["shortlinks.inclusive_language_analysis_info"];function c(){return(0,u.jsxs)(l.Fragment,{children:[(0,u.jsxs)(Xr,{children:[(0,s.__)("Analysis results","wordpress-seo"),(0,u.jsx)(so,{href:a,className:"dashicons",children:(0,u.jsx)("span",{className:"screen-reader-text",children:/* translators: Hidden accessibility text. */
(0,s.__)("Learn more about the inclusive language analysis","wordpress-seo")})})]}),(0,u.jsx)(Re,{results:e,marksButtonClassName:"yoast-tooltip yoast-tooltip-w",marksButtonStatus:o,resultCategoryLabels:{problems:(0,s.__)("Non-inclusive","wordpress-seo"),improvements:(0,s.__)("Potentially non-inclusive","wordpress-seo")},highlightingUpsellLink:"shortlinks.upsell.sidebar.highlighting_inclusive_analysis",shouldUpsellHighlighting:n})]})}const d=he((0,s.sprintf)(/* Translators: %1$s expands to a link on yoast.com, %2$s expands to the anchor end tag. */
(0,s.__)("%1$sInclusive language%2$s: We haven't detected any potentially non-inclusive phrases. Great work!","wordpress-seo"),"<a>","</a>"),{a:(0,u.jsx)("a",{href:a,target:"_blank",rel:"noreferrer"})});function p(){const e=(0,s.__)("We noticed that you are using a multilingual plugin. Please be aware that this analysis feedback is intended only for texts written in English.","wordpress-seo");return(0,u.jsx)(r.Alert,{type:"info",children:e})}function h(){return(0,u.jsxs)(l.Fragment,{children:[(0,u.jsxs)(Xr,{children:[(0,s.__)("Analysis results","wordpress-seo"),(0,u.jsx)(so,{href:a,className:"dashicons",children:(0,u.jsx)("span",{className:"screen-reader-text",children:/* translators: Hidden accessibility text. */
(0,s.__)("Learn more about the inclusive language analysis","wordpress-seo")})})]}),(0,u.jsxs)(to,{children:[(0,u.jsx)(ro,{icon:"circle",color:"#7ad03a",size:"13px"}),(0,u.jsx)("span",{children:d})]})]})}const m=Ee(t);return(0,i.isNil)(t)&&(m.className="loading"),(0,u.jsx)(_.LocationConsumer,{children:t=>"sidebar"===t?function(e,t){return(0,u.jsxs)(w,{title:(0,s.__)("Inclusive language","wordpress-seo"),titleScreenReaderText:t.screenReaderInclusiveLanguageText,prefixIcon:te(t.className),prefixIconCollapsed:te(t.className),id:"yoast-inclusive-language-analysis-collapsible-sidebar",children:[Jr()?p():null,e.length>=1?c():h()]})}(e,m):"metabox"===t?function(e,s){return(0,u.jsx)(oe,{target:"wpseo-metabox-inclusive-language-root",children:(0,u.jsxs)(eo,{children:[(0,u.jsx)(ne,{target:"wpseo-inclusive-language-score-icon",scoreIndicator:s.className}),Jr()?p():null,e.length>=1?c():h()]})})}(e,m):void 0})};oo.propTypes={results:a().array,marksButtonStatus:a().oneOf(["enabled","disabled","hidden"]).isRequired,overallScore:a().number,shouldUpsellHighlighting:a().bool};const io=(0,k.withSelect)((e=>{const{getInclusiveLanguageResults:s,getMarkButtonStatus:t}=e("yoast-seo/editor");return{...s(),marksButtonStatus:t()}}))(oo),no=ce.forwardRef((function(e,s){return ce.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:s},e),ce.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 3v4M3 5h4M6 17v4m-2-2h4m5-16l2.286 6.857L21 12l-5.714 2.143L13 21l-2.286-6.857L5 12l5.714-2.143L13 3z"}))})),ao=ce.forwardRef((function(e,s){return ce.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:s},e),ce.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"}))})),lo=ce.forwardRef((function(e,s){return ce.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:s},e),ce.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.101m-.758-4.899a4 4 0 005.656 0l4-4a4 4 0 00-5.656-5.656l-1.1 1.1"}))})),co=ce.forwardRef((function(e,s){return ce.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:s},e),ce.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 6h16M4 10h16M4 14h16M4 18h16"}))})),uo=ce.forwardRef((function(e,s){return ce.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:s},e),ce.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4v16m8-8H4"}))})),po=window.wp.blocks,ho=({id:e})=>(0,u.jsx)("ul",{className:"yst-my-2",children:wo.map(((s,t)=>{const{icon:r,title:o}=s;return(0,u.jsxs)("li",{className:"yst-flex yst-gap-2 yst-mb-2 yst-items-center",children:[(0,u.jsx)(r,{className:"yst-w-4 yst-h-4 yst-shrink-0 yst-inline yst-stroke-slate-400"}),(0,u.jsx)("p",{className:"yst-text-slate-600 yst-font-medium",children:o})]},`${e}-upsell-benefit-${t}`)}))});ho.propTypes={id:a().string.isRequired};const mo=({isOpen:e,closeModal:t,location:r})=>{const{locationContext:o}=(0,_.useRootContext)(),i=wpseoAdminL10n["sidebar"===r?"shortlinks.upsell.sidebar.content_blocks":"shortlinks.upsell.metabox.content_blocks"],n=(0,l.useCallback)((()=>(0,u.jsx)(ho,{id:"yoast-content-blocks-upsell"})),[]);return(0,u.jsx)(_e,{isOpen:e,onClose:t,id:"yoast-content-blocks-upsell",upsellLink:(0,j.addQueryArgs)(i,{context:o}),modalTitle:(0,s.__)("Enhance your content","wordpress-seo"),title:(0,s.__)("Make your post more engaging at a click","wordpress-seo"),description:(0,s.__)("Add rich elements that improve readability, structure, and SEO. Easily insert smart blocks to enrich your content directly in the Block Editor. Includes:","wordpress-seo"),benefits:n,note:(0,s.__)("Get a tailored experience for the Block Editor","wordpress-seo"),ctbId:"f6a84663-465f-4cb5-8ba5-f7a6d72224b2"})};mo.propTypes={isOpen:a().bool.isRequired,closeModal:a().func.isRequired,location:a().oneOf(["sidebar","metabox"]).isRequired};const go=({showUpsellBadge:e,blockName:t,location:r})=>{const{insertBlock:o,replaceBlock:i}=(0,k.useDispatch)("core/block-editor"),{blockInsertionPoint:n,blocks:a}=(0,k.useSelect)((e=>({blockInsertionPoint:e("core/block-editor").getBlockInsertionPoint(),blocks:e("core/block-editor").getBlocks()})),[]),[c,d]=(0,l.useState)(!1),[p,h]=(0,l.useState)(!1),[m,,,g,y]=(0,le.useToggleState)(!1),x=(0,l.useCallback)((e=>{var s;null==e||null===(s=e.currentTarget)||void 0===s||s.blur(),h(!1)}),[]),w=(0,l.useCallback)((s=>{if(x(s),e)g();else{var r;d(!0);const e=n.index,s=a[e-1],l=!!s&&"core/paragraph"===s.name&&""===(null===(r=s.attributes.content)||void 0===r?void 0:r.text),c=(0,po.createBlock)(t);setTimeout((()=>{l?i(s.clientId,c):o(c,e),d(!1)}),300)}}),[e,t,o,i,n,a]),b=(0,l.useCallback)((()=>{h(!0)}),[]),f=(0,l.useCallback)((()=>{h(!1)}),[]),v=`yoast-add-block-button${c?" yoast-add-block-button--clicked":""}${p&&!c?" yoast-tooltip yoast-tooltip-w":""}`,_="yoast-add-block-button__icon"+(c?" yoast-add-block-button__icon--clicked":""),j=p?(0,s.__)("Add block to content.","wordpress-seo"):(0,s.__)("Add block","wordpress-seo");return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(mo,{isOpen:m,closeModal:y,location:r}),(0,u.jsx)("button",{className:v,"aria-label":j,onClick:w,onMouseEnter:b,onMouseLeave:f,onFocus:b,onBlur:f,children:(0,u.jsx)(uo,{className:_})})]})};go.propTypes={showUpsellBadge:a().bool.isRequired,blockName:a().string.isRequired,location:a().string.isRequired};const yo=({blockTitle:e,blockName:s,isPremiumBlock:t,hasNewBadgeLabel:o,renderNewBadgeLabel:i,location:n})=>{const{isPremium:a,addedBlock:c}=(0,k.useSelect)((e=>({isPremium:e("yoast-seo/editor").getIsPremium(),addedBlock:e("core/block-editor").getBlocksByName(s)})),[s]),d=(0,le.useSvgAria)(),p=t&&!a,[h,m]=(0,l.useState)(!1);return(0,l.useEffect)((()=>{0===c.length?m(!1):m(!0)}),[c]),(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("hr",{className:"yst-border-t-slate-200 yst-mx-0 yst-w-auto yst-my-4"}),(0,u.jsxs)("div",{className:"yst-flex yst-items-center",children:[(0,u.jsxs)("div",{className:"yst-flex yst-items-center yst-flex-grow yst-p-0 yst-gap-2 yst-ms-2",children:[(0,u.jsx)(r.SvgIcon,{icon:"circle",size:"4px"}),(0,u.jsx)("span",{className:"yst-font-medium",children:e}),o&&i()]}),!h&&(0,u.jsxs)("div",{className:"yst-relative yst-inline-block",children:[(0,u.jsx)(go,{showUpsellBadge:p,blockName:s,location:n}),p&&(0,u.jsx)("div",{className:"yst-root",children:(0,u.jsx)(le.Badge,{className:"yst-absolute yst-p-0.5 yst--end-[6.5px] yst--top-[6.5px]",size:"small",variant:"upsell",children:(0,u.jsx)(ue,{className:"yst-w-2.5 yst-h-2.5 yst-shrink-0",...d})})})]}),h&&(0,u.jsx)("div",{className:"yst-flex yst-flex-row yst-p-1.5",children:(0,u.jsx)(we,{className:"yst-h-4 yst-w-4 yst-stroke-green-700"})})]})]})};yo.propTypes={blockTitle:a().string.isRequired,blockName:a().string.isRequired,isPremiumBlock:a().bool.isRequired,hasNewBadgeLabel:a().bool.isRequired,renderNewBadgeLabel:a().func.isRequired,location:a().oneOf(["metabox","sidebar"]).isRequired};const xo=[{title:(0,s.__)("Breadcrumbs","wordpress-seo"),name:"yoast-seo/breadcrumbs",isPremiumBlock:!1},{title:(0,s.__)("FAQ","wordpress-seo"),name:"yoast/faq-block",isPremiumBlock:!1},{title:(0,s.__)("How-to","wordpress-seo"),name:"yoast/how-to-block",isPremiumBlock:!1}],wo=[{title:(0,s.__)("AI Summarize","wordpress-seo"),name:"yoast-seo/ai-summarize",isPremiumBlock:!0,icon:no},{title:(0,s.__)("Estimated reading time","wordpress-seo"),name:"yoast-seo/estimated-reading-time",isPremiumBlock:!0,icon:ao},{title:(0,s.__)("Related links","wordpress-seo"),name:"yoast-seo/related-links",isPremiumBlock:!0,icon:lo},{title:(0,s.__)("Table of contents","wordpress-seo"),name:"yoast-seo/table-of-contents",isPremiumBlock:!0,icon:co}];window.yoast=window.yoast||{},window.yoast.externals=window.yoast.externals||{},window.yoast.externals.components={CollapsibleCornerstone:f,KeywordInput:Z,ReadabilityAnalysis:$r,SeoAnalysis:Qr,InclusiveLanguageAnalysis:io,ContentBlocks:()=>{const e=(0,l.useContext)(_.LocationContext),t="metabox"===e?y:w,r=(window.wpseoAiGenerator?wo:wo.filter((e=>"yoast-seo/ai-summarize"!==e.name))).concat(xo),o=(0,l.useCallback)((()=>(0,u.jsx)("div",{className:"yst-root",children:(0,u.jsx)(le.Badge,{variant:"info",size:"small",children:(0,s.__)("New","wordpress-seo")})})),[]),i=`yoast-content-blocks-collapsible-${e}`;return(0,u.jsxs)(t,{id:i,title:(0,s.__)("Content blocks","wordpress-seo"),hasNewBadgeLabel:!0,renderNewBadgeLabel:o,children:[(0,u.jsx)("div",{className:"yst-font-normal yst-text-sm",children:(0,s.__)("While writing your post, add custom Yoast blocks directly from here to enhance your content.","wordpress-seo")}),r.map((s=>(0,u.jsx)(yo,{blockTitle:s.title,blockName:s.name,isPremiumBlock:s.isPremiumBlock,hasNewBadgeLabel:"AI Summarize"===s.title,renderNewBadgeLabel:o,location:e},s.name)))]})}}})()})();

Youez - 2016 - github.com/yon3zu
LinuXploit