(()=>{"use strict";var t={472:(t,e,i)=>{i.d(e,{A:()=>a});var n=i(354),s=i.n(n),o=i(314),r=i.n(o)()(s());r.push([t.id,'@font-face {\n font-family: "iconfont";\n /* Project id 4017216 */\n src: url("//cdn.vstar.app/static/css/fonts/iconfont.woff2?t=169") format("woff2"), url("//cdn.vstar.app/static/css/fonts/iconfont.woff?t=1681525258204") format("woff"), url("//cdn.vstar.app/static/css/fonts/iconfont.ttf?t=1681525258204") format("truetype");\n}\n.vstar-star.right {\n text-align: right;\n}\n.vstar-star.center {\n text-align: center;\n}\n.vstar-star > * {\n display: inline-block;\n vertical-align: middle;\n}\n.vstar-star .star-item {\n height: auto;\n margin-right: 2px;\n font-size: 0;\n line-height: normal;\n}\n.vstar-star .star-item.nostar .trustoo-rating-icon path {\n fill: var(--nostar-color);\n}\n.vstar-star .star-item.half-star > .item-nostar .trustoo-rating-icon path {\n fill: var(--nostar-color);\n}\n.vstar-star .star-item .trustoo-rating-icon path {\n fill: var(--star-color);\n}\n.vstar-star .star-item.half-star {\n position: relative;\n}\n.vstar-star .item-star {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n overflow: hidden;\n width: 100%;\n height: 100%;\n}\n.vstar-star .item-nostar {\n font-size: 0;\n}\n.vstar-star i.trustoo-icon-star,\n.vstar-star i.trustoo-icon-nostar {\n display: inline;\n}\n#vstar-reviews #reviews-body .trustoo-badge-icon {\n width: 14px;\n height: 14px;\n}\n#vstar-reviews .user-verified .trustoo-badge-icon {\n margin-right: 4px;\n}\n.product-icon-list.vstar-star .star-item,\n.product-icon-list.vstar-star .trustoo-rating-icon {\n width: 20px;\n height: 20px;\n}\n.collection-icon-list .star-item,\n.collection-icon-list .trustoo-rating-icon {\n width: 16px;\n height: 16px;\n}\n#vstar-reviews > #reviews-head .star-item,\n#vstar-reviews > #reviews-head .trustoo-rating-icon {\n width: 20px;\n height: 20px;\n}\n#vstar-reviews > #reviews-body .star-item,\n#vstar-reviews > #reviews-body .trustoo-rating-icon {\n width: 14px;\n height: 14px;\n}\n.noreviews-nostar .star-item,\n.noreviews-nostar .trustoo-rating-icon {\n width: 20px;\n height: 20px;\n}\n.collection-icon-list {\n margin: 5px 0;\n}\n.collection-icon-list .collection-reviews-num {\n margin: 1px 6px 0 3px;\n font-size: 16px;\n line-height: normal;\n}\n#vstar-reviews #reviews-head {\n display: flex;\n}\n#vstar-reviews .head-sort {\n width: 40px;\n height: 40px;\n box-sizing: border-box;\n}\n#vstar-reviews .head-sort .sort-content {\n position: relative;\n width: 100%;\n height: 100%;\n}\n#vstar-reviews #reviews-body {\n position: relative;\n}\n#vstar-reviews .list-review .img-item,\n#vstar-reviews .list-review .resource-item {\n overflow: hidden;\n width: 100px;\n height: 100px;\n}\n#vstar-reviews .grid-review {\n position: absolute;\n display: inline-block;\n padding-bottom: 16px;\n border-radius: 8px;\n animation: recover 1s linear;\n box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.12);\n vertical-align: top;\n}\n#vstar-reviews #reviews-body .reviews-text {\n line-height: 140%;\n}\n#vstar-reviews #reviews-body svg {\n vertical-align: middle;\n}\n#vstar-reviews .grid-review .grid-review-head {\n position: relative;\n padding: 0 16px;\n margin-top: 16px;\n}\n#vstar-reviews .grid-review .user-message {\n margin: 12px 0 12px;\n}\n#vstar-reviews .grid-review .user-name {\n padding: 0;\n margin-right: 6px;\n font-size: 14px;\n font-weight: 700;\n vertical-align: middle;\n}\n#vstar-reviews .grid-review .country-name {\n font-size: 16px;\n vertical-align: middle;\n}\n#vstar-reviews .grid-review .reviews-date {\n font-size: 12px;\n line-height: 22px;\n}\n#vstar-reviews .grid-review .grid-review-body {\n padding: 0 16px;\n}\n#vstar-reviews .grid-review .reviews-text {\n font-size: 14px;\n word-wrap: break-word;\n}\n#vstar-reviews .grid-review .display-text {\n font-size: 14px;\n}\n#vstar-reviews .grid-review .img-item,\n#vstar-reviews .grid-review .resource-item {\n display: block;\n width: 100%;\n border-radius: 8px 8px 0 0;\n}\n#vstar-reviews .grid-review img {\n width: 100%;\n border-radius: 8px 8px 0 0;\n}\n.pagefly-star-rating-sealapp:empty,\n.ecom-star-rating-sealapp:empty,\n.custom-vstar-rating-widget:empty {\n display: block;\n}\n[class^="trustoo-icon-"] {\n /* use !important to prevent issues with browser extensions that change fonts */\n font-family: "iconfont" !important;\n font-size: 14px;\n /* Better Font Rendering =========== */\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n font-style: normal;\n font-variant: normal;\n font-weight: normal;\n line-height: 1;\n text-transform: none;\n}\n.trustoo-icon-helpful:before {\n color: var(--font-color);\n content: "\\e605";\n}\n.trustoo-icon-unhelpful:before {\n color: var(--font-color);\n content: "\\e606";\n}\n.trustoo-icon-star:before {\n color: var(--star-color);\n content: "\\e602";\n}\n.trustoo-icon-nostar:before {\n color: var(--nostar-color);\n content: "\\e602";\n}\n[class^="trustoo-icon-"].rated:before {\n color: var(--star-color);\n}\n[class^="trustoo-icon-"].no-rated:before {\n color: var(--nostar-color);\n}\n.trustoo-icon-skirt:before {\n content: "\\e60b";\n}\n.trustoo-icon-bag:before {\n content: "\\e60f";\n}\n.trustoo-icon-leaf:before {\n content: "\\e610";\n}\n.trustoo-icon-tie:before {\n content: "\\e611";\n}\n.trustoo-icon-cup:before {\n content: "\\e612";\n}\n.trustoo-icon-fire:before {\n content: "\\e60a";\n}\n.trustoo-icon-trophy:before {\n content: "\\e613";\n}\n.trustoo-icon-crown:before {\n content: "\\e614";\n}\n.trustoo-icon-heart:before {\n content: "\\e615";\n}\n.trustoo-icon-diamond:before {\n content: "\\e616";\n}\n.trustoo-icon-shirt:before {\n content: "\\e617";\n}\n.trustoo-icon-surrounded:before {\n content: "\\e609";\n}\n.trustoo-icon-spikes:before {\n content: "\\e618";\n}\n.trustoo-icon-rounded:before {\n content: "\\e608";\n}\n.trustoo-icon-chef:before {\n content: "\\e60d";\n}\n.trustoo-icon-footprint:before {\n content: "\\e60e";\n}\n.trustoo-icon-seedling:before {\n content: "\\e60c";\n}\n.trustoo-icon-helpful:before {\n content: "\\e605";\n}\n.trustoo-icon-unhelpful:before {\n content: "\\e606";\n}\n.trustoo-icon-star:before {\n content: "\\e602";\n}\n',"",{version:3,sources:["webpack://./static/css/trustoo-insert.less"],names:[],mappings:"AACA;EACC,uBAAA;EAAC,uBAAuB;EAExB,gQAAA;AAAD;AASC;EACC,iBAAA;AAPF;AAUC;EACC,kBAAA;AARF;AAWC;EACC,qBAAA;EACA,sBAAA;AATF;AAFA;EAeE,YAAA;EACA,iBAAA;EACA,YAAA;EACA,mBAAA;AAVF;AAaE;EAEE,yBAAA;AAZJ;AAeE;EAEE,yBAAA;AAdJ;AAdA;EAiCG,uBAAA;AAhBH;AAjBA;EAsCE,kBAAA;AAlBF;AApBA;EA0CE,kBAAA;EACA,MAAA;EACA,QAAA;EACA,SAAA;EACA,OAAA;EACA,gBAAA;EACA,WAAA;EACA,YAAA;AAnBF;AA9BA;EAoDE,YAAA;AAnBF;AAjCA;;EAyDE,eAAA;AApBF;AAuBA;EACC,WAAA;EACA,YAAA;AArBD;AAuBA;EACC,iBAAA;AArBD;AAwBA;;EAGE,WAAA;EACA,YAAA;AAvBF;AA2BA;;EAGE,WAAA;EACA,YAAA;AA1BF;AA6BA;;EAGE,WAAA;EACA,YAAA;AA5BF;AAgCA;;EAGE,WAAA;EACA,YAAA;AA/BF;AAmCA;;EAGE,WAAA;EACA,YAAA;AAlCF;AAsCA;EACC,aAAA;AApCD;AAmCA;EAIE,qBAAA;EACA,eAAA;EACA,mBAAA;AApCF;AAwCA;EAEE,aAAA;AAvCF;AAqCA;EAME,WAAA;EACA,YAAA;EACA,sBAAA;AAxCF;AAgCA;EAWG,kBAAA;EACA,WAAA;EACA,YAAA;AAxCH;AA8CA;EACC,kBAAA;AA5CD;AA+CA;;EAEC,gBAAA;EACA,YAAA;EACA,aAAA;AA7CD;AAgDA;EACC,kBAAA;EACA,qBAAA;EACA,oBAAA;EACA,kBAAA;EACA,4BAAA;EACA,gDAAA;EACA,mBAAA;AA9CD;AAgDA;EACC,iBAAA;AA9CD;AAgDA;EACC,sBAAA;AA9CD;AAgDA;EAEE,kBAAA;EACA,eAAA;EACA,gBAAA;AA/CF;AA2CA;EAQE,mBAAA;AAhDF;AAwCA;EAYE,UAAA;EACA,iBAAA;EACA,eAAA;EACA,gBAAA;EACA,sBAAA;AAjDF;AAiCA;EAoBE,eAAA;EACA,sBAAA;AAlDF;AA6BA;EAyBE,eAAA;EACA,iBAAA;AAnDF;AAyBA;EA8BE,eAAA;AApDF;AAsBA;EAkCE,eAAA;EACA,qBAAA;AArDF;AAkBA;EAuCE,eAAA;AAtDF;AA0DA;;EAGE,cAAA;EACA,WAAA;EACA,0BAAA;AAzDF;AAoDA;EASE,WAAA;EACA,0BAAA;AA1DF;AA8DA;;;EAGC,cAAA;AA5DD;AA+DA;EA7DE,+EAA+E;EA+DhF,kCAAA;EACA,eAAA;EA7DC,sCAAsC;EA+DvC,mCAAA;EACA,kCAAA;EACA,kBAAA;EACA,oBAAA;EACA,mBAAA;EACA,cAAA;EACA,oBAAA;AA7DD;AAgEA;EACC,wBAAA;EACA,gBAAA;AA9DD;AAiEA;EACC,wBAAA;EACA,gBAAA;AA/DD;AAkEA;EACC,wBAAA;EACA,gBAAA;AAhED;AAmEA;EACC,0BAAA;EACA,gBAAA;AAjED;AAmEA;EACC,wBAAA;AAjED;AAmEA;EACC,0BAAA;AAjED;AAmEA;EACC,gBAAA;AAjED;AAoEA;EACC,gBAAA;AAlED;AAqEA;EACC,gBAAA;AAnED;AAsEA;EACC,gBAAA;AApED;AAuEA;EACC,gBAAA;AArED;AAwEA;EACC,gBAAA;AAtED;AAyEA;EACC,gBAAA;AAvED;AA0EA;EACC,gBAAA;AAxED;AA2EA;EACC,gBAAA;AAzED;AA4EA;EACC,gBAAA;AA1ED;AA6EA;EACC,gBAAA;AA3ED;AA8EA;EACC,gBAAA;AA5ED;AA+EA;EACC,gBAAA;AA7ED;AAgFA;EACC,gBAAA;AA9ED;AAiFA;EACC,gBAAA;AA/ED;AAkFA;EACC,gBAAA;AAhFD;AAmFA;EACC,gBAAA;AAjFD;AAoFA;EACC,gBAAA;AAlFD;AAqFA;EACC,gBAAA;AAnFD;AAsFA;EACC,gBAAA;AApFD",sourcesContent:['// out: false\n@font-face {\n\tfont-family: "iconfont";\n\t/* Project id 4017216 */\n\tsrc: url("//cdn.vstar.app/static/css/fonts/iconfont.woff2?t=169")\n\t\t\tformat("woff2"),\n\t\turl("//cdn.vstar.app/static/css/fonts/iconfont.woff?t=1681525258204")\n\t\t\tformat("woff"),\n\t\turl("//cdn.vstar.app/static/css/fonts/iconfont.ttf?t=1681525258204")\n\t\t\tformat("truetype");\n}\n\n.vstar-star {\n\t&.right {\n\t\ttext-align: right;\n\t}\n\n\t&.center {\n\t\ttext-align: center;\n\t}\n\n\t& > * {\n\t\tdisplay: inline-block;\n\t\tvertical-align: middle;\n\t}\n\n\t.star-item {\n\t\theight: auto;\n\t\tmargin-right: 2px;\n\t\tfont-size: 0;\n\t\tline-height: normal;\n\t}\n\t.star-item {\n\t\t&.nostar {\n\t\t\t.trustoo-rating-icon path {\n\t\t\t\tfill: var(--nostar-color);\n\t\t\t}\n\t\t}\n\t\t&.half-star {\n\t\t\t> .item-nostar .trustoo-rating-icon path {\n\t\t\t\tfill: var(--nostar-color);\n\t\t\t}\n\t\t}\n\n\t\t.trustoo-rating-icon path {\n\t\t\tfill: var(--star-color);\n\t\t}\n\t}\n\n\t.star-item.half-star {\n\t\tposition: relative;\n\t}\n\n\t.item-star {\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tright: 0;\n\t\tbottom: 0;\n\t\tleft: 0;\n\t\toverflow: hidden;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t}\n\t.item-nostar {\n\t\tfont-size: 0;\n\t}\n\n\ti.trustoo-icon-star,\n\ti.trustoo-icon-nostar {\n\t\tdisplay: inline;\n\t}\n}\n#vstar-reviews #reviews-body .trustoo-badge-icon {\n\twidth: 14px;\n\theight: 14px;\n}\n#vstar-reviews .user-verified .trustoo-badge-icon {\n\tmargin-right: 4px;\n}\n\n.product-icon-list.vstar-star {\n\t.star-item,\n\t.trustoo-rating-icon {\n\t\twidth: 20px;\n\t\theight: 20px;\n\t}\n}\n\n.collection-icon-list {\n\t.star-item,\n\t.trustoo-rating-icon {\n\t\twidth: 16px;\n\t\theight: 16px;\n\t}\n}\n#vstar-reviews > #reviews-head {\n\t.star-item,\n\t.trustoo-rating-icon {\n\t\twidth: 20px;\n\t\theight: 20px;\n\t}\n}\n\n#vstar-reviews > #reviews-body {\n\t.star-item,\n\t.trustoo-rating-icon {\n\t\twidth: 14px;\n\t\theight: 14px;\n\t}\n}\n\n.noreviews-nostar {\n\t.star-item,\n\t.trustoo-rating-icon {\n\t\twidth: 20px;\n\t\theight: 20px;\n\t}\n}\n\n.collection-icon-list {\n\tmargin: 5px 0;\n\n\t.collection-reviews-num {\n\t\tmargin: 1px 6px 0 3px;\n\t\tfont-size: 16px;\n\t\tline-height: normal;\n\t}\n}\n\n#vstar-reviews {\n\t#reviews-head {\n\t\tdisplay: flex;\n\t}\n\n\t.head-sort {\n\t\twidth: 40px;\n\t\theight: 40px;\n\t\tbox-sizing: border-box;\n\n\t\t.sort-content {\n\t\t\tposition: relative;\n\t\t\twidth: 100%;\n\t\t\theight: 100%;\n\t\t}\n\t}\n}\n\n// Mark 瀑布流样式\n#vstar-reviews #reviews-body {\n\tposition: relative;\n}\n\n#vstar-reviews .list-review .img-item,\n#vstar-reviews .list-review .resource-item {\n\toverflow: hidden;\n\twidth: 100px;\n\theight: 100px;\n}\n\n#vstar-reviews .grid-review {\n\tposition: absolute;\n\tdisplay: inline-block;\n\tpadding-bottom: 16px;\n\tborder-radius: 8px;\n\tanimation: recover 1s linear;\n\tbox-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.12);\n\tvertical-align: top;\n}\n#vstar-reviews #reviews-body .reviews-text {\n\tline-height: 140%;\n}\n#vstar-reviews #reviews-body svg {\n\tvertical-align: middle;\n}\n#vstar-reviews .grid-review {\n\t.grid-review-head {\n\t\tposition: relative;\n\t\tpadding: 0 16px;\n\t\tmargin-top: 16px;\n\t}\n\n\t.user-message {\n\t\tmargin: 12px 0 12px;\n\t}\n\n\t.user-name {\n\t\tpadding: 0;\n\t\tmargin-right: 6px;\n\t\tfont-size: 14px;\n\t\tfont-weight: 700;\n\t\tvertical-align: middle;\n\t}\n\n\t.country-name {\n\t\tfont-size: 16px;\n\t\tvertical-align: middle;\n\t}\n\n\t.reviews-date {\n\t\tfont-size: 12px;\n\t\tline-height: 22px;\n\t}\n\n\t.grid-review-body {\n\t\tpadding: 0 16px;\n\t}\n\n\t.reviews-text {\n\t\tfont-size: 14px;\n\t\tword-wrap: break-word;\n\t}\n\n\t.display-text {\n\t\tfont-size: 14px;\n\t}\n}\n\n#vstar-reviews .grid-review {\n\t.img-item,\n\t.resource-item {\n\t\tdisplay: block;\n\t\twidth: 100%;\n\t\tborder-radius: 8px 8px 0 0;\n\t}\n\n\timg {\n\t\twidth: 100%;\n\t\tborder-radius: 8px 8px 0 0;\n\t}\n}\n\n.pagefly-star-rating-sealapp:empty,\n.ecom-star-rating-sealapp:empty,\n.custom-vstar-rating-widget:empty {\n\tdisplay: block;\n}\n\n[class^="trustoo-icon-"] {\n\t/* use !important to prevent issues with browser extensions that change fonts */\n\tfont-family: "iconfont" !important;\n\tfont-size: 14px;\n\t/* Better Font Rendering =========== */\n\t-webkit-font-smoothing: antialiased;\n\t-moz-osx-font-smoothing: grayscale;\n\tfont-style: normal;\n\tfont-variant: normal;\n\tfont-weight: normal;\n\tline-height: 1;\n\ttext-transform: none;\n}\n\n.trustoo-icon-helpful:before {\n\tcolor: var(--font-color);\n\tcontent: "\\e605";\n}\n\n.trustoo-icon-unhelpful:before {\n\tcolor: var(--font-color);\n\tcontent: "\\e606";\n}\n\n.trustoo-icon-star:before {\n\tcolor: var(--star-color);\n\tcontent: "\\e602";\n}\n\n.trustoo-icon-nostar:before {\n\tcolor: var(--nostar-color);\n\tcontent: "\\e602";\n}\n[class^="trustoo-icon-"].rated:before {\n\tcolor: var(--star-color);\n}\n[class^="trustoo-icon-"].no-rated:before {\n\tcolor: var(--nostar-color);\n}\n.trustoo-icon-skirt:before {\n\tcontent: "\\e60b";\n}\n\n.trustoo-icon-bag:before {\n\tcontent: "\\e60f";\n}\n\n.trustoo-icon-leaf:before {\n\tcontent: "\\e610";\n}\n\n.trustoo-icon-tie:before {\n\tcontent: "\\e611";\n}\n\n.trustoo-icon-cup:before {\n\tcontent: "\\e612";\n}\n\n.trustoo-icon-fire:before {\n\tcontent: "\\e60a";\n}\n\n.trustoo-icon-trophy:before {\n\tcontent: "\\e613";\n}\n\n.trustoo-icon-crown:before {\n\tcontent: "\\e614";\n}\n\n.trustoo-icon-heart:before {\n\tcontent: "\\e615";\n}\n\n.trustoo-icon-diamond:before {\n\tcontent: "\\e616";\n}\n\n.trustoo-icon-shirt:before {\n\tcontent: "\\e617";\n}\n\n.trustoo-icon-surrounded:before {\n\tcontent: "\\e609";\n}\n\n.trustoo-icon-spikes:before {\n\tcontent: "\\e618";\n}\n\n.trustoo-icon-rounded:before {\n\tcontent: "\\e608";\n}\n\n.trustoo-icon-chef:before {\n\tcontent: "\\e60d";\n}\n\n.trustoo-icon-footprint:before {\n\tcontent: "\\e60e";\n}\n\n.trustoo-icon-seedling:before {\n\tcontent: "\\e60c";\n}\n\n.trustoo-icon-helpful:before {\n\tcontent: "\\e605";\n}\n\n.trustoo-icon-unhelpful:before {\n\tcontent: "\\e606";\n}\n\n.trustoo-icon-star:before {\n\tcontent: "\\e602";\n}\n'],sourceRoot:""}]);const a=r},314:t=>{t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var i="",n=void 0!==e[5];return e[4]&&(i+="@supports (".concat(e[4],") {")),e[2]&&(i+="@media ".concat(e[2]," {")),n&&(i+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),i+=t(e),n&&(i+="}"),e[2]&&(i+="}"),e[4]&&(i+="}"),i})).join("")},e.i=function(t,i,n,s,o){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=o),i&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=i):c[2]=i),s&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=s):c[4]="".concat(s)),e.push(c))}},e}},354:t=>{t.exports=function(t){var e=t[1],i=t[3];if(!i)return e;if("function"==typeof btoa){var n=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),s="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(n),o="/*# ".concat(s," */");return[e].concat([o]).join("\n")}return[e].join("\n")}},72:t=>{var e=[];function i(t){for(var i=-1,n=0;n{var e={};t.exports=function(t,i){var n=function(t){if(void 0===e[t]){var i=document.querySelector(t);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(t){i=null}e[t]=i}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(i)}},540:t=>{t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},868:t=>{t.exports=function(t,e){Object.keys(e).forEach((function(i){t.setAttribute(i,e[i])}))}},825:t=>{t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=t.insertStyleElement(t);return{update:function(i){!function(t,e,i){var n="";i.supports&&(n+="@supports (".concat(i.supports,") {")),i.media&&(n+="@media ".concat(i.media," {"));var s=void 0!==i.layer;s&&(n+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),n+=i.css,s&&(n+="}"),i.media&&(n+="}"),i.supports&&(n+="}");var o=i.sourceMap;o&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleTagTransform(n,t,e.options)}(e,t,i)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}},113:t=>{t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}},957:(t,e,i)=>{i.d(e,{nj:()=>d,zG:()=>l});var n=i(571),s=i(134),o=i(405),r=i(986);function a(t,e,i,s=!1,o=!1,r=!1){return new Promise(((a,l)=>{!function(t,e={},i="GET",s,o=!1,r,a,l){let d=new XMLHttpRequest;var c=`https://${Review.baseUrl}/api/v1/`;let p="";p=o||a?t:r?n.A.uploadImgInfo.host:c+t;let u="";"object"!=typeof e||r||(u=Object.keys(e).reduce(((t,i)=>t+"&"+i+"="+e[i]),"")),"POST"==i?u=u&&!r?u.slice(1):e:"GET"==i&&u&&(u=u.replace("&","?"),p+=u),d.open(i,p,!0),u&&"POST"==i?d.send(u):d.send(),d.onreadystatechange=()=>{if(4==d.readyState){let t=d.responseText;200==d.status||203==d.status?s&&s(t):l&&l({responseText:t,statusText:d.statusText})}}}(t,e,i,a,s,o,r,l)})).then((t=>{if(o?t={name:e.get("name"),key:e.get("key")}:s||(t=JSON.parse(t)),!s&&!o){const e=t.code;if(-1===e)throw t;if(-2===e)throw t;t=t.data}return[null,t]})).catch((t=>{let i=[{error:t.message,params:e,code:t.code}];return o&&i.push({name:e.get("name")}),i}))}const l={getUserSetting:()=>a("users/get_reviews_settings",{shop_id:Review.shop_id}),getInstallStatus:()=>a("reviews/get_shop_install_status",{shop_id:Review.shop_id}),getSvg:t=>a("https://cdn.vstar.app/static/images/svg/customer/"+t+".svg?55555",{},"GET",!0),getIcons:()=>a("https://cdn.vstar.app/static/customer/icons.json",{},"GET",!0),getUserNeed:()=>a("reviews/get_custom_info",{shop_id:Review.shop_id}),getLang:()=>a("reviews/get_customer_self_define_lang",{shop_id:Review.shop_id,lang:Review.lang}),getProductRating(t){let e={shop_id:Review.shop_id},i=n.A.productId;return i?e.product_id=i:t&&(e.product_handle=t),a("reviews/get_product_rating",e)},getCollRating(t,e){let i={shop_id:Review.shop_id};return t?i.product_handle=t:i.product_id=e,a("reviews/get_products_rating",i)},getProRevList(t,e,i,r,l,d,c){i||0===i||(i=(0,o.a)()),r||(r=n.A.layoutReviewCount);let p={shop_id:Review.shop_id,limit:r};return i&&(p.page=i),n.A.isWdoRevOpen?(p.scene=2,s.A.isPopupProdReviews&&n.A.productId?p.product_id=n.A.productId:p.is_show_all=1):n.A.isMixReview?(p.scene=1,p.is_show_all=1):p.product_id=n.A.productId,0!==e&&(p.rating_filter=e),l&&(p.is_buyers_show=l),1!==p.is_show_all||l||(n.A.allRevLoadLock=!0),d&&(p.has_resource=1),c&&(p.review_id=c),p.sort_by=t,1!==n.A.userSetting.is_translate_review&&1!==n.A.userSetting.auto_switch_language||(p.lang=Review.lang),p.t=n.A.revReqParam,a("reviews/get_product_reviews",p)},getProductInfo(t){let e={shop_id:Review.shop_id};return t?e.product_title=t:e.product_id=n.A.productId,a("products/get_shopify_product_info",e)},recordInfo:t=>a(location.origin+"/apps/trustoo-proxy/api/v1/reviews/collect",t,"GET",!0),getOnlyOneProduct:()=>a("products/get_product_only_one",{shop_id:Review.shop_id}),getWriteRevSetting:()=>a("reviews/get_write_review_setting",{shop_id:Review.shop_id}),getPolicyToken:()=>a("review/get_policy_token",{shop_id:Review.shop_id}),uploadImg(t){const e=n.A.uploadImgInfo;let i=(0,r.get_suffix)(t.name),s=new FormData;return s.append("name",t.name),s.append("key",e.dir+i),s.append("policy",e.policy),s.append("OSSAccessKeyId",e.accessid),s.append("success_action_status","200"),s.append("callback",e.callback),s.append("signature",e.signature),s.append("file",t),72898347282===n.A.shop_id&&(s=s.fd),a("",s,"POST",!1,!0)},getUploadVideoUrl:()=>a("reviews/get_upload_url",{shop_id:Review.shop_id}),uploadVideo(t,e){let i=new FormData;return i.append("file",e),a(t,i,"POST",!0)},uploadReview(t,e,i){const{shop_id:s}=n.A,o=n.A.ratingVal,r=1!==n.A.writeRestriction,l=r?location.origin+"/apps/trustoo-proxy/api/v1/reviews/add_review_via_shopify":"reviews/add";return t.resources=i.map((({url:t,resource_type:e})=>({url:t,resource_type:e}))),Object.assign(t,{product_id:n.A.productId,shop_id:s,rating:o}),a(l,JSON.stringify(t),"POST",!1,!1,r)},getInsList(){const{shop_id:t,insPageSize:e,insCurPage:i}=n.A;return a("reviews/get_instagram_fee_list",{shop_id:t,limit:e,cur_page:i})},getInsSetting(){const{shop_id:t}=n.A;return a("reviews/get_instagram_setting",{shop_id:t})},likeOrDislikeReview(t,e,i){let s="";1===t?s="reviews/like_review":2===t&&(s="reviews/dislike_review");const{shop_id:o}=n.A;return a(s,JSON.stringify({shop_id:o,review_id:i,type:e}),"POST")},getBuyerShowsSettings(){const{shop_id:t}=n.A;return a("reviews/get_buyers_show_settings",{shop_id:t})},sendErrorMsg(t,e){let i={shop_id:Review.shop_id,theme_id:n.A.themeId,type:t,content:e};return a("reviews/warning_feedback",JSON.stringify(i),"POST")}},d={getSetting:()=>a("reviews/get_qa_settings",{shop_id:Review.shop_id}),getList:t=>(Object.assign(t,{shop_id:Review.shop_id,product_id:n.A.productId,page:(0,o.a)(),lang:Review.lang}),a("reviews/get_qa_list",t)),addQA:t=>(t.shop_id=Review.shop_id,t.product_id=n.A.productId,a("reviews/add_qa",JSON.stringify(t),"POST")),likeOrDislikeQA(t,e,i){let s="";1===t?s="reviews/like_qa":2===t&&(s="reviews/dislike_qa");const{shop_id:o}=n.A;return a(s,JSON.stringify({shop_id:o,qa_id:i,type:e}),"POST")}};n.A.getRevList=l.getProRevList},357:(t,e,i)=>{i.d(e,{A:()=>n});const n={verified:'\n\t\n\t',close:t=>`\n \n \n `,star:'\n \n \n ',store:(t="#666666")=>`\n \n \n `,hook:()=>'\n \n ',prePage:t=>``,nextPage:t=>``,helpful:t=>`\n\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\n\t\t`,unhelpful:t=>`\n\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t`,sort:(t="#202123")=>`\n\t\t\n\t`,multiPhoto:()=>'\n\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\n\t\t',qa:(t="#000")=>`\n\n`,loading:(t="#000")=>`\n\t\t\n\t`,over:(t="#000")=>`\n\n`,cw:'\n\t\n\t\n\t\n\t',video:'\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n'}},986:(t,e,i)=>{function n(){return(new Date).getTime()}function s(t,e){return 2==e&&(e=1),"rgba("+parseInt("0x"+t.slice(1,3))+","+parseInt("0x"+t.slice(3,5))+","+parseInt("0x"+t.slice(5,7))+","+e+")"}function o(t,e="10%",i="50%"){var n=document.createElement("div");n.className="toast",n.style.cssText=`left:${i};top:${e}`,n.innerHTML=t,document.body.appendChild(n),setTimeout((()=>{document.querySelector(".toast").remove()}),1500)}function r(t,e=20){var i=document.createElement("div");i.className="loader",i.style.cssText=`display: inline-block;width:${e}px;height:${e}px`,t.appendChild(i)}function a(t,e,i){let n=new Image;n.src=t,n.onload=function(){let t=document.createElement("canvas"),s=t.getContext("2d"),o=n.width,r=n.height,a="";ol||r>d)&&(o/r>1?(c=l,p=Math.round(l*(r/o))):(p=d,c=Math.round(d*(o/r)))),t.width=c,t.height=p,s.drawImage(n,0,0,c,p),a=t.toDataURL("image/jpg",.8),e.style.backgroundImage=`url(${a})`,i(a)}}function l(){return window.innerWidth}function d(t,e){const i=[...t];if(i.length<=e){const t=i.map((t=>{var e=c(t);return e.id=t,e}));return Promise.all(t)}const n=i.splice(0,e).map((t=>{var e=c(t);return e.url=t,e}));i.reduce(((t,e)=>t.then((()=>Promise.race(n))).then((t=>{let i=n.findIndex((e=>e.url==t));n.splice(i,1);var s=c(e);s.url=e,n.push(s)}))),Promise.resolve()).then((()=>Promise.all(n)))}function c(t){return new Promise(((e,i)=>{var n=new Image;n.url=t,n.onerror=()=>{i()},n.onload=()=>{e(n)},n.src=t}))}function p(t){var e=null;return null!=window.createObjectURL?e=window.createObjectURL(t):null!=window.URL?e=window.URL.createObjectURL(t):null!=window.webkitURL&&(e=window.webkitURL.createObjectURL(t)),e}function u(t,e,i,n){n.observer=new MutationObserver(i),n.observer.observe(t,e)}function v(t,e="smooth"){t.scrollIntoView({behavior:e,block:"start"})}function g(){var t=navigator.userAgent,e=t.indexOf("Android")>-1||t.indexOf("Adr")>-1,i=!!t.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);return e?"android":i?"ios":void 0}function A(t,e){let i;return i=e?e.querySelector(t):document.querySelector(t),i}function w(t,e){let i;return i=e?e.querySelectorAll(t):document.querySelectorAll(t),i}function h(t,e){navigator.clipboard.writeText(t).then((()=>{e()}))}function f(){let t=navigator.userAgent,e=/(?:Android)/.test(t),i=/(?:Firefox)/.test(t),n=/(?:iPad|PlayBook)/.test(t)||e&&!/(?:Mobile)/.test(t)||i&&/(?:Tablet)/.test(t),s=/(?:iPhone)/.test(t)&&!n;return e||s}function m(t,e){var i=null;return function(...n){i&&clearTimeout(i),i=setTimeout((()=>{t(...n)}),e)}}function _(t){var e=document.createRange();window.getSelection().removeAllRanges(),e.selectNode(t),window.getSelection().addRange(e),document.execCommand("copy")&&o("Copy successfully"),window.getSelection().removeAllRanges()}function b(t){return new Promise((e=>{setTimeout((()=>{e()}),t)}))}function y(t,e,i){if("set"!==t)return JSON.parse(sessionStorage.getItem(e));try{sessionStorage.setItem(e,JSON.stringify(i))}catch(t){}}function C(t,e,i){if("set"!==t)return JSON.parse(localStorage.getItem(e));localStorage.setItem(e,JSON.stringify(i))}function $(t){fetch("https://www.cloudflare.com/cdn-cgi/trace").then((t=>t.text())).then((e=>{e=e.split("\n"),t.ip=e[2].split("=")[1],t.loc=e[9].split("=")[1]}))}function x(t){let e=t.lastIndexOf("."),i="";return-1!=e&&(i=t.substring(e)),function(t){t=t||32;for(var e="ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678",i=e.length,n="",s=0;sA,$dqsa:()=>w,copyToClipboard:()=>h,dealImage:()=>a,debounce:()=>m,getMobileSystem:()=>g,getObjectURL:()=>p,getTimeStamp:()=>n,getWindowWidth:()=>l,get_suffix:()=>x,gsLocal:()=>C,gsSession:()=>y,hexToRgba:()=>s,imgLoad:()=>c,imgLoadLimit:()=>d,isMobile:()=>f,isWebPSupported:()=>R,returnCitySN:()=>$,scrollTo:()=>v,setCopy:()=>_,setDelay:()=>b,setLoading:()=>r,setObserve:()=>u,setToast:()=>o})},571:(t,e,i)=>{i.d(e,{A:()=>n});const n={source:"reviews",staticBaseUrl:"",wrapWid:0,isNullRev:!1,proTarget:null,collTarget:[],ratingIconSvg:"",badgeIconSvg:"",themeStyle:"",ip:"",isFirstExecute:!1,isCollPage:!1,isProPage:!1,isHomePage:!1,isCartPage:!1,isSettingUpdate:!1,isProRatingUpdate:!1,isReviewsUpdate:!1,isWebPSupported:!0,revIdBase:"vstar-",isOverwriteOldScripts:!1,isRecordPV:!1,isRecordCart:!1,cartWatcher:null,RevIntersection:null,isCollOpen:!1,isProOpen:!1,isRevOpen:!1,isFirstPageRender:!0,buyersShowType:2,isInsertBS:!1,isMixReview:!1,page:0,isWdoRevFirstPageRendered:!1,reviewsList:[],pageRecord:[],reviewsBody:null,reviewsDom:null,revReqParam:"",productHandle:"",userSetting:{},showType:1,layoutClass:"",layoutReviewCount:0,reviewsWidth:0,reviewsRow:5,imgUploadedCount:0,uploadedIndex:0,gridCardWidth:0,wdoGridCardWidth:0,listDisIndex:0,listNodeCount:0,viewer:null,origImg:[],thumbImg:[],likeRevLock:!1,lang:{},column:0,minHeight:0,reviews:{columnHighs:[],preColHighs:[],cardWid:0,cardCount:0,ratingFilter:0},bsInsertSelector:null,albumCount:8,albumSortType:"commented-at-descending",isInsertRev:!1,isCssLoaded:!1,globalStyle:null,reqErr:null,isProHasHalfStar:!1,pageCount:0,ratingData:{},allRatingData:{},searchACount:6,collTarInx:0,isOtherTheme:!1,isCollFinished:!1,observer:null,isSetObserver:!1,iObserver:null,curCollArr:[],isHomeRatingOpen:!1,allRevLoadLock:!1,mediaUrl:[],isSendLock:!1,ratingVal:0,uploadImgInfo:{},uploadType:1,newRevCharLimit:2e3,isLoginWrite:!1,copyText:"Copy successfully",wdoRev:{columnHighs:[],preColHighs:[],cardWid:0,cardCount:0,ratingFilter:0},isActWdoRev:!1,isWdoRevOpen:!1,isWdoRevExist:!1,wdoRevDom:!1,wdoRevBody:null,isLinkReqRev:!1,writeForm:0,writeRestriction:1,hasPyRating:!1,showRelatedPros:!1,revDetailInfo:{page:0,no:0,imageIndex:0},isQAInserted:!1,qsPageNum:0}},429:(t,e,i)=>{i.d(e,{DF:()=>g,M0:()=>w,WF:()=>A,nq:()=>u});var n=i(957),s=i(571),o=i(134);const{$dqs:r,debounce:a,setObserve:l,$dqsa:d}=i(986),{setInsertTarget:c,starEmbeddedAdaptation:p}=i(638);function u(){const t=s.A.curCollArr;let e=[],i='a[href*="/products/"]';if(-1===t.findIndex((t=>"A"!==t.tagName)))return t;if(-1===t.findIndex((t=>null===r(i,t))))return t.map((t=>r(i,t)));let n,o=t[0],a=[];for(let s=0;s{s.A.observer.disconnect(),g();let{collTarget:t}=Review;const e=Array.from(t).map((t=>t.textContent.replace(/\n/g,"").trim())).join();w(),t=Review.collTarget;const i=Array.from(t).map((t=>t.textContent.replace(/\n/g,"").trim())).join(),n=d(".collection-icon-list").length;(0!==n&&n===t.length||0===n&&2===s.A.userSetting.is_show_stars_without_review)&&e===i?g():(Review.observeCount++,c(2),Review.collectionTarget=t)}),400);function g(){let t=r("main");!t&&(t=document.body);l(t,{childList:!0,subtree:!0},(function(){v()}),s.A)}function A(t){let e="";if(t.length){let i="A",n=[];for(let e=0;ep");break;case 730:t=d(".grid-product__title");break;case 775:t=d(".product-card__name");break;case 766:t=d(".product-item__title");break;case 887:case 1356:case 1363:case 1368:case 1567:t=d(".h5>.full-unstyled-link"),0===t.length&&(t=d(".card-information__text")),l=!1;break;case 829:t=d(".card__name,.spf-product-card__title");break;case 578:t=d(".product__title a");break;case 796:t=d(".product-card__title");break;case 380:var c=d(".grid-link__container .grid__item");t=[],c.forEach((e=>{t.push(e.querySelector(".grid-link__title"))}));break;case 885:if(a=!0,t=d(".product-card__title-wrapper"),i){let t=r(".shopify-section .product");t&&(wrapWid=t.offsetWidth)}break;default:if(Review.theme&&"warehouse"===Review.theme.name){const t=r(".product-item__price-list.price-list");t&&"-15px"===getComputedStyle(t).marginTop&&(s.A.globalStyle.textContent+="div.collection-icon-list.vstar-star {\n margin-bottom: 20px;\n }")}a=!0,t=h()}if(a||0===t.length&&l&&(t=h()),s.A.isCollPage&&0===t.length&&r('a[href*="/products"]')&&await n.zG.sendErrorMsg(2,`集合页评价嵌入失败,店铺地址为:${window.location.href}`).then((e=>{if(e[1]){const i=p(4,e[1].selector);i&&(t=d(i))}})),0!==t.length&&(t=Array.from(t),i)){const e=Review.proTarget;e&&(t=t.filter((t=>t!==e&&!e.contains(t))))}Review.collTarget=t}function h(){let t=[];const{isCollPage:e,isProPage:i,isHomePage:n,hasPyRating:r}=s.A;if(e||i||n||o.A.otherPageColl||r){let e;return o.A.customCollTarSel&&(e=o.A.customCollTarSel,t=d(o.A.customCollTarSel)),0===t.length&&(e=".product-details>span.title,.apb_product_list_product_item_title,.grid_title,.collection__grid-item__details,\n .popup_cart_title>a,h3.product-title,a.ga-product_title,h4.title-product,.grid-item .inner-top>.product-bottom>a.product-title,\n .product__grid__title,.pt-title.prod-thumb-title-color,.product-item-meta__title,.product-grid-item__title,.product-item-title",t=d(e),Review.collType="type1"),0===t.length&&(e=".product-bottom>.product-title,.product-details>.product-title,.product-item__details a,.info .title,.product-name>a,\n .collectionBlock__title>a,.product-grid-item>p,.innerer>.title,.grid__product-content>a,.ht-product-title>a,.h5>.full-unstyled-link,\n .product .card-title,.list_prod .title-product,.product.slick-slide .card-title,.product-title-price,.prd-title,.product-info>h3.title14,\n .list-view-item__title-column>a,.gt_product-name>h2,.block.text-base,.tt-description>h2.tt-title,.desc>h5,.product-item__title",t=d(e),Review.collType="type2"),0===t.length&&(e=".ftr,.product-grid-desc>h3,.gt_product-name,p.list-product__title,.product--details-container,.product--item-title,.h4.grid-view-item__title,\n .product-grid-item__product-name,h3.card__name.h4,.grid-crop-title,.title-wrap,h3>span.overflowed,.product-grid--title>a,a.gf_product-title,.bls__product-details a,\n a>.indiv-product-title-text,h2.product_name,.sf__pcard-content .max-w-full,h2.product-card__title,.proName>a,a.item__name.pg__sync-url,.spf-product-card__title",t=d(e),Review.collType="type3"),0===t.length&&(e=".grid-product__title,.product-block__title,\n .grid-view-item__title,.product-card__name,.ProductItem__Title,.product-info>a>h2,\n .card-information__text,span.indiv-product-title-text,.card__title:not(.heading),h4.product_name,\n .productitem--title,.grid-link__title,.boost-pfs-filter-product-item-title,.product-collection__title,\n .col_product_text_color,.js-product-details-link,.t4s-product-title,.ws-card__title,.product-thumbnail__info>.product-thumbnail__header",t=d(e),Review.collType="type4"),0===t.length&&(e='.card__heading[id^="title-template"],.lh-product-title',t=d(e),Review.collType="type5"),Review.coll_dqsa="$dqsa(`"+e+"`)",t}}},877:(t,e,i)=>{i.d(e,{N:()=>n});class n{init(){return this.emitCartChanges().then((()=>{this.observeCartChanges()}))}async fetchCart(){return(await fetch("/cart.js")).json()}storeCartToken(t){try{sessionStorage.setItem("ttCartToken",t)}catch(t){}}storedCartToken(){return sessionStorage.getItem("ttCartToken")||""}async emitCartChanges(){const t=await this.fetchCart(),e=new CustomEvent("cart_changed",{detail:{token:t.token}});window.dispatchEvent(e),this.storeCartToken(t.token)}observeCartChanges(){new PerformanceObserver((t=>{t.getEntries().forEach((t=>{const e=["xmlhttprequest","fetch"].includes(t.initiatorType),i=/\/cart\//.test(t.name);e&&i&&this.emitCartChanges()}))})).observe({entryTypes:["resource"]})}}},638:(t,e,i)=>{i.r(e),i.d(e,{getHomeProTitle:()=>b,getTotalRating:()=>A,getTotalStarString:()=>_,insertCarousel:()=>f,insertReviewControl:()=>w,insertReviewDetail:()=>h,processRecordedData:()=>m,setInsertTarget:()=>v,starEmbeddedAdaptation:()=>y});var n=i(957),s=i(154),o=i(742),r=i(986),a=i(429),l=i(778),d=i(571),c=i(134),p=i(45),u=i(877);async function v(t){let e,i;if(1==t){if(!(0,r.$dqs)("#seal-star-rating-widget")){if(await(0,l.rU)(),!Review.proTarget)return;d.A.globalStyle.textContent+=`\n\t\t\t.product-icon-list>.tt-rating-text{\n color: ${window.getComputedStyle(Review.proTarget).color} !important;\n }`,g()}}else if(2==t){if(0===Review.collTarget.length)return;d.A.curCollArr=Review.collTarget.filter((t=>{if(!t.getAttribute("is-vstar-inserted"))return!0})),d.A.curCollArr.length>50?(d.A.isCollFinished=!1,d.A.curCollArr=d.A.curCollArr.slice(0,50)):d.A.isCollFinished=!0;if(d.A.curCollArr.every((t=>t.getAttribute("product-id")||t.dataset.productId)))i=d.A.curCollArr.map((t=>t.getAttribute("product-id")||t.getAttribute("data-product-id"))).join(",");else{let t=(0,a.nq)();e=(0,a.WF)(t)}}if(1!==t&&(e||i)){let[t,s]=await n.zG.getCollRating(e,i);null===t&&async function(t){const e=d.A.curCollArr,{userSetting:i,isProPage:n,hasPyRating:s,hasEcomRt:o}=d.A,l=e.length;if(l){if(0===(0,r.$dqsa)(".collection-icon-list").length){const t=getComputedStyle(e[0]).color;d.A.globalStyle.textContent+=`\n\t\t\t.collection-icon-list>.tt-rating-text{\n\t\t\t\tcolor:${t}\n\t\t\t}\n\t\t\t`}let u=0,g="afterEnd";(s||o)&&(g="afterbegin"),55363502159===d.A.shop_id&&t.forEach((t=>t.total_reviews+=100));for(var p=0;p${o.slice(0,r)}`),e=`
${o.slice(r+8)}
`,i=_(n.rating,!0)):e=`
${o}
`}o.style.margin=0;const r=`
\n\t\t\t\t${t}${i}${e}
`;o.insertAdjacentHTML(g,r)}}if(document.dispatchEvent(new CustomEvent("onTTListRatingEmbed",{detail:{v:d.A},bubbles:!0,cancelable:!0})),(s||o)&&n){const t=shopifyObj.productId,e=(0,r.$dqsa)(`.custom-vstar-rating-widget[product-id="${t}"],.custom-vstar-rating-widget[data-product-id="${t}"]`);0!==e.length&&d.A.reviewsDom&&e.forEach((t=>{t.style.cursor="pointer",t.onclick=()=>(0,r.scrollTo)(d.A.reviewsDom)}))}n&&!s||(d.A.isCollFinished?setTimeout((()=>{(0,a.DF)()}),1e3):v(2))}}(s)}}function g(){let{proTarget:t}=Review;const{ratingData:e,userSetting:i,lang:n}=d.A,s=(0,r.$dqs)(".product-icon-list.vstar-star",t.parentNode);if(s&&s.remove(),2===i.is_show_stars_without_review&&0==e.rating);else{let i="afterEnd",s="",o="",a=window.getComputedStyle(t).textAlign;1==t.dataset.trustooRatingBlock&&(i="afterbegin");const p=window.getComputedStyle(t.parentNode);"flex"===p.display&&"column"!==p.flexDirection&&"wrap"!==p.flexWrap&&(t=t.parentNode),"center"===a?s="center":"right"===a&&(s="right"),d.A.isCssLoaded?d.A.isProHasHalfStar&&(o+="display:none;",setTimeout((()=>{(0,r.$dqs)(".product-icon-list.vstar-star").style.display="block"}),300)):o+="display:none;",c.A.customRatingText&&(n.product_pages_reviews=c.A.customRatingText);const u=e.total_reviews;let v=n.product_pages_reviews.replace(/{{review_number}}/g,u).replace(/{{review_rating}}/g,e.rating).trim();const g=v.indexOf("{{star}}");let A="",w="",h="";-1!==g?(0!==g&&(A=`
${v.slice(0,g)}
`),w=`
${v.slice(g+8)}
`,h=_(e.rating,!0)):w=`
${v}
`;const f=`
\n\t\t\t${A}${h}${w}
`;t.insertAdjacentHTML(i,f),t.style.marginBottom=0,(0,r.$dqs)(".product-icon-list").onclick=function(t){const{reviewsDom:e}=d.A;m("reviews_click"),t.target.classList.contains("product-icon-list")||((0,l.bl)(),e&&(0,r.scrollTo)(e))};const b=new CustomEvent("onTTDetailRatingEmbed",{detail:{v:d.A},bubbles:!0,cancelable:!0});document.dispatchEvent(b)}}async function A(t={}){let e,i;const{isProRatingOpen:s,isHomeRatingOpen:l,isMixReview:p,isWdoRevOpen:A,isHomePage:h,isProPage:f}=d.A,{proTarget:_}=Review,b=(0,r.$dqs)("#seal-star-rating-widget");(!p&&!A||d.A.productId)&&("undefined"!=typeof vstar_product_rating&&vstar_product_rating.hasOwnProperty("rating")&&!d.A.isProRatingUpdate?d.A.ratingData=i=vstar_product_rating:([e,i]=await n.zG.getProductRating(),null===e&&i&&(d.A.ratingData=i))),d.A.ratingData&&d.A.ratingData.rating&&(d.A.ratingData.rating=parseFloat(d.A.ratingData.rating).toFixed(c.A.bigRatingDigits-1)),(s||l||d.A.hasPyRating||d.A.hasEcomRt)&&(f&&setTimeout((()=>{(0,r.$dqs)('a[href*="/products/"],.product-recommendations')&&d.A.isOpenRecStars&&((0,a.M0)(),0!==Review.collTarget.length&&v(2),setTimeout((()=>{(0,a.DF)()}),1e3))}),1e3),b||d.A.hasPyRating||d.A.hasEcomRt||(h?_&&g():v(1))),await w(i,t),d.A.isProPage&&((0,r.gsSession)("set","tt_pv_product_id",null),(0,r.gsSession)("set","tt_cart_product_id",null),async function(){d.A.cartWatcher=new u.N,d.A.cartWatcher.changeCount=0,window.addEventListener("cart_changed",(t=>{if(d.A.cartWatcher.changeCount++,d.A.isRecordPV&&d.A.cartWatcher.changeCount>1){m("add_to_cart",t.detail.token.split("?key=")[0],!0)}})),await d.A.cartWatcher.init(),d.A.reviewsDom&&!d.A.isNullRev&&(0,o.E7)()}())}async function w(t,e){const{isMixReview:i,isNoNullReview:a,isActWdoRev:l,isWdoRevOpen:u}=d.A,v=new CustomEvent("onTrustooReviewsEmbed",{detail:{reviews:d.A.reviewsDom},bubbles:!0,cancelable:!0});let g=!1;if((0,r.$dqs)("#seal-review-widget,.custom-vstar-review-widget")&&(g=!0),d.A.isRevOpen||g){const g=(0,r.$dqsa)("#reviews-wrapper,#noreviews-wrapper");if(0!==g.length&&g.forEach((t=>t.remove())),t&&0!=t.rating||i||l&&u)d.A.isInsertRev=!0,h(),(0,o.Gs)(e);else{if(a||2===d.A.userSetting.review_empty_status_display)return Review.hasReviews=!1,void document.dispatchEvent(v);(0,o.WC)(e.tarNode),"undefined"!=typeof trustooAfterExecute&&trustooAfterExecute(d.A,c.A)}!async function(){if(!(0,r.$dqs)(".mask.review-mask")){const t=await async function(){let t={show_email:1,require_email:1,show_phone:2,require_phone:2,show_feedback:1,require_feedback:1,review_button_background_color:"#000000",review_button_text_color:"#FFFFFF",thanks_button_background_color:"#000000",thanks_button_text_color:"#FFFFFF"};if("undefined"==typeof vstar_write_review_settings||d.A.isSettingUpdate){const e=await n.zG.getWriteRevSetting();null===e[0]&&(t=e[1])}else t=vstar_write_review_settings;return t}(),e=t.write_review_form;d.A.writeRestriction=t.leave_review_method,d.A.writeForm=e,1===e?((0,s.yE)(t),(0,s.Cf)(t)):2===e&&(0,p.P9)(t),1===d.A.userSetting.is_qa_active&&1!==e&&((0,s.yE)(t),(0,s.Cf)(t))}}()}else d.A.isFirstPageRender&&"undefined"!=typeof trustooAfterExecute&&trustooAfterExecute(d.A,c.A);Review.hasReviews=Boolean(d.A.reviewsDom),document.dispatchEvent(v)}function h(){"undefined"!=typeof TTRevDetail&&(d.A.isInsertRev||d.A.isInsertBS||d.A.isWdoRevOpen)&&TTRevDetail.insertTTReviewDetail(d.A)}function f(t,e="beforebegin"){if(!t)return;if((0,r.$dqs)("#trustoo-card-carousel-widget"))return;const i=document.createElement("script");i.src=`https://${d.A.staticBaseUrl}/static/dist/js/swiper-reviews.min.js`;const n=document.createElement("link");n.rel="stylesheet",n.href=`https://${d.A.staticBaseUrl}/static/css/swiper-reviews.min.css`,document.head.appendChild(i),document.head.appendChild(n),t.insertAdjacentHTML(e,'')}function m(t,e="",i){if(d.A.isProPage&&d.A.ratingData&&0==d.A.ratingData.rating)return;let s="",o=0;if(localStorage.getItem("trustoo_uv")?s=localStorage.getItem("trustoo_uv"):(s=d.A.shop_id+"_"+(new Date).getTime(),localStorage.setItem("trustoo_uv",s),o=1),d.A.isProPage&&((0,r.gsSession)("set","tt_pv_product_id",d.A.productId),(0,r.gsSession)("set","tt_cart_product_id",d.A.productId)),!d.A.isRecordPV||i&&!d.A.isRecordCart){d.A.isRecordPV=!0;const a={client_id:s,event_category:t};if(["reviews_click","reviews_view"].includes(t)&&(a.unique_visitor=o),d.A.productId&&(a.product_id=d.A.productId),e)a.cart_token=e,d.A.isRecordCart=!0;else if(d.A.cartWatcher){const t=d.A.cartWatcher.storedCartToken().split("?key=")[0];a.cart_token=t}n.zG.recordInfo(a).then((()=>{i&&(0,r.gsSession)("set","tt_cart_product_id",null)}))}}function _(t,e=!1){const{isProPage:i}=d.A,n=d.A.ratingIconSvg;let s="";n||(s=" pending");const o=`
${n}
`,r=`
${n}
`;parseInt(t)||(t=0);for(var a="",l=Math.floor(t),c=0;c\n\t\t
${n}
\n
\n ${n}\n
\n `}for(c=0;c<5-l;c++)a+=r;return a}function b(t){return encodeURIComponent(t)}function y(t,e){for(let i=0;i{i.d(e,{B4:()=>c,bl:()=>d,rU:()=>l});var n=i(571),s=i(957),o=i(986),r=i(134),a=i(638);async function l(){const{isProPage:t,isHomePage:e}=n.A,{customProTarSel:i}=r.A;let l;l=function(){let t={},e=Review.theme.theme_store_id;var i=".product-single__title",n=".product__title>h1",s='.grid-item>h1.h2[itemprop="name"]',o='.grid__item>h1.h2[itemprop="name"]';let r,a=[i,n,s,o].join(",");switch(e){case 730:case 578:case 775:case 796:case 380:r=i;break;case 887:case 829:case 1356:case 1363:case 1368:r=n;break;case 679:r=s;break;case 766:r=o;break;default:t.isAll=!0,r=a}t.main=r,t.mainAll=a;var l=".product__title .product__title--template",d=".ProductMeta__Title",c=".product_title,h1.product__title",p=".tt-product-single-info .tt-title",u=".product-block-list__item .product-meta__title",v=".product-meta>.product-meta__title",g=".product-title",A=".gt_atom-cZGCOCvfkBpcRgQ_productTitle",w=".pr_title",h=".prd-block_title",f=".product-detail__title",m=".productInfo h1",_=".product_name",b=".product-name",y=".product-description-header",C=".layout-column-half-right>.title",$=".product-page-info__title>h1",x="h1.gt_heading",R="#popup_cart_title",q=".apb_product_detail_information_title",S=".product-area__details__title",k=".product-info>h3.title30",E=".gt_product-content>h2",T=".prod__title",L=".productInfo>h2",I=".product__section-title>h1",P=".page-header h1.title",D=".title-detail",M=".title>h1",O=".title-row>h1.title",B="h2.product-page--heading",H=".section-header__title.product-titre",N=".block.type-title",F="h2.product-details-product-title",W="h1.product-info__title",j=".product-detail-part>h2[itemprop='name']",z="h2.single_product__title",U="#product-description h1.h2",G="h1.product-item-caption-title.-product-page",V="h1.product-title",Z="h2[data-attribute='productTitle']",J=".productView-title",Y="h1.product__section-title",Q="h1.product-single__title-text",X='h1[itemprop="name"]',K=".proBoxInfo>h1",tt=".product-header",et="h1.title-primary",it="[data-product-description-container]>h2.h1",nt=".uppercase",st=".col-md-12>.title-sale",ot=".shg-product-title-component",rt=".t4s-product__title",at=".bls__product-title";let lt=[];lt.push(l,d,c,p,u,g,A,w,h,m,_,y,C,$,x,R,q,S,k,E,f,T,v,L,b,I);let dt=[P,D,M,O,B,H,N,F,W,j,z,U,G,V,Z,J].join(","),ct=[Y,Q,X,K,tt,et,it,nt,st,ot,rt,at].join(","),pt=lt.join(",");return t.other1=dt,t.other2=pt,t.other3=ct,t}();let d,c=[],p=!1;const u=(0,o.$dqsa)(".custom-vstar-rating-widget,.pagefly-star-rating-sealapp,.ecom-star-rating-sealapp");0!==u.length&&(c=u,p=!0),i&&!p&&(d=(0,o.$dqs)(i),d&&(p=!0,Review.proType="custom",Review.proSel=i,Review.proTarget=d),e&&d)||(p||(c=(0,o.$dqsa)(l.main),0!==c.length||l.isAll||(c=(0,o.$dqsa)(l.mainAll)),0!==c.length&&(p=!0),Review.proType="main",Review.proSel=l.main),p||(c=(0,o.$dqsa)(l.other1),Review.proType="other1",Review.proSel="`"+l.other1+"`",0===c.length&&(c=(0,o.$dqsa)(l.other2),Review.proType="other2",Review.proSel="`"+l.other2+"`"),0===c.length&&(c=(0,o.$dqsa)(l.other3),Review.proType="other3",Review.proSel="`"+l.other3+"`")),d=Array.from(c).find((t=>null!==t.offsetParent)),d?(u.length&&(d.dataset.trustooRatingBlock=1),Review.proTarget=d,n.A.globalStyle.textContent+=`#vstar-reviews .tt-head-title,#vstar-noreviews .noreviews-title{font-family:${getComputedStyle(d).fontFamily}}`):t&&await s.zG.sendErrorMsg(3,`产品页评价嵌入失败,店铺地址为:${window.location.href}`).then((t=>{if(t[1]){const e=(0,a.starEmbeddedAdaptation)(5,t[1].selector);e&&(Review.proSel=e,d=(0,o.$dqs)(e))}})))}function d(){const t=n.A.shop_id;if(1===r.A.get_move_review_info.is_tab_review&&!n.A.isWdoRevOpen)if(61646700724===t&&129829568692===n.A.themeId){activeCls="t4s-active";let t=(0,o.$dqs)(`.panel.sp-tab.${activeCls},.t4s-tab-wrapper>.t4s-tab-content.${activeCls}`);t?t.classList.remove(activeCls):t=(0,o.$dqs)(".t4s-tab-wrapper:nth-child(2)>.t4s-tab-content");const e=(0,o.$dqs)("#tab_pr_reivew,.t4s-tab-wrapper:nth-child(4)>.t4s-tab-content");e.classList.add(activeCls),n.A.isMobile?((0,o.$dqs)(".sp-tab-content",t).style.display="none",(0,o.$dqs)("#tab_pr_reivew .sp-tab-content").style.cssText=""):((0,o.$dqs)(".tab_title_block.active,.t4s-d-inline-flex>a.t4s-active").classList.remove(activeCls),(0,o.$dqsa)(".tab_title_block,.t4s-tab-wrapper")[1].classList.add(activeCls),t.style.display="none",e.style.display="block")}else if(67745513752===t&&137959506200===n.A.themeId){const t=(0,o.$dqs)('[data-id="1670265256519"] .module'),e=(0,o.$dqs)("[data-control].opend",t);null!==e&&(e.classList.remove("opend"),e.nextElementSibling.style.display="none");const i=(0,o.$dqs)('[data-control][data-index="5"]',t);null!==i&&(i&&i.classList.add("opend"),i.nextElementSibling.style.display="block")}else if(69381783840===t&&144923328800===n.A.themeId){const t=(0,o.$dqsa)(".product-simple-tab .tab-pane"),e=(0,o.$dqsa)(".nav-item .nav-link");t[0].className="tab-pane",t[2].className="tab-pane active show",e[0].className="nav-link",e[1].className="nav-link active show"}}function c(){if(n.A.isProPage){const t=(0,o.$dqs)(`.pagefly-star-rating-sealapp[product-id="${n.A.productId}"]`);t&&(t.style.cursor="pointer",t.onclick=function(){n.A.reviewsDom&&(0,o.scrollTo)(n.A.reviewsDom)})}}},154:(t,e,i)=>{i.d(e,{Cf:()=>$,Do:()=>x,PT:()=>g,yE:()=>A});var n=i(571),s=i(957),o=i(638),r=i(986),a=i(742),l=i(357);let d=null,c=null,p=null,u=0;const v=5,g=(0,r.debounce)(C,500);async function A(t){let e="",i="";const{lang:s,productImages:a,productName:u,isNoUploadImg:A}=n.A,h=s.question_and_answer;let _=1===n.A.userSetting.is_del_powered,$="";"undefined"!=typeof Review&&["ar","he"].includes(Review.lang)&&($=" trustoo-rtl"),n.A.isMobile&&(n.A.globalStyle.textContent+="#trustoo-allinone>.tt-write-content {\n\t\t\tpadding-bottom: 100px !important;\n\t}"),n.A.globalStyle.textContent+=`\n\t#trustoo-allinone,#success-window{\n\t\t--button-bg-color: ${t.review_button_background_color};\n\t\t--button-text-color: ${t.review_button_text_color};\n\t\t--button-radius: ${t.button_radius}px;\n\t\t--text-color: ${t.text_color};\n\t\t--light-text-color: ${(0,r.hexToRgba)(t.text_color,.4)};\n\t\t--discount-code-color:${t.discount_text_color};\n\t\t--discount-copy-color:${t.discount_copy_color};\n\t}\n #trustoo-allinone .form-submit[disabled]{background-color:${(0,r.hexToRgba)(t.review_button_background_color,.4)} !important}\n\t\t.trustoo-write-review,#success-window{\n\t\t\t--write-bg:${t.popup_bg_color};\n\t\t\tbackground: ${t.popup_bg_color};\n\t\t\tborder-radius: ${t.popup_radius}px;\n\t\t\tcolor:${t.text_color}\n\t\t}\n\t\t#trustoo-allinone.trustoo-write-review .vstar-star{\n\t\t\t--star-color: ${t.star_color};\n\t\t}\n\t\t.trustoo-widget .window-discount,.trustoo-widget .slide-discount{\n\t\t\tbackground:${t.discount_bg_color};\n\t\t\tborder-radius: ${t.discount_card_radius}px;\n\t\t}\n `;const R=function(t,e){let i,n,s=`\n
\n\t\t
${e.name}
\n \n
\n
`;return i=1===t.require_email?"require":"",n=1===t.show_email?"":"hidden",s+=``,i=1===t.require_phone?"require":"",n=1===t.show_phone?"":"hidden",s+=`
\n\t
${e.phone}
\n \n
`,s}(t,s);e='
\n
';const q=t.discount_setting;if(1==q.discount_for_photo_reviews&&q.discount_value&&(1===q.discount_for_reviews_form||2===q.discount_for_reviews_form&&"undefined"!=typeof isEmailWrite)){const t=n.A.lang.all_in_one_from.discount_setting;for(let e in t)t[e]=t[e].replace("{{Discount_amount}}",q.discount_value);let e="";1===q.discount_incentive_conditions?e=t.tip_3:2===q.discount_incentive_conditions&&(e=t.tip_1),i=`
${e}
`}let S=`\n
\n
\n
\n ${s.all_in_one_from.write_reviews}\n
`,k="";a&&(k=`
`);let E=`
\n\t
${n.A.lang.you_rating}
\n\t
\n\t${(0,o.getTotalStarString)(0)} \n\t
\n\n
`,T="",L="";1===t.write_review_form&&(L=1===t.enabled_add_video?` \n
${s.all_in_one_from.or}
\n
\n \n +\n ${s.all_in_one_from.add_video}\n 0/1\n
\n `:"",T=`
\n\t\t\t\t
\n\t\t\t\t\t\t\n\t\t\t\t\t\t+\n\t\t\t\t\t\t${s.add_photo}\n\t\t\t\t\t\t0/5\n\t\t\t\t
\n\t\t\t\t${L}\n\t\t\t
`);const I=1===t.show_title?`
\n\t
${s.all_in_one_from.title}
\n \n
`:"",P=1===t.require_feedback?"require":"",D=1===t.show_feedback?"":"hidden";let M=`
\n\t\t${I}\n\t\t${``}\n\t\t${T}\n\t\t${R}\n\t\t${i}\n\t\t
${h.publish_title}
\n \n
`,O=`
${k}
`,B="";_||(B=``);let H=`
\n
${S+O+E+M+B}
`;if((0,r.$dqs)("#trustoo-mask").insertAdjacentHTML("beforeEnd",H),p=(0,r.$dqs)("#trustoo-allinone"),d=(0,r.$dqs)(".tt-image-uploader",p),1===t.show_feedback&&((0,r.$dqs)("textarea",p).style.fontFamily=window.getComputedStyle((0,r.$dqs)("input",p)).fontFamily),u){let t=(0,r.$dqs)(".product-right");u.length>100?t.innerHTML=u.substring(0,100)+"...":t.innerHTML=u}!function(t){t.addEventListener("touchmove",(t=>{t.stopPropagation()}),!1),(0,r.$dqs)(".window-close",t).onclick=function(){b(),n.A.isMobile&&window.history.replaceState({},document.title,window.location.href.replace("#tt-write-reviews-open","")),x()},n.A.productImages&&(0,r.imgLoad)(n.A.productImages).then((e=>{const i=e.width,n=e.height,s=(0,r.$dqs)(".product-image",t);s.style.backgroundSize=i>=n?"auto 100%":"100% auto"}));let e=(0,r.$dqsa)(".star-item",t);y(n.A.ratingVal);for(let t=1;t<=e.length;t++)e[t-1].index=t,n.A.isMobile?e[t-1].onclick=function(){n.A.ratingVal=this.index,y(this.index),C()}:(e[t-1].onmouseover=function(){y(this.index)},e[t-1].onclick=function(){n.A.ratingVal=this.index,C()});n.A.isMobile||((0,r.$dqs)(".tt-write-rating .vstar-star",t).onmouseleave=function(){y(0)});let i=(0,r.$dqsa)(".user-input",t);const s=n.A.lang;if(n.A.isMobile){let e=(0,r.getMobileSystem)();"ios"===e&&(t.style.paddingBottom="70px");let i=window.getComputedStyle(t).getPropertyValue("height"),n=function(){"android"==e&&((0,r.$dqs)("#trustoo-allinone").style.overflow="hidden");let n=setInterval((()=>{window.getComputedStyle(t).getPropertyValue("height")!=i&&("android"==e&&((0,r.$dqs)("#trustoo-allinone").style.overflow="scroll",(0,r.$dqs)("#trustoo-allinone").scrollTop=230),clearInterval(n))}),200)};(0,r.$dqsa)("#trustoo-allinone .user-input").forEach((t=>t.addEventListener("click",n))),(0,r.$dqsa)("#trustoo-allinone .user-input").forEach((t=>t.addEventListener("focus",n)))}const o=(0,r.$dqs)(".upload-area",t);o&&(o.onclick=e=>{if(["tt-delete_image","hover-image","image-delete tt-mobile_delete_image"].includes(e.target.className)){const i=e.target.closest(".uploaded-item");let s=i.dataset.name,o=n.A.mediaUrl.findIndex((t=>t.name==s));n.A.mediaUrl.splice(o,1),i.remove(),"image"===i.dataset.type?(n.A.imgUploadedCount===v&&f(1),n.A.imgUploadedCount--):"video"===i.dataset.type&&f(3),(0,r.$dqs)(".images-num",t).innerHTML=`${n.A.imgUploadedCount}/5`}});i.forEach((t=>{t.onblur=function(){let t=this.parentNode.nextElementSibling;""==this.value&&this.classList.contains("require")&&(t.innerHTML=`
${s.required}\n
`,t.classList.add("display"),this.classList.add("error-border"))},t.addEventListener("input",(function(){const t=this.parentNode.nextElementSibling;if(t.innerHTML="",t.classList.remove("display"),this.classList.remove("error-border"),this.parentNode.classList.contains("email-area")){!/^[a-zA-Z0-9_-]+(\.[A-Za-z0-9_-]+)*@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/.test(this.value)&&this.value?(t.innerHTML=`
${s.email_error}\n
`,t.classList.add("display"),this.classList.add("error-border")):this.value||(t.innerHTML="",t.classList.remove("display"),this.classList.remove("error-border"))}else this.classList.contains("big-input")&&function(){let t=(0,r.$dqs)(".big-input").value.length;(0,r.$dqs)("#trustoo-allinone .feedback-count>span").textContent=t+"/"+n.A.newRevCharLimit}();g()}))})),d&&((0,r.$dqs)("input",d).onchange=function(){w(this.files,"image").then((()=>this.value="")).catch((()=>{}))});c=(0,r.$dqs)(".tt-video-uploader .upload-input",t),c&&(c.onchange=function(){const t=this.files[0],e=this.getAttribute("accept").split(",").map((t=>t.slice(1))),i=t.name.split(".").pop();if(!e.includes(i.toLowerCase()))return(0,r.setToast)(n.A.lang.error_tip),!1;if(parseInt(t.size/1048576)>=200)return(0,r.setToast)("The file cannot exceed 200MB"),!1;f(4),w(this.files,"video").then((()=>this.value=""))});(0,r.$dqs)(".form-submit",t).onclick=function(){this.setAttribute("disabled",!0),this.innerHTML=`${s.submitting}`;let t=12;n.A.isMobile&&(t=20),(0,r.setLoading)(this,t),this.setAttribute("disabled",!0),m()}}(p),n.A.isLinkReqRev&&(document.body.classList.add("trustoo-open"),(0,r.$dqs)("#trustoo-mask").style.display="flex",(0,r.$dqs)(".trustoo-write-review").style.display="block")}async function w(t,e){const{mediaUrl:i}=n.A;let o=!1,a=(0,r.$dqsa)(".uploaded-item[data-type=image]").length,d=(0,r.$dqs)(".tt-uploader"),c=t.length,g="";if("image"===e&&!Object.keys(n.A.uploadImgInfo).length){const t=await s.zG.getPolicyToken();n.A.uploadImgInfo=t[1]}t.length+a>=5&&"image"===e&&(c=5-a,f(2));for(let a=0;a{let e=t[1].name;null===t[0]?((0,r.$dqs)(`.uploaded-item[data-name="${e}"]>.loader`).remove(),0===(0,r.$dqsa)(".uploaded-item>.loader").length&&C(),i.push({name:e,url:"https://img.trustoo.io/"+t[1].key,resource_type:1})):(n.A.imgUploadedCount===v&&f(1),n.A.imgUploadedCount--,(0,r.$dqs)(`.uploaded-item[data-name="${e}"]`).remove(),(0,r.$dqs)(".images-num").innerHTML=`${n.A.imgUploadedCount}/5`,(0,r.setToast)("Failed to upload image"))})),u=1):"video"===e&&(u=2,s.zG.getUploadVideoUrl().then((t=>{const{upload_url:e,domain:i}=t[1],o=t[1].video_service_uid;s.zG.uploadVideo(e,A).then((()=>{const t=i+"/"+o,e=t+"/thumbnails/thumbnail.jpg";n.A.mediaUrl.push({url:t+"/iframe",resource_type:2});const s=(0,r.$dqs)(".uploaded-item[data-type=video]",p),a=new Image;a.onload=()=>{s.insertAdjacentHTML("afterbegin",l.A.video)},a.src=e,s.style.backgroundImage=`url(${e})`,R(s,e,(()=>{s.classList.remove("uploading"),(0,r.$dqs)(".loader",s).remove(),C()}))})).catch((()=>{h()}))})).catch((()=>{h()})));let w=document.createElement("div");if(w.className="uploaded-item",w.setAttribute("data-type",e),"image"===e?(g&&w.setAttribute("data-name",g),(0,r.$dqs)(".tt-image-uploader .images-num").innerHTML=`${n.A.imgUploadedCount}/5`,R(w,c)):"video"===e&&w.classList.add("uploading"),w.innerHTML='
\n
\n
\n ',d.before(w),(0,r.setLoading)(w,24),o||(o=!0,C()),n.A.isMobile){let t=document.createElement("div");t.className="image-delete tt-mobile_delete_image",w.appendChild(t)}}}function h(){(0,r.$dqs)(".uploaded-item[data-type=video]",p).remove(),f(3),(0,r.setToast)(n.A.lang.error_tip),c.value=""}function f(t){switch(t){case 1:d.style.display="flex";break;case 2:d.style.display="none";break;case 3:(0,r.$dqsa)(".tt-video-uploader,.upload-or",p).forEach((t=>t.style.display="flex"));break;case 4:(0,r.$dqsa)(".tt-video-uploader,.upload-or",p).forEach((t=>t.style.display="none"))}}function m(){if(n.A.isSendLock)return void(0,r.setToast)("Please comment again after 15 seconds");let t=0,e="";t=p.getAttribute("write-qa")?2:1,1===t?e=".inline:not([hidden]) .user-input":2===t&&(e='.user-input:not([input-type="author_phone"],[input-type="title"])');let i=null;const o={};var a=Array.from((0,r.$dqsa)(e));if(1===t)i=s.zG.uploadReview,a.forEach((t=>{const e=t.getAttribute("input-type");t.value&&(o[e]=t.value)})),n.A.isLinkReqRev?"undefined"==typeof isEmailWrite&&(o.review_source=1):o.review_source=0,n.A.ip&&(o.ip=n.A.ip,o.author_country=n.A.loc);else if(2===t){i=s.nj.addQA;const t=["question","questioner","questioner_email"];a.forEach(((e,i)=>{o[t[i]]=e.value})),o.questioner_country=n.A.loc,(0,r.$dqs)("#tt-qa-unpublish").checked&&(o.is_publish=3)}i(o,u,n.A.mediaUrl).then((e=>{if(null===e[0]){const i=e[1],s=n.A.lang;_(),b(),document.body.classList.add("trustoo-open"),(0,r.$dqs)("#trustoo-allinone").style.display="none";const o=(0,r.$dqs)("#success-window");o.style.display="block";const a=(0,r.$dqs)(".window-title",o),l=(0,r.$dqs)(".window-content",o);if(1===t?(a.textContent=s.success_message,l.textContent=s.submitted_successfully):2===t&&(a.textContent=s.question_and_answer.thanks,l.textContent=s.question_and_answer.submitted),i&&i.discount_code&&1===t){const t=n.A.lang.all_in_one_from.discount_setting;(0,r.$dqs)(".window-discount",o).style.display="flex",a.textContent=t.title,a.style.marginTop="0",(0,r.$dqs)(".window-content",o).textContent=t.subtitle,(0,r.$dqs)(".discount-code",o).textContent=i.discount_code}n.A.isLinkReqRev&&(window.history.replaceState({},"",location.href.replace("?req=review","")),n.A.isLinkReqRev=!1),n.A.isSendLock=!0,setTimeout((()=>n.A.isSendLock=!1),1500)}else{_();let t="";t=-2===e[0].code?e[0].error:n.A.lang.error_tip,(0,r.setToast)(t,"1%")}})).catch((()=>{_(),(0,r.setToast)(`${n.A.lang.error_tip}`,"1%")}))}function _(){const{lang:t}=n.A;let e=(0,r.$dqs)(".form-submit");e.innerHTML=`${t.submit}`,e.removeAttribute("disabled")}function b(){Object.assign(n.A,{imgUploadedCount:0,uploadedIndex:0,mediaUrl:[]}),p.removeAttribute("write-review"),p.removeAttribute("write-qa"),(0,r.$dqsa)(".user-input",p).forEach((t=>t.value="")),(0,r.$dqsa)(".error-tip",p).forEach((t=>t.innerHTML=""));let t=(0,r.$dqsa)(".error-border",p);t.length&&t.forEach((t=>t.classList.remove("error-border"))),1===n.A.writeForm&&((0,r.$dqsa)(".uploaded-item",p).forEach((t=>t.remove())),(0,r.$dqs)(".tt-image-uploader .images-num",p).innerText="0/5",2===u&&((0,r.$dqs)(".tt-video-uploader .images-num",p).innerText="0/1"),(0,r.$dqsa)(".tt-uploader,.upload-or",p).forEach((t=>t.style.display="flex")));const e=(0,r.$dqs)(".feedback-count>span",p);e&&(e.textContent="0/"+n.A.newRevCharLimit);(0,r.$dqs)(".form-submit",p).setAttribute("disabled",!0),n.A.ratingVal=0,y(0)}function y(t){let e=(0,r.$dqsa)("#trustoo-allinone .star-item"),i=t||n.A.ratingVal;for(let t=0;t{t.value||"none"===t.parentNode.style.display||(a=!1)}));let l=0===(0,r.$dqsa)(".uploaded-item>.loader",t).length;a&&l&&0==(0,r.$dqsa)(".input-tip",t).length&&(1!==e||0!==n.A.ratingVal)?o.removeAttribute("disabled"):o.setAttribute("disabled",!0)}function $(){const{lang:t}=n.A;let e=`\n
\n ${t.success_message}\n
`;(0,r.imgLoad)("https://cdn.vstar.app/static/images/Vector.png");let i="",s=`
${t.submitted_successfully}
`,o=`
`;i=``;let a=`
${'
'+e+s+i+o}
`;(0,r.$dqs)("#trustoo-mask").insertAdjacentHTML("beforeend",a);const l=(0,r.$dqs)("#success-window");(0,r.$dqs)("#success-window .window-close").onclick=x,(0,r.$dqs)(".window-button button",l).onclick=x,(0,r.$dqs)(".discount-copy",l).onclick=function(){(0,r.copyToClipboard)((0,r.$dqs)(".discount-code",l).textContent,(()=>{(0,r.setToast)(n.A.copyText)}))}}function x(){const t=(0,r.$dqs)("#success-window");(0,r.$dqsa)(".window-discount",t).forEach((t=>t.style.display="none")),(0,r.$dqs)(".window-title",t).style.cssText="",(0,r.$dqs)("#trustoo-mask").style.display="none",(0,r.$dqs)("#trustoo-allinone").style.display="none",t.style.display="none",document.body.classList.remove("trustoo-open"),window.removeEventListener("hashchange",a.FP)}function R(t,e,i){(0,r.imgLoad)(e).then((n=>{i&&i(),n.width>=n.height?t.style.backgroundSize="100% auto":t.style.backgroundSize="auto 100%",t.style.backgroundImage=`url(${e})`})).catch((()=>{i&&(i(),t.style.backgroundImage="url(../../images/video_default.png)")}))}},605:(t,e,i)=>{i.d(e,{D:()=>u});var n=i(957),s=i(357),o=i(986),r=i(571),a=i(638);let l=0,d=0,c=0,p=null;async function u(t=null){l=0;let e=null,i="afterend";const u=(0,o.$dqs)("#trustoo-buyers-show-widget");if(!t)if("undefined"==typeof vstar_buyers_show_settings||r.A.isSettingUpdate){e=(await n.zG.getBuyerShowsSettings())[1]}else e=vstar_buyers_show_settings;if(!(e&&1===e.is_activated||u||t))return;if(!t)if(r.A.bsInsertSelector)p=(0,o.$dqs)(r.A.bsInsertSelector);else if(u)p=u,i="afterbegin";else if(null!==(0,o.$dqs)("product-form.product-form")||[1499,1567,1356,1363,1368,1434,887,1500,1431,1841,1891].includes(r.A.theme_store_id))p=(0,o.$dqs)("product-form.product-form").parentNode;else{let t="";switch(r.A.theme_store_id){case 829:t=".product__form-wrapper";break;case 775:case 796:case 578:t="form.product-form";break;case 730:t="form.product-single__form";break;case 679:t="form.addToCartForm";break;case 380:t="form.product-form--wide";break;default:t="warehouse"===Review.theme.name?"form.product-form":"Tema-plano-ouro-ldo"===Review.theme.name?".product-form__payment-container":"form[id^=AddToCartForm],form.product-form,product-form.product-form,form[id^=product_form]"}p=t&&(0,o.$dqs)(t)?(0,o.$dqs)(t):(0,o.$dqs)(".product-form")}if(!p&&!t)return void(Review.buyersShowTip="买家秀嵌入失败");l++;const v=document.createElement("style");document.head.appendChild(v),r.A.is=v,t||(c=e.columns_count*e.rows_count,r.A.insHoverColor=e.hover_text_color,r.A.buyersShowType=2===e.reviews_type?1:2);const g=t?r.A.albumSortType:"image-descending";let A="trustoo_show_reviews";t&&(A=r.A.isWdoRevOpen?"trustoo_album_reviews":"trustoo_album_all_reviews");const w=await async function(t,e){let i=r.A.buyersShowType;"trustoo_album_reviews"===e||"trustoo_album_all_reviews"===e?(d=r.A.albumCount,i=2):"trustoo_show_reviews"===e&&(d=c);const a=await n.zG.getProRevList(t,0,l,d,i,!0),p=a[1];r.A.lastPageSize||(r.A.lastPageSize=p.count%d,r.A.total_page=p.total_page);const u=p.list,v=JSON.parse((0,o.gsSession)("get","tt_detail_reviews"));v[e]?v[e].push(u):v[e]=[u];(0,o.gsSession)("set","tt_detail_reviews",JSON.stringify(v)),1===l&&(r.A.insPageCount=p.total_page);let g="";return u.forEach(((t,e)=>{const i=t.resources[0];if(0===t.resources.length||!i.src&&!i.thumb_src)return;const n=2===i.resource_type?i.thumb_src:i.src,o=l-1+"-"+e,r=2===i.resource_type?`
${s.A.video}
`:"";g+=`
\n
\n\t\t\t${r}\n
\n
`})),g}(g,A);if(""===w)return;let h=null;if(t)h=t;else{const t=(0,o.$dqs)("#tt-bs-area");t&&t.remove();const e=``;p.insertAdjacentHTML(i,e),h=(0,o.$dqs)("#tt-bs-area")}if(w?(h.insertAdjacentHTML("beforeend",`
${w}
`),r.A.isInsertBS=!0,(0,a.insertReviewDetail)(),(0,o.$dqs)("#tt-bs-list",h).onclick=e=>{const i=e.target.closest(".review-item");if(i){const[e,n]=i.getAttribute("index").split("-"),s=JSON.parse((0,o.gsSession)("get","tt_detail_reviews"))[A];(0,a.processRecordedData)("reviews_click"),TTRevDetail.showTTReviewDetail(r.A,"",s[e][n],t?"trustoo_album_reviews":"trustoo_buyers_show")}}):r.A.isNoPost=!0,t)v.textContent+=`\n #vstar-reviews .tt-reviews-album .review-item{border-radius:${r.A.userSetting.album_radius}px;}\n `;else{const t=1/e.columns_count*100+"%";v.textContent+=`\n \t#tt-bs-area .tt-bs-title{color:${e.title_text_color};font-size:${e.title_font_size}px;text-align:${e.title_align}}\n #tt-bs-area .tt-wrapper{flex-basis:${t};padding:${e.item_padding}px;}\n #tt-bs-area .review-item{border-radius:${e.border_radius}px;}\n `,(0,o.$dqs)("#tt-bs-area").style.display="block"}}},405:(t,e,i)=>{i.d(e,{a:()=>r,i:()=>o});var n=i(357),s=i(571);function o(t,e="beforeend",i=5,o,a,l=""){this.pageCount=o,this.callback=a,this.activeIndex=0,this.middleIndex=parseInt(i/2);const{userSetting:d,isWdoRevOpen:c}=s.A,p=c?s.A.wdoRevDom:s.A.reviewsDom,u=n.A.prePage(d.font_color),v=n.A.nextPage(d.font_color),g=t.parentNode.classList.contains("trustoo-rtl");for(var A=`
    \n `,w=1;w<=i;w++)A+=`
  • ${w}
  • `;if(A+=`
  • \n ${g?u:v}\n
  • \n
`,t.insertAdjacentHTML(e,A),this.el=p.querySelector(`.page-control[type="${l}"]`),this.pager=this.el.querySelectorAll(".page-control-item"),o<5&&1!==o)for(w=o;w<5;w++)this.pager[w].style.display="none";setTimeout((()=>{1===o&&this.togglePageButton(2)}),0),this.pager.forEach((t=>{t.onclick=()=>{this.activeIndex=t.getAttribute("index");let e=parseInt(t.textContent);this.pageClick(a,e)}})),this.pageClick=function(t,e){let i=this.el.querySelector(".page-control-item.active").textContent;const n=this.pageCount;r(3,e),t?t():this.activeIndex=0,(1==i&&1!=e||1!=i&&1==e)&&this.togglePageButton(1),(i!=n&&e==n||i==n&&e!=n)&&this.togglePageButton(2),this.setPageNum()};var h=this.el.querySelector(".pre-page"),f=this.el.querySelector(".next-page");this.togglePageButton=function(t){1==t?"none"===h.style.display?h.style.display="flex":h.style.display="none":2==t&&("none"===f.style.display?f.style.display="flex":f.style.display="none")},this.setPageNum=function(){let t=r();const e=this.pageCount;this.activeIndex>this.middleIndex&&this.pager[i-1].innerHTML<=e||this.activeIndex1?(t+this.middleIndex>e||t-this.middleIndex<=0?this.el.querySelector(".page-control-item.active").classList.remove("active"):this.activeIndex!=this.middleIndex&&(this.el.querySelector(".page-control-item.active").classList.remove("active"),this.activeIndex=this.middleIndex,this.pager[this.middleIndex].classList.add("active")),this.changePageNum()):(this.el.querySelector(".page-control-item.active").classList.remove("active"),this.pager[this.activeIndex].classList.add("active"))},this.getNextPageReviews=function(){r(1);const t=this.pageCount;let e=r();this.activeIndex++,2==e&&this.togglePageButton(1),e==t&&this.togglePageButton(2),a&&a(),this.setPageNum(2)},this.getPrePageReviews=function(){const t=this.pageCount;this.activeIndex--,r(2);let e=r();1==e&&this.togglePageButton(1),e==t-1&&this.togglePageButton(2),a&&a(),this.setPageNum(1)},f.onclick=()=>this.getNextPageReviews(),h.onclick=()=>this.getPrePageReviews(),this.changePageNum=function(){const t=this.pageCount;let e=r();var n=!1,s=e-this.middleIndex,o=e+this.middleIndex;e+this.middleIndex>t?(n=!0,s=t-2*this.middleIndex,i%2==0&&s++,o=t):i%2==0&&o--,s<=0&&(n=!0,o=(s=1)+2*this.middleIndex);for(var a=0,l=s;l<=o;l++)l===e&&n&&(this.pager[a].classList.add("active"),this.activeIndex=a),this.pager[a].innerHTML=l,a++}}function r(t,e){let i=s.A.isWdoRevOpen?s.A.wdoRevDom:s.A.reviewsDom;const n=1===s.A.showType?"reviews-page-no":"qa-page-no";let o=parseInt(i.getAttribute(n));return 1===arguments.length?(1===t?o++:2===t&&o--,i.setAttribute(n,o)):3===t&&2===arguments.length&&i.setAttribute(n,e),o}},742:(t,e,i)=>{i.d(e,{WC:()=>F,Gs:()=>H,FP:()=>G,E7:()=>J,Al:()=>Z,mR:()=>Q});var n=i(571),s=i(638),o=i(986);let r,a=0,l=0;r=n.A.isMobile?18:16;let d=!1;function c(t,e){const{isWdoRevOpen:i}=n.A;const s=(i?n.A.wdoRev:n.A.reviews).columnHighs,a=i?n.A.wdoRevBody:n.A.reviewsBody,l=(0,o.$dqs)(".tt-review-list",a),d=(0,o.$dqs)(`[no="${e}"]`,a);var c=parseInt(d.style.top),p=d.offsetHeight+c+r;const u=t+"column's hight updates,hight is "+p;Review.checkGridHighMsg.push(u),p>s[t-1]&&(s[t-1]=p);let v=(0,o.$dqsa)(`.column${t}`,a);v.forEach(((i,n)=>{parseInt(i.getAttribute("no"))>e&&(i.style.top=p+"px",p=p+i.offsetHeight+r),n===v.length-1&&(s[t-1]=p)}));let g=30;n.A.isMobile&&(g=0);var A=Math.max.apply(null,s);l.style.height=A+g+"px"}function p(t=[],e,i=!1){const{isWdoRevOpen:s}=n.A,a=n.A.isWdoRevOpen?n.A.wdoRev:n.A.reviews,p=a.columnHighs,w=s?n.A.wdoRevBody:n.A.reviewsBody,h=(0,o.$dqs)(".tt-review-list",w);if(!s&&"none"===w.offsetParent)return;if(l=e,i)for(let t=0;t{const e=(0,o.$dqs)(".resource-item",t);if(null!==e){const t=e.getAttribute("proportion");e.style.width=f+"px",(0,o.$dqs)("img",e).width=f,e.style.height=f/t+"px",(0,o.$dqs)("img",e).height="auto"}})),g(h,t),d=t.length<=p.length&&n.A.isFirstPageRender,n.A.isCssLoaded&&setTimeout((()=>{!function(t,e=!1){const i={highMsg:[]};let s=n.A.isWdoRevOpen?n.A.wdoRev:n.A.reviews;const a=s.preColHighs,p=a.length;if(i.loadedStyleCheck=e,0===p){if(e)return;u()}else for(let e=0;e{t.getAttribute("no")>l&&o.push(t)})),0===o.length)continue;n=t+o[0].offsetHeight+r;for(let t=1;t{t.removeAttribute("style"),t.removeAttribute("new-grid-img")}));const s=Array.from((0,o.$dqsa)(".grid-review",e));v(i,s),g(i,s)}function v(t,e){const{isWdoRevOpen:i}=n.A,s=i?n.A.wdoRev:n.A.reviews,r=window.getComputedStyle(t);let a=parseInt(r.width);Review.reviewsWidth=a;const l=function(t,e){const i=n.A.isWdoRevOpen?n.A.wdoRev:n.A.reviews;let s=0,r=0;t>=280&&t<501?s=2:t>=501&&t<920?s=3:t>=920&&t<1150?s=4:t>=1150&&t<1420?s=5:t>=1420&&(s=6);n.A.isMobile||(2===s||3===s?((0,o.$dqsa)(".reviews-date",e).forEach((t=>t.style.cssText="position: static;")),(0,o.$dqsa)(".grid-mobile",e).forEach((t=>t.style.cssText="margin-top: 10px;"))):s>0&&((0,o.$dqsa)(".reviews-date",e).forEach((t=>t.style.cssText="")),(0,o.$dqsa)(".grid-mobile",e).forEach((t=>t.style.cssText=""))));return i.cardWid=(t-(12*(s-1)+r))/s,s}(a,t),d=s.columnHighs;d.length=0;for(let t=0;tt));for(var l=0;le===t)),o[d]=o[d]+e[l].offsetHeight+r;const i=e[l].querySelector(".display-text");i&&i.setAttribute("index",d+1),e[l].className=`grid-review column${d+1}`,e[l].style.left=d*(s.cardWid+12)+a+"px",e[l].style.top=t+"px",n.A.minHeight=t}var c=Math.max.apply(null,o);let p="";p=n.A.isMobile?`${c}px`:`${c+30}px`,t.style.height=p}function A(t,e){t.forEach((t=>{t.style.width=e+"px",(0,o.$dqs)("img",t)&&((0,o.$dqs)("img",t).width=e)}))}n.A.arrangeGrid=u;var w=i(405),h=i(134),f=i(220),m=i(778),_=i(357),b=i(957);async function y(t,e){n.A.couldPreLoading=!1,n.A.imgCount=0,n.A.loadedImgCount=0,n.A.thumbImg=[];let i,s,r=[];const{isMixReview:a,isWdoRevOpen:l,isList:d,userSetting:c,isRevPage:p}=n.A;let u=(0,w.a)();const v=c.review_pagination_type;s=l?n.A.wdoRevDom:n.A.reviewsDom;const g=l?n.A.wdoRevBody:n.A.reviewsBody,A=n.A.isWdoRevOpen?n.A.wdoRev:n.A.reviews,h=l?"trustoo_all_reviews":"trustoo_reviews",f=t||e;f?(r=[],(0,o.gsSession)("set",h,[])):r=(0,o.gsSession)("get",h);const m=(0,o.$dqs)(".tt-review-list",g);(!p&&!l&&(1===v||f)||f&&(a||l))&&(m.style.height="auto",q(m,s,!0),A.cardCount=0,n.A.isMobile&&l&&(0,o.scrollTo)(s),n.A.isFirstPageRender||(n.A.isList?(0,o.scrollTo)(s):(0,o.scrollTo)(s,"auto")));if(1===v&&r[u-1])C(r[u-1]);else{const t=s.getAttribute("review_sort_by");if("undefined"==typeof vstar_product_reviews||n.A.isReviewsUpdate||1!==u||l||f||a||1===c.auto_switch_language){i=(await b.zG.getProRevList(t,A.ratingFilter))[1]}else i=vstar_product_reviews;const d=i.page.total_page;if(s.getAttribute("review-page-count")||((n.A.isMixReview||n.A.isWdoRevOpen)&&(n.A.allRatingData=i.total_rating,null===n.A.allRatingData&&(s.innerHTML="")),function(t,e){const{lang:i,isRevPage:s,isWdoRevOpen:r,isGrid:a,userSetting:l}=n.A,d=l.review_pagination_type;if(1!==d||r||s){if(2===d&&e>1&&!s&&!r){const e=``;(0,o.$dqs)("#reviews-footer",t).insertAdjacentHTML("beforeend",e),(0,o.$dqs)(".more-review-btn",t).onclick=function(t){t.target.style.display="none",(0,o.$dqs)(".loader",t.target.parentNode).style.display="block",(0,w.a)(1),y()}}}else if(e>1){let i=new w.i((0,o.$dqs)("#reviews-footer",t),"beforeend",5,e,y,"reviews");r?n.A.wdoPager=i:n.A.pager=i}}(s,d)),s.setAttribute("review-page-count",d),a||l){if(0===i.page.count)return s.parentNode.style.display="block",void s.insertAdjacentHTML("beforeend",'
There are no reviews yet
');{const t=(0,o.$dqs)(".no-review-tip",s);t&&t.remove()}}n.A.isWebPSupported||i.list.forEach((t=>{0!==t.resources.length&&t.resources.forEach((t=>{t.src=t.src.replace("trustoo_big","q_90"),t.thumb_src=t.thumb_src.replace("trustoo_small","w_220")}))}));const p=i.list;r[u-1]=p,(0,o.gsSession)("set",h,r),f&&1===v&&n.A.pager&&n.A.pager.pageClick(null,1),C(p,f,e)}}function C(t,e,i){const{userSetting:r,isRevPage:a,isWdoRevOpen:l,isGrid:d,isSplit:c,globalStyle:u}=n.A,{isShowRevRatingNum:v,isImgLoadLazy:g}=h.A,A=l?n.A.wdoRev:n.A.reviews,f=l?n.A.wdoRevBody:n.A.reviewsBody,m=f.parentNode;let b=[];const y=r.review_pagination_type,C=(0,w.a)(),R=(0,o.$dqs)(".tt-review-list",f);v&&1===(0,w.a)()&&(u.innerHTML+="#vstar-reviews .star{display:flex;align-items:center}\n #vstar-reviews .rev-rating-num{font-size:15px;margin-left:8px}");let k="";g&&(k='loading="lazy"');let E="";d&&(E='style="visibility:hidden"');const T=A.cardCount;let L=A.cardCount,I="";if(c&&(I=" split"),t.forEach((t=>{let e="";e=`no="${++L}"`,Object.assign(t,{imgAttr:k,cardCount:L,noText:e,styleText:E});const i=document.createElement("div");if(i.className=n.A.layoutClass+"review"+I,i.innerHTML=function(t){const{isMobile:e,layoutClass:i,userSetting:r,origImg:a,thumbImg:l,isGrid:d,isList:c,isSplit:p,lang:u}=n.A,{isShowRevVerified:v,isAddRevVrfy:g,isShowRevRatingNum:A}=h.A,{noText:w,imgAttr:f}=t;let m="",b="",y="",C="",$="",R="",q="",k="",E="",T="",L="",I="",P="",D="";const M=1===n.A.userSetting.customer_avatar,O=`
${(0,s.getTotalStarString)(t.star)} ${$}
`;if(t.resources.forEach(((t,e)=>{let i=2===t.resource_type?`
\n ${_.A.video}\n
`:"",s="";if(1===t.resource_type?s=t.src:2===t.resource_type&&(s=t.thumb_src),d){const o=(t.width/t.height).toFixed(2);if(0==e){let r="";""!==t.average_hue&&(r=`background-color:${t.average_hue}`),T+=`
\n ${e}\n ${i}\n
`,n.A.imgCount++,l.push(t.thumb_src)}else T+=`
\n\t\t\t\t${e}
`;a.push(t.src)}else c&&(L+=function(t,e,i,s,o){const{origImg:r,thumbImg:a}=n.A;let l="";return l+=`
${s}\n ${o}\n
`,n.A.imgCount++,a.push(t.thumb_src),r.push(t.src),l}(t,f,w,e,i))})),0!==t.resources.length){let e="";t.resources.length>1&&(e=`
${_.A.multiPhoto()}
`),d?T=`${e}
${T}
`:c&&(L=`
${L}
`)}A&&($=t.star);const B=n.A.badgeIconSvg,H=`${u.verified_purchase}`,N=r.is_show_verified_badge;let F="";g&&(t.verified_badge=1);if(v&&1===t.verified_badge)if(1===N){const t=M?"":B;R=`
\n ${t}${H}
\n `}else 2===N||3!==N||M||(F=B);let W="";const j=5;W=r.review_date_format_type===j?S(t.commented_at):x(t.commented_at,r.review_date_format_type);const z=W?`${W}`:"";d&&e&&(C=z);if(M){const e=[1,3].includes(r.is_show_verified_badge)&&1===t.verified_badge?B:"";D=`
${(t.author.trim()?t.author.split(" ").reduce(((t,e)=>t+e.charAt(0)),""):"A").slice(0,2)}${e}
`}var U="";const G=``,V=` ${t.author_country}`,Z=r.is_show_country_flag;1==Z?U=G+V:3==Z?U=G:4==Z&&(U=V);e&&d?b=U:y=U;h.A.isNoEllipsisReviews?I=t.content:d?I=t.content.length>200&&!e||t.content.length>100&&e?function(t,e){let i=200;n.A.isMobile&&(i=100);i-=n.A.lang.show_full_review.length;let s=e?`cardNo="${e}"`:"";return`${t.substr(0,i)}...${n.A.lang.show_full_review}`}(t.content,t.cardCount):t.content:c&&(I="");1===n.A.userSetting.item_type&&t.item_type&&(q=`
\n\t\t\t

\n\t\t\t\t${u.item_type}\n\t\t\t

\n\t\t\t

${t.item_type}

\n\t\t
`);const J=n.A.userSetting.store_avatar_src;if(""!==t.reply_content){const e=n.A.lang.shop_name.replace("{{shop_name}}",h.A.isShopNameBold?`${n.A.userSetting.store_name}`:n.A.userSetting.store_name);console.log("content",e,h.A.isShopNameBold),k=`
\n
\n\t\t\t\t\t\t${J?`
`:""}\n\t\t\t\t\t\t
${e}
\n\t\t\t\t\t
\n
${t.reply_content}
\n
`}if(1===n.A.userSetting.is_show_helpful){const e="tt_review_"+n.A.shop_id;let i=(0,o.gsLocal)("get",e),s="",r="";if(i){i=JSON.parse(i);const e=i.find((e=>e.id===t.id));e&&(1===e.likeType?s="active":2===e.likeType&&(r="active"))}P=`
${u.helpful}\n\t\t${_.A.helpful(s)}${t.likes_count}\n\t\t${_.A.unhelpful(r)}${t.dislike_count}
`}if(t.corresponding_product){const e=t.corresponding_product;let i=e.product_name;i.length>50&&(i=i.substr(0,50)+"..."),E=`\n \n
\n
${i}
\n
\n `}let Y="",Q="",X="",K="";p?(Y=O,X=z):(Q=O,K=z);const tt=t.title&&1==r.is_show_review_title?`
${t.title}
`:"";return`\n ${T} \n
\n
\n ${Q}${K}\n
\n
${C+b}
\n
\n\t\t\t\t\t\t${D}\n\t\t\t\t\t\t
\n ${t.author} \n ${F}\n ${y} \n ${R} \n ${m}\n\t\t\t\t\t\t\t
\n
\n\t\t\t\t\t\t${X}\n
\n
\n\t\t\t\t\t${Y}\n\t\t\t\t\t${tt}\n\t\t\t\t\t

\n\t\t\t\t\t\t\t${I}\n\t\t\t\t\t

\n ${L}\n ${q}\n ${k}\n\t\t\t\t\t${P}\n ${E}\n\n
\n `}(t),R.appendChild(i),i.setAttribute("no",L),i.setAttribute("review-id",t.id),b.push(i),d);else if(n.A.isList&&!h.A.isNoEllipsisReviews){!async function(t,e,i,s){var o=1.4*n.A.userSetting.font_size,r=i*o;await new Promise((t=>{setTimeout((()=>t()),200)}));var a=e;t.innerHTML=a;var l=a.length;let d="";if(t.offsetHeight<=r);else{for(var c,p=0,u=l;t.offsetHeight>r;)c=(p+u)/2,t.innerHTML=a.substring(0,c),t.offsetHeight<=r?(t.innerHTML=a.substring(0,u),p=c):u=c-1;d=a.substring(0,u-n.A.lang.show_full_review.length-10),t.innerHTML=d}if(d){let i=`...${n.A.lang.show_full_review}`;t.insertAdjacentHTML("beforeend",i)}}((0,o.$dqs)(".reviews-text",i),t.content,3)}})),A.cardCount=L,b.forEach((t=>{let e=[];e=(0,o.$dqsa)(".resource-item>img",t),0!==e.length&&(n.A.isGrid&&n.A.gridShowImgCount++,e.forEach((t=>{t.onload=function(){t.getAttribute("loaded")||(t.setAttribute("loaded",!0),$("success",this))},t.onerror=function(){if(!t.getAttribute("loaded")){t.setAttribute("loaded",!0);const e=t.closest(".resource-list");if(n.A.isGrid){const i=(0,o.$dqs)(".multi-photo-wrapper",e.parentNode);0==t.getAttribute("alt")&&(e.remove(),i&&i.remove())}else n.A.isList&&(t.parentNode.remove(),0===e.children.length&&e.remove());$("fail",this)}},t.src=t.getAttribute("data-original")})))})),1===C&&(n.A.isFirstPageRender||l||a))d&&p(b,T,e);else if(d){let t=!1;l||a||(t=1===y||e),p(b,T,t)}!function(t,e,i,s){const r=parseInt(e.getAttribute("review-page-count")),a=(0,o.$dqs)("#reviews-footer",e),l=(0,o.$dqs)(".loader",e);if("block"===l.style.display&&(l.style.display="none"),n.A.allRevLoadLock=!1,!n.A.isRevPage&&!n.A.isWdoRevOpen)if(1===t){if(s&&r>1){const t=(0,o.$dqsa)(".page-control-item",a);(0,o.$dqs)(".pre-page",a).style.display="none",(0,o.$dqs)(".next-page",a).style.display="flex";for(let e=0;e<5;e++){t[e].style.display=et.id===l)),w=t.nextElementSibling;r=d?2:1,d||-1!==A&&(r=3),s(a,r,l).then((e=>{if(e[0])return void(n.A.likeRevLock=!1);const i=(0,o.$dqs)(".active",c);i&&i.classList.remove("active"),d?(t.classList.remove("active"),-1!==A&&g.splice(A,1),w.textContent=parseInt(w.textContent)-1):(-1!==A&&g.splice(A,1),t.classList.add("active"),g.push({id:l,likeType:a}),w.textContent=parseInt(w.textContent)+1),3===r&&(1===a?u.textContent=parseInt(u.textContent)-1:2===a&&(p.textContent=parseInt(p.textContent)-1)),(0,o.gsLocal)("set",v,JSON.stringify(g)),setTimeout((()=>{n.A.likeRevLock=!1}),300)}))}function q(t,e,i){const n=(0,o.$dqs)("#tt-reviews-loading",t),s=(0,o.$dqs)(".page-control[type=reviews]",e);i?(!n&&(t.innerHTML='
\n\t
\n\t
\n\t
\n
'),s&&(s.style.display="none")):(n&&n.remove(),s&&(s.style.display="flex"))}function S(t){const e=new Date(t+"Z").getTime(),i=(new Date).getTime(),s=Math.floor((i-e)/1e3),o=3600,r=86400,a=2592e3,l=31536e3,d=n.A.lang.time_ago;let c="";return s<60?d.just:s{e.push(`--${t}:${i[n]};`)})),n.A.globalStyle.textContent+=`\n\t\t.tt-tabs-list{\n\t\t\t${e.slice(0,2).join("")}\n\t\t}\n\t\t.tt-qa-list{\n\t\t\t${e.slice(2).join("")}\n\t\t\t\t--author-font-size:${t.author_font_size}px;\n\t\t\t\t--content-font-size:${t.content_font_size}px;\n\t\t}\n\t\t`,I=t.review_date_format,D()}}async function D(){E||(0,o.$dqs)("#vstar-reviews #reviews-body,#vstar-noreviews").insertAdjacentHTML("beforeend",'
');const t=await b.nj.getList({limit:L});if(t[1]&&!E){E=!0;const e=n.A.reviewsDom;(0,o.$dqs)(".tt-qa-list",n.A.reviewsDom).addEventListener("click",(function(t){let e=t.target;"path"===e.tagName&&(e=e.closest("svg"));let i=e.classList;(i.contains("tt-helpful")||i.contains("tt-unhelpful"))&&R(e,i)}));const i=t[1].page.total_page;e.setAttribute("qa-page-count",i),i>1&&new w.i((0,o.$dqs)("#reviews-footer",e),"beforeend",5,i,D,"qa")}const e=t[1].list;let i="";e.length?e.forEach((t=>{let e="";if(t.qa_reply_data){let i="";if(1===T){const e="tt_qa_"+n.A.shop_id;let s=(0,o.gsLocal)("get",e),r="",a="";if(s){s=JSON.parse(s);const e=s.find((e=>e.id==t.id));e&&(1===e.likeType?r="active":2===e.likeType&&(a="active"))}i=`
${n.A.lang.question_and_answer.helpful}\n\t\t\t\t\t${_.A.helpful(r)}${t.qa_reply_data.likes_qa}\n\t\t\t\t\t${_.A.unhelpful(a)}${t.qa_reply_data.dislike_qa}
`}e=`
\n\t\t\t\t
\n\t\t\t\t\t${n.A.lang.shop_name.replace("{{shop_name}}",h.A.isShopNameBold?`${n.A.userSetting.store_name}`:n.A.userSetting.store_name)} \n\t\t\t\t\t${M(I,t.qa_reply_data.create_time)}\n\t\t\t\t
\n\t\t\t\t
${t.qa_reply_data.answer}
\n\t\t\t\t
\n\t\t\t\t\t${i}\n\t\t\t\t
\n\t\t\t
`}i+=`\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t${t.questioner}\n\t\t\t\t\t\t\t${M(I,t.create_time)}\n\t\t\t\t\t\t
\n\t\t\t\t\t
${t.question}
\n\t\t\t\t\t
\n\t\t\t\t\t${e}\n\t\t\t\t
\n\t\t\t\t`})):i=`
${_.A.qa(n.A.userSetting.font_color)}
${n.A.lang.no_questions}
`,(0,o.$dqs)(".tt-qa-list",n.A.reviewsDom).innerHTML=i}function M(t,e){return 5===t?S(e):x(e,t)}var O=i(154),B=i(45);async function H(t){const{revIdBase:e,isWdoRevOpen:i}=n.A;let r,a;const l=function(){var t="",e="";const{revIdBase:i,isWdoRevOpen:s}=n.A,{nextRevDesc:o}=h.A;let r="",a="",l="";["ar","he"].includes(Review.lang)&&(l=" trustoo-rtl");n.A.isWdoRevOpen||(l+=" pending");t=`
\n
`;const d=N();d&&(l+=" qa");let c="";o&&(c=`
${o}
`);var p='
\n
';e='';const u=s?"":"not-wdo-rev",v=n.A.isMixReview?"all-reviews":"",g=n.A.productId?`data-product-id="${n.A.productId}"`:"",A=`
\n
\n ${t+d+p+c+e}
\n
`;return A}();if(W(l,t.tarNode,t.position),t.tarNode&&i){let i=(0,o.$dqs)(`#${e}reviews`,t.tarNode),s=(0,o.$dqs)("#reviews-body",t.tarNode);r=i,a=s,Object.assign(n.A,{wdoRevDom:i,wdoRevBody:s})}else r=(0,o.$dqs)(`#${e}reviews`),a=(0,o.$dqs)("#reviews-body"),Object.assign(n.A,{reviewsDom:r,reviewsBody:a});r.setAttribute("review_sort_by",n.A.userSetting.review_sort_by);const d=1===n.A.userSetting.layout?"list":"gird";r.setAttribute("layout",d),i||n.A.reviewsDom&&Y();let p=parseInt(window.getComputedStyle(r).width);n.A.isGrid&&(n.A.reviewsWidth=p),(0,w.a)(3,1);const u=i?"trustoo_all_reviews":"trustoo_reviews";(0,o.gsSession)("set",u,[]),await y(),function(){const{lang:t,userSetting:e,revHeadType:i}=n.A,r=n.A.isWdoRevOpen?n.A.wdoRev:n.A.reviews,a=n.A.isMixReview||n.A.isWdoRevOpen,l=a?n.A.allRatingData:n.A.ratingData,d=n.A.isWdoRevOpen?n.A.wdoRevDom:n.A.reviewsDom,c=(0,o.$dqs)("#reviews-head",d);let p="",u="";if(n.A.isWdoRevOpen&&c&&(c.innerHTML+='
'+_.A.close(e.font_color)+"
"),!l)return;var v="";(1!==n.A.userSetting.is_qa_active||n.A.isWdoRevOpen||n.A.isMixReview)&&(v=`
\n\t\t
\n\t\t\t\t\n\t\t\t\n\t\t
\n\t\t${Z().html}\n\t\t
`);var g=(0,s.getTotalStarString)(l.rating,!0);let A=l.total_reviews,h="",f="";2===e.is_show_review_button||a||(h=``),1!==n.A.userSetting.is_qa_active||n.A.isWdoRevOpen||n.A.isMixReview||(f=``);let m="",b="",C="",$=`

\n ${l.rating}\n

`;if(1===i?(C=`

${t.customer_reviews}

`,m=`
\n
\n 5 ${t.star}\n
\n
\n 4 ${t.star}\n
\n
\n 3 ${t.star}\n
\n
\n 2 ${t.star}\n
\n
\n 1 ${t.star}\n
\n
`):2===i&&(p="review-head-type2"),b+=`\n
\n ${$}\n
\n ${g} \n
\n

${1===e.is_show_review_number?A:""} ${t.reviews}

\n
\n `,b=`
\n ${b}\n
`,u=`\n\t${C}\n\t
\n\t\t
\n\t\t${b+m}\n\t\t${1===n.A.userSetting.is_show_album&&1===i?'
':""}\n\t\t
\n\t\t\n\t\t
\n\t\t\t\t${h+f+v}\n\t\t
\n\t
\n\n\t`,c&&(c.className+=p,c.innerHTML+=u,2!==i)){const t=(0,o.$dqsa)(".star-range",c),i=(0,o.$dqsa)(".star-num",c),s=1===e.is_show_review_number;t.forEach(((t,a)=>{const d=5-a,p=l["total_star"+d];let u="0";p&&(u=(p/l.total_reviews*100).toFixed(1)+"%"),i[a].textContent=s?p:u,t.setAttribute("index",d),t.style.cssText=`background:linear-gradient(to right, ${e.star_color} 0%, ${e.star_color} ${u},${e.nostar_color} ${u}, ${e.nostar_color})`,p>0&&1===n.A.userSetting.rating_filter&&(t.onclick=function(){const e=t.getAttribute("index");e===r.ratingFilter?r.ratingFilter=0:r.ratingFilter=e,(0,w.a)(3,1),y(!1,!0)},t.parentNode.onmouseover=function(){(0,o.$dqs)(".head-center",c).classList.add("tt-hover"),this.classList.add("active")},t.parentNode.onmouseout=function(){(0,o.$dqs)(".head-center",c).classList.remove("tt-hover"),this.classList.remove("active")})})),1===n.A.userSetting.is_show_album&&(0,k.D)((0,o.$dqs)(".tt-reviews-album",c))}}();const v=(0,o.$dqs)(".head-sort:first-child",r);v&&v.parentNode.setAttribute("only-sort",!0),j(),function(){const{isWdoRevOpen:t,hasPyRating:e}=n.A,i=t?n.A.wdoRevBody:n.A.reviewsBody;(0,o.$dqs)("#reviews-head .head-sort,.tt-reviews-sort")&&function(){const t=n.A.isWdoRevOpen?n.A.wdoRevDom:n.A.reviewsDom,e=(0,o.$dqs)(".head-sort,.tt-reviews-sort",t),i=(0,o.$dqs)(".sort-popup",t),s=(0,o.$dqs)(".sort-active",t);window.addEventListener("click",(function(t){e.contains(t.target)||(i.style.display="none")})),(0,o.$dqsa)(".sort-item",t).forEach((t=>t.onclick=function(){const t=n.A.isWdoRevOpen?n.A.wdoRevDom:n.A.reviewsDom;if(!this.classList.contains("active")){(0,o.$dqs)(".sort-item.active",t).classList.remove("active"),this.classList.add("active"),s.style.top=this.offsetTop+3+"px";const e=this.getAttribute("sort-value");t.setAttribute("review_sort_by",e),1!==n.A.userSetting.review_pagination_type||n.A.isWdoRevOpen||(n.A.reviewsList=[],n.A.pageRecord=[]),i.style.display="none";const r=(0,o.$dqs)(".tt-sort-content>span");r&&(r.textContent=this.textContent),t.setAttribute("reviews-page-no",1),y(!0)}})),(0,o.$dqs)(".sort-icon,.tt-sort-content",t).onclick=function(){let t=i.style.display;i.style.display="block"===t?"none":"block"}}();i.addEventListener("click",(function(t){let e=t.target;"path"===e.tagName&&(e=e.closest("svg"));let i=e.classList;i.contains("resource-item")&&(e=(0,o.$dqs)("img",e));const s=t.target.closest(".resource-item");if(s){const t=(0,o.$dqs)("img",s);let e=parseInt(t.getAttribute("no"));const i=parseInt(t.getAttribute("index"));let r;n.A.isGrid&&n.A.isMobile&&(n.A.globalStyle.textContent+="#trustoo-review-detail .review-row-one .reviews-date {display: none;}"),r=1!==n.A.userSetting.review_pagination_type||n.A.isWdoRevOpen||n.A.isMixReview&&!n.A.isHomePage&&!n.A.isCollPage?Math.ceil(e/n.A.userSetting.reviews_per_page_number)-1:(0,w.a)()-1,e-=1,e%=n.A.userSetting.reviews_per_page_number,n.A.revDetailInfo.page=r,n.A.revDetailInfo.no=e,n.A.revDetailInfo.imageIndex=i;const a=n.A.isWdoRevOpen?"trustoo_all_reviews":"trustoo_reviews",l=(0,o.gsSession)("get",a)[r][e];TTRevDetail.showTTReviewDetail(n.A,"",l,a)}else i.contains("display-text")?function(t){t.parentNode.querySelector(".remain-text").removeAttribute("hidden");const e=t.getAttribute("index"),i=t.getAttribute("cardno");t.style.display="none",n.A.isGrid&&c(e,i)}(e):(i.contains("tt-helpful")||i.contains("tt-unhelpful"))&&R(e,i)})),e&&(0,m.B4)();n.A.iObserver||(n.A.iObserver=new IntersectionObserver((t=>{for(const e of t)if(e.isIntersecting&&!n.A.allRevLoadLock&&(n.A.isRevPage||n.A.isWdoRevOpen)){const t=e.target.parentNode,i=parseInt(t.getAttribute("review-page-count"));parseInt(t.getAttribute("reviews-page-no"))15?setTimeout((()=>{n.A.reviewsDom.classList.remove("pending")}),100):n.A.reviewsDom.classList.remove("pending"));1!==n.A.userSetting.is_qa_active||n.A.isWdoRevOpen||n.A.isMixReview||setTimeout((()=>{(0,o.$dqs)(".tt-qa-list",n.A.reviewsDom)||P()}),500);"undefined"!=typeof trustooAfterExecute&&trustooAfterExecute(n.A,h.A)}(),n.A.isFirstPageRender=!1)}function N(){let t="",e="";if(1===n.A.userSetting.is_qa_active&&!n.A.isWdoRevOpen&&!n.A.isMixReview&&(t=`
\n\t\t\t${n.A.lang.reviews.charAt(0).toUpperCase()+n.A.lang.reviews.slice(1)}\n\t\t\t\t(${n.A.ratingData.total_reviews})\n\t\t\t${n.A.lang.question_and_answer.title}(${n.A.ratingData.total_qa_count})\n\t\t
`,!n.A.isNullRev)){const t=Z();e=`
\n\t\t\t\t\t
${t.text}${_.A.sort(n.A.userSetting.font_color)}
\n\t\t\t\t\t${t.html}\n\t\t\t\t
`}return t+e}function F(t){const{lang:e}=n.A;n.A.isNullRev=!0,n.A.firstPageShow=!0;let i="";["ar","he"].includes(Review.lang)&&(i=" trustoo-rtl");const r=N();r&&(i+=" qa");let a="",l="";2!==n.A.userSetting.is_show_review_button&&(a=``),1!==n.A.userSetting.is_qa_active||n.A.isWdoRevOpen||n.A.isMixReview||(l=``);const d=(0,s.getTotalStarString)(0);W(`
\n\t\t\t
\n\t\t\t\t
${e.customer_reviews}
\n\t\t\t\t
${a}${l}
\n\t\t\t
\n \n\t\t\t${r}\n
\n
\n
\n ${d}\n
\n
\n

${e.no_reviews}

\n
\n
`,t);const c=(0,o.$dqs)("#vstar-noreviews");n.A.reviewsDom=c,j(),P(),Y()}function W(t,e,i="beforebegin"){let s=!1;const{isWdoRevOpen:r,isWdoRevExist:a}=n.A;let l;const d=Array.from((0,o.$dqsa)("#seal-review-widget")).find((t=>t.parentNode.offsetParent)),c=(0,o.$dqs)(".pagefly-review-widget-sealapp"),p=(0,o.$dqs)(".custom-vstar-review-widget");if(r&&!a)n.A.isWdoRevExist=!0,l=e,i="afterbegin";else if(c)l=c,i="beforeEnd";else if(p)l=p,null===p.parentNode.offsetParent&&(s=!0),i="beforeEnd";else if(d)d.parentNode.parentNode.style.padding=0,l=d,i="beforeEnd";else{let t=null,r=h.A.get_move_review_info;Object.keys(r).length?(61244833988===n.A.shop_id&&130299592900===n.A.themeId&&n.A.isMobile&&(r.selector+=">.sf__accordion-content"),t=(0,o.$dqs)(r.selector),i=r.position,s=1===r.is_tab_review):e&&(t=e);let a=(0,o.$dqs)("#shopify-section-footer"),d=(0,o.$dqs)("main"),c=(0,o.$dqs)("footer"),p=(0,o.$dqs)('.shopify-section[id$="__main"],#shopify-section-product-template');const u=(0,o.$dqs)("#tt-carousels-wrapper");u?(i="afterend",l=u):t?l=t:p?(i="afterend",l=p):d?d.contains(c)?l=c:(i="afterend",l=d):a?l=a:c&&(l=c)}l&&(l.insertAdjacentHTML(i,t),!r&&(n.A.revTar=l),n.A.revTarWid=parseInt(window.getComputedStyle(l).width),s&&!n.A.isNullRev&&function(){const t=(0,o.$dqs)("#vstar-reviews");if(t&&ResizeObserver){const e=new ResizeObserver((t=>{for(let i of t){const{width:t,height:s}=i.contentRect;t&&s&&(V(),n.A.isGrid&&(u(),e.disconnect()))}}));e.observe(t)}}())}function j(){!function(){const{isMixReview:t,isWdoRevOpen:e,reviewsDom:i}=n.A,s=(0,o.$dqs)(".head-button.tt-write-reviews,.noreviews-button.tt-write-reviews",i);t||e||2===n.A.userSetting.is_show_review_button||s.addEventListener("click",z),1!==n.A.userSetting.is_qa_active||e||t||((0,o.$dqs)(".head-button.tt-write-qa,.noreviews-button.tt-write-qa",i).addEventListener("click",(function(){U(),document.body.classList.add("trustoo-open"),(0,o.$dqs)("#trustoo-mask").style.display="flex";const t=(0,o.$dqs)("#trustoo-allinone");(0,o.$dqs)(".head-title",t).textContent=n.A.lang.question_and_answer.ask_a_question,(0,o.$dqs)(".big-input",t).placeholder=n.A.lang.question_and_answer.desc_placeholder,(0,o.$dqs)(".feedback-area>.tt-input-title",t).textContent=n.A.lang.question_and_answer.question,(0,o.$dqs)(".form-submit",t).textContent=n.A.lang.question_and_answer.submit_question,t.style.display="block",t.setAttribute("write-qa",!0)})),(0,o.$dqsa)(".tt-tab").forEach((t=>{t.onclick=function(t){const e=t.target;e.classList.add("active");const s=e.getAttribute("index"),r=(0,o.$dqs)(".tt-qa-list",i);"0"===s?(n.A.showType=1,n.A.reviewsDom.setAttribute("show-type",1),e.nextElementSibling.classList.remove("active")):"1"===s&&(n.A.showType=2,n.A.reviewsDom.setAttribute("show-type",2),r||P(),e.previousElementSibling.classList.remove("active"))}})))}()}function z(){const t=(0,o.$dqs)(".trustoo-write-review");if("undefined"!=typeof tt_customer){const e=(0,o.$dqs)('[input-type="author"],.slide-name',t),i=(0,o.$dqs)('[input-type="author_email"],.slide-email',t);if(3===n.A.writeRestriction&&tt_customer.orderCount<=0)return void(0,o.setToast)("Please purchase the product first");e&&i&&(e.value=tt_customer.name,i.value=tt_customer.email,1===n.A.writeForm?(0,O.PT)():2===n.A.writeForm&&(0,B.yS)())}else if(1!==n.A.writeRestriction)return void(location.href=location.origin+"/account/login");document.body.classList.add("trustoo-open"),U(),(0,o.$dqs)("#trustoo-mask").style.display="flex",1===n.A.writeForm?((0,o.$dqs)(".head-title",t).textContent=n.A.lang.all_in_one_from.write_reviews,(0,o.$dqs)(".feedback-area>.tt-input-title",t).textContent=n.A.lang.all_in_one_from.review,(0,o.$dqs)(".form-submit",t).textContent=n.A.lang.submit):2===n.A.writeForm&&(t.parentNode.style.display="block"),t.style.display="block",t.setAttribute("write-review",!0)}function U(){if(n.A.isMobile){let t=window.location.hash;t.includes("tt-write-reviews-open")||(window.location.hash=t?t+"&tt-write-reviews-open":"tt-write-reviews-open"),window.addEventListener("hashchange",G)}}function G(){-1===window.location.hash.indexOf("tt-write-reviews-open")&&(1===n.A.writeForm?(0,O.Do)():2===n.A.writeForm&&(0,B.oD)(),window.removeEventListener("hashchange",G))}function V(){const t=n.A.reviewsDom,e=(0,o.$dqs)(".head-center",t),i=(0,o.$dqs)(".head-left",t),s=(0,o.$dqs)("#reviews-head",t);if(n.A.revTarWid=parseInt(getComputedStyle(n.A.revTar).width),n.A.revTarWid<678&&!n.A.isMobile&&(0,o.getWindowWidth)()>768){if(n.A.globalStyle.textContent+="#vstar-reviews .list-review{padding:30px 10px !important}\n #vstar-window-review .list-review{padding:30px 40px !important}",i.style.marginLeft="10px",t.style.padding=t.parentNode.style.padding=0,(0,o.$dqs)(".tt-head-right",t).style.cssText="padding: 30px 0 0;",1===n.A.userSetting.is_show_album){const e=(0,o.$dqs)(".tt-reviews-album",t);e&&(e.style.padding=0)}}else t.style.cssText="",e&&(e.style.cssText=""),i&&(i.style.cssText=""),s.style.cssText=""}function Z(){const t=n.A.lang;let e="",i="",s="";const o=["image-descending","commented-at-descending","rating-descending","rating-ascending"],r=o.indexOf(n.A.userSetting.review_sort_by);o.forEach(((n,o)=>{i="",o===r&&(i="active",s=t.sort_by_options[o]),e+=`
  • ${t.sort_by_options[o]}
  • `}));const a=35*r+49+"px";return{text:s,html:`
    \n\t
      \n\t\t
    • ${t.sort_by}
    • \n\t\t${e}\n\t
    \n\t
    ${_.A.hook()}\n\t
    \n
    `}}function J(){!n.A.RevIntersection&&n.A.isProPage&&(n.A.RevIntersection=new IntersectionObserver((t=>{for(const e of t)e.isIntersecting&&((0,s.processRecordedData)("reviews_view"),n.A.RevIntersection.disconnect())}),{})),n.A.RevIntersection.observe(n.A.reviewsDom)}function Y(){let t=Review.theme.theme_store_id,e="";if(n.A.isProPage){switch(t){case 887:case 1567:case 1356:case 1363:case 1368:case 1431:case 1434:case 1500:case 1499:case 796:case 775:case 829:e="page-width";break;case 730:case 679:case 380:e="wrapper";break;case 578:e="site-wrapper";break;default:if("warehouse"===Review.theme.name){n.A.reviewsDom.parentNode.classList.add("container");(0,o.$dqs)(".card--collapsed.card--sticky.card")&&(n.A.reviewsDom.classList.add("card"),n.A.globalStyle.textContent+="#vstar-reviews.card{border:none !important}")}else n.A.isMobile||(n.A.globalStyle.textContent+="#vstar-reviews{max-width:1200px;}")}if(""!=e){const t=(0,o.$dqs)("."+e);if(n.A.isNullRev&&t){const e=getComputedStyle(t).paddingRight;n.A.globalStyle.textContent+=`#vstar-noreviews button.noreviews-button {right:${e}}`}n.A.reviewsDom.classList.add(e)}}else n.A.isMobile||(n.A.globalStyle.textContent+="#vstar-reviews{max-width:1200px;padding: 0 40px;}")}const Q=(0,o.debounce)((()=>{n.A.isGrid&&n.A.isRevOpen&&u()}),200);(0,o.debounce)((async()=>{const t=n.A.reviewsDom,e=getReviewWidth();n.A.wrapWid=e;let i=0;n.A.revTar&&(i=parseInt(getComputedStyle(n.A.revTar).width),n.A.revTarWid=i),!n.A.isMixReview&&V(),0!=e&&(t.style.width=i<678&&0!==i?n.A.revTarWid+"px":e+"px")}),100)},45:(t,e,i)=>{i.d(e,{P9:()=>w,oD:()=>h,yS:()=>A});var n=i(571),s=i(957),o=i(638),r=i(986),a=i(742),l=i(357);let d=0;const c=588;let p=c,u=!1,v="",g="",A=null;function w(t){window.innerWidth${i.tip_3}`:2===a.discount_incentive_conditions&&(g=`
    ${i.tip_1}
    `)}if(""!==v){let t=374;n.A.isMobile&&(t+=20),n.A.globalStyle.textContent+=`#trustoo-slide, .write-review-slide {\n\t\t\theight: ${t}px !important;\n\t}`}let w=1===t.enabled_add_video?`\n
    \n ${e.or}\n
    \n
    \n ${e.add_video} \n \n
    \n `:"",_="";1!==n.A.userSetting.is_del_powered&&(_=``);const b=`class="stars vstar-star" data-type="${n.A.userSetting.rating_icon_type}"`,y=`\n
    \n
    \n
    \n
    \n
    \n
    ${e.slide_1_title}
    \n
    \n
    ${(0,o.getTotalStarString)(5,!1)}
    ${e.rating_options[0]}
    \n
    ${(0,o.getTotalStarString)(4,!1)}
    ${e.rating_options[1]}
    \n
    ${(0,o.getTotalStarString)(3,!1)}
    ${e.rating_options[2]}
    \n
    ${(0,o.getTotalStarString)(2,!1)}
    ${e.rating_options[3]}
    \n
    ${(0,o.getTotalStarString)(1,!1)}
    ${e.rating_options[4]}
    \n
    \n\t\t\t\t${v}\n
    \n
    \n
    ${e.slide_2_title}
    \n
    ${e.slide_2_subtitle}
    \n
    \n ${g}\n
    \n ${e.add_photo} \n \n
    \n ${w}\n
    \n \n \n
    \n
    \n
    \n
    ${e.slide_3_title}
    \n \n \n \n
    \n
    \n
    ${e.slide_4_title}
    \n \n \n \n \n
    \n
    \n\t\t\t\t\t
    ${e.slide_5_title}
    \n\t\t\t\t\t
    ${e.slide_5_subtitle}
    \n\t\t\t\t\t\n\t\t\t\t\t\n
    \n
    \n
    \n\t${_}\n
    \n `;(0,r.$dqs)("#trustoo-mask").insertAdjacentHTML("beforeend",y);const C="undefined"!=typeof Review&&["ar","he"].includes(Review.lang)?"#trustoo-slide .slide-content,#trustoo-slide .slide-input {\n\t\tdirection: rtl;\n\t}":"";if(n.A.globalStyle.textContent+=`\n\t.trustoo-write-review{\n\t\t--button-bg-color: ${t.review_button_background_color};\n\t\t--button-text-color: ${t.review_button_text_color};\n\t\t--button-radius: ${t.button_radius}px;\n\t\t--text-color: ${t.text_color};\n\t\t--light-text-color: ${(0,r.hexToRgba)(t.text_color,.4)};\n\t\t--discount-code-color:${t.discount_text_color};\n\t\t--discount-copy-color:${t.discount_copy_color};\n\t}\n\t.trustoo-write-review .slide-content{\n\t\tbackground:${(0,r.hexToRgba)(t.text_color,.05)}\n\t}\n\t.trustoo-write-review .vstar-star{\n\t\t--star-color: ${t.review_button_background_color};\n\t\t--nostar-color: ${t.review_button_text_color};\n\t}\n\t.trustoo-write-review{\n\t\t--write-bg:${t.popup_bg_color};\n\t\tbackground: ${t.popup_bg_color};\n\t\tborder-radius: ${t.popup_radius}px;\n\t\tcolor:${t.text_color}\n\t}\n\t.trustoo-write-review .slide-upload {\n\t\tbackground: ${t.popup_bg_color};\n\t}\n\t.trustoo-widget .window-discount,.trustoo-widget .slide-discount{\n\t\tbackground:${t.discount_bg_color};\n\t\tborder-radius: ${t.discount_card_radius}px;\n\t}\n\t${C}\n\t`,function(t){const e=(0,r.$dqs)("#trustoo-slide");n.A.slide=e,(0,r.$dqs)(".window-close",e).onclick=function(){h()},(0,r.$dqsa)(".slide-option",e).forEach((t=>{t.onclick=function(){n.A.ratingVal=t.getAttribute("rating"),f()},t.onmouseover=function(){t.classList.add("active")},t.onmouseout=function(){t.classList.remove("active")}})),(0,r.$dqs)(".upload-input.tt-image-uploader",e).onchange=async function(){const e=this.files[0],i=this.getAttribute("accept").split(",").map((t=>t.slice(1))),o=e.name.split(".").pop();if(!i.includes(o.toLowerCase()))return(0,r.setToast)(n.A.lang.error_tip),!1;if(n.A.uploadType=1,(0,r.$dqs)(".upload-file-tip").style.display="block",(0,r.$dqs)(".upload-file-tip").innerHTML=l.A.loading(t)+"Uploading",f(),!Object.keys(n.A.uploadImgInfo).length){const t=await s.zG.getPolicyToken();n.A.uploadImgInfo=t[1]}const a=this;s.zG.uploadImg(e).then((e=>{null===e[0]&&((0,r.$dqs)(".upload-file-tip").innerHTML=l.A.over(t),n.A.mediaUrl[0]={url:"https://img.trustoo.io/"+e[1].key,resource_type:1},a.value="")}))};const i=(0,r.$dqs)(".tt-video-uploader",e);i&&(i.onchange=async function(){const e=this.files[0],a=this.getAttribute("accept").split(",").map((t=>t.slice(1))),d=e.name.split(".").pop();if(!a.includes(d.toLowerCase()))return(0,r.setToast)(n.A.lang.error_tip),!1;if(parseInt(e.size/1048576)>=200)return(0,r.setToast)("The file cannot exceed 200MB"),!1;(0,r.$dqs)(".upload-file-tip").style.display="block",(0,r.$dqs)(".upload-file-tip").innerHTML=l.A.loading(t)+"Uploading",f(),n.A.uploadType=2,u=!0;const c=(0,r.$dqs)(".slide-done");c.setAttribute("disabled",!0),s.zG.getUploadVideoUrl().then((a=>{const{upload_url:d,domain:p}=a[1],u=a[1].video_service_uid;s.zG.uploadVideo(d,e).then((()=>{const e=p+"/"+u;o(c,"success"),(0,r.$dqs)(".upload-file-tip").innerHTML=l.A.over(t),n.A.mediaUrl[0]={url:e+"/iframe",resource_type:2}})).catch((()=>{i.value="",o(c,"fail")}))})).catch((()=>{i.value="",o(c,"fail")}))});function o(t,e){(0,r.$dqs)(".upload-file-tip").innerHTML="",u=!1,A(),3===d&&(t.textContent=n.A.lang.separate_review_form.done),"fail"===e&&(0,r.setToast)(n.A.lang.error_tip)}const a=(0,r.$dqs)(".slide-content",e),c=(0,r.$dqs)(".slide-next",e);a.oninput=function(){""!==this.value?c.removeAttribute("disabled"):c.setAttribute("disabled",!0)},a.onblur=function(){""===this.value&&c.setAttribute("disabled",!0)};const v=/^[a-zA-Z0-9_-]+(\.[A-Za-z0-9_-]+)*@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/,g=(0,r.$dqsa)("input.slide-input",e),w=(0,r.$dqs)(".slide-done",e);A=(0,r.debounce)((function(){let t=!1,i=!1;if(""!==g[1].value){const t=(0,r.$dqs)(".input-tip",e);v.test(g[1].value)?(i=!0,t&&(0,r.$dqs)(".input-tip",e).remove()):t||g[1].insertAdjacentHTML("afterend",`
    \n ${n.A.lang.email_error}\n
    `)}""!==g[0].value&&(t=!0),t&&i&&!u?w.removeAttribute("disabled"):w.setAttribute("disabled",!0)}),300),g.forEach((t=>{t.oninput=A,t.onblur=function(){""!==g[0].value&&""!==g[1].value||w.setAttribute("disabled",!0)}})),(0,r.$dqs)(".discount-copy",e).onclick=function(){(0,r.copyToClipboard)((0,r.$dqs)(".discount-code",e).textContent,(()=>{(0,r.setToast)(n.A.copyText)}))},(0,r.$dqsa)(".back-slide",e).forEach((t=>{t.onclick=function(){const t=(0,r.$dqs)(`.write-review-slide[index="${d}"]`);m(t,t.previousElementSibling),d--,(0,r.$dqs)(".write-review-container").style.left=(parseInt(t.getAttribute("index"))-1)*-p+"px"}})),(0,r.$dqsa)(".next-slide",e).forEach((t=>{t.onclick=function(){if(t.classList.contains("slide-next")&&u&&(w.textContent=n.A.lang.separate_review_form.uploading_video_tip),t.classList.contains("slide-finish")){h(),d=0,(0,r.$dqsa)(".slide-discount",e).forEach((t=>t.style.display="none")),(0,r.$dqs)(".write-review-slide.active").classList.remove("active"),(0,r.$dqs)('.write-review-slide[index="0"]').classList.add("active"),(0,r.$dqs)(".write-review-container").style.left=0;const t=(0,r.$dqs)("#trustoo-mask>.trustoo-power");t&&(t.style.display="none")}else t.classList.contains("slide-done")?(t.innerHTML="",(0,r.setLoading)(t),function(){const t={},e=n.A.slide;n.A.ip&&(t.ip=n.A.ip,t.author_country=n.A.loc);const i=(0,r.$dqs)(".slide-name",e),o=(0,r.$dqs)(".slide-email",e),a=(0,r.$dqs)(".slide-content",e);t.author=i.value,t.author_email=o.value,t.content=a.value,n.A.isLinkReqRev?"undefined"==typeof isEmailWrite&&(t.review_source=1):t.review_source=0;s.zG.uploadReview(t,n.A.uploadType,n.A.mediaUrl).then((t=>{if(t[0]){let e="";e=-2===t[0].code?t[0].error:n.A.lang.error_tip,(0,r.setToast)(e)}else{const s=n.A.lang.separate_review_form,l=t[1]?t[1].discount_code:"";if(l){const t=s.discount_setting;(0,r.$dqs)('.write-review-slide[index="4"] .slide-title',e).textContent=t.title,(0,r.$dqs)('.write-review-slide[index="4"] .slide-desc',e).textContent=t.subtitle,(0,r.$dqs)(".slide-discount",e).style.display="flex",(0,r.$dqs)(".discount-code",e).textContent=l}f(),(0,r.$dqsa)(".slide-next,.slide-done",e).forEach((t=>t.setAttribute("disabled",!0))),(0,r.$dqs)(".upload-file-tip",e).innerHTML="",i.value=o.value=a.value="",n.A.mediaUrl=[],n.A.isLinkReqRev&&(window.history.replaceState({},"",location.href.replace("?req=review","")),n.A.isLinkReqRev=!1)}(0,r.$dqs)(".slide-done",e).innerHTML=n.A.lang.separate_review_form.done}))}()):f()}}))}(t.text_color),n.A.isLinkReqRev){document.body.classList.add("trustoo-open"),(0,r.$dqs)("#trustoo-mask").style.display="flex";const t=(0,r.$dqs)(".trustoo-write-review");t.style.display="block",t.parentNode.style.display="block"}}function h(){(0,r.$dqs)("#trustoo-mask").style.display="none";const t=(0,r.$dqs)("#trustoo-slide");t.style.display="none",t.parentNode.style.display="none";const e=(0,r.$dqs)("#trustoo-mask>.trustoo-power");e&&(e.style.display="none"),document.body.classList.remove("trustoo-open"),window.removeEventListener("hashchange",a.FP),-1!==window.location.hash.indexOf("tt-write-reviews-open")&&window.history.replaceState({},document.title,window.location.href.replace("#tt-write-reviews-open",""))}function f(){const t=(0,r.$dqs)(`.write-review-slide[index="${d}"]`);m(t,t.nextElementSibling),d++,(0,r.$dqs)(".write-review-container").style.left=(parseInt(t.getAttribute("index"))+1)*-p+"px"}function m(t,e){t.classList.remove("active"),e.classList.add("active")}},220:(t,e,i)=>{i.d(e,{my:()=>d,qM:()=>l});var n=i(986),s=i(571),o=i(638),r=i(742);let a=null;function l(){if(s.A.isActWdoRev){const t=s.A.isCssLoaded?"":'style="display:none"',e=s.A.userSetting.sidetab_setting,i=`#vstar-tab{ background-color:${e.sidetab_background_color}; color:${e.sidetab_font_color} } `;s.A.globalStyle.insertAdjacentHTML("beforeend",i);let o=`
    ${e.sidetab_button_text}
    `;!(0,n.$dqs)("#vstar-tab")&&document.body.insertAdjacentHTML("beforeend",o),(0,n.$dqs)("#vstar-tab").onclick=c}}function d(){(0,n.$dqs)(".window-close",s.A.wdoRev.node).onclick=function(){p()}}function c(){if(!a){const t='';document.body.insertAdjacentHTML("beforeend",t),a=(0,n.$dqs)(".window-review-mask"),a.onclick=function(t){(0,n.$dqs)("#vstar-window-review").contains(t.target)||p()}}if(s.A.isWdoRevOpen=!0,document.body.classList.add("trustoo-open"),a.style.display="block",s.A.isProPage&&(0,o.processRecordedData)("reviews_click"),!s.A.isWdoRevExist){s.A.wdoRev.node=(0,n.$dqs)("#vstar-window-review");let t={};t.tarNode=s.A.wdoRev.node,t.position="afterbegin",(0,r.Gs)(t),(0,o.insertReviewDetail)()}}function p(){s.A.isWdoRevOpen=!1,a=(0,n.$dqs)(".window-review-mask"),a.style.display="none",document.body.classList.remove("trustoo-open")}document.addEventListener("onTTshowReviewsClick",c)},134:(t,e,i)=>{i.d(e,{A:()=>a});var n=i(957),s=i(986),o=i(571);const r=function(){const t={};switch(o.A.shop_id){case 55363502159:o.A.isHomePage&&(t.customCollTarSel=".h1.product__title,.card__heading.h5>.full-unstyled-link");break;case 64402030811:o.A.isHomePage&&(t.customCollTarSel='.glide-wrapper.glider-slide [data-product-type="title"]');break;case 59471560866:t.homeStarDelay=2e3,o.A.isHomePage&&(t.customCollTarSel=".prod-thumb-title-color>a")}return t},a={get_move_review_info:{},custom_carousel_info:{},custom_style_info:{},star_insert_adaptation_info:{},user_needs_solutions_info:{},fixedLayout:0,bigRatingDigits:2,isOpenRecStars:!0,isShowRevVerified:!0,isPopupProdReviews:!1,customRatingText:"",customHeadRatingText:"",isShopNameBold:!1,showRelatedPros:!1,setUserNeed(){const t=this,{shop_id:e}=Review;switch(e){case 55420682445:o.A.isProPage&&document.body.addEventListener("click",(function(t){t.target.classList.contains("reviews-text")&&"P"===t.target.tagName&&(0,s.$dqs)(".breadcrumb_pr_wrap").scrollIntoView({behavior:"smooth",block:"start"})}));break;case 26046955594:case 17400017:t.isShopNameBold=!0,window.trustooAfterExecute=t=>{"reviews"===t.source&&(t.globalStyle.textContent+="\n\t\t\t\t\t\t#vstar-reviews.trustoo-widget .tt-qa .tt-answerer,#vstar-reviews.trustoo-widget .merchant-reply div {\n\t\t\t\t\t\t\tfont-weight: 400 !important;\n\t\t\t\t\t}\n\t\t\t\t\t\t")}}Object.assign(t,r())},setPageReview(t){let e=window.location.href,i=e.indexOf("pages/")+6,n=e.substring(i);const r=(0,s.$dqs)(".custom-vstar-review-widget,#vstar-all-reviews");if(r&&"vstar-all-reviews"===r.id&&(o.A.isRevPage=!0),o.A.allRev=r,[49048256661,62366974136,23928713].includes(t)||r||"reviews"===n){(["clienti-soddisfatti","shop-reviews","review-page","producto-mini","avis-menviking","customer-reviews"].includes(n)||"reviews"===n||r&&"vstar-all-reviews"===r.id||r&&"custom-vstar-review-widget"===r.className&&!o.A.productId)&&(this.isPageReview=!0)}},async getUserNeedData(){const{pageType:t,themeId:e}=o.A,i=this;if(o.A.isHomePage||o.A.isProPage||o.A.otherPageColl||o.A.isCollPage||i.isPageReview){let s,o;if("undefined"!=typeof vstar_custom_info?(s=vstar_custom_info,o=null):[o,s]=await n.zG.getUserNeed(),null===o){for(let n in s){const o=s[n].list;if(0!==o.length)for(let s=0;s{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t=i(986),e=i(571),n=i(957),s=i(429),o=i(638),r=i(742),a=i(134),l=i(778),d=i(220),c=i(72),p=i.n(c),u=i(825),v=i.n(u),g=i(659),A=i.n(g),w=i(868),h=i.n(w),f=i(540),m=i.n(f),_=i(113),b=i.n(_),y=i(472),C={attributes:{id:"trustoo-insert-css"}};C.styleTagTransform=b(),C.setAttributes=h(),C.insert=A().bind(null,"head"),C.domAPI=v(),C.insertStyleElement=m();p()(y.A,C);y.A&&y.A.locals&&y.A.locals;var $=i(605),x=i(877);async function R(i){let c,p,u;const{isActWdoRev:v,globalStyle:g,isHomePage:A,isProPage:w,isCartPage:h,isCollPage:f,hasPyRating:m,hasEcomRt:_}=e.A,{pageType:b,isMobile:y}=Review;await a.A.getUserNeedData();const{isCollReview:C,isCollStartDelay:R,isPageReview:q,reviewsPageCount:S,homeStarDelay:k}=a.A;Review.is_install=i.is_install,Review.is_product_open=i.is_activate_product_rating,Review.is_reviews_open=i.is_activate_reviews,Review.is_collection_open=i.is_activate_collection_rating,Review.is_activate_home_rating=i.is_activate_home_rating,Review.is_show_stars_without_review=i.is_show_stars_without_review,e.A.userSetting=i,e.A.revHeadType=1===i.is_hide_ratings?2:1,(0,t.$dqs)("#trustoo-mask")||document.body.insertAdjacentHTML("beforeend",'');const E=i;Review.lang=Shopify.locale;const T="collection"!=b||C||v||q;if(T){let n=!1,s=!1,o=!1;const r=a.A.fixedLayout||i.layout;1==r||3==r?(c="list-",u=3,n=!0,3==r&&(o=!0)):2==r&&(c="grid-",u=5,s=!0,e.A.gridLoadedShowImg=0,e.A.gridShowImgCount=0),p=E.reviews_per_page_number,S&&(p=S),(0,t.returnCitySN)(e.A),Object.assign(e.A,{layoutClass:c,layoutReviewCount:p,reviewsRow:u,globalStyle:g,isGrid:s,isList:n,isSplit:o})}if((T||1===i.is_activate_collection_rating&&(e.A.isCollPage||a.A.otherPageColl))&&await async function(t){let i=!0;if(1===t.auto_switch_language){const e=Shopify.locale;Review.lang=e,e!==t.language&&(i=!1)}else Review.lang=t.language;let s,o,r="undefined"!=typeof vstar_lang_json;r&&i&&!e.A.isSettingUpdate?(s=null,o=vstar_lang_json):([s,t]=await n.zG.getLang(),null===s?o=JSON.parse(t.lang_json):r&&(o=vstar_lang_json));null===s&&o&&(o.show_full_review&&(e.A.ellipsisText=o.show_full_review),Object.assign(e.A,{lang:o}))}(i),function(i,n){let s=`.vstar-star{--star-color:${e.A.userSetting.star_color};\n\t--nostar-color:${e.A.userSetting.nostar_color};}`;if(n){const n=i.font_color;let o=i.box_bg_color;const r=e.A.theme_store_id;1356!==r&&1567!==r||"#FFFFFF"===o&&(o="rgba(0,0,0,0)");let a=i.border_radius+"px";const l="Dark"===i.card_shadow?"1px 1px 6px rgba(0, 0, 0, 0.1)":"0px 0px 3px rgba(0, 0, 0, 0.2)";if(s+=`\n #reviews-wrapper,#noreviews-wrapper,#vstar-reviews,\n #vstar-noreviews{\n background-color: ${o};\n --font-color: ${n};\n --font-color-o4: ${(0,t.hexToRgba)(n,.4)};\n --font-color-o7: ${(0,t.hexToRgba)(n,.7)};\n --font-color-o8: ${(0,t.hexToRgba)(n,.8)};\n\t\t\t\t\t--font-size:${i.font_size}px;\n --bg-color:${o};\n --badge-text-color:${i.badge_text_color};\n --badge-color:${i.verified_badge_color};\n --card-color:${i.card_bg_color};\n --box-bg-color:${o};\n --button-radius:${a};\n --button-color:${i.button_color};\n --button-bd-color:${i.button_bg_color};\n --button-border-color:${i.button_border_color};\n\t\t\t\t\t--line-color:${i.dividing_line_color};\n\t\t\t\t\t--reply-bg-color:${i.reply_bg_color};\n\t\t\t\t\t--avatar-text-color:${i.avatar_text_color};\n\t\t\t\t\t--avatar-bg-color:${i.avatar_bg_color};\n }\n\t\t\t\t.trustoo-widget{--sprites-image-url:url(https://${e.A.staticBaseUrl}/static/images/sprites/trustoo_sprites.png?${e.A.constructTime});}\n #vstar-window-review,#vstar-window-review #reviews-wrapper,\n #vstar-window-review #vstar-reviews{background-color: ${o.slice(0,7)};}\n #vstar-reviews.pending>* {\n opacity: 0 !important;\n }\n\t\t\t\t#vstar-reviews #reviews-body .grid-review{\n\t\t\t\t\tbox-shadow: ${l};\n\t\t\t\t}\n\t\t\t\t#vstar-reviews #reviews-body .reviews-text{\n\t\t\t\t\tfont-size:${i.font_size}px;\n\t\t\t\t}\n\t\t\t\t.product-icon-list i{\n\t\t\t\t\tfont-size:20px\n\t\t\t\t}\n #trustoo-allinone i,\n .write-review-container i{font-size:16px}\n #reviews-head i{font-size:20px}\n\t\t\t\t${i.font?`.trustoo-widget *,.vstar-star .tt-rating-text,#vstar-tab{font-family: ${i.font}}`:""}\n `,i.qa_colors){const e=i.qa_colors.split(",");s+=`.trustoo-widget{--tab-title-color:${e[0]};\n\t\t\t\t\t--tab-title-line-color:${e[1]};\n\t\t\t\t\t--question-color:${e[3]};\n\t\t\t\t\t--question-color-o8: ${(0,t.hexToRgba)(e[3],.8)};\n\t\t\t\t}`}e.A.isGrid?s+=`.grid-review{background-color: ${i.card_bg_color}}\n #vstar-reviews #reviews-body{margin-top:16px !important}`:s+=`#vstar-reviews .resource-item{border-radius: ${i.photo_radius}px}`}void 0!==a.A.custom_style_info.css_style_code&&(s+=a.A.custom_style_info.css_style_code);a.A.vstarCustomSty&&(s+=a.A.vstarCustomSty);e.A.globalStyle.insertAdjacentHTML("beforeend",s)}(i,T),m||_)(0,t.$dqs)(".pagefly-review-widget-sealapp,.custom-vstar-review-widget")||e.A.isHomePage&&1===i.is_activate_home_reviews?(shopifyObj.productId||(e.A.isMixReview=!0),e.A.isRevOpen=!0):e.A.isProPage&&1===i.is_activate_reviews&&(e.A.isRevOpen=!0),(0,o.setInsertTarget)(2),await(0,o.getTotalRating)();else if(w)e.A.isProRatingOpen=1===i.is_activate_product_rating,1==i.layout?((1==i.is_transparent||y)&&(i.is_transparent=0),E.card_bg_color=(0,t.hexToRgba)(i.card_bg_color,i.is_transparent)):E.card_bg_color=i.card_bg_color,(0,$.D)(),-1!==location.search.indexOf("req=review")&&(e.A.isLinkReqRev=!0),1===i.is_activate_reviews&&(e.A.isRevOpen=!0),await(0,o.getTotalRating)();else if(f||a.A.otherPageColl){2!==i.is_activate_collection_rating&&(R&&await(0,t.setDelay)(2e3),await(0,s.M0)(),0===Review.collTarget.length?e.A.isSetObserver&&(0,s.DF)():(0,o.setInsertTarget)(2)),1===E.is_activate_reviews&&C&&(e.A.isMixReview=!0,(0,r.Gs)({}))}else if(A){let r,d,c="",p=[],{productId:u,productImages:v,productName:g}=e.A,A=!1;if(e.A.isHomeRatingOpen=1===i.is_activate_home_rating,1===i.is_activate_home_reviews){e.A.isRevOpen=!0,e.A.isHomeReview=A=!0;let[t,i]=await n.zG.getOnlyOneProduct();r=i,null===t&&r&&(u=r.product_id,g=r.product_title,v=r.image_src,c=r.product_handle)}if(1===i.is_activate_home_rating||A){if(await(0,l.rU)(),d=Review.proTarget,1===i.is_activate_home_rating){k&&await(0,t.setDelay)(k),await(0,s.M0)(),p=Review.collTarget;let i=p.length;1===i?p[0]===d?p.pop():(0,o.setInsertTarget)(2):0!==i?((p.includes(d)||p[0].contains(d))&&(Review.proTarget=d=null),(0,o.setInsertTarget)(2)):e.A.isSetObserver&&(0,s.DF)()}if(!u&&d&&(g=Review.proTarget.textContent.replace(/\n/g,"").trim(),g)){let[t,e]=await n.zG.getProductInfo(encodeURIComponent(g));null===t&&e&&(u=e.product_id,v=e.image_src,c=e.product_handle)}1===i.is_activate_home_reviews&&(r||u||(e.A.isMixReview=!0)),a.A.isHomeAllReviews&&(e.A.isMixReview=!0),Review.productId=u,Object.assign(e.A,{productId:u,productName:g,productImages:v,productHandle:c}),(u||e.A.isMixReview)&&await(0,o.getTotalRating)()}}else if(h){if((0,t.gsSession)("get","tt_cart_product_id")){e.A.cartWatcher=new x.N,await e.A.cartWatcher.init();const t=e.A.cartWatcher.storedCartToken().split("?key=")[0];(0,o.processRecordedData)("add_to_cart",t,!0)}(0,t.$dqs)(".custom-vstar-review-widget")&&(e.A.isMixReview=!0,(0,o.insertReviewControl)(null,{}))}else if(q){e.A.isMixReview=!0;let t={};e.A.allRev&&(t.tarNode=e.A.allRev,t.position="afterbegin"),e.A.isInsertRev=!0,(0,r.Gs)(t)}(0,d.qM)()}var q=i(357);const S=async function(){if("undefined"!=typeof trustoo_shopify_block_status){if((0,t.$dqs)("script[src*=vstar-review]")&&e.A.isOverwriteOldScripts&&(trustoo_shopify_block_status=2,a.A.executeDelay=1e3),1===trustoo_shopify_block_status)return;2===trustoo_shopify_block_status&&(trustoo_shopify_block_status=1)}let i,s,l,d="";if(window.Review={},Review.observeCount=0,e.A.productId=shopifyObj.productId,e.A.env="production",e.A.staticBaseUrl="cdn.vstar.app",e.A.isMobile=Review.isMobile=(0,t.isMobile)(),Review.constructTime="2024-11-28 16:20:06",e.A.constructTime=new Date("2024-11-28 16:20:06").getTime()/1e3,Review.theme={},"undefined"!=typeof Shopify&&(Review.shop=Shopify.shop,Object.assign(Review.theme,Shopify.theme)),(0,t.$dqs)("body.warehouse--v1")&&(Review.theme.name="warehouse"),e.A.baseUrl=Review.baseUrl="api.trustoo.io",e.A.isWebPSupported=(0,t.isWebPSupported)(),Review.collTarget=[],Review.loadedPhoto=[],Review.checkGridHighMsg=[],Review.checkGridMsg=[],window.ShopifyAnalytics)i=window.ShopifyAnalytics&&ShopifyAnalytics.lib&&ShopifyAnalytics.lib.config&&ShopifyAnalytics.lib.config.Trekkie.defaultAttributes.shopId,i||(i=shopifyObj.shop_id),Review.shop_id=e.A.shop_id=i,"undefined"!=typeof Shopify&&Shopify.theme&&(e.A.theme_store_id=Shopify.theme.theme_store_id,e.A.themeId=Shopify.theme.id),d=window.ShopifyAnalytics&&window.ShopifyAnalytics.meta.page.pageType;else{if(!document.querySelector("#seal_shop_id"))return;"undefined"!=typeof tt_page_type&&(d=tt_page_type);const t=JSON.parse(document.querySelector("#seal_shop_id").textContent);if(Review.shop_id=e.A.shop_id=t,"product"===d){const t=JSON.parse(document.querySelector("#tt_product").textContent);Review.productId=e.A.productId=t.id,e.A.productName=t.title,e.A.productImages=t.image_url}}Review.pageType=d,e.A.pageType=d,e.A.isHomePage="index"===d||"home"===d,e.A.isCollPage="collection"===d,e.A.isProPage="product"===d,e.A.isCartPage="cart"===d;const c=await n.zG.getInstallStatus();if(null!==c[0]||-1===c[1].code)return;if(e.A.isProRatingUpdate=1===c[1].product_rating_updating,e.A.isSettingUpdate=1===c[1].shop_setting_updating,e.A.isReviewsUpdate=1===c[1].product_review_updating,e.A.isReviewsUpdate?e.A.revReqParam=(new Date).getTime():e.A.revReqParam=c[1].product_review_updating,(0,t.gsSession)("set","instagram_is_install",c[1].instagram_is_install),1!==c[1].review_is_install)return;const p="undefined"!=typeof vstar_review_settings&&vstar_review_settings;if(p&&!e.A.isSettingUpdate?l=p:([s,l]=await n.zG.getUserSetting(),null!==s&&(await(0,t.setDelay)(1e3),[s,l]=await n.zG.getUserSetting()),null!==s&&(await(0,t.setDelay)(3e3),[s,l]=await n.zG.getUserSetting())),e.A.isActWdoRev=1===l.sidetab_setting.sidetab_is_enabled,a.A.setPageReview(i),!e.A.isProPage){const i=(0,t.$dqsa)(".pagefly-star-rating-sealapp"),n=(0,t.$dqsa)(".ecom-star-rating-sealapp"),s=(0,t.$dqsa)(".custom-vstar-rating-widget");if(0!==i.length){const t=".pagefly-star-rating-sealapp";a.A.isCollRevWord=!0,e.A.hasPyRating=!0,a.A.customCollTarSel=t,Review.collTarget=Array.from(i)}else 0!==n.length&&(a.A.customCollTarSel=".ecom-star-rating-sealapp",e.A.hasEcomRt=!0,Review.collTarget=Array.from(n));0!==s.length&&(a.A.customCollTarSel=".custom-vstar-rating-widget",e.A.hasPyRating=!0,Review.collTarget=Array.from(s))}if("undefined"!=typeof trustooBeforeExecute&&trustooBeforeExecute(e.A,a.A),e.A.isProPage||e.A.isCollPage||e.A.isHomePage||e.A.isCartPage||Shopify.designMode||a.A.isPageReview||e.A.isActWdoRev||a.A.otherPageColl||e.A.hasPyRating||e.A.hasEcomRt){const i=(0,t.gsSession)("get","vstarTimestamp");if(i)e.A.timestamp=i,e.A.isCssLoaded=!0;else{e.A.isFirstExecute=!0;const i=(new Date).getTime();(0,t.gsSession)("set","vstarTimestamp",i),e.A.timestamp=i}const s={trustoo_reviews:[],trustoo_show_reviews:[],trustoo_all_reviews:[],trustoo_album_reviews:[]};(0,t.gsSession)("set","tt_detail_reviews",JSON.stringify(s));const d=l.rating_icon_type||1,c=l.verified_icon_type||1,p=(0,t.gsSession)("get","ttRatingIcons");let u={};p&&(u=JSON.parse(p),e.A.ratingIconSvg=u["star"+d],e.A.badgeIconSvg=u["badge"+c]),1===d&&(e.A.ratingIconSvg=q.A.star),1===c&&(e.A.badgeIconSvg=q.A.verified),e.A.ratingIconSvg&&e.A.badgeIconSvg||n.zG.getIcons().then((i=>{const n=["star","rounded","spikes","surrounded","fire","heart","diamond","crown","trophy","shirt","skirt","bag","tie","cup","leaf","seedling","footprint","chef"][d-1];if(i[0])e.A.ratingIconSvg=q.A.star,e.A.badgeIconSvg=q.A.verified;else{const t=JSON.parse(i[1]);e.A.ratingIconSvg=t[n],e.A.badgeIconSvg=t["badge"+c]}(0,t.$dqsa)(".vstar-star .pending").forEach((t=>{t.innerHTML=e.A.ratingIconSvg,t.classList.remove("pending")})),(0,t.$dqsa)("#vstar-reviews .user-verified.pending").forEach((t=>{t.insertAdjacentHTML("afterbegin",e.A.badgeIconSvg),t.classList.remove("pending")})),u["star"+d]=e.A.ratingIconSvg,u["badge"+c]=e.A.badgeIconSvg,(0,t.gsSession)("set","ttRatingIcons",JSON.stringify(u))}));let v=document.createElement("style");v.id="trustoo-css",document.head.appendChild(v),e.A.globalStyle=v,a.A.setUserNeed(),Object.assign(e.A,a.A);const g=async function(){if(e.A.isProPage){let t=shopifyObj.productId,i=shopifyObj.productImage[0],n=shopifyObj.productName;Review.productId=t,Object.assign(e.A,{productId:t,productImages:i,productName:n});const s=location.href.indexOf("/products/");-1!==s&&(e.A.productHandle=location.href.substring(s+10))}(0,t.imgLoadLimit)(["//cdn.vstar.app/static/images/default.png","//cdn.vstar.app/static/images/video_default.png",`//${e.A.staticBaseUrl}/static/images/sprites/trustoo_sprites.png?${e.A.constructTime}`,"//rtestweb.sealapps.com/static/images/player.png"],3),R(l),function(){let i=Review.baseUrl;if("production"===e.A.env&&(i="cdn.vstar.app"),(0,t.$dqs)('link[href*="trustoo-reviews.min.css"]'))e.A.isCssLoaded=!0;else if("local"!==e.A.env){var n=document.createElement("link");n.rel="stylesheet";const s=`https://${i}/static/dist/css/trustoo-reviews.min.css?`+e.A.constructTime;n.href=s,n.onerror=function(){this.href=s},n.onload=async function(){if(!e.A.isCssLoaded){e.A.isCssLoaded=!0;const i=(0,t.$dqs)("#vstar-tab");i&&(i.style.display="flex");const n=(0,t.$dqs)(".product-icon-list.vstar-star");n&&(n.style.display="block"),setTimeout((()=>{e.A.reviewsDom&&e.A.firstPageShow&&(e.A.reviewsDom.classList.remove("pending"),(0,t.$dqs)(".tt-review-list",e.A.reviewsDom).style.opacity=1)}),0)}e.A.isFirstExecute&&e.A.reviewsDom&&e.A.isGrid&&checkGridHigh((0,t.$dqs)(".tt-review-list",e.A.reviewsDom),!0)},document.head.appendChild(n)}else e.A.isCssLoaded=!0;var s=document.createElement("link");s.rel="stylesheet",s.href=`https://${i}/static/css/index.css`;var o=document.createElement("link");o.rel="stylesheet",o.href=`https://${i}/static/css/trustoo-sprite.min.css`,document.head.appendChild(s),document.head.appendChild(o)}(),function(){let i=[];if(!(0,t.$dqs)(".tt-review-detail-js")){let t=`https://${e.A.staticBaseUrl}/static/js/tt-review-detail.js?`+e.A.constructTime;"local"===e.A.env&&(t=`../../js/tt-review-detail.js?${(new Date).getTime()}`),i.push(t)}i.forEach((t=>{let e=document.createElement("script");e.src=t,e.setAttribute("defer",!0),-1!==t.indexOf("tt-review-detail")&&(e.className="tt-review-detail-js",e.onload=function(){(0,o.insertReviewDetail)()}),document.head.appendChild(e)}))}(),(e.A.isProPage||e.A.isHomePage||a.A.isPageReview)&&window.addEventListener("resize",(function(){!e.A.isMobile&&e.A.isGrid&&(0,r.mR)()}))};a.A.executeDelay&&await(0,t.setDelay)(a.A.executeDelay),g()}};setTimeout((()=>S()),100)})()})(); //# sourceMappingURL=seal-review.min.js.map