티스토리 수익 글 보기
var d=(t,n,e)=>new Promise((o,i)=>{var r=s=>{try{a(e.next(s))}catch(g){i(g)}},l=s=>{try{a(e.throw(s))}catch(g){i(g)}},a=s=>s.done?o(s.value):Promise.resolve(s.value).then(r,l);a((e=e.apply(t,n)).next())});import{t as U,y as R,b as I,p as E,I as p,O as f,U as m,W as c}from”./GlobalSetup-M-1oWLNV.js”;var v=R();const L=U(v);function u(t,n){return d(this,null,function*(){const e=”post_login_actions”,o={name:t,data:n};try{return I(e,o),(yield(yield E(`/${e}`,{body:JSON.stringify(o)})).json()).postLoginActionId}catch(i){return console.error(“Error creating post login action:”,i),Promise.reject(i)}})}function h(t){const n=”post_login_action_id”,e={};return e[n]=t,e}const x=Object.freeze(Object.defineProperty({__proto__:null,createPostLoginAction:u,getPostLoginActionParamsForUrl:h},Symbol.toStringTag,{value:”Module”})),O=3;function A(t,n){return new Promise((e,o)=>{L.addOnReadyHandler(function(){p.isSignedInUser()?e():document.querySelector(“af-susi-light”)?u(t,n).then(r=>{y(r),f(S(r))}).catch(o):u(t,n).then(_).catch(o)})})}function w(t){return d(this,null,function*(){t.preventDefault();const n=this.href,e=yield u(“redirect”);if(!document.querySelector(“af-susi-light”))return _(e,n);y(e,this.href),f(this.href,()=>{window.location=n})})}function P(){document.querySelectorAll(“a”).forEach(t=>{t.href.includes(window.location.origin)&&t.addEventListener(“click”,w)})}function q(){b()&&L.addOnReadyHandler(()=>{if(p.isSignedInUser())return;window.alloy_all&&(window.alloy_all.data._adobe_corpnew.digitalData.page.pageInfo.sampledExperimentForceLogin=!0),new MutationObserver(()=>{P()}).observe(document.body,{childList:!0,subtree:!0})})}function _(t,n=””){const e=new URLSearchParams(m.getSearchParams()),o=h(t);Object.entries(o).forEach(([i,r])=>{e.set(i,r)}),n||(n=window.location.pathname),window.location=”/login/sso?back_to=”+encodeURIComponent(n+”?”+e.toString())}function S(t,n=””){const o=new URL(window.location.href).origin,i=new URLSearchParams(m.getSearchParams()),r=h(t);return Object.entries(r).forEach(([l,a])=>{i.set(l,a)}),n||(n=window.location.pathname),o+”/redirect/susi?back_to=”+encodeURIComponent(n+”?”+i.toString())}function b(){return!!(c(“require_login_experiment_state”)&&!(c(“require_login_experiment_state”)||””).includes(“logged_out”)&&c(“require_login_experiment_show_dialog”)===”true”&&(parseInt(c(“require_login_experiment_num_rejections”),10)||0)