/home/blackyak/www/wordpress/wp-content/plugins/wp-travel-engine/dist/blocks/editor/trip-blocks.js
(()=>{var e={24:(e,t,r)=>{"use strict";r.r(t),r.d(t,{edit:()=>c,metadata:()=>d});var o=r(1609),n=r(7723),a=r(4715),i=r(8504),l=r(7143),s=r(3582);const c=(...e)=>{const t=e[0],{attributes:r,setAttributes:c,context:{commentId:d}}=t,{border:p,borderRadius:u,boxShadow:b,margin:g,padding:f,textColor:m,background:h,alignment:y,starsSize:v,starsGap:w,stars:x}=r,k=["position","xOffset","yOffset","blur","spread","color"].map((e=>{var t,r;if("position"===e)return"inset"!==b[e]?"":"inset";if("color"===e)return null!==(r=b[e])&&void 0!==r?r:"";const o=null!==(t=b[e])&&void 0!==t?t:"";return""!==o?o:0})).join(" "),E=(0,a.useBlockProps)(),R=e=>(0,o.createElement)("svg",{width:"19",height:"18",viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},(0,o.createElement)("path",{d:"M8.47612 1.09395C8.84128 0.344864 9.90872 0.344863 10.2739 1.09395L12.2726 5.19412C12.4172 5.49069 12.6987 5.69686 13.0251 5.74516L17.5169 6.40996C18.3329 6.53074 18.66 7.53192 18.0727 8.11117L14.8082 11.3308C14.5759 11.5599 14.47 11.888 14.5245 12.2097L15.2925 16.7441C15.4312 17.5628 14.5694 18.184 13.8365 17.7938L9.84502 15.6683C9.5512 15.5118 9.1988 15.5118 8.90498 15.6683L4.91349 17.7938C4.1806 18.184 3.31885 17.5628 3.45751 16.7441L4.22555 12.2097C4.28004 11.888 4.17412 11.5599 3.94178 11.3308L0.677323 8.11117C0.0899991 7.53192 0.417086 6.53074 1.23311 6.40996L5.72489 5.74516C6.05126 5.69686 6.3328 5.49069 6.47737 5.19412L8.47612 1.09395Z",fill:"currentColor"})),A=()=>(0,o.createElement)("svg",{width:"19",height:"18",viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)("path",{d:"M8.47612 1.09395C8.84128 0.344864 9.90872 0.344863 10.2739 1.09395L12.2726 5.19412C12.4172 5.49069 12.6987 5.69686 13.0251 5.74516L17.5169 6.40996C18.3329 6.53074 18.66 7.53192 18.0727 8.11117L14.8082 11.3308C14.5759 11.5599 14.47 11.888 14.5245 12.2097L15.2925 16.7441C15.4312 17.5628 14.5694 18.184 13.8365 17.7938L9.84502 15.6683C9.5512 15.5118 9.1988 15.5118 8.90498 15.6683L4.91349 17.7938C4.1806 18.184 3.31885 17.5628 3.45751 16.7441L4.22555 12.2097C4.28004 11.888 4.17412 11.5599 3.94178 11.3308L0.677323 8.11117C0.0899991 7.53192 0.417086 6.53074 1.23311 6.40996L5.72489 5.74516C6.05126 5.69686 6.3328 5.49069 6.47737 5.19412L8.47612 1.09395Z",fill:"currentColor"}));let _=(0,l.useSelect)((e=>{const{getEntityRecord:t}=e(s.store),r=t("root","comment",d),o=r?.meta?.stars;return null!=o?o:(0,n.__)("5")}),[d]);return(0,o.createElement)("div",{...E,style:{border:p?`${p.width||0}px ${p.style||"solid"} ${p.color||"transparent"}`:"none",borderRadius:u?`${u.bottom||0} ${u.left||0} ${u.right||0} ${u.top||0}`:"none",boxShadow:b?.enable?k:"none",paddingTop:f.top,paddingBottom:f.bottom,paddingLeft:f.left,paddingRight:f.right,marginTop:g.top,marginBottom:g.bottom,marginLeft:g.left,marginRight:g.right,color:m,background:h||""}},(0,o.createElement)("div",{className:"trip-rating-stars-container",style:{"--stars-gap":w,textAlign:y}},(0,o.createElement)("div",{className:"trip-rating-stars",style:{fontSize:v}},(0,o.createElement)("div",{className:"trip-rating-stars-placeholder-group"},[...Array(5)].map(((e,t)=>(0,o.createElement)(R,{key:t.toString(),style:{color:x.inactive}})))),(0,o.createElement)("div",{className:"trip-rating-stars-rated-group",style:{width:parseInt(_)/5*100+"%",color:x.active}},[...Array(5)].map(((e,t)=>(0,o.createElement)(A,{key:t.toString()})))))),(0,o.createElement)(i.s,{group:"styles",...t}))},d=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"wptravelenginetripblocks/rated-star","version":"1.0.0","title":"Rated Star","category":"widgets","icon":"star-filled","description":"Reviews","usesContext":["commentId"],"ancestor":["core/comments"],"attributes":{"stars":{"type":"object","label":"Stars","default":{"active":"#EBAD34","inactive":"#cccccc"},"control":{"type":"color","labels":{"active":{"label":"Active","style":"color","selectors":"%WRAPPER% .trip-rating-stars-rated-group"},"inactive":{"label":"Inactive","style":"color","selectors":"%WRAPPER% .trip-rating-stars-placeholder-group"}}}},"alignment":{"type":"string","label":"Alignment","panel":"-starratings-","control":{"type":"alignment","style":"text-align"},"default":"left","selectors":"%WRAPPER% .trip-rating-stars-container"},"starsSize":{"type":"string","label":"Star Size","panel":"-starratings-","default":"20px","control":{"type":"range","style":"font-size","controlAttribute":{"units":[{"unit":"px","min":1,"max":100},{"unit":"em","min":1,"max":10},{"unit":"rem","min":1,"max":10}]}},"selectors":"%WRAPPER% .trip-rating-stars"},"starsGap":{"type":"string","label":"Stars Gap","panel":"-starratings-","default":"4px","control":{"type":"range","style":"gap","controlAttribute":{"units":[{"unit":"px","min":1,"max":50},{"unit":"em","min":1,"max":10},{"unit":"rem","min":1,"max":10}]}},"selectors":"%WRAPPER% .trip-rating-stars-container"}},"supports":{"align":false,"wptravelenginetripblocks":{"colors":{"textColor":false,"link":false},"panels":{"-starratings-":{"title":"Star Ratings","icon":"star-filled"}}}},"textdomain":"wptravelengine","render":"file:./block.php"}')},41:(e,t,r)=>{"use strict";function o(e,t,r){var o="";return r.split(" ").forEach((function(r){void 0!==e[r]?t.push(e[r]+";"):r&&(o+=r+" ")})),o}r.d(t,{Rk:()=>o,SF:()=>n,sk:()=>a});var n=function(e,t,r){var o=e.key+"-"+t.name;!1===r&&void 0===e.registered[o]&&(e.registered[o]=t.styles)},a=function(e,t,r){n(e,t,r);var o=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var a=t;do{e.insert(t===a?"."+o:"",a,e.sheet,!0),a=a.next}while(void 0!==a)}}},134:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var o=r(271);function n(e){var t=(0,o.A)(e),r=t.overflow,n=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+n)}},149:(e,t,r)=>{"use strict";r.r(t),r.d(t,{edit:()=>s,metadata:()=>p,save:()=>d});var o=r(1609),n=r(4715),a=r(8504),i=r(2024);const l={left:"flex-start",center:"center",right:"flex-end"};function s(e){var t;const{attributes:{text:r,alignment:s,fullWidth:c,padding:d,margin:p,border:u,borderRadius:b,textColor:g,background:f,boxShadow:m},setAttributes:h}=e,y=["position","xOffset","yOffset","blur","spread","color"].map((e=>{var t,r;if("position"===e)return"inset"!==m[e]?"":"inset";if("color"===e)return null!==(r=m[e])&&void 0!==r?r:"";const o=null!==(t=m[e])&&void 0!==t?t:"";return""!==o?o:0})).join(" ");return(0,o.createElement)("div",{style:{display:"flex",textAlign:"center",justifyContent:null!==(t=l[s])&&void 0!==t?t:"center"}},(0,o.createElement)(n.RichText,{...(0,n.useBlockProps)(),style:(0,i.A)(e.attributes,{width:c?"100%":"auto",borderWidth:u.width,borderColor:u.color,borderStyle:u.style,borderTopLeftRadius:b.top,borderTopRightRadius:b.right,borderBottomLeftRadius:b.left,borderBottomRightRadius:b.bottom,paddingTop:d.top,paddingBottom:d.bottom,paddingLeft:d.left,paddingRight:d.right,marginTop:p.top,marginBottom:p.bottom,marginLeft:p.left,marginRight:p.right,color:g.initial,background:f.initial,"--text-color-hover":g.hover,"--background-hover":f.hover,boxShadow:y}),className:"wpte-bf-btn wte-book-now",onChange:e=>h({text:e}),value:r,placeholder:"Add text..."}),(0,o.createElement)(a.s,{...e}))}const c={left:"flex-start",center:"center",right:"flex-end"},d=({attributes:e})=>{var t;const{text:r,alignment:a,fullWidth:l,padding:s,margin:d,border:p,borderRadius:u,textColor:b,background:g,boxShadow:f}=e,m=["position","xOffset","yOffset","blur","spread","color"].map((e=>{var t,r;if("position"===e)return"inset"!==f[e]?"":"inset";if("color"===e)return null!==(r=f[e])&&void 0!==r?r:"";const o=null!==(t=f[e])&&void 0!==t?t:"";return""!==o?o:0})).join(" ");return(0,o.createElement)("div",{style:{display:"flex",textAlign:"center",justifyContent:null!==(t=c[a])&&void 0!==t?t:"center"}},(0,o.createElement)("button",{...n.useBlockProps.save({className:"wpte-bf-btn wte-book-now",style:(0,i.A)(e,{width:l?"100%":"auto",borderWidth:p.width,borderColor:p.color,borderStyle:p.style,borderTopLeftRadius:u.top,borderTopRightRadius:u.right,borderBottomLeftRadius:u.left,borderBottomRightRadius:u.bottom,paddingTop:s.top,paddingBottom:s.bottom,paddingLeft:s.left,paddingRight:s.right,marginTop:d.top,marginBottom:d.bottom,marginLeft:d.left,marginRight:d.right,color:b.initial,background:g.initial,"--text-hover-color":b.hover,"--background-hover-color":g.hover,boxShadow:m})}),id:"open-booking-modal"},r))},p=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"wptravelenginetripblocks/trip-booking-button","title":"Trip Booking Button","category":"design","description":"Prompt visitors to take action with a button-style link.","keywords":["link"],"parent":["wptravelenginetripblocks/trip-fixed-starting-date"],"icon":"cart","textdomain":"wptravelengine","render":"file:./block.php","attributes":{"textColor":{"type":"object","default":{"initial":"#fff","hover":"#fff"},"control":{"type":"color","labels":{"initial":{"label":"Text","style":"color"},"hover":{"label":"Hover","style":"color:hover"}}},"selectors":"%WRAPPER% .wpte-bf-btn"},"background":{"type":"object","default":{"initial":"#147dfe","hover":"#147dfe"},"control":{"type":"color","labels":{"initial":{"label":"Background","style":"background"},"hover":{"label":"Hover","style":"background:hover"}}},"selectors":"%WRAPPER% .wpte-bf-btn"},"text":{"type":"string"},"alignment":{"type":"string","label":"Alignment","default":"center","control":{"type":"alignment","style":"text-align"},"panel":"-button-","selectors":"%WRAPPER%"},"padding":{"type":"object","default":{"top":"16px","right":"16px","bottom":"16px","left":"16px"},"selectors":"%WRAPPER% .wpte-bf-btn"},"margin":{"type":"object","default":{"top":"0px","right":"0px","bottom":"0px","left":"0px"},"selectors":"%WRAPPER% .wpte-bf-btn"},"borderRadius":{"type":"object","default":{"top":"4px","right":"4px","bottom":"4px","left":"4px"},"selectors":"%WRAPPER% .wpte-bf-btn"},"fullWidth":{"type":"boolean","label":"Full Width","default":"100%","control":{"type":"switch","style":"width"},"panel":"-button-","selectors":"%WRAPPER% .wpte-bf-btn"},"border":{"type":"object","label":"Border","selectors":"%WRAPPER% .wpte-bf-btn","default":{"width":"1","style":"none","color":""},"control":{"type":"border","style":"border"}},"typography":{"type":"object","label":"Typography","default":{},"selectors":"%WRAPPER% .wpte-bf-btn","control":{"type":"typography"}}},"supports":{"wptravelenginetripblocks":{"panels":{"-button-":{"title":"Button"},"colors":{"link":false}}}},"viewScript":["wte-redux","jquery-fancy-box"]}')},168:(e,t,r)=>{"use strict";r.r(t),r.d(t,{edit:()=>c,metadata:()=>d});var o=r(1609),n=r(7723),a=r(4715),i=r(8504),l=r(6087),s=r(2024);const c=(...e)=>{const t=e[0],{attributes:r,setAttributes:c}=t,d=(0,a.useBlockProps)(),{border:p,borderRadius:u,boxShadow:b,margin:g,padding:f,textColor:m,background:h,altitudeUnit:y,showAltitudeUnit:v,altitudeUnitLabel:w,showX:x,showY:k,showLG:E,xScaleLabel:R,yScaleLabel:A,tension:_,themeColor:C}=r;let P=C;if(C?.includes("var(")){const e=C.replace(/var[()]/g,"").replace(/[)]/g,"");P=getComputedStyle(document.body).getPropertyValue(e)}["position","xOffset","yOffset","blur","spread","color"].map((e=>{var t,r;if("position"===e)return"inset"!==b[e]?"":"inset";if("color"===e)return null!==(r=b[e])&&void 0!==r?r:"";const o=null!==(t=b[e])&&void 0!==t?t:"";return""!==o?o:0})).join(" ");const S={m:(0,n.__)("M","wptravelengine"),ft:(0,n.__)("FT.","wptravelengine")},B=["Kathmandu","Ulleri","Ghorepani","Tadapani","Chomrong","Dobhan","Deurali"],W=()=>P+"33"||0,j=()=>P||"var(--primary-color)",T=(0,l.useRef)(null);return(0,l.useEffect)((()=>{if(T.current&&"undefined"!=typeof Chart){const e=(e=>{const t=[426,557,714,653,690,558,464],r=t.map((e=>Math.round(3.28084*e)));return"m"===e?t:r})(y);new Chart(T.current,{type:"line",data:{labels:B,datasets:[{data:e,borderWidth:1,tension:_/10,fill:E}]},options:{showAllToolTips:!0,scales:{xAxes:[{display:x,scaleLabel:{display:!0,labelString:R},ticks:{beginAtZero:!0},gridLines:{borderDash:[8,4],color:W()}}],yAxes:[{display:k,scaleLabel:{display:!0,labelString:A},ticks:{beginAtZero:!0},gridLines:{display:!1,color:W()}}]},plugins:{datalabels:{color:j(),offset:10,align:"top",padding:4,formatter:function(e,t){const r=t.dataIndex,o="m"===y?"m":"ft";return B[r].concat(" ",e," ").concat(o,".")},font:{size:12,weight:"bold",color:"#147dfe"}}},elements:{point:{backgroundColor:j()},line:{tension:0}},layout:{padding:{left:10,right:50,top:50,bottom:0}},responsive:!0,maintainAspectRatio:!1,legend:{fontColor:P||"var(--primary-color)",display:0}}})}}),[r]),(0,o.createElement)("div",null,(0,o.createElement)("div",{...d,style:(0,s.A)(r)},v&&(0,o.createElement)("div",{className:"altitude-unit-switcher"},(0,o.createElement)("label",{className:"altitude-unit-label"},w,": "),(0,o.createElement)("div",{className:"altitude-unit-switches"},(0,o.createElement)("span",null,(0,o.createElement)("input",{type:"radio",value:"m",name:"altitude-unit",id:"altitude-unit-m",checked:"m"===y}),(0,o.createElement)("label",{htmlFor:"altitude-unit-m"},S.m)),(0,o.createElement)("span",null,(0,o.createElement)("input",{type:"radio",value:"ft",name:"altitude-unit",id:"altitude-unit-ft",checked:"ft"===y}),(0,o.createElement)("label",{htmlFor:"altitude-unit-ft"},S.ft)))),(0,o.createElement)("div",null,(0,o.createElement)("div",{id:"altitude-chart-screen"},(0,o.createElement)("canvas",{id:"altChart",className:"ate-alt-chart",ref:T,style:{display:"block",width:"auto",height:"350px"}})))),(0,o.createElement)(i.s,{group:"styles",...t}))},d=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"wptravelenginetripblocks/itinerary-altitude-chart","version":"1.0.0","title":"Trip Itinerary Altitude Chart","icon":"chart-line","description":"Visually represent the trip’s altitude changes throughout the itinerary.","category":"widgets","script":[],"supports":{"wptravelenginetripblocks":{"colors":{"link":false},"border":true,"spacing":true,"panels":{"-unit-":{"title":"Unit","icon":"unit"},"-chart-":{"title":"Chart","icon":"chart"}}}},"textdomain":"wptravelengine","render":"file:./block.php","attributes":{"textColor":{"type":"string","default":"#147DFE"},"altitudeUnit":{"type":"string","label":"Altitude Unit","default":"m","control":{"type":"select-button","controlAttribute":{"options":[{"value":"m","label":"M."},{"value":"ft","label":"Ft."}]}},"panel":"-unit-"},"showAltitudeUnit":{"type":"boolean","label":"Show Altitude Unit","default":true,"control":{"type":"switch"},"panel":"-unit-"},"altitudeUnitLabel":{"type":"string","label":"Altitude Unit Label","default":"Altitude Unit","control":{"type":"text"},"panel":"-unit-"},"showX":{"type":"boolean","label":"Show X-Axis","default":true,"control":{"type":"switch"},"panel":"-chart-"},"showY":{"type":"boolean","label":"Show Y-Axis","default":true,"control":{"type":"switch"},"panel":"-chart-"},"showLG":{"type":"boolean","label":"Show Line Graph","default":true,"control":{"type":"switch"},"panel":"-chart-"},"xScaleLabel":{"type":"string","label":"X-Axis Scale Label","default":"Days","control":{"type":"text"},"panel":"-chart-"},"yScaleLabel":{"type":"string","label":"Y-Axis Scale Label","default":"Altitude","control":{"type":"text"},"panel":"-chart-"},"tension":{"type":"number","label":"Line Tension","default":0,"control":{"type":"input-number","controlAttribute":{"min":0,"max":10}},"panel":"-chart-"},"themeColor":{"type":"string","label":"Theme Color","default":"#147DFE","control":{"type":"color"},"panel":"-chart-"}},"viewScript":["wte-chart","wte-chart-datalabels"]}')},222:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var o=r(8979);function n(e){var t=(0,o.A)(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}},271:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var o=r(8979);function n(e){return(0,o.A)(e).getComputedStyle(e)}},312:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var o=r(1609),n=r(9815),a=r(8111),i=r(6711);const l=n.A.div`
display: flex;
flex-wrap: wrap;
gap: 4px;
`,s=({colors:e=[],value:t,onChange:r,...n})=>(0,o.createElement)(l,null,e.map((({title:e,name:a,colorPalette:l},s)=>(0,o.createElement)(i.A,{key:s,value:t[a],colorPalette:l,onChange:e=>r({...t,[a]:e}),...n,title:e})))),c=e=>(0,a.A)(s)(e)},390:(e,t,r)=>{"use strict";r.d(t,{C:()=>p,Cv:()=>_,G1:()=>l,K2:()=>g,Nc:()=>E,OW:()=>m,Sh:()=>y,Tb:()=>x,Tp:()=>u,VF:()=>w,YL:()=>b,c4:()=>v,di:()=>h,mw:()=>k,nf:()=>A,rH:()=>d,se:()=>f});var o=r(9735),n=1,a=1,i=0,l=0,s=0,c="";function d(e,t,r,o,i,l,s){return{value:e,root:t,parent:r,type:o,props:i,children:l,line:n,column:a,length:s,return:""}}function p(e,t){return(0,o.kp)(d("",null,null,"",null,null,0),e,{length:-e.length},t)}function u(){return s}function b(){return s=l>0?(0,o.wN)(c,--l):0,a--,10===s&&(a=1,n--),s}function g(){return s=l<i?(0,o.wN)(c,l++):0,a++,10===s&&(a=1,n++),s}function f(){return(0,o.wN)(c,l)}function m(){return l}function h(e,t){return(0,o.c1)(c,e,t)}function y(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function v(e){return n=a=1,i=(0,o.b2)(c=e),l=0,[]}function w(e){return c="",e}function x(e){return(0,o.Bq)(h(l-1,R(91===e?e+2:40===e?e+1:e)))}function k(e){for(;(s=f())&&s<33;)g();return y(e)>2||y(s)>3?"":" "}function E(e,t){for(;--t&&g()&&!(s<48||s>102||s>57&&s<65||s>70&&s<97););return h(e,m()+(t<6&&32==f()&&32==g()))}function R(e){for(;g();)switch(s){case e:return l;case 34:case 39:34!==e&&39!==e&&R(s);break;case 40:41===e&&R(e);break;case 92:g()}return l}function A(e,t){for(;g()&&e+s!==57&&(e+s!==84||47!==f()););return"/*"+h(t,l-1)+"*"+(0,o.HT)(47===e?e:g())}function _(e){for(;!y(f());)g();return h(e,l)}},483:(e,t,r)=>{"use strict";r.d(t,{A:()=>i,l:()=>a});var o=r(4534),n=r(9735);function a(e,t){for(var r="",o=(0,n.FK)(e),a=0;a<o;a++)r+=t(e[a],a,e,t)||"";return r}function i(e,t,r,i){switch(e.type){case o.IO:if(e.children.length)break;case o.yE:case o.LU:return e.return=e.return||e.value;case o.YK:return"";case o.Sv:return e.return=e.value+"{"+a(e.children,i)+"}";case o.XZ:e.value=e.props.join(",")}return(0,n.b2)(r=a(e.children,i))?e.return=e.value+"{"+r+"}":""}},571:(e,t,r)=>{"use strict";function o(e){var t;return function(){return t||(t=new Promise((function(r){Promise.resolve().then((function(){t=void 0,r(e())}))}))),t}}r.d(t,{A:()=>o})},576:()=>{},707:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var o=r(1609),n=r(4232),a=r(8111),i=r(9815),l=r(9643),s=r(1266);const c=i.A.div`
display: inline-flex;
align-items: center;
gap: 8px;
`,d=({value:e,onChange:t})=>{const{width:r,style:a}=e;return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(n.YI,{label:"Border Width",direction:"horizontal",value:r,onChange:r=>t({...e,width:r}),min:0,isChildren:!0}),(0,o.createElement)(n.l6,{label:"Border Style",options:[{value:"none",label:"None",icon:s.A.none},{value:"solid",label:"Solid",icon:s.A.minus},{value:"dashed",label:"Dash",icon:s.A.dashed},{value:"double",label:"Double",icon:s.A.menu},{value:"dotted",label:"Dot",icon:s.A.ellipsis}],value:a,onChange:r=>t({...e,style:r}),isChildren:!0}))},p=({colorPalette:e,changed:t,value:r,onChange:a,...i})=>{const{color:s}=r;return(0,o.createElement)(c,null,(0,o.createElement)(n.S5,{colorPalette:e,title:"Border Color",value:s,onChange:e=>a({...r,color:e}),...i}),(0,o.createElement)(l.AM,{content:(0,o.createElement)(d,{value:r,onChange:a,...i})},(0,o.createElement)(l.ut,{changed:t})))},u=e=>(0,a.A)(p)({...e,direction:"horizontal"})},793:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var o=r(6354),n=r(9760),a=r(222);function i(e){return(0,o.A)((0,n.A)(e)).left+(0,a.A)(e).scrollLeft}},844:(e,t,r)=>{"use strict";function o(e){var t=e.reduce((function(e,t){var r=e[t.name];return e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}r.d(t,{A:()=>o})},907:(e,t,r)=>{"use strict";r(1609),r(9643),r(8111),r(6609),r(9381)},958:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var o=r(1688),n=r(2632),a=r(6771),i=r(9913),l=r(6281),s=r(4278),c=r(8101);const d={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,d=e.name;if(!t.modifiersData[d]._skip){for(var p=r.mainAxis,u=void 0===p||p,b=r.altAxis,g=void 0===b||b,f=r.fallbackPlacements,m=r.padding,h=r.boundary,y=r.rootBoundary,v=r.altBoundary,w=r.flipVariations,x=void 0===w||w,k=r.allowedAutoPlacements,E=t.options.placement,R=(0,n.A)(E),A=f||(R!==E&&x?function(e){if((0,n.A)(e)===s.qZ)return[];var t=(0,o.A)(e);return[(0,a.A)(e),t,(0,a.A)(t)]}(E):[(0,o.A)(E)]),_=[E].concat(A).reduce((function(e,r){return e.concat((0,n.A)(r)===s.qZ?(0,l.A)(t,{placement:r,boundary:h,rootBoundary:y,padding:m,flipVariations:x,allowedAutoPlacements:k}):r)}),[]),C=t.rects.reference,P=t.rects.popper,S=new Map,B=!0,W=_[0],j=0;j<_.length;j++){var T=_[j],L=(0,n.A)(T),D=(0,c.A)(T)===s.ni,O=[s.Mn,s.sQ].indexOf(L)>=0,M=O?"width":"height",N=(0,i.A)(t,{placement:T,boundary:h,rootBoundary:y,altBoundary:v,padding:m}),I=O?D?s.pG:s.kb:D?s.sQ:s.Mn;C[M]>P[M]&&(I=(0,o.A)(I));var z=(0,o.A)(I),H=[];if(u&&H.push(N[L]<=0),g&&H.push(N[I]<=0,N[z]<=0),H.every((function(e){return e}))){W=T,B=!1;break}S.set(T,H)}if(B)for(var $=function(e){var t=_.find((function(t){var r=S.get(t);if(r)return r.slice(0,e).every((function(e){return e}))}));if(t)return W=t,"break"},F=x?3:1;F>0&&"break"!==$(F);F--);t.placement!==W&&(t.modifiersData[d]._skip=!0,t.placement=W,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}}},1007:(e,t,r)=>{"use strict";function o(e,t){return t.reduce((function(t,r){return t[r]=e,t}),{})}r.d(t,{A:()=>o})},1134:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var o=r(6289),n=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,a=(0,o.A)((function(e){return n.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}))},1192:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var o=r(1609),n=r(9815),a=r(1266),i=r(4702);const l=n.A.button`
padding: 4px;
// border: 1px solid var(--cw__border-color);
border: none;
border-radius: var(--cw__border-radius);
cursor: pointer;
background: none;
box-shadow: 0 0 0 1px var(--cw__border-color);
&:hover,
&.changed {
color: var(--cw__secondary-color);
box-shadow: 0 0 0 1px var(--cw__secondary-color);
}
svg{
vertical-align: top;
}
&+button{
margin-left: 8px;
}
`,s=({title:e,changed:t,children:r,...n})=>(0,o.createElement)(i.A,{title:e},(0,o.createElement)(l,{type:"button",className:1===t?"changed":"",...n},r||a.A.pen))},1206:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var o=r(4278);function n(e){var t=new Map,r=new Set,o=[];function n(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!r.has(e)){var o=t.get(e);o&&n(o)}})),o.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){r.has(e.name)||n(e)})),o}function a(e){var t=n(e);return o.GM.reduce((function(e,r){return e.concat(t.filter((function(e){return e.phase===r})))}),[])}},1262:(e,t,r)=>{"use strict";r.d(t,{A:()=>b});var o=r(4278),n=r(5128),a=r(8979),i=r(9760),l=r(271),s=r(2632),c=r(8101),d=r(6906),p={top:"auto",right:"auto",bottom:"auto",left:"auto"};function u(e){var t,r=e.popper,s=e.popperRect,c=e.placement,u=e.variation,b=e.offsets,g=e.position,f=e.gpuAcceleration,m=e.adaptive,h=e.roundOffsets,y=e.isFixed,v=b.x,w=void 0===v?0:v,x=b.y,k=void 0===x?0:x,E="function"==typeof h?h({x:w,y:k}):{x:w,y:k};w=E.x,k=E.y;var R=b.hasOwnProperty("x"),A=b.hasOwnProperty("y"),_=o.kb,C=o.Mn,P=window;if(m){var S=(0,n.A)(r),B="clientHeight",W="clientWidth";S===(0,a.A)(r)&&(S=(0,i.A)(r),"static"!==(0,l.A)(S).position&&"absolute"===g&&(B="scrollHeight",W="scrollWidth")),(c===o.Mn||(c===o.kb||c===o.pG)&&u===o._N)&&(C=o.sQ,k-=(y&&S===P&&P.visualViewport?P.visualViewport.height:S[B])-s.height,k*=f?1:-1),c!==o.kb&&(c!==o.Mn&&c!==o.sQ||u!==o._N)||(_=o.pG,w-=(y&&S===P&&P.visualViewport?P.visualViewport.width:S[W])-s.width,w*=f?1:-1)}var j,T=Object.assign({position:g},m&&p),L=!0===h?function(e,t){var r=e.x,o=e.y,n=t.devicePixelRatio||1;return{x:(0,d.LI)(r*n)/n||0,y:(0,d.LI)(o*n)/n||0}}({x:w,y:k},(0,a.A)(r)):{x:w,y:k};return w=L.x,k=L.y,f?Object.assign({},T,((j={})[C]=A?"0":"",j[_]=R?"0":"",j.transform=(P.devicePixelRatio||1)<=1?"translate("+w+"px, "+k+"px)":"translate3d("+w+"px, "+k+"px, 0)",j)):Object.assign({},T,((t={})[C]=A?k+"px":"",t[_]=R?w+"px":"",t.transform="",t))}const b={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,o=r.gpuAcceleration,n=void 0===o||o,a=r.adaptive,i=void 0===a||a,l=r.roundOffsets,d=void 0===l||l,p={placement:(0,s.A)(t.placement),variation:(0,c.A)(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,u(Object.assign({},p,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:d})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,u(Object.assign({},p,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}}},1266:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var o=r(1609);const n={desktop:(0,o.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)("path",{d:"M20 3H4C2.89543 3 2 3.89543 2 5V15C2 16.1046 2.89543 17 4 17H20C21.1046 17 22 16.1046 22 15V5C22 3.89543 21.1046 3 20 3Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,o.createElement)("path",{d:"M8 21H16",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,o.createElement)("path",{d:"M12 17V21",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),tablet:(0,o.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)("path",{d:"M18 2H6C4.89543 2 4 2.89543 4 4V20C4 21.1046 4.89543 22 6 22H18C19.1046 22 20 21.1046 20 20V4C20 2.89543 19.1046 2 18 2Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,o.createElement)("path",{d:"M12 18H12.01",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),mobile:(0,o.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)("path",{d:"M17 2H7C5.89543 2 5 2.89543 5 4V20C5 21.1046 5.89543 22 7 22H17C18.1046 22 19 21.1046 19 20V4C19 2.89543 18.1046 2 17 2Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,o.createElement)("path",{d:"M12 18H12.01",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),help:(0,o.createElement)("svg",{width:"14",height:"13",viewBox:"0 0 14 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)("path",{d:"M7.7677 9.75C7.7677 9.89833 7.72371 10.0433 7.6413 10.1667C7.55889 10.29 7.44176 10.3861 7.30471 10.4429C7.16767 10.4997 7.01687 10.5145 6.87138 10.4856C6.7259 10.4566 6.59226 10.3852 6.48737 10.2803C6.38248 10.1754 6.31105 10.0418 6.28211 9.89632C6.25317 9.75083 6.26803 9.60003 6.32479 9.46299C6.38156 9.32594 6.47769 9.20881 6.60102 9.1264C6.72436 9.04398 6.86937 9 7.0177 9C7.21661 9 7.40738 9.07902 7.54803 9.21967C7.68868 9.36032 7.7677 9.55109 7.7677 9.75ZM7.0177 3C5.63895 3 4.5177 4.00937 4.5177 5.25V5.5C4.5177 5.63261 4.57038 5.75978 4.66415 5.85355C4.75792 5.94732 4.88509 6 5.0177 6C5.15031 6 5.27749 5.94732 5.37126 5.85355C5.46502 5.75978 5.5177 5.63261 5.5177 5.5V5.25C5.5177 4.5625 6.19083 4 7.0177 4C7.84458 4 8.5177 4.5625 8.5177 5.25C8.5177 5.9375 7.84458 6.5 7.0177 6.5C6.88509 6.5 6.75792 6.55268 6.66415 6.64644C6.57038 6.74021 6.5177 6.86739 6.5177 7V7.5C6.5177 7.63261 6.57038 7.75978 6.66415 7.85355C6.75792 7.94732 6.88509 8 7.0177 8C7.15031 8 7.27749 7.94732 7.37126 7.85355C7.46502 7.75978 7.5177 7.63261 7.5177 7.5V7.455C8.6577 7.24562 9.5177 6.33625 9.5177 5.25C9.5177 4.00937 8.39645 3 7.0177 3ZM13.5177 6.5C13.5177 7.78558 13.1365 9.04228 12.4223 10.1112C11.708 11.1801 10.6929 12.0132 9.50514 12.5052C8.31742 12.9972 7.01049 13.1259 5.74961 12.8751C4.48874 12.6243 3.33055 12.0052 2.42151 11.0962C1.51247 10.1872 0.893403 9.02896 0.642599 7.76809C0.391795 6.50721 0.520517 5.20028 1.01249 4.01256C1.50446 2.82484 2.33758 1.80968 3.4065 1.09545C4.47542 0.381218 5.73212 0 7.0177 0C8.74105 0.00181989 10.3933 0.687223 11.6119 1.90582C12.8305 3.12441 13.5159 4.77665 13.5177 6.5ZM12.5177 6.5C12.5177 5.4122 12.1951 4.34883 11.5908 3.44436C10.9864 2.53989 10.1275 1.83494 9.12246 1.41866C8.11747 1.00238 7.0116 0.893462 5.94471 1.10568C4.87781 1.3179 3.8978 1.84172 3.12862 2.61091C2.35943 3.3801 1.8356 4.36011 1.62338 5.427C1.41117 6.4939 1.52008 7.59976 1.93637 8.60476C2.35265 9.60975 3.0576 10.4687 3.96207 11.0731C4.86654 11.6774 5.9299 12 7.0177 12C8.47588 11.9983 9.87387 11.4183 10.905 10.3873C11.9361 9.35617 12.516 7.95818 12.5177 6.5Z",fill:"currentColor"})),link:(0,o.createElement)("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)("path",{d:"M6.5354 7.99995C7.5054 9.36695 9.5464 9.12695 10.5464 7.99995L12.5354 5.99995C13.6594 4.77195 13.6994 3.18595 12.5354 1.99995C11.3994 0.842952 9.6714 0.842952 8.5354 1.99995L6.5354 3.99995",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,o.createElement)("path",{d:"M8.53543 7.06999C7.56543 5.70299 5.53543 5.87299 4.53543 6.99999L2.53543 8.97499C1.41143 10.203 1.37143 11.814 2.53543 13C3.67143 14.157 5.39943 14.157 6.53543 13L8.53543 11",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})),upload:(0,o.createElement)("svg",{width:"25",height:"23",viewBox:"0 0 25 23",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)("path",{d:"M8.1176 15.8L12.5176 11.4M12.5176 11.4L16.9176 15.8M12.5176 11.4V21.3001M21.3176 16.6172C22.6613 15.5075 23.5176 13.8288 23.5176 11.95C23.5176 8.6087 20.809 5.90001 17.4676 5.90001C17.2273 5.90001 17.0024 5.77461 16.8804 5.56752C15.4459 3.13332 12.7975 1.5 9.7676 1.5C5.21124 1.5 1.51758 5.19366 1.51758 9.75002C1.51758 12.0227 2.43657 14.0808 3.92323 15.5729",stroke:"currentColor",strokeWidth:"1.46667",strokeLinecap:"round",strokeLinejoin:"round"})),minus:(0,o.createElement)("svg",{width:"11",height:"2",viewBox:"0 0 11 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)("path",{d:"M1.35103 1.16675C1.13002 1.16675 0.918058 1.11407 0.761778 1.0203C0.605498 0.926533 0.5177 0.799356 0.5177 0.666748C0.5177 0.53414 0.605498 0.406963 0.761778 0.313195C0.918058 0.219427 1.13002 0.166748 1.35103 0.166748H9.68437C9.90538 0.166748 10.1173 0.219427 10.2736 0.313195C10.4299 0.406963 10.5177 0.53414 10.5177 0.666748C10.5177 0.799356 10.4299 0.926533 10.2736 1.0203C10.1173 1.11407 9.90538 1.16675 9.68437 1.16675H1.35103Z",fill:"currentColor"})),plus:(0,o.createElement)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)("path",{d:"M5.79272 1.27478V11.2748M0.792725 6.27478H10.7927",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),leftAlignment:(0,o.createElement)("svg",{width:"25",height:"14",viewBox:"0 0 25 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)("path",{d:"M1.2677 0.75H23.7677M1.2677 7H16.2677M1.2677 13.25H6.2677",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})),centerAlignment:(0,o.createElement)("svg",{width:"23",height:"18",viewBox:"0 0 23 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)("path",{d:"M1.23206 1.28571H21.8035M6.37491 8.99999H16.6606M3.80348 16.7143H19.2321",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})),rightAlignment:(0,o.createElement)("svg",{width:"25",height:"14",viewBox:"0 0 25 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)("path",{d:"M23.7677 0.75H1.2677M23.7677 7H8.7677M23.7677 13.25H18.7677",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})),top:(0,o.createElement)("svg",{width:"16",height:"15",viewBox:"0 0 16 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)("path",{d:"M9.08916 15H6.94631C6.35457 15 5.87488 14.5203 5.87488 13.9286V3.21429C5.87488 2.62255 6.35457 2.14286 6.94631 2.14286H9.08916C9.6809 2.14286 10.1606 2.62255 10.1606 3.21429V13.9286C10.1606 14.5203 9.6809 15 9.08916 15Z",fill:"currentColor"}),(0,o.createElement)("path",{d:"M1.05341 1.07143C0.911334 1.07143 0.775073 1.01499 0.674607 0.914522C0.574141 0.814056 0.5177 0.677795 0.5177 0.535714C0.5177 0.393634 0.574141 0.257373 0.674607 0.156907C0.775073 0.0564411 0.911334 0 1.05341 0V1.07143ZM14.982 0C15.1241 0 15.2603 0.0564411 15.3608 0.156907C15.4613 0.257373 15.5177 0.393634 15.5177 0.535714C15.5177 0.677795 15.4613 0.814056 15.3608 0.914522C15.2603 1.01499 15.1241 1.07143 14.982 1.07143V0ZM1.05341 0H14.982V1.07143H1.05341V0Z",fill:"currentColor"})),middle:(0,o.createElement)("svg",{width:"13",height:"15",viewBox:"0 0 13 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)("path",{d:"M6.51768 0C6.65976 0 6.79602 0.0564411 6.89649 0.156907C6.99696 0.257373 7.0534 0.393634 7.0534 0.535714V5.35714H5.98197V0.535714C5.98197 0.393634 6.03841 0.257373 6.13888 0.156907C6.23934 0.0564411 6.3756 0 6.51768 0ZM6.51768 15C6.3756 15 6.23934 14.9436 6.13888 14.8431C6.03841 14.7426 5.98197 14.6064 5.98197 14.4643V9.64286H7.0534V14.4643C7.0534 14.6064 6.99696 14.7426 6.89649 14.8431C6.79602 14.9436 6.65976 15 6.51768 15ZM0.0891113 6.42857C0.0891113 6.14441 0.201994 5.87189 0.402925 5.67096C0.603857 5.47003 0.876379 5.35714 1.16054 5.35714H11.8748C12.159 5.35714 12.4315 5.47003 12.6324 5.67096C12.8334 5.87189 12.9463 6.14441 12.9463 6.42857V8.57143C12.9463 8.85559 12.8334 9.12811 12.6324 9.32904C12.4315 9.52997 12.159 9.64286 11.8748 9.64286H1.16054C0.876379 9.64286 0.603857 9.52997 0.402925 9.32904C0.201994 9.12811 0.0891113 8.85559 0.0891113 8.57143V6.42857Z",fill:"currentColor"})),bottom:(0,o.createElement)("svg",{width:"16",height:"15",viewBox:"0 0 16 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)("path",{d:"M9.08916 0H6.94631C6.35457 0 5.87488 0.479695 5.87488 1.07143V11.7857C5.87488 12.3774 6.35457 12.8571 6.94631 12.8571H9.08916C9.6809 12.8571 10.1606 12.3774 10.1606 11.7857V1.07143C10.1606 0.479695 9.6809 0 9.08916 0Z",fill:"currentColor"}),(0,o.createElement)("path",{d:"M1.05341 13.9286C0.911334 13.9286 0.775073 13.985 0.674607 14.0855C0.574141 14.186 0.5177 14.3222 0.5177 14.4643C0.5177 14.6064 0.574141 14.7426 0.674607 14.8431C0.775073 14.9436 0.911334 15 1.05341 15V13.9286ZM14.982 15C15.1241 15 15.2603 14.9436 15.3608 14.8431C15.4613 14.7426 15.5177 14.6064 15.5177 14.4643C15.5177 14.3222 15.4613 14.186 15.3608 14.0855C15.2603 13.985 15.1241 13.9286 14.982 13.9286V15ZM1.05341 15H14.982V13.9286H1.05341V15Z",fill:"currentColor"})),pen:(0,o.createElement)("svg",{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)("path",{d:"M5.51758 15.36V19H9.17618L19.5176 8.65405L15.8651 5L5.51758 15.36Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinejoin:"round"}),(0,o.createElement)("path",{d:"M12.5176 8L16.5176 12",stroke:"currentColor",strokeWidth:"1.5"})),none:(0,o.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)("path",{d:"M4.10829 4.10829L15.8916 15.8916M18.3333 9.99996C18.3333 14.6023 14.6023 18.3333 9.99996 18.3333C5.39759 18.3333 1.66663 14.6023 1.66663 9.99996C1.66663 5.39759 5.39759 1.66663 9.99996 1.66663C14.6023 1.66663 18.3333 5.39759 18.3333 9.99996Z",stroke:"currentColor",strokeWidth:"1.67",strokeLinecap:"round",strokeLinejoin:"round"})),dashed:(0,o.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)("path",{d:"M2.91675 10.8334C2.56953 10.8334 2.27439 10.7118 2.03133 10.4688C1.78828 10.2257 1.66675 9.9306 1.66675 9.58337C1.66675 9.23615 1.78828 8.94101 2.03133 8.69796C2.27439 8.4549 2.56953 8.33337 2.91675 8.33337H7.91675C8.26397 8.33337 8.55911 8.4549 8.80216 8.69796C9.04522 8.94101 9.16675 9.23615 9.16675 9.58337C9.16675 9.9306 9.04522 10.2257 8.80216 10.4688C8.55911 10.7118 8.26397 10.8334 7.91675 10.8334H2.91675ZM12.0834 10.8334C11.7362 10.8334 11.4411 10.7118 11.198 10.4688C10.9549 10.2257 10.8334 9.9306 10.8334 9.58337C10.8334 9.23615 10.9549 8.94101 11.198 8.69796C11.4411 8.4549 11.7362 8.33337 12.0834 8.33337H17.0834C17.4306 8.33337 17.7258 8.4549 17.9688 8.69796C18.2119 8.94101 18.3334 9.23615 18.3334 9.58337C18.3334 9.9306 18.2119 10.2257 17.9688 10.4688C17.7258 10.7118 17.4306 10.8334 17.0834 10.8334H12.0834Z",fill:"currentColor"})),menu:(0,o.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)("path",{d:"M2.5 7.08337H17.5M2.5 12.9167H17.5",stroke:"currentColor",strokeWidth:"1.67",strokeLinecap:"round",strokeLinejoin:"round"})),ellipsis:(0,o.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)("path",{d:"M10 10.8334C10.4603 10.8334 10.8334 10.4603 10.8334 10.0001C10.8334 9.53984 10.4603 9.16675 10 9.16675C9.5398 9.16675 9.16671 9.53984 9.16671 10.0001C9.16671 10.4603 9.5398 10.8334 10 10.8334Z",stroke:"currentColor",strokeWidth:"1.67",strokeLinecap:"round",strokeLinejoin:"round"}),(0,o.createElement)("path",{d:"M15.8334 10.8334C16.2936 10.8334 16.6667 10.4603 16.6667 10.0001C16.6667 9.53984 16.2936 9.16675 15.8334 9.16675C15.3731 9.16675 15 9.53984 15 10.0001C15 10.4603 15.3731 10.8334 15.8334 10.8334Z",stroke:"currentColor",strokeWidth:"1.67",strokeLinecap:"round",strokeLinejoin:"round"}),(0,o.createElement)("path",{d:"M4.16671 10.8334C4.62694 10.8334 5.00004 10.4603 5.00004 10.0001C5.00004 9.53984 4.62694 9.16675 4.16671 9.16675C3.70647 9.16675 3.33337 9.53984 3.33337 10.0001C3.33337 10.4603 3.70647 10.8334 4.16671 10.8334Z",stroke:"currentColor",strokeWidth:"1.67",strokeLinecap:"round",strokeLinejoin:"round"})),chevronDown:(0,o.createElement)("svg",{width:"13",height:"9",viewBox:"0 0 13 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)("g",{clipPath:"url(#clip0_336_894)"},(0,o.createElement)("path",{d:"M1.01758 2L6.01758 7L11.0176 2",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),(0,o.createElement)("defs",null,(0,o.createElement)("clipPath",{id:"clip0_336_894"},(0,o.createElement)("rect",{width:"12",height:"8",fill:"white",transform:"translate(0.0175781 0.5)"})))),move:(0,o.createElement)("svg",{width:"12",height:"20",viewBox:"0 0 12 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)("g",{clipPath:"url(#clip0_724_134)"},(0,o.createElement)("path",{d:"M0.75 0.25H3.75V3.25H0.75V0.25ZM8.25 0.25H11.25V3.25H8.25V0.25ZM0.75 5.75H3.75V8.75H0.75V5.75ZM8.25 5.75H11.25V8.75H8.25V5.75ZM0.75 11.25H3.75V14.25H0.75V11.25ZM8.25 11.25H11.25V14.25H8.25V11.25ZM0.75 16.75H3.75V19.75H0.75V16.75ZM8.25 16.75H11.25V19.75H8.25V16.75Z",fill:"currentColor"})),(0,o.createElement)("defs",null,(0,o.createElement)("clipPath",{id:"clip0_724_134"},(0,o.createElement)("rect",{width:"12",height:"20",fill:"white"})))),dot:(0,o.createElement)("svg",{width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)("g",{clipPath:"url(#clip0_724_5659)"},(0,o.createElement)("path",{d:"M3.86535 0.538818C2.94729 0.538818 2.06683 0.903516 1.41767 1.55268C0.768506 2.20184 0.403809 3.0823 0.403809 4.00036C0.403809 4.91841 0.768506 5.79887 1.41767 6.44803C2.06683 7.0972 2.94729 7.4619 3.86535 7.4619C5.7865 7.4619 7.32689 5.92151 7.32689 4.00036C7.32689 3.0823 6.96219 2.20184 6.31302 1.55268C5.66386 0.903516 4.7834 0.538818 3.86535 0.538818Z",fill:"currentColor"})),(0,o.createElement)("defs",null,(0,o.createElement)("clipPath",{id:"clip0_724_5659"},(0,o.createElement)("rect",{width:"6.92308",height:"6.92308",fill:"white",transform:"translate(0.403809 0.538818)"})))),pipe:(0,o.createElement)("svg",{width:"4",height:"14",viewBox:"0 0 4 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)("g",{clipPath:"url(#clip0_724_5665)"},(0,o.createElement)("path",{d:"M1.86536 12.7689V1.23047",stroke:"currentColor",strokeWidth:"1.38462",strokeLinecap:"round",strokeLinejoin:"round"})),(0,o.createElement)("defs",null,(0,o.createElement)("clipPath",{id:"clip0_724_5665"},(0,o.createElement)("rect",{width:"2.30769",height:"13.8462",fill:"white",transform:"translate(0.711548 0.0769043)"})))),slash:(0,o.createElement)("svg",{width:"11",height:"14",viewBox:"0 0 11 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)("g",{clipPath:"url(#clip0_724_5668)"},(0,o.createElement)("path",{d:"M9.6923 0.942139L1.03845 13.0575",stroke:"currentColor",strokeWidth:"1.38462",strokeLinecap:"round",strokeLinejoin:"round"})),(0,o.createElement)("defs",null,(0,o.createElement)("clipPath",{id:"clip0_724_5668"},(0,o.createElement)("rect",{width:"10.3846",height:"13.8462",fill:"white",transform:"translate(0.173096 0.0769043)"})))),brush:(0,o.createElement)("svg",{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)("g",{mask:"url(#mask0_2471_2065)"},(0,o.createElement)("path",{d:"M6.5177 21C5.7677 21 5.02603 20.8167 4.2927 20.45C3.55937 20.0833 2.9677 19.6 2.5177 19C2.95103 19 3.3927 18.8292 3.8427 18.4875C4.2927 18.1458 4.5177 17.65 4.5177 17C4.5177 16.1667 4.80937 15.4583 5.3927 14.875C5.97603 14.2917 6.68437 14 7.5177 14C8.35103 14 9.05937 14.2917 9.6427 14.875C10.226 15.4583 10.5177 16.1667 10.5177 17C10.5177 18.1 10.126 19.0417 9.3427 19.825C8.55937 20.6083 7.6177 21 6.5177 21ZM12.2677 15L9.5177 12.25L18.4677 3.29999C18.651 3.11666 18.8802 3.02083 19.1552 3.01249C19.4302 3.00416 19.6677 3.09999 19.8677 3.29999L21.2177 4.64999C21.4177 4.84999 21.5177 5.08333 21.5177 5.34999C21.5177 5.61666 21.4177 5.84999 21.2177 6.04999L12.2677 15Z",fill:"currentColor"}))),gradient:(0,o.createElement)("svg",{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)("g",{mask:"url(#mask0_2471_2070)"},(0,o.createElement)("path",{d:"M3.5177 3V21H21.5177V3H3.5177ZM10.1844 19.6667H9.85103V4.33333H10.1844V19.6667ZM12.1844 19.6667H11.5177V4.33333H12.1844V19.6667ZM14.1844 19.6667H13.1844V4.33333H14.1844V19.6667ZM16.1844 19.6667H14.851V4.33333H16.1844V19.6667ZM20.1844 19.6667H16.5177V4.33333H20.1844V19.6667Z",fill:"currentColor"}))),"no-repeat":(0,o.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)("path",{d:"M14 11.5C14 12.8807 12.8807 14 11.5 14C10.1193 14 9 12.8807 9 11.5C9 10.1193 10.1193 9 11.5 9C12.8807 9 14 10.1193 14 11.5Z",fill:"currentColor"})),"repeat-x":(0,o.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)("circle",{cx:"4.5",cy:"11.5",r:"2.5",fill:"currentColor"}),(0,o.createElement)("circle",{cx:"11.5",cy:"11.5",r:"2.5",fill:"currentColor"}),(0,o.createElement)("circle",{cx:"18.5",cy:"11.5",r:"2.5",fill:"currentColor"})),"repeat-y":(0,o.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)("circle",{cx:"11.5",cy:"4.5",r:"2.5",transform:"rotate(90 11.5 4.5)",fill:"currentColor"}),(0,o.createElement)("circle",{cx:"11.5",cy:"11.5",r:"2.5",transform:"rotate(90 11.5 11.5)",fill:"currentColor"}),(0,o.createElement)("circle",{cx:"11.5",cy:"18.5",r:"2.5",transform:"rotate(90 11.5 18.5)",fill:"currentColor"})),repeat:(0,o.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)("circle",{cx:"4.5",cy:"11.5",r:"2.5",fill:"currentColor"}),(0,o.createElement)("circle",{cx:"11.5",cy:"11.5",r:"2.5",fill:"currentColor"}),(0,o.createElement)("circle",{cx:"18.5",cy:"11.5",r:"2.5",fill:"currentColor"}),(0,o.createElement)("circle",{cx:"4.5",cy:"18.5",r:"2.5",fill:"currentColor"}),(0,o.createElement)("circle",{cx:"11.5",cy:"18.5",r:"2.5",fill:"currentColor"}),(0,o.createElement)("circle",{cx:"18.5",cy:"18.5",r:"2.5",fill:"currentColor"}),(0,o.createElement)("circle",{cx:"4.5",cy:"4.5",r:"2.5",fill:"currentColor"}),(0,o.createElement)("circle",{cx:"11.5",cy:"4.5",r:"2.5",fill:"currentColor"}),(0,o.createElement)("circle",{cx:"18.5",cy:"4.5",r:"2.5",fill:"currentColor"}))}},1287:(e,t,r)=>{"use strict";r.d(t,{s:()=>a});var o=r(1609),n=!!o.useInsertionEffect&&o.useInsertionEffect,a=n||function(e){return e()};n||o.useLayoutEffect},1484:(e,t,r)=>{"use strict";r.r(t),r.d(t,{edit:()=>f,metadata:()=>m,save:()=>h});var o=r(1609),n=r(4715),a=r(4871),i=r.n(a),l=r(6087),s=r(7143);const c=window.wp.apiFetch;var d=r.n(c),p=r(7723),u=r(6427),b=r(4232),g=r(8504);const f=({attributes:e,setAttributes:t})=>{const{packageCategories:r,priceCategory:a}=e,c=(0,s.useSelect)((e=>e("core/editor").getCurrentPostId()));(0,l.useEffect)((()=>{(async()=>{try{const e=await d()({path:"wp/v2/package-categories"}),r=e.map((e=>({value:e.id,label:e.name})));t({packageCategories:r});const o=e.find((e=>e["is-primary"])),n=e.find((e=>!e["is-primary"]));o&&t({priceCategory:[o.id]}),n&&t({priceCategory:[o.id,n.id]})}catch(e){console.error("Error fetching package categories:",e)}})()}),[c]);const f=(0,n.useBlockProps)();return(0,o.createElement)("div",{...f},(0,o.createElement)(i(),{block:"wptravelenginetripblocks/trip-pricing",attributes:{...e,editor:!0}}),(0,o.createElement)(g.s,{group:"styles",attributes:e,setAttributes:t}),(0,o.createElement)(n.InspectorControls,null,(0,o.createElement)(u.Panel,null,(0,o.createElement)(u.PanelBody,{title:(0,p.__)("Pricing Categories","wptravelengine")},r&&r.length>0?(0,o.createElement)(b.l6,{label:(0,p.__)("Categories","wptravelengine"),help:(0,p.__)("Select package categories you wish to show. This only works for actual data.","wptravelengine"),isMultiple:!0,value:a,options:r,onChange:e=>t({priceCategory:e}),divider:"bottom"}):(0,o.createElement)("p",null,(0,p.__)("Loading categories...","wptravelengine"))))))},m=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"wptravelenginetripblocks/trip-pricing","version":"1.0.0","title":"Trip Pricing","icon":"money-alt","description":"Prompt visitors to display trip pricing info.","category":"widgets","attributes":{"regularTypography":{"type":"object","label":"Price Typography","default":{},"panel":"-prices-","selectors":"%WRAPPER% .wpte-bf-price .wpte-bf-reg-price del","control":{"type":"typography"}},"priceTypography":{"type":"object","label":"Sale Price Typography","panel":"-prices-","default":{},"selectors":"%WRAPPER% .wpte-bf-offer-price .wpte-bf-offer-amount","control":{"type":"typography"}},"enableDivider":{"type":"boolean","default":false,"label":"Divider","panel":"-prices-","control":{"type":"switch"}},"dividerColor":{"type":"string","default":"rgba(4, 15, 26, 0.1)","label":"Divider Color","panel":"-prices-","selectors":"%WRAPPER% .wpte-bf-price-wrap.has-divider .wpte-bf-price:nth-child(2n)::before","control":{"type":"color","style":"border-color"}},"dividerSpacing":{"type":"string","default":"16px","label":"Divider Spacing","panel":"-prices-","selectors":"%WRAPPER% .wpte-bf-price-wrap.has-divider","control":{"type":"range","style":"--gap","controlAttribute":{"min":0,"max":100}}},"price":{"type":"object","label":"Price","default":{"regular":"rgba(0,0,0,0.4)","sale":"#061626"},"control":{"type":"color","labels":{"regular":{"label":"Regular Price","style":"color","selectors":"%WRAPPER% .wpte-bf-price-wrap .wpte-bf-price del"},"sale":{"label":"Sale Price","style":"color","selectors":"%WRAPPER% .wpte-bf-price-wrap .wpte-bf-price ins"}}}},"prefixTextColor":{"type":"object","label":"Prefix / Suffix Text","default":{"prefix":"#000000","suffix":"#00000066"},"control":{"type":"color","style":"color","labels":{"prefix":{"label":"Prefix Text","selectors":"%WRAPPER% .wpte-bf-price .wpte-bf-reg-price","style":"color"},"suffix":{"label":"Suffix Text","selectors":"%WRAPPER% .wpte-bf-price .wpte-bf-offer-price:not(.wpte-bf-offer-amount)","style":"color"}}}},"displayFormat":{"type":"string","label":"Amount Display Format","default":"%CURRENCY_SYMBOL%%FORMATED_AMOUNT%","control":{"type":"textarea","help":"Amount Display format. Available tags: %CURRENCY_CODE%, %CURRENCY_SYMBOL%, %AMOUNT%, %FORMATED_AMOUNT%"},"panel":"-display-"},"pricePrefix":{"type":"string","label":"Prefix for Price","default":"From %regular_price%","control":{"type":"text"},"panel":"-display-"},"priceDisplayFormat":{"type":"string","label":"Price Per Format","default":"%sale_price%/ %price_category%","control":{"type":"text"},"panel":"-display-"},"background":{"type":"string","default":"","selectors":"%WRAPPER% .wpte-bf-price-wrap"},"border":{"type":"object","default":{},"selectors":"%WRAPPER% .wpte-bf-price-wrap"},"boxShadow":{"type":"object","default":{},"selectors":"%WRAPPER% .wpte-bf-price-wrap"},"borderRadius":{"type":"object","default":{},"selectors":"%WRAPPER% .wpte-bf-price-wrap"},"padding":{"type":"object","default":{"top":"24px","right":"","bottom":"24px","left":""},"selectors":"%WRAPPER% .wpte-bf-price-wrap"},"margin":{"type":"object","default":{"top":"","right":"","bottom":"","left":""},"selectors":"%WRAPPER% .wpte-bf-price-wrap"},"packageCategories":{"type":"array"},"priceCategory":{"type":"array"}},"supports":{"align":false,"wptravelenginetripblocks":{"colors":{"textColor":false,"link":false},"border":false,"panels":{"-prices-":{"title":"Prices"},"-display-":{"title":"Display"}}}},"textdomain":"wptravelengine","render":"file:./block.php"}'),h=()=>null},1504:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>h});var o=r(4504),n=r(1609),a=r.n(n),i=r(5795);function l(e,t){if(null==e)return{};var r,o,n={},a=Object.keys(e);for(o=0;o<a.length;o++)r=a[o],t.indexOf(r)>=0||(n[r]=e[r]);return n}var s="undefined"!=typeof window&&"undefined"!=typeof document;function c(e,t){e&&("function"==typeof e&&e(t),{}.hasOwnProperty.call(e,"current")&&(e.current=t))}function d(){return s&&document.createElement("div")}function p(e,t){if(e===t)return!0;if("object"==typeof e&&null!=e&&"object"==typeof t&&null!=t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var r in e){if(!t.hasOwnProperty(r))return!1;if(!p(e[r],t[r]))return!1}return!0}return!1}function u(e){var t=[];return e.forEach((function(e){t.find((function(t){return p(e,t)}))||t.push(e)})),t}var b=s?n.useLayoutEffect:n.useEffect;function g(e,t,r){r.split(/\s+/).forEach((function(r){r&&e.classList[t](r)}))}var f={name:"className",defaultValue:"",fn:function(e){var t=e.popper.firstElementChild,r=function(){var t;return!!(null==(t=e.props.render)?void 0:t.$$tippy)};function o(){e.props.className&&!r()||g(t,"add",e.props.className)}return{onCreate:o,onBeforeUpdate:function(){r()&&g(t,"remove",e.props.className)},onAfterUpdate:o}}};function m(e){return function(t){var r,o,s=t.children,p=t.content,g=t.visible,m=t.singleton,h=t.render,y=t.reference,v=t.disabled,w=void 0!==v&&v,x=t.ignoreAttributes,k=void 0===x||x,E=(t.__source,t.__self,l(t,["children","content","visible","singleton","render","reference","disabled","ignoreAttributes","__source","__self"])),R=void 0!==g,A=void 0!==m,_=(0,n.useState)(!1),C=_[0],P=_[1],S=(0,n.useState)({}),B=S[0],W=S[1],j=(0,n.useState)(),T=j[0],L=j[1],D=(r=function(){return{container:d(),renders:1}},(o=(0,n.useRef)()).current||(o.current="function"==typeof r?r():r),o.current),O=Object.assign({ignoreAttributes:k},E,{content:D.container});R&&(O.trigger="manual",O.hideOnClick=!1),A&&(w=!0);var M=O,N=O.plugins||[];h&&(M=Object.assign({},O,{plugins:A&&null!=m.data?[].concat(N,[{fn:function(){return{onTrigger:function(e,t){var r=m.data.children.find((function(e){return e.instance.reference===t.currentTarget}));e.state.$$activeSingletonInstance=r.instance,L(r.content)}}}}]):N,render:function(){return{popper:D.container}}}));var I=[y].concat(s?[s.type]:[]);return b((function(){var t=y;y&&y.hasOwnProperty("current")&&(t=y.current);var r=e(t||D.ref||d(),Object.assign({},M,{plugins:[f].concat(O.plugins||[])}));return D.instance=r,w&&r.disable(),g&&r.show(),A&&m.hook({instance:r,content:p,props:M,setSingletonContent:L}),P(!0),function(){r.destroy(),null==m||m.cleanup(r)}}),I),b((function(){var e,t,r,o,n;if(1!==D.renders){var a=D.instance;a.setProps((t=a.props,r=M,Object.assign({},r,{popperOptions:Object.assign({},t.popperOptions,r.popperOptions,{modifiers:u([].concat((null==(o=t.popperOptions)?void 0:o.modifiers)||[],(null==(n=r.popperOptions)?void 0:n.modifiers)||[]))})}))),null==(e=a.popperInstance)||e.forceUpdate(),w?a.disable():a.enable(),R&&(g?a.show():a.hide()),A&&m.hook({instance:a,content:p,props:M,setSingletonContent:L})}else D.renders++})),b((function(){var e;if(h){var t=D.instance;t.setProps({popperOptions:Object.assign({},t.props.popperOptions,{modifiers:[].concat(((null==(e=t.props.popperOptions)?void 0:e.modifiers)||[]).filter((function(e){return"$$tippyReact"!==e.name})),[{name:"$$tippyReact",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t,r=e.state,o=null==(t=r.modifiersData)?void 0:t.hide;B.placement===r.placement&&B.referenceHidden===(null==o?void 0:o.isReferenceHidden)&&B.escaped===(null==o?void 0:o.hasPopperEscaped)||W({placement:r.placement,referenceHidden:null==o?void 0:o.isReferenceHidden,escaped:null==o?void 0:o.hasPopperEscaped}),r.attributes.popper={}}}])})})}}),[B.placement,B.referenceHidden,B.escaped].concat(I)),a().createElement(a().Fragment,null,s?(0,n.cloneElement)(s,{ref:function(e){D.ref=e,c(s.ref,e)}}):null,C&&(0,i.createPortal)(h?h(function(e){var t={"data-placement":e.placement};return e.referenceHidden&&(t["data-reference-hidden"]=""),e.escaped&&(t["data-escaped"]=""),t}(B),T,D.instance):p,D.container))}}const h=function(e){return(0,n.forwardRef)((function(t,r){var o=t.children,i=l(t,["children"]);return a().createElement(e,Object.assign({},undefined,i),o?(0,n.cloneElement)(o,{ref:function(e){c(r,e),c(o.ref,e)}}):null)}))}(m(o.Ay))},1576:(e,t,r)=>{"use strict";r.d(t,{n4:()=>g});var o=r(3424),n=r(9068),a=r(5059),i=r(1262),l=r(6607),s=r(8490),c=r(958),d=r(2089),p=r(8256),u=r(9081),b=[n.A,a.A,i.A,l.A,s.A,c.A,d.A,p.A,u.A],g=(0,o.UD)({defaultModifiers:b})},1609:e=>{"use strict";e.exports=window.React},1688:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var o={left:"right",right:"left",bottom:"top",top:"bottom"};function n(e){return e.replace(/left|right|bottom|top/g,(function(e){return o[e]}))}},1815:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var o=r(2632),n=r(8101),a=r(9703),i=r(4278);function l(e){var t,r=e.reference,l=e.element,s=e.placement,c=s?(0,o.A)(s):null,d=s?(0,n.A)(s):null,p=r.x+r.width/2-l.width/2,u=r.y+r.height/2-l.height/2;switch(c){case i.Mn:t={x:p,y:r.y-l.height};break;case i.sQ:t={x:p,y:r.y+r.height};break;case i.pG:t={x:r.x+r.width,y:u};break;case i.kb:t={x:r.x-l.width,y:u};break;default:t={x:r.x,y:r.y}}var b=c?(0,a.A)(c):null;if(null!=b){var g="y"===b?"height":"width";switch(d){case i.ni:t[b]=t[b]-(r[g]/2-l[g]/2);break;case i._N:t[b]=t[b]+(r[g]/2-l[g]/2)}}return t}},1864:(e,t,r)=>{"use strict";r.r(t),r.d(t,{edit:()=>s,metadata:()=>c});var o=r(1609),n=r(4715),a=r(7723),i=r(8504),l=r(2024);function s(e){const{attributes:t}=e,{alignment:r,width:s}=t;return(0,o.createElement)("div",{...(0,n.useBlockProps)()},(0,o.createElement)("div",{className:"wte-fsd-list-header",style:{display:"flex",justifyContent:null!=r?r:"flex-end"}},(0,o.createElement)("div",{className:"wte-user-input",style:{width:s}},(0,o.createElement)("div",{className:"fsd-date-select",style:(0,l.A)(t)},(0,o.createElement)("span",{className:"fsd-date-select-placeholder",style:{color:t?.textColor.initial}},(0,a.__)("Choose a date..","wptravelengine")),(0,o.createElement)("svg",{style:{color:t?.textColor.initial},width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)("path",{d:"M10 4L6 8L2 4",stroke:"currentColor",strokeOpacity:"0.8",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))))),(0,o.createElement)(i.s,{group:"styles",...e}))}const c=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"wptravelenginetripblocks/trip-fsd-date-selector","version":"1.0.0","icon":"calendar-alt","title":"Trip FSD Date Select","description":"Prompt visitors to add date selector for fsd.","category":"widgets","parent":["wptravelenginetripblocks/trip-fixed-starting-date"],"attributes":{"textColor":{"type":"object","default":{"initial":"#999"},"control":{"type":"color","labels":{"initial":{"label":"Text","style":"color"}}},"selectors":["#wte-fixed-departure-dates %WRAPPER% .select2-container--default .select2-selection--single .select2-selection__rendered","#wte-fixed-departure-dates %WRAPPER% .select2-selection__arrow"]},"background":{"type":"object","default":{"initial":"#fff"},"control":{"type":"color","labels":{"initial":{"label":"Background","style":"background"}}},"selectors":["#wte-fixed-departure-dates %WRAPPER% .select2-container--default .select2-selection"]},"padding":{"type":"object","default":{"top":"10px","right":"16px","bottom":"10px","left":"16px"},"selectors":["#wte-fixed-departure-dates %WRAPPER% .select2-container--default .select2-selection"]},"margin":{"type":"object","default":{"top":"","right":"","bottom":"","left":""},"selectors":["#wte-fixed-departure-dates %WRAPPER% .select2-container--default .select2-selection"]},"border":{"type":"object","default":{"width":"1","color":"","style":"none"},"selectors":["#wte-fixed-departure-dates %WRAPPER% .select2-container--default .select2-selection"]},"borderRadius":{"type":"object","default":{"top":"","right":"","bottom":"","left":""},"selectors":["#wte-fixed-departure-dates %WRAPPER% .select2-container--default .select2-selection"]},"boxShadow":{"type":"object","selectors":["#wte-fixed-departure-dates %WRAPPER% .select2-container--default .select2-selection"]},"alignment":{"type":"string","label":"Alignment","default":"flex-end","control":{"type":"alignment","style":"justify-content","controlAttribute":{"flex":true}},"selectors":["#wte-fixed-departure-dates %WRAPPER% .wte-fsd-list-header"],"panel":"-select-"},"width":{"type":"string","label":"Width","default":"190px","selectors":["%WRAPPER% .wte-user-input"],"control":{"type":"range","style":"width","controlAttribute":{"units":[{"unit":"px","max":"500","min":"100"},{"unit":"%","max":"100","min":"1"}]}},"panel":"-select-"},"typography":{"type":"object","default":{"size":{"desktop":"16px","tablet":"16px","mobile":"16px"}},"selectors":["#wte-fixed-departure-dates %WRAPPER% .select2-container--default .select2-selection--single .select2-selection__rendered","%WRAPPER% .select2-selection__arrow"]}},"supports":{"align":false,"wptravelenginetripblocks":{"colors":{"link":false},"border":true,"spacing":{"margin":true,"padding":true},"panels":{"-select-":{"title":"Select"}}}},"editorScript":["wte-select2"],"viewScript":["wte-select2"],"textdomain":"wptravelengine","render":"file:./block.php"}')},1894:(e,t,r)=>{"use strict";r.r(t),r.d(t,{edit:()=>s,metadata:()=>c});var o=r(1609),n=(r(7723),r(4871)),a=r.n(n),i=r(4715),l=r(8504);const s=(...e)=>{const t=(0,i.useBlockProps)(),r=e[0],{attributes:n,setAttributes:s}=r;return(0,o.createElement)("div",{...t},(0,o.createElement)(a(),{block:"wptravelenginetripblocks/trip-map",attributes:{...n,editor:!0}}),(0,o.createElement)(l.s,{...r,group:"styles"}))},c=JSON.parse('{"apiVersion":3,"name":"wptravelenginetripblocks/trip-map","title":"Trip Map","category":"widgets","description":"Integrate interactive maps with adjustable locations, allowing users to zoom in and out and adjust heights with a few clicks.","version":"1.0.0","icon":"location-alt","script":[],"attributes":{"map":{"type":"string","default":"Iframe","control":{"type":"select-button","controlAttribute":{"type":"radio","options":[{"label":"Image","value":"Image"},{"label":"Iframe","value":"Iframe"},{"label":"Both","value":"Both"}]}},"panel":"-map-"}},"supports":{"align":false,"wptravelenginetripblocks":{"typography":false,"colors":{"background":true,"textColor":false,"link":false},"panels":{"-map-":{"title":"Map Display"}}}},"textdomain":"wptravelengine","render":"file:./block.php"}')},1923:(e,t,r)=>{"use strict";r.d(t,{A:()=>g});var o=r(8168),n=r(4684),a=r(6298),i=r(1287),l=r(41),s=r(1609),c=r(1134).A,d=function(e){return"theme"!==e},p=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?c:d},u=function(e,t,r){var o;if(t){var n=t.shouldForwardProp;o=e.__emotion_forwardProp&&n?function(t){return e.__emotion_forwardProp(t)&&n(t)}:n}return"function"!=typeof o&&r&&(o=e.__emotion_forwardProp),o},b=function(e){var t=e.cache,r=e.serialized,o=e.isStringTag;return(0,l.SF)(t,r,o),(0,i.s)((function(){return(0,l.sk)(t,r,o)})),null},g=function e(t,r){var i,c,d=t.__emotion_real===t,g=d&&t.__emotion_base||t;void 0!==r&&(i=r.label,c=r.target);var f=u(t,r,d),m=f||p(g),h=!m("as");return function(){var y=arguments,v=d&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==i&&v.push("label:"+i+";"),null==y[0]||void 0===y[0].raw)v.push.apply(v,y);else{var w=y[0];v.push(w[0]);for(var x=y.length,k=1;k<x;k++)v.push(y[k],w[k])}var E=(0,n.w)((function(e,t,r){var o=h&&e.as||g,i="",d=[],u=e;if(null==e.theme){for(var y in u={},e)u[y]=e[y];u.theme=s.useContext(n.T)}"string"==typeof e.className?i=(0,l.Rk)(t.registered,d,e.className):null!=e.className&&(i=e.className+" ");var w=(0,a.J)(v.concat(d),t.registered,u);i+=t.key+"-"+w.name,void 0!==c&&(i+=" "+c);var x=h&&void 0===f?p(o):m,k={};for(var E in e)h&&"as"===E||x(E)&&(k[E]=e[E]);return k.className=i,r&&(k.ref=r),s.createElement(s.Fragment,null,s.createElement(b,{cache:t,serialized:w,isStringTag:"string"==typeof o}),s.createElement(o,k))}));return E.displayName=void 0!==i?i:"Styled("+("string"==typeof g?g:g.displayName||g.name||"Component")+")",E.defaultProps=t.defaultProps,E.__emotion_real=E,E.__emotion_base=g,E.__emotion_styles=v,E.__emotion_forwardProp=f,Object.defineProperty(E,"toString",{value:function(){return"."+c}}),E.withComponent=function(t,n){return e(t,(0,o.A)({},r,n,{shouldForwardProp:u(E,n,!0)})).apply(void 0,v)},E}}},2024:(e,t,r)=>{"use strict";function o(e,t={}){const r=e?.typography||{family:"inherit",size:{desktop:"",tablet:"",mobile:""},"line-height":{desktop:"",tablet:"",mobile:""},"letter-spacing":{desktop:"",tablet:"",mobile:""},weight:"",style:"",transform:"",decoration:""};let{textColor:o,background:n,link:{initial:a,hover:i}={initial:"",hover:""},padding:l=null,margin:s=null,border:c=null,borderRadius:d=null,boxShadow:p=null}=e;const{family:u,size:b={desktop:"",tablet:"",mobile:""},"letter-spacing":g={desktop:"",tablet:"",mobile:""},"line-height":f={desktop:"",tablet:"",mobile:""},weight:m,style:h,transform:y,decoration:v}=r;if(l){const{top:e,right:t,bottom:r,left:o}=l;l={paddingTop:e,paddingRight:t,paddingBottom:r,paddingLeft:o}}if(s){const{top:e,right:t,bottom:r,left:o}=s;s={marginTop:e,marginRight:t,marginBottom:r,marginLeft:o}}if(c){const{width:e,color:t,style:r}=c;c={borderWidth:e,borderColor:t,borderStyle:r}}if(d){const{top:e,right:t,bottom:r,left:o}=d;d={borderTopLeftRadius:e,borderTopRightRadius:t,borderBottomRightRadius:r,borderBottomLeftRadius:o}}if(p){const{position:e="",xOffset:t=0,yOffset:r=0,blur:o=0,spread:n=0,color:a=""}=p;p=`${"inset"===e?"inset":""} ${t} ${r} ${o} ${n} ${a}`}return{fontFamily:u,"--font-size-d":b.desktop,"--font-size-t":b.tablet,"--font-size-m":b.mobile,"--line-height-d":f.desktop,"--line-height-t":f.tablet,"--line-height-m":f.mobile,"--letter-spacing-d":g.desktop,"--letter-spacing-t":g.tablet,"--letter-spacing-m":g.mobile,fontWeight:m,fontStyle:h,textTransform:y,textDecoration:v,color:o,backgroundColor:n,"--link-color":a||"inherit","--link-hover-color":i||"inherit",...p?{boxShadow:p}:{},...l,...s,...c,...d,...t}}r.d(t,{A:()=>o})},2063:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var o=r(7604);function n(e){return["table","td","th"].indexOf((0,o.A)(e))>=0}},2083:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var o=r(7604),n=r(9760),a=r(5581);function i(e){return"html"===(0,o.A)(e)?e:e.assignedSlot||e.parentNode||((0,a.Ng)(e)?e.host:null)||(0,n.A)(e)}},2089:(e,t,r)=>{"use strict";r.d(t,{A:()=>g});var o=r(4278),n=r(2632),a=r(9703),i=r(6442),l=r(6523),s=r(6979),c=r(5128),d=r(9913),p=r(8101),u=r(7364),b=r(6906);const g={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,g=e.name,f=r.mainAxis,m=void 0===f||f,h=r.altAxis,y=void 0!==h&&h,v=r.boundary,w=r.rootBoundary,x=r.altBoundary,k=r.padding,E=r.tether,R=void 0===E||E,A=r.tetherOffset,_=void 0===A?0:A,C=(0,d.A)(t,{boundary:v,rootBoundary:w,padding:k,altBoundary:x}),P=(0,n.A)(t.placement),S=(0,p.A)(t.placement),B=!S,W=(0,a.A)(P),j=(0,i.A)(W),T=t.modifiersData.popperOffsets,L=t.rects.reference,D=t.rects.popper,O="function"==typeof _?_(Object.assign({},t.rects,{placement:t.placement})):_,M="number"==typeof O?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),N=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,I={x:0,y:0};if(T){if(m){var z,H="y"===W?o.Mn:o.kb,$="y"===W?o.sQ:o.pG,F="y"===W?"height":"width",V=T[W],q=V+C[H],Y=V-C[$],Z=R?-D[F]/2:0,G=S===o.ni?L[F]:D[F],U=S===o.ni?-D[F]:-L[F],J=t.elements.arrow,K=R&&J?(0,s.A)(J):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:(0,u.A)(),Q=X[H],ee=X[$],te=(0,l.u)(0,L[F],K[F]),re=B?L[F]/2-Z-te-Q-M.mainAxis:G-te-Q-M.mainAxis,oe=B?-L[F]/2+Z+te+ee+M.mainAxis:U+te+ee+M.mainAxis,ne=t.elements.arrow&&(0,c.A)(t.elements.arrow),ae=ne?"y"===W?ne.clientTop||0:ne.clientLeft||0:0,ie=null!=(z=null==N?void 0:N[W])?z:0,le=V+re-ie-ae,se=V+oe-ie,ce=(0,l.u)(R?(0,b.jk)(q,le):q,V,R?(0,b.T9)(Y,se):Y);T[W]=ce,I[W]=ce-V}if(y){var de,pe="x"===W?o.Mn:o.kb,ue="x"===W?o.sQ:o.pG,be=T[j],ge="y"===j?"height":"width",fe=be+C[pe],me=be-C[ue],he=-1!==[o.Mn,o.kb].indexOf(P),ye=null!=(de=null==N?void 0:N[j])?de:0,ve=he?fe:be-L[ge]-D[ge]-ye+M.altAxis,we=he?be+L[ge]+D[ge]-ye-M.altAxis:me,xe=R&&he?(0,l.P)(ve,be,we):(0,l.u)(R?ve:fe,be,R?we:me);T[j]=xe,I[j]=xe-be}t.modifiersData[g]=I}},requiresIfExists:["offset"]}},2110:(e,t,r)=>{"use strict";r.r(t),r.d(t,{edit:()=>s,metadata:()=>c});var o=r(1609),n=(r(7723),r(4715)),a=r(4871),i=r.n(a),l=r(8504);const s=(...e)=>{const t=(0,n.useBlockProps)(),r=e[0],{attributes:a}=r;return(0,o.createElement)("div",{...t},(0,o.createElement)(i(),{block:"wptravelenginetripblocks/trip-description",attributes:{...a,editor:!0}}),(0,o.createElement)(l.s,{group:"styles",...r}))},c=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"wptravelenginetripblocks/trip-description","version":"1.0.0","title":"Trip Description","icon":"archive","category":"widgets","keywords":["overview","description"],"description":"Enjoy complete control over your trip description.","script":[],"textdomain":"wptravelengine","attributes":{"alignment":{"type":"string","label":"Alignment","panel":"-description-","default":"left","control":{"type":"alignment","style":"text-align"}}},"supports":{"align":false,"wptravelenginetripblocks":{"panels":{"-description-":{"title":"Description","icon":"calendar"}}}},"render":"file:./block.php"}')},2283:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var o=r(2398);function n(){return!/^((?!chrome|android).)*safari/i.test((0,o.A)())}},2379:(e,t,r)=>{"use strict";r.r(t),r.d(t,{edit:()=>s,metadata:()=>c});var o=r(1609),n=r(4871),a=r.n(n),i=r(4715),l=r(8504);const s=(...e)=>{const t=e[0],{attributes:r,setAttributes:n}=t,s=(0,i.useBlockProps)();return(0,o.createElement)("div",{...s},(0,o.createElement)(a(),{block:"wptravelenginetripblocks/star-ratings",attributes:{...r,editor:!0}}),(0,o.createElement)(l.s,{group:"styles",...t}))},c=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"wptravelenginetripblocks/star-ratings","version":"1.0.0","title":"Star Ratings","category":"widgets","icon":"star-filled","description":"Display star ratings to establish credibility and build trust with your audience.","script":[],"attributes":{"stars":{"type":"object","label":"Stars","default":{"active":"#EBAD34","inactive":"#cccccc"},"control":{"type":"color","labels":{"active":{"label":"Active","style":"color","selectors":"%WRAPPER% .trip-rating-stars-rated-group"},"inactive":{"label":"Inactive","style":"color","selectors":"%WRAPPER% .trip-rating-stars-placeholder-group"}}}},"alignment":{"type":"string","label":"Alignment","panel":"-starratings-","control":{"type":"alignment","style":"text-align"},"default":"center","selectors":"%WRAPPER% .trip-rating-stars-container"},"starsSize":{"type":"string","label":"Star Size","panel":"-starratings-","default":"20px","control":{"type":"range","style":"font-size","controlAttribute":{"units":[{"unit":"px","min":1,"max":100},{"unit":"em","min":1,"max":10},{"unit":"rem","min":1,"max":10}]}},"selectors":"%WRAPPER% .trip-rating-stars"},"starsGap":{"type":"string","label":"Stars Gap","panel":"-starratings-","default":"4px","control":{"type":"range","style":"gap","controlAttribute":{"units":[{"unit":"px","min":1,"max":50},{"unit":"em","min":1,"max":10},{"unit":"rem","min":1,"max":10}]}},"selectors":"%WRAPPER% .trip-rating-stars-container"},"enableScaleText":{"type":"boolean","default":false,"label":"Enable","panel":"-rating-scale-","control":{"type":"switch"}},"scaleColor":{"type":"object","default":{"color":"#ffffff","background":"#12B76A"},"label":"Text Color","selectors":"%WRAPPER% .trip-rating-scale-text","control":{"type":"color","labels":{"color":{"label":"Text","style":"color"},"background":{"label":"Background","style":"background-color"}}},"panel":"-rating-scale-"},"typography":{"type":"object","default":{"size":{"desktop":"12px","tablet":"12px","mobile":"12px"}},"selectors":"%WRAPPER% .trip-rating-scale-text"},"scaleRoundness":{"type":"string","label":"Roundness","selectors":"%WRAPPER% .trip-rating-scale-text","default":"2px","control":{"type":"range","style":"border-radius","controlAttribute":{"units":[{"unit":"px","min":0,"max":100}]}},"panel":"-rating-scale-"},"scalePadding":{"type":"object","label":"Padding","selectors":"%WRAPPER% .trip-rating-scale-text","default":{"top":"2px","right":"12px","bottom":"2px","left":"12px"},"control":{"type":"spacing","style":"padding"},"panel":"-rating-scale-"},"scaleTextPosition":{"type":"string","default":"right","label":"Placement","control":{"type":"select","controlAttribute":{"options":[{"label":"Top","value":"top"},{"label":"Right","value":"right"},{"label":"Bottom","value":"bottom"},{"label":"Left","value":"left"}]}},"panel":"-rating-scale-"}},"supports":{"align":false,"wptravelenginetripblocks":{"colors":{"textColor":false,"link":false},"panels":{"-starratings-":{"title":"Star Ratings","icon":"star-filled"},"-rating-scale-":{"title":"Rating Scale Text"}}}},"textdomain":"wptravelengine","render":"file:./block.php"}')},2398:(e,t,r)=>{"use strict";function o(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}r.d(t,{A:()=>o})},2513:(e,t,r)=>{"use strict";r.r(t),r.d(t,{edit:()=>d,metadata:()=>p});var o=r(1609),n=r(7723),a=r(4715),i=r(8504),l=r(7143),s=r(3582);const c=["January","February","March","April","May","June","July","August","September","October","November","December"],d=(...e)=>{const t=e[0],{attributes:r,setAttributes:d,context:{commentId:p}}=t,{border:u,borderRadius:b,boxShadow:g,margin:f,padding:m,textColor:h,background:y,alignment:v,fontSize:w}=r,x=["position","xOffset","yOffset","blur","spread","color"].map((e=>{var t,r;if("position"===e)return"inset"!==g[e]?"":"inset";if("color"===e)return null!==(r=g[e])&&void 0!==r?r:"";const o=null!==(t=g[e])&&void 0!==t?t:"";return""!==o?o:0})).join(" "),k=(0,a.useBlockProps)();let E=(0,l.useSelect)((e=>{const{getEntityRecord:t}=e(s.store),r=t("root","comment",p),o=r?.meta?.experience_date;let n="January 23, 2023";if(o){const e=new Date(o);n=`${c[e.getMonth()]} ${String(e.getDate()).padStart(2,"0")}, ${e.getFullYear()}`}return n}),[p]);return(0,o.createElement)("div",{...k,style:{border:u?`${u.width||0}px ${u.style||"solid"} ${u.color||"transparent"}`:"none",borderRadius:b?`${b.bottom||0} ${b.left||0} ${b.right||0} ${b.top||0}`:"none",boxShadow:g?.enable?x:"none",paddingTop:m.top,paddingBottom:m.bottom,paddingLeft:m.left,paddingRight:m.right,marginTop:f.top,marginBottom:f.bottom,marginLeft:f.left,marginRight:f.right,color:h,background:y||"",textAlign:v}},E&&(0,o.createElement)("span",{className:"trip-block-review-experience-date"},(0,n.__)("Date of Experience:")," ",E),(0,o.createElement)(i.s,{group:"styles",...t}))},p=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"wptravelenginetripblocks/experience-date","version":"1.0.0","title":"Experience Date","category":"widgets","icon":"calendar","description":"Display trip\'s reviews experience date.","usesContext":["commentId"],"ancestor":["core/comments"],"attributes":{"alignment":{"type":"string","label":"Alignment","panel":"-experiencedate-","control":{"type":"alignment","style":"text-align"},"default":"left","selectors":"%WRAPPER%"},"typography":{"type":"object","default":{"size":{"desktop":"14px","tablet":"14px","mobile":"14px"}}}},"supports":{"align":false,"wptravelenginetripblocks":{"colors":{"link":false},"panels":{"-experiencedate-":{"title":"Experience Date","icon":"star-filled"}}}},"textdomain":"wptravelengine","render":"file:./block.php"}')},2632:(e,t,r)=>{"use strict";function o(e){return e.split("-")[0]}r.d(t,{A:()=>o})},2805:(e,t,r)=>{var o={"./booking/block.js":7504,"./cost-excludes/block.js":5821,"./cost-includes/block.js":6079,"./faqs/block.js":4869,"./global-highlights/block.js":4757,"./itinerary-chart/block.js":168,"./itinerary/block.js":7207,"./review-form/block.js":2993,"./stars-bar-graph/block.js":7616,"./tab-content/block.js":5604,"./tab/block.js":6660,"./trip-booking-button/block.js":149,"./trip-description/block.js":2110,"./trip-discount-badge/block.js":4470,"./trip-duration/block.js":8066,"./trip-enquiry/block.js":9775,"./trip-facts/block.js":3777,"./trip-fsd/trip-fixed-starting-date/block.js":9483,"./trip-fsd/trip-fsd-date-selector/block.js":1864,"./trip-fsd/trip-fsd-loadmore/block.js":9876,"./trip-fsd/trip-fsd-table/block.js":8858,"./trip-gallery/block.js":9570,"./trip-highlights/block.js":5825,"./trip-map/block.js":1894,"./trip-pricing/block.js":1484,"./trip-reviews/experience-date/block.js":2513,"./trip-reviews/rated-star/block.js":24,"./trip-reviews/ratings/block.js":7999,"./trip-reviews/review-gallery/block.js":4238,"./trip-reviews/review-location/block.js":4917,"./trip-reviews/review-title/block.js":7382,"./trip-reviews/reviews-count/block.js":3704,"./trip-reviews/star-rating/block.js":2379};function n(e){var t=a(e);return r(t)}function a(e){if(!r.o(o,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return o[e]}n.keys=function(){return Object.keys(o)},n.resolve=a,e.exports=n,n.id=2805},2883:(e,t,r)=>{"use strict";r.d(t,{A:()=>y});var o=r(4278),n=r(5487),a=r(8848),i=r(3341),l=r(5128),s=r(9760),c=r(271),d=r(5581),p=r(6354),u=r(2083),b=r(5446),g=r(7604),f=r(4426),m=r(6906);function h(e,t,r){return t===o.R9?(0,f.A)((0,n.A)(e,r)):(0,d.vq)(t)?function(e,t){var r=(0,p.A)(e,!1,"fixed"===t);return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}(t,r):(0,f.A)((0,a.A)((0,s.A)(e)))}function y(e,t,r,o){var n="clippingParents"===t?function(e){var t=(0,i.A)((0,u.A)(e)),r=["absolute","fixed"].indexOf((0,c.A)(e).position)>=0&&(0,d.sb)(e)?(0,l.A)(e):e;return(0,d.vq)(r)?t.filter((function(e){return(0,d.vq)(e)&&(0,b.A)(e,r)&&"body"!==(0,g.A)(e)})):[]}(e):[].concat(t),a=[].concat(n,[r]),s=a[0],p=a.reduce((function(t,r){var n=h(e,r,o);return t.top=(0,m.T9)(n.top,t.top),t.right=(0,m.jk)(n.right,t.right),t.bottom=(0,m.jk)(n.bottom,t.bottom),t.left=(0,m.T9)(n.left,t.left),t}),h(e,s,o));return p.width=p.right-p.left,p.height=p.bottom-p.top,p.x=p.left,p.y=p.top,p}},2993:(e,t,r)=>{"use strict";r.r(t),r.d(t,{edit:()=>c,metadata:()=>d});var o=r(1609),n=r(8504),a=r(4715),i=r(2024),l=r(7723);const s=({attributes:e,setAttributes:t,...r})=>{const n=()=>(0,o.createElement)("svg",{width:"32px",height:"32px",viewBox:"0 0 30 29",fill:"transparent",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)("path",{d:"M13.6636 1.21895C14.0288 0.469865 15.0962 0.469863 15.4614 1.21895L19.0244 8.52811C19.169 8.82468 19.4505 9.03085 19.7769 9.07915L27.7669 10.2617C28.5829 10.3825 28.91 11.3837 28.3227 11.9629L22.527 17.6789C22.2946 17.9081 22.1887 18.2362 22.2432 18.5579L23.6086 26.6191C23.7473 27.4378 22.8855 28.059 22.1526 27.6688L15.0325 23.8773C14.7387 23.7208 14.3863 23.7208 14.0925 23.8773L6.97236 27.6688C6.23947 28.059 5.37772 27.4378 5.51639 26.6191L6.8818 18.5579C6.93629 18.2362 6.83037 17.9081 6.59803 17.6789L0.802323 11.9629C0.214999 11.3837 0.542087 10.3825 1.35811 10.2617L9.34808 9.07915C9.67445 9.03085 9.95599 8.82468 10.1006 8.52812L13.6636 1.21895Z",stroke:"#EBAD34",strokeLinecap:"round",strokeLinejoin:"round"})),a=e=>(0,o.createElement)("svg",{width:"32px",height:"32px",viewBox:"0 0 30 29",fill:"#F39C12",xmlns:"http://www.w3.org/2000/svg",...e},(0,o.createElement)("path",{d:"M13.6636 1.21895C14.0288 0.469865 15.0962 0.469863 15.4614 1.21895L19.0244 8.52811C19.169 8.82468 19.4505 9.03085 19.7769 9.07915L27.7669 10.2617C28.5829 10.3825 28.91 11.3837 28.3227 11.9629L22.527 17.6789C22.2946 17.9081 22.1887 18.2362 22.2432 18.5579L23.6086 26.6191C23.7473 27.4378 22.8855 28.059 22.1526 27.6688L15.0325 23.8773C14.7387 23.7208 14.3863 23.7208 14.0925 23.8773L6.97236 27.6688C6.23947 28.059 5.37772 27.4378 5.51639 26.6191L6.8818 18.5579C6.93629 18.2362 6.83037 17.9081 6.59803 17.6789L0.802323 11.9629C0.214999 11.3837 0.542087 10.3825 1.35811 10.2617L9.34808 9.07915C9.67445 9.03085 9.95599 8.82468 10.1006 8.52812L13.6636 1.21895Z",stroke:"#EBAD34",strokeLinecap:"round",strokeLinejoin:"round"})),s=(0,i.A)({typography:e?.inputTypography},{color:e.inputColor.text,backgroundColor:e.inputColor.background,paddingTop:e.inputPadding.top,paddingBottom:e.inputPadding.bottom,paddingLeft:e.inputPadding.left,paddingRight:e.inputPadding.right,border:e.inputBorder?`${e.inputBorder.width||0}px ${e.inputBorder.style||"solid"} ${e.inputBorder.color||"transparent"}`:"none",borderRadius:e.inputBorderRadius?`${e.inputBorderRadius.bottom||0} ${e.inputBorderRadius.left||0} ${e.inputBorderRadius.right||0} ${e.inputBorderRadius.top||0}`:"none"});return(0,o.createElement)(o.Fragment,null,(0,o.createElement)("div",{className:e.formLabel?"form-label-enabled":""},(0,o.createElement)("div",{className:"rating-form dropzone",...r},(0,o.createElement)("p",{className:"logged-in-as"}," ",(0,l.__)("Logged in as admin.")," ",(0,o.createElement)("a",{href:"#",style:{color:e.link.initial,"--link-hover":e.link.hover}}," ",(0,l.__)("Edit your profile.")," "),(0,o.createElement)("a",{href:"#",style:{color:e.link.initial,"--link-hover":e.link.hover}}," ",(0,l.__)("Log out?")," "),(0,o.createElement)("span",{className:"required-field-message"}," ",(0,l.__)("Required fields are marked")," ",(0,o.createElement)("span",{className:"required"},"*"))),(0,o.createElement)("div",{className:"review-title-rating"},(0,o.createElement)("div",{className:"comment-form-title comment-form-wte-trip-review-rating",style:{marginBottom:e.rowSpacing}},(0,o.createElement)("label",{htmlFor:"wte-trip-review-rating",style:{marginBottom:e.labelSpacing}},(0,l.__)("Ratings"),(0,o.createElement)("span",{className:"required"},"*")),(0,o.createElement)("fieldset",{id:"wte-trip-review-rating-field",className:"wte-trip-review-rating trip-review-form-rating"},(0,o.createElement)("div",{className:"review-form-rating trip-review-default jq-ry-container","data-icon-type":"","data-rateyo-rated-fill":"#F39C12",style:{width:"160px"}},(0,o.createElement)("div",{className:"jq-ry-group-wrapper",style:{"--rated-star-color":e.ratedStarColor}},(0,o.createElement)("div",{className:"jq-ry-normal-group jq-ry-group"},[...Array(5)].map(((e,t)=>(0,o.createElement)(n,{key:t.toString()})))),(0,o.createElement)("div",{className:"jq-ry-rated-group jq-ry-group",style:{width:"60%"}},[...Array(5)].map(((t,r)=>(0,o.createElement)(a,{key:r.toString(),style:{fill:e.ratedStarColor}})))))))),(0,o.createElement)("p",{className:"comment-form-title",style:{marginBottom:e.rowSpacing}},(0,o.createElement)("label",{htmlFor:"title",style:{marginBottom:e.labelSpacing}},(0,l.__)("Review Title*")),(0,o.createElement)("input",{id:"title",required:"",name:"title",placeholder:"Add review title",type:"text",size:"30",tabIndex:"5",style:s})),(0,o.createElement)("div",{className:"comment-form-comment",style:{marginBottom:e.rowSpacing}},(0,o.createElement)("label",{htmlFor:"comment",style:{marginBottom:e.labelSpacing}},(0,l.__)("Write Review*")),(0,o.createElement)("textarea",{id:"comment",required:"",placeholder:"Write review description",name:"comment","aria-required":"true",style:s})),(0,o.createElement)("div",{className:"review-combined-field",style:{marginBottom:e.rowSpacing}},(0,o.createElement)("p",{className:"comment-form-title comment-form-experience-date"},(0,o.createElement)("label",{htmlFor:"date-of-experience",style:{marginBottom:e.labelSpacing}},(0,l.__)("Date Of Experience")),(0,o.createElement)("input",{id:"date-of-experience",autoComplete:"off",name:"experience_date",placeholder:"Date Of Experience",type:"text",tabIndex:"5",className:"flatpickr-input",readOnly:"readonly",style:s}))),(0,o.createElement)("legend",{style:{marginBottom:e.rowSpacing,marginBottom:e.labelSpacing}},(0,l.__)("Add Images")),(0,o.createElement)("p",{className:"comment-form-title comment-form-photo-gallery",style:{marginBottom:e.rowSpacing}},(0,o.createElement)("label",{htmlFor:"input-review-images",style:{marginBottom:e.labelSpacing}},(0,l.__)("Photo Gallery"))),(0,o.createElement)("div",{className:"fallback dropzone input-review-images dz-clickable",style:(0,i.A)({typography:e?.inputTypography},{border:e.dropzoneBorder?`${e.dropzoneBorder.width||0}px ${e.dropzoneBorder.style||"solid"} ${e.dropzoneBorder.color||"transparent"}`:"none",borderRadius:e.dropzoneBorderRadius?`${e.dropzoneBorderRadius.bottom||0} ${e.dropzoneBorderRadius.left||0} ${e.dropzoneBorderRadius.right||0} ${e.dropzoneBorderRadius.top||0}`:"none",color:e.inputColor.text,backgroundColor:e.inputColor.background})},(0,o.createElement)("div",{className:"dz-default dz-message"},(0,o.createElement)("button",{className:"dz-button",type:"button"},(0,o.createElement)("span",{className:"file-upload-icon"},(0,o.createElement)("svg",{width:"44",height:"42",viewBox:"0 0 44 42",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{fontSize:e.iconSize}},(0,o.createElement)("path",{d:"M35.7845 11.2873C35.314 8.49148 33.9297 5.93997 31.8125 4.00372C29.46 1.85032 26.4018 0.665039 23.2169 0.665039C20.7559 0.665039 18.3582 1.37078 16.3043 2.70082C14.5943 3.80467 13.1738 5.29757 12.1694 7.05287C11.7351 6.97143 11.2827 6.9262 10.8304 6.9262C6.98499 6.9262 3.85441 10.0568 3.85441 13.9021C3.85441 14.3998 3.9087 14.8793 3.99918 15.3498C1.511 17.1594 0 20.0728 0 23.1763C0 25.6825 0.931935 28.1164 2.63294 30.0436C4.37919 32.0161 6.68641 33.1832 9.14744 33.319C9.17458 33.319 9.19268 33.319 9.21982 33.319H17.001C17.6796 33.319 18.2225 32.7761 18.2225 32.0975C18.2225 31.4189 17.6796 30.876 17.001 30.876H9.25601C5.55542 30.6498 2.44294 27.1302 2.44294 23.1672C2.44294 20.6066 3.81822 18.218 6.03496 16.9241C6.55069 16.6256 6.76784 16.0013 6.56878 15.4403C6.38783 14.9517 6.29735 14.436 6.29735 13.884C6.29735 11.3868 8.33313 9.35104 10.8304 9.35104C11.3642 9.35104 11.889 9.44151 12.3775 9.62247C12.9747 9.83962 13.6352 9.56819 13.9066 8.99817C15.5986 5.40615 19.254 3.08988 23.226 3.08988C28.5643 3.08988 32.9706 7.08906 33.4773 12.3911C33.5316 12.9431 33.9478 13.3864 34.4906 13.4769C38.517 14.1645 41.5571 17.8832 41.5571 22.1267C41.5571 26.6235 38.0193 30.5322 33.6582 30.867H26.9899C26.3113 30.867 25.7685 31.4099 25.7685 32.0884C25.7685 32.767 26.3113 33.3099 26.9899 33.3099H33.7035C33.7306 33.3099 33.7578 33.3099 33.794 33.3099C36.5536 33.1109 39.1322 31.8442 41.0504 29.7269C42.9595 27.6278 44 24.9315 44 22.1267C43.991 17.0508 40.5256 12.5359 35.7845 11.2873Z",fill:"#2183DF",style:{fill:e.iconColor}}),(0,o.createElement)("path",{d:"M29.3332 24.3347C29.8127 23.8552 29.8127 23.0861 29.3332 22.6066L22.8639 16.1373C22.6377 15.9111 22.3211 15.7754 22.0044 15.7754C21.6877 15.7754 21.371 15.9021 21.1448 16.1373L14.6756 22.6066C14.196 23.0861 14.196 23.8552 14.6756 24.3347C14.9108 24.57 15.2275 24.6966 15.5351 24.6966C15.8428 24.6966 16.1594 24.579 16.3947 24.3347L20.7829 19.9465V40.1143C20.7829 40.7929 21.3258 41.3357 22.0044 41.3357C22.683 41.3357 23.2259 40.7929 23.2259 40.1143V19.9465L27.6141 24.3347C28.0846 24.8143 28.8537 24.8143 29.3332 24.3347Z",fill:"#2183DF",style:{fill:e.iconColor}}))),(0,o.createElement)("span",{className:"wte-reviews-dropzone-placeholder",style:{color:e.textColor}},(0,l.__)("Drop your Image or click to")," ",(0,o.createElement)("span",{style:{color:e.link.initial}},(0,l.__)("browse"))),(0,o.createElement)("span",{className:"supported-message"},(0,l.__)("Supported file : JPG, PNG, GIF")))))),(0,o.createElement)("p",{className:"form-submit wp-block-button",style:{textAlign:e.buttonAlignment}},(0,o.createElement)("input",{name:"submit",type:"submit",id:"submit",className:"wp-block-button__link wp-element-button",style:(0,i.A)({typography:e.buttonTypography},{backgroundColor:e.btnbgColor.initial,color:e.btnColor.initial,"--btn-color-hover":e.btnColor.hover,"--btnbg-color-hover":e.btnbgColor.hover,border:e.buttonBorder?`${e.buttonBorder.width||0}px ${e.buttonBorder.style||"solid"} ${e.buttonBorder.color||"transparent"}`:"none",borderRadius:e.buttonBorderRadius?`${e.buttonBorderRadius.bottom||0} ${e.buttonBorderRadius.left||0} ${e.buttonBorderRadius.right||0} ${e.buttonBorderRadius.top||0}`:"none",paddingTop:e.buttonPadding.top,paddingBottom:e.buttonPadding.bottom,paddingLeft:e.buttonPadding.left,paddingRight:e.buttonPadding.right,fontSize:e.buttonSize,width:e.fullWidth?"100%":"auto"}),value:e.buttonLabel})))))},c=(...e)=>{const t=e[0],{attributes:r,setAttributes:l}=t,{border:c,borderRadius:d,boxShadow:p,margin:u,padding:b,textColor:g,background:f,alignment:m,fontSize:h}=r,y=(["position","xOffset","yOffset","blur","spread","color"].map((e=>{var t,r;if("position"===e)return"inset"!==p[e]?"":"inset";if("color"===e)return null!==(r=p[e])&&void 0!==r?r:"";const o=null!==(t=p[e])&&void 0!==t?t:"";return""!==o?o:0})),(0,a.useBlockProps)());return(0,o.createElement)("div",{...y,style:(0,i.A)(r)},(0,o.createElement)(s,{attributes:r,setAttributes:l}),(0,o.createElement)(n.s,{group:"styles",...t}))},d=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"wptravelenginetripblocks/review-form","version":"1.0.0","title":"Review Form","category":"widgets","icon":"forms","description":"Start with a pre-designed review form to accept submissions.","script":[],"attributes":{"link":{"type":"object","default":{"initial":"#147dfe","hover":"#147dfe"},"control":{"type":"color","labels":{"initial":{"label":"Link","style":"color"},"hover":{"label":"Hover","style":"color:hover"}}},"selectors":["%WRAPPER% #respond a","%WRAPPER% .dropzone .dz-button .wte-reviews-dropzone-placeholder span"]},"textColor":{"type":"string","selectors":["%WRAPPER% #respond .rating-form","%WRAPPER% .rating-form .dropzone .dz-button .wte-reviews-dropzone-placeholder"]},"background":{"type":"string","default":"#ffffff","selectors":"%WRAPPER%"},"border":{"type":"object","default":{"width":"1","style":"none","color":"#000000"},"selectors":"%WRAPPER% "},"borderRadius":{"type":"object","default":{},"selectors":"%WRAPPER% "},"boxShadow":{"type":"object","default":{},"selectors":"%WRAPPER% "},"padding":{"type":"object","default":{"top":"24px","right":"24px","bottom":"24px","left":"24px"},"selectors":"%WRAPPER% "},"margin":{"type":"object","default":{},"selectors":"%WRAPPER% "},"rowSpacing":{"type":"string","label":"Row Gap","selectors":"%WRAPPER% .rating-form .review-title-rating > *","default":"32px","control":{"type":"range","style":"margin-bottom","controlAttribute":{"units":[{"unit":"px","min":"0","max":"100"}]}},"panel":"-form-"},"formLabel":{"type":"boolean","label":"Label","default":true,"control":{"type":"switch"},"panel":"-label-"},"labelSpacing":{"type":"string","label":"Spacing","selectors":["%WRAPPER% .rating-form label"],"default":"8px","control":{"type":"range","style":"margin-bottom","controlAttribute":{"units":[{"unit":"px","min":"0","max":"50"}]}},"panel":"-label-"},"inputTypography":{"type":"object","label":"Typography","default":{},"selectors":["%WRAPPER% #respond .rating-form input:not([type=submit]):not([type=checkbox]):not([type=radio])","%WRAPPER% #respond .rating-form textarea, #respond .rating-form select, .rating-form .dropzone"],"control":{"type":"typography"},"panel":"-input-"},"inputColor":{"type":"object","label":"Color","default":{"text":"#2b3034","background":"#ffffff"},"selectors":["%WRAPPER% #respond .rating-form input:not([type=submit]):not([type=checkbox]):not([type=radio])","%WRAPPER% #respond .rating-form textarea, #respond .rating-form select, .rating-form .dropzone"],"control":{"type":"color","labels":{"text":{"label":"Text","style":"color"},"background":{"label":"Background","style":"background-color"}}},"panel":"-input-"},"inputBorder":{"type":"object","label":"Border","selectors":["%WRAPPER% #respond .rating-form input:not([type=submit]):not([type=checkbox]):not([type=radio])","%WRAPPER% #respond .rating-form textarea, #respond .rating-form select"],"default":{"width":"1","style":"solid","color":"rgba(6, 22, 38, 0.2)"},"control":{"type":"border","style":"border"},"panel":"-input-"},"inputBorderRadius":{"type":"object","label":"Border Radius","default":{"top":"4px","right":"4px","bottom":"4px","left":"4px"},"selectors":["%WRAPPER% #respond .rating-form input:not([type=submit]):not([type=checkbox]):not([type=radio])","%WRAPPER% #respond .rating-form textarea, #respond .rating-form select"],"control":{"type":"spacing","style":"borderRadius","controlAttribute":{"units":[{"unit":"px","min":0,"max":100},{"unit":"%","min":0,"max":100}]}},"panel":"-input-"},"inputPadding":{"type":"object","label":"Padding","default":{"top":"","right":"","bottom":"","left":""},"selectors":["%WRAPPER% #respond .rating-form input:not([type=submit]):not([type=checkbox]):not([type=radio])","%WRAPPER% #respond .rating-form textarea, #respond .rating-form select"],"control":{"type":"spacing","style":"padding"},"panel":"-input-"},"buttonTypography":{"type":"object","label":"Typography","default":{},"selectors":"%WRAPPER% #respond input[type=\'submit\']","control":{"type":"typography"},"panel":"-buttons-"},"buttonLabel":{"type":"string","label":"Button Label","default":"Submit","control":{"type":"text"},"panel":"-buttons-"},"btnColor":{"type":"object","label":"Text Color","default":{"initial":"#ffffff","hover":"#ffffff"},"selectors":"%WRAPPER% #respond input[type=\'submit\']","control":{"type":"color","labels":{"initial":{"label":"Initial","style":"color"},"hover":{"label":"Hover","style":"color:hover"}}},"panel":"-buttons-"},"btnbgColor":{"type":"object","label":"Background","default":{"initial":"#147DFE","hover":"#147DFE"},"selectors":"%WRAPPER% #respond input[type=\'submit\']","control":{"type":"color","labels":{"initial":{"label":"Initial","style":"background"},"hover":{"label":"Hover","style":"background:hover"}}},"panel":"-buttons-"},"buttonAlignment":{"type":"string","label":"Alignment","panel":"-buttons-","selectors":"%WRAPPER% #respond .rating-form .form-submit","control":{"type":"alignment","style":"text-align"},"default":"left"},"fullWidth":{"type":"boolean","label":"Full Width","default":false,"control":{"type":"switch"},"panel":"-buttons-"},"buttonBorder":{"type":"object","label":"Border","default":{"width":"1","style":"none","color":"#000000"},"selectors":"%WRAPPER% #respond input[type=\'submit\']","control":{"type":"border"},"panel":"-buttons-"},"buttonBorderRadius":{"type":"object","label":"Border Radius","default":{"top":"4px","right":"4px","bottom":"4px","left":"4px"},"selectors":"%WRAPPER% #respond input[type=\'submit\']","control":{"type":"spacing","style":"borderRadius","controlAttribute":{"units":[{"unit":"px","min":0,"max":100},{"unit":"%","min":0,"max":100}]}},"panel":"-buttons-"},"buttonPadding":{"type":"object","label":"Padding","default":{"top":"","right":"","bottom":"","left":""},"selectors":"%WRAPPER% #respond input[type=\'submit\']","control":{"type":"spacing","style":"padding"},"panel":"-buttons-"},"ratedStarColor":{"type":"string","label":"Star Color","default":"#F39C12","selectors":"%WRAPPER% .jq-ry-container > .jq-ry-group-wrapper > .jq-ry-group > svg","control":{"type":"color","style":"fill"},"panel":"-star-"},"iconColor":{"type":"string","label":"Icon Color","default":"#147DFE","selectors":["%WRAPPER% .rating-form .dropzone .dz-button .file-upload-icon svg path","%WRAPPER% .dropzone .dz-button .file-upload-icon svg path"],"control":{"type":"color","style":"fill"},"panel":"-uploader-"},"iconSize":{"type":"string","label":"Icon Size","panel":"-uploader-","default":"44px","control":{"type":"range","style":"font-size","controlAttribute":{"units":[{"unit":"px","min":1,"max":100},{"unit":"em","min":1,"max":10},{"unit":"rem","min":1,"max":10}]}},"selectors":"%WRAPPER% .rating-form .dropzone .dz-button .file-upload-icon svg"},"dropzoneBorder":{"type":"object","label":"Border","default":{"width":"1","style":"dashed","color":"#1a84ee"},"selectors":"%WRAPPER% .rating-form .dropzone.input-review-images","control":{"type":"border"},"panel":"-uploader-"},"dropzoneBorderRadius":{"type":"object","label":"Border Radius","default":{"top":"4px","right":"4px","bottom":"4px","left":"4px"},"selectors":"%WRAPPER% .rating-form .dropzone.input-review-images","control":{"type":"spacing","style":"borderRadius","controlAttribute":{"units":[{"unit":"px","min":0,"max":100},{"unit":"%","min":0,"max":100}]}},"panel":"-uploader-"}},"supports":{"align":false,"wptravelenginetripblocks":{"panels":{"-star-":{"title":"Star"},"-input-":{"title":"Input"},"-buttons-":{"title":"Button"},"-uploader-":{"title":"Uploader"},"-form-":{"title":"Form"},"-label-":{"title":"Label"}}}},"textdomain":"wptravelengine","render":"file:./block.php"}')},3153:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});const o=[{label:"Thin",value:"100"},{label:"Extra Light",value:"200"},{label:"Light",value:"300"},{label:"Normal",value:"400"},{label:"Medium",value:"500"},{label:"Semi Bold",value:"600"},{label:"Bold",value:"700"},{label:"Extra Bold",value:"800"},{label:"Black",value:"900"}]},3210:(e,t,r)=>{"use strict";r(1609);var o=r(9815);r(5871),r(3627),o.A.div`
display: flex;
flex-wrap: wrap;
gap: 8px;
padding: 16px 0;
`},3318:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var o=r(222),n=r(8979),a=r(5581),i=r(6233);function l(e){return e!==(0,n.A)(e)&&(0,a.sb)(e)?(0,i.A)(e):(0,o.A)(e)}},3340:(e,t,r)=>{"use strict";r(1609),r(6427),r(9643),r(6087),r(8111),r(6154)},3341:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var o=r(9970),n=r(2083),a=r(8979),i=r(134);function l(e,t){var r;void 0===t&&(t=[]);var s=(0,o.A)(e),c=s===(null==(r=e.ownerDocument)?void 0:r.body),d=(0,a.A)(s),p=c?[d].concat(d.visualViewport||[],(0,i.A)(s)?s:[]):s,u=t.concat(p);return c?u:u.concat(l((0,n.A)(p)))}},3424:(e,t,r)=>{"use strict";r.d(t,{UD:()=>b});var o=r(7310),n=r(6979),a=r(3341),i=r(5128),l=r(1206),s=r(571),c=r(844),d=r(5581),p={placement:"bottom",modifiers:[],strategy:"absolute"};function u(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function b(e){void 0===e&&(e={});var t=e,r=t.defaultModifiers,b=void 0===r?[]:r,g=t.defaultOptions,f=void 0===g?p:g;return function(e,t,r){void 0===r&&(r=f);var g={placement:"bottom",orderedModifiers:[],options:Object.assign({},p,f),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},m=[],h=!1,y={state:g,setOptions:function(r){var o="function"==typeof r?r(g.options):r;v(),g.options=Object.assign({},f,g.options,o),g.scrollParents={reference:(0,d.vq)(e)?(0,a.A)(e):e.contextElement?(0,a.A)(e.contextElement):[],popper:(0,a.A)(t)};var n=(0,l.A)((0,c.A)([].concat(b,g.options.modifiers)));return g.orderedModifiers=n.filter((function(e){return e.enabled})),g.orderedModifiers.forEach((function(e){var t=e.name,r=e.options,o=void 0===r?{}:r,n=e.effect;if("function"==typeof n){var a=n({state:g,name:t,instance:y,options:o});m.push(a||function(){})}})),y.update()},forceUpdate:function(){if(!h){var e=g.elements,t=e.reference,r=e.popper;if(u(t,r)){g.rects={reference:(0,o.A)(t,(0,i.A)(r),"fixed"===g.options.strategy),popper:(0,n.A)(r)},g.reset=!1,g.placement=g.options.placement,g.orderedModifiers.forEach((function(e){return g.modifiersData[e.name]=Object.assign({},e.data)}));for(var a=0;a<g.orderedModifiers.length;a++)if(!0!==g.reset){var l=g.orderedModifiers[a],s=l.fn,c=l.options,d=void 0===c?{}:c,p=l.name;"function"==typeof s&&(g=s({state:g,options:d,name:p,instance:y})||g)}else g.reset=!1,a=-1}}},update:(0,s.A)((function(){return new Promise((function(e){y.forceUpdate(),e(g)}))})),destroy:function(){v(),h=!0}};if(!u(e,t))return y;function v(){m.forEach((function(e){return e()})),m=[]}return y.setOptions(r).then((function(e){!h&&r.onFirstUpdate&&r.onFirstUpdate(e)})),y}}},3582:e=>{"use strict";e.exports=window.wp.coreData},3627:(e,t,r)=>{"use strict";r.d(t,{JR:()=>E,be:()=>l,gB:()=>b,gl:()=>w});var o=r(1609),n=r.n(o),a=r(5871),i=r(4979);function l(e,t,r){const o=e.slice();return o.splice(r<0?o.length+r:r,0,o.splice(t,1)[0]),o}function s(e,t){return e.reduce(((e,r,o)=>{const n=t.get(r);return n&&(e[o]=n),e}),Array(e.length))}function c(e){return null!==e&&e>=0}const d=e=>{let{rects:t,activeIndex:r,overIndex:o,index:n}=e;const a=l(t,o,r),i=t[n],s=a[n];return s&&i?{x:s.left-i.left,y:s.top-i.top,scaleX:s.width/i.width,scaleY:s.height/i.height}:null},p="Sortable",u=n().createContext({activeIndex:-1,containerId:p,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:d,disabled:{draggable:!1,droppable:!1}});function b(e){let{children:t,id:r,items:l,strategy:c=d,disabled:b=!1}=e;const{active:g,dragOverlay:f,droppableRects:m,over:h,measureDroppableContainers:y}=(0,a.fF)(),v=(0,i.YG)(p,r),w=Boolean(null!==f.rect),x=(0,o.useMemo)((()=>l.map((e=>"object"==typeof e&&"id"in e?e.id:e))),[l]),k=null!=g,E=g?x.indexOf(g.id):-1,R=h?x.indexOf(h.id):-1,A=(0,o.useRef)(x),_=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}(x,A.current),C=-1!==R&&-1===E||_,P=function(e){return"boolean"==typeof e?{draggable:e,droppable:e}:e}(b);(0,i.Es)((()=>{_&&k&&y(x)}),[_,x,k,y]),(0,o.useEffect)((()=>{A.current=x}),[x]);const S=(0,o.useMemo)((()=>({activeIndex:E,containerId:v,disabled:P,disableTransforms:C,items:x,overIndex:R,useDragOverlay:w,sortedRects:s(x,m),strategy:c})),[E,v,P.draggable,P.droppable,C,x,R,m,w,c]);return n().createElement(u.Provider,{value:S},t)}const g=e=>{let{id:t,items:r,activeIndex:o,overIndex:n}=e;return l(r,o,n).indexOf(t)},f=e=>{let{containerId:t,isSorting:r,wasDragging:o,index:n,items:a,newIndex:i,previousItems:l,previousContainerId:s,transition:c}=e;return!(!c||!o||l!==a&&n===i||!r&&(i===n||t!==s))},m={duration:200,easing:"ease"},h="transform",y=i.Ks.Transition.toString({property:h,duration:0,easing:"linear"}),v={roleDescription:"sortable"};function w(e){let{animateLayoutChanges:t=f,attributes:r,disabled:n,data:l,getNewIndex:s=g,id:d,strategy:p,resizeObserverConfig:b,transition:w=m}=e;const{items:x,containerId:k,activeIndex:E,disabled:R,disableTransforms:A,sortedRects:_,overIndex:C,useDragOverlay:P,strategy:S}=(0,o.useContext)(u),B=function(e,t){var r,o;return"boolean"==typeof e?{draggable:e,droppable:!1}:{draggable:null!=(r=null==e?void 0:e.draggable)?r:t.draggable,droppable:null!=(o=null==e?void 0:e.droppable)?o:t.droppable}}(n,R),W=x.indexOf(d),j=(0,o.useMemo)((()=>({sortable:{containerId:k,index:W,items:x},...l})),[k,l,W,x]),T=(0,o.useMemo)((()=>x.slice(x.indexOf(d))),[x,d]),{rect:L,node:D,isOver:O,setNodeRef:M}=(0,a.zM)({id:d,data:j,disabled:B.droppable,resizeObserverConfig:{updateMeasurementsFor:T,...b}}),{active:N,activatorEvent:I,activeNodeRect:z,attributes:H,setNodeRef:$,listeners:F,isDragging:V,over:q,setActivatorNodeRef:Y,transform:Z}=(0,a.PM)({id:d,data:j,attributes:{...v,...r},disabled:B.draggable}),G=(0,i.jn)(M,$),U=Boolean(N),J=U&&!A&&c(E)&&c(C),K=!P&&V,X=K&&J?Z:null,Q=J?null!=X?X:(null!=p?p:S)({rects:_,activeNodeRect:z,activeIndex:E,overIndex:C,index:W}):null,ee=c(E)&&c(C)?s({id:d,items:x,activeIndex:E,overIndex:C}):W,te=null==N?void 0:N.id,re=(0,o.useRef)({activeId:te,items:x,newIndex:ee,containerId:k}),oe=x!==re.current.items,ne=t({active:N,containerId:k,isDragging:V,isSorting:U,id:d,index:W,items:x,newIndex:re.current.newIndex,previousItems:re.current.items,previousContainerId:re.current.containerId,transition:w,wasDragging:null!=re.current.activeId}),ae=function(e){let{disabled:t,index:r,node:n,rect:l}=e;const[s,c]=(0,o.useState)(null),d=(0,o.useRef)(r);return(0,i.Es)((()=>{if(!t&&r!==d.current&&n.current){const e=l.current;if(e){const t=(0,a.Sj)(n.current,{ignoreTransform:!0}),r={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(r.x||r.y)&&c(r)}}r!==d.current&&(d.current=r)}),[t,r,n,l]),(0,o.useEffect)((()=>{s&&c(null)}),[s]),s}({disabled:!ne,index:W,node:D,rect:L});return(0,o.useEffect)((()=>{U&&re.current.newIndex!==ee&&(re.current.newIndex=ee),k!==re.current.containerId&&(re.current.containerId=k),x!==re.current.items&&(re.current.items=x)}),[U,ee,k,x]),(0,o.useEffect)((()=>{if(te===re.current.activeId)return;if(te&&!re.current.activeId)return void(re.current.activeId=te);const e=setTimeout((()=>{re.current.activeId=te}),50);return()=>clearTimeout(e)}),[te]),{active:N,activeIndex:E,attributes:H,data:j,rect:L,index:W,newIndex:ee,items:x,isOver:O,isSorting:U,isDragging:V,listeners:F,node:D,overIndex:C,over:q,setNodeRef:G,setActivatorNodeRef:Y,setDroppableNodeRef:M,setDraggableNodeRef:$,transform:null!=ae?ae:Q,transition:ae||oe&&re.current.newIndex===W?y:K&&!(0,i.kx)(I)||!w?void 0:U||ne?i.Ks.Transition.toString({...w,property:h}):void 0}}function x(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&"object"==typeof t.sortable&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const k=[a.vL.Down,a.vL.Right,a.vL.Up,a.vL.Left],E=(e,t)=>{let{context:{active:r,collisionRect:o,droppableRects:n,droppableContainers:l,over:s,scrollableAncestors:c}}=t;if(k.includes(e.code)){if(e.preventDefault(),!r||!o)return;const t=[];l.getEnabled().forEach((r=>{if(!r||null!=r&&r.disabled)return;const i=n.get(r.id);if(i)switch(e.code){case a.vL.Down:o.top<i.top&&t.push(r);break;case a.vL.Up:o.top>i.top&&t.push(r);break;case a.vL.Left:o.left>i.left&&t.push(r);break;case a.vL.Right:o.left<i.left&&t.push(r)}}));const u=(0,a.y$)({active:r,collisionRect:o,droppableRects:n,droppableContainers:t,pointerCoordinates:null});let b=(0,a.Vy)(u,"id");if(b===(null==s?void 0:s.id)&&u.length>1&&(b=u[1].id),null!=b){const e=l.get(r.id),t=l.get(b),s=t?n.get(t.id):null,u=null==t?void 0:t.node.current;if(u&&s&&e&&t){const r=(0,a.sl)(u).some(((e,t)=>c[t]!==e)),n=R(e,t),l=(p=t,!(!x(d=e)||!x(p))&&!!R(d,p)&&d.data.current.sortable.index<p.data.current.sortable.index),b=r||!n?{x:0,y:0}:{x:l?o.width-s.width:0,y:l?o.height-s.height:0},g={x:s.left,y:s.top};return b.x&&b.y?g:(0,i.Re)(g,b)}}}var d,p};function R(e,t){return!(!x(e)||!x(t))&&e.data.current.sortable.containerId===t.data.current.sortable.containerId}},3704:(e,t,r)=>{"use strict";r.r(t),r.d(t,{edit:()=>s,metadata:()=>c});var o=r(1609),n=r(4871),a=r.n(n),i=r(4715),l=r(8504);const s=(...e)=>{const t=e[0],{attributes:r,setAttributes:n}=t,s=(0,i.useBlockProps)();return(0,o.createElement)("div",{...s},(0,o.createElement)(a(),{block:"wptravelenginetripblocks/reviews-count",attributes:{...r,editor:!0}}),(0,o.createElement)(l.s,{group:"styles",...t}))},c=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"wptravelenginetripblocks/reviews-count","version":"1.0.0","title":"Reviews Count","category":"widgets","icon":"editor-ol","description":"Showcase the volume of positive reviews you\'ve received to increase social proof.","script":[],"attributes":{"textColor":{"type":"string","default":"rgba(6, 22, 38, 0.4)","selectors":["%WRAPPER% .trip-rating-count","%WRAPPER% .trip-rating-count-number"]},"alignment":{"type":"string","label":"Alignment","panel":"-reviewcount-","default":"center","control":{"type":"alignment","style":"text-align"},"selectors":"%WRAPPER% .trip-rating-count-container"},"typography":{"type":"object","default":{"size":{"desktop":"14px","tablet":"14px","mobile":"14px"}}},"ratingCount":{"type":"string","label":"Rating Count","default":"Based on %rating_count% travel reviews","control":{"type":"text","help":"Available Tag: %rating_count%"},"panel":"-display-"}},"supports":{"align":false,"wptravelenginetripblocks":{"colors":{"background":true,"text":true,"link":false},"panels":{"-reviewcount-":{"title":"Review Count","icon":"admin-site-alt2"},"-display-":{"title":"Display","icon":"admin-site-alt2"}}}},"textdomain":"wptravelengine","render":"file:./block.php"}')},3716:(e,t,r)=>{"use strict";r.d(t,{wE:()=>i});var o=r(4534),n=r(9735),a=r(390);function i(e){return(0,a.VF)(l("",null,null,null,[""],e=(0,a.c4)(e),0,[0],e))}function l(e,t,r,o,i,p,u,b,g){for(var f=0,m=0,h=u,y=0,v=0,w=0,x=1,k=1,E=1,R=0,A="",_=i,C=p,P=o,S=A;k;)switch(w=R,R=(0,a.K2)()){case 40:if(108!=w&&58==(0,n.wN)(S,h-1)){-1!=(0,n.K5)(S+=(0,n.HC)((0,a.Tb)(R),"&","&\f"),"&\f")&&(E=-1);break}case 34:case 39:case 91:S+=(0,a.Tb)(R);break;case 9:case 10:case 13:case 32:S+=(0,a.mw)(w);break;case 92:S+=(0,a.Nc)((0,a.OW)()-1,7);continue;case 47:switch((0,a.se)()){case 42:case 47:(0,n.BC)(c((0,a.nf)((0,a.K2)(),(0,a.OW)()),t,r),g);break;default:S+="/"}break;case 123*x:b[f++]=(0,n.b2)(S)*E;case 125*x:case 59:case 0:switch(R){case 0:case 125:k=0;case 59+m:-1==E&&(S=(0,n.HC)(S,/\f/g,"")),v>0&&(0,n.b2)(S)-h&&(0,n.BC)(v>32?d(S+";",o,r,h-1):d((0,n.HC)(S," ","")+";",o,r,h-2),g);break;case 59:S+=";";default:if((0,n.BC)(P=s(S,t,r,f,m,i,b,A,_=[],C=[],h),p),123===R)if(0===m)l(S,t,P,P,_,p,h,b,C);else switch(99===y&&110===(0,n.wN)(S,3)?100:y){case 100:case 108:case 109:case 115:l(e,P,P,o&&(0,n.BC)(s(e,P,P,0,0,i,b,A,i,_=[],h),C),i,C,h,b,o?_:C);break;default:l(S,P,P,P,[""],C,0,b,C)}}f=m=v=0,x=E=1,A=S="",h=u;break;case 58:h=1+(0,n.b2)(S),v=w;default:if(x<1)if(123==R)--x;else if(125==R&&0==x++&&125==(0,a.YL)())continue;switch(S+=(0,n.HT)(R),R*x){case 38:E=m>0?1:(S+="\f",-1);break;case 44:b[f++]=((0,n.b2)(S)-1)*E,E=1;break;case 64:45===(0,a.se)()&&(S+=(0,a.Tb)((0,a.K2)())),y=(0,a.se)(),m=h=(0,n.b2)(A=S+=(0,a.Cv)((0,a.OW)())),R++;break;case 45:45===w&&2==(0,n.b2)(S)&&(x=0)}}return p}function s(e,t,r,i,l,s,c,d,p,u,b){for(var g=l-1,f=0===l?s:[""],m=(0,n.FK)(f),h=0,y=0,v=0;h<i;++h)for(var w=0,x=(0,n.c1)(e,g+1,g=(0,n.tn)(y=c[h])),k=e;w<m;++w)(k=(0,n.Bq)(y>0?f[w]+" "+x:(0,n.HC)(x,/&\f/g,f[w])))&&(p[v++]=k);return(0,a.rH)(e,t,r,0===l?o.XZ:d,p,u,b)}function c(e,t,r){return(0,a.rH)(e,t,r,o.YK,(0,n.HT)((0,a.Tp)()),(0,n.c1)(e,2,-2),0)}function d(e,t,r,i){return(0,a.rH)(e,t,r,o.LU,(0,n.c1)(e,0,i),(0,n.c1)(e,i+1,-1),i)}},3776:(e,t,r)=>{"use strict";r(1609);var o=r(9815);r(9643),r(8111),r(4232),o.A.div`
padding: 10.5px 10px;
border: 1px solid var(--cw__border-color);
border-radius: var(--cw__border-radius);
color: #2B3034;
font-size: 14px;
&:focus{
border-color: var(--cw__secondary-color);
}
.cw__ratio-input{
span{
&:not(:last-of-type){
border-right: 1px solid var(--cw__border-color);
padding-right: 6px;
margin-right: 6px;
}
}
}
`,o.A.div`
display: flex;
align-items: center;
gap: 8px;
.cw__control-item{
margin: 0 !important;
padding: 0 !important;
}
`},3777:(e,t,r)=>{"use strict";r.r(t),r.d(t,{edit:()=>s,metadata:()=>c});var o=r(1609),n=(r(7723),r(4715)),a=r(4871),i=r.n(a),l=r(8504);const s=(...e)=>{const t=e[0],{attributes:r,setAttributes:a}=t,s=(0,n.useBlockProps)();return(0,o.createElement)("div",{...s},(0,o.createElement)(i(),{block:"wptravelenginetripblocks/trip-facts",attributes:{...r,editor:!0}}),(0,o.createElement)(l.s,{group:"styles",...t}))},c=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"wptravelenginetripblocks/trip-facts","version":"1.0.0","title":"Trip Facts","icon":"list-view","description":"Showcase key details like trip type, meals, and transportation visually appealingly.","category":"widgets","example":{},"script":[],"attributes":{"padding":{"type":"object","selectors":"%WRAPPER% .secondary-trip-info"},"margin":{"type":"object","selectors":"%WRAPPER% .secondary-trip-info"},"border":{"type":"object","selectors":"%WRAPPER% .secondary-trip-info"},"background":{"type":"string","selectors":"%WRAPPER% .secondary-trip-info","default":"#ffffff"},"textColor":{"type":"string","default":"#000000"},"borderRadius":{"type":"object","selectors":"%WRAPPER% .secondary-trip-info"},"boxShadow":{"type":"object","selectors":"%WRAPPER% .secondary-trip-info"},"verticalAlignment":{"type":"string","label":"Vertical Alignment","default":"top","selectors":"%WRAPPER% .trip-facts-value .icon-holder","control":{"type":"select","controlAttribute":{"options":[{"value":"top","label":"Top"},{"value":"center","label":"Center"},{"value":"bottom","label":"Bottom"}],"direction":"horizontal"}},"panel":"-tripfacts-"},"alignment":{"type":"string","label":"Alignment","panel":"-tripfacts-","control":{"type":"alignment","style":"text-align"},"default":"left","selectors":"%WRAPPER% .trip-facts-value"},"showIcon":{"type":"boolean","label":"Show Icon","default":true,"control":{"type":"switch"},"panel":"-factsicon-"},"columns":{"type":"number","label":"Columns","default":3,"control":{"type":"input-number","controlAttribute":{"min":1,"max":4}},"panel":"-tripfacts-"},"factsTitleTypography":{"type":"object","label":"Typography","panel":"-factstitle-","default":{},"selectors":"%WRAPPER% .trip-facts-value li label","control":{"type":"typography"}},"factsTitleColor":{"type":"string","label":"Color","default":"#0000008F","selectors":"%WRAPPER% .trip-facts-value li label","control":{"type":"color","style":"color"},"panel":"-factstitle-"},"typography":{"type":"object","selectors":"%WRAPPER% .trip-facts-text .value"},"iconColor":{"type":"string","label":"Icon Color","default":"#0056F6","selectors":"%WRAPPER% .trip-facts-value .icon-holder","control":{"type":"color","style":"color"},"panel":"-factsicon-"},"iconFontSize":{"type":"string","label":"Icon Size","panel":"-factsicon-","selectors":"%WRAPPER% .trip-facts-value .icon-holder","default":"16px","control":{"type":"range","style":"font-size","controlAttribute":{"units":[{"unit":"px","min":1,"max":50},{"unit":"em","min":1,"max":8},{"unit":"rem","min":1,"max":8}]}}},"iconPosition":{"type":"string","label":"Icon Position","default":"left","selectors":"%WRAPPER% .trip-facts-value .icon-holder","control":{"type":"select","controlAttribute":{"options":[{"value":"left","label":"Left"},{"value":"top","label":"Top"},{"value":"right","label":"Right"}],"direction":"horizontal"}},"panel":"-factsicon-"}},"supports":{"align":false,"wptravelenginetripblocks":{"colors":{"link":false},"border":true,"spacing":{"padding":true,"margin":true},"panels":{"-tripfacts-":{"title":"Trip Facts"},"-factstitle-":{"title":"Title"},"-factscontent-":{"title":"Content"},"-factsicon-":{"title":"Icon"}}}},"textdomain":"wptravelengine","render":"file:./block.php"}')},3842:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var o=r(1609),n=r(6427),a=r(7143),i=r(4232),l=r(8468),s=r(3153);function c({header:e,title:t,...r}){const c=(0,a.useSelect)((e=>e("core/block-editor").getSettings().colors)),{initialOpen:d,controls:p,children:u,attributes:b,setAttributes:g}=r;return(0,o.createElement)(n.Panel,{header:e||null},(0,o.createElement)(n.PanelBody,{title:t,initialOpen:d},p.map((([e,t],r)=>{const{type:n,default:a,label:d,control:{labels:u,type:f,style:m,settings:h,controlAttribute:y,...v}}=t;switch(f){case"background":case"color":const t=Object.entries(u||{[e]:d}).map((([e,t])=>({name:e,title:(0,l.isString)(t)?t:t.label,colorPalette:c}))),f=(0,l.isString)(b[e])?{[e]:b[e]}:b[e];return(0,o.createElement)(i.lt,{key:r,label:d,direction:y?.direction||"horizontal",colors:t,defaultValue:a,onChange:t=>{g("object"===n?{[e]:t}:t)},value:f,divider:e!==p[0][0]?"top":""});case"border":return(0,o.createElement)(i.VH,{key:r,label:d,defaultValue:a,colorPalette:c,onChange:t=>{g({[e]:t})},value:b[e],divider:e!==p[0][0]?"top":"",...v});case"box-shadow":return(0,o.createElement)(i.yb,{key:r,label:d,defaultValue:a,onChange:t=>{g({[e]:t})},value:b[e],divider:e!==p[0][0]?"top":"",...v});case"border-radius":case"spacing":return(0,o.createElement)(i.Kz,{key:r,label:d,onChange:t=>{g({[e]:t})},value:b[e],divider:e!==p[0][0]?"top":"",...y});case"typography":return(0,o.createElement)(i.o5,{key:r,label:d,value:b[e],onChange:t=>g({[e]:t}),divider:e!==p[0][0]?"top":"",fontWeights:s.A,...y});case"alignment":return(0,o.createElement)(i.eA,{key:r,label:d,value:b[e],onChange:t=>g({[e]:t}),options:[{value:y?.flex?"flex-start":"left",icon:i.FI.leftAlignment,title:"Left"},{value:"center",icon:i.FI.centerAlignment,title:"Center"},{value:y?.flex?"flex-end":"right",icon:i.FI.rightAlignment,title:"Right"}],divider:e!==p[0][0]?"top":"",...y});case"range":return(0,o.createElement)(i.F1,{key:r,label:d,onChange:t=>g({[e]:t}),value:b[e],divider:e!==p[0][0]?"top":"",...y});case"select":return(0,o.createElement)(i.l6,{key:r,label:d,onChange:t=>g({[e]:t}),value:b[e],divider:e!==p[0][0]?"top":"",...y});case"text":return(0,o.createElement)(i.EY,{key:r,label:d,onChange:t=>g({[e]:t}),value:b[e],divider:e!==p[0][0]?"top":"",...y});case"textarea":return(0,o.createElement)(i.TM,{key:r,label:d,onChange:t=>g({[e]:t}),value:b[e],divider:e!==p[0][0]?"top":"",...y});case"switch":return(0,o.createElement)(i.dO,{key:r,label:d,onChange:t=>g({[e]:t}),value:b[e],divider:e!==p[0][0]?"top":"",...y});case"select-button":return(0,o.createElement)(i.eA,{key:r,label:d,value:b[e],onChange:t=>g({[e]:t}),divider:e!==p[0][0]?"top":"",...y});case"input-number":return(0,o.createElement)(i.YI,{key:r,label:d,value:b[e],onChange:t=>g({[e]:t}),divider:e!==p[0][0]?"top":"",...y});case"token-field":return(0,o.createElement)(i.gs,{key:r,label:d,value:b[e],onChange:t=>g({[e]:t}),divider:e!==p[0][0]?"top":"",...y})}}))),u)}},3969:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var o={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}},4212:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var o=r(1609),n=r(8111);const a=({onChange:e,...t})=>(0,o.createElement)("input",{type:"text",onChange:t=>e(t.target.value),...t}),i=e=>(0,n.A)(a)(e)},4232:(e,t,r)=>{"use strict";r.d(t,{EY:()=>n.A,F1:()=>s.A,FI:()=>h.A,Kz:()=>p.A,S5:()=>c.A,TM:()=>a.A,VH:()=>b.A,YI:()=>u.A,dO:()=>i.A,eA:()=>l.A,gs:()=>m.A,l6:()=>o.A,lt:()=>d.A,o5:()=>f.A,yb:()=>g.A});var o=r(9381),n=r(4212),a=r(5271),i=r(4857),l=r(8225),s=r(6609),c=r(6711),d=r(312),p=(r(8075),r(7725),r(5846)),u=(r(7720),r(3340),r(5314)),b=r(707),g=r(9330),f=r(7146),m=(r(8376),r(7793),r(907),r(5476),r(7278),r(9270),r(6406),r(3776),r(3210),r(7491),r(9785),r(7855),r(7388)),h=(r(8123),r(1266))},4238:(e,t,r)=>{"use strict";r.r(t),r.d(t,{edit:()=>s,metadata:()=>c});var o=r(1609),n=(r(7723),r(4715)),a=r(8504),i=r(7143),l=r(3582);const s=(...e)=>{const t=e[0],{attributes:r,setAttributes:s,context:{commentId:c}}=t,{border:d,borderRadius:p,boxShadow:u,margin:b,padding:g,background:f}=r,m=["position","xOffset","yOffset","blur","spread","color"].map((e=>{var t,r;if("position"===e)return"inset"!==u[e]?"":"inset";if("color"===e)return null!==(r=u[e])&&void 0!==r?r:"";const o=null!==(t=u[e])&&void 0!==t?t:"";return""!==o?o:0})).join(" "),h=(0,n.useBlockProps)();let y=(0,i.useSelect)((e=>{const{getEntityRecord:t}=e(l.store),r=t("root","comment",c),o=r?.images,n=wptravelengineTripBlocks.images;return o&&0!==o.length?o:n}),[c]);return(0,o.createElement)("div",{...h,style:{border:d?`${d.width||0}px ${d.style||"solid"} ${d.color||"transparent"}`:"none",borderRadius:p?`${p.top||0} ${p.right||0} ${p.bottom||0} ${p.left||0}`:"none",boxShadow:u?.enable?m:"none",paddingTop:g.top,paddingBottom:g.bottom,paddingLeft:g.left,paddingRight:g.right,marginTop:b.top,marginBottom:b.bottom,marginLeft:b.left,marginRight:b.right,background:f||""}},y&&(0,o.createElement)("figure",{className:"trip-block-review-gallery",style:{gap:r.imageGap}},y.map(((e,t)=>(0,o.createElement)("figure",{className:"trip-block-review-image",key:t,style:{maxWidth:r.imageWidth,flexBasis:r.imageWidth,height:r.imageHeight,borderRadius:r.imageRoundness}},(0,o.createElement)("img",{src:e.thumbnail,alt:""}))))),(0,o.createElement)(a.s,{group:"styles",...t}))},c=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"wptravelenginetripblocks/review-gallery","version":"1.0.0","title":"Review Gallery","category":"widgets","icon":"gallery","description":"Reviews","usesContext":["commentId"],"ancestor":["core/comments"],"attributes":{"imageGap":{"type":"string","label":"Image Gap","panel":"-gallery-","default":"6px","control":{"type":"range","style":"gap","controlAttribute":{"units":[{"unit":"px","min":1,"max":50},{"unit":"em","min":1,"max":10},{"unit":"rem","min":1,"max":10}]}},"selectors":"%WRAPPER% .trip-block-review-gallery"},"imageRoundness":{"type":"string","label":"Image Roundness","panel":"-gallery-","default":"2px","control":{"type":"range","style":"border-radius","controlAttribute":{"units":[{"unit":"px","min":0,"max":100},{"unit":"%","min":0,"max":100}]}},"selectors":"%WRAPPER% .trip-block-review-image"},"imageHeight":{"type":"string","label":"Image Height","panel":"-gallery-","default":"56px","control":{"type":"range","style":"height","controlAttribute":{"units":[{"unit":"px","min":1,"max":500},{"unit":"%","min":1,"max":100}]}},"selectors":"%WRAPPER% .trip-block-review-image"},"imageWidth":{"type":"string","label":"Image Width","panel":"-gallery-","default":"90px","control":{"type":"range","style":"max-width","controlAttribute":{"units":[{"unit":"px","min":1,"max":500},{"unit":"%","min":1,"max":100}]}},"selectors":"%WRAPPER% .trip-block-review-image"}},"supports":{"align":false,"wptravelenginetripblocks":{"colors":{"textColor":false,"link":false},"panels":{"-gallery-":{"title":"Gallery"}}}},"textdomain":"wptravelengine","render":"file:./block.php"}')},4278:(e,t,r)=>{"use strict";r.d(t,{DD:()=>m,GM:()=>h,Mn:()=>o,OM:()=>s,Ol:()=>f,R9:()=>u,WY:()=>p,_N:()=>d,ir:()=>g,kb:()=>i,ni:()=>c,pG:()=>a,qZ:()=>l,sQ:()=>n,xf:()=>b});var o="top",n="bottom",a="right",i="left",l="auto",s=[o,n,a,i],c="start",d="end",p="clippingParents",u="viewport",b="popper",g="reference",f=s.reduce((function(e,t){return e.concat([t+"-"+c,t+"-"+d])}),[]),m=[].concat(s,[l]).reduce((function(e,t){return e.concat([t,t+"-"+c,t+"-"+d])}),[]),h=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"]},4318:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var o=r(7364);function n(e){return Object.assign({},(0,o.A)(),e)}},4324:(e,t,r)=>{"use strict";r(1609),r(9815).A.div`
padding: 8px 16px;
font-size: 12px;
color: #717578;
background-color: #F6F6F6;
`},4426:(e,t,r)=>{"use strict";function o(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}r.d(t,{A:()=>o})},4470:(e,t,r)=>{"use strict";r.r(t),r.d(t,{edit:()=>s,metadata:()=>c});var o=r(1609),n=r(4715),a=r(4871),i=r.n(a),l=(r(7723),r(8504));const s=(...e)=>{const t=e[0],{attributes:r}=t,a=(0,n.useBlockProps)();return(0,o.createElement)("div",{...a},(0,o.createElement)(i(),{block:"wptravelenginetripblocks/trip-discount-badge",attributes:{...r,editor:!0}}),(0,o.createElement)(l.s,{group:"styles",...t}))},c=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"wptravelenginetripblocks/trip-discount-badge","version":"1.0.0","title":"Trip Discount Badge","category":"widgets","icon":"money-alt","description":"Prompt visitors to add discount badge.","attributes":{"typography":{"type":"object","selectors":"%WRAPPER% .wpte-bf-discount-tag"},"textColor":{"type":"string","default":"#fff","selectors":"%WRAPPER% .wpte-bf-discount-tag"},"background":{"type":"string","default":"#ea7810","selectors":"%WRAPPER% .wpte-bf-discount-tag"},"border":{"type":"object","selectors":"%WRAPPER% .wpte-bf-discount-tag"},"boxShadow":{"type":"object","selectors":"%WRAPPER% .wpte-bf-discount-tag"},"padding":{"type":"object","default":{"top":"5.5px","right":"10px","bottom":"5.5px","left":"10px"},"selectors":"%WRAPPER% .wpte-bf-discount-tag"},"borderRadius":{"type":"object","default":{"top":"14px","right":"14px","bottom":"14px","left":"14px"},"selectors":"%WRAPPER% .wpte-bf-discount-tag"},"discountLabel":{"type":"string","default":"%discount_percentage% Off","control":{"type":"text","description":"Add %discount_percentage% to display discount percentage."},"panel":"-discount-"},"alignment":{"type":"string","default":"left","label":"Alignment","control":{"type":"alignment","style":"text-align"},"selectors":"%WRAPPER%","panel":"-discount-"}},"supports":{"align":false,"wptravelenginetripblocks":{"colors":{"link":false},"border":true,"spacing":{"margin":true,"padding":true},"panels":{"-discount-":{"title":"Label"}}}},"textdomain":"wptravelengine","render":"file:./block.php"}')},4504:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>V});var o=r(1576),n=r(6607),a="tippy-content",i="tippy-arrow",l="tippy-svg-arrow",s={passive:!0,capture:!0},c=function(){return document.body};function d(e,t,r){if(Array.isArray(e)){var o=e[t];return null==o?Array.isArray(r)?r[t]:r:o}return e}function p(e,t){var r={}.toString.call(e);return 0===r.indexOf("[object")&&r.indexOf(t+"]")>-1}function u(e,t){return"function"==typeof e?e.apply(void 0,t):e}function b(e,t){return 0===t?e:function(o){clearTimeout(r),r=setTimeout((function(){e(o)}),t)};var r}function g(e){return[].concat(e)}function f(e,t){-1===e.indexOf(t)&&e.push(t)}function m(e){return[].slice.call(e)}function h(e){return Object.keys(e).reduce((function(t,r){return void 0!==e[r]&&(t[r]=e[r]),t}),{})}function y(){return document.createElement("div")}function v(e){return["Element","Fragment"].some((function(t){return p(e,t)}))}function w(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function x(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function k(e,t,r){var o=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[o](t,r)}))}function E(e,t){for(var r=t;r;){var o;if(e.contains(r))return!0;r=null==r.getRootNode||null==(o=r.getRootNode())?void 0:o.host}return!1}var R={isTouch:!1},A=0;function _(){R.isTouch||(R.isTouch=!0,window.performance&&document.addEventListener("mousemove",C))}function C(){var e=performance.now();e-A<20&&(R.isTouch=!1,document.removeEventListener("mousemove",C)),A=e}function P(){var e,t=document.activeElement;if((e=t)&&e._tippy&&e._tippy.reference===e){var r=t._tippy;t.blur&&!r.state.isVisible&&t.blur()}}var S=!("undefined"==typeof window||"undefined"==typeof document||!window.msCrypto),B=Object.assign({appendTo:c,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),W=Object.keys(B);function j(e){var t=(e.plugins||[]).reduce((function(t,r){var o,n=r.name,a=r.defaultValue;return n&&(t[n]=void 0!==e[n]?e[n]:null!=(o=B[n])?o:a),t}),{});return Object.assign({},e,t)}function T(e,t){var r=Object.assign({},t,{content:u(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(j(Object.assign({},B,{plugins:t}))):W).reduce((function(t,r){var o=(e.getAttribute("data-tippy-"+r)||"").trim();if(!o)return t;if("content"===r)t[r]=o;else try{t[r]=JSON.parse(o)}catch(e){t[r]=o}return t}),{})}(e,t.plugins));return r.aria=Object.assign({},B.aria,r.aria),r.aria={expanded:"auto"===r.aria.expanded?t.interactive:r.aria.expanded,content:"auto"===r.aria.content?t.interactive?null:"describedby":r.aria.content},r}function L(e,t){e.innerHTML=t}function D(e){var t=y();return!0===e?t.className=i:(t.className=l,v(e)?t.appendChild(e):L(t,e)),t}function O(e,t){v(t.content)?(L(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?L(e,t.content):e.textContent=t.content)}function M(e){var t=e.firstElementChild,r=m(t.children);return{box:t,content:r.find((function(e){return e.classList.contains(a)})),arrow:r.find((function(e){return e.classList.contains(i)||e.classList.contains(l)})),backdrop:r.find((function(e){return e.classList.contains("tippy-backdrop")}))}}function N(e){var t=y(),r=y();r.className="tippy-box",r.setAttribute("data-state","hidden"),r.setAttribute("tabindex","-1");var o=y();function n(r,o){var n=M(t),a=n.box,i=n.content,l=n.arrow;o.theme?a.setAttribute("data-theme",o.theme):a.removeAttribute("data-theme"),"string"==typeof o.animation?a.setAttribute("data-animation",o.animation):a.removeAttribute("data-animation"),o.inertia?a.setAttribute("data-inertia",""):a.removeAttribute("data-inertia"),a.style.maxWidth="number"==typeof o.maxWidth?o.maxWidth+"px":o.maxWidth,o.role?a.setAttribute("role",o.role):a.removeAttribute("role"),r.content===o.content&&r.allowHTML===o.allowHTML||O(i,e.props),o.arrow?l?r.arrow!==o.arrow&&(a.removeChild(l),a.appendChild(D(o.arrow))):a.appendChild(D(o.arrow)):l&&a.removeChild(l)}return o.className=a,o.setAttribute("data-state","hidden"),O(o,e.props),t.appendChild(r),r.appendChild(o),n(e.props,e.props),{popper:t,onUpdate:n}}N.$$tippy=!0;var I=1,z=[],H=[];function $(e,t){var r,n,a,i,l,v,A,_,C=T(e,Object.assign({},B,j(h(t)))),P=!1,W=!1,L=!1,D=!1,O=[],N=b(ye,C.interactiveDebounce),$=I++,F=(_=C.plugins).filter((function(e,t){return _.indexOf(e)===t})),V={id:$,reference:e,popper:y(),popperInstance:null,props:C,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:F,clearDelayTimeouts:function(){clearTimeout(r),clearTimeout(n),cancelAnimationFrame(a)},setProps:function(t){if(!V.state.isDestroyed){ne("onBeforeUpdate",[V,t]),me();var r=V.props,o=T(e,Object.assign({},r,h(t),{ignoreAttributes:!0}));V.props=o,fe(),r.interactiveDebounce!==o.interactiveDebounce&&(le(),N=b(ye,o.interactiveDebounce)),r.triggerTarget&&!o.triggerTarget?g(r.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):o.triggerTarget&&e.removeAttribute("aria-expanded"),ie(),oe(),Z&&Z(r,o),V.popperInstance&&(ke(),Re().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)}))),ne("onAfterUpdate",[V,t])}},setContent:function(e){V.setProps({content:e})},show:function(){var e=V.state.isVisible,t=V.state.isDestroyed,r=!V.state.isEnabled,o=R.isTouch&&!V.props.touch,n=d(V.props.duration,0,B.duration);if(!(e||t||r||o||Q().hasAttribute("disabled")||(ne("onShow",[V],!1),!1===V.props.onShow(V)))){if(V.state.isVisible=!0,X()&&(Y.style.visibility="visible"),oe(),pe(),V.state.isMounted||(Y.style.transition="none"),X()){var a=te();w([a.box,a.content],0)}var i,l,s;v=function(){var e;if(V.state.isVisible&&!D){if(D=!0,Y.offsetHeight,Y.style.transition=V.props.moveTransition,X()&&V.props.animation){var t=te(),r=t.box,o=t.content;w([r,o],n),x([r,o],"visible")}ae(),ie(),f(H,V),null==(e=V.popperInstance)||e.forceUpdate(),ne("onMount",[V]),V.props.animation&&X()&&function(e){be(e,(function(){V.state.isShown=!0,ne("onShown",[V])}))}(n)}},l=V.props.appendTo,s=Q(),(i=V.props.interactive&&l===c||"parent"===l?s.parentNode:u(l,[s])).contains(Y)||i.appendChild(Y),V.state.isMounted=!0,ke()}},hide:function(){var e=!V.state.isVisible,t=V.state.isDestroyed,r=!V.state.isEnabled,o=d(V.props.duration,1,B.duration);if(!(e||t||r)&&(ne("onHide",[V],!1),!1!==V.props.onHide(V))){if(V.state.isVisible=!1,V.state.isShown=!1,D=!1,P=!1,X()&&(Y.style.visibility="hidden"),le(),ue(),oe(!0),X()){var n=te(),a=n.box,i=n.content;V.props.animation&&(w([a,i],o),x([a,i],"hidden"))}ae(),ie(),V.props.animation?X()&&function(e,t){be(e,(function(){!V.state.isVisible&&Y.parentNode&&Y.parentNode.contains(Y)&&t()}))}(o,V.unmount):V.unmount()}},hideWithInteractivity:function(e){ee().addEventListener("mousemove",N),f(z,N),N(e)},enable:function(){V.state.isEnabled=!0},disable:function(){V.hide(),V.state.isEnabled=!1},unmount:function(){V.state.isVisible&&V.hide(),V.state.isMounted&&(Ee(),Re().forEach((function(e){e._tippy.unmount()})),Y.parentNode&&Y.parentNode.removeChild(Y),H=H.filter((function(e){return e!==V})),V.state.isMounted=!1,ne("onHidden",[V]))},destroy:function(){V.state.isDestroyed||(V.clearDelayTimeouts(),V.unmount(),me(),delete e._tippy,V.state.isDestroyed=!0,ne("onDestroy",[V]))}};if(!C.render)return V;var q=C.render(V),Y=q.popper,Z=q.onUpdate;Y.setAttribute("data-tippy-root",""),Y.id="tippy-"+V.id,V.popper=Y,e._tippy=V,Y._tippy=V;var G=F.map((function(e){return e.fn(V)})),U=e.hasAttribute("aria-expanded");return fe(),ie(),oe(),ne("onCreate",[V]),C.showOnCreate&&Ae(),Y.addEventListener("mouseenter",(function(){V.props.interactive&&V.state.isVisible&&V.clearDelayTimeouts()})),Y.addEventListener("mouseleave",(function(){V.props.interactive&&V.props.trigger.indexOf("mouseenter")>=0&&ee().addEventListener("mousemove",N)})),V;function J(){var e=V.props.touch;return Array.isArray(e)?e:[e,0]}function K(){return"hold"===J()[0]}function X(){var e;return!(null==(e=V.props.render)||!e.$$tippy)}function Q(){return A||e}function ee(){var e,t,r=Q().parentNode;return r?null!=(t=g(r)[0])&&null!=(e=t.ownerDocument)&&e.body?t.ownerDocument:document:document}function te(){return M(Y)}function re(e){return V.state.isMounted&&!V.state.isVisible||R.isTouch||i&&"focus"===i.type?0:d(V.props.delay,e?0:1,B.delay)}function oe(e){void 0===e&&(e=!1),Y.style.pointerEvents=V.props.interactive&&!e?"":"none",Y.style.zIndex=""+V.props.zIndex}function ne(e,t,r){var o;void 0===r&&(r=!0),G.forEach((function(r){r[e]&&r[e].apply(r,t)})),r&&(o=V.props)[e].apply(o,t)}function ae(){var t=V.props.aria;if(t.content){var r="aria-"+t.content,o=Y.id;g(V.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(r);if(V.state.isVisible)e.setAttribute(r,t?t+" "+o:o);else{var n=t&&t.replace(o,"").trim();n?e.setAttribute(r,n):e.removeAttribute(r)}}))}}function ie(){!U&&V.props.aria.expanded&&g(V.props.triggerTarget||e).forEach((function(e){V.props.interactive?e.setAttribute("aria-expanded",V.state.isVisible&&e===Q()?"true":"false"):e.removeAttribute("aria-expanded")}))}function le(){ee().removeEventListener("mousemove",N),z=z.filter((function(e){return e!==N}))}function se(t){if(!R.isTouch||!L&&"mousedown"!==t.type){var r=t.composedPath&&t.composedPath()[0]||t.target;if(!V.props.interactive||!E(Y,r)){if(g(V.props.triggerTarget||e).some((function(e){return E(e,r)}))){if(R.isTouch)return;if(V.state.isVisible&&V.props.trigger.indexOf("click")>=0)return}else ne("onClickOutside",[V,t]);!0===V.props.hideOnClick&&(V.clearDelayTimeouts(),V.hide(),W=!0,setTimeout((function(){W=!1})),V.state.isMounted||ue())}}}function ce(){L=!0}function de(){L=!1}function pe(){var e=ee();e.addEventListener("mousedown",se,!0),e.addEventListener("touchend",se,s),e.addEventListener("touchstart",de,s),e.addEventListener("touchmove",ce,s)}function ue(){var e=ee();e.removeEventListener("mousedown",se,!0),e.removeEventListener("touchend",se,s),e.removeEventListener("touchstart",de,s),e.removeEventListener("touchmove",ce,s)}function be(e,t){var r=te().box;function o(e){e.target===r&&(k(r,"remove",o),t())}if(0===e)return t();k(r,"remove",l),k(r,"add",o),l=o}function ge(t,r,o){void 0===o&&(o=!1),g(V.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,r,o),O.push({node:e,eventType:t,handler:r,options:o})}))}function fe(){var e;K()&&(ge("touchstart",he,{passive:!0}),ge("touchend",ve,{passive:!0})),(e=V.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(ge(e,he),e){case"mouseenter":ge("mouseleave",ve);break;case"focus":ge(S?"focusout":"blur",we);break;case"focusin":ge("focusout",we)}}))}function me(){O.forEach((function(e){var t=e.node,r=e.eventType,o=e.handler,n=e.options;t.removeEventListener(r,o,n)})),O=[]}function he(e){var t,r=!1;if(V.state.isEnabled&&!xe(e)&&!W){var o="focus"===(null==(t=i)?void 0:t.type);i=e,A=e.currentTarget,ie(),!V.state.isVisible&&p(e,"MouseEvent")&&z.forEach((function(t){return t(e)})),"click"===e.type&&(V.props.trigger.indexOf("mouseenter")<0||P)&&!1!==V.props.hideOnClick&&V.state.isVisible?r=!0:Ae(e),"click"===e.type&&(P=!r),r&&!o&&_e(e)}}function ye(e){var t=e.target,r=Q().contains(t)||Y.contains(t);if("mousemove"!==e.type||!r){var o=Re().concat(Y).map((function(e){var t,r=null==(t=e._tippy.popperInstance)?void 0:t.state;return r?{popperRect:e.getBoundingClientRect(),popperState:r,props:C}:null})).filter(Boolean);(function(e,t){var r=t.clientX,o=t.clientY;return e.every((function(e){var t=e.popperRect,n=e.popperState,a=e.props.interactiveBorder,i=n.placement.split("-")[0],l=n.modifiersData.offset;if(!l)return!0;var s="bottom"===i?l.top.y:0,c="top"===i?l.bottom.y:0,d="right"===i?l.left.x:0,p="left"===i?l.right.x:0,u=t.top-o+s>a,b=o-t.bottom-c>a,g=t.left-r+d>a,f=r-t.right-p>a;return u||b||g||f}))})(o,e)&&(le(),_e(e))}}function ve(e){xe(e)||V.props.trigger.indexOf("click")>=0&&P||(V.props.interactive?V.hideWithInteractivity(e):_e(e))}function we(e){V.props.trigger.indexOf("focusin")<0&&e.target!==Q()||V.props.interactive&&e.relatedTarget&&Y.contains(e.relatedTarget)||_e(e)}function xe(e){return!!R.isTouch&&K()!==e.type.indexOf("touch")>=0}function ke(){Ee();var t=V.props,r=t.popperOptions,n=t.placement,a=t.offset,i=t.getReferenceClientRect,l=t.moveTransition,s=X()?M(Y).arrow:null,c=i?{getBoundingClientRect:i,contextElement:i.contextElement||Q()}:e,d=[{name:"offset",options:{offset:a}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!l}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(X()){var r=te().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?r.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?r.setAttribute("data-"+e,""):r.removeAttribute("data-"+e)})),t.attributes.popper={}}}}];X()&&s&&d.push({name:"arrow",options:{element:s,padding:3}}),d.push.apply(d,(null==r?void 0:r.modifiers)||[]),V.popperInstance=(0,o.n4)(c,Y,Object.assign({},r,{placement:n,onFirstUpdate:v,modifiers:d}))}function Ee(){V.popperInstance&&(V.popperInstance.destroy(),V.popperInstance=null)}function Re(){return m(Y.querySelectorAll("[data-tippy-root]"))}function Ae(e){V.clearDelayTimeouts(),e&&ne("onTrigger",[V,e]),pe();var t=re(!0),o=J(),n=o[0],a=o[1];R.isTouch&&"hold"===n&&a&&(t=a),t?r=setTimeout((function(){V.show()}),t):V.show()}function _e(e){if(V.clearDelayTimeouts(),ne("onUntrigger",[V,e]),V.state.isVisible){if(!(V.props.trigger.indexOf("mouseenter")>=0&&V.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&P)){var t=re(!1);t?n=setTimeout((function(){V.state.isVisible&&V.hide()}),t):a=requestAnimationFrame((function(){V.hide()}))}}else ue()}}function F(e,t){void 0===t&&(t={});var r=B.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",_,s),window.addEventListener("blur",P);var o,n=Object.assign({},t,{plugins:r}),a=(o=e,v(o)?[o]:function(e){return p(e,"NodeList")}(o)?m(o):Array.isArray(o)?o:m(document.querySelectorAll(o))).reduce((function(e,t){var r=t&&$(t,n);return r&&e.push(r),e}),[]);return v(e)?a[0]:a}F.defaultProps=B,F.setDefaultProps=function(e){Object.keys(e).forEach((function(t){B[t]=e[t]}))},F.currentInput=R,Object.assign({},n.A,{effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow)}}),F.setDefaultProps({render:N});const V=F},4534:(e,t,r)=>{"use strict";r.d(t,{IO:()=>p,LU:()=>s,MS:()=>o,Sv:()=>d,XZ:()=>l,YK:()=>i,j:()=>a,vd:()=>n,yE:()=>c});var o="-ms-",n="-moz-",a="-webkit-",i="comm",l="rule",s="decl",c="@import",d="@keyframes",p="@layer"},4680:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var o=r(1609),n=r(1504);const a=({content:e,children:t,className:r,interactive:a,...i})=>{const l=`cw_popover ${r}`;return(0,o.createElement)(n.Ay,{content:e,className:l,trigger:"click",theme:"light",disabled:!e,animation:"shift-away",interactive:!0,allowHTML:!0,arrow:!0,...a?{}:{appendTo:document.body},...i},(0,o.createElement)("div",null,t))}},4684:(e,t,r)=>{"use strict";r.d(t,{T:()=>l,w:()=>i});var o=r(1609),n=r(5815),a=(r(6298),r(1287),o.createContext("undefined"!=typeof HTMLElement?(0,n.A)({key:"css"}):null)),i=(a.Provider,function(e){return(0,o.forwardRef)((function(t,r){var n=(0,o.useContext)(a);return e(t,n,r)}))}),l=o.createContext({})},4702:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var o=r(1609),n=r(9815),a=r(1504);const i=n.A.div`
display: inline-flex;
cursor: pointer;
&:hover {
color: var(--cw__secondary-color);
}
.wc__tooltip {
display: block !important;
}
`,l=({children:e,title:t,...r})=>(0,o.createElement)(i,null,(0,o.createElement)(a.Ay,{className:"wc__tooltip",content:t,disabled:!t,animation:"shift-away",arrow:!0,...r},e))},4715:e=>{"use strict";e.exports=window.wp.blockEditor},4757:(e,t,r)=>{"use strict";r.r(t),r.d(t,{edit:()=>s,metadata:()=>c,save:()=>d});var o=r(1609),n=(r(7723),r(4871)),a=r.n(n),i=r(4715),l=r(8504);const s=e=>{const{attributes:t}=e,r=(0,i.useBlockProps)();return(0,o.createElement)("div",{...r},(0,o.createElement)(a(),{block:"wptravelenginetripblocks/global-highlights",attributes:{...t,editor:!0}}),(0,o.createElement)(l.s,{...e}))},c=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"wptravelenginetripblocks/global-highlights","version":"1.0.0","title":"Global Trip Highlights","icon":"editor-ul","description":"Global Trip Highlights","category":"widgets","attributes":{"margin":{"type":"object","default":{"top":"","right":"","bottom":"24px","left":""}},"listSpacing":{"type":"string","label":"Items Spacing","panel":"-list-items-","default":"8px","selectors":"%WRAPPER% ul","control":{"type":"range","style":"--items-spacing","controlAttribute":{"min":0,"max":50}}},"alignment":{"type":"string","label":"Alignment","panel":"-list-items-","control":{"type":"alignment","style":"text-align","labels":{"alignment":{"label":"Alignment","style":"text-align"}}},"default":"left","selectors":"%WRAPPER% .wpte-bf-content"},"divider":{"type":"boolean","default":false,"label":"Divider","panel":"-list-items-","control":{"type":"switch"}},"dividerColor":{"type":"string","default":"#cccccc","label":"Divider Color","panel":"-list-items-","selectors":"%WRAPPER% ul","control":{"type":"color","style":"--items-divider-color"}},"helpIconColor":{"type":"object","label":"Help Icon Color","default":{"initial":"#147dfe","hover":"#147dfe"},"selectors":"%WRAPPER% .wpte-bf-content li .wpte-custom-tooltip","control":{"type":"color","labels":{"initial":{"label":"Initial","style":"color"},"hover":{"label":"Hover","style":"color:hover"}}},"panel":"-icon-"},"iconColor":{"type":"string","label":"Primary Color","default":"#147dfe","selectors":"%WRAPPER% .wpte-bf-content li .wte-block-icon","control":{"type":"color","style":"color"},"panel":"-icon-"},"iconBgColor":{"type":"string","label":"Secondary Color","default":"#cccccc","selectors":"%WRAPPER% .wpte-bf-content li .wte-block-icon","control":{"type":"color","style":"--secondary-color"},"panel":"-icon-"},"iconSize":{"type":"string","label":"Size","panel":"-icon-","default":"1em","selectors":"%WRAPPER% .wpte-bf-content li","control":{"type":"range","style":"--list-icon-size","controlAttribute":{"units":[{"unit":"px","min":1,"max":50},{"unit":"em","min":1,"max":8}]}}},"iconView":{"type":"string","default":"default","label":"View","panel":"-icon-","control":{"type":"select","controlAttribute":{"direction":"horizontal","options":[{"value":"default","label":"Default"},{"value":"stacked","label":"Stacked"},{"value":"framed","label":"Framed"}]}}},"iconRoundness":{"type":"string","default":"50%","label":"Roundness","panel":"-icon-","selectors":"%WRAPPER% li .wte-block-icon[data-style]","control":{"type":"range","style":"border-radius","controlAttribute":{"units":[{"unit":"px","min":0,"max":50},{"unit":"%","min":0,"max":100}]}}},"iconPadding":{"type":"string","default":"4px","label":"Padding","panel":"-icon-","selectors":["%WRAPPER% li .wte-block-icon[data-style=\'stacked\']","%WRAPPER% li .wte-block-icon[data-style=\'framed\']"],"control":{"type":"range","style":"padding","controlAttribute":{"min":0,"max":20}}}},"supports":{"align":false,"wptravelenginetripblocks":{"colors":{"link":false,"background":true,"text":true},"box-shadow":false,"spacing":{"margin":true,"padding":true},"panels":{"-icon-":{"title":"Icon"},"-list-items-":{"title":"List Items"}}}}}'),d=()=>null},4857:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var o=r(1609),n=r(8111);const a=r(9815).A.div`
width: 40px;
height: 22px;
border-radius: 45px;
background-color: #d1d1d1;
position: relative;
box-shadow: var(--cw__box-shadow);
transition: var(--cw__transition);
cursor: pointer;
span{
content: "";
width: 18px;
height: 18px;
border-radius: 50%;
background-color: #ffffff;
position: absolute;
top: 2px;
left: 2px;
transition: var(--cw__transition);
box-shadow: 2px 0px 4px rgba(0,0,0, .1)
}
&.checked{
background-color: var(--cw__secondary-color);
span{
left: 20px;
box-shadow: -2px 0px 4px rgba(0,0,0, .1)
}
}
`,i=({onChange:e,value:t})=>(0,o.createElement)(a,{tabIndex:0,className:"cw__switch"+(t?" checked":""),onClick:()=>e(!t),onKeyDown:r=>{"keydown"===r.type&&"Enter"===r.key&&e(!t)}},(0,o.createElement)("span",null)),l=e=>(0,n.A)(i)({...e,hideResetButton:!0,direction:"horizontal"})},4869:(e,t,r)=>{"use strict";r.r(t),r.d(t,{edit:()=>s,metadata:()=>c});var o=r(1609),n=(r(7723),r(4871)),a=r.n(n),i=r(4715),l=r(8504);const s=e=>{const{attributes:t}=e,r=(0,i.useBlockProps)();return(0,o.createElement)("div",{...r},(0,o.createElement)(a(),{block:"wptravelenginetripblocks/faqs",attributes:{...t,editor:!0}}),(0,o.createElement)(l.s,{...e}))},c=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"wptravelenginetripblocks/faqs","version":"1.0.0","title":"Trip FAQs","icon":"editor-help","description":"Customize FAQ sections that grab users’ attention, answer questions, and boost your website’s SEO.","category":"widgets","script":[],"attributes":{"iconColor":{"type":"string","label":"Toggle Color","default":"#147DFE","control":{"type":"color"},"variableName":"primary-color","selectors":"%WRAPPER% .faq-row .rotator","panel":"-faqs-"},"toggleSpacing":{"type":"string","label":"Toggle Spacing","panel":"-faqs-","default":"0px","control":{"type":"range","style":"right","controlAttribute":{"min":0,"max":100}},"selectors":"%WRAPPER% .faq-row .rotator"},"itemSpacing":{"type":"string","label":"Items Spacing","panel":"-faqs-","default":"48px","control":{"type":"range","style":"margin-bottom","controlAttribute":{"units":[{"unit":"px","min":0,"max":100}]}},"selectors":"%WRAPPER% .faq-row"},"showDivider":{"type":"boolean","default":true,"label":"Divider","panel":"-faqs-","control":{"type":"switch"}},"dividerColor":{"type":"object","label":"Items Separator","default":{"initial":"#040F1A1A"},"selectors":"%WRAPPER% .faq-row","control":{"type":"color","labels":{"initial":{"label":"Divider","style":"border-color"}}},"panel":"-faqs-"},"titleTypography":{"type":"object","label":"Typography","panel":"-title-","default":{},"control":{"type":"typography"},"selectors":"%WRAPPER% .faq-title"},"titleColor":{"type":"string","label":"Color","default":"#000000","control":{"type":"color","style":"color"},"selectors":"%WRAPPER% .faq-title","panel":"-title-"},"titleBackground":{"type":"string","default":"","label":"Background","panel":"-title-","selectors":"%WRAPPER% .faq-row .accordion-tabs-toggle","control":{"type":"color","style":"background-color"}},"titlePadding":{"type":"object","default":{"top":"","right":"","bottom":"","left":""},"label":"Padding","panel":"-title-","selectors":"%WRAPPER% .faq-row .accordion-tabs-toggle","control":{"type":"spacing","style":"padding"}},"contentBackground":{"type":"string","default":"","label":"Background","panel":"-content-","selectors":"%WRAPPER% .faq-row .faq-content","control":{"type":"color","style":"background-color"}},"contentPadding":{"type":"object","default":{"top":"16px","right":"","bottom":"","left":""},"label":"Padding","panel":"-content-","selectors":"%WRAPPER% .faq-row .faq-content","control":{"type":"spacing","style":"padding"}}},"supports":{"wptravelenginetripblocks":{"colors":{"link":false,"background":true,"text":true},"panels":{"-faqs-":{"title":"FAQ\'s"},"-title-":{"title":"Title"},"-content-":{"title":"Content"}}}},"textdomain":"wptravelengine","render":"file:./block.php"}')},4871:e=>{"use strict";e.exports=window.wp.serverSideRender},4917:(e,t,r)=>{"use strict";r.r(t),r.d(t,{edit:()=>c,metadata:()=>d});var o=r(1609),n=r(7723),a=r(4715),i=r(8504),l=r(7143),s=r(3582);const c=(...e)=>{const t=e[0],{attributes:r,setAttributes:c,context:{commentId:d}}=t,{border:p,borderRadius:u,boxShadow:b,margin:g,padding:f,textColor:m,background:h,alignment:y,fontSize:v}=r,w=["position","xOffset","yOffset","blur","spread","color"].map((e=>{var t,r;if("position"===e)return"inset"!==b[e]?"":"inset";if("color"===e)return null!==(r=b[e])&&void 0!==r?r:"";const o=null!==(t=b[e])&&void 0!==t?t:"";return""!==o?o:0})).join(" "),x=(0,a.useBlockProps)();let k=(0,l.useSelect)((e=>{const{getEntityRecord:t}=e(s.store),r=t("root","comment",d),o=r?.meta?.client_location;return null!=o?o:(0,n.__)("Unknown")}),[d]);return(0,o.createElement)("div",{...x,style:{border:p?`${p.width||0}px ${p.style||"solid"} ${p.color||"transparent"}`:"none",borderRadius:u?`${u.bottom||0} ${u.left||0} ${u.right||0} ${u.top||0}`:"none",boxShadow:b?.enable?w:"none",paddingTop:f.top,paddingBottom:f.bottom,paddingLeft:f.left,paddingRight:f.right,marginTop:g.top,marginBottom:g.bottom,marginLeft:g.left,marginRight:g.right,color:m,background:h||"",textAlign:y,fontSize:v}},k&&(0,o.createElement)("span",{className:"trip-block-review-location"}," ",(0,n.__)("From")," ",k," "),(0,o.createElement)(i.s,{group:"styles",...t}))},d=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"wptravelenginetripblocks/review-location","version":"1.0.0","title":"Review Location","category":"widgets","icon":"location","description":"Reviews","usesContext":["commentId"],"ancestor":["core/comments"],"attributes":{"alignment":{"type":"string","label":"Alignment","panel":"-reviewlocation-","control":{"type":"alignment","style":"text-align"},"default":"left","selectors":"%WRAPPER%"},"typography":{"type":"object","default":{"size":{"desktop":"14px","tablet":"14px","mobile":"14px"}}}},"supports":{"align":false,"wptravelenginetripblocks":{"colors":{"link":false},"panels":{"-reviewlocation-":{"title":"Review Location","icon":"admin-site-alt3"}}}},"textdomain":"wptravelengine","render":"file:./block.php"}')},4979:(e,t,r)=>{"use strict";r.d(t,{$$:()=>f,Es:()=>b,KG:()=>h,Ks:()=>C,Ll:()=>l,Re:()=>R,Sw:()=>a,TW:()=>u,WQ:()=>E,YG:()=>x,YN:()=>m,ZC:()=>v,_q:()=>g,ag:()=>S,e_:()=>_,jn:()=>n,kx:()=>A,l6:()=>i,lk:()=>y,sb:()=>d,wz:()=>c,xZ:()=>p,zk:()=>s});var o=r(1609);function n(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,o.useMemo)((()=>e=>{t.forEach((t=>t(e)))}),t)}const a="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function i(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function l(e){return"nodeType"in e}function s(e){var t,r;return e?i(e)?e:l(e)&&null!=(t=null==(r=e.ownerDocument)?void 0:r.defaultView)?t:window:window}function c(e){const{Document:t}=s(e);return e instanceof t}function d(e){return!i(e)&&e instanceof s(e).HTMLElement}function p(e){return e instanceof s(e).SVGElement}function u(e){return e?i(e)?e.document:l(e)?c(e)?e:d(e)||p(e)?e.ownerDocument:document:document:document}const b=a?o.useLayoutEffect:o.useEffect;function g(e){const t=(0,o.useRef)(e);return b((()=>{t.current=e})),(0,o.useCallback)((function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return null==t.current?void 0:t.current(...r)}),[])}function f(){const e=(0,o.useRef)(null);return[(0,o.useCallback)(((t,r)=>{e.current=setInterval(t,r)}),[]),(0,o.useCallback)((()=>{null!==e.current&&(clearInterval(e.current),e.current=null)}),[])]}function m(e,t){void 0===t&&(t=[e]);const r=(0,o.useRef)(e);return b((()=>{r.current!==e&&(r.current=e)}),t),r}function h(e,t){const r=(0,o.useRef)();return(0,o.useMemo)((()=>{const t=e(r.current);return r.current=t,t}),[...t])}function y(e){const t=g(e),r=(0,o.useRef)(null),n=(0,o.useCallback)((e=>{e!==r.current&&(null==t||t(e,r.current)),r.current=e}),[]);return[r,n]}function v(e){const t=(0,o.useRef)();return(0,o.useEffect)((()=>{t.current=e}),[e]),t.current}let w={};function x(e,t){return(0,o.useMemo)((()=>{if(t)return t;const r=null==w[e]?0:w[e]+1;return w[e]=r,e+"-"+r}),[e,t])}function k(e){return function(t){for(var r=arguments.length,o=new Array(r>1?r-1:0),n=1;n<r;n++)o[n-1]=arguments[n];return o.reduce(((t,r)=>{const o=Object.entries(r);for(const[r,n]of o){const o=t[r];null!=o&&(t[r]=o+e*n)}return t}),{...t})}}const E=k(1),R=k(-1);function A(e){if(!e)return!1;const{KeyboardEvent:t}=s(e.target);return t&&e instanceof t}function _(e){if(function(e){if(!e)return!1;const{TouchEvent:t}=s(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:r}=e.touches[0];return{x:t,y:r}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:r}=e.changedTouches[0];return{x:t,y:r}}}return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,y:e.clientY}:null}const C=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:r}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(r?Math.round(r):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:r}=e;return"scaleX("+t+") scaleY("+r+")"}},Transform:{toString(e){if(e)return[C.Translate.toString(e),C.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:r,easing:o}=e;return t+" "+r+"ms "+o}}}),P="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function S(e){return e.matches(P)?e:e.querySelector(P)}},5047:(e,t,r)=>{"use strict";r.d(t,{v:()=>o});var o=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{r.insertRule(e,r.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}()},5059:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var o=r(1815);const n={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=(0,o.A)({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}}},5128:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});var o=r(8979),n=r(7604),a=r(271),i=r(5581),l=r(2063),s=r(2083),c=r(2398);function d(e){return(0,i.sb)(e)&&"fixed"!==(0,a.A)(e).position?e.offsetParent:null}function p(e){for(var t=(0,o.A)(e),r=d(e);r&&(0,l.A)(r)&&"static"===(0,a.A)(r).position;)r=d(r);return r&&("html"===(0,n.A)(r)||"body"===(0,n.A)(r)&&"static"===(0,a.A)(r).position)?t:r||function(e){var t=/firefox/i.test((0,c.A)());if(/Trident/i.test((0,c.A)())&&(0,i.sb)(e)&&"fixed"===(0,a.A)(e).position)return null;var r=(0,s.A)(e);for((0,i.Ng)(r)&&(r=r.host);(0,i.sb)(r)&&["html","body"].indexOf((0,n.A)(r))<0;){var o=(0,a.A)(r);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return r;r=r.parentNode}return null}(e)||t}},5137:(e,t,r)=>{"use strict";function o(e){for(var t,r=0,o=0,n=e.length;n>=4;++o,n-=4)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(n){case 3:r^=(255&e.charCodeAt(o+2))<<16;case 2:r^=(255&e.charCodeAt(o+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(o)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}r.d(t,{A:()=>o})},5271:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var o=r(1609),n=r(8111);const a=({onChange:e,...t})=>(0,o.createElement)("textarea",{onChange:t=>e(t.target.value),...t}),i=e=>(0,n.A)(a)(e)},5314:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var o=r(1609),n=r(9815),a=r(8111),i=r(1266);const l=n.A.div`
display: inline-flex;
background-color: var(--cw__background-color);
border-radius: var(--cw__border-radius);
input[type=number]{
padding: 4px !important;
border: none !important;
background: none !important;
text-align: center;
width: 40px !important;
-moz-appearance: textfield;
-moz-appearance: textfield;
&::-webkit-outer-spin-button, &::-webkit-inner-spin-button{
-webkit-appearance: none;
}
}
button{
border: none;
background: none;
padding: 10px;
cursor: pointer;
display: flex;
align-items: center;
&:hover{
color: var(--cw__secondary-color);
}
&:disabled{
cursor: not-allowed;
pointer-event: none;
color: var(--cw__inactive-color);
opacity: .5;
}
}
`,s=({value:e,min:t,max:r,onChange:n,step:a,...s})=>{const c=a||1;return(0,o.createElement)(l,{className:"cw__input-number-wrapper"},(0,o.createElement)("button",{disabled:t>=e,type:"button",onClick:()=>{n(+e-c)}},i.A.minus),(0,o.createElement)("input",{type:"number",value:+e,onChange:e=>n(e.target.value),min:t,max:r,...s}),(0,o.createElement)("button",{disabled:r<=e,type:"button",onClick:()=>{n(+e+c)}},i.A.plus))},c=e=>(0,a.A)(s)({...e,direction:"horizontal"})},5446:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var o=r(5581);function n(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&(0,o.Ng)(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}},5476:(e,t,r)=>{"use strict";r(1609),r(9643),r(8111),r(4232),r(1266)},5487:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var o=r(8979),n=r(9760),a=r(793),i=r(2283);function l(e,t){var r=(0,o.A)(e),l=(0,n.A)(e),s=r.visualViewport,c=l.clientWidth,d=l.clientHeight,p=0,u=0;if(s){c=s.width,d=s.height;var b=(0,i.A)();(b||!b&&"fixed"===t)&&(p=s.offsetLeft,u=s.offsetTop)}return{width:c,height:d,x:p+(0,a.A)(e),y:u}}},5581:(e,t,r)=>{"use strict";r.d(t,{Ng:()=>i,sb:()=>a,vq:()=>n});var o=r(8979);function n(e){return e instanceof(0,o.A)(e).Element||e instanceof Element}function a(e){return e instanceof(0,o.A)(e).HTMLElement||e instanceof HTMLElement}function i(e){return"undefined"!=typeof ShadowRoot&&(e instanceof(0,o.A)(e).ShadowRoot||e instanceof ShadowRoot)}},5604:(e,t,r)=>{"use strict";r.r(t),r.d(t,{edit:()=>l,metadata:()=>c,save:()=>s});var o=r(1609),n=r(4715),a=r(8504),i=r(6087);const l=(...e)=>{const t=e[0],{attributes:r,setAttributes:l,clientId:s}=t,{background:c,border:d,boxShadow:p,borderRadius:u,padding:b,margin:g}=r;(0,i.useEffect)((()=>{r.id||l({id:s})}),[]);const f={background:c,borderWidth:d?.width,borderStyle:d?.style,borderColor:d?.color,borderTopLeftRadius:u?.top,borderTopRightRadius:u?.right,borderBottomRightRadius:u?.bottom,borderBottomLeftRadius:u?.left,boxShadow:p?.enable&&`${"inset"===p?.position?"inset":""} ${p?.xOffset} ${p?.yOffset} ${p?.blur} ${p?.spread} ${p?.color}`,marginTop:g?.top,marginRight:g?.right,marginBottom:g?.bottom,marginLeft:g?.left,paddingTop:b?.top,paddingRight:b?.right,paddinBottom:b?.bottom,paddingLeft:b?.left},m=(0,n.useBlockProps)({style:{display:"none",...f}});return(0,o.createElement)("div",{...m,"data-id":r.id},(0,o.createElement)("div",{style:{minHeight:"26px"}},(0,o.createElement)(n.InnerBlocks,{templateLock:!1,template:[["core/paragraph",{placeholder:"Tab Content..."}]]})),(0,o.createElement)(a.s,{group:"styles",...t}))},s=({attributes:e})=>{const t=n.useBlockProps.save();return(0,o.createElement)("div",{...n.useInnerBlocksProps.save(t),id:e.id,style:{display:"none"}})},c=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"wptravelenginetripblocks/tab-content","parent":["wptravelenginetripblocks/tab"],"version":"1.0.0","icon":"calendar","title":"WP Travel Engine Tab Content","category":"widgets","description":"WP Travel Engine - Tab Content Block","example":{},"attributes":{"id":{"type":"string"},"border":{"type":"object","default":{"width":"","style":"","color":""}}},"supports":{"align":false,"wptravelenginetripblocks":{"colors":{"link":false,"textColor":false},"border":true,"spacing":{"margin":true,"padding":true},"panels":{}}},"textdomain":"wptravelengine-trip-blocks"}')},5795:e=>{"use strict";e.exports=window.ReactDOM},5815:(e,t,r)=>{"use strict";r.d(t,{A:()=>m});var o=r(5047),n=r(390),a=r(9735),i=r(4534),l=r(483),s=r(9503),c=r(3716),d=function(e,t,r){for(var o=0,a=0;o=a,a=(0,n.se)(),38===o&&12===a&&(t[r]=1),!(0,n.Sh)(a);)(0,n.K2)();return(0,n.di)(e,n.G1)},p=new WeakMap,u=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,o=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||p.get(r))&&!o){p.set(e,!0);for(var i=[],l=function(e,t){return(0,n.VF)(function(e,t){var r=-1,o=44;do{switch((0,n.Sh)(o)){case 0:38===o&&12===(0,n.se)()&&(t[r]=1),e[r]+=d(n.G1-1,t,r);break;case 2:e[r]+=(0,n.Tb)(o);break;case 4:if(44===o){e[++r]=58===(0,n.se)()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=(0,a.HT)(o)}}while(o=(0,n.K2)());return e}((0,n.c4)(e),t))}(t,i),s=r.props,c=0,u=0;c<l.length;c++)for(var b=0;b<s.length;b++,u++)e.props[u]=i[c]?l[c].replace(/&\f/g,s[b]):s[b]+" "+l[c]}}},b=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function g(e,t){switch((0,a.tW)(e,t)){case 5103:return i.j+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return i.j+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return i.j+e+i.vd+e+i.MS+e+e;case 6828:case 4268:return i.j+e+i.MS+e+e;case 6165:return i.j+e+i.MS+"flex-"+e+e;case 5187:return i.j+e+(0,a.HC)(e,/(\w+).+(:[^]+)/,i.j+"box-$1$2"+i.MS+"flex-$1$2")+e;case 5443:return i.j+e+i.MS+"flex-item-"+(0,a.HC)(e,/flex-|-self/,"")+e;case 4675:return i.j+e+i.MS+"flex-line-pack"+(0,a.HC)(e,/align-content|flex-|-self/,"")+e;case 5548:return i.j+e+i.MS+(0,a.HC)(e,"shrink","negative")+e;case 5292:return i.j+e+i.MS+(0,a.HC)(e,"basis","preferred-size")+e;case 6060:return i.j+"box-"+(0,a.HC)(e,"-grow","")+i.j+e+i.MS+(0,a.HC)(e,"grow","positive")+e;case 4554:return i.j+(0,a.HC)(e,/([^-])(transform)/g,"$1"+i.j+"$2")+e;case 6187:return(0,a.HC)((0,a.HC)((0,a.HC)(e,/(zoom-|grab)/,i.j+"$1"),/(image-set)/,i.j+"$1"),e,"")+e;case 5495:case 3959:return(0,a.HC)(e,/(image-set\([^]*)/,i.j+"$1$`$1");case 4968:return(0,a.HC)((0,a.HC)(e,/(.+:)(flex-)?(.*)/,i.j+"box-pack:$3"+i.MS+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+i.j+e+e;case 4095:case 3583:case 4068:case 2532:return(0,a.HC)(e,/(.+)-inline(.+)/,i.j+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if((0,a.b2)(e)-1-t>6)switch((0,a.wN)(e,t+1)){case 109:if(45!==(0,a.wN)(e,t+4))break;case 102:return(0,a.HC)(e,/(.+:)(.+)-([^]+)/,"$1"+i.j+"$2-$3$1"+i.vd+(108==(0,a.wN)(e,t+3)?"$3":"$2-$3"))+e;case 115:return~(0,a.K5)(e,"stretch")?g((0,a.HC)(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==(0,a.wN)(e,t+1))break;case 6444:switch((0,a.wN)(e,(0,a.b2)(e)-3-(~(0,a.K5)(e,"!important")&&10))){case 107:return(0,a.HC)(e,":",":"+i.j)+e;case 101:return(0,a.HC)(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+i.j+(45===(0,a.wN)(e,14)?"inline-":"")+"box$3$1"+i.j+"$2$3$1"+i.MS+"$2box$3")+e}break;case 5936:switch((0,a.wN)(e,t+11)){case 114:return i.j+e+i.MS+(0,a.HC)(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return i.j+e+i.MS+(0,a.HC)(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return i.j+e+i.MS+(0,a.HC)(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return i.j+e+i.MS+e+e}return e}var f=[function(e,t,r,o){if(e.length>-1&&!e.return)switch(e.type){case i.LU:e.return=g(e.value,e.length);break;case i.Sv:return(0,l.l)([(0,n.C)(e,{value:(0,a.HC)(e.value,"@","@"+i.j)})],o);case i.XZ:if(e.length)return(0,a.kg)(e.props,(function(t){switch((0,a.YW)(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return(0,l.l)([(0,n.C)(e,{props:[(0,a.HC)(t,/:(read-\w+)/,":"+i.vd+"$1")]})],o);case"::placeholder":return(0,l.l)([(0,n.C)(e,{props:[(0,a.HC)(t,/:(plac\w+)/,":"+i.j+"input-$1")]}),(0,n.C)(e,{props:[(0,a.HC)(t,/:(plac\w+)/,":"+i.vd+"$1")]}),(0,n.C)(e,{props:[(0,a.HC)(t,/:(plac\w+)/,i.MS+"input-$1")]})],o)}return""}))}}],m=function(e){var t=e.key;if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var n,a,i=e.stylisPlugins||f,d={},p=[];n=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)d[t[r]]=!0;p.push(e)}));var g,m=[u,b],h=[l.A,(0,s.MY)((function(e){g.insert(e)}))],y=(0,s.r1)(m.concat(i,h));a=function(e,t,r,o){var n;g=r,n=e?e+"{"+t.styles+"}":t.styles,(0,l.l)((0,c.wE)(n),y),o&&(v.inserted[t.name]=!0)};var v={key:t,sheet:new o.v({key:t,container:n,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:d,registered:{},insert:a};return v.sheet.hydrate(p),v}},5821:(e,t,r)=>{"use strict";r.r(t),r.d(t,{edit:()=>s,metadata:()=>c});var o=r(1609),n=r(4871),a=r.n(n),i=(r(7723),r(4715)),l=r(8504);r(576),r(6477),r(8184);const s=e=>{const{attributes:t,setAttributes:r}=e,n=(0,i.useBlockProps)();return(0,o.createElement)("div",{...n},(0,o.createElement)(a(),{block:"wptravelenginetripblocks/cost-excludes",attributes:{...t,editor:!0}}),(0,o.createElement)(l.s,{group:"styles",...e}))},c=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"wptravelenginetripblocks/cost-excludes","version":"1.0.0","title":"Cost Excludes","icon":"minus","category":"widgets","description":"Outline any additional fees or excluded items with eye-catching icons.","script":[],"attributes":{"listSpacing":{"type":"string","label":"Items Spacing","panel":"-list-items-","default":"8px","selectors":"%WRAPPER% ul","control":{"type":"range","style":"--items-spacing","controlAttribute":{"min":0,"max":50}}},"alignment":{"type":"string","label":"Alignment","panel":"-list-items-","control":{"type":"alignment","style":"text-align","labels":{"alignment":{"label":"Alignment","style":"text-align"}}},"default":"left","selectors":"%WRAPPER% .cost-includes-excludes-list"},"divider":{"type":"boolean","default":false,"label":"Divider","panel":"-list-items-","control":{"type":"switch"}},"dividerColor":{"type":"string","default":"#cccccc","label":"Divider Color","panel":"-list-items-","selectors":"%WRAPPER% ul","control":{"type":"color","style":"--items-divider-color"}},"iconColor":{"type":"string","label":"Primary Color","default":"#E31E18","selectors":"%WRAPPER% .cost-includes-excludes-list li .wte-block-icon","control":{"type":"color","style":"color"},"panel":"-icon-"},"iconBgColor":{"type":"string","label":"Secondary Color","default":"#12B76A","selectors":"%WRAPPER% .cost-includes-excludes-list li .wte-block-icon","control":{"type":"color","style":"--secondary-color"},"panel":"-icon-"},"iconSize":{"type":"string","label":"Icon Size","panel":"-icon-","default":"1.5em","selectors":"%WRAPPER% .cost-includes-excludes-list li","control":{"type":"range","style":"--list-icon-size","controlAttribute":{"units":[{"unit":"px","min":1,"max":50},{"unit":"em","min":1,"max":8}]}}},"iconView":{"type":"string","default":"default","label":"View","panel":"-icon-","control":{"type":"select","controlAttribute":{"direction":"horizontal","options":[{"value":"default","label":"Default"},{"value":"stacked","label":"Stacked"},{"value":"framed","label":"Framed"}]}}},"iconRoundness":{"type":"string","default":"50%","label":"Roundness","panel":"-icon-","selectors":"%WRAPPER% li .wte-block-icon[data-style]","control":{"type":"range","style":"border-radius","controlAttribute":{"units":[{"unit":"px","min":0,"max":50},{"unit":"%","min":0,"max":100}]}}},"iconPadding":{"type":"string","default":"4px","label":"Padding","panel":"-icon-","selectors":["%WRAPPER% li .wte-block-icon[data-style=\'stacked\']","%WRAPPER% li .wte-block-icon[data-style=\'framed\']"],"control":{"type":"range","style":"padding","controlAttribute":{"min":0,"max":20}}}},"supports":{"align":false,"wptravelenginetripblocks":{"colors":{"link":false,"background":true,"text":true},"box-shadow":false,"spacing":{"padding":true,"margin":true},"panels":{"-icon-":{"title":"Icon"},"-list-items-":{"title":"List Items"}}}},"textdomain":"wptravelengine","render":"file:./block.php"}')},5825:(e,t,r)=>{"use strict";r.r(t),r.d(t,{edit:()=>s,metadata:()=>c});var o=r(1609),n=(r(7723),r(6427),r(4715)),a=r(4871),i=r.n(a),l=r(8504);const s=(...e)=>{const t=(0,n.useBlockProps)(),r=e[0],{attributes:a,setAttributes:s}=r;return(0,o.createElement)("div",{...t},(0,o.createElement)(i(),{block:"wptravelenginetripblocks/trip-highlights",attributes:{...a,editor:!0}}),(0,o.createElement)(l.s,{group:"styles",...r}))},c=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"wptravelenginetripblocks/trip-highlights","version":"1.0.0","title":"Trip Highlights","description":"Create eye-catching bulleted lists that make your trip highlights stand out.","icon":"editor-ul","script":[],"category":"widgets","attributes":{"listSpacing":{"type":"string","label":"Items Spacing","panel":"-list-items-","default":"8px","selectors":"%WRAPPER% ul","control":{"type":"range","style":"--items-spacing","controlAttribute":{"min":0,"max":50}}},"alignment":{"type":"string","label":"Alignment","panel":"-list-items-","control":{"type":"alignment","style":"text-align","labels":{"alignment":{"label":"Alignment","style":"text-align"}}},"default":"left","selectors":"%WRAPPER% .highlights"},"divider":{"type":"boolean","default":false,"label":"Divider","panel":"-list-items-","control":{"type":"switch"}},"dividerColor":{"type":"string","default":"#cccccc","label":"Divider Color","panel":"-list-items-","selectors":"%WRAPPER% ul","control":{"type":"color","style":"--items-divider-color"}},"iconColor":{"type":"string","label":"Primary Color","default":"#ffffff","selectors":"%WRAPPER% .highlights li .wte-block-icon","control":{"type":"color","style":"color"},"panel":"-icon-"},"iconBgColor":{"type":"string","label":"Secondary Color","default":"var(--primary-color)","selectors":"%WRAPPER% .highlights li .wte-block-icon","control":{"type":"color","style":"--secondary-color"},"panel":"-icon-"},"iconSize":{"type":"string","label":"Icon Size","panel":"-icon-","default":"1em","selectors":"%WRAPPER% .highlights li","control":{"type":"range","style":"--list-icon-size","controlAttribute":{"units":[{"unit":"px","min":1,"max":50},{"unit":"em","min":1,"max":8}]}}},"iconView":{"type":"string","default":"stacked","label":"View","panel":"-icon-","control":{"type":"select","controlAttribute":{"direction":"horizontal","options":[{"value":"default","label":"Default"},{"value":"stacked","label":"Stacked"},{"value":"framed","label":"Framed"}]}}},"iconRoundness":{"type":"string","default":"50%","label":"Roundness","panel":"-icon-","selectors":"%WRAPPER% li .wte-block-icon[data-style]","control":{"type":"range","style":"border-radius","controlAttribute":{"units":[{"unit":"px","min":0,"max":50},{"unit":"%","min":0,"max":100}]}}},"iconPadding":{"type":"string","default":"4px","label":"Padding","panel":"-icon-","selectors":["%WRAPPER% li .wte-block-icon[data-style=\'stacked\']","%WRAPPER% li .wte-block-icon[data-style=\'framed\']"],"control":{"type":"range","style":"padding","controlAttribute":{"min":0,"max":20}}}},"supports":{"align":false,"wptravelenginetripblocks":{"colors":{"link":false,"background":true,"text":true},"box-shadow":false,"spacing":{"margin":true,"padding":true},"panels":{"-icon-":{"title":"Icon"},"-list-items-":{"title":"List Items"}}}},"textdomain":"wptravelengine","render":"file:./block.php"}')},5846:(e,t,r)=>{"use strict";r.d(t,{A:()=>y});var o=r(1609),n=r(9815),a=r(8111),i=r(6087),l=r(9643),s=r(1266),c=r(8468),d=r(6670);const p=n.A.label`
text-align: center;
flex: 1;
input {
text-align: center;
padding-left: 0.25rem;
padding-right: 0.25rem;
-moz-appearance: textfield;
&::-webkit-outer-spin-button,
&::-webkit-inner-spin-button {
-webkit-appearance: none;
}
&:read-only{
background-color: #efefef;
color: #999999;
pointer-events: none;
}
}
.label {
display: inline-block;
font-size: 10px;
margin-top: 0.25rem;
text-transform: uppercase;
}
`,u=n.A.div`
display: flex;
width: 100%;
align-items: flex-start;
gap: 0.5rem;
.cw__spacing-button-wrapper {
background-color: var(--cw__background-color);
border-radius: var(--cw__border-radius);
display: flex;
height: 45px;
flex: 1;
button {
background: none;
border: none;
cursor: pointer;
color: var(--cw__inactive-color);
padding: 0.5rem;
font-size: 13px;
border-radius: var(--cw__border-radius);
display: inline-flex;
align-items: center;
justify-content: center;
&:hover,
&.active {
color: var(--cw__secondary-color);
}
&:focus {
outline: 1px dotted;
}
&.cw__spacing-button-link-button {
flex: 1;
}
}
.cw__unit-picker-wrapper {
position: relative;
&::before {
content: "";
width: 0;
height: 14px;
border-left: 1px solid var(--cw__inactive-color);
position: absolute;
top: 50%;
left: 0;
transform: translateY(-50%);
}
}
}
`,b=[{name:"top",label:"Top"},{name:"right",label:"Right"},{name:"bottom",label:"Bottom"},{name:"left",label:"Left"}],g=(e,t)=>{let r={};return b.map((({name:o})=>{const n="auto"!==t[o];r={...r,[o]:n?e:t[o]}})),r},f=[{unit:"px",min:0,max:1e3},{unit:"em",min:0,max:20},{unit:"rem",min:0,max:20},{unit:"%",min:0,max:100},{unit:"pt",min:0,max:100}],m=({label:e,value:t,...r})=>{const n="auto"!=t;return(0,o.createElement)(p,{className:"cw__spacing-input-wrapper"},(0,o.createElement)("span",{className:"cw__spacing-input"},(0,o.createElement)("input",{readOnly:!n,type:n?"number":"text",value:t,...r})),e&&(0,o.createElement)("span",{className:"label"},e))},h=({onChange:e,value:t,units:r,...n})=>{const[a,p]=(0,i.useState)(!0);r=(0,c.isBoolean)(r)?f:r;const h=Object.values(t).find((e=>""!==e&&"auto"!==e))||"",[y="px"]=(0,d.B)(h),v=r?.find((e=>e.unit===y)),w=v?.max||1e3,x=v?.min||0,k=Object.values(t).find((e=>""!==e&&"auto"!==e))||0+y,E=r=>{const o=r.target.value,n=r.target.name;if("number"===r.target.type){const r=""!==o?o>=w?w:o<=x?x:o:o;e(a?{...t,...g(r+y,t)}:{...t,[n]:r+y})}};return r=r?.map((e=>e.unit)),(0,o.createElement)(u,{className:"cw__spacing-group"},b.map((({name:e,label:r})=>{let a=t[e];if((0,d.B)(t[e]).length>0){var i;const[,r]=(null!==(i=t[e])&&void 0!==i?i:"")?.match(d.u)||[];a=r}return(0,o.createElement)(m,{key:e,label:r,name:e,onChange:E,value:a,...n})})),(0,o.createElement)("div",{className:"cw__spacing-button-wrapper"},(0,o.createElement)("button",{type:"button",className:"cw__spacing-button-link-button"+(a?" active":""),onClick:()=>(p(!a),void e({...t,...g(k,t)}))},s.A.link),(0,o.createElement)(l.pK,{units:r,value:y,onChange:r=>(r=>{let o={};Object.entries(t).map((([e,t="0px"])=>{var n;const[,a]=null!==(n=t?.match(/(\d+)/))&&void 0!==n?n:[];""!==t&&(o={...o,[e]:a+r})})),e({...t,...o})})(r)})))},y=e=>(0,a.A)(h)(e)},5871:(e,t,r)=>{"use strict";r.d(t,{AN:()=>le,FR:()=>f,MS:()=>g,Mp:()=>Ne,PM:()=>$e,Sj:()=>W,Vy:()=>x,fF:()=>Fe,fp:()=>E,sl:()=>T,uN:()=>re,vL:()=>K,y$:()=>R,zM:()=>Ye});var o=r(1609),n=r.n(o),a=r(5795),i=r(4979),l=r(9251);const s=(0,o.createContext)(null),c={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},d={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:r}=e;return r?"Draggable item "+t.id+" was moved over droppable area "+r.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:r}=e;return r?"Draggable item "+t.id+" was dropped over droppable area "+r.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function p(e){let{announcements:t=d,container:r,hiddenTextDescribedById:p,screenReaderInstructions:u=c}=e;const{announce:b,announcement:g}=(0,l.bO)(),f=(0,i.YG)("DndLiveRegion"),[m,h]=(0,o.useState)(!1);if((0,o.useEffect)((()=>{h(!0)}),[]),function(e){const t=(0,o.useContext)(s);(0,o.useEffect)((()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)}),[e,t])}((0,o.useMemo)((()=>({onDragStart(e){let{active:r}=e;b(t.onDragStart({active:r}))},onDragMove(e){let{active:r,over:o}=e;t.onDragMove&&b(t.onDragMove({active:r,over:o}))},onDragOver(e){let{active:r,over:o}=e;b(t.onDragOver({active:r,over:o}))},onDragEnd(e){let{active:r,over:o}=e;b(t.onDragEnd({active:r,over:o}))},onDragCancel(e){let{active:r,over:o}=e;b(t.onDragCancel({active:r,over:o}))}})),[b,t])),!m)return null;const y=n().createElement(n().Fragment,null,n().createElement(l.Aw,{id:p,value:u.draggable}),n().createElement(l.L4,{id:f,announcement:g}));return r?(0,a.createPortal)(y,r):y}var u;function b(){}function g(e,t){return(0,o.useMemo)((()=>({sensor:e,options:null!=t?t:{}})),[e,t])}function f(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,o.useMemo)((()=>[...t].filter((e=>null!=e))),[...t])}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(u||(u={}));const m=Object.freeze({x:0,y:0});function h(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function y(e,t){let{data:{value:r}}=e,{data:{value:o}}=t;return r-o}function v(e,t){let{data:{value:r}}=e,{data:{value:o}}=t;return o-r}function w(e){let{left:t,top:r,height:o,width:n}=e;return[{x:t,y:r},{x:t+n,y:r},{x:t,y:r+o},{x:t+n,y:r+o}]}function x(e,t){if(!e||0===e.length)return null;const[r]=e;return t?r[t]:r}function k(e,t,r){return void 0===t&&(t=e.left),void 0===r&&(r=e.top),{x:t+.5*e.width,y:r+.5*e.height}}const E=e=>{let{collisionRect:t,droppableRects:r,droppableContainers:o}=e;const n=k(t,t.left,t.top),a=[];for(const e of o){const{id:t}=e,o=r.get(t);if(o){const r=h(k(o),n);a.push({id:t,data:{droppableContainer:e,value:r}})}}return a.sort(y)},R=e=>{let{collisionRect:t,droppableRects:r,droppableContainers:o}=e;const n=w(t),a=[];for(const e of o){const{id:t}=e,o=r.get(t);if(o){const r=w(o),i=n.reduce(((e,t,o)=>e+h(r[o],t)),0),l=Number((i/4).toFixed(4));a.push({id:t,data:{droppableContainer:e,value:l}})}}return a.sort(y)};function A(e,t){const r=Math.max(t.top,e.top),o=Math.max(t.left,e.left),n=Math.min(t.left+t.width,e.left+e.width),a=Math.min(t.top+t.height,e.top+e.height),i=n-o,l=a-r;if(o<n&&r<a){const r=t.width*t.height,o=e.width*e.height,n=i*l;return Number((n/(r+o-n)).toFixed(4))}return 0}const _=e=>{let{collisionRect:t,droppableRects:r,droppableContainers:o}=e;const n=[];for(const e of o){const{id:o}=e,a=r.get(o);if(a){const r=A(a,t);r>0&&n.push({id:o,data:{droppableContainer:e,value:r}})}}return n.sort(v)};function C(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:m}function P(e){return function(t){for(var r=arguments.length,o=new Array(r>1?r-1:0),n=1;n<r;n++)o[n-1]=arguments[n];return o.reduce(((t,r)=>({...t,top:t.top+e*r.y,bottom:t.bottom+e*r.y,left:t.left+e*r.x,right:t.right+e*r.x})),{...t})}}const S=P(1);const B={ignoreTransform:!1};function W(e,t){void 0===t&&(t=B);let r=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:t,transformOrigin:o}=(0,i.zk)(e).getComputedStyle(e);t&&(r=function(e,t,r){const o=function(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}(t);if(!o)return e;const{scaleX:n,scaleY:a,x:i,y:l}=o,s=e.left-i-(1-n)*parseFloat(r),c=e.top-l-(1-a)*parseFloat(r.slice(r.indexOf(" ")+1)),d=n?e.width/n:e.width,p=a?e.height/a:e.height;return{width:d,height:p,top:c,right:s+d,bottom:c+p,left:s}}(r,t,o))}const{top:o,left:n,width:a,height:l,bottom:s,right:c}=r;return{top:o,left:n,width:a,height:l,bottom:s,right:c}}function j(e){return W(e,{ignoreTransform:!0})}function T(e,t){const r=[];return e?function o(n){if(null!=t&&r.length>=t)return r;if(!n)return r;if((0,i.wz)(n)&&null!=n.scrollingElement&&!r.includes(n.scrollingElement))return r.push(n.scrollingElement),r;if(!(0,i.sb)(n)||(0,i.xZ)(n))return r;if(r.includes(n))return r;const a=(0,i.zk)(e).getComputedStyle(n);return n!==e&&function(e,t){void 0===t&&(t=(0,i.zk)(e).getComputedStyle(e));const r=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some((e=>{const o=t[e];return"string"==typeof o&&r.test(o)}))}(n,a)&&r.push(n),function(e,t){return void 0===t&&(t=(0,i.zk)(e).getComputedStyle(e)),"fixed"===t.position}(n,a)?r:o(n.parentNode)}(e):r}function L(e){const[t]=T(e,1);return null!=t?t:null}function D(e){return i.Sw&&e?(0,i.l6)(e)?e:(0,i.Ll)(e)?(0,i.wz)(e)||e===(0,i.TW)(e).scrollingElement?window:(0,i.sb)(e)?e:null:null:null}function O(e){return(0,i.l6)(e)?e.scrollX:e.scrollLeft}function M(e){return(0,i.l6)(e)?e.scrollY:e.scrollTop}function N(e){return{x:O(e),y:M(e)}}var I;function z(e){return!(!i.Sw||!e)&&e===document.scrollingElement}function H(e){const t={x:0,y:0},r=z(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},o={x:e.scrollWidth-r.width,y:e.scrollHeight-r.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=o.y,isRight:e.scrollLeft>=o.x,maxScroll:o,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(I||(I={}));const $={x:.2,y:.2};function F(e,t,r,o,n){let{top:a,left:i,right:l,bottom:s}=r;void 0===o&&(o=10),void 0===n&&(n=$);const{isTop:c,isBottom:d,isLeft:p,isRight:u}=H(e),b={x:0,y:0},g={x:0,y:0},f=t.height*n.y,m=t.width*n.x;return!c&&a<=t.top+f?(b.y=I.Backward,g.y=o*Math.abs((t.top+f-a)/f)):!d&&s>=t.bottom-f&&(b.y=I.Forward,g.y=o*Math.abs((t.bottom-f-s)/f)),!u&&l>=t.right-m?(b.x=I.Forward,g.x=o*Math.abs((t.right-m-l)/m)):!p&&i<=t.left+m&&(b.x=I.Backward,g.x=o*Math.abs((t.left+m-i)/m)),{direction:b,speed:g}}function V(e){if(e===document.scrollingElement){const{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}const{top:t,left:r,right:o,bottom:n}=e.getBoundingClientRect();return{top:t,left:r,right:o,bottom:n,width:e.clientWidth,height:e.clientHeight}}function q(e){return e.reduce(((e,t)=>(0,i.WQ)(e,N(t))),m)}const Y=[["x",["left","right"],function(e){return e.reduce(((e,t)=>e+O(t)),0)}],["y",["top","bottom"],function(e){return e.reduce(((e,t)=>e+M(t)),0)}]];class Z{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=T(t),o=q(r);this.rect={...e},this.width=e.width,this.height=e.height;for(const[e,t,n]of Y)for(const a of t)Object.defineProperty(this,a,{get:()=>{const t=n(r),i=o[e]-t;return this.rect[a]+i},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class G{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach((e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)}))},this.target=e}add(e,t,r){var o;null==(o=this.target)||o.addEventListener(e,t,r),this.listeners.push([e,t,r])}}function U(e,t){const r=Math.abs(e.x),o=Math.abs(e.y);return"number"==typeof t?Math.sqrt(r**2+o**2)>t:"x"in t&&"y"in t?r>t.x&&o>t.y:"x"in t?r>t.x:"y"in t&&o>t.y}var J,K;function X(e){e.preventDefault()}function Q(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(J||(J={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"}(K||(K={}));const ee={start:[K.Space,K.Enter],cancel:[K.Esc],end:[K.Space,K.Enter,K.Tab]},te=(e,t)=>{let{currentCoordinates:r}=t;switch(e.code){case K.Right:return{...r,x:r.x+25};case K.Left:return{...r,x:r.x-25};case K.Down:return{...r,y:r.y+25};case K.Up:return{...r,y:r.y-25}}};class re{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new G((0,i.TW)(t)),this.windowListeners=new G((0,i.zk)(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(J.Resize,this.handleCancel),this.windowListeners.add(J.VisibilityChange,this.handleCancel),setTimeout((()=>this.listeners.add(J.Keydown,this.handleKeyDown)))}handleStart(){const{activeNode:e,onStart:t}=this.props,r=e.node.current;r&&function(e,t){if(void 0===t&&(t=W),!e)return;const{top:r,left:o,bottom:n,right:a}=t(e);L(e)&&(n<=0||a<=0||r>=window.innerHeight||o>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}(r),t(m)}handleKeyDown(e){if((0,i.kx)(e)){const{active:t,context:r,options:o}=this.props,{keyboardCodes:n=ee,coordinateGetter:a=te,scrollBehavior:l="smooth"}=o,{code:s}=e;if(n.end.includes(s))return void this.handleEnd(e);if(n.cancel.includes(s))return void this.handleCancel(e);const{collisionRect:c}=r.current,d=c?{x:c.left,y:c.top}:m;this.referenceCoordinates||(this.referenceCoordinates=d);const p=a(e,{active:t,context:r.current,currentCoordinates:d});if(p){const t=(0,i.Re)(p,d),o={x:0,y:0},{scrollableAncestors:n}=r.current;for(const r of n){const n=e.code,{isTop:a,isRight:i,isLeft:s,isBottom:c,maxScroll:d,minScroll:u}=H(r),b=V(r),g={x:Math.min(n===K.Right?b.right-b.width/2:b.right,Math.max(n===K.Right?b.left:b.left+b.width/2,p.x)),y:Math.min(n===K.Down?b.bottom-b.height/2:b.bottom,Math.max(n===K.Down?b.top:b.top+b.height/2,p.y))},f=n===K.Right&&!i||n===K.Left&&!s,m=n===K.Down&&!c||n===K.Up&&!a;if(f&&g.x!==p.x){const e=r.scrollLeft+t.x,a=n===K.Right&&e<=d.x||n===K.Left&&e>=u.x;if(a&&!t.y)return void r.scrollTo({left:e,behavior:l});o.x=a?r.scrollLeft-e:n===K.Right?r.scrollLeft-d.x:r.scrollLeft-u.x,o.x&&r.scrollBy({left:-o.x,behavior:l});break}if(m&&g.y!==p.y){const e=r.scrollTop+t.y,a=n===K.Down&&e<=d.y||n===K.Up&&e>=u.y;if(a&&!t.x)return void r.scrollTo({top:e,behavior:l});o.y=a?r.scrollTop-e:n===K.Down?r.scrollTop-d.y:r.scrollTop-u.y,o.y&&r.scrollBy({top:-o.y,behavior:l});break}}this.handleMove(e,(0,i.WQ)((0,i.Re)(p,this.referenceCoordinates),o))}}}handleMove(e,t){const{onMove:r}=this.props;e.preventDefault(),r(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function oe(e){return Boolean(e&&"distance"in e)}function ne(e){return Boolean(e&&"delay"in e)}re.activators=[{eventName:"onKeyDown",handler:(e,t,r)=>{let{keyboardCodes:o=ee,onActivation:n}=t,{active:a}=r;const{code:i}=e.nativeEvent;if(o.start.includes(i)){const t=a.activatorNode.current;return!(t&&e.target!==t||(e.preventDefault(),null==n||n({event:e.nativeEvent}),0))}return!1}}];class ae{constructor(e,t,r){var o;void 0===r&&(r=function(e){const{EventTarget:t}=(0,i.zk)(e);return e instanceof t?e:(0,i.TW)(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:n}=e,{target:a}=n;this.props=e,this.events=t,this.document=(0,i.TW)(a),this.documentListeners=new G(this.document),this.listeners=new G(r),this.windowListeners=new G((0,i.zk)(a)),this.initialCoordinates=null!=(o=(0,i.e_)(n))?o:m,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:r}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(J.Resize,this.handleCancel),this.windowListeners.add(J.DragStart,X),this.windowListeners.add(J.VisibilityChange,this.handleCancel),this.windowListeners.add(J.ContextMenu,X),this.documentListeners.add(J.Keydown,this.handleKeydown),t){if(null!=r&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(ne(t))return this.timeoutId=setTimeout(this.handleStart,t.delay),void this.handlePending(t);if(oe(t))return void this.handlePending(t)}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,t){const{active:r,onPending:o}=this.props;o(r,e,this.initialCoordinates,t)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(J.Click,Q,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(J.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:r,initialCoordinates:o,props:n}=this,{onMove:a,options:{activationConstraint:l}}=n;if(!o)return;const s=null!=(t=(0,i.e_)(e))?t:m,c=(0,i.Re)(o,s);if(!r&&l){if(oe(l)){if(null!=l.tolerance&&U(c,l.tolerance))return this.handleCancel();if(U(c,l.distance))return this.handleStart()}return ne(l)&&U(c,l.tolerance)?this.handleCancel():void this.handlePending(l,c)}e.cancelable&&e.preventDefault(),a(s)}handleEnd(){const{onAbort:e,onEnd:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleCancel(){const{onAbort:e,onCancel:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleKeydown(e){e.code===K.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const ie={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class le extends ae{constructor(e){const{event:t}=e,r=(0,i.TW)(t.target);super(e,ie,r)}}le.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:o}=t;return!(!r.isPrimary||0!==r.button||(null==o||o({event:r}),0))}}];const se={move:{name:"mousemove"},end:{name:"mouseup"}};var ce;!function(e){e[e.RightClick=2]="RightClick"}(ce||(ce={})),class extends ae{constructor(e){super(e,se,(0,i.TW)(e.event.target))}}.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:o}=t;return r.button!==ce.RightClick&&(null==o||o({event:r}),!0)}}];const de={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};var pe,ue;(class extends ae{constructor(e){super(e,de)}static setup(){return window.addEventListener(de.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(de.move.name,e)};function e(){}}}).activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:o}=t;const{touches:n}=r;return!(n.length>1||(null==o||o({event:r}),0))}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(pe||(pe={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(ue||(ue={}));const be={x:{[I.Backward]:!1,[I.Forward]:!1},y:{[I.Backward]:!1,[I.Forward]:!1}};var ge,fe;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(ge||(ge={})),function(e){e.Optimized="optimized"}(fe||(fe={}));const me=new Map;function he(e,t){return(0,i.KG)((r=>e?r||("function"==typeof t?t(e):e):null),[t,e])}function ye(e){let{callback:t,disabled:r}=e;const n=(0,i._q)(t),a=(0,o.useMemo)((()=>{if(r||"undefined"==typeof window||void 0===window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(n)}),[r]);return(0,o.useEffect)((()=>()=>null==a?void 0:a.disconnect()),[a]),a}function ve(e){return new Z(W(e),e)}function we(e,t,r){void 0===t&&(t=ve);const[n,a]=(0,o.useState)(null);function l(){a((o=>{if(!e)return null;var n;if(!1===e.isConnected)return null!=(n=null!=o?o:r)?n:null;const a=t(e);return JSON.stringify(o)===JSON.stringify(a)?o:a}))}const s=function(e){let{callback:t,disabled:r}=e;const n=(0,i._q)(t),a=(0,o.useMemo)((()=>{if(r||"undefined"==typeof window||void 0===window.MutationObserver)return;const{MutationObserver:e}=window;return new e(n)}),[n,r]);return(0,o.useEffect)((()=>()=>null==a?void 0:a.disconnect()),[a]),a}({callback(t){if(e)for(const r of t){const{type:t,target:o}=r;if("childList"===t&&o instanceof HTMLElement&&o.contains(e)){l();break}}}}),c=ye({callback:l});return(0,i.Es)((()=>{l(),e?(null==c||c.observe(e),null==s||s.observe(document.body,{childList:!0,subtree:!0})):(null==c||c.disconnect(),null==s||s.disconnect())}),[e]),n}const xe=[];function ke(e,t){void 0===t&&(t=[]);const r=(0,o.useRef)(null);return(0,o.useEffect)((()=>{r.current=null}),t),(0,o.useEffect)((()=>{const t=e!==m;t&&!r.current&&(r.current=e),!t&&r.current&&(r.current=null)}),[e]),r.current?(0,i.Re)(e,r.current):m}function Ee(e){return(0,o.useMemo)((()=>e?function(e){const t=e.innerWidth,r=e.innerHeight;return{top:0,left:0,right:t,bottom:r,width:t,height:r}}(e):null),[e])}const Re=[];const Ae=[{sensor:le,options:{}},{sensor:re,options:{}}],_e={current:{}},Ce={draggable:{measure:j},droppable:{measure:j,strategy:ge.WhileDragging,frequency:fe.Optimized},dragOverlay:{measure:W}};class Pe extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter((e=>{let{disabled:t}=e;return!t}))}getNodeFor(e){var t,r;return null!=(t=null==(r=this.get(e))?void 0:r.node.current)?t:void 0}}const Se={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Pe,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:b},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Ce,measureDroppableContainers:b,windowRect:null,measuringScheduled:!1},Be={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:b,draggableNodes:new Map,over:null,measureDroppableContainers:b},We=(0,o.createContext)(Be),je=(0,o.createContext)(Se);function Te(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Pe}}}function Le(e,t){switch(t.type){case u.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case u.DragMove:return null==e.draggable.active?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case u.DragEnd:case u.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case u.RegisterDroppable:{const{element:r}=t,{id:o}=r,n=new Pe(e.droppable.containers);return n.set(o,r),{...e,droppable:{...e.droppable,containers:n}}}case u.SetDroppableDisabled:{const{id:r,key:o,disabled:n}=t,a=e.droppable.containers.get(r);if(!a||o!==a.key)return e;const i=new Pe(e.droppable.containers);return i.set(r,{...a,disabled:n}),{...e,droppable:{...e.droppable,containers:i}}}case u.UnregisterDroppable:{const{id:r,key:o}=t,n=e.droppable.containers.get(r);if(!n||o!==n.key)return e;const a=new Pe(e.droppable.containers);return a.delete(r),{...e,droppable:{...e.droppable,containers:a}}}default:return e}}function De(e){let{disabled:t}=e;const{active:r,activatorEvent:n,draggableNodes:a}=(0,o.useContext)(We),l=(0,i.ZC)(n),s=(0,i.ZC)(null==r?void 0:r.id);return(0,o.useEffect)((()=>{if(!t&&!n&&l&&null!=s){if(!(0,i.kx)(l))return;if(document.activeElement===l.target)return;const e=a.get(s);if(!e)return;const{activatorNode:t,node:r}=e;if(!t.current&&!r.current)return;requestAnimationFrame((()=>{for(const e of[t.current,r.current]){if(!e)continue;const t=(0,i.ag)(e);if(t){t.focus();break}}}))}}),[n,t,a,s,l]),null}const Oe=(0,o.createContext)({...m,scaleX:1,scaleY:1});var Me;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(Me||(Me={}));const Ne=(0,o.memo)((function(e){var t,r,l,c;let{id:d,accessibility:b,autoScroll:g=!0,children:f,sensors:h=Ae,collisionDetection:y=_,measuring:v,modifiers:w,...k}=e;const E=(0,o.useReducer)(Le,void 0,Te),[R,A]=E,[P,B]=function(){const[e]=(0,o.useState)((()=>new Set)),t=(0,o.useCallback)((t=>(e.add(t),()=>e.delete(t))),[e]);return[(0,o.useCallback)((t=>{let{type:r,event:o}=t;e.forEach((e=>{var t;return null==(t=e[r])?void 0:t.call(e,o)}))}),[e]),t]}(),[j,O]=(0,o.useState)(Me.Uninitialized),M=j===Me.Initialized,{draggable:{active:H,nodes:$,translate:V},droppable:{containers:Y}}=R,G=null!=H?$.get(H):null,U=(0,o.useRef)({initial:null,translated:null}),J=(0,o.useMemo)((()=>{var e;return null!=H?{id:H,data:null!=(e=null==G?void 0:G.data)?e:_e,rect:U}:null}),[H,G]),K=(0,o.useRef)(null),[X,Q]=(0,o.useState)(null),[ee,te]=(0,o.useState)(null),re=(0,i.YN)(k,Object.values(k)),oe=(0,i.YG)("DndDescribedBy",d),ne=(0,o.useMemo)((()=>Y.getEnabled()),[Y]),ae=(ie=v,(0,o.useMemo)((()=>({draggable:{...Ce.draggable,...null==ie?void 0:ie.draggable},droppable:{...Ce.droppable,...null==ie?void 0:ie.droppable},dragOverlay:{...Ce.dragOverlay,...null==ie?void 0:ie.dragOverlay}})),[null==ie?void 0:ie.draggable,null==ie?void 0:ie.droppable,null==ie?void 0:ie.dragOverlay]));var ie;const{droppableRects:le,measureDroppableContainers:se,measuringScheduled:ce}=function(e,t){let{dragging:r,dependencies:n,config:a}=t;const[l,s]=(0,o.useState)(null),{frequency:c,measure:d,strategy:p}=a,u=(0,o.useRef)(e),b=function(){switch(p){case ge.Always:return!1;case ge.BeforeDragging:return r;default:return!r}}(),g=(0,i.YN)(b),f=(0,o.useCallback)((function(e){void 0===e&&(e=[]),g.current||s((t=>null===t?e:t.concat(e.filter((e=>!t.includes(e))))))}),[g]),m=(0,o.useRef)(null),h=(0,i.KG)((t=>{if(b&&!r)return me;if(!t||t===me||u.current!==e||null!=l){const t=new Map;for(let r of e){if(!r)continue;if(l&&l.length>0&&!l.includes(r.id)&&r.rect.current){t.set(r.id,r.rect.current);continue}const e=r.node.current,o=e?new Z(d(e),e):null;r.rect.current=o,o&&t.set(r.id,o)}return t}return t}),[e,l,r,b,d]);return(0,o.useEffect)((()=>{u.current=e}),[e]),(0,o.useEffect)((()=>{b||f()}),[r,b]),(0,o.useEffect)((()=>{l&&l.length>0&&s(null)}),[JSON.stringify(l)]),(0,o.useEffect)((()=>{b||"number"!=typeof c||null!==m.current||(m.current=setTimeout((()=>{f(),m.current=null}),c))}),[c,b,f,...n]),{droppableRects:h,measureDroppableContainers:f,measuringScheduled:null!=l}}(ne,{dragging:M,dependencies:[V.x,V.y],config:ae.droppable}),de=function(e,t){const r=null!=t?e.get(t):void 0,o=r?r.node.current:null;return(0,i.KG)((e=>{var r;return null==t?null:null!=(r=null!=o?o:e)?r:null}),[o,t])}($,H),fe=(0,o.useMemo)((()=>ee?(0,i.e_)(ee):null),[ee]),ve=function(){const e=!1===(null==X?void 0:X.autoScrollEnabled),t="object"==typeof g?!1===g.enabled:!1===g,r=M&&!e&&!t;return"object"==typeof g?{...g,enabled:r}:{enabled:r}}(),Pe=function(e,t){return he(e,t)}(de,ae.draggable.measure);!function(e){let{activeNode:t,measure:r,initialRect:n,config:a=!0}=e;const l=(0,o.useRef)(!1),{x:s,y:c}="boolean"==typeof a?{x:a,y:a}:a;(0,i.Es)((()=>{if(!s&&!c||!t)return void(l.current=!1);if(l.current||!n)return;const e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;const o=C(r(e),n);if(s||(o.x=0),c||(o.y=0),l.current=!0,Math.abs(o.x)>0||Math.abs(o.y)>0){const t=L(e);t&&t.scrollBy({top:o.y,left:o.x})}}),[t,s,c,n,r])}({activeNode:null!=H?$.get(H):null,config:ve.layoutShiftCompensation,initialRect:Pe,measure:ae.draggable.measure});const Se=we(de,ae.draggable.measure,Pe),Be=we(de?de.parentElement:null),Ne=(0,o.useRef)({activatorEvent:null,active:null,activeNode:de,collisionRect:null,collisions:null,droppableRects:le,draggableNodes:$,draggingNode:null,draggingNodeRect:null,droppableContainers:Y,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Ie=Y.getNodeFor(null==(t=Ne.current.over)?void 0:t.id),ze=function(e){let{measure:t}=e;const[r,n]=(0,o.useState)(null),a=ye({callback:(0,o.useCallback)((e=>{for(const{target:r}of e)if((0,i.sb)(r)){n((e=>{const o=t(r);return e?{...e,width:o.width,height:o.height}:o}));break}}),[t])}),l=(0,o.useCallback)((e=>{const r=function(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return(0,i.sb)(t)?t:e}(e);null==a||a.disconnect(),r&&(null==a||a.observe(r)),n(r?t(r):null)}),[t,a]),[s,c]=(0,i.lk)(l);return(0,o.useMemo)((()=>({nodeRef:s,rect:r,setRef:c})),[r,s,c])}({measure:ae.dragOverlay.measure}),He=null!=(r=ze.nodeRef.current)?r:de,$e=M?null!=(l=ze.rect)?l:Se:null,Fe=Boolean(ze.nodeRef.current&&ze.rect),Ve=C(qe=Fe?null:Se,he(qe));var qe;const Ye=Ee(He?(0,i.zk)(He):null),Ze=function(e){const t=(0,o.useRef)(e),r=(0,i.KG)((r=>e?r&&r!==xe&&e&&t.current&&e.parentNode===t.current.parentNode?r:T(e):xe),[e]);return(0,o.useEffect)((()=>{t.current=e}),[e]),r}(M?null!=Ie?Ie:de:null),Ge=function(e,t){void 0===t&&(t=W);const[r]=e,n=Ee(r?(0,i.zk)(r):null),[a,l]=(0,o.useState)(Re);function s(){l((()=>e.length?e.map((e=>z(e)?n:new Z(t(e),e))):Re))}const c=ye({callback:s});return(0,i.Es)((()=>{null==c||c.disconnect(),s(),e.forEach((e=>null==c?void 0:c.observe(e)))}),[e]),a}(Ze),Ue=function(e,t){let{transform:r,...o}=t;return null!=e&&e.length?e.reduce(((e,t)=>t({transform:e,...o})),r):r}(w,{transform:{x:V.x-Ve.x,y:V.y-Ve.y,scaleX:1,scaleY:1},activatorEvent:ee,active:J,activeNodeRect:Se,containerNodeRect:Be,draggingNodeRect:$e,over:Ne.current.over,overlayNodeRect:ze.rect,scrollableAncestors:Ze,scrollableAncestorRects:Ge,windowRect:Ye}),Je=fe?(0,i.WQ)(fe,V):null,Ke=function(e){const[t,r]=(0,o.useState)(null),n=(0,o.useRef)(e),a=(0,o.useCallback)((e=>{const t=D(e.target);t&&r((e=>e?(e.set(t,N(t)),new Map(e)):null))}),[]);return(0,o.useEffect)((()=>{const t=n.current;if(e!==t){o(t);const i=e.map((e=>{const t=D(e);return t?(t.addEventListener("scroll",a,{passive:!0}),[t,N(t)]):null})).filter((e=>null!=e));r(i.length?new Map(i):null),n.current=e}return()=>{o(e),o(t)};function o(e){e.forEach((e=>{const t=D(e);null==t||t.removeEventListener("scroll",a)}))}}),[a,e]),(0,o.useMemo)((()=>e.length?t?Array.from(t.values()).reduce(((e,t)=>(0,i.WQ)(e,t)),m):q(e):m),[e,t])}(Ze),Xe=ke(Ke),Qe=ke(Ke,[Se]),et=(0,i.WQ)(Ue,Xe),tt=$e?S($e,Ue):null,rt=J&&tt?y({active:J,collisionRect:tt,droppableRects:le,droppableContainers:ne,pointerCoordinates:Je}):null,ot=x(rt,"id"),[nt,at]=(0,o.useState)(null),it=function(e,t,r){return{...e,scaleX:t&&r?t.width/r.width:1,scaleY:t&&r?t.height/r.height:1}}(Fe?Ue:(0,i.WQ)(Ue,Qe),null!=(c=null==nt?void 0:nt.rect)?c:null,Se),lt=(0,o.useRef)(null),st=(0,o.useCallback)(((e,t)=>{let{sensor:r,options:o}=t;if(null==K.current)return;const n=$.get(K.current);if(!n)return;const i=e.nativeEvent,l=new r({active:K.current,activeNode:n,event:i,options:o,context:Ne,onAbort(e){if(!$.get(e))return;const{onDragAbort:t}=re.current,r={id:e};null==t||t(r),P({type:"onDragAbort",event:r})},onPending(e,t,r,o){if(!$.get(e))return;const{onDragPending:n}=re.current,a={id:e,constraint:t,initialCoordinates:r,offset:o};null==n||n(a),P({type:"onDragPending",event:a})},onStart(e){const t=K.current;if(null==t)return;const r=$.get(t);if(!r)return;const{onDragStart:o}=re.current,n={activatorEvent:i,active:{id:t,data:r.data,rect:U}};(0,a.unstable_batchedUpdates)((()=>{null==o||o(n),O(Me.Initializing),A({type:u.DragStart,initialCoordinates:e,active:t}),P({type:"onDragStart",event:n}),Q(lt.current),te(i)}))},onMove(e){A({type:u.DragMove,coordinates:e})},onEnd:s(u.DragEnd),onCancel:s(u.DragCancel)});function s(e){return async function(){const{active:t,collisions:r,over:o,scrollAdjustedTranslate:n}=Ne.current;let l=null;if(t&&n){const{cancelDrop:a}=re.current;l={activatorEvent:i,active:t,collisions:r,delta:n,over:o},e===u.DragEnd&&"function"==typeof a&&await Promise.resolve(a(l))&&(e=u.DragCancel)}K.current=null,(0,a.unstable_batchedUpdates)((()=>{A({type:e}),O(Me.Uninitialized),at(null),Q(null),te(null),lt.current=null;const t=e===u.DragEnd?"onDragEnd":"onDragCancel";if(l){const e=re.current[t];null==e||e(l),P({type:t,event:l})}}))}}lt.current=l}),[$]),ct=(0,o.useCallback)(((e,t)=>(r,o)=>{const n=r.nativeEvent,a=$.get(o);if(null!==K.current||!a||n.dndKit||n.defaultPrevented)return;const i={active:a};!0===e(r,t.options,i)&&(n.dndKit={capturedBy:t.sensor},K.current=o,st(r,t))}),[$,st]),dt=function(e,t){return(0,o.useMemo)((()=>e.reduce(((e,r)=>{const{sensor:o}=r;return[...e,...o.activators.map((e=>({eventName:e.eventName,handler:t(e.handler,r)})))]}),[])),[e,t])}(h,ct);!function(e){(0,o.useEffect)((()=>{if(!i.Sw)return;const t=e.map((e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()}));return()=>{for(const e of t)null==e||e()}}),e.map((e=>{let{sensor:t}=e;return t})))}(h),(0,i.Es)((()=>{Se&&j===Me.Initializing&&O(Me.Initialized)}),[Se,j]),(0,o.useEffect)((()=>{const{onDragMove:e}=re.current,{active:t,activatorEvent:r,collisions:o,over:n}=Ne.current;if(!t||!r)return;const i={active:t,activatorEvent:r,collisions:o,delta:{x:et.x,y:et.y},over:n};(0,a.unstable_batchedUpdates)((()=>{null==e||e(i),P({type:"onDragMove",event:i})}))}),[et.x,et.y]),(0,o.useEffect)((()=>{const{active:e,activatorEvent:t,collisions:r,droppableContainers:o,scrollAdjustedTranslate:n}=Ne.current;if(!e||null==K.current||!t||!n)return;const{onDragOver:i}=re.current,l=o.get(ot),s=l&&l.rect.current?{id:l.id,rect:l.rect.current,data:l.data,disabled:l.disabled}:null,c={active:e,activatorEvent:t,collisions:r,delta:{x:n.x,y:n.y},over:s};(0,a.unstable_batchedUpdates)((()=>{at(s),null==i||i(c),P({type:"onDragOver",event:c})}))}),[ot]),(0,i.Es)((()=>{Ne.current={activatorEvent:ee,active:J,activeNode:de,collisionRect:tt,collisions:rt,droppableRects:le,draggableNodes:$,draggingNode:He,draggingNodeRect:$e,droppableContainers:Y,over:nt,scrollableAncestors:Ze,scrollAdjustedTranslate:et},U.current={initial:$e,translated:tt}}),[J,de,rt,tt,$,He,$e,le,Y,nt,Ze,et]),function(e){let{acceleration:t,activator:r=pe.Pointer,canScroll:n,draggingRect:a,enabled:l,interval:s=5,order:c=ue.TreeOrder,pointerCoordinates:d,scrollableAncestors:p,scrollableAncestorRects:u,delta:b,threshold:g}=e;const f=function(e){let{delta:t,disabled:r}=e;const o=(0,i.ZC)(t);return(0,i.KG)((e=>{if(r||!o||!e)return be;const n=Math.sign(t.x-o.x),a=Math.sign(t.y-o.y);return{x:{[I.Backward]:e.x[I.Backward]||-1===n,[I.Forward]:e.x[I.Forward]||1===n},y:{[I.Backward]:e.y[I.Backward]||-1===a,[I.Forward]:e.y[I.Forward]||1===a}}}),[r,t,o])}({delta:b,disabled:!l}),[m,h]=(0,i.$$)(),y=(0,o.useRef)({x:0,y:0}),v=(0,o.useRef)({x:0,y:0}),w=(0,o.useMemo)((()=>{switch(r){case pe.Pointer:return d?{top:d.y,bottom:d.y,left:d.x,right:d.x}:null;case pe.DraggableRect:return a}}),[r,a,d]),x=(0,o.useRef)(null),k=(0,o.useCallback)((()=>{const e=x.current;if(!e)return;const t=y.current.x*v.current.x,r=y.current.y*v.current.y;e.scrollBy(t,r)}),[]),E=(0,o.useMemo)((()=>c===ue.TreeOrder?[...p].reverse():p),[c,p]);(0,o.useEffect)((()=>{if(l&&p.length&&w){for(const e of E){if(!1===(null==n?void 0:n(e)))continue;const r=p.indexOf(e),o=u[r];if(!o)continue;const{direction:a,speed:i}=F(e,o,w,t,g);for(const e of["x","y"])f[e][a[e]]||(i[e]=0,a[e]=0);if(i.x>0||i.y>0)return h(),x.current=e,m(k,s),y.current=i,void(v.current=a)}y.current={x:0,y:0},v.current={x:0,y:0},h()}else h()}),[t,k,n,h,l,s,JSON.stringify(w),JSON.stringify(f),m,p,E,u,JSON.stringify(g)])}({...ve,delta:V,draggingRect:tt,pointerCoordinates:Je,scrollableAncestors:Ze,scrollableAncestorRects:Ge});const pt=(0,o.useMemo)((()=>({active:J,activeNode:de,activeNodeRect:Se,activatorEvent:ee,collisions:rt,containerNodeRect:Be,dragOverlay:ze,draggableNodes:$,droppableContainers:Y,droppableRects:le,over:nt,measureDroppableContainers:se,scrollableAncestors:Ze,scrollableAncestorRects:Ge,measuringConfiguration:ae,measuringScheduled:ce,windowRect:Ye})),[J,de,Se,ee,rt,Be,ze,$,Y,le,nt,se,Ze,Ge,ae,ce,Ye]),ut=(0,o.useMemo)((()=>({activatorEvent:ee,activators:dt,active:J,activeNodeRect:Se,ariaDescribedById:{draggable:oe},dispatch:A,draggableNodes:$,over:nt,measureDroppableContainers:se})),[ee,dt,J,Se,A,oe,$,nt,se]);return n().createElement(s.Provider,{value:B},n().createElement(We.Provider,{value:ut},n().createElement(je.Provider,{value:pt},n().createElement(Oe.Provider,{value:it},f)),n().createElement(De,{disabled:!1===(null==b?void 0:b.restoreFocus)})),n().createElement(p,{...b,hiddenTextDescribedById:oe}))})),Ie=(0,o.createContext)(null),ze="button",He="Draggable";function $e(e){let{id:t,data:r,disabled:n=!1,attributes:a}=e;const l=(0,i.YG)(He),{activators:s,activatorEvent:c,active:d,activeNodeRect:p,ariaDescribedById:u,draggableNodes:b,over:g}=(0,o.useContext)(We),{role:f=ze,roleDescription:m="draggable",tabIndex:h=0}=null!=a?a:{},y=(null==d?void 0:d.id)===t,v=(0,o.useContext)(y?Oe:Ie),[w,x]=(0,i.lk)(),[k,E]=(0,i.lk)(),R=function(e,t){return(0,o.useMemo)((()=>e.reduce(((e,r)=>{let{eventName:o,handler:n}=r;return e[o]=e=>{n(e,t)},e}),{})),[e,t])}(s,t),A=(0,i.YN)(r);return(0,i.Es)((()=>(b.set(t,{id:t,key:l,node:w,activatorNode:k,data:A}),()=>{const e=b.get(t);e&&e.key===l&&b.delete(t)})),[b,t]),{active:d,activatorEvent:c,activeNodeRect:p,attributes:(0,o.useMemo)((()=>({role:f,tabIndex:h,"aria-disabled":n,"aria-pressed":!(!y||f!==ze)||void 0,"aria-roledescription":m,"aria-describedby":u.draggable})),[n,f,h,y,m,u.draggable]),isDragging:y,listeners:n?void 0:R,node:w,over:g,setNodeRef:x,setActivatorNodeRef:E,transform:v}}function Fe(){return(0,o.useContext)(je)}const Ve="Droppable",qe={timeout:25};function Ye(e){let{data:t,disabled:r=!1,id:n,resizeObserverConfig:a}=e;const l=(0,i.YG)(Ve),{active:s,dispatch:c,over:d,measureDroppableContainers:p}=(0,o.useContext)(We),b=(0,o.useRef)({disabled:r}),g=(0,o.useRef)(!1),f=(0,o.useRef)(null),m=(0,o.useRef)(null),{disabled:h,updateMeasurementsFor:y,timeout:v}={...qe,...a},w=(0,i.YN)(null!=y?y:n),x=ye({callback:(0,o.useCallback)((()=>{g.current?(null!=m.current&&clearTimeout(m.current),m.current=setTimeout((()=>{p(Array.isArray(w.current)?w.current:[w.current]),m.current=null}),v)):g.current=!0}),[v]),disabled:h||!s}),k=(0,o.useCallback)(((e,t)=>{x&&(t&&(x.unobserve(t),g.current=!1),e&&x.observe(e))}),[x]),[E,R]=(0,i.lk)(k),A=(0,i.YN)(t);return(0,o.useEffect)((()=>{x&&E.current&&(x.disconnect(),g.current=!1,x.observe(E.current))}),[E,x]),(0,o.useEffect)((()=>(c({type:u.RegisterDroppable,element:{id:n,key:l,disabled:r,node:E,rect:f,data:A}}),()=>c({type:u.UnregisterDroppable,key:l,id:n}))),[n]),(0,o.useEffect)((()=>{r!==b.current.disabled&&(c({type:u.SetDroppableDisabled,id:n,key:l,disabled:r}),b.current.disabled=r)}),[n,l,r,c]),{active:s,rect:f,isOver:(null==d?void 0:d.id)===n,node:E,over:d,setNodeRef:R}}},6079:(e,t,r)=>{"use strict";r.r(t),r.d(t,{edit:()=>s,metadata:()=>c});var o=r(1609),n=r(4871),a=r.n(n),i=(r(7723),r(4715)),l=r(8504);r(576),r(6477),r(8184);const s=(...e)=>{const t=e[0],{attributes:r,setAttributes:n}=t,s=(0,i.useBlockProps)();return(0,o.createElement)("div",{...s},(0,o.createElement)(a(),{block:"wptravelenginetripblocks/cost-includes",attributes:{...r,editor:!0}}),(0,o.createElement)(l.s,{group:"styles",...t}))},c=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"wptravelenginetripblocks/cost-includes","version":"1.0.0","title":"Cost Includes","icon":"plus-alt","description":"Outline trip inclusions with eye-catching icons.","category":"widgets","script":[],"attributes":{"listSpacing":{"type":"string","label":"Items Spacing","panel":"-list-items-","default":"8px","selectors":"%WRAPPER% ul","control":{"type":"range","style":"--items-spacing","controlAttribute":{"min":0,"max":50}}},"alignment":{"type":"string","label":"Alignment","panel":"-list-items-","control":{"type":"alignment","style":"text-align"},"default":"left","selectors":"%WRAPPER% .cost-includes-excludes-list"},"divider":{"type":"boolean","default":false,"label":"Divider","panel":"-list-items-","control":{"type":"switch"}},"dividerColor":{"type":"string","default":"#cccccc","label":"Divider Color","panel":"-list-items-","selectors":"%WRAPPER% ul","control":{"type":"color","style":"--items-divider-color"}},"iconColor":{"type":"string","label":"Primary Color","default":"#12b76a","selectors":"%WRAPPER% .cost-includes-excludes-list li .wte-block-icon","control":{"type":"color","style":"color"},"panel":"-icon-"},"iconBgColor":{"type":"string","label":"Secondary Color","default":"#cccccc","selectors":"%WRAPPER% .cost-includes-excludes-list li .wte-block-icon","control":{"type":"color","style":"--secondary-color"},"panel":"-icon-"},"iconSize":{"type":"string","label":"Icon Size","panel":"-icon-","default":"1.5em","selectors":"%WRAPPER% .cost-includes-excludes-list li","control":{"type":"range","style":"--list-icon-size","controlAttribute":{"units":[{"unit":"px","min":1,"max":50},{"unit":"em","min":1,"max":8}]}}},"iconView":{"type":"string","default":"default","label":"View","panel":"-icon-","control":{"type":"select","controlAttribute":{"direction":"horizontal","options":[{"value":"default","label":"Default"},{"value":"stacked","label":"Stacked"},{"value":"framed","label":"Framed"}]}}},"iconRoundness":{"type":"string","default":"50%","label":"Roundness","panel":"-icon-","selectors":"%WRAPPER% li .wte-block-icon[data-style]","control":{"type":"range","style":"border-radius","controlAttribute":{"units":[{"unit":"px","min":0,"max":50},{"unit":"%","min":0,"max":100}]}}},"iconPadding":{"type":"string","default":"4px","label":"Padding","panel":"-icon-","selectors":["%WRAPPER% li .wte-block-icon[data-style=\'stacked\']","%WRAPPER% li .wte-block-icon[data-style=\'framed\']"],"control":{"type":"range","style":"padding","controlAttribute":{"min":0,"max":20}}}},"supports":{"align":false,"wptravelenginetripblocks":{"colors":{"link":false,"background":true,"text":true},"box-shadow":false,"spacing":{"padding":true,"margin":true},"panels":{"-icon-":{"title":"Icon"},"-list-items-":{"title":"List Items"}}}},"textdomain":"wptravelengine","render":"file:./block.php"}')},6087:e=>{"use strict";e.exports=window.wp.element},6154:e=>{"use strict";e.exports=window.moment},6163:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var o=r(1609),n=r(9815),a=r(6087),i=r(4680);const l=n.A.div`
display: inline-block;
position: relative;
> div,
button {
height: 100%;
}
button {
min-width: 40px;
border: none;
border-radius: var(--cw__border-radius);
background-color: var(--cw__background-color);
cursor: pointer;
min-height: 36px;
&:hover {
color: var(--cw__secondary-color);
}
&:focus {
outline: 1px dotted;
}
}
.cw__unit-picker-options {
max-width: 72px;
width: 72px;
border-radius: var(--cw__border-radius);
background-color: var(--cw__background-color);
display: flex;
flex-wrap: wrap;
position: absolute;
margin-bottom: 10px;
bottom: 100%;
left: -17.5px;
right: -17.5px;
animation: fadeInUp 0.1s ease;
border: 1px solid var(--cw__border-color);
z-index: 1;
&::before,
&::after {
content: "";
border: 6px solid transparent;
border-top-color: var(--cw__background-color);
position: absolute;
left: 50%;
top: 100%;
transform: translateX(-50%);
}
&::before {
margin-top: 1px;
border-top-color: #dcdcdc;
}
span {
min-width: 35px;
flex-basis: 0;
flex-grow: 1;
display: inline-block;
padding: 0.5rem 0.25rem;
text-align: center;
font-size: 12px;
cursor: pointer;
border-top: 1px solid #dcdcdc;
&:nth-of-type(2n + 1) {
border-right: 1px solid #dcdcdc;
}
&:nth-of-type(-n + 2) {
border-top: 0;
}
&:last-child {
border-right: 0;
}
&:hover {
background-color: #ffffff;
}
}
}
`,s=n.A.div`
max-width: 72px;
width: 72px;
display: flex;
flex-wrap: wrap;
span {
min-width: 35px;
flex-basis: 0;
flex-grow: 1;
display: inline-block;
padding: 0.5rem 0.25rem;
text-align: center;
font-size: 12px;
cursor: pointer;
border-top: 1px solid #dcdcdc;
&:nth-of-type(2n + 1) {
border-right: 1px solid #dcdcdc;
}
&:nth-of-type(-n + 2) {
border-top: 0;
}
&:last-child {
border-right: 0;
}
&:hover {
background-color: var(--cw__background-color);
}
}
`,c=({value:e,onChange:t,units:r})=>{const[n,c]=(0,a.useState)(!1),d=e=>r=>{("click"===r.type||"keydown"===r.type&&"Enter"===r.key)&&(t(e),c(!1))};return(0,o.createElement)(l,{className:"cw__unit-picker-wrapper"},(0,o.createElement)(i.A,{className:"cw__unit-picker-popover",content:r&&(0,o.createElement)(s,null,r?.map(((e,t)=>(0,o.createElement)("span",{key:t,tabIndex:0,onClick:d(e),onKeyDown:d(e)},e)))),disabled:(r||[])?.length<=1,interactive:!0},(0,o.createElement)("button",{tabIndex:0,type:"button",onClick:()=>c(!n),onKeyDown:e=>{"keydown"===e.type&&"Enter"===e.key&&c(n)}},e||"-")))}},6233:(e,t,r)=>{"use strict";function o(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}r.d(t,{A:()=>o})},6281:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var o=r(8101),n=r(4278),a=r(9913),i=r(2632);function l(e,t){void 0===t&&(t={});var r=t,l=r.placement,s=r.boundary,c=r.rootBoundary,d=r.padding,p=r.flipVariations,u=r.allowedAutoPlacements,b=void 0===u?n.DD:u,g=(0,o.A)(l),f=g?p?n.Ol:n.Ol.filter((function(e){return(0,o.A)(e)===g})):n.OM,m=f.filter((function(e){return b.indexOf(e)>=0}));0===m.length&&(m=f);var h=m.reduce((function(t,r){return t[r]=(0,a.A)(e,{placement:r,boundary:s,rootBoundary:c,padding:d})[(0,i.A)(r)],t}),{});return Object.keys(h).sort((function(e,t){return h[e]-h[t]}))}},6289:(e,t,r)=>{"use strict";function o(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}r.d(t,{A:()=>o})},6298:(e,t,r)=>{"use strict";r.d(t,{J:()=>h});var o=r(5137),n=r(3969),a=r(6289),i=!1,l=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,c=function(e){return 45===e.charCodeAt(1)},d=function(e){return null!=e&&"boolean"!=typeof e},p=(0,a.A)((function(e){return c(e)?e:e.replace(l,"-$&").toLowerCase()})),u=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(s,(function(e,t,r){return f={name:t,styles:r,next:f},t}))}return 1===n.A[e]||c(e)||"number"!=typeof t||0===t?t:t+"px"},b="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function g(e,t,r){if(null==r)return"";var o=r;if(void 0!==o.__emotion_styles)return o;switch(typeof r){case"boolean":return"";case"object":var n=r;if(1===n.anim)return f={name:n.name,styles:n.styles,next:f},n.name;var a=r;if(void 0!==a.styles){var l=a.next;if(void 0!==l)for(;void 0!==l;)f={name:l.name,styles:l.styles,next:f},l=l.next;return a.styles+";"}return function(e,t,r){var o="";if(Array.isArray(r))for(var n=0;n<r.length;n++)o+=g(e,t,r[n])+";";else for(var a in r){var l=r[a];if("object"!=typeof l){var s=l;null!=t&&void 0!==t[s]?o+=a+"{"+t[s]+"}":d(s)&&(o+=p(a)+":"+u(a,s)+";")}else{if("NO_COMPONENT_SELECTOR"===a&&i)throw new Error(b);if(!Array.isArray(l)||"string"!=typeof l[0]||null!=t&&void 0!==t[l[0]]){var c=g(e,t,l);switch(a){case"animation":case"animationName":o+=p(a)+":"+c+";";break;default:o+=a+"{"+c+"}"}}else for(var f=0;f<l.length;f++)d(l[f])&&(o+=p(a)+":"+u(a,l[f])+";")}}return o}(e,t,r);case"function":if(void 0!==e){var s=f,c=r(e);return f=s,g(e,t,c)}}var m=r;if(null==t)return m;var h=t[m];return void 0!==h?h:m}var f,m=/label:\s*([^\s;{]+)\s*(;|$)/g;function h(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var n=!0,a="";f=void 0;var i=e[0];null==i||void 0===i.raw?(n=!1,a+=g(r,t,i)):a+=i[0];for(var l=1;l<e.length;l++)a+=g(r,t,e[l]),n&&(a+=i[l]);m.lastIndex=0;for(var s,c="";null!==(s=m.exec(a));)c+="-"+s[1];return{name:(0,o.A)(a)+c,styles:a,next:f}}},6354:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var o=r(5581),n=r(6906),a=r(8979),i=r(2283);function l(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var l=e.getBoundingClientRect(),s=1,c=1;t&&(0,o.sb)(e)&&(s=e.offsetWidth>0&&(0,n.LI)(l.width)/e.offsetWidth||1,c=e.offsetHeight>0&&(0,n.LI)(l.height)/e.offsetHeight||1);var d=((0,o.vq)(e)?(0,a.A)(e):window).visualViewport,p=!(0,i.A)()&&r,u=(l.left+(p&&d?d.offsetLeft:0))/s,b=(l.top+(p&&d?d.offsetTop:0))/c,g=l.width/s,f=l.height/c;return{width:g,height:f,top:b,right:u+g,bottom:b+f,left:u,x:u,y:b}}},6406:(e,t,r)=>{"use strict";r(1609),r(4232),r(9643),r(8111)},6427:e=>{"use strict";e.exports=window.wp.components},6442:(e,t,r)=>{"use strict";function o(e){return"x"===e?"y":"x"}r.d(t,{A:()=>o})},6477:()=>{},6523:(e,t,r)=>{"use strict";r.d(t,{P:()=>a,u:()=>n});var o=r(6906);function n(e,t,r){return(0,o.T9)(e,(0,o.jk)(t,r))}function a(e,t,r){var o=n(e,t,r);return o>r?r:o}},6607:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var o=r(7604),n=r(5581);const a={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var r=t.styles[e]||{},a=t.attributes[e]||{},i=t.elements[e];(0,n.sb)(i)&&(0,o.A)(i)&&(Object.assign(i.style,r),Object.keys(a).forEach((function(e){var t=a[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach((function(e){var a=t.elements[e],i=t.attributes[e]||{},l=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce((function(e,t){return e[t]="",e}),{});(0,n.sb)(a)&&(0,o.A)(a)&&(Object.assign(a.style,l),Object.keys(i).forEach((function(e){a.removeAttribute(e)})))}))}},requires:["computeStyles"]}},6609:(e,t,r)=>{"use strict";r.d(t,{A:()=>b});var o=r(1609),n=r(9815),a=r(6427),i=r(8111),l=r(9643),s=r(8468),c=r(6670);const d=n.A.div`
display: flex;
> .components-base-control {
flex: 1;
margin-bottom: 0;
.components-base-control__field {
margin-bottom: 0;
.components-input-control__input {
border: none;
background-color: var(--cw__background-color);
padding-left: 5px;
padding-right: 5px;
text-align: center;
padding-top: 0;
padding-bottom: 0;
min-height: 40px;
-moz-appearance: textfield;
&::-webkit-outer-spin-button,
&::-webkit-inner-spin-button {
-webkit-appearance: none;
}
}
}
}
&.cw__has-unit {
.components-input-control__container {
max-width: 40px;
}
.components-input-control__input {
border-top-right-radius: 0 !important;
border-bottom-right-radius: 0 !important;
}
}
.cw__unit-picker-wrapper {
position: relative;
&::before {
content: "";
width: 0;
height: 14px;
border-left: 1px solid var(--cw__inactive-color);
position: absolute;
top: 50%;
left: 0;
transform: translateY(-50%);
}
button {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
color: var(--cw__inactive-color);
}
}
`,p=[{unit:"px",min:0,max:1e3},{unit:"em",min:0,max:20},{unit:"rem",min:0,max:20},{unit:"%",min:0,max:100},{unit:"pt",min:0,max:100}],u=({units:e,value:t,min:r,max:n,onChange:i,className:u,...b})=>{var g;const[,f="",,m=""]=null!==(g=t?.match(c.u))&&void 0!==g?g:[];let h=p.find((e=>e.unit==t))?"":f,y=p.find((e=>e.unit==t))?t:m;e=(0,s.isBoolean)(e)&&(e?p:e)||e,r=!(0,s.isBoolean)(e)&&e?.find((e=>e.unit===y))?.min||r||0,n=!(0,s.isBoolean)(e)&&e?.find((e=>e.unit===y))?.max||n||1e3,e=!(0,s.isBoolean)(e)&&e?.map((e=>e?.unit))||e;const v=(e,t)=>{e>=n?e=n:e<=r&&(e=r),i(e+t)};return(0,o.createElement)(d,{className:y||e?"cw__has-unit":""},(0,o.createElement)(a.RangeControl,{value:Number(h)||"",onChange:e=>v(e,y),min:r,max:n,...b}),(y||e)&&(0,o.createElement)(l.pK,{units:e,value:y,onChange:e=>v(h,e)}))},b=e=>(0,i.A)(u)(e)},6660:(e,t,r)=>{"use strict";r.r(t),r.d(t,{edit:()=>c,metadata:()=>p,save:()=>d});var o=r(1609),n=r(8504),a=r(4715),i=r(7143),l=r(6087),s=r(2024);const c=e=>{const{attributes:t,setAttributes:r}=e,c=(0,a.useBlockProps)(),d=(0,i.useSelect)((t=>t("core/block-editor").getBlocks(e.clientId))),{tabs:p,background:u,border:b,borderRadius:g,boxShadow:f,margin:m,padding:h,fontSize:y,tabTitleColor:v,tabTitleAlignment:w,tabTitleBackground:x,tabTitleBorderRadius:k,tabTitlePadding:E,tabTitleMargin:R,tabTitleShadow:A,contentBackground:_,contentBorder:C,contentBorderRadius:P,contentBoxShadow:S,contentPadding:B,contentMargin:W,tabSticky:j,tabOffsetTop:T,tabWidth:L,tabDirection:D,tabJustify:O,tabSpaceBetween:M,tabBackground:N,tabBorderColor:I,tabBorderStyle:z,tabBorderWidth:H,tabBorderRadius:$,tabBoxShadow:F,tabPadding:V,tabMargin:q}=t,[Y,Z]=(0,l.useState)(null);(0,l.useEffect)((()=>{r({tabs:d.map((({attributes:{id:e}},t)=>({id:e,label:p.find((t=>t.id===e))?.label||"New Tab"})))}),Y||Z(p?.[0]?.id)}),[d]);const G={"--offset-top":T,flexBasis:("left"==D||"right"==D)&&L,minWidth:("left"==D||"right"==D)&&L,justifyContent:O,gap:M,backgroundColor:N,borderColor:I,borderStyle:z,borderWidth:`${H.top||"0px"} ${H.right||"0px"} ${H.bottom||"0px"} ${H.left||"0px"}`,borderTopLeftRadius:$?.top,borderTopRightRadius:$?.right,borderBottomRightRadius:$?.bottom,borderBottomLeftRadius:$?.left,boxShadow:F?.enable&&`${"inset"===F?.position?"inset":""} ${F?.xOffset} ${F?.yOffset} ${F?.blur} ${F?.spread} ${F?.color}`,paddingTop:V?.top,paddingRight:V?.right,paddingBottom:V?.bottom,paddingLeft:V?.left,marginTop:q?.top,marginRight:q?.right,marginBottom:q?.bottom,marginLeft:q?.left},U={background:u,borderWidth:b?.width+"px",borderStyle:b?.style,borderColor:b?.color,borderTopLeftRadius:g?.top,borderTopRightRadius:g?.right,borderBottomRightRadius:g?.bottom,borderBottomLeftRadius:g?.left,boxShadow:f?.enable&&`${"inset"===f?.position?"inset":""} ${f?.xOffset} ${f?.yOffset} ${f?.blur} ${f?.spread} ${f?.color}`,marginTop:m?.top,marginRight:m?.right,marginBottom:m?.bottom,marginLeft:m?.left,paddingTop:h?.top,paddingRight:h?.right,paddingBottom:h?.bottom,paddingLeft:h?.left},J={fontSize:y,justifyContent:w,color:v?.initial,"--color-hover":v?.hover,"--color-active":v?.active,backgroundColor:x?.initial,"--background-hover":x?.hover,"--background-active":x?.active,borderTopLeftRadius:k?.top,borderTopRightRadius:k?.right,borderBottomRightRadius:k?.bottom,borderBottomLeftRadius:k?.left,boxShadow:A?.enable&&`${"inset"===A?.position?"inset":""} ${A?.xOffset} ${A?.yOffset} ${A?.blur} ${A?.spread} ${f?.color}`,paddingTop:E?.top,paddingRight:E?.right,paddingBottom:E?.bottom,paddingLeft:E?.left,marginTop:R?.top,marginRight:R?.right,marginBottom:R?.bottom,marginLeft:R?.left},K={"--content-background":_,"--content-border-width":C?.width+"px","--content-border-style":C?.style,"--content-border-color":C?.color,"--content-radius-top":P?.top,"--content-radius-right":P?.right,"--content-radius-bottom":P?.bottom,"--content-radius-left":P?.left,"--content-shadow":S?.enable&&`${"inset"===S?.position?"inset":""} ${S?.xOffset} ${S?.yOffset} ${S?.blur} ${S?.spread} ${S?.color}`,"--content-margin-top":W?.top,"--content-margin-right":W?.right,"--content-margin-bottom":W?.bottom,"--content-margin-left":W?.left,"--content-padding-top":B?.top,"--content-padding-right":B?.right,"--content-padding-bottom":B?.bottom,"--content-padding-left":B?.left},{children:X,...Q}=(0,a.useInnerBlocksProps)(c,{allowedBlocks:["wptravelenginetripblocks/tab-content"],template:[["wptravelenginetripblocks/tab-content"]]});return(0,o.createElement)("div",{...c},(0,o.createElement)("style",null,`.wp-block-wptravelenginetripblocks-tab-content[data-id="${Y}"]{display:block !important;}`),(0,o.createElement)("div",{className:`wpte-block_tab-container tab-direction-${D} ${j?"tab-is-sticky":""}`,style:U},(0,o.createElement)("ul",{className:"wpte-block_tabs",style:G},p.map((({id:e,label:n},i)=>(0,o.createElement)("li",{key:e,className:"wpte-block_tab",onClick:()=>Z(e)},(0,o.createElement)(a.RichText,{key:e,"data-id":e,value:n,className:"wpte-block_tab-button"+(Y==e?" active":""),onChange:t=>{const o=[...p];o[i]={id:e,label:t},r({tabs:o})},style:(0,s.A)({typography:t?.tabTypography},J)}))))),(0,o.createElement)("div",{className:"wpte-block_tab-content",...Q,style:K},X)),(0,o.createElement)(n.s,{group:"styles",...e}))},d=e=>{const{attributes:t}=e,{tabs:r,background:n,border:i,borderRadius:l,boxShadow:c,margin:d,padding:p,fontSize:u,tabTitleColor:b,tabTitleBackground:g,tabTitleBorderRadius:f,tabTitlePadding:m,tabTitleMargin:h,contentBackground:y,contentBorder:v,contentBoxShadow:w,contentBorderRadius:x,contentPadding:k,contentMargin:E,tabSticky:R,tabOffsetTop:A,tabWidth:_,tabDirection:C,tabJustify:P,tabSpaceBetween:S,tabBackground:B,tabBorderColor:W,tabBorderStyle:j,tabBorderWidth:T,tabBorderRadius:L,tabBoxShadow:D,tabPadding:O,tabMargin:M}=t,N={"--offset-top":A,flexBasis:("left"==C||"right"==C)&&_,minWidth:("left"==C||"right"==C)&&_,justifyContent:P,gap:S,backgroundColor:B,borderColor:W,borderStyle:j,borderWidth:`${T.top||"0px"} ${T.right||"0px"} ${T.bottom||"0px"} ${T.left||"0px"}`,borderTopLeftRadius:L?.top,borderTopRightRadius:L?.right,borderBottomRightRadius:L?.bottom,borderBottomLeftRadius:L?.left,boxShadow:D?.enable&&`${"inset"===D?.position?"inset":""} ${D?.xOffset} ${D?.yOffset} ${D?.blur} ${D?.spread} ${D?.color}`,paddingTop:O?.top,paddingRight:O?.right,paddingBottom:O?.bottom,paddingLeft:O?.left,marginTop:M?.top,marginRight:M?.right,marginBottom:M?.bottom,marginLeft:M?.left},I={background:n,borderWidth:i?.width+"px",borderStyle:i?.style,borderColor:i?.color,borderTopLeftRadius:l?.top,borderTopRightRadius:l?.right,borderBottomRightRadius:l?.bottom,borderBottomLeftRadius:l?.left,boxShadow:c?.enable&&`${"inset"===c?.position?"inset":""} ${c?.xOffset} ${c?.yOffset} ${c?.blur} ${c?.spread} ${c?.color}`,marginTop:d?.top,marginRight:d?.right,marginBottom:d?.bottom,marginLeft:d?.left,paddingTop:p?.top,paddingRight:p?.right,paddingBottom:p?.bottom,paddingLeft:p?.left},z={fontSize:u,color:b?.initial,"--color-hover":b?.hover,"--color-active":b?.active,backgroundColor:g?.initial,"--background-hover":g?.hover,"--background-active":g?.active,borderTopLeftRadius:f?.top,borderTopRightRadius:f?.right,borderBottomRightRadius:f?.bottom,borderBottomLeftRadius:f?.left,paddingTop:m?.top,paddingRight:m?.right,paddingBottom:m?.bottom,paddingLeft:m?.left,marginTop:h?.top,marginRight:h?.right,marginBottom:h?.bottom,marginLeft:h?.left},H={"--content-background":y,"--content-border-width":v?.width+"px","--content-border-style":v?.style,"--content-border-color":v?.color,"--content-radius-top":x?.top,"--content-radius-right":x?.right,"--content-radius-bottom":x?.bottom,"--content-radius-left":x?.left,"--content-shadow":w?.enable&&`${"inset"===w?.position?"inset":""} ${w?.xOffset} ${w?.yOffset} ${w?.blur} ${w?.spread} ${w?.color}`,"--content-margin-top":E?.top,"--content-margin-right":E?.right,"--content-margin-bottom":E?.bottom,"--content-margin-left":E?.left,"--content-padding-top":k?.top,"--content-padding-right":k?.right,"--content-padding-bottom":k?.bottom,"--content-padding-left":k?.left},$=a.useBlockProps.save(),F=a.useInnerBlocksProps.save();return(0,o.createElement)("div",{...$},(0,o.createElement)("div",{className:`wpte-block_tab-container preview tab-direction-${C} ${R?"tab-is-sticky":""}`,style:I},(0,o.createElement)("ul",{className:"wpte-block_tabs",style:N},r.map(((e,r)=>{const n=e.id;return(0,o.createElement)("li",{style:{order:r+1},key:n,className:"wpte-block_tab"},(0,o.createElement)("button",{key:n,"data-id":n,type:"button",className:"wpte-block_tab-button"+(0==r?" active":""),style:(0,s.A)({typography:t?.tabTypography},z)},e.label))}))),(0,o.createElement)("div",{className:"wpte-block_tab-content",style:H,...F})))},p=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"wptravelenginetripblocks/tab","version":"1.0.0","icon":"calendar","title":"WP Travel Engine Tab","category":"widgets","description":"Organize and present your trip information in a structured tabbed format.","example":{},"script":[],"attributes":{"tabs":{"type":"array","default":[]},"tabSticky":{"type":"boolean","default":false,"label":"Sticky","panel":"-tab-","control":{"type":"switch","controlAttribute":{"description":"It will only work on desktop screens."}}},"tabOffsetTop":{"type":"string","default":"0px","panel":"-tab-","label":"Offset Top","control":{"type":"range","controlAttribute":{"description":"It will work when sticky is enabled.","units":[{"unit":"px","min":0,"max":500},{"unit":"%","min":0,"max":100}]}}},"tabDirection":{"type":"string","default":"top","label":"Direction","panel":"-tab-","control":{"type":"select","controlAttribute":{"options":[{"value":"top","label":"Top"},{"value":"left","label":"Left"},{"value":"right","label":"Right"}],"direction":"horizontal"}}},"tabWidth":{"type":"string","default":"200px","label":"Width","panel":"-tab-","control":{"type":"range","controlAttribute":{"description":"It will work in the tab direction of \'Left\' or \'Right\'.","min":0,"max":500}}},"tabJustify":{"type":"string","default":"","label":"Justify","panel":"-tab-","control":{"type":"alignment","controlAttribute":{"flex":true}}},"tabSpaceBetween":{"type":"string","default":"0px","label":"Space Between","panel":"-tab-","control":{"type":"range","controlAttribute":{"min":0,"max":100}}},"tabBackground":{"type":"string","default":"","label":"Background","panel":"-tab-","control":{"type":"color"}},"tabBorderColor":{"type":"string","default":"","label":"Border Color","panel":"-tab-","control":{"type":"color"}},"tabBorderStyle":{"type":"string","default":"none","label":"Border Style","panel":"-tab-","control":{"type":"select","controlAttribute":{"options":[{"value":"none","label":"None"},{"value":"solid","label":"Solid"},{"value":"dashed","label":"Dash"},{"value":"double","label":"Double"},{"value":"dotted","label":"Dotted"}]}}},"tabBorderWidth":{"type":"object","default":{"top":"1px","right":"1px","bottom":"1px","left":"1px"},"label":"Border Width","panel":"-tab-","control":{"type":"spacing"}},"tabBorderRadius":{"type":"object","default":{"top":"","right":"","bottom":"","left":""},"label":"Border Radius","panel":"-tab-","control":{"type":"spacing"}},"tabBoxShadow":{"type":"object","default":{"enable":false,"position":"outline","xOffset":"2px","yOffset":"4px","blur":"20px","spread":"0px","color":"rgba(0,0,0, 0.7)"},"label":"Box Shadow","panel":"-tab-","control":{"type":"box-shadow"}},"tabPadding":{"type":"object","default":{"top":"","right":"","bottom":"","left":""},"label":"Padding","panel":"-tab-","control":{"type":"spacing"}},"tabMargin":{"type":"object","default":{"top":"","right":"","bottom":"","left":""},"label":"Margin","panel":"-tab-","control":{"type":"spacing"}},"boxShadow":{"type":"object","default":{"enable":false,"position":"outline","xOffset":"2px","yOffset":"4px","blur":"20px","spread":"0px","color":"rgba(0,0,0, 0.7)"}},"tabTypography":{"type":"object","label":"Typography","default":{"size":{"desktop":"16px","tablet":"16px","mobile":"16px"}},"panel":"-tab-title-","control":{"type":"typography"},"selectors":"%WRAPPER% .wpte-block_tab-button"},"tabTitleAlignment":{"type":"string","label":"Alignment","default":"","panel":"-tab-title-","control":{"type":"alignment","controlAttribute":{"flex":true}}},"tabTitleColor":{"type":"object","label":"Color","default":{"initial":"#000000","hover":"#ffffff","active":"#ffffff"},"panel":"-tab-title-","control":{"type":"color","labels":{"initial":{"label":"Initial","style":"color"},"hover":{"label":"Hover","style":"color:hover"},"active":{"label":"Active","style":"color:active"}}}},"tabTitleBackground":{"type":"object","label":"Background","default":{"initial":"#efefef","hover":"#1a84ee","active":"#1a84ee"},"panel":"-tab-title-","control":{"type":"color","labels":{"initial":{"label":"Initial","style":"color"},"hover":{"label":"Hover","style":"color:hover"},"active":{"label":"Active","style":"color:active"}}}},"tabTitleBorderRadius":{"type":"object","label":"Border Radius","default":{"top":"","right":"","bottom":"","left":""},"panel":"-tab-title-","control":{"type":"spacing"}},"tabTitleShadow":{"type":"object","label":"Box Shadow","default":{"enable":false,"position":"outline","xOffset":"2px","yOffset":"4px","blur":"20px","spread":"0px","color":"rgba(0,0,0, 0.7)"},"panel":"-tab-title-","control":{"type":"box-shadow"}},"tabTitlePadding":{"type":"object","label":"Padding","default":{"top":"12px","right":"16px","bottom":"12px","left":"16px"},"panel":"-tab-title-","control":{"type":"spacing"}},"contentBackground":{"type":"string","default":"#efefef","label":"Background","control":{"type":"color"},"panel":"-content-"},"contentBorder":{"type":"object","label":"Border","default":{"width":1,"style":"none","color":""},"control":{"type":"border"},"panel":"-content-"},"contentBoxShadow":{"type":"object","label":"Box Shadow","default":{"enable":false,"position":"outline","xOffset":"2px","yOffset":"4px","blur":"20px","spread":"0px","color":"rgba(0,0,0, 0.7)"},"control":{"type":"box-shadow"},"panel":"-content-"},"contentBorderRadius":{"type":"object","label":"Border Radius","default":{"top":"","right":"","bottom":"","left":""},"panel":"-content-","control":{"type":"spacing"}},"contentPadding":{"type":"object","label":"Padding","default":{"top":"24px","right":"24px","bottom":"24px","left":"24px"},"panel":"-content-","control":{"type":"spacing"}},"contentMargin":{"type":"object","label":"Margin","default":{"top":"","right":"","bottom":"","left":""},"panel":"-content-","control":{"type":"spacing"}}},"supports":{"align":false,"wptravelenginetripblocks":{"typography":false,"colors":{"link":false,"textColor":false},"border":true,"spacing":{"margin":true,"padding":true},"panels":{"-tab-":{"title":"Tab"},"-tab-title-":{"title":"Titles"},"-content-":{"title":"Content"}}}},"textdomain":"wptravelengine-trip-blocks","render":"file:./block.php"}')},6670:(e,t,r)=>{"use strict";r.d(t,{B:()=>n,u:()=>a});var o=r(8468);const n=e=>{var t;return(0,o.isString)(e)?null!==(t=e?.match(/(\px|em|pt|vw|vh|rem|%|cm|mm|Q|in|pc)/g))&&void 0!==t?t:[]:e},a=new RegExp(/([-+]?([0-9]*\.[0-9]+|[0-9]+))(px|em|pt|vw|vh|rem|%|cm|mm|Q|in|pc)?/)},6711:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var o=r(1609),n=r(9815),a=r(6427),i=r(8111),l=r(9291);const s=n.A.header`
padding: 5px;
border: 1px solid var(--cw__border-color);
border-radius: var(--cw__border-radius);
margin: 0 -4px 13px;
.components-circular-option-picker__swatches{
gap: 3px;
.components-circular-option-picker__option-wrapper, .components-button{
width: 26px;
height: 26px;
}
.components-circular-option-picker__option-wrapper{
&:hover{
transform: scale(1.1);
}
}
}
`,c=({colorPalette:e,value:t,title:r,interactive:n,onChange:i,placement:c,enableReset:d,...p})=>{let u=t;if(t?.includes("var(")){const e=t.replace(/var[()]/g,"").replace(/[)]/g,"");u=getComputedStyle(document.body).getPropertyValue(e)}return(0,o.createElement)(l.A,{onChange:i,color:t,title:r,interactive:n,placement:c,enableReset:d},e&&(0,o.createElement)(s,null,(0,o.createElement)(a.ColorPalette,{colors:e,value:u,clearable:!1,disableCustomColors:!0,onChange:t=>{const r=e.find((e=>e.color===t))?.slug;i(`var(${"--wp--preset--color--"+r})`)},...p})),(0,o.createElement)(a.ColorPicker,{color:u,enableAlpha:!0,defaultValue:"#000",onChange:i,...p}))},d=e=>(0,i.A)(c)(e)},6771:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var o={start:"end",end:"start"};function n(e){return e.replace(/start|end/g,(function(e){return o[e]}))}},6893:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var o=r(1609),n=r(4715),a=r(6427),i=r(7723),l=r(7143),s=(r(4232),r(3842));const{Fill:c,Slot:d}=(0,a.createSlotFill)("WPTravelEngineTripBlocksInspectorControls"),p={color:{title:(0,i.__)("Colors"),icon:"admin-appearance"},border:{title:(0,i.__)("Border"),icon:"admin-appearance"},dimensions:{title:(0,i.__)("Dimensions"),icon:"admin-appearance"}},u=({children:e,controls:t,...r})=>{const{attributes:a,setAttributes:i}=r,{name:c}=(0,n.useBlockEditContext)(),{getBlockType:d}=(0,l.useSelect)((e=>e("core/blocks")),[]),{attributes:u,supports:{wptravelenginetripblocks:b}}=d(c);let g={default:{},styles:{}};Object.entries(u).forEach((([e,t])=>{const r=t.panel||t.control?.type;r&&(r.match(/^(-[\w-]+-)$/)?g.default={...g.default,[r]:[...g.default?.[r]||[],[e,t]]}:g.styles={...g.styles,[r]:[...g.styles?.[r]||[],[e,t]]})}));const f={...p,...b?.panels||{}},m=Object.entries(g.default),h=Object.entries(g.styles);return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(n.InspectorControls,{group:"styles"},h.map((([e,t])=>(0,o.createElement)(s.A,{initialOpen:e===h[0][0],title:f[e]?.title||null,key:e,panel:e,controls:t,attributes:a,setAttributes:i})))),(0,o.createElement)(n.InspectorControls,{group:"default"},m.map((([e,t])=>(0,o.createElement)(s.A,{initialOpen:e===m[0][0],title:f[e]?.title||null,key:e,panel:e,controls:t,attributes:a,setAttributes:i})))),e)}},6906:(e,t,r)=>{"use strict";r.d(t,{LI:()=>a,T9:()=>o,jk:()=>n});var o=Math.max,n=Math.min,a=Math.round},6979:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var o=r(6354);function n(e){var t=(0,o.A)(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}},7143:e=>{"use strict";e.exports=window.wp.data},7146:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var o=r(1609),n=r(4232),a=r(9643),i=r(8111);const l=({value:e,onChange:t,responsiveState:r,setResponsiveState:a,fontFamilies:i,fontWeights:l})=>{const{family:s="default",size:c={desktop:"px",tablet:"px",mobile:"px"},"line-height":d={desktop:"",tablet:"",mobile:""},"letter-spacing":p={desktop:"0px",tablet:"0px",mobile:"0px"},weight:u="400",style:b="inherit",transform:g="inherit",decoration:f="inherit"}=e,m=(r,o)=>{t({...e,[r]:o})};return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(n.l6,{label:"Font Family",direction:"horizontal",value:s||"default",onChange:e=>m("family",e),options:i||[{label:"Default",value:"default"}],placeholder:"Select Font Family",variant:"solid",isChildren:!0,isSearchable:!0,style:{width:"136px"},disabled:!0}),(0,o.createElement)(n.F1,{label:"Size",value:c,onChange:e=>m("size",e),isChildren:!0,responsive:!0,units:[{unit:"px",min:0,max:100},{unit:"em",min:0,max:20},{unit:"rem",min:0,max:20}]}),(0,o.createElement)(n.F1,{label:"Line Height",value:d,onChange:e=>m("line-height",e),isChildren:!0,responsive:!0,step:.1,min:0,max:10,units:[{unit:"px",min:0,max:100},{unit:"em",min:0,max:20}]}),(0,o.createElement)(n.F1,{label:"Letter Spacing",value:p,onChange:e=>m("letter-spacing",e),isChildren:!0,responsive:!0,units:[{unit:"px",min:0,max:100},{unit:"em",min:0,max:20}],step:.1}),l&&(0,o.createElement)(n.l6,{label:"Font Weight",direction:"horizontal",value:u,options:l||[],onChange:e=>m("weight",e),variant:"solid",isChildren:!0,style:{width:"136px"}}),(0,o.createElement)(n.l6,{label:"Style",direction:"horizontal",options:[{value:"inherit",label:"Inherit"},{value:"italic",label:"Italic"},{value:"oblique",label:"Oblique"},{value:"normal",label:"Normal"}],value:b,onChange:e=>m("style",e),variant:"solid",isChildren:!0,style:{width:"136px"}}),(0,o.createElement)(n.l6,{label:"Transform",direction:"horizontal",options:[{value:"inherit",label:"Inherit"},{value:"uppercase",label:"Uppercase"},{value:"lowercase",label:"Lowercase"},{value:"capitalize",label:"Capitalize"},{value:"none",label:"None"}],value:g,onChange:e=>m("transform",e),variant:"solid",isChildren:!0,style:{width:"136px"}}),(0,o.createElement)(n.l6,{label:"Decoration",direction:"horizontal",options:[{value:"inherit",label:"Inherit"},{value:"underline",label:"Underline"},{value:"overline",label:"Overline"},{value:"line-through",label:"Line Through"},{value:"none",label:"None"}],value:f,onChange:e=>m("decoration",e),variant:"solid",isChildren:!0,style:{width:"136px"}}))},s=({changed:e,...t})=>(0,o.createElement)(a.AM,{content:(0,o.createElement)(l,{...t}),placement:"left"},(0,o.createElement)(a.ut,{changed:e})),c=e=>(0,i.A)(s)({...e,direction:"horizontal"})},7207:(e,t,r)=>{"use strict";r.r(t),r.d(t,{edit:()=>s,metadata:()=>c});var o=r(1609),n=r(4871),a=r.n(n),i=r(4715),l=r(8504);const s=(...e)=>{const t=e[0],{attributes:r,setAttributes:n}=t,s=(0,i.useBlockProps)();return(0,o.createElement)("div",{...s},(0,o.createElement)(a(),{block:"wptravelenginetripblocks/itinerary",attributes:{...r,editor:!0}}),(0,o.createElement)(l.s,{group:"styles",...t}))},c=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"wptravelenginetripblocks/itinerary","version":"1.0.0","title":"Trip Itinerary","icon":"editor-ol-rtl","description":"Create a travel itinerary with the Trip Itinerary Block. Add and customise titles, descriptions, icons and dates to timeline items.","category":"widgets","script":[],"supports":{"wptravelenginetripblocks":{"colors":{"link":false},"border":true,"spacing":{"margin":true,"padding":true},"panels":{"-itinerary-":{"title":"Itinerary","icon":"color"},"-itinerary-expand-":{"title":"Expand All"},"-title-":{"title":"Title"},"-itinerary-info-":{"title":"Itinerary Info"},"-content-":{"title":"Content"}}}},"attributes":{"expandAll":{"type":"boolean","label":"Expand Button","panel":"-itinerary-expand-","default":false,"selectors":"%WRAPPER% .itinerary .wte-toggle-button-wrap","control":{"type":"switch"}},"ExpandTypography":{"type":"object","label":"Typography","panel":"-itinerary-expand-","default":{},"selectors":[".itinerary .wte-toggle-button-wrap .aib-button-label"],"control":{"type":"typography"}},"ExpandTextAlignment":{"type":"string","default":"right","label":"Alignment","control":{"type":"alignment","style":"text-align"},"selectors":"%WRAPPER% .itinerary .wte-toggle-button-wrap","panel":"-itinerary-expand-"},"toggleColor":{"type":"object","label":"Toggle Color","default":{"textColor":"#111111","button":"#147DFE"},"control":{"type":"color","labels":{"textColor":{"label":"Text Color","style":"color","selectors":["%WRAPPER% .itinerary .aib-button-label"]},"button":{"label":"Button Color","style":"--primary-color","selectors":["%WRAPPER% .checkbox"]}}},"panel":"-itinerary-expand-"},"ExpandButtonPadding":{"type":"object","default":{"top":"","right":"","bottom":"24px","left":""},"label":"Padding","selectors":"%WRAPPER% .itinerary .wte-toggle-button-wrap","panel":"-itinerary-expand-","control":{"type":"spacing","style":"padding"}},"showAll":{"type":"boolean","label":"Always Show All Itinerary","panel":"-itinerary-","default":false,"control":{"type":"switch"}},"showBullets":{"type":"boolean","label":"Show Bullets","panel":"-itinerary-","default":true,"control":{"type":"switch"}},"iconColor":{"type":"object","label":"Icon Color","default":{"initial":"#147DFE"},"selectors":"%WRAPPER% .itinerary .itinerary-row","control":{"type":"color","labels":{"initial":{"label":"Icon","style":"--primary-color"}}},"panel":"-itinerary-"},"toggleSpacing":{"type":"string","label":"Toggle Spacing","panel":"-itinerary-","default":"0px","selectors":"%WRAPPER% .itinerary .itinerary-row .accordion-tabs-toggle .rotator","control":{"type":"range","style":"right","controlAttribute":{"min":0,"max":100}}},"itemSpacing":{"type":"string","label":"Items Spacing","panel":"-itinerary-","default":"48px","selectors":"%WRAPPER% .itinerary .itinerary-row","control":{"type":"range","style":"margin-bottom","controlAttribute":{"min":0,"max":100}}},"showDivider":{"type":"boolean","default":true,"label":"Divider","panel":"-itinerary-","control":{"type":"switch"}},"dividerColor":{"type":"object","label":"Divider Color","default":{"initial":"#040F1A1A"},"selectors":"%WRAPPER% .itinerary .itinerary-row","control":{"type":"color","labels":{"initial":{"label":"Divider","style":"border-color"}}},"panel":"-itinerary-"},"textColor":{"type":"string","default":"","selectors":["%WRAPPER% .itinerary","%WRAPPER% .itinerary .itinerary-content .itinerary-detail-additional-info span"]},"titleTypography":{"type":"object","label":"Typography","panel":"-title-","default":{},"selectors":[".itinerary .wte-itinerary-head-wrap .title",".itinerary .wte-itinerary-head-wrap .itinerary-title"],"control":{"type":"typography"}},"titleColor":{"type":"object","label":"Title Color","default":{"day":"#777777","initial":"#111111"},"control":{"type":"color","labels":{"day":{"label":"Day","style":"color","selectors":["%WRAPPER% .itinerary .wte-itinerary-head-wrap .title"]},"initial":{"label":"Title","style":"color","selectors":["%WRAPPER% .itinerary .wte-itinerary-head-wrap .itinerary-title"]}}},"panel":"-title-"},"titleBackground":{"type":"string","label":"Background","default":"","control":{"type":"color","style":"background-color"},"panel":"-title-","selectors":"%WRAPPER% .itinerary .itinerary-row .wte-itinerary-head-wrap"},"dayLabel":{"type":"boolean","label":"Day Label","panel":"-title-","default":true,"control":{"type":"switch"}},"titlePadding":{"type":"object","label":"Padding","default":{"top":"","right":"","bottom":"","left":""},"control":{"type":"spacing","style":"padding"},"panel":"-title-","selectors":"%WRAPPER% .itinerary .itinerary-row .wte-itinerary-head-wrap"},"contentBackground":{"type":"string","label":"Background","default":"","control":{"type":"color","style":"background-color"},"panel":"-content-","selectors":"%WRAPPER% .itinerary .itinerary-content"},"contentPadding":{"type":"object","label":"Padding","default":{"top":"","right":"","bottom":"","left":""},"control":{"type":"spacing","style":"padding"},"panel":"-content-","selectors":"%WRAPPER% .itinerary .itinerary-content"},"itineraryInfoColor":{"type":"object","default":{"text":"rgba(6, 22, 38, 0.6)","icon":"var(--primary-color)"},"label":"Color","panel":"-itinerary-info-","control":{"type":"color","labels":{"text":{"label":"Text","style":"color","selectors":"%WRAPPER% .itinerary .itinerary-detail-additional-info [class*=itinerary-]"},"icon":{"label":"Icon","style":"fill","selectors":"%WRAPPER% .itinerary .itinerary-detail-additional-info [class*=itinerary-]"}}}},"itineraryInfoLinkColor":{"type":"object","default":{"initial":"rgba(6, 22, 38, 0.6)","hover":"var(--primary-color)"},"label":"Link Color","panel":"-itinerary-info-","selectors":"%WRAPPER% .itinerary .itinerary-detail-additional-info > .itinerary-sleep-mode .label a","control":{"type":"color","labels":{"initial":{"label":"Initial","style":"color"},"hover":{"label":"Hover","style":"color:hover"}}}},"itineraryInfoBackground":{"type":"string","default":"","label":"Background","selectors":"%WRAPPER% .itinerary .itinerary-detail-additional-info","panel":"-itinerary-info-","control":{"type":"color","style":"background-color"}},"itineraryInfoBorder":{"type":"object","default":{"width":1,"style":"none","color":""},"label":"Border","selectors":"%WRAPPER% .itinerary .itinerary-detail-additional-info","panel":"-itinerary-info-","control":{"type":"border"}},"itineraryInfoRadius":{"type":"string","default":"0px","label":"Border Radius","selectors":"%WRAPPER% .itinerary .itinerary-detail-additional-info","panel":"-itinerary-info-","control":{"type":"range","style":"border-radius","controlAttribute":{"min":0,"max":100}}},"itineraryInfosGap":{"type":"string","default":"60px","label":"Items Gap","selectors":"%WRAPPER% .itinerary .itinerary-detail-additional-info","panel":"-itinerary-info-","control":{"type":"range","style":"--infos-gap","controlAttribute":{"min":0,"max":100}}},"itineraryInfoDivider":{"type":"boolean","default":false,"label":"Items Divider","panel":"-itinerary-info-","control":{"type":"switch"}},"itineraryInfoDividerColor":{"type":"string","default":"rgba(0, 0, 0, 0.07)","label":"Divider Color","panel":"-itinerary-info-","selectors":"%WRAPPER% .itinerary .itinerary-detail-additional-info.has-divider [class*=itinerary-]:not(:last-child)","control":{"type":"color","style":"border-color"}},"itineraryInfoPadding":{"type":"object","default":{"top":"","right":"","bottom":"","left":""},"label":"Padding","selectors":"%WRAPPER% .itinerary .itinerary-detail-additional-info","panel":"-itinerary-info-","control":{"type":"spacing","style":"padding"}},"itineraryInfoMargin":{"type":"object","default":{"top":"","right":"","bottom":"","left":""},"label":"Margin","selectors":"%WRAPPER% .itinerary .itinerary-detail-additional-info","panel":"-itinerary-info-","control":{"type":"spacing","style":"margin"}}},"textdomain":"wptravelengine","render":"file:./block.php"}')},7278:(e,t,r)=>{"use strict";r(1609),r(9643),r(8111),r(4232)},7310:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});var o=r(6354),n=r(3318),a=r(7604),i=r(5581),l=r(793),s=r(9760),c=r(134),d=r(6906);function p(e,t,r){void 0===r&&(r=!1);var p=(0,i.sb)(t),u=(0,i.sb)(t)&&function(e){var t=e.getBoundingClientRect(),r=(0,d.LI)(t.width)/e.offsetWidth||1,o=(0,d.LI)(t.height)/e.offsetHeight||1;return 1!==r||1!==o}(t),b=(0,s.A)(t),g=(0,o.A)(e,u,r),f={scrollLeft:0,scrollTop:0},m={x:0,y:0};return(p||!p&&!r)&&(("body"!==(0,a.A)(t)||(0,c.A)(b))&&(f=(0,n.A)(t)),(0,i.sb)(t)?((m=(0,o.A)(t,!0)).x+=t.clientLeft,m.y+=t.clientTop):b&&(m.x=(0,l.A)(b))),{x:g.left+f.scrollLeft-m.x,y:g.top+f.scrollTop-m.y,width:g.width,height:g.height}}},7364:(e,t,r)=>{"use strict";function o(){return{top:0,right:0,bottom:0,left:0}}r.d(t,{A:()=>o})},7382:(e,t,r)=>{"use strict";r.r(t),r.d(t,{edit:()=>c,metadata:()=>d});var o=r(1609),n=r(7723),a=r(4715),i=r(8504),l=r(7143),s=r(3582);const c=(...e)=>{const t=e[0],{attributes:r,setAttributes:c,context:{commentId:d}}=t,{border:p,borderRadius:u,boxShadow:b,margin:g,padding:f,textColor:m,background:h,alignment:y,fontSize:v}=r,w=["position","xOffset","yOffset","blur","spread","color"].map((e=>{var t,r;if("position"===e)return"inset"!==b[e]?"":"inset";if("color"===e)return null!==(r=b[e])&&void 0!==r?r:"";const o=null!==(t=b[e])&&void 0!==t?t:"";return""!==o?o:0})).join(" "),x=(0,a.useBlockProps)();let k=(0,l.useSelect)((e=>{const{getEntityRecord:t}=e(s.store),r=t("root","comment",d),o=r?.meta?.title;return null!=o?o:(0,n.__)("Awesome Trip")}),[d]);return(0,o.createElement)("div",{...x,style:{border:p?`${p.width||0}px ${p.style||"solid"} ${p.color||"transparent"}`:"none",borderRadius:u?`${u.bottom||0} ${u.left||0} ${u.right||0} ${u.top||0}`:"none",boxShadow:b?.enable?w:"none",paddingTop:f.top,paddingBottom:f.bottom,paddingLeft:f.left,paddingRight:f.right,marginTop:g.top,marginBottom:g.bottom,marginLeft:g.left,marginRight:g.right,color:m,background:h||"",textAlign:y,fontSize:v}},(0,o.createElement)("span",{className:"trip-block-review-title"},k),(0,o.createElement)(i.s,{group:"styles",...t}))},d=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"wptravelenginetripblocks/review-title","version":"1.0.0","title":"Review Title","category":"widgets","icon":"editor-textcolor","description":"Reviews","usesContext":["commentId"],"ancestor":["core/comments"],"attributes":{"alignment":{"type":"string","label":"Alignment","panel":"-reviewtitle-","control":{"type":"alignment","style":"text-align"},"default":"left","selectors":"%WRAPPER%"},"typography":{"type":"object","default":{"size":{"desktop":"18px","tablet":"18px","mobile":"18px"}}}},"supports":{"align":false,"wptravelenginetripblocks":{"colors":{"link":false},"panels":{"-reviewtitle-":{"title":"Review Title","icon":"admin-comments"}}}},"textdomain":"wptravelengine","render":"file:./block.php"}')},7388:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var o=r(1609),n=r(6427),a=r(8111);const i=r(9815).A.div`
.components-form-token-field__label{
visibility: hidden;
width: 0;
height: 0;
overflow: hidden;
position: absolute;
top: -99999999px;
z-index: -1;
}
.components-form-token-field__help{
font-size: 12px;
margin-bottom: 0;
}
.components-form-token-field__input-container{
border: 1px solid var(--cw__border-color);
border-radius: var(--cw__border-radius);
transition: var(--cw__transition);
min-height: 44px;
padding: 10px;
display: flex;
align-items: center;
position: relative;
&.is-active{
border-color: var(--cw__secondary-color);
}
input.components-form-token-field__input{
all: unset;
width: 100%;
min-width: 50px;
max-width: 100%;
display: inline-block;
flex: 1;
outline: none !important;
}
> .components-flex{
padding: 0;
gap: 8px;
}
.components-form-token-field__suggestions-list{
position: absolute;
max-height: 202px;
border: 1px solid var(--cw__border-color);
border-radius: var(--cw__border-radius);
padding: 6px;
list-style: none;
margin: 0;
width: 100%;
top: 100%;
margin-top: 10px;
box-shadow: 0px 4px 6px -2px #10182808, 0px 12px 16px -4px #10182814;
left: 0;
background: #ffffff;
li{
font-size: 14px;
color: #2b3034;
padding: 10.5px 8px;
cursor: default;
&:hover{
color: var(--cw__secondary-color);
}
}
}
.components-form-token-field__token{
display: inline-flex;
align-items: center;
color: #2b3034;
padding: 6px 12px;
background-color: #e5f0ff;
border-radius: var(--cw__border-radius);
gap: 4px;
.components-form-token-field__remove-token{
flex: 0 0 24px;
height: 24px;
width: 24px;
border: none;
padding: 0;
background: none;
transition: var(--cw__transition);
cursor: pointer;
border-radius: var(--cw__border-radius);
svg{
fill: currentColor;
}
&:hover{
background-color: #ff0e0e;
color: #ffffff;
}
}
}
}
`,l=e=>(0,o.createElement)(i,null,(0,o.createElement)(n.FormTokenField,{...e})),s=e=>(0,a.A)(l)(e)},7491:(e,t,r)=>{"use strict";r(1609),r(3627),r(4979);var o=r(9815);r(1266),o.A.div`
width: 100%;
position: relative;
.wc__sort-button{
padding: 0;
background-color: transparent;
font-size: 0;
border: none;
width: 12px;
height: 20px;
position: absolute;
left: 12px;
top: 50%;
transform: translateY(-50%);
cursor: move;
color: #42474B;
opacity: .5;
svg{
vertical-align: top;
width: 100%;
height: 100%;
}
&:hover{
color: var(--cw__secondary-color);
opacity: 1;
}
}
> .cw__control-item{
border: 1px solid var(--cw__border-color);
border-radius: var(--cw__border-radius);
padding: 12px;
padding-left: 34px;
background-color: #ffffff;
}
`},7504:(e,t,r)=>{"use strict";r.r(t),r.d(t,{edit:()=>c,metadata:()=>u,save:()=>p});var o=r(1609),n=r(4715),a=r(8504),i=r(2024);const l=[...["heading","paragraph","buttons","columns","list","separator","group"].map((e=>`core/${e}`)),...["trip-pricing","trip-discount-badge","booking-button","global-highlights"].map((e=>`wptravelenginetripblocks/${e}`))],s=[["wptravelenginetripblocks/trip-discount-badge"],["wptravelenginetripblocks/trip-pricing"],["wptravelenginetripblocks/global-highlights"],["wptravelenginetripblocks/trip-booking-button",{text:"Check Availability"}],["core/paragraph",{content:'Need help with booking? <a href="#wte_enquiry_form_scroll_wrapper">Send Us A Message</a>',align:"center"}]],c=e=>{const{attributes:t}=e,r=(0,n.useBlockProps)(),{children:c,...d}=(0,n.useInnerBlocksProps)(r,{allowedBlocks:l,template:s});return(0,o.createElement)("div",{...d},(0,o.createElement)("div",{className:"wpte-booking-inner-wrapper",style:(0,i.A)(t)},(0,o.createElement)(n.InnerBlocks,{allowedBlocks:l,template:s})),(0,o.createElement)(a.s,{...e}))};var d=r(7723);const p=({attributes:e})=>{const{formLayout:t}=e;return(0,o.createElement)("div",{...n.useBlockProps.save()},(0,o.createElement)("div",{className:`wpte-form-layout-${t}`},(0,o.createElement)("button",{type:"button",id:"wpte_price-toggle-btn-mb",className:"wpte_price-toggle-btn-mb","data-text":"3"===t?wteL10n?.currencySymbol:"","data-active-text":"1"===t?"Hide Prices":""},"1"===t&&(0,o.createElement)("span",{className:"current-text"},(0,d.__)("Show Prices","wptravelengine"))),(0,o.createElement)("div",{className:"wpte-booking-inner-wrapper",style:(0,i.A)(e)},"3"===t&&(0,o.createElement)("button",{type:"button",id:`wpte_price-toggle-btn-mb-layout-${t}`,className:`wpte_price-toggle-btn-mb-layout-${t}`}),(0,o.createElement)("div",{className:"wpte-booking",...n.useInnerBlocksProps.save()}))))},u=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"wptravelenginetripblocks/booking","version":"1.0.0","title":"Trip Booking","icon":"cart","category":"widgets","description":"Display essential trip details, including price, discount, highlights and availability button.","script":[],"example":{},"textdomain":"wptravelengine","attributes":{"formLayout":{"type":"string","default":"1","control":{"type":"select","controlAttribute":{"description":"Pricing Widget Layouts (For smaller devices)","options":[{"value":"1","label":"Layout 1"},{"value":"2","label":"Layout 2"},{"value":"3","label":"Layout 3"}]}},"panel":"-form-"},"boxShadow":{"type":"object","default":{"enable":true,"xOffset":"4px","yOffset":"6px","blur":"12px","spread":"0px","color":"rgba(94, 70, 8, 0.2)"}}},"supports":{"align":false,"wptravelenginetripblocks":{"typography":false,"panels":{"-form-":{"title":"Layout"}}}}}')},7604:(e,t,r)=>{"use strict";function o(e){return e?(e.nodeName||"").toLowerCase():null}r.d(t,{A:()=>o})},7616:(e,t,r)=>{"use strict";r.r(t),r.d(t,{edit:()=>s,metadata:()=>c});var o=r(1609),n=r(4871),a=r.n(n),i=r(4715),l=r(8504);const s=(...e)=>{const t=e[0],{attributes:r,setAttributes:n}=t,s=(0,i.useBlockProps)();return(0,o.createElement)("div",{...s},(0,o.createElement)(a(),{block:"wptravelenginetripblocks/stars-bar-graph",attributes:{...r,editor:!0}}),(0,o.createElement)(l.s,{group:"styles",...t}))},c=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"wptravelenginetripblocks/stars-bar-graph","version":"1.0.0","title":"Stars Bar Graph","category":"widgets","icon":"chart-bar","description":"Transform customer ratings into an easy-to-understand bar graph.","script":[],"attributes":{"typography":{"type":"object","selectors":"%WRAPPER% .trip-stars-bar-graph"},"starsBar":{"type":"object","label":"Colors","default":{"very-happy":"#66DAB0","happy":"#6FEBA1","neutral":"#F3CE85","sad":"#F3B881","angry":"#EE7874","background":"#f1f1f1"},"control":{"type":"color","labels":{"very-happy":{"label":"Five Stars","variableName":"--progress-color","selectors":"%WRAPPER% .progress-bar-very-happy"},"happy":{"label":"Four Stars","variableName":"--progress-color","selectors":"%WRAPPER% .progress-bar-happy"},"neutral":{"label":"Three Stars","variableName":"--progress-color","selectors":"%WRAPPER% .progress-bar-neutral"},"sad":{"label":"Two Stars","variableName":"--progress-color","selectors":"%WRAPPER% .progress-bar-sad"},"angry":{"label":"One Star","variableName":"--progress-color","selectors":"%WRAPPER% .progress-bar-angry"},"background":{"label":"Background","style":"background-color","selectors":"%WRAPPER% .trip-stars-bar-progress-bar"}},"controlAttribute":{"direction":"inline"}},"panel":"-starbars-"},"progressBarWeight":{"type":"string","label":"Weight","panel":"-starbars-","default":"12px","control":{"type":"range","style":"bar-weight","controlAttribute":{"units":[{"unit":"px","min":1,"max":50},{"unit":"em","min":1,"max":10},{"unit":"rem","min":1,"max":10}]}},"selectors":"%WRAPPER% .trip-stars-bar-graph"},"itemsGap":{"type":"string","label":"Items Gap","panel":"-starbars-","default":"16px","control":{"type":"range","style":"items-gap","controlAttribute":{"units":[{"unit":"px","min":1,"max":50},{"unit":"em","min":1,"max":10},{"unit":"rem","min":1,"max":10}]}},"selectors":"%WRAPPER% .trip-stars-bar-graph"},"textWidth":{"type":"string","panel":"-starbars-","default":"100px","control":{"type":"range","style":"min-width","controlAttribute":{"description":"Minimum width of rating scale text.","units":[{"unit":"px","min":1,"max":300},{"unit":"em","min":1,"max":5}]}},"selectors":"%WRAPPER% .trip-stars-bar-text"},"showIcon":{"type":"boolean","label":"Show Icon","default":true,"control":{"type":"switch"},"panel":"-additional-"},"showText":{"type":"boolean","label":"Show Text","default":true,"control":{"type":"switch"},"panel":"-additional-"},"showPercent":{"type":"boolean","label":"Show Percentage","default":true,"control":{"type":"switch"},"panel":"-additional-"}},"supports":{"align":false,"wptravelenginetripblocks":{"colors":{"link":false},"panels":{"-starbars-":{"title":"Progress Bar","icon":"star-filled"},"-additional-":{"title":"Additional"}}}},"textdomain":"wptravelengine","render":"file:./block.php"}')},7720:(e,t,r)=>{"use strict";r(1609),r(6087);var o=r(9815);r(6427),r(8111),r(1266),r(8468),r(7723),o.A.div`
.components-button {
min-height: 43px;
display: flex;
align-items: center;
justify-content: center;
width: 100%;
font-size: 14px;
line-height: 18.6px;
padding: 10px 16px;
border: none;
background-color: var(--cw__background-color);
color: var(--cw__secondary-color);
gap: 8px;
cursor: pointer;
border-radius: var(--cw__border-radius);
transition: var(--cw__transition);
background-image: none;
svg {
font-size: 24px;
width: 1em;
height: 1em;
fill: none;
}
&:hover {
background-color: var(--cw__secondary-color);
color: #ffffff;
}
}
.cw__media-preview {
text-align: center;
border-radius: var(--cw__border-radius);
border: 2px dashed var(--cw__secondary-color);
position: relative;
padding: 16px;
img {
max-width: 100%;
border-radius: var(--cw__border-radius);
margin: 0 auto;
max-height: 142px;
}
.cw__media-remove-button {
display: flex;
border-radius: 50%;
color: #ff3e60;
background: #ffffff;
border: none;
padding: 0;
cursor: pointer;
position: absolute;
right: 0;
top: 0;
transform: translate(50%, -50%);
z-index: 1;
svg {
width: 16px;
height: 16px;
}
&:hover {
outline: 1px solid #ff3e60;
outline-offset: 2px;
}
}
.cw__media-replace-button {
border-radius: var(--cw__border-radius);
color: var(--cw__secondary-color);
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(255, 255, 255, 0.8);
border: none;
cursor: pointer;
visibility: hidden;
opacity: 0;
transition: var(--cw__transition);
display: flex;
justify-content: center;
align-items: center;
svg {
width: 14px;
height: 15px;
}
}
&:hover {
.cw__media-replace-button {
visibility: visible;
opacity: 1;
}
}
}
`},7723:e=>{"use strict";e.exports=window.wp.i18n},7725:(e,t,r)=>{"use strict";r(1609),r(6087),r(9643);var o=r(9815);r(8111),r(1266),r(8601),o.A.div`
.cw__palette-label {
display: block;
font-size: 13px;
font-weight: 600;
margin: 0 0 8px;
}
.cw__color-palette-option {
&:not(:last-child) {
margin-bottom: 13px;
}
.cw__color-palette-swatches-inner {
gap: 2px;
}
}
`},7793:(e,t,r)=>{"use strict";r(1609),r(1266),r(9643),r(8111),r(4232)},7855:(e,t,r)=>{"use strict";r(1609)},7999:(e,t,r)=>{"use strict";r.r(t),r.d(t,{edit:()=>s,metadata:()=>c});var o=r(1609),n=r(4871),a=r.n(n),i=r(4715),l=r(8504);const s=(...e)=>{const t=e[0],{attributes:r,setAttributes:n}=t,s=(0,i.useBlockProps)();return(0,o.createElement)("div",{...s},(0,o.createElement)(a(),{block:"wptravelenginetripblocks/trip-ratings",attributes:{...r,editor:!0}}),(0,o.createElement)(l.s,{group:"styles",...t}))},c=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"wptravelenginetripblocks/trip-ratings","version":"1.0.0","title":"Trip Ratings","category":"widgets","icon":"star-half","description":"Display average customer ratings, whether a perfect five or a solid 4.","script":[],"attributes":{"alignment":{"type":"string","label":"Alignment","panel":"-ratings-","control":{"type":"alignment","style":"text-align"},"default":"center","selectors":"%WRAPPER% .trip-rating-container"},"typography":{"type":"object","default":{"size":{"desktop":"32px","tablet":"32px","mobile":"32px"}}}},"supports":{"align":false,"wptravelenginetripblocks":{"colors":{"background":true,"text":true,"link":false},"panels":{"-ratings-":{"title":"Ratings","icon":"star-filled"}}}},"textdomain":"wptravelengine","render":"file:./block.php"}')},8066:(e,t,r)=>{"use strict";r.r(t),r.d(t,{edit:()=>s,metadata:()=>c});var o=r(1609),n=(r(7723),r(4715)),a=r(4871),i=r.n(a),l=r(8504);const s=(...e)=>{const t=e[0],{attributes:r,setAttributes:a}=t,s=(0,n.useBlockProps)();return(0,o.createElement)("div",{...s},(0,o.createElement)(i(),{block:"wptravelenginetripblocks/trip-duration",attributes:{...r,editor:!0}}),(0,o.createElement)(l.s,{group:"styles",...t}))},c=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"wptravelenginetripblocks/trip-duration","version":"1.0.0","icon":"calendar","title":"Trip Duration","category":"widgets","description":"Use the Trip Duration block to show your trip duration.","example":{},"script":[],"attributes":{"textColor":{"type":"string","default":"#000000","selectors":"%WRAPPER% .wte-title-duration"},"background":{"type":"string","default":"#ffffff","selectors":"%WRAPPER% .wte-title-duration"},"padding":{"type":"object","selectors":"%WRAPPER% .wte-title-duration"},"margin":{"type":"object","selectors":"%WRAPPER% .wte-title-duration"},"border":{"type":"object","selectors":"%WRAPPER% .wte-title-duration"},"boxShadow":{"type":"object","selectors":"%WRAPPER% .wte-title-duration","default":{"enable":true,"xOffset":"0px","yOffset":"4px","blur":"8px","spread":"0px","position":"outline","color":"rgba(0,0,0, 0.3)"}},"borderRadius":{"type":"object","selectors":"%WRAPPER% .wte-title-duration"},"durationTypography":{"type":"object","label":"Typography","selectors":"%WRAPPER% .wte-title-duration .duration","default":{},"control":{"type":"typography"},"panel":"-duration-"},"durationColors":{"type":"object","default":{"textColor":"#ffffff","background":"#147dfe"},"label":"Color","selectors":"%WRAPPER% .wte-title-duration .duration","control":{"type":"color","labels":{"textColor":{"label":"Text","style":"color"},"background":{"label":"Background","style":"background-color"}}},"panel":"-duration-"},"durationBorder":{"type":"object","label":"Border","default":{"color":"","width":"1","style":"none"},"selectors":"%WRAPPER% .wte-title-duration .duration","control":{"type":"border"},"panel":"-duration-"},"alignment":{"type":"string","label":"Alignment","panel":"-duration-","control":{"type":"alignment","style":"justify-content"},"default":"left","selectors":"%WRAPPER% .wte-duration-container"},"durationPadding":{"type":"object","label":"Padding","panel":"-duration-","control":{"type":"spacing","style":"padding","controlAttribute":{"units":[{"unit":"px","min":0,"max":50}]}},"default":{"top":"0px","right":"16px","bottom":"0px","left":"16px"},"selectors":"%WRAPPER% .wte-duration-container .wte-title-duration .duration"}},"supports":{"align":false,"wptravelenginetripblocks":{"colors":{"link":false},"border":true,"spacing":{"margin":true,"padding":true},"panels":{"-duration-":{"title":"Duration","icon":"calendar"}}}},"textdomain":"wptravelengine","render":"file:./block.php"}')},8075:(e,t,r)=>{"use strict";r(1609),r(6427),r(8111),r(9291)},8101:(e,t,r)=>{"use strict";function o(e){return e.split("-")[1]}r.d(t,{A:()=>o})},8111:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var o=r(1609),n=r(9815),a=r(6087),i=r(9643),l=r(1266);const s=n.A.div`
color: var(--cw__primary-color);
padding: 16px 0;
width: 100%;
* {
box-sizing: border-box;
}
.cw__control-item {
padding: 0;
width: unset;
}
&[data-divider*="top"] {
border-top: 1px solid var(--cw__background-color);
padding-top: 16px;
}
&[data-divider*="bottom"] {
border-bottom: 1px solid var(--cw__background-color);
padding-bottom: 16px;
}
> header {
&:not(:empty) {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.5rem;
flex: 1;
}
label {
margin: 0;
font-size: 14px;
font-weight: 600;
position: relative;
display: inline-flex;
align-items: center;
color: #2b3034;
}
.cw__action-buttons {
display: flex;
align-items: center;
gap: 8px;
}
}
&:not(.horizontal) {
> header {
margin: 0 0 16px;
}
}
.cw__control-description {
flex: 0 0 100%;
margin: 0 0 16px;
font-size: 13px;
line-height: 1.5;
}
header + .cw__control-description{
margin-top: 12px;
}
.cw__reset-button {
display: inline-block;
padding: 0;
width: 16px;
height: 16px;
border: none;
background: none;
background-image: url("data:image/svg+xml,%3Csvg width='13' height='13' viewBox='0 0 13 13' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.93963 2.09581C2.49505 1.53695 3.15568 1.09348 3.88342 0.790986C4.61115 0.488489 5.3916 0.332942 6.17978 0.333314C9.49685 0.333314 12.176 3.01831 12.176 6.33331C12.176 9.64831 9.49685 12.3333 6.17978 12.3333C3.38053 12.3333 1.04657 10.4208 0.378653 7.83331H1.93963C2.24877 8.71045 2.82267 9.4701 3.58215 10.0074C4.34162 10.5448 5.24924 10.8333 6.17978 10.8333C8.66383 10.8333 10.6826 8.81581 10.6826 6.33331C10.6826 3.85081 8.66383 1.83331 6.17978 1.83331C4.934 1.83331 3.82331 2.35081 3.0128 3.16831L5.42931 5.58331H0.176025V0.333314L1.93963 2.09581Z' fill='%2393999F'/%3E%3C/svg%3E%0A");
background-repeat: no-repeat;
background-position: center;
background-size: 100%;
font-size: 0;
cursor: pointer;
transition: var(--cw__transition);
&:hover {
transform: rotate(-30deg);
}
}
.cw__visibility-button {
display: inline-block;
padding: 0;
width: 16px;
height: 16px;
border: none;
background: none;
background-image: url("data:image/svg+xml,%3Csvg width='19' height='14' viewBox='0 0 19 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9.16667 10.75C10.2083 10.75 11.0938 10.3854 11.8229 9.65625C12.5521 8.92708 12.9167 8.04167 12.9167 7C12.9167 5.95833 12.5521 5.07292 11.8229 4.34375C11.0938 3.61458 10.2083 3.25 9.16667 3.25C8.125 3.25 7.23958 3.61458 6.51042 4.34375C5.78125 5.07292 5.41667 5.95833 5.41667 7C5.41667 8.04167 5.78125 8.92708 6.51042 9.65625C7.23958 10.3854 8.125 10.75 9.16667 10.75ZM9.16667 9.25C8.54167 9.25 8.01042 9.03125 7.57292 8.59375C7.13542 8.15625 6.91667 7.625 6.91667 7C6.91667 6.375 7.13542 5.84375 7.57292 5.40625C8.01042 4.96875 8.54167 4.75 9.16667 4.75C9.79167 4.75 10.3229 4.96875 10.7604 5.40625C11.1979 5.84375 11.4167 6.375 11.4167 7C11.4167 7.625 11.1979 8.15625 10.7604 8.59375C10.3229 9.03125 9.79167 9.25 9.16667 9.25ZM9.16667 13.25C7.13889 13.25 5.29167 12.684 3.625 11.5521C1.95833 10.4201 0.75 8.90278 0 7C0.75 5.09722 1.95833 3.57986 3.625 2.44792C5.29167 1.31597 7.13889 0.75 9.16667 0.75C11.1944 0.75 13.0417 1.31597 14.7083 2.44792C16.375 3.57986 17.5833 5.09722 18.3333 7C17.5833 8.90278 16.375 10.4201 14.7083 11.5521C13.0417 12.684 11.1944 13.25 9.16667 13.25Z' fill='%2342474B'/%3E%3C/svg%3E%0A");
background-repeat: no-repeat;
background-position: center;
background-size: 100%;
font-size: 0;
cursor: pointer;
transition: var(--cw__transition);
}
.cw__reset-button + .cw__responsive-buttons {
position: relative;
padding-left: 10px;
&::before {
content: "";
width: 0;
height: 14px;
border-left: 2px solid var(--cw__border-color);
position: absolute;
top: 50%;
left: 0;
transform: translateY(-50%);
}
}
&.horizontal {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
column-gap: 8px;
// > section {
// max-width: 150px;
// }
.cw__custom-select {
.cw__select-dropdown {
left: auto;
right: 0;
}
}
.cw__color-picker-popover {
right: 0;
}
> header > .cw__action-buttons {
padding-right: 10px;
position: relative;
&::after {
content: "";
width: 0;
height: 14px;
border-right: 2px solid var(--cw__border-color);
position: absolute;
top: 50%;
right: 0;
transform: translateY(-50%);
}
}
}
`,c=n.A.div`
display: inline-flex;
align-items: center;
gap: 0.25rem;
.cw__responsive-button {
font-size: 15px;
cursor: pointer;
color: var(--cw__inactive-color);
transition: var(--cw__transition);
padding: 0;
border: none;
background: none;
svg {
width: 1em;
height: 1em;
vertical-align: -0.12em;
}
&:hover,
&.active {
color: var(--cw__secondary-color);
}
}
`,d=n.A.i`
margin: 0 8px;
`,p=({device:e,onChange:t})=>(0,o.createElement)(c,{className:"cw__responsive-buttons"},(0,o.createElement)("button",{className:"cw__responsive-button"+("desktop"===e?" active":""),onClick:()=>t("desktop"),title:"Desktop"},l.A.desktop),(0,o.createElement)("button",{className:"cw__responsive-button"+("tablet"===e?" active":""),onClick:()=>t("tablet"),title:"Tablet"},l.A.tablet),(0,o.createElement)("button",{className:"cw__responsive-button"+("mobile"===e?" active":""),onClick:()=>t("mobile"),title:"Mobile"},l.A.mobile)),u=e=>({direction:t,className:r,label:n,divider:c,description:u,value:b,defaultValue:g,onChange:f,responsive:m,isChildren:h,visibility:y,setVisibility:v,help:w,children:x,hideResetButton:k=!0,containerStyle:E,...R})=>{let A=(0,a.useRef)(null);null==A.current&&(A.current=b);const[_,C]=(0,a.useState)("desktop"),P=JSON.stringify(g||A.current),S=JSON.stringify(b);return(0,o.createElement)(s,{className:`cw__control-item ${t||""} ${r||""}`,"data-visibility":!!y&&"hidden","data-divider":c},n&&(0,o.createElement)("header",null,(0,o.createElement)("label",null,n,w&&(0,o.createElement)(i.m_,{title:w},(0,o.createElement)(d,null,l.A.help))),(y||!k&&!h&&P!==S||m)&&(0,o.createElement)("div",{className:"cw__action-buttons"},!k&&(0,o.createElement)(o.Fragment,null,!h&&P!==S&&(0,o.createElement)("button",{tabIndex:0,className:"cw__reset-button",onClick:()=>f(A.current)},"Reset")),m&&(0,o.createElement)(p,{onChange:C,device:_}),y&&(0,o.createElement)("button",{className:"cw__visibility-button",onClick:()=>{v(!y)}},"Visibility"))),u&&"horizontal"!==t&&(0,o.createElement)("div",{className:"cw__control-description"},u),(0,o.createElement)("section",{className:r||"",style:E},(0,o.createElement)(e,{changed:P!==S?1:0,value:m?b[_]:b,onChange:e=>{return t=e,void f(m?{...b,[_]:t}:t);var t},...R}),x),u&&"horizontal"===t&&(0,o.createElement)("div",{className:"cw__control-description",style:{margin:"16px 0 0"}},u))}},8123:(e,t,r)=>{"use strict";r(1609);var o=r(9815);o.A.div`
margin-bottom: 16px;
label.cw__group-label{
display: block;
margin: 0 0 16px;
font-size: 14px;
font-weight: 600;
color: #2b3034;
}
`,o.A.div`
padding: 12px;
border: 1px solid var(--cw__border-color);
border-radius: var(--cw__border-radius);
> .cw__control-description{
margin: 12px 0 0 !important;
font-size: 13px;
font-weight: 500;
line-height: 1.5;
color: #2b3034;
padding: 4px 8px;
border-radius: var(--cw__border-radius);
background-color: var(--cw__background-color);
}
> .cw__control-item{
padding-top: 8px !important;
padding-bottom: 8px !important;
&:not(.horizontal){
> header{
margin-bottom: 8px;
}
}
> .cw__control-description{
margin: 8px 0;
}
&:first-of-type{
padding-top: 0 !important;
border-top: 0 !important;
}
&:last-of-type{
padding-bottom: 0 !important;
border-bottom: 0 !important;
}
}
`},8168:(e,t,r)=>{"use strict";function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},o.apply(null,arguments)}r.d(t,{A:()=>o})},8184:()=>{},8225:(e,t,r)=>{"use strict";r.d(t,{A:()=>b});var o=r(1609),n=r(8111),a=r(9815),i=r(9643);const l=a.A.label`
display: inline-flex;
align-items: center;
justify-content: center;
position: relative;
margin: 0;
padding: 10px;
border-radius: var(--cw__border-radius);
background-color: var(--cw__background-color);
color: var(--cw__inactive-color);
cursor: pointer;
text-align: center;
font-size: 14px;
font-weight: 600;
transition: var(--cw__transition);
.cw__select-button {
position: absolute;
inset-block-start: 0;
inset-inline-start: 0;
width: 100%;
height: 100%;
z-index: -1;
}
.cw__icon {
display: flex;
svg {
height: 1em;
vertical-align: -0.12em;
}
}
.cw__icon + span {
margin-left: 0.25rem;
}
.cw__select-button-input {
width: 0;
height: 0;
opacity: 0;
pointer-events: none;
}
&.cw__select-button-wrapper-checked {
background-color: var(--cw__secondary-color);
color: #ffffff;
}
`,s=a.A.div`
padding: 6px;
border-radius: var(--cw__border-radius);
background-color: var(--cw__background-color);
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.5rem;
&.sm {
padding: 4px;
}
> * {
flex: 1;
gap: 6px;
}
.cw__select-button {
width: 100%;
&:hover{
background-color: #ffffff;
}
&.cw__select-button-checked {
background-color: #ffffff;
color: var(--cw__secondary-color);
box-shadow: var(--cw__box-shadow);
}
}
&.cw__separate {
padding: 0;
background: none;
border-radius: 0;
gap: 15px;
.cw__select-button {
border: 1px solid var(--cw__border-color);
background: none;
&.cw__select-button-checked {
border-color: var(--cw__secondary-color);
box-shadow: none;
}
}
}
`,c=a.A.ul`
list-style: none;
padding: 0;
margin: 0;
display: flex;
flex-wrap: wrap;
flex-direction: column;
gap: 8px;
column-gap: 12px;
input {
margin: 0;
}
label {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 4px;
font-size: 14px;
}
${e=>e.inline&&"\n flex-direction: row;\n "}
`,d={sm:"14px",md:"16px",lg:"18px",xl:"20px"},p=({value:e,label:t,checked:r,icon:n,onChange:a,title:s,size:c,...p})=>{const{style:u,...b}={...p};return(0,o.createElement)(i.m_,{title:s},(0,o.createElement)(l,{tabIndex:0,className:"cw__select-button"+(r?" cw__select-button-checked":""),onKeyDown:t=>{"keydown"===t.type&&"Enter"===t.key&&a(e)},style:{fontSize:d[c],...u}},(0,o.createElement)("span",{className:"cw__select-button"},(0,o.createElement)("input",{tabIndex:-1,className:"cw__select-button-input",type:"checkbox",value:e,checked:r,onChange:a,...b})),n&&(0,o.createElement)("span",{className:"cw__icon"},n),t&&(0,o.createElement)("span",null,t)))},u=({options:e,className:t,onChange:r,value:n,separate:a,isMultiple:i,size:l,type:d,inline:u,...b})=>{const g=e=>()=>{r(i?n.includes(e)?n.filter((t=>t!=e)):[...n,e]:e)};return"radio"==d?(0,o.createElement)(c,{inline:u},e?.map((({value:e,label:t,id:a,...i},l)=>(0,o.createElement)("li",{key:l},(0,o.createElement)("label",{htmlFor:a},(0,o.createElement)("input",{type:"radio",checked:n===e,id:a,...i,onChange:()=>r(e)}),t))))):(0,o.createElement)(s,{className:`cw__select-button-group ${t||""} ${a?"cw__separate":""} ${l||""}`},e.map((({value:e,...t},r)=>{const a=i?n.includes(e):n===e,{...s}={...b,...t};return(0,o.createElement)(p,{key:r,size:l,value:e,checked:a,onChange:g(e),...s})})))},b=e=>(0,n.A)(u)({...e,direction:!1})},8256:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var o=r(2632),n=r(6979),a=r(5446),i=r(5128),l=r(9703),s=r(6523),c=r(4318),d=r(1007),p=r(4278);const u={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,a=e.name,u=e.options,b=r.elements.arrow,g=r.modifiersData.popperOffsets,f=(0,o.A)(r.placement),m=(0,l.A)(f),h=[p.kb,p.pG].indexOf(f)>=0?"height":"width";if(b&&g){var y=function(e,t){return e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e,(0,c.A)("number"!=typeof e?e:(0,d.A)(e,p.OM))}(u.padding,r),v=(0,n.A)(b),w="y"===m?p.Mn:p.kb,x="y"===m?p.sQ:p.pG,k=r.rects.reference[h]+r.rects.reference[m]-g[m]-r.rects.popper[h],E=g[m]-r.rects.reference[m],R=(0,i.A)(b),A=R?"y"===m?R.clientHeight||0:R.clientWidth||0:0,_=k/2-E/2,C=y[w],P=A-v[h]-y[x],S=A/2-v[h]/2+_,B=(0,s.u)(C,S,P),W=m;r.modifiersData[a]=((t={})[W]=B,t.centerOffset=B-S,t)}},effect:function(e){var t=e.state,r=e.options.element,o=void 0===r?"[data-popper-arrow]":r;null!=o&&("string"!=typeof o||(o=t.elements.popper.querySelector(o)))&&(0,a.A)(t.elements.popper,o)&&(t.elements.arrow=o)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}},8376:(e,t,r)=>{"use strict";r(1609);var o=r(9815);r(4232),r(9643),r(8111),r(1266),r(8225),o.A.div`
.cw__control-item {
&.cw__divider-top {
margin-top: 12px;
padding-top: 12px;
}
}
`,o.A.div`
display: flex;
align-items: center;
gap: 8px;
.cw__control-item{
margin: 0 !important;
padding: 0 !important;
}
`},8468:e=>{"use strict";e.exports=window.lodash},8490:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var o=r(2632),n=r(4278);const a={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,a=e.name,i=r.offset,l=void 0===i?[0,0]:i,s=n.DD.reduce((function(e,r){return e[r]=function(e,t,r){var a=(0,o.A)(e),i=[n.kb,n.Mn].indexOf(a)>=0?-1:1,l="function"==typeof r?r(Object.assign({},t,{placement:e})):r,s=l[0],c=l[1];return s=s||0,c=(c||0)*i,[n.kb,n.pG].indexOf(a)>=0?{x:c,y:s}:{x:s,y:c}}(r,t.rects,l),e}),{}),c=s[t.placement],d=c.x,p=c.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=d,t.modifiersData.popperOffsets.y+=p),t.modifiersData[a]=s}}},8504:(e,t,r)=>{"use strict";r.d(t,{s:()=>o.A});var o=r(6893)},8601:(e,t,r)=>{"use strict";r(1609);var o=r(9815);r(9643),r(4232),o.A.div`
padding: 10px;
border: 1px solid var(--cw__border-color);
border-radius: var(--cw__border-radius);
display: flex;
align-items: center;
padding-right: 24px;
position: relative;
cursor: pointer;
.cw__color-palette-swatches-inner {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 4px;
.cw__control-item {
margin: 0 !important;
}
}
.cw__color-palette-swatch,
.cw__color-picker-trigger .cw__color-picker-color-block {
width: 25px;
height: 25px;
border: 1px solid var(--cw__border-color);
border-radius: 50%;
}
.cw__dropdown-button-wrapper {
position: absolute;
top: 50%;
right: 10px;
transform: translateY(-50%);
}
.dropdown-button {
padding: 0;
background: none;
border: none;
width: 12px;
height: 12px;
cursor: pointer;
color: #a3b1bf;
}
&.selected {
&::after {
content: "";
width: 14px;
height: 14px;
background-image: url("data:image/svg+xml,%3Csvg width='14' height='15' viewBox='0 0 14 15' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='7' cy='7.5' r='6.74' fill='%23216BDB' stroke='%23216BDB' stroke-width='0.52'/%3E%3Cg clip-path='url(%23clip0_336_1961)'%3E%3Cpath d='M5.40589 11.2598L2.44189 8.29584L3.18289 7.55484L5.40589 9.77784L10.1769 5.00684L10.9179 5.74784L5.40589 11.2598Z' fill='white'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_336_1961'%3E%3Crect width='9.36' height='6.76' fill='white' transform='translate(2 4.5)'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E%0A");
background-size: 14px 14px;
background-repeat: no-repeat;
position: absolute;
top: 50%;
right: 10px;
transform: translateY(-50%);
}
}
&.has-dropdown {
cursor: default;
}
`},8848:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var o=r(9760),n=r(271),a=r(793),i=r(222),l=r(6906);function s(e){var t,r=(0,o.A)(e),s=(0,i.A)(e),c=null==(t=e.ownerDocument)?void 0:t.body,d=(0,l.T9)(r.scrollWidth,r.clientWidth,c?c.scrollWidth:0,c?c.clientWidth:0),p=(0,l.T9)(r.scrollHeight,r.clientHeight,c?c.scrollHeight:0,c?c.clientHeight:0),u=-s.scrollLeft+(0,a.A)(e),b=-s.scrollTop;return"rtl"===(0,n.A)(c||r).direction&&(u+=(0,l.T9)(r.clientWidth,c?c.clientWidth:0)-d),{width:d,height:p,x:u,y:b}}},8858:(e,t,r)=>{"use strict";r.r(t),r.d(t,{edit:()=>l,metadata:()=>s});var o=r(1609),n=r(4715),a=(r(7723),r(8504)),i=r(2024);function l(e){const t=(0,n.useBlockProps)(),{attributes:r,setAttributes:l}=e,{dateLabel:s,availabilityLabel:c,priceLabel:d,spaceLabel:p,bookingLabel:u,dateColumn:b,availabilityColumn:g,priceColumn:f,spaceColumn:m,dateFormat:h,startDate:y,endDate:v,buttonPadding:w,buttonMargin:x,buttonBorder:k,buttonRadius:E,buttonColor:R,buttonbgColor:A,buttonBoxShadow:_,dateIcon:C,customDateFormat:P,textColor:S,background:B,padding:W,margin:j,border:T,borderRadius:L,boxShadow:D}=r,O=["position","xOffset","yOffset","blur","spread","color"],M=O.map((e=>{var t,r;if("position"===e)return"inset"!==_[e]?"":"inset";if("color"===e)return null!==(r=_[e])&&void 0!==r?r:"";const o=null!==(t=_[e])&&void 0!==t?t:"";return""!==o?o:0})).join(" "),N=(O.map((e=>{var t,r;if("position"===e)return"inset"!==D[e]?"":"inset";if("color"===e)return null!==(r=D[e])&&void 0!==r?r:"";const o=null!==(t=D[e])&&void 0!==t?t:"";return""!==o?o:0})).join(" "),[{id:"1",startDate:"March 6, 2024",endDate:"March 8, 2024",availability:"Guaranteed",price:"$1200",spaceLeft:"5 Available"},{id:"2",startDate:"April 5, 2024",endDate:"April 7, 2024",availability:"Guaranteed",price:"$1300",spaceLeft:"6 Available"}]);let I={},z={};return N.forEach((e=>{let t="";t="custom"==h?wteL10n.helpers.phpToMomentDF(P):wteL10n.helpers.phpToMomentDF(h),I[e.id]=moment(e.startDate).format(t),z[e.id]=moment(e.endDate).format(t)})),(0,o.createElement)("div",{...t,style:(0,i.A)(r)},(0,o.createElement)("div",{className:"wte-fsd-frontend-holders",id:"nestable1"},(0,o.createElement)("div",{className:"dd-list outer"},(0,o.createElement)("table",null,(0,o.createElement)("thead",null,(0,o.createElement)("tr",null,b&&(0,o.createElement)("th",{style:{color:S.initial}},(0,o.createElement)(n.RichText,{...t,onChange:e=>l({dateLabel:e}),value:s,placeholder:s})),g&&(0,o.createElement)("th",{style:{color:S.initial}},(0,o.createElement)(n.RichText,{...t,onChange:e=>l({availabilityLabel:e}),value:c,placeholder:c})),f&&(0,o.createElement)("th",{style:{color:S.initial}},(0,o.createElement)(n.RichText,{...t,onChange:e=>l({priceLabel:e}),value:d,placeholder:d})),m&&(0,o.createElement)("th",{style:{color:S.initial}},(0,o.createElement)(n.RichText,{...t,onChange:e=>l({spaceLabel:e}),value:p,placeholder:p})),(0,o.createElement)("th",null))),(0,o.createElement)("tbody",null,N.map(((e,a)=>{var s,c,d,p;return(0,o.createElement)("tr",{style:{display:"table-row"},key:a},b&&(0,o.createElement)("td",{className:"accordion-sdate"},(y||v)&&(0,o.createElement)("svg",{style:{color:C.initial},fill:"currentColor","data-prefix":"far","data-icon":"calendar",xmlns:"http://www.w3.org/2000/svg",className:"svg-inline--fa",viewBox:"0 0 448 512",height:"24",width:"24"},(0,o.createElement)("path",{d:"M152 64H296V24C296 10.75 306.7 0 320 0C333.3 0 344 10.75 344 24V64H384C419.3 64 448 92.65 448 128V448C448 483.3 419.3 512 384 512H64C28.65 512 0 483.3 0 448V128C0 92.65 28.65 64 64 64H104V24C104 10.75 114.7 0 128 0C141.3 0 152 10.75 152 24V64zM48 448C48 456.8 55.16 464 64 464H384C392.8 464 400 456.8 400 448V192H48V448z"})),y&&(0,o.createElement)("span",{style:{color:S.initial},className:"start-date"},Object.values(I)[e.id-1]),y&&v&&" - ",v&&(0,o.createElement)("span",{style:{color:S.initial},className:"end-date"},Object.values(z)[e.id-1])),g&&(0,o.createElement)("td",{className:"accordion-availability"},(0,o.createElement)("span",{style:{color:S.initial}},e.availability)),f&&(0,o.createElement)("td",{className:"accordion-cost"},(0,o.createElement)("svg",{style:{color:C.initial},fill:"currentColor","data-prefix":"fas","data-icon":"tag",xmlns:"http://www.w3.org/2000/svg",className:"svg-inline--fa",viewBox:"0 0 448 512",height:"24",width:"24"},(0,o.createElement)("path",{d:"M48 32H197.5C214.5 32 230.7 38.74 242.7 50.75L418.7 226.7C443.7 251.7 443.7 292.3 418.7 317.3L285.3 450.7C260.3 475.7 219.7 475.7 194.7 450.7L18.75 274.7C6.743 262.7 0 246.5 0 229.5V80C0 53.49 21.49 32 48 32L48 32zM112 176C129.7 176 144 161.7 144 144C144 126.3 129.7 112 112 112C94.33 112 80 126.3 80 144C80 161.7 94.33 176 112 176z"})),(0,o.createElement)("span",{style:{color:S.initial},className:"currency-code"},(0,o.createElement)("i",{className:"fa fa-tag"})),(0,o.createElement)("strong",{style:{color:S.initial},className:"trip-cost-holder"},e.price)),m&&(0,o.createElement)("td",{className:"accordion-seats"},(0,o.createElement)("div",{className:"seats-available"},(0,o.createElement)("svg",{style:{color:C.initial},fill:"currentColor","data-prefix":"fas","data-icon":"user",xmlns:"http://www.w3.org/2000/svg",className:"svg-inline--fa",viewBox:"0 0 448 512",height:"24",width:"24"},(0,o.createElement)("path",{d:"M224 256c70.7 0 128-57.31 128-128s-57.3-128-128-128C153.3 0 96 57.31 96 128S153.3 256 224 256zM274.7 304H173.3C77.61 304 0 381.6 0 477.3c0 19.14 15.52 34.67 34.66 34.67h378.7C432.5 512 448 496.5 448 477.3C448 381.6 370.4 304 274.7 304z"})),(0,o.createElement)("i",{className:"fa fa-user",style:{color:S.initial}}),(0,o.createElement)("span",{className:"seats",style:{color:S.initial}},e.spaceLeft))),(0,o.createElement)("td",{className:"accordion-book"},(0,o.createElement)(n.RichText,{...t,style:(0,i.A)({typography:r?.buttonTypography},{borderWidth:k.width,borderColor:k.color,borderStyle:k.style,borderTopLeftRadius:E.top,borderTopRightRadius:E.right,borderBottomLeftRadius:E.left,borderBottomRightRadius:E.bottom,paddingTop:w.top,paddingBottom:w.bottom,paddingLeft:w.left,paddingRight:w.right,marginTop:x.top,marginBottom:x.bottom,marginLeft:x.left,marginRight:x.right,color:null!==(s=R?.initial)&&void 0!==s?s:"",background:null!==(c=A?.initial)&&void 0!==c?c:"","--button-color-hover":null!==(d=R?.hover)&&void 0!==d?d:"","--buttonbg-color-hover":null!==(p=A?.hover)&&void 0!==p?p:"",boxShadow:M}),className:"book-btn wte-fsd-list-booknow-btn btn-loading",onChange:e=>l({bookingLabel:e}),value:u,placeholder:u})))})))))),(0,o.createElement)(a.s,{...e}))}const s=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"wptravelenginetripblocks/trip-fsd-table","version":"1.0.0","title":"Trip Fixed Starting Date Table","description":"Display trip\'s fixed starting date.","category":"widgets","icon":"table-row-after","attributes":{"textColor":{"type":"object","default":{"initial":"rgba(6, 22, 38, 0.7)"},"control":{"type":"color","labels":{"initial":{"label":"Text","style":"color"}}},"selectors":"%WRAPPER% #nestable1 .dd-list table tr td,%WRAPPER% #nestable1 .dd-list table tr th"},"background":{"type":"object","label":"Background","control":{"type":"color","labels":{"initial":{"label":"Background","style":"background"}}},"selectors":"%WRAPPER% #nestable1"},"padding":{"type":"object","label":"Padding","selectors":"%WRAPPER% #nestable1","control":{"type":"spacing","style":"padding","controlAttribute":{"units":[{"unit":"px","min":0,"max":100},{"unit":"%","min":0,"max":100}]}}},"margin":{"type":"object","label":"Margin","selectors":"%WRAPPER% #nestable1","control":{"type":"spacing","style":"margin","controlAttribute":{"units":[{"unit":"px","min":0,"max":100},{"unit":"%","min":0,"max":100}]}}},"border":{"type":"object","label":"Border","default":{"width":"1","style":"none","color":""},"selectors":"%WRAPPER% #nestable1","control":{"type":"border"}},"boxShadow":{"type":"object","default":{},"selectors":"%WRAPPER% #nestable1"},"borderRadius":{"type":"object","label":"Border Radius","selectors":"%WRAPPER% #nestable1","control":{"type":"spacing","style":"borderRadius","controlAttribute":{"units":[{"unit":"px","min":0,"max":100},{"unit":"%","min":0,"max":100}]}}},"text":{"type":"string"},"dateLabel":{"type":"string","default":"TRIP DATES"},"availabilityLabel":{"type":"string","default":"AVAILABILITY"},"priceLabel":{"type":"string","default":"PRICE"},"spaceLabel":{"type":"string","default":"SPACE LEFT"},"bookingLabel":{"type":"string","default":"Book Now"},"startDate":{"type":"boolean","label":"Start Date","default":true,"control":{"type":"switch"},"panel":"-date-"},"endDate":{"type":"boolean","label":"End Date","default":true,"control":{"type":"switch"},"panel":"-date-"},"noofRow":{"type":"number","label":"Number of Rows","default":2,"control":{"type":"input-number","controlAttribute":{"min":1,"max":10}},"panel":"-date-"},"dateFormat":{"type":"string","label":"Format","default":"F d, Y","control":{"type":"select","controlAttribute":{"options":[{"value":"Y-m-d","label":"YYYY-MM-DD"},{"value":"m/d/Y","label":"MM/DD/YYYY"},{"value":"F d, Y","label":"Month DD, YYYY"},{"value":"custom","label":"Custom"}]}},"panel":"-date-"},"customDateFormat":{"type":"string","label":"Custom Date Format","default":"F j, Y","control":{"type":"text"},"panel":"-date-"},"dateColumn":{"type":"boolean","label":"Date","default":true,"control":{"type":"switch"},"panel":"-column-"},"availabilityColumn":{"type":"boolean","label":"Availability","default":true,"control":{"type":"switch"},"panel":"-column-"},"priceColumn":{"type":"boolean","label":"Price","default":true,"control":{"type":"switch"},"panel":"-column-"},"spaceColumn":{"type":"boolean","label":"Space","default":true,"control":{"type":"switch"},"panel":"-column-"},"buttonTypography":{"type":"object","default":{},"label":"Typography","selectors":"%WRAPPER% #nestable1 .dd-list table tr .book-btn","control":{"type":"typography"},"panel":"-button-"},"buttonPadding":{"type":"object","label":"Padding","default":{"top":"6px","right":"12px","bottom":"6px","left":"12px"},"selectors":"%WRAPPER% #nestable1 .dd-list table tr .book-btn","control":{"type":"spacing","style":"padding","controlAttribute":{"units":[{"unit":"px","min":0,"max":100},{"unit":"%","min":0,"max":100}]}},"panel":"-button-"},"buttonMargin":{"type":"object","label":"Margin","default":{"top":"0px","right":"0px","bottom":"0px","left":"0px"},"selectors":"%WRAPPER% #nestable1 .dd-list table tr .book-btn","control":{"type":"spacing","style":"margin","controlAttribute":{"units":[{"unit":"px","min":0,"max":100},{"unit":"%","min":0,"max":100}]}},"panel":"-button-"},"buttonBorder":{"type":"object","label":"Border","default":{"width":"1","color":"#147dfe","style":"none"},"selectors":"%WRAPPER% #nestable1 .dd-list table tr .book-btn","control":{"type":"border"},"panel":"-button-"},"buttonBoxShadow":{"type":"object","default":{},"selectors":"%WRAPPER% #nestable1 .dd-list table tr .book-btn"},"buttonRadius":{"type":"object","label":"Border Radius","default":{"top":"4px","right":"4px","bottom":"4px","left":"4px"},"selectors":"%WRAPPER% #nestable1 .dd-list table tr .book-btn","control":{"type":"spacing","style":"borderRadius","controlAttribute":{"units":[{"unit":"px","min":0,"max":100},{"unit":"%","min":0,"max":100}]}},"panel":"-button-"},"buttonColor":{"type":"object","label":"Text","default":{"initial":"#ffffff","hover":"#147dfe"},"control":{"type":"color","labels":{"initial":{"label":"Text","style":"color"},"hover":{"label":"Hover","style":"color:hover"}}},"panel":"-button-","selectors":"%WRAPPER% #nestable1 .dd-list table tr .book-btn"},"buttonbgColor":{"type":"object","label":"Background","default":{"initial":"#147dfe","hover":"#ffffff"},"control":{"type":"color","labels":{"initial":{"label":"Background","style":"background"},"hover":{"label":"Hover","style":"background:hover"}}},"panel":"-button-","selectors":"%WRAPPER% #nestable1 .dd-list table tr .book-btn"},"dateIcon":{"type":"object","label":"Icon","default":{"initial":"#147DFE"},"selectors":"%WRAPPER% #nestable1 .dd-list table tr .svg-inline--fa","control":{"type":"color","labels":{"initial":{"label":"Initial","style":"color"}}}}},"supports":{"align":false,"wptravelenginetripblocks":{"colors":{"link":false},"border":true,"spacing":{"margin":true,"padding":true},"panels":{"-date-":{"title":"Date"},"-select-":{"title":"Select"},"-availability-":{"title":"Availability"},"-price-":{"title":"Price"},"-space-":{"title":"Space"},"-label-":{"title":"Label"},"-column-":{"title":"Column"},"-display-":{"title":"Display"},"-loader-":{"title":"Load More Button"},"-button-":{"title":"Button"}}}},"editorScript":["wte-global"],"viewScript":["wte-redux","jquery-fancy-box"],"textdomain":"wptravelengine","render":"file:./block.php"}')},8979:(e,t,r)=>{"use strict";function o(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}r.d(t,{A:()=>o})},9068:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var o=r(8979),n={passive:!0};const a={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,a=e.options,i=a.scroll,l=void 0===i||i,s=a.resize,c=void 0===s||s,d=(0,o.A)(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return l&&p.forEach((function(e){e.addEventListener("scroll",r.update,n)})),c&&d.addEventListener("resize",r.update,n),function(){l&&p.forEach((function(e){e.removeEventListener("scroll",r.update,n)})),c&&d.removeEventListener("resize",r.update,n)}},data:{}}},9081:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var o=r(4278),n=r(9913);function a(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function i(e){return[o.Mn,o.pG,o.sQ,o.kb].some((function(t){return e[t]>=0}))}const l={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,o=t.rects.reference,l=t.rects.popper,s=t.modifiersData.preventOverflow,c=(0,n.A)(t,{elementContext:"reference"}),d=(0,n.A)(t,{altBoundary:!0}),p=a(c,o),u=a(d,l,s),b=i(p),g=i(u);t.modifiersData[r]={referenceClippingOffsets:p,popperEscapeOffsets:u,isReferenceHidden:b,hasPopperEscaped:g},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":b,"data-popper-escaped":g})}}},9251:(e,t,r)=>{"use strict";r.d(t,{Aw:()=>i,L4:()=>l,bO:()=>s});var o=r(1609),n=r.n(o);const a={display:"none"};function i(e){let{id:t,value:r}=e;return n().createElement("div",{id:t,style:a},r)}function l(e){let{id:t,announcement:r,ariaLiveType:o="assertive"}=e;return n().createElement("div",{id:t,style:{position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":o,"aria-atomic":!0},r)}function s(){const[e,t]=(0,o.useState)("");return{announce:(0,o.useCallback)((e=>{null!=e&&t(e)}),[]),announcement:e}}},9270:(e,t,r)=>{"use strict";r(1609),r(9643),r(8111),r(5846)},9291:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var o=r(1609),n=r(9815),a=r(9643);const i=n.A.div`
display: flex;
align-items: center;
gap: 8px;
[aria-expanded] {
display: flex;
}
.cw__color-picker-color-block {
display: inline-block;
width: 24px;
height: 24px;
border-radius: 50%;
&:hover, &:focus {
outline: 1px solid #dfe1eb;
outline-offset: 2px;
outline-color: var(--cw__secondary-color);
}
}
${e=>e.color?`\n .cw__color-picker-color-block{\n border: 1px solid #efefef;\n background-color: ${e.color}\n }\n `:"\n .cw__color-picker-color-block{\n background: #fff linear-gradient(-45deg,transparent 48%,#ddd 0,#ddd 52%,transparent 0);\n box-shadow: inset 0 0 0 1px #dddddd;\n }"}
.cw__color-picker-popover {
position: absolute;
z-index: 11;
}
&:focus {
.cw__color-picker-color-block {
outline: 1px solid #dfe1eb;
outline-offset: 2px;
}
}
`,l=n.A.div`
max-width: 24px;
background-color: #e5e5f7;
opacity: 1;
background-image: repeating-linear-gradient(45deg, #c1c1c1 25%, transparent 25%, transparent 75%, #c1c1c1 75%, #c1c1c1), repeating-linear-gradient(45deg, #c1c1c1 25%, #e5e5f7 25%, #e5e5f7 75%, #c1c1c1 75%, #c1c1c1);
background-position: 0 0, 6px 6px;
background-size: 12px 12px;
border-radius: 50%;
`,s=({color:e,title:t,children:r,interactive:n,placement:s="left",enableReset:c=!1,onChange:d})=>(0,o.createElement)(i,{className:"cw__color-picker-trigger",color:e},(0,o.createElement)(l,null,(0,o.createElement)(a.AM,{content:r,interactive:n,placement:s},(0,o.createElement)(a.m_,{title:t},(0,o.createElement)("span",{tabIndex:0,className:"cw__color-picker-color-block"},(0,o.createElement)("span",{className:"cw__color-picker-color-block-inner"}))))),c&&e&&(0,o.createElement)("span",{role:"button",className:"cw__color-picker-reset-button",onClick:()=>d("")},"Reset"))},9330:(e,t,r)=>{"use strict";r.d(t,{A:()=>b});var o=r(1609),n=r(9815),a=r(4232),i=r(9643),l=r(8111),s=r(8225);const c=n.A.div`
.components-range-control__wrapper {
position: relative;
&::after {
content: "";
width: 100%;
height: 7px;
position: absolute;
left: 0;
right: 0;
bottom: -7px;
background-image: url("data:image/svg+xml,%3Csvg width='6' height='1' viewBox='0 0 6 1' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-path='url(%23clip0_330_2020)'%3E%3Cpath d='M0.9198 0.9375C0.803768 0.9375 0.692488 0.891406 0.610441 0.809359C0.528394 0.727312 0.4823 0.616032 0.4823 0.5C0.4823 0.383968 0.528394 0.272688 0.610441 0.190641C0.692488 0.108594 0.803768 0.0625 0.9198 0.0625H5.2948C5.41083 0.0625 5.52211 0.108594 5.60416 0.190641C5.68621 0.272688 5.7323 0.383968 5.7323 0.5C5.7323 0.616032 5.68621 0.727312 5.60416 0.809359C5.52211 0.891406 5.41083 0.9375 5.2948 0.9375H0.9198Z' fill='%2342474B'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_330_2020'%3E%3Crect width='5.25' height='0.875' fill='white' transform='translate(0.4823 0.0625)'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E%0A"),
url("data:image/svg+xml,%3Csvg width='2' height='7' viewBox='0 0 2 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-path='url(%23clip0_330_2022)'%3E%3Cpath d='M0.6073 6.5625V0.4375V6.5625Z' fill='%23D9D9D9'/%3E%3Cpath d='M0.6073 6.5625V0.4375' stroke='%2342474B' stroke-width='0.875' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_330_2022'%3E%3Crect width='0.875' height='7' fill='white' transform='translate(0.1698)'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E%0A"),
url("data:image/svg+xml,%3Csvg width='8' height='7' viewBox='0 0 8 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-path='url(%23clip0_330_2024)'%3E%3Cpath d='M3.98232 0.743652V6.25615M1.22607 3.4999H6.73857' stroke='%2342474B' stroke-width='0.875' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_330_2024'%3E%3Crect width='7' height='7' fill='white' transform='translate(0.4823)'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E%0A");
background-position:
left center,
center center,
right center;
background-repeat: no-repeat;
}
}
.cw__control-item.cw__box-shadow-blur{
.components-range-control__wrapper{
&::after{
background-image: url("data:image/svg+xml,%3Csvg width='2' height='7' viewBox='0 0 2 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clipPath='url(%23clip0_330_2022)'%3E%3Cpath d='M0.6073 6.5625V0.4375V6.5625Z' fill='%23D9D9D9'/%3E%3Cpath d='M0.6073 6.5625V0.4375' stroke='%2342474B' stroke-width='0.875' strokeLinecap='round' strokeLinejoin='round'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_330_2022'%3E%3Crect width='0.875' height='7' fill='white' transform='translate(0.1698)'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E%0A"),
url("data:image/svg+xml,%3Csvg width='8' height='7' viewBox='0 0 8 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clipPath='url(%23clip0_330_2024)'%3E%3Cpath d='M3.98232 0.743652V6.25615M1.22607 3.4999H6.73857' stroke='%2342474B' stroke-width='0.875' strokeLinecap='round' strokeLinejoin='round'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_330_2024'%3E%3Crect width='7' height='7' fill='white' transform='translate(0.4823)'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E%0A");
background-position: left center, right center;
}
}
}
`,d=n.A.div`
display: inline-flex;
align-items: center;
gap: 8px;
`,p=({value:e,onChange:t})=>{const{enable:r,xOffset:n,yOffset:i,blur:l,spread:d,position:p}=e;return(0,o.createElement)(c,null,(0,o.createElement)(a.dO,{label:"Enable",direction:"horizontal",value:r,onChange:r=>t({...e,enable:r}),isChildren:!0}),(0,o.createElement)(a.F1,{label:"Horizontal",value:n||"0px",onChange:r=>t({...e,xOffset:r}),min:-100,max:100,isChildren:!0}),(0,o.createElement)(a.F1,{label:"Vertical",value:i||"0px",onChange:r=>t({...e,yOffset:r}),min:-100,max:100,isChildren:!0}),(0,o.createElement)(a.F1,{label:"Blur",value:l||"0px",onChange:r=>t({...e,blur:r}),min:0,max:100,className:"cw__box-shadow-blur",isChildren:!0}),(0,o.createElement)(a.F1,{label:"Spread",value:d||"0px",onChange:r=>t({...e,spread:r}),min:-100,max:100,isChildren:!0}),(0,o.createElement)(s.A,{label:"Position",options:[{value:"outline",label:"Outline"},{value:"inset",label:"Inset"}],value:p,onChange:r=>t({...e,position:r}),isChildren:!0}))},u=({colorPalette:e,value:t,onChange:r,changed:n,...l})=>{const{color:s}=t;return(0,o.createElement)(d,null,t?.enable&&(0,o.createElement)(a.S5,{colorPalette:e,value:s,onChange:e=>r({...t,color:e}),isChildren:!0}),(0,o.createElement)(i.AM,{content:(0,o.createElement)(p,{value:t,onChange:r})},(0,o.createElement)(i.ut,{changed:n})))},b=e=>(0,l.A)(u)({...e,direction:"horizontal"})},9381:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});var o=r(1609),n=r(5871),a=r(3627),i=r(4979),l=r(9815),s=r(1504),c=r(6087),d=r(7723),p=r(8111);const u={close:(0,o.createElement)("svg",{width:"9",height:"10",viewBox:"0 0 9 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)("path",{d:"M8.12428 1.46449L1.05321 8.53556M1.05321 1.46449L8.12428 8.53556",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))},b=l.A.div`
position: relative;
font-size: 14px;
min-width: 136px;
[data-tippy-root]{
width: 100%;
}
.tippy-box{
background: none;
}
.tippy-content{
padding: 6px !important;
background-color: #ffffff;
border-radius: var(--cw__border-radius);
box-shadow:
0px 4px 6px -2px #10182808,
0px 12px 16px -4px #10182814;
border: 1px solid var(--cw__border-color);
padding-top: 0.5rem;
min-width: 100%;
}
.cw__custom-select__input-wrapper{
padding-right: 32px !important;
position: relative;
&::after {
content: "";
width: 1rem;
height: 1rem;
background-color: var(--cw__inactive-color);
position: absolute;
right: 16px;
top: 50%;
transform: translateY(-50%);
transition: var(--cw__transition);
mask: url("data:image/svg+xml,%3Csvg width='15' height='8' viewBox='0 0 15 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.5177 1L7.5177 7L13.5177 1' stroke='%2393999F' stroke-width='2' strokeLinecap='round' strokeLinejoin='round'/%3E%3C/svg%3E%0A");
mask-size: 100%;
mask-position: center;
mask-repeat: no-repeat;
}
${e=>e.disabled&&"\n cursor: not-allowed !important;\n opacity: .5;\n "}
}
.open {
.cw__custom-select__input-wrapper{
&::after {
transform: translateY(-50%) rotate(180deg);
}
}
}
.cw__select-input {
padding-right: 2rem;
cursor: default;
}
.cw__select-dropdown {
input[type="search"] {
margin: 0 0 8px;
border: 1px solid #D8E6FC;
font-size: 14px;
min-height: 32px;
}
.cw__404-text {
display: block;
text-align: center;
color: #ff0e0e;
font-weight: 600;
padding: 6px;
}
}
.cw__select-options {
padding: 0;
margin: 0;
list-style: none;
max-height: 202px;
overflow-y: auto;
li {
padding: 10.5px 8px;
cursor: default;
border-radius: var(--cw__border-radius);
color: #2b3034;
cursor: pointer;
font-size: 14px;
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 0.25rem;
&:last-child {
margin-bottom: 0;
}
&:hover {
color: var(--cw__secondary-color);
background-color: #F6F6F6;
}
input[type="checkbox"] {
margin: 0;
&:checked{
border-color: var(--cw__secondary-color);
background-color: #EFF5FF;
}
}
&.selected {
font-weight: 600;
color: var(--cw__secondary-color);
background-color: var(--cw__background-color);
padding-right: 40px;
${e=>!e.hasCheckbox&&"\n background-image: url(\"data:image/svg+xml,%3Csvg width='21' height='20' viewBox='0 0 21 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16.7021 5L7.53544 14.1667L3.36877 10' stroke='%23216BDB' stroke-width='1.66667' strokeLinecap='round' strokeLinejoin='round'/%3E%3C/svg%3E%0A\");\n background-size: 20px 20px;\n background-repeat: no-repeat;\n background-position: center right 10px; \n "}
}
.icon {
display: inline-flex;
font-size: 20px;
svg {
width: 1em;
height: 1em;
}
}
.icon + .text {
margin-left: 8px;
}
}
}
&.solid {
.cw__custom-select__input-wrapper {
border-color: transparent;
background-color: var(--cw__background-color);
}
}
.cw__custom-select__input-wrapper {
min-width: 100px;
color: #2b3034;
border: 1px solid var(--cw__border-color);
border-radius: var(--cw__border-radius);
min-height: 44px;
display: flex;
flex-wrap: wrap;
align-items: center;
padding: 10px;
gap: 8px;
cursor: pointer;
input.cw__custom-select__input {
min-height: unset;
padding: 0;
width: 1px;
min-width: unset;
border: none;
}
&:focus {
border-color: var(--cw__secondary-color);
}
.cw__custom-select__input-value {
display: flex;
align-items: center;
gap: 8px;
}
.placeholder {
color: var(--cw__inactive-color);
}
> .cw__badge-container{
display: flex;
flex-wrap: wrap;
gap: 8px;
}
}
&:not(.is-multiple) {
.cw__custom-select__input-wrapper {
padding-right: 32px;
}
}
`,g=l.A.div`
display: inline-flex;
gap: 2px;
align-items: center;
color: #2b3034;
padding: 6px;
background-color: #e5f0ff;
border-radius: var(--cw__border-radius);
transition: var(--cw__transition);
> span{
max-width: 90px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.cw__cancel {
border: none;
background: none;
padding: 0;
cursor: pointer;
flex: 0 0 20px;
height: 20px;
width: 20px;
display: flex;
align-items: center;
justify-content: center;
transition: var(--cw__transition);
border-radius: var(--cw__border-radius);
&:hover{
background-color: #ff0e0e;
color: #ffffff;
}
}
`,f=({value:e,options:t=[],isSearchable:r,onSelect:n,onSearch:a,isMultiple:i,checkbox:l})=>(0,o.createElement)("div",{className:"cw__select-dropdown"},r&&(0,o.createElement)("input",{type:"search",placeholder:(0,d.__)("Search...","Rishi"),onChange:a}),t.length<=0&&(0,o.createElement)("span",{className:"cw__404-text"},"There are no options!"),(0,o.createElement)("ul",{className:"cw__select-options"},t?.map((({value:t,label:r,icon:a},s)=>{const c=i?e.includes(t):e==t;return(0,o.createElement)("li",{key:s,tabIndex:0,className:c?"selected":"",onClick:n(t),onKeyDown:n(t)},l&&(0,o.createElement)("input",{type:"checkbox",checked:c,style:{margin:"0px"}}),a&&(0,o.createElement)("i",{className:"icon"},a),(0,o.createElement)("span",{className:"text"},r))})))),m=({onChange:e,onCancelClick:t,options:r,value:n,isMultiple:a,isSearchable:i,isSortable:l=!1,placeholder:d,variant:p,style:u,disabled:g=!1,checkbox:m=!1})=>{const[h,w]=(0,c.useState)(!1),x=(0,c.useRef)(null),k=r?.find((e=>e.value==n));let E=h||r;E=a?E.filter((e=>n.includes(e.value))).concat(E.filter((e=>!n.includes(e.value)))):E;const R=l?v:"div";return(0,o.createElement)(b,{className:`${a?" is-multiple":""} ${p||""}`,disabled:g,hasCheckbox:m},(0,o.createElement)(s.Ay,{content:(0,o.createElement)(f,{value:n,isSearchable:i,options:E,onSelect:t=>r=>{("click"===r.type||"keydown"===r.type&&"Enter"===r.key)&&(e(a?n.includes(t)?n.filter((e=>e!=t)):[...n,t]:t),x.current.focus())},onSearch:e=>{const t=e.target.value.toLowerCase();w(a?r.filter((e=>e.label.toLowerCase().match(t))):r.filter((e=>e.value.toLowerCase().split("-").join(" ").match(t))))},checkbox:m,isMultiple:a}),animation:"shift-away",trigger:"click",arrow:!1,interactive:!0,disabled:g},(0,o.createElement)("div",{className:"cw__custom-select "+(g?"disabled":"")},(0,o.createElement)("div",{tabIndex:0,className:"cw__custom-select__input-wrapper",ref:x,style:u},a&&!m&&(0,o.createElement)(R,{className:l?"":"cw__badge-container",style:{padding:"0px"},items:n,setItems:e},n?.map(((a,i)=>{const l=r?.find((e=>e.value===a))?.label;return(0,o.createElement)(y,{key:a,id:a,text:l,onCancel:()=>{t?t(a):e(n?.filter((e=>e!==a)))}})}))),!a&&(0,o.createElement)("span",{className:"cw__custom-select__input-value"},k?.icon,k?.label),d&&(a&&m||n?.length<=0)&&(0,o.createElement)("span",{className:"placeholder"},d||"Select")))))},h=e=>(0,p.A)(m)(e),y=e=>{const{attributes:t,listeners:r,setNodeRef:n,transform:l,transition:s}=(0,a.gl)({id:e.id}),{children:c}=e,d={transform:i.Ks.Transform.toString(l),transition:s};return(0,o.createElement)(g,{style:d,ref:n,...t},(0,o.createElement)("span",{title:e?.text,className:"cw__selected-badge",...r},e?.text),(0,o.createElement)("button",{type:"button","aria-label":"cancel",className:"cw__cancel",onClick:e?.onCancel},u.close))},v=({children:e,items:t,setItems:r})=>{const i=(0,n.FR)((0,n.MS)(n.AN),(0,n.MS)(n.uN,{coordinateGetter:a.JR}));return(0,o.createElement)(n.Mp,{sensors:i,collisionDetection:n.fp,onDragEnd:e=>{const{active:t,over:o}=e;t.id!==o.id&&r((e=>{const r=e.indexOf(t.id),n=e.indexOf(o.id);return(0,a.be)(e,r,n)}))}},(0,o.createElement)(a.gB,{items:t},e))}},9483:(e,t,r)=>{"use strict";r.r(t),r.d(t,{edit:()=>c,metadata:()=>p,save:()=>d});var o=r(1609),n=r(4715),a=(r(7723),r(8504));const i=[...["heading","paragraph","buttons","columns","list"].map((e=>`core/${e}`))],l=wptravelengineTripBlocks?.fsdVersion;let s=[["wptravelenginetripblocks/trip-fsd-table"]];l<"2.4.0"&&(s=s.concat([["wptravelenginetripblocks/trip-fsd-date-selector"],["wptravelenginetripblocks/trip-fsd-loadmore"]]));const c=e=>{const{attributes:{padding:t,margin:r,border:l,borderRadius:c,boxShadow:d,background:p}}=e,u=["position","xOffset","yOffset","blur","spread","color"].map((e=>{var t,r;if("position"===e)return"inset"!==d[e]?"":"inset";if("color"===e)return null!==(r=d[e])&&void 0!==r?r:"";const o=null!==(t=d[e])&&void 0!==t?t:"";return""!==o?o:0})).join(" "),b=(0,n.useBlockProps)(),{children:g,...f}=(0,n.useInnerBlocksProps)(b,{allowedBlocks:i,template:s});return(0,o.createElement)("div",{...f},(0,o.createElement)("div",{style:{borderWidth:l.width,borderColor:l.color,borderStyle:l.style,borderTopLeftRadius:c.top,borderTopRightRadius:c.right,borderBottomLeftRadius:c.left,borderBottomRightRadius:c.bottom,paddingTop:t.top,paddingBottom:t.bottom,paddingLeft:t.left,paddingRight:t.right,marginTop:r.top,marginBottom:r.bottom,marginLeft:r.left,marginRight:r.right,boxShadow:u,background:p},id:"wte-fixed-departure-dates"},(0,o.createElement)(n.InnerBlocks,{allowedBlocks:i,template:s})),(0,o.createElement)(a.s,{group:"styles",...e}))},d=({attributes:e})=>{const{padding:t,margin:r,border:a,borderRadius:i,boxShadow:l,formLayout:s}=e,c=["position","xOffset","yOffset","blur","spread","color"].map((e=>{var t,r;if("position"===e)return"inset"!==l[e]?"":"inset";if("color"===e)return null!==(r=l[e])&&void 0!==r?r:"";const o=null!==(t=l[e])&&void 0!==t?t:"";return""!==o?o:0})).join(" ");return(0,o.createElement)("div",{...n.useBlockProps.save()},(0,o.createElement)("div",{style:{borderWidth:a.width,borderColor:a.color,borderStyle:a.style,borderTopLeftRadius:i.top,borderTopRightRadius:i.right,borderBottomLeftRadius:i.left,borderBottomRightRadius:i.bottom,paddingTop:t.top,paddingBottom:t.bottom,paddingLeft:t.left,paddingRight:t.right,marginTop:r.top,marginBottom:r.bottom,marginLeft:r.left,marginRight:r.right,boxShadow:c},id:"wte-fixed-departure-dates"},(0,o.createElement)("div",{className:"wte-fsd-frontend-holders",...n.useInnerBlocksProps.save()})))},p=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"wptravelenginetripblocks/trip-fixed-starting-date","version":"1.0.0","icon":"calendar-alt","title":"Trip Fixed Starting Date","description":"Improve trip booking and user navigation with the organised and automated features of the Fixed Starting Dates block.","category":"widgets","script":[],"attributes":{"textColor":{"type":"string","default":"rgba(6, 22, 38, 0.7)","selectors":"%WRAPPER% #nestable1 .dd-list table tr td,%WRAPPER% #nestable1 .dd-list table tr th"},"buttonPadding":{"type":"object","label":"Padding","default":{"top":"6px","right":"12px","bottom":"6px","left":"12px"},"selectors":"%WRAPPER% #nestable1 .dd-list table tr .book-btn","control":{"type":"spacing","style":"padding","controlAttribute":{"units":[{"unit":"px","min":0,"max":100},{"unit":"%","min":0,"max":100}]}},"panel":"-button-"},"buttonMargin":{"type":"object","label":"Margin","default":{"top":"0px","right":"0px","bottom":"0px","left":"0px"},"selectors":"%WRAPPER% #nestable1 .dd-list table tr .book-btn","control":{"type":"spacing","style":"margin","controlAttribute":{"units":[{"unit":"px","min":0,"max":100},{"unit":"%","min":0,"max":100}]}},"panel":"-button-"},"buttonBorder":{"type":"object","label":"Border","default":{"width":"","style":"","color":""},"selectors":"%WRAPPER% #nestable1 .dd-list table tr .book-btn","control":{"type":"border"},"panel":"-button-"},"buttonRadius":{"type":"object","label":"Border Radius","default":{"top":"4px","right":"4px","bottom":"4px","left":"4px"},"selectors":"%WRAPPER% #nestable1 .dd-list table tr .book-btn","control":{"type":"spacing","style":"borderRadius","controlAttribute":{"units":[{"unit":"px","min":0,"max":100},{"unit":"%","min":0,"max":100}]}},"panel":"-button-"},"buttonColor":{"type":"object","label":"Text","default":{"initial":"#ffffff","hover":"#147dfe"},"control":{"type":"color","labels":{"initial":{"label":"Text","style":"color"},"hover":{"label":"Hover","style":"color:hover"}}},"panel":"-button-","selectors":"%WRAPPER% #nestable1 .dd-list table tr .book-btn"},"buttonbgColor":{"type":"object","label":"Background","default":{"initial":"#147dfe","hover":"#ffffff"},"control":{"type":"color","labels":{"initial":{"label":"Background","style":"background"},"hover":{"label":"Hover","style":"background:hover"}}},"panel":"-button-","selectors":"%WRAPPER% #nestable1 .dd-list table tr .book-btn"},"dateIcon":{"type":"object","label":"Icon","default":{"initial":"#147DFE","hover":"#147DFE"},"selectors":"%WRAPPER% #nestable1 .dd-list table tr .svg-inline--fa","control":{"type":"color","labels":{"initial":{"label":"Initial","style":"color"},"hover":{"label":"Hover","style":"color:hover"}}},"panel":"-color-"}},"supports":{"align":false,"wptravelenginetripblocks":{"colors":{"link":false},"border":true,"spacing":{"margin":true,"padding":true},"panels":{"-date-":{"title":"Date"},"-availability-":{"title":"Availability"},"-price-":{"title":"Price"},"-space-":{"title":"Space"},"-color-":{"title":"Color"},"-label-":{"title":"Label"},"-column-":{"title":"Column"},"-display-":{"title":"Display"},"-loader-":{"title":"Load More Button"},"-button-":{"title":"Button"}}}},"viewScript":["wte-redux","jquery-fancy-box"],"textdomain":"wptravelengine","render":"file:./block.php"}')},9503:(e,t,r)=>{"use strict";r.d(t,{MY:()=>a,r1:()=>n});var o=r(9735);function n(e){var t=(0,o.FK)(e);return function(r,o,n,a){for(var i="",l=0;l<t;l++)i+=e[l](r,o,n,a)||"";return i}}function a(e){return function(t){t.root||(t=t.return)&&e(t)}}},9570:(e,t,r)=>{"use strict";r.r(t),r.d(t,{edit:()=>p,metadata:()=>u});var o=r(1609),n=r(7723),a=r(4715),i=r(4871),l=r.n(i),s=r(8504),c=r(6427),d=r(4232);const p=(...e)=>{const t=e[0],{attributes:r,setAttributes:i}=t,{imageSize:p}=r,u=wptravelengineTripBlocks.imageSizes,b=(0,a.useBlockProps)();return(0,o.createElement)("div",{...b},(0,o.createElement)(l(),{block:"wptravelenginetripblocks/trip-gallery",attributes:{...r,editor:!0}}),(0,o.createElement)(s.s,{group:"styles",...t}),(0,o.createElement)(a.InspectorControls,null,(0,o.createElement)(c.Panel,null,(0,o.createElement)(c.PanelBody,{title:(0,n.__)("Image Sizes","wptravelengine")},u&&Object.values(u).length>0?(0,o.createElement)(d.l6,{description:(0,n.__)("Select image sizes you would like to set to gallery images. This only works on frontend.","wptravelengine"),value:p,options:u,onChange:e=>{i({imageSize:e})},divider:"bottom"}):(0,o.createElement)("p",null,(0,n.__)("Loading image sizes...","wptravelengine"))))))},u=JSON.parse('{"apiVersion":2,"name":"wptravelenginetripblocks/trip-gallery","title":"Trip Gallery","category":"widgets","description":"Showcase the trip\'s best moments in a gallery in just a few clicks.","icon":"admin-media","script":[],"attributes":{"background":{"type":"string","default":"","selectors":"%WRAPPER% .wpte-gallery-wrapper "},"border":{"type":"object","default":{"width":"1","style":"none","color":"#000000"},"selectors":"%WRAPPER% .wpte-gallery-wrapper "},"borderRadius":{"type":"object","default":{"top":"","right":"","bottom":"","left":""},"selectors":"%WRAPPER% .wpte-gallery-wrapper "},"boxShadow":{"type":"object","default":{},"selectors":"%WRAPPER% .wpte-gallery-wrapper "},"padding":{"type":"object","default":{},"selectors":"%WRAPPER% .wpte-gallery-wrapper "},"margin":{"type":"object","default":{},"selectors":"%WRAPPER% .wpte-gallery-wrapper "},"showNav":{"type":"boolean","label":"Show","default":true,"control":{"type":"switch"},"panel":"-nav-"},"navColor":{"type":"object","label":"Icon Color","default":{"initial":"#1a84ee","hover":"#ffffff"},"selectors":["%WRAPPER% .wpte-gallery-wrapper .splide__arrows .splide__arrow.splide__arrow--prev","%WRAPPER% .wpte-gallery-wrapper .splide__arrows .splide__arrow.splide__arrow--next"],"control":{"type":"color","labels":{"initial":{"label":"Initial","style":"color"},"hover":{"label":"Hover","style":"color:hover"}}},"panel":"-nav-"},"navBgColor":{"type":"object","label":"Background","selectors":["%WRAPPER% .wpte-gallery-wrapper .splide__arrows .splide__arrow.splide__arrow--prev","%WRAPPER% .wpte-gallery-wrapper .splide__arrows .splide__arrow.splide__arrow--next"],"default":{"initial":"#ffffff","hover":"#1a84ee"},"control":{"type":"color","labels":{"initial":{"label":"Initial","style":"background-color"},"hover":{"label":"Hover","style":"background-color:hover"}}},"panel":"-nav-"},"navSize":{"type":"string","label":"Size","default":"32px","selectors":["%WRAPPER% .wpte-gallery-wrapper .splide__arrows .splide__arrow.splide__arrow--prev","%WRAPPER% .wpte-gallery-wrapper .splide__arrows .splide__arrow.splide__arrow--next"],"control":{"type":"range","style":"width","controlAttribute":{"units":[{"unit":"px","min":0,"max":100}]}},"panel":"-nav-"},"iconSize":{"type":"string","label":"Icon Size","default":"16px","selectors":["%WRAPPER% .wpte-gallery-wrapper .splide__arrows .splide__arrow.splide__arrow--prev","%WRAPPER% .wpte-gallery-wrapper .splide__arrows .splide__arrow.splide__arrow--next"],"control":{"type":"range","style":"font-size","controlAttribute":{"units":[{"unit":"px","min":0,"max":100}]}},"panel":"-nav-"},"navRoundness":{"type":"string","label":"Roundness","selectors":["%WRAPPER% .wpte-gallery-wrapper .splide__arrows"],"default":"50%","control":{"type":"range","style":"border-radius","controlAttribute":{"units":[{"unit":"px","min":0,"max":200},{"unit":"%","min":0,"max":100}]}},"panel":"-nav-"},"navOffset":{"type":"string","label":"Offset","selectors":["%WRAPPER% .wpte-gallery-wrapper .splide__arrows"],"default":"16px","control":{"type":"range","style":"offset-distance","controlAttribute":{"units":[{"unit":"px","min":0,"max":200},{"unit":"%","min":0,"max":100}]}},"panel":"-nav-"},"showDots":{"type":"boolean","label":"Show","default":false,"selectors":["%WRAPPER% .wpte-gallery-wrapper .splide__pagination"],"control":{"type":"switch"},"panel":"-pagination-"},"dotsColor":{"type":"object","label":"Color","default":{"active":"#147DFE","inactive":"rgba(20, 125, 254, 0.3)"},"control":{"type":"color","labels":{"active":{"label":"Active","style":"background","selectors":"%WRAPPER% .wpte-gallery-wrapper .splide__pagination .splide__pagination__page.is-active"},"inactive":{"label":"Inactive","style":"background","selectors":"%WRAPPER% .wpte-gallery-wrapper .splide__pagination .splide__pagination__page"}}},"panel":"-pagination-"},"dotsSize":{"type":"string","default":"8px","label":"Size","selectors":"%WRAPPER% .wpte-gallery-wrapper .splide__pagination .splide__pagination__page","control":{"type":"range","style":"font-size","controlAttribute":{"units":[{"unit":"px","min":1,"max":20}]}},"panel":"-pagination-"},"dotsSpacing":{"type":"string","default":"8px","label":"Spacing","selectors":"%WRAPPER% .wpte-gallery-wrapper .splide__pagination .splide__pagination__page","control":{"type":"range","style":"gap","controlAttribute":{"units":[{"unit":"px","min":1,"max":20}]}},"panel":"-pagination-"},"height":{"type":"string","label":"Height","default":"px","selectors":"%WRAPPER% .wpte-gallery-wrapper .splide img","control":{"type":"range","style":"height","controlAttribute":{"units":[{"unit":"px"},{"unit":"%"},{"unit":"em"}]}},"panel":"-image-"},"object-fit":{"type":"string","label":"Resize","default":"fill","selectors":"%WRAPPER% .wpte-gallery-wrapper .splide img","control":{"type":"select","style":"object-fit","controlAttribute":{"options":[{"value":"fill","label":"Fill"},{"value":"contain","label":"Contain "},{"value":"cover","label":"Cover "},{"value":"none","label":"None"},{"value":"scale-down","label":"Scale Down"}]}},"panel":"-image-"},"imageGallery":{"type":"boolean","label":"Image Gallery","default":true,"control":{"type":"switch"},"panel":"-button-"},"videoGallery":{"type":"boolean","label":"Video Gallery","default":true,"control":{"type":"switch"},"panel":"-button-"},"buttonTypography":{"type":"object","label":"Typography","default":{},"selectors":["%WRAPPER% .wpte-gallery-wrapper .wte-trip-vidgal-popup-trigger","%WRAPPER% .wpte-gallery-wrapper .wte-trip-image-gal-popup-trigger"],"control":{"type":"typography"},"panel":"-button-"},"buttonIconSize":{"type":"string","label":"Icon Size","default":"1em","selectors":["%WRAPPER% .wpte-gallery-wrapper .wte-trip-vidgal-popup-trigger::before","%WRAPPER% .wpte-gallery-wrapper .wte-trip-image-gal-popup-trigger::before"],"control":{"type":"range","style":"font-size","controlAttribute":{"units":[{"unit":"px","min":0,"max":100},{"unit":"em","min":0,"max":10}]}},"panel":"-button-"},"buttonColor":{"type":"object","label":"Text Color","default":{"initial":"rgba(6,22,38,.8)","hover":"#ffffff"},"selectors":["%WRAPPER% .wpte-gallery-wrapper .wte-trip-vidgal-popup-trigger","%WRAPPER% .wpte-gallery-wrapper .wte-trip-image-gal-popup-trigger"],"control":{"type":"color","labels":{"initial":{"label":"Initial","style":"color"},"hover":{"label":"Hover","style":"color:hover"}}},"panel":"-button-"},"buttonIconColor":{"type":"object","label":"Icon Color","default":{"initial":"rgba(6,22,38,.8)","hover":"#ffffff"},"control":{"type":"color","labels":{"initial":{"label":"Initial","style":"color","selectors":["%WRAPPER% .wpte-gallery-wrapper .wte-trip-vidgal-popup-trigger::before","%WRAPPER% .wpte-gallery-wrapper .wte-trip-image-gal-popup-trigger::before"]},"hover":{"label":"Hover","style":"color","selectors":["%WRAPPER% .wpte-gallery-wrapper .wte-trip-vidgal-popup-trigger:hover::before","%WRAPPER% .wpte-gallery-wrapper .wte-trip-image-gal-popup-trigger:hover::before"]}}},"panel":"-button-"},"buttonBgColor":{"type":"object","label":"Background","selectors":["%WRAPPER% .wpte-gallery-wrapper .wte-trip-vidgal-popup-trigger","%WRAPPER% .wpte-gallery-wrapper .wte-trip-image-gal-popup-trigger"],"default":{"initial":"#FFFFFF","hover":"#147DFE"},"control":{"type":"color","labels":{"initial":{"label":"Initial","style":"background"},"hover":{"label":"Hover","style":"background:hover"}}},"panel":"-button-"},"buttonPlacement":{"type":"string","label":"Placement","default":"bottom-left","control":{"type":"select","controlAttribute":{"options":[{"value":"top-left","label":"Top Left"},{"value":"top-right","label":"Top Right"},{"value":"bottom-left","label":"Bottom Left"},{"value":"bottom-right","label":"Bottom Right"}]}},"panel":"-button-"},"buttonOffset":{"type":"string","label":"Offset","default":"16px","selectors":["%WRAPPER% .wpte-gallery-wrapper .wpte-gallery-container"],"control":{"type":"range","style":"padding","controlAttribute":{"units":[{"unit":"px","min":0,"max":100},{"unit":"%","min":0,"max":100}]}},"panel":"-button-"},"buttonPadding":{"type":"object","label":"Padding","default":{"top":"4px","right":"16px","bottom":"4px","left":"16px"},"selectors":["%WRAPPER% .wpte-gallery-wrapper .wte-trip-vidgal-popup-trigger","%WRAPPER% .wpte-gallery-wrapper .wte-trip-image-gal-popup-trigger"],"control":{"type":"spacing","style":"padding","controlAttribute":{"units":[{"unit":"px","min":0,"max":100},{"unit":"%","min":0,"max":100}]}},"panel":"-button-"},"buttonRadius":{"type":"object","label":"Border Radius","default":{"top":"50px","right":"50px","bottom":"50px","left":"50px"},"selectors":["%WRAPPER% .wpte-gallery-wrapper .wte-trip-vidgal-popup-trigger","%WRAPPER% .wpte-gallery-wrapper .wte-trip-image-gal-popup-trigger"],"control":{"type":"spacing","style":"borderRadius","controlAttribute":{"units":[{"unit":"px","min":0,"max":100},{"unit":"%","min":0,"max":100}]}},"panel":"-button-"},"imageSize":{"type":"string","default":"large"}},"supports":{"align":false,"wptravelenginetripblocks":{"colors":{"link":false,"textColor":false,"background":true},"typography":false,"panels":{"-slider-":{"title":"Slider"},"-image-":{"title":"Image"},"-button-":{"title":"Gallery Buttons"},"-nav-":{"title":"Navigation"},"-pagination-":{"title":"Pagination"}}}},"textdomain":"wptravelengine","viewScript":["owl-carousel"],"viewStyle":["owl-carousel"],"render":"file:./block.php"}')},9643:(e,t,r)=>{"use strict";r.d(t,{AM:()=>a.A,m_:()=>o.A,pK:()=>n.A,ut:()=>i.A});var o=r(4702),n=r(6163),a=r(4680),i=r(1192);r(4324)},9703:(e,t,r)=>{"use strict";function o(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}r.d(t,{A:()=>o})},9735:(e,t,r)=>{"use strict";r.d(t,{BC:()=>f,Bq:()=>l,FK:()=>g,HC:()=>c,HT:()=>n,K5:()=>d,YW:()=>s,b2:()=>b,c1:()=>u,kg:()=>m,kp:()=>a,tW:()=>i,tn:()=>o,wN:()=>p});var o=Math.abs,n=String.fromCharCode,a=Object.assign;function i(e,t){return 45^p(e,0)?(((t<<2^p(e,0))<<2^p(e,1))<<2^p(e,2))<<2^p(e,3):0}function l(e){return e.trim()}function s(e,t){return(e=t.exec(e))?e[0]:e}function c(e,t,r){return e.replace(t,r)}function d(e,t){return e.indexOf(t)}function p(e,t){return 0|e.charCodeAt(t)}function u(e,t,r){return e.slice(t,r)}function b(e){return e.length}function g(e){return e.length}function f(e,t){return t.push(e),e}function m(e,t){return e.map(t).join("")}},9760:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var o=r(5581);function n(e){return(((0,o.vq)(e)?e.ownerDocument:e.document)||window.document).documentElement}},9775:(e,t,r)=>{"use strict";r.r(t),r.d(t,{edit:()=>s,metadata:()=>c});var o=r(1609),n=(r(7723),r(4715)),a=r(4871),i=r.n(a),l=r(8504);const s=(...e)=>{const t=e[0],{attributes:r}=t,a=(0,n.useBlockProps)();return(0,o.createElement)("div",{...a},(0,o.createElement)(i(),{block:"wptravelenginetripblocks/trip-enquiry",attributes:{...r,editor:!0}}),(0,o.createElement)(l.s,{group:"styles",...t}))},c=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"wptravelenginetripblocks/trip-enquiry","version":"1.0.0","title":"Trip Inquiry","category":"widgets","icon":"feedback","description":"Display the trip inquiry form on your website to ensure seamless communication and data collection.","example":{},"script":[],"attributes":{"textColor":{"type":"string","default":"#111111","selectors":["%WRAPPER% .wte_enquiry_contact_form .row-repeater.wp-travel-engine-info-field label","%WRAPPER% .wte_enquiry_contact_form .row-repeater label","%WRAPPER% .wte_enquiry_contact_form .row-form.confirm-holder label","%WRAPPER% .wte_enquiry_contact_form .row-form.confirm-holder label a"]},"background":{"type":"string","default":"#ffffff","selectors":"%WRAPPER% .wte_enquiry_contact_form "},"border":{"type":"object","default":{"width":"1","style":"none","color":"#000000"},"selectors":"%WRAPPER% .wte_enquiry_contact_form "},"borderRadius":{"type":"object","default":{},"selectors":"%WRAPPER% .wte_enquiry_contact_form "},"boxShadow":{"type":"object","default":{},"selectors":"%WRAPPER% .wte_enquiry_contact_form "},"padding":{"type":"object","default":{},"selectors":"%WRAPPER% .wte_enquiry_contact_form "},"margin":{"type":"object","default":{},"selectors":"%WRAPPER% .wte_enquiry_contact_form "},"link":{"type":"object","default":{"initial":"#111111","hover":"#111111"},"control":{"type":"color","labels":{"initial":{"label":"Link","style":"color"},"hover":{"label":"Hover","style":"color:hover"}}},"selectors":"%WRAPPER% .wte_enquiry_contact_form .row-form.confirm-holder label a"},"rowSpacing":{"type":"string","label":"Row Gap","selectors":"%WRAPPER% .wte_enquiry_contact_form .row-repeater:not(:last-child), %WRAPPER% .confirm-holder","default":"32px","control":{"type":"range","style":"margin-bottom","controlAttribute":{"units":[{"unit":"px","min":"0","max":"100"}]}},"panel":"-form-"},"columnSpacing":{"type":"string","label":"Column Gap","selectors":"%WRAPPER% .wte_enquiry_contact_form .row-repeater","default":"32px","control":{"type":"range","style":"--column-gap","controlAttribute":{"description":"It will work on screens with a size above 768px.","units":[{"unit":"px","min":"0","max":"100"}]}},"panel":"-form-"},"tripTypography":{"type":"object","label":"Typography","default":{},"selectors":"%WRAPPER% .wte_enquiry_contact_form .package-name-holder .wp-travel-engine-info","panel":"-tripname-","control":{"type":"typography"}},"tripColor":{"type":"string","label":"Color","default":"","selectors":"%WRAPPER% .wte_enquiry_contact_form .package-name-holder .wp-travel-engine-info","panel":"-tripname-","control":{"type":"color","style":"color"}},"formLabel":{"type":"boolean","label":"Label","default":true,"control":{"type":"switch"},"panel":"-label-"},"labelSpacing":{"type":"string","label":"Spacing","selectors":["%WRAPPER% .wte_enquiry_contact_form .row-repeater label","%WRAPPER% .wte_enquiry_contact_form .row-form.confirm-holder label"],"default":"8px","control":{"type":"range","style":"margin-bottom","controlAttribute":{"units":[{"unit":"px","min":"0","max":"50"}]}},"panel":"-label-"},"inputTypography":{"type":"object","label":"Typography","default":{},"selectors":["%WRAPPER% .wte_enquiry_contact_form-wrap .wte_enquiry_contact_form input:not(.enquiry-submit)","%WRAPPER% .wte_enquiry_contact_form-wrap .wte_enquiry_contact_form textarea","%WRAPPER% .wte_enquiry_contact_form-wrap .wte_enquiry_contact_form select"],"panel":"-input-","control":{"type":"typography"}},"inputColor":{"type":"object","label":"Color","default":{"text":"#2b3034","placeholder":"#2b3034","background":"#ffffff"},"control":{"type":"color","labels":{"text":{"label":"Text","style":"color","selectors":["%WRAPPER% .wte_enquiry_contact_form-wrap .wte_enquiry_contact_form input:not(.enquiry-submit)","%WRAPPER% .wte_enquiry_contact_form-wrap .wte_enquiry_contact_form textarea","%WRAPPER% .wte_enquiry_contact_form-wrap .wte_enquiry_contact_form select"]},"placeholder":{"label":"Placeholder","style":"color","selectors":["%WRAPPER% .wte_enquiry_contact_form-wrap .wte_enquiry_contact_form input::placeholder","%WRAPPER% .wte_enquiry_contact_form-wrap .wte_enquiry_contact_form textarea::placeholder"]},"background":{"label":"Background","style":"background-color","selectors":["%WRAPPER% .wte_enquiry_contact_form-wrap .wte_enquiry_contact_form input:not(.enquiry-submit)","%WRAPPER% .wte_enquiry_contact_form-wrap .wte_enquiry_contact_form textarea","%WRAPPER% .wte_enquiry_contact_form-wrap .wte_enquiry_contact_form select"]}}},"panel":"-input-"},"inputBorder":{"type":"object","label":"Border","selectors":["%WRAPPER% .wte_enquiry_contact_form-wrap .wte_enquiry_contact_form input:not(.enquiry-submit)","%WRAPPER% .wte_enquiry_contact_form-wrap .wte_enquiry_contact_form textarea","%WRAPPER% .wte_enquiry_contact_form-wrap .wte_enquiry_contact_form select"],"default":{"width":"1","style":"solid","color":"rgba(6, 22, 38, 0.2)"},"control":{"type":"border","style":"border"},"panel":"-input-"},"inputBorderRadius":{"type":"object","label":"Border Radius","selectors":["%WRAPPER% .wte_enquiry_contact_form-wrap .wte_enquiry_contact_form input:not(.enquiry-submit)","%WRAPPER% .wte_enquiry_contact_form-wrap .wte_enquiry_contact_form textarea","%WRAPPER% .wte_enquiry_contact_form-wrap .wte_enquiry_contact_form select"],"default":{"top":"4px","right":"4px","bottom":"4px","left":"4px"},"control":{"type":"spacing","style":"borderRadius","controlAttribute":{"units":[{"unit":"px","min":0,"max":100},{"unit":"%","min":0,"max":100}]}},"panel":"-input-"},"inputPadding":{"type":"object","label":"Padding","default":{"top":"12px","right":"12px","bottom":"12px","left":"12px"},"selectors":["%WRAPPER% .wte_enquiry_contact_form-wrap .wte_enquiry_contact_form input:not(.enquiry-submit)","%WRAPPER% .wte_enquiry_contact_form-wrap .wte_enquiry_contact_form textarea","%WRAPPER% .wte_enquiry_contact_form-wrap .wte_enquiry_contact_form select"],"control":{"type":"spacing","style":"padding"},"panel":"-input-"},"buttonTypography":{"type":"object","label":"Typography","default":{},"selectors":"%WRAPPER% .wte_enquiry_contact_form .enquiry-submit","panel":"-button-","control":{"type":"typography"}},"buttonLabel":{"type":"string","label":"Button Label","default":"Send Email","control":{"type":"text"},"panel":"-button-"},"btnColor":{"type":"object","label":"Text Color","default":{"initial":"#ffffff","hover":"#ffffff"},"selectors":"%WRAPPER% .wte_enquiry_contact_form .enquiry-submit","control":{"type":"color","labels":{"initial":{"label":"Initial","style":"color"},"hover":{"label":"Hover","style":"color:hover"}}},"panel":"-button-"},"btnbgColor":{"type":"object","label":"Background","default":{"initial":"#147DFE","hover":"#147DFE"},"selectors":"%WRAPPER% input.enquiry-submit","control":{"type":"color","labels":{"initial":{"label":"Initial","style":"background"},"hover":{"label":"Hover","style":"background:hover"}}},"panel":"-button-"},"buttonAlignment":{"type":"string","label":"Alignment","panel":"-button-","selectors":"%WRAPPER% .wte_enquiry_contact_form .enquiry-submit","control":{"type":"alignment"},"default":"left"},"fullWidth":{"type":"boolean","label":"Full Width","default":false,"control":{"type":"switch"},"panel":"-button-"},"buttonBorder":{"type":"object","label":"Border","default":{"width":"1","style":"none","color":"#000000"},"selectors":"%WRAPPER% .wte_enquiry_contact_form .enquiry-submit","control":{"type":"border"},"panel":"-button-"},"buttonBorderRadius":{"type":"object","label":"Border Radius","default":{"top":"4px","right":"4px","bottom":"4px","left":"4px"},"selectors":"%WRAPPER% .wte_enquiry_contact_form .enquiry-submit","control":{"type":"spacing","style":"borderRadius","controlAttribute":{"units":[{"unit":"px","min":0,"max":100},{"unit":"%","min":0,"max":100}]}},"panel":"-button-"},"buttonPadding":{"type":"object","label":"Padding","default":{"top":"14","right":"32","bottom":"14","left":"32","unit":"px"},"selectors":"%WRAPPER% .wte_enquiry_contact_form .enquiry-submit","control":{"type":"spacing","style":"padding"},"panel":"-button-"}},"supports":{"align":false,"wptravelenginetripblocks":{"panels":{"-form-":{"title":"Form"},"-label-":{"title":"Label"},"-input-":{"title":"Input"},"-button-":{"title":"Button"},"-tripname-":{"title":"Trip Name"}}}},"viewScript":["parsley"],"textdomain":"wptravelengine","render":"file:./block.php"}')},9785:(e,t,r)=>{"use strict";r(1609);var o=r(9815);r(6087),r(7723),r(8468),r(4232),r(1266),r(9643),r(8111),r(6711),o.A.div`
display: inline-flex;
gap: 8px;
`,o.A.div`
border: 2px dashed var(--cw__secondary-color);
border-radius: var(--cw__border-radius);
background-color: #F6F6F6;
width: 100%;
min-height: 100px;
cursor: pointer;
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;
transition: all .3s ease;
&:hover{
background-color: var(--cw__background-color);
}
>button{
padding: 0;
width: 40px;
height: 40px;
border-radius: 50%;
background-color: #ffffff;
font-size: 24px;
border: none;
cursor: pointer;
display: flex;
justify-content: center;
align-items: center;
transition: all .3s ease;
svg{
width: 1em;
height: 1em;
}
&:hover{
background-color: var(--cw__secondary-color);
color: #ffffff;
}
}
input[type="file"]{
visibility: hidden;
position: absolute;
top: -9999999px;
width: 0;
height: 0;
}
`,o.A.button`
border: 1px solid #bb2124;
color: #bb2124;
padding: 2px 16px;
text-align: center;
border-radius: 4px;
font-size: 14px;
margin-top: 6px;
cursor: pointer;
width: 100%;
&:hover{
background-color: #bb2124;
color: #ffffff;
}
`,o.A.div`
> div, canvas{
max-width: 100%;
}
#gradient-bar{
div{
max-width: 100%;
}
}
#rbgcp-wrapper{
> div{
gap: 8px;
}
}
`},9815:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var o=r(1923),n=(r(6298),r(1287),r(1609),o.A.bind(null));["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){n[e]=n(e)}))},9876:(e,t,r)=>{"use strict";r.r(t),r.d(t,{edit:()=>s,metadata:()=>c});var o=r(1609),n=r(4715),a=r(8504),i=r(2024);const l={left:"flex-start",center:"center",right:"flex-end"};function s(e){var t;const{attributes:{loadMore:r,showLess:s,alignment:c,padding:d,margin:p,border:u,borderRadius:b,textColor:g,background:f,boxShadow:m,link:h},setAttributes:y}=e,v=["position","xOffset","yOffset","blur","spread","color"].map((e=>{var t,r;if("position"===e)return"inset"!==m[e]?"":"inset";if("color"===e)return null!==(r=m[e])&&void 0!==r?r:"";const o=null!==(t=m[e])&&void 0!==t?t:"";return""!==o?o:0})).join(" ");return(0,o.createElement)("div",{style:{display:"flex",textAlign:"center",justifyContent:null!==(t=l[c])&&void 0!==t?t:"center",gap:"10px"}},(0,o.createElement)(n.RichText,{...(0,n.useBlockProps)(),style:(0,i.A)(e.attributes,{borderWidth:u.width,borderColor:u.color,borderStyle:u.style,borderTopLeftRadius:b.top,borderTopRightRadius:b.right,borderBottomLeftRadius:b.left,borderBottomRightRadius:b.bottom,paddingTop:d.top,paddingBottom:d.bottom,paddingLeft:d.left,paddingRight:d.right,marginTop:p.top,marginBottom:p.bottom,marginLeft:p.left,marginRight:p.right,color:g.initial,background:f.initial,"--text-hover-color":g.hover,"--background-hover-color":f.hover,boxShadow:v}),onChange:e=>y({loadMore:e}),value:r,placeholder:r}),(0,o.createElement)(n.RichText,{...(0,n.useBlockProps)(),style:(0,i.A)(e.attributes,{borderWidth:u.width,borderColor:u.color,borderStyle:u.style,borderTopLeftRadius:b.top,borderTopRightRadius:b.right,borderBottomLeftRadius:b.left,borderBottomRightRadius:b.bottom,paddingTop:d.top,paddingBottom:d.bottom,paddingLeft:d.left,paddingRight:d.right,marginTop:p.top,marginBottom:p.bottom,marginLeft:p.left,marginRight:p.right,color:g.initial,background:f.initial,"--text-hover-color":g.hover,"--background-hover-color":f.hover,"--link-color":h.initial,"--link-hover-color":h.hover,boxShadow:v}),onChange:e=>y({showLess:e}),value:s,placeholder:s}),(0,o.createElement)(a.s,{...e}))}const c=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"wptravelenginetripblocks/trip-fsd-loadmore","title":"Trip FSD Load More","description":"Prompt visitors to add load more button in FSD.","category":"widgets","icon":"calendar-alt","parent":["wptravelenginetripblocks/trip-fixed-starting-date"],"attributes":{"textColor":{"type":"object","default":{"initial":"#147dfe","hover":"#fff"},"control":{"type":"color","labels":{"initial":{"label":"Text","style":"color"},"hover":{"label":"Hover","style":"color:hover"}}},"selectors":["%WRAPPER% .load-more","%WRAPPER% .show-less"]},"background":{"type":"object","default":{"initial":"#ffffff","hover":"#147dfe"},"control":{"type":"color","labels":{"initial":{"label":"Background","style":"background"},"hover":{"label":"Hover","style":"background:hover"}}},"selectors":["%WRAPPER% .load-more","%WRAPPER% .show-less"]},"loadMore":{"type":"string","default":"Load More"},"showLess":{"type":"string","default":"Show Less"},"alignment":{"type":"string","label":"Alignment","default":"center","control":{"type":"alignment","style":"justify-content"},"selectors":"%WRAPPER%","panel":"-button-"},"padding":{"type":"object","default":{"top":"16px","right":"16px","bottom":"16px","left":"16px"},"selectors":["%WRAPPER% .load-more","%WRAPPER% .show-less"]},"margin":{"type":"object","default":{"top":"32px","right":"0px","bottom":"0px","left":"0px"},"selectors":["%WRAPPER% .load-more","%WRAPPER% .show-less"]},"border":{"type":"object","default":{"width":"1","color":"#147dfe","style":"solid"},"selectors":["%WRAPPER% .load-more","%WRAPPER% .show-less"]},"borderRadius":{"type":"object","default":{"top":"4px","right":"4px","bottom":"4px","left":"4px"},"selectors":["%WRAPPER% .load-more","%WRAPPER% .show-less"]},"boxShadow":{"type":"object","selectors":["%WRAPPER% .load-more","%WRAPPER% .show-less"]}},"supports":{"wptravelenginetripblocks":{"colors":{"linkColor":false},"panels":{"-button-":{"title":"Button"}}}},"textdomain":"wptravelengine","render":"file:./block.php"}')},9913:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var o=r(2883),n=r(9760),a=r(6354),i=r(1815),l=r(4426),s=r(4278),c=r(5581),d=r(4318),p=r(1007);function u(e,t){void 0===t&&(t={});var r=t,u=r.placement,b=void 0===u?e.placement:u,g=r.strategy,f=void 0===g?e.strategy:g,m=r.boundary,h=void 0===m?s.WY:m,y=r.rootBoundary,v=void 0===y?s.R9:y,w=r.elementContext,x=void 0===w?s.xf:w,k=r.altBoundary,E=void 0!==k&&k,R=r.padding,A=void 0===R?0:R,_=(0,d.A)("number"!=typeof A?A:(0,p.A)(A,s.OM)),C=x===s.xf?s.ir:s.xf,P=e.rects.popper,S=e.elements[E?C:x],B=(0,o.A)((0,c.vq)(S)?S:S.contextElement||(0,n.A)(e.elements.popper),h,v,f),W=(0,a.A)(e.elements.reference),j=(0,i.A)({reference:W,element:P,strategy:"absolute",placement:b}),T=(0,l.A)(Object.assign({},P,j)),L=x===s.xf?T:W,D={top:B.top-L.top+_.top,bottom:L.bottom-B.bottom+_.bottom,left:B.left-L.left+_.left,right:L.right-B.right+_.right},O=e.modifiersData.offset;if(x===s.xf&&O){var M=O[b];Object.keys(D).forEach((function(e){var t=[s.pG,s.sQ].indexOf(e)>=0?1:-1,r=[s.Mn,s.sQ].indexOf(e)>=0?"y":"x";D[e]+=M[r]*t}))}return D}},9970:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var o=r(2083),n=r(134),a=r(7604),i=r(5581);function l(e){return["html","body","#document"].indexOf((0,a.A)(e))>=0?e.ownerDocument.body:(0,i.sb)(e)&&(0,n.A)(e)?e:l((0,o.A)(e))}}},t={};function r(o){var n=t[o];if(void 0!==n)return n.exports;var a=t[o]={exports:{}};return e[o](a,a.exports,r),a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e=r(7723);const t=window.wp.blocks;var o=r(1609),n=r(6427);const a=(0,o.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"},(0,o.createElement)(n.Path,{d:"M17.3,11.6A3.7,3.7,0,1,0,21,15.29,3.7,3.7,0,0,0,17.3,11.6Zm0,6.28a2.59,2.59,0,1,1,2.59-2.59A2.6,2.6,0,0,1,17.3,17.88Z"}),(0,o.createElement)(n.Path,{d:"M6.7,11.6a3.7,3.7,0,1,0,3.69,3.69A3.7,3.7,0,0,0,6.7,11.6Zm0,6.28a2.59,2.59,0,1,1,2.59-2.59A2.6,2.6,0,0,1,6.7,17.88Z"}),(0,o.createElement)(n.Path,{d:"M12.37,11.38l-1-.8,2-1L15.08,11a.67.67,0,0,0,.43.16l1.63.09a.76.76,0,0,0,.8-.64c.08-.43-.21-.7-.63-.77l-1.67-.25s-1.22-1.68-1.49-2c-.82-.85-1.32-1.34-2.26-.87L9,8.15a1.9,1.9,0,0,0-.9,2.47,2.71,2.71,0,0,0,1.12,1l1.67,1,.19,3.19a.85.85,0,0,0,1.69-.06l0-3.71A.88.88,0,0,0,12.37,11.38Z"}),(0,o.createElement)(n.Path,{d:"M14.86,8.05a1.83,1.83,0,0,0,.61.25h0a1.66,1.66,0,0,0,1.94-2,1.66,1.66,0,0,0-1-1.19,1.64,1.64,0,0,0-1.56.15,1.67,1.67,0,0,0,0,2.76Z"})),i=(0,o.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"},(0,o.createElement)(n.Circle,{fill:"#010002",cx:"13.88",cy:"5.8",r:"1.8"}),(0,o.createElement)(n.Path,{fill:"#010002",d:"M18.37,10.19C16.76,10,15.21,8.28,14.81,8A1.88,1.88,0,0,0,14,7.71a1.54,1.54,0,0,0-.4,0,1.57,1.57,0,0,0-.91.35,3.59,3.59,0,0,0-.31.29,13.72,13.72,0,0,0-2.73,4,.67.67,0,0,0,.14.73L9,14.62l-1.21-.68a.29.29,0,0,0-.41.11L5,18.1a.31.31,0,0,0,.11.41l.92.51a.68.68,0,0,0,.11.82.69.69,0,0,0,1,0,.7.7,0,0,0,.06-.92l1.25-2.19.88-1.56,1.08-1.88a.69.69,0,0,0,.54-.44,9.49,9.49,0,0,1,1.26-2.15l.21,2.51a1.29,1.29,0,0,0,.33.74c-.56,1-2.07,3.81-2.62,4.75a.9.9,0,0,0,.33,1.22A.82.82,0,0,0,11,20a.87.87,0,0,0,.71-.44c.51-.88,1.84-3.56,2.42-4.57a40.93,40.93,0,0,1,2.27,4.49.91.91,0,0,0,.82.53.94.94,0,0,0,.36-.08A.88.88,0,0,0,18,18.8a40.16,40.16,0,0,0-2.55-5,1.27,1.27,0,0,0,.27-.9l-.2-2.37a4.87,4.87,0,0,0,2.71,1h.07a.7.7,0,0,0,.07-1.39ZM6.66,19.63a.25.25,0,1,1,.25-.25A.26.26,0,0,1,6.66,19.63Z"}),(0,o.createElement)(n.Rect,{fill:"none",width:"24",height:"24"})),l=(0,o.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"},(0,o.createElement)(n.Path,{d:"M12.82,13.34h0a.62.62,0,0,0,.54.61c2.8.38,4.45,1.39,4.45,2.15,0,1-2.58,2.31-6.78,2.31S4.25,17.07,4.25,16.1c0-.77,1.68-1.79,4.52-2.15a.63.63,0,0,0,.54-.62h0a.62.62,0,0,0-.7-.62C5.6,13.11,3,14.27,3,16.1c0,2.31,4.14,3.56,8,3.56s8-1.25,8-3.56c0-1.81-2.56-3-5.54-3.38A.62.62,0,0,0,12.82,13.34Z"}),(0,o.createElement)(n.Path,{d:"M19.72,4.52a.56.56,0,0,0-.31-.09.58.58,0,0,0-.26.06l-1,.5a3.43,3.43,0,0,1-1.53.35A3.51,3.51,0,0,1,15,5a3.47,3.47,0,0,0-1.6-.39A3.51,3.51,0,0,0,11.7,5V4.6A.63.63,0,0,0,11.07,4a.63.63,0,0,0-.63.63V15.9a.63.63,0,0,0,.63.63.63.63,0,0,0,.63-.63V10.13a3.51,3.51,0,0,1,1.67-.42,3.47,3.47,0,0,1,1.6.39,3.51,3.51,0,0,0,1.61.39,3.43,3.43,0,0,0,1.53-.35l1.56-.75A.6.6,0,0,0,20,8.86V5A.59.59,0,0,0,19.72,4.52Z"})),s=(0,o.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"},(0,o.createElement)(n.Path,{d:"M6.3,18.93H17.7V7.08H15.16V6a1.68,1.68,0,0,0-1.68-1.68h-3A1.68,1.68,0,0,0,8.84,6V7.08H6.3V18.93ZM13.41,15l-.69.53.06.87a.47.47,0,0,1-.24.44.46.46,0,0,1-.23.06.5.5,0,0,1-.26-.08l-.72-.49-.81.32a.46.46,0,0,1-.49-.08.48.48,0,0,1-.13-.48l.23-.83-.55-.67a.47.47,0,0,1,.34-.77l.87,0,.47-.74a.46.46,0,0,1,.44-.21.47.47,0,0,1,.39.3l.3.82.84.22a.44.44,0,0,1,.34.35A.46.46,0,0,1,13.41,15Zm2.25-6.47c.83,0,1.36.32,1.36.81s-.53.82-1.36.82-1.37-.32-1.37-.82S14.83,8.54,15.66,8.54ZM9.77,6a.76.76,0,0,1,.75-.75h3a.76.76,0,0,1,.75.75V7.08H9.77ZM7.43,11.36l1.31-.72a.43.43,0,0,1,.35,0,.44.44,0,0,1,.28.22l.73,1.3a.48.48,0,0,1-.18.64l-1.31.72a.46.46,0,0,1-.22.06.27.27,0,0,1-.13,0A.44.44,0,0,1,8,13.3L7.25,12A.48.48,0,0,1,7.43,11.36ZM20.92,8.29v9.43a1.21,1.21,0,0,1-1.21,1.21H18.64V7.08h1.07A1.21,1.21,0,0,1,20.92,8.29ZM5.36,18.93H4.29a1.21,1.21,0,0,1-1.21-1.21V8.29A1.21,1.21,0,0,1,4.29,7.08H5.36V18.93Z"})),c=(0,o.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"},(0,o.createElement)(n.Path,{d:"M15.67,19.36l2-2a.32.32,0,0,0-.23-.55h-2a.32.32,0,0,0-.33.32v2A.33.33,0,0,0,15.67,19.36Z"}),(0,o.createElement)(n.Path,{d:"M18.31,15.35V4.47a.5.5,0,0,0-.5-.5H6.19a.5.5,0,0,0-.5.5v15a.5.5,0,0,0,.5.5h7.48a.5.5,0,0,0,.5-.5V16.36a.5.5,0,0,1,.5-.5h3.14A.5.5,0,0,0,18.31,15.35Zm-7.84-7.7h3.06a.47.47,0,0,1,.47.47h0a.47.47,0,0,1-.47.47H10.47A.47.47,0,0,1,10,8.12h0A.47.47,0,0,1,10.47,7.65ZM8.63,10h6.74a.47.47,0,0,1,.47.47h0a.47.47,0,0,1-.47.47H8.63a.47.47,0,0,1-.47-.47h0A.47.47,0,0,1,8.63,10Zm0,2h6.74a.47.47,0,0,1,.47.47h0a.47.47,0,0,1-.47.46H8.63a.47.47,0,0,1-.47-.46h0A.47.47,0,0,1,8.63,12Z"})),d=(0,o.createElement)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"},(0,o.createElement)(n.Path,{d:"M19.71,18.29l-4-4a6.52,6.52,0,1,0-1.41,1.41l4,4a1,1,0,0,0,1.42,0A1,1,0,0,0,19.71,18.29Zm-8.84-3.46a.49.49,0,0,1-.74,0C9.81,14.48,7,11.3,7,9.5a3.5,3.5,0,0,1,7,0C14,11.3,11.19,14.48,10.87,14.83Z"}),(0,o.createElement)(n.Circle,{cx:"10.5",cy:"9.5",r:"1.5"})),p=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"wptravelenginetripblocks/trip-fsd-table","version":"1.0.1","title":"Trip Fixed Starting Date Table","description":"Display trip\'s fixed starting date.","category":"widgets","icon":"table-row-after","attributes":{"textColor":{"type":"object","default":{"initial":"rgba(6, 22, 38, 0.7)"},"control":{"type":"color","labels":{"initial":{"label":"Text","style":"color"}}},"selectors":"%WRAPPER% #nestable1 .dd-list table tr td,%WRAPPER% #nestable1 .dd-list table tr th"},"background":{"type":"object","label":"Background","control":{"type":"color","labels":{"initial":{"label":"Background","style":"background"}}},"selectors":"%WRAPPER% #nestable1"},"padding":{"type":"object","label":"Padding","selectors":"%WRAPPER% #nestable1","control":{"type":"spacing","style":"padding","controlAttribute":{"units":[{"unit":"px","min":0,"max":100},{"unit":"%","min":0,"max":100}]}}},"margin":{"type":"object","label":"Margin","selectors":"%WRAPPER% #nestable1","control":{"type":"spacing","style":"margin","controlAttribute":{"units":[{"unit":"px","min":0,"max":100},{"unit":"%","min":0,"max":100}]}}},"border":{"type":"object","label":"Border","default":{"width":"1","style":"none","color":""},"selectors":"%WRAPPER% #nestable1","control":{"type":"border"}},"boxShadow":{"type":"object","default":{},"selectors":"%WRAPPER% #nestable1"},"borderRadius":{"type":"object","label":"Border Radius","selectors":"%WRAPPER% #nestable1","control":{"type":"spacing","style":"borderRadius","controlAttribute":{"units":[{"unit":"px","min":0,"max":100},{"unit":"%","min":0,"max":100}]}}},"text":{"type":"string"},"dateLabel":{"type":"string","default":"TRIP DATES"},"availabilityLabel":{"type":"string","default":"AVAILABILITY"},"priceLabel":{"type":"string","default":"PRICE"},"spaceLabel":{"type":"string","default":"SPACE LEFT"},"bookingLabel":{"type":"string","default":"Book Now"},"soldoutLabel":{"type":"string","default":"Sold Out"},"showMoreLabel":{"type":"string","default":"Show More Dates"},"showLessLabel":{"type":"string","default":"Show Less Dates"},"timeSlotsLabel":{"type":"string","default":"Time Slots Available"},"groupDiscountLabel":{"type":"string","default":"Group Discount Available"},"dateColumn":{"type":"boolean","label":"Date Filter","default":true,"control":{"type":"switch"},"panel":"-dateFilter-"},"dateFilterActiveColor":{"type":"object","label":"Active Text","default":{"initial":"#ffffff"},"control":{"type":"color","labels":{"initial":{"label":"Text","style":"color"}}},"panel":"-dateFilter-","selectors":"%WRAPPER% .wte-fsd__button.is-active"},"dateFilterActiveBgColor":{"type":"object","label":"Active Background","default":{"initial":"#1a84ee"},"control":{"type":"color","labels":{"initial":{"label":"Background","style":"background"}}},"panel":"-dateFilter-","selectors":"%WRAPPER% .wte-fsd__button.is-active"},"dateFilterInactiveColor":{"type":"object","label":"Inactive Text","default":{"initial":"#3F494B"},"control":{"type":"color","labels":{"initial":{"label":"Text","style":"color"}}},"panel":"-dateFilter-","selectors":"%WRAPPER% .wte-fsd__button"},"dateFilterInactiveBgColor":{"type":"object","label":"Inactive Background","default":{"initial":"#ffffff"},"control":{"type":"color","labels":{"initial":{"label":"Background","style":"background"}}},"panel":"-dateFilter-","selectors":"%WRAPPER% .wte-fsd__button"},"timeSlotsColumn":{"type":"boolean","label":"Time Slots","default":true,"control":{"type":"switch"},"panel":"-timeslot-"},"timeSlotsColor":{"type":"object","label":"Text","default":{"initial":"rgb(1, 139, 255)"},"control":{"type":"color","labels":{"initial":{"label":"Text","style":"color"}}},"panel":"-timeslot-","selectors":"%WRAPPER% .wte-fsd__tag.wte-fsd__time-slots"},"timeSlotsBgColor":{"type":"object","label":"Background","default":{"initial":"rgba(42, 133, 255, 0.1019607843)"},"control":{"type":"color","labels":{"initial":{"label":"Background","style":"background"}}},"panel":"-timeslot-","selectors":"%WRAPPER% .wte-fsd__tag.wte-fsd__time-slots"},"groupDiscountColumn":{"type":"boolean","label":"Group Discount Tag","default":true,"control":{"type":"switch"},"panel":"-groupdiscount-"},"groupDiscountColor":{"type":"object","label":"Text","default":{"initial":"#12B76A"},"control":{"type":"color","labels":{"initial":{"label":"Text","style":"color"}}},"panel":"-groupdiscount-","selectors":"%WRAPPER% .wte-fsd__tag.wte-fsd__group-discount"},"groupDiscountBgColor":{"type":"object","label":"Background","default":{"initial":"rgba(18, 183, 106, 0.0784313725)"},"control":{"type":"color","labels":{"initial":{"label":"Background","style":"background"}}},"panel":"-groupdiscount-","selectors":"%WRAPPER% .wte-fsd__tag.wte-fsd__group-discount"},"availabilityTag":{"type":"boolean","label":"Availability Tag","default":true,"control":{"type":"switch"},"panel":"-availability-"},"availabilityColor":{"type":"object","label":"Availability Text","default":{"initial":"#d86c35"},"control":{"type":"color","labels":{"initial":{"label":"Text","style":"color"}}},"panel":"-availability-","selectors":"%WRAPPER% .wte-fsd__tag.wte-fsd__availability-label"},"availabilityBgColor":{"type":"object","label":"Background","default":{"initial":"rgba(216, 108, 53, 0.0784313725)"},"control":{"type":"color","labels":{"initial":{"label":"Background","style":"background"}}},"panel":"-availability-","selectors":"%WRAPPER% .wte-fsd__tag.wte-fsd__availability-label"},"startDate":{"type":"boolean","label":"Start Date","default":true,"control":{"type":"switch"},"panel":"-date-"},"endDate":{"type":"boolean","label":"End Date","default":true,"control":{"type":"switch"},"panel":"-date-"},"dateFormat":{"type":"string","label":"Format","default":"M j, Y","control":{"type":"select","controlAttribute":{"description":"Changes will reflect only on the frontend.","options":[{"value":"Y-m-d","label":"YYYY-MM-DD"},{"value":"m/d/Y","label":"MM/DD/YYYY"},{"value":"M j, Y","label":"M j, Y"},{"value":"custom","label":"Custom"}]}},"panel":"-date-"},"customDateFormat":{"type":"string","label":"Custom Date Format","default":"M j, Y","control":{"type":"text"},"panel":"-date-"},"priceColumn":{"type":"boolean","label":"Price Column","default":true,"control":{"type":"switch"},"panel":"-price-"},"salePrice":{"type":"boolean","label":"Sale Price","default":true,"control":{"type":"switch"},"panel":"-price-"},"regularPrice":{"type":"boolean","label":"Regular Price","default":true,"control":{"type":"switch"},"panel":"-price-"},"showDiscount":{"type":"boolean","label":"Discount","default":true,"control":{"type":"switch"},"panel":"-price-"},"discountColor":{"type":"object","label":"Discount Color","default":{"initial":"#ffffff"},"control":{"type":"color","labels":{"initial":{"label":"Text","style":"color"}}},"panel":"-price-","selectors":"%WRAPPER% .wte-fsd__availability-discount"},"discountBgColor":{"type":"object","label":"Discount Background","default":{"initial":"#D86C35"},"control":{"type":"color","labels":{"initial":{"label":"Background","style":"background"}}},"panel":"-price-","selectors":"%WRAPPER% .wte-fsd__availability-discount"},"spaceColumn":{"type":"boolean","label":"Space Column","default":true,"control":{"type":"switch"},"panel":"-spacecolumn-"},"spaceAvailableColor":{"type":"object","label":"Availability Text","default":{"initial":"#000000"},"control":{"type":"color","labels":{"initial":{"label":"Availability Text","style":"color"}}},"panel":"-spacecolumn-","selectors":"%WRAPPER% .wte-fsd__availability-remaining-seats "},"spaceUnavailableColor":{"type":"object","label":"Unavailability Text","default":{"initial":"#F04438"},"control":{"type":"color","labels":{"initial":{"label":"Unavailability Text","style":"color"}}},"panel":"-spacecolumn-","selectors":"%WRAPPER% .wte-fsd__availability-remaining-seats.wte-fsd__sold-out"},"buttonTypography":{"type":"object","default":{"size":{"desktop":"15px","tablet":"15px","mobile":"15px"}},"label":"Typography","selectors":"%WRAPPER% .wte-fsd__booknow-btn,%WRAPPER% .wte-fsd__availability-cta-wrap .wte-fsd__sold-out","control":{"type":"typography"},"panel":"-button-"},"buttonPadding":{"type":"object","label":"Padding","default":{"top":"15px","right":"32px","bottom":"15px","left":"32px"},"selectors":"%WRAPPER% .wte-fsd__booknow-btn,%WRAPPER% .wte-fsd__availability-cta-wrap .wte-fsd__sold-out","control":{"type":"spacing","style":"padding","controlAttribute":{"units":[{"unit":"px","min":0,"max":100},{"unit":"%","min":0,"max":100}]}},"panel":"-button-"},"buttonMargin":{"type":"object","label":"Margin","default":{"top":"0px","right":"0px","bottom":"0px","left":"0px"},"selectors":"%WRAPPER% .wte-fsd__booknow-btn,%WRAPPER% .wte-fsd__availability-cta-wrap .wte-fsd__sold-out","control":{"type":"spacing","style":"margin","controlAttribute":{"units":[{"unit":"px","min":0,"max":100},{"unit":"%","min":0,"max":100}]}},"panel":"-button-"},"buttonBoxShadow":{"type":"object","default":{},"selectors":"%WRAPPER% .wte-fsd__booknow-btn,%WRAPPER% .wte-fsd__availability-cta-wrap .wte-fsd__sold-out"},"buttonRadius":{"type":"object","label":"Border Radius","default":{"top":"100px","right":"100px","bottom":"100px","left":"100px"},"selectors":"%WRAPPER% .wte-fsd__booknow-btn,%WRAPPER% .wte-fsd__availability-cta-wrap .wte-fsd__sold-out","control":{"type":"spacing","style":"borderRadius","controlAttribute":{"units":[{"unit":"px","min":0,"max":100},{"unit":"%","min":0,"max":100}]}},"panel":"-button-"},"buttonColor":{"type":"object","label":"Book Now Text","default":{"initial":"#147dfe","hover":"#ffffff"},"control":{"type":"color","labels":{"initial":{"label":"Book Now Text","style":"color"},"hover":{"label":"Hover","style":"color:hover"}}},"panel":"-button-","selectors":"%WRAPPER% .wte-fsd__booknow-btn"},"buttonbgColor":{"type":"object","label":"Book Now Background","default":{"initial":"#ffffff","hover":"#147dfe"},"control":{"type":"color","labels":{"initial":{"label":"Book Now Background","style":"background"},"hover":{"label":"Hover","style":"background:hover"}}},"panel":"-button-","selectors":"%WRAPPER% .wte-fsd__booknow-btn"},"buttonBorder":{"type":"object","label":"Book Now Border","default":{"width":2,"color":"#147dfe","style":"solid"},"selectors":"%WRAPPER% .wte-fsd__booknow-btn","control":{"type":"border"},"panel":"-button-"},"soldoutColor":{"type":"object","label":"Sold Out Text","default":{"initial":"#F04438","hover":"#ffffff"},"control":{"type":"color","labels":{"initial":{"label":"Sold Out Text","style":"color"},"hover":{"label":"Hover","style":"color:hover"}}},"panel":"-button-","selectors":"%WRAPPER% .wte-fsd__availability-cta-wrap .wte-fsd__sold-out"},"soldoutbgColor":{"type":"object","label":"Sold Out Background","default":{"initial":"#ffffff","hover":"#F04438"},"control":{"type":"color","labels":{"initial":{"label":"Sold Out Background","style":"background"},"hover":{"label":"Hover","style":"background:hover"}}},"panel":"-button-","selectors":"%WRAPPER% .wte-fsd__availability-cta-wrap .wte-fsd__sold-out"},"soldoutBorder":{"type":"object","label":"Sold Out Border","default":{"width":2,"color":"#F04438","style":"solid"},"selectors":"%WRAPPER% .wte-fsd__availability-cta-wrap .wte-fsd__sold-out","control":{"type":"border"},"panel":"-button-"},"loaderPadding":{"type":"object","label":"Padding","default":{"top":"18px","right":"32px","bottom":"18px","left":"32px"},"selectors":"%WRAPPER% .wte-fsd__availability-show-less,%WRAPPER% .wte-fsd__availability-show-more","control":{"type":"spacing","style":"padding","controlAttribute":{"units":[{"unit":"px","min":0,"max":100},{"unit":"%","min":0,"max":100}]}},"panel":"-loader-"},"loaderMargin":{"type":"object","label":"Margin","default":{"top":"0px","right":"0px","bottom":"0px","left":"0px"},"selectors":"%WRAPPER% .wte-fsd__availability-show-less,%WRAPPER% .wte-fsd__availability-show-more","control":{"type":"spacing","style":"margin","controlAttribute":{"units":[{"unit":"px","min":0,"max":100},{"unit":"%","min":0,"max":100}]}},"panel":"-loader-"},"loaderBorder":{"type":"object","label":"Border","default":{"width":2,"color":"#147dfe","style":"solid"},"selectors":"%WRAPPER% .wte-fsd__availability-show-less,%WRAPPER% .wte-fsd__availability-show-more","control":{"type":"border"},"panel":"-loader-"},"loaderBoxShadow":{"type":"object","default":{},"selectors":"%WRAPPER% .wte-fsd__availability-show-less,%WRAPPER% .wte-fsd__availability-show-more"},"loaderRadius":{"type":"object","label":"Border Radius","default":{"top":"100px","right":"100px","bottom":"100px","left":"100px"},"selectors":"%WRAPPER% .wte-fsd__availability-show-less,%WRAPPER% .wte-fsd__availability-show-more","control":{"type":"spacing","style":"borderRadius","controlAttribute":{"units":[{"unit":"px","min":0,"max":100},{"unit":"%","min":0,"max":100}]}},"panel":"-loader-"},"loaderColor":{"type":"object","label":"Text","default":{"initial":"#147dfe","hover":"#ffffff"},"control":{"type":"color","labels":{"initial":{"label":"Text","style":"color"},"hover":{"label":"Hover","style":"color:hover"}}},"panel":"-loader-","selectors":"%WRAPPER% .wte-fsd__availability-show-less,%WRAPPER% .wte-fsd__availability-show-more"},"loaderbgColor":{"type":"object","label":"Background","default":{"initial":"transparent","hover":"#147dfe"},"control":{"type":"color","labels":{"initial":{"label":"Background","style":"background"},"hover":{"label":"Hover","style":"background:hover"}}},"panel":"-loader-","selectors":"%WRAPPER% .wte-fsd__availability-show-less,%WRAPPER% .wte-fsd__availability-show-more"},"dateIcon":{"type":"object","label":"Icon","default":{"initial":"#147DFE"},"selectors":"%WRAPPER% #nestable1 .dd-list table tr .svg-inline--fa","control":{"type":"color","labels":{"initial":{"label":"Initial","style":"color"}}}}},"supports":{"align":false,"wptravelenginetripblocks":{"colors":{"link":false},"border":true,"spacing":{"margin":true,"padding":true},"panels":{"-dateFilter-":{"title":"Date Filter"},"-date-":{"title":"Date Column"},"-select-":{"title":"Select"},"-space-":{"title":"Space"},"-label-":{"title":"Label"},"-timeslot-":{"title":"Time Slots"},"-groupdiscount-":{"title":"Group Discount"},"-availability-":{"title":"Availability"},"-price-":{"title":"Price Column"},"-spacecolumn-":{"title":"Space Column"},"-display-":{"title":"Display"},"-loader-":{"title":"Show More/Less Button"},"-button-":{"title":"Book Now/Sold Out Button"}}}},"editorScript":["wte-global"],"viewScript":["wte-redux","jquery-fancy-box","wte-fixed-departure-dates","trip-booking-modal","wte-fpickr-lib","wp-api-request"],"viewStyle":["wte-fixed-departure-dates","style-trip-booking-modal","wte-fpickr"],"editorStyle":["wte-fsd-public","wte-fixed-departure-dates","wte-fsd-admin"],"textdomain":"wptravelengine","render":"file:./block.php"}');var u=r(4715),b=r(8504),g=r(2024);function f(e){var t,r,n,a,i,l,s,c,d,p,f,m,h,y;const v=(0,u.useBlockProps)(),{attributes:w,setAttributes:x}=e,{bookingLabel:k,soldoutLabel:E,showMoreLabel:R,showLessLabel:A,timeSlotsLabel:_,groupDiscountLabel:C,timeSlotsColumn:P,groupDiscountColumn:S,dateColumn:B,priceColumn:W,spaceColumn:j,availabilityTag:T,startDate:L,endDate:D,buttonPadding:O,buttonMargin:M,buttonBorder:N,buttonRadius:I,soldoutBorder:z,buttonColor:H,buttonbgColor:$,buttonBoxShadow:F,soldoutColor:V,soldoutbgColor:q,boxShadow:Y,timeSlotsColor:Z,timeSlotsBgColor:G,groupDiscountColor:U,groupDiscountBgColor:J,availabilityColor:K,availabilityBgColor:X,salePrice:Q,regularPrice:ee,showDiscount:te,discountColor:re,discountBgColor:oe,loaderPadding:ne,loaderMargin:ae,loaderBorder:ie,loaderRadius:le,loaderColor:se,loaderbgColor:ce,loaderBoxShadow:de,dateFilterActiveColor:pe,dateFilterActiveBgColor:ue,dateFilterInactiveColor:be,dateFilterInactiveBgColor:ge,spaceUnavailableColor:fe,spaceAvailabilityColor:me}=w,he=["position","xOffset","yOffset","blur","spread","color"],ye=he.map((e=>{var t,r;if(!F)return"";if("position"===e)return"inset"!==F[e]?"":"inset";if("color"===e)return null!==(r=F[e])&&void 0!==r?r:"";const o=null!==(t=F[e])&&void 0!==t?t:"";return""!==o?o:0})).join(" "),ve=(he.map((e=>{var t,r;if("position"===e)return"inset"!==Y[e]?"":"inset";if("color"===e)return null!==(r=Y[e])&&void 0!==r?r:"";const o=null!==(t=Y[e])&&void 0!==t?t:"";return""!==o?o:0})),["position","xOffset","yOffset","blur","spread","color"].map((e=>{var t,r;if(!de)return"";if("position"===e)return"inset"!==de[e]?"":"inset";if("color"===e)return null!==(r=de[e])&&void 0!==r?r:"";const o=null!==(t=de[e])&&void 0!==t?t:"";return""!==o?o:0})).join(" ")),we=[{id:"1",dayOfWeekStart:"Friday",startDate:"Nov 29, 2024",dayOfWeekEnd:"Thursday",endDate:"Dec 5, 2024",price:"$1,300",status:"2 Available",buttonLabel:k},{id:"2",dayOfWeekStart:"Wednesday",startDate:"Dec 11, 2024",dayOfWeekEnd:"Tuesday",endDate:"Dec 17, 2024",price:"$1,300",status:"Not Available",buttonLabel:E}];return(0,o.createElement)("div",{...v,style:(0,g.A)(w)},(0,o.createElement)(o.Fragment,null,(0,o.createElement)("div",{className:"wte-fsd__container","data-dates-limit":"10"},B&&(0,o.createElement)("div",{"data-nonce":"fba02db075","data-trip-id":"2957","data-is-shortcode":"","data-tab-of":"group",className:"wte-fsd__filter-buttons"},(0,o.createElement)("button",{"data-date":"all",type:"button",className:"wte-fsd__button is-active",style:{color:null!==(t=pe?.initial)&&void 0!==t?t:"",background:null!==(r=ue?.initial)&&void 0!==r?r:""}},"All"),(0,o.createElement)("button",{"data-date":"2024-11",type:"button",className:"wte-fsd__button",style:{color:null!==(n=be?.initial)&&void 0!==n?n:"",background:null!==(a=ge?.initial)&&void 0!==a?a:""}},"Nov 2024"),(0,o.createElement)("button",{"data-date":"2024-12",type:"button",className:"wte-fsd__button",style:{color:null!==(i=be?.initial)&&void 0!==i?i:"",background:null!==(l=ge?.initial)&&void 0!==l?l:""}},"Dec 2024")),(0,o.createElement)("div",{"data-tab-of":"group",className:"wte-fsd__filter-select"},(0,o.createElement)("label",{for:"select-date"},"Select Date"),(0,o.createElement)("select",{"data-trip-id":"2957",className:"wte-fsd__date-select","data-nonce":"fba02db075",name:"date-select","data-placeholder":"Choose a date…"},(0,o.createElement)("option",{value:" "},"Choose a date…"),(0,o.createElement)("option",{"data-month":"11",value:"2024-11"},"November, 2024"),(0,o.createElement)("option",{"data-month":"12",value:"2024-12"},"December, 2024")," ")),(0,o.createElement)("div",{"data-tab-of":"group"},(0,o.createElement)("div",{className:"wte-fsd__availability-list-wrap"},(0,o.createElement)("div",{"data-trip-id":"2957",className:"wte-fsd__availability-list-wrapper wte-fsd__availability-from-shortcode"},(0,o.createElement)("ul",{className:"wte-fsd__availability-list","data-items-count":we.length},we.map((e=>{var t,r,n,a,i,l,s,c,d,p,b,f,m,h;return(0,o.createElement)("li",{className:"wte-fsd__availability",key:e.id},(P||S||T)&&(0,o.createElement)("div",{className:"wte-fsd__tag-wrap"},P&&(0,o.createElement)(u.RichText,{...v,style:(0,g.A)({typography:w?.buttonTypography},{fontSize:"14px",lineHeight:"1.8",fontWeight:"600",padding:"2px 12px",borderTopLeftRadius:"16px",borderTopRightRadius:"16px",borderBottomLeftRadius:"16px",borderBottomRightRadius:"16px",color:null!==(t=Z?.initial)&&void 0!==t?t:"",background:null!==(r=G?.initial)&&void 0!==r?r:"",display:"inline-block"}),className:"wte-fsd__tag wte-fsd__time-slots",onChange:e=>x({timeSlotsLabel:e}),value:_,placeholder:_}),S&&(0,o.createElement)(u.RichText,{...v,style:(0,g.A)({typography:w?.buttonTypography},{fontSize:"14px",lineHeight:"1.8",fontWeight:"600",padding:"2px 12px",color:null!==(n=U?.initial)&&void 0!==n?n:"",background:null!==(a=J?.initial)&&void 0!==a?a:""}),className:"wte-fsd__tag wte-fsd__group-discount",onChange:e=>x({groupDiscountLabel:e}),value:C,placeholder:C}),T&&(0,o.createElement)("span",{className:"wte-fsd__tag wte-fsd__availability-label",style:{color:null!==(i=K?.initial)&&void 0!==i?i:"",background:null!==(l=X?.initial)&&void 0!==l?l:""}},"Guaranteed")),L&&(0,o.createElement)("div",{className:"wte-fsd__availability-start-date"},(0,o.createElement)("span",{className:"wte-fsd__availability-title-text"},e.dayOfWeekStart),(0,o.createElement)("div",{className:"wte-fsd__availability-bold-text"},e.startDate)),L&&D&&(0,o.createElement)("div",{className:"wte-fsd__availability-arrow-wrap"},(0,o.createElement)("span",{className:"wte-fsd__availability-arrow"})),D&&(0,o.createElement)("div",{className:"wte-fsd__availability-end-date"},(0,o.createElement)("span",{className:"wte-fsd__availability-title-text"},e.dayOfWeekEnd),(0,o.createElement)("div",{className:"wte-fsd__availability-bold-text"},e.endDate)),W&&(0,o.createElement)("div",{className:"wte-fsd__availability-price-wrap"},(0,o.createElement)("div",{className:"wte-fsd__availability-price-inner"},ee&&(0,o.createElement)("span",{className:"wte-fsd__availability-title-text wte-fsd__availability-regular-price"},e.price),(Q||te)&&(0,o.createElement)("div",{className:"wte-fsd__availability-sale-price-wrap"},Q&&(0,o.createElement)("div",{className:"wte-fsd__availability-bold-text"},e.price),te&&(0,o.createElement)("span",{className:"wte-fsd__availability-discount",style:{color:null!==(s=re?.initial)&&void 0!==s?s:"",background:null!==(c=oe?.initial)&&void 0!==c?c:""}},"7% OFF ")))),j&&(0,o.createElement)("div",{className:"wte-fsd__availability-remaining-seats "+("Not Available"===e.status?"wte-fsd__sold-out":""),style:{color:"Not Available"===e.status?fe?.initial:me?.initial}},(0,o.createElement)("span",{className:"wte-fsd__availability-title-text"},e.status)),(0,o.createElement)("div",{className:"wte-fsd__availability-cta-wrap"},(0,o.createElement)(u.RichText,{...v,style:(0,g.A)({typography:w?.buttonTypography},{borderWidth:"1"==e.id?N?.width:z?.width,borderColor:"1"==e.id?N?.color:z?.color,borderStyle:"1"==e.id?N?.style:z?.style,borderTopLeftRadius:I?.top,borderTopRightRadius:I?.right,borderBottomLeftRadius:I?.left,borderBottomRightRadius:I?.bottom,paddingTop:O?.top,paddingBottom:O?.bottom,paddingLeft:O?.left,paddingRight:O?.right,marginTop:M?.top,marginBottom:M?.bottom,marginLeft:M?.left,marginRight:M?.right,color:"1"==e.id?H?.initial:null!==(d=V?.initial)&&void 0!==d?d:"",background:"1"==e.id?$?.initial:null!==(p=q?.initial)&&void 0!==p?p:"",boxSizing:"border-box",textAlign:"center","--button-color-hover":"1"==e.id?null!==(b=H?.hover)&&void 0!==b?b:"":null!==(f=V?.hover)&&void 0!==f?f:"","--buttonbg-color-hover":"1"==e.id?null!==(m=$?.hover)&&void 0!==m?m:"":null!==(h=q?.hover)&&void 0!==h?h:"",boxShadow:null!=ye?ye:""}),className:"book-btn wte-fsd__booknow-btn",onChange:t=>{"Not Available"===e.status?x({soldoutLabel:t}):x({booknowLabel:t})},value:e.buttonLabel,placeholder:e.buttonLabel})))})))),(0,o.createElement)("div",{class:"wte-fsd__availability-show-more-wrap"},(0,o.createElement)(u.RichText,{...v,style:(0,g.A)({},{borderWidth:ie?.width,borderColor:ie?.color,borderStyle:ie?.style,borderTopLeftRadius:le?.top,borderTopRightRadius:le?.right,borderBottomLeftRadius:le?.left,borderBottomRightRadius:le?.bottom,paddingTop:ne?.top,paddingBottom:ne?.bottom,paddingLeft:ne?.left,paddingRight:ne?.right,marginTop:ae?.top,marginBottom:ae?.bottom,marginLeft:ae?.left,marginRight:ae?.right,color:null!==(s=se?.initial)&&void 0!==s?s:"",background:null!==(c=ce?.initial)&&void 0!==c?c:"","--button-color-hover":null!==(d=se?.hover)&&void 0!==d?d:"","--buttonbg-color-hover":null!==(p=ce?.hover)&&void 0!==p?p:"",boxShadow:null!=ve?ve:""}),className:"wte-fsd__availability-show-more",onChange:e=>x({showMoreLabel:e}),value:R,placeholder:R}),(0,o.createElement)(u.RichText,{...v,style:(0,g.A)({},{borderWidth:ie?.width,borderColor:ie?.color,borderStyle:ie?.style,borderTopLeftRadius:le?.top,borderTopRightRadius:le?.right,borderBottomLeftRadius:le?.left,borderBottomRightRadius:le?.bottom,paddingTop:ne?.top,paddingBottom:ne?.bottom,paddingLeft:ne?.left,paddingRight:ne?.right,marginTop:ae?.top,marginBottom:ae?.bottom,marginLeft:ae?.left,marginRight:ae?.right,color:null!==(f=se?.initial)&&void 0!==f?f:"",background:null!==(m=ce?.initial)&&void 0!==m?m:"","--button-color-hover":null!==(h=se?.hover)&&void 0!==h?h:"","--buttonbg-color-hover":null!==(y=ce?.hover)&&void 0!==y?y:"",boxShadow:null!=ve?ve:"",display:"flex"}),className:"wte-fsd__availability-show-less",onChange:e=>x({showLessLabel:e}),value:A,placeholder:A})))))),(0,o.createElement)(b.s,{...e}))}const m=r(2805),h=()=>null;(0,t.registerBlockCollection)("wptravelenginetripblocks",{title:(0,e.__)("WP Travel Engine - Single Trip Blocks","wp-travel-engine")});const y=wptravelengineTripBlocks?.fsdVersion;m.keys().forEach((e=>{if(!e.includes("block.js"))return;let{edit:r,metadata:o,save:n}=m(e);y>="2.4.0"&&["wptravelenginetripblocks/trip-fsd-date-selector","wptravelenginetripblocks/trip-fsd-loadmore"].includes(o?.name)||("wptravelenginetripblocks/trip-fsd-table"===o?.name&&y>="2.4.0"&&(o=p,r=f),o?.name&&function(e){if(!e)return;const{metadata:r,settings:o,name:n}=e,p={"wptravelengine/activities":a,"wptravelengine/destinations":l,"wptravelengine/trip-types":s,"wptravelengine/trip-search":d,"wptravelengine/terms":c,"wptravelengine/trips":i}[n];p&&(o.icon=p),(0,t.registerBlockType)({name:n,...r},o)}({name:o.name,metadata:o,settings:{edit:r,save:null!=n?n:h}}))}))})()})();