PageSourceSearch

https://www.kanopy.com/kui-assets/link-D1Dc_OsP.js

js kanopy.com collected 2026-09-24 08:30:15 UTC 5,091 bytes, 2 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"f2e84f41ed6c0beba456d92f07f35b71be0836fd"};var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="4be548b0-2e61-4d53-b3a8-9d32cea32b75",e._sentryDebugIdIdentifier="sentry-dbid-4be548b0-2e61-4d53-b3a8-9d32cea32b75")}catch(i){}}();import{V as e,n as t,g as i,bn as s,C as n,K as a,U as o,S as c,c as r,N as l,L as d,ak as _}from"./client-ANZ33kkl.js";const u=t(e.extend({}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"link-device-header"},[t("h1",{staticClass:"link-device-title"},[e._v(e._s("Link Device".localized()))])])},[],!1,null,"515e660d").exports,p=""+new URL("link-device-DcRu2wGN.svg",import.meta.url).href,h=""+new URL("link-device-success-TLZTS_BW.svg",import.meta.url).href;const v=t(e.extend({name:"LinkDeviceContent",data:()=>({activation_code:"",link_successful:!1,link_error:!1}),computed:{is_link_button_disabled(){return null==this.activation_code.match(/^[0-9A-Za-z]{6}$/)},link_device_image(){return this.link_successful?h:p},activation_code_title(){return this.link_successful?"Device Linked Successfully!".localized():"Enter the Activation Code".localized()},activation_code_message(){if(this.link_successful){return`${"Your device is now linked to your Kanopy account. To link another device, return to the previous screen to enter a new code.".localized()}<br><br>${"Experiencing technical issues? Visit our {support_page_link} for more information.".localized({support_page_link:`<a href="https://help.kanopy.com/hc/en-us" target="_blank">${"Support Page".localized()}</a>`})}`}return"Please enter the code showing on your Kanopy app to link your device to your Kanopy account.".localized()},non_com_user_text(){return this.$kuistore.getters["user/is_consumer_user"]?void 0:"This feature isn't available when previewing Kanopy.".localized()}},methods:{send_auth_code(e){this.is_link_button_disabled||this.$kapi.instance().kapiAuthcodeControllerUpdateAuthcode({authcode:this.activation_code,updateAuthcodeRequestDto:{mode:o.Activate},xVersion:a.XVersion}).then(e=>{this.link_successful=!0}).catch(e=>{this.clear_input(),this.link_error=!0})},on_input_update(e){this.link_error=!1,this.activation_code=e},on_submit(e){this.send_auth_code(e)},on_clicked(){this.send_auth_code(this.activation_code)},clear_input(){const e=this.$refs.link_device_input;e.reset(),e.focus()},on_back_pressed(){return!this.link_successful||(this.link_successful=!1,!1)}},components:{CTAButton:n,HoverableDiv:s,PinInput:i}}),function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"link-device-content"},[t("div",{staticClass:"link-container"},[t("img",{staticClass:"link-device-image",attrs:{src:e.link_device_image,alt:""}}),t("div",{staticClass:"activation-code-container"},[t("h6",{staticClass:"activation-code-title"},[e._v(e._s(e.activation_code_title))]),t("p",{staticClass:"activation-code-message",domProps:{innerHTML:e._s(e.activation_code_message)}}),e.link_successful?e._e():t("pin-input",{ref:"link_device_input",staticClass:"link-device-input",attrs:{size:6,error_msg:e.link_error?"Invalid code or code already activated. Please try again.".localized():void 0,aria_label:"Enter the Activation Code".localized(),disabled:null!=e.non_com_user_text},on:{update_value:e.on_input_update,submit:e.on_submit}})],1)]),t("hoverable-div",{staticClass:"non-com-user-hover",attrs:{tooltip_text:e.non_com_user_text}},[e.link_successful?e._e():t("c-t-a-button",{staticClass:"link-button",attrs:{title:"Link Device".localized(),disabled:e.is_link_button_disabled||null!=e.non_com_user_text},on:{click:e.on_clicked}})],1)],1)},[],!1,null,"fe35b2d6").exports;const k=t(e.extend({name:"LinkDevice",beforeRouteLeave(e,t,i){_.inNextEventTick(()=>{if(!this.has_pressed_back)return i();this.has_pressed_back=!1;const e=this.$refs.link_device_content.on_back_pressed();i(e)})},layout:"default",async middleware(e){await new c(r).overrideGuardHandler("logged_out",e=>(l.redirect(e,`/login?destination=${d.LinkDevice}`),!0)).guard(e)},head:{title:"Link Device | Kanopy"},data:()=>({has_pressed_back:!1}),mounted(){window.addEventListener("popstate",this.on_back_button_pressed),this.require_parental_controls_pin&&this.$kuistore.dispatch("site/require_parental_controls_pin")},beforeDestroy(){window.removeEventListener("popstate",this.on_back_button_pressed)},computed:{require_parental_controls_pin(){return this.$kuistore?.state.site?.is_in_kids_mode&&this.$kuistore.getters["user/has_parental_control_on"]}},methods:{on_back_button_pressed(){this.has_pressed_back=!0}},components:{LinkDeviceHeader:u,LinkDeviceContent:v}}),function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"link-device-container"},[e("link-device-header"),e("link-device-content",{ref:"link_device_content"})],1)},[],!1,null,"65080498").exports;export{k as default};
2//# sourceMappingURL=link-D1Dc_OsP.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.