PageSourceSearch

https://cdn-publish-filemanager.homestyler.com/prod/_homestyler/_n…/default-common.50c90a002a402f50033f.js

js homestyler.com collected 2026-09-24 09:12:30 UTC 706,588 bytes, 1 lines download raw bytes

1(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{3206:function(e,t,n){"use strict";var i=n(27),a=n(1),s=(n(37),n(25),n(88),n(23),n(19),n(15),n(31),n(32),["theme","title"]);function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach(function(t){Object(a.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var c={darkAlbum:"iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAADmpJREFUeF7tnXuoZlUZxn8SSH9EV6IoNSUJJbqKWmQQNKURVBqmqTlNOjNa2sUsJ63MSqeyqzrlXCo1LTXSoutUg5liXseK/jDUslKiiK4SBaXxOnvXN6fzfeuy19577bWeBR8zh/Pe1vO+z1nf2ntddkFNCAiBuQjsImyEgBCYj4AIouoQAgsQEEFUHkJABFENCIE4BDSCxOEmrUoQEEEqSbS6GYeACBKHm7QqQUAEqSTR6mYcAiJIHG7SqgQBEaSSRKubcQiIIHG4SasSBESQShKtbsYhIILE4SatShAQQSpJtLoZh4AIEoebtCpBQASpJNHqZhwCIkgcbtKqBAERpJJEq5txCORCkF2BU4CjgGfEdUVaBSLwN+C+JZ/rAfv8dYj+5kCQ3YDNwCFDdFg+ikFgW0OUHwFb++pVDgS5Fdivrw7KbhUIfB3YBHwjdW/HJsgaYGPqTsletQgkJ8rYBPkh8MJq06mO94WA/dE9IYXxsQnyS2DPFB2RDSGwBIFbgBVdJ/NjE+RBpVUI9IjAv4EDgO2xPsYmyDXAi2KDl54Q8ERgb+BuT9mdxMYmyLnAqTGBS0cIBCLwROB3gTqMTZBHAN8GDgoNXPJCIBABe1/yUuD+EL2xCWKxPhXYABwcErhkhUAEAlcDh4Xo5UCQNt7jGpI8H7C362pCoA8E3gF81NdwTgTxjVlydSHwWOBlMx/7uUuzecgLfCftIkgXqKU7NAK2qPUlwJHAMR2cXwic6KMvgvigJJkcETgN+FCHwGzO+12XvgjiQki/zxkBG00uAJ4WEeSVwBEuPRHEhZB+nzsCjwQuAV4ZGKi9ZX868PNFeiJIIKoSzxIBe/J5HfCwwOjOAM4RQQJRk/gkETgbOD0wclujtXAvkkaQQEQlni0C9lXLRpFnBkZob9e/N08nJUH2aVZO2urJ/Zv/B8Yq8YoRaPea21/124G7IrCwMw0uC9Q7uZnoL6uWgiC2n+NM4PWBgUlcCCxCwJaF2Nem2wJh+gWwV4COPQUzkvRCkOObAxcC4pGoEAhCwPaarw3Q+BrwigB5+3plX7OSE0SbnQKyINHOCPh+2wmdrP8G2CM1QWzPrx24oCYEhkJgNbDFw9mhwFUecrMic8nny8pZY/ZYzI7qURMCQyNgc4t7HE6fDNwbGFhSghg7jaVqQmBoBC4CVnk4Df36n4wgtrf3To8AJSIE+kJgX+AOh/HRCHI4YIu81ITAWAisbNZeLfI/GkHWA+vGQkZ+hUCzPfukXEcQe5WvAxZUp2MicDNwYK4ECR26xgRSvstFwPX0NbROk03SkzkuN3fqWQQCqesqmT0XE5f2NZnjCBClUi4CqesqmT0RpNyim1LPkhV00+lk9kSQKZVRubEmK2gRpNwiqblnIkjN2VffnQiIIE6IJFAzAiJIzdlX350IiCBOiCRQMwIiyAjZt73ydnvVs5p7EO3n9j5E21PQfmxvy7URewhG6FKxLkWQgVJrR77YfgEjxrMDfd4E3ADYnoOfBupKvBsCIkg3/JzaTwFshad9Hu6UXizwj+YYGDvt4lcdbUndDwERxA+nKCk7bshO+X5ClPZ8JbtHwg4AOD+xXZn7fwREkJ6q4t3AB3qy3Zq9ormPomc3VZsXQXpI/08ijpmMDWPh0TCxRqX3XwREkMTF8Gtg98Q2XeZs4m5PxNTSIyCCJMT0cp+LTxL6mzX1HuCDPdmu2awIkij7dobqeYlsxZqxx8j2KFgtHQIiSAIs7VGuvatI/bQqNDR7umV7ovUIOBS5+fIiSAIszwVOjbDzVeBnzZH6RrAHgOc0n+eGXizf+Ld7tu2+bbU0CIggHXG0N+RW3CEvAe34STt9fqvDt71H+RgQcv+2vUy0UURv3DsmtlEXQTri+HHgbQE27FJHO2AspH0feHGAwicDYwowXZ2oCNIx5Td6nIXUutgGrIj0dzFwrKfuj5uvaZ7iEluAgAjSoTx2A+xFnU/7I/A4H8EFMubLfPo0n9PGfezULiOCdKiAo4FLPfVTPII9GPjOgP48XRUtJoJ0SO8ngLd66Nu1DK/2kPMRsfvxXuUhqHmIB0geIiKIB0jzRHyL1RYu2urbFM0WQJo9V7NHyLorxYWS+/ciiBujuRJ2JbDP5qeXA9/q4GdW9TDgKx62NFH3AMlDRATxAGmeyJ+AR3voPwn4rYecj4jvNV5/Bh7jY1AyCxEQQToUiAjSAbyJqIogHRKlr1gdwJuIqgjSIVGapHcAbyKqIkiHROkxbwfwJqB6JvC+wDhdh64nI5zL0dK4kzkOAEQvCgPAmpjoe4GzImJ21W2yOnU5yoEgWmoSUUETUIklh3XNVbdVEcQA0WLFCVR8QIi2dfn9AfJLRUWQJYhouXuHaspMNcVRTSLIkqRqw1RmVR4ZzhmJDr0QQZZJgLbcRlZlJmqnJ1wrJ4Isk1Qd2pBJpUeEkZIcmqQvSICO/YmozpFV3gWckzgGjSALANXBcYmrrUdz64D1PdgXQRyg6ujRHqouscnTmlP3E5t9yJwI4oGqDq/2AGkkkT7JIYIEJDXFM3WXO11/4EJo59+/E/hwmEqwtEaQAMh0gU4AWD2L2mmTH+nZh0aQCIB1BVsEaIlV7FhYe1c1RNMIEomyLvGMBK6j2tsBO694qCaCJEBa10AnANHDxNDk0Fcsj6RIJA8ETmkO/h46Go0gQyMuf8EI2GHitsp6jCaCjIG6fHojYCdd2lbosZoIMhby8utE4C2AHbk6ZhNBxkRfvucikAM5NElXgWaJwJuBT2USmUaQTBKhMHYgkMM2g9lciCCqzGwQOAk4P5todgQigmSWkFrDyZEcIkhP1fh4wN6u2/3mv+/JR0lm3wRckGmHNIIkTIzdFGX7E543Y9NutP0i8PmEfkoy9UZgQ8YdEkESJcfOfLWzX+e1LwC2ClUjyv8QOhH4dCL8+zIjgiRA1kWO1oXdEmX7GGxUqb2dAHxmAiCIIB2T5EuO1s0DDUnGWlvUsbtJ1KdCDk3SO6Y7lByz7i5qiPKHjjFMTX0tcOGEgtYIEpmsLuRoXW5v5iXXRMYwNbU1wMaJBS2CRCQsBTlat/9qSJLL0ooIOLxUVgObvCTzEhJBAvORkhyzrj/XEMUuEi2tTZUcmoMEVmJf5GjDuKWZl1wbGFfO4scDm3MO0BGbRhDP5PVNjjaMfzYjSa5vlj3hekjsOGBLiEKGsiKIR1KGIsdsKPZX196Z/MUjvhxF3gB8NsfAAmMSQRyAjUGONqSbmtHk+sCkji2+CrA5VQlNBFmQxTHJ0Yb192YkyX1JRhtvSeTQJD1zcsyGZ+8PbC3X/Rn/WbajWUtblKkRZJmCy2HkWI4HNzSjif2bW1sJ2OqA0poIsiSjuZKjDdNGEBtJcnojfSxwcWnMaPojgswkNndyzNagzUnsKZfNUcZsJZNDc5CJkqMN255u2WhiT7vGaK8DLhnD8YA+NYIAUxo5ltaGvSexkWTot9XHALYJrPRWPUGmTI7Z4rQ37zaa2Jv4vtvRwKV9O8nEftUEKYUcbS3ZGi4bTWxNV1/tKOCyvoxnaLdagpRGjra2bDWwjSR9vMmujRzVTtJLJcfsH2DbX2JEsf0mKdprm9NZUtiako3qRpAayNEWoO1UNJLYzsUu7UjgS10MTFi3KoLURI62Jm3Pu81LYt9yHwFcPuEC7xp6NQSpkRyzxWGnqBhR7FQV31Y7OaqZg9ROjpYQdh6XkcTO53K11wBXuIQq+H3xI4jIsXMV28mONi9Z9JLvcODKCorfp4tFE0TkmF8C9hjYzgzeNiNyIGCnrNtbcrUdCBRLEJHDr8RtEn8f8KjmRHo/rXqkiiSIyFFPAffd0+IIInL0XTJ12S+KICJHXcU7RG+LIchZjvs5hgBTPspDoBiClJca9SgHBESQHLKgGLJFQATJNjUKLAcERJAcsqAYskVABMk2NQosBwREkByyoBiyRUAEyTY1CiwHBESQHLKgGLJFQATJNjUKLAcERJAcsqAYskVABMk2NQosBwREkByyoBiyRSAlQe4Fdp/XU5ejpXoPZguZAqsJAVfd3gjYTkyf9mXA9vov21yORBAfiCUzNAKuuj0ZOM8zKLsSe+7Fpi5HIognyhIbFAFX3e4KfBNY4YhqK3DIIhmXIxFk0LzLmScCPnVr84qrgf3m2LR7XOz+xrtFEE/UJTYZBHwI0nZmDWCXCu3RfH4A3ArYZj7n5ashjsyhJumTqaGiAw2t22gwQh2JINFQSzEhAqF1G+061JEIEg21FBMiEFq30a5DHYkg0VBLMSECoXUb7TrUkQgSDbUUEyIQWrfRrkMdiSDRUEsxIQKhdRvtOtSRCBINtRQTIhBat9GuQx2JINFQSzEhAqF1G+061JEIEg21FBMiEFq30a5DHV0HHBTtTYpCoDsCNwes1O3sLZQg64F1nb3KgBCIR2BDc6FQvIUAzVCC6BqwAHAl2gsCK4FLerG8jNFQguwN3DlUcPIjBJZBYF/gjqGQCSWIxXUVcOhQAcqPEJhBwO6VXzUkIjEEsfX1tlxYTQgMjcBewD1DOo0hiMW3EbB19mpCYCgEVgNbhnLW+okliOnrncjQ2arbX5dajUauq1Pb8L452rsUhYAbgU3AWrdYPxJdCWJR7dncQ2j7e9WEQCoEbD/52cBtqQzG2ElBkNbvPsABzWf/5t+YmKRTJwJ2iIJ9tgO3A3flAENKguTQH8UgBJIiIIIkhVPGSkNABCkto+pPUgREkKRwylhpCIggpWVU/UmKgAiS
1FE4ZKw0BEaS0jKo/SREQQZLCKWOlISCClJZR9ScpAiJIUjhlrDQERJDSMqr+JEVABEkKp4yVhoAIUlpG1Z+kCIggSeGUsdIQEEFKy6j6kxQBESQpnDJWGgIiSGkZVX+SIiCCJIVTxkpDQAQpLaPqT1IE/gNoi7bnXTYtAQAAAABJRU5ErkJggg==",whiteAlbum:"iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAADxRJREFUeF7tnXnMJUUVxc+NCfEP4xqjUUCIxECMKwE0YmIiAsZERYMgIMPIsCm4IAiyiKiACioCo8yAOoyggBEwrogEEQLIMiDxDwygIBCjMa7EaKIcc6Hf+Jj5vtdV1dXd1d2nkpfJ5N26det363z1uqu7yqAiAiKwLAETGxEQgeUJSCAaHSKwgIAEouEhAhKIxoAIpBHQDJLGTbUmQkACmUii1c00AhJIGjfVmggBCWQiiVY30whIIGncVGsiBCSQiSRa3UwjIIGkcVOtiRCQQCaSaHUzjYAEksZNtSZCQAKZSKLVzTQCEkgaN9WaCAEJZCKJVjfTCEggadxUayIEJJCJJFrdTCNQhEBIbgHgaAD7AXhZWldUa4QE/gHgkU0+NwK40cz+3kV/excIyS0BXABgzy46rDZGQ+BaFwqAm83s6rZ6VYJAbgewY1sdlN9JEPgegLVm9v3cve1VICQPBbAmd6fkb7IEsgulb4H8HMDrJ5tOdbwtAmvM7PAczvsWyG8BbJOjI/IhApsQuA3Abk0v5vsWCJVWEWiRwH8B7GxmG1Lb6Fsg1wF4Q2rwqicCgQS2M7P7A22fZNa3QM4EcExK4KojApEEnm9mf4isg74F8jQAPwKwa2zgsheBSAI3A9jdzB6NqderQDxQki8GsBrAHjGBy1YEEghcaWbviKnXu0BmwZI8uBLJawH46rqKCLRB4FgzOyvUcTECCQ1YdtMiQPLZAN489/H/Nyl+HfK60It2CaQJatXtlED1UOubAOwL4IAGjZ9vZkeE1JdAQijJpjgCJI8D8JkGge1hZj+pqy+B1BHS98USIOmzyXkAXpIQ5OVmtk9dPQmkjpC+L5oAyacDWA/gbZGB+ir7S83s14vqSSCRVGVeHgGSfufzBgBPiYzuRDM7XQKJpCbz4REgeRqAEyIj32BmC99F0gwSSVTmZRKofmr5LPLyyAh9df2a5epkEwjJ7f3JyeqzU/VvZKwynzCBx981B+BP3t5pZvfFsiDpexpcElnvKDPzC/0lS2OBkPT3OU4BcFBkYDIXgUUErgRwmpndEYOJ5G8AbBtR5zwzO6oVgZBcVW24EBGPTEUgioC/a35YaA2S3wXw1lB7ANeY2e7ZBUJSLztFZEGmzQiYWdCvnYSL9YfMbOusAiHpGy34hgsqItAVgUPM7MK6xkjuBeCKOrv57xeJL0iV885I+m0x36pHRQS6JrCtmT2wqFGSLwTwcExguQXi6nSVqohA1wTWmdnKukZjf/5nEwjJ7QDcWxegvheBFgnsYGb31MwiUdfHOQWyN4DLW+y8XItAHYEVZubPXi1b+pxBzgBwfF0P9L0ItEhgtZkdWapAfClfGyy0mH25riVwq5ntUqpAon7b1XZVBiKQQKBuTaTPn1hRAqnrSAIbVRkhgZwD2vHk9Be1DpKz4RHmWV1KJJB7XOX0J4EkJlXV8hHIOaA1g+TLizwVQkACKSQRCqNMAhJImXlRVIUQkEAKSYTCKJOABFJmXhRVIQQkkEISoTDKJCCB9JCX6l15P73qFdU5iP7u/Ow8RH+nYPbxd1uuN7Oodwh66NJom5RAOkotSd/yxd8XcGG8MrLZXwC4CYC/c3B3ZF2ZNyAggTSAF1KV5IsA+BOe/nlqSJ0FNv+q9nv13S4ebOhL1QMISCABkFJNSPp2Q77L9/NSfSxTz8+R8G1nzs3sV+42ISCBtDQkSJ4E4FMtuZ+5vczM/DwKlZYISCAtgCX5y4RtJlMjWbg1TKpT1XuCgASSeSSQ/B2ArTK7rXN3t5n5HTGVzAQkkIxASV4KoPbgk4xNzrs62cw+3ZLvybqVQDKlnqTvoXpOJnepblaa2brUyqq3OQEJJMOoqG7l+lpF7rtVsdH53a1ddAs4Ftvy9hJIBpYkzwRwTIKrqwD8yrfUB+ACewzAq6rPqwFEHSxftX+WmR2bEIuqLEFAAmk4LKoVch/cMYuA/ujIKjO7elHz1TrK5wHEnL/ti4k+i2jFvWFuvboE0hAiyS8A+HCEm/VmtiLC3pP0UwBvjKhztpnFxBThelqmEkjDfJO8xf9iB7q51sx2C7R9khnJiwAcGFj3LjPzn2oqDQlIIA0AktwSwEOBLv5sZs8JtF3SjKS35W2GlNrdxkOcTN1GAmkwAkjuD+DiQBeNb8GS3APAj7tqL7CdUZtJIA3SS/KLAD4U4OIKM3tngF2tCUk/H+/ttYaArkMCINWZSCB1hBZ8HzFYTzIzPyu7cSHpD0D6g5B15Soz01kpdZRqvpdAGgAk6esXIS8/vcXMftigqY1VSfrayHcCfOlCPQBSnYkEUkdo8QzyFwDPDHDxAjP7fYBdrUnEMV5/NbNn1TqUwUICEkiDAUJSAmnAbwhVJZAGWdJPrAbwBlJVAmmQKF2kN4A3kKoSSINE6TZvA3gDqEryFACfiAm17tyZnIIr/vgDLRTGDJ1h2ZL8OIBTY6OWQOaI6VGT2OEzDPtUcXjvJJBNcqyHFYcx6EOjJHkygE+G2m9qJ4FsLhA97p46mgqrl2OrJglkc4H4lqJ6YaqwwR4bDskTATTe9EICWYK8XrmNHY5l2ZM8wXeqzBGVBLK0QHz/XW3akGOEdewjpzh0kb4gedr2p+ORnaE5kh8DcHoGVxtdaAZZLBJtHJdztLXoi+TxAM7I3YQEUkNUW4/mHnL5/ZE8rtp1P7tzCSQAqTavDoDUk0mb4tA1SERSc9xTD2hOxx8EQJqZkPwogM9GVIk21QwSgUwH6ETAatmUpO82+bmWm9GjJrGAdQRbLLH89iR9W1jfHrb1ohkkEbEO8UwE17AayY8AOKuhm+DqEkgwquUNdQx0BogBLroWhy7SA5IikzIIkDwagG/83WnRDNIpbjWWQoCkb9ztT1l3XiSQzpGrwRgCJH2nS9/xspcigfSCXY2GECD5QQBnh9i2ZSOBtEVWfhsRKEEcukhvlEJVbosAyQ8A+FJb/mP8agaJoSXb1gkU8prBxn5KIK2nXA2EEiB5JIBzQ+27sJNAuqCsNmoJlCgOXYPUpi3NgORzAWwD4EEz+2Oal+nUIvl+AOeV2GPNIBmzQtJPivKXd14z59ZPtP2mmX09Y1OjcUXyfQBWl9ohCSRTZkj6nq++9+ty5RsAjtGM8n88JI8A8OVMKWjFjQSSAWuAOGat3AXgWDPzWWXSheThAL5SOgQJpGGGIsQxa+mxSiS9PFvUsLtZqg9FHLpIb5juBHHMt7iuEsqfGoYxqOokDwNw/lCC1gySmKmG4pi1uqG6LrkuMYxBVSN5KIA1QwpaAknIViZxzFr+TyWSIh6tSMARVIXkIQDWBhkXZCSBRCYjszjmW/9aJRQ/SHRUZaji0DVI5DBsURyzSG6rrkuujwytWHOSqwBcUGyANYFpBgnMXAfimEXy72omKXJlORDX42YkDwZwYUyd0mwlkICMdCiO+Wj8r66vmfwtIMTiTEi+F8BXiwssMiAJpAZYT+KYReVHMPjq+42Ree3VnORKAH5NNfgigSxIYc/imEX2z2omKfqRjFmwYxKHLtLLF8d8hL5+4LPJo6X+Wa62Zh3VQ5maQZYYbYXMHEvp4KZqNvF/iyokVwDwpwNGVSSQTdJZsDhmkfoM4jNJMSvSJA8EcNGolFF1RgKZy+oAxDE/Bv2axO9y+TVKb2XM4tA1yHDFMYvc7275bOJ3uzovJN8DYH3nDXfYoGaQJxa06l526jAl0U35OonPJJ2uVpM8AIC/BDbqMnmBDFwc84PTV959NvGV+FYLyf0BXNxqI4U4n7RARiSO2XDyZ7h8NvFnulopJPcDcEkrzgt0OlmBjFAcs+HlTwP7TJJ9JXtq4pjsRfqIxTH/N9jfL3Gh+PsmjQvJd/vuLI0dDczB5GaQiYhjNgz9TUUXib+5mFxI7gvgW8kOBlxxUgKZmDhmw9LfeffrkqRVbpL7ALh0wGO8UeiTEchExTE/OHwXFReK76oSVKYujslcg0gcG/Xg+3G5SHx/roWF5LsAXFZnN/bvRz+DSBybDWHfK9ivS5Zd5CO5N4DLxz74Q/o3aoFIHAuHgN8G9j2Dr51ZkdwFgB9B4KvkKgBGKxCJI3h8+0X8IwCeUe1IH1xxCoajFIjEMYWh200fRycQiaObgTOVVkYlEIljKsO2u36ORiAATq05n6M7qmppNATGJJDRJEUdKYeABFJOLhRJgQQkkAKTopDKISCBlJMLRVIgAQmkwKQopHIISCDl5EKRFEhAAikwKQqpHAISSDm5UCQFEpBACkyKQiqHgARSTi4USYEEJJACk6KQyiEggZSTC0VSIIHMAnnYzLZarpsW03+SjLGXrQi0QSBAILcA8DcxQ8q3zczf9V+ySCAhCGVTFIEAgRwF4JzAoFeZ2bIHm0oggRRlVg6BAIFsAeAHAHarifpqM9tzkY0EUk7eFUkggTqBuBuSfl1xJYAdl3Hr57gcZGb3SyCB4GU2DAIhApn1hOShAPxQoa2rz88A3O4v84UcvqoZZBhjQlHOEYgRSFNwEkhTgqrfOQEJpHPkanBIBCSQIWVLsXZOQALpHLkaHBIBCWRI2VKsnROQQDpHrgaHREACGVK2FGvnBCSQzpGrwSERKFkgNwDYdUgwFevoCNxqZqFP6jbufOxC4RkAjm/cqhyIQDqB1WbmBwp1UmIFomPAOkmLGllAYIWZre+KUKxAtgNwb1fBqR0RWILADmZ2T1dkogTiQZG8AsBeXQWodkRgjsA6M1vZJZEUgfjz9f64sIoIdE1gWzN7oMtGowVSzSJrAPhz9ioi0BWBQ8zswq4am7WTJJBKJNrAoetsTbi9Ltc+5jEnC6QSySoAF0w4b+p6+wTWmtlh7TezdAuNBFKJZJvqHMKD+uqE2h0lAX+f/DQzu6PP3jUWyCx4ktsD2Ln67FT922ff1PawCPgmCv7ZAOBOM7uvhPCzCaSEzigGEchNQALJTVT+RkVAAhlVOtWZ3AQkkNxE5W9UBCSQUaVTnclNQALJTVT+RkVAAhlVOtWZ3AQkkNxE5W9UBCSQUaVTnclNQALJTVT+RkVAAhlVOtWZ3AQkkNxE5W9UBCSQUaVTnclNQALJTVT+RkVAAhlVOtWZ3AQkkNxE5W9UBCSQUaVTnclNQALJTVT+RkVAAhlVOtWZ3AT+B2DIJ0GZh9ukAAAAAElFTkSuQmCC"};t.a={data:function(){return{clientInfo:{}}},methods:{callWindVane:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new Promise(function(a,s){n.$windvane?n.$windvane.call(e,t,i,a,s):s(new Error("lib-windvane library is not found!"))}).catch(function(e){if(e&&"HY_NOT_IN_WINDVANE"===e.ret)return{err:"HY_NOT_IN_WINDVANE"};throw e})},greaterThanVersion:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=(this.clientInfo.version||"").split(".").map(function(e){return parseInt(e.split("-")[0])}),i=e.split(".").map(function(e){return parseInt(e.split("-")[0])});if(3!==i.length||3!==n.length)return!1;try{if(n[0]!==i[0])return n[0]>i[0];if(n[1]!==i[1])return n[1]>i[1];if(n[2]!==i[2])return n[2]>i[2]}catch(e){}return!!t},getClientInfo:function(){var e=this;return this.callWindVane("HSPlugin","getClientInfo").then(function(t){return t&&t.sessionKey&&(e.clientInfo=t),t})},setNaviBarBg:function(e){var t=this,n={color:"dark"===e?"0X000000":"0XFFFFFF",theme:e};return this.getClientInfo().then(function(){return t.greaterThanVersion("8.1.0")?t.callWindVane("WebAppInterface","setHeaderBackgroun
1dColor",n):Promise.reject(new Error("Version is too low"))})},setNaviBarTitle:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.callWindVane("WebAppInterface","setCustomPageTitle",{title:e})},setNaviBarRightMenu:function(e){var t=e.rightTitle,n=e.rightIcon,i=e.rightHandle,a=e.autoReset,s={icon:n?c[n]:"",autoReset:void 0===a||a};return t&&(s=o(o({},s),{},{text:t})),this.callWindVane("WebAppInterface","setNaviBarRightItem",s).then(function(){document.addEventListener("TBNaviBar.rightItem.clicked",i,!1)})},setNaviBar:function(e){var t=this,n=e.theme,a=void 0===n?"white":n,r=e.title,o=Object(i.a)(e,s);return this.setNaviBarRightMenu(o).then(function(){return t.setNaviBarBg(a)}).then(function(){t.setNaviBarTitle(r)})}}}},3207:function(e,t,n){"use strict";n.r(t);n(23),n(19),n(15),n(31),n(32);var i=n(1),a=(n(62),n(22),n(21)),s=n(129),r=n(141);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach(function(t){Object(i.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var l={name:"OperateBtn",components:{IconfontView:s.default},mixins:[r.a],props:{showClose:{type:Boolean,default:!1},hyalineClose:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},hideTips:{type:Boolean,default:!1},memberBenefits:{type:Boolean,default:!1},giftType:{type:Boolean,default:!1},redDot:{type:Boolean,default:!1},cacheKey:{type:String,default:""},cacheTime:{type:Number,default:864e5},placement:{type:String,default:"top"},iconType:{type:String,default:""},iconFontSize:{type:String,default:"20px"},iconColor:{type:String,default:"#1C1C1C"},text:{type:String,default:""}},data:function(){return{showTips:!1,clickFlag:!1}},computed:c(c({},Object(a.d)(["isMobile","isHomestylerApp","signIn","memberType","stylerMember","aiMember","groupInfo"])),{},{canHover:function(){return!(this.isMobile||this.isHomestylerApp)},hide:function(){return this.signIn&&!["hs_mian_xiazai","hs_xian_share","xingzhuangjiehe","hs_chakandatu"].includes(this.iconType)},isVip:function(){return[2,3].includes(this.memberType)||this.stylerMember||this.aiMember||!!this.groupInfo.groupId}}),mounted:function(){this.init()},methods:{init:function(){if(this.cacheKey){var e=localStorage.getItem(this.cacheKey),t=Date.now();(!e||e<t)&&(this.showTips=!0,localStorage.setItem(this.cacheKey,t+this.cacheTime))}},handleTouchStart:function(){var e=this;this.signIn&&["hs_mian_xiazai","iconhs_xian_share"].includes(this.iconType)?this.setLoginInfo("login"):this.clickFlag||(this.clickFlag=!0,this.showClose?this.showTips=!this.showTips:this.$emit("click"),setTimeout(function(){e.clickFlag=!1},300))},handleClick:function(){this.canHover&&this.handleTouchStart()},handleMouse:function(e){this.canHover&&(this.showTips=e)},handleClose:function(){this.showTips=!1}}},u=(n(3859),n(18)),d=Object(u.a)(l,function(){var e=this,t=e._self._c;return e.hide?e._e():t("div",{staticClass:"operate-btn",class:{"operate-disabled":e.disabled},on:{mouseenter:function(t){return e.handleMouse(!0)},mouseleave:function(t){return e.handleMouse(!1)}}},[t("div",{on:{click:function(t){return t.stopPropagation(),e.handleClick.apply(null,arguments)},touchstart:e.handleTouchStart}},[e.memberBenefits?[e.isVip?e._e():[e.isHomestylerApp?t("img",{staticClass:"member-icon styler-icon",attrs:{src:n(1025)}}):t("img",{staticClass:"member-icon",attrs:{src:n(1778)}})]]:e.giftType?t("img",{staticClass:"gife-icon",attrs:{src:n(1022)}}):e._e(),e._v(" "),e.redDot?t("span",{staticClass:"red-dot"}):e._e(),e._v(" "),t("IconfontView",{attrs:{customClass:"operate-icon",customStyle:{fontSize:e.iconFontSize,color:e.iconColor},showType:e.iconType}}),e._v(" "),e._t("text")],2),e._v(" "),e.hideTips?e._e():t("div",{staticClass:"common-tips",class:["tips-".concat(e.placement),e.showTips&&"show-tips"]},[e.showClose?t("div",{staticClass:"operate-close",class:e.hyalineClose&&"operate-close-hyaline",on:{click:function(t){return t.stopPropagation(),e.handleClose.apply(null,arguments)},touchstart:e.handleClose}},[t("IconfontView",{attrs:{customStyle:{fontSize:"10px",color:"#ffffff"},showType:"xingzhuangjiehe"}}
1)],1):e._e(),e._v(" "),e._t("default"),e._v(" "),e._m(0)],2)])},[function(){var e=this._self._c;return e("div",{staticClass:"icon-block"},[e("div",{staticClass:"icon"})])}],!1,null,"250f66b8",null);t.default=d.exports;installComponents(d,{IconfontView:n(129).default})},3208:function(e,t,n){"use strict";n.r(t);n(23),n(19),n(15),n(31),n(32);var i=n(1),a=n(21);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}var r={name:"AppHeader",mixins:[n(3206).a],props:{theme:{type:String,default:"white"},goBackArrow:{type:Boolean,default:!0},title:{type:String,default:""},rightTitle:{type:String,default:""},rightDisabled:{type:Boolean,default:!1},customBack:{type:Boolean,default:!1},source:{type:String,default:"aiDesigner"},plain:{type:Boolean,default:!1}},computed:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){Object(i.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},Object(a.d)(["isHomestylerApp"])),mounted:function(){window.addEventListener("scroll",this.handleScroll)},destroyed:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{handleScroll:function(){if("dark"===this.theme){var e=window.scrollY||document.scrollTop||document.body.scrollTop;if(e){var t=e/240;this.$refs.header.style.backgroundColor="rgba(0, 0, 0, ".concat(t,")")}else this.$refs.header.style.backgroundColor="rgba(0, 0, 0, 0)"}},goBack:function(){var e=this;this.isHomestylerApp?this.callWindVane("WVNative","nativeBack").then(function(){},function(){e.callWindVane("HSPlugin","forceQuit")}):this.$router.go(-1)}}},o=r,c=(n(3866),n(18)),l=Object(c.a)(o,function(){var e=this,t=e._self._c;return t("div",{ref:"header",class:{app_header_container:!0,header_white:"white"===e.theme,header_plain:e.plain}},[t("div",{staticClass:"app_header"},[e.goBackArrow?t("div",{staticClass:"go_back_img",on:{click:e.goBack}}):e._e(),e._v(" "),e.title?t("div",{staticClass:"title"},[e._v("\n      "+e._s(e.title)+"\n    ")]):e._e(),e._v(" "),e.rightTitle?t("div",{staticClass:"right_handle",class:e.rightDisabled&&"right-disabled",on:{click:function(t){return e.$emit("rightHandler")}}},[e._v("\n      "+e._s(e.rightTitle)+"\n    ")]):e._e()])])},[],!1,null,null,null);t.default=l.exports},3209:function(e,t,n){"use strict";n.r(t);n(23),n(19),n(15),n(31),n(32);var i=n(1),a=n(21),s=n(14);function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}var o={name:"MemberUpgrade",components:{IconfontView:n(129).default},props:{showDemo:{type:Boolean,default:!0},adaptMobile:{type:Boolean,default:!0}},data:function(){return{beforeImg:"https://hs-designs.homestyler.com/staging/upload/images/e01c4cc5-13dd-45a5-b63a-14f84de49fbf.png",afterImg:"https://hs-designs.homestyler.com/staging/upload/images/861dbbe1-b95c-4223-bf67-62d13597f225.png"}},computed:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach(function(t){Object(i.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},Object(a.d)(["locale","userInfo","isHomestylerApp"])),methods:{upgrade:function(){this.$emit("upgrade"),Object(s.c)("/hs_global_web.aigc.benefits_upgrade_clk","member_id=".concat(this.userInfo.uid,"&language=").concat(this.locale))}}},c=o,l=(n(3858),n(18)),u=Object(l.a)(c,function(){var e=this,t=e._self._c;return t("div",{staticClass:"member_upgrade",class:{hide_demo:!e.showDemo,adapt_mobile:e.adaptMobile}},[t("div",{staticClass:"content",class:e.isHomestylerApp&&"styler_content"},[t("div",{staticClass:"left_area"},[t("IconfontView",{attrs:{showType:e.isHomestylerApp?"hs_zhanshi_stylerblack":"hs_renderingmembership_black",customStyle:{color:"#1c1c1c",fontSize:"18px"}}}),e._v(" "),t("span",[e._v(e._s(e.$t("AIGC.dashboard.album.member")))])],1
1),e._v(" "),t("div",{staticClass:"update_btn",on:{click:function(t){return t.stopPropagation(),e.upgrade.apply(null,arguments)},touchstart:e.upgrade}},[e._v("\n      "+e._s(e.$t("subscription.upgrade"))+"\n    ")])]),e._v(" "),e.showDemo?t("div",{staticClass:"demo_img"},[t("img",{attrs:{src:e.beforeImg}}),e._v(" "),t("IconfontView",{attrs:{customStyle:{fontSize:"20px",color:"#ffffff"},showType:"a-24_go",customClass:"wathermark_icon"}}),e._v(" "),t("img",{attrs:{src:e.afterImg}})],1):e._e()])},[],!1,null,"5d413d14",null);t.default=u.exports;installComponents(u,{IconfontView:n(129).default})},3210:function(e,t,n){"use strict";n(23),n(19),n(15),n(31),n(32);var i=n(7),a=n(1),s=(n(44),n(65),n(30),n(22),n(38),n(21)),r=n(164),o=n(304),c=n(51);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach(function(t){Object(a.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}t.a={data:function(){return{shareModal:{show:!1,caseId:"",config:{},showPost:{show:!1,showJoinContest:!1}},marketDialogShow:!1,marketType:"model",marketSource:"",onCloseCallback:function(){}}},computed:u(u({},Object(s.d)(["userInfo","locale","signIn","stylerMember","abTest","isHomestylerApp","isAndroid","stopWordList","memberType","showTopBar","isDarkTheme","groupInfo"])),{},{store:function(){return{userInfo:this.userInfo,locale:this.locale||"en_US",query:this.$route.query,stylerMember:this.stylerMember,abTest:this.abTest,stopWordList:this.stopWordList,memberType:this.memberType,showTopBar:this.showTopBar,isHomestylerApp:this.isHomestylerApp,isAndroid:this.isAndroid,isDarkTheme:this.isDarkTheme,groupInfo:this.groupInfo}}}),methods:{getLocalContent:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.$t(e,t)},showMarketDialog:function(e){this.marketDialogShow=!0,null!=e&&e.marketType&&(this.marketType=null==e?void 0:e.marketType),null!=e&&e.marketSource&&(this.marketSource=null==e?void 0:e.marketSource),null!=e&&e.callback&&(this.onCloseCallback=function(){e.callback()})},showShareModel:function(e){var t=this;return Object(i.a)(regeneratorRuntime.mark(function n(){var i;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if("collect"===e.source?t.shareModal.config=t.buildCollectShareConfig(e):(t.shareModal.config=e.shareConfig||t.buildPostDetailShareConfig(e),t.shareModal.showPost=e.showPost||{show:!1,showJoinContest:!1}),t.signIn||!t.shareModal.config.url){n.next=2;break}return n.next=1,Object(o.b)({url:t.shareModal.config.url,invitationUser:null===(i=t.userInfo)||void 0===i?void 0:i.uid,mgmScene:"share_design_detail"});case 1:t.shareModal.config.url=n.sent;case 2:t.shareModal.show=!t.shareModal.show;case 3:case"end":return n.stop()}},n)}))()},buildCollectShareConfig:function(e){return{title:e.name||"Project Detail",description:e.description,url:e.shareUrl,attr:{language:this.locale||"en_US"}}},buildPostDetailShareConfig:function(e){var t,n,i,a=e.authorInfo,s=e.postDetail,o=e.params,c=s.id,l=s.modifyTime,u=s.title,d=s.description,p=s.bizType,m={projectName:u,authorName:(null!==(t=a.firstName)&&void 0!==t?t:"")+" "+(null!==(n=a.lastName)&&void 0!==n?n:""),date:new Date(l).toLocaleString("en-us",{year:"numeric",month:"2-digit",day:"2-digit"}).replace(/(\d+)\/(\d+)\/(\d+)/,"$3-$1-$2")},f=null===(i=s.imgVideoList)||void 0===i?void 0:i[0].photoUrl,h=s.designShareUrl||location.href;return o&&(h=Object(r.e)(h,o)),{title:u?this.$t("projectDetail.meta.title",m):"Project Detail",description:d,caseId:a.caseId||c,image:null!=f&&f.includes(".mp4")?"".concat(f,"?x-oss-process=video/snapshot,t_0,m_fast"):this.getFitSrc(f),url:h,text:'See this @homestyler project:"'.concat(u,'"'),attr:{bizId:a.caseId||c,type:p,language:this.locale||"en_US"}}},getFitSrc:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1280;if(!e)return"";var n=this.isMobile&&!this.isIPad?500:t;return Object(c.d)(e,Math.floor(n))}}}},3211:function(e,t,n){"use strict";n(23),n(19),n(15),n(31),n(32);var i=n(1),a=n(21);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}t.a={computed:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?s(Object(n),!0).forEach(function(t){Object(i.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},Object(a.d)(["isMobile","navbarTheme"])),mounted:function(){var e=this;this.$nextTick(function(){e.navbarScroll(),e.$store.commit("SET_NAVBARTHEME","black")}),window.addEventListener("scroll",this.navbarScroll)},destroyed:function(){var e=document.querySelector(".navbar-mask"),t=document.querySelector(".navbar-left"),n=document.querySelector(".navbar-right");e&&e.classList.remove("init"),t&&t.classList.remove("white-theme"),n&&n.classList.remove("white-theme"),this.$store.commit("SET_NAVBARTHEME","default"),window.removeEventListener("scroll",this.navbarScroll)},methods:{navbarScroll:function(){var e=document.documentElement.scrollTop||document.body.scrollTop;if(this.isMobile||(window.innerWidth||document.body.offsetWidth)<1024)this.$store.commit("SET_NAVBARTHEME",e>=40?"default":"black");else{var t=document.querySelector(".navbar-mask"),n=document.querySelector(".navbar-left"),i=document.querySelector(".navbar-right");t&&(e>=40?(t.classList.remove("init"),n.classList.remove("white-theme"),i.classList.remove("white-theme"),this.$store.commit("SET_NAVBARTHEME","default")):(t.classList.add("init"),n.classList.add("white-theme"),i.classList.add("white-theme"),this.$store.commit("SET_NAVBARTHEME","white-theme")))}}}}},3213:function(e,t,n){"use strict";n(23),n(19),n(15),n(31),n(32);var i=n(7),a=n(1),s=(n(38),n(21)),r=n(61);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}t.a={computed:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach(function(t){Object(a.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},Object(s.d)(["memberType","memberInfo","groupInfo"])),methods:{getDeleteConfirmConfig:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n={title:this.$t("AIGC.dashboard.album.delete.title"),content:this.$t("AIGC.dashboard.album.delete.ctn"),delete:this.$t("myDesigns.content.delete"),cancel:this.$t("AIGC.dashboard.album.delete.btn1"),success:this.$t("app.layout.delete.success")},a=!1;return this.groupInfo.groupId||(3===this.memberType?n.content=this.$t("trash_model_move_trash_delete_master"):2===this.memberType?(n.cancel=this.$t("trash_upgrade_membership"),n.content=this.$t("trash_model_move_trash_delete30"),a=!0):(n.cancel=this.$t("trash_upgrade_membership"),n.content=this.$t("trash_model_move_trash_delete"),a=!0)),{msg:n,needUpgradeMembership:a,confirmOptions:{confirmButtonText:n.delete,cancelButtonText:n.cancel,type:"warning",customClass:"aigc-delete-confim",center:!0,closeOnClickModal:!1,distinguishCancelAndClose:!0,beforeClose:(e=Object(i.a)(regeneratorRuntime.mark(function e(n,i,s){var r,o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if("confirm"!==n){e.next=5;break}return i.confirmButtonLoading=!0,i.confirmButtonText=" ",e.prev=1,e.next=2,null===(r=t.onConfirm)||void 0===r?void 0:r.call(t);case 2:e.next=4;break;case 3:e.prev=3,e.catch(1);case 4:i.confirmButtonLoading=!1,e.next=6;break;case 5:"cancel"===n&&a&&(null===(o=t.onUpgrade)||void 0===o||o.call(t));case 6:s();case 7:case"end":return e.stop()}},e,null,[[1,3]])})),function(t,n,i){return e.apply(this,arguments)})}}},getMarketType:function(){var e="";if(this.memberInfo.aiMember)switch(this.memberType){case 2:e=r.X.MASTERAIGC;break;case 3:e=r.X.AIGC;break;default:e=r.X.RENDERAIGC}else switch(this.memberType){case 2:e=r.X.MASTERAIBOOSTAIGC;break;case 3:e=r.X.AIBOOSTAIGC;break;default:e=r.X.RENDERAIBOOSTAIGC}return e},showDeleteConfirm:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.getDeleteConfirmConfig(e),n=t.msg,i=t.confirmOptions;
1return this.$confirm(n.content,n.title,i).catch(function(){})}}}},3214:function(e,t,n){"use strict";n(23),n(19),n(15),n(31),n(32);var i=n(1),a=n(21);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}t.a={data:function(){return{scrollHandler:null,initialTheme:null,isScrollListenerActive:!1}},computed:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){Object(i.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},Object(a.d)(["navbarTheme"])),watch:{navbarTheme:{handler:function(e){var t=this;null===this.initialTheme&&(this.initialTheme=e),this.$nextTick(function(){t.updateNavbarStyle(e)}),this.setupScrollListener()},immediate:!0}},destroyed:function(){this.cleanupScrollListener(),this.resetNavbarStyle(),this.$store.commit("SET_NAVBARTHEME","default")},methods:{handleScroll:function(){if("undefined"!=typeof document){var e=document.documentElement.scrollTop||document.body.scrollTop;"white-theme"===this.initialTheme?this.handleWhiteThemeScroll(e,40):"transparent-black-theme"===this.initialTheme&&this.handleTransparentBlackThemeScroll(e,40)}},handleWhiteThemeScroll:function(e,t){if("undefined"!=typeof document){var n=document.querySelector(".navbar-mask"),i=document.querySelector(".navbar-left"),a=document.querySelector(".navbar-right");n&&(e>=t?(n.classList.remove("init"),i.classList.remove("white-theme"),a.classList.remove("white-theme"),"default"!==this.navbarTheme&&this.$store.commit("SET_NAVBARTHEME","default")):(n.classList.add("init"),i.classList.add("white-theme"),a.classList.add("white-theme"),"white-theme"!==this.navbarTheme&&this.$store.commit("SET_NAVBARTHEME","white-theme")))}},handleTransparentBlackThemeScroll:function(e,t){e>=t?"default"!==this.navbarTheme&&this.$store.commit("SET_NAVBARTHEME","default"):"transparent-black-theme"!==this.navbarTheme&&this.$store.commit("SET_NAVBARTHEME","transparent-black-theme")},setupScrollListener:function(){"undefined"!=typeof window&&(this.cleanupScrollListener(),"white-theme"!==this.initialTheme&&"transparent-black-theme"!==this.initialTheme||(this.scrollHandler=this.handleScroll.bind(this),window.addEventListener("scroll",this.scrollHandler,{passive:!0}),this.isScrollListenerActive=!0))},cleanupScrollListener:function(){"undefined"!=typeof window&&this.scrollHandler&&this.isScrollListenerActive&&(window.removeEventListener("scroll",this.scrollHandler),this.scrollHandler=null,this.isScrollListenerActive=!1)},updateNavbarStyle:function(e){if("undefined"!=typeof document){var t=document.querySelector(".navbar-mask"),n=document.querySelector(".navbar-left"),i=document.querySelector(".navbar-right");t&&("white-theme"===e?(t.classList.add("init"),n.classList.add("white-theme"),i.classList.add("white-theme")):(t.classList.remove("init"),n.classList.remove("white-theme"),i.classList.remove("white-theme")))}},resetNavbarStyle:function(){if("undefined"!=typeof document){var e=document.querySelector(".navbar-mask"),t=document.querySelector(".navbar-left"),n=document.querySelector(".navbar-right");e&&e.classList.remove("init"),t&&t.classList.remove("white-theme"),n&&n.classList.remove("white-theme")}},navbarBlackWhiteScroll:function(){"undefined"!=typeof document&&this.handleTransparentBlackThemeScroll(document.documentElement.scrollTop||document.body.scrollTop,40)},navbarWhiteBlackScroll:function(){"undefined"!=typeof document&&this.handleWhiteThemeScroll(document.documentElement.scrollTop||document.body.scrollTop,40)},navbarDefaultScroll:function(){this.$store.commit("SET_NAVBARTHEME","default")},getTheme:function(e){var t={"white-theme":this.navbarWhiteBlackScroll,"transparent-black-theme":this.navbarBlackWhiteScroll,default:this.navbarDefaultScroll};return t[e]?t[e]:t.default}}}},3216:function(e,t,n){"use strict";n.r(t);n(23),n(19),n(15),n(31),n(32);var i=n(7),a=n(1),s=(n(38),n(62),n(30),n(22),n(21)),r=n(12),o=n(14);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}var l={name:"RatingBox",components:{IconfontView:n(129).default},props:{sourceType:{type:String,default:"1"},bizId:{type:Number,default:-1},sourceValue:{type:String,default:""},submitted:{type:Boolean,default:!1},title:{type:String,default:""},rating:{type:Number,default:0},iconType:{type:Object,default:function(){return{normal:"a-starnormal",hover:"a-starhover",selected:"a-starselect"}}}},data:function(){return{submitLoading:!1,localSubmitted:!1,localRating:0,hoverRating:0}},computed:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?c(Object(n),!0).forEach(function(t){Object(a.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},Object(s.d)(["locale","userInfo"])),watch:{rating:{handler:function(){this.localRating=this.rating,this.localSubmitted=this.submitted},immediate:!0},bizId:function(){this.localRating=this.rating,this.localSubmitted=this.submitted}},mounted:function(){},methods:{handleMouseEnter:function(e){this.hoverRating=e},handleMouseLeave:function(){this.hoverRating=0},selectRating:function(e){this.localSubmitted||(this.localRating=e)},submitRating:function(){var e=this;return Object(i.a)(regeneratorRuntime.mark(function t(){var n,i;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.submitLoading&&e.localRating){t.next=1;break}return t.abrupt("return");case 1:return t.prev=1,e.submitLoading=!0,n={bizId:e.bizId,score:"".concat(e.localRating),sourceType:e.sourceType,sourceValue:e.sourceValue},t.next=2,r.a.aigc.aigcRating({data:n});case 2:(i=t.sent)&&i.ret&&i.ret[0].includes("SUCCESS")&&i.data&&(e.localSubmitted=!0,e.$emit("submit")),t.next=4;break;case 3:t.prev=3,t.catch(1),e.$message.error(e.$t("coupon.wrong"));case 4:return t.prev=4,e.submitLoading=!1,t.finish(4);case 5:Object(o.c)("/hs_global_web.aigc.album_rating_submit","bizId=".concat(e.bizId,"&score=").concat(e.localRating,"&member_id=").concat(e.userInfo.uid,"&language=").concat(e.locale));case 6:case"end":return t.stop()}},t,null,[[1,3,4,5]])}))()}}},u=l,d=(n(3860),n(18)),p=Object(d.a)(u,function(){var e=this,t=e._self._c;return t("div",{staticClass:"rating_box",on:{touchstart:function(e){e.stopPropagation()}}},[e.title?t("h3",{staticClass:"rating_title"},[e._v("\n    "+e._s(e.title)+"\n  ")]):e._e(),e._v(" "),t("div",{staticClass:"rating_content"},e._l([2,4,6,8,10],function(n){return t("span",{key:n,staticClass:"rating_item",on:{click:function(t){return e.selectRating(n)},touchstart:function(t){return e.selectRating(n)},mouseenter:function(t){return e.handleMouseEnter(n)},mouseleave:e.handleMouseLeave}},[n<=e.localRating?t("IconfontView",{attrs:{customStyle:{fontSize:"24px"},showType:e.iconType.selected}}):t("IconfontView",{attrs:{customStyle:{fontSize:"24px"},showType:n<=e.hoverRating&&!e.localSubmitted?e.iconType.hover:e.iconType.normal}})],1)}),0),e._v(" "),e.localSubmitted?e._e():t("div",{staticClass:"rating_footer",on:{touchstart:e.submitRating}},[t("el-button",{staticClass:"rating_submit",attrs:{disabled:!e.localRating,loading:e.submitLoading},on:{click:e.submitRating}},[e._v("\n      "+e._s(e.$t("affiliate.dashboard.apply.popup.submit"))+"\n    ")])],1)])},[],!1,null,"d4a51e5e",null);t.default=p.exports;installComponents(p,{IconfontView:n(129).default})},3218:function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"c",function(){return m}),n.d(t,"d",function(){return h}),n.d(t,"b",function(){return g});n(23),n(19),n(31),n(32);var i=n(1),a=(n(15),n(30),n(22),n(14));function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){Object(i.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var o={POST_DETAIL:"post_detail",CHALLENGE_DETAIL:"challenge_detail",TAG_DETAIL:"tag_detail",USER_PROFILE:"user_profile"},c="/hs_global_web.share_expose",l=[],u=null;function d(){var e;return null===(e=window)||void 0===e||null===(e=e.$nuxt)||void 0===e||null===(e=e.context)||void 0===e?void 0:e.store}function p(e){var t,n=e.pageKey,i=e.userId,s=e.platform,o=e.extraParams,l="".concat(c,".").concat(n),u=null===(t=d())||void 0===t||null===(t=t.state)||void 0===t||null===(t=t.userInfo)||void 0===t?void 0:t.uid,p=r(r(r(r({},i&&{share_user_id:i}),s&&{share_platform:s}),u&&{open_user_id:u}),{},{open_platform:"web"},o);Object(a.d)(l,p)}function m(e){var t;if(e.pageKey){var n=d();(null==n||null===(t=n.state)||void 0===t?void 0:t.loaded)?p(e):(l.push(e),f())}}function f(){if(!u){var e=d();if(e)u=e.watch(function(e){return e.loaded},function(e){e&&l.length&&(l.forEach(p),l=[],u&&(u(),u=null))});else var t=setInterval(function(){var e,n=d();n&&(clearInterval(t),null!==(e=n.state)&&void 0!==e&&e.loaded?(l.forEach(p),l=[]):f())},200)}}function h(e,t,n){var i=t.userId||t.userid||t.fromUser,a=t.platform,s="share"===t.from;(i||a||s)&&m({pageKey:e,userId:i,platform:a,extraParams:n})}function g(e,t){var n=t.userId||t.userid||t.fromUser,i=t.platform,a=t.invitationUser,s=t.unifiedInvitation,r=t.invitationScene,o=t.channelCode,c=t.invitationCode,l=t.adid,u=[n?"userId=".concat(n):"",i?"platform=".concat(i):"",a?"invitationUser=".concat(a):"",s?"unifiedInvitation=".concat(s):"",r?"invitationScene=".concat(r):"",o?"channelCode=".concat(o):"",c?"invitationCode=".concat(c):"",l?"adid=".concat(l):""].filter(
1Boolean).join("&");if(!u)return e;var d=e.includes("?")?"&":"?";return"".concat(e).concat(d).concat(u)}},3220:function(e,t,n){"use strict";n.d(t,"a",function(){return l});var i=n(8);n(30),n(22),n(239),n(15),n(88),n(65),n(154),n(25),n(69),n(37),n(44),n(19),n(171),n(70),n(66);function a(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return s(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,a=function(){};return{s:a,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,r=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw r}}}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}var r=["faq","frequently asked","常见问题","常見問題","よくある質問","자주 묻는 질문","domande frequenti","вопросы и ответы","preguntas frecuentes","perguntas frequentes","häufig gestellte fragen","często zadawane pytania","questions fréquentes","pertanyaan umum"];function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=e.search(/[::]/);return n>=1&&n<=t?e.substring(n+1).trim():e}function c(e){if(!e||"string"!=typeof e)return[];if(!/<strong/i.test(e))return[];var t,n=[],i=a(e.split(/<strong[^>]*>/i).filter(Boolean));try{for(i.s();!(t=i.n()).done;){var s=t.value,r=s.search(/<\/strong>/i);if(-1!==r){var c=s.substring(0,r).replace(/<[^>]+>/g,"").trim(),l=s.substring(r+9),u=(l=l.replace(/^(?:\s*<br\s*\/?>\s*)+/i,"")).replace(/<[^>]+>/g,"").trim();c=o(c),u=o(u),c&&u&&n.push({question:c,answer:u})}}}catch(e){i.e(e)}finally{i.f()}return n}function l(e){if(null==e||!e.length)return[];var t=e.findIndex(function(e){return"h2"===e.label&&function(e){if(!e)return!1;var t=e.trim().toLowerCase();return r.some(function(e){return t===e||t.includes(e)})}(e.content)});if(-1===t||t>=e.length-1)return[];for(var n=[],a=t+1;a<e.length;a++){var s=e[a];if("p"===s.label&&"string"==typeof s.content)n.push(s.content);else if("h2"===s.label||"br"===s.label)break}if(!n.length)return[];for(var l=[],u=0,d=n;u<d.length;u++){var p=d[u];l.push.apply(l,Object(i.a)(c(p)))}if(l.length>0)return l;for(var m=n.join("").split(/(?:<br\s*\/?>\s*)+|\n+/gi).map(function(e){return e.replace(/<[^>]+>/g,"").trim()}).filter(Boolean),f=[],h=0;h<m.length-1;h+=2){var g=o(m[h]),v=o(m[h+1]||"");g&&v&&f.push({question:g,answer:v})}return f}},3221:function(e,t,n){"use strict";n(23),n(19),n(31),n(32),n(69),n(44),n(171),n(70),n(66);var i=n(8),a=n(20),s=n(2),r=n(7),o=n(1),c=(n(38),n(25),n(37),n(15),n(88),n(65),n(30),n(22),n(1
154),n(161),n(324),n(67)),l=n.n(c),u=n(21),d=n(334),p=n(3239),m=n(57),f=(n(3220),n(277)),h=n(109),g=n(12),v=n(14),b=n(24),_=n(3831),y=n(642),w=n(689),C={name:"ProductCard",props:{cardData:{type:Object,required:!0,default:function(){return{id:"",name:"",description:"",image:"",productPriceInfo:{countryCode:"",detailUrl:"",price:"",rate:"0",rebate:"0"}}}},adid:{type:String,default:""},spmName:{type:String,default:"product_card"}},computed:{priceText:function(){var e=this.cardData.productPriceInfo;return null!=e&&e.price?"$".concat(e.price):""},detailUrl:function(){var e;return(null===(e=this.cardData.productPriceInfo)||void 0===e?void 0:e.detailUrl)||""}},methods:{handleClick:function(){Object(v.c)("/hs_global_web.".concat(this.spmName,".product_click"),"id=".concat(this.cardData.id))}}},O=(n(4236),n(18)),k=Object(O.a)(C,function(){var e,t=this,n=t._self._c;return n("div",{staticClass:"product-card"},[n("div",{staticClass:"product-card__image"},[n("img",{attrs:{src:"".concat(t.cardData.image,"?x-oss-process=image/resize,w_360,h_280,m_lfit"),alt:t.cardData.name||t.cardData.description}})]),t._v(" "),n("div",{staticClass:"product-card__info"},[n("h3",{staticClass:"product-card__name"},[t._v("\n      "+t._s(t.cardData.name)+"\n    ")]),t._v(" "),n("div",{staticClass:"product-card__price"},[t._v("\n      "+t._s(t.priceText)+"\n    ")]),t._v(" "),null!==(e=t.cardData.productPriceInfo)&&void 0!==e&&e.detailUrl?n("a",{staticClass:"product-card__button",attrs:{href:t.detailUrl,target:"_blank"},on:{click:t.handleClick}},[t._v("\n      "+t._s(t.$t("product_see_detail"))+"\n      "),n("i",{staticClass:"iconfont icon-arrow"})]):t._e()])])},[],!1,null,"f3278f14",null).exports,I=n(1588),S=n(363),j=n(968),T=n(51),x=n(590);function A(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return P(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?P(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,a=function(){};return{s:a,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,r=!0,o=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return r=e.done,e},e:function(e){o=!0,s=e},f:function(){try{r||null==n.return||n.return()}finally{if(o)throw s}}}}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function M(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?D(Object(n),!0).forEach(function(t){Object(o.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var E=["Originally incubated at Autodesk, Homestyler has grown into one of the most widely adopted home design platforms in the world, now trusted by over ".concat(m.zb,". Whether you're a homeowner exploring ideas or a professional designer delivering client-ready renders, Homestyler brings industry-leading 3D technology to your fingertips — no experience required."),"Homestyler's roots trace back to Autodesk, the global leader in design and engineering software. That heritage lives on in every feature we build. Today, with a community of more than ".concat(m.zb," worldwide, Homestyler continues to make professional-quality interior design accessible to everyone — from first-time decorators to seasoned architects."),"Built on technology originally developed at Autodesk, Homestyler empowers anyone to design beautiful, realistic spaces in minutes. Join over ".concat(m.zb," who have already discovered a smarter way to plan, visualize, and bring their dream homes to life — all from the comfort of a browser."),"What began as an Autodesk innovation has evolved into a design platform used by more than ".concat(m.zb," around the globe. Homestyler combines powerful rendering, an intuitive editor, and a vast furniture library to help you turn inspiration into photorealistic designs — whether you're redesigning a single room or planning an entire home.")];function L(e){if(null!=e&&e.length){var t=e.length%E.length,n=E[t];n&&e.splice(e.length-1,0,{label:"p",content:n})}}function $(e){return null!=e&&e.length?e.map(function(e){if("p"===e.label)try{var t=JSON.parse(e.content);if(t&&"models"===t.label)return M(M({},e),{},{label:"models"})}catch(e){}return e}):e}function N(e,t,n){if(null==t||!t.length||null==e||!e.length)return e;var i,a=0,s=null,r=0,o=[],c=A(e);try{for(c.s();!(i=c.n()).done;){var l=i.value;o.push(l),s&&++r>=1&&(o.push(M({},s)),s=null,r=0),"img"===l.label&&a<t.length&&!s&&(s=M({},t[a]),n[a]&&(s.linkNameMdsKeyValue=n[a]),r=0,a++)}}catch(e){c.e(e)}finally{c.f()}return o}t.a={components:{ShareModal:S.a,CategoryCrumbs:_.a,PostDetailRecommend:w.a,ModelCard:y.a,ProductCard:k,ResourceViewWrap:I.a,TopBtn:j.a},mixins:[x.a],asyncData:function(e){return Object(r.a)(regeneratorRuntime.mark(function t(){var n,i,r,o,c,l,u,d,m,f,g,v,_,y,w,C,O,k,I,S,j,T,x,A,P,D,M,E,R,B,U,F,V,H,z,K,W,q,G;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.params,i=e.store,r=e.query,o=e.app,c=e.error,l=e.redirect,u=n.keywords,d=void 0===u?"":u,m={}
1,f=r.lang||i.state.locale||"en_US",g={},v=[],t.prev=1,j=h.a.gallery.aiArticle({keyword:d,lang:f},!1,{Authorization:i.state.sessionKey,lang:f},!1),T=i.state.clientIP||o.$cookies.get("x-forwarded-for-agent"),x=o.$cookies.get("sessionKey")||"",A={lang:f,Authorization:x,"x-forwarded-for-agent":T},P={scenes:["aiSoftArticle","aiChallengeArticle"],fromType:"website"},D=h.a.gscore.resourceMulti(P,!1,A),t.next=2,Promise.allSettled([j,D]);case 2:if(M=t.sent,E=Object(s.a)(M,2),R=E[0],B=E[1],g=null==R||null===(_=R.value)||void 0===_?void 0:_.model,!0!==(null===(y=g)||void 0===y?void 0:y.offline)){t.next=3;break}return t.abrupt("return",l(302,Object(p.a)(null===(U=g)||void 0===U?void 0:U.firstCategory,null===(F=g)||void 0===F?void 0:F.secondCategory)));case 3:if(g){t.next=4;break}return t.abrupt("return",c({statusCode:404,msgKey:"coupon.wrong"}));case 4:return V="A"===((null===(w=i.state.abTest)||void 0===w?void 0:w.abRAIArticle)||"A")?0:1,m=(null===(C=B.value)||void 0===C||null===(C=C.data)||void 0===C||null===(C=C[0])||void 0===C||null===(C=C.resourceLocations[0])||void 0===C?void 0:C.resourceContent.list[V])||{},H={targetContentId:g.matchId,pageNo:0,pageSize:30,bizSource:"ALSO_LIKE_HOME",clientInfo:JSON.stringify({platform:"web",language:i.state.locale||"en_US"})},z=g.matchId?h.a.gallery.geContestFeatureList:h.a.gallery.alsoLikeList,K=z(H,!1,{Authorization:i.state.sessionKey}),t.next=5,K;case 5:0===(null==(W=t.sent)||null===(O=W.status)||void 0===O?void 0:O.code)&&null!==(k=W.data)&&void 0!==k&&k.data&&(v=Object(b.G)(W)),g.contentList=g.contentList.filter(function(e){if("img"!==e.label)return!0;try{var t=JSON.parse(e.content);return t&&"object"===Object(a.a)(t)&&t.url}catch(e){return!1}}),g.contentList=$(g.contentList),q=(null===(I=B.value)||void 0===I||null===(I=I.data)||void 0===I||null===(I=I[1])||void 0===I||null===(I=I.resourceLocations[0])||void 0===I?void 0:I.resourceContent.list)||[],(null===(S=g)||void 0===S?void 0:S.contentList.length)>0&&q.length>0&&(G=JSON.parse(g.adInfo)||[],g.contentList=N(g.contentList,q,G)),L(g.contentList),t.next=7;break;case 6:t.prev=6,t.catch(1);case 7:return t.abrupt("return",{resourceData:m,pageContent:g,recommendList:v,matchId:g.matchId||0,poolModelList:g.poolModelList||[],keywords:d,modelList:g.modelList||[],includeHotWord:g.includeHotWord||!1});case 8:case"end":return t.stop()}},t,null,[[1,6]])}))()},data:function(){return{pageContent:{},activeIndex:0,shareModal:{show:!1,config:{},showPost:{show:!1,showJoinContest:!1}},observer:null,showTopCard:!0,imageLoaded:{},advertBg:["https://gw.alicdn.com/imgextra/i4/O1CN01KgkWIw1YrLgBFrmZK_!!6000000003112-2-tps-656-248.png","https://gw.alicdn.com/imgextra/i4/O1CN01bawFl11bWEGNBWOgd_!!6000000003472-2-tps-456-284.png"],articleType:null,spmb:null}},head:function(){var e,t=this;if(this.isAISearchEngine){var n={title:"".concat(this.pageContent.title," - Interior Design Guide | Homestyler"),description:"".concat(this.pageContent.webDescribe||this.pageContent.description||""," Learn professional interior design techniques and tips with Homestyler's comprehensive guides."),aiScenario:"tutorial-guidance",pageType:"article",articleData:{title:this.pageContent.title||"",category:this.pageContent.firstCategory||"Interior Design",tags:this.pageContent.tags||[],publishDate:this.pageContent.time||(new Date).toISOString(),readTime:this.pageContent.readTime||"5 min",author:this.pageContent.authorName||"Homestyler"}},a=this.getAIOptimizedHead("article",n);if(a.isOptimized)return a.data}var s=this.spmb||(this.includeHotWord?"43962136":this.matchId?"45740376":"30248319"),r=this.pageContent.title,o=this.pageContent.webDescribe,c=this.articleRoutePrefix,l=c?"/article/".concat(c,"/").concat(this.keywords):"/article/".concat(this.keywords),u="".concat(this.baseUrl).concat(l),d=(null===(e=this.pageContent.imgInfo)||void 0===e||null===(e=e[0])||void 0===e?void 0:e.imgUrl)||"",p=this.pageContent.authorName||"Homestyler",m=this.pageContent.time||(new Date).toISOString(),f=m,h=this.pageContent.firstCategory||"Interior Design",g=this.pageContent.authorHomestylerId?"".concat(this.baseUrl,"/").concat(this.pageContent.authorHomestylerId):"",v=function(){for(var e=t.pageContent.contentList||[],n=["faq","frequently asked","常见问题","常見問題"],i=-1,a=function(){if("h2"===e[s].label){var t=(e[s].content||"").trim().toLowerCase();if(n.some(function(e){return t===e||t.includes(e)}))return i=s,1}},s=0;s<e.length&&!a();s++);for(var r=i>=0?i:e.length,o=0,c=0;c<r;c++){var l=e[c];"h2"!==l.label&&"p"!==l.label||(o+=(l.content||"").replace(/<[^>]*>
1/g,"").split(/\s+/).filter(Boolean).length)}return o}(),b={title:this.pageContent.title||"",description:this.pageContent.webDescribe||this.pageContent.description||"",url:u,wordCount:v||void 0,inLanguage:(this.locale||"en").split("_")[0],author:{name:p,url:g,image:this.pageContent.authorAvatar||"",description:this.pageContent.authorDescription||"",jobTitle:"3D Artist",worksFor:{"@type":"Organization","@id":"".concat(this.baseUrl,"/#organization"),name:"Homestyler"}},datePublished:m,dateModified:f,image:d};return{title:r,meta:this.getMetaTags("article",{spma:"a1zmxy",spmb:s,title:r,description:o,url:u,image:d,isArticleDetail:!0,authorName:p,publishedTime:m,modifiedTime:f,articleSection:h}),link:this.getLinkTags("article",null,l),script:[this.getStructuredData("article",b),this.breadcrumbStructuredData,this.getStructuredData("organization")].concat(Object(i.a)(this.articleFAQItems.length>0?[this.getStructuredData("faq",this.articleFAQItems)]:[]))}},computed:M(M({},Object(u.d)(["isMobile"])),{},{articleFAQItems:function(){return[]},breadcrumbStructuredData:function(){var e=function(e){return(null==e?void 0:e.toLowerCase().replace(/\s+/g,"-"))||""},t=e(this.pageContent.firstCategory),n=e(this.pageContent.secondCategory),a=this.articleRoutePrefix,s=a?"/article/".concat(a,"/").concat(this.keywords):"/article/".concat(this.keywords),r="".concat(this.baseUrl).concat(s);return this.getStructuredData("breadcrumb",[{name:"Home",url:this.baseUrl},{name:"All Articles",url:"".concat(this.baseUrl,"/article")}].concat(Object(i.a)(this.pageContent.firstCategory?[{name:this.pageContent.firstCategory,url:"".concat(this.baseUrl,"/news/").concat(t)}]:[]),Object(i.a)(this.pageContent.secondCategory&&this.pageContent.firstCategory?[{name:this.pageContent.secondCategory,url:"".concat(this.baseUrl,"/news/").concat(t,"/").concat(n)}]:[]),[{name:this.pageContent.title||this.keywords,url:r}]))},tocItems:function(){var e;return null===(e=this.pageContent.contentList)||void 0===e?void 0:e.filter(function(e){return"h2"===e.label}).map(function(e){return M(M({},e),{},{content:(e.content||"").replace(/<[^>]+>/g,"").trim()})})},showArticleResourceView:function(){return!(!this.pageContent.sourceId||7!==this.pageContent.type)},secondParagraphIndex:function(){for(var e=this.pageContent.contentList||[],t=0,n=0;n<e.length;n++)if("p"===e[n].label&&2===++t)return n;return-1},imgUrl:function(){var e;return Object(T.d)(null===(e=this.pageContent.imgInfo)||void 0===e||null===(e=e[0])||void 0===e?void 0:e.imgUrl,400)},articleAdidPrefix:function(){var e;return Object(d.d)({matchId:this.matchId,includeHotWord:this.includeHotWord,articleType:this.articleType,type:null===(e=this.pageContent)||void 0===e?void 0:e.type,locale:this.locale})},bucketSuffix:function(){var e;return(null===(e=this.$store.state.abTest)||void 0===e?void 0:e.abRAIArticle)||"A"},articleRoutePrefix:function(){return Object(p.b)(this.articleType,this.includeHotWord)}}),watch:{locale:function(e){e&&this.refreshPageData()},articleAdidPrefix:{handler:function(e){[f.g,f.a,f.f,f.b,f.c,f.d].includes(e)&&(l.a.set("adid",e,{expires:f.j,domain:f.i}),this.$store.commit("SET_LOGINADDQUERY","&adid=".concat(e,"nav1")))},immediate:!0}},mounted:function(){this.observerContentCard(),globalSpmClick("article.detail_exp",{keywords:this.keywords}),this.$store.commit("SET_CONTACT_ICON_VISIBLE",!this.isMobile)},beforeDestroy:function(){var e;clearTimeout(this._topCardTimer),null===(e=this.observer)||void 0===e||e.unobserve(this.$refs.contentCard),this.$store.commit("SET_LOGINADDQUERY","")},methods:{refreshPageData:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark(function t(){var n,i,r,o,c,l,u,d,m,f,h,v,b,_,y,w,C;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,l=g.a.aiArticle.detail({data:{keyword:e.keywords,lang:e.locale},options:{headers:{lang:e.locale}}}),u=g.a.other.resourceMulti({data:{scenes:["aiSoftArticle","aiChallengeArticle"],fromType:"website"},options:{headers:{lang:e.locale}}}),t.next=1,Promise.allSettled([l,u]);case 1:if(d=t.sent,m=Object(s.a)(d,2),f=m[0],h=m[1],!0!==(null==(v=null==f||null===(n=f.value)||void 0===n||null===(n=n.data)||void 0===n?void 0:n.data)?void 0:v.offline)){t.next=2;break}return e.$router.replace(Object(p.a)(null==v?void 0:v.firstCategory,null==v?void 0:v.secondCategory)),t.abrupt("return");case 2:if(v){t.next=3;break}return t.abrupt("return");case 3:v.contentList=(v.contentList||[]).filter(function(e){if("img"!==e.label)return!0;try{var t=JSON.parse(e.content);return t&&"object"===Object(a.a)(t)&&t.url}catch(e){return!1}}),v.contentList=$(v.contentList),b=(null==h||null===(i=h.value)||void 0===i||null===(i=i.data)||void 0===i?void 0:i.data)||[],_="A"===((null===(r=e.$store.state.abTest)||void 0===r?void 0:r.abRAIArticle)||"A")?0:1,y=(null==b||null===(o=b[0])||void 0===o||null===(o=o.resourceLocations)||void 0===o||null===(o=o[0])||void 0===o||null===(o=o.resourceContent)||void 0===o||null===(o=o.list)||void 0===o?void 0:o[_])||{},e.resourceData=y,w=(null==b||null===(c=b[1])||void 0===c||null===(c=c.resourceLocations)||void 0===c||null===(c=c[0])||void 0===c||null===(c=c.resourceContent)||void 0===c?void 0:c.list)||[],v.contentList.length>0&&w.length>0&&(C=JSON.parse(v.adInfo||"[]")||[],v.contentList=N(v.contentList,w,C)),L(v.contentList),e.pageContent=v,e.matchId=v.matchI
1d||0,e.modelList=v.modelList||[],e.includeHotWord=v.includeHotWord||!1,t.next=5;break;case 4:t.prev=4,t.catch(0);case 5:case"end":return t.stop()}},t,null,[[0,4]])}))()},buildAdid:function(e){return Object(d.b)(this.articleAdidPrefix,e,this.bucketSuffix)},getBtnType:function(e){return Object(d.e)(this.pageContent.contentList||[],e)},appendAdidToUrl:function(e,t){return Object(d.a)(e,t)},goDetail:function(e,t){Object(v.c)("/hs_global_web.ai_soft_article.resource_link_click","type=".concat(e,"&adid=").concat(t))},scrollToSection:function(e){var t=this.$refs.sections[e];t&&(t.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"}),this.activeIndex=e)},handleScroll:function(){var e=this,t=this.$refs.sections,n=this.$refs.mainContent.scrollTop;t.forEach(function(t,i){var a=t.offsetTop,s=t.offsetHeight;n>=a-50&&n<a+s&&(e.activeIndex=i)})},onShare:function(){this.shareModal.show=!0},observerContentCard:function(){var e=this;if(!this.observer&&this.$refs.contentCard){this.observer=new IntersectionObserver(function(t){t.forEach(function(t){clearTimeout(e._topCardTimer),e._topCardTimer=setTimeout(function(){t.isIntersecting?e.showTopCard=!1:t.target.getBoundingClientRect().top>window.innerHeight/2&&(e.showTopCard=!0)},300)})},{root:null,rootMargin:"0px",threshold:.5}),this.observer.observe(this.$refs.contentCard)}},isFirstImage:function(e){return(this.pageContent.contentList||[]).findIndex(function(e){return"img"===e.label})===e},onImageLoad:function(e){this.$set(this.imageLoaded,e,!0)},parseJsonSection:function(e){if(!e)return{};if("object"===Object(a.a)(e))return e;try{var t=JSON.parse(e);return t&&"object"===Object(a.a)(t)?t:{}}catch(e){return{}}},parseContent:function(e){if(5===this.articleType)return(this.poolModelList||[]).filter(function(e){return 1===e.status});if("string"==typeof e)try{return JSON.parse(e)}catch(e){return{}}return e||{}},injectAdidToLinks:function(e){return Object(d.f)(e,this.buildAdid("lnk"))},hasBlockContent:function(e){return!!e&&/^<(ul|ol|div|table|blockquote|dl|figure|hr|pre|p|h[1-6])\b/i.test(e.trim())},isTagBalanced:function(e){if(!e||"string"!=typeof e)return!0;return["p","div","ul","ol","li","table","blockquote","figure"].every(function(t){return(e.match(new RegExp("<".concat(t,"\\b[^>]*>"),"gi"))||[]).length===(e.match(new RegExp("</".concat(t,">"),"gi"))||[]).length})},resizeImg:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:800;return Object(T.d)(e,t)}}}},3223:function(e,t,n){"use strict";var i=n(7),a=(n(38),n(73),n(22),n(62),n(30),n(3221)),s=n(150),r=n(51),o={name:"AuthorProfileCard",mixins:[s.a],data:function(){return{localIsFollowed:this.isFollowed}},watch:{isFollowed:function(e){this.localIsFollowed=e}},props:{mode:{type:String,default:"popup",validator:function(e){return["popup","section"].includes(e)}},authorId:{type:[String,Number],default:""},homestylerId:{type:[String,Number],default:""},authorName:{type:String,default:""},avatar:{type:String,default:""},followerCount:{type:[String,Number],default:"0"},description:{type:String,default:""},roleLabel:{type:String,default:""},isSelf:{type:Boolean,default:!1},isFollowed:{type:Boolean,default:!1},onConfirmVisibleChange:{type:Function,default:null}},computed:{resizedAvatar:function(){return this.avatar?this.avatar===this.defaultAvatar?this.avatar:Object(r.d)(this.avatar,84):""},baseUrl:function(){var e;return null===(e=this.$store)||void 0===e||null===(e=e.state)||void 0===e||e.locale,"https://www.homestyler.com"},followBtnAuthorInfo:function(){return{id:this.authorId,isFollowed:this.localIsFollowed,caseId:"",firstName:this.authorName||"",lastName:"",bizType:""}},store:function(){var e;return{locale:(null===(e=this.$store)||void 0===e||null===(e=e.state)||void 0===e?void 0:e.locale)||"en_US"}}},methods:{getLocalContent:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.$t(e,t)},handleStatusChange:function(e,t){this.localIsFollowed="follow"===e,this.$emit("statusChange",e,t)}}},c=o,l=(n(4237),n(18)),u=Object(l.a)(c,function(){var e=this,t=e._self._c;return t("div",{class:["author-profile-card","author-profile-card--".concat(e.mode)]},["section"===e.mode?[t("div",{staticClass:"author-profile-card__section-header"},[t("div",{staticClass:"author-profile-card__section-left"},[e.homestylerId?t("a",{staticClass:"author-profile-card__avatar-link",attrs:{href:"".concat(e.baseUrl,"/").concat(e.homestylerId),target:"_blank",rel:"noopener"}},[e.avatar?t("img",{staticClass:"author-profile-card__avatar",attrs:{src:e.resizedAvatar,alt:e.authorName,width:"42",height:"42"}}
1):e._e()]):e.avatar?t("img",{staticClass:"author-profile-card__avatar",attrs:{src:e.resizedAvatar,alt:e.authorName,width:"42",height:"42"}}):e._e(),e._v(" "),t("div",{staticClass:"author-profile-card__section-info"},[t("div",{staticClass:"author-profile-card__name-row"},[e.homestylerId?t("a",{staticClass:"author-profile-card__name-link",attrs:{href:"".concat(e.baseUrl,"/").concat(e.homestylerId),target:"_blank",rel:"noopener"}},[t("span",{staticClass:"author-profile-card__name"},[e._v(e._s(e.authorName))])]):t("span",{staticClass:"author-profile-card__name"},[e._v(e._s(e.authorName))]),e._v(" "),e.roleLabel?t("span",{staticClass:"author-profile-card__role-tag"},[e._v("\n              "+e._s(e.roleLabel)+"\n            ")]):e._e()]),e._v(" "),t("div",{staticClass:"author-profile-card__followers"},[t("span",{staticClass:"author-profile-card__followers-count"},[e._v(e._s(e.followerCount))]),e._v(" "),t("span",{staticClass:"author-profile-card__followers-label"},[e._v(e._s(e.$t("comment.followers")))])])])]),e._v(" "),t("FollowBtnReact",{attrs:{authorInfo:e.followBtnAuthorInfo,statusChange:e.handleStatusChange,store:e.store,getLocalContent:e.getLocalContent,onConfirmVisibleChange:e.onConfirmVisibleChange,pageName:"article_detail"}})],1),e._v(" "),e.description?t("div",{staticClass:"author-profile-card__description"},[e._v("\n      "+e._s(e.description)+"\n    ")]):e._e()]:[t("div",{staticClass:"author-profile-card__header"},[e.homestylerId?t("a",{staticClass:"author-profile-card__avatar-link",attrs:{href:"".concat(e.baseUrl,"/").concat(e.homestylerId),target:"_blank",rel:"noopener"}},[e.avatar?t("img",{staticClass:"author-profile-card__avatar",attrs:{src:e.resizedAvatar,alt:e.authorName,width:"42",height:"42"}}):e._e()]):e.avatar?t("img",{staticClass:"author-profile-card__avatar",attrs:{src:e.resizedAvatar,alt:e.authorName,width:"42",height:"42"}}):e._e(),e._v(" "),t("FollowBtnReact",{attrs:{authorInfo:e.followBtnAuthorInfo,statusChange:e.handleStatusChange,store:e.store,getLocalContent:e.getLocalContent,onConfirmVisibleChange:e.onConfirmVisibleChange,pageName:"article_detail"}})],1),e._v(" "),t("div",{staticClass:"author-profile-card__name-row"},[e.homestylerId?t("a",{staticClass:"author-profile-card__name-link",attrs:{href:"".concat(e.baseUrl,"/").concat(e.homestylerId),target:"_blank",rel:"noopener"}},[t("span",{staticClass:"author-profile-card__name"},[e._v(e._s(e.authorName))])]):t("span",{staticClass:"author-profile-card__name"},[e._v(e._s(e.authorName))]),e._v(" "),e.roleLabel?t("span",{staticClass:"author-profile-card__role-tag"},[e._v("\n        "+e._s(e.roleLabel)+"\n      ")]):e._e()]),e._v(" "),t("div",{staticClass:"author-profile-card__followers"},[t("span",{staticClass:"author-profile-card__followers-count"},[e._v(e._s(e.followerCount))]),e._v(" "),t("span",{staticClass:"author-profile-card__followers-label"},[e._v(e._s(e.$t("comment.followers")))])]),e._v(" "),e.description?t("div",{staticClass:"author-profile-card__description"},[e._v("\n      "+e._s(e.description)+"\n    ")]):e._e()]],2)},[],!1,null,"2b3ca23a",null).exports,d=(n(252),{name:"ArticleResourceBanner",props:{banner:{type:Object,default:function(){return{}}},link:{type:String,default:""}},computed:{bannerLink:function(){return this.link||this.banner.buttonUrl||"/"}},methods:{resizeImg:function(e){return Object(r.d)(e,640)},handleClick:function(){this.$emit("bannerClick",this.banner)}}}),p=(n(4238),Object(l.a)(d,function(){var e=this,t=e._self._c;return t("div",[e.banner.image?t("a",{staticClass:"article-resource-banner",attrs:{href:e.bannerLink,target:"_blank"},on:{click:e.handleClick}},[t("img",{staticClass:"banner-cover",attrs:{src:e.resizeImg(e.banner.image),alt:e.banner.title||""}}),e._v(" "),t("div",{staticClass:"banner-info"},[e.banner.title?t("h3",{staticClass:"banner-title"},[e._v(e._s(e.banner.title))]):e._e(),e._v(" "),e.banner.subTitle?t("p",{staticClass:"banner-subtitle"},[e._v(e._s(e.banner.subTitle))]):e._e()]),e._v(" "),e.banner.buttonText?t("span",{staticClass:"banner-button"},[e._v(e._s(e.banner.buttonText))]):e._e()]):e._e()])}
1,[],!1,null,"615a1c68",null).exports),m={name:"ArticleActionButton",props:{config:{type:Object,default:function(){return{}}},link:{type:String,default:""}},computed:{buttonLink:function(){return this.link||this.config.buttonUrl||"/"},wrapStyle:function(){return{justifyContent:{left:"flex-start",center:"center",right:"flex-end"}[this.config.align]||"center"}},buttonStyle:function(){return{backgroundColor:this.config.bgColor||"#1c1c1c",color:this.config.textColor||"#ffffff"}}},methods:{handleClick:function(){this.$emit("buttonClick",this.config)}}},f=(n(4239),Object(l.a)(m,function(){var e=this,t=e._self._c;return t("div",[e.config.buttonText?t("div",{staticClass:"article-action-button",style:e.wrapStyle},[t("a",{staticClass:"action-button",style:e.buttonStyle,attrs:{href:e.buttonLink,target:"_blank"},on:{click:e.handleClick}},[e._v("\n      "+e._s(e.config.buttonText)+"\n    ")])]):e._e()])},[],!1,null,"29a00b9a",null).exports),h=(n(15),{name:"ArticleModelPackList",props:{config:{type:Object,default:function(){return{}}},buildLink:{type:Function,default:null}},computed:{items:function(){return(this.config.list||[]).filter(function(e){return e&&e.image})},columns:function(){return 1===Number(this.config.columns)?1:3}},methods:{isModelPool:function(e){return"modelDetail"===e.assetType},resizeImg:function(e){return Object(r.d)(e,1===this.columns?640:400)},itemLink:function(e){var t=e.buttonUrl||"/";return this.buildLink?this.buildLink(t):t},handleClick:function(e){this.$emit("packClick",e)}}}),g=(n(4240),Object(l.a)(h,function(){var e=this,t=e._self._c;return t("div",[e.items.length?t("div",{staticClass:"article-asset-list",class:"cols-".concat(e.columns)},e._l(e.items,function(n,i){return t("a",{key:"asset-"+i,staticClass:"asset-card",class:e.isModelPool(n)?"asset-card--pool":"asset-card--banner",attrs:{href:e.itemLink(n),target:"_blank"},on:{click:function(t){return e.handleClick(n)}}},[t("img",{staticClass:"asset-cover",attrs:{src:e.resizeImg(n.image),alt:n.title||""}}),e._v(" "),t("div",{staticClass:"asset-info"},[n.title?t("h3",{staticClass:"asset-title"},[e._v(e._s(n.title))]):e._e(),e._v(" "),n.subTitle?t("p",{staticClass:"asset-subtitle"},[e._v(e._s(n.subTitle))]):e._e()]),e._v(" "),n.buttonText&&!e.isModelPool(n)?t("span",{staticClass:"asset-button"},[e._v("\n        "+e._s(n.buttonText)+"\n      ")]):e._e()])}),0):e._e()])},[],!1,null,"42de72d2",null).exports),v={CONTENT_EDIT:"author.role.contentEdit",DESIGN_EXPORT:"author.role.designExpert",PRODUCT_OPERATION:"author.role.productOperation",PRODUCT_MANAGER:"author.role.productManager"},b=n(12),_={name:"ArticleDetail",mixins:[a.a,s.a],components:{AuthorProfileCard:u,ArticleResourceBanner:p,ArticleActionButton:f,ArticleModelPackList:g},data:function(){return{showAuthorCard:!1,authorCardTimer:null,authorFollowed:!1,authorFollowerCount:"0",confirmDialogVisible:!1}},computed:{authorAvatarUrl:function(){var e=this.pageContent.authorAvatar;return e?this.resizeImg(e,52):this.defaultAvatar},authorRoleLabel:function(){var e=(this.pageContent.userTags||[]).find(function(e){return v[e]});return e?this.$t(v[e]):""}},mounted:function(){this.fetchAuthorSocialInfo()},methods:{resolveSectionTag:function(e){if(null==e||!e.content)return"div";if(this.hasBlockContent(e.content))return"div";if(!this.isTagBalanced(e.content))return"div";return["p","h1","h3","h4","h5","h6","span","div","ul","ol","li","blockquote","figure","figcaption","pre","table","strong","em","small"].includes(e.label)?e.label:"div"},onAuthorEnter:function(){clearTimeout(this.authorCardTimer),this.showAuthorCard=!0},onAuthorLeave:function(){var e=this;this.confirmDialogVisible||(this.authorCardTimer=setTimeout(function(){e.showAuthorCard=!1},200))},onCardEnter:function(){clearTimeout(this.authorCardTimer)},onCardLeave:function(){var e=this;this.confirmDialogVisible||(this.authorCardTimer=setTimeout(function(){e.showAuthorCard=!1},200))},onConfirmVisibleChange:function(e){var t=this;this.confirmDialogVisible=e,e||(this.authorCardTimer=setTimeout(function(){t.showAuthorCard=!1},200))},onFollowStatusChange:function(e){this.authorFollowed="follow"===e;var t="follow"===e?1:-1,n=Math.max(0,Number(this.authorFollowerCount||0)+t);this.authorFollowerCount=String(n)},fetchAuthorSocialInfo:function(){var e=this;return Object(i.a)(regeneratorRuntime.mark(function t(){var n,i;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.pageContent.authorId){t.next=1;break}return t.abrupt("return");case 1:return t.prev=1,t.next=2,b.a.mobileApi.getUserProfile({data:{userId:n,clientInfo:JSON.stringify({platform:"web"})}});case 2:(i=t.sent)&&i.ret&&i.ret[0].includes("SUCCESS")&&(e.authorFollowerCount=i.data.followersCount,e.authorFollowed=i.data.isFollowing),t.next=4;break;case 3:t.prev=3,t.catch(1);case 4:case"end":return t.stop()}},t,null,[[1,3]])}
1))()}}},y=(n(4241),Object(l.a)(_,function(){var e,t,n=this,i=n._self._c;return i("div",{staticClass:"project-container"},[i("ShareModal",{attrs:{show:n.shareModal.show,shareCfg:n.shareModal.config,showPost:n.shareModal.showPost},on:{"update:show":function(e){return n.$set(n.shareModal,"show",e)}}}),n._v(" "),i("CategoryCrumbs",{attrs:{firstCategory:n.pageContent.firstCategory,secondCategory:n.pageContent.secondCategory,showActive:!1,spbName:"article_detail_page"}}),n._v(" "),i("div",{staticClass:"header"},[null!==(e=n.pageContent.imgInfo)&&void 0!==e&&null!==(e=e[0])&&void 0!==e&&e.imgUrl?i("div",{staticClass:"header-image"},[i("img",{attrs:{src:n.imgUrl,alt:null===(t=n.pageContent.imgInfo[0])||void 0===t?void 0:t.alt}})]):n._e(),n._v(" "),i("div",{staticClass:"header-content"},[i("h1",{staticClass:"project-title"},[n._v("\n        "+n._s(n.pageContent.title)+"\n      ")]),n._v(" "),i("div",{staticClass:"author-info-share-button"},[i("div",{staticClass:"author-info"},[n.pageContent.authorName?i("div",{staticClass:"video-author",on:{mouseenter:n.onAuthorEnter,mouseleave:n.onAuthorLeave}},[n.pageContent.authorHomestylerId?i("a",{staticClass:"video-author__link",attrs:{href:"".concat(n.baseUrl,"/").concat(n.pageContent.authorHomestylerId),target:"_blank",rel:"noopener"}},[i("img",{staticClass:"video-author__avatar",attrs:{src:n.authorAvatarUrl,alt:n.pageContent.authorName,width:"24",height:"24"}}),n._v(" "),i("span",{staticClass:"video-author__name"},[n._v(n._s(n.pageContent.authorName))])]):[i("img",{staticClass:"video-author__avatar",attrs:{src:n.authorAvatarUrl,alt:n.pageContent.authorName,width:"24",height:"24"}}),n._v(" "),i("span",{staticClass:"video-author__name"},[n._v(n._s(n.pageContent.authorName))])],n._v(" "),n.authorRoleLabel?i("span",{staticClass:"video-author__role"},[n._v(n._s(n.authorRoleLabel))]):n._e(),n._v(" "),n.showAuthorCard?i("AuthorProfileCard",{staticClass:"author-profile-card-popup",attrs:{authorId:n.pageContent.authorId,homestylerId:n.pageContent.authorHomestylerId,authorName:n.pageContent.authorName,avatar:n.pageContent.authorAvatar||n.defaultAvatar,description:n.pageContent.authorDescription,roleLabel:n.authorRoleLabel,followerCount:n.authorFollowerCount,isSelf:!1,isFollowed:n.authorFollowed,onConfirmVisibleChange:n.onConfirmVisibleChange},on:{statusChange:n.onFollowStatusChange},nativeOn:{mouseenter:function(e){return n.onCardEnter.apply(null,arguments)},mouseleave:function(e){return n.onCardLeave.apply(null,arguments)}}}):n._e()],2):n._e(),n._v(" "),i("div",{staticClass:"date"},[n._v("\n            "+n._s(n.pageContent.time)+"\n          ")])]),n._v(" "),i("div",{staticClass:"article-share",on:{click:n.onShare}},[i("i",{staticClass:"iconfont icon_share"})])])])]),n._v(" "),n.resourceData.titleMdsKeyValue&&n.showTopCard?i("div",{staticClass:"contents-card",class:{"contents-card-top":!n.isMobile}},[i("img",{staticClass:"bg_img",attrs:{src:n.isMobile?n.advertBg[1]:n.advertBg[0]}}),n._v(" "),i("div",{staticClass:"contents-pos_wrap"},[i("div",{staticClass:"contents-wrap"},[i("h2",{staticClass:"title"},[n._v("\n          "+n._s(n.$t(n.resourceData.titleMdsKeyValue))+"\n        ")]),n._v(" "),i("p",{staticClass:"description"},[n._v("\n          "+n._s(n.$t(n.resourceData.contentMdsKeyValue))+"\n        ")])]),n._v(" "),i("a",{staticClass:"go-button",attrs:{href:n.appendAdidToUrl(n.resourceData.linkUrlMdsKey,n.buildAdid("hdr")),target:"_blank"},on:{click:function(e){n.goDetail("hdr",n.buildAdid("hdr"))}}},[i("div",{staticClass:"go-button-text"},[n._v(n._s(n.$t(n.resourceData.linkNameMdsKeyValue)))]),n._v(" "),i("i",{staticClass:"iconfont icon-arrow"})])])]):n._e(),n._v(" "),i("div",{staticClass:"content-wrapper"},[i("div",{staticClass:"table-of-contents"},[i("div",{staticClass:"catalog-list"},[i("div",{staticClass:"toc-items"},n._l(n.tocItems,function(e,t){return i("div",{key:t,staticClass:"toc-item",class:{active:n.activeIndex===t},on:{click:function(e){return n.scrollToSection(t)}}},[n._v("\n            "+n._s(e.content)+"\n          ")])}),0),n._v(" "),n.resourceData.titleMdsKeyValue?i("div",{ref:"contentCard",staticClass:"contents-card"},[i("img",{staticClass:"bg_img",attrs:{src:n.advertBg[1]}}),n._v(" "),i("div",{staticClass:"contents-pos_wrap"},[i("div",{staticClass:"contents-wrap"},[i("h2",{staticClass:"title"},[n._v("\n                "+n._s(n.$t(n.resourceData.titleMdsKeyValue))+"\n              ")]),n._v(" "),i("p",{staticClass:"description"},[n._v("\n                "+n._s(n.$t(n.resourceData.contentMdsKeyValue))+"\n              ")])]),n._v(" "),i("a",{staticClass:"go-button",attrs:{href:n.appendAdidToUrl(n.resourceData.linkUrlMdsKey,n.buildAdid("lft")),target:"_blank"},on:{click:function(e){n.goDetail("lft",n.buildAdid("lft"))}}},[i("div",{staticClass:"go-button-text"},[n._v(n._s(n.$t(n.resourceData.linkNameMdsKeyValue)))]),n._v(" "),i("i",{staticClass:"iconfont icon-arrow"})])])]):n._e()])]),n._v(" "),i("div",{ref:"mainContent",staticClass:"main-content",class:{"main-content--product":4===n.pageContent.type}},[n._l(n.pageContent.contentList||[],function(e,t){var a,s;return["h2"===e.label?i(e.label,{key:"h-"+t,ref:"sections",refInFor:!0,tag:"component",staticClass:"section-title",attrs:{id:"section-".concat(t)},domProps:{innerHTML:n._s(e.content)}}):"img"===e.label?i("a",{key:"img-"+t,attrs:{href:n.appendAdidToUrl(n.parseContent(e.content).detailUrl,n.buildAdid("pic")),target:"_blank"}},[i("div",{staticClass:"section-image-wrapper"},[n.imageLoaded[t]?n._e():i("div",{staticClass:"section-image-placeholder"},[i("div",{staticClass:"placeholder-shimmer"})]),n._v(" "),i("img",{staticClass:"section-image-backdrop",attrs:{src:n.resizeImg(n.parseContent(e.content).url,320),alt:"","aria-hidden":"true",loading:"lazy",decoding:"async"}}),n._v(" "),n.isFirstImage(t)?i("img",{key:"img-eager-"+t,staticClass:"section-image",attrs:{src:n.resizeImg(n.parseContent(e.content).url,1200),alt:n.parseContent(e.content).alt||"",decoding:"async",fetchpriority:"high"},on:{load:function(e){return n.onImageLoad(t)},error:function(e){return n.onImageLoad(t)},click:function(t){n.goDetail(n.parseContent(e.content).id)}}}):i("img",{key:"img-lazy-"+t,staticClass:"section-image",attrs:{src:n.resizeImg(n.parseContent(e.content).url,1200),alt:n.parseContent(e.content).alt||"",loading:"lazy",decoding:"async"},on:{load:function(e){return n.onImageLoad(t)},error:function(e){return n.onImageLoad(t)},click:function(t){n.goDetail(n.parseContent(e.content).id)}}})])]):"resourceView"===e.label?i("ArticleResourceBanner",{key:"rv-"+t,attrs:{banner:n.parseJsonSection(e.content),link:n.appendAdidToUrl(n.parseJsonSection(e.content).buttonUrl,n.buildAdid("res"))},on:{bannerClick:function(e){n.goDetail("res",n.buildAdid("res"))}}}):"button"===e.label?i("ArticleActionButton",{key:"btn-"+t,attrs:{config:n.parseJsonSection(e.content),link:n.appendAdidToUrl(n.parseJsonSection(e.content).buttonUrl,n.buildAdid("btn"))},on:{buttonClick:function(e){n.goDetail("btn",n.buildAdid("btn"))}}}):"modelPack"===e.label?i("ArticleModelPackList",{key:"mp-"+t,attrs:{config:n.parseJsonSection(e.content),buildLink:function(e){return n.appendAdidToUrl(e,n.buildAdid("pack"))}},on:{packClick:function(e){n.goDetail("pack",n.buildAdid("pack"))}}}):"a"===e.label&&7!==n.pageContent.type?i("a",{key:"a-"+t,staticClass:"section-link",attrs:{href:n.appendAdidToUrl(e.linkUrlMdsKey,n.buildAdid(n.getBtnType(t))),target:"_blank"},on:{click:function(e){n.goDetail(n.getBtnType(t),n.buildAdid(n.getBtnType(t)))}}},[n._v("\n          "+n._s(e.linkNameMdsKeyValue)+" "),i("i",{staticClass:"iconfont icon-arrow"})]):"productList"===e.label||"models"===e.label?i("div",{key:"pl-"+t,staticClass:"product-list-grid"},n._l(n.parseContent(e.content),function(t){return i("ModelCard",{key:t.id,attrs:{cardData:t,showPackage:!1,customClass:"article_detail_model_card",detailMode:"page",showFov:!1,isModel:"models"===e.label,spmName:"article_detail_page",adid:n.buildAdid("pro")}})}),1):"product"===e.label?i("div",{key:"pd-"+t,staticClass:"product-card-list"},n._l(n.parseContent(e.content),function(e){return i("ProductCard",{key:e.id,attrs:{cardData:e,adid:n.buildAdid("pro"),spmName:"article_detail_page"}})}),1):"br"===e.label?i("br",{key:"br-"+t}):e.content?i(n.resolveSectionTag(e),{key:"c-"+t,tag:"component",staticClass:"section-content",domProps:{innerHTML:n._s(n.injectAdidToLinks(e.content))}}):i("div",{key:"c-"+t,staticClass:"section-content"}),n._v(" "),n.showArticleResourceView&&-1!==n.secondParagraphIndex&&t===n.secondParagraphIndex?i("ResourceViewWrap",{key:"rv-"+t,attrs:{postDetail:{id:n.pageContent.sourceId},openPanel:function(){},adid:n.articleAdidPrefix,customClass:"article_resource_view"}}):n._e(),n._v(" "),t===(null===(a=n.pageContent.contentList)||void 0===a?void 0:a.length)-2&&(null===(s=n.modelList)||void 0===s?void 0:s.length)>
10?i("div",{key:"m-"+t,staticClass:"bottom-space"},n._l(n.modelList,function(e){return i("ModelCard",{key:e.id,attrs:{cardData:e,showPackage:!1,customClass:"article_detail_model_card",detailMode:"page",showFov:!1,spmName:"article_detail_page",adid:n.buildAdid("pro")}})}),1):n._e()]}),n._v(" "),n.showArticleResourceView&&-1===n.secondParagraphIndex?i("ResourceViewWrap",{key:"rv-end",attrs:{postDetail:{id:n.pageContent.sourceId},openPanel:function(){},adid:n.articleAdidPrefix,customClass:"article_resource_view"}}):n._e(),n._v(" "),i("a",{staticClass:"go-button",attrs:{href:n.appendAdidToUrl(n.resourceData.linkUrlMdsKey||n.$global.floorplanUrl,n.buildAdid("fre")),target:"_blank"},on:{click:function(e){n.goDetail("fre",n.buildAdid("fre"))}}},[n._v("\n        "+n._s(n.$t(n.resourceData.linkNameMdsKeyValue||"homeNew.banner.startBtn"))+"\n        "),i("i",{staticClass:"iconfont icon-arrow"})]),n._v(" "),n.pageContent.authorName?i("AuthorProfileCard",{attrs:{mode:"section",authorId:n.pageContent.authorId||"",homestylerId:n.pageContent.authorHomestylerId,authorName:n.pageContent.authorName,avatar:n.pageContent.authorAvatar||n.defaultAvatar,description:n.pageContent.authorDescription,roleLabel:n.authorRoleLabel,followerCount:n.authorFollowerCount,isSelf:!1,isFollowed:n.authorFollowed},on:{statusChange:n.onFollowStatusChange}}):n._e()],2)]),n._v(" "),i("PostDetailRecommend",{attrs:{matchId:n.matchId,initRecommendList:n.recommendList,customClass:"ai_article_recommend ".concat(n.isMobile?"mobile_wrap":""),spmName:"ai_article_detail_".concat(n.articleAdidPrefix)}}),n._v(" "),i("TopBtn")],1)},[],!1,null,"58a26a5c",null));t.a=y.exports},3224:function(e,t,n){"use strict";n(23),n(19),n(15),n(31),n(32);var i=n(1),a=(n(65),n(21)),s=n(14),r=n(24),o={name:"OriginalImageContainer",props:{type:{type:String,default:"ai_material"},extendData:{type:Object,default:function(){return{}}},originalImageUrl:{type:String,default:""}},data:function(){return{collapseOrignalImg:!1}},methods:{handleCollapse:function(){this.collapseOrignalImg=!this.collapseOrignalImg}}},c=(n(3857),n(18)),l=Object(c.a)(o,function(){var e=this,t=e._self._c;return t("div",{class:{"orignal-img-container":!0,"collapse-orignal-img":e.collapseOrignalImg}},[t("div",{staticClass:"header",on:{click:e.handleCollapse}},[t("div",{staticClass:"text"},[e._v("\n      "+e._s(e.$t("ai_planner"===e.type?"ai_planner_generation_details":"ai.modeler.original"))+"\n    ")]),e._v(" "),t("IconfontView",{attrs:{customClass:"arrow-icon",customStyle:{fontSize:"20px",color:"#000"},showType:"xiaojiantou"}})],1),e._v(" "),"ai_planner"===e.type?t("div",{staticClass:"orignal_text"},[t("div",{staticClass:"orignal_text_section"},[t("div",{staticClass:"orignal_text_label"},[e._v("\n        "+e._s(e.$t("ai_planner_setting"))+":\n      ")]),e._v(" "),t("div",{staticClass:"orignal_text_value"},[t("div",{staticClass:"setting_item"},[t("span",{staticClass:"label"},[e._v("\n            "+e._s("".concat(e.$t("ai_planner_bedroom"),": "))+"\n          ")]),e._v(" "),t("span",{staticClass:"value"},[e._v(e._s(e.extendData.bedrooms||"-"))])]),e._v(" "),t("div",{staticClass:"setting_item"},[t("span",{staticClass:"label"},[e._v("\n            "+e._s("".concat(e.$t("ai_planner_bathroom"),": "))+"\n          ")]),e._v(" "),t("span",{staticClass:"value"},[e._v(e._s(e.extendData.bathrooms||"-"))])]),e._v(" "),t("div",{staticClass:"setting_item"},[t("span",{staticClass:"label"},[e._v("\n            "+e._s("".concat(e.$t("ai_planner_kitchen"),": "))+"\n          ")]),e._v(" "),t("span",{staticClass:"value"},[e._v("\n            "+e._s("open"===e.extendData.kitchenType?e.$t("ai_planner_kitchen_open"):e.$t("ai_planner_kitchen_closed"))+"\n          ")])])])]),e._v(" "),e.extendData.extras?t("div",{staticClass:"orignal_text_section"},[t("div",{staticClass:"orignal_text_label"},[e._v("\n        "+e._s(e.$t("ai_planner_room_type"))+":\n      ")]),e._v(" "),t("div",{staticClass:"orignal_text_value"},[e.extendData.extras?t("div",{staticClass:"setting_item"},[e._v("\n          "+e._s(e.extendData.extrasMds||e.extendData.extras)+"\n        ")]):e._e(
1)])]):e._e(),e._v(" "),t("div",{staticClass:"orignal_text_section"},[t("div",{staticClass:"orignal_text_label"},[e._v("\n        "+e._s(e.$t("ai_planner_floor_area"))+":\n      ")]),e._v(" "),t("div",{staticClass:"orignal_text_value"},[e.extendData.area||e.extendData.grossArea?t("span",{staticClass:"setting_item"},[e._v(e._s(e.extendData.area||e.extendData.grossArea))]):e._e()])])]):t("img",{staticClass:"orignal_img",attrs:{src:"".concat(e.originalImageUrl,"?x-oss-process=image/resize,w_200")},on:{click:function(t){return e.$emit("showLargeOriginalImage")}}})])},[],!1,null,"3dd5c142",null),u=l.exports;installComponents(l,{IconfontView:n(129).default});var d=n(3209),p=n(3207),m=n(3216),f=n(51),h=n(3206);function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach(function(t){Object(i.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var b={name:"Viewer3D",filters:{ossImage:f.c},components:{MemberUpgrade:d.default,OperateBtn:p.default,RatingBox:m.default,OriginalImageContainer:u},mixins:[h.a],props:{fromSource:{type:String,default:"web"},canDownload:{type:Boolean,default:!1},data:{type:Object,default:function(){return{}}},showPoster:{type:Boolean,default:!1},showType:{type:String,default:"2d"},type:{type:String,default:"ai_material"},aiGenerateType:{type:String,default:"aipainter"},props3DToolClick:{type:Function,default:void 0},apply3DToolTips:{type:String,default:""},fpButtonLoading:{type:Boolean,default:!1},appShowOpen3D:{type:Boolean,default:!0}},data:function(){return{loading:!0,isSharedInApp:!0,showImageModal:!1,currentLargeImageUrl:"",hideOperateItems:!1}},computed:v(v({},Object(a.d)(["locale","userInfo","isMobile","isHomestylerApp","signIn"])),{},{extendData:function(){return"string"==typeof this.data.extend?JSON.parse(this.data.extend):this.data.extend||{}},iframeUrl:function(){var e=this.extendData,t=e.jid,n=e.glbUrl,i=e.postProcessingStatus,a="3d"===this.fromSource?"Viewer3D":"AIView",s=this.extendData.modelStatus||"";return this.isMobile?"".concat(this.$global.h5Share,"/viewer3d?gltf=").concat(n,"&lang=").concat(this.locale):("value-postProcessingStatus-failed"===i&&(s=3),"".concat(this.$global.h5Share,"/preview3dmodel?taskId=").concat(this.data.taskId,"&modelId=").concat(t,"&type=").concat(a,"&lang=").concat(this.locale,"&s=").concat(s,"&aiGenerateType=").concat(this.aiGenerateType))},floorplanText:function(){return this.$t("ai.modeler.floorplanner.button").replace("[",'<strong style="color: #fff;font-family: AlibabaSans-Bold;">').replace("]","</strong>")}}),mounted:function(){var e=this;this.isHomestylerApp&&(this.isSharedInApp=this.getSetShareStateInLS()),window.addEventListener("message",function(t){var n=t.data;"showLargeImg"===n.eType&&(e.hideOperateItems=n.eData)})},methods:{doShareImg:function(){this.$emit("shareImg",this.data),this.isHomestylerApp&&!this.isSharedInApp&&(this.isSharedInApp=this.getSetShareStateInLS(!0))},close:function(){this.$emit("close")},handleLoad:function(){var e=this;this.isMobile?setTimeout(function(){e.loading=!1},1e3):this.loading=!1},handleRatingSubmit:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0]?"ratingOperateFooter":"ratingOperate";this.$refs[e]&&this.$refs[e].handleClose(),this.$emit("queryAllList",!0)},handle3DToolClick:function(){var e=this;if(this.props3DToolClick)this.props3DToolClick(this.data);else if(Object(s.c)("/hs_global_web.".concat(this.type,".floor_planner_clk"),"member_id=".concat(this.userInfo.uid,"&language=").concat(this.locale)),"3d"!==this.showType||this.data.isModelSuccess)if(this.isHomestylerApp){var t=this.$t("ai.modeler.create.design"),n=this.$t("ai.modeler.my.designs");this.callWindVane("WVUIActionSheet","show",{_index:29870260,buttons:[t,n]});var i=function(a){var r=a.param.type,o="",c=0;r===n?(c=2,o="homestyler://m.homestyler.com/index?tab=myProfile&isAiModeler=true"):r===t&&(c=1,o="homestyler://m.homestyler.com/mixEmptyRoom?isAiModeler=true"),Object(s.c)("/hs_global_web.".concat(e.type,".floor_planner_clk"),"source=".concat(e.fromSource,"&type=").concat(c,"&member_id=").concat(e.userInfo.uid,"&language=").concat(e.locale)),o&&(window.location.href=o),document.removeEventListener("wv.actionsheet",i,!1)};document.addEventListener("wv.actionsheet",i,!1)}else{var a="";if("ai_planner"===this.type)a="?actionType=applyAIPlanner&templateId=".concat(this.data.taskId);else a="?actionType=aiMaterial";window.open("".concat(this.$global.floorplanUrl).concat(a),"_blank")}else this.$message.warning(this.$t("ai.material.floorplanner.tips"))},getSetShareStateInLS:function(e){var t="".concat(this.userInfo.uid,"_").concat(this.t
1ype,"_share"),n=Object(r.D)(t,6048e8);return void 0===e?n:(n!==e&&Object(r.Q)(t,e),e)},showLargeImage:function(){this.currentLargeImageUrl=this.data.imageUrl,this.showImageModal=!0},showLargeOriginalImage:function(){this.currentLargeImageUrl=this.data.originalImageUrl,this.showImageModal=!0},hideImageModal:function(){this.showImageModal=!1,this.currentLargeImageUrl=""},handleMaterialSetting:function(){Object(s.c)("/hs_global_web.".concat(this.type,".material_setting_clk"),"member_id=".concat(this.userInfo.uid,"&language=").concat(this.locale)),this.$emit("materialSetting",this.data)}}},_=b,y=(n(3861),n(3862),Object(c.a)(_,function(){var e=this,t=e._self._c;return t("div",{staticClass:"viewer-panel",class:{"viewer-panel-dialog":"3d"!==e.fromSource}},[t("div",{staticClass:"browser-header",on:{contextmenu:function(e){e.preventDefault()}}},[e.hideOperateItems?e._e():t("ul",{staticClass:"browser-header-right"},["ai_material"===e.type?t("li",{staticClass:"browser-operate-item"},[t("OperateBtn",{attrs:{iconType:"hs_caizhishezhi",placement:"bottom"},on:{click:e.handleMaterialSetting}},[e._v("\n          "+e._s(e.$t("ai.material.preview.title")||"材质设置")+"\n        ")])],1):e._e(),e._v(" "),t("li",{staticClass:"browser-operate-item"},[t("OperateBtn",{ref:"ratingOperate",attrs:{iconType:"hs_mian_moxingmanyidu",placement:"bottom",showClose:!0,cacheKey:"HS_aigc_rating"}},[t("RatingBox",{attrs:{bizId:e.data.subTaskId,rating:e.data.score,submitted:e.data.score>0,title:e.$t("ai.modeler.satisfy.ques"),sourceValue:e.data.imageUrl},on:{submit:e.handleRatingSubmit}})],1)],1),e._v(" "),t("li",{staticClass:"browser-operate-item"},[t("OperateBtn",{attrs:{disabled:!e.canDownload,showClose:!e.canDownload,hyalineClose:!0,iconType:"hs_mian_xiazai",memberBenefits:!0,placement:e.canDownload?"bottom":"bottom-end"},on:{click:function(t){return e.$emit("downloadImg",e.data)}}},[e.canDownload?t("span",[e._v(e._s(e.$t("AIGC.dashboard.download")))]):t("MemberUpgrade",{attrs:{showDemo:!1,adaptMobile:!1},on:{upgrade:function(t){return e.$emit("buyMore",{sourcePage:"".concat(e.type,"_imageviewer_download")})}}})],1)],1),e._v(" "),e.signIn||"3d"===e.fromSource?e._e():t("li",{staticClass:"browser-operate-item"},[t("OperateBtn",{attrs:{iconType:"a-22_3dtool_delete",placement:"bottom"},on:{click:function(t){return e.$emit("deleteImg",e.data)}}},[e._v("\n          "+e._s(e.$t("editProject.content.delete"))+"\n        ")])],1),e._v(" "),t("li",{staticClass:"browser-operate-item"},[t("OperateBtn",{attrs:{giftType:!e.isHomestylerApp,iconType:"hs_icon_share",placement:"bottom"},on:{click:function(t){return e.$emit("shareImg",e.data)}}},[e._v("\n          "+e._s(e.$t("editproject.share"))+"\n        ")])],1),e._v(" "),t("li",{staticClass:"browser-operate-item browser-close"},[t("OperateBtn",{attrs:{hideTips:!0,iconType:"xingzhuangjiehe",iconColor:"#FFFFFF"},on:{click:e.close}})],1)])]),e._v(" "),t("div",{staticClass:"browser-footer",on:{contextmenu:function(e){e.preventDefault()}}},[e.isHomestylerApp&&e.showPoster?t("div",{staticClass:"album-fixed-start",on:{click:function(t){return e.$emit("posterCommunity",e.data)}}},[e._v("\n      "+e._s(e.$t("ai.modeler.app.post.community"))+"\n      "),t("i",{staticClass:"iconfont icon-into"})]):e._e(),e._v(" "),e.isHomestylerApp&&e.appShowOpen3D?t("div",{staticClass:"album-fixed-start",on:{click:e.handle3DToolClick}},[e._v("\n      "+e._s(e.apply3DToolTips?e.apply3DToolTips:e.$t("ai.modeler.app.start"))+"\n      "),t("i",{staticClass:"iconfont icon-into"})]):e._e(),e._v(" "),t("ul",{staticClass:"browser-footer-operate"},["ai_material"===e.type?t("li",{staticClass:"browser-operate-item"},[t("OperateBtn",{attrs:{iconType:"hs_caizhishezhi"},on:{click:e.handleMaterialSetting}},[e._v("\n          "+e._s(e.$t("ai.material.preview.title")||"材质设置")+"\n        ")])],1):e._e(),e._v(" "),e.signIn?e._e():t("li",{staticClass:"browser-operate-item"},[t("OperateBtn",{ref:"ratingOperateFooter",attrs:{iconType:"hs_mian_moxingmanyidu",showClose:!0,cacheKey:"HS_aigc_rating"}},[t("RatingBox",{attrs:{bizId:e.data.subTaskId,rating:e.data.score,submitted:e.data.score>0,title:e.$t("ai.modeler.satisfy.ques"),sourceValue:e.data.imageUrl},on:{submit:e.handleRatingSubmit}})],1)],1),e._v(" "),e.signIn?e._e():t("li",{staticClass:"browser-operate-item"},[t("OperateBtn",{attrs:{disabled:!e.canDownload,showClose:!e.canDownload,hyalineClose:!0,iconType:"hs_mian_xiazai",memberBenefits:!0},on:{click:function(t){return e.$emit("downloadImg",e.data)}}},[e.canDownload?t("span",[e._v(e._s(e.$t("AIGC.dashboard.download")))]):t("MemberUpgrade",{attrs:{showDemo:!1,adaptMobile:!1},on:{upgrade:function(t){return e.$emit("buyMore",{sourcePage:"".concat(e.type,"_imageviewer_download")})}}}
1)],1)],1),e._v(" "),e.signIn||"3d"===e.fromSource?e._e():t("li",{staticClass:"browser-operate-item"},[t("OperateBtn",{attrs:{iconType:"a-22_3dtool_delete"},on:{click:function(t){return e.$emit("deleteImg",e.data)}}},[e._v("\n          "+e._s(e.$t("editProject.content.delete"))+"\n        ")])],1),e._v(" "),t("li",{staticClass:"browser-operate-item"},[t("OperateBtn",{attrs:{giftType:!e.isHomestylerApp,redDot:!e.isSharedInApp,iconType:"hs_icon_share"},on:{click:e.doShareImg}},[e._v("\n          "+e._s(e.$t("editproject.share"))+"\n        ")])],1)])]),e._v(" "),"3d"===e.showType?[e.loading?t("div",{staticClass:"loading_container"},[t("img",{staticClass:"loading",attrs:{src:n(1728)}})]):e._e(),e._v(" "),t("iframe",{staticStyle:{width:"100%",height:"100%"},attrs:{id:"viewerIframe",frameborder:"0",src:e.iframeUrl},on:{load:e.handleLoad}})]:[e.isHomestylerApp?e._e():t("OriginalImageContainer",{attrs:{type:e.type,extendData:e.extendData,originalImageUrl:e.data.originalImageUrl},on:{showLargeOriginalImage:e.showLargeOriginalImage}}),e._v(" "),t("img",{staticClass:"viewer_img",attrs:{src:e.data.imageUrl},on:{click:e.showLargeImage}}),e._v(" "),e.isHomestylerApp?e._e():t("div",{staticClass:"model_panel_footer"},[t("div",{staticClass:"model_panel_btn model_panel_btn_start",on:{click:e.handle3DToolClick}},[e.apply3DToolTips?[e._v("\n          "+e._s(e.apply3DToolTips)+"\n        ")]:t("span",{domProps:{innerHTML:e._s(e.floorplanText)}}),e._v(" "),t("IconfontView",{attrs:{customClass:"operate-icon",customStyle:{fontSize:"14px",color:"#FFF"},showType:e.fpButtonLoading?"loading":"icon_arrow"}})],2)])],e._v(" "),e.showImageModal?t("div",{staticClass:"image-modal-overlay",on:{click:e.hideImageModal}},[t("div",{staticClass:"image-modal-container",on:{click:function(e){e.stopPropagation()}}},[t("img",{staticClass:"large-image",attrs:{src:e.currentLargeImageUrl},on:{click:e.hideImageModal}})]),e._v(" "),t("li",{staticClass:"browser-operate-item browser-close"},[t("OperateBtn",{attrs:{hideTips:!0,iconType:"xingzhuangjiehe",iconColor:"#FFFFFF"},on:{click:e.hideImageModal}})],1)]):e._e()],2)},[],!1,null,"fdbb5b0a",null));t.a=y.exports;installComponents(y,{OperateBtn:n(3207).default,RatingBox:n(3216).default,MemberUpgrade:n(3209).default,IconfontView:n(129).default})},3225:function(e,t,n){"use strict";n(19),n(15),n(31),n(32);var i=n(2),a=n(1),s=n(40),r=n(39),o=(n(822),n(44),n(62),n(23),n(162),n(22),n(21)),c=n(14),l=n(141),u=n(3206);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}var p=Object(s.a)(function e(t,n,i){Object(r.a)(this,e);for(var a=window.atob(t),s=new ArrayBuffer(a.length),o=new Uint8Array(s),c=0;c<a.length;c++)o[c]=a.charCodeAt(c);var l=new Blob([s],i),u=new File([l],n,i);u.uid=u.lastModified,this.name=n,this.raw=u,this.size=u.size,this.status="ready",this.uid=u.lastModified,this.url="data:image/png;base64,".concat(t)}),m={name:"Generate",mixins:[l.a,u.a],props:{componentType:{type:[String,Object],required:!0},aigcCount:{type:Number,default:0},aigcCostCount:{type:Number,default:0},freeCostCount:{type:Number,default:0},premiumCostCount:{type:Number,default:0},loaded:{type:Boolean,default:!1}},computed:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach(function(t){Object(a.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},Object(o.d)(["locale","userInfo","signIn","isMobile","isHomestylerApp","isIPad","isAndroid"])),methods:{beforeGenerateClick:function(){if(this.$emit("retryClick"),this.signIn&&!this.isHomestylerApp&&!this.aigcCount)return this.setLoginInfo("login"),!0},buyMore:function(){this.$emit("buyMore")},handleSpmClick:function(e,t,n){var a=[];if(t&&Object.keys(t).length>0)for(var s=0,r=Object.entries(t);s<r.length;s++){var o=Object(i.a)(r[s],2),l=o[0],u=o[1];a.push("".concat(l,"=").concat(u))}var d=a.join("&");Object(c.c)("/hs_global_web.".concat(n||"web",".").concat(e),"member_id=".concat(this.userInfo.uid,"&language=").concat(this.locale,"&").concat(d))},generateSuccessCallback:function(e){this.$emit("updateCount"),this.$emit("aigcIdentify",e)},updateTaskStatusSuccessCallback:function(e){this.$store.commit("SET_TASK_DIALOG_VISIBLE",!0)},messageError:function(e){this.$message({type:"error",message:e,customClass:"ai_modeler_message_error"})},handleIPadAPP:function(){var e=this;return this.callWindVane("WVCamera","takePhoto",{needBase64:!0,type:"0"}).then(function(t){if("string"==typeof t&&(t=JSON.parse(t)),t.base64Data)return new p(t.base64Data,"filename.png",{type:"image/png"}).raw;e.messageError(e.$t("coupon.wrong"))},function(t){t&&t.ret&&["HY_RET_PHOTO_CANCLE","HY_FAILED"].includes(t.ret)||e.messageError(e.$t("coupon.wrong"))})}}},f=m,h=(n(3864),n(3865),n(18)),g=Object(h.a)(f,function(){var e=this,t=e._self._c;return t("div",{staticClass:"content-col ai-material-generate-container"},[t(e.componentType,{tag:"component",attrs:{source:"website",imageUploadHeight:e.isMobile?160:140,hasFetchCount:e.loaded,aigcCostCount:e.aigcCostCount,aigcCount:e.aigcCount,freeCostCount:e.freeCostCount,premiumCostCount:e.premiumCostCount,isMobile:e.isMobile,isHomestylerApp:e.isHomestylerApp,isIPad:e.isIPad,isA
1ndroid:e.isAndroid,hasSignin:!e.signIn,lang:e.locale,parentContainerClass:"ai-material-generate-container",beforeGenerateClick:e.beforeGenerateClick,buyMore:e.buyMore,handleIPadAPP:e.handleIPadAPP,generateSuccessCallback:e.generateSuccessCallback,spmClick:e.handleSpmClick}})],1)},[],!1,null,"48d3059e",null);t.a=g.exports},3226:function(e,t,n){"use strict";n(44),n(88);var i={name:"PricingSort",props:{data:{type:Array,default:function(){return[]}}},data:function(){return{}}},a=(n(4068),n(18)),s=Object(a.a)(i,function(){var e=this,t=e._self._c;return t("ul",e._l(e.data,function(n){return t("li",{key:n.name,class:n.higher&&"sort-higher"},[t("span",[e._v(e._s(e.$t(n.name))+" ")]),e._v(" "),n.tipsType?t("i",{staticClass:"iconfont rendering-icon-tips",on:{mouseover:function(e){n.tipsShow=!0}}}):e._e(),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:n.tipsShow&&n.tipsContent,expression:"item.tipsShow && item.tipsContent"}],staticClass:"rendering-tips",class:{"rendering-tips-img":n.tipsImg,"rendering-tips-top-placement":"top"===n.placement},on:{mouseleave:function(e){n.tipsShow=!1}}},[t("p",{staticClass:"tips-title"},[e._v("\n        "+e._s(e.$t(n.name))+"\n      ")]),e._v(" "),n.tipsImg?t("img",{attrs:{src:n.tipsImg}}
1):e._e(),e._v(" "),"arrText"===n.tipsType?t("div",e._l(e.$t(n.tipsContent).split(","),function(n,i){return t("p",{key:i,domProps:{innerHTML:e._s(n)}})}),0):e._e(),e._v(" "),"text"===n.tipsType?t("p",{style:n.tipsStyle,domProps:{innerHTML:e._s(e.$t(n.tipsContent))}}):e._e(),e._v(" "),"gif"===n.tipsType?t("img",{attrs:{src:""}}):e._e(),e._v(" "),t("i",{staticClass:"iconfont rendering-tips-top",on:{click:function(e){n.tipsShow=!1}}}),e._v(" "),n.jumpUrl?t("a",{staticClass:"jump-url flex-center-center",attrs:{href:n.jumpUrl,target:"_blank"}},[e._v("\n        "+e._s(e.$t("pricing2.viewdetail"))+" "),t("i",{staticClass:"iconfont icon"})]):e._e()])])}),0)},[],!1,null,null,null);t.a=s.exports},3227:function(e,t,n){var i={"./GiftCardSkeleton.vue":[3834,1],"./RatedBadge.vue":[4474,1],"./RoleSwitchSelect.vue":[3250,1],"./SolutionPricing.vue":[4449,1],"./YoutubeVideoFloor.vue":[4475,1],"./banner1.vue":[4476,1],"./banner2.vue":[4477,1],"./banner2Video.vue":[4478,1],"./bannerCompanyProfile.vue":[4479,1],"./bannerInteractive.vue":[4480,1],"./bannerVideo.vue":[4481,1],"./bigImg.vue":[4482,1],"./card.vue":[4483,1],"./cardList.vue":[4484,1],"./carousel.vue":[4485,1],"./companyProfile.vue":[3835,1],"./customButton.vue":[4486,1],"./dataCard.vue":[4487,1],"./estateImgTextCard.vue":[4488,1],"./giftCardList.vue":[4489,1],"./iframe.vue":[4490,1],"./iframeComponent.vue":[3837,1],"./imgTextCard.vue":[4491,1],"./introduce.vue":[4492,1],"./introduceImgLeft.vue":[4493,1],"./introduceImgRight.vue":[4494,1],"./multiImage.vue":[4495,1],"./newImgTextCard.vue":[4496,1],"./newWorksCard.vue":[4497,1],"./personBigCard.vue":[4498,1],"./personCard.vue":[4499,1],"./questionsCard.vue":[4500,1],"./roundImgTextCard.vue":[4501,1],"./socialComments.vue":[4502,1],"./solutionCard.vue":[4503,1],"./sortCard.vue":[4504,1],"./sortIntroduceImgRight.vue":[3838,1],"./summerCamp.vue":[4505,1],"./survery.vue":[4506,1],"./tail.vue":[3836,1],"./title.vue":[3251,1],"./vsCard.vue":[4507,1],"./vsCardCommon.vue":[3839,1],"./vsTable.vue":[4508,1],"./worksCard.vue":[4509,1]};function a(e){if(!n.o(i,e))return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=i[e],a=t[0];return n.e(t[1]).then(function(){return n(a)})}a.keys=function(){return Object.keys(i)},a.id=3227,e.exports=a},3228:function(e,t,n){"use strict";n.d(t,"e",function(){return i}),n.d(t,"c",function(){return a}),n.d(t,"d",function(){return s}),n.d(t,"b",function(){return r}),n.d(t,"a",function(){return o});var i=[{id:"my_design",titleKey:"header.myDesigns",iconType:"a-hs_xian_mydesign",path:"mydesigns"},{id:"my_posts",titleKey:"forum.my.myPosts",iconType:"hs_xian_tiezi",path:"myposts"},{id:"design_services",titleKey:"publish.ugc.store",iconType:"hs_xian_service",path:"designservices"},{id:"my_collects",titleKey:"web_community_mycollection",iconType:"hs_xian_shoucang",path:"mycollects"},{id:"design_like",titleKey:"workspace.designLike",iconType:"hs_xian_dianzan",path:"designlike"},{id:"my_model",titleKey:"header.myModels",iconType:"hs_xian_moxing",path:"mymodels"},{id:"my_ai_results",titleKey:"header.myAIResults",iconType:"hs_xian_ai",path:"myairesults",children:[{id:"ai_planner",titleKey:"workspace.aiPlanner",path:"aiplanner"},{id:"ai_stager",titleKey:"workspace.aiStager",path:"aistager"},{id:"ai_animator",titleKey:"workspace.aiAnimator",path:"aianimator"},{id:"ai_moodboard",titleKey:"workspace.aiMoodboard",path:"aimoodboard"},{id:"ai_modeler",titleKey:"workspace.aiModeler",path:"aimodeler"},{id:"ai_texturer",titleKey:"workspace.aiTexturer",path:"aitexturer"},{id:"ai_painter",titleKey:"workspace.aiPainter",path:"aipainter"}]}
1,{id:"my_subscription",titleKey:"header.mySubscription",iconType:"hs_xian_dingyue_new",path:"mysubscription"}],a=[{id:"my_design",titleKey:"web_community_designs",iconType:"a-hs_xian_mydesign",path:"designs"},{id:"my_posts",titleKey:"web_community_stories",iconType:"hs_xian_tiezi",path:"stories"},{id:"design_services",titleKey:"publish.ugc.store",iconType:"hs_xian_service",path:"designservices"},{id:"my_collects",titleKey:"web_community_collected",iconType:"hs_xian_shoucang",path:"collects"},{id:"design_like",titleKey:"web_community_liked",iconType:"hs_xian_dianzan",path:"likes"}],s={common:"#9B9B9B",selected:"#1c1c1c"},r=[{label:"m.all",title:"my_alldesigns",key:0,spmCode:"alldesign_click",createTitle:"workspace.createnewdesigns"},{label:"mobileDetail.webDesigns",title:"mobileDetail.webDesigns",key:1,spmCode:"webdesign_click",createTitle:"workspace.createnewdesigns"},{label:"mobileDetail.mobileDesigns",title:"mobileDetail.mobileDesigns",key:2,spmCode:"mobiledesign_click",createTitle:"mydesigns.createappdesigns"}],o=[{label:"m.all",key:0,id:null,spmCode:"design_status_all"},{label:"web_community_published",key:1,id:1,spmCode:"design_status_published"},{label:"web_community_draft",key:2,id:0,spmCode:"design_status_draft"}]},3229:function(e,t,n){"use strict";n(23),n(19),n(15),n(31),n(32);var i=n(8),a=n(1),s=n(7),r=(n(38),n(239),n(30),n(22),n(21)),o=n(12),c=n(170),l=n(968),u=n(189);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach(function(t){Object(a.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var m={offset:1,limit:20,total:0,done:!0};t.a={components:{topBtn:l.a,rectLoad:c.a},computed:Object(r.d)(["locale"]),directives:{inview:u.b},data:function(){return{list:[],loading:!1,pagerObj:m,isEmpty:!1,fliterParams:{}}},watch:{locale:function(e){e&&this.dataInit()}},methods:{dataInit:function(){this.pagerObj.offset=0,this.getSearchResult()},handleScorll:function(){var e=this.pagerObj;!this.loading&&e.done&&(this.pagerObj.offset++,this.getSearchResult(this.fliterParams))},getSearchResult:function(){var e=arguments,t=this;return Object(s.a)(regeneratorRuntime.mark(function n(){var a,s,r,c,l,u,d,f;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:for(c in a=e.length>0&&void 0!==e[0]?e[0]:{},t.loading=!0,n.prev=1,s=m.limit,r=t.pagerObj,a)""===a[c]&&delete a[c];return l=p({offset:r.offset*s||0,limit:s,type:t.pageType,q:t.$route.params.keywords||""},a),n.next=2,o.a.search.searchResult({data:l,options:{headers:{lang:t.locale||"en_US"}}});case 2:(u=n.sent)&&u.ret&&u.ret[0].includes("SUCCESS")&&(f=u.data.data&&u.data.data.data||[],0===r.offset&&(t.isEmpty=0===f.length),r.done=0!==f.length,(d=t.list).push.apply(d,Object(i.a)(f))),t.loading=!1,n.next=4;break;case 3:n.prev=3,n.catch(1),t.loading=!1;case 4:case"end":return n.stop()}},n,null,[[1,3]])}))()}}}},3230:function(e,t,n){"use strict";n(252),n(23),n(19),n(15),n(31),n(32);var i=n(7),a=n(1),s=(n(38),n(30),n(22),n(21)),r=n(12),o=n(14);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach(function(t){Object(a.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var u={name:"UserPopup",props:{visible:{type:Boolean,default:!1},aigcCountDetail:{type:Object,default:function(){return{}}}},data:function(){return{resourceData:null,loading:!1}},computed:l(l({},Object(s.d)(["locale","userInfo"])),{},{displayList:function(){return this.resourceData&&this.resourceData.list?this.resourceData.list:[{key:"aidesigner",suffixMdsKeyValue:this.$t("tm.freetrial")},{key:"aimodeler",suffixMdsKeyValue:this.$t("tm.freetrial")},{key:"aimoodboard",suffixMdsKeyValue:this.$t("tm.freetrial")}]}}),watch:{visible:function(e){e&&!this.resourceData&&this.getResourceData()}},mounted:function(){Object(o.d)("/hs_global_web.popup.aigc_popup_expose",{member_id:this.userInfo.uid,language:this.locale}),this.visible&&this.getResourceData()},methods:{getResourceData:function(){var e=this;return Object(i.a)(regeneratorRuntime.mark(function t(){var n,i,a,s,o;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.loading){t.next=1;break}return t.abrupt("return");case 1:return e.loading=!0,t.prev=2,n={scene:"AINewUserPrpmo",fromType:"website"},t.next=3,r.a.other.resourceConfigs({data:n,options:{headers:{lang:e.locale}}});case 3:i=t.sent,a=i.data&&i.data.status&&i.data.status.code,i&&i.ret&&i.ret[0].includes("SUCCESS")&&0===a&&(o=null===(s=i.data.data[0])||void 0===s?void 0:s.resourceContent)&&(e.resourceData=o),t.next=5;break;case 4:t.prev=4,t.catch(2);case 5:return t.prev=5,e.loading=!1,t.finish(5);case 6:case"end":return t.stop()}},t,null,[[2,4,5,6]])}))()},handleClick:function(e){e&&(window.open(e,"_self"),this.hanleClose("link"))},getIconStyle:function(e){return{aidesigner:{fontSize:"100px",color:"#33353B"},aimodeler:{fontSize:"100px",color:"#33353B"},aimoodboard:{fontSize:"115px",color:"#33353B"},aitexture:{fontSize:"100px",color:"#33353B"},aipaint:{fontSize:"100px",color:"#33353B"}}[e]||{fontSize:"100px",color:"#33353B"}},getIconType:function(e){return{aidesigner:"a-AIstager",aimodeler:"a-aimodeler",aimoodboard:"a-aimoodboard",aitexture:"a-AITexturer",aipaint:"a-AIPainter",aifloorplan:"a-AIplanner",airender2K:"a-AIRender"}[e]||"a-".concat(e)},hanleClose:function(e){this.$emit("close"),Object(o.d)("/hs_global_web.popup.aigc_popup_close",{type:e,member_id:this.userInfo.uid,language:this.locale})}}},d=(n(3867),n(18)),p=Object(d.a)(u,function(){var e,t,n=this,i=n._self._c;return n.visible&&null!==(e=n.resourceData)&&void 0!==e&&e.list?i("div",{staticClass:"aigc-new-user-popup"},[i("div",{staticClass:"mask"}),n._v(" "),i("main",{staticClass:"content-wrap"},[i("span",{staticClass:"close-icon-block",on:{click:function(e){return n.hanleClose("close")}}},[i("IconfontView",{attrs:{customStyle:{fontSize:"20px",color:"#969696"},showType:"hs_con_team_close"}})],1),n._v(" "),i("h2",{staticClass:"banner-title"},[n._v("\n      "+n._s(null!==(t=n.resourceData)&&void 0!==t&&t.titleMdsKeyValue?n.resourceData.titleMdsKeyValue:n.$t("AIGC.newuser.free.reward"))+"\n    ")]),n._v(" "),i("div",{staticClass:"content"},n._l(n.displayList,function(e){return i("div",{key:e.key,staticClass:"user-item"},[i("div",{staticClass:"item-left"},[i("IconfontView",{attrs:{customStyle:n.getIconStyle(e.key),showType:n.getIconType(e.key)}})],1),n._v(" "),i("div",{staticClass:"item-right",on:{click:function(t){return n.handleClick(e.link)}}},[i("span",{staticClass:"free-trial-count"},[n._v(n._s(n.aigcCountDetail[e.key]||0))]),n._v(" "),i("span",{staticClass:"free-trial-text"},[n._v(n._s(e.suffixMdsKeyValue))])])])}),0),n._v(" "),i("div",{staticClass:"button-container"},[i("button",{staticClass:"ok-button",on:{click:function(e){return n.hanleClose("ok")}}},[n._v("\n        "+n._s(n.$t("changeemail.okbutton"))+"\n      ")])])])]):n._e()},[],!1,null,"6a6aa98e",null);t.a=p.exports;installComponents(p,{IconfontView:n(129).default})},3232:function(e,t,n){"use strict";n(23),n(19),n(15),n(31),n(32);var i=n(1),a=n(21),s=n(14);function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}var o={name:"NewFaq",props:{faq:{type:Array,default:function(){return[]}},pageName:{type:String,default:"pricing"}},data:function(){return{openStates:{}}},computed:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?r(Object(n),!0).forEach(function(t){Object(i.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},Object(a.d)(["locale","userInfo"])),methods:{toggleQuestion:function(e,t){this.$set(this.openStates,e,!this.openStates[e]),this.questionSpm(e,t)},questionSpm:function(e,t){Object(s.a)("".concat(this.pageName,".faq_click"),{open:!!this.openStates[e],question_id:t.id,member_id:this.userInfo.uid,language:this.locale})}}},c=o,l=(n(3946),n(18)),u=Object(l.a)(c,function(){var e=this,t=e._self._c;return t("div",{staticClass:"new-faq"},[t("ul",{staticClass:"questions"},e._l(e.faq,function(n,i){return t("li",{key:i,class:{text:e.openStates[i]}},[t("div",{staticClass:"questions-main",on:{click:function(t){return e.toggleQuestion(i,n)}}},[t("span",[e._v(e._s(e.$t(n.q)))]),e._v(" "),t("i",{staticClass:"iconfont icon-open",class:{"icon-close":!e.openStates[i]}})]),e._v(" "),t("p",{staticClass:"answer",domProps:{innerHTML:e._s(e.$t(n.a))}})])}),0)])},[],!1,null,"f14a4540",null);t.a=u.exports},3233:function(e,t,n){"use strict";var i={name:"MoreQuestion",components:{contactUsGeneral:n(644).a},props:{contactUs:{type:String,default:"person"}},data:function(){return{contactUsVisible:!1}},computed:{},methods:{contactUsClick:function(){var e=this.contactUs;"person"===e?this.contactUsVisible=!0:"team"===e&&this.$emit("contactUsTeam")}}},a=(n(4072),n(18)),s=Object(a.a)(i,function(){var e=this,t=e._self._c;return t("div",{staticClass:"more-question-wrap"},[t("p",{staticClass:"more-question"},[e._v("\n    "+e._s(e.$t("styler.contact"))+"\n  ")]),e._v(" "),t("a",{staticClass:"more-question-btn",on:{click:e.contactUsClick}},[e._v(" "+e._s(e.$t("styler.contactbutton"))+" "),t("i",{staticClass:"iconfont icon"})]),e._v(" "),t("contactUsGeneral",{model:{value:e.contactUsVisible,callback:function(t){e.contactUsVisible=t},expression:"contactUsVisible"}})],1)},[],!1,null,"481e81c0",null);t.a=s.exports},3234:function(e,t,n){"use strict";n(44),n(23),n(19),n(15),n(31),n(32);var i=n(1),a=(n(62),n(21)),s=n(14);function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach(function(t){Object(i.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var c={name:"PricingTabs",mixins:[n(153).a],props:{activeIndex:{type:Number,default:0}},computed:o(o({},Object(a.d)(["locale","userInfo","signIn","pricingActivity","abTest"])),{},{data:function(){return this.abTest&&"A"===this.abTest.abRPricing?[{name:"pricing2.individual",to:"/pricing",spm:"pricing"},{name:"pricing2.team",to:"/pricing/business",spm:"business"}]:[{name:"navibar.promas",to:"/pricing",spm:"pricing"},{name:"navibar.styler",to:"/pricing/resources",spm:"styler"},{name:"pricing.aiBoost.tab",to:"/pricing/ai-boost",spm:"aiBoost"}]}}),methods:{spm:function(e){Object(s.a)("pricing.to_tab_click",{page_id:e,member_id:this.userInfo.uid,language:this.locale})}}},l=(n(4078),n(18)),u=Object(l.a)(c,function(){var e=this,t=e._self._c;return t("div",{staticClass:"pricing-tabs-wrap"},[t("div",{staticClass:"content"},[t("ul",{staticClass:"tabs clear"},e._l(e.data,function(n,i){return t("li",{key:n.name,class:{active:i===e.activeIndex},on:{click:function(t){return e.spm(n.spm)}}},[t("nuxt-link",{attrs:{to:n.to}},[e._v("\n          "+e._s(e.$t(n.name))+"\n        ")])],1)}),0)])])},[],!1,null,"c38bf362",null);t.a=u.exports},3235:function(e,t,n){"use strict";n(62);var i=n(475),a={name:"searchCommon",props:{isEmpty:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},total:{type:Number,default:0},type:{type:String,default:"design"},spmName:{type:String,default:""},selectTypeShow:{type:Boolean,default:!0}}
1,components:{SearchWrap:i.a},data:function(){return{selectShow:!1,currentSelect:{},searchKeyword:this.$route.params.keywords||""}},computed:{subTitle:function(){var e={text:"",title:""};switch(this.type){case"design":default:e={text:"search.resultsubtitledesign",title:"search.categorydesign"};break;case"designer":e={text:"search.resultsubtitlepeople",title:"search.categorypeople"};break;case"challenge":e={text:"search.resultsubtitlechallenge",title:"search.categorychallegne"};break;case"hashtag":e={text:"gallery.hashtag.description",title:"search.categoryhashtag"};break;case"tutorial":e={text:"search.resultsubtitlepost",title:"search.categorypost"};break;case"house-plans":e={text:"gallery.houseplans.description",title:"gallery.houseplans"}}return e}},mounted:function(){var e=this;this.$nextTick(function(){e.navbarScroll()}),window.addEventListener("scroll",this.navbarScroll),window.addEventListener("click",function(){e.selectShow=!1},!0)},destroyed:function(){window.removeEventListener("scroll",this.navbarScroll);var e=document.querySelector(".navbar-mask");e&&e.classList.remove("init")},methods:{navbarScroll:function(){var e=document.documentElement.scrollTop||document.body.scrollTop,t=document.querySelector(".navbar-mask");t&&(e>=40?t.classList.remove("init"):t.classList.add("init"))},selectClick:function(e){this.currentSelect=e,this.selectShow=!1}}},s=(n(4262),n(18)),r=Object(s.a)(a,function(){var e=this,t=e._self._c;return t("div",{staticClass:"search-common"},[t("div",{staticClass:"banner"},[t("div",{staticClass:"banner-bg left-bg"}),e._v(" "),t("div",{staticClass:"banner-bg right-bg"}),e._v(" "),t("SearchWrap",{attrs:{defaultType:e.type,spmName:e.spmName,selectTypeShow:e.selectTypeShow}}),e._v(" "),t("h1",{staticClass:"title"},[e._v(e._s(e.searchKeyword||e.$t(e.subTitle.title)))]),e._v(" "),t("p",{staticClass:"tips",domProps:{innerHTML:e._s(e.$t(e.subTitle.text,{num:"<span class='result-num'>".concat(e.total>=5e3?"5000+":e.total,"</span>"),keywords:e.searchKeyword}))}})],1),e._v(" "),t("div",{staticClass:"content"},[e._t("default"),e._v(" "),e.isEmpty&&!e.loading?t("div",{staticClass:"empty"},[t("h2",{staticClass:"empty-title"},[e._v(e._s(e.$t("contest.noresult")))]),e._v(" "),t("p",{staticClass:"empty-tips"},[e._v(e._s(e.$t("search.noresult")))])]):e._e()],2)])},[],!1,null,"3125106c",null);t.a=r.exports},3236:function(e,t,n){"use strict";var i=n(109).a;t.a=i},3238:function(e,t,n){"use strict";n(19),n(15),n(31),n(32);var i=n(2),a=n(7),s=n(1),r=(n(38),n(73),n(22),n(37),n(30),n(23),n(162),n(67)),o=n.n(r),c=n(21),l=n(12),u=n(14),d=n(170),p=n(982);function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach(function(t){Object(s.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var h={name:"PayResult",components:{rectLoad:d.a},mixins:[p.a],data:function(){return{time:5,aigcType:"",state:"success",failCode:"",loading:!0,tryNum:3,retryTimeId:null,selectedPayMode:{},showMorePaymodes:!1}},computed:f(f({},Object(c.d)(["locale","userInfo","signIn"])),{},{resultImg:function(){return"success"===this.state?"https://img.alicdn.com/imgextra/i2/O1CN01tzWi9B1sW5JYCilZj_!!6000000005773-1-tps-300-300.gif":"https://prod-hsm-designs.oss-us-east-1.aliyuncs.com/production/upload/images/0f0206af-5cca-4647-bcf9-678ebcf93ce7.png"},specialCode:function(){var e,t=null===(e=this.additionalGifts)||void 0===e?void 0:e.find(function(e){return"SPECIAL_CODE"===e.actionType&&e.actionValue});return(null==t?void 0:t.actionValue)||""}}),watch:{},mounted:function(){var e=this;"ai_product"===localStorage.getItem("hs_website_aigc_type")&&(this.aigcType="ai_product"),localStorage.removeItem("hs_website_aigc_type");var t=this.$route.query,n=t.tryfail,i=t.state,a=t.code;!t.token||n||"success"===i?(this.state=i,this.failCode=a,("success"===i||"fail"!==i&&!["103900010","103900011"].includes(a)||n)&&("beginnerPopup"===o.a.get("paidSuccessOpenPopup")&&(this.$store.commit("SET_BEGINNER_SHOW",!0),o.a.remove("paidSuccessOpenPopup",{domain:".homestyler.com"}),Object(u.c)("/hs_global_web.popup.eNewUserGuide_expose","member_id=".concat(this.userInfo.uid,"&language=").concat(this.locale,"&from=autoRenewResult"))),this.paySuccessSpm("success"===i),"success"!==i?this.queryOrderDetail().then(function(){e.getPaymodeConfigs().then(function(){e.paymentModes.length>0&&(e.selectedPayMode=e.paymentModes[0])})}).finally(function(){e.loading=!1}):this.loading=!1)):this.orderComplete()},methods:{orderComplete:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark(function t(){var n,i,a,s,r,o;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(0!==e.tryNum){t.next=1;break}return t.abrupt("return");case 1:if(e.tryNum--,e.loading=!0,n=e.$route.query,i=n.token,a=n.ordertype,s=a?"&ordertype=".concat(a):"",i){t.next=2;break}return t.abrupt("return");case 2:return t.next=3,l.a.payPal.orderComplete({data:{outerOrderId:i}});case 3:r=t.sent,o=r.data&&r.data.status.code;try{r&&r.ret&&r.ret[0].includes("SUCCESS")&&0===o?(e.loading=!1,e.paySuccessSpm(!0),location.href="/payPal/result?state=success&token=".concat(i).c
1oncat(s)):(103900010!==o&&103900011!==o&&(location.href="/payPal/result?state=fail&tryfail=true&token=".concat(i).concat(s)),0===e.tryNum&&(location.href="/payPal/result?state=fail&tryfail=true&code=103900010&token=".concat(i).concat(s)),e.retryTimeId=setTimeout(function(){e.orderComplete()},1e4))}catch(t){e.loading=!1}case 4:case"end":return t.stop()}},t)}))()},destroyed:function(){this.retryTimeId&&clearTimeout(this.retryTimeId)},copyCodeClk:function(){var e;this.$clipboard(this.specialCode);var t=this.$route.query,n=t.token,i=t.ordertype;null===(e=globalSpmClick)||void 0===e||e("pay_result.copy_clk",{token:n,ordertype:i,special_code:this.specialCode}),this.$message.success(this.$t("myDesigns.content.copy_success"))},handleClickPayment:function(e){this.selectedPayMode=e,Object(u.c)("/hs_global_web.pay_result.retry_paymode_select","member_id=".concat(this.userInfo.uid,"&language=").concat(this.locale,"&payMode=").concat(e.payMode,"&payModeKey=").concat(e.payModeKey))},handlePaymentClick:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e.selectedPayMode.payMode){t.next=1;break}return t.abrupt("return");case 1:return Object(u.c)("/hs_global_web.pay_result.retry_payment_clk","member_id=".concat(e.userInfo.uid,"&language=").concat(e.locale,"&payMode=").concat(e.selectedPayMode.payMode,"&payModeKey=").concat(e.selectedPayMode.payModeKey,"&amount=").concat(e.amount)),t.next=2,e.retryPayment(e.selectedPayMode.payMode);case 2:case"end":return t.stop()}},t)}))()},handleSpmClick:function(e,t){var n=[];if(t&&Object.keys(t).length>0)for(var a=0,s=Object.entries(t);a<s.length;a++){var r=Object(i.a)(s[a],2),o=r[0],c=r[1];n.push("".concat(o,"=").concat(c))}var l=n.join("&");Object(u.c)("/hs_global_web.pay_result.".concat(e),"member_id=".concat(this.userInfo.uid,"&language=").concat(this.locale,"&").concat(l))},handleShowMore:function(){Object(u.c)("/hs_global_web.pay_result.view_all_payment_methods_clk","member_id=".concat(this.userInfo.uid,"&language=").concat(this.locale)),this.showMorePaymodes=!0},handlePaymentClose:function(){this.showMorePaymodes=!1},handleFullPaymentClick:function(e){this.retryPayment(e.payMode)},getPayModeIcon:function(e){var t=e.icon,i=e.iconUrl;return t&&["hs_pricing_card","hs_pricing_mir","hs_pricing_paypal","hs_pricing_qiwi","hs_pricing_grabpay"].includes(t)?n(839)("./".concat(t,".svg")):i}}},g=(n(4200),n(4201),n(18)),v=Object(g.a)(h,function(){var e,t=this,n=t._self._c;return n("div",{staticClass:"result-pay-wrap"},[t.loading?n("div",{staticClass:"load-more"},[n("rect-load"),t._v(" "),n("p",{staticClass:"payprocess"},[t._v("\n      "+t._s(t.$t("paypal.payprocess"))+"\n    ")])],1):t._e(),t._v(" "),t.state&&!t.loading?n("div",{staticClass:"main"},[n("img",{staticClass:"icon_result",class:{fail:"success"!==t.state},attrs:{src:t.resultImg}}),t._v(" "),n("div",{staticClass:"r-content"},[t.specialCode?n("div",{staticClass:"title"},[n("div",{staticClass:"title-code-wrap"},[n("span",[t._v(t._s(t.$t("Payment.successful.code.title01")))]),t._v(" "),n("span",[t._v(t._s(t.specialCode))]),t._v(" "),n("div",{staticClass:"copy-icon-view",on:{click:t.copyCodeClk}},[n("IconfontView",{attrs:{customStyle:{fontSize:"20px",color:"#1C1C1C"},showType:"a-Frame5"}})],1)]),t._v(" "),n("p",{staticClass:"title-code-desc"},[t._v("\n          "+t._s(t.$t("Payment.successful.code.title02"))+"\n        ")])]):n("p",{staticClass:"title"},[t._v("\n        "+t._s("success"===t.state?t.$t("paypal.sucess"):t.$t("paypal.fail"))+"\n      ")]),t._v(" "),"success"===t.state?[n("p",{staticClass:"result-tips"},[t._v("\n          "+t._s((null===(e=t.resourceMsg[t.locale])||void 0===e?void 0:e.actContent)||t.$t("paypal.successhint"))+"\n        ")]),t._v(" "),n("a",{staticClass:"go-to-order",attrs:{href:"/workspace/mysubscription?myOrderDialog=true".concat("ai_product"===t.aigcType?"&myOrderTab=2":"")},on:{click:function(e){return t.goToOrder()}}},[t._v("\n          "+t._s(t.$t("paypal.gotoorder"))+"\n          "),n("i",{staticClass:"iconfont icon-into"})]),t._v(" "),t.resourceMsg[t.locale]&&t.resourceMsg[t.locale].actButton?n("a",{staticClass:"go-to-order act-button",on:{click:t.giveFriend}},[t._v("\n          "+t._s(t.resourceMsg[t.locale]&&t.resourceMsg[t.locale].actButton)+"\n          "),n("i",{staticClass:"iconfont icon-into"})]):t._e()]:[t.paymentModes&&t.paymentModes.length?n("div",{staticClass:"retry-payment-section"},[n("div",{staticClass:"retry-payment-header"},[n("span",{staticClass:"retry-payment-title"},[t._v(t._s(t.$t("RetryPayment.title")))]),t._v(" "),n("a",{staticClass:"view-all-methods",on:{click:t.handleShowMore}},[n("span",[t._v(t._s(t.$t("RetryPayment.tip02")))]),t._v(" "),n("i",{staticClass:"iconfont icon-into"})])]),t._v(" "),n("div",{staticClass:"payment-list"},t._l(t.paymentModes,function(e){return n("div",{key:e.payMode,staticClass:"payment-item",class:{selected:t.selectedPayMode.payMode===e.payMode},on:{click:function(n){return t.handleClickPayment(e)}}},[t.getPayModeIcon(e)?n("img",{staticClass:"payment-icon",attrs:{src:t.getPayModeIcon(e),alt:e.titleMdsKeyValue}}):t._e(),t._v(" "),n("span",{staticClass:"payment-name"},[t._v(t._s(e.titleMdsKeyValue))]),t._v(" "),e.recommended?n("div",{staticClass:"recommend-badge"},[n("span",{staticClass:"recommend-text"},[t._v(t._s(t.$t("RetryPayment.badge")||"Recommend"))])]):t._e()])}),0),t._v(" "),n("div",{staticClass:"payment-button",class:{disabled:!t.selectedPayMode.payMode},on:{click:t.handlePaymentClick}
1},[t._v("\n            "+t._s("".concat(t.$t("RetryPayment.btn")," ").concat(t.amount?"$".concat(t.amount):""))+"\n          ")])]):n("p",{staticClass:"result-tips"},[n("a",{staticClass:"go-to-order",attrs:{href:"/pricing"},on:{click:function(e){return t.goToOrder("result_paypal")}}},[t._v(t._s(t.$t("paypal.gotopricing"))+"\n            "),n("i",{staticClass:"iconfont icon-into"})])])]],2)]):t._e(),t._v(" "),"success"===t.state||t.loading?t._e():n("p",{staticClass:"result-footer"},[n("span",{domProps:{innerHTML:t._s(t.$t("paypal.failhint2"))}}),t._v(" "),"103900010"===t.failCode||"103900011"===t.failCode?n("el-tooltip",{attrs:{content:t.$t("pricing2.payfailctn"),placement:"top"}},[t._v("\n      "+t._s(t.$t("RetryPayment.tip"))+"\n    ")]):t._e()],1),t._v(" "),n("FullPaymentModalVue",{attrs:{visible:t.showMorePaymodes,selectedCountryCode:t.countryCode||"",mode:1===t.orderType?"subscription":"payment",amount:t.amount?"$".concat(t.amount):"",lang:t.locale,spmClick:t.handleSpmClick,onBack:t.handlePaymentClose,onClose:t.handlePaymentClose,onPaymentClick:t.handleFullPaymentClick}})],1)},[],!1,null,"b52dcd32",null);t.a=v.exports;installComponents(v,{IconfontView:n(129).default})},3239:function(e,t,n){"use strict";n.d(t,"b",function(){return a}),n.d(t,"a",function(){return s});n(62),n(65);var i={2:"floorplanner",3:"challenge",4:"product",5:"collection",6:"homestylerlab",7:"design",8:"editorial"};function a(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Number(e);return 2===n&&t?"trends":i[n]||""}function s(e,t){var n=function(e){return e?String(e).toLowerCase().replace(/\s+/g,"-"):""},i=n(e);if(!i)return"/article";var a=n(t);return a?"/news/".concat(i,"/").concat(a):"/news/".concat(i)}},3240:function(e,t,n){"use strict";n.d(t,"c",function(){return o}),n.d(t,"d",function(){return c}),n.d(t,"a",function(){return l}),n.d(t,"b",function(){return u});n(23),n(19),n(15),n(31),n(32);var i=n(1),a=n(53);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){Object(i.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(a.handleMtopPromiseResult)(a.default.payPal.getUserRemindMessageList({data:r({clientInfo:Object(a.getClientInfo)()},e)})).then(function(e){return e.data})}function c(e){var t=e.orderId,n=e.userId;return Object(a.handleMtopPromiseResult)(a.default.payPal.queryOrderDetail({data:{orderId:t,userId:n,requireDiscountCodeValid:!0,requireProductList:!0}})).then(function(e){return e.data})}function l(e){return Object(a.handleMtopPromiseResult)(a.default.payPal.closeUserRemindMessage({data:e}))}function u(e){return Object(a.handleMtopPromiseResult)(a.default.payPal.getDiscountCodeInfo({data:e})).then(function(e){return e.data})}},3241:function(e,t,n){"use strict";n.d(t,"a",function(){return l}),n.d(t,"b",function(){return g}),n.d(t,"c",function(){return v}),n.d(t,"f",function(){return b}),n.d(t,"g",function(){return _}),n.d(t,"e",function(){return y}),n.d(t,"d",function(){return w});n(23),n(19),n(31),n(32);var i=n(1),a=(n(15),n(73),n(22),n(25),n(30),n(596),n(61)),s=n(402);function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach(function(t){Object(i.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var c={ONE_TIME:"1",SUBSCRIPTION:"2"},l={COUPON:"1",RENDER:"2",STYLER:"7",AI_MEMBER:"12"},u={PRO:"Ct_Pro_Membership",MASTER:"Ct_Master_Membership"},d={RENDER_2K:"108",RENDER_4K:"4",RENDER_12K:"25",RENDER_540P:"115",RENDER_720P:"15",RENDER_1080P:"18"},p=Object(i.a)(Object(i.a)(Object(i.a)({},l.RENDER,["pro","master"]),l.STYLER,["styler"]),l.AI_MEMBER,["aiMember"]),m=Object(i.a)(Object(i.a)(Object(i.a)(Object(i.a)({},l.RENDER,"/pricing"),l.STYLER,"/pricing/resources"),l.AI_MEMBER,"/pricing/ai-boost"),l.COUPON,"/pricing"),f="/pricing/ai-boost",h={EMPTY_PRODUCT_LIST:"empty_product_list",MISSING_MAIN_ITEM:"missing_main_item",MULTIPLE_MAIN_ITEMS:"multiple_main_items",INVALID_MAIN_ITEM_CONTRACT:"invalid_main_item_contract"};function g(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=void 0===t.comboType||null===t.comboType?"":"".concat(t.comboType),i=void 0===t.productType||null===t.productType?"":"".concat(t.productType),a={remindMessageId:null==e?void 0:e.remindMessageId,comboType:n,productC
1ode:t.productCode||"",isAiCombo:"true"==="".concat(t.isAiCombo),specifiedSelectionContext:{productType:i,mainProductId:t.productId,relatedProductIds:[],discountCode:(null==e?void 0:e.discountCode)||""}};return o(o({},a),{},{targetRoute:S(a),targetTabFields:I(a)})}function v(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=Array.isArray(e.productList)?e.productList:[],a=void 0===n.orderCategory||null===n.orderCategory?"":"".concat(n.orderCategory),s={remindMessageId:null==t?void 0:t.remindMessageId,orderCategory:a,orderId:n.orderId};if(0===i.length)return C(h.EMPTY_PRODUCT_LIST,s,i);var r=i.filter(function(e){return!0===(null==e?void 0:e.mainItem)});if(0===r.length)return C(h.MISSING_MAIN_ITEM,s,i);if(r.length>1)return C(h.MULTIPLE_MAIN_ITEMS,s,i);var c=r[0],u=void 0===(null==c?void 0:c.comboType)||null===(null==c?void 0:c.comboType)?"":"".concat(c.comboType),d=void 0===(null==c?void 0:c.comboId)||null===(null==c?void 0:c.comboId)?"":"".concat(c.comboId),p=o(o({},s),{},{comboType:u,productCode:(null==c?void 0:c.productCode)||"",comboId:d,isAiCombo:!0===(null==c?void 0:c.isAiCombo),specifiedSelectionContext:{productType:k(a),mainProductId:c.originalMainItemId||"",relatedProductIds:O(i,c),discountCode:(null==t?void 0:t.discountCode)||""}});return function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=null===(e=t.specifiedSelectionContext)||void 0===e?void 0:e.mainProductId;if(!t.comboType||!n)return!1;if([l.RENDER,l.STYLER,l.AI_MEMBER].includes(t.comboType))return!!t.productCode;if(t.comboType===l.COUPON)return!0===t.isAiCombo||!!t.comboId;return!0}(p)?o(o({},p),{},{recoverable:!0,targetRoute:S(p),targetTabFields:I(p)}):C(h.INVALID_MAIN_ITEM_CONTRACT,s,i,p)}function b(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!Array.isArray(t))return null;if(n.comboType===l.COUPON)return null;var a=(null===(e=n.specifiedSelectionContext)||void 0===e?void 0:e.productType)===s.a.SUBSCRIPTION?"autoRenew":"fixed";if(i.productField)return t.find(function(e){return e.type===a&&e[i.productField]});var r=Array.isArray(n.targetTabFields)?n.targetTabFields:[];return r.length?t.find(function(e){return e.type===a&&r.some(function(t){return e&&e[t]})}):null}function _(){var e={};return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce(function(e,t){return e.concat(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.reduce(function(e,t){return Array.isArray(null==t?void 0:t.configs)?e.concat(t.configs):t?e.concat(t):e},[])}(t))},[]).filter(function(t){if(!t||!t.skuId||["team","enterprise","basic"].includes(t.member))return!1;var n="".concat(t.code||t.member,"_").concat(t.skuId);return!e[n]&&(e[n]=!0,!0)})}function y(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];switch(e.comboType){case l.COUPON:return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!0===e.isAiCombo)return t.find(function(e){return e&&e.member===a.Z.aigc});if(!e.comboId)return;if(!Object.values(d).includes(e.comboId))return;return t.find(function(t){return"".concat(t.skuId)===e.comboId})}(e,t);case l.RENDER:return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(![u.PRO,u.MASTER].includes(e.productCode))return;return t.find(function(t){return t&&t.skuId===e.productCode})}(e,t);case l.STYLER:return j(t,[a.Z.styler]);case l.AI_MEMBER:return j(t,[a.Z.aiBoost]);default:return}}function w(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(t.comboType===l.COUPON&&!0===t.isAiCombo)return i.find(function(e){return e&&e.member===a.Z.aigc});
1var s=n.find(function(e){return e.member===a.Z.aiBoost});return null==s||null===(e=s.configs)||void 0===e?void 0:e.find(function(e){return e.member===a.Z.aiBoost})}function C(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return o(o({},t),{},{comboType:n.comboType||"",productCode:n.productCode||"",comboId:n.comboId||"",isAiCombo:!0===n.isAiCombo,recoverable:!1,recoverFailureReason:e,targetRoute:"",targetTabFields:[],specifiedSelectionContext:n.specifiedSelectionContext||{productType:k(t.orderCategory),mainProductId:"",relatedProductIds:[],discountCode:""}})}function O(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).filter(function(t){return t&&t!==e}).map(function(e){return e.itemId||""}).filter(Boolean)}function k(e){return e===c.SUBSCRIPTION?s.a.SUBSCRIPTION:s.a.ONE_TIME}function I(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.comboType===l.COUPON?[]:p[e.comboType]||[]}function S(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.comboType===l.COUPON&&!0===e.isAiCombo?f:m[e.comboType]||""}function j(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).find(function(t){return e.includes(t.member)||e.includes(t.code)})}},3242:function(e,t,n){"use strict";n(30),n(22),n(23),n(19),n(31),n(32);var i=n(8),a=n(7),s=n(1),r=(n(38),n(62),n(25),n(15),n(21)),o=n(12),c=n(14),l=n(24);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach(function(t){Object(s.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var p={name:"MaterialPreviewModal",props:{visible:{type:Boolean,default:!1},jid:{type:String,default:""}},computed:d(d({},Object(r.d)(["locale","isMobile"])),{},{iframeUrl:function(){return this.jid?"".concat(this.$global.viewer3dHost,"/ai-texturer/index.html?lang=").concat(this.locale,"&id=").concat(this.jid,"&isTeam=false"):""}}),watch:{visible:function(e){"undefined"!=typeof document&&(document.body.style.overflow=e?"hidden":"")}},mounted:function(){"undefined"!=typeof window&&window.addEventListener("message",this.handleMessage)},beforeDestroy:function(){"undefined"!=typeof window&&window.removeEventListener("message",this.handleMessage),"undefined"!=typeof document&&(document.body.style.overflow="")},methods:{handleMessage:function(e){if(this.visible){var t=e&&e.data;t&&"string"==typeof t.type&&("material-preview-cancel"===t.type?this.handleClose():"material-preview-confirm"===t.type&&(this.$emit("confirm",t.payload),this.handleClose()))}},handleClose:function(){this.$emit("close")}}},m=(n(3856),n(18)),f=Object(m.a)(p,function(){var e=this,t=e._self._c;return e.visible?t("div",{staticClass:"material-preview-modal",class:{"material-preview-modal--mobile":e.isMobile}},[t("div",{staticClass:"material-preview-modal__mask",on:{click:e.handleClose}}),e._v(" "),t("div",{staticClass:"material-preview-modal__content"},[t("div",{staticClass:"material-preview-modal__header"},[t("span",{staticClass:"material-preview-modal__title"},[e._v(e._s(e.$t("ai.material.preview.title")||"材质预览"))]),e._v(" "),t("i",{staticClass:"iconfont icon-close material-preview-modal__close",on:{click:e.handleClose}})]),e._v(" "),t("div",{staticClass:"material-preview-modal__body"},[e.iframeUrl?t("iframe",{staticClass:"material-preview-modal__iframe",attrs:{src:e.iframeUrl,frameborder:"0",allow:"autoplay; fullscreen"}}):e._e()])])]):e._e()},[],!1,null,"1afcb171",null).exports,h=n(3224),g=n(129),v=n(3209),b=n(3207),_=n(3216),y=n(150),w=n(3206);function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?C(Object(n),!0).forEach(function(t){Object(s.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var k={name:"AlubmCardList",components:{Viewer:h.a,MemberUpgrade:v.default,IconfontView:g.default,OperateBtn:b.default,RatingBox:_.default,MaterialPreviewModal:f},mixins:[w.a,y.a],props:{datasource:{type:Array,default:function(){return[]}},selectedKeys:{type:Array,default:function(){return[]}},maxSelectedNum:{type:Number,default:function(){return 20}},total:{type:Number,default:function(){return 0}},isAll:{type:Boolean,default:!1},canDownload:{type:Boolean,default:!1},editAlbum:{type:Boolean,default:!1},type:{type:String,default:"ai_material"},apply3DToolTips:{type:String,default:""},modelProcessingTips:{type:String,default:""},showType:{type:String,default:"2d"},propsGetShareUrl:{type:Function,default:void 0},propsHandleDownload:{type:Function,default:void 0},props3DToolClick:{type:Function,default:void 0}},data:function(){return{list:[],loadedArr:[],selectItem:{},aspectRatio1:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAoHBwkHBgoJCAkLCwoMDxkQDw4ODx4WFxIZJCAmJSMgIyIoLTkwKCo2KyIjMkQyNjs9QEBAJjBGS0U+Sjk/QD3/2wBDAQsLCw8NDx0QEB09KSMpPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT3/wgARCAAUABQDAREAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAf/xAAUAQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIQAxAAAACmgAAAH//EABQQAQAAAAAAAAAAAAAAAAAAADD/2gAIAQEAAT8AH//EABQRAQAAAAAAAAAAAAAAAAAAADD/2gAIAQIBAT8AH//EABQRAQAAAAAAAAAAAAAAAAAAADD/2gAIAQMBAT8AH//Z",bigImgShow:!1,isSupportPoster:!1,invitationCode:"",hashTagInfo:{id:"11518763",name:"AIModeler"},showPurchaseModal:!1,currentTaskId:"",materialPreviewVisible:!1,materialPreviewJid:""}},computed:O(O({},Object(r.d)(["locale","userInfo","userPhoto","isHomestylerApp","isMobile"])),{},{ossFormatStr:function(){return["ai_planner"].includes(this.type)?"m_pad,w_700":"m_fill,h_700,w_700"}}),watch:{datasource:{handler:function(){var e=this;this.list=this.datasource.map(function(t){var n={};return n="string"==typeof t.extend?JSON.parse(t.extend):t.extend,O(O({},t),{},{extend:n,checked:e.selectedKeys.includes(t.subTaskId)})})},immediate:!0},editAlbum:function(e){e&&this.initList()},selected:function(e){this.checked=e}},created:function(){var e=this;this.initInvitationCode(),this.getClientInfo().then(function(){e.isSupportPoster=e.greaterThanVersion("10.9.0")})},mounted:function(){this.getProfileInfo()},methods:O(O({},Object(r.b)(["getProfileInfo"])),{},{initList:function(){var e=this;this.list=this.datasource.map(function(t){return O(O({},t),{},{checked:e.selectedKeys.includes(t.subTaskId)})})},checkDisabled:function(e){return!e.checked&&this.selectedKeys.length>=this.maxSelectedNum||!![0,1].includes(e.processStatus)},handleDelete:function(e){var t=this;this.$emit("handleDelete",e.subTaskId,function(){t.bigImgShow=!1})},handleDownload:function(e){var t=this,n=e.imageUrl;this.isHomestylerApp?Object(l.p)(n).then(function(e){t.callWindVane("HSPlugin","saveAigcPhoto",{data:e.base64}).then(function(e){})}).catch(function(e){}):this.isMobile?Object(l.k)(n):window.open("".concat(n,"?response-content-type=application/octet-stream"),"_blank")},downloadImg:function(e){this.canDownload&&(Object(c.c)("/hs_global_web.".concat(this.type,".download_clk"),"queue_id=".concat(e.subTaskId,"&member_id=").concat(this.userInfo.uid,"&language=").concat(this.locale)),this.propsHandleDownload?this.propsHandleDownload(e):this.handleDownload(e))},closePopup:function(){var e=this;this.isHomestylerApp||this.isMobile?setTimeout(function(){e.bigImgShow=!1},500):this.bigImgShow=!1,Object(c.c)("/hs_global_web.".concat(this.type,".album_fullscr_close"),"member_id=".concat(this.userInfo.uid,"&language=").concat(this.locale))},handleBuyMore:function(e){this.bigImgShow=!1,this.$emit("buyMore",e)},queryAlubmAllList:function(e){this.$emit("queryAllList",e)},handleRatingSubmit:function(){this.$emit("queryAllList",!0),this.$emit("queryGroupList",!0)},shareModalInit:function(e,t){var n={title:this.$t("aigc.tdktitle"),description:this.$t("aigc.tdkdescr"),image:e,url:t,text:this.$t("aigc.tdkkeywords")};this.$store.commit("SET_MGMCONFIG",{shareConfig:n})},usertAvaterUrl:function(){return this.userPhoto?this.userPhoto:this.defaultAvatar},getShareUrl:function(e){var t=e.imageUrl,n=e.originalImageUrl,i=this.isHomestylerApp?"AppShared":"AIShared";return"".concat(this.$global.homestyler,"/aimaterial?cImgUrl=").concat(t,"&oImgUrl=").concat(n,"&type=").concat(i,"&aiGenerateType=aimaterial")},shareImg:function(e){var t=this;
1Object(c.c)("/hs_global_web.".concat(this.type,".share_clk"),"queue_id=".concat(e.subTaskId,"&member_id=").concat(this.userInfo.uid,"&language=").concat(this.locale));var n=e.imageUrl,i=this.propsGetShareUrl?this.propsGetShareUrl(e):this.getShareUrl(e);this.isHomestylerApp?this.getClientInfo().then(function(){var e=n,a="image";t.greaterThanVersion("10.0.0")&&(e="".concat(i).concat(i.includes("?")?"&":"?","invitationCode=").concat(t.invitationCode),a="link"),t.callWindVane("HSPlugin","wakeShareOperation",{url:e,type:a}).then(function(e){Object(c.c)("/hs_global_web.".concat(a,".share_success"),"member_id=".concat(t.userInfo.uid,"&language=").concat(t.locale))})}):(this.selectItem=e,this.shareModalInit(n,i),this.$store.commit("SET_MGMSOURCE","".concat(this.type,"_viewer")),this.$store.commit("SET_MGMSHOW",{show:!0,scene:"AI_REGISTER"}))},initInvitationCode:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark(function t(){var n,i;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=1,o.a.mgm.getCode({data:{scene:"NEW_REGISTER"}});case 1:n=t.sent,i=n.data&&n.data.status.code,n&&n.ret&&n.ret[0].includes("SUCCESS")&&0===i&&n.data.data&&(e.invitationCode=n.data.data),t.next=3;break;case 2:t.prev=2,t.catch(0);case 3:case"end":return t.stop()}},t,null,[[0,2]])}))()},enlargeImg:function(e){this.editAlbum||(this.selectItem=e,this.bigImgShow=!0,Object(c.c)("/hs_global_web.".concat(this.type,".viewer_clk"),"member_id=".concat(this.userInfo.uid,"&language=").concat(this.locale)))},handleSelect:function(e,t){var n=this;if(this.editAlbum&&!this.checkDisabled(e)){var a=this.selectedKeys;a=e.checked?this.selectedKeys.filter(function(t){return t!==e.subTaskId}):[].concat(Object(i.a)(this.selectedKeys),[e.subTaskId]),this.$emit("update:selectedKeys",Object(i.a)(a)),this.list=this.list.map(function(e,i){return i===t&&n.$set(e,"checked",!e.checked),O({},e)})}},loadHandler:function(e){this.loadedArr=[].concat(Object(i.a)(this.loadedArr),[e])},handleCheck:function(){},handleAddToCart:function(e){this.currentTaskId=e.taskId,this.showPurchaseModal=!0,Object(c.c)("/hs_global_web.".concat(this.type,".add_to_cart_clk"),"queue_id=".concat(e.subTaskId,"&member_id=").concat(this.userInfo.uid,"&language=").concat(this.locale))},handleClosePurchaseModal:function(){this.showPurchaseModal=!1,this.currentTaskId="",Object(c.c)("/hs_global_web.".concat(this.type,".add_to_cart_close"),"member_id=".concat(this.userInfo.uid,"&language=").concat(this.locale))},handleSpm:function(e,t){Object(c.c)(e,t)},handlePurchase:function(){this.handleClosePurchaseModal()},openMaterialPreview:function(e){var t=e.extend||{};this.materialPreviewJid=t.jid||"",this.materialPreviewVisible=!0,Object(c.c)("/hs_global_web.".concat(this.type,".material_setting_clk"),"queue_id=".concat(e.subTaskId,"&member_id=").concat(this.userInfo.uid,"&language=").concat(this.locale))},closeMaterialPreview:function(){this.materialPreviewVisible=!1,this.materialPreviewJid=""},handleMaterialPreviewConfirm:function(e){var t=this;this.closeMaterialPreview(),setTimeout(function(){t.$emit("queryAllList",!0),t.$emit("queryGroupList",!0)},500)}})},I=(n(3863),Object(m.a)(k,function(){var e=this,t=e._self._c;return t("div",{on:{contextmenu:function(e){e.preventDefault()}}},[t("ul",{staticClass:"alubm-list",class:{"alubm-list-row":e.isAll,"alubm-list-app":e.isHomestylerApp}},e._l(e.list,function(n,i){return t("li",{key:n.subTaskId,staticClass:"alubm-card-wrap",class:{checked:n.checked,disabled:e.checkDisabled(n)},on:{click:function(t){return e.handleSelect(n,i)}}},[e.editAlbum?t("el-checkbox",{staticClass:"alubm-checkbox",attrs:{disabled:e.checkDisabled(n)},on:{click:function(t){return t.stopPropagation(),e.handleCheck.apply(null,arguments)},change:function(t){return e.handleSelect(n,i)}},model:{value:n.checked,callback:function(t){e.$set(n,"checked",t)},expression:"item.checked"}}):e._e(),e._v(" "),2===n.processStatus&&n.imageUrl?t("div",{staticClass:"alubm-img-wrap",class:{loaded:e.loadedArr.includes(n.subTaskId)}},[t("div",{class:"alubm-img-mask ".concat(n.isModelProcessing||n.isModelFailed?"show":""),on:{click:function(t){return e.enlargeImg(n)}}},[e.editAlbum?e._e():[t("div",{staticClass:"alubm-img-preview",on:{click:function(t){return e.enlargeImg(n)}}},["ai_material"===e.type&&e.isAll?t("OperateBtn",{attrs:{iconType:"hs_caizhishezhi",iconFontSize:"30px",iconColor:"#FFFFFF"},on:{click:function(t){return e.openMaterialPreview(n)}},nativeOn:{click:function(e){e.stopPropagation()}}},[e._v("\n                "+e._s(e.$t("ai.material.preview.title")||"材质设置")+"\n              ")]):e._e(
1),e._v(" "),["ai_material","ai_planner"].includes(e.type)?t("OperateBtn",{attrs:{iconType:"hs_chakandatu",iconFontSize:"30px",iconColor:"#FFFFFF"},on:{click:function(t){return e.enlargeImg(n)}}},[e._v("\n                "+e._s(e.$t("myDesigns.content.view_details"))+"\n              ")]):e._e(),e._v(" "),"ai_painter"===e.type?t("OperateBtn",{attrs:{iconType:"a-3dviewicon",hideTips:"",iconFontSize:"16px",iconColor:"#FFFFFF"},on:{click:function(t){return e.enlargeImg(n)}}},[t("span",{staticClass:"viewer-btn",attrs:{slot:"text"},slot:"text"},[e._v(e._s(e.$t("aidesignerpg.roomview.button")))])]):e._e()],1),e._v(" "),e.isAll?e._e():t("div",{staticClass:"alubm-img-operate",on:{click:function(e){e.stopPropagation()}}},["ai_material"===e.type?t("OperateBtn",{attrs:{iconType:"hs_caizhishezhi"},on:{click:function(t){return e.openMaterialPreview(n)}}},[e._v("\n                "+e._s(e.$t("ai.material.preview.title")||"材质设置")+"\n              ")]):e._e(),e._v(" "),t("OperateBtn",{attrs:{iconType:"hs_mian_moxingmanyidu"}},[t("RatingBox",{attrs:{bizId:n.subTaskId,rating:n.score,submitted:n.score>0,title:e.$t("ai.modeler.satisfy.ques"),sourceValue:n.imageUrl},on:{submit:e.handleRatingSubmit}})],1),e._v(" "),t("OperateBtn",{attrs:{disabled:!e.canDownload,iconType:"hs_mian_xiazai",memberBenefits:!0},on:{click:function(t){return e.downloadImg(n)}}},[e.canDownload?t("span",[e._v(e._s(e.$t("AIGC.dashboard.download")))]):t("MemberUpgrade",{attrs:{showDemo:!1,adaptMobile:!1},on:{upgrade:function(t){return e.$emit("buyMore",{sourcePage:"".concat(e.type,"_download")})}}})],1),e._v(" "),t("OperateBtn",{attrs:{iconType:"a-22_3dtool_delete"},on:{click:function(t){return e.handleDelete(n)}}},[e._v("\n                "+e._s(e.$t("editProject.content.delete"))+"\n              ")]),e._v(" "),t("OperateBtn",{attrs:{giftType:!e.isHomestylerApp,iconType:"hs_icon_share"},on:{click:function(t){return e.shareImg(n)}}},[e._v("\n                "+e._s(e.$t("editproject.share"))+"\n              ")])],1)],e._v(" "),n.isModelProcessing?t("div",{staticClass:"processing-status"},[e._v("\n            "+e._s(e.$t("modelupload_ctn21"))+"\n          ")]):e._e(),e._v(" "),n.isModelFailed?t("div",{staticClass:"processing-status"},[e._v("\n            "+e._s(e.$t("modelupload.errortips"))+"\n          ")]):e._e()],2),e._v(" "),"ai_painter"!==e.type||e.isMobile||e.editAlbum?e._e():t("div",{staticClass:"cart-button",on:{click:function(t){return t.stopPropagation(),e.handleAddToCart(n)}}},[t("IconfontView",{attrs:{showType:"hs_mian_goumai",customStyle:{fontSize:"20px",color:"rgb(255, 183, 57)"}}})],1),e._v(" "),t("img",{staticClass:"img-loading-placeholder",attrs:{src:e.aspectRatio1,alt:"loading"}}),e._v(" "),t("img",{staticClass:"alubm-img",attrs:{src:e.isAll?"".concat(n.imageUrl,"?x-oss-process=image/resize,").concat(e.ossFormatStr,"/format,webp"):n.imageUrl,alt:"".concat(n.roomType,"-").concat(n.stylerType)},on:{click:function(t){return e.enlargeImg(n)},load:function(t){return e.loadHandler(n.subTaskId)}}})]):[3,4,5].includes(n.processStatus)?t("div",{staticClass:"img-loading"},[t("img",{staticClass:"img-loading-placeholder",attrs:{src:e.aspectRatio1,alt:"loading"}}),e._v(" "),t("div",{staticClass:"img-loading-icon-block"},[t("IconfontView",{attrs:{customClass:"img-shibai-icon",showType:"shibai",customStyle:{fontSize:"80px",color:"#767676"}}}),e._v(" "),t("p",{staticClass:"img-loading-text"},[e._v("\n            "+e._s(e.$t("ai.modeler.upload.error"))+"\n          ")])],1),e._v(" "),t("div",{staticClass:"alubm-img-mask"},[e.isAll?e._e():t("div",{staticClass:"alubm-img-operate",on:{click:function(e){e.stopPropagation()}}},[t("OperateBtn",{attrs:{iconType:"a-22_3dtool_delete"},on:{click:function(t){return e.handleDelete(n)}}},[e._v("\n              "+e._s(e.$t("editProject.content.delete"))+"\n            ")])],1)])]):t("div",{staticClass:"img-loading"},[t("img",{staticClass:"img-loading-placeholder",attrs:{src:e.aspectRatio1,alt:"loading"}}),e._v(" "),t("div",{staticClass:"img-loading-icon-block"},[n.processSchedule>=0&&n.processSchedule<=100?t("span",{staticClass:"img-loading-schedule"},[e._v(e._s("".concat(n.processSchedule,"%")))]):t("IconfontView",{attrs:{customClass:"img-loading-icon",showType:"a-iconloadingcopy",customStyle:{fontSize:"30px",color:"#767676"}}}),e._v(" "),t("p",{staticClass:"img-loading-text"},[e._v("\n            "+e._s(e.$t(0===n.processStatus?"render.status.queue":e.modelProcessingTips||"ai.modeler.uploading"))+"\n          ")])],1)])],1)}),0),e._v(" "),e.bigImgShow?t("div",{staticClass:"browser-mask"},[t("Viewer",{attrs:{type:e.type,showType:e.showType,data:e.selectItem,canDownload:e.canDownload,apply3DToolTips:e.apply3DToolTips,props3DToolClick:e.props3DToolClick},on:{close:e.closePopup,buyMore:e.handleBuyMore,queryAllList:e.queryAlubmAllList,downloadImg:e.downloadImg,deleteImg:e.handleDelete,shareImg:e.shareImg,materialSetting:e.openMaterialPreview}}
1)],1):e._e(),e._v(" "),t("PurchaseModalVue",{attrs:{show:e.showPurchaseModal,taskId:e.currentTaskId,lang:e.locale,onClose:e.handleClosePurchaseModal,onPurchase:e.handlePurchase,spmClick:e.handleSpm}}),e._v(" "),t("MaterialPreviewModal",{attrs:{visible:e.materialPreviewVisible,jid:e.materialPreviewJid},on:{close:e.closeMaterialPreview,confirm:e.handleMaterialPreviewConfirm}})],1)},[],!1,null,"7a07c6bd",null));t.a=I.exports;installComponents(I,{OperateBtn:n(3207).default,RatingBox:n(3216).default,MemberUpgrade:n(3209).default,IconfontView:n(129).default})},3243:function(e,t,n){"use strict";n.r(t);n(23),n(19),n(15),n(31),n(32);var i=n(1),a=(n(65),n(21)),s=n(14);function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach(function(t){Object(i.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var c={name:"TailCom",components:{contactUs:n(969).a},props:{data:{type:Object,default:function(){return{}}}},data:function(){return{value:!1}},computed:o(o({},Object(a.d)(["locale","userInfo"])),{},{subTitle:function(){return this.$t(this.data.subTitleMdsKey).replace("{","<strong>").replace("}","</strong>")},colorFont:function(){return this.$t(this.data.titleMdsKey).replace("{",'<strong style="color:#fecc00;">').replace("}","</strong>")}}),methods:{btnSpm:function(e){var t="solution_".concat(this.$route.params.id);Object(s.c)("/hs_global_web.solution.solution_common_click","page=".concat(t,"&goldFlag=").concat(e,"&member_id=").concat(this.userInfo.uid,"&language=").concat(this.locale))},btnPopMethods1:function(e,t){"contactUs"===this.data.btn1Type&&e.preventDefault(),this.btnSpm(t),"contactUs"===this.data.btn1Type&&(this.value=!0)},btnPopMethods2:function(e,t){"contactUs"===this.data.btn2Type&&e.preventDefault(),this.btnSpm(t),"contactUs"===this.data.btn2Type&&(this.value=!0)}}},l=(n(3951),n(18)),u=Object(l.a)(c,function(){var e=this,t=e._self._c;return t("div",{staticClass:"common-tail-wrap"},[t("div",{staticClass:"tail"},[t("div",{staticClass:"bg"}),e._v(" "),t("h2",{staticClass:"tail_title",domProps:{innerHTML:e._s(e.colorFont)}}),e._v(" "),t("div",{staticClass:"tail_desc"},[t("span",{domProps:{innerHTML:e._s(e.subTitle)}})]),e._v(" "),t("div",{staticClass:"btn"},[e.data.btn1?t("a",{staticClass:"adaptation",attrs:{href:"contactUs"===e.data.btn1Type?"#":e.data.btn1Url,target:e.data.target1},on:{click:function(t){return e.btnPopMethods1(t,e.data.tailBtn1GoldFlag)}}},[e._v("\n        "+e._s(e.$t(e.data.btn1))),t("i",{staticClass:"iconfont icon-arrow"})]):e._e(),e._v(" "),e.data.btn2?t("a",{staticClass:"adaptation btn2",attrs:{href:"contactUs"===e.data.btn2Type?"#":e.data.btn2Url,target:e.data.target2},on:{click:function(t){return e.btnPopMethods2(t,e.data.tailBtn2GoldFlag)}}},[e._v("\n        "+e._s(e.$t(e.data.btn2))),t("i",{staticClass:"iconfont icon-arrow"})]):e._e()])]),e._v(" "),t("contactUs",{model:{value:e.value,callback:function(t){e.value=t},expression:"value"}})],1)},[],!1,null,"0a0c3be8",null);t.default=u.exports},3244:function(e,t,n){"use strict";var i=n(20),a={name:"BreadcrumbNav",props:{items:{type:Array,default:function(){return[]},validator:function(e){return e.every(function(e){return"object"===Object(i.a)(e)&&e.text&&"string"==typeof e.text})}}},methods:{handleItemClick:function(e,t){t!==this.items.length-1&&(this.$emit("item-click",{item:e,index:t}),e.onClick&&"function"==typeof e.onClick&&e.onClick(e,t))}}},s=(n(3911),n(18)),r=Object(s.a)(a,function(){var e=this,t=e._self._c;return t("nav",{staticClass:"breadcrumb"},[t("ul",{staticClass:"breadcrumb__list"},e._l(e.items,function(n,i){return t("li",{key:i,staticClass:"breadcrumb__item",class:{"breadcrumb__item--active":i===e.items.length-1,"breadcrumb__item--clickable":i!==e.items.length-1}},[n.to?t("nuxt-link",{staticClass:"breadcrumb__link",attrs:{to:n.to,title:n.text,target:n.target||"_blank"}},[e._v("\n        "+e._s(n.text)+"\n      ")]):n.onClick?t("span",{staticClass:"breadcrumb__link click",on:{click:n.onClick}},[e._v("\n        "+e._s(n.text)+"\n      ")]):t("span",{staticClass:"breadcrumb__text",attrs:{title:n.text}},[e._v("\n        "+e._s(n.text)+"\n      ")]),e._v(" "),i<e.items.length-1?t("span",{staticClass:"breadcrumb__separator"},[t("i",{staticClass:"arrow iconfont icon-arrow-right"}
1)]):e._e()],1)}),0)])},[],!1,null,"6f469fdf",null);t.a=r.exports},3245:function(e,t,n){"use strict";var i=[function(){var e=this._self._c;return e("div",{staticClass:"edit_info_text"},[e("img",{staticClass:"edit_icon",attrs:{src:n(1791)}})])},function(){var e=this._self._c;return e("a",{staticClass:"styler",attrs:{href:"/workspace/mysubscription"}},[e("img",{staticClass:"styler-icon",attrs:{src:n(1733),alt:"hs_zhanshi_wanjiahuiyuan.svg"}}),this._v("STYLER\n              ")])}],a=(n(23),n(19),n(31),n(32),n(7)),s=n(1),r=(n(38),n(111),n(65),n(15),n(30),n(22),n(21)),o=n(109),c=n(14),l=n(1046),u=n(456),d=n(153),p=n(150),m=n(600),f=n(51),h=n(28),g=n.n(h),v=n(50),b=n(1028),_=n(235);function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach(function(t){Object(s.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var C=Object(v.a)(b.a),O={name:"ProfileCard",components:{ShowMedalTag:u.a,CountryFlagIcons:l.a,SelectedDesignersAvatar:m.a,SelectedDesignerTipListReact:C},mixins:[d.a,p.a],props:{bgImg:{type:String,default:""},owner:{type:Object,default:function(){return{}}},ownerBadgeInfo:{type:Object,default:function(){return{}}}},data:function(){return{selectedDesignerServiceTypeList:[]}},computed:w(w({},Object(r.d)(["locale","userInfo","signIn","memberType","stylerMember","userScores","badgeInfo"])),{},{homestylerId:function(){return this.owner.owner?this.owner.homestylerId:this.userInfo.homestylerId},userAvatar:function(){var e,t=this.owner.avatar;return null!==(e=t)&&void 0!==e&&e.startsWith("http://")&&(t=t.replace("http://","https://")),t?Object(f.d)(t,160):this.defaultAvatar},selectedDesigner:function(){return this.owner.selectedDesigner},userName:function(){var e=this.owner,t=e.firstName,n=e.lastName,i=[t,void 0===n?"":n].filter(function(e){return!!e});return i.length>0?i.join(" "):this.$t("avatar.nickname")},countryId:function(){return this.owner.countryCode2||""},isOfficial:function(){var e;return!(null===(e=this.owner.userTags)||void 0===e||!e.includes("OFFICIAL"))},officialIcon:function(){return g.a.officialIcon},imAvailable:function(){return this.selectedDesigner&&this.signIn}}),watch:{imAvailable:{handler:function(){var e=this;this.selectedDesigner&&Object(_.d)({designerUmsId:this.owner.uid||this.owner.id,locale:this.locale}).then(function(t){e.selectedDesignerServiceTypeList=null==t?void 0:t.serviceTypeList,e.$emit("setDesignerInfo",t)})},immediate:!0}},created:function(){this.getUserScores(),this.getScoresOverdue()},mounted:function(){this.getProfileInfo()},methods:w(w({},Object(r.b)(["getProfileInfo"])),{},{isMemberType:function(e){return!this.owner.owner&&this.memberType===e||this.owner.memberType===e&&this.owner.owner},isStylerMember:function(){return!this.owner.owner&&this.stylerMember||this.owner.stylerMember&&this.owner.owner},getScoresOverdue:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark(function t(){var n;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=1,o.a.gscore.scoresOverdue();case 1:(n=t.sent).data&&e.$store.commit("SET_OVERDUESCORE",n.data),t.next=3;break;case 2:t.prev=2,t.catch(0);case 3:case"end":return t.stop()}},t,null,[[0,2]])}))()},showIntegrai:function(){window.location.href="/myPoint",Object(c.c)("/hs_global_web.my_design.points_click","member_id=".concat(this.userInfo.uid,"&language=").concat(this.locale))},goToSub:function(){this.$router.push("/workspace/mysubscription")},goToEditInfo:function(){this.owner.owner||(Object(c.c)("/hs_global_web.my_design.changeavater_click","isProfileCard=true"),window.open("/profile","_self"))}})}
1,k=(n(4043),n(18)),I=Object(k.a)(O,function(){var e,t=this,i=t._self._c;return i("div",{staticClass:"profile-warp-mask"},[i("div",{staticClass:"profile-warp"},[i("div",{staticClass:"user-warp"},[i("div",{class:t.owner.owner?"user-avater":"user-avater user-avater-edit",on:{click:t.goToEditInfo}},[t.selectedDesigner?i("SelectedDesignersAvatar",{staticClass:"selected-designers-avater",attrs:{showPopover:!0,src:t.userAvatar}}):i("img",{staticClass:"avater",attrs:{src:t.userAvatar,alt:"user-avatar"}}),t._v(" "),t.isOfficial?i("img",{staticClass:"user-official-icon",attrs:{src:t.officialIcon}}):t._e(),t._v(" "),t.selectedDesigner?t._e():i("img",{staticClass:"user-red",attrs:{src:n(1023)}}),t._v(" "),t.owner.owner?t._e():i("div",{staticClass:"edit_info"},[t._m(0)])],1),t._v(" "),i("div",{staticClass:"info-warp"},[i("div",{staticClass:"info-wrap-inner"},[i("h2",{staticClass:"name"},[t._v("\n            "+t._s(t.userName)+"\n          ")]),t._v(" "),i("div",{staticClass:"point-warp"},[t.isMemberType(1)?t._e():i("div",{staticClass:"memberIcon"},[t.isMemberType(2)?i("div",{staticClass:"flex-center"},[i("div",{staticClass:"memberType-icon pro",on:{click:t.goToSub}}),t._v(" "),i("span",{on:{click:t.goToSub}},[t._v("PRO")])]):t.isMemberType(3)?i("div",{staticClass:"flex-center"},[i("div",{staticClass:"memberType-icon master",on:{click:t.goToSub}}),t._v(" "),i("span",{on:{click:t.goToSub}},[t._v("MASTER")])]):t._e()]),t._v(" "),t.isStylerMember()?i("div",{staticClass:"memberIcon"},[t._m(1)]):t._e(),t._v(" "),t.owner.owner?t._e():i("div",{staticClass:"line"}),t._v(" "),t.owner.owner?t._e():i("div",{staticClass:"score-inline",on:{click:t.showIntegrai}},[i("div",{staticClass:"integrai-icon"}),t._v(" "),i("span",{staticClass:"score"},[t._v(t._s(t.userScores)),i("i",{staticClass:"iconfont icon-more"})])])])]),t._v(" "),t.homestylerId?i("div",{staticClass:"homestyler-id"},[t.isOfficial?i("span",{staticClass:"official-text"},[i("span",{staticClass:"official-text-inner"},[t._v(t._s(t.$t("homeseek_official")))]),i("span",{staticClass:"shuxian"},[t._v("|")])]):t._e(),t._v(" "),i("el-tooltip",{attrs:{effect:"dark",content:t.owner.countryName,placement:"top"}},[i("CountryFlagIcons",{attrs:{countryId:t.countryId}})],1),t._v(" "),i("span",[t._v(t._s("ID: @".concat(t.homestylerId)))]),t._v(" "),i("div",{staticClass:"show-medal-outter"},[t.owner.owner?i("ShowMedalTag",{attrs:{hasMedalLink:!0,size:"big",badgeInfo:t.ownerBadgeInfo,isSelf:!1}}):i("ShowMedalTag",{attrs:{hasMedalLink:!0,size:"big",badgeInfo:t.badgeInfo,isSelf:!0}})],1)],1):t._e(),t._v(" "),null!==(e=t.selectedDesignerServiceTypeList)&&void 0!==e&&e.length?i("SelectedDesignerTipListReact",{attrs:{theme:"dark",serviceTypeList:t.selectedDesignerServiceTypeList}}):t._e(),t._v(" "),i("p",{staticClass:"des"},[t._v("\n          "+t._s(t.owner.description)+"\n        ")])],1)]),t._v(" "),i("div",{staticClass:"mobile-warp"},[i("p",{staticClass:"des"},[t._v("\n        "+t._s(t.owner.description)+"\n      ")])]),t._v(" "),i("div",[t._t("default")],2)])])},i,!1,null,"217522e8",null);t.a=I.exports},3246:function(e,t,n){"use strict";n(252),n(23),n(19),n(15),n(31),n(32);var i=n(1),a=n(21),s=n(14),r=n(24);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach(function(t){Object(i.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var l={name:"GiftCardBtn",props:{customClass:{type:String,default:""}},computed:c(c({},Object(a.d)(["userInfo","locale"])),{},{link:function(){return"".concat(this.$global.homestyler,"/").concat(Object(r.J)(this.locale),"/ai-studio")}}),methods:{openGiftCardPage:function(){Object(s.c)("/hs_global_web.homepage.open_gift_card_clk","member_id=".concat(this.userInfo.uid,"&language=").concat(this.locale))}}},u=(n(4067),n(18)),d=Object(u.a)(l,function(){var e=this;return(0,e._self._c)("a",{class:["post_design_fixed",e.customClass],attrs:{href:e.link,target:"_blank"},on:{click:e.openGiftCardPage}})},[],!1,null,"3ea6ec62",null);t.a=d.exports},3247:function(e,t,n){"use strict";n(23),n(19),n(15),n(31),n(32);var i=n(8),a=n(7),s=n(1),r=(n(38),n(30),n(22),n(25),n(73),n(21)),o=n(61),c=n(12);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?l(Object(n),!0).forEach(function(t){Object(s.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var d={name:"PricingBasic",data:function(){return{list:[{scores:[{actionType:o.z,score:9}],allowUseScore:!0,unit:"pricing2.unit4"},{scores:[{actionType:o.A,score:-1,needtobuy:!0}],allowUseScore:!0,unit:"pricing2.unit4"},{scores:[{actionType:o.cb,score:9,label:"2K: "},{actionType:o.db,score:49,label:"4K: "}],allowUseScore:!0,unit:"pricing2.unit4"},{scores:[{actionType:o.eb,score:-1,label:"8K: "},{actionType:o.bb,score:-1,label:"12K: "}],allowUseScore:!1,unit:"pricing2.unit4"},{scores:[{actionType:o.Lb,score:199,label:"540p: "},{actionType:o.Nb,score:399,label:"720p: "},{actionType:o.Jb,score:-1,needtobuy:!0,label:"1080p: "}],allowUseScore:!0,unit:"pricing2.unit3"}]}},computed:u({},Object(r.d)(["locale"])),mounted:function(){this.getAuthorityDetail()},methods:{getAuthorityDetail:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark(function t(){var n,a,s;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=1,c.a.pricing.authorityDetail();case 1:(n=t.sent)&&n.ret&&n.ret[0].includes("SUCCESS")&&n.data&&(a=n.data.data||{},(s=a.scores)&&s.length&&(e.list=e.list.map(function(e){var t=e.scores.reduce(function(e,t){var n=s.find(function(e){return e.actionType===t.actionType});return n&&n.score?[].concat(Object(i.a)(e),[u(u({},t),{},{score:n.score,needtobuy:!1})]):t.needtobuy?[].concat(Object(i.a)(e),[u({},t)]):e},[]);return u(u({},e),{},{scores:t,allowUseScore:t.length>0})}))),t.next=3;break;case 2:t.prev=2,t.catch(0);case 3:case"end":return t.stop()}},t,null,[[0,2]])}))()}}},p=(n(4070),n(18)),m=Object(p.a)(d,function(){var e=this,t=e._self._c;return t("ul",[t("li",[t("span",[e._v(e._s(e.$t("pricing.unlimited")))])]),e._v(" "),e._l(e.list,function(n,i){return t("li",{key:i,class:!n.allowUseScore&&"flex-center-center pricing_no"},[n.allowUseScore&&n.scores&&n.scores.length?e._l(n.scores,function(i,a){return t("span",{key:a,staticClass:"flex-center-center"},[i.needtobuy?[i.label?t("span",[e._v(e._s(i.label))]):e._e(),e._v(" "),t("span",[e._v(e._s(e.$t("pricing2.needtobuy")))])]:[i.label?t("span",[e._v(e._s(i.label))]):e._e(),e._v(" "),t("span",{staticClass:"pricing_num"},[t("span",{staticClass:"num"},[e._v(e._s(i.score))]),e._v(" "),t("span",[e._v(e._s(e.$t(n.unit)))])])]],2)}):e._e()],2)}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_no"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_no"})],2)},[],!1,null,"1da96528",null);t.a=m.exports},3248:function(e,t,n){"use strict";n(23),n(19),n(15),n(31),n(32);var i=n(7),a=n(1),s=(n(38),n(21)),r=n(12),o=n(24);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach(function(t){Object(a.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var u={name:"contactUsBusiness",props:{value:{type:Boolean,default:!1},type:{type:String,default:""}},data:function(){return{email:"",errorEmail:!1,description:"",requesting:!1}},computed:l(l({},Object(s.d)(["locale","userInfo"])),{},{btnDisabled:function(){return!this.email||!this.description}}),methods:{handleClose:function(){this.reset(),this.$emit("input",!1)},reset:function(){this.email="",this.description=""},inputChange:function(){this.errorEmail=this.email&&!Object(o.X)(this.email)},submit:function(){var e=this;return Object(i.a)(regeneratorRuntime.mark(function t(){var n;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.btnDisabled&&!e.requesting){t.next=1;break}return t.abrupt("return");case 1:if(Object(o.X)(e.email)){t.next=2;break}return e.errorEmail=!0,t.abrupt("return",e.$message.error(e.$t("formatwrong.hbw")));case 2:return e.requesting=!0,t.prev=3,t.next=4,r.a.other.suggestInfo({data:{name:"".concat(e.userInfo.userFirstName," ").concat(e.userInfo.userLastName),businessEmail
1:e.email,subject:4,businessRequest:e.description}});case 4:n=t.sent,0===n.data.status.code?(e.$message({type:"success",duration:3e3,message:e.$t("success")}),e.handleClose()):e.$message.error(e.$t("coupon.wrong")),e.requesting=!1,t.next=6;break;case 5:t.prev=5,t.catch(3),e.requesting=!1;case 6:case"end":return t.stop()}},t,null,[[3,5]])}))()}}},d=(n(4100),n(18)),p=Object(d.a)(u,function(){var e=this,t=e._self._c;return t("el-dialog",{attrs:{width:"840px",visible:e.value,"show-close":!1,"append-to-body":!0}},[t("div",{staticClass:"dialog-title",attrs:{slot:"title"},slot:"title"},[t("span",{staticClass:"el-dialog__title"},[e._v(e._s(e.$t("contact.title")))]),e._v(" "),t("a",{staticClass:"dialog-close-btn",on:{click:e.handleClose}},[t("img",{attrs:{src:n(834),alt:"close.png"}})])]),e._v(" "),t("div",{staticClass:"contact-us-wrapper"},[t("el-row",[t("el-col",{attrs:{span:24}},[t("div",{staticClass:"contact-us-input-wrapper",class:{error:e.errorEmail}},[t("label",{staticClass:"contact-us-label"},[e._v(e._s(e.$t("contact.email"))+" *")]),e._v(" "),t("el-input",{class:{fill:e.email},attrs:{placeholder:e.$t("contact.emailblank"),maxlength:"100"},on:{input:e.inputChange},model:{value:e.email,callback:function(t){e.email=t},expression:"email"}}),e._v(" "),e.errorEmail?t("p",{staticClass:"contact-us-error"},[e._v(e._s(e.$t("formatwrong.hbw")))]):e._e()],1)])],1),e._v(" "),t("el-row",[t("el-col",{attrs:{span:24}},[t("div",{staticClass:"contact-us-input-wrapper"},[t("label",{staticClass:"contact-us-label"},[e._v(e._s(e.$t("invoice.fillin.contactus"))+" *")]),e._v(" "),t("el-input",{class:{fill:e.description},attrs:{type:"textarea",rows:4,placeholder:e.$t("invoice.fillin.contactus"),maxlength:"500"},model:{value:e.description,callback:function(t){e.description=t},expression:"description"}})],1)])],1),e._v(" "),t("div",{staticClass:"contact-us-footer"},[t("a",{staticClass:"contact-us-btn",class:{disabled:e.btnDisabled},attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.submit.apply(null,arguments)}}},[e._v(e._s(e.$t("web_hashtag_submit")))])])],1)])},[],!1,null,"1fd86029",null);t.a=p.exports},3249:function(e,t,n){"use strict";n(44),n(23),n(19),n(15),n(31),n(32);var i=n(7),a=n(1),s=(n(38),n(30),n(22),n(21)),r=n(12),o=n(170),c=n(129),l=n(24);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach(function(t){Object(a.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var p={name:"teamLicenseModal",components:{rectLoad:o.a,IconfontView:c.default},props:{invoiceVisible:{type:Boolean,default:!1},orderData:{type:Object,default:function(){}}},data:function(){return{invoiceMsg:{email:"",name:"",address:"",taxCode:"",extraInfo:""},errorEmail:!1,confirmSubmit:!1,invoiceShow:!1,step:1,submitLoading:!1}},computed:d(d({},Object(s.d)(["locale","userInfo","signIn","groupInfo"])),{},{isContentEmpty:function(){return this.errorEmail||!this.invoiceMsg||!this.invoiceMsg.email||!this.invoiceMsg.name||!this.invoiceMsg.address}}),watch:{invoiceVisible:function(e){e?(this.step1Show(),this.getInvoiveData(),this.invoiceShow=!0):this.invoiceShow=!1}},methods:{timeformat:l.R,getInvoiveData:function(){2===this.orderData.invoiceStatus?this.queryInvoiceDetail():void 0===this.orderData.invoiceStatus&&this.queryUserTemplate()},step1Show:function(){this.confirmSubmit=!1,this.step=1},inputChange:function(){this.errorEmail=this.invoiceMsg.email&&!Object(l.X)(this.invoiceMsg.email)},queryUserTemplate:function(){var e=this;return Object(i.a)(regeneratorRuntime.mark(function t(){var n,i;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=1,r.a.invoice.queryUserTemplate();case 1:(n=t.sent)&&n.ret&&n.ret[0].includes("SUCCESS")&&n.data&&(i=n.data.data)&&(e.invoiceMsg=i),t.next=3;break;case 2:t.prev=2,t.catch(0);case 3:case"end":return t.stop()}},t,null,[[0,2]])}))()},queryInvoiceDetail:function(){var e=this;return Object(i.a)(regeneratorRuntime.mark(function t(){var n,i,a;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n={invoiceId:e.orderData.invoiceId},t.prev=1,t.next=2,r.a.invoice.queryInvoiceDetail({data:n});case 2:(i=t.sent)&&i.ret&&i.ret[0].includes("SUCCESS")&&i.data&&(a=i.data.data)&&(e.invoiceMsg=a),t.next=4;break;case 3:t.prev=3,t.catch(1);case 4:case"end":return t.stop()}},t,null,[[1,3]])}
1))()},submit:function(){2===this.orderData.invoiceStatus?this.updateInvoice():void 0===this.orderData.invoiceStatus&&this.createInvoice()},closeInvoice:function(){this.$emit("closeInvoice")},updateInvoice:function(){var e=this;return Object(i.a)(regeneratorRuntime.mark(function t(){var n,i,a,s,o,c,l,u;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.invoiceMsg,i=n.email,a=n.name,s=n.address,o=n.taxCode,c=n.extraInfo,l={email:i,name:a,address:s,taxCode:o,extraInfo:c,invoiceId:e.orderData.invoiceId},t.prev=1,t.next=2,r.a.invoice.updateInvoice({data:l});case 2:(u=t.sent)&&u.ret&&u.ret[0].includes("SUCCESS")&&u.data?(e.$message.success(e.$t("success")),e.closeInvoice(),e.$emit("changeSuccess")):e.$message.success(e.$t("coupon.wrong")),t.next=4;break;case 3:t.prev=3,t.catch(1);case 4:case"end":return t.stop()}},t,null,[[1,3]])}))()},createInvoice:function(){var e=this;return Object(i.a)(regeneratorRuntime.mark(function t(){var n,i,a,s,o,c,l,u,d,p,m;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e.submitLoading=!0,n=e.invoiceMsg,i=n.email,a=n.name,s=n.address,o=n.taxCode,c=n.extraInfo,l=e.orderData,u=l.orderId,d=l.detailCodeId,p={email:i,name:a,address:s,taxCode:o,extraInfo:c,orderId:u,detailCodeId:d},t.prev=1,!e.groupInfo.groupId){t.next=3;break}return t.next=2,r.a.invoice.createTeamInvoice({data:p});case 2:m=t.sent,t.next=5;break;case 3:return t.next=4,r.a.invoice.createInvoice({data:p});case 4:m=t.sent;case 5:m&&m.ret&&m.ret[0].includes("SUCCESS")&&m.data?(e.$message.success(e.$t("success")),e.closeInvoice(),e.$emit("changeSuccess")):e.$message.success(e.$t("coupon.wrong")),t.next=7;break;case 6:t.prev=6,t.catch(1);case 7:e.submitLoading=!1;case 8:case"end":return t.stop()}},t,null,[[1,6]])}))()}}},m=(n(4101),n(4102),n(18)),f=Object(m.a)(p,function(){var e=this,t=e._self._c;return t("el-dialog",{attrs:{width:"500px",visible:e.invoiceShow,appendToBody:""},on:{"update:visible":function(t){e.invoiceShow=t},close:e.closeInvoice}},[t("div",{staticClass:"dialog-title"},[t("span",{staticClass:"el-dialog__title"},[e.confirmSubmit?t("i",{staticClass:"iconfont icon_start",on:{click:e.step1Show}}):e._e(),e._v("\n      "+e._s(e.confirmSubmit?e.$t("invoice.fillin.confirm"):e.$t("invoice.fillin.title"))+"\n    ")])]),e._v(" "),t("div",{staticClass:"invoice-content"},[t("div",{staticClass:"tips"},[t("i",{staticClass:"iconfont icon-zhuyi"}),e._v(" "),t("span",{staticClass:"tips-text"},[e._v("\n        "+e._s(e.confirmSubmit?e.$t("invoice.fillin.confirm.hint"):e.$t("invoice.fillin.title.hint"))+"\n      ")])]),e._v(" "),t("div",{staticClass:"item"},[t("div",{staticClass:"title"},[e._v(e._s(e.$t("invoice.fillin.ctn1"))+"*")]),e._v(" "),t("div",{staticClass:"team-create-left"},[t("el-input",{attrs:{type:"text",autofocus:"",maxlength:"100",disabled:e.confirmSubmit,placeholder:e.$t("invoice.fillin.ctn1.hint")},on:{input:e.inputChange},model:{value:e.invoiceMsg.email,callback:function(t){e.$set(e.invoiceMsg,"email",t)},expression:"invoiceMsg.email"}}),e._v(" "),e.errorEmail?t("p",{staticClass:"contact-us-error"},[e._v(e._s(e.$t("formatwrong.hbw")))]):e._e()],1)]),e._v(" "),t("div",{staticClass:"item"},[t("div",{staticClass:"title"},[e._v(e._s(e.$t("invoice.fillin.ctn2"))+"*")]),e._v(" "),t("div",{staticClass:"team-create-left"},[t("el-input",{attrs:{type:"text",autofocus:"",maxlength:"100",disabled:e.confirmSubmit,placeholder:e.$t("invoice.fillin.ctn2.hint")},model:{value:e.invoiceMsg.name,callback:function(t){e.$set(e.invoiceMsg,"name",t)},expression:"invoiceMsg.name"}})],1)]),e._v(" "),1===e.step||e.invoiceMsg.address?t("div",{staticClass:"item"},[t("div",{staticClass:"title"},[e._v(e._s(e.$t("invoice.fillin.ctn3"))+"*")]),e._v(" "),t("div",{staticClass:"team-create-left"},[t("el-input",{attrs:{type:"text",autofocus:"",maxlength:"100",disabled:e.confirmSubmit,placeholder:e.$t("invoice.fillin.ctn3.hint")},model:{value:e.invoiceMsg.address,callback:function(t){e.$set(e.invoiceMsg,"address",t)},expression:"invoiceMsg.address"}})],1)]):e._e(),e._v(" "),1===e.step||e.invoiceMsg.taxCode?t("div",{staticClass:"item"},[t("div",{staticClass:"title"},[e._v(e._s(e.$t("invoice.fillin.ctn4")))]),e._v(" "),t("div",{staticClass:"team-create-left"},[t("el-input",{attrs:{type:"text",autofocus:"",maxlength:"100",disabled:e.confirmSubmit,placeholder:e.$t("invoice.fillin.ctn4.hint")},model:{value:e.invoiceMsg.taxCode,callback:function(t){e.$set(e.invoiceMsg,"taxCode",t)},expression:"invoiceMsg.taxCode"}}
1)],1)]):e._e(),e._v(" "),1===e.step||e.invoiceMsg.extraInfo?t("div",{staticClass:"item"},[t("div",{staticClass:"title"},[e._v(e._s(e.$t("invoice.fillin.ctn5")))]),e._v(" "),t("div",{staticClass:"team-create-left"},[t("el-input",{attrs:{type:"text",autofocus:"",maxlength:"100",disabled:e.confirmSubmit,placeholder:e.$t("invoice.fillin.ctn5.hint")},model:{value:e.invoiceMsg.extraInfo,callback:function(t){e.$set(e.invoiceMsg,"extraInfo",t)},expression:"invoiceMsg.extraInfo"}})],1)]):e._e()]),e._v(" "),t("div",[e.confirmSubmit?t("el-button",{staticClass:"submit confirm",attrs:{type:"primary",loading:e.submitLoading},on:{click:e.submit}},[e._v(e._s(e.$t("invoice.fillin.confirm.button")))]):t("el-button",{staticClass:"submit",class:{confirm:!e.isContentEmpty},attrs:{type:"primary",disabled:e.isContentEmpty},on:{click:function(t){e.confirmSubmit=!0,e.step=2}}},[e._v(e._s(e.$t("pricing.contact.submit")))])],1)])},[],!1,null,"53903c06",null);t.a=f.exports},3252:function(e,t,n){"use strict";n.d(t,"a",function(){return l}),n.d(t,"c",function(){return u}),n.d(t,"b",function(){return d});n(23),n(19),n(31),n(32);var i=n(2),a=n(1),s=(n(344),n(69),n(15),n(25),n(162),n(53)),r=n(3319);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach(function(t){Object(a.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function l(e){var t=s.default.aidaRate.queryAward({data:{clientInfo:JSON.stringify(c(c({},Object(s.getClientInfo)()),{},{platform:e}))},options:{timeout:3e4}});return Object(s.handleMtopPromiseResult)(t)}function u(e){return null!=e&&e.length?c(c({},p[r.b.GOLD]),{},{items:e.filter(function(e){return e.judgeScore.contestRank===r.b.GOLD}).slice(0,5)}):c(c({},p[r.b.GOLD]),{},{items:new Array(p[r.b.GOLD].defaultCount).fill(null)})}function d(e){return null!=e&&e.length?Object.entries(p).filter(function(e){var t=Object(i.a)(e,2);t[0];return!t[1].top}).map(function(t){var n=Object(i.a)(t,2),a=(n[0],n[1]);return c(c({},a),{},{items:e.filter(function(e){return e.judgeScore.contestRank===a.key})})}):Object.entries(p).filter(function(e){var t=Object(i.a)(e,2);t[0];return!t[1].top}).map(function(e){var t=Object(i.a)(e,2),n=(t[0],t[1]);return c(c({},n),{},{items:new Array(n.defaultCount).fill(null)})})}var p=Object(a.a)(Object(a.a)(Object(a.a)(Object(a.a)(Object(a.a)({},r.b.GOLD,{key:r.b.GOLD,title:"aida.award.10",defaultCount:5,top:!0,order:1,icon:"https://img.alicdn.com/imgextra/i2/O1CN01OtauRd1dJWVWs3863_!!6000000003715-2-tps-160-160.png"}),r.b.Excellence,{key:r.b.Excellence,title:"aida.award.20",defaultCount:10,order:2,icon:"https://img.alicdn.com/imgextra/i4/O1CN01LVtoP61MntInONTcQ_!!6000000001480-2-tps-160-160.png"}),r.b.Merit,{key:r.b.Merit,title:"aida.award.30",defaultCount:50,order:3,icon:"https://img.alicdn.com/imgextra/i2/O1CN01v3Chmh1M7IT3LFfKz_!!6000000001387-2-tps-160-160.png"}),r.b.DESIGN_PROMOTION,{key:r.b.DESIGN_PROMOTION,title:"aida.award.40",defaultCount:200,order:4,icon:"https://img.alicdn.com/imgextra/i4/O1CN01WP0Lza1SRLV5E6Gnq_!!6000000002243-2-tps-160-160.png"}),r.b.AI_PROMOTION,{key:r.b.AI_PROMOTION,title:"aida.award.50",defaultCount:5,order:5,icon:"https://img.alicdn.com/imgextra/i3/O1CN01U3hg0f1qzk1bJaPvw_!!6000000005567-2-tps-320-320.png",pcRowItemCount:5,hiddenRankListPlaceholder:!0,descTextKey:"aida.award.50.desc"})},3253:function(e,t,n){"use strict";n.d(t,"b",function(){return m}),n.d(t,"a",function(){return f});var i=n(1),a=n(24),s=n(3319),r=n(28),o=n.n(r),c=n(448),l=n(648),u=n(14),d=Object(i.a)(Object(i.a)(Object(i.a)({},s.a.appDesign,{getAppUrl:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"homestyler://m.homestyler.com/appDetail?designId=".concat(e.id,"&sourcePage=").concat(t)},getWebUrl:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"".concat(o.a.release,"/ai-interior-design-detail/").concat(Object(a.c)(e.title),"-mobile-").concat(e.caseId||e.id,"?sourcePage=").concat(t)},openAppPage:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object(c.a)({event:"clickAppDetail",params:{designId:e.id,HSAuthor:e.author,sourcePage:t}})},likeTargetType:101}),s.a.webDesign,{getAppUrl:function(e,t){return"homestyler://m.homestyler.com/galleryImmersion?designId=".concat(e.id,"&casefrom=1&sourcePage=").concat(t)},getWebUrl:function(e,t){return"".concat(o.a.release,"/ai-interior-design-detail/").concat(Object(a.c)(e.title),"-web-").concat(e.caseId||e.id,"?sourcePage=").concat(t)},openAppPage:function(e,t){return Object(c.a)({event:"clickWebDetail",params:{designId:e.id,HSAuthor:e.author,sourcePage:t}})},likeTargetType:102}),s.a.topic,{getAppUrl:function(e,t){return"homestyler://m.homestyler.com/topicDetail?topicId=".concat(e.id,"&sourcePage=").concat(t)},getWebUrl:function(e,t){return"".concat(o.a.release,"/ai-interior-design-detail/").concat(Object(a.c)(e.title),"-story-").concat(e.caseId||e.id,"?sourcePage=").concat(t)},openAppPage:function(e,t){return Object(c.a)({event:"clickTopicDetail",params:{topicId:e.id,HSAuthor:e.author,sourcePage:t}})},likeTargetType:8}),p=function(){var e,t;return null!==l.a&&void 0!==l.a&&null!==(e=l.a.isHomestylerApp)&&void 0!==e&&e.call(l.a)||null!==l.a&&void 0!==l.a&&null!==(t=l.a.isWindvane)&&void 0!==t&&t.call(l.a)?"app":"web"};function m(e){if(Object(u.d)("/hs.global_web.AIDA_award.click_design",{design_id:e.id,biz_type:e.bizType,author_id:e.author.id}),"app"===p())d[e.bizType].openAppPage(e,"aida-award");else{var t=d[e.bizType].getWebUrl(e,"aida-award");window.open(t,"_blank")}}var f=function(e){if(Object(u.d)("/hs.global_web.AIDA_award.click_avatar",{author_id:e.id,homestyler_id:e.homestylerId}),"ezhome"!==o.a.tenant){var t="".concat(o.a.release,"/").concat(e.homestylerId),n=("homestyler://m.homestyler.com/userProfile?uid=".concat(e.id),p());"app"===n?Object(c.a)({event:"clickUserProfile",params:{uid:e.id}}):"web"===n&&window.open(t,"_blank")}}},3254:function(e,t,n){"use strict";n.r(t),n.d(t,"isVideo",function(){return s}),n.d(t,"ossResizeUrl",function(){return r}),n.d(t,"ossResizeVideo",function(){return o}
1),n.d(t,"getCompressedUrl",function(){return c}),n.d(t,"getCompressedAvatar",function(){return l});n(30),n(22);var i=n(28),a=n.n(i);function s(e){return/\.mp4$/i.test(e)}function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:300,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{webp:!1};return e?"".concat(e,"?x-oss-process=image/resize,w_").concat(t,",m_lfit").concat(n.webp?"/format,webp":""):""}function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:300,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return e?"".concat(e,"?x-oss-process=video/snapshot,t_").concat(n,",f_jpg,w_").concat(t).concat(1===n?",m_fast":""):""}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:300;return e?s(e)?o(e,t):r(e,t,{webp:!0}):""}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:130;return e?function(e){return!!e&&[/pbs\.twimg\.com/,/userapi\.com/,/facebook\.com/,/graph\.facebook\.com/].some(function(t){return t.test(e)})}(e)||e.includes("x-oss-process=image")||s(e)?e:r(e,t,{webp:!0}):a.a.defaultAvatar}},3255:function(e,t,n){"use strict";n.d(t,"b",function(){return s}),n.d(t,"a",function(){return a});var i=n(1),a=function(e){return e[e.DESIGN_TEMPLATE=1]="DESIGN_TEMPLATE",e[e.HOUSE_TEMPLATE=2]="HOUSE_TEMPLATE",e[e.MODEL_PACKAGE=3]="MODEL_PACKAGE",e[e.MODEL=4]="MODEL",e}(a||{}),s=Object(i.a)(Object(i.a)(Object(i.a)(Object(i.a)({},a.DESIGN_TEMPLATE,{name:"designTemplate",label:"房间模板"}),a.HOUSE_TEMPLATE,{name:"houseTemplate",label:"户型模板"}),a.MODEL_PACKAGE,{name:"modelPackage",label:"模型专题"}),a.MODEL,{name:"model",label:"模型"})},3256:function(e,t,n){"use strict";var i=n(7),a=(n(38),n(30),n(22),n(188)),s=n(141),r=n(109),o=n(12);t.a={mixins:[s.a,a.a],computed:{getCurrentSource:function(){return this.$route.path.includes("challenge")?"web_game_page":this.$route.path.includes("gallery")?"web_gallery_design_page":this.$route.path.includes("projectDetail")||this.$route.path.includes("mobile-design")?"web_design_detail":this.$route.path.includes("search/design")?"web_search_design_page":this.$route.path.includes("mydesigns")?"web_homepage_design_page":this.$route.path.includes("user")?"web_homepage_other_design_page":this.$route.path.includes("design-ideas-tag")?"web_homepage_hashtag_page":this.$route.path.includes("forum")?"web_bbs_post":this.$route.path.includes("learn-help")?"web_bbs_document":this.$route.path.includes("/")?"web_home_design_page":"common_design_page"}},methods:{toogleLike:function(e){this.signIn?this.setLoginInfo("login"):Object.prototype.hasOwnProperty.call(e,"privateStatus")&&0===e.privateStatus||(e.isLike?e.source?this.cancelMobileLike(e.caseId,e):this.cancelLike(e.caseId,e):e.source?this.addMobileLike(e.caseId,e):this.addLike(e.caseId,e))},addLike:function(e,t){var n=this;r.a.gallery.addLike({caseId:e,platform:1,type:101},!1,{Authorization:this.getSessionKey()}).then(function(e){var i=e.status,a=void 0===i?{}:i;a&&0===a.code&&(t.isLike=!0,n.$emit("update:isLike",!0),n.handleLikesCount(t))})},cancelLike:function(e,t){var n=this;r.a.gallery.delLike({caseId:e,platform:1},!1,{Authorization:this.getSessionKey()}).then(function(e){var i=e.status,a=void 0===i?{}:i;a&&0===a.code&&(t.isLike=!1,n.$emit("update:isLike",!1),n.handleLikesCount(t,-1))})},addMobileLike:function(e,t){var n=this;return Object(i.a)(regeneratorRuntime.mark(function i(){var a,s;return regeneratorRuntime.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return a={itemId:e,type:"design",clientInfo:JSON.stringify({platform:"web"})},i.prev=1,i.next=2,o.a.mobileApi.likeAdd({data:a});case 2:(s=i.sent)&&s.ret&&s.ret[0].includes("SUCCESS")&&s.data.result&&(t.isLike=!0,n.$emit("update:isLike",!0),n.handleLikesCount(t)),i.next=4;break;case 3:i.prev=3,i.catch(1);case 4:case"end":return i.stop()}},i,null,[[1,3]])}))()},cancelMobileLike:function(e,t){var n=this;return Object(i.a)(regeneratorRuntime.mark(function i(){var a,s;return regeneratorRuntime.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return a={itemId:e,type:"design",clientInfo:JSON.stringify({platform:"web"})},i.prev=1,i.next=2,o.a.mobileApi.likeCancel({data:a});case 2:(s=i.sent)&&s.ret&&s.ret[0].includes("SUCCESS")&&s.data.result&&(t.isLike=!1,n.$emit("update:isLike",!1),n.handleLikesCount(t,-1)),i.next=4;break;case 3:i.prev=3,i.catch(1);case 4:case"end":return i.stop()}},i,null,[[1,3]])}
1))()},handleLikesCount:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=e.likesCount+t;n<0&&(n=0),e.likesCount=n,this.$emit("update:likesCount",n)},getUserLikes:function(){var e=this;return Object(i.a)(regeneratorRuntime.mark(function t(){var n,i,a;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,r.a.gallery.getUserLikes({},!1,{Authorization:e.getSessionKey()});case 1:n=t.sent,i=n.status,a=n.data,0===i.code?e.likesArr=a.list:e.likesArr=[];case 2:case"end":return t.stop()}},t)}))()}}}},3258:function(e,t,n){"use strict";n(23),n(19),n(31),n(32);var i=n(7),a=n(8),s=n(1),r=(n(38),n(62),n(30),n(22),n(15),n(111),n(44),n(37),n(232)),o=n.n(r),c=n(21),l=n(109),u=n(12),d=n(61),p=n(591),m=(n(65),n(14)),f=n(28),h=n.n(f),g=n(51),v={props:{src:{type:String,default:"",size:{type:Number,default:130}}},data:function(){return{avatarLoadError:!1}},computed:{avatar:function(){return!this.src||this.avatarLoadError?h.a.defaultAvatar:Object(g.d)(this.src,this.size||130)},imgStyler:function(){return this.size?{width:"".concat(this.size,"px"),height:"".concat(this.size,"px")}:{}}},methods:{handleAvatarLoadError:function(){this.avatarLoadError=!0}}},b=(n(4120),n(18)),_=Object(b.a)(v,function(){var e=this,t=e._self._c;return t("div",{staticClass:"avatar-wrapper",style:e.imgStyler},[t("img",{staticClass:"avatar",attrs:{src:e.avatar},on:{error:e.handleAvatarLoadError}}),e._v(" "),e._t("default")],2)},[],!1,null,null,null).exports,y=n(1046),w=n(450),C=n(3840),O=n(476),k=n(3841),I=n(190),S=n(188),j=n(141);function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T(Object(n),!0).forEach(function(t){Object(s.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var A={name:"FollowCom",components:{followBtn:w.a,FollowModal:C.a,mgmBtn:k.a},mixins:[S.a,j.a],props:{designNumber:{type:Number,default:0},following:{type:Number,default:0},follower:{type:Number,default:0},likes:{type:Number,default:0},isSelf:{type:Boolean,default:!1},uid:{type:String,default:""},btnStatus:{type:Number,default:0},userName:{type:String,default:""},showHandle:{type:Boolean,default:!0},selectedDesigner:{type:Boolean,default:!1},designerInfo:{type:Object,default:function(){return{}}},owner:{type:Object,default:function(){return{}}}},data:function(){return{modal:{type:"following",show:!1},imVisible:!1,mgmBtnShow:!1}},computed:x({},Object(c.d)(["userInfo","locale","mgmShow","pricingActivity","pricingActivityConfig"])),mou
1nted:function(){this.promotionCountTime(),this.mgmBtnShow=!!window.location.href.includes("mydesigns")},methods:x(x({},Object(c.b)(["promotionCountTime"])),{},{showFollowModal:function(e){this.modal.type=e,this.modal.show=!0,"following"===e?Object(m.c)("/hs_global_web.my_design.following_click","member_id=".concat(this.userInfo.uid,"&language=").concat(this.locale)):Object(m.c)("/hs_global_web.my_design.follower_click","member_id=".concat(this.userInfo.uid,"&language=").concat(this.locale))},handleShareClick:function(){Object(m.c)("/hs_global_web.my_design.share_click","member_id=".concat(this.userInfo.uid,"&language=").concat(this.locale)),this.$emit("shareClick")},statusChange:function(e){this.$emit("statusChange",e),window.gaTracker&&window.gaTracker.trackEvent("social","follow","designerPage",this.userInfo.uid)},goToSettings:function(e,t){Object(m.c)(e,"member_id=".concat(this.userInfo.uid,"&language=").concat(this.locale)),window.open(t,"_blank")},hireSelectedDesigner:function(){var e=this;this.designerInfo.imAvailable?this.imVisible=!0:this.getSessionKey()?Object(O.a)({t:this.$t.bind(this),designer:{umsId:this.owner.uid,avatar:this.owner.avatar,firstName:this.owner.firstName,lastName:this.owner.lastName},onOk:function(){e.$emit("showConfirm")},userInfo:this.userInfo}):this.setLoginInfo("login")}}),filters:{myDesginDataFilter:I.a}},P=(n(4121),Object(b.a)(A,function(){var e=this,t=e._self._c;return t("div",{staticClass:"follow-warp"},[t("div",{staticClass:"normal-warp"},[t("div",[t("div",{staticClass:"count"},[e._v("\n        "+e._s(e.designNumber)+"\n      ")]),e._v(" "),t("div",{staticClass:"type"},[e._v("\n        "+e._s(e.$t("gallery2.designnumber"))+"\n      ")])]),e._v(" "),t("div",[t("div",{staticClass:"count underline pointer",on:{click:function(t){return e.showFollowModal("following")}}},[e._v("\n        "+e._s(e.following)+"\n      ")]),e._v(" "),t("div",{staticClass:"type"},[e._v("\n        "+e._s(e.$t("social.following"))+"\n      ")])]),e._v(" "),t("div",[t("div",{staticClass:"count underline pointer",on:{click:function(t){return e.showFollowModal("follower")}}},[e._v("\n        "+e._s(e.follower)+"\n      ")]),e._v(" "),t("div",{staticClass:"type"},[e._v("\n        "+e._s(e.$t("social.followers"))+"\n      ")])]),e._v(" "),t("div",[t("div",{staticClass:"count"},[e._v("\n        "+e._s(e.likes)+"\n      ")]),e._v(" "),t("div",{staticClass:"type"},[e._v("\n        "+e._s(e.$t("social.likes"))+"\n      ")])]),e._v(" "),e.showHandle?t("div",{staticClass:"align_right"},[t("button",{staticClass:"share-btn pointer",on:{click:e.handleShareClick}},[e._v("\n        "+e._s(e.$t("share.journey.btn1"))+"\n      ")]),e._v(" "),e.isSelf?t("a",{staticClass:"setting-warp",on:{click:function(t){return e.goToSettings("/hs_global_web.my_design.settings_click","/profile")}}},[t("button",{staticClass:"setting-btn pointer"},[e._v(e._s(e.$t("social.settings")))])]):t("follow-btn",{staticClass:"follow-btn-warp",attrs:{btnStatus:e.btnStatus,uid:e.uid,userName:e.userName},on:{statusChange:e.statusChange}}),e._v(" "),e.mgmBtnShow?t("mgmBtn"):e._e(),e._v(" "),!e.isSelf&&e.selectedDesigner?t("button",{staticClass:"hire-btn pointer",on:{click:e.hireSelectedDesigner}},[t("IconfontView",{attrs:{customClass:"selected-icon",showType:e.designerInfo.imAvailable?"a-hs_xian_newcomment1":"xinfeng",customStyle:{fontSize:"24px",color:"#fff"}}}),e._v("\n        "+e._s(e.$t(e.designerInfo.imAvailable?"web_services_view_message_button":"web_services_button_page"))+"\n      ")],1):e._e()],1):e._e()]),e._v(" "),t("FollowModal",{attrs:{show:e.modal.show,type:e.modal.type,uid:e.uid},on:{"update:show":function(t){return e.$set(e.modal,"show",t)}}}),e._v(" "),t("IMChatModalVue",{attrs:{item:e.designerInfo.chatInfo,locale:e.locale,visible:e.imVisible,handleCancel:function(){e.imVisible=!1}}})],1)},[],!1,null,"aab1eaf6",null)),D=P.exports;installComponents(P,{IconfontView:n(129).default});var M={name:"ExpandableContent",props:{maxHeight:{type:[String,Number],default:190},minHeight:{type:[String,Number],default:116},title:{type:String,default:"About me"}},data:function(){return{isExpanded:!1,showToggle:!1,isClicked:!1}},computed:{contentStyle:function(){return this.isExpanded?{}:{maxHeight:"".concat(this.maxHeight,"px"),minHeight:"".concat(this.minHeight,"px")}}},mounted:function(){var e=this;this.resetToInitialState(),this.$el.style.setProperty("--dynamic-min-height","".concat(this.minHeight,"px")),setTimeout(function(){e.checkContentHeight()},100),window.addEventListener("resize",this.checkContentHeight);var t=new MutationObserver(this.checkContentHeight);this.$refs.contentInner&&t.observe(this.$refs.contentInner,{childList:!0,subtree:!0,characterData:!0}
1)},beforeDestroy:function(){window.removeEventListener("resize",this.checkContentHeight)},methods:{resetToInitialState:function(){this.isExpanded=!1,this.showToggle=!1,this.isClicked=!1},toggleExpand:function(){this.isClicked||(this.isExpanded=!0,this.isClicked=!0,this.showToggle=!1)},checkContentHeight:function(){var e=this;this.$nextTick(function(){var t=e.$refs.contentInner,n=e.$refs.contentRef;if(t&&n){if(e.isClicked)return e.showToggle=!1,void(e.isExpanded=!0);var i={maxHeight:n.style.maxHeight,minHeight:n.style.minHeight,height:n.style.height};n.style.maxHeight="none",n.style.minHeight="auto",n.style.height="auto",n.classList.remove("expanded"),t.offsetHeight;var a=t.scrollHeight,s=e.calculateOptimalHeight();n.style.maxHeight=i.maxHeight,n.style.minHeight=i.minHeight,n.style.height=i.height,e.$el.style.setProperty("--dynamic-max-height","".concat(s,"px")),a>s?(e.showToggle=!0,e.isExpanded=!1):(e.showToggle=!1,e.isExpanded=!0)}})},calculateOptimalHeight:function(){return Number(this.maxHeight)}}},E=(n(4122),Object(b.a)(M,function(){var e=this,t=e._self._c;return t("div",{staticClass:"expandable-content"},[t("div",{ref:"contentRef",staticClass:"content",class:{expanded:e.isExpanded},style:e.contentStyle},[t("div",{ref:"contentInner",staticClass:"content-inner"},[e._t("default")],2)]),e._v(" "),e.showToggle&&!e.isClicked?t("div",{staticClass:"expand-button",on:{click:e.toggleExpand}},[t("button",{staticClass:"toggle-btn",attrs:{type:"button"}},[e._v("\n      "+e._s(e.$t("contest.moretopbutton"))+"\n      "),t("IconfontView",{attrs:{customClass:"arrow-icon",customStyle:{fontSize:"10px",color:"#000000"},showType:"hs_xiao_danjiantou_xia"}})],1)]):e._e()])},[],!1,null,"d1302dbe",null)),L=E.exports;installComponents(E,{IconfontView:n(129).default});var $=n(643),N=n(50),R=n(1028),B=n(235),U={name:"SelectedDesignerTags",components:{SelectedDesignerTipListReact:Object(N.a)(R.a)},props:{owner:{type:Object,required:!1,default:function(){return{}}},signIn:{type:Boolean,required:!1,default:!1}},data:function(){return{selectedDesignerServiceTypeList:[]}},computed:{displayedTags:function(){return this.userTags.length>0?this.userTags:this.staticTags},imAvailable:function(){return this.selectedDesigner&&this.signIn},selectedDesigner:function(){return this.owner.selectedDesigner}},watch:{imAvailable:{handler:function(){var e=this;this.selectedDesigner&&Object(B.d)({designerUmsId:this.owner.uid||this.owner.id,locale:this.locale}).then(function(t){e.selectedDesignerServiceTypeList=null==t?void 0:t.serviceTypeList,e.$emit("setDesignerInfo",t)})},immediate:!0}}},F=(n(4123),Object(b.a)(U,function(){var e,t,n=this,i=n._self._c;return n.selectedDesigner?i("div",{staticClass:"selcted-designer-tags"},[null!==(e=n.selectedDesignerServiceTypeList)&&void 0!==e&&e.length?i("p",{staticClass:"selcted-designer-tip"},[n._v("\n    "+n._s(n.$t("personal_page_services"))+"\n  ")]):n._e(),n._v(" "),i("div",{staticClass:"user-tags"},[null!==(t=n.selectedDesignerServiceTypeList)&&void 0!==t&&t.length?i("SelectedDesignerTipListReact",{attrs:{theme:"light",serviceTypeList:n.selectedDesignerServiceTypeList,className:"custom-tip-list"}}):n._e()],1)]):n._e()},[],!1,null,"cd92490a",null).exports),V=n(600),H={name:"TwoColumn",methods:{click:function(){this.$emit("click")}}},z=(n(4124),Object(b.a)(H,function(){var e=this,t=e._self._c;return t("div",{staticClass:"two-column",on:{click:e.click}},[t("div",{staticClass:"item-column left-column"},[e._t("left")],2),e._v(" "),t("div",{staticClass:"item-column right-column"},[e._t("right")],2)])},[],!1,null,null,null).exports);function K(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}var W={name:"PageTheme",props:{isDarkTheme:{type:Boolean,default:!1}},computed:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?K(Object(n),!0).forEach(function(t){Object(s.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K(Object(n)).forEac
1h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},Object(c.d)(["memberInfo","memberType","locale"])),methods:{toggleTheme:function(){var e=this;return Object(i.a)(regeneratorRuntime.mark(function t(){var n,i,a;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(null!==(n=e.memberInfo)&&void 0!==n&&n.portfolioMember||3===e.memberType){t.next=1;break}return e.$emit("showMarketDialog","theme_switcher",d.X.MASTER),t.abrupt("return");case 1:return e.$store.dispatch("setNavbarTheme",e.isDarkTheme?"default":"white-theme"),e.$emit("toggleTheme",!e.isDarkTheme),t.prev=2,t.next=3,u.a.user.updatePageTheme({data:{pageTheme:e.isDarkTheme?"light":"dark",clientInfo:JSON.stringify({platform:"web",language:e.locale})}});case 3:if(null!=(a=t.sent)&&null!==(i=a.ret)&&void 0!==i&&null!==(i=i[0])&&void 0!==i&&i.includes("SUCCESS")){t.next=4;break}throw new Error("toggleTheme error");case 4:t.next=6;break;case 5:t.prev=5,t.catch(2),e.$message.error(e.$t("coupon.wrong"));case 6:case"end":return t.stop()}},t,null,[[2,5]])}))()}}},q=W,G=(n(4125),Object(b.a)(q,function(){var e=this,t=e._self._c;return t("div",{staticClass:"page-theme-switcher"},[t("div",{staticClass:"theme-container"},[t("div",{staticClass:"theme-label"},[t("span",{staticClass:"theme-text"},[e._v("\n        "+e._s(e.$t(e.isDarkTheme?"portfolio.page.light.dark":"portfolio.page.theme.dark"))+"\n      ")]),e._v(" "),t("img",{staticClass:"designer-icon",attrs:{src:e.$global.member.master.icon,alt:"designer member"}})]),e._v(" "),t("div",{staticClass:"theme-toggle",on:{click:e.toggleTheme}},[t("div",{staticClass:"toggle-icon day-icon",class:{"toggle-icon--active":!e.isDarkTheme}},[t("el-tooltip",{attrs:{effect:"dark",content:e.$t("portfolio.page.light.dark"),placement:"top"}},[t("IconfontView",{attrs:{customStyle:{fontSize:"18px",color:e.isDarkTheme?"#fff":"#000"},showType:"day1"}})],1)],1),e._v(" "),t("div",{staticClass:"toggle-icon night-icon",class:{"toggle-icon--active":e.isDarkTheme}},[t("el-tooltip",{attrs:{effect:"dark",content:e.$t("portfolio.page.theme.dark"),placement:"top"}},[t("IconfontView",{attrs:{customStyle:{fontSize:"18px",color:"#000"},showType:"night1"}})],1)],1)])])])},[],!1,null,"ba2ef61c",null)),Q=G.exports;installComponents(G,{IconfontView:n(129).default});var J=n(3815),Y=n(3272);function X(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function Z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?X(Object(n),!0).forEach(function(t){Object(s.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ee={components:{Avatar:_,SelectDesignerAvatar:V.a,CountryFlagIcons:y.a,TwoColumn:z,ShareDesignJourney:J.a,Tag:F,Follow:D,About:L,MemberBadge:$.a,followBtn:w.a,PageTheme:Q},mixins:[S.a],props:{owner:{type:Object,default:function(){return{}}},profile:{type:Object,default:function(){return{following:0,follower:0,likes:0,joinedDays:0,blockStatus:0,isFollowed:!1,unuseDiscountCount:0}}},designCount:{type:Array,default:function(){return[0,0,0]}},badgeInfo:{type:Object,default:function(){return{total:"",normalImageUrl:""}}},isOwner:{type:Boolean,default:!1},btnStatus:{type:Number,default:0}},data:function(){return{imVisible:!1,designerInfo:{}}},computed:Z(Z({},Object(c.d)(["userScores","userInfo","userTags","locale","memberType","stylerMember","memberInfo","isDarkTheme"])),{},{selectedDesigner:function(){var e;return this.isOwner?null===(e=this.userTags)||void 0===e?void 0:e.includes("SELECTED_DESIGNER"):this.owner.selectedDesigner},portfolioMember:function(){var e,t;return this.isOwner?null===(e=this.memberInfo)||void 0===e?void 0:e.portfolioMember:null===(t=this.owner)||void 0===t?void 0:t.portfolioMember},aiMember:function(){var e,t;return this.isOwner?null===(e=this.memberInfo)||void 0===e?void 0:e.aiMember:null===(t=this.owner)||void 0===t?void 0:t.aiMember},isPlusMember:function(){var e,t;return this.isOwner?null===(e=this.memberInfo)||void 0===e?void 0:e.plusMember:null===(t=this.owner)||void 0===t?void 0:t.plusMember},userName:function(){return[this.owner.firstName,this.owner.lastName].filter(function(e){return!!e}).join(" ")},countryId:function(){return this.owner.countryCode2||""},journeyConetent:function(){return this.$t("share.journey.content").replace("{}","")},isOfficial:function(){var e,t;return this.isOwner?null===(e=this.userTags)||void 0===e?void 0:e.includes("OFFICIAL"):null===(t=this.owner.userTags)||void 0===t?void 0:t.includes("OFFICIAL")},officialIcon:function(){return h.a.officialIcon},selectedDesignerIcon:function(){return h.a.member.selectedDesigner.icon},spmParamsStr:function(){return"member_id=".concat(this.userInfo.uid,"&language=").concat(this.locale,"&isSelf=").concat(this.isOwner?"true":"false")},socialLinks:function(){return this.owner.socialLinks||{}},hasSocialIcons:function(){var e=this.socialLinks;return!!(e.instagram||e.linkedin||e.x)},hasSocialLinks:function(){return this.hasSocialIcons||!!this.socialLinks.personalWebsite}}),mounted:function(){},methods:{hireSelectedDesigner:function(){var e=this;this.owner.isBlock?this.$message({type:"error",duration:4e3,message:this.$t("user_block_other_state_notify")}):this.owner.beBlocked?this.$message({type:"error",duration:4e3,message:this.$t("user_block_state_notify")}):this.designerInfo.imAvailable?this.imVisible=!0:this.getSessionKey()?Object(O.a)({t:this.$t.bind(this),designer:{umsId:this.owner.uid,avatar:this.owner.avatar,firstName:this.owner.firstName,lastName:this.owner.lastName},onOk:function(){e.$emit("showConfirm")},userInfo:this.userInfo}):this.setLoginInfo("login")},showPopover:function(){Object(m.c)("/hs_global_web.my_design.design_journey_expose",this.spmParamsStr)},showShareModel:function(e){this.$emit("showShareModel",{show:!0,config:{url:e,image:e,title:this.$t("share.journey.title")}}),Object(m.c)("/hs_global_web.my_design.design_journey_share_click",this.spmParamsStr)},shareClick:function(){this.$emit("showShareModel",{show:!0})},toMycoins:function(){window.open("/myPoint","_blank"),Object(m.c)("/hs_global_web.my_design.points_click",this.spmParamsStr)},toMyCoupon:function(){window.open("/mycoupon?sourcePage=workspace_coupon","_blank"),Object(m.c)("/hs_global_web.my_design.mycoupon_click",this.spmParamsStr)},toMyBadges:function(){this.isOwner?window.open("/mybadge?sourcePage=profile_self","_blank"):(window.open("/badge/".concat(this.badgeInfo.userId,"?sourcePage=profile_other"),"_blank"),Object(m.c)("/hs_global_web.my_design.badge_click",this.spmParamsStr))},toTeam:function(){window.open("".concat(this.$global.teamUrl,"/designManage/team?sourcePage=mydesigns_collaborate"),"_blank"),Object(m.c)("/hs_global_web.my_design.my_design_team_upgrade",this.spmParamsStr)},msgShow:function(){this.$store.commit("SET_MGMSHOW",!0),Object(m.c)("/hs_global_web.my_design.mgm_refer_click",this.spmParamsStr)},goToEditInfo:function(){this.owner.owner||(window.open("/profile","_blank"),Object(m.c)("/hs_global_web.my_design.changeavater_click",this.spmParamsStr))},goToSub:function(){window.open("/workspace/mysubscription","_blank"),Object(m.c)("/hs_global_web.my_design.member_icon_click",this.spmParamsStr)},goToPricing:function(){var e="https://www.homestyler.com/pricing?lang=".concat(this.locale);window.open(e,"_blank"),Object(m.c)("/hs_global_web.my_design.member_icon_click",this.spmParamsStr)},goToStylerPricing:function(){var e="https://www.homestyler.com/pricing/resources?lang=".concat(this.locale);window.open(e,"_blank"),Object(m.c)("/hs_global_web.my_design.member_icon_click",this.spmParamsStr)},isMemberType:function(e){return!this.owner.owner&&this.memberType===e||this.owner.memberType===e&&this.owner.owner},isStylerMember:function(){var e;return this.owner.owner?!this.owner.plusMember&&this.owner.stylerMember:!(null!==(e=this.memberInfo)&&void 0!==e&&e.plusMember)&&this.stylerMember},setDesignerInfo:function(e){this.designerInfo=e||{}},goToSettings:function(e,t){Object(m.c)(e,"member_id=".concat(this.userInfo.uid,"&language=").concat(this.locale)),window.open(t,"_blank")},statusChange:function(e){this.$emit("statusChange",e),window.gaTracker&&window.gaTracker.trackEvent("social","follow","designerPage",this.userInfo.uid)},toggleTheme:function(e){this.$emit("toggleTheme",e)},showMarketDialog:function(e,t){this.$emit("showMarketDialog",e,t)},blockUerClick:function(){var e=this;this.owner.isBlock?Object(Y.c)({userInfo:this.owner,$t:this.$t.bind(this),onOk:function(){e.$emit("blockStateChange",!1)}}):Object(Y.a)({userInfo:this.owner,$t:this.$t.bind(this),onOk:function(){e.$emit("blockStateChange",!0)}})},handleShareClick:function(){this.$emit("shareClick"),Object(m.c)("/hs_global_web.my_design.share_click","member_id=".concat(this.userInfo.uid,"&language=").concat(this.locale))},trackSocialClick:function(e){Object(m.c)("/hs_global_web.my_design.social_click","".concat(this.spmParamsStr,"&type=").concat(e))},toMore:function(){window.open("/pricing?source_page=workspace_userinfo","_blank")},toMoreDesigners:function(){window.open("/designers","_blank")}}},te=(n(4126),n(4127),Object(b.a)(ee,function(){var e=this,t=e._self._c;return t("div",{staticClass:"user-info-wrap"},[t("div",{staticClass:"user-info-item user-avatar-wrap"},[e.selectedDesigner||e.portfolioMember?t("SelectDesignerAvatar",{staticClass:"user-avater selected-designers-avater",attrs:{src:e.owner.avatar,isOwner:e.isOwner,hiddenMemberIcon:""}}):t("Avatar",{staticClass:"user-avater normal-avater",attrs:{src:e.owner.avatar}}),e._v(" "),e.portfolioMember?t("MemberBadge",{staticClass:"selected-designers-icon",attrs:{showPopover:!0,hidden:!1,isOwner:e.isOwner,userInfo:e.owner,memberType:"portfolio",spmInfo:{id:"/hs_global_web.profile.avatar_badge_learn_clk"},sourcePage:e.isOwner?"badge_profile_self":"badge_profile_other"}}
1):e._e()],1),e._v(" "),t("div",{staticClass:"user-info-item user-name-info"},[e.isOfficial?t("p",{staticClass:"official-text"},[e._v("\n      "+e._s("| ".concat(e.$t("homeseek_official")," |"))+"\n    ")]):e._e(),e._v(" "),t("p",{staticClass:"user-name"},[e._v("\n      "+e._s(e.userName)+"\n    ")]),e._v(" "),e.owner.homestylerId?t("div",{staticClass:"user-id"},[t("el-tooltip",{attrs:{effect:"dark",content:e.owner.countryName,placement:"bottom"}},[e.countryId?t("span",{staticClass:"country-flag-icon"},[t("CountryFlagIcons",{attrs:{countryId:e.countryId}})],1):e._e()]),e._v(" "),t("span",{staticClass:"user-id-text"},[e._v(e._s("ID: @".concat(e.owner.homestylerId||"")))])],1):e._e()]),e._v(" "),e.isOfficial||e.isMemberType(2)||e.isMemberType(3)||e.isStylerMember()||e.aiMember||e.portfolioMember||e.selectedDesigner?t("div",{staticClass:"user-info-item user-icon-wrap"},[e.isOfficial?t("MemberBadge",{staticClass:"member-tooltip-content member-icon",attrs:{showPopover:!0,hidden:!1,isOwner:e.isOwner,placement:"top",userInfo:e.owner,memberType:"OFFICIAL",iconClass:"user-official-icon",spmInfo:{id:"/hs_global_web.profile.avatar_badge_learn_clk"},sourcePage:e.isOwner?"badge_profile_self":"badge_profile_other"}}
1):e._e(),e._v(" "),e.isMemberType(3)?t("MemberBadge",{staticClass:"member-icon",attrs:{showPopover:!0,hidden:!1,isOwner:e.isOwner,placement:"top",userInfo:e.owner,memberType:"master",iconClass:"member-type-icon",spmInfo:{id:"/hs_global_web.profile.avatar_badge_learn_clk"},sourcePage:e.isOwner?"badge_profile_self":"badge_profile_other"}}):e._e(),e._v(" "),e.isMemberType(2)?t("MemberBadge",{staticClass:"member-icon",attrs:{showPopover:!0,hidden:!1,isOwner:e.isOwner,placement:"top",userInfo:e.owner,memberType:"pro",iconClass:"member-type-icon",spmInfo:{id:"/hs_global_web.profile.avatar_badge_learn_clk"},sourcePage:e.isOwner?"badge_profile_self":"badge_profile_other"}}):e._e(),e._v(" "),e.isStylerMember()?t("MemberBadge",{staticClass:"member-icon",attrs:{showPopover:!0,hidden:!1,isOwner:e.isOwner,placement:"top",userInfo:e.owner,memberType:"styler",iconClass:"member-type-icon",spmInfo:{id:"/hs_global_web.profile.avatar_badge_learn_clk"},sourcePage:e.isOwner?"badge_profile_self":"badge_profile_other"}}):e._e(),e._v(" "),e.aiMember?t("MemberBadge",{staticClass:"member-icon",attrs:{showPopover:!0,hidden:!1,isOwner:e.isOwner,placement:"top",userInfo:e.owner,memberType:"aiMember",iconClass:"member-icon-img member-type-icon",spmInfo:{id:"/hs_global_web.profile.avatar_badge_learn_clk"},sourcePage:e.isOwner?"badge_profile_self":"badge_profile_other"}}
1):e._e(),e._v(" "),e.portfolioMember?t("MemberBadge",{staticClass:"member-icon",attrs:{showPopover:!0,hidden:!1,isOwner:e.isOwner,placement:"top",userInfo:e.owner,memberType:"portfolio",iconClass:"member-icon-img member-type-icon",spmInfo:{id:"/hs_global_web.profile.avatar_badge_learn_clk"},sourcePage:e.isOwner?"badge_profile_self":"badge_profile_other"}}):e._e()],1):e._e(),e._v(" "),e.selectedDesigner?t("div",{staticClass:"user-info-item user-tags"},[t("Tag",{attrs:{owner:e.owner,signIn:e.$store.state.signIn},on:{setDesignerInfo:e.setDesignerInfo}})],1):e._e(),e._v(" "),t("div",{staticClass:"user-info-item user-follow-wrap"},[t("Follow",{attrs:{isSelf:"",following:e.profile.following,follower:e.profile.follower,likes:e.profile.likes,uid:e.owner.uid,designNumber:e.designCount[0],showHandle:!1,owner:e.owner}})],1),e._v(" "),t("div",{staticClass:"user-info-item user-handle-wrap"},[!e.isOwner&&e.selectedDesigner?t("button",{staticClass:"hire-btn pointer",on:{click:e.hireSelectedDesigner}},[t("IconfontView",{attrs:{customClass:"selected-icon",showType:e.designerInfo.imAvailable?"a-hs_xian_newcomment1":"xinfeng",customStyle:{fontSize:"24px",color:"#fff"}}}),e._v("\n      "+e._s(e.$t(e.designerInfo.imAvailable?"web_services_view_message_button":"web_services_button_page"))+"\n    ")],1):e._e(),e._v(" "),e.isOwner?t("div",{staticClass:"user-edit-wrap"},[t("div",{staticClass:"edit_info",on:{click:e.goToEditInfo}},[t("p",[e._v(e._s(e.$t("projectDetail.content.edit")))])]),e._v(" "),t("el-tooltip",{attrs:{effect:"dark",content:e.$t("share.journey.btn1"),placement:"bottom"}},[t("div",{staticClass:"share_info",on:{click:e.handleShareClick}},[t("IconfontView",{staticClass:"share-icon",attrs:{customStyle:{fontSize:"15px",color:"#000"},showType:"hs_mian_fenxiang"}})],1)])],1):t("div",{staticClass:"user-handle-button"},[t("div",{staticClass:"left-button"},[t("follow-btn",{staticClass:"follow-btn-warp",attrs:{isBlock:e.owner.isBlock,beBlocked:e.owner.beBlocked,btnStatus:e.btnStatus,uid:e.owner.uid,userName:e.userName},on:{statusChange:e.statusChange}})],1),e._v(" "),t("div",{staticClass:"right-button"},[t("div",{staticClass:"more-warp navbar-menu-item-box"},[t("IconfontView",{attrs:{customClass:"more-icon",showType:"hs_pricing_more",customStyle:{fontSize:"20px",color:"#000"}}}),e._v(" "),t("ul",{staticClass:"navbar-dropdown-menu"},[t("li",{staticClass:"navbar-dropdown-menu-block",on:{click:e.shareClick}},[e._v("\n              "+e._s(e.$t("share.journey.btn1"))+"\n            ")]),e._v(" "),t("li",{staticClass:"navbar-dropdown-menu-block",on:{click:e.blockUerClick}},[e._v("\n              "+e._s(e.$t(e.owner.isBlock?"block_dissolve_button":"block"))+"\n            ")])])],1)])])]),e._v(" "),e.isOwner?t("div",{staticClass:"user-info-item user-other-wrap"},[t("TwoColumn",{staticClass:"user-medal-item user-mdedal-item-nowrap refer-wrap",on:{click:e.msgShow},scopedSlots:e._u([{key:"left",fn:function(){return[t("div",{staticClass:"user-medal-left font-weight-bold"},[t("img",{staticClass:"user-mdeal-img",attrs:{src:"https://img.alicdn.com/imgextra/i3/O1CN01y1P3OH1oqSicw0wCh_!!6000000005276-2-tps-44-44.png"}}),e._v(" "),t("div",[e._v(e._s(e.$t("my_refer")))])])]},proxy:!0},{key:"right",fn:function(){return[t("div",{staticClass:"user-medal-content to-do-content"},[t("span",{staticClass:"to-do-text"},[e._v(e._s(e.$t("my_refer_gifts")))]),e._v(" "),t("IconfontView",{staticClass:"to-do-icon",attrs:{customStyle:{fontSize:"12px",color:"#000"},showType:"hs_xiao_danjiantou_shang"}})],1)]},proxy:!0}],null,!1,133605455)}),e._v(" "),t("TwoColumn",{staticClass:"user-medal-item user-mdedal-item-nowrap team-wrap",on:{click:e.toTeam},scopedSlots:e._u([{key:"left",fn:function(){return[t("div",{staticClass:"user-medal-left font-weight-bold"},[t("img",{staticClass:"user-mdeal-img",attrs:{src:"https://img.alicdn.com/imgextra/i2/O1CN01xN39dp1FJw2Rp2lK9_!!6000000000467-2-tps-44-44.png"}}),e._v(" "),t("div",[e._v(e._s(e.$t("pricing2.team")))])])]},proxy:!0},{key:"right",fn:function(){return[t("div",{staticClass:"user-medal-content to-do-content"},[t("span",{staticClass:"to-do-text"},[e._v(e._s(e.$t("mydesigns.collaborate")))]),e._v(" "),t("IconfontView",{staticClass:"to-do-icon",attrs:{customStyle:{fontSize:"12px",color:"#000"},showType:"hs_xiao_danjiantou_shang"}})],1)]},proxy:!0}],null,!1,2442387666)}
1)],1):e._e(),e._v(" "),e.isOwner?t("div",{staticClass:"user-info-item user-theme-warp"},[t("PageTheme",{attrs:{isDarkTheme:e.isDarkTheme},on:{toggleTheme:e.toggleTheme,showMarketDialog:e.showMarketDialog}})],1):e._e(),e._v(" "),t("div",{staticClass:"user-info-item user-about-warp"},[t("About",[t("h3",[t("strong",[e._v(e._s(e.$t("social.aboutMe")))])]),e._v(" "),t("p",{staticClass:"description"},[e._v("\n        "+e._s(e.owner.description||e.$t("personal_page_default_text"))+"\n      ")])])],1),e._v(" "),e.hasSocialLinks?t("div",{staticClass:"user-info-item user-social-links-warp"},[e.hasSocialIcons?t("div",{staticClass:"social-icons-row"},[e.socialLinks.instagram?t("el-tooltip",{attrs:{effect:"dark",content:"Instagram",placement:"top"}},[t("a",{staticClass:"social-icon-btn",attrs:{href:e.socialLinks.instagram,target:"_blank",rel:"noopener noreferrer"},on:{click:function(t){return e.trackSocialClick("instagram")}}},[t("img",{staticClass:"social-icon-img",attrs:{src:n(1880),alt:"Instagram"}})])]):e._e(),e._v(" "),e.socialLinks.linkedin?t("el-tooltip",{attrs:{effect:"dark",content:"LinkedIn",placement:"top"}},[t("a",{staticClass:"social-icon-btn",attrs:{href:e.socialLinks.linkedin,target:"_blank",rel:"noopener noreferrer"},on:{click:function(t){return e.trackSocialClick("linkedin")}}},[t("img",{staticClass:"social-icon-img",attrs:{src:e.isDarkTheme?n(1882):n(1883),alt:"LinkedIn"}})])]):e._e(),e._v(" "),e.socialLinks.x?t("el-tooltip",{attrs:{effect:"dark",content:"X",placement:"top"}},[t("a",{staticClass:"social-icon-btn",attrs:{href:e.socialLinks.x,target:"_blank",rel:"noopener noreferrer"},on:{click:function(t){return e.trackSocialClick("x")}}},[t("img",{staticClass:"social-icon-img",attrs:{src:e.isDarkTheme?n(1888):n(1889),alt:"X"}})])]):e._e()],1):e._e(),e._v(" "),e.socialLinks.personalWebsite?t("div",{staticClass:"social-link-row"},[t("img",{staticClass:"social-link-icon",attrs:{src:e.isDarkTheme?n(1885):n(1886),alt:"link"}}),e._v(" "),t("a",{staticClass:"social-link-text",attrs:{href:e.socialLinks.personalWebsite,target:"_blank",rel:"noopener noreferrer"},on:{click:function(t){return e.trackSocialClick("personalWebsite")}}},[e._v(e._s(e.socialLinks.personalWebsite))])]):e._e()]):e._e(),e._v(" "),t("div",{staticClass:"user-info-item user-medal-wrap"},[e.isOwner?t("el-popover",{attrs:{placement:"bottom",width:"268",trigger:"hover",openDelay:200,disabled:!e.profile.joinedDays},on:{show:e.showPopover}},[t("ShareDesignJourney",{attrs:{joinedDays:e.profile.joinedDays,renderCount:e.profile.renderCount,designNumber:e.designCount[0],owner:e.owner},on:{showShareModel:e.showShareModel}}),e._v(" "),t("div",{staticClass:"design_journey",attrs:{slot:"reference"},slot:"reference"},[t("TwoColumn",{staticClass:"user-medal-item",scopedSlots:e._u([{key:"left",fn:function(){return[t("div",{staticClass:"user-medal-left"},[e._v("\n              "+e._s(e.journeyConetent)+"\n            ")])]},proxy:!0},{key:"right",fn:function(){return[t("div",{staticClass:"user-medal-content journey-content"},[t("div",{staticClass:"journey-num journey-content-item"},[e._v("\n                "+e._s(e.profile.joinedDays||"")+"\n              ")]),e._v(" "),t("div",{staticClass:"journey-days journey-content-item"},[e._v("\n                "+e._s(e.$t("blkfriday22.clockday"))+"\n              ")])])]},proxy:!0}],null,!1,3272488154)})],1)],1):e._e(),e._v(" "),e.isOwner?t("TwoColumn",{staticClass:"user-medal-item",on:{click:e.toMycoins},scopedSlots:e._u([{key:"left",fn:function(){return[t("div",{staticClass:"user-medal-item-left"},[e._v("\n          "+e._s(e.$t("coincenter.mycoins"))+"\n        ")])]},proxy:!0},{key:"right",fn:function(){return[t("div",{staticClass:"user-medal-content num-content coins-content"},[t("div",{staticClass:"coins-icon num-icon"}),e._v(" "),t("div",{staticClass:"coins-num num-item"},[e._v("\n            "+e._s(e.userScores&&e.userScores>0?e.userScores:"")+"\n          ")]),e._v(" "),t("IconfontView",{directives:[{name:"show",rawName:"v-show",value:e.userScores&&e.userScores>0,expression:"userScores && userScores > 0"}],staticClass:"num-icon-more",attrs:{customStyle:{fontSize:"12px",color:"#000"},showType:"hs_xiao_danjiantou_shang"}})],1)]},proxy:!0}],null,!1,717180852)}
1):e._e(),e._v(" "),t("TwoColumn",{staticClass:"user-medal-item",on:{click:e.toMyBadges},scopedSlots:e._u([{key:"left",fn:function(){return[t("div",{staticClass:"user-medal-item-left"},[e._v("\n          "+e._s(e.$t(e.isOwner?"my_badges":"web_community_badges"))+"\n        ")])]},proxy:!0},{key:"right",fn:function(){return[t("div",{staticClass:"user-medal-content num-content coins-content"},[t("div",{staticClass:"badges-icon num-icon",style:{backgroundImage:"url(".concat(e.badgeInfo.normalImageUrl,")")}}),e._v(" "),t("div",{staticClass:"coins-num num-item"},[e._v("\n            "+e._s(e.badgeInfo.total&&e.badgeInfo.total>0?"x ".concat(e.badgeInfo.total):"")+"\n          ")]),e._v(" "),t("IconfontView",{directives:[{name:"show",rawName:"v-show",value:e.badgeInfo.total&&e.badgeInfo.total>0,expression:"badgeInfo.total && badgeInfo.total > 0"}],staticClass:"num-icon-more",attrs:{customStyle:{fontSize:"12px",color:"#000"},showType:"hs_xiao_danjiantou_shang"}})],1)]},proxy:!0}])}),e._v(" "),e.isOwner?t("TwoColumn",{staticClass:"user-medal-item",on:{click:e.toMyCoupon},scopedSlots:e._u([{key:"left",fn:function(){return[t("div",{staticClass:"user-medal-item-left"},[e._v("\n          "+e._s(e.$t("workspace.codeentry"))+"\n        ")])]},proxy:!0},{key:"right",fn:function(){return[t("div",{staticClass:"user-medal-content num-content coins-content"},[t("div",{staticClass:"badges-icon num-icon",style:{backgroundImage:"url('https://img.alicdn.com/imgextra/i3/O1CN01BXjRms1wqw5l0z24j_!!6000000006360-2-tps-78-78.png')"}}),e._v(" "),t("div",{staticClass:"coins-num num-item"},[e._v("\n            "+e._s(e.profile.unuseDiscountCount&&e.profile.unuseDiscountCount>0?"x ".concat(e.profile.unuseDiscountCount):"")+"\n          ")]),e._v(" "),t("IconfontView",{staticClass:"num-icon-more",attrs:{customStyle:{fontSize:"12px",color:"#000"},showType:"hs_xiao_danjiantou_shang"}})],1)]},proxy:!0}],null,!1,1286131396)}):e._e()],1),e._v(" "),t("IMChatModalVue",{attrs:{otherUmsId:e.designerInfo.umsId,locale:e.locale,visible:e.imVisible,handleCancel:function(){e.imVisible=!1}}})],1)},[],!1,null,"47cdae38",null)),ne=te.exports;installComponents(te,{IconfontView:n(129).default});var ie=n(3240);function ae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function se(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ae(Object(n),!0).forEach(function(t){Object(s.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ae(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var re={name:"UserRemindMessage",components:{CountdownTimer:n(3842).a},data:function(){return{visibleMessages:{},mockRemindMessages:[]}},computed:se(se({},Object(c.d)(["isDarkTheme","locale"])),{},{currentTheme:function(){return this.isDarkTheme?"dark":"light"}}),watch:{locale:{handler:function(e){e&&this.fetchUserRemindMessages()},immediate:!0}},methods:{isVisible:function(e){return!1!==this.visibleMessages[e]},fetchUserRemindMessages:function(){var e=this;return Object(i.a)(regeneratorRuntime.mark(function t(){var n;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:t.next=1;break;case 1:return t.prev=1,t.next=2,Object(ie.c)();case 2:(n=t.sent)&&n.length>0&&(e.mockRemindMessages=n.filter(function(e){return e.endTime>Date.now()})),t.next=4;break;case 3:t.prev=3,t.catch(1);case 4:case"end":return t.stop()}},t,null,[[1,3]])}))()},removeMessage:function(e){this.mockRemindMessages=this.mockRemindMessages.filter(function(t){return t.remindMessageId!==e})},handleClose:function(e){this.removeMessage(e.remindMessageId),this.$set(this.visibleMessages,e.remindMessageId,!1),this.$emit("close",e.remindMessageId);try{Object(ie.a)({remindMessageType:e.remindMessageType,remindMessageId:e.remindMessageId})}catch(e){}},handleGo:function(e){window.open(e.remindMessageUrl,"_blank"),Object(m.d)("/hs_global_web.user_remind_message.go_btn_click",{remind_message_type:e.remindMessageType,remind_message_id:e.remindMessageId,remind_message_url:e.remindMessageUrl})},handleTimeout:function(e){this.removeMessage(e),this.$emit("timeout",e)}}},oe=(n(4128),Object(b.a)(re,function(){var e=this,t=e._self._c;return t("div",e._l(e.mockRemindMessages,function(n){return t("div",{key:n.remindMessageId,class:["user-remind-message-container",e.currentTheme]},[e.isVisible(n.remindMessageId)?t("div",{class:["user-remind-message"]},[t("div",{staticClass:"message-left"},[t("div",{staticClass:"message-text",domProps:{innerHTML:e._s(n.remindMessageContent)}})]),e._v(" "),t("div",{staticClass:"message-right"},[t("CountdownTimer",{staticClass:"countdown-timer",attrs:{endTime:n.endTime},on:{timeout:function(){return e.handleTimeout(n.remindMessageId)}}}),e._v(" "),t("div",{staticClass:"message-actions"},[t("div",{class:["action-btn"],on:{click:function(){return e.handleGo(n)}}},[e._v("\n            "+e._s(n.buttonName)+"\n          ")]),e._v(" "),t("IconfontView",{staticClass:"close-btn",attrs:{showType:"hs_con_team_close"},on:{click:function(){return e.handleClose(n)}}}
1)],1)],1)]):e._e()])}),0)},[],!1,null,null,null)),ce=oe.exports;installComponents(oe,{IconfontView:n(129).default});var le=n(153),ue=n(3214);function de(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function pe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?de(Object(n),!0).forEach(function(t){Object(s.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):de(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var me={name:"WorkspaceContainer",components:{UserInfo:ne,marketDialog:p.a,UserRemindMessage:ce},mixins:[le.a,ue.a,S.a],props:{isOwner:{type:Boolean,default:!1},owner:{type:Object,default:function(){return{}}},profile:{type:Object,default:function(){return{following:0,follower:0,likes:0,joinedDays:0,blockStatus:0,isFollowed:!1}}},designCount:{type:Array,default:function(){return[0,0,0]}},tabsData:{type:Array,default:function(){return[]}},pathName:{type:String,default:""},badgeInfo:{type:Object,default:function(){return{total:0}}},btnStatus:{type:Number,default:0}},data:function(){var e;return{tabsArrow:{showRight:!1,showLeft:!1},queryUid:void 0,albumList:[],albumTotal:0,defBgUrl:"https://img.alicdn.com/imgextra/i2/O1CN01vnKwA41DRbRyETPgr_!!6000000000213-2-tps-1944-520.png",customBannerUrl:Object(g.b)(null===(e=this.owner)||void 0===e||null===(e=e.bannerImgUrls)||void 0===e?void 0:e[0]),uploading:!1,marketDialogShow:!1,marketType:d.X.RENDERPERSIONAL,marketSource:"workspace_banner_modify"}},computed:pe(pe({},Object(c.d)(["isHomestylerApp","locale","loaded","userTags","memberType","memberInfo"])),{},{isPortfolioPage:function(){return(this.$route.path||"").toLowerCase().includes("portfolio")},isAiResultsPage:function(){return(this.$route.path||"").includes("/myairesults/")},currentPath:{get:function(){return this.pathName},set:function(e){this.$emit("update:pathName",e)}},showBannerUrl:function(){return this.customBannerUrl||this.defBgUrl},hasPermission:function(){var e;return 2===this.memberType||3===this.memberType||!(null===(e=this.memberInfo)||void 0===e||!e.portfolioMember)},customClassName:function(){return"workspace_banner_upload ".concat(!this.customBannerUrl&&this.isOwner?"has_no_banner":"")},showTabsData:function(){var e=this.tabsData.filter(function(e){return!1!==e.enable});return Object(a.a)(e)}}),watch:{owner:function(){var e;this.customBannerUrl=Object(g.b)(null===(e=this.owner)||void 0===e||null===(e=e.bannerImgUrls)||void 0===e?void 0:e[0])},hasPermission:function(e){e&&(this.marketDialogShow=!1)}},mounted:function(){var e=this;this.handleResize();var t=this.$refs.workspaceTabs;null==t||t.addEventListener("scroll",this.handleResize),window.addEventListener("resize",this.handleResize),this.$nextTick(function(){e.$el.querySelector(".portfolio-scroll-container")})},destroyed:function(){var e,t=this.$refs.workspaceTabs;null==t||t.removeEventListener("scroll",this.handleResize),window.removeEventListener("resize",this.handleResize),null!==(e=this.customBannerUrl)&&void 0!==e&&e.startsWith("blob:")&&URL.revokeObjectURL(this.customBannerUrl)},methods:{onMarketDialogClose:function(){this.getUserScores()},handleResize:function(){var e=this;this.$nextTick(function(){var t=e.$refs.workspaceTabs;if(t){var n=t.scrollWidth-t.offsetWidth;e.tabsArrow={showRight:t.scrollLeft<n-1,showLeft:t.scrollLeft>1}}})},scrollLeft:function(e){var t=this,n=this.$refs.workspaceTabs;if(n){var i=.8*n.offsetWidth;n.scrollBy({left:e*i,behavior:"smooth"}),setTimeout(function(){return t.handleResize()},300)}},isTabActive:function(e){var t;return null!==(t=e.children)&&void 0!==t&&t.length?this.currentPath===e.path||this.$route.path.includes("/".concat(e.path,"/")):e.path===this.currentPath},handleTabClick:function(e,t){var n;globalSpmClick("workspace.tab_clk",{tab:e,state:this.isOwner?"self":"other"});var i=this.$route,a=i.query,s=i.params;if(null!=t&&null!==(n=t.children)&&void 0!==n&&n.length){var r=t.children[0];this.currentPath=e;var o=this.isOwner?"/workspace/".concat(e,"/").concat(r.path):"/".concat(s.id,"/").concat(e,"/").concat(r.path);this.$router.push({path:o,query:pe(pe({},a),{},{lang:this.locale})})}else{this.currentPath=e;var c=this.isOwner?"/workspace/".concat(e):"/".concat(s.id,"/").concat(e);this.$router.push({path:c,query:pe(pe({},a),{},{lang:this.locale})})}},showShareModel:function(e){this.$emit("showShareModel",e)}
1,toggleTheme:function(e){this.$emit("toggleTheme",e)},statusChange:function(e){this.$emit("statusChange",e)},blockStateChange:function(e){this.$set(this.owner,"isBlock",e)},handleShareClick:function(){this.$emit("shareClick")},showPortfolioPage:function(){globalSpmClick("workspace.tab_clk",{state:this.isOwner?"self":"other"});var e=this.$route,t=e.query,n=e.params,i=this.isOwner?"/workspace/portfolio":"/".concat(n.id,"/portfolio");this.$router.push({path:i,query:pe(pe({},t),{},{lang:this.locale})})},showBackPage:function(){globalSpmClick("workspace.tab_clk",{state:this.isOwner?"self":"other"});var e=this.$route,t=e.query,n=e.params,i=this.isOwner?"/workspace/mydesigns":"/".concat(n.id,"/mydesigns");this.$router.push({path:i,query:pe(pe({},t),{},{lang:this.locale})})},handlePortfolioClick:function(e){var t=this.$route,n=t.query,i=t.params,a=this.isOwner?"/workspace/portfolio/".concat(e.id):"/".concat(i.id,"/portfolio/").concat(e.id);this.$router.push({path:a,query:pe(pe({},n),{},{lang:this.locale})})},uploadImg:function(e){var t=this;return Object(i.a)(regeneratorRuntime.mark(function n(){var i,a,s,r;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return i="",n.prev=1,a={fileName:e.name||"banner_img.jpg",action:2},s=t.getSessionKey(),n.next=2,l.a.forumUpload.presignedUrl(a,!1,{Authorization:s},!1);case 2:if(0!==(null==(r=n.sent)?void 0:r.status.code)){n.next=4;break}return n.next=3,o.a.put(r.data.url,e,{headers:{"Content-Type":"application/octet-stream","Cache-Control":"max-age=31536000"}});case 3:200===n.sent.status&&(i=r.data.objUrl);case 4:n.next=6;break;case 5:n.prev=5,n.catch(1);case 6:return n.abrupt("return",i);case 7:case"end":return n.stop()}},n,null,[[1,5]])}))()},handleImageChange:function(e,t){var n=this;this.customBannerUrl=e,this.uploading=!0,this.uploadImg(t).then(function(e){e&&n.updateBannerImgUrl(e)})},handleImageDelete:function(){var e;globalThis.globalSpmClick("workspace.banner_modify_delete"),this.customBannerUrl="",null!==(e=this.owner)&&void 0!==e&&null!==(e=e.bannerImgUrls)&&void 0!==e&&e[0]&&this.updateBannerImgUrl()},updateBannerImgUrl:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";u.a.user.updateUserBannerImageUrls({data:{bannerImageUrls:[t],clientInfo:JSON.stringify({platform:"web",language:this.locale})}}).then(function(t){var n,i;null!=t&&null!==(n=t.ret)&&void 0!==n&&null!==(n=n[0])&&void 0!==n&&n.includes("SUCCESS")&&!0===t.data.data||(e.customBannerUrl=null===(i=e.owner)||void 0===i||null===(i=i.bannerImgUrls)||void 0===i?void 0:i[0])}).finally(function(){e.uploading=!1})},getLocalContent:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.$t(e,t)},showMarketDialog:function(e,t){return(!this.hasPermission||t===d.X.MASTER)&&(this.marketType=t||d.X.RENDERPERSIONAL,this.marketSource=e||"workspace_banner_modify",this.marketDialogShow=!0,!0)}}},fe=me,he=(n(4129),Object(b.a)(fe,function(){var e=this,t=e._self._c;return t("div",{staticClass:"workspace_container"},[e.isOwner&&e.isHomestylerApp?e._e():t("div",{key:"workspace_left",staticClass:"workspace_left"},[t("div",{staticClass:"workspace_profile_banner"},[t("img",{staticClass:"profile_bg",attrs:{src:e.showBannerUrl,fetchpriority:"high"}})]),e._v(" "),t("div",{staticClass:"workspace_profile_content"},[t("UserInfo",{attrs:{owner:e.owner,profile:e.profile,isOwner:e.isOwner,badgeInfo:e.badgeInfo,designCount:e.designCount,btnStatus:e.btnStatus},on:{showMarketDialog:e.showMarketDialog,toggleTheme:e.toggleTheme,showShareModel:e.showShareModel,statusChange:e.statusChange,blockStateChange:e.blockStateChange,shareClick:e.handleShareClick}})],1)]),e._v(" "),t("div",{key:"workspace_right",staticClass:"workspace_right"},[e.isHomestylerApp?e._e():t("div",{key:"workspace_right_banner",staticClass:"workspace_right_banner",class:{workspace_right_banner_event_forbidden:!e.isOwner}},[t("img",{staticClass:"profile_bg",attrs:{src:e.showBannerUrl,fetchpriority:"high"}}),e._v(" "),t("client-only",[e.uploading?t("div",{staticClass:"loading_wrap"},[t("IconfontView",{attrs:{customClass:"loading_upload_icon",customStyle:{fontSize:"24px",color:"#ffffff"},showType:"loading"}})],1):t("ImageUploadVue",{attrs:{bannerImageUrl:e.customBannerUrl,onImageChange:e.handleImageChange,onImageDelete:e.handleImageDelete,cropContainerSelector:".workspace_r
1ight_banner",loaded:e.loaded,customClass:e.customClassName,$t:e.getLocalContent,showMarketDialog:e.showMarketDialog}})],1)],1),e._v(" "),t("UserRemindMessage",{directives:[{name:"show",rawName:"v-show",value:e.isOwner,expression:"isOwner"}],key:"userRemindMessage"}),e._v(" "),e.isPortfolioPage?e._e():t("div",[e.isHomestylerApp?e._e():t("PortfolioBannerVue",{attrs:{locale:e.locale,isOwner:e.isOwner,queryUid:e.owner.id||e.owner.uid||e.queryUid,onShowPortfolioPage:e.showPortfolioPage,onPortfolioClick:e.handlePortfolioClick},on:{getLocalContent:e.getLocalContent}}),e._v(" "),t("div",{staticClass:"workspace_right_tabs_container"},[e.tabsArrow.showLeft?t("div",{staticClass:"tabs_left_arrow",on:{click:function(t){return t.stopPropagation(),e.scrollLeft(-1)}}},[t("i",{staticClass:"iconfont arrow-icon"})]):e._e(),e._v(" "),e.isHomestylerApp?e._e():t("ul",{ref:"workspaceTabs",staticClass:"workspace_right_tabs"},e._l(e.showTabsData,function(n){return t("li",{key:n.id,class:["tab_item",e.isTabActive(n)?"tab_item_active":""],on:{click:function(t){return e.handleTabClick(n.path,n)}}},[t("span",{staticClass:"tab_item_text"},[e._v(e._s(e.$t("".concat(n.titleKey))))])])}),0),e._v(" "),e.tabsArrow.showRight?t("div",{staticClass:"tabs_right_arrow",on:{click:function(t){return t.stopPropagation(),e.scrollLeft(1)}}},[t("i",{staticClass:"iconfont arrow-icon"})]):e._e()])],1),e._v(" "),t("div",{staticClass:"workspace_right_content",class:{workspace_right_content_full:e.isAiResultsPage}},[e._t("default")],2)],1),e._v(" "),t("client-only",[e.marketDialogShow?t("marketDialog",{attrs:{marketType:e.marketType,marketSource:e.marketSource,manual:""},on:{onClose:e.onMarketDialogClose},model:{value:e.marketDialogShow,callback:function(t){e.marketDialogShow=t},expression:"marketDialogShow"}}):e._e()],1)],1)},[],!1,null,null,null));t.a=he.exports;installComponents(he,{IconfontView:n(129).default})},3259:function(e,t,n){"use strict";n(23),n(19),n(15),n(31),n(32);var i=n(7),a=n(1),s=n(8),r=(n(38),n(25),n(73),n(30),n(22),n(200),n(21)),o=n(57),c=n(3228),l=n(12),u=n(14),d=n(24),p=n(170),m=n(363),f=(n(37),n(142),n(143),n(1003)),h=n.n(f),g=n(109),v=n(164),b=n(280),_=n(369),y=(n(62),{name:"TagList",props:{ranking:{type:Number,default:0},voteMonth:{type:Number,default:0}},data:function(){return{}},computed:{rankDescCode:function(){var e=this.voteMonth||(new Date).getMonth()+1;return Object(d.y)(e)||0}},mounted:function(){},methods:{}}),w=(n(4144),n(18)),C=Object(w.a)(y,function(){var e=this,t=e._self._c;return t("div",{staticClass:"ranking-tag"},[t("span",{staticClass:"ranking-tag-title"},[t("span",{staticClass:"title-text"},[e._v(e._s("".concat(e.$t(e.rankDescCode)," #").concat(e.ranking))+" ")])])])},[],!1,null,"289b7984",null).exports,O=n(51),k=n(3256),I=n(28),S=n.n(I),j=n(153),T=(n(150),n(188)),x=n(141),A=n(444),P=n(159);function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function M(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?D(Object(n),!0).forEach(function(t){Object(a.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var E={name:"NewDesignCard",components:{TopRanking:C,ShareModal:m.a},mixins:[j.a,k.a,x.a,T.a,A.a,b.a],props:{designItem:{type:Object,default:function(){return{}}},showLikeBubble:{type:Boolean,default:!1},onShowMarketDialog:{type:Function,default:null},canEdit:{type:Boolean,default:!0}},data:function(){return{imgRgb:"",likeDataImg:{likeConfirm:n(532),uncheckImg:n(406)},spmName:"new_design_card",showPopover:!1,showBubble:!1,timeoutId:null,myRenderComponent:null,myRender:{show:!1,roomId:"cover",renderId:"",imgIndex:"",images:[],task:null,loadComponent:!1},shareModal:{show:!1,config:{}},curPrivateStatus:1}},computed:M(M({},Object(r.d)(["locale","userInfo","signIn","isMobile"])),{},{likeDataInfo:function(){return{bizType:"global",sourceType:this.getCurrentSource,platformSystem:"web",likeTargetType:2===this.designItem.caseFrom?101:102,queryType:"content_like_count",likeTargetId:this.designItem.caseId}},isHomestyler:function(){return"homestyler"===this.$global.tenant},isVideoCover:function(){return Object(v.c)(this.designItem.coverUrl)},coverImgUrl:function(){return this.isVideoCover?Object(v.d)(this.designItem.coverUrl,600):Object(O.d)(this.designItem.coverUrl,600,600)},isPrivate:function(){return 0===this.curPrivateStatus},voteRank:function(){var e;return(null===(e=this.designItem.contests)||void 0===e||null===(e=e[0])||void 0===e?void 0:e.voteRank)||0},voteMonth:function(){var e;return(null===(e=this.designItem.contests)||void 0===e||null===(e=e[0])||void 0===e?void 0:e.voteMonth)||0},showGoToEditDetail:function(){return 1!==this.designItem.caseFrom||1===this.designItem.isPublished},editData:function(){var e,t=this,n="12"===(null===(e=this.designItem.designType)||void 0===e?void 0:e.toString());return[{id:"render_img_view",labelKey:"myDesigns.content.view_renders",disabled:2===this.designItem.caseFrom||n,onClick:function(){t.showPopover=!1,t.preAddImage()}},{id:"edit_design_detail",labelKey:"Homepage_project_edit",disabled:!this.showGoToEditDetail||n,onClick:function(){t.gotoEditPage()}},{id:"share_design",labelKey:"share.journey.btn1",disabled:1!==this.designItem.isPublished,onClick:function(){t.showPopover=!1,t.shareDesign()}},{id:"design_status",labelKey:this.isPrivate?"myDesigns.content.public":"myDesigns.content.private",disabled:2===this.designItem.caseFrom,onClick:function(){t.showPopover=!1,t.toggleDesignStatus()}},{id:"design_delete",labelKey:"myDesigns.content.delete",onClick:function(){t.showPopover=!1,t.deleteDesign()}}]},detailUrl:function(){var e=this.designItem,t=e.caseId,n=e.caseFrom,i=e.initTitle,a=e.title,s=this.getKeyWords(i,a),r=1===n?"web":"mobile";return"/ai-interior-design-detail/".concat(s,"-").concat(r,"-").concat(t)},operateBtnList:function(){var e=[],t=this.designItem,n=t.caseFrom,i=t.isPublished,a=t.designType,s="12"===(null==a?void 0:a.toString());return 1===n&&e.push({id:"editDesign",mdsKey:"workspace.myDesigns.goDesign",handleFunc:this.goDesignEdit,customClass:"item_black"}),1===i||s||e.push({id:"postCommunity",mdsKey:"publish.design.panel.name",handleFunc:this.gotoEditPage,customClass:1===n?"item_white":"item_black"}),s||e.push({id:"viewDetail",mdsKey:"workspace.myDesigns.goDetail",handleFunc:this.openDesignDetailClk,customClass:1===n||1!==i?"item_white":"item_black"}),e},tagList:function(){var e,t=[],i=(null===(e=this.designItem.contests)||void 0===e?void 0:e[0])||{},a=i.awardType,s=i.rank;if(i.isAwarded&&+a>1){var r=P.c.awardType[a]||"";a===P.a.top&&(r=r[s]),r&&t.push({id:"contest",imgUrl:n(4145)("./hs_tag_".concat(r,".png"))})}return this.designItem.isFeatured&&t.push({id:"featured",imgUrl:n(592)}),t}}),watch:{coverImgUrl:function(e){e&&this.getImgRgb()},"designItem.privateStatus":{handler:function(e){this.curPrivateStatus=e},immediate:!0}},mounted:function(){this.getImgRgb();var e=this.designItem,t=e.description,n=e.title,i=e.caseId,a=e.caseFrom,s={title:n,description:t,image:this.coverImgUrl,url:S.a.homestyler+this.detailUrl,text:'See this @homestyler project:"'.concat(n,'"'),attr:{bizId:i,type:1===a?2:4,language:this.locale||"en_US"}};this.shareModal.config=s,this.showLikeBubble&&(this.showBubble=!0,Object(u.c)("/hs_global_web.my_design.like_bubble_expose","member_id=".concat(this.userInfo.uid,"&language=").concat(this.locale)))},created:function(){this.caseItemChange()},methods:M(M({},Object(r.b)(["getUserInfo"])),{},{handleLikeChange:function(e){this.checkIsLogin()&&("fail"!==e?(this.caseItem.likesCount<e.likesCount&&(this.likeTaskStatusUpdate(),this.showBubble=!1),this.caseItem=M(M({},this.caseItem),e),Object(u.c)("/hs_global_web.".concat(this.spmName,".design_like"),"member_id=".concat(this.userInfo.uid,"&language=").concat(this.locale,"&case_id=").concat(e.caseId,"&isLike=").concat(e.isMyLike))):this.$message.error(this.$t("coupon.wrong")))},caseItemChange:function(){this.caseItem={caseId:this.designItem.caseId,isMyLike:this.designItem.liked,likesCount:this.designItem.likeCount,commentsCount:this.designItem.commentsCount,privateStatus:this.isPrivate?0:1,caseFrom:this.designItem.caseFrom}},getImgRgb:function(){var e=this;return Object(i.a)(regeneratorRuntime.mark(function t(){var n,i,a;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!e.designItem.coverUrl){t.next=2;break}return n=e.designItem.coverUrl,i=e.isVideoCover?Object(v.d)(n,10):"".concat(n,"?x-oss-process=image/resize,w_10,m_mfit/format,webp"),t.next=1,h()(i);case 1:a=t.sent,e.imgRgb=a[0].color;case 2:t.next=4;break;case 3:t.prev=3,t.catch(0);case 4:case"end":return t.stop()}},t,null,[[0,3]])}
1))()},checkIsLogin:function(){var e=this;return!this.signIn||(this.isHomestyler||!this.isMobile?this.setLoginInfo("login"):Object(_.a)({hiddenLoginSuccessRedirect:!0,onLogined:function(){e.getUserInfo()}}),!1)},openDesignDetail:function(e){e.stopPropagation(),Object(u.c)("/hs_global_web.my_design.design_projectdetail_click","member_id=".concat(this.userInfo.uid,"&language=").concat(this.locale,"&origin=hover_mask&is_published=").concat(this.curPrivateStatus)),this.$emit("cardClick",this.designItem)},openDesignDetailClk:function(e){e.stopPropagation(),Object(u.c)("/hs_global_web.my_design.design_projectdetail_click","member_id=".concat(this.userInfo.uid,"&language=").concat(this.locale,"&origin=button&is_published=").concat(this.curPrivateStatus)),this.$emit("cardClick",this.designItem)},editMouseenter:function(){clearTimeout(this.timeoutId),this.showPopover=!0},editMouseleave:function(){var e=this;clearTimeout(this.timeoutId),this.timeoutId=setTimeout(function(){e.showPopover=!1},230)},preAddImage:function(e){var t=this,a=(null==e?void 0:e.version)||this.designItem.version,s=(null==e?void 0:e.caseId)||this.designItem.caseId;Object(u.c)("/hs_global_web.my_design.renders_view","member_id=".concat(this.userInfo.uid,"&language=").concat(this.locale,"&version=").concat(a)),this.myRender.task=function(){t.myRender.show=!0,t.myRender.roomId="cover",t.myRender.renderId=s,t.myRender.mutil=!0;var e=function(){var e=Object(i.a)(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,t.getRenderList(s);case 1:t.myRender.loadComponent=!0;case 2:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}();t.myRender.loadComponent?e():setTimeout(function(){e()},50)},this.myRender.loadComponent?this.myRender.task():this.myRenderComponent=function(){return{component:Promise.all([n.e(0),n.e(4)]).then(n.bind(null,4750))}}},getRenderList:function(e){var t=this;return Object(i.a)(regeneratorRuntime.mark(function n(){var i,a,s,r,o,c,l,u;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return i=t.openScreenLoading(),n.next=1,g.a.gallery.designsRendersDetail({caseId:e,showProcessingRender:!0},!1,{Authorization:t.getSessionKey()}).catch(function(e){});case 1:a=n.sent,i.close(),r=(s=a||{status:{code:-1,msg:"data is undefined or null"}}).status,o=void 0===r?{}:r,c=s.data,(l=void 0===c?{}:c)&&o&&0===o.code&&(u=[],Object.keys(l).forEach(function(e){if(null!=l[e]){var t=l[e].map(function(e){return M(M({},e),{},{type:"navipano"===e.renderType?"720vt":e.renderType})});u=u.concat(t)}}),t.myRender.images=u);case 2:case"end":return n.stop()}},n)}))()},openScreenLoading:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.$loading(Object.assign({lock:!0,text:" ",fullscreen:!1,spinner:"iconfont icon-loading",customClass:"gallery-render-fullsrceen-loading",background:"rgba(255, 255, 255, 0.1)",target:".render-body"},e))},onMyRenderMounted:function(){this.myRender.loadComponent||this.myRender.task()},downloadHandle:function(e,t){Object(u.c)("/hs_global_web.my_design.render_batchdownload","member_id=".concat(this.userInfo.uid,"&language=").concat(this.locale,"&version=").concat(this.designItem.version));var n=t.map(function(e){return e.photoUrl});Object(d.T)(n,this.designItem.title)},gotoEditPage:function(e){null==e||e.stopPropagation(),Object(u.c)("/hs_global_web.my_design.design_editproject_click","member_id=".concat(this.userInfo.uid,"&language=").concat(this.locale,"&design_id=").concat(this.designItem.caseId)),window.open("/publish/post/?id=".concat(this.designItem.caseId,"&t=").concat(this.designItem.caseFrom,"&published=").concat(this.designItem.isPublished),"_blank")},shareDesign:function(){this.shareModal.show=!this.shareModal.show,Object(u.c)("/hs_global_web.design_detail.share_click","design_id=".concat(this.designItem.assetId,"&member_id=").concat(this.userInfo.uid,"&language=").concat(this.locale,"&case_id=").concat(this.designItem.caseId))},toggleDesignStatus:function(){var e=this;return Object(i.a)(regeneratorRuntime.mark(function t(){var n,i,a,s,r,o,c;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.designItem,i=n.caseId,a=n.caseFrom,s=n.assetId,r={caseId:i,status:e.isPrivate?1:0,caseFrom:a},t.next=1,g.a.gallery.toogleDesignStatus(r,!1,{Authorization:e.getSessionKey()});case 1:o=t.sent,(c=o.status)&&0===c.code?(e.curPrivateStatus=r.status,0===r.status?Object(u.c)("/hs_global_web.my_design.design_private_click","member_id=".concat(e.userInfo.uid,"&language=").concat(e.locale,"&design_id=").concat(s)):Object(u.c)("/hs_global_web.my_design.design_public_click","member_id=".concat(e.userInfo.uid,"&language=").concat(e.locale,"&design_id=").concat(s))):e.$message.error("Looks like the server is taking too long to respond, please try again in sometime.");case 2:case"end":return t.stop()}},t)}))()},deleteDesign:function(){var e=this,t=this.designItem,n=t.caseId,a=t.caseFrom,s=t.assetId,r=t.isFeatured,o={delete:this.$t("myDesigns.content.delete"),cancel:this.$t("myDesigns.content.cancel"),success:this.$t("myDesigns.content.del_success"),title:this.$t("myDesigns.content.delete_confirm_title"),content:this.$t("myDesigns.content.delete_confirm_content")},c=!1;1===a&&(3===this.memberType?(o.content=this.$t("trash_design_move_trash_delete_master"),r&&(
1o.content=this.$t("trash_gallery_move_trash_delet_master"))):2===this.memberType?(o.cancel=this.$t("trash_upgrade_membership"),o.content=this.$t("trash_design_move_trash_delete30"),c=!0,r&&(o.content=this.$t("trash_gallery_move_trash_delet30"))):(o.cancel=this.$t("trash_upgrade_membership"),o.content=this.$t("trash_design_move_trash_delete"),c=!0,r&&(o.content=this.$t("trash_gallery_move_trash_delete"))));var l,d={caseId:n,caseFrom:a,deleteType:2},p=function(){var t=Object(i.a)(regeneratorRuntime.mark(function t(){var n,i,a;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,g.a.gallery.deleteMyDesign(d,!1,{Authorization:e.getSessionKey()});case 1:n=t.sent,i=n.status,(a=void 0===i?{}:i)&&0===a.code?(e.$message.success(o.success),e.$emit("deleteDesign")):e.$message.error("Looks like the server is taking too long to respond, please try again in sometime.");case 2:case"end":return t.stop()}},t)}));return function(){return t.apply(this,arguments)}}();this.$confirm(o.content,o.title,{confirmButtonText:o.delete,cancelButtonText:o.cancel,type:"warning",customClass:"mydesigns-delete-confim",iconClass:"iconfont icon-warning mydesigns-icon-warning",center:!0,distinguishCancelAndClose:!0,beforeClose:(l=Object(i.a)(regeneratorRuntime.mark(function t(n,i,a){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if("confirm"!==n){t.next=5;break}return i.confirmButtonLoading=!0,i.confirmButtonText=" ",t.prev=1,t.next=2,p();case 2:Object(u.c)("/hs_global_web.my_design.design_delete_click","member_id=".concat(e.userInfo.uid,"&language=").concat(e.locale,"&design_id=").concat(s)),t.next=4;break;case 3:t.prev=3,t.catch(1);case 4:i.confirmButtonLoading=!1,t.next=6;break;case 5:"cancel"===n&&c&&e.onShowMarketDialog&&e.onShowMarketDialog("recycle-bin-mydesigns-card-delete");case 6:a();case 7:case"end":return t.stop()}},t,null,[[1,3]])})),function(e,t,n){return l.apply(this,arguments)})}).catch(function(){})},handleClose:function(){this.showBubble=!1,Object(u.c)("/hs_global_web.my_design.like_bubble_close","member_id=".concat(this.userInfo.uid,"&language=").concat(this.locale))},goDesignEdit:function(e){var t=this;return Object(i.a)(regeneratorRuntime.mark(function n(){var i,a,s,r,o,c,d,p,m;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(e.stopPropagation(),i=t.designItem,a=i.assetId,s=i.magic,r=i.designType,o="u6tklt3u60yg"!==s?"&magic=".concat(s):"",Object(u.c)("/hs_global_web.my_design.design_editdesign_click","member_id=".concat(t.userInfo.uid,"&language=").concat(t.locale,"&design_id=").concat(a)),"12"!==(null==r?void 0:r.toString())){n.next=4;break}return c=window.open("","_blank"),n.prev=1,n.next=2,l.a.aiConversation.getUidByDesignId({data:{designId:a}});case 2:return d=n.sent,(p=(d||{}).data).result&&(m="".concat(S.a.aiSparkUrl,"?lang=").concat(t.locale,"&sessionId=").concat(p.result),c.location.href=m),n.abrupt("return");case 3:n.prev=3,n.catch(1),c.close();case 4:window.open("".concat(t.globalFPUrl,"&assetId=").concat(a).concat(o),"_blank");case 5:case"end":return n.stop()}},n,null,[[1,3]])}))()}})},L=E,$=(n(4146),Object(w.a)(L,function(){var e,t=this,i=t._self._c;return i("div",{staticClass:"design_card_wrap",style:{backgroundColor:t.imgRgb}},[i("div",{staticClass:"design_cover_wrap",on:{click:t.openDesignDetail}},[i("img",{staticClass:"case-cover",attrs:{loading:"lazy",src:t.coverImgUrl}}),t._v(" "),"12"===(null===(e=t.designItem.designType)||void 0===e?void 0:e.toString())?i("div",{staticClass:"spark-tag"},[i("img",{staticClass:"spark-icon",attrs:{src:"https://img.alicdn.com/imgextra/i4/O1CN01WA8snw23x4kMk8MFu_!!6000000007321-2-tps-40-40.png",alt:"Spark"}}),t._v(" "),i("span",{staticClass:"spark-text"},[t._v("Spark")])]):t._e()]),t._v(" "),i("div",{staticClass:"tag_wrap",class:{guest_wrap:!t.canEdit}},t._l(t.tagList,function(e){return i("img",{key:e.id,staticClass:"tag_img",attrs:{src:e.imgUrl}})}),0),t._v(" "),t.canEdit?i("div",{staticClass:"design_operate",on:{click:t.openDesignDetail}},t._l(t.operateBtnList,function(e){return i("span",{key:e.id,staticClass:"item",class:e.customClass,on:{click:e.handleFunc}},[t._v(t._s(t.$t(e.mdsKey)))])}),0):t._e(),t._v(" "),t.canEdit?i("div",{staticClass:"design_edit_wrap",on:{mouseenter:t.editMouseenter,mouseleave:t.editMouseleave}},[i("IconfontView",{attrs:{customStyle:{color:"#ffffff",fontSize:"20px"},showType:"hs_pricing_more"}}),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:t.showPopover,expression:"showPopover"}],staticClass:"design_edit",on:{mouseenter:t.editMouseenter,mouseleave:t.editMouseleave}},[i("ul",[t._l(t.editData,function(e){return[e.disabled?t._e():i("li",{key:e.id,on:{click:e.onClick}},[t._v("\n            "+t._s(t.$t(e.labelKey))+"\n          ")])]})],2)])],1):t._e(),t._v(" "),i("div",{staticClass:"ranking-tag-container"},[t.voteRank&&t.voteMonth?i("TopRanking",{attrs:{ranking:t.voteRank,voteMonth:t.voteMonth}}):t._e()],1),t._v(" "),i("div",{staticClass:"case-bottom"},[i("client-only",[i("div",{staticClass:"interact_box flex_center"},[t.showBubble?i("div",{staticClass:"like-bubble flex_center"},[i("img",{staticClass:"like-bubble-icon",attrs:{src:n(1852),alt:"cursor.png"}}),t._v(" "),i("span",{staticClass:"like-bubble-link",domProps:{innerHTML:t._s(t.$t("community_like"))}}),t._v(" "),i("IconfontView",{attrs:{customClass:"close-icon",customStyle:{fontSize:"14px",color:"#a8a8a8"},showType:"hs_con_team_close"},on:{click:t.handleClose}})],1):t._e(),t._v(" "),t.canEdit?i("div",{staticClass:"view flex_center"},[i("IconfontView",{attrs:{customStyle:{color:"#ffffff",fontSize:"19px"},showType:"hs_xian_look"}}),t._v(" "),i("span",{staticClass:"count"},[t._v(t._s(t.designItem.viewNumber||0))])],1):t._e(),t._v(" "),t.designItem.isPublished?i("SocialLikes",{key:t.designItem.caseId,staticClass:"flex_center",attrs:{likeDataOther:t.likeDataInfo,likeData:t.caseItem,likeDataImgInfo:t.likeDataImg},on:{"like-changed":t.handleLikeChange}}):t._e(),t._v(" "),i("div",{staticClass:"comment flex_center"},[i("IconfontView",{attrs:{customStyle:{color:"#ffffff",fontSize:"19px"},showType:"a-hs_xian_newcomment"}}),t._v(" "),i("span",{staticClass:"count"},[t._v(t._s(t.designItem.commentsCount||0))])],1)],1)]),t._v(" "),i("div",{staticClass:"case-info"},[i("div",{staticClass:"case-tags"},[t.designItem.hasVideo||t.isVideoCover?i("IconfontView",{attrs:{customStyle:{fontSize:"20px"},showType:"hs-video"}}):t._e(),t._v(" "),t.designItem.templateId?[i("IconfontView",{attrs:{customStyle:{color:"#ffffff",fontSize:"16px"},showType:"hs_mian_linggan"}}),t._v(" "),i("span",[t._v(t._s(t.$t("web_community_aidecor")))])]:t._e()],2),t._v(" "),t.designItem.title?i("div",{staticClass:"case-title"},[i("IconfontView",{directives:[{name:"show",rawName:"v-show",value:t.isPrivate,expression:"isPrivate"}],attrs:{customStyle:{color:"#ffffff",fontSize:"16px"},showType:"hs_mian_lock"}}),t._v(" "),i("span",[t._v(t._s(t.designItem.title))])],1):t._e()])],1),t._v(" "),t.myRenderComponent?i(t.myRenderComponent,{tag:"Component",attrs:{opsType:"download",ver
1sion:t.designItem.version,show:t.myRender.show,mutil:t.myRender.mutil,assetId:t.designItem.assetId,caseId:t.designItem.caseId,type:t.myRender.roomId,caseName:t.designItem.title,images:t.myRender.images,selected:t.myRender.renderId},on:{"update:show":function(e){return t.$set(t.myRender,"show",e)},onInsert:t.downloadHandle,mounted:t.onMyRenderMounted}}):t._e(),t._v(" "),i("ShareModal",{attrs:{show:t.shareModal.show,caseId:t.designItem.caseId,shareCfg:t.shareModal.config},on:{"update:show":function(e){return t.$set(t.shareModal,"show",e)}}})],1)},[],!1,null,"9dd686a6",null)),N=$.exports;installComponents($,{IconfontView:n(129).default,SocialLikes:n(443).default});var R=n(3210),B=n(590);function U(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function F(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?U(Object(n),!0).forEach(function(t){Object(a.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var V={name:"DesignList",components:{NewDesignCard:N,RectLoad:p.a,ShareModal:m.a},mixins:[B.a,R.a],props:{owner:{type:Object,default:function(){return{}}},initDesignData:{type:Object,default:function(){return{hasMore:!0,designList:[],pageNo:0}}},canEdit:{type:Boolean,default:!0},onShowMarketDialog:{type:Function,default:null},designCount:{type:Array,default:function(){return[0,0,0]}}},data:function(){return{designTabs:c.b,designStatusList:c.a,caseTabType:0,loading:!0,tabsDesignData:[this.initDesignData,{},{}],noDataImg:n(325),noDataDarkImg:n(455),selectedFilter:c.a[0],intersectionObserver:null,count:this.designCount,showDetail:!1,curVlId:""}},head:function(){return this.self?{title:this.$t("myDesigns.meta.title"),meta:[].concat(Object(s.a)(this.getMetaTags("myDesigns",{enableSeo:!1,spma:"a1zmxy",spmb:"17753976"})),[{name:"robots",content:"noindex, nofollow"}])}:void 0},computed:F(F({},Object(r.d)(["userInfo","locale","isDarkTheme"])),{},{designData:function(){return this.tabsDesignData[this.caseTabType]},designList:function(){return this.designData.designList||[]},hasMore:function(){return this.designData.hasMore||!1},designSource:function(){return 0===this.caseTabType?[2,4]:1===this.caseTabType?[2]:[4]},ownerInfo:function(){return this.owner.uid?this.owner:this.userInfo},showRank:function(){return!!this.$route.query.invitationCode},isSelf:function(){return!this.owner.uid},showDesignBox:function(){return this.canEdit&&(this.showDataList||!this.loading&&1!==this.selectedFilter.id)},showDataList:function(){return this.designList.length>0&&!this.loading},showNoData:function(){return!this.loading&&(this.canEdit?!this.showDataList&&1===this.selectedFilter.id:!this.showDataList)},initFeedsList:function(){var e;return null===(e=this.designList)||void 0===e?void 0:e.map(function(e){return{id:e.assetId,bizType:+o.Ob[e.caseFrom],caseFrom:e.caseFrom,vlId:e.assetId,isPublished:e.isPublished}})}}),watch:{"ownerInfo.uid":{handler:function(){this.getDesignList(this.designData.pageNo+1)},immediate:!0},caseTabType:function(){this.designList.length<=0&&this.getDesignList()},designCount:function(e){this.count=e},hasMore:function(e){!e&&this.intersectionObserver?(this.intersectionObserver.disconnect(),this.intersectionObserver=null):this.setupIntersectionObserver()}},mounted:function(){this.setupIntersectionObserver(),"template-video"===this.$route.query.from&&this.changeCaseStatus(this.designStatusList.find(function(e){return 1===e.key}))},beforeDestroy:function(){this.intersectionObserver&&(this.intersectionObserver.disconnect(),this.intersectionObserver=null)},methods:{setupIntersectionObserver:function(){var e=this;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(t){t.forEach(function(t){t.isIntersecting&&e.hasMore&&!e.loading&&e.loadMore()})},{root:null,rootMargin:"100px",threshold:.1}
1),this.$nextTick(function(){var t=e.$refs.loadMoreTrigger;t&&e.intersectionObserver.observe(t)}))},loadMore:function(){!this.loading&&this.hasMore&&this.getDesignList(this.designData.pageNo+1)},getDesignList:function(){var e=arguments,t=this;return Object(i.a)(regeneratorRuntime.mark(function n(){var i,a,s,r,o,c,u;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(i=e.length>0&&void 0!==e[0]?e[0]:1,t.ownerInfo.uid){n.next=1;break}return n.abrupt("return");case 1:return n.prev=1,t.loading=!0,a=t.caseTabType,s=1===i?[]:t.designList,1===i&&t.$set(t.tabsDesignData,a,Object.assign({},{designList:[],pageNo:i,hasMore:!0})),r={pageNo:i||1,pageSize:24,clientInfo:JSON.stringify({platform:"web"}),source:JSON.stringify(t.designSource),queryUid:t.ownerInfo.uid,searchMode:0===a?2:1,searchable:t.selectedFilter.id},n.next=2,l.a.mobileApi.getDesigns({data:r});case 2:o=n.sent,t.loading=!1,o&&o.ret&&o.ret[0].includes("SUCCESS")&&(c=o.data.designs||[],u=o.data.paging,c.forEach(function(e){switch(e.version=e.webCaseVersion,e.cover=e.cover||"",e.webCaseVersion){case 1:e.magic="3614ec83716a";break;case 2:e.magic="61cd47b78148";break;default:e.magic="u6tklt3u60yg"}e.privateStatus=[0,30].includes(e.status)?0:1}),t.$set(t.tabsDesignData,a,Object.assign({},{designList:s.concat(c),pageNo:i,hasMore:u.hasMore||!1})),u.hasMore||t.$emit("getDataFinished")),n.next=4;break;case 3:n.prev=3,n.catch(1);case 4:case"end":return n.stop()}},n,null,[[1,3]])}))()},getDesignCount:function(){var e=this;return Object(i.a)(regeneratorRuntime.mark(function t(){var n,i,a,s,r,o,c,u;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e.ownerInfo.uid){t.next=1;break}return t.abrupt("return");case 1:return t.prev=1,i={clientInfo:JSON.stringify({platform:"web"}),queryUid:e.ownerInfo.uid,searchable:e.selectedFilter.id},t.next=2,l.a.mobileApi.getDesignCount({data:i});case 2:null!=(a=t.sent)&&null!==(n=a.ret)&&void 0!==n&&null!==(n=n[0])&&void 0!==n&&n.includes("SUCCESS")&&(s=a.data,r=s.webCount,o=void 0===r?0:r,c=s.appCount,u=void 0===c?0:c,e.count=[o+u,o,u]),t.next=4;break;case 3:t.prev=3,t.catch(1);case 4:case"end":return t.stop()}},t,null,[[1,3]])}))()},createNewDesignHandler:function(){Object(u.c)("/hs_global_web.my_design.newdesign_create","caseType=".concat(["all","web","app"][this.caseTabType],"&member_id=").concat(this.ownerInfo.uid,"&language=").concat(this.locale,"&isSelf=").concat(this.isSelf)),window.gaTracker&&window.gaTracker.trackEvent("design","launchFP","myCreateNewButton",this.ownerInfo.uid);var e=[0,1].includes(this.caseTabType)?"".concat(this.$global.floorplanUrl,"?lang=").concat(this.locale):"/room-design-app";window.open(e,"_blank")},changeCaseTab:function(e){var t=e.key,n=e.spmCode;this.caseTabType=t,Object(u.c)("/hs_global_web.my_design.".concat(n),"member_id=".concat(this.ownerInfo.uid,"&language=").concat(this.locale,"&isSelf=").concat(this.isSelf))},changeCaseStatus:function(e){var t=this,n=(e.key,e.spmCode);this.selectedFilter=e,this.tabsDesignData=[{},{},{}],this.getDesignList(1),this.getDesignCount(),Object(u.c)("/hs_global_web.my_design.".concat(n),"member_id=".concat(this.ownerInfo.uid,"&language=").concat(this.locale,"&isSelf=").concat(this.isSelf)),this.$refs.filterListWrap.style.opacity="0",this.$refs.filterListWrap.style.height="0",setTimeout(function(){t.$refs.filterListWrap.style=""},200)},cardDataBuild:function(e){var t=e.id,n=e.assetId,i=e.magic,a=e.liked,s=e.likeCount,r=e.commentCount,o=e.caseFrom,c=e.version,l=e.viewNumber,u=e.modified,d=e.image,p=e.title,m=e.description,f=e.isPublished,h=e.isFeatured,g=e.templateId,v=e.hasVideo,b=e.privateStatus,_=e.contests;return{designType:e.designType,caseId:t,assetId:n,magic:i,liked:a,likeCount:s,commentsCount:r,caseFrom:o,version:c,viewNumber:l,date:u,coverUrl:d,title:p,description:m,isPublished:f,isFeatured:h,templateId:g,hasVideo:v,contests:_,privateStatus:b}},deleteDesign:function(e){this.designList.splice(e,1)},closeDetailMask:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.showDetail=!e},cardClick:function(e){this.curVlId=e.assetId,this.closeDetailMask(!1)},goToPostPage:function(){window.open("/publish/post","_blank")}}},H=V,z=(n(4147),n(4148),Object(w.a)(H,function(){var e=this,t=e._self._c;return t("div",{staticClass:"design_list_container",class:{"dark-theme":e.isDarkTheme}},[t("div",{staticClass:"design_list_header"},[t("h3",{staticClass:"design_list_title"},e._l(e.designTabs,function(n){return t("span",{key:n.key,staticClass:"design_tab_item",class:{tab_active:n.key===e.caseTabType},on:{click:function(t){return e.changeCaseTab(n)}}},[e._v("\n        "+e._s(e.$t(n.label))+e._s(e.count[n.key]>0&&n.key>0?"(".concat(e.count[n.key],")"):""))])}),0),e._v(" "),e.canEdit?t("div",{staticClass:"filter_area"},[t("span",{staticClass:"filter_name"},[e._v(e._s(e.$t(e.selectedFilter.label)))]),e._v(" "),t("IconfontView",{attrs:{customStyle:{fontSize:"12px"},showType:"hs_xiao_danjiantou_xia",customClass:"filter_icon_font"}}),e._v(" "),t("div",{ref:"filterListWrap",staticClass:"filter_list_wrap"},[t("div",{staticClass:"filter_list"},e._l(e.designStatusList,function(n,i){return t("div",{key:n.key,staticClass:"filter_item",on:{click:function(t){return e.changeCaseStatus(n)}}},[e._v("\n            "+e._s(e.$t(n.label))+"\n          ")])}
1),0)])],1):e._e()]),e._v(" "),t("div",{staticClass:"design_list_box"},[t("div",{ref:"designWrapper",staticClass:"design_wrapper"},[e.showDesignBox?t("div",{staticClass:"create_design_box case_card",class:{"dark-theme":e.isDarkTheme},on:{click:e.createNewDesignHandler}},[t("a",{staticClass:"create_design"},[t("IconfontView",{attrs:{customStyle:{fontSize:"26px",color:"#ffffff",width:"26px"},showType:"hs_xian_tianjia"}})],1),e._v(" "),t("span",[e._v(e._s(e.$t(e.designTabs[e.caseTabType].createTitle)))])]):e._e(),e._v(" "),e.designList.length>0?e._l(e.designList,function(n,i){return t("div",{key:"card".concat(i,"-").concat(n.assetId),staticClass:"case_card"},[t("NewDesignCard",{attrs:{designItem:e.cardDataBuild(n),showLikeBubble:0===i&&!e.isSelf&&e.showRank,onShowMarketDialog:e.onShowMarketDialog,canEdit:e.canEdit},on:{deleteDesign:function(t){return e.deleteDesign(i)},cardClick:e.cardClick}})],1)}):e._e()],2),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:e.showNoData,expression:"showNoData"}],staticClass:"no_data_warp"},[e.isDarkTheme?t("img",{staticClass:"no_data_img",attrs:{src:e.noDataDarkImg}}):t("img",{staticClass:"no_data_img",attrs:{src:e.noDataImg}}),e._v(" "),t("span",[e._v(e._s(e.$t("workspace.list.noDesign")))]),e._v(" "),e.canEdit&&1===e.selectedFilter.id?t("div",{staticClass:"go-to-publish",on:{click:e.goToPostPage}},[e._v("\n        "+e._s(e.$t("gotopost_globalchart"))+"\n      ")]):e._e()]),e._v(" "),e.loading||e.hasMore&&e.designList.length>0?t("div",{ref:"loadMoreTrigger",staticClass:"loading_container"},[t("RectLoad")],1):e._e()]),e._v(" "),t("ShareModal",{attrs:{show:e.shareModal.show,caseId:e.shareModal.config.caseId,shareCfg:e.shareModal.config},on:{"update:show":function(t){return e.$set(e.shareModal,"show",t)}}}),e._v(" "),e.showDetail?t("PostDetailMaskWrapVue",{attrs:{store:e.store,initFeedsList:e.initFeedsList,curVlId:e.curVlId,getLocalContent:e.getLocalContent,onLoadMore:e.loadMore,onClose:e.closeDetailMask,showShareModel:e.showShareModel,customClass:"design_list_mask",spmName:"detail"}}):e._e()],1)},[],!1,null,"349f6a58",null));t.a=z.exports;installComponents(z,{IconfontView:n(129).default})},3260:function(e,t,n){"use strict";n(44),n(23),n(19),n(31),n(32);var i=n(8),a=n(7),s=n(1),r=(n(38),n(25),n(37),n(30),n(22),n(73),n(62),n(15),n(200),n(21)),o=n(1003),c=n.n(o),l=n(12),u=(n(14),n(280)),d=n(51);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach(function(t){Object(s.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var f={components:{VueDropdown:n(3801).default},mixins:[u.a],props:{data:{type:Object,default:function(){return{}}},spmName:{type:String,default:"design_service_card"},canEdit:{type:Boolean,default:!0}},data:function(){return{imgRgb:"",videoAnchorUrl:""}},computed:m(m({},Object(r.d)(["isDarkTheme"])),{},{coverImgUrl:function(){return Object(d.d)(this.data.data.image,400,400)},dropdownItems:function(){return[{key:"edit",label:this.$t("web_design_edit")},{key:"delete",label:this.$t("webl_delete")}]}}),watch:{coverImgUrl:function(e){e&&this.getImgRgb()}},mounted:function(){this.videoAnchorUrl=this.getVideoAnchorUrl(),this.getImgRgb()},created:function(){},methods:{getVideoAnchorUrl:function(){var e=this.data,t=e.caseId,n=e.caseFrom,i=e.initTitle,a=e.name,s=void 0===a?"":a,r=this.getKeyWords(i,s),o=1===n?"web":"mobile";return"/ai-interior-design-detail/".concat(r,"-").concat(o,"-").concat(t)},getImgRgb:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark(function t(){var n,i,a;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!e.data.coverUrl){t.next=2;break}return n=e.data.coverUrl,i=n.includes(".mp4")?"".concat(n,"?x-oss-process=video/snapsh
1ot,t_0,m_fast,w_10"):"".concat(n,"?x-oss-process=image/resize,w_10,m_mfit/format,webp"),t.next=1,c()(i);case 1:a=t.sent,e.imgRgb=a[0].color;case 2:t.next=4;break;case 3:t.prev=3,t.catch(0);case 4:case"end":return t.stop()}},t,null,[[0,3]])}))()},openDesignDetail:function(){this.$emit("cardClick",this.data)},handleMenuClick:function(e){switch(e.key){case"edit":this.handleEdit();break;case"delete":this.handleDelete()}},handleEdit:function(){var e="/publish/post?id=".concat(this.data.data.id,"&t=8&isService=1&r=detail");this.$router.push(e),globalSpmClick("".concat(this.spmName,".edit_detail"),{id:this.data.data.id})},handleDelete:function(){var e=this;globalSpmClick("".concat(this.spmName,".card_del_clk"),{id:this.data.data.id});var t={delete:this.$t("myDesigns.content.delete"),cancel:this.$t("myDesigns.content.cancel"),success:this.$t("myDesigns.content.del_success")};t.title=this.$t("myDesigns.content.delete_confirm_title"),t.content=this.$t("myDesigns.content.delete_confirm_content"),this.$confirm(t.content,t.title,{confirmButtonText:t.delete,cancelButtonText:t.cancel,type:"warning",customClass:"mydesigns-delete-confim",iconClass:"el-icon-warning mydesigns-icon-warning",center:!0}).then(function(){e.$emit("delete",e.data.data.id),e.deleteService(e.data.data.id),e.$message.success(t.success)}).catch(function(){})},deleteService:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark(function n(){return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=1,l.a.myPosts.deletePost({data:{clientInfo:{platform:"web"},id:e}});case 1:n.next=3;break;case 2:n.prev=2,n.catch(0),t.$message.error(t.$t("delete_failed"));case 3:case"end":return n.stop()}},n,null,[[0,2]])}))()}}},h=(n(4133),n(18)),g=Object(h.a)(f,function(){var e=this,t=e._self._c;return t("div",{staticClass:"design_card_wrap",class:{"dark-theme":e.isDarkTheme},style:{backgroundColor:e.imgRgb}},[t("div",{staticClass:"case-cover-wrapper"},[t("img",{staticClass:"case-cover",attrs:{loading:"lazy",src:e.coverImgUrl},on:{click:e.openDesignDetail}})]),e._v(" "),e.canEdit?t("VueDropdown",{attrs:{items:e.dropdownItems},on:{menuClick:e.handleMenuClick}}):e._e(),e._v(" "),t("div",{staticClass:"case-bottom"},[e.data.data.title?t("div",{staticClass:"case-title"},[e._v("\n      "+e._s(e.data.data.title)+"\n    ")]):e._e(),e._v(" "),e.data.data.servicePrice?t("div",{staticClass:"case-price"},[e._v("$"+e._s(e.data.data.servicePrice))]):e._e()])],1)},[],!1,null,"97ffdfba",null),v=g.exports;installComponents(g,{VueDropdown:n(3801).default});var b=n(129),_=n(170),y=n(363),w=n(3210);function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?C(Object(n),!0).forEach(function(t){Object(s.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var k={name:"DesignServicesList",components:{DesignServicesCard:v,ShareModal:y.a,RectLoad:_.a,IconfontView:b.default},mixins:[w.a],props:{owner:{type:Object,default:function(){return{}}},canEdit:{type:Boolean,default:!0},spmName:{type:String,default:"design_services_list"},customClass:{type:String,default:""}},data:function(){return{initLoading:!0,loading:!0,serviceTagList:[],selectedFilter:{labelMdsKeyValue:"All",id:"0"},defaultSelectId:null,pageNo:0,hasMore:!0,noDataImg:n(325),CardData:[],intersectionObserver:null,showDetail:!1,curVlId:""}},computed:O(O({},Object(r.d)(["userInfo","locale","isDarkTheme"])),{},{ownerInfo:function(){return this.owner.uid?this.owner:this.userInfo},isSelf:function(){return!this.owner.uid},initFeedsList:function(){return this.CardData.map(function(e){return{id:e.bizId,bizType:e.bizType,vlId:e.vlId}})}}),mounted:function(){this.initializeData(),this.setupIntersectionObserver()},beforeDestroy:function(){this.intersectionObserver&&(this.intersectionObserver.disconnect(),this.intersectionObserver=null)},methods:{initializeData:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:try{Promise.allSettled([e.getServiceTags(),e.getDesignServices()]).finally(function(){e.initLoading=!1})}catch(e){}case 1:case"end":return t.stop()}},t)}))()},getServiceTags:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark(function t(){var n,i,a,s,r,o,c,u,d;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=1,l.a.other.resourceMulti({data:{scenes:["liteServiceTags"]},options:{headers:{lang:e.locale}}});case 1:null!=(i=t.sent)&&null!==(n=i.ret)&&void 0!==n&&null!==(n=n[0])&&void 0!==n&&n.includes("SUCCESS")&&(r=null===(a=i.data)||void 0===a||null===(a=a.status)||void 0===a?void 0:a.code,o=null===(s=i.data)||void 0===s?void 0:s.data,0===r&&(null==o?void 0:o.length)>0&&(u=(null===(c=o[0].resourceLocations)||void 0===c||null===(c=c[0])||void 0===c?void 0:c.resourceContent)||{},e.serviceTagList=u.list||[],e.defaultSelectId=u.defaultSelectId,e.defaultSelectId&&e.serviceTagList.length>0?(d=e.serviceTagList.find(function(t){return t.id===e.defaultSelectId}))&&(e.selectedFilter=d):e.serviceTagList.length>0&&(e.selectedFilter=e.serviceTagList[0]))),t.next=3;break;case 2:t.prev=2,t.catch(0),e.selectedFilter=e.serviceTagList[0];case 3:case"end":return t.stop()}},t,null,[[0,2]])}))()},getDesignServices:function(){var e=arguments,t=this;return Object(a.a)(regeneratorRuntime.mark(function n(){var a,s,r,o,c,u,d,p,m,f,h;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return a=e.length>0&&void 0!==e[0]&&e[0],t.loading=!0,n.prev=1,o={clientInfo:JSON.stringify({platform:"web"}),pageNo:a?t.pageNo+1:1,pageSize:20,contentType:2,serviceType:Number(t.selectedFilter.id),targetUmsId:null===(s=t.ownerInfo)||void 0===s?void 0:s.uid},n.next=2,l.a.myPosts.fetchMyPosts({data:o});case 2:null!=(c=n.sent)&&null!==(r=c.ret)&&void 0!==r&&null!==(r=r[0])&&void 0!==r&&r.includes("SUCCESS")&&(u=c.data||{},d=u.items,p=void 0===d?[]:d,m=u.paging,f=void 0===m?{}:m,h=p.map(function(e){return t.processDesignServiceData(e)}),a?t.CardData=[].concat(Object(i.a)(t.CardData),Object(i.a)(h)):(t.CardData=h,t.pageNo=0),t.pageNo=f.pageNo||
1(a?t.pageNo+1:1),t.hasMore=f.hasMore||!1),n.next=4;break;case 3:n.prev=3,n.catch(1);case 4:return n.prev=4,t.loading=!1,t.$nextTick(function(){t.checkAndLoadMoreIfNeeded()}),n.finish(4);case 5:case"end":return n.stop()}},n,null,[[1,3,4,5]])}))()},processDesignServiceData:function(e){return{author:e.author,authorId:e.authorId,bizId:e.bizId,bizType:e.bizType,data:e.data,fromBizType:e.fromBizType,vlId:e.bizId}},changeServiceFilter:function(e){var t=this;this.selectedFilter=e,this.CardData=[],this.getDesignServices(),this.$refs.filterListWrap&&(this.$refs.filterListWrap.style.opacity="0",this.$refs.filterListWrap.style.height="0",setTimeout(function(){t.$refs.filterListWrap.style=""},200)),globalSpmClick("".concat(this.spmName,".filter_change"),{id:e.id})},createNewServiceHandler:function(){var e;window.open("/publish/post?t=8&isService=1","_blank"),globalSpmClick("".concat(this.spmName,".create_clk"),{ownerId:null===(e=this.ownerInfo)||void 0===e?void 0:e.uid,isSelf:this.isSelf})},setupIntersectionObserver:function(){var e=this;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(t){t.forEach(function(t){t.isIntersecting&&e.hasMore&&!e.loading&&e.loadMore()})},{root:null,rootMargin:"100px",threshold:.1}),this.$nextTick(function(){var t=e.$refs.loadMoreTrigger;t&&e.intersectionObserver.observe(t)}))},loadMore:function(){!this.loading&&this.hasMore&&this.getDesignServices(!0)},checkAndLoadMoreIfNeeded:function(){if(this.hasMore&&!this.loading){var e=this.$refs.loadMoreTrigger;if(e){var t=e.getBoundingClientRect();t.top<window.innerHeight&&t.bottom>0&&this.loadMore()}}},closeDetailMask:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.showDetail=!e},handleClick:function(e){var t;this.curVlId=e.vlId,this.closeDetailMask(!1),globalSpmClick("".concat(this.spmName,".card_clk"),{id:e.bizId,isSelf:this.isSelf,ownerId:null===(t=this.ownerInfo)||void 0===t?void 0:t.uid})},handleCardDelete:function(e){var t;this.CardData=this.CardData.filter(function(t){return t.data.id!==e}),globalSpmClick("".concat(this.spmName,".card_del_confirm"),{id:e,isSelf:this.isSelf,ownerId:null===(t=this.ownerInfo)||void 0===t?void 0:t.uid})}}},I=k,S=(n(4134),n(4135),Object(h.a)(I,function(){var e=this,t=e._self._c;return t("div",{staticClass:"design_services_list_container",class:[e.customClass,{"dark-theme":e.isDarkTheme}]},[e.initLoading&&e.loading?e._e():t("div",{staticClass:"design_services_list_header"},[t("h3",{staticClass:"design_services_list_title"},[e._v("\n      "+e._s(e.$t("all_designservice"))+"\n    ")]),e._v(" "),e.serviceTagList.length>0?t("div",{staticClass:"filter_area"},[t("span",{staticClass:"filter_name"},[e._v(e._s(e.selectedFilter.labelMdsKeyValue))]),e._v(" "),t("IconfontView",{attrs:{customStyle:{fontSize:"12px"},showType:"hs_xiao_danjiantou_xia",customClass:"filter_icon_font"}}),e._v(" "),t("div",{ref:"filterListWrap",staticClass:"filter_list_wrap"},[t("div",{staticClass:"filter_list"},e._l(e.serviceTagList,function(n,i){return t("div",{key:i,staticClass:"filter_item",on:{click:function(t){return e.changeServiceFilter(n)}}},[e._v("\n            "+e._s(n.labelMdsKeyValue||n.name||"Unknown")+"\n          ")])}),0)])],1):e._e()]),e._v(" "),t("div",{staticClass:"design_services_list_box"},[!e.loading||e.CardData.length>0?t("div",{staticClass:"services_wrapper"},[e.canEdit?t("div",{class:["create_service_box","case_card",{"dark-theme":e.isDarkTheme}],on:{click:e.createNewServiceHandler}},[t("a",{staticClass:"create_service"},[t("IconfontView",{attrs:{customStyle:{fontSize:"26px",color:"#ffffff",width:"26px"},showType:"hs_xian_tianjia"}})],1),e._v(" "),t("span",[e._v(e._s(e.$t("postnew_designservice")))])]):e._e(),e._v(" "),e.CardData.length>0?e._l(e.CardData,function(n,i){return t("DesignServicesCard",{key:i,staticClass:"case_card",attrs:{data:n,spmName:e.spmName,canEdit:e.canEdit},on:{cardClick:e.handleClick,delete:e.handleCardDelete}})}):e._e()],2):e._e(),e._v(" "),!e.canEdit&&!e.loading&&e.CardData.length<=0?t("div",{staticClass:"no_data_warp"},[e.isDarkTheme?t("img",{attrs:{src:n(455),alt:"noDesign.png"}}):t("img",{attrs:{src:n(325),alt:"noDesign.png"}}),e._v(" "),t("p",{staticClass:"no_data_tips",class:e.isDarkTheme?"dark-theme":""},[e._v("\n        "+e._s(e.$t("nointro_designservice"))+"\n      ")])]):e._e(
1),e._v(" "),e.loading||e.hasMore&&e.CardData.length>0?t("div",{ref:"loadMoreTrigger",staticClass:"loading_container"},[t("RectLoad")],1):e._e()]),e._v(" "),t("ShareModal",{attrs:{show:e.shareModal.show,caseId:e.shareModal.config.caseId,shareCfg:e.shareModal.config},on:{"update:show":function(t){return e.$set(e.shareModal,"show",t)}}}),e._v(" "),e.showDetail?t("PostDetailMaskWrapVue",{attrs:{store:e.store,initFeedsList:e.initFeedsList,curVlId:e.curVlId,getLocalContent:e.getLocalContent,onLoadMore:e.loadMore,onClose:e.closeDetailMask,showShareModel:e.showShareModel,customClass:"design_services_list_mask"}}):e._e()],1)},[],!1,null,"40ccf33a",null));t.a=S.exports;installComponents(S,{IconfontView:n(129).default})},3261:function(e,t,n){"use strict";n(23),n(19),n(31),n(32);var i=n(7),a=n(1),s=(n(38),n(62),n(15),n(73),n(22),n(3240)),r=n(2),o=n(8),c=(n(171),n(70),n(37),n(66),n(25),n(44),["color","background-color","font-family","font-size","font-weight","font-style","line-height"]);var l=n(14),u=n(195),d=n(21),p=n(3241);function m(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Array.isArray(e)&&0!==e.length?1===e.length?e[0]:e.find(function(e){return"pendingPayment"===(null==e?void 0:e.remindMessageType)})||e[0]:null}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach(function(t){Object(a.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var g={name:"PricingPaymentRemindBanner",components:{CountdownTimer:n(3842).a},props:{remindMessageId:{type:[String,Number],default:""}},data:function(){return{remindMessage:null,defaultIcon:"https://gw.alicdn.com/imgextra/i1/O1CN01I4RNnv1Yu64ypUMsG_!!6000000003118-2-tps-94-94.png"}},computed:h({}
1,Object(d.d)(["locale"])),mounted:function(){this.fetchRemindMessages()},methods:h(h({sanitizeSpanRichText:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!e)return"";var t=(new DOMParser).parseFromString(String(e),"text/html");return Array.from(t.body.querySelectorAll("*")).reverse().forEach(function(e){if(["SCRIPT","STYLE","TEMPLATE"].includes(e.tagName))e.remove();else if("SPAN"===e.tagName){var t=c.map(function(t){return[t,e.style.getPropertyValue(t)]});Array.from(e.attributes).forEach(function(t){return e.removeAttribute(t.name)}),t.forEach(function(t){var n=Object(r.a)(t,2),i=n[0],a=n[1];a&&e.style.setProperty(i,a)})}else e.replaceWith.apply(e,Object(o.a)(Array.from(e.childNodes)))}),t.body.innerHTML}},Object(d.b)("pricing",["setRecoverOrderContext","clearRecoverOrderContext"])),{},{fetchRemindMessages:function(){var e=this;return Object(i.a)(regeneratorRuntime.mark(function t(){var n,i;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=1,Object(s.c)({remindMessageId:e.remindMessageId||void 0});case 1:if(!((n=t.sent)&&n.length>0)){t.next=4;break}if(0!==(i=n.filter(function(e){return e.endTime>Date.now()})).length){t.next=2;break}return e.remindMessage=null,t.abrupt("return");case 2:if(!e.remindMessageId){t.next=3;break}return e.handleRemindMessageIdRecover(i),t.abrupt("return");case 3:e.remindMessage=m(i),e.remindMessage&&(Object(l.d)("/hs.global_web.pricing.payment_remind_banner_expose",{remind_count:1}),Object(u.d)("pricing.payment_remind_banner_expose",{remind_count:1})),t.next=5;break;case 4:e.remindMessage=null;case 5:t.next=7;break;case 6:t.prev=6,t.catch(0),e.remindMessage=null;case 7:case"end":return t.stop()}},t,null,[[0,6]])}))()},handleRemindMessageIdRecover:function(e){var t=this;return Object(i.a)(regeneratorRuntime.mark(function n(){var i;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(i=e.find(function(e){return t.isRecoverablePendingPayment(e)}),t.remindMessage=null,i){n.next=1;break}return n.abrupt("return");case 1:return n.next=2,t.recoverPaymentOrder(i);case 2:case"end":return n.stop()}},n)}))()},isRecoverablePendingPayment:function(e){var t=(null==e?void 0:e.extInfo)||{};return"pendingPayment"===(null==e?void 0:e.remindMessageType)&&["1","2"].includes("".concat(t.orderCategory||""))&&!!t.orderId},resolveRecoverDialogType:function(e){switch(null==e?void 0:e.comboType){case p.a.STYLER:return"styler";case p.a.AI_MEMBER:return"aiMember";case p.a.COUPON:return!0===(null==e?void 0:e.isAiCombo)?"aiMember":"pricing";case p.a.RENDER:return"pricing";default:return""}},handleGoAction:function(e){var t=this;return Object(i.a)(regeneratorRuntime.mark(function n(){return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(Object(l.d)("/hs.global_web.pricing.payment_remind_banner_go_click",{remind_message_id:e.remindMessageId,remind_message_type:e.remindMessageType}),Object(u.d)("pricing.payment_remind_banner_go_click",{remind_message_id:e.remindMessageId,remind_message_type:e.remindMessageType}),"pricingClose"!==(null==e?void 0:e.remindMessageType)){n.next=2;break}return n.next=1,t.openPricingCloseDialog(e);case 1:return n.abrupt("return");case 2:if(!t.isRecoverablePendingPayment(e)){n.next=3;break}return n.next=3,t.recoverPaymentOrder(e);case 3:case"end":return n.stop()}},n)}))()},openPricingCloseDialog:function(e){var t=this;return Object(i.a)(regeneratorRuntime.mark(function n(){var i;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(i=Object(p.b)(e,(null==e?void 0:e.extInfo)||{}),n.prev=1,t.resolveRecoverDialogType(i)&&i.targetRoute){n.next=2;break}return t.closeRecoverMessage(e),n.abrupt("return");case 2:if(t.$route.path===i.targetRoute){n.next=3;break}return n.next=3,t.$router.push(i.targetRoute);case 3:t.setRecoverOrderContext(i),t.closeRecoverMessage(e,!1),n.next=5;break;case 4:n.prev=4,n.catch(1),t.closeRecoverMessage(e);case 5:case"end":return n.stop()}},n,null,[[1,4]])}))()},recoverPaymentOrder:function(e){var t=this;return Object(i.a)(regeneratorRuntime.mark(function n(){var i,a,r,o;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return i=(null==e?void 0:e.extInfo)||{},n.prev=1,n.next=2,Object(s.d)({orderId:i.orderId,userId:null===(a=t.$store)||void 0===a||null===(a=a.state)||void 0===a||null===(a=a.userInfo)||void 0===a?void 0:a.uid});case 2:if(r=n.sent,!1!==(null==(o=Object(p.c)(r,e,i))?void 0:o.recoverable)){n.next=3;break}return t.closeRecoverMessage(e),n.abrupt("return");case 3:if(t.resolveRecoverDialogType(o)){n.next=4;break}return t.closeRecoverMessage(e),n.abrupt("return");case 4:if(t.setRecoverOrderContext(o),!o.targetRoute||t.$route.path===o.targetRoute){n.next=5;break}return n.next=5,t.$router.push(o.targetRoute);case 5:t.closeRecoverMessage(e,!1),n.next=7;break;case 6:n.prev=6,n.catch(1),t.closeRecoverMessage(e);case 7:case"end":return n.stop()}},n,null,[[1,6]])}))()},closeRecoverMessage:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.removeMessage(null==e?void 0:e.remindMessageId),t&&this.clearRecoverOrderContext()},handleClose:function(e){this.removeMessage(e.remindMessageId),Object(l.d)("/hs.global_web.pricing.payment_remind_banner_close",{remind_message_id:e.remindMessageId,remind_message_type:e.remindMessageType}),Object(u.d)("pricing.payment_remind_banner_close",{remind_message_id:e.remindMessageId,remind_message_type:e.remindMessageType}),this.closeRemindMessage(e)},handleTimeout:function(e){this.removeMessage(e)},removeMessage:function(e){var t;(null===(t=this.remindMessage)||void 0===t?void 0:t.remindMessageId)===e&&(this.remindMessage=null)},closeRemindMessage:function(e){return Object(i.a)(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=1,Object(s.a)({remindMessageType:e.remindMessageType,remindMessageId:e.remindMessageId});case 1:t.next=3;break;case 2:t.prev=2,t.catch(0);case 3:case"end":return t.stop()}},t,null,[[0,2]])}))()}})},v=g,b=(n(4074),n(18)),_=Object(b.a)(v,function(){var e=this,t=e._self._c;return e.remindMessage?t("div",{staticClass:"pricing-remind-banner-wrap"},[t("div",{staticClass:"pricing-remind-banner"},[t("div",{staticClass:"remind-banner-icon"},[t("img",{staticClass:"remind-icon-img",attrs:{src:e.remindMessage.remindMessageIcon||e.defaultIcon,alt:"remind icon"}})]),e._v(" "),t("div",{staticClass:"remind-banner-content"},[t("div",{staticClass:"remind-text",domProps:{innerHTML:e._s(e.sanitizeSpanRichText(e.remindMessage.remindMessageContent))}}),e._v(" "),t("div",{staticClass:"remind-countdown"},[t("CountdownTimer",{attrs:{endTime:e.remindMessage.endTime},on:{timeout:function(){return e.handleTimeout(e.remindMessage.remindMessageId)}}}
1)],1)]),e._v(" "),t("div",{staticClass:"remind-action-btn",on:{click:function(t){return e.handleGoAction(e.remindMessage)}}},[e._v("\n      "+e._s(e.remindMessage.buttonName||e.$t("pricing.remind.enjoyDiscount"))+"\n    ")]),e._v(" "),t("div",{staticClass:"remind-close-btn",on:{click:function(t){return e.handleClose(e.remindMessage)}}},[t("svg",{attrs:{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M1 1L11 11M11 1L1 11",stroke:"#939393","stroke-width":"2","stroke-linecap":"round"}})])])])]):e._e()},[],!1,null,"39edc4c6",null);t.a=_.exports},3262:function(e,t,n){"use strict";n.r(t);n(22),n(30),n(407),n(25);var i=n(129),a=n(985),s=n.n(a),r=n(3438),o={name:"CouponCard",components:{IconfontView:i.default},props:{cardType:{type:String,default:"available",validator:function(e){return["available","used","expired"].includes(e)}},item:{type:Object,default:function(){return{}}},showImage:{type:Boolean,default:!1}},data:function(){return{skuContent:""}},methods:{copyCode:function(){s()(this.item.discountCode),this.$message.success({type:"success",duration:3e3,message:this.$t("success")})},formatEndTime:function(e){if(!e)return"";if("string"==typeof e&&e.includes("-"))return e;if("number"==typeof e){var t=new Date(e),n=t.getFullYear(),i=String(t.getMonth()+1).padStart(2,"0"),a=String(t.getDate()).padStart(2,"0");return"".concat(n,"-").concat(i,"-").concat(a)}return e},getSkuContent:function(){var e=this;this.skuContent||Object(r.c)({discountCode:this.item.discountCode}).then(function(t){t&&t.data&&(e.skuContent=t.data.map(function(e){return e.skuName}).join("\n"))})}}},c=(n(4026),n(18)),l=Object(c.a)(o,function(){var e=this,t=e._self._c;return t("div",{staticClass:"coupon_card",class:e.cardType},[e.showImage?t("img",{staticClass:"coupon_card_image",attrs:{src:"https://img.alicdn.com/imgextra/i4/O1CN01MV78Fo1EEbr2r5IDh_!!6000000000320-2-tps-363-351.png"}}):e._e(),e._v(" "),t("div",{staticClass:"coupon_content"},[t("div",{staticClass:"coupon_title"},[e._t("name",function(){return[e._v("\n        "+e._s(e.item.title)+"\n      ")]})],2),e._v(" "),t("div",{staticClass:"coupon_applicable"},[e._t("applicable",function(){return[e.item.appliesAllProduct?t("div",{staticClass:"applicable_all"},[e._v("\n          "+e._s(e.$t("mycode.range.toall"))+"\n        ")]):t("div",{staticClass:"applicable_part"},[t("span",{staticClass:"applicable_part_text"},[e._v(e._s(e.$t("mycode.range.partial")))]),e._v(" "),e.item.applicabilityDescriptionMdsKeyValue?t("el-tooltip",{attrs:{effect:"dark",placement:"bottom",disabled:!1,popperClass:"applicable-tooltip-popper"},on:{show:e.getSkuContent}},[t("div",{staticClass:"applicable_tooltip_text",attrs:{slot:"content"},slot:"content"},[e._v(e._s(e.item.applicabilityDescriptionMdsKeyValue||""))]),e._v(" "),t("IconfontView",{staticClass:"wenhao",attrs:{name:"info",showType:"wenhao"}})],1):e._e()],1)]})],2),e._v(" "),t("div",{staticClass:"coupon_validity"},[e._t("validity",function(){return[e.item&&(e.item.validUntil||e.item.endTime)?t("span",{staticClass:"validity-text"},[e._v(e._s(e.$t("mycode.expire.date"))),t("span",{staticClass:"colon-separator"},[e._v(":")]),e._v(e._s(e.formatEndTime(e.item.endTime)))]):e._e()]})],2),e._v(" "),t("div",{staticClass:"coupon_line_split"}),e._v(" "),t("div",{staticClass:"coupon_action"},[t("span",{staticClass:"cord-wrapper"},[t("span",{staticClass:"code-title"},[e._v(e._s(e.$t("mycode.code.name"))),t("span",{staticClass:"colon-separator"},[e._v(":")])]),t("span",{staticClass:"code-content"},[e._v(e._s(e.item.discountCode))]),t("img",{staticClass:"copy-icon",attrs:{src:"https://img.alicdn.com/imgextra/i2/O1CN01We55OS1jXcNp5Erlf_!!6000000004558-55-tps-12-11.svg"},on:{click:e.copyCode}})]),e._v(" "),t("div",{staticClass:"coupon_button"},[e._t("button")],2)])])])},[],!1,null,null,null);t.default=l.exports;installComponents(l,{IconfontView:n(129).default})},3263:function(e,t,n){"use strict";n(23),n(19),n(15),n(31),n(32);var i=n(1);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?a(Object(n),!0).forEach(function(t){Object(i.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}n(22);var r={name:"AlbumGroupCard",props:{type:{type:String,default:""},group:{type:Object,default:function(){return{}}},cardStyle:{type:Object,default:function(){return{}}},isActived:{type:Boolean,default:function(){return!1}}},data:function(){return{}},computed:{ossFormatStr:function(){return["ai_planner"].includes(this.type)?"m_pad,w_264":"m_mfit,w_264"}}},o=(n(3855),n(18)),c=Object(o.a)(r,function(){var e=this,t=e._self._c;return t("div",{staticClass:"album-group-card",class:{"cover-actived":e.isActived,"cover-all":e.group.isAll},on:{click:function(t){return e.$emit("click",e.group)}}},[t("div",{staticClass:"cover",style:e.group.coverImageUrl&&2===e.group.status?s(s({},e.cardStyle),{},{backgroundImage:"url(".concat(e.group.coverImageUrl,"?x-oss-process=image/resize,").concat(e.ossFormatStr,"/format,webp)")}):s(s({},e.cardStyle),{},{backgroundColor:"#E0E0E0"})},[e.group.isAll?t("span",{staticClass:"all-group"},[e._v("\n      "+e._s(e.$t("point.all"))+"\n    ")]):2!==e.group.status?t("span",{class:{"process-status":!0,"img-loading-text":0===e.group.status}},[e._v("\n      "+e._s(0===e.group.status?e.$t("render.status.queue"):e.group.processSchedule>=0&&e.group.processSchedule<=100?"".concat(e.group.processSchedule,"%"):"1%")+"\n    ")]):e.group.coverImageUrl?e._e():t("span",{staticClass:"process-status"},[t("IconfontView",{attrs:{customClass:"img-shibai-icon",showType:"shibai",customStyle:{fontSize:"48px",color:"#767676"}}})],1)]),e._v(" "),t("div",{staticClass:"cover-actived-arrrow"})])},[],!1,null,"65aa71d2",null);t.a=c.exports;installComponents(c,{IconfontView:n(129).default})},3264:function(e,t,n){"use strict";n(23),n(19),n(15),n(31),n(32);var i=n(1),a=(n(1018),n(22),n(21)),s=n(156),r=n(57),o=n(14),c=n(610),l=n(1590);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach(function(t){Object(i.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var p={name:"PublishModal",components:{Contribute:c.a,PublishPostPopup:l.default},props:{mode:{type:String,default:"publish"},defaultDesignInfo:{type:Object,default:function(){return null}},toolType:{type:String,default:"all"},defaultContributeCurrentBizTab:{type:String,default:""},needBizTabs:{type:Boolean,default:!0},submitDesign:{type:Function,default:function(){}}},data:function(){return{designInfoList:[],contributeCurrentBizTab:this.defaultContributeCurrentBizTab||"design",contributeCurrentTab:"app"===this.toolType?"app":"web",popupShow:"edit"===this.mode,contributeCustomData:{commonTitle:"",hideCommonTitle:!0,commonGuide:"asset"===this.defaultContributeCurrentBizTab?this.$t("publish.ugc.asset.desc"):this.$t("publish.ugc.pdc"),commonEmptyTitle:this.$t("design_services_no_projects"),commonEmptySubTitle:this.$t("contest.createnewbutton"),commonEmptyWebBtn:this.$t("publish.design.empty.webbtn"),commonEmptyAppBtn:this.$t("publish.design.empty.appbtn"),needSubTitle:!1,needBizTabs:this.needBizTabs,bizTabs:Object.freeze([Object.freeze({name:"m.designs",type:"design"}),Object.freeze({name:"m.works",directToPost:!0,type:"story"}),Object.freeze({name:"publish.ugc.materials",type:"asset"})]),hideEmptySubTitle:!0,commonHelpShow:!1}}},computed:d(d({},Object(a.d)(["locale","userInfo"])),{},{defaultDesignType:function(){return"design"===this.contributeCurrentBizTab?"web"===this.contributeCurrentTab?r.Nb.design:r.Nb.mobile:r.Nb[this.contributeCurrentBizTab]},floorplanUrl:function(){var e=this.$global.floorplanUrl;return this.locale!==this.$i18n.fallbackLocale&&(e+="?lang=".concat(this.locale)),e},globalTenantConfig:function(){return s.a},designInfo:function(){var e;return null===(e=this.designInfoList)||void 0===e?void 0:e[0]},postId:function(){var e,t,n;return"story"===this.contributeCurrentBizTab?"":"edit"===this.mode?null===(t=this.defaultDesignInfo)||void 0===t?void 0:t.caseId:"asset"===this.contributeCurrentBizTab?null===(n=this.designInfo)||void 0===n?void 0:n.assetId:null===(e=this.designInfo)||void 0===e?void 0:e.caseId},isSaleMode:function(){return[r.Nb.design,r.Nb.asset].includes(this.designType)}}),watch:{contributeCurrentBizTab:function(e,t){}},mounted:function(){Object(o.c)("/hs_global_web.portfolio.portfolio_add_pop_expose","member_id=".concat(this.userInfo.uid,"&language=").concat(this.locale)),document.documentElement.style.overflowY="hidden"},destroyed:function(){document.documentElement.style.overflowY="scroll"},methods:{contributeClose:function(){this.$emit("onClose"),this.popupS
1how=!1,this.designInfoList=[]},currentTabClk:function(e){this.contributeCurrentTab=e},currentBizTabClk:function(e){this.contributeCurrentBizTab=e,"story"===e&&(this.popupShow=!0)},currentSelect:function(e){if(this.designInfoList=Array.isArray(e)?e:[e],this.designInfoList.length>0){var t=String(this.designInfoList[0].caseFrom);"1"===t&&(this.contributeCurrentTab="web"),"2"===t&&(this.contributeCurrentTab="app")}},createDesign:function(){var e="web"===this.contributeCurrentTab?"web":"app";Object(o.c)("/hs_global_web.challenge_detail.submit_pop_design_create","type=".concat(e,"member_id=").concat(this.userInfo.uid,"&language=").concat(this.locale))},showPostModel:function(){this.popupShow=!0;var e="web"===this.contributeCurrentTab?"web":"app";Object(o.c)("/hs_global_web.challenge_detail.submit_pop_design_create","type=".concat(e,"&biz=").concat(this.contributeCurrentBizTab,"&member_id=").concat(this.userInfo.uid,"&language=").concat(this.locale))},closePostModel:function(){"edit"!==this.mode?(this.popupShow=!1,"story"===this.contributeCurrentBizTab&&(this.contributeCurrentBizTab="design")):this.$emit("onClose")},commitPost:function(e){this.popupShow=!1,this.$refs.contributeRef&&this.$refs.contributeRef.refreshList(),this.$emit("submitDesign",{shareConfig:e})},submitClick:function(){this.designInfo&&(this.popupShow=!0)}}},m=(n(3912),n(18)),f=Object(m.a)(p,function(){var e=this,t=e._self._c;return t("div",{staticClass:"contribute_popup"},["edit"!==e.mode?t("div",{staticClass:"case-dialog"},[t("i",{staticClass:"iconfont icon-close",on:{click:e.contributeClose}}),e._v(" "),t("Contribute",{ref:"contributeRef",attrs:{spmName:"publish",toolType:e.toolType,contributeCustomData:e.contributeCustomData,defaultCurrentBizTab:e.contributeCurrentBizTab},on:{currentTab:e.currentTabClk,currentBizTab:e.currentBizTabClk,showPostModel:e.showPostModel,currentSelect:e.currentSelect}}),e._v(" "),t("div",{staticClass:"submit-wrap"},[t("p",[t("span",{directives:[{name:"show",rawName:"v-show",value:"story"===e.contributeCurrentBizTab,expression:"contributeCurrentBizTab === 'story'"}],staticClass:"create",on:{click:e.showPostModel}},[e._m(0),e._v("\n          "+e._s(e.$t("design_services_publish_story"))+"\n        ")]),e._v(" "),t("a",{directives:[{name:"show",rawName:"v-show",value:"design"===e.contributeCurrentBizTab,expression:"contributeCurrentBizTab === 'design'"}],staticClass:"create",attrs:{target:"_blank",href:"web"===e.contributeCurrentTab?e.floorplanUrl:"/room-design-app"},on:{click:e.createDesign}},[e._m(1),e._v("\n          "+e._s(e.$t("contest.createnewbutton"))+"\n        ")]),e._v(" "),t("span",{directives:[{name:"show",rawName:"v-show",value:"design"===e.contributeCurrentBizTab,expression:"contributeCurrentBizTab === 'design'"}],staticClass:"tips"},[e._v("\n          "+e._s(e.$t("contest.withtool",{toolname:"web"===e.contributeCurrentTab?e.$t(e.globalTenantConfig.webToolNameMdsKey||"contest.webtoolname"):e.$t(e.globalTenantConfig.appToolNameMdsKey||"contest.apptoolname")}))+"\n        ")])]),e._v(" "),t("div",[t("el-button",{staticClass:"btn_common",on:{click:e.contributeClose}},[e._v("\n          "+e._s(e.$t("m.cancel"))+"\n        ")]),e._v(" "),t("el-button",{staticClass:"button",class:{active:e.designInfoList.length>0},on:{click:e.submitClick}},[e._v("\n          "+e._s(e.$t(e.popupShow?"publish.design.panel.post":"newuser.nextbutton"))+"\n        ")])],1)])],1):e._e(),e._v(" "),e.popupShow?t("PublishPostPopup",{attrs:{mode:e.mode,isAiWriteMode:"",isSaleMode:e.isSaleMode,designId:e.postId,defaultType:e.defaultDesignType},on:{closePostModel:e.closePostModel,commitPost:e.commitPost}}):e._e()],1)},[function(){var e=this._self._c;return e("span",{staticClass:"contribute-add"},[e("i",{staticClass:"iconfont icon-add"})])},function(){var e=this._self._c;return e("span",{staticClass:"contribute-add"},[e("i",{staticClass:"iconfont icon-add"})])}],!1,null,"25b13fe6",null);t.a=f.exports},3265:function(e,t,n){"use strict";n(44),n(23),n(19),n(15),n(31),n(32);var i=n(7),a=n(1),s=(n(3152),n(119),n(3153)),r=n.n(s),o=(n(38),n(239),n(30),n(22),n(21)),c=n(12),l=n(14);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}var d={name:"SearchInput",components:{Autocomplete:r.a},data:function(){return{restaurants:[],state:"",timeout:null,results:[],searchWord:""}},computed:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?u(Object(n),!0).forEach(function(t){Object(a.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},Object(o.d)(["userInfo","locale"])),mounted:function(){},methods:{seeMore:function(e){e.url&&(window.location.href=e.url)},getQuerypresearch:function(e,t){var n=this;return Object(i.a)(regeneratorRuntime.mark(function i(){var a,s,r,o;return regeneratorRuntime.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return Object(l.c)("/hs_global_web.learn.search_submit","member_id=".concat(n.userInfo.uid,"&language=").concat(n.locale,"&keyword=").concat(e)),n.searchWord=e,i.prev=1,i.next=2,c.a.search.querypresearch({data:{searchWord:e,source:"web"},options:{headers:{lang:n.locale}}});case 2:a=i.sent,s=a.data&&a.data.data.status.code,a&&a.ret&&a.ret[0].includes("SUCCESS")&&0===s&&(r=a.data.data.data.list,o=n,r&&r.length>0?(r.unshift({text:"learn2.searchtoparticle"}),r.push({text:"learn2.searchviewall",url:"/learn-search?q=".concat(o.searchWord)})):r=[],t(r),n.results=r),i.next=4;break;case 3:i.prev=3,i.catch(1);case 4:case"end":return i.stop()}},i,null,[[1,3]])}))()},keyupEnter:function(){var e=this;setTimeout(function(){e.searchWord&&(Object(l.c)("/hs_global_web.learn.search_submit","member_id=".concat(e.userInfo.uid,"&language=").concat(e.locale,"&keyword=").concat(e.searchWord)),window.location.href="/learn-search?q=".concat(e.searchWord))},400)},spm:function(){Object(l.c)("/hs_global_web.learn.search_clickResult","member_id=".concat(this.userInfo.uid,"&language=").concat(this.locale,"&keyword=").concat(this.searchWord))}}},p=d,m=(n(3963),n(3964),n(18)),f=Object(m.a)(p,function(){var e=this,t=e._self._c;return t("Autocomplete",{attrs:{fetchSuggestions:e.getQuerypresearch,placeholder:e.$t("learn2.searchbox"),selectWhenUnmatched:!0,prefixIcon:"el-icon-search",clearable:"",triggerOnFocus:!1},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.keyupEnter.apply(null,arguments)}},scopedSlots:e._u([{key:"default",fn:function(n){var i=n.item;return e.results.length>2?[i.text?t("p",{staticClass:"select-document",on:{click:function(t){return e.seeMore(i)}}},[e._v("\n      "+e._s(e.$t(i.text))+"\n    ")]):e._e(),e._v(" "),i.text?e._e():t("a",{staticClass:"select-title",attrs:{href:i.contentUrl},on:{click:e.spm}},[i.text?e._e():t("p",{staticClass:"select-title ellipsis"},[e._v(e._s(i.title))]),e._v(" "),i.menu&&!i.text?t("p",{staticClass:"select-menu"},[t("span",[e._v(e._s(i.menu.name))]),e._v(" >\n        "),t("span",[e._v(e._s(i.menu.child.name))])]):e._e(),e._v(" "),i.menu||i.text?e._e():t("p",{staticClass:"select-menu"},[t("span",[e._v("Homestyler Forum")])])])]:void 0}}],null,!0),model:{value:e.searchWord,callback:function(t){e.searchWord=t},expression:"searchWord"}})},[],!1,null,"3639e6d1",null);t.a=f.exports},3266:function(e,t,n){"use strict";n(23),n(19),n(15),n(31),n(32);var i=n(7),a=n(1),s=(n(38),n(30),n(22),n(25),n(69),n(21)),r=n(12),o=n(453),c=n(129),l=n(14);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}var d={name:"RecommendUserCardList",components:{recommendUserCard:o.a,IconfontView:c.default},props:{pageSource:""},data:function(){return{designerLists:[],offset:1,loading:!1}},computed:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach(function(t){Object(a.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},Object(s.d)(["locale","userInfo"])),watch:{},mounted:function(){this.listDesigner()},methods:{followingDone:function(){this.$emit("followingDone")},increaseOffset:function(){this.offset=this.offset>=300?0:this.offset+1},reload:function(){Object(l.c)("/hs_global_web.gallery.community_follow_discover_clk"),this.listDesigner()},listDesigner:function(){var e=this;return Object(i.a)(regeneratorRuntime.mark(function t(){var n,i,a;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,e.loading=!0,t.next=1,r.a.feed.listDesigner({data:{pageNo:1,pageSize:10,
1clientInfo:{}},options:{headers:{lang:e.locale||"en_US"}}});case 1:n=t.sent,e.loading=!1,n&&n.ret&&n.ret[0].includes("SUCCESS")&&(a=null===(i=n.data.users)||void 0===i?void 0:i.map(function(e){return e.user.isHero?{authorAvatar:e.user.avatar,authorId:e.user.id,authorName:e.user.firstName+e.user.lastName,caseList:e.designs.slice(0,3).map(function(e){return{coverUrl:e.image,caseId:e.id,name:e.title,caseFrom:e.caseFrom}}),follow:!1,homestylerId:e.user.homestylerId,isTeam:!1,likedCount:e.user.likedCount,memberType:e.user.memberType,publicDesignCount:e.user.designCount,selectedDesigner:!0,stylerMember:!0,normalImageUrl:"https://prod-hsm-designs.oss-us-east-1.aliyuncs.com/staging/upload/images/af383dc0-9727-4741-9427-abbfe266eeea.png",name:"Herostyler"}:{authorAvatar:e.user.avatar,authorId:e.user.id,authorName:e.user.firstName+e.user.lastName,caseList:e.designs.slice(0,2).map(function(e){return{coverUrl:e.image,caseId:e.id,name:e.title,caseFrom:e.caseFrom}}),follow:!1,homestylerId:e.user.homestylerId,isTeam:!1,likedCount:e.user.likedCount,memberType:e.user.memberType,publicDesignCount:e.user.designCount,selectedDesigner:!0,stylerMember:!0}}),e.designerLists=a||[],e.increaseOffset()),t.next=3;break;case 2:t.prev=2,t.catch(0);case 3:case"end":return t.stop()}},t,null,[[0,2]])}))()}}},p=d,m=(n(3982),n(18)),f=Object(m.a)(p,function(){var e=this,t=e._self._c;return e.designerLists.length>0?t("ul",{staticClass:"act-tags"},[t("li",{staticClass:"tag-item"},[t("p",{staticClass:"title"},[e._v("\n      "+e._s(e.$t("gallery2.suggestforyou"))+"\n    ")]),e._v(" "),t("p",{staticClass:"tips"},[e._v("\n      "+e._s(e.$t("gallery2.followhint"))+"\n    ")]),e._v(" "),t("el-button",{staticClass:"reload-btn",attrs:{loading:e.loading,plain:""},on:{click:e.reload}},[e.loading?e._e():t("IconfontView",{attrs:{customClass:"reload-btn-icon",showType:"hs_line_gengxin"}}),e._v("\n      "+e._s(e.$t("web_refresh"))+"\n    ")],1)],1),e._v(" "),e._l(e.designerLists,function(n,i){return t("li",{key:i,staticClass:"tag-item"},[t("recommendUserCard",{attrs:{data:n,pageSource:e.pageSource},on:{followingDone:e.followingDone}})],1)})],2):t("ul",{staticClass:"act-tags"},[t("li",{staticClass:"tag-item"},[t("p",{staticClass:"title"},[e._v("\n      "+e._s(e.$t("gallery2.suggestforyou"))+"\n    ")]),e._v(" "),t("p",{staticClass:"tips"},[e._v("\n      "+e._s(e.$t("gallery2.followhint"))+"\n    ")]),e._v(" "),t("el-button",{staticClass:"reload-btn",attrs:{loading:e.loading,plain:""},on:{click:e.reload}},[e.loading?e._e():t("IconfontView",{attrs:{customClass:"reload-btn-icon",showType:"hs_line_gengxin"}}),e._v("\n      "+e._s(e.$t("web_refresh"))+"\n    ")],1)],1),e._v(" "),e._l([1,2,3],function(e){return t("li",{key:e,staticClass:"tag-item"},[t("img",{staticClass:"tag-item-img",attrs:{src:"https://img.alicdn.com/imgextra/i4/O1CN01IKNx7J23CobfgAV7U_!!6000000007220-2-tps-1167-534.png",alt:""}})])})],2)},[],!1,null,"b329a86e",null);t.a=f.exports;installComponents(f,{IconfontView:n(129).default})},3267:function(e,t,n){"use strict";n(44);var i={name:"badge-list",props:{list:{type:Array,default:function(){return[]}},isNoWrap:{type:Boolean,default:!1},isReverse:{type:Boolean,default:!1},isNoBg:{type:Boolean,default:!1},onClickCard:{type:Function}},methods:{}},a=(n(4022),n(18)),s=Object(a.a)(i,function(){var e=this,t=e._self._c;return t("ul",{class:["badge-list",e.isNoWrap?"badge-list__nowrap":"",e.isReverse?"badge-list__end":""]},[e._t("default"),e._v(" "),e._l(e.list,function(n,i){return t("li",{key:n.name,class:["item-card",e.isNoBg?"item-card__nobg":""],on:{click:function(t){return e.onClickCard(i,e.list)}}},[t("img",{class:[n.alreadyHave?"":"no-reach"],attrs:{src:n.normalImageUrl,alt:""}}),e._v(" "),t("span",{staticClass:"item-name",class:[n.alreadyHave?"":"no-reach"]},[e._v(e._s(n.name))]),e._v(" "),n.alreadyHave&&!n.readFlag?t("span",{staticClass:"item-card__new"},[e._v("NEW")]):e._e()])})],2)},[],!1,null,null,null);t.a=s.exports},3268:function(e,t,n){"use strict";var i={name:"UserTooltip",props:{show:{type:Boolean,default:!1},placement:{type:String,default:"top"},theme:{type:String,default:""},text:{type:String,default:""}}},a=(n(4037),n(18)),s=Object(a.a)(i,function(){var e=this,t=e._self._c;return"dark"===e.theme?t("div",{staticClass:"tooltip-dark-wrap",class:"tooltip-".concat(e.placement)},[e.show?t("div",{staticClass:"tooltip"},[e._v("\n    "+e._s(e.text)+"\n    "),t("i",{staticClass:"iconfont tips-icon"}
1)]):e._e()]):t("div",{staticClass:"tooltip-wrap"},[e.show?t("div",{staticClass:"tooltip"},[e._v("\n    "+e._s(e.text)+"\n    "),t("img",{staticClass:"tooltip-top",attrs:{src:n(1735),alt:"tips-top.png"}})]):e._e()])},[],!1,null,"4ca98ab5",null);t.a=s.exports},3269:function(e,t,n){"use strict";n(23),n(19),n(15),n(31),n(32);var i=n(1),a=(n(62),n(30),n(22),n(21)),s=n(14);function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}var o={name:"CaseTab",props:{caseType:{type:Number,default:0},pageOrigin:{type:String,default:""}},data:function(){return{tabOptions:[{title:"contestlist.filterall",key:0,spmCode:"alldesign_click"},{title:"mobileDetail.webDesigns",key:1,spmCode:"webdesign_click"},{title:"mobileDetail.mobileDesigns",key:2,spmCode:"mobiledesign_click"}],mobileCaseTabLiShow:!1}},computed:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach(function(t){Object(i.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},Object(a.d)(["userInfo","locale"])),methods:{open:function(){this.mobileCaseTabLiShow=!0,window.addEventListener("click",this.windowClick)},windowClick:function(e){var t=e.target.className;t.includes("caseTab-select")||t.includes("icon-caozuo")||(this.mobileCaseTabLiShow=!1,window.removeEventListener("click",this.windowClick))},ChangeCaseTab:function(e,t){this.mobileCaseTabLiShow=!1,this.$emit("update:caseType",e),window.removeEventListener("click",this.windowClick),Object(s.c)("/hs_global_web.my_design.".concat(t),"member_id=".concat(this.userInfo.uid,"&language=").concat(this.locale))},destroyed:function(){window.removeEventListener("click",this.windowClick)}}},c=o,l=(n(4040),n(18)),u=Object(l.a)(c,function(){var e=this,t=e._self._c;return"gallery"===e.pageOrigin?t("ul",{staticClass:"caseTab"},[t("li",{class:{checked:0===e.caseType},on:{click:function(t){return e.ChangeCaseTab(0)}}},[e._v("\n    "+e._s(e.$t("gallery.allFeaturedProjects"))+"\n  ")]),e._v(" "),t("li",{class:{checked:1===e.caseType},on:{click:function(t){return e.ChangeCaseTab(1)}}},[e._v("\n    Homestyler Design Award 2020\n  ")]),e._v(" "),t("div",[t("i",{staticClass:"iconfont icon-caozuo",on:{click:function(t){return e.open()}}}),e._v(" "),t("ul",{directives:[{name:"show",rawName:"v-show",value:e.mobileCaseTabLiShow,expression:"mobileCaseTabLiShow"}],staticClass:"caseTab-select"},[t("li",{on:{click:function(t){return e.ChangeCaseTab(0)}}},[e._v("\n        "+e._s(e.$t("gallery.allFeaturedProjects"))+"\n      ")]),e._v(" "),t("li",{on:{click:function(t){return e.ChangeCaseTab(1)}}},[e._v("\n        Homestyler Design Award 2020\n      ")])])])]):t("ul",{staticClass:"caseTab"},[e._l(e.tabOptions,function(n){var i=n.key,a=n.title,s=n.spmCode;return t("li",{key:i,class:{checked:e.caseType===i},on:{click:function(t){return e.ChangeCaseTab(i,s)}}},[e._v("\n    "+e._s(e.$t(a))+"\n  ")])}),e._v(" "),t("div",[t("i",{staticClass:"iconfont icon-caozuo",on:{click:function(t){return e.open()}}}),e._v(" "),t("ul",{directives:[{name:"show",rawName:"v-show",value:e.mobileCaseTabLiShow,expression:"mobileCaseTabLiShow"}],staticClass:"caseTab-select"},e._l(e.tabOptions,function(n){var i=n.key,a=n.title,s=n.spmCode;return t("li",{key:i,class:{checked:e.caseType===i},on:{click:function(t){return e.ChangeCaseTab(i,s)}}},[e._v("\n        "+e._s(e.$t(a))+"\n      ")])}),0)])],2)},[],!1,null,"d59ba616",null);t.a=u.exports},3270:function(e,t,n){"use strict";n(23),n(19),n(31),n(32);var i=n(8),a=n(7),s=n(1),r=(n(38),n(62),n(25),n(15),n(73),n(22),n(30),n(70),n(37),n(66),n(21)),o=n(12),c=n(14),l=n(24),u=n(3242),d=n(129),p=n(3209),m=n(3207),f=n(170),h=n(189),g=n(3213),v=n(3206);function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?b(Object(n),!0).forEach(function(t){Object(s.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var y=2,w={queue:0,processing:1,success:2,fail:3},C=1,O={name:"AlbumList",components:{AlubmCardList:u.a,IconfontView:d.default,MemberUpgrade:p.default,OperateBtn:m.default,rectLoad:f.a},directives:{inview:h.b},mixins:[v.a,g.a],props:{fromAlbum:{type:Boolean,default:function(){return!1}},editAlbum:{type:Boolean,default:function(){return!1}},generateTime:{type:Number,default:function(){return 0}},canDownload:{type:Boolean,default:function(){return!1}},sceneType:{type:Number,default:7},type:{type:String,default:"ai_material"},showType:{type:String,default:"2d"},floorplanTips:{type:String,default:""},emptyImgUrl:{type:String,default:"https://gw.alicdn.com/imgextra/i3/O1CN01XnfLIe1fODm9PyHsf_!!6000000003996-2-tps-1120-800.png"},propsBatchDownload:{type:Function,default:void 0},propsGetShareUrl:{type:Function,default:void 0},propsHandleDownload:{type:Function,default:void 0},propsBatchDelete:{type:Function,default:void 0},apply3DToolTips:{type:String,default:""},props3DToolClick:{type:Function,default:void 0},subTitleSelectText:{type:String,default:"ai.modeler.num.select"},subTitleTotalText:{type:String,default:"ai.modeler.num.total"},alubmOpen3D:{type:Boolean,default:!0}},data:function(){return{allAlubmList:[],allAlubmPage:{loading:!1,offset:0,limit:30,requestdNum:0,total:0,done:!0},selectedGroup:-1,selectedImages:[],maxSelectedNum:20,resultImage:null,showTips:!0,listLoaded:!1,pollingTimer:null,albumHeight:0}},computed:_(_({},Object(r.d)(["locale","userInfo","isHomestylerApp"])),{},{isDisabled:function(){return this.alubmData.status!==w.success},loadListSetting:function(){return{target:"#aigcAlbumList",callback:this.handleListScorll}},isAllGroup:function(){return-1===this.selectedGroup},alubmData:function(){var e=this,t=this.allAlubmList.map(function(t){if(e.resultImage&&t.taskId===e.resultImage.taskId){var n=e.resultImage.imageResultList[0]||t;return _(_({},n),{},{processSchedule:Math.max(n.processSchedule,t.processSchedule)})}return t});return{isAll:!0,taskId:-1,status:y,imageResultList:t,total:this.allAlubmPage.total,taskName:this.$t("ai.modeler.list.title")}},disabledStart:function(){return 0===this.alubmData.imageResultList.filter(function(e){return("string"==typeof e.extend?JSON.parse(e.extend):e.extend||{}).modelStatus===C}).length},alubmSubTitle:function(){return this.isAllGroup?this.editAlbum?this.$t(this.subTitleSelectText,{num:"".concat(this.selectedImages.length,"/").concat(Math.min(this.maxSelectedNum,this.allAlubmPage.total))}):this.$t(this.subTitleTotalText,{num:this.allAlubmPage.total}):Object(l.R)(this.alubmData.gmtCreate)}}),watch:{"userInfo.uid":function(e,t){e!==t&&e&&this.queryAlubmAllList()},editAlbum:function(e){e||(this.selectedImages=[])}},mounted:function(){var e=this;this.queryAlubmAllList().then(function(){var t=e.allAlubmList.find(function(e){return[w.processing,w.queue].includes(e.processStatus)});t&&e.queryGroupDetail(t.taskId,function(){e.queryAlubmAllList(!0)})})},updated:function(){this.listLoaded=this.allAlubmList.length>0},destroyed:function(){this.pollingTimer&&clearTimeout(this.pollingTimer)},methods:{handle3DToolClick:function(){var e=this;if(!this.disabledStart){var t=this.$t("ai.modeler.create.design"),n=this.$t("ai.modeler.my.designs");this.callWindVane("WVUIActionSheet","show",{_index:29870260,buttons:[t,n]});var i=function(a){var s=a.param.type,r="",o=0;s===n?(o=2,r="homestyler://m.homestyler.com/index?tab=myProfile&isAiModeler=true"):s===t&&(o=1,r="homestyler://m.homestyler.com/mixEmptyRoom?isAiModeler=true"),Object(c.c)("/hs_global_web.".concat(e.type,".floor_planner_clk"),"type=".concat(o,"&member_id=").concat(e.userInfo.uid,"&language=").concat(e.locale)),r&&(window.location.href=r),document.removeEventListener("wv.actionsheet",i,!1)};document.addEventListener("wv.actionsheet",i,!1)}},buyMore:function(e){this.$emit("buyMore",e)},queryGroupDetail:function(e,t){var n=this;return Object(a.a)(regeneratorRuntime.mark(function i(){var a,s;return regeneratorRuntime.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.prev=0,i.next=1,o.a.aiModeler.aigcGroupDetail({data:{taskId:e,sceneType:n.sceneType}});case 1:(a=i.sent)&&a.ret&&a.ret[0].includes("SUCCESS")&&a.data&&(s=a.data.status,n.resultImage=a.data,s===y?t&&t():n.pollingTimer=setTimeout(function(){n.queryGroupDetail(e,t)},3e3)),i.next=3;break;case 2:i.prev=2,i.catch(0);case 3:case"end":return i.stop()}},i,null,[[0,2]])}))()},queryAlubmAllList:function(){var e=arguments,t=this;return Object(a.a)(regeneratorRuntime.mark(function n(){var a,s,r,c,l,u,d,p,m,f,h,g,v,b;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(a=e.length>0&&void 0!==e[0]&&e[0],!t.allAlubmPage.loading){n.next=1;break}return n.abrupt("return");case 1:return n.prev=1,t.allAlubmPage.loading=!0,s=t.allAlubmPage,r=s.offset,c=s.limit,l=s.requestdNum,u=a?{offset:0,limit:l,sceneType:t.sceneType}:{offset:r,limit:c,sceneType:t.sceneType},n.next=2,o.a.aiModeler.aigcAllImageList({data:u});case 2:(d=n.sent)&&d.ret&&d.ret[0].includes("SUCCESS")&&d.data&&(p=d.data,m=p.items,f=void 0===m?[]:m,h=p.total,g=p.offset,v=g+c,b=f.map(function(e){var t={};null!=e&&e.extend&&(t=JSON.parse(e.extend));var n="value-postProcessingStatus-pending-max2obj"===t.postProcessingStatus,i="value-postProcessingStatus-failed"===t.postProcessingStatus,a=t.modelStatus===C;return _(_({},e),{},{extend:t,isModelProcessing:n,isModelFailed:i,isModelSuccess:a})}),t.allAlubmList=a?b:[].concat(Object(i.a)(t.allAlubmList),Object(i.a)(b)),t.allAlubmPage={loading:!1,offset:v,limit:c,requestdNum:t.allAlubmList.length,total:h,done:v>=h}),n.next=4;break;case 3:n.prev=3,n.catch(1);case 4:return n.prev=4,t.allAlubmPage.loading=!1,n.finish(4);case 5:case"end":return n.stop()}},n,null,[[1,3,4,5]])}))()},handleListScorll:function(){var e=this.allAlubmPage,t=e.loading;
1e.done||t||this.queryAlubmAllList()},handleCancelClick:function(){this.$emit("update:editAlbum",!1),this.selectedImages=[],Object(c.c)("/hs_global_web.".concat(this.type,".edit_cancel_clk"),"member_id=".concat(this.userInfo.uid,"&language=").concat(this.locale,"&taskId=").concat(this.selectedGroup))},handleEditClick:function(){this.isDisabled||(this.$emit("update:editAlbum",!0),Object(c.c)("/hs_global_web.".concat(this.type,".edit_clk"),"member_id=".concat(this.userInfo.uid,"&language=").concat(this.locale,"&taskId=").concat(this.selectedGroup)))},handleTipsClose:function(){this.showTips=!1,Object(c.c)("/hs_global_web.".concat(this.type,".close_tips_clk"),"member_id=".concat(this.userInfo.uid,"&language=").concat(this.locale,"&taskId=").concat(this.selectedGroup))},batchDownload:function(e,t,n){var i=this,a=[];if(e.forEach(function(e){t.includes(e.subTaskId)&&a.push({url:e.imageUrl})}),Object(c.c)("/hs_global_web.".concat(this.type,".download_clk"),"member_id=".concat(this.userInfo.uid,"&language=").concat(this.locale)),this.isHomestylerApp)if(this.greaterThanVersion("11.2.0"))this.callWindVane("HSPlugin","downloadMediaList",{images:a});else{var s=a.map(function(e){var t=e.url;return Object(l.p)(t).then(function(e){return i.callWindVane("HSPlugin","saveAigcPhoto",{data:e.base64})})});Promise.all(s)}else 1===a.length?window.open("".concat(a[0].url,"?response-content-type=application/octet-stream"),"_blank"):(Object(l.T)(a,n),this.$message({type:"success",duration:1e4,message:this.$t("affiliate.dashboard.creative.download")}))},handleBatchDownload:function(){this.selectedImages.length&&(this.propsBatchDownload?this.propsBatchDownload(this.alubmData.imageResultList,this.selectedImages,this.alubmData.taskName):this.handleImageBatchDownload(this.alubmData.imageResultList,this.selectedImages,this.alubmData.taskName))},handleBatchDelete:function(e,t){var n=this;if(this.selectedImages.length||e){var i=function(){var i=Object(a.a)(regeneratorRuntime.mark(function i(){var a,s;return regeneratorRuntime.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.prev=0,a=e?[e]:n.selectedImages,i.next=1,o.a.aiModeler.aigcImageDelete({data:{subTaskIds:a,sceneType:n.sceneType}});case 1:if(!((s=i.sent)&&s.ret&&s.ret[0].includes("SUCCESS")&&s.data&&s.data.result)){i.next=2;break}n.allAlubmList=n.allAlubmList.filter(function(e){return!a.includes(e.subTaskId)}),n.allAlubmPage=_(_({},n.allAlubmPage),{},{total:n.allAlubmPage.total-a.length}),e||(n.selectedImages=[]),t&&t(),n.$message.success({message:n.$t("app.layout.delete.success"),showClose:!0}),Object(c.c)("/hs_global_web.".concat(n.type,".delete_clk"),"member_id=".concat(n.userInfo.uid,"&language=").concat(n.locale)),i.next=3;break;case 2:throw new Error("mtop.aiModeler.aigcImageDelete");case 3:i.next=5;break;case 4:i.prev=4,i.catch(0),n.$message.error(n.$t("coupon.wrong"));case 5:case"end":return i.stop()}},i,null,[[0,4]])}));return function(){return i.apply(this,arguments)}}();this.propsBatchDelete?this.propsBatchDelete(i):this.showDeleteConfirm({onConfirm:i,onUpgrade:function(){return n.buyMore({sourcePage:"".concat(n.type,"_album_delete")})}})}}}},k=O,I=(n(4163),n(18)),S=Object(I.a)(k,function(){var e=this,t=e._self._c;return e.allAlubmList.length>0?t("div",{staticClass:"album-warp",class:e.fromAlbum&&"from-album-warp"},[e.fromAlbum?t("div",{staticClass:"from-album-header"},[e.floorplanTips&&e.showTips?t("div",{staticClass:"album-header-tips"},[e._v("\n      "+e._s(e.$t(e.floorplanTips))+"\n      "),t("div",{staticClass:"icon_close",on:{click:e.handleTipsClose}},[t("IconfontView",{attrs:{customStyle:{fontSize:"12px",color:"#33353B"},showType:"hs_con_team_close"}})],1)]):e._e(),e._v(" "),t("div",{staticClass:"album-header-subtitle"},[e._v("\n      "+e._s(e.alubmSubTitle)+"\n    ")])]):e._e(),e._v(" "),t("div",{staticClass:"album-content-flex"},[t("div",{staticClass:"album-content"},[e.fromAlbum?e._e():t("div",{staticClass:"album-header"},[t("div",{staticClass:"album-header-left"},[t("div",{staticClass:"album-header-title"},[t("IconfontView",{attrs:{customStyle:{fontSize:"20px",color:"#1C1C1C"},showType:"icon_start"},on:{click:function(t){return e.$emit("closeAlbum")}}}),e._v("\n            "+e._s(e.alubmData.taskName)+"\n          ")],1),e._v(" "),t("div",{staticClass:"album-header-subtitle"},[e._v("\n            "+e._s(e.alubmSubTitle)+"\n          ")])]),e._v(" "),t("div",{staticClass:"album-header-right"},[e.editAlbum?t("div",{staticClass:"album-header-btn album-header-operate"},[t("OperateBtn",{attrs:{disabled:!e.selectedImages.length||!e.canDownload,showClose:!e.canDownload,hyalineClose:!0,iconType:"hs_mian_xiazai",memberBenefits:!0,placement:e.canDownload?"top":"bottom"},on:{click:e.handleBatchDownload}},[e.canDownload?t("span",[e._v(e._s(e.$t("AIGC.dashboard.download")))]):t("MemberUpgrade",{attrs:{showDemo:!1,adaptMobile:!1},on:{upgrade:function(t){return e.buyMore({sourcePage:"ai-designer-watermark"})}}}
1)],1),e._v(" "),t("OperateBtn",{attrs:{disabled:!e.selectedImages.length,iconType:"a-22_3dtool_delete"},on:{click:e.handleBatchDelete}},[e._v("\n              "+e._s(e.$t("editProject.content.delete"))+"\n            ")]),e._v(" "),t("div",{staticClass:"album-header_line"}),e._v(" "),t("div",{staticClass:"album-header-cancel",on:{click:e.handleCancelClick}},[e._v("\n              "+e._s(e.$t("editProject.content.cancel"))+"\n            ")])],1):t("div",{staticClass:"album-header-btn",class:e.isDisabled&&"btn-disabled",on:{click:e.handleEditClick}},[e._v("\n            "+e._s(e.$t("projectDetail.content.edit"))+"\n          ")])])]),e._v(" "),t("div",{staticClass:"album-content-list small-scrollbar",attrs:{id:"aigcAlbumList"}},[t("AlubmCardList",{attrs:{type:e.type,showType:e.showType,datasource:e.alubmData.imageResultList,d3Resource:e.alubmData.d3Resource,total:e.alubmData.total,selectedKeys:e.selectedImages,maxSelectedNum:e.maxSelectedNum,editAlbum:e.editAlbum,isAll:e.isAllGroup,canDownload:e.canDownload,apply3DToolTips:e.apply3DToolTips,propsGetShareUrl:e.propsGetShareUrl,propsHandleDownload:e.propsHandleDownload,props3DToolClick:e.props3DToolClick},on:{"update:selectedKeys":function(t){e.selectedImages=t},"update:selected-keys":function(t){e.selectedImages=t},buyMore:e.buyMore,queryAllList:e.queryAlubmAllList,handleDelete:e.handleBatchDelete}}),e._v(" "),e.isAllGroup&&e.listLoaded?t("div",{directives:[{name:"inview",rawName:"v-inview",value:e.loadListSetting,expression:"loadListSetting"}],staticClass:"load-more"},[t("rect-load",{directives:[{name:"show",rawName:"v-show",value:e.allAlubmPage.loading,expression:"allAlubmPage.loading"}]})],1):e._e()],1)])]),e._v(" "),e.editAlbum?t("div",{staticClass:"album-fixed-operate"},[t("OperateBtn",{attrs:{iconFontSize:"26px",disabled:!e.selectedImages.length||!e.canDownload,showClose:!e.canDownload,hyalineClose:!0,iconType:"hs_mian_xiazai",memberBenefits:!0,placement:e.canDownload?"top":"top-start"},on:{click:e.handleBatchDownload}},[e.canDownload?t("span",[e._v(e._s(e.$t("AIGC.dashboard.download")))]):t("MemberUpgrade",{attrs:{showDemo:!1,adaptMobile:!1},on:{upgrade:function(t){return e.buyMore({sourcePage:"ai-designer-download"})}}})],1),e._v(" "),t("OperateBtn",{attrs:{iconFontSize:"26px",disabled:!e.selectedImages.length,iconType:"a-22_3dtool_delete"},on:{click:e.handleBatchDelete}},[e._v("\n      "+e._s(e.$t("editProject.content.delete"))+"\n    ")])],1):e.isHomestylerApp&&e.alubmOpen3D?t("div",{staticClass:"album-fixed-start",class:e.disabledStart&&"start-disabled",on:{click:e.handle3DToolClick}},[e._v("\n    "+e._s(e.$t("ai.modeler.app.start"))+"\n    "),t("i",{staticClass:"iconfont icon-into"})]):e._e()]):t("div",{staticClass:"album-empty"},[e.fromAlbum?e._e():t("div",{staticClass:"album-empty-header",on:{click:function(t){return e.$emit("closeAlbum")}}},[t("IconfontView",{attrs:{customStyle:{fontSize:"20px",color:"#1C1C1C"},showType:"icon_start"}}),e._v("\n    "+e._s(e.$t("AIGC.dashboard.album"))+"\n  ")],1),e._v(" "),t("img",{attrs:{src:e.emptyImgUrl,alt:"aigc album empty"}})])},[],!1,null,"a11e98d6",null);t.a=S.exports;installComponents(S,{IconfontView:n(129).default,MemberUpgrade:n(3209).default,OperateBtn:n(3207).default})},3272:function(e,t,n){"use strict";n.d(t,"a",function(){return A}),n.d(t,"c",function(){return P}),n.d(t,"b",function(){return D});n(15),n(65),n(37);var i=n(0),a=n.n(i),s=n(52),r=n.n(s),o=n(58),c=n(3),l=n.n(c),u=(n(4033),function(e){var t=e.title,n=e.content,i=e.onOk,s=e.onCancel,r=e.okText,c=e.cancelText,u=e.$t,d=(e.visible,e.hiddenFooter),p=void 0!==d&&d,m=e.className;return a.a.createElement("div",{className:l()("confirm_dialog_wrap")},a.a.createElement("div",{className:l()("confirm_dialog",m)},a.a.createElement("div",{className:"dialog_header"},a.a.createElement("div",{className:"title"},t),a.a.createElement(o.e,{customStyle:{fontSize:"20px",color:"#1C1C1C"},showType:"hs_con_team_close",customClass:"dialog_close",onClick:s})),a.a.createElement("div",{className:"dialog_content"},n),!p&&a.a.createElement("div",{className:"dialog_footer"},a.a.createElement("div",{className:"btn_common cancle_btn",onClick:s},c||u("coincenter.cancel")),a.a.createElement("div",{className:"btn_common ok_btn",onClick:i},r||u("coincenter.confirm")))))});function d(e){var t=e.visible;return a.a.createElement(a.a.Fragment,null,t&&Object(s.createPortal)(a.a.createElement(u,e),document.body))}function p(e){var t=document.createElement("div");return document.body.appendChild(t),r.a.render(a.a.createElement(d,e),t),{destroy:function(){r.a.unmountComponentAtNode(t),document.body.removeChild(t)}}}n(23),n(19),n(31),n(32);var m=n(1),f=n(53);function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?h(Object(n),!0).forEach(function(t){Object(m.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function v(e,t){return Object(f.handleMtopPromiseResult)(f.default.other.blockUser({data:{blockUserId:e,type:t,clientInfo:JSON.stringify(Object(f.getClientInfo)())}}))}var b=n(821),_=(n(4034),n(46)),y=n(24),w=n(8),C=n(2),O=(n(25),n(142),n(143),n(145)),k=n(351),I=(n(4035),n(205));function S(e){var t=e.className,n=e.$t,s=e.onUnblockClick,r=Object(i.useMemo)(function(){return Object(O.uuid)()},[]),o=a.a.useState([]),c=Object(C.a)(o,2),u=c[0],d=c[1];return a.a.createElement("div",{id:r,className:l()("block-user-list",t)},a.a.createElement(k.a,{deleteItems:u,scrollableTarget:r,needReload:r,pageSize:20,className:"block-user-list-scroll",fetchData:function(e){var t,n=e.pageNo,i=e.pageSize;return(t={pageNo:n,pageSize:i},Object(f.handleMtopPromiseResult)(f.default.other.blockList({data:g(g({},t),{},{clientInfo:JSON.stringify(Object(f.getClientInfo)())})}))).then(function(e){return{items:e.users,total:e.paging.total}})},emptyInfo:{content:n("block_user_list_empty")}},function(e){return e.map(function(e){return a.a.createElement(j,{className:"user-item",$t:n,user:e,onUnblockClick:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){null==s||s(e).then(function(t){t&&d([].concat(Object(w.a)(u),[e]))})})})})}))}function j(e){var t=e.className,n=e.$t,i=e.user,s=e.onUnblockClick;return a.a.createElement("div",{className:l()("user-item",t)},a.a.createElement(I.a,{className:"user-avatar",src:i.avatar,avatarImageSize:88,size:44,onClick:function(){window.open("/user/".concat(i.homestylerId),"_blank")},userInfo:i}),a.a.createElement("span",{className:"user-info"},a.a.createElement("div",{className:"user-name",onClick:function(){window.open("/user/".concat(i.homestylerId),"_blank")}},[i.firstName,i.lastName].filter(function(e){return!!e}).join(" ")),a.a.createElement("div",{className:"user-id"},"@".concat(i.homestylerId))),a.a.createElement(T,{className:"unblock-button",onClick:s},n("block_dissolve_button")))}function T(e){var t=e.className,n=e.onClick,i=e.children;return a.a.createElement("div",{className:l()("samrt-button",t),onClick:n},i)}var x=n(180);function A(e){var t=e.userInfo,n=e.$t,i=e.onOk,s=[t.firstName,t.lastName].filter(function(e){return!!e}
1).join(" "),r=p({title:n("block_confirm_title").replace("xxx",s),content:n("block_confirm_content"),okText:n("block_confirm_button"),onOk:function(){Object(x.a)("block_clk"),v(t.uid,1).then(function(){r.destroy(),b.a.open({type:"success",duration:4,content:a.a.createElement("div",{className:"block-success-message-content"},a.a.createElement("span",{className:"block-success-message-content-text"},n("block_hint_success")),a.a.createElement("span",{className:"into",onClick:function(){y.a.setLocalStorage("showBlockUser",!0,{once:!0}),window.open("/profile?lang=zh_CN&tabKey=security","_blank")}},a.a.createElement("span",null,n("block_hint_view")),a.a.createElement(_.a,{type:"iconCommunity_arrow3",fontSize:18,style:{marginLeft:8},color:"#2E2E2E"})))}),null==i||i()})},onCancel:function(){r.destroy()},$t:n,visible:!0})}function P(e){return new Promise(function(t,n){var i=e.userInfo,a=e.$t,s=e.onOk,r=[i.firstName,i.lastName].filter(function(e){return!!e}).join(" "),o=p({title:a("block_dissolve_confirm_title").replace("xxx",r),content:a("block_dissolve_confirm_content"),okText:a("block_dissolve_confirm_button"),onOk:function(){Object(x.a)("unblock_clk"),v(i.uid,0).then(function(){o.destroy(),b.a.open({type:"success",duration:4,content:a("block_unblock_success")}),t(!0),null==s||s()})},onCancel:function(){o.destroy(),t(!1)},$t:a,visible:!0})})}function D(e){var t=e.$t,n=p({className:"block-user-list-dialog",title:t("block_dissolve_title"),content:a.a.createElement(S,{className:"block-user-list-in-dialog",$t:t,onUnblockClick:function(e){return P({userInfo:{uid:e.id,firstName:e.firstName,lastName:e.lastName},$t:t})}}),$t:t,visible:!0,hiddenFooter:!0,onCancel:function(){n.destroy()}})}},3278:function(e,t,n){e.exports={}},3284:function(e,t,n){e.exports={}},3285:function(e,t,n){e.exports={}},3286:function(e,t,n){e.exports={}},3287:function(e,t,n){e.exports={}},3288:function(e,t,n){e.exports={}},3289:function(e,t,n){e.exports={}},3290:function(e,t,n){e.exports={}},3291:function(e,t,n){e.exports={}},3292:function(e,t,n){e.exports={}},3293:function(e,t,n){e.exports={}},3294:function(e,t,n){e.exports={}},3295:function(e,t,n){e.exports={}},3296:function(e,t,n){e.exports={}},3299:function(e,t,n){e.exports={}},3300:function(e,t,n){e.exports={}},3303:function(e,t,n){e.exports={}},3310:function(e,t,n){"use strict";n.d(t,"a",function(){return c});n(23),n(19),n(15),n(31),n(32);var i=n(1),a=n(12);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){Object(i.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var o={wish:{hideNavbar:!0,hideCount:!0,hideBuyMore:!0,hide3dView:!0,hideHeaderGoBack:!0,hideWaterMark:!0,hideContactIcon:!0,hideTipsIcon:!0,hideMultiSelectionDownload:!0,alwaysShowAlbumIcon:!0,uploadImageWidthWishId:!0,hideHeaderTile:!0,disableNav:!0,noNeedLogin:!0,downloadWithoutZip:!0,navigatorShare:!0,initSelectCode:1,hiddenMgmHeader:!0,aigcIdentify:function(e,t,n){return a.a.wish.aigcIdentify({data:r(r({},e),{},{version:"V1",wishUserId:t}),options:{headers:{lang:n}},needLogin:!1})},aigcGroupDetail:function(e,t,n){return a.a.wish.aigcGroupDetail({data:{taskId:e,wishUserId:t},options:{headers:{lang:n}},needLogin:!1})},aigcAllImageList:function(e,t,n){return a.a.wish.aigcAllImageList({data:r(r({},e),{},{wishUserId:t}),options:{headers:{lang:n}},needLogin:!1})},aigcGroupImageList:function(e,t,n){return a.a.wish.aigcGroupImageList({data:r(r({},e),{},{wishUserId:t}),options:{headers:{lang:n}},needLogin:!1})},aigcImageDelete:function(e,t){return a.a.wish.aigcImageDelete({data:r(r({},e),{},{wishUserId:t}),needLogin:!1})}},default:{hideNavbar:!1,hideCount:!1,hideBuyMore:!1,hide3dView:!1,hideHeaderGoBack:!1,hideWaterMark:!1,hideContactIcon:!1,uploadImageWidthWishId:!1,hideHeaderTile:!1,disableNav:!1,noNeedLogin:!1,initSelectCode:2}};function c(e){return o[e]||o.default}},3311:function(e,t,n){e.exports={}},3312:function(e,t,n){e.exports={}},3313:function(e,t,n){e.exports={}},3314:function(e,t,n){e.exports={}},3316:function(e,t,n){e.exports={}},3319:function(e,t,n){"use strict";n.d(t,"b",function(){return i}),n.d(t,"a",function(){return a});var i=function(e){return e[e.GOLD=10]="GOLD",e[e.Excellence=20]="Excellence",e[e.Merit=30]="Merit",e[e.DESIGN_PROMOTION=40]="DESIGN_PROMOTION",e[e.AI_PROMOTION=50]="AI_PROMOTION",e}({}),a=function(e){return e[e.webDesign=2]="webDesign",e[e.appDesign=4]="appDesign",e[e.topic=8]="topic",e[e.asset=10]="asset",e}({})},3320:function(e,t,n){e.exports={}},3321:function(e,t,n){e.exports={}},3322:function(e,t,n){e.exports={}},3323:function(e,t,n){e.exports={}},3324:function(e,t,n){e.exports={}},3325:function(e,t,n){e.exports={}},3326:function(e,t,n){e.exports={}},3327:function(e,t,n){e.exports={}},3328:function(e,t,n){e.exports={}},3335:function(e,t,n){e.exports={}},3337:function(e,t,n){e.exports={}},3338:function(e,t,n){e.exports={}},3339:function(e,t,n){e.exports={}},3340:function(e,t,n){e.exports={}},3341:function(e,t,n){e.exports={}},3342:function(e,t,n){e.exports={}},3343:function(e,t,n){e.exports={}},3346:function(e,t,n){e.exports={}},3347:function(e,t,n){"use strict";var i=n(7),a=(n(30),n(22),n(161),n(65),n(38),n(12));t.a={data:function(){return{that:this,queryKey:"categoryId",blogs:[],category:[],tags:[],navScroll:!1,pager:{page:1,limit:4,total:0,totalpages:1}
1}},methods:{getBlogs:function(){var e=this;return Object(i.a)(regeneratorRuntime.mark(function t(){var n,i,s,r,o,c,l,u,d,p;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,r={order:"desc",pageSize:e.pager.limit,pageIndex:e.pager.page,searchCount:!0},(o=e.$route.params.id)&&(r[e.queryKey]=o),t.next=1,a.a.blog.getBlogList({data:r});case 1:if(c=t.sent,l=c.data,null!=(u=void 0===l?[]:l)&&null!==(n=u.data)&&void 0!==n&&n.status&&0===u.data.status.code){t.next=2;break}return t.abrupt("return");case 2:d=u.data,e.blogs=(null===(i=d.data)||void 0===i?void 0:i.list)||[],p=(null===(s=d.paging)||void 0===s?void 0:s.total)||1,e.pager.total=p,e.pager.totalpages=Math.ceil(p/e.pager.limit),t.next=4;break;case 3:t.prev=3,t.catch(0);case 4:case"end":return t.stop()}},t,null,[[0,3]])}))()},getCategories:function(){var e=this;return Object(i.a)(regeneratorRuntime.mark(function t(){var n,i;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=1,a.a.blog.getCategories();case 1:n=t.sent,i=n.data&&n.data.data.status.code,n&&n.ret&&n.ret[0].includes("SUCCESS")&&0===i&&(e.category=n.data.data.data),t.next=3;break;case 2:t.prev=2,t.catch(0);case 3:case"end":return t.stop()}},t,null,[[0,2]])}))()},getTags:function(){var e=this;return Object(i.a)(regeneratorRuntime.mark(function t(){var n;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=1,a.a.blog.getTags();case 1:n=t.sent,e.tags=n,t.next=3;break;case 2:t.prev=2,t.catch(0);case 3:case"end":return t.stop()}},t,null,[[0,2]])}))()},changePage:function(e){this.pager.page=e,this.getBlogs()}},filters:{coverFilter:function(e,t){var n=e.match(/<img.*?>/g);if(!n||!n[0])return t;var i=n[0].match(/src=('|").*?('|")/);return i&&i[0]?i[0].replace("src=","").replace(/^["']/,"").replace(/["']$/,""):t}}}},3350:function(e,t,n){e.exports={}},3353:function(e,t,n){e.exports={}},3355:function(e,t,n){e.exports={}},3378:function(e,t,n){e.exports={}},3383:function(e,t,n){e.exports={}},3396:function(e,t,n){e.exports={}},3397:function(e,t,n){e.exports={}},3399:function(e,t,n){e.exports={}},3400:function(e,t,n){e.exports={}},3413:function(e,t,n){e.exports={}},3417:function(e,t,n){e.exports={}},3418:function(e,t,n){"use strict";n.d(t,"c",function(){return l}),n.d(t,"b",function(){return d}),n.d(t,"f",function(){return m}),n.d(t,"e",function(){return h}),n.d(t,"a",function(){return v}),n.d(t,"d",function(){return b});n(23),n(19),n(15),n(31),n(32);var i=n(1),a=n(7),s=(n(38),n(161),n(239),n(3236)),r=n(53);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach(function(t){Object(i.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function l(e){return u.apply(this,arguments)}function u(){return(u=Object(a.a)(regeneratorRuntime.mark(function e(t){var n;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Object(r.handleMtopPromiseResult)(r.mtop.learn.getFeed({data:{groupId:t.groupId,offset:t.offset,limit:t.limit,clientInfo:JSON.stringify(Object(r.getClientInfo)())}}));case 1:return n=e.sent,e.abrupt("return",c({},n.data));case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function d(e){return p.apply(this,arguments)}function p(){return(p=Object(a.a)(regeneratorRuntime.mark(function e(t){var n;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=1,r.mtop.search.getGroupPageList({data:{clientInfo:JSON.stringify(Object(r.getClientInfo)())},options:{headers:{lang:t}}});case 1:return n=e.sent,e.abrupt("return",n.data.data||[]);case 2:return e.prev=2,e.catch(0),e.abrupt("return",[]);case 3:case"end":return e.stop()}},e,null,[[0,2]])}))).apply(this,arguments)}function m(e,t){return f.apply(this,arguments)}function f(){return(f=Object(a.a)(regeneratorRuntime.mark(function e(t,n){var i;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,s.a.gallery.learnDetail({id:t},!1,n?{lang:n}:{});case 1:return i=e.sent,e.abrupt("return",i.data);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function h(e,t){return g.apply(this,arguments)}function g(){return(g=Object(a.a)(regeneratorRuntime.mark(function e(t,n){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Object(r.handleMtopPromiseResult)(r.mtop.learn.getDetail({data:{id:t,clientInfo:JSON.stringify(Object(r.getClientInfo)())},options:n?{headers:{lang:n}}:{}})).then(function(e){return e.data});case 1:return e.abrupt("return",e.sent);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function v(e){if(!e)return"";var t=e.match(/\/forum\/view\/(\d+)/);return t?t[1]:""}function b(e,t,n){return _.apply(this,arguments)}function _(){return(_=Object(a.a)(regeneratorRuntime.mark(function e(t,n,i){var a;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,s.a.forum.postDetail({id:t||1},!1,{Authorization:n,lang:i||"en_US"},!1);case 1:if(!(a=e.sent)||0!==a.status.code){e.next=2;break}return e.abrupt("return",a.data);case 2:return e.abrupt("return",{});case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)}},3419:function(e,t,n){e.exports={}},3421:function(e,t,n){e.exports={}},3422:function(e,t,n){e.exports={}},3434:function(e,t,n){e.exports={}},3436:function(e,t,n){e.exports={}},3438:function(e,t,n){"use strict";n.d(t,"a",function(){return a}),n.d(t,"b",function(){return s}),n.d(t,"c",function(){return r});var i=n(53),a=function(e){return e[e.unuse=1]="unuse",e[e.used=2]="used",e[e.expired=3]="expired",e}({});function s(e){return Object(i.handleMtopPromiseResult)(i.default.payPal.queryuserdiscountlist({data:e}))}function r(e){return Object(i.handleMtopPromiseResult)(i.default.payPal.queryDsiscountProductskulist({data:e}))}},3439:function(e,t,n){e.exports={}},3440:function(e,t,n){e.exports={}},3441:function(e,t,n){e.exports={}},3442:function(e,t,n){e.exports={}},3444:function(e,t,n){e.exports={}},3445:function(e,t,n){e.exports={}},3447:function(e,t,n){e.exports={}},3450:function(e,t,n){e.exports={}},3453:function(e,t,n){e.exports={}},3454:function(e,t,n){e.exports={}},3455:function(e,t,n){e.exports={}},3479:function(e,t,n){e.exports={}},3480:function(e,t,n){e.exports={}},3481:function(e,t,n){e.exports={}},3482:function(e,t,n){e.exports={}},3483:function(e,t,n){e.exports={}},3484:function(e,t,n){e.exports={}},3485:function(e,t,n){e.exports={}},3486:function(e,t,n){e.exports={}},3487:function(e,t,n){e.exports={}},3488:function(e,t,n){e.exports={}},3489:function(e,t,n){e.exports={}},3490:function(e,t,n){e.exports={}},3491:function(e,t,n){e.exports={}},3512:function(e,t,n){e.exports={}},3513:function(e,t,n){e.exports={}},3514:function(e,t,n){e.exports={}},3515:function(e,t,n){e.exports={}},3523:function(e,t,n){"use strict";n.d(t,"d",function(){return r}),n.d(t,"e",function(){return o}
1),n.d(t,"h",function(){return c}),n.d(t,"g",function(){return l}),n.d(t,"f",function(){return u}),n.d(t,"c",function(){return d}),n.d(t,"a",function(){return p}),n.d(t,"b",function(){return m});n(69),n(19),n(171),n(70),n(66);var i=n(2);n(37),n(73),n(161),n(44);function a(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return s(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,a=function(){};return{s:a,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,r=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw r}}}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;return new Promise(function(t){var n=performance.now(),i=0,a=0,s=[],r=function(){var o=performance.now();if(i++,o>1e3+n){var c=Math.round(1e3*i/(o-n));i=0,n=o,a++,s.push(c)}a<e?globalThis.requestAnimationFrame(r):t(s.join(","))};r()})}function o(){try{var e=document.createElement("canvas"),t="",n="",i=["webgl2","experimental-webgl2","webgl","experimental-webgl"].find(function(i){var a,s,r=e.getContext(i);if(!r)return!1;var o=r.getExtension("WEBGL_debug_renderer_info");return t=o&&r.getParameter(o.UNMASKED_RENDERER_WEBGL),n=r.getParameter(r.VERSION),null===(a=r.getExtension("WEBGL_lose_context"))||void 0===a||null===(s=a.loseContext)||void 0===s||s.call(a),!!r});return e.remove(),{graphicsCard:t,webglName:i,webglVersion:n}}catch(e){return null}}function c(){return new Promise(function(e){var t=new PerformanceObserver(function(n){var a=n.getEntriesByType("navigation"),s=Object(i.a)(a,1)[0];e(s.responseStart),t.disconnect()});t.observe({type:"navigation",buffered:!0})})}function l(){return navigator.userAgentData.getHighEntropyValues(["platform","platformVersion","model"]).then(function(e){var t=e.model,n=e.platform,i=e.platformVersion;if(!t){var a=navigator.userAgent;if(/iPad|iPhone/.test(a))t=/iPad/.test(a)?"iPad":"iPhone",n="iOS",i=a.match(/OS (\d+)_?(\d+)?_?(\d+)?/)[0];else if(/android/i.test(a)){n="Android",i=a.match(/Android\s+([\d.]+)/i)[0]}}return{model:t,platform:n,platformVersion:i,connectionType:navigator.connection.effectiveType,downlinkMax:navigator.connection.downlinkMax}})}function u(){return new Promise(function(e){if(window.PerformanceObserver){var t=new PerformanceObserver(function(n){var i=n.getEntries(),a=i[i.length-1];e(Math.round(a.startTime)),t.disconnect()});t.observe({type:"largest-contentful-paint",buffered:!0})}else e(null)})}function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:5e3;return new Promise(function(t){if(window.PerformanceObserver){var n=new PerformanceObserver(function(e){var a=e.getEntries(),s=Object(i.a)(a,1)[0];s&&(t(Math.round(s.processingStart-s.startTime)),n.disconnect())});n.observe({type:"first-input",buffered:!0}),setTimeout(function(){n.disconnect(),t(null)},e)}else t(null)})}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e4;return new Promise(function(t){if(window.PerformanceObserver){var n=0,i=!1,s=new PerformanceObserver(function(e){var t,i=a(e.getEntries());try{for(i.s();!(t=i.n()).done;){var s=t.value;s.hadRecentInput||(n+=s.value)}}catch(e){i.e(e)}finally{i.f()}});s.observe({type:"layout-shift",buffered:!0});var r=function(){i||(i=!0,s.disconnect(),t(Math.round(1e3*n)/1e3),document.removeEventListener("visibilitychange",o),window.removeEventListener("pagehide",r))},o=function(){"hidden"===document.visibilityState&&r()};document.addEventListener("visibilitychange",o),window.addEventListener("pagehide",r),setTimeout(r,e)}else t(null)})}function m(){return new Promise(function(e){if(window.PerformanceObserver){var t=new PerformanceObserver(function(n){var i,s=a(n.getEntries());try{for(s.s();!(i=s.n()).done;){var r=i.value;
1if("first-contentful-paint"===r.name)return e(Math.round(r.startTime)),void t.disconnect()}}catch(e){s.e(e)}finally{s.f()}});t.observe({type:"paint",buffered:!0})}else e(null)})}},3525:function(e,t,n){e.exports={}},3526:function(e,t,n){e.exports={}},3527:function(e,t,n){e.exports={}},3528:function(e,t,n){e.exports={}},3529:function(e,t,n){e.exports={}},3530:function(e,t,n){e.exports={}},3531:function(e,t,n){e.exports={}},3532:function(e,t,n){e.exports={}},3533:function(e,t,n){e.exports={}},3534:function(e,t,n){e.exports={}},3537:function(e,t,n){e.exports={}},3538:function(e,t,n){e.exports={}},3539:function(e,t,n){e.exports={}},3540:function(e,t,n){e.exports={}},3541:function(e,t,n){e.exports={}},3542:function(e,t,n){e.exports={}},3543:function(e,t,n){e.exports={}},3544:function(e,t,n){e.exports={}},3549:function(e,t,n){e.exports={}},3550:function(e,t,n){e.exports={}},3551:function(e,t,n){e.exports={}},3552:function(e,t,n){e.exports={}},3560:function(e,t,n){e.exports={}},3567:function(e,t,n){e.exports={}},3604:function(e,t,n){e.exports={}},3605:function(e,t,n){e.exports={}},3633:function(e,t,n){e.exports={}},3634:function(e,t,n){e.exports={}},3635:function(e,t,n){e.exports={}},3636:function(e,t,n){e.exports={}},3637:function(e,t,n){e.exports={}},3638:function(e,t,n){e.exports={}},3639:function(e,t,n){e.exports={}},3640:function(e,t,n){e.exports={}},3641:function(e,t,n){e.exports={}},3642:function(e,t,n){e.exports={}},3643:function(e,t,n){e.exports={}},3665:function(e,t,n){e.exports={}},3678:function(e,t,n){e.exports={}},3681:function(e,t,n){e.exports={}},3682:function(e,t,n){e.exports={}},3794:function(e,t,n){"use strict";n(23),n(19),n(15),n(31),n(32);var i=n(1),a=n(2),s=n(821),r=n(3198),o=n(131),c=n.n(o),l=n(0),u=n.n(l),d=n(24),p=n(58),m=(n(25),n(3)),f=n.n(m);n(3985);function h(e){var t=e.activeButton,n=e.buttons,i=e.className,a=e.onChange,s=e.type,r=void 0===s?"rect":s;return u.a.createElement("div",{className:f()("switch-buttons-wrap",r,i)},null==n?void 0:n.map(function(e){return u.a.createElement("div",{key:e.key||e.value,className:f()("switch-button",{"switch-button-active":t===e.value}),onClick:function(){a&&a(e)}},e.label)}))}var g=n(98),v=n(46),b=n(180),_=(n(30),n(22),n(37),n(3986),function(e){var t=e.hasBenefitClick,n=e.noBenefitClick,i=e.hasBenefit,a=e.isMember,s=e.theme,r=e.i18n,o=e.isLoading,c=r(i?"template_similar_video":a?"template_buymore_video":"video_template_upgrade");return u.a.createElement("div",{className:"video-module ".concat(s)},u.a.createElement("div",{className:"video-img"},u.a.createElement("video",{loop:!0,autoPlay:!0,src:"https://hs-designs.homestyler.com/staging/upload/images/b95bfc2b-8a1b-4aa5-a1c2-24902f2d01cb.mp4"})),!o&&u.a.createElement("div",{className:"video-module-footer"},(t||n)&&u.a.createElement(u.a.Fragment,null,!i&&u.a.createElement("div",{className:"desc"},r("template_tip_insufficient_video")),c&&u.a.createElement("div",{className:"footer-btn create-btn ".concat(i?"":"no-benefit"),onClick:function(){i?null==t||t():null==n||n()}},!i&&!a&&u.a.createElement("div",{className:"icon"}),u.a.createElement("div",{className:"text"},c)))))}),y=(n(73),n(3987)),w=n.n(y);n(3988);function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?C(Object(n),!0).forEach(function(t){Object(i.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var k=function(e){var t,n=e.createVideo,s=e.noBenefitClick,r=e.isMember,o=e.resolutionOptions,c=e.imageItem,d=e.theme,p=e.isSubmitting,m=e.i18n,f=[{key:"resolution",value:m("template_resolution_video"),options:o},{key:"time",value:m("template_duration_video"),options:[{key:"3s",value:3}]}],h=m(r?"template_buymore_video":"video_template_upgrade"),g=Object(l.useState)({resolution:"540P",time:"3s"}),v=Object(a.a)(g,2),b=v[0],_=v[1],y=(null===(t=f.find(function(e){return"resolution"===e.key}))||void 0===t||null===(t=t.options.find(function(e){return e.key===b.resolution}))||void 0===t?void 0:t.value)||0,C=y>=3,k=m("template_timeleft_video",{icon:y});return u.a.createElement("div",{className:"create-video ".concat(d)},u.a.createElement("div",{className:"content"},u.a.createElement("div",{className:"left-part"},f.map(function(e){return u.a.createElement("div",{className:"option"},u.a.createElement("div",{className:"option-label"},e.value),u.a.createElement("div",{className:"option-items"},e.options.map(function(t){return u.a.createElement("div",{className:"option-item ".concat(b[e.key]===t.key?"active":""),onClick:function(){return n=e.key,a=t.key,void _(O(O({},b),{},Object(i.a)({},n,a)));var n,a}},t.key)})))})),u.a.createElement("div",{className:"right-part",style:{backgroundImage:"url(".concat(c.thumbnailUrl,")")}}
1)),u.a.createElement("div",{className:"video-module-footer"},u.a.createElement("div",{className:"".concat(C?"leave-time":" footer-btn no-benefit"),onClick:function(){C||null==s||s()}},u.a.createElement("span",{className:"time"},k),!C&&!r&&u.a.createElement("div",{className:"icon"}),!C&&u.a.createElement("span",{className:"text"},h)),u.a.createElement("div",{className:"footer-btn create-btn ".concat(C&&!p?"":"no-benefit"),onClick:function(){null==n||n(b.resolution,c.caseId)}},p?u.a.createElement("img",{className:"loading-gif",src:w.a}):m("template_generate_video"))))},I=n(12),S=n(48),j=(n(3989),n(202)),T=n(14),x=function(e){var t=e.onShowModel,n=e.memberType,i=e.stylerMember,r=e.memberId,o=e.lang,c=Object(j.b)().showMarketDialog,d=Object(S.b)(),m=s.a.useMessage(),f=Object(a.a)(m,2),h=f[0],g=f[1],v=Object(l.useState)(!0),b=Object(a.a)(v,2),y=b[0],w=b[1];Object(l.useEffect)(function(){D();var e=function(e){e.preventDefault(),document.body.style.overflow="hidden"};return window.addEventListener("scroll",e,{passive:!1}),function(){document.body.style.overflow="auto",window.removeEventListener("scroll",e)}},[]);var C=Object(l.useState)(),O=Object(a.a)(C,2),x=O[0],A=O[1],P=["540PVideoFast","720PVideoFast"],D=function(){I.a.videoModule.getUserBenfits().then(function(e){if(e&&e.ret[0].includes("SUCCESS")){var t=e.data.data.benefits,n={};t.map(function(e){P.includes(e.actionType)&&(n[e.actionType]=e.amount)}),A([{key:"540P",value:n["540PVideoFast"]||0},{key:"720P",value:n["720PVideoFast"]||0}])}y&&w(!1)})},M=[2,3].includes(n)||i,E=null==x?void 0:x.some(function(e){return e.value>=3}),L=function(e){c({marketType:3===n?"video":2===n?"render_master_video":"render_video",marketSource:"videomodule",callback:D}),Object(T.c)("/hs_global_web.videoTemplate.open_pricing_clk","member_id=".concat(r,"&language=").concat(o))},$=Object(l.useState)(!1),N=Object(a.a)($,2),R=N[0],B=N[1],U="light",F=Object(l.useState)(0),V=Object(a.a)(F,2),H=V[0],z=V[1],K=Object(l.useState)(),W=Object(a.a)(K,2),q=W[0],G=W[1];return u.a.createElement(u.a.Fragment,null,(0===H||2===H)&&u.a.createElement("div",{className:"mask-dialog"},2===H&&u.a.createElement("i",{className:"iconfont icon-modal-back",onClick:function(){z(H-1)}}),u.a.createElement("i",{className:"iconfont icon-modal-close",onClick:function(){return t(!1)}}),u.a.createElement("div",{className:"case-dialog"},u.a.createElement("div",{className:"title-header"},u.a.createElement("div",{className:"video-module-title"},u.a.createElement("span",null,d("template_video")),0===H&&u.a.createElement("span",{className:"title-desc"},d("template_tip_video")))),0===H&&u.a.createElement(_,{theme:U,noBenefitClick:function(){return L()},hasBenefit:E,isMember:M,isLoading:y,hasBenefitClick:function(){z(1),Object(T.c)("/hs_global_web.videoTemplate.create_new_web_video_clk","member_id=".concat(r,"&language=").concat(o))},i18n:d}),2===H&&q&&x&&u.a.createElement(k,{theme:U,createVideo:function(e,n){if(R)return!1;B(!0);var i="".concat(e,"VideoFast");I.a.videoModule.submitImageToVideoJob({data:{uid:q.uid,subRenderType:i,duration:3,animationTemplate:"grow, fov"}}).then(function(e){if(e&&e.ret[0].includes("SUCCESS")){var i,a,s=null==e||null===(i=e.data)||void 0===i?void 0:i.result;101===(null==s||null===(a=s.error)||void 0===a?void 0:a.code)?h.open({type:"error",content:d("template_video_render_limit_error")}):(t(!1),h.open({type:"success",content:d("template_video_render_success")}),window.open("/workspace/mydesigns?from=template-video&caseId=".concat(n),"_blank"))}else h.open({type:"error",content:d("template_video_render_error")})}).finally(function(){B(!1)}),Object(T.c)("/hs_global_web.videoTemplate.generate_clk","member_id=".concat(r,"&language=").concat(o))},noBenefitClick:function(){return L()},isMember:M,resolutionOptions:x,imageItem:q,isSubmitting:R,i18n:d}))),u.a.createElement("div",{className:"video-module-chooseModal",style:1===H?{display:"block"}:{display:"none"}},u.a.createElement(p.b,{on:{onClose:t,onSubmit:function(e,t){var n=t[0],i=n.coverUrl,a=n.renderId;G({uid:a,thumbnailUrl:i,name:"",assetId:e.assetId,caseId:e.id}),z(2)}},isTemplateVideoMode:!0})),g)}
1,A=n(7),P=n(8),D=(n(38),n(239),n(44),n(69),n(3255));n(3990);function M(e){var t=e.title,n=e.linkText,i=e.linkHref,a=e.onLinkClick,s=e.className;return u.a.createElement("div",{className:f()("nav_title",s)},u.a.createElement("h2",{className:"nav_title_text"},t),n&&u.a.createElement("a",{href:i||"#",className:"nav_title_link",onClick:function(e){a&&a()},target:"_blank"},n,u.a.createElement(v.a,{type:"iconhs_xiao_danjiantou_shang",className:"nav_title_icon",fontSize:"10px",color:"#1C1C1C"})))}n(3991);function E(e){var t=e.children,n=e.cardHeight,i=e.gap,a=void 0===i?20:i,s=e.customClass,r=e.maxRows,o=void 0===r?1:r,c={"--card-height":"".concat(n,"px"),"--grid-gap":"".concat(a,"px"),"--max-rows":o};return u.a.createElement("div",{className:f()("responsive-card-grid",s),style:c},t.map(function(e,t){return u.a.createElement("div",{key:t,className:"responsive-card-grid__item"},e)}))}n(3992);function L(e){var t=e.title,n=e.linkText,i=e.cardHeight,a=e.gap,s=e.maxRows,r=e.type,o=e.list,c=void 0===o?[]:o,d=e.responsiveClass,p=void 0===d?"":d,m=e.spmName,f=void 0===m?"assets_panel":m,h=e.children;if(c.length<=0||!h)return null;var g=Object(l.useCallback)(function(){globalThis.globalSpmClick("".concat(f,"_see_more_clk"),{type:r})},[r]);return u.a.createElement(u.a.Fragment,null,(t||n)&&u.a.createElement(M,{title:t,linkText:n,onLinkClick:g,linkHref:"/asset-market?tab=".concat(D.b[r].name)}),u.a.createElement(E,{cardHeight:i,gap:a,customClass:p,maxRows:s},c.map(function(e,t){return h(e,t,f)})))}var $=n(75),N=n(218),R=(n(3993),{categoriesIds:"140841be-6e42-511a-b336-d9f6a17a5a3e",branch:"market",tenant:"fp",status:1,offset:0,limit:16,sort:"default",order:"desc"}),B=n(1592);function U(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function F(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?U(Object(n),!0).forEach(function(t){Object(i.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function V(e){var t=e.customClass,n=e.isActive,i=Object(S.b)(),s=Object($.b)().locale,r=Object(l.useState)(!0),o=Object(a.a)(r,2),c=o[0],d=o[1],m=Object(l.useMemo)(function(){return i("challenge_see_more")},[i]),h=Object(l.useState)([]),g=Object(a.a)(h,2),v=g[0],_=g[1],y=Object(l.useState)([]),w=Object(a.a)(y,2),C=w[0],O=w[1],k=Object(l.useState)([]),j=Object(a.a)(k,2),T=j[0],x=j[1],M=Object(l.useState)([]),E=Object(a.a)(M,2),U=E[0],V=E[1],H=Object(l.useState)([]),z=Object(a.a)(H,2),K=z[0],W=z[1],q=Object(l.useState)({}),G=Object(a.a)(q,2),Q=G[0],J=G[1],Y=Object(l.useState)([]),X=Object(a.a)(Y,2),Z=X[0],ee=X[1],te=function(e,t){var n={coverUrl:"model"===e?t.image:t.coverUrl,tips:i("web_community_addcollection"),optionMsg:i("web_community_bebord"),handleClk:function(){J(F(F({},t),{},{folderType:e}))}};ee(function(e){return[].concat(Object(P.a)(e),[n])})},ne=function(e){var t;return F(F({},e),{},{top4ModelUrlList:(null===(t=e.top4ModelUrlList)||void 0===t?void 0:t.map(function(e,t){return{url:e,altMdsKeyValue:"model ".concat(t+1)}}))||[]})},ie=function(){var e=Object(A.a)(regeneratorRuntime.mark(function e(t){var n,i,a,s,r;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=1,I.a.search.serachMaterialTplList({data:{pageNo:1,pageSize:8,materialType:t}});case 1:if(null==(i=e.sent)||null===(n=i.ret)||void 0===n||null===(n=n[0])||void 0===n||!n.includes("SUCCESS")){e.next=2;break}return s=(null===(a=i.data)||void 0===a||null===(a=a.data)||void 0===a?void 0:a.data)||[],r=s.map(function(e){return{templateId:e.templateId,name:e.name,coverUrl:e.coverUrl,sellType:e.sellType,memberCanUnlock:e.memberCanUnlock,originPrice:e.originPrice,sellingPrice:e.sellingPrice,bizTypeList:e.bizTypeList,authorInfo:e.authorInfo,scopeList:e.scopeList,collectCount:e.collectCount,originDesignId:e.originDesignId,initTitle:e.initTitle,bizType:e.bizType,isCollected:e.isCollected}}),e.abrupt("return",r);case 2:e.next=4;break;case 3:e.prev=3,e.catch(0);case 4:return e.abrupt("return",[]);case 5:case"end":return e.stop()}},e,null,[[0,3]])}
1));return function(t){return e.apply(this,arguments)}}(),ae=function(){var e=Object(A.a)(regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=1,ie(D.a.DESIGN_TEMPLATE);case 1:t=e.sent,x(t),e.next=3;break;case 2:e.prev=2,e.catch(0);case 3:case"end":return e.stop()}},e,null,[[0,2]])}));return function(){return e.apply(this,arguments)}}(),se=function(){var e=Object(A.a)(regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=1,ie(D.a.HOUSE_TEMPLATE);case 1:t=e.sent,V(t),e.next=3;break;case 2:e.prev=2,e.catch(0);case 3:case"end":return e.stop()}},e,null,[[0,2]])}));return function(){return e.apply(this,arguments)}}(),re=function(){var e=Object(A.a)(regeneratorRuntime.mark(function e(){var t,n,i,a,s,r,o,c,l;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n={poolType:"",poolTag:"",pageIndex:1,pageSize:20,filter:""},e.next=1,I.a.model.list({data:n});case 1:null!=(i=e.sent)&&null!==(t=i.ret)&&void 0!==t&&null!==(t=t[0])&&void 0!==t&&t.includes("SUCCESS")&&0===(null==(r=null===(a=i.data)||void 0===a?void 0:a.data)||null===(s=r.status)||void 0===s?void 0:s.code)&&(c=(null===(o=r.data)||void 0===o?void 0:o.list)||[],l=c.map(ne),_(l)),e.next=3;break;case 2:e.prev=2,e.catch(0);case 3:case"end":return e.stop()}},e,null,[[0,2]])}));return function(){return e.apply(this,arguments)}}(),oe=function(){var e=Object(A.a)(regeneratorRuntime.mark(function e(){var t,n,i,a,r;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=1,I.a.model.searchModelList({data:F(F({},R),{},{lang:s})});case 1:null!=(n=e.sent)&&null!==(t=n.ret)&&void 0!==t&&null!==(t=t[0])&&void 0!==t&&t.includes("SUCCESS")&&(a=(null==n||null===(i=n.data)||void 0===i?void 0:i.items)||[],r=a.map(function(e){return{id:e.id,aliModelId:e.aliModelId,name:e.name,description:e.description,image:e.image,saleInfo:e.saleInfo,productPriceInfo:e.productPriceInfo,collected:e.collected}}),O(r)),e.next=3;break;case 2:e.prev=2,e.catch(0);case 3:case"end":return e.stop()}},e,null,[[0,2]])}));return function(){return e.apply(this,arguments)}}(),ce=Object(l.useCallback)(function(){J({}),ee([])},[]);Object(l.useEffect)(function(){n&&Object(b.a)("discover_asset_gallery_expose")},[n]),Object(l.useEffect)(function(){Promise.allSettled([ae(),se(),re(),oe(),void I.a.collect.fetchModelFolderList({data:{type:2,pageNum:1,pageSize:1,whetherDefault:0,itemLimit:1}}).then(function(e){var t,n,i=null===(t=e.data)||void 0===t?void 0:t.items;null!=e&&null!==(n=e.ret)&&void 0!==n&&null!==(n=n[0])&&void 0!==n&&n.includes("SUCCESS")&&i&&W(i)})]).finally(function(){d(!1)})},[]);var le=null==K?void 0:K.find(function(e){return 0===e.whetherDefault});return u.a.createElement("div",{className:f()("discover-asset-gallery-wrap",t)},c?u.a.createElement(N.a,{visible:c,className:"discover-asset-gallery-loading"}):u.a.createElement(u.a.Fragment,null,u.a.createElement(L,{title:i("project_template_web"),linkText:m,type:D.a.DESIGN_TEMPLATE,list:T,key:1,cardHeight:280,spmName:"discover_asset_gallery"},function(e,t){return u.a.createElement(p.d,{key:e.templateId||t,cardData:e,spmName:"discover_asset_gallery",fovCallback:te})}),u.a.createElement(L,{title:i("room_template_web"),linkText:m,type:D.a.HOUSE_TEMPLATE,list:U,key:2,cardHeight:280,spmName:"discover_asset_gallery"},function(e,t){return u.a.createElement(p.d,{key:e.templateId||t,cardData:e,spmName:"discover_asset_gallery",fovCallback:te})}),u.a.createElement(L,{title:i("model_template_web"),cardHeight:220,linkText:m,type:D.a.MODEL_PACKAGE,list:v.slice(0,8),responsiveClass:"responsive-card-grid-big",key:3,spmName:"discover_asset_gallery"},function(e,t){return u.a.createElement(p.j,{key:e.mpId||t,modelData:e,titleFontSize:24,spmName:"discover_asset_gallery"})}),u.a.createElement(L,{cardHeight:220,type:D.a.MODEL_PACKAGE,list:v.slice(8,16),spmName:"discover_asset_gallery"},function(e,t){return u.a.createElement(p.j,{key:e.mpId||t,modelData:e,titleFontSize:16,spmName:"discover_asset_gallery"})}),u.a.createElement(L,{title:i("single_model_web"),linkText:m,type:D.a.MODEL,list:C,key:4,maxRows:2,spmName:"discover_asset_gallery"},function(e,t){return u.a.createElement(p.i,{key:e.id||t,cardData:e,fovFolderDefault:le,spmName:"discover_asset_gallery",fovCallback:te})}),u.a.createElement(B.a,{notifications:Z,hideFolderPanel:ce,target:Q})))}var H=n(27),z=n(50),K=n(3266),W=n(445),q=n(201),G=n(49),Q=(n(3994),["pageNo","pageSize"]);function J(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function Y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?J(Object(n),!0).forEach(function(t){Object(i.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var X=Object(z.b)(W.a),Z=Object(z.b)(K.a);function ee(e){function t(){return(t=Object(A.a)(regeneratorRuntime.mark(function e(t){var n,i,a,s,r;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.pageNo,i=t.pageSize,a=Object(H.a)(t,Q),s=Y(Y({},a),{},{clientInfo:JSON.stringify({platform:"web"}),pageNo:n,pageSize:i}),e.next=1,I.a.discover.followFeeds({data:s});case 1:return r=e.sent,e.abrupt("return",r);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}return Object(l.useEffect)(function(){},[]),u.a.createElement("div",{className:"discover-follow-wrap"},e.isActive&&u.a.createElement(X,{class:"discover-follow-scroll"},u.a.createElement(Z,{class:"discover-design-list",pageSource:"follow_feed"})),u.a.createElement(q.b,{scene:G.e.follow_recommend,isActive:e.isActive,searchInfo:e.searchInfo,fetchData:function(e){return t.apply(this,arguments)}}))}n(3995);var te=n(53),ne=["pageNo","pageSize"];function ie(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function ae(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ie(Object(n),!0).forEach(function(t){Object(i.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ie(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function se(e){var t=Object(l.useMemo)(function(){return+new Date},[]);function n(){return(n=Object(A.a)(regeneratorRuntime.mark(function e(n){var i,a,s,r,o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=n.pageNo,a=n.pageSize,s=Object(H.a)(n,ne),r=ae(ae({},s),{},{clientInfo:JSON.stringify(Object(te.getClientInfo)()),pageNo:i,pageSize:a,isNew:1,createEndTime:t}),e.next=1,I.a.discover.recommend({data:r});case 1:return o=e.sent,e.abrupt("return",o);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}return u.a.createElement("div",null,u.a.createElement(q.b,{scene:G.e.new_recommend,isActive:e.isActive,searchInfo:e.searchInfo,fetchData:function(e){return n.apply(this,arguments)}}))}n(3996),n(3997);var re=n(1572),oe=n(5),ce=(n(989),n(344),n(3998),["#D1E5FF","#FFDFD1","#FFF1B8","#D5F7D2"]);function le(e){var t=e.imageUrl,n=e.labelName,i=e.selected,s=e.onClick,r=Object(l.useState)(!1),o=Object(a.a)(r,2),c=o[0],d=o[1],p=Object(l.useMemo)(function(){return i||c?{backgroundColor:ce[Math.floor(Math.random()*ce.length)]}:{}},[i||c]);return u.a.createElement("div",{className:"filter-button",onClick:s,onMouseEnter:function(){return d(!0)},onMouseLeave:function(){return d(!1)},style:p},t&&u.a.createElement("img",{src:t,className:"filter-button-icon",loading:"lazy",width:"36",height:"36"}),u.a.createElement("span",{className:"filter-button-text"},n))}n(3999);var ue=Object(z.b)(W.a,{react:{slotWrapAttrs:{style:{width:"100%",flex:"auto"}}}});function de(e){var t,n=e.items,i=e.onItemClick,a=e.value,s=e.loaded,r=Object(S.b)();return u.a.createElement("div",{className:f()("filter-hot-wrapper",e.className,{fixed:e.fixed})},u.a.createElement("div",{className:"filter-hot-title"},r("hot_recommendations")),s&&u.a.createElement(ue,{className:"filter-hot-list-scroll"},u.a.createElement("ul",{className:"filter-hot-list"},null==n?void 0:n.map(function(e,t){return u.a.createElement("li",{className:"hot-button-item",key:t},u.a.createElement(le,Object(oe.a)({className:"hot-button"},e,{selected:(null==a?void 0:a[e.bizType])===e.searchValue,onClick:function(){return null==i?void 0:i(e)}})))}))),!s&&u.a.createElement("ul",{className:"filter-hot-list"},null===(t=new Array(20).fill(1))||void 0===t?void 0:t.map(function(e,t){return u.a.createElement("li",{className:"hot-button-item",key:t},u.a.createElement("div",{className:"hot-button skeleton-button"}))})))}var pe=n(1610);function me(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function fe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?me(Object(n),!0).forEach(function(t){Object(i.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):me(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var he={select:{Component:n(1571).a},professional:{Component:pe.a,valueChangeHandle:function(e){return e?Math.floor(e/10):e},valueToComponentValue:function(e){return 10*e+9}}},ge=[{type:"select",id:"designStyler",icon:"style",spmName:"style_filter",defaultText:"contest.themestyle",selectType:"big"},{type:"select",id:"designRoomType",icon:"room",spmName:"area_filter",defaultText:"contest.themeroom",selectType:"big"},{type:"select",id:"toolBizType",icon:"tool",spmName:"tool_filter",defaultText:"contest.tool",selectType:"small"}];var ve=n(92);function be(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function _e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?be(Object(n),!0).forEach(function(t){Object(i.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):be(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ye(e){var t=e.onChange,n=e.defaultValue,i=Object(S.b)(),s=Object(l.useState)({}),r=Object(a.a)(s,2),o=r[0],c=r[1],d=u.a.useState([]),p=Object(a.a)(d,2),m=p[0],h=p[1],g=Object(l.useState)([]),v=Object(a.a)(g,2),b=v[0],_=v[1],y=Object(l.useState)(),w=Object(a.a)(y,2),C=w[0],O=w[1],k=Object(l.useState)(!1),I=Object(a.a)(k,2),j=I[0],T=I[1],x=u.a.useState({}),D=Object(a.a)(x,2),M=D[0],E=D[1],L=Object($.b)().locale;function N(){return(N=Object(A.a)(regeneratorRuntime.mark(function e(){var t,n,a,s,r;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n={data:{bizType:JSON.stringify(["designRoomType","designStyler","toolBizType"]),clientInfo:JSON.stringify({platform:"web",language:L||"en_US"})}},e.next=1,te.default.other.lableList(n);case 1:a=e.sent,s=(null==a||null===(t=a.data)||void 0===t?void 0:t.result)||[],r={},s.forEach(function(e){e.list=e.list.map(function(e){return _e(_e({},e),{},{id:"".concat(e.id)})}),e.list.unshift({id:"",labelName:i("m.all")}),r[e.bizType]=void 0}),h(s);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}var R=Object(l.useRef)(!1);Object(l.useEffect)(function(){var e=function(e){var t=e.defaultValue,n=e.filterTabList,i=e.$t,a=[{type:"professional",id:"professionLevel",sliderInfo:{min:10,max:69,defaultValue:he.professional.valueToComponentValue((null==t?void 0:t.professionLevel)||3)}}].concat(Object(P.a)(ge.map(function(e){var t=n.find(function(t){return t.bizType===e.id});return fe(fe({selectData:(null==t?void 0:t.list.map(function(e){return{labelName:e.labelName,id:e.id}}))||[]},e),{},{type:"select"})})),[{type:"select",id:"bizType",icon:"hs_zhanshi_projecttype",defaultText:"content_type",spmName:"bizType_filter",selectType:"small",selectData:[{id:"",labelName:i("m.all")},{id:"2,4",labelName:i("web_community_designs")},{id:"8",labelName:i("web_community_stories")}]}]),s={};return a.forEach(function(e){var n,i;t[e.id]&&(s[e.id]=null===(n=he[e.type])||void 0===n||null===(i=n.valueToComponentValue)||void 0===i?void 0:i.call(n,t[e.id]))}),{filterItems:a,defaultResult:s}}({defaultValue:n,filterTabList:m,$t:i}),t=e.filterItems,a=e.defaultResult;_(t),R.current||E(a),R.current=!0},[m,L]);var B=Object(l.useMemo)(function(){return b.map(function(e){return _e(_e({},e),{},{Component:he[e.type].Component})})},[b]);Object(l.useEffect)(function(){var e;!function(){N.apply(this,arguments)}(),(e={platform:"web",language:L||"en_US"},Object(te.handleMtopPromiseResult)(te.default.other.fetchHotLableList({data:{clientInfo:e}}))).then(function(e){var t=e.result;t.forEach(function(e){e.id="".concat(e.id),e.imageUrl=Object(ve.j)(e.imageUrl,100,{webp:!0})}),O(t),T(!0)}).catch(function(e){})},[i,L]);var U=Object(l.useState)(!1),F=Object(a.a)(U,2),V=F[0],H=F[1];function z(e,t,i){var a;i?(a={},n&&b.forEach(function(e){if(n[e.id]){var t,i,s=null===(t=he[e.type])||void 0===t||null===(i=t.valueToComponentValue)||void 0===i?void 0:i.call(t,n[e.id]);s&&(a[e.id]=s)}})):(a=_e({},M),C.filter(function(e){return!!e.mutex}
1).forEach(function(e){if(a[e.bizType]===e.searchValue){var t,i,s,r=null===(t=b.find(function(t){return t.id===e.bizType}))||void 0===t?void 0:t.type;a[e.bizType]=(null===(i=he[r])||void 0===i||null===(s=i.valueToComponentValue)||void 0===s?void 0:s.call(i,n[e.id]))||void 0}})),a[e]=t,E(a)}return Object(l.useEffect)(function(){var e,t;document.addEventListener("scroll",function(){var e,t,n,i,a={},s=(null===(e=document.querySelector(".filter-banner-tabs-wrap"))||void 0===e||null===(t=e.getBoundingClientRect)||void 0===t?void 0:t.call(e))||{},r=(null===(n=document.querySelector(".navbar"))||void 0===n||null===(i=n.getBoundingClientRect)||void 0===i?void 0:i.call(n))||{},o=(null==r?void 0:r.height)||0;a.top=o;var l=!1;document.documentElement.scrollTop>o&&(null==s?void 0:s.top)<=o+12&&(a.padding="12px 30px",a.backgroundColor="#ffffff",a.margin="0 -30px",l=!0),H(l),c(a)});var n=(null===(e=document.querySelector(".navbar"))||void 0===e||null===(t=e.getBoundingClientRect)||void 0===t?void 0:t.call(e))||{},i=(null==n?void 0:n.height)||0;c({top:i})},[]),Object(l.useEffect)(function(){var e,n,i,a,s,r,o=_e({},M);Object.keys(o).forEach(function(e){var t,n;if(["all","",null].includes(o[e]))o[e]=void 0;else{var i,a=null===(t=b.find(function(t){return t.id===e}))||void 0===t?void 0:t.type;if(null!==(n=he[a])&&void 0!==n&&n.valueChangeHandle)o[e]=null===(i=he[a])||void 0===i?void 0:i.valueChangeHandle(o[e])}});var c=(null===(e=document.querySelector(".filter-banner-tabs-wrap"))||void 0===e||null===(n=e.getBoundingClientRect)||void 0===n?void 0:n.call(e))||{},l=(null===(i=document.querySelector(".navbar"))||void 0===i||null===(a=i.getBoundingClientRect)||void 0===a?void 0:a.call(i))||{},u=null===(s=(r=document.querySelector(".discover-recommend-wrap")).getBoundingClientRect)||void 0===s?void 0:s.call(r),d=(null==l?void 0:l.height)||0;document.documentElement.scrollTop>d&&(null==c?void 0:c.top)<=d+12&&(document.documentElement.scrollTop=document.documentElement.scrollTop+((null==u?void 0:u.top)||d)),t(o)},[M]),u.a.createElement("div",{className:f()("filter-banner-tabs-wrap",{fixed:V}),style:o},u.a.createElement(re.a,{items:B,value:M,onItemChange:function(e,t){z(e.id,t)}}),u.a.createElement(de,{fixed:V,loaded:j,className:"filter-hot-wrapper",items:C,value:M,onItemClick:function(e){var t=(null==M?void 0:M[e.bizType])===e.searchValue;z(e.bizType,t?void 0:e.searchValue,e.mutex)}}))}var we=["pageNo","pageSize"];function Ce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function Oe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ce(Object(n),!0).forEach(function(t){Object(i.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ce(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ke(e){var t=Object(S.b)(),n=Object($.b)().locale,i=Object(l.useMemo)(function(){return{professionLevel:3}},[]),s=Object(l.useState)(i),r=Object(a.a)(s,2),o=r[0],c=r[1];function d(){return(d=Object(A.a)(regeneratorRuntime.mark(function e(t){var n,i,a,s,r;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.pageNo,i=t.pageSize,a=Object(H.a)(t,we),s=Oe(Oe({},a),{},{clientInfo:JSON.stringify(Object(te.getClientInfo)()),pageNo:n,pageSize:i}),e.next=1,I.a.discover.recommend({data:s});case 1:return r=e.sent,e.abrupt("return",r);case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}return Object(l.useEffect)(function(){},[t,n]),u.a.createElement("div",{className:"discover-recommend-wrap"},u.a.createElement(ye,{onChange:function(e){c(e)},defaultValue:i}),u.a.createElement(q.b,{scene:G.e.recommend,isActive:!0,atuoScroll:!0,searchInfo:o,clearWhenSearchInfoChange:!0,fetchData:function(e){return d.apply(this,arguments)}}))}n(606),n(62),n(4e3);function Ie(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}var Se=function(e){var t=e.width,n=void 0===t?260:t,a=e.onClick,s=e.className,r=void 0===s?"":s,o=e.style,c=e.item,d=c.title,p=c.imageUrls,m=c.url,f=c.backgroundImage,h=Object(l.useMemo)(function(){return n/260},[n,260]),g=Object(l.useMemo)(function(){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?Ie(Object(n),!0).forEach(function(t){Object(i.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ie(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({width:n,height:120*h,padding:"".concat(10*h,"px ").concat(10*h,"px ").concat(10*h,"px ").concat(16*h,"px"),borderRadius:"".concat(12*h,"px"),backgroundImage:f?"url(".concat(f,")"):void 0},o)},[h,o,f]),b=Object(l.useMemo)(function(){return{objectFit:c.imageType||"cover",backgroundColor:c.imageBackgroundColor||"transparent"}},[c]),_=Object(l.useMemo)(function(){return{fontSize:20*h,lineHeight:"".concat(26*h,"px"),maxHeight:"".concat(52*h,"px"),marginBottom:8*h,overflow:"hidden",fontWeight:"bold"}},[h]);return u.a.createElement("div",{className:"topic-tunnel ".concat(r),onClick:a,style:g},u.a.createElement("a",{className:"topic-tunnel-content",href:m,target:"_blank"},u.a.createElement("div",{className:"topic-tunnel-text"},u.a.createElement("h3",{className:"topic-tunnel-title",style:_},d),u.a.createElement(v.a,{type:"iconicon_start",className:"topic-tunnel-arrow"})),u.a.createElement("div",{className:"topic-tunnel-image",style:{height:100*h,width:70*h,marginLeft:30.8*h+4}},p.map(function(e,t){return u.a.createElement("img",{src:e,className:"topic-tunnel-image-item",style:b,key:t,width:70*h,height:100*h})}))))},je=(n(4001),function(e){var t=e.item,n=e.index,i=e.isActive,a=e.animationKey,s=e.onButtonClick,r=Object(l.useCallback)(function(){s(t),globalThis.globalSpmClick("home_carouse_slide.clk",{id:t.id})},[t,s]);return u.a.createElement("div",{className:"slide-item",style:{backgroundImage:"url(".concat(t.backgroundImage,")")},onClick:r},u.a.createElement("div",{className:"slide-overlay"}),u.a.createElement("div",{className:"slide-content"},u.a.createElement("h2",{key:"title-".concat(a,"-").concat(n),className:"slide-title ".concat(i?"animate":""),style:{color:t.titleColor||"#ffffff"}},t.title),u.a.createElement("button",{key:"button-".concat(a,"-").concat(n),className:"slide-button ".concat(i?"animate":""),onClick:r},t.buttonText,u.a.createElement("svg",{className:"button-arrow",viewBox:"0 0 24 24",fill:"currentColor"},u.a.createElement("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"})))))});n(4002);function Te(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function xe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Te(Object(n),!0).forEach(function(t){Object(i.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Te(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Ae=function(e){var t=e.items,n=e.autoPlay,i=void 0===n||n,s=e.autoPlayInterval,r=void 0===s?3e3:s,o=e.showIndicators,c=void 0===o||o,d=e.showArrows,p=void 0===d||d,m=e.className,f=void 0===m?"":m,h=e.height,g=void 0===h?"400px":h,v=e.onSlideChange,b=Object(l.useState)((null==t?void 0:t.length)>1?1:0),_=Object(a.a)(b,2),y=_[0],w=_[1],C=Object(l.useState)(0),O=Object(a.a)(C,2),k=O[0],I=O[1],S=Object(l.useState)(!1),j=Object(a.a)(S,2),T=j[0],x=j[1],A=Object(l.useState)(!1),D=Object(a.a)(A,2),M=D[0],E=D[1],L=Object(l.useRef)(null),$=Object(l.useRef)(null),N=Object(l.useRef)(0),R=Object(l.useRef)(0),B=u.a.useMemo(function(){if(!t||0===t.length)return[];if(1===t.length)return t;var e=t[t.length-1],n=t[0];return[xe(xe({},e),{},{id:"clone-last-".concat(e.id)})].concat(Object(P.a)(t),[xe(xe({},n),{},{id:"clone-first-".concat(n.id)})])},[t]),U=Object(l.useCallback)(function(e){return t.length<=1?0:0===e?t.length-1:e===t.length+1?0:e-1},[t.length]),F=Object(l.useCallback)(function(){L.current&&(clearTimeout(L.current),L.current=null)},[]),V=Object(l.useCallback)(function(){if(!(t.length<=1)){x(!0);var e=y+1;w(e),I(function(e){return e+1}),e===t.length+1?(setTimeout(function(){w(1),x(!1)},500),null==v||v(0)):(setTimeout(function(){x(!1)},500),null==v||v(U(e)))}},[y,t.length,v,U]),H=Object(l.useCallback)(function(){i&&!M&&t.length>1&&(F(),L.current=setTimeout(function(){V()},r))},[i,M,t.length,r,F,V]),z=Object(l.useCallback)(function(e){if(!(T||t.length<=1)){var n=e+1;n!==y&&(x(!0),w(n),I(function(e){return e+1}),null==v||v(e),setTimeout(function(){x(!1)},500))}},[y,T,v,t.length]),K=Object(l.useCallback)(function(){if(!(t.length<=1)){x(!0);var e=y-1;w(e),I(function(e){return e+1}),0===e?(setTimeout(function(){w(t.length),x(!1)},500),null==v||v(t.length-1)):(setTimeout(function(){x(!1)},500),null==v||v(U(e)))}},[y,t.length,v,U]),W=function(e){"yearReport"!==e.type?e.url&&window.open(e.url,"_blank"):window.$nuxt.$store.commit("yearReport/SHOW_YEAR_REPORT_DIALOG")};if(Object(l.useEffect)(function(){return i&&!M&&t.length>1?H():F(),function(){return F()}},[i,M,t.length,H,F]),Object(l.useEffect)(function(){I(1)},[]),!t||0===t.length)return null;var q=U(y);return u.a.createElement("div",{ref:$,className:"carousel-wrapper ".concat(f),style:{height:g},onMouseEnter:function(){E(!0),F()},onMouseLeave:function(){E(!1)},onTouchStart:function(e){N.current=e.touches[0].clientX},onTouchMove:function(e){R.current=e.touches[0].clientX},onTouchEnd:function(){if(N.current&&R.current){var e=N.current-R.current,t=e<-50;e>50?V():t&&K(),N.current=0,R.current=0}}},u.a.createElement("div",{className:"carousel-container"},u.a.createElement("div",{className:"carousel-slides",style:{transform:"translateX(-".concat(100*y,"%)"),transition:T?"transform 0.5s ease-in-out":"none"}},B.map(function(e,t){return u.a.createElement("div",{key:e.id,className:"carousel-slide"},u.a.createElement(je,{item:e,index:t,isActive:y===t,animationKey:k,onButtonClick:W}))})),p&&t.length>1&&u.a.createElement(u.a.Fragment,null,u.a.createElement("div",{className:"carousel-arrow carousel-arrow-prev",onClick:K}
1,u.a.createElement("svg",{viewBox:"6 6 12 12",fill:"currentColor"},u.a.createElement("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}))),u.a.createElement("div",{className:"carousel-arrow carousel-arrow-next",onClick:V},u.a.createElement("svg",{viewBox:"6 6 12 12",fill:"currentColor"},u.a.createElement("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"})))),c&&t.length>1&&u.a.createElement("div",{className:"carousel-pagination"},t.map(function(e,t){return u.a.createElement("div",{key:t,className:"carousel-dot ".concat(q===t?"active":""),onClick:function(){return z(t)}})}))))},Pe=(n(70),n(66),n(109)),De=n(51);function Me(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function Ee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Me(Object(n),!0).forEach(function(t){Object(i.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Me(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Le(){return $e.apply(this,arguments)}function $e(){return($e=Object(A.a)(regeneratorRuntime.mark(function e(){var t,n,i,a,s;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n={pageSize:3,pageNo:1,clientInfo:JSON.stringify(Object(te.getClientInfo)())},i=window.$nuxt.$store.state.locale||"en_US",e.next=1,Pe.a.gallery.contestList(Ee({},n),!1,{lang:i});case 1:return a=e.sent,s=(null==a||null===(t=a.data)||void 0===t?void 0:t.data)||[],e.abrupt("return",{title:window.$nuxt.context.app.i18n.t("contest_hub_web"),imageUrls:s.map(function(e){var t;return Object(De.d)(null==e||null===(t=e.images)||void 0===t?void 0:t[0],600)}).reverse(),url:"/challenge",backgroundImage:"https://img.alicdn.com/imgextra/i1/O1CN01F0CxWf1EpFVq3LFgn_!!6000000000400-2-tps-520-240.png"});case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Ne(){return Re.apply(this,arguments)}function Re(){return(Re=Object(A.a)(regeneratorRuntime.mark(function e(){var t,n,i,a;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,I.a.search.serachMaterialTplList({data:{pageNo:1,pageSize:8,materialType:1}});case 1:return n=e.sent,i=(null===(t=n.data)||void 0===t||null===(t=t.data)||void 0===t?void 0:t.data)||[],a=i.reduce(function(e,t){return e.concat(t.coverUrl)},[]),e.abrupt("return",{title:window.$nuxt.context.app.i18n.t("material_market_web"),imageUrls:a.slice(0,3).map(function(e){return Object(De.d)(e,600)}).reverse(),imageType:"cover",imageBackgroundColor:"#F6F6F6",url:"/asset-market",backgroundImage:"https://img.alicdn.com/imgextra/i4/O1CN01lkjZXb26uH6retwVc_!!6000000007721-2-tps-520-240.png"});case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Be(){return Ue.apply(this,arguments)}function Ue(){return(Ue=Object(A.a)(regeneratorRuntime.mark(function e(){var t,n,i,a,s,r;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n={pageNo:0,pageSize:3},i=window.$nuxt.$store.state.locale||"en_US",e.next=1,Pe.a.gallery.hashTagSearch(Ee({},n),!1,{lang:i});case 1:return a=e.sent,s=(null==a||null===(t=a.data)||void 0===t?void 0:t.data)||[],r=s.reduce(function(e,t){return e.concat(t.items||[])},[]).slice(0,3),e.abrupt("return",{title:window.$nuxt.context.app.i18n.t("topic_plaza_web"),imageUrls:r.map(function(e){var t=e.data||{},n=t.image,i=t.firstFrameImage,a=t.videoDuration,s=Object(ve.j)(i||n,600,{webp:!0});return Object(ve.i)(n)&&(s=Object(ve.k)(n,600,a)),s}).reverse(),url:"/topics",backgroundImage:"https://img.alicdn.com/imgextra/i3/O1CN01s5g2nS1OmdPQTGt8i_!!6000000001748-2-tps-520-240.png"});case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}var Fe=function(){var e=Object(A.a)(regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=[Le(),Ne(),Be()],e.abrupt("return",Promise.all(t));case 1:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),Ve=function(){var e=Object(A.a)(regeneratorRuntime.mark(function e(){var t,n,i,a,s,r,o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=window.$nuxt.$store.state.locale||"en_US",i=window.$nuxt.$store.state.sessionKey,a={lang:n,Authorization:i},s={scenes:["loginHomepageResource"],fromType:"website"},e.next=1,Pe.a.gscore.resourceMulti(s,!1,a);case 1:return r=e.sent,o=(null==r||null===(t=r.data)||void 0===t||null===(t=t[0])||void 0===t||null===(t=t.resourceLocations[0])||void 0===t?void 0:t.resourceContent)||{},e.abrupt("return",(o.list||[]).map(function(e){return Ee(Ee({},e),{},{title:e.titleMdsKeyValue,buttonText:e.buttonTextMdsKeyValue})}));case 2:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),He=(n(4003),n(1113)),ze=[{maxWidth:Number.MAX_SAFE_INTEGER,minWidth:1536,getStylerConfig:function(e){return{className:"banner-wrapper-row banner-wrapper-1536-max",topicTunnel:{itemWidth:260,gap:26},swiper:{className:"swiper-container-1536-max"}}}},{maxWidth:1536,minWidth:1280,getStylerConfig:function(e){return{className:"banner-wrapper-row banner-wrapper-1280-1536",topicTunnel:{itemWidth:260,gap:26},swiper:{className:"swiper-container-1280-1536"}}}},{maxWidth:1280,minWidth:880,getStylerConfig:function(e){return{className:"banner-wrapper-column banner-wrapper-880-1280",topicTunnel:{itemWidth:260,gap:26},swiper:{className:"swiper-container-880-1280"}}}},{maxWidth:880,minWidth:0,getStylerConfig:function(e){return{className:"banner-wrapper-column",topicTunnel:{itemWidth:(e-60-52)/3,gap:26},swiper:{className:"swiper-container-768-1280"}}}}];function Ke(e){var t,n=Object(He.a)(function(e){return e.locale}),i=Object(l.useState)(document.body.clientWidth),s=Object(a.a)(i,2),r=s[0],o=s[1],c=Object(l.useState)([]),d=Object(a.a)(c,2),p=d[0],m=d[1],f=Object(l.useState)([]),h=Object(a.a)(f,2),g=h[0],v=h[1];Object(l.useEffect)(function(){function e(){o(document.body.clientWidth)}return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}},[]),Object(l.useEffect)(function(){var e=function(){var e=Object(A.a)(regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=1,Fe();case 1:t=e.sent,m(t),e.next=3;break;case 2:e.prev=2,e.catch(0);case 3:case"end":return e.stop()}},e,null,[[0,2]])}));return function(){return e.apply(this,arguments)}}();e()},[n]),Object(l.useEffect)(function(){var e=function(){var e=Object(A.a)(regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=1,Ve();case 1:t=e.sent,v(t),e.next=3;break;case 2:e.prev=2,e.catch(0);case 3:case"end":return e.stop()}},e,null,[[0,2]])}));return function(){return e.apply(this,arguments)}}();e()},[n]);var b,_=(b=r,Object(l.useMemo)(function(){var e;return null===(e=ze.find(function(e){return e.maxWidth>=b&&e.minWidth<=b}))||void 0===e?void 0:e.getStylerConfig(b)},[b]));return u.a.createElement("div",{className:"banner-wrapper "+(null==_?void 0:_.className)},p.length>0&&u.a.createElement("div",{className:"topic-tunnel-wrapper"},p.map(function(e,t){return u.a.createElement(Se,{key:t,item:e,className:"topic-tunnel",width:null==_?void 0:_.topicTunnel.itemWidth,onClick:function(){Object(T.c)("/hs_global_web.home.home_resouce_".concat(t+1,"_clk"))}})})),g.length>0&&u.a.createElement("div",{className:"swiper-content-wrapper"},u.a.createElement("div",{className:"swiper-container"},u.a.createElement(Ae,{className:null==_||null===(t=_.swiper)||void 0===t?void 0:t.className,items:g,height:"100%",autoPlay:!0,autoPlayInterval:5e3,showIndicators:!0,showArrows:!0,onSlideChange:function(e){}}))))}n(4004);var We=Object(z.a)(function(e){var t,n=u.a.useState({}
1),i=Object(a.a)(n,2),o=i[0],m=(i[1],u.a.useState({designStylerList:[],designRoomTypeList:[],toolList:[],video:[]})),f=Object(a.a)(m,2),_=(f[0],f[1],e.showPostDialog),y=e.store,w=e.getLocalContent,C=e.showShareModel,O=e.showMarketDialog,k=e.getPostKeyWords,I=d.a.getLocalStorage("postConfig"),S=u.a.useState(I.tab||"recommend"),j=Object(a.a)(S,2),T=j[0],A=j[1],P=Object(l.useState)(!1),D=Object(a.a)(P,2),M=D[0],E=D[1];"new"===I.tab&&I.shareConfig&&(s.a.success(w("publish.success.share.title")),C(I));var L=Object(l.useMemo)(function(){return[{value:"recommend",key:"recommend",spmCode:"community_explore_tab_clk",label:w("web_community_explore"),children:u.a.createElement(ke,{searchInfo:o,isActive:"recommend"===T})},{value:"follow",key:"follow",spmCode:"community_follow_tab_clk",label:w("web_community_follow"),children:u.a.createElement(ee,{searchInfo:o,isActive:"follow"===T})},{value:"new",key:"new",spmCode:"community_new_tab_clk",label:w("web_community_new"),children:u.a.createElement(se,{searchInfo:o,isActive:"new"===T})},{value:"asset_gallery",key:"asset_gallery",spmCode:"community_asset_gallery_tab_clk",label:w("market_web"),children:u.a.createElement(V,{isActive:"asset_gallery"===T})}]},[w,o,T,y.locale]),$=(Object(l.useMemo)(function(){return{labelName:w("contestlist.filterall"),id:""}},[w,o,y.locale]),Object(l.useState)(!1)),N=Object(a.a)($,2),R=N[0],B=N[1],U=Object(l.useMemo)(function(){var e=(new Date).getFullYear(),t=c()("".concat(e,"-12-01 00:00:00")).valueOf(),n=c()("".concat(e+1,"-1-1 23:59:59")).valueOf(),i=+new Date;return i>=t&&i<=n},[]);return Object(l.useEffect)(function(){null==e||e.onMounted()},[y.locale]),u.a.createElement(g.a,{store:y,getLocalContent:w,modelHandle:{showShareModel:C,showMarketDialog:O,getPostKeyWords:k}},u.a.createElement("div",{className:"discover-home-wrap "+(e.className?" "+e.className:"")},u.a.createElement("div",{className:"discover-banner-wrap"},u.a.createElement(Ke,null)),u.a.createElement("div",{className:"discover-content-wrap"},U&&u.a.createElement("div",{className:"christmas-bg"}),u.a.createElement("div",{className:"discover-content-action"},u.a.createElement(h,{activeButton:T,buttons:L,onChange:function(e){Object(b.a)(e.spmCode),A(e.value)},type:"line"}),u.a.createElement("div",{className:"discover-content-right-action"},M?u.a.createElement(p.n,{class:"discover-search"}):u.a.createElement("div",{className:"discover-content-post-icon",onClick:function(){return E(!0)}},u.a.createElement(v.a,{type:"iconhs_xian_sousuo",fontSize:24})),u.a.createElement("div",{className:"discover-content-post-btn ai-button",onClick:function(){Object(b.a)("community_post_clk"),_()}},u.a.createElement("div",{className:"ai-icon-help"},u.a.createElement(v.a,{type:"iconicon-AI",fontSize:12,color:"#FFFFFF"}),w("hs_design_post_ai_assist_write")),w("web_community_post1")))),u.a.createElement(r.a,{className:"discover-content-tabs no-tab-focus",activeKey:T,items:L})),u.a.createElement(p.r,null),R&&u.a.createElement(x,{onShowModel:function(e){B(!!e)},memberType:y.memberType,stylerMember:y.stylerMember,memberId:null==y||null===(t=y.userInfo)||void 0===t?void 0:t.uid,lang:y.locale})))});t.a=We},3796:function(e,t,n){"use strict";n(23),n(19),n(15),n(31),n(32);var i=n(8),a=n(7),s=n(1),r=(n(38),n(62),n(73),n(25),n(30),n(22),n(1
154),n(200),n(21)),o=n(12),c=(n(14),n(170)),l=(n(44),n(69),n(280)),u=n(129);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach(function(t){Object(s.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var m={name:"MaterialSellCard",components:{IconfontView:u.default},mixins:[l.a],props:{cardData:{type:Object,required:!0,default:function(){return{templateId:"",name:"",coverUrl:"",bizTypeList:[],authorInfo:{id:"",homestylerId:"",firstName:"",lastName:"",avatar:""},scopeList:[],sellType:1,sellingPrice:0,memberCanUnlock:!1,collectCount:0,originDesignId:"",initTitle:"",bizType:"",isCollected:!1}}},spmName:{type:String,default:"design_card"},fovCallback:{type:Function,default:function(){}},canEdit:{type:Boolean,default:!1},materialTabType:{type:Number,default:1},actionConfig:{type:Array,default:function(){return[]}}},data:function(){return{isHovered:!1,isFavorited:this.cardData.isCollected||!1,collectCountCur:this.cardData.collectCount||0,showPopover:!1}},computed:{getUserName:function(){var e=this.cardData.authorInfo,t=e.firstName,n=e.lastName;return"".concat(t).concat(n).trim()||"匿名用户"},primaryActions:function(){return this.actionConfig.slice(0,2)},dropdownActions:function(){return this.actionConfig.length>2?this.actionConfig.slice(2):[]},showPriceTag:function(){var e=this.cardData,t=e.sellType,n=e.memberCanUnlock,i=e.sellingPrice;return 1===t&&!1===n&&i>0}},watch:{"cardData.isCollected":{handler:function(e){this.isFavorited=e||!1},immediate:!0}},methods:{handleMouseEnter:function(){this.isHovered=!0},handleMouseLeave:function(){this.isHovered=!1},handleFavorite:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark(function n(){var i,a,s;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return e.stopPropagation(),i=t.isFavorited?o.a.collect.removeCollectPost:o.a.collect.collectPost,a={bizType:t.cardData.bizType,sourceId:t.cardData.originDesignId},t.isFavorited=!t.isFavorited,t.collectCountCur=t.isFavorited?t.collectCountCur+1:t.collectCountCur-1,n.next=1,i({data:a});case 1:(s=n.sent)&&s.ret&&s.ret[0].includes("SUCCESS")?t.isFavorited&&t.fovCallback("post",p({},t.cardData)):(t.collectCountCur=t.isFavorited?t.collectCountCur-1:t.collectCountCur+1,t.isFavorited=!t.isFavorited);case 2:case"end":return n.stop()}},n)}))()},handleAction:function(e,t){switch(e.stopPropagation(),this.dropdownActions.includes(t)&&(this.showPopover=!1),t.id){case"offline":this.$emit("setOffline",this.cardData);break;case"view_details":this.viewDetails();break;case"online":this.$emit("setOnline",this.cardData);break;case"edit_info":this.editInfo();break;case"delete":this.$emit("deleteMaterial",this.cardData);break;case"check_error_info":this.checkErrorInfo()}},editMouseenter:function(){clearTimeout(this.timeoutId),this.showPopover=!0},editMouseleave:function(){var e=this;clearTimeout(this.timeoutId),this.timeoutId=setTimeout(function(){e.showPopover=!1},230)},viewDetails:function(){this.$emit("showDetailCard",this.cardData)},editInfo:function(){this.$emit("editInfo",this.cardData)},checkErrorInfo:function(){var e=this;globalSpmClick("".concat(this.spmName,".check_err_info"),{id:this.cardData.templateId,isSelf:this.canEdit}),this.$confirm(this.cardData.auditFailedMsg,this.$t("publish.ugc.reason"),{showCancelButton:!1,confirmButtonText:this.$t("Homepage_project_edit"),customClass:"publish-confirm-messagebox",distinguishCancelAndClose:!0,callback:function(t){"close"!==t&&(globalSpmClick("".concat(e.spmName,".confirm_btn_clk"),{id:e.cardData.templateId,isSelf:e.canEdit}),e.editInfo(e.cardData))}})}}},f=(n(4136),n(18)),h=Object(f.a)(m,function(){var e=this,t=e._self._c;return t("div",{class:["design-card",e.canEdit?"card-hover-enabled":""],on:{mouseenter:e.handleMouseEnter,mouseleave:e.handleMouseLeave,click:e.viewDetails}},[t("div",{staticClass:"card-image-wrapper"},[t("img",{staticClass:"card-image",class:{hover:e.isHovered},attrs:{src:"".concat(e.cardData.coverUrl,"?x-oss-process=image/resize,h_400,m_lfit"),alt:e.cardData.name,loading:"lazy"}})]),e._v(" "),e.canEdit&&e.actionConfig.length>0?[e.dropdownActions.length>0?t("div",{class:["material-edit-wrap",e.canEdit?"material-edit-wrap-hover":""],on:{mouseenter:e.editMouseenter,mouseleave:e.editMouseleave,click:function(e){e.stopPropagation()}}},[t("IconfontView",{attrs:{customStyle:{color:"#ffffff",fontSize:"20px"},showType:"hs_pricing_more"}}),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:e.showPopover,expression:"showPopover"}],staticClass:"material-edit-dropdown",on:{mouseenter:e.editMouseenter,mouseleave:e.editMouseleave}},[t("ul",e._l(e.dropdownActions,function(n){return n.disabled?e._e():t("li",{key:n.id,on:{click:function(t){return e.handleAction(t,n)}}},[e._v("\n            "+e._s(e.$t(n.labelKey))+"\n          ")])}
1),0)])],1):e._e(),e._v(" "),e.primaryActions.length>0?t("div",{staticClass:"material-operate"},[t("ul",e._l(e.primaryActions,function(n,i){return t("li",{key:n.id,class:["item","primary"===n.type?"go_primary":"go_secondary"],on:{click:function(t){return e.handleAction(t,n)}}},[e._v("\n          "+e._s(e.$t(n.labelKey))+"\n        ")])}),0)]):e._e()]:e._e(),e._v(" "),t("div",{staticClass:"card-overlay"},[e.showPriceTag&&!e.isHovered?t("div",{staticClass:"tag-item"},[t("IconfontView",{attrs:{customStyle:{color:"#fecc00",fontSize:"16px"},showType:"order_pay"}}),e._v(" "),t("span",[e._v("$"+e._s(e.cardData.sellingPrice))])],1):e._e(),e._v(" "),e.isHovered?t("div",{staticClass:"card-title",attrs:{title:e.cardData.name}},[e._v("\n      "+e._s(e.cardData.name)+"\n    ")]):e._e(),e._v(" "),t("div",{staticClass:"card-actions",on:{click:e.handleFavorite}},[t("IconfontView",{attrs:{customClass:"favorite-btn ".concat(e.isFavorited?"favorite-btn-y":""),showType:e.isFavorited?"hs_xian_shoucangchenggong":"hs_xian_shoucang"}}),e._v("\n      "+e._s(e.collectCountCur)+"\n    ")],1)])],2)},[],!1,null,"f69c80a6",null),g=h.exports;installComponents(h,{IconfontView:n(129).default});var v=n(363),b=n(3210),_=n(3264);function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach(function(t){Object(s.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var C=[{label:"publish.ugc.forsale",key:1,spmCode:"published_click",createTitle:"workspace.createnewmaterial",auditPublishResultType:1,actions:[{id:"offline",labelKey:"publish.ugc.takedown",type:"primary"},{id:"view_details",labelKey:"workspace.myDesigns.goDetail"}]},{label:"publish.ugc.delisted",key:2,spmCode:"pending_click",createTitle:"workspace.createnewmaterial",auditPublishResultType:2,actions:[{id:"online",labelKey:"publish.ugc.list",type:"primary"},{id:"view_details",labelKey:"workspace.myDesigns.goDetail"},{id:"edit_info",labelKey:"Homepage_project_edit"},{id:"delete",labelKey:"app.layout.delete.btn"}]},{label:"publish.ugc.underR",key:3,spmCode:"auditing_click",createTitle:"workspace.createnewmaterial",auditPublishResultType:3,actions:[{id:"delete",labelKey:"app.layout.delete.btn",type:"primary"},{id:"view_details",labelKey:"workspace.myDesigns.goDetail"}]},{label:"publish.ugc.expired",key:4,spmCode:"auditfailed_click",createTitle:"workspace.createnewmaterial",auditPublishResultType:4,actions:[{id:"edit_info",labelKey:"Homepage_project_edit",type:"primary"},{id:"view_details",labelKey:"workspace.myDesigns.goDetail"},{id:"check_error_info",labelKey:"publish.ugc.view"},{id:"delete",labelKey:"app.layout.delete.btn"}]}],O={name:"MaterialSellList",components:{MaterialSellCard:g,RectLoad:c.a,IconfontView:u.default,ShareModal:v.a,PublishModal:_.a},mixins:[b.a],props:{owner:{type:Object,default:function(){return{}}},initMaterialData:{type:Object,default:function(){return{hasMore:!0,materialList:[],pageNo:0}}},canEdit:{type:Boolean,default:!0},materialCount:{type:Array,default:function(){return[0,0,0,0]}},spmName:{type:String,default:"material_sell_list"},visible:{type:Boolean,default:!1},defMaterialTabType:{type:Number,default:1}},data:function(){return{materialTabs:C,materialTabType:this.defMaterialTabType,loading:!0,tabsMaterialData:[this.initMaterialData,{},{},{},{}],noDataImg:n(325),noDataDarkImg:n(455),intersectionObserver:null,count:this.materialCount,showDetail:!1,curVlId:"",showPublishModal:!1,editMode:!1}},computed:w(w({},Object(r.d)(["userInfo","locale","isDarkTheme"])),{},{materialData:function(){return this.tabsMaterialData[this.materialTabType]},materialList:function(){return this.materialData.materialList||[]},hasMore:function(){return this.materialData.hasMore||!1},ownerInfo:function(){return this.owner.uid?this.owner:this.userInfo},isSelf:function(){return!this.owner.uid},showCreateBox:function(){return this.canEdit&&1===this.materialTabType&&!this.loading},showNoData:function(){return!this.loading&&(0==this.materialList.length&&!this.showCreateBox)},currentTabActions:function(){var e=this,t=this.materialTabs.find(function(t){return t.key===e.materialTabType});return t?t.actions:[]},initFeedsList:function(){var e;return null===(e=this.materialList)||void 0===e?void 0:e.map(function(e){return{id:e.templateId,bizType:e.bizType,vlId:e.templateId}})},defaultDesignInfo:function(){return this.editMode?{caseId:this.curVlId}:null},publishMode:function(){return this.editMode?"edit":""}}),watch:{"ownerInfo.uid":{handler:function(){this.getMaterialList(this.materialData.pageNo+1),this.getMaterialCount()},immediate:!0},materialTabType:function(){this.getMaterialList(),this.getMaterialCount()},materialCount:function(e){this.count=e},hasMore:function(e){!e&&this.intersectionObserver?(this.intersectionObserver.disconnect(),this.intersectionObserver=null):this.setupIntersectionObserver()},visible:function(e){e&&globalSpmClick("".concat(this.spmName,".list_exp"),{tab_type:this.materialTabType,isSelf:this.isSelf})}},mounted:function(){this.setupIntersectionObserver(),this.getMaterialCount()},beforeDestroy:function(){this.intersectionObserver&&(this.intersectionObserver.disconnect(),this.intersectionObserver=null)},methods:{setupIntersectionObserver:function(){var e=this;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(t){t.forEach(function(t){t.isIntersecting&&e.hasMore&&!e.loading&&e.loadMore()})},{root:null,rootMargin:"100px",threshold:.1}
1),this.$nextTick(function(){var t=e.$refs.loadMoreTrigger;t&&e.intersectionObserver.observe(t)}))},loadMore:function(){!this.loading&&this.hasMore&&this.getMaterialList(this.materialData.pageNo+1)},getMaterialList:function(){var e=arguments,t=this;return Object(a.a)(regeneratorRuntime.mark(function n(){var i,a,s,r,o,c;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(i=e.length>0&&void 0!==e[0]?e[0]:1,t.ownerInfo.uid){n.next=1;break}return n.abrupt("return");case 1:return n.prev=1,t.loading=!0,a=Number(i)||1,s=t.materialTabType,r=1===a?[]:t.materialList,1===a&&t.$set(t.tabsMaterialData,s,Object.assign({},{materialList:[],pageNo:a,hasMore:!0})),o=24*(a-1),n.next=2,t.getMaterialUgcList(o,24);case 2:c=n.sent,t.$set(t.tabsMaterialData,s,Object.assign({},{materialList:r.concat(c.materials),pageNo:a,hasMore:c.hasMore})),c.hasMore||t.$emit("getDataFinished"),n.next=4;break;case 3:n.prev=3,n.catch(1);case 4:t.loading=!1;case 5:case"end":return n.stop()}},n,null,[[1,3]])}))()},getMaterialCount:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark(function t(){var n,i,a,s,r,c,l,u,d,p,m,f;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e.ownerInfo.uid){t.next=1;break}return t.abrupt("return");case 1:return t.prev=1,i={clientInfo:JSON.stringify({platform:"web"})},t.next=2,o.a.materialSell.getMaterialTplUgcCount({data:i});case 2:null!=(a=t.sent)&&null!==(n=a.ret)&&void 0!==n&&null!==(n=n[0])&&void 0!==n&&n.includes("SUCCESS")&&(s=a.data.data,r=s.publishedCnt,c=void 0===r?0:r,l=s.unPublishedCnt,u=void 0===l?0:l,d=s.auditDoingCnt,p=void 0===d?0:d,m=s.auditFailedCnt,f=void 0===m?0:m,e.count=[c,u,p,f]),t.next=4;break;case 3:t.prev=3,t.catch(1);case 4:case"end":return t.stop()}},t,null,[[1,3]])}))()},getMaterialUgcList:function(){var e=arguments,t=this;return Object(a.a)(regeneratorRuntime.mark(function n(){var i,a,s,r,c,l,u,d,p,m,f,h;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(i=e.length>0&&void 0!==e[0]?e[0]:0,a=e.length>1&&void 0!==e[1]?e[1]:10,t.ownerInfo.uid){n.next=1;break}return n.abrupt("return",{materials:[],hasMore:!1});case 1:return n.prev=1,s=Number(i)||0,r=Number(a)||24,c=t.materialTabs.find(function(e){return e.key===t.materialTabType}),l=c?c.auditPublishResultType:1,u={clientInfo:JSON.stringify({platform:"web"}),offset:s,limit:r,queryUid:t.ownerInfo.uid,auditPublishResultType:l},n.next=2,o.a.materialSell.serachMaterialTplUgcList({data:u});case 2:if(!((d=n.sent)&&d.ret&&d.ret[0].includes("SUCCESS"))){n.next=3;break}return p=d.data.data,m=p.data||[],f=p.pageData||{},h=f.hasMore,n.abrupt("return",{materials:m,hasMore:h});case 3:return n.abrupt("return",{materials:[],hasMore:!1});case 4:return n.prev=4,n.catch(1),n.abrupt("return",{materials:[],hasMore:!1});case 5:case"end":return n.stop()}},n,null,[[1,4]])}))()},createNewMaterialHandler:function(){globalSpmClick("".concat(this.spmName,".new_material_create"),{tab_type:this.materialTabType}),this.showPublishModal=!0},changeMaterialTab:function(e){var t=e.key;e.spmCode;this.materialTabType=t,globalSpmClick("".concat(this.spmName,".tab_type_change"),{tab_type:this.materialTabType})},handleFavoriteCallback:function(e,t){},goToPostPage:function(){this.showPublishModal=!0,globalSpmClick("".concat(this.spmName,".go_to_post"),{tab_type:this.materialTabType})},goToLearnMore:function(e){window.open("https://www.homestyler.com/ai-interior-design-detail/turn-your-designs-into-assets-the-whole-community-can-use-story-d6cfc8ba-22a0-461c-a98f-023cb4fc7ee9","_blank"),globalSpmClick("".concat(this.spmName,".go_to_more"),{tab_type:this.materialTabType,isSelf:this.isSelf,index:e})},closeDetailMask:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.showDetail=!e},showDetailCard:function(e){this.curVlId=e.templateId,this.closeDetailMask(!1),globalSpmClick("".concat(this.spmName,".show_card_detail"),{tab_type:this.materialTabType,isSelf:this.isSelf})},removeMaterialFromList:function(e){var t=Object(i.a)(this.materialList),n=t.findIndex(function(t){return t.templateId===e});return n>-1&&(t.splice(n,1),this.$set(this.tabsMaterialData,this.materialTabType,Object.assign({},this.materialData,{materialList:t})),this.getMaterialCount(),!0)},handleSetOnline:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark(function n(){var i,a;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return globalSpmClick("".concat(t.spmName,".set_online"),{tab_type:t.materialTabType,isSelf:t.isSelf}),n.prev=1,n.next=2,t.$confirm(t.$t("publish.ugc.again"),t.$t("publish.ugc.relist"),{confirmButtonText:t.$t("coincenter.confirm"),cancelButtonText:t.$t("AIGC.dashboard.album.delete.btn1"),customClass:"publish-confirm-messagebox"});case 2:return globalSpmClick("".concat(t.spmName,".set_online_confirm"),{tab_type:t.materialTabType,isSelf:t.isSelf}),i={clientInfo:JSON.stringify({platform:"web"}),id:e.templateId},n.next=3,o.a.materialSell.publishMaterial({data:i});case 3:(a=n.sent)&&a.ret&&a.ret[0].includes("SUCCESS")&&(t.$message({message:t.$t("publish.ugc.listsuccess"),type:"success"}),t.removeMaterialFromList(e.templateId)),n.next=5;break;case 4:n.prev=4,n.catch(1);case 5:case"end":return n.stop()}},n,null,[[1,4]])}))()},handleSetOffline:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark(function n(){var i,a;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return globalSpmClick("".concat(t.spmName,".set_offline"),{tab_type:t.materialTabType,isSelf:t.isSelf}),n.prev=1,n.next=2,t.$confirm(t.$t("publish.ugc.not"),t.$t("publish.ugc.sure"),{confirmButtonText:t.$t("coincenter.confirm"),cancelButtonText:t.$t("AIGC.dashboard.album.delete.btn1"),customClass:"publish-confirm-messagebox"});case 2:return globalSpmClick("".concat(t.spmName,".set_offline_confirm"),{tab_type:t.materialTabType,isSelf:t.isSelf}),i={clientInfo:JSON.stringify({platform:"web"}),id:e.templateId},n.next=3,o.a.materialSell.unpublishMaterial({data:i});case 3:(a=n.sent)&&a.ret&&a.ret[0].includes("SUCCESS")&&(t.$message({message:t.$t("publish.ugc.takedownsuccessful"),type:"success"}),t.removeMaterialFromList(e.templateId)),n.next=5;break;case 4:n.prev=4,n.catch(1);case 5:case"end":return n.stop()}},n,null,[[1,4]])}))()},handleDeleteMaterial:function(e){var t=this;return Object(a.a)(regeneratorRuntime.mark(function n(){var i,a;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return globalSpmClick("".concat(t.spmName,".del_material"),{tab_type:t.materialTabType,isSelf:t.isSelf}),n.prev=1,n.next=2,t.$confirm(t.$t("publish.ugc.delete"),t.$t("publish.ugc.todelete"),{confirmButtonText:t.$t("coincenter.confirm"),cancelButtonText:t.$t("AIGC.dashboard.album.delete.btn1"),customClass:"publish-confirm-messagebox delete"});case 2:return i={clientInfo:JSON.stringify({platform:"web"}),id:e.templateId},n.next=3,o.a.materialSell.deleteMaterial({data:i});case 3:(a=n.sent)&&a.ret&&a.ret[0].includes("SUCCESS")&&(t.$message({message:t.$t("app.layout.delete.success"),type:"success"}),t.removeMaterialFromList(e.templateId)),n.next=5;break;case 4:n.prev=4,n.catch(1);case 5:case"end":return n.stop()}},n,null,[[1,4]])}))()},handleEditInfo:function(e){globalSpmClick("".concat(this.spmName,".edit_material"),{tab_type:this.materialTabType,isSelf:this.isSelf}),this.curVlId=e.templateId,this.editMode=!0,this.showPublishModal=!0},submitDesign:function(e){var t=this;this.handlePublishModalClose();var n=this.materialTabs.find(function(e){return e.key===t.materialTabType}),i=n?n.auditPublishResultType:1;this.editMode&&e.auditPublishResultType!==i&&(this.removeMaterialFromList(this.curVlId),this.curVlId="");var a=this.materialTabs.find(function(t){return t.auditPublishResultType===e.auditPublishResultType})||this.materialTabs[2];this.materialTabType=a.key},handlePublishModalClose:function(){this.showPublishModal=!1,this.editMode=!1}}},k=O,I=(n(4137),n(4138),n(4139),Object(f.a)(k,function(){var e=this,t=e._self._c;return t("div",{staticClass:"material_list_container",class:{"dark-theme":e.isDarkTheme}},[e.canEdit?t("div",{staticClass:"material_list_title"},e._l(e.materialTabs,function(n){return t("span",{key:n.key,staticClass:"material_tab_item",class:{tab_active:n.key===e.materialTabType},on:{click:function(t){return e.changeMaterialTab(n)}}},[e._v("\n      "+e._s(e.$t(n.label))+"\n      "),e.count[n.key-1]>0?t("span",{staticClass:"number"}
1,[e._v(e._s(e.count[n.key-1]))]):e._e()])}),0):e._e(),e._v(" "),t("div",{staticClass:"material_list_box"},[t("div",{ref:"materialWrapper",staticClass:"material_wrapper"},[e.showCreateBox?t("div",{staticClass:"create_material_box material_card",class:{"dark-theme":e.isDarkTheme},on:{click:e.createNewMaterialHandler}},[t("a",{staticClass:"create_material"},[t("IconfontView",{attrs:{customStyle:{fontSize:"26px",color:"#ffffff",width:"26px"},showType:"hs_xian_tianjia"}})],1),e._v(" "),t("span",[e._v(e._s(e.$t("publish.ugc.asset")))]),e._v(" "),t("div",{staticClass:"learn_more_link",on:{click:function(t){return e.goToLearnMore(0)}}},[e._v(e._s(e.$t("publish.ugc.more")))])]):e._e(),e._v(" "),e.materialList.length>0?e._l(e.materialList,function(n,i){return t("div",{key:"card".concat(i,"-").concat(n.templateId),staticClass:"material_card"},[t("MaterialSellCard",{attrs:{cardData:n,spmName:e.spmName,fovCallback:e.handleFavoriteCallback,canEdit:e.canEdit,materialTabType:e.materialTabType,actionConfig:e.currentTabActions},on:{showDetailCard:e.showDetailCard,setOnline:e.handleSetOnline,setOffline:e.handleSetOffline,deleteMaterial:e.handleDeleteMaterial,editInfo:e.handleEditInfo}})],1)}):e._e()],2),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:e.showNoData,expression:"showNoData"}],staticClass:"no_data_warp"},[e.isDarkTheme?t("img",{staticClass:"no_data_img",attrs:{src:e.noDataDarkImg}}):t("img",{staticClass:"no_data_img",attrs:{src:e.noDataImg}}),e._v(" "),t("div",{staticClass:"no_data_text_container"},[t("span",[e._v(e._s(e.$t("publish.ugc.porfree")))]),e._v(" "),t("span",{staticClass:"learn_more_text",on:{click:function(t){return e.goToLearnMore(1)}}},[e._v(e._s(e.$t("publish.ugc.more")))])]),e._v(" "),e.canEdit?t("div",{staticClass:"go-to-publish",on:{click:e.goToPostPage}},[e._v("\n        "+e._s(e.$t("gotopost_globalchart"))+"\n      ")]):e._e()]),e._v(" "),e.loading||e.hasMore&&e.materialList.length>0?t("div",{key:e.materialTabType,ref:"loadMoreTrigger",staticClass:"loading_container"},[t("RectLoad")],1):e._e()]),e._v(" "),t("ShareModal",{attrs:{show:e.shareModal.show,caseId:e.shareModal.config.caseId,shareCfg:e.shareModal.config},on:{"update:show":function(t){return e.$set(e.shareModal,"show",t)}}}),e._v(" "),e.showDetail?t("PostDetailMaskWrapVue",{attrs:{store:e.store,initFeedsList:e.initFeedsList,curVlId:e.curVlId,getLocalContent:e.getLocalContent,onLoadMore:e.loadMore,onClose:e.closeDetailMask,showShareModel:e.showShareModel,customClass:"material_list_mask",spmName:"material_detail"}}):e._e(),e._v(" "),e.showPublishModal?t("PublishModal",{attrs:{mode:e.publishMode,needBizTabs:!1,defaultContributeCurrentBizTab:"asset",defaultDesignInfo:e.defaultDesignInfo},on:{onClose:e.handlePublishModalClose,submitDesign:e.submitDesign}}):e._e()],1)},[],!1,null,"1cf8a94c",null));t.a=I.exports;installComponents(I,{IconfontView:n(129).default})},3797:function(e,t,n){"use strict";n(23),n(19),n(15),n(31),n(32);var i=n(1),a=(n(62),n(73),n(21)),s=(n(44),n(7)),r=(n(38),n(22),n(111),n(65),n(30),n(239),n(161),n(28)),o=n.n(r),c=n(1002),l=n(304),u=n(448),d=n(1003),p=n.n(d),m=n(57),f=n(12),h=n(14),g=n(164),v=n(280),b=n(369),_=n(24),y=n(367),w=n(453),C=n(328),O=n(363),k=n(51),I=n(150),S=n(446),j=n(188),T=n(141),x=n(444),A=n(159),P=n(49),D=n(597);function M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function E(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?M(Object(n),!0).forEach(function(t){Object(i.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var L={components:{recommendUserCard:w.a,shareModal:O.a,gradeTips:y.a,ShowHeaderMemberIcon:C.a},mixins:[T.a,j.a,S.a,I.a,x.a,v.a],props:{data:{type:Object,default:function(){return{}}},currentTab:{type:Number,default:2},spmName:{type:String,default:"gallery"},hideComment:{type:Boolean,default:!1},showIP:{type:Boolean,default:!1},showVote:{type:Boolean,default:!1},canGetVote:{type:Boolean,default:!1},showVoteTips:{type:Boolean,default:!1},shareScene:{type:String,default:"share_design_detail"}},data:function(){return{showMoreBtnList:!1,userData:{},shareModal:{show:!1,config:{}},tipsShow:!1,videoTime:0,userCardShow:!1,position:{top:"",left:"",right:"",bottom:""},likesArr:[],imgRgb:"",featureTipsShow:!1,caseItem:{},likeDataImg:{likeConfirm:n(532),uncheckImg:n(406)},videoAnchorUrl:void 0,curShowVoteTips:!1,hasVoted:!1,voteRank:0,voteCount:0,voteMsgShow:!1,voteStatus:!0,msgID:null,btnTextList:A.e}},computed:E(E({},Object(a.d)(["locale","userInfo","signIn","isMobile","hasFeaturedPerm","voteShowGetGiftTips"])),{},{voteConutText:function(){var e,t,n=null===(e=this.data.contests)||void 0===e||null===(e=e[0])||void 0===e?void 0:e.status,i=null===(t=this.data.contests)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.voteRank,a=this.voteCount;return[4,5].includes(n)&&i?"".concat(this.$t("award_rank"),":#").concat(i," · ").concat(this.$t("99.votes.web",{num:a||0})):a?"".concat(this.$t("99.votes.web",{num:a})):void 0},isPrivate:function(){return 0===this.data.privateStatus},caseItemInfo:function(){return{caseId:this.data.caseId,isMyLike:this.data.isLike,likesCount:this.data.likesCount,commentsCount:this.data.commentsCount,privateStatus:this.isPrivate?0:1,caseFrom:this.data.caseFrom}},likeDataInfo:function(){return{bizType:"global",sourceType:this.getCurrentSource,platformSystem:"web",likeTargetType:2!==this.caseItem.caseFrom?102:101,likeTargetId:this.caseItem.caseId}},getLikeTargetList:function(){return[{likeTargetType:2!==this.caseItem.caseFrom?102:101,likeTargetId:this.caseItem.caseId}]},isVideo:function(){return Object(g.c)(this.data.coverUrl)},videoCover:function(){return Object(g.d)(this.data.coverUrl,600,this.data.videoDuration)},awardGradeName:function(){var e=this.data.contests&&this.data.contests[0]||{},t=e.awardType,n=e.rank,i=m.h.awardType[t]||"";return 2===t&&(i=i[n]),i},isAwarded:function(){var e;return null===(e=this.data)||void 0===e||null===(e=e.contests)||void 0===e||null===(e=e[0])||void 0===e?void 0:e.isAwarded},shareTaskValue:function(){return this.data.caseId},userAvatar:function(){var e,t=this.data.authorAvatar;return null!==(e=t)&&void 0!==e&&e.startsWith("http://")&&(t=t.replace("http://","https://")),t?Object(k.d)(t,60):this.defaultAvatar},isHomestyler:function(){return"homestyler"===this.$global.tenant},voteType:function(){return this.canGetVote||this.isSelf&&this.hasVoted?2:this.hasVoted?1:0},btnTxt:function(){return this.$t(this.btnTextList[this.voteType].btnKey)},showVoteButton:function(){var e,t=null===(e=this.data.contests)||void 0===e||null===(e=e[0])||void 0===e?void 0:e.status;return![A.b.WaitingAwards,A.b.Awarded].includes(t)&&(this.showVote&&(2===this.voteType||!this.hasVoted))},classByVoteType:function(){return"".concat(this.btnTextList[this.voteType].className," vote-button ").concat(this.showVoteButton?"":"hidden")},showContest:function(){return"challenge_detail"!==this.spmName&&this.data.contests},needLogin:function(){return this.signIn&&"challenge_detail"===this.spmName},detailUrl:function(){return this.videoAnchorUrl},iconWrapClass:function(){return"icon-wrap ".concat(this.showVoteButton?"hidden":"")},isSelectedDesigner:function(){var e=this.data.userTags&&this.data.userTags.includes("SELECTED_DESIGNER"),t=!0===this.data.selectedDesigner;return e||t},shouldShowUserCard:function(){return this.userCardShow&&!this.isSelectedDesigner},isSelf:function(){return this.userInfo.uid===this.data.authorId}}),watch:{"data.coverUrl":function(e){e&&(this.getImgRgb(),this.shareModalInit())},userCardShow:function(e){if(e){var t=this.$refs.caseCard,n=this.$refs.popover,i=n.offsetWidth||n.clientWidth||432,a=window.innerWidth-t.offsetLeft-t.offsetWidth;
1t.offsetLeft<i/2?(this.position.left="0px",this.position.right="inherit"):a<i/2?(this.position.right="ar_SA"===this.locale?"0px":"-".concat(i/3,"px"),this.position.left="inherit"):(this.position.left="-".concat(i/3,"px"),this.position.right="inherit")}},data:function(e){var t,n,i;this.hasVoted=!(null==e||null===(t=e.contests)||void 0===t||null===(t=t[0])||void 0===t||!t.hasVoted),this.voteRank=null===(n=this.data.contests)||void 0===n||null===(n=n[0])||void 0===n?void 0:n.voteRank;var a=null===(i=this.data.contests)||void 0===i||null===(i=i[0])||void 0===i?void 0:i.voteCount;this.voteCount=a}},mounted:function(){var e,t,n,i=this;this.hasVoted=!(null===(e=this.data)||void 0===e||null===(e=e.contests)||void 0===e||null===(e=e[0])||void 0===e||!e.hasVoted),this.voteRank=null===(t=this.data.contests)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.voteRank;var a=null===(n=this.data.contests)||void 0===n||null===(n=n[0])||void 0===n?void 0:n.voteCount;this.voteCount=a,this.videoAnchorUrl=this.getVideoAnchorUrl(),this.getImgRgb(),this.shareModalInit();var s=this.$refs.video;s&&setTimeout(function(){i.videoTime=s.duration},2e3);var r=!!_.a.getItemForSameDay("voteClicked");this.curShowVoteTips=this.showVoteTips&&!r},created:function(){var e;this.caseItemChange(),this.hasVoted=!(null===(e=this.data)||void 0===e||null===(e=e.contests)||void 0===e||null===(e=e[0])||void 0===e||!e.hasVoted)},methods:E(E({},Object(a.b)(["getUserInfo"])),{},{getVideoAnchorUrl:function(){var e=this.data,t=e.caseId,n=e.caseFrom,i=e.initTitle,a=e.name,s=void 0===a?"":a,r=this.getKeyWords(i,s),o=1===n?"web":"mobile",c=this.showVote?new URLSearchParams(location.search):"";return"/ai-interior-design-detail/".concat(r,"-").concat(o,"-").concat(t).concat(c?"?".concat(c):"")},handleLikeChange:function(e){this.checkIsLogin()&&("fail"!==e?(this.caseItem.likesCount<e.likesCount&&this.likeTaskStatusUpdate(),this.caseItem=E(E({},this.caseItem),e),e.isMyLike?this.likesArr.splice(this.likesArr.indexOf(e.caseId),1):this.likesArr.push(e.caseId),Object(h.c)("/hs_global_web.".concat(this.spmName,".design_like"),"member_id=".concat(this.userInfo.uid,"&language=").concat(this.locale,"&case_id=").concat(e.caseId,"&isLike=").concat(e.isMyLike))):this.$message.error(this.$t("coupon.wrong")))},isInNativeApp:function(){var e;return"ezhome"===o.a.tenant&&"undefined"!=typeof window&&(null===(e=window)||void 0===e||null===(e=e.WindVane)||void 0===e?void 0:e.isAvailable)},doNativeShare:function(){var e=this.shareModal.config;Object(u.a)({event:"sharePage",params:{url:e.url,title:e.title,description:e.description||"",image:e.image||"https://www.homestyler.com/image/homestyler-social.png"}})},shareClick:function(){Object(h.c)("/hs_global_web.".concat(this.spmName,".floating_share_click"),"member_id=".concat(this.userInfo.uid,"&language=").concat(this.locale,"&case_id=").concat(this.data.caseId)),this.isInNativeApp()?this.doNativeShare():this.shareModal.show=!0},shareVoteClk:function(){var e=this;return Object(s.a)(regeneratorRuntime.mark(function t(){var n,i,a;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.videoAnchorUrl,i=e.data.contests[0]||{},t.next=1,Object(c.a)({isNotAida:!i.needSignUp,url:"".concat(e.$global.homestyler).concat(n),userInfo:e.userInfo,$t:e.$t.bind(e),design:{bizId:e.data.caseId,bizType:P.b[e.data.caseFrom]},mgmScene:e.shareScene,contestId:i.id});case 1:if(a=t.sent,e.shareModal.config.copyText=(null==a?void 0:a.copyText)||e.shareModal.config.copyText,e.shareModal.config.url=(null==a?void 0:a.url)||e.shareModal.config.url,!e.isInNativeApp()){t.next=2;break}return e.doNativeShare(),t.abrupt("return");case 2:e.shareModal.show=!0;case 3:case"end":return t.stop()}},t)}))()},caseItemChange:function(){this.caseItem={caseId:this.data.caseId,isMyLike:this.data.isLike,likesCount:this.data.likesCount,commentsCount:this.data.commentsCount,privateStatus:this.isPrivate?0:1,caseFrom:this.data.caseFrom}},shareModalInit:function(){var e=this;return Object(s.a)(regeneratorRuntime.mark(function t(){var n,i,a,s,r,o;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.data,i=e.videoAnchorUrl,a=e.locale,s="".concat(e.$global.homestyler).concat(i),!e.shareScene||e.signIn){t.next=2;break}
1return t.next=1,Object(l.b)({url:s,invitationUser:null===(r=e.userInfo)||void 0===r?void 0:r.uid,mgmScene:e.shareScene});case 1:s=t.sent;case 2:o={title:n.name,description:n.description,image:n.coverUrl,url:s,text:'See this @homestyler project:"'.concat(n.name,'"'),attr:{bizId:n.caseId,type:1===n.caseFrom?2:4,language:a||"en_US"}},e.shareModal.config=o;case 3:case"end":return t.stop()}},t)}))()},getImgRgb:function(){var e=this;return Object(s.a)(regeneratorRuntime.mark(function t(){var n,i,a;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!e.data.coverUrl){t.next=2;break}return n=e.data.coverUrl,i=e.isVideo?Object(g.d)(n,10,e.data.videoDuration):"".concat(n,"?x-oss-process=image/resize,w_10,m_mfit/format,webp"),t.next=1,p()(i);case 1:a=t.sent,e.imgRgb=a[0].color;case 2:t.next=4;break;case 3:t.prev=3,t.catch(0);case 4:case"end":return t.stop()}},t,null,[[0,3]])}))()},userJump:function(){this.data.homestylerId&&(Object(h.c)("/hs_global_web.".concat(this.spmName,".userProfile_click"),"user_id=".concat(this.data.authorId,"&member_id=").concat(this.userInfo.uid,"&language=").concat(this.locale)),location.href=this.data.homestylerId&&"/user/".concat(this.data.homestylerId))},newGalleryLink:function(){if(!this.isMobile){var e=this.data.contests[0]||{};Object(h.c)("/hs_global_web.".concat(this.spmName,".award_contest_click"),"contest_id=".concat(e.id,"&member_id=").concat(this.userInfo.uid,"&language=").concat(this.locale));var t=Object(_.b)(e);window.open(t,"_blank")}},caseJump:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.data.caseId;t&&Object(h.c)("/hs_global_web.".concat(this.spmName,".projectDetail_click"),"".concat(e?"form=comments&":"","case_id=").concat(t,"&member_id=").concat(this.userInfo.uid,"&language=").concat(this.locale)),this.checkIsLogin()},handleCaseJump:function(e){this.needLogin&&e.preventDefault(),this.caseJump()},handleMouseEnter:function(){this.isSelectedDesigner||this.getListDesignerByIds()},getListDesignerByIds:function(){var e=this;return Object(s.a)(regeneratorRuntime.mark(function t(){var n,i,a,s,r,o,c;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e.isHomestyler){t.next=1;break}return t.abrupt("return");case 1:if(!e.isSelectedDesigner){t.next=2;break}return t.abrupt("return");case 2:return e.userCardShow=!0,t.prev=3,t.next=4,f.a.feed.listDesignerByIds({data:{umsIdList:JSON.stringify([e.data.authorId]),sourceList:JSON.stringify([1,2])},options:{headers:{lang:e.locale||"en_US"}}});case 4:n=t.sent,i=n.data,s=(a=void 0===i?{}:i).data&&a.data[0].medalList.length?a.data[0].medalList[0].smallImageUrl:"",r=a.data&&a.data[0].medalList&&a.data[0].medalList.length?a.data[0].medalList[0].name:"",o={normalImageUrl:s,name:r},c=E(E({},a.data[0]),o),e.userData=c,t.next=6;break;case 5:t.prev=5,t.catch(3);case 6:case"end":return t.stop()}},t,null,[[3,5]])}))()},videoPlay:function(){var e=this.$refs.video;e&&e.play()},videoPause:function(){var e=this.$refs.video;e&&e.pause()},featuredDesign:function(){var e=this;return Object(s.a)(regeneratorRuntime.mark(function t(){var n,i;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,n={designId:e.data.caseId,isFeature:!e.data.feature,caseFrom:e.data.caseFrom},t.next=1,f.a.mobileApi.featuredDesign({data:n});case 1:if(!((i=t.sent)&&i.ret&&i.ret[0].includes("SUCCESS"))){t.next=2;break}return e.$message.success("操作成功"),t.abrupt("return");case 2:e.$message.error("操作失败"),t.next=4;break;case 3:t.prev=3,t.catch(0);case 4:case"end":return t.stop()}},t,null,[[0,3]])}))()},handleVoteClk:function(){var e=this;if(this.checkIsLogin()){var t=this.data.contests[0]||{};if(Object(h.c)("/hs_global_web.".concat(this.spmName,".vote_clk"),"contest_id=".concat(t.id,"&member_id=").concat(this.userInfo.uid,"&language=").concat(this.locale,"&vote_type=").concat(this.voteType)),2!==this.voteType)if(1!==this.voteType){_.a.setItemForSameDay("voteClicked","true"),this.$store.commit("SET_VOTE_SHOW_GET_GIFT_TIPS",!1),this.curShowVoteTips=!1;var n=this.voteCount,i=this.voteStatus;this.hasVoted=!0,this.voteCount=this.voteCount+1,this.changeMsgStatus(!0),this.voteContestDesign().then(function(t){null!=t&&t.result||(e.hasVoted=i,e.voteCount=n)}).catch(function(){e.hasVoted=i,e.voteCount=n})}else this.openBoard();else this.shareVoteClk()}},voteContestDesign:function(){var e=this;return Object(s.a)(regeneratorRuntime.mark(function t(){var n,i,a,s;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,i=e.data.contests[0]||{},a={data:{bizId:e.data.caseId,bizType:P.b[e.data.caseFrom],contestId:i.id},options:{headers:{lang:e.locale||"en_US"}}},t.next=1,f.a.match.voteContestDesign(a);case 1:if(null==(s=t.sent)||null===(n=s.ret)||void 0===n||!n[0].includes("SUCCESS")){t.next=2;break}return t.abrupt("return",s.data);case 2:t.next=4;break;case 3:t.prev=3,t.catch(0);case 4:case"end":return t.stop()}},t,null,[[0,3]])}
1))()},changeMsgStatus:function(e){var t=this;this.msgID&&clearTimeout(this.msgID),this.voteStatus=e,this.voteMsgShow=!0,this.msgID=setTimeout(function(){t.voteMsgShow=!1,t.msgID=null},3e3)},openBoard:function(){var e=this.data.contests[0]||{};Object(D.a)({contest:e}),Object(h.c)("/hs_global_web.".concat(this.spmName,".vote_gift_clk"),"contest_id=".concat(e.id,"&member_id=").concat(this.userInfo.uid,"&language=").concat(this.locale,"&vote_type=").concat(this.voteType))},checkIsLogin:function(){var e=this;return!this.signIn||(this.isHomestyler||!this.isMobile?this.setLoginInfo("login"):Object(b.a)({hiddenLoginSuccessRedirect:!0,onLogined:function(){e.getUserInfo()}}),!1)}})},$=L,N=(n(4278),n(18)),R=Object(N.a)($,function(){var e,t,i=this,a=i._self._c;return i.data.caseId?a("div",{staticClass:"case-card-warp"},[a("div",{ref:"caseCard",staticClass:"case-card"},[a("div",{staticClass:"case-top",class:i.showMoreBtnList?"hover-top":""},[i.isVideo?a("div",{staticClass:"case-video"},[a("img",{staticClass:"case-cover",attrs:{loading:"lazy",src:i.videoCover,width:"320",height:"240"}}),i._v(" "),parseInt(i.videoTime)?a("span",{staticClass:"video-time"},[i._v("00:"+i._s(parseInt(i.videoTime)))]):i._e()]):a("div",{staticClass:"case-img",style:{backgroundColor:i.imgRgb}},[a("img",{staticClass:"case-cover",attrs:{loading:"lazy",src:"".concat(i.data.coverUrl,"?x-oss-process=image/resize,w_502,m_mfit/format,webp"),alt:i.data.coverAlt||i.data.name,width:"320",height:"240"}})]),i._v(" "),i.data.tags&&i.data.tags.Category&&i.data.tags.Category.indexOf("video")>-1?a("span",{staticClass:"case-app-wrap case-video-wrap"},[a("img",{attrs:{src:n(594),loading:"lazy",width:"42",height:"39"}})]):i._e(),i._v(" "),a("gradeTips",{attrs:{tipsShow:i.featureTipsShow,text:"".concat(i.$t("gallery2.featuretab"))}}),i._v(" "),a("gradeTips",{attrs:{tipsShow:i.tipsShow,contestName:i.data.contests&&i.data.contests[0].title,award:i.data.contests&&i.data.contests[0].winTitle}}),i._v(" "),i.hasFeaturedPerm?a("a",{staticClass:"featured-design-btn",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),i.featuredDesign.apply(null,arguments)}}},[i._v(i._s(i.data.feature?"取消精选":"精选"))]):i._e(),i._v(" "),a("a",{staticClass:"card-mask",class:{"card-mask-show":i.isMobile},attrs:{href:i.detailUrl,target:i.needLogin?"_self":"_blank"},on:{click:i.handleCaseJump}},[a("img",{directives:[{name:"show",rawName:"v-show",value:2!==i.currentTab&&1===i.data.feature,expression:"currentTab !== 2 && data.feature === 1"}],staticClass:"case-grade featured",class:{"case-award-app":2===i.data.caseFrom},attrs:{loading:"lazy",src:n(592),alt:"featured.png",width:"40",height:"40"},on:{mouseover:function(e){i.featureTipsShow=!0},mouseleave:function(e){i.featureTipsShow=!1}}}),i._v(" "),i.isAwarded&&i.awardGradeName?a("img",{staticClass:"case-grade",class:{"case-award":2!==i.currentTab&&1===i.data.feature,"case-award-app":2===i.data.caseFrom,"case-award-app-feature":2===i.data.caseFrom&&2!==i.currentTab&&1===i.data.feature},attrs:{loading:"lazy",src:n(1718)("./award_".concat(i.awardGradeName,".png")),alt:"".concat(i.awardGradeName,".png"),width:"40",height:"40"},on:{mouseover:function(e){i.tipsShow=!0},mouseleave:function(e){i.tipsShow=!1}}}):i._e(),i._v(" "),2===i.data.caseFrom?a("span",{staticClass:"case-app-wrap"},[a("i",{staticClass:"iconfont case-app"})]):i._e(),i._v(" "),a("p",{staticClass:"name"},[i._v(i._s(i.data.name))]),i._v(" "),i.showContest?a("div",{staticClass:"award",on:{click:function(e){return e.stopPropagation(),i.newGalleryLink.apply(null,arguments)}}},[a("img",{attrs:{src:n(988),loading:"lazy",width:"24",height:"24"}}),i._v(" "),a("p",{staticClass:"award-text"},[i._v(i._s(i.data.contests&&i.data.contests[0].title))]),i._v(" "),a("i",{staticClass:"iconfont icon-into"})]):i._e()]),i._v(" "),i.voteRank&&i.voteRank<=10?a("div",{staticClass:"vote_rank"},[a("img",{staticClass:"vote_rank_img",attrs:{src:n(1773)("./".concat(i.voteRank,".png")),width:"32",height:"32"}}),i._v(" "),i.voteRank>10?a("span",{staticClass:"vote_rank_txt"},[i._v(i._s(i.voteRank))]):i._e()]):i._e(),i._v(" "),i.voteConutText?a("div",{staticClass:"vote_count"},[i._v("\n        "+i._s(i.voteConutText)+"\n      ")]):i._e()],1),i._v(" "),a("div",{staticClass:"case-content"},[a("div",{staticClass:"case-author"},[a("div",{staticClass:"case-bottom"},[a("div",{ref:"trigger",class:["author-warp",{disable_event:!i.isHomestyler||i.isSelectedDesigner}],on:{click:i.userJump,mouseenter:i.handleMouseEnter,mouseleave:function(e){i.userCardShow=!1}}},[a("img",{staticClass:"avatar",attrs:{loading:"lazy",src:i.userAvatar,alt:i.data.authorName,width:"40",height:"40"}}),i._v(" "),a("div",{staticClass:"author-wrap-member"},[a("ShowHeaderMemberIcon",{attrs:{size:"small",memberInfo:{memberType:i.data.memberType,stylerMember:i.data.stylerMember},userTags:i.data.userTags||[]}})],1),i._v(" "),a("div",[a("a",{staticClass:"author",attrs:{href:i.data.homestylerId?"/user/".concat(i.data.homestylerId):"javascript:void(0)"}},[i._v(i._s(i.data.authorName))]),i._v(" "),i.showIP&&i.data.countryCodeMdsKeyValue?a("span",{staticClass:"author_wrap_country"},[a("IconfontView",{attrs:{customClass:"",customStyle:{fontSize:"14px",color:"#A3A3A3"},showType:"dingwei"}}
1),i._v(i._s(i.data.countryCodeMdsKeyValue)+"\n              ")],1):i._e()]),i._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:i.shouldShowUserCard,expression:"shouldShowUserCard"}],ref:"popover",staticClass:"user-card",style:{left:i.position.left,top:i.position.top,right:i.position.right,bottom:i.position.bottom}},[a("recommendUserCard",{attrs:{data:i.userData}})],1)]),i._v(" "),a("div",{staticClass:"rightWrapper"},[a("div",{staticClass:"vote_info_wrap"},[a("div",{staticClass:"vote_wrap",class:i.classByVoteType,on:{click:function(e){return e.stopPropagation(),i.handleVoteClk.apply(null,arguments)}}},[a("span",[i._v(" "+i._s(i.$t(i.btnTxt)))])]),i._v(" "),a("client-only",[a("div",{staticClass:"icon-wrap",class:i.iconWrapClass},[i.isPrivate?i._e():a("SocialLikes",{key:i.caseItem.caseId,attrs:{likeDataOther:i.likeDataInfo,likeDataImgInfo:i.likeDataImg,likeData:i.caseItemInfo},on:{"like-changed":i.handleLikeChange}}),i._v(" "),i.hideComment?i._e():a("span",{staticClass:"comments-wrap",on:{click:function(e){return i.caseJump(!0)}}},[a("i",{staticClass:"iconfont icona-hs_xian_newcomment"}),i._v(" "),a("span",{staticClass:"comments-count"},[i._v(i._s(i.caseItem.commentsCount||0))])]),i._v(" "),"project_detail_recommend"!==i.spmName?a("span",[a("i",{staticClass:"iconfont iconhs_xian_share",on:{click:i.shareClick}})]):i._e()],1)])],1),i._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:i.curShowVoteTips&&!i.isSelf&&i.voteShowGetGiftTips&&i.showVoteButton&&(null===(e=i.data.contests)||void 0===e||null===(e=e[0])||void 0===e?void 0:e.needSignUp),expression:"\n                curShowVoteTips &&\n                  !isSelf &&\n                  voteShowGetGiftTips &&\n                  showVoteButton &&\n                  data.contests?.[0]?.needSignUp\n              "}],staticClass:"vote_tips"},[i._v("\n              "+i._s(i.$t("vote_to_win_presents"))+"\n            ")])])])])])]),i._v(" "),i.shareModal.show?a("share-modal",{attrs:{show:i.shareModal.show,caseId:i.data.caseId,shareCfg:i.shareModal.config,shareName:i.spmName,title:i.showVote?i.$t("share.link.vote"):""},on:{"update:show":function(e){return i.$set(i.shareModal,"show",e)}}}):i._e(),i._v(" "),i.voteMsgShow?a("MessageBoxVue",{attrs:{type:i.voteStatus?"success":"error",leftTips:i.$t(i.voteStatus?"vote.success.note":"network.outofservice"),rightTips:null!==(t=i.data.contests)&&void 0!==t&&t[0].needSignUp?i.$t("voting.rewords.check"):void 0,fontSize:"16",openBoard:i.openBoard}}):i._e()],1):i._e()},[],!1,null,"fbe096ee",null),B=R.exports;function U(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function F(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?U(Object(n),!0).forEach(function(t){Object(i.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}installComponents(R,{IconfontView:n(129).default,SocialLikes:n(443).default});var V={components:{FeedCaseCard:B},props:{currentTab:{type:Number,default:1},caseCardData:{type:Array,default:function(){return[]}},spmName:{type:String,default:"gallery"},gapWidth:{type:Number,default:0},hideComment:{type:Boolean,default:!1},showIP:{type:Boolean,default:!1},showVote:{type:Boolean,default:!1},canGetVote:{type:Boolean,default:!1},shareScene:{type:String,default:""}},data:function(){return{}},computed:F(F({},Object(a.d)(["isMobile","voteShowGetGiftTips"])),{},{showVoteTipID:function(){var e,t=null===(e=this.caseCardData.find(function(e){var t;return!(null!==(t=e.contests)&&void 0!==t&&null!==(t=t[0])&&void 0!==t&&t.hasVoted)}))||void 0===e?void 0:e.caseId;return this.voteShowGetGiftTips&&this.showVote&&t?t:""}}),watch:{gapWidth:function(e){this.onResize()}},mounted:function(){},beforeDestroy:function(){},methods:{}},H=(n(4279),Object(N.a)(V,function(){var e=this,t=e._self._c;return e.caseCardData.length>0?t("div",{staticClass:"feed-content"},e._l(e.caseCardData,function(n,i){return t("div",{key:n.id||i,staticClass:"item-wrapper"},[t("FeedCaseCard",{attrs:{spmName:e.spmName,currentTab:e.currentTab,data:n,hideComment:e.hideComment,showIP:e.showIP,showVote:e.showVote,canGetVote:e.canGetVote,showVoteTips:e.showVoteTipID==n.caseId,shareScene:e.shareScene}})],1)}
1),0):e._e()},[],!1,null,"5942d53c",null));t.a=H.exports},3799:function(e,t,n){"use strict";n.r(t);n(62),n(69);var i={name:"RankList",components:{AwardCard:n(4454).default},props:{uiMode:{type:String,default:"pc"},items:{type:Array,default:function(){return[]}},columns:{type:Number,default:3},gap:{type:Number,default:24},rows:{type:Number,default:2},hiddenRankListPlaceholder:{type:Boolean,default:!1}},data:function(){return{displayRows:this.rows}},computed:{pageSize:function(){return this.columns*this.rows},displayCount:function(){return this.columns*this.displayRows},displayedItems:function(){return this.items.slice(0,this.displayCount)},hasMore:function(){return this.items.length>this.displayCount},placeholderCountImage:function(){return 1===this.placeholderCount?"https://img.alicdn.com/imgextra/i2/O1CN0128S4SB1KDagGjSXRz_!!6000000001130-2-tps-489-504.png":"https://img.alicdn.com/imgextra/i1/O1CN01qn5Kql20Xw8YVsenv_!!6000000006860-2-tps-1320-468.png"},placeholderCount:function(){return this.displayedItems.length%this.columns},placeholderStyle:function(){var e=this.displayedItems.length%this.columns;if(0===e)return{};var t=this.columns-e,n=(this.columns-1)*this.gap,i="(100% - ".concat(n,"px) / ").concat(this.columns);return{width:"calc(".concat(i," * ").concat(t," + ").concat(this.gap*(t-1),"px)"),flexShrink:0}},cardStyle:function(){var e=(this.columns-1)*this.gap;return{width:"calc((100% - ".concat(e,"px) / ").concat(this.columns,")"),flexShrink:0}}},methods:{loadMore:function(){this.displayRows+=this.rows}}},a=(n(3893),n(18)),s=Object(a.a)(i,function(){var e=this,t=e._self._c;return t("div",{staticClass:"rank-list-wrapper",class:e.uiMode},[t("div",{staticClass:"rank-list",style:{gap:e.gap+"px"}},[e._l(e.displayedItems,function(n,i){return t("AwardCard",{key:i,style:e.cardStyle,attrs:{design:n,uiMode:e.uiMode}})}),e._v(" "),!e.hiddenRankListPlaceholder&&e.placeholderCount>0?t("div",{staticClass:"placeholder-card",style:e.placeholderStyle},[t("img",{staticClass:"placeholder-background-image",attrs:{src:e.placeholderCountImage}})]):e._e()],2),e._v(" "),e.hasMore?t("div",{staticClass:"load-more-wrapper"},[t("div",{staticClass:"load-more-btn",on:{click:e.loadMore}},[e._v(e._s(e.$t("aida.award.more")))])]):e._e()])},[],!1,null,"04ba04af",null);t.default=s.exports},3800:function(e,t,n){"use strict";n.r(t);n(44),n(23),n(19),n(15),n(31),n(32);var i=n(7),a=n(1),s=(n(3152),n(119),n(3153)),r=n.n(s),o=(n(38),n(239),n(30),n(22),n(21)),c=n(12),l=n(14);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}var d={name:"LearnSearchInput",components:{Autocomplete:r.a},props:{value:{type:String,default:""},onSearch:{type:Function,default:null}},data:function(){return{searchWord:this.value,hasResults:!1}},computed:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach(function(t){Object(a.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},Object(o.d)(["userInfo","locale"])),watch:{value:function(e){this.searchWord=e}},methods:{buildSpmParams:function(e){return"member_id=".concat(this.userInfo.uid,"&language=").concat(this.locale,"&keyword=").concat(e)},handleSeeMore:function(e){e.url&&(window.location.href=e.url)},fetchSuggestions:function(e,t){var n=this;return Object(i.a)(regeneratorRuntime.mark(function i(){var a,s,r,o,u,d,p;return regeneratorRuntime.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return Object(l.c)("/hs_global_web.learn.search_submit",n.buildSpmParams(e)),n.searchWord=e,i.prev=1,i.next=2,c.a.search.querypresearch({data:{searchWord:e,source:"web",clientInfo:JSON.stringify({platform:"web",language:n.locale})},options:{headers:{lang:n.locale}}});case 2:r=i.sent,o=null==r||null===(a=r.data)||void 0===a||null===(a=a.data)||void 0===a||null===(a=a.status)||void 0===a?void 0:a.code,(null==r||null===(s=r.ret)||void 0===s||null===(s=s[0])||void 0===s?void 0:s.includes("SUCCESS"))&&0===o&&(d=r.data.data.data.list,(null===(u=d)||void 0===u?void 0:u.length)>0?(d.unshift({text:"learn2.searchtoparticle"}),d.push({text:"learn2.searchviewall",url:"/learn-search?q=".concat(n.searchWord)})):d=[],n.hasResults=d.length>2,(p=n.$refs.searchAutocomplete)&&!p.activated&&(p.activated=!0),t(d)),i.next=4;break;case 3:i.prev=3,i.catch(1);case 4:case"end":return i.stop()}},i,null,[[1,3]])}
1))()},handleEnter:function(e){e&&(e.isComposing||229===e.keyCode)||this.searchWord&&(this.closeSuggestions(),this.onSearch?this.onSearch(this.searchWord):window.open("/learn-search?q=".concat(this.searchWord),"_blank"))},closeSuggestions:function(){var e=this.$refs.searchAutocomplete;if(e){e.suggestions=[],e.activated=!1;var t=e.$refs.input&&e.$refs.input.$refs.input;t&&"function"==typeof t.blur&&t.blur()}},handleClear:function(){this.hasResults=!1,this.searchWord="";var e=this.$refs.searchAutocomplete;e&&(e.activated=!0)},trackClickResult:function(){Object(l.c)("/hs_global_web.learn.search_clickResult",this.buildSpmParams(this.searchWord))}}},p=d,m=(n(4009),n(4010),n(18)),f=Object(m.a)(p,function(){var e=this,t=e._self._c;return t("Autocomplete",{ref:"searchAutocomplete",staticClass:"learn_search_input_wrap",attrs:{"fetch-suggestions":e.fetchSuggestions,placeholder:e.$t("learn2.searchbox"),"select-when-unmatched":"","prefix-icon":"el-icon-search",clearable:"","trigger-on-focus":!1,"popper-class":"auto_learn_search_wrap"},on:{clear:e.handleClear},nativeOn:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleEnter.apply(null,arguments)}},scopedSlots:e._u([{key:"default",fn:function(i){var a=i.item;return e.hasResults?[a.text?t("p",{staticClass:"select-document",on:{click:function(t){return e.handleSeeMore(a)}}},[e._v("\n      "+e._s(e.$t(a.text))+"\n    ")]):t("a",{staticClass:"select-link",attrs:{href:a.contentUrl,target:"_blank"},on:{click:e.trackClickResult}},[t("p",{staticClass:"select-title-row ellipsis"},[1===a.video?t("span",{staticClass:"video-icon-wrap"},[t("img",{staticClass:"video-icon",attrs:{src:n(1827),alt:"video"}})]):e._e(),e._v(" "),t("span",{staticClass:"select-title"},[e._v(e._s(a.title))])]),e._v(" "),a.menu?t("p",{staticClass:"select-menu"},[t("span",[e._v(e._s(a.menu.name))]),e._v(" >\n        "),t("span",[e._v(e._s(a.menu.child.name))])]):t("p",{staticClass:"select-menu"},[t("span",[e._v("Homestyler Forum")])])])]:void 0}}],null,!0),model:{value:e.searchWord,callback:function(t){e.searchWord=t},expression:"searchWord"}})},[],!1,null,"75f4769c",null);t.default=f.exports},3801:function(e,t,n){"use strict";n.r(t);var i={name:"VueDropdown",components:{IconfontView:n(129).default},props:{items:{type:Array,default:function(){return[]}},placement:{type:String,default:"bottomRight"}},data:function(){return{visible:!1,timer:null}},methods:{handleMouseenter:function(){this.timer&&(clearTimeout(this.timer),this.timer=null),this.visible=!0},handleMouseleave:function(){var e=this;this.timer=setTimeout(function(){e.visible=!1},200)},handleItemClick:function(e){this.timer&&(clearTimeout(this.timer),this.timer=null),this.visible=!1,this.$emit("menuClick",{key:e.key})}},beforeDestroy:function(){this.timer&&(clearTimeout(this.timer),this.timer=null)}},a=(n(4132),n(18)),s=Object(a.a)(i,function(){var e=this,t=e._self._c;return t("div",{staticClass:"vue-dropdown-wrapper"},[t("div",{staticClass:"dropdown-trigger",on:{mouseenter:e.handleMouseenter,mouseleave:e.handleMouseleave}},[t("IconfontView",{attrs:{customStyle:{color:"#ffffff",fontSize:"20px"},showType:"hs_pricing_more"}})],1),e._v(" "),t("transition",{attrs:{name:"dropdown-fade"}},[t("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"dropdown-menu",on:{mouseenter:e.handleMouseenter,mouseleave:e.handleMouseleave}},[t("ul",{staticClass:"dropdown-list"},e._l(e.items,function(n){return t("li",{key:n.key,staticClass:"dropdown-item",on:{click:function(t){return e.handleItemClick(n)}}},[e._v("\n          "+e._s(n.label)+"\n        ")])}),0)])])],1)},[],!1,null,"c20d8b7c",null);t.default=s.exports;installComponents(s,{IconfontView:n(129).default})},3802:function(e,t,n){"use strict";var i={name:"PrivacyIndex",props:{hideLogo:{type:Boolean,default:!1}},mounted:function(){}},a=(n(3849),n(18)),s=Object(a.a)(i,function(){var e=this,t=e._self._c;return t("div",{staticClass:"container",attrs:{id:"privacy"}},[t("div",{directives:[{name:"show",rawName:"v-show",value:!e.hideLogo,expression:"!hideLogo"}],staticClass:"privacy-logo"},[t("img",{attrs:{src:n(987),alt:"Homestyler logo"}})]),e._v(" "),t("h1",{directives:[{name:"show",rawName:"v-show",value:!e.hideLogo,expression:"!hideLogo"}]},[e._v("\n    "+e._s(e.$t("web.privacypolicy.title"))+"\n  ")]),e._v(" "),t("h3",[e._v(e._s(e.$t("web.privacypolicy.time")))]),e._v(" "),t("h3",[e._v(e._s(e.$t("web.privacypolicy.terms.title")))]),e._v(" "),t("p",{domProps:{innerHTML:e._s(e.$t("web.privacypolicy.terms.ctn"))}}),e._v(" "),t("h3",[e._v(e._s(e.$t("web.privacypolicy.point1.title")))]),e._v(" "),t("p",{domProps:{innerHTML:e._s(e.$t("web.privacypolicy.point1.ctn1"))}}),e._v(" "),t("p",{domProps:{innerHTML:e._s(e.$t("web.privacypolicy.point1.ctn2"))}}),e._v(" "),t("p",{domProps:{innerHTML:e._s(e.$t("web.privacypolicy.point1.ctn3"))}}),e._v(" "),t("h3",[e._v(e._s(e.$t("web.privacypolicy.point2.title")))]),e._v(" "),t("p",{domProps:{innerHTML:e._s(e.$t("web.privacypolicy.point2.ctn"))}}),e._v(" "),t("h3",[e._v(e._s(e.$t("web.privacypolicy.point3.title")))]),e._v(" "),t("p",{domProps:{innerHTML:e._s(e.$t("web.privacypolicy.point3.ctn1"))}}),e._v(" "),t("p",{domProps:{innerHTML:e._s(e.$t("web.privacypolicy.point3.ctn2"))}}),e._v(" "),t("h3",[e._v(e._s(e.$t("web.privacypolicy.point4.title")))]),e._v(" "),t("p",{domProps:{innerHTML:e._s(e.$t("web.privacypolicy.point4.ctn"))}}),e._v(" "),t("h3",[e._v(e._s(e.$t("web.privacypolicy.point5.title")))]),e._v(" "),t("p",{domProps:{innerHTML:e._s(e.$t("web.privacypolicy.point5.ctn1"))}}),e._v(" "),t("p",{domProps:{innerHTML:e._s(e.$t("web.privacypolicy.point5.ctn2"))}}),e._v(" "),t("h3",[e._v(e._s(e.$t("web.privacypolicy.point6.title")))]),e._v(" "),t("p",{domProps:{innerHTML:e._s(e.$t("web.privacypolicy.point6.ctn"))}}),e._v(" "),t("h3",[e._v(e._s(e.$t("web.privacypolicy.point7.title")))]),e._v(" "),t("p",{domProps:{innerHTML:e._s(e.$t("web.privacypolicy.point7.ctn"))}}),e._v(" "),t("h3",[e._v(e._s(e.$t("web.privacypolicy.point8.title")))]),e._v(" "),t("p",{domProps:{innerHTML:e._s(e.$t("web.privacypolicy.point8.ctn"))}}),e._v(" "),t("h3",[e._v(e._s(e.$t("web.privacypolicy.point9.title")))]),e._v(" "),t("p",{domProps:{innerHTML:e._s(e.$t("web.privacypolicy.point9.ctn"))}}),e._v(" "),t("h3",[e._v(e._s(e.$t("web.privacypolicy.point10.title")))]),e._v(" "),t("p",{domProps:{innerHTML:e._s(e.$t("web.privacypolicy.point10.ctn"))}}),e._v(" "),t("h3",[e._v(e._s(e.$t("web.privacypolicy.point11.title")))]),e._v(" "),t("p",{domProps:{innerHTML:e._s(e.$t("web.privacypolicy.point11.ctn"))}}),e._v(" "),t("h3",[e._v(e._s(e.$t("web.privacypolicy.language.title")))]),e._v(" "),t("p",{domProps:{innerHTML:e._s(e.$t("web.privacypolicy.language.ctn"))}}),e._v(" "),t("h3",[e._v(e._s(e.$t("web.privacypolicy.point12.title")))]),e._v(" "),t("p",{domProps:{innerHTML:e._s(e.$t("web.privacypolicy.point12.ctn"))}}),e._v(" "),t("h3",[e._v(e._s(e.$t("web.privacypolicy.generated.title")))]),e._v(" "),t("p",{domProps:{innerHTML:e._s(e.$t("web.privacypolicy.generated.ctn"))}}),e._v(" "),t("br"),e._v(" "),t("br")])},[],!1,null,null,null);t.a=s.exports},3803:function(e,t,n){"use strict";n(23),n(19),n(15),n(31),n(32);var i=n(1);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?a(Object(n),!0).forEach(function(t){Object(i.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var r={name:"AlbumGroupCard",props:{group:{type:Object,default:function(){return{}}},cardStyle:{type:Object,default:function(){return{}}},isActived:{type:Boolean,default:function(){return!1}}},data:function(){return{}},methods:{}},o=(n(3870),n(18)),c=Object(o.a)(r,function(){var e=this,t=e._self._c;return t("div",{staticClass:"album-group-card",class:{"cover-actived":e.isActived,"cover-all":e.group.isAll},on:{click:function(t){return e.$emit("click",e.group)}}},[t("div",{staticClass:"cover",style:e.group.coverImageUrl&&2===e.group.status?s(s({},e.cardStyle),{},{backgroundImage:"url(".concat(e.group.coverImageUrl,"?x-oss-process=image/resize,w_264,m_mfit/format,webp)")}):s(s({},e.cardStyle),{},{backgroundColor:"#E0E0E0"})},[e.group.isAll?t("span",{staticClass:"all-group"},[e._v("\n      "+e._s(e.$t("point.all"))+"\n    ")]):2!==e.group.status?t("span",{staticClass:"process-status"},[e._v("\n      "+e._s(e.group.processSchedule>=0&&e.group.processSchedule<=100?"".concat(e.group.processSchedule,"%"):"1%")+"\n    ")]):e.group.coverImageUrl?e._e():t("span",{staticClass:"process-status"},[t("IconfontView",{attrs:{customClass:"img-shibai-icon",showType:"shibai",customStyle:{fontSize:"48px",color:"#767676"}}})],1)]),e._v(" "),t("div",{staticClass:"cover-actived-arrrow"})])},[],!1,null,"3be93227",null);t.a=c.exports;installComponents(c,{IconfontView:n(129).default})},3804:function(e,t,n){"use strict";n(30),n(22),n(23),n(19),n(31),n(32);var i=n(8),a=n(7),s=n(1),r=(n(38),n(62),n(25),n(44),n(15),n(21)),o=n(14),c=n(3224),l=n(129),u=n(3209),d=n(3207),p=n(3216),m=n(3206),f=n(150),h=n(12);function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach(function(t){Object(s.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var b={name:"AlubmCardList",components:{Viewer:c.a,MemberUpgrade:u.default,IconfontView:l.default,OperateBtn:d.default,RatingBox:p.default},mixins:[m.a,f.a],props:{datasource:{type:Array,default:function(){return[]}},selectedKeys:{type:Array,default:function(){return[]}},maxSelectedNum:{type:Number,default:function(){return 20}},total:{type:Number,default:function(){return 0}},isAll:{type:Boolean,default:!1},canDownload:{type:Boolean,default:!1},editAlbum:{type:Boolean,default:!1}},data:function(){return{list:[],loadedArr:[],selectItem:{},aspectRatio1:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAoHBwkHBgoJCAkLCwoMDxkQDw4ODx4WFxIZJCAmJSMgIyIoLTkwKCo2KyIjMkQyNjs9QEBAJjBGS0U+Sjk/QD3/2wBDAQsLCw8NDx0QEB09KSMpPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT3/wgARCAAUABQDAREAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAf/xAAUAQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIQAxAAAACmgAAAH//EABQQAQAAAAAAAAAAAAAAAAAAADD/2gAIAQEAAT8AH//EABQRAQAAAAAAAAAAAAAAAAAAADD/2gAIAQIBAT8AH//EABQRAQAAAAAAAAAAAAAAAAAAADD/2gAIAQMBAT8AH//Z",bigImgShow:!1,isSupportPoster:!1,invitationCode:"",hashTagInfo:{id:"11518763",name:"AIModeler"}}},created:function(){var e=this;this.initInvitationCode(),this.getClientInfo().then(function(){e.isSupportPoster=e.greaterThanVersion("10.9.0")})},computed:v({},Object(r.d)(["locale","userInfo","userPhoto","isHomestylerApp","isMobile"])),watch:{datasource:{handler:function(){var e=this;this.list=this.datasource.map(function(t){var n={};return n="string"==typeof t.extend?JSON.parse(t.extend):t.extend,v(v({},t),{},{extend:n,checked:e.selectedKeys.includes(t.subTaskId)})})},immediate:!0},editAlbum:function(e){e&&this.initList()},selected:function(e){this.checked=e}},mounted:function(){this.getProfileInfo()},methods:v(v({},Object(r.b)(["getProfileInfo"])),{},{initList:function(){var e=this;this.list=this.datasource.map(function(t){return v(v({},t),{},{checked:e.selectedKeys.includes(t.subTaskId)})})},checkDisabled:function(e){return!e.checked&&this.selectedKeys.length>=this.maxSelectedNum||!![0,1].includes(e.processStatus)},handleDelete:function(e){var t=this;
1this.$emit("handleDelete",e.subTaskId,function(){t.bigImgShow=!1})},downloadImg:function(e){var t;if(this.canDownload){Object(o.c)("/hs_global_web.ai_modeler.download_clk","queue_id=".concat(e.subTaskId,"&member_id=").concat(this.userInfo.uid,"&language=").concat(this.locale));var n=null===(t=e.extend)||void 0===t?void 0:t.glbUrl;this.isHomestylerApp?this.$message.warning(this.$t("ai.modeler.download.tip")):window.open("".concat(n,"?response-content-type=application/octet-stream"),"_blank")}},closePopup:function(){var e=this;this.isHomestylerApp||this.isMobile?setTimeout(function(){e.bigImgShow=!1},500):this.bigImgShow=!1,Object(o.c)("/hs_global_web.ai_modeler.album_fullscr_close","member_id=".concat(this.userInfo.uid,"&language=").concat(this.locale))},handleBuyMore:function(e){this.bigImgShow=!1,this.$emit("buyMore",e)},queryAlubmAllList:function(e){this.$emit("queryAllList",e)},handleRatingSubmit:function(){this.$emit("queryAllList",!0),this.$emit("queryGroupList",!0)},shareModalInit:function(e,t){var n={title:this.$t("aigc.tdktitle"),description:this.$t("aigc.tdkdescr"),image:e,url:t,text:this.$t("aigc.tdkkeywords")};this.$store.commit("SET_MGMCONFIG",{shareConfig:n})},usertAvaterUrl:function(){return this.userPhoto?this.userPhoto:this.defaultAvatar},shareImg:function(e){var t,n=this;Object(o.c)("/hs_global_web.ai_modeler.share_clk","source_page=ai modeler&queue_id=".concat(e.subTaskId,"&member_id=").concat(this.userInfo.uid,"&language=").concat(this.locale));var i=e.imageUrl,a={};a="string"==typeof e.extend?JSON.parse(e.extend):e.extend;var s,r="".concat(this.$global.h5Share,"/preview3dmodel?taskId=").concat(e.taskId,"&modelId=").concat(null===(t=a)||void 0===t?void 0:t.jid,"&type=AIShared");this.isHomestylerApp&&(r="".concat(this.$global.h5Share,"/preview3dmodel?invitationCode=").concat(this.invitationCode,"&taskId=").concat(e.taskId,"&modelId=").concat(null===(s=a)||void 0===s?void 0:s.jid,"&type=AppShared"));this.isHomestylerApp?this.getClientInfo().then(function(){var e=i,t="image";if(n.greaterThanVersion("10.0.0")&&(e=r,t="link"),n.greaterThanVersion("10.9.0")&&(t="aimodeler"),n.isSupportPoster){var s,c={url:e,image:i,avatar:n.usertAvaterUrl(),fullName:"".concat(n.userInfo.userFirstName," ").concat(n.userInfo.userLastName),userId:n.userInfo.uid,homestylerId:n.userInfo.homestylerId,modelId:null===(s=a)||void 0===s?void 0:s.jid,type:t,tagId:n.hashTagInfo.id,tagName:n.hashTagInfo.name,title:"".concat(n.$t("ai.modeler.poster.title")),isPublish:"0"};n.callWindVane("HSPlugin","doSharePosterOrPublish",c).then(function(e){Object(o.c)("/hs_global_web.ai_modeler.share_success","source_page=ai modeler&member_id=".concat(n.userInfo.uid,"&language=").concat(n.locale))})}else n.callWindVane("HSPlugin","wakeShareOperation",{url:e,type:t}).then(function(e){Object(o.c)("/hs_global_web.ai_modeler.share_success","member_id=".concat(n.userInfo.uid,"&language=").concat(n.locale))})}):(this.selectItem=e,this.shareModalInit(i,r),this.$store.commit("SET_MGMSOURCE","ai_modeler_viewer"),this.$store.commit("SET_MGMSHOW",{show:!0,scene:"AI_REGISTER"}))},posterCommunity:function(e){var t,n=this;Object(o.c)("/hs_global_web.ai_modeler.poster_community_clk","source_page=ai modeler&queue_id=".concat(e.subTaskId,"&member_id=").concat(this.userInfo.uid,"&language=").concat(this.locale));var i=e.imageUrl,a={};a="string"==typeof e.extend?JSON.parse(e.extend):e.extend;var s,r="".concat(this.$global.h5Share,"/preview3dmodel?taskId=").concat(e.taskId,"&modelId=").concat(null===(t=a)||void 0===t?void 0:t.jid,"&type=AIShared");this.isHomestylerApp&&(r="".concat(this.$global.h5Share,"/preview3dmodel?invitationCode=").concat(this.invitationCode,"&taskId=").concat(e.taskId,"&modelId=").concat(null===(s=a)||void 0===s?void 0:s.jid,"&type=AppShared"));this.isHomestylerApp&&this.getClientInfo().then(function(){var e,t=i,s="image";n.greaterThanVersion("10.0.0")&&(t=r,s="link"),n.greaterThanVersion("10.9.0")&&(s="aimodeler");var c={url:t,image:i,avatar:n.usertAvaterUrl(),fullName:"".concat(n.userInfo.userFirstName," ").concat(n.userInfo.userLastName),userId:n.userInfo.uid,homestylerId:n.userInfo.homestylerId,modelId:null===(e=a)||void 0===e?void 0:e.jid,type:s,tagId:n.hashTagInfo.id,tagName:n.hashTagInfo.name,title:"".concat(n.$t("ai.modeler.poster.title")),isPublish:"0"};n.callWindVane("HSPlugin","doPublishByAiModeler",c).then(function(e){Object(o.c)("/hs_global_web.ai_modeler.poster_community_success","source_page=ai modeler&member_id=".concat(n.userInfo.uid,"&language=").concat(n.locale))})})},initInvitationCode:function(){var e=this;return Object(a.a)(regeneratorRuntime.mark(function t(){var n,i;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=1,h.a.mgm.getCode({data:{scene:"NEW_REGISTER"}});case 1:n=t.sent,i=n.data&&n.data.status.code,n&&n.ret&&n.ret[0].includes("SUCCESS")&&0===i&&n.data.data&&(e.invitationCode=n.data.data),t.next=3;break;case 2:t.prev=2,t.catch(0);case 3:case"end":return t.stop()}},t,null,[[0,2]])}))()},enlargeImg:function(e){this.editAlbum||(this.selectItem=e,this.bigImgShow=!0,Object(o.c)("/hs_global_web.ai_modeler.viewer_clk","member_id=".concat(this.userInfo.uid,"&language=").concat(this.locale)))},handleSelect:function(e,t){var n=this;if(this.editAlbum&&!this.checkDisabled(e)){var a=this.selectedKeys;a=e.checked?this.selectedKeys.filter(function(t){return t!==e.subTaskId}):[].concat(Object(i.a)(this.selectedKeys),[e.subTaskId]),this.$emit("update:selectedKeys",Object(i.a)(a)),this.list=this.list.map(function(e,i){return i===t&&n.$set(e,"checked",!e.checked),v({},e)})}},loadHandler:function(e){this.loadedArr=[].concat(Object(i.a)(this.loadedArr),[e])},handleCheck:function(){}})},_=(n(3871),n(18)),y=Object(_.a)(b,function(){var e=this,t=e._self._c;return t("div",{on:{contextmenu:function(e){e.preventDefault()}}},[t("ul",{staticClass:"alubm-list",class:{"alubm-list-row":e.isAll,"alubm-list-app":e.isHomestylerApp}},e._l(e.list,function(n,i){return t("li",{key:n.subTaskId,staticClass:"alubm-card-wrap",class:{checked:n.checked,disabled:e.checkDisabled(n)},on:{click:function(t){return e.handleSelect(n,i)}}},[e.editAlbum?t("el-checkbox",{staticClass:"alubm-checkbox",attrs:{disabled:e.checkDisabled(n)},on:{click:function(t){return t.stopPropagation(),e.handleCheck.apply(null,arguments)},change:function(t){return e.handleSelect(n,i)}},model:{value:n.checked,callback:function(t){e.$set(n,"checked",t)},expression:"item.checked"}}
1):e._e(),e._v(" "),2===n.processStatus&&n.imageUrl?t("div",{staticClass:"alubm-img-wrap",class:{loaded:e.loadedArr.includes(n.subTaskId)}},[t("div",{staticClass:"alubm-img-mask",on:{click:function(t){return e.enlargeImg(n)}}},[e.editAlbum?e._e():[t("div",{staticClass:"alubm-img-preview",on:{click:function(t){return e.enlargeImg(n)}}},[t("OperateBtn",{attrs:{iconType:"a-3dviewicon",hideTips:"",iconFontSize:"16px",iconColor:"#FFFFFF"},on:{click:function(t){return e.enlargeImg(n)}}},[t("span",{staticClass:"viewer-btn",attrs:{slot:"text"},slot:"text"},[e._v(e._s(e.$t("aidesignerpg.roomview.button")))])])],1),e._v(" "),e.isAll?e._e():t("div",{staticClass:"alubm-img-operate",on:{click:function(e){e.stopPropagation()}}},[t("OperateBtn",{attrs:{iconType:"hs_mian_moxingmanyidu"}},[t("RatingBox",{attrs:{bizId:n.subTaskId,rating:n.score,submitted:n.score>0,title:e.$t("ai.modeler.satisfy.ques"),sourceValue:n.imageUrl},on:{submit:e.handleRatingSubmit}})],1),e._v(" "),t("OperateBtn",{attrs:{disabled:!e.canDownload,iconType:"hs_mian_xiazai",memberBenefits:!0},on:{click:function(t){return e.downloadImg(n)}}},[e.canDownload?t("span",[e._v(e._s(e.$t("AIGC.dashboard.download")))]):t("MemberUpgrade",{attrs:{showDemo:!1,adaptMobile:!1},on:{upgrade:function(t){return e.$emit("buyMore",{sourcePage:"ai_modeler_download"})}}})],1),e._v(" "),t("OperateBtn",{attrs:{iconType:"a-22_3dtool_delete"},on:{click:function(t){return e.handleDelete(n)}}},[e._v("\n                "+e._s(e.$t("editProject.content.delete"))+"\n              ")]),e._v(" "),t("OperateBtn",{attrs:{giftType:!e.isHomestylerApp,iconType:"hs_icon_share"},on:{click:function(t){return e.shareImg(n)}}},[e._v("\n                "+e._s(e.$t("editproject.share"))+"\n              ")])],1)]],2),e._v(" "),t("img",{staticClass:"img-loading-placeholder",attrs:{src:e.aspectRatio1,alt:"loading"}}),e._v(" "),t("img",{staticClass:"alubm-img",attrs:{src:e.isAll?"".concat(n.imageUrl,"?x-oss-process=image/resize,m_fill,h_700,w_700/format,webp"):n.imageUrl,alt:"".concat(n.roomType,"-").concat(n.stylerType)},on:{click:function(t){return e.enlargeImg(n)},load:function(t){return e.loadHandler(n.subTaskId)}}})]):[3,4,5].includes(n.processStatus)?t("div",{staticClass:"img-loading"},[t("img",{staticClass:"img-loading-placeholder",attrs:{src:e.aspectRatio1,alt:"loading"}}),e._v(" "),t("div",{staticClass:"img-loading-icon-block"},[t("IconfontView",{attrs:{customClass:"img-shibai-icon",showType:"shibai",customStyle:{fontSize:"80px",color:"#767676"}}}),e._v(" "),t("p",{staticClass:"img-loading-text"},[e._v("\n            "+e._s(e.$t("ai.modeler.upload.error"))+"\n          ")])],1),e._v(" "),t("div",{staticClass:"alubm-img-mask"},[e.isAll?e._e():t("div",{staticClass:"alubm-img-operate",on:{click:function(e){e.stopPropagation()}}},[t("OperateBtn",{attrs:{iconType:"a-22_3dtool_delete"},on:{click:function(t){return e.handleDelete(n)}}},[e._v("\n              "+e._s(e.$t("editProject.content.delete"))+"\n            ")])],1)])]):t("div",{staticClass:"img-loading"},[t("img",{staticClass:"img-loading-placeholder",attrs:{src:e.aspectRatio1,alt:"loading"}}),e._v(" "),t("div",{staticClass:"img-loading-icon-block"},[n.processSchedule>=0&&n.processSchedule<=100?t("span",{staticClass:"img-loading-schedule"},[e._v(e._s("".concat(n.processSchedule,"%")))]):t("IconfontView",{attrs:{customClass:"img-loading-icon",showType:"a-iconloadingcopy",customStyle:{fontSize:"30px",color:"#767676"}}}),e._v(" "),t("p",{staticClass:"img-loading-text"},[e._v("\n            "+e._s(e.$t(0===n.processStatus?"render.status.queue":"ai.modeler.uploading"))+"\n          ")])],1)])],1)}),0),e._v(" "),e.bigImgShow?t("div",{staticClass:"browser-mask"},[t("Viewer",{attrs:{type:"ai_modeler",showType:"3d",aiGenerateType:"aimodeler",data:e.selectItem,canDownload:e.canDownload,showPoster:e.isSupportPoster},on:{close:e.closePopup,buyMore:e.handleBuyMore,queryAllList:e.queryAlubmAllList,downloadImg:e.downloadImg,deleteImg:e.handleDelete,shareImg:e.shareImg,posterCommunity:e.posterCommunity}})],1):e._e()])},[],!1,null,"37773f33",null);t.a=y.exports;installComponents(y,{OperateBtn:n(3207).default,RatingBox:n(3216).default,MemberUpgrade:n(3209).default,IconfontView:n(129).default})},3805:function(e,t,n){"use strict";n(30),n(22),n(23),n(19),n(31),n(32);var i=n(8),a=n(1),s=(n(62),n(25),n(44),n(15),n(21)),r=n(14),o=n(24),c=n(3224),l=n(129),u=n(3209),d=n(3207),p=n(3216),m=n(3206);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?f(Object(n),!0).forEach(function(t){Object(a.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var g={name:"AlubmCardList",components:{MemberUpgrade:u.default,IconfontView:l.default,OperateBtn:d.default,RatingBox:p.default,Viewer:c.a},mixins:[m.a],props:{datasource:{type:Array,default:function(){return[]}},selectedKeys:{type:Array,default:function(){return[]}},maxSelectedNum:{type:Number,default:function(){return 20}},total:{type:Number,default:function(){return 0}},isAll:{type:Boolean,default:!1},canDownload:{type:Boolean,default:!1},editAlbum:{type:Boolean,default:!1},fpButtonLoading:{type:Boolean,default:!1}},data:function(){return{list:[],loadedArr:[],selectItem:{},aspectRatio1:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAoHBwkHBgoJCAkLCwoMDxkQDw4ODx4WFxIZJCAmJSMgIyIoLTkwKCo2KyIjMkQyNjs9QEBAJjBGS0U+Sjk/QD3/2wBDAQsLCw8NDx0QEB09KSMpPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT3/wgARCAAUABQDAREAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAf/xAAUAQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIQAxAAAACmgAAAH//EABQQAQAAAAAAAAAAAAAAAAAAADD/2gAIAQEAAT8AH//EABQRAQAAAAAAAAAAAAAAAAAAADD/2gAIAQIBAT8AH//EABQRAQAAAAAAAAAAAAAAAAAAADD/2gAIAQMBAT8AH//Z",bigImgShow:!1,isSupportPoster:!1,hashTagInfo:{id:"11520428",name:"AIMoodboard"}}},computed:h({},Object(s.d)(["locale","userInfo","userPhoto","isHomestylerApp","isMobile"])),watch:{datasource:{handler:function(){var e=this;this.list=this.datasource.map(function(t){var n={};return n="string"==typeof t.extend?JSON.parse(t.extend):t.extend,h(h({},t),{},{extend:n,checked:e.selectedKeys.includes(t.subTaskId)})})},immediate:!0},editAlbum:function(e){e&&this.initList()},selected:function(e){this.checked=e}},created:function(){var e=this;this.getClientInfo().then(function(){e.isSupportPoster=e.greaterThanVersion("11.2.0")})},mounted:function(){this.getProfileInfo()},methods:h(h({},Object(s.b)(["getProfileInfo"])),{},{initList:function(){var e=this;this.list=this.datasource.map(function(t){return h(h({},t),{},{checked:e.selectedKeys.includes(t.subTaskId)})})},checkDisabled:function(e){return!e.checked&&this.selectedKeys.length>=this.maxSelectedNum||!![0,1].includes(e.processStatus)},handleDelete:function(e){var t=this;this.$emit("handleDelete",e.subTaskId,function(){t.bigImgShow=!1})},downloadImg:function(e){var t=this;if(this.canDownload){Object(r.c)("/hs_global_web.ai_moodboard.download_clk","queue_id=".concat(e.subTaskId,"&member_id=").concat(this.userInfo.uid,"&language=").concat(this.locale));var n=e.imageUrl;this.isHomestylerApp?Object(o.p)(n).then(function(e){t.callWindVane("HSPlugin","saveAigcPhoto",{data:e.base64}).then(function(e){})}).catch(function(e){}):this.isMobile?Object(o.k)(n):window.open("".concat(n,"?response-content-type=application/octet-stream"),"_blank")}},closePopup:function(){var e=this;this.isHomestylerApp||this.isMobile?setTimeout(function(){e.bigImgShow=!1},500):this.bigImgShow=!1,Object(r.c)("/hs_global_web.ai_moodboard.album_fullscr_close","member_id=".concat(this.userInfo.uid,"&language=").concat(this.locale))},handleBuyMore:function(e){this.bigImgShow=!1,this.$emit("buyMore",e)},queryAlubmAllList:function(e){this.$emit("queryAllList",e)},handleRatingSubmit:function(){this.$emit("queryAllList",!0),this.$emit("queryGroupList",!0)},shareModalInit:function(e,t){var n={title:this.$t("aigc.tdktitle"),description:this.$t("aigc.tdkdescr"),image:e,url:t,text:this.$t("aigc.tdkkeywords")};this.$store.commit("SET_MGMCONFIG",{shareConfig:n})},usertAvaterUrl:function(){return this.userPhoto?this.userPhoto:this.defaultAvatar},shareImg:function(e){var t=this;Object(r.c)("/hs_global_web.ai_moodboard.share_clk","queue_id=".concat(e.subTaskId,"&member_id=").concat(this.userInfo.uid,"&language=").concat(this.locale));var n=e.imageUrl,i=e.originalImageUrl,a=this.isHomestylerApp?"AppShared":"AIShared",s="".concat(this.$global.homestyler,"/aimoodboardSLP?cImgUrl=").concat(n,"&oImgUrl=").concat(i,"&type=").concat(a);this.isHomestylerApp?this.getClientInfo().then(function(){var i=n,a="image";if(t.greaterThanVersion("10.0.0")&&(i=s,a="link"),t.greaterThanVersion("11.2.0")&&(a="aimoodboard"),t.isSupportPoster){var o={url:i,image:n,avatar:t.usertAvaterUrl(),fullName:"".concat(t.userInfo.userFirstName," ").concat(t.userInfo.userLastName),userId:t.userInfo.uid,homestylerId:t.userInfo.homestylerId,modelId:e.taskId,taskId:e.taskId,type:a,tagId:t.hashTagInfo.id,tagName:t.hashTagInfo.name,title:"".concat(t.$t("ai.moodboard.poster.title")),isPublish:"0"};t.callWindVane("HSPlugin","doSharePosterOrPublish",o).then(function(e){Object(r.c)("/hs_global_web.ai_moodboard.share_success","member_id=".concat(t.userInfo.uid,"&language=").concat(t.locale))})}else t.callWindVane("HSPlugin","wakeShareOperation",{url:i,type:a}).then(function(e){Object(r.c)("/hs_global_web.ai_moodboard.share_success","member_id=".concat(t.userInfo.uid,"&language=").concat(t.locale))})}):(this.selectItem=e,this.shareModalInit(n,s),this.$store.commit("SET_MGMSOURCE","ai_moodboard_viewer"),this.$store.commit("SET_MGMSHOW",{show:!0,scene:"AI_REGIST
1ER"}))},posterCommunity:function(e){var t=this;Object(r.c)("/hs_global_web.ai_moodboard.poster_community_clk","queue_id=".concat(e.subTaskId,"&member_id=").concat(this.userInfo.uid,"&language=").concat(this.locale));var n=e.imageUrl,i=e.originalImageUrl,a=this.isHomestylerApp?"AppShared":"AIShared",s="".concat(this.$global.homestyler,"/aimoodboardSLP?cImgUrl=").concat(n,"&oImgUrl=").concat(i,"&type=").concat(a);this.isHomestylerApp&&this.getClientInfo().then(function(){var i=n,a="image";t.greaterThanVersion("10.0.0")&&(i=s,a="link"),t.greaterThanVersion("11.2.0")&&(a="aimoodboard");var o={url:i,image:n,avatar:t.usertAvaterUrl(),fullName:"".concat(t.userInfo.userFirstName," ").concat(t.userInfo.userLastName),userId:t.userInfo.uid,homestylerId:t.userInfo.homestylerId,moodboardId:e.taskId,type:a,tagId:t.hashTagInfo.id,tagName:t.hashTagInfo.name,title:"".concat(t.$t("ai.moodboard.poster.title")),isPublish:"0"};t.callWindVane("HSPlugin","doPublishByAiMoodboard",o).then(function(e){Object(r.c)("/hs_global_web.ai_moodboard.poster_community_success","member_id=".concat(t.userInfo.uid,"&language=").concat(t.locale))})})},enlargeImg:function(e){this.editAlbum||(this.selectItem=e,this.bigImgShow=!0,Object(r.c)("/hs_global_web.ai_moodboard.viewer_clk","member_id=".concat(this.userInfo.uid,"&language=").concat(this.locale)))},handleSelect:function(e,t){var n=this;if(this.editAlbum&&!this.checkDisabled(e)){var a=this.selectedKeys;a=e.checked?this.selectedKeys.filter(function(t){return t!==e.subTaskId}):[].concat(Object(i.a)(this.selectedKeys),[e.subTaskId]),this.$emit("update:selectedKeys",Object(i.a)(a)),this.list=this.list.map(function(e,i){return i===t&&n.$set(e,"checked",!e.checked),h({},e)})}},loadHandler:function(e){this.loadedArr=[].concat(Object(i.a)(this.loadedArr),[e])},handleCheck:function(){},open3DTool:function(){this.$emit("open3DTool",this.selectItem)}})},v=(n(3874),n(18)),b=Object(v.a)(g,function(){var e=this,t=e._self._c;return t("div",{on:{contextmenu:function(e){e.preventDefault()}}},[t("ul",{staticClass:"alubm-list",class:{"alubm-list-row":e.isAll,"alubm-list-app":e.isHomestylerApp}},e._l(e.list,function(n,i){return t("li",{key:n.subTaskId,staticClass:"alubm-card-wrap",class:{checked:n.checked,disabled:e.checkDisabled(n)},on:{click:function(t){return e.handleSelect(n,i)}}},[e.editAlbum?t("el-checkbox",{staticClass:"alubm-checkbox",attrs:{disabled:e.checkDisabled(n)},on:{click:function(t){return t.stopPropagation(),e.handleCheck.apply(null,arguments)},change:function(t){return e.handleSelect(n,i)}},model:{value:n.checked,callback:function(t){e.$set(n,"checked",t)},expression:"item.checked"}}):e._e(),e._v(" "),2===n.processStatus&&n.imageUrl?t("div",{staticClass:"alubm-img-wrap",class:{loaded:e.loadedArr.includes(n.subTaskId)}},[t("div",{staticClass:"alubm-img-mask",on:{click:function(t){return e.enlargeImg(n)}}},[e.editAlbum?e._e():[t("div",{staticClass:"alubm-img-preview",on:{click:function(t){return e.enlargeImg(n)}}},[t("OperateBtn",{attrs:{iconType:"hs_chakandatu",iconFontSize:"30px",iconColor:"#FFFFFF"},on:{click:function(t){return e.enlargeImg(n)}}},[e._v("\n                "+e._s(e.$t("myDesigns.content.view_details"))+"\n              ")])],1),e._v(" "),e.isAll?e._e():t("div",{staticClass:"alubm-img-operate",on:{click:function(e){e.stopPropagation()}}},[t("OperateBtn",{attrs:{iconType:"hs_mian_moxingmanyidu"}},[t("RatingBox",{attrs:{bizId:n.subTaskId,rating:n.score,submitted:n.score>0,title:e.$t("AIGC.dashboard.album.feedback"),sourceValue:n.imageUrl},on:{submit:e.handleRatingSubmit}})],1),e._v(" "),t("OperateBtn",{attrs:{disabled:!e.canDownload,iconType:"hs_mian_xiazai",memberBenefits:!0},on:{click:function(t){return e.downloadImg(n)}}},[e.canDownload?t("span",[e._v(e._s(e.$t("AIGC.dashboard.download")))]):t("MemberUpgrade",{attrs:{showDemo:!1,adaptMobile:!1},on:{upgrade:function(t){return e.$emit("buyMore",{sourcePage:"ai_moodboard_download"})}}})],1),e._v(" "),t("OperateBtn",{attrs:{iconType:"a-22_3dtool_delete"},on:{click:function(t){return e.handleDelete(n)}}},[e._v("\n                "+e._s(e.$t("editProject.content.delete"))+"\n              ")]),e._v(" "),t("OperateBtn",{attrs:{giftType:!e.isHomestylerApp,iconType:"hs_icon_share"},on:{click:function(t){return e.shareImg(n)}}},[e._v("\n                "+e._s(e.$t("editproject.share"))+"\n              ")])],1)]],2),e._v(" "),t("img",{staticClass:"img-loading-placeholder",attrs:{src:e.aspectRatio1,alt:"loading"}}),e._v(" "),t("img",{staticClass:"alubm-img",attrs:{src:e.isAll?"".concat(n.imageUrl,"?x-oss-process=image/resize,m_fill,w_800,h_600/format,webp"):n.imageUrl,alt:"".concat(n.roomType,"-").concat(n.stylerType)},on:{click:function(t){return e.enlargeImg(n)},load:function(t){return e.loadHandler(n.subTaskId)}}})]):[3,4,5].includes(n.processStatus)?t("div",{staticClass:"img-loading"},[t("img",{staticClass:"img-loading-placeholder",attrs:{src:e.aspectRatio1,alt:"loading"}}),e._v(" "),t("div",{staticClass:"img-loading-icon-block"},[t("IconfontView",{attrs:{customClass:"img-shibai-icon",showType:"shibai",customStyle:{fontSize:"80px",color:"#767676"}}}),e._v(" "),t("p",{staticClass:"img-loading-text"},[e._v("\n            "+e._s(e.$t("ai.modeler.upload.error"))+"\n          ")])],1),e._v(" "),t("div",{staticClass:"alubm-img-mask"},[e.isAll?e._e():t("div",{staticClass:"alubm-img-operate",on:{click:function(e){e.stopPropagation()}}},[t("OperateBtn",{attrs:{iconType:"a-22_3dtool_delete"},on:{click:function(t){return e.handleDelete(n)}}},[e._v("\n              "+e._s(e.$t("editProject.content.delete"))+"\n            ")])],1)])]):t("div",{staticClass:"img-loading"},[t("img",{staticClass:"img-loading-placeholder",attrs:{src:e.aspectRatio1,alt:"loading"}}),e._v(" "),t("div",{staticClass:"img-loading-icon-block"},[n.processSchedule>=0&&n.processSchedule<=100?t("span",{staticClass:"img-loading-schedule"},[e._v(e._s("".concat(n.processSchedule,"%")))]):t("IconfontView",{attrs:{customClass:"img-loading-icon",showType:"a-iconloadingcopy",customStyle:{fontSize:"30px",color:"#767676"}}}),e._v(" "),t("p",{staticClass:"img-loading-text"},[e._v("\n            "+e._s(e.$t(0===n.processStatus?"render.status.queue":"floorplan.generateing"))+"\n          ")])],1)])],1)}),0),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:e.bigImgShow,expression:"bigImgShow"}],staticClass:"browser-mask"},[t("Viewer",{attrs:{type:"ai_moodboard",showType:"2d",appShowOpen3D:!1,data:e.selectItem,apply3DToolTips:e.$t("ai_moodboard_generate_design"),showPoster:e.isSupportPoster,canDownload:e.canDownload,fpButtonLoading:e.fpButtonLoading,props3DToolClick:e.open3DTool},on:{close:e.closePopup,buyMore:e.handleBuyMore,queryAllList:e.queryAlubmAllList,downloadImg:e.downloadImg,deleteImg:e.handleDelete,shareImg:e.shareImg,posterCommunity:e.posterCommunity}}
1)],1)])},[],!1,null,"de164f62",null);t.a=b.exports;installComponents(b,{OperateBtn:n(3207).default,RatingBox:n(3216).default,MemberUpgrade:n(3209).default,IconfontView:n(129).default})},3806:function(e,t,n){"use strict";n(30),n(22),n(23),n(19),n(31),n(32);var i=n(8),a=n(1),s=(n(62),n(25),n(15),n(21)),r=n(14),o=n(24),c=n(4473),l=n(129),u=n(3209),d=n(3207),p=n(3216),m=n(363),f=n(3206);function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach(function(t){Object(a.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var v={name:"AlubmCardList",components:{enLargeImage:c.default,MemberUpgrade:u.default,IconfontView:l.default,OperateBtn:d.default,RatingBox:p.default,shareModal:m.a},mixins:[f.a],props:{datasource:{type:Array,default:function(){return[]}},d3Resource:{type:Object,default:function(){}},selectedKeys:{type:Array,default:function(){return[]}},maxSelectedNum:{type:Number,default:function(){return 20}},total:{type:Number,default:function(){return 0}},isAll:{type:Boolean,default:!1},uploading:{type:Boolean,default:!1},canRemoveWatermark:{type:Boolean,default:!1},showWaterMark:{type:Boolean,default:!0},editAlbum:{type:Boolean,default:!1},source:{type:String,default:""},sourceUserKey:{type:String,default:""},navigatorShare:{type:Boolean,default:!1}},data:function(){return{list:[],loadedArr:[],selectItemValue:0,aspectRatio1:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAoHBwkHBgoJCAkLCwoMDxkQDw4ODx4WFxIZJCAmJSMgIyIoLTkwKCo2KyIjMkQyNjs9QEBAJjBGS0U+Sjk/QD3/2wBDAQsLCw8NDx0QEB09KSMpPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT3/wgARCAAUABQDAREAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAf/xAAUAQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIQAxAAAACmgAAAH//EABQQAQAAAAAAAAAAAAAAAAAAADD/2gAIAQEAAT8AH//EABQRAQAAAAAAAAAAAAAAAAAAADD/2gAIAQIBAT8AH//EABQRAQAAAAAAAAAAAAAAAAAAADD/2gAIAQMBAT8AH//Z",aspectRatio2:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAoHBwkHBgoJCAkLCwoMDxkQDw4ODx4WFxIZJCAmJSMgIyIoLTkwKCo2KyIjMkQyNjs9QEBAJjBGS0U+Sjk/QD3/2wBDAQsLCw8NDx0QEB09KSMpPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT3/wgARCAAUACgDAREAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAf/xAAUAQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIQAxAAAACmgAAAAAAH/8QAFBABAAAAAAAAAAAAAAAAAAAAMP/aAAgBAQABPwB//8QAFBEBAAAAAAAAAAAAAAAAAAAAMP/aAAgBAgEBPwB//8QAFBEBAAAAAAAAAAAAAAAAAAAAMP/aAAgBAwEBPwB//9k=",shareModal:{show:!1,config:{}},bigImgShow:!1}},computed:g(g({},Object(s.d)(["locale","userInfo","isHomestylerApp","isMobile"])),{},{curItem:function(){return this.datasource[this.selectItemValue]}}),watch:{datasource:{handler:function(){var e=this;this.list=this.datasource.map(function(t){return g(g({},t),{},{checked:e.selectedKeys.includes(t.subTaskId)})})},immediate:!0},editAlbum:function(e){e&&this.initList()},selected:function(e){this.checked=e}},methods:{initList:function(){var e=this;this.list=this.datasource.map(function(t){return g(g({},t),{},{checked:e.selectedKeys.includes(t.subTaskId)})})},checkDisabled:function(e){return!e.checked&&this.selectedKeys.length>=this.maxSelectedNum||(2!==e.processStatus||!e.imageUrl)},handleOpenClick:function(){var e=this.d3Resource,t=e.transferDesignId,n=void 0===t?"":t,i=e.panoWebSiteUrl,a=void 0===i?"":i,s=e.id,o=void 0===s?"":s;Object(r.c)("/hs_global_web.aigc.open_pano_click","queue_id=".concat(o,"&member_id=").concat(this.userInfo.uid,"&language=").concat(this.locale,"&source=").concat(this.source,"&sourceUserKey=").concat(this.sourceUserKey));var c="/pano?panoUrl=".concat(encodeURIComponent(a),"&taskId=").concat(o,"&assetId=").concat(n);window.open(c,"_blank")},handleDelete:function(e){var t=this;1===this.datasource.length?this.$emit("handleDelete",e.subTaskId,function(){t.b
1igImgShow=!1},e):this.$emit("handleDelete",e.subTaskId,void 0,e)},handleRemoveWatermark:function(e){e.includeWatermark?this.$emit("removeWatermark",e.subTaskId):this.$message.info(this.$t("AIGC.image.no.watermark"))},downloadImg:function(e){var t=this;Object(r.c)("/hs_global_web.aigc.download_clk","queue_id=".concat(e.subTaskId,"&member_id=").concat(this.userInfo.uid,"&language=").concat(this.locale,"&source=").concat(this.source,"&sourceUserKey=").concat(this.sourceUserKey));var n=e.imageUrl;this.isHomestylerApp?Object(o.p)(n).then(function(e){t.callWindVane("HSPlugin","saveAigcPhoto",{data:e.base64}).then(function(e){})}).catch(function(e){}):window.open("".concat(n,"?response-content-type=application/octet-stream"),"_blank")},handleBuyMore:function(e){this.bigImgShow=!1,this.$emit("buyMore",e)},queryAlubmAllList:function(e){this.$emit("queryAllList",e)},queryAlubmGroupList:function(e){this.$emit("queryGroupList",e)},handleRatingSubmit:function(){this.$emit("queryAllList",!0),this.$emit("queryGroupList",!0)},shareModalInit:function(e){var t="".concat(this.$global.homestyler,"/ai-room-design"),n={title:this.$t("aigc.tdktitle"),description:this.$t("aigc.tdkdescr"),image:e,url:t,text:this.$t("aigc.tdkkeywords")};this.shareModal.config=n},shareImg:function(e){var t=this;Object(r.c)("/hs_global_web.aigc.share_clk","queue_id=".concat(e.subTaskId,"&member_id=").concat(this.userInfo.uid,"&language=").concat(this.locale,"&source=").concat(this.source,"&sourceUserKey=").concat(this.sourceUserKey));var n=e.imageUrl;if(this.navigatorShare)try{navigator.share({url:n}).then(function(){Object(r.c)("/hs_global_web.aigc.share_success","member_id=".concat(t.userInfo.uid,"&language=").concat(t.locale,"&source=").concat(t.source,"&sourceUserKey=").concat(t.sourceUserKey))})}catch(e){console(e)}else this.isHomestylerApp?this.callWindVane("HSPlugin","wakeShareOperation",{url:n}).then(function(e){Object(r.c)("/hs_global_web.aigc.share_success","member_id=".concat(t.userInfo.uid,"&language=").concat(t.locale,"&source=").concat(t.source,"&sourceUserKey=").concat(t.sourceUserKey))}):(this.shareModalInit(n),this.shareModal.show=!0)},enlargeImg:function(e){this.uploading||this.editAlbum||(this.selectItemValue=e,this.bigImgShow=!0,Object(r.c)("/hs_global_web.aigc.ai_enlarge_clk","member_id=".concat(this.userInfo.uid,"&language=").concat(this.locale,"&source=").concat(this.source,"&sourceUserKey=").concat(this.sourceUserKey)))},handleSelect:function(e,t){var n=this;if(this.editAlbum&&!this.checkDisabled(e)){var a=this.selectedKeys;a=e.checked?this.selectedKeys.filter(function(t){return t!==e.subTaskId}):[].concat(Object(i.a)(this.selectedKeys),[e.subTaskId]),this.$emit("update:selectedKeys",Object(i.a)(a)),this.list=this.list.map(function(e,i){return i===t&&n.$set(e,"checked",!e.checked),g({},e)})}},loadHandler:function(e){this.loadedArr=[].concat(Object(i.a)(this.loadedArr),[e])},handleCheck:function(){}}},b=(n(3884),n(18)),_=Object(b.a)(v,function(){var e=this,t=e._self._c;return t("div",{on:{contextmenu:function(e){e.preventDefault()}}},[!e.isAll&&!e.isHomestylerApp&&e.d3Resource&&e.d3Resource.id?t("div",{staticClass:"drive-traffic"},[2!==e.d3Resource.status||e.d3Resource.d3ResGenerating?t("div",{staticClass:"img-loading"},[t("div",{staticClass:"img-loading-icon-block"},[t("IconfontView",{attrs:{customClass:"img-loading-icon",customStyle:{fontSize:"30px",color:"#767676"},showType:"a-iconloadingcopy"}}),e._v(" "),t("p",{staticClass:"drive-traffic-pendding"},[e._v("\n          "+e._s(e.$t("aidesignerpg.roomloading.title1"))+"\n        ")])],1)]):t("div",{staticClass:"drive-traffic-img",on:{click:e.handleOpenClick}},[t("p",{staticClass:"drive-traffic-title"},[e._v("\n        "+e._s(e.$t("aidesignerpg.roomloading.title2"))+"\n      ")]),e._v(" "),t("img",{staticClass:"traffic-resource-img",attrs:{src:"".concat(e.d3Resource.coverUrl,"?x-oss-process=image/resize,m_fill,h_320,w_1256/format,webp"),alt:"3d-traffic-resource-img"}}),e._v(" "),t("div",{staticClass:"drive-traffic-button",on:{click:function(t){return t.stopPropagation(),e.handleOpenClick.apply(null,arguments)}}},[t("IconfontView",{attrs:{customClass:"drive-traffic-icon",customStyle:{fontSize:"20px",color:"#FFF"},showType:"a-3dviewicon"}}),e._v("\n        "+e._s(e.$t("aidesignerpg.roomview.button"))+"\n        "),t("IconfontView",{attrs:{customClass:"right-arrow-icon",customStyle:{fontSize:"10px",color:"#ffffff"},showType:"hs_xiao_danjiantou_shang"}}
1)],1)])]):e._e(),e._v(" "),t("ul",{staticClass:"alubm-list",class:{"alubm-list-row":e.isAll,"alubm-list-app":e.isHomestylerApp}},e._l(e.list,function(n,i){return t("li",{key:n.subTaskId,staticClass:"alubm-card-wrap",class:{checked:n.checked,disabled:e.checkDisabled(n)},on:{click:function(t){return e.handleSelect(n,i)}}},[e.editAlbum?t("el-checkbox",{staticClass:"alubm-checkbox",attrs:{disabled:e.checkDisabled(n)},on:{click:function(t){return t.stopPropagation(),e.handleCheck.apply(null,arguments)},change:function(t){return e.handleSelect(n,i)}},model:{value:n.checked,callback:function(t){e.$set(n,"checked",t)},expression:"item.checked"}}):e._e(),e._v(" "),2===n.processStatus&&n.imageUrl?t("div",{staticClass:"alubm-img-wrap",class:{loaded:e.loadedArr.includes(n.subTaskId)}},[t("div",{staticClass:"alubm-img-mask",on:{click:function(t){return e.enlargeImg(i)}}},[e.editAlbum?e._e():[t("div",{staticClass:"alubm-img-preview",on:{click:function(t){return e.enlargeImg(i)}}},[t("OperateBtn",{attrs:{iconType:"hs_chakandatu",iconFontSize:"30px",iconColor:"#FFFFFF"},on:{click:function(t){return e.enlargeImg(i)}}},[e._v("\n                "+e._s(e.$t("myDesigns.content.view_details"))+"\n              ")])],1),e._v(" "),e.isAll?e._e():t("div",{staticClass:"alubm-img-operate",on:{click:function(e){e.stopPropagation()}}},[t("OperateBtn",{attrs:{iconType:"hs_mian_moxingmanyidu"}},[t("RatingBox",{attrs:{bizId:n.subTaskId,rating:n.score,submitted:n.score>0,title:e.$t("AIGC.dashboard.album.feedback"),sourceValue:n.imageUrl},on:{submit:e.handleRatingSubmit}})],1),e._v(" "),t("OperateBtn",{attrs:{iconType:"hs_mian_xiazai"},on:{click:function(t){return e.downloadImg(n)}}},[e._v("\n                "+e._s(e.$t("AIGC.dashboard.download"))+"\n              ")]),e._v(" "),t("OperateBtn",{attrs:{iconType:"a-22_3dtool_delete"},on:{click:function(t){return e.handleDelete(n)}}},[e._v("\n                "+e._s(e.$t("editProject.content.delete"))+"\n              ")]),e._v(" "),e.showWaterMark?t("OperateBtn",{attrs:{disabled:!e.canRemoveWatermark,iconType:"hs_mian_qushuiyin",memberBenefits:!0},on:{click:function(t){return e.handleRemoveWatermark(n)}}},[e.canRemoveWatermark?t("span",[e._v(e._s(e.$t("AIGC.dashboard.album.watermark")))]):t("MemberUpgrade",{on:{upgrade:function(t){return e.$emit("buyMore",{sourcePage:"ai-designer-watermark"})}}})],1):e._e(),e._v(" "),t("OperateBtn",{attrs:{iconType:"hs_icon_share"},on:{click:function(t){return e.shareImg(n)}}},[e._v("\n                "+e._s(e.$t("editproject.share"))+"\n              ")])],1)]],2),e._v(" "),t("img",{staticClass:"img-loading-placeholder",attrs:{src:e.isAll?e.aspectRatio1:e.aspectRatio2,alt:"loading"}}),e._v(" "),t("img",{staticClass:"alubm-img",attrs:{src:e.isAll?"".concat(n.imageUrl,"?x-oss-process=image/resize,m_fill,h_700,w_700/format,webp"):n.imageUrl,alt:"".concat(n.roomType,"-").concat(n.stylerType)},on:{click:function(t){return e.enlargeImg(i)},load:function(t){return e.loadHandler(n.subTaskId)}}})]):t("div",{staticClass:"img-loading"},[t("img",{staticClass:"img-loading-placeholder",attrs:{src:e.isAll?e.aspectRatio1:e.aspectRatio2,alt:"loading"}}),e._v(" "),t("div",{staticClass:"img-loading-icon-block"},[t("IconfontView",{attrs:{customClass:"img-loading-icon",customStyle:{fontSize:"30px",color:"#767676"},showType:"a-iconloadingcopy"}})],1)])],1)}),0),e._v(" "),t("enLargeImage",{attrs:{defaultIndex:e.selectItemValue,total:e.total,data:e.datasource,canRemoveWatermark:e.canRemoveWatermark,showWaterMark:e.showWaterMark,source:e.source,sourceUserKey:e.sourceUserKey,navigatorShare:e.navigatorShare},on:{buyMore:e.handleBuyMore,queryAllList:e.queryAlubmAllList,queryGroupList:e.queryAlubmGroupList,downloadImg:e.downloadImg,deleteImg:e.handleDelete,removeWatermark:e.handleRemoveWatermark,shareImg:e.shareImg},model:{value:e.bigImgShow,callback:function(t){e.bigImgShow=t},expression:"bigImgShow"}}),e._v(" "),t("share-modal",{attrs:{show:e.shareModal.show,shareCfg:e.shareModal.config,shareName:"aigc"},on:{"update:show":function(t){return e.$set(e.shareModal,"show",t)}}})],1)},[],!1,null,"e83fb37e",null);t.a=_.exports;installComponents(_,{IconfontView:n(129).default,OperateBtn:n(3207).default,RatingBox:n(3216).default,MemberUpgrade:n(3209).default})},3807:function(e,t,n){"use strict";n(30),n(22),n(44),n(73);var i={name:"AiDesigner",components:{},props:{list:{type:Array,default:function(){return[]}},disabledList:{type:Array,default:function(){return[]}},isClear:{type:Boolean,default:!1}},data:function(){return{selectItemValue:""}},watch:{list:function(){this.init()},isClear:function(e){e&&(this.selectItemValue="")}},mounted:function(){this.init()},methods:{init:function(){var e=this,t=this.list.find(function(t){return!e.disabledList.includes(t.code)});t&&(this.selectItemValue=t.code,this.$emit("select",t))},selectItem:function(e){this.disabledList.includes(e.code)||(this.selectItemValue=e.code,this.$emit("select",e))}}},a=(n(3886),n(18)),s=Object(a.a)(i,function(){var e=this,t=e._self._c;return t("ul",{staticClass:"scroll-list-wrap"},e._l(e.list,function(n,i){return t("li",{key:i,staticClass:"tag-item",class:{disabled:e.disabledList.includes(n.code),"select-item":e.selectItemValue===n.co
1de},on:{click:function(t){return e.selectItem(n)}}},[t("div",{staticClass:"select-img",class:{"select-img-line":e.selectItemValue===n.code}},[n.tagValue?t("span",{staticClass:"select-tag"},[e._v(e._s(n.tagValue))]):e._e(),e._v(" "),t("img",{attrs:{src:"".concat(n.imageUrl),alt:n.name}})]),e._v(" "),t("p",{staticClass:"style-name"},[e._v("\n      "+e._s(n.name)+"\n    ")]),e._v(" "),e.selectItemValue===n.code?t("i",{staticClass:"iconfont select-icon"}):e._e()])}),0)},[],!1,null,"e050df0e",null);t.a=s.exports},3808:function(e,t,n){"use strict";n(44),n(23),n(19),n(15),n(31),n(32);var i=n(1),a=n(8),s=(n(37),n(21)),r=n(190),o=n(170),c=n(189),l=n(3239);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach(function(t){Object(i.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var p={name:"ArticleList",directives:{inview:c.b},components:{RectLoad:o.a},props:{articleList:{type:Array,default:function(){return[]}},recommendList:{type:Array,default:function(){return[]}},fetchData:{type:Function,required:!0},spbName:{type:String,default:"article_list"}},data:function(){return{loading:!1,that:this,contentList:Object(a.a)(this.articleList),pagerObj:{pageNo:1,pageSize:24,total:0,done:!0},noDataImg:n(325)}},computed:d({},Object(s.d)(["locale","userInfo"])),watch:{articleList:function(e){this.pagerObj.pageNo=1,this.pagerObj.done=e.length>=this.pagerObj.pageSize,this.contentList=Object(a.a)(e)}},mounted:function(){this.contentList.length<=0&&(this.pagerObj.pageNo=0,this.handleScroll())},methods:{designTimeFormat:r.a,getArticleHref:function(e){var t=Object(l.b)(e.type,e.includeHotWord);return t?"/article/".concat(t,"/").concat(e.path):"/article/".concat(e.path)},headerLinkHandler:function(e,t){globalSpmClick("".concat(this.spbName,".").concat(e),d({},t))},handleScroll:function(){var e=this,t=this.pagerObj;!this.loading&&t.done&&(this.loading=!0,this.fetchData({pageSize:t.pageSize,pageNo:t.pageNo+1||1}).then(function(n){var i,s=n.result,r=n.pageNo;(t.pageNo=r,t.done=0!==s.length,1===r)?e.contentList=s:(i=e.contentList).push.apply(i,Object(a.a)(s))}).catch(function(e){}).finally(function(){e.loading=!1}))}}},m=(n(3904),n(18)),f=Object(m.a)(p,function(){var e=this,t=e._self._c;
1return t("section",{staticClass:"article_content_wrap"},[t("section",{staticClass:"article_list_wrap"},[e._l(e.contentList,function(n,i){return t("article",{key:i,staticClass:"article_list_item"},[t("h2",{staticClass:"item_title"},[t("a",{staticClass:"article_link",attrs:{href:e.getArticleHref(n),target:"_blank"},on:{click:function(t){return e.headerLinkHandler("open_article",{path:n.path})}}},[e._v(e._s(n.title))])]),e._v(" "),t("p",{staticClass:"item_desc"},[e._v("\n        "+e._s(n.webDescribe)+"\n      ")]),e._v(" "),t("p",{staticClass:"item_time"},[e._v(e._s(e.designTimeFormat(n.gmtCreate,e.that)))])])}),e._v(" "),t("div",{directives:[{name:"inview",rawName:"v-inview",value:e.handleScroll,expression:"handleScroll"}],staticClass:"load-more"},[t("RectLoad",{directives:[{name:"show",rawName:"v-show",value:e.pagerObj.done,expression:"pagerObj.done"}]})],1),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:e.contentList.length<=0&&!e.pagerObj.done,expression:"contentList.length <= 0 && !pagerObj.done"}],staticClass:"no_data_warp"},[t("img",{staticClass:"no_data_img",attrs:{src:e.noDataImg}}),e._v(" "),t("span",[e._v(e._s(e.$t("app_feed_filter_null")))])])],2),e._v(" "),t("div",{staticClass:"recommend_article_list_wrap"},[t("h2",{staticClass:"recommend_title"},[e._v(e._s(e.$t("seopg.navi.recommend")))]),e._v(" "),e._l(e.recommendList,function(n,i){return t("a",{key:i,staticClass:"article_link",attrs:{href:n.url,target:"_blank"},on:{click:function(t){return e.headerLinkHandler("open_recommend",{path:n.url})}}},[e._v(e._s(n.name))])})],2)])},[],!1,null,"6a136f00",null);t.a=f.exports},3809:function(e,t,n){"use strict";n(44),n(69),n(3148),n(119);var i=n(3149),a=n.n(i),s=(n(73),n(62),n(15),n(24)),r={components:{Pagination:a.a},filters:{moment:function(e){return e?Object(s.R)(e,"dd mm, YYYY"):""},categoryName:function(e,t){if(!e)return"Uncategorized";var n=t.find(function(t){return t.id===e});return n?n.name||"Uncategorized":void 0}},props:{blogs:{type:Array,default:function(){return[]}},category:{type:Array,default:function(){return[]}},pager:{type:Object,default:function(){}},totalPages:{type:Number,default:1}},data:function(){return{that:this,navScroll:!1,defaultBlogBg:n(1739)}},computed:{firstBlog:function(){return this.blogs[0]||{categories:[],tags:[],title:{rendered:""},excerpt:{rendered:""}}},availCategory:function(){return this.category.filter(function(e){return 1!==e.id})}},mounted:function(){var e=this;window.addEventListener("scroll",function(){var t=document.documentElement.scrollTop||document.body.scrollTop;e.navScroll=t>385})},methods:{changePage:function(e){this.$emit("changePage",e)}}},o=(n(3915),n(18)),c=Object(o.a)(r,function(){var e=this,t=e._self._c;return t("div",{staticClass:"blog-category"},[t("div",{staticClass:"gallery-middle-warp"},[t("div",{staticClass:"gallery-middle"},[t("a",{staticClass:"gallery-middle-list",attrs:{href:"https://www.facebook.com/homestyler.interiordesign/",target:"_blank",rel:"nofollow"}},[t("i",{staticClass:"fb-lg-icon"}),e._v(" "),t("span",[e._v(e._s(e.$t("gallery.officialPresence")))])]),e._v(" "),t("a",{staticClass:"gallery-middle-list",attrs:{href:"https://twitter.com/homestyler",target:"_blank",rel:"nofollow"}},[t("i",{staticClass:"tw-lg-icon"}),e._v(" "),t("span",[e._v(e._s(e.$t("gallery.designTips")))])]),e._v(" "),t("a",{staticClass:"gallery-middle-list",attrs:{href:"https://www.instagram.com/homestyler.interiordesign/",target:"_blank",rel:"nofollow"}},[t("i",{staticClass:"ins-lg-icon"}),e._v(" "),t("span",[e._v(e._s(e.$t("gallery.inspiringImage")))])])])]),e._v(" "),t("div",{staticClass:"blog-content"},[t("div",{staticClass:"blog-list-box"},[t("div",{directives:[{name:"show",rawName:"v-show",value:e.firstBlog.id,expression:"firstBlog.id"}],staticClass:"first-blog"},[t("div",{staticClass:"blog-list-tag"},[e.firstBlog.categories[0]?t("a",{attrs:{href:"/blog/category/".concat(e.firstBlog.categories[0].id||"")}},[e._v(e._s(e.firstBlog.categories[0].name))]):e._e()]),e._v(" "),t("a",{staticClass:"blog-bg-box",attrs:{href:"/blog/".concat(e.firstBlog.id)}},[t("img",{attrs:{src:e.firstBlog.previewImageUrlList&&e.firstBlog.previewImageUrlList[0]||e.defaultBlogBg,alt:"blog-bg-box"}}),e._v(" "),t("p",{staticClass:"image-overlay"})]),e._v(" "),t("div",{staticClass:"blog-list-info"},[t("p",{staticClass:"blog-time"},[e._v("\n            "+e._s(e._f("moment")(e.firstBlog.date))+"\n          ")]),e._v(" "),t("h3",{staticClass:"blog-title"},[t("a",{attrs:{href:"/blog/".concat(e.firstBlog.id),target:"_black"}},[e._v(e._s(e.firstBlog.title.rendered))])]),e._v(" "),e.firstBlog.excerpt?t("p",{staticClass:"blog-excerpt"}
1,[t("span",[e._v(e._s(e.firstBlog.excerpt.rendered))])]):e._e()])]),e._v(" "),e._l(e.blogs.slice(1),function(n){return t("div",{key:n.id,staticClass:"blog-list"},[t("div",{staticClass:"blog-list-tag"},[n.categories[0]?t("a",{attrs:{href:"/blog/category/".concat(n.categories[0].id||"")}},[e._v(e._s(n.categories[0].name))]):e._e()]),e._v(" "),t("a",{staticClass:"blog-bg-box",attrs:{href:"/blog/".concat(n.id)}},[t("img",{attrs:{src:n.previewImageUrlList&&n.previewImageUrlList[0]||e.defaultBlogBg,alt:"blog-bg-box"}}),e._v(" "),t("p",{staticClass:"image-overlay"})]),e._v(" "),t("div",{staticClass:"blog-list-info"},[t("p",{staticClass:"blog-time"},[e._v("\n            "+e._s(e._f("moment")(n.date))+"\n          ")]),e._v(" "),t("h3",{staticClass:"blog-title"},[t("a",{attrs:{href:"/blog/".concat(n.id),target:"_black"}},[e._v(e._s(n.title.rendered))])]),e._v(" "),n.excerpt?t("p",{staticClass:"blog-excerpt"},[t("span",[e._v(e._s(n.excerpt.rendered))])]):e._e()])])}),e._v(" "),e.pager.total>e.pager.limit?t("Pagination",{attrs:{background:"",layout:"total, prev, pager, next, jumper",pageSize:e.pager.limit,currentPage:e.pager.page,total:e.pager.total},on:{"update:currentPage":function(t){return e.$set(e.pager,"page",t)},"update:current-page":function(t){return e.$set(e.pager,"page",t)},"current-change":e.changePage}}):e._e()],2),e._v(" "),t("div",{staticClass:"nav-menu-body",class:{srcoll:e.navScroll}},[t("p",{staticClass:"title"},[e._v("\n        "+e._s(e.$t("blog.category"))+"\n      ")]),e._v(" "),t("ul",{staticClass:"nav-menu"},e._l(e.availCategory,function(n){return t("li",{key:n.id},[t("a",{staticClass:"CategoriesTitle",attrs:{href:"/blog/category/".concat(n.id)}},[e._v(e._s("Uncategorized"===n.name?"All categories":n.name))])])}),0)])])])},[],!1,null,"03e54927",null);t.a=c.exports},3810:function(e,t,n){"use strict";n(44);var i=n(20),a=(n(62),n(88),n(25),n(989),n(12)),s={filters:{classFilter:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t="".concat(e.icon);return e.active&&(t+=" "+e.activeIcon),t}},components:{},mixins:[n(446).a],props:{likeDataImg:{type:Object,default:function(){return{}}},likeDataInfo:{type:Object,default:function(){return{}}},customSideCss:{type:Object,default:function(){return{}}},caseItemInfo:{type:Object,default:function(){return{}}},defaultStyle:{type:Object,default:function(){return{}}},scrollTop:{type:Number,default:0},top:{type:String,default:"100"},right:{type:String,default:"48"},bottom:{type:String,default:"unset"},size:{type:String,default:"normal"},btns:{type:[String,Array],default:function(){return["like","edit"]}},likeBtn:{type:Object,default:function(){return{}}},editBtn:{type:Object,default:function(){return{}}},likeBtnActive:{type:Boolean,default:!1},editBtnActive:{type:Boolean,default:!1},needFixed:{type:Boolean,default:!0},commentsCount:{type:Number,default:0},likesCount:{type:Number,default:0},msgShow:{type:Boolean,default:!1}},data:function(){return{zIndex:1,extendClass:"",fixed:!1,likeBtnCfg:{name:"like",icon:"icon-like",activeIcon:"red",active:!1,title:"editproject.like"},editBtnCfg:{name:"edit",icon:"icon-edit1",activeIcon:"",hover:"icon-hover",active:!1},menuBtnCfg:{name:"menu",icon:"icon-caozuo",activeIcon:"",hover:"icon-hover",active:!1},shareBtnCfg:{name:"share",icon:"iconhs_xian_share",activeIcon:"",hover:"icon-hover",active:!1,title:"editproject.share"},replyBtnCfg:{name:"reply",icon:"icona-hs_xian_newcomment",activeIcon:"",hover:"icon-hover",active:!1,title:"editproject.comment"}}},computed:{customCss:function(){return"{}"===JSON.stringify(this.customSideCss)?{height:"18px",padding:"0px 4px",borderRadius:"10px 8px 8px 3px",position:"absolute",left:"29px",top:"-7px",display:"inline-block",color:"#33353b",lineHeight:"15px",fontSize:"14px",backgroundColor:"#e1e1e1",border:"1px solid rgba(212, 212, 212, 1)"}:this.customSideCss},visiblebtns:function(){var e=this,t=this.btns;return"string"===Object(i.a)(t)&&(t=this.btns.split(" ")),t.map&&"function"==typeof t.map&&(t=t.reduce(function(t,n){var i=e[n+"BtnCfg"];return i&&t.push(i),t},[])),t},sideBtnWarpStyle:function(){var e={};return this.fixed&&this.needFixed?(e={position:"fixed",top:this.fixPixel(this.top),right:this.fixPixel(this.right),bottom:this.fixPixel(this.bottom),opacity:1,zIndex:this.zIndex},e=this.clearUnsetStyle(e)):(e={opacity:0,zIndex:this.zIndex},Object.assign(e,this.defaultStyle)),e}},watch:{likeBtnActive:{handler:function(e){this.likeBtnCfg.active=e},immediate:!0},"caseItemInfo.likesCount":function(e,t){}},mounted:function(){var e=this;window.addEventListener("scroll",this.setScrollEvent),this.$nextTick(function(){e.setScrollEvent()})},destroyed:function(){window.removeEventListener("scroll",this.setScrollEvent)},methods:{handleLikeCount:function(e){return a.a.other.likeCount(e)},handleLikeChange:function(e){this.$emit("btnClick","like",e)},onBtnClick:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.name&&(this[e.name+"BtnCfg"]&&(this.$emit("btnClick",e.name,e.active),this.$emit(e.name+"Btnclick",e.active)))},setScrollEvent:function(){var e=this;(document.documentElement.scrollTop||document.body.scrollTop)>=this.scrollTop?(this.fixed=!0,this.zIndex=1,this.$nextTick(function(){e.extendClass="ease-hide"})):this.fixed=!1},clearUnsetStyle:function(e){for(var t in e)"unset"===e[t]&&delete e[t];return e},fixPixel:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return/^\d+\.*(\d*)$/.test(e+="")?e+"px":e},onTransitionend:function(){this.fixed||(this.zIndex=-1,this.extendClass="")}}},r=s,o=(n(3918),n(18)),c=Object(o.a)(r,function(){var e=this,t=e._self._c;return t("div",{staticClass:"side-btns-warp",class:e.extendClass,style:e.sideBtnWarpStyle,on:{transitionend:e.onTransitionend}},e._l(e.visiblebtns,function(n,i){return t("div",{key:i,staticClass:"side-btn",class:n.active?"":n.hover,attrs:{title:e.$t(n.title)}},["like"!==n.name?t("span",{on:{click:function(t){return e.onBtnClick(n)}}},["reply"===n.name&&e.msgShow?t("span",{staticClass:"num"}
1,[e._v(e._s(e.commentsCount||0))]):e._e(),e._v(" "),t("i",{staticClass:"iconfont",class:e._f("classFilter")(n)})]):t("SocialLikes",{key:e.caseItemInfo.caseId,attrs:{size:"big",likeDataOther:e.likeDataInfo,likeData:e.caseItemInfo,customCountStyle:e.customCss,handleLikeCountFn:e.handleLikeCount,likeDataImgInfo:e.likeDataImg},on:{"like-changed":e.handleLikeChange}}),e._v(" "),e.msgShow?t("div",{staticClass:"common-tips"},[e._v("\n      "+e._s(e.$t(n.title))+"\n      "),t("i",{staticClass:"iconfont tips-icon"})]):e._e()],1)}),0)},[],!1,null,"f957592c",null);t.a=c.exports;installComponents(c,{SocialLikes:n(443).default})},3811:function(e,t,n){"use strict";n(44);var i={name:"MatchDialog",mixins:[n(280).a],props:{show:{type:Boolean,default:!1},data:{type:Object,default:function(){return{}}}},computed:{coverUrl:function(){return"https://img.alicdn.com/imgextra/i4/O1CN01qo1poO1XNHvouMhda_!!6000000002911-2-tps-1800-390.png"}},methods:{closeDialog:function(){this.$emit("update:show",!1)},confirm:function(){this.$emit("confirm",this.data)},openDetail:function(){var e=this.data,t=e.caseId,n=e.caseFrom,i=e.initTitle,a=e.name,s=void 0===a?"":a,r=this.getKeyWords(i,s),o=1===n?"web":"mobile",c="/ai-interior-design-detail/".concat(r,"-").concat(o,"-").concat(t);window.open(c,"_blank"),this.closeDialog()}}},a=(n(3921),n(18)),s=Object(a.a)(i,function(){var e=this,t=e._self._c;return t("el-dialog",{staticClass:"result_dialog",attrs:{visible:e.show,width:"900px"},on:{close:e.closeDialog}},[t("img",{staticClass:"bgImg",attrs:{src:e.coverUrl,width:"100%",height:"206"}}),e._v(" "),t("div",{staticClass:"header"},[t("p",{staticClass:"title"},[e._v("\n      "+e._s(e.$t("web_tool_challenge_status"))+"\n    ")]),e._v(" "),t("span",{staticClass:"content"},[e._v(e._s(e.$t("web_tool_challenge_tips")))])]),e._v(" "),t("div",{staticClass:"footer"},[t("div",{staticClass:"btn confirm",on:{click:e.openDetail}},[e._v("\n      "+e._s(e.$t("web_tool_challenge_button"))+"\n    ")])])])},[],!1,null,"6ca71bce",null);t.a=s.exports},3812:function(e,t,n){"use strict";n(44),n(603),n(30),n(22);var i=n(51),a={name:"MatchDialog",props:{show:{type:Boolean,default:!1},data:{type:Object,default:function(){return{}}}},computed:{coverUrl:function(){var e=this.data.coverUrl,t=void 0===e?"":e;return t.includes("x-oss-process=image")?t:Object(i.d)(t,900)}},methods:{closeDialog:function(){this.$emit("update:show",!1)},confirm:function(){this.$emit("confirm",this.data)}}},s=(n(3923),n(18)),r=Object(s.a)(a,function(){var e=this,t=e._self._c;return t("el-dialog",{staticClass:"match_dialog",attrs:{visible:e.show,width:"900px",center:""},on:{close:e.closeDialog}},[t("div",{staticClass:"header"},[t("p",{staticClass:"title"},[e._v("\n      "+e._s(e.$t("web_tool_challenge_title"))+"\n    ")]),e._v(" "),t("span",{staticClass:"content"},[e._v(e._s(e.$t("web_tool_challenge_descr",{designName:e.data.name})))]),e._v(" "),t("p")]),e._v(" "),t("img",{staticClass:"cover",attrs:{src:e.coverUrl,width:"840",height:"366"}}),e._v(" "),t("div",{staticClass:"footer"},[t("div",{staticClass:"btn cancel",on:{click:e.closeDialog}},[e._v("\n      "+e._s(e.$t("tool.abtest.leftbtn"))+"\n    ")]),e._v(" "),t("div",{staticClass:"btn confirm",on:{click:e.confirm}},[e._v("\n      "+e._s(e.$t("pricing2.confirmyes"))+"\n    ")])])])},[],!1,null,"482cad71",null);t.a=r.exports},3813:function(e,t,n){"use strict";n(62);var i=n(51),a={name:"LearnCard",components:{IconfontView:n(129).default},props:{cover:{type:String,default:""},title:{type:String,default:""},duration:{type:String,default:""},href:{type:String,default:"#"},video:{type:Number,default:0},id:{type:[String,Number],default:""}},data:function(){return{isHovered:!1}},methods:{handleClick:function(){this.$emit("click")},buildImgUrl:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:480;return Object(i.d)(e,t)}}},s=a,r=(n(4007),n(18)),o=Object(r.a)(s,function(){var e=this,t=e._self._c;return t("div",{staticClass:"video-card",on:{click:e.handleClick,mouseenter:function(t){e.isHovered=!0},mouseleave:function(t){e.isHovered=!1}}},[t("div",{staticClass:"video-card__thumbnail"},[e.cover?t("img",{staticClass:"video-card__image",attrs:{src:e.buildImgUrl(e.cover),alt:e.title,loading:"lazy"}}
1):e._e(),e._v(" "),1===e.video?t("div",{staticClass:"video-card__play-icon",class:{show:e.isHovered}},[t("IconfontView",{attrs:{customStyle:{color:"#fff",fontSize:"18px",marginLeft:"2px"},showType:"hs_mian_zanting"}})],1):e._e(),e._v(" "),e.duration?t("div",{staticClass:"video-card__duration"},[e._v("\n      "+e._s(e.duration)+"\n    ")]):e._e()]),e._v(" "),t("div",{staticClass:"video-card__title"},[e._v("\n    "+e._s(e.title)+"\n  ")])])},[],!1,null,"6dc175ad",null);t.a=o.exports;installComponents(o,{IconfontView:n(129).default})},3814:function(e,t,n){"use strict";n(44),n(62);var i=n(24),a={name:"ShowBadgeDialog",props:{visible:{type:Boolean,default:!1},currentBadgeIndex:{type:Number,default:0},currentBadgeList:{type:Array,default:function(){return[]}},showShare:{type:Boolean,default:!0},onShare:{type:Function},onClose:{type:Function},onChange:{type:Function}},methods:{moment:function(e){return e?Object(i.R)(Number(e),"YYYY.mm.dd"):""}}},s=(n(4024),n(18)),r=Object(s.a)(a,function(){var e=this,t=e._self._c;return t("el-dialog",{attrs:{customClass:"show-badge-dialog",visible:e.visible,closeOnPressEscape:!0,beforeClose:e.onClose},on:{"update:visible":function(t){e.visible=t}}},[t("div",{staticClass:"show-badge-bg"}),e._v(" "),t("el-carousel",{attrs:{trigger:"click",height:"534px",indicatorPosition:"none",arrow:"always",autoplay:!1,loop:!1,initialIndex:e.currentBadgeIndex},on:{change:e.onChange}},e._l(e.currentBadgeList,function(n){return t("el-carousel-item",{key:n.name},[t("div",{staticClass:"carousel-content"},[t("img",{staticClass:"badge-img",class:{no_reach:!n.alreadyHave},attrs:{src:n.normalImageUrl,alt:""}}),e._v(" "),t("div",{staticClass:"badge-name",class:{"badge-name__gradient":n.alreadyHave}},[e._v("\n          "+e._s(n.name)+"\n        ")]),e._v(" "),t("div",{staticClass:"badge-description"},[e._v("\n          "+e._s(n.description)+"\n        ")]),e._v(" "),n.alreadyHave?t("div",{staticClass:"badge-bottom"},[t("div",{staticClass:"badge-time"},[e._v("\n            "+e._s(e.$t("earned_badges",{num:e.moment(n.medalAwardTime)}))+"\n          ")]),e._v(" "),e.showShare?t("el-button",{staticClass:"share-btn",attrs:{round:""},on:{click:function(t){return e.onShare(n)}}},[t("i",{staticClass:"iconfont iconhs_filled_share"}),e._v(" "+e._s(e.$t("share_refferal"))+"\n          ")]):e._e()],1):e._e()])])}),1),e._v(" "),t("div",{staticClass:"close",on:{click:e.onClose}},[t("i",{staticClass:"iconfont icon-close"})])],1)},[],!1,null,null,null);t.a=r.exports},3815:function(e,t,n){"use strict";n(23),n(19),n(31),n(32);var i=n(7),a=n(1),s=(n(38),n(62),n(15),n(37),n(88),n(822),n(44),n(232)),r=n.n(s),o=n(21),c=n(109),l=n(150),u=n(188);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach(function(t){Object(a.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var m={name:"ShareDesignJourney",components:{},mixins:[l.a,u.a],props:{joinedDays:{type:Number,default:0},renderCount:{type:Number,default:0},owner:{type:Object,default:function(){return{}}},designNumber:{type:Number,default:0},showShareModel:{type:Object,default:function(){return{}}}},data:function(){return{canvasWidth:360,canvasHeight:640,uploadImgData:void 0,uploadImgUrl:void 0}},computed:p(p({},Object(o.d)(["locale"])),{},{renderData:function(){return{joinedDays:this.joinedDays,renderCount:this.renderCount,owner:this.owner,designNumber:this.designNumber,locale:this.locale}},userName:function(){var e=this.owner,t=e.firstName,n=e.lastName,i=[t,void 0===n?"":n].filter(function(e){return!!e});return i.length>0?i.join(" "):this.$t("avatar.nickname")},usertAvaterUrl:function(){return this.owner.avatar?"".concat(this.owner.avatar,"?x-oss-process=image/resize,m_mfit,h_120, w_120/format,webp"):this.defaultAvatar}}),watch:{renderData:function(e){this.uploadImgData=void 0,this.uploadImgUrl=void 0,this.drawImageAndText()}},methods:{drawImageAndText:function(){var e=document.createElement("canvas"),t=e.getContext("2d"),n=globalThis.devicePixelRatio||1;e.width=this.canvasWidth*n,e.height=this.canvasHeight*n,t.clearRect(0,0,e.width,e.height),t.imageSmoothingEnabled=!0,t.imageSmoothingQuality="high",t.scale(n,n),this.drawBgImage(e,t)},drawBgImage:function(e,t){var i=this,a=new Image;a.crossOrigin="anonymous",a.onload=function(){var n=a.width,s=a.height;t.drawImage(a,0,0,n,s,0,0,i.canvasWidth,i.canvasHeight),i.drawAvatar(e,t)},a.src=n(1853)},drawAvatar:function(e,t){var n=this,i=new Image;i.crossOrigin="anonymous",t.save(),i.onload=function(){var a=36,s=n.canvasWidth/2-a;t.beginPath();var r=s+a;t.arc(r,128,a,0,2*Math.PI,!1),t.clip(),t.drawImage(i,0,0,i.width,i.height,s,92,72,72),t.restore(
1),n.drawTexts(e,t)},i.src=this.usertAvaterUrl},drawTexts:function(e,t){var n=this,i=this.canvasWidth,a=this.userName,s=this.joinedDays,r=this.designNumber,o=this.renderCount;t.fillStyle="#fff";var c=a;t.font="500 18px AlibabaSans-Medium";var l=t.measureText(c).width;t.fillText(c,i/2-l/2,200),c=this.$t("share.journey.tip1"),t.font="500 16px AlibabaSans-Light",l=t.measureText(c).width,t.fillText(c,i/2-l/2,250),c=this.$t("share.journey.tip2"),l=t.measureText(c).width,t.fillText(c,i/2-l/2,310),c=this.$t("share.journey.day"),t.font="900 24px AlibabaSans-HeavyItalic",l=t.measureText(c).width;var u=s;t.fillStyle="#FF5C00",t.font="900 38px AlibabaSans-HeavyItalic";var d=t.measureText(u).width;t.fillText(u,i/2-(l+d)/2,360),t.fillStyle="#fff",t.font="900 24px AlibabaSans-HeavyItalic",t.fillText(c,i/2+d/2-l/2+2,360),c=this.$t("share.journey.tip3"),t.font="14px AlibabaSans-Light",l=t.measureText(c).width,t.fillText(c,i/2-l/2,420),t.strokeStyle="#ffffff",t.lineWidth=1,t.beginPath(),t.moveTo(i/2-l/2-20,416),t.lineTo(i/2-l/2-5,416),t.stroke(),t.beginPath(),t.moveTo(i/2+l/2+5,416),t.lineTo(i/2+l/2+20,416),t.stroke(),c=r,t.fillStyle="#FF5C00",t.font="900 28px AlibabaSans-HeavyItalic",l=t.measureText(c).width,t.fillText(c,i/4-l/2+8,510),c=o,l=t.measureText(c).width,t.fillText(c,3*i/4-l/2-8,510),c=this.$t("share.journey.designs"),t.fillStyle="#fff",t.font="900 20px AlibabaSans-HeavyItalic",l=t.measureText(c).width,t.fillText(c,i/4-l/2+8,540),c=this.$t("share.journey.renderings"),l=t.measureText(c).width,t.fillText(c,3*i/4-l/2-8,540),Promise.resolve().then(function(){n.exportImage(e)})},exportImage:function(e){this.uploadImgData=e.toDataURL("image/png")},shareMyDesignJourney:function(){this.uploadImgUrl?this.$emit("showShareModel",this.uploadImgUrl):this.uploadImage()},uploadImage:function(){var e=this.dataURLtoFile(this.uploadImgData,"image/jpeg"),t=new window.File([e],"share_journey.jpeg",{type:e.type});this.postImg(t)},dataURLtoFile:function(e,t){for(var n=atob(e.split(",")[1]),i=[],a=0;a<n.length;a++)i.push(n.charCodeAt(a));return new Blob([new Uint8Array(i)],{type:t})},postImg:function(e){var t=this;try{var n=new FileReader;e&&n.readAsDataURL(e),n.onload=Object(i.a)(regeneratorRuntime.mark(function n(){var i,a,s;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return i={fileName:e.name||"share_journey.jpg",action:2},a=t.getSessionKey(),n.next=1,c.a.forumUpload.presignedUrl(i,!1,{Authorization:a},!1);case 1:(s=n.sent)&&0===s.status.code&&(t.uploadImgUrl=s.data.objUrl,t.$emit("showShareModel",t.uploadImgUrl),r.a.put(s.data.url,e,{headers:{"Content-Type":"application/octet-stream"}}));case 2:case"end":return n.stop()}},n)}))}catch(e){}}}},f=(n(4044),n(4045),n(18)),h=Object(f.a)(m,function(){var e=this,t=e._self._c;return t("div",{staticClass:"share_design_journey"},[t("div",{staticClass:"share_design_journey_title"},[t("img",{ref:"sgareImg",attrs:{alt:"Share Image",src:e.uploadImgData}})]),e._v(" "),t("div",{staticClass:"share_btn",on:{click:e.shareMyDesignJourney}},[t("span",{staticClass:"iconfont iconhs_filled_share"}),e._v(" "+e._s(e.$t("share.journey.btn1"))+"\n  ")])])},[],!1,null,"55965cb6",null);t.a=h.exports},3816:function(e,t,n){"use strict";n(23),n(19),n(15),n(31),n(32);var i=n(1),a=n(21);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){Object(i.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var o={name:"AdvancedFeature",components:{sort:n(3226).a},data:function(){return{data:[{name:"pricing.addlight.title",tipsType:"text",tipsContent:"add.light.point1",t
1ipsShow:!1,tipsImg:"https://hs-designs.homestyler.com/production/upload/images/47806bbc-593e-483c-9db6-f06781b80f83.gif"},{name:"pricing2.createmultifr",tipsType:"arrText",tipsContent:"pricing2.createmultifrhov",tipsShow:!1,tipsImg:"https://hs-designs.homestyler.com/staging/upload/images/c74c4907-39cc-45c6-8c7a-938e281facaf.png"},{name:"pricing2.importmultifr",tipsType:"arrText",tipsContent:"pricing2.importmultifrhov",tipsShow:!1,tipsImg:"https://hs-designs.homestyler.com/staging/upload/images/feaa5ce8-764d-451c-8a7d-74c7017fbdd5.png"},{name:"pricing2.retouch",tipsType:"text",tipsContent:"pricing2.retouchhov",tipsShow:!1,tipsImg:"https://img.alicdn.com/imgextra/i3/O1CN01aMU4JV21nn4TOqMFO_!!6000000007030-2-tps-548-312.png"},{name:"pricing.environment.title",tipsType:"text",tipsContent:"pricing.environment.ctn",tipsShow:!1,tipsImg:"https://hs-designs.homestyler.com/production/upload/images/25dad314-f424-454f-8c21-96759ecfc903.gif"},{name:"pricing2.lightmix",tipsType:"text",tipsContent:"pricing2.lightmixhov",tipsShow:!1,tipsImg:"https://img.alicdn.com/imgextra/i3/O1CN01z952le1QWiWSLN6g2_!!6000000001984-1-tps-822-468.gif"},{name:"pricing2.coloredfp",tipsShow:!1},{name:"pricing2.bom",tipsType:"text",tipsContent:" ",tipsShow:!1,tipsImg:"https://hs-designs.homestyler.com/production/upload/images/9f57ccc3-0589-4851-86d8-44546d802d69.gif"},{name:"pricing2.stairs",tipsShow:!1},{name:"Pricing.Parametric_Railing",tipsShow:!1},{name:"Pricing.Parametric_Fence",tipsShow:!1},{name:"pricing2.editroof",tipsType:"text",tipsContent:"pricing2.editroof.hint",tipsShow:!1,tipsImg:"https://hs-designs.homestyler.com/production/upload/images/dc33bf17-7071-413c-bc60-06fecee1e1f0.png"},{name:"pricing.rendering.title",tipsType:"text",tipsContent:"advanced.rendering.hover",tipsShow:!1,tipsImg:"https://hs-designs.homestyler.com/production/upload/images/22e2b224-4aff-41df-b4ac-6b6561a9ee1a.gif"},{name:"pricing2.plumbing.title",tipsType:"text",tipsContent:"pricing2.plumbing.hover",tipsShow:!1},{name:"pricing2.brush",tipsType:"text",tipsContent:"pricing2.brush.ctn",tipsShow:!1,tipsImg:"https://hs-designs.homestyler.com/production/upload/images/381afd4c-2af5-4be4-b124-77d425f19c7f.gif"},{name:"pricing2.modeling",tipsType:"text",tipsContent:"pricing2.modeling.ctn",tipsShow:!1,tipsImg:"https://hs-designs.homestyler.com/production/upload/images/8454ee2a-d643-4b83-8a2e-8ab1c58af0cb.png"},{name:"pricing2.ctmfnt",tipsType:"text",tipsContent:"pricing2.ctmfnt.ctn",tipsShow:!1,tipsImg:"https://hs-designs.homestyler.com/production/upload/images/0fe81170-6358-4258-adf9-99fdd549bca9.gif"},{name:"pricing2.flooring",tipsType:"text",tipsContent:"pricing2.flooring.ctn",tipsShow:!1,tipsImg:"https://hs-designs.homestyler.com/production/upload/images/2737c94c-cc88-47a5-932f-552b8256d63a.gif"}]}},computed:r(r({},Object(a.d)(["abTest"])),{},{isABucket:function(){return this.abTest&&"A"===this.abTest.abRPricing&&"/pricing/business"!==this.$route.path}})},c=(n(4069),n(18)),l=Object(c.a)(o,function(){var e=this,t=e._self._c;return t("div",{staticClass:"contrast-table"},[t("div",{staticClass:"priceItem"},[t("sort",{attrs:{data:e.data}})],1),e._v(" "),e.data.length>0?t("div",{staticClass:"priceItem"},[t("ul",[t("li",{staticClass:"flex-center-center pricing_no"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_no"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_no"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_no"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_no"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_no"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_no"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_no"}),e._v(" "),t("li",{staticClass:"flex-center-center"},[e._v("\n        "+e._s(e.$t("pricing2.stairs.free"))+"\n      ")]),e._v(" "),t("li",{staticClass:"flex-center-center pricing_no"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_no"}),e._v(" "),t("li",{staticClass:"flex-center-center"},[e._v("\n        "+e._s(e.$t("pricing2.editroof.free"))+"\n      ")]),e._v(" "),t("li",{staticClass:"flex-center-center pricing_no"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_no"}),e._v(" "),t("li",{staticClass:"flex-center-center"},[e._v("\n        "+e._s(e.$t("pricing2.5free"))+"\n      ")]),e._v(" "),t("li",{staticClass:"flex-center-center"},[e._v("\n        "+e._s(e.$t("pricing2.3free"))+"\n      ")]),e._v(" "),t("li",{staticClass:"flex-center-center"},[e._v("\n        "+e._s(e.$t("pricing2.3free"))+"\n      ")]),e._v(" "),t("li",{staticClass:"flex-center-center"},[e._v("\n        "+e._s(e.$t("pricing2.3free"))+"\n      ")])])]):e._e(
1),e._v(" "),t("div",{staticClass:"priceItem"},[t("ul",[t("li",{staticClass:"flex-center-center pricing_yes"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"}),e._v(" "),t("li",[e._v(e._s(e.$t("pricing2.coloredfp.ctn")))]),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"}),e._v(" "),t("li",{staticClass:"flex-center-center"},[e._v("\n        "+e._s(e.$t("pricing2.stairs.member"))+"\n      ")]),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"}),e._v(" "),t("li",{staticClass:"flex-center-center"},[e._v("\n        "+e._s(e.$t("pricing2.editroof.member"))+"\n      ")]),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"})])]),e._v(" "),t("div",{staticClass:"priceItem"},[t("ul",[t("li",{staticClass:"flex-center-center pricing_yes"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"}),e._v(" "),t("li",[e._v(e._s(e.$t("pricing2.coloredfp.ctn")))]),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"}),e._v(" "),t("li",{staticClass:"flex-center-center"},[e._v("\n        "+e._s(e.$t("pricing2.stairs.member"))+"\n      ")]),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"}),e._v(" "),t("li",{staticClass:"flex-center-center"},[e._v("\n        "+e._s(e.$t("pricing2.editroof.member"))+"\n      ")]),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"})])]),e._v(" "),e.isABucket?t("div",{staticClass:"priceItem"},[e._m(0)]):e._e(),e._v(" "),e.isABucket?t("div",{staticClass:"priceItem"},[e._m(1)]):e._e(),e._v(" "),e.isABucket?e._e():t("div",{staticClass:"priceItem"},[t("ul",[t("li",{staticClass:"flex-center-center pricing_yes"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"}),e._v(" "),t("li",[e._v(e._s(e.$t("pricing2.coloredfp.ctn")))]),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"}),e._v(" "),t("li",{staticClass:"flex-center-center"},[e._v("\n        "+e._s(e.$t("pricing2.stairs.member"))+"\n      ")]),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"}),e._v(" "),t("li",{staticClass:"flex-center-center"},[e._v("\n        "+e._s(e.$t("pricing2.editroof.member"))+"\n      ")]),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"})])])])},[function(){var e=this,t=e._self._c;return t("ul",[t("li",{staticClass:"flex-center-center pricing_no"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_no"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_no"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_no"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_no"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_no"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_no"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_no"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_no"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_no"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_no"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_no"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_no"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_no"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_no"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_no"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_no"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_no"})])},function(){var e=this,t=e._self._c;return t("ul",[t("li",{staticClass:"flex-center-center pricing_no"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_no"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_no"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_no"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_no"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_no"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_no"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_no"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_no"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_no"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_no"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_no"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_no"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_no"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_no"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_no"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_no"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_no"})])}],!1,null,"159c1385",null);t.a=l.exports},3817:function(e,t,n){"use strict";n(23),n(19),n(15),n(31),n(32);var i=n(1),a=n(21);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?s(Object(n),!0).forEach(function(t){Object(i.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var o={name:"AiFeatures",components:{sort:n(3226).a},props:{isPlus:{type:Boolean,default:!1}},data:function(){return{data:[{name:"pricing2.aigc",tipsType:"text",tipsContent:"AIGC.pricing.product.hint",tipsStyle:{whiteSpace:"nowrap"},tipsShow:!1},{name:"Pricing.AI_Watermasrk",tipsShow:!1},{name:"Pricing.AI_Download",tipsShow:!1},{name:"pricing2.compare.aidecor.title",tipsType:"arrText",tipsContent:"pricing2.compare.aidecor.hover",tipsShow:!1}]}},computed:r(r({},Object(a.d)(["abTest"])),{},{isABucket:function(){return this.abTest&&"A"===this.abTest.abRPricing&&"/pricing/business"!==this.$route.path}})},c=n(18),l=Object(c.a)(o,function(){var e=this,t=e._self._c;return t("div",{staticClass:"contrast-table"},[t("div",{staticClass:"priceItem"},[t("sort",{attrs:{data:e.data}})],1),e._v(" "),t("div",{staticClass:"priceItem"},[t("ul",[t("li",[t("span",[t("span",{staticClass:"num"},[e._v("3")]),e._v(e._s(e.$t("creditsTotal")))])]),e._v(" "),t("li",{staticClass:"flex-center-center pricing_no"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_no"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_no"})])]),e._v(" "),t("div",{staticClass:"priceItem"},[t("ul",[t("li",[t("span",{staticClass:"flex-center-center"},[t("span",{staticClass:"pricing_num"},[t("span",{staticClass:"num"},[e._v(e._s(e.isPlus?180:100))]),e._v(e._s(e.$t("creditsMon")))])])]),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"})])]),e._v(" "),t("div",{staticClass:"priceItem"},[t("ul",[t("li",[t("span",{staticClass:"flex-center-center"},[t("span",{staticClass:"pricing_num"},[t("span",{staticClass:"num"},[e._v(e._s(e.isPlus?380:300))]),e._v(e._s(e.$t("creditsMon")))])])]),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"})])]),e._v(" "),e.isABucket?t("div",{staticClass:"priceItem"},[t("ul",[t("li",[t("span",{staticClass:"flex-center-center"},[t("span",{staticClass:"pricing_num"},[t("span",{staticClass:"num"},[e._v("80")]),e._v(e._s(e.$t("creditsMon")))])])]),e._v(" "),t("li",{staticClass:"flex-center-center pricing_no"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_no"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"})])]):e._e(),e._v(" "),e.isABucket?t("div",{staticClass:"priceItem"},[t("ul",[t("li",[t("span",{staticClass:"flex-center-center"},[t("span",{staticClass:"pricing_num"},[t("span",{staticClass:"num"},[e._v("1500")]),e._v(e._s(e.$t("creditsMon")))])])]),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_no"})])]):e._e(),e._v(" "),e.isABucket?e._e():t("div",{staticClass:"priceItem"},[t("ul",[t("li",[e._v("\n        "+e._s(e.$t("pricing2.foreach"))+"\n        "),t("span",[t("span",{staticClass:"pricing_num"},[t("span",{staticClass:"num"},[e._v("500")]),e._v(e._s(e.$t("creditsMon")))])])]),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"})])])])},[],!1,null,"77f6a784",null);t.a=l.exports},3818:function(e,t,n){"use strict";n(23),n(19),n(15),n(31),n(32);var i=n(1),a=n(21);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?s(Object(n),!0).forEach(function(t){Object(i.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var o={name:"CollaborationModule",components:{sort:n(3226).a},data:function(){return{data:[{name:"pricing2.sharedesign",tipsType:"arrText",tipsContent:"pricing2.sharedesignhov",tipsShow:!1},{name:"pricing2.sharemodel",tipsType:"arrText",tipsContent:"pricing2.sharemodelhov",tipsShow:!1},{name:"pricing2.membermgt",tipsType:"arrText",tipsContent:"pricing2.membermgthov",tipsShow:!1},{name:"pricing2.assetprotect",tipsType:"text",tipsContent:"pricing2.assetprotecthov",tipsShow:!1}]}},computed:r(r({},Object(a.d)(["abTest"])),{},{isABucket:function(){return this.abTest&&"A"===this.abTest.abRPricing&&"/pricing/business"!==this.$route.path}})},c=n(18),l=Object(c.a)(o,function(){var e=this,t=e._self._c;return t("div",{staticClass:"contrast-table"},[t("div",{staticClass:"priceItem"},[t("sort",{attrs:{data:e.data}})],1),e._v(" "),e._m(0),e._v(" "),e._m(1),e._v(" "),e._m(2),e._v(" "),e.isABucket?t("div",{staticClass:"priceItem"},[e._m(3)]):e._e(),e._v(" "),e.isABucket?t("div",{staticClass:"priceItem"},[e._m(4)]):e._e(),e._v(" "),e.isABucket?e._e():t("div",{staticClass:"priceItem"},[e._m(5)])])},[function(){var e=this,t=e._self._c;return t("div",{staticClass:"priceItem"},[t("ul",[t("li",{staticClass:"flex-center-center pricing_no"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_no"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_no"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_no"})])])},function(){var e=this,t=e._self._c;return t("div",{staticClass:"priceItem"},[t("ul",[t("li",{staticClass:"flex-center-center pricing_no"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_no"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_no"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_no"})])])},function(){var e=this,t=e._self._c;return t("div",{staticClass:"priceItem"},[t("ul",[t("li",{staticClass:"flex-center-center pricing_no"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_no"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_no"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_no"})])])},function(){var e=this,t=e._self._c;return t("ul",[t("li",{staticClass:"flex-center-center pricing_no"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_no"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_no"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_no"})])},function(){var e=this,t=e._self._c;return t("ul",[t("li",{staticClass:"flex-center-center pricing_no"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_no"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_no"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_no"})])},function(){var e=this,t=e._self._c;return t("ul",[t("li",{staticClass:"flex-center-center pricing_yes"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"})])}],!1,null,"47479432",null);t.a=l.exports},3819:function(e,t,n){"use strict";n(23),n(19),n(15),n(31),n(32);var i=n(1),a=n(21);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){Object(i.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var o={name:"generalfeature",components:{sort:n(3226).a},data:function(){return{data:[{name:"pricing2.adremove"},{name:"pricing2.gallery",tipsType:"arrText",tipsContent:"pricing2.galleryhov",tipsS
1how:!1,jumpUrl:"/gallery"},{name:"pricing2.tutorial",tipsType:"arrText",tipsContent:"pricing2.tutorialhov",tipsShow:!1,jumpUrl:"/learn-help"},{name:"pricing2.email"}]}},computed:r(r({},Object(a.d)(["abTest"])),{},{isABucket:function(){return this.abTest&&"A"===this.abTest.abRPricing&&"/pricing/business"!==this.$route.path}})},c=n(18),l=Object(c.a)(o,function(){var e=this,t=e._self._c;return t("div",{staticClass:"contrast-table"},[t("div",{staticClass:"priceItem"},[t("sort",{attrs:{data:e.data}})],1),e._v(" "),e._m(0),e._v(" "),t("div",{staticClass:"priceItem"},[t("ul",[t("li",{staticClass:"flex-center-center pricing_yes"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"}),e._v(" "),t("li",[e._v(e._s(e.$t("pricing2.priority")))])])]),e._v(" "),t("div",{staticClass:"priceItem"},[t("ul",[t("li",{staticClass:"flex-center-center pricing_yes"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"}),e._v(" "),t("li",[e._v(e._s(e.$t("pricing2.priority")))])])]),e._v(" "),e.isABucket?t("div",{staticClass:"priceItem"},[t("ul",[t("li",{staticClass:"flex-center-center pricing_yes"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"}),e._v(" "),t("li",[e._v(e._s(e.$t("pricing2.priority")))])])]):e._e(),e._v(" "),e.isABucket?t("div",{staticClass:"priceItem"},[t("ul",[t("li",{staticClass:"flex-center-center pricing_yes"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"}),e._v(" "),t("li",[e._v(e._s(e.$t("pricing2.priority")))])])]):e._e(),e._v(" "),e.isABucket?e._e():t("div",{staticClass:"priceItem"},[t("ul",[t("li",{staticClass:"flex-center-center pricing_yes"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"}),e._v(" "),t("li",[e._v(e._s(e.$t("pricing2.dedicate")))])])])])},[function(){var e=this,t=e._self._c;return t("div",{staticClass:"priceItem"},[t("ul",[t("li",{staticClass:"flex-center-center pricing_no"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"})])])}],!1,null,"6f0a1bcb",null);t.a=l.exports},3820:function(e,t,n){"use strict";var i={name:"PricingMasterPlans",props:{isPlus:{type:Boolean,default:!1}}},a=(n(4071),n(18)),s=Object(a.a)(i,function(){var e=this,t=e._self._c;return t("ul",[t("li",[e._v(e._s(e.$t("pricing.unlimited")))]),e._v(" "),t("li",[e._v(e._s(e.$t("pricing.unlimited")))]),e._v(" "),t("li",[e._v(e._s(e.$t("pricing.unlimited")))]),e._v(" "),t("li",[e._v(e._s(e.$t("pricing.unlimited")))]),e._v(" "),t("li",[t("span",[e._v("8K: "+e._s(e.$t("pricing.unlimited"))+" "+e._s(e.$t("pricing2.unit1")))]),e._v(" "),t("span",{staticClass:"flex-center-center"},[e._v("12K: "),t("span",{staticClass:"pricing_num"},[t("span",{staticClass:"num"},[e._v("6")]),e._v(" "+e._s(e.$t("pricing2.unit1")))])])]),e._v(" "),t("li",[t("span",{staticClass:"flex-center-center"},[e._v("540p: "),t("span",{staticClass:"pricing_num"},[t("span",{staticClass:"num"},[e._v(e._s(e.isPlus?180:150))]),e._v(" "+e._s(e.$t("pricing2.unit2")))])]),e._v(" "),t("span",{staticClass:"flex-center-center"},[e._v("720p: "),t("span",{staticClass:"pricing_num"},[t("span",{staticClass:"num"},[e._v("100")]),e._v(" "+e._s(e.$t("pricing2.unit2")))])]),e._v(" "),t("span",{staticClass:"flex-center-center"},[e._v("1080p: "),t("span",{staticClass:"pricing_num"},[t("span",{staticClass:"num"},[e._v("30")]),e._v(" "+e._s(e.$t("pricing2.unit2")))])])]),e._v(" "),t("li",[e._v(e._s(e.$t("pricing.unlimited")))]),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"})])},[],!1,null,"6e9fdd08",null);t.a=s.exports},3821:function(e,t,n){"use strict";n(23),n(19),n(15),n(31),n(32);var i=n(1),a=n(21);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?s(Object(n),!0).forEach(function(t){Object(i.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var o={name:"PremiumAssets",components:{sort:n(3226).a},props:{isPlus:{type:Boolean,default:!1}},data:function(){return{data:[{name:"Pricing.Premium_Models",tipsType:"text",tipsContent:"Pricing.Premium_Models.desc",tipsShow:!1},{name:"Pricing.Premium_Templates",tipsType:"text",placement:"top",tipsContent:"Pricing.Premium_Templates.desc",tipsShow:!1}]}},computed:r(r({},Object(a.d)(["abTest"])),{},{isABucket:function(){return this.abTest&&"A"===this.abTest.abRPricing&&"/pricing/business"!==this.$route.path}})},c=n(18),l=Object(c.a)(o,function(){var e=this,t=e._self._c;return t("div",{staticClass:"contrast-table"},[t("div",{staticClass:"priceItem"},[t("sort",{attrs:{data:e.data}})],1),e._v(" "),e._m(0),e._v(" "),t("div",{staticClass:"priceItem"},[t("ul",[t("li",{class:["flex-center-center",e.isPlus?"pricing_yes":"pricing_no"]}),e._v(" "),t("li",{class:["flex-center-center",e.isPlus?"pricing_yes":"pricing_no"]})])]),e._v(" "),t("div",{staticClass:"priceItem"},[t("ul",[t("li",{class:["flex-center-center",e.isPlus?"pricing_yes":"pricing_no"]}),e._v(" "),t("li",{class:["flex-center-center",e.isPlus?"pricing_yes":"pricing_no"]})])]),e._v(" "),e.isABucket?t("div",{staticClass:"priceItem"},[e._m(1)]):e._e(),e._v(" "),e.isABucket?t("div",{staticClass:"priceItem"},[e._m(2)]):e._e(),e._v(" "),e.isABucket?e._e():t("div",{staticClass:"priceItem"},[e._m(3)])])},[function(){var e=this._self._c;return e("div",{staticClass:"priceItem"},[e("ul",[e("li",{staticClass:"flex-center-center pricing_no"}),this._v(" "),e("li",{staticClass:"flex-center-center pricing_no"})])])},function(){var e=this._self._c;return e("ul",[e("li",{staticClass:"flex-center-center pricing_yes"}),this._v(" "),e("li",{staticClass:"flex-center-center pricing_yes"})])},function(){var e=this._self._c;return e("ul",[e("li",{staticClass:"flex-center-center pricing_no"}),this._v(" "),e("li",{staticClass:"flex-center-center pricing_no"})])},function(){var e=this._self._c;return e("ul",[e("li",{staticClass:"flex-center-center pricing_yes"}),this._v(" "),e("li",{staticClass:"flex-center-center pricing_yes"})])}],!1,null,"fea185f2",null);t.a=l.exports},3822:function(e,t,n){"use strict";n(989),n(23),n(19),n(15),n(31),n(32);var i=n(1),a=(n(22),n(44),n(21)),s=n(24);function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}var o={name:"PricingTableTop",props:{cardList:{type:Array,default:function(){return[]}},fixed:{type:Boolean,default:!1},pricingActivityConfig:{type:Object,default:function(){return{}}},inActivity:{type:Function,default:function(){return!1}}},computed:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach(function(t){Object(i.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},Object(a.d)(["locale"])),methods:{getMemberName:function(e){var t=["pro","master"].includes(e.member)&&e.isPlus?"+":"";return"".concat(this.$t(e.name)).concat(t)},getJumpUrl:function(e){var t="";switch(e){case"designService":t="".concat(this.$global.homestyler,"/designers");break;case"aiStudio":t="".concat(this.$global.homestyler,"/").concat(Object(s.J)(this.locale),"/ai-studio");break;case"3d":t=this.$global.floorplanUrl}return t&&this.locale!==this.$i18n.fallbackLocale&&(t+="?lang=".concat(this.locale)),t}}},c=o,l=(n(4075),n(18)),u=Object(l.a)(c,function(){var e=this,t=e._self._c;return t("div",{staticClass:"pricing-table-top",class:{"pricing-table-top-fixed":e.fixed}},[t("div",{staticClass:"pricing-table-top-inner"},[t("h2",{staticClass:"pricing-table-title"},[e._v("\n      "+e._s(e.$t("pricing3.compare.title"))+"\n    ")]),e._v(" "),e._l(e.cardList,function(n){return t("div",{key:n.member,staticClass:"pricing-table-card"},[t("div",{staticClass:"pricing-table-card-header"},[t("span",{staticClass:"pricing-table-card-name"},[e._v(e._s(e.getMemberName(n)))]),e._v(" "),t("div",{staticClass:"pricing-table-card-price"},["basic"===n.member?t("span",[e._v(e._s(e.$t("styler.basic2free")))]):t("span",[t("span",{staticClass:"price-min"},[e._v(e._s(e.$t("styler.styler2price1")))]),e._v(" "),t("span",{staticClass:"price-after"},[e._v("\n              "+e._s(n.icon)+e._s(n.price)+"\n              "),"refillPackage"!==n.member?t("span",{staticClass:"price-min"},[e._v("\n                "+e._s("/".concat(n.num?"".concat(n.num," "):"").concat(e.$t(n.unit||"styler.styler2price2")))+"\n              ")]):e._e(
1)])])])]),e._v(" "),n.jumpUrl?t("a",{staticClass:"pricing-table-card-btn",class:n.style.btnClass,attrs:{target:"_blank",href:e.getJumpUrl(n.jumpUrl)},on:{click:function(t){return e.$emit("basic-click")}}},[t("span",{style:"defalut"!==n.style.btnClass&&{color:n.style.btnColor}},[e._v("\n          "+e._s(e.$t(n.btnText))+"\n        ")])]):n.btnText?t("el-button",{staticClass:"pricing-table-card-btn",class:n.buttonColor?"btn-buy-custom":n.style.btnClass,style:{backgroundColor:n.buttonColor},on:{click:function(t){return e.$emit("buy-click",n)}}},[e.inActivity(n.member)?t("span",{staticClass:"act-icon",style:{background:e.pricingActivityConfig.buyCardTipsBg,color:e.pricingActivityConfig.buyCardTipsColor}},[e._v(e._s(e.pricingActivityConfig.buyCardTipsMdsKeyValue))]):n.actionBadge?t("span",{staticClass:"act-icon",style:{background:n.actionBadge.buyCardTipsBg,color:n.actionBadge.buyCardTipsColor}},[e._v(e._s(e.$t(n.actionBadge.buyCardTipsMdsKey)))]):e._e(),e._v(" "),t("span",{style:"defalut"!==n.style.btnClass&&{color:n.style.btnColor}},[e._v("\n          "+e._s(e.$t(n.btnText))+"\n        ")])]):e._e()],1)})],2)])},[],!1,null,"c7944094",null);t.a=u.exports},3823:function(e,t,n){"use strict";n(23),n(19),n(15),n(31),n(32);var i=n(1),a=n(21);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){Object(i.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var o={name:"PrivateLib",components:{sort:n(3226).a},data:function(){return{data:[{name:"pricing2.3dupload",tipsType:"arrText",tipsContent:"pricing2.3duploadhov",tipsShow:!1},{name:"pricing2.texupload",tipsType:"arrText",tipsContent:"pricing2.texuploadhov",tipsShow:!1}]}},computed:r(r({},Object(a.d)(["abTest"])),{},{isABucket:function(){return this.abTest&&"A"===this.abTest.abRPricing&&"/pricing/business"!==this.$route.path}})},c=n(18),l=Object(c.a)(o,function(){var e=this,t=e._self._c;return t("div",{staticClass:"contrast-table"},[t("div",{staticClass:"priceItem"},[t("sort",{attrs:{data:e.data}})],1),e._v(" "),e._m(0),e._v(" "),e._m(1),e._v(" "),e._m(2),e._v(" "),e.isABucket?t("div",{staticClass:"priceItem"},[e._m(3)]):e._e(),e._v(" "),e.isABucket?t("div",{staticClass:"priceItem"},[e._m(4)]):e._e(),e._v(" "),e.isABucket?e._e():t("div",{staticClass:"priceItem"},[t("ul",[t("li",[e._v(e._s(e.$t("pricing.unlimited")))]),e._v(" "),t("li",[e._v(e._s(e.$t("pricing.unlimited")))])])])])},[function(){var e=this,t=e._self._c;return t("div",{staticClass:"priceItem"},[t("ul",[t("li",[t("span",{staticClass:"num"},[e._v("3")])]),e._v(" "),t("li",[t("span",{staticClass:"num"},[e._v("3")])])])])},function(){var e=this,t=e._self._c;return t("div",{staticClass:"priceItem"},[t("ul",[t("li",[t("span",{staticClass:"num"},[e._v("300")])]),e._v(" "),t("li",[t("span",{staticClass:"num"},[e._v("300")])])])])},function(){var e=this,t=e._self._c;return t("div",{staticClass:"priceItem"},[t("ul",[t("li",[t("span",{staticClass:"num"},[e._v("500")])]),e._v(" "),t("li",[t("span",{staticClass:"num"},[e._v("500")])])])])},function(){var e=this,t=e._self._c;return t("ul",[t("li",[t("span",{staticClass:"num"},[e._v("3")])]),e._v(" "),t("li",[t("span",{staticClass:"num"},[e._v("3")])])])},function(){var e=this,t=e._self._c;return t("ul",[t("li",[t("span",{staticClass:"num"},[e._v("3")])]),e._v(" "),t("li",[t("span",{staticClass:"num"},[e._v("3")])])])}],!1,null,"5450b66d",null);t.a=l.exports},3824:function(e,t,n){"use strict";var i={name:"PricingProPlans",props:{isPlus:{type:Boolean,default:!1}}},a=(n(4076),n(18)),s=Object(a.a)(i,function(){var e=this,t=e._self._c;return t("ul",[t("li",[e._v(e._s(e.$t("pricing.unlimited")))]),e._v(" "),t("li",[t("span",{staticClass:"flex-center-center"},[t("span",{staticClass:"pricing_num"},[t("span",{staticClass:"num"},[e._v("75")]),e._v(" "+e._s(e.$t("pricing2.unit1")))])])]),e._v(" "),t("li",[t("span",{staticClass:"flex-center-center"},[t("span",{staticClass:"pricing_num"},[t("span",{staticClass:"num"},[e._v("75")]),e._v(" "+e._s(e.$t("pricing2.unit1")))])])]),e._v(" "),t("li",[t("span",{staticClass:"flex-center-center"},[e._v("2K: "),t("span",{staticClass:"pricing_num"},[t("span",{staticClass:"num"},[e._v("75")]),e._v(" "+e._s(e.$t("pricing2.unit1")))])]),e._v(" "),t("span",{staticClass:"flex-center-center"},[e._v("4K: "),t("span",{staticClass:"pricing_num"},[t("span",{staticClass:"num"},[e._v("75")]),e._v(" "+e._s(e.$t("pricing2.unit1")))])])]),e._v(" "),t("li",[t("span",{staticClass:"flex-center-center"},[e._v("8K: "),t("span",{staticClass:"pricing_num"},[t("span",{staticClass:"num"},[e._v("20")]),e._v(" "+e._s(e.$t("pricing2.unit1")))])]),e._v(" "),t("span",{staticClass:"flex-center-center"},[e._v("12K: "),t("span",{staticClass:"pricing_num"},[t("span",{staticClass:"num"},[e._v("2")]),e._v(" "+e._s(e.$t("pricing2.unit1")))])])]),e._v(" "),t("li",[t("span",{staticClass:"flex-center-center"},[e._v("540p: "),t("span",{staticClass:"pricing_num"},[t("span",{staticClass:"num"},[e._v(e._s(e.isPlus?80:50))]),e._v(" "+e._s(e.$t("pricing2.unit2")))])]),e._v(" "),t("span",{staticClass:"flex-center-center"},[e._v("720p: "),t("span",{staticClass:"pricing_num"},[t("span",{staticClass:"num"},[e._v("30")]),e._v(" "+e._s(e.$t("pricing2.unit2")))])]),e._v(" "),t("span",{staticClass:"flex-center-center"},[e._v("1080p: "),t("span",{staticClass:"pricing_num"},[t("span",{staticClass:"num"},[e._v("10")]),e._v(" "+e._s(e.$t("pricing2.unit2")))])])]),e._v(" "),t("li",[e._v(e._s(e.$t("pricing.unlimited")))]),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"})])},[],!1,null,"8354e9fa",null);t.a=s.exports},3825:function(e,t,n){"use strict";var i={name:"PricingRenderingPlans",components:{sort:n(3226).a},data:function(){return{data:[{name:"pricing2.1krender",tipsType:"arrText",tipsContent:"pricing2.1krenderhov",tipsS
1how:!1},{name:"pricing2.2krender",tipsType:"arrText",tipsContent:"pricing2.2krenderhov",tipsShow:!1},{name:"pricing2.4krender",tipsType:"arrText",tipsContent:"pricing2.4krenderhov",tipsShow:!1},{name:"pricing2.2k4kpano",tipsType:"text",tipsContent:"pricing2.8k12kpanohov",tipsShow:!1},{name:"pricing2.8k12kpano",tipsType:"text",placement:"top",tipsContent:"pricing2.8k12kpanohov",tipsShow:!1},{name:"pricing2.videorender",tipsType:"text",tipsContent:"pricing2.videorenderhov",tipsShow:!1,jumpUrl:"/video"},{name:"pricing.preview.title",tipsType:"text",tipsContent:"speed.preview.hover",tipsShow:!1,tipsImg:"https://hs-designs.homestyler.com/production/upload/images/f727ee83-faf8-41d1-a4df-d9db62a58a63.gif"},{name:"pricing2.720virtual",tipsType:"text",tipsContent:"pricing2.720virtualhov",tipsShow:!1,tipsImg:"https://img.alicdn.com/imgextra/i1/O1CN01bUINdn1VmM8043xHf_!!6000000002695-1-tps-480-273.gif"},{name:"pricing2.watermark"}]}}},a=n(18),s=Object(a.a)(i,function(){return(0,this._self._c)("sort",{attrs:{data:this.data}})},[],!1,null,null,null);t.a=s.exports},3826:function(e,t,n){"use strict";n(23),n(19),n(15),n(31),n(32);var i=n(1),a=n(21),s=n(14);function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach(function(t){Object(i.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var c={name:"SpecialOfferCard",props:{titleKey:{type:String,default:""},descKey:{type:String,default:""},badgeText:{type:String,default:""},isCoupon:{type:Boolean,default:!1},isMailContactUs:{type:Boolean,default:!1},isStudentBeans:{type:Boolean,default:!1},type:{type:String,default:""}},data:function(){return{CODE:"EODC0C8E",popoverVisible:!1}},computed:o(o({},Object(a.d)(["locale","userInfo"])),{},{desc:function(){return this.$t(this.descKey)}}),methods:{copyClickEvent:function(){this.popoverVisible=!1,Object(s.a)("pricing.studentCouponCode_copy",{member_id:this.userInfo.uid,language:this.locale})},handleClick:function(){this.isStudentBeans?window.open("/studentdiscount?type=".concat(this.type),"_blank"):this.$emit("showDialog")},clipboardSuccessHandler:function(){this.$message.success(this.$t("myDesigns.content.copy_success"))},clipboardErrorHandler:function(){this.$message.warning(this.$t("myDesigns.content.copy_fail"))}}},l=(n(4077),n(18)),u=Object(l.a)(c,function(){var e=this,t=e._self._c;return t("div",{staticClass:"special-offer-card"},[t("div",{staticClass:"special-offer-title-wrapper"},[t("h2",{staticClass:"special-offer-card-title",attrs:{title:e.$t(e.titleKey)}},[e._v("\n      "+e._s(e.$t(e.titleKey))+"\n    ")]),e._v(" "),e.badgeText?t("span",{staticClass:"special-offer-card-badge"},[e._v(e._s(e.badgeText))]):e._e()]),e._v(" "),t("p",{staticClass:"special-offer-card-desc",domProps:{innerHTML:e._s(e.desc)}}),e._v(" "),e.isCoupon?t("el-popover",{attrs:{placement:"top",width:"260",trigger:"click"},model:{value:e.popoverVisible,callback:function(t){e.popoverVisible=t},expression:"popoverVisible"}},[t("div",{staticClass:"copy-popover-wrapper"},[t("h3",{staticClass:"copy-popover-title"},[t("span",{staticClass:"copy-popover-title-inner"},[e._v(e._s(e.$t("pricing2.yourcode")))])]),e._v(" "),t("span",{staticClass:"copy-popover-code"},[e._v(e._s(e.CODE))]),e._v(" "),t("a",{directives:[{name:"clipboard",rawName:"v-clipboard",value:e.CODE,expression:"CODE"},{name:"clipboard",rawName:"v-clipboard:success",value:e.clipboardSuccessHandler,expression:"clipboardSuccessHandler",arg:"success"},{name:"clipboard",rawName:"v-clipboard:error",value:e.clipboardErrorHandler,expression:"clipboardErrorHandler",arg:"error"}],staticClass:"copy-popover-btn",on:{click:e.copyClickEvent}},[e._v(e._s(e.$t("pricing2.copy")))])]),e._v(" "),t("a",{staticClass:"special-offer-card-btn",attrs:{slot:"reference"},slot:"reference"},[e._v(e._s(e.$t("pricing2.getcoupon")))])]):e.isMailContactUs?t("a",{staticClass:"btn",attrs:{href:"mailto:[email protected]"}},[e._v("\n    "+e._s(e.$t("styler.contactbutton"))+"\n  ")]):t("div",{staticClass:"btn",on:{click:function(t){return e.handleClick()}}},[e.isStudentBeans?t("span",{staticClass:"icon_area"}):e._e(),e._v("\n    "+e._s(e.isStudentBeans?e.$t("styler.verify"):e.$t("styler.contactbutton"))+"\n  ")])],1)},[],!1,null,"b89e32a0",null);t.a=u.exports},3827:function(e,t,n){"use strict";var i={name:"PricingTeamPlans"},a=(n(4079),n(18)),s=Object(a.a)(i,function(){var e=this,t=e._self._c;return t("ul",[t("li",[e._v(e._s(e.$t("pricing.unlimited")))]),e._v(" "),t("li",[e._v(e._s(e.$t("pricing.unlimited")))]),e._v(" "),t("li",[e._v(e._s(e.$t("pricing.unlimited")))]),e._v(" "),t("li",[e._v(e._s(e.$t("pricing.unlimited")))]),e._v(" "),t("li",[e._v("\n    "+e._s(e.$t("pricing2.foreach"))+"\n    "),t("span",[e._v("8K: "+e._s(e.$t("pricing.unlimited"))+" "+e._s(e.$t("pricing2.unit1")))]),e._v(" "),t("span",{staticClass:"flex-center-center"},[e._v("12K: "),t("span",{staticClass:"pricing_num"},[t("span",{staticClass:"num"},[e._v("6")]),e._v(" "+e._s(e.$t("pricing2.unit1")))])])]),e._v(" "),t("li",[e._v("\n    "+e._s(e.$t("pricing2.foreach"))+"\n    "),t("span",{staticClass:"flex-center-center"},[e._v("540p: "),t("span",{staticClass:"pricing_num"},[t("span",{staticClass:"num"},[e._v("300")]),e._v(" "+e._s(e.$t("pricing2.unit2")))])]),e._v(" "),t("span",{staticClass:"flex-center-center"},[e._v("720p: "),t("span",{staticClass:"pricing_num"},[t("span",{staticClass:"num"},[e._v("200")]),e._v(" "+e._s(e.$t("pricing2.unit2")))])]),e._v(" "),t("span",{staticClass:"flex-center-center"},[e._v("1080p: "),t("span",{staticClass:"pricing_num"},[t("span",{staticClass:"num"},[e._v("50")]),e._v(" "+e._s(e.$t("pricing2.unit2")))])])]),e._v(" "),t("li",[e._v(e._s(e.$t("pricing.unlimited")))]),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"}),e._v(" "),t("li",{staticClass:"flex-center-center pricing_yes"})])},[],!1,null,"0db5e9d4",null);t.a=s.exports},3828:function(e,t,n){"use strict";n(23),n(19),n(31),n(32);var i=n(7),a=n(1),s=(n(38),n(30),n(22),n(25),n(15),n(21)),r=n(61),o=n(12),c=n(24);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}var u={name:"PlanCard",components:{},props:{currentTag:{type:Boolean,default:!1},item:{type:Object,default:function(){return{}}},retentionUserStats:{type:Object,default:function(){return{}}}},data:function(){return{}},computed:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?l(Object(n),!0).forEach(function(t){Object(a.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},Object(s.d)(["isHomestylerApp","userInfo","abTest","locale"])),watch:{},mounted:function(){},methods:{timeformat:c.R,handleCancel:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];this.$emit("handleCancelAutorenew",e,t,n)},cancelAutoDirectly:function(e){var t=this;return Object(i.a)(regeneratorRuntime.mark(function n(){var i,a,s;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=1,o.a.payPal.cancelAuto({data:{subscriptionId:e.subscriptionId,id:e.subscriptionRecordId}});case 1:if(null==(s=n.sent)||null===(i=s.ret)||void 0===i||null===(i=i[0])||void 0===i||!i.includes("SUCCESS")||0!==(null===(a=s.data)||void 0===a||null===(a=a.status)||void 0===a?void 0:a.code)){n.next=2;break}t.$emit("cancelAutoSuccess"),n.next=3;break;case 2:throw t.$message.error(t.$t("coupon.wrong")),new Error("Cancel subscription failed");case 3:case"end":return n.stop()}},n)}))()},cancelAutoTxt:function(e){var t="";switch(e){case 1:t="pricing2.cancelauto";break;case 2:t="pricing2.cancelling";break;case 3:t="pricing2.cancelled"}return t},surplusTime:function(e,t){var n=Date.now(),i=(t-(e>n?e:n))/864e5;return{isExp:i<372,expDays:parseInt(i)}},subscriptionLeft:function(e){var t=this;return e.displayTypeToAmount?r.Cb.filter(function(t){return!t.comboSort||t.comboSort===e.comboSort}).map(function(n){return{number:e.displayTypeToAmount[n.key]||0,label:t.$t(n.label,n.param),isVideo:n.isVideo,currMember:n.currMember,oldMember:n.oldMember}}):[]},subscriptionRight:function(e){var t=this;return e.displayTypeToAmount?r.Db.filter(function(t){return!t.comboSort||t.comboSort===e.comboSort}).map(function(n){var i={};if(n.paramKey){var a=e.displayTypeToAmount[n.key];return i[n.paramKey]=a,t.$t(n.label,i)}return t.$t(n.label)}):[]},subscriptionLeftStyler:function(e){var t=this;return e.displayTypeToAmount?r.Ab.map(function(n){return{number:e.displayTypeToAmount[n.key]||0,isVideo:n.isVideo,label:t.$t(n.label)}}):[]},subscriptionLeftPortfolio:function(){var e=this;return r.gb.map(function(t){return{number:-1,title:e.$t(t.title),label:e.$t(t.label)}})},subscriptionLeftAiBoost:function(e){var t=this;return r.g.map(function(n){var i=e.displayTypeToAmount[n.key]||0;return n.key===r.N&&(i=i||90,["zh_CN","zh_TW"].includes(t.locale)?i/=10:i=100-i),{number:i,label:t.$t(n.label),subTitle:t.$t(n.subTitle)}})}}},d=u,p=(n(4103),n(18)),m=Object(p.a)(d,function(){var e=this,t=e._self._c;return e.item&&12===e.item.comboType?t("div",{staticClass:"plan-card plan_member ai_boost"},[e.currentTag?t("label",{staticClass:"tag"},[e._v(e._s(e.$t("subscription.cp")))]):e._e(),e._v(" "),t("div",{staticClass:"left"},[t("p",{staticClass:"title"},[e._v("\n      "+e._s(e.$t("pricing.aiBoost.member"))+"\n      "),e.item.subscriptionMember?t("span",{staticClass:"nextmon"},[e._v(" ("+e._s(e.$t("autorenew.nextmon"))+") ")]):e._e()]),e._v(" "),t("span",[e._v(e._s(e.$t("pricing.aiBoost.text")))])]),e._v(" "),t("div",{staticClass:"center"},e._l(e.subscriptionLeftAiBoost(e.item),function(n,i){return t("div",{key:i,staticClass:"num"},[t("div",{staticClass:"number small-number"},[e._v("\n        "+e._s(-1===n.number?n.title:n.number)+"\n        "),n.subTitle?t("span",[e._v(e._s(n.subTitle))]):e._e()]),e._v(" "),t("span",[e._v(e._s(n.label))])])}),0),e._v(" "),t("div",{staticClass:"right"},[t("p",[e._v(e._s(e.$t("pricing.aiBoost.tip3")))]),e._v(" "),t("p",[e._v(e._s(e.$t("pricing.aiBoost.tip4")))]),e._v(" "),t("p",[e._v(e._s(e.$t("pricing.aiBoost.tip5")))]),e._v(" "),t("p",[e._v(e._s(e.$t("pricing.aiBoost.tip6")))]),e._v(" "),t("p",[e._v(e._s(e.$t("pricing.aiBoost.tip7")))]),e._v(" "),t("p",[e._v(e._s(e.$t("pricing.aiBoost.tip8")))])]),e._v(" "),t("p",{staticClass:"valid"},[e.isHomestylerApp?e._e():[e.item.subscriptionMember?t("span",[e.item.infinityFlag?t("span",{staticClass:"cancel-auto cancel-auto-default"},[e._v(e._s(e.$t("infinity.subscription.hint")))]):2===e.item.subscriptionStatus||3===e.item.subscriptionStatus?t("span",{staticClass:"cancel-auto cancel-auto-default"},[e._v(e._s(e.$t(e.cancelAutoTxt(e.item.subscriptionStatus))))]):e._e(
1),e._v(" "),1===e.item.subscriptionStatus&&e.item.cancelSubscriptionUoneUrl?["A"===e.abTest.abRCancelSub?t("RetentionChatbotVue",{attrs:{getLocalContent:function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];return e.$t.apply(e,[t].concat(i))},text:e.$t(e.cancelAutoTxt(e.item.subscriptionStatus)),membershipType:"aiMember",userInfo:e.userInfo,userStats:e.retentionUserStats,defaultCancelFunction:function(){return e.cancelAutoDirectly(e.item)},planDetail:{planName:e.$t("styler.toptitle2"),price:e.item.planPrice,startTime:e.item.startTime,nextPayTime:e.item.nextPayTime,subscriptionId:e.item.subscriptionId,subscriptionRecordId:e.item.subscriptionRecordId}}}):t("span",{staticClass:"cancel-auto",on:{click:function(t){return e.handleCancel(e.item,"aiMember")}}},[e._v(e._s(e.$t(e.cancelAutoTxt(e.item.subscriptionStatus))))])]:e._e()],2):t("a",{staticClass:"cancel-auto renew-button",attrs:{href:"/pricing/ai-boost?source_page=mysubscription_plancard"}},[e._v(e._s(e.$t("mysub.renewbutton")))])],e._v(" "),e.surplusTime(e.item.startTime,e.item.endTime).isExp?t("span",{domProps:{innerHTML:e._s(e.$t("mysub.timeremaining",{day:"<span class='surplus-time'>".concat(e.surplusTime(e.item.startTime,e.item.endTime).expDays,"</span>")}))}}):e._e(),e._v(" "),!e.surplusTime(e.item.startTime,e.item.endTime).isExp&&e.item.subscriptionMember&&1===e.item.subscriptionStatus?t("span",[e._v("\n      "+e._s(e.$t("mysub.nextbillttime",{paypal:""}))+":"+e._s(e.timeformat(e.item.nextPayTime,"YYYY-mm-dd"))+"\n    ")]):e._e()],2)]):e.item&&10===e.item.comboType?t("div",{staticClass:"plan-card plan_member portfolio"},[e.currentTag?t("label",{staticClass:"tag"},[e._v(e._s(e.$t("subscription.cp")))]):e._e(),e._v(" "),t("div",{staticClass:"left"},[t("p",{staticClass:"title"},[e._v("\n      "+e._s(e.$t("portfolio_name"))+"\n      "),e.item.subscriptionMember?t("span",{staticClass:"nextmon"},[e._v(" ("+e._s(e.$t("autorenew.nextmon"))+") ")]):e._e()]),e._v(" "),t("span",[e._v(e._s(e.$t("portfolio_membership_title")))])]),e._v(" "),t("div",{staticClass:"center"},e._l(e.subscriptionLeftPortfolio(e.item),function(n,i){return t("div",{key:i,staticClass:"num"},[t("div",{staticClass:"number small-number"},[e._v("\n        "+e._s(-1===n.number?n.title:n.number)+"\n      ")]),e._v(" "),t("span",[e._v(e._s(n.label))])])}),0),e._v(" "),t("div",{staticClass:"right"},[t("p",[e._v(e._s(e.$t("portfolio_membership_content1")))]),e._v(" "),t("p",[e._v(e._s(e.$t("portfolio_membership_content2")))]),e._v(" "),t("p",[e._v(e._s(e.$t("portfolio_membership_content3")))]),e._v(" "),t("p",[e._v(e._s(e.$t("portfolio_membership_content4")))]),e._v(" "),t("p",[e._v(e._s(e.$t("portfolio_membership_content5")))]),e._v(" "),t("p",[e._v(e._s(e.$t("portfolio_membership_content6")))]),e._v(" "),t("p",[e._v(e._s(e.$t("portfolio_membership_content7")))]),e._v(" "),t("p",[e._v(e._s(e.$t("portfolio_membership_content8")))]),e._v(" "),t("p",[e._v(e._s(e.$t("portfolio_membership_content9")))]),e._v(" "),t("p",[e._v(e._s(e.$t("portfolio_designer_sale")))])]),e._v(" "),t("p",{staticClass:"valid"},[e.isHomestylerApp?e._e():[e.item.subscriptionMember?t("span",[e.item.infinityFlag?t("span",{staticClass:"cancel-auto cancel-auto-default"},[e._v(e._s(e.$t("infinity.subscription.hint")))]):2===e.item.subscriptionStatus||3===e.item.subscriptionStatus?t("span",{staticClass:"cancel-auto cancel-auto-default"},[e._v(e._s(e.$t(e.cancelAutoTxt(e.item.subscriptionStatus))))]):e._e(),e._v(" "),1===e.item.subscriptionStatus&&e.item.cancelSubscriptionUoneUrl?["A"===e.abTest.abRCancelSub?t("RetentionChatbotVue",{attrs:{getLocalContent:function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];return e.$t.apply(e,[t].concat(i))},text:e.$t(e.cancelAutoTxt(e.item.subscriptionStatus)),membershipType:"portfolio",userInfo:e.userInfo,userStats:e.retentionUserStats,defaultCancelFunction:function(){return e.cancelAutoDirectly(e.item)},planDetail:{planName:e.$t("styler.toptitle2"),price:e.item.planPrice,startTime:e.item.startTime,nextPayTime:e.item.nextPayTime,subscriptionId:e.item.subscriptionId,subscriptionRecordId:e.item.subscriptionRecordId}}}):t("span",{staticClass:"cancel-auto",on:{click:function(t){return e.handleCancel(e.item,"portfolio")}}},[e._v(e._s(e.$t(e.cancelAutoTxt(e.item.subscriptionStatus))))])]:e._e()],2):t("span",{staticClass:"cancel-auto renew-button",on:{click:function(t){return e.$emit("showMarketDialog","mysubscription_plancard")}}},[e._v(e._s(e.$t("mysub.renewbutton")))])],e._v(" "),e.surplusTime(e.item.startTime,e.item.endTime).isExp?t("span",{domProps:{innerHTML:e._s(e.$t("mysub.timeremaining",{day:"<span class='surplus-time'>".concat(e.surplusTime(e.item.startTime,e.item.endTime).expDays,"</sp
1an>")}))}}):e._e(),e._v(" "),!e.surplusTime(e.item.startTime,e.item.endTime).isExp&&e.item.subscriptionMember&&1===e.item.subscriptionStatus?t("span",[e._v("\n      "+e._s(e.$t("mysub.nextbillttime",{paypal:""}))+":"+e._s(e.timeformat(e.item.nextPayTime,"YYYY-mm-dd"))+"\n    ")]):e._e()],2)]):e.item&&7===e.item.comboType?t("div",{staticClass:"plan-card plan_member styler"},[e.currentTag?t("label",{staticClass:"tag"},[e._v(e._s(e.$t("subscription.cp")))]):e._e(),e._v(" "),t("div",{staticClass:"left"},[t("p",{staticClass:"title"},[e._v("\n      Styler"),e.item.subscriptionMember?t("span",{staticClass:"nextmon"},[e._v(" ("+e._s(e.$t("autorenew.nextmon"))+")")]):e._e()]),e._v(" "),t("span",[e._v(e._s(e.$t("styler.toptitle2")))])]),e._v(" "),t("div",{staticClass:"center"},e._l(e.subscriptionLeftStyler(e.item),function(n,i){return t("div",{key:i,staticClass:"num"},[t("div",{staticClass:"number small-number"},[e._v("\n        "+e._s(-1===n.number?e.$t("subscription.unlimited"):n.number)+"\n      ")]),e._v(" "),t("span",[e._v(e._s(n.label))])])}),0),e._v(" "),t("div",{staticClass:"right"},[t("p",[e._v(e._s(e.$t("styler.stylernum2")))]),e._v(" "),t("p",[e._v(e._s(e.$t("styler.stylernum3")))]),e._v(" "),t("p",[e._v(e._s(e.$t("styler.stylernum4")))]),e._v(" "),t("p",[e._v(e._s(e.$t("styler.stylernum5")))]),e._v(" "),t("p",[e._v(e._s(e.$t("styler.stylernum7")))]),e._v(" "),t("p",[e._v(e._s(e.$t("pricing2.whystyler7")))])]),e._v(" "),t("p",{staticClass:"valid"},[e.isHomestylerApp?e._e():[e.item.subscriptionMember?t("span",[e.item.infinityFlag?t("span",{staticClass:"cancel-auto cancel-auto-default"},[e._v(e._s(e.$t("infinity.subscription.hint")))]):2===e.item.subscriptionStatus||3===e.item.subscriptionStatus?t("span",{staticClass:"cancel-auto cancel-auto-default"},[e._v(e._s(e.$t(e.cancelAutoTxt(e.item.subscriptionStatus))))]):e._e(),e._v(" "),1===e.item.subscriptionStatus&&e.item.cancelSubscriptionUoneUrl?["A"===e.abTest.abRCancelSub?t("RetentionChatbotVue",{attrs:{getLocalContent:function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];return e.$t.apply(e,[t].concat(i))},text:e.$t(e.cancelAutoTxt(e.item.subscriptionStatus)),membershipType:"styler",userInfo:e.userInfo,userStats:e.retentionUserStats,defaultCancelFunction:function(){return e.cancelAutoDirectly(e.item)},planDetail:{planName:e.$t("styler.toptitle2"),price:e.item.planPrice,startTime:e.item.startTime,nextPayTime:e.item.nextPayTime,subscriptionId:e.item.subscriptionId,subscriptionRecordId:e.item.subscriptionRecordId}}}):t("span",{staticClass:"cancel-auto",on:{click:function(t){return e.handleCancel(e.item,"styler")}}},[e._v(e._s(e.$t(e.cancelAutoTxt(e.item.subscriptionStatus))))])]:e._e()],2):t("a",{staticClass:"cancel-auto renew-button",attrs:{href:"/pricing/resources?source_page=mysubscription_plancard"}},[e._v(e._s(e.$t("mysub.renewbutton")))])],e._v(" "),e.surplusTime(e.item.startTime,e.item.endTime).isExp?t("span",{domProps:{innerHTML:e._s(e.$t("mysub.timeremaining",{day:"<span class='surplus-time'>".concat(e.surplusTime(e.item.startTime,e.item.endTime).expDays,"</span>")}))}}):e._e(),e._v(" "),!e.surplusTime(e.item.startTime,e.item.endTime).isExp&&e.item.subscriptionMember&&1===e.item.subscriptionStatus?t("span",[e._v("\n      "+e._s(e.$t("mysub.nextbillttime",{paypal:""}))+":"+e._s(e.timeformat(e.item.nextPayTime,"YYYY-mm-dd"))+"\n    ")]):e._e()],2)]):e.item&&2===e.item.comboSort?t("div",{staticClass:"plan-card plan_member pro"},[e.currentTag?t("label",{staticClass:"tag"},[e._v(e._s(e.$t("subscription.cp")))]):e._e(),e._v(" "),t("div",{staticClass:"left"},[t("p",{staticClass:"title"},[e._v("\n      "+e._s(e.$t("pricing.profession.title"))),e.item.subscriptionMember?t("span",{staticClass:"nextmon"},[e._v(" ("+e._s(e.$t("autorenew.nextmon"))+")")]):e._e()]),e._v(" "),t("span",[e._v(e._s(e.$t("pricing.profession.desc")))])]),e._v(" "),t("div",{staticClass:"center"},e._l(e.subscriptionLeft(e.item),function(n,i){return t("div",{key:i,staticClass:"num"},[t("div",{staticClass:"number",class:{"small-number":-1===n.number}},[e._v("\n        "+e._s(-1===n.number?e.$t("subscription.unlimited"):n.number)+"\n        "),n.isVideo?t("span",[e._v("S")]):e._e(
1)]),e._v(" "),t("span",[e._v(e._s(n.label))])])}),0),e._v(" "),t("div",{staticClass:"right"},e._l(e.subscriptionRight(e.item),function(n,i){return t("p",{key:i},[e._v("\n      "+e._s(n)+"\n    ")])}),0),e._v(" "),t("p",{staticClass:"valid"},[e.isHomestylerApp?e._e():[e.item.infinityFlag?t("span",{staticClass:"cancel-auto cancel-auto-default"},[e._v(e._s(e.$t("infinity.subscription.hint")))]):e.item.subscriptionMember?t("span",[2===e.item.subscriptionStatus||3===e.item.subscriptionStatus?t("span",{staticClass:"cancel-auto cancel-auto-default"},[e._v(e._s(e.$t(e.cancelAutoTxt(e.item.subscriptionStatus))))]):e._e(),e._v(" "),1===e.item.subscriptionStatus&&e.item.cancelSubscriptionUoneUrl?["A"===e.abTest.abRCancelSub?t("RetentionChatbotVue",{attrs:{getLocalContent:function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];return e.$t.apply(e,[t].concat(i))},text:e.$t(e.cancelAutoTxt(e.item.subscriptionStatus)),membershipType:"pro",userInfo:e.userInfo,userStats:e.retentionUserStats,defaultCancelFunction:function(){return e.cancelAutoDirectly(e.item)},planDetail:{planName:e.$t("pricing.profession.title"),price:e.item.planPrice,startTime:e.item.startTime,nextPayTime:e.item.nextPayTime,subscriptionId:e.item.subscriptionId,subscriptionRecordId:e.item.subscriptionRecordId}}}):t("span",{staticClass:"cancel-auto",on:{click:function(t){return e.handleCancel(e.item,"pro")}}},[e._v(e._s(e.$t(e.cancelAutoTxt(e.item.subscriptionStatus))))])]:e._e()],2):t("a",{staticClass:"cancel-auto renew-button",attrs:{href:"/pricing?source_page=mysubscription_plancard"}},[e._v(e._s(e.$t("mysub.renewbutton")))])],e._v(" "),e.surplusTime(e.item.startTime,e.item.endTime).isExp?t("span",{domProps:{innerHTML:e._s(e.$t("mysub.timeremaining",{day:"<span class='surplus-time'>".concat(e.surplusTime(e.item.startTime,e.item.endTime).expDays,"</span>")}))}}):e._e(),e._v(" "),!e.surplusTime(e.item.startTime,e.item.endTime).isExp&&e.item.subscriptionMember&&1===e.item.subscriptionStatus?t("span",[e._v("\n      "+e._s(e.$t("mysub.nextbillttime",{paypal:""}))+":"+e._s(e.timeformat(e.item.nextPayTime,"YYYY-mm-dd"))+"\n    ")]):e._e()],2)]):e.item&&3===e.item.comboSort?t("div",{staticClass:"plan-card plan_member master"},[e.currentTag?t("label",{staticClass:"tag"},[e._v(e._s(e.$t("subscription.cp")))]):e._e(),e._v(" "),t("div",{staticClass:"left"},[t("p",{staticClass:"title"},[e._v("\n      "+e._s(e.$t("pricing.master.title"))),e.item.subscriptionMember?t("span",{staticClass:"nextmon"},[e._v(" ("+e._s(e.$t("autorenew.nextmon"))+")")]):e._e()]),e._v(" "),t("span",[e._v(e._s(e.$t("pricing.master.desc")))])]),e._v(" "),t("div",{staticClass:"center"},e._l(e.subscriptionLeft(e.item),function(n,i){return t("div",{key:i,staticClass:"num"},[t("div",{staticClass:"number",class:{"small-number":-1===n.number}},[e._v("\n        "+e._s(-1===n.number?e.$t("subscription.unlimited"):n.number)+"\n        "),n.isVideo?t("span",[e._v("S")]):e._e()]),e._v(" "),t("span",[e._v(e._s(n.label))])])}),0),e._v(" "),t("div",{staticClass:"right"},[e._l(e.subscriptionRight(e.item),function(n,i){return t("p",{key:i},[e._v("\n      "+e._s(n)+"\n    ")])}),e._v(" "),t("p",[e._v(e._s(e.$t("portfolio_master_content01"))+" "),t("a",{staticClass:"apply-now-link",attrs:{href:"/designers/apply"}},[e._v(e._s(e.$t("portfolio_master_benefit_applypage.Btn")))])])],2),e._v(" "),t("p",{staticClass:"valid"},[e.isHomestylerApp?e._e():[e.item.infinityFlag?t("span",{staticClass:"cancel-auto cancel-auto-default"},[e._v(e._s(e.$t("infinity.subscription.hint")))]):e.item.subscriptionMember?t("span",[2===e.item.subscriptionStatus||3===e.item.subscriptionStatus?t("span",{staticClass:"cancel-auto cancel-auto-default"},[e._v(e._s(e.$t(e.cancelAutoTxt(e.item.subscriptionStatus))))]):e._e(),e._v(" "),1===e.item.subscriptionStatus&&e.item.cancelSubscriptionUoneUrl?["A"===e.abTest.abRCancelSub?t("RetentionChatbotVue",{attrs:{getLocalContent:function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];return e.$t.apply(e,[t].concat(i))},text:e.$t(e.cancelAutoTxt(e.item.subscriptionStatus)),membershipType:"master",userInfo:e.userInfo,userStats:e.retentionUserStats,defaultCancelFunction:function(){return e.cancelAutoDirectly(e.item)},planDetail:{planName:e.$t("pricing.master.title"),price:e.item.planPrice,startTime:e.item.startTime,nextPayTime:e.item.nextPayTime,subscriptionId:e.item.subscriptionId,subscriptionRecordId:e.item.subscriptionRecordId}}}):t("span",{staticClass:"cancel-auto",on:{click:function(t){return e.handleCancel(e.item,"master")}}},[e._v(e._s(e.$t(e.cancelAutoTxt(e.item.subscriptionStatus))))])]:e._e()],2):t("a",{staticClass:"cancel-auto renew-button",attrs:{href:"/pricing/"}},[e._v(e._s(e.$t("mysub.renewbutton")))])],e._v(" "),e.surplusTime(e.item.startTime,e.item.endTime).isExp?t("span",{domProps:{innerHTML:e._s(e.$t("mysub.timeremaining",{day:"<span class='surplus-time'>".concat(e.surplusTime(e.item.startTime,e.item.endTime).expDays,"</sp
1an>")}))}}):e._e(),e._v(" "),!e.surplusTime(e.item.startTime,e.item.endTime).isExp&&e.item.subscriptionMember&&1===e.item.subscriptionStatus?t("span",[e.item.subscriptionMember&&e.item.nextPayTime?t("span",[e._v(e._s(e.$t("mysub.nextbillttime",{paypal:""}))+":"+e._s(e.timeformat(e.item.nextPayTime,"YYYY-mm-dd")))]):e._e()]):e._e()],2)]):e._e()},[],!1,null,"043fcbbf",null);t.a=m.exports},3829:function(e,t,n){"use strict";n(23),n(19),n(15),n(31),n(32);var i=n(7),a=n(1),s=(n(3148),n(119),n(3149)),r=n.n(s),o=(n(38),n(30),n(22),n(25),n(21)),c=n(12),l=n(14),u=n(24),d=n(3248),p=n(3249),m=n(972),f=n(3206);function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach(function(t){Object(a.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var v={name:"OrderTable",components:{ContactUs:d.a,InvoiceMsg:p.a,ListEmpty:m.a,Pagination:r.a},mixins:[f.a],props:{uoneLink:{type:String,default:""},hidePricing:{type:Boolean,default:!1}},data:function(){return{myOrderList:[],myOrderPageIndex:1,myOrderLoading:!0,contactUsVisible:!1,invoiceData:{},pageSize:24,myOrderTotal:0,imVisible:!1,otherUmsId:"",dialogShow:!1}},computed:g({},Object(o.d)(["locale","userInfo","isHomestylerApp","isAndroid","groupInfo","loaded"])),watch:{loaded:{handler:function(e){e&&this.getMyOrder()},immediate:!0}},mounted:function(){},methods:{timeformat:u.R,invoiceStatus:function(e){var t={type:"",text:"invoice.myorders.status1",spm:"invoice_download"};switch(e){case 0:t.type="process",t.text="invoice.myorders.status2";break;case 1:t.type="download",t.text="invoice.myorders.status3",t.spm="invoice_download";break;case 2:t.type="fail",t.text="invoice.myorders.status4.btn",t.spm="invoice_edit"}return t},hintsContactUs:function(e){"contact-us"===e.target.dataset.id&&this.invoiceContactUs()},invoiceContactUs:function(){this.contactUsVisible=!0,Object(l.c)("/hs_global_web.mysub.invoice_contact_us","member_id=".concat(this.userInfo.uid,"&language=").concat(this.locale))},orderInvoice:function(e){this.invoiceData=e,this.dialogShow=!0},drawInvoice:function(e){if(this.isHomestylerApp)this.$message.info(this.$t("app.invoice.toast"));else{2!==e.invoiceStatus&&void 0!==e.invoiceStatus||this.orderInvoice(e),1===e.invoiceStatus&&window.open(e.invoiceUrl,"_blank");var t=this.invoiceStatus(e.invoiceStatus).spm;Object(l.c)("/hs_global_web.mysub.".concat(t),"member_id=".concat(this.userInfo.uid,"&language=").concat(this.locale))}},handleCurrentChange:function(e){this.myOrderPageIndex=e,this.getMyOrder()},getMyOrder:function(){var e=this;return Object(i.a)(regeneratorRuntime.mark(function t(){var n,i,a,s,r;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e.myOrderLoading=!0,n=e.pageSize,i={pageIndex:e.myOrderPageIndex,pageSize:n},t.prev=1,!e.groupInfo.groupId){t.next=3;break}return t.next=2,c.a.payPal.teamOrderList({data:i});case 2:a=t.sent,t.next=5;break;case 3:return t.next=4,c.a.payPal.myOrderList({data:i});case 4:a=t.sent;case 5:s=a.data&&a.data.status&&a.data.status.code,a&&a.ret&&a.ret[0].includes("SUCCESS")&&0===s&&(0===(r=a.data.data.data.list.map(function(e){return g(g({},e),{},{activateLoading:!1,tipsShow:!1})})).length&&(e.loadDone=!1),e.myOrderTotal=a.data.data.paging.total,e.myOrderList=r),t.next=7;break;case 6:t.prev=6,t.catch(1);case 7:e.myOrderLoading=!1;case 8:case"end":return t.stop()}},t,null,[[1,6]])}))()},redeemCode:function(e){var t=this;return Object(i.a)(regeneratorRuntime.mark(function n(){var i,a,s,r,o,u,d,p;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:for(Object(l.c)("/hs_global_web.mysub.code_activate_click","member_id=".concat(t.userInfo.uid,"&language=").concat(t.locale,"&skuId=").concat(e.skuId)),t.$emit("getUoneLink"),i=t,a=0,s=t.myOrderList.length;a<s;a++)t.myOrderList[a].detailCodeId===e.detailCodeId&&(t.myOrderList[a].activateLoading=!0);return r={orderId:e.orderId,comboCode:e.comboCode},n.prev=1,n.next=2,c.a.payPal.redeemCode({data:r});case 2:o=n.sent,u=o.data&&o.data.status&&o.data.status.code,o&&o.ret&&o.ret[0].includes("SUCCESS")&&0===u?(t.$message.success(t.$t("success")),t.getMyOrder(),t.$emit("comboDetail"),t.uoneLink&&setTimeout(function(){window.open(i.uoneLink,"_blank")},2e3)):t.$message.error(t.$t("pricing.redeem.failed")),n.next=4;break;case 3:n.prev=3,n.catch(1);case 4:for(d=0,p=t.myOrderList.length;d<p;d++)t.myOrderList[d].detailCodeId===e.detailCodeId&&(t.myOrderList[d].activateLoading=!1);case 5:case"end":return n.stop()}},n,null,[[1,3]])}
1))()},goDetail:function(e){var t=e.providerId,n=this.$route.query.platform,i=void 0===n?"web":n;if(t)if(this.isHomestylerApp){var a="".concat(this.$global.homestyler,"/imchat?designerUmsId=").concat(t,"&platform=").concat(i,"&disableNav=true&bgcolor=ffffff&showloading=true&lang=").concat(this.locale);this.isAndroid?window.location.href="homestyler://m.homestyler.com/topicDetailBrowser?myBrowserUrl=".concat(a):this.callWindVane("WebAppInterface","openAiWindow",{url:a})}else this.otherUmsId=t,this.imVisible=!0}}},b=(n(4156),n(18)),_=Object(b.a)(v,function(){var e=this,t=e._self._c;return t("div",{staticClass:"myorder-wrap"},[t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.myOrderLoading,expression:"myOrderLoading"}],staticClass:"table"},[e.myOrderList&&e.myOrderList.length>0?t("div",[t("el-table",{staticStyle:{width:"100%"},attrs:{data:e.myOrderList}},[t("el-table-column",{attrs:{prop:"showOrderId",label:e.$t("paypal.orderid"),width:"160px"}}),e._v(" "),t("el-table-column",{attrs:{prop:"name",label:e.$t("paypal.product"),className:"myorder_name",minWidth:"280px"}}),e._v(" "),t("el-table-column",{attrs:{prop:"totalPrice",label:e.$t("paypal.price"),width:"100px"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n            "+e._s(t.row.totalPrice?"".concat(t.row.currencyIcon).concat(t.row.totalPrice):"")+"\n          ")]}}],null,!1,126900212)}),e._v(" "),t("el-table-column",{attrs:{prop:"purchaseDate",label:e.$t("paypal.purchasedate"),width:"160px"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n            "+e._s(t.row.purchaseDate?e.timeformat(t.row.purchaseDate):"")+"\n          ")]}}],null,!1,1542075439)}),e._v(" "),e.groupInfo.groupId?e._e():t("el-table-column",{attrs:{prop:"comboCode",label:e.$t("paypal.code"),width:"150px"}}),e._v(" "),e.groupInfo.groupId?e._e():t("el-table-column",{attrs:{prop:"redeemStatus",label:e.$t("paypal.action"),width:"140px"},scopedSlots:e._u([{key:"default",fn:function(n){return[17===n.row.orderType?t("div",{staticClass:"go-detail",on:{click:function(){return e.goDetail(n.row)}}},[e._v("\n              "+e._s(e.$t("workspace.myDesigns.goDetail"))+"\n            ")]):t("el-button",{attrs:{type:1===n.row.redeemStatus?"primary":"",loading:n.row.activateLoading,disabled:2===n.row.redeemStatus},on:{click:function(t){return e.redeemCode(n.row)}}},[e._v("\n              "+e._s(1===n.row.redeemStatus?e.$t("paypal.activate"):e.$t("paypal.activated"))+"\n            ")])]}}],null,!1,2066502669)}),e._v(" "),t("el-table-column",{attrs:{prop:"redeemStatus",label:e.$t("paypal.state"),width:"120px"},scopedSlots:e._u([{key:"default",fn:function(n){return[17===n.row.orderType?t("div",{staticClass:"service-status"},[e._v("\n              "+e._s(e.$t("newuser.completed"))+"\n            ")]):t("span",{class:1===n.row.redeemStatus?"inactive":"activated"},[e._v(e._s(1===n.row.redeemStatus?e.$t("paypal.inactive"):e.$t("paypal.activated")))])]}}],null,!1,3081279781)}),e._v(" "),t("el-table-column",{attrs:{prop:"redeemStatus",width:"180px"},scopedSlots:e._u([{key:"default",fn:function(n){return[17!==n.row.orderType?t("div",{staticClass:"invoice-status",class:e.invoiceStatus(n.row.invoiceStatus).type},[2===n.row.invoiceStatus?t("div",{staticClass:"fail"},[e._v("\n                "+e._s(e.$t("invoice.myorders.status4"))+"\n                "),t("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:n.row.invoiceRemark,placement:"top"}},[t("i",{staticClass:"iconfont icon-help"})])],1):e._e(),e._v(" "),t("div",{on:{click:function(t){return e.drawInvoice(n.row)}}},[e._v("\n                "+e._s(e.$t(e.invoiceStatus(n.row.invoiceStatus).text))+"\n              ")]),e._v(" "),1===n.row.invoiceStatus?t("div",{staticClass:"contact-us",on:{click:e.invoiceContactUs}},[e._v("\n                "+e._s(e.$t("invoice.myorders.status3.btn"))+"\n              ")]):e._e()]):e._e()]}}],null,!1,1466930402)},[t("template",{slot:"header"},[t("div",[e._v("\n              "+e._s(e.$t("invoice.myorders.bar"))+"\n              "),t("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"top"}},[t("span",{staticStyle:{"font-family":"AlibabaSans-Light"},attrs:{slot:"content"},domProps:{innerHTML:e._s(e.$t("invoice.myorders.hints",{contactus:"<span data-id='contact-us' style='font-family: AlibabaSans-BoldItalic; cursor: pointer; text-decoration: underline;' οnclick='invoiceContactUs'>".concat(e.$t("model.contact.button"),"</span>")}))},on:{click:e.hintsContactUs},slot:"content"}),e._v(" "),t("i",{staticClass:"iconfont icon-help"})])],1)])],2)],1)],1):t("ListEmpty",{attrs:{content:e.$t("paypal.noorders"),btnTitle:e.isHomestylerApp||e.hidePricing?"":e.$t("home.seePricing"),href:"/pricing/"}})],1),e._v(" "),e.myOrderTotal>e.pageSize?t("div",{staticClass:"pagination common-pagination"},[t("Pagination",{attrs:{background:"",layout:"total, prev, pager, next, jumper",pageSize:e.pageSize,currentPage:e.myOrderPageIndex,total:e.myOrderTotal},on:{"update:currentPage":function(t){e.myOrderPageIndex=t},"update:current-page":function(t){e.myOrderPageIndex=t},"current-change":e.handleCurrentChange}}
1)],1):e._e(),e._v(" "),t("ul",{staticClass:"myorder-tips"},[t("li",{domProps:{innerHTML:e._s(e.$t("my.subscription.hint.ctn"))}})]),e._v(" "),t("ContactUs",{staticClass:"invoice-contact-us",model:{value:e.contactUsVisible,callback:function(t){e.contactUsVisible=t},expression:"contactUsVisible"}}),e._v(" "),t("InvoiceMsg",{attrs:{invoiceVisible:e.dialogShow,orderData:e.invoiceData},on:{closeInvoice:function(t){e.dialogShow=!1},changeSuccess:function(t){return e.handleCurrentChange(1)}}}),e._v(" "),t("IMChatModalVue",{attrs:{otherUmsId:e.otherUmsId,locale:e.locale,visible:e.imVisible,handleCancel:function(){e.imVisible=!1}}})],1)},[],!1,null,"7016b4bb",null);t.a=_.exports;installComponents(_,{ListEmpty:n(405).default})},3831:function(e,t,n){"use strict";n(65);var i={name:"CategoryCrumbs",props:{firstCategory:{type:String,default:""},secondCategory:{type:String,default:""},showActive:{type:Boolean,default:!0},spbName:{type:String,default:"article_list"}},data:function(){return{}},computed:{firstCategoryLink:function(){return"/news/".concat(this.firstCategory.toLowerCase().replace(/\s+/g,"-"))},secondCategoryLink:function(){return"".concat(this.firstCategoryLink,"/").concat(this.secondCategory.toLowerCase().replace(/\s+/g,"-"))},activeSubcategory:function(){return!!this.secondCategory}},methods:{headerLinkHandler:function(e){globalSpmClick("".concat(this.spbName,".crumb_clk"),{path:e})}}},a=(n(4235),n(18)),s=Object(a.a)(i,function(){var e=this,t=e._self._c;return t("ul",{staticClass:"crumbs_wrap"},[t("li",[t("nuxt-link",{attrs:{to:"/article"},nativeOn:{click:function(t){return e.headerLinkHandler("article")}}},[e._v("\n      "+e._s(e.$t("seopg.navi.allarticles"))+"\n    ")])],1),e._v(" "),e.firstCategory?t("li",{class:{active:!e.activeSubcategory&&e.showActive}},[t("i",{staticClass:"arrow iconfont icon-arrow-right"}),e._v(" "),t("nuxt-link",{attrs:{to:e.firstCategoryLink},nativeOn:{click:function(t){return e.headerLinkHandler(e.firstCategoryLink)}}},[e._v("\n      "+e._s(e.firstCategory)+"\n    ")])],1):e._e(),e._v(" "),e.secondCategory?t("li",{class:{active:e.activeSubcategory&&e.showActive}},[t("i",{staticClass:"arrow iconfont icon-arrow-right"}),e._v(" "),t("nuxt-link",{attrs:{to:e.secondCategoryLink},nativeOn:{click:function(t){return e.headerLinkHandler(e.secondCategoryLink)}}},[e._v("\n      "+e._s(e.secondCategory)+"\n    ")])],1):e._e()])},[],!1,null,"f3ca1eba",null);t.a=s.exports},3833:function(e,t,n){"use strict";n(30),n(22),n(23),n(19),n(15),n(31),n(32);var i=n(1),a=(n(44),n(21)),s=n(28),r=n.n(s),o=n(14),c=n(363),l=n(150),u=n(280),d=n(446),p=n(188),m=n(141),f=n(444);function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach(function(t){Object(i.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var v={components:{shareModal:c.a},mixins:[m.a,p.a,d.a,l.a,f.a,u.a],props:{data:{type:Object,default:function(){return{}}},spmName:{type:String,default:"gallery"}},data:function(){return{shareModal:{show:!1,config:{}},tipsShow:!1,position:{top:"",left:"",right:"",bottom:""},likesArr:[],caseItem:{}}},computed:g(g({},Object(a.d)(["locale","userInfo"])),{},{isPrivate:function(){return 0===this.data.privateStatus},likeDataInfo:function(){return{bizType:"global",sourceType:this.getCurrentSource,platformSystem:"web",likeTargetType:this.getCurrentCaseFrom,likeTargetId:this.caseItem.caseId,likeTargetListString:this.getLikeTargetList}},getLikeTargetList:function(){return[{likeTargetType:this.getCurrentCaseFrom,likeTargetId:this.caseItem.caseId}]},getCurrentCaseFrom:function(){return this.$route.path.includes("forum")?2:1===this.caseItem.caseFrom?102:101},detailUrl:function(){var e=this.data,t=e.caseId,n=e.caseFrom,i=e.initTitle,a=e.name,s=void 0===a?"":a,o=this.getKeyWords(i,s),c=1===n?"web":"mobile";return"".concat(r.a.homestyler,"/ai-interior-design-detail/").concat(o,"-").concat(c,"-").concat(t)},shareTaskValue:function(){return this.data.caseId}}),watch:{"data.coverUrl":function(e){e&&this.shareModalInit()}},mounted:function(){this.shareModalInit()},created:function(){this.caseItemChange()},methods:{handleLikeChange:function(e){this.signIn?this.setLoginInfo("login"):"fail"!==e?(this.caseItem.likesCount<e.likesCount&&this.likeTaskStatusUpdate(),this.caseItem=g(g({},this.caseItem),e),e.isMyLike?this.likesArr.splice(this.likesArr.indexOf(this.caseItem.caseId),1):(Object(o.c)("/hs_global_web.".concat(this.spmName,".design_like"),"member_id=".concat(this.userInfo.uid,"&language=").concat(this.locale,"&case_id=").concat(this.caseItem.caseId)),this.likesArr.pu
1sh(this.caseItem.caseId))):this.$message.error(this.$t("coupon.wrong"))},award:function(){var e=this.data.contests&&this.data.contests[0];if(e){var t={clas:"",lang:""};switch(e.awardType){case 2:switch(e.rank){case 1:t={clas:"first",lang:"gallery.1stprize"};break;case 2:t={clas:"second",lang:"gallery.2ndprize"};break;case 3:t={clas:"third",lang:"gallery.3rdprize"};break;case 4:t={clas:"four",lang:"gallery.4rdprize"};break;case 5:t={clas:"five",lang:"gallery.5rdprize"};break;case 6:t={clas:"six",lang:"gallery.6rdprize"}}break;case 4:t={clas:"popular",lang:"gallery.popularity"};break;case 3:t={clas:"original",lang:"gallery.innovative"}}return t}},userJump:function(){location.href=this.data.homestylerId&&"/user/".concat(this.data.homestylerId)},caseItemChange:function(){this.caseItem={caseId:this.data.caseId,isMyLike:this.data.isLike,likesCount:this.data.likesCount,privateStatus:this.isPrivate?0:1,caseFrom:this.data.caseFrom}},shareClick:function(){Object(o.c)("/hs_global_web.".concat(this.spmName,".floating_share_click"),"member_id=".concat(this.userInfo.uid,"&language=").concat(this.locale,"&case_id=").concat(this.data.caseId)),this.shareModal.show=!0},shareModalInit:function(){var e=this.data,t=this.locale,n={title:e.name,description:e.description,image:e.coverUrl,url:this.detailUrl,text:'See this @homestyler project:"'.concat(e.name,'"'),attr:{bizId:e.caseId,type:1===e.caseFrom?2:4,language:t||"en_US"}};this.shareModal.config=n},caseJump:function(){var e=this.data.caseId;e&&(Object(o.c)("/hs_global_web.".concat(this.spmName,".projectDetail_click"),"case_id=".concat(e,"&member_id=").concat(this.userInfo.uid,"&language=").concat(this.locale)),window.open(this.detailUrl,"_blank"))},imgUrl:function(e){return e.coverUrl&&e.coverUrl.includes(".mp4")?"".concat(e.coverUrl,"?x-oss-process=video/snapshot,t_0,m_fast"):"".concat(e.coverUrl,"?x-oss-process=image/resize,m_mfit,w_636,h_460/format,webp")}}},b=(n(4275),n(18)),_=Object(b.a)(v,function(){var e=this,t=e._self._c;return t("div",{staticClass:"award-card-warp"},[t("div",{staticClass:"card"},[t("div",{staticClass:"top"},[e.data.contests&&e.data.contests[0]&&e.data.contests[0].isAwarded?t("img",{staticClass:"case-grade",class:{"case-award":1===e.data.feature},attrs:{src:n(1718)("./award_".concat(e.award().clas,".png"))},on:{mouseover:function(t){e.tipsShow=!0},mouseleave:function(t){e.tipsShow=!1}}}):e._e(),e._v(" "),t("a",{staticClass:"cover",style:{backgroundImage:e.data.coverUrl.includes(".mp4")?"url(".concat(e.data.coverUrl,"?x-oss-process=video/snapshot,t_0,m_fast,w_636,h_460)"):"url(".concat(e.data.coverUrl,"?x-oss-process=image/resize,m_mfit,w_636,h_460/format,webp)")},attrs:{href:e.detailUrl,target:"_blank"}}),e._v(" "),t("div",{staticClass:"content-mask"},[t("div",{staticClass:"author-warp",on:{click:e.userJump}},[t("img",{staticClass:"avatar",attrs:{src:e.data.authorAvatar?"".concat(e.data.authorAvatar,"?x-oss-process=image/resize,m_mfit,w_60,h_60/format,webp"):e.defaultAvatar,alt:e.data.authorName}}),e._v(" "),t("a",{staticClass:"author",attrs:{href:e.data.homestylerId?"/user/".concat(e.data.homestylerId):"javascript:void(0)"}},[e._v(e._s(e.data.authorName))])]),e._v(" "),t("client-only",[t("div",{staticClass:"icon-wrap"},[e.isPrivate?e._e():t("SocialLikes",{key:e.caseItem.caseId,attrs:{likeDataOther:e.likeDataInfo,likeData:e.caseItem},on:{"like-changed":e.handleLikeChange}}),e._v(" "),t("span",[t("share-modal",{attrs:{show:e.shareModal.show,caseId:e.data.caseId,shareCfg:e.shareModal.config,shareName:e.spmName},on:{"update:show":function(t){return e.$set(e.shareModal,"show",t)}}}),e._v(" "),t("i",{staticClass:"iconfont iconhs_xian_share",on:{click:e.shareClick}})],1)],1)])],1)])])])},[],!1,null,"770aed32",null);t.a=_.exports;installComponents(_,{SocialLikes:n(443).default})},3840:function(e,t,n){"use strict";n(23),n(19),n(15),n(31),n(32);var i=n(1);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?a(Object(n),!0).forEach(function(t){Object(i.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var r=n(8),o=n(7),c=(n(30),n(22),n(25),n(69),n(44),n(73),n(111),n(65),n(38),n(21)),l=n(450),u=n(109),d=n(12),p=n(14),m=n(456),f=n(600),h=n(170),g=n(189),v=n(51),b=n(153),_=n(150),y=n(280),w=n(188),C=n(643),O=n(92);function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(Object(n),!0).forEach(function(t){Object(i.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var S={normalImageUrl:"https://prod-hsm-designs.oss-us-east-1.aliyuncs.com/staging/upload/images/af383dc0-9727-4741-9427-abbfe266eeea.png",name:"Herostyler"},j={components:{rectLoad:h.a,FollowBtn:l.a,ShowMedalTag:m.a,SelectedDesignersAvatar:f.a,MemberBadge:C.a},directives:{inview:g.b},mixins:[w.a,b.a,_.a,y.a],props:{customStyle:{type:Object,default:function(){return{}}},showFollowingModal:{type:Object,default:function(){return{}}},show:{type:Boolean,default:!1},uid:{type:String,default:""},type:{type:String,default:"following"}},data:function(){return{visible:!1,height:"678px",width:"1200px",isMobileModel:!1,selectType:"following",loading:{show:!1},followingList:{data:[],offset:0,limit:12,total:0,isMore:!0,loading:!1},followerList:{data:[],offset:0,limit:12,total:0,isMore:!0,loading:!1},recommendList:{data:[],offset:0,limit:12,total:0,isMore:!0,loading:!1}}},computed:I(I({},Object(c.d)(["userInfo","locale"])),{},{loadSetting:function(){return{target:this.$refs["user-list"],callback:this.handleScorll}},sourcePage:function(){return"following"===this.selectType?"badge_profile_following":"follower"===this.selectType?"badge_profile_follow":"recommend"===this.selectType?"badge_profile_recommend":""},badgeSpmId:function(){return"following"===this.selectType?"/hs_global_web.profile.following_badge_learn_clk":"follower"===this.selectType?"/hs_global_web.profile.follow_badge_learn_clk":"recommend"===this.selectType?"/hs_global_web.profile.recommend_badge_learn_clk":""},dataList:function(){return"following"===this.selectType?this.followingList:"follower"===this.selectType?this.followerList:"recommend"===this.selectType?this.recommendList:[]},noDataTips:function(){return"following"===this.selectType?this.$t("social.noFollowing"):"follower"===this.selectType?this.$t("social.noFollowers"):""},showList:function(){return this.dataList&&this.dataList.data&&this.dataList.data.length}}),watch:{visible:function(e){this.$emit("update:show",e),e||(this.loading.show=!1,this.initData())},show:function(e){this.visible=e,e&&(this.selectType=this.type,this.resize(),this.getData())},type:function(e){this.selectType=e}},mounted:function(){},methods:{getMemberTypeFromUser:function(e){return Object(O.f)(e)},visitUser:function(){this.showFollowingModal.spmName?Object(p.c)("/hs_global_web.workspace_profile_pop.".concat(this.showFollowingModal.spmName,"_user_clk"),"member_id=".concat(this.showFollowingModal.memberId,"&design_id=").concat(this.showFollowingModal.desiginId,"&language=").concat(this.locale,"&source=").concat(this.showFollowingModal.source)):Object(p.c)("/hs_global_web.workspace_profile_pop.myfollower_visit","member_id=".concat(this.userInfo.uid,"&language=").concat(this.locale,"&select_type=").concat(this.selectType))},resize:function(){var e=document.body.offsetWidth,t=window.innerHeight;if(this.isMobileModel=e<720,this.isMobileModel)return this.width=e+"px",void(this.height=t-100-30+"px");this.width=e<1200?e-20+"px":"1200px";var n=.85*t-100-6,i=Math.floor(n/168);i<=3?i=3:i>4&&(i=4),this.height=168*i+6+"px"},closeModal:function(){this.visible=!1},opened:function(){var e=this;this.$nextTick(function(){e.loading.show=!0})},changeType:function(e){Object(p.c)("/hs_global_web.workspace_profile_pop.".concat(e,"_visit"),"member_id=".concat(this.userInfo.uid,"&language=").concat(this.locale)),this.dataList.loading||(this.selectType=e,this.dataList.isMore&&this.getData())},initData:function(){this.followingList={data:[],offset:0,limit:12,total:0,isMore:!0,loading:!1},this.followerList={data:[],offset:0,limit:12,total:0,isMore:!0,loading:!1},this.recommendList={data:[],offset:0,limit:12,total:0,isMore:!0,loading:!1}},getData:function(){if(this.uid&&this.dataList.isMore&&!this.dataList.loading){var e={offset:this.dataList.offset+1,limit:this.dataList.limit};"following"===this.selectType?this.getFollowingData(e):"follower"===this.selectType?this.getFollowerData(e):"recommend"===this.selectType&&this.getRecommendData(e)}},getFollowingData:function(e){var t=this;return Object(o.a)(regeneratorRuntime.mark(function n(){var i,a,s,r;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return t.followingList.loading=!0,n.next=1,u.a.gallery.getFollowingList(I({userId:t.uid},e),!1,{Authorization:t.getSessionKey(),lang:t.locale});case 1:i=n.sent,a=i.status,s=i.data,r=i.paging,0===a.code&&t.handleDataList(s.list,r),t.followingList.loading=!1;case 2:case"end":return n.stop()}},n)}))()},getFollowerData:function(e){var t=this;return Object(o.a)(regeneratorRuntime.mark(function n(){var i,a,s,r,o,c,l,p,m,f,h;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(t.followerList.loading=!0,!t.showFollowingModal.likeInfo){n.next=2;break}return n.next=1,d.a.other.likeUsers({data:{queryType:"like_me_design_user_list",likeTargetListString:t.showFollowingModal.likeInfo,queryUid:t.uid,pageNo:e.offset,pageSize:e.limit,includeDesignList:!0},options:{headers:{lang:t.locale||"en_US"}}});case 1:return(i=n.sent)&&i.ret&&i.ret[0].includes("SUCCESS")&&(c=(null==i||null===(a=i.data)||void 0===a?void 0:a.data)||[],l={limit:(null==i||null===(s=i.data)||void 0===s?void 0:s.paging.pageSize)||12,offset:(null==i||null===(r=i.data)||void 0===r?void 0:r.paging.pageNo)||1,total:(null==i||null===(o=i.data)||void 0===o?void 0:o.paging.total)||0},t.handleDataList(c,l)),t.followerList.loading=!1,n.abrupt("return");case 2:return n.next=3,u.a.gallery.getFollowerList(I({userId:t.uid},e),!1,{Authorization:t.getSessionKey(),lang:t.locale});case 3:p=n.sent,m=p.status,f=p.data,h=p.paging,0===m.code&&t.handleDataList(f.list,h),t.followerList.loading=!1;case 4:case"end":return n.stop()}},n)}))()},getRecommendData:function(e){var t=this;return Object(o.a)(regeneratorRuntime.mark(function n(){var i,a,s,o,c,l,u,p,m,f;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return t.recommendList.loading=!0,a={pageNo:e.offset,pageSize:e.limit,clientInfo:{},options:{headers:{lang:t.locale}}},n.next=1,d.a.feed.listDesigner({data:a});case 1:s=n.sent,o=[],c=t.recommendList,null!=s&&null!==(i=s.ret)&&void 0!==i&&i[0].includes("SUCCESS")&&null!=s&&s.data&&(l=s.data,u=l.users,p=void 0===u?[]:u,m=l.paging,f=void 0===m?[]:m,o=null==p?void 0:p.map(function(e){var n,i;return{avatar:e.user.avatar,firstName:e.user.firstName,lastName:e.user.lastName,userName:(null!==(n=e.user.firstName)&&void 0!==n?n:"")+" "+(null!==(i=e.user.lastName)&&void 0!==i?i:""),followed:!1,btnStatus:t.getBlockStatus({isfollowing:e.user.isfollowing,followed:!1}),likesCount:e.user.likedCount,designsCount:e.user.designCount,followerCount:e.user.followerCount,flowerBadgeInfo:e.user.isHero?S:{},uid:e.user.id,memberType:e.user.memberType,homestylerID:e.user.homestylerId,designs:e.designs.slice(0,4).map(function(e){var t,n;return{coverUrl:null!==(t=e.image)&&void 0!==t&&t.includes(".mp4")?"".concat(e.image,"?x-oss-process=video/snapsh
1ot,t_0,m_fast"):e.image,caseId:e.id,name:e.title,caseFrom:e.caseFrom,coverType:null!==(n=e.image)&&void 0!==n&&n.includes(".mp4")?"video":"image"}})}}),c.data=[].concat(Object(r.a)(c.data),Object(r.a)(o)),c.offset=f.pageNo,c.limit=f.pageSize,c.total=f.total,c.isMore=f.hasMore),t.recommendList.loading=!1;case 2:case"end":return n.stop()}},n)}))()},handleDataList:function(e,t){var n=this,i=this.followingList;"follower"===this.selectType&&(i=this.followerList),(e||[]).forEach(function(e){var t,a,s,r;e.userName=e.firstName+" "+e.lastName,e.btnStatus=n.getBlockStatus(e),e.likesCount=n.showFollowingModal.likeInfo?e.likedCount:e.likesCount,e.designsCount=n.showFollowingModal.likeInfo?e.designCount:e.designsCount,e.flowerBadgeInfo={name:e.userMedal?null===(t=e.userMedal)||void 0===t||null===(t=t.medalList)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.name:null==e||null===(a=e.medalList)||void 0===a||null===(a=a[0])||void 0===a?void 0:a.name,normalImageUrl:e.userMedal?null===(s=e.userMedal)||void 0===s||null===(s=s.medalList)||void 0===s||null===(s=s[0])||void 0===s?void 0:s.normalImageUrl:null===(r=e.medalList)||void 0===r||null===(r=r[0])||void 0===r?void 0:r.normalImageUrl},e.id&&(e.uid=e.id),e.homestylerId&&(e.homestylerID=e.homestylerId),e.userDesignDataDtoList&&e.userDesignDataDtoList.length>4&&(e.userDesignDataDtoList.length=4),e.designs&&e.designs.length>4&&(e.designs.length=4),i.data.push(e)}),i.offset=t.offset,i.limit=t.limit,i.total=t.total,i.isMore=i.total>i.offset*i.limit},handleScorll:function(){this.getData()},geImgLink:function(e){var t=e.caseId,n=e.caseFrom,i=e.initTitle,a=e.name,s=void 0===a?"":a,r=this.getKeyWords(i,s),o=1===n?"web":"mobile";return"/ai-interior-design-detail/".concat(r,"-").concat(o,"-").concat(t)},getBlockStatus:function(e){var t=e.blockStatus||0;return e.isfollowing&&(t=99),e.followed&&(t=99),t},statusChange:function(e,t){var n=this;return Object(o.a)(regeneratorRuntime.mark(function i(){var a,s;return regeneratorRuntime.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(a=n.dataList.data.find(function(e){return e.uid===t})){i.next=1;break}return i.abrupt("return");case 1:s=e,i.next="follow"===s?2:"unfollow"===s?5:"unBlock"===s?6:7;break;case 2:if(a.followed=!0,!n.showFollowingModal.spmName){i.next=4;break}return i.next=3,u.a.gallery.getLikes({userId:n.uid},!1,{Authorization:n.getSessionKey(),lang:n.locale});case 3:return i.sent,Object(p.c)("/hs_global_web.workspace_profile_pop.".concat(n.showFollowingModal.spmName,"_follow_clk"),"member_id=".concat(n.showFollowingModal.memberId,"&design_id=").concat(n.showFollowingModal.desiginId,"&language=").concat(n.locale,"&source=").concat(n.showFollowingModal.source)),i.abrupt("return");case 4:return Object(p.c)("/hs_global_web.workspace_profile_pop.follow","member_id=".concat(n.userInfo.uid,"&language=").concat(n.locale,"&follow_id=").concat(t,"&select_type=").concat(n.selectType)),i.abrupt("continue",7);case 5:return Object(p.c)("/hs_global_web.workspace_profile_pop.unfollow","member_id=".concat(n.userInfo.uid,"&language=").concat(n.locale,"&unfollow_id=").concat(t,"&select_type=").concat(n.selectType)),a.followed=!1,i.abrupt("continue",7);case 6:return 1===a.blockStatus?a.blockStatus=0:3===a.blockStatus&&(a.blockStatus=2),i.abrupt("continue",7);case 7:a.btnStatus=n.getBlockStatus(a);case 8:case"end":return i.stop()}},i)}))()},userAvatar:function(e){var t;return null!==(t=e)&&void 0!==t&&t.startsWith("http://")&&(e=e.replace("http://","https://")),e?Object(v.d)(e,120):this.defaultAvatar},buildDesignUrl:function(e){return"video"===e.coverType?e.coverUrl:Object(v.d)(e.coverUrl,400,270)}},filters:{ossImage:v.c}},T=(n(4031),n(18)),x=Object(T.a)(j,function(){var e=this,t=e._self._c;return t("div",{staticClass:"follow-modal-warp"},[t("el-dialog",{staticClass:"follow-modal-warp",attrs:{visible:e.visible,appendToBody:!0,showClose:!1,width:e.width,fullscreen:e.isMobileModel,closeOnPressEscape:!0},on:{"update:visible":function(t){e.visible=t},open:e.opened}},[t("div",{staticClass:"dialog-header",attrs:{slot:"title"},slot:"title"},[t("i",{staticClass:"iconfont icon-close",on:{click:e.closeModal}})]),e._v(" "),t("div",{staticClass:"follow-body"},[t("div",{staticClass:"tab-warp"},[t("span",{class:"following"===e.selectType?"active":"",on:{click:function(t){return e.changeType("following")}}},[e._v(e._s(e.$t("social.following")))]),e._v(" "),t("span",{class:"follower"===e.selectType?"active":"",on:{click:function(t){return e.changeType("follower")}}},[e._v(e._s(e.$t("comment.followers")))]),e._v(" "),t("span",{class:"recommend"===e.selectType?"active":"",on:{click:function(t){return e.changeType("recommend")}}},[e._v(e._s(e.$t("community_recommend")))])]),e._v(" "),t("div",{ref:"user-list",staticClass:"user-list-warp",class:"1200px"===e.width?"hide-overflow":"",style:s({height:e.height},e.customStyle)}
1,["recommend"===e.selectType?t("div",{staticClass:"recommend_tips"},[e._v("\n          "+e._s(e.$t("community_intereated"))+"\n        ")]):e._e(),e._v(" "),e.showList?t("div",{key:e.selectType},e._l(e.dataList.data,function(n,i){return t("div",{key:n.homestylerID,staticClass:"user-item-warp"},[t("div",{staticClass:"user-avater"},[n.selectedDesigner||n.portfolioMember?[t("SelectedDesignersAvatar",{attrs:{src:e.userAvatar(n.avatar),showPopover:!1,hiddenMemberIcon:""}})]:[t("a",{attrs:{href:"/user/".concat(n.homestylerID),target:"_blank"},on:{click:e.visitUser}},[t("img",{attrs:{src:e.userAvatar(n.avatar),alt:"avatar"}})])],e._v(" "),t("MemberBadge",{staticClass:"member-badge",attrs:{showPopover:!0,hidden:!1,isOwner:!1,userInfo:n,memberType:e.getMemberTypeFromUser(n),iconClass:"member-badge-icon",spmInfo:{id:e.badgeSpmId},sourcePage:e.sourcePage}})],2),e._v(" "),t("div",{staticClass:"info-warp"},[t("div",{staticClass:"name"},[t("a",{attrs:{href:"/user/".concat(n.homestylerID),target:"_blank"},on:{click:e.visitUser}},[e._v(e._s(n.firstName)+" "+e._s(n.lastName))]),e._v(" "),t("ShowMedalTag",{attrs:{size:"middle",badgeInfo:n.flowerBadgeInfo}})],1),e._v(" "),t("div",{staticClass:"count"},[t("span",[t("span",{staticClass:"type"},[e._v(e._s(e.$t("recommend"===e.selectType?"social.followers":"social.likes")))]),e._v("  "),t("span",{staticClass:"num"},[e._v(e._s("recommend"===e.selectType?n.followerCount:n.likesCount))])]),e._v(" "),t("span",[t("span",{staticClass:"type"},[e._v(e._s(e.$t("social.designs")))]),e._v("  "),t("span",{staticClass:"num"},[e._v(e._s(n.designsCount))])])]),e._v(" "),n.uid!==e.userInfo.uid?t("FollowBtn",{attrs:{small:"",btnStatus:n.btnStatus,uid:n.uid,userName:n.userName},on:{statusChange:e.statusChange}}):e._e()],1),e._v(" "),e.showFollowingModal.likeInfo?t("div",{staticClass:"designs"},e._l(n.userDesignDataDtoList,function(n,i){return t("a",{key:i,attrs:{href:e.geImgLink(n),target:"_blank"}},[t("img",{attrs:{src:e._f("ossImage")(n.coverUrl,800,540),alt:"design"}})])}),0):t("div",{staticClass:"designs"},e._l(n.designs,function(n,i){return t("a",{key:i,attrs:{href:e.geImgLink(n),target:"_blank"}},[t("img",{attrs:{src:e.buildDesignUrl(n),alt:"design"}})])}),0)])}),0):e._e(),e._v(" "),e.showList||e.dataList.loading?e._e():t("div",{staticClass:"empty-tips"},[t("div",[t("img",{attrs:{src:n(1815),alt:"no_follower.png"}}),e._v(" "),t("div",[e._v(e._s(e.noDataTips))])])]),e._v(" "),e.loading.show?t("div",{directives:[{name:"inview",rawName:"v-inview",value:e.loadSetting,expression:"loadSetting"}],staticClass:"load-more"},[t("rect-load",{directives:[{name:"show",rawName:"v-show",value:e.dataList.loading,expression:"dataList.loading"}]})],1):e._e()])])])],1)},[],!1,null,null,null);t.a=x.exports},3841:function(e,t,n){"use strict";n(23),n(19),n(15),n(31),n(32);var i=n(1),a=(n(30),n(22),n(21));function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){Object(i.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var o={name:"rule",props:{},mixins:[n(141).a],data:function(){return{}},computed:r(r({},Object(a.d)(["signIn","pricingActivity","pricingActivityConfig"])),{},{inActivity:function(){return this.pricingActivityConfig&&this.pricingActivityConfig.activityMarketType?this.pricingActivity&&this.pricingActivityConfig.activityMarketType.includes("mgm"):!!this.pricingActivity}}
1),mounted:function(){},methods:{clickMGM:function(){this.signIn?this.setLoginInfo("login"):(this.$store.commit("SET_MGMSOURCE","mgmBtn"),this.$store.commit("SET_MGMSHOW",!0))}}},c=(n(4032),n(18)),l=Object(c.a)(o,function(){var e=this,t=e._self._c;return t("button",{staticClass:"link-mgm",style:{backgroundImage:e.inActivity?"url(".concat(e.pricingActivityConfig.mgmBtnBg,")"):""},on:{click:e.clickMGM}},[t("span",{staticClass:"link-mask"},[e.inActivity?t("img",{staticClass:"mgm-into",attrs:{src:n(1024)}}):t("img",{staticClass:"btn-img",attrs:{src:n(1777)}}),e._v("\n    "+e._s(e.pricingActivity?e.$t("mgm2.referbutton.blk"):e.$t("mgm2.referbutton"))+"\n  ")])])},[],!1,null,"36a2dec0",null);t.a=l.exports},3842:function(e,t,n){"use strict";n(62),n(407),n(88);var i={name:"CountdownTimer",props:{endTime:{type:Number,required:!0,default:0}},data:function(){return{timeDiff:0,timer:null}},computed:{hours:function(){return String(Math.floor(this.timeDiff/36e5)).padStart(2,"0").split("")},minutes:function(){return String(Math.floor(this.timeDiff/6e4%60)).padStart(2,"0").split("")},seconds:function(){return String(Math.floor(this.timeDiff/1e3%60)).padStart(2,"0").split("")}},mounted:function(){this.updateTimeDiff(),this.startTimer()},beforeDestroy:function(){this.clearTimer()},methods:{updateTimeDiff:function(){this.timeDiff=this.endTime-Date.now(),this.timeDiff<0&&(this.timeDiff=0)},startTimer:function(){var e=this;this.timer=setInterval(function(){e.updateTimeDiff(),e.timeDiff<=0&&(e.clearTimer(),e.$emit("timeout"))},1e3)},clearTimer:function(){this.timer&&(clearInterval(this.timer),this.timer=null)}}},a=(n(4073),n(18)),s=Object(a.a)(i,function(){var e=this,t=e._self._c;return t("div",{staticClass:"countdown_time"},[t("span",{staticClass:"countdown_time_item countdown_time_item_first"},[e._v(e._s(e.hours[0]))]),e._v(" "),t("span",{staticClass:"countdown_time_item"},[e._v(e._s(e.hours[1]))]),e._v(" "),t("span",{staticClass:"countdown_time_item_separator"},[e._v(":")]),e._v(" "),t("span",{staticClass:"countdown_time_item countdown_time_item_first"},[e._v(e._s(e.minutes[0]))]),e._v(" "),t("span",{staticClass:"countdown_time_item"},[e._v(e._s(e.minutes[1]))]),e._v(" "),t("span",{staticClass:"countdown_time_item_separator"},[e._v(":")]),e._v(" "),t("span",{staticClass:"countdown_time_item countdown_time_item_first"},[e._v(e._s(e.seconds[0]))]),e._v(" "),t("span",{staticClass:"countdown_time_item"},[e._v(e._s(e.seconds[1]))])])},[],!1,null,"fead1614",null);t.a=s.exports},3849:function(e,t,n){"use strict";n(3278)},3855:function(e,t,n){"use strict";n(3284)},3856:function(e,t,n){"use strict";n(3285)},3857:function(e,t,n){"use strict";n(3286)},3858:function(e,t,n){"use strict";n(3287)},3859:function(e,t,n){"use strict";n(3288)},3860:function(e,t,n){"use strict";n(3289)},3861:function(e,t,n){"use strict";n(3290)},3862:function(e,t,n){"use strict";n(3291)},3863:function(e,t,n){"use strict";n(3292)},3864:function(e,t,n){"use strict";n(3293)},3865:function(e,t,n){"use strict";n(3294)},3866:function(e,t,n){"use strict";n(3295)},3867:function(e,t,n){"use strict";n(3296)},3870:function(e,t,n){"use strict";n(3299)},3871:function(e,t,n){"use strict";n(3300)},3874:function(e,t,n){"use strict";n(3303)},3881:function(e,t,n){"use strict";n(3311)},3882:function(e,t,n){"use strict";n(3312)},3883:function(e,t,n){"use strict";n(3313)},3884:function(e,t,n){"use strict";n(3314)},3886:function(e,t,n){"use strict";n(3316)},3889:function(e,t,n){"use strict";n(3320)},3890:function(e,t,n){"use strict";n(3321)},3891:function(e,t,n){"use strict";n(3322)},3892:function(e,t,n){"use strict";n(3323)},3893:function(e,t,n){"use strict";n(3324)},3894:function(e,t,n){"use strict";n(3325)},3895:function(e,t,n){"use strict";n(3326)},3896:function(e,t,n){"use strict";n(3327)},3897:function(e,t,n){"use strict";n(3328)},3904:function(e,t,n){"use strict";n(3335)},3906:function(e,t,n){"use strict";n(3337)},3907:function(e,t,n){"use strict";n(3338)},3908:function(e,t,n){"use strict";n(3339)},3909:function(e,t,n){"use strict";n(3340)},3910:function(e,t,n){"use strict";n(3341)},3911:function(e,t,n){"use strict";n(3342)},3912:function(e,t,n){"use strict";n(3343)},3915:function(e,t,n){"use strict";n(3346)},3918:function(e,t,n){"use strict";n(3350)},3921:function(e,t,n){"use strict";n(3353)},3923:function(e,t,n){"use strict";n(3355)},3946:function(e,t,n){"use strict";n(3378)},3951:function(e,t,n){"use strict";n(3383)},3963:function(e,t,n){"use strict";n(3396)},3964:function(e,t,n){"use strict";n(3397)},3966:function(e,t,n){"use strict";n(3399)},3967:function(e,t,n){"use strict";n(3400)},3982:function(e,t,n){"use strict";n(3413)},3985:function(e,t,n){e.exports={}},3986:function(e,t,n){e.exports={}},3987:function(e,t,n){e.exports=n.p+"img/loading.7b30402.gif"},3988:function(e,t,n){e.exports={}},3989:function(e,t,n){e.exports={}},3990:function(e,t,n){e.exports={}}
1,3991:function(e,t,n){e.exports={}},3992:function(e,t,n){e.exports={}},3993:function(e,t,n){e.exports={}},3994:function(e,t,n){e.exports={}},3995:function(e,t,n){e.exports={}},3996:function(e,t,n){e.exports={}},3997:function(e,t,n){e.exports={}},3998:function(e,t,n){e.exports={}},3999:function(e,t,n){e.exports={}},4e3:function(e,t,n){e.exports={}},4001:function(e,t,n){e.exports={}},4002:function(e,t,n){e.exports={}},4003:function(e,t,n){e.exports={}},4004:function(e,t,n){e.exports={}},4006:function(e,t,n){"use strict";n(3417)},4007:function(e,t,n){"use strict";n(3419)},4009:function(e,t,n){"use strict";n(3421)},4010:function(e,t,n){"use strict";n(3422)},4022:function(e,t,n){"use strict";n(3434)},4024:function(e,t,n){"use strict";n(3436)},4026:function(e,t,n){"use strict";n(3439)},4027:function(e,t,n){"use strict";n(3440)},4028:function(e,t,n){"use strict";n(3441)},4029:function(e,t,n){"use strict";n(3442)},4031:function(e,t,n){"use strict";n(3444)},4032:function(e,t,n){"use strict";n(3445)},4033:function(e,t,n){e.exports={}},4034:function(e,t,n){e.exports={}},4035:function(e,t,n){e.exports={}},4037:function(e,t,n){"use strict";n(3447)},4040:function(e,t,n){"use strict";n(3450)},4043:function(e,t,n){"use strict";n(3453)},4044:function(e,t,n){"use strict";n(3454)},4045:function(e,t,n){"use strict";n(3455)},4067:function(e,t,n){"use strict";n(3479)},4068:function(e,t,n){"use strict";n(3480)},4069:function(e,t,n){"use strict";n(3481)},4070:function(e,t,n){"use strict";n(3482)},4071:function(e,t,n){"use strict";n(3483)},4072:function(e,t,n){"use strict";n(3484)},4073:function(e,t,n){"use strict";n(3485)},4074:function(e,t,n){"use strict";n(3486)},4075:function(e,t,n){"use strict";n(3487)},4076:function(e,t,n){"use strict";n(3488)},4077:function(e,t,n){"use strict";n(3489)},4078:function(e,t,n){"use strict";n(3490)},4079:function(e,t,n){"use strict";n(3491)},4100:function(e,t,n){"use strict";n(3512)},4101:function(e,t,n){"use strict";n(3513)},4102:function(e,t,n){"use strict";n(3514)},4103:function(e,t,n){"use strict";n(3515)},4120:function(e,t,n){"use strict";n(3525)},4121:function(e,t,n){"use strict";n(3526)},4122:function(e,t,n){"use strict";n(3527)},4123:function(e,t,n){"use strict";n(3528)},4124:function(e,t,n){"use strict";n(3529)},4125:function(e,t,n){"use strict";n(3530)},4126:function(e,t,n){"use strict";n(3531)},4127:function(e,t,n){"use strict";n(3532)},4128:function(e,t,n){"use strict";n(3533)},4129:function(e,t,n){"use strict";n(3534)},4132:function(e,t,n){"use strict";n(3537)},4133:function(e,t,n){"use strict";n(3538)},4134:function(e,t,n){"use strict";n(3539)},4135:function(e,t,n){"use strict";n(3540)},4136:function(e,t,n){"use strict";n(3541)},4137:function(e,t,n){"use strict";n(3542)},4138:function(e,t,n){"use strict";n(3543)},4139:function(e,t,n){"use strict";n(3544)},4144:function(e,t,n){"use strict";n(3549)},4145:function(e,t,n){var i={"./hs_tag_first.png":1807,"./hs_tag_five.png":1808,"./hs_tag_four.png":1809,"./hs_tag_original.png":1810,"./hs_tag_popular.png":1811,"./hs_tag_second.png":1812,"./hs_tag_six.png":1813,"./hs_tag_third.png":1814};function a(e){var t=s(e);return n(t)}function s(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}a.keys=function(){return Object.keys(i)},a.resolve=s,e.exports=a,a.id=4145},4146:function(e,t,n){"use strict";n(3550)},4147:function(e,t,n){"use strict";n(3551)},4148:function(e,t,n){"use strict";n(3552)},4156:function(e,t,n){"use strict";n(3560)},4163:function(e,t,n){"use strict";n(3567)},4200:function(e,t,n){"use strict";n(3604)},4201:function(e,t,n){"use strict";n(3605)},4231:function(e,t,n){"use strict";n(3633)},4232:function(e,t,n){"use strict";n(3634)},4233:function(e,t,n){"use strict";n(3635)},4234:function(e,t,n){"use strict";n(3636)},4235:function(e,t,n){"use strict";n(3637)},4236:function(e,t,n){"use strict";n(3638)},4237:function(e,t,n){"use strict";n(3639)},4238:function(e,t,n){"use strict";n(3640)},4239:function(e,t,n){"use strict";n(3641)},4240:function(e,t,n){"use strict";n(3642)},4241:function(e,t,n){"use strict";n(3643)},4262:function(e,t,n){"use strict";n(3665)},4275:function(e,t,n){"use strict";n(3678)},4278:function(e,t,n){"use strict";n(3681)},4279:function(e,t,n){"use strict";n(3682)},4450:function(e,t,n){"use strict";n.r(t);n(44),n(23),n(19),n(15),n(31),n(32),n(825),n(119);var i=n(535),a=n.n(i),s=n(7),r=n(1),o=(n(65),n(38),{name:"VueUEditor",props:{ueditorPath:{type:String,default:"/ueditor/"},ueditorConfig:{type:Object,default:function(){return{}}}},data:function(){return{editorId:"edtior",instance:null,scriptTagStatus:0,edtiorLoading:!0}},mounted:function(){"undefined"!=typeof window&&(void 0!==window.UE?(this.editorId="edtior_"+Math.random(),this.scriptTagStatus=2,this.initEditor()):this.insertScriptTag())},methods:{insertScriptTag:function(){var e=this,t=document.getElementById("editorScriptTag"),n=document.getElementById("configScriptTag");if(null===t){(n=document.createElement("script")).type="text/javascript",n.src=this.ueditorPath+"ueditor.config.min.js",n.id="configScriptTag",(t=document.createElement("script")).type="text/javascript",t.src=this.ueditorPath+"ueditor.all.min.js",t.id="editorScriptTag";var i=document.getElementsByTagName("head")[0];i.appendChild(n),i.appendChild(t)}n.loaded?this.scriptTagStatus++:n.addEventListener("load",function(){e.scriptTagStatus++,n.loaded=!0,e.initEditor()}),t.loaded?this.scriptTagStatus++:t.addEventListener("load",function(){e.scriptTagStatus++,t.loaded=!0,e.initEditor()}),this.initEditor()},initEditor:function(){var e=this;2===this.scriptTagStatus&&null===this.instance&&this.$nextTick(function(){e.instance=window.UE.getEditor(e.editorId,e.ueditorConfig),e.instance.addListener("ready",function(){e.$emit("ready",e.instance),e.edtiorLoading=!1})})}}}),c=(n(3966),n(18)),l=Object(c.a)(o,function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.edtiorLoading,expression:"edtiorLoading"}],staticClass:"editor-content"},[t("script",{attrs:{id:e.editorId,name:"content",type:"text/plain"}})])},[],!1,null,"7c506655",null).exports,u=n(12),d=n(21),p=n(109),m=n(24),f=n(141),h=n(590),g=n(14);function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?v(Object(n),!0).forEach(function(t){Object(r.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var _={name:"addForum",components:{uEditor:l},props:{type:{type:String,default:"add"},editData:{type:Object,default:function(){}}},data:function(){return{useCategories:{},sectionId:"",count:0,title:"",content:"",title2:"发表帖子",loading:!1,lastSubmittedContentHash:"",editorConfig:{toolbars:[["source","FontSize","bold","italic","forecolor","justifyleft","justifyright","justifycenter","justifyjustify","horizontal","lineheight","link","simpleupload","insertvideo","insertframe","undo","redo","fullscreen"]],retainOnlyLabelPasted:!0,pasteplain:!0,initialFrameHeight:500,elementPathEnabled:!1,imageScaleEnabled:!1,enableAutoSave:!1,enableContextMenu:!1},surfaceImage2:[],editorInstance:""}},computed:b(b({},Object(d.d)(["locale","signIn","userInfo","blockStatus"])),{},{btnDisabled:function(){return this.valueLength(this.title)<6||this.blockStatus}}),mixins:[f.a,h.a],head:function(){var e=this.$t("forum.index.title"),t=this.$t("forum.index.desc"),n=this.$t("forum.index.keyWords");return{title:e,meta:this.getMetaTags("forum",{title:e,description:t,keywords:n,spma:"a1zmxy",spmb:"23072554"}),link:this.getLinkTags("forum")}},watch:{locale:function(){this.getSectionAllList()},editorInstance:function(e){e&&this.edit()}},asyncData:function(e){return Object(s.a)(regeneratorRuntime.mark(function t(){var n,i,a,s,r;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.query,i=e.store,a=[],t.prev=1,s={type:2},t.next=2,p.a.forum.sectionAllList(s,!1,{lang:i.state.locale||"en_US"});case 2:(r=t.sent).status&&0===r.status.code&&(a=r.data),t.next=4;break;case 3:t.prev=3,t.catch(1);case 4:return t.abrupt("return",{useCategories:a,postId:n.postId});case 5:case"end":return t.stop()}},t,null,[[1,3]])}))()},created:function(){},mounted:function(){this.sectionId=this.editData.sectionId,this.title=this.editData.title,this.content=this.editData.content},methods:{generateContentHash:function(e,t,n){return"".concat(null==e?void 0:e.trim(),"|").concat(t,"|").concat(null==n?void 0:n.trim())},valueLength:function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replace(/(^\s*)|(\s*$)/g,"").length},edit:function(){this.editorInstance&&this.editorInstance.execCommand&&this.editorInstance.execCommand("insertHtml",this.content)},editorReady:function(e){var t=this;return Object(s.a)(regeneratorRuntime.mark(function n(){var i;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:i=t,t.editorInstance=e,e.addListener("contentChange",function(){i.content=e.getContent()}),e.addListener("afterinsertimage",function(t,n){i.content=e.getContent()}),e.addListener("afterinsertvideo",function(t,n){i.content=e.getContent()}),e.addListener("afterinserthtml",function(t,n){i.content=e.getContent()});case 1:case"end":return n.stop()}},n)}))()},getSectionAllList:function(){var e=this;return Object(s.a)(regeneratorRuntime.mark(function t(){var n,i;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=1,u.a.forum.sectionAllList({data:{type:2},options:{headers:{lang:e.locale}}});case 1:(n=t.sent).data&&0===n.data.data.status.code&&(i=n.data.data.data,e.useCategories=i),t.next=3;break;case 2:t.prev=2,t.catch(0);case 3:case"end":return t.stop()}},t,null,[[0,2]])}))()},publish:function(){var e=this;return Object(s.a)(regeneratorRuntime.mark(function t(){var n,i,s,r,o,c,l,d,p,f;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.loading){t.next=1;break}return t.abrupt("return");case 1:if(Object(g.c)("/hs_global_web.forum.submit_post","member_id=".concat(e.userInfo.uid,"&language=").concat(e.locale)),!e.signIn){t.next=2;break}e.setLoginInfo("login"),t.next=9;break;case 2:if(n=e.title,i=e.sectionId,s=e.content,!(e.valueLength(i)<1)){t.next=3;break}return a.a.error(e.$t("forum.pleaseSelect")),t.abrupt("return");case 3:if(s&&!(s.indexOf("/ueditor/themes/default/images/spacer.gif")>-1)){t.next=4;break}return a.a.error(e.$t("forum.addPost.imgLoadingTips")),t.abrupt("return");case 4:if(r=e.generateContentHash(e.title,e.sectionId,e.content),!e.lastSubmittedContentHash||e.lastSubmittedContentHash!==r){t.next=5;break}return a.a.warning(e.$t("forum.addPost.duplicateSubmit")),t.abrupt("return");case 5:return o=s.replace(/<p><iframe/g,'<p class="hs-iframe"><iframe'),c=o.replace(/<iframe/g,"<hsVideo").replace(/<\/iframe>/g,"</hsVideo>"),l={title:n,sectionId:i,content:c,postId:e.postId||""},e.loading=!0,t.prev=6,t.next=7,u.a.forum.publishPost({data:l});case 7:(d=t.sent).data&&d.data.data?(p=d.data.data.status.code,f=d.data.data.sensitiveWorList,0===p?(e.lastSubmittedContentHash=r,a.a.success(e.$t("forum.addPost.success")),setTimeout(function(){var t=Object(m.V)("/forum/","sectionId",e.
1sectionId);location.href=t},500)):1010001===p||1010009===p||1020001===p?a.a.error(e.$t("forum.addPost.sensitiveWords",{words:f})):1000015===p?a.a.error(e.$t("forum.blockTips")):1010012===p&&a.a.error(e.$t("bbs.article.pending")),0!==p&&(e.loading=!1)):e.loading=!1,t.next=9;break;case 8:t.prev=8,t.catch(6),a.a.error(e.$t("forum.failedSubmit")),e.loading=!1;case 9:case"end":return t.stop()}},t,null,[[6,8]])}))()},categoryChange:function(e){this.sectionId=e}}},y=_,w=(n(3967),Object(c.a)(y,function(){var e=this,t=e._self._c;return t("section",[t("div",{staticClass:"post-add"},[t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"post"},[t("div",{staticClass:"input-wrapper"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.title,expression:"title"}],attrs:{type:"text",maxlength:"300",placeholder:e.$t("forum.addPost.placeholder",{min:6,max:300})},domProps:{value:e.title},on:{input:function(t){t.target.composing||(e.title=t.target.value)}}})]),e._v(" "),t("div",{staticClass:"classify"},[t("el-select",{staticClass:"fl",attrs:{size:"small",placeholder:e.$t("forum.addPost.selectCategory")},on:{change:e.categoryChange},model:{value:e.sectionId,callback:function(t){e.sectionId=t},expression:"sectionId"}},e._l(e.useCategories,function(e,n){return t("el-option",{key:n,attrs:{label:e.name,value:e.id}})}),1)],1),e._v(" "),t("div",{staticClass:"editor"},[t("div",[t("u-editor",{attrs:{"ueditor-config":e.editorConfig,"ueditor-path":"/ueditor/"},on:{ready:e.editorReady}})],1)]),e._v(" "),t("div",{staticClass:"btn-group clearfix"},[t("button",{staticClass:"forum-primary-send fr",class:{disabled:e.btnDisabled},attrs:{disabled:e.btnDisabled},on:{click:e.publish}},[e._v("\n          "+e._s(e.$t("forum.addPost.post"))+"\n        ")])])])])])},[],!1,null,"7290a752",null));t.default=w.exports},4451:function(e,t,n){"use strict";n.r(t);var i=n(3252),a=n(4452),s=n(3799),r={name:"AidaAwardPC",components:{GoldCard:a.default,RankList:s.default},props:{items:{type:Array,default:function(){return[]}},placeholderImage:{type:String,default:""}},computed:{goldConfig:function(){return Object(i.c)(this.items)},awaidList:function(){return Object(i.b)(this.items)}}},o=(n(3894),n(18)),c=Object(o.a)(r,function(){var e,t=this,n=t._self._c;return n("div",{staticClass:"aida-award-pc"},[t._m(0),t._v(" "),n("div",{staticClass:"aida-award-content"},[n("div",{staticClass:"title-wraaper"},[n("div",{staticClass:"title"},[t._v(t._s(t.$t("aida.award.title")))]),t._v(" "),n("div",{staticClass:"desc"},[t._v(t._s(t.$t("aida.award.desc")))])]),t._v(" "),n("div",{staticClass:"rank-item gold-rank-item"},[n("div",{staticClass:"rank-title-wraaper gold-title-wraaper"},[n("img",{staticClass:"rank-icon",attrs:{src:t.goldConfig.icon}}),t._v(" "),n("div",{staticClass:"rank-title-text"},[n("div",{staticClass:"rank-title"},[t._v("\n            "+t._s(t.$t(t.goldConfig.title))+"\n          ")]),t._v(" "),n("div",{staticClass:"rank-count"},[t._v("\n            "+t._s(t.$t("AIDA.5",{num:null===(e=t.goldConfig.items)||void 0===e?void 0:e.length}))+"\n          ")])])]),t._v(" "),n("div",{staticClass:"rank-list gold-list"},[t._m(1),t._v(" "),t._l(t.goldConfig.items,function(e,t){return n("GoldCard",{key:t,staticClass:"gold-card",attrs:{design:e}})})],2)]),t._v(" "),t._l(t.awaidList,function(e,i){var a;return n("div",{key:i,staticClass:"rank-item awaid-rank-item"},[n("div",{staticClass:"rank-title-wraaper"},[n("img",{staticClass:"rank-icon",attrs:{src:e.icon}}),t._v(" "),n("div",{staticClass:"rank-title-text"},[n("div",{staticClass:"rank-title"},[t._v("\n            "+t._s(t.$t(e.title))+"\n          ")]),t._v(" "),n("div",{staticClass:"rank-count"},[t._v("\n            "+t._s(t.$t("AIDA.5",{num:null===(a=e.items)||void 0===a?void 0:a.length}))+"\n          ")])])]),t._v(" "),e.descTextKey?n("div",{staticClass:"rank-desc"},[t._v(t._s(t.$t(e.descTextKey)))]):t._e(),t._v(" "),n("RankList",{attrs:{items:e.items,columns:e.pcRowItemCount||4,gap:24,rows:5,uiMode:"pc",hiddenRankListPlaceholder:e.hiddenRankListPlaceholder}})],1)})],2)])},[function(){var e=this._self._c;return e("div",{staticClass:"background-mask"},[e("img",{staticClass:"background-img",attrs:{src:"https://img.alicdn.com/imgextra/i4/O1CN01a0ydPo21vaCWlRhhQ_!!6000000007047-2-tps-3840-2796.png"}}),this._v(" "),e("img",{staticClass:"background-img",attrs:{src:"https://img.alicdn.com/imgextra/i4/O1CN01k0EZUD1KPxNF39wBH_!!6000000001157-2-tps-3840-2360.png"}})])},function(){var e=this._self._c;return e("div",{staticClass:"gold-rank-list-img-wrapper"},[e("img",{staticClass:"gold-rank-list-img",attrs:{src:"https://img.alicdn.com/imgextra/i3/O1CN01AJgAPm1aYENdoKVD2_!!6000000003341-2-tps-1424-678.png"}}),this._v(" "),e("img",{staticClass:"gold-rank-list-img-bottom",attrs:{src:"https://img.alicdn.com/imgextra/i4/O1CN01MIDxRs1copyPgqS5J_!!6000000003648-2-tps-200-200.png"}})])}],!1,null,"027aa642",null);t.default=c.exports},4452:function(e,t,n){"use strict";n.r(t);var i=n(3253),a=n(3254),s={name:"GoldCard",components:{GoldCardSkeleton:n(4453).default},props:{design:{type:Object,default:null}},computed:{authorFullName:function(){var e=this.design.author,t=e.firstName,n=e.lastName;return n?"".concat(t," ").concat(n):t},compressedImageUrl:function(){var e,t=null===(e=this.design.imgVideoList[0])||void 0===e?void 0:e.photoUrl;return Object(a.getCompressedUrl)(t,500)},compressedAvatarUrl:function(){return Object(a.getCompressedAvatar)(this.design.author.avatar,52)}},methods:{openDesign:function(){Object(i.b)(this.design)},handleOpenAvatar:function(){Object(i.a)(this.design.author)}}},r=(n(3890),n(18)),o=Object(r.a)(s,function(){var e=this,t=e._self._c;return e.design?t("div",{staticClass:"gold-card",on:{click:e.openDesign}},[t("div",{staticClass:"card-image-wrapper"},[t("img",{staticClass:"card-image",attrs:{src:e.compressedImageUrl,alt:e.design.title}}),e._v(" "),t("div",{staticClass:"card-overlay"},[t("div",{staticClass:"author-info",on:{click:function(t){return t.stopPropagation(),e.handleOpenAvatar.apply(null,arguments)}}},[t("img",{staticClass:"author-avatar",attrs:{src:e.compressedAvatarUrl,alt:e.design.author.firstName}}),e._v(" "),t("div",{staticClass:"author-name"},[e._v(e._s(e.authorFullName))])]),e._v(" "),t("div",{staticClass:"design-title"},[e._v(e._s(e.design.title))])])])]):t("GoldCardSkeleton")},[],!1,null,"2b71f248",null);t.default=o.exports},4453:function(e,t,n){"use strict";n.r(t);var i={name:"GoldCardSkeleton"},a=(n(3889),n(18)),s=Object(a.a)(i,function(){this._self._c;return this._m(0)},[function(){var e=this,t=e._self._c;return t("div",{staticClass:"gold-card-skeleton"},[t("div",{staticClass:"skeleton-wrapper"},[t("div",{staticClass:"skeleton-content"},[t("div",{staticClass:"skeleton-avatar"}),e._v(" "),t("div",{staticClass:"skeleton-author-name"}),e._v(" "),t("div",{staticClass:"skeleton-title"})])])])}],!1,null,"112447d9",null);t.default=s.exports},4454:function(e,t,n){"use strict";n.r(t);var i=n(3253),a=n(3254),s={name:"AwardCard",components:{AwardCardSkeleton:n(4455).default},props:{design:{type:Object,default:null},uiMode:{type:String,default:"pc"}},computed:{authorFullName:function(){var e=this.design.author,t=e.firstName,n=e.lastName;return n?"".concat(t," ").concat(n):t},compressedImageUrl:function(){var e,t=null===(e=this.design.imgVideoList[0])||void 0===e?void 0:e.photoUrl;return Object(a.getCompressedUrl)(t,636)},compressedAvatarUrl:function(){return Object(a.getCompressedAvatar)(this.design.author.avatar,30)}},methods:{openDesign:function(){Object(i.b)(this.design)},handleOpenAvatar:function(){Object(i.a)(this.design.author)}}},r=(n(3892),n(18)),o=Object(r.a)(s,function(){var e=this,t=e._self._c;return e.design?t("div",{staticClass:"award-card",class:e.uiMode,on:{click:e.openDesign}},[t("div",{staticClass:"card-image-wrapper"},[t("img",{staticClass:"card-image",attrs:{src:e.compressedImageUrl,alt:e.design.title}}),e._v(" "),t("div",{staticClass:"hover-overlay"},[t("div",{staticClass:"design-title"},[e._v(e._s(e.design.title))])])]),e._v(" "),t("div",{staticClass:"card-info"},[t("div",{staticClass:"author-info",on:{click:function(t){return t.stopPropagation(),e.handleOpenAvatar.apply(null,arguments)}}},[t("img",{staticClass:"author-avatar",attrs:{src:e.compressedAvatarUrl,alt:e.design.author.firstName}}),e._v(" "),t("div",{staticClass:"author-name"},[e._v(e._s(e.authorFullName))])])])]):t("AwardCardSkeleton")},[],!1,null,"f56a5fc8",null);t.default=o.exports},4455:function(e,t,n){"use strict";n.r(t);var i={name:"AwardCardSkeleton"},a=(n(3891),n(18)),s=Object(a.a)(i,function(){this._self._c;return this._m(0)},[function(){var e=this,t=e._self._c;return t("div",{staticClass:"award-card-skeleton"},[t("div",{staticClass:"skeleton-image"}),e._v(" "),t("div",{staticClass:"skeleton-info"},[t("div",{staticClass:"skeleton-avatar"}),e._v(" "),t("div",{staticClass:"skeleton-name"})])])}],!1,null,"21f01f56",null);t.default=s.exports},4456:function(e,t,n){"use strict";n.r(t);var i=n(3252),a=n(4457),s=n(3799),r={name:"AidaAwardMobile",components:{GoldCard:a.default,RankList:s.default},props:{items:{type:Array,default:function(){return[]}},placeholderImage:{type:String,default:""}},computed:{goldConfig:function(){return Object(i.c)(this.items)},awaidList:function(){return Object(i.b)(this.items)}}},o=(n(3897),n(18)),c=Object(o.a)(r,function(){var e,t=this,n=t._self._c;return n("div",{staticClass:"aida-award-mobile"},[t._m(0),t._v(" "),n("div",{staticClass:"aida-award-content"},[n("div",{staticClass:"title-wraaper"},[n("div",{staticClass:"title"},[t._v(t._s(t.$t("aida.award.title")))]),t._v(" "),n("div",{staticClass:"desc"},[t._v(t._s(t.$t("aida.award.desc")))])]),t._v(" "),n("div",{staticClass:"rank-item gold-rank-item"},[n("div",{staticClass:"rank-title-wraaper gold-title-wraaper"},[n("img",{staticClass:"rank-icon",attrs:{src:t.goldConfig.icon}}),t._v(" "),n("div",{staticClass:"rank-title-text"},[n("div",{staticClass:"rank-title"},[t._v("\n            "+t._s(t.$t(t.goldConfig.title))+"\n          ")]),t._v(" "),n("div",{staticClass:"rank-count"},[t._v("\n            "+t._s(t.$t("AIDA.5",{num:null===(e=t.goldConfig.items)||void 0===e?void 0:e.length}))+"\n          ")])])]),t._v(" "),n("div",{staticClass:"rank-list gold-list"},t._l(t.goldConfig.items,function(e,t){return n("GoldCard",{key:t,staticClass:"gold-card",attrs:{design:e}})}),1)]),t._v(" "),t._l(t.awaidList,function(e,i){var a;return n("div",{key:i,staticClass:"rank-item awaid-rank-item"},[n("div",{staticClass:"rank-title-wraaper"},[n("img",{staticClass:"rank-icon",attrs:{src:e.icon}}),t._v(" "),n("div",{staticClass:"rank-title-text"},[n("div",{staticClass:"rank-title"},[t._v("\n            "+t._s(t.$t(e.title))+"\n          ")]),t._v(" "),n("div",{staticClass:"rank-count"},[t._v("\n            "+t._s(t.$t("AIDA.5",{num:null===(a=e.items)||void 0===a?void 0:a.length}))+"\n          ")])])]),t._v(" "),e.descTextKey?n("div",{staticClass:"rank-desc"},[t._v(t._s(t.$t(e.descTextKey)))]):t._e(),t._v(" "),n("RankList",{attrs:{items:e.items,columns:2,gap:16,rows:3,placeholderImage:t.placeholderImage,uiMode:"mobile"}})],1)})],2)])},[function(){var e=this._self._c;return e("div",{staticClass:"background-mask"},[e("img",{staticClass:"background-img",attrs:{src:"https://img.alicdn.com/imgextra/i1/O1CN01FcYiAw1SKTYm99GKu_!!6000000002228-2-tps-1125-600.png"}})])}],!1,null,"9cae39f8",null);t.default=c.exports},4457:function(e,t,n){"use strict";n.r(t);
1var i=n(3254),a=n(3253),s={name:"GoldCardMobile",components:{GoldCardMobileSkeleton:n(4458).default},props:{design:{type:Object,default:null}},computed:{authorFullName:function(){var e=this.design.author,t=e.firstName,n=e.lastName;return n?"".concat(t," ").concat(n):t},compressedImageUrl:function(){var e,t=null===(e=this.design.imgVideoList[0])||void 0===e?void 0:e.photoUrl;return Object(i.getCompressedUrl)(t,686)},compressedAvatarUrl:function(){return Object(i.getCompressedAvatar)(this.design.author.avatar,32)}},methods:{openDesign:function(){Object(a.b)(this.design)},handleOpenAvatar:function(){Object(a.a)(this.design.author)}}},r=(n(3896),n(18)),o=Object(r.a)(s,function(){var e=this,t=e._self._c;return e.design?t("div",{staticClass:"gold-card-mobile",on:{click:e.openDesign}},[t("div",{staticClass:"card-image-wrapper"},[t("img",{staticClass:"card-image",attrs:{src:e.compressedImageUrl,alt:e.design.title}}),e._v(" "),t("div",{staticClass:"card-overlay"},[t("div",{staticClass:"author-info",on:{click:function(t){return t.stopPropagation(),e.handleOpenAvatar.apply(null,arguments)}}},[t("img",{staticClass:"author-avatar",attrs:{src:e.compressedAvatarUrl,alt:e.design.author.firstName}}),e._v(" "),t("div",{staticClass:"author-name"},[e._v(e._s(e.authorFullName))])]),e._v(" "),t("div",{staticClass:"design-title"},[e._v(e._s(e.design.title))])])])]):t("GoldCardMobileSkeleton")},[],!1,null,"eee242e8",null);t.default=o.exports},4458:function(e,t,n){"use strict";n.r(t);var i={name:"GoldCardMobileSkeleton"},a=(n(3895),n(18)),s=Object(a.a)(i,function(){this._self._c;return this._m(0)},[function(){var e=this,t=e._self._c;return t("div",{staticClass:"gold-card-mobile-skeleton"},[t("div",{staticClass:"skeleton-wrapper"},[t("div",{staticClass:"skeleton-content"},[t("div",{staticClass:"skeleton-author-info"},[t("div",{staticClass:"skeleton-avatar"}),e._v(" "),t("div",{staticClass:"skeleton-author-name"})]),e._v(" "),t("div",{staticClass:"skeleton-title"})])])])}],!1,null,"25fc7550",null);t.default=s.exports},4459:function(e,t,n){"use strict";n.r(t);var i=n(20),a=(n(22),{name:"ButtonGroup",props:{className:{type:String,default:""},activeButton:{type:String,required:!0},buttons:{type:Array,required:!0,validator:function(e){return e.every(function(e){return"object"===Object(i.a)(e)&&e.hasOwnProperty("value")&&e.hasOwnProperty("label")})}},type:{type:String,default:"rect",validator:function(e){return["rect","line"].includes(e)}}},methods:{handleClick:function(e){this.$emit("change",e)}}}),s=(n(3906),n(18)),r=Object(s.a)(a,function(){var e=this,t=e._self._c;return t("div",{class:["switch-buttons-wrap",e.type,e.className]},e._l(e.buttons,function(n){return t("div",{key:n.key||n.value,class:["switch-button",{"switch-button-active":e.activeButton===n.value}],on:{click:function(t){return e.handleClick(n)}}},["object"===Object(i.a)(n.label)?t(n.label,{tag:"component"}):t("span",[e._v(e._s(n.label))])],1)}),0)},[],!1,null,"18832b18",null);t.default=r.exports},4460:function(e,t,n){"use strict";n.r(t);var i=n(7),a=(n(38),n(62),n(170)),s=n(189),r=n(972),o={name:"WaterfallWrapper",directives:{inview:s.b},components:{RectLoad:a.a,ListEmpty:r.a},props:{items:{type:Array,default:function(){return[]}},loading:{type:Boolean,default:!1},hasMore:{type:Boolean,default:!0},loadThreshold:{type:Number,default:200},throttleDelay:{type:Number,default:100}},data:function(){return{WaterfallComponent:null,scrollHandler:null,clientWidth:0}},computed:{},created:function(){},mounted:function(){return Object(i.a)(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}},e)}))()},beforeDestroy:function(){},methods:{handleScroll:function(){!this.loading&&this.hasMore&&this.$emit("load-more")},onScroll:function(){this.checkLoadMore()},checkLoadMore:function(){!this.loading&&this.hasMore&&("undefined"!=typeof window&&"undefined"!=typeof document&&(window.pageYOffset||document.documentElement.scrollTop)+window.innerHeight>=document.documentElement.scrollHeight-this.loadThreshold&&this.$emit("load-more"))},throttle:function(e,t){var n,i=0;return function(){for(var a=this,s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];var c=Date.now();c-i>t?(e.apply(this,r),i=c):(clearTimeout(n),n=setTimeout(function(){e.apply(a,r),i=Date.now()},t-(c-i)))}}}},c=o,l=(n(3907),n(18)),u=Object(l.a)(c,function(){var e,t=this,n=t._self._c;return n("div",{staticClass:"waterfall-wrapper"},[n("div",{staticClass:"content-wrapper"},t._l(t.items,function(e,i){return n("div",{key:e.id,staticClass:"gride-item"},[t._t("default",null,{item:e,index:e})],2)}
1),0),t._v(" "),t.hasMore||t.loading?n("div",{directives:[{name:"inview",rawName:"v-inview",value:t.handleScroll,expression:"handleScroll"}],staticClass:"loading-indicator"},[n("RectLoad")],1):t._e(),t._v(" "),!t.hasMore&&!(null!==(e=t.items)&&void 0!==e&&e.length)>0&&!t.loading?n("div",{staticClass:"emyty-wrapper"},[n("ListEmpty",{attrs:{content:t.$t("notfound_web")}})],1):t._e()])},[],!1,null,"6c9b5644",null);t.default=u.exports;installComponents(u,{ListEmpty:n(405).default})},4461:function(e,t,n){"use strict";n.r(t);var i={components:{Card:n(1037).a},props:{item:{type:Object,default:function(){return{}}},spmName:{type:String,default:"room_template_item"},fovCallback:{type:Function,default:function(){}},sourcePage:{type:String,default:"asset_market"}}},a=(n(3908),n(18)),s=Object(a.a)(i,function(){var e=this;return(0,e._self._c)("Card",{staticClass:"room-template-item",attrs:{cardData:e.item,spmName:e.spmName,fovCallback:e.fovCallback,sourcePage:e.sourcePage}})},[],!1,null,null,null);t.default=s.exports},4462:function(e,t,n){"use strict";n.r(t);n(14);var i={components:{Card:n(1037).a},props:{item:{type:Object,default:function(){return{}}},spmName:{type:String,default:"house_template_item"},fovCallback:{type:Function,default:function(){}}}},a=(n(3909),n(18)),s=Object(a.a)(i,function(){var e=this;return(0,e._self._c)("Card",{staticClass:"house-template-item",attrs:{cardData:e.item,spmName:e.spmName,fovCallback:e.fovCallback}})},[],!1,null,null,null);t.default=s.exports},4463:function(e,t,n){"use strict";n.r(t);var i={components:{ModelPackage:n(1585).a},props:{item:{type:Object,default:function(){return{}}},spmName:{type:String,default:"model_template_item"},sourcePage:{type:String,default:"asset_market"}}},a=n(18),s=Object(a.a)(i,function(){var e=this;return(0,e._self._c)("ModelPackage",{staticClass:"model-template-item",attrs:{modelData:e.item,spmName:e.spmName,sourcePage:e.sourcePage}})},[],!1,null,null,null);t.default=s.exports},4464:function(e,t,n){"use strict";n.r(t);var i={components:{Card:n(642).a},props:{item:{type:Object,default:function(){return{}}},fovFolderDefault:{type:Object,default:function(){return{}}},spmName:{type:String,default:"model_template_item"},fovCallback:{type:Function,default:function(){}},sourcePage:{type:String,default:"asset_market"}}},a=(n(3910),n(18)),s=Object(a.a)(i,function(){var e=this;return(0,e._self._c)("Card",{staticClass:"model-template-item",attrs:{cardData:e.item,fovFolderDefault:e.fovFolderDefault,spmName:e.spmName,fovCallback:e.fovCallback,sourcePage:e.sourcePage}})},[],!1,null,"12ecfaae",null);t.default=s.exports},4465:function(e,t,n){"use strict";n.r(t);n(23),n(19),n(15),n(31),n(32);var i=n(8),a=n(1);n(25);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){Object(a.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var o={name:"HeroCarousel",props:{items:{type:Array,default:function(){return[]}}},data:function(){return{currentIndex:1,previousIndex:1,isTransitioning:!1,enableTransition:!0}},computed:{realIndex:function(){return 0===this.currentIndex?this.items.length-1:this.currentIndex===this.items.length+1?0:this.currentIndex-1},displayItems:function(){if(this.items.length<=1)return this.items.map(function(e,t){return r(r({},e),{},{uniqueKey:"clone-".concat(t,"-").concat(e.id)})});var e=this.items[this.items.length-1],t=this.items[0];return[r(r({},e),{},{uniqueKey:"clone-last-".concat(e.id)})].concat(Object(i.a)(this.items.map(function(e,t){return r(r({},e),{},{uniqueKey:"normal-".concat(t,"-").concat(e.id)})})),[r(r({},t),{},{uniqueKey:"clone-first-".concat(t.id)})])},trackStyle:function(){return{transform:"translateX(-".concat(100*this.currentIndex,"%)"),transition:this.enableTransition?"transform 0.5s cubic-bezier(0.4, 0, 0.2, 1)":"none"}}},methods:{prevSlide:function(){0===this.items.length||this.isTransitioning||(this.previousIndex=this.currentIndex,this.isTransitioning=!0,this.currentIndex-=1)},nextSlide:function(){0===this.items.length||this.isTransitioning||(this.previousIndex=this.currentIndex,this.isTransitioning=!0,this.currentIndex+=1)},goToSlide:function(e){this.isTransitioning||(this.previousIndex=this.currentIndex,this.isTransitioning=!0,this.currentIndex=e+1)},handleCardClick:function(e){this.$emit("card-click",e)},handleTransitionEnd:function(){var e=this;this.isTransitioning&&(this.previousIndex===this.items.length&&this.currentIndex===this.items.length+1?(this.enableTransition=!1,this.$nextTick(function(){e.currentIndex=1,e.previousIndex=1,e.$nextTick(function(){e.enableTransition=!0,e.isTransitioning=!1})}
1)):1===this.previousIndex&&0===this.currentIndex?(this.enableTransition=!1,this.$nextTick(function(){e.currentIndex=e.items.length,e.previousIndex=e.items.length,e.$nextTick(function(){e.enableTransition=!0,e.isTransitioning=!1})})):(this.previousIndex=this.currentIndex,this.isTransitioning=!1))}}},c=(n(4006),n(18)),l=Object(c.a)(o,function(){var e=this,t=e._self._c;return e.items.length>0?t("div",{staticClass:"hero-carousel"},[t("div",{staticClass:"hero-carousel__slide"},[t("div",{staticClass:"hero-carousel__track",style:e.trackStyle,on:{transitionend:e.handleTransitionEnd}},e._l(e.displayItems,function(n){return t("div",{key:n.titleMdsKeyValue,staticClass:"hero-video-card-wrapper"},[t("div",{staticClass:"hero-video-card",on:{click:function(t){return e.handleCardClick(n)}}},[t("div",{staticClass:"hero-video-card__badge"},[e._v("\n            "+e._s(e.$t("aggregated_new"))+"\n          ")]),e._v(" "),t("img",{staticClass:"hero-video-card__cover",attrs:{src:n.image||n.covelUrl||n.coverUrl,alt:n.titleMdsKeyValue,loading:"lazy"}}),e._v(" "),t("div",{staticClass:"hero-video-card__footer"},[e._v("\n            "+e._s(n.titleMdsKeyValue)+"\n          ")]),e._v(" "),t("div",{staticClass:"hero-video-card__mask"})])])}),0)]),e._v(" "),e.items.length>1?t("button",{staticClass:"hero-carousel__arrow hero-carousel__arrow--prev",attrs:{"aria-label":"上一个"},on:{click:e.prevSlide}},[t("i",{staticClass:"iconfont icon-link"})]):e._e(),e._v(" "),e.items.length>1?t("button",{staticClass:"hero-carousel__arrow hero-carousel__arrow--next",attrs:{"aria-label":"下一个"},on:{click:e.nextSlide}},[t("i",{staticClass:"iconfont icon-link"})]):e._e(),e._v(" "),e.items.length>1?t("transition-group",{staticClass:"hero-carousel__indicators",attrs:{name:"indicator-fade",tag:"div"}},e._l(e.items,function(n,i){return t("span",{key:i,staticClass:"hero-carousel__indicator",class:{"hero-carousel__indicator--active":i===e.realIndex},on:{click:function(t){return e.goToSlide(i)}}})}),0):e._e()],1):e._e()},[],!1,null,"51876456",null);t.default=l.exports},4466:function(e,t,n){"use strict";n.r(t);n(407),n(88),n(30),n(22);var i=n(3262),a=n(985),s=n.n(a),r=n(14),o=1728e5,c={name:"AvailableCouponCard",components:{CouponCard:i.default},props:{coupon:{type:Object,required:!0},sourcePage:{type:String,default:""}},data:function(){return{timeDiff:void 0,timer:void 0}},computed:{timeType:function(){if(void 0!==this.timeDiff)return this.timeDiff<0?{type:"expired",data:""}:this.timeDiff<o?{type:"countdown",data:this.getCountdownData()}:{type:"normal",data:this.formatEndTime(this.coupon.endTime)}}},mounted:function(){var e=this;this.timeDiff=this.getTimeDiff(),this.timeDiff<o&&this.timeDiff>0?this.startTimeDiff():this.timeDiff>0&&(this.timer=setTimeout(function(){e.startTimeDiff()},this.timeDiff-o))},destroyed:function(){clearTimeout(this.timer),clearInterval(this.timer)},methods:{startTimeDiff:function(){var e=this;this.timeDiff&&(clearTimeout(this.timer),this.timer=setInterval(function(){e.timeDiff=e.getTimeDiff(),e.timeDiff<0&&clearInterval(e.timer)},1e3))},getTimeDiff:function(){return this.coupon.endTime-Date.now()},getCountdownData:function(){var e=String(Math.floor(this.timeDiff/36e5)).padStart(2,"0"),t=String(Math.floor(this.timeDiff/6e4%60)).padStart(2,"0"),n=String(Math.floor(this.timeDiff/1e3%60)).padStart(2,"0");return{hours:e.split(""),minutes:t.split(""),seconds:n.split("")}},formatEndTime:function(e){if(!e)return"";if("string"==typeof e&&e.includes("-"))return e;if("number"==typeof e){var t=new Date(e),n=t.getFullYear(),i=String(t.getMonth()+1).padStart(2,"0"),a=String(t.getDate()).padStart(2,"0");return"".concat(n,"-").concat(i,"-").concat(a)}return e},handleUseCoupon:function(){var e=this;Object(r.d)("/hs_global_web.my_design.coupon_use_clk",{source_page:this.sourcePage}),s()(this.coupon.discountCode)&&this.$store.commit("market/SHOW_MARKET_DIALOG",{marketSource:this.sourcePage,marketType:this.coupon.marketType,discountCode:this.coupon.discountCode,onMarketDialogClose:function(){e.$emit("refreash")}})}}},l=(n(4027),n(18)),u=Object(l.a)(c,function(){var e=this,t=e._self._c;return t("CouponCard",{staticClass:"available_coupon_card",attrs:{cardType:"available",item:e.coupon,showImage:!0},scopedSlots:e._u([{key:"validity",fn:function(){var n;return[e.timeType?"countdown"===(null===(n=e.timeType)||void 0===n?void 0:n.type)?t("span",{staticClass:"countdown"},[t("span",[e._v(e._s(e.$t("mycode.count.down")))]),e._v(" "),t("span",{staticClass:"countdown_time_item_separator"},[e._v(":")]),e._v(" "),t("span",{staticClass:"countdown_time"},[t("span",{staticClass:"countdown_time_item countdown_time_item_first"},[e._v(e._s(e.timeType.data.hours[0]))]),e._v(" "),t("span",{staticClass:"countdown_time_item"},[e._v(e._s(e.timeType.data.hours[1]))]),e._v(" "),t("span",{staticClass:"countdown_time_item_separator"},[e._v(":")]),e._v(" "),t("span",{staticClass:"countdown_time_item countdown_time_item_first"},[e._v(e._s(e.timeType.data.minutes[0]))]),e._v(" "),t("span",{staticClass:"countdown_time_item"},[e._v(e._s(e.timeType.data.minutes[1]))]),e._v(" "),t("span",{staticClass:"countdown_time_item_separator"},[e._v(":")]),e._v(" "),t("span",{staticClass:"countdown_time_item countdown_time_item_first"},[e._v(e._s(e.timeType.data.seconds[0]))]),e._v(" "),t("span",{staticClass:"countdown_time_item"}
1,[e._v(e._s(e.timeType.data.seconds[1]))])])]):e._e():t("div",{staticClass:"validity_line"})]},proxy:!0},{key:"button",fn:function(){return[t("button",{staticClass:"use_btn available",on:{click:e.handleUseCoupon}},[e._v(e._s(e.$t("mycode.btn.use")))])]},proxy:!0}])})},[],!1,null,null,null);t.default=u.exports},4467:function(e,t,n){"use strict";n.r(t);var i={name:"UsedCouponCard",components:{CouponCard:n(3262).default},props:{coupon:{type:Object,required:!0}}},a=(n(4028),n(18)),s=Object(a.a)(i,function(){var e=this,t=e._self._c;return t("CouponCard",{staticClass:"expire_coupon_card",attrs:{cardType:"used",item:e.coupon},scopedSlots:e._u([{key:"name",fn:function(){return[e._v("\n    "+e._s(e.coupon.title)+"\n  ")]},proxy:!0},{key:"applicable",fn:function(){},proxy:!0},{key:"button",fn:function(){return[t("div",{staticClass:"use_btn used"},[e._v(e._s(e.$t("code.tab.expired")))])]},proxy:!0}])})},[],!1,null,null,null);t.default=s.exports},4468:function(e,t,n){"use strict";n.r(t);var i={name:"UsedCouponCard",components:{CouponCard:n(3262).default},props:{coupon:{type:Object,required:!0}}},a=(n(4029),n(18)),s=Object(a.a)(i,function(){var e=this,t=e._self._c;return t("CouponCard",{staticClass:"used_coupon_card",attrs:{cardType:"used",item:e.coupon},scopedSlots:e._u([{key:"name",fn:function(){return[e._v("\n    "+e._s(e.coupon.title)+"\n  ")]},proxy:!0},{key:"applicable",fn:function(){},proxy:!0},{key:"button",fn:function(){return[t("div",{staticClass:"use_btn used"},[e._v(e._s(e.$t("mycode.tab.used")))])]},proxy:!0}])})},[],!1,null,null,null);t.default=s.exports},4469:function(e,t,n){"use strict";n.r(t);n(44),n(23),n(19),n(15),n(31),n(32);var i=n(1),a=n(21),s=n(129);function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}var o={components:{IconfontView:s.default},props:{data:{type:Object,default:function(){}}},data:function(){return{statusObj:{isExp:!0,name:""},timer:null,contestCountTime:""}},computed:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach(function(t){Object(i.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},Object(a.d)(["locale"])),watch:{data:{handler:function(e){e&&(this.timeInit(),this.statusNameMethod())},immediate:!0}},mounted:function(){},destroyed:function(){this.timer&&clearTimeout(this.timer)},methods:{timeInit:function(){(Date.parse(this.data.endTime)-Date.parse(new Date))/864e5<1&&this.countTime()},countTime:function(){var e=this,t=new Date(this.data.endTime),n=Date.parse(t),i=Date.parse(new Date);if(n<i)return this.contestCountTime="",void this.statusInprogress();var a=n-i,s=parseInt(a/1e3/60/60/24),r=parseInt(a/1e3/60/60%24),o=parseInt(a/1e3/60%60),c=parseInt(a/1e3%60);r=r>9?r:"0"+r,o=o>9?o:"0"+o,c=c>9?c:"0"+c,this.contestCountTime=c?"".concat(s?"".concat(s," : "):"").concat(r," : ").concat(o," : ").concat(c):"",this.timer=setTimeout(function(){e.countTime()},1e3)},statusInprogress:function(){var e=Date.parse(this.data.endTime),t=Date.parse(new Date);if(e>t){var n=(e-t)/864e5;this.statusObj.isExp=!1,n>1&&(this.statusObj.name=this.$t("contest.dayscountdown",{day:parseInt(n)}))}else this.statusObj.isExp=!0},statusNameMethod:function(){if(this.data&&this.data.status)switch(this.data.status){case 2:case 3:this.statusInprogress();break;case 4:this.statusObj.name="contest.statusinselect";break;case 5:this.statusObj.name="contest.satusawarded"}}}},c=o,l=(n(4231),n(18)),u=Object(l.a)(c,function(){var e=this,t=e._self._c;return e.contestCountTime||e.statusObj.name?t("span",{staticClass:"status"},[5!==e.data.status?t("div",{staticClass:"status-time"},[t("IconfontView",{staticClass:"icon",attrs:{showType:"order_progress"}})],1):e._e(),e._v("\n  "+e._s(e.contestCountTime)+"\n  "+e._s(e.statusObj.isExp?e.$t(e.statusObj.name):e.statusObj.name)+"\n")]):e._e(
1)},[],!1,null,"07b5fd30",null);t.default=u.exports;installComponents(u,{IconfontView:n(129).default})},4470:function(e,t,n){"use strict";n.r(t);n(23),n(19),n(15),n(31),n(32);var i=n(1),a=(n(25),n(22),n(24)),s=n(21),r=n(4471),o=n(4472),c=n(4469),l=n(129);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach(function(t){Object(i.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var p={components:{ResourcePosition:o.default,ImageSwiper:r.default,ContestStatus:c.default,IconfontView:l.default},props:{matchDetail:{type:Object,default:function(){}},showSubmitBtn:{type:Boolean,default:!1},toolType:{type:String,default:"all"}},data:function(){return{}},computed:d(d({},Object(s.d)(["isMobile"])),{},{resourceList:function(){var e;return(null===(e=this.matchDetail.resource)||void 0===e?void 0:e.resourceList)||[]},images:function(){var e;return(null===(e=this.matchDetail)||void 0===e||null===(e=e.images)||void 0===e?void 0:e.map(function(e){return{src:e}}))||[]},awardImgs:function(){var e;return(null===(e=this.matchDetail)||void 0===e?void 0:e.awardImages)||[]},matchTimeText:function(){return"".concat(Object(a.R)(this.matchDetail.startTime,"YYYY.mm.dd")," - ").concat(Object(a.R)(this.matchDetail.endTime,"YYYY.mm.dd"))},voteTimeText:function(){if(this.matchDetail.voteStartTimeStr&&this.matchDetail.voteEndTimeStr)return"".concat(Object(a.R)(this.matchDetail.voteStartTimeStr,"YYYY.mm.dd")," - ").concat(Object(a.R)(this.matchDetail.voteEndTimeStr,"YYYY.mm.dd"))},floorplanUrl:function(){if(this.isMobile)return"#";var e="".concat(this.$global.floorplanUrl);return this.locale!==this.$i18n.fallbackLocale&&(e+="?lang=".concat(this.locale)),e},toolHtml:function(){var e="<a id='app_tool_web' href='".concat(this.floorplanUrl,"' class='jump_tool' target='").concat(this.isMobile?"":"_blank",'\'><i class="iconfont icon-web"></i> ').concat(this.$t("contest.toolweb"),"</a>"),t="<a id='web_tool_app' href='/room-design-app' class='jump_tool' target='_blank'><i class=\"iconfont icon-app\"></i>".concat(this.$t("contest.toolapp"),"</a>"),n="".concat(e).concat(this.$t("newuser.or")).concat(t);return"app"===this.toolType?n=t:"web"===this.toolType&&(n=e),this.$t("contest.toolrequireweb",{toolname:n})},branchUrl:function(){var e=11833;return[12138,12132].includes(this.matchDetail.id)&&(e=this.matchDetail.id),"https://www.homestyler.com/challenge-group/".concat(e)}}),mounted:function(){var e,t,n=null===(e=this.$refs.toolWrap)||void 0===e?void 0:e.querySelector("#app_tool_web");n&&n.addEventListener("click",this.webHandleClick);var i=null===(t=this.$refs.toolWrap)||void 0===t?void 0:t.querySelector("#web_tool_app");i&&i.addEventListener("click",this.appHandleClick)},methods:{submitClick:function(){this.$emit("submitClick")},shareClick:function(){this.$emit("shareClick")},webHandleClick:function(){this.toolHandleClick("web")},appHandleClick:function(){this.toolHandleClick("app")},toolHandleClick:function(e){globalThis.globalSpmClick("challenge_detail.header_tool_clk",{platform:e})},seeMoreClick:function(){globalThis.globalSpmClick("challenge_detail.see_more_clk")},branchClick:function(){globalThis.globalSpmClick("challenge_detail.branch_clk")}}},m=(n(4234),n(18)),f=Object(m.a)(p,function(){var e=this,t=e._self._c;return t("div",{staticClass:"challenge-header"},[t("div",{staticClass:"header-content"},[t("div",{staticClass:"content-left"},[e.matchDetail.startTime&&e.matchDetail.endTime?t("ContestStatus",{staticClass:"header-time",attrs:{data:e.matchDetail}}):e._e(),e._v(" "),t("h1",{staticClass:"header-title"},[t("span",[e._v("🏆")]),e._v(" "),t("span",[e._v(" "+e._s(e.matchDetail.title))])]),e._v(" "),t("div",{staticClass:"header-desc"},[e._v("\n        "+e._s(e.matchDetail.description)+"\n        "),e.match
1Detail.contestUrl?t("a",{staticClass:"see-more-link",attrs:{href:e.matchDetail.contestUrl,target:"_blank"},on:{click:e.seeMoreClick}},[e._v("\n          "+e._s(e.$t("challenge_see_more"))+"\n          "),t("IconfontView",{staticClass:"see-more-icon",attrs:{showType:"icon_start"}})],1):e._e()]),e._v(" "),t("div",{staticClass:"header-item match-tools"},[t("span",{staticClass:"header-item-left"},[e._v(e._s(e.$t("contest.toolrequire"))+":")]),e._v(" "),t("span",{ref:"",staticClass:"header-item-right",domProps:{innerHTML:e._s(e.toolHtml)}})]),e._v(" "),t("div",{staticClass:"header-item match_time"},[t("span",{staticClass:"header-item-left"},[e._v(e._s(e.$t("contest.duration"))+":")]),e._v(" "),t("span",{staticClass:"header-item-right"},[e._v(e._s(e.matchTimeText))])]),e._v(" "),e.voteTimeText?t("div",{staticClass:"header-item match_time"},[t("span",{staticClass:"header-item-left"},[e._v(e._s(e.$t("contest.vote.duration"))+":")]),e._v(" "),t("span",{staticClass:"header-item-right"},[e._v(e._s(e.voteTimeText))])]):e._e(),e._v(" "),t("div",{staticClass:"header-item",class:"".concat(e.awardImgs.length?"match_prizes":"match_prizes-text")},[t("span",{staticClass:"header-item-left"},[e._v(e._s(e.$t("challenge_awards_prizes"))+":")]),e._v(" "),t("span",{staticClass:"header-item-right"},[e.awardImgs.length>0?e._l(e.awardImgs,function(e,n){return t("img",{key:n,staticClass:"prizes_img",attrs:{src:e}})}):t("span",{domProps:{innerHTML:e._s(e.matchDetail.awardDescription)}})],2)])],1),e._v(" "),t("div",{staticClass:"content-right"},[t("div",{staticClass:"header-imgs"},[t("ImageSwiper",{attrs:{images:e.images}})],1)]),e._v(" "),t("div",{staticClass:"handle-wrapper"},[e.showSubmitBtn?t("div",{staticClass:"submit-btn",on:{click:e.submitClick}},[t("span",[e._v("\n          "+e._s(e.$t("challenge_submit_now"))+"\n        ")]),e._v(" "),t("IconfontView",{staticClass:"submit_icon",attrs:{showType:"icon_start"}})],1):e._e(),e._v(" "),e.matchDetail.isMainContent?t("a",{staticClass:"branch-btn",attrs:{href:e.branchUrl,target:"_blank"},on:{click:e.branchClick}},[t("span",[e._v(e._s(e.$t("sub_venues_web")))]),e._v(" "),t("IconfontView",{staticClass:"branch_icon",attrs:{showType:"icon_start"}})],1):e._e(),e._v(" "),t("div",{staticClass:"share_button",on:{click:e.shareClick}},[t("IconfontView",{attrs:{customClass:"share_icon",showType:"hs_xian_share"}})],1)])]),e._v(" "),e.resourceList.length>0?t("ResourcePosition",{staticClass:"header-resource",attrs:{challengeId:e.matchDetail.id,resourceList:e.resourceList}}):e._e()],1)},[],!1,null,null,null);t.default=f.exports;installComponents(f,{IconfontView:n(129).default})},4471:function(e,t,n){"use strict";n.r(t);n(23),n(19),n(15),n(31),n(32);var i=n(1),a=(n(62),n(73),n(61)),s=n(21);function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach(function(t){Object(i.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var c={name:"CarouselComponent",props:{images:{type:Array,default:function(){return[]}},autoPlayInterval:{type:Number,default:3e3}},data:function(){return{currentIndex:1,autoPlayTimer:null,isTransitioning:!0}},computed:o(o({},Object(s.d)(["locale"])),{},{isRTL:function(){var e,t=this;return"rtl"===(null===(e=a.D.find(function(e){return e.value===t.locale}))||void 0===e?void 0:e.dir)}}),watch:{images:{handler:function(e){this.stopAutoPlay(),e&&e.length>1&&(this.currentIndex=1,this.isTransitioning=!0,this.startAutoPlay())},immediate:!1}},mounted:function(){this.images.length>1&&this.startAutoPlay()},beforeDestroy:function(){this.stopAutoPlay()},methods:{startAutoPlay:function(){var e=this;this.autoPlayTimer=setInterval(function(){e.nextSlide()},this.autoPlayInterval)},stopAutoPlay:function(){this.autoPlayTimer&&(clearInterval(this.autoPlayTimer),this.autoPlayTimer=null)},nextSlide:function(){var e=this;this.isTransitioning=!0;var t=this.currentIndex+1;if(t===this.images.length+1){var n=function(){e.isTransitioning=!1,e.currentIndex=1,e.$refs.carouselItemWrapper.removeEventListener("transitionend",n)};this.$refs.carouselItemWrapper.addEventListener("transitionend",n),this.currentIndex=1}this.currentIndex=t}}},l=(n(4232),n(18)),u=Object(l.a)(c,function(){var e=this,t=e._self._c;return t("div",{staticClass:"carousel-container",class:{rtl:e.isRTL}},[e.images.length<=1?t("div",{staticClass:"single-image-wrapper"},[1===e.images.length?t("div",{staticClass:"carousel-item"},[t("img",{staticClass:"carousel-image",attrs:{src:e.images[0].src,alt:e.images[0].alt}}
1)]):e._e()]):t("div",{key:"carousel-item-wrapper",ref:"carouselItemWrapper",staticClass:"carousel-item-wrapper",style:{transform:e.isRTL?"translateX(".concat(100*e.currentIndex,"%)"):"translateX(-".concat(100*e.currentIndex,"%)"),transition:e.isTransitioning?"transform 0.5s linear":"none"}},[t("div",{staticClass:"carousel-item"},[t("img",{staticClass:"carousel-image",attrs:{src:e.images[e.images.length-1].src,alt:e.images[e.images.length-1].alt}})]),e._v(" "),e._l(e.images,function(e,n){return t("div",{key:n,staticClass:"carousel-item"},[t("img",{staticClass:"carousel-image",attrs:{src:e.src,alt:e.alt}})])}),e._v(" "),t("div",{staticClass:"carousel-item"},[t("img",{staticClass:"carousel-image",attrs:{src:e.images[0].src,alt:e.images[0].alt}})])],2)])},[],!1,null,"aec1c1f6",null);t.default=u.exports},4472:function(e,t,n){"use strict";n.r(t);n(62),n(30),n(22);var i=n(24),a=n(14),s={props:{resourceList:{type:Array,default:function(){return[]}},challengeId:{type:Number,default:0}},computed:{tagIcons:function(){return this.$global.member}},methods:{getUrl:function(e){if(!e)return"";var t=this.$route.query.sourcePage;return e+(e.includes("?")?"&":"?")+"sourcePage=".concat(t||"challenge_".concat(this.challengeId))},handleClick:function(e){Object(a.c)("/hs.global_web.challenge_detail.slot".concat(e+1,"_clk"));var t=this.$route.query.sourcePage;Object(i.e)(t||"challenge_".concat(this.challengeId))},getTagText:function(e){var t={free:this.$t("seo_template_price_free")};return t[e.toLowerCase()]?t[e.toLowerCase()]:e}}},r=(n(4233),n(18)),o=Object(r.a)(s,function(){var e=this,t=e._self._c;return e.resourceList.length>0?t("div",{staticClass:"resource-list"},e._l(e.resourceList,function(n,i){var a,s,r,o,c,l;return t("a",{key:i,staticClass:"resource-item",attrs:{href:e.getUrl(n.url),target:"_blank"},on:{click:function(t){return e.handleClick(i)}}},[t("div",{staticClass:"resource-item-title-wrapper"},[t("div",{staticClass:"resource-item-sub-title"},[e._v(e._s(n.subTitle))]),e._v(" "),t("div",{staticClass:"resource-item-title"},[e._v(e._s(n.title))])]),e._v(" "),t("div",{staticClass:"resource-item-img-wrapper"},[t("img",{staticClass:"resource-item-img",attrs:{src:n.image}}),e._v(" "),t("div",{staticClass:"resource-item-tag"},[null!==(a=e.tagIcons[null==n||null===(s=n.tags)||void 0===s?void 0:s[0]])&&void 0!==a&&a.icon?t("img",{staticClass:"resource-item-tag-img",attrs:{src:null===(r=e.tagIcons[null==n||null===(o=n.tags)||void 0===o?void 0:o[0]])||void 0===r?void 0:r.icon}}):null!=n&&null!==(c=n.tags)&&void 0!==c&&c[0]?t("div",{staticClass:"resource-item-tag-text"},[e._v("\n          "+e._s(e.getTagText(null==n||null===(l=n.tags)||void 0===l?void 0:l[0]))+"\n        ")]):e._e()])])])}),0):e._e()},[],!1,null,null,null);t.default=o.exports},4473:function(e,t,n){"use strict";n.r(t);n(23),n(19),n(15),n(31),n(32);var i=n(8),a=n(1),s=(n(62),n(30),n(22),n(21)),r=n(14),o=n(3209),c=n(3207),l=n(3216);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach(function(t){Object(a.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var p={filters:{ossImage:n(51).c},components:{MemberUpgrade:o.default,OperateBtn:c.default,RatingBox:l.default},props:{value:{type:Boolean,default:!1},fromGenerate:{type:Boolean,default:!1},canRemoveWatermark:{type:Boolean,default:!1},data:{type:Array,default:function(){return[]}},total:{type:Number,default:0},defaultIndex:{type:Number,default:0},showWaterMark:{type:Boolean,default:!0},source:{type:String,default:""},sourceUserKey:{type:String,default:""}},data:function(){return{showOriginImg:!1,loadedArr:[],activeIndex:0,moveData:{start:!1,timeStamp:0,x:0,y:0},collapseOrignalImg:!1,showImageModal:!1,currentLargeImageUrl:""}}
1,computed:d(d({},Object(s.d)(["locale","userInfo","isMobile","isHomestylerApp","signIn"])),{},{curData:function(){return this.data[this.activeIndex]||{}},underDeviceWidthDivide:function(){return(document.documentElement.offsetWidth||document.body.offsetWidth)<1024},side:function(){return this.underDeviceWidthDivide?40:60}}),watch:{value:function(e){this.underDeviceWidthDivide&&this.scrollFn(!e),e&&this.activeIndex!==this.defaultIndex&&(this.activeIndex=this.defaultIndex,Object(r.c)("/hs_global_web.aigc.ai_designer_album_detail_expose","subTaskId=".concat(this.curData.subTaskId,"&imageUrl=").concat(this.curData.imageUrl,"&source=").concat(this.source,"&sourceUserKey=").concat(this.sourceUserKey)))},defaultIndex:function(e){this.activeIndex=e},data:function(e){e&&this.activeIndex>e.length-1&&(this.activeIndex=e.length-1)}},mounted:function(){var e=this;this.$nextTick(function(){document.addEventListener("keyup",e.handleKeyup),document.addEventListener("keydown",e.handleKeydown)})},destroyed:function(){document.removeEventListener("keyup",this.handleKeyup),document.removeEventListener("keydown",this.handleKeydown)},methods:{handleCollapse:function(){this.collapseOrignalImg=!this.collapseOrignalImg},showLargeOriginalImage:function(){this.currentLargeImageUrl=this.curData.originalImageUrl,this.showImageModal=!0},hideImageModal:function(){this.showImageModal=!1,this.currentLargeImageUrl=""},handleTouchStop:function(){},loadControl:function(e){return!!this.loadedArr.includes(e)||e>this.activeIndex-3&&e<this.activeIndex+3},handleMousedown:function(){this.showOriginImg=!0,Object(r.c)("/hs_global_web.aigc.album_compare_switch","member_id=".concat(this.userInfo.uid,"&language=").concat(this.locale,"&source=").concat(this.source,"&sourceUserKey=").concat(this.sourceUserKey))},handleMouseup:function(){this.showOriginImg=!1},handleKeyup:function(e){27===e.keyCode&&this.close()},handleKeydown:function(e){"ArrowLeft"!==e.code&&37!==e.keyCode||this.prev(),"ArrowRight"!==e.code&&39!==e.keyCode||this.next()},close:function(){var e=this;this.isHomestylerApp||this.isMobile?setTimeout(function(){e.$emit("input",!1)},500):this.$emit("input",!1),Object(r.c)("/hs_global_web.aigc.album_fullscr_close","member_id=".concat(this.userInfo.uid,"&language=").concat(this.locale))},prev:function(){this.showOriginImg=!1,this.setActiveIndex(-1),this.clickRecord("L")},next:function(){this.showOriginImg=!1,this.setActiveIndex(1),this.clickRecord("R")},loadingFn:function(e){this.loadedArr=[].concat(Object(i.a)(this.loadedArr),[e])},setActiveIndex:function(e){var t=this.activeIndex+e,n=this.data.length;t<0||t>n-1||(this.total&&this.total>n&&t>=n-3&&this.$emit("queryAllList"),this.activeIndex=t)},scrollFn:function(e){var t=document.body.style;e?(t.position="",t.overflow=""):(t.position="fixed",t.overflow="hidden",t.width="100%")},onTouchEvent:function(e,t){var n=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:null;n&&this.handleMove(t,{timeStamp:e.timeStamp,screenX:n.screenX,screenY:n.screenY},e)},onMouseEvent:function(e,t){this.handleMove(t,{timeStamp:e.timeStamp,screenX:e.screenX,screenY:e.screenY},e)},handleMove:function(e,t,n){if(e)this.moveData.start=!0,this.moveData.timeStamp=t.timeStamp,this.moveData.x=t.screenX,this.moveData.y=t.screenY;else if(this.moveData.start){var i=t.screenX-this.moveData.x,a=t.screenY-this.moveData.y;if(!i)return;if(Math.abs(a/i)>=1.5)return;i>0?this.prev():this.next(),this.moveData.start=!1}n&&(n.preventdefault&&n.preventdefault(),n.stopPropagation&&n.stopPropagation())},handleRatingSubmit:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0]?"ratingOperateFooter":"ratingOperate";this.$refs[e]&&this.$refs[e].handleClose(),this.$emit("queryAllList",!0),this.$emit("queryGroupList",!0)},clickRecord:function(e){Object(r.c)("/hs_global_web.aigc.album_fullscr_switch","member_id=".concat(this.userInfo.uid,"&language=").concat(this.locale,"&key_code=").concat(e,"&source=").concat(this.source,"&sourceUserKey=").concat(this.sourceUserKey))}}},m=p,f=(n(3881),n(3882),n(3883),n(18)),h=Object(f.a)(m,function(){var e=this,t=e._self._c;return e.value?t("div",{staticClass:"browser-mask",on:{click:function(e){e.stopPropagation()},touchstart:function(t){return t.stopPropagation(),e.handleTouchStop.apply(null,arguments)}}},[t("div",{staticClass:"viewer-panel viewer-panel-dialog"},[t("div",{staticClass:"browser-header",on:{contextmenu:function(e){e.preventDefault()}}},[!e.signIn&&e.isMobile?t("div",{staticClass:"browser-header-content",on:{touchstart:function(t){return e.handleMousedown()},touchend:function(t){return e.handleMouseup()},mousedown:function(t){return e.handleMousedown()},mouseup:function(t){return e.handleMouseup()},mouseleave:function(t){return e.handleMouseup()}}},[t("OperateBtn",{attrs:{iconType:"hs_comparisom",hideTips:!0}},[t("span",{staticClass:"browser-comparisom",attrs:{slot:"text"},slot:"text"}
1,[e._v(e._s(e.$t("AIGC.dashboard.album.compare")))])])],1):e._e(),e._v(" "),e.isMobile?e._e():t("div",{class:{"orignal-img-container":!0,"collapse-orignal-img":e.collapseOrignalImg}},[t("div",{staticClass:"header",on:{click:e.handleCollapse}},[t("IconfontView",{attrs:{customClass:"arrow-icon",customStyle:{fontSize:"12px",color:"#000"},showType:"xiaojiantou"}}),e._v(" "),t("div",{staticClass:"text"},[e._v(e._s(e.$t("ai.modeler.original")))])],1),e._v(" "),t("img",{staticClass:"orignal_img",attrs:{src:e.curData.originalImageUrl},on:{click:e.showLargeOriginalImage}})]),e._v(" "),t("ul",{staticClass:"browser-header-right"},[e.signIn?e._e():t("li",{staticClass:"browser-operate-item"},[t("OperateBtn",{ref:"ratingOperate",attrs:{iconType:"hs_mian_moxingmanyidu",placement:"bottom",showClose:!0,cacheKey:"HS_aigc_rating"}},[t("RatingBox",{attrs:{bizId:e.curData.subTaskId,rating:e.curData.score,submitted:e.curData.score>0,title:e.$t("AIGC.dashboard.album.feedback"),sourceValue:e.curData.imageUrl},on:{submit:e.handleRatingSubmit}})],1)],1),e._v(" "),t("li",{staticClass:"browser-operate-item"},[t("OperateBtn",{attrs:{iconType:"hs_mian_xiazai"},on:{click:function(t){return e.$emit("downloadImg",e.curData)}}},[e._v("\n            "+e._s(e.$t("AIGC.dashboard.download"))+"\n          ")])],1),e._v(" "),e.fromGenerate||e.signIn?e._e():t("li",{staticClass:"browser-operate-item"},[t("OperateBtn",{attrs:{iconType:"a-22_3dtool_delete"},on:{click:function(t){return e.$emit("deleteImg",e.curData)}}},[e._v("\n            "+e._s(e.$t("editProject.content.delete"))+"\n          ")])],1),e._v(" "),!e.signIn&&e.showWaterMark?t("li",{staticClass:"browser-operate-item"},[t("OperateBtn",{attrs:{disabled:!e.canRemoveWatermark,showClose:!e.canRemoveWatermark,hyalineClose:!0,iconType:"hs_mian_qushuiyin",memberBenefits:!0,placement:e.canRemoveWatermark?"top":"bottom-end"},on:{click:function(t){return e.$emit("removeWatermark",e.curData)}}},[e.canRemoveWatermark?t("span",[e._v(e._s(e.$t("AIGC.dashboard.album.watermark")))]):t("MemberUpgrade",{on:{upgrade:function(t){return e.$emit("buyMore",{sourcePage:"ai-designer-imageviewer-watermark"})}}})],1)],1):e._e(),e._v(" "),t("li",{staticClass:"browser-operate-item"},[t("OperateBtn",{attrs:{iconType:"hs_icon_share"},on:{click:function(t){return e.$emit("shareImg",e.curData)}}},[e._v("\n            "+e._s(e.$t("editproject.share"))+"\n          ")])],1),e._v(" "),t("li",{staticClass:"browser-operate-item browser-close"},[t("OperateBtn",{attrs:{hideTips:!0,iconType:"xingzhuangjiehe",iconColor:"#FFFFFF"},on:{click:e.close}})],1)])]),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:0!=e.activeIndex,expression:"activeIndex != 0"}],staticClass:"browser-prev",on:{click:e.prev}},[t("i",{staticClass:"iconfont icon left-icon"})]),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:e.activeIndex!=e.data.length-1,expression:"activeIndex != data.length - 1"}],staticClass:"browser-next",on:{click:e.next}},[t("i",{staticClass:"iconfont icon right-icon"})]),e._v(" "),t("div",{staticClass:"browser-page"},[e._v("\n      "+e._s(e.activeIndex+1)+"/"+e._s(e.total||e.data.length)+"\n    ")]),e._v(" "),t("div",{staticClass:"browser-footer",on:{contextmenu:function(e){e.preventDefault()}}},[t("ul",{staticClass:"browser-footer-operate"},[e.signIn?e._e():t("li",{staticClass:"browser-operate-item"},[t("OperateBtn",{ref:"ratingOperateFooter",attrs:{iconType:"hs_mian_moxingmanyidu",showClose:!0,cacheKey:"HS_aigc_rating"}},[t("RatingBox",{attrs:{bizId:e.curData.subTaskId,rating:e.curData.score,submitted:e.curData.score>0,title:e.$t("AIGC.dashboard.album.feedback"),sourceValue:e.curData.imageUrl},on:{submit:e.handleRatingSubmit}})],1)],1),e._v(" "),t("li",{staticClass:"browser-operate-item"},[t("OperateBtn",{attrs:{iconType:"hs_mian_xiazai"},on:{click:function(t){return e.$emit("downloadImg",e.curData)}}},[e._v("\n            "+e._s(e.$t("AIGC.dashboard.download"))+"\n          ")])],1),e._v(" "),e.signIn||e.fromGenerate?e._e():t("li",{staticClass:"browser-operate-item"},[t("OperateBtn",{attrs:{iconType:"a-22_3dtool_delete"},on:{click:function(t){return e.$emit("deleteImg",e.curData)}}},[e._v("\n            "+e._s(e.$t("editProject.content.delete"))+"\n          ")])],1),e._v(" "),!e.signIn&&e.showWaterMark?t("li",{staticClass:"browser-operate-item"},[t("OperateBtn",{attrs:{disabled:!e.canRemoveWatermark,showClose:!e.canRemoveWatermark,hyalineClose:!0,iconType:"hs_mian_qushuiyin",memberBenefits:!0,placement:"top-end2"},on:{click:function(t){return e.$emit("removeWatermark",e.curData)}}},[e.canRemoveWatermark?t("span",[e._v(e._s(e.$t("AIGC.dashboard.album.watermark")))]):t("MemberUpgrade",{on:{upgrade:function(t){return e.$emit("buyMore",{sourcePage:"ai-designer-imageviewer-watermark"})}}}
1)],1)],1):e._e(),e._v(" "),t("li",{staticClass:"browser-operate-item"},[t("OperateBtn",{attrs:{iconType:"hs_icon_share"},on:{click:function(t){return e.$emit("shareImg",e.curData)}}},[e._v("\n            "+e._s(e.$t("editproject.share"))+"\n          ")])],1)])]),e._v(" "),t("div",{staticClass:"browser-wrapper"},e._l(e.data,function(n,i){return t("div",{key:i,staticClass:"browser-item-wrapper",class:i===e.activeIndex?"active":"offscreen",attrs:{index:i},on:{touchstart:function(t){return e.onTouchEvent(t,1)},touchend:function(t){return e.onTouchEvent(t)},mousedown:function(t){return e.onMouseEvent(t,1)},mouseup:function(t){return e.onMouseEvent(t)}}},[e.loadControl(i)?t("div",{staticClass:"browser-item"},[t("img",{directives:[{name:"show",rawName:"v-show",value:e.showOriginImg,expression:"showOriginImg"}],staticClass:"browser-origin-img",attrs:{src:n.originalImageUrl,alt:"browser-origin-img"},on:{contextmenu:function(e){e.preventDefault()}}}),e._v(" "),t("img",{staticClass:"browser-img",attrs:{src:n.imageUrl,alt:"browser-img"},on:{contextmenu:function(e){e.preventDefault()},load:function(t){return e.loadingFn(i)}}})]):e._e()])}),0),e._v(" "),e.showImageModal?t("div",{staticClass:"image-modal-overlay",on:{click:e.hideImageModal}},[t("div",{staticClass:"image-modal-container",on:{click:function(e){e.stopPropagation()}}},[t("img",{staticClass:"large-image",attrs:{src:e.currentLargeImageUrl},on:{click:e.hideImageModal}})]),e._v(" "),t("li",{staticClass:"browser-operate-item browser-close"},[t("OperateBtn",{attrs:{hideTips:!0,iconType:"xingzhuangjiehe",iconColor:"#FFFFFF"},on:{click:e.hideImageModal}})],1)]):e._e()])]):e._e()},[],!1,null,"bcdb3720",null);t.default=h.exports;installComponents(h,{OperateBtn:n(3207).default,IconfontView:n(129).default,RatingBox:n(3216).default,MemberUpgrade:n(3209).default})}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.