1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([["containers_apple_index_js"],{1163:(e,t,r)=>{r.d(t,{A:()=>u});var n=r(2540),o=(r(3696),r(9933)),a=Object.defineProperty,p=Object.defineProperties,i=Object.getOwnPropertyDescriptors,c=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,d=(e,t,r)=>t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;const u=function(e){return(0,n.jsx)(o.xj,(t=((e,t)=>{for(var r in t||(t={}))l.call(t,r)&&d(e,r,t[r]);if(c)for(var r of c(t))s.call(t,r)&&d(e,r,t[r]);return e})({viewBox:"0 0 50 50"},e),p(t,i({children:(0,n.jsx)("circle",{className:"path",cx:"25",cy:"25",r:"20",fill:"none",strokeWidth:"10"})}))));var t}},2330:(e,t,r)=>{r.r(t),r.d(t,{default:()=>_});var n=r(2540),o=r(3696),a=r(2697),p=r(9208),i=r(5022),c=r(76),l=r(6391),s=r(5508),d=r(9835);function u(e,t="name email",r=!0){return r=>{const n=()=>{const n=new s.A,o="prismaconnect.fr"===n.getDomain()?"https://www.prismaconnect.fr":`https://connect.${n.getDomain()}`;try{AppleID.auth.init({clientId:e,scope:t,redirectURI:o,usePopup:!0}),r(f())}catch(e){r((a=(0,d.H)(e),{type:l.ERROR_APPLE_API,error:a}))}var a};r({type:l.LOADING_APPLE_API});const o=document.getElementsByTagName("script")[0];if(document.getElementById("apple-sign-in"))r(f());else{const e=document.createElement("script");e.id="apple-sign-in",e.async=!0,e.src="https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js",o.parentNode.insertBefore(e,o),e.onload=n}}}function f(){return{type:l.SUCCESS_APPLE_API}}var h=r(1163);const b=r.p+"assets/icons/apple-539548936068433d14e0a5a935f8f19c.svg";var y=r(9503),m=Object.defineProperty,x=Object.defineProperties,g=Object.getOwnPropertyDescriptors,w=Object.getOwnPropertySymbols,v=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable,j=(e,t,r)=>t in e?m(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;const O=y.Ay.button` 2 margin: auto 0 auto 0; 3 background: var(--color-white) url(${b}) no-repeat center center; 4 background-size: 20px 20px; 5 width: 40px; 6 height: 40px; 7 overflow: hidden; 8 position: relative; 9 background-color: transparent; 10 border-radius: 6px; 11 padding: 0px; 12 border: 1px solid #dadce0; 13 justify-content: center; 14 15 &:disabled { 16 cursor: not-allowed; 17 background: #7194fe; 18 } 19 20 &:hover:not(:disabled) { 21 text-decoration: none; 22 background-color: rgba(66, 133, 244, 0.04); 23 } 24 25 span.text { 26 position: absolute; 27 left: -10000px; 28 top: auto; 29 width: 1px; 30 height: 1px; 31 overflow: hidden; 32 } 33`,k=e=>e.api.apple,A=e=>e.caller.checkEmail,_=({children:e})=>{const[t,r]=(0,o.useState)(!1),s=(0,i.wA)(),{data:{config:d}}=(0,a.IT)(p.uD),f=(0,i.d4)(k),b=(0,i.d4)(A);(0,o.useEffect)((()=>(d.keys["apple-appid"]&&!1===f.loading&&null===f.success&&s(u(d.keys["apple-appid"])),function(){s({type:l.RESET_APPLE_API})})),[]);return(0,n.jsxs)(O,(y=((e,t)=>{for(var r in t||(t={}))v.call(t,r)&&j(e,r,t[r]);if(w)for(var r of w(t))P.call(t,r)&&j(e,r,t[r]);return e})({},{clr:"#000",bkcolor:"#fff",fill:"#4285F4",hfill:"#fff",hclr:"#fff",hcolor:"#5A83FF",hideText:!0,minHeight:"40px",minWidth:"40px",height:"40px",overflow:"hidden"}),m={onClick:()=>{return e=void 0,t=null,n=function*(){window.dataLayer.push({event:"button_click",button_name:"connect apple"}),s((0,c.u_)("apple")),r(!0);try{const e=yield AppleID.auth.signIn(),{authorization:{id_token:t}}=e,{email:r}=JSON.parse(window.atob(t.split(".")[1]));s((0,c.Ro)({network:"apple",token:t,email:r}))}catch(e){}r(!1)},new Promise(((r,o)=>{var a=e=>{try{i(n.next(e))}catch(e){o(e)}},p=e=>{try{i(n.throw(e))}catch(e){o(e)}},i=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,p);i((n=n.apply(e,t)).next())}));var e,t,n},disabled:!f.success,title:"Apple",children:[(0,n.jsxs)("span",{className:"text",children:[e," "]}),"apple"===b.type&&t&&(0,n.jsx)(h.A,{boxDimensions:"14px",marginBox:"0 0 0 5px"})]},x(y,g(m))));var y,m}}}]); 34//# sourceMappingURL=containers_apple_index_js.1fbb95d1.0ef15b04.js.map
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.