PageSourceSearch

https://ellahoju.com/_next/static/chunks/13389.290a5365cb8674dd.js

js ellahoju.com collected 2026-09-30 11:19:56 UTC 10,034 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[13389],{15787:function(e,t,r){"use strict";r.d(t,{w_:function(){return s}});var l=r(67294),a={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},n=l.createContext&&l.createContext(a),o=function(){return(o=Object.assign||function(e){for(var t,r=1,l=arguments.length;r<l;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)},i=function(e,t){var r={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&0>t.indexOf(l)&&(r[l]=e[l]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,l=Object.getOwnPropertySymbols(e);a<l.length;a++)0>t.indexOf(l[a])&&Object.prototype.propertyIsEnumerable.call(e,l[a])&&(r[l[a]]=e[l[a]]);return r};function s(e){return function(t){return l.createElement(c,o({attr:o({},e.attr)},t),function e(t){return t&&t.map(function(t,r){return l.createElement(t.tag,o({key:r},t.attr),e(t.child))})}(e.child))}}function c(e){var t=function(t){var r,a=e.attr,n=e.size,s=e.title,c=i(e,["attr","size","title"]),u=n||t.size||"1em";return t.className&&(r=t.className),e.className&&(r=(r?r+" ":"")+e.className),l.createElement("svg",o({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,a,c,{className:r,style:o(o({color:e.color||t.color},t.style),e.style),height:u,width:u,xmlns:"http://www.w3.org/2000/svg"}),s&&l.createElement("title",null,s),e.children)};return void 0!==n?l.createElement(n.Consumer,null,function(e){return t(e)}):t(a)}},48706:function(e,t,r){var l=r(15787).w_;e.exports.X=function(e){return l({tag:"svg",attr:{viewBox:"0 0 16 16",fill:"currentColor"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M5.738 3.318a4.5 4.5 0 0 0-.877 5.123A4.48 4.48 0 0 0 6.1 10a4.62 4.62 0 0 0-.1 1v.17c-.16-.11-.32-.22-.47-.34L1.75 14.5 1 13.84l3.8-3.69a5.5 5.5 0 1 1 9.62-3.65c0 .268-.02.535-.06.8a5.232 5.232 0 0 0-.94-.68V6.5a4.5 4.5 0 0 0-7.682-3.182zm3.04 4.356a4 4 0 1 1 4.444 6.652 4 4 0 0 1-4.444-6.652zm.1 5.447A3 3 0 0 0 11 14a3 3 0 0 0 1.74-.55L8.55 9.26A3 3 0 0 0 8 11a3 3 0 0 0 .879 2.121zm.382-4.57l4.19 4.189A3 3 0 0 0 14 11a3 3 0 0 0-3-3 3 3 0 0 0-1.74.55z"}}]})(e)}},43985:function(e,t,r){"use strict";r.d(t,{Jx:function(){return m},cv:function(){return w}});var l=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","#","$","%","*","+",",","-",".",":",";","=","?","@","[","]","^","_","{","|","}","~"],a=e=>{let t=0;for(let r=0;r<e.length;r++){let a=e[r];t=83*t+l.indexOf(a)}return t},n=(e,t)=>{var r="";for(let a=1;a<=t;a++)r+=l[Math.floor(Math.floor(e)/Math.pow(83,t-a)%83)];return r},o=e=>{let t=e/255;return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},i=e=>{let t=Math.max(0,Math.min(1,e));return t<=.0031308?Math.trunc(3294.6*t+.5):Math.trunc((1.055*Math.pow(t,.4166666666666667)-.055)*255+.5)},s=e=>e<0?-1:1,c=(e,t)=>s(e)*Math.pow(Math.abs(e),t),u=class extends Error{constructor(e){super(e),this.name="ValidationError",this.message=e}},d=e=>{if(!e||e.length<6)throw new u("The blurhash string must be at least 6 characters");let t=a(e[0]),r=Math.floor(t/9)+1,l=t%9+1;if(e.length!==4+2*l*r)throw new u(`blurhash length mismatch: length is ${e.length} but it should be ${4+2*l*r}`)},h=e=>[o(e>>16),o(e>>8&255),o(255&e)],f=(e,t)=>[c((Math.floor(e/361)-9)/9,2)*t,c((Math.floor(e/19)%19-9)/9,2)*t,c((e%19-9)/9,2)*t],m=(e,t,r,l)=>{d(e),l|=1;let n=a(e[0]),o=Math.floor(n/9)+1,s=n%9+1,c=(a(e[1])+1)/166,u=Array(s*o);for(let t=0;t<u.length;t++)if(0===t){let r=a(e.substring(2,6));u[t]=h(r)}else{let r=a(e.substring(4+2*t,6+2*t));u[t]=f(r,c*l)}let m=4*t,x=new Uint8ClampedArray(m*r);for(let e=0;e<r;e++)for(let l=0;l<t;l++){let a=0,n=0,c=0;for(let i=0;i<o;i++)for(let o=0;o<s;o++){let d=Math.cos(Math.PI*l*o/t)*Math.cos(Math.PI*e*i/r),h=u[o+i*s];a+=h[0]*d,n+=h[1]*d,c+=h[2]*d}let d=i(a),h=i(n),f=i(c);x[4*l+0+e*m]=d,x[4*l+1+e*m]=h,x[4*l+2+e*m]=f,x[4*l+3+e*m]=255}return x},x=(e,t,r,l)=>{let a=0,n=0,i=0,s=4*t;for(let c=0;c<t;c++){let t=4*c;for(let u=0;u<r;u++){let r=t+u*s,d=l(c,u);a+=d*o(e[r]),n+=d*o(e[r+1]),i+=d*o(e[r+2])}}let c=1/(t*r);return[a*c,n*c,i*c]},p=e=>(i(e[0])<<16)+(i(e[1])<<8)+i(e[2]),v=(e,t)=>
1361*Math.floor(Math.max(0,Math.min(18,Math.floor(9*c(e[0]/t,.5)+9.5))))+19*Math.floor(Math.max(0,Math.min(18,Math.floor(9*c(e[1]/t,.5)+9.5))))+Math.floor(Math.max(0,Math.min(18,Math.floor(9*c(e[2]/t,.5)+9.5)))),w=(e,t,r,l,a)=>{let o;if(l<1||l>9||a<1||a>9)throw new u("BlurHash must have between 1 and 9 components");if(t*r*4!==e.length)throw new u("Width and height must match the pixels array");let i=[];for(let n=0;n<a;n++)for(let a=0;a<l;a++){let l=0==a&&0==n?1:2,o=x(e,t,r,(e,o)=>l*Math.cos(Math.PI*a*e/t)*Math.cos(Math.PI*n*o/r));i.push(o)}let s=i[0],c=i.slice(1),d="";if(d+=n(l-1+(a-1)*9,1),c.length>0){let e=Math.floor(Math.max(0,Math.min(82,Math.floor(166*Math.max(...c.map(e=>Math.max(...e)))-.5))));o=(e+1)/166,d+=n(e,1)}else o=1,d+=n(0,1);return d+=n(p(s),4),c.forEach(e=>{d+=n(v(e,o),2)}),d}},23493:function(e,t,r){var l=r(23279),a=r(13218);e.exports=function(e,t,r){var n=!0,o=!0;if("function"!=typeof e)throw TypeError("Expected a function");return a(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),l(e,t,{leading:n,maxWait:t,trailing:o})}},77582:function(e,t,r){"use strict";r.r(t);var l=r(85893),a=r(67294),n=r(21977),o=r(16145),i=r(94439),s=r(97222),c=r(11163),u=r.n(c),d=r(5708),h=r(48706),f=r(49633),m=r(89259),x=r(24500),p=r(84080);t.default=()=>{var e,t,r;let{isMobileSize:c,website:v,store:w,catTree:g}=(0,a.useContext)(o.v),{search:y}=u().query,[M,b]=(0,a.useState)(y||""),_=(0,s.k)({fixingFilter:{open__not_eq:!1,_storeId__eq:w._id}});(0,a.useEffect)(()=>{_.setFilter({OR:[{name__contains:M},{description__contains:M},{keywards__contains:M},{code__eq:M}]}),((e,t)=>{let r=new URL(window.location.href);null==t?r.searchParams.delete(e):r.searchParams.set(e,t),window.history.pushState({},"",r)})("search",M)},[M]);let j={},{viewCount:N,pageInfo:E}=_;(0,a.useEffect)(()=>{let{search:e}=u().query;M!==e&&b(e||"")},[y]);let C=N>=E.totalDocumentCount;return(0,l.jsxs)("div",{className:"py-5 md:py-10 px-4 box-content mx-auto max-w-screen-lg",children:[(0,l.jsx)(n.C.H1,{name:"타이틀",className:"text-center text-3xl mb-4 font-semibold text-neutral-600",children:"모든 여행지 검색"}),(0,l.jsx)("div",{className:" top-0 py-2 pt-4 bg-white",children:(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)("input",{placeholder:"검색어를 입력 해주세요.",className:"text-lg peer focus:outline-[var(--primary-color)] p-4 my-2 mb-4 border bg-neutral-100  rounded-xl w-full mx-auto font-semibold ",defaultValue:y||"",onKeyDown:(0,m.s1)(e=>{b(e.currentTarget.value)})}),(0,l.jsx)(f.Z,{className:"peer-focus:text-primary text-neutral-400 absolute top-[22px] right-4 w-7"})]})}),(0,l.jsxs)("div",{className:"flex gap-2  justify-center  mx-auto  flex-wrap mb-8 md:mb-14",children:[(0,l.jsx)(x.U,{className:" md:max-w-[100px] px-2 md:w-[100px]",selected:!(null===(e=_.filter)||void 0===e?void 0:e.categoryIds__eq),onClick:()=>{_.setFilter({categoryIds__eq:void 0})},...j,children:"전체보기"}),null==g?void 0:g.map(e=>{var t;return(0,l.jsx)(x.U,{style:{width:"calc(33% - 5.3px)"},className:" md:max-w-[100px] whitespace-nowrap flex items-center gap-0 md:gap-1  flex-col md:flex-row  px-2  md:w-[100px]",selected:e._id===(null===(t=_.filter)||void 0===t?void 0:t.categoryIds__eq),onClick:()=>{_.setFilter({categoryIds__eq:e._id})},...j,children:e.label})})]}),(0,l.jsx)(p.M,{skip:_.getLoading,children:(0,l.jsx)("div",{className:"   ",children:(0,l.jsx)(d.G,{Empty:(0,l.jsxs)("div",{className:"grow w-full",children:[(0,l.jsxs)("div",{className:"flex  py-24 rounded  text-neutral-400 text-center flex-col gap-2 justify-center w-full",children:[(0,l.jsx)("div",{className:"text-neutral-600 text-xl font-semibold",children:"검색결과가 없습니다."}),(0,l.jsx)("span",{className:"text-neutral-400 ",children:"다른 검색어로 검색 해보세요."})]}),(0,l.jsx)(h.X,{className:"w-40 text-neutral-100"})]}),empty:null==_?void 0:null===(t=_.items)||void 0===t?void 0:t.filter(e=>e),children:(0,l.jsxs)("div",{className:"flex flex-col gap-8",children:[null==_?void 0:null===(r=_.items)||void 0===r?void 0:r.map(e=>(0,l.jsx)(i.G,{item:e||[]},e._id)),!C&&(0,l.jsx)(x.U,{className:"rounded-full h-11 text-sm mt-8 border-neutral-400 text-neutral-800 font-normal max-w-xs mx-auto",color:"neutral",onClick:()=>{null==_||_.setViewCount((null==_?void 0:_.viewCount)+12)},variant:"border",children:"더많은 검색결과 보기 +"})]})})})})]})}},89259:function(e,t,r){"use strict";r.d(t,{s1:function(){return l}});let l=e=>t=>{"Enter"===t.key&&e(t)}},49633:function(e,t,r){"use strict";var l=r(67294);let a=l.forwardRef(function({title:e,titleId:t,...r},a){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:a,"aria-labelledby":t},r),e?l.createElement("title",{id:t},e):null,l.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z"}))});t.Z=a},61646:function(e,t,r){"use strict";var l=r(67294);let a=l.forwardRef(function({title:e,titleId:t,...r},a){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"
1currentColor","aria-hidden":"true",ref:a,"aria-labelledby":t},r),e?l.createElement("title",{id:t},e):null,l.createElement("path",{fillRule:"evenodd",d:"M10.788 3.21c.448-1.077 1.976-1.077 2.424 0l2.082 5.007 5.404.433c1.164.093 1.636 1.545.749 2.305l-4.117 3.527 1.257 5.273c.271 1.136-.964 2.033-1.96 1.425L12 18.354 7.373 21.18c-.996.608-2.231-.29-1.96-1.425l1.257-5.273-4.117-3.527c-.887-.76-.415-2.212.749-2.305l5.404-.433 2.082-5.006z",clipRule:"evenodd"}))});t.Z=a}}]);

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.