PageSourceSearch

https://app.notix.co/static/js/250.9d62accd.chunk.js

js notix.co collected 2026-10-02 06:07:53 UTC 59,687 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkreact_ts=self.webpackChunkreact_ts||[]).push([[250],{89612(e,t,n){n.d(t,{A:()=>f});var i,s,a,l=n(65043),o=n(1380),r=n(11607),c=n(10038),d=n(87068),g=n(57748),u=n(51045),m=n(27774);const x=u.Ay.div(i||(i=(0,g.A)(["\n  position: relative;\n  margin: 0;\n"]))),_=u.Ay.button(s||(s=(0,g.A)(["\n    width: ","px;\n    height: ","px;\n    background-color: ",";\n    border: 0;\n    border-radius: ","px;\n    padding: 0;\n    display: flex;\n    justify-content: center;\n    align-items: center;\n    position: absolute;\n    right: 0;\n    top: 0;\n    outline: none;\n    cursor: pointer;\n    \n    svg {\n      pointer-events: none;\n    }\n    \n    &:hover {\n        svg {\n          fill: ","\n        }\n    }\n"])),32,32,m.c3,4,m.EQ),p=(0,u.DU)(a||(a=(0,g.A)(['\n/**\n * VS theme by Andrew Lock (https://andrewlock.net)\n * Inspired by Visual Studio syntax coloring\n */\n\ncode[class*="language-"],\npre[class*="language-"] {\n    color: #393a34;\n    font-family: "Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace;\n    direction: ltr;\n    text-align: left;\n    white-space: pre;\n    word-spacing: normal;\n    word-break: normal;\n    font-size: 14px;\n    line-height: 1.2em;\n    -webkit-font-smoothing: initial;\n    tab-size: 4;\n\n    hyphens: none;\n}\n\npre[class*="language-"]::-moz-selection, pre[class*="language-"] ::-moz-selection,\ncode[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection {\n    background: #c1def1;\n}\n\npre[class*="language-"]::selection, pre[class*="language-"] ::selection,\ncode[class*="language-"]::selection, code[class*="language-"] ::selection {\n    background: #c1def1;\n}\n\n/* Inline code */\n:not(pre) > code[class*="language-"] {\n    padding: 1px .2em;\n    background: #f8f8f8;\n    border: 1px solid #dddddd;\n}\n\n.token {\n  -webkit-font-smoothing: initial;\n}\n\n.token.comment,\n.token.prolog,\n.token.doctype,\n.token.cdata {\n    color: #008000; font-style: italic;\n}\n\n.token.namespace {\n    opacity: .7;\n}\n\n.token.string {\n    color: #a31515;\n}\n\n.token.punctuation,\n.token.operator {\n    color: #393a34; /* no highlight */\n}\n\n.token.url,\n.token.symbol,\n.token.number,\n.token.boolean,\n.token.variable,\n.token.constant,\n.token.inserted {\n    color: #36acaa;\n}\n\n.token.atrule,\n.token.keyword,\n.token.attr-value,\n.language-autohotkey .token.selector,\n.language-json .token.boolean,\n.language-json .token.number,\ncode[class*="language-css"] {\n    color: #0000ff;\n}\n\n.token.function {\n    color: #393a34;\n}\n.token.deleted,\n.language-autohotkey .token.tag {\n    color: #9a050f;\n}\n\n.token.selector,\n.language-autohotkey .token.keyword {\n    color: #00009f;\n}\n\n.token.important,\n.token.bold {\n    font-weight: bold;\n}\n\n.token.italic {\n    font-style: italic;\n}\n\n.token.class-name,\n.language-json .token.property {\n    color: #2b91af;\n}\n\n.token.tag,\n.token.selector {\n    color: #800000;\n}\n\n.token.attr-name,\n.token.property,\n.token.regex,\n.token.entity {\n    color: #ff0000;\n}\n\n.token.directive.tag  .tag {\n    background: #ffff00;\n    color: #393a34;\n}\n\n/* overrides color-values for the Line Numbers plugin\n * http://prismjs.com/plugins/line-numbers/\n */\n.line-numbers .line-numbers-rows {\n    border-right-color: #a5a5a5;\n}\n\n.line-numbers-rows > span:before {\n    color: #2b91af;\n}\n\n/* overrides color-values for the Line Highlight plugin\n* http://prismjs.com/plugins/line-highlight/\n*/\n.line-highlight {\n    background: rgba(193, 222, 241, 0.2);\n    background: linear-gradient(to right, rgba(193, 222, 241, 0.2) 70%, rgba(221, 222, 241, 0));\n}\n\n  //OVERWRITE\n    code {\n      .token {\n        &.tag,\n        &.attr-name {\n          color: '," !important;\n        }\n\n        &.attr-value {\n          color: ",' !important;\n\n          & * {\n            color: inherit !important;\n          }\n        }\n      }\n    }\n    \n  pre[class*="language-"] {\n    overflow: auto!important;\n    padding: ',"px!important;\n    background: ","!important;\n    font-size: ","px!important;\n    margin: 0 0 ","px!important;\n    border-radius: ","px!important;\n    border: none!important;\n    user-select: all;\n}\n"])),m.Ql,m.Qt,8,m.c3,14,8,4);var h=n(70579);const v=e=>{const t=e.copyingEnabled,n=e.children,i=e.language,s=e.elementId,a=e.tipCodeCopied,g=e.highlightCode,u=(0,l.useRef)(null);(0,l.useLayoutEffect)(()=>{g&&u.current&&r.highlightElement(u.current)},[g]);const m=(0,h.jsx)(_,{id:"".concat(s,"-copy-button"),type:"button",onMouseDown:e=>(0,c.DK)(e.target,a,c.k6.TOP),onMouseLeave:()=>(0,c.w7)(),children:(0,h.jsx)(d.QR,{size:d.SK.MEDIUM_SMALL})});return(0,h.jsxs)(x,{id:s,children:[(0,h.jsx)(p,{}),g?(0,h.jsx)("pre",{children:(0,h.jsx)("code",{className:"lang-".concat(i),ref:u,children:n})},"code-viewer-with-highlight"):(0,h.jsx)("pre",{className:"language-none",children:(0,h.jsx)("code",{className:"language-none",children:n})},"code-viewer-without-highlight"),t&&(0,h.jsx)(o.CopyToClipboard,{text:n,children:m})]})};v.defaultProps={children:null,language:"markup",copyingEnabled:!0,tipCodeCopied:"Copied!",highlightCode:!0};const f=v},96548(e,t,n){n.d(t,{A:()=>s});n(65043);var i=n(70579);const s=()=>(0,i.jsx)("div",{className:"PageLoader",children:(0,i.jsx)("div",{className:"PageLoader__spinner"})})},88127(e,t,n){n.d(t,{A:()=>s});n(65043);var i=n(70579);function s(e){let t=e.children,n=e.className,s=void 0===n?"":n,a=e.title,l=void 0===a?"":a;return document.title=l,(0,i.jsx)("div",{className:"Page ".concat(s),children:t})}},56250(e,t,n){n.r(t),n.d(t,{default:()=>It});var i=n(84919),s=n(44303),a=n(65043),l=n(93488),o=n(22109);var r=n(70579);const c=function(e){let t=e.number,n=e.label;return(0,r.jsxs)("h4",{className:"Step",children:[(0,r.jsx)("span",{className:"Step__number",children:t}),n]})};var d,g,u,m,x,_,p,h,v,f,y,b,N,w,j,A=n(79717),T=n(30369),k=n(51045),S=n(87262);function C(e,t){return t||(t=e.slice(0)),e.raw=t,e}!function(e){e.VERTICAL="vertical",e.HORIZONTAL="horizontal"}(d||(d={}));var E=k.Ay.label(g||(g=C(["\n    position: relative;\n    display: flex;\n    flex-direction: row;\n    justify-content: space-between;
1\n    align-items: flex-start;\n    width: 100%;\n    height: 100%;\n    border-radius: ","px;\n    border: solid 2px ",";\n    padding: ","px ","px ","px ","px;\n    cursor: pointer;\n\n    &::before,\n    &::after {\n        content: '';\n        position: absolute;\n        top: 24px;\n        left: 20px;\n        bottom: initial;\n        display: block;\n        border-radius: 50%;\n        box-sizing: inherit;\n    }\n\n    &::before {\n        margin-top: ","px;\n        margin-left: ","px;\n        width: ","px;\n        height: ","px;\n        background: ",";\n        border: 1px solid ",";\n    }\n\n    &::after {\n        margin-left: ","px;\n        margin-top: ","px;\n        width: ","px;\n        height: ","px;\n        background: transparent;\n    }\n    \n    ","\n\n    @media screen and (min-width: ","px) {\n        padding: ","px ","px ","px;\n        align-items: center;\n        flex-direction: column;\n        \n        &:before,\n        &:after {\n            left: 50%;\n            top: 32px;\n        }\n    }\n"])),8,S.c3,16,12,16,44,-8,-8,16,16,S.ON,S.vh,-4,-4,8,8,function(e){return e.themeType===d.HORIZONTAL&&(0,k.AH)(u||(u=C(["\n        padding: ","px ","px ","px ","px !important;\n        align-items: flex-start !important;\n        flex-direction: row !important;\n        \n        &::before,\n        &::after {\n            top: 24px !important;\n            left: 20px !important;\n        }\n    "])),16,12,16,44)},768,56,8,16),I=k.Ay.div(m||(m=C(["\n    text-align: left;\n    \n    ","\n    \n    @media screen and (min-width: ","px) {\n        text-align: center;\n    }\n"])),function(e){return e.themeType===d.HORIZONTAL&&(0,k.AH)(x||(x=C(["\n        text-align: left !important;\n    "])))},768),B=k.Ay.div(_||(_=C(["\n    font-size: ","px;\n    font-weight: 500;\n    color: ",";\n    word-break: break-word;\n    \n    ","\n    \n    @media screen and (min-width: ","px) {\n        margin-bottom: ","px;\n        height: ","px;\n    }\n"])),14,S.Ql,function(e){return e.themeType===d.HORIZONTAL&&(0,k.AH)(p||(p=C(["\n        margin-bottom: 0 !important;\n        height: auto !important;\n    "])))},768,16,36),L=k.Ay.div(h||(h=C(["\n    font-size: ","\n    line-height: 130%;\n    color: ","\n    word-break: break-word;\n    padding-top: ","px;\n    \n    ","\n    \n    @media screen and (min-width: ","px) {\n        margin-bottom: ","px;\n        padding-top: 0;\n    }\n"])),12,S.wd,8,function(e){return e.themeType===d.HORIZONTAL&&(0,k.AH)(v||(v=C(["\n        margin-bottom: 0 !important;\n        padding-top: ","px !important;\n    "])),8)},768,24),O=k.Ay.input(f||(f=C(["\n    display: none;\n\n    ","\n}\n\n    &[disabled] + ","::before,\n    &[disabled]:checked + ","::before {\n      border-color: ",";\n    }\n\n    &[disabled]:checked + ","::after {\n      background: ",";\n    }\n\n    &[disabled] + "," {\n      color: ",";\n      opacity: 0.5;\n      cursor: not-allowed;\n    }\n"])),function(e){var t,n,i,s,a,l;return"&:checked + "+E+" {\n      border-color: "+((null==(t=e.theme)||null==(n=t.actionColor)?void 0:n.main)||S.EQ)+";\n\n      &::before {\n        border-color: "+((null==(i=e.theme)||null==(s=i.actionColor)?void 0:s.main)||S.EQ)+";\n      }\n\n      &::after {\n        background: "+((null==(a=e.theme)||null==(l=a.actionColor)?void 0:l.main)||S.EQ)+";\n        transition: background 0.15s ease;\n      }\n    "},E,E,S.vh,E,S.Um,E,S.PQ),U=k.Ay.div(y||(y=C(["\n    width: 100%;\n    position: relative;\n    margin-bottom: ","px;\n\n    ","\n\n    @media screen and (min-width: ","px) {\n      margin-bottom: 0;\n      margin-right: ","px;\n    }\n"])),8,function(e){return e.themeType===d.HORIZONTAL&&(0,k.AH)(b||(b=C(["\n        margin-bottom: ","px !important;\n        margin-right: 0 !important;\n    "])),8)},768,12),R=k.Ay.div(N||(N=C(["\n    display: flex;\n    flex-wrap: wrap;\n    flex-direction: row;\n    justify-content: space-between;\n    \n    ","\n\n    @media screen and (min-width: ","px) {\n        flex-wrap: nowrap;\n        flex-direction: row;\n    }\n    \n    & > ",":last-child {\n        margin-bottom: 0 !important;\n        margin-right: 0 !important;\n    }\n"])),function(e){return e.themeType===d.HORIZONTAL&&(0,k.AH)(w||(w=C(["\n        flex-wrap: wrap !important;\n        flex-direction: row !important;\n    "])))},768,U),M=k.Ay.div(j||(j=C(["\n  position: absolute;\n  display: block;\n  right: 8px;\n  top: 8px;\n  z-index: 1;
1\n"]))),P=function(e){var t=e.option,n=e.isChecked,i=e.onChange,s=e.themeType,l={};return t.tooltipMessage&&(l.onMouseEnter=function(e){(0,T.DK)(e.target,t.tooltipMessage)},l.onMouseLeave=T.w7),t.customClassName&&(l.className=t.customClassName),a.createElement(U,Object.assign({},l,{themeType:s}),t.customPromoBadge&&a.createElement(M,null,t.customPromoBadge),a.createElement(O,{type:"radio",id:t.elementId,checked:n,disabled:t.isDisabled,onChange:function(){return i(t)},themeType:s}),a.createElement(E,{htmlFor:t.elementId,themeType:s},a.createElement(I,{themeType:s},t.label&&a.createElement(B,{themeType:s},t.label),t.description&&a.createElement(L,{themeType:s},t.description)),t.additionalContent))};const K=function(e){var t=e.options,n=e.value,i=void 0===n?void 0:n,s=e.onChange,l=e.theme,o=void 0===l?d.VERTICAL:l;return a.createElement(R,{themeType:o},t.map(function(e){return a.createElement(P,{option:e,isChecked:e.value===i,onChange:s,key:e.id,themeType:o})}))};var D,q,z,H,V,F,W,Q;function G(){return G=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},G.apply(this,arguments)}function Z(e,t){if(null==e)return{};var n,i,s=function(e,t){if(null==e)return{};var n,i,s={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(s[n]=e[n]);return s}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(s[n]=e[n])}return s}function X(e,t){var n=e.title,i=e.titleId,s=Z(e,["title","titleId"]);return a.createElement("svg",G({width:104,height:64,viewBox:"0 0 104 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":i},s),n?a.createElement("title",{id:i},n):null,D||(D=a.createElement("rect",{width:104,height:64,rx:4,fill:"#F2F2F2"})),q||(q=a.createElement("rect",{width:104,height:4,rx:2,fill:"#CCCCCC"})),z||(z=a.createElement("rect",{x:9,y:8,width:60,height:28,rx:4,fill:"white"})),H||(H=a.createElement("path",{d:"M22.7 3.06667C23.1 2.53333 23.9 2.53333 24.3 3.06667L28 8H19L22.7 3.06667Z",fill:"white"})),V||(V=a.createElement("rect",{x:49,y:25,width:15,height:7,rx:2,fill:"#006450"})),F||(F=a.createElement("rect",{opacity:.5,x:31,y:25,width:15,height:7,rx:2,fill:"#19DB94"})),W||(W=a.createElement("rect",{opacity:.5,x:16,y:13,width:43,height:3,rx:1.5,fill:"#808080"})),Q||(Q=a.createElement("rect",{opacity:.5,x:16,y:18,width:28,height:3,rx:1.5,fill:"#808080"})))}var Y=a.forwardRef(X);n.p;var J,$,ee,te,ne,ie,se;function ae(){return ae=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},ae.apply(this,arguments)}function le(e,t){if(null==e)return{};var n,i,s=function(e,t){if(null==e)return{};var n,i,s={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(s[n]=e[n]);return s}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(s[n]=e[n])}return s}function oe(e,t){var n=e.title,i=e.titleId,s=le(e,["title","titleId"]);return a.createElement("svg",ae({width:104,height:64,viewBox:"0 0 104 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":i},s),n?a.createElement("title",{id:i},n):null,J||(J=a.createElement("rect",{width:104,height:64,rx:4,fill:"#F2F2F2"})),$||($=a.createElement("rect",{width:104,height:4,rx:2,fill:"#CCCCCC"})),ee||(ee=a.createElement("rect",{x:22,y:18,width:60,height:28,rx:4,fill:"white"})),te||(te=a.createElement("rect",{x:62,y:35,width:15,height:7,rx:2,fill:"#006450"})),ne||(ne=a.createElement("rect",{opacity:.5,x:44,y:35,width:15,height:7,rx:2,fill:"#19DB94"})),ie||(ie=a.createElement("rect",{opacity:.5,x:29,y:23,width:43,height:3,rx:1.5,fill:"#808080"})),se||(se=a.createElement("rect",{opacity:.5,x:29,y:28,width:28,height:3,rx:1.5,fill:"#808080"})))}var re=a.forwardRef(oe);n.p;var ce,de,ge,ue,me,xe,_e,pe;function he(){return he=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},he.apply(this,arguments)}function ve(e,t){if(null==e)return{};var n,i,s=function(e,t){if(null==e)return{};var n,i,s={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(s[n]=e[n]);return s}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(s[n]=e[n])}return s}function fe(e,t){var n=e.title,i=e.titleId,s=ve(e,["title","titleId"]);return a.createElement("svg",he({width:104,height:64,viewBox:"0 0 104 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":i},s),n?a.createElement("title",{id:i},n):null,ce||(ce=a.createElement("rect",{width:104,height:64,rx:4,fill:"#F2F2F2"})),de||(de=a.createElement("rect",{width:104,height:4,rx:2,fill:"#CCCCCC"})),ge||(ge=a.createElement("rect",{x:9,y:8,width:60,height:28,rx:4,fill:"white"})),ue||(ue=a.createElement("path",{d:"M22.7 3.06667C23.1 2.53333 23.9 2.53333 24.3 3.06667L28 8H19L22.7 3.06667Z",fill:"white"})),me||(me=a.createElement("rect",{x:49,y:25,width:15,height:7,rx:2,fill:"#B3B3B3"})),xe||(xe=a.createElement("rect",{opacity:.5,x:31,y:25,width:15,height:7,rx:2,fill:"#CCCCCC"})),_e||(_e=a.createElement("rect",{opacity:.5,x:16,y:13,width:43,height:3,rx:1.5,fill:"#808080"})),pe||(pe=a.createElement("rect",{opacity:.5,x:16,y:18,width:28,height:3,rx:1.5,fill:"#808080"})))}var ye=a.forwardRef(fe);n.p;var be,Ne,we,je,Ae;function Te(){return Te=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Te.apply(this,arguments)}function ke(e,t){if(null==e)return{};var n,i,s=function(e,t){if(null==e)return{};var n,i,s={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(s[n]=e[n]);return s}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(s[n]=e[n])}return s}function Se(e,t){var n=e.title,i=e.titleId,s=ke(e,["title","titleId"]);return a.createElement("svg",Te({width:104,height:64,viewBox:"0 0 104 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":i},s),n?a.createElement("title",{id:i},n):null,be||(be=a.createElement("rect",{width:104,height:64,rx:4,fill:"#F2F2F2"})),Ne||(Ne=a.createElement("rect",{width:104,height:4,rx:2,fill:"#CCCCCC"})),we||(we=a.createElement("rect",{opacity:.5,x:54,y:47,width:28,height:6,rx:3,fill:"#808080"})),je||(je=a.createElement("rect",{x:84,y:44,width:12,height:12,rx:6,fill:"#006450"})),Ae||(Ae=a.createElement("path",{d:"M88.5267 47.3599L88.05 46.8833C87.25 47.4933 86.7233 48.4333 86.6767 49.4999H87.3433C87.3933 48.6166 87.8467 47.8433 88.5267 47.3599ZM92.6567 49.4999H93.3233C93.2733 48.4333 92.7467 47.4933 91.95 46.8833L91.4767 47.3599C92.15 47.8433 92.6067 48.6166 92.6567 49.4999ZM92 49.6666C92 48.6433 91.4533 47.7866 90.5 47.5599V46.8333H89.5V47.5599C88.5433 47.7866 88 48.6399 88 49.6666V51.3333L87.3333 51.9999V52.3333H92.6667V51.9999L92 51.3333V49.6666ZM90 53.3333C90.0467 53.3333 90.09 53.3299 90.1333 53.3199C90.35 53.2733 90.5267 53.1266 90.6133 52.9266C90.6467 52.8466 90.6633 52.7599 90.6633 52.6666H89.33C89.3333 53.0333 89.63 53.3333 90 53.3333Z",fill:"white"})))}var Ce=a.forwardRef(Se);n.p;const Ee=[{id:A.TM.DEFAULT,step0:A.lQ.PREREQUEST,skinName:A.TM.DEFAULT,isDisabled:!0,tooltipMessage:o.A.getStringByKey("deprecated_skin_tooltip"),elementId:"one",key:"1",label:(0,r.jsxs)("div",{className:"label",children:[(0,r.jsx)("div",{className:"label__left",children:(0,r.jsx)(Y,{className:"label__skinImage"})}),(0,r.jsxs)("div",{className:"label__right",children:[(0,r.jsx)("div",{className:"label__title",children:"Default"}),(0,r.jsx)("div",{className:"label__description",children:o.A.getStringByKey("tag_default")})]}),(0,r.jsx)("div",{className:"label__deprecated",children:"Deprecated"})]}),description:"",value:A.TM.DEFAULT},{id:A.TM.LIGHTBOX,step0:A.lQ.PREREQUEST,skinName:A.TM.LIGHTBOX,isDisabled:!0,tooltipMessage:o.A.getStringByKey("deprecated_skin_tooltip"),elementId:"tw
1o",key:"2",label:(0,r.jsxs)("div",{className:"label",children:[(0,r.jsx)("div",{className:"label__left",children:(0,r.jsx)(re,{className:"label__skinImage"})}),(0,r.jsxs)("div",{className:"label__right",children:[(0,r.jsx)("div",{className:"label__title",children:"Lightbox"}),(0,r.jsx)("div",{className:"label__description",children:o.A.getStringByKey("tag_lightbox")})]}),(0,r.jsx)("div",{className:"label__deprecated",children:"Deprecated"})]}),description:"",value:A.TM.LIGHTBOX}],Ie=e=>{const t=e.skinName,n=void 0===t?A.TM.SLIDER:t,i=e.onChangeSkin,s=e.step0,a=e.currentSkin;let l=s!==A.lQ.SKIP&&s?n:A.TM.NATIVE;const c=[{id:A.TM.NATIVE,step0:A.lQ.SKIP,skinName:A.TM.NATIVE,elementId:"four",key:"4",label:(0,r.jsxs)("div",{className:"label",children:[(0,r.jsx)("div",{className:"label__left",children:(0,r.jsx)(ye,{className:"label__skinImage"})}),(0,r.jsxs)("div",{className:"label__right",children:[(0,r.jsxs)("div",{className:"label__title",children:["Native Browser"," ",(0,r.jsx)("span",{className:"label__gray",children:"(1 click subscription)"})]}),(0,r.jsx)("div",{className:"label__description",children:o.A.getStringByKey("tag_native")})]})]}),description:"",value:A.TM.NATIVE},{id:A.TM.SLIDER,step0:A.lQ.PREREQUEST,skinName:A.TM.SLIDER,elementId:"five",key:"5",label:(0,r.jsxs)("div",{className:"label",children:[(0,r.jsx)("div",{className:"label__left",children:(0,r.jsx)(re,{className:"label__skinImage"})}),(0,r.jsxs)("div",{className:"label__right",children:[(0,r.jsx)("div",{className:"label__title",children:"Slider"}),(0,r.jsx)("div",{className:"label__description",children:o.A.getStringByKey("tag_slider")})]})]}),description:"",value:A.TM.SLIDER},{id:A.TM.BELL,step0:A.lQ.PREREQUEST,skinName:A.TM.BELL,elementId:"six",key:"6",label:(0,r.jsxs)("div",{className:"label",children:[(0,r.jsx)("div",{className:"label__left",children:(0,r.jsx)(Ce,{className:"label__skinImage"})}),(0,r.jsxs)("div",{className:"label__right",children:[(0,r.jsx)("div",{className:"label__title",children:"Bell"}),(0,r.jsx)("div",{className:"label__description",children:o.A.getStringByKey("tag_bell")})]})]}),description:"",value:A.TM.BELL}],d=a===A.TM.DEFAULT||a===A.TM.LIGHTBOX?[...Ee,...c]:c;return(0,r.jsx)(K,{elementId:"notix-setup-skin",value:l,onChange:i,options:d,theme:"horizontal",customClassName:"radio-group-notix"})};var Be=n(60868),Le=n(81637),Oe=n(45588),Ue=n(30958),Re=n(29734);const Me="{pubHost}",Pe=e=>{const t=e.onChange,n=e.value,i=(0,a.useState)(!1),l=(0,s.A)(i,2),o=l[0],c=l[1];return(0,a.useEffect)(()=>{null!==n&&void 0!==n&&n.startsWith(Me)&&c(!0),null!==n&&void 0!==n&&n.length||t(Me)},[n,t]),(0,r.jsxs)("div",{className:"HeaderPush",children:[o&&(0,r.jsxs)("div",{className:"HeaderPush__badge",children:[Me," ",n!==Me&&(0,r.jsx)("span",{className:"HeaderPush__close",onClick:()=>{c(!1),t(n.replace(Me,""))},children:"\u2716"})]}),(0,r.jsx)("input",{onKeyDown:e=>{n===Me&&"ArrowLeft"===e.code&&e.preventDefault()},value:n,onChange:e=>{var i;if(n===Me&&(null===(i=e.target.value)||void 0===i?void 0:i.length)<(null===n||void 0===n?void 0:n.length))return null;t(e.target.value)},name:"notificationHeading",id:"notificationHeading",className:"HeaderPush__input ".concat(o?"HeaderPush__input--paddingLeft":"")})]})};var Ke=n(19693);const De=e=>{const t=e.onCustomTextsEdit,n=e.setIsPopupOpened,l=e.setZoneSettingsState,c=e.zoneSettingsState,d=e.setNameLang,g=(0,a.useState)(0),u=(0,s.A)(g,2),m=u[0],x=u[1];(0,a.useEffect)(()=>{null!==c&&void 0!==c&&c.texts&&Object.keys(c.texts).forEach((e,t)=>{m===t&&d(e)})},[m,d,c.texts]);const _=(e,t,n)=>{l((0,i.A)((0,i.A)({},c),{},{texts:(0,i.A)((0,i.A)({},c.texts),{},{[t]:(0,i.A)((0,i.A)({},c.texts[t]),{},{[n]:e})})}))},p=e=>{x(e)},h=c.texts&&Object.keys(c.texts).length>1;return(0,r.jsx)("div",{className:"CustomizedTexts",children:(0,r.jsxs)(Le.tU,{selectedIndex:m,onSelect:x,selectedTabClassName:"CustomizedTexts__selected-tab",children:[(0,r.jsxs)(Le.wb,{className:"CustomizedTexts__tablist",children:[c.texts&&Object.keys(c.texts).map(e=>(0,r.jsx)(Le.oz,{className:"CustomizedTexts__multi-lang-tab",children:"default"===e?o.A.getStringByKey("tag_prompt_language"):e.charAt(0).toUpperCase()+e.slice(1)}
1)),(0,r.jsx)(Oe.Ay,{elementId:"notix-tab-add-lang",type:Oe.II.PLAIN,onClick:()=>{n(!0)},children:(0,r.jsxs)("div",{className:"CustomizedTexts__tab-add",children:[(0,r.jsx)("span",{className:"CustomizedTexts__tab-add-lang"}),(0,r.jsx)("span",{className:"CustomizedTexts__tab-add-lang-text",children:"ADD"})]})})]}),c.texts&&Object.keys(c.texts).map(e=>(0,r.jsx)(Le.Kp,{children:(0,r.jsxs)("div",{className:"CustomizedTexts__form",children:[c.skinName!==A.TM.BELL&&(0,r.jsxs)("div",{className:"CustomizedTexts__row",children:[(0,r.jsx)(Ue.A,{label:o.A.getStringByKey("sites_get-tag-pn-notification-heading"),for:"notificationHeading"}),(0,r.jsx)(Pe,{onChange:t=>_(t,e,"notificationHeading"),value:c.texts[e].notificationHeading})]}),(0,r.jsxs)("div",{className:"CustomizedTexts__row",children:[(0,r.jsx)(Ue.A,{label:o.A.getStringByKey("sites_get-tag-pn-nt"),for:"notificationText"}),(0,r.jsx)(Re.A,{onChange:t=>{_(t,e,"notificationText")},name:"notificationText",elementId:"notificationText",value:c.texts[e].notificationText})]}),c.skinName!==A.TM.BELL&&c.skinName!==A.TM.SLIDER&&(0,r.jsxs)("div",{className:"CustomizedTexts__row",children:[(0,r.jsx)(Ue.A,{label:o.A.getStringByKey("sites_get-tag-pn-ntm"),for:"notificationTextMobile"}),(0,r.jsx)(Re.A,{onChange:t=>{_(t,e,"notificationTextMobile")},name:"notificationTextMobile",elementId:"notificationTextMobile",value:c.texts[e].notificationTextMobile})]}),c.skinName!==A.TM.BELL&&(0,r.jsxs)("div",{className:"CustomizedTexts__row CustomizedTexts__row--flex",children:[(0,r.jsxs)("div",{className:"CustomizedTexts__cell CustomizedTexts__cell--marginRight",children:[(0,r.jsx)(Ue.A,{label:o.A.getStringByKey("tag_cancel_button"),for:"denyBtn"}),(0,r.jsx)(Re.A,{onChange:t=>{_(t,e,"denyBtn")},name:"denyBtn",elementId:"denyBtn",value:c.texts[e].denyBtn})]}),(0,r.jsxs)("div",{className:"CustomizedTexts__cell",children:[(0,r.jsx)(Ue.A,{label:o.A.getStringByKey("tag_allow_button"),for:"allow"}),(0,r.jsx)(Re.A,{onChange:t=>{_(t,e,"allowBtn")},name:"allowBtn",elementId:"allowBtn",value:c.texts[e].allowBtn})]})]}),h&&(0,r.jsx)("div",{className:"CustomizedTexts__row CustomizedTexts__end CustomizedTexts__row--flex",children:(0,r.jsx)(Oe.Ay,{elementId:"notix-delete-lang",type:Oe.II.LINK,onClick:()=>{(e=>{p(0===m?1:0),delete c.texts[e],p(0),t()})(e)},isDisabled:"default"===e,children:(0,r.jsxs)("span",{className:"CustomizedTexts__remove-lang",children:[(0,r.jsx)(Ke.h,{}),o.A.getStringByKey("notix-tag_delete-lang")]})})})]})}))]})})};var qe=n(31563),ze=n(20388),He=n(87624),Ve=n(74080),Fe=n(87068),We=n(90804),Qe=n(89612),Ge=n(44936),Ze=n(64600),Xe=n.n(Ze);const Ye=e=>{const t=e.label,n=e.setValue,i=e.value;return(0,r.jsxs)("div",{className:"ColorPicker",children:[t&&(0,r.jsx)(Ue.A,{for:"ColorPicker",label:t,className:"ColorPicker__label"}),(0,r.jsxs)("div",{className:"ColorPicker__input",children:[(0,r.jsx)("div",{className:"ColorPicker__example",style:{backgroundColor:i}}),(0,r.jsx)("span",{className:"ColorPicker__code",children:i}),(0,r.jsx)("input",{type:"color",value:i,onChange:e=>{const t=e.target.value;n(t)},className:"ColorPicker__input-tag"})]})]})},Je=(e,t)=>{const n=(0,a.useState)(e),i=(0,s.A)(n,2),l=i[0],o=i[1];return(0,a.useEffect)(()=>{const n=setTimeout(()=>{o(e)},t);return()=>{clearTimeout(n)}},[e,t]),l},$e="background:#017f60",et="color:#ffffff",tt="background:#ffffff",nt="color:gray",it=e=>{const t=e.allowButtonStyles,n=e.blockButtonStyles,i=e.onChangeSkinStyles,l=st(t,"".concat($e,";").concat(et)),c=st(n,"".concat(tt,";").concat(nt)),d=(0,a.useState)(l.background),g=(0,s.A)(d,2),u=g[0],m=g[1],x=(0,a.useState)(l.color),_=(0,s.A)(x,2),p=_[0],h=_[1],v=(0,a.useState)(c.background),f=(0,s.A)(v,2),y=f[0],b=f[1],N=(0,a.useState)(c.color),w=(0,s.A)(N,2),j=w[0],A=w[1],T=Je(j,200),k=Je(y,200),S=Je(p,200),C=Je(u,200),E=o.A.getStringByKey("background-color-label-cancel"),I=o.A.getStringByKey("background-color-label-allow"),B=o.A.getStringByKey("text-color-label"),L=o.A.getStringByKey("reset"),O=(0,a.useRef)(!1),U=(0,a.useRef)(i);U.current=i,(0,a.useEffect)(()=>{O.current&&U.current({allow_button:"color:".concat(S,";background:").concat(C),block_button:"color:".concat(T,";background:").concat(k)}),O.current=!0},[C,S,k,T]);return(0,r.jsxs)("div",{className:"SkinButtons",children:[(0,r.jsx)("div",{className:"SkinButtons__item",children:(0,r.jsxs)("div",{className:"SkinButtons__color",children:[(0,r.jsx)(Ye,{setValue:b,value:k,label:E}),(0,r.jsx)(Ye,{setValue:A,value:T,label:B}),(0,r.jsxs)("button",{className:"SkinButtons__btn",onClick:()=>{b("#ffffff"),A("gray")},children:[(0,r.jsx)(Fe.C4,{color:"gray",size:Fe.SK.SMALL}),(0,r.jsx)("span",{children:L})]})]})}),(0,r.jsx)("div",{className:"SkinButtons__item",children:(0,r.jsxs)("div",{className:"SkinButtons__color",children:[(0,r.jsx)(Ye,{setValue:m,value:C,label:I}),(0,r.jsx)(Ye,{setValue:h,value:S,label:B}),(0,r.jsxs)("button",{className:"SkinButtons__btn",onClick:()=>{m("#017f60"),h("#ffffff")},children:[(0,r.jsx)(Fe.C4,{color:"gray",size:Fe.SK.SMALL}),(0,r.jsx)("span",{children:L})]})]})})]})},st=function(e){const t={};return(e||(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"")).split(";
1").forEach(e=>{if(e.length){const n=e.split(":");t[n[0]]=n[1]}}),t},at=e=>{const t=e.onChangeSkinStyles,n=e.skinStyles;return(0,r.jsx)("div",{className:"SkinStyles",children:(0,r.jsx)("div",{className:"SkinStyles__row",children:(0,r.jsx)(it,{onChangeSkinStyles:t,allowButtonStyles:null===n||void 0===n?void 0:n.allow_button,blockButtonStyles:null===n||void 0===n?void 0:n.block_button})})})};var lt=n(53536),ot=n.n(lt);const rt={allow_button:"color:#ffffff;background:#017f60"},ct=e=>{var t;const n=e.customTexts,i=e.skinName,s=e.categories,a=e.icon,l=e.styles,c=e.step0,d=e.press;let g=ot().isEmpty(l)?rt:l;const u=i!==A.TM.BELL&&i!==A.TM.NATIVE;return(0,r.jsxs)("div",{className:Xe()("PreviewRequest",{"PreviewRequest--step0":!c}),children:[(0,r.jsx)("h2",{className:"PreviewRequest__title",children:o.A.getStringByKey("tag_preview_title")}),(0,r.jsxs)("div",{className:"PreviewRequest__browser-panel",children:[(0,r.jsx)("div",{className:"PreviewRequest__dot"}),(0,r.jsx)("div",{className:"PreviewRequest__dot"}),(0,r.jsx)("div",{className:"PreviewRequest__dot"})]}),(0,r.jsx)("div",{className:"PreviewRequest__window ".concat(d?"PreviewRequest__window--pressed":""),children:(0,r.jsxs)("div",{className:Xe()("Skin",{"Skin--lightbox":i===A.TM.LIGHTBOX,"Skin--slider":i===A.TM.SLIDER,"Skin--bell":i===A.TM.BELL,"Skin--native":i===A.TM.NATIVE}),children:[u&&(0,r.jsx)("div",{className:"Skin__left",children:null!==a&&void 0!==a&&a.length?(0,r.jsx)("img",{src:a,width:64,height:64,alt:"push icon"}):(0,r.jsx)("div",{className:"Skin__icon"})}),(0,r.jsxs)("div",{className:"Skin__right",children:[i!==A.TM.NATIVE&&(0,r.jsx)("div",{className:"Skin__header",children:u?null===n||void 0===n||null===(t=n.notificationHeading)||void 0===t?void 0:t.replace("{pubHost}",window.location.hostname):null===n||void 0===n?void 0:n.notificationText}),i===A.TM.NATIVE&&(0,r.jsxs)("div",{className:"Skin__native-title",children:[window.location.hostname," wants to:"]}),u&&(0,r.jsx)("div",{className:"Skin__message",children:null===n||void 0===n?void 0:n.notificationText}),i===A.TM.NATIVE&&(0,r.jsxs)("div",{className:"Skin__native-message",children:[(0,r.jsx)("div",{style:{marginRight:12,paddingTop:4},children:(0,r.jsx)(Fe.Ir,{color:"#4c4c4c"})})," Show notifications"]}),u&&!!Object.keys(s).length&&(0,r.jsx)("div",{className:"Skin__categories",children:Object.keys(s).map(e=>{return(0,r.jsxs)("div",{className:"Skin__checkbox",children:[(0,r.jsx)("input",{type:"checkbox",id:e,className:"Skin__input"},e),(0,r.jsxs)("label",{htmlFor:e,className:"Skin__label",children:[(0,r.jsx)("div",{className:"Skin__checkbox-label",style:st(g.allow_button)}),(t=s[e]||e,t.replaceAll("&amp;","&").replaceAll("&lt;","<").replaceAll("&gt;",">").replaceAll("&quot;",'"').replaceAll("&#039;","'"))]})]});var t})}),(0,r.jsxs)("footer",{className:"Skin__footer",children:[u&&(0,r.jsx)("button",{className:"Skin__deny",style:st(null===g||void 0===g?void 0:g.block_button),children:null===n||void 0===n?void 0:n.denyBtn}),i!==A.TM.NATIVE&&(0,r.jsx)("button",{className:"Skin__allow",style:u?st(null===g||void 0===g?void 0:g.allow_button):{},children:u&&(null===n||void 0===n?void 0:n.allowBtn)}),i===A.TM.NATIVE&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"Skin__btn-native",children:"Allow"}),(0,r.jsx)("div",{className:"Skin__btn-native",children:"Block"})]})]})]}),i!==A.TM.BELL&&(0,r.jsx)("div",{className:"Skin__close"})]})})]})};var dt=n(1622);const gt=e=>{const t=e.data,n=e.onWelcomeMessageEdit,l=e.checkOnError,c=e.clearError,d=e.errors,g=e.refs,u=(0,a.useState)({iconUrl:t.iconUrl,imageUrl:t.imageUrl,isUpload:!t.
1iconUrl&&!t.imageUrl}),m=(0,s.A)(u,2),x=m[0],_=m[1],p=(0,a.useRef)(t);p.current=t;const h=(0,a.useRef)(n);h.current=n,(0,a.useEffect)(()=>{h.current((0,i.A)((0,i.A)({},p.current),{},{iconUrl:x.isUpload?x.icon:x.iconUrl,imageUrl:x.isUpload?x.image:x.imageUrl,isUpload:x.isUpload}))},[x]);const v=o.A.getStringByKey("create_sending_target_url"),f=o.A.getStringByKey("create_sending-creative-title"),y=o.A.getStringByKey("create_sending-creative-description"),b=o.A.getStringByKey("welcome_message_title_pics"),N=(e,s)=>{n((0,i.A)((0,i.A)({},t),{},{[s]:e}))};return(0,r.jsxs)("div",{className:"WelcomeMessage",children:[(0,r.jsx)("div",{className:"WelcomeMessage__row",children:(0,r.jsxs)("div",{className:"WelcomeMessage__cell",children:[(0,r.jsx)(Ue.A,{label:v,for:"targetUrl"}),(0,r.jsx)(Re.A,{placeholder:"https://",id:"targetUrl",value:null===t||void 0===t?void 0:t.targetUrl,elementId:"targetUrl",name:"targetUrl",onChange:e=>N(e,"targetUrl")})]})}),(0,r.jsxs)("div",{className:"WelcomeMessage__row",children:[(0,r.jsxs)("div",{className:"WelcomeMessage__cell WelcomeMessage__cell--margin-right",children:[(0,r.jsx)(Ue.A,{label:f,for:"title"}),(0,r.jsx)(Re.A,{placeholder:"Start typing",id:"title",value:null===t||void 0===t?void 0:t.title,elementId:"title",name:"title",onChange:e=>N(e,"title")})]}),(0,r.jsxs)("div",{className:"WelcomeMessage__cell",children:[(0,r.jsx)(Ue.A,{label:y,for:"description"}),(0,r.jsx)(Re.A,{placeholder:"Start typing",id:"description",value:null===t||void 0===t?void 0:t.description,elementId:"description",name:"description",onChange:e=>N(e,"description")})]})]}),(0,r.jsx)("div",{className:"WelcomeMessage__row",ref:e=>g.iconUrl=e,children:(0,r.jsx)(dt.A,{creativeState:x,setCreativeState:_,isDisablePrevent:!0,title:b,idUploadImage:5,idUploadIcon:6,imageIsNeed:!0,checkOnError:l,clearError:c,errors:d,imageWithIcon:!0})})]})},ut=(0,a.memo)(gt);var mt=n(19129);const xt=e=>{try{new URL(e)}catch(t){return!1}return!0},_t=(e,t,n)=>{var i,s;switch(e){case"iconUrl":if(null===(i=n.iconUrl)||void 0===i||!i.length)return t({iconUrl:[]}),!1;if(!n.isUpload&&!xt(n.iconUrl))return t({iconUrl:[o.A.getStringByKey("error_icon_url_has_invalid_format")]}),!0;if(!n.isUpload&&!n.iconUrl.startsWith("https"))return t({iconUrl:[o.A.getStringByKey("error_icon_url_invalid_protocol")]}),!0;t({iconUrl:[]});break;case"imageUrl":if(!n.isUpload&&(null===(s=n.imageUrl)||void 0===s||!s.length))return t({imageUrl:[]}),!1;if(!n.isUpload&&!xt(n.imageUrl))return t({imageUrl:[o.A.getStringByKey("error_image_url_has_invalid_format")]}),!0;if(!n.isUpload&&!n.imageUrl.startsWith("https"))return t({imageUrl:[o.A.getStringByKey("error_image_url_invalid_protocol")]}),!0;t({imageUrl:[]})}},pt=["imageUrl","iconUrl","iconUpload"];var ht=n(57077),vt=n(86067);var ft=n(59557),yt=n(97594);const bt=(e,t)=>{const n=(e=>{const t=(0,i.A)({},e);return"waitUserActivity"===t.step0&&(t.trigger="waitUserActivity"),"waitClick"===t.step0&&(t.trigger="waitClick"),"useCategories"===t.step0&&(t.step0="usePrerequest",t.view="slider"),t.step0||(t.view="native"),"default"===t.skinName&&(t.step0="usePrerequest",t.view="default"),"bell"===t.skinName&&(t.step0="usePrerequest",t.view="bell"),"skip"!==t.step0&&"slider"===t.skinName&&(t.step0="usePrerequest",t.view="slider"),"lightbox"===t.skinName&&(t.view="native"),"skip"===t.step0&&(t.view="native"),"usePrerequest"!==t.step0||t.view||(t.view="slider"),t})(e);let s={appId:n.app_id,loadSettings:n.load_settings};if(!n.load_settings){if(s.step0=n.step0,s.view=n.view,n.delay&&(s.delay=n.delay),"slider"===n.view){var a,l,o;if(s.texts=n.texts,null!==(a=n.prerequest)&&void 0!==a&&a.press||null!==(l=n.prerequest)&&void 0!==l&&l.afterCloseDelay){var r,c,d,g;if(s.prerequest={},null!==(r=n.prerequest)&&void 0!==r&&r.press)s.prerequest.press=null===(d=n.prerequest)||void 0===d?void 0:d.press;if(null!==(c=n.prerequest)&&void 0!==c&&c.afterCloseDelay)s.prerequest.afterCloseDelay=Number(null===(g=n.prerequest)||void 0===g?void 0:g.afterCloseDelay)}n.custom_icon_url&&(s.custom_icon_url=n.custom_icon_url),null!==(o=Object.keys(n.skin_styles))&&void 0!==o&&o.length&&(s.skin_styles=n.skin_
1styles)}if("bell"===n.view){var u,m;if(null!==(u=n.prerequest)&&void 0!==u&&u.afterCloseDelay)s.prerequest={},s.prerequest.afterCloseDelay=Number(null===(m=n.prerequest)||void 0===m?void 0:m.afterCloseDelay);s.texts=(e=>{const t={};return Object.keys(e).forEach(n=>{t[n]={notificationText:e[n].notificationText}}),t})(n.texts)}}const x=JSON.stringify(s,null,"\t").split("\n");let _="";for(let i=0;i<(null===x||void 0===x?void 0:x.length);i++)_=_+"\n\t\t\t"+x[i];return t.replace("{{ITEMS}}",_)},Nt=e=>{var t,n,l,d,g;const u=e.zoneSettings,m=e.onZoneSettingEdit,x=e.history,_=e.tagTemplate,p=e.swContent,h=e.swFilename,v=e.zoneId,f=(0,He.GV)(e=>e.targeting.targetings),y=(0,He.GV)(e=>e.notixProfile.billing.monetization_enabled),b=(0,He.GV)(e=>e.notixProfile).features,N=(0,a.useState)(u),w=(0,s.A)(N,2),j=w[0],T=w[1],k=(0,a.useState)(!1),S=(0,s.A)(k,2),C=S[0],E=S[1],I=(0,a.useState)(),B=(0,s.A)(I,2),L=B[0],O=B[1],U=(0,a.useState)(j.delay>0),R=(0,s.A)(U,2),M=R[0],P=R[1],K=(0,a.useState)(j.prerequest&&j.prerequest.afterCloseDelay>0),D=(0,s.A)(K,2),q=D[0],z=D[1],H=(0,a.useState)("default"),V=(0,s.A)(H,2),F=V[0],W=V[1],Q=(0,a.useState)({iconUrl:u.custom_icon_url,icon:null,isUpload:!u.custom_icon_url}),G=(0,s.A)(Q,2),Z=G[0],X=G[1],Y=(0,a.useState)(u.disable_ad_images||!1),J=(0,s.A)(Y,2),$=J[0],ee=J[1],te=(0,a.useState)(!1),ne=(0,s.A)(te,2),ie=ne[0],se=ne[1],ae=(0,a.useState)(!1),le=(0,s.A)(ae,2),oe=le[0],re=le[1],ce=(0,a.useState)(!1),de=(0,s.A)(ce,2),ge=de[0],ue=de[1],me=(0,a.useState)(""),xe=(0,s.A)(me,2),_e=xe[0],pe=xe[1],he=null===(t=(0,ft.zy)().state)||void 0===t?void 0:t.isFirst;(0,a.useEffect)(()=>{T(e=>(0,i.A)((0,i.A)({},e),{},{creativeIcon:{isUpload:Z.isUpload,icon:Z.icon,iconUrl:Z.iconUrl}}))},[Z]),(0,a.useEffect)(()=>{u&&T(u)},[u]);const ve=(0,mt.A)({errorKeys:pt,validationSchema:_t,data:j.welcome_message_template}),fe=(0,s.A)(ve,5),ye=fe[0],be=fe[1],Ne=fe[2],we=fe[3],je=fe[4],Ae=(0,He.jL)(),Te=(0,a.useCallback)(()=>{(async()=>{var e;const t=await yt.A.load("?zone_id=".concat(v,"&editable=1")),n=null===t||void 0===t||null===(e=t.audiencesList)||void 0===e?void 0:e.audiences,s={};n.forEach(e=>{s[e.title]=e.label}),Me(s),Ee(!0),T(e=>(0,i.A)((0,i.A)({},e),{},{categories:""}))})()},[v]),ke=(0,a.useState)(!1),Se=(0,s.A)(ke,2),Ce=Se[0],Ee=Se[1],Le=(0,a.useState)({}),Ue=(0,s.A)(Le,2),Re=Ue[0],Me=Ue[1],Pe=(0,a.useState)(!1),Ke=(0,s.A)(Pe,2),Ze=Ke[0],Xe=Ke[1];(0,a.useEffect)(()=>{Ze&&Te()},[Ze,Te]);const Ye=(0,a.useRef)(j.categories);Ye.current=j.categories,(0,a.useEffect)(()=>{if(j.use_categories){const e=Ye.current;ot().isEmpty(e)||""===e?Te():Me(JSON.parse(e||"{}"))}else Me({})},[j.use_categories,Te]);const Je=(0,a.useRef)(j);Je.current=j;const it=(0,a.useRef)(x);it.current=x;const st=(0,a.useRef)(he);st.current=he,(0,a.useEffect)(()=>{var e;const t=Je.current;var n,s;t.texts||(t.step0!==A.lQ.CATEGORIES?null!==(n=t.texts)&&void 0!==n&&n.default||T((0,i.A)((0,i.A)({},t),{},{texts:(0,i.A)((0,i.A)({},t.texts),{},{default:{notificationHeading:"{pubHost} wants to",notificationText:"Show notifications",notificationTextMobile:"{pubHost} wants to send you notifications.",allowBtn:"Allow",denyBtn:"Block"}})})):null!==(s=t.texts)&&void 0!==s&&s.default||T((0,i.A)((0,i.A)({},t),{},{texts:(0,i.A)((0,i.A)({},t.texts),{},{default:{notificationHeading:"We'd like to show you notifications for the latest news and updates.",allowBtn:"Allow",denyBtn:"No Thanks"}})})));return ue(!st.current),Ae((0,vt.PJ)({})),t.skin_styles&&null!==(e=Object.keys(t.skin_styles))&&void 0!==e&&e.length&&(t.skin_styles.allow_button!=="".concat(et,";").concat($e)||t.skin_styles.block_button!=="".concat(nt,";").concat(tt))&&se(!0),t.custom_icon_url&&re(!0),()=>it.current.replace()},[Ae]);const lt=f.language.map(e=>({value:e.value,label:e.title})),rt=()=>{(0,Ge.P)(p,h,Ge.$.TXT)},gt=A.wY[j.app_type],xt=o.A.getStringByKey("tag_creative_title_pics");return(0,a.useEffect)(()=>{pe(bt(j,_))},[j,_]),(0,r.jsxs)("div",{className:"NotixTag",children:[(0,r.jsxs)("div",{className:"NotixTag__left-side",children:[(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"NotixTag__step",children:(0,r.jsxs)("div",{className:"NotixTag__row",children:[(0,r.jsx)("div",{className:"NotixTag__sub-row",children:(0,r.jsx)(c,{label:o.A.getStringByKey(gt===A.Tq.MANUAL?"tag_add-script":"tag_add-script-wp"),number:1})}),(0,r.jsx)("div",{className:"NotixTag__sub-row",children:(0,r.jsx)("span",{children:o.A.getStringByKey(gt===A.Tq.MANUAL?"tag_explanation_script":"tag_explanation_script_wp")})}),(0,r.jsx)("div",{className:"NotixTag__sub-row ".concat(gt===A.Tq.WORDPRESS?"NotixTag__sub-row--mbs":""),children:(0,r.jsx)(Qe.A,{highlightCode:!1,language:"html",elementId:"notix-codeviewer",children:gt===A.Tq.MANUAL?"".concat(_e):"".concat(null===j||void 0===j?void 0:j.app_id)})}),gt===A.Tq.WORDPRESS&&(0,r.jsx)("div",{className:"NotixTag__sub-row",children:(0,r.jsx)("a",{target:"_blank",href:"https://help.notix.co/en/articles/4971080-how-to-install-notix-wordpress-plugin",rel:"noreferrer",children:o.A.getStringByKey("tag_integration_instructions")})})]})}),gt===A.Tq.MANUAL&&(0,r.jsx)("div",{className:"NotixTag__step",children:(0,r.jsxs)("div",{className:"NotixTag__row",children:[(0,r.jsx)("div",{className:"NotixTag__sub-row",children:(0,r.jsx)(c,{label:o.A.getStringByKey("tag_after_code_txt"),number:2})}
1),(0,r.jsx)("div",{className:"NotixTag__sub-row NotixTag__sub-row--mbs",children:(0,r.jsxs)(Oe.Ay,{elementId:"download-swjs",onClick:rt,type:Oe.II.ADVANCED,children:[(0,r.jsx)(Fe.f5,{color:"#017F60",size:"small"}),(0,r.jsx)("span",{children:"sw.enot.js"})]})}),(0,r.jsx)("div",{className:"NotixTag__sub-row",children:(0,r.jsx)("a",{target:"_blank",href:"https://help.notix.co/en/articles/4853062-how-do-i-put-a-notix-script-on-the-website-landing-how-to-make-sure-i-ve-done-it-correctly",rel:"noreferrer",children:o.A.getStringByKey("tag_installation_instructions")})})]})}),gt===A.Tq.WORDPRESS&&(0,r.jsx)("div",{className:"NotixTag__step",children:(0,r.jsxs)("div",{className:"NotixTag__row",children:[(0,r.jsx)("div",{className:"NotixTag__sub-row",children:(0,r.jsx)(c,{label:o.A.getStringByKey("tag_wordpress_api_access"),number:2})}),(0,r.jsx)("div",{className:"NotixTag__sub-row",children:(0,r.jsx)("a",{target:"_blank",href:"https://app.notix.co/auth/apiAccess",rel:"noreferrer",children:o.A.getStringByKey("tag_wordpress_api_access_url")})})]})}),gt===A.Tq.WORDPRESS&&(0,r.jsx)("div",{className:"NotixTag__step",children:(0,r.jsxs)("div",{className:"NotixTag__row",children:[(0,r.jsx)("div",{className:"NotixTag__sub-row",children:(0,r.jsx)(c,{label:o.A.getStringByKey("tag_after_code_txt"),number:3})}
1),(0,r.jsx)("div",{className:"NotixTag__sub-row NotixTag__sub-row--mbs",children:(0,r.jsxs)(Oe.Ay,{elementId:"download-swjs",onClick:rt,type:Oe.II.ADVANCED,children:[(0,r.jsx)(Fe.f5,{color:"#017F60",size:"small"}),(0,r.jsx)("span",{children:"sw.enot.js"})]})}),(0,r.jsx)("div",{className:"NotixTag__sub-row",children:(0,r.jsx)("a",{target:"_blank",href:"https://help.notix.co/en/articles/4853062-how-do-i-put-a-notix-script-on-the-website-landing-how-to-make-sure-i-ve-done-it-correctly",rel:"noreferrer",children:o.A.getStringByKey("tag_installation_instructions")})})]})}),(0,r.jsx)("div",{className:"NotixTag__step",children:(0,r.jsxs)("div",{className:"NotixTag__row",children:[(0,r.jsx)("div",{className:"NotixTag__sub-row",children:(0,r.jsx)(c,{label:o.A.getStringByKey("type-request"),number:gt===A.Tq.WORDPRESS?4:3})}),(0,r.jsxs)("div",{className:"NotixTag__sub-row NotixTag__sub-row--flex",children:[(0,r.jsx)(Be.A,{elementId:"switch-type-request",onChange:ue,model:ge,commonStyle:"NotixTag__switch"}),(0,r.jsx)("span",{className:"NotixTag__marginLeft",children:o.A.getStringByKey("customize-view")})]})]})})]}),[A.Tq.MANUAL,A.Tq.WORDPRESS].includes(gt)&&ge&&(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"NotixTag__step",children:(0,r.jsxs)("div",{className:"NotixTag__row NotixTag__row--setup-skin",children:[(0,r.jsx)("div",{className:"NotixTag__sub-row",children:(0,r.jsx)("h3",{children:o.A.getStringByKey("tag_permission_prompt_view")})}),(0,r.jsx)("div",{className:"NotixTag__sub-row",children:(0,r.jsx)(Ie,{step0:j.step0,onChangeSkin:e=>{T((0,i.A)((0,i.A)({},j),{},{skinName:e.skinName,step0:e.step0}))},skinName:j.skinName,currentSkin:u.skinName})})]})}),(0,r.jsx)("div",{className:"NotixTag__step",children:(0,r.jsxs)("div",{className:"NotixTag__row",children:[(0,r.jsx)("div",{className:"NotixTag__sub-row",children:(0,r.jsx)("h3",{children:o.A.getStringByKey("tag_prompt-settings")})}
1),(0,r.jsx)("div",{className:"NotixTag__sub-row NotixTag__sub-row--flex",children:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(Be.A,{onChange:()=>{T((0,i.A)((0,i.A)({},j),{},{use_custom_texts:!j.use_custom_texts}))},model:j.use_custom_texts||!1,elementId:"notix-setup-custom-texts",commonStyle:"NotixTag__switch",isDisabled:j.step0===A.lQ.SKIP}),(0,r.jsx)("span",{className:"NotixTag__marginLeft",children:o.A.getStringByKey("tag_customize_default_text")})]})}),j.use_custom_texts&&j.step0!==A.lQ.SKIP&&(0,r.jsx)("div",{className:"NotixTag__sub-row",children:(0,r.jsx)(De,{setNameLang:W,setZoneSettingsState:T,zoneSettingsState:j,onCustomTextsEdit:()=>{m(j)},setIsPopupOpened:e=>E(e)})}),j.skinName!==A.TM.NATIVE&&j.skinName!==A.TM.BELL&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"NotixTag__sub-row NotixTag__sub-row--flex",children:[(0,r.jsx)(Be.A,{onChange:()=>{var e;T((0,i.A)((0,i.A)({},j),{},{prerequest:(0,i.A)((0,i.A)({},j.prerequest),{},{press:!(null!==(e=j.prerequest)&&void 0!==e&&e.press)})}))},model:null===(null===(n=j.prerequest)||void 0===n?void 0:n.press)||(null===(l=j.prerequest)||void 0===l?void 0:l.press),elementId:"press-prerequest",commonStyle:"NotixTag__switch"}),(0,r.jsx)("span",{className:"NotixTag__marginLeft NotixTag__marginRight",children:o.A.getStringByKey("press-prerequest")})]}
1),(0,r.jsxs)("div",{className:"NotixTag__sub-row NotixTag__sub-row--flex",children:[(0,r.jsx)(Be.A,{onChange:se,model:ie,elementId:"skinStyles",commonStyle:"NotixTag__switch"}),(0,r.jsx)("span",{className:"NotixTag__marginLeft NotixTag__marginRight",children:o.A.getStringByKey("customize-button-colours")})]}),ie&&(0,r.jsx)(at,{onChangeSkinStyles:e=>{T((0,i.A)((0,i.A)({},j),{},{skin_styles:e}))},skinStyles:j.skin_styles}),(0,r.jsxs)("div",{className:"NotixTag__sub-row NotixTag__sub-row--flex",children:[(0,r.jsx)(Be.A,{onChange:e=>{T((0,i.A)((0,i.A)({},j),{},{use_categories:e}))},model:j.use_categories,elementId:"useCategories",commonStyle:"NotixTag__switch"}),(0,r.jsx)("span",{className:"NotixTag__marginLeft NotixTag__marginRight",children:o.A.getStringByKey("use-categories")})]}),!Ce&&(0,r.jsx)("div",{className:"NotixTag__sub-row NotixTag__sub-row--flex",children:!ot().isEmpty(Re)&&j.use_categories&&(0,r.jsx)(Oe.Ay,{elementId:"",type:Oe.II.SECONDARY,onClick:()=>{Xe(!0)},children:"Use new categories scheme"})}),(0,r.jsxs)("div",{className:"NotixTag__sub-row N
1otixTag__sub-row--flex",children:[(0,r.jsx)(Be.A,{onChange:re,model:oe,elementId:"picturesSwitcherId",commonStyle:"NotixTag__switch"}),(0,r.jsx)("span",{className:"NotixTag__marginLeft NotixTag__marginRight",children:o.A.getStringByKey("customize-promt-image")})]}),oe&&(0,r.jsx)("div",{className:"NotixTag__sub-row",children:(0,r.jsx)(dt.A,{creativeState:Z,setCreativeState:X,isDisablePrevent:!0,title:xt,idUploadImage:3,idUploadIcon:4})})]})]})}),(0,r.jsxs)("div",{className:"NotixTag__step",children:[(0,r.jsxs)("div",{className:"NotixTag__row",children:[(0,r.jsx)("div",{className:"NotixTag__sub-row",children:(0,r.jsx)("h3",{children:o.A.getStringByKey("tag_additional_settings")})}),(0,r.jsxs)("div",{className:"NotixTag__sub-row NotixTag__sub-row--flex ",children:[(0,r.jsx)(Be.A,{onChange:()=>{T((0,i.A)((0,i.A)({},j),{},{load_settings:!j.load_settings}))},model:null===j.load_settings||j.load_settings,elementId:"notix-setup-load-settings",commonStyle:"NotixTag__switch"}),(0,r.jsx)("span",{className:"NotixTag__marginLeft NotixTag__marginRight",children:o.A.getStringByKey("sites_get-tag-load-settings-msg")}),(0,r.jsx)(Ve.A,{id:"tooltip-sites_get-tag-load_settings",tip:o.A.getStringByKey("sites_get-tag-load_settings"),children:(0,r.jsx)(Fe.vN,{color:Fe.o$.GRAY,size:Fe.SK.SMALL})})]})]}),(0,r.jsxs)("div",{className:"NotixTag__row",children:[(0,r.jsxs)("div",{className:"NotixTag__sub-row N
1otixTag__sub-row--flex NotixTag__sub-row--mbs",children:[(0,r.jsx)(Be.A,{onChange:P,model:M,elementId:"notix-delay-switch-settings",commonStyle:"NotixTag__switch"}),(0,r.jsx)("span",{className:"NotixTag__marginLeft NotixTag__marginRight",children:o.A.getStringByKey("sites_get-tag-pn-delay")})]}),M&&(0,r.jsxs)("div",{className:"NotixTag__sub-row NotixTag__sub-row--flex NotixTag__sub-row--width110 NotixTag__sub-row--mbs",children:[(0,r.jsx)(We.A,{errors:[],isDisabled:!1,placeholder:"0",elementId:"notix-setup-delay",value:j.delay,onChange:e=>{j.delay!==parseInt(e,10)&&T((0,i.A)((0,i.A)({},j),{},{delay:parseInt(e,10)}))}}),(0,r.jsx)("span",{className:"NotixTag__marginLeft",children:o.A.getStringByKey("sites_get-tag-pn-delay-sec")})]})]}),j.step0!==A.lQ.SKIP&&(0,r.jsxs)("div",{className:"NotixTag__row",children:[(0,r.jsxs)("div",{className:"NotixTag__sub-row NotixTag__sub-row--flex NotixTag__sub-row--mbs",children:[(0,r.jsx)(Be.A,{onChange:z,model:q,elementId:"notix-after-close-delay-switch-settings",commonStyle:"NotixTag__switch"}),(0,r.jsx)("span",{className:"NotixTag__marginLeft NotixTag__marginRight",children:o.A.getStringByKey("sites_get-tag-pn-after-close-delay")})]}
1),q&&(0,r.jsxs)("div",{className:"NotixTag__sub-row NotixTag__sub-row--flex NotixTag__sub-row--width110 NotixTag__sub-row--mbs",children:[(0,r.jsx)(We.A,{errors:[],isDisabled:!1,placeholder:"0",elementId:"notix-setup-after-close-delay",value:j.prerequest&&j.prerequest.afterCloseDelay,onChange:e=>{var t,n;null!==(t=j.prerequest)&&void 0!==t&&t.afterCloseDelay&&(null===(n=j.prerequest)||void 0===n?void 0:n.afterCloseDelay)===e||T((0,i.A)((0,i.A)({},j),{},{prerequest:(0,i.A)((0,i.A)({},j.prerequest),{},{afterCloseDelay:e||"0"})}))},stepAmount:.1}),(0,r.jsx)("span",{className:"NotixTag__marginLeft",children:o.A.getStringByKey("sites_get-tag-pn-delay-hours")})]})]}),(0,r.jsxs)("div",{className:"NotixTag__row",children:[(0,r.jsxs)("div",{className:"NotixTag__sub-row NotixTag__sub-row--flex-align-start NotixTag__sub-row--mbs",children:[(0,r.jsx)(Be.A,{onChange:()=>{T((0,i.A)((0,i.A)({},j),{},{welcome_message:!j.welcome_message}))},model:j.welcome_message||!1,elementId:"notix-setup-welcome",commonStyle:"NotixTag__switch"}),(0,r.jsxs)("div",{className:"NotixTag__label-link",children:[(0,r.jsx)("span",{children:o.A.getStringByKey("sites_get-tag-welcome-msg")}),(0,r.jsx)("span",{children:(0,r.jsx)("a",{target:"_blank",href:"https://help.notix.co/en/articles/5350866-how-to-customize-the-welcome-message",rel:"noreferrer",children:o.A.getStringByKey("tag_read_instructions")})})]})]}
1),(0,r.jsx)("div",{className:"NotixTag__sub-row NotixTag__sub-row--mbs",children:j.welcome_message&&(0,r.jsx)(ut,{data:j.welcome_message_template,onWelcomeMessageEdit:e=>{T((0,i.A)((0,i.A)({},j),{},{welcome_message_template:e}))},checkOnError:je,clearError:Ne,errors:ye,refs:be})})]}),y&&(null===b||void 0===b?void 0:b.disable_ad_images)&&(0,r.jsx)("div",{className:"NotixTag__row",children:(0,r.jsxs)("div",{className:"NotixTag__sub-row NotixTag__sub-row--flex NotixTag__sub-row--mbs",children:[(0,r.jsx)(Be.A,{onChange:e=>{ee(e),T((0,i.A)((0,i.A)({},j),{},{disable_ad_images:e}))},model:$,elementId:"notix-disable-ad-images-text",commonStyle:"NotixTag__switch"}),(0,r.jsx)("span",{className:"NotixTag__marginLeft NotixTag__marginRight",children:o.A.getStringByKey("notix-disable-ad-images-text")})]})})]})]})}),(0,r.jsxs)("div",{className:"NotixTag__step NotixTag__step--buttons",children:[(0,r.jsx)("div",{className:"NotixTag__row",children:(0,r.jsx)(ht.A,{errorsState:ye})}),(0,r.jsxs)("div",{className:"NotixTag__row NotixTag__bottom-buttons",children:[(0,r.jsx)(Oe.Ay,{elementId:"notix-tag_save",type:Oe.II.PRIMARY,onClick:()=>{if(j.welcome_message&&we())return null;m(j)},children:(0,r.jsx)("span",{children:o.A.getStringByKey("tag_apply")})}),(0,r.jsx)(Oe.Ay,{elementId:"notix-tag_cancel",type:Oe.II.ADVANCED,onClick:x.goBack,children:(0,r.jsx)("span",{children:o.A.getStringByKey("tag_cencel")})})]})]})]}),(0,r.jsx)("div",{className:"NotixTag__right-side",children:[A.Tq.MANUAL,A.Tq.WORDPRESS].includes(gt)&&(0,r.jsx)(ct,{styles:j.skin_styles,customTexts:null===(d=j.texts)||void 0===d?void 0:d[F],skinName:j.skinName,press:null===j||void 0===j||null===(g=j.prerequest)||void 0===g?void 0:g.press,categories:Re,icon:Z.isUpload?Z.icon:Z.iconUrl,step0:j.step0})}),C&&(0,r.jsx)(qe.Ay,{closePopupHandler:E,header:(0,r.jsx)("strong",{children:o.A.getStringByKey("notix-tag_add-lang-choose")}),children:(0,r.jsxs)("div",{className:"NotixTag__popup-container",children:[(0,r.jsx)(ze.A,{isOptionDisabled:e=>0===e.value,options:lt,elementId:"notix-tag_add-tab-lang",onChange:e=>{O(e)},value:L,isSearchable:!0,id:"notix-tag_add-tab-lang"}),(0,r.jsxs)("div",{className:"NotixTag__popup-buttons",children:[(0,r.jsx)(Oe.Ay,{elementId:"notix-tag_add-tab_cancel",type:Oe.II.ADVANCED,onClick:()=>{E(!1)},children:(0,r.jsx)("span",{children:o.A.getStringByKey("notix-tag_add-lang-cancel")})}),(0,r.jsx)(Oe.Ay,{elementId:"notix-tag_add-tab_ok",type:Oe.II.PRIMARY,onClick:()=>{E(!1),(e=>{var t;null!==(t=j.texts)&&void 0!==t&&t[e]||(j.step0!==A.lQ.CATEGORIES?T((0,i.A)((0,i.A)({},j),{},{texts:(0,i.A)((0,i.A)({},j.texts),{},{[e]:{notificationHeading:"{pubHost} wants to",notificationText:"Show notifications",notificationTextMobile:"{pubHost} wants to send you notifications.",allowBtn:"Allow",denyBtn:"Block"}})})):T((0,i.A)((0,i.A)({},j),{},{texts:(0,i.A)((0,i.A)({},j.texts),{},{[e]:{notificationHeading:"We'd like to show you notifications for the latest news and updates.",allowBtn:"Allow",denyBtn:"No Thanks"}})})))})(null===L||void 0===L?void 0:L.value)},isDisabled:!(null!==L&&void 0!==L&&L.value),children:(0,r.jsx)("span",{children:o.A.getStringByKey("notix-tag_add-lang-create")})})]})]})})]})};var wt=n(3437),jt=n(19064),At=n(72265),Tt=n(97060),kt=n(88127),St=n(91867),Ct=n(40194),Et=n(96548);const It=e=>{var t,n,o;let c=e.match,d=e.location,g=e.history;const u=(0,He.jL)(),m=(0,He.GV)(e=>e.zones.loading);document.title="Get tag | ".concat(l.A.appTitle);const x=(0,a.useState)(null),_=(0,s.A)(x,2),p=_[0],h=_[1],v=(0,a.useState)(null),f=(0,s.A)(v,2),y=f[0],b=f[1],N=(0,a.useState)(null),w=(0,s.A)(N,2),j=w[0],A=w[1],T=(0,a.useState)(null),k=(0,s.A)(T,2),S=k[0],C=k[1],E=(0,a.useState)(!1),I=(0,s.A)(E,2),B=I[0],L=I[1],O=(0,a.useState)(!1),U=(0,s.A)(O,2),R=U[0],M=U[1],P=c.params,K=P.zoneId,D=P.siteId,q=d.state&&d.state.siteId;async function z(e,t){const n={},s=await jt.Ay.getZone(e,t)||{},a=await jt.Ay.getNotixTagSettings(t);return n.zoneSettings=(0,i.A)((0,i.A)({},a.zone_settings),{},{welcome_message_template:(0,i.A)({},a.welcome_message_template)}),n.code=a.tag_code,n.direction=s.direction||"notix",n.title=s.title||"",n.id=t,n}(0,a.useEffect)(()=>{!async function(){let e=D;e||(e=q||(await At.Ay.getDirectLinkSite()).id);const t=await z(e,K);t&&(b(e),h(t.direction),C(t),A(t.title))}()},[D,q,K]);let H=null;if(S&&y)if(p===jt.X.NOTIX)H=(0,r.jsx)(Nt,{history:g,swFilename:null===(t=S.code)||void 0===t?void 0:t.name,swContent:null===(n=S.code)||void 0===n?void 0:n.content,tagTemplate:null===(o=S.code)||void 0===o?void 0:o.tagContent,zoneSettings:S.zoneSettings,onZoneSettingEdit:async function(e){var t;C(null),await(async e=>{var t,n,i,s,a,l;if(null!==e&&void 0!==e&&null!==(t=e.creativeIcon)&&void 0!==t&&t.isUpload&&null!==e&&void 0!==e&&null!==(n=e.creativeIcon)&&void 0!==n&&n.icon&&null!==e&&void 0!==e&&null!==(i=e.creativeIcon)&&void 0!==i&&i.icon.startsWith("data:image")){var o;const t=await St.A.uploadImgPrerequest({icon:null===e||void 0===e||null===(o=e.creativeIcon)||void 0===o?void 0:o.icon});e.custom_icon_url=null===t||void 0===t?void 0:t.icon_url}else{var r;e.custom_icon_url=(null===e||void 0===e||null===(r=e.creativeIcon)||void 0===r?void 0:r.iconUrl)||e.custom_icon_url}if(null===e||void 0===e||delete e.creativeIcon,null!==e&&void 0!==e&&null!==(s=e.welcome_message_template)&&void 0!==s&&s.isUpload&&null!==e&&void 0!==e&&null!==(a=e.welcome_message_template)&&void 0!==a&&a.iconUrl&&null!==e&&void 0!==e&&null!==(l=e.welcome_message_template)&&void 0!==l&&l.iconUrl.startsWith("data:image")){var c,d;const t=await St.A.uploadImgPrerequest({icon:null===e||void 0===e?void 0:e.welcome_message_template.iconUrl,image:null!==e&&void 0!==e&&null!==(c=e.welcome_message_template)&&void 0!==c&&c.imageUrl&&null!==e&&void 0!==e&&null!==(d=e.welcome_message_template)&&void 0!==d&&d.imageUrl.startsWith("data:image")?null===e||void 0===e?void 0:e.welcome_message_template.imageUrl:null});e.welcome_message_template.iconUrl=null===t||void 0===t?void 0:t.icon_url,e.welcome_message_template.imageUrl=null===t||void 0===t?void 0:t.image_url}null===e||void 0===e||delete e.welcome_message_template.isUpload})(e),null!==(t=e.prerequest)&&void 0!==t&&t.afterCloseDelay&&(e.prerequest.afterCloseDelay=Number(e.prerequest.afterCloseDelay)),await u((0,vt.ec)(S.id,{zone_settings:(0,i.A)({},e),welcome_message_template:e.welcome_message_template}));const n=await z(y,S.id);C(n)},zoneId:S.id});else H=null;return(0,r.jsxs)(kt.A,{title:"Get Tag | ".concat(l.A.appTitle),children:[(0,r.jsx)(wt.A,{actions:(0,r.jsx)(Oe.Ay,{elementId:"sites_get-tag-back-to-site",type:Oe.II.PRIMARY,onClick:()=>g.goBack(),children:(0,r.jsx)(Tt.A,{tag:"sites_get-tag-back-to-site"})}),children:j&&(0,r.jsx)("div",{className:"GetTag__zoneName",children:(0,r.jsx)(Ct.Ay,{elementId:"Sites_edit-zone-name-field",onChange:e=>A(e.target.value),onFocus:()=>L(!0),value:j,isLoading:R,isEditable:B,onCancel:()=>L(!1),onSave:()=>async function(e,t,n){M(!0),L(!1),await jt.Ay.renameZone(e,t,n),A(n),M(!1)}(y,S.id,j),fieldClassName:"GetTag__zoneName"})})}),m||!S?(0,r.jsx)(Et.A,{}):H]})}},79717(e,t,n){const i={MANUAL:"manual",WORDPRESS:"wordpress"},s={0:i.MANUAL,1:i.WORDPRESS};n.d(t,["TM",0,{DEFAULT:"default",LIGHTBOX:"lightbox",CATEGORIES:"categories",NATIVE:"native",
1SLIDER:"slider",BELL:"bell"},"Tq",0,i,"lQ",0,{SKIP:"skip",PREREQUEST:"usePrerequest",CATEGORIES:"useCategories"},"l_",0,{MANUAL:0,WORDPRESS:1},"wY",0,s])},3437(e,t,n){var i=n(65043),s=n(65173),a=n.n(s),l=n(51045);function o(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function r(){var e=o(["\n  margin-top: ","px;\n  \n  @media screen and (min-width: ","px) {\n    display: flex;\n    margin-left: ","px;\n    margin-top: 0;\n  }\n"]);return r=function(){return e},e}function c(){var e=o(["\n  flex: 1;\n  \n  & > * {\n    margin-bottom: 0!important;\n  }\n"]);return c=function(){return e},e}function d(){var e=o(["\n  margin: 0 0 ","px 0;\n  text-align: center;\n  \n  @media screen and (min-width: ","px) {\n    text-align: left;\n    display: flex;\n    align-items: center;\n  }\n"]);return d=function(){return e},e}var g=l.Ay.div(d(),28,768),u=l.Ay.div(c()),m=l.Ay.div(r(),16,768,16),x=function(e){var t=e.actions,n=e.children;return i.createElement(g,null,i.createElement(u,null,n),t&&i.createElement(m,null,t))};x.propTypes={children:a().oneOfType([a().string,a().element,a().node]).isRequired,actions:a().oneOfType([a().string,a().element,a().node])},x.defaultProps={actions:""};const _=x;n.d(t,["A",0,_])}}]);
2//# sourceMappingURL=250.9d62accd.chunk.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.