1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,75791,e=>{e.v({container:"bottom-sheet-module-scss-module__FoVXra__container",customControlsSlideDown:"bottom-sheet-module-scss-module__FoVXra__customControlsSlideDown",customControlsSlideUp:"bottom-sheet-module-scss-module__FoVXra__customControlsSlideUp",hide:"bottom-sheet-module-scss-module__FoVXra__hide",sheet:"bottom-sheet-module-scss-module__FoVXra__sheet",show:"bottom-sheet-module-scss-module__FoVXra__show",top_handle:"bottom-sheet-module-scss-module__FoVXra__top_handle"})},93962,e=>{"use strict";var t=e.i(76140),s=e.i(54244);e.i(77577);var n=e.i(30014),i=e.i(7803),a=e.i(64458),l=e.i(75791);let o=(0,s.forwardRef)(({children:e,disableClickOutside:o=!1,className:r,draggable:d=!1},c)=>{let h=(0,s.useRef)(null),[u,m]=(0,s.useState)(!0),_=(0,s.useCallback)(()=>{m(!0)},[]);return(0,n.useClickOutside)({ref:h,active:!u&&!o,callback:_}),(0,s.useEffect)(()=>{let e=h.current;if(!d||u||!e)return;let t=new i.DraggableElementManager({element:e,initHeight:e.offsetHeight,collapseAnimationName:"customControlsSlideDown",onStateChange:e=>{e&&m(!0)}});return()=>{t.destroy(),e.style.height=""}},[d,u]),(0,s.useEffect)(()=>{if(u)return;let e=e=>{"Escape"===e.key&&m(!0)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[u]),(0,s.useEffect)(()=>{u?document.documentElement.classList.remove("overflow-y-hidden"):document.documentElement.classList.add("overflow-y-hidden")},[u]),(0,s.useImperativeHandle)(c,()=>({open:()=>m(!1),close:()=>m(!0)})),(0,t.jsx)("div",{className:(0,a.default)(l.default.container,u?l.default.hide:l.default.show),children:(0,t.jsx)("div",{ref:h,className:(0,a.default)(l.default.sheet,r),children:!u&&(0,t.jsxs)(t.Fragment,{children:[d&&(0,t.jsx)("div",{className:l.default.top_handle,children:(0,t.jsx)("div",{})}),e]})})})});o.displayName="BottomSheet",e.s(["default",0,o])},25029,e=>{e.v({active:"list-module-scss-module__pzB-aW__active",content:"list-module-scss-module__pzB-aW__content",contents:"list-module-scss-module__pzB-aW__contents",title:"list-module-scss-module__pzB-aW__title"})},45310,e=>{e.v({back:"headers-module-scss-module__Y16EaG__back",header_container:"headers-module-scss-module__Y16EaG__header_container",header_title:"headers-module-scss-module__Y16EaG__header_title"})},37479,e=>{"use strict";e.i(47142);var t=e.i(76140),s=e.i(54244),n=e.i(42367),i=e.i(62932),a=e.i(45310);e.s(["default",0,({title:e,fallbackHref:l="/home",skipHistory:o,revealAfterId:r,onBack:d})=>{let{back:c,replace:h}=(0,n.useRouter)(),u=(0,s.useRef)(null),[m,_]=(0,s.useState)(!1),g=(0,s.useCallback)(()=>{d?.();let e="https://www.lezhinsnack.com"===window.location.origin;!o&&e&&window.history.length>1?c():h(l)},[c,h,l,o,d]);return(0,s.useEffect)(()=>{let e=u.current,t=r?document.getElementById(r):null;if(!e||!t)return;let s=0,n=()=>{_(t.getBoundingClientRect().bottom<=e.getBoundingClientRect().bottom)},i=()=>{cancelAnimationFrame(s),s=requestAnimationFrame(n)};return n(),window.addEventListener("scroll",i,{passive:!0}),window.addEventListener("resize",i),()=>{cancelAnimationFrame(s),window.removeEventListener("scroll",i),window.removeEventListener("resize",i)}},[r]),(0,t.jsxs)("header",{ref:u,className:a.default.header_container,children:[(0,t.jsx)(i.default,{className:a.default.back,width:40,height:40,type:"html",src:"/images/common/icon-arrow-24.svg",alt:"back",onClick:g}),(0,t.jsx)("div",{className:a.default.header_title,children:(0,t.jsx)("span",{children:r&&!m?"":e})})]})}])},3607,e=>{"use strict";var t=e.i(76140),s=e.i(54244);e.s(["default",0,({html:e,className:n})=>{let i=(0,s.useRef)(null);return(0,s.useEffect)(()=>{if(!i.current)return;let t=i.current.shadowRoot||i.current.attachShadow({mode:"open"});t.innerHTML=e;let s=e=>{let s=e.target.closest("a"),n=s?.getAttribute("href");n?.startsWith("#")&&(e.preventDefault(),t.getElementById(n.substring(1))?.scrollIntoView({behavior:"smooth",block:"start"}))};return t.addEventListener("click",s),()=>t.removeEventListener("click",s)},[e]),(0,t.jsx)("article",{ref:i,className:n})}])},72035,e=>{"use strict";var t=e.i(76140),s=e.i(54244),n=e.i(21664),i=e.i(12028),a=e.i(22960),l=e.i(53818),o=e.i(37703);let r={policy:"COMMON_APPBAR_AGREEMENT_POLICY",privacy:"COMMON_APPBAR_AGREEMENT_PRIVACY",youth:"COMMON_APPBAR_AGREEMENT_YOUTH_PROTECTION"};var d=e.i(85065),c=e.i(93962),h=e.i(64458),u=e.i(62932),m=e.i(25029);let _=({title:e,items:n,defaultItemKey:i,onClick:a})=>
1{let[l,o]=(0,s.useState)(i||n[0].key),r=(0,s.useRef)(null);(0,s.useEffect)(()=>{let e=r.current;if(!e)return;let t=e=>e.stopPropagation();return e.addEventListener("touchstart",t,{passive:!0}),e.addEventListener("touchmove",t,{passive:!0}),()=>{e.removeEventListener("touchstart",t),e.removeEventListener("touchmove",t)}},[]);let d=(0,s.useCallback)(e=>()=>{a&&a(e),o(e.key)},[a]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:m.default.title,children:(0,t.jsx)("span",{children:e})}),(0,t.jsx)("div",{ref:r,className:m.default.contents,children:n.map((e,s)=>{let n=e.key===l;return(0,t.jsxs)("button",{className:(0,h.default)(m.default.content,n&&m.default.active),onClick:d(e),children:[(0,t.jsx)("span",{children:e.value}),n&&(0,t.jsx)(u.default,{type:"html",src:"/images/common/icon-check.svg",width:24,height:24,alt:"check"})]},`bottom-sheet-${s}`)})})]})},g=({bottomSheetRef:e,type:s,items:n,version:a,onItemClick:l})=>{let o=(0,i.useTranslations)();return(0,t.jsx)(c.default,{ref:e,draggable:!0,children:(0,t.jsx)(_,{title:o("ME010801PG_TTL_HISTORY"),items:n,defaultItemKey:a,onClick:l},`${s}-history-list-${a}`)})};var v=e.i(37479),p=e.i(3607);e.s(["default",0,function({type:e,versions:c,initialContent:u,deviceType:m,isWebView:_,hideHistory:f,showHeader:E}){let b=(0,i.useTranslations)(),w=(0,n.useLocale)(),y=r[e],L=(0,s.useRef)(null),C=(0,s.useRef)(null),[N,H]=(0,s.use
1State)(u),D=(0,s.useMemo)(()=>c.map(e=>({key:e.version,value:`${e.version} (${(0,o.formatKstDateSpaced)(e.openedAt)})`})),[c]),x=(0,s.useCallback)(()=>{L.current?.open()},[]),S=(0,s.useCallback)(t=>{(0,l.getPolicyContent)(e,t.key,w,m).then(e=>{H(e),L.current?.close(),C.current?.scrollTo(0,0)})},[e,m,w]);return(0,t.jsxs)("div",{className:(0,h.default)(d.default.container,{[d.default.app]:!!_}),children:[E&&(0,t.jsx)(v.default,{title:b(y)}),(0,t.jsxs)("main",{ref:C,className:d.default.container__inner,children:[N?.htmlContent&&(0,t.jsx)(p.default,{className:d.default.container__contents,html:N.htmlContent}),!f&&D.length>0&&(0,t.jsxs)("button",{className:d.default.container__history,onClick:x,children:[(0,t.jsx)("span",{className:d.default["container__history-text"],children:b("ME010801PG_TTL_HISTORY")}),(0,t.jsx)(a.default,{className:d.default["container__history-arrow"],width:16,height:16})]})]}),!f&&D.length>0&&(0,t.jsx)(g,{bottomSheetRef:L,type:e,items:D,version:N?.version,onItemClick:S})]})}],72035)},85065,e=>{e.v({app:"policy-viewer-module-scss-module__HKNpqa__app",container:"policy-viewer-module-scss-module__HKNpqa__container",container__contents:"policy-viewer-module-scss-module__HKNpqa__container__contents",container__history:"policy-viewer-module-scss-module__HKNpqa__container__history","container__history-arrow":"policy-viewer-module-scss-module__HKNpqa__container__history-arrow","container__history-text":"policy-viewer-module-scss-module__HKNpqa__container__history-text",container__inner:"policy-viewer-module-scss-module__HKNpqa__container__inner"})},53818,e=>{"use strict";var t=e.i(26456);let s=async(e,s)=>{try{let n=await (0,t.bffFetch)(e);return n.ok?await n.json():s}catch{return s}};e.s(["getFaqListByCategoryId",0,e=>s(`/api/customer/faq?categoryId=${e}`,[]),"getPolicyContent",0,(e,t,n,i)=>{let a=new URLSearchParams({type:e,version:t,locale:n});return i&&a.set("deviceType",i),s(`/api/customer/policy?${a.toString()}`,null)}])},26456,e=>{"use strict";var t=e.i(37277);e.s(["bffFetch",0,(e,s={})=>{let n;return fetch(e,{...s,headers:{...s.headers,"X-NEXT-INTL-LOCALE":(n=window.location.pathname.split("/")[1],t.routing.locales.find(e=>e.startsWith(`${n}-`))??t.routing.defaultLocale)}})}])},37703,e=>{"use strict";let t=e=>new Date(e+324e5).toISOString();e.s(["formatKstDate",0,e=>t(e).slice(0,10).replace(/-/g,"."),"formatKstDateSpaced",0,e=>t(e).slice(0,10).replace(/-/g,". "),"formatKstDateTime",0,e=>{let s=t(e);return`${s.slice(0,10).replace(/-/g,".")} ${s.slice(11,19)} (GMT+9)`}])},22960,e=>{"use strict";var t,s=e.i(54244);function n(){return(n=Object.assign.bind()).apply(null,arguments)}e.s(["default",0,function(e){return s.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",width:18,height:19,fill:"none"},e),t||(t=s.createElement("path",{fill:"#fff",fillOpacity:.58,d:"M3.232 8.314 4.297 7.25l4.676 4.676 4.676-4.676 1.064 1.064-5.74 5.74z"})))}])},7803,e=>{"use strict";class t{element;handleEl;options;startY=0;startHeight=0;dragging=!1;collapsed=!1;boundDragStart=this.handleDragStart.bind(this);boundDrag=this.handleDrag.bind(this);boundDragEnd=this.handleDragEnd.bind(this);boundCollapse=this.handleCollapse.bind(this);constructor(e){if(!e.element)throw Error("Drag elements are required.");this.element=e.element,this.handleEl=e.handle??e.element,this.options={element:e.element,initHeight:e.initHeight||0,minHeight:e.minHeight||100,maxHeight:e.maxHeight||.8*window.innerHeight,collapseAnimationName:e.collapseAnimationName||"collapse",onStateChange:e.onStateChange||(()=>{})},this.setHeight(e.element.offsetHeight),this.init()}init(){this.handleEl.addEventListener("touchstart",this.boundDragStart,{passive:!1}),this.handleEl.addEventListener("touchmove",this.boundDrag,{passive:!1}),this.handleEl.addEventListener("touchend",this.boundDragEnd),this.handleEl.addEventListener("touchcancel",this.boundDragEnd),this.handleEl.addEventListener("mousedown",this.boundDragStart),this.handleEl.addEventListener("mousemove",this.boundDrag),this.handleEl.addEventListener("mouseup",this.boundDragEnd),this.handleEl.addEventListener("mouseleave",this.boundDragEnd),this.element.addEventListener("animationend",this.boundCollapse)}handleDragStart(e){e.stopPropagation(),this.startY="touches"in e?e.touches[0].clientY:e.clientY,this.startHeight=this.getHeight(),this.dragging=!0}handleDrag(e){if(!this.dragging)return;e.preventDefault(),e.stopPropagation();let t="touches"in e?e.touches[0].clientY:e.clientY,s=this.startY-t,n=this.startHeight+s;n=Math.min(n,this.options.maxHeight),this.collapsed=s<0&&Math.abs(s)>30,this.setHeight(n)}handleDragEnd(){this.dragging&&(this.getHeight()<this.options.minHeight||this.collapsed)&&this.collapse(),this.dragging=!1,this.collapsed=!1}handleCollapse(e){e.animationName.includes(this.options.collapseAnimationName)&&(this.dragging=!1,this.collapsed=!1,this.setInitHeight())}setHeight(e){this.element.style.height=isNaN(e)?e:`${e}px`}getHeight(){return this.element.offsetHeight}collapse(){this.options.onStateChange(!0),this.dragging=!1,this.collapsed=!1,setTimeout(()=>{this.setInitHeight()},300)}setInitHeight(){this.setHeight(this.options.initHeight)}destroy(){this.handleEl.removeEventListener("touchstart",this.boundDragStart),this.handleEl.removeEventListener("touchmove",this.boundDrag),this.handleEl.removeEventListener("touchend",this.boundDragEnd),this.handleEl.removeEventListener("touchcancel",this.boundDragEnd),this.handleEl.removeEventListener("mousedown",this.boundDragStart),this.handleEl.removeEventListener("mousemove",this.boundDrag),this.handleEl.removeEventListener("mouseup",this.boundDragEnd),this.handleEl.removeEventListener("mouseleave",this.boundDragEnd),this.element.removeEventListener("animationend",this.boundCollapse)}}e.s(["DraggableElementManager",0,t])}]);
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.