"use strict";Vue.component("sso-permissions",{_scopeId:"data-v-6b960ee6",owCSS:".sso[data-v-6b960ee6]{position:relative;padding:25px;text-align:center;margin:8% auto 16px;width:372px;border-radius:4px;background-color:#fff;box-shadow:0 2px 4px 0 rgba(0,0,0,.1)}.sso__title[data-v-6b960ee6]{font-size:18px;font-weight:500;padding-bottom:8px;letter-spacing:-.4px}.sso__sub-title[data-v-6b960ee6]{opacity:.5;font-size:14px;line-height:1.21;letter-spacing:-.2px}.sso__tnc[data-v-6b960ee6]{margin:20px 8px;list-style:none;text-align:left;padding:18px 0 10px 10px;background:#f5f5f5;font-size:14px;border-radius:4px;border:1px solid #e5e5e5}.sso__tnc li[data-v-6b960ee6]{height:40px}.sso__tnc-image[data-v-6b960ee6]{display:inline-block;vertical-align:middle;width:30px;text-align:center;padding-right:10px}.sso__tnc-text[data-v-6b960ee6]{display:inline-block;vertical-align:middle;width:calc(95% - 30px)}.sso__cta[data-v-6b960ee6]{padding:15px;border-radius:4px}.sso__cta .btn[data-v-6b960ee6]{display:inline-block;vertical-align:middle;width:40%;border-radius:4px;border:1px solid #000;color:#d7e400;background:#000;padding:10px}.sso__cta .btn.cancel[data-v-6b960ee6]{background:#fff;margin-right:5px;color:#000;text-decoration:none}@media screen and (max-width:500px){.sso[data-v-6b960ee6]{margin:0;background:none;box-shadow:none;width:100%;padding:12px 0 0}.sso__tnc[data-v-6b960ee6]{background:#fff}.sso__cta[data-v-6b960ee6]{position:fixed;bottom:0;left:0;right:0;background:#fff}}@media screen and (max-height:400px){.sso__cta[data-v-6b960ee6]{position:relative}}",render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"sso__wrapper"},[a("div",{staticClass:"sso"},[t.owRegistry["sso-header"]?a("sso-header",{attrs:{hideback:!0},on:{back:t.goback}}):t._e(),t._v(" "),a("div",{staticClass:"sso__content"},[a("div",{staticClass:"sso__title"},[t._v(t._s(t.info.title))]),t._v(" "),a("div",{staticClass:"sso__sub-title"},[t._v("\n                "+t._s(t.info.subtitle)+"\n            ")]),t._v(" "),a("ul",{staticClass:"sso__tnc"},t._l(t.partnerInfo.tnc,function(e){return a("li",[a("div",{staticClass:"sso__tnc-image"},[a("ow-icon",{style:{},attrs:{name:e.name,width:"24",height:"24",viewbox:"0 0 24 24",fill:"#000000"}})],1),t._v(" "),a("div",{staticClass:"sso__tnc-text"},[t._v(t._s(e.text))])])}))]),t._v(" "),a("div",{staticClass:"sso__cta"},[a("div",{staticClass:"btn cancel"},[a("span",{on:{click:t.handleCancelClick}},[t._v("Deny")])]),t._v(" "),a("div",{staticClass:"btn"},[a("span",{on:{click:t.handleApproveClick}},[t._v("Allow")])])])],1)])},staticRenderFns:[],name:"ssoPermissions",computed:{url:function(){return"/api/partner/approve?verificationId="+this.verificationId+"&partnerUserId="+this.partnerInfo.partnerUserId},info:function(){return{title:"Connect with {{partnerInfo.partnerName}}".replace(/{{partnerInfo.partnerName}}/g,this.partnerInfo.partnerName),subtitle:"{{partnerInfo.partnerName}} would like to receive following data and permissions".replace(/{{partnerInfo.partnerName}}/g,this.partnerInfo.partnerName)}}},data:function(){return{toast:{show:!1,type:"",content:""},disableCancelClick:!1,disableApproveClick:!1}},props:{verificationId:String,partnerInfo:Object,partnerUserActions:Object,trackingParams:Object},methods:{fireGA:function(e){var t="cancel"===e?"permission_deny_clicked":"permission_allow_clicked";this.sendGAEvent&&this.sendGAEvent("SSO",t),this.trackEvent&&this.trackEvent({eventName:t,eventValue:this.trackingParams})},handleApproveClick:function(){this.disableApproveClick||(this.fireGA("allow"),this.disableApproveClick=!0,window.location.href=this.url)},handleCancelClick:function(){this.disableCancelClick||(this.fireGA("cancel"),this.disableCancelClick=!0,window.location.href=this.partnerInfo.denyUrl||this.partnerUserActions.denyUrl)}}});
//# sourceMappingURL=../sourcemap/components/sso-permissions.37355357.js.map
