PageSourceSearch

https://account.zendrop.com/build/assets/guest-Cpv2d7G8.js

js zendrop.com collected 2026-10-02 14:40:48 UTC 3,696 bytes, 2 lines download raw bytes

1import{n as _,E as p,a as g}from"./index-CxHn0Gru.js";import{h,s as o,R as m,g as w,b}from"./index-DK8ess0x.js";import{R as s}from"./roles-BxC5uA8g.js";import{u as c}from"./util-BKLjsQa7.js";const v={props:{height:{type:String,required:!1,default:"40px"}},data(){return{dataTemplateId:"5419b6ffb0d04a076446a9af"}},computed:{themeType(){return h.type}},watch:{themeType:{handler:"refreshWidget",immediate:!0}},mounted:function(){p.$on("load-trust-pilot-widget",(t={loadMicroStar:!1})=>{t.loadMicroStar&&(this.dataTemplateId="5419b732fbfb950b10de65e5"),this.showTrustBoxWidget()})},methods:{showTrustBoxWidget(){const t=this.$refs.trustpilotWidgetBox;window.Trustpilot&&t&&window.Trustpilot.loadFromElement(t)},refreshWidget(){this.$nextTick(()=>{window.Trustpilot&&(window.Trustpilot.Modules.WidgetManagement.removeWidget(this.$refs.trustpilotWidgetBox),window.Trustpilot.Modules.WidgetManagement.createWidget(this.$refs.trustpilotWidgetBox))})}}};var T=function(){var a=this,e=a._self._c;return e("div",{staticClass:"trustpilot-div"},[e("div",{ref:"trustpilotWidgetBox",staticClass:"trustpilot-widget",attrs:{"data-locale":"en-US","data-template-id":a.dataTemplateId,"data-businessunit-id":"5e4fb39b38d2d60001f5e904","data-style-height":a.height,"data-style-width":"100%","data-theme":a.themeType}},[e("a",{attrs:{href:"https://www.trustpilot.com/review/zendrop.com",target:"_blank",rel:"noopener"}},[a._v(" Trustpilot ")])])])},y=[],S=_(v,T,y,!1,null,null);const B=S.exports,W=(t,a,e)=>{o.getters["auth/user"].role_id!==1?e("/dashboard"):e()},A=Object.freeze(Object.defineProperty({__proto__:null,default:W},Symbol.toStringTag,{value:"Module"})),k=async(t,a,e)=>{var r,n,l;if(o.getters["auth/check"])[s.ADMIN,s.SUPPORT,s.SOURCING_MANAGER].includes(o.getters["auth/user"].role_id)?window.location=config.adminurl+"/users":o.getters["auth/user"].role_id===s.SUPPLIER&&(window.location=config.supplierurl+"/orders"),e();else{const i=await g.get(m.userProfile.attemptToLoginAsReviwer),d=window.location.hostname;if(i.data.response=="success"&&d.substring(d.indexOf("."))==".herokuapp.com")o.dispatch("auth/updateUser",{user:i.data.user}),o.dispatch("auth/saveToken",{token:i.data.token}),e();else{const u=((r=t.query)==null?void 0:r.partner)||((n=new URLSearchParams(document.location.search))==null?void 0:n.get("partner"));if(c.getAffiliateUrl(u)){window.location=c.getAffiliateUrl(u);return}if(t.path.startsWith("/product")&&((l=t==null?void 0:t.params)!=null&&l.id))e();else{const f=window.location.href;window.location=`${config.public_url}/login?continue=${encodeURIComponent(f)}`}}}},z=Object.freeze(Object.defineProperty({__proto__:null,default:k},Symbol.toStringTag,{value:"Module"})),M=async(t,a,e)=>{if(!o.getters["auth/check"]&&o.getters["auth/token"])try{await o.dispatch("auth/fetchUser")}catch{}e()},C=Object.freeze(Object.defineProperty({__proto__:null,default:M},Symbol.toStringTag,{value:"Module"})),O=async(t,a,e)=>{if(o.getters["auth/check"]){let r=o.getters["auth/user"];r.role_id!==1&&r.role_id!==5&&r.needs_to_complete_registration&&setTimeout(function(){w.emit("account:complete-registration",{canClose:!1})},0)}e()},I=Object.freeze(Object.defineProperty({__proto__:null,default:O},Symbol.toStringTag,{value:"Module"})),R=(t,a,e)=>{if(o.getters["auth/check"]){const r=o.getters["auth/user"];r.role_id===1||r.role_id===5?window.location=config.adminurl+"/users":(b.push({event:"Auth_Successful",user_id:r.id,email:r.email}),window.location=config.userurl+"/dashboard")}else e()},$=Object.freeze(Object.defineProperty({__proto__:null,default:R},Symbol.toStringTag,{value:"Module"}));export{B as T,$ as _,I as a,C as b,z as c,A as d};
2//# sourceMappingURL=guest-Cpv2d7G8.js.map

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