1"use strict";(globalThis.webpackChunksamw=globalThis.webpackChunksamw||[]).push([[14977],{520049(e,r,s){s.r(r),s.d(r,{Component:()=>h});var a=s(296540),t=s(794772),i=s(658700),c=s(33344),n=s(554224),d=s(775734),u=s(617357),o=s(109724),l=s(495751),p=s(474848);const _="h-14 mr-10 w-1/3",v=()=>(0,u.H)(5,e=>(0,p.jsx)("div",{className:"mb-10 border-b border-b-share-separator",style:(0,l.j)(e),children:(0,p.jsxs)("div",{className:"mb-8 flex w-1/2",children:[(0,p.jsx)(o.a,{rootClassName:_}),(0,p.jsx)(o.a,{rootClassName:_}),(0,p.jsx)(o.a,{rootClassName:_})]})},e)),h=()=>{var e;const r=(0,c.T)().authorSlugOrServiceId,s=(0,n.o)(),u=(0,i.Zp)(),o=(null!==(e=(0,d.R)(s.id))&&void 0!==e?e:{}).id;return(0,a.useEffect)(()=>{(0,t._)({authorSlugOrServiceId:r,id:o,fullUnsubscribe:!0}).then(()=>{const e=`${s.id}-${s.slug}`;u(`/mp/${e}/price-alerts?unsubscribe`,{replace:!0})})},[r,o,u,s.id,s.slug]),(0,p.jsx)(v,{})}},336490(e,r,s){var a=s(308879);const t=a.Ikc({data:a.Ikc({id:a.YjP(),type:a.euz("marketplace_subscription"),attributes:a.Ikc({research_id:a.YjP(),title:a.YjP(),author_name:a.YjP(),author_image:a.YjP(),image:a.Ikc({big:a.YjP(),medium:a.YjP()}),user_can_write_review:a.lqM(a.zMY()),wants_price_alert_email:a.zMY(),wants_price_alert_push:a.zMY(),subscribed_to_email:a.zMY(),subscribed_to_push:a.zMY(),expires_at:a.mee(a.YjP()),canceled_at:a.mee(a.YjP()),status:a.zMY(),trial_ended_at:a.mee(a.YjP()),started_at:a.mee(a.YjP()),plan_period:a.YjP(),is_free_subscription:a.zMY(),unread_researches_count:a.aig(),plan:a.YjP()}),relationships:a.Ikc({service_plan:a.Ikc({data:a.Ikc({id:a.YjP(),type:a.euz("service_plan")})}),paid_subscription:a.Ikc({data:a.Ikc({id:a.YjP(),type:a.euz("paid_subscription")})})}),links:a.Ikc({customer_support_url:a.YjP(),self:a.YjP()})})});s.d(r,["M",0,t])},794772(e,r,s){var a=s(317876),t=s(308879),i=s(336490);const c=t.Ikc({service_id:t.YjP(),id:t.YjP()}),n=t.Ikc({data:t.Ikc({type:t.euz("marketplace_subscription"),attributes:t.KCZ([t.Ikc({wants_price_alert_email:t.zMY(),wants_price_alert_push:t.zMY()}),t.Ikc({wants_price_alert_email:t.zMY()}),t.Ikc({wants_price_alert_push:t.zMY()})])})});s.d(r,["_",0,async e=>{let r=e.authorSlugOrServiceId,s=e.id,t=e.emailType,d=void 0!==t&&t,u=e.fullUnsubscribe;void 0!==u&&u&&await a.W.patch("marketplace/services/{service_id}/subscriptions/{id}",{schema:{path:c,body:n,response:i.M},path:{service_id:r,id:s},body:{data:{type:"marketplace_subscription",attributes:{wants_price_alert_email:!1,wants_price_alert_push:!1}}}}),await a.W.patch("marketplace/services/{service_id}/subscriptions/{id}",{schema:{path:c,body:n,response:i.M},path:{service_id:r,id:s},body:{data:{type:"marketplace_subscription",attributes:d?{wants_price_alert_email:!1}:{wants_price_alert_push:!1}}}})}])},33344(e,r,s){var a=s(645606);s.d(r,["T",0,()=>{const e=(0,a.c)(),r=e.serviceId,s=e.serviceName;return{authorSlugOrServiceId:s?r+s:r}}])},825275(e,r,s){const a=(0,s(296540).createContext)(null);a.displayName="InvestingGroupContext",s.d(r,["i",0,a])},554224(e,r,s){s(16280);var a=s(692584),t=s(296540),i=s(825275);const c=()=>{const e=(0,t.use)(i.i);if((0,a.g)(e))throw new Error('Should be rendered inside "InvestingGroupProvider"');return e};s.d(r,["V",0,c,"o",0,()=>{const e=c().investingGroupQuery;if(!e.isSuccess)throw new Error("investing group service should be loaded");return e.data}])},645606(e,r,s){var a=s(205544),t=s(658700);const i=/^\d+/u,c=/-.+/u;s.d(r,["c",0,()=>{var e,r;const s=(0,t.g)().authorSlugOrServiceId,n=null!==(e=null==s?void 0:s.match(i))&&void 0!==e?e:[""],d=(0,a.A)(n,1)[0],u=null!==(r=null==s?void 0:s.match(c))&&void 0!==r?r:[""];return{serviceId:d,serviceName:(0,a.A)(u,1)[0]}}])},495751(e,r,s){s.d(r,["j",0,function(e){return{opacity:(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1)-e*(arguments.length>2&&void 0!==arguments[2]?arguments[2]:.15)}}])}}]);
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.