PageSourceSearch

https://www.boersen-zeitung.de/8065.d60823b060cd35ee.js

js boersen-zeitung.de collected 2026-09-24 09:25:49 UTC 9,871 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([[8065],{8065(G,_,p){p.r(_),p.d(_,{CouponComponent:()=>b});var C=p(467),s=p(375),m=p(1210);const O={couponValidAction:"purple://app/home/open"};var f=p(8251),T=p(9352),u=p(610),R=p(35),d=p(4404),E=p(8909),l=p(4341),g=p(6962),h=p(7240),v=p(9769),D=p(6067),o=p(5547);function I(e,c){1&e&&o.nrm(0,"div",13)}function N(e,c){if(1&e&&o.nVh(0,I,1,0,"div",13),2&e){const i=o.XpG();o.vxM(i.couponActivateLoading?0:-1)}}function A(e,c){1&e&&o.nrm(0,"storefront-spinner")}function x(e,c){if(1&e&&o.nVh(0,A,1,0,"storefront-spinner"),2&e){const i=o.XpG();o.vxM(i.couponActivateLoading?0:-1)}}function U(e,c){1&e&&o.nrm(0,"div",13)}function y(e,c){if(1&e&&o.nVh(0,U,1,0,"div",13),2&e){const i=o.XpG().$implicit,t=o.XpG();o.vxM(t.couponDeleteLoading===i?0:-1)}}function P(e,c){1&e&&o.nrm(0,"storefront-spinner")}function L(e,c){if(1&e&&o.nVh(0,P,1,0,"storefront-spinner"),2&e){const i=o.XpG().$implicit,t=o.XpG();o.vxM(t.couponDeleteLoading===i?0:-1)}}function V(e,c){if(1&e){const i=o.RV6();o.j41(0,"div",12)(1,"div",14),o.EFF(2),o.k0s(),o.j41(3,"div",15),o.bIt("click",function(n){const a=s.eBV(i).$implicit,r=o.XpG();return s.Njj(r.onDeactivateCoupon(a,n))})("keydown.enter",function(n){const a=s.eBV(i).$implicit,r=o.XpG();return n.preventDefault(),s.Njj(r.onDeactivateCoupon(a,n))})("keydown.space",function(n){const a=s.eBV(i).$implicit,r=o.XpG();return n.preventDefault(),s.Njj(r.onDeactivateCoupon(a,n))}),o.nrm(4,"span",16),o.nVh(5,y,1,1)(6,L,1,1),o.k0s()()}if(2&e){const i=c.$implicit,t=o.XpG();o.R7$(2),o.JRh(i),o.R7$(3),o.vxM(t.domHelper.leanDom?5:6)}}function k(e,c){1&e&&o.nrm(0,"div",17)}function S(e,c){if(1&e&&o.nVh(0,k,1,0,"div",17),2&e){const i=o.XpG();o.vxM(i.couponsLoading?0:-1)}}function B(e,c){1&e&&o.nrm(0,"storefront-spinner",18)}function F(e,c){if(1&e&&o.nVh(0,B,1,0,"storefront-spinner",18),2&e){const i=o.XpG();o.vxM(i.couponsLoading?0:-1)}}let b=(()=>{class e extends m.${constructor(){super(...arguments),this.store=(0,s.WQX)(f.B),this.dialog=(0,s.WQX)(T.o),this.purpleService=(0,s.WQX)(R.Wj),this.defaultConfig={...O},this.couponsLoading=!0,this.couponActivateLoading=!1,this.couponDeleteLoading=null}static{this.type="coupon"}ngOnInit(){super.ngOnInit(),this.loadCoupons()}onConfigChanges(){this.changeDetectorRef.markForCheck()}loadCoupons(){var i=this;return(0,C.A)(function*(){try{i.couponsLoading=!0,i.couponCodes=yield i.purpleService.getSubscriptionCodes()}catch{i.couponCodes=[]}i.couponsLoading=!1,i.changeDetectorRef.detectChanges()})()}onActivateCoupon(i){var t=this;return(0,C.A)(function*(){i.preventDefault(),t.couponActivateLoading=!0,t.couponCode.trim();try{yield t.purpleService.addSubscriptionCode(t.couponCode.toUpperCase()),t.store.dispatch((0,u.k4)({url:window.location.href,key:"SUBSCRIPTION_CODE_ACTIVATED",params:t.getTrackingParams()})),t.couponActivateLoading=!1,yield t.loadCoupons(),t.couponCode="",t.changeDetectorRef.detectChanges();try{yield t.dialog.confirm("COUPON_VALID_MESSAGE","COUPON_VALID_TITLE","COUPON_VALID_BUTTON_OK","COUPON_VALID_BUTTON_CANCEL"),yield t.purpleService.openActionUrl(t.config.couponValidAction)}catch{}}catch(n){t.couponActivateLoading=!1,t.changeDetectorRef.detectChanges(),n.code===d.ERROR_CODE.NETWORK?(t.store.dispatch((0,u.k4)({url:window.location.href,key:"SUBSCRIPTION_CODE_ACTIVATED_ERROR_OFFLINE",params:t.getTrackingParams()})),t.dialog.alert("ERROR_COUPON_OFFLINE","DIALOG_ERROR","ERROR_COUPON_OFFLINE_BUTTON")):n.code===d.ERROR_CODE.DUPLICATE_CODE?(t.store.dispatch((0,u.k4)({url:window.location.href,key:"SUBSCRIPTION_CODE_ACTIVATED_ERROR_EXISTS",params:t.getTrackingParams()})),t.dialog.alert("ERROR_COUPON_EXISTS","DIALOG_ERROR","ERROR_COUPON_EXISTS_BUTTON")):(t.store.dispatch((0,u.k4)({url:window.location.href,key:"SUBSCRIPTION_CODE_ACTIVATED_ERROR_INVALID",params:t.getTrackingParams()})),t.dialog.alert("ERROR_COUPON_INVALID","DIALOG_ERROR","ERROR_COUPON_INVALID_BUTTON"))}})()}onDeactivateCoupon(i,t){var n=this;return(0,C.A)(function*(){t.preventDefault();try{yield n.dialog.confirm({text:"COUPON_DEACTIVATE_MESSAGE",args:[i]},"COUPON_DEACTIVATE_TITLE","COUPON_DEACTIVATE_BUTTON_CONFIRM","COUPON_DEACTIVATE_BUTTON_CANCEL"),n.c
1ouponDeleteLoading=i;try{yield n.purpleService.removeSubscriptionCode(i.toUpperCase()),n.store.dispatch((0,u.k4)({url:window.location.href,key:"SUBSCRIPTION_CODE_DEACTIVATED",params:n.getTrackingParams()})),yield n.loadCoupons(),n.couponDeleteLoading=null,n.changeDetectorRef.detectChanges()}catch(a){n.couponDeleteLoading=null,n.changeDetectorRef.detectChanges(),a.code===d.ERROR_CODE.NETWORK?(n.store.dispatch((0,u.k4)({url:window.location.href,key:"SUBSCRIPTION_CODE_DEACTIVATED_ERROR_OFFLINE",params:n.getTrackingParams()})),n.dialog.alert("ERROR_COUPON_DEACTIVATE_OFFLINE","DIALOG_ERROR","ERROR_COUPON_DEACTIVATE_OFFLINE_BUTTON")):a.code===d.ERROR_CODE.UNKNOWN_CODE?(n.store.dispatch((0,u.k4)({url:window.location.href,key:"SUBSCRIPTION_CODE_DEACTIVATED_ERROR_UNKNOWN",params:n.getTrackingParams()})),n.dialog.alert("ERROR_COUPON_DEACTIVATE_UNKNOWN","DIALOG_ERROR","ERROR_COUPON_DEACTIVATE_UNKNOWN_BUTTON")):(n.store.dispatch((0,u.k4)({url:window.location.href,key:"SUBSCRIPTION_CODE_DEACTIVATED_ERROR",params:n.getTrackingParams()})),n.dialog.alert("ERROR_COUPON_DEACTIVATE","DIALOG_ERROR","ERROR_COUPON_DEACTIVATE_BUTTON"))}}catch{console.debug("coupon code will not deleted")}})()}onClickReset(i){this.couponCode="",this.changeDetectorRef.detectChanges()}getTrackingParams(){return{SUBSCRIPTION_CODE:this.couponCode}}static{this.\u0275fac=(()=>{let i;return function(n){return(i||(i=o.xGo(e)))(n||e)}})()}static{this.\u0275cmp=o.VBU({type:e,selectors:[["storefront-coupon"]],features:[o.Jv_([f.B]),o.Vt3],decls:21,vars:9,consts:[[1,"coupon-intro"],["storefrontTranslate","COUPON_TITLE"],["storefrontTranslate","COUPON_TEASER",1,"coupon-teaser"],[1,"coupon-container"],["storefrontTranslate","COUPON_CODE_TITLE",1,"coupon-code-title"],[1,"input"],["name","couponCode",3,"ngModelChange","ngModel","placeholder"],["aria-label","clear",1,"icon","icon-delete","reset-btn",3,"mousedown","touchstart"],[1,"coupon-submit",3,"click","disabled"],["storefrontTranslate","COUPON_SUBMIT_BUTTON"],[1,"coupons"],["storefrontTranslate","COUPON_ACTIVATED_TITLE",1,"coupon-activated-title"],[1,"activated-coupon"],[1,"pxp-spinner"],[1,"coupon-code"],["role","button","tabindex","0",1,"coupon-delete",3,"click","keydown.enter","keydown.space"],["storefrontTranslate","COUPON_DEACTIVATE_BUTTON"],[1,"pxp-spinner","coupons-spinner"],[1,"coupons-spinner"]],template:function(t,n){1&t&&(o.j41(0,"div",0),o.nrm(1,"h1",1)(2,"p",2),o.k0s(),o.j41(3,"div",3)(4,"form"),o.nrm(5,"p",4),o.j41(6,"div",5)(7,"input",6),o.nI1(8,"storefrontTranslate"),o.nI1(9,"async"),o.mxI("ngModelChange",function(r){return o.DH7(n.couponCode,r)||(n.couponCode=r),r}),o.k0s(),o.j41(10,"button",7),o.bIt("mousedown",function(r){return n.onClickReset(r)})("touchstart",function(r){return n.onClickReset(r)}),o.k0s()(),o.j41(11,"button",8),o.bIt("click",function(r){return n.onActivateCoupon(r)}),o.nrm(12,"span",9),o.nVh(13,N,1,1)(14,x,1,1),o.k0s()(),o.j41(15,"div",10),o.nrm(16,"p",11),o.Z7z(17,V,7,2,"div",12,o.fX1),o.nVh(19,S,1,1)(20,F,1,1),o.k0s()()),2&t&&(o.R7$(7),o.R50("ngModel",n.couponCode),o.Y8G("placeholder",o.bMT(9,7,o.bMT(8,5,"COUPON_CODE_PLACEHOLDER"))),o.R7$(4),o.Y8G("disabled",n.couponActivateLoading||!n.couponCode||!n.couponCode.length),o.R7$(2),o.vxM(n.domHelper.leanDom?13:14),o.R7$(4),o.Dyx(n.couponCodes),o.R7$(2),o.vxM(n.domHelper.leanDom?19:20))},dependencies:[E.M,l.YN,l.qT,l.me,l.BC,l.cb,l.vS,l.cV,g.SpinnerLeanDomComponent,h.SpinnerComponent,v.Jj,D.D],styles:["storefront-coupon,.pxp-coupon{display:block;padding:var(--couponPaddingVert) var(--couponPaddingHoriz)}storefront-coupon h1,.pxp-coupon h1{text-align:center}storefront-coupon h1,storefront-coupon p,storefront-coupon h3,storefront-coupon .input,.pxp-coupon h1,.pxp-coupon p,.pxp-coupon h3,.pxp-coupon .input{margin:var(--couponElementMarginVert) var(--couponElementMarginHoriz)}storefront-coupon form,.pxp-coupon form{display:flex;flex-direction:column}storefront-coupon form .input,.pxp-coupon form .input{position:relative}storefront-coupon form .input input,.pxp-coupon form .input input{width:100%}storefront-coupon form .input .reset-btn,.pxp-coupon form .input .reset-btn{position:absolute;top:0;right:0;z-index:1;display:flex;align-items:center;height:100%;padding:calc(var(--gutter) / 2);font-size:10px;cursor:pointer}storefront-coupon form .coupon-submit,.pxp-coupon form .coupon-submit{position:relative;display:flex;align-items:center;justify-content:center;width:100%;transition:all .3s ease-in-out}storefront-coupon form button,.pxp-coupon form button{color:#fff;cursor:pointer;background-color:var(--primaryColor)}storefront-coupon form button[disabled],.pxp-coupon form button[disabled]{opacity:.5}storefront-coupon .coupons,.pxp-coupon .coupons{position:relative;display:flex;flex-direction:column;justify-content:center}storefront-coupon .coupons .activated-coupon,.pxp-coupon .coupons .activated-coupon{display:flex;justify-content:space-between}storefront-coupon .coupons .activated-coupon .coupon-delete,.pxp-coupon .coupons .activated-coupon .coupon-delete{position:relative;display:flex;align-items:center;justify-content:center;transition:all .3s ease-in-out}storefront-coupon .coupons storefront-spinner.coupons-spinner,storefront-coupon .coupons .pxp-spinner.coupons-spinner,.pxp-coupon .coupons storefront-spinner.coupons-spinner,.pxp-coupon .coupons .pxp-spinner.coupons-spinner{position:relative;height:80px}storefront-coupon storefront-spinner,storefront-coupon .pxp-spinner,.pxp-coupon storefront-spinner,.pxp-coupon .pxp-spinner{position:absolute;top:0;left:0;display:flex;align-items:center;justify-content:center;width:100%;height:100%;padding:8px}\n"],encapsulation:2})}}return e})()}}]);

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.