!function(e,t,a){e(document).ready(function(){console.log(Z("gutenberg_editor_enhanced"));var l=t.blocks,r=t.components,n=t.element,o=t.blockEditor?t.blockEditor:t.editor,i=t.richText.registerFormatType,s=t.data,c=s.dispatch,u=s.select,b=c("core/block-editor")?c("core/block-editor"):c("core/editor"),d=u("core/block-editor")?u("core/block-editor"):u("core/editor"),g=d.getBlockOrder,_=d.getBlock,p=b.insertBlock,m=b.removeBlock,v=b.updateBlockAttributes,h=n.createElement,f=l.registerBlockType,y=l.createBlock,k=o.InnerBlocks,N=o.RichTextToolbarButton,C=n.Component,w=t.dom.getRectangleFromRange,x=r.Popover,z=r.Button,q=o.RichText,M=o.PlainText,j=o.MediaUpload,A=n.Fragment,H=o.InspectorControls,V=r.PanelBody,S=r.ClipboardButton,L=r.TextControl,B=r.RadioControl,T=r.Toolbar,F=r.SelectControl,P=r.ToggleControl,R=r.RangeControl,I=r.DropdownMenu,O=o.BlockControls,E=o.AlignmentToolbar,D=a.lodash||a._,G=a.wpApiSettings,K=D.times,$=D.debounce;function Z(e){var t=a.aksrt_block_var&&a.aksrt_block_var.i18n;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e}function J(e){var t=Array.prototype.slice.call(arguments,1),a=Z(e),l=0;return a.replace(/%(\d+\$)?s/g,function(e,a){var r=a?parseInt(a,10)-1:l++;return void 0!==t[r]&&null!==t[r]?t[r]:e})}var Q={},U="#1fbc45",W=function(e){return{viewBox:e=e||"0 0 1024 1024",className:"svg-icon",xmlns:X}},X="http://www.w3.org/2000/svg";Q.legacy=h("svg",{width:"16px",height:"16px",viewBox:"0 0 80 90",className:"svg-icon mb10",xmlns:X,fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},h("g",{fillRule:"nonzero",transform:"scale(0.19785394)"},h("path",{d:"m 408.68862,333.8044 0.009,0.59315 0.004,0.29795 c 0.18694,71.91774 -59.58485,130.93907 -134.53126,132.29044 -0.85543,0.0154 -1.71097,0.0231 -2.56654,0.0231 H 21.034693 C 11.007191,467.00905 2.5761396,460.42672 0.14656613,451.50411 L 338.63176,215.013 c 45.60925,25.97569 68.96153,65.57282 70.05686,118.7914 z M 231.25625,0 C 278.01331,0 321.188,23.909861 344.73248,62.682399 L 0,303.53751 V 20.793975 C 0,9.3097796 9.6674353,0 21.592821,0 Z",fill:U}))),Q.productbox=h("svg",W(),h("path",{d:"M975.36 400.64A88.32 88.32 0 0 0 887.68 320h-57.6c0-176.64-142.72-320-318.08-320-175.36 0-318.08 143.36-318.08 320h-57.6c-45.44 0-83.2 34.56-87.68 80.64l-44.16 446.08c-4.48 45.44 10.24 90.88 40.96 124.8 30.08 33.28 72.96 52.48 118.4 52.48h696.32c45.44 0 88.96-19.2 119.04-53.12 30.08-33.92 45.44-79.36 40.96-124.8l-44.8-445.44zM512 64c140.16 0 254.08 114.56 254.08 256H257.92c0-141.44 113.92-256 254.08-256z m419.84 864c-18.56 20.48-44.16 32-71.68 32H163.84c-27.52 0-53.12-11.52-71.68-32-18.56-20.48-27.52-47.36-24.96-75.52l44.16-446.08c1.28-12.8 12.16-22.4 24.96-22.4h57.6v96c0 17.92 14.08 32 32 32 17.28 0 32-14.08 32-32V384h508.8v96c0 17.92 14.08 32 32 32 17.28 0 32-14.08 32-32V384h57.6c12.8 0 23.68 9.6 24.96 22.4l44.16 446.08c1.92 28.16-7.04 54.4-25.6 75.52z",fill:U}),h("path",{d:"M752 679.04a536.768 536.768 0 0 1-480 0 31.744 31.744 0 0 0-42.88 14.08c-7.68 16-1.28 35.2 14.08 42.88 83.84 42.24 176.64 63.36 268.8 63.36 92.16 0 184.32-21.12 268.8-63.36 16-7.68 21.76-26.88 14.08-42.88a31.744 31.744 0 0 0-42.88-14.08z",fill:U})),Q.video=h("svg",W(),h("path",{d:"M704 874.666667H128c-46.933333 0-85.333333-38.4-85.333333-85.333334V234.666667c0-46.933333 38.4-85.333333 85.333333-85.333334h576c46.933333 0 85.333333 38.4 85.333333 85.333334v554.666666c0 46.933333-38.4 85.333333-85.333333 85.333334zM128 213.333333c-12.8 0-21.333333 8.533333-21.333333 21.333334v554.666666c0 12.8 8.533333 21.333333 21.333333 21.333334h576c12.8 0 21.333333-8.533333 21.333333-21.333334V234.666667c0-12.8-8.533333-21.333333-21.333333-21.333334H128z",fill:U}),h("path",{d:"M277.333333 490.666667c-59.733333 0-106.666667-46.933333-106.666666-106.666667s46.933333-106.666667 106.666666-106.666667 106.666667 46.933333 106.666667 106.666667-46.933333 106.666667-106.666667 106.666667z m0-149.333334c-23.466667 0-42.666667 19.2-42.666666 42.666667s19.2 42.666667 42.666666 42.666667 42.666667-19.2 42.666667-42.666667-19.2-42.666667-42.666667-42.666667zM938.666667 800c-8.533333 0-14.933333-2.133333-21.333334-6.4L725.333333 682.666667V341.333333l192-110.933333c10.666667-6.4 21.333333-6.4 32-4.266667 10.666667 2.133333 21.333333 8.533333 25.6 19.2 4.266667 6.4 6.4 14.933333 6.4 21.333334v490.666666c0 23.466667-19.2 42.666667-42.666666 42.666667z m-149.333334-153.6l128 74.666667V302.933333l-128 74.666667v268.8z",fill:U})),Q.iframe=h("svg",W(),h("path",{d:"M885.76 52.053333h-364.8c-47.786667 0-86.186667 38.826667-86.186667 86.186667v82.346667H139.093333c-48.213333 0-87.466667 39.253333-87.466666 87.04v576.426666c0 48.213333 39.253333 87.466667 87.466666 87.466667h576.426667c48.213333 0 87.04-39.253333 87.04-87.466667v-294.826666h82.773333c47.786667 0 86.186667-38.826667 86.186667-86.186667V138.666667c0.426667-47.786667-37.973333-86.613333-85.76-86.613334z m-151.04 832.426667c0 10.666667-8.533333 19.2-19.2 19.2H139.093333c-10.666667 0-19.2-8.533333-19.2-19.2V308.053333c0-10.666667 8.533333-19.2 19.2-19.2h295.253334v214.186667c0 12.373333 2.56 24.32 7.68 34.986667L255.146667 725.333333v-68.693333c0-18.773333-15.36-34.133333-34.133334-34.133333s-34.133333 15.36-34.133333 34.133333v151.04a33.109333 33.109333 0 0 0 9.386667 23.466667c0.426667 0.426667 0.426667 0.426667 0.426666 0.853333 0.426667 0.426667 0.853333 0.426667 1.28 0.853333 2.986667 2.56 5.973333 5.12 9.813334 6.4 4.266667 1.706667 8.533333 2.56 13.226666 2.56h151.04c18.773333 0 34.133333-15.36 34.133334-34.133333s-15.36-34.133333-34.133334-34.133333H303.36l189.013333-189.013334c8.96 2.986667 18.346667 5.12 28.586667 5.12h213.76v294.826667z m168.96-381.013333c0 9.813333-8.106667 17.92-17.92 17.92h-364.8c-9.813333 0-17.92-8.106667-17.92-17.92V138.666667c0-9.813333 8.106667-17.92 17.92-17.92h364.8c9.813333 0 17.92 8.106667 17.92 17.92v364.8z",fill:U})),Q.iframeseries=h("svg",W(),h("path",{d:"m 662.88377,441.87421 a 42.666667,42.666667 0 0 1 -72.87235,-31.63569 l 7.28782,-180.63176 a 43.235556,43.235556 0 0 1 42.55618,-42.72389 42.666667,42.666667 0 0 1 42.72388,42.55617 l -7.2815,183.84988 a 40.96,40.96 0 0 1 -12.41403,28.58529 z",fill:U}),h("path",{d:"m 843.88852,434.27746 a 42.097778,42.097778 0 0 1 -28.53625,12.52636 l -181.00475,7.59675 a 42.666667,42.666667 0 0 1 -4.18877,-84.46761 l 180.60327,-7.19369 a 42.666667,42.666667 0 0 1 32.32355,72.34431 z",fill:U}),h("path",{d:"M 873.65726,230.27007 662.88377,441.87421 a 42.666668,42.666668 0 0 1 -60.45832,-60.221 L 813.19894,170.04908 a 42.666667,42.666667 0 0 1 60.45832,60.22099 z",fill:U}),h("path",{d:"m 922.2479,554.42362 0.64665,328.81714 a 42.097778,42.097778 0 0 1 -42.58268,42.75049 l -735.00302,1.44546 a 42.097778,42.097778 0 0 1 -42.75049,-42.58267 l -1.17919,-599.60773 a 42.666667,42.666667 0 0 1 42.58268,-42.75049 l 302.6483,-0.59519 a 42.666667,42.666667 0 1 1 0.16782,85.33316 l -259.98172,0.51129 1.00689,511.99901 649.66986,-1.27765 -0.55939,-284.44389 a 42.666667,42.666667 0 1 1 85.33317,-0.16782 z",fill:U}),h("path",{d:"m 705.18337,682.28186 a 42.097778,42.097778 0 0 1 -42.58268,42.75049 l -341.33267,0.67126 a 42.666667,42.666667 0 0 1 -0.16782,-85.33316 l 341.33268,-0.67127 a 42.666667,42.666667 0 0 1 42.75049,42.58268 z M 534.15231,497.16007 a 42.097778,42.097778 0 0 1 -42.58268,42.75049 L 320.9033,540.2462 a 42.666667,42.666667 0 1 1 -0.16782,-85.33317 l 170.66634,-0.33564 a 42.666667,42.666667 0 0 1 42.75049,42.58268 z",fill:U})),Q.feature=h("svg",W(),h("path",{d:"M833.176 606.564c37.737-60.688 59.927-131.977 59.927-208.47 0-218.921-178.605-397.021-398.09-397.021-219.534 0-398.178 178.1-398.178 397.021 0 87.873 29.126 168.877 77.787 234.72L30.118 883.48l156.358 11.582L275.333 1024l136.88-237.615c26.767 5.693 54.414 8.782 82.806 8.782 38.717 0 76.062-5.787 111.49-16.139L747.663 1024l88.858-128.938 156.314-11.582-159.659-276.916zM362.37 772.156L271.496 929.8l-57.172-83.017-100.66-7.458 95.25-165.296c0.79 0.832 1.719 1.474 2.509 2.307 9.742 9.86 19.876 19.33 30.555 28.111 2.364 1.917 4.918 3.581 7.283 5.448 8.902 6.966 18.004 13.636 27.45 19.872 3.641 2.401 7.384 4.463 11.07 6.72 9.104 5.542 18.353 10.794 27.9 15.603 3.002 1.57 6.05 2.995 9.154 4.414a397.407 397.407 0 0 0 34.93 14.575c0.885 0.342 1.72 0.782 2.605 1.078z m43.495-39.2a355.38 355.38 0 0 1-51.657-18.007 8.63 8.63 0 0 0-0.79-0.346c-15.4-6.822-30.112-14.916-44.236-23.843-1.62-1.035-3.344-1.967-4.92-2.995-13.377-8.731-26.027-18.592-38.076-29.146a321.702 321.702 0 0 1-7.632-6.916c-11.853-10.988-23.17-22.664-33.55-35.424-48.562-59.66-77.789-135.564-77.789-218.185 0-191.2 156.018-346.781 347.799-346.781 191.737 0 347.704 155.58 347.704 346.781 0 73.108-22.88 140.862-61.749 196.844-8.705 12.509-18.347 24.336-28.633 35.57-2.263 2.503-4.426 5.006-6.74 7.408-11.461 11.826-23.669 22.916-36.655 33.023-1.379 1.078-2.807 2.06-4.185 3.139-28.487 21.441-60.174 38.76-94.022 50.682-1.72 0.587-3.394 1.273-5.115 1.865l-8.611 2.995a347.098 347.098 0 0 1-101.994 15.307c-30.847 0-60.662-4.42-89.149-11.972z m402.807 113.826l-57.17 83.017-96.925-168.19c13.58-5.938 26.711-12.76 39.457-20.167 1.625-0.934 3.198-1.917 4.773-2.895 10.773-6.43 21.154-13.346 31.193-20.703a354.339 354.339 0 0 0 7.971-5.94c8.657-6.67 16.925-13.686 24.992-21.05 3.15-2.843 6.298-5.542 9.345-8.435 7.53-7.313 14.616-15.011 21.507-22.86 2.36-2.654 5.064-5.006 7.327-7.754L909.29 839.324l-100.617 7.458z",fill:U}),h("path",{d:"M654.672 637.872l-30.548-177.414 129.3-125.559-178.65-25.904-79.71-161.369-79.95 161.369-178.693 25.904 129.343 125.56-30.503 177.361 159.753-83.753 159.658 83.805z m-309.915-267.94l103.814-15.016 46.398-93.76 46.347 93.76 103.765 15.017L570 442.889l17.76 103.033-92.74-48.671-92.845 48.721 17.713-103.083-75.13-72.956z",fill:U})),Q.biaoti=h("svg",W(),h("path",{d:"M203.127 1023.991a143.334 143.334 0 0 1-109.74-49.27 154.98 154.98 0 0 1-38.073-100.782V160.854A165.73 165.73 0 0 1 225.074 0.052h573.783a165.73 165.73 0 0 1 169.76 160.802V873.94a139.302 139.302 0 0 1-6.718 44.792 137.063 137.063 0 0 1-91.823 92.27 154.532 154.532 0 0 1-143.334-25.978L583.857 873.49a89.584 89.584 0 0 0-105.261-4.479L290.023 997.564a158.115 158.115 0 0 1-86.896 26.427z m21.948-961.23a102.573 102.573 0 0 0-106.605 98.093V873.94a89.584 89.584 0 0 0 22.396 60.021 86.448 86.448 0 0 0 113.771 11.646L443.211 817.5a151.396 151.396 0 0 1 179.167 6.72L763.472 936.2a93.167 93.167 0 0 0 85.552 15.229 77.938 77.938 0 0 0 52.406-51.959 83.76 83.76 0 0 0 3.584-25.53V160.853A102.573 102.573 0 0 0 798.857 62.76zM377.367 152.344h268.75q44.792 0 44.792 44.792 0 44.791-44.792 44.791h-268.75q-44.792 0-44.792-44.791 0-44.792 44.792-44.792z",fill:U})),Q.postsbox=h("svg",W(),h("path",{d:"M544.256 887.97866668c-9.728 0-19.456-2.56-28.16-8.192-16.896-10.24-27.136-28.16-26.624-48.128V269.99466668c0-24.576 13.824-47.616 35.84-58.368 117.76-60.416 260.608-90.112 423.936-87.04 35.84 1.024 65.024 30.208 65.024 66.048V731.30666668c0 33.792-25.088 61.44-58.88 65.024l-20.992 2.56c-141.312 15.36-263.168 29.184-364.032 82.944-8.192 4.096-17.408 6.144-26.112 6.144zM928.768 175.78666668c-146.432 0-274.432 27.648-380.416 81.92-4.608 2.56-7.68 7.168-7.68 12.8v562.688c0 1.536 0.512 2.56 2.048 3.584s2.56 0.512 3.072 0h0.512c109.568-58.368 236.032-72.192 382.976-88.576l20.992-2.56c7.68-0.512 13.312-6.656 13.312-13.824V190.63466668c0-8.192-6.656-14.848-14.848-14.848h-19.968z",fill:U}),h("path",{d:"M487.424 889.51466668c-8.704 0-17.408-2.048-25.6-6.656C358.4 827.05066668 232.448 813.73866668 87.04 797.86666668l-13.312-1.536c-33.28-3.072-58.368-30.72-58.368-64.512V191.14666668c0-35.328 29.184-65.024 65.024-66.048 163.84-2.56 306.688 26.624 424.448 87.552 21.504 10.752 35.328 33.792 35.328 57.856V836.26666668c0 18.944-9.728 36.352-26.112 46.08-8.192 4.608-17.408 7.168-26.624 7.168z m-386.56-713.216H81.408c-8.192 0-14.848 6.656-14.848 14.848v540.672c0 7.168 5.632 13.312 12.8 13.824l13.312 1.536c151.04 15.872 281.088 30.208 393.728 90.624h0.512c0.512 0.512 1.024 0.512 1.536 0s1.024-1.024 1.024-1.536V270.50666668c0-5.12-3.072-10.24-7.168-12.288-106.496-54.784-234.496-81.92-381.44-81.92z",fill:U}),h("path",{d:"M386.56 416.93866668c-3.072 0-6.656-0.512-9.728-2.048-67.584-27.136-136.704-40.96-204.288-40.96-14.336 0-25.6-11.264-25.6-25.6s11.264-25.6 25.6-25.6c74.24 0 149.504 14.848 223.744 45.056 13.312 5.12 19.456 19.968 14.336 33.28-4.096 9.728-13.824 15.872-24.064 15.872z m0 171.52c-3.072 0-6.656-0.512-9.728-2.048-67.584-27.136-136.704-40.96-204.288-40.96-14.336 0-25.6-11.264-25.6-25.6s11.264-25.6 25.6-25.6c74.24 0 149.504 14.848 223.744 45.056 13.312 5.12 19.456 19.968 14.336 33.28-4.096 9.728-13.824 15.872-24.064 15.872z m256.512-171.52c-10.24 0-19.968-6.144-23.552-15.872-5.12-13.312 1.024-28.16 14.336-33.28 73.728-29.696 148.992-45.056 223.744-45.056 14.336 0 25.6 11.264 25.6 25.6s-11.264 25.6-25.6 25.6c-68.096 0-136.704 13.824-204.288 40.96-3.584 1.536-7.168 2.048-10.24 2.048z m0 171.52c-10.24 0-19.968-6.144-23.552-15.872-5.12-13.312 1.024-28.16 14.336-33.28 73.728-29.696 148.992-45.056 223.744-45.056 14.336 0 25.6 11.264 25.6 25.6s-11.264 25.6-25.6 25.6c-68.096 0-136.704 13.824-204.288 40.96-3.584 1.536-7.168 2.048-10.24 2.048z",fill:U})),Q.postslists=h("svg",W(),h("path",{d:"M154 63c38.585-3.549 87.825-1 131-1h324c21.986 0 46.771-2.819 66 0 11.027 1.617 26.985 22.985 38 34 70.388 70.388 142.474 141.474 215 214 11.001 11.001 31.66 25.64 34 37 4.283 20.798 0 51.069 0 73 0 147.213 2.939 289.276 0 438-1.354 68.465-45.274 104-114 104H265c-47.349 0-105.861 6.086-139-7-35.031-13.833-58.411-40.73-63-83-4.718-43.462-1-90.155-1-144V217c0-22.874-2.529-48.263 1-71 7.309-47.087 44.564-78.729 91-83z m-12 128v598c0 25.297-4.657 76.62 5 87 10.792 11.601 61.731 6 86 6h555c24.86 0 76.86 5.363 88-5 9.054-8.424 6-40.445 6-60V442c0-21.463 3.845-47.044 0-63-2.278-9.453-19.905-22.905-28-31-61.891-61.891-119.072-117.072-180-178-9.53-9.53-21.852-26.199-32-28-16.563-2.939-39.449 0-60 0H219c-20.042 0-48.823-2.389-62 1-18.908 4.862-15 23.169-15 48zM237 249c25.855-3.795 59.35-1 86-1h212c34.246 0 63 4.409 63 40 0 48.994-57.106 40-110 40H311c-52.225 0-111.121 9.443-109-42 0.828-20.071 15.229-34.098 35-37zM237 474c41.5-6.092 97.15-1 142-1h352c23.335 0 50.952-3.611 67 3 31.346 12.914 28.819 62.127 0 74-14.449 5.953-46.639 3-70 3H292c-46.79 0-91.773 4.328-90-42 0.76-19.867 15.16-34.087 35-37zM237 698c41.5-6.092 97.15-1 142-1h352c23.335 0 50.952-3.611 67 3 31.346 12.914 28.819 62.127 0 74-14.449 5.953-46.639 3-70 3H292c-46.79 0-91.773 4.328-90-42 0.76-19.867 15.16-34.088 35-37z",fill:U})),Q.enlighter=h("svg",W(),h("path",{d:"M512 0a512 512 0 1 1 0 1024A512 512 0 0 1 512 0z m0 73.142857a438.857143 438.857143 0 1 0 0 877.714286A438.857143 438.857143 0 0 0 512 73.142857z m50.834286 150.674286a36.571429 36.571429 0 0 1 29.622857 42.422857l-88.868572 504.246857a36.571429 36.571429 0 0 1-72.045714-12.726857l88.868572-504.246857a36.571429 36.571429 0 0 1 42.422857-29.622857zM341.430857 382.317714a36.571429 36.571429 0 0 1 0 51.785143l-77.531428 77.531429 77.531428 77.531428a36.571429 36.571429 0 0 1-51.712 51.785143L186.221714 537.453714a36.571429 36.571429 0 0 1 0-51.712l103.497143-103.497143a36.571429 36.571429 0 0 1 51.712 0z m388.827429-4.169143l5.12 4.169143 103.424 103.497143a36.571429 36.571429 0 0 1 4.242285 46.665143l-4.242285 5.046857-103.424 103.424a36.571429 36.571429 0 0 1-55.954286-46.665143l4.169143-5.12 77.604571-77.531428-77.531428-77.531429a36.571429 36.571429 0 0 1 46.592-55.954286z",fill:U})),Q.buttons=h("svg",W(),h("path",{d:"M769 468.7c5.5-22.1 11.1-49.7 11.1-77.4 0-44.2-11.1-88.4-27.6-127.1-16.6-38.7-38.7-71.9-71.9-105-27.6-27.6-60.8-49.7-99.5-66.3-38.7-16.6-82.9-27.7-127.1-27.7s-88.4 11.1-127.1 27.6-77.4 38.7-105 71.9c-27.6 27.6-55.3 66.3-71.9 105s-22.1 77.4-22.1 127.1c0 38.7 5.5 71.9 16.6 105 11.1 33.2 27.6 60.8 49.7 88.4s44.2 49.7 77.4 71.9c27.6 22.1 60.8 33.2 94 44.2V584.8c-38.7-16.6-66.3-44.2-88.4-77.4-22.1-33.2-33.2-71.9-33.2-110.6 0-27.6 5.5-55.3 16.6-82.9s27.6-49.7 44.2-66.3c16.6-22.1 38.7-33.2 66.3-44.2 27.6-11.1 55.3-16.6 82.9-16.6s55.3 5.5 82.9 16.6c22.1 11.1 44.2 22.1 60.8 44.2 16.6 16.6 33.2 38.7 44.2 66.3 11.1 27.6 16.6 55.3 16.6 82.9v5.5c0 0.1 110.5 66.4 110.5 66.4z",fill:U}),h("path",{d:"M426.3 866.7c11.1-16.6 27.6-33.2 44.2-49.7 11.1-11.1 27.6-27.6 49.7-44.2 16.6-16.6 38.7-27.6 60.8-44.2L669.5 922c11.1 16.6 22.1 27.6 44.2 33.2 16.6 5.5 38.7 5.5 55.3-5.5 16.6-11.1 27.6-22.1 33.2-44.2 5.5-16.6 5.5-38.7-5.5-55.3L686.1 684.3c27.6-5.5 49.7-11.1 77.4-16.6 27.6-5.5 49.7-5.5 66.3-5.5h66.3L420.8 291.8l5.5 574.9z",fill:U})),Q.tabs=h("svg",W(),h("path",{d:"M420.608 489.984a15.104 15.104 0 0 1 4.864 11.776 14.848 14.848 0 0 1-4.864 11.776 17.664 17.664 0 0 1-12.288 4.352h-44.288V665.6a15.104 15.104 0 0 1-5.376 12.032 18.176 18.176 0 0 1-13.056 5.12 17.664 17.664 0 0 1-13.056-5.12 15.872 15.872 0 0 1-5.12-12.032v-147.712h-44.032a16.64 16.64 0 0 1-12.288-4.608 14.848 14.848 0 0 1-4.864-11.776 14.848 14.848 0 0 1 4.864-11.52 17.152 17.152 0 0 1 12.288-4.352H409.6a16.384 16.384 0 0 1 11.008 4.352zM557.824 534.016a15.872 15.872 0 0 1 4.864 12.288V665.6a15.616 15.616 0 0 1-4.864 12.032 15.872 15.872 0 0 1-12.032 5.12 16.64 16.64 0 0 1-12.032-4.864 17.664 17.664 0 0 1-4.864-12.032 61.952 61.952 0 0 1-44.032 19.712 64.512 64.512 0 0 1-35.328-9.984 69.376 69.376 0 0 1-25.6-27.904 92.16 92.16 0 0 1 0-80.384 67.072 67.072 0 0 1 25.6-27.904 61.696 61.696 0 0 1 34.304-9.984 66.816 66.816 0 0 1 45.312 17.408 16.64 16.64 0 0 1 4.864-12.288 17.408 17.408 0 0 1 24.064 0zM518.912 640a55.04 55.04 0 0 0 0-67.328 36.864 36.864 0 0 0-29.952-13.568 36.352 36.352 0 0 0-29.44 13.568 51.2 51.2 0 0 0-11.52 33.536 51.2 51.2 0 0 0 11.264 33.792 37.632 37.632 0 0 0 29.696 13.312 38.4 38.4 0 0 0 29.952-13.312zM712.448 539.136a70.4 70.4 0 0 1 25.6 27.648 86.016 86.016 0 0 1 9.216 40.192 87.04 87.04 0 0 1-9.216 40.448 68.608 68.608 0 0 1-25.6 27.904 61.696 61.696 0 0 1-34.304 9.984 57.6 57.6 0 0 1-25.6-5.632 61.952 61.952 0 0 1-19.712-13.312v1.792a16.64 16.64 0 0 1-16.896 17.152 15.616 15.616 0 0 1-12.032-4.864 16.128 16.128 0 0 1-4.864-12.288v-176.64a16.64 16.64 0 0 1 4.864-12.288 17.408 17.408 0 0 1 24.064 0 16.64 16.64 0 0 1 4.864 12.288v58.624a55.296 55.296 0 0 1 18.688-14.592 53.248 53.248 0 0 1 25.6-6.4 64.512 64.512 0 0 1 35.328 9.984z m-9.984 102.4a51.2 51.2 0 0 0 11.52-33.792 51.2 51.2 0 0 0-11.264-33.536 40.192 40.192 0 0 0-59.648 0 55.04 55.04 0 0 0 0 67.328 37.632 37.632 0 0 0 29.952 13.568 37.12 37.12 0 0 0 29.44-15.104zM857.088 337.408V281.6a76.8 76.8 0 0 0-76.8-76.8H402.176a76.8 76.8 0 0 0-57.088-25.6H206.336a76.8 76.8 0 0 0-76.8 76.8v512a76.8 76.8 0 0 0 76.8 76.8h622.592a76.8 76.8 0 0 0 76.8-76.8V409.6a76.8 76.8 0 0 0-48.64-72.192z m-51.2-56.576v51.2h-153.6V281.6a76.8 76.8 0 0 0-4.608-25.6h132.608a25.6 25.6 0 0 1 25.6 25.6z m-230.4-25.6a25.6 25.6 0 0 1 25.6 25.6v51.2h-179.2V256z m279.04 512a25.6 25.6 0 0 1-25.6 25.6H206.336a25.6 25.6 0 0 1-25.6-25.6V256a25.6 25.6 0 0 1 25.6-25.6h138.752a25.6 25.6 0 0 1 25.6 25.6v102.4a25.6 25.6 0 0 0 25.6 25.6h432.64a25.6 25.6 0 0 1 25.6 25.6z",fill:U})),Q.featured=h("svg",W(),h("path",{d:"M879.488423 92.01323c80.158765 0 145.076075 64.91731 145.076075 145.076075v550.385888c0 80.158765-64.91731 145.076075-145.076075 145.076075H145.076075C64.91731 931.98677 0 867.06946 0 786.910695V237.089305c0-80.158765 64.91731-145.076075 145.076075-145.076075h734.412348z m76.207277 284.507167H68.3043v410.954796c0 41.772878 33.305402 75.642778 75.07828 76.207277H878.923925c41.772878 0 75.642778-33.305402 76.207277-75.07828v-1.128997l0.564498-410.954796zM441.437707 461.759647c3.951488 0 7.338479 1.128997 10.725468 2.822492l205.477398 122.496141c10.16097 6.209482 13.54796 18.628445 7.338479 28.789416-1.693495 2.822492-4.515987 5.644983-7.338479 7.338478L452.163175 745.137817c-10.16097 6.209482-23.144432 2.822492-28.789415-7.338479-1.693495-3.38699-2.822492-6.77398-2.822492-10.725468V482.646086c0-11.289967 9.596472-20.886439 20.886439-20.886439zM68.3043 235.39581V307.651599h101.609702L75.642778 204.9129c-4.515987 9.596472-6.77398 20.32194-7.338478 30.48291z m811.184123-75.07828h-95.964718L910.535832 304.829107c0.564498 1.128997 1.693495 1.693495 2.257994 2.822492h43.466372V237.089305c0-41.772878-33.305402-75.642778-75.07828-76.207276l-1.693495-0.564499z m-187.413451 0h-125.318632l125.318632 145.076075c0.564498 0.564498 1.128997 1.693495 1.693495 2.257994h127.576627l-129.270122-147.334069z m-216.202866 0H353.375965l125.318633 145.076075c0.564498 0.564498 1.128997 1.693495 1.693495 2.257994h123.060639c0 0.564498-127.576626-147.334068-127.576626-147.334069z m-212.815877 0H145.076075c-5.080485 0-10.16097 0.564498-15.241455 1.693495l132.092613 143.947079 1.693495 1.693495h127.576626L263.056229 160.31753z",fill:U})),Q.download=h("svg",W(),h("path",{d:"M543.6 825.3H131.3c-28 0-50.7-22.8-50.7-50.7V141c0-29.9 24.3-54.2 54.2-54.2h126.3c25.1 0 46.6 17.9 51.2 42.6l20.9 111.9c11.7 62.6 66.4 108 130.1 108h385.6c29.9 0 54.2 24.3 54.2 54.3V476c0 22.2 18 40.3 40.3 40.3 22.2 0 40.3-18 40.3-40.3v-72.4c0-74.3-60.5-134.8-134.8-134.8H463.3c-24.9 0-46.3-17.8-50.9-42.3l-20.9-111.9C379.8 51.7 324.9 6.2 261.1 6.2H134.8C60.5 6.2 0 66.7 0 141v633.6C0 847 58.9 905.9 131.3 905.9h412.4c22.2 0 40.3-18 40.3-40.3-0.1-22.3-18.1-40.3-40.4-40.3z",fill:U}),h("path",{d:"M560.1 140.4h338.3c22.2 0 40.3-18 40.3-40.3 0-22.2-18-40.3-40.3-40.3H560.1c-22.2 0-40.3 18-40.3 40.3 0 22.3 18 40.3 40.3 40.3zM1014.6 828c-12.6-12.6-33-12.6-45.6 0l-95.4 95.4V605.5c0-17.8-14.4-32.2-32.2-32.2s-32.2 14.4-32.2 32.2v317.9L713.8 828c-12.6-12.6-33-12.6-45.6 0s-12.6 33 0 45.6l123.9 123.9c13.1 13.1 30.1 19.8 47.3 20.3 0.6 0 1.3 0.1 1.9 0.1 0.6 0 1.3 0 1.9-0.1 17.2-0.5 34.3-7.2 47.3-20.3l123.9-123.9c12.7-12.7 12.7-33 0.2-45.6z",fill:U})),Q.seamlessimg=h("svg",W(),h("path",{d:"M551.36 124.16a36.608 36.608 0 0 1 0 71.68L544 196.48H132.48v458.24l126.336-303.104 2.24-4.544a36.608 36.608 0 0 1 62.784-0.192l80 133.312 41.152-61.632 5.184-6.272a36.672 36.672 0 0 1 51.072 0.64l73.088 73.152 4.736 5.76a36.544 36.544 0 0 1-50.624 50.624l-5.76-4.672-41.6-41.6-48.384 72.576a36.672 36.672 0 0 1-61.824-1.408L298.496 446.592l-155.008 372.096c-0.704 1.728-1.728 3.328-2.688 4.928h403.2l7.36 0.768a36.672 36.672 0 0 1 0 71.68l-7.36 0.704H131.968A72.576 72.576 0 0 1 59.52 824.32V195.968c0-40.064 32.448-72.512 72.512-72.576H544l7.36 0.768zM921.664 824.32a36.608 36.608 0 0 1 0 71.68l-7.36 0.704h-219.456a36.544 36.544 0 1 1 0-73.088h219.456l7.36 0.768zM921.664 649.344a36.608 36.608 0 0 1 0 71.68l-7.36 0.704h-219.456a36.544 36.544 0 1 1 0-73.152h219.456l7.36 0.768zM921.664 474.368a36.608 36.608 0 0 1 0 71.616l-7.36 0.768h-219.456a36.544 36.544 0 1 1 0-73.152h219.456l7.36 0.768zM921.664 299.328a36.608 36.608 0 0 1 0 71.68l-7.36 0.704h-219.456a36.544 36.544 0 1 1 0-73.088h219.456l7.36 0.704zM921.664 124.352a36.608 36.608 0 0 1 0 71.68l-7.36 0.704h-219.456a36.544 36.544 0 1 1 0-73.152h219.456l7.36 0.768z",fill:U})),Q.modal=h("svg",W(),h("path",{d:"M654.601 708.8a36.965 36.965 0 0 0 26.158-10.843 37.047 37.047 0 0 0 10.843-26.186V434.47H454.555a36.992 36.992 0 0 0-32.594 18.322 37.074 37.074 0 0 0 0 37.422 36.992 36.992 0 0 0 32.594 18.322H565.33l-44.525 44.58L365.239 708.92a37.056 37.056 0 0 0 16.274 62.574 36.955 36.955 0 0 0 36.023-10.222L573.23 605.403l44.489-44.544v110.912A37.01 37.01 0 0 0 654.6 708.8z m313.92-450.834h-0.393V227.84c0-95.131-77.76-172.983-172.846-172.983H227.657c-95.049 0-172.8 77.852-172.8 172.983v568.265c0 95.186 77.751 172.983 172.8 172.983h567.625c95.086 0 172.8-77.833 172.8-172.983v-209.92a38.162 38.162 0 0 0-38.034-37.202 38.162 38.162 0 0 0-38.034 37.211v209.92c-0.247 53.385-43.401 96.604-96.732 96.878H227.657c-53.321-0.274-96.484-43.493-96.731-96.887V331.547H968.53v-73.581z m-76.452 0H130.926V227.84c0.274-53.367 43.42-96.558 96.731-96.832h567.625c53.312 0.274 96.457 43.465 96.732 96.832l0.055 30.126z m-80.951-82.368H475.246c-9.847 0-17.93 8.411-17.93 18.679v3.291c0 10.267 8.083 18.679 17.93 18.679h335.872c9.856 0 17.929-8.412 17.929-18.688v-3.282c0-10.268-8.073-18.68-17.93-18.68z m-488.85-2.643a22.994 22.994 0 0 0-16.22 39.223 22.93 22.93 0 0 0 39.168-16.256 22.967 22.967 0 0 0-22.949-22.967z m69.522 0a22.994 22.994 0 0 0-16.22 39.223 22.93 22.93 0 0 0 39.177-16.256 22.985 22.985 0 0 0-22.976-22.967h0.019z",fill:U})),Q.headingLevel1=h("svg",{xmlns:X,viewBox:"0 0 24 24"},h("path",{d:"M17.6 7c-.6.9-1.5 1.7-2.6 2v1h2v7h2V7h-1.4zM11 11H7V7H5v10h2v-4h4v4h2V7h-2v4z"})),Q.headingLevel2=h("svg",{xmlns:X,viewBox:"0 0 24 24"},h("path",{d:"M9 11.1H5v-4H3v10h2v-4h4v4h2v-10H9v4zm8 4c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6v1.5h8v-2H17z"})),Q.headingLevel3=h("svg",{xmlns:X,viewBox:"0 0 24 24"},h("path",{d:"M9 11H5V7H3v10h2v-4h4v4h2V7H9v4zm11.3 1.7c-.4-.4-1-.7-1.6-.8v-.1c.6-.2 1.1-.5 1.5-.9.3-.4.5-.8.5-1.3 0-.4-.1-.8-.3-1.1-.2-.3-.5-.6-.8-.8-.4-.2-.8-.4-1.2-.5-.6-.1-1.1-.2-1.6-.2-.6 0-1.3.1-1.8.3s-1.1.5-1.6.9l1.2 1.4c.4-.2.7-.4 1.1-.6.3-.2.7-.3 1.1-.3.4 0 .8.1 1.1.3.3.2.4.5.4.8 0 .4-.2.7-.6.9-.7.3-1.5.5-2.2.4v1.6c.5 0 1 0 1.5.1.3.1.7.2 1 .3.2.1.4.2.5.4s.1.4.1.6c0 .3-.2.7-.5.8-.4.2-.9.3-1.4.3s-1-.1-1.4-.3c-.4-.2-.8-.4-1.2-.7L13 15.6c.5.4 1 .8 1.6 1 .7.3 1.5.4 2.3.4.6 0 1.1-.1 1.6-.2.4-.1.9-.2 1.3-.5.4-.2.7-.5.9-.9.2-.4.3-.8.3-1.2 0-.6-.3-1.1-.7-1.5z"})),Q.headingLevel4=h("svg",{xmlns:X,viewBox:"0 0 24 24"},h("path",{d:"M20 13V7h-3l-4 6v2h5v2h2v-2h1v-2h-1zm-2 0h-2.8L18 9v4zm-9-2H5V7H3v10h2v-4h4v4h2V7H9v4z"})),Q.headingLevel5=h("svg",{xmlns:X,viewBox:"0 0 24 24"},h("path",{d:"M9 11H5V7H3v10h2v-4h4v4h2V7H9v4zm11.7 1.2c-.2-.3-.5-.7-.8-.9-.3-.3-.7-.5-1.1-.6-.5-.1-.9-.2-1.4-.2-.2 0-.5.1-.7.1-.2.1-.5.1-.7.2l.1-1.9h4.3V7H14l-.3 5 1 .6.5-.2.4-.1c.1-.1.3-.1.4-.1h.5c.5 0 1 .1 1.4.4.4.2.6.7.6 1.1 0 .4-.2.8-.6 1.1-.4.3-.9.4-1.4.4-.4 0-.9-.1-1.3-.3-.4-.2-.7-.4-1.1-.7 0 0-1.1 1.4-1 1.5.5.4 1 .8 1.6 1 .7.3 1.5.4 2.3.4.5 0 1-.1 1.5-.3s.9-.4 1.3-.7c.4-.3.7-.7.9-1.1s.3-.9.3-1.4-.1-1-.3-1.4z"}));var Y=[{color:"#fb2121"},{color:"#ef0c7e"},{color:"#F3AC07"},{color:"#8CA803"},{color:"#64BD05"},{color:"#11C33F"},{color:"#08B89A"},{color:"#09ACE2"},{color:"#1F91F3"},{color:"#3B6ED5"},{color:"#664FFA"},{color:"#A845F7"},{color:"#333"},{color:"#666"},{color:"#999"},{color:"#f8f8f8"}];function ee(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);timg",attribute:"src",default:""},file_name:{type:"string",selector:".file-download-name",source:"text"},desc:{type:"array",source:"query",selector:".file-download-desc",default:[{left:"",right:""}],query:{left:{type:"string",source:"text",selector:".desc-left"},right:{type:"string",source:"text",selector:".desc-right"}}}},edit:function(e){var t=e.attributes,a=t.file_id,l=t.file_name,r=a||"javascript:;"==t.url?"":t.url,n=t.desc,o=t.icon,i=e.setAttributes,s=e.isSelected;function c(e){return e&&e.type&&"image"===e.type?e.sizes&&e.sizes.thumbnail&&e.sizes.thumbnail.url?e.sizes.thumbnail.url:e.url:""}var u=h(j,{title:Z("gutenberg_select_or_upload_file"),onSelect:function(e){var t=e.filename||e.name,a=J("gutenberg_ext_file",function(e){return e.substring(e.lastIndexOf(".")+1)}(t)),l=e.filesizeInBytes?function(e,t,a){var l;for(a=a||["B","K","M","G","TB"];(l=a.shift())&&e>1024;)e/=1024;return("B"===l?e:e.toFixed(void 0===t?1:t))+l}(e.filesizeInBytes):"";"image"===e.type&&(o=c(e)),i({file_name:t,url:"",icon:o,file_id:e.id,desc:[{left:a,right:l}]})},value:a,render:function(e){var t=e.open;return h("a",{className:"but jb-blue is-secondary flex0",onClick:t},Z(a?"gutenberg_replace":"gutenberg_select_or_upload")+Z("gutenberg_file"))}});return h("div",{},h("div",{className:"muted-box file-download-box"},h("div",{className:"flex ac jsb"},h("div",{className:"flex ac flex1"},h("div",{className:"mr10"},h("div",{className:"file-download-icon"},[o&&h("img",{className:"fit-cover",src:o,alt:Z("gutenberg_download_icon")})])),h("div",{className:"flex1"},[s?[r||a?h(L,{className:"",tagName:"input",onChange:function(e){i({file_name:e})},value:l,placeholder:Z("gutenberg_enter_file_name")}):Z("gutenberg_enter_download_url_or_file")]:h("div",{className:"text-ellipsis-2 file-download-name"},l||Z("gutenberg_enter_file_name"))],[s?h("div",{className:"flex ac"},[a?h("div",{className:"flex ac"},h("div",{className:"px12"},Z("gutenberg_local_file_selected")),h("div",{className:"mb6 ml10"},h("a",{className:"but c-blue-2",onClick:function(){i({file_id:0})}},Z("gutenberg_enter_url")))):h(L,{className:"flex1",tagName:"input",onChange:function(e){i({url:e})},value:r,placeholder:Z("gutenberg_enter_download_url")})],h("div",{className:"mb6 ml6"},u)):h("div",{className:"px12 opacity5"},r||(a?Z("gutenberg_local_file"):""))])),h("div",{className:"flex0 ml20"},[s||h("div",{className:"but c-blue file-download-btn"},h("i",{className:"fa fas fa-download"},Z("gutenberg_download")))])),h("div",{className:"mt10"},n.map(function(e,t){return s?h("div",{className:"flex ab jsb muted-2-color file-download-desc"},h("div",{className:"desc-left"},h(L,{className:"flex1 mr6",tagName:"input",onChange:function(e){n[t].left=e,i({desc:ee(n)})},value:e.left,placeholder:Z("gutenberg_enter_file_attr")})),h("div",{className:"desc-right flex ac"},h(L,{className:"flex1 mr6",tagName:"input",onChange:function(e){n[t].right=e,i({desc:ee(n)})},value:e.right,placeholder:Z("gutenberg_enter_file_attr")}),h("button",{className:"mb6 ml6 c-red fa far fa-trash-alt",type:"button",onClick:function(){n.splice(t,1),i({desc:ee(n)})}}))):e.left||e.right?h("div",{className:"flex ab jsb muted-2-color file-download-desc em09"},h("div",{className:"desc-left"},e.left),h("div",{className:"desc-right"},e.right)):void 0})),[s&&h("a",{className:"but c-blue is-secondary hollow",onClick:function(){i({desc:[].concat(ee(n),{left:"",right:""})})}},Z("gutenberg_add_file_attr"))]),h(H,null,te(13990),h(V,{icon:"image",title:Z("gutenberg_file_icon")},h("div",{className:"components-base-control"},[o&&h("div",{className:" "},h("img",{src:o}))],h("div",{className:"flex ac"},h(j,{title:Z("gutenberg_select_or_upload_file_icon"),allowedTypes:["image"],onSelect:function(e){i({icon:c(e)})},render:function(e){var t=e.open;return h("a",{className:"but jb-blue",onClick:t},Z(o?"gutenberg_replace":"gutenberg_add")+Z("gutenberg_icon"))}}),[o&&h("a",{className:"but c-red ml6",onClick:function(){i({icon:""})}},Z("gutenberg_remove"))]),h("div",{className:"mt6 em09 opacity5"},Z("gutenberg_file_icon_square_hint"))))))},save:function(e){var t=e.attributes,a=~~t.file_id,l=t.file_name,r=t.url||"javascript:;",n=t.icon,o=t.desc,i={className:"but c-blue file-download-btn",href:r};a&&(i["data-download-file"]=a);var s=o.map(function(e){if(e.left||e.right)return h("div",{className:"flex ab jsb muted-2-color file-download-desc em09"},h("div",{className:"desc-left"},e.left),h("div",{className:"desc-right"},e.right))});return h("div",{contenteditable:"false",className:"muted-box file-download-box mb20"},h("div",{className:"flex ac jsb"},h("div",{className:"flex ac"},h("div",{className:"mr10"},h("div",{className:"file-download-icon"},[n&&h("img",{className:"fit-cover no-imgbox",src:n,alt:Z("gutenberg_download_icon")})])),h("div",{className:"text-ellipsis-2 file-download-name",contenteditable:"true"},l)),h("div",{className:"flex0 ml20"},h("a",i,h("i",{className:"fa fas fa-download"}),Z("gutenberg_download")))),[s&&h("div",{className:"mt10"},s)])}}),f("aksrtblock/tabs",{title:ae(Z("gutenberg_tab")),icon:Q.tabs,supports:{className:!1,anchor:!0},description:Z("gutenberg_tab_desc"),category:"aksrt_block_cat",attributes:{tabHeaders:{type:"array",default:[Z("gutenberg_tab_col_1"),Z("gutenberg_tab_col_2"),Z("gutenberg_tab_col_3")]},tabActive:{type:"number",default:0},open:{type:"number",default:0},layout:{type:"string",default:"nav-top"}},edit:function(e){var t=e.attributes,a=e.isSelected,l=e.setAttributes,r=t.tabHeaders,n=t.tabActive,o=t.layout,i=e.clientId,s=function(e){var t=_(i);l({tabActive:e}),K(t.innerBlocks.length,function(a){v(t.innerBlocks[a].clientId,{tabActive:e,id:a})})},c=function(e){if(r.length<2)return le("warning",Z("gutenberg_cannot_delete_tab_min_one"));var t=g(i);return m(t[e],!1),r.splice(e,1),l({tabHeaders:ee(r)}),s(0),!1};return h("div",{className:"tab-card theme-card-box "+o},h("div",{className:"tab-header flex ab"},r.map(function(e,t){return h("div",{className:"tab-header-item"+((a=t)==n?" active":""),onClick:function(){s(a)}},h(L,{className:"tab-header-input",onChange:function(e){r[a]=e,l({tabHeaders:ee(r)})},value:r[a],placeholder:Z("gutenberg_enter_title")}),h("div",{className:"tab-operation"},h("a",{className:"but b-red circular",onClick:function(){c(a)}},h("i",{className:"fa fas fa-times"}))));var a}),[a&&h("a",{className:"but jb-blue em09 ml6",onClick:function(){var e=y("aksrtblock/tab");p(e,r.length,i),l({tabHeaders:[].concat(ee(r),"")}),s(r.length)}},Z("gutenberg_add_plus"))]),h("div",{className:"tab-content"},h(k,{template:[["aksrtblock/tab",{id:0}],["aksrtblock/tab",{id:1}],["aksrtblock/tab",{id:2}]],templateLock:!1,allowedBlocks:["aksrtblock/tab"]})),h(H,null,te(2195),h(V,{icon:"admin-generic",title:Z("gutenberg_settings")},h("div",{className:"components-base-control"},h(F,{label:Z("gutenberg_nav_position"),value:o,onChange:function(e){l({layout:e})},options:[{label:Z("gutenberg_top"),value:"nav-top"},{label:Z("gutenberg_left"),value:"nav-left"},{label:Z("gutenberg_right"),value:"nav-left nav-right"}]})))))},save:function(e){var t=e.attributes,a=t.tabHeaders,l=t.open,r=t.layout;return h("div",{className:"mb20 post-tab "+r},h("div",{className:"list-inline scroll-x mini-scrollbar tab-nav-theme"},a.map(function(e,t){return h("li",{className:(r=t)==l?"active":""},h("a",{className:"post-tab-toggle",href:"javascript:;","tab-id":r},a[r]||J("gutenberg_tab_col_n",r+1)));var r})),h("div",{className:"tab-content"},h(k.Content,null)))}}),f("aksrtblock/tab",{title:ae(Z("gutenberg_tab")),parent:["aksrtblock/tabs"],icon:Q.tabs,supports:{className:!1,reusable:!1},category:"aksrt_block_cat",attributes:{id:{type:"number",default:0},pid:{type:"string"},tabActive:{type:"number",default:0},open:{type:"number",default:0}},edit:function(e){var t=e.attributes,a=t.id,l=t.tabActive;return h(A,null,h("div",{className:"",style:{display:a===l?"block":"none"}},h(k,{template:[["core/paragraph"]],templateLock:!1})))},save:function(e){var t=e.attributes,a=t.id,l=t.open;return h("div",{className:"tab-pane fade"+(a==l?" active in":""),"tab-id":a},h(k.Content,null))}}),f("aksrtblock/dplayerfeatured",{title:ae(Z("gutenberg_video_series")),icon:Q.featured,supports:{className:!1,color:!1},description:Z("gutenberg_video_series_desc"),category:"aksrt_block_cat",attributes:{featured:{type:"array",source:"query",selector:".switch-video",default:[],query:{text:{type:"string",source:"attribute",attribute:"title"},url:{type:"string",source:"attribute",attribute:"video-url"},media_id:{type:"number",source:"attribute",attribute:"media-id"}}},pic:{type:"string",source:"attribute",selector:".new-dplayer",attribute:"video-pic",default:""},loop:{type:"string",source:"attribute",selector:".new-dplayer",attribute:"data-loop",default:""},autoplay:{type:"string",source:"attribute",selector:".new-dplayer",attribute:"data-autoplay",default:""},volume:{type:"string",source:"attribute",selector:".new-dplayer",attribute:"data-volume",default:1},height:{type:"string",source:"attribute",selector:".new-dplayer",attribute:"data-scale-height",default:0},hide_controller:{type:"boolean",default:!1}},transforms:{to:[{type:"block",blocks:["aksrtblock/dplayer"],transform:function(e){var t={url:e.featured[0].url,media_id:e.featured[0].media_id,pic:e.pic,loop:e.loop,autoplay:e.autoplay,volume:e.volume,hide_controller:e.hide_controller};return y("aksrtblock/dplayer",t)}},{type:"block",blocks:["aksrtblock/iframeseries"],transform:function(e){var t={lists:e.featured};return y("aksrtblock/iframeseries",t)}}]},edit:function(e){var t=e.attributes,a=e.isSelected,l=e.setAttributes,r=t.pic,n=t.loop,o=t.autoplay,i=t.hide_controller,s=t.height||0,c=t.volume||1,u=t.featured.length?t.featured:[{text:"",url:"",media_id:""},{text:"",url:"",media_id:""}],b=function(e){if(u.length<3)return le("warning",Z("gutenberg_cannot_delete_episode_min_two"));u.splice(e,1),l({featured:ee(u)})};return h("div",{},h("div",{className:"theme-card-box"},h("div",{className:"em12 mb10 flex ac"},Q.featured,h("span",{className:"ml10"},Z("gutenberg_video_series_module"))),h("div",{className:"opacity8 mb10 px12"},Z("gutenberg_video_series_hint")),[a?u.map(function(e,t){return h("div",{className:"flex featured-item"},h("span",{className:"mr10 c-red"},(a=t)+1),h("div",{className:"flex1"},h("div",{className:"flex ab"},h(L,{className:"flex1 mr6",tagName:"input",onChange:function(e){u[a].text=e,l({featured:ee(u)})},value:u[a].text,placeholder:J("gutenberg_episode_title_placeholder",a+1)}),[u.length>2&&h("button",{className:"mb6 ml6 c-red fa far fa-trash-alt",type:"button",onClick:function(){b(a)}})]),h("div",{className:"flex ab"},h(L,{className:"flex1 mr6",tagName:"input",onChange:function(e){u[a].url=e,u[a].media_id="",l({featured:ee(u)})},value:u[a].url,placeholder:Z("gutenberg_enter_video_url_or_upload")}),h(j,{title:Z("gutenberg_select_or_upload_video"),allowedTypes:["video"],onSelect:function(e){u[a].url=e.url,u[a].media_id=e.id,l({featured:ee(u)})},value:u[a].media_id,render:function(e){var t=e.open;return h("a",{className:"but c-blue is-secondary flex0",onClick:t},Z("gutenberg_local_video"))}}))));var a}):u.map(function(e,t){return h("div",{className:"flex featured-item px12 opacity8",style:{padding:"2px 10px","margin-bottom":"-1px"}},t+1+":"+e.url)})],[a&&h("a",{className:"but jb-blue",onClick:function(){l({featured:[].concat(ee(u),{url:"",media_id:""})})}},Z("gutenberg_add_episode"))]),h(H,null,te(2223),h(V,{icon:"admin-generic",title:Z("gutenberg_settings")},h("div",{className:"components-base-control"},[r&&h("div",{className:" "},h("img",{src:r}))],h(j,{title:Z("gutenberg_select_or_upload_poster"),allowedTypes:["image"],onSelect:function(e){l({pic:e.url})},render:function(e){var t=e.open;return h("a",{className:"but jb-blue",onClick:t},Z(r?"gutenberg_replace":"gutenberg_add")+Z("gutenberg_poster_image"))}})),h(P,{label:Z("gutenberg_autoplay"),checked:o,onChange:function(e){l({autoplay:e})}}),h(P,{label:Z("gutenberg_loop"),checked:n,onChange:function(e){l({loop:e})}}),h(P,{label:Z("gutenberg_hide_controller"),checked:i,onChange:function(e){l({hide_controller:e})}}),h(R,{label:Z("gutenberg_initial_volume"),value:~~(100*c),onChange:function(e){l({volume:e/100})},allowReset:!0,min:"0",max:"100"}),h(R,{label:Z("gutenberg_fixed_aspect_ratio"),help:s>0?J("gutenberg_height_of_width",s):Z("gutenberg_height_ratio_auto"),value:~~s,onChange:function(e){l({height:e})},allowReset:!0,min:"0",step:"5",max:"200"}))))},save:function(e){var t=e.attributes,a=t.pic,l=t.loop||"",r=t.autoplay||"",n=t.hide_controller||"",o=t.height||0,i=t.featured,s=t.volume||1;if(i&&i[0]){var c=i[0].url,u=h("div",{className:"graphic",style:{"padding-bottom":"50%"}},h("div",{className:"abs-center text-center"},h("i",{className:"fa fas fa-play-circle fa-4x muted-3-color opacity5"}))),b={className:"new-dplayer"+(n?" controller-hide":"")+(o>0?" dplayer-scale-height":""),"video-url":c,"video-pic":a,"data-loop":l,"data-autoplay":r,"data-volume":s};return o>0&&(b.style="--scale-height:"+o+"%;",b["data-scale-height"]=o),h("div",{className:"mb20"},h("div",b,u),h("div",{className:"featured-video-episode mt10 dplayer-featured"},i.map(function(e,t){t+=1;var a=e.text||J("gutenberg_episode_n",t);return h("a",{className:"switch-video text-ellipsis"+(1==t?" active":""),"data-index":t,"video-url":e.url,"media-id":e.media_id,title:e.text,href:"javascript:;"},h("span",{className:"mr6 badg badg-sm"},t),h("i",{className:"episode-active-icon"},""),a)})))}}}),f("aksrtblock/iframe",{title:ae(Z("gutenberg_super_embed")),icon:Q.iframe,description:Z("gutenberg_super_embed_desc"),category:"aksrt_block_cat",attributes:{url:{source:"attribute",selector:"iframe",attribute:"src"},aspect:{type:"attribute",selector:"iframe",attribute:"data-aspect"},allowfullscreen:{type:"attribute",selector:"iframe",attribute:"allowfullscreen"}},transforms:{to:[{type:"block",blocks:["aksrtblock/iframeseries"],transform:function(e){var t={lists:[{url:e.url,title:""}],aspect:e.aspect,allowfullscreen:e.allowfullscreen};return y("aksrtblock/iframeseries",t)}},{type:"block",blocks:["aksrtblock/dplayer"],transform:function(e){var t={url:e.url};return y("aksrtblock/dplayer",t)}}]},edit:function(t){var a=t.attributes,l=t.isSelected,r=t.setAttributes,n=a.url,o=a.allowfullscreen,i=a.aspect||"56%";return h("div",{className:"aksrtblock-iframe"},h("div",{className:!n||l?"theme-card-box":"nois_selected"},[n&&h("div",{className:"aksrtblock-iframe-div",style:{"padding-bottom":i}},h("iframe",{className:"",width:"100%",src:n}),h("div",{className:"iframe-mask"}))],[!n&&h("div",{className:"components-placeholder__label",style:{width:"95%",height:"27px","font-size":"15px"}},Q.iframe,Z("gutenberg_embed_online_content"))],[(!n||l)&&h("div",{className:"mt20"},h("div",{className:"opacity8 iframe-label"},Z("gutenberg_embed_url_hint_multi")),h("a",{className:"block-editor-block-card__description"},""))],[(!n||l)&&h(L,{style:{width:"95%"},tagName:"input",onChange:function(t){var a=e.parseHTML(t),l=e(a).attr("src")||t;r({url:l})},value:n,placeholder:Z("gutenberg_enter_url_or_embed_code")})]),h(H,null,te(1934),h(V,{icon:"admin-generic",title:Z("gutenberg_settings")},h(F,{label:Z("gutenberg_aspect_ratio_settings"),value:i,onChange:function(e){r({aspect:e})},options:[{label:Z("gutenberg_ratio_landscape_4_1"),value:"25%"},{label:Z("gutenberg_ratio_landscape_3_1"),value:"33%"},{label:Z("gutenberg_ratio_landscape_5_2"),value:"40%"},{label:Z("gutenberg_ratio_landscape_2_1"),value:"50%"},{label:Z("gutenberg_ratio_landscape_16_9"),value:"56%"},{label:Z("gutenberg_ratio_landscape_5_3"),value:"60%"},{label:Z("gutenberg_ratio_landscape_4_3"),value:"75%"},{label:Z("gutenberg_ratio_landscape_5_4"),value:"80%"},{label:Z("gutenberg_ratio_landscape_8_7"),value:"87.5%"},{label:Z("gutenberg_ratio_square_1_1"),value:"100%"},{label:Z("gutenberg_ratio_portrait_7_8"),value:"114%"},{label:Z("gutenberg_ratio_portrait_4_5"),value:"125%"},{label:Z("gutenberg_ratio_portrait_3_4"),value:"133%"},{label:Z("gutenberg_ratio_portrait_3_5"),value:"166%"},{label:Z("gutenberg_ratio_portrait_1_2"),value:"200%"},{label:Z("gutenberg_ratio_portrait_2_5"),value:"250%"},{label:Z("gutenberg_ratio_portrait_1_3"),value:"300%"}]}),h(P,{label:Z("gutenberg_allow_fullscreen"),checked:!!o,onChange:function(e){r({allowfullscreen:e})}}))))},save:function(e){var t=e.attributes,a=t.url,l=t.aspect||"56%",r={className:"","data-aspect":l,framespacing:"0",border:"0",width:"100%",frameborder:"no",src:a};if(t.allowfullscreen&&(r.allowfullscreen="allowfullscreen"),a)return h("div",{className:"wp-block-embed is-type-video mb20"},h("div",{className:"",style:{"padding-bottom":l}},h("iframe",r)))}}),f("aksrtblock/iframeseries",{title:ae(Z("gutenberg_embed_series")),icon:Q.iframeseries,supports:{className:!1,color:!1},description:Z("gutenberg_embed_series_desc"),category:"aksrt_block_cat",attributes:{lists:{type:"array",source:"query",selector:".switch-iframe",default:[{text:"",url:""},{text:"",url:""}],query:{text:{type:"string",source:"attribute",attribute:"title"},url:{type:"string",source:"attribute",attribute:"iframe-url"}}},aspect:{type:"attribute",selector:"iframe",attribute:"data-aspect"},allowfullscreen:{type:"attribute",selector:"iframe",attribute:"allowfullscreen"}},transforms:{to:[{type:"block",blocks:["aksrtblock/iframe"],transform:function(e){var t={url:e.lists[0].url,aspect:e.aspect,allowfullscreen:e.allowfullscreen};return y("aksrtblock/iframe",t)}},{type:"block",blocks:["aksrtblock/dplayerfeatured"],transform:function(e){var t={featured:e.lists};return y("aksrtblock/dplayerfeatured",t)}}]},edit:function(t){var a=t.attributes,l=t.isSelected,r=t.setAttributes,n=a.lists,o=a.allowfullscreen,i=a.aspect||"56%",s=function(e){if(n.length<3)return le("warning",Z("gutenberg_cannot_delete_episode_min_two"));n.splice(e,1),r({lists:ee(n)})};return h("div",{className:"aksrtblock-iframe"},h("div",{className:"theme-card-box"},h("div",{className:"em12 mb10 flex ac"},Q.iframeseries,h("span",{className:"ml10"},Z("gutenberg_embed_series_module"))),h("div",{className:"opacity8 mb10 px12"},Z("gutenberg_embed_series_hint")),[l?n.map(function(t,a){return h("div",{className:"flex featured-item"},h("span",{className:"mr10 c-red"},(l=a)+1),h("div",{className:"flex1"},h("div",{className:"flex ab"},h(L,{className:"flex1 mr6",tagName:"input",onChange:function(e){n[l].text=e,r({lists:ee(n)})},value:n[l].text,placeholder:J("gutenberg_episode_title_placeholder",l+1)}),[n.length>2&&h("button",{className:"mb6 ml6 c-red fa far fa-trash-alt",type:"button",onClick:function(){s(l)}})]),h(L,{className:"flex1 mr6",tagName:"input",onChange:function(t){var a=e.parseHTML(t),o=e(a).attr("src")||t;n[l].url=o,r({lists:ee(n)})},value:n[l].url,placeholder:Z("gutenberg_enter_embed_url")})));var l}):n.map(function(e,t){return h("div",{className:"flex featured-item px12 opacity8",style:{padding:"2px 10px","margin-bottom":"-1px"}},t+1+":"+e.url)})],[l&&h("a",{className:"but jb-blue",onClick:function(){r({lists:[].concat(ee(n),{url:"",media_id:""})})}},Z("gutenberg_add_episode"))]),h(H,null,te(1934),h(V,{icon:"admin-generic",title:Z("gutenberg_settings")},h(F,{label:Z("gutenberg_aspect_ratio_settings"),value:i,onChange:function(e){r({aspect:e})},options:[{label:Z("gutenberg_ratio_landscape_4_1"),value:"25%"},{label:Z("gutenberg_ratio_landscape_3_1"),value:"33%"},{label:Z("gutenberg_ratio_landscape_5_2"),value:"40%"},{label:Z("gutenberg_ratio_landscape_2_1"),value:"50%"},{label:Z("gutenberg_ratio_landscape_16_9"),value:"56%"},{label:Z("gutenberg_ratio_landscape_5_3"),value:"60%"},{label:Z("gutenberg_ratio_landscape_4_3"),value:"75%"},{label:Z("gutenberg_ratio_landscape_5_4"),value:"80%"},{label:Z("gutenberg_ratio_landscape_8_7"),value:"87.5%"},{label:Z("gutenberg_ratio_square_1_1"),value:"100%"},{label:Z("gutenberg_ratio_portrait_7_8"),value:"114%"},{label:Z("gutenberg_ratio_portrait_4_5"),value:"125%"},{label:Z("gutenberg_ratio_portrait_3_4"),value:"133%"},{label:Z("gutenberg_ratio_portrait_3_5"),value:"166%"},{label:Z("gutenberg_ratio_portrait_1_2"),value:"200%"},{label:Z("gutenberg_ratio_portrait_2_5"),value:"250%"},{label:Z("gutenberg_ratio_portrait_1_3"),value:"300%"}]}),h(P,{label:Z("gutenberg_allow_fullscreen"),checked:!!o,onChange:function(e){r({allowfullscreen:e})}}))))},save:function(e){var t=e.attributes,a=t.lists,l=t.aspect||"56%";if(a&&a[0]){var r={className:"","data-aspect":l,framespacing:"0",border:"0",width:"100%",frameborder:"no",src:a[0].url};return t.allowfullscreen&&(r.allowfullscreen="allowfullscreen"),h("div",{className:"mb20 iframe-series"},h("div",{className:"wp-block-embed is-type-video"},h("div",{className:"iframe-series-box",style:{"padding-bottom":l}},h("iframe",r))),h("div",{className:"featured-video-episode mt10 dplayer-featured"},a.map(function(e,t){t+=1;var a=e.text||J("gutenberg_episode_n",t);return h("a",{className:"switch-iframe text-ellipsis"+(1==t?" active":""),"data-index":t,"iframe-url":e.url,title:e.text,href:"javascript:;"},h("span",{className:"mr6 badg badg-sm"},t),h("i",{className:"episode-active-icon"},""),a)})))}}}),f("aksrtblock/dplayer",{title:ae(Z("gutenberg_video")),icon:Q.video,description:Z("gutenberg_video_desc"),category:"aksrt_block_cat",attributes:{url:{source:"attribute",selector:".new-dplayer",attribute:"video-url"},media_id:{source:"attribute",selector:".new-dplayer",attribute:"media-id"},pic:{source:"attribute",selector:".new-dplayer",attribute:"video-pic"},loop:{source:"attribute",selector:".new-dplayer",attribute:"data-loop"},autoplay:{source:"attribute",selector:".new-dplayer",attribute:"data-autoplay"},volume:{source:"attribute",selector:".new-dplayer",attribute:"data-volume"},height:{type:"string",source:"attribute",selector:".new-dplayer",attribute:"data-scale-height",default:0},hide_controller:{source:"attribute",selector:".new-dplayer",attribute:"data-hide"}},transforms:{to:[{type:"block",blocks:["aksrtblock/dplayerfeatured"],transform:function(e){var t={featured:[{text:"",url:e.url,media_id:e.media_id},{text:"",url:"",media_id:""}],pic:e.pic,loop:e.loop,autoplay:e.autoplay,volume:e.volume,hide_controller:e.hide_controller};return y("aksrtblock/dplayerfeatured",t)}},{type:"block",blocks:["aksrtblock/iframe"],transform:function(e){var t={url:e.url};return y("aksrtblock/iframe",t)}}]},edit:function(e){var t=e.attributes,a=e.isSelected,l=e.setAttributes,r=t.url,n=t.media_id,o=t.pic,i=t.loop,s=t.autoplay,c=t.hide_controller,u=t.height||0,b=t.volume||1;return h("div",{},h("div",{className:"theme-card-box"},h("div",{className:"em12 mb10 flex ac"},Q.video,h("span",{className:"ml10"},Z("gutenberg_video_module"))),h("div",{className:"opacity8 mb10 px12"},Z("gutenberg_video_hint")),h(L,{style:{width:"95%"},tagName:"input",onChange:function(e){l({url:e,media_id:""})},value:r,placeholder:Z("gutenberg_enter_video_url_or_upload")}),h(j,{title:Z("gutenberg_select_or_upload_video"),allowedTypes:["video"],onSelect:function(e){l({url:e.url,media_id:e.id})},value:n,render:function(e){var t=e.open;return a&&h("a",{className:"but jb-blue",onClick:t},Z("gutenberg_select_local_video"))}})),h(H,null,te(1921),h(V,{icon:"admin-generic",title:Z("gutenberg_settings")},h("div",{className:"components-base-control"},[o&&h("div",{className:" "},h("img",{src:o}))],h(j,{title:Z("gutenberg_select_or_upload_poster"),allowedTypes:["image"],onSelect:function(e){l({pic:e.url})},render:function(e){var t=e.open;return h("a",{className:"but jb-blue",onClick:t},Z(o?"gutenberg_replace":"gutenberg_add")+Z("gutenberg_poster_image"))}})),h(P,{label:Z("gutenberg_autoplay"),checked:s,onChange:function(e){l({autoplay:e})}}),h(P,{label:Z("gutenberg_loop"),checked:i,onChange:function(e){l({loop:e})}}),h(P,{label:Z("gutenberg_hide_controller"),checked:c,onChange:function(e){l({hide_controller:e})}}),h(R,{label:Z("gutenberg_initial_volume"),value:~~(100*b),onChange:function(e){l({volume:e/100})},allowReset:!0,min:"0",max:"100"}),h(R,{label:Z("gutenberg_fixed_aspect_ratio"),help:u>0?J("gutenberg_height_of_width",u):Z("gutenberg_height_ratio_auto"),value:~~u,onChange:function(e){l({height:e})},allowReset:!0,min:"0",step:"5",max:"200"}))))},save:function(e){var t=e.attributes,a=t.url,l=t.media_id,r=t.pic,n=t.loop||"",o=t.autoplay||"",i=t.hide_controller||"",s=t.height||0,c=t.volume||1;if(a){var u=h("div",{className:"graphic",style:{"padding-bottom":"50%"}},h("div",{className:"abs-center text-center"},h("i",{className:"fa fas fa-play-circle fa-4x muted-3-color opacity5"}))),b={className:"new-dplayer post-dplayer"+(i?" controller-hide":"")+(s>0?" dplayer-scale-height":""),"video-url":a,"media-id":l,"video-pic":r,"data-loop":n,"data-hide":i,"data-autoplay":o,"data-volume":c};return s>0&&(b.style="--scale-height:"+s+"%;",b["data-scale-height"]=s),h("div",b,u)}}}),f("aksrtblock/feature",{title:ae(Z("gutenberg_feature")),icon:Q.feature,description:Z("gutenberg_feature_desc"),category:"aksrt_block_cat",attributes:{title:{type:"array",source:"children",selector:".feature-title"},icon:{source:"attribute",selector:".feature",attribute:"data-icon"},note:{type:"array",source:"children",selector:".feature-note"},theme:{source:"attribute",selector:".feature",attribute:"class"},color:{source:"attribute",selector:".feature",attribute:"data-color"}},edit:function(e){var t=e.attributes,a=e.isSelected,l=e.setAttributes,n=t.title,o=t.note,i=t.icon||"fa-flag",s=t.color||"feature-icon no1";let c=h(r.ColorPalette,{value:s||"#444",colors:Y,className:"q-ColorPalette",onChange:function(e){l({color:e})}});var u=h(L,{tagName:"div",onChange:function(e){l({icon:e})},value:i,placeholder:Z("gutenberg_enter_icon_class")}),b=h(q,{tagName:"div",onChange:function(e){l({title:e})},value:n,placeholder:Z("gutenberg_enter_feature_title")}),d=h(q,{tagName:"div",onChange:function(e){l({note:e})},value:o,placeholder:Z("gutenberg_enter_feature_note")});return h("div",{},h("div",{className:"feature"},h("div",{className:"feature-icon"},h("i",{style:{color:s},className:"fa "+i})),[a&&h("div",{className:"feature-iconbj"},h("div",{className:"feature-icont"},Z("gutenberg_enter_fa_icon_class")),u)],[a&&c],h("div",{className:"feature-title"},b),h("div",{className:"feature-note"},d)),h(H,null,h("div",{className:"modal-ss block-editor-block-card"},h("div",{className:"components-base-control"},h("h5",{},Z("gutenberg_icon_usage")),h("p",{},Z("gutenberg_icon_usage_desc")),h("a",{href:"http://fontawesome.dashgame.com",target:"blank"},Z("gutenberg_font_awesome")))),h(V,{icon:"admin-generic",title:Z("gutenberg_settings")},h("div",{className:"components-base-control"},h("div",{className:"feature-icont"},Z("gutenberg_fa_icon_class")),u,h("div",{className:"feature-icont"},Z("gutenberg_select_icon_color")),c))))},save:function(e){var t=e.attributes,a=t.title,l=t.note,r=t.color||"feature-icon no1",n=t.icon||"fa-flag",o=t.theme||"feature feature-default";return h("div",{className:o,"data-icon":n,"data-color":r},h("div",{className:"feature-icon"},h("i",{style:{color:r},className:"fa "+n})),h("div",{className:"feature-title"},a),h("div",{className:"feature-note"},l))}}),i("aksrtblock/set-color",{title:Z("gutenberg_set_color"),tagName:"qc",className:null,attributes:{style:"style",block:"inline-block"},edit:class extends C{constructor(){super(...arguments),this.show_modal=this.show_modal.bind(this),this.close_modal=this.close_modal.bind(this),this.words_selected=this.words_selected.bind(this),this.set_popover_rect=this.set_popover_rect.bind(this),this.remove_Format=this.remove_Format.bind(this),this.onChange_cb=this.onChange_cb.bind(this),this.set_color=this.set_color.bind(this),this.set_color2=this.set_color2.bind(this),this.xsba=this.xsba.bind(this),this.xsba_f=this.xsba_f.bind(this),this.set_background=this.set_background.bind(this),this.set_background2=this.set_background2.bind(this),this.state={modal_visibility:!1}}words_selected(){const{value:e}=this.props;return e.start!==e.end}set_popover_rect(){const e=a.getSelection(),t=e.rangeCount>0?e.getRangeAt(0):null;var l=w(t);this.setState({popover_rect:l})}show_modal(){this.setState({modal_visibility:!0}),this.set_popover_rect()}close_modal(){this.setState({modal_visibility:!1})}xsba(){this.setState({xsba:!0})}xsba_f(){this.setState({xsba:!1})}remove_Format(){this.setState({color:"",background:""}),this.props.onChange(t.richText.toggleFormat(this.props.value,{type:"aksrtblock/set-color"}))}onChange_cb(){this.props.onChange(t.richText.applyFormat(this.props.value,{type:"aksrtblock/set-color",attributes:{style:"color:"+this.state.color+";background:"+this.state.background}}))}set_color(e){this.setState({color:"rgba("+e.rgb.r+","+e.rgb.g+","+e.rgb.b+","+e.rgb.a+")"}),this.onChange_cb()}set_color2(e){this.setState({color:e}),this.props.onChange(t.richText.applyFormat(this.props.value,{type:"aksrtblock/set-color",attributes:{style:"color:"+e+";background:"+this.state.background}}))}set_background2(e){this.setState({background:e}),this.props.onChange(t.richText.applyFormat(this.props.value,{type:"aksrtblock/set-color",attributes:{style:"color:"+this.state.color+";background:"+e}}))}set_background(e){this.setState({background:"rgba("+e.rgb.r+","+e.rgb.g+","+e.rgb.b+","+e.rgb.a+")"}),this.onChange_cb()}render(){let{isActive:e}=this.props,t=h(r.ColorPicker,{color:this.state.color||"#444",onChangeComplete:this.set_color}),a=h(r.ColorPalette,{value:this.state.color||"#444",colors:Y,clearable:!1,className:"q-ColorPalette",disableCustomColors:!0,onChange:this.set_color2}),l=h(r.ColorPalette,{value:this.state.background||"#fff",colors:Y,clearable:!1,className:"q-ColorPalette",disableCustomColors:!0,onChange:this.set_background2}),n=h(r.ColorPicker,{color:this.state.background||"#fff",onChangeComplete:this.set_background}),o=h("button",{className:"remove-Format",onClick:this.remove_Format},h("span",{className:"dashicons dashicons-image-rotate"}));return h(A,null,h(N,{icon:"art",title:Z("gutenberg_custom_color"),onClick:this.show_modal,isActive:e,isDisabled:!this.words_selected()}),this.state.modal_visibility&&h(x,{anchorRect:this.state.popover_rect,position:"bottom",className:"color_popover",onFocusOutside:this.close_modal},h(r.ButtonGroup,{},h("button",{className:"btn btn-default "+(!this.state.xsba&&"isS"),onClick:this.xsba_f},Z("gutenberg_color")),h("button",{className:"btn btn-default "+(this.state.xsba&&"isS"),onClick:this.xsba},Z("gutenberg_bg_color"))),o,!this.state.xsba&&h("div",{},h("p",{},Z("gutenberg_select_text_color")),a,t),this.state.xsba&&h("div",{},h("p",{},Z("gutenberg_select_bg_color")),l,n)))}}}),f("aksrtblock/modal",{title:ae(Z("gutenberg_modal")),icon:Q.modal,description:Z("gutenberg_modal_desc"),category:"aksrt_block_cat",attributes:{biaoti:{type:"array",source:"children",selector:".modal-title"},kuandu:{type:"attribute",selector:".modal-dialog",attribute:"data-kd"},btn1:{type:"array",source:"children",selector:"button.btn1"},btn2:{type:"array",source:"children",selector:"button.btn2"},id:{source:"attribute",selector:".modal",attribute:"id"},btn1kg:{type:"attribute",attribute:"data-bkg1",default:!0},btn2kg:{type:"attribute",attribute:"data-bkg2",default:!0},btntm1:{type:"attribute",selector:"button.btn1",attribute:"class"},btntm2:{type:"attribute",selector:"button.btn2",attribute:"class"},oncopy:{source:"string"}},edit:function(e){var t=e.attributes,a=t.biaoti,l=t.btn1,r=t.btn2,n=t.btntm1||"btn1 but",o=t.btntm2||"btn2 but c-blue",i=t.btn1kg,s=t.btn2kg,c=t.oncopy,u=t.kuandu||"",b=e.setAttributes,d=parseInt((Math.random()+1)*Math.pow(10,4));function g(e){var t=e.target.className;b({btntm1:"btn1 "+t})}function _(e){var t=e.target.className;b({btntm2:"btn2 "+t})}t.id||b({id:"modal_"+d});var p=h(k,{},""),m=h(q,{tagName:"div",onChange:function(e){b({biaoti:e})},value:a,placeholder:Z("gutenberg_enter_title_dots")}),v=h(q,{tagName:"div",onChange:function(e){b({btn1:e})},value:l,placeholder:Z("gutenberg_button_1")}),f=h(q,{tagName:"div",onChange:function(e){b({btn2:e})},value:r,placeholder:Z("gutenberg_button_2")}),y=h("span",{className:"modal-bu"},[h("button",{className:"but",onClick:g}),h("button",{className:"but c-blue",onClick:g}),h("button",{className:"but c-red",onClick:g}),h("button",{className:"but c-yellow",onClick:g}),h("button",{className:"but c-green",onClick:g}),h("button",{className:"but c-purple",onClick:g}),h("button",{className:"but b-blue",onClick:g}),h("button",{className:"but b-red",onClick:g}),h("button",{className:"but b-yellow",onClick:g}),h("button",{className:"but b-green",onClick:g}),h("button",{className:"but b-purple",onClick:g})]),N=h("span",{className:"modal-bu"},[h("button",{className:"but",onClick:_}),h("button",{className:"but c-blue",onClick:_}),h("button",{className:"but c-red",onClick:_}),h("button",{className:"but c-yellow",onClick:_}),h("button",{className:"but c-green",onClick:_}),h("button",{className:"but c-purple",onClick:_}),h("button",{className:"but b-blue",onClick:_}),h("button",{className:"but b-red",onClick:_}),h("button",{className:"but b-yellow",onClick:_}),h("button",{className:"but b-green",onClick:_}),h("button",{className:"but b-purple",onClick:_})]);return h("div",{},h("div",{className:"modal "+u},h("div",{className:"modal-title"},m,h("button",{className:"close"},"×")),h("div",{className:"modal-body"},p),[(i||s)&&h("div",{className:"modal-footer"},[i&&h("span",{className:n},v)],[s&&h("span",{className:o},f)])]),h(H,{},h("div",{className:"modal-ss padding-h"},h("h5",{},Z("gutenberg_usage_tutorial")),h("p",{},Z("gutenberg_modal_usage_desc")),h("p",{className:"modal-code"},"javascript:void($('#"+t.id+"').modal('show'));"),h("div",{className:"Copy"},h(S,{text:"javascript:void($('#"+t.id+"').modal('show'));",className:"Copy but jb-blue",onCopy:function(){b({oncopy:!0})},onFinishCopy:function(){b({oncopy:!1})}},Z(c?"gutenberg_code_copied":"gutenberg_click_copy_code")))),h(V,{title:Z("gutenberg_modal_settings")},h(F,{label:Z("gutenberg_width_select"),value:u,onChange:function(e){b({kuandu:e})},options:[{label:Z("gutenberg_width_default"),value:""},{label:Z("gutenberg_width_xs"),value:"modal-sm"},{label:Z("gutenberg_width_sm"),value:"modal-mini"},{label:Z("gutenberg_width_lg"),value:"modal-lg"}]}),h("p",{}," "),h(P,{label:Z("gutenberg_enable_button_1"),checked:i,onChange:function(e){b({btn1kg:e})}}),[i&&y],h(P,{label:Z("gutenberg_enable_button_2"),checked:s,onChange:function(e){b({btn2kg:e})}}),[s&&N])))},save:function(e){var t=e.attributes,a=t.btn1,l=t.btn2,r=t.btntm1||"btn1 but",n=t.btntm2||"btn2 but c-blue",o=t.btn1kg,i=t.btn2kg,s=t.kuandu,c=t.id,u=t.biaoti,b=h("div",{className:"modal-header"},h("strong",{className:"modal-title"},u),h("button",{className:"close","data-dismiss":"modal"},h("div",{"data-class":"ic-close","data-svg":"close","data-viewbox":"0 0 1024 1024"},""))),d=h("div",{className:"modal-body"},h(k.Content)),g=[(o&&a||i&&l)&&h("div",{className:"modal-footer"},[o&&a&&h("button",{className:r},a)],[i&&l&&h("button",{className:n},l)])];return h("div",{},h("div",{className:"modal fade",id:c,"aria-hidden":"true","data-bkg1":o,"aria-bkg2":i,role:"dialog",tabindex:"-1"},h("div",{className:"modal-dialog "+s,"data-kd":s},h("div",{className:"modal-content"},b,d,g))))}}),f("aksrtblock/collapse",{title:ae(Z("gutenberg_accordion")),icon:{src:"sort",foreground:U},description:Z("gutenberg_accordion_desc"),category:"aksrt_block_cat",attributes:{biaoti:{type:"array",source:"children",selector:".biaoti"},isshow:{type:"attribute",selector:".panel",attribute:"data-isshow",default:!0},theme:{source:"attribute",selector:".panel",attribute:"class"},id:{source:"attribute",selector:".collapse",attribute:"id"},ffs:{source:"string"}},edit:function(e){var t=e.attributes,a=t.biaoti,l=t.theme||"panel panel-default",r=t.isshow,n=t.ffs||"ffshow",o=e.setAttributes,i=parseInt((Math.random()+1)*Math.pow(10,4));function s(e){var t=e.target.className;o({theme:"panel "+t})}t.id||o({id:"collapse_"+i});var c=h(k,{},""),u=h(q,{tagName:"div",onChange:function(e){o({biaoti:e})},value:a,isSelected:e.isSelected,placeholder:Z("gutenberg_enter_accordion_title")});h("span",{className:"g_extend anz panel_b"},[h("button",{className:"panel-default",onClick:s}),h("button",{className:"panel-info",onClick:s}),h("button",{className:"panel-success",onClick:s}),h("button",{className:"panel-warning",onClick:s}),h("button",{className:"panel-danger",onClick:s})]);return h("div",{},h("div",{className:l},h("div",{className:"panel-heading"},u),h("span",{className:n+" isshow dashicons dashicons-arrow-down-alt2",onClick:function(){o("ffshow"==n?{ffs:"ffhide"}:{ffs:"ffshow"})}}),h("div",{className:n+" panel-body"},c)),h(H,null,h(V,{icon:"admin-generic",title:Z("gutenberg_settings")},h("p",{},h(P,{label:Z("gutenberg_default_expand"),checked:r,onChange:function(e){o({isshow:e})}})),h("i",{className:".components-base-control__help"},Z(r?"gutenberg_default_expanded":"gutenberg_default_collapsed")))))},save:function(e){var t=e.attributes,a=t.theme||"panel",l=t.isshow,r=t.id,n=t.biaoti,o=h("div",{className:"panel-heading "+(l?"":"collapsed"),href:"#"+r,"data-toggle":"collapse","aria-controls":"collapseExample"},h("i",{className:"fa fas fa-plus"}),h("strong",{className:"biaoti "},n)),i=h("div",{className:"collapse "+(l?"in":""),id:r},h("div",{className:"panel-body"},h(k.Content)));return h("div",{},h("div",{className:a,"data-theme":a,"data-isshow":l},o,i))}}),f("aksrtblock/enlighter",{title:ae(Z("gutenberg_code_highlight")),icon:Q.enlighter,category:"aksrt_block_cat",description:Z("gutenberg_code_highlight_desc"),keywords:["code","sourcecode",Z("gutenberg_code")],attributes:{content:{type:"string",selector:"code.gl",source:"text"},c_language:{type:"attribute",attribute:"data-enlighter-language",default:"generic"},theme:{type:"attribute",attribute:"data-enlighter-theme",default:""},highlight:{type:"attribute",attribute:"data-enlighter-highlight",default:""},linenumbers:{type:"attribute",attribute:"data-enlighter-linenumbers",default:""},lineoffset:{type:"attribute",attribute:"data-enlighter-lineoffset",default:""},title:{type:"attribute",attribute:"data-enlighter-title",default:""},group:{type:"attribute",attribute:"data-enlighter-group",default:""}},transforms:{from:[{type:"raw",priority:4,isMatch:function(e){return"PRE"===e.nodeName&&1===e.children.length&&"CODE"===e.firstChild.nodeName},transform:function(e){return y("aksrtblock/enlighter",{content:e.textContent})}},{type:"raw",priority:4,isMatch:function(e){return"PRE"===e.nodeName&&"EnlighterJSRAW"===e.className},transform:function(e){return y("aksrtblock/enlighter",{content:e.textContent,language:e.dataset.enlighterLanguage||"",theme:e.dataset.enlighterTheme||"",highlight:e.dataset.enlighterHighlight||"",linenumbers:e.dataset.enlighterLinenumbers||"",lineoffset:e.dataset.enlighterLineoffset||"",title:e.dataset.enlighterTitle||"",group:e.dataset.enlighterGroup||""})}},{type:"block",blocks:["core/code","core/preformatted","core/paragraph"],transform:function(e){var t=e.content;return y("aksrtblock/enlighter",{content:t})}}],to:[{type:"block",blocks:["core/code"],transform:function(e){var t=e.content;return y("core/code",{content:t})}},{type:"block",blocks:["core/preformatted"],transform:function(e){var t=e.content;return y("core/preformatted",{content:t})}}]},edit:function(e){var t=e.attributes,a=e.setAttributes,l=h(T,null,h(I,{className:"enlighter-dropdownmenu",icon:"editor-paste-text",label:Z("gutenberg_set_code_language"),controls:[{title:"yaml",value:"yaml",onClick:function(){return a({c_language:"yaml"})}},{title:"xml/html",value:"xml",onClick:function(){return a({c_language:"xml"})}},{title:"visualbasic",value:"visualbasic",onClick:function(){return a({c_language:"visualbasic"})}},{title:"vhdl",value:"vhdl",onClick:function(){return a({c_language:"vhdl"})}},{title:"typescript",value:"typescript",onClick:function(){return a({c_language:"typescript"})}},{title:"swift",value:"swift",onClick:function(){return a({c_language:"swift"})}},{title:"squirrel",value:"squirrel",onClick:function(){return a({c_language:"squirrel"})}},{title:"sql",value:"sql",onClick:function(){return a({c_language:"sql"})}},{title:"shell",value:"shell",onClick:function(){return a({c_language:"shell"})}},{title:"scss/sass",value:"scss",onClick:function(){return a({c_language:"scss"})}},{title:"rust",value:"rust",onClick:function(){return a({c_language:"rust"})}},{title:"ruby",value:"ruby",onClick:function(){return a({c_language:"ruby"})}},{title:"raw",value:"raw",onClick:function(){return a({c_language:"raw"})}},{title:"python",value:"python",onClick:function(){return a({c_language:"python"})}},{title:"prolog",value:"prolog",onClick:function(){return a({c_language:"prolog"})}},{title:"powershell",value:"powershell",onClick:function(){return a({c_language:"powershell"})}},{title:"php",value:"php",onClick:function(){return a({c_language:"php"})}},{title:"nsis",value:"nsis",onClick:function(){return a({c_language:"nsis"})}},{title:"matlab",value:"matlab",onClick:function(){return a({c_language:"matlab"})}},{title:"markdown",value:"markdown",onClick:function(){return a({c_language:"markdown"})}},{title:"lua",value:"lua",onClick:function(){return a({c_language:"lua"})}},{title:"less",value:"less",onClick:function(){return a({c_language:"less"})}},{title:"kotlin",value:"kotlin",onClick:function(){return a({c_language:"kotlin"})}},{title:"json",value:"json",onClick:function(){return a({c_language:"json"})}},{title:"javascript",value:"javascript",onClick:function(){return a({c_language:"javascript"})}},{title:"java",value:"java",onClick:function(){return a({c_language:"java"})}},{title:"ini/conf",value:"ini",onClick:function(){return a({c_language:"ini"})}},{title:"groovy",value:"groovy",onClick:function(){return a({c_language:"groovy"})}},{title:"go/golang",value:"go",onClick:function(){return a({c_language:"go"})}},{title:"docker",value:"dockerfile",onClick:function(){return a({c_language:"dockerfile"})}},{title:"diff",value:"diff",onClick:function(){return a({c_language:"diff"})}},{title:"cordpro",value:"cordpro",onClick:function(){return a({c_language:"cordpro"})}},{title:"cython",value:"cython",onClick:function(){return a({c_language:"cython"})}},{title:"css",value:"css",onClick:function(){return a({c_language:"css"})}},{title:"csharp",value:"csharp",onClick:function(){return a({c_language:"csharp"})}},{title:"Cpp/C++/C",value:"cpp",onClick:function(){return a({c_language:"cpp"})}},{title:"avrassembly",value:"avrassembly",onClick:function(){return a({c_language:"avrassembly"})}},{title:"assembly",value:"assembly",onClick:function(){return a({c_language:"assembly"})}},{title:Z("gutenberg_auto_detect"),value:"generic",onClick:function(){return a({c_language:"generic"})}}]})),r=h(M,{value:t.content,onChange:function(e){return a({content:e})},placeholder:Z("gutenberg_enter_code"),"aria-label":"Code"}),n=h(F,{label:Z("gutenberg_code_language"),value:t.c_language,options:[{label:"yaml",value:"yaml"},{label:"xml/html",value:"xml"},{label:"visualbasic",value:"visualbasic"},{label:"vhdl",value:"vhdl"},{label:"typescript",value:"typescript"},{label:"swift",value:"swift"},{label:"squirrel",value:"squirrel"},{label:"sql",value:"sql"},{label:"shell",value:"shell"},{label:"scss/sass",value:"scss"},{label:"rust",value:"rust"},{label:"ruby",value:"ruby"},{label:"raw",value:"raw"},{label:"python",value:"python"},{label:"prolog",value:"prolog"},{label:"powershell",value:"powershell"},{label:"php",value:"php"},{label:"nsis",value:"nsis"},{label:"matlab",value:"matlab"},{label:"markdown",value:"markdown"},{label:"lua",value:"lua"},{label:"less",value:"less"},{label:"kotlin",value:"kotlin"},{label:"json",value:"json"},{label:"javascript",value:"javascript"},{label:"java",value:"java"},{label:"ini/conf",value:"ini"},{label:"groovy",value:"groovy"},{label:"go/golang",value:"go"},{label:"docker",value:"dockerfile"},{label:"diff",value:"diff"},{label:"cordpro",value:"cordpro"},{label:"cython",value:"cython"},{label:"css",value:"css"},{label:"csharp",value:"csharp"},{label:"Cpp/C++/C",value:"cpp"},{label:"avrassembly",value:"avrassembly"},{label:"assembly",value:"assembly"},{label:Z("gutenberg_auto_detect"),value:"generic"}],onChange:function(e){return a({c_language:e})}}),o=h(H,null,h(V,{icon:"admin-appearance",title:Z("gutenberg_code_settings")},n,h(F,{label:Z("gutenberg_select_theme"),value:t.theme,options:[{label:"enlighter",value:"enlighter"},{label:"classic",value:"classic"},{label:"beyond",value:"beyond"},{label:"mowtwo",value:"mowtwo"},{label:"eclipse",value:"eclipse"},{label:"droide",value:"droide"},{label:"minimal",value:"minimal"},{label:"atomic",value:"atomic"},{label:"dracula",value:"dracula"},{label:"bootstrap4",value:"bootstrap4"},{label:"rowhammer",value:"rowhammer"},{label:"godzilla",value:"godzilla"},{label:Z("gutenberg_follow_theme"),value:""}],onChange:function(e){return a({theme:e})}}),h(B,{label:Z("gutenberg_show_line_numbers"),selected:t.linenumbers,options:[{label:Z("gutenberg_follow_theme"),value:""},{label:Z("gutenberg_show"),value:"true"},{label:Z("gutenberg_hide"),value:"false"}],onChange:function(e){return a({linenumbers:e})}}),h(L,{label:Z("gutenberg_start_line_number"),value:t.lineoffset,onChange:function(e){return a({lineoffset:e})},placeholder:Z("gutenberg_line_number_example")}),h(L,{label:Z("gutenberg_highlight_lines"),value:t.highlight,onChange:function(e){return a({highlight:e})},placeholder:Z("gutenberg_highlight_lines_format")})),h(V,{title:Z("gutenberg_code_group"),initialOpen:!1,icon:"excerpt-view"},h("p",null,Z("gutenberg_code_group_desc")),h(L,{label:Z("gutenberg_code_title"),value:t.title,onChange:function(e){return a({title:e})},placeholder:Z("gutenberg_code_group_title")}),h(L,{label:Z("gutenberg_custom_group_id"),value:t.group,onChange:function(e){return a({group:e})},placeholder:Z("gutenberg_custom_group_id_placeholder")})));return h("div",null,h(A,null,h(O,null,l)),h("div",{className:"enlighter-block-wrapper"},h("div",{className:"enlighter-header"},h("div",{className:"enlighter-title"})),h("pre",{tagName:"pre",className:"enlighter-pre"},h("div",{className:"enlighter-label"},Z("gutenberg_language_label"),t.c_language,Z("gutenberg_theme_label"),t.theme?t.theme:Z("gutenberg_follow_theme_short")),r),h("div",{className:"enlighter-footer"}),o))},save:function(e){var t=e.attributes,a=h("code",{className:"gl","data-enlighter-language":t.c_language,"data-enlighter-theme":t.theme,"data-enlighter-highlight":t.highlight,"data-enlighter-linenumbers":t.linenumbers,"data-enlighter-lineoffset":t.lineoffset,"data-enlighter-title":t.title,"data-enlighter-group":t.group},t.content);return h("pre",{},a)}}),f("aksrtblock/biaoti",{title:ae(Z("gutenberg_heading")),icon:Q.biaoti,category:"aksrt_block_cat",description:Z("gutenberg_heading_desc"),className:!1,textdomain:"default",attributes:{content:{type:"array",source:"children",selector:".title-theme"},typeClass:{source:"attribute",selector:".title-theme",attribute:"class"},color:{source:"attribute",selector:".title-theme",attribute:"data-color"},tag_name:{source:"tag",selector:".title-theme",attribute:"data-color"}},transforms:{from:[{type:"block",blocks:["core/heading","core/preformatted","core/paragraph"],transform:function(e){var t=e.content,a=e.level?"h"+e.level:"h2";return y("aksrtblock/biaoti",{content:t,tag_name:a})}}],to:[{type:"block",blocks:["core/heading"],transform:function(e){var t=e.content,a=e.tag_name?e.tag_name.replace("h",""):2;return y("core/heading",{content:t,level:~~a})}},{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.content;return y("core/paragraph",{content:t})}},{type:"block",blocks:["core/preformatted"],transform:function(e){var t=e.content;return y("core/preformatted",{content:t})}}]},edit:function(e){var t=e.attributes.content,a=e.attributes.tag_name||"h2",l=t.typeClass||"title-theme",n=e.attributes.color;var o=h(q,{tagName:"div",onChange:function(t){e.setAttributes({content:t})},value:t,isSelected:e.isSelected,placeholder:Z("gutenberg_enter_heading"),disableLineBreaks:!0}),i=h("div",{className:l,"data-color":n,style:{color:n,"border-left-color":n}},h(a,{},o));var s=a.replace("h",""),c=h(T,{},h(I,{icon:Q["headingLevel"+s],label:Z("gutenberg_heading_level"),controls:[1,2,3,4,5].map(function(t){{const l="h"+t,r=a===l;return{icon:Q["headingLevel"+t],isActive:r,onClick:function(){e.setAttributes({tag_name:l})},role:"menuitemradio"}}})})),u=h(r.ColorPalette,{value:n,colors:Y,className:"q-ColorPalette",onChange:function(t){e.setAttributes({color:t})}});return h("div",{},i,h(O,null,c),h(H,null,h(V,{title:Z("gutenberg_custom_color")},h("p",{className:"components-base-control"},Z("gutenberg_heading_color_hint")),h("p",{className:"components-base-control"},u))))},save:function(e){var t=e.attributes.content,a=e.attributes.tag_name||"h2",l=e.attributes.typeClass||"title-theme",r=e.attributes.color;return h(a,{"data-color":r,className:l,style:r&&"--theme-color:"+r},t)}}),f("aksrtblock/hide-content",{title:ae(Z("gutenberg_hidden_content")),icon:{src:"hidden",foreground:U},description:Z("gutenberg_hidden_content_desc"),category:"aksrt_block_cat",attributes:{type:{source:"attribute",selector:"div",attribute:"data-type"},password:{source:"attribute",selector:"[data-password]",attribute:"data-password",default:""},img_id:{source:"attribute",selector:"[data-img-id]",attribute:"data-img-id",default:""},img_url:{source:"attribute",selector:"[data-img-url]",attribute:"data-img-url",default:""},desc:{source:"attribute",selector:"[data-desc]",attribute:"data-desc",default:""}},edit:function(e){var t=e.setAttributes,a=e.attributes,l=a.type||"reply",r=h("div",{className:"hide-innerblocks"},h(k)),n={reply:Z("gutenberg_comment_visible"),payshow:Z("gutenberg_paid_reading"),logged:Z("gutenberg_login_visible"),password:Z("gutenberg_password_verify"),vip1:Z("gutenberg_all_vip_visible"),vip2:Z("gutenberg_vip2_visible")},o=h(T,{},h(I,{icon:"editor-paste-text",className:"aksrtblock-buttons-sl",label:Z("gutenberg_hidden_mode_select"),controls:[{title:n.reply,value:"reply",onClick:function(){t({type:"reply"})}},{title:n.logged,value:"logged",onClick:function(){t({type:"logged"})}},{title:n.password,value:"password",onClick:function(){t({type:"password"})}},{title:n.payshow,value:"payshow",onClick:function(){t({type:"payshow"})}},{title:n.vip1,value:"vip1",onClick:function(){t({type:"vip1"})}},{title:n.vip2,value:"vip2",onClick:function(){t({type:"vip2"})}}]})),i=h(A,null,h(O,null,o));return h("div",{className:"hide-content"},i,h("div",{className:"hide-title"},J("gutenberg_hidden_content_title",n[l]),h("span",{className:"dashicons dashicons-admin-generic",style:{float:"right",margin:"5px 10px"}})),r,h(H,null,te(853),h(V,{title:Z("gutenberg_hidden_content_settings")},h(F,{label:Z("gutenberg_hidden_visible_mode"),value:l,options:[{label:n.reply,value:"reply"},{label:n.logged,value:"logged"},{label:n.password,value:"password"},{label:n.payshow,value:"payshow"},{label:n.vip1,value:"vip1"},{label:n.vip2,value:"vip2"}],onChange:function(e){t({type:e})}}),["payshow"==l&&h("div",{className:"block-editor-block-card__description"},Z("gutenberg_paid_reading_hint"),h("a",{href:"#wznav_3",target:"blank"},Z("gutenberg_view_official_tutorial_link")))],["password"==l&&h("div",{className:"block-editor-block-card__description"},h(L,{label:Z("gutenberg_set_password"),value:a.password||"",onChange:function(e){return t({password:e})},placeholder:Z("gutenberg_enter_password")}),h(L,{label:Z("gutenberg_remind_text"),value:a.desc||"",onChange:function(e){return t({desc:e})},placeholder:Z("gutenberg_enter_remind_content")}),[a.img_id&&h("div",{className:" "},h("img",{src:a.img_url}))],h(j,{title:Z("gutenberg_remind_image"),allowedTypes:["image"],onSelect:function(e){t({img_url:e.url,img_id:e.id})},value:a.img_id,render:function(e){var t=e.open;return h(z,{className:"but jb-blue is-secondary",onClick:t},[a.img_id?Z("gutenberg_replace_remind_image"):Z("gutenberg_add_remind_image")])}}),h("div",{className:"mt10 em09"},Z("gutenberg_password_remind_hint")),h("div",{className:"mt6 em09"},Z("gutenberg_password_unique_hint")))],h("div",{className:"opacity8 mb10 em09 mt10 c-yellow"},Z("gutenberg_hidden_no_nest_hint")))))},save:function(e){var t=e.attributes,a=t.type||"reply",l={},r="";return"password"==a&&(l={"data-password":t.password,"data-img-id":t.img_id,"data-img-url":t.img_url,"data-desc":t.desc},r=' password="'+t.password+'" img_id="'+t.img_id+'" img_url="'+t.img_url+'" desc="'+t.desc+'"'),h("div",{"data-type":a},[h("span",{},'[hidecontent type="'+a+'"'+r+"]"),h(k.Content),h("span",l,"[/hidecontent]")])}});var re=$(function(t,a){var l=t.url||G.root+"wp/v2/search";e.get(l,t,a)},600);f("aksrtblock/postslists",{title:ae(Z("gutenberg_post_list")),icon:Q.postslists,attributes:{orderby:{source:"attribute",selector:".single-posts-lists",attribute:"data-orderby",default:"date"},cat:{source:"attribute",selector:".single-posts-lists",attribute:"data-cat",default:""},topics:{source:"attribute",selector:".single-posts-lists",attribute:"data-topics",default:""},style:{source:"attribute",selector:".single-posts-lists",attribute:"data-style",default:"text"},count:{source:"attribute",selector:".single-posts-lists",attribute:"data-count",default:12},paginate:{source:"attribute",selector:".single-posts-lists",attribute:"data-paginate",default:""}},description:Z("gutenberg_post_list_desc"),category:"aksrt_block_cat",edit:function(e){var t=e.attributes,a=e.setAttributes,l=t.orderby||"date",r=t.cat||"",n=t.topics||"",o=t.style||"text",i=t.count||12,s=t.paginate||"",c=function(e){var t=Z("topics"===e?"gutenberg_topics":"gutenberg_category"),l=J("gutenberg_taxonomy_id_select",t);return h(L,{label:J("gutenberg_taxonomy_limit",t),value:"topics"===e?n:r,help:J("gutenberg_taxonomy_id_help",t),onChange:function(t){return a("topics"===e?{topics:t}:{cat:t})},placeholder:l})},u=h("div",{},c("cat"),c("topics"),h(F,{label:Z("gutenberg_orderby"),value:l,options:[{label:Z("gutenberg_post_title"),value:"title"},{label:Z("gutenberg_recent_update"),value:"modified"},{label:Z("gutenberg_latest_publish"),value:"date"},{label:Z("gutenberg_by_comments"),value:"comment_count"},{label:Z("gutenberg_by_likes"),value:"like"},{label:Z("gutenberg_by_views"),value:"views"},{label:Z("gutenberg_by_favorites"),value:"favorite"},{label:Z("gutenberg_sale_price"),value:"aksrtpay_price"},{label:Z("gutenberg_points_price"),value:"aksrtpay_points_price"},{label:Z("gutenberg_sales_volume"),value:"sales_volume"},{label:Z("gutenberg_random_order"),value:"rand"}],onChange:function(e){return a({orderby:e})}}),h(B,{label:Z("gutenberg_list_style"),selected:o,options:[{label:Z("gutenberg_text_list"),value:"text"},{label:Z("gutenberg_mini_card"),value:"minicard"}],onChange:function(e){return a({style:e})}}),h(L,{label:(""!=s?Z("gutenberg_per_page"):"")+Z("gutenberg_display_count"),value:i,onChange:function(e){return a({count:e})},placeholder:Z("gutenberg_enter_display_count")}),h(B,{label:Z("gutenberg_pagination"),selected:s,options:[{label:Z("gutenberg_not_show"),value:""},{label:Z("gutenberg_ajax_pagination"),value:"ajax"},{label:Z("gutenberg_number_pagination"),value:"number"}],onChange:function(e){return a({paginate:e})}})),b=h(H,null,te(22555),h(V,{title:Z("gutenberg_post_list_settings")},u));return h("div",{className:"theme-card-box"},h("div",{className:"em12 mb10 flex ac"},Q.postsbox,h("span",{className:"ml10"},ae(Z("gutenberg_post_list")))),h("div",{className:"opacity8 mb10 em09"},Z("gutenberg_post_list_desc")),e.isSelected?h(V,{initialOpen:!1,title:Z("gutenberg_post_list_settings")},u):h("div",{class:"px12"},'[cat="'+t.cat+'" topics="'+t.topics+'" orderby="'+t.orderby+'" style="'+t.style+'" count="'+t.count+'" paginate="'+t.paginate+'"]'),b)},save:function(e){var t=e.attributes;return h("div",{class:"single-posts-lists",contenteditable:"false","data-orderby":t.orderby,"data-cat":t.cat,"data-topics":t.topics,"data-style":t.style,"data-count":t.count,"data-paginate":t.paginate},'[postslists cat="'+t.cat+'" topics="'+t.topics+'" orderby="'+t.orderby+'" style="'+t.style+'" count="'+t.count+'" paginate="'+t.paginate+'"]')}}),f("aksrtblock/postsbox",{title:ae(Z("gutenberg_post_card")),icon:Q.postsbox,attributes:{post_id:{source:"attribute",selector:"div",attribute:"data-pid"}},description:Z("gutenberg_post_card_desc"),category:"aksrt_block_cat",edit:function(e){var t=e.attributes.post_id,a=e.attributes;function l(t){if(!(t.length<2||~~t||a.loading)){var l={per_page:20,search:t,type:"post",post_type:["post","forum_post"],order_by:"post_title"};return e.setAttributes({loading:!0}),re(l,function(t){t=t||[],e.setAttributes({search_lists:t}),e.setAttributes({loading:!1})})}}a.search_lists=a.search_lists||[];var n=h("div",{className:"rti-container"},e.isSelected?h("div",{},h(L,{tagName:"div",onChange:function(t){e.setAttributes({post_id:t}),l(t)},required:!0,onKeyDown:function(e){13==e.keyCode&&l(e.target.value)},value:t,placeholder:Z("gutenberg_search_post_id"),label:Z("gutenberg_search_post_id")}),a.loading&&h(r.Spinner,{style:{position:"absolute",right:"12px",bottom:"30px"}})):h("div",{className:" "+(~~t?"px12":"c-red em09")},~~t?"[ID:"+t+"]"+(a.post_title?a.post_title:""):Z("gutenberg_post_id_invalid")));return h("div",{className:"theme-card-box"},h("div",{className:"em12 mb10 flex ac"},Q.postsbox,h("span",{className:"ml10"},ae(Z("gutenberg_post_card")))),h("div",{className:"opacity8 mb10 em09"},Z("gutenberg_post_card_hint")),n,e.isSelected&&a.search_lists.length>0&&h(x,{focusOnMount:!1,position:"left middle center ",className:" "},h("div",{className:"block-editor-link-control"},h("div",{className:"mt6 block-editor-link-control__search-results"},a.search_lists.map(function(t,l){return function(t){return h("button",{className:"components-button components-menu-item__button block-editor-link-control__search-item has-text has-icon",key:t,onClick:function(){e.setAttributes({post_id:a.search_lists[t].id,post_title:a.search_lists[t].title}),this.popover_anchor_rect=!1}},h("span",{className:"em12 mr6"},Q.postsbox),h("span",{className:"components-menu-item__item"},h("span",{className:"components-menu-item__info-wrapper"},h("span",{className:"components-menu-item__item"},"["+a.search_lists[t].id+"]"+a.search_lists[t].title))),h("span",{className:"components-menu-item__shortcut"},a.search_lists[t].subtype))}(l)})))),h(H,null,te(860)))},save:function(e){var t=e.attributes.post_id;return h("div",{"data-pid":t},'[postsbox post_id="'+t+'"]')}}),f("aksrtblock/quote",{title:ae(Z("gutenberg_quote")),icon:{src:"format-quote",foreground:U},description:Z("gutenberg_quote_desc"),category:"aksrt_block_cat",attributes:{content:{type:"array",source:"children",selector:".quote_q p"},typeClass:{source:"attribute",selector:".quote_q",attribute:"class"},color:{source:"attribute",selector:".quote_q",attribute:"data-color"}},transforms:{from:[{type:"block",blocks:["aksrtblock/alert","core/quote","core/preformatted","core/paragraph"],transform:function(e){var t=e.content;return y("aksrtblock/quote",{content:t})}}],to:[{type:"block",blocks:["core/quote"],transform:function(e){var t=e.content;return y("core/quote",{content:t})}},{type:"block",blocks:["aksrtblock/alert"],transform:function(e){var t=e.content;return y("aksrtblock/alert",{content:t})}},{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.content;return y("core/paragraph",{content:t})}},{type:"block",blocks:["core/preformatted"],transform:function(e){var t=e.content;return y("core/preformatted",{content:t})}}]},edit:function(e){var t=e.attributes.content,a=e.attributes.typeClass||"quote_q",l=e.attributes.color,n=l||"";var o=h(q,{tagName:"div",isSelected:e.isSelected,onChange:function(t){e.setAttributes({content:t})},value:t,placeholder:Z("gutenberg_enter_content")}),i=h("div",{className:a,style:{"--quote-color":n}},h("i",{className:"fa fas fa-quote-left"}),o),s=h(r.ColorPalette,{value:l||"#555",colors:Y,className:"q-ColorPalette",onChange:function(t){e.setAttributes({color:t})}});return h("div",{},i,h("div",{},h(H,null,h(V,{title:Z("gutenberg_custom_color")},h("p",{},Z("gutenberg_quote_color_hint")),h("p",{},s)))))},save:function(e){var t=e.attributes.content,a=e.attributes.typeClass||"quote_q",l=e.attributes.color,r=h("div",{className:a,"data-color":l,style:l&&"--quote-color:"+l},h("i",{className:"fa fas fa-quote-left"}),h("p",{},t));return h("div",{},r)}}),f("aksrtblock/alert",{title:ae(Z("gutenberg_alert")),icon:{src:"info",foreground:U},description:Z("gutenberg_alert_desc"),category:"aksrt_block_cat",attributes:{content:{type:"array",source:"children",selector:"div.alert"},typeClass:{source:"attribute",selector:".alert",attribute:"class"},isChecked:{source:"attribute",selector:".alert",attribute:"data-isclose"}},transforms:{from:[{type:"block",blocks:["aksrtblock/quote","core/quote","core/preformatted","core/paragraph"],transform:function(e){var t=e.content;return y("aksrtblock/alert",{content:t})}}],to:[{type:"block",blocks:["core/quote"],transform:function(e){var t=e.content;return y("core/quote",{content:t})}},{type:"block",blocks:["aksrtblock/quote"],transform:function(e){var t=e.content;return y("aksrtblock/quote",{content:t})}},{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.content;return y("core/paragraph",{content:t})}},{type:"block",blocks:["core/preformatted"],transform:function(e){var t=e.content;return y("core/preformatted",{content:t})}}]},edit:function(e){var t=e.attributes.content,a=e.attributes.typeClass||"alert jb-blue",l=e.attributes.isChecked,r=e.isSelected;function n(t){var a=t.target.className;e.setAttributes({typeClass:"alert "+a})}var o=h(q,{tagName:"div",isSelected:e.isSelected,onChange:function(t){e.setAttributes({content:t})},value:t,placeholder:Z("gutenberg_enter_content")}),i=h("div",{className:a},o),s=h("span",{className:"g_extend anz alert_b"},[h("button",{className:"jb-blue",onClick:n}),h("button",{className:"jb-green",onClick:n}),h("button",{className:"jb-yellow",onClick:n}),h("button",{className:"jb-red",onClick:n})]),c=h("div",{className:"close_an"},h(P,{label:Z("gutenberg_alert_closable"),checked:l,onChange:function(t){e.setAttributes({isChecked:t})}}));return h("div",{},[i,l&&h("button",{className:"close"},"×"),r&&s,r&&c],h(H,null,h(V,{icon:"admin-appearance",title:Z("gutenberg_alert_settings")},h("div",{},Z("gutenberg_alert_type")),h("div",{},s)),c))},save:function(e){var t=e.attributes.content,a=e.attributes.isChecked||"",l=e.attributes.typeClass||"alert jb-blue",r=h("button",{type:"button",className:"close","data-dismiss":"alert","aria-label":"Close"},h("div",{"data-class":"ic-close","data-svg":"close","data-viewbox":"0 0 1024 1024"})),n=h("div",{className:l,"data-isclose":a,role:"alert"},t);return h("div",{className:"alert-dismissible fade in"},[a&&r],n)}}),f("aksrtblock/buttons",{title:ae(Z("gutenberg_buttons")),description:Z("gutenberg_buttons_desc"),icon:Q.buttons,category:"aksrt_block_cat",attributes:{alignment:{type:"string"},quantity:{type:"attribute",attribute:"data-quantity",default:1},radius:{type:"attribute",attribute:"data-radius",default:!0},content1:{type:"array",source:"children",selector:"span.an_1"},typeClass1:{source:"attribute",selector:".an_1",attribute:"class"},content2:{type:"array",source:"children",selector:"span.an_2"},typeClass2:{source:"attribute",selector:".an_2",attribute:"class"},content3:{type:"array",source:"children",selector:"span.an_3"},typeClass3:{source:"attribute",selector:".an_3",attribute:"class"},content4:{type:"array",source:"children",selector:"span.an_4"},typeClass4:{source:"attribute",selector:".an_4",attribute:"class"},content5:{type:"array",source:"children",selector:"span.an_5"},typeClass5:{source:"attribute",selector:".an_5",attribute:"class"}},transforms:{from:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.content;return y("aksrtblock/buttons",{content1:t})}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.content1;return y("core/paragraph",{content:t})}}]},edit:function(t){var a=t.attributes,l=t.setAttributes,r=a.alignment,n=t.isSelected,o=a.quantity,i=a.radius,s=[];for(let r=0;r<=5;r++)s["c"+r]=a["content"+r],s["cs"+r]=a["typeClass"+r]||"but b-blue",s["rt"+r]=h(q,{tagName:"div",onChange:function(e){l({["content"+r]:e})},value:s["c"+r],isSelected:t.isS,placeholder:Z("gutenberg_button")+"-"+r}),s["crt"+r]=h("div",{className:s["cs"+r]},s["rt"+r]),s["bk"+r]=h("button",{className:"anz sz",onClick:function(){e(".anz.an.x"+r).slideToggle(200)}},h("span",{className:"dashicons dashicons-admin-appearance"})),s["btt"+r]=h("div",{className:"g_extend anz an x"+r},h("button",{className:"but b-red",onClick:function(e){l({["typeClass"+r]:"an_"+r+" "+e.target.className})}},""),h("button",{className:"but b-yellow",onClick:function(e){l({["typeClass"+r]:"an_"+r+" "+e.target.className})}},""),h("button",{className:"but b-blue",onClick:function(e){l({["typeClass"+r]:"an_"+r+" "+e.target.className})}},""),h("button",{className:"but b-green",onClick:function(e){l({["typeClass"+r]:"an_"+r+" "+e.target.className})}},""),h("button",{className:"but b-purple",onClick:function(e){l({["typeClass"+r]:"an_"+r+" "+e.target.className})}},""),h("button",{className:"but hollow c-red",onClick:function(e){l({["typeClass"+r]:"an_"+r+" "+e.target.className})}},""),h("button",{className:"but hollow c-yellow",onClick:function(e){l({["typeClass"+r]:"an_"+r+" "+e.target.className})}},""),h("button",{className:"but hollow c-blue",onClick:function(e){l({["typeClass"+r]:"an_"+r+" "+e.target.className})}},""),h("button",{className:"but hollow c-green",onClick:function(e){l({["typeClass"+r]:"an_"+r+" "+e.target.className})}},""),h("button",{className:"but hollow c-purple",onClick:function(e){l({["typeClass"+r]:"an_"+r+" "+e.target.className})}},""),h("button",{className:"but jb-red",onClick:function(e){l({["typeClass"+r]:"an_"+r+" "+e.target.className})}},""),h("button",{className:"but jb-yellow",onClick:function(e){l({["typeClass"+r]:"an_"+r+" "+e.target.className})}},""),h("button",{className:"but jb-blue",onClick:function(e){l({["typeClass"+r]:"an_"+r+" "+e.target.className})}},""),h("button",{className:"but jb-green",onClick:function(e){l({["typeClass"+r]:"an_"+r+" "+e.target.className})}},""),h("button",{className:"but jb-purple",onClick:function(e){l({["typeClass"+r]:"an_"+r+" "+e.target.className})}},""));var c=h(T,{},h(I,{icon:"plus-alt",className:"aksrtblock-buttons-sl",label:Z("gutenberg_button_count"),controls:[{title:Z("gutenberg_count_1"),value:1,onClick:function(){l({quantity:1})}},{title:Z("gutenberg_count_2"),onClick:function(){l({quantity:2})}},{title:Z("gutenberg_count_3"),value:3,onClick:function(){l({quantity:3})}},{title:Z("gutenberg_count_4"),value:4,onClick:function(){l({quantity:4})}},{title:Z("gutenberg_count_5"),value:5,onClick:function(){l({quantity:5})}}]})),u=h(A,null,h(O,null,c,h(E,{value:r,onChange:function(e){l({alignment:e})}})));return h("div",{style:{textAlign:r},className:"aniuzu "+(i&&"radius")},u,[s.crt1,n&&s.bk1,n&&s.btt1],[o>=2&&[s.crt2,n&&s.bk2,n&&s.btt2]],[o>=3&&[s.crt3,n&&s.bk3,n&&s.btt3]],[o>=4&&[s.crt4,n&&s.bk4,n&&s.btt4]],[o>=5&&[s.crt5,n&&s.bk5,n&&s.btt5]],h(H,null,h(V,{icon:"admin-generic",title:Z("gutenberg_button_settings")},h(R,{label:Z("gutenberg_button_count"),value:o,onChange:function(e){l({quantity:e})},min:"1",max:"5"}),h(P,{className:"close_an",label:Z("gutenberg_button_radius"),checked:i,onChange:function(e){l({radius:e})}}))))},save:function(e){var t=e.attributes,a=t.alignment,l=t.quantity,r=t.radius,n=[];for(let e=0;e<=5;e++)n[e]=t["content"+e],n["s"+e]=t["typeClass"+e]||"an_"+e+" but b-blue",n["jg"+e]=h("span",{className:n["s"+e]},n[e]);return h("div",{"data-quantity":l,"data-radius":r,style:{textAlign:a},className:r&&"radius"},[l>0&&n.jg1],[l>1&&n.jg2],[l>2&&n.jg3],[l>3&&n.jg4],[l>4&&n.jg5])}}),f("aksrtblock/carousel",{title:ae(Z("gutenberg_carousel")),description:Z("gutenberg_carousel_desc"),icon:{src:"images-alt2",foreground:U},category:"aksrt_block_cat",attributes:{center:{type:"string",selector:"div",source:"attribute",attribute:"data-cen",default:!0},interval:{type:"string",selector:".carousel",source:"attribute",attribute:"data-interval",default:4e3},limitedwidth:{type:"string",selector:"div",source:"attribute",attribute:"data-liw",default:!0},maxwidth:{type:"string",source:"attribute",selector:"div",attribute:"data-mw",default:600},effect:{type:"string",selector:".carousel",source:"attribute",attribute:"data-effect",default:""},jyloop:{type:"string",selector:".carousel",source:"attribute",attribute:"data-jyloop",default:!0},id:{type:"string",selector:".carousel",source:"attribute",attribute:"id"},proportion:{type:"string",selector:".carousel",source:"attribute",attribute:"proportion",default:"0.6"}},edit:function(e){var t=e.attributes,a=t.limitedwidth,l=t.interval,r=t.center,n=t.maxwidth,o=t.effect,i=t.jyloop,s=e.setAttributes,c=parseInt((Math.random()+1)*Math.pow(10,4));t.id||s({id:c});var u=h(k,{allowedBlocks:["core/gallery"],templateLock:"",template:[["core/gallery",{linkTo:"none",columns:"8"}]]},""),b=h(R,{label:Z("gutenberg_switch_interval"),value:l/1e3,onChange:function(e){s({interval:1e3*e})},min:"1",max:"20"}),d=h(P,{label:Z("gutenberg_loop"),checked:i,onChange:function(e){s({jyloop:e})}}),g=h(P,{label:Z("gutenberg_limit_max_width"),checked:a,onChange:function(e){s({limitedwidth:e})}}),_=h(P,{label:Z("gutenberg_center_display"),checked:r,onChange:function(e){s({center:e})}}),p=h(R,{label:Z("gutenberg_max_width"),value:n,onChange:function(e){s({maxwidth:e})},min:"200",max:"1500"}),m=h(F,{label:Z("gutenberg_switch_animation"),value:o,onChange:function(e){s({effect:e})},options:[{label:Z("gutenberg_slide"),value:""},{label:Z("gutenberg_fade"),value:"fade"},{label:Z("gutenberg_3d_cube"),value:"cube"},{label:Z("gutenberg_3d_slide"),value:"coverflow"},{label:Z("gutenberg_3d_flip"),value:"flip"}]});return h("div",{className:"carousel iss"},h("div",{className:"leab"},ae(Z("gutenberg_carousel")),h("span",{className:"dashicons dashicons-admin-generic"})),u,h(H,null,te(675),h(V,{title:Z("gutenberg_carousel_settings")},m,h(F,{label:Z("gutenberg_keep_aspect_ratio"),value:t.proportion,options:[{label:Z("gutenberg_disabled"),value:""},{label:Z("gutenberg_ratio_landscape_3_1"),value:"0.333"},{label:Z("gutenberg_ratio_landscape_5_2"),value:"0.4"},{label:Z("gutenberg_ratio_landscape_2_1"),value:"0.5"},{label:Z("gutenberg_ratio_landscape_5_3"),value:"0.6"},{label:Z("gutenberg_ratio_landscape_4_3"),value:"0.75"},{label:Z("gutenberg_ratio_landscape_5_4"),value:"0.75"},{label:Z("gutenberg_ratio_landscape_8_7"),value:"0.875"},{label:Z("gutenberg_ratio_square_1_1"),value:"1"},{label:Z("gutenberg_ratio_portrait_7_8"),value:"1.142"},{label:Z("gutenberg_ratio_portrait_4_5"),value:"1.25"},{label:Z("gutenberg_ratio_portrait_3_4"),value:"1.333"},{label:Z("gutenberg_ratio_portrait_3_5"),value:"1.666"},{label:Z("gutenberg_ratio_portrait_1_2"),value:"2"},{label:Z("gutenberg_ratio_portrait_2_5"),value:"2.5"},{label:Z("gutenberg_ratio_portrait_1_3"),value:"3"}],onChange:function(e){s({proportion:e})}}),b,d,g,a&&[p,_],h("p",null,Z("gutenberg_carousel_ratio_hint")))))},save:function(e){var t=e.attributes,a=t.limitedwidth?"true":"",l=t.center?"true":"",r=t.maxwidth,n=t.interval,o=t.effect,i=t.jyloop?"true":"",s=a&&l?"10px auto":"",c=a&&r+"px"||"",u=t.id,b=h("div",{className:"swiper-button-next"}),d=h("div",{className:"swiper-button-prev"}),g=h("div",{className:"swiper-pagination"});return h("div",{"data-mw":r,"data-liw":a,"data-cen":l,className:"wp-block-carousel"},h("div",{className:"carousel slide","data-effect":o,"data-jyloop":i,"data-interval":n,id:u,proportion:t.proportion,style:{"max-width":c,margin:s}},h(k.Content),b,d,g))}}),f("aksrtblock/seamlessimg",{title:ae(Z("gutenberg_seamless_image")),description:Z("gutenberg_seamless_image_desc"),className:!1,icon:Q.seamlessimg,category:"aksrt_block_cat",attributes:{full_container:{type:"string",selector:"div",source:"attribute",attribute:"data-full-container",default:!0}},edit:function(e){var t=e.attributes.full_container,a=(e.attributes.isChecked,e.setAttributes);var l=h(k,{allowedBlocks:["core/gallery"],templateLock:"",template:[["core/gallery",{linkTo:"none",columns:1,imageCrop:!1,fixedHeight:!1,sizeSlug:"full"}]]},""),r=h(P,{label:Z("gutenberg_width_full_container"),checked:t,onChange:function(e){a({full_container:e})}});return h("div",{className:"carousel iss seamless-img"+(t?" full-container":"")},h("div",{className:"leab"},ae(Z("gutenberg_seamless_image")),h("span",{className:"dashicons dashicons-admin-generic"})),l,h(H,null,te(675),h(V,{title:Z("gutenberg_seamless_image_settings")},r,h("p",{className:"px12 opacity5"},Z("gutenberg_seamless_image_full_hint")))))},save:function(e){var t=e.attributes.full_container?"true":"";return h("div",{"data-full-container":t,className:"seamless-img"+(t?" full-container":"")},h(k.Content))}}),f("aksrtblock/productbox",{title:ae(Z("gutenberg_product")),icon:Q.productbox,className:!1,attributes:{post_id:{source:"attribute",selector:"div",attribute:"data-pid"}},description:Z("gutenberg_product_desc"),category:"aksrt_block_cat",edit:function(e){var t=e.attributes.post_id,a=e.attributes,l=e.setAttributes;function n(e){if(!(e.length<2||~~e||a.loading)){var t={per_page:20,search:e,type:"post",post_type:["shop_product"],order_by:"post_title"};return l({loading:!0}),re(t,function(e){l({search_lists:e=e||[],loading:!1})})}}a.search_lists=a.search_lists||[];var o=h("div",{className:"rti-container"},e.isSelected?h("div",{},h(L,{tagName:"div",onChange:function(e){l({post_id:e}),n(e)},required:!0,onKeyDown:function(e){13==e.keyCode&&n(e.target.value)},value:t,placeholder:Z("gutenberg_search_product_id"),label:Z("gutenberg_search_product_id")}),a.loading&&h(r.Spinner,{style:{position:"absolute",right:"12px",bottom:"30px"}})):h("div",{className:" "+(~~t?"px12":"c-red em09")},~~t?"[ID:"+t+"]"+(a.post_title?a.post_title:""):Z("gutenberg_product_id_invalid")));return h("div",{className:"theme-card-box"},h("div",{className:"em12 mb10 flex ac"},Q.productbox,h("span",{className:"ml10"},ae(Z("gutenberg_shop_product")))),h("div",{className:"opacity8 mb10 em09"},Z("gutenberg_product_card_desc")),o,e.isSelected&&a.search_lists.length>0&&h(x,{focusOnMount:!1,position:"left middle center ",className:" "},h("div",{className:"block-editor-link-control"},h("div",{className:"mt6 block-editor-link-control__search-results"},a.search_lists.map(function(t,l){return function(t){return h("button",{className:"components-button components-menu-item__button block-editor-link-control__search-item has-text has-icon",key:t,onClick:function(){e.setAttributes({post_id:a.search_lists[t].id,post_title:a.search_lists[t].title}),this.popover_anchor_rect=!1}},h("span",{className:"em12 mr6"},Q.postsbox),h("span",{className:"components-menu-item__item"},h("span",{className:"components-menu-item__info-wrapper"},h("span",{className:"components-menu-item__item"},"["+a.search_lists[t].id+"]"+a.search_lists[t].title))),h("span",{className:"components-menu-item__shortcut"},a.search_lists[t].subtype))}(l)})))),h(H,null,te(860)))},save:function(e){var t=e.attributes.post_id;return h("div",{className:"post-productbox",contenteditable:"false","data-pid":t},'[productbox id="'+t+'"]')}}),l.updateCategory("aksrt_block_cat",{icon:Q.legacy})})}(jQuery,wp,window);