Plugin Directory

Changeset 3235777


Ignore:
Timestamp:
02/06/2025 05:28:17 AM (14 months ago)
Author:
addonify
Message:

Update to version 1.2.13 from GitHub

Location:
addonify-floating-cart
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • addonify-floating-cart/tags/1.2.13/README.txt

    r3213113 r3235777  
    66Requires PHP: 7.4
    77Tested up to: 6.7.1
    8 Stable tag: 1.2.12
     8Stable tag: 1.2.13
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    132132== Changelog ==
    133133
     134= 1.2.13 - 06 February, 2025 =
     135
     136- Added: Donation link in the plugin setting page.
     137
    134138= 1.2.12 - 26 December, 2024 =
    135139
  • addonify-floating-cart/tags/1.2.13/addonify-floating-cart.php

    r3213113 r3235777  
    1111 * Plugin URI:        https://addonify.com/addonify-floating-cart
    1212 * Description:       Addonify Floating Cart is a free WooCommerce addon that adds a sticky, interactive cart, letting visitors manage items without visiting the cart page.
    13  * Version:           1.2.12
     13 * Version:           1.2.13
    1414 * Requires at least: 6.0.0
    1515 * Requires PHP:      7.4
     
    3434 * Rename this for your plugin and update it as you release new versions.
    3535 */
    36 define( 'ADDONIFY_FLOATING_CART_VERSION', '1.2.12' );
     36define( 'ADDONIFY_FLOATING_CART_VERSION', '1.2.13' );
    3737define( 'ADDONIFY_FLOATING_CART_BASENAME', plugin_basename( __FILE__ ) );
    3838define( 'ADDONIFY_FLOATING_CART_PATH', plugin_dir_path( __FILE__ ) );
  • addonify-floating-cart/tags/1.2.13/admin/assets/js/main.js

    r3150428 r3235777  
    11/*! For license information please see main.js.LICENSE.txt */
    2 "use strict";(self.webpackChunkaddonify_floating_cart=self.webpackChunkaddonify_floating_cart||[]).push([[522],{4012:(t,e,n)=>{n.d(e,{Z:()=>a});var r=n(7890),o=n.n(r)()((function(t){return t[1]}));o.push([t.id,'.unsupported-control-text{font-size:14px}.adfy-button.fake-button.forward-to-doc-link{fill:var(--addonify_primary_color);color:var(--addonify_primary_color);font-size:14px}.adfy-button.fake-button.forward-to-doc-link:after,.adfy-button.fake-button.forward-to-doc-link:before{bottom:-5px;content:"";height:2px}.adfy-button.fake-button.forward-to-doc-link:after{background-color:var(--addonify_primary_color);content:""}.adfy-button.fake-button.forward-to-doc-link:hover{fill:var(--addonify_base_text_color);color:var(--addonify_base_text_color)}.adfy-button.fake-button.forward-to-doc-link:hover:after,.adfy-button.fake-button.forward-to-doc-link:hover:before{background-color:var(--addonify_base_text_color);content:""}',""]);const a=o},7797:(t,e,n)=>{n.d(e,{Z:()=>a});var r=n(7890),o=n.n(r)()((function(t){return t[1]}));o.push([t.id,".adfy-options .el-textarea__inner{display:block;font-family:monospace;min-height:200px;padding:15px;width:100%}",""]);const a=o},4659:(t,e,n)=>{n.d(e,{Z:()=>a});var r=n(7890),o=n.n(r)()((function(t){return t[1]}));o.push([t.id,"#recommended-hot-products .el-skeleton.is-animated .el-skeleton__item{background:linear-gradient(90deg,#e1e1e1 25%,#d8d8d8 37%,#c7c7c7 63%);background-size:400% 100%}",""]);const a=o},6378:()=>{},2248:(t,e,n)=>{var r=n(6183),o=n(3642),a={width:"170",height:"44",viewBox:"0 0 170 44",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i=[(0,r.uE)('<path d="M55.512 23.64V33H54.888V23.64H55.512ZM60.228 30.24C60.228 30.832 60.108 31.344 59.868 31.776C59.636 32.208 59.316 32.54 58.908 32.772C58.508 33.004 58.06 33.12 57.564 33.12C57.1 33.12 56.692 32.996 56.34 32.748C55.988 32.492 55.712 32.148 55.512 31.716C55.32 31.276 55.224 30.784 55.224 30.24C55.224 29.688 55.32 29.196 55.512 28.764C55.712 28.332 55.988 27.992 56.34 27.744C56.692 27.488 57.1 27.36 57.564 27.36C58.06 27.36 58.508 27.476 58.908 27.708C59.316 27.94 59.636 28.272 59.868 28.704C60.108 29.128 60.228 29.64 60.228 30.24ZM59.604 30.24C59.604 29.76 59.508 29.348 59.316 29.004C59.124 28.66 58.868 28.4 58.548 28.224C58.228 28.04 57.872 27.948 57.48 27.948C57.144 27.948 56.824 28.048 56.52 28.248C56.216 28.448 55.972 28.72 55.788 29.064C55.604 29.408 55.512 29.8 55.512 30.24C55.512 30.68 55.604 31.072 55.788 31.416C55.972 31.76 56.216 32.032 56.52 32.232C56.824 32.432 57.144 32.532 57.48 32.532C57.872 32.532 58.228 32.444 58.548 32.268C58.868 32.084 59.124 31.82 59.316 31.476C59.508 31.132 59.604 30.72 59.604 30.24ZM65.6756 27.48L62.0756 35.64H61.3796L62.7956 32.436L60.5636 27.48H61.3076L63.3116 32.184L63.0236 32.16L64.9796 27.48H65.6756ZM70.3604 31.344C70.3604 31.616 70.4204 31.844 70.5404 32.028C70.6684 32.212 70.8364 32.352 71.0444 32.448C71.2604 32.536 71.4964 32.58 71.7524 32.58C72.0644 32.58 72.3484 32.508 72.6044 32.364C72.8684 32.22 73.0804 32.008 73.2404 31.728C73.4004 31.448 73.4804 31.104 73.4804 30.696L73.6244 31.224C73.6244 31.656 73.5204 32.012 73.3124 32.292C73.1044 32.572 72.8444 32.78 72.5324 32.916C72.2204 33.052 71.9044 33.12 71.5844 33.12C71.2724 33.12 70.9724 33.056 70.6844 32.928C70.3964 32.792 70.1644 32.596 69.9884 32.34C69.8124 32.084 69.7244 31.76 69.7244 31.368C69.7244 30.832 69.9084 30.408 70.2764 30.096C70.6524 29.784 71.1604 29.628 71.8004 29.628C72.1604 29.628 72.4684 29.672 72.7244 29.76C72.9884 29.84 73.2044 29.932 73.3724 30.036C73.5404 30.14 73.6604 30.228 73.7324 30.3V30.696C73.4604 30.504 73.1684 30.364 72.8564 30.276C72.5524 30.18 72.2324 30.132 71.8964 30.132C71.5844 30.132 71.3124 30.176 71.0804 30.264C70.8564 30.352 70.6804 30.484 70.5524 30.66C70.4244 30.836 70.3604 31.064 70.3604 31.344ZM70.3844 28.488L70.0724 28.02C70.2804 27.876 70.5484 27.732 70.8764 27.588C71.2124 27.436 71.6244 27.36 72.1124 27.36C72.5284 27.36 72.8844 27.428 73.1804 27.564C73.4764 27.7 73.7044 27.896 73.8644 28.152C74.0244 28.408 74.1044 28.72 74.1044 29.088V33H73.4804V29.172C73.4804 29.012 73.4564 28.86 73.4084 28.716C73.3604 28.564 73.2804 28.428 73.1684 28.308C73.0644 28.188 72.9204 28.092 72.7364 28.02C72.5524 27.948 72.3284 27.912 72.0644 27.912C71.7924 27.912 71.5484 27.944 71.3324 28.008C71.1164 28.072 70.9284 28.148 70.7684 28.236C70.6164 28.324 70.4884 28.408 70.3844 28.488ZM80.0551 23.64H80.6791V33H80.0551V23.64ZM75.3391 30.24C75.3391 29.64 75.4591 29.128 75.6991 28.704C75.9391 28.272 76.2591 27.94 76.6591 27.708C77.0671 27.476 77.5151 27.36 78.0031 27.36C78.4831 27.36 78.8951 27.488 79.2391 27.744C79.5831 27.992 79.8511 28.332 80.0431 28.764C80.2431 29.196 80.3431 29.688 80.3431 30.24C80.3431 30.784 80.2431 31.276 80.0431 31.716C79.8511 32.148 79.5831 32.492 79.2391 32.748C78.8951 32.996 78.4831 33.12 78.0031 33.12C77.5151 33.12 77.0671 33.004 76.6591 32.772C76.2591 32.54 75.9391 32.208 75.6991 31.776C75.4591 31.344 75.3391 30.832 75.3391 30.24ZM75.9751 30.24C75.9751 30.72 76.0671 31.132 76.2511 31.476C76.4431 31.82 76.6991 32.084 77.0191 32.268C77.3471 32.444 77.7031 32.532 78.0871 32.532C78.4311 32.532 78.7511 32.432 79.0471 32.232C79.3511 32.032 79.5951 31.76 79.7791 31.416C79.9631 31.072 80.0551 30.68 80.0551 30.24C80.0551 29.8 79.9631 29.408 79.7791 29.064C79.5951 28.72 79.3511 28.448 79.0471 28.248C78.7511 28.048 78.4311 27.948 78.0871 27.948C77.7031 27.948 77.3471 28.04 77.0191 28.224C76.6991 28.4 76.4431 28.66 76.2511 29.004C76.0671 29.348 75.9751 29.76 75.9751 30.24ZM86.7465 23.64H87.3705V33H86.7465V23.64ZM82.0305 30.24C82.0305 29.64 82.1505 29.128 82.3905 28.704C82.6305 28.272 82.9505 27.94 83.3505 27.708C83.7585 27.476 84.2065 27.36 84.6945 27.36C85.1745 27.36 85.5865 27.488 85.9305 27.744C86.2745 27.992 86.5425 28.332 86.7345 28.764C86.9345 29.196 87.0345 29.688 87.0345 30.24C87.0345 30.784 86.9345 31.276 86.7345 31.716C86.5425 32.148 86.2745 32.492 85.9305 32.748C85.5865 32.996 85.1745 33.12 84.6945 33.12C84.2065 33.12 83.7585 33.004 83.3505 32.772C82.9505 32.54 82.6305 32.208 82.3905 31.776C82.1505 31.344 82.0305 30.832 82.0305 30.24ZM82.6665 30.24C82.6665 30.72 82.7585 31.132 82.9425 31.476C83.1345 31.82 83.3905 32.084 83.7105 32.268C84.0385 32.444 84.3945 32.532 84.7785 32.532C85.1225 32.532 85.4425 32.432 85.7385 32.232C86.0425 32.032 86.2865 31.76 86.4705 31.416C86.6545 31.072 86.7465 30.68 86.7465 30.24C86.7465 29.8 86.6545 29.408 86.4705 29.064C86.2865 28.72 86.0425 28.448 85.7385 28.248C85.4425 28.048 85.1225 27.948 84.7785 27.948C84.3945 27.948 84.0385 28.04 83.7105 28.224C83.3905 28.4 83.1345 28.66 82.9425 29.004C82.7585 29.348 82.6665 29.76 82.6665 30.24ZM88.7219 30.24C88.7219 29.68 88.8459 29.184 89.0939 28.752C89.3419 28.32 89.6779 27.98 90.1019 27.732C90.5339 27.484 91.0179 27.36 91.5539 27.36C92.0899 27.36 92.5699 27.484 92.9939 27.732C93.4259 27.98 93.7659 28.32 94.0139 28.752C94.2619 29.184 94.3859 29.68 94.3859 30.24C94.3859 30.792 94.2619 31.288 94.0139 31.728C93.7659 32.16 93.4259 32.5 92.9939 32.748C92.5699 32.996 92.0899 33.12 91.5539 33.12C91.0179 33.12 90.5339 32.996 90.1019 32.748C89.6779 32.5 89.3419 32.16 89.0939 31.728C88.8459 31.288 88.7219 30.792 88.7219 30.24ZM89.3579 30.24C89.3579 30.688 89.4539 31.084 89.6459 31.428C89.8379 31.772 90.0979 32.044 90.4259 32.244C90.7619 32.436 91.1379 32.532 91.5539 32.532C91.9699 32.532 92.3419 32.436 92.6699 32.244C93.0059 32.044 93.2699 31.772 93.4619 31.428C93.6539 31.084 93.7499 30.688 93.7499 30.24C93.7499 29.8 93.6539 29.408 93.4619 29.064C93.2699 28.712 93.0059 28.44 92.6699 28.248C92.3419 28.048 91.9699 27.948 91.5539 27.948C91.1379 27.948 90.7619 28.048 90.4259 28.248C90.0979 28.44 89.8379 28.708 89.6459 29.052C89.4539 29.396 89.3579 29.792 89.3579 30.24ZM99.3396 29.448C99.3396 28.976 99.2356 28.608 99.0276 28.344C98.8196 28.08 98.4916 27.948 98.0436 27.948C97.7316 27.948 97.4516 28.024 97.2036 28.176C96.9636 28.32 96.7716 28.52 96.6276 28.776C96.4916 29.032 96.4236 29.32 96.4236 29.64V33H95.7996V27.48H96.4236V28.632C96.5756 28.232 96.8036 27.92 97.1076 27.696C97.4196 27.472 97.7796 27.36 98.1876 27.36C98.7636 27.36 99.2036 27.544 99.5076 27.912C99.8116 28.272 99.9636 28.76 99.9636 29.376V33H99.3396V29.448ZM101.858 24.984C101.858 24.856 101.902 24.752 101.99 24.672C102.078 24.584 102.182 24.54 102.302 24.54C102.43 24.54 102.534 24.584 102.614 24.672C102.702 24.752 102.746 24.856 102.746 24.984C102.746 25.104 102.702 25.208 102.614 25.296C102.534 25.384 102.43 25.428 102.302 25.428C102.182 25.428 102.078 25.384 101.99 25.296C101.902 25.208 101.858 25.104 101.858 24.984ZM101.99 27.48H102.614V33H101.99V27.48ZM104.227 27.48H106.819V28.068H104.227V27.48ZM106.939 24.552C106.851 24.424 106.743 24.328 106.615 24.264C106.487 24.192 106.351 24.156 106.207 24.156C106.007 24.156 105.847 24.208 105.727 24.312C105.615 24.416 105.531 24.564 105.475 24.756C105.419 24.948 105.391 25.168 105.391 25.416V33H104.767V25.344C104.767 24.968 104.819 24.648 104.923 24.384C105.035 24.112 105.199 23.904 105.415 23.76C105.631 23.608 105.907 23.532 106.243 23.532C106.419 23.532 106.571 23.56 106.699 23.616C106.835 23.664 106.951 23.728 107.047 23.808C107.151 23.888 107.231 23.968 107.287 24.048L106.939 24.552ZM112.258 27.48L108.658 35.64H107.962L109.378 32.436L107.146 27.48H107.89L109.894 32.184L109.606 32.16L111.562 27.48H112.258ZM112.846 32.712C112.846 32.584 112.89 32.476 112.978 32.388C113.066 32.3 113.17 32.256 113.29 32.256C113.418 32.256 113.522 32.3 113.602 32.388C113.69 32.476 113.734 32.584 113.734 32.712C113.734 32.832 113.69 32.936 113.602 33.024C113.522 33.112 113.418 33.156 113.29 33.156C113.17 33.156 113.066 33.112 112.978 33.024C112.89 32.936 112.846 32.832 112.846 32.712Z" fill="#313131"></path><path d="M53.26 19V6.04H60.703V7.363H54.583V11.863H59.623V13.177H54.583V19H53.26ZM63.4103 19V5.77H64.7333V19H63.4103ZM72.3905 19.27C71.4245 19.27 70.5995 19.051 69.9155 18.613C69.2315 18.175 68.7065 17.569 68.3405 16.795C67.9745 16.021 67.7915 15.133 67.7915 14.131C67.7915 13.111 67.9775 12.217 68.3495 11.449C68.7215 10.681 69.2495 10.084 69.9335 9.658C70.6235 9.226 71.4425 9.01 72.3905 9.01C73.3625 9.01 74.1905 9.229 74.8745 9.667C75.5645 10.099 76.0895 10.702 76.4495 11.476C76.8155 12.244 76.9985 13.129 76.9985 14.131C76.9985 15.151 76.8155 16.048 76.4495 16.822C76.0835 17.59 75.5555 18.19 74.8655 18.622C74.1755 19.054 73.3505 19.27 72.3905 19.27ZM72.3905 18.001C73.4705 18.001 74.2745 17.644 74.8025 16.93C75.3305 16.21 75.5945 15.277 75.5945 14.131C75.5945 12.955 75.3275 12.019 74.7935 11.323C74.2655 10.627 73.4645 10.279 72.3905 10.279C71.6645 10.279 71.0645 10.444 70.5905 10.774C70.1225 11.098 69.7715 11.551 69.5375 12.133C69.3095 12.709 69.1955 13.375 69.1955 14.131C69.1955 15.301 69.4655 16.24 70.0055 16.948C70.5455 17.65 71.3405 18.001 72.3905 18.001ZM82.6648 19.27C81.9328 19.27 81.3178 19.138 80.8198 18.874C80.3278 18.61 79.9588 18.259 79.7128 17.821C79.4668 17.383 79.3438 16.906 79.3438 16.39C79.3438 15.862 79.4488 15.412 79.6588 15.04C79.8748 14.662 80.1658 14.353 80.5318 14.113C80.9038 13.873 81.3328 13.69 81.8188 13.564C82.3108 13.444 82.8538 13.339 83.4478 13.249C84.0478 13.153 84.6328 13.072 85.2028 13.006C85.7788 12.934 86.2828 12.865 86.7148 12.799L86.2468 13.087C86.2648 12.127 86.0788 11.416 85.6888 10.954C85.2988 10.492 84.6208 10.261 83.6548 10.261C82.9888 10.261 82.4248 10.411 81.9628 10.711C81.5068 11.011 81.1858 11.485 80.9998 12.133L79.7128 11.755C79.9348 10.885 80.3818 10.21 81.0538 9.73C81.7258 9.25 82.5988 9.01 83.6728 9.01C84.5608 9.01 85.3138 9.178 85.9318 9.514C86.5558 9.844 86.9968 10.324 87.2548 10.954C87.3748 11.236 87.4528 11.551 87.4888 11.899C87.5248 12.247 87.5428 12.601 87.5428 12.961V19H86.3638V16.561L86.7058 16.705C86.3758 17.539 85.8628 18.175 85.1668 18.613C84.4708 19.051 83.6368 19.27 82.6648 19.27ZM82.8178 18.127C83.4358 18.127 83.9758 18.016 84.4378 17.794C84.8998 17.572 85.2718 17.269 85.5538 16.885C85.8358 16.495 86.0188 16.057 86.1028 15.571C86.1748 15.259 86.2138 14.917 86.2198 14.545C86.2258 14.167 86.2288 13.885 86.2288 13.699L86.7328 13.96C86.2828 14.02 85.7938 14.08 85.2658 14.14C84.7438 14.2 84.2278 14.269 83.7178 14.347C83.2138 14.425 82.7578 14.518 82.3498 14.626C82.0738 14.704 81.8068 14.815 81.5488 14.959C81.2908 15.097 81.0778 15.283 80.9098 15.517C80.7478 15.751 80.6668 16.042 80.6668 16.39C80.6668 16.672 80.7358 16.945 80.8738 17.209C81.0178 17.473 81.2458 17.692 81.5578 17.866C81.8758 18.04 82.2958 18.127 82.8178 18.127ZM96.0778 19C95.5318 19.114 94.9918 19.159 94.4578 19.135C93.9298 19.111 93.4558 18.997 93.0358 18.793C92.6218 18.589 92.3068 18.271 92.0908 17.839C91.9168 17.479 91.8208 17.116 91.8028 16.75C91.7908 16.378 91.7848 15.955 91.7848 15.481V6.58H93.0988V15.427C93.0988 15.835 93.1018 16.177 93.1078 16.453C93.1198 16.723 93.1828 16.963 93.2968 17.173C93.5128 17.575 93.8548 17.815 94.3228 17.893C94.7968 17.971 95.3818 17.953 96.0778 17.839V19ZM89.7058 10.414V9.28H96.0778V10.414H89.7058ZM99.0728 7.435V5.95H100.396V7.435H99.0728ZM99.0728 19V9.28H100.396V19H99.0728ZM111.014 19V14.041C111.014 13.501 110.963 13.006 110.861 12.556C110.759 12.1 110.594 11.704 110.366 11.368C110.144 11.026 109.853 10.762 109.493 10.576C109.139 10.39 108.707 10.297 108.197 10.297C107.729 10.297 107.315 10.378 106.955 10.54C106.601 10.702 106.301 10.936 106.055 11.242C105.815 11.542 105.632 11.908 105.506 12.34C105.38 12.772 105.317 13.264 105.317 13.816L104.381 13.609C104.381 12.613 104.555 11.776 104.903 11.098C105.251 10.42 105.731 9.907 106.343 9.559C106.955 9.211 107.657 9.037 108.449 9.037C109.031 9.037 109.538 9.127 109.97 9.307C110.408 9.487 110.777 9.73 111.077 10.036C111.383 10.342 111.629 10.693 111.815 11.089C112.001 11.479 112.136 11.896 112.22 12.34C112.304 12.778 112.346 13.216 112.346 13.654V19H111.014ZM103.985 19V9.28H105.182V11.674H105.317V19H103.985ZM119.442 23.59C118.944 23.59 118.452 23.515 117.966 23.365C117.486 23.221 117.042 22.99 116.634 22.672C116.226 22.36 115.884 21.952 115.608 21.448L116.805 20.782C117.075 21.322 117.453 21.709 117.939 21.943C118.431 22.183 118.932 22.303 119.442 22.303C120.144 22.303 120.711 22.171 121.143 21.907C121.581 21.649 121.899 21.265 122.097 20.755C122.295 20.245 122.391 19.609 122.385 18.847V16.255H122.538V9.28H123.717V18.865C123.717 19.141 123.708 19.405 123.69 19.657C123.678 19.915 123.651 20.167 123.609 20.413C123.495 21.139 123.258 21.736 122.898 22.204C122.544 22.672 122.076 23.02 121.494 23.248C120.918 23.476 120.234 23.59 119.442 23.59ZM119.352 19.27C118.446 19.27 117.672 19.045 117.03 18.595C116.388 18.139 115.896 17.524 115.554 16.75C115.212 15.976 115.041 15.103 115.041 14.131C115.041 13.165 115.209 12.295 115.545 11.521C115.887 10.747 116.376 10.135 117.012 9.685C117.648 9.235 118.41 9.01 119.298 9.01C120.21 9.01 120.978 9.232 121.602 9.676C122.226 10.12 122.697 10.729 123.015 11.503C123.339 12.271 123.501 13.147 123.501 14.131C123.501 15.097 123.342 15.97 123.024 16.75C122.706 17.524 122.238 18.139 121.62 18.595C121.002 19.045 120.246 19.27 119.352 19.27ZM119.487 18.037C120.177 18.037 120.747 17.869 121.197 17.533C121.647 17.197 121.983 16.735 122.205 16.147C122.427 15.553 122.538 14.881 122.538 14.131C122.538 13.369 122.427 12.697 122.205 12.115C121.983 11.527 121.647 11.068 121.197 10.738C120.753 10.408 120.192 10.243 119.514 10.243C118.818 10.243 118.242 10.414 117.786 10.756C117.33 11.098 116.991 11.563 116.769 12.151C116.553 12.739 116.445 13.399 116.445 14.131C116.445 14.869 116.556 15.535 116.778 16.129C117.006 16.717 117.345 17.182 117.795 17.524C118.245 17.866 118.809 18.037 119.487 18.037ZM136.884 19.27C135.594 19.27 134.505 18.985 133.617 18.415C132.729 17.839 132.057 17.044 131.601 16.03C131.145 15.016 130.917 13.846 130.917 12.52C130.917 11.194 131.145 10.024 131.601 9.01C132.057 7.996 132.729 7.204 133.617 6.634C134.505 6.058 135.594 5.77 136.884 5.77C138.39 5.77 139.62 6.157 140.574 6.931C141.528 7.699 142.182 8.731 142.536 10.027L141.186 10.378C140.91 9.352 140.415 8.539 139.701 7.939C138.987 7.339 138.048 7.039 136.884 7.039C135.87 7.039 135.027 7.27 134.355 7.732C133.683 8.194 133.176 8.839 132.834 9.667C132.498 10.489 132.324 11.44 132.312 12.52C132.306 13.6 132.471 14.551 132.807 15.373C133.149 16.195 133.659 16.84 134.337 17.308C135.021 17.77 135.87 18.001 136.884 18.001C138.048 18.001 138.987 17.701 139.701 17.101C140.415 16.495 140.91 15.682 141.186 14.662L142.536 15.013C142.182 16.309 141.528 17.344 140.574 18.118C139.62 18.886 138.39 19.27 136.884 19.27ZM148.203 19.27C147.471 19.27 146.856 19.138 146.358 18.874C145.866 18.61 145.497 18.259 145.251 17.821C145.005 17.383 144.882 16.906 144.882 16.39C144.882 15.862 144.987 15.412 145.197 15.04C145.413 14.662 145.704 14.353 146.07 14.113C146.442 13.873 146.871 13.69 147.357 13.564C147.849 13.444 148.392 13.339 148.986 13.249C149.586 13.153 150.171 13.072 150.741 13.006C151.317 12.934 151.821 12.865 152.253 12.799L151.785 13.087C151.803 12.127 151.617 11.416 151.227 10.954C150.837 10.492 150.159 10.261 149.193 10.261C148.527 10.261 147.963 10.411 147.501 10.711C147.045 11.011 146.724 11.485 146.538 12.133L145.251 11.755C145.473 10.885 145.92 10.21 146.592 9.73C147.264 9.25 148.137 9.01 149.211 9.01C150.099 9.01 150.852 9.178 151.47 9.514C152.094 9.844 152.535 10.324 152.793 10.954C152.913 11.236 152.991 11.551 153.027 11.899C153.063 12.247 153.081 12.601 153.081 12.961V19H151.902V16.561L152.244 16.705C151.914 17.539 151.401 18.175 150.705 18.613C150.009 19.051 149.175 19.27 148.203 19.27ZM148.356 18.127C148.974 18.127 149.514 18.016 149.976 17.794C150.438 17.572 150.81 17.269 151.092 16.885C151.374 16.495 151.557 16.057 151.641 15.571C151.713 15.259 151.752 14.917 151.758 14.545C151.764 14.167 151.767 13.885 151.767 13.699L152.271 13.96C151.821 14.02 151.332 14.08 150.804 14.14C150.282 14.2 149.766 14.269 149.256 14.347C148.752 14.425 148.296 14.518 147.888 14.626C147.612 14.704 147.345 14.815 147.087 14.959C146.829 15.097 146.616 15.283 146.448 15.517C146.286 15.751 146.205 16.042 146.205 16.39C146.205 16.672 146.274 16.945 146.412 17.209C146.556 17.473 146.784 17.692 147.096 17.866C147.414 18.04 147.834 18.127 148.356 18.127ZM156.324 19V9.28H157.512V11.62L157.278 11.314C157.386 11.026 157.527 10.762 157.701 10.522C157.875 10.276 158.064 10.075 158.268 9.919C158.52 9.697 158.814 9.529 159.15 9.415C159.486 9.295 159.825 9.226 160.167 9.208C160.509 9.184 160.821 9.208 161.103 9.28V10.522C160.749 10.432 160.362 10.411 159.942 10.459C159.522 10.507 159.135 10.675 158.781 10.963C158.457 11.215 158.214 11.518 158.052 11.872C157.89 12.22 157.782 12.592 157.728 12.988C157.674 13.378 157.647 13.765 157.647 14.149V19H156.324ZM169.002 19C168.456 19.114 167.916 19.159 167.382 19.135C166.854 19.111 166.38 18.997 165.96 18.793C165.546 18.589 165.231 18.271 165.015 17.839C164.841 17.479 164.745 17.116 164.727 16.75C164.715 16.378 164.709 15.955 164.709 15.481V6.58H166.023V15.427C166.023 15.835 166.026 16.177 166.032 16.453C166.044 16.723 166.107 16.963 166.221 17.173C166.437 17.575 166.779 17.815 167.247 17.893C167.721 17.971 168.306 17.953 169.002 17.839V19ZM162.63 10.414V9.28H169.002V10.414H162.63Z" fill="#313131"></path><path d="M0 3C0 1.34315 1.34315 0 3 0H41C42.6569 0 44 1.34315 44 3V29C44 37.2843 37.2843 44 29 44H3C1.34315 44 0 42.6569 0 41V3Z" fill="#770CFF"></path><g clip-path="url(#clip0_106_2)"><path d="M17.25 31.1667C17.7563 31.1667 18.1667 30.7563 18.1667 30.25C18.1667 29.7437 17.7563 29.3333 17.25 29.3333C16.7438 29.3333 16.3334 29.7437 16.3334 30.25C16.3334 30.7563 16.7438 31.1667 17.25 31.1667Z" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M27.3333 31.1667C27.8396 31.1667 28.25 30.7563 28.25 30.25C28.25 29.7437 27.8396 29.3333 27.3333 29.3333C26.827 29.3333 26.4166 29.7437 26.4166 30.25C26.4166 30.7563 26.827 31.1667 27.3333 31.1667Z" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M9.91663 11.9167H13.5833L16.04 24.1908C16.1238 24.6129 16.3534 24.992 16.6885 25.2618C17.0237 25.5316 17.4431 25.6749 17.8733 25.6667H26.7833C27.2135 25.6749 27.6329 25.5316 27.968 25.2618C28.3032 24.992 28.5328 24.6129 28.6166 24.1908L30.0833 16.5H14.5" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></g><defs><clipPath id="clip0_106_2"><rect width="22" height="22" fill="white" transform="translate(9 11)"></rect></clipPath></defs>',5)];var c=n(2618);const l={},u=(0,c.Z)(l,[["render",function(t,e){return(0,r.wg)(),(0,r.iD)("svg",a,i)}]]);var s={key:0,viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},d=[(0,r._)("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32zm448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32zm-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32zM195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0zm-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"},null,-1)],f={key:1,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},p=[(0,r._)("path",{d:"M11 18H7.94101C7.64391 16.7274 6.30412 15.6857 5.75395 14.9992C4.65645 13.6297 4 11.8915 4 10C4 5.58172 7.58172 2 12 2C16.4183 2 20 5.58172 20 10C20 11.8925 19.3428 13.6315 18.2443 15.0014C17.6944 15.687 16.3558 16.7276 16.059 18H13V13H11V18ZM16 20V21C16 22.1046 15.1046 23 14 23H10C8.89543 23 8 22.1046 8 21V20H16Z"},null,-1)],h={key:2,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},y=[(0,r._)("path",{d:"M21 10.063V4C21 3.44772 20.5523 3 20 3H19C17.0214 4.97864 13.3027 6.08728 11 6.61281V17.3872C13.3027 17.9127 17.0214 19.0214 19 21H20C20.5523 21 21 20.5523 21 20V13.937C21.8626 13.715 22.5 12.9319 22.5 12 22.5 11.0681 21.8626 10.285 21 10.063ZM5 7C3.89543 7 3 7.89543 3 9V15C3 16.1046 3.89543 17 5 17H6L7 22H9V7H5Z"},null,-1)],v={key:3,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},g=[(0,r._)("path",{d:"M12,10c1.1,0,2,.9,2,2s-.9,2-2,2-2-.9-2-2,.9-2,2-2Zm8.49,10.49c4.68-4.68,4.68-12.29,0-16.97-.39-.39-1.02-.39-1.41,0s-.39,1.02,0,1.41c3.9,3.9,3.9,10.24,0,14.14-.39,.39-.39,1.02,0,1.41,.2,.2,.45,.29,.71,.29s.51-.1,.71-.29Zm-3.54-3.54c1.32-1.32,2.05-3.08,2.05-4.95s-.73-3.63-2.05-4.95c-.39-.39-1.02-.39-1.41,0s-.39,1.02,0,1.41c.94,.94,1.46,2.2,1.46,3.54s-.52,2.59-1.46,3.54c-.39,.39-.39,1.02,0,1.41,.2,.2,.45,.29,.71,.29s.51-.1,.71-.29Zm-12.02,3.54c.39-.39,.39-1.02,0-1.41-3.9-3.9-3.9-10.24,0-14.14,.39-.39,.39-1.02,0-1.41s-1.02-.39-1.41,0C-1.16,8.19-1.16,15.81,3.51,20.49c.2,.2,.45,.29,.71,.29s.51-.1,.71-.29Zm3.54-3.54c.39-.39,.39-1.02,0-1.41-1.95-1.95-1.95-5.12,0-7.07,.39-.39,.39-1.02,0-1.41s-1.02-.39-1.41,0c-2.73,2.73-2.73,7.17,0,9.9,.2,.2,.45,.29,.71,.29s.51-.1,.71-.29Z"},null,-1)],m={key:4,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},w=[(0,r._)("path",{d:"M12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 16C14.2091 16 16 14.2091 16 12C16 9.79086 14.2091 8 12 8C9.79086 8 8 9.79086 8 12C8 14.2091 9.79086 16 12 16ZM12 18C8.68629 18 6 15.3137 6 12C6 8.68629 8.68629 6 12 6C15.3137 6 18 8.68629 18 12C18 15.3137 15.3137 18 12 18ZM12 14C10.8954 14 10 13.1046 10 12C10 10.8954 10.8954 10 12 10C13.1046 10 14 10.8954 14 12C14 13.1046 13.1046 14 12 14Z"},null,-1)],C={key:5,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},b=[(0,r._)("path",{fill:"none",d:"M0 0h24v24H0z"},null,-1),(0,r._)("path",{d:"M2.132 13.63a9.942 9.942 0 0 1 0-3.26c1.102.026 2.092-.502 2.477-1.431.385-.93.058-2.004-.74-2.763a9.942 9.942 0 0 1 2.306-2.307c.76.798 1.834 1.125 2.764.74.93-.385 1.457-1.376 1.43-2.477a9.942 9.942 0 0 1 3.262 0c-.027 1.102.501 2.092 1.43 2.477.93.385 2.004.058 2.763-.74a9.942 9.942 0 0 1 2.307 2.306c-.798.76-1.125 1.834-.74 2.764.385.93 1.376 1.457 2.477 1.43a9.942 9.942 0 0 1 0 3.262c-1.102-.027-2.092.501-2.477 1.43-.385.93-.058 2.004.74 2.763a9.942 9.942 0 0 1-2.306 2.307c-.76-.798-1.834-1.125-2.764-.74-.93.385-1.457 1.376-1.43 2.477a9.942 9.942 0 0 1-3.262 0c.027-1.102-.501-2.092-1.43-2.477-.93-.385-2.004-.058-2.763.74a9.942 9.942 0 0 1-2.307-2.306c.798-.76 1.125-1.834.74-2.764-.385-.93-1.376-1.457-2.477-1.43zM12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6z"},null,-1)],_={key:6,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},S=[(0,r._)("path",{fill:"none",d:"M0 0h24v24H0z"},null,-1),(0,r._)("path",{d:"M4 3h16a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1zm2 9h6a1 1 0 0 1 1 1v3h1v6h-4v-6h1v-2H5a1 1 0 0 1-1-1v-2h2v1zm11.732 1.732l1.768-1.768 1.768 1.768a2.5 2.5 0 1 1-3.536 0z"},null,-1)],k={key:7,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},x=[(0,r._)("path",{fill:"none",d:"M0 0h24v24H0z"},null,-1),(0,r._)("path",{d:"M13 16.938V19h5v2H6v-2h5v-2.062A8.001 8.001 0 0 1 4 9V3h16v6a8.001 8.001 0 0 1-7 7.938zM1 5h2v4H1V5zm20 0h2v4h-2V5z"},null,-1)],V={key:8,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},L=[(0,r._)("path",{d:"M9 2.00318V2H19.9978C20.5513 2 21 2.45531 21 2.9918V21.0082C21 21.556 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5501 3 20.9932V8L9 2.00318ZM5.82918 8H9V4.83086L5.82918 8ZM11 4V9C11 9.55228 10.5523 10 10 10H5V20H19V4H11Z"},null,-1)],U={key:9,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},j=[(0,r._)("path",{d:"M17.0007 1.20801 18.3195 3.68083 20.7923 4.99968 18.3195 6.31852 17.0007 8.79134 15.6818 6.31852 13.209 4.99968 15.6818 3.68083 17.0007 1.20801ZM10.6673 9.33301 15.6673 11.9997 10.6673 14.6663 8.00065 19.6663 5.33398 14.6663.333984 11.9997 5.33398 9.33301 8.00065 4.33301 10.6673 9.33301ZM11.4173 11.9997 9.18905 10.8113 8.00065 8.58301 6.81224 10.8113 4.58398 11.9997 6.81224 13.1881 8.00065 15.4163 9.18905 13.1881 11.4173 11.9997ZM19.6673 16.333 18.0007 13.208 16.334 16.333 13.209 17.9997 16.334 19.6663 18.0007 22.7913 19.6673 19.6663 22.7923 17.9997 19.6673 16.333Z"},null,-1)];const O={__name:"Icons",props:{icon:{type:String,required:!0}},setup:function(t){var e=t.icon;return function(t,n){return(0,r.wg)(),(0,r.iD)(r.HY,null,["spinner"===(0,r.SU)(e)?((0,r.wg)(),(0,r.iD)("svg",s,d)):(0,r.kq)("",!0),"bulb-solid"===(0,r.SU)(e)?((0,r.wg)(),(0,r.iD)("svg",f,p)):(0,r.kq)("",!0),"megaphone-solid"===(0,r.SU)(e)?((0,r.wg)(),(0,r.iD)("svg",h,y)):(0,r.kq)("",!0),"signal-tower"===(0,r.SU)(e)?((0,r.wg)(),(0,r.iD)("svg",v,g)):(0,r.kq)("",!0),"focus-1-solid"===(0,r.SU)(e)?((0,r.wg)(),(0,r.iD)("svg",m,w)):(0,r.kq)("",!0),"gears"===(0,r.SU)(e)?((0,r.wg)(),(0,r.iD)("svg",C,b)):(0,r.kq)("",!0),"paint"===(0,r.SU)(e)?((0,r.wg)(),(0,r.iD)("svg",_,S)):(0,r.kq)("",!0),"trophy"===(0,r.SU)(e)?((0,r.wg)(),(0,r.iD)("svg",k,x)):(0,r.kq)("",!0),"paper"===(0,r.SU)(e)?((0,r.wg)(),(0,r.iD)("svg",V,L)):(0,r.kq)("",!0),"sparkling-stars"===(0,r.SU)(e)?((0,r.wg)(),(0,r.iD)("svg",U,j)):(0,r.kq)("",!0)],64)}}};var E=n(5266);n(26);function H(){H=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var a=e&&e.prototype instanceof g?e:g,i=Object.create(a.prototype),c=new O(r||[]);return o(i,"_invoke",{value:V(t,n,c)}),i}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var f="suspendedStart",p="suspendedYield",h="executing",y="completed",v={};function g(){}function m(){}function w(){}var C={};u(C,i,(function(){return this}));var b=Object.getPrototypeOf,_=b&&b(b(E([])));_&&_!==n&&r.call(_,i)&&(C=_);var S=w.prototype=g.prototype=Object.create(C);function k(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function n(o,a,i,c){var l=d(t[o],t,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==Z(s)&&r.call(s,"__await")?e.resolve(s.__await).then((function(t){n("next",t,i,c)}),(function(t){n("throw",t,i,c)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return n("throw",t,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function V(e,n,r){var o=f;return function(a,i){if(o===h)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var c=r.delegate;if(c){var l=L(c,r);if(l){if(l===v)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var u=d(e,n,r);if("normal"===u.type){if(o=r.done?y:p,u.arg===v)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=y,r.method="throw",r.arg=u.arg)}}}function L(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var a=d(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,v;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function U(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(U,this),this.reset(!0)}function E(e){if(e||""===e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(Z(e)+" is not iterable")}return m.prototype=w,o(S,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:m,configurable:!0}),m.displayName=u(w,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,u(t,l,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},k(x.prototype),u(x.prototype,c,(function(){return this})),e.AsyncIterator=x,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new x(s(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},k(S),u(S,l,"Generator"),u(S,i,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=E,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return c.type="throw",c.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,v):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:E(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}function M(t,e,n,r,o,a,i){try{var c=t[a](i),l=c.value}catch(t){return void n(t)}c.done?e(l):Promise.resolve(l).then(r,o)}function P(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function i(t){M(a,r,o,i,c,"next",t)}function c(t){M(a,r,o,i,c,"throw",t)}i(void 0)}))}}function Z(t){return Z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Z(t)}var z=ADDONIFY_WOOFC_LOCOLIZER.rest_namespace,q={},A=wp.apiFetch,D=wp.i18n.__,F=lodash,N=F.isEqual,I=F.cloneDeep,K=(0,o.Q_)({id:"Options",state:function(){return{data:{},options:{},message:"",isLoading:!0,isSaving:!1,needSave:!1,errors:""}},getters:{needSaving:function(t){return!N(t.options,q)},haveStateInMemory:function(t){return"array"==typeof t.options?0!==t.options.length:"object"===Z(t.options)?0!==Object.keys(t.options).length:void 0}},actions:{renderOptions:function(){var t=this;return P(H().mark((function e(){var n,r,o,a;return H().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t.isLoading=!0,e.next=4,A({path:z+"/get_options",method:"GET",cache:"no-cache"});case 4:n=e.sent,r=n.settings_values,o=n.tabs,a=r,t.data=o,t.options=a,q=I(a),t.isLoading=!1,e.next=19;break;case 14:return e.prev=14,e.t0=e.catch(0),console.log(e.t0),t.isLoading=!1,e.abrupt("return",E.z8.error({message:D("Something went wrong while fetching settings.","addonify-floating-cart"),offset:50,duration:1e4}));case 19:case"end":return e.stop()}}),e,null,[[0,14]])})))()},handleUpdateOptions:function(){var t=this,e=new Object;Object.keys(this.options).map((function(n){N(t.options[n],q[n])||(e[n]=t.options[n])})),this.updateOptions(e)},updateOptions:function(t){var e=this;return P(H().mark((function n(){var r,o;return H().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,e.isSaving=!0,n.next=4,A({path:z+"/update_options",method:"POST",data:{settings_values:t},cache:"no-cache"});case 4:if((r=n.sent).success){n.next=7;break}return n.abrupt("return",E.z8.error({message:D("Error saving changes! Please try again.","addonify-floating-cart"),offset:50,duration:15e3}));case 7:return o=I(e.options),e.options={},e.options=I(o),q=I(e.options),e.isSaving=!1,n.abrupt("return",E.z8.success({message:r.message,offset:50,duration:3e3}));case 15:return n.prev=15,n.t0=n.catch(0),console.log(n.t0),e.isSaving=!1,n.abrupt("return",E.z8.error({message:D("Error saving changes! Please try again.","addonify-floating-cart"),offset:50,duration:15e3}));case 20:case"end":return n.stop()}}),n,null,[[0,15]])})))()}}}),T={class:"adfy-header"},W={class:"adfy-row"},G={class:"adfy-col start"},Y={class:"branding"},B={class:"adfy-col end"},R={class:"action-buttons"},$={class:"links"},Q={href:"https://docs.addonify.com/kb/floating-cart/",class:"adfy-button fake-button has-underline",target:"_blank"},J={href:"https://wordpress.org/support/plugin/addonify-floating-cart/reviews/?filter=5",class:"adfy-button fake-button has-underline",target:"_blank"},X={class:"buttons"},tt=["disabled","loading"],et={class:"loading-icon"};const nt={__name:"Header",setup:function(t){var e=wp.i18n.__,n=K();return function(t,o){var a=(0,r.up)("router-link");return(0,r.wg)(),(0,r.iD)("header",T,[(0,r._)("div",W,[(0,r._)("div",G,[(0,r._)("div",Y,[(0,r.Wm)(a,{class:"adfy-link",to:"/"},{default:(0,r.w5)((function(){return[(0,r.Wm)(u)]})),_:1})])]),(0,r._)("div",B,[(0,r._)("div",R,[(0,r._)("div",$,[(0,r._)("a",Q,[(0,r.Wm)(O,{icon:"paper"}),(0,r.Uk)(" "+(0,r.zw)((0,r.SU)(e)("AFC docs","addonify-floating-cart")),1)]),(0,r._)("a",J,[(0,r.Wm)(O,{icon:"sparkling-stars"}),(0,r.Uk)(" "+(0,r.zw)((0,r.SU)(e)("Rate AFC","addonify-floating-cart")),1)])]),(0,r._)("div",X,[(0,r._)("button",{type:"submit",onClick:o[0]||(o[0]=function(t){return(0,r.SU)(n).handleUpdateOptions()}),class:"adfy-button",disabled:!(0,r.SU)(n).needSaving,loading:(0,r.SU)(n).isSaving},[(0,r._)("span",et,[(0,r.Wm)(O,{icon:"spinner"})]),(0,r.Uk)(" "+(0,r.zw)((0,r.SU)(e)("Save Options","addonify-floating-cart")),1)],8,tt)])])])])])}}},rt=nt;var ot={class:"adfy-colopon"},at={class:"adfy-row"},it={class:"adfy-col left"},ct={class:"text"},lt={class:"version"},ut={class:"adfy-col right"},st={class:"text"},dt={href:"https://wordpress.org/plugins/addonify-floating-cart/#reviews",class:"adfy-link",target:"_blank"},ft=(0,r.uE)('<span class="icon"><i class="dashicons dashicons-star-filled"></i><i class="dashicons dashicons-star-filled"></i><i class="dashicons dashicons-star-filled"></i><i class="dashicons dashicons-star-filled"></i><i class="dashicons dashicons-star-filled"></i></span>',1);const pt={__name:"Footer",setup:function(t){var e=wp.i18n.__,n=ADDONIFY_WOOFC_LOCOLIZER.version_number,o=(new Date).getFullYear();return function(t,a){return(0,r.wg)(),(0,r.iD)("footer",ot,[(0,r._)("div",at,[(0,r._)("div",it,[(0,r._)("p",ct,[(0,r.Uk)(" © 2020 - "+(0,r.zw)((0,r.SU)(o))+" Addonify Floating Cart ",1),(0,r._)("span",lt,(0,r.zw)((0,r.SU)(e)("Version","addonify-floating-cart"))+": "+(0,r.zw)((0,r.SU)(n)),1)])]),(0,r._)("div",ut,[(0,r._)("p",st,[(0,r._)("a",dt,[(0,r.Uk)((0,r.zw)((0,r.SU)(e)("Rate","addonify-floating-cart"))+" ",1),ft,(0,r.Uk)(" :) ")])])])])])}}},ht=pt,yt={__name:"App",setup:function(t){return function(t,e){var n=(0,r.up)("router-view");return(0,r.wg)(),(0,r.iD)(r.HY,null,[(0,r.Wm)(rt),(0,r.Wm)(n),(0,r.Wm)(ht)],64)}}};var vt=n(5397),gt={class:"adfy-loading"},mt=[(0,r._)("span",{class:"pulse"},null,-1)];const wt={},Ct=(0,c.Z)(wt,[["render",function(t,e){return(0,r.wg)(),(0,r.iD)("section",gt,mt)}]]);var bt={class:"adfy-navigation"},_t={class:"navigation"},St={class:"icon"},kt={class:"icon"},xt={class:"icon"};const Vt={__name:"Navigation",setup:function(t){var e=wp.i18n.__;return function(t,n){var o=(0,r.up)("router-link");return(0,r.wg)(),(0,r.iD)("nav",bt,[(0,r._)("ul",_t,[(0,r._)("li",null,[(0,r.Wm)(o,{to:"/"},{default:(0,r.w5)((function(){return[(0,r._)("span",St,[(0,r.Wm)(O,{icon:"gears"})]),(0,r.Uk)(" "+(0,r.zw)((0,r.SU)(e)("Settings","addonify-floating-cart")),1)]})),_:1})]),(0,r._)("li",null,[(0,r.Wm)(o,{to:"/styles"},{default:(0,r.w5)((function(){return[(0,r._)("span",kt,[(0,r.Wm)(O,{icon:"paint"})]),(0,r.Uk)(" "+(0,r.zw)((0,r.SU)(e)("Design","addonify-floating-cart")),1)]})),_:1})]),(0,r._)("li",null,[(0,r.Wm)(o,{to:"/products"},{default:(0,r.w5)((function(){return[(0,r._)("span",xt,[(0,r.Wm)(O,{icon:"trophy"})]),(0,r.Uk)(" "+(0,r.zw)((0,r.SU)(e)("Products","addonify-floating-cart")),1)]})),_:1})])])])}}},Lt=Vt;var Ut=["id"];const jt={__name:"Form",props:{divId:String,className:String},setup:function(t){var e=t;return function(t,n){return(0,r.wg)(),(0,r.iD)("form",{id:e.divId,class:(0,r.C_)(["adfy-form",e.className]),onSubmit:n[0]||(n[0]=(0,r.iM)((function(){}),["prevent"]))},[(0,r.WI)(t.$slots,"default")],42,Ut)}}};var Ot={key:0,class:"section-title-holder"},Et={class:"section-title"};const Ht={__name:"SectionTitle",props:{section:{type:Object,required:!0}},setup:function(t){var e=t;return function(t,n){return e.section.title?((0,r.wg)(),(0,r.iD)("div",Ot,[(0,r._)("h3",Et,(0,r.zw)(e.section.title),1)])):(0,r.kq)("",!0)}}};var Mt=n(888),Pt=(n(5650),n(8168)),Zt=(n(4228),n(5428));function zt(t){return zt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zt(t)}const qt={__name:"Switch",props:{modelValue:{type:[String,Boolean,Number],required:!0}},emits:["update:modelValue"],setup:function(t,e){var n=e.emit,o=t,a=n,i=(0,r.Fl)({get:function(){switch(zt(o.modelValue)){case"boolean":return o.modelValue;case"number":return o.modelValue>0;case"string":return"1"===o.modelValue;default:return!1}},set:function(t){a("update:modelValue",t)}});return function(t,e){return(0,r.wg)(),(0,r.j4)((0,r.SU)(Pt.OX),{modelValue:i.value,"onUpdate:modelValue":e[0]||(e[0]=function(t){return i.value=t}),size:"large","inline-prompt":"","active-icon":(0,r.SU)(Zt.JrY),"inactive-icon":(0,r.SU)(Zt.x8P)},null,8,["modelValue","active-icon","inactive-icon"])}}};var At=n(6662);n(5754);const Dt={__name:"Text",props:{modelValue:String,placeholder:String},emits:["update:modelValue"],setup:function(t,e){var n=e.emit,o=t,a=n,i=(0,r.Fl)({get:function(){return o.modelValue},set:function(t){a("update:modelValue",t)}}),c=wp.i18n.__;return function(t,e){return(0,r.wg)(),(0,r.j4)((0,r.SU)(At.EZ),{modelValue:i.value,"onUpdate:modelValue":e[0]||(e[0]=function(t){return i.value=t}),placeholder:o.placeholder?o.placeholder:(0,r.SU)(c)("Enter text here...","addonify-floating-cart"),size:"large"},null,8,["modelValue","placeholder"])}}},Ft=Dt,Nt={__name:"Textarea",props:{modelValue:{type:String,required:!1},className:{type:String,required:!1},placeholder:{type:String,required:!1}},emits:["update:modelValue"],setup:function(t,e){var n=e.emit,o=t,a=n,i=(0,r.Fl)({get:function(){return o.modelValue},set:function(t){a("update:modelValue",t)}}),c=wp.i18n.__;return function(e,n){return(0,r.wg)(),(0,r.j4)((0,r.SU)(At.EZ),{modelValue:i.value,"onUpdate:modelValue":n[0]||(n[0]=function(t){return i.value=t}),class:(0,r.C_)(t.className),type:"textarea",rows:"10",placeholder:o.placeholder?o.placeholder:(0,r.SU)(c)("Enter text here...","addonify-floating-cart"),resize:"vertical","input-style":"display:block;width: 100%;"},null,8,["modelValue","class","placeholder"])}}};var It=n(7255),Kt=n.n(It),Tt=n(7797),Wt={insert:"head",singleton:!1};Kt()(Tt.Z,Wt);Tt.Z.locals;const Gt=Nt;var Yt=n(5939),Bt=n(6097);n(5671),n(6562);const Rt={__name:"Number",props:{modelValue:{type:[Number,String],required:!0},min:{type:[String,Number],required:!1},max:{type:[String,Number],required:!1},step:{type:[String,Number],required:!1},precision:{type:[String,Number],required:!1},placeholder:{type:String,required:!1,default:""},style:{type:String,required:!1,default:"default"},unit:{type:String,required:!1,default:"px"},sliderDirection:{type:String,required:!1,default:"horizontal"}},emits:["update:modelValue"],setup:function(t,e){var n=e.emit,o=t,a=o.style,i=o.min,c=o.max,l=o.precision,u=o.step,s=o.unit,d=o.placeholder,f=n,p=(0,r.Fl)({get:function(){return parseFloat(o.modelValue)},set:function(t){f("update:modelValue",t)}}),h=function(t){return t+" "+s};return function(t,e){return(0,r.wg)(),(0,r.iD)(r.HY,null,["default"===(0,r.SU)(a)?((0,r.wg)(),(0,r.j4)((0,r.SU)(At.EZ),{key:0,type:"number",modelValue:p.value,"onUpdate:modelValue":e[0]||(e[0]=function(t){return p.value=t}),min:(0,r.SU)(i)?(0,r.SU)(i):0,max:(0,r.SU)(c),step:(0,r.SU)(u),precision:(0,r.SU)(l),placeholder:(0,r.SU)(d)},null,8,["modelValue","min","max","step","precision","placeholder"])):(0,r.kq)("",!0),"buttons-plus-minus"===(0,r.SU)(a)?((0,r.wg)(),(0,r.j4)((0,r.SU)(Yt.d6),{key:1,modelValue:p.value,"onUpdate:modelValue":e[1]||(e[1]=function(t){return p.value=t}),size:"large",min:(0,r.SU)(i)?(0,r.SU)(i):0,max:(0,r.SU)(c),step:(0,r.SU)(u),precision:(0,r.SU)(l),placeholder:(0,r.SU)(d)},null,8,["modelValue","min","max","step","precision","placeholder"])):(0,r.kq)("",!0),"buttons-arrows"===(0,r.SU)(a)?((0,r.wg)(),(0,r.j4)((0,r.SU)(Yt.d6),{key:2,modelValue:p.value,"onUpdate:modelValue":e[2]||(e[2]=function(t){return p.value=t}),size:"large",min:(0,r.SU)(i)?(0,r.SU)(i):0,max:(0,r.SU)(c),step:(0,r.SU)(u),precision:(0,r.SU)(l),placeholder:(0,r.SU)(d),"controls-position":"right"},null,8,["modelValue","min","max","step","precision","placeholder"])):(0,r.kq)("",!0),"slider"===(0,r.SU)(a)?((0,r.wg)(),(0,r.j4)((0,r.SU)(Bt.BM),{key:3,modelValue:p.value,"onUpdate:modelValue":e[3]||(e[3]=function(t){return p.value=t}),"show-tooltip":"",min:(0,r.SU)(i),max:(0,r.SU)(c),step:(0,r.SU)(u)?(0,r.SU)(u):1,"format-tooltip":h,size:"large"},null,8,["modelValue","min","max","step"])):(0,r.kq)("",!0)],64)}}};var $t=n(9517);n(2656),n(6029);const Qt={__name:"Select",props:{modelValue:{type:String,required:!0},choices:{type:[Object,Array],required:!0},placeholder:{type:String,required:!1,default:""}},emits:["update:modelValue"],setup:function(t,e){var n=e.emit,o=t,a=n,i=(0,r.Fl)({get:function(){return o.modelValue.toString()},set:function(t){a("update:modelValue",t)}}),c=wp.i18n.__;return function(t,e){return(0,r.wg)(),(0,r.j4)((0,r.SU)($t.km),{modelValue:i.value,"onUpdate:modelValue":e[0]||(e[0]=function(t){return i.value=t}),placeholder:o.placeholder?o.placeholder:(0,r.SU)(c)("Select","addonify-floating-cart"),size:"large"},{default:(0,r.w5)((function(){return[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(o.choices,(function(t,e){return(0,r.wg)(),(0,r.j4)((0,r.SU)($t.BT),{label:t,value:e},null,8,["label","value"])})),256))]})),_:1},8,["modelValue","placeholder"])}}},Jt=Qt;var Xt=n(348);n(2235);const te={__name:"Checkbox",props:{modelValue:[Boolean],label:[String]},emits:["update:modelValue"],setup:function(t,e){var n=e.emit,o=t,a=n,i=(0,r.Fl)({get:function(){return o.modelValue},set:function(t){a("update:modelValue",t)}});return function(t,e){return(0,r.wg)(),(0,r.j4)((0,r.SU)(Xt.Xb),{modelValue:i.value,"onUpdate:modelValue":e[0]||(e[0]=function(t){return i.value=t}),label:"{{props.label}}",size:"large"},null,8,["modelValue"])}}};n(6043),n(668);const ee={__name:"CheckboxButton",props:{modelValue:[Array],choices:Object},emits:["update:modelValue"],setup:function(t,e){var n=e.emit,o=t,a=n,i=(0,r.Fl)({get:function(){return o.modelValue},set:function(t){a("update:modelValue",t)}});return function(t,e){return(0,r.wg)(),(0,r.j4)((0,r.SU)(Xt.z5),{modelValue:i.value,"onUpdate:modelValue":e[0]||(e[0]=function(t){return i.value=t}),size:"large"},{default:(0,r.w5)((function(){return[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(o.choices,(function(t,e){return(0,r.wg)(),(0,r.j4)((0,r.SU)(Xt.lm),{label:e},{default:(0,r.w5)((function(){return[(0,r.Uk)((0,r.zw)(t),1)]})),_:2},1032,["label"])})),256))]})),_:1},8,["modelValue"])}}};var ne=n(8243);n(1818),n(4796);const re={__name:"Radio",props:{modelValue:{type:String,required:!0},choices:{type:[Object,Array],required:!0},style:{type:String,required:!1,default:"default"}},emits:["update:modelValue"],setup:function(t,e){var n=e.emit,o=t,a=n,i=(0,r.Fl)({get:function(){return o.modelValue},set:function(t){a("update:modelValue",t)}});return function(t,e){return(0,r.wg)(),(0,r.j4)((0,r.SU)(ne.KD),{modelValue:i.value,"onUpdate:modelValue":e[0]||(e[0]=function(t){return i.value=t})},{default:(0,r.w5)((function(){return[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(o.choices,(function(t,e){return(0,r.wg)(),(0,r.j4)((0,r.SU)(ne.rh),{label:e},{default:(0,r.w5)((function(){return[(0,r.Uk)((0,r.zw)(t),1)]})),_:2},1032,["label"])})),256))]})),_:1},8,["modelValue"])}}};var oe=["innerHTML"];const ae={__name:"RadioIcon",props:{modelValue:{type:String,required:!0},choices:{type:[Object,Array],required:!1}},emits:["update:modelValue"],setup:function(t,e){var n=e.emit,o=t,a=n,i=(0,r.Fl)({get:function(){return o.modelValue},set:function(t){a("update:modelValue",t)}});return function(t,e){return(0,r.wg)(),(0,r.j4)((0,r.SU)(ne.KD),{modelValue:i.value,"onUpdate:modelValue":e[0]||(e[0]=function(t){return i.value=t})},{default:(0,r.w5)((function(){return[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(o.choices,(function(t,e){return(0,r.wg)(),(0,r.j4)((0,r.SU)(ne.rh),{label:e,size:"large",border:""},{default:(0,r.w5)((function(){return[(0,r._)("span",{innerHTML:t},null,8,oe)]})),_:2},1032,["label"])})),256))]})),_:1},8,["modelValue"])}}};var ie=n(9481);n(501);const ce={__name:"ColorPicker",props:{colorVal:String,isAlpha:[Boolean,String],label:String},emits:["update:colorVal"],setup:function(t,e){var n=e.emit,o=t,a=n,i=(0,r.Fl)({get:function(){return o.colorVal},set:function(t){a("update:colorVal",t)}}),c=function(t){a("update:colorVal",t)};return function(t,e){return(0,r.wg)(),(0,r.j4)((0,r.SU)(ie.$),{modelValue:i.value,"onUpdate:modelValue":e[0]||(e[0]=function(t){return i.value=t}),"show-alpha":o.isAlpha,onActiveChange:c},null,8,["modelValue","show-alpha"])}}};var le={class:"unsupported-control-text"},ue={href:"https://docs.addonify.com/kb/floating-cart/developer/",target:"_blank",rel:"documentation",class:"adfy-button fake-button has-underline forward-to-doc-link"};const se={__name:"InvalidControl",setup:function(t){var e=wp.i18n.__;return function(t,n){return(0,r.wg)(),(0,r.iD)("span",le,[(0,r.Uk)(" ❌ "+(0,r.zw)((0,r.SU)(e)("Input is not supported.","addonify-wishist"))+" ",1),(0,r._)("a",ue,(0,r.zw)((0,r.SU)(e)("Check docs","addonify-floating-cart")),1)])}}};var de=n(4012),fe={insert:"head",singleton:!1};Kt()(de.Z,fe);de.Z.locals;const pe=se,he={__name:"InputControl",props:{field:{type:Object,required:!0},fieldKey:{type:String,required:!0},label:{type:String,required:!1},reactiveState:{type:Object,required:!0}},setup:function(t){var e=t;return function(t,n){return"switch"===e.field.type?((0,r.wg)(),(0,r.j4)(qt,{key:0,modelValue:e.reactiveState[e.fieldKey],"onUpdate:modelValue":n[0]||(n[0]=function(t){return e.reactiveState[e.fieldKey]=t})},null,8,["modelValue"])):"select"===e.field.type?((0,r.wg)(),(0,r.j4)(Jt,{key:1,modelValue:e.reactiveState[e.fieldKey],"onUpdate:modelValue":n[1]||(n[1]=function(t){return e.reactiveState[e.fieldKey]=t}),choices:e.field.choices,placeholder:e.field.placeholder},null,8,["modelValue","choices","placeholder"])):"text"===e.field.type?((0,r.wg)(),(0,r.j4)(Ft,{key:2,modelValue:e.reactiveState[e.fieldKey],"onUpdate:modelValue":n[2]||(n[2]=function(t){return e.reactiveState[e.fieldKey]=t}),placeholder:e.field.placeholder},null,8,["modelValue","placeholder"])):"textarea"===e.field.type?((0,r.wg)(),(0,r.j4)(Gt,{key:3,modelValue:e.reactiveState[e.fieldKey],"onUpdate:modelValue":n[3]||(n[3]=function(t){return e.reactiveState[e.fieldKey]=t}),placeholder:e.field.placeholder},null,8,["modelValue","placeholder"])):"checkbox"===e.field.type&&"buttons"===e.field.typeStyle?((0,r.wg)(),(0,r.j4)(ee,{key:4,modelValue:e.reactiveState[e.fieldKey],"onUpdate:modelValue":n[4]||(n[4]=function(t){return e.reactiveState[e.fieldKey]=t}),choices:e.field.choices},null,8,["modelValue","choices"])):"checkbox"===e.field.type?((0,r.wg)(),(0,r.j4)(te,{key:5,modelValue:e.reactiveState[e.fieldKey],"onUpdate:modelValue":n[5]||(n[5]=function(t){return e.reactiveState[e.fieldKey]=t}),choices:e.field.choices},null,8,["modelValue","choices"])):"number"===e.field.type?((0,r.wg)(),(0,r.j4)(Rt,{key:6,modelValue:e.reactiveState[e.fieldKey],"onUpdate:modelValue":n[6]||(n[6]=function(t){return e.reactiveState[e.fieldKey]=t}),placeholder:e.field.placeholder,style:(0,r.j5)(e.field.style),min:e.field.min,max:e.field.max,step:e.field.step,precision:e.field.precision,unit:e.field.unit},null,8,["modelValue","placeholder","style","min","max","step","precision","unit"])):"radio"===e.field.type?((0,r.wg)(),(0,r.j4)(re,{key:7,modelValue:e.reactiveState[e.fieldKey],"onUpdate:modelValue":n[7]||(n[7]=function(t){return e.reactiveState[e.fieldKey]=t}),choices:e.field.choices,style:(0,r.j5)(e.field.style)},null,8,["modelValue","choices","style"])):"radio-icons"===e.field.type?((0,r.wg)(),(0,r.j4)(ae,{key:8,modelValue:e.reactiveState[e.fieldKey],"onUpdate:modelValue":n[8]||(n[8]=function(t){return e.reactiveState[e.fieldKey]=t}),choices:e.field.choices},null,8,["modelValue","choices"])):"color"===e.field.type?((0,r.wg)(),(0,r.j4)(ce,{key:9,colorVal:e.reactiveState[e.fieldKey],"onUpdate:colorVal":n[9]||(n[9]=function(t){return e.reactiveState[e.fieldKey]=t}),isAlpha:e.field.isAlpha,label:e.field.label},null,8,["colorVal","isAlpha","label"])):((0,r.wg)(),(0,r.j4)(pe,{key:10}))}}};var ye={key:0,class:"adfy-options"},ve={class:"adfy-col left"},ge={class:"label"},me={key:0,class:"option-label"},we={key:1,class:"option-description"},Ce={class:"icon"},be={class:"text"},_e={class:"adfy-col right"},Se={class:"input"};const ke={__name:"OptionBox",props:{section:{type:Object,required:!0},sectionKey:{type:String,required:!0},reactiveState:{type:Object,required:!0},currentPage:{type:String,required:!0}},setup:function(t){var e=t,n=K(),o=e.currentPage;function a(t){return Array.isArray(t)?t.every((function(t){return n.options[t]})):n.options[t]}function i(t,e){switch(o){case"settings":return"enable_floating_cart"===t||a(e);case"design":return"load_styles_from_plugin"===t||a(e);default:return!1}}return function(t,n){return(0,r.wg)(),(0,r.iD)(r.HY,null,[(0,r.WI)(t.$slots,"default"),((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.section.fields,(function(t,n){return(0,r.wg)(),(0,r.iD)(r.HY,null,[i(n,t.dependent)?((0,r.wg)(),(0,r.iD)("div",ye,[(0,r._)("div",{class:(0,r.C_)(["adfy-option-columns option-box",t.className])},[(0,r._)("div",ve,[(0,r._)("div",ge,[t.label?((0,r.wg)(),(0,r.iD)("p",me,[(0,r.Uk)((0,r.zw)(t.label)+" ",1),t.badge?((0,r.wg)(),(0,r.j4)((0,r.SU)(Mt.Ks),{key:0},{default:(0,r.w5)((function(){return[(0,r.Uk)((0,r.zw)(t.badge),1)]})),_:2},1024)):(0,r.kq)("",!0)])):(0,r.kq)("",!0),t.description?((0,r.wg)(),(0,r.iD)("p",we,[(0,r._)("span",Ce,[(0,r.Wm)(O,{icon:"bulb-solid"})]),(0,r._)("span",be,(0,r.zw)(t.description),1)])):(0,r.kq)("",!0)])]),(0,r._)("div",_e,[(0,r._)("div",Se,[(0,r.Wm)(he,{field:t,fieldKey:n,reactiveState:e.reactiveState},null,8,["field","fieldKey","reactiveState"])])])],2)])):(0,r.kq)("",!0)],64)})),256))],64)}}};var xe=["data_section"];const Ve={__name:"OptionSection",props:{sectionKey:{type:String,required:!0},currentPage:{type:String,required:!0},className:{type:String,required:!1}},setup:function(t){var e=t,n=e.className,o=e.sectionKey,a=e.currentPage,i=K();return function(t,e){return"general"===(0,r.SU)(o)||function(){switch(a){case"settings":return i.options.enable_floating_cart;case"design":return i.options.load_styles_from_plugin;default:return!1}}()?((0,r.wg)(),(0,r.iD)("section",{key:0,class:(0,r.C_)(["addonify-section",(0,r.SU)(n)]),data_section:(0,r.SU)(o)},[(0,r.WI)(t.$slots,"default")],10,xe)):(0,r.kq)("",!0)}}};function Le(){Le=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var a=e&&e.prototype instanceof g?e:g,i=Object.create(a.prototype),c=new O(r||[]);return o(i,"_invoke",{value:V(t,n,c)}),i}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var f="suspendedStart",p="suspendedYield",h="executing",y="completed",v={};function g(){}function m(){}function w(){}var C={};u(C,i,(function(){return this}));var b=Object.getPrototypeOf,_=b&&b(b(E([])));_&&_!==n&&r.call(_,i)&&(C=_);var S=w.prototype=g.prototype=Object.create(C);function k(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function n(o,a,i,c){var l=d(t[o],t,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==je(s)&&r.call(s,"__await")?e.resolve(s.__await).then((function(t){n("next",t,i,c)}),(function(t){n("throw",t,i,c)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return n("throw",t,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function V(e,n,r){var o=f;return function(a,i){if(o===h)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var c=r.delegate;if(c){var l=L(c,r);if(l){if(l===v)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var u=d(e,n,r);if("normal"===u.type){if(o=r.done?y:p,u.arg===v)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=y,r.method="throw",r.arg=u.arg)}}}function L(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var a=d(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,v;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function U(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(U,this),this.reset(!0)}function E(e){if(e||""===e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(je(e)+" is not iterable")}return m.prototype=w,o(S,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:m,configurable:!0}),m.displayName=u(w,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,u(t,l,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},k(x.prototype),u(x.prototype,c,(function(){return this})),e.AsyncIterator=x,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new x(s(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},k(S),u(S,l,"Generator"),u(S,i,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=E,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return c.type="throw",c.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,v):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:E(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}function Ue(t,e,n,r,o,a,i){try{var c=t[a](i),l=c.value}catch(t){return void n(t)}c.done?e(l):Promise.resolve(l).then(r,o)}function je(t){return je="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},je(t)}var Oe=(0,o.Q_)({id:"Notice",state:function(){return{alerts:{},status:{isFetching:!0}}},getters:{hasNoticeStateInMemory:function(t){return"object"===je(t.alerts)?Object.keys(t.alerts).length>0:"array"==typeof t.alerts&&t.alerts.length>0}},actions:{checkNotices:function(){var t,e=this;return(t=Le().mark((function t(){var n,r;return Le().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,fetch("https://raw.githubusercontent.com/addonify/addonify-floating-cart/stable/notice.json");case 3:return n=t.sent,t.next=6,n.json();case 6:r=t.sent,200===n.status&&(e.alerts=r,e.status.isFetching=!1),t.next=13;break;case 10:return t.prev=10,t.t0=t.catch(0),t.abrupt("return");case 13:case"end":return t.stop()}}),t,null,[[0,10]])})),function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function i(t){Ue(a,r,o,i,c,"next",t)}function c(t){Ue(a,r,o,i,c,"throw",t)}i(void 0)}))})()}}}),Ee=["data_size"],He={class:"content"},Me={class:"icon"},Pe=["innerHTML"];const Ze={__name:"Notice",setup:function(t){var e=Oe();return(0,r.bv)((function(){e.hasNoticeStateInMemory||e.checkNotices()})),function(t,n){return(0,r.SU)(e).status.isFetching?(0,r.kq)("",!0):((0,r.wg)(!0),(0,r.iD)(r.HY,{key:0},(0,r.Ko)((0,r.SU)(e).alerts.alerts,(function(t,e){return(0,r.wg)(),(0,r.iD)(r.HY,null,[t.live?((0,r.wg)(),(0,r.iD)("aside",{key:0,class:(0,r.C_)(["addonify-notice",t.type]),data_size:t.size},[(0,r._)("div",He,[(0,r._)("span",Me,[(0,r.Wm)(O,{icon:"signal-tower"})]),(0,r._)("span",{class:"message",innerHTML:t.data.content},null,8,Pe)])],10,Ee)):(0,r.kq)("",!0)],64)})),256))}}};var ze={class:"adfy-container",id:"addonify-layout"},qe={class:"adfy-columns main-content"},Ae={class:"adfy-col start site-secondary"},De={class:"adfy-col end site-primary"};const Fe={__name:"Settings",setup:function(t){var e=K();return(0,r.bv)((function(){e.haveStateInMemory||e.renderOptions()})),function(t,n){return(0,r.wg)(),(0,r.iD)("section",ze,[(0,r.Wm)(Ze),(0,r._)("main",qe,[(0,r._)("aside",Ae,[(0,r.Wm)(Lt)]),(0,r._)("section",De,[(0,r.SU)(e).isLoading?((0,r.wg)(),(0,r.j4)(Ct,{key:0})):((0,r.wg)(),(0,r.j4)(jt,{key:1,divId:"adfy-settings-form"},{default:(0,r.w5)((function(){return[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)((0,r.SU)(e).data.settings.sections,(function(t,n){return(0,r.wg)(),(0,r.j4)(Ve,{sectionKey:n,currentPage:"settings"},{default:(0,r.w5)((function(){return[(0,r.Wm)(ke,{section:t,sectionKey:n,reactiveState:(0,r.SU)(e).options,currentPage:"settings"},{default:(0,r.w5)((function(){return[(0,r.Wm)(Ht,{section:t},null,8,["section"])]})),_:2},1032,["section","sectionKey","reactiveState"])]})),_:2},1032,["sectionKey"])})),256))]})),_:1}))])])])}}};var Ne={class:"jumbo-section jumbo-box"},Ie={class:"jumbo-header"},Ke={key:0,class:"sec-title"},Te={key:1,class:"sec-excerpt"},We={class:"icon"},Ge={class:"text"},Ye={class:"jumbo-content adfy-options"},Be={class:"ui-option"},Re={class:"col-left option-label"},$e={class:"label"},Qe={class:"col-right input"};const Je={__name:"JumboBox",props:{section:{type:Object,required:!0},reactiveState:{type:Object,required:!0}},setup:function(t){var e=t;return function(t,n){return(0,r.wg)(),(0,r.iD)("section",Ne,[(0,r._)("div",Ie,[e.section.title?((0,r.wg)(),(0,r.iD)("p",Ke,(0,r.zw)(e.section.title),1)):(0,r.kq)("",!0),e.section.description?((0,r.wg)(),(0,r.iD)("p",Te,[(0,r._)("span",We,[(0,r.Wm)(O,{icon:"bulb-solid"})]),(0,r._)("span",Ge,(0,r.zw)(e.section.description),1)])):(0,r.kq)("",!0)]),(0,r._)("div",Ye,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.section.fields,(function(t,n){return(0,r.wg)(),(0,r.iD)("div",Be,[(0,r._)("div",Re,[(0,r._)("span",$e,(0,r.zw)(t.label),1)]),(0,r._)("div",Qe,[(0,r.Wm)(he,{field:t,fieldKey:n,reactiveState:e.reactiveState},null,8,["field","fieldKey","reactiveState"])])])})),256))])])}}},Xe={__name:"HandleDesignOptions",props:{section:{type:Object,required:!0},sectionKey:{type:String,required:!0},reactiveState:{type:Object,required:!0},currentPage:{type:String,required:!0}},setup:function(t){var e=t;return function(n,o){return"render-jumbo-box"===t.section.type?((0,r.wg)(),(0,r.j4)(Je,{key:0,section:e.section,reactiveState:e.reactiveState},null,8,["section","reactiveState"])):((0,r.wg)(),(0,r.j4)(ke,{key:1,section:e.section,sectionKey:e.sectionKey,reactiveState:e.reactiveState,currentPage:e.currentPage},{default:(0,r.w5)((function(){return[(0,r.Wm)(Ht,{section:e.section},null,8,["section"])]})),_:1},8,["section","sectionKey","reactiveState","currentPage"]))}}};var tn={class:"adfy-container",id:"addonify-layout"},en={class:"adfy-columns main-content"},nn={class:"adfy-col start site-secondary"},rn={class:"adfy-col end site-primary"};const on={__name:"Styles",setup:function(t){var e=K();return(0,r.bv)((function(){e.haveStateInMemory||e.renderOptions()})),function(t,n){return(0,r.wg)(),(0,r.iD)("section",tn,[(0,r.Wm)(Ze),(0,r._)("main",en,[(0,r._)("aside",nn,[(0,r.Wm)(Lt)]),(0,r._)("section",rn,[(0,r.SU)(e).isLoading?((0,r.wg)(),(0,r.j4)(Ct,{key:0})):((0,r.wg)(),(0,r.j4)(jt,{key:1,divId:"adfy-style-options-form"},{default:(0,r.w5)((function(){return[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)((0,r.SU)(e).data.styles.sections,(function(t,n){return(0,r.wg)(),(0,r.j4)(Ve,{sectionKey:n,currentPage:"design"},{default:(0,r.w5)((function(){return[(0,r.Wm)(Xe,{section:t,sectionKey:n,reactiveState:(0,r.SU)(e).options,currentPage:"design"},null,8,["section","sectionKey","reactiveState"])]})),_:2},1032,["sectionKey"])})),256))]})),_:1}))])])])}}};var an=n(340);n(6754);function cn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ln(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?cn(Object(n),!0).forEach((function(e){un(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):cn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function un(t,e,n){var r;return r=function(t,e){if("object"!=pn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=pn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==pn(r)?r:r+"")in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function sn(){sn=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var a=e&&e.prototype instanceof g?e:g,i=Object.create(a.prototype),c=new O(r||[]);return o(i,"_invoke",{value:V(t,n,c)}),i}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var f="suspendedStart",p="suspendedYield",h="executing",y="completed",v={};function g(){}function m(){}function w(){}var C={};u(C,i,(function(){return this}));var b=Object.getPrototypeOf,_=b&&b(b(E([])));_&&_!==n&&r.call(_,i)&&(C=_);var S=w.prototype=g.prototype=Object.create(C);function k(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function n(o,a,i,c){var l=d(t[o],t,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==pn(s)&&r.call(s,"__await")?e.resolve(s.__await).then((function(t){n("next",t,i,c)}),(function(t){n("throw",t,i,c)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return n("throw",t,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function V(e,n,r){var o=f;return function(a,i){if(o===h)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var c=r.delegate;if(c){var l=L(c,r);if(l){if(l===v)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var u=d(e,n,r);if("normal"===u.type){if(o=r.done?y:p,u.arg===v)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=y,r.method="throw",r.arg=u.arg)}}}function L(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var a=d(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,v;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function U(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(U,this),this.reset(!0)}function E(e){if(e||""===e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(pn(e)+" is not iterable")}return m.prototype=w,o(S,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:m,configurable:!0}),m.displayName=u(w,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,u(t,l,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},k(x.prototype),u(x.prototype,c,(function(){return this})),e.AsyncIterator=x,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new x(s(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},k(S),u(S,l,"Generator"),u(S,i,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=E,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return c.type="throw",c.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,v):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:E(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}function dn(t,e,n,r,o,a,i){try{var c=t[a](i),l=c.value}catch(t){return void n(t)}c.done?e(l):Promise.resolve(l).then(r,o)}function fn(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function i(t){dn(a,r,o,i,c,"next",t)}function c(t){dn(a,r,o,i,c,"throw",t)}i(void 0)}))}}function pn(t){return pn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pn(t)}var hn=wp.apiFetch,yn=wp.i18n.__,vn=(0,o.Q_)({id:"Product",state:function(){return{allAddons:{},allProductSlugStatus:{},hotAddons:{},generalAddons:{},installedAddons:[],isFetching:!0,isFetchingAllInstalledAddons:!0,isSettingAddonStatus:!0}},getters:{hasAddonsStateInMemory:function(t){return"object"===pn(t.allAddons)?Object.keys(t.allAddons).length>0:"array"==typeof t.allAddons&&t.allAddons.length>0}},actions:{getRecommdedProductsList:function(){var t=this;return fn(sn().mark((function e(){var n,r;return sn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t.isFetching=!0,e.next=4,fetch("https://raw.githubusercontent.com/addonify/recommended-products/main/products.json");case 4:return n=e.sent,e.next=7,n.json();case 7:if(r=e.sent,200===n.status){e.next=11;break}return console.log(r),e.abrupt("return");case 11:return t.processRecommendedPluginsList(r),t.isFetching=!1,e.abrupt("return",n);case 16:return e.prev=16,e.t0=e.catch(0),console.error(e.t0),t.isFetching=!1,e.abrupt("return",e.t0);case 21:case"end":return e.stop()}}),e,null,[[0,16]])})))()},processRecommendedPluginsList:function(t){var e=this;if(console.log("[Info] Processing the list that was retrived...."),this.hotAddons=t.data.hot,this.generalAddons=t.data.general,this.allAddons=ln(ln({},this.hotAddons),this.generalAddons),"object"!==pn(this.allAddons))return console.log("[Error] Couldn't process the list plugins list!");Object.keys(this.allAddons).forEach((function(t){e.allProductSlugStatus[t]="null"}))},fetchInstalledAddons:function(){var t=this;return fn(sn().mark((function e(){var n;return sn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("[Info] Getting the list of all plugins installed on the site...."),e.prev=1,e.next=4,hn({path:"/wp/v2/plugins",method:"GET",cache:"no-cache"});case 4:n=e.sent,console.log("[Info] Received the list of all installed plugins...."),t.installedAddons=n,t.setAddonStatusFlag(Object.keys(t.allProductSlugStatus)),t.isFetchingAllInstalledAddons=!1,e.next=16;break;case 11:return e.prev=11,e.t0=e.catch(1),console.log(e.t0),t.isFetchingAllInstalledAddons=!1,e.abrupt("return");case 16:case"end":return e.stop()}}),e,null,[[1,11]])})))()},setAddonStatusFlag:function(t){var e=this;"object"===pn(this.installedAddons)&&this.installedAddons.length>0?(console.log("=> Setting the status of the addon."),t.forEach((function(t){var n=e.installedAddons.find((function(e){return e.textdomain===t}));e.allProductSlugStatus[t]=n?n.status:"not-installed"}))):console.log("[Warning] Bailing!!! The installed addons list is empty."),console.log("[Info] Done setting the status of the addon."),this.isSettingAddonStatus=!1},handleAddonInstallation:function(t){var e=this;return fn(sn().mark((function n(){var r;return sn().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,console.log("[Info] Trying to install plugin ".concat(t,"...")),n.next=4,hn({method:"POST",path:"/wp/v2/plugins",data:{slug:t,status:"active"},cache:"no-cache"});case 4:if("active"!==(r=n.sent).status){n.next=12;break}return console.log("[Info] Plugin ".concat(t," installed successfully.")),E.z8.success({message:yn("Plugin installed successfully.","addonify-floating-cart"),offset:50,duration:5e3}),e.allProductSlugStatus[t]="active",n.next=11,r;case 11:case 21:return n.abrupt("return",n.sent);case 12:n.next=22;break;case 14:return n.prev=14,n.t0=n.catch(0),console.error(n.t0),E.z8.error({message:yn("Error: couldn't install plugin.","addonify-floating-cart"),offset:50,duration:2e4}),e.isWaitingForInstallation=!1,n.next=21,n.t0;case 22:case"end":return n.stop()}}),n,null,[[0,14]])})))()},updateAddonStatus:function(t){var e=this;return fn(sn().mark((function n(){var r;return sn().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,console.log("[Info] Trying to set the status of plugin ".concat(t,"...")),n.next=4,hn({method:"POST",path:"/wp/v2/plugins/".concat(t),data:{status:"active",plugin:"".concat(t,"/").concat(t)},cache:"no-cache"});case 4:if("active"!=(r=n.sent).status){n.next=12;break}return console.log("[Info] Plugin ".concat(t," activated successfully.")),E.z8.success({message:yn("Plugin activated successfully.","addonify-floating-cart"),offset:50,duration:5e3}),e.allProductSlugStatus[t]="active",n.next=11,r;case 11:case 20:return n.abrupt("return",n.sent);case 12:n.next=21;break;case 14:return n.prev=14,n.t0=n.catch(0),console.log(n.t0),E.z8.error({message:yn("Error: Couldn't activate the plugin.","addonify-floating-cart"),offset:50,duration:2e4}),n.next=20,n.t0;case 21:case"end":return n.stop()}}),n,null,[[0,14]])})))()}}});function gn(t){return gn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gn(t)}function mn(){mn=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var a=e&&e.prototype instanceof g?e:g,i=Object.create(a.prototype),c=new O(r||[]);return o(i,"_invoke",{value:V(t,n,c)}),i}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var f="suspendedStart",p="suspendedYield",h="executing",y="completed",v={};function g(){}function m(){}function w(){}var C={};u(C,i,(function(){return this}));var b=Object.getPrototypeOf,_=b&&b(b(E([])));_&&_!==n&&r.call(_,i)&&(C=_);var S=w.prototype=g.prototype=Object.create(C);function k(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function n(o,a,i,c){var l=d(t[o],t,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==gn(s)&&r.call(s,"__await")?e.resolve(s.__await).then((function(t){n("next",t,i,c)}),(function(t){n("throw",t,i,c)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return n("throw",t,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function V(e,n,r){var o=f;return function(a,i){if(o===h)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var c=r.delegate;if(c){var l=L(c,r);if(l){if(l===v)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var u=d(e,n,r);if("normal"===u.type){if(o=r.done?y:p,u.arg===v)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=y,r.method="throw",r.arg=u.arg)}}}function L(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var a=d(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,v;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function U(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(U,this),this.reset(!0)}function E(e){if(e||""===e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(gn(e)+" is not iterable")}return m.prototype=w,o(S,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:m,configurable:!0}),m.displayName=u(w,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,u(t,l,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},k(x.prototype),u(x.prototype,c,(function(){return this})),e.AsyncIterator=x,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new x(s(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},k(S),u(S,l,"Generator"),u(S,i,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=E,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return c.type="throw",c.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,v):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:E(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}function wn(t,e,n,r,o,a,i){try{var c=t[a](i),l=c.value}catch(t){return void n(t)}c.done?e(l):Promise.resolve(l).then(r,o)}var Cn={class:"adfy-product-card"},bn={class:"adfy-category"},_n={class:"adfy-product-box"},Sn={class:"adfy-product-thumb"},kn=["src","alt"],xn={class:"content"},Vn=["innerHTML"],Ln=["innerHTML"],Un={class:"adfy-product-actions"};const jn={__name:"Recommended",props:{slug:{type:String,required:!1},name:{type:String,required:!1},description:{type:String,required:!1},thumb:{type:String,required:!1},category:{type:String,required:!1},status:{type:String,required:!1}},setup:function(t){var e=t,n=wp.i18n.__,o=vn(),a=e.slug,i=e.name,c=e.thumb,l=e.description,u=e.category,s=(0,r.iH)(!1),d=(0,r.iH)(!1),f=(0,r.iH)(!1),p=(0,r.iH)(!1),h=n("Activate now","addonify-floating-cart"),y=n("Activating...","addonify-floating-cart"),v=n("Install now","addonify-floating-cart"),g=n("Installing...","addonify-floating-cart"),m=n("Installed","addonify-floating-cart"),w=function(){var t,e=(t=mn().mark((function t(e){return mn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return s.value=!0,p.value=!0,t.prev=2,t.next=5,o.handleAddonInstallation(e);case 5:"active"==t.sent.status&&(s.value=!1,p.value=!1,d.value=!0),t.next=14;break;case 9:t.prev=9,t.t0=t.catch(2),s.value=!1,p.value=!1,d.value=!1;case 14:case"end":return t.stop()}}),t,null,[[2,9]])})),function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function i(t){wn(a,r,o,i,c,"next",t)}function c(t){wn(a,r,o,i,c,"throw",t)}i(void 0)}))});return function(t){return e.apply(this,arguments)}}();return function(t,n){return(0,r.wg)(),(0,r.iD)("div",Cn,[(0,r._)("span",bn,(0,r.zw)((0,r.SU)(u)),1),(0,r._)("div",_n,[(0,r._)("figure",Sn,[(0,r._)("img",{src:(0,r.SU)(c),alt:(0,r.SU)(a)},null,8,kn)]),(0,r._)("div",xn,[(0,r._)("h3",{class:"adfy-product-title",innerHTML:(0,r.SU)(i)},null,8,Vn),(0,r._)("p",{class:"adfy-product-description",innerHTML:(0,r.SU)(l)},null,8,Ln),(0,r._)("div",Un,["active"==e.status||"network-active"==e.status?((0,r.wg)(),(0,r.j4)((0,r.SU)(an.mi),{key:0,size:"large",id:(0,r.SU)(a),plain:"",disabled:""},{default:(0,r.w5)((function(){return[(0,r.Uk)((0,r.zw)((0,r.SU)(m)),1)]})),_:1},8,["id"])):"inactive"==e.status?((0,r.wg)(),(0,r.j4)((0,r.SU)(an.mi),{key:1,type:"success",size:"large",id:(0,r.SU)(a),plain:"",loading:s.value,disabled:d.value,onClick:n[0]||(n[0]=function(t){return function(t){s.value=!0,f.value=!0;try{"active"==o.updateAddonStatus(t).status&&(s.value=!1,f.value=!1,d.value=!0)}catch(t){s.value=!1,f.value=!1,d.value=!1}}((0,r.SU)(a))})},{default:(0,r.w5)((function(){return[(0,r.Uk)((0,r.zw)(f.value?(0,r.SU)(y):(0,r.SU)(h)),1)]})),_:1},8,["id","loading","disabled"])):((0,r.wg)(),(0,r.j4)((0,r.SU)(an.mi),{key:2,type:"primary",size:"large",id:(0,r.SU)(a),plain:"",loading:s.value,disabled:d.value,onClick:n[1]||(n[1]=function(t){return w((0,r.SU)(a))})},{default:(0,r.w5)((function(){return[(0,r.Uk)((0,r.zw)(p.value?(0,r.SU)(g):(0,r.SU)(v)),1)]})),_:1},8,["id","loading","disabled"]))])])])])}}};var On=n(4659),En={insert:"head",singleton:!1};Kt()(On.Z,En);On.Z.locals;const Hn=jn;var Mn={class:"adfy-container",id:"addonify-layout"},Pn={class:"adfy-columns main-content"},Zn={class:"adfy-col start aside secondary"},zn={class:"adfy-col end site-primary"},qn={key:1,id:"recommended-products"},An={id:"recommended-hot-products"},Dn={class:"adfy-grid"},Fn=(0,r._)("div",{id:"recommended-general-products"},null,-1);var Nn={class:"error-404"};const In={__name:"404",setup:function(t){var e=wp.i18n.__;return function(t,n){var o=(0,r.up)("router-link");return(0,r.wg)(),(0,r.iD)("div",Nn,[(0,r._)("h3",null,(0,r.zw)((0,r.SU)(e)("404","addonify-floating-cart")),1),(0,r._)("p",null,(0,r.zw)((0,r.SU)(e)("Oops, page not found!","addonify-floating-cart")),1),(0,r.Wm)(o,{to:"/",class:"adfy-button"},{default:(0,r.w5)((function(){return[(0,r.Uk)((0,r.zw)((0,r.SU)(e)("Go Back","addonify-floating-cart")),1)]})),_:1})])}}};var Kn=[{path:"/",name:"Settings",component:Fe},{path:"/styles",name:"Styles",component:on},{path:"/products",name:"Products",component:{__name:"Products",setup:function(t){var e=vn();return(0,r.bv)((function(){e.hasAddonsStateInMemory||e.getRecommdedProductsList().then((function(t){200===t.status&&e.fetchInstalledAddons()}))})),function(t,n){return(0,r.wg)(),(0,r.iD)("section",Mn,[(0,r.Wm)(Ze),(0,r._)("main",Pn,[(0,r._)("aside",Zn,[(0,r.Wm)(Lt)]),(0,r._)("section",zn,[!0===(0,r.SU)(e).isFetching||!0===(0,r.SU)(e).isFetchingAllInstalledAddons||!0===(0,r.SU)(e).isSettingAddonStatus?((0,r.wg)(),(0,r.j4)(Ct,{key:0})):((0,r.wg)(),(0,r.iD)("section",qn,[(0,r._)("div",An,[(0,r._)("div",Dn,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)((0,r.SU)(e).hotAddons,(function(t,n){return(0,r.wg)(),(0,r.j4)(Hn,{slug:n,name:t.name,description:t.description,thumb:t.thumbnail,category:t.category,status:(0,r.SU)(e).allProductSlugStatus[n]},null,8,["slug","name","description","thumb","category","status"])})),256))])]),Fn]))])])])}}}},{path:"/:catchAll(.*)*",name:"404",component:In}];const Tn=(0,vt.p7)({history:(0,vt.r5)(),routes:Kn});var Wn=(0,o.WB)(),Gn=(0,r.ri)(yt);Gn.use(Wn),Gn.use(Tn),Gn.mount("#___adfy-floatingcart-app___")}},t=>{var e=e=>t(t.s=e);t.O(0,[703,898],(()=>(e(2248),e(6378))));t.O()}]);
     2"use strict";(self.webpackChunkaddonify_floating_cart=self.webpackChunkaddonify_floating_cart||[]).push([[522],{4012:(t,e,n)=>{n.d(e,{Z:()=>a});var r=n(7890),o=n.n(r)()((function(t){return t[1]}));o.push([t.id,'.unsupported-control-text{font-size:14px}.adfy-button.fake-button.forward-to-doc-link{fill:var(--addonify_primary_color);color:var(--addonify_primary_color);font-size:14px}.adfy-button.fake-button.forward-to-doc-link:after,.adfy-button.fake-button.forward-to-doc-link:before{bottom:-5px;content:"";height:2px}.adfy-button.fake-button.forward-to-doc-link:after{background-color:var(--addonify_primary_color);content:""}.adfy-button.fake-button.forward-to-doc-link:hover{fill:var(--addonify_base_text_color);color:var(--addonify_base_text_color)}.adfy-button.fake-button.forward-to-doc-link:hover:after,.adfy-button.fake-button.forward-to-doc-link:hover:before{background-color:var(--addonify_base_text_color);content:""}',""]);const a=o},7797:(t,e,n)=>{n.d(e,{Z:()=>a});var r=n(7890),o=n.n(r)()((function(t){return t[1]}));o.push([t.id,".adfy-options .el-textarea__inner{display:block;font-family:monospace;min-height:200px;padding:15px;width:100%}",""]);const a=o},4659:(t,e,n)=>{n.d(e,{Z:()=>a});var r=n(7890),o=n.n(r)()((function(t){return t[1]}));o.push([t.id,"#recommended-hot-products .el-skeleton.is-animated .el-skeleton__item{background:linear-gradient(90deg,#e1e1e1 25%,#d8d8d8 37%,#c7c7c7 63%);background-size:400% 100%}",""]);const a=o},6378:()=>{},2248:(t,e,n)=>{var r=n(6183),o=n(3642),a={width:"170",height:"44",viewBox:"0 0 170 44",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i=[(0,r.uE)('<path d="M55.512 23.64V33H54.888V23.64H55.512ZM60.228 30.24C60.228 30.832 60.108 31.344 59.868 31.776C59.636 32.208 59.316 32.54 58.908 32.772C58.508 33.004 58.06 33.12 57.564 33.12C57.1 33.12 56.692 32.996 56.34 32.748C55.988 32.492 55.712 32.148 55.512 31.716C55.32 31.276 55.224 30.784 55.224 30.24C55.224 29.688 55.32 29.196 55.512 28.764C55.712 28.332 55.988 27.992 56.34 27.744C56.692 27.488 57.1 27.36 57.564 27.36C58.06 27.36 58.508 27.476 58.908 27.708C59.316 27.94 59.636 28.272 59.868 28.704C60.108 29.128 60.228 29.64 60.228 30.24ZM59.604 30.24C59.604 29.76 59.508 29.348 59.316 29.004C59.124 28.66 58.868 28.4 58.548 28.224C58.228 28.04 57.872 27.948 57.48 27.948C57.144 27.948 56.824 28.048 56.52 28.248C56.216 28.448 55.972 28.72 55.788 29.064C55.604 29.408 55.512 29.8 55.512 30.24C55.512 30.68 55.604 31.072 55.788 31.416C55.972 31.76 56.216 32.032 56.52 32.232C56.824 32.432 57.144 32.532 57.48 32.532C57.872 32.532 58.228 32.444 58.548 32.268C58.868 32.084 59.124 31.82 59.316 31.476C59.508 31.132 59.604 30.72 59.604 30.24ZM65.6756 27.48L62.0756 35.64H61.3796L62.7956 32.436L60.5636 27.48H61.3076L63.3116 32.184L63.0236 32.16L64.9796 27.48H65.6756ZM70.3604 31.344C70.3604 31.616 70.4204 31.844 70.5404 32.028C70.6684 32.212 70.8364 32.352 71.0444 32.448C71.2604 32.536 71.4964 32.58 71.7524 32.58C72.0644 32.58 72.3484 32.508 72.6044 32.364C72.8684 32.22 73.0804 32.008 73.2404 31.728C73.4004 31.448 73.4804 31.104 73.4804 30.696L73.6244 31.224C73.6244 31.656 73.5204 32.012 73.3124 32.292C73.1044 32.572 72.8444 32.78 72.5324 32.916C72.2204 33.052 71.9044 33.12 71.5844 33.12C71.2724 33.12 70.9724 33.056 70.6844 32.928C70.3964 32.792 70.1644 32.596 69.9884 32.34C69.8124 32.084 69.7244 31.76 69.7244 31.368C69.7244 30.832 69.9084 30.408 70.2764 30.096C70.6524 29.784 71.1604 29.628 71.8004 29.628C72.1604 29.628 72.4684 29.672 72.7244 29.76C72.9884 29.84 73.2044 29.932 73.3724 30.036C73.5404 30.14 73.6604 30.228 73.7324 30.3V30.696C73.4604 30.504 73.1684 30.364 72.8564 30.276C72.5524 30.18 72.2324 30.132 71.8964 30.132C71.5844 30.132 71.3124 30.176 71.0804 30.264C70.8564 30.352 70.6804 30.484 70.5524 30.66C70.4244 30.836 70.3604 31.064 70.3604 31.344ZM70.3844 28.488L70.0724 28.02C70.2804 27.876 70.5484 27.732 70.8764 27.588C71.2124 27.436 71.6244 27.36 72.1124 27.36C72.5284 27.36 72.8844 27.428 73.1804 27.564C73.4764 27.7 73.7044 27.896 73.8644 28.152C74.0244 28.408 74.1044 28.72 74.1044 29.088V33H73.4804V29.172C73.4804 29.012 73.4564 28.86 73.4084 28.716C73.3604 28.564 73.2804 28.428 73.1684 28.308C73.0644 28.188 72.9204 28.092 72.7364 28.02C72.5524 27.948 72.3284 27.912 72.0644 27.912C71.7924 27.912 71.5484 27.944 71.3324 28.008C71.1164 28.072 70.9284 28.148 70.7684 28.236C70.6164 28.324 70.4884 28.408 70.3844 28.488ZM80.0551 23.64H80.6791V33H80.0551V23.64ZM75.3391 30.24C75.3391 29.64 75.4591 29.128 75.6991 28.704C75.9391 28.272 76.2591 27.94 76.6591 27.708C77.0671 27.476 77.5151 27.36 78.0031 27.36C78.4831 27.36 78.8951 27.488 79.2391 27.744C79.5831 27.992 79.8511 28.332 80.0431 28.764C80.2431 29.196 80.3431 29.688 80.3431 30.24C80.3431 30.784 80.2431 31.276 80.0431 31.716C79.8511 32.148 79.5831 32.492 79.2391 32.748C78.8951 32.996 78.4831 33.12 78.0031 33.12C77.5151 33.12 77.0671 33.004 76.6591 32.772C76.2591 32.54 75.9391 32.208 75.6991 31.776C75.4591 31.344 75.3391 30.832 75.3391 30.24ZM75.9751 30.24C75.9751 30.72 76.0671 31.132 76.2511 31.476C76.4431 31.82 76.6991 32.084 77.0191 32.268C77.3471 32.444 77.7031 32.532 78.0871 32.532C78.4311 32.532 78.7511 32.432 79.0471 32.232C79.3511 32.032 79.5951 31.76 79.7791 31.416C79.9631 31.072 80.0551 30.68 80.0551 30.24C80.0551 29.8 79.9631 29.408 79.7791 29.064C79.5951 28.72 79.3511 28.448 79.0471 28.248C78.7511 28.048 78.4311 27.948 78.0871 27.948C77.7031 27.948 77.3471 28.04 77.0191 28.224C76.6991 28.4 76.4431 28.66 76.2511 29.004C76.0671 29.348 75.9751 29.76 75.9751 30.24ZM86.7465 23.64H87.3705V33H86.7465V23.64ZM82.0305 30.24C82.0305 29.64 82.1505 29.128 82.3905 28.704C82.6305 28.272 82.9505 27.94 83.3505 27.708C83.7585 27.476 84.2065 27.36 84.6945 27.36C85.1745 27.36 85.5865 27.488 85.9305 27.744C86.2745 27.992 86.5425 28.332 86.7345 28.764C86.9345 29.196 87.0345 29.688 87.0345 30.24C87.0345 30.784 86.9345 31.276 86.7345 31.716C86.5425 32.148 86.2745 32.492 85.9305 32.748C85.5865 32.996 85.1745 33.12 84.6945 33.12C84.2065 33.12 83.7585 33.004 83.3505 32.772C82.9505 32.54 82.6305 32.208 82.3905 31.776C82.1505 31.344 82.0305 30.832 82.0305 30.24ZM82.6665 30.24C82.6665 30.72 82.7585 31.132 82.9425 31.476C83.1345 31.82 83.3905 32.084 83.7105 32.268C84.0385 32.444 84.3945 32.532 84.7785 32.532C85.1225 32.532 85.4425 32.432 85.7385 32.232C86.0425 32.032 86.2865 31.76 86.4705 31.416C86.6545 31.072 86.7465 30.68 86.7465 30.24C86.7465 29.8 86.6545 29.408 86.4705 29.064C86.2865 28.72 86.0425 28.448 85.7385 28.248C85.4425 28.048 85.1225 27.948 84.7785 27.948C84.3945 27.948 84.0385 28.04 83.7105 28.224C83.3905 28.4 83.1345 28.66 82.9425 29.004C82.7585 29.348 82.6665 29.76 82.6665 30.24ZM88.7219 30.24C88.7219 29.68 88.8459 29.184 89.0939 28.752C89.3419 28.32 89.6779 27.98 90.1019 27.732C90.5339 27.484 91.0179 27.36 91.5539 27.36C92.0899 27.36 92.5699 27.484 92.9939 27.732C93.4259 27.98 93.7659 28.32 94.0139 28.752C94.2619 29.184 94.3859 29.68 94.3859 30.24C94.3859 30.792 94.2619 31.288 94.0139 31.728C93.7659 32.16 93.4259 32.5 92.9939 32.748C92.5699 32.996 92.0899 33.12 91.5539 33.12C91.0179 33.12 90.5339 32.996 90.1019 32.748C89.6779 32.5 89.3419 32.16 89.0939 31.728C88.8459 31.288 88.7219 30.792 88.7219 30.24ZM89.3579 30.24C89.3579 30.688 89.4539 31.084 89.6459 31.428C89.8379 31.772 90.0979 32.044 90.4259 32.244C90.7619 32.436 91.1379 32.532 91.5539 32.532C91.9699 32.532 92.3419 32.436 92.6699 32.244C93.0059 32.044 93.2699 31.772 93.4619 31.428C93.6539 31.084 93.7499 30.688 93.7499 30.24C93.7499 29.8 93.6539 29.408 93.4619 29.064C93.2699 28.712 93.0059 28.44 92.6699 28.248C92.3419 28.048 91.9699 27.948 91.5539 27.948C91.1379 27.948 90.7619 28.048 90.4259 28.248C90.0979 28.44 89.8379 28.708 89.6459 29.052C89.4539 29.396 89.3579 29.792 89.3579 30.24ZM99.3396 29.448C99.3396 28.976 99.2356 28.608 99.0276 28.344C98.8196 28.08 98.4916 27.948 98.0436 27.948C97.7316 27.948 97.4516 28.024 97.2036 28.176C96.9636 28.32 96.7716 28.52 96.6276 28.776C96.4916 29.032 96.4236 29.32 96.4236 29.64V33H95.7996V27.48H96.4236V28.632C96.5756 28.232 96.8036 27.92 97.1076 27.696C97.4196 27.472 97.7796 27.36 98.1876 27.36C98.7636 27.36 99.2036 27.544 99.5076 27.912C99.8116 28.272 99.9636 28.76 99.9636 29.376V33H99.3396V29.448ZM101.858 24.984C101.858 24.856 101.902 24.752 101.99 24.672C102.078 24.584 102.182 24.54 102.302 24.54C102.43 24.54 102.534 24.584 102.614 24.672C102.702 24.752 102.746 24.856 102.746 24.984C102.746 25.104 102.702 25.208 102.614 25.296C102.534 25.384 102.43 25.428 102.302 25.428C102.182 25.428 102.078 25.384 101.99 25.296C101.902 25.208 101.858 25.104 101.858 24.984ZM101.99 27.48H102.614V33H101.99V27.48ZM104.227 27.48H106.819V28.068H104.227V27.48ZM106.939 24.552C106.851 24.424 106.743 24.328 106.615 24.264C106.487 24.192 106.351 24.156 106.207 24.156C106.007 24.156 105.847 24.208 105.727 24.312C105.615 24.416 105.531 24.564 105.475 24.756C105.419 24.948 105.391 25.168 105.391 25.416V33H104.767V25.344C104.767 24.968 104.819 24.648 104.923 24.384C105.035 24.112 105.199 23.904 105.415 23.76C105.631 23.608 105.907 23.532 106.243 23.532C106.419 23.532 106.571 23.56 106.699 23.616C106.835 23.664 106.951 23.728 107.047 23.808C107.151 23.888 107.231 23.968 107.287 24.048L106.939 24.552ZM112.258 27.48L108.658 35.64H107.962L109.378 32.436L107.146 27.48H107.89L109.894 32.184L109.606 32.16L111.562 27.48H112.258ZM112.846 32.712C112.846 32.584 112.89 32.476 112.978 32.388C113.066 32.3 113.17 32.256 113.29 32.256C113.418 32.256 113.522 32.3 113.602 32.388C113.69 32.476 113.734 32.584 113.734 32.712C113.734 32.832 113.69 32.936 113.602 33.024C113.522 33.112 113.418 33.156 113.29 33.156C113.17 33.156 113.066 33.112 112.978 33.024C112.89 32.936 112.846 32.832 112.846 32.712Z" fill="#313131"></path><path d="M53.26 19V6.04H60.703V7.363H54.583V11.863H59.623V13.177H54.583V19H53.26ZM63.4103 19V5.77H64.7333V19H63.4103ZM72.3905 19.27C71.4245 19.27 70.5995 19.051 69.9155 18.613C69.2315 18.175 68.7065 17.569 68.3405 16.795C67.9745 16.021 67.7915 15.133 67.7915 14.131C67.7915 13.111 67.9775 12.217 68.3495 11.449C68.7215 10.681 69.2495 10.084 69.9335 9.658C70.6235 9.226 71.4425 9.01 72.3905 9.01C73.3625 9.01 74.1905 9.229 74.8745 9.667C75.5645 10.099 76.0895 10.702 76.4495 11.476C76.8155 12.244 76.9985 13.129 76.9985 14.131C76.9985 15.151 76.8155 16.048 76.4495 16.822C76.0835 17.59 75.5555 18.19 74.8655 18.622C74.1755 19.054 73.3505 19.27 72.3905 19.27ZM72.3905 18.001C73.4705 18.001 74.2745 17.644 74.8025 16.93C75.3305 16.21 75.5945 15.277 75.5945 14.131C75.5945 12.955 75.3275 12.019 74.7935 11.323C74.2655 10.627 73.4645 10.279 72.3905 10.279C71.6645 10.279 71.0645 10.444 70.5905 10.774C70.1225 11.098 69.7715 11.551 69.5375 12.133C69.3095 12.709 69.1955 13.375 69.1955 14.131C69.1955 15.301 69.4655 16.24 70.0055 16.948C70.5455 17.65 71.3405 18.001 72.3905 18.001ZM82.6648 19.27C81.9328 19.27 81.3178 19.138 80.8198 18.874C80.3278 18.61 79.9588 18.259 79.7128 17.821C79.4668 17.383 79.3438 16.906 79.3438 16.39C79.3438 15.862 79.4488 15.412 79.6588 15.04C79.8748 14.662 80.1658 14.353 80.5318 14.113C80.9038 13.873 81.3328 13.69 81.8188 13.564C82.3108 13.444 82.8538 13.339 83.4478 13.249C84.0478 13.153 84.6328 13.072 85.2028 13.006C85.7788 12.934 86.2828 12.865 86.7148 12.799L86.2468 13.087C86.2648 12.127 86.0788 11.416 85.6888 10.954C85.2988 10.492 84.6208 10.261 83.6548 10.261C82.9888 10.261 82.4248 10.411 81.9628 10.711C81.5068 11.011 81.1858 11.485 80.9998 12.133L79.7128 11.755C79.9348 10.885 80.3818 10.21 81.0538 9.73C81.7258 9.25 82.5988 9.01 83.6728 9.01C84.5608 9.01 85.3138 9.178 85.9318 9.514C86.5558 9.844 86.9968 10.324 87.2548 10.954C87.3748 11.236 87.4528 11.551 87.4888 11.899C87.5248 12.247 87.5428 12.601 87.5428 12.961V19H86.3638V16.561L86.7058 16.705C86.3758 17.539 85.8628 18.175 85.1668 18.613C84.4708 19.051 83.6368 19.27 82.6648 19.27ZM82.8178 18.127C83.4358 18.127 83.9758 18.016 84.4378 17.794C84.8998 17.572 85.2718 17.269 85.5538 16.885C85.8358 16.495 86.0188 16.057 86.1028 15.571C86.1748 15.259 86.2138 14.917 86.2198 14.545C86.2258 14.167 86.2288 13.885 86.2288 13.699L86.7328 13.96C86.2828 14.02 85.7938 14.08 85.2658 14.14C84.7438 14.2 84.2278 14.269 83.7178 14.347C83.2138 14.425 82.7578 14.518 82.3498 14.626C82.0738 14.704 81.8068 14.815 81.5488 14.959C81.2908 15.097 81.0778 15.283 80.9098 15.517C80.7478 15.751 80.6668 16.042 80.6668 16.39C80.6668 16.672 80.7358 16.945 80.8738 17.209C81.0178 17.473 81.2458 17.692 81.5578 17.866C81.8758 18.04 82.2958 18.127 82.8178 18.127ZM96.0778 19C95.5318 19.114 94.9918 19.159 94.4578 19.135C93.9298 19.111 93.4558 18.997 93.0358 18.793C92.6218 18.589 92.3068 18.271 92.0908 17.839C91.9168 17.479 91.8208 17.116 91.8028 16.75C91.7908 16.378 91.7848 15.955 91.7848 15.481V6.58H93.0988V15.427C93.0988 15.835 93.1018 16.177 93.1078 16.453C93.1198 16.723 93.1828 16.963 93.2968 17.173C93.5128 17.575 93.8548 17.815 94.3228 17.893C94.7968 17.971 95.3818 17.953 96.0778 17.839V19ZM89.7058 10.414V9.28H96.0778V10.414H89.7058ZM99.0728 7.435V5.95H100.396V7.435H99.0728ZM99.0728 19V9.28H100.396V19H99.0728ZM111.014 19V14.041C111.014 13.501 110.963 13.006 110.861 12.556C110.759 12.1 110.594 11.704 110.366 11.368C110.144 11.026 109.853 10.762 109.493 10.576C109.139 10.39 108.707 10.297 108.197 10.297C107.729 10.297 107.315 10.378 106.955 10.54C106.601 10.702 106.301 10.936 106.055 11.242C105.815 11.542 105.632 11.908 105.506 12.34C105.38 12.772 105.317 13.264 105.317 13.816L104.381 13.609C104.381 12.613 104.555 11.776 104.903 11.098C105.251 10.42 105.731 9.907 106.343 9.559C106.955 9.211 107.657 9.037 108.449 9.037C109.031 9.037 109.538 9.127 109.97 9.307C110.408 9.487 110.777 9.73 111.077 10.036C111.383 10.342 111.629 10.693 111.815 11.089C112.001 11.479 112.136 11.896 112.22 12.34C112.304 12.778 112.346 13.216 112.346 13.654V19H111.014ZM103.985 19V9.28H105.182V11.674H105.317V19H103.985ZM119.442 23.59C118.944 23.59 118.452 23.515 117.966 23.365C117.486 23.221 117.042 22.99 116.634 22.672C116.226 22.36 115.884 21.952 115.608 21.448L116.805 20.782C117.075 21.322 117.453 21.709 117.939 21.943C118.431 22.183 118.932 22.303 119.442 22.303C120.144 22.303 120.711 22.171 121.143 21.907C121.581 21.649 121.899 21.265 122.097 20.755C122.295 20.245 122.391 19.609 122.385 18.847V16.255H122.538V9.28H123.717V18.865C123.717 19.141 123.708 19.405 123.69 19.657C123.678 19.915 123.651 20.167 123.609 20.413C123.495 21.139 123.258 21.736 122.898 22.204C122.544 22.672 122.076 23.02 121.494 23.248C120.918 23.476 120.234 23.59 119.442 23.59ZM119.352 19.27C118.446 19.27 117.672 19.045 117.03 18.595C116.388 18.139 115.896 17.524 115.554 16.75C115.212 15.976 115.041 15.103 115.041 14.131C115.041 13.165 115.209 12.295 115.545 11.521C115.887 10.747 116.376 10.135 117.012 9.685C117.648 9.235 118.41 9.01 119.298 9.01C120.21 9.01 120.978 9.232 121.602 9.676C122.226 10.12 122.697 10.729 123.015 11.503C123.339 12.271 123.501 13.147 123.501 14.131C123.501 15.097 123.342 15.97 123.024 16.75C122.706 17.524 122.238 18.139 121.62 18.595C121.002 19.045 120.246 19.27 119.352 19.27ZM119.487 18.037C120.177 18.037 120.747 17.869 121.197 17.533C121.647 17.197 121.983 16.735 122.205 16.147C122.427 15.553 122.538 14.881 122.538 14.131C122.538 13.369 122.427 12.697 122.205 12.115C121.983 11.527 121.647 11.068 121.197 10.738C120.753 10.408 120.192 10.243 119.514 10.243C118.818 10.243 118.242 10.414 117.786 10.756C117.33 11.098 116.991 11.563 116.769 12.151C116.553 12.739 116.445 13.399 116.445 14.131C116.445 14.869 116.556 15.535 116.778 16.129C117.006 16.717 117.345 17.182 117.795 17.524C118.245 17.866 118.809 18.037 119.487 18.037ZM136.884 19.27C135.594 19.27 134.505 18.985 133.617 18.415C132.729 17.839 132.057 17.044 131.601 16.03C131.145 15.016 130.917 13.846 130.917 12.52C130.917 11.194 131.145 10.024 131.601 9.01C132.057 7.996 132.729 7.204 133.617 6.634C134.505 6.058 135.594 5.77 136.884 5.77C138.39 5.77 139.62 6.157 140.574 6.931C141.528 7.699 142.182 8.731 142.536 10.027L141.186 10.378C140.91 9.352 140.415 8.539 139.701 7.939C138.987 7.339 138.048 7.039 136.884 7.039C135.87 7.039 135.027 7.27 134.355 7.732C133.683 8.194 133.176 8.839 132.834 9.667C132.498 10.489 132.324 11.44 132.312 12.52C132.306 13.6 132.471 14.551 132.807 15.373C133.149 16.195 133.659 16.84 134.337 17.308C135.021 17.77 135.87 18.001 136.884 18.001C138.048 18.001 138.987 17.701 139.701 17.101C140.415 16.495 140.91 15.682 141.186 14.662L142.536 15.013C142.182 16.309 141.528 17.344 140.574 18.118C139.62 18.886 138.39 19.27 136.884 19.27ZM148.203 19.27C147.471 19.27 146.856 19.138 146.358 18.874C145.866 18.61 145.497 18.259 145.251 17.821C145.005 17.383 144.882 16.906 144.882 16.39C144.882 15.862 144.987 15.412 145.197 15.04C145.413 14.662 145.704 14.353 146.07 14.113C146.442 13.873 146.871 13.69 147.357 13.564C147.849 13.444 148.392 13.339 148.986 13.249C149.586 13.153 150.171 13.072 150.741 13.006C151.317 12.934 151.821 12.865 152.253 12.799L151.785 13.087C151.803 12.127 151.617 11.416 151.227 10.954C150.837 10.492 150.159 10.261 149.193 10.261C148.527 10.261 147.963 10.411 147.501 10.711C147.045 11.011 146.724 11.485 146.538 12.133L145.251 11.755C145.473 10.885 145.92 10.21 146.592 9.73C147.264 9.25 148.137 9.01 149.211 9.01C150.099 9.01 150.852 9.178 151.47 9.514C152.094 9.844 152.535 10.324 152.793 10.954C152.913 11.236 152.991 11.551 153.027 11.899C153.063 12.247 153.081 12.601 153.081 12.961V19H151.902V16.561L152.244 16.705C151.914 17.539 151.401 18.175 150.705 18.613C150.009 19.051 149.175 19.27 148.203 19.27ZM148.356 18.127C148.974 18.127 149.514 18.016 149.976 17.794C150.438 17.572 150.81 17.269 151.092 16.885C151.374 16.495 151.557 16.057 151.641 15.571C151.713 15.259 151.752 14.917 151.758 14.545C151.764 14.167 151.767 13.885 151.767 13.699L152.271 13.96C151.821 14.02 151.332 14.08 150.804 14.14C150.282 14.2 149.766 14.269 149.256 14.347C148.752 14.425 148.296 14.518 147.888 14.626C147.612 14.704 147.345 14.815 147.087 14.959C146.829 15.097 146.616 15.283 146.448 15.517C146.286 15.751 146.205 16.042 146.205 16.39C146.205 16.672 146.274 16.945 146.412 17.209C146.556 17.473 146.784 17.692 147.096 17.866C147.414 18.04 147.834 18.127 148.356 18.127ZM156.324 19V9.28H157.512V11.62L157.278 11.314C157.386 11.026 157.527 10.762 157.701 10.522C157.875 10.276 158.064 10.075 158.268 9.919C158.52 9.697 158.814 9.529 159.15 9.415C159.486 9.295 159.825 9.226 160.167 9.208C160.509 9.184 160.821 9.208 161.103 9.28V10.522C160.749 10.432 160.362 10.411 159.942 10.459C159.522 10.507 159.135 10.675 158.781 10.963C158.457 11.215 158.214 11.518 158.052 11.872C157.89 12.22 157.782 12.592 157.728 12.988C157.674 13.378 157.647 13.765 157.647 14.149V19H156.324ZM169.002 19C168.456 19.114 167.916 19.159 167.382 19.135C166.854 19.111 166.38 18.997 165.96 18.793C165.546 18.589 165.231 18.271 165.015 17.839C164.841 17.479 164.745 17.116 164.727 16.75C164.715 16.378 164.709 15.955 164.709 15.481V6.58H166.023V15.427C166.023 15.835 166.026 16.177 166.032 16.453C166.044 16.723 166.107 16.963 166.221 17.173C166.437 17.575 166.779 17.815 167.247 17.893C167.721 17.971 168.306 17.953 169.002 17.839V19ZM162.63 10.414V9.28H169.002V10.414H162.63Z" fill="#313131"></path><path d="M0 3C0 1.34315 1.34315 0 3 0H41C42.6569 0 44 1.34315 44 3V29C44 37.2843 37.2843 44 29 44H3C1.34315 44 0 42.6569 0 41V3Z" fill="#770CFF"></path><g clip-path="url(#clip0_106_2)"><path d="M17.25 31.1667C17.7563 31.1667 18.1667 30.7563 18.1667 30.25C18.1667 29.7437 17.7563 29.3333 17.25 29.3333C16.7438 29.3333 16.3334 29.7437 16.3334 30.25C16.3334 30.7563 16.7438 31.1667 17.25 31.1667Z" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M27.3333 31.1667C27.8396 31.1667 28.25 30.7563 28.25 30.25C28.25 29.7437 27.8396 29.3333 27.3333 29.3333C26.827 29.3333 26.4166 29.7437 26.4166 30.25C26.4166 30.7563 26.827 31.1667 27.3333 31.1667Z" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M9.91663 11.9167H13.5833L16.04 24.1908C16.1238 24.6129 16.3534 24.992 16.6885 25.2618C17.0237 25.5316 17.4431 25.6749 17.8733 25.6667H26.7833C27.2135 25.6749 27.6329 25.5316 27.968 25.2618C28.3032 24.992 28.5328 24.6129 28.6166 24.1908L30.0833 16.5H14.5" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></g><defs><clipPath id="clip0_106_2"><rect width="22" height="22" fill="white" transform="translate(9 11)"></rect></clipPath></defs>',5)];var l=n(2618);const c={},u=(0,l.Z)(c,[["render",function(t,e){return(0,r.wg)(),(0,r.iD)("svg",a,i)}]]);var s={key:0,viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},d=[(0,r._)("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32zm448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32zm-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32zM195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0zm-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"},null,-1)],f={key:1,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},p=[(0,r._)("path",{d:"M11 18H7.94101C7.64391 16.7274 6.30412 15.6857 5.75395 14.9992C4.65645 13.6297 4 11.8915 4 10C4 5.58172 7.58172 2 12 2C16.4183 2 20 5.58172 20 10C20 11.8925 19.3428 13.6315 18.2443 15.0014C17.6944 15.687 16.3558 16.7276 16.059 18H13V13H11V18ZM16 20V21C16 22.1046 15.1046 23 14 23H10C8.89543 23 8 22.1046 8 21V20H16Z"},null,-1)],h={key:2,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},y=[(0,r._)("path",{d:"M21 10.063V4C21 3.44772 20.5523 3 20 3H19C17.0214 4.97864 13.3027 6.08728 11 6.61281V17.3872C13.3027 17.9127 17.0214 19.0214 19 21H20C20.5523 21 21 20.5523 21 20V13.937C21.8626 13.715 22.5 12.9319 22.5 12 22.5 11.0681 21.8626 10.285 21 10.063ZM5 7C3.89543 7 3 7.89543 3 9V15C3 16.1046 3.89543 17 5 17H6L7 22H9V7H5Z"},null,-1)],g={key:3,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},v=[(0,r._)("path",{d:"M12,10c1.1,0,2,.9,2,2s-.9,2-2,2-2-.9-2-2,.9-2,2-2Zm8.49,10.49c4.68-4.68,4.68-12.29,0-16.97-.39-.39-1.02-.39-1.41,0s-.39,1.02,0,1.41c3.9,3.9,3.9,10.24,0,14.14-.39,.39-.39,1.02,0,1.41,.2,.2,.45,.29,.71,.29s.51-.1,.71-.29Zm-3.54-3.54c1.32-1.32,2.05-3.08,2.05-4.95s-.73-3.63-2.05-4.95c-.39-.39-1.02-.39-1.41,0s-.39,1.02,0,1.41c.94,.94,1.46,2.2,1.46,3.54s-.52,2.59-1.46,3.54c-.39,.39-.39,1.02,0,1.41,.2,.2,.45,.29,.71,.29s.51-.1,.71-.29Zm-12.02,3.54c.39-.39,.39-1.02,0-1.41-3.9-3.9-3.9-10.24,0-14.14,.39-.39,.39-1.02,0-1.41s-1.02-.39-1.41,0C-1.16,8.19-1.16,15.81,3.51,20.49c.2,.2,.45,.29,.71,.29s.51-.1,.71-.29Zm3.54-3.54c.39-.39,.39-1.02,0-1.41-1.95-1.95-1.95-5.12,0-7.07,.39-.39,.39-1.02,0-1.41s-1.02-.39-1.41,0c-2.73,2.73-2.73,7.17,0,9.9,.2,.2,.45,.29,.71,.29s.51-.1,.71-.29Z"},null,-1)],m={key:4,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},w=[(0,r._)("path",{d:"M12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 16C14.2091 16 16 14.2091 16 12C16 9.79086 14.2091 8 12 8C9.79086 8 8 9.79086 8 12C8 14.2091 9.79086 16 12 16ZM12 18C8.68629 18 6 15.3137 6 12C6 8.68629 8.68629 6 12 6C15.3137 6 18 8.68629 18 12C18 15.3137 15.3137 18 12 18ZM12 14C10.8954 14 10 13.1046 10 12C10 10.8954 10.8954 10 12 10C13.1046 10 14 10.8954 14 12C14 13.1046 13.1046 14 12 14Z"},null,-1)],C={key:5,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},b=[(0,r._)("path",{fill:"none",d:"M0 0h24v24H0z"},null,-1),(0,r._)("path",{d:"M2.132 13.63a9.942 9.942 0 0 1 0-3.26c1.102.026 2.092-.502 2.477-1.431.385-.93.058-2.004-.74-2.763a9.942 9.942 0 0 1 2.306-2.307c.76.798 1.834 1.125 2.764.74.93-.385 1.457-1.376 1.43-2.477a9.942 9.942 0 0 1 3.262 0c-.027 1.102.501 2.092 1.43 2.477.93.385 2.004.058 2.763-.74a9.942 9.942 0 0 1 2.307 2.306c-.798.76-1.125 1.834-.74 2.764.385.93 1.376 1.457 2.477 1.43a9.942 9.942 0 0 1 0 3.262c-1.102-.027-2.092.501-2.477 1.43-.385.93-.058 2.004.74 2.763a9.942 9.942 0 0 1-2.306 2.307c-.76-.798-1.834-1.125-2.764-.74-.93.385-1.457 1.376-1.43 2.477a9.942 9.942 0 0 1-3.262 0c.027-1.102-.501-2.092-1.43-2.477-.93-.385-2.004-.058-2.763.74a9.942 9.942 0 0 1-2.307-2.306c.798-.76 1.125-1.834.74-2.764-.385-.93-1.376-1.457-2.477-1.43zM12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6z"},null,-1)],_={key:6,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},S=[(0,r._)("path",{fill:"none",d:"M0 0h24v24H0z"},null,-1),(0,r._)("path",{d:"M4 3h16a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1zm2 9h6a1 1 0 0 1 1 1v3h1v6h-4v-6h1v-2H5a1 1 0 0 1-1-1v-2h2v1zm11.732 1.732l1.768-1.768 1.768 1.768a2.5 2.5 0 1 1-3.536 0z"},null,-1)],k={key:7,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},x=[(0,r._)("path",{fill:"none",d:"M0 0h24v24H0z"},null,-1),(0,r._)("path",{d:"M13 16.938V19h5v2H6v-2h5v-2.062A8.001 8.001 0 0 1 4 9V3h16v6a8.001 8.001 0 0 1-7 7.938zM1 5h2v4H1V5zm20 0h2v4h-2V5z"},null,-1)],V={key:8,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},L=[(0,r._)("path",{d:"M9 2.00318V2H19.9978C20.5513 2 21 2.45531 21 2.9918V21.0082C21 21.556 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5501 3 20.9932V8L9 2.00318ZM5.82918 8H9V4.83086L5.82918 8ZM11 4V9C11 9.55228 10.5523 10 10 10H5V20H19V4H11Z"},null,-1)],U={key:9,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},j=[(0,r._)("path",{d:"M17.0007 1.20801 18.3195 3.68083 20.7923 4.99968 18.3195 6.31852 17.0007 8.79134 15.6818 6.31852 13.209 4.99968 15.6818 3.68083 17.0007 1.20801ZM10.6673 9.33301 15.6673 11.9997 10.6673 14.6663 8.00065 19.6663 5.33398 14.6663.333984 11.9997 5.33398 9.33301 8.00065 4.33301 10.6673 9.33301ZM11.4173 11.9997 9.18905 10.8113 8.00065 8.58301 6.81224 10.8113 4.58398 11.9997 6.81224 13.1881 8.00065 15.4163 9.18905 13.1881 11.4173 11.9997ZM19.6673 16.333 18.0007 13.208 16.334 16.333 13.209 17.9997 16.334 19.6663 18.0007 22.7913 19.6673 19.6663 22.7923 17.9997 19.6673 16.333Z"},null,-1)],O={key:10,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},E=[(0,r._)("path",{d:"M17.5,1.917a6.4,6.4,0,0,0-5.5,3.3,6.4,6.4,0,0,0-5.5-3.3A6.8,6.8,0,0,0,0,8.967c0,4.547,4.786,9.513,8.8,12.88a4.974,4.974,0,0,0,6.4,0C19.214,18.48,24,13.514,24,8.967A6.8,6.8,0,0,0,17.5,1.917Z"},null,-1)];const H={__name:"Icons",props:{icon:{type:String,required:!0}},setup:function(t){var e=t.icon;return function(t,n){return(0,r.wg)(),(0,r.iD)(r.HY,null,["spinner"===(0,r.SU)(e)?((0,r.wg)(),(0,r.iD)("svg",s,d)):(0,r.kq)("",!0),"bulb-solid"===(0,r.SU)(e)?((0,r.wg)(),(0,r.iD)("svg",f,p)):(0,r.kq)("",!0),"megaphone-solid"===(0,r.SU)(e)?((0,r.wg)(),(0,r.iD)("svg",h,y)):(0,r.kq)("",!0),"signal-tower"===(0,r.SU)(e)?((0,r.wg)(),(0,r.iD)("svg",g,v)):(0,r.kq)("",!0),"focus-1-solid"===(0,r.SU)(e)?((0,r.wg)(),(0,r.iD)("svg",m,w)):(0,r.kq)("",!0),"gears"===(0,r.SU)(e)?((0,r.wg)(),(0,r.iD)("svg",C,b)):(0,r.kq)("",!0),"paint"===(0,r.SU)(e)?((0,r.wg)(),(0,r.iD)("svg",_,S)):(0,r.kq)("",!0),"trophy"===(0,r.SU)(e)?((0,r.wg)(),(0,r.iD)("svg",k,x)):(0,r.kq)("",!0),"paper"===(0,r.SU)(e)?((0,r.wg)(),(0,r.iD)("svg",V,L)):(0,r.kq)("",!0),"sparkling-stars"===(0,r.SU)(e)?((0,r.wg)(),(0,r.iD)("svg",U,j)):(0,r.kq)("",!0),"heart"===(0,r.SU)(e)?((0,r.wg)(),(0,r.iD)("svg",O,E)):(0,r.kq)("",!0)],64)}}};var M=n(5266);n(26);function P(){P=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),l=new O(r||[]);return o(i,"_invoke",{value:V(t,n,l)}),i}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var f="suspendedStart",p="suspendedYield",h="executing",y="completed",g={};function v(){}function m(){}function w(){}var C={};u(C,i,(function(){return this}));var b=Object.getPrototypeOf,_=b&&b(b(E([])));_&&_!==n&&r.call(_,i)&&(C=_);var S=w.prototype=v.prototype=Object.create(C);function k(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function n(o,a,i,l){var c=d(t[o],t,a);if("throw"!==c.type){var u=c.arg,s=u.value;return s&&"object"==A(s)&&r.call(s,"__await")?e.resolve(s.__await).then((function(t){n("next",t,i,l)}),(function(t){n("throw",t,i,l)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return n("throw",t,i,l)}))}l(c.arg)}var a;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function V(e,n,r){var o=f;return function(a,i){if(o===h)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var l=r.delegate;if(l){var c=L(l,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var u=d(e,n,r);if("normal"===u.type){if(o=r.done?y:p,u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=y,r.method="throw",r.arg=u.arg)}}}function L(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var a=d(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,g;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function U(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(U,this),this.reset(!0)}function E(e){if(e||""===e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(A(e)+" is not iterable")}return m.prototype=w,o(S,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:m,configurable:!0}),m.displayName=u(w,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,u(t,c,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},k(x.prototype),u(x.prototype,l,(function(){return this})),e.AsyncIterator=x,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new x(s(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},k(S),u(S,c,"Generator"),u(S,i,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=E,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return l.type="throw",l.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],l=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:E(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function Z(t,e,n,r,o,a,i){try{var l=t[a](i),c=l.value}catch(t){return void n(t)}l.done?e(c):Promise.resolve(c).then(r,o)}function z(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function i(t){Z(a,r,o,i,l,"next",t)}function l(t){Z(a,r,o,i,l,"throw",t)}i(void 0)}))}}function A(t){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},A(t)}var q=ADDONIFY_WOOFC_LOCOLIZER.rest_namespace,D={},F=wp.apiFetch,N=wp.i18n.__,I=lodash,K=I.isEqual,T=I.cloneDeep,W=(0,o.Q_)({id:"Options",state:function(){return{data:{},options:{},message:"",isLoading:!0,isSaving:!1,needSave:!1,errors:""}},getters:{needSaving:function(t){return!K(t.options,D)},haveStateInMemory:function(t){return"array"==typeof t.options?0!==t.options.length:"object"===A(t.options)?0!==Object.keys(t.options).length:void 0}},actions:{renderOptions:function(){var t=this;return z(P().mark((function e(){var n,r,o,a;return P().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t.isLoading=!0,e.next=4,F({path:q+"/get_options",method:"GET",cache:"no-cache"});case 4:n=e.sent,r=n.settings_values,o=n.tabs,a=r,t.data=o,t.options=a,D=T(a),t.isLoading=!1,e.next=19;break;case 14:return e.prev=14,e.t0=e.catch(0),console.log(e.t0),t.isLoading=!1,e.abrupt("return",M.z8.error({message:N("Something went wrong while fetching settings.","addonify-floating-cart"),offset:50,duration:1e4}));case 19:case"end":return e.stop()}}),e,null,[[0,14]])})))()},handleUpdateOptions:function(){var t=this,e=new Object;Object.keys(this.options).map((function(n){K(t.options[n],D[n])||(e[n]=t.options[n])})),this.updateOptions(e)},updateOptions:function(t){var e=this;return z(P().mark((function n(){var r,o;return P().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,e.isSaving=!0,n.next=4,F({path:q+"/update_options",method:"POST",data:{settings_values:t},cache:"no-cache"});case 4:if((r=n.sent).success){n.next=7;break}return n.abrupt("return",M.z8.error({message:N("Error saving changes! Please try again.","addonify-floating-cart"),offset:50,duration:15e3}));case 7:return o=T(e.options),e.options={},e.options=T(o),D=T(e.options),e.isSaving=!1,n.abrupt("return",M.z8.success({message:r.message,offset:50,duration:3e3}));case 15:return n.prev=15,n.t0=n.catch(0),console.log(n.t0),e.isSaving=!1,n.abrupt("return",M.z8.error({message:N("Error saving changes! Please try again.","addonify-floating-cart"),offset:50,duration:15e3}));case 20:case"end":return n.stop()}}),n,null,[[0,15]])})))()}}}),G={class:"adfy-header"},Y={class:"adfy-row"},B={class:"adfy-col start"},R={class:"branding"},$={class:"adfy-col end"},Q={class:"action-buttons"},J={class:"links"},X={href:"https://docs.addonify.com/kb/floating-cart/",class:"adfy-button fake-button has-underline",target:"_blank"},tt={href:"https://wordpress.org/support/plugin/addonify-floating-cart/reviews/?filter=5",class:"adfy-button fake-button has-underline",target:"_blank"},et={class:"buttons"},nt=["disabled","loading"],rt={class:"loading-icon"};const ot={__name:"Header",setup:function(t){var e=wp.i18n.__,n=W();return function(t,o){var a=(0,r.up)("router-link");return(0,r.wg)(),(0,r.iD)("header",G,[(0,r._)("div",Y,[(0,r._)("div",B,[(0,r._)("div",R,[(0,r.Wm)(a,{class:"adfy-link",to:"/"},{default:(0,r.w5)((function(){return[(0,r.Wm)(u)]})),_:1})])]),(0,r._)("div",$,[(0,r._)("div",Q,[(0,r._)("div",J,[(0,r._)("a",X,[(0,r.Wm)(H,{icon:"paper"}),(0,r.Uk)(" "+(0,r.zw)((0,r.SU)(e)("AFC docs","addonify-floating-cart")),1)]),(0,r._)("a",tt,[(0,r.Wm)(H,{icon:"sparkling-stars"}),(0,r.Uk)(" "+(0,r.zw)((0,r.SU)(e)("Rate AFC","addonify-floating-cart")),1)])]),(0,r._)("div",et,[(0,r._)("button",{type:"submit",onClick:o[0]||(o[0]=function(t){return(0,r.SU)(n).handleUpdateOptions()}),class:"adfy-button",disabled:!(0,r.SU)(n).needSaving,loading:(0,r.SU)(n).isSaving},[(0,r._)("span",rt,[(0,r.Wm)(H,{icon:"spinner"})]),(0,r.Uk)(" "+(0,r.zw)((0,r.SU)(e)("Save Options","addonify-floating-cart")),1)],8,nt)])])])])])}}},at=ot;var it={class:"adfy-colopon"},lt={class:"adfy-row"},ct={class:"adfy-col left"},ut={class:"text"},st={class:"version"},dt={class:"adfy-col right"},ft={class:"text"},pt={href:"https://wordpress.org/plugins/addonify-floating-cart/#reviews",class:"adfy-link",target:"_blank"},ht=(0,r.uE)('<span class="icon"><i class="dashicons dashicons-star-filled"></i><i class="dashicons dashicons-star-filled"></i><i class="dashicons dashicons-star-filled"></i><i class="dashicons dashicons-star-filled"></i><i class="dashicons dashicons-star-filled"></i></span>',1);const yt={__name:"Footer",setup:function(t){var e=wp.i18n.__,n=ADDONIFY_WOOFC_LOCOLIZER.version_number,o=(new Date).getFullYear();return function(t,a){return(0,r.wg)(),(0,r.iD)("footer",it,[(0,r._)("div",lt,[(0,r._)("div",ct,[(0,r._)("p",ut,[(0,r.Uk)(" © 2020 - "+(0,r.zw)((0,r.SU)(o))+" Addonify Floating Cart ",1),(0,r._)("span",st,(0,r.zw)((0,r.SU)(e)("Version","addonify-floating-cart"))+": "+(0,r.zw)((0,r.SU)(n)),1)])]),(0,r._)("div",dt,[(0,r._)("p",ft,[(0,r._)("a",pt,[(0,r.Uk)((0,r.zw)((0,r.SU)(e)("Rate","addonify-floating-cart"))+" ",1),ht,(0,r.Uk)(" :) ")])])])])])}}},gt=yt,vt={__name:"App",setup:function(t){return function(t,e){var n=(0,r.up)("router-view");return(0,r.wg)(),(0,r.iD)(r.HY,null,[(0,r.Wm)(at),(0,r.Wm)(n),(0,r.Wm)(gt)],64)}}};var mt=n(5397),wt={class:"adfy-loading"},Ct=[(0,r._)("span",{class:"pulse"},null,-1)];const bt={},_t=(0,l.Z)(bt,[["render",function(t,e){return(0,r.wg)(),(0,r.iD)("section",wt,Ct)}]]);var St={class:"adfy-navigation"},kt={class:"navigation"},xt={class:"icon"},Vt={class:"icon"},Lt={class:"icon"},Ut={class:"donation"},jt={href:"https://donation.creamcode.org",target:"_blank",rel:"noopener noreferrer",class:"donation-link"},Ot={class:"icon"};const Et={__name:"Navigation",setup:function(t){var e=wp.i18n.__;return function(t,n){var o=(0,r.up)("router-link");return(0,r.wg)(),(0,r.iD)("nav",St,[(0,r._)("ul",kt,[(0,r._)("li",null,[(0,r.Wm)(o,{to:"/"},{default:(0,r.w5)((function(){return[(0,r._)("span",xt,[(0,r.Wm)(H,{icon:"gears"})]),(0,r.Uk)(" "+(0,r.zw)((0,r.SU)(e)("Settings","addonify-floating-cart")),1)]})),_:1})]),(0,r._)("li",null,[(0,r.Wm)(o,{to:"/styles"},{default:(0,r.w5)((function(){return[(0,r._)("span",Vt,[(0,r.Wm)(H,{icon:"paint"})]),(0,r.Uk)(" "+(0,r.zw)((0,r.SU)(e)("Design","addonify-floating-cart")),1)]})),_:1})]),(0,r._)("li",null,[(0,r.Wm)(o,{to:"/products"},{default:(0,r.w5)((function(){return[(0,r._)("span",Lt,[(0,r.Wm)(H,{icon:"trophy"})]),(0,r.Uk)(" "+(0,r.zw)((0,r.SU)(e)("Products","addonify-floating-cart")),1)]})),_:1})]),(0,r._)("li",Ut,[(0,r._)("a",jt,[(0,r._)("span",Ot,[(0,r.Wm)(H,{icon:"heart"})]),(0,r.Uk)(" "+(0,r.zw)((0,r.SU)(e)("Donate (Coffee)","addonify-floating-cart")),1)])])])])}}},Ht=Et;var Mt=["id"];const Pt={__name:"Form",props:{divId:String,className:String},setup:function(t){var e=t;return function(t,n){return(0,r.wg)(),(0,r.iD)("form",{id:e.divId,class:(0,r.C_)(["adfy-form",e.className]),onSubmit:n[0]||(n[0]=(0,r.iM)((function(){}),["prevent"]))},[(0,r.WI)(t.$slots,"default")],42,Mt)}}};var Zt={key:0,class:"section-title-holder"},zt={class:"section-title"};const At={__name:"SectionTitle",props:{section:{type:Object,required:!0}},setup:function(t){var e=t;return function(t,n){return e.section.title?((0,r.wg)(),(0,r.iD)("div",Zt,[(0,r._)("h3",zt,(0,r.zw)(e.section.title),1)])):(0,r.kq)("",!0)}}};var qt=n(888),Dt=(n(5650),n(8168)),Ft=(n(4228),n(5428));function Nt(t){return Nt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nt(t)}const It={__name:"Switch",props:{modelValue:{type:[String,Boolean,Number],required:!0}},emits:["update:modelValue"],setup:function(t,e){var n=e.emit,o=t,a=n,i=(0,r.Fl)({get:function(){switch(Nt(o.modelValue)){case"boolean":return o.modelValue;case"number":return o.modelValue>0;case"string":return"1"===o.modelValue;default:return!1}},set:function(t){a("update:modelValue",t)}});return function(t,e){return(0,r.wg)(),(0,r.j4)((0,r.SU)(Dt.OX),{modelValue:i.value,"onUpdate:modelValue":e[0]||(e[0]=function(t){return i.value=t}),size:"large","inline-prompt":"","active-icon":(0,r.SU)(Ft.JrY),"inactive-icon":(0,r.SU)(Ft.x8P)},null,8,["modelValue","active-icon","inactive-icon"])}}};var Kt=n(6662);n(5754);const Tt={__name:"Text",props:{modelValue:String,placeholder:String},emits:["update:modelValue"],setup:function(t,e){var n=e.emit,o=t,a=n,i=(0,r.Fl)({get:function(){return o.modelValue},set:function(t){a("update:modelValue",t)}}),l=wp.i18n.__;return function(t,e){return(0,r.wg)(),(0,r.j4)((0,r.SU)(Kt.EZ),{modelValue:i.value,"onUpdate:modelValue":e[0]||(e[0]=function(t){return i.value=t}),placeholder:o.placeholder?o.placeholder:(0,r.SU)(l)("Enter text here...","addonify-floating-cart"),size:"large"},null,8,["modelValue","placeholder"])}}},Wt=Tt,Gt={__name:"Textarea",props:{modelValue:{type:String,required:!1},className:{type:String,required:!1},placeholder:{type:String,required:!1}},emits:["update:modelValue"],setup:function(t,e){var n=e.emit,o=t,a=n,i=(0,r.Fl)({get:function(){return o.modelValue},set:function(t){a("update:modelValue",t)}}),l=wp.i18n.__;return function(e,n){return(0,r.wg)(),(0,r.j4)((0,r.SU)(Kt.EZ),{modelValue:i.value,"onUpdate:modelValue":n[0]||(n[0]=function(t){return i.value=t}),class:(0,r.C_)(t.className),type:"textarea",rows:"10",placeholder:o.placeholder?o.placeholder:(0,r.SU)(l)("Enter text here...","addonify-floating-cart"),resize:"vertical","input-style":"display:block;width: 100%;"},null,8,["modelValue","class","placeholder"])}}};var Yt=n(7255),Bt=n.n(Yt),Rt=n(7797),$t={insert:"head",singleton:!1};Bt()(Rt.Z,$t);Rt.Z.locals;const Qt=Gt;var Jt=n(5939),Xt=n(6097);n(5671),n(6562);const te={__name:"Number",props:{modelValue:{type:[Number,String],required:!0},min:{type:[String,Number],required:!1},max:{type:[String,Number],required:!1},step:{type:[String,Number],required:!1},precision:{type:[String,Number],required:!1},placeholder:{type:String,required:!1,default:""},style:{type:String,required:!1,default:"default"},unit:{type:String,required:!1,default:"px"},sliderDirection:{type:String,required:!1,default:"horizontal"}},emits:["update:modelValue"],setup:function(t,e){var n=e.emit,o=t,a=o.style,i=o.min,l=o.max,c=o.precision,u=o.step,s=o.unit,d=o.placeholder,f=n,p=(0,r.Fl)({get:function(){return parseFloat(o.modelValue)},set:function(t){f("update:modelValue",t)}}),h=function(t){return t+" "+s};return function(t,e){return(0,r.wg)(),(0,r.iD)(r.HY,null,["default"===(0,r.SU)(a)?((0,r.wg)(),(0,r.j4)((0,r.SU)(Kt.EZ),{key:0,type:"number",modelValue:p.value,"onUpdate:modelValue":e[0]||(e[0]=function(t){return p.value=t}),min:(0,r.SU)(i)?(0,r.SU)(i):0,max:(0,r.SU)(l),step:(0,r.SU)(u),precision:(0,r.SU)(c),placeholder:(0,r.SU)(d)},null,8,["modelValue","min","max","step","precision","placeholder"])):(0,r.kq)("",!0),"buttons-plus-minus"===(0,r.SU)(a)?((0,r.wg)(),(0,r.j4)((0,r.SU)(Jt.d6),{key:1,modelValue:p.value,"onUpdate:modelValue":e[1]||(e[1]=function(t){return p.value=t}),size:"large",min:(0,r.SU)(i)?(0,r.SU)(i):0,max:(0,r.SU)(l),step:(0,r.SU)(u),precision:(0,r.SU)(c),placeholder:(0,r.SU)(d)},null,8,["modelValue","min","max","step","precision","placeholder"])):(0,r.kq)("",!0),"buttons-arrows"===(0,r.SU)(a)?((0,r.wg)(),(0,r.j4)((0,r.SU)(Jt.d6),{key:2,modelValue:p.value,"onUpdate:modelValue":e[2]||(e[2]=function(t){return p.value=t}),size:"large",min:(0,r.SU)(i)?(0,r.SU)(i):0,max:(0,r.SU)(l),step:(0,r.SU)(u),precision:(0,r.SU)(c),placeholder:(0,r.SU)(d),"controls-position":"right"},null,8,["modelValue","min","max","step","precision","placeholder"])):(0,r.kq)("",!0),"slider"===(0,r.SU)(a)?((0,r.wg)(),(0,r.j4)((0,r.SU)(Xt.BM),{key:3,modelValue:p.value,"onUpdate:modelValue":e[3]||(e[3]=function(t){return p.value=t}),"show-tooltip":"",min:(0,r.SU)(i),max:(0,r.SU)(l),step:(0,r.SU)(u)?(0,r.SU)(u):1,"format-tooltip":h,size:"large"},null,8,["modelValue","min","max","step"])):(0,r.kq)("",!0)],64)}}};var ee=n(9517);n(2656),n(6029);const ne={__name:"Select",props:{modelValue:{type:String,required:!0},choices:{type:[Object,Array],required:!0},placeholder:{type:String,required:!1,default:""}},emits:["update:modelValue"],setup:function(t,e){var n=e.emit,o=t,a=n,i=(0,r.Fl)({get:function(){return o.modelValue.toString()},set:function(t){a("update:modelValue",t)}}),l=wp.i18n.__;return function(t,e){return(0,r.wg)(),(0,r.j4)((0,r.SU)(ee.km),{modelValue:i.value,"onUpdate:modelValue":e[0]||(e[0]=function(t){return i.value=t}),placeholder:o.placeholder?o.placeholder:(0,r.SU)(l)("Select","addonify-floating-cart"),size:"large"},{default:(0,r.w5)((function(){return[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(o.choices,(function(t,e){return(0,r.wg)(),(0,r.j4)((0,r.SU)(ee.BT),{label:t,value:e},null,8,["label","value"])})),256))]})),_:1},8,["modelValue","placeholder"])}}},re=ne;var oe=n(348);n(2235);const ae={__name:"Checkbox",props:{modelValue:[Boolean],label:[String]},emits:["update:modelValue"],setup:function(t,e){var n=e.emit,o=t,a=n,i=(0,r.Fl)({get:function(){return o.modelValue},set:function(t){a("update:modelValue",t)}});return function(t,e){return(0,r.wg)(),(0,r.j4)((0,r.SU)(oe.Xb),{modelValue:i.value,"onUpdate:modelValue":e[0]||(e[0]=function(t){return i.value=t}),label:"{{props.label}}",size:"large"},null,8,["modelValue"])}}};n(6043),n(668);const ie={__name:"CheckboxButton",props:{modelValue:[Array],choices:Object},emits:["update:modelValue"],setup:function(t,e){var n=e.emit,o=t,a=n,i=(0,r.Fl)({get:function(){return o.modelValue},set:function(t){a("update:modelValue",t)}});return function(t,e){return(0,r.wg)(),(0,r.j4)((0,r.SU)(oe.z5),{modelValue:i.value,"onUpdate:modelValue":e[0]||(e[0]=function(t){return i.value=t}),size:"large"},{default:(0,r.w5)((function(){return[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(o.choices,(function(t,e){return(0,r.wg)(),(0,r.j4)((0,r.SU)(oe.lm),{label:e},{default:(0,r.w5)((function(){return[(0,r.Uk)((0,r.zw)(t),1)]})),_:2},1032,["label"])})),256))]})),_:1},8,["modelValue"])}}};var le=n(8243);n(1818),n(4796);const ce={__name:"Radio",props:{modelValue:{type:String,required:!0},choices:{type:[Object,Array],required:!0},style:{type:String,required:!1,default:"default"}},emits:["update:modelValue"],setup:function(t,e){var n=e.emit,o=t,a=n,i=(0,r.Fl)({get:function(){return o.modelValue},set:function(t){a("update:modelValue",t)}});return function(t,e){return(0,r.wg)(),(0,r.j4)((0,r.SU)(le.KD),{modelValue:i.value,"onUpdate:modelValue":e[0]||(e[0]=function(t){return i.value=t})},{default:(0,r.w5)((function(){return[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(o.choices,(function(t,e){return(0,r.wg)(),(0,r.j4)((0,r.SU)(le.rh),{label:e},{default:(0,r.w5)((function(){return[(0,r.Uk)((0,r.zw)(t),1)]})),_:2},1032,["label"])})),256))]})),_:1},8,["modelValue"])}}};var ue=["innerHTML"];const se={__name:"RadioIcon",props:{modelValue:{type:String,required:!0},choices:{type:[Object,Array],required:!1}},emits:["update:modelValue"],setup:function(t,e){var n=e.emit,o=t,a=n,i=(0,r.Fl)({get:function(){return o.modelValue},set:function(t){a("update:modelValue",t)}});return function(t,e){return(0,r.wg)(),(0,r.j4)((0,r.SU)(le.KD),{modelValue:i.value,"onUpdate:modelValue":e[0]||(e[0]=function(t){return i.value=t})},{default:(0,r.w5)((function(){return[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(o.choices,(function(t,e){return(0,r.wg)(),(0,r.j4)((0,r.SU)(le.rh),{label:e,size:"large",border:""},{default:(0,r.w5)((function(){return[(0,r._)("span",{innerHTML:t},null,8,ue)]})),_:2},1032,["label"])})),256))]})),_:1},8,["modelValue"])}}};var de=n(9481);n(501);const fe={__name:"ColorPicker",props:{colorVal:String,isAlpha:[Boolean,String],label:String},emits:["update:colorVal"],setup:function(t,e){var n=e.emit,o=t,a=n,i=(0,r.Fl)({get:function(){return o.colorVal},set:function(t){a("update:colorVal",t)}}),l=function(t){a("update:colorVal",t)};return function(t,e){return(0,r.wg)(),(0,r.j4)((0,r.SU)(de.$),{modelValue:i.value,"onUpdate:modelValue":e[0]||(e[0]=function(t){return i.value=t}),"show-alpha":o.isAlpha,onActiveChange:l},null,8,["modelValue","show-alpha"])}}};var pe={class:"unsupported-control-text"},he={href:"https://docs.addonify.com/kb/floating-cart/developer/",target:"_blank",rel:"documentation",class:"adfy-button fake-button has-underline forward-to-doc-link"};const ye={__name:"InvalidControl",setup:function(t){var e=wp.i18n.__;return function(t,n){return(0,r.wg)(),(0,r.iD)("span",pe,[(0,r.Uk)(" ❌ "+(0,r.zw)((0,r.SU)(e)("Input is not supported.","addonify-wishist"))+" ",1),(0,r._)("a",he,(0,r.zw)((0,r.SU)(e)("Check docs","addonify-floating-cart")),1)])}}};var ge=n(4012),ve={insert:"head",singleton:!1};Bt()(ge.Z,ve);ge.Z.locals;const me=ye,we={__name:"InputControl",props:{field:{type:Object,required:!0},fieldKey:{type:String,required:!0},label:{type:String,required:!1},reactiveState:{type:Object,required:!0}},setup:function(t){var e=t;return function(t,n){return"switch"===e.field.type?((0,r.wg)(),(0,r.j4)(It,{key:0,modelValue:e.reactiveState[e.fieldKey],"onUpdate:modelValue":n[0]||(n[0]=function(t){return e.reactiveState[e.fieldKey]=t})},null,8,["modelValue"])):"select"===e.field.type?((0,r.wg)(),(0,r.j4)(re,{key:1,modelValue:e.reactiveState[e.fieldKey],"onUpdate:modelValue":n[1]||(n[1]=function(t){return e.reactiveState[e.fieldKey]=t}),choices:e.field.choices,placeholder:e.field.placeholder},null,8,["modelValue","choices","placeholder"])):"text"===e.field.type?((0,r.wg)(),(0,r.j4)(Wt,{key:2,modelValue:e.reactiveState[e.fieldKey],"onUpdate:modelValue":n[2]||(n[2]=function(t){return e.reactiveState[e.fieldKey]=t}),placeholder:e.field.placeholder},null,8,["modelValue","placeholder"])):"textarea"===e.field.type?((0,r.wg)(),(0,r.j4)(Qt,{key:3,modelValue:e.reactiveState[e.fieldKey],"onUpdate:modelValue":n[3]||(n[3]=function(t){return e.reactiveState[e.fieldKey]=t}),placeholder:e.field.placeholder},null,8,["modelValue","placeholder"])):"checkbox"===e.field.type&&"buttons"===e.field.typeStyle?((0,r.wg)(),(0,r.j4)(ie,{key:4,modelValue:e.reactiveState[e.fieldKey],"onUpdate:modelValue":n[4]||(n[4]=function(t){return e.reactiveState[e.fieldKey]=t}),choices:e.field.choices},null,8,["modelValue","choices"])):"checkbox"===e.field.type?((0,r.wg)(),(0,r.j4)(ae,{key:5,modelValue:e.reactiveState[e.fieldKey],"onUpdate:modelValue":n[5]||(n[5]=function(t){return e.reactiveState[e.fieldKey]=t}),choices:e.field.choices},null,8,["modelValue","choices"])):"number"===e.field.type?((0,r.wg)(),(0,r.j4)(te,{key:6,modelValue:e.reactiveState[e.fieldKey],"onUpdate:modelValue":n[6]||(n[6]=function(t){return e.reactiveState[e.fieldKey]=t}),placeholder:e.field.placeholder,style:(0,r.j5)(e.field.style),min:e.field.min,max:e.field.max,step:e.field.step,precision:e.field.precision,unit:e.field.unit},null,8,["modelValue","placeholder","style","min","max","step","precision","unit"])):"radio"===e.field.type?((0,r.wg)(),(0,r.j4)(ce,{key:7,modelValue:e.reactiveState[e.fieldKey],"onUpdate:modelValue":n[7]||(n[7]=function(t){return e.reactiveState[e.fieldKey]=t}),choices:e.field.choices,style:(0,r.j5)(e.field.style)},null,8,["modelValue","choices","style"])):"radio-icons"===e.field.type?((0,r.wg)(),(0,r.j4)(se,{key:8,modelValue:e.reactiveState[e.fieldKey],"onUpdate:modelValue":n[8]||(n[8]=function(t){return e.reactiveState[e.fieldKey]=t}),choices:e.field.choices},null,8,["modelValue","choices"])):"color"===e.field.type?((0,r.wg)(),(0,r.j4)(fe,{key:9,colorVal:e.reactiveState[e.fieldKey],"onUpdate:colorVal":n[9]||(n[9]=function(t){return e.reactiveState[e.fieldKey]=t}),isAlpha:e.field.isAlpha,label:e.field.label},null,8,["colorVal","isAlpha","label"])):((0,r.wg)(),(0,r.j4)(me,{key:10}))}}};var Ce={key:0,class:"adfy-options"},be={class:"adfy-col left"},_e={class:"label"},Se={key:0,class:"option-label"},ke={key:1,class:"option-description"},xe={class:"icon"},Ve={class:"text"},Le={class:"adfy-col right"},Ue={class:"input"};const je={__name:"OptionBox",props:{section:{type:Object,required:!0},sectionKey:{type:String,required:!0},reactiveState:{type:Object,required:!0},currentPage:{type:String,required:!0}},setup:function(t){var e=t,n=W(),o=e.currentPage;function a(t){return Array.isArray(t)?t.every((function(t){return n.options[t]})):n.options[t]}function i(t,e){switch(o){case"settings":return"enable_floating_cart"===t||a(e);case"design":return"load_styles_from_plugin"===t||a(e);default:return!1}}return function(t,n){return(0,r.wg)(),(0,r.iD)(r.HY,null,[(0,r.WI)(t.$slots,"default"),((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.section.fields,(function(t,n){return(0,r.wg)(),(0,r.iD)(r.HY,null,[i(n,t.dependent)?((0,r.wg)(),(0,r.iD)("div",Ce,[(0,r._)("div",{class:(0,r.C_)(["adfy-option-columns option-box",t.className])},[(0,r._)("div",be,[(0,r._)("div",_e,[t.label?((0,r.wg)(),(0,r.iD)("p",Se,[(0,r.Uk)((0,r.zw)(t.label)+" ",1),t.badge?((0,r.wg)(),(0,r.j4)((0,r.SU)(qt.Ks),{key:0},{default:(0,r.w5)((function(){return[(0,r.Uk)((0,r.zw)(t.badge),1)]})),_:2},1024)):(0,r.kq)("",!0)])):(0,r.kq)("",!0),t.description?((0,r.wg)(),(0,r.iD)("p",ke,[(0,r._)("span",xe,[(0,r.Wm)(H,{icon:"bulb-solid"})]),(0,r._)("span",Ve,(0,r.zw)(t.description),1)])):(0,r.kq)("",!0)])]),(0,r._)("div",Le,[(0,r._)("div",Ue,[(0,r.Wm)(we,{field:t,fieldKey:n,reactiveState:e.reactiveState},null,8,["field","fieldKey","reactiveState"])])])],2)])):(0,r.kq)("",!0)],64)})),256))],64)}}};var Oe=["data_section"];const Ee={__name:"OptionSection",props:{sectionKey:{type:String,required:!0},currentPage:{type:String,required:!0},className:{type:String,required:!1}},setup:function(t){var e=t,n=e.className,o=e.sectionKey,a=e.currentPage,i=W();return function(t,e){return"general"===(0,r.SU)(o)||function(){switch(a){case"settings":return i.options.enable_floating_cart;case"design":return i.options.load_styles_from_plugin;default:return!1}}()?((0,r.wg)(),(0,r.iD)("section",{key:0,class:(0,r.C_)(["addonify-section",(0,r.SU)(n)]),data_section:(0,r.SU)(o)},[(0,r.WI)(t.$slots,"default")],10,Oe)):(0,r.kq)("",!0)}}};function He(){He=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),l=new O(r||[]);return o(i,"_invoke",{value:V(t,n,l)}),i}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var f="suspendedStart",p="suspendedYield",h="executing",y="completed",g={};function v(){}function m(){}function w(){}var C={};u(C,i,(function(){return this}));var b=Object.getPrototypeOf,_=b&&b(b(E([])));_&&_!==n&&r.call(_,i)&&(C=_);var S=w.prototype=v.prototype=Object.create(C);function k(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function n(o,a,i,l){var c=d(t[o],t,a);if("throw"!==c.type){var u=c.arg,s=u.value;return s&&"object"==Pe(s)&&r.call(s,"__await")?e.resolve(s.__await).then((function(t){n("next",t,i,l)}),(function(t){n("throw",t,i,l)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return n("throw",t,i,l)}))}l(c.arg)}var a;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function V(e,n,r){var o=f;return function(a,i){if(o===h)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var l=r.delegate;if(l){var c=L(l,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var u=d(e,n,r);if("normal"===u.type){if(o=r.done?y:p,u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=y,r.method="throw",r.arg=u.arg)}}}function L(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var a=d(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,g;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function U(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(U,this),this.reset(!0)}function E(e){if(e||""===e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(Pe(e)+" is not iterable")}return m.prototype=w,o(S,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:m,configurable:!0}),m.displayName=u(w,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,u(t,c,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},k(x.prototype),u(x.prototype,l,(function(){return this})),e.AsyncIterator=x,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new x(s(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},k(S),u(S,c,"Generator"),u(S,i,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=E,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return l.type="throw",l.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],l=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:E(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function Me(t,e,n,r,o,a,i){try{var l=t[a](i),c=l.value}catch(t){return void n(t)}l.done?e(c):Promise.resolve(c).then(r,o)}function Pe(t){return Pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pe(t)}var Ze=(0,o.Q_)({id:"Notice",state:function(){return{alerts:{},status:{isFetching:!0}}},getters:{hasNoticeStateInMemory:function(t){return"object"===Pe(t.alerts)?Object.keys(t.alerts).length>0:"array"==typeof t.alerts&&t.alerts.length>0}},actions:{checkNotices:function(){var t,e=this;return(t=He().mark((function t(){var n,r;return He().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,fetch("https://raw.githubusercontent.com/addonify/addonify-floating-cart/stable/notice.json");case 3:return n=t.sent,t.next=6,n.json();case 6:r=t.sent,200===n.status&&(e.alerts=r,e.status.isFetching=!1),t.next=13;break;case 10:return t.prev=10,t.t0=t.catch(0),t.abrupt("return");case 13:case"end":return t.stop()}}),t,null,[[0,10]])})),function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function i(t){Me(a,r,o,i,l,"next",t)}function l(t){Me(a,r,o,i,l,"throw",t)}i(void 0)}))})()}}}),ze=["data_size"],Ae={class:"content"},qe={class:"icon"},De=["innerHTML"];const Fe={__name:"Notice",setup:function(t){var e=Ze();return(0,r.bv)((function(){e.hasNoticeStateInMemory||e.checkNotices()})),function(t,n){return(0,r.SU)(e).status.isFetching?(0,r.kq)("",!0):((0,r.wg)(!0),(0,r.iD)(r.HY,{key:0},(0,r.Ko)((0,r.SU)(e).alerts.alerts,(function(t,e){return(0,r.wg)(),(0,r.iD)(r.HY,null,[t.live?((0,r.wg)(),(0,r.iD)("aside",{key:0,class:(0,r.C_)(["addonify-notice",t.type]),data_size:t.size},[(0,r._)("div",Ae,[(0,r._)("span",qe,[(0,r.Wm)(H,{icon:"signal-tower"})]),(0,r._)("span",{class:"message",innerHTML:t.data.content},null,8,De)])],10,ze)):(0,r.kq)("",!0)],64)})),256))}}};var Ne={class:"adfy-container",id:"addonify-layout"},Ie={class:"adfy-columns main-content"},Ke={class:"adfy-col start site-secondary"},Te={class:"adfy-col end site-primary"};const We={__name:"Settings",setup:function(t){var e=W();return(0,r.bv)((function(){e.haveStateInMemory||e.renderOptions()})),function(t,n){return(0,r.wg)(),(0,r.iD)("section",Ne,[(0,r.Wm)(Fe),(0,r._)("main",Ie,[(0,r._)("aside",Ke,[(0,r.Wm)(Ht)]),(0,r._)("section",Te,[(0,r.SU)(e).isLoading?((0,r.wg)(),(0,r.j4)(_t,{key:0})):((0,r.wg)(),(0,r.j4)(Pt,{key:1,divId:"adfy-settings-form"},{default:(0,r.w5)((function(){return[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)((0,r.SU)(e).data.settings.sections,(function(t,n){return(0,r.wg)(),(0,r.j4)(Ee,{sectionKey:n,currentPage:"settings"},{default:(0,r.w5)((function(){return[(0,r.Wm)(je,{section:t,sectionKey:n,reactiveState:(0,r.SU)(e).options,currentPage:"settings"},{default:(0,r.w5)((function(){return[(0,r.Wm)(At,{section:t},null,8,["section"])]})),_:2},1032,["section","sectionKey","reactiveState"])]})),_:2},1032,["sectionKey"])})),256))]})),_:1}))])])])}}};var Ge={class:"jumbo-section jumbo-box"},Ye={class:"jumbo-header"},Be={key:0,class:"sec-title"},Re={key:1,class:"sec-excerpt"},$e={class:"icon"},Qe={class:"text"},Je={class:"jumbo-content adfy-options"},Xe={class:"ui-option"},tn={class:"col-left option-label"},en={class:"label"},nn={class:"col-right input"};const rn={__name:"JumboBox",props:{section:{type:Object,required:!0},reactiveState:{type:Object,required:!0}},setup:function(t){var e=t;return function(t,n){return(0,r.wg)(),(0,r.iD)("section",Ge,[(0,r._)("div",Ye,[e.section.title?((0,r.wg)(),(0,r.iD)("p",Be,(0,r.zw)(e.section.title),1)):(0,r.kq)("",!0),e.section.description?((0,r.wg)(),(0,r.iD)("p",Re,[(0,r._)("span",$e,[(0,r.Wm)(H,{icon:"bulb-solid"})]),(0,r._)("span",Qe,(0,r.zw)(e.section.description),1)])):(0,r.kq)("",!0)]),(0,r._)("div",Je,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.section.fields,(function(t,n){return(0,r.wg)(),(0,r.iD)("div",Xe,[(0,r._)("div",tn,[(0,r._)("span",en,(0,r.zw)(t.label),1)]),(0,r._)("div",nn,[(0,r.Wm)(we,{field:t,fieldKey:n,reactiveState:e.reactiveState},null,8,["field","fieldKey","reactiveState"])])])})),256))])])}}},on={__name:"HandleDesignOptions",props:{section:{type:Object,required:!0},sectionKey:{type:String,required:!0},reactiveState:{type:Object,required:!0},currentPage:{type:String,required:!0}},setup:function(t){var e=t;return function(n,o){return"render-jumbo-box"===t.section.type?((0,r.wg)(),(0,r.j4)(rn,{key:0,section:e.section,reactiveState:e.reactiveState},null,8,["section","reactiveState"])):((0,r.wg)(),(0,r.j4)(je,{key:1,section:e.section,sectionKey:e.sectionKey,reactiveState:e.reactiveState,currentPage:e.currentPage},{default:(0,r.w5)((function(){return[(0,r.Wm)(At,{section:e.section},null,8,["section"])]})),_:1},8,["section","sectionKey","reactiveState","currentPage"]))}}};var an={class:"adfy-container",id:"addonify-layout"},ln={class:"adfy-columns main-content"},cn={class:"adfy-col start site-secondary"},un={class:"adfy-col end site-primary"};const sn={__name:"Styles",setup:function(t){var e=W();return(0,r.bv)((function(){e.haveStateInMemory||e.renderOptions()})),function(t,n){return(0,r.wg)(),(0,r.iD)("section",an,[(0,r.Wm)(Fe),(0,r._)("main",ln,[(0,r._)("aside",cn,[(0,r.Wm)(Ht)]),(0,r._)("section",un,[(0,r.SU)(e).isLoading?((0,r.wg)(),(0,r.j4)(_t,{key:0})):((0,r.wg)(),(0,r.j4)(Pt,{key:1,divId:"adfy-style-options-form"},{default:(0,r.w5)((function(){return[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)((0,r.SU)(e).data.styles.sections,(function(t,n){return(0,r.wg)(),(0,r.j4)(Ee,{sectionKey:n,currentPage:"design"},{default:(0,r.w5)((function(){return[(0,r.Wm)(on,{section:t,sectionKey:n,reactiveState:(0,r.SU)(e).options,currentPage:"design"},null,8,["section","sectionKey","reactiveState"])]})),_:2},1032,["sectionKey"])})),256))]})),_:1}))])])])}}};var dn=n(340);n(6754);function fn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function pn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?fn(Object(n),!0).forEach((function(e){hn(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):fn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function hn(t,e,n){var r;return r=function(t,e){if("object"!=mn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=mn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==mn(r)?r:r+"")in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function yn(){yn=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),l=new O(r||[]);return o(i,"_invoke",{value:V(t,n,l)}),i}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var f="suspendedStart",p="suspendedYield",h="executing",y="completed",g={};function v(){}function m(){}function w(){}var C={};u(C,i,(function(){return this}));var b=Object.getPrototypeOf,_=b&&b(b(E([])));_&&_!==n&&r.call(_,i)&&(C=_);var S=w.prototype=v.prototype=Object.create(C);function k(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function n(o,a,i,l){var c=d(t[o],t,a);if("throw"!==c.type){var u=c.arg,s=u.value;return s&&"object"==mn(s)&&r.call(s,"__await")?e.resolve(s.__await).then((function(t){n("next",t,i,l)}),(function(t){n("throw",t,i,l)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return n("throw",t,i,l)}))}l(c.arg)}var a;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function V(e,n,r){var o=f;return function(a,i){if(o===h)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var l=r.delegate;if(l){var c=L(l,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var u=d(e,n,r);if("normal"===u.type){if(o=r.done?y:p,u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=y,r.method="throw",r.arg=u.arg)}}}function L(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var a=d(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,g;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function U(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(U,this),this.reset(!0)}function E(e){if(e||""===e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(mn(e)+" is not iterable")}return m.prototype=w,o(S,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:m,configurable:!0}),m.displayName=u(w,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,u(t,c,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},k(x.prototype),u(x.prototype,l,(function(){return this})),e.AsyncIterator=x,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new x(s(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},k(S),u(S,c,"Generator"),u(S,i,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=E,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return l.type="throw",l.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],l=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:E(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function gn(t,e,n,r,o,a,i){try{var l=t[a](i),c=l.value}catch(t){return void n(t)}l.done?e(c):Promise.resolve(c).then(r,o)}function vn(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function i(t){gn(a,r,o,i,l,"next",t)}function l(t){gn(a,r,o,i,l,"throw",t)}i(void 0)}))}}function mn(t){return mn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mn(t)}var wn=wp.apiFetch,Cn=wp.i18n.__,bn=(0,o.Q_)({id:"Product",state:function(){return{allAddons:{},allProductSlugStatus:{},hotAddons:{},generalAddons:{},installedAddons:[],isFetching:!0,isFetchingAllInstalledAddons:!0,isSettingAddonStatus:!0}},getters:{hasAddonsStateInMemory:function(t){return"object"===mn(t.allAddons)?Object.keys(t.allAddons).length>0:"array"==typeof t.allAddons&&t.allAddons.length>0}},actions:{getRecommdedProductsList:function(){var t=this;return vn(yn().mark((function e(){var n,r;return yn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t.isFetching=!0,e.next=4,fetch("https://raw.githubusercontent.com/addonify/recommended-products/main/products.json");case 4:return n=e.sent,e.next=7,n.json();case 7:if(r=e.sent,200===n.status){e.next=11;break}return console.log(r),e.abrupt("return");case 11:return t.processRecommendedPluginsList(r),t.isFetching=!1,e.abrupt("return",n);case 16:return e.prev=16,e.t0=e.catch(0),console.error(e.t0),t.isFetching=!1,e.abrupt("return",e.t0);case 21:case"end":return e.stop()}}),e,null,[[0,16]])})))()},processRecommendedPluginsList:function(t){var e=this;if(console.log("[Info] Processing the list that was retrived...."),this.hotAddons=t.data.hot,this.generalAddons=t.data.general,this.allAddons=pn(pn({},this.hotAddons),this.generalAddons),"object"!==mn(this.allAddons))return console.log("[Error] Couldn't process the list plugins list!");Object.keys(this.allAddons).forEach((function(t){e.allProductSlugStatus[t]="null"}))},fetchInstalledAddons:function(){var t=this;return vn(yn().mark((function e(){var n;return yn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("[Info] Getting the list of all plugins installed on the site...."),e.prev=1,e.next=4,wn({path:"/wp/v2/plugins",method:"GET",cache:"no-cache"});case 4:n=e.sent,console.log("[Info] Received the list of all installed plugins...."),t.installedAddons=n,t.setAddonStatusFlag(Object.keys(t.allProductSlugStatus)),t.isFetchingAllInstalledAddons=!1,e.next=16;break;case 11:return e.prev=11,e.t0=e.catch(1),console.log(e.t0),t.isFetchingAllInstalledAddons=!1,e.abrupt("return");case 16:case"end":return e.stop()}}),e,null,[[1,11]])})))()},setAddonStatusFlag:function(t){var e=this;"object"===mn(this.installedAddons)&&this.installedAddons.length>0?(console.log("=> Setting the status of the addon."),t.forEach((function(t){var n=e.installedAddons.find((function(e){return e.textdomain===t}));e.allProductSlugStatus[t]=n?n.status:"not-installed"}))):console.log("[Warning] Bailing!!! The installed addons list is empty."),console.log("[Info] Done setting the status of the addon."),this.isSettingAddonStatus=!1},handleAddonInstallation:function(t){var e=this;return vn(yn().mark((function n(){var r;return yn().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,console.log("[Info] Trying to install plugin ".concat(t,"...")),n.next=4,wn({method:"POST",path:"/wp/v2/plugins",data:{slug:t,status:"active"},cache:"no-cache"});case 4:if("active"!==(r=n.sent).status){n.next=12;break}return console.log("[Info] Plugin ".concat(t," installed successfully.")),M.z8.success({message:Cn("Plugin installed successfully.","addonify-floating-cart"),offset:50,duration:5e3}),e.allProductSlugStatus[t]="active",n.next=11,r;case 11:case 21:return n.abrupt("return",n.sent);case 12:n.next=22;break;case 14:return n.prev=14,n.t0=n.catch(0),console.error(n.t0),M.z8.error({message:Cn("Error: couldn't install plugin.","addonify-floating-cart"),offset:50,duration:2e4}),e.isWaitingForInstallation=!1,n.next=21,n.t0;case 22:case"end":return n.stop()}}),n,null,[[0,14]])})))()},updateAddonStatus:function(t){var e=this;return vn(yn().mark((function n(){var r;return yn().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,console.log("[Info] Trying to set the status of plugin ".concat(t,"...")),n.next=4,wn({method:"POST",path:"/wp/v2/plugins/".concat(t),data:{status:"active",plugin:"".concat(t,"/").concat(t)},cache:"no-cache"});case 4:if("active"!=(r=n.sent).status){n.next=12;break}return console.log("[Info] Plugin ".concat(t," activated successfully.")),M.z8.success({message:Cn("Plugin activated successfully.","addonify-floating-cart"),offset:50,duration:5e3}),e.allProductSlugStatus[t]="active",n.next=11,r;case 11:case 20:return n.abrupt("return",n.sent);case 12:n.next=21;break;case 14:return n.prev=14,n.t0=n.catch(0),console.log(n.t0),M.z8.error({message:Cn("Error: Couldn't activate the plugin.","addonify-floating-cart"),offset:50,duration:2e4}),n.next=20,n.t0;case 21:case"end":return n.stop()}}),n,null,[[0,14]])})))()}}});function _n(t){return _n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_n(t)}function Sn(){Sn=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),l=new O(r||[]);return o(i,"_invoke",{value:V(t,n,l)}),i}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var f="suspendedStart",p="suspendedYield",h="executing",y="completed",g={};function v(){}function m(){}function w(){}var C={};u(C,i,(function(){return this}));var b=Object.getPrototypeOf,_=b&&b(b(E([])));_&&_!==n&&r.call(_,i)&&(C=_);var S=w.prototype=v.prototype=Object.create(C);function k(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function n(o,a,i,l){var c=d(t[o],t,a);if("throw"!==c.type){var u=c.arg,s=u.value;return s&&"object"==_n(s)&&r.call(s,"__await")?e.resolve(s.__await).then((function(t){n("next",t,i,l)}),(function(t){n("throw",t,i,l)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return n("throw",t,i,l)}))}l(c.arg)}var a;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function V(e,n,r){var o=f;return function(a,i){if(o===h)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var l=r.delegate;if(l){var c=L(l,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var u=d(e,n,r);if("normal"===u.type){if(o=r.done?y:p,u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=y,r.method="throw",r.arg=u.arg)}}}function L(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var a=d(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,g;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function U(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(U,this),this.reset(!0)}function E(e){if(e||""===e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(_n(e)+" is not iterable")}return m.prototype=w,o(S,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:m,configurable:!0}),m.displayName=u(w,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,u(t,c,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},k(x.prototype),u(x.prototype,l,(function(){return this})),e.AsyncIterator=x,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new x(s(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},k(S),u(S,c,"Generator"),u(S,i,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=E,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return l.type="throw",l.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],l=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:E(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function kn(t,e,n,r,o,a,i){try{var l=t[a](i),c=l.value}catch(t){return void n(t)}l.done?e(c):Promise.resolve(c).then(r,o)}var xn={class:"adfy-product-card"},Vn={class:"adfy-category"},Ln={class:"adfy-product-box"},Un={class:"adfy-product-thumb"},jn=["src","alt"],On={class:"content"},En=["innerHTML"],Hn=["innerHTML"],Mn={class:"adfy-product-actions"};const Pn={__name:"Recommended",props:{slug:{type:String,required:!1},name:{type:String,required:!1},description:{type:String,required:!1},thumb:{type:String,required:!1},category:{type:String,required:!1},status:{type:String,required:!1}},setup:function(t){var e=t,n=wp.i18n.__,o=bn(),a=e.slug,i=e.name,l=e.thumb,c=e.description,u=e.category,s=(0,r.iH)(!1),d=(0,r.iH)(!1),f=(0,r.iH)(!1),p=(0,r.iH)(!1),h=n("Activate now","addonify-floating-cart"),y=n("Activating...","addonify-floating-cart"),g=n("Install now","addonify-floating-cart"),v=n("Installing...","addonify-floating-cart"),m=n("Installed","addonify-floating-cart"),w=function(){var t,e=(t=Sn().mark((function t(e){return Sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return s.value=!0,p.value=!0,t.prev=2,t.next=5,o.handleAddonInstallation(e);case 5:"active"==t.sent.status&&(s.value=!1,p.value=!1,d.value=!0),t.next=14;break;case 9:t.prev=9,t.t0=t.catch(2),s.value=!1,p.value=!1,d.value=!1;case 14:case"end":return t.stop()}}),t,null,[[2,9]])})),function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function i(t){kn(a,r,o,i,l,"next",t)}function l(t){kn(a,r,o,i,l,"throw",t)}i(void 0)}))});return function(t){return e.apply(this,arguments)}}();return function(t,n){return(0,r.wg)(),(0,r.iD)("div",xn,[(0,r._)("span",Vn,(0,r.zw)((0,r.SU)(u)),1),(0,r._)("div",Ln,[(0,r._)("figure",Un,[(0,r._)("img",{src:(0,r.SU)(l),alt:(0,r.SU)(a)},null,8,jn)]),(0,r._)("div",On,[(0,r._)("h3",{class:"adfy-product-title",innerHTML:(0,r.SU)(i)},null,8,En),(0,r._)("p",{class:"adfy-product-description",innerHTML:(0,r.SU)(c)},null,8,Hn),(0,r._)("div",Mn,["active"==e.status||"network-active"==e.status?((0,r.wg)(),(0,r.j4)((0,r.SU)(dn.mi),{key:0,size:"large",id:(0,r.SU)(a),plain:"",disabled:""},{default:(0,r.w5)((function(){return[(0,r.Uk)((0,r.zw)((0,r.SU)(m)),1)]})),_:1},8,["id"])):"inactive"==e.status?((0,r.wg)(),(0,r.j4)((0,r.SU)(dn.mi),{key:1,type:"success",size:"large",id:(0,r.SU)(a),plain:"",loading:s.value,disabled:d.value,onClick:n[0]||(n[0]=function(t){return function(t){s.value=!0,f.value=!0;try{"active"==o.updateAddonStatus(t).status&&(s.value=!1,f.value=!1,d.value=!0)}catch(t){s.value=!1,f.value=!1,d.value=!1}}((0,r.SU)(a))})},{default:(0,r.w5)((function(){return[(0,r.Uk)((0,r.zw)(f.value?(0,r.SU)(y):(0,r.SU)(h)),1)]})),_:1},8,["id","loading","disabled"])):((0,r.wg)(),(0,r.j4)((0,r.SU)(dn.mi),{key:2,type:"primary",size:"large",id:(0,r.SU)(a),plain:"",loading:s.value,disabled:d.value,onClick:n[1]||(n[1]=function(t){return w((0,r.SU)(a))})},{default:(0,r.w5)((function(){return[(0,r.Uk)((0,r.zw)(p.value?(0,r.SU)(v):(0,r.SU)(g)),1)]})),_:1},8,["id","loading","disabled"]))])])])])}}};var Zn=n(4659),zn={insert:"head",singleton:!1};Bt()(Zn.Z,zn);Zn.Z.locals;const An=Pn;var qn={class:"adfy-container",id:"addonify-layout"},Dn={class:"adfy-columns main-content"},Fn={class:"adfy-col start aside secondary"},Nn={class:"adfy-col end site-primary"},In={key:1,id:"recommended-products"},Kn={id:"recommended-hot-products"},Tn={class:"adfy-grid"},Wn=(0,r._)("div",{id:"recommended-general-products"},null,-1);var Gn={class:"error-404"};const Yn={__name:"404",setup:function(t){var e=wp.i18n.__;return function(t,n){var o=(0,r.up)("router-link");return(0,r.wg)(),(0,r.iD)("div",Gn,[(0,r._)("h3",null,(0,r.zw)((0,r.SU)(e)("404","addonify-floating-cart")),1),(0,r._)("p",null,(0,r.zw)((0,r.SU)(e)("Oops, page not found!","addonify-floating-cart")),1),(0,r.Wm)(o,{to:"/",class:"adfy-button"},{default:(0,r.w5)((function(){return[(0,r.Uk)((0,r.zw)((0,r.SU)(e)("Go Back","addonify-floating-cart")),1)]})),_:1})])}}};var Bn=[{path:"/",name:"Settings",component:We},{path:"/styles",name:"Styles",component:sn},{path:"/products",name:"Products",component:{__name:"Products",setup:function(t){var e=bn();return(0,r.bv)((function(){e.hasAddonsStateInMemory||e.getRecommdedProductsList().then((function(t){200===t.status&&e.fetchInstalledAddons()}))})),function(t,n){return(0,r.wg)(),(0,r.iD)("section",qn,[(0,r.Wm)(Fe),(0,r._)("main",Dn,[(0,r._)("aside",Fn,[(0,r.Wm)(Ht)]),(0,r._)("section",Nn,[!0===(0,r.SU)(e).isFetching||!0===(0,r.SU)(e).isFetchingAllInstalledAddons||!0===(0,r.SU)(e).isSettingAddonStatus?((0,r.wg)(),(0,r.j4)(_t,{key:0})):((0,r.wg)(),(0,r.iD)("section",In,[(0,r._)("div",Kn,[(0,r._)("div",Tn,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)((0,r.SU)(e).hotAddons,(function(t,n){return(0,r.wg)(),(0,r.j4)(An,{slug:n,name:t.name,description:t.description,thumb:t.thumbnail,category:t.category,status:(0,r.SU)(e).allProductSlugStatus[n]},null,8,["slug","name","description","thumb","category","status"])})),256))])]),Wn]))])])])}}}},{path:"/:catchAll(.*)*",name:"404",component:Yn}];const Rn=(0,mt.p7)({history:(0,mt.r5)(),routes:Bn});var $n=(0,o.WB)(),Qn=(0,r.ri)(vt);Qn.use($n),Qn.use(Rn),Qn.mount("#___adfy-floatingcart-app___")}},t=>{var e=e=>t(t.s=e);t.O(0,[703,898],(()=>(e(2248),e(6378))));t.O()}]);
  • addonify-floating-cart/tags/1.2.13/languages/addonify-floating-cart.pot

    r3203981 r3235777  
    1 # Copyright (C) 2024 Addonify
     1# Copyright (C) 2025 Addonify
    22# This file is distributed under the GPLv2 or later.
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Addonify Floating Cart For WooCommerce 1.2.11\n"
     5"Project-Id-Version: Addonify Floating Cart For WooCommerce 1.2.12\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/addonify-floating-cart\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2024-12-07T08:43:44+00:00\n"
     12"POT-Creation-Date: 2025-02-06T05:18:04+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.11.0\n"
     
    4545
    4646#: admin/class-addonify-floating-cart-admin.php:192
    47 #: admin/assets/js/main.js:732
     47#: admin/assets/js/main.js:753
    4848msgid "Settings"
    4949msgstr ""
     
    957957#: includes/template-functions.php:763
    958958#: public/partials/cart-sections/coupon.php:13
    959 #: admin/assets/js/main.js:1240
     959#: admin/assets/js/main.js:1263
    960960msgid "Go Back"
    961961msgstr ""
     
    11781178msgstr ""
    11791179
    1180 #: admin/assets/js/main.js:281
     1180#: admin/assets/js/main.js:290
    11811181msgid "Check docs"
    11821182msgstr ""
    11831183
    1184 #: admin/assets/js/main.js:450
     1184#: admin/assets/js/main.js:459
    11851185msgid "Select"
    11861186msgstr ""
    11871187
    1188 #: admin/assets/js/main.js:512
    1189 #: admin/assets/js/main.js:540
     1188#: admin/assets/js/main.js:521
     1189#: admin/assets/js/main.js:549
    11901190msgid "Enter text here..."
    11911191msgstr ""
    11921192
    1193 #: admin/assets/js/main.js:588
     1193#: admin/assets/js/main.js:597
    11941194msgid "Version"
    11951195msgstr ""
    11961196
    1197 #: admin/assets/js/main.js:588
     1197#: admin/assets/js/main.js:597
    11981198msgid "Rate"
    11991199msgstr ""
    12001200
    1201 #: admin/assets/js/main.js:655
     1201#: admin/assets/js/main.js:664
    12021202msgid "AFC docs"
    12031203msgstr ""
    12041204
    1205 #: admin/assets/js/main.js:657
     1205#: admin/assets/js/main.js:666
    12061206msgid "Rate AFC"
    12071207msgstr ""
    12081208
    1209 #: admin/assets/js/main.js:667
     1209#: admin/assets/js/main.js:676
    12101210msgid "Save Options"
    12111211msgstr ""
    12121212
    1213 #: admin/assets/js/main.js:741
     1213#: admin/assets/js/main.js:762
    12141214msgid "Design"
    12151215msgstr ""
    12161216
    1217 #: admin/assets/js/main.js:750
     1217#: admin/assets/js/main.js:771
    12181218msgid "Products"
    12191219msgstr ""
    12201220
    1221 #: admin/assets/js/main.js:1235
     1221#: admin/assets/js/main.js:776
     1222msgid "Donate (Coffee)"
     1223msgstr ""
     1224
     1225#: admin/assets/js/main.js:1258
    12221226msgid "404"
    12231227msgstr ""
    12241228
    1225 #: admin/assets/js/main.js:1235
     1229#: admin/assets/js/main.js:1258
    12261230msgid "Oops, page not found!"
    12271231msgstr ""
    12281232
    1229 #: admin/assets/js/main.js:2851
     1233#: admin/assets/js/main.js:2874
    12301234msgid "Activate now"
    12311235msgstr ""
    12321236
    1233 #: admin/assets/js/main.js:2852
     1237#: admin/assets/js/main.js:2875
    12341238msgid "Activating..."
    12351239msgstr ""
    12361240
    1237 #: admin/assets/js/main.js:2853
     1241#: admin/assets/js/main.js:2876
    12381242msgid "Install now"
    12391243msgstr ""
    12401244
    1241 #: admin/assets/js/main.js:2854
     1245#: admin/assets/js/main.js:2877
    12421246msgid "Installing..."
    12431247msgstr ""
    12441248
    1245 #: admin/assets/js/main.js:2855
     1249#: admin/assets/js/main.js:2878
    12461250msgid "Installed"
    12471251msgstr ""
    12481252
    1249 #: admin/assets/js/main.js:5784
     1253#: admin/assets/js/main.js:5807
    12501254#: admin/src/stores/options.js:106
    12511255msgid "Something went wrong while fetching settings."
    12521256msgstr ""
    12531257
    1254 #: admin/assets/js/main.js:5847
    1255 #: admin/assets/js/main.js:5868
     1258#: admin/assets/js/main.js:5870
     1259#: admin/assets/js/main.js:5891
    12561260#: admin/src/stores/options.js:158
    12571261#: admin/src/stores/options.js:182
     
    12591263msgstr ""
    12601264
    1261 #: admin/assets/js/main.js:6139
     1265#: admin/assets/js/main.js:6162
    12621266#: admin/src/stores/product.js:216
    12631267msgid "Plugin installed successfully."
    12641268msgstr ""
    12651269
    1266 #: admin/assets/js/main.js:6160
     1270#: admin/assets/js/main.js:6183
    12671271#: admin/src/stores/product.js:231
    12681272msgid "Error: couldn't install plugin."
    12691273msgstr ""
    12701274
    1271 #: admin/assets/js/main.js:6210
     1275#: admin/assets/js/main.js:6233
    12721276#: admin/src/stores/product.js:266
    12731277msgid "Plugin activated successfully."
    12741278msgstr ""
    12751279
    1276 #: admin/assets/js/main.js:6229
     1280#: admin/assets/js/main.js:6252
    12771281#: admin/src/stores/product.js:279
    12781282msgid "Error: Couldn't activate the plugin."
  • addonify-floating-cart/trunk/README.txt

    r3213113 r3235777  
    66Requires PHP: 7.4
    77Tested up to: 6.7.1
    8 Stable tag: 1.2.12
     8Stable tag: 1.2.13
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    132132== Changelog ==
    133133
     134= 1.2.13 - 06 February, 2025 =
     135
     136- Added: Donation link in the plugin setting page.
     137
    134138= 1.2.12 - 26 December, 2024 =
    135139
  • addonify-floating-cart/trunk/addonify-floating-cart.php

    r3213113 r3235777  
    1111 * Plugin URI:        https://addonify.com/addonify-floating-cart
    1212 * Description:       Addonify Floating Cart is a free WooCommerce addon that adds a sticky, interactive cart, letting visitors manage items without visiting the cart page.
    13  * Version:           1.2.12
     13 * Version:           1.2.13
    1414 * Requires at least: 6.0.0
    1515 * Requires PHP:      7.4
     
    3434 * Rename this for your plugin and update it as you release new versions.
    3535 */
    36 define( 'ADDONIFY_FLOATING_CART_VERSION', '1.2.12' );
     36define( 'ADDONIFY_FLOATING_CART_VERSION', '1.2.13' );
    3737define( 'ADDONIFY_FLOATING_CART_BASENAME', plugin_basename( __FILE__ ) );
    3838define( 'ADDONIFY_FLOATING_CART_PATH', plugin_dir_path( __FILE__ ) );
  • addonify-floating-cart/trunk/admin/assets/js/main.js

    r3150428 r3235777  
    11/*! For license information please see main.js.LICENSE.txt */
    2 "use strict";(self.webpackChunkaddonify_floating_cart=self.webpackChunkaddonify_floating_cart||[]).push([[522],{4012:(t,e,n)=>{n.d(e,{Z:()=>a});var r=n(7890),o=n.n(r)()((function(t){return t[1]}));o.push([t.id,'.unsupported-control-text{font-size:14px}.adfy-button.fake-button.forward-to-doc-link{fill:var(--addonify_primary_color);color:var(--addonify_primary_color);font-size:14px}.adfy-button.fake-button.forward-to-doc-link:after,.adfy-button.fake-button.forward-to-doc-link:before{bottom:-5px;content:"";height:2px}.adfy-button.fake-button.forward-to-doc-link:after{background-color:var(--addonify_primary_color);content:""}.adfy-button.fake-button.forward-to-doc-link:hover{fill:var(--addonify_base_text_color);color:var(--addonify_base_text_color)}.adfy-button.fake-button.forward-to-doc-link:hover:after,.adfy-button.fake-button.forward-to-doc-link:hover:before{background-color:var(--addonify_base_text_color);content:""}',""]);const a=o},7797:(t,e,n)=>{n.d(e,{Z:()=>a});var r=n(7890),o=n.n(r)()((function(t){return t[1]}));o.push([t.id,".adfy-options .el-textarea__inner{display:block;font-family:monospace;min-height:200px;padding:15px;width:100%}",""]);const a=o},4659:(t,e,n)=>{n.d(e,{Z:()=>a});var r=n(7890),o=n.n(r)()((function(t){return t[1]}));o.push([t.id,"#recommended-hot-products .el-skeleton.is-animated .el-skeleton__item{background:linear-gradient(90deg,#e1e1e1 25%,#d8d8d8 37%,#c7c7c7 63%);background-size:400% 100%}",""]);const a=o},6378:()=>{},2248:(t,e,n)=>{var r=n(6183),o=n(3642),a={width:"170",height:"44",viewBox:"0 0 170 44",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i=[(0,r.uE)('<path d="M55.512 23.64V33H54.888V23.64H55.512ZM60.228 30.24C60.228 30.832 60.108 31.344 59.868 31.776C59.636 32.208 59.316 32.54 58.908 32.772C58.508 33.004 58.06 33.12 57.564 33.12C57.1 33.12 56.692 32.996 56.34 32.748C55.988 32.492 55.712 32.148 55.512 31.716C55.32 31.276 55.224 30.784 55.224 30.24C55.224 29.688 55.32 29.196 55.512 28.764C55.712 28.332 55.988 27.992 56.34 27.744C56.692 27.488 57.1 27.36 57.564 27.36C58.06 27.36 58.508 27.476 58.908 27.708C59.316 27.94 59.636 28.272 59.868 28.704C60.108 29.128 60.228 29.64 60.228 30.24ZM59.604 30.24C59.604 29.76 59.508 29.348 59.316 29.004C59.124 28.66 58.868 28.4 58.548 28.224C58.228 28.04 57.872 27.948 57.48 27.948C57.144 27.948 56.824 28.048 56.52 28.248C56.216 28.448 55.972 28.72 55.788 29.064C55.604 29.408 55.512 29.8 55.512 30.24C55.512 30.68 55.604 31.072 55.788 31.416C55.972 31.76 56.216 32.032 56.52 32.232C56.824 32.432 57.144 32.532 57.48 32.532C57.872 32.532 58.228 32.444 58.548 32.268C58.868 32.084 59.124 31.82 59.316 31.476C59.508 31.132 59.604 30.72 59.604 30.24ZM65.6756 27.48L62.0756 35.64H61.3796L62.7956 32.436L60.5636 27.48H61.3076L63.3116 32.184L63.0236 32.16L64.9796 27.48H65.6756ZM70.3604 31.344C70.3604 31.616 70.4204 31.844 70.5404 32.028C70.6684 32.212 70.8364 32.352 71.0444 32.448C71.2604 32.536 71.4964 32.58 71.7524 32.58C72.0644 32.58 72.3484 32.508 72.6044 32.364C72.8684 32.22 73.0804 32.008 73.2404 31.728C73.4004 31.448 73.4804 31.104 73.4804 30.696L73.6244 31.224C73.6244 31.656 73.5204 32.012 73.3124 32.292C73.1044 32.572 72.8444 32.78 72.5324 32.916C72.2204 33.052 71.9044 33.12 71.5844 33.12C71.2724 33.12 70.9724 33.056 70.6844 32.928C70.3964 32.792 70.1644 32.596 69.9884 32.34C69.8124 32.084 69.7244 31.76 69.7244 31.368C69.7244 30.832 69.9084 30.408 70.2764 30.096C70.6524 29.784 71.1604 29.628 71.8004 29.628C72.1604 29.628 72.4684 29.672 72.7244 29.76C72.9884 29.84 73.2044 29.932 73.3724 30.036C73.5404 30.14 73.6604 30.228 73.7324 30.3V30.696C73.4604 30.504 73.1684 30.364 72.8564 30.276C72.5524 30.18 72.2324 30.132 71.8964 30.132C71.5844 30.132 71.3124 30.176 71.0804 30.264C70.8564 30.352 70.6804 30.484 70.5524 30.66C70.4244 30.836 70.3604 31.064 70.3604 31.344ZM70.3844 28.488L70.0724 28.02C70.2804 27.876 70.5484 27.732 70.8764 27.588C71.2124 27.436 71.6244 27.36 72.1124 27.36C72.5284 27.36 72.8844 27.428 73.1804 27.564C73.4764 27.7 73.7044 27.896 73.8644 28.152C74.0244 28.408 74.1044 28.72 74.1044 29.088V33H73.4804V29.172C73.4804 29.012 73.4564 28.86 73.4084 28.716C73.3604 28.564 73.2804 28.428 73.1684 28.308C73.0644 28.188 72.9204 28.092 72.7364 28.02C72.5524 27.948 72.3284 27.912 72.0644 27.912C71.7924 27.912 71.5484 27.944 71.3324 28.008C71.1164 28.072 70.9284 28.148 70.7684 28.236C70.6164 28.324 70.4884 28.408 70.3844 28.488ZM80.0551 23.64H80.6791V33H80.0551V23.64ZM75.3391 30.24C75.3391 29.64 75.4591 29.128 75.6991 28.704C75.9391 28.272 76.2591 27.94 76.6591 27.708C77.0671 27.476 77.5151 27.36 78.0031 27.36C78.4831 27.36 78.8951 27.488 79.2391 27.744C79.5831 27.992 79.8511 28.332 80.0431 28.764C80.2431 29.196 80.3431 29.688 80.3431 30.24C80.3431 30.784 80.2431 31.276 80.0431 31.716C79.8511 32.148 79.5831 32.492 79.2391 32.748C78.8951 32.996 78.4831 33.12 78.0031 33.12C77.5151 33.12 77.0671 33.004 76.6591 32.772C76.2591 32.54 75.9391 32.208 75.6991 31.776C75.4591 31.344 75.3391 30.832 75.3391 30.24ZM75.9751 30.24C75.9751 30.72 76.0671 31.132 76.2511 31.476C76.4431 31.82 76.6991 32.084 77.0191 32.268C77.3471 32.444 77.7031 32.532 78.0871 32.532C78.4311 32.532 78.7511 32.432 79.0471 32.232C79.3511 32.032 79.5951 31.76 79.7791 31.416C79.9631 31.072 80.0551 30.68 80.0551 30.24C80.0551 29.8 79.9631 29.408 79.7791 29.064C79.5951 28.72 79.3511 28.448 79.0471 28.248C78.7511 28.048 78.4311 27.948 78.0871 27.948C77.7031 27.948 77.3471 28.04 77.0191 28.224C76.6991 28.4 76.4431 28.66 76.2511 29.004C76.0671 29.348 75.9751 29.76 75.9751 30.24ZM86.7465 23.64H87.3705V33H86.7465V23.64ZM82.0305 30.24C82.0305 29.64 82.1505 29.128 82.3905 28.704C82.6305 28.272 82.9505 27.94 83.3505 27.708C83.7585 27.476 84.2065 27.36 84.6945 27.36C85.1745 27.36 85.5865 27.488 85.9305 27.744C86.2745 27.992 86.5425 28.332 86.7345 28.764C86.9345 29.196 87.0345 29.688 87.0345 30.24C87.0345 30.784 86.9345 31.276 86.7345 31.716C86.5425 32.148 86.2745 32.492 85.9305 32.748C85.5865 32.996 85.1745 33.12 84.6945 33.12C84.2065 33.12 83.7585 33.004 83.3505 32.772C82.9505 32.54 82.6305 32.208 82.3905 31.776C82.1505 31.344 82.0305 30.832 82.0305 30.24ZM82.6665 30.24C82.6665 30.72 82.7585 31.132 82.9425 31.476C83.1345 31.82 83.3905 32.084 83.7105 32.268C84.0385 32.444 84.3945 32.532 84.7785 32.532C85.1225 32.532 85.4425 32.432 85.7385 32.232C86.0425 32.032 86.2865 31.76 86.4705 31.416C86.6545 31.072 86.7465 30.68 86.7465 30.24C86.7465 29.8 86.6545 29.408 86.4705 29.064C86.2865 28.72 86.0425 28.448 85.7385 28.248C85.4425 28.048 85.1225 27.948 84.7785 27.948C84.3945 27.948 84.0385 28.04 83.7105 28.224C83.3905 28.4 83.1345 28.66 82.9425 29.004C82.7585 29.348 82.6665 29.76 82.6665 30.24ZM88.7219 30.24C88.7219 29.68 88.8459 29.184 89.0939 28.752C89.3419 28.32 89.6779 27.98 90.1019 27.732C90.5339 27.484 91.0179 27.36 91.5539 27.36C92.0899 27.36 92.5699 27.484 92.9939 27.732C93.4259 27.98 93.7659 28.32 94.0139 28.752C94.2619 29.184 94.3859 29.68 94.3859 30.24C94.3859 30.792 94.2619 31.288 94.0139 31.728C93.7659 32.16 93.4259 32.5 92.9939 32.748C92.5699 32.996 92.0899 33.12 91.5539 33.12C91.0179 33.12 90.5339 32.996 90.1019 32.748C89.6779 32.5 89.3419 32.16 89.0939 31.728C88.8459 31.288 88.7219 30.792 88.7219 30.24ZM89.3579 30.24C89.3579 30.688 89.4539 31.084 89.6459 31.428C89.8379 31.772 90.0979 32.044 90.4259 32.244C90.7619 32.436 91.1379 32.532 91.5539 32.532C91.9699 32.532 92.3419 32.436 92.6699 32.244C93.0059 32.044 93.2699 31.772 93.4619 31.428C93.6539 31.084 93.7499 30.688 93.7499 30.24C93.7499 29.8 93.6539 29.408 93.4619 29.064C93.2699 28.712 93.0059 28.44 92.6699 28.248C92.3419 28.048 91.9699 27.948 91.5539 27.948C91.1379 27.948 90.7619 28.048 90.4259 28.248C90.0979 28.44 89.8379 28.708 89.6459 29.052C89.4539 29.396 89.3579 29.792 89.3579 30.24ZM99.3396 29.448C99.3396 28.976 99.2356 28.608 99.0276 28.344C98.8196 28.08 98.4916 27.948 98.0436 27.948C97.7316 27.948 97.4516 28.024 97.2036 28.176C96.9636 28.32 96.7716 28.52 96.6276 28.776C96.4916 29.032 96.4236 29.32 96.4236 29.64V33H95.7996V27.48H96.4236V28.632C96.5756 28.232 96.8036 27.92 97.1076 27.696C97.4196 27.472 97.7796 27.36 98.1876 27.36C98.7636 27.36 99.2036 27.544 99.5076 27.912C99.8116 28.272 99.9636 28.76 99.9636 29.376V33H99.3396V29.448ZM101.858 24.984C101.858 24.856 101.902 24.752 101.99 24.672C102.078 24.584 102.182 24.54 102.302 24.54C102.43 24.54 102.534 24.584 102.614 24.672C102.702 24.752 102.746 24.856 102.746 24.984C102.746 25.104 102.702 25.208 102.614 25.296C102.534 25.384 102.43 25.428 102.302 25.428C102.182 25.428 102.078 25.384 101.99 25.296C101.902 25.208 101.858 25.104 101.858 24.984ZM101.99 27.48H102.614V33H101.99V27.48ZM104.227 27.48H106.819V28.068H104.227V27.48ZM106.939 24.552C106.851 24.424 106.743 24.328 106.615 24.264C106.487 24.192 106.351 24.156 106.207 24.156C106.007 24.156 105.847 24.208 105.727 24.312C105.615 24.416 105.531 24.564 105.475 24.756C105.419 24.948 105.391 25.168 105.391 25.416V33H104.767V25.344C104.767 24.968 104.819 24.648 104.923 24.384C105.035 24.112 105.199 23.904 105.415 23.76C105.631 23.608 105.907 23.532 106.243 23.532C106.419 23.532 106.571 23.56 106.699 23.616C106.835 23.664 106.951 23.728 107.047 23.808C107.151 23.888 107.231 23.968 107.287 24.048L106.939 24.552ZM112.258 27.48L108.658 35.64H107.962L109.378 32.436L107.146 27.48H107.89L109.894 32.184L109.606 32.16L111.562 27.48H112.258ZM112.846 32.712C112.846 32.584 112.89 32.476 112.978 32.388C113.066 32.3 113.17 32.256 113.29 32.256C113.418 32.256 113.522 32.3 113.602 32.388C113.69 32.476 113.734 32.584 113.734 32.712C113.734 32.832 113.69 32.936 113.602 33.024C113.522 33.112 113.418 33.156 113.29 33.156C113.17 33.156 113.066 33.112 112.978 33.024C112.89 32.936 112.846 32.832 112.846 32.712Z" fill="#313131"></path><path d="M53.26 19V6.04H60.703V7.363H54.583V11.863H59.623V13.177H54.583V19H53.26ZM63.4103 19V5.77H64.7333V19H63.4103ZM72.3905 19.27C71.4245 19.27 70.5995 19.051 69.9155 18.613C69.2315 18.175 68.7065 17.569 68.3405 16.795C67.9745 16.021 67.7915 15.133 67.7915 14.131C67.7915 13.111 67.9775 12.217 68.3495 11.449C68.7215 10.681 69.2495 10.084 69.9335 9.658C70.6235 9.226 71.4425 9.01 72.3905 9.01C73.3625 9.01 74.1905 9.229 74.8745 9.667C75.5645 10.099 76.0895 10.702 76.4495 11.476C76.8155 12.244 76.9985 13.129 76.9985 14.131C76.9985 15.151 76.8155 16.048 76.4495 16.822C76.0835 17.59 75.5555 18.19 74.8655 18.622C74.1755 19.054 73.3505 19.27 72.3905 19.27ZM72.3905 18.001C73.4705 18.001 74.2745 17.644 74.8025 16.93C75.3305 16.21 75.5945 15.277 75.5945 14.131C75.5945 12.955 75.3275 12.019 74.7935 11.323C74.2655 10.627 73.4645 10.279 72.3905 10.279C71.6645 10.279 71.0645 10.444 70.5905 10.774C70.1225 11.098 69.7715 11.551 69.5375 12.133C69.3095 12.709 69.1955 13.375 69.1955 14.131C69.1955 15.301 69.4655 16.24 70.0055 16.948C70.5455 17.65 71.3405 18.001 72.3905 18.001ZM82.6648 19.27C81.9328 19.27 81.3178 19.138 80.8198 18.874C80.3278 18.61 79.9588 18.259 79.7128 17.821C79.4668 17.383 79.3438 16.906 79.3438 16.39C79.3438 15.862 79.4488 15.412 79.6588 15.04C79.8748 14.662 80.1658 14.353 80.5318 14.113C80.9038 13.873 81.3328 13.69 81.8188 13.564C82.3108 13.444 82.8538 13.339 83.4478 13.249C84.0478 13.153 84.6328 13.072 85.2028 13.006C85.7788 12.934 86.2828 12.865 86.7148 12.799L86.2468 13.087C86.2648 12.127 86.0788 11.416 85.6888 10.954C85.2988 10.492 84.6208 10.261 83.6548 10.261C82.9888 10.261 82.4248 10.411 81.9628 10.711C81.5068 11.011 81.1858 11.485 80.9998 12.133L79.7128 11.755C79.9348 10.885 80.3818 10.21 81.0538 9.73C81.7258 9.25 82.5988 9.01 83.6728 9.01C84.5608 9.01 85.3138 9.178 85.9318 9.514C86.5558 9.844 86.9968 10.324 87.2548 10.954C87.3748 11.236 87.4528 11.551 87.4888 11.899C87.5248 12.247 87.5428 12.601 87.5428 12.961V19H86.3638V16.561L86.7058 16.705C86.3758 17.539 85.8628 18.175 85.1668 18.613C84.4708 19.051 83.6368 19.27 82.6648 19.27ZM82.8178 18.127C83.4358 18.127 83.9758 18.016 84.4378 17.794C84.8998 17.572 85.2718 17.269 85.5538 16.885C85.8358 16.495 86.0188 16.057 86.1028 15.571C86.1748 15.259 86.2138 14.917 86.2198 14.545C86.2258 14.167 86.2288 13.885 86.2288 13.699L86.7328 13.96C86.2828 14.02 85.7938 14.08 85.2658 14.14C84.7438 14.2 84.2278 14.269 83.7178 14.347C83.2138 14.425 82.7578 14.518 82.3498 14.626C82.0738 14.704 81.8068 14.815 81.5488 14.959C81.2908 15.097 81.0778 15.283 80.9098 15.517C80.7478 15.751 80.6668 16.042 80.6668 16.39C80.6668 16.672 80.7358 16.945 80.8738 17.209C81.0178 17.473 81.2458 17.692 81.5578 17.866C81.8758 18.04 82.2958 18.127 82.8178 18.127ZM96.0778 19C95.5318 19.114 94.9918 19.159 94.4578 19.135C93.9298 19.111 93.4558 18.997 93.0358 18.793C92.6218 18.589 92.3068 18.271 92.0908 17.839C91.9168 17.479 91.8208 17.116 91.8028 16.75C91.7908 16.378 91.7848 15.955 91.7848 15.481V6.58H93.0988V15.427C93.0988 15.835 93.1018 16.177 93.1078 16.453C93.1198 16.723 93.1828 16.963 93.2968 17.173C93.5128 17.575 93.8548 17.815 94.3228 17.893C94.7968 17.971 95.3818 17.953 96.0778 17.839V19ZM89.7058 10.414V9.28H96.0778V10.414H89.7058ZM99.0728 7.435V5.95H100.396V7.435H99.0728ZM99.0728 19V9.28H100.396V19H99.0728ZM111.014 19V14.041C111.014 13.501 110.963 13.006 110.861 12.556C110.759 12.1 110.594 11.704 110.366 11.368C110.144 11.026 109.853 10.762 109.493 10.576C109.139 10.39 108.707 10.297 108.197 10.297C107.729 10.297 107.315 10.378 106.955 10.54C106.601 10.702 106.301 10.936 106.055 11.242C105.815 11.542 105.632 11.908 105.506 12.34C105.38 12.772 105.317 13.264 105.317 13.816L104.381 13.609C104.381 12.613 104.555 11.776 104.903 11.098C105.251 10.42 105.731 9.907 106.343 9.559C106.955 9.211 107.657 9.037 108.449 9.037C109.031 9.037 109.538 9.127 109.97 9.307C110.408 9.487 110.777 9.73 111.077 10.036C111.383 10.342 111.629 10.693 111.815 11.089C112.001 11.479 112.136 11.896 112.22 12.34C112.304 12.778 112.346 13.216 112.346 13.654V19H111.014ZM103.985 19V9.28H105.182V11.674H105.317V19H103.985ZM119.442 23.59C118.944 23.59 118.452 23.515 117.966 23.365C117.486 23.221 117.042 22.99 116.634 22.672C116.226 22.36 115.884 21.952 115.608 21.448L116.805 20.782C117.075 21.322 117.453 21.709 117.939 21.943C118.431 22.183 118.932 22.303 119.442 22.303C120.144 22.303 120.711 22.171 121.143 21.907C121.581 21.649 121.899 21.265 122.097 20.755C122.295 20.245 122.391 19.609 122.385 18.847V16.255H122.538V9.28H123.717V18.865C123.717 19.141 123.708 19.405 123.69 19.657C123.678 19.915 123.651 20.167 123.609 20.413C123.495 21.139 123.258 21.736 122.898 22.204C122.544 22.672 122.076 23.02 121.494 23.248C120.918 23.476 120.234 23.59 119.442 23.59ZM119.352 19.27C118.446 19.27 117.672 19.045 117.03 18.595C116.388 18.139 115.896 17.524 115.554 16.75C115.212 15.976 115.041 15.103 115.041 14.131C115.041 13.165 115.209 12.295 115.545 11.521C115.887 10.747 116.376 10.135 117.012 9.685C117.648 9.235 118.41 9.01 119.298 9.01C120.21 9.01 120.978 9.232 121.602 9.676C122.226 10.12 122.697 10.729 123.015 11.503C123.339 12.271 123.501 13.147 123.501 14.131C123.501 15.097 123.342 15.97 123.024 16.75C122.706 17.524 122.238 18.139 121.62 18.595C121.002 19.045 120.246 19.27 119.352 19.27ZM119.487 18.037C120.177 18.037 120.747 17.869 121.197 17.533C121.647 17.197 121.983 16.735 122.205 16.147C122.427 15.553 122.538 14.881 122.538 14.131C122.538 13.369 122.427 12.697 122.205 12.115C121.983 11.527 121.647 11.068 121.197 10.738C120.753 10.408 120.192 10.243 119.514 10.243C118.818 10.243 118.242 10.414 117.786 10.756C117.33 11.098 116.991 11.563 116.769 12.151C116.553 12.739 116.445 13.399 116.445 14.131C116.445 14.869 116.556 15.535 116.778 16.129C117.006 16.717 117.345 17.182 117.795 17.524C118.245 17.866 118.809 18.037 119.487 18.037ZM136.884 19.27C135.594 19.27 134.505 18.985 133.617 18.415C132.729 17.839 132.057 17.044 131.601 16.03C131.145 15.016 130.917 13.846 130.917 12.52C130.917 11.194 131.145 10.024 131.601 9.01C132.057 7.996 132.729 7.204 133.617 6.634C134.505 6.058 135.594 5.77 136.884 5.77C138.39 5.77 139.62 6.157 140.574 6.931C141.528 7.699 142.182 8.731 142.536 10.027L141.186 10.378C140.91 9.352 140.415 8.539 139.701 7.939C138.987 7.339 138.048 7.039 136.884 7.039C135.87 7.039 135.027 7.27 134.355 7.732C133.683 8.194 133.176 8.839 132.834 9.667C132.498 10.489 132.324 11.44 132.312 12.52C132.306 13.6 132.471 14.551 132.807 15.373C133.149 16.195 133.659 16.84 134.337 17.308C135.021 17.77 135.87 18.001 136.884 18.001C138.048 18.001 138.987 17.701 139.701 17.101C140.415 16.495 140.91 15.682 141.186 14.662L142.536 15.013C142.182 16.309 141.528 17.344 140.574 18.118C139.62 18.886 138.39 19.27 136.884 19.27ZM148.203 19.27C147.471 19.27 146.856 19.138 146.358 18.874C145.866 18.61 145.497 18.259 145.251 17.821C145.005 17.383 144.882 16.906 144.882 16.39C144.882 15.862 144.987 15.412 145.197 15.04C145.413 14.662 145.704 14.353 146.07 14.113C146.442 13.873 146.871 13.69 147.357 13.564C147.849 13.444 148.392 13.339 148.986 13.249C149.586 13.153 150.171 13.072 150.741 13.006C151.317 12.934 151.821 12.865 152.253 12.799L151.785 13.087C151.803 12.127 151.617 11.416 151.227 10.954C150.837 10.492 150.159 10.261 149.193 10.261C148.527 10.261 147.963 10.411 147.501 10.711C147.045 11.011 146.724 11.485 146.538 12.133L145.251 11.755C145.473 10.885 145.92 10.21 146.592 9.73C147.264 9.25 148.137 9.01 149.211 9.01C150.099 9.01 150.852 9.178 151.47 9.514C152.094 9.844 152.535 10.324 152.793 10.954C152.913 11.236 152.991 11.551 153.027 11.899C153.063 12.247 153.081 12.601 153.081 12.961V19H151.902V16.561L152.244 16.705C151.914 17.539 151.401 18.175 150.705 18.613C150.009 19.051 149.175 19.27 148.203 19.27ZM148.356 18.127C148.974 18.127 149.514 18.016 149.976 17.794C150.438 17.572 150.81 17.269 151.092 16.885C151.374 16.495 151.557 16.057 151.641 15.571C151.713 15.259 151.752 14.917 151.758 14.545C151.764 14.167 151.767 13.885 151.767 13.699L152.271 13.96C151.821 14.02 151.332 14.08 150.804 14.14C150.282 14.2 149.766 14.269 149.256 14.347C148.752 14.425 148.296 14.518 147.888 14.626C147.612 14.704 147.345 14.815 147.087 14.959C146.829 15.097 146.616 15.283 146.448 15.517C146.286 15.751 146.205 16.042 146.205 16.39C146.205 16.672 146.274 16.945 146.412 17.209C146.556 17.473 146.784 17.692 147.096 17.866C147.414 18.04 147.834 18.127 148.356 18.127ZM156.324 19V9.28H157.512V11.62L157.278 11.314C157.386 11.026 157.527 10.762 157.701 10.522C157.875 10.276 158.064 10.075 158.268 9.919C158.52 9.697 158.814 9.529 159.15 9.415C159.486 9.295 159.825 9.226 160.167 9.208C160.509 9.184 160.821 9.208 161.103 9.28V10.522C160.749 10.432 160.362 10.411 159.942 10.459C159.522 10.507 159.135 10.675 158.781 10.963C158.457 11.215 158.214 11.518 158.052 11.872C157.89 12.22 157.782 12.592 157.728 12.988C157.674 13.378 157.647 13.765 157.647 14.149V19H156.324ZM169.002 19C168.456 19.114 167.916 19.159 167.382 19.135C166.854 19.111 166.38 18.997 165.96 18.793C165.546 18.589 165.231 18.271 165.015 17.839C164.841 17.479 164.745 17.116 164.727 16.75C164.715 16.378 164.709 15.955 164.709 15.481V6.58H166.023V15.427C166.023 15.835 166.026 16.177 166.032 16.453C166.044 16.723 166.107 16.963 166.221 17.173C166.437 17.575 166.779 17.815 167.247 17.893C167.721 17.971 168.306 17.953 169.002 17.839V19ZM162.63 10.414V9.28H169.002V10.414H162.63Z" fill="#313131"></path><path d="M0 3C0 1.34315 1.34315 0 3 0H41C42.6569 0 44 1.34315 44 3V29C44 37.2843 37.2843 44 29 44H3C1.34315 44 0 42.6569 0 41V3Z" fill="#770CFF"></path><g clip-path="url(#clip0_106_2)"><path d="M17.25 31.1667C17.7563 31.1667 18.1667 30.7563 18.1667 30.25C18.1667 29.7437 17.7563 29.3333 17.25 29.3333C16.7438 29.3333 16.3334 29.7437 16.3334 30.25C16.3334 30.7563 16.7438 31.1667 17.25 31.1667Z" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M27.3333 31.1667C27.8396 31.1667 28.25 30.7563 28.25 30.25C28.25 29.7437 27.8396 29.3333 27.3333 29.3333C26.827 29.3333 26.4166 29.7437 26.4166 30.25C26.4166 30.7563 26.827 31.1667 27.3333 31.1667Z" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M9.91663 11.9167H13.5833L16.04 24.1908C16.1238 24.6129 16.3534 24.992 16.6885 25.2618C17.0237 25.5316 17.4431 25.6749 17.8733 25.6667H26.7833C27.2135 25.6749 27.6329 25.5316 27.968 25.2618C28.3032 24.992 28.5328 24.6129 28.6166 24.1908L30.0833 16.5H14.5" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></g><defs><clipPath id="clip0_106_2"><rect width="22" height="22" fill="white" transform="translate(9 11)"></rect></clipPath></defs>',5)];var c=n(2618);const l={},u=(0,c.Z)(l,[["render",function(t,e){return(0,r.wg)(),(0,r.iD)("svg",a,i)}]]);var s={key:0,viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},d=[(0,r._)("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32zm448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32zm-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32zM195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0zm-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"},null,-1)],f={key:1,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},p=[(0,r._)("path",{d:"M11 18H7.94101C7.64391 16.7274 6.30412 15.6857 5.75395 14.9992C4.65645 13.6297 4 11.8915 4 10C4 5.58172 7.58172 2 12 2C16.4183 2 20 5.58172 20 10C20 11.8925 19.3428 13.6315 18.2443 15.0014C17.6944 15.687 16.3558 16.7276 16.059 18H13V13H11V18ZM16 20V21C16 22.1046 15.1046 23 14 23H10C8.89543 23 8 22.1046 8 21V20H16Z"},null,-1)],h={key:2,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},y=[(0,r._)("path",{d:"M21 10.063V4C21 3.44772 20.5523 3 20 3H19C17.0214 4.97864 13.3027 6.08728 11 6.61281V17.3872C13.3027 17.9127 17.0214 19.0214 19 21H20C20.5523 21 21 20.5523 21 20V13.937C21.8626 13.715 22.5 12.9319 22.5 12 22.5 11.0681 21.8626 10.285 21 10.063ZM5 7C3.89543 7 3 7.89543 3 9V15C3 16.1046 3.89543 17 5 17H6L7 22H9V7H5Z"},null,-1)],v={key:3,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},g=[(0,r._)("path",{d:"M12,10c1.1,0,2,.9,2,2s-.9,2-2,2-2-.9-2-2,.9-2,2-2Zm8.49,10.49c4.68-4.68,4.68-12.29,0-16.97-.39-.39-1.02-.39-1.41,0s-.39,1.02,0,1.41c3.9,3.9,3.9,10.24,0,14.14-.39,.39-.39,1.02,0,1.41,.2,.2,.45,.29,.71,.29s.51-.1,.71-.29Zm-3.54-3.54c1.32-1.32,2.05-3.08,2.05-4.95s-.73-3.63-2.05-4.95c-.39-.39-1.02-.39-1.41,0s-.39,1.02,0,1.41c.94,.94,1.46,2.2,1.46,3.54s-.52,2.59-1.46,3.54c-.39,.39-.39,1.02,0,1.41,.2,.2,.45,.29,.71,.29s.51-.1,.71-.29Zm-12.02,3.54c.39-.39,.39-1.02,0-1.41-3.9-3.9-3.9-10.24,0-14.14,.39-.39,.39-1.02,0-1.41s-1.02-.39-1.41,0C-1.16,8.19-1.16,15.81,3.51,20.49c.2,.2,.45,.29,.71,.29s.51-.1,.71-.29Zm3.54-3.54c.39-.39,.39-1.02,0-1.41-1.95-1.95-1.95-5.12,0-7.07,.39-.39,.39-1.02,0-1.41s-1.02-.39-1.41,0c-2.73,2.73-2.73,7.17,0,9.9,.2,.2,.45,.29,.71,.29s.51-.1,.71-.29Z"},null,-1)],m={key:4,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},w=[(0,r._)("path",{d:"M12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 16C14.2091 16 16 14.2091 16 12C16 9.79086 14.2091 8 12 8C9.79086 8 8 9.79086 8 12C8 14.2091 9.79086 16 12 16ZM12 18C8.68629 18 6 15.3137 6 12C6 8.68629 8.68629 6 12 6C15.3137 6 18 8.68629 18 12C18 15.3137 15.3137 18 12 18ZM12 14C10.8954 14 10 13.1046 10 12C10 10.8954 10.8954 10 12 10C13.1046 10 14 10.8954 14 12C14 13.1046 13.1046 14 12 14Z"},null,-1)],C={key:5,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},b=[(0,r._)("path",{fill:"none",d:"M0 0h24v24H0z"},null,-1),(0,r._)("path",{d:"M2.132 13.63a9.942 9.942 0 0 1 0-3.26c1.102.026 2.092-.502 2.477-1.431.385-.93.058-2.004-.74-2.763a9.942 9.942 0 0 1 2.306-2.307c.76.798 1.834 1.125 2.764.74.93-.385 1.457-1.376 1.43-2.477a9.942 9.942 0 0 1 3.262 0c-.027 1.102.501 2.092 1.43 2.477.93.385 2.004.058 2.763-.74a9.942 9.942 0 0 1 2.307 2.306c-.798.76-1.125 1.834-.74 2.764.385.93 1.376 1.457 2.477 1.43a9.942 9.942 0 0 1 0 3.262c-1.102-.027-2.092.501-2.477 1.43-.385.93-.058 2.004.74 2.763a9.942 9.942 0 0 1-2.306 2.307c-.76-.798-1.834-1.125-2.764-.74-.93.385-1.457 1.376-1.43 2.477a9.942 9.942 0 0 1-3.262 0c.027-1.102-.501-2.092-1.43-2.477-.93-.385-2.004-.058-2.763.74a9.942 9.942 0 0 1-2.307-2.306c.798-.76 1.125-1.834.74-2.764-.385-.93-1.376-1.457-2.477-1.43zM12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6z"},null,-1)],_={key:6,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},S=[(0,r._)("path",{fill:"none",d:"M0 0h24v24H0z"},null,-1),(0,r._)("path",{d:"M4 3h16a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1zm2 9h6a1 1 0 0 1 1 1v3h1v6h-4v-6h1v-2H5a1 1 0 0 1-1-1v-2h2v1zm11.732 1.732l1.768-1.768 1.768 1.768a2.5 2.5 0 1 1-3.536 0z"},null,-1)],k={key:7,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},x=[(0,r._)("path",{fill:"none",d:"M0 0h24v24H0z"},null,-1),(0,r._)("path",{d:"M13 16.938V19h5v2H6v-2h5v-2.062A8.001 8.001 0 0 1 4 9V3h16v6a8.001 8.001 0 0 1-7 7.938zM1 5h2v4H1V5zm20 0h2v4h-2V5z"},null,-1)],V={key:8,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},L=[(0,r._)("path",{d:"M9 2.00318V2H19.9978C20.5513 2 21 2.45531 21 2.9918V21.0082C21 21.556 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5501 3 20.9932V8L9 2.00318ZM5.82918 8H9V4.83086L5.82918 8ZM11 4V9C11 9.55228 10.5523 10 10 10H5V20H19V4H11Z"},null,-1)],U={key:9,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},j=[(0,r._)("path",{d:"M17.0007 1.20801 18.3195 3.68083 20.7923 4.99968 18.3195 6.31852 17.0007 8.79134 15.6818 6.31852 13.209 4.99968 15.6818 3.68083 17.0007 1.20801ZM10.6673 9.33301 15.6673 11.9997 10.6673 14.6663 8.00065 19.6663 5.33398 14.6663.333984 11.9997 5.33398 9.33301 8.00065 4.33301 10.6673 9.33301ZM11.4173 11.9997 9.18905 10.8113 8.00065 8.58301 6.81224 10.8113 4.58398 11.9997 6.81224 13.1881 8.00065 15.4163 9.18905 13.1881 11.4173 11.9997ZM19.6673 16.333 18.0007 13.208 16.334 16.333 13.209 17.9997 16.334 19.6663 18.0007 22.7913 19.6673 19.6663 22.7923 17.9997 19.6673 16.333Z"},null,-1)];const O={__name:"Icons",props:{icon:{type:String,required:!0}},setup:function(t){var e=t.icon;return function(t,n){return(0,r.wg)(),(0,r.iD)(r.HY,null,["spinner"===(0,r.SU)(e)?((0,r.wg)(),(0,r.iD)("svg",s,d)):(0,r.kq)("",!0),"bulb-solid"===(0,r.SU)(e)?((0,r.wg)(),(0,r.iD)("svg",f,p)):(0,r.kq)("",!0),"megaphone-solid"===(0,r.SU)(e)?((0,r.wg)(),(0,r.iD)("svg",h,y)):(0,r.kq)("",!0),"signal-tower"===(0,r.SU)(e)?((0,r.wg)(),(0,r.iD)("svg",v,g)):(0,r.kq)("",!0),"focus-1-solid"===(0,r.SU)(e)?((0,r.wg)(),(0,r.iD)("svg",m,w)):(0,r.kq)("",!0),"gears"===(0,r.SU)(e)?((0,r.wg)(),(0,r.iD)("svg",C,b)):(0,r.kq)("",!0),"paint"===(0,r.SU)(e)?((0,r.wg)(),(0,r.iD)("svg",_,S)):(0,r.kq)("",!0),"trophy"===(0,r.SU)(e)?((0,r.wg)(),(0,r.iD)("svg",k,x)):(0,r.kq)("",!0),"paper"===(0,r.SU)(e)?((0,r.wg)(),(0,r.iD)("svg",V,L)):(0,r.kq)("",!0),"sparkling-stars"===(0,r.SU)(e)?((0,r.wg)(),(0,r.iD)("svg",U,j)):(0,r.kq)("",!0)],64)}}};var E=n(5266);n(26);function H(){H=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var a=e&&e.prototype instanceof g?e:g,i=Object.create(a.prototype),c=new O(r||[]);return o(i,"_invoke",{value:V(t,n,c)}),i}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var f="suspendedStart",p="suspendedYield",h="executing",y="completed",v={};function g(){}function m(){}function w(){}var C={};u(C,i,(function(){return this}));var b=Object.getPrototypeOf,_=b&&b(b(E([])));_&&_!==n&&r.call(_,i)&&(C=_);var S=w.prototype=g.prototype=Object.create(C);function k(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function n(o,a,i,c){var l=d(t[o],t,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==Z(s)&&r.call(s,"__await")?e.resolve(s.__await).then((function(t){n("next",t,i,c)}),(function(t){n("throw",t,i,c)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return n("throw",t,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function V(e,n,r){var o=f;return function(a,i){if(o===h)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var c=r.delegate;if(c){var l=L(c,r);if(l){if(l===v)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var u=d(e,n,r);if("normal"===u.type){if(o=r.done?y:p,u.arg===v)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=y,r.method="throw",r.arg=u.arg)}}}function L(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var a=d(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,v;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function U(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(U,this),this.reset(!0)}function E(e){if(e||""===e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(Z(e)+" is not iterable")}return m.prototype=w,o(S,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:m,configurable:!0}),m.displayName=u(w,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,u(t,l,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},k(x.prototype),u(x.prototype,c,(function(){return this})),e.AsyncIterator=x,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new x(s(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},k(S),u(S,l,"Generator"),u(S,i,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=E,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return c.type="throw",c.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,v):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:E(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}function M(t,e,n,r,o,a,i){try{var c=t[a](i),l=c.value}catch(t){return void n(t)}c.done?e(l):Promise.resolve(l).then(r,o)}function P(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function i(t){M(a,r,o,i,c,"next",t)}function c(t){M(a,r,o,i,c,"throw",t)}i(void 0)}))}}function Z(t){return Z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Z(t)}var z=ADDONIFY_WOOFC_LOCOLIZER.rest_namespace,q={},A=wp.apiFetch,D=wp.i18n.__,F=lodash,N=F.isEqual,I=F.cloneDeep,K=(0,o.Q_)({id:"Options",state:function(){return{data:{},options:{},message:"",isLoading:!0,isSaving:!1,needSave:!1,errors:""}},getters:{needSaving:function(t){return!N(t.options,q)},haveStateInMemory:function(t){return"array"==typeof t.options?0!==t.options.length:"object"===Z(t.options)?0!==Object.keys(t.options).length:void 0}},actions:{renderOptions:function(){var t=this;return P(H().mark((function e(){var n,r,o,a;return H().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t.isLoading=!0,e.next=4,A({path:z+"/get_options",method:"GET",cache:"no-cache"});case 4:n=e.sent,r=n.settings_values,o=n.tabs,a=r,t.data=o,t.options=a,q=I(a),t.isLoading=!1,e.next=19;break;case 14:return e.prev=14,e.t0=e.catch(0),console.log(e.t0),t.isLoading=!1,e.abrupt("return",E.z8.error({message:D("Something went wrong while fetching settings.","addonify-floating-cart"),offset:50,duration:1e4}));case 19:case"end":return e.stop()}}),e,null,[[0,14]])})))()},handleUpdateOptions:function(){var t=this,e=new Object;Object.keys(this.options).map((function(n){N(t.options[n],q[n])||(e[n]=t.options[n])})),this.updateOptions(e)},updateOptions:function(t){var e=this;return P(H().mark((function n(){var r,o;return H().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,e.isSaving=!0,n.next=4,A({path:z+"/update_options",method:"POST",data:{settings_values:t},cache:"no-cache"});case 4:if((r=n.sent).success){n.next=7;break}return n.abrupt("return",E.z8.error({message:D("Error saving changes! Please try again.","addonify-floating-cart"),offset:50,duration:15e3}));case 7:return o=I(e.options),e.options={},e.options=I(o),q=I(e.options),e.isSaving=!1,n.abrupt("return",E.z8.success({message:r.message,offset:50,duration:3e3}));case 15:return n.prev=15,n.t0=n.catch(0),console.log(n.t0),e.isSaving=!1,n.abrupt("return",E.z8.error({message:D("Error saving changes! Please try again.","addonify-floating-cart"),offset:50,duration:15e3}));case 20:case"end":return n.stop()}}),n,null,[[0,15]])})))()}}}),T={class:"adfy-header"},W={class:"adfy-row"},G={class:"adfy-col start"},Y={class:"branding"},B={class:"adfy-col end"},R={class:"action-buttons"},$={class:"links"},Q={href:"https://docs.addonify.com/kb/floating-cart/",class:"adfy-button fake-button has-underline",target:"_blank"},J={href:"https://wordpress.org/support/plugin/addonify-floating-cart/reviews/?filter=5",class:"adfy-button fake-button has-underline",target:"_blank"},X={class:"buttons"},tt=["disabled","loading"],et={class:"loading-icon"};const nt={__name:"Header",setup:function(t){var e=wp.i18n.__,n=K();return function(t,o){var a=(0,r.up)("router-link");return(0,r.wg)(),(0,r.iD)("header",T,[(0,r._)("div",W,[(0,r._)("div",G,[(0,r._)("div",Y,[(0,r.Wm)(a,{class:"adfy-link",to:"/"},{default:(0,r.w5)((function(){return[(0,r.Wm)(u)]})),_:1})])]),(0,r._)("div",B,[(0,r._)("div",R,[(0,r._)("div",$,[(0,r._)("a",Q,[(0,r.Wm)(O,{icon:"paper"}),(0,r.Uk)(" "+(0,r.zw)((0,r.SU)(e)("AFC docs","addonify-floating-cart")),1)]),(0,r._)("a",J,[(0,r.Wm)(O,{icon:"sparkling-stars"}),(0,r.Uk)(" "+(0,r.zw)((0,r.SU)(e)("Rate AFC","addonify-floating-cart")),1)])]),(0,r._)("div",X,[(0,r._)("button",{type:"submit",onClick:o[0]||(o[0]=function(t){return(0,r.SU)(n).handleUpdateOptions()}),class:"adfy-button",disabled:!(0,r.SU)(n).needSaving,loading:(0,r.SU)(n).isSaving},[(0,r._)("span",et,[(0,r.Wm)(O,{icon:"spinner"})]),(0,r.Uk)(" "+(0,r.zw)((0,r.SU)(e)("Save Options","addonify-floating-cart")),1)],8,tt)])])])])])}}},rt=nt;var ot={class:"adfy-colopon"},at={class:"adfy-row"},it={class:"adfy-col left"},ct={class:"text"},lt={class:"version"},ut={class:"adfy-col right"},st={class:"text"},dt={href:"https://wordpress.org/plugins/addonify-floating-cart/#reviews",class:"adfy-link",target:"_blank"},ft=(0,r.uE)('<span class="icon"><i class="dashicons dashicons-star-filled"></i><i class="dashicons dashicons-star-filled"></i><i class="dashicons dashicons-star-filled"></i><i class="dashicons dashicons-star-filled"></i><i class="dashicons dashicons-star-filled"></i></span>',1);const pt={__name:"Footer",setup:function(t){var e=wp.i18n.__,n=ADDONIFY_WOOFC_LOCOLIZER.version_number,o=(new Date).getFullYear();return function(t,a){return(0,r.wg)(),(0,r.iD)("footer",ot,[(0,r._)("div",at,[(0,r._)("div",it,[(0,r._)("p",ct,[(0,r.Uk)(" © 2020 - "+(0,r.zw)((0,r.SU)(o))+" Addonify Floating Cart ",1),(0,r._)("span",lt,(0,r.zw)((0,r.SU)(e)("Version","addonify-floating-cart"))+": "+(0,r.zw)((0,r.SU)(n)),1)])]),(0,r._)("div",ut,[(0,r._)("p",st,[(0,r._)("a",dt,[(0,r.Uk)((0,r.zw)((0,r.SU)(e)("Rate","addonify-floating-cart"))+" ",1),ft,(0,r.Uk)(" :) ")])])])])])}}},ht=pt,yt={__name:"App",setup:function(t){return function(t,e){var n=(0,r.up)("router-view");return(0,r.wg)(),(0,r.iD)(r.HY,null,[(0,r.Wm)(rt),(0,r.Wm)(n),(0,r.Wm)(ht)],64)}}};var vt=n(5397),gt={class:"adfy-loading"},mt=[(0,r._)("span",{class:"pulse"},null,-1)];const wt={},Ct=(0,c.Z)(wt,[["render",function(t,e){return(0,r.wg)(),(0,r.iD)("section",gt,mt)}]]);var bt={class:"adfy-navigation"},_t={class:"navigation"},St={class:"icon"},kt={class:"icon"},xt={class:"icon"};const Vt={__name:"Navigation",setup:function(t){var e=wp.i18n.__;return function(t,n){var o=(0,r.up)("router-link");return(0,r.wg)(),(0,r.iD)("nav",bt,[(0,r._)("ul",_t,[(0,r._)("li",null,[(0,r.Wm)(o,{to:"/"},{default:(0,r.w5)((function(){return[(0,r._)("span",St,[(0,r.Wm)(O,{icon:"gears"})]),(0,r.Uk)(" "+(0,r.zw)((0,r.SU)(e)("Settings","addonify-floating-cart")),1)]})),_:1})]),(0,r._)("li",null,[(0,r.Wm)(o,{to:"/styles"},{default:(0,r.w5)((function(){return[(0,r._)("span",kt,[(0,r.Wm)(O,{icon:"paint"})]),(0,r.Uk)(" "+(0,r.zw)((0,r.SU)(e)("Design","addonify-floating-cart")),1)]})),_:1})]),(0,r._)("li",null,[(0,r.Wm)(o,{to:"/products"},{default:(0,r.w5)((function(){return[(0,r._)("span",xt,[(0,r.Wm)(O,{icon:"trophy"})]),(0,r.Uk)(" "+(0,r.zw)((0,r.SU)(e)("Products","addonify-floating-cart")),1)]})),_:1})])])])}}},Lt=Vt;var Ut=["id"];const jt={__name:"Form",props:{divId:String,className:String},setup:function(t){var e=t;return function(t,n){return(0,r.wg)(),(0,r.iD)("form",{id:e.divId,class:(0,r.C_)(["adfy-form",e.className]),onSubmit:n[0]||(n[0]=(0,r.iM)((function(){}),["prevent"]))},[(0,r.WI)(t.$slots,"default")],42,Ut)}}};var Ot={key:0,class:"section-title-holder"},Et={class:"section-title"};const Ht={__name:"SectionTitle",props:{section:{type:Object,required:!0}},setup:function(t){var e=t;return function(t,n){return e.section.title?((0,r.wg)(),(0,r.iD)("div",Ot,[(0,r._)("h3",Et,(0,r.zw)(e.section.title),1)])):(0,r.kq)("",!0)}}};var Mt=n(888),Pt=(n(5650),n(8168)),Zt=(n(4228),n(5428));function zt(t){return zt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zt(t)}const qt={__name:"Switch",props:{modelValue:{type:[String,Boolean,Number],required:!0}},emits:["update:modelValue"],setup:function(t,e){var n=e.emit,o=t,a=n,i=(0,r.Fl)({get:function(){switch(zt(o.modelValue)){case"boolean":return o.modelValue;case"number":return o.modelValue>0;case"string":return"1"===o.modelValue;default:return!1}},set:function(t){a("update:modelValue",t)}});return function(t,e){return(0,r.wg)(),(0,r.j4)((0,r.SU)(Pt.OX),{modelValue:i.value,"onUpdate:modelValue":e[0]||(e[0]=function(t){return i.value=t}),size:"large","inline-prompt":"","active-icon":(0,r.SU)(Zt.JrY),"inactive-icon":(0,r.SU)(Zt.x8P)},null,8,["modelValue","active-icon","inactive-icon"])}}};var At=n(6662);n(5754);const Dt={__name:"Text",props:{modelValue:String,placeholder:String},emits:["update:modelValue"],setup:function(t,e){var n=e.emit,o=t,a=n,i=(0,r.Fl)({get:function(){return o.modelValue},set:function(t){a("update:modelValue",t)}}),c=wp.i18n.__;return function(t,e){return(0,r.wg)(),(0,r.j4)((0,r.SU)(At.EZ),{modelValue:i.value,"onUpdate:modelValue":e[0]||(e[0]=function(t){return i.value=t}),placeholder:o.placeholder?o.placeholder:(0,r.SU)(c)("Enter text here...","addonify-floating-cart"),size:"large"},null,8,["modelValue","placeholder"])}}},Ft=Dt,Nt={__name:"Textarea",props:{modelValue:{type:String,required:!1},className:{type:String,required:!1},placeholder:{type:String,required:!1}},emits:["update:modelValue"],setup:function(t,e){var n=e.emit,o=t,a=n,i=(0,r.Fl)({get:function(){return o.modelValue},set:function(t){a("update:modelValue",t)}}),c=wp.i18n.__;return function(e,n){return(0,r.wg)(),(0,r.j4)((0,r.SU)(At.EZ),{modelValue:i.value,"onUpdate:modelValue":n[0]||(n[0]=function(t){return i.value=t}),class:(0,r.C_)(t.className),type:"textarea",rows:"10",placeholder:o.placeholder?o.placeholder:(0,r.SU)(c)("Enter text here...","addonify-floating-cart"),resize:"vertical","input-style":"display:block;width: 100%;"},null,8,["modelValue","class","placeholder"])}}};var It=n(7255),Kt=n.n(It),Tt=n(7797),Wt={insert:"head",singleton:!1};Kt()(Tt.Z,Wt);Tt.Z.locals;const Gt=Nt;var Yt=n(5939),Bt=n(6097);n(5671),n(6562);const Rt={__name:"Number",props:{modelValue:{type:[Number,String],required:!0},min:{type:[String,Number],required:!1},max:{type:[String,Number],required:!1},step:{type:[String,Number],required:!1},precision:{type:[String,Number],required:!1},placeholder:{type:String,required:!1,default:""},style:{type:String,required:!1,default:"default"},unit:{type:String,required:!1,default:"px"},sliderDirection:{type:String,required:!1,default:"horizontal"}},emits:["update:modelValue"],setup:function(t,e){var n=e.emit,o=t,a=o.style,i=o.min,c=o.max,l=o.precision,u=o.step,s=o.unit,d=o.placeholder,f=n,p=(0,r.Fl)({get:function(){return parseFloat(o.modelValue)},set:function(t){f("update:modelValue",t)}}),h=function(t){return t+" "+s};return function(t,e){return(0,r.wg)(),(0,r.iD)(r.HY,null,["default"===(0,r.SU)(a)?((0,r.wg)(),(0,r.j4)((0,r.SU)(At.EZ),{key:0,type:"number",modelValue:p.value,"onUpdate:modelValue":e[0]||(e[0]=function(t){return p.value=t}),min:(0,r.SU)(i)?(0,r.SU)(i):0,max:(0,r.SU)(c),step:(0,r.SU)(u),precision:(0,r.SU)(l),placeholder:(0,r.SU)(d)},null,8,["modelValue","min","max","step","precision","placeholder"])):(0,r.kq)("",!0),"buttons-plus-minus"===(0,r.SU)(a)?((0,r.wg)(),(0,r.j4)((0,r.SU)(Yt.d6),{key:1,modelValue:p.value,"onUpdate:modelValue":e[1]||(e[1]=function(t){return p.value=t}),size:"large",min:(0,r.SU)(i)?(0,r.SU)(i):0,max:(0,r.SU)(c),step:(0,r.SU)(u),precision:(0,r.SU)(l),placeholder:(0,r.SU)(d)},null,8,["modelValue","min","max","step","precision","placeholder"])):(0,r.kq)("",!0),"buttons-arrows"===(0,r.SU)(a)?((0,r.wg)(),(0,r.j4)((0,r.SU)(Yt.d6),{key:2,modelValue:p.value,"onUpdate:modelValue":e[2]||(e[2]=function(t){return p.value=t}),size:"large",min:(0,r.SU)(i)?(0,r.SU)(i):0,max:(0,r.SU)(c),step:(0,r.SU)(u),precision:(0,r.SU)(l),placeholder:(0,r.SU)(d),"controls-position":"right"},null,8,["modelValue","min","max","step","precision","placeholder"])):(0,r.kq)("",!0),"slider"===(0,r.SU)(a)?((0,r.wg)(),(0,r.j4)((0,r.SU)(Bt.BM),{key:3,modelValue:p.value,"onUpdate:modelValue":e[3]||(e[3]=function(t){return p.value=t}),"show-tooltip":"",min:(0,r.SU)(i),max:(0,r.SU)(c),step:(0,r.SU)(u)?(0,r.SU)(u):1,"format-tooltip":h,size:"large"},null,8,["modelValue","min","max","step"])):(0,r.kq)("",!0)],64)}}};var $t=n(9517);n(2656),n(6029);const Qt={__name:"Select",props:{modelValue:{type:String,required:!0},choices:{type:[Object,Array],required:!0},placeholder:{type:String,required:!1,default:""}},emits:["update:modelValue"],setup:function(t,e){var n=e.emit,o=t,a=n,i=(0,r.Fl)({get:function(){return o.modelValue.toString()},set:function(t){a("update:modelValue",t)}}),c=wp.i18n.__;return function(t,e){return(0,r.wg)(),(0,r.j4)((0,r.SU)($t.km),{modelValue:i.value,"onUpdate:modelValue":e[0]||(e[0]=function(t){return i.value=t}),placeholder:o.placeholder?o.placeholder:(0,r.SU)(c)("Select","addonify-floating-cart"),size:"large"},{default:(0,r.w5)((function(){return[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(o.choices,(function(t,e){return(0,r.wg)(),(0,r.j4)((0,r.SU)($t.BT),{label:t,value:e},null,8,["label","value"])})),256))]})),_:1},8,["modelValue","placeholder"])}}},Jt=Qt;var Xt=n(348);n(2235);const te={__name:"Checkbox",props:{modelValue:[Boolean],label:[String]},emits:["update:modelValue"],setup:function(t,e){var n=e.emit,o=t,a=n,i=(0,r.Fl)({get:function(){return o.modelValue},set:function(t){a("update:modelValue",t)}});return function(t,e){return(0,r.wg)(),(0,r.j4)((0,r.SU)(Xt.Xb),{modelValue:i.value,"onUpdate:modelValue":e[0]||(e[0]=function(t){return i.value=t}),label:"{{props.label}}",size:"large"},null,8,["modelValue"])}}};n(6043),n(668);const ee={__name:"CheckboxButton",props:{modelValue:[Array],choices:Object},emits:["update:modelValue"],setup:function(t,e){var n=e.emit,o=t,a=n,i=(0,r.Fl)({get:function(){return o.modelValue},set:function(t){a("update:modelValue",t)}});return function(t,e){return(0,r.wg)(),(0,r.j4)((0,r.SU)(Xt.z5),{modelValue:i.value,"onUpdate:modelValue":e[0]||(e[0]=function(t){return i.value=t}),size:"large"},{default:(0,r.w5)((function(){return[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(o.choices,(function(t,e){return(0,r.wg)(),(0,r.j4)((0,r.SU)(Xt.lm),{label:e},{default:(0,r.w5)((function(){return[(0,r.Uk)((0,r.zw)(t),1)]})),_:2},1032,["label"])})),256))]})),_:1},8,["modelValue"])}}};var ne=n(8243);n(1818),n(4796);const re={__name:"Radio",props:{modelValue:{type:String,required:!0},choices:{type:[Object,Array],required:!0},style:{type:String,required:!1,default:"default"}},emits:["update:modelValue"],setup:function(t,e){var n=e.emit,o=t,a=n,i=(0,r.Fl)({get:function(){return o.modelValue},set:function(t){a("update:modelValue",t)}});return function(t,e){return(0,r.wg)(),(0,r.j4)((0,r.SU)(ne.KD),{modelValue:i.value,"onUpdate:modelValue":e[0]||(e[0]=function(t){return i.value=t})},{default:(0,r.w5)((function(){return[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(o.choices,(function(t,e){return(0,r.wg)(),(0,r.j4)((0,r.SU)(ne.rh),{label:e},{default:(0,r.w5)((function(){return[(0,r.Uk)((0,r.zw)(t),1)]})),_:2},1032,["label"])})),256))]})),_:1},8,["modelValue"])}}};var oe=["innerHTML"];const ae={__name:"RadioIcon",props:{modelValue:{type:String,required:!0},choices:{type:[Object,Array],required:!1}},emits:["update:modelValue"],setup:function(t,e){var n=e.emit,o=t,a=n,i=(0,r.Fl)({get:function(){return o.modelValue},set:function(t){a("update:modelValue",t)}});return function(t,e){return(0,r.wg)(),(0,r.j4)((0,r.SU)(ne.KD),{modelValue:i.value,"onUpdate:modelValue":e[0]||(e[0]=function(t){return i.value=t})},{default:(0,r.w5)((function(){return[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(o.choices,(function(t,e){return(0,r.wg)(),(0,r.j4)((0,r.SU)(ne.rh),{label:e,size:"large",border:""},{default:(0,r.w5)((function(){return[(0,r._)("span",{innerHTML:t},null,8,oe)]})),_:2},1032,["label"])})),256))]})),_:1},8,["modelValue"])}}};var ie=n(9481);n(501);const ce={__name:"ColorPicker",props:{colorVal:String,isAlpha:[Boolean,String],label:String},emits:["update:colorVal"],setup:function(t,e){var n=e.emit,o=t,a=n,i=(0,r.Fl)({get:function(){return o.colorVal},set:function(t){a("update:colorVal",t)}}),c=function(t){a("update:colorVal",t)};return function(t,e){return(0,r.wg)(),(0,r.j4)((0,r.SU)(ie.$),{modelValue:i.value,"onUpdate:modelValue":e[0]||(e[0]=function(t){return i.value=t}),"show-alpha":o.isAlpha,onActiveChange:c},null,8,["modelValue","show-alpha"])}}};var le={class:"unsupported-control-text"},ue={href:"https://docs.addonify.com/kb/floating-cart/developer/",target:"_blank",rel:"documentation",class:"adfy-button fake-button has-underline forward-to-doc-link"};const se={__name:"InvalidControl",setup:function(t){var e=wp.i18n.__;return function(t,n){return(0,r.wg)(),(0,r.iD)("span",le,[(0,r.Uk)(" ❌ "+(0,r.zw)((0,r.SU)(e)("Input is not supported.","addonify-wishist"))+" ",1),(0,r._)("a",ue,(0,r.zw)((0,r.SU)(e)("Check docs","addonify-floating-cart")),1)])}}};var de=n(4012),fe={insert:"head",singleton:!1};Kt()(de.Z,fe);de.Z.locals;const pe=se,he={__name:"InputControl",props:{field:{type:Object,required:!0},fieldKey:{type:String,required:!0},label:{type:String,required:!1},reactiveState:{type:Object,required:!0}},setup:function(t){var e=t;return function(t,n){return"switch"===e.field.type?((0,r.wg)(),(0,r.j4)(qt,{key:0,modelValue:e.reactiveState[e.fieldKey],"onUpdate:modelValue":n[0]||(n[0]=function(t){return e.reactiveState[e.fieldKey]=t})},null,8,["modelValue"])):"select"===e.field.type?((0,r.wg)(),(0,r.j4)(Jt,{key:1,modelValue:e.reactiveState[e.fieldKey],"onUpdate:modelValue":n[1]||(n[1]=function(t){return e.reactiveState[e.fieldKey]=t}),choices:e.field.choices,placeholder:e.field.placeholder},null,8,["modelValue","choices","placeholder"])):"text"===e.field.type?((0,r.wg)(),(0,r.j4)(Ft,{key:2,modelValue:e.reactiveState[e.fieldKey],"onUpdate:modelValue":n[2]||(n[2]=function(t){return e.reactiveState[e.fieldKey]=t}),placeholder:e.field.placeholder},null,8,["modelValue","placeholder"])):"textarea"===e.field.type?((0,r.wg)(),(0,r.j4)(Gt,{key:3,modelValue:e.reactiveState[e.fieldKey],"onUpdate:modelValue":n[3]||(n[3]=function(t){return e.reactiveState[e.fieldKey]=t}),placeholder:e.field.placeholder},null,8,["modelValue","placeholder"])):"checkbox"===e.field.type&&"buttons"===e.field.typeStyle?((0,r.wg)(),(0,r.j4)(ee,{key:4,modelValue:e.reactiveState[e.fieldKey],"onUpdate:modelValue":n[4]||(n[4]=function(t){return e.reactiveState[e.fieldKey]=t}),choices:e.field.choices},null,8,["modelValue","choices"])):"checkbox"===e.field.type?((0,r.wg)(),(0,r.j4)(te,{key:5,modelValue:e.reactiveState[e.fieldKey],"onUpdate:modelValue":n[5]||(n[5]=function(t){return e.reactiveState[e.fieldKey]=t}),choices:e.field.choices},null,8,["modelValue","choices"])):"number"===e.field.type?((0,r.wg)(),(0,r.j4)(Rt,{key:6,modelValue:e.reactiveState[e.fieldKey],"onUpdate:modelValue":n[6]||(n[6]=function(t){return e.reactiveState[e.fieldKey]=t}),placeholder:e.field.placeholder,style:(0,r.j5)(e.field.style),min:e.field.min,max:e.field.max,step:e.field.step,precision:e.field.precision,unit:e.field.unit},null,8,["modelValue","placeholder","style","min","max","step","precision","unit"])):"radio"===e.field.type?((0,r.wg)(),(0,r.j4)(re,{key:7,modelValue:e.reactiveState[e.fieldKey],"onUpdate:modelValue":n[7]||(n[7]=function(t){return e.reactiveState[e.fieldKey]=t}),choices:e.field.choices,style:(0,r.j5)(e.field.style)},null,8,["modelValue","choices","style"])):"radio-icons"===e.field.type?((0,r.wg)(),(0,r.j4)(ae,{key:8,modelValue:e.reactiveState[e.fieldKey],"onUpdate:modelValue":n[8]||(n[8]=function(t){return e.reactiveState[e.fieldKey]=t}),choices:e.field.choices},null,8,["modelValue","choices"])):"color"===e.field.type?((0,r.wg)(),(0,r.j4)(ce,{key:9,colorVal:e.reactiveState[e.fieldKey],"onUpdate:colorVal":n[9]||(n[9]=function(t){return e.reactiveState[e.fieldKey]=t}),isAlpha:e.field.isAlpha,label:e.field.label},null,8,["colorVal","isAlpha","label"])):((0,r.wg)(),(0,r.j4)(pe,{key:10}))}}};var ye={key:0,class:"adfy-options"},ve={class:"adfy-col left"},ge={class:"label"},me={key:0,class:"option-label"},we={key:1,class:"option-description"},Ce={class:"icon"},be={class:"text"},_e={class:"adfy-col right"},Se={class:"input"};const ke={__name:"OptionBox",props:{section:{type:Object,required:!0},sectionKey:{type:String,required:!0},reactiveState:{type:Object,required:!0},currentPage:{type:String,required:!0}},setup:function(t){var e=t,n=K(),o=e.currentPage;function a(t){return Array.isArray(t)?t.every((function(t){return n.options[t]})):n.options[t]}function i(t,e){switch(o){case"settings":return"enable_floating_cart"===t||a(e);case"design":return"load_styles_from_plugin"===t||a(e);default:return!1}}return function(t,n){return(0,r.wg)(),(0,r.iD)(r.HY,null,[(0,r.WI)(t.$slots,"default"),((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.section.fields,(function(t,n){return(0,r.wg)(),(0,r.iD)(r.HY,null,[i(n,t.dependent)?((0,r.wg)(),(0,r.iD)("div",ye,[(0,r._)("div",{class:(0,r.C_)(["adfy-option-columns option-box",t.className])},[(0,r._)("div",ve,[(0,r._)("div",ge,[t.label?((0,r.wg)(),(0,r.iD)("p",me,[(0,r.Uk)((0,r.zw)(t.label)+" ",1),t.badge?((0,r.wg)(),(0,r.j4)((0,r.SU)(Mt.Ks),{key:0},{default:(0,r.w5)((function(){return[(0,r.Uk)((0,r.zw)(t.badge),1)]})),_:2},1024)):(0,r.kq)("",!0)])):(0,r.kq)("",!0),t.description?((0,r.wg)(),(0,r.iD)("p",we,[(0,r._)("span",Ce,[(0,r.Wm)(O,{icon:"bulb-solid"})]),(0,r._)("span",be,(0,r.zw)(t.description),1)])):(0,r.kq)("",!0)])]),(0,r._)("div",_e,[(0,r._)("div",Se,[(0,r.Wm)(he,{field:t,fieldKey:n,reactiveState:e.reactiveState},null,8,["field","fieldKey","reactiveState"])])])],2)])):(0,r.kq)("",!0)],64)})),256))],64)}}};var xe=["data_section"];const Ve={__name:"OptionSection",props:{sectionKey:{type:String,required:!0},currentPage:{type:String,required:!0},className:{type:String,required:!1}},setup:function(t){var e=t,n=e.className,o=e.sectionKey,a=e.currentPage,i=K();return function(t,e){return"general"===(0,r.SU)(o)||function(){switch(a){case"settings":return i.options.enable_floating_cart;case"design":return i.options.load_styles_from_plugin;default:return!1}}()?((0,r.wg)(),(0,r.iD)("section",{key:0,class:(0,r.C_)(["addonify-section",(0,r.SU)(n)]),data_section:(0,r.SU)(o)},[(0,r.WI)(t.$slots,"default")],10,xe)):(0,r.kq)("",!0)}}};function Le(){Le=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var a=e&&e.prototype instanceof g?e:g,i=Object.create(a.prototype),c=new O(r||[]);return o(i,"_invoke",{value:V(t,n,c)}),i}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var f="suspendedStart",p="suspendedYield",h="executing",y="completed",v={};function g(){}function m(){}function w(){}var C={};u(C,i,(function(){return this}));var b=Object.getPrototypeOf,_=b&&b(b(E([])));_&&_!==n&&r.call(_,i)&&(C=_);var S=w.prototype=g.prototype=Object.create(C);function k(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function n(o,a,i,c){var l=d(t[o],t,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==je(s)&&r.call(s,"__await")?e.resolve(s.__await).then((function(t){n("next",t,i,c)}),(function(t){n("throw",t,i,c)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return n("throw",t,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function V(e,n,r){var o=f;return function(a,i){if(o===h)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var c=r.delegate;if(c){var l=L(c,r);if(l){if(l===v)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var u=d(e,n,r);if("normal"===u.type){if(o=r.done?y:p,u.arg===v)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=y,r.method="throw",r.arg=u.arg)}}}function L(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var a=d(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,v;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function U(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(U,this),this.reset(!0)}function E(e){if(e||""===e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(je(e)+" is not iterable")}return m.prototype=w,o(S,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:m,configurable:!0}),m.displayName=u(w,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,u(t,l,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},k(x.prototype),u(x.prototype,c,(function(){return this})),e.AsyncIterator=x,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new x(s(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},k(S),u(S,l,"Generator"),u(S,i,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=E,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return c.type="throw",c.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,v):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:E(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}function Ue(t,e,n,r,o,a,i){try{var c=t[a](i),l=c.value}catch(t){return void n(t)}c.done?e(l):Promise.resolve(l).then(r,o)}function je(t){return je="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},je(t)}var Oe=(0,o.Q_)({id:"Notice",state:function(){return{alerts:{},status:{isFetching:!0}}},getters:{hasNoticeStateInMemory:function(t){return"object"===je(t.alerts)?Object.keys(t.alerts).length>0:"array"==typeof t.alerts&&t.alerts.length>0}},actions:{checkNotices:function(){var t,e=this;return(t=Le().mark((function t(){var n,r;return Le().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,fetch("https://raw.githubusercontent.com/addonify/addonify-floating-cart/stable/notice.json");case 3:return n=t.sent,t.next=6,n.json();case 6:r=t.sent,200===n.status&&(e.alerts=r,e.status.isFetching=!1),t.next=13;break;case 10:return t.prev=10,t.t0=t.catch(0),t.abrupt("return");case 13:case"end":return t.stop()}}),t,null,[[0,10]])})),function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function i(t){Ue(a,r,o,i,c,"next",t)}function c(t){Ue(a,r,o,i,c,"throw",t)}i(void 0)}))})()}}}),Ee=["data_size"],He={class:"content"},Me={class:"icon"},Pe=["innerHTML"];const Ze={__name:"Notice",setup:function(t){var e=Oe();return(0,r.bv)((function(){e.hasNoticeStateInMemory||e.checkNotices()})),function(t,n){return(0,r.SU)(e).status.isFetching?(0,r.kq)("",!0):((0,r.wg)(!0),(0,r.iD)(r.HY,{key:0},(0,r.Ko)((0,r.SU)(e).alerts.alerts,(function(t,e){return(0,r.wg)(),(0,r.iD)(r.HY,null,[t.live?((0,r.wg)(),(0,r.iD)("aside",{key:0,class:(0,r.C_)(["addonify-notice",t.type]),data_size:t.size},[(0,r._)("div",He,[(0,r._)("span",Me,[(0,r.Wm)(O,{icon:"signal-tower"})]),(0,r._)("span",{class:"message",innerHTML:t.data.content},null,8,Pe)])],10,Ee)):(0,r.kq)("",!0)],64)})),256))}}};var ze={class:"adfy-container",id:"addonify-layout"},qe={class:"adfy-columns main-content"},Ae={class:"adfy-col start site-secondary"},De={class:"adfy-col end site-primary"};const Fe={__name:"Settings",setup:function(t){var e=K();return(0,r.bv)((function(){e.haveStateInMemory||e.renderOptions()})),function(t,n){return(0,r.wg)(),(0,r.iD)("section",ze,[(0,r.Wm)(Ze),(0,r._)("main",qe,[(0,r._)("aside",Ae,[(0,r.Wm)(Lt)]),(0,r._)("section",De,[(0,r.SU)(e).isLoading?((0,r.wg)(),(0,r.j4)(Ct,{key:0})):((0,r.wg)(),(0,r.j4)(jt,{key:1,divId:"adfy-settings-form"},{default:(0,r.w5)((function(){return[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)((0,r.SU)(e).data.settings.sections,(function(t,n){return(0,r.wg)(),(0,r.j4)(Ve,{sectionKey:n,currentPage:"settings"},{default:(0,r.w5)((function(){return[(0,r.Wm)(ke,{section:t,sectionKey:n,reactiveState:(0,r.SU)(e).options,currentPage:"settings"},{default:(0,r.w5)((function(){return[(0,r.Wm)(Ht,{section:t},null,8,["section"])]})),_:2},1032,["section","sectionKey","reactiveState"])]})),_:2},1032,["sectionKey"])})),256))]})),_:1}))])])])}}};var Ne={class:"jumbo-section jumbo-box"},Ie={class:"jumbo-header"},Ke={key:0,class:"sec-title"},Te={key:1,class:"sec-excerpt"},We={class:"icon"},Ge={class:"text"},Ye={class:"jumbo-content adfy-options"},Be={class:"ui-option"},Re={class:"col-left option-label"},$e={class:"label"},Qe={class:"col-right input"};const Je={__name:"JumboBox",props:{section:{type:Object,required:!0},reactiveState:{type:Object,required:!0}},setup:function(t){var e=t;return function(t,n){return(0,r.wg)(),(0,r.iD)("section",Ne,[(0,r._)("div",Ie,[e.section.title?((0,r.wg)(),(0,r.iD)("p",Ke,(0,r.zw)(e.section.title),1)):(0,r.kq)("",!0),e.section.description?((0,r.wg)(),(0,r.iD)("p",Te,[(0,r._)("span",We,[(0,r.Wm)(O,{icon:"bulb-solid"})]),(0,r._)("span",Ge,(0,r.zw)(e.section.description),1)])):(0,r.kq)("",!0)]),(0,r._)("div",Ye,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.section.fields,(function(t,n){return(0,r.wg)(),(0,r.iD)("div",Be,[(0,r._)("div",Re,[(0,r._)("span",$e,(0,r.zw)(t.label),1)]),(0,r._)("div",Qe,[(0,r.Wm)(he,{field:t,fieldKey:n,reactiveState:e.reactiveState},null,8,["field","fieldKey","reactiveState"])])])})),256))])])}}},Xe={__name:"HandleDesignOptions",props:{section:{type:Object,required:!0},sectionKey:{type:String,required:!0},reactiveState:{type:Object,required:!0},currentPage:{type:String,required:!0}},setup:function(t){var e=t;return function(n,o){return"render-jumbo-box"===t.section.type?((0,r.wg)(),(0,r.j4)(Je,{key:0,section:e.section,reactiveState:e.reactiveState},null,8,["section","reactiveState"])):((0,r.wg)(),(0,r.j4)(ke,{key:1,section:e.section,sectionKey:e.sectionKey,reactiveState:e.reactiveState,currentPage:e.currentPage},{default:(0,r.w5)((function(){return[(0,r.Wm)(Ht,{section:e.section},null,8,["section"])]})),_:1},8,["section","sectionKey","reactiveState","currentPage"]))}}};var tn={class:"adfy-container",id:"addonify-layout"},en={class:"adfy-columns main-content"},nn={class:"adfy-col start site-secondary"},rn={class:"adfy-col end site-primary"};const on={__name:"Styles",setup:function(t){var e=K();return(0,r.bv)((function(){e.haveStateInMemory||e.renderOptions()})),function(t,n){return(0,r.wg)(),(0,r.iD)("section",tn,[(0,r.Wm)(Ze),(0,r._)("main",en,[(0,r._)("aside",nn,[(0,r.Wm)(Lt)]),(0,r._)("section",rn,[(0,r.SU)(e).isLoading?((0,r.wg)(),(0,r.j4)(Ct,{key:0})):((0,r.wg)(),(0,r.j4)(jt,{key:1,divId:"adfy-style-options-form"},{default:(0,r.w5)((function(){return[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)((0,r.SU)(e).data.styles.sections,(function(t,n){return(0,r.wg)(),(0,r.j4)(Ve,{sectionKey:n,currentPage:"design"},{default:(0,r.w5)((function(){return[(0,r.Wm)(Xe,{section:t,sectionKey:n,reactiveState:(0,r.SU)(e).options,currentPage:"design"},null,8,["section","sectionKey","reactiveState"])]})),_:2},1032,["sectionKey"])})),256))]})),_:1}))])])])}}};var an=n(340);n(6754);function cn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ln(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?cn(Object(n),!0).forEach((function(e){un(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):cn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function un(t,e,n){var r;return r=function(t,e){if("object"!=pn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=pn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==pn(r)?r:r+"")in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function sn(){sn=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var a=e&&e.prototype instanceof g?e:g,i=Object.create(a.prototype),c=new O(r||[]);return o(i,"_invoke",{value:V(t,n,c)}),i}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var f="suspendedStart",p="suspendedYield",h="executing",y="completed",v={};function g(){}function m(){}function w(){}var C={};u(C,i,(function(){return this}));var b=Object.getPrototypeOf,_=b&&b(b(E([])));_&&_!==n&&r.call(_,i)&&(C=_);var S=w.prototype=g.prototype=Object.create(C);function k(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function n(o,a,i,c){var l=d(t[o],t,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==pn(s)&&r.call(s,"__await")?e.resolve(s.__await).then((function(t){n("next",t,i,c)}),(function(t){n("throw",t,i,c)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return n("throw",t,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function V(e,n,r){var o=f;return function(a,i){if(o===h)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var c=r.delegate;if(c){var l=L(c,r);if(l){if(l===v)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var u=d(e,n,r);if("normal"===u.type){if(o=r.done?y:p,u.arg===v)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=y,r.method="throw",r.arg=u.arg)}}}function L(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var a=d(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,v;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function U(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(U,this),this.reset(!0)}function E(e){if(e||""===e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(pn(e)+" is not iterable")}return m.prototype=w,o(S,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:m,configurable:!0}),m.displayName=u(w,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,u(t,l,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},k(x.prototype),u(x.prototype,c,(function(){return this})),e.AsyncIterator=x,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new x(s(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},k(S),u(S,l,"Generator"),u(S,i,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=E,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return c.type="throw",c.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,v):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:E(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}function dn(t,e,n,r,o,a,i){try{var c=t[a](i),l=c.value}catch(t){return void n(t)}c.done?e(l):Promise.resolve(l).then(r,o)}function fn(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function i(t){dn(a,r,o,i,c,"next",t)}function c(t){dn(a,r,o,i,c,"throw",t)}i(void 0)}))}}function pn(t){return pn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pn(t)}var hn=wp.apiFetch,yn=wp.i18n.__,vn=(0,o.Q_)({id:"Product",state:function(){return{allAddons:{},allProductSlugStatus:{},hotAddons:{},generalAddons:{},installedAddons:[],isFetching:!0,isFetchingAllInstalledAddons:!0,isSettingAddonStatus:!0}},getters:{hasAddonsStateInMemory:function(t){return"object"===pn(t.allAddons)?Object.keys(t.allAddons).length>0:"array"==typeof t.allAddons&&t.allAddons.length>0}},actions:{getRecommdedProductsList:function(){var t=this;return fn(sn().mark((function e(){var n,r;return sn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t.isFetching=!0,e.next=4,fetch("https://raw.githubusercontent.com/addonify/recommended-products/main/products.json");case 4:return n=e.sent,e.next=7,n.json();case 7:if(r=e.sent,200===n.status){e.next=11;break}return console.log(r),e.abrupt("return");case 11:return t.processRecommendedPluginsList(r),t.isFetching=!1,e.abrupt("return",n);case 16:return e.prev=16,e.t0=e.catch(0),console.error(e.t0),t.isFetching=!1,e.abrupt("return",e.t0);case 21:case"end":return e.stop()}}),e,null,[[0,16]])})))()},processRecommendedPluginsList:function(t){var e=this;if(console.log("[Info] Processing the list that was retrived...."),this.hotAddons=t.data.hot,this.generalAddons=t.data.general,this.allAddons=ln(ln({},this.hotAddons),this.generalAddons),"object"!==pn(this.allAddons))return console.log("[Error] Couldn't process the list plugins list!");Object.keys(this.allAddons).forEach((function(t){e.allProductSlugStatus[t]="null"}))},fetchInstalledAddons:function(){var t=this;return fn(sn().mark((function e(){var n;return sn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("[Info] Getting the list of all plugins installed on the site...."),e.prev=1,e.next=4,hn({path:"/wp/v2/plugins",method:"GET",cache:"no-cache"});case 4:n=e.sent,console.log("[Info] Received the list of all installed plugins...."),t.installedAddons=n,t.setAddonStatusFlag(Object.keys(t.allProductSlugStatus)),t.isFetchingAllInstalledAddons=!1,e.next=16;break;case 11:return e.prev=11,e.t0=e.catch(1),console.log(e.t0),t.isFetchingAllInstalledAddons=!1,e.abrupt("return");case 16:case"end":return e.stop()}}),e,null,[[1,11]])})))()},setAddonStatusFlag:function(t){var e=this;"object"===pn(this.installedAddons)&&this.installedAddons.length>0?(console.log("=> Setting the status of the addon."),t.forEach((function(t){var n=e.installedAddons.find((function(e){return e.textdomain===t}));e.allProductSlugStatus[t]=n?n.status:"not-installed"}))):console.log("[Warning] Bailing!!! The installed addons list is empty."),console.log("[Info] Done setting the status of the addon."),this.isSettingAddonStatus=!1},handleAddonInstallation:function(t){var e=this;return fn(sn().mark((function n(){var r;return sn().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,console.log("[Info] Trying to install plugin ".concat(t,"...")),n.next=4,hn({method:"POST",path:"/wp/v2/plugins",data:{slug:t,status:"active"},cache:"no-cache"});case 4:if("active"!==(r=n.sent).status){n.next=12;break}return console.log("[Info] Plugin ".concat(t," installed successfully.")),E.z8.success({message:yn("Plugin installed successfully.","addonify-floating-cart"),offset:50,duration:5e3}),e.allProductSlugStatus[t]="active",n.next=11,r;case 11:case 21:return n.abrupt("return",n.sent);case 12:n.next=22;break;case 14:return n.prev=14,n.t0=n.catch(0),console.error(n.t0),E.z8.error({message:yn("Error: couldn't install plugin.","addonify-floating-cart"),offset:50,duration:2e4}),e.isWaitingForInstallation=!1,n.next=21,n.t0;case 22:case"end":return n.stop()}}),n,null,[[0,14]])})))()},updateAddonStatus:function(t){var e=this;return fn(sn().mark((function n(){var r;return sn().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,console.log("[Info] Trying to set the status of plugin ".concat(t,"...")),n.next=4,hn({method:"POST",path:"/wp/v2/plugins/".concat(t),data:{status:"active",plugin:"".concat(t,"/").concat(t)},cache:"no-cache"});case 4:if("active"!=(r=n.sent).status){n.next=12;break}return console.log("[Info] Plugin ".concat(t," activated successfully.")),E.z8.success({message:yn("Plugin activated successfully.","addonify-floating-cart"),offset:50,duration:5e3}),e.allProductSlugStatus[t]="active",n.next=11,r;case 11:case 20:return n.abrupt("return",n.sent);case 12:n.next=21;break;case 14:return n.prev=14,n.t0=n.catch(0),console.log(n.t0),E.z8.error({message:yn("Error: Couldn't activate the plugin.","addonify-floating-cart"),offset:50,duration:2e4}),n.next=20,n.t0;case 21:case"end":return n.stop()}}),n,null,[[0,14]])})))()}}});function gn(t){return gn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gn(t)}function mn(){mn=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var a=e&&e.prototype instanceof g?e:g,i=Object.create(a.prototype),c=new O(r||[]);return o(i,"_invoke",{value:V(t,n,c)}),i}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var f="suspendedStart",p="suspendedYield",h="executing",y="completed",v={};function g(){}function m(){}function w(){}var C={};u(C,i,(function(){return this}));var b=Object.getPrototypeOf,_=b&&b(b(E([])));_&&_!==n&&r.call(_,i)&&(C=_);var S=w.prototype=g.prototype=Object.create(C);function k(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function n(o,a,i,c){var l=d(t[o],t,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==gn(s)&&r.call(s,"__await")?e.resolve(s.__await).then((function(t){n("next",t,i,c)}),(function(t){n("throw",t,i,c)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return n("throw",t,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function V(e,n,r){var o=f;return function(a,i){if(o===h)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var c=r.delegate;if(c){var l=L(c,r);if(l){if(l===v)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var u=d(e,n,r);if("normal"===u.type){if(o=r.done?y:p,u.arg===v)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=y,r.method="throw",r.arg=u.arg)}}}function L(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var a=d(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,v;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function U(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(U,this),this.reset(!0)}function E(e){if(e||""===e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(gn(e)+" is not iterable")}return m.prototype=w,o(S,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:m,configurable:!0}),m.displayName=u(w,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,u(t,l,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},k(x.prototype),u(x.prototype,c,(function(){return this})),e.AsyncIterator=x,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new x(s(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},k(S),u(S,l,"Generator"),u(S,i,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=E,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return c.type="throw",c.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,v):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:E(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}function wn(t,e,n,r,o,a,i){try{var c=t[a](i),l=c.value}catch(t){return void n(t)}c.done?e(l):Promise.resolve(l).then(r,o)}var Cn={class:"adfy-product-card"},bn={class:"adfy-category"},_n={class:"adfy-product-box"},Sn={class:"adfy-product-thumb"},kn=["src","alt"],xn={class:"content"},Vn=["innerHTML"],Ln=["innerHTML"],Un={class:"adfy-product-actions"};const jn={__name:"Recommended",props:{slug:{type:String,required:!1},name:{type:String,required:!1},description:{type:String,required:!1},thumb:{type:String,required:!1},category:{type:String,required:!1},status:{type:String,required:!1}},setup:function(t){var e=t,n=wp.i18n.__,o=vn(),a=e.slug,i=e.name,c=e.thumb,l=e.description,u=e.category,s=(0,r.iH)(!1),d=(0,r.iH)(!1),f=(0,r.iH)(!1),p=(0,r.iH)(!1),h=n("Activate now","addonify-floating-cart"),y=n("Activating...","addonify-floating-cart"),v=n("Install now","addonify-floating-cart"),g=n("Installing...","addonify-floating-cart"),m=n("Installed","addonify-floating-cart"),w=function(){var t,e=(t=mn().mark((function t(e){return mn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return s.value=!0,p.value=!0,t.prev=2,t.next=5,o.handleAddonInstallation(e);case 5:"active"==t.sent.status&&(s.value=!1,p.value=!1,d.value=!0),t.next=14;break;case 9:t.prev=9,t.t0=t.catch(2),s.value=!1,p.value=!1,d.value=!1;case 14:case"end":return t.stop()}}),t,null,[[2,9]])})),function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function i(t){wn(a,r,o,i,c,"next",t)}function c(t){wn(a,r,o,i,c,"throw",t)}i(void 0)}))});return function(t){return e.apply(this,arguments)}}();return function(t,n){return(0,r.wg)(),(0,r.iD)("div",Cn,[(0,r._)("span",bn,(0,r.zw)((0,r.SU)(u)),1),(0,r._)("div",_n,[(0,r._)("figure",Sn,[(0,r._)("img",{src:(0,r.SU)(c),alt:(0,r.SU)(a)},null,8,kn)]),(0,r._)("div",xn,[(0,r._)("h3",{class:"adfy-product-title",innerHTML:(0,r.SU)(i)},null,8,Vn),(0,r._)("p",{class:"adfy-product-description",innerHTML:(0,r.SU)(l)},null,8,Ln),(0,r._)("div",Un,["active"==e.status||"network-active"==e.status?((0,r.wg)(),(0,r.j4)((0,r.SU)(an.mi),{key:0,size:"large",id:(0,r.SU)(a),plain:"",disabled:""},{default:(0,r.w5)((function(){return[(0,r.Uk)((0,r.zw)((0,r.SU)(m)),1)]})),_:1},8,["id"])):"inactive"==e.status?((0,r.wg)(),(0,r.j4)((0,r.SU)(an.mi),{key:1,type:"success",size:"large",id:(0,r.SU)(a),plain:"",loading:s.value,disabled:d.value,onClick:n[0]||(n[0]=function(t){return function(t){s.value=!0,f.value=!0;try{"active"==o.updateAddonStatus(t).status&&(s.value=!1,f.value=!1,d.value=!0)}catch(t){s.value=!1,f.value=!1,d.value=!1}}((0,r.SU)(a))})},{default:(0,r.w5)((function(){return[(0,r.Uk)((0,r.zw)(f.value?(0,r.SU)(y):(0,r.SU)(h)),1)]})),_:1},8,["id","loading","disabled"])):((0,r.wg)(),(0,r.j4)((0,r.SU)(an.mi),{key:2,type:"primary",size:"large",id:(0,r.SU)(a),plain:"",loading:s.value,disabled:d.value,onClick:n[1]||(n[1]=function(t){return w((0,r.SU)(a))})},{default:(0,r.w5)((function(){return[(0,r.Uk)((0,r.zw)(p.value?(0,r.SU)(g):(0,r.SU)(v)),1)]})),_:1},8,["id","loading","disabled"]))])])])])}}};var On=n(4659),En={insert:"head",singleton:!1};Kt()(On.Z,En);On.Z.locals;const Hn=jn;var Mn={class:"adfy-container",id:"addonify-layout"},Pn={class:"adfy-columns main-content"},Zn={class:"adfy-col start aside secondary"},zn={class:"adfy-col end site-primary"},qn={key:1,id:"recommended-products"},An={id:"recommended-hot-products"},Dn={class:"adfy-grid"},Fn=(0,r._)("div",{id:"recommended-general-products"},null,-1);var Nn={class:"error-404"};const In={__name:"404",setup:function(t){var e=wp.i18n.__;return function(t,n){var o=(0,r.up)("router-link");return(0,r.wg)(),(0,r.iD)("div",Nn,[(0,r._)("h3",null,(0,r.zw)((0,r.SU)(e)("404","addonify-floating-cart")),1),(0,r._)("p",null,(0,r.zw)((0,r.SU)(e)("Oops, page not found!","addonify-floating-cart")),1),(0,r.Wm)(o,{to:"/",class:"adfy-button"},{default:(0,r.w5)((function(){return[(0,r.Uk)((0,r.zw)((0,r.SU)(e)("Go Back","addonify-floating-cart")),1)]})),_:1})])}}};var Kn=[{path:"/",name:"Settings",component:Fe},{path:"/styles",name:"Styles",component:on},{path:"/products",name:"Products",component:{__name:"Products",setup:function(t){var e=vn();return(0,r.bv)((function(){e.hasAddonsStateInMemory||e.getRecommdedProductsList().then((function(t){200===t.status&&e.fetchInstalledAddons()}))})),function(t,n){return(0,r.wg)(),(0,r.iD)("section",Mn,[(0,r.Wm)(Ze),(0,r._)("main",Pn,[(0,r._)("aside",Zn,[(0,r.Wm)(Lt)]),(0,r._)("section",zn,[!0===(0,r.SU)(e).isFetching||!0===(0,r.SU)(e).isFetchingAllInstalledAddons||!0===(0,r.SU)(e).isSettingAddonStatus?((0,r.wg)(),(0,r.j4)(Ct,{key:0})):((0,r.wg)(),(0,r.iD)("section",qn,[(0,r._)("div",An,[(0,r._)("div",Dn,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)((0,r.SU)(e).hotAddons,(function(t,n){return(0,r.wg)(),(0,r.j4)(Hn,{slug:n,name:t.name,description:t.description,thumb:t.thumbnail,category:t.category,status:(0,r.SU)(e).allProductSlugStatus[n]},null,8,["slug","name","description","thumb","category","status"])})),256))])]),Fn]))])])])}}}},{path:"/:catchAll(.*)*",name:"404",component:In}];const Tn=(0,vt.p7)({history:(0,vt.r5)(),routes:Kn});var Wn=(0,o.WB)(),Gn=(0,r.ri)(yt);Gn.use(Wn),Gn.use(Tn),Gn.mount("#___adfy-floatingcart-app___")}},t=>{var e=e=>t(t.s=e);t.O(0,[703,898],(()=>(e(2248),e(6378))));t.O()}]);
     2"use strict";(self.webpackChunkaddonify_floating_cart=self.webpackChunkaddonify_floating_cart||[]).push([[522],{4012:(t,e,n)=>{n.d(e,{Z:()=>a});var r=n(7890),o=n.n(r)()((function(t){return t[1]}));o.push([t.id,'.unsupported-control-text{font-size:14px}.adfy-button.fake-button.forward-to-doc-link{fill:var(--addonify_primary_color);color:var(--addonify_primary_color);font-size:14px}.adfy-button.fake-button.forward-to-doc-link:after,.adfy-button.fake-button.forward-to-doc-link:before{bottom:-5px;content:"";height:2px}.adfy-button.fake-button.forward-to-doc-link:after{background-color:var(--addonify_primary_color);content:""}.adfy-button.fake-button.forward-to-doc-link:hover{fill:var(--addonify_base_text_color);color:var(--addonify_base_text_color)}.adfy-button.fake-button.forward-to-doc-link:hover:after,.adfy-button.fake-button.forward-to-doc-link:hover:before{background-color:var(--addonify_base_text_color);content:""}',""]);const a=o},7797:(t,e,n)=>{n.d(e,{Z:()=>a});var r=n(7890),o=n.n(r)()((function(t){return t[1]}));o.push([t.id,".adfy-options .el-textarea__inner{display:block;font-family:monospace;min-height:200px;padding:15px;width:100%}",""]);const a=o},4659:(t,e,n)=>{n.d(e,{Z:()=>a});var r=n(7890),o=n.n(r)()((function(t){return t[1]}));o.push([t.id,"#recommended-hot-products .el-skeleton.is-animated .el-skeleton__item{background:linear-gradient(90deg,#e1e1e1 25%,#d8d8d8 37%,#c7c7c7 63%);background-size:400% 100%}",""]);const a=o},6378:()=>{},2248:(t,e,n)=>{var r=n(6183),o=n(3642),a={width:"170",height:"44",viewBox:"0 0 170 44",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i=[(0,r.uE)('<path d="M55.512 23.64V33H54.888V23.64H55.512ZM60.228 30.24C60.228 30.832 60.108 31.344 59.868 31.776C59.636 32.208 59.316 32.54 58.908 32.772C58.508 33.004 58.06 33.12 57.564 33.12C57.1 33.12 56.692 32.996 56.34 32.748C55.988 32.492 55.712 32.148 55.512 31.716C55.32 31.276 55.224 30.784 55.224 30.24C55.224 29.688 55.32 29.196 55.512 28.764C55.712 28.332 55.988 27.992 56.34 27.744C56.692 27.488 57.1 27.36 57.564 27.36C58.06 27.36 58.508 27.476 58.908 27.708C59.316 27.94 59.636 28.272 59.868 28.704C60.108 29.128 60.228 29.64 60.228 30.24ZM59.604 30.24C59.604 29.76 59.508 29.348 59.316 29.004C59.124 28.66 58.868 28.4 58.548 28.224C58.228 28.04 57.872 27.948 57.48 27.948C57.144 27.948 56.824 28.048 56.52 28.248C56.216 28.448 55.972 28.72 55.788 29.064C55.604 29.408 55.512 29.8 55.512 30.24C55.512 30.68 55.604 31.072 55.788 31.416C55.972 31.76 56.216 32.032 56.52 32.232C56.824 32.432 57.144 32.532 57.48 32.532C57.872 32.532 58.228 32.444 58.548 32.268C58.868 32.084 59.124 31.82 59.316 31.476C59.508 31.132 59.604 30.72 59.604 30.24ZM65.6756 27.48L62.0756 35.64H61.3796L62.7956 32.436L60.5636 27.48H61.3076L63.3116 32.184L63.0236 32.16L64.9796 27.48H65.6756ZM70.3604 31.344C70.3604 31.616 70.4204 31.844 70.5404 32.028C70.6684 32.212 70.8364 32.352 71.0444 32.448C71.2604 32.536 71.4964 32.58 71.7524 32.58C72.0644 32.58 72.3484 32.508 72.6044 32.364C72.8684 32.22 73.0804 32.008 73.2404 31.728C73.4004 31.448 73.4804 31.104 73.4804 30.696L73.6244 31.224C73.6244 31.656 73.5204 32.012 73.3124 32.292C73.1044 32.572 72.8444 32.78 72.5324 32.916C72.2204 33.052 71.9044 33.12 71.5844 33.12C71.2724 33.12 70.9724 33.056 70.6844 32.928C70.3964 32.792 70.1644 32.596 69.9884 32.34C69.8124 32.084 69.7244 31.76 69.7244 31.368C69.7244 30.832 69.9084 30.408 70.2764 30.096C70.6524 29.784 71.1604 29.628 71.8004 29.628C72.1604 29.628 72.4684 29.672 72.7244 29.76C72.9884 29.84 73.2044 29.932 73.3724 30.036C73.5404 30.14 73.6604 30.228 73.7324 30.3V30.696C73.4604 30.504 73.1684 30.364 72.8564 30.276C72.5524 30.18 72.2324 30.132 71.8964 30.132C71.5844 30.132 71.3124 30.176 71.0804 30.264C70.8564 30.352 70.6804 30.484 70.5524 30.66C70.4244 30.836 70.3604 31.064 70.3604 31.344ZM70.3844 28.488L70.0724 28.02C70.2804 27.876 70.5484 27.732 70.8764 27.588C71.2124 27.436 71.6244 27.36 72.1124 27.36C72.5284 27.36 72.8844 27.428 73.1804 27.564C73.4764 27.7 73.7044 27.896 73.8644 28.152C74.0244 28.408 74.1044 28.72 74.1044 29.088V33H73.4804V29.172C73.4804 29.012 73.4564 28.86 73.4084 28.716C73.3604 28.564 73.2804 28.428 73.1684 28.308C73.0644 28.188 72.9204 28.092 72.7364 28.02C72.5524 27.948 72.3284 27.912 72.0644 27.912C71.7924 27.912 71.5484 27.944 71.3324 28.008C71.1164 28.072 70.9284 28.148 70.7684 28.236C70.6164 28.324 70.4884 28.408 70.3844 28.488ZM80.0551 23.64H80.6791V33H80.0551V23.64ZM75.3391 30.24C75.3391 29.64 75.4591 29.128 75.6991 28.704C75.9391 28.272 76.2591 27.94 76.6591 27.708C77.0671 27.476 77.5151 27.36 78.0031 27.36C78.4831 27.36 78.8951 27.488 79.2391 27.744C79.5831 27.992 79.8511 28.332 80.0431 28.764C80.2431 29.196 80.3431 29.688 80.3431 30.24C80.3431 30.784 80.2431 31.276 80.0431 31.716C79.8511 32.148 79.5831 32.492 79.2391 32.748C78.8951 32.996 78.4831 33.12 78.0031 33.12C77.5151 33.12 77.0671 33.004 76.6591 32.772C76.2591 32.54 75.9391 32.208 75.6991 31.776C75.4591 31.344 75.3391 30.832 75.3391 30.24ZM75.9751 30.24C75.9751 30.72 76.0671 31.132 76.2511 31.476C76.4431 31.82 76.6991 32.084 77.0191 32.268C77.3471 32.444 77.7031 32.532 78.0871 32.532C78.4311 32.532 78.7511 32.432 79.0471 32.232C79.3511 32.032 79.5951 31.76 79.7791 31.416C79.9631 31.072 80.0551 30.68 80.0551 30.24C80.0551 29.8 79.9631 29.408 79.7791 29.064C79.5951 28.72 79.3511 28.448 79.0471 28.248C78.7511 28.048 78.4311 27.948 78.0871 27.948C77.7031 27.948 77.3471 28.04 77.0191 28.224C76.6991 28.4 76.4431 28.66 76.2511 29.004C76.0671 29.348 75.9751 29.76 75.9751 30.24ZM86.7465 23.64H87.3705V33H86.7465V23.64ZM82.0305 30.24C82.0305 29.64 82.1505 29.128 82.3905 28.704C82.6305 28.272 82.9505 27.94 83.3505 27.708C83.7585 27.476 84.2065 27.36 84.6945 27.36C85.1745 27.36 85.5865 27.488 85.9305 27.744C86.2745 27.992 86.5425 28.332 86.7345 28.764C86.9345 29.196 87.0345 29.688 87.0345 30.24C87.0345 30.784 86.9345 31.276 86.7345 31.716C86.5425 32.148 86.2745 32.492 85.9305 32.748C85.5865 32.996 85.1745 33.12 84.6945 33.12C84.2065 33.12 83.7585 33.004 83.3505 32.772C82.9505 32.54 82.6305 32.208 82.3905 31.776C82.1505 31.344 82.0305 30.832 82.0305 30.24ZM82.6665 30.24C82.6665 30.72 82.7585 31.132 82.9425 31.476C83.1345 31.82 83.3905 32.084 83.7105 32.268C84.0385 32.444 84.3945 32.532 84.7785 32.532C85.1225 32.532 85.4425 32.432 85.7385 32.232C86.0425 32.032 86.2865 31.76 86.4705 31.416C86.6545 31.072 86.7465 30.68 86.7465 30.24C86.7465 29.8 86.6545 29.408 86.4705 29.064C86.2865 28.72 86.0425 28.448 85.7385 28.248C85.4425 28.048 85.1225 27.948 84.7785 27.948C84.3945 27.948 84.0385 28.04 83.7105 28.224C83.3905 28.4 83.1345 28.66 82.9425 29.004C82.7585 29.348 82.6665 29.76 82.6665 30.24ZM88.7219 30.24C88.7219 29.68 88.8459 29.184 89.0939 28.752C89.3419 28.32 89.6779 27.98 90.1019 27.732C90.5339 27.484 91.0179 27.36 91.5539 27.36C92.0899 27.36 92.5699 27.484 92.9939 27.732C93.4259 27.98 93.7659 28.32 94.0139 28.752C94.2619 29.184 94.3859 29.68 94.3859 30.24C94.3859 30.792 94.2619 31.288 94.0139 31.728C93.7659 32.16 93.4259 32.5 92.9939 32.748C92.5699 32.996 92.0899 33.12 91.5539 33.12C91.0179 33.12 90.5339 32.996 90.1019 32.748C89.6779 32.5 89.3419 32.16 89.0939 31.728C88.8459 31.288 88.7219 30.792 88.7219 30.24ZM89.3579 30.24C89.3579 30.688 89.4539 31.084 89.6459 31.428C89.8379 31.772 90.0979 32.044 90.4259 32.244C90.7619 32.436 91.1379 32.532 91.5539 32.532C91.9699 32.532 92.3419 32.436 92.6699 32.244C93.0059 32.044 93.2699 31.772 93.4619 31.428C93.6539 31.084 93.7499 30.688 93.7499 30.24C93.7499 29.8 93.6539 29.408 93.4619 29.064C93.2699 28.712 93.0059 28.44 92.6699 28.248C92.3419 28.048 91.9699 27.948 91.5539 27.948C91.1379 27.948 90.7619 28.048 90.4259 28.248C90.0979 28.44 89.8379 28.708 89.6459 29.052C89.4539 29.396 89.3579 29.792 89.3579 30.24ZM99.3396 29.448C99.3396 28.976 99.2356 28.608 99.0276 28.344C98.8196 28.08 98.4916 27.948 98.0436 27.948C97.7316 27.948 97.4516 28.024 97.2036 28.176C96.9636 28.32 96.7716 28.52 96.6276 28.776C96.4916 29.032 96.4236 29.32 96.4236 29.64V33H95.7996V27.48H96.4236V28.632C96.5756 28.232 96.8036 27.92 97.1076 27.696C97.4196 27.472 97.7796 27.36 98.1876 27.36C98.7636 27.36 99.2036 27.544 99.5076 27.912C99.8116 28.272 99.9636 28.76 99.9636 29.376V33H99.3396V29.448ZM101.858 24.984C101.858 24.856 101.902 24.752 101.99 24.672C102.078 24.584 102.182 24.54 102.302 24.54C102.43 24.54 102.534 24.584 102.614 24.672C102.702 24.752 102.746 24.856 102.746 24.984C102.746 25.104 102.702 25.208 102.614 25.296C102.534 25.384 102.43 25.428 102.302 25.428C102.182 25.428 102.078 25.384 101.99 25.296C101.902 25.208 101.858 25.104 101.858 24.984ZM101.99 27.48H102.614V33H101.99V27.48ZM104.227 27.48H106.819V28.068H104.227V27.48ZM106.939 24.552C106.851 24.424 106.743 24.328 106.615 24.264C106.487 24.192 106.351 24.156 106.207 24.156C106.007 24.156 105.847 24.208 105.727 24.312C105.615 24.416 105.531 24.564 105.475 24.756C105.419 24.948 105.391 25.168 105.391 25.416V33H104.767V25.344C104.767 24.968 104.819 24.648 104.923 24.384C105.035 24.112 105.199 23.904 105.415 23.76C105.631 23.608 105.907 23.532 106.243 23.532C106.419 23.532 106.571 23.56 106.699 23.616C106.835 23.664 106.951 23.728 107.047 23.808C107.151 23.888 107.231 23.968 107.287 24.048L106.939 24.552ZM112.258 27.48L108.658 35.64H107.962L109.378 32.436L107.146 27.48H107.89L109.894 32.184L109.606 32.16L111.562 27.48H112.258ZM112.846 32.712C112.846 32.584 112.89 32.476 112.978 32.388C113.066 32.3 113.17 32.256 113.29 32.256C113.418 32.256 113.522 32.3 113.602 32.388C113.69 32.476 113.734 32.584 113.734 32.712C113.734 32.832 113.69 32.936 113.602 33.024C113.522 33.112 113.418 33.156 113.29 33.156C113.17 33.156 113.066 33.112 112.978 33.024C112.89 32.936 112.846 32.832 112.846 32.712Z" fill="#313131"></path><path d="M53.26 19V6.04H60.703V7.363H54.583V11.863H59.623V13.177H54.583V19H53.26ZM63.4103 19V5.77H64.7333V19H63.4103ZM72.3905 19.27C71.4245 19.27 70.5995 19.051 69.9155 18.613C69.2315 18.175 68.7065 17.569 68.3405 16.795C67.9745 16.021 67.7915 15.133 67.7915 14.131C67.7915 13.111 67.9775 12.217 68.3495 11.449C68.7215 10.681 69.2495 10.084 69.9335 9.658C70.6235 9.226 71.4425 9.01 72.3905 9.01C73.3625 9.01 74.1905 9.229 74.8745 9.667C75.5645 10.099 76.0895 10.702 76.4495 11.476C76.8155 12.244 76.9985 13.129 76.9985 14.131C76.9985 15.151 76.8155 16.048 76.4495 16.822C76.0835 17.59 75.5555 18.19 74.8655 18.622C74.1755 19.054 73.3505 19.27 72.3905 19.27ZM72.3905 18.001C73.4705 18.001 74.2745 17.644 74.8025 16.93C75.3305 16.21 75.5945 15.277 75.5945 14.131C75.5945 12.955 75.3275 12.019 74.7935 11.323C74.2655 10.627 73.4645 10.279 72.3905 10.279C71.6645 10.279 71.0645 10.444 70.5905 10.774C70.1225 11.098 69.7715 11.551 69.5375 12.133C69.3095 12.709 69.1955 13.375 69.1955 14.131C69.1955 15.301 69.4655 16.24 70.0055 16.948C70.5455 17.65 71.3405 18.001 72.3905 18.001ZM82.6648 19.27C81.9328 19.27 81.3178 19.138 80.8198 18.874C80.3278 18.61 79.9588 18.259 79.7128 17.821C79.4668 17.383 79.3438 16.906 79.3438 16.39C79.3438 15.862 79.4488 15.412 79.6588 15.04C79.8748 14.662 80.1658 14.353 80.5318 14.113C80.9038 13.873 81.3328 13.69 81.8188 13.564C82.3108 13.444 82.8538 13.339 83.4478 13.249C84.0478 13.153 84.6328 13.072 85.2028 13.006C85.7788 12.934 86.2828 12.865 86.7148 12.799L86.2468 13.087C86.2648 12.127 86.0788 11.416 85.6888 10.954C85.2988 10.492 84.6208 10.261 83.6548 10.261C82.9888 10.261 82.4248 10.411 81.9628 10.711C81.5068 11.011 81.1858 11.485 80.9998 12.133L79.7128 11.755C79.9348 10.885 80.3818 10.21 81.0538 9.73C81.7258 9.25 82.5988 9.01 83.6728 9.01C84.5608 9.01 85.3138 9.178 85.9318 9.514C86.5558 9.844 86.9968 10.324 87.2548 10.954C87.3748 11.236 87.4528 11.551 87.4888 11.899C87.5248 12.247 87.5428 12.601 87.5428 12.961V19H86.3638V16.561L86.7058 16.705C86.3758 17.539 85.8628 18.175 85.1668 18.613C84.4708 19.051 83.6368 19.27 82.6648 19.27ZM82.8178 18.127C83.4358 18.127 83.9758 18.016 84.4378 17.794C84.8998 17.572 85.2718 17.269 85.5538 16.885C85.8358 16.495 86.0188 16.057 86.1028 15.571C86.1748 15.259 86.2138 14.917 86.2198 14.545C86.2258 14.167 86.2288 13.885 86.2288 13.699L86.7328 13.96C86.2828 14.02 85.7938 14.08 85.2658 14.14C84.7438 14.2 84.2278 14.269 83.7178 14.347C83.2138 14.425 82.7578 14.518 82.3498 14.626C82.0738 14.704 81.8068 14.815 81.5488 14.959C81.2908 15.097 81.0778 15.283 80.9098 15.517C80.7478 15.751 80.6668 16.042 80.6668 16.39C80.6668 16.672 80.7358 16.945 80.8738 17.209C81.0178 17.473 81.2458 17.692 81.5578 17.866C81.8758 18.04 82.2958 18.127 82.8178 18.127ZM96.0778 19C95.5318 19.114 94.9918 19.159 94.4578 19.135C93.9298 19.111 93.4558 18.997 93.0358 18.793C92.6218 18.589 92.3068 18.271 92.0908 17.839C91.9168 17.479 91.8208 17.116 91.8028 16.75C91.7908 16.378 91.7848 15.955 91.7848 15.481V6.58H93.0988V15.427C93.0988 15.835 93.1018 16.177 93.1078 16.453C93.1198 16.723 93.1828 16.963 93.2968 17.173C93.5128 17.575 93.8548 17.815 94.3228 17.893C94.7968 17.971 95.3818 17.953 96.0778 17.839V19ZM89.7058 10.414V9.28H96.0778V10.414H89.7058ZM99.0728 7.435V5.95H100.396V7.435H99.0728ZM99.0728 19V9.28H100.396V19H99.0728ZM111.014 19V14.041C111.014 13.501 110.963 13.006 110.861 12.556C110.759 12.1 110.594 11.704 110.366 11.368C110.144 11.026 109.853 10.762 109.493 10.576C109.139 10.39 108.707 10.297 108.197 10.297C107.729 10.297 107.315 10.378 106.955 10.54C106.601 10.702 106.301 10.936 106.055 11.242C105.815 11.542 105.632 11.908 105.506 12.34C105.38 12.772 105.317 13.264 105.317 13.816L104.381 13.609C104.381 12.613 104.555 11.776 104.903 11.098C105.251 10.42 105.731 9.907 106.343 9.559C106.955 9.211 107.657 9.037 108.449 9.037C109.031 9.037 109.538 9.127 109.97 9.307C110.408 9.487 110.777 9.73 111.077 10.036C111.383 10.342 111.629 10.693 111.815 11.089C112.001 11.479 112.136 11.896 112.22 12.34C112.304 12.778 112.346 13.216 112.346 13.654V19H111.014ZM103.985 19V9.28H105.182V11.674H105.317V19H103.985ZM119.442 23.59C118.944 23.59 118.452 23.515 117.966 23.365C117.486 23.221 117.042 22.99 116.634 22.672C116.226 22.36 115.884 21.952 115.608 21.448L116.805 20.782C117.075 21.322 117.453 21.709 117.939 21.943C118.431 22.183 118.932 22.303 119.442 22.303C120.144 22.303 120.711 22.171 121.143 21.907C121.581 21.649 121.899 21.265 122.097 20.755C122.295 20.245 122.391 19.609 122.385 18.847V16.255H122.538V9.28H123.717V18.865C123.717 19.141 123.708 19.405 123.69 19.657C123.678 19.915 123.651 20.167 123.609 20.413C123.495 21.139 123.258 21.736 122.898 22.204C122.544 22.672 122.076 23.02 121.494 23.248C120.918 23.476 120.234 23.59 119.442 23.59ZM119.352 19.27C118.446 19.27 117.672 19.045 117.03 18.595C116.388 18.139 115.896 17.524 115.554 16.75C115.212 15.976 115.041 15.103 115.041 14.131C115.041 13.165 115.209 12.295 115.545 11.521C115.887 10.747 116.376 10.135 117.012 9.685C117.648 9.235 118.41 9.01 119.298 9.01C120.21 9.01 120.978 9.232 121.602 9.676C122.226 10.12 122.697 10.729 123.015 11.503C123.339 12.271 123.501 13.147 123.501 14.131C123.501 15.097 123.342 15.97 123.024 16.75C122.706 17.524 122.238 18.139 121.62 18.595C121.002 19.045 120.246 19.27 119.352 19.27ZM119.487 18.037C120.177 18.037 120.747 17.869 121.197 17.533C121.647 17.197 121.983 16.735 122.205 16.147C122.427 15.553 122.538 14.881 122.538 14.131C122.538 13.369 122.427 12.697 122.205 12.115C121.983 11.527 121.647 11.068 121.197 10.738C120.753 10.408 120.192 10.243 119.514 10.243C118.818 10.243 118.242 10.414 117.786 10.756C117.33 11.098 116.991 11.563 116.769 12.151C116.553 12.739 116.445 13.399 116.445 14.131C116.445 14.869 116.556 15.535 116.778 16.129C117.006 16.717 117.345 17.182 117.795 17.524C118.245 17.866 118.809 18.037 119.487 18.037ZM136.884 19.27C135.594 19.27 134.505 18.985 133.617 18.415C132.729 17.839 132.057 17.044 131.601 16.03C131.145 15.016 130.917 13.846 130.917 12.52C130.917 11.194 131.145 10.024 131.601 9.01C132.057 7.996 132.729 7.204 133.617 6.634C134.505 6.058 135.594 5.77 136.884 5.77C138.39 5.77 139.62 6.157 140.574 6.931C141.528 7.699 142.182 8.731 142.536 10.027L141.186 10.378C140.91 9.352 140.415 8.539 139.701 7.939C138.987 7.339 138.048 7.039 136.884 7.039C135.87 7.039 135.027 7.27 134.355 7.732C133.683 8.194 133.176 8.839 132.834 9.667C132.498 10.489 132.324 11.44 132.312 12.52C132.306 13.6 132.471 14.551 132.807 15.373C133.149 16.195 133.659 16.84 134.337 17.308C135.021 17.77 135.87 18.001 136.884 18.001C138.048 18.001 138.987 17.701 139.701 17.101C140.415 16.495 140.91 15.682 141.186 14.662L142.536 15.013C142.182 16.309 141.528 17.344 140.574 18.118C139.62 18.886 138.39 19.27 136.884 19.27ZM148.203 19.27C147.471 19.27 146.856 19.138 146.358 18.874C145.866 18.61 145.497 18.259 145.251 17.821C145.005 17.383 144.882 16.906 144.882 16.39C144.882 15.862 144.987 15.412 145.197 15.04C145.413 14.662 145.704 14.353 146.07 14.113C146.442 13.873 146.871 13.69 147.357 13.564C147.849 13.444 148.392 13.339 148.986 13.249C149.586 13.153 150.171 13.072 150.741 13.006C151.317 12.934 151.821 12.865 152.253 12.799L151.785 13.087C151.803 12.127 151.617 11.416 151.227 10.954C150.837 10.492 150.159 10.261 149.193 10.261C148.527 10.261 147.963 10.411 147.501 10.711C147.045 11.011 146.724 11.485 146.538 12.133L145.251 11.755C145.473 10.885 145.92 10.21 146.592 9.73C147.264 9.25 148.137 9.01 149.211 9.01C150.099 9.01 150.852 9.178 151.47 9.514C152.094 9.844 152.535 10.324 152.793 10.954C152.913 11.236 152.991 11.551 153.027 11.899C153.063 12.247 153.081 12.601 153.081 12.961V19H151.902V16.561L152.244 16.705C151.914 17.539 151.401 18.175 150.705 18.613C150.009 19.051 149.175 19.27 148.203 19.27ZM148.356 18.127C148.974 18.127 149.514 18.016 149.976 17.794C150.438 17.572 150.81 17.269 151.092 16.885C151.374 16.495 151.557 16.057 151.641 15.571C151.713 15.259 151.752 14.917 151.758 14.545C151.764 14.167 151.767 13.885 151.767 13.699L152.271 13.96C151.821 14.02 151.332 14.08 150.804 14.14C150.282 14.2 149.766 14.269 149.256 14.347C148.752 14.425 148.296 14.518 147.888 14.626C147.612 14.704 147.345 14.815 147.087 14.959C146.829 15.097 146.616 15.283 146.448 15.517C146.286 15.751 146.205 16.042 146.205 16.39C146.205 16.672 146.274 16.945 146.412 17.209C146.556 17.473 146.784 17.692 147.096 17.866C147.414 18.04 147.834 18.127 148.356 18.127ZM156.324 19V9.28H157.512V11.62L157.278 11.314C157.386 11.026 157.527 10.762 157.701 10.522C157.875 10.276 158.064 10.075 158.268 9.919C158.52 9.697 158.814 9.529 159.15 9.415C159.486 9.295 159.825 9.226 160.167 9.208C160.509 9.184 160.821 9.208 161.103 9.28V10.522C160.749 10.432 160.362 10.411 159.942 10.459C159.522 10.507 159.135 10.675 158.781 10.963C158.457 11.215 158.214 11.518 158.052 11.872C157.89 12.22 157.782 12.592 157.728 12.988C157.674 13.378 157.647 13.765 157.647 14.149V19H156.324ZM169.002 19C168.456 19.114 167.916 19.159 167.382 19.135C166.854 19.111 166.38 18.997 165.96 18.793C165.546 18.589 165.231 18.271 165.015 17.839C164.841 17.479 164.745 17.116 164.727 16.75C164.715 16.378 164.709 15.955 164.709 15.481V6.58H166.023V15.427C166.023 15.835 166.026 16.177 166.032 16.453C166.044 16.723 166.107 16.963 166.221 17.173C166.437 17.575 166.779 17.815 167.247 17.893C167.721 17.971 168.306 17.953 169.002 17.839V19ZM162.63 10.414V9.28H169.002V10.414H162.63Z" fill="#313131"></path><path d="M0 3C0 1.34315 1.34315 0 3 0H41C42.6569 0 44 1.34315 44 3V29C44 37.2843 37.2843 44 29 44H3C1.34315 44 0 42.6569 0 41V3Z" fill="#770CFF"></path><g clip-path="url(#clip0_106_2)"><path d="M17.25 31.1667C17.7563 31.1667 18.1667 30.7563 18.1667 30.25C18.1667 29.7437 17.7563 29.3333 17.25 29.3333C16.7438 29.3333 16.3334 29.7437 16.3334 30.25C16.3334 30.7563 16.7438 31.1667 17.25 31.1667Z" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M27.3333 31.1667C27.8396 31.1667 28.25 30.7563 28.25 30.25C28.25 29.7437 27.8396 29.3333 27.3333 29.3333C26.827 29.3333 26.4166 29.7437 26.4166 30.25C26.4166 30.7563 26.827 31.1667 27.3333 31.1667Z" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M9.91663 11.9167H13.5833L16.04 24.1908C16.1238 24.6129 16.3534 24.992 16.6885 25.2618C17.0237 25.5316 17.4431 25.6749 17.8733 25.6667H26.7833C27.2135 25.6749 27.6329 25.5316 27.968 25.2618C28.3032 24.992 28.5328 24.6129 28.6166 24.1908L30.0833 16.5H14.5" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></g><defs><clipPath id="clip0_106_2"><rect width="22" height="22" fill="white" transform="translate(9 11)"></rect></clipPath></defs>',5)];var l=n(2618);const c={},u=(0,l.Z)(c,[["render",function(t,e){return(0,r.wg)(),(0,r.iD)("svg",a,i)}]]);var s={key:0,viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},d=[(0,r._)("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32zm448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32zm-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32zM195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0zm-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"},null,-1)],f={key:1,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},p=[(0,r._)("path",{d:"M11 18H7.94101C7.64391 16.7274 6.30412 15.6857 5.75395 14.9992C4.65645 13.6297 4 11.8915 4 10C4 5.58172 7.58172 2 12 2C16.4183 2 20 5.58172 20 10C20 11.8925 19.3428 13.6315 18.2443 15.0014C17.6944 15.687 16.3558 16.7276 16.059 18H13V13H11V18ZM16 20V21C16 22.1046 15.1046 23 14 23H10C8.89543 23 8 22.1046 8 21V20H16Z"},null,-1)],h={key:2,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},y=[(0,r._)("path",{d:"M21 10.063V4C21 3.44772 20.5523 3 20 3H19C17.0214 4.97864 13.3027 6.08728 11 6.61281V17.3872C13.3027 17.9127 17.0214 19.0214 19 21H20C20.5523 21 21 20.5523 21 20V13.937C21.8626 13.715 22.5 12.9319 22.5 12 22.5 11.0681 21.8626 10.285 21 10.063ZM5 7C3.89543 7 3 7.89543 3 9V15C3 16.1046 3.89543 17 5 17H6L7 22H9V7H5Z"},null,-1)],g={key:3,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},v=[(0,r._)("path",{d:"M12,10c1.1,0,2,.9,2,2s-.9,2-2,2-2-.9-2-2,.9-2,2-2Zm8.49,10.49c4.68-4.68,4.68-12.29,0-16.97-.39-.39-1.02-.39-1.41,0s-.39,1.02,0,1.41c3.9,3.9,3.9,10.24,0,14.14-.39,.39-.39,1.02,0,1.41,.2,.2,.45,.29,.71,.29s.51-.1,.71-.29Zm-3.54-3.54c1.32-1.32,2.05-3.08,2.05-4.95s-.73-3.63-2.05-4.95c-.39-.39-1.02-.39-1.41,0s-.39,1.02,0,1.41c.94,.94,1.46,2.2,1.46,3.54s-.52,2.59-1.46,3.54c-.39,.39-.39,1.02,0,1.41,.2,.2,.45,.29,.71,.29s.51-.1,.71-.29Zm-12.02,3.54c.39-.39,.39-1.02,0-1.41-3.9-3.9-3.9-10.24,0-14.14,.39-.39,.39-1.02,0-1.41s-1.02-.39-1.41,0C-1.16,8.19-1.16,15.81,3.51,20.49c.2,.2,.45,.29,.71,.29s.51-.1,.71-.29Zm3.54-3.54c.39-.39,.39-1.02,0-1.41-1.95-1.95-1.95-5.12,0-7.07,.39-.39,.39-1.02,0-1.41s-1.02-.39-1.41,0c-2.73,2.73-2.73,7.17,0,9.9,.2,.2,.45,.29,.71,.29s.51-.1,.71-.29Z"},null,-1)],m={key:4,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},w=[(0,r._)("path",{d:"M12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 16C14.2091 16 16 14.2091 16 12C16 9.79086 14.2091 8 12 8C9.79086 8 8 9.79086 8 12C8 14.2091 9.79086 16 12 16ZM12 18C8.68629 18 6 15.3137 6 12C6 8.68629 8.68629 6 12 6C15.3137 6 18 8.68629 18 12C18 15.3137 15.3137 18 12 18ZM12 14C10.8954 14 10 13.1046 10 12C10 10.8954 10.8954 10 12 10C13.1046 10 14 10.8954 14 12C14 13.1046 13.1046 14 12 14Z"},null,-1)],C={key:5,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},b=[(0,r._)("path",{fill:"none",d:"M0 0h24v24H0z"},null,-1),(0,r._)("path",{d:"M2.132 13.63a9.942 9.942 0 0 1 0-3.26c1.102.026 2.092-.502 2.477-1.431.385-.93.058-2.004-.74-2.763a9.942 9.942 0 0 1 2.306-2.307c.76.798 1.834 1.125 2.764.74.93-.385 1.457-1.376 1.43-2.477a9.942 9.942 0 0 1 3.262 0c-.027 1.102.501 2.092 1.43 2.477.93.385 2.004.058 2.763-.74a9.942 9.942 0 0 1 2.307 2.306c-.798.76-1.125 1.834-.74 2.764.385.93 1.376 1.457 2.477 1.43a9.942 9.942 0 0 1 0 3.262c-1.102-.027-2.092.501-2.477 1.43-.385.93-.058 2.004.74 2.763a9.942 9.942 0 0 1-2.306 2.307c-.76-.798-1.834-1.125-2.764-.74-.93.385-1.457 1.376-1.43 2.477a9.942 9.942 0 0 1-3.262 0c.027-1.102-.501-2.092-1.43-2.477-.93-.385-2.004-.058-2.763.74a9.942 9.942 0 0 1-2.307-2.306c.798-.76 1.125-1.834.74-2.764-.385-.93-1.376-1.457-2.477-1.43zM12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6z"},null,-1)],_={key:6,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},S=[(0,r._)("path",{fill:"none",d:"M0 0h24v24H0z"},null,-1),(0,r._)("path",{d:"M4 3h16a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1zm2 9h6a1 1 0 0 1 1 1v3h1v6h-4v-6h1v-2H5a1 1 0 0 1-1-1v-2h2v1zm11.732 1.732l1.768-1.768 1.768 1.768a2.5 2.5 0 1 1-3.536 0z"},null,-1)],k={key:7,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},x=[(0,r._)("path",{fill:"none",d:"M0 0h24v24H0z"},null,-1),(0,r._)("path",{d:"M13 16.938V19h5v2H6v-2h5v-2.062A8.001 8.001 0 0 1 4 9V3h16v6a8.001 8.001 0 0 1-7 7.938zM1 5h2v4H1V5zm20 0h2v4h-2V5z"},null,-1)],V={key:8,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},L=[(0,r._)("path",{d:"M9 2.00318V2H19.9978C20.5513 2 21 2.45531 21 2.9918V21.0082C21 21.556 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5501 3 20.9932V8L9 2.00318ZM5.82918 8H9V4.83086L5.82918 8ZM11 4V9C11 9.55228 10.5523 10 10 10H5V20H19V4H11Z"},null,-1)],U={key:9,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},j=[(0,r._)("path",{d:"M17.0007 1.20801 18.3195 3.68083 20.7923 4.99968 18.3195 6.31852 17.0007 8.79134 15.6818 6.31852 13.209 4.99968 15.6818 3.68083 17.0007 1.20801ZM10.6673 9.33301 15.6673 11.9997 10.6673 14.6663 8.00065 19.6663 5.33398 14.6663.333984 11.9997 5.33398 9.33301 8.00065 4.33301 10.6673 9.33301ZM11.4173 11.9997 9.18905 10.8113 8.00065 8.58301 6.81224 10.8113 4.58398 11.9997 6.81224 13.1881 8.00065 15.4163 9.18905 13.1881 11.4173 11.9997ZM19.6673 16.333 18.0007 13.208 16.334 16.333 13.209 17.9997 16.334 19.6663 18.0007 22.7913 19.6673 19.6663 22.7923 17.9997 19.6673 16.333Z"},null,-1)],O={key:10,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},E=[(0,r._)("path",{d:"M17.5,1.917a6.4,6.4,0,0,0-5.5,3.3,6.4,6.4,0,0,0-5.5-3.3A6.8,6.8,0,0,0,0,8.967c0,4.547,4.786,9.513,8.8,12.88a4.974,4.974,0,0,0,6.4,0C19.214,18.48,24,13.514,24,8.967A6.8,6.8,0,0,0,17.5,1.917Z"},null,-1)];const H={__name:"Icons",props:{icon:{type:String,required:!0}},setup:function(t){var e=t.icon;return function(t,n){return(0,r.wg)(),(0,r.iD)(r.HY,null,["spinner"===(0,r.SU)(e)?((0,r.wg)(),(0,r.iD)("svg",s,d)):(0,r.kq)("",!0),"bulb-solid"===(0,r.SU)(e)?((0,r.wg)(),(0,r.iD)("svg",f,p)):(0,r.kq)("",!0),"megaphone-solid"===(0,r.SU)(e)?((0,r.wg)(),(0,r.iD)("svg",h,y)):(0,r.kq)("",!0),"signal-tower"===(0,r.SU)(e)?((0,r.wg)(),(0,r.iD)("svg",g,v)):(0,r.kq)("",!0),"focus-1-solid"===(0,r.SU)(e)?((0,r.wg)(),(0,r.iD)("svg",m,w)):(0,r.kq)("",!0),"gears"===(0,r.SU)(e)?((0,r.wg)(),(0,r.iD)("svg",C,b)):(0,r.kq)("",!0),"paint"===(0,r.SU)(e)?((0,r.wg)(),(0,r.iD)("svg",_,S)):(0,r.kq)("",!0),"trophy"===(0,r.SU)(e)?((0,r.wg)(),(0,r.iD)("svg",k,x)):(0,r.kq)("",!0),"paper"===(0,r.SU)(e)?((0,r.wg)(),(0,r.iD)("svg",V,L)):(0,r.kq)("",!0),"sparkling-stars"===(0,r.SU)(e)?((0,r.wg)(),(0,r.iD)("svg",U,j)):(0,r.kq)("",!0),"heart"===(0,r.SU)(e)?((0,r.wg)(),(0,r.iD)("svg",O,E)):(0,r.kq)("",!0)],64)}}};var M=n(5266);n(26);function P(){P=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),l=new O(r||[]);return o(i,"_invoke",{value:V(t,n,l)}),i}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var f="suspendedStart",p="suspendedYield",h="executing",y="completed",g={};function v(){}function m(){}function w(){}var C={};u(C,i,(function(){return this}));var b=Object.getPrototypeOf,_=b&&b(b(E([])));_&&_!==n&&r.call(_,i)&&(C=_);var S=w.prototype=v.prototype=Object.create(C);function k(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function n(o,a,i,l){var c=d(t[o],t,a);if("throw"!==c.type){var u=c.arg,s=u.value;return s&&"object"==A(s)&&r.call(s,"__await")?e.resolve(s.__await).then((function(t){n("next",t,i,l)}),(function(t){n("throw",t,i,l)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return n("throw",t,i,l)}))}l(c.arg)}var a;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function V(e,n,r){var o=f;return function(a,i){if(o===h)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var l=r.delegate;if(l){var c=L(l,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var u=d(e,n,r);if("normal"===u.type){if(o=r.done?y:p,u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=y,r.method="throw",r.arg=u.arg)}}}function L(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var a=d(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,g;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function U(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(U,this),this.reset(!0)}function E(e){if(e||""===e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(A(e)+" is not iterable")}return m.prototype=w,o(S,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:m,configurable:!0}),m.displayName=u(w,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,u(t,c,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},k(x.prototype),u(x.prototype,l,(function(){return this})),e.AsyncIterator=x,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new x(s(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},k(S),u(S,c,"Generator"),u(S,i,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=E,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return l.type="throw",l.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],l=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:E(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function Z(t,e,n,r,o,a,i){try{var l=t[a](i),c=l.value}catch(t){return void n(t)}l.done?e(c):Promise.resolve(c).then(r,o)}function z(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function i(t){Z(a,r,o,i,l,"next",t)}function l(t){Z(a,r,o,i,l,"throw",t)}i(void 0)}))}}function A(t){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},A(t)}var q=ADDONIFY_WOOFC_LOCOLIZER.rest_namespace,D={},F=wp.apiFetch,N=wp.i18n.__,I=lodash,K=I.isEqual,T=I.cloneDeep,W=(0,o.Q_)({id:"Options",state:function(){return{data:{},options:{},message:"",isLoading:!0,isSaving:!1,needSave:!1,errors:""}},getters:{needSaving:function(t){return!K(t.options,D)},haveStateInMemory:function(t){return"array"==typeof t.options?0!==t.options.length:"object"===A(t.options)?0!==Object.keys(t.options).length:void 0}},actions:{renderOptions:function(){var t=this;return z(P().mark((function e(){var n,r,o,a;return P().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t.isLoading=!0,e.next=4,F({path:q+"/get_options",method:"GET",cache:"no-cache"});case 4:n=e.sent,r=n.settings_values,o=n.tabs,a=r,t.data=o,t.options=a,D=T(a),t.isLoading=!1,e.next=19;break;case 14:return e.prev=14,e.t0=e.catch(0),console.log(e.t0),t.isLoading=!1,e.abrupt("return",M.z8.error({message:N("Something went wrong while fetching settings.","addonify-floating-cart"),offset:50,duration:1e4}));case 19:case"end":return e.stop()}}),e,null,[[0,14]])})))()},handleUpdateOptions:function(){var t=this,e=new Object;Object.keys(this.options).map((function(n){K(t.options[n],D[n])||(e[n]=t.options[n])})),this.updateOptions(e)},updateOptions:function(t){var e=this;return z(P().mark((function n(){var r,o;return P().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,e.isSaving=!0,n.next=4,F({path:q+"/update_options",method:"POST",data:{settings_values:t},cache:"no-cache"});case 4:if((r=n.sent).success){n.next=7;break}return n.abrupt("return",M.z8.error({message:N("Error saving changes! Please try again.","addonify-floating-cart"),offset:50,duration:15e3}));case 7:return o=T(e.options),e.options={},e.options=T(o),D=T(e.options),e.isSaving=!1,n.abrupt("return",M.z8.success({message:r.message,offset:50,duration:3e3}));case 15:return n.prev=15,n.t0=n.catch(0),console.log(n.t0),e.isSaving=!1,n.abrupt("return",M.z8.error({message:N("Error saving changes! Please try again.","addonify-floating-cart"),offset:50,duration:15e3}));case 20:case"end":return n.stop()}}),n,null,[[0,15]])})))()}}}),G={class:"adfy-header"},Y={class:"adfy-row"},B={class:"adfy-col start"},R={class:"branding"},$={class:"adfy-col end"},Q={class:"action-buttons"},J={class:"links"},X={href:"https://docs.addonify.com/kb/floating-cart/",class:"adfy-button fake-button has-underline",target:"_blank"},tt={href:"https://wordpress.org/support/plugin/addonify-floating-cart/reviews/?filter=5",class:"adfy-button fake-button has-underline",target:"_blank"},et={class:"buttons"},nt=["disabled","loading"],rt={class:"loading-icon"};const ot={__name:"Header",setup:function(t){var e=wp.i18n.__,n=W();return function(t,o){var a=(0,r.up)("router-link");return(0,r.wg)(),(0,r.iD)("header",G,[(0,r._)("div",Y,[(0,r._)("div",B,[(0,r._)("div",R,[(0,r.Wm)(a,{class:"adfy-link",to:"/"},{default:(0,r.w5)((function(){return[(0,r.Wm)(u)]})),_:1})])]),(0,r._)("div",$,[(0,r._)("div",Q,[(0,r._)("div",J,[(0,r._)("a",X,[(0,r.Wm)(H,{icon:"paper"}),(0,r.Uk)(" "+(0,r.zw)((0,r.SU)(e)("AFC docs","addonify-floating-cart")),1)]),(0,r._)("a",tt,[(0,r.Wm)(H,{icon:"sparkling-stars"}),(0,r.Uk)(" "+(0,r.zw)((0,r.SU)(e)("Rate AFC","addonify-floating-cart")),1)])]),(0,r._)("div",et,[(0,r._)("button",{type:"submit",onClick:o[0]||(o[0]=function(t){return(0,r.SU)(n).handleUpdateOptions()}),class:"adfy-button",disabled:!(0,r.SU)(n).needSaving,loading:(0,r.SU)(n).isSaving},[(0,r._)("span",rt,[(0,r.Wm)(H,{icon:"spinner"})]),(0,r.Uk)(" "+(0,r.zw)((0,r.SU)(e)("Save Options","addonify-floating-cart")),1)],8,nt)])])])])])}}},at=ot;var it={class:"adfy-colopon"},lt={class:"adfy-row"},ct={class:"adfy-col left"},ut={class:"text"},st={class:"version"},dt={class:"adfy-col right"},ft={class:"text"},pt={href:"https://wordpress.org/plugins/addonify-floating-cart/#reviews",class:"adfy-link",target:"_blank"},ht=(0,r.uE)('<span class="icon"><i class="dashicons dashicons-star-filled"></i><i class="dashicons dashicons-star-filled"></i><i class="dashicons dashicons-star-filled"></i><i class="dashicons dashicons-star-filled"></i><i class="dashicons dashicons-star-filled"></i></span>',1);const yt={__name:"Footer",setup:function(t){var e=wp.i18n.__,n=ADDONIFY_WOOFC_LOCOLIZER.version_number,o=(new Date).getFullYear();return function(t,a){return(0,r.wg)(),(0,r.iD)("footer",it,[(0,r._)("div",lt,[(0,r._)("div",ct,[(0,r._)("p",ut,[(0,r.Uk)(" © 2020 - "+(0,r.zw)((0,r.SU)(o))+" Addonify Floating Cart ",1),(0,r._)("span",st,(0,r.zw)((0,r.SU)(e)("Version","addonify-floating-cart"))+": "+(0,r.zw)((0,r.SU)(n)),1)])]),(0,r._)("div",dt,[(0,r._)("p",ft,[(0,r._)("a",pt,[(0,r.Uk)((0,r.zw)((0,r.SU)(e)("Rate","addonify-floating-cart"))+" ",1),ht,(0,r.Uk)(" :) ")])])])])])}}},gt=yt,vt={__name:"App",setup:function(t){return function(t,e){var n=(0,r.up)("router-view");return(0,r.wg)(),(0,r.iD)(r.HY,null,[(0,r.Wm)(at),(0,r.Wm)(n),(0,r.Wm)(gt)],64)}}};var mt=n(5397),wt={class:"adfy-loading"},Ct=[(0,r._)("span",{class:"pulse"},null,-1)];const bt={},_t=(0,l.Z)(bt,[["render",function(t,e){return(0,r.wg)(),(0,r.iD)("section",wt,Ct)}]]);var St={class:"adfy-navigation"},kt={class:"navigation"},xt={class:"icon"},Vt={class:"icon"},Lt={class:"icon"},Ut={class:"donation"},jt={href:"https://donation.creamcode.org",target:"_blank",rel:"noopener noreferrer",class:"donation-link"},Ot={class:"icon"};const Et={__name:"Navigation",setup:function(t){var e=wp.i18n.__;return function(t,n){var o=(0,r.up)("router-link");return(0,r.wg)(),(0,r.iD)("nav",St,[(0,r._)("ul",kt,[(0,r._)("li",null,[(0,r.Wm)(o,{to:"/"},{default:(0,r.w5)((function(){return[(0,r._)("span",xt,[(0,r.Wm)(H,{icon:"gears"})]),(0,r.Uk)(" "+(0,r.zw)((0,r.SU)(e)("Settings","addonify-floating-cart")),1)]})),_:1})]),(0,r._)("li",null,[(0,r.Wm)(o,{to:"/styles"},{default:(0,r.w5)((function(){return[(0,r._)("span",Vt,[(0,r.Wm)(H,{icon:"paint"})]),(0,r.Uk)(" "+(0,r.zw)((0,r.SU)(e)("Design","addonify-floating-cart")),1)]})),_:1})]),(0,r._)("li",null,[(0,r.Wm)(o,{to:"/products"},{default:(0,r.w5)((function(){return[(0,r._)("span",Lt,[(0,r.Wm)(H,{icon:"trophy"})]),(0,r.Uk)(" "+(0,r.zw)((0,r.SU)(e)("Products","addonify-floating-cart")),1)]})),_:1})]),(0,r._)("li",Ut,[(0,r._)("a",jt,[(0,r._)("span",Ot,[(0,r.Wm)(H,{icon:"heart"})]),(0,r.Uk)(" "+(0,r.zw)((0,r.SU)(e)("Donate (Coffee)","addonify-floating-cart")),1)])])])])}}},Ht=Et;var Mt=["id"];const Pt={__name:"Form",props:{divId:String,className:String},setup:function(t){var e=t;return function(t,n){return(0,r.wg)(),(0,r.iD)("form",{id:e.divId,class:(0,r.C_)(["adfy-form",e.className]),onSubmit:n[0]||(n[0]=(0,r.iM)((function(){}),["prevent"]))},[(0,r.WI)(t.$slots,"default")],42,Mt)}}};var Zt={key:0,class:"section-title-holder"},zt={class:"section-title"};const At={__name:"SectionTitle",props:{section:{type:Object,required:!0}},setup:function(t){var e=t;return function(t,n){return e.section.title?((0,r.wg)(),(0,r.iD)("div",Zt,[(0,r._)("h3",zt,(0,r.zw)(e.section.title),1)])):(0,r.kq)("",!0)}}};var qt=n(888),Dt=(n(5650),n(8168)),Ft=(n(4228),n(5428));function Nt(t){return Nt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nt(t)}const It={__name:"Switch",props:{modelValue:{type:[String,Boolean,Number],required:!0}},emits:["update:modelValue"],setup:function(t,e){var n=e.emit,o=t,a=n,i=(0,r.Fl)({get:function(){switch(Nt(o.modelValue)){case"boolean":return o.modelValue;case"number":return o.modelValue>0;case"string":return"1"===o.modelValue;default:return!1}},set:function(t){a("update:modelValue",t)}});return function(t,e){return(0,r.wg)(),(0,r.j4)((0,r.SU)(Dt.OX),{modelValue:i.value,"onUpdate:modelValue":e[0]||(e[0]=function(t){return i.value=t}),size:"large","inline-prompt":"","active-icon":(0,r.SU)(Ft.JrY),"inactive-icon":(0,r.SU)(Ft.x8P)},null,8,["modelValue","active-icon","inactive-icon"])}}};var Kt=n(6662);n(5754);const Tt={__name:"Text",props:{modelValue:String,placeholder:String},emits:["update:modelValue"],setup:function(t,e){var n=e.emit,o=t,a=n,i=(0,r.Fl)({get:function(){return o.modelValue},set:function(t){a("update:modelValue",t)}}),l=wp.i18n.__;return function(t,e){return(0,r.wg)(),(0,r.j4)((0,r.SU)(Kt.EZ),{modelValue:i.value,"onUpdate:modelValue":e[0]||(e[0]=function(t){return i.value=t}),placeholder:o.placeholder?o.placeholder:(0,r.SU)(l)("Enter text here...","addonify-floating-cart"),size:"large"},null,8,["modelValue","placeholder"])}}},Wt=Tt,Gt={__name:"Textarea",props:{modelValue:{type:String,required:!1},className:{type:String,required:!1},placeholder:{type:String,required:!1}},emits:["update:modelValue"],setup:function(t,e){var n=e.emit,o=t,a=n,i=(0,r.Fl)({get:function(){return o.modelValue},set:function(t){a("update:modelValue",t)}}),l=wp.i18n.__;return function(e,n){return(0,r.wg)(),(0,r.j4)((0,r.SU)(Kt.EZ),{modelValue:i.value,"onUpdate:modelValue":n[0]||(n[0]=function(t){return i.value=t}),class:(0,r.C_)(t.className),type:"textarea",rows:"10",placeholder:o.placeholder?o.placeholder:(0,r.SU)(l)("Enter text here...","addonify-floating-cart"),resize:"vertical","input-style":"display:block;width: 100%;"},null,8,["modelValue","class","placeholder"])}}};var Yt=n(7255),Bt=n.n(Yt),Rt=n(7797),$t={insert:"head",singleton:!1};Bt()(Rt.Z,$t);Rt.Z.locals;const Qt=Gt;var Jt=n(5939),Xt=n(6097);n(5671),n(6562);const te={__name:"Number",props:{modelValue:{type:[Number,String],required:!0},min:{type:[String,Number],required:!1},max:{type:[String,Number],required:!1},step:{type:[String,Number],required:!1},precision:{type:[String,Number],required:!1},placeholder:{type:String,required:!1,default:""},style:{type:String,required:!1,default:"default"},unit:{type:String,required:!1,default:"px"},sliderDirection:{type:String,required:!1,default:"horizontal"}},emits:["update:modelValue"],setup:function(t,e){var n=e.emit,o=t,a=o.style,i=o.min,l=o.max,c=o.precision,u=o.step,s=o.unit,d=o.placeholder,f=n,p=(0,r.Fl)({get:function(){return parseFloat(o.modelValue)},set:function(t){f("update:modelValue",t)}}),h=function(t){return t+" "+s};return function(t,e){return(0,r.wg)(),(0,r.iD)(r.HY,null,["default"===(0,r.SU)(a)?((0,r.wg)(),(0,r.j4)((0,r.SU)(Kt.EZ),{key:0,type:"number",modelValue:p.value,"onUpdate:modelValue":e[0]||(e[0]=function(t){return p.value=t}),min:(0,r.SU)(i)?(0,r.SU)(i):0,max:(0,r.SU)(l),step:(0,r.SU)(u),precision:(0,r.SU)(c),placeholder:(0,r.SU)(d)},null,8,["modelValue","min","max","step","precision","placeholder"])):(0,r.kq)("",!0),"buttons-plus-minus"===(0,r.SU)(a)?((0,r.wg)(),(0,r.j4)((0,r.SU)(Jt.d6),{key:1,modelValue:p.value,"onUpdate:modelValue":e[1]||(e[1]=function(t){return p.value=t}),size:"large",min:(0,r.SU)(i)?(0,r.SU)(i):0,max:(0,r.SU)(l),step:(0,r.SU)(u),precision:(0,r.SU)(c),placeholder:(0,r.SU)(d)},null,8,["modelValue","min","max","step","precision","placeholder"])):(0,r.kq)("",!0),"buttons-arrows"===(0,r.SU)(a)?((0,r.wg)(),(0,r.j4)((0,r.SU)(Jt.d6),{key:2,modelValue:p.value,"onUpdate:modelValue":e[2]||(e[2]=function(t){return p.value=t}),size:"large",min:(0,r.SU)(i)?(0,r.SU)(i):0,max:(0,r.SU)(l),step:(0,r.SU)(u),precision:(0,r.SU)(c),placeholder:(0,r.SU)(d),"controls-position":"right"},null,8,["modelValue","min","max","step","precision","placeholder"])):(0,r.kq)("",!0),"slider"===(0,r.SU)(a)?((0,r.wg)(),(0,r.j4)((0,r.SU)(Xt.BM),{key:3,modelValue:p.value,"onUpdate:modelValue":e[3]||(e[3]=function(t){return p.value=t}),"show-tooltip":"",min:(0,r.SU)(i),max:(0,r.SU)(l),step:(0,r.SU)(u)?(0,r.SU)(u):1,"format-tooltip":h,size:"large"},null,8,["modelValue","min","max","step"])):(0,r.kq)("",!0)],64)}}};var ee=n(9517);n(2656),n(6029);const ne={__name:"Select",props:{modelValue:{type:String,required:!0},choices:{type:[Object,Array],required:!0},placeholder:{type:String,required:!1,default:""}},emits:["update:modelValue"],setup:function(t,e){var n=e.emit,o=t,a=n,i=(0,r.Fl)({get:function(){return o.modelValue.toString()},set:function(t){a("update:modelValue",t)}}),l=wp.i18n.__;return function(t,e){return(0,r.wg)(),(0,r.j4)((0,r.SU)(ee.km),{modelValue:i.value,"onUpdate:modelValue":e[0]||(e[0]=function(t){return i.value=t}),placeholder:o.placeholder?o.placeholder:(0,r.SU)(l)("Select","addonify-floating-cart"),size:"large"},{default:(0,r.w5)((function(){return[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(o.choices,(function(t,e){return(0,r.wg)(),(0,r.j4)((0,r.SU)(ee.BT),{label:t,value:e},null,8,["label","value"])})),256))]})),_:1},8,["modelValue","placeholder"])}}},re=ne;var oe=n(348);n(2235);const ae={__name:"Checkbox",props:{modelValue:[Boolean],label:[String]},emits:["update:modelValue"],setup:function(t,e){var n=e.emit,o=t,a=n,i=(0,r.Fl)({get:function(){return o.modelValue},set:function(t){a("update:modelValue",t)}});return function(t,e){return(0,r.wg)(),(0,r.j4)((0,r.SU)(oe.Xb),{modelValue:i.value,"onUpdate:modelValue":e[0]||(e[0]=function(t){return i.value=t}),label:"{{props.label}}",size:"large"},null,8,["modelValue"])}}};n(6043),n(668);const ie={__name:"CheckboxButton",props:{modelValue:[Array],choices:Object},emits:["update:modelValue"],setup:function(t,e){var n=e.emit,o=t,a=n,i=(0,r.Fl)({get:function(){return o.modelValue},set:function(t){a("update:modelValue",t)}});return function(t,e){return(0,r.wg)(),(0,r.j4)((0,r.SU)(oe.z5),{modelValue:i.value,"onUpdate:modelValue":e[0]||(e[0]=function(t){return i.value=t}),size:"large"},{default:(0,r.w5)((function(){return[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(o.choices,(function(t,e){return(0,r.wg)(),(0,r.j4)((0,r.SU)(oe.lm),{label:e},{default:(0,r.w5)((function(){return[(0,r.Uk)((0,r.zw)(t),1)]})),_:2},1032,["label"])})),256))]})),_:1},8,["modelValue"])}}};var le=n(8243);n(1818),n(4796);const ce={__name:"Radio",props:{modelValue:{type:String,required:!0},choices:{type:[Object,Array],required:!0},style:{type:String,required:!1,default:"default"}},emits:["update:modelValue"],setup:function(t,e){var n=e.emit,o=t,a=n,i=(0,r.Fl)({get:function(){return o.modelValue},set:function(t){a("update:modelValue",t)}});return function(t,e){return(0,r.wg)(),(0,r.j4)((0,r.SU)(le.KD),{modelValue:i.value,"onUpdate:modelValue":e[0]||(e[0]=function(t){return i.value=t})},{default:(0,r.w5)((function(){return[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(o.choices,(function(t,e){return(0,r.wg)(),(0,r.j4)((0,r.SU)(le.rh),{label:e},{default:(0,r.w5)((function(){return[(0,r.Uk)((0,r.zw)(t),1)]})),_:2},1032,["label"])})),256))]})),_:1},8,["modelValue"])}}};var ue=["innerHTML"];const se={__name:"RadioIcon",props:{modelValue:{type:String,required:!0},choices:{type:[Object,Array],required:!1}},emits:["update:modelValue"],setup:function(t,e){var n=e.emit,o=t,a=n,i=(0,r.Fl)({get:function(){return o.modelValue},set:function(t){a("update:modelValue",t)}});return function(t,e){return(0,r.wg)(),(0,r.j4)((0,r.SU)(le.KD),{modelValue:i.value,"onUpdate:modelValue":e[0]||(e[0]=function(t){return i.value=t})},{default:(0,r.w5)((function(){return[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(o.choices,(function(t,e){return(0,r.wg)(),(0,r.j4)((0,r.SU)(le.rh),{label:e,size:"large",border:""},{default:(0,r.w5)((function(){return[(0,r._)("span",{innerHTML:t},null,8,ue)]})),_:2},1032,["label"])})),256))]})),_:1},8,["modelValue"])}}};var de=n(9481);n(501);const fe={__name:"ColorPicker",props:{colorVal:String,isAlpha:[Boolean,String],label:String},emits:["update:colorVal"],setup:function(t,e){var n=e.emit,o=t,a=n,i=(0,r.Fl)({get:function(){return o.colorVal},set:function(t){a("update:colorVal",t)}}),l=function(t){a("update:colorVal",t)};return function(t,e){return(0,r.wg)(),(0,r.j4)((0,r.SU)(de.$),{modelValue:i.value,"onUpdate:modelValue":e[0]||(e[0]=function(t){return i.value=t}),"show-alpha":o.isAlpha,onActiveChange:l},null,8,["modelValue","show-alpha"])}}};var pe={class:"unsupported-control-text"},he={href:"https://docs.addonify.com/kb/floating-cart/developer/",target:"_blank",rel:"documentation",class:"adfy-button fake-button has-underline forward-to-doc-link"};const ye={__name:"InvalidControl",setup:function(t){var e=wp.i18n.__;return function(t,n){return(0,r.wg)(),(0,r.iD)("span",pe,[(0,r.Uk)(" ❌ "+(0,r.zw)((0,r.SU)(e)("Input is not supported.","addonify-wishist"))+" ",1),(0,r._)("a",he,(0,r.zw)((0,r.SU)(e)("Check docs","addonify-floating-cart")),1)])}}};var ge=n(4012),ve={insert:"head",singleton:!1};Bt()(ge.Z,ve);ge.Z.locals;const me=ye,we={__name:"InputControl",props:{field:{type:Object,required:!0},fieldKey:{type:String,required:!0},label:{type:String,required:!1},reactiveState:{type:Object,required:!0}},setup:function(t){var e=t;return function(t,n){return"switch"===e.field.type?((0,r.wg)(),(0,r.j4)(It,{key:0,modelValue:e.reactiveState[e.fieldKey],"onUpdate:modelValue":n[0]||(n[0]=function(t){return e.reactiveState[e.fieldKey]=t})},null,8,["modelValue"])):"select"===e.field.type?((0,r.wg)(),(0,r.j4)(re,{key:1,modelValue:e.reactiveState[e.fieldKey],"onUpdate:modelValue":n[1]||(n[1]=function(t){return e.reactiveState[e.fieldKey]=t}),choices:e.field.choices,placeholder:e.field.placeholder},null,8,["modelValue","choices","placeholder"])):"text"===e.field.type?((0,r.wg)(),(0,r.j4)(Wt,{key:2,modelValue:e.reactiveState[e.fieldKey],"onUpdate:modelValue":n[2]||(n[2]=function(t){return e.reactiveState[e.fieldKey]=t}),placeholder:e.field.placeholder},null,8,["modelValue","placeholder"])):"textarea"===e.field.type?((0,r.wg)(),(0,r.j4)(Qt,{key:3,modelValue:e.reactiveState[e.fieldKey],"onUpdate:modelValue":n[3]||(n[3]=function(t){return e.reactiveState[e.fieldKey]=t}),placeholder:e.field.placeholder},null,8,["modelValue","placeholder"])):"checkbox"===e.field.type&&"buttons"===e.field.typeStyle?((0,r.wg)(),(0,r.j4)(ie,{key:4,modelValue:e.reactiveState[e.fieldKey],"onUpdate:modelValue":n[4]||(n[4]=function(t){return e.reactiveState[e.fieldKey]=t}),choices:e.field.choices},null,8,["modelValue","choices"])):"checkbox"===e.field.type?((0,r.wg)(),(0,r.j4)(ae,{key:5,modelValue:e.reactiveState[e.fieldKey],"onUpdate:modelValue":n[5]||(n[5]=function(t){return e.reactiveState[e.fieldKey]=t}),choices:e.field.choices},null,8,["modelValue","choices"])):"number"===e.field.type?((0,r.wg)(),(0,r.j4)(te,{key:6,modelValue:e.reactiveState[e.fieldKey],"onUpdate:modelValue":n[6]||(n[6]=function(t){return e.reactiveState[e.fieldKey]=t}),placeholder:e.field.placeholder,style:(0,r.j5)(e.field.style),min:e.field.min,max:e.field.max,step:e.field.step,precision:e.field.precision,unit:e.field.unit},null,8,["modelValue","placeholder","style","min","max","step","precision","unit"])):"radio"===e.field.type?((0,r.wg)(),(0,r.j4)(ce,{key:7,modelValue:e.reactiveState[e.fieldKey],"onUpdate:modelValue":n[7]||(n[7]=function(t){return e.reactiveState[e.fieldKey]=t}),choices:e.field.choices,style:(0,r.j5)(e.field.style)},null,8,["modelValue","choices","style"])):"radio-icons"===e.field.type?((0,r.wg)(),(0,r.j4)(se,{key:8,modelValue:e.reactiveState[e.fieldKey],"onUpdate:modelValue":n[8]||(n[8]=function(t){return e.reactiveState[e.fieldKey]=t}),choices:e.field.choices},null,8,["modelValue","choices"])):"color"===e.field.type?((0,r.wg)(),(0,r.j4)(fe,{key:9,colorVal:e.reactiveState[e.fieldKey],"onUpdate:colorVal":n[9]||(n[9]=function(t){return e.reactiveState[e.fieldKey]=t}),isAlpha:e.field.isAlpha,label:e.field.label},null,8,["colorVal","isAlpha","label"])):((0,r.wg)(),(0,r.j4)(me,{key:10}))}}};var Ce={key:0,class:"adfy-options"},be={class:"adfy-col left"},_e={class:"label"},Se={key:0,class:"option-label"},ke={key:1,class:"option-description"},xe={class:"icon"},Ve={class:"text"},Le={class:"adfy-col right"},Ue={class:"input"};const je={__name:"OptionBox",props:{section:{type:Object,required:!0},sectionKey:{type:String,required:!0},reactiveState:{type:Object,required:!0},currentPage:{type:String,required:!0}},setup:function(t){var e=t,n=W(),o=e.currentPage;function a(t){return Array.isArray(t)?t.every((function(t){return n.options[t]})):n.options[t]}function i(t,e){switch(o){case"settings":return"enable_floating_cart"===t||a(e);case"design":return"load_styles_from_plugin"===t||a(e);default:return!1}}return function(t,n){return(0,r.wg)(),(0,r.iD)(r.HY,null,[(0,r.WI)(t.$slots,"default"),((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.section.fields,(function(t,n){return(0,r.wg)(),(0,r.iD)(r.HY,null,[i(n,t.dependent)?((0,r.wg)(),(0,r.iD)("div",Ce,[(0,r._)("div",{class:(0,r.C_)(["adfy-option-columns option-box",t.className])},[(0,r._)("div",be,[(0,r._)("div",_e,[t.label?((0,r.wg)(),(0,r.iD)("p",Se,[(0,r.Uk)((0,r.zw)(t.label)+" ",1),t.badge?((0,r.wg)(),(0,r.j4)((0,r.SU)(qt.Ks),{key:0},{default:(0,r.w5)((function(){return[(0,r.Uk)((0,r.zw)(t.badge),1)]})),_:2},1024)):(0,r.kq)("",!0)])):(0,r.kq)("",!0),t.description?((0,r.wg)(),(0,r.iD)("p",ke,[(0,r._)("span",xe,[(0,r.Wm)(H,{icon:"bulb-solid"})]),(0,r._)("span",Ve,(0,r.zw)(t.description),1)])):(0,r.kq)("",!0)])]),(0,r._)("div",Le,[(0,r._)("div",Ue,[(0,r.Wm)(we,{field:t,fieldKey:n,reactiveState:e.reactiveState},null,8,["field","fieldKey","reactiveState"])])])],2)])):(0,r.kq)("",!0)],64)})),256))],64)}}};var Oe=["data_section"];const Ee={__name:"OptionSection",props:{sectionKey:{type:String,required:!0},currentPage:{type:String,required:!0},className:{type:String,required:!1}},setup:function(t){var e=t,n=e.className,o=e.sectionKey,a=e.currentPage,i=W();return function(t,e){return"general"===(0,r.SU)(o)||function(){switch(a){case"settings":return i.options.enable_floating_cart;case"design":return i.options.load_styles_from_plugin;default:return!1}}()?((0,r.wg)(),(0,r.iD)("section",{key:0,class:(0,r.C_)(["addonify-section",(0,r.SU)(n)]),data_section:(0,r.SU)(o)},[(0,r.WI)(t.$slots,"default")],10,Oe)):(0,r.kq)("",!0)}}};function He(){He=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),l=new O(r||[]);return o(i,"_invoke",{value:V(t,n,l)}),i}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var f="suspendedStart",p="suspendedYield",h="executing",y="completed",g={};function v(){}function m(){}function w(){}var C={};u(C,i,(function(){return this}));var b=Object.getPrototypeOf,_=b&&b(b(E([])));_&&_!==n&&r.call(_,i)&&(C=_);var S=w.prototype=v.prototype=Object.create(C);function k(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function n(o,a,i,l){var c=d(t[o],t,a);if("throw"!==c.type){var u=c.arg,s=u.value;return s&&"object"==Pe(s)&&r.call(s,"__await")?e.resolve(s.__await).then((function(t){n("next",t,i,l)}),(function(t){n("throw",t,i,l)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return n("throw",t,i,l)}))}l(c.arg)}var a;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function V(e,n,r){var o=f;return function(a,i){if(o===h)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var l=r.delegate;if(l){var c=L(l,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var u=d(e,n,r);if("normal"===u.type){if(o=r.done?y:p,u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=y,r.method="throw",r.arg=u.arg)}}}function L(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var a=d(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,g;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function U(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(U,this),this.reset(!0)}function E(e){if(e||""===e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(Pe(e)+" is not iterable")}return m.prototype=w,o(S,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:m,configurable:!0}),m.displayName=u(w,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,u(t,c,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},k(x.prototype),u(x.prototype,l,(function(){return this})),e.AsyncIterator=x,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new x(s(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},k(S),u(S,c,"Generator"),u(S,i,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=E,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return l.type="throw",l.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],l=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:E(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function Me(t,e,n,r,o,a,i){try{var l=t[a](i),c=l.value}catch(t){return void n(t)}l.done?e(c):Promise.resolve(c).then(r,o)}function Pe(t){return Pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pe(t)}var Ze=(0,o.Q_)({id:"Notice",state:function(){return{alerts:{},status:{isFetching:!0}}},getters:{hasNoticeStateInMemory:function(t){return"object"===Pe(t.alerts)?Object.keys(t.alerts).length>0:"array"==typeof t.alerts&&t.alerts.length>0}},actions:{checkNotices:function(){var t,e=this;return(t=He().mark((function t(){var n,r;return He().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,fetch("https://raw.githubusercontent.com/addonify/addonify-floating-cart/stable/notice.json");case 3:return n=t.sent,t.next=6,n.json();case 6:r=t.sent,200===n.status&&(e.alerts=r,e.status.isFetching=!1),t.next=13;break;case 10:return t.prev=10,t.t0=t.catch(0),t.abrupt("return");case 13:case"end":return t.stop()}}),t,null,[[0,10]])})),function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function i(t){Me(a,r,o,i,l,"next",t)}function l(t){Me(a,r,o,i,l,"throw",t)}i(void 0)}))})()}}}),ze=["data_size"],Ae={class:"content"},qe={class:"icon"},De=["innerHTML"];const Fe={__name:"Notice",setup:function(t){var e=Ze();return(0,r.bv)((function(){e.hasNoticeStateInMemory||e.checkNotices()})),function(t,n){return(0,r.SU)(e).status.isFetching?(0,r.kq)("",!0):((0,r.wg)(!0),(0,r.iD)(r.HY,{key:0},(0,r.Ko)((0,r.SU)(e).alerts.alerts,(function(t,e){return(0,r.wg)(),(0,r.iD)(r.HY,null,[t.live?((0,r.wg)(),(0,r.iD)("aside",{key:0,class:(0,r.C_)(["addonify-notice",t.type]),data_size:t.size},[(0,r._)("div",Ae,[(0,r._)("span",qe,[(0,r.Wm)(H,{icon:"signal-tower"})]),(0,r._)("span",{class:"message",innerHTML:t.data.content},null,8,De)])],10,ze)):(0,r.kq)("",!0)],64)})),256))}}};var Ne={class:"adfy-container",id:"addonify-layout"},Ie={class:"adfy-columns main-content"},Ke={class:"adfy-col start site-secondary"},Te={class:"adfy-col end site-primary"};const We={__name:"Settings",setup:function(t){var e=W();return(0,r.bv)((function(){e.haveStateInMemory||e.renderOptions()})),function(t,n){return(0,r.wg)(),(0,r.iD)("section",Ne,[(0,r.Wm)(Fe),(0,r._)("main",Ie,[(0,r._)("aside",Ke,[(0,r.Wm)(Ht)]),(0,r._)("section",Te,[(0,r.SU)(e).isLoading?((0,r.wg)(),(0,r.j4)(_t,{key:0})):((0,r.wg)(),(0,r.j4)(Pt,{key:1,divId:"adfy-settings-form"},{default:(0,r.w5)((function(){return[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)((0,r.SU)(e).data.settings.sections,(function(t,n){return(0,r.wg)(),(0,r.j4)(Ee,{sectionKey:n,currentPage:"settings"},{default:(0,r.w5)((function(){return[(0,r.Wm)(je,{section:t,sectionKey:n,reactiveState:(0,r.SU)(e).options,currentPage:"settings"},{default:(0,r.w5)((function(){return[(0,r.Wm)(At,{section:t},null,8,["section"])]})),_:2},1032,["section","sectionKey","reactiveState"])]})),_:2},1032,["sectionKey"])})),256))]})),_:1}))])])])}}};var Ge={class:"jumbo-section jumbo-box"},Ye={class:"jumbo-header"},Be={key:0,class:"sec-title"},Re={key:1,class:"sec-excerpt"},$e={class:"icon"},Qe={class:"text"},Je={class:"jumbo-content adfy-options"},Xe={class:"ui-option"},tn={class:"col-left option-label"},en={class:"label"},nn={class:"col-right input"};const rn={__name:"JumboBox",props:{section:{type:Object,required:!0},reactiveState:{type:Object,required:!0}},setup:function(t){var e=t;return function(t,n){return(0,r.wg)(),(0,r.iD)("section",Ge,[(0,r._)("div",Ye,[e.section.title?((0,r.wg)(),(0,r.iD)("p",Be,(0,r.zw)(e.section.title),1)):(0,r.kq)("",!0),e.section.description?((0,r.wg)(),(0,r.iD)("p",Re,[(0,r._)("span",$e,[(0,r.Wm)(H,{icon:"bulb-solid"})]),(0,r._)("span",Qe,(0,r.zw)(e.section.description),1)])):(0,r.kq)("",!0)]),(0,r._)("div",Je,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.section.fields,(function(t,n){return(0,r.wg)(),(0,r.iD)("div",Xe,[(0,r._)("div",tn,[(0,r._)("span",en,(0,r.zw)(t.label),1)]),(0,r._)("div",nn,[(0,r.Wm)(we,{field:t,fieldKey:n,reactiveState:e.reactiveState},null,8,["field","fieldKey","reactiveState"])])])})),256))])])}}},on={__name:"HandleDesignOptions",props:{section:{type:Object,required:!0},sectionKey:{type:String,required:!0},reactiveState:{type:Object,required:!0},currentPage:{type:String,required:!0}},setup:function(t){var e=t;return function(n,o){return"render-jumbo-box"===t.section.type?((0,r.wg)(),(0,r.j4)(rn,{key:0,section:e.section,reactiveState:e.reactiveState},null,8,["section","reactiveState"])):((0,r.wg)(),(0,r.j4)(je,{key:1,section:e.section,sectionKey:e.sectionKey,reactiveState:e.reactiveState,currentPage:e.currentPage},{default:(0,r.w5)((function(){return[(0,r.Wm)(At,{section:e.section},null,8,["section"])]})),_:1},8,["section","sectionKey","reactiveState","currentPage"]))}}};var an={class:"adfy-container",id:"addonify-layout"},ln={class:"adfy-columns main-content"},cn={class:"adfy-col start site-secondary"},un={class:"adfy-col end site-primary"};const sn={__name:"Styles",setup:function(t){var e=W();return(0,r.bv)((function(){e.haveStateInMemory||e.renderOptions()})),function(t,n){return(0,r.wg)(),(0,r.iD)("section",an,[(0,r.Wm)(Fe),(0,r._)("main",ln,[(0,r._)("aside",cn,[(0,r.Wm)(Ht)]),(0,r._)("section",un,[(0,r.SU)(e).isLoading?((0,r.wg)(),(0,r.j4)(_t,{key:0})):((0,r.wg)(),(0,r.j4)(Pt,{key:1,divId:"adfy-style-options-form"},{default:(0,r.w5)((function(){return[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)((0,r.SU)(e).data.styles.sections,(function(t,n){return(0,r.wg)(),(0,r.j4)(Ee,{sectionKey:n,currentPage:"design"},{default:(0,r.w5)((function(){return[(0,r.Wm)(on,{section:t,sectionKey:n,reactiveState:(0,r.SU)(e).options,currentPage:"design"},null,8,["section","sectionKey","reactiveState"])]})),_:2},1032,["sectionKey"])})),256))]})),_:1}))])])])}}};var dn=n(340);n(6754);function fn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function pn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?fn(Object(n),!0).forEach((function(e){hn(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):fn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function hn(t,e,n){var r;return r=function(t,e){if("object"!=mn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=mn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==mn(r)?r:r+"")in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function yn(){yn=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),l=new O(r||[]);return o(i,"_invoke",{value:V(t,n,l)}),i}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var f="suspendedStart",p="suspendedYield",h="executing",y="completed",g={};function v(){}function m(){}function w(){}var C={};u(C,i,(function(){return this}));var b=Object.getPrototypeOf,_=b&&b(b(E([])));_&&_!==n&&r.call(_,i)&&(C=_);var S=w.prototype=v.prototype=Object.create(C);function k(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function n(o,a,i,l){var c=d(t[o],t,a);if("throw"!==c.type){var u=c.arg,s=u.value;return s&&"object"==mn(s)&&r.call(s,"__await")?e.resolve(s.__await).then((function(t){n("next",t,i,l)}),(function(t){n("throw",t,i,l)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return n("throw",t,i,l)}))}l(c.arg)}var a;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function V(e,n,r){var o=f;return function(a,i){if(o===h)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var l=r.delegate;if(l){var c=L(l,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var u=d(e,n,r);if("normal"===u.type){if(o=r.done?y:p,u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=y,r.method="throw",r.arg=u.arg)}}}function L(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var a=d(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,g;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function U(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(U,this),this.reset(!0)}function E(e){if(e||""===e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(mn(e)+" is not iterable")}return m.prototype=w,o(S,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:m,configurable:!0}),m.displayName=u(w,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,u(t,c,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},k(x.prototype),u(x.prototype,l,(function(){return this})),e.AsyncIterator=x,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new x(s(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},k(S),u(S,c,"Generator"),u(S,i,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=E,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return l.type="throw",l.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],l=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:E(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function gn(t,e,n,r,o,a,i){try{var l=t[a](i),c=l.value}catch(t){return void n(t)}l.done?e(c):Promise.resolve(c).then(r,o)}function vn(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function i(t){gn(a,r,o,i,l,"next",t)}function l(t){gn(a,r,o,i,l,"throw",t)}i(void 0)}))}}function mn(t){return mn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mn(t)}var wn=wp.apiFetch,Cn=wp.i18n.__,bn=(0,o.Q_)({id:"Product",state:function(){return{allAddons:{},allProductSlugStatus:{},hotAddons:{},generalAddons:{},installedAddons:[],isFetching:!0,isFetchingAllInstalledAddons:!0,isSettingAddonStatus:!0}},getters:{hasAddonsStateInMemory:function(t){return"object"===mn(t.allAddons)?Object.keys(t.allAddons).length>0:"array"==typeof t.allAddons&&t.allAddons.length>0}},actions:{getRecommdedProductsList:function(){var t=this;return vn(yn().mark((function e(){var n,r;return yn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t.isFetching=!0,e.next=4,fetch("https://raw.githubusercontent.com/addonify/recommended-products/main/products.json");case 4:return n=e.sent,e.next=7,n.json();case 7:if(r=e.sent,200===n.status){e.next=11;break}return console.log(r),e.abrupt("return");case 11:return t.processRecommendedPluginsList(r),t.isFetching=!1,e.abrupt("return",n);case 16:return e.prev=16,e.t0=e.catch(0),console.error(e.t0),t.isFetching=!1,e.abrupt("return",e.t0);case 21:case"end":return e.stop()}}),e,null,[[0,16]])})))()},processRecommendedPluginsList:function(t){var e=this;if(console.log("[Info] Processing the list that was retrived...."),this.hotAddons=t.data.hot,this.generalAddons=t.data.general,this.allAddons=pn(pn({},this.hotAddons),this.generalAddons),"object"!==mn(this.allAddons))return console.log("[Error] Couldn't process the list plugins list!");Object.keys(this.allAddons).forEach((function(t){e.allProductSlugStatus[t]="null"}))},fetchInstalledAddons:function(){var t=this;return vn(yn().mark((function e(){var n;return yn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("[Info] Getting the list of all plugins installed on the site...."),e.prev=1,e.next=4,wn({path:"/wp/v2/plugins",method:"GET",cache:"no-cache"});case 4:n=e.sent,console.log("[Info] Received the list of all installed plugins...."),t.installedAddons=n,t.setAddonStatusFlag(Object.keys(t.allProductSlugStatus)),t.isFetchingAllInstalledAddons=!1,e.next=16;break;case 11:return e.prev=11,e.t0=e.catch(1),console.log(e.t0),t.isFetchingAllInstalledAddons=!1,e.abrupt("return");case 16:case"end":return e.stop()}}),e,null,[[1,11]])})))()},setAddonStatusFlag:function(t){var e=this;"object"===mn(this.installedAddons)&&this.installedAddons.length>0?(console.log("=> Setting the status of the addon."),t.forEach((function(t){var n=e.installedAddons.find((function(e){return e.textdomain===t}));e.allProductSlugStatus[t]=n?n.status:"not-installed"}))):console.log("[Warning] Bailing!!! The installed addons list is empty."),console.log("[Info] Done setting the status of the addon."),this.isSettingAddonStatus=!1},handleAddonInstallation:function(t){var e=this;return vn(yn().mark((function n(){var r;return yn().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,console.log("[Info] Trying to install plugin ".concat(t,"...")),n.next=4,wn({method:"POST",path:"/wp/v2/plugins",data:{slug:t,status:"active"},cache:"no-cache"});case 4:if("active"!==(r=n.sent).status){n.next=12;break}return console.log("[Info] Plugin ".concat(t," installed successfully.")),M.z8.success({message:Cn("Plugin installed successfully.","addonify-floating-cart"),offset:50,duration:5e3}),e.allProductSlugStatus[t]="active",n.next=11,r;case 11:case 21:return n.abrupt("return",n.sent);case 12:n.next=22;break;case 14:return n.prev=14,n.t0=n.catch(0),console.error(n.t0),M.z8.error({message:Cn("Error: couldn't install plugin.","addonify-floating-cart"),offset:50,duration:2e4}),e.isWaitingForInstallation=!1,n.next=21,n.t0;case 22:case"end":return n.stop()}}),n,null,[[0,14]])})))()},updateAddonStatus:function(t){var e=this;return vn(yn().mark((function n(){var r;return yn().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,console.log("[Info] Trying to set the status of plugin ".concat(t,"...")),n.next=4,wn({method:"POST",path:"/wp/v2/plugins/".concat(t),data:{status:"active",plugin:"".concat(t,"/").concat(t)},cache:"no-cache"});case 4:if("active"!=(r=n.sent).status){n.next=12;break}return console.log("[Info] Plugin ".concat(t," activated successfully.")),M.z8.success({message:Cn("Plugin activated successfully.","addonify-floating-cart"),offset:50,duration:5e3}),e.allProductSlugStatus[t]="active",n.next=11,r;case 11:case 20:return n.abrupt("return",n.sent);case 12:n.next=21;break;case 14:return n.prev=14,n.t0=n.catch(0),console.log(n.t0),M.z8.error({message:Cn("Error: Couldn't activate the plugin.","addonify-floating-cart"),offset:50,duration:2e4}),n.next=20,n.t0;case 21:case"end":return n.stop()}}),n,null,[[0,14]])})))()}}});function _n(t){return _n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_n(t)}function Sn(){Sn=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var a=e&&e.prototype instanceof v?e:v,i=Object.create(a.prototype),l=new O(r||[]);return o(i,"_invoke",{value:V(t,n,l)}),i}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var f="suspendedStart",p="suspendedYield",h="executing",y="completed",g={};function v(){}function m(){}function w(){}var C={};u(C,i,(function(){return this}));var b=Object.getPrototypeOf,_=b&&b(b(E([])));_&&_!==n&&r.call(_,i)&&(C=_);var S=w.prototype=v.prototype=Object.create(C);function k(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function n(o,a,i,l){var c=d(t[o],t,a);if("throw"!==c.type){var u=c.arg,s=u.value;return s&&"object"==_n(s)&&r.call(s,"__await")?e.resolve(s.__await).then((function(t){n("next",t,i,l)}),(function(t){n("throw",t,i,l)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return n("throw",t,i,l)}))}l(c.arg)}var a;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function V(e,n,r){var o=f;return function(a,i){if(o===h)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var l=r.delegate;if(l){var c=L(l,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var u=d(e,n,r);if("normal"===u.type){if(o=r.done?y:p,u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=y,r.method="throw",r.arg=u.arg)}}}function L(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var a=d(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,g;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function U(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(U,this),this.reset(!0)}function E(e){if(e||""===e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(_n(e)+" is not iterable")}return m.prototype=w,o(S,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:m,configurable:!0}),m.displayName=u(w,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,u(t,c,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},k(x.prototype),u(x.prototype,l,(function(){return this})),e.AsyncIterator=x,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new x(s(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},k(S),u(S,c,"Generator"),u(S,i,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=E,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return l.type="throw",l.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],l=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:E(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function kn(t,e,n,r,o,a,i){try{var l=t[a](i),c=l.value}catch(t){return void n(t)}l.done?e(c):Promise.resolve(c).then(r,o)}var xn={class:"adfy-product-card"},Vn={class:"adfy-category"},Ln={class:"adfy-product-box"},Un={class:"adfy-product-thumb"},jn=["src","alt"],On={class:"content"},En=["innerHTML"],Hn=["innerHTML"],Mn={class:"adfy-product-actions"};const Pn={__name:"Recommended",props:{slug:{type:String,required:!1},name:{type:String,required:!1},description:{type:String,required:!1},thumb:{type:String,required:!1},category:{type:String,required:!1},status:{type:String,required:!1}},setup:function(t){var e=t,n=wp.i18n.__,o=bn(),a=e.slug,i=e.name,l=e.thumb,c=e.description,u=e.category,s=(0,r.iH)(!1),d=(0,r.iH)(!1),f=(0,r.iH)(!1),p=(0,r.iH)(!1),h=n("Activate now","addonify-floating-cart"),y=n("Activating...","addonify-floating-cart"),g=n("Install now","addonify-floating-cart"),v=n("Installing...","addonify-floating-cart"),m=n("Installed","addonify-floating-cart"),w=function(){var t,e=(t=Sn().mark((function t(e){return Sn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return s.value=!0,p.value=!0,t.prev=2,t.next=5,o.handleAddonInstallation(e);case 5:"active"==t.sent.status&&(s.value=!1,p.value=!1,d.value=!0),t.next=14;break;case 9:t.prev=9,t.t0=t.catch(2),s.value=!1,p.value=!1,d.value=!1;case 14:case"end":return t.stop()}}),t,null,[[2,9]])})),function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function i(t){kn(a,r,o,i,l,"next",t)}function l(t){kn(a,r,o,i,l,"throw",t)}i(void 0)}))});return function(t){return e.apply(this,arguments)}}();return function(t,n){return(0,r.wg)(),(0,r.iD)("div",xn,[(0,r._)("span",Vn,(0,r.zw)((0,r.SU)(u)),1),(0,r._)("div",Ln,[(0,r._)("figure",Un,[(0,r._)("img",{src:(0,r.SU)(l),alt:(0,r.SU)(a)},null,8,jn)]),(0,r._)("div",On,[(0,r._)("h3",{class:"adfy-product-title",innerHTML:(0,r.SU)(i)},null,8,En),(0,r._)("p",{class:"adfy-product-description",innerHTML:(0,r.SU)(c)},null,8,Hn),(0,r._)("div",Mn,["active"==e.status||"network-active"==e.status?((0,r.wg)(),(0,r.j4)((0,r.SU)(dn.mi),{key:0,size:"large",id:(0,r.SU)(a),plain:"",disabled:""},{default:(0,r.w5)((function(){return[(0,r.Uk)((0,r.zw)((0,r.SU)(m)),1)]})),_:1},8,["id"])):"inactive"==e.status?((0,r.wg)(),(0,r.j4)((0,r.SU)(dn.mi),{key:1,type:"success",size:"large",id:(0,r.SU)(a),plain:"",loading:s.value,disabled:d.value,onClick:n[0]||(n[0]=function(t){return function(t){s.value=!0,f.value=!0;try{"active"==o.updateAddonStatus(t).status&&(s.value=!1,f.value=!1,d.value=!0)}catch(t){s.value=!1,f.value=!1,d.value=!1}}((0,r.SU)(a))})},{default:(0,r.w5)((function(){return[(0,r.Uk)((0,r.zw)(f.value?(0,r.SU)(y):(0,r.SU)(h)),1)]})),_:1},8,["id","loading","disabled"])):((0,r.wg)(),(0,r.j4)((0,r.SU)(dn.mi),{key:2,type:"primary",size:"large",id:(0,r.SU)(a),plain:"",loading:s.value,disabled:d.value,onClick:n[1]||(n[1]=function(t){return w((0,r.SU)(a))})},{default:(0,r.w5)((function(){return[(0,r.Uk)((0,r.zw)(p.value?(0,r.SU)(v):(0,r.SU)(g)),1)]})),_:1},8,["id","loading","disabled"]))])])])])}}};var Zn=n(4659),zn={insert:"head",singleton:!1};Bt()(Zn.Z,zn);Zn.Z.locals;const An=Pn;var qn={class:"adfy-container",id:"addonify-layout"},Dn={class:"adfy-columns main-content"},Fn={class:"adfy-col start aside secondary"},Nn={class:"adfy-col end site-primary"},In={key:1,id:"recommended-products"},Kn={id:"recommended-hot-products"},Tn={class:"adfy-grid"},Wn=(0,r._)("div",{id:"recommended-general-products"},null,-1);var Gn={class:"error-404"};const Yn={__name:"404",setup:function(t){var e=wp.i18n.__;return function(t,n){var o=(0,r.up)("router-link");return(0,r.wg)(),(0,r.iD)("div",Gn,[(0,r._)("h3",null,(0,r.zw)((0,r.SU)(e)("404","addonify-floating-cart")),1),(0,r._)("p",null,(0,r.zw)((0,r.SU)(e)("Oops, page not found!","addonify-floating-cart")),1),(0,r.Wm)(o,{to:"/",class:"adfy-button"},{default:(0,r.w5)((function(){return[(0,r.Uk)((0,r.zw)((0,r.SU)(e)("Go Back","addonify-floating-cart")),1)]})),_:1})])}}};var Bn=[{path:"/",name:"Settings",component:We},{path:"/styles",name:"Styles",component:sn},{path:"/products",name:"Products",component:{__name:"Products",setup:function(t){var e=bn();return(0,r.bv)((function(){e.hasAddonsStateInMemory||e.getRecommdedProductsList().then((function(t){200===t.status&&e.fetchInstalledAddons()}))})),function(t,n){return(0,r.wg)(),(0,r.iD)("section",qn,[(0,r.Wm)(Fe),(0,r._)("main",Dn,[(0,r._)("aside",Fn,[(0,r.Wm)(Ht)]),(0,r._)("section",Nn,[!0===(0,r.SU)(e).isFetching||!0===(0,r.SU)(e).isFetchingAllInstalledAddons||!0===(0,r.SU)(e).isSettingAddonStatus?((0,r.wg)(),(0,r.j4)(_t,{key:0})):((0,r.wg)(),(0,r.iD)("section",In,[(0,r._)("div",Kn,[(0,r._)("div",Tn,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)((0,r.SU)(e).hotAddons,(function(t,n){return(0,r.wg)(),(0,r.j4)(An,{slug:n,name:t.name,description:t.description,thumb:t.thumbnail,category:t.category,status:(0,r.SU)(e).allProductSlugStatus[n]},null,8,["slug","name","description","thumb","category","status"])})),256))])]),Wn]))])])])}}}},{path:"/:catchAll(.*)*",name:"404",component:Yn}];const Rn=(0,mt.p7)({history:(0,mt.r5)(),routes:Bn});var $n=(0,o.WB)(),Qn=(0,r.ri)(vt);Qn.use($n),Qn.use(Rn),Qn.mount("#___adfy-floatingcart-app___")}},t=>{var e=e=>t(t.s=e);t.O(0,[703,898],(()=>(e(2248),e(6378))));t.O()}]);
  • addonify-floating-cart/trunk/languages/addonify-floating-cart.pot

    r3203981 r3235777  
    1 # Copyright (C) 2024 Addonify
     1# Copyright (C) 2025 Addonify
    22# This file is distributed under the GPLv2 or later.
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Addonify Floating Cart For WooCommerce 1.2.11\n"
     5"Project-Id-Version: Addonify Floating Cart For WooCommerce 1.2.12\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/addonify-floating-cart\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2024-12-07T08:43:44+00:00\n"
     12"POT-Creation-Date: 2025-02-06T05:18:04+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.11.0\n"
     
    4545
    4646#: admin/class-addonify-floating-cart-admin.php:192
    47 #: admin/assets/js/main.js:732
     47#: admin/assets/js/main.js:753
    4848msgid "Settings"
    4949msgstr ""
     
    957957#: includes/template-functions.php:763
    958958#: public/partials/cart-sections/coupon.php:13
    959 #: admin/assets/js/main.js:1240
     959#: admin/assets/js/main.js:1263
    960960msgid "Go Back"
    961961msgstr ""
     
    11781178msgstr ""
    11791179
    1180 #: admin/assets/js/main.js:281
     1180#: admin/assets/js/main.js:290
    11811181msgid "Check docs"
    11821182msgstr ""
    11831183
    1184 #: admin/assets/js/main.js:450
     1184#: admin/assets/js/main.js:459
    11851185msgid "Select"
    11861186msgstr ""
    11871187
    1188 #: admin/assets/js/main.js:512
    1189 #: admin/assets/js/main.js:540
     1188#: admin/assets/js/main.js:521
     1189#: admin/assets/js/main.js:549
    11901190msgid "Enter text here..."
    11911191msgstr ""
    11921192
    1193 #: admin/assets/js/main.js:588
     1193#: admin/assets/js/main.js:597
    11941194msgid "Version"
    11951195msgstr ""
    11961196
    1197 #: admin/assets/js/main.js:588
     1197#: admin/assets/js/main.js:597
    11981198msgid "Rate"
    11991199msgstr ""
    12001200
    1201 #: admin/assets/js/main.js:655
     1201#: admin/assets/js/main.js:664
    12021202msgid "AFC docs"
    12031203msgstr ""
    12041204
    1205 #: admin/assets/js/main.js:657
     1205#: admin/assets/js/main.js:666
    12061206msgid "Rate AFC"
    12071207msgstr ""
    12081208
    1209 #: admin/assets/js/main.js:667
     1209#: admin/assets/js/main.js:676
    12101210msgid "Save Options"
    12111211msgstr ""
    12121212
    1213 #: admin/assets/js/main.js:741
     1213#: admin/assets/js/main.js:762
    12141214msgid "Design"
    12151215msgstr ""
    12161216
    1217 #: admin/assets/js/main.js:750
     1217#: admin/assets/js/main.js:771
    12181218msgid "Products"
    12191219msgstr ""
    12201220
    1221 #: admin/assets/js/main.js:1235
     1221#: admin/assets/js/main.js:776
     1222msgid "Donate (Coffee)"
     1223msgstr ""
     1224
     1225#: admin/assets/js/main.js:1258
    12221226msgid "404"
    12231227msgstr ""
    12241228
    1225 #: admin/assets/js/main.js:1235
     1229#: admin/assets/js/main.js:1258
    12261230msgid "Oops, page not found!"
    12271231msgstr ""
    12281232
    1229 #: admin/assets/js/main.js:2851
     1233#: admin/assets/js/main.js:2874
    12301234msgid "Activate now"
    12311235msgstr ""
    12321236
    1233 #: admin/assets/js/main.js:2852
     1237#: admin/assets/js/main.js:2875
    12341238msgid "Activating..."
    12351239msgstr ""
    12361240
    1237 #: admin/assets/js/main.js:2853
     1241#: admin/assets/js/main.js:2876
    12381242msgid "Install now"
    12391243msgstr ""
    12401244
    1241 #: admin/assets/js/main.js:2854
     1245#: admin/assets/js/main.js:2877
    12421246msgid "Installing..."
    12431247msgstr ""
    12441248
    1245 #: admin/assets/js/main.js:2855
     1249#: admin/assets/js/main.js:2878
    12461250msgid "Installed"
    12471251msgstr ""
    12481252
    1249 #: admin/assets/js/main.js:5784
     1253#: admin/assets/js/main.js:5807
    12501254#: admin/src/stores/options.js:106
    12511255msgid "Something went wrong while fetching settings."
    12521256msgstr ""
    12531257
    1254 #: admin/assets/js/main.js:5847
    1255 #: admin/assets/js/main.js:5868
     1258#: admin/assets/js/main.js:5870
     1259#: admin/assets/js/main.js:5891
    12561260#: admin/src/stores/options.js:158
    12571261#: admin/src/stores/options.js:182
     
    12591263msgstr ""
    12601264
    1261 #: admin/assets/js/main.js:6139
     1265#: admin/assets/js/main.js:6162
    12621266#: admin/src/stores/product.js:216
    12631267msgid "Plugin installed successfully."
    12641268msgstr ""
    12651269
    1266 #: admin/assets/js/main.js:6160
     1270#: admin/assets/js/main.js:6183
    12671271#: admin/src/stores/product.js:231
    12681272msgid "Error: couldn't install plugin."
    12691273msgstr ""
    12701274
    1271 #: admin/assets/js/main.js:6210
     1275#: admin/assets/js/main.js:6233
    12721276#: admin/src/stores/product.js:266
    12731277msgid "Plugin activated successfully."
    12741278msgstr ""
    12751279
    1276 #: admin/assets/js/main.js:6229
     1280#: admin/assets/js/main.js:6252
    12771281#: admin/src/stores/product.js:279
    12781282msgid "Error: Couldn't activate the plugin."
Note: See TracChangeset for help on using the changeset viewer.