PageSourceSearch

https://unsubby.com/_next/static/chunks/pages/[lang]/my-unsubby/unsubby-home-23c10b00fafca1a9.js

js unsubby.com collected 2026-10-04 02:45:20 UTC 15,139 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2971],{75023:function(e,n,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[lang]/my-unsubby/unsubby-home",function(){return l(4185)}])},34868:function(e,n){"use strict";n.Z={src:"/_next/static/media/doc.072353cb.svg",height:28,width:28,blurWidth:0,blurHeight:0}},59632:function(e,n,l){"use strict";var t=l(85893),i=l(2465),o=l(12397),a=l(56851),s=l(67294),c=l(97650);n.Z=function(e){let{setSelectedCompany:n,placeholder:l,autoFocus:d}=e,[u,r]=(0,s.useState)(""),[v,m]=(0,s.useState)(""),[h,y]=(0,s.useState)([]),[b,p]=(0,s.useState)(""),{selectedLanguages:x,selectedLang:f}=(0,s.useContext)(i.z);(0,s.useEffect)(()=>{null!=u&&u.length>1&&(p("Loading..."),g())},[u]),(0,s.useEffect)(()=>{null!=h&&m(u)},[h]);let g=async()=>{try{var e,n,l;let t=await (0,o.U2)("/company?pageNumber=1&pageSize=".concat(a.IV.COMPANY,"&companyName=").concat(u,"&countryId=").concat(null==f?void 0:f.countryId));y(null==t?void 0:null===(e=t.data)||void 0===e?void 0:e.result),(null==t?void 0:null===(l=t.data)||void 0===l?void 0:null===(n=l.result)||void 0===n?void 0:n.length)==0&&p("No Result Found...")}catch(e){}},j=(e,n)=>{let l=RegExp("(".concat(n,")"),"gi");return e.replace(l,"<mark>$1</mark>")};return(0,t.jsx)("div",{className:"App ",children:(0,t.jsx)("header",{className:"App-header",children:(0,t.jsx)("div",{style:{},children:(0,t.jsx)(c.ReactSearchAutocomplete,{inputSearchString:v,items:h,onSearch:(e,n)=>{r(e)},onHover:e=>{},onSelect:e=>{n(e)},onFocus:()=>{},autoFocus:d,fuseOptions:{keys:["companyName"]},resultStringKeyName:"companyName",formatResult:(e,n)=>(0,t.jsx)("div",{style:{padding:"0px"},children:(0,t.jsx)("span",{className:"text-bold",dangerouslySetInnerHTML:{__html:j(e.companyName,u)}})},e.id),styling:{zIndex:1,clearIconMargin:"0px 25px 0 0",borderRadius:"12px",backgroundColor:"#f9fdfc"},placeholder:l,maxResults:5,showNoResults:""!=b,showNoResultsText:b})})})})}},26346:function(e,n,l){"use strict";var t=l(93967),i=l.n(t),o=l(67294),a=l(97400),s=l(85893);let c=o.forwardRef((e,n)=>{let{bsPrefix:l,variant:t,animation:o="border",size:c,as:d="div",className:u,...r}=e;l=(0,a.vE)(l,"spinner");let v="".concat(l,"-").concat(o);return(0,s.jsx)(d,{ref:n,...r,className:i()(u,v,c&&"".concat(v,"-").concat(c),t&&"text-".concat(t))})});c.displayName="Spinner",n.Z=c},4185:function(e,n,l){"use strict";l.r(n),l.d(n,{__N_SSP:function(){return S},default:function(){return A}});var t=l(85893),i=l(67294),o=l(41664),a=l.n(o),s=l(25675),c=l.n(s);l(34868);var d=l(59632),u=l(2465),r=l(12397);l(4158);var v=l(55767);l(47041);var m=l(46343),h=l(85611),y={src:"/_next/static/media/bellimage.1acaccfc.svg",height:16,width:21,blurWidth:0,blurHeight:0},b=l(50549),p=l(55578),x=l(39332);l(79102);var f=l(26346),g=l(56851);function j(e){var n,l,o,s,j,N,w,S,A,_,k,C,E,U,P,T,I,R,H,F,Z,B,z,M,O,L,$,D,W,K,V,G,X,Y,q,J,Q,ee,en,el,et,ei,eo,ea,es;let{countryCode:ec,languages:ed}=e,{addToast:eu}=(0,h.e1)(),[er,ev]=(0,i.useState)([]),[em,eh]=(0,i.useState)([]),[ey,eb]=(0,i.useState)({}),{selectedLanguages:ep,selectedLang:ex,MultiCompanies:ef,setMultiCompanies:eg}=(0,i.useContext)(u.z),{userData:ej,setUserData:eN,setLoadUserData:ew,setDeleteSubscriptionIds:eS,networkCall:eA,setNetworkCall:e_,setUnReadMails:ek}=(0,i.useContext)(m.s),[eC,eE]=(0,i.useState)(!0),[eU,eP]=(0,i.useState)([]),[eT,eI]=(0,i.useState)(""),[eR,eH]=(0,i.useState)(0),[eF,eZ]=(0,i.useState)(!1),[eB,ez]=(0,i.useState)(null==ej?void 0:null===(n=ej.mollie)||void 0===n?void 0:n.nextPaymentDate),[eM,eO]=(0,i.useState)([]),{push:eL,query:e$}=(0,x.useRouter)(),eD=()=>eZ(!1),eW=async()=>{try{var e;let n=await (0,r.U2)("/category?pageNumber=1&pageSize=".concat(g.IV.CATEGORY,"&countryId=").concat(null==ex?void 0:ex.countryId,"&countryCode=").concat(ex.value?ex.value:e$.lang,"&iscache=true"));ev(null==n?void 0:null===(e=n.data)||void 0===e?void 0:e.result)}catch(e){}},eK=async()=>{try{let e={email:null==ej?void 0:ej.email,countryCode:ec.split("-")[1],countryId:null==ex?void 0:ex.countryId,customerCreatedAt:null==ej?void 0:ej.createdAt},n=await (0,r.v_)("/customer-notification/list-user",e);eO(n.data.data)}catch(e){}};(0,i.useEffect)(()=>{(null==ej?void 0:ej.email)&&eK()},[ej,ex]),(0,i.useEffect)(()=>{var e;if((null==ej?void 0:null===(e=ej.email)||void 0===e?void 0:e.length)>0&&eM.length>0){let e=eM.length;eM.forEach(n=>
1{n.readBy.includes(null==ej?void 0:ej.email)&&e--}),ek(e)}},[eM,ej]);let eV=async()=>{try{var e;let n=await (0,r.U2)("/company/search?countryCode=".concat(ex.value));eP(null==n?void 0:null===(e=n.data)||void 0===e?void 0:e.result)}catch(e){}};(0,i.useEffect)(()=>{(null==ex?void 0:ex.value)&&ec!==(null==ex?void 0:ex.value)&&eL("/".concat(null==ex?void 0:ex.value,"/my-unsubby/unsubby-home"))},[ex,ec]),(0,i.useEffect)(()=>{eS([])},[]);let eG=async()=>{try{var e,n;let l=await (0,r.v_)("/my-subscription/list",{countryId:ex.countryId});eH(null==l?void 0:null===(n=l.data)||void 0===n?void 0:null===(e=n.data)||void 0===e?void 0:e.length)}catch(e){}};(0,i.useEffect)(()=>{eG(),eg([])},[ex]);let eX=async()=>{try{if(ej._id){e_(!0);let n=await (0,r.HG)("/subscription");if(n.data.success)eL("/".concat(ex.value,"/my-unsubby/subscription-cancel-success")),eD();else{var e;eu((null==n?void 0:null===(e=n.data)||void 0===e?void 0:e.message)||"Failed to cancel subscription",{appearance:"error"}),eD()}}}catch(e){eu("Failed to cancel subscription",{appearance:"error"}),eD()}finally{e_(!1)}};return(0,i.useEffect)(()=>{var e,n;if(null==ej?void 0:null===(e=ej.mollie)||void 0===e?void 0:e.nextPaymentDate){let e=null==ej?void 0:null===(n=ej.mollie)||void 0===n?void 0:n.nextPaymentDate.split("-");ez("en-us"===ex.value?"".concat(e[1],"-").concat(e[2],"-").concat(e[0]):"".concat(e[2],"-").concat(e[1],"-").concat(e[0]))}},[ej]),(0,i.useEffect)(()=>{ew(!0),(async()=>{await eV(),await eW(),eE(!1)})()},[ex]),(0,t.jsxs)("div",{className:"",children:[(0,t.jsxs)("div",{className:"mu-home-top",children:[(0,t.jsx)(p.Z,{show:eF,onHide:eD,backdrop:"static",keyboard:!1,centered:!0,children:(0,t.jsxs)(p.Z.Body,{children:[(0,t.jsx)("div",{className:"d-flex justify-content-end fs-5",children:(0,t.jsx)("span",{onClick:()=>eD(),className:"cursour-pointer",children:"✕"})}),(0,t.jsx)("p",{className:"fs-4 text-center mb-3 mt-5",children:null==ed?void 0:null===(l=ed.myUnsubbyAccount)||void 0===l?void 0:l.mySubscriptionHomeText.confirmationMsg}),(0,t.jsxs)("div",{className:"d-flex mx-4 gap-5 mb-3",children:[(0,t.jsxs)("button",{disabled:eA,className:"submit-btn",onClick:eX,children:[eA&&(0,t.jsx)(f.Z,{className:"mx-2 p-2",size:"sm"}),null==ed?void 0:null===(o=ed.myUnsubbyAccount)||void 0===o?void 0:o.mySubscriptionHomeText.yes]}),(0,t.jsx)("button",{className:"submit-btn bg-white t3 border3",onClick:()=>eD(),children:null==ed?void 0:null===(s=ed.myUnsubbyAccount)||void 0===s?void 0:s.mySubscriptionHomeText.no})]})]})}),(0,t.jsxs)("div",{className:"top-box",children:[(0,t.jsxs)("p",{className:"fs-5 t",children:[(0,t.jsxs)("strong",{className:"t4 mr-1 text-capitalize",children:[ej.firstName,","]}),(null==ed?void 0:null===(N=ed.myUnsubbyAccount)||void 0===N?void 0:null===(j=N.homePage)||void 0===j?void 0:j.head.split(" ")[0].toLowerCase())+"!"]}),(0,t.jsx)("small",{className:"t5",children:null==ed?void 0:null===(S=ed.myUnsubbyAccount)||void 0===S?void 0:null===(w=S.mySubscriptionHomeText)||void 0===w?void 0:w.headText})]}),(0,t.jsxs)("div",{className:"top-box",children:[(0,t.jsxs)("p",{children:[(0,t.jsx)("strong",{className:"cart-0",children:(null===(A=ej.credit)||void 0===A?void 0:A.available)||0}),(null===(_=ej.credit)||void 0===_?void 0:_.available)==0||(null===(k=ej.credit)||void 0===k?void 0:k.available)==1?(0,t.jsx)(t.Fragment,{children:null==ep?void 0:null===(E=ep.myUnsubbyAccount)||void 0===E?void 0:null===(C=E.homePage)||void 0===C?void 0:C.credit}):(0,t.jsx)(t.Fragment,{children:null==ep?void 0:null===(P=ep.myUnsubbyAccount)||void 0===P?void 0:null===(U=P.homePage)||void 0===U?void 0:U.credits})]}),(null==ej?void 0:null===(T=ej.subscriptionResponse)||void 0===T?void 0:T.status)=="canceled"?(0,t.jsx)(a(),{href:"/".concat(ex.value,"/my-unsubby/account?type=subscription"),children:(0,t.jsx)("small",{className:"text-primary",children:null==ep?void 0:null===(R=ep.myUnsubbyAccount)||void 0===R?void 0:null===(I=R.homePage)||void 0===I?void 0:I.buy})}):(0,t.jsx)(t.Fragment,{})]}),(0,t.jsxs)("div",{className:"top-box",children:[(0,t.jsxs)("p",{children:[(0,t.jsx)("span",{className:"cart-0 text-white mr-0",children:eR}),(0,t.jsx)("span",{className:"mx-2",children:(0,t.jsx)(c(),{src:y})}),(0,t.jsx)("span",{children:null==ed?void 0:null===(F=ed.myUnsubbyAccount)||void 0===F?void 0:null===(H=F.mySubscriptionMain)||void 0===H?void 0:H.mySubscriptions})]}),(0,t.jsx)(a(),{href:"/".concat(ex.value,"/my-unsubby/my-subscriptions"),children:(0,t.jsx)("small",{className:"text-white",children:null==ed?void 0:null===(B=ed.myUnsubbyAccount)||void 0===B?void 0:null===(Z=B.mySubscriptionHomeText)||void 0===Z?void 0:Z.viewDetails})})]})]}),(0,t.jsxs)("div",{className:"card home-radius my-3",children:[(0,t.jsx)("p",{className:"cat-p px-4",children:null==ed?void 0:null===(O=ed.myUnsubbyAccount)||void 0===O?void 0:null===(M=O.homePage)||void 0===M?void 0:null===(z=M.searchBlock)||void 0===z?void 0:z.head}),(0,t.jsx)("p",{className:"px-4 search-p",children:null==ed?void 0:null===(D=ed.myUnsubbyAccount)||void 0===D?void 0:null===($=D.homePage)||void 0===$?void 0:null===(L=$.searchBlock)||void 0===L?void 0:L.subHead}),(0,t.jsxs)("div",{className:"search-container row home-radius px-4 m-0",children:[(0,t.jsx)("div",{className:"col-8 p-0",children:em&&(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(d.Z,{setSelectedCompany:eb,placeholder:null==ed?void 0:null===(V=ed.myUnsubbyAccount)||void 0===V?void 0:null===(K=V.homePage)||void 0===K?void 0:null===(W=K.searchBlock)||void 0===W?void 0:W.placeholder})})}),(0,t.jsx)("div",{className:"col-4",children:ey._id?v.sx.includes(ex.value)?(0,t.jsx)(a(),{href:{pathname:"/".concat(ex.value,"/my-unsubby/").concat(null==ey?void 0:ey.route)},children:(0,t.jsx)("button",{className:"search-btn rounded-pill roun
1ded-pill-override",children:(0,t.jsx)("span",{className:"lift-text",children:null==ed?void 0:null===(Y=ed.myUnsubbyAccount)||void 0===Y?void 0:null===(X=Y.homePage)||void 0===X?void 0:null===(G=X.searchBlock)||void 0===G?void 0:G.button})})}):(0,t.jsx)(a(),{href:{pathname:"/".concat(ex.value,"/my-unsubby/").concat(null==ey?void 0:ey.route)},children:(0,t.jsx)("button",{className:"search-btn rounded-pill rounded-pill-override",children:(0,t.jsx)("span",{className:"lift-text",children:null==ed?void 0:null===(Q=ed.myUnsubbyAccount)||void 0===Q?void 0:null===(J=Q.homePage)||void 0===J?void 0:null===(q=J.searchBlock)||void 0===q?void 0:q.button})})}):(0,t.jsx)("button",{className:"search-btn rounded-pill rounded-pill-override",children:(0,t.jsx)("span",{className:"lift-text",children:null==ed?void 0:null===(el=ed.myUnsubbyAccount)||void 0===el?void 0:null===(en=el.homePage)||void 0===en?void 0:null===(ee=en.searchBlock)||void 0===ee?void 0:ee.button})})})]}),(0,t.jsx)("p",{className:"px-4 mt-3 search-p",children:null==ed?void 0:null===(eo=ed.myUnsubbyAccount)||void 0===eo?void 0:null===(ei=eo.homePage)||void 0===ei?void 0:null===(et=ei.searchBlock)||void 0===et?void 0:et.companySuggestion}),(0,t.jsx)("div",{className:"d-flex align-items-center section1-btn ml-md-4 mt-0 mb-4 gap-3 w-100 flex-wrap my-2 ",children:eC?[,,,,].fill(null).map((e,n)=>(0,t.jsx)(b.Z,{height:33,width:120,count:1},n)):null==eU?void 0:eU.map(e=>(0,t.jsx)("div",{children:(0,t.jsx)(a(),{href:{pathname:"/".concat(ex.value,"/my-unsubby/").concat(null==e?void 0:e.route),query:{}},children:(0,t.jsx)("div",{className:"btn-text card px-4 py-2 home-radius shadow-sm",children:e.companyName},e._id)})},e._id))})]}),(0,t.jsxs)("div",{className:"card home-radius pb-5",children:[(0,t.jsx)("p",{className:"cat-p px-4",children:null==ed?void 0:null===(es=ed.myUnsubbyAccount)||void 0===es?void 0:null===(ea=es.homePage)||void 0===ea?void 0:ea.category}),(0,t.jsx)("div",{className:"",children:(0,t.jsx)("div",{className:"category-section w-1",children:eC?Array(17).fill(null).map((e,n)=>(0,t.jsx)(b.Z,{height:160,width:180,count:1},n)):null==er?void 0:er.map(e=>{let{_id:n,categoryLogo:l,categoryName:i,route:o}=e;return(0,t.jsxs)(a(),{href:{pathname:"/".concat(null==ex?void 0:ex.value,"/my-unsubby/categories/").concat(o)},onClick:()=>{window.scrollTo({top:0,left:0,behavior:"smooth"})},className:"single-card",children:[(0,t.jsx)("div",{dangerouslySetInnerHTML:{__html:l}}),(0,t.jsx)("p",{className:"single-cart-text text-break",children:"Consumentenorganisaties"===i?"Consumenten organisaties":"Streamingdiensten"===i?"Streaming diensten":"Water bedrijven"===i?"Waterbedrijven":"Televisie, Internet & Telefoon"===i?"TV, Internet & Telefoon":"Kranten en tijdschriften"===i?"Kranten & Tijdschriften":i})]},n)})})})]})]})}l(82777),l(53226);var N=l(9008),w=l.n(N),S=!0;function A(e){var n,l,i,o;let{languages:a,countryCode:s}=e;return(0,t.jsxs)("div",{children:[(0,t.jsxs)(w(),{children:[(0,t.jsx)("title",{children:null==a?void 0:null===(l=a.myUnsubbyAccount)||void 0===l?void 0:null===(n=l.metainfo)||void 0===n?void 0:n.title}),(0,t.jsx)("meta",{name:"description",content:null==a?void 0:null===(o=a.myUnsubbyAccount)||void 0===o?void 0:null===(i=o.metainfo)||void 0===i?void 0:i.description})]}),(0,t.jsx)(j,{languages:a,countryCode:s})]})}},50549:function(e,n,l){"use strict";l.d(n,{Z:function(){return o}});var t=l(67294);let i=t.createContext({});function o({count:e=1,wrapper:n,className:l,containerClassName:o,containerTestId:a,circle:s=!1,style:c,...d}){var u,r,v;let m=t.useContext(i),h={...d};for(let[e,n]of Object.entries(d))void 0===n&&delete h[e];let y={...m,...h,circle:s},b={...c,...function({baseColor:e,highlightColor:n,width:l,height:t,borderRadius:i,circle:o,direction:a,duration:s,enableAnimation:c=!0,customHighlightBackgroun
1d:d}){let u={};return"rtl"===a&&(u["--animation-direction"]="reverse"),"number"==typeof s&&(u["--animation-duration"]=`${s}s`),c||(u["--pseudo-element-display"]="none"),("string"==typeof l||"number"==typeof l)&&(u.width=l),("string"==typeof t||"number"==typeof t)&&(u.height=t),("string"==typeof i||"number"==typeof i)&&(u.borderRadius=i),o&&(u.borderRadius="50%"),void 0!==e&&(u["--base-color"]=e),void 0!==n&&(u["--highlight-color"]=n),"string"==typeof d&&(u["--custom-highlight-background"]=d),u}(y)},p="react-loading-skeleton";l&&(p+=` ${l}`);let x=null!==(u=y.inline)&&void 0!==u&&u,f=[],g=Math.ceil(e);for(let n=0;n<g;n++){let l=b;if(g>e&&n===g-1){let n=null!==(r=l.width)&&void 0!==r?r:"100%",t=e%1,i="number"==typeof n?n*t:`calc(${n} * ${t})`;l={...l,width:i}}let i=t.createElement("span",{className:p,style:l,key:n},"‌");x?f.push(i):f.push(t.createElement(t.Fragment,{key:n},i,t.createElement("br",null)))}return t.createElement("span",{className:o,"data-testid":a,"aria-live":"polite","aria-busy":null===(v=y.enableAnimation)||void 0===v||v},n?f.map((e,l)=>t.createElement(n,{key:l},e)):f)}}},function(e){e.O(0,[7650,1781,4158,2888,9774,179],function(){return e(e.s=75023)}),_N_E=e.O()}]);

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.