�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: site.min.js Size: 20.65 KB
/home/m/c/i/mciraet/www/wp-content/plugins/polylang-pro/js/build/editors/site.min.js
(()=>{var e={20(e,t,n){"use strict";var s=n(677),a=Symbol.for("react.element"),r=Symbol.for("react.fragment"),l=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,r={},c=null,p=null;for(s in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(p=t.ref),t)l.call(t,s)&&!i.hasOwnProperty(s)&&(r[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps)void 0===r[s]&&(r[s]=t[s]);return{$$typeof:a,type:e,key:c,ref:p,props:r,_owner:o.current}}t.Fragment=r,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}()},324(e){e.exports=function(){return this.wp.editSite}()},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 r=t[s]={exports:{}};return e[s](r,r.exports,n),r.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var 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 r=n(324),l=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 p=n(125);const d=({sidebar:e,sidebarName:t,onPromise:n,children:s})=>(n().then((()=>{(0,p.registerPlugin)(t,{icon:c,render:e})}),(e=>{console.info(e)})),(0,i.jsx)(i.Fragment,{children:s}));var u=n(987);const g="pll/metabox",h="core/editor",m="core/edit-site",f="core",_={languages:[],selectedLanguage:{},translatedPosts:{},fromPost:null,currentTemplatePart:{}},x=["wp_template","wp_global_styles"],w=["page"];var y=n(419),j=n(172);function b(e){const t=(0,u.select)(g).getLanguages();return t?t.get(e):null}function v(){const e=(0,u.select)(g).getLanguages();return Array.from(e.values()).find((e=>e.is_default))}function T(e,t){const n=(0,j.hasQueryArg)(e.path,"lang");((0,y.isUndefined)(e.filterLang)||e.filterLang)&&!n&&(e.path=(0,j.addQueryArgs)(e.path,{lang:t}))}function P(e){const t=new URL(document.location).searchParams,n=t.get("postType"),s=t.get("postId"),a=(0,u.select)("core/edit-post")?.isEditingTemplate();("wp_template_part"===n&&!(0,y.isNil)(s)||a)&&function(e){e.path=(0,j.addQueryArgs)(e.path,{include_untranslated:!0})}(e)}function E(){return document.getElementById("site-editor")||document.getElementById("edit-site-editor")?(0,u.select)(m).getEditedPostType():(0,u.select)(h).getCurrentPostType()}const S=()=>{R();const e=new Promise((function(e){const t=(0,u.subscribe)((function(){(0,u.select)(m)&&(t(),e())}))}));return Promise.all([e,N()])},N=()=>new Promise((function(e){const t=(0,u.subscribe)((function(){const n=(0,u.select)(g)?.getLanguages();n?.size>0&&(t(),e(n))}))}));function R(){const e=(0,y.isEmpty)(window.location.search)?null:new URLSearchParams(window.location.search),t=e&&e.get("from_post"),n=e&&e.get("post_type"),s=e&&e.get("new_lang");t&&n&&s&&(0,u.dispatch)(g).setFromPost({id:wp.sanitize.stripTagsAndEncodeText(t),postType:wp.sanitize.stripTagsAndEncodeText(n),newLanguage:wp.sanitize.stripTagsAndEncodeText(s)})}const L=()=>{const e=(0,u.select)(m);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,u.select)(f).getEntityRecord("postType",n.postType,n.postId)},k=({onPromise:e})=>{const t=(0,l.useRef)({}),n=()=>{const e=L();return b(e?.lang)??"default"};return(0,l.useEffect)((()=>{const s=e=>{if(t.current=n(),t?.current.is_default||"default"===t?.current)return;const s=new URL(document.location.href).searchParams,a=new URL(e).searchParams;s.get("postId")!==a.get("postId")&&(0,u.dispatch)(f).invalidateResolutionForStore()};e().then((()=>{t.current=n()})),(e=>{const t=e.pushState,n=e.replaceState;e.pushState=(n,a,r)=>(s(r),t.apply(e,[n,a,r])),e.replaceState=(t,a,r)=>(s(r),n.apply(e,[t,a,r]))})(window.history)}),[e]),null};var C=n(75);const A=({SidebarSlot:e,MoreMenuItemSlot:t,sidebarName:n,children:s})=>{const a=(0,C.__)("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 M=n(488);const F=function({language:e}){return(0,y.isNil)(e)?(0,i.jsx)("span",{className:"pll-translation-icon",children:c}):(0,y.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"})})},I=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:"m10 1 3 6 6 .75-4.12 4.62L16 19l-6-3-6 3 1.13-6.63L1 7.75 7 7z"})}):"star-filled";var U=n(959);const O=()=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(U.Icon,{icon:I,className:"pll-default-lang-icon"}),(0,i.jsx)("span",{className:"screen-reader-text",children:(0,C.__)("Default language.","polylang-pro")})]}),D=({language:e,currentPost:t})=>{const n=(0,u.useSelect)((e=>e(f).getPostType(t.type)),[t]);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("p",{children:(0,i.jsx)("strong",{children:(0,C.__)("Language","polylang-pro")})}),(0,i.jsxs)("div",{className:"pll-language-item",children:[(0,i.jsx)(F,{language:e}),(0,i.jsx)("span",{className:"pll-language-name",children:e.name}),e.is_default&&(0,i.jsx)(O,{})]}),e.is_default&&(0,i.jsx)("div",{children:(0,i.jsx)("span",{className:"pll-metabox-info",children:"wp_template_part"===n?.slug??(0,C.__)("This template part is used for languages that have not yet been translated.","polylang-pro")})})]})},z=({children:e})=>(0,i.jsx)("div",{className:"components-panel__body is-opened",children:(0,i.jsx)("div",{className:"pll-metabox-location",children:e})}),B=({postType:e})=>"wp_template"===e?(0,i.jsx)("div",{className:"pll-metabox-error components-notice is-warning",children:(0,C.__)("Templates are not translatable, only template parts are.","polylang-pro")}):(0,i.jsx)("div",{className:"pll-metabox-error components-notice is-warning",children:(0,C.__)("This entity is not translatable.","polylang-pro")}),H=({isError:e,isAllowedPostType:t,postType:n,children:s})=>t?e?(0,i.jsx)(z,{children:(0,i.jsx)("div",{className:"pll-metabox-error components-notice is-error",children:(0,C.__)("Unable to retrieve the content language","polylang-pro")})}):(0,i.jsx)(z,{children:s}):(0,i.jsx)(z,{children:(0,i.jsx)(B,{postType:n})}),G=({children:e})=>(0,i.jsx)("td",{className:"pll-edit-column pll-column-icon",children:e}),V=({isDefault:e})=>(0,i.jsx)("td",{className:"pll-default-lang-column pll-column-icon",children:e&&(0,i.jsx)(O,{})}),$=({children:e})=>(0,i.jsx)("td",{className:"pll-delete-column pll-column-icon",children:e}),Q=({language:e})=>(0,i.jsx)("th",{className:"pll-language-column",children:(0,y.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})})}),Y=({children:e})=>(0,i.jsx)("td",{className:"pll-translation-column",children:e}),q=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",W=({language:e,href:t,disabled:n,handleAddClick:s=null})=>{const a=(0,C.sprintf)((0,C.__)("Add a translation in %s","polylang-pro"),e.name);return(0,i.jsx)(U.Button,{href:t,disabled:n,icon:q,label:a,className:"pll-button",onClick:s,"data-target-language":e.slug,children:(0,i.jsx)("span",{className:"screen-reader-text",children:a})})},J=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:"M12 4h3c.6 0 1 .4 1 1v1H3V5c0-.6.5-1 1-1h3c.2-1.1 1.3-2 2.5-2s2.3.9 2.5 2zM8 4h3c-.2-.6-.9-1-1.5-1S8.2 3.4 8 4zM4 7h11l-.9 10.1c0 .5-.5.9-1 .9H5.9c-.5 0-.9-.4-1-.9L4 7z"})}):"trash",K=({language:e,disabled:t,onClick:n})=>{const s=(0,C.sprintf)((0,C.__)("Delete the translation in %s","polylang-pro"),e.name);return(0,i.jsx)(U.Button,{icon:J,label:s,disabled:t,className:"pll-button",onClick:n,children:(0,i.jsx)("span",{className:"screen-reader-text",children:s})})};var X=n(672);const Z=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",ee=({language:e,href:t,disabled:n,handleEditClick:s=null})=>{const a=(0,C.sprintf)((0,C.__)("Edit the translation in %s","polylang-pro"),e.name);return(0,i.jsx)(U.Button,{href:t,disabled:n,icon:Z,label:a,className:"pll-button",onClick:s,"data-target-language":e.slug,children:(0,i.jsx)("span",{className:"screen-reader-text",children:a})})};n(2);n(989);const te=({language:e,children:t})=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Q,{language:e}),t]}),{Fill:ne,Slot:se}=(0,U.createSlotFill)("PluginFeatureFlagButton"),ae=({children:e,className:t})=>(0,i.jsx)(ne,{children:(0,i.jsx)("div",{className:t,children:e})});ae.Slot=se;const re=ae,le=({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,C.__)("Translations","polylang-pro")})}),(0,i.jsx)(re.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})})]});const oe=()=>{const e=(0,u.useSelect)((e=>e(g).getLanguages())),t=pll_block_editor_plugin_settings?.authorizedLanguagesSlugs;return(0,l.useMemo)((()=>t?new Map(t.map((t=>{const n=e.get(t);return n?[t,n]:null})).filter(Boolean)):e),[e,t])};const ie=({isDefaultLang:e})=>(0,i.jsxs)(i.Fragment,{children:[e?(0,i.jsxs)("p",{children:[(0,C.__)("You are about to delete an entity in the default language.","polylang-pro"),(0,i.jsx)("br",{}),(0,C.__)("This will delete its customizations and all its corresponding translations.","polylang-pro")]}):null,(0,i.jsx)("p",{children:(0,C.__)("Are you sure you want to delete this translation?","polylang-pro")})]}),ce=()=>{const{deleteEntityRecord:e}=(0,u.useDispatch)(M.store),{createSuccessNotice:t,createErrorNotice:n}=(0,u.useDispatch)(X.store);return{handleDelete:async s=>{try{const n=!w.includes(s.type);await e("postType",s.type,s.id,{force:n},{throwOnError:!0}),t((0,C.__)("The translation has been deleted.","polylang-pro"),{type:"snackbar"})}catch(e){n((0,C.sprintf)((0,C.__)("Unable to delete the translation. %s","polylang-pro"),e?.message),{type:"snackbar"})}}}},pe=(e,t)=>{if(!e.is_default||"page"===t)return;const n=window.location.origin+wp.sanitize.stripTags(window.location.pathname),s={};switch(t){case"wp_navigation":s.path="/navigation";break;case"wp_block":s.path="/patterns",s.categoryType=t;break;case"wp_template_part":s.path="/"+t+"/all"}location.href=(0,j.addQueryArgs)(n,s)},de=({post:e,language:t,onDeleteSuccess:n})=>{const[s,a]=(0,l.useState)(!1),r=()=>a(!1),o=oe(),c=(0,u.useSelect)((t=>e&&t(M.store).canUser("delete",{kind:"postType",name:e.type,id:e.id})),[e]),{handleDelete:p}=ce();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(K,{onClick:()=>a(!0),language:t,disabled:!c||!o.has(t.slug)}),s&&(0,i.jsxs)(U.Modal,{title:"Delete",onRequestClose:r,children:[(0,i.jsx)(ie,{isDefaultLang:t.is_default&&"page"!==e?.type}),(0,i.jsxs)("div",{role:"group",className:"components-button-group buttons",children:[(0,i.jsx)(U.Button,{variant:"tertiary",onClick:r,type:"button",children:(0,C.__)("Cancel","polylang-pro")}),(0,i.jsx)("span",{children:" "}),(0,i.jsx)(U.Button,{variant:"primary",onClick:()=>{p(e,e.type).then((()=>n())),r(),pe(t,e.type)},type:"submit",children:(0,C.__)("Delete","polylang-pro")})]})]})]})},ue=()=>(0,l.useMemo)((()=>{const e=(0,u.select)(g).getLanguages(),t=Array.from(e.values()).find((e=>e.is_default));if(!t)throw new Error((0,C.__)("Default language not found, please check your languages settings.","polylang-pro"));return t}),[]),ge=()=>{const{createSuccessNotice:e,createErrorNotice:n}=(0,u.useDispatch)(X.store),{saveEntityRecord:s}=(0,u.useDispatch)(M.store),a=ue();return{handleCreateTranslation:async(s,a)=>{try{const n=await t()({path:"/pll/v1/translation",method:"POST",data:{from_post:"wp_template_part"===a.type||"wp_template"===a.type?a.wp_id:a.id,lang:s.slug,action:"duplicate"}});e((0,C.__)("The translation is created, you will be redirected.","polylang-pro"),{type:"snackbar"});const r="wp_template_part"===a.type||"wp_template"===a.type?a.slug:a.id,l="wp_template_part"===n.type||"wp_template"===n.type?n.slug:n.id;location.href=location.href.replace(encodeURIComponent(r),encodeURIComponent(l))}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,C.__)("An error occurred while creating the translation.","polylang-pro");n(t,{type:"snackbar"})}},persistDefaultLanguageTemplatePart:(0,l.useCallback)((e=>{const t=s("postType","wp_template_part",{id:e.id,lang:a.slug,slug:e.slug});return t.catch((e=>{const t=e.message&&"unknown_error"!==e.code?e.message:(0,C.__)("An error occurred while persisting the default language template part.","polylang-pro");n(t,{type:"snackbar"})})),t}),[a,s,n])}},he=({canUpdate:e,canCreate:t,canRead:n,language:s,currentPost:a,translation:r,handleCreateTranslation:l})=>e||n?(0,i.jsx)(ee,{href:"#",disabled:!e,language:s,handleEditClick:()=>{location.href=location.href.replace(encodeURIComponent(a.id),encodeURIComponent(r.id))}}):(0,i.jsx)(W,{href:"#",disabled:!t,language:s,handleAddClick:()=>{l()}}),me=({translationsTable:e,currentPost:t,translationsTableDispatch:n})=>{const{handleCreateTranslation:s,persistDefaultLanguageTemplatePart:a}=ge(),r=[];return e.forEach(((e,l)=>{if(t?.lang===l.slug)return;const o=(0,u.select)(M.store).canUser("create",{kind:"postType",name:t.type}),c=e&&(0,u.select)(M.store).canUser("update",{kind:"postType",name:t.type,id:t.id});r.push((0,i.jsx)("tr",{children:(0,i.jsxs)(te,{language:l,children:[(0,i.jsx)(Y,{children:(0,i.jsx)("span",{className:"pll-translation-language",children:l.name})}),(0,i.jsx)(G,{children:(0,i.jsx)(he,{canUpdate:c,canCreate:o,canRead:!!e,language:l,currentPost:t,translation:e,handleCreateTranslation:()=>{l.is_default||"wp_template_part"!==t.type||t.wp_id?s(l,t):a(t).then((e=>{s(l,e)}))}})}),(0,i.jsx)($,{children:(0,i.jsx)(de,{post:e,language:l,onDeleteSuccess:function(){n({type:"remove_translation",lang:l})}})}),(0,i.jsx)(V,{isDefault:l.is_default})]})},l.slug))})),(0,i.jsx)(le,{children:r})},fe=(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 _e(t.languages,t.translations);default:throw new Error("Invalid action")}},_e=(e,t)=>{const n=new Map;return e.forEach((e=>{n.set(e,t[e.slug]??null)})),n},xe=()=>{const[e,t]=(0,l.useReducer)(fe,new Map),[n,s]=(0,l.useState)({}),[a,r]=(0,l.useState)({}),[o,c]=(0,l.useState)(""),p=(0,u.useSelect)((e=>e(g).getLanguages()));(0,l.useEffect)((()=>{let e;if("/wp_global_styles"===wp.sanitize.stripTagsAndEncodeText((0,j.getQueryArg)(window.location.href,"path"))&&(e="wp_global_styles"),"wp_template"===wp.sanitize.stripTagsAndEncodeText((0,j.getQueryArg)(window.location.href,"postType"))&&(e="wp_template"),e)return void c(e);const t=L();s(t),c(t?.type);const n=b(t?.lang);r(n)}),[s,c,r,p,e]);const d=(0,u.useSelect)((e=>{if(!n||!n.translations)return{};const t={};if("wp_template_part"!==n.type){const s=e(M.store).getEntityRecords("postType",n.type,{include:Object.values(n.translations),status:"any",context:"view",per_page:Object.values(n.translations).length,lang:""});s?.forEach((e=>{t[e.lang]=e}))}else new Map(Object.entries(n.translations)).forEach(((n,s)=>{const a=e(M.store).getEntityRecords("postType","wp_template_part",{wp_id:n});a&&a.length>0&&(t[s]=a[0])}));return t}),[n]);return(0,l.useEffect)((()=>{t({type:"set_table",languages:p,translations:d})}),[d,p,t]),0===e.size?null:(0,i.jsxs)(H,{isError:!a,isAllowedPostType:!x.includes(o),postType:o,children:[(0,i.jsx)(D,{language:a,currentPost:n}),(0,i.jsx)(me,{translationsTable:e,currentPost:n,translationsTableDispatch:t})]})};const we={setLanguages:e=>({type:"SET_LANGUAGES",languages:e}),setFromPost:e=>({type:"SET_FROM_POST",fromPost:e}),fetchFromAPI:e=>({type:"FETCH_FROM_API",options:e})},ye=(0,u.createReduxStore)(g,{reducer(e=_,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:we,controls:{FETCH_FROM_API:e=>t()({...e.options})},resolvers:{*getLanguages(){const e=yield we.fetchFromAPI({path:"/pll/v1/languages",filterLang:!1});return we.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,u.register)(ye),a((function(e){const t=function(){if((0,y.isUndefined)((0,u.select)(h)))return pll_block_editor_plugin_settings.lang.slug;const e=(0,u.select)(h).getEditedPostAttribute("lang");if(!(0,y.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,y.isNil)(s))return pll_block_editor_plugin_settings.lang=v(),pll_block_editor_plugin_settings.lang.slug;const a=L(),r=a?.lang;if(!(0,y.isUndefined)(r)&&r)return r;return pll_block_editor_plugin_settings.lang.slug}();return function(e){return!(0,y.isNil)(e.data)}(e)?(function(e){return"POST"===e.method&&e.path.match(/^\/wp\/v2\/template-parts(?:\/|\?|$)/)&&(0,y.isNil)(e.data.from_post)&&(0,y.isNil)(e.data.lang)}(e)&&T(e,v()?.slug),function(e){const t=(0,y.map)((0,u.select)("core").getEntitiesConfig("postType"),(0,y.property)("baseURL")),n=(0,u.select)("core/editor").getCurrentPostId(),s=e.data.id;return-1!==t.findIndex((function(t){return new RegExp(`${(0,y.escapeRegExp)(t)}`).test(e.path)}))&&n===s}(e)||function(e){return"POST"===e.method&&e.path.match(/^\/wp\/v2\/template-parts(?:\/|\?|$)/)&&!(0,y.isNil)(e.data.from_post)&&!(0,y.isNil)(e.data.lang)}(e)||T(e,t),function(e,t){const n=function(e){const t=(0,u.select)("core").getEntitiesConfig("postType"),n=(0,y.find)(t,{name:e});return n?.baseURL}("wp_template_part");if((0,y.isUndefined)(n))return;const s=new RegExp((0,y.escapeRegExp)(n));if("POST"===e.method&&s.test(e.path)){if(!(0,u.select)(g).getLanguages().get(t).is_default){const n="___"+t;e.data.slug+=n}}}(e,t),e):("wp_template"===E()&&T(e,v()?.slug),new RegExp(/^\/wp\/v2\/template-parts\/?(?:\?.*)?$/).test(e.path)&&P(e),T(e,t),e)}));const je="polylang-sidebar",be=document.createElement("div");be.id="pll-root";const ve=document.body.appendChild(be);(0,l.createRoot)(ve).render((0,i.jsx)(d,{sidebar:()=>(0,i.jsx)(A,{SidebarSlot:r.PluginSidebar,MoreMenuItemSlot:r.PluginSidebarMoreMenuItem,sidebarName:je,children:(0,i.jsx)(xe,{})}),sidebarName:je,onPromise:S,children:(0,i.jsx)(k,{onPromise:S})}))})(),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