{"version":3,"file":"CampaignAlert.DvIx4OR5.mjs","names":["React.useState","_Fragment","_jsx"],"sources":["https:/framerusercontent.com/modules/Tzo9JUm5pO5wTCSQBLEH/GY2kliY8zBr4PRjp9xqu/CampaignAlert.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";import{createPortal}from\"react-dom\";const SUPABASE_URL=\"https://uteahkxpftvwlquxugin.supabase.co\";const SUPABASE_ANON_KEY=\"sb_publishable_hJCEs-G2PAVa4bnnm0jGEw_szRwN26X\";export default function CampaignAlert(props){const[actors,setActors]=React.useState([]);const[selected,setSelected]=React.useState({});const[email,setEmail]=React.useState(\"\");const[marketing,setMarketing]=React.useState(false);const[open,setOpen]=React.useState(false);const[loadingActors,setLoadingActors]=React.useState(false);const[saving,setSaving]=React.useState(false);const[success,setSuccess]=React.useState(false);const[error,setError]=React.useState(\"\");const[hovered,setHovered]=React.useState(false);React.useEffect(()=>{loadActors();},[]);React.useEffect(()=>{if(!open||typeof document===\"undefined\")return;function onKeyDown(event){if(event.key===\"Escape\"){setOpen(false);}}document.addEventListener(\"keydown\",onKeyDown);return()=>{document.removeEventListener(\"keydown\",onKeyDown);};},[open]);async function loadActors(){try{setLoadingActors(true);const response=await fetch(`${SUPABASE_URL}/rest/v1/alert_actor_options?select=actor_id,actor_name,actor_slug,okay_discount,good_discount,excellent_discount&order=actor_name.asc`,{headers:{apikey:SUPABASE_ANON_KEY,Authorization:`Bearer ${SUPABASE_ANON_KEY}`}});if(!response.ok){throw new Error(\"Kunde inte h\\xe4mta akt\\xf6rer.\");}const data=await response.json();setActors(data);}catch(err){console.error(err);}finally{setLoadingActors(false);}}function formatPercent(value){if(Number.isInteger(Number(value))){return String(Number(value));}return String(value).replace(\".\",\",\");}function getOptions(actor){const options=[];const okay=actor.okay_discount;const good=actor.good_discount;const excellent=actor.excellent_discount;/*\n         * OKEJ\n         *\n         * Om okay och good är samma gräns kan Okej\n         * aldrig inträffa eftersom good kontrolleras först.\n         */if(okay!==null&&okay!==good){options.push({value:\"okay\",label:`Okej (${formatPercent(okay)} %)`});}else if(okay===null&&good!==null){options.push({value:\"okay\",label:`Okej (<${formatPercent(good)} %)`});}/*\n         * BRA\n         */if(good!==null){options.push({value:\"good\",label:`Bra (${formatPercent(good)} %)`});}else if(excellent!==null){options.push({value:\"good\",label:`Bra (<${formatPercent(excellent)} %)`});}/*\n         * JÄTTEBRA\n         */if(excellent!==null){options.push({value:\"excellent\",label:`J\\xe4ttebra (${formatPercent(excellent)} %)`});}return options;}function openPopup(){setSuccess(false);setError(\"\");/*\n         * Förvälj aktören för sidan, t.ex. Lindex.\n         * Befintliga andra val lämnas kvar.\n         */if(props.actor&&props.actor!==\"Ingen\"){const matchingActor=actors.find(actor=>actor.actor_name===props.actor);if(matchingActor){const options=getOptions(matchingActor);const requestedOption=options.find(option=>option.value===props.defaultLevel);const chosenOption=requestedOption||options[0];if(chosenOption){setSelected(current=>({...current,[matchingActor.actor_id]:chosenOption.value}));}}}setOpen(true);}function updateActor(actorId,value){setSelected(current=>({...current,[actorId]:value}));setSuccess(false);setError(\"\");}/*\n     * Alla aktörer räknas som bevakade om de\n     * har ett valt värde.\n     */const allActorsSelected=actors.length>0&&actors.every(actor=>Boolean(selected[actor.actor_id]));function toggleWatchAll(){setSuccess(false);setError(\"\");if(allActorsSelected){setSelected({});return;}const next={};actors.forEach(actor=>{const options=getOptions(actor);/*\n             * Första optionen är alltid den lägsta\n             * faktiska bevakningsnivån för aktören.\n             */if(options.length>0){next[actor.actor_id]=options[0].value;}});setSelected(next);}function getSelectColor(value){switch(value){case\"excellent\":return props.excellentColor;case\"good\":return props.goodColor;case\"okay\":return props.okayColor;default:return props.neutralColor;}}async function saveAlerts(event){event.preventDefault();setSuccess(false);setError(\"\");const cleanEmail=email.trim();if(!cleanEmail){setError(\"Fyll i din e-postadress.\");return;}const alerts=Object.entries(selected).filter(([,value])=>value).map(([actor_id,min_buying_status])=>({actor_id,min_buying_status}));if(alerts.length===0){setError(\"V\\xe4lj minst en bevakning.\");return;}try{setSaving(true);const response=await fetch(`${SUPABASE_URL}/functions/v1/save-alerts`,{method:\"POST\",headers:{\"Content-Type\":\"application/json\",apikey:SUPABASE_ANON_KEY,Authorization:`Bearer ${SUPABASE_ANON_KEY}`},body:JSON.stringify({email:cleanEmail,marketing,alerts})});const result=await response.json();if(!response.ok||!result.success){throw new Error(result?.error||\"Kunde inte aktivera bevakningen.\");}setSuccess(true);// GA4: registrera endast en faktiskt skapad bevakning.\n// Ingen e-postadress eller annan persondata skickas till Analytics.\nif(typeof window!==\"undefined\"){const gtag=window.gtag;if(typeof gtag===\"function\"){gtag(\"event\",\"alert_signup\");}}}catch(err){console.error(err);setError(err instanceof Error?err.message:\"N\\xe5got gick fel. F\\xf6rs\\xf6k igen.\");}finally{setSaving(false);}}const triggerIsLink=props.triggerStyle===\"link\";const trigger=/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:openPopup,onMouseEnter:()=>setHovered(true),onMouseLeave:()=>setHovered(false),style:{width:props.triggerWidth===\"full\"?\"100%\":\"auto\",padding:triggerIsLink?0:`${props.triggerPaddingY}px ${props.triggerPaddingX}px`,border:triggerIsLink?\"none\":`1px solid ${props.triggerBorderColor}`,borderRadius:triggerIsLink?0:props.triggerRadius,background:triggerIsLink?\"transparent\":hovered?props.triggerHover:props.triggerBackground,color:props.triggerTextColor,fontSize:props.triggerFontSize,fontWeight:props.triggerFontWeight,fontFamily:\"inherit\",textDecoration:triggerIsLink?\"underline\":\"none\",cursor:\"pointer\"},children:props.triggerText});const modal=open&&typeof document!==\"undefined\"?/*#__PURE__*/createPortal(/*#__PURE__*/_jsx(\"div\",{onMouseDown:event=>{if(event.target===event.currentTarget){setOpen(false);}},style:{position:\"fixed\",inset:0,zIndex:999999,display:\"flex\",justifyContent:\"center\",alignItems:\"center\",padding:18,boxSizing:\"border-box\",background:props.overlayColor,overflowY:\"auto\"},children:/*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",width:\"100%\",maxWidth:560,maxHeight:\"calc(100vh - 36px)\",overflowY:\"auto\",boxSizing:\"border-box\",padding:\"28px 24px\",borderRadius:18,background:props.popupBackground,color:props.popupTextColor,boxShadow:\"0 18px 60px rgba(0,0,0,0.18)\"},children:[/*#__PURE__*/_jsx(\"button\",{type:\"button\",\"aria-label\":\"St\\xe4ng\",onClick:()=>setOpen(false),style:{position:\"absolute\",top:16,right:18,width:32,height:32,border:0,padding:0,background:\"transparent\",color:props.popupTextColor,fontSize:25,lineHeight:1,cursor:\"pointer\",opacity:.65},children:\"\\xd7\"}),/*#__PURE__*/_jsxs(\"div\",{style:{paddingRight:30},children:[/*#__PURE__*/_jsx(\"div\",{style:{fontSize:27,lineHeight:1.15,fontWeight:750,marginBottom:7},children:props.popupTitle}),/*#__PURE__*/_jsx(\"div\",{style:{fontSize:14,lineHeight:1.5,opacity:.7,marginBottom:22},children:props.popupSubtitle})]}),success?/*#__PURE__*/_jsx(\"div\",{style:{padding:\"18px 0 4px\",fontSize:16,lineHeight:1.5,fontWeight:650},children:\"Klart! Din bevakning \\xe4r aktiverad.\"}):/*#__PURE__*/_jsxs(\"form\",{onSubmit:saveAlerts,children:[loadingActors?/*#__PURE__*/_jsx(\"div\",{style:{marginBottom:18,fontSize:14,opacity:.65},children:\"H\\xe4mtar akt\\xf6rer…\"}):/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",justifyContent:\"flex-end\",marginBottom:10},children:/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:toggleWatchAll,style:{padding:0,border:0,background:\"transparent\",color:props.popupTextColor,fontSize:13,lineHeight:1.3,fontWeight:700,textDecoration:\"underline\",cursor:\"pointer\"},children:allActorsSelected?\"Rensa alla\":\"Bevaka alla\"})}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:10,marginBottom:20},children:actors.map(actor=>{const value=selected[actor.actor_id]||\"\";return /*#__PURE__*/_jsxs(\"div\",{style:{display:\"grid\",gridTemplateColumns:\"minmax(0, 1fr) minmax(160px, 205px)\",alignItems:\"center\",gap:12},children:[/*#__PURE__*/_jsx(\"div\",{style:{minWidth:0,fontSize:14,fontWeight:650,lineHeight:1.3},children:actor.actor_name}),/*#__PURE__*/_jsxs(\"select\",{value:value,onChange:event=>updateActor(actor.actor_id,event.target.value),style:{width:\"100%\",height:40,boxSizing:\"border-box\",padding:\"0 32px 0 10px\",border:\"1px solid rgba(31,31,31,0.14)\",borderRadius:8,background:getSelectColor(value),color:props.popupTextColor,fontSize:12,fontWeight:650,fontFamily:\"inherit\",outline:\"none\"},children:[/*#__PURE__*/_jsx(\"option\",{value:\"\",children:\"Bevaka inte\"}),getOptions(actor).map(option=>/*#__PURE__*/_jsx(\"option\",{value:option.value,children:option.label},option.value))]})]},actor.actor_id);})})]}),/*#__PURE__*/_jsx(\"input\",{type:\"email\",value:email,onChange:event=>{setEmail(event.target.value);setError(\"\");},placeholder:\"Din e-postadress\",autoComplete:\"email\",\"aria-label\":\"E-postadress\",style:{width:\"100%\",height:46,boxSizing:\"border-box\",padding:\"0 13px\",marginBottom:14,border:\"1px solid rgba(31,31,31,0.16)\",borderRadius:9,background:\"#FFFFFF\",color:props.popupTextColor,fontSize:14,fontFamily:\"inherit\",outline:\"none\"}}),/*#__PURE__*/_jsxs(\"label\",{style:{display:\"flex\",alignItems:\"flex-start\",gap:9,marginBottom:18,cursor:\"pointer\"},children:[/*#__PURE__*/_jsx(\"input\",{type:\"checkbox\",checked:marketing,onChange:event=>setMarketing(event.target.checked),style:{width:17,height:17,marginTop:2,flexShrink:0}}),/*#__PURE__*/_jsxs(\"span\",{children:[/*#__PURE__*/_jsx(\"span\",{style:{display:\"block\",fontSize:13,fontWeight:700,lineHeight:1.35},children:\"H\\xe5ll mig uppdaterad om Familjevis\"}),/*#__PURE__*/_jsx(\"span\",{style:{display:\"block\",marginTop:2,fontSize:12,lineHeight:1.4,opacity:.65},children:\"Nya guider, funktioner och k\\xf6ptips.\"})]})]}),error&&/*#__PURE__*/_jsx(\"div\",{style:{marginBottom:12,fontSize:12,lineHeight:1.4},children:error}),/*#__PURE__*/_jsx(\"button\",{type:\"submit\",disabled:saving,style:{width:\"100%\",minHeight:46,border:0,borderRadius:9,background:props.buttonColor,color:props.buttonTextColor,fontSize:14,fontWeight:750,fontFamily:\"inherit\",cursor:saving?\"default\":\"pointer\",opacity:saving?.65:1},children:saving?\"Aktiverar…\":\"Aktivera bevakning\"})]})]})}),document.body):null;return /*#__PURE__*/_jsxs(_Fragment,{children:[trigger,modal]});}CampaignAlert.defaultProps={actor:\"Ingen\",defaultLevel:\"good\",triggerText:\"Bevaka k\\xf6pl\\xe4ge\",triggerStyle:\"button\",triggerWidth:\"auto\",triggerBackground:\"#C86A3A\",triggerHover:\"#B85F34\",triggerTextColor:\"#FFFFFF\",triggerBorderColor:\"#C86A3A\",triggerRadius:8,triggerFontSize:14,triggerFontWeight:700,triggerPaddingX:18,triggerPaddingY:11,popupTitle:\"Bevaka k\\xf6pl\\xe4ge\",popupSubtitle:\"V\\xe4lj n\\xe4r du vill att vi mejlar dig.\",popupBackground:\"#F7F5EF\",overlayColor:\"rgba(31,31,31,0.48)\",popupTextColor:\"#1F1F1F\",buttonColor:\"#C86A3A\",buttonTextColor:\"#FFFFFF\",excellentColor:\"#9EB890\",goodColor:\"#DBE6C3\",okayColor:\"#DBC19C\",neutralColor:\"#FFFFFF\"};addPropertyControls(CampaignAlert,{actor:{type:ControlType.Enum,title:\"Akt\\xf6r\",options:[\"Ingen\",\"Cubus\",\"KappAhl\",\"Lekia\",\"Lindex\",\"Newbie\",\"Polarn O. Pyret\"],defaultValue:\"Ingen\"},defaultLevel:{type:ControlType.Enum,title:\"F\\xf6rvald niv\\xe5\",options:[\"okay\",\"good\",\"excellent\"],optionTitles:[\"Okej\",\"Bra\",\"J\\xe4ttebra\"],defaultValue:\"good\"},triggerText:{type:ControlType.String,title:\"Trigger text\",defaultValue:\"Bevaka k\\xf6pl\\xe4ge\"},triggerStyle:{type:ControlType.Enum,title:\"Trigger stil\",options:[\"button\",\"link\"],optionTitles:[\"Knapp\",\"L\\xe4nk\"],defaultValue:\"button\"},triggerWidth:{type:ControlType.Enum,title:\"Trigger bredd\",options:[\"auto\",\"full\"],optionTitles:[\"Auto\",\"Full\"],defaultValue:\"auto\"},triggerBackground:{type:ControlType.Color,title:\"Trigger BG\",defaultValue:\"#C86A3A\"},triggerHover:{type:ControlType.Color,title:\"Trigger hover\",defaultValue:\"#B85F34\"},triggerTextColor:{type:ControlType.Color,title:\"Trigger text\",defaultValue:\"#FFFFFF\"},triggerBorderColor:{type:ControlType.Color,title:\"Trigger kant\",defaultValue:\"#C86A3A\"},triggerRadius:{type:ControlType.Number,title:\"Trigger radie\",defaultValue:8,min:0,max:40},triggerFontSize:{type:ControlType.Number,title:\"Trigger storlek\",defaultValue:14,min:10,max:30},triggerFontWeight:{type:ControlType.Number,title:\"Trigger vikt\",defaultValue:700,min:100,max:900,step:100},triggerPaddingX:{type:ControlType.Number,title:\"Trigger X\",defaultValue:18,min:0,max:50},triggerPaddingY:{type:ControlType.Number,title:\"Trigger Y\",defaultValue:11,min:0,max:30},popupTitle:{type:ControlType.String,title:\"Popup rubrik\",defaultValue:\"Bevaka k\\xf6pl\\xe4ge\"},popupSubtitle:{type:ControlType.String,title:\"Popup text\",defaultValue:\"V\\xe4lj n\\xe4r du vill att vi mejlar dig.\"},popupBackground:{type:ControlType.Color,title:\"Popup BG\",defaultValue:\"#F7F5EF\"},overlayColor:{type:ControlType.Color,title:\"Overlay\",defaultValue:\"rgba(31,31,31,0.48)\"},popupTextColor:{type:ControlType.Color,title:\"Popup text\",defaultValue:\"#1F1F1F\"},buttonColor:{type:ControlType.Color,title:\"CTA\",defaultValue:\"#C86A3A\"},buttonTextColor:{type:ControlType.Color,title:\"CTA text\",defaultValue:\"#FFFFFF\"},excellentColor:{type:ControlType.Color,title:\"J\\xe4ttebra\",defaultValue:\"#9EB890\"},goodColor:{type:ControlType.Color,title:\"Bra\",defaultValue:\"#DBE6C3\"},okayColor:{type:ControlType.Color,title:\"Okej\",defaultValue:\"#DBC19C\"},neutralColor:{type:ControlType.Color,title:\"Ej bevakad\",defaultValue:\"#FFFFFF\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CampaignAlert\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CampaignAlert.map"],"mappings":"2NAA0U,SAAwB,EAAc,EAAM,CAAC,GAAK,CAAC,EAAO,GAAWA,EAAe,CAAC,CAAC,EAAO,CAAC,EAAS,GAAaA,EAAe,CAAC,CAAC,EAAO,CAAC,EAAM,GAAUA,EAAe,EAAE,EAAO,CAAC,EAAU,GAAcA,EAAe,EAAK,EAAO,CAAC,EAAK,GAASA,EAAe,EAAK,EAAO,CAAC,EAAc,GAAkBA,EAAe,EAAK,EAAO,CAAC,EAAO,GAAWA,EAAe,EAAK,EAAO,CAAC,EAAQ,GAAYA,EAAe,EAAK,EAAO,CAAC,EAAM,GAAUA,EAAe,EAAE,EAAO,CAAC,EAAQ,GAAYA,EAAe,EAAK,EAAE,MAAoB,CAAC,EAAW,CAAE,EAAE,CAAC,CAAC,EAAE,MAAoB,CAAC,GAAG,CAAC,GAAM,OAAO,SAAW,IAAY,OAAO,SAAS,EAAU,EAAM,CAAI,EAAM,MAAM,UAAU,EAAQ,EAAK,CAAG,CAAgD,OAA/C,SAAS,iBAAiB,UAAU,CAAS,MAAY,CAAC,SAAS,oBAAoB,UAAU,CAAS,CAAE,CAAE,EAAE,CAAC,CAAI,CAAC,EAAE,eAAe,GAAY,CAAC,GAAG,CAAC,EAAiB,EAAI,EAAE,IAAM,EAAS,MAAM,MAAM,GAAG,EAAa,wIAAwI,CAAC,QAAQ,CAAC,OAAO,EA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