PageSourceSearch

https://www.focusnordic.pl/_next/static/chunks/379.7d1092b5a9f9d78e.js

js focusnordic.pl collected 2026-10-07 20:35:56 UTC 7,102 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[379],{9766:function(e,t,r){var n={EventEmitter:r(7333),EmitterSubscription:r(2677)};e.exports=n},7333:function(e,t,r){"use strict";var n=r(2677),i=r(8231),s=r(3759),o=r(139),u=function(){function e(){this._subscriber=new i,this._currentSubscription=null}var t=e.prototype;return t.addListener=function(e,t,r){return this._subscriber.addSubscription(e,new n(this._subscriber,t,r))},t.once=function(e,t,r){var n=this;return this.addListener(e,function(){n.removeCurrentListener(),t.apply(r,arguments)})},t.removeAllListeners=function(e){this._subscriber.removeAllSubscriptions(e)},t.removeCurrentListener=function(){this._currentSubscription||s(!1),this._subscriber.removeSubscription(this._currentSubscription)},t.listeners=function(e){var t=this._subscriber.getSubscriptionsForType(e);return t?t.filter(o.thatReturnsTrue).map(function(e){return e.listener}):[]},t.emit=function(e){var t=this._subscriber.getSubscriptionsForType(e);if(t){for(var r=Object.keys(t),n=0;n<r.length;n++){var i=t[r[n]];i&&(this._currentSubscription=i,this.__emitToSubscription.apply(this,[i].concat(Array.prototype.slice.call(arguments))))}this._currentSubscription=null}},t.__emitToSubscription=function(e,t){var r=Array.prototype.slice.call(arguments,2);e.listener.apply(e.context,r)},e}();e.exports=u},2677:function(e,t,r){"use strict";var n=function(e){function t(t,r,n){var i;return(i=e.call(this,t)||this).listener=r,i.context=n,i}return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e,t}(r(7024));e.exports=n},7024:function(e){"use strict";var t=function(){function e(e){this.subscriber=e}return e.prototype.remove=function(){this.subscriber&&(this.subscriber.removeSubscription(this),this.subscriber=null)},e}();e.exports=t},8231:function(e,t,r){"use strict";var n=r(3759),i=function(){function e(){this._subscriptionsForType={},this._currentSubscription=null}var t=e.prototype;return t.addSubscription=function(e,t){t.subscriber!==this&&n(!1),this._subscriptionsForType[e]||(this._subscriptionsForType[e]=[]);var r=this._subscriptionsForType[e].length;return this._subscriptionsForType[e].push(t),t.eventType=e,t.key=r,t},t.removeAllSubscriptions=function(e){void 0===e?this._subscriptionsForType={}:delete this._subscriptionsForType[e]},t.removeSubscription=function(e){var t=e.eventType,r=e.key,n=this._subscriptionsForType[t];n&&delete n[r]},t.getSubscriptionsForType=function(e){return this._subscriptionsForType[e]},e}();e.exports=i},139:function(e){"use strict";function t(e){return function(){return e}}var r=function(){};r.thatReturns=t,r.thatReturnsFalse=t(!1),r.thatReturnsTrue=t(!0),r.thatReturnsNull=t(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},3759:function(e){"use strict";var t=function(e){};e.exports=function(e,r){for(var n,i=arguments.length,s=Array(i>2?i-2:0),o=2;o<i;o++)s[o-2]=arguments[o];if(t(r),!e){if(void 0===r)n=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=0;(n=Error(r.replace(/%s/g,function(){return String(s[u++])}))).name="Invariant Violation"}throw n.framesToPop=1,n}}},1379:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return k}});var n=r(5893),i=r(7294),s=r(5119),o=r(2729),u=r(8806),c=r(3359);function a(){let e=(0,o._)(["\n    query NotifyMeWhenProductBackInStock($productId: String!, $emailAddress: String!, $productName: String!) {\n  notifyMeWhenProductBackInStock(\n    productId: $productId\n    emailAddress: $emailAddress\n    productName: $productName\n  ) {\n    success\n  }\n}\n    "]);return a=function(){return e},e}function l(){let e=(0,o._)(["\n    query UnsubscribeFromNotifyMeWhenProductBackInStock($productId: String!, $emailAddress: String!, $productName: String!) {\n  unsubscribeFromNotifyMeWhenProductBackInStock(\n    productId: $productId\n    emailAddress: $emailAddress\n    productName: $productName\n  ) {\n    success\n  }\n}\n    "]);return l=function(){return e},e}let d={},p=(0,u.Ps)(a()),f=(0,u.Ps)(l());var m=r(1065),b=r(2558),h=r(2283),v=r(919),y=r(9766),S=r(1955);let _=e=>{try{if(!e)return{};let t=JSON.parse(e);if(t)return t;return{}}catch(e){return{}}},g=e=>{S.Z.set(m.Im,JSON.stringify(e),{domain:(0,v.h0)(window.location.hostname),expires:(0,v.RX)()})},x=new y.EventEmitter,M="notifyMeSubscriptionEvent";var k=e=>{let{productId:t,productName:r,...o}=e,[u,a]=i.useState(!1),[l,v]=i.useState(""),[y,k]=i.useState(!1),[A,T]=i.useState(""),N=i.useRef(),F=(0,b.nt)(b.gR.shared("NotifyMe"),["notifyMeLabel","notifyMeDescription","notifyMeYourEmail","notifyMeSubmitButtonLabel","notifyMeConfirmationMessage","dontNotifyMeLabel","dontNotifyMeConfirmationMessage"]),I=(0,b.nt)(b.gR.shared("Common"),["emailRequiredLabel","invali
1dEmailFormatLabel"]);i.useEffect(()=>{let e=_(S.Z.get(m.Im)),r=x.addListener(M,e=>{e.productId===t&&k(e.isSubscribed)});return(null==e?void 0:e[t])&&k(!0),()=>{r.remove()}},[t]),i.useEffect(()=>{setTimeout(()=>{u&&(null==N?void 0:N.current)&&N.current.focus()},100)},[u,N]);let{handleSubmit:C,register:L,formState:E}=(0,h.cI)({mode:"onChange",defaultValues:{emailAddress:""}}),{errors:R}=E,[$,{loading:j}]=function(e){let t={...d,...e};return c.t(p,t)}({onCompleted:e=>{var r;if(e&&(null===(r=e.notifyMeWhenProductBackInStock)||void 0===r?void 0:r.success)){let e=_(S.Z.get(m.Im));e&&(e[t]=A,g(e)),T(""),k(!0),v(F.notifyMeConfirmationMessage),a(!1),x.emit(M,{productId:t,isSubscribed:!0})}else v("")}}),[w,{loading:P}]=function(e){let t={...d,...e};return c.t(f,t)}({onCompleted:e=>{var r;if(e&&(null===(r=e.unsubscribeFromNotifyMeWhenProductBackInStock)||void 0===r?void 0:r.success)){let e=_(S.Z.get(m.Im));e&&(delete e[t],g(e)),k(!1),v(F.dontNotifyMeConfirmationMessage),x.emit(M,{productId:t,isSubscribed:!1})}else v("")}});return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.kC,{position:"relative",children:y?(0,n.jsx)(s.zx,{size:"small",icon:"check-circle-outlined",disabled:P,...o,onClick:()=>{let e=_(S.Z.get(m.Im));(null==e?void 0:e[t])&&w({variables:{productId:t,emailAddress:null==e?void 0:e[t],productName:r}})},children:F.dontNotifyMeLabel}):(0,n.jsx)(s.zx,{size:"small",icon:"bell",...o,onClick:e=>{e.stopPropagation(),a(!0)},children:F.notifyMeLabel})}),(0,n.jsxs)(s.Yy,{isVisible:u,heading:F.notifyMeLabel,maxw:{_:"none",m:59},onClose:()=>a(!1),children:[(0,n.jsx)(s.xv,{mb:3,children:F.notifyMeDescription}),(0,n.jsxs)(s.kC,{as:"form",onSubmit:C(e=>{T(e.emailAddress),$({variables:{productId:t,emailAddress:e.emailAddress,productName:r}})}),flexDirection:"column",w:1,children:[(0,n.jsx)(s.nv,{placeholder:F.notifyMeYourEmail,type:"email",name:"emailAddress",fieldSize:"small",helperText:R.emailAddress?R.emailAddress.message:void 0,error:!!R.emailAddress,inputRef:e=>{L(e,{required:I.emailRequiredLabel,pattern:{value:m.$S,message:I.invalidEmailFormatLabel}}),N.current=e}}),(0,n.jsx)(s.zx,{type:"submit",mt:2,stretch:!0,disabled:j,children:F.notifyMeSubmitButtonLabel})]})]}),l&&(0,n.jsx)(s.FN,{message:l,onClose:()=>v("")})]})}}}]);

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.