PageSourceSearch

https://www.nancho.jp/dist/cochlear/static/js/components-content-_…tentModal-ExitIntentModal.7275c176.chunk.js

js nancho.jp collected 2026-10-04 16:23:56 UTC 18,089 bytes, 1 lines download raw bytes

1"use strict";(globalThis.__LOADABLE_LOADED_CHUNKS__=globalThis.__LOADABLE_LOADED_CHUNKS__||[]).push([[1568,2579,8016,8128,9683],{7286:function(e,t,n){n.r(t),n.d(t,{default:function(){return v}});var r=n(96540),i=n(33185),o=n(25277),a=n(17788),l=n(96573),u=n(59545),c=i.Ay.button.withConfig({displayName:"styles__CloseButton",componentId:"sc-u1ift-0"})(["align-items:center;background-color:",';border:0;border-radius:50%;cursor:pointer;display:flex;justify-content:center;position:absolute;top:30px;right:30px;height:48px;width:48px;z-index:1;[dir="rtl"] &{left:30px;right:auto;}@media only screen and (min-width:',"px){background-color:transparent;}"],o.Hpo,l.HV),d=(i.Ay.div.withConfig({displayName:"styles__Description",componentId:"sc-u1ift-1"})([""," color:",";margin-bottom:24px;&,& a{color:",";}@media only screen and (min-width:","px){","}"],a.Tw,o.rEj,o.rEj,l.HV,a.fN),i.Ay.div.withConfig({displayName:"styles__MainContent",componentId:"sc-u1ift-2"})(["flex:1;overflow:auto;padding:32px;@media only screen and (min-width:","px){padding:80px 48px;}"],l.HV)),s=(0,i.Ay)(u.default).withConfig({displayName:"styles__MediaImage",componentId:"sc-u1ift-3"})(["aspect-ratio:16 / 9;flex:0 auto;width:100%;height:auto;@media only screen and (min-width:","px){aspect-ratio:1;width:40%;}"],l.HV),f=(i.Ay.strong.withConfig({displayName:"styles__Title",componentId:"sc-u1ift-4"})([""," color:",";display:block;margin-bottom:16px;padding-inline-end:40px;@media only screen and (min-width:","px){","}"],a.VR,o.rEj,l.HV,a.kE),n(55833)),m=n(62465),p=n(64903),h=n(96641),v=function(e){var t=e.buttons,n=e.height,i=e.maxHeight,o=e.mediaImage,a=e.onClose,l=e.scrollingBehavior,u=e.showBackdrop,v=e.text;return r.createElement(h.default,null,r.createElement(f.kd,{$scrollingBehavior:l,$showBackdrop:u},r.createElement(f.FQ,{$height:n,$maxHeight:i,$scrollingBehavior:l},r.createElement(c,{onClick:a},r.createElement(f.iX,null)),r.createElement(s,{fields:o}),r.createElement(d,null,r.createElement(f.dv,null,r.createElement(m.default,{fields:{text:{value:v}}})),r.createElement(p.default,{fields:{buttons:t.map((function(e){var t;return{fields:{link:{value:{href:null!==(t=e.href)&&void 0!==t?t:"#",text:e.label}},onClick:e.onClick,style:{name:e.variant}},id:e.label,url:"#",name:e.label,displayName:e.label}}))}})))))}},19002:function(e,t,n){n.d(t,{A4:function(){return u},CV:function(){return a},Iq:function(){return f},KI:function(){return r},KY:function(){return s},LB:function(){return h},LD:function(){return m},bp:function(){return c},es:function(){return p},l7:function(){return i},n:function(){return l},sE:function(){return o},zt:function(){return d}});var r=1e3,i=4,o=3,a=4,l=5,u=3,c=4,d=6,s=7,f=2,m=7,p=2,h=1},23609:function(e,t,n){n.d(t,{s:function(){return l}});var r=n(96540),i=n(5556),o=n.n(i),a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const l=(0,r.forwardRef)(((e,t)=>{var{field:n,tag:i="div",editable:o=!0}=e,l=a(e,["field","tag","editable"]);if(!n||!n.editable&&!n.value)return null;const u=Object.assign({dangerouslySetInnerHTML:{__html:n.editable&&o?n.editable:n.value},ref:t},l);return r.createElement(i||"div",u)})),u={field:o().shape({value:o().string,editable:o().string}),tag:o().string,editable:o().bool};l.propTypes=u,l.displayName="RichText"},38222:function(e,t,n){n.d(t,{V:function(){return o},p:function(){return a}});var r=n(33185),i=n(96573),o=r.Ay.div.withConfig({displayName:"styles__ImageContainer",componentId:"sc-1olp36m-0"})(["--curve-radius:80px;display:flex;@media only screen and (min-width:","px){--curve-radius:160px;}"," ",";"," ",""],i.HV,(function(e){return e.$fillHeight&&"\n      height: 100%;\n      max-width: 100%;\n    "}),(function(e){return e.$roundedCorners&&"\n      border-radius: 16px;\n      overflow: hidden;\n    "}),(function(e){return e.$rtlFlip&&'\n      [dir="rtl"] & img {\n        transform: scaleX(-1);\n      }\n    '}),(function(e){var t=e.$curveCorner,n=e.$rtlFlip;if(!t)return"";var r=t.includes("top")?"top":"bottom",i=t.includes("left")?"left":"right",o=t.includes("left")?"right":"left";return"\n      img {\n        border-".concat(r,"-").concat(i,"-radius: var(--curve-radius);\n      \n        ").concat(n?"":'\n                [dir="rtl"] & {\n                  border-'.concat(r,"-").concat(i,"-radius: unset;\n                  border-").concat(r,"-").concat(o,"-radius: var(--curve-radius);\n                }\n              "),"\n      }")})),a=r.Ay.div.withConfig({displayName:"styles__ImageInnerWrapper",componentId:"sc-1olp36m-1"})(["position:relative;",""],(function(e){var t=e.$fillMode;return"fill"===(void 0===t?"fill":t)?"\n          flex: 1;\n\n          img {\n            background-size: cover;\n            height: 100%;\n            object-fit: cover;\n            width: 100%;\n          }\n        ":"\n          align-items: center;\n          display: flex;\n          width: fit-content;\n\n          img {\n            background-size: contain; /* only for blurred background */\n            height: auto;\n            max-height: 100%;\n            max-width: 100%;\n            width: auto;\n          }\n        "}))},55833:function(e,t,n){n.d(t,{FQ:function(){return s},dv:function(){return d},iX:function(){return u},kd:function(){return c}});var r=n(33185),i=n(25277),o=n(49232),a=n(96573),l=n(19002),u=(0,r.Ay)(o.default).attrs({color:i.rEj,size:"large",type:"close"}).withConfig({displayName:"styles__CloseButtonIcon",componentId:"sc-wn4prk-0"})(["width:24px;"]),c=r.Ay.div.withConfig({displayName:"styles__ModalBackdrop",componentId:"sc-wn4prk-1"})(["background-color:",";box-sizing:border-box;display:flex;position:fixed;left:0;top:0;padding:16px;width:100%;height:100%;z-index:",";",""],(function(e){return!1===e.$showBackdrop?"transparent":i.z_w}
1),l.LD,(function(e){if("scroll-container"===e.$scrollingBehavior)return(0,r.AH)(["overflow:auto;"])})),d=r.Ay.div.withConfig({displayName:"styles__ContentHeader",componentId:"sc-wn4prk-2"})(["margin-bottom:24px;"]),s=r.Ay.div.withConfig({displayName:"styles__ModalWrapper",componentId:"sc-wn4prk-3"})(["align-items:stretch;background-color:",";border-radius:16px;box-shadow:0 2px 8px ",";box-sizing:border-box;display:flex;flex-flow:column nowrap;margin:auto;overflow:hidden;position:relative;width:100%;height:auto;max-height:",";@media only screen and (min-width:","px){flex-flow:row nowrap;width:952px;height:auto;max-height:none;}"," "," ",""],i.e0y,i.z_w,(function(e){return"scroll-within"===e.$scrollingBehavior?"100%":"none"}),a.HV,(function(e){if("number"===typeof e.$height)return(0,r.AH)(["@media only screen and (min-width:","px){height:","px;}"],a.HV,e.$height)}),(function(e){if(null!=e.$maxHeight)return(0,r.AH)(["@media only screen and (min-width:","px){max-height:","px;}"],a.HV,e.$maxHeight)}),(function(e){if("scroll-within"===e.$scrollingBehavior)return(0,r.AH)(["overflow:auto;@media only screen and (min-width:","px){max-height:",";}"],a.HV,e.$maxHeight?e.$maxHeight+"px":"100%")}))},59545:function(e,t,n){n.r(t),n.d(t,{isImageProps:function(){return d}});var r=n(96540),i=n(41687),o=n(38222);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d=function(e){return!!e.image};t.default=function(e){var t,n,a,l,c,d,s,f,m,p,h,v=e.className,y=e.fields,g=e.noLazyLoad,b=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];try{var n=new URL(y.image.value.src);return n.searchParams.append("t","w".concat(e).concat(t?"med":"")),n.toString()}catch(r){return y.image.value.src}};return r.createElement(o.V,{className:v,style:{aspectRatio:(null===(t=y.aspectRatio)||void 0===t?void 0:t.name.replace("-"," / "))||void 0},$curveCorner:"top left"===(null===(n=y.curveCorner)||void 0===n?void 0:n.name)||"top right"===(null===(a=y.curveCorner)||void 0===a?void 0:a.name)||"bottom left"===(null===(l=y.curveCorner)||void 0===l?void 0:l.name)||"bottom right"===(null===(c=y.curveCorner)||void 0===c?void 0:c.name)?y.curveCorner.name:void 0,$fillHeight:null===(d=y.fillHeight)||void 0===d?void 0:d.value,$roundedCorners:"all"===(null===(s=y.curveCorner)||void 0===s?void 0:s.name),$rtlFlip:null===(f=y.rtlFlip)||void 0===f?void 0:f.value},r.createElement(o.p,{$fillMode:null===(m=y.fillMode)||void 0===m?void 0:m.name},r.createElement(i._,{field:u(u({},y.image),{},{value:u(u({},y.image.value),{},{src:b(1200,!0)})}),loading:g?void 0:"lazy",sizes:"(max-width: 767px) 480px, (max-width: 1023px) 800px, 1200px",srcSet:[480,800,1200].map((function(e){return{t:"w".concat(e,"med"),w:e}})),style:null!==(p=y.disableBlur)&&void 0!==p&&p.value?void 0:{backgroundImage:'url("'.concat(b(20),'")'),backgroundRepeat:"no-repeat",backgroundSize:"fit"===(null===(h=y.fillMode)||void 0===h?void 0:h.name)?"contain":"cover"}})))}},62465:function(e,t,n){n.r(t);var r=n(96540),i=n(27506);t.default=function(e){var t=e.className,n=e.fields,o=e.hasMaxWidth,a=e.inverseColor,l=e.tag;return r.createElement(i.$,{$hasMaxWidth:o,$inverseColor:a,className:t,field:n.text,tag:l})}},67605:function(e,t,n){n.r(t),n.d(t,{default:function(){return l}});var r=n(96540),i=n(33185).Ay.div.withConfig({displayName:"styles__Wrapper",componentId:"sc-foroq7-0"})(["background-color:darkorange;color:white;max-width:500px;outline:orange solid 5px;padding:10px;"]),o=["componentName","dataSource"];function a(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var l=function(e){var t=e.componentName,n=e.dataSource,l=a(e,o);return"undefined"!==typeof window&&new URLSearchParams(window.location.search).get("sc_mode")?r.createElement(i,null,r.createElement("h2",null,t),function(e){switch(l.errorType){case"missing-datasource":return r.createElement("p",null,t," may be missing a datasource.");case"missing-media":return r.createElement("p",null,null!==(e=l.allowedMedia)&&void 0!==e&&e.length?"".concat(l.allowedMedia.slice(0,-1).join(", ")," ").concat(l.allowedMedia.length>1?"or ".concat(l.allowedMedia[l.allowedMedia.length-1]):""," media"):"Media"," ","is required on ",t,".");case"missing-variant":return r.createElement("p",null,"Selecting a variant is required on ",t,".");case"wrong-child-count":return r.createElement("p",null,t," must contain between ",l.minChildren," and"," ",l.maxChildren," children, currently ",l.numChildren,".");case"wrong-child-for-variant":return r.createElement("p",null,t," has mismatched variant and children template types. ",l.variant," variant must contain children with template ",l.expectedChild,".");case"wrong-media":return r.createElement("p",null,"Only ",l.allowedMedia.join(", ")," media"," ",l.allowedMedia&&1===l.allowedMedia.length?"type is":"types are"," ","allowed on ",t,".");default:return r.createElement("p",null,"Another error occurred.")}}(),n?r.createElement("p",null,"Datasource: ",r.createElement("code",null,n)):null):null}},85730:function(e,t,n){n.r(t),n.d(t,{default:function(){return c}});var r=n(96540),i=n(7286),o=n(67605),a=n(59545);function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,l=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){c=!0,i=e}
1finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return l}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var c=function(e){var t,n,u,c=l((0,r.useState)(!1),2),d=c[0],s=c[1],f=e.fields;return(0,r.useEffect)((function(){if(!d){var e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:9e4,n=void 0,r=function(){n&&clearTimeout(n),n=setTimeout(e,t)},i=["mousemove","keydown","mousedown","touchstart"];return i.forEach((function(e){return window.addEventListener(e,r)})),r(),function(){n&&clearTimeout(n),i.forEach((function(e){return window.removeEventListener(e,r)}))}}((function(){s(!0)}),f.inactivityTimeoutMilliseconds.value);return e}}),[d]),(0,a.isImageProps)(null===(t=f.media)||void 0===t?void 0:t.fields)?d?r.createElement(i.default,{buttons:[{href:e.fields.learnMoreLink.value.href,label:null!==(n=e.fields.learnMoreLink.value.text)&&void 0!==n?n:"",variant:"brand-primary"},{label:e.fields.dismissButtonText.value,onClick:function(){s(!1)},variant:"tertiary"}],mediaImage:null===(u=f.media)||void 0===u?void 0:u.fields,onClose:function(){s(!1)},text:f.text.value}):null:r.createElement(o.default,{componentName:"Exit Intent Modal",allowedMedia:["image"],errorType:"missing-media"})}},95956:function(e,t,n){n.d(t,{N:function(){return l}});var r=n(96540),i=n(5556),o=n.n(i),a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const l=(0,r.forwardRef)(((e,t)=>{var{field:n,editable:i=!0,showLinkTextWithChildrenPresent:o}=e,l=a(e,["field","editable","showLinkTextWithChildrenPresent"]);const u=l.children,c=n;if(!n||!c.editableFirstPart&&!c.value&&!c.href)return null;const d=[];if(i&&c.editableFirstPart){const e=c.editableFirstPart+c.editableLastPart,t=Object.assign(Object.assign({className:"sc-link-wrapper",dangerouslySetInnerHTML:{__html:e}},l),{key:"editable"});if(delete t.children,d.push(r.createElement("span",Object.assign({},t))),!u)return d[0]}const s=c.href?n:c.value;if(!s)return null;const f="anchor"!==s.linktype&&s.anchor?`#${s.anchor}`:"",m=s.querystring?`?${s.querystring}`:"",p={href:`${s.href}${m}${f}`,className:s.class,title:s.title,target:s.target};"_blank"!==p.target||p.rel||(p.rel="noopener noreferrer");const h=o||!u?s.text||s.href:null;return d.push(r.createElement("a",Object.assign(Object.assign(Object.assign({},p),l),{key:"link",ref:t}),h,u)),r.createElement(r.Fragment,null,d)})),u={field:o().oneOfType([o().shape({href:o().oneOfType([o().string.isRequired,o().oneOf([null]).isRequired])}),o().shape({value:o().object,editableFirstPart:o().string,editableLastPart:o().string})]).isRequired,editable:o().bool,showLinkTextWithChildrenPresent:o().bool};l.propTypes=u,l.displayName="Link"},96641:function(e,t,n){n.r(t);var r=n(96540),i=n(40961),o=n(38414);function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,l=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return l}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}
1(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}t.default=function(e){var t=e.children,n=a((0,r.useState)(null),2),l=n[0],u=n[1],c=a((0,r.useState)(null),2),d=c[0],s=c[1],f=(0,r.useContext)(o.B9),m=f.incrementModalsOpen,p=f.decrementModalsOpen;return(0,r.useEffect)((function(){return u(document.getElementById("main")),m(),function(){return p()}}),[]),(0,r.useEffect)((function(){d&&d.showModal()}),[d]),l?(0,i.createPortal)(r.createElement("dialog",{autoFocus:!0,ref:s},t),l):null}}}]);

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.