....................................../////.===Shadow-Here===./////................................................ > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < ------------------------------------------------------------------------------------------------------------------- /////////////////////////////////////////////////////////////////////////////////////////////////////////////////// RIFF¤ WEBPVP8 ˜ ðÑ *ôô>‘HŸK¥¤"§£±¨àð enü¹%½_F‘åè¿2ºQú³íªú`N¿­3ÿƒügµJžaÿ¯ÿ°~¼ÎùnúîÞÖô•òíôÁÉß®Sm¥Ü/ ‡ó˜f£Ùà<˜„xëJ¢Ù€SO3x<ªÔ©4¿+ç¶A`q@Ì“Úñè™ÍÿJÌ´ª-˜ÆtÊÛL]Ïq*‘Ý”ì#ŸÌÏãY]@ê`¿ /ªfkØB4·®£ó z—Üw¥Pxù–ÞLШKÇN¾AkÙTf½è'‰g gÆv›Øuh~ a˜Z— ïj*á¥t d£“uÒ ¨`K˜¹ßþ]b>˜]_ÏÔ6W—è2r4x•íÖ…"ƒÖNîä!¦å Ú}ýxGøÌ —@ ;ÆÚŠ=ɾ1ý8lªË¥ô ^yf®Œ¢u&2©nÙÇ›ñÂñŒ³ aPo['½»øFùà­+4ê“$!lövlüÞ=;N®3ð‚õ›DÉKòÞ>ÄÍ ¥ˆuߤ#ˆ$6ù™¥îЇy’ÍB¼ çxÛ;X"WL£R÷͝*ó-¶Zu}º.s¸sšXqù–DþÿvªhüïwyŸ ¯é³lÀ:KCûÄ£Ëá\…­ ~—ýóî ¼ûûÜTÓüÇy…ŽÆvc»¾×U ñ¸žþоP÷¦ó:Ò¨¨5;Ð#&#ÖúñläÿÁœ GxÉ­/ñ‡áQðìYÉtÒw޼GÔ´zàÒò ð*ëzƒ•4~H]Ø‹f ñÓÈñ`NåWçs'ÆÏW^ø¹!XžµmQ5ÃËoLœÎ: ÞËÍ¥J ù…î èo£ßPÎñ¶ž8.Œ]ʵ~5›ÙË-ù*8ÙÖß±~ ©¹rÓê‚j¶d¸{^Q'˜±Crß ÚH—#¥¥QlÀ×ëã‡DÜ«èî þ&Çæžî;ŽÏºò6ÒLÃXy&ZŒ'j‚¢Ù€IßÚù+–MGi‰*jE€‘JcÜ ÓÌ EÏÚj]o˜ Þr <¾U ûŪæÍ/šÝH¥˜b”¼ ÁñßX GP›ï2›4WŠÏà×£…íÓk†¦H·ÅíMh–*nó÷à]ÁjCº€b7<ب‹¨5車bp2:Á[UªM„QŒçiNMa#<5›áËó¸HýÊ"…×Éw¹¦ì2º–x<›»a±¸3Weü®FÝ⑱ö–î–³|LPÈ~çð~Çå‡|º kD¢µÏàÆAI %1À% ¹Ò – ”ϝS¦‰4&¶£°à Öý”û_Ò Áw°A«Å€?mÇÛgHÉ/8)á¾ÛìáöŽP í¨PŸNÙµº¦‡§Ùš"ÿ«>+ªÕ`Ê÷‡‚ß Õû˜þãÇ-PÍ.¾XV‘€ dÜ"þ4¹ ±Oú‘©t¥¦FªÄÃÄ•b‚znýu½—#cDs˜ÃiÑOˆñ×QO=*IAÊ,¶ŽZƒ;‡wøXè%EÐk:F±Ú” .Ѽ+Áu&Ç`."pÈÉw o&¿dE6‘’EqTuK@Ì¥ã™À(Êk(h‰,H}RÀIXÛš3µ1©_OqÚÒJAñ$ÊÙÜ;D3çŒ[þùœh¬Ã³™ö6ç†NY".Ú‰ï[ªŸŒ '²Ð öø_¨ÂÉ9ué¶³ÒŠõTàîMØ#û¯gN‡bÙ놚X„ö …ÉeüÌ^J ‹€.œ$Æ)βÄeæW#óüßĺŸ€ ÀzwV 9oä»f4V*uB «Ë†¹ì¯žR霓æHXa=&“I4K;¯ç‹h×·"UŠ~<•╪Vêª&ÍSÃÆÅ?ÔqÎ*mTM ˜›µwêd#[C¡©§‘D<©àb†–ÁœøvH/,í:¯( ²£|4-„Æövv„Yͼ™^Á$ˆ„¢Û[6yB.åH*V¨æ?$=˜Ñ€•ñ·­(VlŸ‘ nÀt8W÷´Bûba?q9ú¶Xƒl«ÿ\ù¶’þòUÐj/õ¢Ìµ³g$ƒÎR!¸»|Oߍë’BhîÚÑ¢ñåŒJ„®„£2Ð3•ô02Nt…!£Í]Ïc½Qÿ?ˆ<&ÃA¾Ú,JˆijÌ#5yz„‰Î|ÊŽ5QÏ:‹ÐaóVÔxW—CpeÏzÐïíçôÿÅ_[hãsÐ_/ŽTÝ?BîˆííV$<¿i>²F¬_Eß¿ †bÊŒº­ÿ®Z H“C}”¬,Mp ý/Bá£w>˜YV°aƒúh+cŠ- r/[%|üUMHäQ°X»|û/@|°¥Ð !BÔ Ç¢Ä©š+Õì D«7ìN¶ŽðÔ " ƶ’ÖçtA‰Û×}{tþz­¾GÍ›k¹OEJR$ Â׃ «ëÁ"oÉôž$oUK(Ä)Ãz³Ê-‹êN[Ò3Œñbï8P 4ƒ×q¢bo|?<ÛX¬òÄͰL–±›(™ûG?ýË©ÚÄ–ÂDØÐ_Ç¡ô ¾–ÄÏø ×e8Ë©$ÄF¹Å‹ì[©óìl:F¾f´‹‹Xì²ï®\¬ôùƒ ÿat¥óèÒùHß0äe‚;ü×h:ÆWðHž=Ã8骣"kœ'Y?³}Tûè€>?0l›e1Lòñ„aæKÆw…hÖŠùW…ÈÆÄ0ši·›[pcwËþñiêíY/~-Á5˜!¿†A›™Mÿþ(±“t@â“ö2­´TG5yé]çå僳 .·ÍïçÝ7UÚ±Ð/Nè»,_Ï ùdj7\ï Wì4›„»c¸àešg#ÒÊ⥭áØo5‘?ÌdÝô¯ ¹kzsƒ=´#ëÉK›Ø´±-¥eW?‡çßtòTã…$Ý+qÿ±ƒ÷_3Ô¥í÷:æ–ž<·Ö‡‰Å¢ š‡%Ô—utÌÈìðžgÖÀz²À—ï÷Óîäõ{K'´È÷³yaÏÁjƒô}ž§®æÊydÕÈë5¯èˆõvÕ©ã*çD„ “z„Ó‡^^xÂ3M§A´JG‚öï 3W'ˆ.OvXè¡ÊÕª?5º7†˜(˜Ç¶#çê’¶!ÌdZK§æ 0fãaN]òY³RV ™î$®K2R¨`W!1Ôó\;Ý ýB%qæK•&ÓÈe9È0êI±žeŸß -ú@žQr¦ ö4»M¼Áè¹µmw 9 EÆE_°2ó„ŸXKWÁ×Hóì^´²GѝF©óäR†¦‰ç"V»eØ<3ùd3ÿÚ¤Žú“Gi" —‘_ÙËÎ~Üö¯¥½Î»üŸEÚŽåmÞþí ;ÞólËΦMzA"Âf(´òá;Éï(/7½ûñÌ­cïÕçлþÝz¾-ÍvÑ“pH­–ðÓj$¸Äû¤‚‘ãUBË-n“2åPkS5&‹Â|+g^œ®Ì͆d!OïäîU«c;{Û!ÅŽ«ëZ9Ókóˆ]¯ƒ›né `ÇÒ+tÆš (ØKá¾—=3œ®•vuMñg²\ï Ec€ 05±d™‡×iÇ×›UúvÌ¢£Èþ¡ÕØô¶ßÎA"ß±#Ö²ˆÊŸ¦*Ä~ij|àø.-¼'»Ú¥£h ofº¦‡VsR=N½„Î v˜Z*SÌ{=jÑB‹tê…;’HžH¯8–îDù8ñ¢|Q•bÛçš–‹m³“ê¨ åÏ^m¬Žãþ©ïêO‡½6] µÆ„Ooòü ²x}N¦Ë3ïé¿»€›HA˜m%çÞ/¿í7Fø“‹léUk)É°Œµ8Q8›:ÀŠeT*šõ~ôڝG6 ¢}`ùH­–”¡k ‰P1>š†®9z11!X wKfmÁ¦xÑ,N1Q”–æB¶M…ÒÃv6SMˆhU¬ÊPŽï‘öj=·CŒ¯u¹ƒVIЃsx4’ömÛýcå¡¶7ßŠß 57^\wÒÐÆ k§h,Œý î«q^R½3]J¸ÇðN ‚çU¬ôº^Áì} ³f©Õœ§ˆã:FÄÈ‚é(€™?àýÓüè1Gô£¼éj‚OÅñ  #>×—ßtà 0G¥Åa뀐kßhc™À_ÉñÞ#±)GD" YîäË-ÿÙ̪ ¹™a¯´¢E\ÝÒö‚;™„ë]_ p8‰o¡ñ+^÷ 3‘'dT4œŽ ðVë½° :¬víÑ«£tßÚS-3¶“þ2 †üüʨòrš¹M{É_¤`Û¨0ìjœøJ‡:÷ÃáZ˜†@GP&œÑDGÏs¡þ¦þDGú‘1Yá9Ôþ¼ ûø…§÷8&–ÜÑnÄ_m®^üÆ`;ÉVÁJ£?â€-ßê}suÍ2sõA NÌúA磸‘îÿÚ»ƒìö·á¿±tÑÐ"Tÿü˜[@/äj¬€uüªìù¥Ý˜á8Ý´sõj 8@rˆð äþZÇD®ÿUÏ2ùôõrBzÆÏÞž>Ì™xœ“ wiÎ×7_… ¸ \#€MɁV¶¥üÕÿPÔ9Z‡ø§É8#H:ƒ5ÀÝå9ÍIŒ5åKÙŠ÷qÄ>1AÈøžj"µÂд/ªnÀ qªã}"iŸBå˜ÓÛŽ¦…&ݧ;G@—³b¯“•"´4í¨ôM¨åñC‹ïùÉó¯ÓsSH2Ý@ßáM‡ˆKÀªÛUeø/4\gnm¥‹ŸŒ qÄ b9ÞwÒNÏ_4Ég³ú=܆‚´ •â¥õeíþkjz>éÚyU«Íӝ݃6"8/ø{=Ô¢»G¥ äUw°W«,ô—¿ãㆅү¢³xŠUû™yŒ (øSópÐ 9\åTâ»—*oG$/×ÍT†Y¿1¤Þ¢_‡ ¼ „±ÍçèSaÓ 3ÛMÁBkxs‰’R/¡¤ˆÙçª(*õ„üXÌ´ƒ E§´¬EF"Ù”R/ÐNyÆÂ^°?™6¡œïJ·±$§?º>ÖüœcNÌù¯G ‹ñ2ЁBB„^·úìaz¨k:#¨Æ¨8LÎõލ£^§S&cŒÐU€ü(‡F±Š¼&P>8ÙÁ ‰ p5?0ÊÆƒZl¸aô š¼¡}gÿ¶zÆC²¹¬ÎÖG*HB¡O<º2#ñŒAƒ–¡B˜´É$¥›É:FÀÔx¾u?XÜÏÓvN©RS{2ʈãk9rmP¼Qq̳ è¼ÐFׄ^¡Öì fE“F4A…!ì/…¦Lƒ… … $%´¾yã@CI¬ á—3PþBÏNÿ<ý°4Ü ËÃ#ØÍ~âW«rEñw‹eùMMHß²`¬Öó½íf³:‹k˜¯÷}Z!ã¿<¥,\#öµÀ¯aÒNÆIé,Ћ–lŽ#Àæ9ÀÒS·I’½-Ïp Äz¤Š Â* ­íÄ9­< h>׍3ZkËU¹§˜ŒŠ±f­’¤º³Q ÏB?‹#µíÃ¥®@(Gs«†vI¥Mµ‹Á©e~2ú³ÁP4ìÕi‚²Ê^ö@-DþÓàlÜOÍ]n"µã:žpsŽ¢:! Aõ.ç~ÓBûH÷JCÌ]õVƒd «ú´QÙEA–¯¯Œ!.ˆˆëQ±ù œ·Ì!Õâ )ùL„ÅÀlÚè5@B…o´Æ¸XÓ&Û…O«˜”_#‡ƒ„ûÈt!¤ÁÏ›ÎÝŠ?c9 â\>lÓÁVÄÑ™£eØY]:fÝ–—ù+p{™ðè û³”g±OƒÚSù£áÁÊ„ä,ï7š²G ÕÌBk)~ÑiCµ|h#u¤¶îK¨² #²vݯGãeÖ϶ú…¾múÀ¶þÔñ‚Š9'^($¤§ò “š½{éúp÷J›ušS¹áªCÂubÃH9™D™/ZöØÁ‡¦ÝÙŸ·kð*_”.C‹{áXó€‡c¡c€§/šò/&éš÷,àéJþ‰X›fµ“C¨œ®r¬"kL‰Â_q…Z–.ÉL~O µ›zn‚¹À¦Öª7\àHµšÖ %»ÇníV[¥*Õ;ƒ#½¾HK-ÖIÊdÏEÚ#=o÷Óò³´Š: Ç?{¾+9›–‘OEáU·S€˜j"ÄaÜ ŒÛWt› á–c#a»pÔZÞdŽtWê=9éöÊ¢µ~ ë ;Öe‡Œ®:bî3±ýê¢wà¼îpêñ¹¾4 zc¾ðÖÿzdêŒÑÒŝÀ‰s6¤í³ÎÙB¿OZ”+F¤á‡3@Ñëäg©·Ž ˆèª<ù@É{&S„œÕúÀA)‰h:YÀ5^ÂÓŒ°õäU\ ùËÍû#²?Xe¬tu‰^zÒÔãë¼ÛWtEtû …‚g¶Úüâî*moGè¨7%u!]PhÏd™Ý%Îx: VÒ¦ôÊD3ÀŽKÛËãvÆî…N¯ä>Eró–ð`5 Œ%u5XkñÌ*NU%¶áœÊ:Qÿú»“úzyÏ6å-၇¾ ´ ÒÊ]y žO‘w2Äøæ…H’²f±ÎÇ.ª|¥'gîV•Ü .̘¯€šòü¤U~Ù†*¢!?ò wý,}´°ÔÞnïoKq5µb!áÓ3"vAßH¡³¡·G(ÐÎ0Îò¼MG!/ài®@—¬04*`…«é8ªøøló“ˆÊ”èù¤…ßÊoÿé'ËuÌÖ5×È¡§ˆˆfŽë9}hìâ_!!¯  B&Ëö¶‰ÀAÙNVŸ Wh›¸®XÑJì¨ú“¿÷3uj²˜¨ÍÎìë±aúŠÝå¯ð*Ó¨ôJ“yºØ)m°WýOè68†ŸÏ2—‰Ïüꪫٚ¥‹l1 ø ÏÄFjêµvÌbü¦èÝx:X±¢H=MÐß—,ˆÉÇ´(9ú¾^ÅÚ4¿m‡$âX‘å%(AlZo@½¨UOÌÕ”1ø¸jÎÀÃÃ_ µ‘Ü.œº¦Ut: Æï’!=¯uwû#,“pþÇúŒø(é@?³ü¥‘Mo §—s@Œ#)§ŒùkL}NOÆêA›¸~r½¼ÙA—HJ«eˆÖ´*¡ÓpÌŸö.m<-"³ûÈ$¬_6­åf£ïÚâj1y§ÕJ½@dÞÁr&Í\Z%D£Íñ·AZ Û³øüd/ªAi†/Й~  ‡âĮҮÏh§°b—›Û«mJžòG'[ÈYýŒ¦9psl ýÁ ®±f¦x,‰½tN ‚Xª9 ÙÖH.«Lo0×?͹m¡å†Ѽ+›2ƒF ±Ê8 7Hցϓ²Æ–m9…òŸï]Â1äN†VLâCˆU .ÿ‰Ts +ÅÎx(%¦u]6AF Š ØF鈄‘ |¢¶c±soŒ/t[a¾–û:s·`i햍ê›ËchÈ…8ßÀUÜewŒðNOƒõD%q#éû\9¤x¹&UE×G¥ Í—™$ð E6-‡¼!ýpãÔM˜ Âsìe¯ñµK¢Ç¡ùôléœ4Ö£”À Š®Ðc ^¨À}ÙËŸ§›ºê{ÊuÉC ×Sr€¤’fÉ*j!úÓ’Gsùìoîßîn%ò· àc Wp÷$¨˜)û»H ×8ŽÒ€Zj¤3ÀÙºY'Ql¦py{-6íÔCeiØp‘‡XÊîÆUߢ܂ž£Xé¼Y8þ©ëgñß}é.ÎógÒ„ÃØËø¯»™§Xýy M%@NŠ À(~áÐvu7&•,Ù˜ó€uP‡^^®=_E„jt’ 403WebShell
403Webshell
Server IP : 104.21.3.15  /  Your IP : 162.159.115.2
Web Server : Apache
System : Linux host6.northwind.al 3.10.0-1160.76.1.el7.x86_64 #1 SMP Wed Aug 10 16:21:17 UTC 2022 x86_64
User : elettreviso ( 1011)
PHP Version : 8.1.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/elettreviso/public_html/wp-content/plugins/wordpress-seo/js/dist/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/elettreviso/public_html/wp-content/plugins/wordpress-seo/js/dist/how-to-block.js
(()=>{"use strict";var t={n:s=>{var e=s&&s.__esModule?()=>s.default:()=>s;return t.d(e,{a:e}),e},d:(s,e)=>{for(var o in e)t.o(e,o)&&!t.o(s,o)&&Object.defineProperty(s,o,{enumerable:!0,get:e[o]})},o:(t,s)=>Object.prototype.hasOwnProperty.call(t,s)};const s=window.wp.blockEditor,e=window.wp.blocks,o=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"version":"22.7","name":"yoast/how-to-block","title":"Yoast How-to","description":"Create a How-to guide in an SEO-friendly way. You can only use one How-to block per post.","category":"yoast-structured-data-blocks","icon":"editor-ol","keywords":["How-to","How to","Schema","SEO","Structured Data"],"supports":{"multiple":false},"textdomain":"wordpress-seo","attributes":{"hasDuration":{"type":"boolean"},"days":{"type":"string"},"hours":{"type":"string"},"minutes":{"type":"string"},"description":{"type":"string","source":"html","selector":".schema-how-to-description"},"jsonDescription":{"type":"string"},"steps":{"type":"array"},"additionalListCssClasses":{"type":"string"},"unorderedList":{"type":"boolean"},"durationText":{"type":"string"},"defaultDurationText":{"type":"string"}},"example":{"attributes":{"steps":[{"id":"how-to-step-example-1","name":[],"text":[]},{"id":"how-to-step-example-2","name":[],"text":[]}]}},"editorScript":"yoast-seo-how-to-block","editorStyle":"yoast-seo-structured-data-blocks"}'),i=window.yoast.propTypes;var n=t.n(i);const r=window.yoast.styledComponents;var a=t.n(r);const h=window.wp.i18n,p=window.wp.a11y,d=window.lodash,c=window.wp.element,u=window.ReactJSXRuntime,l=function(t){return class extends c.Component{render(){return(0,u.jsxs)(c.Fragment,{children:[(0,u.jsx)(t,{...this.props})," "]})}}},m=window.wp.isShallowEqual,w=window.wp.components,x=l(s.RichText.Content);class g extends c.Component{constructor(t){super(t),this.onSelectImage=this.onSelectImage.bind(this),this.onInsertStep=this.onInsertStep.bind(this),this.onRemoveStep=this.onRemoveStep.bind(this),this.onMoveStepUp=this.onMoveStepUp.bind(this),this.onMoveStepDown=this.onMoveStepDown.bind(this),this.onFocusText=this.onFocusText.bind(this),this.onFocusTitle=this.onFocusTitle.bind(this),this.onChangeTitle=this.onChangeTitle.bind(this),this.onChangeText=this.onChangeText.bind(this)}onInsertStep(){this.props.insertStep(this.props.index)}onRemoveStep(){this.props.removeStep(this.props.index)}onMoveStepUp(){this.props.isFirst||this.props.onMoveUp(this.props.index)}onMoveStepDown(){this.props.isLast||this.props.onMoveDown(this.props.index)}onFocusTitle(){this.props.onFocus(this.props.index,"name")}onFocusText(){this.props.onFocus(this.props.index,"text")}onChangeTitle(t){const{onChange:s,index:e,step:{text:o,name:i}}=this.props;s(t,o,i,o,e)}onChangeText(t){const{onChange:s,index:e,step:{text:o,name:i}}=this.props;s(i,t,i,o,e)}getMediaUploadButton(t){return(0,u.jsx)(w.Button,{className:"schema-how-to-step-button how-to-step-add-media",icon:"insert",onClick:t.open,children:(0,h.__)("Add image","wordpress-seo")})}getButtons(){const{step:t}=this.props;return(0,u.jsxs)("div",{className:"schema-how-to-step-button-container",children:[!g.getImageSrc(t.text)&&(0,u.jsx)(s.MediaUpload,{onSelect:this.onSelectImage,allowedTypes:["image"],value:t.id,render:this.getMediaUploadButton}),(0,u.jsx)(w.Button,{className:"schema-how-to-step-button",icon:"trash",label:(0,h.__)("Delete step","wordpress-seo"),onClick:this.onRemoveStep}),(0,u.jsx)(w.Button,{className:"schema-how-to-step-button",icon:"insert",label:(0,h.__)("Insert step","wordpress-seo"),onClick:this.onInsertStep})]})}getMover(){return(0,u.jsxs)("div",{className:"schema-how-to-step-mover",children:[(0,u.jsx)(w.Button,{className:"editor-block-mover__control",onClick:this.onMoveStepUp,icon:"arrow-up-alt2",label:(0,h.__)("Move step up","wordpress-seo"),"aria-disabled":this.props.isFirst}),(0,u.jsx)(w.Button,{className:"editor-block-mover__control",onClick:this.onMoveStepDown,icon:"arrow-down-alt2",label:(0,h.__)("Move step down","wordpress-seo"),"aria-disabled":this.props.isLast})]})}onSelectImage(t){const{index:s,step:{name:e,text:o}}=this.props;let i=o.slice();const n=(0,u.jsx)("img",{className:`wp-image-${t.id}`,alt:t.alt,src:t.url,style:"max-width:100%;"});i.push?i.push(n):i=[i,n],this.props.onChange(e,i,e,o,s)}static getImageSrc(t){if(!t||!t.filter)return!1;const s=t.filter((t=>t&&t.type&&"img"===t.type))[0];return!!s&&s.props.src}shouldComponentUpdate(t){return!(0,m.isShallowEqualObjects)(t,this.props)}static Content(t){return(0,u.jsxs)("li",{className:"schema-how-to-step",id:t.id,children:[(0,u.jsx)(x,{tagName:"strong",className:"schema-how-to-step-name",value:t.name},t.id+"-name"),(0,u.jsx)(x,{tagName:"p",className:"schema-how-to-step-text",value:t.text},t.id+"-text")]},t.id)}render(){const{index:t,step:e,isSelected:o,isUnorderedList:i}=this.props,{id:n,name:r,text:a}=e;return(0,u.jsxs)("li",{className:"schema-how-to-step",children:[(0,u.jsx)("span",{className:"schema-how-to-step-number",children:i?"•":t+1+"."}),(0,u.jsx)(s.RichText,{identifier:`${n}-name`,className:"schema-how-to-step-name",tagName:"p",value:r,onChange:this.onChangeTitle,onFocus:this.onFocusTitle,unstableOnFocus:this.onFocusTitle,placeholder:(0,h.__)("Enter a step title","wordpress-seo"),allowedFormats:["core/italic","core/strikethrough","core/link","core/annotation"]},`${n}-name`),(0,u.jsx)(s.RichText,{identifier:`${n}-text`,className:"schema-how-to-step-text",tagName:"p",value:a,onChange:this.onChangeText,onFocus:this.onFocusText,unstableOnFocus:this.onFocusText,placeholder:(0,h.__)("Enter a step description","wordpress-seo")},`${n}-text`),o&&(0,u.jsxs)("div",{className:"schema-how-to-step-controls-container",children:[this.getMover(),this.getButtons()]})]},n)}}function b(t,s=0){return parseInt(t,10)||s}g.propTypes={index:n().number.isRequired,step:n().object.isRequired,onChange:n().func.isRequired,insertStep:n().func.isRequired,removeStep:n().func.isRequired,onFocus:n().func.isRequired,onMoveUp:n().func.isRequired,onMoveDown:n().func.isRequired,isSelected:n().bool.isRequired,isFirst:n().bool.isRequired,isLast:n().bool.isRequired,isUnorderedList:n().bool},g.defaultProps={isUnorderedList:!1};const S=window.React,f=l(s.RichText.Content),C=a()(w.TextControl)`
	&&& {
		margin-bottom: 32px;
	}
`;class j extends c.Component{constructor(t){super(t),this.state={focus:""},this.changeStep=this.changeStep.bind(this),this.insertStep=this.insertStep.bind(this),this.removeStep=this.removeStep.bind(this),this.swapSteps=this.swapSteps.bind(this),this.setFocus=this.setFocus.bind(this),this.addCSSClasses=this.addCSSClasses.bind(this),this.getListTypeHelp=this.getListTypeHelp.bind(this),this.toggleListType=this.toggleListType.bind(this),this.setDurationText=this.setDurationText.bind(this),this.setFocusToStep=this.setFocusToStep.bind(this),this.moveStepUp=this.moveStepUp.bind(this),this.moveStepDown=this.moveStepDown.bind(this),this.focusDescription=this.focusDescription.bind(this),this.addDuration=this.addDuration.bind(this),this.removeDuration=this.removeDuration.bind(this),this.onChangeDescription=this.onChangeDescription.bind(this),this.onChangeDays=this.onChangeDays.bind(this),this.onChangeHours=this.onChangeHours.bind(this),this.onChangeMinutes=this.onChangeMinutes.bind(this),this.onAddStepButtonClick=this.onAddStepButtonClick.bind(this),this.daysInput=(0,c.createRef)(),this.addDurationButton=(0,c.createRef)();const s=this.getDefaultDurationText();this.setDefaultDurationText(s)}getDefaultDurationText(){const t=(0,d.get)(window,"wp.hooks.applyFilters");let s=(0,h.__)("Time needed:","wordpress-seo");return t&&(s=t("wpseo_duration_text",s)),s}setDurationText(t){this.props.setAttributes({durationText:t})}setDefaultDurationText(t){this.props.setAttributes({defaultDurationText:t})}onAddStepButtonClick(){this.insertStep(null,[],[],!1)}static generateId(t){return`${t}-${(new Date).getTime()}`}changeStep(t,s,e,o,i){const n=this.props.attributes.steps?this.props.attributes.steps.slice():[];if(i>=n.length)return;if(n[i].name!==e||n[i].text!==o)return;n[i]={id:n[i].id,name:t,text:s,jsonName:(0,c.renderToString)(t),jsonText:(0,c.renderToString)(s)};const r=g.getImageSrc(s);r&&(n[i].jsonImageSrc=r),this.props.setAttributes({steps:n})}insertStep(t=null,s=[],e=[],o=!0){const i=this.props.attributes.steps?this.props.attributes.steps.slice():[];null===t&&(t=i.length-1),i.splice(t+1,0,{id:j.generateId("how-to-step"),name:s,text:e,jsonName:"",jsonText:""}),this.props.setAttributes({steps:i}),o?setTimeout(this.setFocus.bind(this,`${t+1}:name`)):(0,p.speak)((0,h.__)("New step added","wordpress-seo"))}swapSteps(t,s){const e=this.props.attributes.steps?this.props.attributes.steps.slice():[],o=e[t];e[t]=e[s],e[s]=o,this.props.setAttributes({steps:e});const[i,n]=this.state.focus.split(":");i===`${t}`&&this.setFocus(`${s}:${n}`),i===`${s}`&&this.setFocus(`${t}:${n}`)}removeStep(t){const s=this.props.attributes.steps?this.props.attributes.steps.slice():[];s.splice(t,1),this.props.setAttributes({steps:s});let e="description";s[t]?e=`${t}:name`:s[t-1]&&(e=t-1+":text"),this.setFocus(e)}setFocus(t){t!==this.state.focus&&this.setState({focus:t})}setFocusToStep(t,s){this.setFocus(`${t}:${s}`)}moveStepUp(t){this.swapSteps(t,t-1)}moveStepDown(t){this.swapSteps(t,t+1)}getSteps(){if(!this.props.attributes.steps)return null;const[t]=this.state.focus.split(":");return this.props.attributes.steps.map(((s,e)=>(0,u.jsx)(g,{step:s,index:e,onChange:this.changeStep,insertStep:this.insertStep,removeStep:this.removeStep,onFocus:this.setFocusToStep,onMoveUp:this.moveStepUp,onMoveDown:this.moveStepDown,isFirst:0===e,isLast:e===this.props.attributes.steps.length-1,isSelected:t===`${e}`,isUnorderedList:this.props.attributes.unorderedList},s.id)))}formatDuration(t,s=null){if(""===t)return"";const e=t.replace(/^[0]+/,"");return""===e?0:null!==s?Math.min(Math.max(0,parseInt(e,10)),s):Math.max(0,parseInt(e,10))}static getStepsContent(t){return t?t.map((t=>(0,S.createElement)(g.Content,{...t,key:t.id}))):null}static Content(t){const{steps:s,hasDuration:e,days:o,hours:i,minutes:n,description:r,unorderedList:a,additionalListCssClasses:p,className:d,durationText:c,defaultDurationText:l}=t,m=["schema-how-to",d].filter((t=>t)).join(" "),w=["schema-how-to-steps",p].filter((t=>t)).join(" "),x=function(t){const s=function({days:t,hours:s,minutes:e}){const o=[];return 0!==t&&o.push((0,h.sprintf)(/* translators: %d expands to the number of days. */
(0,h._n)("%d day","%d days",t,"wordpress-seo"),t)),0!==s&&o.push((0,h.sprintf)(/* translators: %d expands to the number of hours. */
(0,h._n)("%d hour","%d hours",s,"wordpress-seo"),s)),0!==e&&o.push((0,h.sprintf)(/* translators: %d expands to the number of minutes. */
(0,h._n)("%d minute","%d minutes",e,"wordpress-seo"),e)),o}({days:b(t.days),hours:b(t.hours),minutes:b(t.minutes)});return 1===s.length?s[0]:2===s.length?(0,h.sprintf)(/* translators: %1$s and %2$s expand to units of time (e.g. 1 day). */
(0,h.__)("%1$s and %2$s","wordpress-seo"),...s):3===s.length?(0,h.sprintf)(/* translators: %1$s, %2$s and %3$s expand to units of time (e.g. 1 day). */
(0,h.__)("%1$s, %2$s and %3$s","wordpress-seo"),...s):""}({days:o,hours:i,minutes:n});return(0,u.jsxs)("div",{className:m,children:[e&&"string"==typeof x&&x.length>0&&(0,u.jsxs)("p",{className:"schema-how-to-total-time",children:[(0,u.jsxs)("span",{className:"schema-how-to-duration-time-text",children:[c||l," "]}),x+". "]}),(0,u.jsx)(f,{tagName:"p",className:"schema-how-to-description",value:r}),a?(0,u.jsx)("ul",{className:w,children:j.getStepsContent(s)}):(0,u.jsx)("ol",{className:w,children:j.getStepsContent(s)})]})}getAddStepButton(){return(0,u.jsx)(w.Button,{icon:"insert",onClick:this.onAddStepButtonClick,className:"schema-how-to-add-step",children:(0,h.__)("Add step","wordpress-seo")})}addCSSClasses(t){this.props.setAttributes({additionalListCssClasses:t})}toggleListType(t){this.props.setAttributes({unorderedList:t})}getListTypeHelp(t){return t?(0,h.__)("Showing step items as an unordered list","wordpress-seo"):(0,h.__)("Showing step items as an ordered list.","wordpress-seo")}focusDescription(){this.setFocus("description")}onChangeDescription(t){this.props.setAttributes({description:t,jsonDescription:(0,c.renderToString)(t)})}addDuration(){this.props.setAttributes({hasDuration:!0}),setTimeout((()=>this.daysInput.current.focus()))}removeDuration(){this.props.setAttributes({hasDuration:!1}),setTimeout((()=>{this.addDurationButton.current instanceof c.Component||this.addDurationButton.current.focus()}))}onChangeDays(t){const s=this.formatDuration(t.target.value);this.props.setAttributes({days:(0,d.toString)(s)})}onChangeHours(t){const s=this.formatDuration(t.target.value,23);this.props.setAttributes({hours:(0,d.toString)(s)})}onChangeMinutes(t){const s=this.formatDuration(t.target.value,59);this.props.setAttributes({minutes:(0,d.toString)(s)})}getDuration(){const{attributes:t}=this.props;return t.hasDuration?(0,u.jsx)("fieldset",{className:"schema-how-to-duration",children:(0,u.jsxs)("span",{className:"schema-how-to-duration-flex-container",role:"presentation",children:[(0,u.jsx)("legend",{className:"schema-how-to-duration-legend",children:t.durationText||this.getDefaultDurationText()}),(0,u.jsxs)("span",{className:"schema-how-to-duration-time-input",children:[(0,u.jsx)("label",{htmlFor:"schema-how-to-duration-days",className:"screen-reader-text",children:/* translators: Hidden accessibility text. */
(0,h.__)("days","wordpress-seo")}),(0,u.jsx)("input",{id:"schema-how-to-duration-days",className:"schema-how-to-duration-input",type:"number",value:t.days,onChange:this.onChangeDays,placeholder:"DD",ref:this.daysInput}),(0,u.jsx)("label",{htmlFor:"schema-how-to-duration-hours",className:"screen-reader-text",children:(0,h.__)("hours","wordpress-seo")}),(0,u.jsx)("input",{id:"schema-how-to-duration-hours",className:"schema-how-to-duration-input",type:"number",value:t.hours,onChange:this.onChangeHours,placeholder:"HH"}),(0,u.jsx)("span",{"aria-hidden":"true",children:":"}),(0,u.jsx)("label",{htmlFor:"schema-how-to-duration-minutes",className:"screen-reader-text",children:(0,h.__)("minutes","wordpress-seo")}),(0,u.jsx)("input",{id:"schema-how-to-duration-minutes",className:"schema-how-to-duration-input",type:"number",value:t.minutes,onChange:this.onChangeMinutes,placeholder:"MM"}),(0,u.jsx)(w.Button,{className:"schema-how-to-duration-delete-button",icon:"trash",label:(0,h.__)("Delete total time","wordpress-seo"),onClick:this.removeDuration})]})]})}):(0,u.jsx)(w.Button,{onClick:this.addDuration,className:"schema-how-to-duration-button",ref:this.addDurationButton,icon:"insert",children:(0,h.__)("Add total time","wordpress-seo")})}getSidebar(t,e,o){return o===this.getDefaultDurationText()&&(o=""),(0,u.jsx)(s.InspectorControls,{children:(0,u.jsxs)(w.PanelBody,{title:(0,h.__)("Settings","wordpress-seo"),className:"blocks-font-size",children:[(0,u.jsx)(C,{label:(0,h.__)("CSS class(es) to apply to the steps","wordpress-seo"),value:e,onChange:this.addCSSClasses,help:(0,h.__)("Optional. This can give you better control over the styling of the steps.","wordpress-seo")}),(0,u.jsx)(C,{label:(0,h.__)("Describe the duration of the instruction:","wordpress-seo"),value:o,onChange:this.setDurationText,help:(0,h.__)("Optional. Customize how you want to describe the duration of the instruction","wordpress-seo"),placeholder:this.getDefaultDurationText()}),(0,u.jsx)(w.ToggleControl,{label:(0,h.__)("Unordered list","wordpress-seo"),checked:t||!1,onChange:this.toggleListType,help:this.getListTypeHelp})]})})}render(){const{attributes:t,className:e}=this.props,o=["schema-how-to",e].filter((t=>t)).join(" "),i=["schema-how-to-steps",t.additionalListCssClasses].filter((t=>t)).join(" ");return(0,u.jsxs)("div",{className:o,children:[this.getDuration(),(0,u.jsx)(s.RichText,{identifier:"description",tagName:"p",className:"schema-how-to-description",value:t.description,onChange:this.onChangeDescription,onFocus:this.focusDescription,unstableOnFocus:this.focusDescription,placeholder:(0,h.__)("Enter a description","wordpress-seo")}),(0,u.jsx)("ul",{className:i,children:this.getSteps()}),(0,u.jsx)("div",{className:"schema-how-to-buttons",children:this.getAddStepButton()}),this.getSidebar(t.unorderedList,t.additionalListCssClasses,t.durationText)]})}}function y(t,s=0){return parseInt(t,10)||s}function v(t){const s=function({days:t,hours:s,minutes:e}){const o=[];return 0!==t&&o.push((0,h.sprintf)(/* translators: %d expands to the number of days. */
(0,h._n)("%d day","%d days",t,"wordpress-seo"),t)),0!==s&&o.push((0,h.sprintf)(/* translators: %d expands to the number of hours. */
(0,h._n)("%d hour","%d hours",s,"wordpress-seo"),s)),0!==e&&o.push((0,h.sprintf)(/* translators: %d expands to the number of minutes. */
(0,h._n)("%d minute","%d minutes",e,"wordpress-seo"),e)),o}({days:y(t.days),hours:y(t.hours),minutes:y(t.minutes)});return 1===s.length?s[0]:2===s.length?(0,h.sprintf)(/* translators: %1$s and %2$s expand to units of time (e.g. 1 day). */
(0,h.__)("%1$s and %2$s","wordpress-seo"),...s):3===s.length?(0,h.sprintf)(/* translators: %1$s, %2$s and %3$s expand to units of time (e.g. 1 day). */
(0,h.__)("%1$s, %2$s and %3$s","wordpress-seo"),...s):""}j.propTypes={attributes:n().object.isRequired,setAttributes:n().func.isRequired,className:n().string},j.defaultProps={className:""};const D=t=>(0,u.jsxs)("li",{className:"schema-how-to-step",children:[(0,u.jsx)("strong",{className:"schema-how-to-step-name",children:t.name},t.id+"-name")," ",(0,u.jsx)("p",{className:"schema-how-to-step-text",children:t.text},t.id+"-text")," "]},t.id);function T(t){let{steps:s}=t.attributes;const{hasDuration:e,days:o,hours:i,minutes:n,description:r,unorderedList:a,additionalListCssClasses:p,className:d}=t.attributes;s=s?s.map((t=>(0,S.createElement)(D,{...t,key:t.id}))):null;const c=["schema-how-to",d].filter((t=>t)).join(" "),l=["schema-how-to-steps",p].filter((t=>t)).join(" "),m=v({days:o,hours:i,minutes:n});return(0,u.jsxs)("div",{className:c,children:[e&&"string"==typeof m&&m.length>0&&(0,u.jsxs)("p",{className:"schema-how-to-total-time",children:[(0,h.__)("Time needed:","wordpress-seo")," ",m+". "]}),(0,u.jsx)("p",{className:"schema-how-to-description",children:r})," ",a?(0,u.jsx)("ul",{className:l,children:s}):(0,u.jsx)("ol",{className:l,children:s})]})}function _(t){return(0,u.jsxs)("li",{className:"schema-how-to-step",children:[(0,u.jsx)("strong",{className:"schema-how-to-step-name",children:t.name},t.id+"-name")," ",(0,u.jsx)("p",{className:"schema-how-to-step-text",children:t.text},t.id+"-text")," "]},t.id)}function N(t){const{steps:s,hasDuration:e,days:o,hours:i,minutes:n,description:r,unorderedList:a,additionalListCssClasses:h,className:p,durationText:d,defaultDurationText:c}=t.attributes,l=["schema-how-to",p].filter((t=>t)).join(" "),m=["schema-how-to-steps",h].filter((t=>t)).join(" "),w=v({days:o,hours:i,minutes:n});let x=[];return s&&(x=s.map((t=>(0,S.createElement)(_,{...t,key:t.id})))),(0,u.jsxs)("div",{className:l,children:[e&&"string"==typeof w&&w.length>0&&(0,u.jsxs)("p",{className:"schema-how-to-total-time",children:[(0,u.jsxs)("span",{className:"schema-how-to-duration-time-text",children:[d||c," "]}),w+". "]}),(0,u.jsx)("p",{className:"schema-how-to-description",children:r})," ",a?(0,u.jsx)("ul",{className:m,children:x}):(0,u.jsx)("ol",{className:m,children:x})]})}T.propTypes={attributes:n().object},N.propTypes={attributes:n().object.isRequired};const F={v8_2:T,v11_4:N};(0,e.registerBlockType)(o,{edit:({attributes:t,setAttributes:e,className:o})=>{const i=(0,s.useBlockProps)();return t.steps&&0!==t.steps.length||(t.steps=[{id:j.generateId("how-to-step"),name:[],text:[]}]),(0,u.jsx)("div",{...i,children:(0,u.jsx)(j,{attributes:t,setAttributes:e,className:o})})},save:({attributes:t})=>{const e=s.useBlockProps.save(t);return(0,u.jsx)(j.Content,{...e})},deprecated:[{attributes:o.attributes,save:F.v11_4},{attributes:o.attributes,save:F.v8_2}]})})();

Youez - 2016 - github.com/yon3zu
LinuXploit