�PNG  IHDR22?�� pHYs  �� OiCCPPhotoshop ICC profilexڝSgTS�=���BK���KoR RB���&*! J�!��Q�EEȠ�����Q, � ��!���������{�kּ������>���� �H3Q5� �B�������.@� $p�d!s�#�~<<+"��x� �M��0���B�\���t�8K�@z�B�@F���&S�`�cb�P-`'������{[�!�� e�Dh;��V�EX0fK�9�-0IWfH���� � 0Q��){`�##x��F�W<�+��*x��<�$9E�[-qWW.(�I+6aa�@.�y�2�4���������x����6��_-��"bb���ϫp@�t~��,/��;�m��%�h^ �u��f�@����W�p�~<�5�j>{�-�]c�K'Xt����o��(�h���w��?�G�%�fI�q^D$.Tʳ?�D��*�A��,���� �`6�B$��BB d�r`)��B(�Ͱ*`/�@4�Qh��p.�U�=p�a��(�� A�a!ڈb�X#����!�H�$ ɈQ"K�5H1R�T UH�=r9�\F��;�2����G1���Q=� �C��7�F� �dt1�����r�=�6��Ыhڏ>C�0��3�l0.��B�8, �c˱"� ���V����cϱw�E� 6wB aAHXLXN�H� $4� 7 �Q�'"��K�&���b21�XH,#��/{�C�7$�C2'��I��T��F�nR#�,��4H#���dk�9�, +ȅ����3��!�[ �b@q��S�(R�jJ��4�e�2AU��Rݨ�T5�ZB���R�Q��4u�9̓IK�����hh�i��t�ݕN��W���G���w ��Ljg(�gw��L�Ӌ�T071���oUX*�*|�� �J�&�*/T����ު U�U�T��^S}�FU3S� Ԗ�U��P�SSg�;���g�oT?�~Y��Y�L�OC�Q��_�� c�x,!k ��u�5�&���|v*�����=���9C3J3W�R�f?�q��tN �(���~���)�)�4L�1e\k����X�H�Q�G�6������E�Y��A�J'\'Gg����S�Sݧ �M=:��.�k���Dw�n��^��Lo��y���}/�T�m���G X� $� �<�5qo</���QC]�@C�a�a�ᄑ��<��F�F�i�\�$�m�mƣ&&!&KM�M�RM��)�;L;L���͢�֙5�=1�2��כ߷`ZxZ,����eI��Z�Yn�Z9Y�XUZ]�F���%ֻ�����N�N���gð�ɶ�����ۮ�m�}agbg�Ů��}�}��= ���Z~s�r:V:ޚΜ�?}����/gX���3��)�i�S��Ggg�s�󈋉K��.�>.���Ƚ�Jt�q]�z���������ۯ�6�i�ܟ�4�)�Y3s���C�Q��? ��0k߬~OCO�g��#/c/�W�װ��w��a�>�>r��>�<7�2�Y_�7��ȷ�O�o�_��C#�d�z����%g��A�[��z|!��?:�e����A���AA�������!h�쐭!��Α�i�P~���a�a��~ '���W�?�p�X�1�5w��Cs�D�D�Dޛg1O9�-J5*>�.j<�7�4�?�.fY��X�XIlK9.*�6nl������� �{�/�]py�����.,:�@L�N8��A*��%�w%� y��g"/�6ш�C\*N�H*Mz�쑼5y$�3�,幄'���L Lݛ:��v m2=:�1����qB�!M��g�g�fvˬe����n��/��k���Y- �B��TZ(�*�geWf�͉�9���+��̳�ې7�����ᒶ��KW-X潬j9�������(�x��oʿ�ܔ���Ĺd�f�f���-�[����n �ڴ �V����E�/��(ۻ��C���<��e����;?T�T�T�T6��ݵa��n��{��4���[���>ɾ�UUM�f�e�I���?�������m]�Nmq����#�׹���=TR��+�G�����w- 6 U����#pDy��� �� :�v�{���vg/jB��F�S��[b[�O�>����z�G��499�?r����C�d�&����ˮ/~�����јѡ�򗓿m|������������x31^�V���w�w��O�| (�h���SЧ��������c3-� cHRMz%������u0�`:�o�_�F5IDATx��ytUս�?�;���fN$$��@B�!�k��� -*�gE���j�O�kQ�ʠ`U�B_ �AÐ0%�Ȕ�@r3ޛ;߳��$�@��v����^�s����������$��ߢ !�W��5�̱'-٘������4�>�Rƫ$�G��0U�H}�_ _� #��k�MJ/=�9Du *ڲ�k�PQ;0��j|�*�$�^컂脛y���>�z×� B��� ��(�:$�ʔ_�6��C!B����MVx��a��ζyY����j��ƋY2�9�F�{r��r�딟F��Q��hY6��� x��[l��RC��������nt@��;P��3��� F�w��7��:�P���ɋ'���mj���Bƪ�$�Q�L��y��߷g��\���z����v5�p�v$�v櫻�`6~K �Y�X����,�:��"�o�e0II"(��,������l_�C���/4�+f�E�!q��:����u����c��樼.UE�@� �]K�W���$-�h]�JG���Dz)�`��.�A/ ���mᏣc�3jK� �!�>���$�Q�!�_�? \�C2(E �M$Z I{�U���s�ǣ���=��@Բe ޻��W�����@ �w����}�9v,)��.}*|"�s��di���,���G�]W�AC�������|<����[��ߕ������K�*�G nߴ!��‹��J�!��6(L�a)��Am��������;adf��:�xm��nh�;֦I��(���o�C~ډa?�=��s����h��E������xp����)���_���t��W�����´;8���`dz=(��@@�+,�;�`�fhl��XȌ�3,uI�~z(J����� �ZX�A����H'�À�㜦�82|��a�n�z2��I���� ���EY�h�ε<�0�q�{��C��v�˅��?"@��χ�x�WS+��N�~�KQ�J�8ل�� _.W��� !TU{�����,��"�� �;�������HI S� ��))�o�1�H�D� ���� (� ;����"Ҕ��,���� �F=���O��&�Ph>�`���y��߲ &S��P�<��'��1s�1cĂ�N����2)����@�u��tv��<�+�-&�����h��[!FSG���' � z z0��<����8d&�����E0�,��<��"!P�b4��� �{S�����X����.�囤���T��hEF��X�q0"-<����h���]�Py*����F⩍��@v�˂�Y08�� .q��a��s����(!<̫1�3�L�H��7sYW�`��qtu�\7��?�@�Y�� %Ka�x�GZ�*W�P��y�����N0r9��Z�c�%���q,��k�����!!,��>���IB��� �x1�Xu�Y���v-���ֺ��N������JP��a�2`�e5��w��u;�6�i���̃��(K���ťa��(l51��JL��O'%���]���ٖ뿉!��{*�p+f ���i8��D�ȑ���ܩ�M��V��ӟz��x�7Z�1i}�^͜���6e����x��)u�d�ˏ�V�eG�\�X1�����=n�U'�~Y����L�\,�(d!x ,�:�TW8� M`r���@��r+v�Q0��>^;˴�VbF��('����� �*O��i��j�Ӆ����^�S3&� ���{������.ی�� N;��NU%d0�Ce\r"�C�b��&t7N�7��� �ȪD�[%l�۪�$��'m?�A9tI�9>��NVL ��� 6v~M�����ъ�B���0����9$&=ώm��W�0���L���&��E���f�f��'+�9��hv��7,���M��6�D�&�^� �����8 D֮�����o��k^z��O��hP�8q�5d*��YVq3�{��������#LX4�?��jP=3�~�؅c�ݰ�̱�ұ��8̲��2�G�����j��έ�9��w7���U�X�w�85C��?!I&���o&����L���I#�^�eV�,�^t5�k� �xs˛\��U�8��."���{���ǵ�l4��ݼ�;��r"���G�/~���gJV�N糦��ZZ^k+NN�D��I$�=OE�z����|*�*{��%k���G��>�`9��b;�s���8,�qs��c��.b��q�%�>r��n�R�Ƨ�%�,�A��le#�8���}; 21�0�b�&�QX�f���q�00����$>�h�N�'�a3��A���/�r ��L5�8�GԲ'�����w;��c#�q1���h$*��V^�k��QĽ�b:i������� ����H F#�_���,��]g����Ը����`RUU���� ��"�qD���>-��ϤI�~��3�̴�����NZ[[555�eeek7�m����YF#[��Đ��R��i��L�H�r ��@��J-�Pŝ��_|�-��6y��ks�V�U~��6���w.����(��0A� 4��f��� /���C�xŊ�ٳ����z=6�����rg���mKo��o�/����a�g���?'9%9��P��斓��~���L{�� �H��{AW��B��$����v�1b�&Mb�ر��ر#�0`�`xMBp! )Z�Nmo�mZ�g�}�eذaWTVV ���'99��C5��&�&+5�bT>|8��PUUETT����&���t��~TE%��'������b�tEGG;RSS�S�N�v��ѯ��t����u1@�ޚ"f��͈���r'L�Ph��m��ƌ�74o��`�x�q�P���NRSS�X,�����l&&&��MFFA!-��`��ҷ�n��Yuu�����x<I�LB%����KԒ50�!�3�bz�����ʸKL���;---�l6[��`��������Ȏ;�����egg4��!D�T��jWujyZ��������K����%����p�^���X,6��sV=�ܖ����6�3�X ���4ҿ��A2�&����_k�;d�� �VfOIEND�B`�
Warning: session_start(): Session cannot be started after headers have already been sent in /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php on line 124

Warning: Cannot modify header information - headers already sent by (output started at /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php:1) in /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php on line 130

Warning: Cannot modify header information - headers already sent by (output started at /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php:1) in /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php on line 131

Warning: Cannot modify header information - headers already sent by (output started at /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php:1) in /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php on line 132

Warning: Cannot modify header information - headers already sent by (output started at /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php:1) in /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php on line 133

Warning: Cannot modify header information - headers already sent by (output started at /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php:1) in /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php on line 134

Warning: Cannot modify header information - headers already sent by (output started at /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php:1) in /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php on line 135
0x0x
PHP 8.2.31
Preview: post.min.js Size: 25.43 KB
/home/mciraet/www/wp-content/plugins/polylang-pro/js/build/editors/post.min.js
(()=>{var e={20(e,t,n){"use strict";var s=n(677),a=Symbol.for("react.element"),l=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var s,l={},c=null,u=null;for(s in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)r.call(t,s)&&!i.hasOwnProperty(s)&&(l[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps)void 0===l[s]&&(l[s]=t[s]);return{$$typeof:a,type:e,key:c,ref:u,props:l,_owner:o.current}}t.Fragment=l,t.jsx=c,t.jsxs=c},848(e,t,n){"use strict";e.exports=n(20)},677(e){e.exports=function(){return this.React}()},419(e){e.exports=function(){return this.lodash}()},631(e){e.exports=function(){return this.wp.apiFetch}()},959(e){e.exports=function(){return this.wp.components}()},488(e){e.exports=function(){return this.wp.coreData}()},987(e){e.exports=function(){return this.wp.data}()},53(e){e.exports=function(){return this.wp.editPost}()},2(e){e.exports=function(){return this.wp.editor}()},601(e){e.exports=function(){return this.wp.element}()},989(e){e.exports=function(){return this.wp.htmlEntities}()},75(e){e.exports=function(){return this.wp.i18n}()},672(e){e.exports=function(){return this.wp.notices}()},125(e){e.exports=function(){return this.wp.plugins}()},933(e){e.exports=function(){return this.wp.primitives}()},172(e){e.exports=function(){return this.wp.url}()}},t={};function n(s){var a=t[s];if(void 0!==a)return a.exports;var l=t[s]={exports:{}};return e[s](l,l.exports,n),l.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var s in t)n.o(t,s)&&!n.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);(()=>{"use strict";var e=n(631),t=n.n(e);const s=(e,t,n)=>{const s=e.path.split("?")[0].replace(/^\/+|\/+$/g,"");return Object.values(t).find((e=>s===e))?n(e):e},a=e=>{t().use(((t,n)=>void 0!==t.url||void 0===window.pllFilteredRoutes?n(t):n(s(t,window.pllFilteredRoutes,e))))};var l=n(53),r=n(601),o=n(933),i=n(848);const c=void 0!==wp.primitives?(0,i.jsx)(o.SVG,{width:"20",height:"20",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:(0,i.jsx)(o.Path,{d:"M11 7H9.49c-.63 0-1.25.3-1.59.7L7 5H4.13l-2.39 7h1.69l.74-2H7v4H2c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2h7c1.1 0 2 .9 2 2v2zM6.51 9H4.49l1-2.93zM10 8h7c1.1 0 2 .9 2 2v7c0 1.1-.9 2-2 2h-7c-1.1 0-2-.9-2-2v-7c0-1.1.9-2 2-2zm7.25 5v-1.08h-3.17V9.75h-1.16v2.17H9.75V13h1.28c.11.85.56 1.85 1.28 2.62-.87.36-1.89.62-2.31.62-.01.02.22.97.2 1.46.84 0 2.21-.5 3.28-1.15 1.09.65 2.48 1.15 3.34 1.15-.02-.49.2-1.44.2-1.46-.43 0-1.49-.27-2.38-.63.7-.77 1.14-1.77 1.25-2.61h1.36zm-3.81 1.93c-.5-.46-.85-1.13-1.01-1.93h2.09c-.17.8-.51 1.47-1 1.93l-.04.03s-.03-.02-.04-.03z"})}):"translation";var u=n(125);const p=({sidebar:e,sidebarName:t,onPromise:n,children:s})=>(n().then((()=>{(0,u.registerPlugin)(t,{icon:c,render:e})}),(e=>{console.info(e)})),(0,i.jsx)(i.Fragment,{children:s}));var d=n(987),g=n(672);const{stripTags:h}=wp.sanitize,m=({notices:e})=>{const{createErrorNotice:t,createInfoNotice:n,createSuccessNotice:s,createWarningNotice:a}=(0,d.useDispatch)(g.store);return e?(e.forEach((e=>{const l={type:"snackbar",explicitDismiss:!0},r=h(e.message);switch(e.type){case"error":t(r,l);break;case"info":n(r,l);break;case"success":s(r,l);break;case"warning":a(r,l)}})),null):null};var _=n(75);const f=({SidebarSlot:e,MoreMenuItemSlot:t,sidebarName:n,children:s})=>{const a=(0,_.__)("Languages","polylang-pro");return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(e,{name:n,title:a,children:s}),(0,i.jsx)(t,{target:n,children:a})]})};var x=n(172),y=n(488);const v="pll/metabox",b="core/editor",w="core/edit-site",j="core",P={languages:[],selectedLanguage:{},translatedPosts:{},fromPost:null,currentTemplatePart:{}},T=["wp_template","wp_global_styles"];var E=n(419);const S=function({language:e}){return(0,E.isNil)(e)?(0,i.jsx)("span",{className:"pll-translation-icon",children:c}):(0,E.isEmpty)(e.flag_url)?(0,i.jsxs)("abbr",{children:[e.slug,(0,i.jsx)("span",{className:"screen-reader-text",children:e.name})]}):(0,i.jsx)("span",{className:"pll-select-flag",children:(0,i.jsx)("img",{src:e.flag_url,alt:e.name,title:e.name,className:"flag"})})};var N=n(959);const R=({children:e})=>(0,i.jsx)("div",{className:"components-panel__body is-opened",children:(0,i.jsx)("div",{className:"pll-metabox-location",children:e})}),C=({postType:e})=>"wp_template"===e?(0,i.jsx)("div",{className:"pll-metabox-error components-notice is-warning",children:(0,_.__)("Templates are not translatable, only template parts are.","polylang-pro")}):(0,i.jsx)("div",{className:"pll-metabox-error components-notice is-warning",children:(0,_.__)("This entity is not translatable.","polylang-pro")}),L=({isError:e,isAllowedPostType:t,postType:n,children:s})=>t?e?(0,i.jsx)(R,{children:(0,i.jsx)("div",{className:"pll-metabox-error components-notice is-error",children:(0,_.__)("Unable to retrieve the content language","polylang-pro")})}):(0,i.jsx)(R,{children:s}):(0,i.jsx)(R,{children:(0,i.jsx)(C,{postType:n})}),A=({children:e})=>(0,i.jsx)("td",{className:"pll-edit-column pll-column-icon",children:e});const F=({language:e})=>(0,i.jsx)("th",{className:"pll-language-column",children:(0,E.isEmpty)(e.flag)?(0,i.jsxs)("abbr",{children:[e.slug,(0,i.jsx)("span",{className:"screen-reader-text",children:e.name})]}):(0,i.jsx)("span",{className:"pll-select-flag flag",children:(0,i.jsx)("img",{src:e.flag_url,alt:e.name,title:e.name})})}),k=({children:e})=>(0,i.jsx)("td",{className:"pll-translation-column",children:e}),M=void 0!==wp.primitive?(0,i.jsx)(o.SVG,{width:"20",height:"20",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:(0,i.jsx)(o.Path,{d:"M17 7v3h-5v5h-3v-5h-5v-3h5v-5h3v5h5z"})}):"plus",z=({language:e,href:t,disabled:n,handleAddClick:s=null})=>{const a=(0,_.sprintf)((0,_.__)("Add a translation in %s","polylang-pro"),e.name);return(0,i.jsx)(N.Button,{href:t,disabled:n,icon:M,label:a,className:"pll-button",onClick:s,"data-target-language":e.slug,children:(0,i.jsx)("span",{className:"screen-reader-text",children:a})})};const O=({id:e,postType:n,userPreferenceName:s,activeLabel:a,inactiveLabel:l,icon:o})=>{const c=(0,d.useSelect)((e=>e(y.store).getCurrentUser()),[]),[u,p]=(0,r.useState)(!1),{createErrorNotice:h}=(0,d.useDispatch)(g.store),[m,_]=(0,r.useState)((()=>void 0!==c&&void 0!==c[s]&&void 0!==c[s][n]&&c[s][n]));return(0,i.jsx)(N.Button,{id:e,className:`pll-button pll-before-post-translations-button ${m&&"wp-ui-text-highlight"}`,onClick:()=>{p(!0);const e=((e,t,n,s)=>((void 0===e[t]||Array.isArray(e[t])&&0===e[t].length)&&(e[t]={}),e[t][n]=!s,{[t]:e[t]}))(c,s,n,m);t()({path:"/wp/v2/users/me",data:e,method:"POST"}).then((()=>{_((e=>!e))})).catch((e=>{h(e.message,{type:"snackbar"})})).finally((()=>{p(!1)}))},icon:o,label:m?a:l,isBusy:u,disabled:u,children:(0,i.jsx)("span",{className:"screen-reader-text",children:m?a:l})})},I=()=>{const e=(0,d.useSelect)((e=>e(b).getCurrentPostType()),[]),t=pll_block_editor_plugin_settings?.machine_translation;if(!t||!t.isActive)return null;const{path_d:n,...s}=t.icon,a={type:"svg",props:{...s,children:(0,i.jsx)(o.Path,{d:n})}};return(0,i.jsx)(O,{id:"pll-machine-translation",postType:e,userPreferenceName:`pll_machine_translation_${t.slug}`,activeLabel:(0,_.sprintf)((0,_.__)("Deactivate %s machine translation","polylang-pro"),t.name),inactiveLabel:(0,_.sprintf)((0,_.__)("Activate %s machine translation","polylang-pro"),t.name),icon:a})},U=void 0!==wp.primitives?(0,i.jsx)(o.SVG,{width:"20",height:"20",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:(0,i.jsx)(o.Path,{d:"M6 15v-13h10v13h-10zM5 16h8v2h-10v-13h2v11z"})}):"admin-page",B=e=>{const t=(0,d.useSelect)((e=>e(b).getCurrentPostType()),[]);if(!t)return null;const n={...e,id:"pll-duplicate",userPreferenceName:"pll_duplicate_content",activeLabel:(0,_.__)("Deactivate the content duplication","polylang-pro"),inactiveLabel:(0,_.__)("Activate the content duplication","polylang-pro"),icon:U,postType:t};return(0,i.jsx)(O,{...n})},$=void 0!==wp.primitives?(0,i.jsx)(o.SVG,{width:"20",height:"20",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:(0,i.jsx)(o.Path,{d:"M13.89 3.39l2.71 2.72c0.46 0.46 0.42 1.24 0.030 1.64l-8.010 8.020-5.56 1.16 1.16-5.58s7.6-7.63 7.99-8.030c0.39-0.39 1.22-0.39 1.68 0.070zM11.16 6.18l-5.59 5.61 1.11 1.11 5.54-5.65zM8.19 14.41l5.58-5.6-1.070-1.080-5.59 5.6z"})}):"edit",D=({language:e,href:t,disabled:n,handleEditClick:s=null})=>{const a=(0,_.sprintf)((0,_.__)("Edit the translation in %s","polylang-pro"),e.name);return(0,i.jsx)(N.Button,{href:t,disabled:n,icon:$,label:a,className:"pll-button",onClick:s,"data-target-language":e.slug,children:(0,i.jsx)("span",{className:"screen-reader-text",children:a})})},V=void 0!==wp.primitives?(0,i.jsx)(o.SVG,{width:"20",height:"20",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:(0,i.jsx)(o.Path,{d:"M5 7v3l-2 1.5v-6.5h11v-2l4 3.010-4 2.99v-2h-9zM15 13v-3l2-1.5v6.5h-11v2l-4-3.010 4-2.99v2h9z"})}):"controls-repeat";var G=n(2);const H=(e,t,n,s)=>{(0,r.useEffect)((()=>{if(n.pll_sync_post[e.slug]&&n.translations[e.slug]&&n.title!==s?.title){const a={...n,title:n.title};a.id=s?.id??0,t({type:"add_translation",lang:e,post:{...a}})}}),[e,t,n,s])},Q=e=>Object.fromEntries(Object.entries(e).map((([e,t])=>[e,t.toString()]))),q=({post:e,language:t,translationTableReducer:n,disabled:s})=>{const[a,l]=(0,r.useState)(!1),[o,c]=(0,r.useState)(!1),[u,p]=(0,r.useState)(!1),g=(0,d.useSelect)((()=>(0,d.select)(G.store).getCurrentPost()),[]);H(t,n,g,e);const h=(0,r.useMemo)((()=>a?(0,_.__)("Unsynchronize this post","polylang-pro"):(0,_.__)("Synchronize this post","polylang-pro")),[a]),m=()=>{const s=g.pll_sync_post;a?(delete s[t.slug],l(!1)):(s[t.slug]=!0,l(!0),c(!0),e||(e={id:0}),n({type:"add_translation",lang:t,post:{...e,title:g.title}}),(0,d.dispatch)(y.store).invalidateResolution("getEntityRecord",["postType",e.type,e.id])),(0,d.dispatch)(b).editPost({pll_sync_post:Q(s)})};return(0,r.useEffect)((()=>{c(void 0!==e?.id),l(void 0!==g.pll_sync_post[t.slug])}),[g,t,e]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(N.Button,{icon:V,label:h,id:`pll_sync_post[${t.slug}]`,className:`pll-button ${a&&"wp-ui-text-highlight"}`,onClick:()=>{!a&&o?p(!0):m()},disabled:s,children:(0,i.jsx)("span",{className:"screen-reader-text",children:h})}),u&&(0,i.jsxs)(N.Modal,{title:(0,_.__)("Synchronize this post","polylang-pro"),onRequestClose:()=>{p(!1)},children:[(0,i.jsx)("p",{children:(0,_.__)("You are about to overwrite an existing translation. Are you sure you want to proceed?","polylang-pro")}),(0,i.jsxs)("div",{role:"group",className:"components-button-group buttons",children:[(0,i.jsx)(N.Button,{variant:"tertiary",onClick:()=>{p(!1)},type:"button",children:(0,_.__)("Cancel","polylang-pro")}),(0,i.jsx)("span",{children:" "}),(0,i.jsx)(N.Button,{variant:"primary",onClick:()=>{m(),p(!1)},type:"submit",children:(0,_.__)("Synchronize","polylang-pro")})]})]})]})};var W=n(989);const Y=e=>(0,W.decodeEntities)(e.title?.rendered??e.title?.raw??e.title??""),J=(e,t)=>{const n=e.find((e=>e.value===t));return n?{id:n.value,title:n.label}:null},K=e=>{const t={};return e.forEach(((e,n)=>{e&&e.id&&(t[n.slug]=e.id)})),t},X=({language:e,source:n,translation:s,tableDispatch:a,translationsTable:l})=>{const[o,c]=(0,r.useState)(s?[{value:s.id,label:Y(s)}]:[]),[u,p]=(0,r.useState)(s?s.id:null),[g,h]=(0,r.useState)(!1);(0,r.useEffect)((()=>{s&&0===o.length&&c([{value:s.id,label:Y(s)}])}),[s,o]),(0,r.useEffect)((()=>{s?(o.find((e=>e.value===s.id&&e.label!==Y(s)||e.value!==s.id&&0===e.value&&e.label===Y(s)))&&c([{value:s.id,label:Y(s)}]),p(s.id)):p(null)}),[s,o]);const m=(0,r.useCallback)((s=>{if(""===s)return[];h(!0),t()({path:(0,x.addQueryArgs)("/pll/v1/untranslated-posts",{search:s,include:n.id,untranslated_in:n.lang,lang:e.slug,type:n.type,context:"edit"})}).then((e=>{c(e.map((e=>({value:parseInt(e.id,10),label:Y(e)}))))})).finally((()=>{h(!1)}))}),[n,e,c]),f=(0,r.useCallback)((e=>{let t;return(...n)=>{clearTimeout(t),t=setTimeout((()=>e(...n)),300)}}),[]);return(0,i.jsx)(N.ComboboxControl,{value:u,options:o,isLoading:g,onChange:t=>{if(p(t),(0,d.select)(b).isEditedPostNew()&&(0,d.dispatch)(b).savePost(),!t){a({type:"remove_translation",lang:e});const t={...K(l)};return delete t[e.slug],void(0,d.dispatch)(b).editPost({translations:t})}const n=J(o,t);n&&(a({type:"add_translation",lang:e,post:n}),(0,d.dispatch)(b).editPost({translations:{...K(l),[e.slug]:parseInt(t,10)}}))},placeholder:(0,_.__)("Search for a post","polylang-pro"),onFilterValueChange:f(m),__next40pxDefaultSize:!0})},Z=({language:e,children:t})=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(F,{language:e}),t]}),{Fill:ee,Slot:te}=(0,N.createSlotFill)("PluginFeatureFlagButton"),ne=({children:e,className:t})=>(0,i.jsx)(ee,{children:(0,i.jsx)("div",{className:t,children:e})});ne.Slot=te;const se=ne,ae=({children:e})=>(0,i.jsxs)("div",{id:"post-translations",className:"translations",children:[(0,i.jsxs)("div",{className:"pll-translations-table-header",children:[(0,i.jsx)("p",{className:"pll-translations-table-header-title",children:(0,i.jsx)("strong",{children:(0,_.__)("Translations","polylang-pro")})}),(0,i.jsx)(se.Slot,{children:e=>e.length>0&&(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("div",{className:"pll-plugin-feature-button-container",children:e})})})]}),(0,i.jsx)("table",{children:(0,i.jsx)("tbody",{children:e})})]}),le=e=>(0,N.createSlotFill)(`PluginFeatureTableRowButton_${e}`),re=({children:e,className:t,languageSlug:n})=>{const{Fill:s}=le(n);return(0,i.jsx)(s,{children:n=>(0,i.jsx)("div",{className:t,children:r.Children.map(e,(e=>(0,r.cloneElement)(e,{language:n.language,translation:n.translation,translationTableReducer:n.translationTableReducer})))})})},oe=({language:e,translation:t,translationTableReducer:n})=>{const{Slot:s}=le(e.slug);return(0,i.jsx)(s,{bubblesVirtually:!0,as:"td",fillProps:{language:e,translation:t,translationTableReducer:n},className:"pll-feature-button-row-container"})},ie=()=>{const e=(0,d.useSelect)((e=>e(v).getLanguages())),t=pll_block_editor_plugin_settings?.authorizedLanguagesSlugs;return(0,r.useMemo)((()=>t?new Map(t.map((t=>{const n=e.get(t);return n?[t,n]:null})).filter(Boolean)):e),[e,t])},ce=({canUpdate:e,canCreate:t,canRead:n,language:s,currentPost:a})=>{const[l,o]=(0,r.useState)(a.translations[s.slug]?a.translations[s.slug]:null);if((0,r.useEffect)((()=>{o(a.translations[s.slug]?a.translations[s.slug]:null)}),[a,s,o]),e||n){const t=`${`${location.origin}/${(0,x.getPath)(location.href)}`.replace("post-new.php","post.php")}?post=${l}&action=edit`;return(0,i.jsx)(D,{href:t,language:s,disabled:!e})}return(0,i.jsx)(z,{href:pll_block_editor_plugin_settings.new_post_translation_links[s.slug],language:s,disabled:!t})},ue=({currentPost:e,translationsTable:t,tableDispatch:n})=>{const s=[],a=ie();return t.forEach(((l,r)=>{if(e.lang===r.slug)return null;const o=!l&&a.has(r.slug)&&(0,d.select)(y.store).canUser("create",{kind:"postType",name:e.type,lang:r.slug}),c=l&&(0,d.select)(y.store).canUser("update",{kind:"postType",name:e.type,id:l.id});s.push((0,i.jsx)("tr",{children:(0,i.jsxs)(Z,{language:r,children:[(0,i.jsx)(A,{children:(0,i.jsx)(ce,{canUpdate:c,canCreate:o,canRead:!!l,language:r,currentPost:e})}),(0,i.jsx)(oe,{language:r,translation:l,translationTableReducer:n}),(0,i.jsx)(k,{children:(0,i.jsx)(X,{language:r,source:e,translation:l,tableDispatch:n,translationsTable:t})})]})},r.slug))})),(0,i.jsx)(ae,{children:s})};const pe=()=>{if((0,E.isNil)((0,d.select)(b)))return Promise.reject("Polylang languages panel can't be initialized because block editor isn't fully initialized.");ge();const e=new Promise((function(e){const t=(0,d.subscribe)((function(){const n=(0,d.select)(b).getCurrentPost();(0,E.isEmpty)(n)||(t(),e(n))}))})),t=new Promise((function(e){const t=(0,d.subscribe)((function(){const n=(0,d.select)(v).getFromPost();if(!n||!n.id||!n.postType)return t(),void e(null);const s=(0,d.select)(j).getEntityRecord("postType",n.postType,n.id,{context:"view"});s&&s.id&&(t(),e(s))}))}));return Promise.all([e,t,de()]).then((function(e){const[t,n]=e;n&&n.id&&t.lang&&(0,d.dispatch)(b).editPost({translations:{...n.translations,[t.lang]:t.id}})}))},de=()=>new Promise((function(e){const t=(0,d.subscribe)((function(){const n=(0,d.select)(v)?.getLanguages();n?.size>0&&(t(),e(n))}))}));function ge(){const e=function(){if(!(0,E.isEmpty)(window.location.search))return new URLSearchParams(window.location.search);return null}(),t=e&&e.get("from_post"),n=e&&e.get("post_type"),s=e&&e.get("new_lang");t&&n&&s&&(0,d.dispatch)(v).setFromPost({id:wp.sanitize.stripTagsAndEncodeText(t),postType:wp.sanitize.stripTagsAndEncodeText(n),newLanguage:wp.sanitize.stripTagsAndEncodeText(s)})}function he(){const e=(0,d.select)(v).getLanguages();return Array.from(e.values()).find((e=>e.is_default))}function me(e,t){const n=(0,x.hasQueryArg)(e.path,"lang");((0,E.isUndefined)(e.filterLang)||e.filterLang)&&!n&&(e.path=(0,x.addQueryArgs)(e.path,{lang:t}))}function _e(e){const t=new URL(document.location).searchParams,n=t.get("postType"),s=t.get("postId"),a=(0,d.select)("core/edit-post")?.isEditingTemplate();("wp_template_part"===n&&!(0,E.isNil)(s)||a)&&function(e){e.path=(0,x.addQueryArgs)(e.path,{include_untranslated:!0})}(e)}function fe(){return document.getElementById("site-editor")||document.getElementById("edit-site-editor")?(0,d.select)(w).getEditedPostType():(0,d.select)(b).getCurrentPostType()}function xe({handleChange:e,languages:t,selectedLanguage:n=null,defaultValue:s=""}){const a=n?.slug?n.slug:s,l=(0,r.useMemo)((()=>Array.from(t.values()).map((({slug:e,name:t})=>({value:e,label:t})))),[t]);return(0,i.jsxs)("div",{id:"pll-language-select-control",children:[(0,i.jsx)(S,{language:n}),(0,i.jsx)(N.SelectControl,{value:a,onChange:t=>e(t),options:l,id:"pll_post_lang_choice",name:"pll_post_lang_choice",className:"post_lang_choice",__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0})]})}const ye=()=>{const e=(0,d.select)(b);return!e.getEditedPostAttribute("title")&&!e.getEditedPostContent()&&!e.getEditedPostAttribute("excerpt")},ve=e=>{const n=(0,d.select)(b);return ye()?t()({path:(0,x.addQueryArgs)(`wp/v2/posts/${n.getCurrentPostId()}`,{lang:e}),method:"POST"}):Promise.reject("Force save not required.")},be=({currentPost:e})=>{const[t,n]=(0,r.useState)(!1),[s,a]=(0,r.useState)(null),{createSuccessNotice:l,createErrorNotice:o}=(0,d.useDispatch)(g.store),c=ie();(0,r.useEffect)((()=>{a(c.get(e.lang))}),[e,c]);const u=(0,r.useRef)(s);(0,r.useEffect)((()=>{u.current=c.get(e.lang)}),[c,e]);const p=()=>n(!1),h=t=>{if(p(),!t)return void o((0,_.__)("Failed to save selected language","polylang-pro"),{type:"snackbar"});const n={...e.translations};delete n[u.current.slug],n.hasOwnProperty(s.slug)||(n[s.slug]=e.id);const a={...e.synchronizedPosts};var r,i;delete a[u.current.slug],(r=t,i={lang:t.slug,translations:n,pll_sync_post:a},Promise.allSettled([(0,d.dispatch)(b).editPost(i),(0,d.dispatch)(b).savePost(),ve(r.slug)]).then((()=>{(0,d.dispatch)(y.store).invalidateResolutionForStoreSelector("getEntityRecord"),(0,d.dispatch)(y.store).invalidateResolutionForStoreSelector("getEntityRecords"),(0,d.dispatch)(y.store).invalidateResolutionForStoreSelector("getMedia")}))).then((()=>{l((0,_.__)("Language changed","polylang-pro"),{type:"snackbar"}),pll_block_editor_plugin_settings.lang=t,document.dispatchEvent(new CustomEvent("onPostLangChoice",{detail:{lang:t}}))}))},m=()=>{a(u.current),p()};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("p",{children:(0,i.jsx)("strong",{children:(0,_.__)("Language","polylang-pro")})}),(0,i.jsx)("label",{className:"screen-reader-text",htmlFor:"pll_post_lang_choice",children:(0,_.__)("Language","polylang-pro")}),(0,i.jsx)(xe,{selectedLanguage:s,handleChange:e=>{const t=c.get(e);a(t),ye()?h(t):n(!0)},languages:c}),t&&(0,i.jsxs)(N.Modal,{title:(0,_.__)("Change language","polylang-pro"),onRequestClose:m,children:[(0,i.jsx)("p",{children:(0,_.__)("Are you sure you want to change the language of the current content?","polylang-pro")}),(0,i.jsxs)("div",{role:"group",className:"components-button-group buttons",children:[(0,i.jsx)(N.Button,{variant:"tertiary",onClick:m,type:"button",children:(0,_.__)("Cancel","polylang-pro")}),(0,i.jsx)("span",{children:" "}),(0,i.jsx)(N.Button,{variant:"primary",onClick:()=>h(s),type:"submit",children:(0,_.__)("Change","polylang-pro")})]})]})]})},we=(e,t)=>{switch(t.type){case"add_translation":return e.set(t.lang,t.post),new Map(e);case"remove_translation":return e.set(t.lang,null),new Map(e);case"set_table":return je(t.languages,t.translations);default:throw new Error("Invalid action")}},je=(e,t)=>{const n=new Map;return e.forEach((e=>{n.set(e,t[e.slug]??null)})),n},Pe=(e,t)=>{for(const[n,s]of t)if(n.slug===e)return s;return null},Te=()=>{const[e,t]=(0,r.useReducer)(we,new Map),n=(0,d.useSelect)((e=>e(v).getLanguages())),{currentPost:s,selectedLanguage:a,isAllowedPostType:l}=(0,d.useSelect)((e=>{const t=e(b).getCurrentPost(),n=e(b).getEditedPostAttribute("lang"),s=!T.includes(t?.type),a=function(e){const t=(0,d.select)(v).getLanguages();return t?t.get(e):null}(n);return{currentPost:t,selectedLanguage:a,isAllowedPostType:s}}),[]),o=(0,d.useSelect)((t=>{if(!s||!s.translations)return{};if("auto-draft"===s.status){const e=t(v).getFromPost();if(e){const n=t(y.store).getEntityRecord("postType",s.type,e.id,{context:"view"});n&&(s.translations={...n.translations,[s.lang]:s.id})}}const n={},a=t(y.store).getEntityRecords("postType",s.type,{include:Object.values(s.translations),context:"view",status:"any",per_page:Object.values(s.translations).length,lang:""});return a?.forEach((t=>{const s=Pe(t.lang,e);s&&s.id===t.id?n[t.lang]=s:n[t.lang]=t})),n}),[s,e]);return(0,r.useEffect)((()=>{t({type:"set_table",languages:n,translations:o})}),[o,n,t]),0===e.size?null:(0,i.jsxs)(L,{isError:!a,isAllowedPostType:l,postType:s?.type,children:[(0,i.jsx)(be,{currentPost:s}),(0,i.jsx)(ue,{currentPost:s,translationsTable:e,selectedLanguage:a,tableDispatch:t})]})},Ee={setLanguages:e=>({type:"SET_LANGUAGES",languages:e}),setFromPost:e=>({type:"SET_FROM_POST",fromPost:e}),fetchFromAPI:e=>({type:"FETCH_FROM_API",options:e})},Se=(0,d.createReduxStore)(v,{reducer(e=P,t){switch(t.type){case"SET_LANGUAGES":return{...e,languages:t.languages};case"SET_FROM_POST":return{...e,fromPost:t.fromPost};case"SET_CURRENT_TEMPLATE_PART":return{...e,currentTemplatePart:t.currentTemplatePart};default:return e}},selectors:{getLanguages:e=>e.languages,getFromPost:e=>e.fromPost},actions:Ee,controls:{FETCH_FROM_API:e=>t()({...e.options})},resolvers:{*getLanguages(){const e=yield Ee.fetchFromAPI({path:"/pll/v1/languages",filterLang:!1});return Ee.setLanguages(function(e,t){const n=new Map;return e.reduce((function(e,n){return e.set(n[t],n),e}),n),n}(e,"slug"))}}});(0,d.register)(Se);a((function(e){const t=function(){if((0,E.isUndefined)((0,d.select)(b)))return pll_block_editor_plugin_settings.lang.slug;const e=(0,d.select)(b).getEditedPostAttribute("lang");if(!(0,E.isUndefined)(e)&&e)return e;const t=new URL(document.location).searchParams,n=t.get("postType"),s=t.get("postId");if("wp_template_part"===n&&(0,E.isNil)(s))return pll_block_editor_plugin_settings.lang=he(),pll_block_editor_plugin_settings.lang.slug;const a=(()=>{const e=(0,d.select)(w);if(!e)return null;const t=e.getEditedPostContext(),n=t?.postType&&t?.postId?t:{postId:e.getEditedPostId(),postType:e.getEditedPostType()};return null===n?null:(0,d.select)(j).getEntityRecord("postType",n.postType,n.postId)})(),l=a?.lang;if(!(0,E.isUndefined)(l)&&l)return l;return pll_block_editor_plugin_settings.lang.slug}();return function(e){return!(0,E.isNil)(e.data)}(e)?(function(e){return"POST"===e.method&&e.path.match(/^\/wp\/v2\/template-parts(?:\/|\?|$)/)&&(0,E.isNil)(e.data.from_post)&&(0,E.isNil)(e.data.lang)}(e)&&me(e,he()?.slug),function(e){const t=(0,E.map)((0,d.select)("core").getEntitiesConfig("postType"),(0,E.property)("baseURL")),n=(0,d.select)("core/editor").getCurrentPostId(),s=e.data.id;return-1!==t.findIndex((function(t){return new RegExp(`${(0,E.escapeRegExp)(t)}`).test(e.path)}))&&n===s}(e)||function(e){return"POST"===e.method&&e.path.match(/^\/wp\/v2\/template-parts(?:\/|\?|$)/)&&!(0,E.isNil)(e.data.from_post)&&!(0,E.isNil)(e.data.lang)}(e)||me(e,t),function(e,t){const n=function(e){const t=(0,d.select)("core").getEntitiesConfig("postType"),n=(0,E.find)(t,{name:e});return n?.baseURL}("wp_template_part");if((0,E.isUndefined)(n))return;const s=new RegExp((0,E.escapeRegExp)(n));if("POST"===e.method&&s.test(e.path)){if(!(0,d.select)(v).getLanguages().get(t).is_default){const n="___"+t;e.data.slug+=n}}}(e,t),e):("wp_template"===fe()&&me(e,he()?.slug),new RegExp(/^\/wp\/v2\/template-parts\/?(?:\?.*)?$/).test(e.path)&&_e(e),me(e,t),e)}));const Ne="polylang-sidebar",Re=pll_block_editor_plugin_settings?.machine_translation?.errors,Ce=document.createElement("div");Ce.id="pll-root";const Le=document.body.appendChild(Ce);(0,r.createRoot)(Le).render((0,i.jsx)(p,{sidebar:()=>(0,i.jsx)(f,{SidebarSlot:l.PluginSidebar,MoreMenuItemSlot:l.PluginSidebarMoreMenuItem,sidebarName:Ne,children:(0,i.jsx)(Te,{})}),sidebarName:Ne,onPromise:pe,children:void 0!==Re&&(0,i.jsx)(m,{notices:Re})})),pe().then((()=>{(()=>{(0,u.registerPlugin)("pll-machine-translation",{render:()=>(0,i.jsx)(se,{children:(0,i.jsx)(I,{})})}),(0,u.registerPlugin)("pll-duplicate-content",{render:()=>(0,i.jsx)(se,{children:(0,i.jsx)(B,{})})});const e=e=>{const t=ie();return e?(0,i.jsx)(q,{post:e.translation,language:e.language,translationTableReducer:e.translationTableReducer,disabled:!t.has(e.language.slug)}):null},t=(0,d.select)(v).getLanguages();t&&0!==t.length&&t.forEach((t=>{(0,u.registerPlugin)(`pll-synchronization-${t.slug}`,{render:({fillProps:n})=>(0,i.jsx)(re,{className:"pll-sync-column pll-column-icon",languageSlug:t.slug,children:(0,i.jsx)(e,{fillProps:n})})})}))})()}))})(),this["polylang-pro"]={}})();

Directory Contents

Dirs: 0 × Files: 6
Name Size Perms Modified Actions
117.57 KB lrw-r--r-- 2026-06-02 09:29:17
Edit Download
25.43 KB lrw-r--r-- 2026-06-02 09:29:17
Edit Download
116.29 KB lrw-r--r-- 2026-06-02 09:29:17
Edit Download
20.65 KB lrw-r--r-- 2026-06-02 09:29:17
Edit Download
37.90 KB lrw-r--r-- 2026-06-02 09:29:17
Edit Download
6.04 KB lrw-r--r-- 2026-06-02 09:29:17
Edit Download
If ZipArchive is unavailable, a .tar will be created (no compression).
© 2026 0xNothings — Secure File Manager. All rights reserved. Built with ❤️ & Tailwind x Dark UI